@skedulo/breeze-ui 1.21.0 → 1.21.1

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.
@@ -2,35 +2,35 @@
2
2
  * @license
3
3
  * Copyright 2019 Google LLC
4
4
  * SPDX-License-Identifier: BSD-3-Clause
5
- */const Ps=window,Bc=Ps.ShadowRoot&&(Ps.ShadyCSS===void 0||Ps.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,E2=Symbol(),Id=new WeakMap;let W3=class{constructor(e,i,o){if(this._$cssResult$=!0,o!==E2)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=i}get styleSheet(){let e=this.o;const i=this.t;if(Bc&&e===void 0){const o=i!==void 0&&i.length===1;o&&(e=Id.get(i)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),o&&Id.set(i,e))}return e}toString(){return this.cssText}};const U3=n=>new W3(typeof n=="string"?n:n+"",void 0,E2),j3=(n,e)=>{Bc?n.adoptedStyleSheets=e.map(i=>i instanceof CSSStyleSheet?i:i.styleSheet):e.forEach(i=>{const o=document.createElement("style"),l=Ps.litNonce;l!==void 0&&o.setAttribute("nonce",l),o.textContent=i.cssText,n.appendChild(o)})},Ad=Bc?n=>n:n=>n instanceof CSSStyleSheet?(e=>{let i="";for(const o of e.cssRules)i+=o.cssText;return U3(i)})(n):n;/**
5
+ */const Ps=window,Vc=Ps.ShadowRoot&&(Ps.ShadyCSS===void 0||Ps.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,P2=Symbol(),Ad=new WeakMap;let q3=class{constructor(e,i,o){if(this._$cssResult$=!0,o!==P2)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=i}get styleSheet(){let e=this.o;const i=this.t;if(Vc&&e===void 0){const o=i!==void 0&&i.length===1;o&&(e=Ad.get(i)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),o&&Ad.set(i,e))}return e}toString(){return this.cssText}};const K3=n=>new q3(typeof n=="string"?n:n+"",void 0,P2),Y3=(n,e)=>{Vc?n.adoptedStyleSheets=e.map(i=>i instanceof CSSStyleSheet?i:i.styleSheet):e.forEach(i=>{const o=document.createElement("style"),l=Ps.litNonce;l!==void 0&&o.setAttribute("nonce",l),o.textContent=i.cssText,n.appendChild(o)})},Pd=Vc?n=>n:n=>n instanceof CSSStyleSheet?(e=>{let i="";for(const o of e.cssRules)i+=o.cssText;return K3(i)})(n):n;/**
6
6
  * @license
7
7
  * Copyright 2017 Google LLC
8
8
  * SPDX-License-Identifier: BSD-3-Clause
9
- */var B1;const Rs=window,Pd=Rs.trustedTypes,G3=Pd?Pd.emptyScript:"",Dd=Rs.reactiveElementPolyfillSupport,pc={toAttribute(n,e){switch(e){case Boolean:n=n?G3:null;break;case Object:case Array:n=n==null?n:JSON.stringify(n)}return n},fromAttribute(n,e){let i=n;switch(e){case Boolean:i=n!==null;break;case Number:i=n===null?null:Number(n);break;case Object:case Array:try{i=JSON.parse(n)}catch{i=null}}return i}},_2=(n,e)=>e!==n&&(e==e||n==n),V1={attribute:!0,type:String,converter:pc,reflect:!1,hasChanged:_2},gc="finalized";let oa=class extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this.u()}static addInitializer(e){var i;this.finalize(),((i=this.h)!==null&&i!==void 0?i:this.h=[]).push(e)}static get observedAttributes(){this.finalize();const e=[];return this.elementProperties.forEach((i,o)=>{const l=this._$Ep(o,i);l!==void 0&&(this._$Ev.set(l,o),e.push(l))}),e}static createProperty(e,i=V1){if(i.state&&(i.attribute=!1),this.finalize(),this.elementProperties.set(e,i),!i.noAccessor&&!this.prototype.hasOwnProperty(e)){const o=typeof e=="symbol"?Symbol():"__"+e,l=this.getPropertyDescriptor(e,o,i);l!==void 0&&Object.defineProperty(this.prototype,e,l)}}static getPropertyDescriptor(e,i,o){return{get(){return this[i]},set(l){const d=this[e];this[i]=l,this.requestUpdate(e,d,o)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)||V1}static finalize(){if(this.hasOwnProperty(gc))return!1;this[gc]=!0;const e=Object.getPrototypeOf(this);if(e.finalize(),e.h!==void 0&&(this.h=[...e.h]),this.elementProperties=new Map(e.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const i=this.properties,o=[...Object.getOwnPropertyNames(i),...Object.getOwnPropertySymbols(i)];for(const l of o)this.createProperty(l,i[l])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(e){const i=[];if(Array.isArray(e)){const o=new Set(e.flat(1/0).reverse());for(const l of o)i.unshift(Ad(l))}else e!==void 0&&i.push(Ad(e));return i}static _$Ep(e,i){const o=i.attribute;return o===!1?void 0:typeof o=="string"?o:typeof e=="string"?e.toLowerCase():void 0}u(){var e;this._$E_=new Promise(i=>this.enableUpdating=i),this._$AL=new Map,this._$Eg(),this.requestUpdate(),(e=this.constructor.h)===null||e===void 0||e.forEach(i=>i(this))}addController(e){var i,o;((i=this._$ES)!==null&&i!==void 0?i:this._$ES=[]).push(e),this.renderRoot!==void 0&&this.isConnected&&((o=e.hostConnected)===null||o===void 0||o.call(e))}removeController(e){var i;(i=this._$ES)===null||i===void 0||i.splice(this._$ES.indexOf(e)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach((e,i)=>{this.hasOwnProperty(i)&&(this._$Ei.set(i,this[i]),delete this[i])})}createRenderRoot(){var e;const i=(e=this.shadowRoot)!==null&&e!==void 0?e:this.attachShadow(this.constructor.shadowRootOptions);return j3(i,this.constructor.elementStyles),i}connectedCallback(){var e;this.renderRoot===void 0&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(e=this._$ES)===null||e===void 0||e.forEach(i=>{var o;return(o=i.hostConnected)===null||o===void 0?void 0:o.call(i)})}enableUpdating(e){}disconnectedCallback(){var e;(e=this._$ES)===null||e===void 0||e.forEach(i=>{var o;return(o=i.hostDisconnected)===null||o===void 0?void 0:o.call(i)})}attributeChangedCallback(e,i,o){this._$AK(e,o)}_$EO(e,i,o=V1){var l;const d=this.constructor._$Ep(e,o);if(d!==void 0&&o.reflect===!0){const u=(((l=o.converter)===null||l===void 0?void 0:l.toAttribute)!==void 0?o.converter:pc).toAttribute(i,o.type);this._$El=e,u==null?this.removeAttribute(d):this.setAttribute(d,u),this._$El=null}}_$AK(e,i){var o;const l=this.constructor,d=l._$Ev.get(e);if(d!==void 0&&this._$El!==d){const u=l.getPropertyOptions(d),v=typeof u.converter=="function"?{fromAttribute:u.converter}:((o=u.converter)===null||o===void 0?void 0:o.fromAttribute)!==void 0?u.converter:pc;this._$El=d,this[d]=v.fromAttribute(i,u.type),this._$El=null}}requestUpdate(e,i,o){let l=!0;e!==void 0&&(((o=o||this.constructor.getPropertyOptions(e)).hasChanged||_2)(this[e],i)?(this._$AL.has(e)||this._$AL.set(e,i),o.reflect===!0&&this._$El!==e&&(this._$EC===void 0&&(this._$EC=new Map),this._$EC.set(e,o))):l=!1),!this.isUpdatePending&&l&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(i){Promise.reject(i)}const e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var e;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach((l,d)=>this[d]=l),this._$Ei=void 0);let i=!1;const o=this._$AL;try{i=this.shouldUpdate(o),i?(this.willUpdate(o),(e=this._$ES)===null||e===void 0||e.forEach(l=>{var d;return(d=l.hostUpdate)===null||d===void 0?void 0:d.call(l)}),this.update(o)):this._$Ek()}catch(l){throw i=!1,this._$Ek(),l}i&&this._$AE(o)}willUpdate(e){}_$AE(e){var i;(i=this._$ES)===null||i===void 0||i.forEach(o=>{var l;return(l=o.hostUpdated)===null||l===void 0?void 0:l.call(o)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(e){return!0}update(e){this._$EC!==void 0&&(this._$EC.forEach((i,o)=>this._$EO(o,this[o],i)),this._$EC=void 0),this._$Ek()}updated(e){}firstUpdated(e){}};oa[gc]=!0,oa.elementProperties=new Map,oa.elementStyles=[],oa.shadowRootOptions={mode:"open"},Dd==null||Dd({ReactiveElement:oa}),((B1=Rs.reactiveElementVersions)!==null&&B1!==void 0?B1:Rs.reactiveElementVersions=[]).push("1.6.2");/**
9
+ */var B1;const Rs=window,Dd=Rs.trustedTypes,X3=Dd?Dd.emptyScript:"",Nd=Rs.reactiveElementPolyfillSupport,gc={toAttribute(n,e){switch(e){case Boolean:n=n?X3:null;break;case Object:case Array:n=n==null?n:JSON.stringify(n)}return n},fromAttribute(n,e){let i=n;switch(e){case Boolean:i=n!==null;break;case Number:i=n===null?null:Number(n);break;case Object:case Array:try{i=JSON.parse(n)}catch{i=null}}return i}},D2=(n,e)=>e!==n&&(e==e||n==n),V1={attribute:!0,type:String,converter:gc,reflect:!1,hasChanged:D2},vc="finalized";let oa=class extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this.u()}static addInitializer(e){var i;this.finalize(),((i=this.h)!==null&&i!==void 0?i:this.h=[]).push(e)}static get observedAttributes(){this.finalize();const e=[];return this.elementProperties.forEach((i,o)=>{const l=this._$Ep(o,i);l!==void 0&&(this._$Ev.set(l,o),e.push(l))}),e}static createProperty(e,i=V1){if(i.state&&(i.attribute=!1),this.finalize(),this.elementProperties.set(e,i),!i.noAccessor&&!this.prototype.hasOwnProperty(e)){const o=typeof e=="symbol"?Symbol():"__"+e,l=this.getPropertyDescriptor(e,o,i);l!==void 0&&Object.defineProperty(this.prototype,e,l)}}static getPropertyDescriptor(e,i,o){return{get(){return this[i]},set(l){const d=this[e];this[i]=l,this.requestUpdate(e,d,o)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)||V1}static finalize(){if(this.hasOwnProperty(vc))return!1;this[vc]=!0;const e=Object.getPrototypeOf(this);if(e.finalize(),e.h!==void 0&&(this.h=[...e.h]),this.elementProperties=new Map(e.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const i=this.properties,o=[...Object.getOwnPropertyNames(i),...Object.getOwnPropertySymbols(i)];for(const l of o)this.createProperty(l,i[l])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(e){const i=[];if(Array.isArray(e)){const o=new Set(e.flat(1/0).reverse());for(const l of o)i.unshift(Pd(l))}else e!==void 0&&i.push(Pd(e));return i}static _$Ep(e,i){const o=i.attribute;return o===!1?void 0:typeof o=="string"?o:typeof e=="string"?e.toLowerCase():void 0}u(){var e;this._$E_=new Promise(i=>this.enableUpdating=i),this._$AL=new Map,this._$Eg(),this.requestUpdate(),(e=this.constructor.h)===null||e===void 0||e.forEach(i=>i(this))}addController(e){var i,o;((i=this._$ES)!==null&&i!==void 0?i:this._$ES=[]).push(e),this.renderRoot!==void 0&&this.isConnected&&((o=e.hostConnected)===null||o===void 0||o.call(e))}removeController(e){var i;(i=this._$ES)===null||i===void 0||i.splice(this._$ES.indexOf(e)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach((e,i)=>{this.hasOwnProperty(i)&&(this._$Ei.set(i,this[i]),delete this[i])})}createRenderRoot(){var e;const i=(e=this.shadowRoot)!==null&&e!==void 0?e:this.attachShadow(this.constructor.shadowRootOptions);return Y3(i,this.constructor.elementStyles),i}connectedCallback(){var e;this.renderRoot===void 0&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(e=this._$ES)===null||e===void 0||e.forEach(i=>{var o;return(o=i.hostConnected)===null||o===void 0?void 0:o.call(i)})}enableUpdating(e){}disconnectedCallback(){var e;(e=this._$ES)===null||e===void 0||e.forEach(i=>{var o;return(o=i.hostDisconnected)===null||o===void 0?void 0:o.call(i)})}attributeChangedCallback(e,i,o){this._$AK(e,o)}_$EO(e,i,o=V1){var l;const d=this.constructor._$Ep(e,o);if(d!==void 0&&o.reflect===!0){const u=(((l=o.converter)===null||l===void 0?void 0:l.toAttribute)!==void 0?o.converter:gc).toAttribute(i,o.type);this._$El=e,u==null?this.removeAttribute(d):this.setAttribute(d,u),this._$El=null}}_$AK(e,i){var o;const l=this.constructor,d=l._$Ev.get(e);if(d!==void 0&&this._$El!==d){const u=l.getPropertyOptions(d),v=typeof u.converter=="function"?{fromAttribute:u.converter}:((o=u.converter)===null||o===void 0?void 0:o.fromAttribute)!==void 0?u.converter:gc;this._$El=d,this[d]=v.fromAttribute(i,u.type),this._$El=null}}requestUpdate(e,i,o){let l=!0;e!==void 0&&(((o=o||this.constructor.getPropertyOptions(e)).hasChanged||D2)(this[e],i)?(this._$AL.has(e)||this._$AL.set(e,i),o.reflect===!0&&this._$El!==e&&(this._$EC===void 0&&(this._$EC=new Map),this._$EC.set(e,o))):l=!1),!this.isUpdatePending&&l&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(i){Promise.reject(i)}const e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var e;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach((l,d)=>this[d]=l),this._$Ei=void 0);let i=!1;const o=this._$AL;try{i=this.shouldUpdate(o),i?(this.willUpdate(o),(e=this._$ES)===null||e===void 0||e.forEach(l=>{var d;return(d=l.hostUpdate)===null||d===void 0?void 0:d.call(l)}),this.update(o)):this._$Ek()}catch(l){throw i=!1,this._$Ek(),l}i&&this._$AE(o)}willUpdate(e){}_$AE(e){var i;(i=this._$ES)===null||i===void 0||i.forEach(o=>{var l;return(l=o.hostUpdated)===null||l===void 0?void 0:l.call(o)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(e){return!0}update(e){this._$EC!==void 0&&(this._$EC.forEach((i,o)=>this._$EO(o,this[o],i)),this._$EC=void 0),this._$Ek()}updated(e){}firstUpdated(e){}};oa[vc]=!0,oa.elementProperties=new Map,oa.elementStyles=[],oa.shadowRootOptions={mode:"open"},Nd==null||Nd({ReactiveElement:oa}),((B1=Rs.reactiveElementVersions)!==null&&B1!==void 0?B1:Rs.reactiveElementVersions=[]).push("1.6.2");/**
10
10
  * @license
11
11
  * Copyright 2017 Google LLC
12
12
  * SPDX-License-Identifier: BSD-3-Clause
13
- */var Z1;const Fs=window,ro=Fs.trustedTypes,Nd=ro?ro.createPolicy("lit-html",{createHTML:n=>n}):void 0,Bs="$lit$",on=`lit$${(Math.random()+"").slice(9)}$`,Vc="?"+on,q3=`<${Vc}>`,fi=document,Vs=()=>fi.createComment(""),wa=n=>n===null||typeof n!="object"&&typeof n!="function",I2=Array.isArray,A2=n=>I2(n)||typeof(n==null?void 0:n[Symbol.iterator])=="function",W1=`[
14
- \f\r]`,aa=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Hd=/-->/g,Rd=/>/g,ti=RegExp(`>|${W1}(?:([^\\s"'>=/]+)(${W1}*=${W1}*(?:[^
15
- \f\r"'\`<>=]|("|')|))|$)`,"g"),Fd=/'/g,Bd=/"/g,P2=/^(?:script|style|textarea|title)$/i,sn=Symbol.for("lit-noChange"),ht=Symbol.for("lit-nothing"),Vd=new WeakMap,ui=fi.createTreeWalker(fi,129,null,!1),D2=(n,e)=>{const i=n.length-1,o=[];let l,d=e===2?"<svg>":"",u=aa;for(let m=0;m<i;m++){const y=n[m];let T,S,$=-1,E=0;for(;E<y.length&&(u.lastIndex=E,S=u.exec(y),S!==null);)E=u.lastIndex,u===aa?S[1]==="!--"?u=Hd:S[1]!==void 0?u=Rd:S[2]!==void 0?(P2.test(S[2])&&(l=RegExp("</"+S[2],"g")),u=ti):S[3]!==void 0&&(u=ti):u===ti?S[0]===">"?(u=l!=null?l:aa,$=-1):S[1]===void 0?$=-2:($=u.lastIndex-S[2].length,T=S[1],u=S[3]===void 0?ti:S[3]==='"'?Bd:Fd):u===Bd||u===Fd?u=ti:u===Hd||u===Rd?u=aa:(u=ti,l=void 0);const N=u===ti&&n[m+1].startsWith("/>")?" ":"";d+=u===aa?y+q3:$>=0?(o.push(T),y.slice(0,$)+Bs+y.slice($)+on+N):y+on+($===-2?(o.push(void 0),m):N)}const v=d+(n[i]||"<?>")+(e===2?"</svg>":"");if(!Array.isArray(n)||!n.hasOwnProperty("raw"))throw Error("invalid template strings array");return[Nd!==void 0?Nd.createHTML(v):v,o]};let vc=class N2{constructor({strings:e,_$litType$:i},o){let l;this.parts=[];let d=0,u=0;const v=e.length-1,m=this.parts,[y,T]=D2(e,i);if(this.el=N2.createElement(y,o),ui.currentNode=this.el.content,i===2){const S=this.el.content,$=S.firstChild;$.remove(),S.append(...$.childNodes)}for(;(l=ui.nextNode())!==null&&m.length<v;){if(l.nodeType===1){if(l.hasAttributes()){const S=[];for(const $ of l.getAttributeNames())if($.endsWith(Bs)||$.startsWith(on)){const E=T[u++];if(S.push($),E!==void 0){const N=l.getAttribute(E.toLowerCase()+Bs).split(on),G=/([.?@])?(.*)/.exec(E);m.push({type:1,index:d,name:G[2],strings:N,ctor:G[1]==="."?F2:G[1]==="?"?B2:G[1]==="@"?V2:Ta})}else m.push({type:6,index:d})}for(const $ of S)l.removeAttribute($)}if(P2.test(l.tagName)){const S=l.textContent.split(on),$=S.length-1;if($>0){l.textContent=ro?ro.emptyScript:"";for(let E=0;E<$;E++)l.append(S[E],Vs()),ui.nextNode(),m.push({type:2,index:++d});l.append(S[$],Vs())}}}else if(l.nodeType===8)if(l.data===Vc)m.push({type:2,index:d});else{let S=-1;for(;(S=l.data.indexOf(on,S+1))!==-1;)m.push({type:7,index:d}),S+=on.length-1}d++}}static createElement(e,i){const o=fi.createElement("template");return o.innerHTML=e,o}};function pi(n,e,i=n,o){var l,d,u,v;if(e===sn)return e;let m=o!==void 0?(l=i._$Co)===null||l===void 0?void 0:l[o]:i._$Cl;const y=wa(e)?void 0:e._$litDirective$;return(m==null?void 0:m.constructor)!==y&&((d=m==null?void 0:m._$AO)===null||d===void 0||d.call(m,!1),y===void 0?m=void 0:(m=new y(n),m._$AT(n,i,o)),o!==void 0?((u=(v=i)._$Co)!==null&&u!==void 0?u:v._$Co=[])[o]=m:i._$Cl=m),m!==void 0&&(e=pi(n,m._$AS(n,e.values),m,o)),e}let H2=class{constructor(e,i){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=i}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){var i;const{el:{content:o},parts:l}=this._$AD,d=((i=e==null?void 0:e.creationScope)!==null&&i!==void 0?i:fi).importNode(o,!0);ui.currentNode=d;let u=ui.nextNode(),v=0,m=0,y=l[0];for(;y!==void 0;){if(v===y.index){let T;y.type===2?T=new Zc(u,u.nextSibling,this,e):y.type===1?T=new y.ctor(u,y.name,y.strings,this,e):y.type===6&&(T=new Z2(u,this,e)),this._$AV.push(T),y=l[++m]}v!==(y==null?void 0:y.index)&&(u=ui.nextNode(),v++)}return ui.currentNode=fi,d}v(e){let i=0;for(const o of this._$AV)o!==void 0&&(o.strings!==void 0?(o._$AI(e,o,i),i+=o.strings.length-2):o._$AI(e[i])),i++}},Zc=class R2{constructor(e,i,o,l){var d;this.type=2,this._$AH=ht,this._$AN=void 0,this._$AA=e,this._$AB=i,this._$AM=o,this.options=l,this._$Cp=(d=l==null?void 0:l.isConnected)===null||d===void 0||d}get _$AU(){var e,i;return(i=(e=this._$AM)===null||e===void 0?void 0:e._$AU)!==null&&i!==void 0?i:this._$Cp}get parentNode(){let e=this._$AA.parentNode;const i=this._$AM;return i!==void 0&&(e==null?void 0:e.nodeType)===11&&(e=i.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,i=this){e=pi(this,e,i),wa(e)?e===ht||e==null||e===""?(this._$AH!==ht&&this._$AR(),this._$AH=ht):e!==this._$AH&&e!==sn&&this._(e):e._$litType$!==void 0?this.g(e):e.nodeType!==void 0?this.$(e):A2(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!==ht&&wa(this._$AH)?this._$AA.nextSibling.data=e:this.$(fi.createTextNode(e)),this._$AH=e}g(e){var i;const{values:o,_$litType$:l}=e,d=typeof l=="number"?this._$AC(e):(l.el===void 0&&(l.el=vc.createElement(l.h,this.options)),l);if(((i=this._$AH)===null||i===void 0?void 0:i._$AD)===d)this._$AH.v(o);else{const u=new H2(d,this),v=u.u(this.options);u.v(o),this.$(v),this._$AH=u}}_$AC(e){let i=Vd.get(e.strings);return i===void 0&&Vd.set(e.strings,i=new vc(e)),i}T(e){I2(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let o,l=0;for(const d of e)l===i.length?i.push(o=new R2(this.k(Vs()),this.k(Vs()),this,this.options)):o=i[l],o._$AI(d),l++;l<i.length&&(this._$AR(o&&o._$AB.nextSibling,l),i.length=l)}_$AR(e=this._$AA.nextSibling,i){var o;for((o=this._$AP)===null||o===void 0||o.call(this,!1,!0,i);e&&e!==this._$AB;){const l=e.nextSibling;e.remove(),e=l}}setConnected(e){var i;this._$AM===void 0&&(this._$Cp=e,(i=this._$AP)===null||i===void 0||i.call(this,e))}},Ta=class{constructor(e,i,o,l,d){this.type=1,this._$AH=ht,this._$AN=void 0,this.element=e,this.name=i,this._$AM=l,this.options=d,o.length>2||o[0]!==""||o[1]!==""?(this._$AH=Array(o.length-1).fill(new String),this.strings=o):this._$AH=ht}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(e,i=this,o,l){const d=this.strings;let u=!1;if(d===void 0)e=pi(this,e,i,0),u=!wa(e)||e!==this._$AH&&e!==sn,u&&(this._$AH=e);else{const v=e;let m,y;for(e=d[0],m=0;m<d.length-1;m++)y=pi(this,v[o+m],i,m),y===sn&&(y=this._$AH[m]),u||(u=!wa(y)||y!==this._$AH[m]),y===ht?e=ht:e!==ht&&(e+=(y!=null?y:"")+d[m+1]),this._$AH[m]=y}u&&!l&&this.j(e)}j(e){e===ht?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e!=null?e:"")}},F2=class extends Ta{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===ht?void 0:e}};const K3=ro?ro.emptyScript:"";let B2=class extends Ta{constructor(){super(...arguments),this.type=4}j(e){e&&e!==ht?this.element.setAttribute(this.name,K3):this.element.removeAttribute(this.name)}},V2=class extends Ta{constructor(e,i,o,l,d){super(e,i,o,l,d),this.type=5}_$AI(e,i=this){var o;if((e=(o=pi(this,e,i,0))!==null&&o!==void 0?o:ht)===sn)return;const l=this._$AH,d=e===ht&&l!==ht||e.capture!==l.capture||e.once!==l.once||e.passive!==l.passive,u=e!==ht&&(l===ht||d);d&&this.element.removeEventListener(this.name,this,l),u&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){var i,o;typeof this._$AH=="function"?this._$AH.call((o=(i=this.options)===null||i===void 0?void 0:i.host)!==null&&o!==void 0?o:this.element,e):this._$AH.handleEvent(e)}},Z2=class{constructor(e,i,o){this.element=e,this.type=6,this._$AN=void 0,this._$AM=i,this.options=o}get _$AU(){return this._$AM._$AU}_$AI(e){pi(this,e)}};const Y3={O:Bs,P:on,A:Vc,C:1,M:D2,L:H2,D:A2,R:pi,I:Zc,V:Ta,H:B2,N:V2,U:F2,F:Z2},Zd=Fs.litHtmlPolyfillSupport;Zd==null||Zd(vc,Zc),((Z1=Fs.litHtmlVersions)!==null&&Z1!==void 0?Z1:Fs.litHtmlVersions=[]).push("2.7.4");/**
13
+ */var Z1;const Fs=window,ro=Fs.trustedTypes,Hd=ro?ro.createPolicy("lit-html",{createHTML:n=>n}):void 0,Bs="$lit$",on=`lit$${(Math.random()+"").slice(9)}$`,Zc="?"+on,J3=`<${Zc}>`,fi=document,Vs=()=>fi.createComment(""),wa=n=>n===null||typeof n!="object"&&typeof n!="function",N2=Array.isArray,H2=n=>N2(n)||typeof(n==null?void 0:n[Symbol.iterator])=="function",W1=`[
14
+ \f\r]`,aa=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Rd=/-->/g,Fd=/>/g,ti=RegExp(`>|${W1}(?:([^\\s"'>=/]+)(${W1}*=${W1}*(?:[^
15
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),Bd=/'/g,Vd=/"/g,R2=/^(?:script|style|textarea|title)$/i,sn=Symbol.for("lit-noChange"),ht=Symbol.for("lit-nothing"),Zd=new WeakMap,ui=fi.createTreeWalker(fi,129,null,!1),F2=(n,e)=>{const i=n.length-1,o=[];let l,d=e===2?"<svg>":"",u=aa;for(let m=0;m<i;m++){const y=n[m];let T,S,$=-1,E=0;for(;E<y.length&&(u.lastIndex=E,S=u.exec(y),S!==null);)E=u.lastIndex,u===aa?S[1]==="!--"?u=Rd:S[1]!==void 0?u=Fd:S[2]!==void 0?(R2.test(S[2])&&(l=RegExp("</"+S[2],"g")),u=ti):S[3]!==void 0&&(u=ti):u===ti?S[0]===">"?(u=l!=null?l:aa,$=-1):S[1]===void 0?$=-2:($=u.lastIndex-S[2].length,T=S[1],u=S[3]===void 0?ti:S[3]==='"'?Vd:Bd):u===Vd||u===Bd?u=ti:u===Rd||u===Fd?u=aa:(u=ti,l=void 0);const N=u===ti&&n[m+1].startsWith("/>")?" ":"";d+=u===aa?y+J3:$>=0?(o.push(T),y.slice(0,$)+Bs+y.slice($)+on+N):y+on+($===-2?(o.push(void 0),m):N)}const v=d+(n[i]||"<?>")+(e===2?"</svg>":"");if(!Array.isArray(n)||!n.hasOwnProperty("raw"))throw Error("invalid template strings array");return[Hd!==void 0?Hd.createHTML(v):v,o]};let bc=class B2{constructor({strings:e,_$litType$:i},o){let l;this.parts=[];let d=0,u=0;const v=e.length-1,m=this.parts,[y,T]=F2(e,i);if(this.el=B2.createElement(y,o),ui.currentNode=this.el.content,i===2){const S=this.el.content,$=S.firstChild;$.remove(),S.append(...$.childNodes)}for(;(l=ui.nextNode())!==null&&m.length<v;){if(l.nodeType===1){if(l.hasAttributes()){const S=[];for(const $ of l.getAttributeNames())if($.endsWith(Bs)||$.startsWith(on)){const E=T[u++];if(S.push($),E!==void 0){const N=l.getAttribute(E.toLowerCase()+Bs).split(on),G=/([.?@])?(.*)/.exec(E);m.push({type:1,index:d,name:G[2],strings:N,ctor:G[1]==="."?W2:G[1]==="?"?U2:G[1]==="@"?j2:Ta})}else m.push({type:6,index:d})}for(const $ of S)l.removeAttribute($)}if(R2.test(l.tagName)){const S=l.textContent.split(on),$=S.length-1;if($>0){l.textContent=ro?ro.emptyScript:"";for(let E=0;E<$;E++)l.append(S[E],Vs()),ui.nextNode(),m.push({type:2,index:++d});l.append(S[$],Vs())}}}else if(l.nodeType===8)if(l.data===Zc)m.push({type:2,index:d});else{let S=-1;for(;(S=l.data.indexOf(on,S+1))!==-1;)m.push({type:7,index:d}),S+=on.length-1}d++}}static createElement(e,i){const o=fi.createElement("template");return o.innerHTML=e,o}};function pi(n,e,i=n,o){var l,d,u,v;if(e===sn)return e;let m=o!==void 0?(l=i._$Co)===null||l===void 0?void 0:l[o]:i._$Cl;const y=wa(e)?void 0:e._$litDirective$;return(m==null?void 0:m.constructor)!==y&&((d=m==null?void 0:m._$AO)===null||d===void 0||d.call(m,!1),y===void 0?m=void 0:(m=new y(n),m._$AT(n,i,o)),o!==void 0?((u=(v=i)._$Co)!==null&&u!==void 0?u:v._$Co=[])[o]=m:i._$Cl=m),m!==void 0&&(e=pi(n,m._$AS(n,e.values),m,o)),e}let V2=class{constructor(e,i){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=i}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){var i;const{el:{content:o},parts:l}=this._$AD,d=((i=e==null?void 0:e.creationScope)!==null&&i!==void 0?i:fi).importNode(o,!0);ui.currentNode=d;let u=ui.nextNode(),v=0,m=0,y=l[0];for(;y!==void 0;){if(v===y.index){let T;y.type===2?T=new Wc(u,u.nextSibling,this,e):y.type===1?T=new y.ctor(u,y.name,y.strings,this,e):y.type===6&&(T=new G2(u,this,e)),this._$AV.push(T),y=l[++m]}v!==(y==null?void 0:y.index)&&(u=ui.nextNode(),v++)}return ui.currentNode=fi,d}v(e){let i=0;for(const o of this._$AV)o!==void 0&&(o.strings!==void 0?(o._$AI(e,o,i),i+=o.strings.length-2):o._$AI(e[i])),i++}},Wc=class Z2{constructor(e,i,o,l){var d;this.type=2,this._$AH=ht,this._$AN=void 0,this._$AA=e,this._$AB=i,this._$AM=o,this.options=l,this._$Cp=(d=l==null?void 0:l.isConnected)===null||d===void 0||d}get _$AU(){var e,i;return(i=(e=this._$AM)===null||e===void 0?void 0:e._$AU)!==null&&i!==void 0?i:this._$Cp}get parentNode(){let e=this._$AA.parentNode;const i=this._$AM;return i!==void 0&&(e==null?void 0:e.nodeType)===11&&(e=i.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,i=this){e=pi(this,e,i),wa(e)?e===ht||e==null||e===""?(this._$AH!==ht&&this._$AR(),this._$AH=ht):e!==this._$AH&&e!==sn&&this._(e):e._$litType$!==void 0?this.g(e):e.nodeType!==void 0?this.$(e):H2(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!==ht&&wa(this._$AH)?this._$AA.nextSibling.data=e:this.$(fi.createTextNode(e)),this._$AH=e}g(e){var i;const{values:o,_$litType$:l}=e,d=typeof l=="number"?this._$AC(e):(l.el===void 0&&(l.el=bc.createElement(l.h,this.options)),l);if(((i=this._$AH)===null||i===void 0?void 0:i._$AD)===d)this._$AH.v(o);else{const u=new V2(d,this),v=u.u(this.options);u.v(o),this.$(v),this._$AH=u}}_$AC(e){let i=Zd.get(e.strings);return i===void 0&&Zd.set(e.strings,i=new bc(e)),i}T(e){N2(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let o,l=0;for(const d of e)l===i.length?i.push(o=new Z2(this.k(Vs()),this.k(Vs()),this,this.options)):o=i[l],o._$AI(d),l++;l<i.length&&(this._$AR(o&&o._$AB.nextSibling,l),i.length=l)}_$AR(e=this._$AA.nextSibling,i){var o;for((o=this._$AP)===null||o===void 0||o.call(this,!1,!0,i);e&&e!==this._$AB;){const l=e.nextSibling;e.remove(),e=l}}setConnected(e){var i;this._$AM===void 0&&(this._$Cp=e,(i=this._$AP)===null||i===void 0||i.call(this,e))}},Ta=class{constructor(e,i,o,l,d){this.type=1,this._$AH=ht,this._$AN=void 0,this.element=e,this.name=i,this._$AM=l,this.options=d,o.length>2||o[0]!==""||o[1]!==""?(this._$AH=Array(o.length-1).fill(new String),this.strings=o):this._$AH=ht}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(e,i=this,o,l){const d=this.strings;let u=!1;if(d===void 0)e=pi(this,e,i,0),u=!wa(e)||e!==this._$AH&&e!==sn,u&&(this._$AH=e);else{const v=e;let m,y;for(e=d[0],m=0;m<d.length-1;m++)y=pi(this,v[o+m],i,m),y===sn&&(y=this._$AH[m]),u||(u=!wa(y)||y!==this._$AH[m]),y===ht?e=ht:e!==ht&&(e+=(y!=null?y:"")+d[m+1]),this._$AH[m]=y}u&&!l&&this.j(e)}j(e){e===ht?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e!=null?e:"")}},W2=class extends Ta{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===ht?void 0:e}};const Q3=ro?ro.emptyScript:"";let U2=class extends Ta{constructor(){super(...arguments),this.type=4}j(e){e&&e!==ht?this.element.setAttribute(this.name,Q3):this.element.removeAttribute(this.name)}},j2=class extends Ta{constructor(e,i,o,l,d){super(e,i,o,l,d),this.type=5}_$AI(e,i=this){var o;if((e=(o=pi(this,e,i,0))!==null&&o!==void 0?o:ht)===sn)return;const l=this._$AH,d=e===ht&&l!==ht||e.capture!==l.capture||e.once!==l.once||e.passive!==l.passive,u=e!==ht&&(l===ht||d);d&&this.element.removeEventListener(this.name,this,l),u&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){var i,o;typeof this._$AH=="function"?this._$AH.call((o=(i=this.options)===null||i===void 0?void 0:i.host)!==null&&o!==void 0?o:this.element,e):this._$AH.handleEvent(e)}},G2=class{constructor(e,i,o){this.element=e,this.type=6,this._$AN=void 0,this._$AM=i,this.options=o}get _$AU(){return this._$AM._$AU}_$AI(e){pi(this,e)}};const e7={O:Bs,P:on,A:Zc,C:1,M:F2,L:V2,D:H2,R:pi,I:Wc,V:Ta,H:U2,N:j2,U:W2,F:G2},Wd=Fs.litHtmlPolyfillSupport;Wd==null||Wd(bc,Wc),((Z1=Fs.litHtmlVersions)!==null&&Z1!==void 0?Z1:Fs.litHtmlVersions=[]).push("2.7.4");/**
16
16
  * @license
17
17
  * Copyright 2019 Google LLC
18
18
  * SPDX-License-Identifier: BSD-3-Clause
19
- */const Ds=window,Wc=Ds.ShadowRoot&&(Ds.ShadyCSS===void 0||Ds.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Uc=Symbol(),Wd=new WeakMap;let W2=class{constructor(e,i,o){if(this._$cssResult$=!0,o!==Uc)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=i}get styleSheet(){let e=this.o;const i=this.t;if(Wc&&e===void 0){const o=i!==void 0&&i.length===1;o&&(e=Wd.get(i)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),o&&Wd.set(i,e))}return e}toString(){return this.cssText}};const An=n=>new W2(typeof n=="string"?n:n+"",void 0,Uc),j=(n,...e)=>{const i=n.length===1?n[0]:e.reduce((o,l,d)=>o+(u=>{if(u._$cssResult$===!0)return u.cssText;if(typeof u=="number")return u;throw Error("Value passed to 'css' function must be a 'css' function result: "+u+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(l)+n[d+1],n[0]);return new W2(i,n,Uc)},X3=(n,e)=>{Wc?n.adoptedStyleSheets=e.map(i=>i instanceof CSSStyleSheet?i:i.styleSheet):e.forEach(i=>{const o=document.createElement("style"),l=Ds.litNonce;l!==void 0&&o.setAttribute("nonce",l),o.textContent=i.cssText,n.appendChild(o)})},Ud=Wc?n=>n:n=>n instanceof CSSStyleSheet?(e=>{let i="";for(const o of e.cssRules)i+=o.cssText;return An(i)})(n):n;/**
19
+ */const Ds=window,Uc=Ds.ShadowRoot&&(Ds.ShadyCSS===void 0||Ds.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,jc=Symbol(),Ud=new WeakMap;let q2=class{constructor(e,i,o){if(this._$cssResult$=!0,o!==jc)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=i}get styleSheet(){let e=this.o;const i=this.t;if(Uc&&e===void 0){const o=i!==void 0&&i.length===1;o&&(e=Ud.get(i)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),o&&Ud.set(i,e))}return e}toString(){return this.cssText}};const An=n=>new q2(typeof n=="string"?n:n+"",void 0,jc),j=(n,...e)=>{const i=n.length===1?n[0]:e.reduce((o,l,d)=>o+(u=>{if(u._$cssResult$===!0)return u.cssText;if(typeof u=="number")return u;throw Error("Value passed to 'css' function must be a 'css' function result: "+u+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(l)+n[d+1],n[0]);return new q2(i,n,jc)},t7=(n,e)=>{Uc?n.adoptedStyleSheets=e.map(i=>i instanceof CSSStyleSheet?i:i.styleSheet):e.forEach(i=>{const o=document.createElement("style"),l=Ds.litNonce;l!==void 0&&o.setAttribute("nonce",l),o.textContent=i.cssText,n.appendChild(o)})},jd=Uc?n=>n:n=>n instanceof CSSStyleSheet?(e=>{let i="";for(const o of e.cssRules)i+=o.cssText;return An(i)})(n):n;/**
20
20
  * @license
21
21
  * Copyright 2017 Google LLC
22
22
  * SPDX-License-Identifier: BSD-3-Clause
23
- */var U1;const Zs=window,jd=Zs.trustedTypes,J3=jd?jd.emptyScript:"",Gd=Zs.reactiveElementPolyfillSupport,bc={toAttribute(n,e){switch(e){case Boolean:n=n?J3:null;break;case Object:case Array:n=n==null?n:JSON.stringify(n)}return n},fromAttribute(n,e){let i=n;switch(e){case Boolean:i=n!==null;break;case Number:i=n===null?null:Number(n);break;case Object:case Array:try{i=JSON.parse(n)}catch{i=null}}return i}},U2=(n,e)=>e!==n&&(e==e||n==n),j1={attribute:!0,type:String,converter:bc,reflect:!1,hasChanged:U2};let Ji=class extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this.u()}static addInitializer(e){var i;this.finalize(),((i=this.h)!==null&&i!==void 0?i:this.h=[]).push(e)}static get observedAttributes(){this.finalize();const e=[];return this.elementProperties.forEach((i,o)=>{const l=this._$Ep(o,i);l!==void 0&&(this._$Ev.set(l,o),e.push(l))}),e}static createProperty(e,i=j1){if(i.state&&(i.attribute=!1),this.finalize(),this.elementProperties.set(e,i),!i.noAccessor&&!this.prototype.hasOwnProperty(e)){const o=typeof e=="symbol"?Symbol():"__"+e,l=this.getPropertyDescriptor(e,o,i);l!==void 0&&Object.defineProperty(this.prototype,e,l)}}static getPropertyDescriptor(e,i,o){return{get(){return this[i]},set(l){const d=this[e];this[i]=l,this.requestUpdate(e,d,o)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)||j1}static finalize(){if(this.hasOwnProperty("finalized"))return!1;this.finalized=!0;const e=Object.getPrototypeOf(this);if(e.finalize(),e.h!==void 0&&(this.h=[...e.h]),this.elementProperties=new Map(e.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const i=this.properties,o=[...Object.getOwnPropertyNames(i),...Object.getOwnPropertySymbols(i)];for(const l of o)this.createProperty(l,i[l])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(e){const i=[];if(Array.isArray(e)){const o=new Set(e.flat(1/0).reverse());for(const l of o)i.unshift(Ud(l))}else e!==void 0&&i.push(Ud(e));return i}static _$Ep(e,i){const o=i.attribute;return o===!1?void 0:typeof o=="string"?o:typeof e=="string"?e.toLowerCase():void 0}u(){var e;this._$E_=new Promise(i=>this.enableUpdating=i),this._$AL=new Map,this._$Eg(),this.requestUpdate(),(e=this.constructor.h)===null||e===void 0||e.forEach(i=>i(this))}addController(e){var i,o;((i=this._$ES)!==null&&i!==void 0?i:this._$ES=[]).push(e),this.renderRoot!==void 0&&this.isConnected&&((o=e.hostConnected)===null||o===void 0||o.call(e))}removeController(e){var i;(i=this._$ES)===null||i===void 0||i.splice(this._$ES.indexOf(e)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach((e,i)=>{this.hasOwnProperty(i)&&(this._$Ei.set(i,this[i]),delete this[i])})}createRenderRoot(){var e;const i=(e=this.shadowRoot)!==null&&e!==void 0?e:this.attachShadow(this.constructor.shadowRootOptions);return X3(i,this.constructor.elementStyles),i}connectedCallback(){var e;this.renderRoot===void 0&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(e=this._$ES)===null||e===void 0||e.forEach(i=>{var o;return(o=i.hostConnected)===null||o===void 0?void 0:o.call(i)})}enableUpdating(e){}disconnectedCallback(){var e;(e=this._$ES)===null||e===void 0||e.forEach(i=>{var o;return(o=i.hostDisconnected)===null||o===void 0?void 0:o.call(i)})}attributeChangedCallback(e,i,o){this._$AK(e,o)}_$EO(e,i,o=j1){var l;const d=this.constructor._$Ep(e,o);if(d!==void 0&&o.reflect===!0){const u=(((l=o.converter)===null||l===void 0?void 0:l.toAttribute)!==void 0?o.converter:bc).toAttribute(i,o.type);this._$El=e,u==null?this.removeAttribute(d):this.setAttribute(d,u),this._$El=null}}_$AK(e,i){var o;const l=this.constructor,d=l._$Ev.get(e);if(d!==void 0&&this._$El!==d){const u=l.getPropertyOptions(d),v=typeof u.converter=="function"?{fromAttribute:u.converter}:((o=u.converter)===null||o===void 0?void 0:o.fromAttribute)!==void 0?u.converter:bc;this._$El=d,this[d]=v.fromAttribute(i,u.type),this._$El=null}}requestUpdate(e,i,o){let l=!0;e!==void 0&&(((o=o||this.constructor.getPropertyOptions(e)).hasChanged||U2)(this[e],i)?(this._$AL.has(e)||this._$AL.set(e,i),o.reflect===!0&&this._$El!==e&&(this._$EC===void 0&&(this._$EC=new Map),this._$EC.set(e,o))):l=!1),!this.isUpdatePending&&l&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(i){Promise.reject(i)}const e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var e;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach((l,d)=>this[d]=l),this._$Ei=void 0);let i=!1;const o=this._$AL;try{i=this.shouldUpdate(o),i?(this.willUpdate(o),(e=this._$ES)===null||e===void 0||e.forEach(l=>{var d;return(d=l.hostUpdate)===null||d===void 0?void 0:d.call(l)}),this.update(o)):this._$Ek()}catch(l){throw i=!1,this._$Ek(),l}i&&this._$AE(o)}willUpdate(e){}_$AE(e){var i;(i=this._$ES)===null||i===void 0||i.forEach(o=>{var l;return(l=o.hostUpdated)===null||l===void 0?void 0:l.call(o)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(e){return!0}update(e){this._$EC!==void 0&&(this._$EC.forEach((i,o)=>this._$EO(o,this[o],i)),this._$EC=void 0),this._$Ek()}updated(e){}firstUpdated(e){}};Ji.finalized=!0,Ji.elementProperties=new Map,Ji.elementStyles=[],Ji.shadowRootOptions={mode:"open"},Gd==null||Gd({ReactiveElement:Ji}),((U1=Zs.reactiveElementVersions)!==null&&U1!==void 0?U1:Zs.reactiveElementVersions=[]).push("1.4.2");/**
23
+ */var U1;const Zs=window,Gd=Zs.trustedTypes,r7=Gd?Gd.emptyScript:"",qd=Zs.reactiveElementPolyfillSupport,mc={toAttribute(n,e){switch(e){case Boolean:n=n?r7:null;break;case Object:case Array:n=n==null?n:JSON.stringify(n)}return n},fromAttribute(n,e){let i=n;switch(e){case Boolean:i=n!==null;break;case Number:i=n===null?null:Number(n);break;case Object:case Array:try{i=JSON.parse(n)}catch{i=null}}return i}},K2=(n,e)=>e!==n&&(e==e||n==n),j1={attribute:!0,type:String,converter:mc,reflect:!1,hasChanged:K2};let Ji=class extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this.u()}static addInitializer(e){var i;this.finalize(),((i=this.h)!==null&&i!==void 0?i:this.h=[]).push(e)}static get observedAttributes(){this.finalize();const e=[];return this.elementProperties.forEach((i,o)=>{const l=this._$Ep(o,i);l!==void 0&&(this._$Ev.set(l,o),e.push(l))}),e}static createProperty(e,i=j1){if(i.state&&(i.attribute=!1),this.finalize(),this.elementProperties.set(e,i),!i.noAccessor&&!this.prototype.hasOwnProperty(e)){const o=typeof e=="symbol"?Symbol():"__"+e,l=this.getPropertyDescriptor(e,o,i);l!==void 0&&Object.defineProperty(this.prototype,e,l)}}static getPropertyDescriptor(e,i,o){return{get(){return this[i]},set(l){const d=this[e];this[i]=l,this.requestUpdate(e,d,o)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)||j1}static finalize(){if(this.hasOwnProperty("finalized"))return!1;this.finalized=!0;const e=Object.getPrototypeOf(this);if(e.finalize(),e.h!==void 0&&(this.h=[...e.h]),this.elementProperties=new Map(e.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const i=this.properties,o=[...Object.getOwnPropertyNames(i),...Object.getOwnPropertySymbols(i)];for(const l of o)this.createProperty(l,i[l])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(e){const i=[];if(Array.isArray(e)){const o=new Set(e.flat(1/0).reverse());for(const l of o)i.unshift(jd(l))}else e!==void 0&&i.push(jd(e));return i}static _$Ep(e,i){const o=i.attribute;return o===!1?void 0:typeof o=="string"?o:typeof e=="string"?e.toLowerCase():void 0}u(){var e;this._$E_=new Promise(i=>this.enableUpdating=i),this._$AL=new Map,this._$Eg(),this.requestUpdate(),(e=this.constructor.h)===null||e===void 0||e.forEach(i=>i(this))}addController(e){var i,o;((i=this._$ES)!==null&&i!==void 0?i:this._$ES=[]).push(e),this.renderRoot!==void 0&&this.isConnected&&((o=e.hostConnected)===null||o===void 0||o.call(e))}removeController(e){var i;(i=this._$ES)===null||i===void 0||i.splice(this._$ES.indexOf(e)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach((e,i)=>{this.hasOwnProperty(i)&&(this._$Ei.set(i,this[i]),delete this[i])})}createRenderRoot(){var e;const i=(e=this.shadowRoot)!==null&&e!==void 0?e:this.attachShadow(this.constructor.shadowRootOptions);return t7(i,this.constructor.elementStyles),i}connectedCallback(){var e;this.renderRoot===void 0&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(e=this._$ES)===null||e===void 0||e.forEach(i=>{var o;return(o=i.hostConnected)===null||o===void 0?void 0:o.call(i)})}enableUpdating(e){}disconnectedCallback(){var e;(e=this._$ES)===null||e===void 0||e.forEach(i=>{var o;return(o=i.hostDisconnected)===null||o===void 0?void 0:o.call(i)})}attributeChangedCallback(e,i,o){this._$AK(e,o)}_$EO(e,i,o=j1){var l;const d=this.constructor._$Ep(e,o);if(d!==void 0&&o.reflect===!0){const u=(((l=o.converter)===null||l===void 0?void 0:l.toAttribute)!==void 0?o.converter:mc).toAttribute(i,o.type);this._$El=e,u==null?this.removeAttribute(d):this.setAttribute(d,u),this._$El=null}}_$AK(e,i){var o;const l=this.constructor,d=l._$Ev.get(e);if(d!==void 0&&this._$El!==d){const u=l.getPropertyOptions(d),v=typeof u.converter=="function"?{fromAttribute:u.converter}:((o=u.converter)===null||o===void 0?void 0:o.fromAttribute)!==void 0?u.converter:mc;this._$El=d,this[d]=v.fromAttribute(i,u.type),this._$El=null}}requestUpdate(e,i,o){let l=!0;e!==void 0&&(((o=o||this.constructor.getPropertyOptions(e)).hasChanged||K2)(this[e],i)?(this._$AL.has(e)||this._$AL.set(e,i),o.reflect===!0&&this._$El!==e&&(this._$EC===void 0&&(this._$EC=new Map),this._$EC.set(e,o))):l=!1),!this.isUpdatePending&&l&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(i){Promise.reject(i)}const e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var e;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach((l,d)=>this[d]=l),this._$Ei=void 0);let i=!1;const o=this._$AL;try{i=this.shouldUpdate(o),i?(this.willUpdate(o),(e=this._$ES)===null||e===void 0||e.forEach(l=>{var d;return(d=l.hostUpdate)===null||d===void 0?void 0:d.call(l)}),this.update(o)):this._$Ek()}catch(l){throw i=!1,this._$Ek(),l}i&&this._$AE(o)}willUpdate(e){}_$AE(e){var i;(i=this._$ES)===null||i===void 0||i.forEach(o=>{var l;return(l=o.hostUpdated)===null||l===void 0?void 0:l.call(o)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(e){return!0}update(e){this._$EC!==void 0&&(this._$EC.forEach((i,o)=>this._$EO(o,this[o],i)),this._$EC=void 0),this._$Ek()}updated(e){}firstUpdated(e){}};Ji.finalized=!0,Ji.elementProperties=new Map,Ji.elementStyles=[],Ji.shadowRootOptions={mode:"open"},qd==null||qd({ReactiveElement:Ji}),((U1=Zs.reactiveElementVersions)!==null&&U1!==void 0?U1:Zs.reactiveElementVersions=[]).push("1.4.2");/**
24
24
  * @license
25
25
  * Copyright 2017 Google LLC
26
26
  * SPDX-License-Identifier: BSD-3-Clause
27
- */var G1;const Ws=window,no=Ws.trustedTypes,qd=no?no.createPolicy("lit-html",{createHTML:n=>n}):void 0,mc="$lit$",_n=`lit$${(Math.random()+"").slice(9)}$`,j2="?"+_n,Q3=`<${j2}>`,gi=document,xa=()=>gi.createComment(""),za=n=>n===null||typeof n!="object"&&typeof n!="function",G2=Array.isArray,e7=n=>G2(n)||typeof(n==null?void 0:n[Symbol.iterator])=="function",q1=`[
28
- \f\r]`,sa=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Kd=/-->/g,Yd=/>/g,ri=RegExp(`>|${q1}(?:([^\\s"'>=/]+)(${q1}*=${q1}*(?:[^
29
- \f\r"'\`<>=]|("|')|))|$)`,"g"),Xd=/'/g,Jd=/"/g,q2=/^(?:script|style|textarea|title)$/i,K2=n=>(e,...i)=>({_$litType$:n,strings:e,values:i}),P=K2(1),D=K2(2),io=Symbol.for("lit-noChange"),Lt=Symbol.for("lit-nothing"),Qd=new WeakMap,di=gi.createTreeWalker(gi,129,null,!1),t7=(n,e)=>{const i=n.length-1,o=[];let l,d=e===2?"<svg>":"",u=sa;for(let m=0;m<i;m++){const y=n[m];let T,S,$=-1,E=0;for(;E<y.length&&(u.lastIndex=E,S=u.exec(y),S!==null);)E=u.lastIndex,u===sa?S[1]==="!--"?u=Kd:S[1]!==void 0?u=Yd:S[2]!==void 0?(q2.test(S[2])&&(l=RegExp("</"+S[2],"g")),u=ri):S[3]!==void 0&&(u=ri):u===ri?S[0]===">"?(u=l!=null?l:sa,$=-1):S[1]===void 0?$=-2:($=u.lastIndex-S[2].length,T=S[1],u=S[3]===void 0?ri:S[3]==='"'?Jd:Xd):u===Jd||u===Xd?u=ri:u===Kd||u===Yd?u=sa:(u=ri,l=void 0);const N=u===ri&&n[m+1].startsWith("/>")?" ":"";d+=u===sa?y+Q3:$>=0?(o.push(T),y.slice(0,$)+mc+y.slice($)+_n+N):y+_n+($===-2?(o.push(void 0),m):N)}const v=d+(n[i]||"<?>")+(e===2?"</svg>":"");if(!Array.isArray(n)||!n.hasOwnProperty("raw"))throw Error("invalid template strings array");return[qd!==void 0?qd.createHTML(v):v,o]};class La{constructor({strings:e,_$litType$:i},o){let l;this.parts=[];let d=0,u=0;const v=e.length-1,m=this.parts,[y,T]=t7(e,i);if(this.el=La.createElement(y,o),di.currentNode=this.el.content,i===2){const S=this.el.content,$=S.firstChild;$.remove(),S.append(...$.childNodes)}for(;(l=di.nextNode())!==null&&m.length<v;){if(l.nodeType===1){if(l.hasAttributes()){const S=[];for(const $ of l.getAttributeNames())if($.endsWith(mc)||$.startsWith(_n)){const E=T[u++];if(S.push($),E!==void 0){const N=l.getAttribute(E.toLowerCase()+mc).split(_n),G=/([.?@])?(.*)/.exec(E);m.push({type:1,index:d,name:G[2],strings:N,ctor:G[1]==="."?n7:G[1]==="?"?o7:G[1]==="@"?a7:hl})}else m.push({type:6,index:d})}for(const $ of S)l.removeAttribute($)}if(q2.test(l.tagName)){const S=l.textContent.split(_n),$=S.length-1;if($>0){l.textContent=no?no.emptyScript:"";for(let E=0;E<$;E++)l.append(S[E],xa()),di.nextNode(),m.push({type:2,index:++d});l.append(S[$],xa())}}}else if(l.nodeType===8)if(l.data===j2)m.push({type:2,index:d});else{let S=-1;for(;(S=l.data.indexOf(_n,S+1))!==-1;)m.push({type:7,index:d}),S+=_n.length-1}d++}}static createElement(e,i){const o=gi.createElement("template");return o.innerHTML=e,o}}function oo(n,e,i=n,o){var l,d,u,v;if(e===io)return e;let m=o!==void 0?(l=i._$Co)===null||l===void 0?void 0:l[o]:i._$Cl;const y=za(e)?void 0:e._$litDirective$;return(m==null?void 0:m.constructor)!==y&&((d=m==null?void 0:m._$AO)===null||d===void 0||d.call(m,!1),y===void 0?m=void 0:(m=new y(n),m._$AT(n,i,o)),o!==void 0?((u=(v=i)._$Co)!==null&&u!==void 0?u:v._$Co=[])[o]=m:i._$Cl=m),m!==void 0&&(e=oo(n,m._$AS(n,e.values),m,o)),e}class r7{constructor(e,i){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=i}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){var i;const{el:{content:o},parts:l}=this._$AD,d=((i=e==null?void 0:e.creationScope)!==null&&i!==void 0?i:gi).importNode(o,!0);di.currentNode=d;let u=di.nextNode(),v=0,m=0,y=l[0];for(;y!==void 0;){if(v===y.index){let T;y.type===2?T=new ka(u,u.nextSibling,this,e):y.type===1?T=new y.ctor(u,y.name,y.strings,this,e):y.type===6&&(T=new s7(u,this,e)),this._$AV.push(T),y=l[++m]}v!==(y==null?void 0:y.index)&&(u=di.nextNode(),v++)}return di.currentNode=gi,d}v(e){let i=0;for(const o of this._$AV)o!==void 0&&(o.strings!==void 0?(o._$AI(e,o,i),i+=o.strings.length-2):o._$AI(e[i])),i++}}class ka{constructor(e,i,o,l){var d;this.type=2,this._$AH=Lt,this._$AN=void 0,this._$AA=e,this._$AB=i,this._$AM=o,this.options=l,this._$Cp=(d=l==null?void 0:l.isConnected)===null||d===void 0||d}get _$AU(){var e,i;return(i=(e=this._$AM)===null||e===void 0?void 0:e._$AU)!==null&&i!==void 0?i:this._$Cp}get parentNode(){let e=this._$AA.parentNode;const i=this._$AM;return i!==void 0&&(e==null?void 0:e.nodeType)===11&&(e=i.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,i=this){e=oo(this,e,i),za(e)?e===Lt||e==null||e===""?(this._$AH!==Lt&&this._$AR(),this._$AH=Lt):e!==this._$AH&&e!==io&&this._(e):e._$litType$!==void 0?this.g(e):e.nodeType!==void 0?this.$(e):e7(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!==Lt&&za(this._$AH)?this._$AA.nextSibling.data=e:this.$(gi.createTextNode(e)),this._$AH=e}g(e){var i;const{values:o,_$litType$:l}=e,d=typeof l=="number"?this._$AC(e):(l.el===void 0&&(l.el=La.createElement(l.h,this.options)),l);if(((i=this._$AH)===null||i===void 0?void 0:i._$AD)===d)this._$AH.v(o);else{const u=new r7(d,this),v=u.u(this.options);u.v(o),this.$(v),this._$AH=u}}_$AC(e){let i=Qd.get(e.strings);return i===void 0&&Qd.set(e.strings,i=new La(e)),i}T(e){G2(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let o,l=0;for(const d of e)l===i.length?i.push(o=new ka(this.k(xa()),this.k(xa()),this,this.options)):o=i[l],o._$AI(d),l++;l<i.length&&(this._$AR(o&&o._$AB.nextSibling,l),i.length=l)}_$AR(e=this._$AA.nextSibling,i){var o;for((o=this._$AP)===null||o===void 0||o.call(this,!1,!0,i);e&&e!==this._$AB;){const l=e.nextSibling;e.remove(),e=l}}setConnected(e){var i;this._$AM===void 0&&(this._$Cp=e,(i=this._$AP)===null||i===void 0||i.call(this,e))}}class hl{constructor(e,i,o,l,d){this.type=1,this._$AH=Lt,this._$AN=void 0,this.element=e,this.name=i,this._$AM=l,this.options=d,o.length>2||o[0]!==""||o[1]!==""?(this._$AH=Array(o.length-1).fill(new String),this.strings=o):this._$AH=Lt}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(e,i=this,o,l){const d=this.strings;let u=!1;if(d===void 0)e=oo(this,e,i,0),u=!za(e)||e!==this._$AH&&e!==io,u&&(this._$AH=e);else{const v=e;let m,y;for(e=d[0],m=0;m<d.length-1;m++)y=oo(this,v[o+m],i,m),y===io&&(y=this._$AH[m]),u||(u=!za(y)||y!==this._$AH[m]),y===Lt?e=Lt:e!==Lt&&(e+=(y!=null?y:"")+d[m+1]),this._$AH[m]=y}u&&!l&&this.j(e)}j(e){e===Lt?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e!=null?e:"")}}class n7 extends hl{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===Lt?void 0:e}}const i7=no?no.emptyScript:"";class o7 extends hl{constructor(){super(...arguments),this.type=4}j(e){e&&e!==Lt?this.element.setAttribute(this.name,i7):this.element.removeAttribute(this.name)}}class a7 extends hl{constructor(e,i,o,l,d){super(e,i,o,l,d),this.type=5}_$AI(e,i=this){var o;if((e=(o=oo(this,e,i,0))!==null&&o!==void 0?o:Lt)===io)return;const l=this._$AH,d=e===Lt&&l!==Lt||e.capture!==l.capture||e.once!==l.once||e.passive!==l.passive,u=e!==Lt&&(l===Lt||d);d&&this.element.removeEventListener(this.name,this,l),u&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){var i,o;typeof this._$AH=="function"?this._$AH.call((o=(i=this.options)===null||i===void 0?void 0:i.host)!==null&&o!==void 0?o:this.element,e):this._$AH.handleEvent(e)}}class s7{constructor(e,i,o){this.element=e,this.type=6,this._$AN=void 0,this._$AM=i,this.options=o}get _$AU(){return this._$AM._$AU}_$AI(e){oo(this,e)}}const eh=Ws.litHtmlPolyfillSupport;eh==null||eh(La,ka),((G1=Ws.litHtmlVersions)!==null&&G1!==void 0?G1:Ws.litHtmlVersions=[]).push("2.7.4");const Y2=(n,e,i)=>{var o,l;const d=(o=i==null?void 0:i.renderBefore)!==null&&o!==void 0?o:e;let u=d._$litPart$;if(u===void 0){const v=(l=i==null?void 0:i.renderBefore)!==null&&l!==void 0?l:null;d._$litPart$=u=new ka(e.insertBefore(xa(),v),v,void 0,i!=null?i:{})}return u._$AI(n),u};/**
27
+ */var G1;const Ws=window,no=Ws.trustedTypes,Kd=no?no.createPolicy("lit-html",{createHTML:n=>n}):void 0,yc="$lit$",_n=`lit$${(Math.random()+"").slice(9)}$`,Y2="?"+_n,n7=`<${Y2}>`,gi=document,xa=()=>gi.createComment(""),za=n=>n===null||typeof n!="object"&&typeof n!="function",X2=Array.isArray,i7=n=>X2(n)||typeof(n==null?void 0:n[Symbol.iterator])=="function",q1=`[
28
+ \f\r]`,sa=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Yd=/-->/g,Xd=/>/g,ri=RegExp(`>|${q1}(?:([^\\s"'>=/]+)(${q1}*=${q1}*(?:[^
29
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),Jd=/'/g,Qd=/"/g,J2=/^(?:script|style|textarea|title)$/i,Q2=n=>(e,...i)=>({_$litType$:n,strings:e,values:i}),P=Q2(1),D=Q2(2),io=Symbol.for("lit-noChange"),Lt=Symbol.for("lit-nothing"),eh=new WeakMap,di=gi.createTreeWalker(gi,129,null,!1),o7=(n,e)=>{const i=n.length-1,o=[];let l,d=e===2?"<svg>":"",u=sa;for(let m=0;m<i;m++){const y=n[m];let T,S,$=-1,E=0;for(;E<y.length&&(u.lastIndex=E,S=u.exec(y),S!==null);)E=u.lastIndex,u===sa?S[1]==="!--"?u=Yd:S[1]!==void 0?u=Xd:S[2]!==void 0?(J2.test(S[2])&&(l=RegExp("</"+S[2],"g")),u=ri):S[3]!==void 0&&(u=ri):u===ri?S[0]===">"?(u=l!=null?l:sa,$=-1):S[1]===void 0?$=-2:($=u.lastIndex-S[2].length,T=S[1],u=S[3]===void 0?ri:S[3]==='"'?Qd:Jd):u===Qd||u===Jd?u=ri:u===Yd||u===Xd?u=sa:(u=ri,l=void 0);const N=u===ri&&n[m+1].startsWith("/>")?" ":"";d+=u===sa?y+n7:$>=0?(o.push(T),y.slice(0,$)+yc+y.slice($)+_n+N):y+_n+($===-2?(o.push(void 0),m):N)}const v=d+(n[i]||"<?>")+(e===2?"</svg>":"");if(!Array.isArray(n)||!n.hasOwnProperty("raw"))throw Error("invalid template strings array");return[Kd!==void 0?Kd.createHTML(v):v,o]};class La{constructor({strings:e,_$litType$:i},o){let l;this.parts=[];let d=0,u=0;const v=e.length-1,m=this.parts,[y,T]=o7(e,i);if(this.el=La.createElement(y,o),di.currentNode=this.el.content,i===2){const S=this.el.content,$=S.firstChild;$.remove(),S.append(...$.childNodes)}for(;(l=di.nextNode())!==null&&m.length<v;){if(l.nodeType===1){if(l.hasAttributes()){const S=[];for(const $ of l.getAttributeNames())if($.endsWith(yc)||$.startsWith(_n)){const E=T[u++];if(S.push($),E!==void 0){const N=l.getAttribute(E.toLowerCase()+yc).split(_n),G=/([.?@])?(.*)/.exec(E);m.push({type:1,index:d,name:G[2],strings:N,ctor:G[1]==="."?s7:G[1]==="?"?c7:G[1]==="@"?u7:hl})}else m.push({type:6,index:d})}for(const $ of S)l.removeAttribute($)}if(J2.test(l.tagName)){const S=l.textContent.split(_n),$=S.length-1;if($>0){l.textContent=no?no.emptyScript:"";for(let E=0;E<$;E++)l.append(S[E],xa()),di.nextNode(),m.push({type:2,index:++d});l.append(S[$],xa())}}}else if(l.nodeType===8)if(l.data===Y2)m.push({type:2,index:d});else{let S=-1;for(;(S=l.data.indexOf(_n,S+1))!==-1;)m.push({type:7,index:d}),S+=_n.length-1}d++}}static createElement(e,i){const o=gi.createElement("template");return o.innerHTML=e,o}}function oo(n,e,i=n,o){var l,d,u,v;if(e===io)return e;let m=o!==void 0?(l=i._$Co)===null||l===void 0?void 0:l[o]:i._$Cl;const y=za(e)?void 0:e._$litDirective$;return(m==null?void 0:m.constructor)!==y&&((d=m==null?void 0:m._$AO)===null||d===void 0||d.call(m,!1),y===void 0?m=void 0:(m=new y(n),m._$AT(n,i,o)),o!==void 0?((u=(v=i)._$Co)!==null&&u!==void 0?u:v._$Co=[])[o]=m:i._$Cl=m),m!==void 0&&(e=oo(n,m._$AS(n,e.values),m,o)),e}class a7{constructor(e,i){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=i}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){var i;const{el:{content:o},parts:l}=this._$AD,d=((i=e==null?void 0:e.creationScope)!==null&&i!==void 0?i:gi).importNode(o,!0);di.currentNode=d;let u=di.nextNode(),v=0,m=0,y=l[0];for(;y!==void 0;){if(v===y.index){let T;y.type===2?T=new ka(u,u.nextSibling,this,e):y.type===1?T=new y.ctor(u,y.name,y.strings,this,e):y.type===6&&(T=new d7(u,this,e)),this._$AV.push(T),y=l[++m]}v!==(y==null?void 0:y.index)&&(u=di.nextNode(),v++)}return di.currentNode=gi,d}v(e){let i=0;for(const o of this._$AV)o!==void 0&&(o.strings!==void 0?(o._$AI(e,o,i),i+=o.strings.length-2):o._$AI(e[i])),i++}}class ka{constructor(e,i,o,l){var d;this.type=2,this._$AH=Lt,this._$AN=void 0,this._$AA=e,this._$AB=i,this._$AM=o,this.options=l,this._$Cp=(d=l==null?void 0:l.isConnected)===null||d===void 0||d}get _$AU(){var e,i;return(i=(e=this._$AM)===null||e===void 0?void 0:e._$AU)!==null&&i!==void 0?i:this._$Cp}get parentNode(){let e=this._$AA.parentNode;const i=this._$AM;return i!==void 0&&(e==null?void 0:e.nodeType)===11&&(e=i.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,i=this){e=oo(this,e,i),za(e)?e===Lt||e==null||e===""?(this._$AH!==Lt&&this._$AR(),this._$AH=Lt):e!==this._$AH&&e!==io&&this._(e):e._$litType$!==void 0?this.g(e):e.nodeType!==void 0?this.$(e):i7(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!==Lt&&za(this._$AH)?this._$AA.nextSibling.data=e:this.$(gi.createTextNode(e)),this._$AH=e}g(e){var i;const{values:o,_$litType$:l}=e,d=typeof l=="number"?this._$AC(e):(l.el===void 0&&(l.el=La.createElement(l.h,this.options)),l);if(((i=this._$AH)===null||i===void 0?void 0:i._$AD)===d)this._$AH.v(o);else{const u=new a7(d,this),v=u.u(this.options);u.v(o),this.$(v),this._$AH=u}}_$AC(e){let i=eh.get(e.strings);return i===void 0&&eh.set(e.strings,i=new La(e)),i}T(e){X2(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let o,l=0;for(const d of e)l===i.length?i.push(o=new ka(this.k(xa()),this.k(xa()),this,this.options)):o=i[l],o._$AI(d),l++;l<i.length&&(this._$AR(o&&o._$AB.nextSibling,l),i.length=l)}_$AR(e=this._$AA.nextSibling,i){var o;for((o=this._$AP)===null||o===void 0||o.call(this,!1,!0,i);e&&e!==this._$AB;){const l=e.nextSibling;e.remove(),e=l}}setConnected(e){var i;this._$AM===void 0&&(this._$Cp=e,(i=this._$AP)===null||i===void 0||i.call(this,e))}}class hl{constructor(e,i,o,l,d){this.type=1,this._$AH=Lt,this._$AN=void 0,this.element=e,this.name=i,this._$AM=l,this.options=d,o.length>2||o[0]!==""||o[1]!==""?(this._$AH=Array(o.length-1).fill(new String),this.strings=o):this._$AH=Lt}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(e,i=this,o,l){const d=this.strings;let u=!1;if(d===void 0)e=oo(this,e,i,0),u=!za(e)||e!==this._$AH&&e!==io,u&&(this._$AH=e);else{const v=e;let m,y;for(e=d[0],m=0;m<d.length-1;m++)y=oo(this,v[o+m],i,m),y===io&&(y=this._$AH[m]),u||(u=!za(y)||y!==this._$AH[m]),y===Lt?e=Lt:e!==Lt&&(e+=(y!=null?y:"")+d[m+1]),this._$AH[m]=y}u&&!l&&this.j(e)}j(e){e===Lt?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e!=null?e:"")}}class s7 extends hl{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===Lt?void 0:e}}const l7=no?no.emptyScript:"";class c7 extends hl{constructor(){super(...arguments),this.type=4}j(e){e&&e!==Lt?this.element.setAttribute(this.name,l7):this.element.removeAttribute(this.name)}}class u7 extends hl{constructor(e,i,o,l,d){super(e,i,o,l,d),this.type=5}_$AI(e,i=this){var o;if((e=(o=oo(this,e,i,0))!==null&&o!==void 0?o:Lt)===io)return;const l=this._$AH,d=e===Lt&&l!==Lt||e.capture!==l.capture||e.once!==l.once||e.passive!==l.passive,u=e!==Lt&&(l===Lt||d);d&&this.element.removeEventListener(this.name,this,l),u&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){var i,o;typeof this._$AH=="function"?this._$AH.call((o=(i=this.options)===null||i===void 0?void 0:i.host)!==null&&o!==void 0?o:this.element,e):this._$AH.handleEvent(e)}}class d7{constructor(e,i,o){this.element=e,this.type=6,this._$AN=void 0,this._$AM=i,this.options=o}get _$AU(){return this._$AM._$AU}_$AI(e){oo(this,e)}}const th=Ws.litHtmlPolyfillSupport;th==null||th(La,ka),((G1=Ws.litHtmlVersions)!==null&&G1!==void 0?G1:Ws.litHtmlVersions=[]).push("2.7.4");const ef=(n,e,i)=>{var o,l;const d=(o=i==null?void 0:i.renderBefore)!==null&&o!==void 0?o:e;let u=d._$litPart$;if(u===void 0){const v=(l=i==null?void 0:i.renderBefore)!==null&&l!==void 0?l:null;d._$litPart$=u=new ka(e.insertBefore(xa(),v),v,void 0,i!=null?i:{})}return u._$AI(n),u};/**
30
30
  * @license
31
31
  * Copyright 2017 Google LLC
32
32
  * SPDX-License-Identifier: BSD-3-Clause
33
- */var K1,Y1;let me=class extends Ji{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var e,i;const o=super.createRenderRoot();return(e=(i=this.renderOptions).renderBefore)!==null&&e!==void 0||(i.renderBefore=o.firstChild),o}update(e){const i=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=Y2(i,this.renderRoot,this.renderOptions)}connectedCallback(){var e;super.connectedCallback(),(e=this._$Do)===null||e===void 0||e.setConnected(!0)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this._$Do)===null||e===void 0||e.setConnected(!1)}render(){return io}};me.finalized=!0,me._$litElement$=!0,(K1=globalThis.litElementHydrateSupport)===null||K1===void 0||K1.call(globalThis,{LitElement:me});const th=globalThis.litElementPolyfillSupport;th==null||th({LitElement:me});((Y1=globalThis.litElementVersions)!==null&&Y1!==void 0?Y1:globalThis.litElementVersions=[]).push("3.3.2");/**
33
+ */var K1,Y1;let me=class extends Ji{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var e,i;const o=super.createRenderRoot();return(e=(i=this.renderOptions).renderBefore)!==null&&e!==void 0||(i.renderBefore=o.firstChild),o}update(e){const i=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=ef(i,this.renderRoot,this.renderOptions)}connectedCallback(){var e;super.connectedCallback(),(e=this._$Do)===null||e===void 0||e.setConnected(!0)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this._$Do)===null||e===void 0||e.setConnected(!1)}render(){return io}};me.finalized=!0,me._$litElement$=!0,(K1=globalThis.litElementHydrateSupport)===null||K1===void 0||K1.call(globalThis,{LitElement:me});const rh=globalThis.litElementPolyfillSupport;rh==null||rh({LitElement:me});((Y1=globalThis.litElementVersions)!==null&&Y1!==void 0?Y1:globalThis.litElementVersions=[]).push("3.3.2");/**
34
34
  * @license
35
35
  * Copyright 2017 Google LLC
36
36
  * SPDX-License-Identifier: BSD-3-Clause
@@ -38,7 +38,7 @@
38
38
  * @license
39
39
  * Copyright 2017 Google LLC
40
40
  * SPDX-License-Identifier: BSD-3-Clause
41
- */const l7=(n,e)=>e.kind==="method"&&e.descriptor&&!("value"in e.descriptor)?{...e,finisher(i){i.createProperty(e.key,n)}}:{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:e.key,initializer(){typeof e.initializer=="function"&&(this[e.key]=e.initializer.call(this))},finisher(i){i.createProperty(e.key,n)}},c7=(n,e,i)=>{e.constructor.createProperty(i,n)};function O(n){return(e,i)=>i!==void 0?c7(n,e,i):l7(n,e)}/**
41
+ */const h7=(n,e)=>e.kind==="method"&&e.descriptor&&!("value"in e.descriptor)?{...e,finisher(i){i.createProperty(e.key,n)}}:{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:e.key,initializer(){typeof e.initializer=="function"&&(this[e.key]=e.initializer.call(this))},finisher(i){i.createProperty(e.key,n)}},f7=(n,e,i)=>{e.constructor.createProperty(i,n)};function O(n){return(e,i)=>i!==void 0?f7(n,e,i):h7(n,e)}/**
42
42
  * @license
43
43
  * Copyright 2017 Google LLC
44
44
  * SPDX-License-Identifier: BSD-3-Clause
@@ -54,15 +54,15 @@
54
54
  * @license
55
55
  * Copyright 2017 Google LLC
56
56
  * SPDX-License-Identifier: BSD-3-Clause
57
- */function u7(n){return fl({descriptor:e=>({async get(){var i;return await this.updateComplete,(i=this.renderRoot)===null||i===void 0?void 0:i.querySelector(n)},enumerable:!0,configurable:!0})})}/**
57
+ */function p7(n){return fl({descriptor:e=>({async get(){var i;return await this.updateComplete,(i=this.renderRoot)===null||i===void 0?void 0:i.querySelector(n)},enumerable:!0,configurable:!0})})}/**
58
58
  * @license
59
59
  * Copyright 2021 Google LLC
60
60
  * SPDX-License-Identifier: BSD-3-Clause
61
- */var X1;const d7=((X1=window.HTMLSlotElement)===null||X1===void 0?void 0:X1.prototype.assignedElements)!=null?(n,e)=>n.assignedElements(e):(n,e)=>n.assignedNodes(e).filter(i=>i.nodeType===Node.ELEMENT_NODE);function cn(n){const{slot:e,selector:i}=n!=null?n:{};return fl({descriptor:o=>({get(){var l;const d="slot"+(e?`[name=${e}]`:":not([name])"),u=(l=this.renderRoot)===null||l===void 0?void 0:l.querySelector(d),v=u!=null?d7(u,n):[];return i?v.filter(m=>m.matches(i)):v},enumerable:!0,configurable:!0})})}/**
61
+ */var X1;const g7=((X1=window.HTMLSlotElement)===null||X1===void 0?void 0:X1.prototype.assignedElements)!=null?(n,e)=>n.assignedElements(e):(n,e)=>n.assignedNodes(e).filter(i=>i.nodeType===Node.ELEMENT_NODE);function cn(n){const{slot:e,selector:i}=n!=null?n:{};return fl({descriptor:o=>({get(){var l;const d="slot"+(e?`[name=${e}]`:":not([name])"),u=(l=this.renderRoot)===null||l===void 0?void 0:l.querySelector(d),v=u!=null?g7(u,n):[];return i?v.filter(m=>m.matches(i)):v},enumerable:!0,configurable:!0})})}/**
62
62
  * @license
63
63
  * Copyright 2017 Google LLC
64
64
  * SPDX-License-Identifier: BSD-3-Clause
65
- */function jc(n,e,i){let o,l=n;return typeof n=="object"?(l=n.slot,o=n):o={flatten:e},i?cn({slot:l,flatten:e,selector:i}):fl({descriptor:d=>({get(){var u,v;const m="slot"+(l?`[name=${l}]`:":not([name])"),y=(u=this.renderRoot)===null||u===void 0?void 0:u.querySelector(m);return(v=y==null?void 0:y.assignedNodes(o))!==null&&v!==void 0?v:[]},enumerable:!0,configurable:!0})})}function yc(n,e){if(n){if(n instanceof e)return n;if(n instanceof ShadowRoot)return yc(n.host,e);if("parentNode"in n)return yc(n.parentElement||n.parentNode,e)}return null}const ne=n=>`brz-${n.toLowerCase()}`,R=n=>customElements.get(n)?(console.warn(`Breeze UI 💨 :: ${n} is already defined! Element registration has been blocked to prevent a crash. Check for duplicate imports of breeze-ui.`),(...e)=>{}):$a(n),Cc=function(){return Date.now().toString(36)+Math.random().toString(36).substring(2)};var h7=Object.defineProperty,f7=Object.getOwnPropertyDescriptor,Gc=(n,e,i,o)=>{for(var l=o>1?void 0:o?f7(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&h7(e,i,l),l};const X2=ne("fade-in-out");exports.FadeInOut=class extends me{constructor(){super(...arguments),this.shown=!1,this.removed=!this.shown}connectedCallback(){super.connectedCallback(),this.addEventListener("transitionend",this._handleTransitionEnd)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("transitionend",this._handleTransitionEnd)}_handleTransitionEnd(e){e.target===this&&(this.removed=!this.shown)}render(){return this.removed&&!this.shown?P``:P`<slot></slot>`}};exports.FadeInOut.styles=j`
65
+ */function Gc(n,e,i){let o,l=n;return typeof n=="object"?(l=n.slot,o=n):o={flatten:e},i?cn({slot:l,flatten:e,selector:i}):fl({descriptor:d=>({get(){var u,v;const m="slot"+(l?`[name=${l}]`:":not([name])"),y=(u=this.renderRoot)===null||u===void 0?void 0:u.querySelector(m);return(v=y==null?void 0:y.assignedNodes(o))!==null&&v!==void 0?v:[]},enumerable:!0,configurable:!0})})}function Cc(n,e){if(n){if(n instanceof e)return n;if(n instanceof ShadowRoot)return Cc(n.host,e);if("parentNode"in n)return Cc(n.parentElement||n.parentNode,e)}return null}const ne=n=>`brz-${n.toLowerCase()}`,R=n=>customElements.get(n)?(console.warn(`Breeze UI 💨 :: ${n} is already defined! Element registration has been blocked to prevent a crash. Check for duplicate imports of breeze-ui.`),(...e)=>{}):$a(n),wc=function(){return Date.now().toString(36)+Math.random().toString(36).substring(2)};var v7=Object.defineProperty,b7=Object.getOwnPropertyDescriptor,qc=(n,e,i,o)=>{for(var l=o>1?void 0:o?b7(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&v7(e,i,l),l};const tf=ne("fade-in-out");exports.FadeInOut=class extends me{constructor(){super(...arguments),this.shown=!1,this.removed=!this.shown}connectedCallback(){super.connectedCallback(),this.addEventListener("transitionend",this._handleTransitionEnd)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("transitionend",this._handleTransitionEnd)}_handleTransitionEnd(e){e.target===this&&(this.removed=!this.shown)}render(){return this.removed&&!this.shown?P``:P`<slot></slot>`}};exports.FadeInOut.styles=j`
66
66
  :host {
67
67
  opacity: 0;
68
68
  animation: fade-in 0.3s ease;
@@ -79,7 +79,7 @@
79
79
  opacity: 1;
80
80
  }
81
81
  }
82
- `;Gc([O({type:Boolean,reflect:!0})],exports.FadeInOut.prototype,"shown",2);Gc([pe()],exports.FadeInOut.prototype,"removed",2);exports.FadeInOut=Gc([R(X2)],exports.FadeInOut);/**
82
+ `;qc([O({type:Boolean,reflect:!0})],exports.FadeInOut.prototype,"shown",2);qc([pe()],exports.FadeInOut.prototype,"removed",2);exports.FadeInOut=qc([R(tf)],exports.FadeInOut);/**
83
83
  * @license
84
84
  * Copyright 2017 Google LLC
85
85
  * SPDX-License-Identifier: BSD-3-Clause
@@ -111,7 +111,7 @@
111
111
  ${i};
112
112
  }
113
113
  }
114
- `},J2=j`
114
+ `},rf=j`
115
115
  background: none;
116
116
  border: 0;
117
117
  border-radius: var(--brz-border-radius-default);
@@ -121,9 +121,9 @@
121
121
  font: inherit;
122
122
  margin: 0;
123
123
  padding: 0;
124
- `,Q2=(n,e=j``)=>j`
124
+ `,nf=(n,e=j``)=>j`
125
125
  :host ${An(n)} {
126
- ${J2};
126
+ ${rf};
127
127
  ${e};
128
128
  }
129
129
 
@@ -132,7 +132,7 @@
132
132
  }
133
133
 
134
134
  ${vi(n)}
135
- `,p7=Math.min,g7=Math.max,v7={left:"right",right:"left",bottom:"top",top:"bottom"},b7={start:"end",end:"start"};function rh(n,e,i){return g7(n,p7(e,i))}function bl(n,e){return typeof n=="function"?n(e):n}function bi(n){return n.split("-")[0]}function ml(n){return n.split("-")[1]}function ef(n){return n==="x"?"y":"x"}function tf(n){return n==="y"?"height":"width"}function ao(n){return["top","bottom"].includes(bi(n))?"y":"x"}function rf(n){return ef(ao(n))}function m7(n,e,i){i===void 0&&(i=!1);const o=ml(n),l=rf(n),d=tf(l);let u=l==="x"?o===(i?"end":"start")?"right":"left":o==="start"?"bottom":"top";return e.reference[d]>e.floating[d]&&(u=Us(u)),[u,Us(u)]}function y7(n){const e=Us(n);return[wc(n),e,wc(e)]}function wc(n){return n.replace(/start|end/g,e=>b7[e])}function C7(n,e,i){const o=["left","right"],l=["right","left"],d=["top","bottom"],u=["bottom","top"];switch(n){case"top":case"bottom":return i?e?l:o:e?o:l;case"left":case"right":return e?d:u;default:return[]}}function w7(n,e,i,o){const l=ml(n);let d=C7(bi(n),i==="start",o);return l&&(d=d.map(u=>u+"-"+l),e&&(d=d.concat(d.map(wc)))),d}function Us(n){return n.replace(/left|right|bottom|top/g,e=>v7[e])}function x7(n){return{top:0,right:0,bottom:0,left:0,...n}}function z7(n){return typeof n!="number"?x7(n):{top:n,right:n,bottom:n,left:n}}function js(n){const{x:e,y:i,width:o,height:l}=n;return{width:o,height:l,top:i,left:e,right:e+o,bottom:i+l,x:e,y:i}}function nh(n,e,i){let{reference:o,floating:l}=n;const d=ao(e),u=rf(e),v=tf(u),m=bi(e),y=d==="y",T=o.x+o.width/2-l.width/2,S=o.y+o.height/2-l.height/2,$=o[v]/2-l[v]/2;let E;switch(m){case"top":E={x:T,y:o.y-l.height};break;case"bottom":E={x:T,y:o.y+o.height};break;case"right":E={x:o.x+o.width,y:S};break;case"left":E={x:o.x-l.width,y:S};break;default:E={x:o.x,y:o.y}}switch(ml(e)){case"start":E[u]-=$*(i&&y?-1:1);break;case"end":E[u]+=$*(i&&y?-1:1);break}return E}const L7=async(n,e,i)=>{const{placement:o="bottom",strategy:l="absolute",middleware:d=[],platform:u}=i,v=d.filter(Boolean),m=await(u.isRTL==null?void 0:u.isRTL(e));let y=await u.getElementRects({reference:n,floating:e,strategy:l}),{x:T,y:S}=nh(y,o,m),$=o,E={},N=0;for(let G=0;G<v.length;G++){const{name:ee,fn:te}=v[G],{x:se,y:re,data:ue,reset:xe}=await te({x:T,y:S,initialPlacement:o,placement:$,strategy:l,middlewareData:E,rects:y,platform:u,elements:{reference:n,floating:e}});T=se!=null?se:T,S=re!=null?re:S,E={...E,[ee]:{...E[ee],...ue}},xe&&N<=50&&(N++,typeof xe=="object"&&(xe.placement&&($=xe.placement),xe.rects&&(y=xe.rects===!0?await u.getElementRects({reference:n,floating:e,strategy:l}):xe.rects),{x:T,y:S}=nh(y,$,m)),G=-1)}return{x:T,y:S,placement:$,strategy:l,middlewareData:E}};async function nf(n,e){var i;e===void 0&&(e={});const{x:o,y:l,platform:d,rects:u,elements:v,strategy:m}=n,{boundary:y="clippingAncestors",rootBoundary:T="viewport",elementContext:S="floating",altBoundary:$=!1,padding:E=0}=bl(e,n),N=z7(E),ee=v[$?S==="floating"?"reference":"floating":S],te=js(await d.getClippingRect({element:(i=await(d.isElement==null?void 0:d.isElement(ee)))==null||i?ee:ee.contextElement||await(d.getDocumentElement==null?void 0:d.getDocumentElement(v.floating)),boundary:y,rootBoundary:T,strategy:m})),se=S==="floating"?{x:o,y:l,width:u.floating.width,height:u.floating.height}:u.reference,re=await(d.getOffsetParent==null?void 0:d.getOffsetParent(v.floating)),ue=await(d.isElement==null?void 0:d.isElement(re))?await(d.getScale==null?void 0:d.getScale(re))||{x:1,y:1}:{x:1,y:1},xe=js(d.convertOffsetParentRelativeRectToViewportRelativeRect?await d.convertOffsetParentRelativeRectToViewportRelativeRect({elements:v,rect:se,offsetParent:re,strategy:m}):se);return{top:(te.top-xe.top+N.top)/ue.y,bottom:(xe.bottom-te.bottom+N.bottom)/ue.y,left:(te.left-xe.left+N.left)/ue.x,right:(xe.right-te.right+N.right)/ue.x}}const S7=function(n){return n===void 0&&(n={}),{name:"flip",options:n,async fn(e){var i,o;const{placement:l,middlewareData:d,rects:u,initialPlacement:v,platform:m,elements:y}=e,{mainAxis:T=!0,crossAxis:S=!0,fallbackPlacements:$,fallbackStrategy:E="bestFit",fallbackAxisSideDirection:N="none",flipAlignment:G=!0,...ee}=bl(n,e);if((i=d.arrow)!=null&&i.alignmentOffset)return{};const te=bi(l),se=ao(v),re=bi(v)===v,ue=await(m.isRTL==null?void 0:m.isRTL(y.floating)),xe=$||(re||!G?[Us(v)]:y7(v)),qe=N!=="none";!$&&qe&&xe.push(...w7(v,G,N,ue));const Ge=[v,...xe],Ze=await nf(e,ee),We=[];let de=((o=d.flip)==null?void 0:o.overflows)||[];if(T&&We.push(Ze[te]),S){const x=m7(l,u,ue);We.push(Ze[x[0]],Ze[x[1]])}if(de=[...de,{placement:l,overflows:We}],!We.every(x=>x<=0)){var ie,Z;const x=(((ie=d.flip)==null?void 0:ie.index)||0)+1,z=Ge[x];if(z)return{data:{index:x,overflows:de},reset:{placement:z}};let B=(Z=de.filter(X=>X.overflows[0]<=0).sort((X,be)=>X.overflows[1]-be.overflows[1])[0])==null?void 0:Z.placement;if(!B)switch(E){case"bestFit":{var k;const X=(k=de.filter(be=>{if(qe){const Me=ao(be.placement);return Me===se||Me==="y"}return!0}).map(be=>[be.placement,be.overflows.filter(Me=>Me>0).reduce((Me,Be)=>Me+Be,0)]).sort((be,Me)=>be[1]-Me[1])[0])==null?void 0:k[0];X&&(B=X);break}case"initialPlacement":B=v;break}if(l!==B)return{reset:{placement:B}}}return{}}}};async function M7(n,e){const{placement:i,platform:o,elements:l}=n,d=await(o.isRTL==null?void 0:o.isRTL(l.floating)),u=bi(i),v=ml(i),m=ao(i)==="y",y=["left","top"].includes(u)?-1:1,T=d&&m?-1:1,S=bl(e,n);let{mainAxis:$,crossAxis:E,alignmentAxis:N}=typeof S=="number"?{mainAxis:S,crossAxis:0,alignmentAxis:null}:{mainAxis:S.mainAxis||0,crossAxis:S.crossAxis||0,alignmentAxis:S.alignmentAxis};return v&&typeof N=="number"&&(E=v==="end"?N*-1:N),m?{x:E*T,y:$*y}:{x:$*y,y:E*T}}const T7=function(n){return n===void 0&&(n=0),{name:"offset",options:n,async fn(e){var i,o;const{x:l,y:d,placement:u,middlewareData:v}=e,m=await M7(e,n);return u===((i=v.offset)==null?void 0:i.placement)&&(o=v.arrow)!=null&&o.alignmentOffset?{}:{x:l+m.x,y:d+m.y,data:{...m,placement:u}}}}},k7=function(n){return n===void 0&&(n={}),{name:"shift",options:n,async fn(e){const{x:i,y:o,placement:l}=e,{mainAxis:d=!0,crossAxis:u=!1,limiter:v={fn:ee=>{let{x:te,y:se}=ee;return{x:te,y:se}}},...m}=bl(n,e),y={x:i,y:o},T=await nf(e,m),S=ao(bi(l)),$=ef(S);let E=y[$],N=y[S];if(d){const ee=$==="y"?"top":"left",te=$==="y"?"bottom":"right",se=E+T[ee],re=E-T[te];E=rh(se,E,re)}if(u){const ee=S==="y"?"top":"left",te=S==="y"?"bottom":"right",se=N+T[ee],re=N-T[te];N=rh(se,N,re)}const G=v.fn({...e,[$]:E,[S]:N});return{...G,data:{x:G.x-i,y:G.y-o,enabled:{[$]:d,[S]:u}}}}}},xc=Math.min,Qi=Math.max,Gs=Math.round,Ss=Math.floor,Wr=n=>({x:n,y:n});function yl(){return typeof window!="undefined"}function co(n){return of(n)?(n.nodeName||"").toLowerCase():"#document"}function lr(n){var e;return(n==null||(e=n.ownerDocument)==null?void 0:e.defaultView)||window}function jr(n){var e;return(e=(of(n)?n.ownerDocument:n.document)||window.document)==null?void 0:e.documentElement}function of(n){return yl()?n instanceof Node||n instanceof lr(n).Node:!1}function kr(n){return yl()?n instanceof Element||n instanceof lr(n).Element:!1}function Ur(n){return yl()?n instanceof HTMLElement||n instanceof lr(n).HTMLElement:!1}function ih(n){return!yl()||typeof ShadowRoot=="undefined"?!1:n instanceof ShadowRoot||n instanceof lr(n).ShadowRoot}function Oa(n){const{overflow:e,overflowX:i,overflowY:o,display:l}=$r(n);return/auto|scroll|overlay|hidden|clip/.test(e+o+i)&&!["inline","contents"].includes(l)}function $7(n){return["table","td","th"].includes(co(n))}function Cl(n){return[":popover-open",":modal"].some(e=>{try{return n.matches(e)}catch{return!1}})}function qc(n){const e=Kc(),i=kr(n)?$r(n):n;return i.transform!=="none"||i.perspective!=="none"||(i.containerType?i.containerType!=="normal":!1)||!e&&(i.backdropFilter?i.backdropFilter!=="none":!1)||!e&&(i.filter?i.filter!=="none":!1)||["transform","perspective","filter"].some(o=>(i.willChange||"").includes(o))||["paint","layout","strict","content"].some(o=>(i.contain||"").includes(o))}function O7(n){let e=Pn(n);for(;Ur(e)&&!so(e);){if(qc(e))return e;if(Cl(e))return null;e=Pn(e)}return null}function Kc(){return typeof CSS=="undefined"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function so(n){return["html","body","#document"].includes(co(n))}function $r(n){return lr(n).getComputedStyle(n)}function wl(n){return kr(n)?{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}:{scrollLeft:n.scrollX,scrollTop:n.scrollY}}function Pn(n){if(co(n)==="html")return n;const e=n.assignedSlot||n.parentNode||ih(n)&&n.host||jr(n);return ih(e)?e.host:e}function af(n){const e=Pn(n);return so(e)?n.ownerDocument?n.ownerDocument.body:n.body:Ur(e)&&Oa(e)?e:af(e)}function Sa(n,e,i){var o;e===void 0&&(e=[]),i===void 0&&(i=!0);const l=af(n),d=l===((o=n.ownerDocument)==null?void 0:o.body),u=lr(l);if(d){const v=zc(u);return e.concat(u,u.visualViewport||[],Oa(l)?l:[],v&&i?Sa(v):[])}return e.concat(l,Sa(l,[],i))}function zc(n){return n.parent&&Object.getPrototypeOf(n.parent)?n.frameElement:null}function sf(n){const e=$r(n);let i=parseFloat(e.width)||0,o=parseFloat(e.height)||0;const l=Ur(n),d=l?n.offsetWidth:i,u=l?n.offsetHeight:o,v=Gs(i)!==d||Gs(o)!==u;return v&&(i=d,o=u),{width:i,height:o,$:v}}function Yc(n){return kr(n)?n:n.contextElement}function eo(n){const e=Yc(n);if(!Ur(e))return Wr(1);const i=e.getBoundingClientRect(),{width:o,height:l,$:d}=sf(e);let u=(d?Gs(i.width):i.width)/o,v=(d?Gs(i.height):i.height)/l;return(!u||!Number.isFinite(u))&&(u=1),(!v||!Number.isFinite(v))&&(v=1),{x:u,y:v}}const E7=Wr(0);function lf(n){const e=lr(n);return!Kc()||!e.visualViewport?E7:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function _7(n,e,i){return e===void 0&&(e=!1),!i||e&&i!==lr(n)?!1:e}function mi(n,e,i,o){e===void 0&&(e=!1),i===void 0&&(i=!1);const l=n.getBoundingClientRect(),d=Yc(n);let u=Wr(1);e&&(o?kr(o)&&(u=eo(o)):u=eo(n));const v=_7(d,i,o)?lf(d):Wr(0);let m=(l.left+v.x)/u.x,y=(l.top+v.y)/u.y,T=l.width/u.x,S=l.height/u.y;if(d){const $=lr(d),E=o&&kr(o)?lr(o):o;let N=$,G=zc(N);for(;G&&o&&E!==N;){const ee=eo(G),te=G.getBoundingClientRect(),se=$r(G),re=te.left+(G.clientLeft+parseFloat(se.paddingLeft))*ee.x,ue=te.top+(G.clientTop+parseFloat(se.paddingTop))*ee.y;m*=ee.x,y*=ee.y,T*=ee.x,S*=ee.y,m+=re,y+=ue,N=lr(G),G=zc(N)}}return js({width:T,height:S,x:m,y})}function Xc(n,e){const i=wl(n).scrollLeft;return e?e.left+i:mi(jr(n)).left+i}function cf(n,e,i){i===void 0&&(i=!1);const o=n.getBoundingClientRect(),l=o.left+e.scrollLeft-(i?0:Xc(n,o)),d=o.top+e.scrollTop;return{x:l,y:d}}function I7(n){let{elements:e,rect:i,offsetParent:o,strategy:l}=n;const d=l==="fixed",u=jr(o),v=e?Cl(e.floating):!1;if(o===u||v&&d)return i;let m={scrollLeft:0,scrollTop:0},y=Wr(1);const T=Wr(0),S=Ur(o);if((S||!S&&!d)&&((co(o)!=="body"||Oa(u))&&(m=wl(o)),Ur(o))){const E=mi(o);y=eo(o),T.x=E.x+o.clientLeft,T.y=E.y+o.clientTop}const $=u&&!S&&!d?cf(u,m,!0):Wr(0);return{width:i.width*y.x,height:i.height*y.y,x:i.x*y.x-m.scrollLeft*y.x+T.x+$.x,y:i.y*y.y-m.scrollTop*y.y+T.y+$.y}}function A7(n){return Array.from(n.getClientRects())}function P7(n){const e=jr(n),i=wl(n),o=n.ownerDocument.body,l=Qi(e.scrollWidth,e.clientWidth,o.scrollWidth,o.clientWidth),d=Qi(e.scrollHeight,e.clientHeight,o.scrollHeight,o.clientHeight);let u=-i.scrollLeft+Xc(n);const v=-i.scrollTop;return $r(o).direction==="rtl"&&(u+=Qi(e.clientWidth,o.clientWidth)-l),{width:l,height:d,x:u,y:v}}function D7(n,e){const i=lr(n),o=jr(n),l=i.visualViewport;let d=o.clientWidth,u=o.clientHeight,v=0,m=0;if(l){d=l.width,u=l.height;const y=Kc();(!y||y&&e==="fixed")&&(v=l.offsetLeft,m=l.offsetTop)}return{width:d,height:u,x:v,y:m}}function N7(n,e){const i=mi(n,!0,e==="fixed"),o=i.top+n.clientTop,l=i.left+n.clientLeft,d=Ur(n)?eo(n):Wr(1),u=n.clientWidth*d.x,v=n.clientHeight*d.y,m=l*d.x,y=o*d.y;return{width:u,height:v,x:m,y}}function oh(n,e,i){let o;if(e==="viewport")o=D7(n,i);else if(e==="document")o=P7(jr(n));else if(kr(e))o=N7(e,i);else{const l=lf(n);o={x:e.x-l.x,y:e.y-l.y,width:e.width,height:e.height}}return js(o)}function uf(n,e){const i=Pn(n);return i===e||!kr(i)||so(i)?!1:$r(i).position==="fixed"||uf(i,e)}function H7(n,e){const i=e.get(n);if(i)return i;let o=Sa(n,[],!1).filter(v=>kr(v)&&co(v)!=="body"),l=null;const d=$r(n).position==="fixed";let u=d?Pn(n):n;for(;kr(u)&&!so(u);){const v=$r(u),m=qc(u);!m&&v.position==="fixed"&&(l=null),(d?!m&&!l:!m&&v.position==="static"&&!!l&&["absolute","fixed"].includes(l.position)||Oa(u)&&!m&&uf(n,u))?o=o.filter(T=>T!==u):l=v,u=Pn(u)}return e.set(n,o),o}function R7(n){let{element:e,boundary:i,rootBoundary:o,strategy:l}=n;const u=[...i==="clippingAncestors"?Cl(e)?[]:H7(e,this._c):[].concat(i),o],v=u[0],m=u.reduce((y,T)=>{const S=oh(e,T,l);return y.top=Qi(S.top,y.top),y.right=xc(S.right,y.right),y.bottom=xc(S.bottom,y.bottom),y.left=Qi(S.left,y.left),y},oh(e,v,l));return{width:m.right-m.left,height:m.bottom-m.top,x:m.left,y:m.top}}function F7(n){const{width:e,height:i}=sf(n);return{width:e,height:i}}function B7(n,e,i){const o=Ur(e),l=jr(e),d=i==="fixed",u=mi(n,!0,d,e);let v={scrollLeft:0,scrollTop:0};const m=Wr(0);if(o||!o&&!d)if((co(e)!=="body"||Oa(l))&&(v=wl(e)),o){const $=mi(e,!0,d,e);m.x=$.x+e.clientLeft,m.y=$.y+e.clientTop}else l&&(m.x=Xc(l));const y=l&&!o&&!d?cf(l,v):Wr(0),T=u.left+v.scrollLeft-m.x-y.x,S=u.top+v.scrollTop-m.y-y.y;return{x:T,y:S,width:u.width,height:u.height}}function J1(n){return $r(n).position==="static"}function ah(n,e){if(!Ur(n)||$r(n).position==="fixed")return null;if(e)return e(n);let i=n.offsetParent;return jr(n)===i&&(i=i.ownerDocument.body),i}function df(n,e){const i=lr(n);if(Cl(n))return i;if(!Ur(n)){let l=Pn(n);for(;l&&!so(l);){if(kr(l)&&!J1(l))return l;l=Pn(l)}return i}let o=ah(n,e);for(;o&&$7(o)&&J1(o);)o=ah(o,e);return o&&so(o)&&J1(o)&&!qc(o)?i:o||O7(n)||i}const V7=async function(n){const e=this.getOffsetParent||df,i=this.getDimensions,o=await i(n.floating);return{reference:B7(n.reference,await e(n.floating),n.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function Z7(n){return $r(n).direction==="rtl"}const W7={convertOffsetParentRelativeRectToViewportRelativeRect:I7,getDocumentElement:jr,getClippingRect:R7,getOffsetParent:df,getElementRects:V7,getClientRects:A7,getDimensions:F7,getScale:eo,isElement:kr,isRTL:Z7};function U7(n,e){let i=null,o;const l=jr(n);function d(){var v;clearTimeout(o),(v=i)==null||v.disconnect(),i=null}function u(v,m){v===void 0&&(v=!1),m===void 0&&(m=1),d();const{left:y,top:T,width:S,height:$}=n.getBoundingClientRect();if(v||e(),!S||!$)return;const E=Ss(T),N=Ss(l.clientWidth-(y+S)),G=Ss(l.clientHeight-(T+$)),ee=Ss(y),se={rootMargin:-E+"px "+-N+"px "+-G+"px "+-ee+"px",threshold:Qi(0,xc(1,m))||1};let re=!0;function ue(xe){const qe=xe[0].intersectionRatio;if(qe!==m){if(!re)return u();qe?u(!1,qe):o=setTimeout(()=>{u(!1,1e-7)},1e3)}re=!1}try{i=new IntersectionObserver(ue,{...se,root:l.ownerDocument})}catch{i=new IntersectionObserver(ue,se)}i.observe(n)}return u(!0),d}function j7(n,e,i,o){o===void 0&&(o={});const{ancestorScroll:l=!0,ancestorResize:d=!0,elementResize:u=typeof ResizeObserver=="function",layoutShift:v=typeof IntersectionObserver=="function",animationFrame:m=!1}=o,y=Yc(n),T=l||d?[...y?Sa(y):[],...Sa(e)]:[];T.forEach(te=>{l&&te.addEventListener("scroll",i,{passive:!0}),d&&te.addEventListener("resize",i)});const S=y&&v?U7(y,i):null;let $=-1,E=null;u&&(E=new ResizeObserver(te=>{let[se]=te;se&&se.target===y&&E&&(E.unobserve(e),cancelAnimationFrame($),$=requestAnimationFrame(()=>{var re;(re=E)==null||re.observe(e)})),i()}),y&&!m&&E.observe(y),E.observe(e));let N,G=m?mi(n):null;m&&ee();function ee(){const te=mi(n);G&&(te.x!==G.x||te.y!==G.y||te.width!==G.width||te.height!==G.height)&&i(),G=te,N=requestAnimationFrame(ee)}return i(),()=>{var te;T.forEach(se=>{l&&se.removeEventListener("scroll",i),d&&se.removeEventListener("resize",i)}),S==null||S(),(te=E)==null||te.disconnect(),E=null,m&&cancelAnimationFrame(N)}}const G7=T7,q7=k7,K7=S7,Y7=(n,e,i)=>{const o=new Map,l={platform:W7,...i},d={...l.platform,_c:o};return L7(n,e,{...l,platform:d})};var X7=Object.defineProperty,J7=Object.getOwnPropertyDescriptor,Tt=(n,e,i,o)=>{for(var l=o>1?void 0:o?J7(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&X7(e,i,l),l};let Q7=0;const Jc=ne("popover"),hf=ne("pure-popover"),ff=["click","hover","focus"],[qs,Lc,li]=ff,Qc=["dialog","tooltip","menu"],[e9]=Qc;class pf extends CustomEvent{constructor(e){super(`${Jc}-${e}`,{bubbles:!0,composed:!0})}}exports.PurePopover=class extends me{constructor(){super(...arguments),this.distance=4,this.skidding=0,this.delayOnClose=100,this.delayOnOpen=100,this.isFixed=!1,this.isOpen=!1,this.placement="top",this.popoverRole=e9,this.disabled=!1,this.enablePositionTracking=!1,this.popoverId=`popover-${++Q7}`,this.delayTimeout=0}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this.cleanupFunction)==null||e.call(this)}updatePosition(){}async updated(e){super.updated(e),e.has("isOpen")&&this.isOpen&&!this.cleanupFunction&&this.createPopover()}get floatingUIOptions(){return{placement:this.placement,strategy:this.isFixed?"fixed":"absolute",middleware:[G7({mainAxis:this.distance,crossAxis:this.skidding}),K7(),q7()]}}createPopover(){this.cleanupFunction||(this.cleanupFunction=j7(this.referenceElement,this.popoverElement,()=>{const e=this.floatingUIOptions;if(!this.isOpen){this.destroyPopover();return}Y7(this.referenceElement,this.popoverElement,e).then(({x:i,y:o})=>{Object.assign(this.popoverElement.style,{left:`${i}px`,top:`${o}px`,position:e.strategy})})}))}destroyPopover(){var e;(e=this.cleanupFunction)==null||e.call(this),this.cleanupFunction=void 0}get referenceElement(){var i;const e=(i=this.shadowRoot)==null?void 0:i.querySelector("slot");return e==null?void 0:e.assignedElements({flatten:!0})[0]}get contentElement(){var i;const e=(i=this.shadowRoot)==null?void 0:i.querySelector("slot[name=content]");return e==null?void 0:e.assignedNodes({flatten:!0})[0]}get popoverElement(){var e;return(e=this.shadowRoot)==null?void 0:e.querySelector(".popover-container")}emit(e){this.dispatchEvent(new pf(e))}async open(){this.disabled||(this.emit("open"),clearTimeout(this.delayTimeout),this.delayTimeout=window.setTimeout(async()=>{this.isOpen=!0,await this.updateComplete,this.createPopover(),this.emit("after-open")},this.delayOnOpen))}async close(){this.disabled||(this.emit("close"),clearTimeout(this.delayTimeout),this.delayTimeout=window.setTimeout(async()=>{this.isOpen=!1,this.destroyPopover(),await this.updateComplete,this.emit("after-close")},this.delayOnClose))}async toggleIsOpen(){this.isOpen?await this.close():await this.open()}render(){return this.enablePositionTracking||this.isOpen?P`
135
+ `,m7=Math.min,y7=Math.max,C7={left:"right",right:"left",bottom:"top",top:"bottom"},w7={start:"end",end:"start"};function nh(n,e,i){return y7(n,m7(e,i))}function bl(n,e){return typeof n=="function"?n(e):n}function bi(n){return n.split("-")[0]}function ml(n){return n.split("-")[1]}function of(n){return n==="x"?"y":"x"}function af(n){return n==="y"?"height":"width"}function ao(n){return["top","bottom"].includes(bi(n))?"y":"x"}function sf(n){return of(ao(n))}function x7(n,e,i){i===void 0&&(i=!1);const o=ml(n),l=sf(n),d=af(l);let u=l==="x"?o===(i?"end":"start")?"right":"left":o==="start"?"bottom":"top";return e.reference[d]>e.floating[d]&&(u=Us(u)),[u,Us(u)]}function z7(n){const e=Us(n);return[xc(n),e,xc(e)]}function xc(n){return n.replace(/start|end/g,e=>w7[e])}function L7(n,e,i){const o=["left","right"],l=["right","left"],d=["top","bottom"],u=["bottom","top"];switch(n){case"top":case"bottom":return i?e?l:o:e?o:l;case"left":case"right":return e?d:u;default:return[]}}function S7(n,e,i,o){const l=ml(n);let d=L7(bi(n),i==="start",o);return l&&(d=d.map(u=>u+"-"+l),e&&(d=d.concat(d.map(xc)))),d}function Us(n){return n.replace(/left|right|bottom|top/g,e=>C7[e])}function M7(n){return{top:0,right:0,bottom:0,left:0,...n}}function T7(n){return typeof n!="number"?M7(n):{top:n,right:n,bottom:n,left:n}}function js(n){const{x:e,y:i,width:o,height:l}=n;return{width:o,height:l,top:i,left:e,right:e+o,bottom:i+l,x:e,y:i}}function ih(n,e,i){let{reference:o,floating:l}=n;const d=ao(e),u=sf(e),v=af(u),m=bi(e),y=d==="y",T=o.x+o.width/2-l.width/2,S=o.y+o.height/2-l.height/2,$=o[v]/2-l[v]/2;let E;switch(m){case"top":E={x:T,y:o.y-l.height};break;case"bottom":E={x:T,y:o.y+o.height};break;case"right":E={x:o.x+o.width,y:S};break;case"left":E={x:o.x-l.width,y:S};break;default:E={x:o.x,y:o.y}}switch(ml(e)){case"start":E[u]-=$*(i&&y?-1:1);break;case"end":E[u]+=$*(i&&y?-1:1);break}return E}const k7=async(n,e,i)=>{const{placement:o="bottom",strategy:l="absolute",middleware:d=[],platform:u}=i,v=d.filter(Boolean),m=await(u.isRTL==null?void 0:u.isRTL(e));let y=await u.getElementRects({reference:n,floating:e,strategy:l}),{x:T,y:S}=ih(y,o,m),$=o,E={},N=0;for(let G=0;G<v.length;G++){const{name:ee,fn:te}=v[G],{x:se,y:re,data:ue,reset:xe}=await te({x:T,y:S,initialPlacement:o,placement:$,strategy:l,middlewareData:E,rects:y,platform:u,elements:{reference:n,floating:e}});T=se!=null?se:T,S=re!=null?re:S,E={...E,[ee]:{...E[ee],...ue}},xe&&N<=50&&(N++,typeof xe=="object"&&(xe.placement&&($=xe.placement),xe.rects&&(y=xe.rects===!0?await u.getElementRects({reference:n,floating:e,strategy:l}):xe.rects),{x:T,y:S}=ih(y,$,m)),G=-1)}return{x:T,y:S,placement:$,strategy:l,middlewareData:E}};async function lf(n,e){var i;e===void 0&&(e={});const{x:o,y:l,platform:d,rects:u,elements:v,strategy:m}=n,{boundary:y="clippingAncestors",rootBoundary:T="viewport",elementContext:S="floating",altBoundary:$=!1,padding:E=0}=bl(e,n),N=T7(E),ee=v[$?S==="floating"?"reference":"floating":S],te=js(await d.getClippingRect({element:(i=await(d.isElement==null?void 0:d.isElement(ee)))==null||i?ee:ee.contextElement||await(d.getDocumentElement==null?void 0:d.getDocumentElement(v.floating)),boundary:y,rootBoundary:T,strategy:m})),se=S==="floating"?{x:o,y:l,width:u.floating.width,height:u.floating.height}:u.reference,re=await(d.getOffsetParent==null?void 0:d.getOffsetParent(v.floating)),ue=await(d.isElement==null?void 0:d.isElement(re))?await(d.getScale==null?void 0:d.getScale(re))||{x:1,y:1}:{x:1,y:1},xe=js(d.convertOffsetParentRelativeRectToViewportRelativeRect?await d.convertOffsetParentRelativeRectToViewportRelativeRect({elements:v,rect:se,offsetParent:re,strategy:m}):se);return{top:(te.top-xe.top+N.top)/ue.y,bottom:(xe.bottom-te.bottom+N.bottom)/ue.y,left:(te.left-xe.left+N.left)/ue.x,right:(xe.right-te.right+N.right)/ue.x}}const $7=function(n){return n===void 0&&(n={}),{name:"flip",options:n,async fn(e){var i,o;const{placement:l,middlewareData:d,rects:u,initialPlacement:v,platform:m,elements:y}=e,{mainAxis:T=!0,crossAxis:S=!0,fallbackPlacements:$,fallbackStrategy:E="bestFit",fallbackAxisSideDirection:N="none",flipAlignment:G=!0,...ee}=bl(n,e);if((i=d.arrow)!=null&&i.alignmentOffset)return{};const te=bi(l),se=ao(v),re=bi(v)===v,ue=await(m.isRTL==null?void 0:m.isRTL(y.floating)),xe=$||(re||!G?[Us(v)]:z7(v)),qe=N!=="none";!$&&qe&&xe.push(...S7(v,G,N,ue));const Ge=[v,...xe],Ze=await lf(e,ee),We=[];let de=((o=d.flip)==null?void 0:o.overflows)||[];if(T&&We.push(Ze[te]),S){const x=x7(l,u,ue);We.push(Ze[x[0]],Ze[x[1]])}if(de=[...de,{placement:l,overflows:We}],!We.every(x=>x<=0)){var ie,Z;const x=(((ie=d.flip)==null?void 0:ie.index)||0)+1,z=Ge[x];if(z)return{data:{index:x,overflows:de},reset:{placement:z}};let B=(Z=de.filter(X=>X.overflows[0]<=0).sort((X,be)=>X.overflows[1]-be.overflows[1])[0])==null?void 0:Z.placement;if(!B)switch(E){case"bestFit":{var k;const X=(k=de.filter(be=>{if(qe){const Me=ao(be.placement);return Me===se||Me==="y"}return!0}).map(be=>[be.placement,be.overflows.filter(Me=>Me>0).reduce((Me,Be)=>Me+Be,0)]).sort((be,Me)=>be[1]-Me[1])[0])==null?void 0:k[0];X&&(B=X);break}case"initialPlacement":B=v;break}if(l!==B)return{reset:{placement:B}}}return{}}}};async function O7(n,e){const{placement:i,platform:o,elements:l}=n,d=await(o.isRTL==null?void 0:o.isRTL(l.floating)),u=bi(i),v=ml(i),m=ao(i)==="y",y=["left","top"].includes(u)?-1:1,T=d&&m?-1:1,S=bl(e,n);let{mainAxis:$,crossAxis:E,alignmentAxis:N}=typeof S=="number"?{mainAxis:S,crossAxis:0,alignmentAxis:null}:{mainAxis:S.mainAxis||0,crossAxis:S.crossAxis||0,alignmentAxis:S.alignmentAxis};return v&&typeof N=="number"&&(E=v==="end"?N*-1:N),m?{x:E*T,y:$*y}:{x:$*y,y:E*T}}const E7=function(n){return n===void 0&&(n=0),{name:"offset",options:n,async fn(e){var i,o;const{x:l,y:d,placement:u,middlewareData:v}=e,m=await O7(e,n);return u===((i=v.offset)==null?void 0:i.placement)&&(o=v.arrow)!=null&&o.alignmentOffset?{}:{x:l+m.x,y:d+m.y,data:{...m,placement:u}}}}},_7=function(n){return n===void 0&&(n={}),{name:"shift",options:n,async fn(e){const{x:i,y:o,placement:l}=e,{mainAxis:d=!0,crossAxis:u=!1,limiter:v={fn:ee=>{let{x:te,y:se}=ee;return{x:te,y:se}}},...m}=bl(n,e),y={x:i,y:o},T=await lf(e,m),S=ao(bi(l)),$=of(S);let E=y[$],N=y[S];if(d){const ee=$==="y"?"top":"left",te=$==="y"?"bottom":"right",se=E+T[ee],re=E-T[te];E=nh(se,E,re)}if(u){const ee=S==="y"?"top":"left",te=S==="y"?"bottom":"right",se=N+T[ee],re=N-T[te];N=nh(se,N,re)}const G=v.fn({...e,[$]:E,[S]:N});return{...G,data:{x:G.x-i,y:G.y-o,enabled:{[$]:d,[S]:u}}}}}},zc=Math.min,Qi=Math.max,Gs=Math.round,Ss=Math.floor,Wr=n=>({x:n,y:n});function yl(){return typeof window!="undefined"}function co(n){return cf(n)?(n.nodeName||"").toLowerCase():"#document"}function lr(n){var e;return(n==null||(e=n.ownerDocument)==null?void 0:e.defaultView)||window}function jr(n){var e;return(e=(cf(n)?n.ownerDocument:n.document)||window.document)==null?void 0:e.documentElement}function cf(n){return yl()?n instanceof Node||n instanceof lr(n).Node:!1}function kr(n){return yl()?n instanceof Element||n instanceof lr(n).Element:!1}function Ur(n){return yl()?n instanceof HTMLElement||n instanceof lr(n).HTMLElement:!1}function oh(n){return!yl()||typeof ShadowRoot=="undefined"?!1:n instanceof ShadowRoot||n instanceof lr(n).ShadowRoot}function Oa(n){const{overflow:e,overflowX:i,overflowY:o,display:l}=$r(n);return/auto|scroll|overlay|hidden|clip/.test(e+o+i)&&!["inline","contents"].includes(l)}function I7(n){return["table","td","th"].includes(co(n))}function Cl(n){return[":popover-open",":modal"].some(e=>{try{return n.matches(e)}catch{return!1}})}function Kc(n){const e=Yc(),i=kr(n)?$r(n):n;return i.transform!=="none"||i.perspective!=="none"||(i.containerType?i.containerType!=="normal":!1)||!e&&(i.backdropFilter?i.backdropFilter!=="none":!1)||!e&&(i.filter?i.filter!=="none":!1)||["transform","perspective","filter"].some(o=>(i.willChange||"").includes(o))||["paint","layout","strict","content"].some(o=>(i.contain||"").includes(o))}function A7(n){let e=Pn(n);for(;Ur(e)&&!so(e);){if(Kc(e))return e;if(Cl(e))return null;e=Pn(e)}return null}function Yc(){return typeof CSS=="undefined"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function so(n){return["html","body","#document"].includes(co(n))}function $r(n){return lr(n).getComputedStyle(n)}function wl(n){return kr(n)?{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}:{scrollLeft:n.scrollX,scrollTop:n.scrollY}}function Pn(n){if(co(n)==="html")return n;const e=n.assignedSlot||n.parentNode||oh(n)&&n.host||jr(n);return oh(e)?e.host:e}function uf(n){const e=Pn(n);return so(e)?n.ownerDocument?n.ownerDocument.body:n.body:Ur(e)&&Oa(e)?e:uf(e)}function Sa(n,e,i){var o;e===void 0&&(e=[]),i===void 0&&(i=!0);const l=uf(n),d=l===((o=n.ownerDocument)==null?void 0:o.body),u=lr(l);if(d){const v=Lc(u);return e.concat(u,u.visualViewport||[],Oa(l)?l:[],v&&i?Sa(v):[])}return e.concat(l,Sa(l,[],i))}function Lc(n){return n.parent&&Object.getPrototypeOf(n.parent)?n.frameElement:null}function df(n){const e=$r(n);let i=parseFloat(e.width)||0,o=parseFloat(e.height)||0;const l=Ur(n),d=l?n.offsetWidth:i,u=l?n.offsetHeight:o,v=Gs(i)!==d||Gs(o)!==u;return v&&(i=d,o=u),{width:i,height:o,$:v}}function Xc(n){return kr(n)?n:n.contextElement}function eo(n){const e=Xc(n);if(!Ur(e))return Wr(1);const i=e.getBoundingClientRect(),{width:o,height:l,$:d}=df(e);let u=(d?Gs(i.width):i.width)/o,v=(d?Gs(i.height):i.height)/l;return(!u||!Number.isFinite(u))&&(u=1),(!v||!Number.isFinite(v))&&(v=1),{x:u,y:v}}const P7=Wr(0);function hf(n){const e=lr(n);return!Yc()||!e.visualViewport?P7:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function D7(n,e,i){return e===void 0&&(e=!1),!i||e&&i!==lr(n)?!1:e}function mi(n,e,i,o){e===void 0&&(e=!1),i===void 0&&(i=!1);const l=n.getBoundingClientRect(),d=Xc(n);let u=Wr(1);e&&(o?kr(o)&&(u=eo(o)):u=eo(n));const v=D7(d,i,o)?hf(d):Wr(0);let m=(l.left+v.x)/u.x,y=(l.top+v.y)/u.y,T=l.width/u.x,S=l.height/u.y;if(d){const $=lr(d),E=o&&kr(o)?lr(o):o;let N=$,G=Lc(N);for(;G&&o&&E!==N;){const ee=eo(G),te=G.getBoundingClientRect(),se=$r(G),re=te.left+(G.clientLeft+parseFloat(se.paddingLeft))*ee.x,ue=te.top+(G.clientTop+parseFloat(se.paddingTop))*ee.y;m*=ee.x,y*=ee.y,T*=ee.x,S*=ee.y,m+=re,y+=ue,N=lr(G),G=Lc(N)}}return js({width:T,height:S,x:m,y})}function Jc(n,e){const i=wl(n).scrollLeft;return e?e.left+i:mi(jr(n)).left+i}function ff(n,e,i){i===void 0&&(i=!1);const o=n.getBoundingClientRect(),l=o.left+e.scrollLeft-(i?0:Jc(n,o)),d=o.top+e.scrollTop;return{x:l,y:d}}function N7(n){let{elements:e,rect:i,offsetParent:o,strategy:l}=n;const d=l==="fixed",u=jr(o),v=e?Cl(e.floating):!1;if(o===u||v&&d)return i;let m={scrollLeft:0,scrollTop:0},y=Wr(1);const T=Wr(0),S=Ur(o);if((S||!S&&!d)&&((co(o)!=="body"||Oa(u))&&(m=wl(o)),Ur(o))){const E=mi(o);y=eo(o),T.x=E.x+o.clientLeft,T.y=E.y+o.clientTop}const $=u&&!S&&!d?ff(u,m,!0):Wr(0);return{width:i.width*y.x,height:i.height*y.y,x:i.x*y.x-m.scrollLeft*y.x+T.x+$.x,y:i.y*y.y-m.scrollTop*y.y+T.y+$.y}}function H7(n){return Array.from(n.getClientRects())}function R7(n){const e=jr(n),i=wl(n),o=n.ownerDocument.body,l=Qi(e.scrollWidth,e.clientWidth,o.scrollWidth,o.clientWidth),d=Qi(e.scrollHeight,e.clientHeight,o.scrollHeight,o.clientHeight);let u=-i.scrollLeft+Jc(n);const v=-i.scrollTop;return $r(o).direction==="rtl"&&(u+=Qi(e.clientWidth,o.clientWidth)-l),{width:l,height:d,x:u,y:v}}function F7(n,e){const i=lr(n),o=jr(n),l=i.visualViewport;let d=o.clientWidth,u=o.clientHeight,v=0,m=0;if(l){d=l.width,u=l.height;const y=Yc();(!y||y&&e==="fixed")&&(v=l.offsetLeft,m=l.offsetTop)}return{width:d,height:u,x:v,y:m}}function B7(n,e){const i=mi(n,!0,e==="fixed"),o=i.top+n.clientTop,l=i.left+n.clientLeft,d=Ur(n)?eo(n):Wr(1),u=n.clientWidth*d.x,v=n.clientHeight*d.y,m=l*d.x,y=o*d.y;return{width:u,height:v,x:m,y}}function ah(n,e,i){let o;if(e==="viewport")o=F7(n,i);else if(e==="document")o=R7(jr(n));else if(kr(e))o=B7(e,i);else{const l=hf(n);o={x:e.x-l.x,y:e.y-l.y,width:e.width,height:e.height}}return js(o)}function pf(n,e){const i=Pn(n);return i===e||!kr(i)||so(i)?!1:$r(i).position==="fixed"||pf(i,e)}function V7(n,e){const i=e.get(n);if(i)return i;let o=Sa(n,[],!1).filter(v=>kr(v)&&co(v)!=="body"),l=null;const d=$r(n).position==="fixed";let u=d?Pn(n):n;for(;kr(u)&&!so(u);){const v=$r(u),m=Kc(u);!m&&v.position==="fixed"&&(l=null),(d?!m&&!l:!m&&v.position==="static"&&!!l&&["absolute","fixed"].includes(l.position)||Oa(u)&&!m&&pf(n,u))?o=o.filter(T=>T!==u):l=v,u=Pn(u)}return e.set(n,o),o}function Z7(n){let{element:e,boundary:i,rootBoundary:o,strategy:l}=n;const u=[...i==="clippingAncestors"?Cl(e)?[]:V7(e,this._c):[].concat(i),o],v=u[0],m=u.reduce((y,T)=>{const S=ah(e,T,l);return y.top=Qi(S.top,y.top),y.right=zc(S.right,y.right),y.bottom=zc(S.bottom,y.bottom),y.left=Qi(S.left,y.left),y},ah(e,v,l));return{width:m.right-m.left,height:m.bottom-m.top,x:m.left,y:m.top}}function W7(n){const{width:e,height:i}=df(n);return{width:e,height:i}}function U7(n,e,i){const o=Ur(e),l=jr(e),d=i==="fixed",u=mi(n,!0,d,e);let v={scrollLeft:0,scrollTop:0};const m=Wr(0);if(o||!o&&!d)if((co(e)!=="body"||Oa(l))&&(v=wl(e)),o){const $=mi(e,!0,d,e);m.x=$.x+e.clientLeft,m.y=$.y+e.clientTop}else l&&(m.x=Jc(l));const y=l&&!o&&!d?ff(l,v):Wr(0),T=u.left+v.scrollLeft-m.x-y.x,S=u.top+v.scrollTop-m.y-y.y;return{x:T,y:S,width:u.width,height:u.height}}function J1(n){return $r(n).position==="static"}function sh(n,e){if(!Ur(n)||$r(n).position==="fixed")return null;if(e)return e(n);let i=n.offsetParent;return jr(n)===i&&(i=i.ownerDocument.body),i}function gf(n,e){const i=lr(n);if(Cl(n))return i;if(!Ur(n)){let l=Pn(n);for(;l&&!so(l);){if(kr(l)&&!J1(l))return l;l=Pn(l)}return i}let o=sh(n,e);for(;o&&I7(o)&&J1(o);)o=sh(o,e);return o&&so(o)&&J1(o)&&!Kc(o)?i:o||A7(n)||i}const j7=async function(n){const e=this.getOffsetParent||gf,i=this.getDimensions,o=await i(n.floating);return{reference:U7(n.reference,await e(n.floating),n.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function G7(n){return $r(n).direction==="rtl"}const q7={convertOffsetParentRelativeRectToViewportRelativeRect:N7,getDocumentElement:jr,getClippingRect:Z7,getOffsetParent:gf,getElementRects:j7,getClientRects:H7,getDimensions:W7,getScale:eo,isElement:kr,isRTL:G7};function K7(n,e){let i=null,o;const l=jr(n);function d(){var v;clearTimeout(o),(v=i)==null||v.disconnect(),i=null}function u(v,m){v===void 0&&(v=!1),m===void 0&&(m=1),d();const{left:y,top:T,width:S,height:$}=n.getBoundingClientRect();if(v||e(),!S||!$)return;const E=Ss(T),N=Ss(l.clientWidth-(y+S)),G=Ss(l.clientHeight-(T+$)),ee=Ss(y),se={rootMargin:-E+"px "+-N+"px "+-G+"px "+-ee+"px",threshold:Qi(0,zc(1,m))||1};let re=!0;function ue(xe){const qe=xe[0].intersectionRatio;if(qe!==m){if(!re)return u();qe?u(!1,qe):o=setTimeout(()=>{u(!1,1e-7)},1e3)}re=!1}try{i=new IntersectionObserver(ue,{...se,root:l.ownerDocument})}catch{i=new IntersectionObserver(ue,se)}i.observe(n)}return u(!0),d}function Y7(n,e,i,o){o===void 0&&(o={});const{ancestorScroll:l=!0,ancestorResize:d=!0,elementResize:u=typeof ResizeObserver=="function",layoutShift:v=typeof IntersectionObserver=="function",animationFrame:m=!1}=o,y=Xc(n),T=l||d?[...y?Sa(y):[],...Sa(e)]:[];T.forEach(te=>{l&&te.addEventListener("scroll",i,{passive:!0}),d&&te.addEventListener("resize",i)});const S=y&&v?K7(y,i):null;let $=-1,E=null;u&&(E=new ResizeObserver(te=>{let[se]=te;se&&se.target===y&&E&&(E.unobserve(e),cancelAnimationFrame($),$=requestAnimationFrame(()=>{var re;(re=E)==null||re.observe(e)})),i()}),y&&!m&&E.observe(y),E.observe(e));let N,G=m?mi(n):null;m&&ee();function ee(){const te=mi(n);G&&(te.x!==G.x||te.y!==G.y||te.width!==G.width||te.height!==G.height)&&i(),G=te,N=requestAnimationFrame(ee)}return i(),()=>{var te;T.forEach(se=>{l&&se.removeEventListener("scroll",i),d&&se.removeEventListener("resize",i)}),S==null||S(),(te=E)==null||te.disconnect(),E=null,m&&cancelAnimationFrame(N)}}const X7=E7,J7=_7,Q7=$7,e9=(n,e,i)=>{const o=new Map,l={platform:q7,...i},d={...l.platform,_c:o};return k7(n,e,{...l,platform:d})};var t9=Object.defineProperty,r9=Object.getOwnPropertyDescriptor,Tt=(n,e,i,o)=>{for(var l=o>1?void 0:o?r9(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&t9(e,i,l),l};let n9=0;const Qc=ne("popover"),vf=ne("pure-popover"),bf=["click","hover","focus"],[qs,Sc,li]=bf,e0=["dialog","tooltip","menu"],[i9]=e0;class mf extends CustomEvent{constructor(e){super(`${Qc}-${e}`,{bubbles:!0,composed:!0})}}exports.PurePopover=class extends me{constructor(){super(...arguments),this.distance=4,this.skidding=0,this.delayOnClose=100,this.delayOnOpen=100,this.isFixed=!1,this.isOpen=!1,this.placement="top",this.popoverRole=i9,this.disabled=!1,this.enablePositionTracking=!1,this.popoverId=`popover-${++n9}`,this.delayTimeout=0}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this.cleanupFunction)==null||e.call(this)}updatePosition(){}async updated(e){super.updated(e),e.has("isOpen")&&this.isOpen&&!this.cleanupFunction&&this.createPopover()}get floatingUIOptions(){return{placement:this.placement,strategy:this.isFixed?"fixed":"absolute",middleware:[X7({mainAxis:this.distance,crossAxis:this.skidding}),Q7(),J7()]}}createPopover(){this.cleanupFunction||(this.cleanupFunction=Y7(this.referenceElement,this.popoverElement,()=>{const e=this.floatingUIOptions;if(!this.isOpen){this.destroyPopover();return}e9(this.referenceElement,this.popoverElement,e).then(({x:i,y:o})=>{Object.assign(this.popoverElement.style,{left:`${i}px`,top:`${o}px`,position:e.strategy})})}))}destroyPopover(){var e;(e=this.cleanupFunction)==null||e.call(this),this.cleanupFunction=void 0}get referenceElement(){var i;const e=(i=this.shadowRoot)==null?void 0:i.querySelector("slot");return e==null?void 0:e.assignedElements({flatten:!0})[0]}get contentElement(){var i;const e=(i=this.shadowRoot)==null?void 0:i.querySelector("slot[name=content]");return e==null?void 0:e.assignedNodes({flatten:!0})[0]}get popoverElement(){var e;return(e=this.shadowRoot)==null?void 0:e.querySelector(".popover-container")}emit(e){this.dispatchEvent(new mf(e))}async open(){this.disabled||(this.emit("open"),clearTimeout(this.delayTimeout),this.delayTimeout=window.setTimeout(async()=>{this.isOpen=!0,await this.updateComplete,this.createPopover(),this.emit("after-open")},this.delayOnOpen))}async close(){this.disabled||(this.emit("close"),clearTimeout(this.delayTimeout),this.delayTimeout=window.setTimeout(async()=>{this.isOpen=!1,this.destroyPopover(),await this.updateComplete,this.emit("after-close")},this.delayOnClose))}async toggleIsOpen(){this.isOpen?await this.close():await this.open()}render(){return this.enablePositionTracking||this.isOpen?P`
136
136
  <slot></slot>
137
137
 
138
138
  <brz-fade-in-out ?shown=${this.isOpen} class="popover-container">
@@ -156,9 +156,9 @@
156
156
  position: absolute';
157
157
  width: max-content;
158
158
  }
159
- `;Tt([O({type:Number})],exports.PurePopover.prototype,"distance",2);Tt([O({type:Number})],exports.PurePopover.prototype,"skidding",2);Tt([O({type:Number,attribute:"delay-on-close"})],exports.PurePopover.prototype,"delayOnClose",2);Tt([O({type:Number,attribute:"delay-on-open"})],exports.PurePopover.prototype,"delayOnOpen",2);Tt([O({type:Boolean,attribute:"is-fixed"})],exports.PurePopover.prototype,"isFixed",2);Tt([O({type:Boolean,attribute:"is-open",reflect:!0})],exports.PurePopover.prototype,"isOpen",2);Tt([O({type:String})],exports.PurePopover.prototype,"placement",2);Tt([O({type:String,attribute:"popover-role"})],exports.PurePopover.prototype,"popoverRole",2);Tt([O({type:Boolean})],exports.PurePopover.prototype,"disabled",2);Tt([O({type:Boolean,attribute:"enable-position-tracking"})],exports.PurePopover.prototype,"enablePositionTracking",2);Tt([pe()],exports.PurePopover.prototype,"popoverId",2);Tt([pe()],exports.PurePopover.prototype,"cleanupFunction",2);Tt([pe()],exports.PurePopover.prototype,"delayTimeout",2);exports.PurePopover=Tt([R(hf)],exports.PurePopover);const Ks=["blur","mouseenter","mouseleave","keydown",qs,li],[Q1,t9,r9,n9]=Ks;exports.Popover=class extends exports.PurePopover{constructor(){super(),this.trigger="hover focus",this.hasFocus=!1,this.hasPointer=!1,this.listenableEventHandlers={[qs]:this.handleClick,[li]:this.handleFocus,[Q1]:this.handleBlur,[t9]:this.handleMouseEnter,[r9]:this.handleMouseLeave,[n9]:this.handleKeyDown},this.handleClick=this.handleClick.bind(this),this.handleFocus=this.handleFocus.bind(this),this.handleBlur=this.handleBlur.bind(this),this.handleMouseEnter=this.handleMouseEnter.bind(this),this.handleMouseLeave=this.handleMouseLeave.bind(this),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleOutsideClick=this.handleOutsideClick.bind(this)}async connectedCallback(){await super.connectedCallback(),await this.updateComplete,this.prepareListeners()}async disconnectedCallback(){super.disconnectedCallback(),this.teardownListeners()}prepareListeners(){Ks.forEach(e=>this.addEventListener(e,this.listenableEventHandlers[e],{capture:[li,Q1].includes(e)})),document.addEventListener("mousedown",this.handleOutsideClick)}teardownListeners(){Ks.forEach(e=>this.removeEventListener(e,this.listenableEventHandlers[e],{capture:[li,Q1].includes(e)})),document.removeEventListener("mousedown",this.handleOutsideClick)}get triggers(){return typeof this.trigger=="string"?this.trigger.split(" "):this.trigger}hasTrigger(e){return this.triggers.includes(e)}setFocus(){this.hasFocus=!0}removeFocus(){this.hasFocus=!1}setPointer(){this.hasPointer=!0}removePointer(){this.hasPointer=!1}async handleOutsideClick(e){!this.isOpen||this.contains(e.target)||this.hasPointer||await this.close()}async handleClick(e){var i;if(!(this.isOpen&&((i=this.contentElement)!=null&&i.contains(e.target)))){if(!this.hasTrigger(qs))return this.removeFocus();await this.toggleIsOpen()}}async handleFocus(){this.hasTrigger(li)&&(this.setFocus(),await this.open())}async handleBlur(){!this.hasTrigger(li)||this.hasPointer||(this.removeFocus(),await this.close())}async handleMouseEnter(){this.setPointer(),!(!this.hasTrigger(Lc)||this.hasFocus)&&await this.open()}async handleMouseLeave(){this.removePointer(),!(!this.hasTrigger(Lc)||this.hasFocus)&&await this.close()}async handleKeyDown(e){e.stopPropagation(),["Escape","Esc"].includes(e.key)&&await this.close()}};Tt([O({type:String})],exports.Popover.prototype,"trigger",2);Tt([pe()],exports.Popover.prototype,"hasFocus",2);Tt([pe()],exports.Popover.prototype,"hasPointer",2);exports.Popover=Tt([R(Jc)],exports.Popover);var i9=Object.defineProperty,o9=Object.getOwnPropertyDescriptor,un=(n,e,i,o)=>{for(var l=o>1?void 0:o?o9(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&i9(e,i,l),l};const gf=ne("tooltip"),[,a9]=Qc;var vf=(n=>(n[n.dark=0]="dark",n[n.light=1]="light",n))(vf||{});exports.Tooltip=class extends me{constructor(){super(...arguments),this.delayOnClose=100,this.delayOnOpen=100,this.isFixed=!1,this.placement="top",this.trigger="hover focus",this.disabled=!1,this.content="",this.theme="dark"}render(){return P`
159
+ `;Tt([O({type:Number})],exports.PurePopover.prototype,"distance",2);Tt([O({type:Number})],exports.PurePopover.prototype,"skidding",2);Tt([O({type:Number,attribute:"delay-on-close"})],exports.PurePopover.prototype,"delayOnClose",2);Tt([O({type:Number,attribute:"delay-on-open"})],exports.PurePopover.prototype,"delayOnOpen",2);Tt([O({type:Boolean,attribute:"is-fixed"})],exports.PurePopover.prototype,"isFixed",2);Tt([O({type:Boolean,attribute:"is-open",reflect:!0})],exports.PurePopover.prototype,"isOpen",2);Tt([O({type:String})],exports.PurePopover.prototype,"placement",2);Tt([O({type:String,attribute:"popover-role"})],exports.PurePopover.prototype,"popoverRole",2);Tt([O({type:Boolean})],exports.PurePopover.prototype,"disabled",2);Tt([O({type:Boolean,attribute:"enable-position-tracking"})],exports.PurePopover.prototype,"enablePositionTracking",2);Tt([pe()],exports.PurePopover.prototype,"popoverId",2);Tt([pe()],exports.PurePopover.prototype,"cleanupFunction",2);Tt([pe()],exports.PurePopover.prototype,"delayTimeout",2);exports.PurePopover=Tt([R(vf)],exports.PurePopover);const Ks=["blur","mouseenter","mouseleave","keydown",qs,li],[Q1,o9,a9,s9]=Ks;exports.Popover=class extends exports.PurePopover{constructor(){super(),this.trigger="hover focus",this.hasFocus=!1,this.hasPointer=!1,this.listenableEventHandlers={[qs]:this.handleClick,[li]:this.handleFocus,[Q1]:this.handleBlur,[o9]:this.handleMouseEnter,[a9]:this.handleMouseLeave,[s9]:this.handleKeyDown},this.handleClick=this.handleClick.bind(this),this.handleFocus=this.handleFocus.bind(this),this.handleBlur=this.handleBlur.bind(this),this.handleMouseEnter=this.handleMouseEnter.bind(this),this.handleMouseLeave=this.handleMouseLeave.bind(this),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleOutsideClick=this.handleOutsideClick.bind(this)}async connectedCallback(){await super.connectedCallback(),await this.updateComplete,this.prepareListeners()}async disconnectedCallback(){super.disconnectedCallback(),this.teardownListeners()}prepareListeners(){Ks.forEach(e=>this.addEventListener(e,this.listenableEventHandlers[e],{capture:[li,Q1].includes(e)})),document.addEventListener("mousedown",this.handleOutsideClick)}teardownListeners(){Ks.forEach(e=>this.removeEventListener(e,this.listenableEventHandlers[e],{capture:[li,Q1].includes(e)})),document.removeEventListener("mousedown",this.handleOutsideClick)}get triggers(){return typeof this.trigger=="string"?this.trigger.split(" "):this.trigger}hasTrigger(e){return this.triggers.includes(e)}setFocus(){this.hasFocus=!0}removeFocus(){this.hasFocus=!1}setPointer(){this.hasPointer=!0}removePointer(){this.hasPointer=!1}async handleOutsideClick(e){!this.isOpen||this.contains(e.target)||this.hasPointer||await this.close()}async handleClick(e){var i;if(!(this.isOpen&&((i=this.contentElement)!=null&&i.contains(e.target)))){if(!this.hasTrigger(qs))return this.removeFocus();await this.toggleIsOpen()}}async handleFocus(){this.hasTrigger(li)&&(this.setFocus(),await this.open())}async handleBlur(){!this.hasTrigger(li)||this.hasPointer||(this.removeFocus(),await this.close())}async handleMouseEnter(){this.setPointer(),!(!this.hasTrigger(Sc)||this.hasFocus)&&await this.open()}async handleMouseLeave(){this.removePointer(),!(!this.hasTrigger(Sc)||this.hasFocus)&&await this.close()}async handleKeyDown(e){e.stopPropagation(),["Escape","Esc"].includes(e.key)&&await this.close()}};Tt([O({type:String})],exports.Popover.prototype,"trigger",2);Tt([pe()],exports.Popover.prototype,"hasFocus",2);Tt([pe()],exports.Popover.prototype,"hasPointer",2);exports.Popover=Tt([R(Qc)],exports.Popover);var l9=Object.defineProperty,c9=Object.getOwnPropertyDescriptor,un=(n,e,i,o)=>{for(var l=o>1?void 0:o?c9(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&l9(e,i,l),l};const yf=ne("tooltip"),[,u9]=e0;var Cf=(n=>(n[n.dark=0]="dark",n[n.light=1]="light",n))(Cf||{});exports.Tooltip=class extends me{constructor(){super(...arguments),this.delayOnClose=100,this.delayOnOpen=100,this.isFixed=!1,this.placement="top",this.trigger="hover focus",this.disabled=!1,this.content="",this.theme="dark"}render(){return P`
160
160
  <brz-popover
161
- .popoverRole=${a9}
161
+ .popoverRole=${u9}
162
162
  .distance=${8}
163
163
  .delayOnClose=${this.delayOnClose}
164
164
  .delayOnOpen=${this.delayOnOpen}
@@ -191,7 +191,7 @@
191
191
  background-color: var(--brz-color-white);
192
192
  color: var(--brz-color-text);
193
193
  }
194
- `;un([O({type:Number,attribute:"delay-on-close"})],exports.Tooltip.prototype,"delayOnClose",2);un([O({type:Number,attribute:"delay-on-open"})],exports.Tooltip.prototype,"delayOnOpen",2);un([O({type:Boolean,attribute:"is-fixed",reflect:!0})],exports.Tooltip.prototype,"isFixed",2);un([O({type:String})],exports.Tooltip.prototype,"placement",2);un([O({type:String})],exports.Tooltip.prototype,"trigger",2);un([O({type:Boolean})],exports.Tooltip.prototype,"disabled",2);un([O({type:String})],exports.Tooltip.prototype,"content",2);un([O({type:String,reflect:!0})],exports.Tooltip.prototype,"theme",2);exports.Tooltip=un([R(gf)],exports.Tooltip);var s9=Object.defineProperty,l9=Object.getOwnPropertyDescriptor,gr=(n,e,i,o)=>{for(var l=o>1?void 0:o?l9(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&s9(e,i,l),l};const bf=ne("avatar"),mf=ne("avatar-group");var Ys=(n=>(n[n.tiny=0]="tiny",n[n.small=1]="small",n[n.medium=2]="medium",n[n.large=3]="large",n))(Ys||{}),yf=(n=>(n[n.solid=0]="solid",n[n.subtle=1]="subtle",n[n.border=2]="border",n))(yf||{});exports.Avatar=class extends me{constructor(){super(...arguments),this.hasOuterBorder=!1,this.isPlaceholderHidden=!1,this.label="",this.noTooltip=!1,this.size="medium",this.theme="solid",this.slottedElementsCount=0}handleSlotChange({target:e}){const i=e==null?void 0:e.assignedElements({flatten:!0});this.slottedElementsCount=i.length}get abbreviatedLabel(){if(!this.label||this.isPlaceholderHidden)return"";const i=Ys[this.size]<2?1:2;return this.label.split(" ").slice(0,i).map(o=>o.charAt(0)).join("").toUpperCase()}get iconTemplate(){const e=Ys[this.size],i=()=>{switch(e){case 3:return 20;case 2:case 1:return 10;case 0:return 6.5}};return P`
194
+ `;un([O({type:Number,attribute:"delay-on-close"})],exports.Tooltip.prototype,"delayOnClose",2);un([O({type:Number,attribute:"delay-on-open"})],exports.Tooltip.prototype,"delayOnOpen",2);un([O({type:Boolean,attribute:"is-fixed",reflect:!0})],exports.Tooltip.prototype,"isFixed",2);un([O({type:String})],exports.Tooltip.prototype,"placement",2);un([O({type:String})],exports.Tooltip.prototype,"trigger",2);un([O({type:Boolean})],exports.Tooltip.prototype,"disabled",2);un([O({type:String})],exports.Tooltip.prototype,"content",2);un([O({type:String,reflect:!0})],exports.Tooltip.prototype,"theme",2);exports.Tooltip=un([R(yf)],exports.Tooltip);var d9=Object.defineProperty,h9=Object.getOwnPropertyDescriptor,gr=(n,e,i,o)=>{for(var l=o>1?void 0:o?h9(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&d9(e,i,l),l};const wf=ne("avatar"),xf=ne("avatar-group");var Ys=(n=>(n[n.tiny=0]="tiny",n[n.small=1]="small",n[n.medium=2]="medium",n[n.large=3]="large",n))(Ys||{}),zf=(n=>(n[n.solid=0]="solid",n[n.subtle=1]="subtle",n[n.border=2]="border",n))(zf||{});exports.Avatar=class extends me{constructor(){super(...arguments),this.hasOuterBorder=!1,this.isPlaceholderHidden=!1,this.label="",this.noTooltip=!1,this.size="medium",this.theme="solid",this.slottedElementsCount=0}handleSlotChange({target:e}){const i=e==null?void 0:e.assignedElements({flatten:!0});this.slottedElementsCount=i.length}get abbreviatedLabel(){if(!this.label||this.isPlaceholderHidden)return"";const i=Ys[this.size]<2?1:2;return this.label.split(" ").slice(0,i).map(o=>o.charAt(0)).join("").toUpperCase()}get iconTemplate(){const e=Ys[this.size],i=()=>{switch(e){case 3:return 20;case 2:case 1:return 10;case 0:return 6.5}};return P`
195
195
  <span class="icon" aria-label=${this.label}>
196
196
  <brz-icon size=${i()} icon=${Ie(this.icon)}></brz-icon>
197
197
  </span>
@@ -368,7 +368,7 @@
368
368
  :host brz-link .container {
369
369
  cursor: pointer;
370
370
  }
371
- `;gr([O({type:Boolean,attribute:"has-outer-border",reflect:!0})],exports.Avatar.prototype,"hasOuterBorder",2);gr([O({type:String,attribute:"icon",reflect:!0})],exports.Avatar.prototype,"icon",2);gr([O({type:String,attribute:"image-src",reflect:!0})],exports.Avatar.prototype,"imageSrc",2);gr([O({type:Boolean,attribute:"is-placeholder-hidden",reflect:!0})],exports.Avatar.prototype,"isPlaceholderHidden",2);gr([O({type:String,attribute:"label",reflect:!0})],exports.Avatar.prototype,"label",2);gr([O({type:Boolean,attribute:"no-tooltip"})],exports.Avatar.prototype,"noTooltip",2);gr([O({type:String,attribute:"size",reflect:!0})],exports.Avatar.prototype,"size",2);gr([O({type:String,attribute:"theme",reflect:!0})],exports.Avatar.prototype,"theme",2);gr([O({type:String,reflect:!0})],exports.Avatar.prototype,"hyperlink",2);gr([pe()],exports.Avatar.prototype,"slottedElementsCount",2);exports.Avatar=gr([R(bf)],exports.Avatar);exports.AvatarGroup=class extends me{render(){return P` <div class="container"><slot></slot></div> `}};exports.AvatarGroup.styles=j`
371
+ `;gr([O({type:Boolean,attribute:"has-outer-border",reflect:!0})],exports.Avatar.prototype,"hasOuterBorder",2);gr([O({type:String,attribute:"icon",reflect:!0})],exports.Avatar.prototype,"icon",2);gr([O({type:String,attribute:"image-src",reflect:!0})],exports.Avatar.prototype,"imageSrc",2);gr([O({type:Boolean,attribute:"is-placeholder-hidden",reflect:!0})],exports.Avatar.prototype,"isPlaceholderHidden",2);gr([O({type:String,attribute:"label",reflect:!0})],exports.Avatar.prototype,"label",2);gr([O({type:Boolean,attribute:"no-tooltip"})],exports.Avatar.prototype,"noTooltip",2);gr([O({type:String,attribute:"size",reflect:!0})],exports.Avatar.prototype,"size",2);gr([O({type:String,attribute:"theme",reflect:!0})],exports.Avatar.prototype,"theme",2);gr([O({type:String,reflect:!0})],exports.Avatar.prototype,"hyperlink",2);gr([pe()],exports.Avatar.prototype,"slottedElementsCount",2);exports.Avatar=gr([R(wf)],exports.Avatar);exports.AvatarGroup=class extends me{render(){return P` <div class="container"><slot></slot></div> `}};exports.AvatarGroup.styles=j`
372
372
  :host .container {
373
373
  align-items: center;
374
374
  display: inline-flex;
@@ -379,16 +379,16 @@
379
379
  ::slotted(sp-avatar:not(:first-child)) {
380
380
  margin-left: -0.6em;
381
381
  }
382
- `;exports.AvatarGroup=gr([R(mf)],exports.AvatarGroup);const e0=.25,Ea=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20],c9=Ea.map(n=>j`
383
- --brz-spacing-${n}: ${n*e0}rem;
384
- `),Cf=j`
382
+ `;exports.AvatarGroup=gr([R(xf)],exports.AvatarGroup);const t0=.25,Ea=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20],f9=Ea.map(n=>j`
383
+ --brz-spacing-${n}: ${n*t0}rem;
384
+ `),Lf=j`
385
385
  :host {
386
386
  --brz-spacing-px: 1px;
387
- --brz-spacing-half: ${.5*e0}rem;
387
+ --brz-spacing-half: ${.5*t0}rem;
388
388
 
389
- ${An(c9.join(""))};
389
+ ${An(f9.join(""))};
390
390
  }
391
- `,u9=["m","p"],d9=["x","y"],h9=["t","r","b","l"],f9=u9.flatMap(n=>[n,...d9.map(e=>`${n}${e}`),...h9.map(e=>`${n}${e}`)]),p9=f9.reduce((n,e)=>({...n,[e]:{type:Number,reflect:!0}}),{}),g9=n=>j`
391
+ `,p9=["m","p"],g9=["x","y"],v9=["t","r","b","l"],b9=p9.flatMap(n=>[n,...g9.map(e=>`${n}${e}`),...v9.map(e=>`${n}${e}`)]),m9=b9.reduce((n,e)=>({...n,[e]:{type:Number,reflect:!0}}),{}),y9=n=>j`
392
392
  :host([m='${n}']),
393
393
  :host([my='${n}']),
394
394
  :host([mt='${n}']) {
@@ -436,7 +436,7 @@
436
436
  :host([pr='${n}']) {
437
437
  padding-right: var(--brz-spacing-${n});
438
438
  }
439
- `,v9=Ea.map(g9),b9=n=>{var i,o;class e extends n{}return e.styles=[(i=n.styles)!=null?i:[],...v9],e.properties={...(o=n.properties)!=null?o:{},...p9},e},uo=b9(me),m9=n=>n.viewBox!==void 0,y9={arrowDown:{svg:D`
439
+ `,C9=Ea.map(y9),w9=n=>{var i,o;class e extends n{}return e.styles=[(i=n.styles)!=null?i:[],...C9],e.properties={...(o=n.properties)!=null?o:{},...m9},e},uo=w9(me),x9=n=>n.viewBox!==void 0,z9={arrowDown:{svg:D`
440
440
  <title>Asset 36</title>
441
441
  <g data-name="Layer 2">
442
442
  <g data-name="Layer 1">
@@ -750,7 +750,7 @@
750
750
  C7,14.1,7,14.1,7,14.1z"/>
751
751
  <path d="M10,20c-1.5,0-3-0.3-4.4-1c-2.4-1.2-4.2-3.2-5.1-5.7C-1.2,8,1.5,2.3,6.7,0.5c5.2-1.8,10.9,1,12.7,6.2
752
752
  c1.8,5.2-1,10.9-6.2,12.7l0,0C12.2,19.8,11.1,20,10,20z M12.9,18.5L12.9,18.5L12.9,18.5z M10,2C9.1,2,8.3,2.1,7.4,2.4
753
- c-4.2,1.4-6.4,6-5,10.2c0.7,2,2.1,3.6,4.1,4.6c1.9,0.9,4.1,1.1,6.1,0.4c4.2-1.4,6.4-6,5-10.2C16.4,4.1,13.3,2,10,2z"/>`},upDown:{viewBox:"0 0 10 18",svg:D`<path d="M8.74818914,5.57757178 C9.10122662,5.22949983 9.09992902,4.66388436 8.74089535,4.30990056 L5.65231403,1.26476075 C5.29524829,0.912717214 4.71829829,0.910776954 4.35926462,1.26476075 L1.2706833,4.30990056 C0.913617563,4.6619441 0.908617118,5.22778933 1.26338951,5.57757178 L1.32624321,5.63954142 C1.67928069,5.98761337 2.24605009,5.99315182 2.61024678,5.63407763 L5.00578932,3.27222886 L7.40133187,5.63407763 C7.75742997,5.98516714 8.33056305,5.98932387 8.68533544,5.63954142 L8.74818914,5.57757178 Z M1.26338951,12.4302063 C0.910352023,12.7782783 0.911649623,13.3438938 1.2706833,13.6978776 L4.35926462,16.7430174 C4.71633035,17.0950609 5.29328035,17.0970012 5.65231403,16.7430174 L8.74089535,13.6978776 C9.09796108,13.345834 9.10296153,12.7799888 8.74818914,12.4302063 L8.68533544,12.3682367 C8.33229795,12.0201647 7.76552856,12.0146263 7.40133187,12.3737005 L5.00578932,14.7355492 L2.61024678,12.3737005 C2.25414867,12.022611 1.6810156,12.0184542 1.32624321,12.3682367 L1.26338951,12.4302063 Z"></path>`},warningFill:{viewBox:"0 0 19 17",svg:D`<path class="cls-1" d="M18.84,15.8,11.36,1.67a2.17,2.17,0,0,0-.84-.85A2,2,0,0,0,9.47.5a2.22,2.22,0,0,0-1.9,1.17L.09,15.8A1.21,1.21,0,0,0,1,17.5H17.89a.94.94,0,0,0,.53-.11A1.18,1.18,0,0,0,18.84,15.8Zm-9.35-.72a1,1,0,1,1,1-1A1,1,0,0,1,9.49,15.08Zm1-4a1,1,0,0,1-2,0v-5a1,1,0,1,1,2,0Z" transform="translate(0.01 -0.5)"/>`}},C9="0 0 18 18",wf=n=>m9(n)?n:{svg:n,viewBox:C9},t0={actions:D`
753
+ c-4.2,1.4-6.4,6-5,10.2c0.7,2,2.1,3.6,4.1,4.6c1.9,0.9,4.1,1.1,6.1,0.4c4.2-1.4,6.4-6,5-10.2C16.4,4.1,13.3,2,10,2z"/>`},upDown:{viewBox:"0 0 10 18",svg:D`<path d="M8.74818914,5.57757178 C9.10122662,5.22949983 9.09992902,4.66388436 8.74089535,4.30990056 L5.65231403,1.26476075 C5.29524829,0.912717214 4.71829829,0.910776954 4.35926462,1.26476075 L1.2706833,4.30990056 C0.913617563,4.6619441 0.908617118,5.22778933 1.26338951,5.57757178 L1.32624321,5.63954142 C1.67928069,5.98761337 2.24605009,5.99315182 2.61024678,5.63407763 L5.00578932,3.27222886 L7.40133187,5.63407763 C7.75742997,5.98516714 8.33056305,5.98932387 8.68533544,5.63954142 L8.74818914,5.57757178 Z M1.26338951,12.4302063 C0.910352023,12.7782783 0.911649623,13.3438938 1.2706833,13.6978776 L4.35926462,16.7430174 C4.71633035,17.0950609 5.29328035,17.0970012 5.65231403,16.7430174 L8.74089535,13.6978776 C9.09796108,13.345834 9.10296153,12.7799888 8.74818914,12.4302063 L8.68533544,12.3682367 C8.33229795,12.0201647 7.76552856,12.0146263 7.40133187,12.3737005 L5.00578932,14.7355492 L2.61024678,12.3737005 C2.25414867,12.022611 1.6810156,12.0184542 1.32624321,12.3682367 L1.26338951,12.4302063 Z"></path>`},warningFill:{viewBox:"0 0 19 17",svg:D`<path class="cls-1" d="M18.84,15.8,11.36,1.67a2.17,2.17,0,0,0-.84-.85A2,2,0,0,0,9.47.5a2.22,2.22,0,0,0-1.9,1.17L.09,15.8A1.21,1.21,0,0,0,1,17.5H17.89a.94.94,0,0,0,.53-.11A1.18,1.18,0,0,0,18.84,15.8Zm-9.35-.72a1,1,0,1,1,1-1A1,1,0,0,1,9.49,15.08Zm1-4a1,1,0,0,1-2,0v-5a1,1,0,1,1,2,0Z" transform="translate(0.01 -0.5)"/>`}},L9="0 0 18 18",Sf=n=>x9(n)?n:{svg:n,viewBox:L9},r0={actions:D`
754
754
  <g stroke="none" stroke-width="1" fill-rule="evenodd">
755
755
  <g transform="translate(-0.002970, 0.000000)">
756
756
  <path d="M8,0.100006104 L8,0.0549287778 C3.50004954,0.552373066 0,4.36744635 0,9 C0,13.6325537 3.50004954,17.4476269 8,17.9450712 L8,17.8999939 C8.55228475,17.8999939 9,17.4522786 9,16.8999939 C9,16.3477091 8.55228475,15.8999939 8,15.8999939 C7.95488652,15.8999939 7.91047077,15.9029813 7.86693979,15.908769 C4.53975459,15.3672534 2,12.4802225 2,9 C2,5.51977755 4.53975459,2.63274657 7.86693979,2.09123103 C7.91047077,2.09701874 7.95488652,2.1000061 8,2.1000061 C8.55228475,2.1000061 9,1.65229085 9,1.1000061 C9,0.547721354 8.55228475,0.100006104 8,0.100006104 Z"></path>
@@ -1220,7 +1220,7 @@
1220
1220
  <circle class="st0" cx="9" cy="13" r="1"/>
1221
1221
  <path class="st0" d="M9,6.2c-0.6,0-1,0.4-1,1v3c0,0.6,0.4,1,1,1c0.6,0,1-0.4,1-1v-3C10,6.6,9.6,6.2,9,6.2z"/>
1222
1222
  </g>
1223
- <path d="M9,3.1l6.4,12H2.6L9,3.1 M9,1C8.3,1,7.6,1.4,7.2,2.1L0.1,15.4C0,15.6,0,15.8,0,15.9C0,16.5,0.5,17,1,17h16 c0.2,0,0.3,0,0.5-0.1c0.5-0.3,0.7-0.9,0.4-1.5L10.8,2.1c-0.2-0.3-0.4-0.6-0.8-0.8C9.7,1.1,9.3,1,9,1L9,1z"/>`,zoomIn:D`<path d="M10,8V4.8c0-0.6-0.4-1-1-1c-0.6,0-1,0.4-1,1V8L4.8,8c-0.6,0-1,0.4-1,1s0.4,1,1,1H8v3.3c0,0.6,0.4,1,1,1 c0.3,0,0.5-0.1,0.7-0.3c0.2-0.2,0.3-0.4,0.3-0.7V10h3.3c0.3,0,0.6-0.1,0.7-0.3c0.1-0.1,0.3-0.4,0.3-0.7c0-0.6-0.4-1-1-1H10z"/>`,zoomOut:D`<path d="M4.8,8c-0.6,0-1,0.4-1,1s0.4,1,1,1h8.5c0.3,0,0.6-0.1,0.7-0.3c0.1-0.1,0.3-0.4,0.3-0.7c0-0.6-0.4-1-1-1H4.8z"/>`,...y9},w9=Object.keys(t0);var x9=Object.defineProperty,z9=Object.getOwnPropertyDescriptor,r0=(n,e,i,o)=>{for(var l=o>1?void 0:o?z9(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&x9(e,i,l),l};const xf=ne("icon");exports.Icon=class extends me{constructor(){super(...arguments),this.size=18,this.icon="close"}render(){const{svg:e,viewBox:i}=wf(t0[this.icon]);return P`
1223
+ <path d="M9,3.1l6.4,12H2.6L9,3.1 M9,1C8.3,1,7.6,1.4,7.2,2.1L0.1,15.4C0,15.6,0,15.8,0,15.9C0,16.5,0.5,17,1,17h16 c0.2,0,0.3,0,0.5-0.1c0.5-0.3,0.7-0.9,0.4-1.5L10.8,2.1c-0.2-0.3-0.4-0.6-0.8-0.8C9.7,1.1,9.3,1,9,1L9,1z"/>`,zoomIn:D`<path d="M10,8V4.8c0-0.6-0.4-1-1-1c-0.6,0-1,0.4-1,1V8L4.8,8c-0.6,0-1,0.4-1,1s0.4,1,1,1H8v3.3c0,0.6,0.4,1,1,1 c0.3,0,0.5-0.1,0.7-0.3c0.2-0.2,0.3-0.4,0.3-0.7V10h3.3c0.3,0,0.6-0.1,0.7-0.3c0.1-0.1,0.3-0.4,0.3-0.7c0-0.6-0.4-1-1-1H10z"/>`,zoomOut:D`<path d="M4.8,8c-0.6,0-1,0.4-1,1s0.4,1,1,1h8.5c0.3,0,0.6-0.1,0.7-0.3c0.1-0.1,0.3-0.4,0.3-0.7c0-0.6-0.4-1-1-1H4.8z"/>`,...z9},S9=Object.keys(r0);var M9=Object.defineProperty,T9=Object.getOwnPropertyDescriptor,n0=(n,e,i,o)=>{for(var l=o>1?void 0:o?T9(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&M9(e,i,l),l};const Mf=ne("icon");exports.Icon=class extends me{constructor(){super(...arguments),this.size=18,this.icon="close"}render(){const{svg:e,viewBox:i}=Sf(r0[this.icon]);return P`
1224
1224
  <svg
1225
1225
  role="presentation"
1226
1226
  width=${this.size}
@@ -1238,7 +1238,7 @@
1238
1238
  svg {
1239
1239
  fill: currentColor;
1240
1240
  }
1241
- `;r0([O({type:Number,reflect:!0})],exports.Icon.prototype,"size",2);r0([O({type:String})],exports.Icon.prototype,"icon",2);exports.Icon=r0([R(xf)],exports.Icon);var L9=Object.defineProperty,S9=Object.getOwnPropertyDescriptor,dn=(n,e,i,o)=>{for(var l=o>1?void 0:o?S9(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&L9(e,i,l),l};const zf=ne("link"),Lf=ne("link-button"),M9=["a","button"],T9=j`
1241
+ `;n0([O({type:Number,reflect:!0})],exports.Icon.prototype,"size",2);n0([O({type:String})],exports.Icon.prototype,"icon",2);exports.Icon=n0([R(Mf)],exports.Icon);var k9=Object.defineProperty,$9=Object.getOwnPropertyDescriptor,dn=(n,e,i,o)=>{for(var l=o>1?void 0:o?$9(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&k9(e,i,l),l};const Tf=ne("link"),kf=ne("link-button"),O9=["a","button"],E9=j`
1242
1242
  :host {
1243
1243
  display: inline-flex; /* Avoids the custom element wrapper "padding" the link in some cases */
1244
1244
  align-items: center;
@@ -1272,12 +1272,12 @@
1272
1272
  :host([link-type='secondary']:hover) {
1273
1273
  text-decoration: none;
1274
1274
  }
1275
- `,n0=j`
1275
+ `,i0=j`
1276
1276
  a {
1277
1277
  color: inherit;
1278
1278
  text-decoration: inherit;
1279
1279
  }
1280
- `,k9=j`
1280
+ `,_9=j`
1281
1281
  button {
1282
1282
  font-family: inherit;
1283
1283
  font-size: inherit;
@@ -1289,7 +1289,7 @@
1289
1289
  color: inherit;
1290
1290
  cursor: pointer;
1291
1291
  }
1292
- `,$9=["primary","secondary"];exports.Link=class extends me{constructor(){super(...arguments),this.element="a",this.virtual=!1,this.linkType="primary",this.isExternal=!1}handleClick(e){this.virtual&&e.preventDefault()}connectedCallback(){super.connectedCallback(),this.isExternal&&(this.target="_blank")}get externalIcon(){return this.isExternal?P`<brz-icon icon="openLink" size="12"></brz-icon>`:null}get anchorTemplate(){return P`
1292
+ `,I9=["primary","secondary"];exports.Link=class extends me{constructor(){super(...arguments),this.element="a",this.virtual=!1,this.linkType="primary",this.isExternal=!1}handleClick(e){this.virtual&&e.preventDefault()}connectedCallback(){super.connectedCallback(),this.isExternal&&(this.target="_blank")}get externalIcon(){return this.isExternal?P`<brz-icon icon="openLink" size="12"></brz-icon>`:null}get anchorTemplate(){return P`
1293
1293
  <a
1294
1294
  href=${Ie(this.href)}
1295
1295
  target=${Ie(this.target)}
@@ -1306,7 +1306,7 @@
1306
1306
  </button>
1307
1307
 
1308
1308
  ${this.externalIcon}
1309
- `}render(){switch(this.element){case"button":return this.buttonTemplate;case"a":default:return this.anchorTemplate}}};exports.Link.styles=[n0,k9,T9];dn([O()],exports.Link.prototype,"element",2);dn([O({type:Boolean,reflect:!0})],exports.Link.prototype,"virtual",2);dn([O({type:String,reflect:!0})],exports.Link.prototype,"href",2);dn([O({type:String,attribute:"link-type",reflect:!0})],exports.Link.prototype,"linkType",2);dn([O({type:String,reflect:!0})],exports.Link.prototype,"target",2);dn([O({type:String,reflect:!0})],exports.Link.prototype,"rel",2);dn([O({type:Boolean,attribute:"is-external",reflect:!0})],exports.Link.prototype,"isExternal",2);exports.Link=dn([R(zf)],exports.Link);exports.LinkButton=class extends exports.Link{connectedCallback(){super.connectedCallback(),this.element="button"}};exports.LinkButton=dn([R(Lf)],exports.LinkButton);var O9=Object.defineProperty,E9=Object.getOwnPropertyDescriptor,xl=(n,e,i,o)=>{for(var l=o>1?void 0:o?E9(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&O9(e,i,l),l};const Sf=ne("row"),Mf=ne("column");exports.Row=class extends me{render(){return P`<slot></slot>`}};exports.Row.styles=j`
1309
+ `}render(){switch(this.element){case"button":return this.buttonTemplate;case"a":default:return this.anchorTemplate}}};exports.Link.styles=[i0,_9,E9];dn([O()],exports.Link.prototype,"element",2);dn([O({type:Boolean,reflect:!0})],exports.Link.prototype,"virtual",2);dn([O({type:String,reflect:!0})],exports.Link.prototype,"href",2);dn([O({type:String,attribute:"link-type",reflect:!0})],exports.Link.prototype,"linkType",2);dn([O({type:String,reflect:!0})],exports.Link.prototype,"target",2);dn([O({type:String,reflect:!0})],exports.Link.prototype,"rel",2);dn([O({type:Boolean,attribute:"is-external",reflect:!0})],exports.Link.prototype,"isExternal",2);exports.Link=dn([R(Tf)],exports.Link);exports.LinkButton=class extends exports.Link{connectedCallback(){super.connectedCallback(),this.element="button"}};exports.LinkButton=dn([R(kf)],exports.LinkButton);var A9=Object.defineProperty,P9=Object.getOwnPropertyDescriptor,xl=(n,e,i,o)=>{for(var l=o>1?void 0:o?P9(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&A9(e,i,l),l};const $f=ne("row"),Of=ne("column");exports.Row=class extends me{render(){return P`<slot></slot>`}};exports.Row.styles=j`
1310
1310
  :host {
1311
1311
  display: flex;
1312
1312
  flex-direction: row;
@@ -1325,7 +1325,7 @@
1325
1325
  :host([vertical-align='bottom']) {
1326
1326
  align-items: flex-end;
1327
1327
  }
1328
- `;xl([O({attribute:"vertical-align",reflect:!0})],exports.Row.prototype,"verticalAlign",2);exports.Row=xl([R(Sf)],exports.Row);exports.Column=class extends me{render(){return P`<slot></slot>`}};exports.Column.styles=j`
1328
+ `;xl([O({attribute:"vertical-align",reflect:!0})],exports.Row.prototype,"verticalAlign",2);exports.Row=xl([R($f)],exports.Row);exports.Column=class extends me{render(){return P`<slot></slot>`}};exports.Column.styles=j`
1329
1329
  :host {
1330
1330
  display: flex;
1331
1331
  flex-direction: column;
@@ -1344,7 +1344,7 @@
1344
1344
  :host([align='right']) {
1345
1345
  align-items: flex-end;
1346
1346
  }
1347
- `;xl([O({reflect:!0})],exports.Column.prototype,"align",2);exports.Column=xl([R(Mf)],exports.Column);var _9=Object.defineProperty,I9=Object.getOwnPropertyDescriptor,Tf=(n,e,i,o)=>{for(var l=o>1?void 0:o?I9(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&_9(e,i,l),l};const kf=ne("loading-spinner");exports.LoadingSpinner=class extends me{constructor(){super(...arguments),this.size=24}render(){return P`
1347
+ `;xl([O({reflect:!0})],exports.Column.prototype,"align",2);exports.Column=xl([R(Of)],exports.Column);var D9=Object.defineProperty,N9=Object.getOwnPropertyDescriptor,Ef=(n,e,i,o)=>{for(var l=o>1?void 0:o?N9(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&D9(e,i,l),l};const _f=ne("loading-spinner");exports.LoadingSpinner=class extends me{constructor(){super(...arguments),this.size=24}render(){return P`
1348
1348
  <div class="loading-spinner">
1349
1349
  <svg
1350
1350
  class="loading-spinner--circular"
@@ -1399,8 +1399,8 @@
1399
1399
  stroke-dashoffset: -124px;
1400
1400
  }
1401
1401
  }
1402
- `;Tf([O({type:Number})],exports.LoadingSpinner.prototype,"size",2);exports.LoadingSpinner=Tf([R(kf)],exports.LoadingSpinner);var A9=Object.defineProperty,P9=Object.getOwnPropertyDescriptor,kt=(n,e,i,o)=>{for(var l=o>1?void 0:o?P9(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&A9(e,i,l),l};const i0=ne("button"),$f=ne("button-group");class Of extends CustomEvent{constructor(e){super(`${i0}-${e}`,{bubbles:!0,composed:!0})}}const D9=["primary","secondary","transparent","transparent-primary"];exports.Button=class extends uo{constructor(){super(...arguments),this.element="button",this.buttonType="primary",this.iconSize=18,this.loading=!1,this.compact=!1,this.disabled=!1,this.tooltipText="",this.iconOnly=!1}connectedCallback(){super.connectedCallback(),this.updateComplete.then(()=>{this.defaultSlot.some(i=>{var o;return!!((o=i.textContent)!=null&&o.replace(`
1403
- `,"").trim())})||(this.iconOnly=!!(this.leadingIcon||this.trailingIcon))})}focus(e){this.buttonElement.focus(e)}emit(e){this.dispatchEvent(new Of(e))}get classes(){return Yt({button:!0,primary:this.buttonType==="primary"&&!this.disabled,secondary:this.buttonType==="secondary"&&!this.disabled,transparent:this.buttonType==="transparent"||this.buttonType==="transparent-primary",transparentPrimary:this.buttonType==="transparent-primary",compact:this.compact,loading:this.loading,disabled:this.disabled})}handleClick(){this.disabled||this.emit("click")}get anchorTemplate(){return P`
1402
+ `;Ef([O({type:Number})],exports.LoadingSpinner.prototype,"size",2);exports.LoadingSpinner=Ef([R(_f)],exports.LoadingSpinner);var H9=Object.defineProperty,R9=Object.getOwnPropertyDescriptor,kt=(n,e,i,o)=>{for(var l=o>1?void 0:o?R9(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&H9(e,i,l),l};const o0=ne("button"),If=ne("button-group");class Af extends CustomEvent{constructor(e){super(`${o0}-${e}`,{bubbles:!0,composed:!0})}}const F9=["primary","secondary","transparent","transparent-primary"];exports.Button=class extends uo{constructor(){super(...arguments),this.element="button",this.buttonType="primary",this.iconSize=18,this.loading=!1,this.compact=!1,this.disabled=!1,this.tooltipText="",this.iconOnly=!1}connectedCallback(){super.connectedCallback(),this.updateComplete.then(()=>{this.defaultSlot.some(i=>{var o;return!!((o=i.textContent)!=null&&o.replace(`
1403
+ `,"").trim())})||(this.iconOnly=!!(this.leadingIcon||this.trailingIcon))})}focus(e){this.buttonElement.focus(e)}emit(e){this.dispatchEvent(new Af(e))}get classes(){return Yt({button:!0,primary:this.buttonType==="primary"&&!this.disabled,secondary:this.buttonType==="secondary"&&!this.disabled,transparent:this.buttonType==="transparent"||this.buttonType==="transparent-primary",transparentPrimary:this.buttonType==="transparent-primary",compact:this.compact,loading:this.loading,disabled:this.disabled})}handleClick(){this.disabled||this.emit("click")}get anchorTemplate(){return P`
1404
1404
  <a
1405
1405
  part="button"
1406
1406
  role="button"
@@ -1443,7 +1443,7 @@
1443
1443
  </div>
1444
1444
 
1445
1445
  ${this.loading?P`<brz-loading-spinner size="18"></brz-loading-spinner>`:null}
1446
- `}render(){switch(this.element){case"a":return this.anchorTemplate;case"button":default:return Ie(this.tooltipText)?this.buttonTemplateWithTooltip:this.buttonTemplate}}};var k2;exports.Button.styles=[(k2=uo.styles)!=null?k2:[],n0,j`
1446
+ `}render(){switch(this.element){case"a":return this.anchorTemplate;case"button":default:return Ie(this.tooltipText)?this.buttonTemplateWithTooltip:this.buttonTemplate}}};var _2;exports.Button.styles=[(_2=uo.styles)!=null?_2:[],i0,j`
1447
1447
  :host {
1448
1448
  --brz-button-background-color: transparent;
1449
1449
  --brz-button-border-width: var(--brz-spacing-px);
@@ -1643,7 +1643,7 @@
1643
1643
  brz-tooltip {
1644
1644
  display: flex;
1645
1645
  }
1646
- `];kt([O()],exports.Button.prototype,"element",2);kt([O({attribute:"button-type",reflect:!0})],exports.Button.prototype,"buttonType",2);kt([O({type:String,reflect:!0,attribute:"leading-icon"})],exports.Button.prototype,"leadingIcon",2);kt([O({type:String,reflect:!0,attribute:"trailing-icon"})],exports.Button.prototype,"trailingIcon",2);kt([O({type:Number,attribute:"icon-size"})],exports.Button.prototype,"iconSize",2);kt([O({type:Boolean,reflect:!0})],exports.Button.prototype,"loading",2);kt([O({type:Boolean,reflect:!0})],exports.Button.prototype,"compact",2);kt([O({type:Boolean,reflect:!0})],exports.Button.prototype,"disabled",2);kt([O()],exports.Button.prototype,"href",2);kt([O()],exports.Button.prototype,"target",2);kt([O()],exports.Button.prototype,"rel",2);kt([O({type:String,attribute:"tooltip-text"})],exports.Button.prototype,"tooltipText",2);kt([O({type:Boolean,attribute:"icon-only",reflect:!0})],exports.Button.prototype,"iconOnly",2);kt([Er("button")],exports.Button.prototype,"buttonElement",2);kt([jc()],exports.Button.prototype,"defaultSlot",2);exports.Button=kt([R(i0)],exports.Button);exports.ButtonGroup=class extends me{constructor(){super(...arguments),this.compact=!1}render(){return P`<brz-row class=${Yt({compact:this.compact})}
1646
+ `];kt([O()],exports.Button.prototype,"element",2);kt([O({attribute:"button-type",reflect:!0})],exports.Button.prototype,"buttonType",2);kt([O({type:String,reflect:!0,attribute:"leading-icon"})],exports.Button.prototype,"leadingIcon",2);kt([O({type:String,reflect:!0,attribute:"trailing-icon"})],exports.Button.prototype,"trailingIcon",2);kt([O({type:Number,attribute:"icon-size"})],exports.Button.prototype,"iconSize",2);kt([O({type:Boolean,reflect:!0})],exports.Button.prototype,"loading",2);kt([O({type:Boolean,reflect:!0})],exports.Button.prototype,"compact",2);kt([O({type:Boolean,reflect:!0})],exports.Button.prototype,"disabled",2);kt([O()],exports.Button.prototype,"href",2);kt([O()],exports.Button.prototype,"target",2);kt([O()],exports.Button.prototype,"rel",2);kt([O({type:String,attribute:"tooltip-text"})],exports.Button.prototype,"tooltipText",2);kt([O({type:Boolean,attribute:"icon-only",reflect:!0})],exports.Button.prototype,"iconOnly",2);kt([Er("button")],exports.Button.prototype,"buttonElement",2);kt([Gc()],exports.Button.prototype,"defaultSlot",2);exports.Button=kt([R(o0)],exports.Button);exports.ButtonGroup=class extends me{constructor(){super(...arguments),this.compact=!1}render(){return P`<brz-row class=${Yt({compact:this.compact})}
1647
1647
  ><slot></slot
1648
1648
  ></brz-row>`}};exports.ButtonGroup.styles=j`
1649
1649
  brz-row {
@@ -1662,7 +1662,7 @@
1662
1662
  --brz-button-r-radius: 0;
1663
1663
  --brz-border-r-width: 0;
1664
1664
  }
1665
- `;kt([O({type:Boolean})],exports.ButtonGroup.prototype,"compact",2);exports.ButtonGroup=kt([R($f)],exports.ButtonGroup);const N9=["small","medium","large"];var H9=Object.defineProperty,R9=Object.getOwnPropertyDescriptor,Gr=(n,e,i,o)=>{for(var l=o>1?void 0:o?R9(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&H9(e,i,l),l};const Ef=ne("dropdown-menu"),F9=[...N9,"fluid"];exports.DropdownMenu=class extends me{constructor(){super(...arguments),this.multiselect=!1,this.selectable=!1,this.selected=[],this.disabled=!1}updated(e){super.updated(e),this.size==="fluid"&&this.applyFluidWidth()}applyFluidWidth(){const{clientWidth:e,offsetWidth:i}=this.referenceElement,o=window.getComputedStyle(this.referenceElement);this.fluidWidth=o.boxSizing==="border-box"&&o.width!==void 0?e:i}handleOpen(){this.size==="fluid"&&this.fluidWidth===0&&this.applyFluidWidth(),this.menu.focus()}handleClose(){this.referenceElement.focus(),this.menu.reset()}handleSelect(){this.multiselect||this.handleClose()}handleBlur(){this.close()}handleSlotChange(){this.disabled=this.referenceElement.hasAttribute("disabled")}get referenceElement(){return this.slottedElements[0]}open(){this.popover.open()}close(){this.popover.close()}updatePosition(){var e;(e=this.popover)==null||e.updatePosition()}render(){return P`
1665
+ `;kt([O({type:Boolean})],exports.ButtonGroup.prototype,"compact",2);exports.ButtonGroup=kt([R(If)],exports.ButtonGroup);const B9=["small","medium","large"];var V9=Object.defineProperty,Z9=Object.getOwnPropertyDescriptor,Gr=(n,e,i,o)=>{for(var l=o>1?void 0:o?Z9(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&V9(e,i,l),l};const Pf=ne("dropdown-menu"),W9=[...B9,"fluid"];exports.DropdownMenu=class extends me{constructor(){super(...arguments),this.multiselect=!1,this.selectable=!1,this.selected=[],this.disabled=!1}updated(e){super.updated(e),this.size==="fluid"&&this.applyFluidWidth()}applyFluidWidth(){const{clientWidth:e,offsetWidth:i}=this.referenceElement,o=window.getComputedStyle(this.referenceElement);this.fluidWidth=o.boxSizing==="border-box"&&o.width!==void 0?e:i}handleOpen(){this.size==="fluid"&&this.fluidWidth===0&&this.applyFluidWidth(),this.menu.focus()}handleClose(){this.referenceElement.focus(),this.menu.reset()}handleSelect(){this.multiselect||this.handleClose()}handleBlur(){this.close()}handleSlotChange(){this.disabled=this.referenceElement.hasAttribute("disabled")}get referenceElement(){return this.slottedElements[0]}open(){this.popover.open()}close(){this.popover.close()}updatePosition(){var e;(e=this.popover)==null||e.updatePosition()}render(){return P`
1666
1666
  <brz-popover
1667
1667
  trigger="click"
1668
1668
  placement="bottom-start"
@@ -1710,33 +1710,33 @@
1710
1710
  brz-menu::-webkit-scrollbar-track {
1711
1711
  background-clip: padding-box;
1712
1712
  }
1713
- `;Gr([O({type:Boolean})],exports.DropdownMenu.prototype,"multiselect",2);Gr([O({type:Boolean})],exports.DropdownMenu.prototype,"selectable",2);Gr([O({type:Array})],exports.DropdownMenu.prototype,"selected",2);Gr([O()],exports.DropdownMenu.prototype,"size",2);Gr([pe()],exports.DropdownMenu.prototype,"fluidWidth",2);Gr([pe()],exports.DropdownMenu.prototype,"disabled",2);Gr([Er("brz-menu")],exports.DropdownMenu.prototype,"menu",2);Gr([Er("brz-popover")],exports.DropdownMenu.prototype,"popover",2);Gr([cn()],exports.DropdownMenu.prototype,"slottedElements",2);exports.DropdownMenu=Gr([R(Ef)],exports.DropdownMenu);var pa=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function o0(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}function B9(n,e,i,o){for(var l=n.length,d=i+(o?1:-1);o?d--:++d<l;)if(e(n[d],d,n))return d;return-1}var V9=B9;function Z9(){this.__data__=[],this.size=0}var W9=Z9;function U9(n,e){return n===e||n!==n&&e!==e}var a0=U9,j9=a0;function G9(n,e){for(var i=n.length;i--;)if(j9(n[i][0],e))return i;return-1}var zl=G9,q9=zl,K9=Array.prototype,Y9=K9.splice;function X9(n){var e=this.__data__,i=q9(e,n);if(i<0)return!1;var o=e.length-1;return i==o?e.pop():Y9.call(e,i,1),--this.size,!0}var J9=X9,Q9=zl;function e8(n){var e=this.__data__,i=Q9(e,n);return i<0?void 0:e[i][1]}var t8=e8,r8=zl;function n8(n){return r8(this.__data__,n)>-1}var i8=n8,o8=zl;function a8(n,e){var i=this.__data__,o=o8(i,n);return o<0?(++this.size,i.push([n,e])):i[o][1]=e,this}var s8=a8,l8=W9,c8=J9,u8=t8,d8=i8,h8=s8;function ho(n){var e=-1,i=n==null?0:n.length;for(this.clear();++e<i;){var o=n[e];this.set(o[0],o[1])}}ho.prototype.clear=l8;ho.prototype.delete=c8;ho.prototype.get=u8;ho.prototype.has=d8;ho.prototype.set=h8;var Ll=ho,f8=Ll;function p8(){this.__data__=new f8,this.size=0}var g8=p8;function v8(n){var e=this.__data__,i=e.delete(n);return this.size=e.size,i}var b8=v8;function m8(n){return this.__data__.get(n)}var y8=m8;function C8(n){return this.__data__.has(n)}var w8=C8,x8=typeof pa=="object"&&pa&&pa.Object===Object&&pa,_f=x8,z8=_f,L8=typeof self=="object"&&self&&self.Object===Object&&self,S8=z8||L8||Function("return this")(),hn=S8,M8=hn,T8=M8.Symbol,Sl=T8,sh=Sl,If=Object.prototype,k8=If.hasOwnProperty,$8=If.toString,la=sh?sh.toStringTag:void 0;function O8(n){var e=k8.call(n,la),i=n[la];try{n[la]=void 0;var o=!0}catch{}var l=$8.call(n);return o&&(e?n[la]=i:delete n[la]),l}var E8=O8,_8=Object.prototype,I8=_8.toString;function A8(n){return I8.call(n)}var P8=A8,lh=Sl,D8=E8,N8=P8,H8="[object Null]",R8="[object Undefined]",ch=lh?lh.toStringTag:void 0;function F8(n){return n==null?n===void 0?R8:H8:ch&&ch in Object(n)?D8(n):N8(n)}var _a=F8;function B8(n){var e=typeof n;return n!=null&&(e=="object"||e=="function")}var Ia=B8,V8=_a,Z8=Ia,W8="[object AsyncFunction]",U8="[object Function]",j8="[object GeneratorFunction]",G8="[object Proxy]";function q8(n){if(!Z8(n))return!1;var e=V8(n);return e==U8||e==j8||e==W8||e==G8}var Af=q8,K8=hn,Y8=K8["__core-js_shared__"],X8=Y8,ec=X8,uh=function(){var n=/[^.]+$/.exec(ec&&ec.keys&&ec.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""}();function J8(n){return!!uh&&uh in n}var Q8=J8,eg=Function.prototype,tg=eg.toString;function rg(n){if(n!=null){try{return tg.call(n)}catch{}try{return n+""}catch{}}return""}var Pf=rg,ng=Af,ig=Q8,og=Ia,ag=Pf,sg=/[\\^$.*+?()[\]{}|]/g,lg=/^\[object .+?Constructor\]$/,cg=Function.prototype,ug=Object.prototype,dg=cg.toString,hg=ug.hasOwnProperty,fg=RegExp("^"+dg.call(hg).replace(sg,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function pg(n){if(!og(n)||ig(n))return!1;var e=ng(n)?fg:lg;return e.test(ag(n))}var gg=pg;function vg(n,e){return n==null?void 0:n[e]}var bg=vg,mg=gg,yg=bg;function Cg(n,e){var i=yg(n,e);return mg(i)?i:void 0}var fo=Cg,wg=fo,xg=hn,zg=wg(xg,"Map"),s0=zg,Lg=fo,Sg=Lg(Object,"create"),Ml=Sg,dh=Ml;function Mg(){this.__data__=dh?dh(null):{},this.size=0}var Tg=Mg;function kg(n){var e=this.has(n)&&delete this.__data__[n];return this.size-=e?1:0,e}var $g=kg,Og=Ml,Eg="__lodash_hash_undefined__",_g=Object.prototype,Ig=_g.hasOwnProperty;function Ag(n){var e=this.__data__;if(Og){var i=e[n];return i===Eg?void 0:i}return Ig.call(e,n)?e[n]:void 0}var Pg=Ag,Dg=Ml,Ng=Object.prototype,Hg=Ng.hasOwnProperty;function Rg(n){var e=this.__data__;return Dg?e[n]!==void 0:Hg.call(e,n)}var Fg=Rg,Bg=Ml,Vg="__lodash_hash_undefined__";function Zg(n,e){var i=this.__data__;return this.size+=this.has(n)?0:1,i[n]=Bg&&e===void 0?Vg:e,this}var Wg=Zg,Ug=Tg,jg=$g,Gg=Pg,qg=Fg,Kg=Wg;function po(n){var e=-1,i=n==null?0:n.length;for(this.clear();++e<i;){var o=n[e];this.set(o[0],o[1])}}po.prototype.clear=Ug;po.prototype.delete=jg;po.prototype.get=Gg;po.prototype.has=qg;po.prototype.set=Kg;var Yg=po,hh=Yg,Xg=Ll,Jg=s0;function Qg(){this.size=0,this.__data__={hash:new hh,map:new(Jg||Xg),string:new hh}}var ev=Qg;function tv(n){var e=typeof n;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?n!=="__proto__":n===null}var rv=tv,nv=rv;function iv(n,e){var i=n.__data__;return nv(e)?i[typeof e=="string"?"string":"hash"]:i.map}var Tl=iv,ov=Tl;function av(n){var e=ov(this,n).delete(n);return this.size-=e?1:0,e}var sv=av,lv=Tl;function cv(n){return lv(this,n).get(n)}var uv=cv,dv=Tl;function hv(n){return dv(this,n).has(n)}var fv=hv,pv=Tl;function gv(n,e){var i=pv(this,n),o=i.size;return i.set(n,e),this.size+=i.size==o?0:1,this}var vv=gv,bv=ev,mv=sv,yv=uv,Cv=fv,wv=vv;function go(n){var e=-1,i=n==null?0:n.length;for(this.clear();++e<i;){var o=n[e];this.set(o[0],o[1])}}go.prototype.clear=bv;go.prototype.delete=mv;go.prototype.get=yv;go.prototype.has=Cv;go.prototype.set=wv;var l0=go,xv=Ll,zv=s0,Lv=l0,Sv=200;function Mv(n,e){var i=this.__data__;if(i instanceof xv){var o=i.__data__;if(!zv||o.length<Sv-1)return o.push([n,e]),this.size=++i.size,this;i=this.__data__=new Lv(o)}return i.set(n,e),this.size=i.size,this}var Tv=Mv,kv=Ll,$v=g8,Ov=b8,Ev=y8,_v=w8,Iv=Tv;function vo(n){var e=this.__data__=new kv(n);this.size=e.size}vo.prototype.clear=$v;vo.prototype.delete=Ov;vo.prototype.get=Ev;vo.prototype.has=_v;vo.prototype.set=Iv;var Df=vo,Av="__lodash_hash_undefined__";function Pv(n){return this.__data__.set(n,Av),this}var Dv=Pv;function Nv(n){return this.__data__.has(n)}var Hv=Nv,Rv=l0,Fv=Dv,Bv=Hv;function Xs(n){var e=-1,i=n==null?0:n.length;for(this.__data__=new Rv;++e<i;)this.add(n[e])}Xs.prototype.add=Xs.prototype.push=Fv;Xs.prototype.has=Bv;var Vv=Xs;function Zv(n,e){for(var i=-1,o=n==null?0:n.length;++i<o;)if(e(n[i],i,n))return!0;return!1}var Wv=Zv;function Uv(n,e){return n.has(e)}var jv=Uv,Gv=Vv,qv=Wv,Kv=jv,Yv=1,Xv=2;function Jv(n,e,i,o,l,d){var u=i&Yv,v=n.length,m=e.length;if(v!=m&&!(u&&m>v))return!1;var y=d.get(n),T=d.get(e);if(y&&T)return y==e&&T==n;var S=-1,$=!0,E=i&Xv?new Gv:void 0;for(d.set(n,e),d.set(e,n);++S<v;){var N=n[S],G=e[S];if(o)var ee=u?o(G,N,S,e,n,d):o(N,G,S,n,e,d);if(ee!==void 0){if(ee)continue;$=!1;break}if(E){if(!qv(e,function(te,se){if(!Kv(E,se)&&(N===te||l(N,te,i,o,d)))return E.push(se)})){$=!1;break}}else if(!(N===G||l(N,G,i,o,d))){$=!1;break}}return d.delete(n),d.delete(e),$}var Nf=Jv,Qv=hn,eb=Qv.Uint8Array,tb=eb;function rb(n){var e=-1,i=Array(n.size);return n.forEach(function(o,l){i[++e]=[l,o]}),i}var nb=rb;function ib(n){var e=-1,i=Array(n.size);return n.forEach(function(o){i[++e]=o}),i}var ob=ib,fh=Sl,ph=tb,ab=a0,sb=Nf,lb=nb,cb=ob,ub=1,db=2,hb="[object Boolean]",fb="[object Date]",pb="[object Error]",gb="[object Map]",vb="[object Number]",bb="[object RegExp]",mb="[object Set]",yb="[object String]",Cb="[object Symbol]",wb="[object ArrayBuffer]",xb="[object DataView]",gh=fh?fh.prototype:void 0,tc=gh?gh.valueOf:void 0;function zb(n,e,i,o,l,d,u){switch(i){case xb:if(n.byteLength!=e.byteLength||n.byteOffset!=e.byteOffset)return!1;n=n.buffer,e=e.buffer;case wb:return!(n.byteLength!=e.byteLength||!d(new ph(n),new ph(e)));case hb:case fb:case vb:return ab(+n,+e);case pb:return n.name==e.name&&n.message==e.message;case bb:case yb:return n==e+"";case gb:var v=lb;case mb:var m=o&ub;if(v||(v=cb),n.size!=e.size&&!m)return!1;var y=u.get(n);if(y)return y==e;o|=db,u.set(n,e);var T=sb(v(n),v(e),o,l,d,u);return u.delete(n),T;case Cb:if(tc)return tc.call(n)==tc.call(e)}return!1}var Lb=zb;function Sb(n,e){for(var i=-1,o=e.length,l=n.length;++i<o;)n[l+i]=e[i];return n}var Mb=Sb,Tb=Array.isArray,Dn=Tb,kb=Mb,$b=Dn;function Ob(n,e,i){var o=e(n);return $b(n)?o:kb(o,i(n))}var Eb=Ob;function _b(n,e){for(var i=-1,o=n==null?0:n.length,l=0,d=[];++i<o;){var u=n[i];e(u,i,n)&&(d[l++]=u)}return d}var Ib=_b;function Ab(){return[]}var Pb=Ab,Db=Ib,Nb=Pb,Hb=Object.prototype,Rb=Hb.propertyIsEnumerable,vh=Object.getOwnPropertySymbols,Fb=vh?function(n){return n==null?[]:(n=Object(n),Db(vh(n),function(e){return Rb.call(n,e)}))}:Nb,Bb=Fb;function Vb(n,e){for(var i=-1,o=Array(n);++i<n;)o[i]=e(i);return o}var Zb=Vb;function Wb(n){return n!=null&&typeof n=="object"}var Aa=Wb,Ub=_a,jb=Aa,Gb="[object Arguments]";function qb(n){return jb(n)&&Ub(n)==Gb}var Kb=qb,bh=Kb,Yb=Aa,Hf=Object.prototype,Xb=Hf.hasOwnProperty,Jb=Hf.propertyIsEnumerable,Qb=bh(function(){return arguments}())?bh:function(n){return Yb(n)&&Xb.call(n,"callee")&&!Jb.call(n,"callee")},Rf=Qb,Js={exports:{}};function em(){return!1}var tm=em;Js.exports;(function(n,e){var i=hn,o=tm,l=e&&!e.nodeType&&e,d=l&&!0&&n&&!n.nodeType&&n,u=d&&d.exports===l,v=u?i.Buffer:void 0,m=v?v.isBuffer:void 0,y=m||o;n.exports=y})(Js,Js.exports);var Ff=Js.exports,rm=9007199254740991,nm=/^(?:0|[1-9]\d*)$/;function im(n,e){var i=typeof n;return e=e==null?rm:e,!!e&&(i=="number"||i!="symbol"&&nm.test(n))&&n>-1&&n%1==0&&n<e}var c0=im,om=9007199254740991;function am(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=om}var u0=am,sm=_a,lm=u0,cm=Aa,um="[object Arguments]",dm="[object Array]",hm="[object Boolean]",fm="[object Date]",pm="[object Error]",gm="[object Function]",vm="[object Map]",bm="[object Number]",mm="[object Object]",ym="[object RegExp]",Cm="[object Set]",wm="[object String]",xm="[object WeakMap]",zm="[object ArrayBuffer]",Lm="[object DataView]",Sm="[object Float32Array]",Mm="[object Float64Array]",Tm="[object Int8Array]",km="[object Int16Array]",$m="[object Int32Array]",Om="[object Uint8Array]",Em="[object Uint8ClampedArray]",_m="[object Uint16Array]",Im="[object Uint32Array]",et={};et[Sm]=et[Mm]=et[Tm]=et[km]=et[$m]=et[Om]=et[Em]=et[_m]=et[Im]=!0;et[um]=et[dm]=et[zm]=et[hm]=et[Lm]=et[fm]=et[pm]=et[gm]=et[vm]=et[bm]=et[mm]=et[ym]=et[Cm]=et[wm]=et[xm]=!1;function Am(n){return cm(n)&&lm(n.length)&&!!et[sm(n)]}var Pm=Am;function Dm(n){return function(e){return n(e)}}var Nm=Dm,Qs={exports:{}};Qs.exports;(function(n,e){var i=_f,o=e&&!e.nodeType&&e,l=o&&!0&&n&&!n.nodeType&&n,d=l&&l.exports===o,u=d&&i.process,v=function(){try{var m=l&&l.require&&l.require("util").types;return m||u&&u.binding&&u.binding("util")}catch{}}();n.exports=v})(Qs,Qs.exports);var Hm=Qs.exports,Rm=Pm,Fm=Nm,mh=Hm,yh=mh&&mh.isTypedArray,Bm=yh?Fm(yh):Rm,Bf=Bm,Vm=Zb,Zm=Rf,Wm=Dn,Um=Ff,jm=c0,Gm=Bf,qm=Object.prototype,Km=qm.hasOwnProperty;function Ym(n,e){var i=Wm(n),o=!i&&Zm(n),l=!i&&!o&&Um(n),d=!i&&!o&&!l&&Gm(n),u=i||o||l||d,v=u?Vm(n.length,String):[],m=v.length;for(var y in n)(e||Km.call(n,y))&&!(u&&(y=="length"||l&&(y=="offset"||y=="parent")||d&&(y=="buffer"||y=="byteLength"||y=="byteOffset")||jm(y,m)))&&v.push(y);return v}var Xm=Ym,Jm=Object.prototype;function Qm(n){var e=n&&n.constructor,i=typeof e=="function"&&e.prototype||Jm;return n===i}var ey=Qm;function ty(n,e){return function(i){return n(e(i))}}var ry=ty,ny=ry,iy=ny(Object.keys,Object),oy=iy,ay=ey,sy=oy,ly=Object.prototype,cy=ly.hasOwnProperty;function uy(n){if(!ay(n))return sy(n);var e=[];for(var i in Object(n))cy.call(n,i)&&i!="constructor"&&e.push(i);return e}var dy=uy,hy=Af,fy=u0;function py(n){return n!=null&&fy(n.length)&&!hy(n)}var Vf=py,gy=Xm,vy=dy,by=Vf;function my(n){return by(n)?gy(n):vy(n)}var Zf=my,yy=Eb,Cy=Bb,wy=Zf;function xy(n){return yy(n,wy,Cy)}var zy=xy,Ch=zy,Ly=1,Sy=Object.prototype,My=Sy.hasOwnProperty;function Ty(n,e,i,o,l,d){var u=i&Ly,v=Ch(n),m=v.length,y=Ch(e),T=y.length;if(m!=T&&!u)return!1;for(var S=m;S--;){var $=v[S];if(!(u?$ in e:My.call(e,$)))return!1}var E=d.get(n),N=d.get(e);if(E&&N)return E==e&&N==n;var G=!0;d.set(n,e),d.set(e,n);for(var ee=u;++S<m;){$=v[S];var te=n[$],se=e[$];if(o)var re=u?o(se,te,$,e,n,d):o(te,se,$,n,e,d);if(!(re===void 0?te===se||l(te,se,i,o,d):re)){G=!1;break}ee||(ee=$=="constructor")}if(G&&!ee){var ue=n.constructor,xe=e.constructor;ue!=xe&&"constructor"in n&&"constructor"in e&&!(typeof ue=="function"&&ue instanceof ue&&typeof xe=="function"&&xe instanceof xe)&&(G=!1)}return d.delete(n),d.delete(e),G}var ky=Ty,$y=fo,Oy=hn,Ey=$y(Oy,"DataView"),_y=Ey,Iy=fo,Ay=hn,Py=Iy(Ay,"Promise"),Dy=Py,Ny=fo,Hy=hn,Ry=Ny(Hy,"Set"),Fy=Ry,By=fo,Vy=hn,Zy=By(Vy,"WeakMap"),Wy=Zy,Sc=_y,Mc=s0,Tc=Dy,kc=Fy,$c=Wy,Wf=_a,bo=Pf,wh="[object Map]",Uy="[object Object]",xh="[object Promise]",zh="[object Set]",Lh="[object WeakMap]",Sh="[object DataView]",jy=bo(Sc),Gy=bo(Mc),qy=bo(Tc),Ky=bo(kc),Yy=bo($c),ai=Wf;(Sc&&ai(new Sc(new ArrayBuffer(1)))!=Sh||Mc&&ai(new Mc)!=wh||Tc&&ai(Tc.resolve())!=xh||kc&&ai(new kc)!=zh||$c&&ai(new $c)!=Lh)&&(ai=function(n){var e=Wf(n),i=e==Uy?n.constructor:void 0,o=i?bo(i):"";if(o)switch(o){case jy:return Sh;case Gy:return wh;case qy:return xh;case Ky:return zh;case Yy:return Lh}return e});var Xy=ai,rc=Df,Jy=Nf,Qy=Lb,eC=ky,Mh=Xy,Th=Dn,kh=Ff,tC=Bf,rC=1,$h="[object Arguments]",Oh="[object Array]",Ms="[object Object]",nC=Object.prototype,Eh=nC.hasOwnProperty;function iC(n,e,i,o,l,d){var u=Th(n),v=Th(e),m=u?Oh:Mh(n),y=v?Oh:Mh(e);m=m==$h?Ms:m,y=y==$h?Ms:y;var T=m==Ms,S=y==Ms,$=m==y;if($&&kh(n)){if(!kh(e))return!1;u=!0,T=!1}if($&&!T)return d||(d=new rc),u||tC(n)?Jy(n,e,i,o,l,d):Qy(n,e,m,i,o,l,d);if(!(i&rC)){var E=T&&Eh.call(n,"__wrapped__"),N=S&&Eh.call(e,"__wrapped__");if(E||N){var G=E?n.value():n,ee=N?e.value():e;return d||(d=new rc),l(G,ee,i,o,d)}}return $?(d||(d=new rc),eC(n,e,i,o,l,d)):!1}var oC=iC,aC=oC,_h=Aa;function Uf(n,e,i,o,l){return n===e?!0:n==null||e==null||!_h(n)&&!_h(e)?n!==n&&e!==e:aC(n,e,i,o,Uf,l)}var jf=Uf,sC=Df,lC=jf,cC=1,uC=2;function dC(n,e,i,o){var l=i.length,d=l,u=!o;if(n==null)return!d;for(n=Object(n);l--;){var v=i[l];if(u&&v[2]?v[1]!==n[v[0]]:!(v[0]in n))return!1}for(;++l<d;){v=i[l];var m=v[0],y=n[m],T=v[1];if(u&&v[2]){if(y===void 0&&!(m in n))return!1}else{var S=new sC;if(o)var $=o(y,T,m,n,e,S);if(!($===void 0?lC(T,y,cC|uC,o,S):$))return!1}}return!0}var hC=dC,fC=Ia;function pC(n){return n===n&&!fC(n)}var Gf=pC,gC=Gf,vC=Zf;function bC(n){for(var e=vC(n),i=e.length;i--;){var o=e[i],l=n[o];e[i]=[o,l,gC(l)]}return e}var mC=bC;function yC(n,e){return function(i){return i==null?!1:i[n]===e&&(e!==void 0||n in Object(i))}}var qf=yC,CC=hC,wC=mC,xC=qf;function zC(n){var e=wC(n);return e.length==1&&e[0][2]?xC(e[0][0],e[0][1]):function(i){return i===n||CC(i,n,e)}}var LC=zC,SC=_a,MC=Aa,TC="[object Symbol]";function kC(n){return typeof n=="symbol"||MC(n)&&SC(n)==TC}var kl=kC,$C=Dn,OC=kl,EC=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,_C=/^\w*$/;function IC(n,e){if($C(n))return!1;var i=typeof n;return i=="number"||i=="symbol"||i=="boolean"||n==null||OC(n)?!0:_C.test(n)||!EC.test(n)||e!=null&&n in Object(e)}var d0=IC,Kf=l0,AC="Expected a function";function h0(n,e){if(typeof n!="function"||e!=null&&typeof e!="function")throw new TypeError(AC);var i=function(){var o=arguments,l=e?e.apply(this,o):o[0],d=i.cache;if(d.has(l))return d.get(l);var u=n.apply(this,o);return i.cache=d.set(l,u)||d,u};return i.cache=new(h0.Cache||Kf),i}h0.Cache=Kf;var PC=h0,DC=PC,NC=500;function HC(n){var e=DC(n,function(o){return i.size===NC&&i.clear(),o}),i=e.cache;return e}var RC=HC,FC=RC,BC=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,VC=/\\(\\)?/g,ZC=FC(function(n){var e=[];return n.charCodeAt(0)===46&&e.push(""),n.replace(BC,function(i,o,l,d){e.push(l?d.replace(VC,"$1"):o||i)}),e}),WC=ZC;function UC(n,e){for(var i=-1,o=n==null?0:n.length,l=Array(o);++i<o;)l[i]=e(n[i],i,n);return l}var jC=UC,Ih=Sl,GC=jC,qC=Dn,KC=kl,YC=1/0,Ah=Ih?Ih.prototype:void 0,Ph=Ah?Ah.toString:void 0;function Yf(n){if(typeof n=="string")return n;if(qC(n))return GC(n,Yf)+"";if(KC(n))return Ph?Ph.call(n):"";var e=n+"";return e=="0"&&1/n==-YC?"-0":e}var XC=Yf,JC=XC;function QC(n){return n==null?"":JC(n)}var ew=QC,tw=Dn,rw=d0,nw=WC,iw=ew;function ow(n,e){return tw(n)?n:rw(n,e)?[n]:nw(iw(n))}var Xf=ow,aw=kl,sw=1/0;function lw(n){if(typeof n=="string"||aw(n))return n;var e=n+"";return e=="0"&&1/n==-sw?"-0":e}var $l=lw,cw=Xf,uw=$l;function dw(n,e){e=cw(e,n);for(var i=0,o=e.length;n!=null&&i<o;)n=n[uw(e[i++])];return i&&i==o?n:void 0}var Jf=dw,hw=Jf;function fw(n,e,i){var o=n==null?void 0:hw(n,e);return o===void 0?i:o}var pw=fw;function gw(n,e){return n!=null&&e in Object(n)}var vw=gw,bw=Xf,mw=Rf,yw=Dn,Cw=c0,ww=u0,xw=$l;function zw(n,e,i){e=bw(e,n);for(var o=-1,l=e.length,d=!1;++o<l;){var u=xw(e[o]);if(!(d=n!=null&&i(n,u)))break;n=n[u]}return d||++o!=l?d:(l=n==null?0:n.length,!!l&&ww(l)&&Cw(u,l)&&(yw(n)||mw(n)))}var Lw=zw,Sw=vw,Mw=Lw;function Tw(n,e){return n!=null&&Mw(n,e,Sw)}var kw=Tw,$w=jf,Ow=pw,Ew=kw,_w=d0,Iw=Gf,Aw=qf,Pw=$l,Dw=1,Nw=2;function Hw(n,e){return _w(n)&&Iw(e)?Aw(Pw(n),e):function(i){var o=Ow(i,n);return o===void 0&&o===e?Ew(i,n):$w(e,o,Dw|Nw)}}var Rw=Hw;function Fw(n){return n}var Bw=Fw;function Vw(n){return function(e){return e==null?void 0:e[n]}}var Zw=Vw,Ww=Jf;function Uw(n){return function(e){return Ww(e,n)}}var jw=Uw,Gw=Zw,qw=jw,Kw=d0,Yw=$l;function Xw(n){return Kw(n)?Gw(Yw(n)):qw(n)}var Jw=Xw,Qw=LC,ex=Rw,tx=Bw,rx=Dn,nx=Jw;function ix(n){return typeof n=="function"?n:n==null?tx:typeof n=="object"?rx(n)?ex(n[0],n[1]):Qw(n):nx(n)}var ox=ix,ax=/\s/;function sx(n){for(var e=n.length;e--&&ax.test(n.charAt(e)););return e}var lx=sx,cx=lx,ux=/^\s+/;function dx(n){return n&&n.slice(0,cx(n)+1).replace(ux,"")}var hx=dx,fx=hx,Dh=Ia,px=kl,Nh=0/0,gx=/^[-+]0x[0-9a-f]+$/i,vx=/^0b[01]+$/i,bx=/^0o[0-7]+$/i,mx=parseInt;function yx(n){if(typeof n=="number")return n;if(px(n))return Nh;if(Dh(n)){var e=typeof n.valueOf=="function"?n.valueOf():n;n=Dh(e)?e+"":e}if(typeof n!="string")return n===0?n:+n;n=fx(n);var i=vx.test(n);return i||bx.test(n)?mx(n.slice(2),i?2:8):gx.test(n)?Nh:+n}var Cx=yx,wx=Cx,Hh=1/0,xx=17976931348623157e292;function zx(n){if(!n)return n===0?n:0;if(n=wx(n),n===Hh||n===-Hh){var e=n<0?-1:1;return e*xx}return n===n?n:0}var Qf=zx,Lx=Qf;function Sx(n){var e=Lx(n),i=e%1;return e===e?i?e-i:e:0}var Mx=Sx,Tx=V9,kx=ox,$x=Mx,Ox=Math.max,Ex=Math.min;function _x(n,e,i){var o=n==null?0:n.length;if(!o)return-1;var l=o-1;return i!==void 0&&(l=$x(i),l=i<0?Ox(o+l,0):Ex(l,o-1)),Tx(n,kx(e),l,!0)}var Ix=_x;const Ax=o0(Ix);/**
1713
+ `;Gr([O({type:Boolean})],exports.DropdownMenu.prototype,"multiselect",2);Gr([O({type:Boolean})],exports.DropdownMenu.prototype,"selectable",2);Gr([O({type:Array})],exports.DropdownMenu.prototype,"selected",2);Gr([O()],exports.DropdownMenu.prototype,"size",2);Gr([pe()],exports.DropdownMenu.prototype,"fluidWidth",2);Gr([pe()],exports.DropdownMenu.prototype,"disabled",2);Gr([Er("brz-menu")],exports.DropdownMenu.prototype,"menu",2);Gr([Er("brz-popover")],exports.DropdownMenu.prototype,"popover",2);Gr([cn()],exports.DropdownMenu.prototype,"slottedElements",2);exports.DropdownMenu=Gr([R(Pf)],exports.DropdownMenu);var pa=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function a0(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}function U9(n,e,i,o){for(var l=n.length,d=i+(o?1:-1);o?d--:++d<l;)if(e(n[d],d,n))return d;return-1}var j9=U9;function G9(){this.__data__=[],this.size=0}var q9=G9;function K9(n,e){return n===e||n!==n&&e!==e}var s0=K9,Y9=s0;function X9(n,e){for(var i=n.length;i--;)if(Y9(n[i][0],e))return i;return-1}var zl=X9,J9=zl,Q9=Array.prototype,e8=Q9.splice;function t8(n){var e=this.__data__,i=J9(e,n);if(i<0)return!1;var o=e.length-1;return i==o?e.pop():e8.call(e,i,1),--this.size,!0}var r8=t8,n8=zl;function i8(n){var e=this.__data__,i=n8(e,n);return i<0?void 0:e[i][1]}var o8=i8,a8=zl;function s8(n){return a8(this.__data__,n)>-1}var l8=s8,c8=zl;function u8(n,e){var i=this.__data__,o=c8(i,n);return o<0?(++this.size,i.push([n,e])):i[o][1]=e,this}var d8=u8,h8=q9,f8=r8,p8=o8,g8=l8,v8=d8;function ho(n){var e=-1,i=n==null?0:n.length;for(this.clear();++e<i;){var o=n[e];this.set(o[0],o[1])}}ho.prototype.clear=h8;ho.prototype.delete=f8;ho.prototype.get=p8;ho.prototype.has=g8;ho.prototype.set=v8;var Ll=ho,b8=Ll;function m8(){this.__data__=new b8,this.size=0}var y8=m8;function C8(n){var e=this.__data__,i=e.delete(n);return this.size=e.size,i}var w8=C8;function x8(n){return this.__data__.get(n)}var z8=x8;function L8(n){return this.__data__.has(n)}var S8=L8,M8=typeof pa=="object"&&pa&&pa.Object===Object&&pa,Df=M8,T8=Df,k8=typeof self=="object"&&self&&self.Object===Object&&self,$8=T8||k8||Function("return this")(),hn=$8,O8=hn,E8=O8.Symbol,Sl=E8,lh=Sl,Nf=Object.prototype,_8=Nf.hasOwnProperty,I8=Nf.toString,la=lh?lh.toStringTag:void 0;function A8(n){var e=_8.call(n,la),i=n[la];try{n[la]=void 0;var o=!0}catch{}var l=I8.call(n);return o&&(e?n[la]=i:delete n[la]),l}var P8=A8,D8=Object.prototype,N8=D8.toString;function H8(n){return N8.call(n)}var R8=H8,ch=Sl,F8=P8,B8=R8,V8="[object Null]",Z8="[object Undefined]",uh=ch?ch.toStringTag:void 0;function W8(n){return n==null?n===void 0?Z8:V8:uh&&uh in Object(n)?F8(n):B8(n)}var _a=W8;function U8(n){var e=typeof n;return n!=null&&(e=="object"||e=="function")}var Ia=U8,j8=_a,G8=Ia,q8="[object AsyncFunction]",K8="[object Function]",Y8="[object GeneratorFunction]",X8="[object Proxy]";function J8(n){if(!G8(n))return!1;var e=j8(n);return e==K8||e==Y8||e==q8||e==X8}var Hf=J8,Q8=hn,eg=Q8["__core-js_shared__"],tg=eg,ec=tg,dh=function(){var n=/[^.]+$/.exec(ec&&ec.keys&&ec.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""}();function rg(n){return!!dh&&dh in n}var ng=rg,ig=Function.prototype,og=ig.toString;function ag(n){if(n!=null){try{return og.call(n)}catch{}try{return n+""}catch{}}return""}var Rf=ag,sg=Hf,lg=ng,cg=Ia,ug=Rf,dg=/[\\^$.*+?()[\]{}|]/g,hg=/^\[object .+?Constructor\]$/,fg=Function.prototype,pg=Object.prototype,gg=fg.toString,vg=pg.hasOwnProperty,bg=RegExp("^"+gg.call(vg).replace(dg,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function mg(n){if(!cg(n)||lg(n))return!1;var e=sg(n)?bg:hg;return e.test(ug(n))}var yg=mg;function Cg(n,e){return n==null?void 0:n[e]}var wg=Cg,xg=yg,zg=wg;function Lg(n,e){var i=zg(n,e);return xg(i)?i:void 0}var fo=Lg,Sg=fo,Mg=hn,Tg=Sg(Mg,"Map"),l0=Tg,kg=fo,$g=kg(Object,"create"),Ml=$g,hh=Ml;function Og(){this.__data__=hh?hh(null):{},this.size=0}var Eg=Og;function _g(n){var e=this.has(n)&&delete this.__data__[n];return this.size-=e?1:0,e}var Ig=_g,Ag=Ml,Pg="__lodash_hash_undefined__",Dg=Object.prototype,Ng=Dg.hasOwnProperty;function Hg(n){var e=this.__data__;if(Ag){var i=e[n];return i===Pg?void 0:i}return Ng.call(e,n)?e[n]:void 0}var Rg=Hg,Fg=Ml,Bg=Object.prototype,Vg=Bg.hasOwnProperty;function Zg(n){var e=this.__data__;return Fg?e[n]!==void 0:Vg.call(e,n)}var Wg=Zg,Ug=Ml,jg="__lodash_hash_undefined__";function Gg(n,e){var i=this.__data__;return this.size+=this.has(n)?0:1,i[n]=Ug&&e===void 0?jg:e,this}var qg=Gg,Kg=Eg,Yg=Ig,Xg=Rg,Jg=Wg,Qg=qg;function po(n){var e=-1,i=n==null?0:n.length;for(this.clear();++e<i;){var o=n[e];this.set(o[0],o[1])}}po.prototype.clear=Kg;po.prototype.delete=Yg;po.prototype.get=Xg;po.prototype.has=Jg;po.prototype.set=Qg;var ev=po,fh=ev,tv=Ll,rv=l0;function nv(){this.size=0,this.__data__={hash:new fh,map:new(rv||tv),string:new fh}}var iv=nv;function ov(n){var e=typeof n;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?n!=="__proto__":n===null}var av=ov,sv=av;function lv(n,e){var i=n.__data__;return sv(e)?i[typeof e=="string"?"string":"hash"]:i.map}var Tl=lv,cv=Tl;function uv(n){var e=cv(this,n).delete(n);return this.size-=e?1:0,e}var dv=uv,hv=Tl;function fv(n){return hv(this,n).get(n)}var pv=fv,gv=Tl;function vv(n){return gv(this,n).has(n)}var bv=vv,mv=Tl;function yv(n,e){var i=mv(this,n),o=i.size;return i.set(n,e),this.size+=i.size==o?0:1,this}var Cv=yv,wv=iv,xv=dv,zv=pv,Lv=bv,Sv=Cv;function go(n){var e=-1,i=n==null?0:n.length;for(this.clear();++e<i;){var o=n[e];this.set(o[0],o[1])}}go.prototype.clear=wv;go.prototype.delete=xv;go.prototype.get=zv;go.prototype.has=Lv;go.prototype.set=Sv;var c0=go,Mv=Ll,Tv=l0,kv=c0,$v=200;function Ov(n,e){var i=this.__data__;if(i instanceof Mv){var o=i.__data__;if(!Tv||o.length<$v-1)return o.push([n,e]),this.size=++i.size,this;i=this.__data__=new kv(o)}return i.set(n,e),this.size=i.size,this}var Ev=Ov,_v=Ll,Iv=y8,Av=w8,Pv=z8,Dv=S8,Nv=Ev;function vo(n){var e=this.__data__=new _v(n);this.size=e.size}vo.prototype.clear=Iv;vo.prototype.delete=Av;vo.prototype.get=Pv;vo.prototype.has=Dv;vo.prototype.set=Nv;var Ff=vo,Hv="__lodash_hash_undefined__";function Rv(n){return this.__data__.set(n,Hv),this}var Fv=Rv;function Bv(n){return this.__data__.has(n)}var Vv=Bv,Zv=c0,Wv=Fv,Uv=Vv;function Xs(n){var e=-1,i=n==null?0:n.length;for(this.__data__=new Zv;++e<i;)this.add(n[e])}Xs.prototype.add=Xs.prototype.push=Wv;Xs.prototype.has=Uv;var jv=Xs;function Gv(n,e){for(var i=-1,o=n==null?0:n.length;++i<o;)if(e(n[i],i,n))return!0;return!1}var qv=Gv;function Kv(n,e){return n.has(e)}var Yv=Kv,Xv=jv,Jv=qv,Qv=Yv,eb=1,tb=2;function rb(n,e,i,o,l,d){var u=i&eb,v=n.length,m=e.length;if(v!=m&&!(u&&m>v))return!1;var y=d.get(n),T=d.get(e);if(y&&T)return y==e&&T==n;var S=-1,$=!0,E=i&tb?new Xv:void 0;for(d.set(n,e),d.set(e,n);++S<v;){var N=n[S],G=e[S];if(o)var ee=u?o(G,N,S,e,n,d):o(N,G,S,n,e,d);if(ee!==void 0){if(ee)continue;$=!1;break}if(E){if(!Jv(e,function(te,se){if(!Qv(E,se)&&(N===te||l(N,te,i,o,d)))return E.push(se)})){$=!1;break}}else if(!(N===G||l(N,G,i,o,d))){$=!1;break}}return d.delete(n),d.delete(e),$}var Bf=rb,nb=hn,ib=nb.Uint8Array,ob=ib;function ab(n){var e=-1,i=Array(n.size);return n.forEach(function(o,l){i[++e]=[l,o]}),i}var sb=ab;function lb(n){var e=-1,i=Array(n.size);return n.forEach(function(o){i[++e]=o}),i}var cb=lb,ph=Sl,gh=ob,ub=s0,db=Bf,hb=sb,fb=cb,pb=1,gb=2,vb="[object Boolean]",bb="[object Date]",mb="[object Error]",yb="[object Map]",Cb="[object Number]",wb="[object RegExp]",xb="[object Set]",zb="[object String]",Lb="[object Symbol]",Sb="[object ArrayBuffer]",Mb="[object DataView]",vh=ph?ph.prototype:void 0,tc=vh?vh.valueOf:void 0;function Tb(n,e,i,o,l,d,u){switch(i){case Mb:if(n.byteLength!=e.byteLength||n.byteOffset!=e.byteOffset)return!1;n=n.buffer,e=e.buffer;case Sb:return!(n.byteLength!=e.byteLength||!d(new gh(n),new gh(e)));case vb:case bb:case Cb:return ub(+n,+e);case mb:return n.name==e.name&&n.message==e.message;case wb:case zb:return n==e+"";case yb:var v=hb;case xb:var m=o&pb;if(v||(v=fb),n.size!=e.size&&!m)return!1;var y=u.get(n);if(y)return y==e;o|=gb,u.set(n,e);var T=db(v(n),v(e),o,l,d,u);return u.delete(n),T;case Lb:if(tc)return tc.call(n)==tc.call(e)}return!1}var kb=Tb;function $b(n,e){for(var i=-1,o=e.length,l=n.length;++i<o;)n[l+i]=e[i];return n}var Ob=$b,Eb=Array.isArray,Dn=Eb,_b=Ob,Ib=Dn;function Ab(n,e,i){var o=e(n);return Ib(n)?o:_b(o,i(n))}var Pb=Ab;function Db(n,e){for(var i=-1,o=n==null?0:n.length,l=0,d=[];++i<o;){var u=n[i];e(u,i,n)&&(d[l++]=u)}return d}var Nb=Db;function Hb(){return[]}var Rb=Hb,Fb=Nb,Bb=Rb,Vb=Object.prototype,Zb=Vb.propertyIsEnumerable,bh=Object.getOwnPropertySymbols,Wb=bh?function(n){return n==null?[]:(n=Object(n),Fb(bh(n),function(e){return Zb.call(n,e)}))}:Bb,Ub=Wb;function jb(n,e){for(var i=-1,o=Array(n);++i<n;)o[i]=e(i);return o}var Gb=jb;function qb(n){return n!=null&&typeof n=="object"}var Aa=qb,Kb=_a,Yb=Aa,Xb="[object Arguments]";function Jb(n){return Yb(n)&&Kb(n)==Xb}var Qb=Jb,mh=Qb,em=Aa,Vf=Object.prototype,tm=Vf.hasOwnProperty,rm=Vf.propertyIsEnumerable,nm=mh(function(){return arguments}())?mh:function(n){return em(n)&&tm.call(n,"callee")&&!rm.call(n,"callee")},Zf=nm,Js={exports:{}};function im(){return!1}var om=im;Js.exports;(function(n,e){var i=hn,o=om,l=e&&!e.nodeType&&e,d=l&&!0&&n&&!n.nodeType&&n,u=d&&d.exports===l,v=u?i.Buffer:void 0,m=v?v.isBuffer:void 0,y=m||o;n.exports=y})(Js,Js.exports);var Wf=Js.exports,am=9007199254740991,sm=/^(?:0|[1-9]\d*)$/;function lm(n,e){var i=typeof n;return e=e==null?am:e,!!e&&(i=="number"||i!="symbol"&&sm.test(n))&&n>-1&&n%1==0&&n<e}var u0=lm,cm=9007199254740991;function um(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=cm}var d0=um,dm=_a,hm=d0,fm=Aa,pm="[object Arguments]",gm="[object Array]",vm="[object Boolean]",bm="[object Date]",mm="[object Error]",ym="[object Function]",Cm="[object Map]",wm="[object Number]",xm="[object Object]",zm="[object RegExp]",Lm="[object Set]",Sm="[object String]",Mm="[object WeakMap]",Tm="[object ArrayBuffer]",km="[object DataView]",$m="[object Float32Array]",Om="[object Float64Array]",Em="[object Int8Array]",_m="[object Int16Array]",Im="[object Int32Array]",Am="[object Uint8Array]",Pm="[object Uint8ClampedArray]",Dm="[object Uint16Array]",Nm="[object Uint32Array]",et={};et[$m]=et[Om]=et[Em]=et[_m]=et[Im]=et[Am]=et[Pm]=et[Dm]=et[Nm]=!0;et[pm]=et[gm]=et[Tm]=et[vm]=et[km]=et[bm]=et[mm]=et[ym]=et[Cm]=et[wm]=et[xm]=et[zm]=et[Lm]=et[Sm]=et[Mm]=!1;function Hm(n){return fm(n)&&hm(n.length)&&!!et[dm(n)]}var Rm=Hm;function Fm(n){return function(e){return n(e)}}var Bm=Fm,Qs={exports:{}};Qs.exports;(function(n,e){var i=Df,o=e&&!e.nodeType&&e,l=o&&!0&&n&&!n.nodeType&&n,d=l&&l.exports===o,u=d&&i.process,v=function(){try{var m=l&&l.require&&l.require("util").types;return m||u&&u.binding&&u.binding("util")}catch{}}();n.exports=v})(Qs,Qs.exports);var Vm=Qs.exports,Zm=Rm,Wm=Bm,yh=Vm,Ch=yh&&yh.isTypedArray,Um=Ch?Wm(Ch):Zm,Uf=Um,jm=Gb,Gm=Zf,qm=Dn,Km=Wf,Ym=u0,Xm=Uf,Jm=Object.prototype,Qm=Jm.hasOwnProperty;function ey(n,e){var i=qm(n),o=!i&&Gm(n),l=!i&&!o&&Km(n),d=!i&&!o&&!l&&Xm(n),u=i||o||l||d,v=u?jm(n.length,String):[],m=v.length;for(var y in n)(e||Qm.call(n,y))&&!(u&&(y=="length"||l&&(y=="offset"||y=="parent")||d&&(y=="buffer"||y=="byteLength"||y=="byteOffset")||Ym(y,m)))&&v.push(y);return v}var ty=ey,ry=Object.prototype;function ny(n){var e=n&&n.constructor,i=typeof e=="function"&&e.prototype||ry;return n===i}var iy=ny;function oy(n,e){return function(i){return n(e(i))}}var ay=oy,sy=ay,ly=sy(Object.keys,Object),cy=ly,uy=iy,dy=cy,hy=Object.prototype,fy=hy.hasOwnProperty;function py(n){if(!uy(n))return dy(n);var e=[];for(var i in Object(n))fy.call(n,i)&&i!="constructor"&&e.push(i);return e}var gy=py,vy=Hf,by=d0;function my(n){return n!=null&&by(n.length)&&!vy(n)}var jf=my,yy=ty,Cy=gy,wy=jf;function xy(n){return wy(n)?yy(n):Cy(n)}var Gf=xy,zy=Pb,Ly=Ub,Sy=Gf;function My(n){return zy(n,Sy,Ly)}var Ty=My,wh=Ty,ky=1,$y=Object.prototype,Oy=$y.hasOwnProperty;function Ey(n,e,i,o,l,d){var u=i&ky,v=wh(n),m=v.length,y=wh(e),T=y.length;if(m!=T&&!u)return!1;for(var S=m;S--;){var $=v[S];if(!(u?$ in e:Oy.call(e,$)))return!1}var E=d.get(n),N=d.get(e);if(E&&N)return E==e&&N==n;var G=!0;d.set(n,e),d.set(e,n);for(var ee=u;++S<m;){$=v[S];var te=n[$],se=e[$];if(o)var re=u?o(se,te,$,e,n,d):o(te,se,$,n,e,d);if(!(re===void 0?te===se||l(te,se,i,o,d):re)){G=!1;break}ee||(ee=$=="constructor")}if(G&&!ee){var ue=n.constructor,xe=e.constructor;ue!=xe&&"constructor"in n&&"constructor"in e&&!(typeof ue=="function"&&ue instanceof ue&&typeof xe=="function"&&xe instanceof xe)&&(G=!1)}return d.delete(n),d.delete(e),G}var _y=Ey,Iy=fo,Ay=hn,Py=Iy(Ay,"DataView"),Dy=Py,Ny=fo,Hy=hn,Ry=Ny(Hy,"Promise"),Fy=Ry,By=fo,Vy=hn,Zy=By(Vy,"Set"),Wy=Zy,Uy=fo,jy=hn,Gy=Uy(jy,"WeakMap"),qy=Gy,Mc=Dy,Tc=l0,kc=Fy,$c=Wy,Oc=qy,qf=_a,bo=Rf,xh="[object Map]",Ky="[object Object]",zh="[object Promise]",Lh="[object Set]",Sh="[object WeakMap]",Mh="[object DataView]",Yy=bo(Mc),Xy=bo(Tc),Jy=bo(kc),Qy=bo($c),eC=bo(Oc),ai=qf;(Mc&&ai(new Mc(new ArrayBuffer(1)))!=Mh||Tc&&ai(new Tc)!=xh||kc&&ai(kc.resolve())!=zh||$c&&ai(new $c)!=Lh||Oc&&ai(new Oc)!=Sh)&&(ai=function(n){var e=qf(n),i=e==Ky?n.constructor:void 0,o=i?bo(i):"";if(o)switch(o){case Yy:return Mh;case Xy:return xh;case Jy:return zh;case Qy:return Lh;case eC:return Sh}return e});var tC=ai,rc=Ff,rC=Bf,nC=kb,iC=_y,Th=tC,kh=Dn,$h=Wf,oC=Uf,aC=1,Oh="[object Arguments]",Eh="[object Array]",Ms="[object Object]",sC=Object.prototype,_h=sC.hasOwnProperty;function lC(n,e,i,o,l,d){var u=kh(n),v=kh(e),m=u?Eh:Th(n),y=v?Eh:Th(e);m=m==Oh?Ms:m,y=y==Oh?Ms:y;var T=m==Ms,S=y==Ms,$=m==y;if($&&$h(n)){if(!$h(e))return!1;u=!0,T=!1}if($&&!T)return d||(d=new rc),u||oC(n)?rC(n,e,i,o,l,d):nC(n,e,m,i,o,l,d);if(!(i&aC)){var E=T&&_h.call(n,"__wrapped__"),N=S&&_h.call(e,"__wrapped__");if(E||N){var G=E?n.value():n,ee=N?e.value():e;return d||(d=new rc),l(G,ee,i,o,d)}}return $?(d||(d=new rc),iC(n,e,i,o,l,d)):!1}var cC=lC,uC=cC,Ih=Aa;function Kf(n,e,i,o,l){return n===e?!0:n==null||e==null||!Ih(n)&&!Ih(e)?n!==n&&e!==e:uC(n,e,i,o,Kf,l)}var Yf=Kf,dC=Ff,hC=Yf,fC=1,pC=2;function gC(n,e,i,o){var l=i.length,d=l,u=!o;if(n==null)return!d;for(n=Object(n);l--;){var v=i[l];if(u&&v[2]?v[1]!==n[v[0]]:!(v[0]in n))return!1}for(;++l<d;){v=i[l];var m=v[0],y=n[m],T=v[1];if(u&&v[2]){if(y===void 0&&!(m in n))return!1}else{var S=new dC;if(o)var $=o(y,T,m,n,e,S);if(!($===void 0?hC(T,y,fC|pC,o,S):$))return!1}}return!0}var vC=gC,bC=Ia;function mC(n){return n===n&&!bC(n)}var Xf=mC,yC=Xf,CC=Gf;function wC(n){for(var e=CC(n),i=e.length;i--;){var o=e[i],l=n[o];e[i]=[o,l,yC(l)]}return e}var xC=wC;function zC(n,e){return function(i){return i==null?!1:i[n]===e&&(e!==void 0||n in Object(i))}}var Jf=zC,LC=vC,SC=xC,MC=Jf;function TC(n){var e=SC(n);return e.length==1&&e[0][2]?MC(e[0][0],e[0][1]):function(i){return i===n||LC(i,n,e)}}var kC=TC,$C=_a,OC=Aa,EC="[object Symbol]";function _C(n){return typeof n=="symbol"||OC(n)&&$C(n)==EC}var kl=_C,IC=Dn,AC=kl,PC=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,DC=/^\w*$/;function NC(n,e){if(IC(n))return!1;var i=typeof n;return i=="number"||i=="symbol"||i=="boolean"||n==null||AC(n)?!0:DC.test(n)||!PC.test(n)||e!=null&&n in Object(e)}var h0=NC,Qf=c0,HC="Expected a function";function f0(n,e){if(typeof n!="function"||e!=null&&typeof e!="function")throw new TypeError(HC);var i=function(){var o=arguments,l=e?e.apply(this,o):o[0],d=i.cache;if(d.has(l))return d.get(l);var u=n.apply(this,o);return i.cache=d.set(l,u)||d,u};return i.cache=new(f0.Cache||Qf),i}f0.Cache=Qf;var RC=f0,FC=RC,BC=500;function VC(n){var e=FC(n,function(o){return i.size===BC&&i.clear(),o}),i=e.cache;return e}var ZC=VC,WC=ZC,UC=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,jC=/\\(\\)?/g,GC=WC(function(n){var e=[];return n.charCodeAt(0)===46&&e.push(""),n.replace(UC,function(i,o,l,d){e.push(l?d.replace(jC,"$1"):o||i)}),e}),qC=GC;function KC(n,e){for(var i=-1,o=n==null?0:n.length,l=Array(o);++i<o;)l[i]=e(n[i],i,n);return l}var YC=KC,Ah=Sl,XC=YC,JC=Dn,QC=kl,ew=1/0,Ph=Ah?Ah.prototype:void 0,Dh=Ph?Ph.toString:void 0;function ep(n){if(typeof n=="string")return n;if(JC(n))return XC(n,ep)+"";if(QC(n))return Dh?Dh.call(n):"";var e=n+"";return e=="0"&&1/n==-ew?"-0":e}var tw=ep,rw=tw;function nw(n){return n==null?"":rw(n)}var iw=nw,ow=Dn,aw=h0,sw=qC,lw=iw;function cw(n,e){return ow(n)?n:aw(n,e)?[n]:sw(lw(n))}var tp=cw,uw=kl,dw=1/0;function hw(n){if(typeof n=="string"||uw(n))return n;var e=n+"";return e=="0"&&1/n==-dw?"-0":e}var $l=hw,fw=tp,pw=$l;function gw(n,e){e=fw(e,n);for(var i=0,o=e.length;n!=null&&i<o;)n=n[pw(e[i++])];return i&&i==o?n:void 0}var rp=gw,vw=rp;function bw(n,e,i){var o=n==null?void 0:vw(n,e);return o===void 0?i:o}var mw=bw;function yw(n,e){return n!=null&&e in Object(n)}var Cw=yw,ww=tp,xw=Zf,zw=Dn,Lw=u0,Sw=d0,Mw=$l;function Tw(n,e,i){e=ww(e,n);for(var o=-1,l=e.length,d=!1;++o<l;){var u=Mw(e[o]);if(!(d=n!=null&&i(n,u)))break;n=n[u]}return d||++o!=l?d:(l=n==null?0:n.length,!!l&&Sw(l)&&Lw(u,l)&&(zw(n)||xw(n)))}var kw=Tw,$w=Cw,Ow=kw;function Ew(n,e){return n!=null&&Ow(n,e,$w)}var _w=Ew,Iw=Yf,Aw=mw,Pw=_w,Dw=h0,Nw=Xf,Hw=Jf,Rw=$l,Fw=1,Bw=2;function Vw(n,e){return Dw(n)&&Nw(e)?Hw(Rw(n),e):function(i){var o=Aw(i,n);return o===void 0&&o===e?Pw(i,n):Iw(e,o,Fw|Bw)}}var Zw=Vw;function Ww(n){return n}var Uw=Ww;function jw(n){return function(e){return e==null?void 0:e[n]}}var Gw=jw,qw=rp;function Kw(n){return function(e){return qw(e,n)}}var Yw=Kw,Xw=Gw,Jw=Yw,Qw=h0,ex=$l;function tx(n){return Qw(n)?Xw(ex(n)):Jw(n)}var rx=tx,nx=kC,ix=Zw,ox=Uw,ax=Dn,sx=rx;function lx(n){return typeof n=="function"?n:n==null?ox:typeof n=="object"?ax(n)?ix(n[0],n[1]):nx(n):sx(n)}var cx=lx,ux=/\s/;function dx(n){for(var e=n.length;e--&&ux.test(n.charAt(e)););return e}var hx=dx,fx=hx,px=/^\s+/;function gx(n){return n&&n.slice(0,fx(n)+1).replace(px,"")}var vx=gx,bx=vx,Nh=Ia,mx=kl,Hh=0/0,yx=/^[-+]0x[0-9a-f]+$/i,Cx=/^0b[01]+$/i,wx=/^0o[0-7]+$/i,xx=parseInt;function zx(n){if(typeof n=="number")return n;if(mx(n))return Hh;if(Nh(n)){var e=typeof n.valueOf=="function"?n.valueOf():n;n=Nh(e)?e+"":e}if(typeof n!="string")return n===0?n:+n;n=bx(n);var i=Cx.test(n);return i||wx.test(n)?xx(n.slice(2),i?2:8):yx.test(n)?Hh:+n}var Lx=zx,Sx=Lx,Rh=1/0,Mx=17976931348623157e292;function Tx(n){if(!n)return n===0?n:0;if(n=Sx(n),n===Rh||n===-Rh){var e=n<0?-1:1;return e*Mx}return n===n?n:0}var np=Tx,kx=np;function $x(n){var e=kx(n),i=e%1;return e===e?i?e-i:e:0}var Ox=$x,Ex=j9,_x=cx,Ix=Ox,Ax=Math.max,Px=Math.min;function Dx(n,e,i){var o=n==null?0:n.length;if(!o)return-1;var l=o-1;return i!==void 0&&(l=Ix(i),l=i<0?Ax(o+l,0):Px(l,o-1)),Ex(n,_x(e),l,!0)}var Nx=Dx;const Hx=a0(Nx);/**
1714
1714
  * @license
1715
1715
  * Copyright 2020 Google LLC
1716
1716
  * SPDX-License-Identifier: BSD-3-Clause
1717
- */const{I:Px}=Y3,Rh=()=>document.createComment(""),ca=(n,e,i)=>{var o;const l=n._$AA.parentNode,d=e===void 0?n._$AB:e._$AA;if(i===void 0){const u=l.insertBefore(Rh(),d),v=l.insertBefore(Rh(),d);i=new Px(u,v,n,n.options)}else{const u=i._$AB.nextSibling,v=i._$AM,m=v!==n;if(m){let y;(o=i._$AQ)===null||o===void 0||o.call(i,n),i._$AM=n,i._$AP!==void 0&&(y=n._$AU)!==v._$AU&&i._$AP(y)}if(u!==d||m){let y=i._$AA;for(;y!==u;){const T=y.nextSibling;l.insertBefore(y,d),y=T}}}return i},ni=(n,e,i=n)=>(n._$AI(e,i),n),Dx={},Nx=(n,e=Dx)=>n._$AH=e,Hx=n=>n._$AH,nc=n=>{var e;(e=n._$AP)===null||e===void 0||e.call(n,!1,!0);let i=n._$AA;const o=n._$AB.nextSibling;for(;i!==o;){const l=i.nextSibling;i.remove(),i=l}};/**
1717
+ */const{I:Rx}=e7,Fh=()=>document.createComment(""),ca=(n,e,i)=>{var o;const l=n._$AA.parentNode,d=e===void 0?n._$AB:e._$AA;if(i===void 0){const u=l.insertBefore(Fh(),d),v=l.insertBefore(Fh(),d);i=new Rx(u,v,n,n.options)}else{const u=i._$AB.nextSibling,v=i._$AM,m=v!==n;if(m){let y;(o=i._$AQ)===null||o===void 0||o.call(i,n),i._$AM=n,i._$AP!==void 0&&(y=n._$AU)!==v._$AU&&i._$AP(y)}if(u!==d||m){let y=i._$AA;for(;y!==u;){const T=y.nextSibling;l.insertBefore(y,d),y=T}}}return i},ni=(n,e,i=n)=>(n._$AI(e,i),n),Fx={},Bx=(n,e=Fx)=>n._$AH=e,Vx=n=>n._$AH,nc=n=>{var e;(e=n._$AP)===null||e===void 0||e.call(n,!1,!0);let i=n._$AA;const o=n._$AB.nextSibling;for(;i!==o;){const l=i.nextSibling;i.remove(),i=l}};/**
1718
1718
  * @license
1719
1719
  * Copyright 2017 Google LLC
1720
1720
  * SPDX-License-Identifier: BSD-3-Clause
1721
- */const Fh=(n,e,i)=>{const o=new Map;for(let l=e;l<=i;l++)o.set(n[l],l);return o},Rx=gl(class extends vl{constructor(n){if(super(n),n.type!==pl.CHILD)throw Error("repeat() can only be used in text expressions")}dt(n,e,i){let o;i===void 0?i=e:e!==void 0&&(o=e);const l=[],d=[];let u=0;for(const v of n)l[u]=o?o(v,u):u,d[u]=i(v,u),u++;return{values:d,keys:l}}render(n,e,i){return this.dt(n,e,i).values}update(n,[e,i,o]){var l;const d=Hx(n),{values:u,keys:v}=this.dt(e,i,o);if(!Array.isArray(d))return this.ht=v,u;const m=(l=this.ht)!==null&&l!==void 0?l:this.ht=[],y=[];let T,S,$=0,E=d.length-1,N=0,G=u.length-1;for(;$<=E&&N<=G;)if(d[$]===null)$++;else if(d[E]===null)E--;else if(m[$]===v[N])y[N]=ni(d[$],u[N]),$++,N++;else if(m[E]===v[G])y[G]=ni(d[E],u[G]),E--,G--;else if(m[$]===v[G])y[G]=ni(d[$],u[G]),ca(n,y[G+1],d[$]),$++,G--;else if(m[E]===v[N])y[N]=ni(d[E],u[N]),ca(n,d[$],d[E]),E--,N++;else if(T===void 0&&(T=Fh(v,N,G),S=Fh(m,$,E)),T.has(m[$]))if(T.has(m[E])){const ee=S.get(v[N]),te=ee!==void 0?d[ee]:null;if(te===null){const se=ca(n,d[$]);ni(se,u[N]),y[N]=se}else y[N]=ni(te,u[N]),ca(n,d[$],te),d[ee]=null;N++}else nc(d[E]),E--;else nc(d[$]),$++;for(;N<=G;){const ee=ca(n,y[G+1]);ni(ee,u[N]),y[N++]=ee}for(;$<=E;){const ee=d[$++];ee!==null&&nc(ee)}return this.ht=v,Nx(n,y),sn}});/**
1721
+ */const Bh=(n,e,i)=>{const o=new Map;for(let l=e;l<=i;l++)o.set(n[l],l);return o},Zx=gl(class extends vl{constructor(n){if(super(n),n.type!==pl.CHILD)throw Error("repeat() can only be used in text expressions")}dt(n,e,i){let o;i===void 0?i=e:e!==void 0&&(o=e);const l=[],d=[];let u=0;for(const v of n)l[u]=o?o(v,u):u,d[u]=i(v,u),u++;return{values:d,keys:l}}render(n,e,i){return this.dt(n,e,i).values}update(n,[e,i,o]){var l;const d=Vx(n),{values:u,keys:v}=this.dt(e,i,o);if(!Array.isArray(d))return this.ht=v,u;const m=(l=this.ht)!==null&&l!==void 0?l:this.ht=[],y=[];let T,S,$=0,E=d.length-1,N=0,G=u.length-1;for(;$<=E&&N<=G;)if(d[$]===null)$++;else if(d[E]===null)E--;else if(m[$]===v[N])y[N]=ni(d[$],u[N]),$++,N++;else if(m[E]===v[G])y[G]=ni(d[E],u[G]),E--,G--;else if(m[$]===v[G])y[G]=ni(d[$],u[G]),ca(n,y[G+1],d[$]),$++,G--;else if(m[E]===v[N])y[N]=ni(d[E],u[N]),ca(n,d[$],d[E]),E--,N++;else if(T===void 0&&(T=Bh(v,N,G),S=Bh(m,$,E)),T.has(m[$]))if(T.has(m[E])){const ee=S.get(v[N]),te=ee!==void 0?d[ee]:null;if(te===null){const se=ca(n,d[$]);ni(se,u[N]),y[N]=se}else y[N]=ni(te,u[N]),ca(n,d[$],te),d[ee]=null;N++}else nc(d[E]),E--;else nc(d[$]),$++;for(;N<=G;){const ee=ca(n,y[G+1]);ni(ee,u[N]),y[N++]=ee}for(;$<=E;){const ee=d[$++];ee!==null&&nc(ee)}return this.ht=v,Bx(n,y),sn}});/**
1722
1722
  * @license
1723
1723
  * Copyright 2018 Google LLC
1724
1724
  * SPDX-License-Identifier: BSD-3-Clause
1725
- */const ep="important",Fx=" !"+ep,Bx=gl(class extends vl{constructor(n){var e;if(super(n),n.type!==pl.ATTRIBUTE||n.name!=="style"||((e=n.strings)===null||e===void 0?void 0:e.length)>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(n){return Object.keys(n).reduce((e,i)=>{const o=n[i];return o==null?e:e+`${i=i.includes("-")?i:i.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${o};`},"")}update(n,[e]){const{style:i}=n.element;if(this.ut===void 0){this.ut=new Set;for(const o in e)this.ut.add(o);return this.render(e)}this.ut.forEach(o=>{e[o]==null&&(this.ut.delete(o),o.includes("-")?i.removeProperty(o):i[o]="")});for(const o in e){const l=e[o];if(l!=null){this.ut.add(o);const d=typeof l=="string"&&l.endsWith(Fx);o.includes("-")||d?i.setProperty(o,d?l.slice(0,-11):l,d?ep:""):i[o]=l}}return sn}});var Vx=Object.defineProperty,Zx=Object.getOwnPropertyDescriptor,Xt=(n,e,i,o)=>{for(var l=o>1?void 0:o?Zx(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&Vx(e,i,l),l};const f0=ne("virtual-list");exports.VirtualList=class extends me{constructor(){super(...arguments),this.items=[],this.itemMinHeight=32,this.overscan=50,this.renderItem=(e,i)=>P`
1725
+ */const ip="important",Wx=" !"+ip,Ux=gl(class extends vl{constructor(n){var e;if(super(n),n.type!==pl.ATTRIBUTE||n.name!=="style"||((e=n.strings)===null||e===void 0?void 0:e.length)>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(n){return Object.keys(n).reduce((e,i)=>{const o=n[i];return o==null?e:e+`${i=i.includes("-")?i:i.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${o};`},"")}update(n,[e]){const{style:i}=n.element;if(this.ut===void 0){this.ut=new Set;for(const o in e)this.ut.add(o);return this.render(e)}this.ut.forEach(o=>{e[o]==null&&(this.ut.delete(o),o.includes("-")?i.removeProperty(o):i[o]="")});for(const o in e){const l=e[o];if(l!=null){this.ut.add(o);const d=typeof l=="string"&&l.endsWith(Wx);o.includes("-")||d?i.setProperty(o,d?l.slice(0,-11):l,d?ip:""):i[o]=l}}return sn}});var jx=Object.defineProperty,Gx=Object.getOwnPropertyDescriptor,Xt=(n,e,i,o)=>{for(var l=o>1?void 0:o?Gx(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&jx(e,i,l),l};const p0=ne("virtual-list");exports.VirtualList=class extends me{constructor(){super(...arguments),this.items=[],this.itemMinHeight=32,this.overscan=50,this.renderItem=(e,i)=>P`
1726
1726
  <div
1727
1727
  class="default-render-item"
1728
1728
  style="min-height: ${this.itemMinHeight}px"
1729
1729
  >
1730
1730
  Item ${i}: ${JSON.stringify(e)}
1731
1731
  </div>
1732
- `,this.currentScrollTop=0,this.endIndex=0,this.innerHeight=0,this.itemHeights=[],this.itemIdentifier="",this.originalItemsCount=0,this.currentItemsCount=0,this.visibleItems=[]}connectedCallback(){super.connectedCallback(),this.sync()}async sync(){this.originalItemsCount=this.items.length,this.itemHeights=Array(this.originalItemsCount).fill(this.itemMinHeight),await this.updateComplete,this.syncVisibleItems()}updated(e){super.updated(e),this.canSync(e)&&this.sync()}get estimatedInnerHeight(){return this.estimatedItemMinHeight*this.currentItemsCount}get estimatedItemMinHeight(){return Math.min(this.itemHeightMean,this.slicedItemHeightMode,this.itemMinHeight)}get itemHeightMean(){return this.itemHeights.reduce((e,i)=>e+i,0)/this.originalItemsCount}get slicedItemHeightMode(){const e={};let i=0,o=0;return this.itemHeights.slice(0,this.overscan).forEach(l=>{e[l]?e[l]++:e[l]=1,e[l]>o&&(i=l,o=e[l])}),i}resetItems(){this.visibleItems=[],this.currentItemsCount=this.items.length,this.endIndex=this.currentItemsCount-1,this.innerHeight=this.estimatedInnerHeight}canSync(e){return["items","renderItem"].reduce((i,o)=>i||e.has(o),!1)}sumOfHeightsToIndex(e){return this.itemHeights.slice(0,e).reduce((i,o)=>(i+=o,i),0)}syncVisibleItems(){this.resetItems();for(let e=this.rollingStartIndex;e<=this.rollingEndIndex;e++){const i={position:"absolute",top:`${this.sumOfHeightsToIndex(e)}px`,width:"100%"},o=this.renderItem(this.items[e],e);if(!this.itemIdentifier){const u=Y2(o,new DocumentFragment).parentNode.firstElementChild,v=u==null?void 0:u.tagName.toLowerCase(),m=u==null?void 0:u.className;this.itemIdentifier=`${v}${m?`.${m}`:""}`}const l=P`
1733
- <div class="item-wrapper" style=${Bx(i)}>
1732
+ `,this.currentScrollTop=0,this.endIndex=0,this.innerHeight=0,this.itemHeights=[],this.itemIdentifier="",this.originalItemsCount=0,this.currentItemsCount=0,this.visibleItems=[]}connectedCallback(){super.connectedCallback(),this.sync()}async sync(){this.originalItemsCount=this.items.length,this.itemHeights=Array(this.originalItemsCount).fill(this.itemMinHeight),await this.updateComplete,this.syncVisibleItems()}updated(e){super.updated(e),this.canSync(e)&&this.sync()}get estimatedInnerHeight(){return this.estimatedItemMinHeight*this.currentItemsCount}get estimatedItemMinHeight(){return Math.min(this.itemHeightMean,this.slicedItemHeightMode,this.itemMinHeight)}get itemHeightMean(){return this.itemHeights.reduce((e,i)=>e+i,0)/this.originalItemsCount}get slicedItemHeightMode(){const e={};let i=0,o=0;return this.itemHeights.slice(0,this.overscan).forEach(l=>{e[l]?e[l]++:e[l]=1,e[l]>o&&(i=l,o=e[l])}),i}resetItems(){this.visibleItems=[],this.currentItemsCount=this.items.length,this.endIndex=this.currentItemsCount-1,this.innerHeight=this.estimatedInnerHeight}canSync(e){return["items","renderItem"].reduce((i,o)=>i||e.has(o),!1)}sumOfHeightsToIndex(e){return this.itemHeights.slice(0,e).reduce((i,o)=>(i+=o,i),0)}syncVisibleItems(){this.resetItems();for(let e=this.rollingStartIndex;e<=this.rollingEndIndex;e++){const i={position:"absolute",top:`${this.sumOfHeightsToIndex(e)}px`,width:"100%"},o=this.renderItem(this.items[e],e);if(!this.itemIdentifier){const u=ef(o,new DocumentFragment).parentNode.firstElementChild,v=u==null?void 0:u.tagName.toLowerCase(),m=u==null?void 0:u.className;this.itemIdentifier=`${v}${m?`.${m}`:""}`}const l=P`
1733
+ <div class="item-wrapper" style=${Ux(i)}>
1734
1734
  ${o}
1735
1735
  </div>
1736
- `;this.visibleItems.push({index:e,item:l})}this.updateItemHeights(),this.emitUpdate()}async emitUpdate(){await this.updateComplete;const e=[...this.list.children].map(i=>i.firstElementChild);this.dispatchEvent(new tp({detail:{itemElements:e}}))}async updateItemHeights(){await this.updateComplete,this.visibleItems.forEach(({index:e},i)=>{var o,l;this.itemHeights[e]=((l=(o=this.visibleItemElements)==null?void 0:o[i])==null?void 0:l.getBoundingClientRect().height)||this.itemHeights[e]})}get visibleItemElements(){var e;if(!this.itemIdentifier)throw new Error("Each list item should be wrapped in a single layout element. Check your renderItem template.");return(e=this.shadowRoot)==null?void 0:e.querySelectorAll(this.itemIdentifier)}handleScroll(e){var i;this.currentScrollTop=(i=e.currentTarget)==null?void 0:i.scrollTop,this.syncVisibleItems()}get rollingStartIndex(){const e=Math.floor(this.currentScrollTop/this.estimatedItemMinHeight),i=Math.min(this.overscan,e);return e-i}get rollingEndIndex(){const e=Math.min(this.endIndex,Math.floor((this.currentScrollTop+this.containerHeight)/this.estimatedItemMinHeight)),i=Math.min(this.overscan,this.endIndex-e);return e+i}get containerHeight(){return this.getBoundingClientRect().height}render(){return this.updateItemHeights(),P`
1736
+ `;this.visibleItems.push({index:e,item:l})}this.updateItemHeights(),this.emitUpdate()}async emitUpdate(){await this.updateComplete;const e=[...this.list.children].map(i=>i.firstElementChild);this.dispatchEvent(new op({detail:{itemElements:e}}))}async updateItemHeights(){await this.updateComplete,this.visibleItems.forEach(({index:e},i)=>{var o,l;this.itemHeights[e]=((l=(o=this.visibleItemElements)==null?void 0:o[i])==null?void 0:l.getBoundingClientRect().height)||this.itemHeights[e]})}get visibleItemElements(){var e;if(!this.itemIdentifier)throw new Error("Each list item should be wrapped in a single layout element. Check your renderItem template.");return(e=this.shadowRoot)==null?void 0:e.querySelectorAll(this.itemIdentifier)}handleScroll(e){var i;this.currentScrollTop=(i=e.currentTarget)==null?void 0:i.scrollTop,this.syncVisibleItems()}get rollingStartIndex(){const e=Math.floor(this.currentScrollTop/this.estimatedItemMinHeight),i=Math.min(this.overscan,e);return e-i}get rollingEndIndex(){const e=Math.min(this.endIndex,Math.floor((this.currentScrollTop+this.containerHeight)/this.estimatedItemMinHeight)),i=Math.min(this.overscan,this.endIndex-e);return e+i}get containerHeight(){return this.getBoundingClientRect().height}render(){return this.updateItemHeights(),P`
1737
1737
  <div class="container" @scroll=${this.handleScroll}>
1738
1738
  <div class="list" style="height: ${this.innerHeight}px">
1739
- ${Rx(this.visibleItems,({index:e})=>e,({item:e})=>e)}
1739
+ ${Zx(this.visibleItems,({index:e})=>e,({item:e})=>e)}
1740
1740
  </div>
1741
1741
  </div>
1742
1742
  `}};exports.VirtualList.styles=[j`
@@ -1753,7 +1753,7 @@
1753
1753
  .list {
1754
1754
  position: relative;
1755
1755
  }
1756
- `];Xt([O({type:Array})],exports.VirtualList.prototype,"items",2);Xt([O({attribute:"item-min-height",type:Number})],exports.VirtualList.prototype,"itemMinHeight",2);Xt([O({type:Number,attribute:"overscan"})],exports.VirtualList.prototype,"overscan",2);Xt([O({attribute:!1})],exports.VirtualList.prototype,"renderItem",2);Xt([pe()],exports.VirtualList.prototype,"currentScrollTop",2);Xt([pe()],exports.VirtualList.prototype,"endIndex",2);Xt([pe()],exports.VirtualList.prototype,"innerHeight",2);Xt([pe()],exports.VirtualList.prototype,"itemHeights",2);Xt([pe()],exports.VirtualList.prototype,"itemIdentifier",2);Xt([pe()],exports.VirtualList.prototype,"originalItemsCount",2);Xt([pe()],exports.VirtualList.prototype,"currentItemsCount",2);Xt([pe()],exports.VirtualList.prototype,"visibleItems",2);Xt([Er(".list")],exports.VirtualList.prototype,"list",2);exports.VirtualList=Xt([R(f0)],exports.VirtualList);class tp extends CustomEvent{constructor(e={}){super("brz-virtual-list-update",{bubbles:!0,composed:!0,...e})}}const rp=ne("record-field"),np=ne("record-field-label"),Wx=["x-small","small","medium","large","x-large","auto","full"],Ux=["side","top"],jx=j`
1756
+ `];Xt([O({type:Array})],exports.VirtualList.prototype,"items",2);Xt([O({attribute:"item-min-height",type:Number})],exports.VirtualList.prototype,"itemMinHeight",2);Xt([O({type:Number,attribute:"overscan"})],exports.VirtualList.prototype,"overscan",2);Xt([O({attribute:!1})],exports.VirtualList.prototype,"renderItem",2);Xt([pe()],exports.VirtualList.prototype,"currentScrollTop",2);Xt([pe()],exports.VirtualList.prototype,"endIndex",2);Xt([pe()],exports.VirtualList.prototype,"innerHeight",2);Xt([pe()],exports.VirtualList.prototype,"itemHeights",2);Xt([pe()],exports.VirtualList.prototype,"itemIdentifier",2);Xt([pe()],exports.VirtualList.prototype,"originalItemsCount",2);Xt([pe()],exports.VirtualList.prototype,"currentItemsCount",2);Xt([pe()],exports.VirtualList.prototype,"visibleItems",2);Xt([Er(".list")],exports.VirtualList.prototype,"list",2);exports.VirtualList=Xt([R(p0)],exports.VirtualList);class op extends CustomEvent{constructor(e={}){super("brz-virtual-list-update",{bubbles:!0,composed:!0,...e})}}const ap=ne("record-field"),sp=ne("record-field-label"),qx=["x-small","small","medium","large","x-large","auto","full"],Kx=["side","top"],Yx=j`
1757
1757
  .size-x-small {
1758
1758
  width: 80px;
1759
1759
  }
@@ -1777,7 +1777,7 @@
1777
1777
  .size-full {
1778
1778
  width: 100%;
1779
1779
  }
1780
- `,Gx=j`
1780
+ `,Xx=j`
1781
1781
  :host {
1782
1782
  display: block;
1783
1783
  }
@@ -1851,7 +1851,7 @@
1851
1851
  :host([label-position='side']) .value.size-auto {
1852
1852
  flex-grow: 1;
1853
1853
  }
1854
- `,qx=j`
1854
+ `,Jx=j`
1855
1855
  :host {
1856
1856
  display: inline-flex;
1857
1857
  color: var(--brz-color-neutral-850);
@@ -1859,7 +1859,7 @@
1859
1859
  line-height: var(--brz-line-height);
1860
1860
  gap: var(--brz-spacing-1);
1861
1861
  }
1862
- `;var Kx=Object.defineProperty,Yx=Object.getOwnPropertyDescriptor,fn=(n,e,i,o)=>{for(var l=o>1?void 0:o?Yx(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&Kx(e,i,l),l};exports.RecordField=class extends me{constructor(){super(...arguments),this.labelPosition="top",this.size="medium",this.hasLabel=!1,this.hasLabelRight=!1,this.isValueMultiline=!1}updated(e){super.updated(e),e.has("labelPosition")&&this.setLabelState(),e.has("size")&&this.checkIfMultiline()}async setLabelState(){await this.updateComplete,this.hasLabel=!!this.slottedLabel.length&&!this.slottedLabel[0].hidden,this.hasLabelRight=!!this.slottedLabelRight.length&&!this.slottedLabelRight[0].hidden}checkIfMultiline(){this.isValueMultiline=this.value.clientHeight>=2*20&&this.value.clientHeight%20===0}get sizeClass(){return`size-${this.size}`}get labelRightRowTemplate(){return P`
1862
+ `;var Qx=Object.defineProperty,ez=Object.getOwnPropertyDescriptor,fn=(n,e,i,o)=>{for(var l=o>1?void 0:o?ez(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&Qx(e,i,l),l};exports.RecordField=class extends me{constructor(){super(...arguments),this.labelPosition="top",this.size="medium",this.hasLabel=!1,this.hasLabelRight=!1,this.isValueMultiline=!1}updated(e){super.updated(e),e.has("labelPosition")&&this.setLabelState(),e.has("size")&&this.checkIfMultiline()}async setLabelState(){await this.updateComplete,this.hasLabel=!!this.slottedLabel.length&&!this.slottedLabel[0].hidden,this.hasLabelRight=!!this.slottedLabelRight.length&&!this.slottedLabelRight[0].hidden}checkIfMultiline(){this.isValueMultiline=this.value.clientHeight>=2*20&&this.value.clientHeight%20===0}get sizeClass(){return`size-${this.size}`}get labelRightRowTemplate(){return P`
1863
1863
  <brz-split-row
1864
1864
  class=${Yt({[this.sizeClass]:!0,label:!0,"label-right-row":!0,hidden:!this.hasLabelRight})}
1865
1865
  >
@@ -1882,16 +1882,16 @@
1882
1882
  ${this.valueTemplate}
1883
1883
  </div>
1884
1884
  </div>
1885
- `}};exports.RecordField.styles=[Gx,jx];fn([O({type:String,attribute:"label-position",reflect:!0})],exports.RecordField.prototype,"labelPosition",2);fn([O({type:String,reflect:!0})],exports.RecordField.prototype,"size",2);fn([pe()],exports.RecordField.prototype,"hasLabel",2);fn([pe()],exports.RecordField.prototype,"hasLabelRight",2);fn([pe()],exports.RecordField.prototype,"isValueMultiline",2);fn([Er(".value")],exports.RecordField.prototype,"value",2);fn([cn({slot:"label"})],exports.RecordField.prototype,"slottedLabel",2);fn([cn({slot:"label-right"})],exports.RecordField.prototype,"slottedLabelRight",2);exports.RecordField=fn([R(rp)],exports.RecordField);var Xx=Object.defineProperty,Jx=Object.getOwnPropertyDescriptor,p0=(n,e,i,o)=>{for(var l=o>1?void 0:o?Jx(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&Xx(e,i,l),l};exports.RecordFieldLabel=class extends me{constructor(){super(...arguments),this.hasContent=!1}connectedCallback(){super.connectedCallback(),this.slot="label"}updated(e){super.updated(e),this.setState()}async setState(){await this.updateComplete,this.hasContent=!!this.defaultSlot.length,this.hidden=this.hidden||!this.hasContent}render(){return P` <slot></slot> `}};exports.RecordFieldLabel.styles=[qx];p0([pe()],exports.RecordFieldLabel.prototype,"hasContent",2);p0([cn()],exports.RecordFieldLabel.prototype,"defaultSlot",2);exports.RecordFieldLabel=p0([R(np)],exports.RecordFieldLabel);var Qx=Object.defineProperty,ez=Object.getOwnPropertyDescriptor,Nn=(n,e,i,o)=>{for(var l=o>1?void 0:o?ez(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&Qx(e,i,l),l};class Jt extends me{constructor(){super(...arguments),this.disabled=!1,this.required=!1,this.invalid=!1,this.name="",this.id="input",this.useProxy=!1}connectedCallback(){super.connectedCallback(),this.useProxy&&this.createProxyInput()}onInput(e){this.value=e.target.value,this.dispatchChange()}dispatchChange(){this.dispatchEvent(new CustomEvent("brz-input-change",{detail:{value:this.value}}))}createProxyInput(){this.proxyInput=this.ownerDocument.createElement("input"),this.proxyInput.type="hidden",this.appendChild(this.proxyInput)}updateProxyInput(){typeof this.value=="string"&&this.proxyInput&&(this.proxyInput.name=this.name,this.proxyInput.value=this.value||"")}updated(e){super.updated(e),this.useProxy&&this.updateProxyInput()}}Jt.shadowRootOptions={mode:"open",delegatesFocus:!0};Nn([O({type:Boolean,reflect:!0})],Jt.prototype,"disabled",2);Nn([O({type:Boolean,reflect:!0})],Jt.prototype,"required",2);Nn([O({type:Boolean,reflect:!0})],Jt.prototype,"invalid",2);Nn([O({type:String})],Jt.prototype,"name",2);Nn([O({type:String})],Jt.prototype,"id",2);Nn([O({type:String})],Jt.prototype,"value",2);Nn([pe()],Jt.prototype,"proxyInput",2);Nn([pe()],Jt.prototype,"useProxy",2);var tz=Object.defineProperty,rz=Object.getOwnPropertyDescriptor,nz=(n,e,i,o)=>{for(var l=o>1?void 0:o?rz(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&tz(e,i,l),l};const iz=ne("input-guide");let el=class extends me{render(){return P` <slot></slot> `}};el.styles=j`
1885
+ `}};exports.RecordField.styles=[Xx,Yx];fn([O({type:String,attribute:"label-position",reflect:!0})],exports.RecordField.prototype,"labelPosition",2);fn([O({type:String,reflect:!0})],exports.RecordField.prototype,"size",2);fn([pe()],exports.RecordField.prototype,"hasLabel",2);fn([pe()],exports.RecordField.prototype,"hasLabelRight",2);fn([pe()],exports.RecordField.prototype,"isValueMultiline",2);fn([Er(".value")],exports.RecordField.prototype,"value",2);fn([cn({slot:"label"})],exports.RecordField.prototype,"slottedLabel",2);fn([cn({slot:"label-right"})],exports.RecordField.prototype,"slottedLabelRight",2);exports.RecordField=fn([R(ap)],exports.RecordField);var tz=Object.defineProperty,rz=Object.getOwnPropertyDescriptor,g0=(n,e,i,o)=>{for(var l=o>1?void 0:o?rz(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&tz(e,i,l),l};exports.RecordFieldLabel=class extends me{constructor(){super(...arguments),this.hasContent=!1}connectedCallback(){super.connectedCallback(),this.slot="label"}updated(e){super.updated(e),this.setState()}async setState(){await this.updateComplete,this.hasContent=!!this.defaultSlot.length,this.hidden=this.hidden||!this.hasContent}render(){return P` <slot></slot> `}};exports.RecordFieldLabel.styles=[Jx];g0([pe()],exports.RecordFieldLabel.prototype,"hasContent",2);g0([cn()],exports.RecordFieldLabel.prototype,"defaultSlot",2);exports.RecordFieldLabel=g0([R(sp)],exports.RecordFieldLabel);var nz=Object.defineProperty,iz=Object.getOwnPropertyDescriptor,Nn=(n,e,i,o)=>{for(var l=o>1?void 0:o?iz(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&nz(e,i,l),l};class Jt extends me{constructor(){super(...arguments),this.disabled=!1,this.required=!1,this.invalid=!1,this.name="",this.id="input",this.useProxy=!1}connectedCallback(){super.connectedCallback(),this.useProxy&&this.createProxyInput()}onInput(e){this.value=e.target.value,this.dispatchChange()}dispatchChange(){this.dispatchEvent(new CustomEvent("brz-input-change",{detail:{value:this.value}}))}createProxyInput(){this.proxyInput=this.ownerDocument.createElement("input"),this.proxyInput.type="hidden",this.appendChild(this.proxyInput)}updateProxyInput(){typeof this.value=="string"&&this.proxyInput&&(this.proxyInput.name=this.name,this.proxyInput.value=this.value||"")}updated(e){super.updated(e),this.useProxy&&this.updateProxyInput()}}Jt.shadowRootOptions={mode:"open",delegatesFocus:!0};Nn([O({type:Boolean,reflect:!0})],Jt.prototype,"disabled",2);Nn([O({type:Boolean,reflect:!0})],Jt.prototype,"required",2);Nn([O({type:Boolean,reflect:!0})],Jt.prototype,"invalid",2);Nn([O({type:String})],Jt.prototype,"name",2);Nn([O({type:String})],Jt.prototype,"id",2);Nn([O({type:String})],Jt.prototype,"value",2);Nn([pe()],Jt.prototype,"proxyInput",2);Nn([pe()],Jt.prototype,"useProxy",2);var oz=Object.defineProperty,az=Object.getOwnPropertyDescriptor,sz=(n,e,i,o)=>{for(var l=o>1?void 0:o?az(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&oz(e,i,l),l};const lz=ne("input-guide");let el=class extends me{render(){return P` <slot></slot> `}};el.styles=j`
1886
1886
  :host {
1887
1887
  font-size: var(--brz-font-size-xs);
1888
1888
  }
1889
- `;el=nz([R(iz)],el);var oz=Object.defineProperty,az=Object.getOwnPropertyDescriptor,sz=(n,e,i,o)=>{for(var l=o>1?void 0:o?az(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&oz(e,i,l),l};const ip=ne("input-error");exports.InputError=class extends me{render(){return P` <slot></slot> `}};exports.InputError.styles=j`
1889
+ `;el=sz([R(lz)],el);var cz=Object.defineProperty,uz=Object.getOwnPropertyDescriptor,dz=(n,e,i,o)=>{for(var l=o>1?void 0:o?uz(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&cz(e,i,l),l};const lp=ne("input-error");exports.InputError=class extends me{render(){return P` <slot></slot> `}};exports.InputError.styles=j`
1890
1890
  :host {
1891
1891
  font-size: var(--brz-font-size);
1892
1892
  color: var(--brz-color-error);
1893
1893
  }
1894
- `;exports.InputError=sz([R(ip)],exports.InputError);var lz=Object.defineProperty,cz=Object.getOwnPropertyDescriptor,qr=(n,e,i,o)=>{for(var l=o>1?void 0:o?cz(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&lz(e,i,l),l};const op=ne("labeled-input"),ap=ne("input-label"),uz=j`
1894
+ `;exports.InputError=dz([R(lp)],exports.InputError);var hz=Object.defineProperty,fz=Object.getOwnPropertyDescriptor,qr=(n,e,i,o)=>{for(var l=o>1?void 0:o?fz(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&hz(e,i,l),l};const cp=ne("labeled-input"),up=ne("input-label"),pz=j`
1895
1895
  .guide {
1896
1896
  display: flex;
1897
1897
  }
@@ -1950,7 +1950,7 @@
1950
1950
  :host([optional]:not([required])) .label-flag {
1951
1951
  color: var(--brz-color-text-placeholder);
1952
1952
  }
1953
- `,uz];qr([O({type:String,attribute:"label-position",reflect:!0})],exports.LabeledInput.prototype,"labelPosition",2);qr([O({type:String,reflect:!0})],exports.LabeledInput.prototype,"size",2);qr([O({type:Boolean,reflect:!0})],exports.LabeledInput.prototype,"optional",2);qr([pe()],exports.LabeledInput.prototype,"hasPrompt",2);qr([pe()],exports.LabeledInput.prototype,"hasError",2);qr([pe()],exports.LabeledInput.prototype,"hasLabel",2);qr([cn({slot:"label"})],exports.LabeledInput.prototype,"label",2);qr([cn({slot:"prompt"})],exports.LabeledInput.prototype,"prompt",2);exports.LabeledInput=qr([R(op)],exports.LabeledInput);exports.InputLabel=class extends exports.RecordFieldLabel{};exports.InputLabel=qr([R(ap)],exports.InputLabel);var dz=Object.defineProperty,hz=Object.getOwnPropertyDescriptor,Ol=(n,e,i,o)=>{for(var l=o>1?void 0:o?hz(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&dz(e,i,l),l};const fz=j`
1953
+ `,pz];qr([O({type:String,attribute:"label-position",reflect:!0})],exports.LabeledInput.prototype,"labelPosition",2);qr([O({type:String,reflect:!0})],exports.LabeledInput.prototype,"size",2);qr([O({type:Boolean,reflect:!0})],exports.LabeledInput.prototype,"optional",2);qr([pe()],exports.LabeledInput.prototype,"hasPrompt",2);qr([pe()],exports.LabeledInput.prototype,"hasError",2);qr([pe()],exports.LabeledInput.prototype,"hasLabel",2);qr([cn({slot:"label"})],exports.LabeledInput.prototype,"label",2);qr([cn({slot:"prompt"})],exports.LabeledInput.prototype,"prompt",2);exports.LabeledInput=qr([R(cp)],exports.LabeledInput);exports.InputLabel=class extends exports.RecordFieldLabel{};exports.InputLabel=qr([R(up)],exports.InputLabel);var gz=Object.defineProperty,vz=Object.getOwnPropertyDescriptor,Ol=(n,e,i,o)=>{for(var l=o>1?void 0:o?vz(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&gz(e,i,l),l};const bz=j`
1954
1954
  :host {
1955
1955
  --input-text-color: var(--brz-color-neutral-850);
1956
1956
  --input-font: var(--brz-font-family);
@@ -2055,7 +2055,7 @@
2055
2055
  class="trailing"
2056
2056
  ></brz-icon>`:null}
2057
2057
  </div>
2058
- `}}Ut.styles=[...exports.LabeledInput.styles,fz];Ol([O({type:Boolean,reflect:!0})],Ut.prototype,"readonly",2);Ol([O({type:String,reflect:!0})],Ut.prototype,"placeholder",2);Ol([O({type:String,reflect:!0,attribute:"leading-icon"})],Ut.prototype,"leadingIcon",2);Ol([O({type:String,reflect:!0,attribute:"trailing-icon"})],Ut.prototype,"trailingIcon",2);var pz=Object.defineProperty,gz=Object.getOwnPropertyDescriptor,vr=(n,e,i,o)=>{for(var l=o>1?void 0:o?gz(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&pz(e,i,l),l};const Ma="searchMessage";class vt extends Ut{constructor(){super(...arguments),this.controlled=!1,this.canSearch=!1,this.loading=!1,this.trailingIcon="chevronDown",this.options=[],this.searchMessage="No results found",this.isMenuOpen=!1,this.innerOptions=[]}setInnerOptions(){this.innerOptions=this.isDataDriven?[...this.options.map(e=>({...e,id:`option-${Cc()}`}))]:[]}updated(e){super.updated(e),e.has("options")&&this.setInnerOptions(),e.has("value")&&this.updateComplete.then(()=>{this.handleValueChange()})}getItemLabel(e){var i,o;return e?e instanceof exports.MenuItem?(o=(i=e.textContent)==null?void 0:i.trim())!=null?o:"":e.label:""}handleKeyDown(e){["ArrowUp","ArrowDown"].includes(e.key)&&(e.preventDefault(),this.dropdown.open())}handleKeyUp(e){e.key===" "&&this.canSearch&&(e.preventDefault(),this.dropdown.open())}get defaultSlot(){var e,i;return(i=(e=this.renderRoot)==null?void 0:e.querySelector("slot:not([name])"))==null?void 0:i.assignedSlot}getItems(){return this.isDataDriven?this.innerOptions:this.optionElements}get optionElementsRenderRoot(){var e;return this.isDataDriven?(e=this.virtualListElement)==null?void 0:e.renderRoot:this}get virtualListElement(){return this.renderRoot.querySelector(f0)}get optionElements(){var i,o,l;const e=(i=this.optionElementsRenderRoot)!=null&&i.querySelectorAll(tl).length?(o=this.optionElementsRenderRoot)==null?void 0:o.querySelectorAll(tl):(l=this.optionElementsRenderRoot)==null?void 0:l.querySelectorAll("sp-menu-item");return Array.from(e!=null?e:[])}setValue(e){this.value=e,this.handleValueChange(),this.dispatchChange()}handleSearchInputClick(e){this.isMenuOpen&&e.stopPropagation()}renderInput(){return this.updateComplete.then(()=>{var e;(e=this.dropdown)==null||e.updatePosition()}),this.isReadonlyOrDisabled?this.renderReferenceElement():P`
2058
+ `}}Ut.styles=[...exports.LabeledInput.styles,bz];Ol([O({type:Boolean,reflect:!0})],Ut.prototype,"readonly",2);Ol([O({type:String,reflect:!0})],Ut.prototype,"placeholder",2);Ol([O({type:String,reflect:!0,attribute:"leading-icon"})],Ut.prototype,"leadingIcon",2);Ol([O({type:String,reflect:!0,attribute:"trailing-icon"})],Ut.prototype,"trailingIcon",2);var mz=Object.defineProperty,yz=Object.getOwnPropertyDescriptor,vr=(n,e,i,o)=>{for(var l=o>1?void 0:o?yz(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&mz(e,i,l),l};const Ma="searchMessage";class vt extends Ut{constructor(){super(...arguments),this.controlled=!1,this.canSearch=!1,this.loading=!1,this.trailingIcon="chevronDown",this.options=[],this.searchMessage="No results found",this.isMenuOpen=!1,this.innerOptions=[]}setInnerOptions(){this.innerOptions=this.isDataDriven?[...this.options.map(e=>({...e,id:`option-${wc()}`}))]:[]}updated(e){super.updated(e),e.has("options")&&this.setInnerOptions(),e.has("value")&&this.updateComplete.then(()=>{this.handleValueChange()})}getItemLabel(e){var i,o;return e?e instanceof exports.MenuItem?(o=(i=e.textContent)==null?void 0:i.trim())!=null?o:"":e.label:""}handleKeyDown(e){["ArrowUp","ArrowDown"].includes(e.key)&&(e.preventDefault(),this.dropdown.open())}handleKeyUp(e){e.key===" "&&this.canSearch&&(e.preventDefault(),this.dropdown.open())}get defaultSlot(){var e,i;return(i=(e=this.renderRoot)==null?void 0:e.querySelector("slot:not([name])"))==null?void 0:i.assignedSlot}getItems(){return this.isDataDriven?this.innerOptions:this.optionElements}get optionElementsRenderRoot(){var e;return this.isDataDriven?(e=this.virtualListElement)==null?void 0:e.renderRoot:this}get virtualListElement(){return this.renderRoot.querySelector(p0)}get optionElements(){var i,o,l;const e=(i=this.optionElementsRenderRoot)!=null&&i.querySelectorAll(tl).length?(o=this.optionElementsRenderRoot)==null?void 0:o.querySelectorAll(tl):(l=this.optionElementsRenderRoot)==null?void 0:l.querySelectorAll("sp-menu-item");return Array.from(e!=null?e:[])}setValue(e){this.value=e,this.handleValueChange(),this.dispatchChange()}handleSearchInputClick(e){this.isMenuOpen&&e.stopPropagation()}renderInput(){return this.updateComplete.then(()=>{var e;(e=this.dropdown)==null||e.updatePosition()}),this.isReadonlyOrDisabled?this.renderReferenceElement():P`
2059
2059
  <brz-dropdown-menu
2060
2060
  @brz-menu-select=${this.handleSelect}
2061
2061
  @brz-menu-item-select=${this.handleItemSelect}
@@ -2086,7 +2086,7 @@
2086
2086
  </brz-menu-item>
2087
2087
  `}
2088
2088
  ></brz-virtual-list>
2089
- `:null}isQueryMatch(e){return this.query?this.getItemLabel(e).toLowerCase().includes(this.query.toLowerCase())||this.isCustomQueryMatch(e):!1}isCustomQueryMatch(e){return!1}handleOpenDropdown(){this.isMenuOpen=!0,this.canSearch&&this.queryInput.focus()}handleCloseDropdown(){this.isMenuOpen=!1}handleSelect(e){}handleItemSelect(e){}handleValueChange(){}handleQueryInput(e){const i=e.target;this.query=i==null?void 0:i.value,this.dispatchEvent(new g0({detail:{query:this.query}}))}get hasQueryResults(){return!!(!this.query||this.hasResults)}get isDataDriven(){var e;return!!((e=this.options)!=null&&e.length)}get isMulti(){return Array.isArray(this.value)}get isReadonlyOrDisabled(){return this.disabled||this.readonly}}vt.styles=[...Ut.styles,j`
2089
+ `:null}isQueryMatch(e){return this.query?this.getItemLabel(e).toLowerCase().includes(this.query.toLowerCase())||this.isCustomQueryMatch(e):!1}isCustomQueryMatch(e){return!1}handleOpenDropdown(){this.isMenuOpen=!0,this.canSearch&&this.queryInput.focus()}handleCloseDropdown(){this.isMenuOpen=!1}handleSelect(e){}handleItemSelect(e){}handleValueChange(){}handleQueryInput(e){const i=e.target;this.query=i==null?void 0:i.value,this.dispatchEvent(new v0({detail:{query:this.query}})),i.value===""&&this.setValue("")}get hasQueryResults(){return!!(!this.query||this.hasResults)}get isDataDriven(){var e;return!!((e=this.options)!=null&&e.length)}get isMulti(){return Array.isArray(this.value)}get isReadonlyOrDisabled(){return this.disabled||this.readonly}}vt.styles=[...Ut.styles,j`
2090
2090
  :host {
2091
2091
  /** 18px for icon, 10px for icon inset, spacing-2 for standard input padding **/
2092
2092
  --dropdown-decorator-offset: calc(18px + 10px + var(--input-padding));
@@ -2131,7 +2131,7 @@
2131
2131
  }
2132
2132
 
2133
2133
  button.wrapper {
2134
- ${J2};
2134
+ ${rf};
2135
2135
  align-items: center;
2136
2136
  background-color: var(--brz-color-white);
2137
2137
  border: var(--input-border);
@@ -2169,7 +2169,7 @@
2169
2169
  border-color: var(--input-focus-border-color);
2170
2170
  outline: none;
2171
2171
  }
2172
- `];vr([O({type:Boolean})],vt.prototype,"controlled",2);vr([O({attribute:"can-search",type:Boolean,reflect:!0})],vt.prototype,"canSearch",2);vr([O({type:Boolean,reflect:!0})],vt.prototype,"loading",2);vr([O({type:String,reflect:!0,attribute:"trailing-icon"})],vt.prototype,"trailingIcon",2);vr([O({type:Array})],vt.prototype,"options",2);vr([O({attribute:"search-message"})],vt.prototype,"searchMessage",2);vr([pe()],vt.prototype,"isMenuOpen",2);vr([pe()],vt.prototype,"hasResults",2);vr([pe()],vt.prototype,"query",2);vr([pe()],vt.prototype,"innerOptions",2);vr([Er("brz-dropdown-menu")],vt.prototype,"dropdown",2);vr([Er("#selectSearch")],vt.prototype,"queryInput",2);class g0 extends CustomEvent{constructor(e={}){super("brz-input-select-query-change",{bubbles:!0,composed:!0,...e})}}var vz=Object.defineProperty,bz=Object.getOwnPropertyDescriptor,Ci=(n,e,i,o)=>{for(var l=o>1?void 0:o?bz(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&vz(e,i,l),l};const tl=ne("menu-item");exports.MenuItem=class extends me{constructor(){super(...arguments),this.disabled=!1,this.highlighted=!1,this.selectable=!1,this.selected=!1}deselect(){this.disabled||(this.selected=!1)}select(){this.disabled||(this.selected=!0)}toggle(){this.disabled||(this.selected=!this.selected)}emitSelect(){this.disabled||this.dispatchEvent(new sp({detail:{item:this}}))}handleClick(e){e.preventDefault(),this.emitSelect(),(this.disabled||this.toggleable)&&e.stopPropagation()}handleKeyDown(){}get labelTemplate(){return P` <div class="label"><slot></slot></div> `}get itemTemplate(){return this.toggleable?P`
2172
+ `];vr([O({type:Boolean})],vt.prototype,"controlled",2);vr([O({attribute:"can-search",type:Boolean,reflect:!0})],vt.prototype,"canSearch",2);vr([O({type:Boolean,reflect:!0})],vt.prototype,"loading",2);vr([O({type:String,reflect:!0,attribute:"trailing-icon"})],vt.prototype,"trailingIcon",2);vr([O({type:Array})],vt.prototype,"options",2);vr([O({attribute:"search-message"})],vt.prototype,"searchMessage",2);vr([pe()],vt.prototype,"isMenuOpen",2);vr([pe()],vt.prototype,"hasResults",2);vr([pe()],vt.prototype,"query",2);vr([pe()],vt.prototype,"innerOptions",2);vr([Er("brz-dropdown-menu")],vt.prototype,"dropdown",2);vr([Er("#selectSearch")],vt.prototype,"queryInput",2);class v0 extends CustomEvent{constructor(e={}){super("brz-input-select-query-change",{bubbles:!0,composed:!0,...e})}}var Cz=Object.defineProperty,wz=Object.getOwnPropertyDescriptor,Ci=(n,e,i,o)=>{for(var l=o>1?void 0:o?wz(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&Cz(e,i,l),l};const tl=ne("menu-item");exports.MenuItem=class extends me{constructor(){super(...arguments),this.disabled=!1,this.highlighted=!1,this.selectable=!1,this.selected=!1}deselect(){this.disabled||(this.selected=!1)}select(){this.disabled||(this.selected=!0)}toggle(){this.disabled||(this.selected=!this.selected)}emitSelect(){this.disabled||this.dispatchEvent(new dp({detail:{item:this}}))}handleClick(e){e.preventDefault(),this.emitSelect(),(this.disabled||this.toggleable)&&e.stopPropagation()}handleKeyDown(){}get labelTemplate(){return P` <div class="label"><slot></slot></div> `}get itemTemplate(){return this.toggleable?P`
2173
2173
  <brz-input-checkbox
2174
2174
  ?disabled=${this.disabled}
2175
2175
  ?checked=${this.selected}
@@ -2246,7 +2246,7 @@
2246
2246
  padding-left: var(--menu-item-label-gutter);
2247
2247
  position: relative;
2248
2248
  }
2249
- `;Ci([O({type:Boolean,reflect:!0})],exports.MenuItem.prototype,"disabled",2);Ci([O({type:Boolean,reflect:!0})],exports.MenuItem.prototype,"highlighted",2);Ci([O({type:Boolean,attribute:!1})],exports.MenuItem.prototype,"selectable",2);Ci([O({type:Boolean,reflect:!0})],exports.MenuItem.prototype,"selected",2);Ci([O({type:Boolean,attribute:!1})],exports.MenuItem.prototype,"toggleable",2);Ci([O({type:String})],exports.MenuItem.prototype,"value",2);exports.MenuItem=Ci([R(tl)],exports.MenuItem);class sp extends CustomEvent{constructor(e={}){super("brz-menu-item-select",{bubbles:!0,composed:!0,...e})}}var mz=Object.defineProperty,yz=Object.getOwnPropertyDescriptor,Hn=(n,e,i,o)=>{for(var l=o>1?void 0:o?yz(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&mz(e,i,l),l};const lp=ne("menu"),Mr="selectAll";exports.Menu=class extends me{constructor(){super(...arguments),this.multiselect=!1,this.selectable=!1,this.selected=[],this.highlightedIndex=-1,this.keyBindings={ArrowDown:this.handleUpOrDownKey.bind(this),ArrowUp:this.handleUpOrDownKey.bind(this),Enter:this.handleEnterOrSpaceKey.bind(this)," ":this.handleEnterOrSpaceKey.bind(this),Tab:this.handleTabKey.bind(this)}}connectedCallback(){super.connectedCallback(),this.tabIndex=0,this.addEventListener("keydown",this.handleKeyDown)}updated(e){var i;super.updated(e),e.has("highlightedIndex")&&((i=this.highlightedItem)==null||i.scrollIntoView({block:"center"}))}getMenuItems(){return this.virtualListMenuItems||this.menuItems}handleUpOrDownKey(e){e.preventDefault();const{key:i}=e,o=({before:d,after:u})=>(v,m)=>v.hidden?!1:d===void 0&&u===void 0||d!==void 0&&m<d||u!==void 0&&m>u;this.clearHighlightedItem();const l=this.getMenuItems();if(this.highlightedIndex===-1){this.highlightedIndex=0,l[this.highlightedIndex].highlighted=!0;return}i==="ArrowUp"&&(this.highlightedIndex=Ax(l,o({before:this.highlightedIndex})),this.highlightedIndex===-1&&(this.highlightedIndex=l.length-1)),i==="ArrowDown"&&(this.highlightedIndex=l.findIndex(o({after:this.highlightedIndex})),this.highlightedIndex===-1&&(this.highlightedIndex=0)),l[this.highlightedIndex].highlighted=!0}handleEnterOrSpaceKey(e){if(e.preventDefault(),this.highlightedIndex===-1)return this.emitBlur();this.getActiveMenuItem().emitSelect()}get selectedItems(){return this.getMenuItems().filter(e=>e.selected)}getActiveMenuItem(e){return e?e.detail.item:this.highlightedItem}bypassSelectedState(){if(!this.multiselect)return this.emitBlur()}handleSelectItem(e){if(!this.selectable)return this.bypassSelectedState();if(e.value===void 0)throw new Error("No value found for MenuItem");if(!e.disabled){if(this.multiselect)e.toggle();else{const[i]=this.selectedItems;i==null||i.deselect(),e.select()}this.updateSelected(e.value),this.emitSelection(),this.multiselect||this.emitBlur()}}updateSelected(e){const i=this.selected.some(l=>e===l);if(this.multiselect&&i){this.selected=this.selected.filter(l=>e!==l);return}i||(this.selected=this.multiselect?[...this.selected,e]:[e])}handleMenuItemSelect(e){e.preventDefault(),this.handleSelectItem(this.getActiveMenuItem(e))}emitSelection(){this.dispatchEvent(new up({detail:{selected:this.selected}}))}get highlightedItem(){return this.getMenuItems()[this.highlightedIndex]}clearHighlightedItem(){this.highlightedIndex!==-1&&(this.highlightedItem.highlighted=!1)}handleKeyDown(e){var i,o;(o=(i=this.keyBindings)[e.key])==null||o.call(i,e)}resetHighlightedIndex(){this.highlightedIndex=-1}resetScrollPosition(){this.scrollTop=0}reset(){this.clearHighlightedItem(),this.resetHighlightedIndex(),this.resetScrollPosition()}emitBlur(){this.dispatchEvent(new cp),this.reset()}handleTabKey(e){e.preventDefault(),this.emitBlur()}applyPropsToChildren(e){Cz(e)&&e.forEach(i=>{var o;i.selectable=this.selectable&&i.id!==Ma,i.toggleable=this.multiselect&&i.id!==Ma,i.id!==Mr&&(i.selected=i.value!==void 0?(o=this.selected)==null?void 0:o.includes(i.value):!1)})}handleSlotChange(e){const i=e.target.assignedElements({flatten:!0});this.applyPropsToChildren(i)}handleVirtualListUpdate({detail:{itemElements:e}}){this.applyPropsToChildren(e),this.virtualListMenuItems=e}render(){return P`
2249
+ `;Ci([O({type:Boolean,reflect:!0})],exports.MenuItem.prototype,"disabled",2);Ci([O({type:Boolean,reflect:!0})],exports.MenuItem.prototype,"highlighted",2);Ci([O({type:Boolean,attribute:!1})],exports.MenuItem.prototype,"selectable",2);Ci([O({type:Boolean,reflect:!0})],exports.MenuItem.prototype,"selected",2);Ci([O({type:Boolean,attribute:!1})],exports.MenuItem.prototype,"toggleable",2);Ci([O({type:String})],exports.MenuItem.prototype,"value",2);exports.MenuItem=Ci([R(tl)],exports.MenuItem);class dp extends CustomEvent{constructor(e={}){super("brz-menu-item-select",{bubbles:!0,composed:!0,...e})}}var xz=Object.defineProperty,zz=Object.getOwnPropertyDescriptor,Hn=(n,e,i,o)=>{for(var l=o>1?void 0:o?zz(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&xz(e,i,l),l};const hp=ne("menu"),Mr="selectAll";exports.Menu=class extends me{constructor(){super(...arguments),this.multiselect=!1,this.selectable=!1,this.selected=[],this.highlightedIndex=-1,this.keyBindings={ArrowDown:this.handleUpOrDownKey.bind(this),ArrowUp:this.handleUpOrDownKey.bind(this),Enter:this.handleEnterOrSpaceKey.bind(this)," ":this.handleEnterOrSpaceKey.bind(this),Tab:this.handleTabKey.bind(this)}}connectedCallback(){super.connectedCallback(),this.tabIndex=0,this.addEventListener("keydown",this.handleKeyDown)}updated(e){var i;super.updated(e),e.has("highlightedIndex")&&((i=this.highlightedItem)==null||i.scrollIntoView({block:"center"}))}getMenuItems(){return this.virtualListMenuItems||this.menuItems}handleUpOrDownKey(e){e.preventDefault();const{key:i}=e,o=({before:d,after:u})=>(v,m)=>v.hidden?!1:d===void 0&&u===void 0||d!==void 0&&m<d||u!==void 0&&m>u;this.clearHighlightedItem();const l=this.getMenuItems();if(this.highlightedIndex===-1){this.highlightedIndex=0,l[this.highlightedIndex].highlighted=!0;return}i==="ArrowUp"&&(this.highlightedIndex=Hx(l,o({before:this.highlightedIndex})),this.highlightedIndex===-1&&(this.highlightedIndex=l.length-1)),i==="ArrowDown"&&(this.highlightedIndex=l.findIndex(o({after:this.highlightedIndex})),this.highlightedIndex===-1&&(this.highlightedIndex=0)),l[this.highlightedIndex].highlighted=!0}handleEnterOrSpaceKey(e){if(e.preventDefault(),this.highlightedIndex===-1)return this.emitBlur();this.getActiveMenuItem().emitSelect()}get selectedItems(){return this.getMenuItems().filter(e=>e.selected)}getActiveMenuItem(e){return e?e.detail.item:this.highlightedItem}bypassSelectedState(){if(!this.multiselect)return this.emitBlur()}handleSelectItem(e){if(!this.selectable)return this.bypassSelectedState();if(e.value===void 0)throw new Error("No value found for MenuItem");if(!e.disabled){if(this.multiselect)e.toggle();else{const[i]=this.selectedItems;i==null||i.deselect(),e.select()}this.updateSelected(e.value),this.emitSelection(),this.multiselect||this.emitBlur()}}updateSelected(e){const i=this.selected.some(l=>e===l);if(this.multiselect&&i){this.selected=this.selected.filter(l=>e!==l);return}i||(this.selected=this.multiselect?[...this.selected,e]:[e])}handleMenuItemSelect(e){e.preventDefault(),this.handleSelectItem(this.getActiveMenuItem(e))}emitSelection(){this.dispatchEvent(new pp({detail:{selected:this.selected}}))}get highlightedItem(){return this.getMenuItems()[this.highlightedIndex]}clearHighlightedItem(){this.highlightedIndex!==-1&&(this.highlightedItem.highlighted=!1)}handleKeyDown(e){var i,o;(o=(i=this.keyBindings)[e.key])==null||o.call(i,e)}resetHighlightedIndex(){this.highlightedIndex=-1}resetScrollPosition(){this.scrollTop=0}reset(){this.clearHighlightedItem(),this.resetHighlightedIndex(),this.resetScrollPosition()}emitBlur(){this.dispatchEvent(new fp),this.reset()}handleTabKey(e){e.preventDefault(),this.emitBlur()}applyPropsToChildren(e){Lz(e)&&e.forEach(i=>{var o;i.selectable=this.selectable&&i.id!==Ma,i.toggleable=this.multiselect&&i.id!==Ma,i.id!==Mr&&(i.selected=i.value!==void 0?(o=this.selected)==null?void 0:o.includes(i.value):!1)})}handleSlotChange(e){const i=e.target.assignedElements({flatten:!0});this.applyPropsToChildren(i)}handleVirtualListUpdate({detail:{itemElements:e}}){this.applyPropsToChildren(e),this.virtualListMenuItems=e}render(){return P`
2250
2250
  <ul
2251
2251
  class="menu"
2252
2252
  role="menu"
@@ -2292,13 +2292,13 @@
2292
2292
  width: var(--brz-menu-width, 10rem);
2293
2293
  padding: 0;
2294
2294
  }
2295
- `;Hn([O({type:Boolean})],exports.Menu.prototype,"multiselect",2);Hn([O({type:Boolean})],exports.Menu.prototype,"selectable",2);Hn([O({type:Array})],exports.Menu.prototype,"selected",2);Hn([O({reflect:!0})],exports.Menu.prototype,"size",2);Hn([pe()],exports.Menu.prototype,"highlightedIndex",2);Hn([pe()],exports.Menu.prototype,"virtualListMenuItems",2);Hn([cn({flatten:!0})],exports.Menu.prototype,"menuItems",2);exports.Menu=Hn([R(lp)],exports.Menu);const Cz=n=>n[0]instanceof exports.MenuItem;class cp extends CustomEvent{constructor(e={}){super("brz-menu-blur",{bubbles:!0,composed:!0,...e})}}class up extends CustomEvent{constructor(e={}){super("brz-menu-select",{bubbles:!0,composed:!0,...e})}}var wz=Object.defineProperty,xz=Object.getOwnPropertyDescriptor,dp=(n,e,i,o)=>{for(var l=o>1?void 0:o?xz(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&wz(e,i,l),l};const hp=ne("combo-box"),fp=ne("combo-box-option");exports.ComboBox=class extends exports.DropdownMenu{};exports.ComboBox=dp([R(hp)],exports.ComboBox);exports.ComboBoxOption=class extends exports.MenuItem{};exports.ComboBoxOption=dp([R(fp)],exports.ComboBoxOption);/*!
2295
+ `;Hn([O({type:Boolean})],exports.Menu.prototype,"multiselect",2);Hn([O({type:Boolean})],exports.Menu.prototype,"selectable",2);Hn([O({type:Array})],exports.Menu.prototype,"selected",2);Hn([O({reflect:!0})],exports.Menu.prototype,"size",2);Hn([pe()],exports.Menu.prototype,"highlightedIndex",2);Hn([pe()],exports.Menu.prototype,"virtualListMenuItems",2);Hn([cn({flatten:!0})],exports.Menu.prototype,"menuItems",2);exports.Menu=Hn([R(hp)],exports.Menu);const Lz=n=>n[0]instanceof exports.MenuItem;class fp extends CustomEvent{constructor(e={}){super("brz-menu-blur",{bubbles:!0,composed:!0,...e})}}class pp extends CustomEvent{constructor(e={}){super("brz-menu-select",{bubbles:!0,composed:!0,...e})}}var Sz=Object.defineProperty,Mz=Object.getOwnPropertyDescriptor,gp=(n,e,i,o)=>{for(var l=o>1?void 0:o?Mz(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&Sz(e,i,l),l};const vp=ne("combo-box"),bp=ne("combo-box-option");exports.ComboBox=class extends exports.DropdownMenu{};exports.ComboBox=gp([R(vp)],exports.ComboBox);exports.ComboBoxOption=class extends exports.MenuItem{};exports.ComboBoxOption=gp([R(bp)],exports.ComboBoxOption);/*!
2296
2296
  * tabbable 6.2.0
2297
2297
  * @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
2298
- */var pp=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],rl=pp.join(","),gp=typeof Element=="undefined",yi=gp?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,nl=!gp&&Element.prototype.getRootNode?function(n){var e;return n==null||(e=n.getRootNode)===null||e===void 0?void 0:e.call(n)}:function(n){return n==null?void 0:n.ownerDocument},il=function n(e,i){var o;i===void 0&&(i=!0);var l=e==null||(o=e.getAttribute)===null||o===void 0?void 0:o.call(e,"inert"),d=l===""||l==="true",u=d||i&&e&&n(e.parentNode);return u},zz=function(e){var i,o=e==null||(i=e.getAttribute)===null||i===void 0?void 0:i.call(e,"contenteditable");return o===""||o==="true"},vp=function(e,i,o){if(il(e))return[];var l=Array.prototype.slice.apply(e.querySelectorAll(rl));return i&&yi.call(e,rl)&&l.unshift(e),l=l.filter(o),l},bp=function n(e,i,o){for(var l=[],d=Array.from(e);d.length;){var u=d.shift();if(!il(u,!1))if(u.tagName==="SLOT"){var v=u.assignedElements(),m=v.length?v:u.children,y=n(m,!0,o);o.flatten?l.push.apply(l,y):l.push({scopeParent:u,candidates:y})}else{var T=yi.call(u,rl);T&&o.filter(u)&&(i||!e.includes(u))&&l.push(u);var S=u.shadowRoot||typeof o.getShadowRoot=="function"&&o.getShadowRoot(u),$=!il(S,!1)&&(!o.shadowRootFilter||o.shadowRootFilter(u));if(S&&$){var E=n(S===!0?u.children:S.children,!0,o);o.flatten?l.push.apply(l,E):l.push({scopeParent:u,candidates:E})}else d.unshift.apply(d,u.children)}}return l},mp=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},ci=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||zz(e))&&!mp(e)?0:e.tabIndex},Lz=function(e,i){var o=ci(e);return o<0&&i&&!mp(e)?0:o},Sz=function(e,i){return e.tabIndex===i.tabIndex?e.documentOrder-i.documentOrder:e.tabIndex-i.tabIndex},yp=function(e){return e.tagName==="INPUT"},Mz=function(e){return yp(e)&&e.type==="hidden"},Tz=function(e){var i=e.tagName==="DETAILS"&&Array.prototype.slice.apply(e.children).some(function(o){return o.tagName==="SUMMARY"});return i},kz=function(e,i){for(var o=0;o<e.length;o++)if(e[o].checked&&e[o].form===i)return e[o]},$z=function(e){if(!e.name)return!0;var i=e.form||nl(e),o=function(v){return i.querySelectorAll('input[type="radio"][name="'+v+'"]')},l;if(typeof window!="undefined"&&typeof window.CSS!="undefined"&&typeof window.CSS.escape=="function")l=o(window.CSS.escape(e.name));else try{l=o(e.name)}catch(u){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",u.message),!1}var d=kz(l,e.form);return!d||d===e},Oz=function(e){return yp(e)&&e.type==="radio"},Ez=function(e){return Oz(e)&&!$z(e)},_z=function(e){var i,o=e&&nl(e),l=(i=o)===null||i===void 0?void 0:i.host,d=!1;if(o&&o!==e){var u,v,m;for(d=!!((u=l)!==null&&u!==void 0&&(v=u.ownerDocument)!==null&&v!==void 0&&v.contains(l)||e!=null&&(m=e.ownerDocument)!==null&&m!==void 0&&m.contains(e));!d&&l;){var y,T,S;o=nl(l),l=(y=o)===null||y===void 0?void 0:y.host,d=!!((T=l)!==null&&T!==void 0&&(S=T.ownerDocument)!==null&&S!==void 0&&S.contains(l))}}return d},Bh=function(e){var i=e.getBoundingClientRect(),o=i.width,l=i.height;return o===0&&l===0},Iz=function(e,i){var o=i.displayCheck,l=i.getShadowRoot;if(getComputedStyle(e).visibility==="hidden")return!0;var d=yi.call(e,"details>summary:first-of-type"),u=d?e.parentElement:e;if(yi.call(u,"details:not([open]) *"))return!0;if(!o||o==="full"||o==="legacy-full"){if(typeof l=="function"){for(var v=e;e;){var m=e.parentElement,y=nl(e);if(m&&!m.shadowRoot&&l(m)===!0)return Bh(e);e.assignedSlot?e=e.assignedSlot:!m&&y!==e.ownerDocument?e=y.host:e=m}e=v}if(_z(e))return!e.getClientRects().length;if(o!=="legacy-full")return!0}else if(o==="non-zero-area")return Bh(e);return!1},Az=function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var i=e.parentElement;i;){if(i.tagName==="FIELDSET"&&i.disabled){for(var o=0;o<i.children.length;o++){var l=i.children.item(o);if(l.tagName==="LEGEND")return yi.call(i,"fieldset[disabled] *")?!0:!l.contains(e)}return!0}i=i.parentElement}return!1},ol=function(e,i){return!(i.disabled||il(i)||Mz(i)||Iz(i,e)||Tz(i)||Az(i))},Oc=function(e,i){return!(Ez(i)||ci(i)<0||!ol(e,i))},Pz=function(e){var i=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(i)||i>=0)},Dz=function n(e){var i=[],o=[];return e.forEach(function(l,d){var u=!!l.scopeParent,v=u?l.scopeParent:l,m=Lz(v,u),y=u?n(l.candidates):v;m===0?u?i.push.apply(i,y):i.push(v):o.push({documentOrder:d,tabIndex:m,item:l,isScope:u,content:y})}),o.sort(Sz).reduce(function(l,d){return d.isScope?l.push.apply(l,d.content):l.push(d.content),l},[]).concat(i)},Nz=function(e,i){i=i||{};var o;return i.getShadowRoot?o=bp([e],i.includeContainer,{filter:Oc.bind(null,i),flatten:!1,getShadowRoot:i.getShadowRoot,shadowRootFilter:Pz}):o=vp(e,i.includeContainer,Oc.bind(null,i)),Dz(o)},Hz=function(e,i){i=i||{};var o;return i.getShadowRoot?o=bp([e],i.includeContainer,{filter:ol.bind(null,i),flatten:!0,getShadowRoot:i.getShadowRoot}):o=vp(e,i.includeContainer,ol.bind(null,i)),o},Ki=function(e,i){if(i=i||{},!e)throw new Error("No node provided");return yi.call(e,rl)===!1?!1:Oc(i,e)},Rz=pp.concat("iframe").join(","),ic=function(e,i){if(i=i||{},!e)throw new Error("No node provided");return yi.call(e,Rz)===!1?!1:ol(i,e)};/*!
2298
+ */var mp=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],rl=mp.join(","),yp=typeof Element=="undefined",yi=yp?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,nl=!yp&&Element.prototype.getRootNode?function(n){var e;return n==null||(e=n.getRootNode)===null||e===void 0?void 0:e.call(n)}:function(n){return n==null?void 0:n.ownerDocument},il=function n(e,i){var o;i===void 0&&(i=!0);var l=e==null||(o=e.getAttribute)===null||o===void 0?void 0:o.call(e,"inert"),d=l===""||l==="true",u=d||i&&e&&n(e.parentNode);return u},Tz=function(e){var i,o=e==null||(i=e.getAttribute)===null||i===void 0?void 0:i.call(e,"contenteditable");return o===""||o==="true"},Cp=function(e,i,o){if(il(e))return[];var l=Array.prototype.slice.apply(e.querySelectorAll(rl));return i&&yi.call(e,rl)&&l.unshift(e),l=l.filter(o),l},wp=function n(e,i,o){for(var l=[],d=Array.from(e);d.length;){var u=d.shift();if(!il(u,!1))if(u.tagName==="SLOT"){var v=u.assignedElements(),m=v.length?v:u.children,y=n(m,!0,o);o.flatten?l.push.apply(l,y):l.push({scopeParent:u,candidates:y})}else{var T=yi.call(u,rl);T&&o.filter(u)&&(i||!e.includes(u))&&l.push(u);var S=u.shadowRoot||typeof o.getShadowRoot=="function"&&o.getShadowRoot(u),$=!il(S,!1)&&(!o.shadowRootFilter||o.shadowRootFilter(u));if(S&&$){var E=n(S===!0?u.children:S.children,!0,o);o.flatten?l.push.apply(l,E):l.push({scopeParent:u,candidates:E})}else d.unshift.apply(d,u.children)}}return l},xp=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},ci=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||Tz(e))&&!xp(e)?0:e.tabIndex},kz=function(e,i){var o=ci(e);return o<0&&i&&!xp(e)?0:o},$z=function(e,i){return e.tabIndex===i.tabIndex?e.documentOrder-i.documentOrder:e.tabIndex-i.tabIndex},zp=function(e){return e.tagName==="INPUT"},Oz=function(e){return zp(e)&&e.type==="hidden"},Ez=function(e){var i=e.tagName==="DETAILS"&&Array.prototype.slice.apply(e.children).some(function(o){return o.tagName==="SUMMARY"});return i},_z=function(e,i){for(var o=0;o<e.length;o++)if(e[o].checked&&e[o].form===i)return e[o]},Iz=function(e){if(!e.name)return!0;var i=e.form||nl(e),o=function(v){return i.querySelectorAll('input[type="radio"][name="'+v+'"]')},l;if(typeof window!="undefined"&&typeof window.CSS!="undefined"&&typeof window.CSS.escape=="function")l=o(window.CSS.escape(e.name));else try{l=o(e.name)}catch(u){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",u.message),!1}var d=_z(l,e.form);return!d||d===e},Az=function(e){return zp(e)&&e.type==="radio"},Pz=function(e){return Az(e)&&!Iz(e)},Dz=function(e){var i,o=e&&nl(e),l=(i=o)===null||i===void 0?void 0:i.host,d=!1;if(o&&o!==e){var u,v,m;for(d=!!((u=l)!==null&&u!==void 0&&(v=u.ownerDocument)!==null&&v!==void 0&&v.contains(l)||e!=null&&(m=e.ownerDocument)!==null&&m!==void 0&&m.contains(e));!d&&l;){var y,T,S;o=nl(l),l=(y=o)===null||y===void 0?void 0:y.host,d=!!((T=l)!==null&&T!==void 0&&(S=T.ownerDocument)!==null&&S!==void 0&&S.contains(l))}}return d},Vh=function(e){var i=e.getBoundingClientRect(),o=i.width,l=i.height;return o===0&&l===0},Nz=function(e,i){var o=i.displayCheck,l=i.getShadowRoot;if(getComputedStyle(e).visibility==="hidden")return!0;var d=yi.call(e,"details>summary:first-of-type"),u=d?e.parentElement:e;if(yi.call(u,"details:not([open]) *"))return!0;if(!o||o==="full"||o==="legacy-full"){if(typeof l=="function"){for(var v=e;e;){var m=e.parentElement,y=nl(e);if(m&&!m.shadowRoot&&l(m)===!0)return Vh(e);e.assignedSlot?e=e.assignedSlot:!m&&y!==e.ownerDocument?e=y.host:e=m}e=v}if(Dz(e))return!e.getClientRects().length;if(o!=="legacy-full")return!0}else if(o==="non-zero-area")return Vh(e);return!1},Hz=function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var i=e.parentElement;i;){if(i.tagName==="FIELDSET"&&i.disabled){for(var o=0;o<i.children.length;o++){var l=i.children.item(o);if(l.tagName==="LEGEND")return yi.call(i,"fieldset[disabled] *")?!0:!l.contains(e)}return!0}i=i.parentElement}return!1},ol=function(e,i){return!(i.disabled||il(i)||Oz(i)||Nz(i,e)||Ez(i)||Hz(i))},Ec=function(e,i){return!(Pz(i)||ci(i)<0||!ol(e,i))},Rz=function(e){var i=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(i)||i>=0)},Fz=function n(e){var i=[],o=[];return e.forEach(function(l,d){var u=!!l.scopeParent,v=u?l.scopeParent:l,m=kz(v,u),y=u?n(l.candidates):v;m===0?u?i.push.apply(i,y):i.push(v):o.push({documentOrder:d,tabIndex:m,item:l,isScope:u,content:y})}),o.sort($z).reduce(function(l,d){return d.isScope?l.push.apply(l,d.content):l.push(d.content),l},[]).concat(i)},Bz=function(e,i){i=i||{};var o;return i.getShadowRoot?o=wp([e],i.includeContainer,{filter:Ec.bind(null,i),flatten:!1,getShadowRoot:i.getShadowRoot,shadowRootFilter:Rz}):o=Cp(e,i.includeContainer,Ec.bind(null,i)),Fz(o)},Vz=function(e,i){i=i||{};var o;return i.getShadowRoot?o=wp([e],i.includeContainer,{filter:ol.bind(null,i),flatten:!0,getShadowRoot:i.getShadowRoot}):o=Cp(e,i.includeContainer,ol.bind(null,i)),o},Ki=function(e,i){if(i=i||{},!e)throw new Error("No node provided");return yi.call(e,rl)===!1?!1:Ec(i,e)},Zz=mp.concat("iframe").join(","),ic=function(e,i){if(i=i||{},!e)throw new Error("No node provided");return yi.call(e,Zz)===!1?!1:ol(i,e)};/*!
2299
2299
  * focus-trap 7.5.4
2300
2300
  * @license MIT, https://github.com/focus-trap/focus-trap/blob/master/LICENSE
2301
- */function Vh(n,e){var i=Object.keys(n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(n);e&&(o=o.filter(function(l){return Object.getOwnPropertyDescriptor(n,l).enumerable})),i.push.apply(i,o)}return i}function Zh(n){for(var e=1;e<arguments.length;e++){var i=arguments[e]!=null?arguments[e]:{};e%2?Vh(Object(i),!0).forEach(function(o){Fz(n,o,i[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(i)):Vh(Object(i)).forEach(function(o){Object.defineProperty(n,o,Object.getOwnPropertyDescriptor(i,o))})}return n}function Fz(n,e,i){return e=Vz(e),e in n?Object.defineProperty(n,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[e]=i,n}function Bz(n,e){if(typeof n!="object"||n===null)return n;var i=n[Symbol.toPrimitive];if(i!==void 0){var o=i.call(n,e||"default");if(typeof o!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(n)}function Vz(n){var e=Bz(n,"string");return typeof e=="symbol"?e:String(e)}var Wh={activateTrap:function(e,i){if(e.length>0){var o=e[e.length-1];o!==i&&o.pause()}var l=e.indexOf(i);l===-1||e.splice(l,1),e.push(i)},deactivateTrap:function(e,i){var o=e.indexOf(i);o!==-1&&e.splice(o,1),e.length>0&&e[e.length-1].unpause()}},Zz=function(e){return e.tagName&&e.tagName.toLowerCase()==="input"&&typeof e.select=="function"},Wz=function(e){return(e==null?void 0:e.key)==="Escape"||(e==null?void 0:e.key)==="Esc"||(e==null?void 0:e.keyCode)===27},ma=function(e){return(e==null?void 0:e.key)==="Tab"||(e==null?void 0:e.keyCode)===9},Uz=function(e){return ma(e)&&!e.shiftKey},jz=function(e){return ma(e)&&e.shiftKey},Uh=function(e){return setTimeout(e,0)},jh=function(e,i){var o=-1;return e.every(function(l,d){return i(l)?(o=d,!1):!0}),o},ua=function(e){for(var i=arguments.length,o=new Array(i>1?i-1:0),l=1;l<i;l++)o[l-1]=arguments[l];return typeof e=="function"?e.apply(void 0,o):e},Ts=function(e){return e.target.shadowRoot&&typeof e.composedPath=="function"?e.composedPath()[0]:e.target},Gz=[],qz=function(e,i){var o=(i==null?void 0:i.document)||document,l=(i==null?void 0:i.trapStack)||Gz,d=Zh({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,isKeyForward:Uz,isKeyBackward:jz},i),u={containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,delayInitialFocusTimer:void 0,recentNavEvent:void 0},v,m=function(Z,k,x){return Z&&Z[k]!==void 0?Z[k]:d[x||k]},y=function(Z,k){var x=typeof(k==null?void 0:k.composedPath)=="function"?k.composedPath():void 0;return u.containerGroups.findIndex(function(z){var B=z.container,X=z.tabbableNodes;return B.contains(Z)||(x==null?void 0:x.includes(B))||X.find(function(be){return be===Z})})},T=function(Z){var k=d[Z];if(typeof k=="function"){for(var x=arguments.length,z=new Array(x>1?x-1:0),B=1;B<x;B++)z[B-1]=arguments[B];k=k.apply(void 0,z)}if(k===!0&&(k=void 0),!k){if(k===void 0||k===!1)return k;throw new Error("`".concat(Z,"` was specified but was not a node, or did not return a node"))}var X=k;if(typeof k=="string"&&(X=o.querySelector(k),!X))throw new Error("`".concat(Z,"` as selector refers to no known node"));return X},S=function(){var Z=T("initialFocus");if(Z===!1)return!1;if(Z===void 0||!ic(Z,d.tabbableOptions))if(y(o.activeElement)>=0)Z=o.activeElement;else{var k=u.tabbableGroups[0],x=k&&k.firstTabbableNode;Z=x||T("fallbackFocus")}if(!Z)throw new Error("Your focus-trap needs to have at least one focusable element");return Z},$=function(){if(u.containerGroups=u.containers.map(function(Z){var k=Nz(Z,d.tabbableOptions),x=Hz(Z,d.tabbableOptions),z=k.length>0?k[0]:void 0,B=k.length>0?k[k.length-1]:void 0,X=x.find(function(Be){return Ki(Be)}),be=x.slice().reverse().find(function(Be){return Ki(Be)}),Me=!!k.find(function(Be){return ci(Be)>0});return{container:Z,tabbableNodes:k,focusableNodes:x,posTabIndexesFound:Me,firstTabbableNode:z,lastTabbableNode:B,firstDomTabbableNode:X,lastDomTabbableNode:be,nextTabbableNode:function(lt){var Qt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,Xe=k.indexOf(lt);return Xe<0?Qt?x.slice(x.indexOf(lt)+1).find(function(Je){return Ki(Je)}):x.slice(0,x.indexOf(lt)).reverse().find(function(Je){return Ki(Je)}):k[Xe+(Qt?1:-1)]}}}),u.tabbableGroups=u.containerGroups.filter(function(Z){return Z.tabbableNodes.length>0}),u.tabbableGroups.length<=0&&!T("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times");if(u.containerGroups.find(function(Z){return Z.posTabIndexesFound})&&u.containerGroups.length>1)throw new Error("At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.")},E=function ie(Z){var k=Z.activeElement;if(k)return k.shadowRoot&&k.shadowRoot.activeElement!==null?ie(k.shadowRoot):k},N=function ie(Z){if(Z!==!1&&Z!==E(document)){if(!Z||!Z.focus){ie(S());return}Z.focus({preventScroll:!!d.preventScroll}),u.mostRecentlyFocusedNode=Z,Zz(Z)&&Z.select()}},G=function(Z){var k=T("setReturnFocus",Z);return k||(k===!1?!1:Z)},ee=function(Z){var k=Z.target,x=Z.event,z=Z.isBackward,B=z===void 0?!1:z;k=k||Ts(x),$();var X=null;if(u.tabbableGroups.length>0){var be=y(k,x),Me=be>=0?u.containerGroups[be]:void 0;if(be<0)B?X=u.tabbableGroups[u.tabbableGroups.length-1].lastTabbableNode:X=u.tabbableGroups[0].firstTabbableNode;else if(B){var Be=jh(u.tabbableGroups,function(fe){var we=fe.firstTabbableNode;return k===we});if(Be<0&&(Me.container===k||ic(k,d.tabbableOptions)&&!Ki(k,d.tabbableOptions)&&!Me.nextTabbableNode(k,!1))&&(Be=be),Be>=0){var lt=Be===0?u.tabbableGroups.length-1:Be-1,Qt=u.tabbableGroups[lt];X=ci(k)>=0?Qt.lastTabbableNode:Qt.lastDomTabbableNode}else ma(x)||(X=Me.nextTabbableNode(k,!1))}else{var Xe=jh(u.tabbableGroups,function(fe){var we=fe.lastTabbableNode;return k===we});if(Xe<0&&(Me.container===k||ic(k,d.tabbableOptions)&&!Ki(k,d.tabbableOptions)&&!Me.nextTabbableNode(k))&&(Xe=be),Xe>=0){var Je=Xe===u.tabbableGroups.length-1?0:Xe+1,Ue=u.tabbableGroups[Je];X=ci(k)>=0?Ue.firstTabbableNode:Ue.firstDomTabbableNode}else ma(x)||(X=Me.nextTabbableNode(k))}}else X=T("fallbackFocus");return X},te=function(Z){var k=Ts(Z);if(!(y(k,Z)>=0)){if(ua(d.clickOutsideDeactivates,Z)){v.deactivate({returnFocus:d.returnFocusOnDeactivate});return}ua(d.allowOutsideClick,Z)||Z.preventDefault()}},se=function(Z){var k=Ts(Z),x=y(k,Z)>=0;if(x||k instanceof Document)x&&(u.mostRecentlyFocusedNode=k);else{Z.stopImmediatePropagation();var z,B=!0;if(u.mostRecentlyFocusedNode)if(ci(u.mostRecentlyFocusedNode)>0){var X=y(u.mostRecentlyFocusedNode),be=u.containerGroups[X].tabbableNodes;if(be.length>0){var Me=be.findIndex(function(Be){return Be===u.mostRecentlyFocusedNode});Me>=0&&(d.isKeyForward(u.recentNavEvent)?Me+1<be.length&&(z=be[Me+1],B=!1):Me-1>=0&&(z=be[Me-1],B=!1))}}else u.containerGroups.some(function(Be){return Be.tabbableNodes.some(function(lt){return ci(lt)>0})})||(B=!1);else B=!1;B&&(z=ee({target:u.mostRecentlyFocusedNode,isBackward:d.isKeyBackward(u.recentNavEvent)})),N(z||u.mostRecentlyFocusedNode||S())}u.recentNavEvent=void 0},re=function(Z){var k=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;u.recentNavEvent=Z;var x=ee({event:Z,isBackward:k});x&&(ma(Z)&&Z.preventDefault(),N(x))},ue=function(Z){if(Wz(Z)&&ua(d.escapeDeactivates,Z)!==!1){Z.preventDefault(),v.deactivate();return}(d.isKeyForward(Z)||d.isKeyBackward(Z))&&re(Z,d.isKeyBackward(Z))},xe=function(Z){var k=Ts(Z);y(k,Z)>=0||ua(d.clickOutsideDeactivates,Z)||ua(d.allowOutsideClick,Z)||(Z.preventDefault(),Z.stopImmediatePropagation())},qe=function(){if(u.active)return Wh.activateTrap(l,v),u.delayInitialFocusTimer=d.delayInitialFocus?Uh(function(){N(S())}):N(S()),o.addEventListener("focusin",se,!0),o.addEventListener("mousedown",te,{capture:!0,passive:!1}),o.addEventListener("touchstart",te,{capture:!0,passive:!1}),o.addEventListener("click",xe,{capture:!0,passive:!1}),o.addEventListener("keydown",ue,{capture:!0,passive:!1}),v},Ge=function(){if(u.active)return o.removeEventListener("focusin",se,!0),o.removeEventListener("mousedown",te,!0),o.removeEventListener("touchstart",te,!0),o.removeEventListener("click",xe,!0),o.removeEventListener("keydown",ue,!0),v},Ze=function(Z){var k=Z.some(function(x){var z=Array.from(x.removedNodes);return z.some(function(B){return B===u.mostRecentlyFocusedNode})});k&&N(S())},We=typeof window!="undefined"&&"MutationObserver"in window?new MutationObserver(Ze):void 0,de=function(){We&&(We.disconnect(),u.active&&!u.paused&&u.containers.map(function(Z){We.observe(Z,{subtree:!0,childList:!0})}))};return v={get active(){return u.active},get paused(){return u.paused},activate:function(Z){if(u.active)return this;var k=m(Z,"onActivate"),x=m(Z,"onPostActivate"),z=m(Z,"checkCanFocusTrap");z||$(),u.active=!0,u.paused=!1,u.nodeFocusedBeforeActivation=o.activeElement,k==null||k();var B=function(){z&&$(),qe(),de(),x==null||x()};return z?(z(u.containers.concat()).then(B,B),this):(B(),this)},deactivate:function(Z){if(!u.active)return this;var k=Zh({onDeactivate:d.onDeactivate,onPostDeactivate:d.onPostDeactivate,checkCanReturnFocus:d.checkCanReturnFocus},Z);clearTimeout(u.delayInitialFocusTimer),u.delayInitialFocusTimer=void 0,Ge(),u.active=!1,u.paused=!1,de(),Wh.deactivateTrap(l,v);var x=m(k,"onDeactivate"),z=m(k,"onPostDeactivate"),B=m(k,"checkCanReturnFocus"),X=m(k,"returnFocus","returnFocusOnDeactivate");x==null||x();var be=function(){Uh(function(){X&&N(G(u.nodeFocusedBeforeActivation)),z==null||z()})};return X&&B?(B(G(u.nodeFocusedBeforeActivation)).then(be,be),this):(be(),this)},pause:function(Z){if(u.paused||!u.active)return this;var k=m(Z,"onPause"),x=m(Z,"onPostPause");return u.paused=!0,k==null||k(),Ge(),de(),x==null||x(),this},unpause:function(Z){if(!u.paused||!u.active)return this;var k=m(Z,"onUnpause"),x=m(Z,"onPostUnpause");return u.paused=!1,k==null||k(),$(),qe(),de(),x==null||x(),this},updateContainerElements:function(Z){var k=[].concat(Z).filter(Boolean);return u.containers=k.map(function(x){return typeof x=="string"?o.querySelector(x):x}),u.active&&$(),de(),this}},v.updateContainerElements(e),v},Kz=Object.defineProperty,Yz=Object.getOwnPropertyDescriptor,wi=(n,e,i,o)=>{for(var l=o>1?void 0:o?Yz(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&Kz(e,i,l),l};const Cp=ne("modal"),Xz=["small","medium","large","x-large","full-page"];class v0 extends CustomEvent{constructor(){super("brz-modal-close",{bubbles:!0})}}exports.Modal=class extends me{constructor(){super(...arguments),this.size="small",this.open=!1,this.noClose=!1,this.handleKeyUp=e=>{if(e.key==="Escape")return this.handleClose(e)},this.handleClose=e=>{!this.open||e instanceof MouseEvent&&this.noClose||e instanceof MouseEvent&&e.target!==this.overlay||(e.stopPropagation(),this.dispatchEvent(new v0))}}connectedCallback(){super.connectedCallback(),window.addEventListener("keyup",this.handleKeyUp,!0),this.updateComplete.then(()=>{this.focusTrap=qz(this.modal,{tabbableOptions:{getShadowRoot:!0},fallbackFocus:this.modal,allowOutsideClick:!0,checkCanFocusTrap:async()=>{await this.updateComplete,this.open}})})}updated(e){super.updated(e),this.updateComplete.then(()=>{this.focusTrap&&e.has("open")&&(this.open?this.focusTrap.activate():this.focusTrap.deactivate())})}disconnectedCallback(){var e;super.disconnectedCallback(),window.removeEventListener("keyup",this.handleKeyUp,!0),(e=this.focusTrap)==null||e.deactivate()}handleTransitionEnd(e){e.target===this.overlay&&(this.open=!1)}render(){return P`
2301
+ */function Zh(n,e){var i=Object.keys(n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(n);e&&(o=o.filter(function(l){return Object.getOwnPropertyDescriptor(n,l).enumerable})),i.push.apply(i,o)}return i}function Wh(n){for(var e=1;e<arguments.length;e++){var i=arguments[e]!=null?arguments[e]:{};e%2?Zh(Object(i),!0).forEach(function(o){Wz(n,o,i[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(i)):Zh(Object(i)).forEach(function(o){Object.defineProperty(n,o,Object.getOwnPropertyDescriptor(i,o))})}return n}function Wz(n,e,i){return e=jz(e),e in n?Object.defineProperty(n,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[e]=i,n}function Uz(n,e){if(typeof n!="object"||n===null)return n;var i=n[Symbol.toPrimitive];if(i!==void 0){var o=i.call(n,e||"default");if(typeof o!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(n)}function jz(n){var e=Uz(n,"string");return typeof e=="symbol"?e:String(e)}var Uh={activateTrap:function(e,i){if(e.length>0){var o=e[e.length-1];o!==i&&o.pause()}var l=e.indexOf(i);l===-1||e.splice(l,1),e.push(i)},deactivateTrap:function(e,i){var o=e.indexOf(i);o!==-1&&e.splice(o,1),e.length>0&&e[e.length-1].unpause()}},Gz=function(e){return e.tagName&&e.tagName.toLowerCase()==="input"&&typeof e.select=="function"},qz=function(e){return(e==null?void 0:e.key)==="Escape"||(e==null?void 0:e.key)==="Esc"||(e==null?void 0:e.keyCode)===27},ma=function(e){return(e==null?void 0:e.key)==="Tab"||(e==null?void 0:e.keyCode)===9},Kz=function(e){return ma(e)&&!e.shiftKey},Yz=function(e){return ma(e)&&e.shiftKey},jh=function(e){return setTimeout(e,0)},Gh=function(e,i){var o=-1;return e.every(function(l,d){return i(l)?(o=d,!1):!0}),o},ua=function(e){for(var i=arguments.length,o=new Array(i>1?i-1:0),l=1;l<i;l++)o[l-1]=arguments[l];return typeof e=="function"?e.apply(void 0,o):e},Ts=function(e){return e.target.shadowRoot&&typeof e.composedPath=="function"?e.composedPath()[0]:e.target},Xz=[],Jz=function(e,i){var o=(i==null?void 0:i.document)||document,l=(i==null?void 0:i.trapStack)||Xz,d=Wh({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,isKeyForward:Kz,isKeyBackward:Yz},i),u={containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,delayInitialFocusTimer:void 0,recentNavEvent:void 0},v,m=function(Z,k,x){return Z&&Z[k]!==void 0?Z[k]:d[x||k]},y=function(Z,k){var x=typeof(k==null?void 0:k.composedPath)=="function"?k.composedPath():void 0;return u.containerGroups.findIndex(function(z){var B=z.container,X=z.tabbableNodes;return B.contains(Z)||(x==null?void 0:x.includes(B))||X.find(function(be){return be===Z})})},T=function(Z){var k=d[Z];if(typeof k=="function"){for(var x=arguments.length,z=new Array(x>1?x-1:0),B=1;B<x;B++)z[B-1]=arguments[B];k=k.apply(void 0,z)}if(k===!0&&(k=void 0),!k){if(k===void 0||k===!1)return k;throw new Error("`".concat(Z,"` was specified but was not a node, or did not return a node"))}var X=k;if(typeof k=="string"&&(X=o.querySelector(k),!X))throw new Error("`".concat(Z,"` as selector refers to no known node"));return X},S=function(){var Z=T("initialFocus");if(Z===!1)return!1;if(Z===void 0||!ic(Z,d.tabbableOptions))if(y(o.activeElement)>=0)Z=o.activeElement;else{var k=u.tabbableGroups[0],x=k&&k.firstTabbableNode;Z=x||T("fallbackFocus")}if(!Z)throw new Error("Your focus-trap needs to have at least one focusable element");return Z},$=function(){if(u.containerGroups=u.containers.map(function(Z){var k=Bz(Z,d.tabbableOptions),x=Vz(Z,d.tabbableOptions),z=k.length>0?k[0]:void 0,B=k.length>0?k[k.length-1]:void 0,X=x.find(function(Be){return Ki(Be)}),be=x.slice().reverse().find(function(Be){return Ki(Be)}),Me=!!k.find(function(Be){return ci(Be)>0});return{container:Z,tabbableNodes:k,focusableNodes:x,posTabIndexesFound:Me,firstTabbableNode:z,lastTabbableNode:B,firstDomTabbableNode:X,lastDomTabbableNode:be,nextTabbableNode:function(lt){var Qt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,Xe=k.indexOf(lt);return Xe<0?Qt?x.slice(x.indexOf(lt)+1).find(function(Je){return Ki(Je)}):x.slice(0,x.indexOf(lt)).reverse().find(function(Je){return Ki(Je)}):k[Xe+(Qt?1:-1)]}}}),u.tabbableGroups=u.containerGroups.filter(function(Z){return Z.tabbableNodes.length>0}),u.tabbableGroups.length<=0&&!T("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times");if(u.containerGroups.find(function(Z){return Z.posTabIndexesFound})&&u.containerGroups.length>1)throw new Error("At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.")},E=function ie(Z){var k=Z.activeElement;if(k)return k.shadowRoot&&k.shadowRoot.activeElement!==null?ie(k.shadowRoot):k},N=function ie(Z){if(Z!==!1&&Z!==E(document)){if(!Z||!Z.focus){ie(S());return}Z.focus({preventScroll:!!d.preventScroll}),u.mostRecentlyFocusedNode=Z,Gz(Z)&&Z.select()}},G=function(Z){var k=T("setReturnFocus",Z);return k||(k===!1?!1:Z)},ee=function(Z){var k=Z.target,x=Z.event,z=Z.isBackward,B=z===void 0?!1:z;k=k||Ts(x),$();var X=null;if(u.tabbableGroups.length>0){var be=y(k,x),Me=be>=0?u.containerGroups[be]:void 0;if(be<0)B?X=u.tabbableGroups[u.tabbableGroups.length-1].lastTabbableNode:X=u.tabbableGroups[0].firstTabbableNode;else if(B){var Be=Gh(u.tabbableGroups,function(fe){var we=fe.firstTabbableNode;return k===we});if(Be<0&&(Me.container===k||ic(k,d.tabbableOptions)&&!Ki(k,d.tabbableOptions)&&!Me.nextTabbableNode(k,!1))&&(Be=be),Be>=0){var lt=Be===0?u.tabbableGroups.length-1:Be-1,Qt=u.tabbableGroups[lt];X=ci(k)>=0?Qt.lastTabbableNode:Qt.lastDomTabbableNode}else ma(x)||(X=Me.nextTabbableNode(k,!1))}else{var Xe=Gh(u.tabbableGroups,function(fe){var we=fe.lastTabbableNode;return k===we});if(Xe<0&&(Me.container===k||ic(k,d.tabbableOptions)&&!Ki(k,d.tabbableOptions)&&!Me.nextTabbableNode(k))&&(Xe=be),Xe>=0){var Je=Xe===u.tabbableGroups.length-1?0:Xe+1,Ue=u.tabbableGroups[Je];X=ci(k)>=0?Ue.firstTabbableNode:Ue.firstDomTabbableNode}else ma(x)||(X=Me.nextTabbableNode(k))}}else X=T("fallbackFocus");return X},te=function(Z){var k=Ts(Z);if(!(y(k,Z)>=0)){if(ua(d.clickOutsideDeactivates,Z)){v.deactivate({returnFocus:d.returnFocusOnDeactivate});return}ua(d.allowOutsideClick,Z)||Z.preventDefault()}},se=function(Z){var k=Ts(Z),x=y(k,Z)>=0;if(x||k instanceof Document)x&&(u.mostRecentlyFocusedNode=k);else{Z.stopImmediatePropagation();var z,B=!0;if(u.mostRecentlyFocusedNode)if(ci(u.mostRecentlyFocusedNode)>0){var X=y(u.mostRecentlyFocusedNode),be=u.containerGroups[X].tabbableNodes;if(be.length>0){var Me=be.findIndex(function(Be){return Be===u.mostRecentlyFocusedNode});Me>=0&&(d.isKeyForward(u.recentNavEvent)?Me+1<be.length&&(z=be[Me+1],B=!1):Me-1>=0&&(z=be[Me-1],B=!1))}}else u.containerGroups.some(function(Be){return Be.tabbableNodes.some(function(lt){return ci(lt)>0})})||(B=!1);else B=!1;B&&(z=ee({target:u.mostRecentlyFocusedNode,isBackward:d.isKeyBackward(u.recentNavEvent)})),N(z||u.mostRecentlyFocusedNode||S())}u.recentNavEvent=void 0},re=function(Z){var k=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;u.recentNavEvent=Z;var x=ee({event:Z,isBackward:k});x&&(ma(Z)&&Z.preventDefault(),N(x))},ue=function(Z){if(qz(Z)&&ua(d.escapeDeactivates,Z)!==!1){Z.preventDefault(),v.deactivate();return}(d.isKeyForward(Z)||d.isKeyBackward(Z))&&re(Z,d.isKeyBackward(Z))},xe=function(Z){var k=Ts(Z);y(k,Z)>=0||ua(d.clickOutsideDeactivates,Z)||ua(d.allowOutsideClick,Z)||(Z.preventDefault(),Z.stopImmediatePropagation())},qe=function(){if(u.active)return Uh.activateTrap(l,v),u.delayInitialFocusTimer=d.delayInitialFocus?jh(function(){N(S())}):N(S()),o.addEventListener("focusin",se,!0),o.addEventListener("mousedown",te,{capture:!0,passive:!1}),o.addEventListener("touchstart",te,{capture:!0,passive:!1}),o.addEventListener("click",xe,{capture:!0,passive:!1}),o.addEventListener("keydown",ue,{capture:!0,passive:!1}),v},Ge=function(){if(u.active)return o.removeEventListener("focusin",se,!0),o.removeEventListener("mousedown",te,!0),o.removeEventListener("touchstart",te,!0),o.removeEventListener("click",xe,!0),o.removeEventListener("keydown",ue,!0),v},Ze=function(Z){var k=Z.some(function(x){var z=Array.from(x.removedNodes);return z.some(function(B){return B===u.mostRecentlyFocusedNode})});k&&N(S())},We=typeof window!="undefined"&&"MutationObserver"in window?new MutationObserver(Ze):void 0,de=function(){We&&(We.disconnect(),u.active&&!u.paused&&u.containers.map(function(Z){We.observe(Z,{subtree:!0,childList:!0})}))};return v={get active(){return u.active},get paused(){return u.paused},activate:function(Z){if(u.active)return this;var k=m(Z,"onActivate"),x=m(Z,"onPostActivate"),z=m(Z,"checkCanFocusTrap");z||$(),u.active=!0,u.paused=!1,u.nodeFocusedBeforeActivation=o.activeElement,k==null||k();var B=function(){z&&$(),qe(),de(),x==null||x()};return z?(z(u.containers.concat()).then(B,B),this):(B(),this)},deactivate:function(Z){if(!u.active)return this;var k=Wh({onDeactivate:d.onDeactivate,onPostDeactivate:d.onPostDeactivate,checkCanReturnFocus:d.checkCanReturnFocus},Z);clearTimeout(u.delayInitialFocusTimer),u.delayInitialFocusTimer=void 0,Ge(),u.active=!1,u.paused=!1,de(),Uh.deactivateTrap(l,v);var x=m(k,"onDeactivate"),z=m(k,"onPostDeactivate"),B=m(k,"checkCanReturnFocus"),X=m(k,"returnFocus","returnFocusOnDeactivate");x==null||x();var be=function(){jh(function(){X&&N(G(u.nodeFocusedBeforeActivation)),z==null||z()})};return X&&B?(B(G(u.nodeFocusedBeforeActivation)).then(be,be),this):(be(),this)},pause:function(Z){if(u.paused||!u.active)return this;var k=m(Z,"onPause"),x=m(Z,"onPostPause");return u.paused=!0,k==null||k(),Ge(),de(),x==null||x(),this},unpause:function(Z){if(!u.paused||!u.active)return this;var k=m(Z,"onUnpause"),x=m(Z,"onPostUnpause");return u.paused=!1,k==null||k(),$(),qe(),de(),x==null||x(),this},updateContainerElements:function(Z){var k=[].concat(Z).filter(Boolean);return u.containers=k.map(function(x){return typeof x=="string"?o.querySelector(x):x}),u.active&&$(),de(),this}},v.updateContainerElements(e),v},Qz=Object.defineProperty,eL=Object.getOwnPropertyDescriptor,wi=(n,e,i,o)=>{for(var l=o>1?void 0:o?eL(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&Qz(e,i,l),l};const Lp=ne("modal"),tL=["small","medium","large","x-large","full-page"];class b0 extends CustomEvent{constructor(){super("brz-modal-close",{bubbles:!0})}}exports.Modal=class extends me{constructor(){super(...arguments),this.size="small",this.open=!1,this.noClose=!1,this.handleKeyUp=e=>{if(e.key==="Escape")return this.handleClose(e)},this.handleClose=e=>{!this.open||e instanceof MouseEvent&&this.noClose||e instanceof MouseEvent&&e.target!==this.overlay||(e.stopPropagation(),this.dispatchEvent(new b0))}}connectedCallback(){super.connectedCallback(),window.addEventListener("keyup",this.handleKeyUp,!0),this.updateComplete.then(()=>{this.focusTrap=Jz(this.modal,{tabbableOptions:{getShadowRoot:!0},fallbackFocus:this.modal,allowOutsideClick:!0,checkCanFocusTrap:async()=>{await this.updateComplete,this.open}})})}updated(e){super.updated(e),this.updateComplete.then(()=>{this.focusTrap&&e.has("open")&&(this.open?this.focusTrap.activate():this.focusTrap.deactivate())})}disconnectedCallback(){var e;super.disconnectedCallback(),window.removeEventListener("keyup",this.handleKeyUp,!0),(e=this.focusTrap)==null||e.deactivate()}handleTransitionEnd(e){e.target===this.overlay&&(this.open=!1)}render(){return P`
2302
2302
  <brz-fade-in-out ?shown=${this.open}>
2303
2303
  <div
2304
2304
  id="overlay"
@@ -2400,7 +2400,7 @@
2400
2400
  ::slotted(sp-modal-body:first-child) {
2401
2401
  padding-top: var(--brz-spacing-10);
2402
2402
  }
2403
- `;wi([O({type:String})],exports.Modal.prototype,"size",2);wi([O({type:Boolean})],exports.Modal.prototype,"open",2);wi([O({type:Boolean,attribute:"no-close"})],exports.Modal.prototype,"noClose",2);wi([pe()],exports.Modal.prototype,"focusTrap",2);wi([Er("#overlay")],exports.Modal.prototype,"overlay",2);wi([Er(".modal")],exports.Modal.prototype,"modal",2);exports.Modal=wi([R(Cp)],exports.Modal);var Jz=Object.defineProperty,Qz=Object.getOwnPropertyDescriptor,Kr=(n,e,i,o)=>{for(var l=o>1?void 0:o?Qz(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&Jz(e,i,l),l};const wp=ne("split-row"),xp=ne("action-bar");exports.SplitRow=class extends me{constructor(){super(...arguments),this.verticalAlign="top",this.leftExpand=!1,this.rightExpand=!1,this.noGap=!1,this.expandY=!1}render(){return P`
2403
+ `;wi([O({type:String})],exports.Modal.prototype,"size",2);wi([O({type:Boolean})],exports.Modal.prototype,"open",2);wi([O({type:Boolean,attribute:"no-close"})],exports.Modal.prototype,"noClose",2);wi([pe()],exports.Modal.prototype,"focusTrap",2);wi([Er("#overlay")],exports.Modal.prototype,"overlay",2);wi([Er(".modal")],exports.Modal.prototype,"modal",2);exports.Modal=wi([R(Lp)],exports.Modal);var rL=Object.defineProperty,nL=Object.getOwnPropertyDescriptor,Kr=(n,e,i,o)=>{for(var l=o>1?void 0:o?nL(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&rL(e,i,l),l};const Sp=ne("split-row"),Mp=ne("action-bar");exports.SplitRow=class extends me{constructor(){super(...arguments),this.verticalAlign="top",this.leftExpand=!1,this.rightExpand=!1,this.noGap=!1,this.expandY=!1}render(){return P`
2404
2404
  <brz-row vertical-align=${this.verticalAlign}>
2405
2405
  <div class="left">
2406
2406
  <slot name="left"></slot>
@@ -2439,7 +2439,7 @@
2439
2439
  :host([right-expand]) .right {
2440
2440
  flex: 1;
2441
2441
  }
2442
- `;Kr([O({type:String,attribute:"vertical-align",reflect:!0})],exports.SplitRow.prototype,"verticalAlign",2);Kr([O({type:Boolean,attribute:"left-expand",reflect:!0})],exports.SplitRow.prototype,"leftExpand",2);Kr([O({type:Boolean,attribute:"right-expand",reflect:!0})],exports.SplitRow.prototype,"rightExpand",2);Kr([O({type:Boolean,attribute:"no-gap",reflect:!0})],exports.SplitRow.prototype,"noGap",2);Kr([O({type:Boolean,attribute:"expand-y"})],exports.SplitRow.prototype,"expandY",2);exports.SplitRow=Kr([R(wp)],exports.SplitRow);exports.ActionBar=class extends me{constructor(){super(...arguments),this.noBorder=!1,this.leftExpand=!1,this.rightExpand=!1}render(){return P`
2442
+ `;Kr([O({type:String,attribute:"vertical-align",reflect:!0})],exports.SplitRow.prototype,"verticalAlign",2);Kr([O({type:Boolean,attribute:"left-expand",reflect:!0})],exports.SplitRow.prototype,"leftExpand",2);Kr([O({type:Boolean,attribute:"right-expand",reflect:!0})],exports.SplitRow.prototype,"rightExpand",2);Kr([O({type:Boolean,attribute:"no-gap",reflect:!0})],exports.SplitRow.prototype,"noGap",2);Kr([O({type:Boolean,attribute:"expand-y"})],exports.SplitRow.prototype,"expandY",2);exports.SplitRow=Kr([R(Sp)],exports.SplitRow);exports.ActionBar=class extends me{constructor(){super(...arguments),this.noBorder=!1,this.leftExpand=!1,this.rightExpand=!1}render(){return P`
2443
2443
  <brz-split-row
2444
2444
  vertical-align="middle"
2445
2445
  ?left-expand=${this.leftExpand}
@@ -2458,7 +2458,7 @@
2458
2458
  :host([no-border]) brz-split-row {
2459
2459
  box-shadow: none;
2460
2460
  }
2461
- `;Kr([O({type:Boolean,attribute:"no-border",reflect:!0})],exports.ActionBar.prototype,"noBorder",2);Kr([O({type:Boolean,attribute:"left-expand",reflect:!0})],exports.ActionBar.prototype,"leftExpand",2);Kr([O({type:Boolean,attribute:"right-expand",reflect:!0})],exports.ActionBar.prototype,"rightExpand",2);exports.ActionBar=Kr([R(xp)],exports.ActionBar);var eL=Object.defineProperty,tL=Object.getOwnPropertyDescriptor,El=(n,e,i,o)=>{for(var l=o>1?void 0:o?tL(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&eL(e,i,l),l};const zp=ne("modal-header"),Lp=ne("modal-body"),Sp=ne("modal-footer");exports.ModalHeader=class extends me{get _noClose(){var e;return(e=yc(this.parentElement,exports.Modal))==null?void 0:e.noClose}_handleClickClose(){this.dispatchEvent(new v0)}render(){return P`
2461
+ `;Kr([O({type:Boolean,attribute:"no-border",reflect:!0})],exports.ActionBar.prototype,"noBorder",2);Kr([O({type:Boolean,attribute:"left-expand",reflect:!0})],exports.ActionBar.prototype,"leftExpand",2);Kr([O({type:Boolean,attribute:"right-expand",reflect:!0})],exports.ActionBar.prototype,"rightExpand",2);exports.ActionBar=Kr([R(Mp)],exports.ActionBar);var iL=Object.defineProperty,oL=Object.getOwnPropertyDescriptor,El=(n,e,i,o)=>{for(var l=o>1?void 0:o?oL(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&iL(e,i,l),l};const Tp=ne("modal-header"),kp=ne("modal-body"),$p=ne("modal-footer");exports.ModalHeader=class extends me{get _noClose(){var e;return(e=Cc(this.parentElement,exports.Modal))==null?void 0:e.noClose}_handleClickClose(){this.dispatchEvent(new b0)}render(){return P`
2462
2462
  <brz-heading size="xl"><slot></slot></brz-heading>
2463
2463
  ${this._noClose?void 0:P`
2464
2464
  <brz-button
@@ -2487,7 +2487,7 @@
2487
2487
  brz-button.close {
2488
2488
  margin-right: calc(0px - var(--brz-spacing-2));
2489
2489
  }
2490
- `;exports.ModalHeader=El([R(zp)],exports.ModalHeader);exports.ModalBody=class extends me{constructor(){super(...arguments),this.scrollable=!1,this._resizeObserver=new ResizeObserver(()=>{this.scrollable=this.scrollHeight>this.clientHeight})}connectedCallback(){super.connectedCallback(),this._resizeObserver.observe(this)}disconnectedCallback(){super.disconnectedCallback(),this._resizeObserver.unobserve(this)}render(){return P`<slot></slot>`}};exports.ModalBody.styles=j`
2490
+ `;exports.ModalHeader=El([R(Tp)],exports.ModalHeader);exports.ModalBody=class extends me{constructor(){super(...arguments),this.scrollable=!1,this._resizeObserver=new ResizeObserver(()=>{this.scrollable=this.scrollHeight>this.clientHeight})}connectedCallback(){super.connectedCallback(),this._resizeObserver.observe(this)}disconnectedCallback(){super.disconnectedCallback(),this._resizeObserver.unobserve(this)}render(){return P`<slot></slot>`}};exports.ModalBody.styles=j`
2491
2491
  :host {
2492
2492
  display: block;
2493
2493
  padding: var(--brz-spacing-5) var(--brz-spacing-6);
@@ -2497,7 +2497,7 @@
2497
2497
  :host([scrollable]) {
2498
2498
  border-bottom: 1px solid var(--brz-color-neutral-300);
2499
2499
  }
2500
- `;El([O({type:Boolean,reflect:!0})],exports.ModalBody.prototype,"scrollable",2);exports.ModalBody=El([R(Lp)],exports.ModalBody);exports.ModalFooter=class extends me{render(){return P`
2500
+ `;El([O({type:Boolean,reflect:!0})],exports.ModalBody.prototype,"scrollable",2);exports.ModalBody=El([R(kp)],exports.ModalBody);exports.ModalFooter=class extends me{render(){return P`
2501
2501
  <brz-split-row vertical-align="middle">
2502
2502
  <slot slot="left" name="left"></slot>
2503
2503
  <slot slot="right" name="right"></slot>
@@ -2507,7 +2507,7 @@
2507
2507
  display: block;
2508
2508
  padding: var(--brz-spacing-5) var(--brz-spacing-6);
2509
2509
  }
2510
- `;exports.ModalFooter=El([R(Sp)],exports.ModalFooter);var rL=Object.defineProperty,nL=Object.getOwnPropertyDescriptor,Mp=(n,e,i,o)=>{for(var l=o>1?void 0:o?nL(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&rL(e,i,l),l};const Tp=ne("confirmation-dialog");class kp extends CustomEvent{constructor(){super("brz-dialog-cancel",{bubbles:!0})}}class $p extends CustomEvent{constructor(){super("brz-dialog-confirm",{bubbles:!0})}}exports.ConfirmationDialog=class extends me{constructor(){super(...arguments),this.open=!1}handleCancel(){this.dispatchEvent(new kp)}handleConfirm(){this.dispatchEvent(new $p)}render(){return P`<brz-modal size="small" ?open=${this.open} noClose>
2510
+ `;exports.ModalFooter=El([R($p)],exports.ModalFooter);var aL=Object.defineProperty,sL=Object.getOwnPropertyDescriptor,Op=(n,e,i,o)=>{for(var l=o>1?void 0:o?sL(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&aL(e,i,l),l};const Ep=ne("confirmation-dialog");class _p extends CustomEvent{constructor(){super("brz-dialog-cancel",{bubbles:!0})}}class Ip extends CustomEvent{constructor(){super("brz-dialog-confirm",{bubbles:!0})}}exports.ConfirmationDialog=class extends me{constructor(){super(...arguments),this.open=!1}handleCancel(){this.dispatchEvent(new _p)}handleConfirm(){this.dispatchEvent(new Ip)}render(){return P`<brz-modal size="small" ?open=${this.open} noClose>
2511
2511
  <brz-modal-body>
2512
2512
  <slot name="body"></slot>
2513
2513
  </brz-modal-body>
@@ -2521,12 +2521,12 @@
2521
2521
  </brz-button>
2522
2522
  </brz-button-group>
2523
2523
  </brz-modal-footer>
2524
- </brz-modal>`}};Mp([O({type:Boolean})],exports.ConfirmationDialog.prototype,"open",2);exports.ConfirmationDialog=Mp([R(Tp)],exports.ConfirmationDialog);var iL=Object.defineProperty,oL=Object.getOwnPropertyDescriptor,b0=(n,e,i,o)=>{for(var l=o>1?void 0:o?oL(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&iL(e,i,l),l};const Op=ne("dropdown-button");exports.DropdownButton=class extends exports.Button{constructor(){super(...arguments),this.trailingIcon="chevronDown",this.tooltipText=""}updated(e){if(super.updated(e),e.has("iconOnly")&&this.iconOnly&&this.leadingIcon)return this.trailingIcon=void 0;e.has("trailingIcon")&&e.get("trailingIcon")!=="chevronDown"&&(this.trailingIcon="chevronDown")}render(){return P`
2524
+ </brz-modal>`}};Op([O({type:Boolean})],exports.ConfirmationDialog.prototype,"open",2);exports.ConfirmationDialog=Op([R(Ep)],exports.ConfirmationDialog);var lL=Object.defineProperty,cL=Object.getOwnPropertyDescriptor,m0=(n,e,i,o)=>{for(var l=o>1?void 0:o?cL(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&lL(e,i,l),l};const Ap=ne("dropdown-button");exports.DropdownButton=class extends exports.Button{constructor(){super(...arguments),this.trailingIcon="chevronDown",this.tooltipText=""}updated(e){if(super.updated(e),e.has("iconOnly")&&this.iconOnly&&this.leadingIcon)return this.trailingIcon=void 0;e.has("trailingIcon")&&e.get("trailingIcon")!=="chevronDown"&&(this.trailingIcon="chevronDown")}render(){return P`
2525
2525
  <brz-dropdown-menu .size=${this.menuSize}>
2526
2526
  ${super.render()}
2527
2527
  <slot name="options" slot="options"></slot>
2528
2528
  </brz-dropdown-menu>
2529
- `}};b0([O({attribute:"menu-size"})],exports.DropdownButton.prototype,"menuSize",2);b0([O({type:String,attribute:"tooltip-text"})],exports.DropdownButton.prototype,"tooltipText",2);exports.DropdownButton=b0([R(Op)],exports.DropdownButton);var aL=Object.defineProperty,sL=Object.getOwnPropertyDescriptor,Rn=(n,e,i,o)=>{for(var l=o>1?void 0:o?sL(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&aL(e,i,l),l};const Ep=ne("input-checkbox"),zr={Checked:"Checked",Indeterminate:"Indeterminate",Empty:"Empty"};exports.InputCheckbox=class extends Jt{constructor(){super(...arguments),this.checked=!1,this.disabled=!1,this.leftLabel=!1,this.value="on",this.indeterminate=!1,this.checkboxState=zr.Empty,this.inputElement=null}updateProxyInput(){super.updateProxyInput(),this.proxyInput&&(this.checked?(this.proxyInput.setAttribute("checked",""),this.proxyInput.value=this.value||""):this.proxyInput.value="")}handleKeyPress(e){e.preventDefault(),e.key===" "&&this.onInput()}onInput(){if(!this.disabled){switch(this.checkboxState){case zr.Checked:this.checked=!1;break;case zr.Empty:this.checked=!0;break;case zr.Indeterminate:this.checked=!0,this.indeterminate=!1,this.inputElement&&(this.inputElement.indeterminate=!1);break}this.dispatchEvent(new CustomEvent("brz-input-change",{detail:{checked:this.checked,indeterminate:this.indeterminate}}))}}getIcon(){switch(this.checkboxState){case zr.Checked:return P`<brz-icon icon="checkBoxTick" size="16"></brz-icon>`;case zr.Indeterminate:return P`<brz-icon icon="zoomOut" size="16"></brz-icon>`;case zr.Empty:default:return}}firstUpdated(){this.inputElement=this.renderRoot.querySelector("input"),this.indeterminate&&this.inputElement&&(this.inputElement.indeterminate=!0)}render(){this.checkboxState=this.checked?zr.Checked:this.indeterminate?zr.Indeterminate:zr.Empty;const e=P`
2529
+ `}};m0([O({attribute:"menu-size"})],exports.DropdownButton.prototype,"menuSize",2);m0([O({type:String,attribute:"tooltip-text"})],exports.DropdownButton.prototype,"tooltipText",2);exports.DropdownButton=m0([R(Ap)],exports.DropdownButton);var uL=Object.defineProperty,dL=Object.getOwnPropertyDescriptor,Rn=(n,e,i,o)=>{for(var l=o>1?void 0:o?dL(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&uL(e,i,l),l};const Pp=ne("input-checkbox"),zr={Checked:"Checked",Indeterminate:"Indeterminate",Empty:"Empty"};exports.InputCheckbox=class extends Jt{constructor(){super(...arguments),this.checked=!1,this.disabled=!1,this.leftLabel=!1,this.value="on",this.indeterminate=!1,this.checkboxState=zr.Empty,this.inputElement=null}updateProxyInput(){super.updateProxyInput(),this.proxyInput&&(this.checked?(this.proxyInput.setAttribute("checked",""),this.proxyInput.value=this.value||""):this.proxyInput.value="")}handleKeyPress(e){e.preventDefault(),e.key===" "&&this.onInput()}onInput(){if(!this.disabled){switch(this.checkboxState){case zr.Checked:this.checked=!1;break;case zr.Empty:this.checked=!0;break;case zr.Indeterminate:this.checked=!0,this.indeterminate=!1,this.inputElement&&(this.inputElement.indeterminate=!1);break}this.dispatchEvent(new CustomEvent("brz-input-change",{detail:{checked:this.checked,indeterminate:this.indeterminate}}))}}getIcon(){switch(this.checkboxState){case zr.Checked:return P`<brz-icon icon="checkBoxTick" size="16"></brz-icon>`;case zr.Indeterminate:return P`<brz-icon icon="zoomOut" size="16"></brz-icon>`;case zr.Empty:default:return}}firstUpdated(){this.inputElement=this.renderRoot.querySelector("input"),this.indeterminate&&this.inputElement&&(this.inputElement.indeterminate=!0)}render(){this.checkboxState=this.checked?zr.Checked:this.indeterminate?zr.Indeterminate:zr.Empty;const e=P`
2530
2530
  <div class="checkbox-left">
2531
2531
  <div
2532
2532
  class="checkbox"
@@ -2632,7 +2632,7 @@
2632
2632
  position: absolute;
2633
2633
  left: 0;
2634
2634
  }
2635
- `];Rn([O({type:Boolean,reflect:!0})],exports.InputCheckbox.prototype,"checked",2);Rn([O({type:Boolean,reflect:!0})],exports.InputCheckbox.prototype,"disabled",2);Rn([O({type:Boolean,reflect:!0,attribute:"left-label"})],exports.InputCheckbox.prototype,"leftLabel",2);Rn([O()],exports.InputCheckbox.prototype,"value",2);Rn([O({type:Boolean,reflect:!0})],exports.InputCheckbox.prototype,"indeterminate",2);Rn([pe()],exports.InputCheckbox.prototype,"checkboxState",2);Rn([pe()],exports.InputCheckbox.prototype,"inputElement",2);exports.InputCheckbox=Rn([R(Ep)],exports.InputCheckbox);var lL=Object.defineProperty,cL=Object.getOwnPropertyDescriptor,_l=(n,e,i,o)=>{for(var l=o>1?void 0:o?cL(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&lL(e,i,l),l};const _p=ne("input-text");exports.InputText=class extends Ut{constructor(){super(...arguments),this.size="medium"}renderInput(){return P`
2635
+ `];Rn([O({type:Boolean,reflect:!0})],exports.InputCheckbox.prototype,"checked",2);Rn([O({type:Boolean,reflect:!0})],exports.InputCheckbox.prototype,"disabled",2);Rn([O({type:Boolean,reflect:!0,attribute:"left-label"})],exports.InputCheckbox.prototype,"leftLabel",2);Rn([O()],exports.InputCheckbox.prototype,"value",2);Rn([O({type:Boolean,reflect:!0})],exports.InputCheckbox.prototype,"indeterminate",2);Rn([pe()],exports.InputCheckbox.prototype,"checkboxState",2);Rn([pe()],exports.InputCheckbox.prototype,"inputElement",2);exports.InputCheckbox=Rn([R(Pp)],exports.InputCheckbox);var hL=Object.defineProperty,fL=Object.getOwnPropertyDescriptor,_l=(n,e,i,o)=>{for(var l=o>1?void 0:o?fL(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&hL(e,i,l),l};const Dp=ne("input-text");exports.InputText=class extends Ut{constructor(){super(...arguments),this.size="medium"}renderInput(){return P`
2636
2636
  <input
2637
2637
  @input=${this.onInput}
2638
2638
  .value=${Ie(this.value)}
@@ -2649,7 +2649,7 @@
2649
2649
  input {
2650
2650
  height: 36px;
2651
2651
  }
2652
- `];_l([O({type:String})],exports.InputText.prototype,"value",2);_l([O({type:String,reflect:!0})],exports.InputText.prototype,"size",2);_l([O({type:Number,reflect:!0})],exports.InputText.prototype,"maxlength",2);exports.InputText=_l([R(_p)],exports.InputText);var uL=Object.defineProperty,dL=Object.getOwnPropertyDescriptor,Il=(n,e,i,o)=>{for(var l=o>1?void 0:o?dL(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&uL(e,i,l),l};const Ip=ne("input-textarea");exports.InputTextarea=class extends Ut{constructor(){super(...arguments),this.size="x-large"}renderGuide(){var o;if(!this.maxlength)return null;const e=((o=this.value)==null?void 0:o.length)||0,i=P`${e} of ${this.maxlength}`;return e>=this.maxlength?P`<brz-input-error>${i}</brz-input-error>`:P`<brz-input-guide>${i}</brz-input-guide>`}renderInput(){var e;return P`
2652
+ `];_l([O({type:String})],exports.InputText.prototype,"value",2);_l([O({type:String,reflect:!0})],exports.InputText.prototype,"size",2);_l([O({type:Number,reflect:!0})],exports.InputText.prototype,"maxlength",2);exports.InputText=_l([R(Dp)],exports.InputText);var pL=Object.defineProperty,gL=Object.getOwnPropertyDescriptor,Il=(n,e,i,o)=>{for(var l=o>1?void 0:o?gL(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&pL(e,i,l),l};const Np=ne("input-textarea");exports.InputTextarea=class extends Ut{constructor(){super(...arguments),this.size="x-large"}renderGuide(){var o;if(!this.maxlength)return null;const e=((o=this.value)==null?void 0:o.length)||0,i=P`${e} of ${this.maxlength}`;return e>=this.maxlength?P`<brz-input-error>${i}</brz-input-error>`:P`<brz-input-guide>${i}</brz-input-guide>`}renderInput(){var e;return P`
2653
2653
  <textarea
2654
2654
  @input=${this.onInput}
2655
2655
  .value=${(e=this.value)!=null?e:""}
@@ -2665,7 +2665,7 @@
2665
2665
  height: 100px;
2666
2666
  resize: none;
2667
2667
  }
2668
- `];Il([O({type:String})],exports.InputTextarea.prototype,"value",2);Il([O({type:String,reflect:!0})],exports.InputTextarea.prototype,"size",2);Il([O({type:Number,reflect:!0,attribute:"maxlength"})],exports.InputTextarea.prototype,"maxlength",2);exports.InputTextarea=Il([R(Ip)],exports.InputTextarea);var hL=Object.defineProperty,fL=Object.getOwnPropertyDescriptor,pn=(n,e,i,o)=>{for(var l=o>1?void 0:o?fL(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&hL(e,i,l),l};const Ap=ne("input-number"),pL=j`
2668
+ `];Il([O({type:String})],exports.InputTextarea.prototype,"value",2);Il([O({type:String,reflect:!0})],exports.InputTextarea.prototype,"size",2);Il([O({type:Number,reflect:!0,attribute:"maxlength"})],exports.InputTextarea.prototype,"maxlength",2);exports.InputTextarea=Il([R(Np)],exports.InputTextarea);var vL=Object.defineProperty,bL=Object.getOwnPropertyDescriptor,pn=(n,e,i,o)=>{for(var l=o>1?void 0:o?bL(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&vL(e,i,l),l};const Hp=ne("input-number"),mL=j`
2669
2669
  /* Chrome, Safari, Edge, Opera */
2670
2670
  input::-webkit-outer-spin-button,
2671
2671
  input::-webkit-inner-spin-button {
@@ -2677,7 +2677,7 @@
2677
2677
  input[type='number'] {
2678
2678
  -moz-appearance: textfield;
2679
2679
  }
2680
- `,Pp=["e","+"],Ec=(n,e,i=!1)=>{const o=i?"-?":"",l=e?"([0-9]{0,"+e+"})":"([0-9]+)?",d=n===0?"":"(.([0-9]{0,"+n+"}))?";return new RegExp("^"+o+l+d+"$")},Dp=n=>Pp.includes(n.toLowerCase()),gL=n=>!!Pp.find(e=>n.toLowerCase().includes(e)),vL=n=>{var i,o;Dp(n.key)&&n.preventDefault();const e=n.target;((i=e==null?void 0:e.value)==null?void 0:i.length)===0&&n.key==="-"&&(e.value=""),((o=e==null?void 0:e.value)==null?void 0:o.length)>0&&n.key==="-"&&n.preventDefault()},bL=(n,e)=>{var u;const i=Ec(e,void 0,!0),{clipboardData:o}=n,l=(u=o==null?void 0:o.getData("text"))==null?void 0:u.toLowerCase();if(!l)return;const d=n.target;(!(d!=null&&d.value)||!i.test(d.value+l)&&i.test(l))&&(d.value=""),(Dp(l)||gL(l)||!i.test(l))&&(n.stopPropagation(),n.preventDefault())};exports.InputNumber=class extends Ut{constructor(){super(...arguments),this.hasNoStepper=!1,this.decimalPlaces=0,this.step=1}handleIncrease(){var e;this.inputElement.focus(),this.inputElement.stepUp(),this.handleSteppedChange((e=parseFloat(this.inputElement.value))!=null?e:0)}handleDecrease(){var e;this.inputElement.focus(),this.inputElement.stepDown(),this.handleSteppedChange((e=parseFloat(this.inputElement.value))!=null?e:0)}handleSteppedChange(e){this.value=e,this.dispatchChange()}onInput(e){var o;const i=typeof e.target.value=="string"?parseFloat(e.target.value):e.target.value;if(e.target.value===""||e.target.value==="-"){super.onInput({target:{value:i}});return}if(this.allowValueUpdate(i)){const l=this.decimalPlaces?parseFloat(Number(i).toFixed(this.decimalPlaces)):i;super.onInput({target:{value:l}})}else e.target.value=(o=this.value)!=null?o:"0"}allowValueUpdate(e){const i=this.max?parseInt(this.max.toString()).toString().length:void 0,o=this.min?parseInt(this.min.toString()).toString().length:void 0,l=e<0,d=l?!0:Ec(this.decimalPlaces,i).test(e.toString()),u=l?Ec(this.decimalPlaces,o,!0).test(e.toString()):!0,v=this.min?e>=this.min:!0,m=this.max?e<=this.max:!0;return!!(d&&u&&v&&m)}handleKeyDown(e){vL(e)}handlePaste(e){bL(e,this.decimalPlaces)}get stepperLayout(){return this.hasNoStepper?null:P`
2680
+ `,Rp=["e","+"],_c=(n,e,i=!1)=>{const o=i?"-?":"",l=e?"([0-9]{0,"+e+"})":"([0-9]+)?",d=n===0?"":"(.([0-9]{0,"+n+"}))?";return new RegExp("^"+o+l+d+"$")},Fp=n=>Rp.includes(n.toLowerCase()),yL=n=>!!Rp.find(e=>n.toLowerCase().includes(e)),CL=n=>{var i,o;Fp(n.key)&&n.preventDefault();const e=n.target;((i=e==null?void 0:e.value)==null?void 0:i.length)===0&&n.key==="-"&&(e.value=""),((o=e==null?void 0:e.value)==null?void 0:o.length)>0&&n.key==="-"&&n.preventDefault()},wL=(n,e)=>{var u;const i=_c(e,void 0,!0),{clipboardData:o}=n,l=(u=o==null?void 0:o.getData("text"))==null?void 0:u.toLowerCase();if(!l)return;const d=n.target;(!(d!=null&&d.value)||!i.test(d.value+l)&&i.test(l))&&(d.value=""),(Fp(l)||yL(l)||!i.test(l))&&(n.stopPropagation(),n.preventDefault())};exports.InputNumber=class extends Ut{constructor(){super(...arguments),this.hasNoStepper=!1,this.decimalPlaces=0,this.step=1}handleIncrease(){var e;this.inputElement.focus(),this.inputElement.stepUp(),this.handleSteppedChange((e=parseFloat(this.inputElement.value))!=null?e:0)}handleDecrease(){var e;this.inputElement.focus(),this.inputElement.stepDown(),this.handleSteppedChange((e=parseFloat(this.inputElement.value))!=null?e:0)}handleSteppedChange(e){this.value=e,this.dispatchChange()}onInput(e){var o;const i=typeof e.target.value=="string"?parseFloat(e.target.value):e.target.value;if(e.target.value===""||e.target.value==="-"){super.onInput({target:{value:i}});return}if(this.allowValueUpdate(i)){const l=this.decimalPlaces?parseFloat(Number(i).toFixed(this.decimalPlaces)):i;super.onInput({target:{value:l}})}else e.target.value=(o=this.value)!=null?o:"0"}allowValueUpdate(e){const i=this.max?parseInt(this.max.toString()).toString().length:void 0,o=this.min?parseInt(this.min.toString()).toString().length:void 0,l=e<0,d=l?!0:_c(this.decimalPlaces,i).test(e.toString()),u=l?_c(this.decimalPlaces,o,!0).test(e.toString()):!0,v=this.min?e>=this.min:!0,m=this.max?e<=this.max:!0;return!!(d&&u&&v&&m)}handleKeyDown(e){CL(e)}handlePaste(e){wL(e,this.decimalPlaces)}get stepperLayout(){return this.hasNoStepper?null:P`
2681
2681
  <div class="stepper-container">
2682
2682
  <button
2683
2683
  @click=${this.handleDecrease}
@@ -2722,7 +2722,7 @@
2722
2722
  max=${Ie(this.max)}
2723
2723
  decimal-places=${Ie(this.decimalPlaces)}
2724
2724
  />
2725
- </div>`}};exports.InputNumber.styles=[...Ut.styles,pL,j`
2725
+ </div>`}};exports.InputNumber.styles=[...Ut.styles,mL,j`
2726
2726
  input {
2727
2727
  white-space: nowrap;
2728
2728
  overflow: hidden;
@@ -2792,11 +2792,11 @@
2792
2792
  background-color: var(--input-readonly-background-color);
2793
2793
  border-color: var(--input-readonly-border-color);
2794
2794
  }
2795
- `];pn([O({type:Number})],exports.InputNumber.prototype,"value",2);pn([O({type:String,reflect:!0,attribute:"units"})],exports.InputNumber.prototype,"units",2);pn([O({type:Boolean,reflect:!0,attribute:"has-no-stepper"})],exports.InputNumber.prototype,"hasNoStepper",2);pn([O({type:Number,reflect:!0})],exports.InputNumber.prototype,"min",2);pn([O({type:Number,reflect:!0})],exports.InputNumber.prototype,"max",2);pn([O({type:Number,reflect:!0,attribute:"decimal-places"})],exports.InputNumber.prototype,"decimalPlaces",2);pn([O({type:Number,reflect:!0})],exports.InputNumber.prototype,"step",2);pn([Er('input[type="number"]')],exports.InputNumber.prototype,"inputElement",2);exports.InputNumber=pn([R(Ap)],exports.InputNumber);/**
2795
+ `];pn([O({type:Number})],exports.InputNumber.prototype,"value",2);pn([O({type:String,reflect:!0,attribute:"units"})],exports.InputNumber.prototype,"units",2);pn([O({type:Boolean,reflect:!0,attribute:"has-no-stepper"})],exports.InputNumber.prototype,"hasNoStepper",2);pn([O({type:Number,reflect:!0})],exports.InputNumber.prototype,"min",2);pn([O({type:Number,reflect:!0})],exports.InputNumber.prototype,"max",2);pn([O({type:Number,reflect:!0,attribute:"decimal-places"})],exports.InputNumber.prototype,"decimalPlaces",2);pn([O({type:Number,reflect:!0})],exports.InputNumber.prototype,"step",2);pn([Er('input[type="number"]')],exports.InputNumber.prototype,"inputElement",2);exports.InputNumber=pn([R(Hp)],exports.InputNumber);/**
2796
2796
  * @license
2797
2797
  * Copyright 2017 Google LLC
2798
2798
  * SPDX-License-Identifier: BSD-3-Clause
2799
- */class _c extends vl{constructor(e){if(super(e),this.et=ht,e.type!==pl.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===ht||e==null)return this.ft=void 0,this.et=e;if(e===sn)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 i=[e];return i.raw=i,this.ft={_$litType$:this.constructor.resultType,strings:i,values:[]}}}_c.directiveName="unsafeHTML",_c.resultType=1;const mL=gl(_c);var yL=Object.defineProperty,CL=Object.getOwnPropertyDescriptor,xi=(n,e,i,o)=>{for(var l=o>1?void 0:o?CL(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&yL(e,i,l),l};const Np=ne("input-radio-group"),Hp=ne("input-radio-option"),wL=["horizontal","vertical"];exports.InputRadio=class extends exports.LabeledInput{constructor(){super(...arguments),this.layout="vertical",this.size="auto",this._radioElements=[]}handleSlotChange(){this._radioElements=this._findRadioOptions()}_findRadioOptions(){var i;const e=(i=this.shadowRoot)==null?void 0:i.querySelector("#options");return Array.from(e.assignedElements()).filter(o=>o instanceof exports.InputRadioOption)}radioChange(e){const i=e.target;this.value=i.value,this.dispatchChange()}renderInput(){return P`
2799
+ */class Ic extends vl{constructor(e){if(super(e),this.et=ht,e.type!==pl.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===ht||e==null)return this.ft=void 0,this.et=e;if(e===sn)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 i=[e];return i.raw=i,this.ft={_$litType$:this.constructor.resultType,strings:i,values:[]}}}Ic.directiveName="unsafeHTML",Ic.resultType=1;const xL=gl(Ic);var zL=Object.defineProperty,LL=Object.getOwnPropertyDescriptor,xi=(n,e,i,o)=>{for(var l=o>1?void 0:o?LL(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&zL(e,i,l),l};const Bp=ne("input-radio-group"),Vp=ne("input-radio-option"),SL=["horizontal","vertical"];exports.InputRadio=class extends exports.LabeledInput{constructor(){super(...arguments),this.layout="vertical",this.size="auto",this._radioElements=[]}handleSlotChange(){this._radioElements=this._findRadioOptions()}_findRadioOptions(){var i;const e=(i=this.shadowRoot)==null?void 0:i.querySelector("#options");return Array.from(e.assignedElements()).filter(o=>o instanceof exports.InputRadioOption)}radioChange(e){const i=e.target;this.value=i.value,this.dispatchChange()}renderInput(){return P`
2800
2800
  <slot
2801
2801
  id="options"
2802
2802
  style="display: none;"
@@ -2815,7 +2815,7 @@
2815
2815
  ?checked=${i}
2816
2816
  ?disabled=${e.disabled||this.disabled}
2817
2817
  />
2818
- <label for=${e.value}>${mL(e.innerHTML)}</label>
2818
+ <label for=${e.value}>${xL(e.innerHTML)}</label>
2819
2819
  </div>
2820
2820
  `})}
2821
2821
  </fieldset>
@@ -2971,31 +2971,31 @@
2971
2971
  input[type='radio'][aria-invalid='true'] + label {
2972
2972
  color: var(--brz-input-radio-invalid-color);
2973
2973
  }
2974
- `];xi([O({type:String,reflect:!0})],exports.InputRadio.prototype,"layout",2);xi([O({type:String,reflect:!0})],exports.InputRadio.prototype,"size",2);xi([pe()],exports.InputRadio.prototype,"_radioElements",2);exports.InputRadio=xi([R(Np)],exports.InputRadio);exports.InputRadioOption=class extends me{render(){}};xi([O({type:String})],exports.InputRadioOption.prototype,"value",2);xi([O({type:Boolean})],exports.InputRadioOption.prototype,"disabled",2);exports.InputRadioOption=xi([R(Hp)],exports.InputRadioOption);var Rp={exports:{}};(function(n,e){(function(i,o){n.exports=o()})(pa,function(){var i=navigator.userAgent,o=navigator.platform,l=/gecko\/\d/i.test(i),d=/MSIE \d/.test(i),u=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(i),v=/Edge\/(\d+)/.exec(i),m=d||u||v,y=m&&(d?document.documentMode||6:+(v||u)[1]),T=!v&&/WebKit\//.test(i),S=T&&/Qt\/\d+\.\d+/.test(i),$=!v&&/Chrome\//.test(i),E=/Opera\//.test(i),N=/Apple Computer/.test(navigator.vendor),G=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(i),ee=/PhantomJS/.test(i),te=N&&(/Mobile\/\w+/.test(i)||navigator.maxTouchPoints>2),se=/Android/.test(i),re=te||se||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(i),ue=te||/Mac/.test(o),xe=/\bCrOS\b/.test(i),qe=/win/i.test(o),Ge=E&&i.match(/Version\/(\d*\.\d*)/);Ge&&(Ge=Number(Ge[1])),Ge&&Ge>=15&&(E=!1,T=!0);var Ze=ue&&(S||E&&(Ge==null||Ge<12.11)),We=l||m&&y>=9;function de(t){return new RegExp("(^|\\s)"+t+"(?:$|\\s)\\s*")}var ie=function(t,r){var s=t.className,a=de(r).exec(s);if(a){var c=s.slice(a.index+a[0].length);t.className=s.slice(0,a.index)+(c?a[1]+c:"")}};function Z(t){for(var r=t.childNodes.length;r>0;--r)t.removeChild(t.firstChild);return t}function k(t,r){return Z(t).appendChild(r)}function x(t,r,s,a){var c=document.createElement(t);if(s&&(c.className=s),a&&(c.style.cssText=a),typeof r=="string")c.appendChild(document.createTextNode(r));else if(r)for(var h=0;h<r.length;++h)c.appendChild(r[h]);return c}function z(t,r,s,a){var c=x(t,r,s,a);return c.setAttribute("role","presentation"),c}var B;document.createRange?B=function(t,r,s,a){var c=document.createRange();return c.setEnd(a||t,s),c.setStart(t,r),c}:B=function(t,r,s){var a=document.body.createTextRange();try{a.moveToElementText(t.parentNode)}catch{return a}return a.collapse(!0),a.moveEnd("character",s),a.moveStart("character",r),a};function X(t,r){if(r.nodeType==3&&(r=r.parentNode),t.contains)return t.contains(r);do if(r.nodeType==11&&(r=r.host),r==t)return!0;while(r=r.parentNode)}function be(){var t;try{t=document.activeElement}catch{t=document.body||null}for(;t&&t.shadowRoot&&t.shadowRoot.activeElement;)t=t.shadowRoot.activeElement;return t}function Me(t,r){var s=t.className;de(r).test(s)||(t.className+=(s?" ":"")+r)}function Be(t,r){for(var s=t.split(" "),a=0;a<s.length;a++)s[a]&&!de(s[a]).test(r)&&(r+=" "+s[a]);return r}var lt=function(t){t.select()};te?lt=function(t){t.selectionStart=0,t.selectionEnd=t.value.length}:m&&(lt=function(t){try{t.select()}catch{}});function Qt(t){var r=Array.prototype.slice.call(arguments,1);return function(){return t.apply(null,r)}}function Xe(t,r,s){r||(r={});for(var a in t)t.hasOwnProperty(a)&&(s!==!1||!r.hasOwnProperty(a))&&(r[a]=t[a]);return r}function Je(t,r,s,a,c){r==null&&(r=t.search(/[^\s\u00a0]/),r==-1&&(r=t.length));for(var h=a||0,f=c||0;;){var p=t.indexOf(" ",h);if(p<0||p>=r)return f+(r-h);f+=p-h,f+=s-f%s,h=p+1}}var Ue=function(){this.id=null,this.f=null,this.time=0,this.handler=Qt(this.onTimeout,this)};Ue.prototype.onTimeout=function(t){t.id=0,t.time<=+new Date?t.f():setTimeout(t.handler,t.time-+new Date)},Ue.prototype.set=function(t,r){this.f=r;var s=+new Date+t;(!this.id||s<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,t),this.time=s)};function fe(t,r){for(var s=0;s<t.length;++s)if(t[s]==r)return s;return-1}var we=50,$e={toString:function(){return"CodeMirror.Pass"}},Pe={scroll:!1},Ee={origin:"*mouse"},Se={origin:"+move"};function bt(t,r,s){for(var a=0,c=0;;){var h=t.indexOf(" ",a);h==-1&&(h=t.length);var f=h-a;if(h==t.length||c+f>=r)return a+Math.min(f,r-c);if(c+=h-a,c+=s-c%s,a=h+1,c>=r)return a}}var br=[""];function bn(t){for(;br.length<=t;)br.push(Oe(br)+" ");return br[t]}function Oe(t){return t[t.length-1]}function He(t,r){for(var s=[],a=0;a<t.length;a++)s[a]=r(t[a],a);return s}function mt(t,r,s){for(var a=0,c=s(r);a<t.length&&s(t[a])<=c;)a++;t.splice(a,0,r)}function er(){}function ur(t,r){var s;return Object.create?s=Object.create(t):(er.prototype=t,s=new er),r&&Xe(r,s),s}var Bn=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function Ke(t){return/\w/.test(t)||t>"€"&&(t.toUpperCase()!=t.toLowerCase()||Bn.test(t))}function A(t,r){return r?r.source.indexOf("\\w")>-1&&Ke(t)?!0:r.test(t):Ke(t)}function Y(t){for(var r in t)if(t.hasOwnProperty(r)&&t[r])return!1;return!0}var F=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function _e(t){return t.charCodeAt(0)>=768&&F.test(t)}function It(t,r,s){for(;(s<0?r>0:r<t.length)&&_e(t.charAt(r));)r+=s;return r}function Ar(t,r,s){for(var a=r>s?-1:1;;){if(r==s)return r;var c=(r+s)/2,h=a<0?Math.ceil(c):Math.floor(c);if(h==r)return t(h)?r:s;t(h)?s=h:r=h+a}}function Kl(t,r,s,a){if(!t)return a(r,s,"ltr",0);for(var c=!1,h=0;h<t.length;++h){var f=t[h];(f.from<s&&f.to>r||r==s&&f.to==r)&&(a(Math.max(f.from,r),Math.min(f.to,s),f.level==1?"rtl":"ltr",h),c=!0)}c||a(r,s,"ltr")}var tr=null;function nt(t,r,s){var a;tr=null;for(var c=0;c<t.length;++c){var h=t[c];if(h.from<r&&h.to>r)return c;h.to==r&&(h.from!=h.to&&s=="before"?a=c:tr=c),h.from==r&&(h.from!=h.to&&s!="before"?a=c:tr=c)}return a!=null?a:tr}var Vn=function(){var t="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",r="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function s(b){return b<=247?t.charAt(b):1424<=b&&b<=1524?"R":1536<=b&&b<=1785?r.charAt(b-1536):1774<=b&&b<=2220?"r":8192<=b&&b<=8203?"w":b==8204?"b":"L"}var a=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,c=/[stwN]/,h=/[LRr]/,f=/[Lb1n]/,p=/[1n]/;function g(b,w,L){this.level=b,this.from=w,this.to=L}return function(b,w){var L=w=="ltr"?"L":"R";if(b.length==0||w=="ltr"&&!a.test(b))return!1;for(var I=b.length,_=[],H=0;H<I;++H)_.push(s(b.charCodeAt(H)));for(var W=0,K=L;W<I;++W){var J=_[W];J=="m"?_[W]=K:K=J}for(var ae=0,Q=L;ae<I;++ae){var ce=_[ae];ce=="1"&&Q=="r"?_[ae]="n":h.test(ce)&&(Q=ce,ce=="r"&&(_[ae]="R"))}for(var ye=1,ve=_[0];ye<I-1;++ye){var ke=_[ye];ke=="+"&&ve=="1"&&_[ye+1]=="1"?_[ye]="1":ke==","&&ve==_[ye+1]&&(ve=="1"||ve=="n")&&(_[ye]=ve),ve=ke}for(var Ye=0;Ye<I;++Ye){var xt=_[Ye];if(xt==",")_[Ye]="N";else if(xt=="%"){var rt=void 0;for(rt=Ye+1;rt<I&&_[rt]=="%";++rt);for(var Kt=Ye&&_[Ye-1]=="!"||rt<I&&_[rt]=="1"?"1":"N",Bt=Ye;Bt<rt;++Bt)_[Bt]=Kt;Ye=rt-1}}for(var ut=0,Vt=L;ut<I;++ut){var Mt=_[ut];Vt=="L"&&Mt=="1"?_[ut]="L":h.test(Mt)&&(Vt=Mt)}for(var ft=0;ft<I;++ft)if(c.test(_[ft])){var dt=void 0;for(dt=ft+1;dt<I&&c.test(_[dt]);++dt);for(var ot=(ft?_[ft-1]:L)=="L",Zt=(dt<I?_[dt]:L)=="L",Gi=ot==Zt?ot?"L":"R":L,kn=ft;kn<dt;++kn)_[kn]=Gi;ft=dt-1}for(var _t=[],Zr,zt=0;zt<I;)if(f.test(_[zt])){var R1=zt;for(++zt;zt<I&&f.test(_[zt]);++zt);_t.push(new g(0,R1,zt))}else{var nn=zt,Qn=_t.length,ei=w=="rtl"?1:0;for(++zt;zt<I&&_[zt]!="L";++zt);for(var Pt=nn;Pt<zt;)if(p.test(_[Pt])){nn<Pt&&(_t.splice(Qn,0,new g(1,nn,Pt)),Qn+=ei);var qi=Pt;for(++Pt;Pt<zt&&p.test(_[Pt]);++Pt);_t.splice(Qn,0,new g(2,qi,Pt)),Qn+=ei,nn=Pt}else++Pt;nn<zt&&_t.splice(Qn,0,new g(1,nn,zt))}return w=="ltr"&&(_t[0].level==1&&(Zr=b.match(/^\s+/))&&(_t[0].from=Zr[0].length,_t.unshift(new g(0,0,Zr[0].length))),Oe(_t).level==1&&(Zr=b.match(/\s+$/))&&(Oe(_t).to-=Zr[0].length,_t.push(new g(0,I-Zr[0].length,I)))),w=="rtl"?_t.reverse():_t}}();function jt(t,r){var s=t.order;return s==null&&(s=t.order=Vn(t.text,r)),s}var Xr=[],Ce=function(t,r,s){if(t.addEventListener)t.addEventListener(r,s,!1);else if(t.attachEvent)t.attachEvent("on"+r,s);else{var a=t._handlers||(t._handlers={});a[r]=(a[r]||Xr).concat(s)}};function Li(t,r){return t._handlers&&t._handlers[r]||Xr}function Nt(t,r,s){if(t.removeEventListener)t.removeEventListener(r,s,!1);else if(t.detachEvent)t.detachEvent("on"+r,s);else{var a=t._handlers,c=a&&a[r];if(c){var h=fe(c,s);h>-1&&(a[r]=c.slice(0,h).concat(c.slice(h+1)))}}}function ze(t,r){var s=Li(t,r);if(s.length)for(var a=Array.prototype.slice.call(arguments,2),c=0;c<s.length;++c)s[c].apply(null,a)}function ct(t,r,s){return typeof r=="string"&&(r={type:r,preventDefault:function(){this.defaultPrevented=!0}}),ze(t,s||r.type,t,r),rr(r)||r.codemirrorIgnore}function Si(t){var r=t._handlers&&t._handlers.cursorActivity;if(r)for(var s=t.curOp.cursorActivityHandlers||(t.curOp.cursorActivityHandlers=[]),a=0;a<r.length;++a)fe(s,r[a])==-1&&s.push(r[a])}function St(t,r){return Li(t,r).length>0}function Pr(t){t.prototype.on=function(r,s){Ce(this,r,s)},t.prototype.off=function(r,s){Nt(this,r,s)}}function $t(t){t.preventDefault?t.preventDefault():t.returnValue=!1}function Mi(t){t.stopPropagation?t.stopPropagation():t.cancelBubble=!0}function rr(t){return t.defaultPrevented!=null?t.defaultPrevented:t.returnValue==!1}function Zn(t){$t(t),Mi(t)}function mn(t){return t.target||t.srcElement}function Ua(t){var r=t.which;return r==null&&(t.button&1?r=1:t.button&2?r=3:t.button&4&&(r=2)),ue&&t.ctrlKey&&r==1&&(r=3),r}var Lo=function(){if(m&&y<9)return!1;var t=x("div");return"draggable"in t||"dragDrop"in t}(),Ht;function ja(t){if(Ht==null){var r=x("span","​");k(t,x("span",[r,document.createTextNode("x")])),t.firstChild.offsetHeight!=0&&(Ht=r.offsetWidth<=1&&r.offsetHeight>2&&!(m&&y<8))}var s=Ht?x("span","​"):x("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return s.setAttribute("cm-text",""),s}var So;function Dr(t){if(So!=null)return So;var r=k(t,document.createTextNode("AخA")),s=B(r,0,1).getBoundingClientRect(),a=B(r,1,2).getBoundingClientRect();return Z(t),!s||s.left==s.right?!1:So=a.right-s.right<3}var Mo=`
2974
+ `];xi([O({type:String,reflect:!0})],exports.InputRadio.prototype,"layout",2);xi([O({type:String,reflect:!0})],exports.InputRadio.prototype,"size",2);xi([pe()],exports.InputRadio.prototype,"_radioElements",2);exports.InputRadio=xi([R(Bp)],exports.InputRadio);exports.InputRadioOption=class extends me{render(){}};xi([O({type:String})],exports.InputRadioOption.prototype,"value",2);xi([O({type:Boolean})],exports.InputRadioOption.prototype,"disabled",2);exports.InputRadioOption=xi([R(Vp)],exports.InputRadioOption);var oc={exports:{}},qh;function gn(){return qh||(qh=1,function(n,e){(function(i,o){n.exports=o()})(pa,function(){var i=navigator.userAgent,o=navigator.platform,l=/gecko\/\d/i.test(i),d=/MSIE \d/.test(i),u=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(i),v=/Edge\/(\d+)/.exec(i),m=d||u||v,y=m&&(d?document.documentMode||6:+(v||u)[1]),T=!v&&/WebKit\//.test(i),S=T&&/Qt\/\d+\.\d+/.test(i),$=!v&&/Chrome\//.test(i),E=/Opera\//.test(i),N=/Apple Computer/.test(navigator.vendor),G=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(i),ee=/PhantomJS/.test(i),te=N&&(/Mobile\/\w+/.test(i)||navigator.maxTouchPoints>2),se=/Android/.test(i),re=te||se||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(i),ue=te||/Mac/.test(o),xe=/\bCrOS\b/.test(i),qe=/win/i.test(o),Ge=E&&i.match(/Version\/(\d*\.\d*)/);Ge&&(Ge=Number(Ge[1])),Ge&&Ge>=15&&(E=!1,T=!0);var Ze=ue&&(S||E&&(Ge==null||Ge<12.11)),We=l||m&&y>=9;function de(t){return new RegExp("(^|\\s)"+t+"(?:$|\\s)\\s*")}var ie=function(t,r){var s=t.className,a=de(r).exec(s);if(a){var c=s.slice(a.index+a[0].length);t.className=s.slice(0,a.index)+(c?a[1]+c:"")}};function Z(t){for(var r=t.childNodes.length;r>0;--r)t.removeChild(t.firstChild);return t}function k(t,r){return Z(t).appendChild(r)}function x(t,r,s,a){var c=document.createElement(t);if(s&&(c.className=s),a&&(c.style.cssText=a),typeof r=="string")c.appendChild(document.createTextNode(r));else if(r)for(var h=0;h<r.length;++h)c.appendChild(r[h]);return c}function z(t,r,s,a){var c=x(t,r,s,a);return c.setAttribute("role","presentation"),c}var B;document.createRange?B=function(t,r,s,a){var c=document.createRange();return c.setEnd(a||t,s),c.setStart(t,r),c}:B=function(t,r,s){var a=document.body.createTextRange();try{a.moveToElementText(t.parentNode)}catch{return a}return a.collapse(!0),a.moveEnd("character",s),a.moveStart("character",r),a};function X(t,r){if(r.nodeType==3&&(r=r.parentNode),t.contains)return t.contains(r);do if(r.nodeType==11&&(r=r.host),r==t)return!0;while(r=r.parentNode)}function be(){var t;try{t=document.activeElement}catch{t=document.body||null}for(;t&&t.shadowRoot&&t.shadowRoot.activeElement;)t=t.shadowRoot.activeElement;return t}function Me(t,r){var s=t.className;de(r).test(s)||(t.className+=(s?" ":"")+r)}function Be(t,r){for(var s=t.split(" "),a=0;a<s.length;a++)s[a]&&!de(s[a]).test(r)&&(r+=" "+s[a]);return r}var lt=function(t){t.select()};te?lt=function(t){t.selectionStart=0,t.selectionEnd=t.value.length}:m&&(lt=function(t){try{t.select()}catch{}});function Qt(t){var r=Array.prototype.slice.call(arguments,1);return function(){return t.apply(null,r)}}function Xe(t,r,s){r||(r={});for(var a in t)t.hasOwnProperty(a)&&(s!==!1||!r.hasOwnProperty(a))&&(r[a]=t[a]);return r}function Je(t,r,s,a,c){r==null&&(r=t.search(/[^\s\u00a0]/),r==-1&&(r=t.length));for(var h=a||0,f=c||0;;){var p=t.indexOf(" ",h);if(p<0||p>=r)return f+(r-h);f+=p-h,f+=s-f%s,h=p+1}}var Ue=function(){this.id=null,this.f=null,this.time=0,this.handler=Qt(this.onTimeout,this)};Ue.prototype.onTimeout=function(t){t.id=0,t.time<=+new Date?t.f():setTimeout(t.handler,t.time-+new Date)},Ue.prototype.set=function(t,r){this.f=r;var s=+new Date+t;(!this.id||s<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,t),this.time=s)};function fe(t,r){for(var s=0;s<t.length;++s)if(t[s]==r)return s;return-1}var we=50,$e={toString:function(){return"CodeMirror.Pass"}},Pe={scroll:!1},Ee={origin:"*mouse"},Se={origin:"+move"};function bt(t,r,s){for(var a=0,c=0;;){var h=t.indexOf(" ",a);h==-1&&(h=t.length);var f=h-a;if(h==t.length||c+f>=r)return a+Math.min(f,r-c);if(c+=h-a,c+=s-c%s,a=h+1,c>=r)return a}}var br=[""];function bn(t){for(;br.length<=t;)br.push(Oe(br)+" ");return br[t]}function Oe(t){return t[t.length-1]}function He(t,r){for(var s=[],a=0;a<t.length;a++)s[a]=r(t[a],a);return s}function mt(t,r,s){for(var a=0,c=s(r);a<t.length&&s(t[a])<=c;)a++;t.splice(a,0,r)}function er(){}function ur(t,r){var s;return Object.create?s=Object.create(t):(er.prototype=t,s=new er),r&&Xe(r,s),s}var Bn=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function Ke(t){return/\w/.test(t)||t>"€"&&(t.toUpperCase()!=t.toLowerCase()||Bn.test(t))}function A(t,r){return r?r.source.indexOf("\\w")>-1&&Ke(t)?!0:r.test(t):Ke(t)}function Y(t){for(var r in t)if(t.hasOwnProperty(r)&&t[r])return!1;return!0}var F=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function _e(t){return t.charCodeAt(0)>=768&&F.test(t)}function It(t,r,s){for(;(s<0?r>0:r<t.length)&&_e(t.charAt(r));)r+=s;return r}function Ar(t,r,s){for(var a=r>s?-1:1;;){if(r==s)return r;var c=(r+s)/2,h=a<0?Math.ceil(c):Math.floor(c);if(h==r)return t(h)?r:s;t(h)?s=h:r=h+a}}function Kl(t,r,s,a){if(!t)return a(r,s,"ltr",0);for(var c=!1,h=0;h<t.length;++h){var f=t[h];(f.from<s&&f.to>r||r==s&&f.to==r)&&(a(Math.max(f.from,r),Math.min(f.to,s),f.level==1?"rtl":"ltr",h),c=!0)}c||a(r,s,"ltr")}var tr=null;function nt(t,r,s){var a;tr=null;for(var c=0;c<t.length;++c){var h=t[c];if(h.from<r&&h.to>r)return c;h.to==r&&(h.from!=h.to&&s=="before"?a=c:tr=c),h.from==r&&(h.from!=h.to&&s!="before"?a=c:tr=c)}return a!=null?a:tr}var Vn=function(){var t="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",r="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function s(b){return b<=247?t.charAt(b):1424<=b&&b<=1524?"R":1536<=b&&b<=1785?r.charAt(b-1536):1774<=b&&b<=2220?"r":8192<=b&&b<=8203?"w":b==8204?"b":"L"}var a=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,c=/[stwN]/,h=/[LRr]/,f=/[Lb1n]/,p=/[1n]/;function g(b,w,L){this.level=b,this.from=w,this.to=L}return function(b,w){var L=w=="ltr"?"L":"R";if(b.length==0||w=="ltr"&&!a.test(b))return!1;for(var I=b.length,_=[],H=0;H<I;++H)_.push(s(b.charCodeAt(H)));for(var W=0,K=L;W<I;++W){var J=_[W];J=="m"?_[W]=K:K=J}for(var ae=0,Q=L;ae<I;++ae){var ce=_[ae];ce=="1"&&Q=="r"?_[ae]="n":h.test(ce)&&(Q=ce,ce=="r"&&(_[ae]="R"))}for(var ye=1,ve=_[0];ye<I-1;++ye){var ke=_[ye];ke=="+"&&ve=="1"&&_[ye+1]=="1"?_[ye]="1":ke==","&&ve==_[ye+1]&&(ve=="1"||ve=="n")&&(_[ye]=ve),ve=ke}for(var Ye=0;Ye<I;++Ye){var xt=_[Ye];if(xt==",")_[Ye]="N";else if(xt=="%"){var rt=void 0;for(rt=Ye+1;rt<I&&_[rt]=="%";++rt);for(var Kt=Ye&&_[Ye-1]=="!"||rt<I&&_[rt]=="1"?"1":"N",Bt=Ye;Bt<rt;++Bt)_[Bt]=Kt;Ye=rt-1}}for(var ut=0,Vt=L;ut<I;++ut){var Mt=_[ut];Vt=="L"&&Mt=="1"?_[ut]="L":h.test(Mt)&&(Vt=Mt)}for(var ft=0;ft<I;++ft)if(c.test(_[ft])){var dt=void 0;for(dt=ft+1;dt<I&&c.test(_[dt]);++dt);for(var ot=(ft?_[ft-1]:L)=="L",Zt=(dt<I?_[dt]:L)=="L",Gi=ot==Zt?ot?"L":"R":L,kn=ft;kn<dt;++kn)_[kn]=Gi;ft=dt-1}for(var _t=[],Zr,zt=0;zt<I;)if(f.test(_[zt])){var R1=zt;for(++zt;zt<I&&f.test(_[zt]);++zt);_t.push(new g(0,R1,zt))}else{var nn=zt,Qn=_t.length,ei=w=="rtl"?1:0;for(++zt;zt<I&&_[zt]!="L";++zt);for(var Pt=nn;Pt<zt;)if(p.test(_[Pt])){nn<Pt&&(_t.splice(Qn,0,new g(1,nn,Pt)),Qn+=ei);var qi=Pt;for(++Pt;Pt<zt&&p.test(_[Pt]);++Pt);_t.splice(Qn,0,new g(2,qi,Pt)),Qn+=ei,nn=Pt}else++Pt;nn<zt&&_t.splice(Qn,0,new g(1,nn,zt))}return w=="ltr"&&(_t[0].level==1&&(Zr=b.match(/^\s+/))&&(_t[0].from=Zr[0].length,_t.unshift(new g(0,0,Zr[0].length))),Oe(_t).level==1&&(Zr=b.match(/\s+$/))&&(Oe(_t).to-=Zr[0].length,_t.push(new g(0,I-Zr[0].length,I)))),w=="rtl"?_t.reverse():_t}}();function jt(t,r){var s=t.order;return s==null&&(s=t.order=Vn(t.text,r)),s}var Xr=[],Ce=function(t,r,s){if(t.addEventListener)t.addEventListener(r,s,!1);else if(t.attachEvent)t.attachEvent("on"+r,s);else{var a=t._handlers||(t._handlers={});a[r]=(a[r]||Xr).concat(s)}};function Li(t,r){return t._handlers&&t._handlers[r]||Xr}function Nt(t,r,s){if(t.removeEventListener)t.removeEventListener(r,s,!1);else if(t.detachEvent)t.detachEvent("on"+r,s);else{var a=t._handlers,c=a&&a[r];if(c){var h=fe(c,s);h>-1&&(a[r]=c.slice(0,h).concat(c.slice(h+1)))}}}function ze(t,r){var s=Li(t,r);if(s.length)for(var a=Array.prototype.slice.call(arguments,2),c=0;c<s.length;++c)s[c].apply(null,a)}function ct(t,r,s){return typeof r=="string"&&(r={type:r,preventDefault:function(){this.defaultPrevented=!0}}),ze(t,s||r.type,t,r),rr(r)||r.codemirrorIgnore}function Si(t){var r=t._handlers&&t._handlers.cursorActivity;if(r)for(var s=t.curOp.cursorActivityHandlers||(t.curOp.cursorActivityHandlers=[]),a=0;a<r.length;++a)fe(s,r[a])==-1&&s.push(r[a])}function St(t,r){return Li(t,r).length>0}function Pr(t){t.prototype.on=function(r,s){Ce(this,r,s)},t.prototype.off=function(r,s){Nt(this,r,s)}}function $t(t){t.preventDefault?t.preventDefault():t.returnValue=!1}function Mi(t){t.stopPropagation?t.stopPropagation():t.cancelBubble=!0}function rr(t){return t.defaultPrevented!=null?t.defaultPrevented:t.returnValue==!1}function Zn(t){$t(t),Mi(t)}function mn(t){return t.target||t.srcElement}function Ua(t){var r=t.which;return r==null&&(t.button&1?r=1:t.button&2?r=3:t.button&4&&(r=2)),ue&&t.ctrlKey&&r==1&&(r=3),r}var Lo=function(){if(m&&y<9)return!1;var t=x("div");return"draggable"in t||"dragDrop"in t}(),Ht;function ja(t){if(Ht==null){var r=x("span","​");k(t,x("span",[r,document.createTextNode("x")])),t.firstChild.offsetHeight!=0&&(Ht=r.offsetWidth<=1&&r.offsetHeight>2&&!(m&&y<8))}var s=Ht?x("span","​"):x("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return s.setAttribute("cm-text",""),s}var So;function Dr(t){if(So!=null)return So;var r=k(t,document.createTextNode("AخA")),s=B(r,0,1).getBoundingClientRect(),a=B(r,1,2).getBoundingClientRect();return Z(t),!s||s.left==s.right?!1:So=a.right-s.right<3}var Mo=`
2975
2975
 
2976
2976
  b`.split(/\n/).length!=3?function(t){for(var r=0,s=[],a=t.length;r<=a;){var c=t.indexOf(`
2977
- `,r);c==-1&&(c=t.length);var h=t.slice(r,t.charAt(c-1)=="\r"?c-1:c),f=h.indexOf("\r");f!=-1?(s.push(h.slice(0,f)),r+=f+1):(s.push(h),r=c+1)}return s}:function(t){return t.split(/\r\n?|\n/)},Ga=window.getSelection?function(t){try{return t.selectionStart!=t.selectionEnd}catch{return!1}}:function(t){var r;try{r=t.ownerDocument.selection.createRange()}catch{}return!r||r.parentElement()!=t?!1:r.compareEndPoints("StartToEnd",r)!=0},qa=function(){var t=x("div");return"oncopy"in t?!0:(t.setAttribute("oncopy","return;"),typeof t.oncopy=="function")}(),To=null;function yn(t){if(To!=null)return To;var r=k(t,x("span","x")),s=r.getBoundingClientRect(),a=B(r,0,1).getBoundingClientRect();return To=Math.abs(s.left-a.left)>1}var dr={},nr={};function Ka(t,r){arguments.length>2&&(r.dependencies=Array.prototype.slice.call(arguments,2)),dr[t]=r}function Jr(t,r){nr[t]=r}function Ti(t){if(typeof t=="string"&&nr.hasOwnProperty(t))t=nr[t];else if(t&&typeof t.name=="string"&&nr.hasOwnProperty(t.name)){var r=nr[t.name];typeof r=="string"&&(r={name:r}),t=ur(r,t),t.name=r.name}else{if(typeof t=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(t))return Ti("application/xml");if(typeof t=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(t))return Ti("application/json")}return typeof t=="string"?{name:t}:t||{name:"null"}}function ki(t,r){r=Ti(r);var s=dr[r.name];if(!s)return ki(t,"text/plain");var a=s(t,r);if(mr.hasOwnProperty(r.name)){var c=mr[r.name];for(var h in c)c.hasOwnProperty(h)&&(a.hasOwnProperty(h)&&(a["_"+h]=a[h]),a[h]=c[h])}if(a.name=r.name,r.helperType&&(a.helperType=r.helperType),r.modeProps)for(var f in r.modeProps)a[f]=r.modeProps[f];return a}var mr={};function yr(t,r){var s=mr.hasOwnProperty(t)?mr[t]:mr[t]={};Xe(r,s)}function ir(t,r){if(r===!0)return r;if(t.copyState)return t.copyState(r);var s={};for(var a in r){var c=r[a];c instanceof Array&&(c=c.concat([])),s[a]=c}return s}function ko(t,r){for(var s;t.innerMode&&(s=t.innerMode(r),!(!s||s.mode==t));)r=s.state,t=s.mode;return s||{mode:t,state:r}}function $o(t,r,s){return t.startState?t.startState(r,s):!0}var it=function(t,r,s){this.pos=this.start=0,this.string=t,this.tabSize=r||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=s};it.prototype.eol=function(){return this.pos>=this.string.length},it.prototype.sol=function(){return this.pos==this.lineStart},it.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},it.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},it.prototype.eat=function(t){var r=this.string.charAt(this.pos),s;if(typeof t=="string"?s=r==t:s=r&&(t.test?t.test(r):t(r)),s)return++this.pos,r},it.prototype.eatWhile=function(t){for(var r=this.pos;this.eat(t););return this.pos>r},it.prototype.eatSpace=function(){for(var t=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>t},it.prototype.skipToEnd=function(){this.pos=this.string.length},it.prototype.skipTo=function(t){var r=this.string.indexOf(t,this.pos);if(r>-1)return this.pos=r,!0},it.prototype.backUp=function(t){this.pos-=t},it.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=Je(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?Je(this.string,this.lineStart,this.tabSize):0)},it.prototype.indentation=function(){return Je(this.string,null,this.tabSize)-(this.lineStart?Je(this.string,this.lineStart,this.tabSize):0)},it.prototype.match=function(t,r,s){if(typeof t=="string"){var a=function(f){return s?f.toLowerCase():f},c=this.string.substr(this.pos,t.length);if(a(c)==a(t))return r!==!1&&(this.pos+=t.length),!0}else{var h=this.string.slice(this.pos).match(t);return h&&h.index>0?null:(h&&r!==!1&&(this.pos+=h[0].length),h)}},it.prototype.current=function(){return this.string.slice(this.start,this.pos)},it.prototype.hideFirstChars=function(t,r){this.lineStart+=t;try{return r()}finally{this.lineStart-=t}},it.prototype.lookAhead=function(t){var r=this.lineOracle;return r&&r.lookAhead(t)},it.prototype.baseToken=function(){var t=this.lineOracle;return t&&t.baseToken(this.pos)};function he(t,r){if(r-=t.first,r<0||r>=t.size)throw new Error("There is no line "+(r+t.first)+" in the document.");for(var s=t;!s.lines;)for(var a=0;;++a){var c=s.children[a],h=c.chunkSize();if(r<h){s=c;break}r-=h}return s.lines[r]}function Nr(t,r,s){var a=[],c=r.line;return t.iter(r.line,s.line+1,function(h){var f=h.text;c==s.line&&(f=f.slice(0,s.ch)),c==r.line&&(f=f.slice(r.ch)),a.push(f),++c}),a}function Oo(t,r,s){var a=[];return t.iter(r,s,function(c){a.push(c.text)}),a}function Gt(t,r){var s=r-t.height;if(s)for(var a=t;a;a=a.parent)a.height+=s}function Re(t){if(t.parent==null)return null;for(var r=t.parent,s=fe(r.lines,t),a=r.parent;a;r=a,a=a.parent)for(var c=0;a.children[c]!=r;++c)s+=a.children[c].chunkSize();return s+r.first}function Hr(t,r){var s=t.first;e:do{for(var a=0;a<t.children.length;++a){var c=t.children[a],h=c.height;if(r<h){t=c;continue e}r-=h,s+=c.chunkSize()}return s}while(!t.lines);for(var f=0;f<t.lines.length;++f){var p=t.lines[f],g=p.height;if(r<g)break;r-=g}return s+f}function Wn(t,r){return r>=t.first&&r<t.first+t.size}function Eo(t,r){return String(t.lineNumberFormatter(r+t.firstLineNumber))}function U(t,r,s){if(s===void 0&&(s=null),!(this instanceof U))return new U(t,r,s);this.line=t,this.ch=r,this.sticky=s}function C(t,r){return t.line-r.line||t.ch-r.ch}function M(t,r){return t.sticky==r.sticky&&C(t,r)==0}function V(t){return U(t.line,t.ch)}function q(t,r){return C(t,r)<0?r:t}function Le(t,r){return C(t,r)<0?t:r}function Ae(t,r){return Math.max(t.first,Math.min(r,t.first+t.size-1))}function oe(t,r){if(r.line<t.first)return U(t.first,0);var s=t.first+t.size-1;return r.line>s?U(s,he(t,s).text.length):Ot(r,he(t,r.line).text.length)}function Ot(t,r){var s=t.ch;return s==null||s>r?U(t.line,r):s<0?U(t.line,0):t}function or(t,r){for(var s=[],a=0;a<r.length;a++)s[a]=oe(t,r[a]);return s}var $i=function(t,r){this.state=t,this.lookAhead=r},Rr=function(t,r,s,a){this.state=r,this.doc=t,this.line=s,this.maxLookAhead=a||0,this.baseTokens=null,this.baseTokenPos=1};Rr.prototype.lookAhead=function(t){var r=this.doc.getLine(this.line+t);return r!=null&&t>this.maxLookAhead&&(this.maxLookAhead=t),r},Rr.prototype.baseToken=function(t){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=t;)this.baseTokenPos+=2;var r=this.baseTokens[this.baseTokenPos+1];return{type:r&&r.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-t}},Rr.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Rr.fromSaved=function(t,r,s){return r instanceof $i?new Rr(t,ir(t.mode,r.state),s,r.lookAhead):new Rr(t,ir(t.mode,r),s)},Rr.prototype.save=function(t){var r=t!==!1?ir(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new $i(r,this.maxLookAhead):r};function A0(t,r,s,a){var c=[t.state.modeGen],h={};F0(t,r.text,t.doc.mode,s,function(b,w){return c.push(b,w)},h,a);for(var f=s.state,p=function(b){s.baseTokens=c;var w=t.state.overlays[b],L=1,I=0;s.state=!0,F0(t,r.text,w.mode,s,function(_,H){for(var W=L;I<_;){var K=c[L];K>_&&c.splice(L,1,_,c[L+1],K),L+=2,I=Math.min(_,K)}if(H)if(w.opaque)c.splice(W,L-W,_,"overlay "+H),L=W+2;else for(;W<L;W+=2){var J=c[W+1];c[W+1]=(J?J+" ":"")+"overlay "+H}},h),s.state=f,s.baseTokens=null,s.baseTokenPos=1},g=0;g<t.state.overlays.length;++g)p(g);return{styles:c,classes:h.bgClass||h.textClass?h:null}}function P0(t,r,s){if(!r.styles||r.styles[0]!=t.state.modeGen){var a=_o(t,Re(r)),c=r.text.length>t.options.maxHighlightLength&&ir(t.doc.mode,a.state),h=A0(t,r,a);c&&(a.state=c),r.stateAfter=a.save(!c),r.styles=h.styles,h.classes?r.styleClasses=h.classes:r.styleClasses&&(r.styleClasses=null),s===t.doc.highlightFrontier&&(t.doc.modeFrontier=Math.max(t.doc.modeFrontier,++t.doc.highlightFrontier))}return r.styles}function _o(t,r,s){var a=t.doc,c=t.display;if(!a.mode.startState)return new Rr(a,!0,r);var h=j6(t,r,s),f=h>a.first&&he(a,h-1).stateAfter,p=f?Rr.fromSaved(a,f,h):new Rr(a,$o(a.mode),h);return a.iter(h,r,function(g){Yl(t,g.text,p);var b=p.line;g.stateAfter=b==r-1||b%5==0||b>=c.viewFrom&&b<c.viewTo?p.save():null,p.nextLine()}),s&&(a.modeFrontier=p.line),p}function Yl(t,r,s,a){var c=t.doc.mode,h=new it(r,t.options.tabSize,s);for(h.start=h.pos=a||0,r==""&&D0(c,s.state);!h.eol();)Xl(c,h,s.state),h.start=h.pos}function D0(t,r){if(t.blankLine)return t.blankLine(r);if(t.innerMode){var s=ko(t,r);if(s.mode.blankLine)return s.mode.blankLine(s.state)}}function Xl(t,r,s,a){for(var c=0;c<10;c++){a&&(a[0]=ko(t,s).mode);var h=t.token(r,s);if(r.pos>r.start)return h}throw new Error("Mode "+t.name+" failed to advance stream.")}var N0=function(t,r,s){this.start=t.start,this.end=t.pos,this.string=t.current(),this.type=r||null,this.state=s};function H0(t,r,s,a){var c=t.doc,h=c.mode,f;r=oe(c,r);var p=he(c,r.line),g=_o(t,r.line,s),b=new it(p.text,t.options.tabSize,g),w;for(a&&(w=[]);(a||b.pos<r.ch)&&!b.eol();)b.start=b.pos,f=Xl(h,b,g.state),a&&w.push(new N0(b,f,ir(c.mode,g.state)));return a?w:new N0(b,f,g.state)}function R0(t,r){if(t)for(;;){var s=t.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!s)break;t=t.slice(0,s.index)+t.slice(s.index+s[0].length);var a=s[1]?"bgClass":"textClass";r[a]==null?r[a]=s[2]:new RegExp("(?:^|\\s)"+s[2]+"(?:$|\\s)").test(r[a])||(r[a]+=" "+s[2])}return t}function F0(t,r,s,a,c,h,f){var p=s.flattenSpans;p==null&&(p=t.options.flattenSpans);var g=0,b=null,w=new it(r,t.options.tabSize,a),L,I=t.options.addModeClass&&[null];for(r==""&&R0(D0(s,a.state),h);!w.eol();){if(w.pos>t.options.maxHighlightLength?(p=!1,f&&Yl(t,r,a,w.pos),w.pos=r.length,L=null):L=R0(Xl(s,w,a.state,I),h),I){var _=I[0].name;_&&(L="m-"+(L?_+" "+L:_))}if(!p||b!=L){for(;g<w.start;)g=Math.min(w.start,g+5e3),c(g,b);b=L}w.start=w.pos}for(;g<w.pos;){var H=Math.min(w.pos,g+5e3);c(H,b),g=H}}function j6(t,r,s){for(var a,c,h=t.doc,f=s?-1:r-(t.doc.mode.innerMode?1e3:100),p=r;p>f;--p){if(p<=h.first)return h.first;var g=he(h,p-1),b=g.stateAfter;if(b&&(!s||p+(b instanceof $i?b.lookAhead:0)<=h.modeFrontier))return p;var w=Je(g.text,null,t.options.tabSize);(c==null||a>w)&&(c=p-1,a=w)}return c}function G6(t,r){if(t.modeFrontier=Math.min(t.modeFrontier,r),!(t.highlightFrontier<r-10)){for(var s=t.first,a=r-1;a>s;a--){var c=he(t,a).stateAfter;if(c&&(!(c instanceof $i)||a+c.lookAhead<r)){s=a+1;break}}t.highlightFrontier=Math.min(t.highlightFrontier,s)}}var B0=!1,Qr=!1;function q6(){B0=!0}function K6(){Qr=!0}function Ya(t,r,s){this.marker=t,this.from=r,this.to=s}function Io(t,r){if(t)for(var s=0;s<t.length;++s){var a=t[s];if(a.marker==r)return a}}function Y6(t,r){for(var s,a=0;a<t.length;++a)t[a]!=r&&(s||(s=[])).push(t[a]);return s}function X6(t,r,s){var a=s&&window.WeakSet&&(s.markedSpans||(s.markedSpans=new WeakSet));a&&a.has(t.markedSpans)?t.markedSpans.push(r):(t.markedSpans=t.markedSpans?t.markedSpans.concat([r]):[r],a&&a.add(t.markedSpans)),r.marker.attachLine(t)}function J6(t,r,s){var a;if(t)for(var c=0;c<t.length;++c){var h=t[c],f=h.marker,p=h.from==null||(f.inclusiveLeft?h.from<=r:h.from<r);if(p||h.from==r&&f.type=="bookmark"&&(!s||!h.marker.insertLeft)){var g=h.to==null||(f.inclusiveRight?h.to>=r:h.to>r);(a||(a=[])).push(new Ya(f,h.from,g?null:h.to))}}return a}function Q6(t,r,s){var a;if(t)for(var c=0;c<t.length;++c){var h=t[c],f=h.marker,p=h.to==null||(f.inclusiveRight?h.to>=r:h.to>r);if(p||h.from==r&&f.type=="bookmark"&&(!s||h.marker.insertLeft)){var g=h.from==null||(f.inclusiveLeft?h.from<=r:h.from<r);(a||(a=[])).push(new Ya(f,g?null:h.from-r,h.to==null?null:h.to-r))}}return a}function Jl(t,r){if(r.full)return null;var s=Wn(t,r.from.line)&&he(t,r.from.line).markedSpans,a=Wn(t,r.to.line)&&he(t,r.to.line).markedSpans;if(!s&&!a)return null;var c=r.from.ch,h=r.to.ch,f=C(r.from,r.to)==0,p=J6(s,c,f),g=Q6(a,h,f),b=r.text.length==1,w=Oe(r.text).length+(b?c:0);if(p)for(var L=0;L<p.length;++L){var I=p[L];if(I.to==null){var _=Io(g,I.marker);_?b&&(I.to=_.to==null?null:_.to+w):I.to=c}}if(g)for(var H=0;H<g.length;++H){var W=g[H];if(W.to!=null&&(W.to+=w),W.from==null){var K=Io(p,W.marker);K||(W.from=w,b&&(p||(p=[])).push(W))}else W.from+=w,b&&(p||(p=[])).push(W)}p&&(p=V0(p)),g&&g!=p&&(g=V0(g));var J=[p];if(!b){var ae=r.text.length-2,Q;if(ae>0&&p)for(var ce=0;ce<p.length;++ce)p[ce].to==null&&(Q||(Q=[])).push(new Ya(p[ce].marker,null,null));for(var ye=0;ye<ae;++ye)J.push(Q);J.push(g)}return J}function V0(t){for(var r=0;r<t.length;++r){var s=t[r];s.from!=null&&s.from==s.to&&s.marker.clearWhenEmpty!==!1&&t.splice(r--,1)}return t.length?t:null}function e4(t,r,s){var a=null;if(t.iter(r.line,s.line+1,function(_){if(_.markedSpans)for(var H=0;H<_.markedSpans.length;++H){var W=_.markedSpans[H].marker;W.readOnly&&(!a||fe(a,W)==-1)&&(a||(a=[])).push(W)}}),!a)return null;for(var c=[{from:r,to:s}],h=0;h<a.length;++h)for(var f=a[h],p=f.find(0),g=0;g<c.length;++g){var b=c[g];if(!(C(b.to,p.from)<0||C(b.from,p.to)>0)){var w=[g,1],L=C(b.from,p.from),I=C(b.to,p.to);(L<0||!f.inclusiveLeft&&!L)&&w.push({from:b.from,to:p.from}),(I>0||!f.inclusiveRight&&!I)&&w.push({from:p.to,to:b.to}),c.splice.apply(c,w),g+=w.length-3}}return c}function Z0(t){var r=t.markedSpans;if(r){for(var s=0;s<r.length;++s)r[s].marker.detachLine(t);t.markedSpans=null}}function W0(t,r){if(r){for(var s=0;s<r.length;++s)r[s].marker.attachLine(t);t.markedSpans=r}}function Xa(t){return t.inclusiveLeft?-1:0}function Ja(t){return t.inclusiveRight?1:0}function Ql(t,r){var s=t.lines.length-r.lines.length;if(s!=0)return s;var a=t.find(),c=r.find(),h=C(a.from,c.from)||Xa(t)-Xa(r);if(h)return-h;var f=C(a.to,c.to)||Ja(t)-Ja(r);return f||r.id-t.id}function U0(t,r){var s=Qr&&t.markedSpans,a;if(s)for(var c=void 0,h=0;h<s.length;++h)c=s[h],c.marker.collapsed&&(r?c.from:c.to)==null&&(!a||Ql(a,c.marker)<0)&&(a=c.marker);return a}function j0(t){return U0(t,!0)}function Qa(t){return U0(t,!1)}function t4(t,r){var s=Qr&&t.markedSpans,a;if(s)for(var c=0;c<s.length;++c){var h=s[c];h.marker.collapsed&&(h.from==null||h.from<r)&&(h.to==null||h.to>r)&&(!a||Ql(a,h.marker)<0)&&(a=h.marker)}return a}function G0(t,r,s,a,c){var h=he(t,r),f=Qr&&h.markedSpans;if(f)for(var p=0;p<f.length;++p){var g=f[p];if(g.marker.collapsed){var b=g.marker.find(0),w=C(b.from,s)||Xa(g.marker)-Xa(c),L=C(b.to,a)||Ja(g.marker)-Ja(c);if(!(w>=0&&L<=0||w<=0&&L>=0)&&(w<=0&&(g.marker.inclusiveRight&&c.inclusiveLeft?C(b.to,s)>=0:C(b.to,s)>0)||w>=0&&(g.marker.inclusiveRight&&c.inclusiveLeft?C(b.from,a)<=0:C(b.from,a)<0)))return!0}}}function Fr(t){for(var r;r=j0(t);)t=r.find(-1,!0).line;return t}function r4(t){for(var r;r=Qa(t);)t=r.find(1,!0).line;return t}function n4(t){for(var r,s;r=Qa(t);)t=r.find(1,!0).line,(s||(s=[])).push(t);return s}function e1(t,r){var s=he(t,r),a=Fr(s);return s==a?r:Re(a)}function q0(t,r){if(r>t.lastLine())return r;var s=he(t,r),a;if(!Cn(t,s))return r;for(;a=Qa(s);)s=a.find(1,!0).line;return Re(s)+1}function Cn(t,r){var s=Qr&&r.markedSpans;if(s){for(var a=void 0,c=0;c<s.length;++c)if(a=s[c],!!a.marker.collapsed){if(a.from==null)return!0;if(!a.marker.widgetNode&&a.from==0&&a.marker.inclusiveLeft&&t1(t,r,a))return!0}}}function t1(t,r,s){if(s.to==null){var a=s.marker.find(1,!0);return t1(t,a.line,Io(a.line.markedSpans,s.marker))}if(s.marker.inclusiveRight&&s.to==r.text.length)return!0;for(var c=void 0,h=0;h<r.markedSpans.length;++h)if(c=r.markedSpans[h],c.marker.collapsed&&!c.marker.widgetNode&&c.from==s.to&&(c.to==null||c.to!=s.from)&&(c.marker.inclusiveLeft||s.marker.inclusiveRight)&&t1(t,r,c))return!0}function en(t){t=Fr(t);for(var r=0,s=t.parent,a=0;a<s.lines.length;++a){var c=s.lines[a];if(c==t)break;r+=c.height}for(var h=s.parent;h;s=h,h=s.parent)for(var f=0;f<h.children.length;++f){var p=h.children[f];if(p==s)break;r+=p.height}return r}function es(t){if(t.height==0)return 0;for(var r=t.text.length,s,a=t;s=j0(a);){var c=s.find(0,!0);a=c.from.line,r+=c.from.ch-c.to.ch}for(a=t;s=Qa(a);){var h=s.find(0,!0);r-=a.text.length-h.from.ch,a=h.to.line,r+=a.text.length-h.to.ch}return r}function r1(t){var r=t.display,s=t.doc;r.maxLine=he(s,s.first),r.maxLineLength=es(r.maxLine),r.maxLineChanged=!0,s.iter(function(a){var c=es(a);c>r.maxLineLength&&(r.maxLineLength=c,r.maxLine=a)})}var Oi=function(t,r,s){this.text=t,W0(this,r),this.height=s?s(this):1};Oi.prototype.lineNo=function(){return Re(this)},Pr(Oi);function i4(t,r,s,a){t.text=r,t.stateAfter&&(t.stateAfter=null),t.styles&&(t.styles=null),t.order!=null&&(t.order=null),Z0(t),W0(t,s);var c=a?a(t):1;c!=t.height&&Gt(t,c)}function o4(t){t.parent=null,Z0(t)}var a4={},s4={};function K0(t,r){if(!t||/^\s*$/.test(t))return null;var s=r.addModeClass?s4:a4;return s[t]||(s[t]=t.replace(/\S+/g,"cm-$&"))}function Y0(t,r){var s=z("span",null,null,T?"padding-right: .1px":null),a={pre:z("pre",[s],"CodeMirror-line"),content:s,col:0,pos:0,cm:t,trailingSpace:!1,splitSpaces:t.getOption("lineWrapping")};r.measure={};for(var c=0;c<=(r.rest?r.rest.length:0);c++){var h=c?r.rest[c-1]:r.line,f=void 0;a.pos=0,a.addToken=c4,Dr(t.display.measure)&&(f=jt(h,t.doc.direction))&&(a.addToken=d4(a.addToken,f)),a.map=[];var p=r!=t.display.externalMeasured&&Re(h);h4(h,a,P0(t,h,p)),h.styleClasses&&(h.styleClasses.bgClass&&(a.bgClass=Be(h.styleClasses.bgClass,a.bgClass||"")),h.styleClasses.textClass&&(a.textClass=Be(h.styleClasses.textClass,a.textClass||""))),a.map.length==0&&a.map.push(0,0,a.content.appendChild(ja(t.display.measure))),c==0?(r.measure.map=a.map,r.measure.cache={}):((r.measure.maps||(r.measure.maps=[])).push(a.map),(r.measure.caches||(r.measure.caches=[])).push({}))}if(T){var g=a.content.lastChild;(/\bcm-tab\b/.test(g.className)||g.querySelector&&g.querySelector(".cm-tab"))&&(a.content.className="cm-tab-wrap-hack")}return ze(t,"renderLine",t,r.line,a.pre),a.pre.className&&(a.textClass=Be(a.pre.className,a.textClass||"")),a}function l4(t){var r=x("span","•","cm-invalidchar");return r.title="\\u"+t.charCodeAt(0).toString(16),r.setAttribute("aria-label",r.title),r}function c4(t,r,s,a,c,h,f){if(r){var p=t.splitSpaces?u4(r,t.trailingSpace):r,g=t.cm.state.specialChars,b=!1,w;if(!g.test(r))t.col+=r.length,w=document.createTextNode(p),t.map.push(t.pos,t.pos+r.length,w),m&&y<9&&(b=!0),t.pos+=r.length;else{w=document.createDocumentFragment();for(var L=0;;){g.lastIndex=L;var I=g.exec(r),_=I?I.index-L:r.length-L;if(_){var H=document.createTextNode(p.slice(L,L+_));m&&y<9?w.appendChild(x("span",[H])):w.appendChild(H),t.map.push(t.pos,t.pos+_,H),t.col+=_,t.pos+=_}if(!I)break;L+=_+1;var W=void 0;if(I[0]==" "){var K=t.cm.options.tabSize,J=K-t.col%K;W=w.appendChild(x("span",bn(J),"cm-tab")),W.setAttribute("role","presentation"),W.setAttribute("cm-text"," "),t.col+=J}else I[0]=="\r"||I[0]==`
2978
- `?(W=w.appendChild(x("span",I[0]=="\r"?"␍":"␤","cm-invalidchar")),W.setAttribute("cm-text",I[0]),t.col+=1):(W=t.cm.options.specialCharPlaceholder(I[0]),W.setAttribute("cm-text",I[0]),m&&y<9?w.appendChild(x("span",[W])):w.appendChild(W),t.col+=1);t.map.push(t.pos,t.pos+1,W),t.pos++}}if(t.trailingSpace=p.charCodeAt(r.length-1)==32,s||a||c||b||h||f){var ae=s||"";a&&(ae+=a),c&&(ae+=c);var Q=x("span",[w],ae,h);if(f)for(var ce in f)f.hasOwnProperty(ce)&&ce!="style"&&ce!="class"&&Q.setAttribute(ce,f[ce]);return t.content.appendChild(Q)}t.content.appendChild(w)}}function u4(t,r){if(t.length>1&&!/ /.test(t))return t;for(var s=r,a="",c=0;c<t.length;c++){var h=t.charAt(c);h==" "&&s&&(c==t.length-1||t.charCodeAt(c+1)==32)&&(h=" "),a+=h,s=h==" "}return a}function d4(t,r){return function(s,a,c,h,f,p,g){c=c?c+" cm-force-border":"cm-force-border";for(var b=s.pos,w=b+a.length;;){for(var L=void 0,I=0;I<r.length&&(L=r[I],!(L.to>b&&L.from<=b));I++);if(L.to>=w)return t(s,a,c,h,f,p,g);t(s,a.slice(0,L.to-b),c,h,null,p,g),h=null,a=a.slice(L.to-b),b=L.to}}}function X0(t,r,s,a){var c=!a&&s.widgetNode;c&&t.map.push(t.pos,t.pos+r,c),!a&&t.cm.display.input.needsContentAttribute&&(c||(c=t.content.appendChild(document.createElement("span"))),c.setAttribute("cm-marker",s.id)),c&&(t.cm.display.input.setUneditable(c),t.content.appendChild(c)),t.pos+=r,t.trailingSpace=!1}function h4(t,r,s){var a=t.markedSpans,c=t.text,h=0;if(!a){for(var f=1;f<s.length;f+=2)r.addToken(r,c.slice(h,h=s[f]),K0(s[f+1],r.cm.options));return}for(var p=c.length,g=0,b=1,w="",L,I,_=0,H,W,K,J,ae;;){if(_==g){H=W=K=I="",ae=null,J=null,_=1/0;for(var Q=[],ce=void 0,ye=0;ye<a.length;++ye){var ve=a[ye],ke=ve.marker;if(ke.type=="bookmark"&&ve.from==g&&ke.widgetNode)Q.push(ke);else if(ve.from<=g&&(ve.to==null||ve.to>g||ke.collapsed&&ve.to==g&&ve.from==g)){if(ve.to!=null&&ve.to!=g&&_>ve.to&&(_=ve.to,W=""),ke.className&&(H+=" "+ke.className),ke.css&&(I=(I?I+";":"")+ke.css),ke.startStyle&&ve.from==g&&(K+=" "+ke.startStyle),ke.endStyle&&ve.to==_&&(ce||(ce=[])).push(ke.endStyle,ve.to),ke.title&&((ae||(ae={})).title=ke.title),ke.attributes)for(var Ye in ke.attributes)(ae||(ae={}))[Ye]=ke.attributes[Ye];ke.collapsed&&(!J||Ql(J.marker,ke)<0)&&(J=ve)}else ve.from>g&&_>ve.from&&(_=ve.from)}if(ce)for(var xt=0;xt<ce.length;xt+=2)ce[xt+1]==_&&(W+=" "+ce[xt]);if(!J||J.from==g)for(var rt=0;rt<Q.length;++rt)X0(r,0,Q[rt]);if(J&&(J.from||0)==g){if(X0(r,(J.to==null?p+1:J.to)-g,J.marker,J.from==null),J.to==null)return;J.to==g&&(J=!1)}}if(g>=p)break;for(var Kt=Math.min(p,_);;){if(w){var Bt=g+w.length;if(!J){var ut=Bt>Kt?w.slice(0,Kt-g):w;r.addToken(r,ut,L?L+H:H,K,g+ut.length==_?W:"",I,ae)}if(Bt>=Kt){w=w.slice(Kt-g),g=Kt;break}g=Bt,K=""}w=c.slice(h,h=s[b++]),L=K0(s[b++],r.cm.options)}}}function J0(t,r,s){this.line=r,this.rest=n4(r),this.size=this.rest?Re(Oe(this.rest))-s+1:1,this.node=this.text=null,this.hidden=Cn(t,r)}function ts(t,r,s){for(var a=[],c,h=r;h<s;h=c){var f=new J0(t.doc,he(t.doc,h),h);c=h+f.size,a.push(f)}return a}var Ei=null;function f4(t){Ei?Ei.ops.push(t):t.ownsGroup=Ei={ops:[t],delayedCallbacks:[]}}function p4(t){var r=t.delayedCallbacks,s=0;do{for(;s<r.length;s++)r[s].call(null);for(var a=0;a<t.ops.length;a++){var c=t.ops[a];if(c.cursorActivityHandlers)for(;c.cursorActivityCalled<c.cursorActivityHandlers.length;)c.cursorActivityHandlers[c.cursorActivityCalled++].call(null,c.cm)}}while(s<r.length)}function g4(t,r){var s=t.ownsGroup;if(s)try{p4(s)}finally{Ei=null,r(s)}}var Ao=null;function yt(t,r){var s=Li(t,r);if(s.length){var a=Array.prototype.slice.call(arguments,2),c;Ei?c=Ei.delayedCallbacks:Ao?c=Ao:(c=Ao=[],setTimeout(v4,0));for(var h=function(p){c.push(function(){return s[p].apply(null,a)})},f=0;f<s.length;++f)h(f)}}function v4(){var t=Ao;Ao=null;for(var r=0;r<t.length;++r)t[r]()}function Q0(t,r,s,a){for(var c=0;c<r.changes.length;c++){var h=r.changes[c];h=="text"?m4(t,r):h=="gutter"?tu(t,r,s,a):h=="class"?n1(t,r):h=="widget"&&y4(t,r,a)}r.changes=null}function Po(t){return t.node==t.text&&(t.node=x("div",null,null,"position: relative"),t.text.parentNode&&t.text.parentNode.replaceChild(t.node,t.text),t.node.appendChild(t.text),m&&y<8&&(t.node.style.zIndex=2)),t.node}function b4(t,r){var s=r.bgClass?r.bgClass+" "+(r.line.bgClass||""):r.line.bgClass;if(s&&(s+=" CodeMirror-linebackground"),r.background)s?r.background.className=s:(r.background.parentNode.removeChild(r.background),r.background=null);else if(s){var a=Po(r);r.background=a.insertBefore(x("div",null,s),a.firstChild),t.display.input.setUneditable(r.background)}}function eu(t,r){var s=t.display.externalMeasured;return s&&s.line==r.line?(t.display.externalMeasured=null,r.measure=s.measure,s.built):Y0(t,r)}function m4(t,r){var s=r.text.className,a=eu(t,r);r.text==r.node&&(r.node=a.pre),r.text.parentNode.replaceChild(a.pre,r.text),r.text=a.pre,a.bgClass!=r.bgClass||a.textClass!=r.textClass?(r.bgClass=a.bgClass,r.textClass=a.textClass,n1(t,r)):s&&(r.text.className=s)}function n1(t,r){b4(t,r),r.line.wrapClass?Po(r).className=r.line.wrapClass:r.node!=r.text&&(r.node.className="");var s=r.textClass?r.textClass+" "+(r.line.textClass||""):r.line.textClass;r.text.className=s||""}function tu(t,r,s,a){if(r.gutter&&(r.node.removeChild(r.gutter),r.gutter=null),r.gutterBackground&&(r.node.removeChild(r.gutterBackground),r.gutterBackground=null),r.line.gutterClass){var c=Po(r);r.gutterBackground=x("div",null,"CodeMirror-gutter-background "+r.line.gutterClass,"left: "+(t.options.fixedGutter?a.fixedPos:-a.gutterTotalWidth)+"px; width: "+a.gutterTotalWidth+"px"),t.display.input.setUneditable(r.gutterBackground),c.insertBefore(r.gutterBackground,r.text)}var h=r.line.gutterMarkers;if(t.options.lineNumbers||h){var f=Po(r),p=r.gutter=x("div",null,"CodeMirror-gutter-wrapper","left: "+(t.options.fixedGutter?a.fixedPos:-a.gutterTotalWidth)+"px");if(p.setAttribute("aria-hidden","true"),t.display.input.setUneditable(p),f.insertBefore(p,r.text),r.line.gutterClass&&(p.className+=" "+r.line.gutterClass),t.options.lineNumbers&&(!h||!h["CodeMirror-linenumbers"])&&(r.lineNumber=p.appendChild(x("div",Eo(t.options,s),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+a.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+t.display.lineNumInnerWidth+"px"))),h)for(var g=0;g<t.display.gutterSpecs.length;++g){var b=t.display.gutterSpecs[g].className,w=h.hasOwnProperty(b)&&h[b];w&&p.appendChild(x("div",[w],"CodeMirror-gutter-elt","left: "+a.gutterLeft[b]+"px; width: "+a.gutterWidth[b]+"px"))}}}function y4(t,r,s){r.alignable&&(r.alignable=null);for(var a=de("CodeMirror-linewidget"),c=r.node.firstChild,h=void 0;c;c=h)h=c.nextSibling,a.test(c.className)&&r.node.removeChild(c);ru(t,r,s)}function C4(t,r,s,a){var c=eu(t,r);return r.text=r.node=c.pre,c.bgClass&&(r.bgClass=c.bgClass),c.textClass&&(r.textClass=c.textClass),n1(t,r),tu(t,r,s,a),ru(t,r,a),r.node}function ru(t,r,s){if(nu(t,r.line,r,s,!0),r.rest)for(var a=0;a<r.rest.length;a++)nu(t,r.rest[a],r,s,!1)}function nu(t,r,s,a,c){if(r.widgets)for(var h=Po(s),f=0,p=r.widgets;f<p.length;++f){var g=p[f],b=x("div",[g.node],"CodeMirror-linewidget"+(g.className?" "+g.className:""));g.handleMouseEvents||b.setAttribute("cm-ignore-events","true"),w4(g,b,s,a),t.display.input.setUneditable(b),c&&g.above?h.insertBefore(b,s.gutter||s.text):h.appendChild(b),yt(g,"redraw")}}function w4(t,r,s,a){if(t.noHScroll){(s.alignable||(s.alignable=[])).push(r);var c=a.wrapperWidth;r.style.left=a.fixedPos+"px",t.coverGutter||(c-=a.gutterTotalWidth,r.style.paddingLeft=a.gutterTotalWidth+"px"),r.style.width=c+"px"}t.coverGutter&&(r.style.zIndex=5,r.style.position="relative",t.noHScroll||(r.style.marginLeft=-a.gutterTotalWidth+"px"))}function Do(t){if(t.height!=null)return t.height;var r=t.doc.cm;if(!r)return 0;if(!X(document.body,t.node)){var s="position: relative;";t.coverGutter&&(s+="margin-left: -"+r.display.gutters.offsetWidth+"px;"),t.noHScroll&&(s+="width: "+r.display.wrapper.clientWidth+"px;"),k(r.display.measure,x("div",[t.node],null,s))}return t.height=t.node.parentNode.offsetHeight}function tn(t,r){for(var s=mn(r);s!=t.wrapper;s=s.parentNode)if(!s||s.nodeType==1&&s.getAttribute("cm-ignore-events")=="true"||s.parentNode==t.sizer&&s!=t.mover)return!0}function rs(t){return t.lineSpace.offsetTop}function i1(t){return t.mover.offsetHeight-t.lineSpace.offsetHeight}function iu(t){if(t.cachedPaddingH)return t.cachedPaddingH;var r=k(t.measure,x("pre","x","CodeMirror-line-like")),s=window.getComputedStyle?window.getComputedStyle(r):r.currentStyle,a={left:parseInt(s.paddingLeft),right:parseInt(s.paddingRight)};return!isNaN(a.left)&&!isNaN(a.right)&&(t.cachedPaddingH=a),a}function Br(t){return we-t.display.nativeBarWidth}function Un(t){return t.display.scroller.clientWidth-Br(t)-t.display.barWidth}function o1(t){return t.display.scroller.clientHeight-Br(t)-t.display.barHeight}function x4(t,r,s){var a=t.options.lineWrapping,c=a&&Un(t);if(!r.measure.heights||a&&r.measure.width!=c){var h=r.measure.heights=[];if(a){r.measure.width=c;for(var f=r.text.firstChild.getClientRects(),p=0;p<f.length-1;p++){var g=f[p],b=f[p+1];Math.abs(g.bottom-b.bottom)>2&&h.push((g.bottom+b.top)/2-s.top)}}h.push(s.bottom-s.top)}}function ou(t,r,s){if(t.line==r)return{map:t.measure.map,cache:t.measure.cache};for(var a=0;a<t.rest.length;a++)if(t.rest[a]==r)return{map:t.measure.maps[a],cache:t.measure.caches[a]};for(var c=0;c<t.rest.length;c++)if(Re(t.rest[c])>s)return{map:t.measure.maps[c],cache:t.measure.caches[c],before:!0}}function z4(t,r){r=Fr(r);var s=Re(r),a=t.display.externalMeasured=new J0(t.doc,r,s);a.lineN=s;var c=a.built=Y0(t,a);return a.text=c.pre,k(t.display.lineMeasure,c.pre),a}function au(t,r,s,a){return Vr(t,_i(t,r),s,a)}function a1(t,r){if(r>=t.display.viewFrom&&r<t.display.viewTo)return t.display.view[qn(t,r)];var s=t.display.externalMeasured;if(s&&r>=s.lineN&&r<s.lineN+s.size)return s}function _i(t,r){var s=Re(r),a=a1(t,s);a&&!a.text?a=null:a&&a.changes&&(Q0(t,a,s,d1(t)),t.curOp.forceUpdate=!0),a||(a=z4(t,r));var c=ou(a,r,s);return{line:r,view:a,rect:null,map:c.map,cache:c.cache,before:c.before,hasHeights:!1}}function Vr(t,r,s,a,c){r.before&&(s=-1);var h=s+(a||""),f;return r.cache.hasOwnProperty(h)?f=r.cache[h]:(r.rect||(r.rect=r.view.text.getBoundingClientRect()),r.hasHeights||(x4(t,r.view,r.rect),r.hasHeights=!0),f=S4(t,r,s,a),f.bogus||(r.cache[h]=f)),{left:f.left,right:f.right,top:c?f.rtop:f.top,bottom:c?f.rbottom:f.bottom}}var su={left:0,right:0,top:0,bottom:0};function lu(t,r,s){for(var a,c,h,f,p,g,b=0;b<t.length;b+=3)if(p=t[b],g=t[b+1],r<p?(c=0,h=1,f="left"):r<g?(c=r-p,h=c+1):(b==t.length-3||r==g&&t[b+3]>r)&&(h=g-p,c=h-1,r>=g&&(f="right")),c!=null){if(a=t[b+2],p==g&&s==(a.insertLeft?"left":"right")&&(f=s),s=="left"&&c==0)for(;b&&t[b-2]==t[b-3]&&t[b-1].insertLeft;)a=t[(b-=3)+2],f="left";if(s=="right"&&c==g-p)for(;b<t.length-3&&t[b+3]==t[b+4]&&!t[b+5].insertLeft;)a=t[(b+=3)+2],f="right";break}return{node:a,start:c,end:h,collapse:f,coverStart:p,coverEnd:g}}function L4(t,r){var s=su;if(r=="left")for(var a=0;a<t.length&&(s=t[a]).left==s.right;a++);else for(var c=t.length-1;c>=0&&(s=t[c]).left==s.right;c--);return s}function S4(t,r,s,a){var c=lu(r.map,s,a),h=c.node,f=c.start,p=c.end,g=c.collapse,b;if(h.nodeType==3){for(var w=0;w<4;w++){for(;f&&_e(r.line.text.charAt(c.coverStart+f));)--f;for(;c.coverStart+p<c.coverEnd&&_e(r.line.text.charAt(c.coverStart+p));)++p;if(m&&y<9&&f==0&&p==c.coverEnd-c.coverStart?b=h.parentNode.getBoundingClientRect():b=L4(B(h,f,p).getClientRects(),a),b.left||b.right||f==0)break;p=f,f=f-1,g="right"}m&&y<11&&(b=M4(t.display.measure,b))}else{f>0&&(g=a="right");var L;t.options.lineWrapping&&(L=h.getClientRects()).length>1?b=L[a=="right"?L.length-1:0]:b=h.getBoundingClientRect()}if(m&&y<9&&!f&&(!b||!b.left&&!b.right)){var I=h.parentNode.getClientRects()[0];I?b={left:I.left,right:I.left+Ai(t.display),top:I.top,bottom:I.bottom}:b=su}for(var _=b.top-r.rect.top,H=b.bottom-r.rect.top,W=(_+H)/2,K=r.view.measure.heights,J=0;J<K.length-1&&!(W<K[J]);J++);var ae=J?K[J-1]:0,Q=K[J],ce={left:(g=="right"?b.right:b.left)-r.rect.left,right:(g=="left"?b.left:b.right)-r.rect.left,top:ae,bottom:Q};return!b.left&&!b.right&&(ce.bogus=!0),t.options.singleCursorHeightPerLine||(ce.rtop=_,ce.rbottom=H),ce}function M4(t,r){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!yn(t))return r;var s=screen.logicalXDPI/screen.deviceXDPI,a=screen.logicalYDPI/screen.deviceYDPI;return{left:r.left*s,right:r.right*s,top:r.top*a,bottom:r.bottom*a}}function cu(t){if(t.measure&&(t.measure.cache={},t.measure.heights=null,t.rest))for(var r=0;r<t.rest.length;r++)t.measure.caches[r]={}}function uu(t){t.display.externalMeasure=null,Z(t.display.lineMeasure);for(var r=0;r<t.display.view.length;r++)cu(t.display.view[r])}function No(t){uu(t),t.display.cachedCharWidth=t.display.cachedTextHeight=t.display.cachedPaddingH=null,t.options.lineWrapping||(t.display.maxLineChanged=!0),t.display.lineNumChars=null}function du(){return $&&se?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function hu(){return $&&se?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function s1(t){var r=0;if(t.widgets)for(var s=0;s<t.widgets.length;++s)t.widgets[s].above&&(r+=Do(t.widgets[s]));return r}function ns(t,r,s,a,c){if(!c){var h=s1(r);s.top+=h,s.bottom+=h}if(a=="line")return s;a||(a="local");var f=en(r);if(a=="local"?f+=rs(t.display):f-=t.display.viewOffset,a=="page"||a=="window"){var p=t.display.lineSpace.getBoundingClientRect();f+=p.top+(a=="window"?0:hu());var g=p.left+(a=="window"?0:du());s.left+=g,s.right+=g}return s.top+=f,s.bottom+=f,s}function fu(t,r,s){if(s=="div")return r;var a=r.left,c=r.top;if(s=="page")a-=du(),c-=hu();else if(s=="local"||!s){var h=t.display.sizer.getBoundingClientRect();a+=h.left,c+=h.top}var f=t.display.lineSpace.getBoundingClientRect();return{left:a-f.left,top:c-f.top}}function is(t,r,s,a,c){return a||(a=he(t.doc,r.line)),ns(t,a,au(t,a,r.ch,c),s)}function Cr(t,r,s,a,c,h){a=a||he(t.doc,r.line),c||(c=_i(t,a));function f(H,W){var K=Vr(t,c,H,W?"right":"left",h);return W?K.left=K.right:K.right=K.left,ns(t,a,K,s)}var p=jt(a,t.doc.direction),g=r.ch,b=r.sticky;if(g>=a.text.length?(g=a.text.length,b="before"):g<=0&&(g=0,b="after"),!p)return f(b=="before"?g-1:g,b=="before");function w(H,W,K){var J=p[W],ae=J.level==1;return f(K?H-1:H,ae!=K)}var L=nt(p,g,b),I=tr,_=w(g,L,b=="before");return I!=null&&(_.other=w(g,I,b!="before")),_}function pu(t,r){var s=0;r=oe(t.doc,r),t.options.lineWrapping||(s=Ai(t.display)*r.ch);var a=he(t.doc,r.line),c=en(a)+rs(t.display);return{left:s,right:s,top:c,bottom:c+a.height}}function l1(t,r,s,a,c){var h=U(t,r,s);return h.xRel=c,a&&(h.outside=a),h}function c1(t,r,s){var a=t.doc;if(s+=t.display.viewOffset,s<0)return l1(a.first,0,null,-1,-1);var c=Hr(a,s),h=a.first+a.size-1;if(c>h)return l1(a.first+a.size-1,he(a,h).text.length,null,1,1);r<0&&(r=0);for(var f=he(a,c);;){var p=T4(t,f,c,r,s),g=t4(f,p.ch+(p.xRel>0||p.outside>0?1:0));if(!g)return p;var b=g.find(1);if(b.line==c)return b;f=he(a,c=b.line)}}function gu(t,r,s,a){a-=s1(r);var c=r.text.length,h=Ar(function(f){return Vr(t,s,f-1).bottom<=a},c,0);return c=Ar(function(f){return Vr(t,s,f).top>a},h,c),{begin:h,end:c}}function vu(t,r,s,a){s||(s=_i(t,r));var c=ns(t,r,Vr(t,s,a),"line").top;return gu(t,r,s,c)}function u1(t,r,s,a){return t.bottom<=s?!1:t.top>s?!0:(a?t.left:t.right)>r}function T4(t,r,s,a,c){c-=en(r);var h=_i(t,r),f=s1(r),p=0,g=r.text.length,b=!0,w=jt(r,t.doc.direction);if(w){var L=(t.options.lineWrapping?$4:k4)(t,r,s,h,w,a,c);b=L.level!=1,p=b?L.from:L.to-1,g=b?L.to:L.from-1}var I=null,_=null,H=Ar(function(ye){var ve=Vr(t,h,ye);return ve.top+=f,ve.bottom+=f,u1(ve,a,c,!1)?(ve.top<=c&&ve.left<=a&&(I=ye,_=ve),!0):!1},p,g),W,K,J=!1;if(_){var ae=a-_.left<_.right-a,Q=ae==b;H=I+(Q?0:1),K=Q?"after":"before",W=ae?_.left:_.right}else{!b&&(H==g||H==p)&&H++,K=H==0?"after":H==r.text.length?"before":Vr(t,h,H-(b?1:0)).bottom+f<=c==b?"after":"before";var ce=Cr(t,U(s,H,K),"line",r,h);W=ce.left,J=c<ce.top?-1:c>=ce.bottom?1:0}return H=It(r.text,H,1),l1(s,H,K,J,a-W)}function k4(t,r,s,a,c,h,f){var p=Ar(function(L){var I=c[L],_=I.level!=1;return u1(Cr(t,U(s,_?I.to:I.from,_?"before":"after"),"line",r,a),h,f,!0)},0,c.length-1),g=c[p];if(p>0){var b=g.level!=1,w=Cr(t,U(s,b?g.from:g.to,b?"after":"before"),"line",r,a);u1(w,h,f,!0)&&w.top>f&&(g=c[p-1])}return g}function $4(t,r,s,a,c,h,f){var p=gu(t,r,a,f),g=p.begin,b=p.end;/\s/.test(r.text.charAt(b-1))&&b--;for(var w=null,L=null,I=0;I<c.length;I++){var _=c[I];if(!(_.from>=b||_.to<=g)){var H=_.level!=1,W=Vr(t,a,H?Math.min(b,_.to)-1:Math.max(g,_.from)).right,K=W<h?h-W+1e9:W-h;(!w||L>K)&&(w=_,L=K)}}return w||(w=c[c.length-1]),w.from<g&&(w={from:g,to:w.to,level:w.level}),w.to>b&&(w={from:w.from,to:b,level:w.level}),w}var jn;function Ii(t){if(t.cachedTextHeight!=null)return t.cachedTextHeight;if(jn==null){jn=x("pre",null,"CodeMirror-line-like");for(var r=0;r<49;++r)jn.appendChild(document.createTextNode("x")),jn.appendChild(x("br"));jn.appendChild(document.createTextNode("x"))}k(t.measure,jn);var s=jn.offsetHeight/50;return s>3&&(t.cachedTextHeight=s),Z(t.measure),s||1}function Ai(t){if(t.cachedCharWidth!=null)return t.cachedCharWidth;var r=x("span","xxxxxxxxxx"),s=x("pre",[r],"CodeMirror-line-like");k(t.measure,s);var a=r.getBoundingClientRect(),c=(a.right-a.left)/10;return c>2&&(t.cachedCharWidth=c),c||10}function d1(t){for(var r=t.display,s={},a={},c=r.gutters.clientLeft,h=r.gutters.firstChild,f=0;h;h=h.nextSibling,++f){var p=t.display.gutterSpecs[f].className;s[p]=h.offsetLeft+h.clientLeft+c,a[p]=h.clientWidth}return{fixedPos:h1(r),gutterTotalWidth:r.gutters.offsetWidth,gutterLeft:s,gutterWidth:a,wrapperWidth:r.wrapper.clientWidth}}function h1(t){return t.scroller.getBoundingClientRect().left-t.sizer.getBoundingClientRect().left}function bu(t){var r=Ii(t.display),s=t.options.lineWrapping,a=s&&Math.max(5,t.display.scroller.clientWidth/Ai(t.display)-3);return function(c){if(Cn(t.doc,c))return 0;var h=0;if(c.widgets)for(var f=0;f<c.widgets.length;f++)c.widgets[f].height&&(h+=c.widgets[f].height);return s?h+(Math.ceil(c.text.length/a)||1)*r:h+r}}function f1(t){var r=t.doc,s=bu(t);r.iter(function(a){var c=s(a);c!=a.height&&Gt(a,c)})}function Gn(t,r,s,a){var c=t.display;if(!s&&mn(r).getAttribute("cm-not-content")=="true")return null;var h,f,p=c.lineSpace.getBoundingClientRect();try{h=r.clientX-p.left,f=r.clientY-p.top}catch{return null}var g=c1(t,h,f),b;if(a&&g.xRel>0&&(b=he(t.doc,g.line).text).length==g.ch){var w=Je(b,b.length,t.options.tabSize)-b.length;g=U(g.line,Math.max(0,Math.round((h-iu(t.display).left)/Ai(t.display))-w))}return g}function qn(t,r){if(r>=t.display.viewTo||(r-=t.display.viewFrom,r<0))return null;for(var s=t.display.view,a=0;a<s.length;a++)if(r-=s[a].size,r<0)return a}function Rt(t,r,s,a){r==null&&(r=t.doc.first),s==null&&(s=t.doc.first+t.doc.size),a||(a=0);var c=t.display;if(a&&s<c.viewTo&&(c.updateLineNumbers==null||c.updateLineNumbers>r)&&(c.updateLineNumbers=r),t.curOp.viewChanged=!0,r>=c.viewTo)Qr&&e1(t.doc,r)<c.viewTo&&xn(t);else if(s<=c.viewFrom)Qr&&q0(t.doc,s+a)>c.viewFrom?xn(t):(c.viewFrom+=a,c.viewTo+=a);else if(r<=c.viewFrom&&s>=c.viewTo)xn(t);else if(r<=c.viewFrom){var h=os(t,s,s+a,1);h?(c.view=c.view.slice(h.index),c.viewFrom=h.lineN,c.viewTo+=a):xn(t)}else if(s>=c.viewTo){var f=os(t,r,r,-1);f?(c.view=c.view.slice(0,f.index),c.viewTo=f.lineN):xn(t)}else{var p=os(t,r,r,-1),g=os(t,s,s+a,1);p&&g?(c.view=c.view.slice(0,p.index).concat(ts(t,p.lineN,g.lineN)).concat(c.view.slice(g.index)),c.viewTo+=a):xn(t)}var b=c.externalMeasured;b&&(s<b.lineN?b.lineN+=a:r<b.lineN+b.size&&(c.externalMeasured=null))}function wn(t,r,s){t.curOp.viewChanged=!0;var a=t.display,c=t.display.externalMeasured;if(c&&r>=c.lineN&&r<c.lineN+c.size&&(a.externalMeasured=null),!(r<a.viewFrom||r>=a.viewTo)){var h=a.view[qn(t,r)];if(h.node!=null){var f=h.changes||(h.changes=[]);fe(f,s)==-1&&f.push(s)}}}function xn(t){t.display.viewFrom=t.display.viewTo=t.doc.first,t.display.view=[],t.display.viewOffset=0}function os(t,r,s,a){var c=qn(t,r),h,f=t.display.view;if(!Qr||s==t.doc.first+t.doc.size)return{index:c,lineN:s};for(var p=t.display.viewFrom,g=0;g<c;g++)p+=f[g].size;if(p!=r){if(a>0){if(c==f.length-1)return null;h=p+f[c].size-r,c++}else h=p-r;r+=h,s+=h}for(;e1(t.doc,s)!=s;){if(c==(a<0?0:f.length-1))return null;s+=a*f[c-(a<0?1:0)].size,c+=a}return{index:c,lineN:s}}function O4(t,r,s){var a=t.display,c=a.view;c.length==0||r>=a.viewTo||s<=a.viewFrom?(a.view=ts(t,r,s),a.viewFrom=r):(a.viewFrom>r?a.view=ts(t,r,a.viewFrom).concat(a.view):a.viewFrom<r&&(a.view=a.view.slice(qn(t,r))),a.viewFrom=r,a.viewTo<s?a.view=a.view.concat(ts(t,a.viewTo,s)):a.viewTo>s&&(a.view=a.view.slice(0,qn(t,s)))),a.viewTo=s}function mu(t){for(var r=t.display.view,s=0,a=0;a<r.length;a++){var c=r[a];!c.hidden&&(!c.node||c.changes)&&++s}return s}function Ho(t){t.display.input.showSelection(t.display.input.prepareSelection())}function yu(t,r){r===void 0&&(r=!0);for(var s=t.doc,a={},c=a.cursors=document.createDocumentFragment(),h=a.selection=document.createDocumentFragment(),f=0;f<s.sel.ranges.length;f++)if(!(!r&&f==s.sel.primIndex)){var p=s.sel.ranges[f];if(!(p.from().line>=t.display.viewTo||p.to().line<t.display.viewFrom)){var g=p.empty();(g||t.options.showCursorWhenSelecting)&&Cu(t,p.head,c),g||E4(t,p,h)}}return a}function Cu(t,r,s){var a=Cr(t,r,"div",null,null,!t.options.singleCursorHeightPerLine),c=s.appendChild(x("div"," ","CodeMirror-cursor"));if(c.style.left=a.left+"px",c.style.top=a.top+"px",c.style.height=Math.max(0,a.bottom-a.top)*t.options.cursorHeight+"px",/\bcm-fat-cursor\b/.test(t.getWrapperElement().className)){var h=is(t,r,"div",null,null);c.style.width=Math.max(0,h.right-h.left)+"px"}if(a.other){var f=s.appendChild(x("div"," ","CodeMirror-cursor CodeMirror-secondarycursor"));f.style.display="",f.style.left=a.other.left+"px",f.style.top=a.other.top+"px",f.style.height=(a.other.bottom-a.other.top)*.85+"px"}}function as(t,r){return t.top-r.top||t.left-r.left}function E4(t,r,s){var a=t.display,c=t.doc,h=document.createDocumentFragment(),f=iu(t.display),p=f.left,g=Math.max(a.sizerWidth,Un(t)-a.sizer.offsetLeft)-f.right,b=c.direction=="ltr";function w(Q,ce,ye,ve){ce<0&&(ce=0),ce=Math.round(ce),ve=Math.round(ve),h.appendChild(x("div",null,"CodeMirror-selected","position: absolute; left: "+Q+`px;
2977
+ `,r);c==-1&&(c=t.length);var h=t.slice(r,t.charAt(c-1)=="\r"?c-1:c),f=h.indexOf("\r");f!=-1?(s.push(h.slice(0,f)),r+=f+1):(s.push(h),r=c+1)}return s}:function(t){return t.split(/\r\n?|\n/)},Ga=window.getSelection?function(t){try{return t.selectionStart!=t.selectionEnd}catch{return!1}}:function(t){var r;try{r=t.ownerDocument.selection.createRange()}catch{}return!r||r.parentElement()!=t?!1:r.compareEndPoints("StartToEnd",r)!=0},qa=function(){var t=x("div");return"oncopy"in t?!0:(t.setAttribute("oncopy","return;"),typeof t.oncopy=="function")}(),To=null;function yn(t){if(To!=null)return To;var r=k(t,x("span","x")),s=r.getBoundingClientRect(),a=B(r,0,1).getBoundingClientRect();return To=Math.abs(s.left-a.left)>1}var dr={},nr={};function Ka(t,r){arguments.length>2&&(r.dependencies=Array.prototype.slice.call(arguments,2)),dr[t]=r}function Jr(t,r){nr[t]=r}function Ti(t){if(typeof t=="string"&&nr.hasOwnProperty(t))t=nr[t];else if(t&&typeof t.name=="string"&&nr.hasOwnProperty(t.name)){var r=nr[t.name];typeof r=="string"&&(r={name:r}),t=ur(r,t),t.name=r.name}else{if(typeof t=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(t))return Ti("application/xml");if(typeof t=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(t))return Ti("application/json")}return typeof t=="string"?{name:t}:t||{name:"null"}}function ki(t,r){r=Ti(r);var s=dr[r.name];if(!s)return ki(t,"text/plain");var a=s(t,r);if(mr.hasOwnProperty(r.name)){var c=mr[r.name];for(var h in c)c.hasOwnProperty(h)&&(a.hasOwnProperty(h)&&(a["_"+h]=a[h]),a[h]=c[h])}if(a.name=r.name,r.helperType&&(a.helperType=r.helperType),r.modeProps)for(var f in r.modeProps)a[f]=r.modeProps[f];return a}var mr={};function yr(t,r){var s=mr.hasOwnProperty(t)?mr[t]:mr[t]={};Xe(r,s)}function ir(t,r){if(r===!0)return r;if(t.copyState)return t.copyState(r);var s={};for(var a in r){var c=r[a];c instanceof Array&&(c=c.concat([])),s[a]=c}return s}function ko(t,r){for(var s;t.innerMode&&(s=t.innerMode(r),!(!s||s.mode==t));)r=s.state,t=s.mode;return s||{mode:t,state:r}}function $o(t,r,s){return t.startState?t.startState(r,s):!0}var it=function(t,r,s){this.pos=this.start=0,this.string=t,this.tabSize=r||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=s};it.prototype.eol=function(){return this.pos>=this.string.length},it.prototype.sol=function(){return this.pos==this.lineStart},it.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},it.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},it.prototype.eat=function(t){var r=this.string.charAt(this.pos),s;if(typeof t=="string"?s=r==t:s=r&&(t.test?t.test(r):t(r)),s)return++this.pos,r},it.prototype.eatWhile=function(t){for(var r=this.pos;this.eat(t););return this.pos>r},it.prototype.eatSpace=function(){for(var t=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>t},it.prototype.skipToEnd=function(){this.pos=this.string.length},it.prototype.skipTo=function(t){var r=this.string.indexOf(t,this.pos);if(r>-1)return this.pos=r,!0},it.prototype.backUp=function(t){this.pos-=t},it.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=Je(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?Je(this.string,this.lineStart,this.tabSize):0)},it.prototype.indentation=function(){return Je(this.string,null,this.tabSize)-(this.lineStart?Je(this.string,this.lineStart,this.tabSize):0)},it.prototype.match=function(t,r,s){if(typeof t=="string"){var a=function(f){return s?f.toLowerCase():f},c=this.string.substr(this.pos,t.length);if(a(c)==a(t))return r!==!1&&(this.pos+=t.length),!0}else{var h=this.string.slice(this.pos).match(t);return h&&h.index>0?null:(h&&r!==!1&&(this.pos+=h[0].length),h)}},it.prototype.current=function(){return this.string.slice(this.start,this.pos)},it.prototype.hideFirstChars=function(t,r){this.lineStart+=t;try{return r()}finally{this.lineStart-=t}},it.prototype.lookAhead=function(t){var r=this.lineOracle;return r&&r.lookAhead(t)},it.prototype.baseToken=function(){var t=this.lineOracle;return t&&t.baseToken(this.pos)};function he(t,r){if(r-=t.first,r<0||r>=t.size)throw new Error("There is no line "+(r+t.first)+" in the document.");for(var s=t;!s.lines;)for(var a=0;;++a){var c=s.children[a],h=c.chunkSize();if(r<h){s=c;break}r-=h}return s.lines[r]}function Nr(t,r,s){var a=[],c=r.line;return t.iter(r.line,s.line+1,function(h){var f=h.text;c==s.line&&(f=f.slice(0,s.ch)),c==r.line&&(f=f.slice(r.ch)),a.push(f),++c}),a}function Oo(t,r,s){var a=[];return t.iter(r,s,function(c){a.push(c.text)}),a}function Gt(t,r){var s=r-t.height;if(s)for(var a=t;a;a=a.parent)a.height+=s}function Re(t){if(t.parent==null)return null;for(var r=t.parent,s=fe(r.lines,t),a=r.parent;a;r=a,a=a.parent)for(var c=0;a.children[c]!=r;++c)s+=a.children[c].chunkSize();return s+r.first}function Hr(t,r){var s=t.first;e:do{for(var a=0;a<t.children.length;++a){var c=t.children[a],h=c.height;if(r<h){t=c;continue e}r-=h,s+=c.chunkSize()}return s}while(!t.lines);for(var f=0;f<t.lines.length;++f){var p=t.lines[f],g=p.height;if(r<g)break;r-=g}return s+f}function Wn(t,r){return r>=t.first&&r<t.first+t.size}function Eo(t,r){return String(t.lineNumberFormatter(r+t.firstLineNumber))}function U(t,r,s){if(s===void 0&&(s=null),!(this instanceof U))return new U(t,r,s);this.line=t,this.ch=r,this.sticky=s}function C(t,r){return t.line-r.line||t.ch-r.ch}function M(t,r){return t.sticky==r.sticky&&C(t,r)==0}function V(t){return U(t.line,t.ch)}function q(t,r){return C(t,r)<0?r:t}function Le(t,r){return C(t,r)<0?t:r}function Ae(t,r){return Math.max(t.first,Math.min(r,t.first+t.size-1))}function oe(t,r){if(r.line<t.first)return U(t.first,0);var s=t.first+t.size-1;return r.line>s?U(s,he(t,s).text.length):Ot(r,he(t,r.line).text.length)}function Ot(t,r){var s=t.ch;return s==null||s>r?U(t.line,r):s<0?U(t.line,0):t}function or(t,r){for(var s=[],a=0;a<r.length;a++)s[a]=oe(t,r[a]);return s}var $i=function(t,r){this.state=t,this.lookAhead=r},Rr=function(t,r,s,a){this.state=r,this.doc=t,this.line=s,this.maxLookAhead=a||0,this.baseTokens=null,this.baseTokenPos=1};Rr.prototype.lookAhead=function(t){var r=this.doc.getLine(this.line+t);return r!=null&&t>this.maxLookAhead&&(this.maxLookAhead=t),r},Rr.prototype.baseToken=function(t){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=t;)this.baseTokenPos+=2;var r=this.baseTokens[this.baseTokenPos+1];return{type:r&&r.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-t}},Rr.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Rr.fromSaved=function(t,r,s){return r instanceof $i?new Rr(t,ir(t.mode,r.state),s,r.lookAhead):new Rr(t,ir(t.mode,r),s)},Rr.prototype.save=function(t){var r=t!==!1?ir(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new $i(r,this.maxLookAhead):r};function P0(t,r,s,a){var c=[t.state.modeGen],h={};B0(t,r.text,t.doc.mode,s,function(b,w){return c.push(b,w)},h,a);for(var f=s.state,p=function(b){s.baseTokens=c;var w=t.state.overlays[b],L=1,I=0;s.state=!0,B0(t,r.text,w.mode,s,function(_,H){for(var W=L;I<_;){var K=c[L];K>_&&c.splice(L,1,_,c[L+1],K),L+=2,I=Math.min(_,K)}if(H)if(w.opaque)c.splice(W,L-W,_,"overlay "+H),L=W+2;else for(;W<L;W+=2){var J=c[W+1];c[W+1]=(J?J+" ":"")+"overlay "+H}},h),s.state=f,s.baseTokens=null,s.baseTokenPos=1},g=0;g<t.state.overlays.length;++g)p(g);return{styles:c,classes:h.bgClass||h.textClass?h:null}}function D0(t,r,s){if(!r.styles||r.styles[0]!=t.state.modeGen){var a=_o(t,Re(r)),c=r.text.length>t.options.maxHighlightLength&&ir(t.doc.mode,a.state),h=P0(t,r,a);c&&(a.state=c),r.stateAfter=a.save(!c),r.styles=h.styles,h.classes?r.styleClasses=h.classes:r.styleClasses&&(r.styleClasses=null),s===t.doc.highlightFrontier&&(t.doc.modeFrontier=Math.max(t.doc.modeFrontier,++t.doc.highlightFrontier))}return r.styles}function _o(t,r,s){var a=t.doc,c=t.display;if(!a.mode.startState)return new Rr(a,!0,r);var h=Y6(t,r,s),f=h>a.first&&he(a,h-1).stateAfter,p=f?Rr.fromSaved(a,f,h):new Rr(a,$o(a.mode),h);return a.iter(h,r,function(g){Yl(t,g.text,p);var b=p.line;g.stateAfter=b==r-1||b%5==0||b>=c.viewFrom&&b<c.viewTo?p.save():null,p.nextLine()}),s&&(a.modeFrontier=p.line),p}function Yl(t,r,s,a){var c=t.doc.mode,h=new it(r,t.options.tabSize,s);for(h.start=h.pos=a||0,r==""&&N0(c,s.state);!h.eol();)Xl(c,h,s.state),h.start=h.pos}function N0(t,r){if(t.blankLine)return t.blankLine(r);if(t.innerMode){var s=ko(t,r);if(s.mode.blankLine)return s.mode.blankLine(s.state)}}function Xl(t,r,s,a){for(var c=0;c<10;c++){a&&(a[0]=ko(t,s).mode);var h=t.token(r,s);if(r.pos>r.start)return h}throw new Error("Mode "+t.name+" failed to advance stream.")}var H0=function(t,r,s){this.start=t.start,this.end=t.pos,this.string=t.current(),this.type=r||null,this.state=s};function R0(t,r,s,a){var c=t.doc,h=c.mode,f;r=oe(c,r);var p=he(c,r.line),g=_o(t,r.line,s),b=new it(p.text,t.options.tabSize,g),w;for(a&&(w=[]);(a||b.pos<r.ch)&&!b.eol();)b.start=b.pos,f=Xl(h,b,g.state),a&&w.push(new H0(b,f,ir(c.mode,g.state)));return a?w:new H0(b,f,g.state)}function F0(t,r){if(t)for(;;){var s=t.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!s)break;t=t.slice(0,s.index)+t.slice(s.index+s[0].length);var a=s[1]?"bgClass":"textClass";r[a]==null?r[a]=s[2]:new RegExp("(?:^|\\s)"+s[2]+"(?:$|\\s)").test(r[a])||(r[a]+=" "+s[2])}return t}function B0(t,r,s,a,c,h,f){var p=s.flattenSpans;p==null&&(p=t.options.flattenSpans);var g=0,b=null,w=new it(r,t.options.tabSize,a),L,I=t.options.addModeClass&&[null];for(r==""&&F0(N0(s,a.state),h);!w.eol();){if(w.pos>t.options.maxHighlightLength?(p=!1,f&&Yl(t,r,a,w.pos),w.pos=r.length,L=null):L=F0(Xl(s,w,a.state,I),h),I){var _=I[0].name;_&&(L="m-"+(L?_+" "+L:_))}if(!p||b!=L){for(;g<w.start;)g=Math.min(w.start,g+5e3),c(g,b);b=L}w.start=w.pos}for(;g<w.pos;){var H=Math.min(w.pos,g+5e3);c(H,b),g=H}}function Y6(t,r,s){for(var a,c,h=t.doc,f=s?-1:r-(t.doc.mode.innerMode?1e3:100),p=r;p>f;--p){if(p<=h.first)return h.first;var g=he(h,p-1),b=g.stateAfter;if(b&&(!s||p+(b instanceof $i?b.lookAhead:0)<=h.modeFrontier))return p;var w=Je(g.text,null,t.options.tabSize);(c==null||a>w)&&(c=p-1,a=w)}return c}function X6(t,r){if(t.modeFrontier=Math.min(t.modeFrontier,r),!(t.highlightFrontier<r-10)){for(var s=t.first,a=r-1;a>s;a--){var c=he(t,a).stateAfter;if(c&&(!(c instanceof $i)||a+c.lookAhead<r)){s=a+1;break}}t.highlightFrontier=Math.min(t.highlightFrontier,s)}}var V0=!1,Qr=!1;function J6(){V0=!0}function Q6(){Qr=!0}function Ya(t,r,s){this.marker=t,this.from=r,this.to=s}function Io(t,r){if(t)for(var s=0;s<t.length;++s){var a=t[s];if(a.marker==r)return a}}function e4(t,r){for(var s,a=0;a<t.length;++a)t[a]!=r&&(s||(s=[])).push(t[a]);return s}function t4(t,r,s){var a=s&&window.WeakSet&&(s.markedSpans||(s.markedSpans=new WeakSet));a&&a.has(t.markedSpans)?t.markedSpans.push(r):(t.markedSpans=t.markedSpans?t.markedSpans.concat([r]):[r],a&&a.add(t.markedSpans)),r.marker.attachLine(t)}function r4(t,r,s){var a;if(t)for(var c=0;c<t.length;++c){var h=t[c],f=h.marker,p=h.from==null||(f.inclusiveLeft?h.from<=r:h.from<r);if(p||h.from==r&&f.type=="bookmark"&&(!s||!h.marker.insertLeft)){var g=h.to==null||(f.inclusiveRight?h.to>=r:h.to>r);(a||(a=[])).push(new Ya(f,h.from,g?null:h.to))}}return a}function n4(t,r,s){var a;if(t)for(var c=0;c<t.length;++c){var h=t[c],f=h.marker,p=h.to==null||(f.inclusiveRight?h.to>=r:h.to>r);if(p||h.from==r&&f.type=="bookmark"&&(!s||h.marker.insertLeft)){var g=h.from==null||(f.inclusiveLeft?h.from<=r:h.from<r);(a||(a=[])).push(new Ya(f,g?null:h.from-r,h.to==null?null:h.to-r))}}return a}function Jl(t,r){if(r.full)return null;var s=Wn(t,r.from.line)&&he(t,r.from.line).markedSpans,a=Wn(t,r.to.line)&&he(t,r.to.line).markedSpans;if(!s&&!a)return null;var c=r.from.ch,h=r.to.ch,f=C(r.from,r.to)==0,p=r4(s,c,f),g=n4(a,h,f),b=r.text.length==1,w=Oe(r.text).length+(b?c:0);if(p)for(var L=0;L<p.length;++L){var I=p[L];if(I.to==null){var _=Io(g,I.marker);_?b&&(I.to=_.to==null?null:_.to+w):I.to=c}}if(g)for(var H=0;H<g.length;++H){var W=g[H];if(W.to!=null&&(W.to+=w),W.from==null){var K=Io(p,W.marker);K||(W.from=w,b&&(p||(p=[])).push(W))}else W.from+=w,b&&(p||(p=[])).push(W)}p&&(p=Z0(p)),g&&g!=p&&(g=Z0(g));var J=[p];if(!b){var ae=r.text.length-2,Q;if(ae>0&&p)for(var ce=0;ce<p.length;++ce)p[ce].to==null&&(Q||(Q=[])).push(new Ya(p[ce].marker,null,null));for(var ye=0;ye<ae;++ye)J.push(Q);J.push(g)}return J}function Z0(t){for(var r=0;r<t.length;++r){var s=t[r];s.from!=null&&s.from==s.to&&s.marker.clearWhenEmpty!==!1&&t.splice(r--,1)}return t.length?t:null}function i4(t,r,s){var a=null;if(t.iter(r.line,s.line+1,function(_){if(_.markedSpans)for(var H=0;H<_.markedSpans.length;++H){var W=_.markedSpans[H].marker;W.readOnly&&(!a||fe(a,W)==-1)&&(a||(a=[])).push(W)}}),!a)return null;for(var c=[{from:r,to:s}],h=0;h<a.length;++h)for(var f=a[h],p=f.find(0),g=0;g<c.length;++g){var b=c[g];if(!(C(b.to,p.from)<0||C(b.from,p.to)>0)){var w=[g,1],L=C(b.from,p.from),I=C(b.to,p.to);(L<0||!f.inclusiveLeft&&!L)&&w.push({from:b.from,to:p.from}),(I>0||!f.inclusiveRight&&!I)&&w.push({from:p.to,to:b.to}),c.splice.apply(c,w),g+=w.length-3}}return c}function W0(t){var r=t.markedSpans;if(r){for(var s=0;s<r.length;++s)r[s].marker.detachLine(t);t.markedSpans=null}}function U0(t,r){if(r){for(var s=0;s<r.length;++s)r[s].marker.attachLine(t);t.markedSpans=r}}function Xa(t){return t.inclusiveLeft?-1:0}function Ja(t){return t.inclusiveRight?1:0}function Ql(t,r){var s=t.lines.length-r.lines.length;if(s!=0)return s;var a=t.find(),c=r.find(),h=C(a.from,c.from)||Xa(t)-Xa(r);if(h)return-h;var f=C(a.to,c.to)||Ja(t)-Ja(r);return f||r.id-t.id}function j0(t,r){var s=Qr&&t.markedSpans,a;if(s)for(var c=void 0,h=0;h<s.length;++h)c=s[h],c.marker.collapsed&&(r?c.from:c.to)==null&&(!a||Ql(a,c.marker)<0)&&(a=c.marker);return a}function G0(t){return j0(t,!0)}function Qa(t){return j0(t,!1)}function o4(t,r){var s=Qr&&t.markedSpans,a;if(s)for(var c=0;c<s.length;++c){var h=s[c];h.marker.collapsed&&(h.from==null||h.from<r)&&(h.to==null||h.to>r)&&(!a||Ql(a,h.marker)<0)&&(a=h.marker)}return a}function q0(t,r,s,a,c){var h=he(t,r),f=Qr&&h.markedSpans;if(f)for(var p=0;p<f.length;++p){var g=f[p];if(g.marker.collapsed){var b=g.marker.find(0),w=C(b.from,s)||Xa(g.marker)-Xa(c),L=C(b.to,a)||Ja(g.marker)-Ja(c);if(!(w>=0&&L<=0||w<=0&&L>=0)&&(w<=0&&(g.marker.inclusiveRight&&c.inclusiveLeft?C(b.to,s)>=0:C(b.to,s)>0)||w>=0&&(g.marker.inclusiveRight&&c.inclusiveLeft?C(b.from,a)<=0:C(b.from,a)<0)))return!0}}}function Fr(t){for(var r;r=G0(t);)t=r.find(-1,!0).line;return t}function a4(t){for(var r;r=Qa(t);)t=r.find(1,!0).line;return t}function s4(t){for(var r,s;r=Qa(t);)t=r.find(1,!0).line,(s||(s=[])).push(t);return s}function e1(t,r){var s=he(t,r),a=Fr(s);return s==a?r:Re(a)}function K0(t,r){if(r>t.lastLine())return r;var s=he(t,r),a;if(!Cn(t,s))return r;for(;a=Qa(s);)s=a.find(1,!0).line;return Re(s)+1}function Cn(t,r){var s=Qr&&r.markedSpans;if(s){for(var a=void 0,c=0;c<s.length;++c)if(a=s[c],!!a.marker.collapsed){if(a.from==null)return!0;if(!a.marker.widgetNode&&a.from==0&&a.marker.inclusiveLeft&&t1(t,r,a))return!0}}}function t1(t,r,s){if(s.to==null){var a=s.marker.find(1,!0);return t1(t,a.line,Io(a.line.markedSpans,s.marker))}if(s.marker.inclusiveRight&&s.to==r.text.length)return!0;for(var c=void 0,h=0;h<r.markedSpans.length;++h)if(c=r.markedSpans[h],c.marker.collapsed&&!c.marker.widgetNode&&c.from==s.to&&(c.to==null||c.to!=s.from)&&(c.marker.inclusiveLeft||s.marker.inclusiveRight)&&t1(t,r,c))return!0}function en(t){t=Fr(t);for(var r=0,s=t.parent,a=0;a<s.lines.length;++a){var c=s.lines[a];if(c==t)break;r+=c.height}for(var h=s.parent;h;s=h,h=s.parent)for(var f=0;f<h.children.length;++f){var p=h.children[f];if(p==s)break;r+=p.height}return r}function es(t){if(t.height==0)return 0;for(var r=t.text.length,s,a=t;s=G0(a);){var c=s.find(0,!0);a=c.from.line,r+=c.from.ch-c.to.ch}for(a=t;s=Qa(a);){var h=s.find(0,!0);r-=a.text.length-h.from.ch,a=h.to.line,r+=a.text.length-h.to.ch}return r}function r1(t){var r=t.display,s=t.doc;r.maxLine=he(s,s.first),r.maxLineLength=es(r.maxLine),r.maxLineChanged=!0,s.iter(function(a){var c=es(a);c>r.maxLineLength&&(r.maxLineLength=c,r.maxLine=a)})}var Oi=function(t,r,s){this.text=t,U0(this,r),this.height=s?s(this):1};Oi.prototype.lineNo=function(){return Re(this)},Pr(Oi);function l4(t,r,s,a){t.text=r,t.stateAfter&&(t.stateAfter=null),t.styles&&(t.styles=null),t.order!=null&&(t.order=null),W0(t),U0(t,s);var c=a?a(t):1;c!=t.height&&Gt(t,c)}function c4(t){t.parent=null,W0(t)}var u4={},d4={};function Y0(t,r){if(!t||/^\s*$/.test(t))return null;var s=r.addModeClass?d4:u4;return s[t]||(s[t]=t.replace(/\S+/g,"cm-$&"))}function X0(t,r){var s=z("span",null,null,T?"padding-right: .1px":null),a={pre:z("pre",[s],"CodeMirror-line"),content:s,col:0,pos:0,cm:t,trailingSpace:!1,splitSpaces:t.getOption("lineWrapping")};r.measure={};for(var c=0;c<=(r.rest?r.rest.length:0);c++){var h=c?r.rest[c-1]:r.line,f=void 0;a.pos=0,a.addToken=f4,Dr(t.display.measure)&&(f=jt(h,t.doc.direction))&&(a.addToken=g4(a.addToken,f)),a.map=[];var p=r!=t.display.externalMeasured&&Re(h);v4(h,a,D0(t,h,p)),h.styleClasses&&(h.styleClasses.bgClass&&(a.bgClass=Be(h.styleClasses.bgClass,a.bgClass||"")),h.styleClasses.textClass&&(a.textClass=Be(h.styleClasses.textClass,a.textClass||""))),a.map.length==0&&a.map.push(0,0,a.content.appendChild(ja(t.display.measure))),c==0?(r.measure.map=a.map,r.measure.cache={}):((r.measure.maps||(r.measure.maps=[])).push(a.map),(r.measure.caches||(r.measure.caches=[])).push({}))}if(T){var g=a.content.lastChild;(/\bcm-tab\b/.test(g.className)||g.querySelector&&g.querySelector(".cm-tab"))&&(a.content.className="cm-tab-wrap-hack")}return ze(t,"renderLine",t,r.line,a.pre),a.pre.className&&(a.textClass=Be(a.pre.className,a.textClass||"")),a}function h4(t){var r=x("span","•","cm-invalidchar");return r.title="\\u"+t.charCodeAt(0).toString(16),r.setAttribute("aria-label",r.title),r}function f4(t,r,s,a,c,h,f){if(r){var p=t.splitSpaces?p4(r,t.trailingSpace):r,g=t.cm.state.specialChars,b=!1,w;if(!g.test(r))t.col+=r.length,w=document.createTextNode(p),t.map.push(t.pos,t.pos+r.length,w),m&&y<9&&(b=!0),t.pos+=r.length;else{w=document.createDocumentFragment();for(var L=0;;){g.lastIndex=L;var I=g.exec(r),_=I?I.index-L:r.length-L;if(_){var H=document.createTextNode(p.slice(L,L+_));m&&y<9?w.appendChild(x("span",[H])):w.appendChild(H),t.map.push(t.pos,t.pos+_,H),t.col+=_,t.pos+=_}if(!I)break;L+=_+1;var W=void 0;if(I[0]==" "){var K=t.cm.options.tabSize,J=K-t.col%K;W=w.appendChild(x("span",bn(J),"cm-tab")),W.setAttribute("role","presentation"),W.setAttribute("cm-text"," "),t.col+=J}else I[0]=="\r"||I[0]==`
2978
+ `?(W=w.appendChild(x("span",I[0]=="\r"?"␍":"␤","cm-invalidchar")),W.setAttribute("cm-text",I[0]),t.col+=1):(W=t.cm.options.specialCharPlaceholder(I[0]),W.setAttribute("cm-text",I[0]),m&&y<9?w.appendChild(x("span",[W])):w.appendChild(W),t.col+=1);t.map.push(t.pos,t.pos+1,W),t.pos++}}if(t.trailingSpace=p.charCodeAt(r.length-1)==32,s||a||c||b||h||f){var ae=s||"";a&&(ae+=a),c&&(ae+=c);var Q=x("span",[w],ae,h);if(f)for(var ce in f)f.hasOwnProperty(ce)&&ce!="style"&&ce!="class"&&Q.setAttribute(ce,f[ce]);return t.content.appendChild(Q)}t.content.appendChild(w)}}function p4(t,r){if(t.length>1&&!/ /.test(t))return t;for(var s=r,a="",c=0;c<t.length;c++){var h=t.charAt(c);h==" "&&s&&(c==t.length-1||t.charCodeAt(c+1)==32)&&(h=" "),a+=h,s=h==" "}return a}function g4(t,r){return function(s,a,c,h,f,p,g){c=c?c+" cm-force-border":"cm-force-border";for(var b=s.pos,w=b+a.length;;){for(var L=void 0,I=0;I<r.length&&(L=r[I],!(L.to>b&&L.from<=b));I++);if(L.to>=w)return t(s,a,c,h,f,p,g);t(s,a.slice(0,L.to-b),c,h,null,p,g),h=null,a=a.slice(L.to-b),b=L.to}}}function J0(t,r,s,a){var c=!a&&s.widgetNode;c&&t.map.push(t.pos,t.pos+r,c),!a&&t.cm.display.input.needsContentAttribute&&(c||(c=t.content.appendChild(document.createElement("span"))),c.setAttribute("cm-marker",s.id)),c&&(t.cm.display.input.setUneditable(c),t.content.appendChild(c)),t.pos+=r,t.trailingSpace=!1}function v4(t,r,s){var a=t.markedSpans,c=t.text,h=0;if(!a){for(var f=1;f<s.length;f+=2)r.addToken(r,c.slice(h,h=s[f]),Y0(s[f+1],r.cm.options));return}for(var p=c.length,g=0,b=1,w="",L,I,_=0,H,W,K,J,ae;;){if(_==g){H=W=K=I="",ae=null,J=null,_=1/0;for(var Q=[],ce=void 0,ye=0;ye<a.length;++ye){var ve=a[ye],ke=ve.marker;if(ke.type=="bookmark"&&ve.from==g&&ke.widgetNode)Q.push(ke);else if(ve.from<=g&&(ve.to==null||ve.to>g||ke.collapsed&&ve.to==g&&ve.from==g)){if(ve.to!=null&&ve.to!=g&&_>ve.to&&(_=ve.to,W=""),ke.className&&(H+=" "+ke.className),ke.css&&(I=(I?I+";":"")+ke.css),ke.startStyle&&ve.from==g&&(K+=" "+ke.startStyle),ke.endStyle&&ve.to==_&&(ce||(ce=[])).push(ke.endStyle,ve.to),ke.title&&((ae||(ae={})).title=ke.title),ke.attributes)for(var Ye in ke.attributes)(ae||(ae={}))[Ye]=ke.attributes[Ye];ke.collapsed&&(!J||Ql(J.marker,ke)<0)&&(J=ve)}else ve.from>g&&_>ve.from&&(_=ve.from)}if(ce)for(var xt=0;xt<ce.length;xt+=2)ce[xt+1]==_&&(W+=" "+ce[xt]);if(!J||J.from==g)for(var rt=0;rt<Q.length;++rt)J0(r,0,Q[rt]);if(J&&(J.from||0)==g){if(J0(r,(J.to==null?p+1:J.to)-g,J.marker,J.from==null),J.to==null)return;J.to==g&&(J=!1)}}if(g>=p)break;for(var Kt=Math.min(p,_);;){if(w){var Bt=g+w.length;if(!J){var ut=Bt>Kt?w.slice(0,Kt-g):w;r.addToken(r,ut,L?L+H:H,K,g+ut.length==_?W:"",I,ae)}if(Bt>=Kt){w=w.slice(Kt-g),g=Kt;break}g=Bt,K=""}w=c.slice(h,h=s[b++]),L=Y0(s[b++],r.cm.options)}}}function Q0(t,r,s){this.line=r,this.rest=s4(r),this.size=this.rest?Re(Oe(this.rest))-s+1:1,this.node=this.text=null,this.hidden=Cn(t,r)}function ts(t,r,s){for(var a=[],c,h=r;h<s;h=c){var f=new Q0(t.doc,he(t.doc,h),h);c=h+f.size,a.push(f)}return a}var Ei=null;function b4(t){Ei?Ei.ops.push(t):t.ownsGroup=Ei={ops:[t],delayedCallbacks:[]}}function m4(t){var r=t.delayedCallbacks,s=0;do{for(;s<r.length;s++)r[s].call(null);for(var a=0;a<t.ops.length;a++){var c=t.ops[a];if(c.cursorActivityHandlers)for(;c.cursorActivityCalled<c.cursorActivityHandlers.length;)c.cursorActivityHandlers[c.cursorActivityCalled++].call(null,c.cm)}}while(s<r.length)}function y4(t,r){var s=t.ownsGroup;if(s)try{m4(s)}finally{Ei=null,r(s)}}var Ao=null;function yt(t,r){var s=Li(t,r);if(s.length){var a=Array.prototype.slice.call(arguments,2),c;Ei?c=Ei.delayedCallbacks:Ao?c=Ao:(c=Ao=[],setTimeout(C4,0));for(var h=function(p){c.push(function(){return s[p].apply(null,a)})},f=0;f<s.length;++f)h(f)}}function C4(){var t=Ao;Ao=null;for(var r=0;r<t.length;++r)t[r]()}function eu(t,r,s,a){for(var c=0;c<r.changes.length;c++){var h=r.changes[c];h=="text"?x4(t,r):h=="gutter"?ru(t,r,s,a):h=="class"?n1(t,r):h=="widget"&&z4(t,r,a)}r.changes=null}function Po(t){return t.node==t.text&&(t.node=x("div",null,null,"position: relative"),t.text.parentNode&&t.text.parentNode.replaceChild(t.node,t.text),t.node.appendChild(t.text),m&&y<8&&(t.node.style.zIndex=2)),t.node}function w4(t,r){var s=r.bgClass?r.bgClass+" "+(r.line.bgClass||""):r.line.bgClass;if(s&&(s+=" CodeMirror-linebackground"),r.background)s?r.background.className=s:(r.background.parentNode.removeChild(r.background),r.background=null);else if(s){var a=Po(r);r.background=a.insertBefore(x("div",null,s),a.firstChild),t.display.input.setUneditable(r.background)}}function tu(t,r){var s=t.display.externalMeasured;return s&&s.line==r.line?(t.display.externalMeasured=null,r.measure=s.measure,s.built):X0(t,r)}function x4(t,r){var s=r.text.className,a=tu(t,r);r.text==r.node&&(r.node=a.pre),r.text.parentNode.replaceChild(a.pre,r.text),r.text=a.pre,a.bgClass!=r.bgClass||a.textClass!=r.textClass?(r.bgClass=a.bgClass,r.textClass=a.textClass,n1(t,r)):s&&(r.text.className=s)}function n1(t,r){w4(t,r),r.line.wrapClass?Po(r).className=r.line.wrapClass:r.node!=r.text&&(r.node.className="");var s=r.textClass?r.textClass+" "+(r.line.textClass||""):r.line.textClass;r.text.className=s||""}function ru(t,r,s,a){if(r.gutter&&(r.node.removeChild(r.gutter),r.gutter=null),r.gutterBackground&&(r.node.removeChild(r.gutterBackground),r.gutterBackground=null),r.line.gutterClass){var c=Po(r);r.gutterBackground=x("div",null,"CodeMirror-gutter-background "+r.line.gutterClass,"left: "+(t.options.fixedGutter?a.fixedPos:-a.gutterTotalWidth)+"px; width: "+a.gutterTotalWidth+"px"),t.display.input.setUneditable(r.gutterBackground),c.insertBefore(r.gutterBackground,r.text)}var h=r.line.gutterMarkers;if(t.options.lineNumbers||h){var f=Po(r),p=r.gutter=x("div",null,"CodeMirror-gutter-wrapper","left: "+(t.options.fixedGutter?a.fixedPos:-a.gutterTotalWidth)+"px");if(p.setAttribute("aria-hidden","true"),t.display.input.setUneditable(p),f.insertBefore(p,r.text),r.line.gutterClass&&(p.className+=" "+r.line.gutterClass),t.options.lineNumbers&&(!h||!h["CodeMirror-linenumbers"])&&(r.lineNumber=p.appendChild(x("div",Eo(t.options,s),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+a.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+t.display.lineNumInnerWidth+"px"))),h)for(var g=0;g<t.display.gutterSpecs.length;++g){var b=t.display.gutterSpecs[g].className,w=h.hasOwnProperty(b)&&h[b];w&&p.appendChild(x("div",[w],"CodeMirror-gutter-elt","left: "+a.gutterLeft[b]+"px; width: "+a.gutterWidth[b]+"px"))}}}function z4(t,r,s){r.alignable&&(r.alignable=null);for(var a=de("CodeMirror-linewidget"),c=r.node.firstChild,h=void 0;c;c=h)h=c.nextSibling,a.test(c.className)&&r.node.removeChild(c);nu(t,r,s)}function L4(t,r,s,a){var c=tu(t,r);return r.text=r.node=c.pre,c.bgClass&&(r.bgClass=c.bgClass),c.textClass&&(r.textClass=c.textClass),n1(t,r),ru(t,r,s,a),nu(t,r,a),r.node}function nu(t,r,s){if(iu(t,r.line,r,s,!0),r.rest)for(var a=0;a<r.rest.length;a++)iu(t,r.rest[a],r,s,!1)}function iu(t,r,s,a,c){if(r.widgets)for(var h=Po(s),f=0,p=r.widgets;f<p.length;++f){var g=p[f],b=x("div",[g.node],"CodeMirror-linewidget"+(g.className?" "+g.className:""));g.handleMouseEvents||b.setAttribute("cm-ignore-events","true"),S4(g,b,s,a),t.display.input.setUneditable(b),c&&g.above?h.insertBefore(b,s.gutter||s.text):h.appendChild(b),yt(g,"redraw")}}function S4(t,r,s,a){if(t.noHScroll){(s.alignable||(s.alignable=[])).push(r);var c=a.wrapperWidth;r.style.left=a.fixedPos+"px",t.coverGutter||(c-=a.gutterTotalWidth,r.style.paddingLeft=a.gutterTotalWidth+"px"),r.style.width=c+"px"}t.coverGutter&&(r.style.zIndex=5,r.style.position="relative",t.noHScroll||(r.style.marginLeft=-a.gutterTotalWidth+"px"))}function Do(t){if(t.height!=null)return t.height;var r=t.doc.cm;if(!r)return 0;if(!X(document.body,t.node)){var s="position: relative;";t.coverGutter&&(s+="margin-left: -"+r.display.gutters.offsetWidth+"px;"),t.noHScroll&&(s+="width: "+r.display.wrapper.clientWidth+"px;"),k(r.display.measure,x("div",[t.node],null,s))}return t.height=t.node.parentNode.offsetHeight}function tn(t,r){for(var s=mn(r);s!=t.wrapper;s=s.parentNode)if(!s||s.nodeType==1&&s.getAttribute("cm-ignore-events")=="true"||s.parentNode==t.sizer&&s!=t.mover)return!0}function rs(t){return t.lineSpace.offsetTop}function i1(t){return t.mover.offsetHeight-t.lineSpace.offsetHeight}function ou(t){if(t.cachedPaddingH)return t.cachedPaddingH;var r=k(t.measure,x("pre","x","CodeMirror-line-like")),s=window.getComputedStyle?window.getComputedStyle(r):r.currentStyle,a={left:parseInt(s.paddingLeft),right:parseInt(s.paddingRight)};return!isNaN(a.left)&&!isNaN(a.right)&&(t.cachedPaddingH=a),a}function Br(t){return we-t.display.nativeBarWidth}function Un(t){return t.display.scroller.clientWidth-Br(t)-t.display.barWidth}function o1(t){return t.display.scroller.clientHeight-Br(t)-t.display.barHeight}function M4(t,r,s){var a=t.options.lineWrapping,c=a&&Un(t);if(!r.measure.heights||a&&r.measure.width!=c){var h=r.measure.heights=[];if(a){r.measure.width=c;for(var f=r.text.firstChild.getClientRects(),p=0;p<f.length-1;p++){var g=f[p],b=f[p+1];Math.abs(g.bottom-b.bottom)>2&&h.push((g.bottom+b.top)/2-s.top)}}h.push(s.bottom-s.top)}}function au(t,r,s){if(t.line==r)return{map:t.measure.map,cache:t.measure.cache};for(var a=0;a<t.rest.length;a++)if(t.rest[a]==r)return{map:t.measure.maps[a],cache:t.measure.caches[a]};for(var c=0;c<t.rest.length;c++)if(Re(t.rest[c])>s)return{map:t.measure.maps[c],cache:t.measure.caches[c],before:!0}}function T4(t,r){r=Fr(r);var s=Re(r),a=t.display.externalMeasured=new Q0(t.doc,r,s);a.lineN=s;var c=a.built=X0(t,a);return a.text=c.pre,k(t.display.lineMeasure,c.pre),a}function su(t,r,s,a){return Vr(t,_i(t,r),s,a)}function a1(t,r){if(r>=t.display.viewFrom&&r<t.display.viewTo)return t.display.view[qn(t,r)];var s=t.display.externalMeasured;if(s&&r>=s.lineN&&r<s.lineN+s.size)return s}function _i(t,r){var s=Re(r),a=a1(t,s);a&&!a.text?a=null:a&&a.changes&&(eu(t,a,s,d1(t)),t.curOp.forceUpdate=!0),a||(a=T4(t,r));var c=au(a,r,s);return{line:r,view:a,rect:null,map:c.map,cache:c.cache,before:c.before,hasHeights:!1}}function Vr(t,r,s,a,c){r.before&&(s=-1);var h=s+(a||""),f;return r.cache.hasOwnProperty(h)?f=r.cache[h]:(r.rect||(r.rect=r.view.text.getBoundingClientRect()),r.hasHeights||(M4(t,r.view,r.rect),r.hasHeights=!0),f=$4(t,r,s,a),f.bogus||(r.cache[h]=f)),{left:f.left,right:f.right,top:c?f.rtop:f.top,bottom:c?f.rbottom:f.bottom}}var lu={left:0,right:0,top:0,bottom:0};function cu(t,r,s){for(var a,c,h,f,p,g,b=0;b<t.length;b+=3)if(p=t[b],g=t[b+1],r<p?(c=0,h=1,f="left"):r<g?(c=r-p,h=c+1):(b==t.length-3||r==g&&t[b+3]>r)&&(h=g-p,c=h-1,r>=g&&(f="right")),c!=null){if(a=t[b+2],p==g&&s==(a.insertLeft?"left":"right")&&(f=s),s=="left"&&c==0)for(;b&&t[b-2]==t[b-3]&&t[b-1].insertLeft;)a=t[(b-=3)+2],f="left";if(s=="right"&&c==g-p)for(;b<t.length-3&&t[b+3]==t[b+4]&&!t[b+5].insertLeft;)a=t[(b+=3)+2],f="right";break}return{node:a,start:c,end:h,collapse:f,coverStart:p,coverEnd:g}}function k4(t,r){var s=lu;if(r=="left")for(var a=0;a<t.length&&(s=t[a]).left==s.right;a++);else for(var c=t.length-1;c>=0&&(s=t[c]).left==s.right;c--);return s}function $4(t,r,s,a){var c=cu(r.map,s,a),h=c.node,f=c.start,p=c.end,g=c.collapse,b;if(h.nodeType==3){for(var w=0;w<4;w++){for(;f&&_e(r.line.text.charAt(c.coverStart+f));)--f;for(;c.coverStart+p<c.coverEnd&&_e(r.line.text.charAt(c.coverStart+p));)++p;if(m&&y<9&&f==0&&p==c.coverEnd-c.coverStart?b=h.parentNode.getBoundingClientRect():b=k4(B(h,f,p).getClientRects(),a),b.left||b.right||f==0)break;p=f,f=f-1,g="right"}m&&y<11&&(b=O4(t.display.measure,b))}else{f>0&&(g=a="right");var L;t.options.lineWrapping&&(L=h.getClientRects()).length>1?b=L[a=="right"?L.length-1:0]:b=h.getBoundingClientRect()}if(m&&y<9&&!f&&(!b||!b.left&&!b.right)){var I=h.parentNode.getClientRects()[0];I?b={left:I.left,right:I.left+Ai(t.display),top:I.top,bottom:I.bottom}:b=lu}for(var _=b.top-r.rect.top,H=b.bottom-r.rect.top,W=(_+H)/2,K=r.view.measure.heights,J=0;J<K.length-1&&!(W<K[J]);J++);var ae=J?K[J-1]:0,Q=K[J],ce={left:(g=="right"?b.right:b.left)-r.rect.left,right:(g=="left"?b.left:b.right)-r.rect.left,top:ae,bottom:Q};return!b.left&&!b.right&&(ce.bogus=!0),t.options.singleCursorHeightPerLine||(ce.rtop=_,ce.rbottom=H),ce}function O4(t,r){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!yn(t))return r;var s=screen.logicalXDPI/screen.deviceXDPI,a=screen.logicalYDPI/screen.deviceYDPI;return{left:r.left*s,right:r.right*s,top:r.top*a,bottom:r.bottom*a}}function uu(t){if(t.measure&&(t.measure.cache={},t.measure.heights=null,t.rest))for(var r=0;r<t.rest.length;r++)t.measure.caches[r]={}}function du(t){t.display.externalMeasure=null,Z(t.display.lineMeasure);for(var r=0;r<t.display.view.length;r++)uu(t.display.view[r])}function No(t){du(t),t.display.cachedCharWidth=t.display.cachedTextHeight=t.display.cachedPaddingH=null,t.options.lineWrapping||(t.display.maxLineChanged=!0),t.display.lineNumChars=null}function hu(){return $&&se?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function fu(){return $&&se?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function s1(t){var r=0;if(t.widgets)for(var s=0;s<t.widgets.length;++s)t.widgets[s].above&&(r+=Do(t.widgets[s]));return r}function ns(t,r,s,a,c){if(!c){var h=s1(r);s.top+=h,s.bottom+=h}if(a=="line")return s;a||(a="local");var f=en(r);if(a=="local"?f+=rs(t.display):f-=t.display.viewOffset,a=="page"||a=="window"){var p=t.display.lineSpace.getBoundingClientRect();f+=p.top+(a=="window"?0:fu());var g=p.left+(a=="window"?0:hu());s.left+=g,s.right+=g}return s.top+=f,s.bottom+=f,s}function pu(t,r,s){if(s=="div")return r;var a=r.left,c=r.top;if(s=="page")a-=hu(),c-=fu();else if(s=="local"||!s){var h=t.display.sizer.getBoundingClientRect();a+=h.left,c+=h.top}var f=t.display.lineSpace.getBoundingClientRect();return{left:a-f.left,top:c-f.top}}function is(t,r,s,a,c){return a||(a=he(t.doc,r.line)),ns(t,a,su(t,a,r.ch,c),s)}function Cr(t,r,s,a,c,h){a=a||he(t.doc,r.line),c||(c=_i(t,a));function f(H,W){var K=Vr(t,c,H,W?"right":"left",h);return W?K.left=K.right:K.right=K.left,ns(t,a,K,s)}var p=jt(a,t.doc.direction),g=r.ch,b=r.sticky;if(g>=a.text.length?(g=a.text.length,b="before"):g<=0&&(g=0,b="after"),!p)return f(b=="before"?g-1:g,b=="before");function w(H,W,K){var J=p[W],ae=J.level==1;return f(K?H-1:H,ae!=K)}var L=nt(p,g,b),I=tr,_=w(g,L,b=="before");return I!=null&&(_.other=w(g,I,b!="before")),_}function gu(t,r){var s=0;r=oe(t.doc,r),t.options.lineWrapping||(s=Ai(t.display)*r.ch);var a=he(t.doc,r.line),c=en(a)+rs(t.display);return{left:s,right:s,top:c,bottom:c+a.height}}function l1(t,r,s,a,c){var h=U(t,r,s);return h.xRel=c,a&&(h.outside=a),h}function c1(t,r,s){var a=t.doc;if(s+=t.display.viewOffset,s<0)return l1(a.first,0,null,-1,-1);var c=Hr(a,s),h=a.first+a.size-1;if(c>h)return l1(a.first+a.size-1,he(a,h).text.length,null,1,1);r<0&&(r=0);for(var f=he(a,c);;){var p=E4(t,f,c,r,s),g=o4(f,p.ch+(p.xRel>0||p.outside>0?1:0));if(!g)return p;var b=g.find(1);if(b.line==c)return b;f=he(a,c=b.line)}}function vu(t,r,s,a){a-=s1(r);var c=r.text.length,h=Ar(function(f){return Vr(t,s,f-1).bottom<=a},c,0);return c=Ar(function(f){return Vr(t,s,f).top>a},h,c),{begin:h,end:c}}function bu(t,r,s,a){s||(s=_i(t,r));var c=ns(t,r,Vr(t,s,a),"line").top;return vu(t,r,s,c)}function u1(t,r,s,a){return t.bottom<=s?!1:t.top>s?!0:(a?t.left:t.right)>r}function E4(t,r,s,a,c){c-=en(r);var h=_i(t,r),f=s1(r),p=0,g=r.text.length,b=!0,w=jt(r,t.doc.direction);if(w){var L=(t.options.lineWrapping?I4:_4)(t,r,s,h,w,a,c);b=L.level!=1,p=b?L.from:L.to-1,g=b?L.to:L.from-1}var I=null,_=null,H=Ar(function(ye){var ve=Vr(t,h,ye);return ve.top+=f,ve.bottom+=f,u1(ve,a,c,!1)?(ve.top<=c&&ve.left<=a&&(I=ye,_=ve),!0):!1},p,g),W,K,J=!1;if(_){var ae=a-_.left<_.right-a,Q=ae==b;H=I+(Q?0:1),K=Q?"after":"before",W=ae?_.left:_.right}else{!b&&(H==g||H==p)&&H++,K=H==0?"after":H==r.text.length?"before":Vr(t,h,H-(b?1:0)).bottom+f<=c==b?"after":"before";var ce=Cr(t,U(s,H,K),"line",r,h);W=ce.left,J=c<ce.top?-1:c>=ce.bottom?1:0}return H=It(r.text,H,1),l1(s,H,K,J,a-W)}function _4(t,r,s,a,c,h,f){var p=Ar(function(L){var I=c[L],_=I.level!=1;return u1(Cr(t,U(s,_?I.to:I.from,_?"before":"after"),"line",r,a),h,f,!0)},0,c.length-1),g=c[p];if(p>0){var b=g.level!=1,w=Cr(t,U(s,b?g.from:g.to,b?"after":"before"),"line",r,a);u1(w,h,f,!0)&&w.top>f&&(g=c[p-1])}return g}function I4(t,r,s,a,c,h,f){var p=vu(t,r,a,f),g=p.begin,b=p.end;/\s/.test(r.text.charAt(b-1))&&b--;for(var w=null,L=null,I=0;I<c.length;I++){var _=c[I];if(!(_.from>=b||_.to<=g)){var H=_.level!=1,W=Vr(t,a,H?Math.min(b,_.to)-1:Math.max(g,_.from)).right,K=W<h?h-W+1e9:W-h;(!w||L>K)&&(w=_,L=K)}}return w||(w=c[c.length-1]),w.from<g&&(w={from:g,to:w.to,level:w.level}),w.to>b&&(w={from:w.from,to:b,level:w.level}),w}var jn;function Ii(t){if(t.cachedTextHeight!=null)return t.cachedTextHeight;if(jn==null){jn=x("pre",null,"CodeMirror-line-like");for(var r=0;r<49;++r)jn.appendChild(document.createTextNode("x")),jn.appendChild(x("br"));jn.appendChild(document.createTextNode("x"))}k(t.measure,jn);var s=jn.offsetHeight/50;return s>3&&(t.cachedTextHeight=s),Z(t.measure),s||1}function Ai(t){if(t.cachedCharWidth!=null)return t.cachedCharWidth;var r=x("span","xxxxxxxxxx"),s=x("pre",[r],"CodeMirror-line-like");k(t.measure,s);var a=r.getBoundingClientRect(),c=(a.right-a.left)/10;return c>2&&(t.cachedCharWidth=c),c||10}function d1(t){for(var r=t.display,s={},a={},c=r.gutters.clientLeft,h=r.gutters.firstChild,f=0;h;h=h.nextSibling,++f){var p=t.display.gutterSpecs[f].className;s[p]=h.offsetLeft+h.clientLeft+c,a[p]=h.clientWidth}return{fixedPos:h1(r),gutterTotalWidth:r.gutters.offsetWidth,gutterLeft:s,gutterWidth:a,wrapperWidth:r.wrapper.clientWidth}}function h1(t){return t.scroller.getBoundingClientRect().left-t.sizer.getBoundingClientRect().left}function mu(t){var r=Ii(t.display),s=t.options.lineWrapping,a=s&&Math.max(5,t.display.scroller.clientWidth/Ai(t.display)-3);return function(c){if(Cn(t.doc,c))return 0;var h=0;if(c.widgets)for(var f=0;f<c.widgets.length;f++)c.widgets[f].height&&(h+=c.widgets[f].height);return s?h+(Math.ceil(c.text.length/a)||1)*r:h+r}}function f1(t){var r=t.doc,s=mu(t);r.iter(function(a){var c=s(a);c!=a.height&&Gt(a,c)})}function Gn(t,r,s,a){var c=t.display;if(!s&&mn(r).getAttribute("cm-not-content")=="true")return null;var h,f,p=c.lineSpace.getBoundingClientRect();try{h=r.clientX-p.left,f=r.clientY-p.top}catch{return null}var g=c1(t,h,f),b;if(a&&g.xRel>0&&(b=he(t.doc,g.line).text).length==g.ch){var w=Je(b,b.length,t.options.tabSize)-b.length;g=U(g.line,Math.max(0,Math.round((h-ou(t.display).left)/Ai(t.display))-w))}return g}function qn(t,r){if(r>=t.display.viewTo||(r-=t.display.viewFrom,r<0))return null;for(var s=t.display.view,a=0;a<s.length;a++)if(r-=s[a].size,r<0)return a}function Rt(t,r,s,a){r==null&&(r=t.doc.first),s==null&&(s=t.doc.first+t.doc.size),a||(a=0);var c=t.display;if(a&&s<c.viewTo&&(c.updateLineNumbers==null||c.updateLineNumbers>r)&&(c.updateLineNumbers=r),t.curOp.viewChanged=!0,r>=c.viewTo)Qr&&e1(t.doc,r)<c.viewTo&&xn(t);else if(s<=c.viewFrom)Qr&&K0(t.doc,s+a)>c.viewFrom?xn(t):(c.viewFrom+=a,c.viewTo+=a);else if(r<=c.viewFrom&&s>=c.viewTo)xn(t);else if(r<=c.viewFrom){var h=os(t,s,s+a,1);h?(c.view=c.view.slice(h.index),c.viewFrom=h.lineN,c.viewTo+=a):xn(t)}else if(s>=c.viewTo){var f=os(t,r,r,-1);f?(c.view=c.view.slice(0,f.index),c.viewTo=f.lineN):xn(t)}else{var p=os(t,r,r,-1),g=os(t,s,s+a,1);p&&g?(c.view=c.view.slice(0,p.index).concat(ts(t,p.lineN,g.lineN)).concat(c.view.slice(g.index)),c.viewTo+=a):xn(t)}var b=c.externalMeasured;b&&(s<b.lineN?b.lineN+=a:r<b.lineN+b.size&&(c.externalMeasured=null))}function wn(t,r,s){t.curOp.viewChanged=!0;var a=t.display,c=t.display.externalMeasured;if(c&&r>=c.lineN&&r<c.lineN+c.size&&(a.externalMeasured=null),!(r<a.viewFrom||r>=a.viewTo)){var h=a.view[qn(t,r)];if(h.node!=null){var f=h.changes||(h.changes=[]);fe(f,s)==-1&&f.push(s)}}}function xn(t){t.display.viewFrom=t.display.viewTo=t.doc.first,t.display.view=[],t.display.viewOffset=0}function os(t,r,s,a){var c=qn(t,r),h,f=t.display.view;if(!Qr||s==t.doc.first+t.doc.size)return{index:c,lineN:s};for(var p=t.display.viewFrom,g=0;g<c;g++)p+=f[g].size;if(p!=r){if(a>0){if(c==f.length-1)return null;h=p+f[c].size-r,c++}else h=p-r;r+=h,s+=h}for(;e1(t.doc,s)!=s;){if(c==(a<0?0:f.length-1))return null;s+=a*f[c-(a<0?1:0)].size,c+=a}return{index:c,lineN:s}}function A4(t,r,s){var a=t.display,c=a.view;c.length==0||r>=a.viewTo||s<=a.viewFrom?(a.view=ts(t,r,s),a.viewFrom=r):(a.viewFrom>r?a.view=ts(t,r,a.viewFrom).concat(a.view):a.viewFrom<r&&(a.view=a.view.slice(qn(t,r))),a.viewFrom=r,a.viewTo<s?a.view=a.view.concat(ts(t,a.viewTo,s)):a.viewTo>s&&(a.view=a.view.slice(0,qn(t,s)))),a.viewTo=s}function yu(t){for(var r=t.display.view,s=0,a=0;a<r.length;a++){var c=r[a];!c.hidden&&(!c.node||c.changes)&&++s}return s}function Ho(t){t.display.input.showSelection(t.display.input.prepareSelection())}function Cu(t,r){r===void 0&&(r=!0);for(var s=t.doc,a={},c=a.cursors=document.createDocumentFragment(),h=a.selection=document.createDocumentFragment(),f=0;f<s.sel.ranges.length;f++)if(!(!r&&f==s.sel.primIndex)){var p=s.sel.ranges[f];if(!(p.from().line>=t.display.viewTo||p.to().line<t.display.viewFrom)){var g=p.empty();(g||t.options.showCursorWhenSelecting)&&wu(t,p.head,c),g||P4(t,p,h)}}return a}function wu(t,r,s){var a=Cr(t,r,"div",null,null,!t.options.singleCursorHeightPerLine),c=s.appendChild(x("div"," ","CodeMirror-cursor"));if(c.style.left=a.left+"px",c.style.top=a.top+"px",c.style.height=Math.max(0,a.bottom-a.top)*t.options.cursorHeight+"px",/\bcm-fat-cursor\b/.test(t.getWrapperElement().className)){var h=is(t,r,"div",null,null);c.style.width=Math.max(0,h.right-h.left)+"px"}if(a.other){var f=s.appendChild(x("div"," ","CodeMirror-cursor CodeMirror-secondarycursor"));f.style.display="",f.style.left=a.other.left+"px",f.style.top=a.other.top+"px",f.style.height=(a.other.bottom-a.other.top)*.85+"px"}}function as(t,r){return t.top-r.top||t.left-r.left}function P4(t,r,s){var a=t.display,c=t.doc,h=document.createDocumentFragment(),f=ou(t.display),p=f.left,g=Math.max(a.sizerWidth,Un(t)-a.sizer.offsetLeft)-f.right,b=c.direction=="ltr";function w(Q,ce,ye,ve){ce<0&&(ce=0),ce=Math.round(ce),ve=Math.round(ve),h.appendChild(x("div",null,"CodeMirror-selected","position: absolute; left: "+Q+`px;
2979
2979
  top: `+ce+"px; width: "+(ye==null?g-Q:ye)+`px;
2980
- height: `+(ve-ce)+"px"))}function L(Q,ce,ye){var ve=he(c,Q),ke=ve.text.length,Ye,xt;function rt(ut,Vt){return is(t,U(Q,ut),"div",ve,Vt)}function Kt(ut,Vt,Mt){var ft=vu(t,ve,null,ut),dt=Vt=="ltr"==(Mt=="after")?"left":"right",ot=Mt=="after"?ft.begin:ft.end-(/\s/.test(ve.text.charAt(ft.end-1))?2:1);return rt(ot,dt)[dt]}var Bt=jt(ve,c.direction);return Kl(Bt,ce||0,ye==null?ke:ye,function(ut,Vt,Mt,ft){var dt=Mt=="ltr",ot=rt(ut,dt?"left":"right"),Zt=rt(Vt-1,dt?"right":"left"),Gi=ce==null&&ut==0,kn=ye==null&&Vt==ke,_t=ft==0,Zr=!Bt||ft==Bt.length-1;if(Zt.top-ot.top<=3){var zt=(b?Gi:kn)&&_t,R1=(b?kn:Gi)&&Zr,nn=zt?p:(dt?ot:Zt).left,Qn=R1?g:(dt?Zt:ot).right;w(nn,ot.top,Qn-nn,ot.bottom)}else{var ei,Pt,qi,F1;dt?(ei=b&&Gi&&_t?p:ot.left,Pt=b?g:Kt(ut,Mt,"before"),qi=b?p:Kt(Vt,Mt,"after"),F1=b&&kn&&Zr?g:Zt.right):(ei=b?Kt(ut,Mt,"before"):p,Pt=!b&&Gi&&_t?g:ot.right,qi=!b&&kn&&Zr?p:Zt.left,F1=b?Kt(Vt,Mt,"after"):g),w(ei,ot.top,Pt-ei,ot.bottom),ot.bottom<Zt.top&&w(p,ot.bottom,null,Zt.top),w(qi,Zt.top,F1-qi,Zt.bottom)}(!Ye||as(ot,Ye)<0)&&(Ye=ot),as(Zt,Ye)<0&&(Ye=Zt),(!xt||as(ot,xt)<0)&&(xt=ot),as(Zt,xt)<0&&(xt=Zt)}),{start:Ye,end:xt}}var I=r.from(),_=r.to();if(I.line==_.line)L(I.line,I.ch,_.ch);else{var H=he(c,I.line),W=he(c,_.line),K=Fr(H)==Fr(W),J=L(I.line,I.ch,K?H.text.length+1:null).end,ae=L(_.line,K?0:null,_.ch).start;K&&(J.top<ae.top-2?(w(J.right,J.top,null,J.bottom),w(p,ae.top,ae.left,ae.bottom)):w(J.right,J.top,ae.left-J.right,J.bottom)),J.bottom<ae.top&&w(p,J.bottom,null,ae.top)}s.appendChild(h)}function p1(t){if(t.state.focused){var r=t.display;clearInterval(r.blinker);var s=!0;r.cursorDiv.style.visibility="",t.options.cursorBlinkRate>0?r.blinker=setInterval(function(){t.hasFocus()||Pi(t),r.cursorDiv.style.visibility=(s=!s)?"":"hidden"},t.options.cursorBlinkRate):t.options.cursorBlinkRate<0&&(r.cursorDiv.style.visibility="hidden")}}function wu(t){t.hasFocus()||(t.display.input.focus(),t.state.focused||v1(t))}function g1(t){t.state.delayingBlurEvent=!0,setTimeout(function(){t.state.delayingBlurEvent&&(t.state.delayingBlurEvent=!1,t.state.focused&&Pi(t))},100)}function v1(t,r){t.state.delayingBlurEvent&&!t.state.draggingText&&(t.state.delayingBlurEvent=!1),t.options.readOnly!="nocursor"&&(t.state.focused||(ze(t,"focus",t,r),t.state.focused=!0,Me(t.display.wrapper,"CodeMirror-focused"),!t.curOp&&t.display.selForContextMenu!=t.doc.sel&&(t.display.input.reset(),T&&setTimeout(function(){return t.display.input.reset(!0)},20)),t.display.input.receivedFocus()),p1(t))}function Pi(t,r){t.state.delayingBlurEvent||(t.state.focused&&(ze(t,"blur",t,r),t.state.focused=!1,ie(t.display.wrapper,"CodeMirror-focused")),clearInterval(t.display.blinker),setTimeout(function(){t.state.focused||(t.display.shift=!1)},150))}function ss(t){for(var r=t.display,s=r.lineDiv.offsetTop,a=0;a<r.view.length;a++){var c=r.view[a],h=t.options.lineWrapping,f=void 0,p=0;if(!c.hidden){if(m&&y<8){var g=c.node.offsetTop+c.node.offsetHeight;f=g-s,s=g}else{var b=c.node.getBoundingClientRect();f=b.bottom-b.top,!h&&c.text.firstChild&&(p=c.text.firstChild.getBoundingClientRect().right-b.left-1)}var w=c.line.height-f;if((w>.005||w<-.005)&&(Gt(c.line,f),xu(c.line),c.rest))for(var L=0;L<c.rest.length;L++)xu(c.rest[L]);if(p>t.display.sizerWidth){var I=Math.ceil(p/Ai(t.display));I>t.display.maxLineLength&&(t.display.maxLineLength=I,t.display.maxLine=c.line,t.display.maxLineChanged=!0)}}}}function xu(t){if(t.widgets)for(var r=0;r<t.widgets.length;++r){var s=t.widgets[r],a=s.node.parentNode;a&&(s.height=a.offsetHeight)}}function ls(t,r,s){var a=s&&s.top!=null?Math.max(0,s.top):t.scroller.scrollTop;a=Math.floor(a-rs(t));var c=s&&s.bottom!=null?s.bottom:a+t.wrapper.clientHeight,h=Hr(r,a),f=Hr(r,c);if(s&&s.ensure){var p=s.ensure.from.line,g=s.ensure.to.line;p<h?(h=p,f=Hr(r,en(he(r,p))+t.wrapper.clientHeight)):Math.min(g,r.lastLine())>=f&&(h=Hr(r,en(he(r,g))-t.wrapper.clientHeight),f=g)}return{from:h,to:Math.max(f,h+1)}}function _4(t,r){if(!ct(t,"scrollCursorIntoView")){var s=t.display,a=s.sizer.getBoundingClientRect(),c=null;if(r.top+a.top<0?c=!0:r.bottom+a.top>(window.innerHeight||document.documentElement.clientHeight)&&(c=!1),c!=null&&!ee){var h=x("div","​",null,`position: absolute;
2980
+ height: `+(ve-ce)+"px"))}function L(Q,ce,ye){var ve=he(c,Q),ke=ve.text.length,Ye,xt;function rt(ut,Vt){return is(t,U(Q,ut),"div",ve,Vt)}function Kt(ut,Vt,Mt){var ft=bu(t,ve,null,ut),dt=Vt=="ltr"==(Mt=="after")?"left":"right",ot=Mt=="after"?ft.begin:ft.end-(/\s/.test(ve.text.charAt(ft.end-1))?2:1);return rt(ot,dt)[dt]}var Bt=jt(ve,c.direction);return Kl(Bt,ce||0,ye==null?ke:ye,function(ut,Vt,Mt,ft){var dt=Mt=="ltr",ot=rt(ut,dt?"left":"right"),Zt=rt(Vt-1,dt?"right":"left"),Gi=ce==null&&ut==0,kn=ye==null&&Vt==ke,_t=ft==0,Zr=!Bt||ft==Bt.length-1;if(Zt.top-ot.top<=3){var zt=(b?Gi:kn)&&_t,R1=(b?kn:Gi)&&Zr,nn=zt?p:(dt?ot:Zt).left,Qn=R1?g:(dt?Zt:ot).right;w(nn,ot.top,Qn-nn,ot.bottom)}else{var ei,Pt,qi,F1;dt?(ei=b&&Gi&&_t?p:ot.left,Pt=b?g:Kt(ut,Mt,"before"),qi=b?p:Kt(Vt,Mt,"after"),F1=b&&kn&&Zr?g:Zt.right):(ei=b?Kt(ut,Mt,"before"):p,Pt=!b&&Gi&&_t?g:ot.right,qi=!b&&kn&&Zr?p:Zt.left,F1=b?Kt(Vt,Mt,"after"):g),w(ei,ot.top,Pt-ei,ot.bottom),ot.bottom<Zt.top&&w(p,ot.bottom,null,Zt.top),w(qi,Zt.top,F1-qi,Zt.bottom)}(!Ye||as(ot,Ye)<0)&&(Ye=ot),as(Zt,Ye)<0&&(Ye=Zt),(!xt||as(ot,xt)<0)&&(xt=ot),as(Zt,xt)<0&&(xt=Zt)}),{start:Ye,end:xt}}var I=r.from(),_=r.to();if(I.line==_.line)L(I.line,I.ch,_.ch);else{var H=he(c,I.line),W=he(c,_.line),K=Fr(H)==Fr(W),J=L(I.line,I.ch,K?H.text.length+1:null).end,ae=L(_.line,K?0:null,_.ch).start;K&&(J.top<ae.top-2?(w(J.right,J.top,null,J.bottom),w(p,ae.top,ae.left,ae.bottom)):w(J.right,J.top,ae.left-J.right,J.bottom)),J.bottom<ae.top&&w(p,J.bottom,null,ae.top)}s.appendChild(h)}function p1(t){if(t.state.focused){var r=t.display;clearInterval(r.blinker);var s=!0;r.cursorDiv.style.visibility="",t.options.cursorBlinkRate>0?r.blinker=setInterval(function(){t.hasFocus()||Pi(t),r.cursorDiv.style.visibility=(s=!s)?"":"hidden"},t.options.cursorBlinkRate):t.options.cursorBlinkRate<0&&(r.cursorDiv.style.visibility="hidden")}}function xu(t){t.hasFocus()||(t.display.input.focus(),t.state.focused||v1(t))}function g1(t){t.state.delayingBlurEvent=!0,setTimeout(function(){t.state.delayingBlurEvent&&(t.state.delayingBlurEvent=!1,t.state.focused&&Pi(t))},100)}function v1(t,r){t.state.delayingBlurEvent&&!t.state.draggingText&&(t.state.delayingBlurEvent=!1),t.options.readOnly!="nocursor"&&(t.state.focused||(ze(t,"focus",t,r),t.state.focused=!0,Me(t.display.wrapper,"CodeMirror-focused"),!t.curOp&&t.display.selForContextMenu!=t.doc.sel&&(t.display.input.reset(),T&&setTimeout(function(){return t.display.input.reset(!0)},20)),t.display.input.receivedFocus()),p1(t))}function Pi(t,r){t.state.delayingBlurEvent||(t.state.focused&&(ze(t,"blur",t,r),t.state.focused=!1,ie(t.display.wrapper,"CodeMirror-focused")),clearInterval(t.display.blinker),setTimeout(function(){t.state.focused||(t.display.shift=!1)},150))}function ss(t){for(var r=t.display,s=r.lineDiv.offsetTop,a=0;a<r.view.length;a++){var c=r.view[a],h=t.options.lineWrapping,f=void 0,p=0;if(!c.hidden){if(m&&y<8){var g=c.node.offsetTop+c.node.offsetHeight;f=g-s,s=g}else{var b=c.node.getBoundingClientRect();f=b.bottom-b.top,!h&&c.text.firstChild&&(p=c.text.firstChild.getBoundingClientRect().right-b.left-1)}var w=c.line.height-f;if((w>.005||w<-.005)&&(Gt(c.line,f),zu(c.line),c.rest))for(var L=0;L<c.rest.length;L++)zu(c.rest[L]);if(p>t.display.sizerWidth){var I=Math.ceil(p/Ai(t.display));I>t.display.maxLineLength&&(t.display.maxLineLength=I,t.display.maxLine=c.line,t.display.maxLineChanged=!0)}}}}function zu(t){if(t.widgets)for(var r=0;r<t.widgets.length;++r){var s=t.widgets[r],a=s.node.parentNode;a&&(s.height=a.offsetHeight)}}function ls(t,r,s){var a=s&&s.top!=null?Math.max(0,s.top):t.scroller.scrollTop;a=Math.floor(a-rs(t));var c=s&&s.bottom!=null?s.bottom:a+t.wrapper.clientHeight,h=Hr(r,a),f=Hr(r,c);if(s&&s.ensure){var p=s.ensure.from.line,g=s.ensure.to.line;p<h?(h=p,f=Hr(r,en(he(r,p))+t.wrapper.clientHeight)):Math.min(g,r.lastLine())>=f&&(h=Hr(r,en(he(r,g))-t.wrapper.clientHeight),f=g)}return{from:h,to:Math.max(f,h+1)}}function D4(t,r){if(!ct(t,"scrollCursorIntoView")){var s=t.display,a=s.sizer.getBoundingClientRect(),c=null;if(r.top+a.top<0?c=!0:r.bottom+a.top>(window.innerHeight||document.documentElement.clientHeight)&&(c=!1),c!=null&&!ee){var h=x("div","​",null,`position: absolute;
2981
2981
  top: `+(r.top-s.viewOffset-rs(t.display))+`px;
2982
2982
  height: `+(r.bottom-r.top+Br(t)+s.barHeight)+`px;
2983
- left: `+r.left+"px; width: "+Math.max(2,r.right-r.left)+"px;");t.display.lineSpace.appendChild(h),h.scrollIntoView(c),t.display.lineSpace.removeChild(h)}}}function I4(t,r,s,a){a==null&&(a=0);var c;!t.options.lineWrapping&&r==s&&(s=r.sticky=="before"?U(r.line,r.ch+1,"before"):r,r=r.ch?U(r.line,r.sticky=="before"?r.ch-1:r.ch,"after"):r);for(var h=0;h<5;h++){var f=!1,p=Cr(t,r),g=!s||s==r?p:Cr(t,s);c={left:Math.min(p.left,g.left),top:Math.min(p.top,g.top)-a,right:Math.max(p.left,g.left),bottom:Math.max(p.bottom,g.bottom)+a};var b=b1(t,c),w=t.doc.scrollTop,L=t.doc.scrollLeft;if(b.scrollTop!=null&&(Fo(t,b.scrollTop),Math.abs(t.doc.scrollTop-w)>1&&(f=!0)),b.scrollLeft!=null&&(Kn(t,b.scrollLeft),Math.abs(t.doc.scrollLeft-L)>1&&(f=!0)),!f)break}return c}function A4(t,r){var s=b1(t,r);s.scrollTop!=null&&Fo(t,s.scrollTop),s.scrollLeft!=null&&Kn(t,s.scrollLeft)}function b1(t,r){var s=t.display,a=Ii(t.display);r.top<0&&(r.top=0);var c=t.curOp&&t.curOp.scrollTop!=null?t.curOp.scrollTop:s.scroller.scrollTop,h=o1(t),f={};r.bottom-r.top>h&&(r.bottom=r.top+h);var p=t.doc.height+i1(s),g=r.top<a,b=r.bottom>p-a;if(r.top<c)f.scrollTop=g?0:r.top;else if(r.bottom>c+h){var w=Math.min(r.top,(b?p:r.bottom)-h);w!=c&&(f.scrollTop=w)}var L=t.options.fixedGutter?0:s.gutters.offsetWidth,I=t.curOp&&t.curOp.scrollLeft!=null?t.curOp.scrollLeft:s.scroller.scrollLeft-L,_=Un(t)-s.gutters.offsetWidth,H=r.right-r.left>_;return H&&(r.right=r.left+_),r.left<10?f.scrollLeft=0:r.left<I?f.scrollLeft=Math.max(0,r.left+L-(H?0:10)):r.right>_+I-3&&(f.scrollLeft=r.right+(H?0:10)-_),f}function m1(t,r){r!=null&&(cs(t),t.curOp.scrollTop=(t.curOp.scrollTop==null?t.doc.scrollTop:t.curOp.scrollTop)+r)}function Di(t){cs(t);var r=t.getCursor();t.curOp.scrollToPos={from:r,to:r,margin:t.options.cursorScrollMargin}}function Ro(t,r,s){(r!=null||s!=null)&&cs(t),r!=null&&(t.curOp.scrollLeft=r),s!=null&&(t.curOp.scrollTop=s)}function P4(t,r){cs(t),t.curOp.scrollToPos=r}function cs(t){var r=t.curOp.scrollToPos;if(r){t.curOp.scrollToPos=null;var s=pu(t,r.from),a=pu(t,r.to);zu(t,s,a,r.margin)}}function zu(t,r,s,a){var c=b1(t,{left:Math.min(r.left,s.left),top:Math.min(r.top,s.top)-a,right:Math.max(r.right,s.right),bottom:Math.max(r.bottom,s.bottom)+a});Ro(t,c.scrollLeft,c.scrollTop)}function Fo(t,r){Math.abs(t.doc.scrollTop-r)<2||(l||C1(t,{top:r}),Lu(t,r,!0),l&&C1(t),Zo(t,100))}function Lu(t,r,s){r=Math.max(0,Math.min(t.display.scroller.scrollHeight-t.display.scroller.clientHeight,r)),!(t.display.scroller.scrollTop==r&&!s)&&(t.doc.scrollTop=r,t.display.scrollbars.setScrollTop(r),t.display.scroller.scrollTop!=r&&(t.display.scroller.scrollTop=r))}function Kn(t,r,s,a){r=Math.max(0,Math.min(r,t.display.scroller.scrollWidth-t.display.scroller.clientWidth)),!((s?r==t.doc.scrollLeft:Math.abs(t.doc.scrollLeft-r)<2)&&!a)&&(t.doc.scrollLeft=r,$u(t),t.display.scroller.scrollLeft!=r&&(t.display.scroller.scrollLeft=r),t.display.scrollbars.setScrollLeft(r))}function Bo(t){var r=t.display,s=r.gutters.offsetWidth,a=Math.round(t.doc.height+i1(t.display));return{clientHeight:r.scroller.clientHeight,viewHeight:r.wrapper.clientHeight,scrollWidth:r.scroller.scrollWidth,clientWidth:r.scroller.clientWidth,viewWidth:r.wrapper.clientWidth,barLeft:t.options.fixedGutter?s:0,docHeight:a,scrollHeight:a+Br(t)+r.barHeight,nativeBarWidth:r.nativeBarWidth,gutterWidth:s}}var Yn=function(t,r,s){this.cm=s;var a=this.vert=x("div",[x("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),c=this.horiz=x("div",[x("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");a.tabIndex=c.tabIndex=-1,t(a),t(c),Ce(a,"scroll",function(){a.clientHeight&&r(a.scrollTop,"vertical")}),Ce(c,"scroll",function(){c.clientWidth&&r(c.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,m&&y<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Yn.prototype.update=function(t){var r=t.scrollWidth>t.clientWidth+1,s=t.scrollHeight>t.clientHeight+1,a=t.nativeBarWidth;if(s){this.vert.style.display="block",this.vert.style.bottom=r?a+"px":"0";var c=t.viewHeight-(r?a:0);this.vert.firstChild.style.height=Math.max(0,t.scrollHeight-t.clientHeight+c)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(r){this.horiz.style.display="block",this.horiz.style.right=s?a+"px":"0",this.horiz.style.left=t.barLeft+"px";var h=t.viewWidth-t.barLeft-(s?a:0);this.horiz.firstChild.style.width=Math.max(0,t.scrollWidth-t.clientWidth+h)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&t.clientHeight>0&&(a==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:s?a:0,bottom:r?a:0}},Yn.prototype.setScrollLeft=function(t){this.horiz.scrollLeft!=t&&(this.horiz.scrollLeft=t),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Yn.prototype.setScrollTop=function(t){this.vert.scrollTop!=t&&(this.vert.scrollTop=t),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Yn.prototype.zeroWidthHack=function(){var t=ue&&!G?"12px":"18px";this.horiz.style.height=this.vert.style.width=t,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new Ue,this.disableVert=new Ue},Yn.prototype.enableZeroWidthBar=function(t,r,s){t.style.pointerEvents="auto";function a(){var c=t.getBoundingClientRect(),h=s=="vert"?document.elementFromPoint(c.right-1,(c.top+c.bottom)/2):document.elementFromPoint((c.right+c.left)/2,c.bottom-1);h!=t?t.style.pointerEvents="none":r.set(1e3,a)}r.set(1e3,a)},Yn.prototype.clear=function(){var t=this.horiz.parentNode;t.removeChild(this.horiz),t.removeChild(this.vert)};var Vo=function(){};Vo.prototype.update=function(){return{bottom:0,right:0}},Vo.prototype.setScrollLeft=function(){},Vo.prototype.setScrollTop=function(){},Vo.prototype.clear=function(){};function Ni(t,r){r||(r=Bo(t));var s=t.display.barWidth,a=t.display.barHeight;Su(t,r);for(var c=0;c<4&&s!=t.display.barWidth||a!=t.display.barHeight;c++)s!=t.display.barWidth&&t.options.lineWrapping&&ss(t),Su(t,Bo(t)),s=t.display.barWidth,a=t.display.barHeight}function Su(t,r){var s=t.display,a=s.scrollbars.update(r);s.sizer.style.paddingRight=(s.barWidth=a.right)+"px",s.sizer.style.paddingBottom=(s.barHeight=a.bottom)+"px",s.heightForcer.style.borderBottom=a.bottom+"px solid transparent",a.right&&a.bottom?(s.scrollbarFiller.style.display="block",s.scrollbarFiller.style.height=a.bottom+"px",s.scrollbarFiller.style.width=a.right+"px"):s.scrollbarFiller.style.display="",a.bottom&&t.options.coverGutterNextToScrollbar&&t.options.fixedGutter?(s.gutterFiller.style.display="block",s.gutterFiller.style.height=a.bottom+"px",s.gutterFiller.style.width=r.gutterWidth+"px"):s.gutterFiller.style.display=""}var Mu={native:Yn,null:Vo};function Tu(t){t.display.scrollbars&&(t.display.scrollbars.clear(),t.display.scrollbars.addClass&&ie(t.display.wrapper,t.display.scrollbars.addClass)),t.display.scrollbars=new Mu[t.options.scrollbarStyle](function(r){t.display.wrapper.insertBefore(r,t.display.scrollbarFiller),Ce(r,"mousedown",function(){t.state.focused&&setTimeout(function(){return t.display.input.focus()},0)}),r.setAttribute("cm-not-content","true")},function(r,s){s=="horizontal"?Kn(t,r):Fo(t,r)},t),t.display.scrollbars.addClass&&Me(t.display.wrapper,t.display.scrollbars.addClass)}var D4=0;function Xn(t){t.curOp={cm:t,viewChanged:!1,startHeight:t.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++D4,markArrays:null},f4(t.curOp)}function Jn(t){var r=t.curOp;r&&g4(r,function(s){for(var a=0;a<s.ops.length;a++)s.ops[a].cm.curOp=null;N4(s)})}function N4(t){for(var r=t.ops,s=0;s<r.length;s++)H4(r[s]);for(var a=0;a<r.length;a++)R4(r[a]);for(var c=0;c<r.length;c++)F4(r[c]);for(var h=0;h<r.length;h++)B4(r[h]);for(var f=0;f<r.length;f++)V4(r[f])}function H4(t){var r=t.cm,s=r.display;W4(r),t.updateMaxLine&&r1(r),t.mustUpdate=t.viewChanged||t.forceUpdate||t.scrollTop!=null||t.scrollToPos&&(t.scrollToPos.from.line<s.viewFrom||t.scrollToPos.to.line>=s.viewTo)||s.maxLineChanged&&r.options.lineWrapping,t.update=t.mustUpdate&&new us(r,t.mustUpdate&&{top:t.scrollTop,ensure:t.scrollToPos},t.forceUpdate)}function R4(t){t.updatedDisplay=t.mustUpdate&&y1(t.cm,t.update)}function F4(t){var r=t.cm,s=r.display;t.updatedDisplay&&ss(r),t.barMeasure=Bo(r),s.maxLineChanged&&!r.options.lineWrapping&&(t.adjustWidthTo=au(r,s.maxLine,s.maxLine.text.length).left+3,r.display.sizerWidth=t.adjustWidthTo,t.barMeasure.scrollWidth=Math.max(s.scroller.clientWidth,s.sizer.offsetLeft+t.adjustWidthTo+Br(r)+r.display.barWidth),t.maxScrollLeft=Math.max(0,s.sizer.offsetLeft+t.adjustWidthTo-Un(r))),(t.updatedDisplay||t.selectionChanged)&&(t.preparedSelection=s.input.prepareSelection())}function B4(t){var r=t.cm;t.adjustWidthTo!=null&&(r.display.sizer.style.minWidth=t.adjustWidthTo+"px",t.maxScrollLeft<r.doc.scrollLeft&&Kn(r,Math.min(r.display.scroller.scrollLeft,t.maxScrollLeft),!0),r.display.maxLineChanged=!1);var s=t.focus&&t.focus==be();t.preparedSelection&&r.display.input.showSelection(t.preparedSelection,s),(t.updatedDisplay||t.startHeight!=r.doc.height)&&Ni(r,t.barMeasure),t.updatedDisplay&&x1(r,t.barMeasure),t.selectionChanged&&p1(r),r.state.focused&&t.updateInput&&r.display.input.reset(t.typing),s&&wu(t.cm)}function V4(t){var r=t.cm,s=r.display,a=r.doc;if(t.updatedDisplay&&ku(r,t.update),s.wheelStartX!=null&&(t.scrollTop!=null||t.scrollLeft!=null||t.scrollToPos)&&(s.wheelStartX=s.wheelStartY=null),t.scrollTop!=null&&Lu(r,t.scrollTop,t.forceScroll),t.scrollLeft!=null&&Kn(r,t.scrollLeft,!0,!0),t.scrollToPos){var c=I4(r,oe(a,t.scrollToPos.from),oe(a,t.scrollToPos.to),t.scrollToPos.margin);_4(r,c)}var h=t.maybeHiddenMarkers,f=t.maybeUnhiddenMarkers;if(h)for(var p=0;p<h.length;++p)h[p].lines.length||ze(h[p],"hide");if(f)for(var g=0;g<f.length;++g)f[g].lines.length&&ze(f[g],"unhide");s.wrapper.offsetHeight&&(a.scrollTop=r.display.scroller.scrollTop),t.changeObjs&&ze(r,"changes",r,t.changeObjs),t.update&&t.update.finish()}function qt(t,r){if(t.curOp)return r();Xn(t);try{return r()}finally{Jn(t)}}function Ct(t,r){return function(){if(t.curOp)return r.apply(t,arguments);Xn(t);try{return r.apply(t,arguments)}finally{Jn(t)}}}function At(t){return function(){if(this.curOp)return t.apply(this,arguments);Xn(this);try{return t.apply(this,arguments)}finally{Jn(this)}}}function wt(t){return function(){var r=this.cm;if(!r||r.curOp)return t.apply(this,arguments);Xn(r);try{return t.apply(this,arguments)}finally{Jn(r)}}}function Zo(t,r){t.doc.highlightFrontier<t.display.viewTo&&t.state.highlight.set(r,Qt(Z4,t))}function Z4(t){var r=t.doc;if(!(r.highlightFrontier>=t.display.viewTo)){var s=+new Date+t.options.workTime,a=_o(t,r.highlightFrontier),c=[];r.iter(a.line,Math.min(r.first+r.size,t.display.viewTo+500),function(h){if(a.line>=t.display.viewFrom){var f=h.styles,p=h.text.length>t.options.maxHighlightLength?ir(r.mode,a.state):null,g=A0(t,h,a,!0);p&&(a.state=p),h.styles=g.styles;var b=h.styleClasses,w=g.classes;w?h.styleClasses=w:b&&(h.styleClasses=null);for(var L=!f||f.length!=h.styles.length||b!=w&&(!b||!w||b.bgClass!=w.bgClass||b.textClass!=w.textClass),I=0;!L&&I<f.length;++I)L=f[I]!=h.styles[I];L&&c.push(a.line),h.stateAfter=a.save(),a.nextLine()}else h.text.length<=t.options.maxHighlightLength&&Yl(t,h.text,a),h.stateAfter=a.line%5==0?a.save():null,a.nextLine();if(+new Date>s)return Zo(t,t.options.workDelay),!0}),r.highlightFrontier=a.line,r.modeFrontier=Math.max(r.modeFrontier,a.line),c.length&&qt(t,function(){for(var h=0;h<c.length;h++)wn(t,c[h],"text")})}}var us=function(t,r,s){var a=t.display;this.viewport=r,this.visible=ls(a,t.doc,r),this.editorIsHidden=!a.wrapper.offsetWidth,this.wrapperHeight=a.wrapper.clientHeight,this.wrapperWidth=a.wrapper.clientWidth,this.oldDisplayWidth=Un(t),this.force=s,this.dims=d1(t),this.events=[]};us.prototype.signal=function(t,r){St(t,r)&&this.events.push(arguments)},us.prototype.finish=function(){for(var t=0;t<this.events.length;t++)ze.apply(null,this.events[t])};function W4(t){var r=t.display;!r.scrollbarsClipped&&r.scroller.offsetWidth&&(r.nativeBarWidth=r.scroller.offsetWidth-r.scroller.clientWidth,r.heightForcer.style.height=Br(t)+"px",r.sizer.style.marginBottom=-r.nativeBarWidth+"px",r.sizer.style.borderRightWidth=Br(t)+"px",r.scrollbarsClipped=!0)}function U4(t){if(t.hasFocus())return null;var r=be();if(!r||!X(t.display.lineDiv,r))return null;var s={activeElt:r};if(window.getSelection){var a=window.getSelection();a.anchorNode&&a.extend&&X(t.display.lineDiv,a.anchorNode)&&(s.anchorNode=a.anchorNode,s.anchorOffset=a.anchorOffset,s.focusNode=a.focusNode,s.focusOffset=a.focusOffset)}return s}function j4(t){if(!(!t||!t.activeElt||t.activeElt==be())&&(t.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(t.activeElt.nodeName)&&t.anchorNode&&X(document.body,t.anchorNode)&&X(document.body,t.focusNode))){var r=window.getSelection(),s=document.createRange();s.setEnd(t.anchorNode,t.anchorOffset),s.collapse(!1),r.removeAllRanges(),r.addRange(s),r.extend(t.focusNode,t.focusOffset)}}function y1(t,r){var s=t.display,a=t.doc;if(r.editorIsHidden)return xn(t),!1;if(!r.force&&r.visible.from>=s.viewFrom&&r.visible.to<=s.viewTo&&(s.updateLineNumbers==null||s.updateLineNumbers>=s.viewTo)&&s.renderedView==s.view&&mu(t)==0)return!1;Ou(t)&&(xn(t),r.dims=d1(t));var c=a.first+a.size,h=Math.max(r.visible.from-t.options.viewportMargin,a.first),f=Math.min(c,r.visible.to+t.options.viewportMargin);s.viewFrom<h&&h-s.viewFrom<20&&(h=Math.max(a.first,s.viewFrom)),s.viewTo>f&&s.viewTo-f<20&&(f=Math.min(c,s.viewTo)),Qr&&(h=e1(t.doc,h),f=q0(t.doc,f));var p=h!=s.viewFrom||f!=s.viewTo||s.lastWrapHeight!=r.wrapperHeight||s.lastWrapWidth!=r.wrapperWidth;O4(t,h,f),s.viewOffset=en(he(t.doc,s.viewFrom)),t.display.mover.style.top=s.viewOffset+"px";var g=mu(t);if(!p&&g==0&&!r.force&&s.renderedView==s.view&&(s.updateLineNumbers==null||s.updateLineNumbers>=s.viewTo))return!1;var b=U4(t);return g>4&&(s.lineDiv.style.display="none"),G4(t,s.updateLineNumbers,r.dims),g>4&&(s.lineDiv.style.display=""),s.renderedView=s.view,j4(b),Z(s.cursorDiv),Z(s.selectionDiv),s.gutters.style.height=s.sizer.style.minHeight=0,p&&(s.lastWrapHeight=r.wrapperHeight,s.lastWrapWidth=r.wrapperWidth,Zo(t,400)),s.updateLineNumbers=null,!0}function ku(t,r){for(var s=r.viewport,a=!0;;a=!1){if(!a||!t.options.lineWrapping||r.oldDisplayWidth==Un(t)){if(s&&s.top!=null&&(s={top:Math.min(t.doc.height+i1(t.display)-o1(t),s.top)}),r.visible=ls(t.display,t.doc,s),r.visible.from>=t.display.viewFrom&&r.visible.to<=t.display.viewTo)break}else a&&(r.visible=ls(t.display,t.doc,s));if(!y1(t,r))break;ss(t);var c=Bo(t);Ho(t),Ni(t,c),x1(t,c),r.force=!1}r.signal(t,"update",t),(t.display.viewFrom!=t.display.reportedViewFrom||t.display.viewTo!=t.display.reportedViewTo)&&(r.signal(t,"viewportChange",t,t.display.viewFrom,t.display.viewTo),t.display.reportedViewFrom=t.display.viewFrom,t.display.reportedViewTo=t.display.viewTo)}function C1(t,r){var s=new us(t,r);if(y1(t,s)){ss(t),ku(t,s);var a=Bo(t);Ho(t),Ni(t,a),x1(t,a),s.finish()}}function G4(t,r,s){var a=t.display,c=t.options.lineNumbers,h=a.lineDiv,f=h.firstChild;function p(H){var W=H.nextSibling;return T&&ue&&t.display.currentWheelTarget==H?H.style.display="none":H.parentNode.removeChild(H),W}for(var g=a.view,b=a.viewFrom,w=0;w<g.length;w++){var L=g[w];if(!L.hidden)if(!L.node||L.node.parentNode!=h){var I=C4(t,L,b,s);h.insertBefore(I,f)}else{for(;f!=L.node;)f=p(f);var _=c&&r!=null&&r<=b&&L.lineNumber;L.changes&&(fe(L.changes,"gutter")>-1&&(_=!1),Q0(t,L,b,s)),_&&(Z(L.lineNumber),L.lineNumber.appendChild(document.createTextNode(Eo(t.options,b)))),f=L.node.nextSibling}b+=L.size}for(;f;)f=p(f)}function w1(t){var r=t.gutters.offsetWidth;t.sizer.style.marginLeft=r+"px",yt(t,"gutterChanged",t)}function x1(t,r){t.display.sizer.style.minHeight=r.docHeight+"px",t.display.heightForcer.style.top=r.docHeight+"px",t.display.gutters.style.height=r.docHeight+t.display.barHeight+Br(t)+"px"}function $u(t){var r=t.display,s=r.view;if(!(!r.alignWidgets&&(!r.gutters.firstChild||!t.options.fixedGutter))){for(var a=h1(r)-r.scroller.scrollLeft+t.doc.scrollLeft,c=r.gutters.offsetWidth,h=a+"px",f=0;f<s.length;f++)if(!s[f].hidden){t.options.fixedGutter&&(s[f].gutter&&(s[f].gutter.style.left=h),s[f].gutterBackground&&(s[f].gutterBackground.style.left=h));var p=s[f].alignable;if(p)for(var g=0;g<p.length;g++)p[g].style.left=h}t.options.fixedGutter&&(r.gutters.style.left=a+c+"px")}}function Ou(t){if(!t.options.lineNumbers)return!1;var r=t.doc,s=Eo(t.options,r.first+r.size-1),a=t.display;if(s.length!=a.lineNumChars){var c=a.measure.appendChild(x("div",[x("div",s)],"CodeMirror-linenumber CodeMirror-gutter-elt")),h=c.firstChild.offsetWidth,f=c.offsetWidth-h;return a.lineGutter.style.width="",a.lineNumInnerWidth=Math.max(h,a.lineGutter.offsetWidth-f)+1,a.lineNumWidth=a.lineNumInnerWidth+f,a.lineNumChars=a.lineNumInnerWidth?s.length:-1,a.lineGutter.style.width=a.lineNumWidth+"px",w1(t.display),!0}return!1}function z1(t,r){for(var s=[],a=!1,c=0;c<t.length;c++){var h=t[c],f=null;if(typeof h!="string"&&(f=h.style,h=h.className),h=="CodeMirror-linenumbers")if(r)a=!0;else continue;s.push({className:h,style:f})}return r&&!a&&s.push({className:"CodeMirror-linenumbers",style:null}),s}function Eu(t){var r=t.gutters,s=t.gutterSpecs;Z(r),t.lineGutter=null;for(var a=0;a<s.length;++a){var c=s[a],h=c.className,f=c.style,p=r.appendChild(x("div",null,"CodeMirror-gutter "+h));f&&(p.style.cssText=f),h=="CodeMirror-linenumbers"&&(t.lineGutter=p,p.style.width=(t.lineNumWidth||1)+"px")}r.style.display=s.length?"":"none",w1(t)}function Wo(t){Eu(t.display),Rt(t),$u(t)}function q4(t,r,s,a){var c=this;this.input=s,c.scrollbarFiller=x("div",null,"CodeMirror-scrollbar-filler"),c.scrollbarFiller.setAttribute("cm-not-content","true"),c.gutterFiller=x("div",null,"CodeMirror-gutter-filler"),c.gutterFiller.setAttribute("cm-not-content","true"),c.lineDiv=z("div",null,"CodeMirror-code"),c.selectionDiv=x("div",null,null,"position: relative; z-index: 1"),c.cursorDiv=x("div",null,"CodeMirror-cursors"),c.measure=x("div",null,"CodeMirror-measure"),c.lineMeasure=x("div",null,"CodeMirror-measure"),c.lineSpace=z("div",[c.measure,c.lineMeasure,c.selectionDiv,c.cursorDiv,c.lineDiv],null,"position: relative; outline: none");var h=z("div",[c.lineSpace],"CodeMirror-lines");c.mover=x("div",[h],null,"position: relative"),c.sizer=x("div",[c.mover],"CodeMirror-sizer"),c.sizerWidth=null,c.heightForcer=x("div",null,null,"position: absolute; height: "+we+"px; width: 1px;"),c.gutters=x("div",null,"CodeMirror-gutters"),c.lineGutter=null,c.scroller=x("div",[c.sizer,c.heightForcer,c.gutters],"CodeMirror-scroll"),c.scroller.setAttribute("tabIndex","-1"),c.wrapper=x("div",[c.scrollbarFiller,c.gutterFiller,c.scroller],"CodeMirror"),c.wrapper.setAttribute("translate","no"),m&&y<8&&(c.gutters.style.zIndex=-1,c.scroller.style.paddingRight=0),!T&&!(l&&re)&&(c.scroller.draggable=!0),t&&(t.appendChild?t.appendChild(c.wrapper):t(c.wrapper)),c.viewFrom=c.viewTo=r.first,c.reportedViewFrom=c.reportedViewTo=r.first,c.view=[],c.renderedView=null,c.externalMeasured=null,c.viewOffset=0,c.lastWrapHeight=c.lastWrapWidth=0,c.updateLineNumbers=null,c.nativeBarWidth=c.barHeight=c.barWidth=0,c.scrollbarsClipped=!1,c.lineNumWidth=c.lineNumInnerWidth=c.lineNumChars=null,c.alignWidgets=!1,c.cachedCharWidth=c.cachedTextHeight=c.cachedPaddingH=null,c.maxLine=null,c.maxLineLength=0,c.maxLineChanged=!1,c.wheelDX=c.wheelDY=c.wheelStartX=c.wheelStartY=null,c.shift=!1,c.selForContextMenu=null,c.activeTouch=null,c.gutterSpecs=z1(a.gutters,a.lineNumbers),Eu(c),s.init(c)}var ds=0,ar=null;m?ar=-.53:l?ar=15:$?ar=-.7:N&&(ar=-1/3);function _u(t){var r=t.wheelDeltaX,s=t.wheelDeltaY;return r==null&&t.detail&&t.axis==t.HORIZONTAL_AXIS&&(r=t.detail),s==null&&t.detail&&t.axis==t.VERTICAL_AXIS?s=t.detail:s==null&&(s=t.wheelDelta),{x:r,y:s}}function K4(t){var r=_u(t);return r.x*=ar,r.y*=ar,r}function Iu(t,r){var s=_u(r),a=s.x,c=s.y,h=t.display,f=h.scroller,p=f.scrollWidth>f.clientWidth,g=f.scrollHeight>f.clientHeight;if(a&&p||c&&g){if(c&&ue&&T){e:for(var b=r.target,w=h.view;b!=f;b=b.parentNode)for(var L=0;L<w.length;L++)if(w[L].node==b){t.display.currentWheelTarget=b;break e}}if(a&&!l&&!E&&ar!=null){c&&g&&Fo(t,Math.max(0,f.scrollTop+c*ar)),Kn(t,Math.max(0,f.scrollLeft+a*ar)),(!c||c&&g)&&$t(r),h.wheelStartX=null;return}if(c&&ar!=null){var I=c*ar,_=t.doc.scrollTop,H=_+h.wrapper.clientHeight;I<0?_=Math.max(0,_+I-50):H=Math.min(t.doc.height,H+I+50),C1(t,{top:_,bottom:H})}ds<20&&(h.wheelStartX==null?(h.wheelStartX=f.scrollLeft,h.wheelStartY=f.scrollTop,h.wheelDX=a,h.wheelDY=c,setTimeout(function(){if(h.wheelStartX!=null){var W=f.scrollLeft-h.wheelStartX,K=f.scrollTop-h.wheelStartY,J=K&&h.wheelDY&&K/h.wheelDY||W&&h.wheelDX&&W/h.wheelDX;h.wheelStartX=h.wheelStartY=null,J&&(ar=(ar*ds+J)/(ds+1),++ds)}},200)):(h.wheelDX+=a,h.wheelDY+=c))}}var sr=function(t,r){this.ranges=t,this.primIndex=r};sr.prototype.primary=function(){return this.ranges[this.primIndex]},sr.prototype.equals=function(t){if(t==this)return!0;if(t.primIndex!=this.primIndex||t.ranges.length!=this.ranges.length)return!1;for(var r=0;r<this.ranges.length;r++){var s=this.ranges[r],a=t.ranges[r];if(!M(s.anchor,a.anchor)||!M(s.head,a.head))return!1}return!0},sr.prototype.deepCopy=function(){for(var t=[],r=0;r<this.ranges.length;r++)t[r]=new Fe(V(this.ranges[r].anchor),V(this.ranges[r].head));return new sr(t,this.primIndex)},sr.prototype.somethingSelected=function(){for(var t=0;t<this.ranges.length;t++)if(!this.ranges[t].empty())return!0;return!1},sr.prototype.contains=function(t,r){r||(r=t);for(var s=0;s<this.ranges.length;s++){var a=this.ranges[s];if(C(r,a.from())>=0&&C(t,a.to())<=0)return s}return-1};var Fe=function(t,r){this.anchor=t,this.head=r};Fe.prototype.from=function(){return Le(this.anchor,this.head)},Fe.prototype.to=function(){return q(this.anchor,this.head)},Fe.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function wr(t,r,s){var a=t&&t.options.selectionsMayTouch,c=r[s];r.sort(function(I,_){return C(I.from(),_.from())}),s=fe(r,c);for(var h=1;h<r.length;h++){var f=r[h],p=r[h-1],g=C(p.to(),f.from());if(a&&!f.empty()?g>0:g>=0){var b=Le(p.from(),f.from()),w=q(p.to(),f.to()),L=p.empty()?f.from()==f.head:p.from()==p.head;h<=s&&--s,r.splice(--h,2,new Fe(L?w:b,L?b:w))}}return new sr(r,s)}function zn(t,r){return new sr([new Fe(t,r||t)],0)}function Ln(t){return t.text?U(t.from.line+t.text.length-1,Oe(t.text).length+(t.text.length==1?t.from.ch:0)):t.to}function Au(t,r){if(C(t,r.from)<0)return t;if(C(t,r.to)<=0)return Ln(r);var s=t.line+r.text.length-(r.to.line-r.from.line)-1,a=t.ch;return t.line==r.to.line&&(a+=Ln(r).ch-r.to.ch),U(s,a)}function L1(t,r){for(var s=[],a=0;a<t.sel.ranges.length;a++){var c=t.sel.ranges[a];s.push(new Fe(Au(c.anchor,r),Au(c.head,r)))}return wr(t.cm,s,t.sel.primIndex)}function Pu(t,r,s){return t.line==r.line?U(s.line,t.ch-r.ch+s.ch):U(s.line+(t.line-r.line),t.ch)}function Y4(t,r,s){for(var a=[],c=U(t.first,0),h=c,f=0;f<r.length;f++){var p=r[f],g=Pu(p.from,c,h),b=Pu(Ln(p),c,h);if(c=p.to,h=b,s=="around"){var w=t.sel.ranges[f],L=C(w.head,w.anchor)<0;a[f]=new Fe(L?b:g,L?g:b)}else a[f]=new Fe(g,g)}return new sr(a,t.sel.primIndex)}function S1(t){t.doc.mode=ki(t.options,t.doc.modeOption),Uo(t)}function Uo(t){t.doc.iter(function(r){r.stateAfter&&(r.stateAfter=null),r.styles&&(r.styles=null)}),t.doc.modeFrontier=t.doc.highlightFrontier=t.doc.first,Zo(t,100),t.state.modeGen++,t.curOp&&Rt(t)}function Du(t,r){return r.from.ch==0&&r.to.ch==0&&Oe(r.text)==""&&(!t.cm||t.cm.options.wholeLineUpdateBefore)}function M1(t,r,s,a){function c(ae){return s?s[ae]:null}function h(ae,Q,ce){i4(ae,Q,ce,a),yt(ae,"change",ae,r)}function f(ae,Q){for(var ce=[],ye=ae;ye<Q;++ye)ce.push(new Oi(b[ye],c(ye),a));return ce}var p=r.from,g=r.to,b=r.text,w=he(t,p.line),L=he(t,g.line),I=Oe(b),_=c(b.length-1),H=g.line-p.line;if(r.full)t.insert(0,f(0,b.length)),t.remove(b.length,t.size-b.length);else if(Du(t,r)){var W=f(0,b.length-1);h(L,L.text,_),H&&t.remove(p.line,H),W.length&&t.insert(p.line,W)}else if(w==L)if(b.length==1)h(w,w.text.slice(0,p.ch)+I+w.text.slice(g.ch),_);else{var K=f(1,b.length-1);K.push(new Oi(I+w.text.slice(g.ch),_,a)),h(w,w.text.slice(0,p.ch)+b[0],c(0)),t.insert(p.line+1,K)}else if(b.length==1)h(w,w.text.slice(0,p.ch)+b[0]+L.text.slice(g.ch),c(0)),t.remove(p.line+1,H);else{h(w,w.text.slice(0,p.ch)+b[0],c(0)),h(L,I+L.text.slice(g.ch),_);var J=f(1,b.length-1);H>1&&t.remove(p.line+1,H-1),t.insert(p.line+1,J)}yt(t,"change",t,r)}function Sn(t,r,s){function a(c,h,f){if(c.linked)for(var p=0;p<c.linked.length;++p){var g=c.linked[p];if(g.doc!=h){var b=f&&g.sharedHist;s&&!b||(r(g.doc,b),a(g.doc,c,b))}}}a(t,null,!0)}function Nu(t,r){if(r.cm)throw new Error("This document is already in use.");t.doc=r,r.cm=t,f1(t),S1(t),Hu(t),t.options.direction=r.direction,t.options.lineWrapping||r1(t),t.options.mode=r.modeOption,Rt(t)}function Hu(t){(t.doc.direction=="rtl"?Me:ie)(t.display.lineDiv,"CodeMirror-rtl")}function X4(t){qt(t,function(){Hu(t),Rt(t)})}function hs(t){this.done=[],this.undone=[],this.undoDepth=t?t.undoDepth:1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=t?t.maxGeneration:1}function T1(t,r){var s={from:V(r.from),to:Ln(r),text:Nr(t,r.from,r.to)};return Bu(t,s,r.from.line,r.to.line+1),Sn(t,function(a){return Bu(a,s,r.from.line,r.to.line+1)},!0),s}function Ru(t){for(;t.length;){var r=Oe(t);if(r.ranges)t.pop();else break}}function J4(t,r){if(r)return Ru(t.done),Oe(t.done);if(t.done.length&&!Oe(t.done).ranges)return Oe(t.done);if(t.done.length>1&&!t.done[t.done.length-2].ranges)return t.done.pop(),Oe(t.done)}function Fu(t,r,s,a){var c=t.history;c.undone.length=0;var h=+new Date,f,p;if((c.lastOp==a||c.lastOrigin==r.origin&&r.origin&&(r.origin.charAt(0)=="+"&&c.lastModTime>h-(t.cm?t.cm.options.historyEventDelay:500)||r.origin.charAt(0)=="*"))&&(f=J4(c,c.lastOp==a)))p=Oe(f.changes),C(r.from,r.to)==0&&C(r.from,p.to)==0?p.to=Ln(r):f.changes.push(T1(t,r));else{var g=Oe(c.done);for((!g||!g.ranges)&&fs(t.sel,c.done),f={changes:[T1(t,r)],generation:c.generation},c.done.push(f);c.done.length>c.undoDepth;)c.done.shift(),c.done[0].ranges||c.done.shift()}c.done.push(s),c.generation=++c.maxGeneration,c.lastModTime=c.lastSelTime=h,c.lastOp=c.lastSelOp=a,c.lastOrigin=c.lastSelOrigin=r.origin,p||ze(t,"historyAdded")}function Q4(t,r,s,a){var c=r.charAt(0);return c=="*"||c=="+"&&s.ranges.length==a.ranges.length&&s.somethingSelected()==a.somethingSelected()&&new Date-t.history.lastSelTime<=(t.cm?t.cm.options.historyEventDelay:500)}function e3(t,r,s,a){var c=t.history,h=a&&a.origin;s==c.lastSelOp||h&&c.lastSelOrigin==h&&(c.lastModTime==c.lastSelTime&&c.lastOrigin==h||Q4(t,h,Oe(c.done),r))?c.done[c.done.length-1]=r:fs(r,c.done),c.lastSelTime=+new Date,c.lastSelOrigin=h,c.lastSelOp=s,a&&a.clearRedo!==!1&&Ru(c.undone)}function fs(t,r){var s=Oe(r);s&&s.ranges&&s.equals(t)||r.push(t)}function Bu(t,r,s,a){var c=r["spans_"+t.id],h=0;t.iter(Math.max(t.first,s),Math.min(t.first+t.size,a),function(f){f.markedSpans&&((c||(c=r["spans_"+t.id]={}))[h]=f.markedSpans),++h})}function t3(t){if(!t)return null;for(var r,s=0;s<t.length;++s)t[s].marker.explicitlyCleared?r||(r=t.slice(0,s)):r&&r.push(t[s]);return r?r.length?r:null:t}function r3(t,r){var s=r["spans_"+t.id];if(!s)return null;for(var a=[],c=0;c<r.text.length;++c)a.push(t3(s[c]));return a}function Vu(t,r){var s=r3(t,r),a=Jl(t,r);if(!s)return a;if(!a)return s;for(var c=0;c<s.length;++c){var h=s[c],f=a[c];if(h&&f)e:for(var p=0;p<f.length;++p){for(var g=f[p],b=0;b<h.length;++b)if(h[b].marker==g.marker)continue e;h.push(g)}else f&&(s[c]=f)}return s}function Hi(t,r,s){for(var a=[],c=0;c<t.length;++c){var h=t[c];if(h.ranges){a.push(s?sr.prototype.deepCopy.call(h):h);continue}var f=h.changes,p=[];a.push({changes:p});for(var g=0;g<f.length;++g){var b=f[g],w=void 0;if(p.push({from:b.from,to:b.to,text:b.text}),r)for(var L in b)(w=L.match(/^spans_(\d+)$/))&&fe(r,Number(w[1]))>-1&&(Oe(p)[L]=b[L],delete b[L])}}return a}function k1(t,r,s,a){if(a){var c=t.anchor;if(s){var h=C(r,c)<0;h!=C(s,c)<0?(c=r,r=s):h!=C(r,s)<0&&(r=s)}return new Fe(c,r)}else return new Fe(s||r,r)}function ps(t,r,s,a,c){c==null&&(c=t.cm&&(t.cm.display.shift||t.extend)),Et(t,new sr([k1(t.sel.primary(),r,s,c)],0),a)}function Zu(t,r,s){for(var a=[],c=t.cm&&(t.cm.display.shift||t.extend),h=0;h<t.sel.ranges.length;h++)a[h]=k1(t.sel.ranges[h],r[h],null,c);var f=wr(t.cm,a,t.sel.primIndex);Et(t,f,s)}function $1(t,r,s,a){var c=t.sel.ranges.slice(0);c[r]=s,Et(t,wr(t.cm,c,t.sel.primIndex),a)}function Wu(t,r,s,a){Et(t,zn(r,s),a)}function n3(t,r,s){var a={ranges:r.ranges,update:function(c){this.ranges=[];for(var h=0;h<c.length;h++)this.ranges[h]=new Fe(oe(t,c[h].anchor),oe(t,c[h].head))},origin:s&&s.origin};return ze(t,"beforeSelectionChange",t,a),t.cm&&ze(t.cm,"beforeSelectionChange",t.cm,a),a.ranges!=r.ranges?wr(t.cm,a.ranges,a.ranges.length-1):r}function Uu(t,r,s){var a=t.history.done,c=Oe(a);c&&c.ranges?(a[a.length-1]=r,gs(t,r,s)):Et(t,r,s)}function Et(t,r,s){gs(t,r,s),e3(t,t.sel,t.cm?t.cm.curOp.id:NaN,s)}function gs(t,r,s){(St(t,"beforeSelectionChange")||t.cm&&St(t.cm,"beforeSelectionChange"))&&(r=n3(t,r,s));var a=s&&s.bias||(C(r.primary().head,t.sel.primary().head)<0?-1:1);ju(t,qu(t,r,a,!0)),!(s&&s.scroll===!1)&&t.cm&&t.cm.getOption("readOnly")!="nocursor"&&Di(t.cm)}function ju(t,r){r.equals(t.sel)||(t.sel=r,t.cm&&(t.cm.curOp.updateInput=1,t.cm.curOp.selectionChanged=!0,Si(t.cm)),yt(t,"cursorActivity",t))}function Gu(t){ju(t,qu(t,t.sel,null,!1))}function qu(t,r,s,a){for(var c,h=0;h<r.ranges.length;h++){var f=r.ranges[h],p=r.ranges.length==t.sel.ranges.length&&t.sel.ranges[h],g=vs(t,f.anchor,p&&p.anchor,s,a),b=vs(t,f.head,p&&p.head,s,a);(c||g!=f.anchor||b!=f.head)&&(c||(c=r.ranges.slice(0,h)),c[h]=new Fe(g,b))}return c?wr(t.cm,c,r.primIndex):r}function Ri(t,r,s,a,c){var h=he(t,r.line);if(h.markedSpans)for(var f=0;f<h.markedSpans.length;++f){var p=h.markedSpans[f],g=p.marker,b="selectLeft"in g?!g.selectLeft:g.inclusiveLeft,w="selectRight"in g?!g.selectRight:g.inclusiveRight;if((p.from==null||(b?p.from<=r.ch:p.from<r.ch))&&(p.to==null||(w?p.to>=r.ch:p.to>r.ch))){if(c&&(ze(g,"beforeCursorEnter"),g.explicitlyCleared))if(h.markedSpans){--f;continue}else break;if(!g.atomic)continue;if(s){var L=g.find(a<0?1:-1),I=void 0;if((a<0?w:b)&&(L=Ku(t,L,-a,L&&L.line==r.line?h:null)),L&&L.line==r.line&&(I=C(L,s))&&(a<0?I<0:I>0))return Ri(t,L,r,a,c)}var _=g.find(a<0?-1:1);return(a<0?b:w)&&(_=Ku(t,_,a,_.line==r.line?h:null)),_?Ri(t,_,r,a,c):null}}return r}function vs(t,r,s,a,c){var h=a||1,f=Ri(t,r,s,h,c)||!c&&Ri(t,r,s,h,!0)||Ri(t,r,s,-h,c)||!c&&Ri(t,r,s,-h,!0);return f||(t.cantEdit=!0,U(t.first,0))}function Ku(t,r,s,a){return s<0&&r.ch==0?r.line>t.first?oe(t,U(r.line-1)):null:s>0&&r.ch==(a||he(t,r.line)).text.length?r.line<t.first+t.size-1?U(r.line+1,0):null:new U(r.line,r.ch+s)}function Yu(t){t.setSelection(U(t.firstLine(),0),U(t.lastLine()),Pe)}function Xu(t,r,s){var a={canceled:!1,from:r.from,to:r.to,text:r.text,origin:r.origin,cancel:function(){return a.canceled=!0}};return s&&(a.update=function(c,h,f,p){c&&(a.from=oe(t,c)),h&&(a.to=oe(t,h)),f&&(a.text=f),p!==void 0&&(a.origin=p)}),ze(t,"beforeChange",t,a),t.cm&&ze(t.cm,"beforeChange",t.cm,a),a.canceled?(t.cm&&(t.cm.curOp.updateInput=2),null):{from:a.from,to:a.to,text:a.text,origin:a.origin}}function Fi(t,r,s){if(t.cm){if(!t.cm.curOp)return Ct(t.cm,Fi)(t,r,s);if(t.cm.state.suppressEdits)return}if(!((St(t,"beforeChange")||t.cm&&St(t.cm,"beforeChange"))&&(r=Xu(t,r,!0),!r))){var a=B0&&!s&&e4(t,r.from,r.to);if(a)for(var c=a.length-1;c>=0;--c)Ju(t,{from:a[c].from,to:a[c].to,text:c?[""]:r.text,origin:r.origin});else Ju(t,r)}}function Ju(t,r){if(!(r.text.length==1&&r.text[0]==""&&C(r.from,r.to)==0)){var s=L1(t,r);Fu(t,r,s,t.cm?t.cm.curOp.id:NaN),jo(t,r,s,Jl(t,r));var a=[];Sn(t,function(c,h){!h&&fe(a,c.history)==-1&&(rd(c.history,r),a.push(c.history)),jo(c,r,null,Jl(c,r))})}}function bs(t,r,s){var a=t.cm&&t.cm.state.suppressEdits;if(!(a&&!s)){for(var c=t.history,h,f=t.sel,p=r=="undo"?c.done:c.undone,g=r=="undo"?c.undone:c.done,b=0;b<p.length&&(h=p[b],!(s?h.ranges&&!h.equals(t.sel):!h.ranges));b++);if(b!=p.length){for(c.lastOrigin=c.lastSelOrigin=null;;)if(h=p.pop(),h.ranges){if(fs(h,g),s&&!h.equals(t.sel)){Et(t,h,{clearRedo:!1});return}f=h}else if(a){p.push(h);return}else break;var w=[];fs(f,g),g.push({changes:w,generation:c.generation}),c.generation=h.generation||++c.maxGeneration;for(var L=St(t,"beforeChange")||t.cm&&St(t.cm,"beforeChange"),I=function(W){var K=h.changes[W];if(K.origin=r,L&&!Xu(t,K,!1))return p.length=0,{};w.push(T1(t,K));var J=W?L1(t,K):Oe(p);jo(t,K,J,Vu(t,K)),!W&&t.cm&&t.cm.scrollIntoView({from:K.from,to:Ln(K)});var ae=[];Sn(t,function(Q,ce){!ce&&fe(ae,Q.history)==-1&&(rd(Q.history,K),ae.push(Q.history)),jo(Q,K,null,Vu(Q,K))})},_=h.changes.length-1;_>=0;--_){var H=I(_);if(H)return H.v}}}}function Qu(t,r){if(r!=0&&(t.first+=r,t.sel=new sr(He(t.sel.ranges,function(c){return new Fe(U(c.anchor.line+r,c.anchor.ch),U(c.head.line+r,c.head.ch))}),t.sel.primIndex),t.cm)){Rt(t.cm,t.first,t.first-r,r);for(var s=t.cm.display,a=s.viewFrom;a<s.viewTo;a++)wn(t.cm,a,"gutter")}}function jo(t,r,s,a){if(t.cm&&!t.cm.curOp)return Ct(t.cm,jo)(t,r,s,a);if(r.to.line<t.first){Qu(t,r.text.length-1-(r.to.line-r.from.line));return}if(!(r.from.line>t.lastLine())){if(r.from.line<t.first){var c=r.text.length-1-(t.first-r.from.line);Qu(t,c),r={from:U(t.first,0),to:U(r.to.line+c,r.to.ch),text:[Oe(r.text)],origin:r.origin}}var h=t.lastLine();r.to.line>h&&(r={from:r.from,to:U(h,he(t,h).text.length),text:[r.text[0]],origin:r.origin}),r.removed=Nr(t,r.from,r.to),s||(s=L1(t,r)),t.cm?i3(t.cm,r,a):M1(t,r,a),gs(t,s,Pe),t.cantEdit&&vs(t,U(t.firstLine(),0))&&(t.cantEdit=!1)}}function i3(t,r,s){var a=t.doc,c=t.display,h=r.from,f=r.to,p=!1,g=h.line;t.options.lineWrapping||(g=Re(Fr(he(a,h.line))),a.iter(g,f.line+1,function(_){if(_==c.maxLine)return p=!0,!0})),a.sel.contains(r.from,r.to)>-1&&Si(t),M1(a,r,s,bu(t)),t.options.lineWrapping||(a.iter(g,h.line+r.text.length,function(_){var H=es(_);H>c.maxLineLength&&(c.maxLine=_,c.maxLineLength=H,c.maxLineChanged=!0,p=!1)}),p&&(t.curOp.updateMaxLine=!0)),G6(a,h.line),Zo(t,400);var b=r.text.length-(f.line-h.line)-1;r.full?Rt(t):h.line==f.line&&r.text.length==1&&!Du(t.doc,r)?wn(t,h.line,"text"):Rt(t,h.line,f.line+1,b);var w=St(t,"changes"),L=St(t,"change");if(L||w){var I={from:h,to:f,text:r.text,removed:r.removed,origin:r.origin};L&&yt(t,"change",t,I),w&&(t.curOp.changeObjs||(t.curOp.changeObjs=[])).push(I)}t.display.selForContextMenu=null}function Bi(t,r,s,a,c){var h;a||(a=s),C(a,s)<0&&(h=[a,s],s=h[0],a=h[1]),typeof r=="string"&&(r=t.splitLines(r)),Fi(t,{from:s,to:a,text:r,origin:c})}function ed(t,r,s,a){s<t.line?t.line+=a:r<t.line&&(t.line=r,t.ch=0)}function td(t,r,s,a){for(var c=0;c<t.length;++c){var h=t[c],f=!0;if(h.ranges){h.copied||(h=t[c]=h.deepCopy(),h.copied=!0);for(var p=0;p<h.ranges.length;p++)ed(h.ranges[p].anchor,r,s,a),ed(h.ranges[p].head,r,s,a);continue}for(var g=0;g<h.changes.length;++g){var b=h.changes[g];if(s<b.from.line)b.from=U(b.from.line+a,b.from.ch),b.to=U(b.to.line+a,b.to.ch);else if(r<=b.to.line){f=!1;break}}f||(t.splice(0,c+1),c=0)}}function rd(t,r){var s=r.from.line,a=r.to.line,c=r.text.length-(a-s)-1;td(t.done,s,a,c),td(t.undone,s,a,c)}function Go(t,r,s,a){var c=r,h=r;return typeof r=="number"?h=he(t,Ae(t,r)):c=Re(r),c==null?null:(a(h,c)&&t.cm&&wn(t.cm,c,s),h)}function qo(t){this.lines=t,this.parent=null;for(var r=0,s=0;s<t.length;++s)t[s].parent=this,r+=t[s].height;this.height=r}qo.prototype={chunkSize:function(){return this.lines.length},removeInner:function(t,r){for(var s=t,a=t+r;s<a;++s){var c=this.lines[s];this.height-=c.height,o4(c),yt(c,"delete")}this.lines.splice(t,r)},collapse:function(t){t.push.apply(t,this.lines)},insertInner:function(t,r,s){this.height+=s,this.lines=this.lines.slice(0,t).concat(r).concat(this.lines.slice(t));for(var a=0;a<r.length;++a)r[a].parent=this},iterN:function(t,r,s){for(var a=t+r;t<a;++t)if(s(this.lines[t]))return!0}};function Ko(t){this.children=t;for(var r=0,s=0,a=0;a<t.length;++a){var c=t[a];r+=c.chunkSize(),s+=c.height,c.parent=this}this.size=r,this.height=s,this.parent=null}Ko.prototype={chunkSize:function(){return this.size},removeInner:function(t,r){this.size-=r;for(var s=0;s<this.children.length;++s){var a=this.children[s],c=a.chunkSize();if(t<c){var h=Math.min(r,c-t),f=a.height;if(a.removeInner(t,h),this.height-=f-a.height,c==h&&(this.children.splice(s--,1),a.parent=null),(r-=h)==0)break;t=0}else t-=c}if(this.size-r<25&&(this.children.length>1||!(this.children[0]instanceof qo))){var p=[];this.collapse(p),this.children=[new qo(p)],this.children[0].parent=this}},collapse:function(t){for(var r=0;r<this.children.length;++r)this.children[r].collapse(t)},insertInner:function(t,r,s){this.size+=r.length,this.height+=s;for(var a=0;a<this.children.length;++a){var c=this.children[a],h=c.chunkSize();if(t<=h){if(c.insertInner(t,r,s),c.lines&&c.lines.length>50){for(var f=c.lines.length%25+25,p=f;p<c.lines.length;){var g=new qo(c.lines.slice(p,p+=25));c.height-=g.height,this.children.splice(++a,0,g),g.parent=this}c.lines=c.lines.slice(0,f),this.maybeSpill()}break}t-=h}},maybeSpill:function(){if(!(this.children.length<=10)){var t=this;do{var r=t.children.splice(t.children.length-5,5),s=new Ko(r);if(t.parent){t.size-=s.size,t.height-=s.height;var c=fe(t.parent.children,t);t.parent.children.splice(c+1,0,s)}else{var a=new Ko(t.children);a.parent=t,t.children=[a,s],t=a}s.parent=t.parent}while(t.children.length>10);t.parent.maybeSpill()}},iterN:function(t,r,s){for(var a=0;a<this.children.length;++a){var c=this.children[a],h=c.chunkSize();if(t<h){var f=Math.min(r,h-t);if(c.iterN(t,f,s))return!0;if((r-=f)==0)break;t=0}else t-=h}}};var Yo=function(t,r,s){if(s)for(var a in s)s.hasOwnProperty(a)&&(this[a]=s[a]);this.doc=t,this.node=r};Yo.prototype.clear=function(){var t=this.doc.cm,r=this.line.widgets,s=this.line,a=Re(s);if(!(a==null||!r)){for(var c=0;c<r.length;++c)r[c]==this&&r.splice(c--,1);r.length||(s.widgets=null);var h=Do(this);Gt(s,Math.max(0,s.height-h)),t&&(qt(t,function(){nd(t,s,-h),wn(t,a,"widget")}),yt(t,"lineWidgetCleared",t,this,a))}},Yo.prototype.changed=function(){var t=this,r=this.height,s=this.doc.cm,a=this.line;this.height=null;var c=Do(this)-r;c&&(Cn(this.doc,a)||Gt(a,a.height+c),s&&qt(s,function(){s.curOp.forceUpdate=!0,nd(s,a,c),yt(s,"lineWidgetChanged",s,t,Re(a))}))},Pr(Yo);function nd(t,r,s){en(r)<(t.curOp&&t.curOp.scrollTop||t.doc.scrollTop)&&m1(t,s)}function o3(t,r,s,a){var c=new Yo(t,s,a),h=t.cm;return h&&c.noHScroll&&(h.display.alignWidgets=!0),Go(t,r,"widget",function(f){var p=f.widgets||(f.widgets=[]);if(c.insertAt==null?p.push(c):p.splice(Math.min(p.length,Math.max(0,c.insertAt)),0,c),c.line=f,h&&!Cn(t,f)){var g=en(f)<t.scrollTop;Gt(f,f.height+Do(c)),g&&m1(h,c.height),h.curOp.forceUpdate=!0}return!0}),h&&yt(h,"lineWidgetAdded",h,c,typeof r=="number"?r:Re(r)),c}var id=0,Mn=function(t,r){this.lines=[],this.type=r,this.doc=t,this.id=++id};Mn.prototype.clear=function(){if(!this.explicitlyCleared){var t=this.doc.cm,r=t&&!t.curOp;if(r&&Xn(t),St(this,"clear")){var s=this.find();s&&yt(this,"clear",s.from,s.to)}for(var a=null,c=null,h=0;h<this.lines.length;++h){var f=this.lines[h],p=Io(f.markedSpans,this);t&&!this.collapsed?wn(t,Re(f),"text"):t&&(p.to!=null&&(c=Re(f)),p.from!=null&&(a=Re(f))),f.markedSpans=Y6(f.markedSpans,p),p.from==null&&this.collapsed&&!Cn(this.doc,f)&&t&&Gt(f,Ii(t.display))}if(t&&this.collapsed&&!t.options.lineWrapping)for(var g=0;g<this.lines.length;++g){var b=Fr(this.lines[g]),w=es(b);w>t.display.maxLineLength&&(t.display.maxLine=b,t.display.maxLineLength=w,t.display.maxLineChanged=!0)}a!=null&&t&&this.collapsed&&Rt(t,a,c+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,t&&Gu(t.doc)),t&&yt(t,"markerCleared",t,this,a,c),r&&Jn(t),this.parent&&this.parent.clear()}},Mn.prototype.find=function(t,r){t==null&&this.type=="bookmark"&&(t=1);for(var s,a,c=0;c<this.lines.length;++c){var h=this.lines[c],f=Io(h.markedSpans,this);if(f.from!=null&&(s=U(r?h:Re(h),f.from),t==-1))return s;if(f.to!=null&&(a=U(r?h:Re(h),f.to),t==1))return a}return s&&{from:s,to:a}},Mn.prototype.changed=function(){var t=this,r=this.find(-1,!0),s=this,a=this.doc.cm;!r||!a||qt(a,function(){var c=r.line,h=Re(r.line),f=a1(a,h);if(f&&(cu(f),a.curOp.selectionChanged=a.curOp.forceUpdate=!0),a.curOp.updateMaxLine=!0,!Cn(s.doc,c)&&s.height!=null){var p=s.height;s.height=null;var g=Do(s)-p;g&&Gt(c,c.height+g)}yt(a,"markerChanged",a,t)})},Mn.prototype.attachLine=function(t){if(!this.lines.length&&this.doc.cm){var r=this.doc.cm.curOp;(!r.maybeHiddenMarkers||fe(r.maybeHiddenMarkers,this)==-1)&&(r.maybeUnhiddenMarkers||(r.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(t)},Mn.prototype.detachLine=function(t){if(this.lines.splice(fe(this.lines,t),1),!this.lines.length&&this.doc.cm){var r=this.doc.cm.curOp;(r.maybeHiddenMarkers||(r.maybeHiddenMarkers=[])).push(this)}},Pr(Mn);function Vi(t,r,s,a,c){if(a&&a.shared)return a3(t,r,s,a,c);if(t.cm&&!t.cm.curOp)return Ct(t.cm,Vi)(t,r,s,a,c);var h=new Mn(t,c),f=C(r,s);if(a&&Xe(a,h,!1),f>0||f==0&&h.clearWhenEmpty!==!1)return h;if(h.replacedWith&&(h.collapsed=!0,h.widgetNode=z("span",[h.replacedWith],"CodeMirror-widget"),a.handleMouseEvents||h.widgetNode.setAttribute("cm-ignore-events","true"),a.insertLeft&&(h.widgetNode.insertLeft=!0)),h.collapsed){if(G0(t,r.line,r,s,h)||r.line!=s.line&&G0(t,s.line,r,s,h))throw new Error("Inserting collapsed marker partially overlapping an existing one");K6()}h.addToHistory&&Fu(t,{from:r,to:s,origin:"markText"},t.sel,NaN);var p=r.line,g=t.cm,b;if(t.iter(p,s.line+1,function(L){g&&h.collapsed&&!g.options.lineWrapping&&Fr(L)==g.display.maxLine&&(b=!0),h.collapsed&&p!=r.line&&Gt(L,0),X6(L,new Ya(h,p==r.line?r.ch:null,p==s.line?s.ch:null),t.cm&&t.cm.curOp),++p}),h.collapsed&&t.iter(r.line,s.line+1,function(L){Cn(t,L)&&Gt(L,0)}),h.clearOnEnter&&Ce(h,"beforeCursorEnter",function(){return h.clear()}),h.readOnly&&(q6(),(t.history.done.length||t.history.undone.length)&&t.clearHistory()),h.collapsed&&(h.id=++id,h.atomic=!0),g){if(b&&(g.curOp.updateMaxLine=!0),h.collapsed)Rt(g,r.line,s.line+1);else if(h.className||h.startStyle||h.endStyle||h.css||h.attributes||h.title)for(var w=r.line;w<=s.line;w++)wn(g,w,"text");h.atomic&&Gu(g.doc),yt(g,"markerAdded",g,h)}return h}var Xo=function(t,r){this.markers=t,this.primary=r;for(var s=0;s<t.length;++s)t[s].parent=this};Xo.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var t=0;t<this.markers.length;++t)this.markers[t].clear();yt(this,"clear")}},Xo.prototype.find=function(t,r){return this.primary.find(t,r)},Pr(Xo);function a3(t,r,s,a,c){a=Xe(a),a.shared=!1;var h=[Vi(t,r,s,a,c)],f=h[0],p=a.widgetNode;return Sn(t,function(g){p&&(a.widgetNode=p.cloneNode(!0)),h.push(Vi(g,oe(g,r),oe(g,s),a,c));for(var b=0;b<g.linked.length;++b)if(g.linked[b].isParent)return;f=Oe(h)}),new Xo(h,f)}function od(t){return t.findMarks(U(t.first,0),t.clipPos(U(t.lastLine())),function(r){return r.parent})}function s3(t,r){for(var s=0;s<r.length;s++){var a=r[s],c=a.find(),h=t.clipPos(c.from),f=t.clipPos(c.to);if(C(h,f)){var p=Vi(t,h,f,a.primary,a.primary.type);a.markers.push(p),p.parent=a}}}function l3(t){for(var r=function(a){var c=t[a],h=[c.primary.doc];Sn(c.primary.doc,function(g){return h.push(g)});for(var f=0;f<c.markers.length;f++){var p=c.markers[f];fe(h,p.doc)==-1&&(p.parent=null,c.markers.splice(f--,1))}},s=0;s<t.length;s++)r(s)}var c3=0,Ft=function(t,r,s,a,c){if(!(this instanceof Ft))return new Ft(t,r,s,a,c);s==null&&(s=0),Ko.call(this,[new qo([new Oi("",null)])]),this.first=s,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=s;var h=U(s,0);this.sel=zn(h),this.history=new hs(null),this.id=++c3,this.modeOption=r,this.lineSep=a,this.direction=c=="rtl"?"rtl":"ltr",this.extend=!1,typeof t=="string"&&(t=this.splitLines(t)),M1(this,{from:h,to:h,text:t}),Et(this,zn(h),Pe)};Ft.prototype=ur(Ko.prototype,{constructor:Ft,iter:function(t,r,s){s?this.iterN(t-this.first,r-t,s):this.iterN(this.first,this.first+this.size,t)},insert:function(t,r){for(var s=0,a=0;a<r.length;++a)s+=r[a].height;this.insertInner(t-this.first,r,s)},remove:function(t,r){this.removeInner(t-this.first,r)},getValue:function(t){var r=Oo(this,this.first,this.first+this.size);return t===!1?r:r.join(t||this.lineSeparator())},setValue:wt(function(t){var r=U(this.first,0),s=this.first+this.size-1;Fi(this,{from:r,to:U(s,he(this,s).text.length),text:this.splitLines(t),origin:"setValue",full:!0},!0),this.cm&&Ro(this.cm,0,0),Et(this,zn(r),Pe)}),replaceRange:function(t,r,s,a){r=oe(this,r),s=s?oe(this,s):r,Bi(this,t,r,s,a)},getRange:function(t,r,s){var a=Nr(this,oe(this,t),oe(this,r));return s===!1?a:s===""?a.join(""):a.join(s||this.lineSeparator())},getLine:function(t){var r=this.getLineHandle(t);return r&&r.text},getLineHandle:function(t){if(Wn(this,t))return he(this,t)},getLineNumber:function(t){return Re(t)},getLineHandleVisualStart:function(t){return typeof t=="number"&&(t=he(this,t)),Fr(t)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(t){return oe(this,t)},getCursor:function(t){var r=this.sel.primary(),s;return t==null||t=="head"?s=r.head:t=="anchor"?s=r.anchor:t=="end"||t=="to"||t===!1?s=r.to():s=r.from(),s},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:wt(function(t,r,s){Wu(this,oe(this,typeof t=="number"?U(t,r||0):t),null,s)}),setSelection:wt(function(t,r,s){Wu(this,oe(this,t),oe(this,r||t),s)}),extendSelection:wt(function(t,r,s){ps(this,oe(this,t),r&&oe(this,r),s)}),extendSelections:wt(function(t,r){Zu(this,or(this,t),r)}),extendSelectionsBy:wt(function(t,r){var s=He(this.sel.ranges,t);Zu(this,or(this,s),r)}),setSelections:wt(function(t,r,s){if(t.length){for(var a=[],c=0;c<t.length;c++)a[c]=new Fe(oe(this,t[c].anchor),oe(this,t[c].head||t[c].anchor));r==null&&(r=Math.min(t.length-1,this.sel.primIndex)),Et(this,wr(this.cm,a,r),s)}}),addSelection:wt(function(t,r,s){var a=this.sel.ranges.slice(0);a.push(new Fe(oe(this,t),oe(this,r||t))),Et(this,wr(this.cm,a,a.length-1),s)}),getSelection:function(t){for(var r=this.sel.ranges,s,a=0;a<r.length;a++){var c=Nr(this,r[a].from(),r[a].to());s=s?s.concat(c):c}return t===!1?s:s.join(t||this.lineSeparator())},getSelections:function(t){for(var r=[],s=this.sel.ranges,a=0;a<s.length;a++){var c=Nr(this,s[a].from(),s[a].to());t!==!1&&(c=c.join(t||this.lineSeparator())),r[a]=c}return r},replaceSelection:function(t,r,s){for(var a=[],c=0;c<this.sel.ranges.length;c++)a[c]=t;this.replaceSelections(a,r,s||"+input")},replaceSelections:wt(function(t,r,s){for(var a=[],c=this.sel,h=0;h<c.ranges.length;h++){var f=c.ranges[h];a[h]={from:f.from(),to:f.to(),text:this.splitLines(t[h]),origin:s}}for(var p=r&&r!="end"&&Y4(this,a,r),g=a.length-1;g>=0;g--)Fi(this,a[g]);p?Uu(this,p):this.cm&&Di(this.cm)}),undo:wt(function(){bs(this,"undo")}),redo:wt(function(){bs(this,"redo")}),undoSelection:wt(function(){bs(this,"undo",!0)}),redoSelection:wt(function(){bs(this,"redo",!0)}),setExtending:function(t){this.extend=t},getExtending:function(){return this.extend},historySize:function(){for(var t=this.history,r=0,s=0,a=0;a<t.done.length;a++)t.done[a].ranges||++r;for(var c=0;c<t.undone.length;c++)t.undone[c].ranges||++s;return{undo:r,redo:s}},clearHistory:function(){var t=this;this.history=new hs(this.history),Sn(this,function(r){return r.history=t.history},!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(t){return t&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(t){return this.history.generation==(t||this.cleanGeneration)},getHistory:function(){return{done:Hi(this.history.done),undone:Hi(this.history.undone)}},setHistory:function(t){var r=this.history=new hs(this.history);r.done=Hi(t.done.slice(0),null,!0),r.undone=Hi(t.undone.slice(0),null,!0)},setGutterMarker:wt(function(t,r,s){return Go(this,t,"gutter",function(a){var c=a.gutterMarkers||(a.gutterMarkers={});return c[r]=s,!s&&Y(c)&&(a.gutterMarkers=null),!0})}),clearGutter:wt(function(t){var r=this;this.iter(function(s){s.gutterMarkers&&s.gutterMarkers[t]&&Go(r,s,"gutter",function(){return s.gutterMarkers[t]=null,Y(s.gutterMarkers)&&(s.gutterMarkers=null),!0})})}),lineInfo:function(t){var r;if(typeof t=="number"){if(!Wn(this,t)||(r=t,t=he(this,t),!t))return null}else if(r=Re(t),r==null)return null;return{line:r,handle:t,text:t.text,gutterMarkers:t.gutterMarkers,textClass:t.textClass,bgClass:t.bgClass,wrapClass:t.wrapClass,widgets:t.widgets}},addLineClass:wt(function(t,r,s){return Go(this,t,r=="gutter"?"gutter":"class",function(a){var c=r=="text"?"textClass":r=="background"?"bgClass":r=="gutter"?"gutterClass":"wrapClass";if(!a[c])a[c]=s;else{if(de(s).test(a[c]))return!1;a[c]+=" "+s}return!0})}),removeLineClass:wt(function(t,r,s){return Go(this,t,r=="gutter"?"gutter":"class",function(a){var c=r=="text"?"textClass":r=="background"?"bgClass":r=="gutter"?"gutterClass":"wrapClass",h=a[c];if(h)if(s==null)a[c]=null;else{var f=h.match(de(s));if(!f)return!1;var p=f.index+f[0].length;a[c]=h.slice(0,f.index)+(!f.index||p==h.length?"":" ")+h.slice(p)||null}else return!1;return!0})}),addLineWidget:wt(function(t,r,s){return o3(this,t,r,s)}),removeLineWidget:function(t){t.clear()},markText:function(t,r,s){return Vi(this,oe(this,t),oe(this,r),s,s&&s.type||"range")},setBookmark:function(t,r){var s={replacedWith:r&&(r.nodeType==null?r.widget:r),insertLeft:r&&r.insertLeft,clearWhenEmpty:!1,shared:r&&r.shared,handleMouseEvents:r&&r.handleMouseEvents};return t=oe(this,t),Vi(this,t,t,s,"bookmark")},findMarksAt:function(t){t=oe(this,t);var r=[],s=he(this,t.line).markedSpans;if(s)for(var a=0;a<s.length;++a){var c=s[a];(c.from==null||c.from<=t.ch)&&(c.to==null||c.to>=t.ch)&&r.push(c.marker.parent||c.marker)}return r},findMarks:function(t,r,s){t=oe(this,t),r=oe(this,r);var a=[],c=t.line;return this.iter(t.line,r.line+1,function(h){var f=h.markedSpans;if(f)for(var p=0;p<f.length;p++){var g=f[p];!(g.to!=null&&c==t.line&&t.ch>=g.to||g.from==null&&c!=t.line||g.from!=null&&c==r.line&&g.from>=r.ch)&&(!s||s(g.marker))&&a.push(g.marker.parent||g.marker)}++c}),a},getAllMarks:function(){var t=[];return this.iter(function(r){var s=r.markedSpans;if(s)for(var a=0;a<s.length;++a)s[a].from!=null&&t.push(s[a].marker)}),t},posFromIndex:function(t){var r,s=this.first,a=this.lineSeparator().length;return this.iter(function(c){var h=c.text.length+a;if(h>t)return r=t,!0;t-=h,++s}),oe(this,U(s,r))},indexFromPos:function(t){t=oe(this,t);var r=t.ch;if(t.line<this.first||t.ch<0)return 0;var s=this.lineSeparator().length;return this.iter(this.first,t.line,function(a){r+=a.text.length+s}),r},copy:function(t){var r=new Ft(Oo(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return r.scrollTop=this.scrollTop,r.scrollLeft=this.scrollLeft,r.sel=this.sel,r.extend=!1,t&&(r.history.undoDepth=this.history.undoDepth,r.setHistory(this.getHistory())),r},linkedDoc:function(t){t||(t={});var r=this.first,s=this.first+this.size;t.from!=null&&t.from>r&&(r=t.from),t.to!=null&&t.to<s&&(s=t.to);var a=new Ft(Oo(this,r,s),t.mode||this.modeOption,r,this.lineSep,this.direction);return t.sharedHist&&(a.history=this.history),(this.linked||(this.linked=[])).push({doc:a,sharedHist:t.sharedHist}),a.linked=[{doc:this,isParent:!0,sharedHist:t.sharedHist}],s3(a,od(this)),a},unlinkDoc:function(t){if(t instanceof Qe&&(t=t.doc),this.linked)for(var r=0;r<this.linked.length;++r){var s=this.linked[r];if(s.doc==t){this.linked.splice(r,1),t.unlinkDoc(this),l3(od(this));break}}if(t.history==this.history){var a=[t.id];Sn(t,function(c){return a.push(c.id)},!0),t.history=new hs(null),t.history.done=Hi(this.history.done,a),t.history.undone=Hi(this.history.undone,a)}},iterLinkedDocs:function(t){Sn(this,t)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(t){return this.lineSep?t.split(this.lineSep):Mo(t)},lineSeparator:function(){return this.lineSep||`
2984
- `},setDirection:wt(function(t){t!="rtl"&&(t="ltr"),t!=this.direction&&(this.direction=t,this.iter(function(r){return r.order=null}),this.cm&&X4(this.cm))})}),Ft.prototype.eachLine=Ft.prototype.iter;var ad=0;function u3(t){var r=this;if(sd(r),!(ct(r,t)||tn(r.display,t))){$t(t),m&&(ad=+new Date);var s=Gn(r,t,!0),a=t.dataTransfer.files;if(!(!s||r.isReadOnly()))if(a&&a.length&&window.FileReader&&window.File)for(var c=a.length,h=Array(c),f=0,p=function(){++f==c&&Ct(r,function(){s=oe(r.doc,s);var _={from:s,to:s,text:r.doc.splitLines(h.filter(function(H){return H!=null}).join(r.doc.lineSeparator())),origin:"paste"};Fi(r.doc,_),Uu(r.doc,zn(oe(r.doc,s),oe(r.doc,Ln(_))))})()},g=function(_,H){if(r.options.allowDropFileTypes&&fe(r.options.allowDropFileTypes,_.type)==-1){p();return}var W=new FileReader;W.onerror=function(){return p()},W.onload=function(){var K=W.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(K)){p();return}h[H]=K,p()},W.readAsText(_)},b=0;b<a.length;b++)g(a[b],b);else{if(r.state.draggingText&&r.doc.sel.contains(s)>-1){r.state.draggingText(t),setTimeout(function(){return r.display.input.focus()},20);return}try{var w=t.dataTransfer.getData("Text");if(w){var L;if(r.state.draggingText&&!r.state.draggingText.copy&&(L=r.listSelections()),gs(r.doc,zn(s,s)),L)for(var I=0;I<L.length;++I)Bi(r.doc,"",L[I].anchor,L[I].head,"drag");r.replaceSelection(w,"around","paste"),r.display.input.focus()}}catch{}}}}function d3(t,r){if(m&&(!t.state.draggingText||+new Date-ad<100)){Zn(r);return}if(!(ct(t,r)||tn(t.display,r))&&(r.dataTransfer.setData("Text",t.getSelection()),r.dataTransfer.effectAllowed="copyMove",r.dataTransfer.setDragImage&&!N)){var s=x("img",null,null,"position: fixed; left: 0; top: 0;");s.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",E&&(s.width=s.height=1,t.display.wrapper.appendChild(s),s._top=s.offsetTop),r.dataTransfer.setDragImage(s,0,0),E&&s.parentNode.removeChild(s)}}function h3(t,r){var s=Gn(t,r);if(s){var a=document.createDocumentFragment();Cu(t,s,a),t.display.dragCursor||(t.display.dragCursor=x("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),t.display.lineSpace.insertBefore(t.display.dragCursor,t.display.cursorDiv)),k(t.display.dragCursor,a)}}function sd(t){t.display.dragCursor&&(t.display.lineSpace.removeChild(t.display.dragCursor),t.display.dragCursor=null)}function ld(t){if(document.getElementsByClassName){for(var r=document.getElementsByClassName("CodeMirror"),s=[],a=0;a<r.length;a++){var c=r[a].CodeMirror;c&&s.push(c)}s.length&&s[0].operation(function(){for(var h=0;h<s.length;h++)t(s[h])})}}var cd=!1;function f3(){cd||(p3(),cd=!0)}function p3(){var t;Ce(window,"resize",function(){t==null&&(t=setTimeout(function(){t=null,ld(g3)},100))}),Ce(window,"blur",function(){return ld(Pi)})}function g3(t){var r=t.display;r.cachedCharWidth=r.cachedTextHeight=r.cachedPaddingH=null,r.scrollbarsClipped=!1,t.setSize()}for(var Tn={3:"Pause",8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"PrintScrn",45:"Insert",46:"Delete",59:";",61:"=",91:"Mod",92:"Mod",93:"Mod",106:"*",107:"=",109:"-",110:".",111:"/",145:"ScrollLock",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",224:"Mod",63232:"Up",63233:"Down",63234:"Left",63235:"Right",63272:"Delete",63273:"Home",63275:"End",63276:"PageUp",63277:"PageDown",63302:"Insert"},Jo=0;Jo<10;Jo++)Tn[Jo+48]=Tn[Jo+96]=String(Jo);for(var ms=65;ms<=90;ms++)Tn[ms]=String.fromCharCode(ms);for(var Qo=1;Qo<=12;Qo++)Tn[Qo+111]=Tn[Qo+63235]="F"+Qo;var rn={};rn.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},rn.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},rn.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},rn.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]},rn.default=ue?rn.macDefault:rn.pcDefault;function v3(t){var r=t.split(/-(?!$)/);t=r[r.length-1];for(var s,a,c,h,f=0;f<r.length-1;f++){var p=r[f];if(/^(cmd|meta|m)$/i.test(p))h=!0;else if(/^a(lt)?$/i.test(p))s=!0;else if(/^(c|ctrl|control)$/i.test(p))a=!0;else if(/^s(hift)?$/i.test(p))c=!0;else throw new Error("Unrecognized modifier name: "+p)}return s&&(t="Alt-"+t),a&&(t="Ctrl-"+t),h&&(t="Cmd-"+t),c&&(t="Shift-"+t),t}function b3(t){var r={};for(var s in t)if(t.hasOwnProperty(s)){var a=t[s];if(/^(name|fallthrough|(de|at)tach)$/.test(s))continue;if(a=="..."){delete t[s];continue}for(var c=He(s.split(" "),v3),h=0;h<c.length;h++){var f=void 0,p=void 0;h==c.length-1?(p=c.join(" "),f=a):(p=c.slice(0,h+1).join(" "),f="...");var g=r[p];if(!g)r[p]=f;else if(g!=f)throw new Error("Inconsistent bindings for "+p)}delete t[s]}for(var b in r)t[b]=r[b];return t}function Zi(t,r,s,a){r=ys(r);var c=r.call?r.call(t,a):r[t];if(c===!1)return"nothing";if(c==="...")return"multi";if(c!=null&&s(c))return"handled";if(r.fallthrough){if(Object.prototype.toString.call(r.fallthrough)!="[object Array]")return Zi(t,r.fallthrough,s,a);for(var h=0;h<r.fallthrough.length;h++){var f=Zi(t,r.fallthrough[h],s,a);if(f)return f}}}function ud(t){var r=typeof t=="string"?t:Tn[t.keyCode];return r=="Ctrl"||r=="Alt"||r=="Shift"||r=="Mod"}function dd(t,r,s){var a=t;return r.altKey&&a!="Alt"&&(t="Alt-"+t),(Ze?r.metaKey:r.ctrlKey)&&a!="Ctrl"&&(t="Ctrl-"+t),(Ze?r.ctrlKey:r.metaKey)&&a!="Mod"&&(t="Cmd-"+t),!s&&r.shiftKey&&a!="Shift"&&(t="Shift-"+t),t}function hd(t,r){if(E&&t.keyCode==34&&t.char)return!1;var s=Tn[t.keyCode];return s==null||t.altGraphKey?!1:(t.keyCode==3&&t.code&&(s=t.code),dd(s,t,r))}function ys(t){return typeof t=="string"?rn[t]:t}function Wi(t,r){for(var s=t.doc.sel.ranges,a=[],c=0;c<s.length;c++){for(var h=r(s[c]);a.length&&C(h.from,Oe(a).to)<=0;){var f=a.pop();if(C(f.from,h.from)<0){h.from=f.from;break}}a.push(h)}qt(t,function(){for(var p=a.length-1;p>=0;p--)Bi(t.doc,"",a[p].from,a[p].to,"+delete");Di(t)})}function O1(t,r,s){var a=It(t.text,r+s,s);return a<0||a>t.text.length?null:a}function E1(t,r,s){var a=O1(t,r.ch,s);return a==null?null:new U(r.line,a,s<0?"after":"before")}function _1(t,r,s,a,c){if(t){r.doc.direction=="rtl"&&(c=-c);var h=jt(s,r.doc.direction);if(h){var f=c<0?Oe(h):h[0],p=c<0==(f.level==1),g=p?"after":"before",b;if(f.level>0||r.doc.direction=="rtl"){var w=_i(r,s);b=c<0?s.text.length-1:0;var L=Vr(r,w,b).top;b=Ar(function(I){return Vr(r,w,I).top==L},c<0==(f.level==1)?f.from:f.to-1,b),g=="before"&&(b=O1(s,b,1))}else b=c<0?f.to:f.from;return new U(a,b,g)}}return new U(a,c<0?s.text.length:0,c<0?"before":"after")}function m3(t,r,s,a){var c=jt(r,t.doc.direction);if(!c)return E1(r,s,a);s.ch>=r.text.length?(s.ch=r.text.length,s.sticky="before"):s.ch<=0&&(s.ch=0,s.sticky="after");var h=nt(c,s.ch,s.sticky),f=c[h];if(t.doc.direction=="ltr"&&f.level%2==0&&(a>0?f.to>s.ch:f.from<s.ch))return E1(r,s,a);var p=function(J,ae){return O1(r,J instanceof U?J.ch:J,ae)},g,b=function(J){return t.options.lineWrapping?(g=g||_i(t,r),vu(t,r,g,J)):{begin:0,end:r.text.length}},w=b(s.sticky=="before"?p(s,-1):s.ch);if(t.doc.direction=="rtl"||f.level==1){var L=f.level==1==a<0,I=p(s,L?1:-1);if(I!=null&&(L?I<=f.to&&I<=w.end:I>=f.from&&I>=w.begin)){var _=L?"before":"after";return new U(s.line,I,_)}}var H=function(J,ae,Q){for(var ce=function(Ye,xt){return xt?new U(s.line,p(Ye,1),"before"):new U(s.line,Ye,"after")};J>=0&&J<c.length;J+=ae){var ye=c[J],ve=ae>0==(ye.level!=1),ke=ve?Q.begin:p(Q.end,-1);if(ye.from<=ke&&ke<ye.to||(ke=ve?ye.from:p(ye.to,-1),Q.begin<=ke&&ke<Q.end))return ce(ke,ve)}},W=H(h+a,a,w);if(W)return W;var K=a>0?w.end:p(w.begin,-1);return K!=null&&!(a>0&&K==r.text.length)&&(W=H(a>0?0:c.length-1,a,b(K)),W)?W:null}var ea={selectAll:Yu,singleSelection:function(t){return t.setSelection(t.getCursor("anchor"),t.getCursor("head"),Pe)},killLine:function(t){return Wi(t,function(r){if(r.empty()){var s=he(t.doc,r.head.line).text.length;return r.head.ch==s&&r.head.line<t.lastLine()?{from:r.head,to:U(r.head.line+1,0)}:{from:r.head,to:U(r.head.line,s)}}else return{from:r.from(),to:r.to()}})},deleteLine:function(t){return Wi(t,function(r){return{from:U(r.from().line,0),to:oe(t.doc,U(r.to().line+1,0))}})},delLineLeft:function(t){return Wi(t,function(r){return{from:U(r.from().line,0),to:r.from()}})},delWrappedLineLeft:function(t){return Wi(t,function(r){var s=t.charCoords(r.head,"div").top+5,a=t.coordsChar({left:0,top:s},"div");return{from:a,to:r.from()}})},delWrappedLineRight:function(t){return Wi(t,function(r){var s=t.charCoords(r.head,"div").top+5,a=t.coordsChar({left:t.display.lineDiv.offsetWidth+100,top:s},"div");return{from:r.from(),to:a}})},undo:function(t){return t.undo()},redo:function(t){return t.redo()},undoSelection:function(t){return t.undoSelection()},redoSelection:function(t){return t.redoSelection()},goDocStart:function(t){return t.extendSelection(U(t.firstLine(),0))},goDocEnd:function(t){return t.extendSelection(U(t.lastLine()))},goLineStart:function(t){return t.extendSelectionsBy(function(r){return fd(t,r.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(t){return t.extendSelectionsBy(function(r){return pd(t,r.head)},{origin:"+move",bias:1})},goLineEnd:function(t){return t.extendSelectionsBy(function(r){return y3(t,r.head.line)},{origin:"+move",bias:-1})},goLineRight:function(t){return t.extendSelectionsBy(function(r){var s=t.cursorCoords(r.head,"div").top+5;return t.coordsChar({left:t.display.lineDiv.offsetWidth+100,top:s},"div")},Se)},goLineLeft:function(t){return t.extendSelectionsBy(function(r){var s=t.cursorCoords(r.head,"div").top+5;return t.coordsChar({left:0,top:s},"div")},Se)},goLineLeftSmart:function(t){return t.extendSelectionsBy(function(r){var s=t.cursorCoords(r.head,"div").top+5,a=t.coordsChar({left:0,top:s},"div");return a.ch<t.getLine(a.line).search(/\S/)?pd(t,r.head):a},Se)},goLineUp:function(t){return t.moveV(-1,"line")},goLineDown:function(t){return t.moveV(1,"line")},goPageUp:function(t){return t.moveV(-1,"page")},goPageDown:function(t){return t.moveV(1,"page")},goCharLeft:function(t){return t.moveH(-1,"char")},goCharRight:function(t){return t.moveH(1,"char")},goColumnLeft:function(t){return t.moveH(-1,"column")},goColumnRight:function(t){return t.moveH(1,"column")},goWordLeft:function(t){return t.moveH(-1,"word")},goGroupRight:function(t){return t.moveH(1,"group")},goGroupLeft:function(t){return t.moveH(-1,"group")},goWordRight:function(t){return t.moveH(1,"word")},delCharBefore:function(t){return t.deleteH(-1,"codepoint")},delCharAfter:function(t){return t.deleteH(1,"char")},delWordBefore:function(t){return t.deleteH(-1,"word")},delWordAfter:function(t){return t.deleteH(1,"word")},delGroupBefore:function(t){return t.deleteH(-1,"group")},delGroupAfter:function(t){return t.deleteH(1,"group")},indentAuto:function(t){return t.indentSelection("smart")},indentMore:function(t){return t.indentSelection("add")},indentLess:function(t){return t.indentSelection("subtract")},insertTab:function(t){return t.replaceSelection(" ")},insertSoftTab:function(t){for(var r=[],s=t.listSelections(),a=t.options.tabSize,c=0;c<s.length;c++){var h=s[c].from(),f=Je(t.getLine(h.line),h.ch,a);r.push(bn(a-f%a))}t.replaceSelections(r)},defaultTab:function(t){t.somethingSelected()?t.indentSelection("add"):t.execCommand("insertTab")},transposeChars:function(t){return qt(t,function(){for(var r=t.listSelections(),s=[],a=0;a<r.length;a++)if(r[a].empty()){var c=r[a].head,h=he(t.doc,c.line).text;if(h){if(c.ch==h.length&&(c=new U(c.line,c.ch-1)),c.ch>0)c=new U(c.line,c.ch+1),t.replaceRange(h.charAt(c.ch-1)+h.charAt(c.ch-2),U(c.line,c.ch-2),c,"+transpose");else if(c.line>t.doc.first){var f=he(t.doc,c.line-1).text;f&&(c=new U(c.line,1),t.replaceRange(h.charAt(0)+t.doc.lineSeparator()+f.charAt(f.length-1),U(c.line-1,f.length-1),c,"+transpose"))}}s.push(new Fe(c,c))}t.setSelections(s)})},newlineAndIndent:function(t){return qt(t,function(){for(var r=t.listSelections(),s=r.length-1;s>=0;s--)t.replaceRange(t.doc.lineSeparator(),r[s].anchor,r[s].head,"+input");r=t.listSelections();for(var a=0;a<r.length;a++)t.indentLine(r[a].from().line,null,!0);Di(t)})},openLine:function(t){return t.replaceSelection(`
2985
- `,"start")},toggleOverwrite:function(t){return t.toggleOverwrite()}};function fd(t,r){var s=he(t.doc,r),a=Fr(s);return a!=s&&(r=Re(a)),_1(!0,t,a,r,1)}function y3(t,r){var s=he(t.doc,r),a=r4(s);return a!=s&&(r=Re(a)),_1(!0,t,s,r,-1)}function pd(t,r){var s=fd(t,r.line),a=he(t.doc,s.line),c=jt(a,t.doc.direction);if(!c||c[0].level==0){var h=Math.max(s.ch,a.text.search(/\S/)),f=r.line==s.line&&r.ch<=h&&r.ch;return U(s.line,f?0:h,s.sticky)}return s}function Cs(t,r,s){if(typeof r=="string"&&(r=ea[r],!r))return!1;t.display.input.ensurePolled();var a=t.display.shift,c=!1;try{t.isReadOnly()&&(t.state.suppressEdits=!0),s&&(t.display.shift=!1),c=r(t)!=$e}finally{t.display.shift=a,t.state.suppressEdits=!1}return c}function C3(t,r,s){for(var a=0;a<t.state.keyMaps.length;a++){var c=Zi(r,t.state.keyMaps[a],s,t);if(c)return c}return t.options.extraKeys&&Zi(r,t.options.extraKeys,s,t)||Zi(r,t.options.keyMap,s,t)}var w3=new Ue;function ta(t,r,s,a){var c=t.state.keySeq;if(c){if(ud(r))return"handled";if(/\'$/.test(r)?t.state.keySeq=null:w3.set(50,function(){t.state.keySeq==c&&(t.state.keySeq=null,t.display.input.reset())}),gd(t,c+" "+r,s,a))return!0}return gd(t,r,s,a)}function gd(t,r,s,a){var c=C3(t,r,a);return c=="multi"&&(t.state.keySeq=r),c=="handled"&&yt(t,"keyHandled",t,r,s),(c=="handled"||c=="multi")&&($t(s),p1(t)),!!c}function vd(t,r){var s=hd(r,!0);return s?r.shiftKey&&!t.state.keySeq?ta(t,"Shift-"+s,r,function(a){return Cs(t,a,!0)})||ta(t,s,r,function(a){if(typeof a=="string"?/^go[A-Z]/.test(a):a.motion)return Cs(t,a)}):ta(t,s,r,function(a){return Cs(t,a)}):!1}function x3(t,r,s){return ta(t,"'"+s+"'",r,function(a){return Cs(t,a,!0)})}var I1=null;function bd(t){var r=this;if(!(t.target&&t.target!=r.display.input.getField())&&(r.curOp.focus=be(),!ct(r,t))){m&&y<11&&t.keyCode==27&&(t.returnValue=!1);var s=t.keyCode;r.display.shift=s==16||t.shiftKey;var a=vd(r,t);E&&(I1=a?s:null,!a&&s==88&&!qa&&(ue?t.metaKey:t.ctrlKey)&&r.replaceSelection("",null,"cut")),l&&!ue&&!a&&s==46&&t.shiftKey&&!t.ctrlKey&&document.execCommand&&document.execCommand("cut"),s==18&&!/\bCodeMirror-crosshair\b/.test(r.display.lineDiv.className)&&z3(r)}}function z3(t){var r=t.display.lineDiv;Me(r,"CodeMirror-crosshair");function s(a){(a.keyCode==18||!a.altKey)&&(ie(r,"CodeMirror-crosshair"),Nt(document,"keyup",s),Nt(document,"mouseover",s))}Ce(document,"keyup",s),Ce(document,"mouseover",s)}function md(t){t.keyCode==16&&(this.doc.sel.shift=!1),ct(this,t)}function yd(t){var r=this;if(!(t.target&&t.target!=r.display.input.getField())&&!(tn(r.display,t)||ct(r,t)||t.ctrlKey&&!t.altKey||ue&&t.metaKey)){var s=t.keyCode,a=t.charCode;if(E&&s==I1){I1=null,$t(t);return}if(!(E&&(!t.which||t.which<10)&&vd(r,t))){var c=String.fromCharCode(a==null?s:a);c!="\b"&&(x3(r,t,c)||r.display.input.onKeyPress(t))}}}var L3=400,A1=function(t,r,s){this.time=t,this.pos=r,this.button=s};A1.prototype.compare=function(t,r,s){return this.time+L3>t&&C(r,this.pos)==0&&s==this.button};var ra,na;function S3(t,r){var s=+new Date;return na&&na.compare(s,t,r)?(ra=na=null,"triple"):ra&&ra.compare(s,t,r)?(na=new A1(s,t,r),ra=null,"double"):(ra=new A1(s,t,r),na=null,"single")}function Cd(t){var r=this,s=r.display;if(!(ct(r,t)||s.activeTouch&&s.input.supportsTouch())){if(s.input.ensurePolled(),s.shift=t.shiftKey,tn(s,t)){T||(s.scroller.draggable=!1,setTimeout(function(){return s.scroller.draggable=!0},100));return}if(!P1(r,t)){var a=Gn(r,t),c=Ua(t),h=a?S3(a,c):"single";window.focus(),c==1&&r.state.selectingText&&r.state.selectingText(t),!(a&&M3(r,c,a,h,t))&&(c==1?a?k3(r,a,h,t):mn(t)==s.scroller&&$t(t):c==2?(a&&ps(r.doc,a),setTimeout(function(){return s.input.focus()},20)):c==3&&(We?r.display.input.onContextMenu(t):g1(r)))}}}function M3(t,r,s,a,c){var h="Click";return a=="double"?h="Double"+h:a=="triple"&&(h="Triple"+h),h=(r==1?"Left":r==2?"Middle":"Right")+h,ta(t,dd(h,c),c,function(f){if(typeof f=="string"&&(f=ea[f]),!f)return!1;var p=!1;try{t.isReadOnly()&&(t.state.suppressEdits=!0),p=f(t,s)!=$e}finally{t.state.suppressEdits=!1}return p})}function T3(t,r,s){var a=t.getOption("configureMouse"),c=a?a(t,r,s):{};if(c.unit==null){var h=xe?s.shiftKey&&s.metaKey:s.altKey;c.unit=h?"rectangle":r=="single"?"char":r=="double"?"word":"line"}return(c.extend==null||t.doc.extend)&&(c.extend=t.doc.extend||s.shiftKey),c.addNew==null&&(c.addNew=ue?s.metaKey:s.ctrlKey),c.moveOnDrag==null&&(c.moveOnDrag=!(ue?s.altKey:s.ctrlKey)),c}function k3(t,r,s,a){m?setTimeout(Qt(wu,t),0):t.curOp.focus=be();var c=T3(t,s,a),h=t.doc.sel,f;t.options.dragDrop&&Lo&&!t.isReadOnly()&&s=="single"&&(f=h.contains(r))>-1&&(C((f=h.ranges[f]).from(),r)<0||r.xRel>0)&&(C(f.to(),r)>0||r.xRel<0)?$3(t,a,r,c):O3(t,a,r,c)}function $3(t,r,s,a){var c=t.display,h=!1,f=Ct(t,function(b){T&&(c.scroller.draggable=!1),t.state.draggingText=!1,t.state.delayingBlurEvent&&(t.hasFocus()?t.state.delayingBlurEvent=!1:g1(t)),Nt(c.wrapper.ownerDocument,"mouseup",f),Nt(c.wrapper.ownerDocument,"mousemove",p),Nt(c.scroller,"dragstart",g),Nt(c.scroller,"drop",f),h||($t(b),a.addNew||ps(t.doc,s,null,null,a.extend),T&&!N||m&&y==9?setTimeout(function(){c.wrapper.ownerDocument.body.focus({preventScroll:!0}),c.input.focus()},20):c.input.focus())}),p=function(b){h=h||Math.abs(r.clientX-b.clientX)+Math.abs(r.clientY-b.clientY)>=10},g=function(){return h=!0};T&&(c.scroller.draggable=!0),t.state.draggingText=f,f.copy=!a.moveOnDrag,Ce(c.wrapper.ownerDocument,"mouseup",f),Ce(c.wrapper.ownerDocument,"mousemove",p),Ce(c.scroller,"dragstart",g),Ce(c.scroller,"drop",f),t.state.delayingBlurEvent=!0,setTimeout(function(){return c.input.focus()},20),c.scroller.dragDrop&&c.scroller.dragDrop()}function wd(t,r,s){if(s=="char")return new Fe(r,r);if(s=="word")return t.findWordAt(r);if(s=="line")return new Fe(U(r.line,0),oe(t.doc,U(r.line+1,0)));var a=s(t,r);return new Fe(a.from,a.to)}function O3(t,r,s,a){m&&g1(t);var c=t.display,h=t.doc;$t(r);var f,p,g=h.sel,b=g.ranges;if(a.addNew&&!a.extend?(p=h.sel.contains(s),p>-1?f=b[p]:f=new Fe(s,s)):(f=h.sel.primary(),p=h.sel.primIndex),a.unit=="rectangle")a.addNew||(f=new Fe(s,s)),s=Gn(t,r,!0,!0),p=-1;else{var w=wd(t,s,a.unit);a.extend?f=k1(f,w.anchor,w.head,a.extend):f=w}a.addNew?p==-1?(p=b.length,Et(h,wr(t,b.concat([f]),p),{scroll:!1,origin:"*mouse"})):b.length>1&&b[p].empty()&&a.unit=="char"&&!a.extend?(Et(h,wr(t,b.slice(0,p).concat(b.slice(p+1)),0),{scroll:!1,origin:"*mouse"}),g=h.sel):$1(h,p,f,Ee):(p=0,Et(h,new sr([f],0),Ee),g=h.sel);var L=s;function I(Q){if(C(L,Q)!=0)if(L=Q,a.unit=="rectangle"){for(var ce=[],ye=t.options.tabSize,ve=Je(he(h,s.line).text,s.ch,ye),ke=Je(he(h,Q.line).text,Q.ch,ye),Ye=Math.min(ve,ke),xt=Math.max(ve,ke),rt=Math.min(s.line,Q.line),Kt=Math.min(t.lastLine(),Math.max(s.line,Q.line));rt<=Kt;rt++){var Bt=he(h,rt).text,ut=bt(Bt,Ye,ye);Ye==xt?ce.push(new Fe(U(rt,ut),U(rt,ut))):Bt.length>ut&&ce.push(new Fe(U(rt,ut),U(rt,bt(Bt,xt,ye))))}ce.length||ce.push(new Fe(s,s)),Et(h,wr(t,g.ranges.slice(0,p).concat(ce),p),{origin:"*mouse",scroll:!1}),t.scrollIntoView(Q)}else{var Vt=f,Mt=wd(t,Q,a.unit),ft=Vt.anchor,dt;C(Mt.anchor,ft)>0?(dt=Mt.head,ft=Le(Vt.from(),Mt.anchor)):(dt=Mt.anchor,ft=q(Vt.to(),Mt.head));var ot=g.ranges.slice(0);ot[p]=E3(t,new Fe(oe(h,ft),dt)),Et(h,wr(t,ot,p),Ee)}}var _=c.wrapper.getBoundingClientRect(),H=0;function W(Q){var ce=++H,ye=Gn(t,Q,!0,a.unit=="rectangle");if(ye)if(C(ye,L)!=0){t.curOp.focus=be(),I(ye);var ve=ls(c,h);(ye.line>=ve.to||ye.line<ve.from)&&setTimeout(Ct(t,function(){H==ce&&W(Q)}),150)}else{var ke=Q.clientY<_.top?-20:Q.clientY>_.bottom?20:0;ke&&setTimeout(Ct(t,function(){H==ce&&(c.scroller.scrollTop+=ke,W(Q))}),50)}}function K(Q){t.state.selectingText=!1,H=1/0,Q&&($t(Q),c.input.focus()),Nt(c.wrapper.ownerDocument,"mousemove",J),Nt(c.wrapper.ownerDocument,"mouseup",ae),h.history.lastSelOrigin=null}var J=Ct(t,function(Q){Q.buttons===0||!Ua(Q)?K(Q):W(Q)}),ae=Ct(t,K);t.state.selectingText=ae,Ce(c.wrapper.ownerDocument,"mousemove",J),Ce(c.wrapper.ownerDocument,"mouseup",ae)}function E3(t,r){var s=r.anchor,a=r.head,c=he(t.doc,s.line);if(C(s,a)==0&&s.sticky==a.sticky)return r;var h=jt(c);if(!h)return r;var f=nt(h,s.ch,s.sticky),p=h[f];if(p.from!=s.ch&&p.to!=s.ch)return r;var g=f+(p.from==s.ch==(p.level!=1)?0:1);if(g==0||g==h.length)return r;var b;if(a.line!=s.line)b=(a.line-s.line)*(t.doc.direction=="ltr"?1:-1)>0;else{var w=nt(h,a.ch,a.sticky),L=w-f||(a.ch-s.ch)*(p.level==1?-1:1);w==g-1||w==g?b=L<0:b=L>0}var I=h[g+(b?-1:0)],_=b==(I.level==1),H=_?I.from:I.to,W=_?"after":"before";return s.ch==H&&s.sticky==W?r:new Fe(new U(s.line,H,W),a)}function xd(t,r,s,a){var c,h;if(r.touches)c=r.touches[0].clientX,h=r.touches[0].clientY;else try{c=r.clientX,h=r.clientY}catch{return!1}if(c>=Math.floor(t.display.gutters.getBoundingClientRect().right))return!1;a&&$t(r);var f=t.display,p=f.lineDiv.getBoundingClientRect();if(h>p.bottom||!St(t,s))return rr(r);h-=p.top-f.viewOffset;for(var g=0;g<t.display.gutterSpecs.length;++g){var b=f.gutters.childNodes[g];if(b&&b.getBoundingClientRect().right>=c){var w=Hr(t.doc,h),L=t.display.gutterSpecs[g];return ze(t,s,t,w,L.className,r),rr(r)}}}function P1(t,r){return xd(t,r,"gutterClick",!0)}function zd(t,r){tn(t.display,r)||_3(t,r)||ct(t,r,"contextmenu")||We||t.display.input.onContextMenu(r)}function _3(t,r){return St(t,"gutterContextMenu")?xd(t,r,"gutterContextMenu",!1):!1}function Ld(t){t.display.wrapper.className=t.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+t.options.theme.replace(/(^|\s)\s*/g," cm-s-"),No(t)}var Ui={toString:function(){return"CodeMirror.Init"}},Sd={},ws={};function I3(t){var r=t.optionHandlers;function s(a,c,h,f){t.defaults[a]=c,h&&(r[a]=f?function(p,g,b){b!=Ui&&h(p,g,b)}:h)}t.defineOption=s,t.Init=Ui,s("value","",function(a,c){return a.setValue(c)},!0),s("mode",null,function(a,c){a.doc.modeOption=c,S1(a)},!0),s("indentUnit",2,S1,!0),s("indentWithTabs",!1),s("smartIndent",!0),s("tabSize",4,function(a){Uo(a),No(a),Rt(a)},!0),s("lineSeparator",null,function(a,c){if(a.doc.lineSep=c,!!c){var h=[],f=a.doc.first;a.doc.iter(function(g){for(var b=0;;){var w=g.text.indexOf(c,b);if(w==-1)break;b=w+c.length,h.push(U(f,w))}f++});for(var p=h.length-1;p>=0;p--)Bi(a.doc,c,h[p],U(h[p].line,h[p].ch+c.length))}}),s("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(a,c,h){a.state.specialChars=new RegExp(c.source+(c.test(" ")?"":"| "),"g"),h!=Ui&&a.refresh()}),s("specialCharPlaceholder",l4,function(a){return a.refresh()},!0),s("electricChars",!0),s("inputStyle",re?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),s("spellcheck",!1,function(a,c){return a.getInputField().spellcheck=c},!0),s("autocorrect",!1,function(a,c){return a.getInputField().autocorrect=c},!0),s("autocapitalize",!1,function(a,c){return a.getInputField().autocapitalize=c},!0),s("rtlMoveVisually",!qe),s("wholeLineUpdateBefore",!0),s("theme","default",function(a){Ld(a),Wo(a)},!0),s("keyMap","default",function(a,c,h){var f=ys(c),p=h!=Ui&&ys(h);p&&p.detach&&p.detach(a,f),f.attach&&f.attach(a,p||null)}),s("extraKeys",null),s("configureMouse",null),s("lineWrapping",!1,P3,!0),s("gutters",[],function(a,c){a.display.gutterSpecs=z1(c,a.options.lineNumbers),Wo(a)},!0),s("fixedGutter",!0,function(a,c){a.display.gutters.style.left=c?h1(a.display)+"px":"0",a.refresh()},!0),s("coverGutterNextToScrollbar",!1,function(a){return Ni(a)},!0),s("scrollbarStyle","native",function(a){Tu(a),Ni(a),a.display.scrollbars.setScrollTop(a.doc.scrollTop),a.display.scrollbars.setScrollLeft(a.doc.scrollLeft)},!0),s("lineNumbers",!1,function(a,c){a.display.gutterSpecs=z1(a.options.gutters,c),Wo(a)},!0),s("firstLineNumber",1,Wo,!0),s("lineNumberFormatter",function(a){return a},Wo,!0),s("showCursorWhenSelecting",!1,Ho,!0),s("resetSelectionOnContextMenu",!0),s("lineWiseCopyCut",!0),s("pasteLinesPerSelection",!0),s("selectionsMayTouch",!1),s("readOnly",!1,function(a,c){c=="nocursor"&&(Pi(a),a.display.input.blur()),a.display.input.readOnlyChanged(c)}),s("screenReaderLabel",null,function(a,c){c=c===""?null:c,a.display.input.screenReaderLabelChanged(c)}),s("disableInput",!1,function(a,c){c||a.display.input.reset()},!0),s("dragDrop",!0,A3),s("allowDropFileTypes",null),s("cursorBlinkRate",530),s("cursorScrollMargin",0),s("cursorHeight",1,Ho,!0),s("singleCursorHeightPerLine",!0,Ho,!0),s("workTime",100),s("workDelay",100),s("flattenSpans",!0,Uo,!0),s("addModeClass",!1,Uo,!0),s("pollInterval",100),s("undoDepth",200,function(a,c){return a.doc.history.undoDepth=c}),s("historyEventDelay",1250),s("viewportMargin",10,function(a){return a.refresh()},!0),s("maxHighlightLength",1e4,Uo,!0),s("moveInputWithCursor",!0,function(a,c){c||a.display.input.resetPosition()}),s("tabindex",null,function(a,c){return a.display.input.getField().tabIndex=c||""}),s("autofocus",null),s("direction","ltr",function(a,c){return a.doc.setDirection(c)},!0),s("phrases",null)}function A3(t,r,s){var a=s&&s!=Ui;if(!r!=!a){var c=t.display.dragFunctions,h=r?Ce:Nt;h(t.display.scroller,"dragstart",c.start),h(t.display.scroller,"dragenter",c.enter),h(t.display.scroller,"dragover",c.over),h(t.display.scroller,"dragleave",c.leave),h(t.display.scroller,"drop",c.drop)}}function P3(t){t.options.lineWrapping?(Me(t.display.wrapper,"CodeMirror-wrap"),t.display.sizer.style.minWidth="",t.display.sizerWidth=null):(ie(t.display.wrapper,"CodeMirror-wrap"),r1(t)),f1(t),Rt(t),No(t),setTimeout(function(){return Ni(t)},100)}function Qe(t,r){var s=this;if(!(this instanceof Qe))return new Qe(t,r);this.options=r=r?Xe(r):{},Xe(Sd,r,!1);var a=r.value;typeof a=="string"?a=new Ft(a,r.mode,null,r.lineSeparator,r.direction):r.mode&&(a.modeOption=r.mode),this.doc=a;var c=new Qe.inputStyles[r.inputStyle](this),h=this.display=new q4(t,a,c,r);h.wrapper.CodeMirror=this,Ld(this),r.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Tu(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new Ue,keySeq:null,specialChars:null},r.autofocus&&!re&&h.input.focus(),m&&y<11&&setTimeout(function(){return s.display.input.reset(!0)},20),D3(this),f3(),Xn(this),this.curOp.forceUpdate=!0,Nu(this,a),r.autofocus&&!re||this.hasFocus()?setTimeout(function(){s.hasFocus()&&!s.state.focused&&v1(s)},20):Pi(this);for(var f in ws)ws.hasOwnProperty(f)&&ws[f](this,r[f],Ui);Ou(this),r.finishInit&&r.finishInit(this);for(var p=0;p<D1.length;++p)D1[p](this);Jn(this),T&&r.lineWrapping&&getComputedStyle(h.lineDiv).textRendering=="optimizelegibility"&&(h.lineDiv.style.textRendering="auto")}Qe.defaults=Sd,Qe.optionHandlers=ws;function D3(t){var r=t.display;Ce(r.scroller,"mousedown",Ct(t,Cd)),m&&y<11?Ce(r.scroller,"dblclick",Ct(t,function(g){if(!ct(t,g)){var b=Gn(t,g);if(!(!b||P1(t,g)||tn(t.display,g))){$t(g);var w=t.findWordAt(b);ps(t.doc,w.anchor,w.head)}}})):Ce(r.scroller,"dblclick",function(g){return ct(t,g)||$t(g)}),Ce(r.scroller,"contextmenu",function(g){return zd(t,g)}),Ce(r.input.getField(),"contextmenu",function(g){r.scroller.contains(g.target)||zd(t,g)});var s,a={end:0};function c(){r.activeTouch&&(s=setTimeout(function(){return r.activeTouch=null},1e3),a=r.activeTouch,a.end=+new Date)}function h(g){if(g.touches.length!=1)return!1;var b=g.touches[0];return b.radiusX<=1&&b.radiusY<=1}function f(g,b){if(b.left==null)return!0;var w=b.left-g.left,L=b.top-g.top;return w*w+L*L>20*20}Ce(r.scroller,"touchstart",function(g){if(!ct(t,g)&&!h(g)&&!P1(t,g)){r.input.ensurePolled(),clearTimeout(s);var b=+new Date;r.activeTouch={start:b,moved:!1,prev:b-a.end<=300?a:null},g.touches.length==1&&(r.activeTouch.left=g.touches[0].pageX,r.activeTouch.top=g.touches[0].pageY)}}),Ce(r.scroller,"touchmove",function(){r.activeTouch&&(r.activeTouch.moved=!0)}),Ce(r.scroller,"touchend",function(g){var b=r.activeTouch;if(b&&!tn(r,g)&&b.left!=null&&!b.moved&&new Date-b.start<300){var w=t.coordsChar(r.activeTouch,"page"),L;!b.prev||f(b,b.prev)?L=new Fe(w,w):!b.prev.prev||f(b,b.prev.prev)?L=t.findWordAt(w):L=new Fe(U(w.line,0),oe(t.doc,U(w.line+1,0))),t.setSelection(L.anchor,L.head),t.focus(),$t(g)}c()}),Ce(r.scroller,"touchcancel",c),Ce(r.scroller,"scroll",function(){r.scroller.clientHeight&&(Fo(t,r.scroller.scrollTop),Kn(t,r.scroller.scrollLeft,!0),ze(t,"scroll",t))}),Ce(r.scroller,"mousewheel",function(g){return Iu(t,g)}),Ce(r.scroller,"DOMMouseScroll",function(g){return Iu(t,g)}),Ce(r.wrapper,"scroll",function(){return r.wrapper.scrollTop=r.wrapper.scrollLeft=0}),r.dragFunctions={enter:function(g){ct(t,g)||Zn(g)},over:function(g){ct(t,g)||(h3(t,g),Zn(g))},start:function(g){return d3(t,g)},drop:Ct(t,u3),leave:function(g){ct(t,g)||sd(t)}};var p=r.input.getField();Ce(p,"keyup",function(g){return md.call(t,g)}),Ce(p,"keydown",Ct(t,bd)),Ce(p,"keypress",Ct(t,yd)),Ce(p,"focus",function(g){return v1(t,g)}),Ce(p,"blur",function(g){return Pi(t,g)})}var D1=[];Qe.defineInitHook=function(t){return D1.push(t)};function ia(t,r,s,a){var c=t.doc,h;s==null&&(s="add"),s=="smart"&&(c.mode.indent?h=_o(t,r).state:s="prev");var f=t.options.tabSize,p=he(c,r),g=Je(p.text,null,f);p.stateAfter&&(p.stateAfter=null);var b=p.text.match(/^\s*/)[0],w;if(!a&&!/\S/.test(p.text))w=0,s="not";else if(s=="smart"&&(w=c.mode.indent(h,p.text.slice(b.length),p.text),w==$e||w>150)){if(!a)return;s="prev"}s=="prev"?r>c.first?w=Je(he(c,r-1).text,null,f):w=0:s=="add"?w=g+t.options.indentUnit:s=="subtract"?w=g-t.options.indentUnit:typeof s=="number"&&(w=g+s),w=Math.max(0,w);var L="",I=0;if(t.options.indentWithTabs)for(var _=Math.floor(w/f);_;--_)I+=f,L+=" ";if(I<w&&(L+=bn(w-I)),L!=b)return Bi(c,L,U(r,0),U(r,b.length),"+input"),p.stateAfter=null,!0;for(var H=0;H<c.sel.ranges.length;H++){var W=c.sel.ranges[H];if(W.head.line==r&&W.head.ch<b.length){var K=U(r,b.length);$1(c,H,new Fe(K,K));break}}}var xr=null;function xs(t){xr=t}function N1(t,r,s,a,c){var h=t.doc;t.display.shift=!1,a||(a=h.sel);var f=+new Date-200,p=c=="paste"||t.state.pasteIncoming>f,g=Mo(r),b=null;if(p&&a.ranges.length>1)if(xr&&xr.text.join(`
2983
+ left: `+r.left+"px; width: "+Math.max(2,r.right-r.left)+"px;");t.display.lineSpace.appendChild(h),h.scrollIntoView(c),t.display.lineSpace.removeChild(h)}}}function N4(t,r,s,a){a==null&&(a=0);var c;!t.options.lineWrapping&&r==s&&(s=r.sticky=="before"?U(r.line,r.ch+1,"before"):r,r=r.ch?U(r.line,r.sticky=="before"?r.ch-1:r.ch,"after"):r);for(var h=0;h<5;h++){var f=!1,p=Cr(t,r),g=!s||s==r?p:Cr(t,s);c={left:Math.min(p.left,g.left),top:Math.min(p.top,g.top)-a,right:Math.max(p.left,g.left),bottom:Math.max(p.bottom,g.bottom)+a};var b=b1(t,c),w=t.doc.scrollTop,L=t.doc.scrollLeft;if(b.scrollTop!=null&&(Fo(t,b.scrollTop),Math.abs(t.doc.scrollTop-w)>1&&(f=!0)),b.scrollLeft!=null&&(Kn(t,b.scrollLeft),Math.abs(t.doc.scrollLeft-L)>1&&(f=!0)),!f)break}return c}function H4(t,r){var s=b1(t,r);s.scrollTop!=null&&Fo(t,s.scrollTop),s.scrollLeft!=null&&Kn(t,s.scrollLeft)}function b1(t,r){var s=t.display,a=Ii(t.display);r.top<0&&(r.top=0);var c=t.curOp&&t.curOp.scrollTop!=null?t.curOp.scrollTop:s.scroller.scrollTop,h=o1(t),f={};r.bottom-r.top>h&&(r.bottom=r.top+h);var p=t.doc.height+i1(s),g=r.top<a,b=r.bottom>p-a;if(r.top<c)f.scrollTop=g?0:r.top;else if(r.bottom>c+h){var w=Math.min(r.top,(b?p:r.bottom)-h);w!=c&&(f.scrollTop=w)}var L=t.options.fixedGutter?0:s.gutters.offsetWidth,I=t.curOp&&t.curOp.scrollLeft!=null?t.curOp.scrollLeft:s.scroller.scrollLeft-L,_=Un(t)-s.gutters.offsetWidth,H=r.right-r.left>_;return H&&(r.right=r.left+_),r.left<10?f.scrollLeft=0:r.left<I?f.scrollLeft=Math.max(0,r.left+L-(H?0:10)):r.right>_+I-3&&(f.scrollLeft=r.right+(H?0:10)-_),f}function m1(t,r){r!=null&&(cs(t),t.curOp.scrollTop=(t.curOp.scrollTop==null?t.doc.scrollTop:t.curOp.scrollTop)+r)}function Di(t){cs(t);var r=t.getCursor();t.curOp.scrollToPos={from:r,to:r,margin:t.options.cursorScrollMargin}}function Ro(t,r,s){(r!=null||s!=null)&&cs(t),r!=null&&(t.curOp.scrollLeft=r),s!=null&&(t.curOp.scrollTop=s)}function R4(t,r){cs(t),t.curOp.scrollToPos=r}function cs(t){var r=t.curOp.scrollToPos;if(r){t.curOp.scrollToPos=null;var s=gu(t,r.from),a=gu(t,r.to);Lu(t,s,a,r.margin)}}function Lu(t,r,s,a){var c=b1(t,{left:Math.min(r.left,s.left),top:Math.min(r.top,s.top)-a,right:Math.max(r.right,s.right),bottom:Math.max(r.bottom,s.bottom)+a});Ro(t,c.scrollLeft,c.scrollTop)}function Fo(t,r){Math.abs(t.doc.scrollTop-r)<2||(l||C1(t,{top:r}),Su(t,r,!0),l&&C1(t),Zo(t,100))}function Su(t,r,s){r=Math.max(0,Math.min(t.display.scroller.scrollHeight-t.display.scroller.clientHeight,r)),!(t.display.scroller.scrollTop==r&&!s)&&(t.doc.scrollTop=r,t.display.scrollbars.setScrollTop(r),t.display.scroller.scrollTop!=r&&(t.display.scroller.scrollTop=r))}function Kn(t,r,s,a){r=Math.max(0,Math.min(r,t.display.scroller.scrollWidth-t.display.scroller.clientWidth)),!((s?r==t.doc.scrollLeft:Math.abs(t.doc.scrollLeft-r)<2)&&!a)&&(t.doc.scrollLeft=r,Ou(t),t.display.scroller.scrollLeft!=r&&(t.display.scroller.scrollLeft=r),t.display.scrollbars.setScrollLeft(r))}function Bo(t){var r=t.display,s=r.gutters.offsetWidth,a=Math.round(t.doc.height+i1(t.display));return{clientHeight:r.scroller.clientHeight,viewHeight:r.wrapper.clientHeight,scrollWidth:r.scroller.scrollWidth,clientWidth:r.scroller.clientWidth,viewWidth:r.wrapper.clientWidth,barLeft:t.options.fixedGutter?s:0,docHeight:a,scrollHeight:a+Br(t)+r.barHeight,nativeBarWidth:r.nativeBarWidth,gutterWidth:s}}var Yn=function(t,r,s){this.cm=s;var a=this.vert=x("div",[x("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),c=this.horiz=x("div",[x("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");a.tabIndex=c.tabIndex=-1,t(a),t(c),Ce(a,"scroll",function(){a.clientHeight&&r(a.scrollTop,"vertical")}),Ce(c,"scroll",function(){c.clientWidth&&r(c.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,m&&y<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Yn.prototype.update=function(t){var r=t.scrollWidth>t.clientWidth+1,s=t.scrollHeight>t.clientHeight+1,a=t.nativeBarWidth;if(s){this.vert.style.display="block",this.vert.style.bottom=r?a+"px":"0";var c=t.viewHeight-(r?a:0);this.vert.firstChild.style.height=Math.max(0,t.scrollHeight-t.clientHeight+c)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(r){this.horiz.style.display="block",this.horiz.style.right=s?a+"px":"0",this.horiz.style.left=t.barLeft+"px";var h=t.viewWidth-t.barLeft-(s?a:0);this.horiz.firstChild.style.width=Math.max(0,t.scrollWidth-t.clientWidth+h)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&t.clientHeight>0&&(a==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:s?a:0,bottom:r?a:0}},Yn.prototype.setScrollLeft=function(t){this.horiz.scrollLeft!=t&&(this.horiz.scrollLeft=t),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Yn.prototype.setScrollTop=function(t){this.vert.scrollTop!=t&&(this.vert.scrollTop=t),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Yn.prototype.zeroWidthHack=function(){var t=ue&&!G?"12px":"18px";this.horiz.style.height=this.vert.style.width=t,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new Ue,this.disableVert=new Ue},Yn.prototype.enableZeroWidthBar=function(t,r,s){t.style.pointerEvents="auto";function a(){var c=t.getBoundingClientRect(),h=s=="vert"?document.elementFromPoint(c.right-1,(c.top+c.bottom)/2):document.elementFromPoint((c.right+c.left)/2,c.bottom-1);h!=t?t.style.pointerEvents="none":r.set(1e3,a)}r.set(1e3,a)},Yn.prototype.clear=function(){var t=this.horiz.parentNode;t.removeChild(this.horiz),t.removeChild(this.vert)};var Vo=function(){};Vo.prototype.update=function(){return{bottom:0,right:0}},Vo.prototype.setScrollLeft=function(){},Vo.prototype.setScrollTop=function(){},Vo.prototype.clear=function(){};function Ni(t,r){r||(r=Bo(t));var s=t.display.barWidth,a=t.display.barHeight;Mu(t,r);for(var c=0;c<4&&s!=t.display.barWidth||a!=t.display.barHeight;c++)s!=t.display.barWidth&&t.options.lineWrapping&&ss(t),Mu(t,Bo(t)),s=t.display.barWidth,a=t.display.barHeight}function Mu(t,r){var s=t.display,a=s.scrollbars.update(r);s.sizer.style.paddingRight=(s.barWidth=a.right)+"px",s.sizer.style.paddingBottom=(s.barHeight=a.bottom)+"px",s.heightForcer.style.borderBottom=a.bottom+"px solid transparent",a.right&&a.bottom?(s.scrollbarFiller.style.display="block",s.scrollbarFiller.style.height=a.bottom+"px",s.scrollbarFiller.style.width=a.right+"px"):s.scrollbarFiller.style.display="",a.bottom&&t.options.coverGutterNextToScrollbar&&t.options.fixedGutter?(s.gutterFiller.style.display="block",s.gutterFiller.style.height=a.bottom+"px",s.gutterFiller.style.width=r.gutterWidth+"px"):s.gutterFiller.style.display=""}var Tu={native:Yn,null:Vo};function ku(t){t.display.scrollbars&&(t.display.scrollbars.clear(),t.display.scrollbars.addClass&&ie(t.display.wrapper,t.display.scrollbars.addClass)),t.display.scrollbars=new Tu[t.options.scrollbarStyle](function(r){t.display.wrapper.insertBefore(r,t.display.scrollbarFiller),Ce(r,"mousedown",function(){t.state.focused&&setTimeout(function(){return t.display.input.focus()},0)}),r.setAttribute("cm-not-content","true")},function(r,s){s=="horizontal"?Kn(t,r):Fo(t,r)},t),t.display.scrollbars.addClass&&Me(t.display.wrapper,t.display.scrollbars.addClass)}var F4=0;function Xn(t){t.curOp={cm:t,viewChanged:!1,startHeight:t.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++F4,markArrays:null},b4(t.curOp)}function Jn(t){var r=t.curOp;r&&y4(r,function(s){for(var a=0;a<s.ops.length;a++)s.ops[a].cm.curOp=null;B4(s)})}function B4(t){for(var r=t.ops,s=0;s<r.length;s++)V4(r[s]);for(var a=0;a<r.length;a++)Z4(r[a]);for(var c=0;c<r.length;c++)W4(r[c]);for(var h=0;h<r.length;h++)U4(r[h]);for(var f=0;f<r.length;f++)j4(r[f])}function V4(t){var r=t.cm,s=r.display;q4(r),t.updateMaxLine&&r1(r),t.mustUpdate=t.viewChanged||t.forceUpdate||t.scrollTop!=null||t.scrollToPos&&(t.scrollToPos.from.line<s.viewFrom||t.scrollToPos.to.line>=s.viewTo)||s.maxLineChanged&&r.options.lineWrapping,t.update=t.mustUpdate&&new us(r,t.mustUpdate&&{top:t.scrollTop,ensure:t.scrollToPos},t.forceUpdate)}function Z4(t){t.updatedDisplay=t.mustUpdate&&y1(t.cm,t.update)}function W4(t){var r=t.cm,s=r.display;t.updatedDisplay&&ss(r),t.barMeasure=Bo(r),s.maxLineChanged&&!r.options.lineWrapping&&(t.adjustWidthTo=su(r,s.maxLine,s.maxLine.text.length).left+3,r.display.sizerWidth=t.adjustWidthTo,t.barMeasure.scrollWidth=Math.max(s.scroller.clientWidth,s.sizer.offsetLeft+t.adjustWidthTo+Br(r)+r.display.barWidth),t.maxScrollLeft=Math.max(0,s.sizer.offsetLeft+t.adjustWidthTo-Un(r))),(t.updatedDisplay||t.selectionChanged)&&(t.preparedSelection=s.input.prepareSelection())}function U4(t){var r=t.cm;t.adjustWidthTo!=null&&(r.display.sizer.style.minWidth=t.adjustWidthTo+"px",t.maxScrollLeft<r.doc.scrollLeft&&Kn(r,Math.min(r.display.scroller.scrollLeft,t.maxScrollLeft),!0),r.display.maxLineChanged=!1);var s=t.focus&&t.focus==be();t.preparedSelection&&r.display.input.showSelection(t.preparedSelection,s),(t.updatedDisplay||t.startHeight!=r.doc.height)&&Ni(r,t.barMeasure),t.updatedDisplay&&x1(r,t.barMeasure),t.selectionChanged&&p1(r),r.state.focused&&t.updateInput&&r.display.input.reset(t.typing),s&&xu(t.cm)}function j4(t){var r=t.cm,s=r.display,a=r.doc;if(t.updatedDisplay&&$u(r,t.update),s.wheelStartX!=null&&(t.scrollTop!=null||t.scrollLeft!=null||t.scrollToPos)&&(s.wheelStartX=s.wheelStartY=null),t.scrollTop!=null&&Su(r,t.scrollTop,t.forceScroll),t.scrollLeft!=null&&Kn(r,t.scrollLeft,!0,!0),t.scrollToPos){var c=N4(r,oe(a,t.scrollToPos.from),oe(a,t.scrollToPos.to),t.scrollToPos.margin);D4(r,c)}var h=t.maybeHiddenMarkers,f=t.maybeUnhiddenMarkers;if(h)for(var p=0;p<h.length;++p)h[p].lines.length||ze(h[p],"hide");if(f)for(var g=0;g<f.length;++g)f[g].lines.length&&ze(f[g],"unhide");s.wrapper.offsetHeight&&(a.scrollTop=r.display.scroller.scrollTop),t.changeObjs&&ze(r,"changes",r,t.changeObjs),t.update&&t.update.finish()}function qt(t,r){if(t.curOp)return r();Xn(t);try{return r()}finally{Jn(t)}}function Ct(t,r){return function(){if(t.curOp)return r.apply(t,arguments);Xn(t);try{return r.apply(t,arguments)}finally{Jn(t)}}}function At(t){return function(){if(this.curOp)return t.apply(this,arguments);Xn(this);try{return t.apply(this,arguments)}finally{Jn(this)}}}function wt(t){return function(){var r=this.cm;if(!r||r.curOp)return t.apply(this,arguments);Xn(r);try{return t.apply(this,arguments)}finally{Jn(r)}}}function Zo(t,r){t.doc.highlightFrontier<t.display.viewTo&&t.state.highlight.set(r,Qt(G4,t))}function G4(t){var r=t.doc;if(!(r.highlightFrontier>=t.display.viewTo)){var s=+new Date+t.options.workTime,a=_o(t,r.highlightFrontier),c=[];r.iter(a.line,Math.min(r.first+r.size,t.display.viewTo+500),function(h){if(a.line>=t.display.viewFrom){var f=h.styles,p=h.text.length>t.options.maxHighlightLength?ir(r.mode,a.state):null,g=P0(t,h,a,!0);p&&(a.state=p),h.styles=g.styles;var b=h.styleClasses,w=g.classes;w?h.styleClasses=w:b&&(h.styleClasses=null);for(var L=!f||f.length!=h.styles.length||b!=w&&(!b||!w||b.bgClass!=w.bgClass||b.textClass!=w.textClass),I=0;!L&&I<f.length;++I)L=f[I]!=h.styles[I];L&&c.push(a.line),h.stateAfter=a.save(),a.nextLine()}else h.text.length<=t.options.maxHighlightLength&&Yl(t,h.text,a),h.stateAfter=a.line%5==0?a.save():null,a.nextLine();if(+new Date>s)return Zo(t,t.options.workDelay),!0}),r.highlightFrontier=a.line,r.modeFrontier=Math.max(r.modeFrontier,a.line),c.length&&qt(t,function(){for(var h=0;h<c.length;h++)wn(t,c[h],"text")})}}var us=function(t,r,s){var a=t.display;this.viewport=r,this.visible=ls(a,t.doc,r),this.editorIsHidden=!a.wrapper.offsetWidth,this.wrapperHeight=a.wrapper.clientHeight,this.wrapperWidth=a.wrapper.clientWidth,this.oldDisplayWidth=Un(t),this.force=s,this.dims=d1(t),this.events=[]};us.prototype.signal=function(t,r){St(t,r)&&this.events.push(arguments)},us.prototype.finish=function(){for(var t=0;t<this.events.length;t++)ze.apply(null,this.events[t])};function q4(t){var r=t.display;!r.scrollbarsClipped&&r.scroller.offsetWidth&&(r.nativeBarWidth=r.scroller.offsetWidth-r.scroller.clientWidth,r.heightForcer.style.height=Br(t)+"px",r.sizer.style.marginBottom=-r.nativeBarWidth+"px",r.sizer.style.borderRightWidth=Br(t)+"px",r.scrollbarsClipped=!0)}function K4(t){if(t.hasFocus())return null;var r=be();if(!r||!X(t.display.lineDiv,r))return null;var s={activeElt:r};if(window.getSelection){var a=window.getSelection();a.anchorNode&&a.extend&&X(t.display.lineDiv,a.anchorNode)&&(s.anchorNode=a.anchorNode,s.anchorOffset=a.anchorOffset,s.focusNode=a.focusNode,s.focusOffset=a.focusOffset)}return s}function Y4(t){if(!(!t||!t.activeElt||t.activeElt==be())&&(t.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(t.activeElt.nodeName)&&t.anchorNode&&X(document.body,t.anchorNode)&&X(document.body,t.focusNode))){var r=window.getSelection(),s=document.createRange();s.setEnd(t.anchorNode,t.anchorOffset),s.collapse(!1),r.removeAllRanges(),r.addRange(s),r.extend(t.focusNode,t.focusOffset)}}function y1(t,r){var s=t.display,a=t.doc;if(r.editorIsHidden)return xn(t),!1;if(!r.force&&r.visible.from>=s.viewFrom&&r.visible.to<=s.viewTo&&(s.updateLineNumbers==null||s.updateLineNumbers>=s.viewTo)&&s.renderedView==s.view&&yu(t)==0)return!1;Eu(t)&&(xn(t),r.dims=d1(t));var c=a.first+a.size,h=Math.max(r.visible.from-t.options.viewportMargin,a.first),f=Math.min(c,r.visible.to+t.options.viewportMargin);s.viewFrom<h&&h-s.viewFrom<20&&(h=Math.max(a.first,s.viewFrom)),s.viewTo>f&&s.viewTo-f<20&&(f=Math.min(c,s.viewTo)),Qr&&(h=e1(t.doc,h),f=K0(t.doc,f));var p=h!=s.viewFrom||f!=s.viewTo||s.lastWrapHeight!=r.wrapperHeight||s.lastWrapWidth!=r.wrapperWidth;A4(t,h,f),s.viewOffset=en(he(t.doc,s.viewFrom)),t.display.mover.style.top=s.viewOffset+"px";var g=yu(t);if(!p&&g==0&&!r.force&&s.renderedView==s.view&&(s.updateLineNumbers==null||s.updateLineNumbers>=s.viewTo))return!1;var b=K4(t);return g>4&&(s.lineDiv.style.display="none"),X4(t,s.updateLineNumbers,r.dims),g>4&&(s.lineDiv.style.display=""),s.renderedView=s.view,Y4(b),Z(s.cursorDiv),Z(s.selectionDiv),s.gutters.style.height=s.sizer.style.minHeight=0,p&&(s.lastWrapHeight=r.wrapperHeight,s.lastWrapWidth=r.wrapperWidth,Zo(t,400)),s.updateLineNumbers=null,!0}function $u(t,r){for(var s=r.viewport,a=!0;;a=!1){if(!a||!t.options.lineWrapping||r.oldDisplayWidth==Un(t)){if(s&&s.top!=null&&(s={top:Math.min(t.doc.height+i1(t.display)-o1(t),s.top)}),r.visible=ls(t.display,t.doc,s),r.visible.from>=t.display.viewFrom&&r.visible.to<=t.display.viewTo)break}else a&&(r.visible=ls(t.display,t.doc,s));if(!y1(t,r))break;ss(t);var c=Bo(t);Ho(t),Ni(t,c),x1(t,c),r.force=!1}r.signal(t,"update",t),(t.display.viewFrom!=t.display.reportedViewFrom||t.display.viewTo!=t.display.reportedViewTo)&&(r.signal(t,"viewportChange",t,t.display.viewFrom,t.display.viewTo),t.display.reportedViewFrom=t.display.viewFrom,t.display.reportedViewTo=t.display.viewTo)}function C1(t,r){var s=new us(t,r);if(y1(t,s)){ss(t),$u(t,s);var a=Bo(t);Ho(t),Ni(t,a),x1(t,a),s.finish()}}function X4(t,r,s){var a=t.display,c=t.options.lineNumbers,h=a.lineDiv,f=h.firstChild;function p(H){var W=H.nextSibling;return T&&ue&&t.display.currentWheelTarget==H?H.style.display="none":H.parentNode.removeChild(H),W}for(var g=a.view,b=a.viewFrom,w=0;w<g.length;w++){var L=g[w];if(!L.hidden)if(!L.node||L.node.parentNode!=h){var I=L4(t,L,b,s);h.insertBefore(I,f)}else{for(;f!=L.node;)f=p(f);var _=c&&r!=null&&r<=b&&L.lineNumber;L.changes&&(fe(L.changes,"gutter")>-1&&(_=!1),eu(t,L,b,s)),_&&(Z(L.lineNumber),L.lineNumber.appendChild(document.createTextNode(Eo(t.options,b)))),f=L.node.nextSibling}b+=L.size}for(;f;)f=p(f)}function w1(t){var r=t.gutters.offsetWidth;t.sizer.style.marginLeft=r+"px",yt(t,"gutterChanged",t)}function x1(t,r){t.display.sizer.style.minHeight=r.docHeight+"px",t.display.heightForcer.style.top=r.docHeight+"px",t.display.gutters.style.height=r.docHeight+t.display.barHeight+Br(t)+"px"}function Ou(t){var r=t.display,s=r.view;if(!(!r.alignWidgets&&(!r.gutters.firstChild||!t.options.fixedGutter))){for(var a=h1(r)-r.scroller.scrollLeft+t.doc.scrollLeft,c=r.gutters.offsetWidth,h=a+"px",f=0;f<s.length;f++)if(!s[f].hidden){t.options.fixedGutter&&(s[f].gutter&&(s[f].gutter.style.left=h),s[f].gutterBackground&&(s[f].gutterBackground.style.left=h));var p=s[f].alignable;if(p)for(var g=0;g<p.length;g++)p[g].style.left=h}t.options.fixedGutter&&(r.gutters.style.left=a+c+"px")}}function Eu(t){if(!t.options.lineNumbers)return!1;var r=t.doc,s=Eo(t.options,r.first+r.size-1),a=t.display;if(s.length!=a.lineNumChars){var c=a.measure.appendChild(x("div",[x("div",s)],"CodeMirror-linenumber CodeMirror-gutter-elt")),h=c.firstChild.offsetWidth,f=c.offsetWidth-h;return a.lineGutter.style.width="",a.lineNumInnerWidth=Math.max(h,a.lineGutter.offsetWidth-f)+1,a.lineNumWidth=a.lineNumInnerWidth+f,a.lineNumChars=a.lineNumInnerWidth?s.length:-1,a.lineGutter.style.width=a.lineNumWidth+"px",w1(t.display),!0}return!1}function z1(t,r){for(var s=[],a=!1,c=0;c<t.length;c++){var h=t[c],f=null;if(typeof h!="string"&&(f=h.style,h=h.className),h=="CodeMirror-linenumbers")if(r)a=!0;else continue;s.push({className:h,style:f})}return r&&!a&&s.push({className:"CodeMirror-linenumbers",style:null}),s}function _u(t){var r=t.gutters,s=t.gutterSpecs;Z(r),t.lineGutter=null;for(var a=0;a<s.length;++a){var c=s[a],h=c.className,f=c.style,p=r.appendChild(x("div",null,"CodeMirror-gutter "+h));f&&(p.style.cssText=f),h=="CodeMirror-linenumbers"&&(t.lineGutter=p,p.style.width=(t.lineNumWidth||1)+"px")}r.style.display=s.length?"":"none",w1(t)}function Wo(t){_u(t.display),Rt(t),Ou(t)}function J4(t,r,s,a){var c=this;this.input=s,c.scrollbarFiller=x("div",null,"CodeMirror-scrollbar-filler"),c.scrollbarFiller.setAttribute("cm-not-content","true"),c.gutterFiller=x("div",null,"CodeMirror-gutter-filler"),c.gutterFiller.setAttribute("cm-not-content","true"),c.lineDiv=z("div",null,"CodeMirror-code"),c.selectionDiv=x("div",null,null,"position: relative; z-index: 1"),c.cursorDiv=x("div",null,"CodeMirror-cursors"),c.measure=x("div",null,"CodeMirror-measure"),c.lineMeasure=x("div",null,"CodeMirror-measure"),c.lineSpace=z("div",[c.measure,c.lineMeasure,c.selectionDiv,c.cursorDiv,c.lineDiv],null,"position: relative; outline: none");var h=z("div",[c.lineSpace],"CodeMirror-lines");c.mover=x("div",[h],null,"position: relative"),c.sizer=x("div",[c.mover],"CodeMirror-sizer"),c.sizerWidth=null,c.heightForcer=x("div",null,null,"position: absolute; height: "+we+"px; width: 1px;"),c.gutters=x("div",null,"CodeMirror-gutters"),c.lineGutter=null,c.scroller=x("div",[c.sizer,c.heightForcer,c.gutters],"CodeMirror-scroll"),c.scroller.setAttribute("tabIndex","-1"),c.wrapper=x("div",[c.scrollbarFiller,c.gutterFiller,c.scroller],"CodeMirror"),c.wrapper.setAttribute("translate","no"),m&&y<8&&(c.gutters.style.zIndex=-1,c.scroller.style.paddingRight=0),!T&&!(l&&re)&&(c.scroller.draggable=!0),t&&(t.appendChild?t.appendChild(c.wrapper):t(c.wrapper)),c.viewFrom=c.viewTo=r.first,c.reportedViewFrom=c.reportedViewTo=r.first,c.view=[],c.renderedView=null,c.externalMeasured=null,c.viewOffset=0,c.lastWrapHeight=c.lastWrapWidth=0,c.updateLineNumbers=null,c.nativeBarWidth=c.barHeight=c.barWidth=0,c.scrollbarsClipped=!1,c.lineNumWidth=c.lineNumInnerWidth=c.lineNumChars=null,c.alignWidgets=!1,c.cachedCharWidth=c.cachedTextHeight=c.cachedPaddingH=null,c.maxLine=null,c.maxLineLength=0,c.maxLineChanged=!1,c.wheelDX=c.wheelDY=c.wheelStartX=c.wheelStartY=null,c.shift=!1,c.selForContextMenu=null,c.activeTouch=null,c.gutterSpecs=z1(a.gutters,a.lineNumbers),_u(c),s.init(c)}var ds=0,ar=null;m?ar=-.53:l?ar=15:$?ar=-.7:N&&(ar=-1/3);function Iu(t){var r=t.wheelDeltaX,s=t.wheelDeltaY;return r==null&&t.detail&&t.axis==t.HORIZONTAL_AXIS&&(r=t.detail),s==null&&t.detail&&t.axis==t.VERTICAL_AXIS?s=t.detail:s==null&&(s=t.wheelDelta),{x:r,y:s}}function Q4(t){var r=Iu(t);return r.x*=ar,r.y*=ar,r}function Au(t,r){var s=Iu(r),a=s.x,c=s.y,h=t.display,f=h.scroller,p=f.scrollWidth>f.clientWidth,g=f.scrollHeight>f.clientHeight;if(a&&p||c&&g){if(c&&ue&&T){e:for(var b=r.target,w=h.view;b!=f;b=b.parentNode)for(var L=0;L<w.length;L++)if(w[L].node==b){t.display.currentWheelTarget=b;break e}}if(a&&!l&&!E&&ar!=null){c&&g&&Fo(t,Math.max(0,f.scrollTop+c*ar)),Kn(t,Math.max(0,f.scrollLeft+a*ar)),(!c||c&&g)&&$t(r),h.wheelStartX=null;return}if(c&&ar!=null){var I=c*ar,_=t.doc.scrollTop,H=_+h.wrapper.clientHeight;I<0?_=Math.max(0,_+I-50):H=Math.min(t.doc.height,H+I+50),C1(t,{top:_,bottom:H})}ds<20&&(h.wheelStartX==null?(h.wheelStartX=f.scrollLeft,h.wheelStartY=f.scrollTop,h.wheelDX=a,h.wheelDY=c,setTimeout(function(){if(h.wheelStartX!=null){var W=f.scrollLeft-h.wheelStartX,K=f.scrollTop-h.wheelStartY,J=K&&h.wheelDY&&K/h.wheelDY||W&&h.wheelDX&&W/h.wheelDX;h.wheelStartX=h.wheelStartY=null,J&&(ar=(ar*ds+J)/(ds+1),++ds)}},200)):(h.wheelDX+=a,h.wheelDY+=c))}}var sr=function(t,r){this.ranges=t,this.primIndex=r};sr.prototype.primary=function(){return this.ranges[this.primIndex]},sr.prototype.equals=function(t){if(t==this)return!0;if(t.primIndex!=this.primIndex||t.ranges.length!=this.ranges.length)return!1;for(var r=0;r<this.ranges.length;r++){var s=this.ranges[r],a=t.ranges[r];if(!M(s.anchor,a.anchor)||!M(s.head,a.head))return!1}return!0},sr.prototype.deepCopy=function(){for(var t=[],r=0;r<this.ranges.length;r++)t[r]=new Fe(V(this.ranges[r].anchor),V(this.ranges[r].head));return new sr(t,this.primIndex)},sr.prototype.somethingSelected=function(){for(var t=0;t<this.ranges.length;t++)if(!this.ranges[t].empty())return!0;return!1},sr.prototype.contains=function(t,r){r||(r=t);for(var s=0;s<this.ranges.length;s++){var a=this.ranges[s];if(C(r,a.from())>=0&&C(t,a.to())<=0)return s}return-1};var Fe=function(t,r){this.anchor=t,this.head=r};Fe.prototype.from=function(){return Le(this.anchor,this.head)},Fe.prototype.to=function(){return q(this.anchor,this.head)},Fe.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function wr(t,r,s){var a=t&&t.options.selectionsMayTouch,c=r[s];r.sort(function(I,_){return C(I.from(),_.from())}),s=fe(r,c);for(var h=1;h<r.length;h++){var f=r[h],p=r[h-1],g=C(p.to(),f.from());if(a&&!f.empty()?g>0:g>=0){var b=Le(p.from(),f.from()),w=q(p.to(),f.to()),L=p.empty()?f.from()==f.head:p.from()==p.head;h<=s&&--s,r.splice(--h,2,new Fe(L?w:b,L?b:w))}}return new sr(r,s)}function zn(t,r){return new sr([new Fe(t,r||t)],0)}function Ln(t){return t.text?U(t.from.line+t.text.length-1,Oe(t.text).length+(t.text.length==1?t.from.ch:0)):t.to}function Pu(t,r){if(C(t,r.from)<0)return t;if(C(t,r.to)<=0)return Ln(r);var s=t.line+r.text.length-(r.to.line-r.from.line)-1,a=t.ch;return t.line==r.to.line&&(a+=Ln(r).ch-r.to.ch),U(s,a)}function L1(t,r){for(var s=[],a=0;a<t.sel.ranges.length;a++){var c=t.sel.ranges[a];s.push(new Fe(Pu(c.anchor,r),Pu(c.head,r)))}return wr(t.cm,s,t.sel.primIndex)}function Du(t,r,s){return t.line==r.line?U(s.line,t.ch-r.ch+s.ch):U(s.line+(t.line-r.line),t.ch)}function e3(t,r,s){for(var a=[],c=U(t.first,0),h=c,f=0;f<r.length;f++){var p=r[f],g=Du(p.from,c,h),b=Du(Ln(p),c,h);if(c=p.to,h=b,s=="around"){var w=t.sel.ranges[f],L=C(w.head,w.anchor)<0;a[f]=new Fe(L?b:g,L?g:b)}else a[f]=new Fe(g,g)}return new sr(a,t.sel.primIndex)}function S1(t){t.doc.mode=ki(t.options,t.doc.modeOption),Uo(t)}function Uo(t){t.doc.iter(function(r){r.stateAfter&&(r.stateAfter=null),r.styles&&(r.styles=null)}),t.doc.modeFrontier=t.doc.highlightFrontier=t.doc.first,Zo(t,100),t.state.modeGen++,t.curOp&&Rt(t)}function Nu(t,r){return r.from.ch==0&&r.to.ch==0&&Oe(r.text)==""&&(!t.cm||t.cm.options.wholeLineUpdateBefore)}function M1(t,r,s,a){function c(ae){return s?s[ae]:null}function h(ae,Q,ce){l4(ae,Q,ce,a),yt(ae,"change",ae,r)}function f(ae,Q){for(var ce=[],ye=ae;ye<Q;++ye)ce.push(new Oi(b[ye],c(ye),a));return ce}var p=r.from,g=r.to,b=r.text,w=he(t,p.line),L=he(t,g.line),I=Oe(b),_=c(b.length-1),H=g.line-p.line;if(r.full)t.insert(0,f(0,b.length)),t.remove(b.length,t.size-b.length);else if(Nu(t,r)){var W=f(0,b.length-1);h(L,L.text,_),H&&t.remove(p.line,H),W.length&&t.insert(p.line,W)}else if(w==L)if(b.length==1)h(w,w.text.slice(0,p.ch)+I+w.text.slice(g.ch),_);else{var K=f(1,b.length-1);K.push(new Oi(I+w.text.slice(g.ch),_,a)),h(w,w.text.slice(0,p.ch)+b[0],c(0)),t.insert(p.line+1,K)}else if(b.length==1)h(w,w.text.slice(0,p.ch)+b[0]+L.text.slice(g.ch),c(0)),t.remove(p.line+1,H);else{h(w,w.text.slice(0,p.ch)+b[0],c(0)),h(L,I+L.text.slice(g.ch),_);var J=f(1,b.length-1);H>1&&t.remove(p.line+1,H-1),t.insert(p.line+1,J)}yt(t,"change",t,r)}function Sn(t,r,s){function a(c,h,f){if(c.linked)for(var p=0;p<c.linked.length;++p){var g=c.linked[p];if(g.doc!=h){var b=f&&g.sharedHist;s&&!b||(r(g.doc,b),a(g.doc,c,b))}}}a(t,null,!0)}function Hu(t,r){if(r.cm)throw new Error("This document is already in use.");t.doc=r,r.cm=t,f1(t),S1(t),Ru(t),t.options.direction=r.direction,t.options.lineWrapping||r1(t),t.options.mode=r.modeOption,Rt(t)}function Ru(t){(t.doc.direction=="rtl"?Me:ie)(t.display.lineDiv,"CodeMirror-rtl")}function t3(t){qt(t,function(){Ru(t),Rt(t)})}function hs(t){this.done=[],this.undone=[],this.undoDepth=t?t.undoDepth:1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=t?t.maxGeneration:1}function T1(t,r){var s={from:V(r.from),to:Ln(r),text:Nr(t,r.from,r.to)};return Vu(t,s,r.from.line,r.to.line+1),Sn(t,function(a){return Vu(a,s,r.from.line,r.to.line+1)},!0),s}function Fu(t){for(;t.length;){var r=Oe(t);if(r.ranges)t.pop();else break}}function r3(t,r){if(r)return Fu(t.done),Oe(t.done);if(t.done.length&&!Oe(t.done).ranges)return Oe(t.done);if(t.done.length>1&&!t.done[t.done.length-2].ranges)return t.done.pop(),Oe(t.done)}function Bu(t,r,s,a){var c=t.history;c.undone.length=0;var h=+new Date,f,p;if((c.lastOp==a||c.lastOrigin==r.origin&&r.origin&&(r.origin.charAt(0)=="+"&&c.lastModTime>h-(t.cm?t.cm.options.historyEventDelay:500)||r.origin.charAt(0)=="*"))&&(f=r3(c,c.lastOp==a)))p=Oe(f.changes),C(r.from,r.to)==0&&C(r.from,p.to)==0?p.to=Ln(r):f.changes.push(T1(t,r));else{var g=Oe(c.done);for((!g||!g.ranges)&&fs(t.sel,c.done),f={changes:[T1(t,r)],generation:c.generation},c.done.push(f);c.done.length>c.undoDepth;)c.done.shift(),c.done[0].ranges||c.done.shift()}c.done.push(s),c.generation=++c.maxGeneration,c.lastModTime=c.lastSelTime=h,c.lastOp=c.lastSelOp=a,c.lastOrigin=c.lastSelOrigin=r.origin,p||ze(t,"historyAdded")}function n3(t,r,s,a){var c=r.charAt(0);return c=="*"||c=="+"&&s.ranges.length==a.ranges.length&&s.somethingSelected()==a.somethingSelected()&&new Date-t.history.lastSelTime<=(t.cm?t.cm.options.historyEventDelay:500)}function i3(t,r,s,a){var c=t.history,h=a&&a.origin;s==c.lastSelOp||h&&c.lastSelOrigin==h&&(c.lastModTime==c.lastSelTime&&c.lastOrigin==h||n3(t,h,Oe(c.done),r))?c.done[c.done.length-1]=r:fs(r,c.done),c.lastSelTime=+new Date,c.lastSelOrigin=h,c.lastSelOp=s,a&&a.clearRedo!==!1&&Fu(c.undone)}function fs(t,r){var s=Oe(r);s&&s.ranges&&s.equals(t)||r.push(t)}function Vu(t,r,s,a){var c=r["spans_"+t.id],h=0;t.iter(Math.max(t.first,s),Math.min(t.first+t.size,a),function(f){f.markedSpans&&((c||(c=r["spans_"+t.id]={}))[h]=f.markedSpans),++h})}function o3(t){if(!t)return null;for(var r,s=0;s<t.length;++s)t[s].marker.explicitlyCleared?r||(r=t.slice(0,s)):r&&r.push(t[s]);return r?r.length?r:null:t}function a3(t,r){var s=r["spans_"+t.id];if(!s)return null;for(var a=[],c=0;c<r.text.length;++c)a.push(o3(s[c]));return a}function Zu(t,r){var s=a3(t,r),a=Jl(t,r);if(!s)return a;if(!a)return s;for(var c=0;c<s.length;++c){var h=s[c],f=a[c];if(h&&f)e:for(var p=0;p<f.length;++p){for(var g=f[p],b=0;b<h.length;++b)if(h[b].marker==g.marker)continue e;h.push(g)}else f&&(s[c]=f)}return s}function Hi(t,r,s){for(var a=[],c=0;c<t.length;++c){var h=t[c];if(h.ranges){a.push(s?sr.prototype.deepCopy.call(h):h);continue}var f=h.changes,p=[];a.push({changes:p});for(var g=0;g<f.length;++g){var b=f[g],w=void 0;if(p.push({from:b.from,to:b.to,text:b.text}),r)for(var L in b)(w=L.match(/^spans_(\d+)$/))&&fe(r,Number(w[1]))>-1&&(Oe(p)[L]=b[L],delete b[L])}}return a}function k1(t,r,s,a){if(a){var c=t.anchor;if(s){var h=C(r,c)<0;h!=C(s,c)<0?(c=r,r=s):h!=C(r,s)<0&&(r=s)}return new Fe(c,r)}else return new Fe(s||r,r)}function ps(t,r,s,a,c){c==null&&(c=t.cm&&(t.cm.display.shift||t.extend)),Et(t,new sr([k1(t.sel.primary(),r,s,c)],0),a)}function Wu(t,r,s){for(var a=[],c=t.cm&&(t.cm.display.shift||t.extend),h=0;h<t.sel.ranges.length;h++)a[h]=k1(t.sel.ranges[h],r[h],null,c);var f=wr(t.cm,a,t.sel.primIndex);Et(t,f,s)}function $1(t,r,s,a){var c=t.sel.ranges.slice(0);c[r]=s,Et(t,wr(t.cm,c,t.sel.primIndex),a)}function Uu(t,r,s,a){Et(t,zn(r,s),a)}function s3(t,r,s){var a={ranges:r.ranges,update:function(c){this.ranges=[];for(var h=0;h<c.length;h++)this.ranges[h]=new Fe(oe(t,c[h].anchor),oe(t,c[h].head))},origin:s&&s.origin};return ze(t,"beforeSelectionChange",t,a),t.cm&&ze(t.cm,"beforeSelectionChange",t.cm,a),a.ranges!=r.ranges?wr(t.cm,a.ranges,a.ranges.length-1):r}function ju(t,r,s){var a=t.history.done,c=Oe(a);c&&c.ranges?(a[a.length-1]=r,gs(t,r,s)):Et(t,r,s)}function Et(t,r,s){gs(t,r,s),i3(t,t.sel,t.cm?t.cm.curOp.id:NaN,s)}function gs(t,r,s){(St(t,"beforeSelectionChange")||t.cm&&St(t.cm,"beforeSelectionChange"))&&(r=s3(t,r,s));var a=s&&s.bias||(C(r.primary().head,t.sel.primary().head)<0?-1:1);Gu(t,Ku(t,r,a,!0)),!(s&&s.scroll===!1)&&t.cm&&t.cm.getOption("readOnly")!="nocursor"&&Di(t.cm)}function Gu(t,r){r.equals(t.sel)||(t.sel=r,t.cm&&(t.cm.curOp.updateInput=1,t.cm.curOp.selectionChanged=!0,Si(t.cm)),yt(t,"cursorActivity",t))}function qu(t){Gu(t,Ku(t,t.sel,null,!1))}function Ku(t,r,s,a){for(var c,h=0;h<r.ranges.length;h++){var f=r.ranges[h],p=r.ranges.length==t.sel.ranges.length&&t.sel.ranges[h],g=vs(t,f.anchor,p&&p.anchor,s,a),b=vs(t,f.head,p&&p.head,s,a);(c||g!=f.anchor||b!=f.head)&&(c||(c=r.ranges.slice(0,h)),c[h]=new Fe(g,b))}return c?wr(t.cm,c,r.primIndex):r}function Ri(t,r,s,a,c){var h=he(t,r.line);if(h.markedSpans)for(var f=0;f<h.markedSpans.length;++f){var p=h.markedSpans[f],g=p.marker,b="selectLeft"in g?!g.selectLeft:g.inclusiveLeft,w="selectRight"in g?!g.selectRight:g.inclusiveRight;if((p.from==null||(b?p.from<=r.ch:p.from<r.ch))&&(p.to==null||(w?p.to>=r.ch:p.to>r.ch))){if(c&&(ze(g,"beforeCursorEnter"),g.explicitlyCleared))if(h.markedSpans){--f;continue}else break;if(!g.atomic)continue;if(s){var L=g.find(a<0?1:-1),I=void 0;if((a<0?w:b)&&(L=Yu(t,L,-a,L&&L.line==r.line?h:null)),L&&L.line==r.line&&(I=C(L,s))&&(a<0?I<0:I>0))return Ri(t,L,r,a,c)}var _=g.find(a<0?-1:1);return(a<0?b:w)&&(_=Yu(t,_,a,_.line==r.line?h:null)),_?Ri(t,_,r,a,c):null}}return r}function vs(t,r,s,a,c){var h=a||1,f=Ri(t,r,s,h,c)||!c&&Ri(t,r,s,h,!0)||Ri(t,r,s,-h,c)||!c&&Ri(t,r,s,-h,!0);return f||(t.cantEdit=!0,U(t.first,0))}function Yu(t,r,s,a){return s<0&&r.ch==0?r.line>t.first?oe(t,U(r.line-1)):null:s>0&&r.ch==(a||he(t,r.line)).text.length?r.line<t.first+t.size-1?U(r.line+1,0):null:new U(r.line,r.ch+s)}function Xu(t){t.setSelection(U(t.firstLine(),0),U(t.lastLine()),Pe)}function Ju(t,r,s){var a={canceled:!1,from:r.from,to:r.to,text:r.text,origin:r.origin,cancel:function(){return a.canceled=!0}};return s&&(a.update=function(c,h,f,p){c&&(a.from=oe(t,c)),h&&(a.to=oe(t,h)),f&&(a.text=f),p!==void 0&&(a.origin=p)}),ze(t,"beforeChange",t,a),t.cm&&ze(t.cm,"beforeChange",t.cm,a),a.canceled?(t.cm&&(t.cm.curOp.updateInput=2),null):{from:a.from,to:a.to,text:a.text,origin:a.origin}}function Fi(t,r,s){if(t.cm){if(!t.cm.curOp)return Ct(t.cm,Fi)(t,r,s);if(t.cm.state.suppressEdits)return}if(!((St(t,"beforeChange")||t.cm&&St(t.cm,"beforeChange"))&&(r=Ju(t,r,!0),!r))){var a=V0&&!s&&i4(t,r.from,r.to);if(a)for(var c=a.length-1;c>=0;--c)Qu(t,{from:a[c].from,to:a[c].to,text:c?[""]:r.text,origin:r.origin});else Qu(t,r)}}function Qu(t,r){if(!(r.text.length==1&&r.text[0]==""&&C(r.from,r.to)==0)){var s=L1(t,r);Bu(t,r,s,t.cm?t.cm.curOp.id:NaN),jo(t,r,s,Jl(t,r));var a=[];Sn(t,function(c,h){!h&&fe(a,c.history)==-1&&(nd(c.history,r),a.push(c.history)),jo(c,r,null,Jl(c,r))})}}function bs(t,r,s){var a=t.cm&&t.cm.state.suppressEdits;if(!(a&&!s)){for(var c=t.history,h,f=t.sel,p=r=="undo"?c.done:c.undone,g=r=="undo"?c.undone:c.done,b=0;b<p.length&&(h=p[b],!(s?h.ranges&&!h.equals(t.sel):!h.ranges));b++);if(b!=p.length){for(c.lastOrigin=c.lastSelOrigin=null;;)if(h=p.pop(),h.ranges){if(fs(h,g),s&&!h.equals(t.sel)){Et(t,h,{clearRedo:!1});return}f=h}else if(a){p.push(h);return}else break;var w=[];fs(f,g),g.push({changes:w,generation:c.generation}),c.generation=h.generation||++c.maxGeneration;for(var L=St(t,"beforeChange")||t.cm&&St(t.cm,"beforeChange"),I=function(W){var K=h.changes[W];if(K.origin=r,L&&!Ju(t,K,!1))return p.length=0,{};w.push(T1(t,K));var J=W?L1(t,K):Oe(p);jo(t,K,J,Zu(t,K)),!W&&t.cm&&t.cm.scrollIntoView({from:K.from,to:Ln(K)});var ae=[];Sn(t,function(Q,ce){!ce&&fe(ae,Q.history)==-1&&(nd(Q.history,K),ae.push(Q.history)),jo(Q,K,null,Zu(Q,K))})},_=h.changes.length-1;_>=0;--_){var H=I(_);if(H)return H.v}}}}function ed(t,r){if(r!=0&&(t.first+=r,t.sel=new sr(He(t.sel.ranges,function(c){return new Fe(U(c.anchor.line+r,c.anchor.ch),U(c.head.line+r,c.head.ch))}),t.sel.primIndex),t.cm)){Rt(t.cm,t.first,t.first-r,r);for(var s=t.cm.display,a=s.viewFrom;a<s.viewTo;a++)wn(t.cm,a,"gutter")}}function jo(t,r,s,a){if(t.cm&&!t.cm.curOp)return Ct(t.cm,jo)(t,r,s,a);if(r.to.line<t.first){ed(t,r.text.length-1-(r.to.line-r.from.line));return}if(!(r.from.line>t.lastLine())){if(r.from.line<t.first){var c=r.text.length-1-(t.first-r.from.line);ed(t,c),r={from:U(t.first,0),to:U(r.to.line+c,r.to.ch),text:[Oe(r.text)],origin:r.origin}}var h=t.lastLine();r.to.line>h&&(r={from:r.from,to:U(h,he(t,h).text.length),text:[r.text[0]],origin:r.origin}),r.removed=Nr(t,r.from,r.to),s||(s=L1(t,r)),t.cm?l3(t.cm,r,a):M1(t,r,a),gs(t,s,Pe),t.cantEdit&&vs(t,U(t.firstLine(),0))&&(t.cantEdit=!1)}}function l3(t,r,s){var a=t.doc,c=t.display,h=r.from,f=r.to,p=!1,g=h.line;t.options.lineWrapping||(g=Re(Fr(he(a,h.line))),a.iter(g,f.line+1,function(_){if(_==c.maxLine)return p=!0,!0})),a.sel.contains(r.from,r.to)>-1&&Si(t),M1(a,r,s,mu(t)),t.options.lineWrapping||(a.iter(g,h.line+r.text.length,function(_){var H=es(_);H>c.maxLineLength&&(c.maxLine=_,c.maxLineLength=H,c.maxLineChanged=!0,p=!1)}),p&&(t.curOp.updateMaxLine=!0)),X6(a,h.line),Zo(t,400);var b=r.text.length-(f.line-h.line)-1;r.full?Rt(t):h.line==f.line&&r.text.length==1&&!Nu(t.doc,r)?wn(t,h.line,"text"):Rt(t,h.line,f.line+1,b);var w=St(t,"changes"),L=St(t,"change");if(L||w){var I={from:h,to:f,text:r.text,removed:r.removed,origin:r.origin};L&&yt(t,"change",t,I),w&&(t.curOp.changeObjs||(t.curOp.changeObjs=[])).push(I)}t.display.selForContextMenu=null}function Bi(t,r,s,a,c){var h;a||(a=s),C(a,s)<0&&(h=[a,s],s=h[0],a=h[1]),typeof r=="string"&&(r=t.splitLines(r)),Fi(t,{from:s,to:a,text:r,origin:c})}function td(t,r,s,a){s<t.line?t.line+=a:r<t.line&&(t.line=r,t.ch=0)}function rd(t,r,s,a){for(var c=0;c<t.length;++c){var h=t[c],f=!0;if(h.ranges){h.copied||(h=t[c]=h.deepCopy(),h.copied=!0);for(var p=0;p<h.ranges.length;p++)td(h.ranges[p].anchor,r,s,a),td(h.ranges[p].head,r,s,a);continue}for(var g=0;g<h.changes.length;++g){var b=h.changes[g];if(s<b.from.line)b.from=U(b.from.line+a,b.from.ch),b.to=U(b.to.line+a,b.to.ch);else if(r<=b.to.line){f=!1;break}}f||(t.splice(0,c+1),c=0)}}function nd(t,r){var s=r.from.line,a=r.to.line,c=r.text.length-(a-s)-1;rd(t.done,s,a,c),rd(t.undone,s,a,c)}function Go(t,r,s,a){var c=r,h=r;return typeof r=="number"?h=he(t,Ae(t,r)):c=Re(r),c==null?null:(a(h,c)&&t.cm&&wn(t.cm,c,s),h)}function qo(t){this.lines=t,this.parent=null;for(var r=0,s=0;s<t.length;++s)t[s].parent=this,r+=t[s].height;this.height=r}qo.prototype={chunkSize:function(){return this.lines.length},removeInner:function(t,r){for(var s=t,a=t+r;s<a;++s){var c=this.lines[s];this.height-=c.height,c4(c),yt(c,"delete")}this.lines.splice(t,r)},collapse:function(t){t.push.apply(t,this.lines)},insertInner:function(t,r,s){this.height+=s,this.lines=this.lines.slice(0,t).concat(r).concat(this.lines.slice(t));for(var a=0;a<r.length;++a)r[a].parent=this},iterN:function(t,r,s){for(var a=t+r;t<a;++t)if(s(this.lines[t]))return!0}};function Ko(t){this.children=t;for(var r=0,s=0,a=0;a<t.length;++a){var c=t[a];r+=c.chunkSize(),s+=c.height,c.parent=this}this.size=r,this.height=s,this.parent=null}Ko.prototype={chunkSize:function(){return this.size},removeInner:function(t,r){this.size-=r;for(var s=0;s<this.children.length;++s){var a=this.children[s],c=a.chunkSize();if(t<c){var h=Math.min(r,c-t),f=a.height;if(a.removeInner(t,h),this.height-=f-a.height,c==h&&(this.children.splice(s--,1),a.parent=null),(r-=h)==0)break;t=0}else t-=c}if(this.size-r<25&&(this.children.length>1||!(this.children[0]instanceof qo))){var p=[];this.collapse(p),this.children=[new qo(p)],this.children[0].parent=this}},collapse:function(t){for(var r=0;r<this.children.length;++r)this.children[r].collapse(t)},insertInner:function(t,r,s){this.size+=r.length,this.height+=s;for(var a=0;a<this.children.length;++a){var c=this.children[a],h=c.chunkSize();if(t<=h){if(c.insertInner(t,r,s),c.lines&&c.lines.length>50){for(var f=c.lines.length%25+25,p=f;p<c.lines.length;){var g=new qo(c.lines.slice(p,p+=25));c.height-=g.height,this.children.splice(++a,0,g),g.parent=this}c.lines=c.lines.slice(0,f),this.maybeSpill()}break}t-=h}},maybeSpill:function(){if(!(this.children.length<=10)){var t=this;do{var r=t.children.splice(t.children.length-5,5),s=new Ko(r);if(t.parent){t.size-=s.size,t.height-=s.height;var c=fe(t.parent.children,t);t.parent.children.splice(c+1,0,s)}else{var a=new Ko(t.children);a.parent=t,t.children=[a,s],t=a}s.parent=t.parent}while(t.children.length>10);t.parent.maybeSpill()}},iterN:function(t,r,s){for(var a=0;a<this.children.length;++a){var c=this.children[a],h=c.chunkSize();if(t<h){var f=Math.min(r,h-t);if(c.iterN(t,f,s))return!0;if((r-=f)==0)break;t=0}else t-=h}}};var Yo=function(t,r,s){if(s)for(var a in s)s.hasOwnProperty(a)&&(this[a]=s[a]);this.doc=t,this.node=r};Yo.prototype.clear=function(){var t=this.doc.cm,r=this.line.widgets,s=this.line,a=Re(s);if(!(a==null||!r)){for(var c=0;c<r.length;++c)r[c]==this&&r.splice(c--,1);r.length||(s.widgets=null);var h=Do(this);Gt(s,Math.max(0,s.height-h)),t&&(qt(t,function(){id(t,s,-h),wn(t,a,"widget")}),yt(t,"lineWidgetCleared",t,this,a))}},Yo.prototype.changed=function(){var t=this,r=this.height,s=this.doc.cm,a=this.line;this.height=null;var c=Do(this)-r;c&&(Cn(this.doc,a)||Gt(a,a.height+c),s&&qt(s,function(){s.curOp.forceUpdate=!0,id(s,a,c),yt(s,"lineWidgetChanged",s,t,Re(a))}))},Pr(Yo);function id(t,r,s){en(r)<(t.curOp&&t.curOp.scrollTop||t.doc.scrollTop)&&m1(t,s)}function c3(t,r,s,a){var c=new Yo(t,s,a),h=t.cm;return h&&c.noHScroll&&(h.display.alignWidgets=!0),Go(t,r,"widget",function(f){var p=f.widgets||(f.widgets=[]);if(c.insertAt==null?p.push(c):p.splice(Math.min(p.length,Math.max(0,c.insertAt)),0,c),c.line=f,h&&!Cn(t,f)){var g=en(f)<t.scrollTop;Gt(f,f.height+Do(c)),g&&m1(h,c.height),h.curOp.forceUpdate=!0}return!0}),h&&yt(h,"lineWidgetAdded",h,c,typeof r=="number"?r:Re(r)),c}var od=0,Mn=function(t,r){this.lines=[],this.type=r,this.doc=t,this.id=++od};Mn.prototype.clear=function(){if(!this.explicitlyCleared){var t=this.doc.cm,r=t&&!t.curOp;if(r&&Xn(t),St(this,"clear")){var s=this.find();s&&yt(this,"clear",s.from,s.to)}for(var a=null,c=null,h=0;h<this.lines.length;++h){var f=this.lines[h],p=Io(f.markedSpans,this);t&&!this.collapsed?wn(t,Re(f),"text"):t&&(p.to!=null&&(c=Re(f)),p.from!=null&&(a=Re(f))),f.markedSpans=e4(f.markedSpans,p),p.from==null&&this.collapsed&&!Cn(this.doc,f)&&t&&Gt(f,Ii(t.display))}if(t&&this.collapsed&&!t.options.lineWrapping)for(var g=0;g<this.lines.length;++g){var b=Fr(this.lines[g]),w=es(b);w>t.display.maxLineLength&&(t.display.maxLine=b,t.display.maxLineLength=w,t.display.maxLineChanged=!0)}a!=null&&t&&this.collapsed&&Rt(t,a,c+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,t&&qu(t.doc)),t&&yt(t,"markerCleared",t,this,a,c),r&&Jn(t),this.parent&&this.parent.clear()}},Mn.prototype.find=function(t,r){t==null&&this.type=="bookmark"&&(t=1);for(var s,a,c=0;c<this.lines.length;++c){var h=this.lines[c],f=Io(h.markedSpans,this);if(f.from!=null&&(s=U(r?h:Re(h),f.from),t==-1))return s;if(f.to!=null&&(a=U(r?h:Re(h),f.to),t==1))return a}return s&&{from:s,to:a}},Mn.prototype.changed=function(){var t=this,r=this.find(-1,!0),s=this,a=this.doc.cm;!r||!a||qt(a,function(){var c=r.line,h=Re(r.line),f=a1(a,h);if(f&&(uu(f),a.curOp.selectionChanged=a.curOp.forceUpdate=!0),a.curOp.updateMaxLine=!0,!Cn(s.doc,c)&&s.height!=null){var p=s.height;s.height=null;var g=Do(s)-p;g&&Gt(c,c.height+g)}yt(a,"markerChanged",a,t)})},Mn.prototype.attachLine=function(t){if(!this.lines.length&&this.doc.cm){var r=this.doc.cm.curOp;(!r.maybeHiddenMarkers||fe(r.maybeHiddenMarkers,this)==-1)&&(r.maybeUnhiddenMarkers||(r.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(t)},Mn.prototype.detachLine=function(t){if(this.lines.splice(fe(this.lines,t),1),!this.lines.length&&this.doc.cm){var r=this.doc.cm.curOp;(r.maybeHiddenMarkers||(r.maybeHiddenMarkers=[])).push(this)}},Pr(Mn);function Vi(t,r,s,a,c){if(a&&a.shared)return u3(t,r,s,a,c);if(t.cm&&!t.cm.curOp)return Ct(t.cm,Vi)(t,r,s,a,c);var h=new Mn(t,c),f=C(r,s);if(a&&Xe(a,h,!1),f>0||f==0&&h.clearWhenEmpty!==!1)return h;if(h.replacedWith&&(h.collapsed=!0,h.widgetNode=z("span",[h.replacedWith],"CodeMirror-widget"),a.handleMouseEvents||h.widgetNode.setAttribute("cm-ignore-events","true"),a.insertLeft&&(h.widgetNode.insertLeft=!0)),h.collapsed){if(q0(t,r.line,r,s,h)||r.line!=s.line&&q0(t,s.line,r,s,h))throw new Error("Inserting collapsed marker partially overlapping an existing one");Q6()}h.addToHistory&&Bu(t,{from:r,to:s,origin:"markText"},t.sel,NaN);var p=r.line,g=t.cm,b;if(t.iter(p,s.line+1,function(L){g&&h.collapsed&&!g.options.lineWrapping&&Fr(L)==g.display.maxLine&&(b=!0),h.collapsed&&p!=r.line&&Gt(L,0),t4(L,new Ya(h,p==r.line?r.ch:null,p==s.line?s.ch:null),t.cm&&t.cm.curOp),++p}),h.collapsed&&t.iter(r.line,s.line+1,function(L){Cn(t,L)&&Gt(L,0)}),h.clearOnEnter&&Ce(h,"beforeCursorEnter",function(){return h.clear()}),h.readOnly&&(J6(),(t.history.done.length||t.history.undone.length)&&t.clearHistory()),h.collapsed&&(h.id=++od,h.atomic=!0),g){if(b&&(g.curOp.updateMaxLine=!0),h.collapsed)Rt(g,r.line,s.line+1);else if(h.className||h.startStyle||h.endStyle||h.css||h.attributes||h.title)for(var w=r.line;w<=s.line;w++)wn(g,w,"text");h.atomic&&qu(g.doc),yt(g,"markerAdded",g,h)}return h}var Xo=function(t,r){this.markers=t,this.primary=r;for(var s=0;s<t.length;++s)t[s].parent=this};Xo.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var t=0;t<this.markers.length;++t)this.markers[t].clear();yt(this,"clear")}},Xo.prototype.find=function(t,r){return this.primary.find(t,r)},Pr(Xo);function u3(t,r,s,a,c){a=Xe(a),a.shared=!1;var h=[Vi(t,r,s,a,c)],f=h[0],p=a.widgetNode;return Sn(t,function(g){p&&(a.widgetNode=p.cloneNode(!0)),h.push(Vi(g,oe(g,r),oe(g,s),a,c));for(var b=0;b<g.linked.length;++b)if(g.linked[b].isParent)return;f=Oe(h)}),new Xo(h,f)}function ad(t){return t.findMarks(U(t.first,0),t.clipPos(U(t.lastLine())),function(r){return r.parent})}function d3(t,r){for(var s=0;s<r.length;s++){var a=r[s],c=a.find(),h=t.clipPos(c.from),f=t.clipPos(c.to);if(C(h,f)){var p=Vi(t,h,f,a.primary,a.primary.type);a.markers.push(p),p.parent=a}}}function h3(t){for(var r=function(a){var c=t[a],h=[c.primary.doc];Sn(c.primary.doc,function(g){return h.push(g)});for(var f=0;f<c.markers.length;f++){var p=c.markers[f];fe(h,p.doc)==-1&&(p.parent=null,c.markers.splice(f--,1))}},s=0;s<t.length;s++)r(s)}var f3=0,Ft=function(t,r,s,a,c){if(!(this instanceof Ft))return new Ft(t,r,s,a,c);s==null&&(s=0),Ko.call(this,[new qo([new Oi("",null)])]),this.first=s,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=s;var h=U(s,0);this.sel=zn(h),this.history=new hs(null),this.id=++f3,this.modeOption=r,this.lineSep=a,this.direction=c=="rtl"?"rtl":"ltr",this.extend=!1,typeof t=="string"&&(t=this.splitLines(t)),M1(this,{from:h,to:h,text:t}),Et(this,zn(h),Pe)};Ft.prototype=ur(Ko.prototype,{constructor:Ft,iter:function(t,r,s){s?this.iterN(t-this.first,r-t,s):this.iterN(this.first,this.first+this.size,t)},insert:function(t,r){for(var s=0,a=0;a<r.length;++a)s+=r[a].height;this.insertInner(t-this.first,r,s)},remove:function(t,r){this.removeInner(t-this.first,r)},getValue:function(t){var r=Oo(this,this.first,this.first+this.size);return t===!1?r:r.join(t||this.lineSeparator())},setValue:wt(function(t){var r=U(this.first,0),s=this.first+this.size-1;Fi(this,{from:r,to:U(s,he(this,s).text.length),text:this.splitLines(t),origin:"setValue",full:!0},!0),this.cm&&Ro(this.cm,0,0),Et(this,zn(r),Pe)}),replaceRange:function(t,r,s,a){r=oe(this,r),s=s?oe(this,s):r,Bi(this,t,r,s,a)},getRange:function(t,r,s){var a=Nr(this,oe(this,t),oe(this,r));return s===!1?a:s===""?a.join(""):a.join(s||this.lineSeparator())},getLine:function(t){var r=this.getLineHandle(t);return r&&r.text},getLineHandle:function(t){if(Wn(this,t))return he(this,t)},getLineNumber:function(t){return Re(t)},getLineHandleVisualStart:function(t){return typeof t=="number"&&(t=he(this,t)),Fr(t)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(t){return oe(this,t)},getCursor:function(t){var r=this.sel.primary(),s;return t==null||t=="head"?s=r.head:t=="anchor"?s=r.anchor:t=="end"||t=="to"||t===!1?s=r.to():s=r.from(),s},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:wt(function(t,r,s){Uu(this,oe(this,typeof t=="number"?U(t,r||0):t),null,s)}),setSelection:wt(function(t,r,s){Uu(this,oe(this,t),oe(this,r||t),s)}),extendSelection:wt(function(t,r,s){ps(this,oe(this,t),r&&oe(this,r),s)}),extendSelections:wt(function(t,r){Wu(this,or(this,t),r)}),extendSelectionsBy:wt(function(t,r){var s=He(this.sel.ranges,t);Wu(this,or(this,s),r)}),setSelections:wt(function(t,r,s){if(t.length){for(var a=[],c=0;c<t.length;c++)a[c]=new Fe(oe(this,t[c].anchor),oe(this,t[c].head||t[c].anchor));r==null&&(r=Math.min(t.length-1,this.sel.primIndex)),Et(this,wr(this.cm,a,r),s)}}),addSelection:wt(function(t,r,s){var a=this.sel.ranges.slice(0);a.push(new Fe(oe(this,t),oe(this,r||t))),Et(this,wr(this.cm,a,a.length-1),s)}),getSelection:function(t){for(var r=this.sel.ranges,s,a=0;a<r.length;a++){var c=Nr(this,r[a].from(),r[a].to());s=s?s.concat(c):c}return t===!1?s:s.join(t||this.lineSeparator())},getSelections:function(t){for(var r=[],s=this.sel.ranges,a=0;a<s.length;a++){var c=Nr(this,s[a].from(),s[a].to());t!==!1&&(c=c.join(t||this.lineSeparator())),r[a]=c}return r},replaceSelection:function(t,r,s){for(var a=[],c=0;c<this.sel.ranges.length;c++)a[c]=t;this.replaceSelections(a,r,s||"+input")},replaceSelections:wt(function(t,r,s){for(var a=[],c=this.sel,h=0;h<c.ranges.length;h++){var f=c.ranges[h];a[h]={from:f.from(),to:f.to(),text:this.splitLines(t[h]),origin:s}}for(var p=r&&r!="end"&&e3(this,a,r),g=a.length-1;g>=0;g--)Fi(this,a[g]);p?ju(this,p):this.cm&&Di(this.cm)}),undo:wt(function(){bs(this,"undo")}),redo:wt(function(){bs(this,"redo")}),undoSelection:wt(function(){bs(this,"undo",!0)}),redoSelection:wt(function(){bs(this,"redo",!0)}),setExtending:function(t){this.extend=t},getExtending:function(){return this.extend},historySize:function(){for(var t=this.history,r=0,s=0,a=0;a<t.done.length;a++)t.done[a].ranges||++r;for(var c=0;c<t.undone.length;c++)t.undone[c].ranges||++s;return{undo:r,redo:s}},clearHistory:function(){var t=this;this.history=new hs(this.history),Sn(this,function(r){return r.history=t.history},!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(t){return t&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(t){return this.history.generation==(t||this.cleanGeneration)},getHistory:function(){return{done:Hi(this.history.done),undone:Hi(this.history.undone)}},setHistory:function(t){var r=this.history=new hs(this.history);r.done=Hi(t.done.slice(0),null,!0),r.undone=Hi(t.undone.slice(0),null,!0)},setGutterMarker:wt(function(t,r,s){return Go(this,t,"gutter",function(a){var c=a.gutterMarkers||(a.gutterMarkers={});return c[r]=s,!s&&Y(c)&&(a.gutterMarkers=null),!0})}),clearGutter:wt(function(t){var r=this;this.iter(function(s){s.gutterMarkers&&s.gutterMarkers[t]&&Go(r,s,"gutter",function(){return s.gutterMarkers[t]=null,Y(s.gutterMarkers)&&(s.gutterMarkers=null),!0})})}),lineInfo:function(t){var r;if(typeof t=="number"){if(!Wn(this,t)||(r=t,t=he(this,t),!t))return null}else if(r=Re(t),r==null)return null;return{line:r,handle:t,text:t.text,gutterMarkers:t.gutterMarkers,textClass:t.textClass,bgClass:t.bgClass,wrapClass:t.wrapClass,widgets:t.widgets}},addLineClass:wt(function(t,r,s){return Go(this,t,r=="gutter"?"gutter":"class",function(a){var c=r=="text"?"textClass":r=="background"?"bgClass":r=="gutter"?"gutterClass":"wrapClass";if(!a[c])a[c]=s;else{if(de(s).test(a[c]))return!1;a[c]+=" "+s}return!0})}),removeLineClass:wt(function(t,r,s){return Go(this,t,r=="gutter"?"gutter":"class",function(a){var c=r=="text"?"textClass":r=="background"?"bgClass":r=="gutter"?"gutterClass":"wrapClass",h=a[c];if(h)if(s==null)a[c]=null;else{var f=h.match(de(s));if(!f)return!1;var p=f.index+f[0].length;a[c]=h.slice(0,f.index)+(!f.index||p==h.length?"":" ")+h.slice(p)||null}else return!1;return!0})}),addLineWidget:wt(function(t,r,s){return c3(this,t,r,s)}),removeLineWidget:function(t){t.clear()},markText:function(t,r,s){return Vi(this,oe(this,t),oe(this,r),s,s&&s.type||"range")},setBookmark:function(t,r){var s={replacedWith:r&&(r.nodeType==null?r.widget:r),insertLeft:r&&r.insertLeft,clearWhenEmpty:!1,shared:r&&r.shared,handleMouseEvents:r&&r.handleMouseEvents};return t=oe(this,t),Vi(this,t,t,s,"bookmark")},findMarksAt:function(t){t=oe(this,t);var r=[],s=he(this,t.line).markedSpans;if(s)for(var a=0;a<s.length;++a){var c=s[a];(c.from==null||c.from<=t.ch)&&(c.to==null||c.to>=t.ch)&&r.push(c.marker.parent||c.marker)}return r},findMarks:function(t,r,s){t=oe(this,t),r=oe(this,r);var a=[],c=t.line;return this.iter(t.line,r.line+1,function(h){var f=h.markedSpans;if(f)for(var p=0;p<f.length;p++){var g=f[p];!(g.to!=null&&c==t.line&&t.ch>=g.to||g.from==null&&c!=t.line||g.from!=null&&c==r.line&&g.from>=r.ch)&&(!s||s(g.marker))&&a.push(g.marker.parent||g.marker)}++c}),a},getAllMarks:function(){var t=[];return this.iter(function(r){var s=r.markedSpans;if(s)for(var a=0;a<s.length;++a)s[a].from!=null&&t.push(s[a].marker)}),t},posFromIndex:function(t){var r,s=this.first,a=this.lineSeparator().length;return this.iter(function(c){var h=c.text.length+a;if(h>t)return r=t,!0;t-=h,++s}),oe(this,U(s,r))},indexFromPos:function(t){t=oe(this,t);var r=t.ch;if(t.line<this.first||t.ch<0)return 0;var s=this.lineSeparator().length;return this.iter(this.first,t.line,function(a){r+=a.text.length+s}),r},copy:function(t){var r=new Ft(Oo(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return r.scrollTop=this.scrollTop,r.scrollLeft=this.scrollLeft,r.sel=this.sel,r.extend=!1,t&&(r.history.undoDepth=this.history.undoDepth,r.setHistory(this.getHistory())),r},linkedDoc:function(t){t||(t={});var r=this.first,s=this.first+this.size;t.from!=null&&t.from>r&&(r=t.from),t.to!=null&&t.to<s&&(s=t.to);var a=new Ft(Oo(this,r,s),t.mode||this.modeOption,r,this.lineSep,this.direction);return t.sharedHist&&(a.history=this.history),(this.linked||(this.linked=[])).push({doc:a,sharedHist:t.sharedHist}),a.linked=[{doc:this,isParent:!0,sharedHist:t.sharedHist}],d3(a,ad(this)),a},unlinkDoc:function(t){if(t instanceof Qe&&(t=t.doc),this.linked)for(var r=0;r<this.linked.length;++r){var s=this.linked[r];if(s.doc==t){this.linked.splice(r,1),t.unlinkDoc(this),h3(ad(this));break}}if(t.history==this.history){var a=[t.id];Sn(t,function(c){return a.push(c.id)},!0),t.history=new hs(null),t.history.done=Hi(this.history.done,a),t.history.undone=Hi(this.history.undone,a)}},iterLinkedDocs:function(t){Sn(this,t)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(t){return this.lineSep?t.split(this.lineSep):Mo(t)},lineSeparator:function(){return this.lineSep||`
2984
+ `},setDirection:wt(function(t){t!="rtl"&&(t="ltr"),t!=this.direction&&(this.direction=t,this.iter(function(r){return r.order=null}),this.cm&&t3(this.cm))})}),Ft.prototype.eachLine=Ft.prototype.iter;var sd=0;function p3(t){var r=this;if(ld(r),!(ct(r,t)||tn(r.display,t))){$t(t),m&&(sd=+new Date);var s=Gn(r,t,!0),a=t.dataTransfer.files;if(!(!s||r.isReadOnly()))if(a&&a.length&&window.FileReader&&window.File)for(var c=a.length,h=Array(c),f=0,p=function(){++f==c&&Ct(r,function(){s=oe(r.doc,s);var _={from:s,to:s,text:r.doc.splitLines(h.filter(function(H){return H!=null}).join(r.doc.lineSeparator())),origin:"paste"};Fi(r.doc,_),ju(r.doc,zn(oe(r.doc,s),oe(r.doc,Ln(_))))})()},g=function(_,H){if(r.options.allowDropFileTypes&&fe(r.options.allowDropFileTypes,_.type)==-1){p();return}var W=new FileReader;W.onerror=function(){return p()},W.onload=function(){var K=W.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(K)){p();return}h[H]=K,p()},W.readAsText(_)},b=0;b<a.length;b++)g(a[b],b);else{if(r.state.draggingText&&r.doc.sel.contains(s)>-1){r.state.draggingText(t),setTimeout(function(){return r.display.input.focus()},20);return}try{var w=t.dataTransfer.getData("Text");if(w){var L;if(r.state.draggingText&&!r.state.draggingText.copy&&(L=r.listSelections()),gs(r.doc,zn(s,s)),L)for(var I=0;I<L.length;++I)Bi(r.doc,"",L[I].anchor,L[I].head,"drag");r.replaceSelection(w,"around","paste"),r.display.input.focus()}}catch{}}}}function g3(t,r){if(m&&(!t.state.draggingText||+new Date-sd<100)){Zn(r);return}if(!(ct(t,r)||tn(t.display,r))&&(r.dataTransfer.setData("Text",t.getSelection()),r.dataTransfer.effectAllowed="copyMove",r.dataTransfer.setDragImage&&!N)){var s=x("img",null,null,"position: fixed; left: 0; top: 0;");s.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",E&&(s.width=s.height=1,t.display.wrapper.appendChild(s),s._top=s.offsetTop),r.dataTransfer.setDragImage(s,0,0),E&&s.parentNode.removeChild(s)}}function v3(t,r){var s=Gn(t,r);if(s){var a=document.createDocumentFragment();wu(t,s,a),t.display.dragCursor||(t.display.dragCursor=x("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),t.display.lineSpace.insertBefore(t.display.dragCursor,t.display.cursorDiv)),k(t.display.dragCursor,a)}}function ld(t){t.display.dragCursor&&(t.display.lineSpace.removeChild(t.display.dragCursor),t.display.dragCursor=null)}function cd(t){if(document.getElementsByClassName){for(var r=document.getElementsByClassName("CodeMirror"),s=[],a=0;a<r.length;a++){var c=r[a].CodeMirror;c&&s.push(c)}s.length&&s[0].operation(function(){for(var h=0;h<s.length;h++)t(s[h])})}}var ud=!1;function b3(){ud||(m3(),ud=!0)}function m3(){var t;Ce(window,"resize",function(){t==null&&(t=setTimeout(function(){t=null,cd(y3)},100))}),Ce(window,"blur",function(){return cd(Pi)})}function y3(t){var r=t.display;r.cachedCharWidth=r.cachedTextHeight=r.cachedPaddingH=null,r.scrollbarsClipped=!1,t.setSize()}for(var Tn={3:"Pause",8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"PrintScrn",45:"Insert",46:"Delete",59:";",61:"=",91:"Mod",92:"Mod",93:"Mod",106:"*",107:"=",109:"-",110:".",111:"/",145:"ScrollLock",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",224:"Mod",63232:"Up",63233:"Down",63234:"Left",63235:"Right",63272:"Delete",63273:"Home",63275:"End",63276:"PageUp",63277:"PageDown",63302:"Insert"},Jo=0;Jo<10;Jo++)Tn[Jo+48]=Tn[Jo+96]=String(Jo);for(var ms=65;ms<=90;ms++)Tn[ms]=String.fromCharCode(ms);for(var Qo=1;Qo<=12;Qo++)Tn[Qo+111]=Tn[Qo+63235]="F"+Qo;var rn={};rn.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},rn.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},rn.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},rn.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]},rn.default=ue?rn.macDefault:rn.pcDefault;function C3(t){var r=t.split(/-(?!$)/);t=r[r.length-1];for(var s,a,c,h,f=0;f<r.length-1;f++){var p=r[f];if(/^(cmd|meta|m)$/i.test(p))h=!0;else if(/^a(lt)?$/i.test(p))s=!0;else if(/^(c|ctrl|control)$/i.test(p))a=!0;else if(/^s(hift)?$/i.test(p))c=!0;else throw new Error("Unrecognized modifier name: "+p)}return s&&(t="Alt-"+t),a&&(t="Ctrl-"+t),h&&(t="Cmd-"+t),c&&(t="Shift-"+t),t}function w3(t){var r={};for(var s in t)if(t.hasOwnProperty(s)){var a=t[s];if(/^(name|fallthrough|(de|at)tach)$/.test(s))continue;if(a=="..."){delete t[s];continue}for(var c=He(s.split(" "),C3),h=0;h<c.length;h++){var f=void 0,p=void 0;h==c.length-1?(p=c.join(" "),f=a):(p=c.slice(0,h+1).join(" "),f="...");var g=r[p];if(!g)r[p]=f;else if(g!=f)throw new Error("Inconsistent bindings for "+p)}delete t[s]}for(var b in r)t[b]=r[b];return t}function Zi(t,r,s,a){r=ys(r);var c=r.call?r.call(t,a):r[t];if(c===!1)return"nothing";if(c==="...")return"multi";if(c!=null&&s(c))return"handled";if(r.fallthrough){if(Object.prototype.toString.call(r.fallthrough)!="[object Array]")return Zi(t,r.fallthrough,s,a);for(var h=0;h<r.fallthrough.length;h++){var f=Zi(t,r.fallthrough[h],s,a);if(f)return f}}}function dd(t){var r=typeof t=="string"?t:Tn[t.keyCode];return r=="Ctrl"||r=="Alt"||r=="Shift"||r=="Mod"}function hd(t,r,s){var a=t;return r.altKey&&a!="Alt"&&(t="Alt-"+t),(Ze?r.metaKey:r.ctrlKey)&&a!="Ctrl"&&(t="Ctrl-"+t),(Ze?r.ctrlKey:r.metaKey)&&a!="Mod"&&(t="Cmd-"+t),!s&&r.shiftKey&&a!="Shift"&&(t="Shift-"+t),t}function fd(t,r){if(E&&t.keyCode==34&&t.char)return!1;var s=Tn[t.keyCode];return s==null||t.altGraphKey?!1:(t.keyCode==3&&t.code&&(s=t.code),hd(s,t,r))}function ys(t){return typeof t=="string"?rn[t]:t}function Wi(t,r){for(var s=t.doc.sel.ranges,a=[],c=0;c<s.length;c++){for(var h=r(s[c]);a.length&&C(h.from,Oe(a).to)<=0;){var f=a.pop();if(C(f.from,h.from)<0){h.from=f.from;break}}a.push(h)}qt(t,function(){for(var p=a.length-1;p>=0;p--)Bi(t.doc,"",a[p].from,a[p].to,"+delete");Di(t)})}function O1(t,r,s){var a=It(t.text,r+s,s);return a<0||a>t.text.length?null:a}function E1(t,r,s){var a=O1(t,r.ch,s);return a==null?null:new U(r.line,a,s<0?"after":"before")}function _1(t,r,s,a,c){if(t){r.doc.direction=="rtl"&&(c=-c);var h=jt(s,r.doc.direction);if(h){var f=c<0?Oe(h):h[0],p=c<0==(f.level==1),g=p?"after":"before",b;if(f.level>0||r.doc.direction=="rtl"){var w=_i(r,s);b=c<0?s.text.length-1:0;var L=Vr(r,w,b).top;b=Ar(function(I){return Vr(r,w,I).top==L},c<0==(f.level==1)?f.from:f.to-1,b),g=="before"&&(b=O1(s,b,1))}else b=c<0?f.to:f.from;return new U(a,b,g)}}return new U(a,c<0?s.text.length:0,c<0?"before":"after")}function x3(t,r,s,a){var c=jt(r,t.doc.direction);if(!c)return E1(r,s,a);s.ch>=r.text.length?(s.ch=r.text.length,s.sticky="before"):s.ch<=0&&(s.ch=0,s.sticky="after");var h=nt(c,s.ch,s.sticky),f=c[h];if(t.doc.direction=="ltr"&&f.level%2==0&&(a>0?f.to>s.ch:f.from<s.ch))return E1(r,s,a);var p=function(J,ae){return O1(r,J instanceof U?J.ch:J,ae)},g,b=function(J){return t.options.lineWrapping?(g=g||_i(t,r),bu(t,r,g,J)):{begin:0,end:r.text.length}},w=b(s.sticky=="before"?p(s,-1):s.ch);if(t.doc.direction=="rtl"||f.level==1){var L=f.level==1==a<0,I=p(s,L?1:-1);if(I!=null&&(L?I<=f.to&&I<=w.end:I>=f.from&&I>=w.begin)){var _=L?"before":"after";return new U(s.line,I,_)}}var H=function(J,ae,Q){for(var ce=function(Ye,xt){return xt?new U(s.line,p(Ye,1),"before"):new U(s.line,Ye,"after")};J>=0&&J<c.length;J+=ae){var ye=c[J],ve=ae>0==(ye.level!=1),ke=ve?Q.begin:p(Q.end,-1);if(ye.from<=ke&&ke<ye.to||(ke=ve?ye.from:p(ye.to,-1),Q.begin<=ke&&ke<Q.end))return ce(ke,ve)}},W=H(h+a,a,w);if(W)return W;var K=a>0?w.end:p(w.begin,-1);return K!=null&&!(a>0&&K==r.text.length)&&(W=H(a>0?0:c.length-1,a,b(K)),W)?W:null}var ea={selectAll:Xu,singleSelection:function(t){return t.setSelection(t.getCursor("anchor"),t.getCursor("head"),Pe)},killLine:function(t){return Wi(t,function(r){if(r.empty()){var s=he(t.doc,r.head.line).text.length;return r.head.ch==s&&r.head.line<t.lastLine()?{from:r.head,to:U(r.head.line+1,0)}:{from:r.head,to:U(r.head.line,s)}}else return{from:r.from(),to:r.to()}})},deleteLine:function(t){return Wi(t,function(r){return{from:U(r.from().line,0),to:oe(t.doc,U(r.to().line+1,0))}})},delLineLeft:function(t){return Wi(t,function(r){return{from:U(r.from().line,0),to:r.from()}})},delWrappedLineLeft:function(t){return Wi(t,function(r){var s=t.charCoords(r.head,"div").top+5,a=t.coordsChar({left:0,top:s},"div");return{from:a,to:r.from()}})},delWrappedLineRight:function(t){return Wi(t,function(r){var s=t.charCoords(r.head,"div").top+5,a=t.coordsChar({left:t.display.lineDiv.offsetWidth+100,top:s},"div");return{from:r.from(),to:a}})},undo:function(t){return t.undo()},redo:function(t){return t.redo()},undoSelection:function(t){return t.undoSelection()},redoSelection:function(t){return t.redoSelection()},goDocStart:function(t){return t.extendSelection(U(t.firstLine(),0))},goDocEnd:function(t){return t.extendSelection(U(t.lastLine()))},goLineStart:function(t){return t.extendSelectionsBy(function(r){return pd(t,r.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(t){return t.extendSelectionsBy(function(r){return gd(t,r.head)},{origin:"+move",bias:1})},goLineEnd:function(t){return t.extendSelectionsBy(function(r){return z3(t,r.head.line)},{origin:"+move",bias:-1})},goLineRight:function(t){return t.extendSelectionsBy(function(r){var s=t.cursorCoords(r.head,"div").top+5;return t.coordsChar({left:t.display.lineDiv.offsetWidth+100,top:s},"div")},Se)},goLineLeft:function(t){return t.extendSelectionsBy(function(r){var s=t.cursorCoords(r.head,"div").top+5;return t.coordsChar({left:0,top:s},"div")},Se)},goLineLeftSmart:function(t){return t.extendSelectionsBy(function(r){var s=t.cursorCoords(r.head,"div").top+5,a=t.coordsChar({left:0,top:s},"div");return a.ch<t.getLine(a.line).search(/\S/)?gd(t,r.head):a},Se)},goLineUp:function(t){return t.moveV(-1,"line")},goLineDown:function(t){return t.moveV(1,"line")},goPageUp:function(t){return t.moveV(-1,"page")},goPageDown:function(t){return t.moveV(1,"page")},goCharLeft:function(t){return t.moveH(-1,"char")},goCharRight:function(t){return t.moveH(1,"char")},goColumnLeft:function(t){return t.moveH(-1,"column")},goColumnRight:function(t){return t.moveH(1,"column")},goWordLeft:function(t){return t.moveH(-1,"word")},goGroupRight:function(t){return t.moveH(1,"group")},goGroupLeft:function(t){return t.moveH(-1,"group")},goWordRight:function(t){return t.moveH(1,"word")},delCharBefore:function(t){return t.deleteH(-1,"codepoint")},delCharAfter:function(t){return t.deleteH(1,"char")},delWordBefore:function(t){return t.deleteH(-1,"word")},delWordAfter:function(t){return t.deleteH(1,"word")},delGroupBefore:function(t){return t.deleteH(-1,"group")},delGroupAfter:function(t){return t.deleteH(1,"group")},indentAuto:function(t){return t.indentSelection("smart")},indentMore:function(t){return t.indentSelection("add")},indentLess:function(t){return t.indentSelection("subtract")},insertTab:function(t){return t.replaceSelection(" ")},insertSoftTab:function(t){for(var r=[],s=t.listSelections(),a=t.options.tabSize,c=0;c<s.length;c++){var h=s[c].from(),f=Je(t.getLine(h.line),h.ch,a);r.push(bn(a-f%a))}t.replaceSelections(r)},defaultTab:function(t){t.somethingSelected()?t.indentSelection("add"):t.execCommand("insertTab")},transposeChars:function(t){return qt(t,function(){for(var r=t.listSelections(),s=[],a=0;a<r.length;a++)if(r[a].empty()){var c=r[a].head,h=he(t.doc,c.line).text;if(h){if(c.ch==h.length&&(c=new U(c.line,c.ch-1)),c.ch>0)c=new U(c.line,c.ch+1),t.replaceRange(h.charAt(c.ch-1)+h.charAt(c.ch-2),U(c.line,c.ch-2),c,"+transpose");else if(c.line>t.doc.first){var f=he(t.doc,c.line-1).text;f&&(c=new U(c.line,1),t.replaceRange(h.charAt(0)+t.doc.lineSeparator()+f.charAt(f.length-1),U(c.line-1,f.length-1),c,"+transpose"))}}s.push(new Fe(c,c))}t.setSelections(s)})},newlineAndIndent:function(t){return qt(t,function(){for(var r=t.listSelections(),s=r.length-1;s>=0;s--)t.replaceRange(t.doc.lineSeparator(),r[s].anchor,r[s].head,"+input");r=t.listSelections();for(var a=0;a<r.length;a++)t.indentLine(r[a].from().line,null,!0);Di(t)})},openLine:function(t){return t.replaceSelection(`
2985
+ `,"start")},toggleOverwrite:function(t){return t.toggleOverwrite()}};function pd(t,r){var s=he(t.doc,r),a=Fr(s);return a!=s&&(r=Re(a)),_1(!0,t,a,r,1)}function z3(t,r){var s=he(t.doc,r),a=a4(s);return a!=s&&(r=Re(a)),_1(!0,t,s,r,-1)}function gd(t,r){var s=pd(t,r.line),a=he(t.doc,s.line),c=jt(a,t.doc.direction);if(!c||c[0].level==0){var h=Math.max(s.ch,a.text.search(/\S/)),f=r.line==s.line&&r.ch<=h&&r.ch;return U(s.line,f?0:h,s.sticky)}return s}function Cs(t,r,s){if(typeof r=="string"&&(r=ea[r],!r))return!1;t.display.input.ensurePolled();var a=t.display.shift,c=!1;try{t.isReadOnly()&&(t.state.suppressEdits=!0),s&&(t.display.shift=!1),c=r(t)!=$e}finally{t.display.shift=a,t.state.suppressEdits=!1}return c}function L3(t,r,s){for(var a=0;a<t.state.keyMaps.length;a++){var c=Zi(r,t.state.keyMaps[a],s,t);if(c)return c}return t.options.extraKeys&&Zi(r,t.options.extraKeys,s,t)||Zi(r,t.options.keyMap,s,t)}var S3=new Ue;function ta(t,r,s,a){var c=t.state.keySeq;if(c){if(dd(r))return"handled";if(/\'$/.test(r)?t.state.keySeq=null:S3.set(50,function(){t.state.keySeq==c&&(t.state.keySeq=null,t.display.input.reset())}),vd(t,c+" "+r,s,a))return!0}return vd(t,r,s,a)}function vd(t,r,s,a){var c=L3(t,r,a);return c=="multi"&&(t.state.keySeq=r),c=="handled"&&yt(t,"keyHandled",t,r,s),(c=="handled"||c=="multi")&&($t(s),p1(t)),!!c}function bd(t,r){var s=fd(r,!0);return s?r.shiftKey&&!t.state.keySeq?ta(t,"Shift-"+s,r,function(a){return Cs(t,a,!0)})||ta(t,s,r,function(a){if(typeof a=="string"?/^go[A-Z]/.test(a):a.motion)return Cs(t,a)}):ta(t,s,r,function(a){return Cs(t,a)}):!1}function M3(t,r,s){return ta(t,"'"+s+"'",r,function(a){return Cs(t,a,!0)})}var I1=null;function md(t){var r=this;if(!(t.target&&t.target!=r.display.input.getField())&&(r.curOp.focus=be(),!ct(r,t))){m&&y<11&&t.keyCode==27&&(t.returnValue=!1);var s=t.keyCode;r.display.shift=s==16||t.shiftKey;var a=bd(r,t);E&&(I1=a?s:null,!a&&s==88&&!qa&&(ue?t.metaKey:t.ctrlKey)&&r.replaceSelection("",null,"cut")),l&&!ue&&!a&&s==46&&t.shiftKey&&!t.ctrlKey&&document.execCommand&&document.execCommand("cut"),s==18&&!/\bCodeMirror-crosshair\b/.test(r.display.lineDiv.className)&&T3(r)}}function T3(t){var r=t.display.lineDiv;Me(r,"CodeMirror-crosshair");function s(a){(a.keyCode==18||!a.altKey)&&(ie(r,"CodeMirror-crosshair"),Nt(document,"keyup",s),Nt(document,"mouseover",s))}Ce(document,"keyup",s),Ce(document,"mouseover",s)}function yd(t){t.keyCode==16&&(this.doc.sel.shift=!1),ct(this,t)}function Cd(t){var r=this;if(!(t.target&&t.target!=r.display.input.getField())&&!(tn(r.display,t)||ct(r,t)||t.ctrlKey&&!t.altKey||ue&&t.metaKey)){var s=t.keyCode,a=t.charCode;if(E&&s==I1){I1=null,$t(t);return}if(!(E&&(!t.which||t.which<10)&&bd(r,t))){var c=String.fromCharCode(a==null?s:a);c!="\b"&&(M3(r,t,c)||r.display.input.onKeyPress(t))}}}var k3=400,A1=function(t,r,s){this.time=t,this.pos=r,this.button=s};A1.prototype.compare=function(t,r,s){return this.time+k3>t&&C(r,this.pos)==0&&s==this.button};var ra,na;function $3(t,r){var s=+new Date;return na&&na.compare(s,t,r)?(ra=na=null,"triple"):ra&&ra.compare(s,t,r)?(na=new A1(s,t,r),ra=null,"double"):(ra=new A1(s,t,r),na=null,"single")}function wd(t){var r=this,s=r.display;if(!(ct(r,t)||s.activeTouch&&s.input.supportsTouch())){if(s.input.ensurePolled(),s.shift=t.shiftKey,tn(s,t)){T||(s.scroller.draggable=!1,setTimeout(function(){return s.scroller.draggable=!0},100));return}if(!P1(r,t)){var a=Gn(r,t),c=Ua(t),h=a?$3(a,c):"single";window.focus(),c==1&&r.state.selectingText&&r.state.selectingText(t),!(a&&O3(r,c,a,h,t))&&(c==1?a?_3(r,a,h,t):mn(t)==s.scroller&&$t(t):c==2?(a&&ps(r.doc,a),setTimeout(function(){return s.input.focus()},20)):c==3&&(We?r.display.input.onContextMenu(t):g1(r)))}}}function O3(t,r,s,a,c){var h="Click";return a=="double"?h="Double"+h:a=="triple"&&(h="Triple"+h),h=(r==1?"Left":r==2?"Middle":"Right")+h,ta(t,hd(h,c),c,function(f){if(typeof f=="string"&&(f=ea[f]),!f)return!1;var p=!1;try{t.isReadOnly()&&(t.state.suppressEdits=!0),p=f(t,s)!=$e}finally{t.state.suppressEdits=!1}return p})}function E3(t,r,s){var a=t.getOption("configureMouse"),c=a?a(t,r,s):{};if(c.unit==null){var h=xe?s.shiftKey&&s.metaKey:s.altKey;c.unit=h?"rectangle":r=="single"?"char":r=="double"?"word":"line"}return(c.extend==null||t.doc.extend)&&(c.extend=t.doc.extend||s.shiftKey),c.addNew==null&&(c.addNew=ue?s.metaKey:s.ctrlKey),c.moveOnDrag==null&&(c.moveOnDrag=!(ue?s.altKey:s.ctrlKey)),c}function _3(t,r,s,a){m?setTimeout(Qt(xu,t),0):t.curOp.focus=be();var c=E3(t,s,a),h=t.doc.sel,f;t.options.dragDrop&&Lo&&!t.isReadOnly()&&s=="single"&&(f=h.contains(r))>-1&&(C((f=h.ranges[f]).from(),r)<0||r.xRel>0)&&(C(f.to(),r)>0||r.xRel<0)?I3(t,a,r,c):A3(t,a,r,c)}function I3(t,r,s,a){var c=t.display,h=!1,f=Ct(t,function(b){T&&(c.scroller.draggable=!1),t.state.draggingText=!1,t.state.delayingBlurEvent&&(t.hasFocus()?t.state.delayingBlurEvent=!1:g1(t)),Nt(c.wrapper.ownerDocument,"mouseup",f),Nt(c.wrapper.ownerDocument,"mousemove",p),Nt(c.scroller,"dragstart",g),Nt(c.scroller,"drop",f),h||($t(b),a.addNew||ps(t.doc,s,null,null,a.extend),T&&!N||m&&y==9?setTimeout(function(){c.wrapper.ownerDocument.body.focus({preventScroll:!0}),c.input.focus()},20):c.input.focus())}),p=function(b){h=h||Math.abs(r.clientX-b.clientX)+Math.abs(r.clientY-b.clientY)>=10},g=function(){return h=!0};T&&(c.scroller.draggable=!0),t.state.draggingText=f,f.copy=!a.moveOnDrag,Ce(c.wrapper.ownerDocument,"mouseup",f),Ce(c.wrapper.ownerDocument,"mousemove",p),Ce(c.scroller,"dragstart",g),Ce(c.scroller,"drop",f),t.state.delayingBlurEvent=!0,setTimeout(function(){return c.input.focus()},20),c.scroller.dragDrop&&c.scroller.dragDrop()}function xd(t,r,s){if(s=="char")return new Fe(r,r);if(s=="word")return t.findWordAt(r);if(s=="line")return new Fe(U(r.line,0),oe(t.doc,U(r.line+1,0)));var a=s(t,r);return new Fe(a.from,a.to)}function A3(t,r,s,a){m&&g1(t);var c=t.display,h=t.doc;$t(r);var f,p,g=h.sel,b=g.ranges;if(a.addNew&&!a.extend?(p=h.sel.contains(s),p>-1?f=b[p]:f=new Fe(s,s)):(f=h.sel.primary(),p=h.sel.primIndex),a.unit=="rectangle")a.addNew||(f=new Fe(s,s)),s=Gn(t,r,!0,!0),p=-1;else{var w=xd(t,s,a.unit);a.extend?f=k1(f,w.anchor,w.head,a.extend):f=w}a.addNew?p==-1?(p=b.length,Et(h,wr(t,b.concat([f]),p),{scroll:!1,origin:"*mouse"})):b.length>1&&b[p].empty()&&a.unit=="char"&&!a.extend?(Et(h,wr(t,b.slice(0,p).concat(b.slice(p+1)),0),{scroll:!1,origin:"*mouse"}),g=h.sel):$1(h,p,f,Ee):(p=0,Et(h,new sr([f],0),Ee),g=h.sel);var L=s;function I(Q){if(C(L,Q)!=0)if(L=Q,a.unit=="rectangle"){for(var ce=[],ye=t.options.tabSize,ve=Je(he(h,s.line).text,s.ch,ye),ke=Je(he(h,Q.line).text,Q.ch,ye),Ye=Math.min(ve,ke),xt=Math.max(ve,ke),rt=Math.min(s.line,Q.line),Kt=Math.min(t.lastLine(),Math.max(s.line,Q.line));rt<=Kt;rt++){var Bt=he(h,rt).text,ut=bt(Bt,Ye,ye);Ye==xt?ce.push(new Fe(U(rt,ut),U(rt,ut))):Bt.length>ut&&ce.push(new Fe(U(rt,ut),U(rt,bt(Bt,xt,ye))))}ce.length||ce.push(new Fe(s,s)),Et(h,wr(t,g.ranges.slice(0,p).concat(ce),p),{origin:"*mouse",scroll:!1}),t.scrollIntoView(Q)}else{var Vt=f,Mt=xd(t,Q,a.unit),ft=Vt.anchor,dt;C(Mt.anchor,ft)>0?(dt=Mt.head,ft=Le(Vt.from(),Mt.anchor)):(dt=Mt.anchor,ft=q(Vt.to(),Mt.head));var ot=g.ranges.slice(0);ot[p]=P3(t,new Fe(oe(h,ft),dt)),Et(h,wr(t,ot,p),Ee)}}var _=c.wrapper.getBoundingClientRect(),H=0;function W(Q){var ce=++H,ye=Gn(t,Q,!0,a.unit=="rectangle");if(ye)if(C(ye,L)!=0){t.curOp.focus=be(),I(ye);var ve=ls(c,h);(ye.line>=ve.to||ye.line<ve.from)&&setTimeout(Ct(t,function(){H==ce&&W(Q)}),150)}else{var ke=Q.clientY<_.top?-20:Q.clientY>_.bottom?20:0;ke&&setTimeout(Ct(t,function(){H==ce&&(c.scroller.scrollTop+=ke,W(Q))}),50)}}function K(Q){t.state.selectingText=!1,H=1/0,Q&&($t(Q),c.input.focus()),Nt(c.wrapper.ownerDocument,"mousemove",J),Nt(c.wrapper.ownerDocument,"mouseup",ae),h.history.lastSelOrigin=null}var J=Ct(t,function(Q){Q.buttons===0||!Ua(Q)?K(Q):W(Q)}),ae=Ct(t,K);t.state.selectingText=ae,Ce(c.wrapper.ownerDocument,"mousemove",J),Ce(c.wrapper.ownerDocument,"mouseup",ae)}function P3(t,r){var s=r.anchor,a=r.head,c=he(t.doc,s.line);if(C(s,a)==0&&s.sticky==a.sticky)return r;var h=jt(c);if(!h)return r;var f=nt(h,s.ch,s.sticky),p=h[f];if(p.from!=s.ch&&p.to!=s.ch)return r;var g=f+(p.from==s.ch==(p.level!=1)?0:1);if(g==0||g==h.length)return r;var b;if(a.line!=s.line)b=(a.line-s.line)*(t.doc.direction=="ltr"?1:-1)>0;else{var w=nt(h,a.ch,a.sticky),L=w-f||(a.ch-s.ch)*(p.level==1?-1:1);w==g-1||w==g?b=L<0:b=L>0}var I=h[g+(b?-1:0)],_=b==(I.level==1),H=_?I.from:I.to,W=_?"after":"before";return s.ch==H&&s.sticky==W?r:new Fe(new U(s.line,H,W),a)}function zd(t,r,s,a){var c,h;if(r.touches)c=r.touches[0].clientX,h=r.touches[0].clientY;else try{c=r.clientX,h=r.clientY}catch{return!1}if(c>=Math.floor(t.display.gutters.getBoundingClientRect().right))return!1;a&&$t(r);var f=t.display,p=f.lineDiv.getBoundingClientRect();if(h>p.bottom||!St(t,s))return rr(r);h-=p.top-f.viewOffset;for(var g=0;g<t.display.gutterSpecs.length;++g){var b=f.gutters.childNodes[g];if(b&&b.getBoundingClientRect().right>=c){var w=Hr(t.doc,h),L=t.display.gutterSpecs[g];return ze(t,s,t,w,L.className,r),rr(r)}}}function P1(t,r){return zd(t,r,"gutterClick",!0)}function Ld(t,r){tn(t.display,r)||D3(t,r)||ct(t,r,"contextmenu")||We||t.display.input.onContextMenu(r)}function D3(t,r){return St(t,"gutterContextMenu")?zd(t,r,"gutterContextMenu",!1):!1}function Sd(t){t.display.wrapper.className=t.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+t.options.theme.replace(/(^|\s)\s*/g," cm-s-"),No(t)}var Ui={toString:function(){return"CodeMirror.Init"}},Md={},ws={};function N3(t){var r=t.optionHandlers;function s(a,c,h,f){t.defaults[a]=c,h&&(r[a]=f?function(p,g,b){b!=Ui&&h(p,g,b)}:h)}t.defineOption=s,t.Init=Ui,s("value","",function(a,c){return a.setValue(c)},!0),s("mode",null,function(a,c){a.doc.modeOption=c,S1(a)},!0),s("indentUnit",2,S1,!0),s("indentWithTabs",!1),s("smartIndent",!0),s("tabSize",4,function(a){Uo(a),No(a),Rt(a)},!0),s("lineSeparator",null,function(a,c){if(a.doc.lineSep=c,!!c){var h=[],f=a.doc.first;a.doc.iter(function(g){for(var b=0;;){var w=g.text.indexOf(c,b);if(w==-1)break;b=w+c.length,h.push(U(f,w))}f++});for(var p=h.length-1;p>=0;p--)Bi(a.doc,c,h[p],U(h[p].line,h[p].ch+c.length))}}),s("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(a,c,h){a.state.specialChars=new RegExp(c.source+(c.test(" ")?"":"| "),"g"),h!=Ui&&a.refresh()}),s("specialCharPlaceholder",h4,function(a){return a.refresh()},!0),s("electricChars",!0),s("inputStyle",re?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),s("spellcheck",!1,function(a,c){return a.getInputField().spellcheck=c},!0),s("autocorrect",!1,function(a,c){return a.getInputField().autocorrect=c},!0),s("autocapitalize",!1,function(a,c){return a.getInputField().autocapitalize=c},!0),s("rtlMoveVisually",!qe),s("wholeLineUpdateBefore",!0),s("theme","default",function(a){Sd(a),Wo(a)},!0),s("keyMap","default",function(a,c,h){var f=ys(c),p=h!=Ui&&ys(h);p&&p.detach&&p.detach(a,f),f.attach&&f.attach(a,p||null)}),s("extraKeys",null),s("configureMouse",null),s("lineWrapping",!1,R3,!0),s("gutters",[],function(a,c){a.display.gutterSpecs=z1(c,a.options.lineNumbers),Wo(a)},!0),s("fixedGutter",!0,function(a,c){a.display.gutters.style.left=c?h1(a.display)+"px":"0",a.refresh()},!0),s("coverGutterNextToScrollbar",!1,function(a){return Ni(a)},!0),s("scrollbarStyle","native",function(a){ku(a),Ni(a),a.display.scrollbars.setScrollTop(a.doc.scrollTop),a.display.scrollbars.setScrollLeft(a.doc.scrollLeft)},!0),s("lineNumbers",!1,function(a,c){a.display.gutterSpecs=z1(a.options.gutters,c),Wo(a)},!0),s("firstLineNumber",1,Wo,!0),s("lineNumberFormatter",function(a){return a},Wo,!0),s("showCursorWhenSelecting",!1,Ho,!0),s("resetSelectionOnContextMenu",!0),s("lineWiseCopyCut",!0),s("pasteLinesPerSelection",!0),s("selectionsMayTouch",!1),s("readOnly",!1,function(a,c){c=="nocursor"&&(Pi(a),a.display.input.blur()),a.display.input.readOnlyChanged(c)}),s("screenReaderLabel",null,function(a,c){c=c===""?null:c,a.display.input.screenReaderLabelChanged(c)}),s("disableInput",!1,function(a,c){c||a.display.input.reset()},!0),s("dragDrop",!0,H3),s("allowDropFileTypes",null),s("cursorBlinkRate",530),s("cursorScrollMargin",0),s("cursorHeight",1,Ho,!0),s("singleCursorHeightPerLine",!0,Ho,!0),s("workTime",100),s("workDelay",100),s("flattenSpans",!0,Uo,!0),s("addModeClass",!1,Uo,!0),s("pollInterval",100),s("undoDepth",200,function(a,c){return a.doc.history.undoDepth=c}),s("historyEventDelay",1250),s("viewportMargin",10,function(a){return a.refresh()},!0),s("maxHighlightLength",1e4,Uo,!0),s("moveInputWithCursor",!0,function(a,c){c||a.display.input.resetPosition()}),s("tabindex",null,function(a,c){return a.display.input.getField().tabIndex=c||""}),s("autofocus",null),s("direction","ltr",function(a,c){return a.doc.setDirection(c)},!0),s("phrases",null)}function H3(t,r,s){var a=s&&s!=Ui;if(!r!=!a){var c=t.display.dragFunctions,h=r?Ce:Nt;h(t.display.scroller,"dragstart",c.start),h(t.display.scroller,"dragenter",c.enter),h(t.display.scroller,"dragover",c.over),h(t.display.scroller,"dragleave",c.leave),h(t.display.scroller,"drop",c.drop)}}function R3(t){t.options.lineWrapping?(Me(t.display.wrapper,"CodeMirror-wrap"),t.display.sizer.style.minWidth="",t.display.sizerWidth=null):(ie(t.display.wrapper,"CodeMirror-wrap"),r1(t)),f1(t),Rt(t),No(t),setTimeout(function(){return Ni(t)},100)}function Qe(t,r){var s=this;if(!(this instanceof Qe))return new Qe(t,r);this.options=r=r?Xe(r):{},Xe(Md,r,!1);var a=r.value;typeof a=="string"?a=new Ft(a,r.mode,null,r.lineSeparator,r.direction):r.mode&&(a.modeOption=r.mode),this.doc=a;var c=new Qe.inputStyles[r.inputStyle](this),h=this.display=new J4(t,a,c,r);h.wrapper.CodeMirror=this,Sd(this),r.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),ku(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new Ue,keySeq:null,specialChars:null},r.autofocus&&!re&&h.input.focus(),m&&y<11&&setTimeout(function(){return s.display.input.reset(!0)},20),F3(this),b3(),Xn(this),this.curOp.forceUpdate=!0,Hu(this,a),r.autofocus&&!re||this.hasFocus()?setTimeout(function(){s.hasFocus()&&!s.state.focused&&v1(s)},20):Pi(this);for(var f in ws)ws.hasOwnProperty(f)&&ws[f](this,r[f],Ui);Eu(this),r.finishInit&&r.finishInit(this);for(var p=0;p<D1.length;++p)D1[p](this);Jn(this),T&&r.lineWrapping&&getComputedStyle(h.lineDiv).textRendering=="optimizelegibility"&&(h.lineDiv.style.textRendering="auto")}Qe.defaults=Md,Qe.optionHandlers=ws;function F3(t){var r=t.display;Ce(r.scroller,"mousedown",Ct(t,wd)),m&&y<11?Ce(r.scroller,"dblclick",Ct(t,function(g){if(!ct(t,g)){var b=Gn(t,g);if(!(!b||P1(t,g)||tn(t.display,g))){$t(g);var w=t.findWordAt(b);ps(t.doc,w.anchor,w.head)}}})):Ce(r.scroller,"dblclick",function(g){return ct(t,g)||$t(g)}),Ce(r.scroller,"contextmenu",function(g){return Ld(t,g)}),Ce(r.input.getField(),"contextmenu",function(g){r.scroller.contains(g.target)||Ld(t,g)});var s,a={end:0};function c(){r.activeTouch&&(s=setTimeout(function(){return r.activeTouch=null},1e3),a=r.activeTouch,a.end=+new Date)}function h(g){if(g.touches.length!=1)return!1;var b=g.touches[0];return b.radiusX<=1&&b.radiusY<=1}function f(g,b){if(b.left==null)return!0;var w=b.left-g.left,L=b.top-g.top;return w*w+L*L>20*20}Ce(r.scroller,"touchstart",function(g){if(!ct(t,g)&&!h(g)&&!P1(t,g)){r.input.ensurePolled(),clearTimeout(s);var b=+new Date;r.activeTouch={start:b,moved:!1,prev:b-a.end<=300?a:null},g.touches.length==1&&(r.activeTouch.left=g.touches[0].pageX,r.activeTouch.top=g.touches[0].pageY)}}),Ce(r.scroller,"touchmove",function(){r.activeTouch&&(r.activeTouch.moved=!0)}),Ce(r.scroller,"touchend",function(g){var b=r.activeTouch;if(b&&!tn(r,g)&&b.left!=null&&!b.moved&&new Date-b.start<300){var w=t.coordsChar(r.activeTouch,"page"),L;!b.prev||f(b,b.prev)?L=new Fe(w,w):!b.prev.prev||f(b,b.prev.prev)?L=t.findWordAt(w):L=new Fe(U(w.line,0),oe(t.doc,U(w.line+1,0))),t.setSelection(L.anchor,L.head),t.focus(),$t(g)}c()}),Ce(r.scroller,"touchcancel",c),Ce(r.scroller,"scroll",function(){r.scroller.clientHeight&&(Fo(t,r.scroller.scrollTop),Kn(t,r.scroller.scrollLeft,!0),ze(t,"scroll",t))}),Ce(r.scroller,"mousewheel",function(g){return Au(t,g)}),Ce(r.scroller,"DOMMouseScroll",function(g){return Au(t,g)}),Ce(r.wrapper,"scroll",function(){return r.wrapper.scrollTop=r.wrapper.scrollLeft=0}),r.dragFunctions={enter:function(g){ct(t,g)||Zn(g)},over:function(g){ct(t,g)||(v3(t,g),Zn(g))},start:function(g){return g3(t,g)},drop:Ct(t,p3),leave:function(g){ct(t,g)||ld(t)}};var p=r.input.getField();Ce(p,"keyup",function(g){return yd.call(t,g)}),Ce(p,"keydown",Ct(t,md)),Ce(p,"keypress",Ct(t,Cd)),Ce(p,"focus",function(g){return v1(t,g)}),Ce(p,"blur",function(g){return Pi(t,g)})}var D1=[];Qe.defineInitHook=function(t){return D1.push(t)};function ia(t,r,s,a){var c=t.doc,h;s==null&&(s="add"),s=="smart"&&(c.mode.indent?h=_o(t,r).state:s="prev");var f=t.options.tabSize,p=he(c,r),g=Je(p.text,null,f);p.stateAfter&&(p.stateAfter=null);var b=p.text.match(/^\s*/)[0],w;if(!a&&!/\S/.test(p.text))w=0,s="not";else if(s=="smart"&&(w=c.mode.indent(h,p.text.slice(b.length),p.text),w==$e||w>150)){if(!a)return;s="prev"}s=="prev"?r>c.first?w=Je(he(c,r-1).text,null,f):w=0:s=="add"?w=g+t.options.indentUnit:s=="subtract"?w=g-t.options.indentUnit:typeof s=="number"&&(w=g+s),w=Math.max(0,w);var L="",I=0;if(t.options.indentWithTabs)for(var _=Math.floor(w/f);_;--_)I+=f,L+=" ";if(I<w&&(L+=bn(w-I)),L!=b)return Bi(c,L,U(r,0),U(r,b.length),"+input"),p.stateAfter=null,!0;for(var H=0;H<c.sel.ranges.length;H++){var W=c.sel.ranges[H];if(W.head.line==r&&W.head.ch<b.length){var K=U(r,b.length);$1(c,H,new Fe(K,K));break}}}var xr=null;function xs(t){xr=t}function N1(t,r,s,a,c){var h=t.doc;t.display.shift=!1,a||(a=h.sel);var f=+new Date-200,p=c=="paste"||t.state.pasteIncoming>f,g=Mo(r),b=null;if(p&&a.ranges.length>1)if(xr&&xr.text.join(`
2986
2986
  `)==r){if(a.ranges.length%xr.text.length==0){b=[];for(var w=0;w<xr.text.length;w++)b.push(h.splitLines(xr.text[w]))}}else g.length==a.ranges.length&&t.options.pasteLinesPerSelection&&(b=He(g,function(J){return[J]}));for(var L=t.curOp.updateInput,I=a.ranges.length-1;I>=0;I--){var _=a.ranges[I],H=_.from(),W=_.to();_.empty()&&(s&&s>0?H=U(H.line,H.ch-s):t.state.overwrite&&!p?W=U(W.line,Math.min(he(h,W.line).text.length,W.ch+Oe(g).length)):p&&xr&&xr.lineWise&&xr.text.join(`
2987
2987
  `)==g.join(`
2988
- `)&&(H=W=U(H.line,0)));var K={from:H,to:W,text:b?b[I%b.length]:g,origin:c||(p?"paste":t.state.cutIncoming>f?"cut":"+input")};Fi(t.doc,K),yt(t,"inputRead",t,K)}r&&!p&&Td(t,r),Di(t),t.curOp.updateInput<2&&(t.curOp.updateInput=L),t.curOp.typing=!0,t.state.pasteIncoming=t.state.cutIncoming=-1}function Md(t,r){var s=t.clipboardData&&t.clipboardData.getData("Text");if(s)return t.preventDefault(),!r.isReadOnly()&&!r.options.disableInput&&qt(r,function(){return N1(r,s,0,null,"paste")}),!0}function Td(t,r){if(!(!t.options.electricChars||!t.options.smartIndent))for(var s=t.doc.sel,a=s.ranges.length-1;a>=0;a--){var c=s.ranges[a];if(!(c.head.ch>100||a&&s.ranges[a-1].head.line==c.head.line)){var h=t.getModeAt(c.head),f=!1;if(h.electricChars){for(var p=0;p<h.electricChars.length;p++)if(r.indexOf(h.electricChars.charAt(p))>-1){f=ia(t,c.head.line,"smart");break}}else h.electricInput&&h.electricInput.test(he(t.doc,c.head.line).text.slice(0,c.head.ch))&&(f=ia(t,c.head.line,"smart"));f&&yt(t,"electricInput",t,c.head.line)}}}function kd(t){for(var r=[],s=[],a=0;a<t.doc.sel.ranges.length;a++){var c=t.doc.sel.ranges[a].head.line,h={anchor:U(c,0),head:U(c+1,0)};s.push(h),r.push(t.getRange(h.anchor,h.head))}return{text:r,ranges:s}}function $d(t,r,s,a){t.setAttribute("autocorrect",s?"":"off"),t.setAttribute("autocapitalize",a?"":"off"),t.setAttribute("spellcheck",!!r)}function Od(){var t=x("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),r=x("div",[t],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return T?t.style.width="1000px":t.setAttribute("wrap","off"),te&&(t.style.border="1px solid black"),$d(t),r}function N3(t){var r=t.optionHandlers,s=t.helpers={};t.prototype={constructor:t,focus:function(){window.focus(),this.display.input.focus()},setOption:function(a,c){var h=this.options,f=h[a];h[a]==c&&a!="mode"||(h[a]=c,r.hasOwnProperty(a)&&Ct(this,r[a])(this,c,f),ze(this,"optionChange",this,a))},getOption:function(a){return this.options[a]},getDoc:function(){return this.doc},addKeyMap:function(a,c){this.state.keyMaps[c?"push":"unshift"](ys(a))},removeKeyMap:function(a){for(var c=this.state.keyMaps,h=0;h<c.length;++h)if(c[h]==a||c[h].name==a)return c.splice(h,1),!0},addOverlay:At(function(a,c){var h=a.token?a:t.getMode(this.options,a);if(h.startState)throw new Error("Overlays may not be stateful.");mt(this.state.overlays,{mode:h,modeSpec:a,opaque:c&&c.opaque,priority:c&&c.priority||0},function(f){return f.priority}),this.state.modeGen++,Rt(this)}),removeOverlay:At(function(a){for(var c=this.state.overlays,h=0;h<c.length;++h){var f=c[h].modeSpec;if(f==a||typeof a=="string"&&f.name==a){c.splice(h,1),this.state.modeGen++,Rt(this);return}}}),indentLine:At(function(a,c,h){typeof c!="string"&&typeof c!="number"&&(c==null?c=this.options.smartIndent?"smart":"prev":c=c?"add":"subtract"),Wn(this.doc,a)&&ia(this,a,c,h)}),indentSelection:At(function(a){for(var c=this.doc.sel.ranges,h=-1,f=0;f<c.length;f++){var p=c[f];if(p.empty())p.head.line>h&&(ia(this,p.head.line,a,!0),h=p.head.line,f==this.doc.sel.primIndex&&Di(this));else{var g=p.from(),b=p.to(),w=Math.max(h,g.line);h=Math.min(this.lastLine(),b.line-(b.ch?0:1))+1;for(var L=w;L<h;++L)ia(this,L,a);var I=this.doc.sel.ranges;g.ch==0&&c.length==I.length&&I[f].from().ch>0&&$1(this.doc,f,new Fe(g,I[f].to()),Pe)}}}),getTokenAt:function(a,c){return H0(this,a,c)},getLineTokens:function(a,c){return H0(this,U(a),c,!0)},getTokenTypeAt:function(a){a=oe(this.doc,a);var c=P0(this,he(this.doc,a.line)),h=0,f=(c.length-1)/2,p=a.ch,g;if(p==0)g=c[2];else for(;;){var b=h+f>>1;if((b?c[b*2-1]:0)>=p)f=b;else if(c[b*2+1]<p)h=b+1;else{g=c[b*2+2];break}}var w=g?g.indexOf("overlay "):-1;return w<0?g:w==0?null:g.slice(0,w-1)},getModeAt:function(a){var c=this.doc.mode;return c.innerMode?t.innerMode(c,this.getTokenAt(a).state).mode:c},getHelper:function(a,c){return this.getHelpers(a,c)[0]},getHelpers:function(a,c){var h=[];if(!s.hasOwnProperty(c))return h;var f=s[c],p=this.getModeAt(a);if(typeof p[c]=="string")f[p[c]]&&h.push(f[p[c]]);else if(p[c])for(var g=0;g<p[c].length;g++){var b=f[p[c][g]];b&&h.push(b)}else p.helperType&&f[p.helperType]?h.push(f[p.helperType]):f[p.name]&&h.push(f[p.name]);for(var w=0;w<f._global.length;w++){var L=f._global[w];L.pred(p,this)&&fe(h,L.val)==-1&&h.push(L.val)}return h},getStateAfter:function(a,c){var h=this.doc;return a=Ae(h,a==null?h.first+h.size-1:a),_o(this,a+1,c).state},cursorCoords:function(a,c){var h,f=this.doc.sel.primary();return a==null?h=f.head:typeof a=="object"?h=oe(this.doc,a):h=a?f.from():f.to(),Cr(this,h,c||"page")},charCoords:function(a,c){return is(this,oe(this.doc,a),c||"page")},coordsChar:function(a,c){return a=fu(this,a,c||"page"),c1(this,a.left,a.top)},lineAtHeight:function(a,c){return a=fu(this,{top:a,left:0},c||"page").top,Hr(this.doc,a+this.display.viewOffset)},heightAtLine:function(a,c,h){var f=!1,p;if(typeof a=="number"){var g=this.doc.first+this.doc.size-1;a<this.doc.first?a=this.doc.first:a>g&&(a=g,f=!0),p=he(this.doc,a)}else p=a;return ns(this,p,{top:0,left:0},c||"page",h||f).top+(f?this.doc.height-en(p):0)},defaultTextHeight:function(){return Ii(this.display)},defaultCharWidth:function(){return Ai(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(a,c,h,f,p){var g=this.display;a=Cr(this,oe(this.doc,a));var b=a.bottom,w=a.left;if(c.style.position="absolute",c.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(c),g.sizer.appendChild(c),f=="over")b=a.top;else if(f=="above"||f=="near"){var L=Math.max(g.wrapper.clientHeight,this.doc.height),I=Math.max(g.sizer.clientWidth,g.lineSpace.clientWidth);(f=="above"||a.bottom+c.offsetHeight>L)&&a.top>c.offsetHeight?b=a.top-c.offsetHeight:a.bottom+c.offsetHeight<=L&&(b=a.bottom),w+c.offsetWidth>I&&(w=I-c.offsetWidth)}c.style.top=b+"px",c.style.left=c.style.right="",p=="right"?(w=g.sizer.clientWidth-c.offsetWidth,c.style.right="0px"):(p=="left"?w=0:p=="middle"&&(w=(g.sizer.clientWidth-c.offsetWidth)/2),c.style.left=w+"px"),h&&A4(this,{left:w,top:b,right:w+c.offsetWidth,bottom:b+c.offsetHeight})},triggerOnKeyDown:At(bd),triggerOnKeyPress:At(yd),triggerOnKeyUp:md,triggerOnMouseDown:At(Cd),execCommand:function(a){if(ea.hasOwnProperty(a))return ea[a].call(null,this)},triggerElectric:At(function(a){Td(this,a)}),findPosH:function(a,c,h,f){var p=1;c<0&&(p=-1,c=-c);for(var g=oe(this.doc,a),b=0;b<c&&(g=H1(this.doc,g,p,h,f),!g.hitSide);++b);return g},moveH:At(function(a,c){var h=this;this.extendSelectionsBy(function(f){return h.display.shift||h.doc.extend||f.empty()?H1(h.doc,f.head,a,c,h.options.rtlMoveVisually):a<0?f.from():f.to()},Se)}),deleteH:At(function(a,c){var h=this.doc.sel,f=this.doc;h.somethingSelected()?f.replaceSelection("",null,"+delete"):Wi(this,function(p){var g=H1(f,p.head,a,c,!1);return a<0?{from:g,to:p.head}:{from:p.head,to:g}})}),findPosV:function(a,c,h,f){var p=1,g=f;c<0&&(p=-1,c=-c);for(var b=oe(this.doc,a),w=0;w<c;++w){var L=Cr(this,b,"div");if(g==null?g=L.left:L.left=g,b=Ed(this,L,p,h),b.hitSide)break}return b},moveV:At(function(a,c){var h=this,f=this.doc,p=[],g=!this.display.shift&&!f.extend&&f.sel.somethingSelected();if(f.extendSelectionsBy(function(w){if(g)return a<0?w.from():w.to();var L=Cr(h,w.head,"div");w.goalColumn!=null&&(L.left=w.goalColumn),p.push(L.left);var I=Ed(h,L,a,c);return c=="page"&&w==f.sel.primary()&&m1(h,is(h,I,"div").top-L.top),I},Se),p.length)for(var b=0;b<f.sel.ranges.length;b++)f.sel.ranges[b].goalColumn=p[b]}),findWordAt:function(a){var c=this.doc,h=he(c,a.line).text,f=a.ch,p=a.ch;if(h){var g=this.getHelper(a,"wordChars");(a.sticky=="before"||p==h.length)&&f?--f:++p;for(var b=h.charAt(f),w=A(b,g)?function(L){return A(L,g)}:/\s/.test(b)?function(L){return/\s/.test(L)}:function(L){return!/\s/.test(L)&&!A(L)};f>0&&w(h.charAt(f-1));)--f;for(;p<h.length&&w(h.charAt(p));)++p}return new Fe(U(a.line,f),U(a.line,p))},toggleOverwrite:function(a){a!=null&&a==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?Me(this.display.cursorDiv,"CodeMirror-overwrite"):ie(this.display.cursorDiv,"CodeMirror-overwrite"),ze(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==be()},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:At(function(a,c){Ro(this,a,c)}),getScrollInfo:function(){var a=this.display.scroller;return{left:a.scrollLeft,top:a.scrollTop,height:a.scrollHeight-Br(this)-this.display.barHeight,width:a.scrollWidth-Br(this)-this.display.barWidth,clientHeight:o1(this),clientWidth:Un(this)}},scrollIntoView:At(function(a,c){a==null?(a={from:this.doc.sel.primary().head,to:null},c==null&&(c=this.options.cursorScrollMargin)):typeof a=="number"?a={from:U(a,0),to:null}:a.from==null&&(a={from:a,to:null}),a.to||(a.to=a.from),a.margin=c||0,a.from.line!=null?P4(this,a):zu(this,a.from,a.to,a.margin)}),setSize:At(function(a,c){var h=this,f=function(g){return typeof g=="number"||/^\d+$/.test(String(g))?g+"px":g};a!=null&&(this.display.wrapper.style.width=f(a)),c!=null&&(this.display.wrapper.style.height=f(c)),this.options.lineWrapping&&uu(this);var p=this.display.viewFrom;this.doc.iter(p,this.display.viewTo,function(g){if(g.widgets){for(var b=0;b<g.widgets.length;b++)if(g.widgets[b].noHScroll){wn(h,p,"widget");break}}++p}),this.curOp.forceUpdate=!0,ze(this,"refresh",this)}),operation:function(a){return qt(this,a)},startOperation:function(){return Xn(this)},endOperation:function(){return Jn(this)},refresh:At(function(){var a=this.display.cachedTextHeight;Rt(this),this.curOp.forceUpdate=!0,No(this),Ro(this,this.doc.scrollLeft,this.doc.scrollTop),w1(this.display),(a==null||Math.abs(a-Ii(this.display))>.5||this.options.lineWrapping)&&f1(this),ze(this,"refresh",this)}),swapDoc:At(function(a){var c=this.doc;return c.cm=null,this.state.selectingText&&this.state.selectingText(),Nu(this,a),No(this),this.display.input.reset(),Ro(this,a.scrollLeft,a.scrollTop),this.curOp.forceScroll=!0,yt(this,"swapDoc",this,c),c}),phrase:function(a){var c=this.options.phrases;return c&&Object.prototype.hasOwnProperty.call(c,a)?c[a]:a},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},Pr(t),t.registerHelper=function(a,c,h){s.hasOwnProperty(a)||(s[a]=t[a]={_global:[]}),s[a][c]=h},t.registerGlobalHelper=function(a,c,h,f){t.registerHelper(a,c,f),s[a]._global.push({pred:h,val:f})}}function H1(t,r,s,a,c){var h=r,f=s,p=he(t,r.line),g=c&&t.direction=="rtl"?-s:s;function b(){var ae=r.line+g;return ae<t.first||ae>=t.first+t.size?!1:(r=new U(ae,r.ch,r.sticky),p=he(t,ae))}function w(ae){var Q;if(a=="codepoint"){var ce=p.text.charCodeAt(r.ch+(s>0?0:-1));if(isNaN(ce))Q=null;else{var ye=s>0?ce>=55296&&ce<56320:ce>=56320&&ce<57343;Q=new U(r.line,Math.max(0,Math.min(p.text.length,r.ch+s*(ye?2:1))),-s)}}else c?Q=m3(t.cm,p,r,s):Q=E1(p,r,s);if(Q==null)if(!ae&&b())r=_1(c,t.cm,p,r.line,g);else return!1;else r=Q;return!0}if(a=="char"||a=="codepoint")w();else if(a=="column")w(!0);else if(a=="word"||a=="group")for(var L=null,I=a=="group",_=t.cm&&t.cm.getHelper(r,"wordChars"),H=!0;!(s<0&&!w(!H));H=!1){var W=p.text.charAt(r.ch)||`
2988
+ `)&&(H=W=U(H.line,0)));var K={from:H,to:W,text:b?b[I%b.length]:g,origin:c||(p?"paste":t.state.cutIncoming>f?"cut":"+input")};Fi(t.doc,K),yt(t,"inputRead",t,K)}r&&!p&&kd(t,r),Di(t),t.curOp.updateInput<2&&(t.curOp.updateInput=L),t.curOp.typing=!0,t.state.pasteIncoming=t.state.cutIncoming=-1}function Td(t,r){var s=t.clipboardData&&t.clipboardData.getData("Text");if(s)return t.preventDefault(),!r.isReadOnly()&&!r.options.disableInput&&qt(r,function(){return N1(r,s,0,null,"paste")}),!0}function kd(t,r){if(!(!t.options.electricChars||!t.options.smartIndent))for(var s=t.doc.sel,a=s.ranges.length-1;a>=0;a--){var c=s.ranges[a];if(!(c.head.ch>100||a&&s.ranges[a-1].head.line==c.head.line)){var h=t.getModeAt(c.head),f=!1;if(h.electricChars){for(var p=0;p<h.electricChars.length;p++)if(r.indexOf(h.electricChars.charAt(p))>-1){f=ia(t,c.head.line,"smart");break}}else h.electricInput&&h.electricInput.test(he(t.doc,c.head.line).text.slice(0,c.head.ch))&&(f=ia(t,c.head.line,"smart"));f&&yt(t,"electricInput",t,c.head.line)}}}function $d(t){for(var r=[],s=[],a=0;a<t.doc.sel.ranges.length;a++){var c=t.doc.sel.ranges[a].head.line,h={anchor:U(c,0),head:U(c+1,0)};s.push(h),r.push(t.getRange(h.anchor,h.head))}return{text:r,ranges:s}}function Od(t,r,s,a){t.setAttribute("autocorrect",s?"":"off"),t.setAttribute("autocapitalize",a?"":"off"),t.setAttribute("spellcheck",!!r)}function Ed(){var t=x("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),r=x("div",[t],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return T?t.style.width="1000px":t.setAttribute("wrap","off"),te&&(t.style.border="1px solid black"),Od(t),r}function B3(t){var r=t.optionHandlers,s=t.helpers={};t.prototype={constructor:t,focus:function(){window.focus(),this.display.input.focus()},setOption:function(a,c){var h=this.options,f=h[a];h[a]==c&&a!="mode"||(h[a]=c,r.hasOwnProperty(a)&&Ct(this,r[a])(this,c,f),ze(this,"optionChange",this,a))},getOption:function(a){return this.options[a]},getDoc:function(){return this.doc},addKeyMap:function(a,c){this.state.keyMaps[c?"push":"unshift"](ys(a))},removeKeyMap:function(a){for(var c=this.state.keyMaps,h=0;h<c.length;++h)if(c[h]==a||c[h].name==a)return c.splice(h,1),!0},addOverlay:At(function(a,c){var h=a.token?a:t.getMode(this.options,a);if(h.startState)throw new Error("Overlays may not be stateful.");mt(this.state.overlays,{mode:h,modeSpec:a,opaque:c&&c.opaque,priority:c&&c.priority||0},function(f){return f.priority}),this.state.modeGen++,Rt(this)}),removeOverlay:At(function(a){for(var c=this.state.overlays,h=0;h<c.length;++h){var f=c[h].modeSpec;if(f==a||typeof a=="string"&&f.name==a){c.splice(h,1),this.state.modeGen++,Rt(this);return}}}),indentLine:At(function(a,c,h){typeof c!="string"&&typeof c!="number"&&(c==null?c=this.options.smartIndent?"smart":"prev":c=c?"add":"subtract"),Wn(this.doc,a)&&ia(this,a,c,h)}),indentSelection:At(function(a){for(var c=this.doc.sel.ranges,h=-1,f=0;f<c.length;f++){var p=c[f];if(p.empty())p.head.line>h&&(ia(this,p.head.line,a,!0),h=p.head.line,f==this.doc.sel.primIndex&&Di(this));else{var g=p.from(),b=p.to(),w=Math.max(h,g.line);h=Math.min(this.lastLine(),b.line-(b.ch?0:1))+1;for(var L=w;L<h;++L)ia(this,L,a);var I=this.doc.sel.ranges;g.ch==0&&c.length==I.length&&I[f].from().ch>0&&$1(this.doc,f,new Fe(g,I[f].to()),Pe)}}}),getTokenAt:function(a,c){return R0(this,a,c)},getLineTokens:function(a,c){return R0(this,U(a),c,!0)},getTokenTypeAt:function(a){a=oe(this.doc,a);var c=D0(this,he(this.doc,a.line)),h=0,f=(c.length-1)/2,p=a.ch,g;if(p==0)g=c[2];else for(;;){var b=h+f>>1;if((b?c[b*2-1]:0)>=p)f=b;else if(c[b*2+1]<p)h=b+1;else{g=c[b*2+2];break}}var w=g?g.indexOf("overlay "):-1;return w<0?g:w==0?null:g.slice(0,w-1)},getModeAt:function(a){var c=this.doc.mode;return c.innerMode?t.innerMode(c,this.getTokenAt(a).state).mode:c},getHelper:function(a,c){return this.getHelpers(a,c)[0]},getHelpers:function(a,c){var h=[];if(!s.hasOwnProperty(c))return h;var f=s[c],p=this.getModeAt(a);if(typeof p[c]=="string")f[p[c]]&&h.push(f[p[c]]);else if(p[c])for(var g=0;g<p[c].length;g++){var b=f[p[c][g]];b&&h.push(b)}else p.helperType&&f[p.helperType]?h.push(f[p.helperType]):f[p.name]&&h.push(f[p.name]);for(var w=0;w<f._global.length;w++){var L=f._global[w];L.pred(p,this)&&fe(h,L.val)==-1&&h.push(L.val)}return h},getStateAfter:function(a,c){var h=this.doc;return a=Ae(h,a==null?h.first+h.size-1:a),_o(this,a+1,c).state},cursorCoords:function(a,c){var h,f=this.doc.sel.primary();return a==null?h=f.head:typeof a=="object"?h=oe(this.doc,a):h=a?f.from():f.to(),Cr(this,h,c||"page")},charCoords:function(a,c){return is(this,oe(this.doc,a),c||"page")},coordsChar:function(a,c){return a=pu(this,a,c||"page"),c1(this,a.left,a.top)},lineAtHeight:function(a,c){return a=pu(this,{top:a,left:0},c||"page").top,Hr(this.doc,a+this.display.viewOffset)},heightAtLine:function(a,c,h){var f=!1,p;if(typeof a=="number"){var g=this.doc.first+this.doc.size-1;a<this.doc.first?a=this.doc.first:a>g&&(a=g,f=!0),p=he(this.doc,a)}else p=a;return ns(this,p,{top:0,left:0},c||"page",h||f).top+(f?this.doc.height-en(p):0)},defaultTextHeight:function(){return Ii(this.display)},defaultCharWidth:function(){return Ai(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(a,c,h,f,p){var g=this.display;a=Cr(this,oe(this.doc,a));var b=a.bottom,w=a.left;if(c.style.position="absolute",c.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(c),g.sizer.appendChild(c),f=="over")b=a.top;else if(f=="above"||f=="near"){var L=Math.max(g.wrapper.clientHeight,this.doc.height),I=Math.max(g.sizer.clientWidth,g.lineSpace.clientWidth);(f=="above"||a.bottom+c.offsetHeight>L)&&a.top>c.offsetHeight?b=a.top-c.offsetHeight:a.bottom+c.offsetHeight<=L&&(b=a.bottom),w+c.offsetWidth>I&&(w=I-c.offsetWidth)}c.style.top=b+"px",c.style.left=c.style.right="",p=="right"?(w=g.sizer.clientWidth-c.offsetWidth,c.style.right="0px"):(p=="left"?w=0:p=="middle"&&(w=(g.sizer.clientWidth-c.offsetWidth)/2),c.style.left=w+"px"),h&&H4(this,{left:w,top:b,right:w+c.offsetWidth,bottom:b+c.offsetHeight})},triggerOnKeyDown:At(md),triggerOnKeyPress:At(Cd),triggerOnKeyUp:yd,triggerOnMouseDown:At(wd),execCommand:function(a){if(ea.hasOwnProperty(a))return ea[a].call(null,this)},triggerElectric:At(function(a){kd(this,a)}),findPosH:function(a,c,h,f){var p=1;c<0&&(p=-1,c=-c);for(var g=oe(this.doc,a),b=0;b<c&&(g=H1(this.doc,g,p,h,f),!g.hitSide);++b);return g},moveH:At(function(a,c){var h=this;this.extendSelectionsBy(function(f){return h.display.shift||h.doc.extend||f.empty()?H1(h.doc,f.head,a,c,h.options.rtlMoveVisually):a<0?f.from():f.to()},Se)}),deleteH:At(function(a,c){var h=this.doc.sel,f=this.doc;h.somethingSelected()?f.replaceSelection("",null,"+delete"):Wi(this,function(p){var g=H1(f,p.head,a,c,!1);return a<0?{from:g,to:p.head}:{from:p.head,to:g}})}),findPosV:function(a,c,h,f){var p=1,g=f;c<0&&(p=-1,c=-c);for(var b=oe(this.doc,a),w=0;w<c;++w){var L=Cr(this,b,"div");if(g==null?g=L.left:L.left=g,b=_d(this,L,p,h),b.hitSide)break}return b},moveV:At(function(a,c){var h=this,f=this.doc,p=[],g=!this.display.shift&&!f.extend&&f.sel.somethingSelected();if(f.extendSelectionsBy(function(w){if(g)return a<0?w.from():w.to();var L=Cr(h,w.head,"div");w.goalColumn!=null&&(L.left=w.goalColumn),p.push(L.left);var I=_d(h,L,a,c);return c=="page"&&w==f.sel.primary()&&m1(h,is(h,I,"div").top-L.top),I},Se),p.length)for(var b=0;b<f.sel.ranges.length;b++)f.sel.ranges[b].goalColumn=p[b]}),findWordAt:function(a){var c=this.doc,h=he(c,a.line).text,f=a.ch,p=a.ch;if(h){var g=this.getHelper(a,"wordChars");(a.sticky=="before"||p==h.length)&&f?--f:++p;for(var b=h.charAt(f),w=A(b,g)?function(L){return A(L,g)}:/\s/.test(b)?function(L){return/\s/.test(L)}:function(L){return!/\s/.test(L)&&!A(L)};f>0&&w(h.charAt(f-1));)--f;for(;p<h.length&&w(h.charAt(p));)++p}return new Fe(U(a.line,f),U(a.line,p))},toggleOverwrite:function(a){a!=null&&a==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?Me(this.display.cursorDiv,"CodeMirror-overwrite"):ie(this.display.cursorDiv,"CodeMirror-overwrite"),ze(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==be()},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:At(function(a,c){Ro(this,a,c)}),getScrollInfo:function(){var a=this.display.scroller;return{left:a.scrollLeft,top:a.scrollTop,height:a.scrollHeight-Br(this)-this.display.barHeight,width:a.scrollWidth-Br(this)-this.display.barWidth,clientHeight:o1(this),clientWidth:Un(this)}},scrollIntoView:At(function(a,c){a==null?(a={from:this.doc.sel.primary().head,to:null},c==null&&(c=this.options.cursorScrollMargin)):typeof a=="number"?a={from:U(a,0),to:null}:a.from==null&&(a={from:a,to:null}),a.to||(a.to=a.from),a.margin=c||0,a.from.line!=null?R4(this,a):Lu(this,a.from,a.to,a.margin)}),setSize:At(function(a,c){var h=this,f=function(g){return typeof g=="number"||/^\d+$/.test(String(g))?g+"px":g};a!=null&&(this.display.wrapper.style.width=f(a)),c!=null&&(this.display.wrapper.style.height=f(c)),this.options.lineWrapping&&du(this);var p=this.display.viewFrom;this.doc.iter(p,this.display.viewTo,function(g){if(g.widgets){for(var b=0;b<g.widgets.length;b++)if(g.widgets[b].noHScroll){wn(h,p,"widget");break}}++p}),this.curOp.forceUpdate=!0,ze(this,"refresh",this)}),operation:function(a){return qt(this,a)},startOperation:function(){return Xn(this)},endOperation:function(){return Jn(this)},refresh:At(function(){var a=this.display.cachedTextHeight;Rt(this),this.curOp.forceUpdate=!0,No(this),Ro(this,this.doc.scrollLeft,this.doc.scrollTop),w1(this.display),(a==null||Math.abs(a-Ii(this.display))>.5||this.options.lineWrapping)&&f1(this),ze(this,"refresh",this)}),swapDoc:At(function(a){var c=this.doc;return c.cm=null,this.state.selectingText&&this.state.selectingText(),Hu(this,a),No(this),this.display.input.reset(),Ro(this,a.scrollLeft,a.scrollTop),this.curOp.forceScroll=!0,yt(this,"swapDoc",this,c),c}),phrase:function(a){var c=this.options.phrases;return c&&Object.prototype.hasOwnProperty.call(c,a)?c[a]:a},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},Pr(t),t.registerHelper=function(a,c,h){s.hasOwnProperty(a)||(s[a]=t[a]={_global:[]}),s[a][c]=h},t.registerGlobalHelper=function(a,c,h,f){t.registerHelper(a,c,f),s[a]._global.push({pred:h,val:f})}}function H1(t,r,s,a,c){var h=r,f=s,p=he(t,r.line),g=c&&t.direction=="rtl"?-s:s;function b(){var ae=r.line+g;return ae<t.first||ae>=t.first+t.size?!1:(r=new U(ae,r.ch,r.sticky),p=he(t,ae))}function w(ae){var Q;if(a=="codepoint"){var ce=p.text.charCodeAt(r.ch+(s>0?0:-1));if(isNaN(ce))Q=null;else{var ye=s>0?ce>=55296&&ce<56320:ce>=56320&&ce<57343;Q=new U(r.line,Math.max(0,Math.min(p.text.length,r.ch+s*(ye?2:1))),-s)}}else c?Q=x3(t.cm,p,r,s):Q=E1(p,r,s);if(Q==null)if(!ae&&b())r=_1(c,t.cm,p,r.line,g);else return!1;else r=Q;return!0}if(a=="char"||a=="codepoint")w();else if(a=="column")w(!0);else if(a=="word"||a=="group")for(var L=null,I=a=="group",_=t.cm&&t.cm.getHelper(r,"wordChars"),H=!0;!(s<0&&!w(!H));H=!1){var W=p.text.charAt(r.ch)||`
2989
2989
  `,K=A(W,_)?"w":I&&W==`
2990
- `?"n":!I||/\s/.test(W)?null:"p";if(I&&!H&&!K&&(K="s"),L&&L!=K){s<0&&(s=1,w(),r.sticky="after");break}if(K&&(L=K),s>0&&!w(!H))break}var J=vs(t,r,h,f,!0);return M(h,J)&&(J.hitSide=!0),J}function Ed(t,r,s,a){var c=t.doc,h=r.left,f;if(a=="page"){var p=Math.min(t.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),g=Math.max(p-.5*Ii(t.display),3);f=(s>0?r.bottom:r.top)+s*g}else a=="line"&&(f=s>0?r.bottom+3:r.top-3);for(var b;b=c1(t,h,f),!!b.outside;){if(s<0?f<=0:f>=c.height){b.hitSide=!0;break}f+=s*5}return b}var je=function(t){this.cm=t,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new Ue,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};je.prototype.init=function(t){var r=this,s=this,a=s.cm,c=s.div=t.lineDiv;c.contentEditable=!0,$d(c,a.options.spellcheck,a.options.autocorrect,a.options.autocapitalize);function h(p){for(var g=p.target;g;g=g.parentNode){if(g==c)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(g.className))break}return!1}Ce(c,"paste",function(p){!h(p)||ct(a,p)||Md(p,a)||y<=11&&setTimeout(Ct(a,function(){return r.updateFromDOM()}),20)}),Ce(c,"compositionstart",function(p){r.composing={data:p.data,done:!1}}),Ce(c,"compositionupdate",function(p){r.composing||(r.composing={data:p.data,done:!1})}),Ce(c,"compositionend",function(p){r.composing&&(p.data!=r.composing.data&&r.readFromDOMSoon(),r.composing.done=!0)}),Ce(c,"touchstart",function(){return s.forceCompositionEnd()}),Ce(c,"input",function(){r.composing||r.readFromDOMSoon()});function f(p){if(!(!h(p)||ct(a,p))){if(a.somethingSelected())xs({lineWise:!1,text:a.getSelections()}),p.type=="cut"&&a.replaceSelection("",null,"cut");else if(a.options.lineWiseCopyCut){var g=kd(a);xs({lineWise:!0,text:g.text}),p.type=="cut"&&a.operation(function(){a.setSelections(g.ranges,0,Pe),a.replaceSelection("",null,"cut")})}else return;if(p.clipboardData){p.clipboardData.clearData();var b=xr.text.join(`
2991
- `);if(p.clipboardData.setData("Text",b),p.clipboardData.getData("Text")==b){p.preventDefault();return}}var w=Od(),L=w.firstChild;a.display.lineSpace.insertBefore(w,a.display.lineSpace.firstChild),L.value=xr.text.join(`
2992
- `);var I=be();lt(L),setTimeout(function(){a.display.lineSpace.removeChild(w),I.focus(),I==c&&s.showPrimarySelection()},50)}}Ce(c,"copy",f),Ce(c,"cut",f)},je.prototype.screenReaderLabelChanged=function(t){t?this.div.setAttribute("aria-label",t):this.div.removeAttribute("aria-label")},je.prototype.prepareSelection=function(){var t=yu(this.cm,!1);return t.focus=be()==this.div,t},je.prototype.showSelection=function(t,r){!t||!this.cm.display.view.length||((t.focus||r)&&this.showPrimarySelection(),this.showMultipleSelections(t))},je.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},je.prototype.showPrimarySelection=function(){var t=this.getSelection(),r=this.cm,s=r.doc.sel.primary(),a=s.from(),c=s.to();if(r.display.viewTo==r.display.viewFrom||a.line>=r.display.viewTo||c.line<r.display.viewFrom){t.removeAllRanges();return}var h=zs(r,t.anchorNode,t.anchorOffset),f=zs(r,t.focusNode,t.focusOffset);if(!(h&&!h.bad&&f&&!f.bad&&C(Le(h,f),a)==0&&C(q(h,f),c)==0)){var p=r.display.view,g=a.line>=r.display.viewFrom&&_d(r,a)||{node:p[0].measure.map[2],offset:0},b=c.line<r.display.viewTo&&_d(r,c);if(!b){var w=p[p.length-1].measure,L=w.maps?w.maps[w.maps.length-1]:w.map;b={node:L[L.length-1],offset:L[L.length-2]-L[L.length-3]}}if(!g||!b){t.removeAllRanges();return}var I=t.rangeCount&&t.getRangeAt(0),_;try{_=B(g.node,g.offset,b.offset,b.node)}catch{}_&&(!l&&r.state.focused?(t.collapse(g.node,g.offset),_.collapsed||(t.removeAllRanges(),t.addRange(_))):(t.removeAllRanges(),t.addRange(_)),I&&t.anchorNode==null?t.addRange(I):l&&this.startGracePeriod()),this.rememberSelection()}},je.prototype.startGracePeriod=function(){var t=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){t.gracePeriod=!1,t.selectionChanged()&&t.cm.operation(function(){return t.cm.curOp.selectionChanged=!0})},20)},je.prototype.showMultipleSelections=function(t){k(this.cm.display.cursorDiv,t.cursors),k(this.cm.display.selectionDiv,t.selection)},je.prototype.rememberSelection=function(){var t=this.getSelection();this.lastAnchorNode=t.anchorNode,this.lastAnchorOffset=t.anchorOffset,this.lastFocusNode=t.focusNode,this.lastFocusOffset=t.focusOffset},je.prototype.selectionInEditor=function(){var t=this.getSelection();if(!t.rangeCount)return!1;var r=t.getRangeAt(0).commonAncestorContainer;return X(this.div,r)},je.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||be()!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},je.prototype.blur=function(){this.div.blur()},je.prototype.getField=function(){return this.div},je.prototype.supportsTouch=function(){return!0},je.prototype.receivedFocus=function(){var t=this;this.selectionInEditor()?this.pollSelection():qt(this.cm,function(){return t.cm.curOp.selectionChanged=!0});function r(){t.cm.state.focused&&(t.pollSelection(),t.polling.set(t.cm.options.pollInterval,r))}this.polling.set(this.cm.options.pollInterval,r)},je.prototype.selectionChanged=function(){var t=this.getSelection();return t.anchorNode!=this.lastAnchorNode||t.anchorOffset!=this.lastAnchorOffset||t.focusNode!=this.lastFocusNode||t.focusOffset!=this.lastFocusOffset},je.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var t=this.getSelection(),r=this.cm;if(se&&$&&this.cm.display.gutterSpecs.length&&H3(t.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var s=zs(r,t.anchorNode,t.anchorOffset),a=zs(r,t.focusNode,t.focusOffset);s&&a&&qt(r,function(){Et(r.doc,zn(s,a),Pe),(s.bad||a.bad)&&(r.curOp.selectionChanged=!0)})}}},je.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var t=this.cm,r=t.display,s=t.doc.sel.primary(),a=s.from(),c=s.to();if(a.ch==0&&a.line>t.firstLine()&&(a=U(a.line-1,he(t.doc,a.line-1).length)),c.ch==he(t.doc,c.line).text.length&&c.line<t.lastLine()&&(c=U(c.line+1,0)),a.line<r.viewFrom||c.line>r.viewTo-1)return!1;var h,f,p;a.line==r.viewFrom||(h=qn(t,a.line))==0?(f=Re(r.view[0].line),p=r.view[0].node):(f=Re(r.view[h].line),p=r.view[h-1].node.nextSibling);var g=qn(t,c.line),b,w;if(g==r.view.length-1?(b=r.viewTo-1,w=r.lineDiv.lastChild):(b=Re(r.view[g+1].line)-1,w=r.view[g+1].node.previousSibling),!p)return!1;for(var L=t.doc.splitLines(R3(t,p,w,f,b)),I=Nr(t.doc,U(f,0),U(b,he(t.doc,b).text.length));L.length>1&&I.length>1;)if(Oe(L)==Oe(I))L.pop(),I.pop(),b--;else if(L[0]==I[0])L.shift(),I.shift(),f++;else break;for(var _=0,H=0,W=L[0],K=I[0],J=Math.min(W.length,K.length);_<J&&W.charCodeAt(_)==K.charCodeAt(_);)++_;for(var ae=Oe(L),Q=Oe(I),ce=Math.min(ae.length-(L.length==1?_:0),Q.length-(I.length==1?_:0));H<ce&&ae.charCodeAt(ae.length-H-1)==Q.charCodeAt(Q.length-H-1);)++H;if(L.length==1&&I.length==1&&f==a.line)for(;_&&_>a.ch&&ae.charCodeAt(ae.length-H-1)==Q.charCodeAt(Q.length-H-1);)_--,H++;L[L.length-1]=ae.slice(0,ae.length-H).replace(/^\u200b+/,""),L[0]=L[0].slice(_).replace(/\u200b+$/,"");var ye=U(f,_),ve=U(b,I.length?Oe(I).length-H:0);if(L.length>1||L[0]||C(ye,ve))return Bi(t.doc,L,ye,ve,"+input"),!0},je.prototype.ensurePolled=function(){this.forceCompositionEnd()},je.prototype.reset=function(){this.forceCompositionEnd()},je.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},je.prototype.readFromDOMSoon=function(){var t=this;this.readDOMTimeout==null&&(this.readDOMTimeout=setTimeout(function(){if(t.readDOMTimeout=null,t.composing)if(t.composing.done)t.composing=null;else return;t.updateFromDOM()},80))},je.prototype.updateFromDOM=function(){var t=this;(this.cm.isReadOnly()||!this.pollContent())&&qt(this.cm,function(){return Rt(t.cm)})},je.prototype.setUneditable=function(t){t.contentEditable="false"},je.prototype.onKeyPress=function(t){t.charCode==0||this.composing||(t.preventDefault(),this.cm.isReadOnly()||Ct(this.cm,N1)(this.cm,String.fromCharCode(t.charCode==null?t.keyCode:t.charCode),0))},je.prototype.readOnlyChanged=function(t){this.div.contentEditable=String(t!="nocursor")},je.prototype.onContextMenu=function(){},je.prototype.resetPosition=function(){},je.prototype.needsContentAttribute=!0;function _d(t,r){var s=a1(t,r.line);if(!s||s.hidden)return null;var a=he(t.doc,r.line),c=ou(s,a,r.line),h=jt(a,t.doc.direction),f="left";if(h){var p=nt(h,r.ch);f=p%2?"right":"left"}var g=lu(c.map,r.ch,f);return g.offset=g.collapse=="right"?g.end:g.start,g}function H3(t){for(var r=t;r;r=r.parentNode)if(/CodeMirror-gutter-wrapper/.test(r.className))return!0;return!1}function ji(t,r){return r&&(t.bad=!0),t}function R3(t,r,s,a,c){var h="",f=!1,p=t.doc.lineSeparator(),g=!1;function b(_){return function(H){return H.id==_}}function w(){f&&(h+=p,g&&(h+=p),f=g=!1)}function L(_){_&&(w(),h+=_)}function I(_){if(_.nodeType==1){var H=_.getAttribute("cm-text");if(H){L(H);return}var W=_.getAttribute("cm-marker"),K;if(W){var J=t.findMarks(U(a,0),U(c+1,0),b(+W));J.length&&(K=J[0].find(0))&&L(Nr(t.doc,K.from,K.to).join(p));return}if(_.getAttribute("contenteditable")=="false")return;var ae=/^(pre|div|p|li|table|br)$/i.test(_.nodeName);if(!/^br$/i.test(_.nodeName)&&_.textContent.length==0)return;ae&&w();for(var Q=0;Q<_.childNodes.length;Q++)I(_.childNodes[Q]);/^(pre|p)$/i.test(_.nodeName)&&(g=!0),ae&&(f=!0)}else _.nodeType==3&&L(_.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;I(r),r!=s;)r=r.nextSibling,g=!1;return h}function zs(t,r,s){var a;if(r==t.display.lineDiv){if(a=t.display.lineDiv.childNodes[s],!a)return ji(t.clipPos(U(t.display.viewTo-1)),!0);r=null,s=0}else for(a=r;;a=a.parentNode){if(!a||a==t.display.lineDiv)return null;if(a.parentNode&&a.parentNode==t.display.lineDiv)break}for(var c=0;c<t.display.view.length;c++){var h=t.display.view[c];if(h.node==a)return F3(h,r,s)}}function F3(t,r,s){var a=t.text.firstChild,c=!1;if(!r||!X(a,r))return ji(U(Re(t.line),0),!0);if(r==a&&(c=!0,r=a.childNodes[s],s=0,!r)){var h=t.rest?Oe(t.rest):t.line;return ji(U(Re(h),h.text.length),c)}var f=r.nodeType==3?r:null,p=r;for(!f&&r.childNodes.length==1&&r.firstChild.nodeType==3&&(f=r.firstChild,s&&(s=f.nodeValue.length));p.parentNode!=a;)p=p.parentNode;var g=t.measure,b=g.maps;function w(K,J,ae){for(var Q=-1;Q<(b?b.length:0);Q++)for(var ce=Q<0?g.map:b[Q],ye=0;ye<ce.length;ye+=3){var ve=ce[ye+2];if(ve==K||ve==J){var ke=Re(Q<0?t.line:t.rest[Q]),Ye=ce[ye]+ae;return(ae<0||ve!=K)&&(Ye=ce[ye+(ae?1:0)]),U(ke,Ye)}}}var L=w(f,p,s);if(L)return ji(L,c);for(var I=p.nextSibling,_=f?f.nodeValue.length-s:0;I;I=I.nextSibling){if(L=w(I,I.firstChild,0),L)return ji(U(L.line,L.ch-_),c);_+=I.textContent.length}for(var H=p.previousSibling,W=s;H;H=H.previousSibling){if(L=w(H,H.firstChild,-1),L)return ji(U(L.line,L.ch+W),c);W+=H.textContent.length}}var at=function(t){this.cm=t,this.prevInput="",this.pollingFast=!1,this.polling=new Ue,this.hasSelection=!1,this.composing=null};at.prototype.init=function(t){var r=this,s=this,a=this.cm;this.createField(t);var c=this.textarea;t.wrapper.insertBefore(this.wrapper,t.wrapper.firstChild),te&&(c.style.width="0px"),Ce(c,"input",function(){m&&y>=9&&r.hasSelection&&(r.hasSelection=null),s.poll()}),Ce(c,"paste",function(f){ct(a,f)||Md(f,a)||(a.state.pasteIncoming=+new Date,s.fastPoll())});function h(f){if(!ct(a,f)){if(a.somethingSelected())xs({lineWise:!1,text:a.getSelections()});else if(a.options.lineWiseCopyCut){var p=kd(a);xs({lineWise:!0,text:p.text}),f.type=="cut"?a.setSelections(p.ranges,null,Pe):(s.prevInput="",c.value=p.text.join(`
2993
- `),lt(c))}else return;f.type=="cut"&&(a.state.cutIncoming=+new Date)}}Ce(c,"cut",h),Ce(c,"copy",h),Ce(t.scroller,"paste",function(f){if(!(tn(t,f)||ct(a,f))){if(!c.dispatchEvent){a.state.pasteIncoming=+new Date,s.focus();return}var p=new Event("paste");p.clipboardData=f.clipboardData,c.dispatchEvent(p)}}),Ce(t.lineSpace,"selectstart",function(f){tn(t,f)||$t(f)}),Ce(c,"compositionstart",function(){var f=a.getCursor("from");s.composing&&s.composing.range.clear(),s.composing={start:f,range:a.markText(f,a.getCursor("to"),{className:"CodeMirror-composing"})}}),Ce(c,"compositionend",function(){s.composing&&(s.poll(),s.composing.range.clear(),s.composing=null)})},at.prototype.createField=function(t){this.wrapper=Od(),this.textarea=this.wrapper.firstChild},at.prototype.screenReaderLabelChanged=function(t){t?this.textarea.setAttribute("aria-label",t):this.textarea.removeAttribute("aria-label")},at.prototype.prepareSelection=function(){var t=this.cm,r=t.display,s=t.doc,a=yu(t);if(t.options.moveInputWithCursor){var c=Cr(t,s.sel.primary().head,"div"),h=r.wrapper.getBoundingClientRect(),f=r.lineDiv.getBoundingClientRect();a.teTop=Math.max(0,Math.min(r.wrapper.clientHeight-10,c.top+f.top-h.top)),a.teLeft=Math.max(0,Math.min(r.wrapper.clientWidth-10,c.left+f.left-h.left))}return a},at.prototype.showSelection=function(t){var r=this.cm,s=r.display;k(s.cursorDiv,t.cursors),k(s.selectionDiv,t.selection),t.teTop!=null&&(this.wrapper.style.top=t.teTop+"px",this.wrapper.style.left=t.teLeft+"px")},at.prototype.reset=function(t){if(!(this.contextMenuPending||this.composing)){var r=this.cm;if(r.somethingSelected()){this.prevInput="";var s=r.getSelection();this.textarea.value=s,r.state.focused&&lt(this.textarea),m&&y>=9&&(this.hasSelection=s)}else t||(this.prevInput=this.textarea.value="",m&&y>=9&&(this.hasSelection=null))}},at.prototype.getField=function(){return this.textarea},at.prototype.supportsTouch=function(){return!1},at.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!re||be()!=this.textarea))try{this.textarea.focus()}catch{}},at.prototype.blur=function(){this.textarea.blur()},at.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},at.prototype.receivedFocus=function(){this.slowPoll()},at.prototype.slowPoll=function(){var t=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){t.poll(),t.cm.state.focused&&t.slowPoll()})},at.prototype.fastPoll=function(){var t=!1,r=this;r.pollingFast=!0;function s(){var a=r.poll();!a&&!t?(t=!0,r.polling.set(60,s)):(r.pollingFast=!1,r.slowPoll())}r.polling.set(20,s)},at.prototype.poll=function(){var t=this,r=this.cm,s=this.textarea,a=this.prevInput;if(this.contextMenuPending||!r.state.focused||Ga(s)&&!a&&!this.composing||r.isReadOnly()||r.options.disableInput||r.state.keySeq)return!1;var c=s.value;if(c==a&&!r.somethingSelected())return!1;if(m&&y>=9&&this.hasSelection===c||ue&&/[\uf700-\uf7ff]/.test(c))return r.display.input.reset(),!1;if(r.doc.sel==r.display.selForContextMenu){var h=c.charCodeAt(0);if(h==8203&&!a&&(a="​"),h==8666)return this.reset(),this.cm.execCommand("undo")}for(var f=0,p=Math.min(a.length,c.length);f<p&&a.charCodeAt(f)==c.charCodeAt(f);)++f;return qt(r,function(){N1(r,c.slice(f),a.length-f,null,t.composing?"*compose":null),c.length>1e3||c.indexOf(`
2990
+ `?"n":!I||/\s/.test(W)?null:"p";if(I&&!H&&!K&&(K="s"),L&&L!=K){s<0&&(s=1,w(),r.sticky="after");break}if(K&&(L=K),s>0&&!w(!H))break}var J=vs(t,r,h,f,!0);return M(h,J)&&(J.hitSide=!0),J}function _d(t,r,s,a){var c=t.doc,h=r.left,f;if(a=="page"){var p=Math.min(t.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),g=Math.max(p-.5*Ii(t.display),3);f=(s>0?r.bottom:r.top)+s*g}else a=="line"&&(f=s>0?r.bottom+3:r.top-3);for(var b;b=c1(t,h,f),!!b.outside;){if(s<0?f<=0:f>=c.height){b.hitSide=!0;break}f+=s*5}return b}var je=function(t){this.cm=t,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new Ue,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};je.prototype.init=function(t){var r=this,s=this,a=s.cm,c=s.div=t.lineDiv;c.contentEditable=!0,Od(c,a.options.spellcheck,a.options.autocorrect,a.options.autocapitalize);function h(p){for(var g=p.target;g;g=g.parentNode){if(g==c)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(g.className))break}return!1}Ce(c,"paste",function(p){!h(p)||ct(a,p)||Td(p,a)||y<=11&&setTimeout(Ct(a,function(){return r.updateFromDOM()}),20)}),Ce(c,"compositionstart",function(p){r.composing={data:p.data,done:!1}}),Ce(c,"compositionupdate",function(p){r.composing||(r.composing={data:p.data,done:!1})}),Ce(c,"compositionend",function(p){r.composing&&(p.data!=r.composing.data&&r.readFromDOMSoon(),r.composing.done=!0)}),Ce(c,"touchstart",function(){return s.forceCompositionEnd()}),Ce(c,"input",function(){r.composing||r.readFromDOMSoon()});function f(p){if(!(!h(p)||ct(a,p))){if(a.somethingSelected())xs({lineWise:!1,text:a.getSelections()}),p.type=="cut"&&a.replaceSelection("",null,"cut");else if(a.options.lineWiseCopyCut){var g=$d(a);xs({lineWise:!0,text:g.text}),p.type=="cut"&&a.operation(function(){a.setSelections(g.ranges,0,Pe),a.replaceSelection("",null,"cut")})}else return;if(p.clipboardData){p.clipboardData.clearData();var b=xr.text.join(`
2991
+ `);if(p.clipboardData.setData("Text",b),p.clipboardData.getData("Text")==b){p.preventDefault();return}}var w=Ed(),L=w.firstChild;a.display.lineSpace.insertBefore(w,a.display.lineSpace.firstChild),L.value=xr.text.join(`
2992
+ `);var I=be();lt(L),setTimeout(function(){a.display.lineSpace.removeChild(w),I.focus(),I==c&&s.showPrimarySelection()},50)}}Ce(c,"copy",f),Ce(c,"cut",f)},je.prototype.screenReaderLabelChanged=function(t){t?this.div.setAttribute("aria-label",t):this.div.removeAttribute("aria-label")},je.prototype.prepareSelection=function(){var t=Cu(this.cm,!1);return t.focus=be()==this.div,t},je.prototype.showSelection=function(t,r){!t||!this.cm.display.view.length||((t.focus||r)&&this.showPrimarySelection(),this.showMultipleSelections(t))},je.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},je.prototype.showPrimarySelection=function(){var t=this.getSelection(),r=this.cm,s=r.doc.sel.primary(),a=s.from(),c=s.to();if(r.display.viewTo==r.display.viewFrom||a.line>=r.display.viewTo||c.line<r.display.viewFrom){t.removeAllRanges();return}var h=zs(r,t.anchorNode,t.anchorOffset),f=zs(r,t.focusNode,t.focusOffset);if(!(h&&!h.bad&&f&&!f.bad&&C(Le(h,f),a)==0&&C(q(h,f),c)==0)){var p=r.display.view,g=a.line>=r.display.viewFrom&&Id(r,a)||{node:p[0].measure.map[2],offset:0},b=c.line<r.display.viewTo&&Id(r,c);if(!b){var w=p[p.length-1].measure,L=w.maps?w.maps[w.maps.length-1]:w.map;b={node:L[L.length-1],offset:L[L.length-2]-L[L.length-3]}}if(!g||!b){t.removeAllRanges();return}var I=t.rangeCount&&t.getRangeAt(0),_;try{_=B(g.node,g.offset,b.offset,b.node)}catch{}_&&(!l&&r.state.focused?(t.collapse(g.node,g.offset),_.collapsed||(t.removeAllRanges(),t.addRange(_))):(t.removeAllRanges(),t.addRange(_)),I&&t.anchorNode==null?t.addRange(I):l&&this.startGracePeriod()),this.rememberSelection()}},je.prototype.startGracePeriod=function(){var t=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){t.gracePeriod=!1,t.selectionChanged()&&t.cm.operation(function(){return t.cm.curOp.selectionChanged=!0})},20)},je.prototype.showMultipleSelections=function(t){k(this.cm.display.cursorDiv,t.cursors),k(this.cm.display.selectionDiv,t.selection)},je.prototype.rememberSelection=function(){var t=this.getSelection();this.lastAnchorNode=t.anchorNode,this.lastAnchorOffset=t.anchorOffset,this.lastFocusNode=t.focusNode,this.lastFocusOffset=t.focusOffset},je.prototype.selectionInEditor=function(){var t=this.getSelection();if(!t.rangeCount)return!1;var r=t.getRangeAt(0).commonAncestorContainer;return X(this.div,r)},je.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||be()!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},je.prototype.blur=function(){this.div.blur()},je.prototype.getField=function(){return this.div},je.prototype.supportsTouch=function(){return!0},je.prototype.receivedFocus=function(){var t=this;this.selectionInEditor()?this.pollSelection():qt(this.cm,function(){return t.cm.curOp.selectionChanged=!0});function r(){t.cm.state.focused&&(t.pollSelection(),t.polling.set(t.cm.options.pollInterval,r))}this.polling.set(this.cm.options.pollInterval,r)},je.prototype.selectionChanged=function(){var t=this.getSelection();return t.anchorNode!=this.lastAnchorNode||t.anchorOffset!=this.lastAnchorOffset||t.focusNode!=this.lastFocusNode||t.focusOffset!=this.lastFocusOffset},je.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var t=this.getSelection(),r=this.cm;if(se&&$&&this.cm.display.gutterSpecs.length&&V3(t.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var s=zs(r,t.anchorNode,t.anchorOffset),a=zs(r,t.focusNode,t.focusOffset);s&&a&&qt(r,function(){Et(r.doc,zn(s,a),Pe),(s.bad||a.bad)&&(r.curOp.selectionChanged=!0)})}}},je.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var t=this.cm,r=t.display,s=t.doc.sel.primary(),a=s.from(),c=s.to();if(a.ch==0&&a.line>t.firstLine()&&(a=U(a.line-1,he(t.doc,a.line-1).length)),c.ch==he(t.doc,c.line).text.length&&c.line<t.lastLine()&&(c=U(c.line+1,0)),a.line<r.viewFrom||c.line>r.viewTo-1)return!1;var h,f,p;a.line==r.viewFrom||(h=qn(t,a.line))==0?(f=Re(r.view[0].line),p=r.view[0].node):(f=Re(r.view[h].line),p=r.view[h-1].node.nextSibling);var g=qn(t,c.line),b,w;if(g==r.view.length-1?(b=r.viewTo-1,w=r.lineDiv.lastChild):(b=Re(r.view[g+1].line)-1,w=r.view[g+1].node.previousSibling),!p)return!1;for(var L=t.doc.splitLines(Z3(t,p,w,f,b)),I=Nr(t.doc,U(f,0),U(b,he(t.doc,b).text.length));L.length>1&&I.length>1;)if(Oe(L)==Oe(I))L.pop(),I.pop(),b--;else if(L[0]==I[0])L.shift(),I.shift(),f++;else break;for(var _=0,H=0,W=L[0],K=I[0],J=Math.min(W.length,K.length);_<J&&W.charCodeAt(_)==K.charCodeAt(_);)++_;for(var ae=Oe(L),Q=Oe(I),ce=Math.min(ae.length-(L.length==1?_:0),Q.length-(I.length==1?_:0));H<ce&&ae.charCodeAt(ae.length-H-1)==Q.charCodeAt(Q.length-H-1);)++H;if(L.length==1&&I.length==1&&f==a.line)for(;_&&_>a.ch&&ae.charCodeAt(ae.length-H-1)==Q.charCodeAt(Q.length-H-1);)_--,H++;L[L.length-1]=ae.slice(0,ae.length-H).replace(/^\u200b+/,""),L[0]=L[0].slice(_).replace(/\u200b+$/,"");var ye=U(f,_),ve=U(b,I.length?Oe(I).length-H:0);if(L.length>1||L[0]||C(ye,ve))return Bi(t.doc,L,ye,ve,"+input"),!0},je.prototype.ensurePolled=function(){this.forceCompositionEnd()},je.prototype.reset=function(){this.forceCompositionEnd()},je.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},je.prototype.readFromDOMSoon=function(){var t=this;this.readDOMTimeout==null&&(this.readDOMTimeout=setTimeout(function(){if(t.readDOMTimeout=null,t.composing)if(t.composing.done)t.composing=null;else return;t.updateFromDOM()},80))},je.prototype.updateFromDOM=function(){var t=this;(this.cm.isReadOnly()||!this.pollContent())&&qt(this.cm,function(){return Rt(t.cm)})},je.prototype.setUneditable=function(t){t.contentEditable="false"},je.prototype.onKeyPress=function(t){t.charCode==0||this.composing||(t.preventDefault(),this.cm.isReadOnly()||Ct(this.cm,N1)(this.cm,String.fromCharCode(t.charCode==null?t.keyCode:t.charCode),0))},je.prototype.readOnlyChanged=function(t){this.div.contentEditable=String(t!="nocursor")},je.prototype.onContextMenu=function(){},je.prototype.resetPosition=function(){},je.prototype.needsContentAttribute=!0;function Id(t,r){var s=a1(t,r.line);if(!s||s.hidden)return null;var a=he(t.doc,r.line),c=au(s,a,r.line),h=jt(a,t.doc.direction),f="left";if(h){var p=nt(h,r.ch);f=p%2?"right":"left"}var g=cu(c.map,r.ch,f);return g.offset=g.collapse=="right"?g.end:g.start,g}function V3(t){for(var r=t;r;r=r.parentNode)if(/CodeMirror-gutter-wrapper/.test(r.className))return!0;return!1}function ji(t,r){return r&&(t.bad=!0),t}function Z3(t,r,s,a,c){var h="",f=!1,p=t.doc.lineSeparator(),g=!1;function b(_){return function(H){return H.id==_}}function w(){f&&(h+=p,g&&(h+=p),f=g=!1)}function L(_){_&&(w(),h+=_)}function I(_){if(_.nodeType==1){var H=_.getAttribute("cm-text");if(H){L(H);return}var W=_.getAttribute("cm-marker"),K;if(W){var J=t.findMarks(U(a,0),U(c+1,0),b(+W));J.length&&(K=J[0].find(0))&&L(Nr(t.doc,K.from,K.to).join(p));return}if(_.getAttribute("contenteditable")=="false")return;var ae=/^(pre|div|p|li|table|br)$/i.test(_.nodeName);if(!/^br$/i.test(_.nodeName)&&_.textContent.length==0)return;ae&&w();for(var Q=0;Q<_.childNodes.length;Q++)I(_.childNodes[Q]);/^(pre|p)$/i.test(_.nodeName)&&(g=!0),ae&&(f=!0)}else _.nodeType==3&&L(_.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;I(r),r!=s;)r=r.nextSibling,g=!1;return h}function zs(t,r,s){var a;if(r==t.display.lineDiv){if(a=t.display.lineDiv.childNodes[s],!a)return ji(t.clipPos(U(t.display.viewTo-1)),!0);r=null,s=0}else for(a=r;;a=a.parentNode){if(!a||a==t.display.lineDiv)return null;if(a.parentNode&&a.parentNode==t.display.lineDiv)break}for(var c=0;c<t.display.view.length;c++){var h=t.display.view[c];if(h.node==a)return W3(h,r,s)}}function W3(t,r,s){var a=t.text.firstChild,c=!1;if(!r||!X(a,r))return ji(U(Re(t.line),0),!0);if(r==a&&(c=!0,r=a.childNodes[s],s=0,!r)){var h=t.rest?Oe(t.rest):t.line;return ji(U(Re(h),h.text.length),c)}var f=r.nodeType==3?r:null,p=r;for(!f&&r.childNodes.length==1&&r.firstChild.nodeType==3&&(f=r.firstChild,s&&(s=f.nodeValue.length));p.parentNode!=a;)p=p.parentNode;var g=t.measure,b=g.maps;function w(K,J,ae){for(var Q=-1;Q<(b?b.length:0);Q++)for(var ce=Q<0?g.map:b[Q],ye=0;ye<ce.length;ye+=3){var ve=ce[ye+2];if(ve==K||ve==J){var ke=Re(Q<0?t.line:t.rest[Q]),Ye=ce[ye]+ae;return(ae<0||ve!=K)&&(Ye=ce[ye+(ae?1:0)]),U(ke,Ye)}}}var L=w(f,p,s);if(L)return ji(L,c);for(var I=p.nextSibling,_=f?f.nodeValue.length-s:0;I;I=I.nextSibling){if(L=w(I,I.firstChild,0),L)return ji(U(L.line,L.ch-_),c);_+=I.textContent.length}for(var H=p.previousSibling,W=s;H;H=H.previousSibling){if(L=w(H,H.firstChild,-1),L)return ji(U(L.line,L.ch+W),c);W+=H.textContent.length}}var at=function(t){this.cm=t,this.prevInput="",this.pollingFast=!1,this.polling=new Ue,this.hasSelection=!1,this.composing=null};at.prototype.init=function(t){var r=this,s=this,a=this.cm;this.createField(t);var c=this.textarea;t.wrapper.insertBefore(this.wrapper,t.wrapper.firstChild),te&&(c.style.width="0px"),Ce(c,"input",function(){m&&y>=9&&r.hasSelection&&(r.hasSelection=null),s.poll()}),Ce(c,"paste",function(f){ct(a,f)||Td(f,a)||(a.state.pasteIncoming=+new Date,s.fastPoll())});function h(f){if(!ct(a,f)){if(a.somethingSelected())xs({lineWise:!1,text:a.getSelections()});else if(a.options.lineWiseCopyCut){var p=$d(a);xs({lineWise:!0,text:p.text}),f.type=="cut"?a.setSelections(p.ranges,null,Pe):(s.prevInput="",c.value=p.text.join(`
2993
+ `),lt(c))}else return;f.type=="cut"&&(a.state.cutIncoming=+new Date)}}Ce(c,"cut",h),Ce(c,"copy",h),Ce(t.scroller,"paste",function(f){if(!(tn(t,f)||ct(a,f))){if(!c.dispatchEvent){a.state.pasteIncoming=+new Date,s.focus();return}var p=new Event("paste");p.clipboardData=f.clipboardData,c.dispatchEvent(p)}}),Ce(t.lineSpace,"selectstart",function(f){tn(t,f)||$t(f)}),Ce(c,"compositionstart",function(){var f=a.getCursor("from");s.composing&&s.composing.range.clear(),s.composing={start:f,range:a.markText(f,a.getCursor("to"),{className:"CodeMirror-composing"})}}),Ce(c,"compositionend",function(){s.composing&&(s.poll(),s.composing.range.clear(),s.composing=null)})},at.prototype.createField=function(t){this.wrapper=Ed(),this.textarea=this.wrapper.firstChild},at.prototype.screenReaderLabelChanged=function(t){t?this.textarea.setAttribute("aria-label",t):this.textarea.removeAttribute("aria-label")},at.prototype.prepareSelection=function(){var t=this.cm,r=t.display,s=t.doc,a=Cu(t);if(t.options.moveInputWithCursor){var c=Cr(t,s.sel.primary().head,"div"),h=r.wrapper.getBoundingClientRect(),f=r.lineDiv.getBoundingClientRect();a.teTop=Math.max(0,Math.min(r.wrapper.clientHeight-10,c.top+f.top-h.top)),a.teLeft=Math.max(0,Math.min(r.wrapper.clientWidth-10,c.left+f.left-h.left))}return a},at.prototype.showSelection=function(t){var r=this.cm,s=r.display;k(s.cursorDiv,t.cursors),k(s.selectionDiv,t.selection),t.teTop!=null&&(this.wrapper.style.top=t.teTop+"px",this.wrapper.style.left=t.teLeft+"px")},at.prototype.reset=function(t){if(!(this.contextMenuPending||this.composing)){var r=this.cm;if(r.somethingSelected()){this.prevInput="";var s=r.getSelection();this.textarea.value=s,r.state.focused&&lt(this.textarea),m&&y>=9&&(this.hasSelection=s)}else t||(this.prevInput=this.textarea.value="",m&&y>=9&&(this.hasSelection=null))}},at.prototype.getField=function(){return this.textarea},at.prototype.supportsTouch=function(){return!1},at.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!re||be()!=this.textarea))try{this.textarea.focus()}catch{}},at.prototype.blur=function(){this.textarea.blur()},at.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},at.prototype.receivedFocus=function(){this.slowPoll()},at.prototype.slowPoll=function(){var t=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){t.poll(),t.cm.state.focused&&t.slowPoll()})},at.prototype.fastPoll=function(){var t=!1,r=this;r.pollingFast=!0;function s(){var a=r.poll();!a&&!t?(t=!0,r.polling.set(60,s)):(r.pollingFast=!1,r.slowPoll())}r.polling.set(20,s)},at.prototype.poll=function(){var t=this,r=this.cm,s=this.textarea,a=this.prevInput;if(this.contextMenuPending||!r.state.focused||Ga(s)&&!a&&!this.composing||r.isReadOnly()||r.options.disableInput||r.state.keySeq)return!1;var c=s.value;if(c==a&&!r.somethingSelected())return!1;if(m&&y>=9&&this.hasSelection===c||ue&&/[\uf700-\uf7ff]/.test(c))return r.display.input.reset(),!1;if(r.doc.sel==r.display.selForContextMenu){var h=c.charCodeAt(0);if(h==8203&&!a&&(a="​"),h==8666)return this.reset(),this.cm.execCommand("undo")}for(var f=0,p=Math.min(a.length,c.length);f<p&&a.charCodeAt(f)==c.charCodeAt(f);)++f;return qt(r,function(){N1(r,c.slice(f),a.length-f,null,t.composing?"*compose":null),c.length>1e3||c.indexOf(`
2994
2994
  `)>-1?s.value=t.prevInput="":t.prevInput=c,t.composing&&(t.composing.range.clear(),t.composing.range=r.markText(t.composing.start,r.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},at.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},at.prototype.onKeyPress=function(){m&&y>=9&&(this.hasSelection=null),this.fastPoll()},at.prototype.onContextMenu=function(t){var r=this,s=r.cm,a=s.display,c=r.textarea;r.contextMenuPending&&r.contextMenuPending();var h=Gn(s,t),f=a.scroller.scrollTop;if(!h||E)return;var p=s.options.resetSelectionOnContextMenu;p&&s.doc.sel.contains(h)==-1&&Ct(s,Et)(s.doc,zn(h),Pe);var g=c.style.cssText,b=r.wrapper.style.cssText,w=r.wrapper.offsetParent.getBoundingClientRect();r.wrapper.style.cssText="position: static",c.style.cssText=`position: absolute; width: 30px; height: 30px;
2995
2995
  top: `+(t.clientY-w.top-5)+"px; left: "+(t.clientX-w.left-5)+`px;
2996
2996
  z-index: 1000; background: `+(m?"rgba(255, 255, 255, .05)":"transparent")+`;
2997
- outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var L;T&&(L=window.scrollY),a.input.focus(),T&&window.scrollTo(null,L),a.input.reset(),s.somethingSelected()||(c.value=r.prevInput=" "),r.contextMenuPending=_,a.selForContextMenu=s.doc.sel,clearTimeout(a.detectingSelectAll);function I(){if(c.selectionStart!=null){var W=s.somethingSelected(),K="​"+(W?c.value:"");c.value="⇚",c.value=K,r.prevInput=W?"":"​",c.selectionStart=1,c.selectionEnd=K.length,a.selForContextMenu=s.doc.sel}}function _(){if(r.contextMenuPending==_&&(r.contextMenuPending=!1,r.wrapper.style.cssText=b,c.style.cssText=g,m&&y<9&&a.scrollbars.setScrollTop(a.scroller.scrollTop=f),c.selectionStart!=null)){(!m||m&&y<9)&&I();var W=0,K=function(){a.selForContextMenu==s.doc.sel&&c.selectionStart==0&&c.selectionEnd>0&&r.prevInput=="​"?Ct(s,Yu)(s):W++<10?a.detectingSelectAll=setTimeout(K,500):(a.selForContextMenu=null,a.input.reset())};a.detectingSelectAll=setTimeout(K,200)}}if(m&&y>=9&&I(),We){Zn(t);var H=function(){Nt(window,"mouseup",H),setTimeout(_,20)};Ce(window,"mouseup",H)}else setTimeout(_,50)},at.prototype.readOnlyChanged=function(t){t||this.reset(),this.textarea.disabled=t=="nocursor",this.textarea.readOnly=!!t},at.prototype.setUneditable=function(){},at.prototype.needsContentAttribute=!1;function B3(t,r){if(r=r?Xe(r):{},r.value=t.value,!r.tabindex&&t.tabIndex&&(r.tabindex=t.tabIndex),!r.placeholder&&t.placeholder&&(r.placeholder=t.placeholder),r.autofocus==null){var s=be();r.autofocus=s==t||t.getAttribute("autofocus")!=null&&s==document.body}function a(){t.value=p.getValue()}var c;if(t.form&&(Ce(t.form,"submit",a),!r.leaveSubmitMethodAlone)){var h=t.form;c=h.submit;try{var f=h.submit=function(){a(),h.submit=c,h.submit(),h.submit=f}}catch{}}r.finishInit=function(g){g.save=a,g.getTextArea=function(){return t},g.toTextArea=function(){g.toTextArea=isNaN,a(),t.parentNode.removeChild(g.getWrapperElement()),t.style.display="",t.form&&(Nt(t.form,"submit",a),!r.leaveSubmitMethodAlone&&typeof t.form.submit=="function"&&(t.form.submit=c))}},t.style.display="none";var p=Qe(function(g){return t.parentNode.insertBefore(g,t.nextSibling)},r);return p}function V3(t){t.off=Nt,t.on=Ce,t.wheelEventPixels=K4,t.Doc=Ft,t.splitLines=Mo,t.countColumn=Je,t.findColumn=bt,t.isWordChar=Ke,t.Pass=$e,t.signal=ze,t.Line=Oi,t.changeEnd=Ln,t.scrollbarModel=Mu,t.Pos=U,t.cmpPos=C,t.modes=dr,t.mimeModes=nr,t.resolveMode=Ti,t.getMode=ki,t.modeExtensions=mr,t.extendMode=yr,t.copyState=ir,t.startState=$o,t.innerMode=ko,t.commands=ea,t.keyMap=rn,t.keyName=hd,t.isModifierKey=ud,t.lookupKey=Zi,t.normalizeKeyMap=b3,t.StringStream=it,t.SharedTextMarker=Xo,t.TextMarker=Mn,t.LineWidget=Yo,t.e_preventDefault=$t,t.e_stopPropagation=Mi,t.e_stop=Zn,t.addClass=Me,t.contains=X,t.rmClass=ie,t.keyNames=Tn}I3(Qe),N3(Qe);var Z3="iter insert remove copy getEditor constructor".split(" ");for(var Ls in Ft.prototype)Ft.prototype.hasOwnProperty(Ls)&&fe(Z3,Ls)<0&&(Qe.prototype[Ls]=function(t){return function(){return t.apply(this.doc,arguments)}}(Ft.prototype[Ls]));return Pr(Ft),Qe.inputStyles={textarea:at,contenteditable:je},Qe.defineMode=function(t){!Qe.defaults.mode&&t!="null"&&(Qe.defaults.mode=t),Ka.apply(this,arguments)},Qe.defineMIME=Jr,Qe.defineMode("null",function(){return{token:function(t){return t.skipToEnd()}}}),Qe.defineMIME("text/plain","null"),Qe.defineExtension=function(t,r){Qe.prototype[t]=r},Qe.defineDocExtension=function(t,r){Ft.prototype[t]=r},Qe.fromTextArea=B3,V3(Qe),Qe.version="5.62.3",Qe})})(Rp);var gn=Rp.exports;const ga=o0(gn),xL=`.CodeMirror{font-family:monospace;height:300px;color:#000;direction:ltr}.CodeMirror-lines{padding:4px 0}.CodeMirror pre.CodeMirror-line,.CodeMirror pre.CodeMirror-line-like{padding:0 4px}.CodeMirror-scrollbar-filler,.CodeMirror-gutter-filler{background-color:#fff}.CodeMirror-gutters{border-right:1px solid #ddd;background-color:#f7f7f7;white-space:nowrap}.CodeMirror-linenumber{padding:0 3px 0 5px;min-width:20px;text-align:right;color:#999;white-space:nowrap}.CodeMirror-guttermarker{color:#000}.CodeMirror-guttermarker-subtle{color:#999}.CodeMirror-cursor{border-left:1px solid black;border-right:none;width:0}.CodeMirror div.CodeMirror-secondarycursor{border-left:1px solid silver}.cm-fat-cursor .CodeMirror-cursor{width:auto;border:0!important;background:#7e7}.cm-fat-cursor div.CodeMirror-cursors{z-index:1}.cm-fat-cursor-mark{background-color:#14ff1480;-webkit-animation:blink 1.06s steps(1) infinite;-moz-animation:blink 1.06s steps(1) infinite;animation:blink 1.06s steps(1) infinite}.cm-animate-fat-cursor{width:auto;-webkit-animation:blink 1.06s steps(1) infinite;-moz-animation:blink 1.06s steps(1) infinite;animation:blink 1.06s steps(1) infinite;background-color:#7e7}@-moz-keyframes blink{50%{background-color:transparent}}@-webkit-keyframes blink{50%{background-color:transparent}}@keyframes blink{50%{background-color:transparent}}.cm-tab{display:inline-block;text-decoration:inherit}.CodeMirror-rulers{position:absolute;inset:-50px 0 0;overflow:hidden}.CodeMirror-ruler{border-left:1px solid #ccc;top:0;bottom:0;position:absolute}.cm-s-default .cm-header{color:#00f}.cm-s-default .cm-quote{color:#090}.cm-negative{color:#d44}.cm-positive{color:#292}.cm-header,.cm-strong{font-weight:700}.cm-em{font-style:italic}.cm-link{text-decoration:underline}.cm-strikethrough{text-decoration:line-through}.cm-s-default .cm-keyword{color:#708}.cm-s-default .cm-atom{color:#219}.cm-s-default .cm-number{color:#164}.cm-s-default .cm-def{color:#00f}.cm-s-default .cm-variable-2{color:#05a}.cm-s-default .cm-variable-3,.cm-s-default .cm-type{color:#085}.cm-s-default .cm-comment{color:#a50}.cm-s-default .cm-string{color:#a11}.cm-s-default .cm-string-2{color:#f50}.cm-s-default .cm-meta,.cm-s-default .cm-qualifier{color:#555}.cm-s-default .cm-builtin{color:#30a}.cm-s-default .cm-bracket{color:#997}.cm-s-default .cm-tag{color:#170}.cm-s-default .cm-attribute{color:#00c}.cm-s-default .cm-hr{color:#999}.cm-s-default .cm-link{color:#00c}.cm-s-default .cm-error,.cm-invalidchar{color:red}.CodeMirror-composing{border-bottom:2px solid}div.CodeMirror span.CodeMirror-matchingbracket{color:#0b0}div.CodeMirror span.CodeMirror-nonmatchingbracket{color:#a22}.CodeMirror-matchingtag{background:rgba(255,150,0,.3)}.CodeMirror-activeline-background{background:#e8f2ff}.CodeMirror{position:relative;overflow:hidden;background:white}.CodeMirror-scroll{overflow:scroll!important;margin-bottom:-50px;margin-right:-50px;padding-bottom:50px;height:100%;outline:none;position:relative}.CodeMirror-sizer{position:relative;border-right:50px solid transparent}.CodeMirror-vscrollbar,.CodeMirror-hscrollbar,.CodeMirror-scrollbar-filler,.CodeMirror-gutter-filler{position:absolute;z-index:6;display:none;outline:none}.CodeMirror-vscrollbar{right:0;top:0;overflow-x:hidden;overflow-y:scroll}.CodeMirror-hscrollbar{bottom:0;left:0;overflow-y:hidden;overflow-x:scroll}.CodeMirror-scrollbar-filler{right:0;bottom:0}.CodeMirror-gutter-filler{left:0;bottom:0}.CodeMirror-gutters{position:absolute;left:0;top:0;min-height:100%;z-index:3}.CodeMirror-gutter{white-space:normal;height:100%;display:inline-block;vertical-align:top;margin-bottom:-50px}.CodeMirror-gutter-wrapper{position:absolute;z-index:4;background:none!important;border:none!important}.CodeMirror-gutter-background{position:absolute;top:0;bottom:0;z-index:4}.CodeMirror-gutter-elt{position:absolute;cursor:default;z-index:4}.CodeMirror-gutter-wrapper ::selection{background-color:transparent}.CodeMirror-gutter-wrapper ::-moz-selection{background-color:transparent}.CodeMirror-lines{cursor:text;min-height:1px}.CodeMirror pre.CodeMirror-line,.CodeMirror pre.CodeMirror-line-like{-moz-border-radius:0;-webkit-border-radius:0;border-radius:0;border-width:0;background:transparent;font-family:inherit;font-size:inherit;margin:0;white-space:pre;word-wrap:normal;line-height:inherit;color:inherit;z-index:2;position:relative;overflow:visible;-webkit-tap-highlight-color:transparent;-webkit-font-variant-ligatures:contextual;font-variant-ligatures:contextual}.CodeMirror-wrap pre.CodeMirror-line,.CodeMirror-wrap pre.CodeMirror-line-like{word-wrap:break-word;white-space:pre-wrap;word-break:normal}.CodeMirror-linebackground{position:absolute;inset:0;z-index:0}.CodeMirror-linewidget{position:relative;z-index:2;padding:.1px}.CodeMirror-rtl pre{direction:rtl}.CodeMirror-code{outline:none}.CodeMirror-scroll,.CodeMirror-sizer,.CodeMirror-gutter,.CodeMirror-gutters,.CodeMirror-linenumber{-moz-box-sizing:content-box;box-sizing:content-box}.CodeMirror-measure{position:absolute;width:100%;height:0;overflow:hidden;visibility:hidden}.CodeMirror-cursor{position:absolute;pointer-events:none}.CodeMirror-measure pre{position:static}div.CodeMirror-cursors{visibility:hidden;position:relative;z-index:3}div.CodeMirror-dragcursors,.CodeMirror-focused div.CodeMirror-cursors{visibility:visible}.CodeMirror-selected{background:#d9d9d9}.CodeMirror-focused .CodeMirror-selected{background:#d7d4f0}.CodeMirror-crosshair{cursor:crosshair}.CodeMirror-line::selection,.CodeMirror-line>span::selection,.CodeMirror-line>span>span::selection{background:#d7d4f0}.CodeMirror-line::-moz-selection,.CodeMirror-line>span::-moz-selection,.CodeMirror-line>span>span::-moz-selection{background:#d7d4f0}.cm-searching{background-color:#ffa;background-color:#ff06}.cm-force-border{padding-right:.1px}@media print{.CodeMirror div.CodeMirror-cursors{visibility:hidden}}.cm-tab-wrap-hack:after{content:""}span.CodeMirror-selectedtext{background:none}
2998
- `,zL=j`
2997
+ outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var L;T&&(L=window.scrollY),a.input.focus(),T&&window.scrollTo(null,L),a.input.reset(),s.somethingSelected()||(c.value=r.prevInput=" "),r.contextMenuPending=_,a.selForContextMenu=s.doc.sel,clearTimeout(a.detectingSelectAll);function I(){if(c.selectionStart!=null){var W=s.somethingSelected(),K="​"+(W?c.value:"");c.value="⇚",c.value=K,r.prevInput=W?"":"​",c.selectionStart=1,c.selectionEnd=K.length,a.selForContextMenu=s.doc.sel}}function _(){if(r.contextMenuPending==_&&(r.contextMenuPending=!1,r.wrapper.style.cssText=b,c.style.cssText=g,m&&y<9&&a.scrollbars.setScrollTop(a.scroller.scrollTop=f),c.selectionStart!=null)){(!m||m&&y<9)&&I();var W=0,K=function(){a.selForContextMenu==s.doc.sel&&c.selectionStart==0&&c.selectionEnd>0&&r.prevInput=="​"?Ct(s,Xu)(s):W++<10?a.detectingSelectAll=setTimeout(K,500):(a.selForContextMenu=null,a.input.reset())};a.detectingSelectAll=setTimeout(K,200)}}if(m&&y>=9&&I(),We){Zn(t);var H=function(){Nt(window,"mouseup",H),setTimeout(_,20)};Ce(window,"mouseup",H)}else setTimeout(_,50)},at.prototype.readOnlyChanged=function(t){t||this.reset(),this.textarea.disabled=t=="nocursor",this.textarea.readOnly=!!t},at.prototype.setUneditable=function(){},at.prototype.needsContentAttribute=!1;function U3(t,r){if(r=r?Xe(r):{},r.value=t.value,!r.tabindex&&t.tabIndex&&(r.tabindex=t.tabIndex),!r.placeholder&&t.placeholder&&(r.placeholder=t.placeholder),r.autofocus==null){var s=be();r.autofocus=s==t||t.getAttribute("autofocus")!=null&&s==document.body}function a(){t.value=p.getValue()}var c;if(t.form&&(Ce(t.form,"submit",a),!r.leaveSubmitMethodAlone)){var h=t.form;c=h.submit;try{var f=h.submit=function(){a(),h.submit=c,h.submit(),h.submit=f}}catch{}}r.finishInit=function(g){g.save=a,g.getTextArea=function(){return t},g.toTextArea=function(){g.toTextArea=isNaN,a(),t.parentNode.removeChild(g.getWrapperElement()),t.style.display="",t.form&&(Nt(t.form,"submit",a),!r.leaveSubmitMethodAlone&&typeof t.form.submit=="function"&&(t.form.submit=c))}},t.style.display="none";var p=Qe(function(g){return t.parentNode.insertBefore(g,t.nextSibling)},r);return p}function j3(t){t.off=Nt,t.on=Ce,t.wheelEventPixels=Q4,t.Doc=Ft,t.splitLines=Mo,t.countColumn=Je,t.findColumn=bt,t.isWordChar=Ke,t.Pass=$e,t.signal=ze,t.Line=Oi,t.changeEnd=Ln,t.scrollbarModel=Tu,t.Pos=U,t.cmpPos=C,t.modes=dr,t.mimeModes=nr,t.resolveMode=Ti,t.getMode=ki,t.modeExtensions=mr,t.extendMode=yr,t.copyState=ir,t.startState=$o,t.innerMode=ko,t.commands=ea,t.keyMap=rn,t.keyName=fd,t.isModifierKey=dd,t.lookupKey=Zi,t.normalizeKeyMap=w3,t.StringStream=it,t.SharedTextMarker=Xo,t.TextMarker=Mn,t.LineWidget=Yo,t.e_preventDefault=$t,t.e_stopPropagation=Mi,t.e_stop=Zn,t.addClass=Me,t.contains=X,t.rmClass=ie,t.keyNames=Tn}N3(Qe),B3(Qe);var G3="iter insert remove copy getEditor constructor".split(" ");for(var Ls in Ft.prototype)Ft.prototype.hasOwnProperty(Ls)&&fe(G3,Ls)<0&&(Qe.prototype[Ls]=function(t){return function(){return t.apply(this.doc,arguments)}}(Ft.prototype[Ls]));return Pr(Ft),Qe.inputStyles={textarea:at,contenteditable:je},Qe.defineMode=function(t){!Qe.defaults.mode&&t!="null"&&(Qe.defaults.mode=t),Ka.apply(this,arguments)},Qe.defineMIME=Jr,Qe.defineMode("null",function(){return{token:function(t){return t.skipToEnd()}}}),Qe.defineMIME("text/plain","null"),Qe.defineExtension=function(t,r){Qe.prototype[t]=r},Qe.defineDocExtension=function(t,r){Ft.prototype[t]=r},Qe.fromTextArea=U3,j3(Qe),Qe.version="5.62.3",Qe})}(oc)),oc.exports}var ML=gn();const ga=a0(ML),TL=`.CodeMirror{font-family:monospace;height:300px;color:#000;direction:ltr}.CodeMirror-lines{padding:4px 0}.CodeMirror pre.CodeMirror-line,.CodeMirror pre.CodeMirror-line-like{padding:0 4px}.CodeMirror-scrollbar-filler,.CodeMirror-gutter-filler{background-color:#fff}.CodeMirror-gutters{border-right:1px solid #ddd;background-color:#f7f7f7;white-space:nowrap}.CodeMirror-linenumber{padding:0 3px 0 5px;min-width:20px;text-align:right;color:#999;white-space:nowrap}.CodeMirror-guttermarker{color:#000}.CodeMirror-guttermarker-subtle{color:#999}.CodeMirror-cursor{border-left:1px solid black;border-right:none;width:0}.CodeMirror div.CodeMirror-secondarycursor{border-left:1px solid silver}.cm-fat-cursor .CodeMirror-cursor{width:auto;border:0!important;background:#7e7}.cm-fat-cursor div.CodeMirror-cursors{z-index:1}.cm-fat-cursor-mark{background-color:#14ff1480;-webkit-animation:blink 1.06s steps(1) infinite;-moz-animation:blink 1.06s steps(1) infinite;animation:blink 1.06s steps(1) infinite}.cm-animate-fat-cursor{width:auto;-webkit-animation:blink 1.06s steps(1) infinite;-moz-animation:blink 1.06s steps(1) infinite;animation:blink 1.06s steps(1) infinite;background-color:#7e7}@-moz-keyframes blink{50%{background-color:transparent}}@-webkit-keyframes blink{50%{background-color:transparent}}@keyframes blink{50%{background-color:transparent}}.cm-tab{display:inline-block;text-decoration:inherit}.CodeMirror-rulers{position:absolute;inset:-50px 0 0;overflow:hidden}.CodeMirror-ruler{border-left:1px solid #ccc;top:0;bottom:0;position:absolute}.cm-s-default .cm-header{color:#00f}.cm-s-default .cm-quote{color:#090}.cm-negative{color:#d44}.cm-positive{color:#292}.cm-header,.cm-strong{font-weight:700}.cm-em{font-style:italic}.cm-link{text-decoration:underline}.cm-strikethrough{text-decoration:line-through}.cm-s-default .cm-keyword{color:#708}.cm-s-default .cm-atom{color:#219}.cm-s-default .cm-number{color:#164}.cm-s-default .cm-def{color:#00f}.cm-s-default .cm-variable-2{color:#05a}.cm-s-default .cm-variable-3,.cm-s-default .cm-type{color:#085}.cm-s-default .cm-comment{color:#a50}.cm-s-default .cm-string{color:#a11}.cm-s-default .cm-string-2{color:#f50}.cm-s-default .cm-meta,.cm-s-default .cm-qualifier{color:#555}.cm-s-default .cm-builtin{color:#30a}.cm-s-default .cm-bracket{color:#997}.cm-s-default .cm-tag{color:#170}.cm-s-default .cm-attribute{color:#00c}.cm-s-default .cm-hr{color:#999}.cm-s-default .cm-link{color:#00c}.cm-s-default .cm-error,.cm-invalidchar{color:red}.CodeMirror-composing{border-bottom:2px solid}div.CodeMirror span.CodeMirror-matchingbracket{color:#0b0}div.CodeMirror span.CodeMirror-nonmatchingbracket{color:#a22}.CodeMirror-matchingtag{background:rgba(255,150,0,.3)}.CodeMirror-activeline-background{background:#e8f2ff}.CodeMirror{position:relative;overflow:hidden;background:white}.CodeMirror-scroll{overflow:scroll!important;margin-bottom:-50px;margin-right:-50px;padding-bottom:50px;height:100%;outline:none;position:relative}.CodeMirror-sizer{position:relative;border-right:50px solid transparent}.CodeMirror-vscrollbar,.CodeMirror-hscrollbar,.CodeMirror-scrollbar-filler,.CodeMirror-gutter-filler{position:absolute;z-index:6;display:none;outline:none}.CodeMirror-vscrollbar{right:0;top:0;overflow-x:hidden;overflow-y:scroll}.CodeMirror-hscrollbar{bottom:0;left:0;overflow-y:hidden;overflow-x:scroll}.CodeMirror-scrollbar-filler{right:0;bottom:0}.CodeMirror-gutter-filler{left:0;bottom:0}.CodeMirror-gutters{position:absolute;left:0;top:0;min-height:100%;z-index:3}.CodeMirror-gutter{white-space:normal;height:100%;display:inline-block;vertical-align:top;margin-bottom:-50px}.CodeMirror-gutter-wrapper{position:absolute;z-index:4;background:none!important;border:none!important}.CodeMirror-gutter-background{position:absolute;top:0;bottom:0;z-index:4}.CodeMirror-gutter-elt{position:absolute;cursor:default;z-index:4}.CodeMirror-gutter-wrapper ::selection{background-color:transparent}.CodeMirror-gutter-wrapper ::-moz-selection{background-color:transparent}.CodeMirror-lines{cursor:text;min-height:1px}.CodeMirror pre.CodeMirror-line,.CodeMirror pre.CodeMirror-line-like{-moz-border-radius:0;-webkit-border-radius:0;border-radius:0;border-width:0;background:transparent;font-family:inherit;font-size:inherit;margin:0;white-space:pre;word-wrap:normal;line-height:inherit;color:inherit;z-index:2;position:relative;overflow:visible;-webkit-tap-highlight-color:transparent;-webkit-font-variant-ligatures:contextual;font-variant-ligatures:contextual}.CodeMirror-wrap pre.CodeMirror-line,.CodeMirror-wrap pre.CodeMirror-line-like{word-wrap:break-word;white-space:pre-wrap;word-break:normal}.CodeMirror-linebackground{position:absolute;inset:0;z-index:0}.CodeMirror-linewidget{position:relative;z-index:2;padding:.1px}.CodeMirror-rtl pre{direction:rtl}.CodeMirror-code{outline:none}.CodeMirror-scroll,.CodeMirror-sizer,.CodeMirror-gutter,.CodeMirror-gutters,.CodeMirror-linenumber{-moz-box-sizing:content-box;box-sizing:content-box}.CodeMirror-measure{position:absolute;width:100%;height:0;overflow:hidden;visibility:hidden}.CodeMirror-cursor{position:absolute;pointer-events:none}.CodeMirror-measure pre{position:static}div.CodeMirror-cursors{visibility:hidden;position:relative;z-index:3}div.CodeMirror-dragcursors,.CodeMirror-focused div.CodeMirror-cursors{visibility:visible}.CodeMirror-selected{background:#d9d9d9}.CodeMirror-focused .CodeMirror-selected{background:#d7d4f0}.CodeMirror-crosshair{cursor:crosshair}.CodeMirror-line::selection,.CodeMirror-line>span::selection,.CodeMirror-line>span>span::selection{background:#d7d4f0}.CodeMirror-line::-moz-selection,.CodeMirror-line>span::-moz-selection,.CodeMirror-line>span>span::-moz-selection{background:#d7d4f0}.cm-searching{background-color:#ffa;background-color:#ff06}.cm-force-border{padding-right:.1px}@media print{.CodeMirror div.CodeMirror-cursors{visibility:hidden}}.cm-tab-wrap-hack:after{content:""}span.CodeMirror-selectedtext{background:none}
2998
+ `,kL=j`
2999
2999
  .cm-s-skedulo .cm-header {
3000
3000
  color: blue;
3001
3001
  }
@@ -3075,12 +3075,12 @@ b`.split(/\n/).length!=3?function(t){for(var r=0,s=[],a=t.length;r<=a;){var c=t.
3075
3075
  .cm-invalidchar {
3076
3076
  color: #f00;
3077
3077
  }
3078
- `;(function(n,e){(function(i){i(gn)})(function(i){i.overlayMode=function(o,l,d){return{startState:function(){return{base:i.startState(o),overlay:i.startState(l),basePos:0,baseCur:null,overlayPos:0,overlayCur:null,streamSeen:null}},copyState:function(u){return{base:i.copyState(o,u.base),overlay:i.copyState(l,u.overlay),basePos:u.basePos,baseCur:null,overlayPos:u.overlayPos,overlayCur:null}},token:function(u,v){return(u!=v.streamSeen||Math.min(v.basePos,v.overlayPos)<u.start)&&(v.streamSeen=u,v.basePos=v.overlayPos=u.start),u.start==v.basePos&&(v.baseCur=o.token(u,v.base),v.basePos=u.pos),u.start==v.overlayPos&&(u.pos=u.start,v.overlayCur=l.token(u,v.overlay),v.overlayPos=u.pos),u.pos=Math.min(v.basePos,v.overlayPos),v.overlayCur==null?v.baseCur:v.baseCur!=null&&v.overlay.combineTokens||d&&v.overlay.combineTokens==null?v.baseCur+" "+v.overlayCur:v.overlayCur},indent:o.indent&&function(u,v,m){return o.indent(u.base,v,m)},electricChars:o.electricChars,innerMode:function(u){return{state:u.base,mode:o}},blankLine:function(u){var v,m;return o.blankLine&&(v=o.blankLine(u.base)),l.blankLine&&(m=l.blankLine(u.overlay)),m==null?v:d&&v!=null?v+" "+m:m}}}})})();(function(n,e){(function(i){i(gn)})(function(i){i.defineMode("jinja2",function(){var o=["and","as","block","endblock","by","cycle","debug","else","elif","extends","filter","endfilter","firstof","for","endfor","if","endif","ifchanged","endifchanged","ifequal","endifequal","ifnotequal","endifnotequal","in","include","load","not","now","or","parsed","regroup","reversed","spaceless","endspaceless","ssi","templatetag","openblock","closeblock","openvariable","closevariable","openbrace","closebrace","opencomment","closecomment","widthratio","url","with","endwith","get_current_language","trans","endtrans","noop","blocktrans","endblocktrans","get_available_languages","get_current_language_bidi","plural"],l=/^[+\-*&%=<>!?|~^]/,d=/^[:\[\(\{]/,u=["true","false"],v=/^(\d[+\-\*\/])?\d+(\.\d+)?/;o=new RegExp("(("+o.join(")|(")+"))\\b"),u=new RegExp("(("+u.join(")|(")+"))\\b");function m(y,T){var S=y.peek();if(T.incomment)return y.skipTo("#}")?(y.eatWhile(/\#|}/),T.incomment=!1):y.skipToEnd(),"comment";if(T.intag){if(T.operator){if(T.operator=!1,y.match(u))return"atom";if(y.match(v))return"number"}if(T.sign){if(T.sign=!1,y.match(u))return"atom";if(y.match(v))return"number"}if(T.instring)return S==T.instring&&(T.instring=!1),y.next(),"string";if(S=="'"||S=='"')return T.instring=S,y.next(),"string";if(y.match(T.intag+"}")||y.eat("-")&&y.match(T.intag+"}"))return T.intag=!1,"tag";if(y.match(l))return T.operator=!0,"operator";if(y.match(d))T.sign=!0;else if(y.eat(" ")||y.sol()){if(y.match(o))return"keyword";if(y.match(u))return"atom";if(y.match(v))return"number";y.sol()&&y.next()}else y.next();return"variable"}else if(y.eat("{")){if(y.eat("#"))return T.incomment=!0,y.skipTo("#}")?(y.eatWhile(/\#|}/),T.incomment=!1):y.skipToEnd(),"comment";if(S=y.eat(/\{|%/))return T.intag=S,S=="{"&&(T.intag="}"),y.eat("-"),"tag"}y.next()}return{startState:function(){return{tokenize:m}},token:function(y,T){return T.tokenize(y,T)},blockCommentStart:"{#",blockCommentEnd:"#}"}}),i.defineMIME("text/jinja2","jinja2")})})();var LL={exports:{}};(function(n,e){(function(i){i(gn)})(function(i){var o={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},l={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};i.defineMode("xml",function(d,u){var v=d.indentUnit,m={},y=u.htmlMode?o:l;for(var T in y)m[T]=y[T];for(var T in u)m[T]=u[T];var S,$;function E(x,z){function B(Me){return z.tokenize=Me,Me(x,z)}var X=x.next();if(X=="<")return x.eat("!")?x.eat("[")?x.match("CDATA[")?B(ee("atom","]]>")):null:x.match("--")?B(ee("comment","-->")):x.match("DOCTYPE",!0,!0)?(x.eatWhile(/[\w\._\-]/),B(te(1))):null:x.eat("?")?(x.eatWhile(/[\w\._\-]/),z.tokenize=ee("meta","?>"),"meta"):(S=x.eat("/")?"closeTag":"openTag",z.tokenize=N,"tag bracket");if(X=="&"){var be;return x.eat("#")?x.eat("x")?be=x.eatWhile(/[a-fA-F\d]/)&&x.eat(";"):be=x.eatWhile(/[\d]/)&&x.eat(";"):be=x.eatWhile(/[\w\.\-:]/)&&x.eat(";"),be?"atom":"error"}else return x.eatWhile(/[^&<]/),null}E.isInText=!0;function N(x,z){var B=x.next();if(B==">"||B=="/"&&x.eat(">"))return z.tokenize=E,S=B==">"?"endTag":"selfcloseTag","tag bracket";if(B=="=")return S="equals",null;if(B=="<"){z.tokenize=E,z.state=xe,z.tagName=z.tagStart=null;var X=z.tokenize(x,z);return X?X+" tag error":"tag error"}else return/[\'\"]/.test(B)?(z.tokenize=G(B),z.stringStartCol=x.column(),z.tokenize(x,z)):(x.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function G(x){var z=function(B,X){for(;!B.eol();)if(B.next()==x){X.tokenize=N;break}return"string"};return z.isInAttribute=!0,z}function ee(x,z){return function(B,X){for(;!B.eol();){if(B.match(z)){X.tokenize=E;break}B.next()}return x}}function te(x){return function(z,B){for(var X;(X=z.next())!=null;){if(X=="<")return B.tokenize=te(x+1),B.tokenize(z,B);if(X==">")if(x==1){B.tokenize=E;break}else return B.tokenize=te(x-1),B.tokenize(z,B)}return"meta"}}function se(x,z,B){this.prev=x.context,this.tagName=z||"",this.indent=x.indented,this.startOfLine=B,(m.doNotIndent.hasOwnProperty(z)||x.context&&x.context.noIndent)&&(this.noIndent=!0)}function re(x){x.context&&(x.context=x.context.prev)}function ue(x,z){for(var B;;){if(!x.context||(B=x.context.tagName,!m.contextGrabbers.hasOwnProperty(B)||!m.contextGrabbers[B].hasOwnProperty(z)))return;re(x)}}function xe(x,z,B){return x=="openTag"?(B.tagStart=z.column(),qe):x=="closeTag"?Ge:xe}function qe(x,z,B){return x=="word"?(B.tagName=z.current(),$="tag",de):m.allowMissingTagName&&x=="endTag"?($="tag bracket",de(x,z,B)):($="error",qe)}function Ge(x,z,B){if(x=="word"){var X=z.current();return B.context&&B.context.tagName!=X&&m.implicitlyClosed.hasOwnProperty(B.context.tagName)&&re(B),B.context&&B.context.tagName==X||m.matchClosing===!1?($="tag",Ze):($="tag error",We)}else return m.allowMissingTagName&&x=="endTag"?($="tag bracket",Ze(x,z,B)):($="error",We)}function Ze(x,z,B){return x!="endTag"?($="error",Ze):(re(B),xe)}function We(x,z,B){return $="error",Ze(x,z,B)}function de(x,z,B){if(x=="word")return $="attribute",ie;if(x=="endTag"||x=="selfcloseTag"){var X=B.tagName,be=B.tagStart;return B.tagName=B.tagStart=null,x=="selfcloseTag"||m.autoSelfClosers.hasOwnProperty(X)?ue(B,X):(ue(B,X),B.context=new se(B,X,be==B.indented)),xe}return $="error",de}function ie(x,z,B){return x=="equals"?Z:(m.allowMissing||($="error"),de(x,z,B))}function Z(x,z,B){return x=="string"?k:x=="word"&&m.allowUnquoted?($="string",de):($="error",de(x,z,B))}function k(x,z,B){return x=="string"?k:de(x,z,B)}return{startState:function(x){var z={tokenize:E,state:xe,indented:x||0,tagName:null,tagStart:null,context:null};return x!=null&&(z.baseIndent=x),z},token:function(x,z){if(!z.tagName&&x.sol()&&(z.indented=x.indentation()),x.eatSpace())return null;S=null;var B=z.tokenize(x,z);return(B||S)&&B!="comment"&&($=null,z.state=z.state(S||B,x,z),$&&(B=$=="error"?B+" error":$)),B},indent:function(x,z,B){var X=x.context;if(x.tokenize.isInAttribute)return x.tagStart==x.indented?x.stringStartCol+1:x.indented+v;if(X&&X.noIndent)return i.Pass;if(x.tokenize!=N&&x.tokenize!=E)return B?B.match(/^(\s*)/)[0].length:0;if(x.tagName)return m.multilineTagIndentPastTag!==!1?x.tagStart+x.tagName.length+2:x.tagStart+v*(m.multilineTagIndentFactor||1);if(m.alignCDATA&&/<!\[CDATA\[/.test(z))return 0;var be=z&&/^<(\/)?([\w_:\.-]*)/.exec(z);if(be&&be[1])for(;X;)if(X.tagName==be[2]){X=X.prev;break}else if(m.implicitlyClosed.hasOwnProperty(X.tagName))X=X.prev;else break;else if(be)for(;X;){var Me=m.contextGrabbers[X.tagName];if(Me&&Me.hasOwnProperty(be[2]))X=X.prev;else break}for(;X&&X.prev&&!X.startOfLine;)X=X.prev;return X?X.indent+v:x.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:m.htmlMode?"html":"xml",helperType:m.htmlMode?"html":"xml",skipAttribute:function(x){x.state==Z&&(x.state=de)},xmlCurrentTag:function(x){return x.tagName?{name:x.tagName,close:x.type=="closeTag"}:null},xmlCurrentContext:function(x){for(var z=[],B=x.context;B;B=B.prev)z.push(B.tagName);return z.reverse()}}}),i.defineMIME("text/xml","xml"),i.defineMIME("application/xml","xml"),i.mimeModes.hasOwnProperty("text/html")||i.defineMIME("text/html",{name:"xml",htmlMode:!0})})})();var SL=LL.exports,ML={exports:{}};(function(n,e){(function(i){i(gn)})(function(i){i.defineMode("javascript",function(o,l){var d=o.indentUnit,u=l.statementIndent,v=l.jsonld,m=l.json||v,y=l.trackScope!==!1,T=l.typescript,S=l.wordCharacters||/[\w$\xa1-\uffff]/,$=function(){function C(Ot){return{type:Ot,style:"keyword"}}var M=C("keyword a"),V=C("keyword b"),q=C("keyword c"),Le=C("keyword d"),Ae=C("operator"),oe={type:"atom",style:"atom"};return{if:C("if"),while:M,with:M,else:V,do:V,try:V,finally:V,return:Le,break:Le,continue:Le,new:C("new"),delete:q,void:q,throw:q,debugger:C("debugger"),var:C("var"),const:C("var"),let:C("var"),function:C("function"),catch:C("catch"),for:C("for"),switch:C("switch"),case:C("case"),default:C("default"),in:Ae,typeof:Ae,instanceof:Ae,true:oe,false:oe,null:oe,undefined:oe,NaN:oe,Infinity:oe,this:C("this"),class:C("class"),super:C("atom"),yield:q,export:C("export"),import:C("import"),extends:q,await:q}}(),E=/[+\-*&%=<>!?|~^@]/,N=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function G(C){for(var M=!1,V,q=!1;(V=C.next())!=null;){if(!M){if(V=="/"&&!q)return;V=="["?q=!0:q&&V=="]"&&(q=!1)}M=!M&&V=="\\"}}var ee,te;function se(C,M,V){return ee=C,te=V,M}function re(C,M){var V=C.next();if(V=='"'||V=="'")return M.tokenize=ue(V),M.tokenize(C,M);if(V=="."&&C.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return se("number","number");if(V=="."&&C.match(".."))return se("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(V))return se(V);if(V=="="&&C.eat(">"))return se("=>","operator");if(V=="0"&&C.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return se("number","number");if(/\d/.test(V))return C.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),se("number","number");if(V=="/")return C.eat("*")?(M.tokenize=xe,xe(C,M)):C.eat("/")?(C.skipToEnd(),se("comment","comment")):U(C,M,1)?(G(C),C.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),se("regexp","string-2")):(C.eat("="),se("operator","operator",C.current()));if(V=="`")return M.tokenize=qe,qe(C,M);if(V=="#"&&C.peek()=="!")return C.skipToEnd(),se("meta","meta");if(V=="#"&&C.eatWhile(S))return se("variable","property");if(V=="<"&&C.match("!--")||V=="-"&&C.match("->")&&!/\S/.test(C.string.slice(0,C.start)))return C.skipToEnd(),se("comment","comment");if(E.test(V))return(V!=">"||!M.lexical||M.lexical.type!=">")&&(C.eat("=")?(V=="!"||V=="=")&&C.eat("="):/[<>*+\-|&?]/.test(V)&&(C.eat(V),V==">"&&C.eat(V))),V=="?"&&C.eat(".")?se("."):se("operator","operator",C.current());if(S.test(V)){C.eatWhile(S);var q=C.current();if(M.lastType!="."){if($.propertyIsEnumerable(q)){var Le=$[q];return se(Le.type,Le.style,q)}if(q=="async"&&C.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return se("async","keyword",q)}return se("variable","variable",q)}}function ue(C){return function(M,V){var q=!1,Le;if(v&&M.peek()=="@"&&M.match(N))return V.tokenize=re,se("jsonld-keyword","meta");for(;(Le=M.next())!=null&&!(Le==C&&!q);)q=!q&&Le=="\\";return q||(V.tokenize=re),se("string","string")}}function xe(C,M){for(var V=!1,q;q=C.next();){if(q=="/"&&V){M.tokenize=re;break}V=q=="*"}return se("comment","comment")}function qe(C,M){for(var V=!1,q;(q=C.next())!=null;){if(!V&&(q=="`"||q=="$"&&C.eat("{"))){M.tokenize=re;break}V=!V&&q=="\\"}return se("quasi","string-2",C.current())}var Ge="([{}])";function Ze(C,M){M.fatArrowAt&&(M.fatArrowAt=null);var V=C.string.indexOf("=>",C.start);if(!(V<0)){if(T){var q=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(C.string.slice(C.start,V));q&&(V=q.index)}for(var Le=0,Ae=!1,oe=V-1;oe>=0;--oe){var Ot=C.string.charAt(oe),or=Ge.indexOf(Ot);if(or>=0&&or<3){if(!Le){++oe;break}if(--Le==0){Ot=="("&&(Ae=!0);break}}else if(or>=3&&or<6)++Le;else if(S.test(Ot))Ae=!0;else if(/["'\/`]/.test(Ot))for(;;--oe){if(oe==0)return;var $i=C.string.charAt(oe-1);if($i==Ot&&C.string.charAt(oe-2)!="\\"){oe--;break}}else if(Ae&&!Le){++oe;break}}Ae&&!Le&&(M.fatArrowAt=oe)}}var We={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function de(C,M,V,q,Le,Ae){this.indented=C,this.column=M,this.type=V,this.prev=Le,this.info=Ae,q!=null&&(this.align=q)}function ie(C,M){if(!y)return!1;for(var V=C.localVars;V;V=V.next)if(V.name==M)return!0;for(var q=C.context;q;q=q.prev)for(var V=q.vars;V;V=V.next)if(V.name==M)return!0}function Z(C,M,V,q,Le){var Ae=C.cc;for(k.state=C,k.stream=Le,k.marked=null,k.cc=Ae,k.style=M,C.lexical.hasOwnProperty("align")||(C.lexical.align=!0);;){var oe=Ae.length?Ae.pop():m?Se:Pe;if(oe(V,q)){for(;Ae.length&&Ae[Ae.length-1].lex;)Ae.pop()();return k.marked?k.marked:V=="variable"&&ie(C,q)?"variable-2":M}}}var k={state:null,column:null,marked:null,cc:null};function x(){for(var C=arguments.length-1;C>=0;C--)k.cc.push(arguments[C])}function z(){return x.apply(null,arguments),!0}function B(C,M){for(var V=M;V;V=V.next)if(V.name==C)return!0;return!1}function X(C){var M=k.state;if(k.marked="def",!!y){if(M.context){if(M.lexical.info=="var"&&M.context&&M.context.block){var V=be(C,M.context);if(V!=null){M.context=V;return}}else if(!B(C,M.localVars)){M.localVars=new lt(C,M.localVars);return}}l.globalVars&&!B(C,M.globalVars)&&(M.globalVars=new lt(C,M.globalVars))}}function be(C,M){if(M)if(M.block){var V=be(C,M.prev);return V?V==M.prev?M:new Be(V,M.vars,!0):null}else return B(C,M.vars)?M:new Be(M.prev,new lt(C,M.vars),!1);else return null}function Me(C){return C=="public"||C=="private"||C=="protected"||C=="abstract"||C=="readonly"}function Be(C,M,V){this.prev=C,this.vars=M,this.block=V}function lt(C,M){this.name=C,this.next=M}var Qt=new lt("this",new lt("arguments",null));function Xe(){k.state.context=new Be(k.state.context,k.state.localVars,!1),k.state.localVars=Qt}function Je(){k.state.context=new Be(k.state.context,k.state.localVars,!0),k.state.localVars=null}function Ue(){k.state.localVars=k.state.context.vars,k.state.context=k.state.context.prev}Ue.lex=!0;function fe(C,M){var V=function(){var q=k.state,Le=q.indented;if(q.lexical.type=="stat")Le=q.lexical.indented;else for(var Ae=q.lexical;Ae&&Ae.type==")"&&Ae.align;Ae=Ae.prev)Le=Ae.indented;q.lexical=new de(Le,k.stream.column(),C,null,q.lexical,M)};return V.lex=!0,V}function we(){var C=k.state;C.lexical.prev&&(C.lexical.type==")"&&(C.indented=C.lexical.indented),C.lexical=C.lexical.prev)}we.lex=!0;function $e(C){function M(V){return V==C?z():C==";"||V=="}"||V==")"||V=="]"?x():z(M)}return M}function Pe(C,M){return C=="var"?z(fe("vardef",M),Lo,$e(";"),we):C=="keyword a"?z(fe("form"),br,Pe,we):C=="keyword b"?z(fe("form"),Pe,we):C=="keyword d"?k.stream.match(/^\s*$/,!1)?z():z(fe("stat"),Oe,$e(";"),we):C=="debugger"?z($e(";")):C=="{"?z(fe("}"),Je,jt,we,Ue):C==";"?z():C=="if"?(k.state.lexical.info=="else"&&k.state.cc[k.state.cc.length-1]==we&&k.state.cc.pop()(),z(fe("form"),br,Pe,we,Ga)):C=="function"?z(dr):C=="for"?z(fe("form"),Je,qa,Pe,Ue,we):C=="class"||T&&M=="interface"?(k.marked="keyword",z(fe("form",C=="class"?C:M),ki,we)):C=="variable"?T&&M=="declare"?(k.marked="keyword",z(Pe)):T&&(M=="module"||M=="enum"||M=="type")&&k.stream.match(/^\s*\w/,!1)?(k.marked="keyword",M=="enum"?z(Hr):M=="type"?z(Ka,$e("operator"),ze,$e(";")):z(fe("form"),Ht,$e("{"),fe("}"),jt,we,we)):T&&M=="namespace"?(k.marked="keyword",z(fe("form"),Se,Pe,we)):T&&M=="abstract"?(k.marked="keyword",z(Pe)):z(fe("stat"),_e):C=="switch"?z(fe("form"),br,$e("{"),fe("}","switch"),Je,jt,we,we,Ue):C=="case"?z(Se,$e(":")):C=="default"?z($e(":")):C=="catch"?z(fe("form"),Xe,Ee,Pe,we,Ue):C=="export"?z(fe("stat"),ko,we):C=="import"?z(fe("stat"),it,we):C=="async"?z(Pe):M=="@"?z(Se,Pe):x(fe("stat"),Se,$e(";"),we)}function Ee(C){if(C=="(")return z(Jr,$e(")"))}function Se(C,M){return bn(C,M,!1)}function bt(C,M){return bn(C,M,!0)}function br(C){return C!="("?x():z(fe(")"),Oe,$e(")"),we)}function bn(C,M,V){if(k.state.fatArrowAt==k.stream.start){var q=V?Ke:Bn;if(C=="(")return z(Xe,fe(")"),nt(Jr,")"),we,$e("=>"),q,Ue);if(C=="variable")return x(Xe,Ht,$e("=>"),q,Ue)}var Le=V?mt:He;return We.hasOwnProperty(C)?z(Le):C=="function"?z(dr,Le):C=="class"||T&&M=="interface"?(k.marked="keyword",z(fe("form"),Ti,we)):C=="keyword c"||C=="async"?z(V?bt:Se):C=="("?z(fe(")"),Oe,$e(")"),we,Le):C=="operator"||C=="spread"?z(V?bt:Se):C=="["?z(fe("]"),Re,we,Le):C=="{"?Vn(Ar,"}",null,Le):C=="quasi"?x(er,Le):C=="new"?z(A(V)):z()}function Oe(C){return C.match(/[;\}\)\],]/)?x():x(Se)}function He(C,M){return C==","?z(Oe):mt(C,M,!1)}function mt(C,M,V){var q=V==!1?He:mt,Le=V==!1?Se:bt;if(C=="=>")return z(Xe,V?Ke:Bn,Ue);if(C=="operator")return/\+\+|--/.test(M)||T&&M=="!"?z(q):T&&M=="<"&&k.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?z(fe(">"),nt(ze,">"),we,q):M=="?"?z(Se,$e(":"),Le):z(Le);if(C=="quasi")return x(er,q);if(C!=";"){if(C=="(")return Vn(bt,")","call",q);if(C==".")return z(It,q);if(C=="[")return z(fe("]"),Oe,$e("]"),we,q);if(T&&M=="as")return k.marked="keyword",z(ze,q);if(C=="regexp")return k.state.lastType=k.marked="operator",k.stream.backUp(k.stream.pos-k.stream.start-1),z(Le)}}function er(C,M){return C!="quasi"?x():M.slice(M.length-2)!="${"?z(er):z(Oe,ur)}function ur(C){if(C=="}")return k.marked="string-2",k.state.tokenize=qe,z(er)}function Bn(C){return Ze(k.stream,k.state),x(C=="{"?Pe:Se)}function Ke(C){return Ze(k.stream,k.state),x(C=="{"?Pe:bt)}function A(C){return function(M){return M=="."?z(C?F:Y):M=="variable"&&T?z(Zn,C?mt:He):x(C?bt:Se)}}function Y(C,M){if(M=="target")return k.marked="keyword",z(He)}function F(C,M){if(M=="target")return k.marked="keyword",z(mt)}function _e(C){return C==":"?z(we,Pe):x(He,$e(";"),we)}function It(C){if(C=="variable")return k.marked="property",z()}function Ar(C,M){if(C=="async")return k.marked="property",z(Ar);if(C=="variable"||k.style=="keyword"){if(k.marked="property",M=="get"||M=="set")return z(Kl);var V;return T&&k.state.fatArrowAt==k.stream.start&&(V=k.stream.match(/^\s*:\s*/,!1))&&(k.state.fatArrowAt=k.stream.pos+V[0].length),z(tr)}else{if(C=="number"||C=="string")return k.marked=v?"property":k.style+" property",z(tr);if(C=="jsonld-keyword")return z(tr);if(T&&Me(M))return k.marked="keyword",z(Ar);if(C=="[")return z(Se,Xr,$e("]"),tr);if(C=="spread")return z(bt,tr);if(M=="*")return k.marked="keyword",z(Ar);if(C==":")return x(tr)}}function Kl(C){return C!="variable"?x(tr):(k.marked="property",z(dr))}function tr(C){if(C==":")return z(bt);if(C=="(")return x(dr)}function nt(C,M,V){function q(Le,Ae){if(V?V.indexOf(Le)>-1:Le==","){var oe=k.state.lexical;return oe.info=="call"&&(oe.pos=(oe.pos||0)+1),z(function(Ot,or){return Ot==M||or==M?x():x(C)},q)}return Le==M||Ae==M?z():V&&V.indexOf(";")>-1?x(C):z($e(M))}return function(Le,Ae){return Le==M||Ae==M?z():x(C,q)}}function Vn(C,M,V){for(var q=3;q<arguments.length;q++)k.cc.push(arguments[q]);return z(fe(M,V),nt(C,M),we)}function jt(C){return C=="}"?z():x(Pe,jt)}function Xr(C,M){if(T){if(C==":")return z(ze);if(M=="?")return z(Xr)}}function Ce(C,M){if(T&&(C==":"||M=="in"))return z(ze)}function Li(C){if(T&&C==":")return k.stream.match(/^\s*\w+\s+is\b/,!1)?z(Se,Nt,ze):z(ze)}function Nt(C,M){if(M=="is")return k.marked="keyword",z()}function ze(C,M){if(M=="keyof"||M=="typeof"||M=="infer"||M=="readonly")return k.marked="keyword",z(M=="typeof"?bt:ze);if(C=="variable"||M=="void")return k.marked="type",z(rr);if(M=="|"||M=="&")return z(ze);if(C=="string"||C=="number"||C=="atom")return z(rr);if(C=="[")return z(fe("]"),nt(ze,"]",","),we,rr);if(C=="{")return z(fe("}"),Si,we,rr);if(C=="(")return z(nt(Mi,")"),ct,rr);if(C=="<")return z(nt(ze,">"),ze);if(C=="quasi")return x(Pr,rr)}function ct(C){if(C=="=>")return z(ze)}function Si(C){return C.match(/[\}\)\]]/)?z():C==","||C==";"?z(Si):x(St,Si)}function St(C,M){if(C=="variable"||k.style=="keyword")return k.marked="property",z(St);if(M=="?"||C=="number"||C=="string")return z(St);if(C==":")return z(ze);if(C=="[")return z($e("variable"),Ce,$e("]"),St);if(C=="(")return x(nr,St);if(!C.match(/[;\}\)\],]/))return z()}function Pr(C,M){return C!="quasi"?x():M.slice(M.length-2)!="${"?z(Pr):z(ze,$t)}function $t(C){if(C=="}")return k.marked="string-2",k.state.tokenize=qe,z(Pr)}function Mi(C,M){return C=="variable"&&k.stream.match(/^\s*[?:]/,!1)||M=="?"?z(Mi):C==":"?z(ze):C=="spread"?z(Mi):x(ze)}function rr(C,M){if(M=="<")return z(fe(">"),nt(ze,">"),we,rr);if(M=="|"||C=="."||M=="&")return z(ze);if(C=="[")return z(ze,$e("]"),rr);if(M=="extends"||M=="implements")return k.marked="keyword",z(ze);if(M=="?")return z(ze,$e(":"),ze)}function Zn(C,M){if(M=="<")return z(fe(">"),nt(ze,">"),we,rr)}function mn(){return x(ze,Ua)}function Ua(C,M){if(M=="=")return z(ze)}function Lo(C,M){return M=="enum"?(k.marked="keyword",z(Hr)):x(Ht,Xr,Dr,Mo)}function Ht(C,M){if(T&&Me(M))return k.marked="keyword",z(Ht);if(C=="variable")return X(M),z();if(C=="spread")return z(Ht);if(C=="[")return Vn(So,"]");if(C=="{")return Vn(ja,"}")}function ja(C,M){return C=="variable"&&!k.stream.match(/^\s*:/,!1)?(X(M),z(Dr)):(C=="variable"&&(k.marked="property"),C=="spread"?z(Ht):C=="}"?x():C=="["?z(Se,$e("]"),$e(":"),ja):z($e(":"),Ht,Dr))}function So(){return x(Ht,Dr)}function Dr(C,M){if(M=="=")return z(bt)}function Mo(C){if(C==",")return z(Lo)}function Ga(C,M){if(C=="keyword b"&&M=="else")return z(fe("form","else"),Pe,we)}function qa(C,M){if(M=="await")return z(qa);if(C=="(")return z(fe(")"),To,we)}function To(C){return C=="var"?z(Lo,yn):C=="variable"?z(yn):x(yn)}function yn(C,M){return C==")"?z():C==";"?z(yn):M=="in"||M=="of"?(k.marked="keyword",z(Se,yn)):x(Se,yn)}function dr(C,M){if(M=="*")return k.marked="keyword",z(dr);if(C=="variable")return X(M),z(dr);if(C=="(")return z(Xe,fe(")"),nt(Jr,")"),we,Li,Pe,Ue);if(T&&M=="<")return z(fe(">"),nt(mn,">"),we,dr)}function nr(C,M){if(M=="*")return k.marked="keyword",z(nr);if(C=="variable")return X(M),z(nr);if(C=="(")return z(Xe,fe(")"),nt(Jr,")"),we,Li,Ue);if(T&&M=="<")return z(fe(">"),nt(mn,">"),we,nr)}function Ka(C,M){if(C=="keyword"||C=="variable")return k.marked="type",z(Ka);if(M=="<")return z(fe(">"),nt(mn,">"),we)}function Jr(C,M){return M=="@"&&z(Se,Jr),C=="spread"?z(Jr):T&&Me(M)?(k.marked="keyword",z(Jr)):T&&C=="this"?z(Xr,Dr):x(Ht,Xr,Dr)}function Ti(C,M){return C=="variable"?ki(C,M):mr(C,M)}function ki(C,M){if(C=="variable")return X(M),z(mr)}function mr(C,M){if(M=="<")return z(fe(">"),nt(mn,">"),we,mr);if(M=="extends"||M=="implements"||T&&C==",")return M=="implements"&&(k.marked="keyword"),z(T?ze:Se,mr);if(C=="{")return z(fe("}"),yr,we)}function yr(C,M){if(C=="async"||C=="variable"&&(M=="static"||M=="get"||M=="set"||T&&Me(M))&&k.stream.match(/^\s+[\w$\xa1-\uffff]/,!1))return k.marked="keyword",z(yr);if(C=="variable"||k.style=="keyword")return k.marked="property",z(ir,yr);if(C=="number"||C=="string")return z(ir,yr);if(C=="[")return z(Se,Xr,$e("]"),ir,yr);if(M=="*")return k.marked="keyword",z(yr);if(T&&C=="(")return x(nr,yr);if(C==";"||C==",")return z(yr);if(C=="}")return z();if(M=="@")return z(Se,yr)}function ir(C,M){if(M=="!"||M=="?")return z(ir);if(C==":")return z(ze,Dr);if(M=="=")return z(bt);var V=k.state.lexical.prev,q=V&&V.info=="interface";return x(q?nr:dr)}function ko(C,M){return M=="*"?(k.marked="keyword",z(Gt,$e(";"))):M=="default"?(k.marked="keyword",z(Se,$e(";"))):C=="{"?z(nt($o,"}"),Gt,$e(";")):x(Pe)}function $o(C,M){if(M=="as")return k.marked="keyword",z($e("variable"));if(C=="variable")return x(bt,$o)}function it(C){return C=="string"?z():C=="("?x(Se):C=="."?x(He):x(he,Nr,Gt)}function he(C,M){return C=="{"?Vn(he,"}"):(C=="variable"&&X(M),M=="*"&&(k.marked="keyword"),z(Oo))}function Nr(C){if(C==",")return z(he,Nr)}function Oo(C,M){if(M=="as")return k.marked="keyword",z(he)}function Gt(C,M){if(M=="from")return k.marked="keyword",z(Se)}function Re(C){return C=="]"?z():x(nt(bt,"]"))}function Hr(){return x(fe("form"),Ht,$e("{"),fe("}"),nt(Wn,"}"),we,we)}function Wn(){return x(Ht,Dr)}function Eo(C,M){return C.lastType=="operator"||C.lastType==","||E.test(M.charAt(0))||/[,.]/.test(M.charAt(0))}function U(C,M,V){return M.tokenize==re&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(M.lastType)||M.lastType=="quasi"&&/\{\s*$/.test(C.string.slice(0,C.pos-(V||0)))}return{startState:function(C){var M={tokenize:re,lastType:"sof",cc:[],lexical:new de((C||0)-d,0,"block",!1),localVars:l.localVars,context:l.localVars&&new Be(null,null,!1),indented:C||0};return l.globalVars&&typeof l.globalVars=="object"&&(M.globalVars=l.globalVars),M},token:function(C,M){if(C.sol()&&(M.lexical.hasOwnProperty("align")||(M.lexical.align=!1),M.indented=C.indentation(),Ze(C,M)),M.tokenize!=xe&&C.eatSpace())return null;var V=M.tokenize(C,M);return ee=="comment"?V:(M.lastType=ee=="operator"&&(te=="++"||te=="--")?"incdec":ee,Z(M,V,ee,te,C))},indent:function(C,M){if(C.tokenize==xe||C.tokenize==qe)return i.Pass;if(C.tokenize!=re)return 0;var V=M&&M.charAt(0),q=C.lexical,Le;if(!/^\s*else\b/.test(M))for(var Ae=C.cc.length-1;Ae>=0;--Ae){var oe=C.cc[Ae];if(oe==we)q=q.prev;else if(oe!=Ga&&oe!=Ue)break}for(;(q.type=="stat"||q.type=="form")&&(V=="}"||(Le=C.cc[C.cc.length-1])&&(Le==He||Le==mt)&&!/^[,\.=+\-*:?[\(]/.test(M));)q=q.prev;u&&q.type==")"&&q.prev.type=="stat"&&(q=q.prev);var Ot=q.type,or=V==Ot;return Ot=="vardef"?q.indented+(C.lastType=="operator"||C.lastType==","?q.info.length+1:0):Ot=="form"&&V=="{"?q.indented:Ot=="form"?q.indented+d:Ot=="stat"?q.indented+(Eo(C,M)?u||d:0):q.info=="switch"&&!or&&l.doubleIndentSwitch!=!1?q.indented+(/^(?:case|default)\b/.test(M)?d:2*d):q.align?q.column+(or?0:1):q.indented+(or?0:d)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:m?null:"/*",blockCommentEnd:m?null:"*/",blockCommentContinue:m?null:" * ",lineComment:m?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:m?"json":"javascript",jsonldMode:v,jsonMode:m,expressionAllowed:U,skipExpression:function(C){Z(C,"atom","atom","true",new i.StringStream("",2,null))}}}),i.registerHelper("wordChars","javascript",/[\w$]/),i.defineMIME("text/javascript","javascript"),i.defineMIME("text/ecmascript","javascript"),i.defineMIME("application/javascript","javascript"),i.defineMIME("application/x-javascript","javascript"),i.defineMIME("application/ecmascript","javascript"),i.defineMIME("application/json",{name:"javascript",json:!0}),i.defineMIME("application/x-json",{name:"javascript",json:!0}),i.defineMIME("application/manifest+json",{name:"javascript",json:!0}),i.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),i.defineMIME("text/typescript",{name:"javascript",typescript:!0}),i.defineMIME("application/typescript",{name:"javascript",typescript:!0})})})();var TL=ML.exports,Gh={exports:{}},qh;function kL(){return qh||(qh=1,function(n,e){(function(i){i(gn)})(function(i){i.defineMode("css",function(de,ie){var Z=ie.inline;ie.propertyKeywords||(ie=i.resolveMode("text/css"));var k=de.indentUnit,x=ie.tokenHooks,z=ie.documentTypes||{},B=ie.mediaTypes||{},X=ie.mediaFeatures||{},be=ie.mediaValueKeywords||{},Me=ie.propertyKeywords||{},Be=ie.nonStandardPropertyKeywords||{},lt=ie.fontProperties||{},Qt=ie.counterDescriptors||{},Xe=ie.colorKeywords||{},Je=ie.valueKeywords||{},Ue=ie.allowNested,fe=ie.lineComment,we=ie.supportsAtComponent===!0,$e=de.highlightNonStandardPropertyKeywords!==!1,Pe,Ee;function Se(A,Y){return Pe=Y,A}function bt(A,Y){var F=A.next();if(x[F]){var _e=x[F](A,Y);if(_e!==!1)return _e}if(F=="@")return A.eatWhile(/[\w\\\-]/),Se("def",A.current());if(F=="="||(F=="~"||F=="|")&&A.eat("="))return Se(null,"compare");if(F=='"'||F=="'")return Y.tokenize=br(F),Y.tokenize(A,Y);if(F=="#")return A.eatWhile(/[\w\\\-]/),Se("atom","hash");if(F=="!")return A.match(/^\s*\w*/),Se("keyword","important");if(/\d/.test(F)||F=="."&&A.eat(/\d/))return A.eatWhile(/[\w.%]/),Se("number","unit");if(F==="-"){if(/[\d.]/.test(A.peek()))return A.eatWhile(/[\w.%]/),Se("number","unit");if(A.match(/^-[\w\\\-]*/))return A.eatWhile(/[\w\\\-]/),A.match(/^\s*:/,!1)?Se("variable-2","variable-definition"):Se("variable-2","variable");if(A.match(/^\w+-/))return Se("meta","meta")}else return/[,+>*\/]/.test(F)?Se(null,"select-op"):F=="."&&A.match(/^-?[_a-z][_a-z0-9-]*/i)?Se("qualifier","qualifier"):/[:;{}\[\]\(\)]/.test(F)?Se(null,F):A.match(/^[\w-.]+(?=\()/)?(/^(url(-prefix)?|domain|regexp)$/i.test(A.current())&&(Y.tokenize=bn),Se("variable callee","variable")):/[\w\\\-]/.test(F)?(A.eatWhile(/[\w\\\-]/),Se("property","word")):Se(null,null)}function br(A){return function(Y,F){for(var _e=!1,It;(It=Y.next())!=null;){if(It==A&&!_e){A==")"&&Y.backUp(1);break}_e=!_e&&It=="\\"}return(It==A||!_e&&A!=")")&&(F.tokenize=null),Se("string","string")}}function bn(A,Y){return A.next(),A.match(/^\s*[\"\')]/,!1)?Y.tokenize=null:Y.tokenize=br(")"),Se(null,"(")}function Oe(A,Y,F){this.type=A,this.indent=Y,this.prev=F}function He(A,Y,F,_e){return A.context=new Oe(F,Y.indentation()+(_e===!1?0:k),A.context),F}function mt(A){return A.context.prev&&(A.context=A.context.prev),A.context.type}function er(A,Y,F){return Ke[F.context.type](A,Y,F)}function ur(A,Y,F,_e){for(var It=_e||1;It>0;It--)F.context=F.context.prev;return er(A,Y,F)}function Bn(A){var Y=A.current().toLowerCase();Je.hasOwnProperty(Y)?Ee="atom":Xe.hasOwnProperty(Y)?Ee="keyword":Ee="variable"}var Ke={};return Ke.top=function(A,Y,F){if(A=="{")return He(F,Y,"block");if(A=="}"&&F.context.prev)return mt(F);if(we&&/@component/i.test(A))return He(F,Y,"atComponentBlock");if(/^@(-moz-)?document$/i.test(A))return He(F,Y,"documentTypes");if(/^@(media|supports|(-moz-)?document|import)$/i.test(A))return He(F,Y,"atBlock");if(/^@(font-face|counter-style)/i.test(A))return F.stateArg=A,"restricted_atBlock_before";if(/^@(-(moz|ms|o|webkit)-)?keyframes$/i.test(A))return"keyframes";if(A&&A.charAt(0)=="@")return He(F,Y,"at");if(A=="hash")Ee="builtin";else if(A=="word")Ee="tag";else{if(A=="variable-definition")return"maybeprop";if(A=="interpolation")return He(F,Y,"interpolation");if(A==":")return"pseudo";if(Ue&&A=="(")return He(F,Y,"parens")}return F.context.type},Ke.block=function(A,Y,F){if(A=="word"){var _e=Y.current().toLowerCase();return Me.hasOwnProperty(_e)?(Ee="property","maybeprop"):Be.hasOwnProperty(_e)?(Ee=$e?"string-2":"property","maybeprop"):Ue?(Ee=Y.match(/^\s*:(?:\s|$)/,!1)?"property":"tag","block"):(Ee+=" error","maybeprop")}else return A=="meta"?"block":!Ue&&(A=="hash"||A=="qualifier")?(Ee="error","block"):Ke.top(A,Y,F)},Ke.maybeprop=function(A,Y,F){return A==":"?He(F,Y,"prop"):er(A,Y,F)},Ke.prop=function(A,Y,F){if(A==";")return mt(F);if(A=="{"&&Ue)return He(F,Y,"propBlock");if(A=="}"||A=="{")return ur(A,Y,F);if(A=="(")return He(F,Y,"parens");if(A=="hash"&&!/^#([0-9a-fA-f]{3,4}|[0-9a-fA-f]{6}|[0-9a-fA-f]{8})$/.test(Y.current()))Ee+=" error";else if(A=="word")Bn(Y);else if(A=="interpolation")return He(F,Y,"interpolation");return"prop"},Ke.propBlock=function(A,Y,F){return A=="}"?mt(F):A=="word"?(Ee="property","maybeprop"):F.context.type},Ke.parens=function(A,Y,F){return A=="{"||A=="}"?ur(A,Y,F):A==")"?mt(F):A=="("?He(F,Y,"parens"):A=="interpolation"?He(F,Y,"interpolation"):(A=="word"&&Bn(Y),"parens")},Ke.pseudo=function(A,Y,F){return A=="meta"?"pseudo":A=="word"?(Ee="variable-3",F.context.type):er(A,Y,F)},Ke.documentTypes=function(A,Y,F){return A=="word"&&z.hasOwnProperty(Y.current())?(Ee="tag",F.context.type):Ke.atBlock(A,Y,F)},Ke.atBlock=function(A,Y,F){if(A=="(")return He(F,Y,"atBlock_parens");if(A=="}"||A==";")return ur(A,Y,F);if(A=="{")return mt(F)&&He(F,Y,Ue?"block":"top");if(A=="interpolation")return He(F,Y,"interpolation");if(A=="word"){var _e=Y.current().toLowerCase();_e=="only"||_e=="not"||_e=="and"||_e=="or"?Ee="keyword":B.hasOwnProperty(_e)?Ee="attribute":X.hasOwnProperty(_e)?Ee="property":be.hasOwnProperty(_e)?Ee="keyword":Me.hasOwnProperty(_e)?Ee="property":Be.hasOwnProperty(_e)?Ee=$e?"string-2":"property":Je.hasOwnProperty(_e)?Ee="atom":Xe.hasOwnProperty(_e)?Ee="keyword":Ee="error"}return F.context.type},Ke.atComponentBlock=function(A,Y,F){return A=="}"?ur(A,Y,F):A=="{"?mt(F)&&He(F,Y,Ue?"block":"top",!1):(A=="word"&&(Ee="error"),F.context.type)},Ke.atBlock_parens=function(A,Y,F){return A==")"?mt(F):A=="{"||A=="}"?ur(A,Y,F,2):Ke.atBlock(A,Y,F)},Ke.restricted_atBlock_before=function(A,Y,F){return A=="{"?He(F,Y,"restricted_atBlock"):A=="word"&&F.stateArg=="@counter-style"?(Ee="variable","restricted_atBlock_before"):er(A,Y,F)},Ke.restricted_atBlock=function(A,Y,F){return A=="}"?(F.stateArg=null,mt(F)):A=="word"?(F.stateArg=="@font-face"&&!lt.hasOwnProperty(Y.current().toLowerCase())||F.stateArg=="@counter-style"&&!Qt.hasOwnProperty(Y.current().toLowerCase())?Ee="error":Ee="property","maybeprop"):"restricted_atBlock"},Ke.keyframes=function(A,Y,F){return A=="word"?(Ee="variable","keyframes"):A=="{"?He(F,Y,"top"):er(A,Y,F)},Ke.at=function(A,Y,F){return A==";"?mt(F):A=="{"||A=="}"?ur(A,Y,F):(A=="word"?Ee="tag":A=="hash"&&(Ee="builtin"),"at")},Ke.interpolation=function(A,Y,F){return A=="}"?mt(F):A=="{"||A==";"?ur(A,Y,F):(A=="word"?Ee="variable":A!="variable"&&A!="("&&A!=")"&&(Ee="error"),"interpolation")},{startState:function(A){return{tokenize:null,state:Z?"block":"top",stateArg:null,context:new Oe(Z?"block":"top",A||0,null)}},token:function(A,Y){if(!Y.tokenize&&A.eatSpace())return null;var F=(Y.tokenize||bt)(A,Y);return F&&typeof F=="object"&&(Pe=F[1],F=F[0]),Ee=F,Pe!="comment"&&(Y.state=Ke[Y.state](Pe,A,Y)),Ee},indent:function(A,Y){var F=A.context,_e=Y&&Y.charAt(0),It=F.indent;return F.type=="prop"&&(_e=="}"||_e==")")&&(F=F.prev),F.prev&&(_e=="}"&&(F.type=="block"||F.type=="top"||F.type=="interpolation"||F.type=="restricted_atBlock")?(F=F.prev,It=F.indent):(_e==")"&&(F.type=="parens"||F.type=="atBlock_parens")||_e=="{"&&(F.type=="at"||F.type=="atBlock"))&&(It=Math.max(0,F.indent-k))),It},electricChars:"}",blockCommentStart:"/*",blockCommentEnd:"*/",blockCommentContinue:" * ",lineComment:fe,fold:"brace"}});function o(de){for(var ie={},Z=0;Z<de.length;++Z)ie[de[Z].toLowerCase()]=!0;return ie}var l=["domain","regexp","url","url-prefix"],d=o(l),u=["all","aural","braille","handheld","print","projection","screen","tty","tv","embossed"],v=o(u),m=["width","min-width","max-width","height","min-height","max-height","device-width","min-device-width","max-device-width","device-height","min-device-height","max-device-height","aspect-ratio","min-aspect-ratio","max-aspect-ratio","device-aspect-ratio","min-device-aspect-ratio","max-device-aspect-ratio","color","min-color","max-color","color-index","min-color-index","max-color-index","monochrome","min-monochrome","max-monochrome","resolution","min-resolution","max-resolution","scan","grid","orientation","device-pixel-ratio","min-device-pixel-ratio","max-device-pixel-ratio","pointer","any-pointer","hover","any-hover","prefers-color-scheme"],y=o(m),T=["landscape","portrait","none","coarse","fine","on-demand","hover","interlace","progressive","dark","light"],S=o(T),$=["align-content","align-items","align-self","alignment-adjust","alignment-baseline","all","anchor-point","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","appearance","azimuth","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","binding","bleed","block-size","bookmark-label","bookmark-level","bookmark-state","bookmark-target","border","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","color","color-profile","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","content","counter-increment","counter-reset","crop","cue","cue-after","cue-before","cursor","direction","display","dominant-baseline","drop-initial-after-adjust","drop-initial-after-align","drop-initial-before-adjust","drop-initial-before-align","drop-initial-size","drop-initial-value","elevation","empty-cells","fit","fit-content","fit-position","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","float-offset","flow-from","flow-into","font","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-size","font-size-adjust","font-stretch","font-style","font-synthesis","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","gap","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-gap","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-gap","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","inline-box-align","inset","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","left","letter-spacing","line-break","line-height","line-height-step","line-stacking","line-stacking-ruby","line-stacking-shift","line-stacking-strategy","list-style","list-style-image","list-style-position","list-style-type","margin","margin-bottom","margin-left","margin-right","margin-top","marks","marquee-direction","marquee-loop","marquee-play-count","marquee-speed","marquee-style","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","move-to","nav-down","nav-index","nav-left","nav-right","nav-up","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-style","overflow-wrap","overflow-x","overflow-y","padding","padding-bottom","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","page-policy","pause","pause-after","pause-before","perspective","perspective-origin","pitch","pitch-range","place-content","place-items","place-self","play-during","position","presentation-level","punctuation-trim","quotes","region-break-after","region-break-before","region-break-inside","region-fragment","rendering-intent","resize","rest","rest-after","rest-before","richness","right","rotate","rotation","rotation-point","row-gap","ruby-align","ruby-overhang","ruby-position","ruby-span","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-type","shape-image-threshold","shape-inside","shape-margin","shape-outside","size","speak","speak-as","speak-header","speak-numeral","speak-punctuation","speech-rate","stress","string-set","tab-size","table-layout","target","target-name","target-new","target-position","text-align","text-align-last","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-height","text-indent","text-justify","text-orientation","text-outline","text-overflow","text-rendering","text-shadow","text-size-adjust","text-space-collapse","text-transform","text-underline-position","text-wrap","top","touch-action","transform","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-select","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","z-index","clip-path","clip-rule","mask","enable-background","filter","flood-color","flood-opacity","lighting-color","stop-color","stop-opacity","pointer-events","color-interpolation","color-interpolation-filters","color-rendering","fill","fill-opacity","fill-rule","image-rendering","marker","marker-end","marker-mid","marker-start","paint-order","shape-rendering","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-rendering","baseline-shift","dominant-baseline","glyph-orientation-horizontal","glyph-orientation-vertical","text-anchor","writing-mode"],E=o($),N=["accent-color","aspect-ratio","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","content-visibility","margin-block","margin-block-end","margin-block-start","margin-inline","margin-inline-end","margin-inline-start","overflow-anchor","overscroll-behavior","padding-block","padding-block-end","padding-block-start","padding-inline","padding-inline-end","padding-inline-start","scroll-snap-stop","scrollbar-3d-light-color","scrollbar-arrow-color","scrollbar-base-color","scrollbar-dark-shadow-color","scrollbar-face-color","scrollbar-highlight-color","scrollbar-shadow-color","scrollbar-track-color","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","shape-inside","zoom"],G=o(N),ee=["font-display","font-family","src","unicode-range","font-variant","font-feature-settings","font-stretch","font-weight","font-style"],te=o(ee),se=["additive-symbols","fallback","negative","pad","prefix","range","speak-as","suffix","symbols","system"],re=o(se),ue=["aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkgrey","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkslategrey","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dimgrey","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray","grey","green","greenyellow","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightgrey","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightslategrey","lightsteelblue","lightyellow","lime","limegreen","linen","magenta","maroon","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","oldlace","olive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","purple","rebeccapurple","red","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","slategrey","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen"],xe=o(ue),qe=["above","absolute","activeborder","additive","activecaption","afar","after-white-space","ahead","alias","all","all-scroll","alphabetic","alternate","always","amharic","amharic-abegede","antialiased","appworkspace","arabic-indic","armenian","asterisks","attr","auto","auto-flow","avoid","avoid-column","avoid-page","avoid-region","axis-pan","background","backwards","baseline","below","bidi-override","binary","bengali","blink","block","block-axis","blur","bold","bolder","border","border-box","both","bottom","break","break-all","break-word","brightness","bullets","button","button-bevel","buttonface","buttonhighlight","buttonshadow","buttontext","calc","cambodian","capitalize","caps-lock-indicator","caption","captiontext","caret","cell","center","checkbox","circle","cjk-decimal","cjk-earthly-branch","cjk-heavenly-stem","cjk-ideographic","clear","clip","close-quote","col-resize","collapse","color","color-burn","color-dodge","column","column-reverse","compact","condensed","contain","content","contents","content-box","context-menu","continuous","contrast","copy","counter","counters","cover","crop","cross","crosshair","cubic-bezier","currentcolor","cursive","cyclic","darken","dashed","decimal","decimal-leading-zero","default","default-button","dense","destination-atop","destination-in","destination-out","destination-over","devanagari","difference","disc","discard","disclosure-closed","disclosure-open","document","dot-dash","dot-dot-dash","dotted","double","down","drop-shadow","e-resize","ease","ease-in","ease-in-out","ease-out","element","ellipse","ellipsis","embed","end","ethiopic","ethiopic-abegede","ethiopic-abegede-am-et","ethiopic-abegede-gez","ethiopic-abegede-ti-er","ethiopic-abegede-ti-et","ethiopic-halehame-aa-er","ethiopic-halehame-aa-et","ethiopic-halehame-am-et","ethiopic-halehame-gez","ethiopic-halehame-om-et","ethiopic-halehame-sid-et","ethiopic-halehame-so-et","ethiopic-halehame-ti-er","ethiopic-halehame-ti-et","ethiopic-halehame-tig","ethiopic-numeric","ew-resize","exclusion","expanded","extends","extra-condensed","extra-expanded","fantasy","fast","fill","fill-box","fixed","flat","flex","flex-end","flex-start","footnotes","forwards","from","geometricPrecision","georgian","grayscale","graytext","grid","groove","gujarati","gurmukhi","hand","hangul","hangul-consonant","hard-light","hebrew","help","hidden","hide","higher","highlight","highlighttext","hiragana","hiragana-iroha","horizontal","hsl","hsla","hue","hue-rotate","icon","ignore","inactiveborder","inactivecaption","inactivecaptiontext","infinite","infobackground","infotext","inherit","initial","inline","inline-axis","inline-block","inline-flex","inline-grid","inline-table","inset","inside","intrinsic","invert","italic","japanese-formal","japanese-informal","justify","kannada","katakana","katakana-iroha","keep-all","khmer","korean-hangul-formal","korean-hanja-formal","korean-hanja-informal","landscape","lao","large","larger","left","level","lighter","lighten","line-through","linear","linear-gradient","lines","list-item","listbox","listitem","local","logical","loud","lower","lower-alpha","lower-armenian","lower-greek","lower-hexadecimal","lower-latin","lower-norwegian","lower-roman","lowercase","ltr","luminosity","malayalam","manipulation","match","matrix","matrix3d","media-controls-background","media-current-time-display","media-fullscreen-button","media-mute-button","media-play-button","media-return-to-realtime-button","media-rewind-button","media-seek-back-button","media-seek-forward-button","media-slider","media-sliderthumb","media-time-remaining-display","media-volume-slider","media-volume-slider-container","media-volume-sliderthumb","medium","menu","menulist","menulist-button","menulist-text","menulist-textfield","menutext","message-box","middle","min-intrinsic","mix","mongolian","monospace","move","multiple","multiple_mask_images","multiply","myanmar","n-resize","narrower","ne-resize","nesw-resize","no-close-quote","no-drop","no-open-quote","no-repeat","none","normal","not-allowed","nowrap","ns-resize","numbers","numeric","nw-resize","nwse-resize","oblique","octal","opacity","open-quote","optimizeLegibility","optimizeSpeed","oriya","oromo","outset","outside","outside-shape","overlay","overline","padding","padding-box","painted","page","paused","persian","perspective","pinch-zoom","plus-darker","plus-lighter","pointer","polygon","portrait","pre","pre-line","pre-wrap","preserve-3d","progress","push-button","radial-gradient","radio","read-only","read-write","read-write-plaintext-only","rectangle","region","relative","repeat","repeating-linear-gradient","repeating-radial-gradient","repeat-x","repeat-y","reset","reverse","rgb","rgba","ridge","right","rotate","rotate3d","rotateX","rotateY","rotateZ","round","row","row-resize","row-reverse","rtl","run-in","running","s-resize","sans-serif","saturate","saturation","scale","scale3d","scaleX","scaleY","scaleZ","screen","scroll","scrollbar","scroll-position","se-resize","searchfield","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","self-start","self-end","semi-condensed","semi-expanded","separate","sepia","serif","show","sidama","simp-chinese-formal","simp-chinese-informal","single","skew","skewX","skewY","skip-white-space","slide","slider-horizontal","slider-vertical","sliderthumb-horizontal","sliderthumb-vertical","slow","small","small-caps","small-caption","smaller","soft-light","solid","somali","source-atop","source-in","source-out","source-over","space","space-around","space-between","space-evenly","spell-out","square","square-button","start","static","status-bar","stretch","stroke","stroke-box","sub","subpixel-antialiased","svg_masks","super","sw-resize","symbolic","symbols","system-ui","table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row","table-row-group","tamil","telugu","text","text-bottom","text-top","textarea","textfield","thai","thick","thin","threeddarkshadow","threedface","threedhighlight","threedlightshadow","threedshadow","tibetan","tigre","tigrinya-er","tigrinya-er-abegede","tigrinya-et","tigrinya-et-abegede","to","top","trad-chinese-formal","trad-chinese-informal","transform","translate","translate3d","translateX","translateY","translateZ","transparent","ultra-condensed","ultra-expanded","underline","unidirectional-pan","unset","up","upper-alpha","upper-armenian","upper-greek","upper-hexadecimal","upper-latin","upper-norwegian","upper-roman","uppercase","urdu","url","var","vertical","vertical-text","view-box","visible","visibleFill","visiblePainted","visibleStroke","visual","w-resize","wait","wave","wider","window","windowframe","windowtext","words","wrap","wrap-reverse","x-large","x-small","xor","xx-large","xx-small"],Ge=o(qe),Ze=l.concat(u).concat(m).concat(T).concat($).concat(N).concat(ue).concat(qe);i.registerHelper("hintWords","css",Ze);function We(de,ie){for(var Z=!1,k;(k=de.next())!=null;){if(Z&&k=="/"){ie.tokenize=null;break}Z=k=="*"}return["comment","comment"]}i.defineMIME("text/css",{documentTypes:d,mediaTypes:v,mediaFeatures:y,mediaValueKeywords:S,propertyKeywords:E,nonStandardPropertyKeywords:G,fontProperties:te,counterDescriptors:re,colorKeywords:xe,valueKeywords:Ge,tokenHooks:{"/":function(de,ie){return de.eat("*")?(ie.tokenize=We,We(de,ie)):!1}},name:"css"}),i.defineMIME("text/x-scss",{mediaTypes:v,mediaFeatures:y,mediaValueKeywords:S,propertyKeywords:E,nonStandardPropertyKeywords:G,colorKeywords:xe,valueKeywords:Ge,fontProperties:te,allowNested:!0,lineComment:"//",tokenHooks:{"/":function(de,ie){return de.eat("/")?(de.skipToEnd(),["comment","comment"]):de.eat("*")?(ie.tokenize=We,We(de,ie)):["operator","operator"]},":":function(de){return de.match(/^\s*\{/,!1)?[null,null]:!1},$:function(de){return de.match(/^[\w-]+/),de.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2","variable"]},"#":function(de){return de.eat("{")?[null,"interpolation"]:!1}},name:"css",helperType:"scss"}),i.defineMIME("text/x-less",{mediaTypes:v,mediaFeatures:y,mediaValueKeywords:S,propertyKeywords:E,nonStandardPropertyKeywords:G,colorKeywords:xe,valueKeywords:Ge,fontProperties:te,allowNested:!0,lineComment:"//",tokenHooks:{"/":function(de,ie){return de.eat("/")?(de.skipToEnd(),["comment","comment"]):de.eat("*")?(ie.tokenize=We,We(de,ie)):["operator","operator"]},"@":function(de){return de.eat("{")?[null,"interpolation"]:de.match(/^(charset|document|font-face|import|(-(moz|ms|o|webkit)-)?keyframes|media|namespace|page|supports)\b/i,!1)?!1:(de.eatWhile(/[\w\\\-]/),de.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2","variable"])},"&":function(){return["atom","atom"]}},name:"css",helperType:"less"}),i.defineMIME("text/x-gss",{documentTypes:d,mediaTypes:v,mediaFeatures:y,propertyKeywords:E,nonStandardPropertyKeywords:G,fontProperties:te,counterDescriptors:re,colorKeywords:xe,valueKeywords:Ge,supportsAtComponent:!0,tokenHooks:{"/":function(de,ie){return de.eat("*")?(ie.tokenize=We,We(de,ie)):!1}},name:"css",helperType:"gss"})})}()),Gh.exports}(function(n,e){(function(i){i(gn,SL,TL,kL())})(function(i){var o={script:[["lang",/(javascript|babel)/i,"javascript"],["type",/^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^module$|^$/i,"javascript"],["type",/./,"text/plain"],[null,null,"javascript"]],style:[["lang",/^css$/i,"css"],["type",/^(text\/)?(x-)?(stylesheet|css)$/i,"css"],["type",/./,"text/plain"],[null,null,"css"]]};function l(S,$,E){var N=S.current(),G=N.search($);return G>-1?S.backUp(N.length-G):N.match(/<\/?$/)&&(S.backUp(N.length),S.match($,!1)||S.match(N)),E}var d={};function u(S){var $=d[S];return $||(d[S]=new RegExp("\\s+"+S+`\\s*=\\s*('|")?([^'"]+)('|")?\\s*`))}function v(S,$){var E=S.match(u($));return E?/^\s*(.*?)\s*$/.exec(E[2])[1]:""}function m(S,$){return new RegExp(($?"^":"")+"</s*"+S+"s*>","i")}function y(S,$){for(var E in S)for(var N=$[E]||($[E]=[]),G=S[E],ee=G.length-1;ee>=0;ee--)N.unshift(G[ee])}function T(S,$){for(var E=0;E<S.length;E++){var N=S[E];if(!N[0]||N[1].test(v($,N[0])))return N[2]}}i.defineMode("htmlmixed",function(S,$){var E=i.getMode(S,{name:"xml",htmlMode:!0,multilineTagIndentFactor:$.multilineTagIndentFactor,multilineTagIndentPastTag:$.multilineTagIndentPastTag,allowMissingTagName:$.allowMissingTagName}),N={},G=$&&$.tags,ee=$&&$.scriptTypes;if(y(o,N),G&&y(G,N),ee)for(var te=ee.length-1;te>=0;te--)N.script.unshift(["type",ee[te].matches,ee[te].mode]);function se(re,ue){var xe=E.token(re,ue.htmlState),qe=/\btag\b/.test(xe),Ge;if(qe&&!/[<>\s\/]/.test(re.current())&&(Ge=ue.htmlState.tagName&&ue.htmlState.tagName.toLowerCase())&&N.hasOwnProperty(Ge))ue.inTag=Ge+" ";else if(ue.inTag&&qe&&/>$/.test(re.current())){var Ze=/^([\S]+) (.*)/.exec(ue.inTag);ue.inTag=null;var We=re.current()==">"&&T(N[Ze[1]],Ze[2]),de=i.getMode(S,We),ie=m(Ze[1],!0),Z=m(Ze[1],!1);ue.token=function(k,x){return k.match(ie,!1)?(x.token=se,x.localState=x.localMode=null,null):l(k,Z,x.localMode.token(k,x.localState))},ue.localMode=de,ue.localState=i.startState(de,E.indent(ue.htmlState,"",""))}else ue.inTag&&(ue.inTag+=re.current(),re.eol()&&(ue.inTag+=" "));return xe}return{startState:function(){var re=i.startState(E);return{token:se,inTag:null,localMode:null,localState:null,htmlState:re}},copyState:function(re){var ue;return re.localState&&(ue=i.copyState(re.localMode,re.localState)),{token:re.token,inTag:re.inTag,localMode:re.localMode,localState:ue,htmlState:i.copyState(E,re.htmlState)}},token:function(re,ue){return ue.token(re,ue)},indent:function(re,ue,xe){return!re.localMode||/^\s*<\//.test(ue)?E.indent(re.htmlState,ue,xe):re.localMode.indent?re.localMode.indent(re.localState,ue,xe):i.Pass},innerMode:function(re){return{state:re.localState||re.htmlState,mode:re.localMode||E}}}},"xml","javascript","css"),i.defineMIME("text/html","htmlmixed")})})();(function(n,e){(function(i){i(gn)})(function(i){i.defineMode("solr",function(){var o=/[^\s\|\!\+\-\*\?\~\^\&\:\(\)\[\]\{\}\"\\]/,l=/[\|\!\+\-\*\?\~\^\&]/,d=/^(OR|AND|NOT|TO)$/i;function u(S){return parseFloat(S).toString()===S}function v(S){return function($,E){for(var N=!1,G;(G=$.next())!=null&&!(G==S&&!N);)N=!N&&G=="\\";return N||(E.tokenize=T),"string"}}function m(S){return function($,E){var N="operator";return S=="+"?N+=" positive":S=="-"?N+=" negative":S=="|"?$.eat(/\|/):S=="&"?$.eat(/\&/):S=="^"&&(N+=" boost"),E.tokenize=T,N}}function y(S){return function($,E){for(var N=S;(S=$.peek())&&S.match(o)!=null;)N+=$.next();return E.tokenize=T,d.test(N)?"operator":u(N)?"number":$.peek()==":"?"field":"string"}}function T(S,$){var E=S.next();return E=='"'?$.tokenize=v(E):l.test(E)?$.tokenize=m(E):o.test(E)&&($.tokenize=y(E)),$.tokenize!=T?$.tokenize(S,$):null}return{startState:function(){return{tokenize:T}},token:function(S,$){return S.eatSpace()?null:$.tokenize(S,$)}}}),i.defineMIME("text/x-solr","solr")})})();(function(n,e){(function(i){i(gn)})(function(i){i.defineOption("placeholder","",function(y,T,S){var $=S&&S!=i.Init;if(T&&!$)y.on("blur",u),y.on("change",v),y.on("swapDoc",v),i.on(y.getInputField(),"compositionupdate",y.state.placeholderCompose=function(){d(y)}),v(y);else if(!T&&$){y.off("blur",u),y.off("change",v),y.off("swapDoc",v),i.off(y.getInputField(),"compositionupdate",y.state.placeholderCompose),o(y);var E=y.getWrapperElement();E.className=E.className.replace(" CodeMirror-empty","")}T&&!y.hasFocus()&&u(y)});function o(y){y.state.placeholder&&(y.state.placeholder.parentNode.removeChild(y.state.placeholder),y.state.placeholder=null)}function l(y){o(y);var T=y.state.placeholder=document.createElement("pre");T.style.cssText="height: 0; overflow: visible",T.style.direction=y.getOption("direction"),T.className="CodeMirror-placeholder CodeMirror-line-like";var S=y.getOption("placeholder");typeof S=="string"&&(S=document.createTextNode(S)),T.appendChild(S),y.display.lineSpace.insertBefore(T,y.display.lineSpace.firstChild)}function d(y){setTimeout(function(){var T=!1;if(y.lineCount()==1){var S=y.getInputField();T=S.nodeName=="TEXTAREA"?!y.getLine(0).length:!/[^\u200b]/.test(S.querySelector(".CodeMirror-line").textContent)}T?l(y):o(y)},20)}function u(y){m(y)&&l(y)}function v(y){var T=y.getWrapperElement(),S=m(y);T.className=T.className.replace(" CodeMirror-empty","")+(S?" CodeMirror-empty":""),S?l(y):o(y)}function m(y){return y.lineCount()===1&&y.getLine(0)===""}})})();var $L=Object.defineProperty,OL=Object.getOwnPropertyDescriptor,mo=(n,e,i,o)=>{for(var l=o>1?void 0:o?OL(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&$L(e,i,l),l};ga.defineMode("nunjucks",(n,e)=>ga.overlayMode(ga.getMode(n,e.backdrop||"text/html"),ga.getMode(n,"jinja2")));const Fp=ne("input-code"),EL=["json","nunjucks","javascript","solr"],_L={json:{name:"javascript",json:!0},javascript:"javascript",nunjucks:"nunjucks",solr:"solr"};exports.InputCode=class extends Ut{constructor(){super(...arguments),this.mode="nunjucks",this.size="x-large",this.height=10,this.hideLineNumbers=!1}changeHandler(e){this.value=e.getValue(),this.dispatchChange()}updated(e){var o,l;super.updated(e);const i=this.disabled||this.readonly;this.value!==this.editorValue&&(this.editorValue=this.value||""),i!==((o=this.editor)==null?void 0:o.isReadOnly())&&((l=this.editor)==null||l.setOption("readOnly",this.disabled?"nocursor":this.readonly)),setTimeout(()=>{var d;return(d=this.editor)==null?void 0:d.refresh()})}get editorValue(){var e;return((e=this.editor)==null?void 0:e.getDoc().getValue())||""}set editorValue(e){var i;(i=this.editor)==null||i.setValue(e)}firstUpdated(){var i;const e=(i=this.shadowRoot)==null?void 0:i.querySelector(".editor");e&&(this.editor=ga.fromTextArea(e,{mode:_L[this.mode],value:this.value,lineNumbers:!this.hideLineNumbers,readOnly:this.disabled?"nocursor":this.readonly,smartIndent:!0,theme:"skedulo"}),this.editor.setSize("100%",`${24*this.height}px`),this.editor.setOption("extraKeys",{Tab:o=>{const l=Array((o.getOption("indentUnit")||0)+1).join(" ");o.replaceSelection(l)}}),this.editor.on("change",this.changeHandler.bind(this)),setTimeout(()=>{var o;return(o=this.editor)==null?void 0:o.refresh()}))}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this.editor)==null||e.off("change",this.changeHandler)}renderInput(){return P`
3078
+ `;(function(n,e){(function(i){i(gn())})(function(i){i.overlayMode=function(o,l,d){return{startState:function(){return{base:i.startState(o),overlay:i.startState(l),basePos:0,baseCur:null,overlayPos:0,overlayCur:null,streamSeen:null}},copyState:function(u){return{base:i.copyState(o,u.base),overlay:i.copyState(l,u.overlay),basePos:u.basePos,baseCur:null,overlayPos:u.overlayPos,overlayCur:null}},token:function(u,v){return(u!=v.streamSeen||Math.min(v.basePos,v.overlayPos)<u.start)&&(v.streamSeen=u,v.basePos=v.overlayPos=u.start),u.start==v.basePos&&(v.baseCur=o.token(u,v.base),v.basePos=u.pos),u.start==v.overlayPos&&(u.pos=u.start,v.overlayCur=l.token(u,v.overlay),v.overlayPos=u.pos),u.pos=Math.min(v.basePos,v.overlayPos),v.overlayCur==null?v.baseCur:v.baseCur!=null&&v.overlay.combineTokens||d&&v.overlay.combineTokens==null?v.baseCur+" "+v.overlayCur:v.overlayCur},indent:o.indent&&function(u,v,m){return o.indent(u.base,v,m)},electricChars:o.electricChars,innerMode:function(u){return{state:u.base,mode:o}},blankLine:function(u){var v,m;return o.blankLine&&(v=o.blankLine(u.base)),l.blankLine&&(m=l.blankLine(u.overlay)),m==null?v:d&&v!=null?v+" "+m:m}}}})})();(function(n,e){(function(i){i(gn())})(function(i){i.defineMode("jinja2",function(){var o=["and","as","block","endblock","by","cycle","debug","else","elif","extends","filter","endfilter","firstof","for","endfor","if","endif","ifchanged","endifchanged","ifequal","endifequal","ifnotequal","endifnotequal","in","include","load","not","now","or","parsed","regroup","reversed","spaceless","endspaceless","ssi","templatetag","openblock","closeblock","openvariable","closevariable","openbrace","closebrace","opencomment","closecomment","widthratio","url","with","endwith","get_current_language","trans","endtrans","noop","blocktrans","endblocktrans","get_available_languages","get_current_language_bidi","plural"],l=/^[+\-*&%=<>!?|~^]/,d=/^[:\[\(\{]/,u=["true","false"],v=/^(\d[+\-\*\/])?\d+(\.\d+)?/;o=new RegExp("(("+o.join(")|(")+"))\\b"),u=new RegExp("(("+u.join(")|(")+"))\\b");function m(y,T){var S=y.peek();if(T.incomment)return y.skipTo("#}")?(y.eatWhile(/\#|}/),T.incomment=!1):y.skipToEnd(),"comment";if(T.intag){if(T.operator){if(T.operator=!1,y.match(u))return"atom";if(y.match(v))return"number"}if(T.sign){if(T.sign=!1,y.match(u))return"atom";if(y.match(v))return"number"}if(T.instring)return S==T.instring&&(T.instring=!1),y.next(),"string";if(S=="'"||S=='"')return T.instring=S,y.next(),"string";if(y.match(T.intag+"}")||y.eat("-")&&y.match(T.intag+"}"))return T.intag=!1,"tag";if(y.match(l))return T.operator=!0,"operator";if(y.match(d))T.sign=!0;else if(y.eat(" ")||y.sol()){if(y.match(o))return"keyword";if(y.match(u))return"atom";if(y.match(v))return"number";y.sol()&&y.next()}else y.next();return"variable"}else if(y.eat("{")){if(y.eat("#"))return T.incomment=!0,y.skipTo("#}")?(y.eatWhile(/\#|}/),T.incomment=!1):y.skipToEnd(),"comment";if(S=y.eat(/\{|%/))return T.intag=S,S=="{"&&(T.intag="}"),y.eat("-"),"tag"}y.next()}return{startState:function(){return{tokenize:m}},token:function(y,T){return T.tokenize(y,T)},blockCommentStart:"{#",blockCommentEnd:"#}"}}),i.defineMIME("text/jinja2","jinja2")})})();var $L={exports:{}};(function(n,e){(function(i){i(gn())})(function(i){var o={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},l={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};i.defineMode("xml",function(d,u){var v=d.indentUnit,m={},y=u.htmlMode?o:l;for(var T in y)m[T]=y[T];for(var T in u)m[T]=u[T];var S,$;function E(x,z){function B(Me){return z.tokenize=Me,Me(x,z)}var X=x.next();if(X=="<")return x.eat("!")?x.eat("[")?x.match("CDATA[")?B(ee("atom","]]>")):null:x.match("--")?B(ee("comment","-->")):x.match("DOCTYPE",!0,!0)?(x.eatWhile(/[\w\._\-]/),B(te(1))):null:x.eat("?")?(x.eatWhile(/[\w\._\-]/),z.tokenize=ee("meta","?>"),"meta"):(S=x.eat("/")?"closeTag":"openTag",z.tokenize=N,"tag bracket");if(X=="&"){var be;return x.eat("#")?x.eat("x")?be=x.eatWhile(/[a-fA-F\d]/)&&x.eat(";"):be=x.eatWhile(/[\d]/)&&x.eat(";"):be=x.eatWhile(/[\w\.\-:]/)&&x.eat(";"),be?"atom":"error"}else return x.eatWhile(/[^&<]/),null}E.isInText=!0;function N(x,z){var B=x.next();if(B==">"||B=="/"&&x.eat(">"))return z.tokenize=E,S=B==">"?"endTag":"selfcloseTag","tag bracket";if(B=="=")return S="equals",null;if(B=="<"){z.tokenize=E,z.state=xe,z.tagName=z.tagStart=null;var X=z.tokenize(x,z);return X?X+" tag error":"tag error"}else return/[\'\"]/.test(B)?(z.tokenize=G(B),z.stringStartCol=x.column(),z.tokenize(x,z)):(x.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function G(x){var z=function(B,X){for(;!B.eol();)if(B.next()==x){X.tokenize=N;break}return"string"};return z.isInAttribute=!0,z}function ee(x,z){return function(B,X){for(;!B.eol();){if(B.match(z)){X.tokenize=E;break}B.next()}return x}}function te(x){return function(z,B){for(var X;(X=z.next())!=null;){if(X=="<")return B.tokenize=te(x+1),B.tokenize(z,B);if(X==">")if(x==1){B.tokenize=E;break}else return B.tokenize=te(x-1),B.tokenize(z,B)}return"meta"}}function se(x,z,B){this.prev=x.context,this.tagName=z||"",this.indent=x.indented,this.startOfLine=B,(m.doNotIndent.hasOwnProperty(z)||x.context&&x.context.noIndent)&&(this.noIndent=!0)}function re(x){x.context&&(x.context=x.context.prev)}function ue(x,z){for(var B;;){if(!x.context||(B=x.context.tagName,!m.contextGrabbers.hasOwnProperty(B)||!m.contextGrabbers[B].hasOwnProperty(z)))return;re(x)}}function xe(x,z,B){return x=="openTag"?(B.tagStart=z.column(),qe):x=="closeTag"?Ge:xe}function qe(x,z,B){return x=="word"?(B.tagName=z.current(),$="tag",de):m.allowMissingTagName&&x=="endTag"?($="tag bracket",de(x,z,B)):($="error",qe)}function Ge(x,z,B){if(x=="word"){var X=z.current();return B.context&&B.context.tagName!=X&&m.implicitlyClosed.hasOwnProperty(B.context.tagName)&&re(B),B.context&&B.context.tagName==X||m.matchClosing===!1?($="tag",Ze):($="tag error",We)}else return m.allowMissingTagName&&x=="endTag"?($="tag bracket",Ze(x,z,B)):($="error",We)}function Ze(x,z,B){return x!="endTag"?($="error",Ze):(re(B),xe)}function We(x,z,B){return $="error",Ze(x,z,B)}function de(x,z,B){if(x=="word")return $="attribute",ie;if(x=="endTag"||x=="selfcloseTag"){var X=B.tagName,be=B.tagStart;return B.tagName=B.tagStart=null,x=="selfcloseTag"||m.autoSelfClosers.hasOwnProperty(X)?ue(B,X):(ue(B,X),B.context=new se(B,X,be==B.indented)),xe}return $="error",de}function ie(x,z,B){return x=="equals"?Z:(m.allowMissing||($="error"),de(x,z,B))}function Z(x,z,B){return x=="string"?k:x=="word"&&m.allowUnquoted?($="string",de):($="error",de(x,z,B))}function k(x,z,B){return x=="string"?k:de(x,z,B)}return{startState:function(x){var z={tokenize:E,state:xe,indented:x||0,tagName:null,tagStart:null,context:null};return x!=null&&(z.baseIndent=x),z},token:function(x,z){if(!z.tagName&&x.sol()&&(z.indented=x.indentation()),x.eatSpace())return null;S=null;var B=z.tokenize(x,z);return(B||S)&&B!="comment"&&($=null,z.state=z.state(S||B,x,z),$&&(B=$=="error"?B+" error":$)),B},indent:function(x,z,B){var X=x.context;if(x.tokenize.isInAttribute)return x.tagStart==x.indented?x.stringStartCol+1:x.indented+v;if(X&&X.noIndent)return i.Pass;if(x.tokenize!=N&&x.tokenize!=E)return B?B.match(/^(\s*)/)[0].length:0;if(x.tagName)return m.multilineTagIndentPastTag!==!1?x.tagStart+x.tagName.length+2:x.tagStart+v*(m.multilineTagIndentFactor||1);if(m.alignCDATA&&/<!\[CDATA\[/.test(z))return 0;var be=z&&/^<(\/)?([\w_:\.-]*)/.exec(z);if(be&&be[1])for(;X;)if(X.tagName==be[2]){X=X.prev;break}else if(m.implicitlyClosed.hasOwnProperty(X.tagName))X=X.prev;else break;else if(be)for(;X;){var Me=m.contextGrabbers[X.tagName];if(Me&&Me.hasOwnProperty(be[2]))X=X.prev;else break}for(;X&&X.prev&&!X.startOfLine;)X=X.prev;return X?X.indent+v:x.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:m.htmlMode?"html":"xml",helperType:m.htmlMode?"html":"xml",skipAttribute:function(x){x.state==Z&&(x.state=de)},xmlCurrentTag:function(x){return x.tagName?{name:x.tagName,close:x.type=="closeTag"}:null},xmlCurrentContext:function(x){for(var z=[],B=x.context;B;B=B.prev)z.push(B.tagName);return z.reverse()}}}),i.defineMIME("text/xml","xml"),i.defineMIME("application/xml","xml"),i.mimeModes.hasOwnProperty("text/html")||i.defineMIME("text/html",{name:"xml",htmlMode:!0})})})();var OL=$L.exports,Kh={exports:{}},Yh;function Zp(){return Yh||(Yh=1,function(n,e){(function(i){i(gn())})(function(i){i.defineMode("javascript",function(o,l){var d=o.indentUnit,u=l.statementIndent,v=l.jsonld,m=l.json||v,y=l.trackScope!==!1,T=l.typescript,S=l.wordCharacters||/[\w$\xa1-\uffff]/,$=function(){function C(Ot){return{type:Ot,style:"keyword"}}var M=C("keyword a"),V=C("keyword b"),q=C("keyword c"),Le=C("keyword d"),Ae=C("operator"),oe={type:"atom",style:"atom"};return{if:C("if"),while:M,with:M,else:V,do:V,try:V,finally:V,return:Le,break:Le,continue:Le,new:C("new"),delete:q,void:q,throw:q,debugger:C("debugger"),var:C("var"),const:C("var"),let:C("var"),function:C("function"),catch:C("catch"),for:C("for"),switch:C("switch"),case:C("case"),default:C("default"),in:Ae,typeof:Ae,instanceof:Ae,true:oe,false:oe,null:oe,undefined:oe,NaN:oe,Infinity:oe,this:C("this"),class:C("class"),super:C("atom"),yield:q,export:C("export"),import:C("import"),extends:q,await:q}}(),E=/[+\-*&%=<>!?|~^@]/,N=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function G(C){for(var M=!1,V,q=!1;(V=C.next())!=null;){if(!M){if(V=="/"&&!q)return;V=="["?q=!0:q&&V=="]"&&(q=!1)}M=!M&&V=="\\"}}var ee,te;function se(C,M,V){return ee=C,te=V,M}function re(C,M){var V=C.next();if(V=='"'||V=="'")return M.tokenize=ue(V),M.tokenize(C,M);if(V=="."&&C.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return se("number","number");if(V=="."&&C.match(".."))return se("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(V))return se(V);if(V=="="&&C.eat(">"))return se("=>","operator");if(V=="0"&&C.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return se("number","number");if(/\d/.test(V))return C.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),se("number","number");if(V=="/")return C.eat("*")?(M.tokenize=xe,xe(C,M)):C.eat("/")?(C.skipToEnd(),se("comment","comment")):U(C,M,1)?(G(C),C.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),se("regexp","string-2")):(C.eat("="),se("operator","operator",C.current()));if(V=="`")return M.tokenize=qe,qe(C,M);if(V=="#"&&C.peek()=="!")return C.skipToEnd(),se("meta","meta");if(V=="#"&&C.eatWhile(S))return se("variable","property");if(V=="<"&&C.match("!--")||V=="-"&&C.match("->")&&!/\S/.test(C.string.slice(0,C.start)))return C.skipToEnd(),se("comment","comment");if(E.test(V))return(V!=">"||!M.lexical||M.lexical.type!=">")&&(C.eat("=")?(V=="!"||V=="=")&&C.eat("="):/[<>*+\-|&?]/.test(V)&&(C.eat(V),V==">"&&C.eat(V))),V=="?"&&C.eat(".")?se("."):se("operator","operator",C.current());if(S.test(V)){C.eatWhile(S);var q=C.current();if(M.lastType!="."){if($.propertyIsEnumerable(q)){var Le=$[q];return se(Le.type,Le.style,q)}if(q=="async"&&C.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return se("async","keyword",q)}return se("variable","variable",q)}}function ue(C){return function(M,V){var q=!1,Le;if(v&&M.peek()=="@"&&M.match(N))return V.tokenize=re,se("jsonld-keyword","meta");for(;(Le=M.next())!=null&&!(Le==C&&!q);)q=!q&&Le=="\\";return q||(V.tokenize=re),se("string","string")}}function xe(C,M){for(var V=!1,q;q=C.next();){if(q=="/"&&V){M.tokenize=re;break}V=q=="*"}return se("comment","comment")}function qe(C,M){for(var V=!1,q;(q=C.next())!=null;){if(!V&&(q=="`"||q=="$"&&C.eat("{"))){M.tokenize=re;break}V=!V&&q=="\\"}return se("quasi","string-2",C.current())}var Ge="([{}])";function Ze(C,M){M.fatArrowAt&&(M.fatArrowAt=null);var V=C.string.indexOf("=>",C.start);if(!(V<0)){if(T){var q=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(C.string.slice(C.start,V));q&&(V=q.index)}for(var Le=0,Ae=!1,oe=V-1;oe>=0;--oe){var Ot=C.string.charAt(oe),or=Ge.indexOf(Ot);if(or>=0&&or<3){if(!Le){++oe;break}if(--Le==0){Ot=="("&&(Ae=!0);break}}else if(or>=3&&or<6)++Le;else if(S.test(Ot))Ae=!0;else if(/["'\/`]/.test(Ot))for(;;--oe){if(oe==0)return;var $i=C.string.charAt(oe-1);if($i==Ot&&C.string.charAt(oe-2)!="\\"){oe--;break}}else if(Ae&&!Le){++oe;break}}Ae&&!Le&&(M.fatArrowAt=oe)}}var We={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function de(C,M,V,q,Le,Ae){this.indented=C,this.column=M,this.type=V,this.prev=Le,this.info=Ae,q!=null&&(this.align=q)}function ie(C,M){if(!y)return!1;for(var V=C.localVars;V;V=V.next)if(V.name==M)return!0;for(var q=C.context;q;q=q.prev)for(var V=q.vars;V;V=V.next)if(V.name==M)return!0}function Z(C,M,V,q,Le){var Ae=C.cc;for(k.state=C,k.stream=Le,k.marked=null,k.cc=Ae,k.style=M,C.lexical.hasOwnProperty("align")||(C.lexical.align=!0);;){var oe=Ae.length?Ae.pop():m?Se:Pe;if(oe(V,q)){for(;Ae.length&&Ae[Ae.length-1].lex;)Ae.pop()();return k.marked?k.marked:V=="variable"&&ie(C,q)?"variable-2":M}}}var k={state:null,column:null,marked:null,cc:null};function x(){for(var C=arguments.length-1;C>=0;C--)k.cc.push(arguments[C])}function z(){return x.apply(null,arguments),!0}function B(C,M){for(var V=M;V;V=V.next)if(V.name==C)return!0;return!1}function X(C){var M=k.state;if(k.marked="def",!!y){if(M.context){if(M.lexical.info=="var"&&M.context&&M.context.block){var V=be(C,M.context);if(V!=null){M.context=V;return}}else if(!B(C,M.localVars)){M.localVars=new lt(C,M.localVars);return}}l.globalVars&&!B(C,M.globalVars)&&(M.globalVars=new lt(C,M.globalVars))}}function be(C,M){if(M)if(M.block){var V=be(C,M.prev);return V?V==M.prev?M:new Be(V,M.vars,!0):null}else return B(C,M.vars)?M:new Be(M.prev,new lt(C,M.vars),!1);else return null}function Me(C){return C=="public"||C=="private"||C=="protected"||C=="abstract"||C=="readonly"}function Be(C,M,V){this.prev=C,this.vars=M,this.block=V}function lt(C,M){this.name=C,this.next=M}var Qt=new lt("this",new lt("arguments",null));function Xe(){k.state.context=new Be(k.state.context,k.state.localVars,!1),k.state.localVars=Qt}function Je(){k.state.context=new Be(k.state.context,k.state.localVars,!0),k.state.localVars=null}function Ue(){k.state.localVars=k.state.context.vars,k.state.context=k.state.context.prev}Ue.lex=!0;function fe(C,M){var V=function(){var q=k.state,Le=q.indented;if(q.lexical.type=="stat")Le=q.lexical.indented;else for(var Ae=q.lexical;Ae&&Ae.type==")"&&Ae.align;Ae=Ae.prev)Le=Ae.indented;q.lexical=new de(Le,k.stream.column(),C,null,q.lexical,M)};return V.lex=!0,V}function we(){var C=k.state;C.lexical.prev&&(C.lexical.type==")"&&(C.indented=C.lexical.indented),C.lexical=C.lexical.prev)}we.lex=!0;function $e(C){function M(V){return V==C?z():C==";"||V=="}"||V==")"||V=="]"?x():z(M)}return M}function Pe(C,M){return C=="var"?z(fe("vardef",M),Lo,$e(";"),we):C=="keyword a"?z(fe("form"),br,Pe,we):C=="keyword b"?z(fe("form"),Pe,we):C=="keyword d"?k.stream.match(/^\s*$/,!1)?z():z(fe("stat"),Oe,$e(";"),we):C=="debugger"?z($e(";")):C=="{"?z(fe("}"),Je,jt,we,Ue):C==";"?z():C=="if"?(k.state.lexical.info=="else"&&k.state.cc[k.state.cc.length-1]==we&&k.state.cc.pop()(),z(fe("form"),br,Pe,we,Ga)):C=="function"?z(dr):C=="for"?z(fe("form"),Je,qa,Pe,Ue,we):C=="class"||T&&M=="interface"?(k.marked="keyword",z(fe("form",C=="class"?C:M),ki,we)):C=="variable"?T&&M=="declare"?(k.marked="keyword",z(Pe)):T&&(M=="module"||M=="enum"||M=="type")&&k.stream.match(/^\s*\w/,!1)?(k.marked="keyword",M=="enum"?z(Hr):M=="type"?z(Ka,$e("operator"),ze,$e(";")):z(fe("form"),Ht,$e("{"),fe("}"),jt,we,we)):T&&M=="namespace"?(k.marked="keyword",z(fe("form"),Se,Pe,we)):T&&M=="abstract"?(k.marked="keyword",z(Pe)):z(fe("stat"),_e):C=="switch"?z(fe("form"),br,$e("{"),fe("}","switch"),Je,jt,we,we,Ue):C=="case"?z(Se,$e(":")):C=="default"?z($e(":")):C=="catch"?z(fe("form"),Xe,Ee,Pe,we,Ue):C=="export"?z(fe("stat"),ko,we):C=="import"?z(fe("stat"),it,we):C=="async"?z(Pe):M=="@"?z(Se,Pe):x(fe("stat"),Se,$e(";"),we)}function Ee(C){if(C=="(")return z(Jr,$e(")"))}function Se(C,M){return bn(C,M,!1)}function bt(C,M){return bn(C,M,!0)}function br(C){return C!="("?x():z(fe(")"),Oe,$e(")"),we)}function bn(C,M,V){if(k.state.fatArrowAt==k.stream.start){var q=V?Ke:Bn;if(C=="(")return z(Xe,fe(")"),nt(Jr,")"),we,$e("=>"),q,Ue);if(C=="variable")return x(Xe,Ht,$e("=>"),q,Ue)}var Le=V?mt:He;return We.hasOwnProperty(C)?z(Le):C=="function"?z(dr,Le):C=="class"||T&&M=="interface"?(k.marked="keyword",z(fe("form"),Ti,we)):C=="keyword c"||C=="async"?z(V?bt:Se):C=="("?z(fe(")"),Oe,$e(")"),we,Le):C=="operator"||C=="spread"?z(V?bt:Se):C=="["?z(fe("]"),Re,we,Le):C=="{"?Vn(Ar,"}",null,Le):C=="quasi"?x(er,Le):C=="new"?z(A(V)):z()}function Oe(C){return C.match(/[;\}\)\],]/)?x():x(Se)}function He(C,M){return C==","?z(Oe):mt(C,M,!1)}function mt(C,M,V){var q=V==!1?He:mt,Le=V==!1?Se:bt;if(C=="=>")return z(Xe,V?Ke:Bn,Ue);if(C=="operator")return/\+\+|--/.test(M)||T&&M=="!"?z(q):T&&M=="<"&&k.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?z(fe(">"),nt(ze,">"),we,q):M=="?"?z(Se,$e(":"),Le):z(Le);if(C=="quasi")return x(er,q);if(C!=";"){if(C=="(")return Vn(bt,")","call",q);if(C==".")return z(It,q);if(C=="[")return z(fe("]"),Oe,$e("]"),we,q);if(T&&M=="as")return k.marked="keyword",z(ze,q);if(C=="regexp")return k.state.lastType=k.marked="operator",k.stream.backUp(k.stream.pos-k.stream.start-1),z(Le)}}function er(C,M){return C!="quasi"?x():M.slice(M.length-2)!="${"?z(er):z(Oe,ur)}function ur(C){if(C=="}")return k.marked="string-2",k.state.tokenize=qe,z(er)}function Bn(C){return Ze(k.stream,k.state),x(C=="{"?Pe:Se)}function Ke(C){return Ze(k.stream,k.state),x(C=="{"?Pe:bt)}function A(C){return function(M){return M=="."?z(C?F:Y):M=="variable"&&T?z(Zn,C?mt:He):x(C?bt:Se)}}function Y(C,M){if(M=="target")return k.marked="keyword",z(He)}function F(C,M){if(M=="target")return k.marked="keyword",z(mt)}function _e(C){return C==":"?z(we,Pe):x(He,$e(";"),we)}function It(C){if(C=="variable")return k.marked="property",z()}function Ar(C,M){if(C=="async")return k.marked="property",z(Ar);if(C=="variable"||k.style=="keyword"){if(k.marked="property",M=="get"||M=="set")return z(Kl);var V;return T&&k.state.fatArrowAt==k.stream.start&&(V=k.stream.match(/^\s*:\s*/,!1))&&(k.state.fatArrowAt=k.stream.pos+V[0].length),z(tr)}else{if(C=="number"||C=="string")return k.marked=v?"property":k.style+" property",z(tr);if(C=="jsonld-keyword")return z(tr);if(T&&Me(M))return k.marked="keyword",z(Ar);if(C=="[")return z(Se,Xr,$e("]"),tr);if(C=="spread")return z(bt,tr);if(M=="*")return k.marked="keyword",z(Ar);if(C==":")return x(tr)}}function Kl(C){return C!="variable"?x(tr):(k.marked="property",z(dr))}function tr(C){if(C==":")return z(bt);if(C=="(")return x(dr)}function nt(C,M,V){function q(Le,Ae){if(V?V.indexOf(Le)>-1:Le==","){var oe=k.state.lexical;return oe.info=="call"&&(oe.pos=(oe.pos||0)+1),z(function(Ot,or){return Ot==M||or==M?x():x(C)},q)}return Le==M||Ae==M?z():V&&V.indexOf(";")>-1?x(C):z($e(M))}return function(Le,Ae){return Le==M||Ae==M?z():x(C,q)}}function Vn(C,M,V){for(var q=3;q<arguments.length;q++)k.cc.push(arguments[q]);return z(fe(M,V),nt(C,M),we)}function jt(C){return C=="}"?z():x(Pe,jt)}function Xr(C,M){if(T){if(C==":")return z(ze);if(M=="?")return z(Xr)}}function Ce(C,M){if(T&&(C==":"||M=="in"))return z(ze)}function Li(C){if(T&&C==":")return k.stream.match(/^\s*\w+\s+is\b/,!1)?z(Se,Nt,ze):z(ze)}function Nt(C,M){if(M=="is")return k.marked="keyword",z()}function ze(C,M){if(M=="keyof"||M=="typeof"||M=="infer"||M=="readonly")return k.marked="keyword",z(M=="typeof"?bt:ze);if(C=="variable"||M=="void")return k.marked="type",z(rr);if(M=="|"||M=="&")return z(ze);if(C=="string"||C=="number"||C=="atom")return z(rr);if(C=="[")return z(fe("]"),nt(ze,"]",","),we,rr);if(C=="{")return z(fe("}"),Si,we,rr);if(C=="(")return z(nt(Mi,")"),ct,rr);if(C=="<")return z(nt(ze,">"),ze);if(C=="quasi")return x(Pr,rr)}function ct(C){if(C=="=>")return z(ze)}function Si(C){return C.match(/[\}\)\]]/)?z():C==","||C==";"?z(Si):x(St,Si)}function St(C,M){if(C=="variable"||k.style=="keyword")return k.marked="property",z(St);if(M=="?"||C=="number"||C=="string")return z(St);if(C==":")return z(ze);if(C=="[")return z($e("variable"),Ce,$e("]"),St);if(C=="(")return x(nr,St);if(!C.match(/[;\}\)\],]/))return z()}function Pr(C,M){return C!="quasi"?x():M.slice(M.length-2)!="${"?z(Pr):z(ze,$t)}function $t(C){if(C=="}")return k.marked="string-2",k.state.tokenize=qe,z(Pr)}function Mi(C,M){return C=="variable"&&k.stream.match(/^\s*[?:]/,!1)||M=="?"?z(Mi):C==":"?z(ze):C=="spread"?z(Mi):x(ze)}function rr(C,M){if(M=="<")return z(fe(">"),nt(ze,">"),we,rr);if(M=="|"||C=="."||M=="&")return z(ze);if(C=="[")return z(ze,$e("]"),rr);if(M=="extends"||M=="implements")return k.marked="keyword",z(ze);if(M=="?")return z(ze,$e(":"),ze)}function Zn(C,M){if(M=="<")return z(fe(">"),nt(ze,">"),we,rr)}function mn(){return x(ze,Ua)}function Ua(C,M){if(M=="=")return z(ze)}function Lo(C,M){return M=="enum"?(k.marked="keyword",z(Hr)):x(Ht,Xr,Dr,Mo)}function Ht(C,M){if(T&&Me(M))return k.marked="keyword",z(Ht);if(C=="variable")return X(M),z();if(C=="spread")return z(Ht);if(C=="[")return Vn(So,"]");if(C=="{")return Vn(ja,"}")}function ja(C,M){return C=="variable"&&!k.stream.match(/^\s*:/,!1)?(X(M),z(Dr)):(C=="variable"&&(k.marked="property"),C=="spread"?z(Ht):C=="}"?x():C=="["?z(Se,$e("]"),$e(":"),ja):z($e(":"),Ht,Dr))}function So(){return x(Ht,Dr)}function Dr(C,M){if(M=="=")return z(bt)}function Mo(C){if(C==",")return z(Lo)}function Ga(C,M){if(C=="keyword b"&&M=="else")return z(fe("form","else"),Pe,we)}function qa(C,M){if(M=="await")return z(qa);if(C=="(")return z(fe(")"),To,we)}function To(C){return C=="var"?z(Lo,yn):C=="variable"?z(yn):x(yn)}function yn(C,M){return C==")"?z():C==";"?z(yn):M=="in"||M=="of"?(k.marked="keyword",z(Se,yn)):x(Se,yn)}function dr(C,M){if(M=="*")return k.marked="keyword",z(dr);if(C=="variable")return X(M),z(dr);if(C=="(")return z(Xe,fe(")"),nt(Jr,")"),we,Li,Pe,Ue);if(T&&M=="<")return z(fe(">"),nt(mn,">"),we,dr)}function nr(C,M){if(M=="*")return k.marked="keyword",z(nr);if(C=="variable")return X(M),z(nr);if(C=="(")return z(Xe,fe(")"),nt(Jr,")"),we,Li,Ue);if(T&&M=="<")return z(fe(">"),nt(mn,">"),we,nr)}function Ka(C,M){if(C=="keyword"||C=="variable")return k.marked="type",z(Ka);if(M=="<")return z(fe(">"),nt(mn,">"),we)}function Jr(C,M){return M=="@"&&z(Se,Jr),C=="spread"?z(Jr):T&&Me(M)?(k.marked="keyword",z(Jr)):T&&C=="this"?z(Xr,Dr):x(Ht,Xr,Dr)}function Ti(C,M){return C=="variable"?ki(C,M):mr(C,M)}function ki(C,M){if(C=="variable")return X(M),z(mr)}function mr(C,M){if(M=="<")return z(fe(">"),nt(mn,">"),we,mr);if(M=="extends"||M=="implements"||T&&C==",")return M=="implements"&&(k.marked="keyword"),z(T?ze:Se,mr);if(C=="{")return z(fe("}"),yr,we)}function yr(C,M){if(C=="async"||C=="variable"&&(M=="static"||M=="get"||M=="set"||T&&Me(M))&&k.stream.match(/^\s+[\w$\xa1-\uffff]/,!1))return k.marked="keyword",z(yr);if(C=="variable"||k.style=="keyword")return k.marked="property",z(ir,yr);if(C=="number"||C=="string")return z(ir,yr);if(C=="[")return z(Se,Xr,$e("]"),ir,yr);if(M=="*")return k.marked="keyword",z(yr);if(T&&C=="(")return x(nr,yr);if(C==";"||C==",")return z(yr);if(C=="}")return z();if(M=="@")return z(Se,yr)}function ir(C,M){if(M=="!"||M=="?")return z(ir);if(C==":")return z(ze,Dr);if(M=="=")return z(bt);var V=k.state.lexical.prev,q=V&&V.info=="interface";return x(q?nr:dr)}function ko(C,M){return M=="*"?(k.marked="keyword",z(Gt,$e(";"))):M=="default"?(k.marked="keyword",z(Se,$e(";"))):C=="{"?z(nt($o,"}"),Gt,$e(";")):x(Pe)}function $o(C,M){if(M=="as")return k.marked="keyword",z($e("variable"));if(C=="variable")return x(bt,$o)}function it(C){return C=="string"?z():C=="("?x(Se):C=="."?x(He):x(he,Nr,Gt)}function he(C,M){return C=="{"?Vn(he,"}"):(C=="variable"&&X(M),M=="*"&&(k.marked="keyword"),z(Oo))}function Nr(C){if(C==",")return z(he,Nr)}function Oo(C,M){if(M=="as")return k.marked="keyword",z(he)}function Gt(C,M){if(M=="from")return k.marked="keyword",z(Se)}function Re(C){return C=="]"?z():x(nt(bt,"]"))}function Hr(){return x(fe("form"),Ht,$e("{"),fe("}"),nt(Wn,"}"),we,we)}function Wn(){return x(Ht,Dr)}function Eo(C,M){return C.lastType=="operator"||C.lastType==","||E.test(M.charAt(0))||/[,.]/.test(M.charAt(0))}function U(C,M,V){return M.tokenize==re&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(M.lastType)||M.lastType=="quasi"&&/\{\s*$/.test(C.string.slice(0,C.pos-(V||0)))}return{startState:function(C){var M={tokenize:re,lastType:"sof",cc:[],lexical:new de((C||0)-d,0,"block",!1),localVars:l.localVars,context:l.localVars&&new Be(null,null,!1),indented:C||0};return l.globalVars&&typeof l.globalVars=="object"&&(M.globalVars=l.globalVars),M},token:function(C,M){if(C.sol()&&(M.lexical.hasOwnProperty("align")||(M.lexical.align=!1),M.indented=C.indentation(),Ze(C,M)),M.tokenize!=xe&&C.eatSpace())return null;var V=M.tokenize(C,M);return ee=="comment"?V:(M.lastType=ee=="operator"&&(te=="++"||te=="--")?"incdec":ee,Z(M,V,ee,te,C))},indent:function(C,M){if(C.tokenize==xe||C.tokenize==qe)return i.Pass;if(C.tokenize!=re)return 0;var V=M&&M.charAt(0),q=C.lexical,Le;if(!/^\s*else\b/.test(M))for(var Ae=C.cc.length-1;Ae>=0;--Ae){var oe=C.cc[Ae];if(oe==we)q=q.prev;else if(oe!=Ga&&oe!=Ue)break}for(;(q.type=="stat"||q.type=="form")&&(V=="}"||(Le=C.cc[C.cc.length-1])&&(Le==He||Le==mt)&&!/^[,\.=+\-*:?[\(]/.test(M));)q=q.prev;u&&q.type==")"&&q.prev.type=="stat"&&(q=q.prev);var Ot=q.type,or=V==Ot;return Ot=="vardef"?q.indented+(C.lastType=="operator"||C.lastType==","?q.info.length+1:0):Ot=="form"&&V=="{"?q.indented:Ot=="form"?q.indented+d:Ot=="stat"?q.indented+(Eo(C,M)?u||d:0):q.info=="switch"&&!or&&l.doubleIndentSwitch!=!1?q.indented+(/^(?:case|default)\b/.test(M)?d:2*d):q.align?q.column+(or?0:1):q.indented+(or?0:d)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:m?null:"/*",blockCommentEnd:m?null:"*/",blockCommentContinue:m?null:" * ",lineComment:m?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:m?"json":"javascript",jsonldMode:v,jsonMode:m,expressionAllowed:U,skipExpression:function(C){Z(C,"atom","atom","true",new i.StringStream("",2,null))}}}),i.registerHelper("wordChars","javascript",/[\w$]/),i.defineMIME("text/javascript","javascript"),i.defineMIME("text/ecmascript","javascript"),i.defineMIME("application/javascript","javascript"),i.defineMIME("application/x-javascript","javascript"),i.defineMIME("application/ecmascript","javascript"),i.defineMIME("application/json",{name:"javascript",json:!0}),i.defineMIME("application/x-json",{name:"javascript",json:!0}),i.defineMIME("application/manifest+json",{name:"javascript",json:!0}),i.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),i.defineMIME("text/typescript",{name:"javascript",typescript:!0}),i.defineMIME("application/typescript",{name:"javascript",typescript:!0})})}()),Kh.exports}Zp();var Xh={exports:{}},Jh;function EL(){return Jh||(Jh=1,function(n,e){(function(i){i(gn())})(function(i){i.defineMode("css",function(de,ie){var Z=ie.inline;ie.propertyKeywords||(ie=i.resolveMode("text/css"));var k=de.indentUnit,x=ie.tokenHooks,z=ie.documentTypes||{},B=ie.mediaTypes||{},X=ie.mediaFeatures||{},be=ie.mediaValueKeywords||{},Me=ie.propertyKeywords||{},Be=ie.nonStandardPropertyKeywords||{},lt=ie.fontProperties||{},Qt=ie.counterDescriptors||{},Xe=ie.colorKeywords||{},Je=ie.valueKeywords||{},Ue=ie.allowNested,fe=ie.lineComment,we=ie.supportsAtComponent===!0,$e=de.highlightNonStandardPropertyKeywords!==!1,Pe,Ee;function Se(A,Y){return Pe=Y,A}function bt(A,Y){var F=A.next();if(x[F]){var _e=x[F](A,Y);if(_e!==!1)return _e}if(F=="@")return A.eatWhile(/[\w\\\-]/),Se("def",A.current());if(F=="="||(F=="~"||F=="|")&&A.eat("="))return Se(null,"compare");if(F=='"'||F=="'")return Y.tokenize=br(F),Y.tokenize(A,Y);if(F=="#")return A.eatWhile(/[\w\\\-]/),Se("atom","hash");if(F=="!")return A.match(/^\s*\w*/),Se("keyword","important");if(/\d/.test(F)||F=="."&&A.eat(/\d/))return A.eatWhile(/[\w.%]/),Se("number","unit");if(F==="-"){if(/[\d.]/.test(A.peek()))return A.eatWhile(/[\w.%]/),Se("number","unit");if(A.match(/^-[\w\\\-]*/))return A.eatWhile(/[\w\\\-]/),A.match(/^\s*:/,!1)?Se("variable-2","variable-definition"):Se("variable-2","variable");if(A.match(/^\w+-/))return Se("meta","meta")}else return/[,+>*\/]/.test(F)?Se(null,"select-op"):F=="."&&A.match(/^-?[_a-z][_a-z0-9-]*/i)?Se("qualifier","qualifier"):/[:;{}\[\]\(\)]/.test(F)?Se(null,F):A.match(/^[\w-.]+(?=\()/)?(/^(url(-prefix)?|domain|regexp)$/i.test(A.current())&&(Y.tokenize=bn),Se("variable callee","variable")):/[\w\\\-]/.test(F)?(A.eatWhile(/[\w\\\-]/),Se("property","word")):Se(null,null)}function br(A){return function(Y,F){for(var _e=!1,It;(It=Y.next())!=null;){if(It==A&&!_e){A==")"&&Y.backUp(1);break}_e=!_e&&It=="\\"}return(It==A||!_e&&A!=")")&&(F.tokenize=null),Se("string","string")}}function bn(A,Y){return A.next(),A.match(/^\s*[\"\')]/,!1)?Y.tokenize=null:Y.tokenize=br(")"),Se(null,"(")}function Oe(A,Y,F){this.type=A,this.indent=Y,this.prev=F}function He(A,Y,F,_e){return A.context=new Oe(F,Y.indentation()+(_e===!1?0:k),A.context),F}function mt(A){return A.context.prev&&(A.context=A.context.prev),A.context.type}function er(A,Y,F){return Ke[F.context.type](A,Y,F)}function ur(A,Y,F,_e){for(var It=_e||1;It>0;It--)F.context=F.context.prev;return er(A,Y,F)}function Bn(A){var Y=A.current().toLowerCase();Je.hasOwnProperty(Y)?Ee="atom":Xe.hasOwnProperty(Y)?Ee="keyword":Ee="variable"}var Ke={};return Ke.top=function(A,Y,F){if(A=="{")return He(F,Y,"block");if(A=="}"&&F.context.prev)return mt(F);if(we&&/@component/i.test(A))return He(F,Y,"atComponentBlock");if(/^@(-moz-)?document$/i.test(A))return He(F,Y,"documentTypes");if(/^@(media|supports|(-moz-)?document|import)$/i.test(A))return He(F,Y,"atBlock");if(/^@(font-face|counter-style)/i.test(A))return F.stateArg=A,"restricted_atBlock_before";if(/^@(-(moz|ms|o|webkit)-)?keyframes$/i.test(A))return"keyframes";if(A&&A.charAt(0)=="@")return He(F,Y,"at");if(A=="hash")Ee="builtin";else if(A=="word")Ee="tag";else{if(A=="variable-definition")return"maybeprop";if(A=="interpolation")return He(F,Y,"interpolation");if(A==":")return"pseudo";if(Ue&&A=="(")return He(F,Y,"parens")}return F.context.type},Ke.block=function(A,Y,F){if(A=="word"){var _e=Y.current().toLowerCase();return Me.hasOwnProperty(_e)?(Ee="property","maybeprop"):Be.hasOwnProperty(_e)?(Ee=$e?"string-2":"property","maybeprop"):Ue?(Ee=Y.match(/^\s*:(?:\s|$)/,!1)?"property":"tag","block"):(Ee+=" error","maybeprop")}else return A=="meta"?"block":!Ue&&(A=="hash"||A=="qualifier")?(Ee="error","block"):Ke.top(A,Y,F)},Ke.maybeprop=function(A,Y,F){return A==":"?He(F,Y,"prop"):er(A,Y,F)},Ke.prop=function(A,Y,F){if(A==";")return mt(F);if(A=="{"&&Ue)return He(F,Y,"propBlock");if(A=="}"||A=="{")return ur(A,Y,F);if(A=="(")return He(F,Y,"parens");if(A=="hash"&&!/^#([0-9a-fA-f]{3,4}|[0-9a-fA-f]{6}|[0-9a-fA-f]{8})$/.test(Y.current()))Ee+=" error";else if(A=="word")Bn(Y);else if(A=="interpolation")return He(F,Y,"interpolation");return"prop"},Ke.propBlock=function(A,Y,F){return A=="}"?mt(F):A=="word"?(Ee="property","maybeprop"):F.context.type},Ke.parens=function(A,Y,F){return A=="{"||A=="}"?ur(A,Y,F):A==")"?mt(F):A=="("?He(F,Y,"parens"):A=="interpolation"?He(F,Y,"interpolation"):(A=="word"&&Bn(Y),"parens")},Ke.pseudo=function(A,Y,F){return A=="meta"?"pseudo":A=="word"?(Ee="variable-3",F.context.type):er(A,Y,F)},Ke.documentTypes=function(A,Y,F){return A=="word"&&z.hasOwnProperty(Y.current())?(Ee="tag",F.context.type):Ke.atBlock(A,Y,F)},Ke.atBlock=function(A,Y,F){if(A=="(")return He(F,Y,"atBlock_parens");if(A=="}"||A==";")return ur(A,Y,F);if(A=="{")return mt(F)&&He(F,Y,Ue?"block":"top");if(A=="interpolation")return He(F,Y,"interpolation");if(A=="word"){var _e=Y.current().toLowerCase();_e=="only"||_e=="not"||_e=="and"||_e=="or"?Ee="keyword":B.hasOwnProperty(_e)?Ee="attribute":X.hasOwnProperty(_e)?Ee="property":be.hasOwnProperty(_e)?Ee="keyword":Me.hasOwnProperty(_e)?Ee="property":Be.hasOwnProperty(_e)?Ee=$e?"string-2":"property":Je.hasOwnProperty(_e)?Ee="atom":Xe.hasOwnProperty(_e)?Ee="keyword":Ee="error"}return F.context.type},Ke.atComponentBlock=function(A,Y,F){return A=="}"?ur(A,Y,F):A=="{"?mt(F)&&He(F,Y,Ue?"block":"top",!1):(A=="word"&&(Ee="error"),F.context.type)},Ke.atBlock_parens=function(A,Y,F){return A==")"?mt(F):A=="{"||A=="}"?ur(A,Y,F,2):Ke.atBlock(A,Y,F)},Ke.restricted_atBlock_before=function(A,Y,F){return A=="{"?He(F,Y,"restricted_atBlock"):A=="word"&&F.stateArg=="@counter-style"?(Ee="variable","restricted_atBlock_before"):er(A,Y,F)},Ke.restricted_atBlock=function(A,Y,F){return A=="}"?(F.stateArg=null,mt(F)):A=="word"?(F.stateArg=="@font-face"&&!lt.hasOwnProperty(Y.current().toLowerCase())||F.stateArg=="@counter-style"&&!Qt.hasOwnProperty(Y.current().toLowerCase())?Ee="error":Ee="property","maybeprop"):"restricted_atBlock"},Ke.keyframes=function(A,Y,F){return A=="word"?(Ee="variable","keyframes"):A=="{"?He(F,Y,"top"):er(A,Y,F)},Ke.at=function(A,Y,F){return A==";"?mt(F):A=="{"||A=="}"?ur(A,Y,F):(A=="word"?Ee="tag":A=="hash"&&(Ee="builtin"),"at")},Ke.interpolation=function(A,Y,F){return A=="}"?mt(F):A=="{"||A==";"?ur(A,Y,F):(A=="word"?Ee="variable":A!="variable"&&A!="("&&A!=")"&&(Ee="error"),"interpolation")},{startState:function(A){return{tokenize:null,state:Z?"block":"top",stateArg:null,context:new Oe(Z?"block":"top",A||0,null)}},token:function(A,Y){if(!Y.tokenize&&A.eatSpace())return null;var F=(Y.tokenize||bt)(A,Y);return F&&typeof F=="object"&&(Pe=F[1],F=F[0]),Ee=F,Pe!="comment"&&(Y.state=Ke[Y.state](Pe,A,Y)),Ee},indent:function(A,Y){var F=A.context,_e=Y&&Y.charAt(0),It=F.indent;return F.type=="prop"&&(_e=="}"||_e==")")&&(F=F.prev),F.prev&&(_e=="}"&&(F.type=="block"||F.type=="top"||F.type=="interpolation"||F.type=="restricted_atBlock")?(F=F.prev,It=F.indent):(_e==")"&&(F.type=="parens"||F.type=="atBlock_parens")||_e=="{"&&(F.type=="at"||F.type=="atBlock"))&&(It=Math.max(0,F.indent-k))),It},electricChars:"}",blockCommentStart:"/*",blockCommentEnd:"*/",blockCommentContinue:" * ",lineComment:fe,fold:"brace"}});function o(de){for(var ie={},Z=0;Z<de.length;++Z)ie[de[Z].toLowerCase()]=!0;return ie}var l=["domain","regexp","url","url-prefix"],d=o(l),u=["all","aural","braille","handheld","print","projection","screen","tty","tv","embossed"],v=o(u),m=["width","min-width","max-width","height","min-height","max-height","device-width","min-device-width","max-device-width","device-height","min-device-height","max-device-height","aspect-ratio","min-aspect-ratio","max-aspect-ratio","device-aspect-ratio","min-device-aspect-ratio","max-device-aspect-ratio","color","min-color","max-color","color-index","min-color-index","max-color-index","monochrome","min-monochrome","max-monochrome","resolution","min-resolution","max-resolution","scan","grid","orientation","device-pixel-ratio","min-device-pixel-ratio","max-device-pixel-ratio","pointer","any-pointer","hover","any-hover","prefers-color-scheme"],y=o(m),T=["landscape","portrait","none","coarse","fine","on-demand","hover","interlace","progressive","dark","light"],S=o(T),$=["align-content","align-items","align-self","alignment-adjust","alignment-baseline","all","anchor-point","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","appearance","azimuth","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","binding","bleed","block-size","bookmark-label","bookmark-level","bookmark-state","bookmark-target","border","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","color","color-profile","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","content","counter-increment","counter-reset","crop","cue","cue-after","cue-before","cursor","direction","display","dominant-baseline","drop-initial-after-adjust","drop-initial-after-align","drop-initial-before-adjust","drop-initial-before-align","drop-initial-size","drop-initial-value","elevation","empty-cells","fit","fit-content","fit-position","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","float-offset","flow-from","flow-into","font","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-size","font-size-adjust","font-stretch","font-style","font-synthesis","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","gap","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-gap","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-gap","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","inline-box-align","inset","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","left","letter-spacing","line-break","line-height","line-height-step","line-stacking","line-stacking-ruby","line-stacking-shift","line-stacking-strategy","list-style","list-style-image","list-style-position","list-style-type","margin","margin-bottom","margin-left","margin-right","margin-top","marks","marquee-direction","marquee-loop","marquee-play-count","marquee-speed","marquee-style","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","move-to","nav-down","nav-index","nav-left","nav-right","nav-up","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-style","overflow-wrap","overflow-x","overflow-y","padding","padding-bottom","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","page-policy","pause","pause-after","pause-before","perspective","perspective-origin","pitch","pitch-range","place-content","place-items","place-self","play-during","position","presentation-level","punctuation-trim","quotes","region-break-after","region-break-before","region-break-inside","region-fragment","rendering-intent","resize","rest","rest-after","rest-before","richness","right","rotate","rotation","rotation-point","row-gap","ruby-align","ruby-overhang","ruby-position","ruby-span","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-type","shape-image-threshold","shape-inside","shape-margin","shape-outside","size","speak","speak-as","speak-header","speak-numeral","speak-punctuation","speech-rate","stress","string-set","tab-size","table-layout","target","target-name","target-new","target-position","text-align","text-align-last","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-height","text-indent","text-justify","text-orientation","text-outline","text-overflow","text-rendering","text-shadow","text-size-adjust","text-space-collapse","text-transform","text-underline-position","text-wrap","top","touch-action","transform","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-select","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","z-index","clip-path","clip-rule","mask","enable-background","filter","flood-color","flood-opacity","lighting-color","stop-color","stop-opacity","pointer-events","color-interpolation","color-interpolation-filters","color-rendering","fill","fill-opacity","fill-rule","image-rendering","marker","marker-end","marker-mid","marker-start","paint-order","shape-rendering","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-rendering","baseline-shift","dominant-baseline","glyph-orientation-horizontal","glyph-orientation-vertical","text-anchor","writing-mode"],E=o($),N=["accent-color","aspect-ratio","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","content-visibility","margin-block","margin-block-end","margin-block-start","margin-inline","margin-inline-end","margin-inline-start","overflow-anchor","overscroll-behavior","padding-block","padding-block-end","padding-block-start","padding-inline","padding-inline-end","padding-inline-start","scroll-snap-stop","scrollbar-3d-light-color","scrollbar-arrow-color","scrollbar-base-color","scrollbar-dark-shadow-color","scrollbar-face-color","scrollbar-highlight-color","scrollbar-shadow-color","scrollbar-track-color","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","shape-inside","zoom"],G=o(N),ee=["font-display","font-family","src","unicode-range","font-variant","font-feature-settings","font-stretch","font-weight","font-style"],te=o(ee),se=["additive-symbols","fallback","negative","pad","prefix","range","speak-as","suffix","symbols","system"],re=o(se),ue=["aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkgrey","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkslategrey","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dimgrey","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray","grey","green","greenyellow","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightgrey","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightslategrey","lightsteelblue","lightyellow","lime","limegreen","linen","magenta","maroon","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","oldlace","olive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","purple","rebeccapurple","red","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","slategrey","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen"],xe=o(ue),qe=["above","absolute","activeborder","additive","activecaption","afar","after-white-space","ahead","alias","all","all-scroll","alphabetic","alternate","always","amharic","amharic-abegede","antialiased","appworkspace","arabic-indic","armenian","asterisks","attr","auto","auto-flow","avoid","avoid-column","avoid-page","avoid-region","axis-pan","background","backwards","baseline","below","bidi-override","binary","bengali","blink","block","block-axis","blur","bold","bolder","border","border-box","both","bottom","break","break-all","break-word","brightness","bullets","button","button-bevel","buttonface","buttonhighlight","buttonshadow","buttontext","calc","cambodian","capitalize","caps-lock-indicator","caption","captiontext","caret","cell","center","checkbox","circle","cjk-decimal","cjk-earthly-branch","cjk-heavenly-stem","cjk-ideographic","clear","clip","close-quote","col-resize","collapse","color","color-burn","color-dodge","column","column-reverse","compact","condensed","contain","content","contents","content-box","context-menu","continuous","contrast","copy","counter","counters","cover","crop","cross","crosshair","cubic-bezier","currentcolor","cursive","cyclic","darken","dashed","decimal","decimal-leading-zero","default","default-button","dense","destination-atop","destination-in","destination-out","destination-over","devanagari","difference","disc","discard","disclosure-closed","disclosure-open","document","dot-dash","dot-dot-dash","dotted","double","down","drop-shadow","e-resize","ease","ease-in","ease-in-out","ease-out","element","ellipse","ellipsis","embed","end","ethiopic","ethiopic-abegede","ethiopic-abegede-am-et","ethiopic-abegede-gez","ethiopic-abegede-ti-er","ethiopic-abegede-ti-et","ethiopic-halehame-aa-er","ethiopic-halehame-aa-et","ethiopic-halehame-am-et","ethiopic-halehame-gez","ethiopic-halehame-om-et","ethiopic-halehame-sid-et","ethiopic-halehame-so-et","ethiopic-halehame-ti-er","ethiopic-halehame-ti-et","ethiopic-halehame-tig","ethiopic-numeric","ew-resize","exclusion","expanded","extends","extra-condensed","extra-expanded","fantasy","fast","fill","fill-box","fixed","flat","flex","flex-end","flex-start","footnotes","forwards","from","geometricPrecision","georgian","grayscale","graytext","grid","groove","gujarati","gurmukhi","hand","hangul","hangul-consonant","hard-light","hebrew","help","hidden","hide","higher","highlight","highlighttext","hiragana","hiragana-iroha","horizontal","hsl","hsla","hue","hue-rotate","icon","ignore","inactiveborder","inactivecaption","inactivecaptiontext","infinite","infobackground","infotext","inherit","initial","inline","inline-axis","inline-block","inline-flex","inline-grid","inline-table","inset","inside","intrinsic","invert","italic","japanese-formal","japanese-informal","justify","kannada","katakana","katakana-iroha","keep-all","khmer","korean-hangul-formal","korean-hanja-formal","korean-hanja-informal","landscape","lao","large","larger","left","level","lighter","lighten","line-through","linear","linear-gradient","lines","list-item","listbox","listitem","local","logical","loud","lower","lower-alpha","lower-armenian","lower-greek","lower-hexadecimal","lower-latin","lower-norwegian","lower-roman","lowercase","ltr","luminosity","malayalam","manipulation","match","matrix","matrix3d","media-controls-background","media-current-time-display","media-fullscreen-button","media-mute-button","media-play-button","media-return-to-realtime-button","media-rewind-button","media-seek-back-button","media-seek-forward-button","media-slider","media-sliderthumb","media-time-remaining-display","media-volume-slider","media-volume-slider-container","media-volume-sliderthumb","medium","menu","menulist","menulist-button","menulist-text","menulist-textfield","menutext","message-box","middle","min-intrinsic","mix","mongolian","monospace","move","multiple","multiple_mask_images","multiply","myanmar","n-resize","narrower","ne-resize","nesw-resize","no-close-quote","no-drop","no-open-quote","no-repeat","none","normal","not-allowed","nowrap","ns-resize","numbers","numeric","nw-resize","nwse-resize","oblique","octal","opacity","open-quote","optimizeLegibility","optimizeSpeed","oriya","oromo","outset","outside","outside-shape","overlay","overline","padding","padding-box","painted","page","paused","persian","perspective","pinch-zoom","plus-darker","plus-lighter","pointer","polygon","portrait","pre","pre-line","pre-wrap","preserve-3d","progress","push-button","radial-gradient","radio","read-only","read-write","read-write-plaintext-only","rectangle","region","relative","repeat","repeating-linear-gradient","repeating-radial-gradient","repeat-x","repeat-y","reset","reverse","rgb","rgba","ridge","right","rotate","rotate3d","rotateX","rotateY","rotateZ","round","row","row-resize","row-reverse","rtl","run-in","running","s-resize","sans-serif","saturate","saturation","scale","scale3d","scaleX","scaleY","scaleZ","screen","scroll","scrollbar","scroll-position","se-resize","searchfield","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","self-start","self-end","semi-condensed","semi-expanded","separate","sepia","serif","show","sidama","simp-chinese-formal","simp-chinese-informal","single","skew","skewX","skewY","skip-white-space","slide","slider-horizontal","slider-vertical","sliderthumb-horizontal","sliderthumb-vertical","slow","small","small-caps","small-caption","smaller","soft-light","solid","somali","source-atop","source-in","source-out","source-over","space","space-around","space-between","space-evenly","spell-out","square","square-button","start","static","status-bar","stretch","stroke","stroke-box","sub","subpixel-antialiased","svg_masks","super","sw-resize","symbolic","symbols","system-ui","table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row","table-row-group","tamil","telugu","text","text-bottom","text-top","textarea","textfield","thai","thick","thin","threeddarkshadow","threedface","threedhighlight","threedlightshadow","threedshadow","tibetan","tigre","tigrinya-er","tigrinya-er-abegede","tigrinya-et","tigrinya-et-abegede","to","top","trad-chinese-formal","trad-chinese-informal","transform","translate","translate3d","translateX","translateY","translateZ","transparent","ultra-condensed","ultra-expanded","underline","unidirectional-pan","unset","up","upper-alpha","upper-armenian","upper-greek","upper-hexadecimal","upper-latin","upper-norwegian","upper-roman","uppercase","urdu","url","var","vertical","vertical-text","view-box","visible","visibleFill","visiblePainted","visibleStroke","visual","w-resize","wait","wave","wider","window","windowframe","windowtext","words","wrap","wrap-reverse","x-large","x-small","xor","xx-large","xx-small"],Ge=o(qe),Ze=l.concat(u).concat(m).concat(T).concat($).concat(N).concat(ue).concat(qe);i.registerHelper("hintWords","css",Ze);function We(de,ie){for(var Z=!1,k;(k=de.next())!=null;){if(Z&&k=="/"){ie.tokenize=null;break}Z=k=="*"}return["comment","comment"]}i.defineMIME("text/css",{documentTypes:d,mediaTypes:v,mediaFeatures:y,mediaValueKeywords:S,propertyKeywords:E,nonStandardPropertyKeywords:G,fontProperties:te,counterDescriptors:re,colorKeywords:xe,valueKeywords:Ge,tokenHooks:{"/":function(de,ie){return de.eat("*")?(ie.tokenize=We,We(de,ie)):!1}},name:"css"}),i.defineMIME("text/x-scss",{mediaTypes:v,mediaFeatures:y,mediaValueKeywords:S,propertyKeywords:E,nonStandardPropertyKeywords:G,colorKeywords:xe,valueKeywords:Ge,fontProperties:te,allowNested:!0,lineComment:"//",tokenHooks:{"/":function(de,ie){return de.eat("/")?(de.skipToEnd(),["comment","comment"]):de.eat("*")?(ie.tokenize=We,We(de,ie)):["operator","operator"]},":":function(de){return de.match(/^\s*\{/,!1)?[null,null]:!1},$:function(de){return de.match(/^[\w-]+/),de.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2","variable"]},"#":function(de){return de.eat("{")?[null,"interpolation"]:!1}},name:"css",helperType:"scss"}),i.defineMIME("text/x-less",{mediaTypes:v,mediaFeatures:y,mediaValueKeywords:S,propertyKeywords:E,nonStandardPropertyKeywords:G,colorKeywords:xe,valueKeywords:Ge,fontProperties:te,allowNested:!0,lineComment:"//",tokenHooks:{"/":function(de,ie){return de.eat("/")?(de.skipToEnd(),["comment","comment"]):de.eat("*")?(ie.tokenize=We,We(de,ie)):["operator","operator"]},"@":function(de){return de.eat("{")?[null,"interpolation"]:de.match(/^(charset|document|font-face|import|(-(moz|ms|o|webkit)-)?keyframes|media|namespace|page|supports)\b/i,!1)?!1:(de.eatWhile(/[\w\\\-]/),de.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2","variable"])},"&":function(){return["atom","atom"]}},name:"css",helperType:"less"}),i.defineMIME("text/x-gss",{documentTypes:d,mediaTypes:v,mediaFeatures:y,propertyKeywords:E,nonStandardPropertyKeywords:G,fontProperties:te,counterDescriptors:re,colorKeywords:xe,valueKeywords:Ge,supportsAtComponent:!0,tokenHooks:{"/":function(de,ie){return de.eat("*")?(ie.tokenize=We,We(de,ie)):!1}},name:"css",helperType:"gss"})})}()),Xh.exports}(function(n,e){(function(i){i(gn(),OL,Zp(),EL())})(function(i){var o={script:[["lang",/(javascript|babel)/i,"javascript"],["type",/^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^module$|^$/i,"javascript"],["type",/./,"text/plain"],[null,null,"javascript"]],style:[["lang",/^css$/i,"css"],["type",/^(text\/)?(x-)?(stylesheet|css)$/i,"css"],["type",/./,"text/plain"],[null,null,"css"]]};function l(S,$,E){var N=S.current(),G=N.search($);return G>-1?S.backUp(N.length-G):N.match(/<\/?$/)&&(S.backUp(N.length),S.match($,!1)||S.match(N)),E}var d={};function u(S){var $=d[S];return $||(d[S]=new RegExp("\\s+"+S+`\\s*=\\s*('|")?([^'"]+)('|")?\\s*`))}function v(S,$){var E=S.match(u($));return E?/^\s*(.*?)\s*$/.exec(E[2])[1]:""}function m(S,$){return new RegExp(($?"^":"")+"</s*"+S+"s*>","i")}function y(S,$){for(var E in S)for(var N=$[E]||($[E]=[]),G=S[E],ee=G.length-1;ee>=0;ee--)N.unshift(G[ee])}function T(S,$){for(var E=0;E<S.length;E++){var N=S[E];if(!N[0]||N[1].test(v($,N[0])))return N[2]}}i.defineMode("htmlmixed",function(S,$){var E=i.getMode(S,{name:"xml",htmlMode:!0,multilineTagIndentFactor:$.multilineTagIndentFactor,multilineTagIndentPastTag:$.multilineTagIndentPastTag,allowMissingTagName:$.allowMissingTagName}),N={},G=$&&$.tags,ee=$&&$.scriptTypes;if(y(o,N),G&&y(G,N),ee)for(var te=ee.length-1;te>=0;te--)N.script.unshift(["type",ee[te].matches,ee[te].mode]);function se(re,ue){var xe=E.token(re,ue.htmlState),qe=/\btag\b/.test(xe),Ge;if(qe&&!/[<>\s\/]/.test(re.current())&&(Ge=ue.htmlState.tagName&&ue.htmlState.tagName.toLowerCase())&&N.hasOwnProperty(Ge))ue.inTag=Ge+" ";else if(ue.inTag&&qe&&/>$/.test(re.current())){var Ze=/^([\S]+) (.*)/.exec(ue.inTag);ue.inTag=null;var We=re.current()==">"&&T(N[Ze[1]],Ze[2]),de=i.getMode(S,We),ie=m(Ze[1],!0),Z=m(Ze[1],!1);ue.token=function(k,x){return k.match(ie,!1)?(x.token=se,x.localState=x.localMode=null,null):l(k,Z,x.localMode.token(k,x.localState))},ue.localMode=de,ue.localState=i.startState(de,E.indent(ue.htmlState,"",""))}else ue.inTag&&(ue.inTag+=re.current(),re.eol()&&(ue.inTag+=" "));return xe}return{startState:function(){var re=i.startState(E);return{token:se,inTag:null,localMode:null,localState:null,htmlState:re}},copyState:function(re){var ue;return re.localState&&(ue=i.copyState(re.localMode,re.localState)),{token:re.token,inTag:re.inTag,localMode:re.localMode,localState:ue,htmlState:i.copyState(E,re.htmlState)}},token:function(re,ue){return ue.token(re,ue)},indent:function(re,ue,xe){return!re.localMode||/^\s*<\//.test(ue)?E.indent(re.htmlState,ue,xe):re.localMode.indent?re.localMode.indent(re.localState,ue,xe):i.Pass},innerMode:function(re){return{state:re.localState||re.htmlState,mode:re.localMode||E}}}},"xml","javascript","css"),i.defineMIME("text/html","htmlmixed")})})();(function(n,e){(function(i){i(gn())})(function(i){i.defineMode("solr",function(){var o=/[^\s\|\!\+\-\*\?\~\^\&\:\(\)\[\]\{\}\"\\]/,l=/[\|\!\+\-\*\?\~\^\&]/,d=/^(OR|AND|NOT|TO)$/i;function u(S){return parseFloat(S).toString()===S}function v(S){return function($,E){for(var N=!1,G;(G=$.next())!=null&&!(G==S&&!N);)N=!N&&G=="\\";return N||(E.tokenize=T),"string"}}function m(S){return function($,E){var N="operator";return S=="+"?N+=" positive":S=="-"?N+=" negative":S=="|"?$.eat(/\|/):S=="&"?$.eat(/\&/):S=="^"&&(N+=" boost"),E.tokenize=T,N}}function y(S){return function($,E){for(var N=S;(S=$.peek())&&S.match(o)!=null;)N+=$.next();return E.tokenize=T,d.test(N)?"operator":u(N)?"number":$.peek()==":"?"field":"string"}}function T(S,$){var E=S.next();return E=='"'?$.tokenize=v(E):l.test(E)?$.tokenize=m(E):o.test(E)&&($.tokenize=y(E)),$.tokenize!=T?$.tokenize(S,$):null}return{startState:function(){return{tokenize:T}},token:function(S,$){return S.eatSpace()?null:$.tokenize(S,$)}}}),i.defineMIME("text/x-solr","solr")})})();(function(n,e){(function(i){i(gn())})(function(i){i.defineOption("placeholder","",function(y,T,S){var $=S&&S!=i.Init;if(T&&!$)y.on("blur",u),y.on("change",v),y.on("swapDoc",v),i.on(y.getInputField(),"compositionupdate",y.state.placeholderCompose=function(){d(y)}),v(y);else if(!T&&$){y.off("blur",u),y.off("change",v),y.off("swapDoc",v),i.off(y.getInputField(),"compositionupdate",y.state.placeholderCompose),o(y);var E=y.getWrapperElement();E.className=E.className.replace(" CodeMirror-empty","")}T&&!y.hasFocus()&&u(y)});function o(y){y.state.placeholder&&(y.state.placeholder.parentNode.removeChild(y.state.placeholder),y.state.placeholder=null)}function l(y){o(y);var T=y.state.placeholder=document.createElement("pre");T.style.cssText="height: 0; overflow: visible",T.style.direction=y.getOption("direction"),T.className="CodeMirror-placeholder CodeMirror-line-like";var S=y.getOption("placeholder");typeof S=="string"&&(S=document.createTextNode(S)),T.appendChild(S),y.display.lineSpace.insertBefore(T,y.display.lineSpace.firstChild)}function d(y){setTimeout(function(){var T=!1;if(y.lineCount()==1){var S=y.getInputField();T=S.nodeName=="TEXTAREA"?!y.getLine(0).length:!/[^\u200b]/.test(S.querySelector(".CodeMirror-line").textContent)}T?l(y):o(y)},20)}function u(y){m(y)&&l(y)}function v(y){var T=y.getWrapperElement(),S=m(y);T.className=T.className.replace(" CodeMirror-empty","")+(S?" CodeMirror-empty":""),S?l(y):o(y)}function m(y){return y.lineCount()===1&&y.getLine(0)===""}})})();var _L=Object.defineProperty,IL=Object.getOwnPropertyDescriptor,mo=(n,e,i,o)=>{for(var l=o>1?void 0:o?IL(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&_L(e,i,l),l};ga.defineMode("nunjucks",(n,e)=>ga.overlayMode(ga.getMode(n,e.backdrop||"text/html"),ga.getMode(n,"jinja2")));const Wp=ne("input-code"),AL=["json","nunjucks","javascript","solr"],PL={json:{name:"javascript",json:!0},javascript:"javascript",nunjucks:"nunjucks",solr:"solr"};exports.InputCode=class extends Ut{constructor(){super(...arguments),this.mode="nunjucks",this.size="x-large",this.height=10,this.hideLineNumbers=!1}changeHandler(e){this.value=e.getValue(),this.dispatchChange()}updated(e){var o,l;super.updated(e);const i=this.disabled||this.readonly;this.value!==this.editorValue&&(this.editorValue=this.value||""),i!==((o=this.editor)==null?void 0:o.isReadOnly())&&((l=this.editor)==null||l.setOption("readOnly",this.disabled?"nocursor":this.readonly)),setTimeout(()=>{var d;return(d=this.editor)==null?void 0:d.refresh()})}get editorValue(){var e;return((e=this.editor)==null?void 0:e.getDoc().getValue())||""}set editorValue(e){var i;(i=this.editor)==null||i.setValue(e)}firstUpdated(){var i;const e=(i=this.shadowRoot)==null?void 0:i.querySelector(".editor");e&&(this.editor=ga.fromTextArea(e,{mode:PL[this.mode],value:this.value,lineNumbers:!this.hideLineNumbers,readOnly:this.disabled?"nocursor":this.readonly,smartIndent:!0,theme:"skedulo"}),this.editor.setSize("100%",`${24*this.height}px`),this.editor.setOption("extraKeys",{Tab:o=>{const l=Array((o.getOption("indentUnit")||0)+1).join(" ");o.replaceSelection(l)}}),this.editor.on("change",this.changeHandler.bind(this)),setTimeout(()=>{var o;return(o=this.editor)==null?void 0:o.refresh()}))}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this.editor)==null||e.off("change",this.changeHandler)}renderInput(){return P`
3079
3079
  <textarea class="editor" placeholder="${Ie(this.placeholder)}">
3080
3080
  ${this.value}</textarea
3081
3081
  >
3082
3082
  `}};exports.InputCode.styles=[...Ut.styles,j`
3083
- ${An(xL)}
3083
+ ${An(TL)}
3084
3084
 
3085
3085
  :host([size="full"]) {
3086
3086
  width: 100%;
@@ -3144,7 +3144,7 @@ ${this.value}</textarea
3144
3144
  .CodeMirror pre.CodeMirror-placeholder {
3145
3145
  color: var(--brz-color-neutral-500);
3146
3146
  }
3147
- `,zL];mo([O()],exports.InputCode.prototype,"mode",2);mo([O({reflect:!0})],exports.InputCode.prototype,"size",2);mo([O({type:Number})],exports.InputCode.prototype,"height",2);mo([O({type:Boolean,attribute:"hide-line-numbers"})],exports.InputCode.prototype,"hideLineNumbers",2);mo([pe()],exports.InputCode.prototype,"editor",2);exports.InputCode=mo([R(Fp)],exports.InputCode);var IL=Object.defineProperty,AL=Object.getOwnPropertyDescriptor,Pa=(n,e,i,o)=>{for(var l=o>1?void 0:o?AL(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&IL(e,i,l),l};const Bp=ne("input-select");exports.InputSelect=class extends vt{constructor(){super(...arguments),this.value="",this.query="",this.hasResults=!1}updated(e){var i,o;if((i=super.updated)==null||i.call(this,e),e.has("valueLabel")&&this.canSearch){const l=this.renderRoot.querySelector("#selectSearch");l&&(l.value=(o=this.valueLabel)!=null?o:"")}}handleCloseDropdown(){super.handleCloseDropdown(),window.setTimeout(()=>{this.resetSearch(),this.setQueryInputValue()},200)}handleValueChange(){this.syncValueLabel(this.value),this.resetSearch(),this.setQueryInputValue()}handleSelect(e){this.setValue(e.detail.selected[0])}setQueryInputValue(){this.queryInput&&(this.queryInput.value=this.query||this.valueLabel||"")}applySelectedStatusToChildren(){super.getItems().forEach(e=>{e.selected=this.value===e.value})}renderReferenceElement(){var e;return this.applySelectedStatusToChildren(),this.controlled||this.search(),P`
3147
+ `,kL];mo([O()],exports.InputCode.prototype,"mode",2);mo([O({reflect:!0})],exports.InputCode.prototype,"size",2);mo([O({type:Number})],exports.InputCode.prototype,"height",2);mo([O({type:Boolean,attribute:"hide-line-numbers"})],exports.InputCode.prototype,"hideLineNumbers",2);mo([pe()],exports.InputCode.prototype,"editor",2);exports.InputCode=mo([R(Wp)],exports.InputCode);var DL=Object.defineProperty,NL=Object.getOwnPropertyDescriptor,Pa=(n,e,i,o)=>{for(var l=o>1?void 0:o?NL(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&DL(e,i,l),l};const Up=ne("input-select");exports.InputSelect=class extends vt{constructor(){super(...arguments),this.value="",this.query="",this.hasResults=!1}updated(e){var i,o;if((i=super.updated)==null||i.call(this,e),e.has("valueLabel")&&this.canSearch){const l=this.renderRoot.querySelector("#selectSearch");l&&(l.value=(o=this.valueLabel)!=null?o:"")}}handleCloseDropdown(){super.handleCloseDropdown(),window.setTimeout(()=>{this.resetSearch(),this.setQueryInputValue()},200)}handleValueChange(){this.syncValueLabel(this.value),this.resetSearch(),this.setQueryInputValue()}handleSelect(e){this.setValue(e.detail.selected[0])}setQueryInputValue(){this.queryInput&&(this.queryInput.value=this.query||this.valueLabel||"")}applySelectedStatusToChildren(){super.getItems().forEach(e=>{e.selected=this.value===e.value})}renderReferenceElement(){var e;return this.applySelectedStatusToChildren(),this.controlled||this.search(),P`
3148
3148
  <button
3149
3149
  type="button"
3150
3150
  class="wrapper"
@@ -3181,7 +3181,7 @@ ${this.value}</textarea
3181
3181
  `}renderDropdownContent(){return P`
3182
3182
  ${!this.controlled&&!this.hasQueryResults?this.renderSearchMessage():null}
3183
3183
  ${this.isDataDriven?this.renderOptionsData():P` <slot slot="options"></slot> `}
3184
- `}resetSearch(){this.query=""}search(){var i;this.hasResults=!1;const e=(i=this.query)==null?void 0:i.toLowerCase();this.getItems().forEach(o=>{var d;if("id"in o&&o.id===Ma)return;if(!e||e===((d=this.valueLabel)==null?void 0:d.toLowerCase())){o.hidden=!1,this.hasResults=!0;return}const l=this.isQueryMatch(o);l&&(this.hasResults=!0),o.hidden=!l})}setInnerOptions(){this.innerOptions=this.isDataDriven?[...this.required?[]:[{id:`option-${Cc()}`,label:this.placeholder?this.placeholder:"Select an option",value:""}],...this.options.map(e=>({...e,id:`option-${Cc()}`}))]:[]}disconnectedCallback(){var e;(e=this.selectedOptionObserver)==null||e.disconnect(),super.disconnectedCallback()}findItem(e){var i;return((i=this.getItems())==null?void 0:i[0])instanceof exports.MenuItem?this.optionElements.find(o=>o.value===e):this.innerOptions.find(o=>o.value===e)}syncValueLabel(e){var o;(o=this.selectedOptionObserver)==null||o.disconnect();const i=this.findItem(e);this.valueLabel=this.getItemLabel(i),!(this.isDataDriven&&this.isReadonlyOrDisabled)&&i instanceof Node&&(this.selectedOptionObserver=new MutationObserver(()=>{this.valueLabel=this.getItemLabel(i),this.resetSearch()}),this.selectedOptionObserver.observe(i,{characterData:!1,childList:!0,attributes:!1}))}};exports.InputSelect.styles=[...vt.styles,j`
3184
+ `}resetSearch(){this.query=""}search(){var i;this.hasResults=!1;const e=(i=this.query)==null?void 0:i.toLowerCase();this.getItems().forEach(o=>{var d;if("id"in o&&o.id===Ma)return;if(!e||e===((d=this.valueLabel)==null?void 0:d.toLowerCase())){o.hidden=!1,this.hasResults=!0;return}const l=this.isQueryMatch(o);l&&(this.hasResults=!0),o.hidden=!l})}setInnerOptions(){this.innerOptions=this.isDataDriven?[...this.required?[]:[{id:`option-${wc()}`,label:this.placeholder?this.placeholder:"Select an option",value:""}],...this.options.map(e=>({...e,id:`option-${wc()}`}))]:[]}disconnectedCallback(){var e;(e=this.selectedOptionObserver)==null||e.disconnect(),super.disconnectedCallback()}findItem(e){var i;return((i=this.getItems())==null?void 0:i[0])instanceof exports.MenuItem?this.optionElements.find(o=>o.value===e):this.innerOptions.find(o=>o.value===e)}syncValueLabel(e){var o;(o=this.selectedOptionObserver)==null||o.disconnect();const i=this.findItem(e);this.valueLabel=this.getItemLabel(i),!(this.isDataDriven&&this.isReadonlyOrDisabled)&&i instanceof Node&&(this.selectedOptionObserver=new MutationObserver(()=>{this.valueLabel=this.getItemLabel(i),this.resetSearch()}),this.selectedOptionObserver.observe(i,{characterData:!1,childList:!0,attributes:!1}))}};exports.InputSelect.styles=[...vt.styles,j`
3185
3185
  input {
3186
3186
  text-overflow: ellipsis;
3187
3187
  }
@@ -3212,7 +3212,7 @@ ${this.value}</textarea
3212
3212
  .placeholder {
3213
3213
  color: var(--input-placeholder-font-color);
3214
3214
  }
3215
- `];Pa([O({type:String})],exports.InputSelect.prototype,"value",2);Pa([pe()],exports.InputSelect.prototype,"query",2);Pa([pe()],exports.InputSelect.prototype,"valueLabel",2);Pa([pe()],exports.InputSelect.prototype,"hasResults",2);exports.InputSelect=Pa([R(Bp)],exports.InputSelect);var PL=Object.defineProperty,DL=Object.getOwnPropertyDescriptor,_r=(n,e,i,o)=>{for(var l=o>1?void 0:o?DL(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&PL(e,i,l),l};const Vp=ne("lozenge"),NL=["neutral","green","orange","red","cyan","purple","sapphire"],HL=["solid","subtle","border"],RL=["small","medium","large"];class Zp extends CustomEvent{constructor(){super("brz-lozenge-delete",{bubbles:!0})}}exports.Lozenge=class extends me{constructor(){super(...arguments),this.size="medium",this.theme="solid",this.color="neutral",this.canDelete=!1,this.disabled=!1,this.noTruncate=!1,this.isOverflowing=!1}async checkOverflow(){this.isOverflowing=(await this.message).scrollWidth>(await this.message).clientWidth}_handleDeleteClick(e){e.stopPropagation(),this.dispatchEvent(new Zp)}get iconSize(){switch(this.size){case"large":return 16;case"medium":return 14;case"small":return 12}}render(){var e;return this.updateComplete.then(()=>this.checkOverflow()),P`
3215
+ `];Pa([O({type:String})],exports.InputSelect.prototype,"value",2);Pa([pe()],exports.InputSelect.prototype,"query",2);Pa([pe()],exports.InputSelect.prototype,"valueLabel",2);Pa([pe()],exports.InputSelect.prototype,"hasResults",2);exports.InputSelect=Pa([R(Up)],exports.InputSelect);var HL=Object.defineProperty,RL=Object.getOwnPropertyDescriptor,_r=(n,e,i,o)=>{for(var l=o>1?void 0:o?RL(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&HL(e,i,l),l};const jp=ne("lozenge"),FL=["neutral","green","orange","red","cyan","purple","sapphire"],BL=["solid","subtle","border"],VL=["small","medium","large"];class Gp extends CustomEvent{constructor(){super("brz-lozenge-delete",{bubbles:!0})}}exports.Lozenge=class extends me{constructor(){super(...arguments),this.size="medium",this.theme="solid",this.color="neutral",this.canDelete=!1,this.disabled=!1,this.noTruncate=!1,this.isOverflowing=!1}async checkOverflow(){this.isOverflowing=(await this.message).scrollWidth>(await this.message).clientWidth}_handleDeleteClick(e){e.stopPropagation(),this.dispatchEvent(new Gp)}get iconSize(){switch(this.size){case"large":return 16;case"medium":return 14;case"small":return 12}}render(){var e;return this.updateComplete.then(()=>this.checkOverflow()),P`
3216
3216
  <brz-tooltip
3217
3217
  content=${(e=this.defaultSlot[0])==null?void 0:e.textContent}
3218
3218
  ?disabled=${!this.isOverflowing}
@@ -3364,7 +3364,7 @@ ${this.value}</textarea
3364
3364
  margin-right: var(--brz-spacing-2);
3365
3365
  }
3366
3366
 
3367
- ${Q2(".close",j`
3367
+ ${nf(".close",j`
3368
3368
  margin-right: calc(0px - var(--brz-spacing-1));
3369
3369
  `)}
3370
3370
 
@@ -3382,7 +3382,7 @@ ${this.value}</textarea
3382
3382
  color: var(--brz-color-neutral-550);
3383
3383
  cursor: unset;
3384
3384
  }
3385
- `;_r([O({type:String,attribute:"size",reflect:!0})],exports.Lozenge.prototype,"size",2);_r([O({type:String,attribute:"theme",reflect:!0})],exports.Lozenge.prototype,"theme",2);_r([O({type:String,attribute:"color",reflect:!0})],exports.Lozenge.prototype,"color",2);_r([O({type:String,attribute:"leading-icon",reflect:!0})],exports.Lozenge.prototype,"leadingIcon",2);_r([O({type:Boolean,attribute:"can-delete",reflect:!0})],exports.Lozenge.prototype,"canDelete",2);_r([O({type:Boolean,attribute:"disabled",reflect:!0})],exports.Lozenge.prototype,"disabled",2);_r([O({type:Boolean,attribute:"no-truncate",reflect:!0})],exports.Lozenge.prototype,"noTruncate",2);_r([jc()],exports.Lozenge.prototype,"defaultSlot",2);_r([u7(".message")],exports.Lozenge.prototype,"message",2);_r([pe()],exports.Lozenge.prototype,"isOverflowing",2);exports.Lozenge=_r([R(Vp)],exports.Lozenge);var FL=Object.defineProperty,BL=Object.getOwnPropertyDescriptor,Da=(n,e,i,o)=>{for(var l=o>1?void 0:o?BL(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&FL(e,i,l),l};const Wp=ne("input-multiselect");exports.InputMultiselect=class extends vt{constructor(){super(...arguments),this.size="x-large",this.truncateValuesAfter=20,this.value=[],this.valueLabels=[]}updated(e){super.updated(e),this.dropdown&&(this.dropdown.multiselect=!0),(e.has("value")||e.has("selected-items"))&&this.renderSelectedItems(),this.isDataDriven&&!this.innerOptions.find(i=>i.id===Mr)&&this.innerOptions.unshift(this.selectAllOption)}get allSelected(){const{enabled:e,toggled:i}=[...this.getItems()].reduce((o,l)=>l.id===Mr?o:{enabled:l.disabled?o.enabled:o.enabled+1,toggled:l.selected?o.toggled+1:o.toggled},{enabled:0,toggled:0});return e===i}dispatchChange(){this.dispatchEvent(new CustomEvent("brz-input-change",{detail:{value:[...this.value||[]]}}))}handleCloseDropdown(){super.handleCloseDropdown(),window.setTimeout(()=>{this.resetSearch(),this.setQueryInputValue(),this.controlled&&this.dispatchEvent(new g0({detail:{query:""}}))},200)}handleValueChange(){this.controlled||this.syncValueLabels()}handleSelect(e){this.setValue(e.detail.selected)}handleItemSelect({detail:{item:e}}){e.id===Mr&&this.toggleAllSelected()}toggleAllSelected(){const e=[];this.allSelected||this.getItems().forEach(i=>{!i.disabled&&i.id!==Mr&&e.push(i.value)}),this.setValue(e),this.handleValueChange()}toggleSelection(e){const i=this.value?[...this.value]:[],o=i.indexOf(e);o>-1&&i.splice(o,1),o===-1&&i.push(e),this.setValue(i)}syncSelected(){this.getItems().forEach(e=>{const i=this.value&&this.value.includes(e.value);e.selected=e.id===Mr?this.allSelected:i})}get truncation(){return this.value&&this.value.length>this.truncateValuesAfter?P`<span class="truncation"
3385
+ `;_r([O({type:String,attribute:"size",reflect:!0})],exports.Lozenge.prototype,"size",2);_r([O({type:String,attribute:"theme",reflect:!0})],exports.Lozenge.prototype,"theme",2);_r([O({type:String,attribute:"color",reflect:!0})],exports.Lozenge.prototype,"color",2);_r([O({type:String,attribute:"leading-icon",reflect:!0})],exports.Lozenge.prototype,"leadingIcon",2);_r([O({type:Boolean,attribute:"can-delete",reflect:!0})],exports.Lozenge.prototype,"canDelete",2);_r([O({type:Boolean,attribute:"disabled",reflect:!0})],exports.Lozenge.prototype,"disabled",2);_r([O({type:Boolean,attribute:"no-truncate",reflect:!0})],exports.Lozenge.prototype,"noTruncate",2);_r([Gc()],exports.Lozenge.prototype,"defaultSlot",2);_r([p7(".message")],exports.Lozenge.prototype,"message",2);_r([pe()],exports.Lozenge.prototype,"isOverflowing",2);exports.Lozenge=_r([R(jp)],exports.Lozenge);var ZL=Object.defineProperty,WL=Object.getOwnPropertyDescriptor,Da=(n,e,i,o)=>{for(var l=o>1?void 0:o?WL(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&ZL(e,i,l),l};const qp=ne("input-multiselect");exports.InputMultiselect=class extends vt{constructor(){super(...arguments),this.size="x-large",this.truncateValuesAfter=20,this.value=[],this.valueLabels=[]}updated(e){super.updated(e),this.dropdown&&(this.dropdown.multiselect=!0),(e.has("value")||e.has("selected-items"))&&this.renderSelectedItems(),this.isDataDriven&&!this.innerOptions.find(i=>i.id===Mr)&&this.innerOptions.unshift(this.selectAllOption)}get allSelected(){const{enabled:e,toggled:i}=[...this.getItems()].reduce((o,l)=>l.id===Mr?o:{enabled:l.disabled?o.enabled:o.enabled+1,toggled:l.selected?o.toggled+1:o.toggled},{enabled:0,toggled:0});return e===i}dispatchChange(){this.dispatchEvent(new CustomEvent("brz-input-change",{detail:{value:[...this.value||[]]}}))}handleCloseDropdown(){super.handleCloseDropdown(),window.setTimeout(()=>{this.resetSearch(),this.setQueryInputValue(),this.controlled&&this.dispatchEvent(new v0({detail:{query:""}}))},200)}handleValueChange(){this.controlled||this.syncValueLabels()}handleSelect(e){this.setValue(e.detail.selected)}handleItemSelect({detail:{item:e}}){e.id===Mr&&this.toggleAllSelected()}toggleAllSelected(){const e=[];this.allSelected||this.getItems().forEach(i=>{!i.disabled&&i.id!==Mr&&e.push(i.value)}),this.setValue(e),this.handleValueChange()}toggleSelection(e){const i=this.value?[...this.value]:[],o=i.indexOf(e);o>-1&&i.splice(o,1),o===-1&&i.push(e),this.setValue(i)}syncSelected(){this.getItems().forEach(e=>{const i=this.value&&this.value.includes(e.value);e.selected=e.id===Mr?this.allSelected:i})}get truncation(){return this.value&&this.value.length>this.truncateValuesAfter?P`<span class="truncation"
3386
3386
  >+${this.value.length-this.truncateValuesAfter} more</span
3387
3387
  >`:null}handleKeyDown(e){super.handleKeyDown(e),e.key==="Backspace"&&(!this.queryInput||this.queryInput.value==="")&&!this.isReadonlyOrDisabled&&this.removeLastValue()}renderReferenceElement(){return this.syncSelected(),this.controlled||this.search(),this.updateComplete.then(()=>{this.renderSelectedItems()}),P`
3388
3388
  <button
@@ -3493,10 +3493,10 @@ ${this.value}</textarea
3493
3493
  brz-icon[icon='chevronDown'] {
3494
3494
  color: var(--brz-color-neutral-750);
3495
3495
  }
3496
- `];Da([O({type:String,reflect:!0})],exports.InputMultiselect.prototype,"size",2);Da([O({attribute:"truncate-values-after",type:Number})],exports.InputMultiselect.prototype,"truncateValuesAfter",2);Da([O({type:Array})],exports.InputMultiselect.prototype,"value",2);Da([pe()],exports.InputMultiselect.prototype,"valueLabels",2);exports.InputMultiselect=Da([R(Wp)],exports.InputMultiselect);class zi extends Error{}class VL extends zi{constructor(e){super(`Invalid DateTime: ${e.toMessage()}`)}}class ZL extends zi{constructor(e){super(`Invalid Interval: ${e.toMessage()}`)}}class WL extends zi{constructor(e){super(`Invalid Duration: ${e.toMessage()}`)}}class va extends zi{}class Up extends zi{constructor(e){super(`Invalid unit ${e}`)}}class fr extends zi{}class $n extends zi{constructor(){super("Zone is an abstract class")}}const le="numeric",Or="short",cr="long",al={year:le,month:le,day:le},jp={year:le,month:Or,day:le},UL={year:le,month:Or,day:le,weekday:Or},Gp={year:le,month:cr,day:le},qp={year:le,month:cr,day:le,weekday:cr},Kp={hour:le,minute:le},Yp={hour:le,minute:le,second:le},Xp={hour:le,minute:le,second:le,timeZoneName:Or},Jp={hour:le,minute:le,second:le,timeZoneName:cr},Qp={hour:le,minute:le,hourCycle:"h23"},e5={hour:le,minute:le,second:le,hourCycle:"h23"},t5={hour:le,minute:le,second:le,hourCycle:"h23",timeZoneName:Or},r5={hour:le,minute:le,second:le,hourCycle:"h23",timeZoneName:cr},n5={year:le,month:le,day:le,hour:le,minute:le},i5={year:le,month:le,day:le,hour:le,minute:le,second:le},o5={year:le,month:Or,day:le,hour:le,minute:le},a5={year:le,month:Or,day:le,hour:le,minute:le,second:le},jL={year:le,month:Or,day:le,weekday:Or,hour:le,minute:le},s5={year:le,month:cr,day:le,hour:le,minute:le,timeZoneName:Or},l5={year:le,month:cr,day:le,hour:le,minute:le,second:le,timeZoneName:Or},c5={year:le,month:cr,day:le,weekday:cr,hour:le,minute:le,timeZoneName:cr},u5={year:le,month:cr,day:le,weekday:cr,hour:le,minute:le,second:le,timeZoneName:cr};class Na{get type(){throw new $n}get name(){throw new $n}get ianaName(){return this.name}get isUniversal(){throw new $n}offsetName(e,i){throw new $n}formatOffset(e,i){throw new $n}offset(e){throw new $n}equals(e){throw new $n}get isValid(){throw new $n}}let oc=null;class Al extends Na{static get instance(){return oc===null&&(oc=new Al),oc}get type(){return"system"}get name(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(e,{format:i,locale:o}){return h5(e,i,o)}formatOffset(e,i){return Ca(this.offset(e),i)}offset(e){return-new Date(e).getTimezoneOffset()}equals(e){return e.type==="system"}get isValid(){return!0}}let Ns={};function GL(n){return Ns[n]||(Ns[n]=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:n,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"})),Ns[n]}const qL={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};function KL(n,e){const i=n.format(e).replace(/\u200E/g,""),o=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(i),[,l,d,u,v,m,y,T]=o;return[u,l,d,v,m,y,T]}function YL(n,e){const i=n.formatToParts(e),o=[];for(let l=0;l<i.length;l++){const{type:d,value:u}=i[l],v=qL[d];d==="era"?o[v]=u:De(v)||(o[v]=parseInt(u,10))}return o}let ks={};class ln extends Na{static create(e){return ks[e]||(ks[e]=new ln(e)),ks[e]}static resetCache(){ks={},Ns={}}static isValidSpecifier(e){return this.isValidZone(e)}static isValidZone(e){if(!e)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:e}).format(),!0}catch{return!1}}constructor(e){super(),this.zoneName=e,this.valid=ln.isValidZone(e)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(e,{format:i,locale:o}){return h5(e,i,o,this.name)}formatOffset(e,i){return Ca(this.offset(e),i)}offset(e){const i=new Date(e);if(isNaN(i))return NaN;const o=GL(this.name);let[l,d,u,v,m,y,T]=o.formatToParts?YL(o,i):KL(o,i);v==="BC"&&(l=-Math.abs(l)+1);const $=Dl({year:l,month:d,day:u,hour:m===24?0:m,minute:y,second:T,millisecond:0});let E=+i;const N=E%1e3;return E-=N>=0?N:1e3+N,($-E)/(60*1e3)}equals(e){return e.type==="iana"&&e.name===this.name}get isValid(){return this.valid}}let Kh={};function XL(n,e={}){const i=JSON.stringify([n,e]);let o=Kh[i];return o||(o=new Intl.ListFormat(n,e),Kh[i]=o),o}let Ic={};function Ac(n,e={}){const i=JSON.stringify([n,e]);let o=Ic[i];return o||(o=new Intl.DateTimeFormat(n,e),Ic[i]=o),o}let Pc={};function JL(n,e={}){const i=JSON.stringify([n,e]);let o=Pc[i];return o||(o=new Intl.NumberFormat(n,e),Pc[i]=o),o}let Dc={};function QL(n,e={}){const{base:i,...o}=e,l=JSON.stringify([n,o]);let d=Dc[l];return d||(d=new Intl.RelativeTimeFormat(n,e),Dc[l]=d),d}let ba=null;function eS(){return ba||(ba=new Intl.DateTimeFormat().resolvedOptions().locale,ba)}function tS(n){const e=n.indexOf("-x-");e!==-1&&(n=n.substring(0,e));const i=n.indexOf("-u-");if(i===-1)return[n];{let o,l;try{o=Ac(n).resolvedOptions(),l=n}catch{const m=n.substring(0,i);o=Ac(m).resolvedOptions(),l=m}const{numberingSystem:d,calendar:u}=o;return[l,d,u]}}function rS(n,e,i){return(i||e)&&(n.includes("-u-")||(n+="-u"),i&&(n+=`-ca-${i}`),e&&(n+=`-nu-${e}`)),n}function nS(n){const e=[];for(let i=1;i<=12;i++){const o=Te.utc(2009,i,1);e.push(n(o))}return e}function iS(n){const e=[];for(let i=1;i<=7;i++){const o=Te.utc(2016,11,13+i);e.push(n(o))}return e}function $s(n,e,i,o){const l=n.listingMode();return l==="error"?null:l==="en"?i(e):o(e)}function oS(n){return n.numberingSystem&&n.numberingSystem!=="latn"?!1:n.numberingSystem==="latn"||!n.locale||n.locale.startsWith("en")||new Intl.DateTimeFormat(n.intl).resolvedOptions().numberingSystem==="latn"}class aS{constructor(e,i,o){this.padTo=o.padTo||0,this.floor=o.floor||!1;const{padTo:l,floor:d,...u}=o;if(!i||Object.keys(u).length>0){const v={useGrouping:!1,...o};o.padTo>0&&(v.minimumIntegerDigits=o.padTo),this.inf=JL(e,v)}}format(e){if(this.inf){const i=this.floor?Math.floor(e):e;return this.inf.format(i)}else{const i=this.floor?Math.floor(e):y0(e,3);return gt(i,this.padTo)}}}class sS{constructor(e,i,o){this.opts=o,this.originalZone=void 0;let l;if(this.opts.timeZone)this.dt=e;else if(e.zone.type==="fixed"){const u=-1*(e.offset/60),v=u>=0?`Etc/GMT+${u}`:`Etc/GMT${u}`;e.offset!==0&&ln.create(v).valid?(l=v,this.dt=e):(l="UTC",this.dt=e.offset===0?e:e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone)}else e.zone.type==="system"?this.dt=e:e.zone.type==="iana"?(this.dt=e,l=e.zone.name):(l="UTC",this.dt=e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone);const d={...this.opts};d.timeZone=d.timeZone||l,this.dtf=Ac(i,d)}format(){return this.originalZone?this.formatToParts().map(({value:e})=>e).join(""):this.dtf.format(this.dt.toJSDate())}formatToParts(){const e=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?e.map(i=>{if(i.type==="timeZoneName"){const o=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...i,value:o}}else return i}):e}resolvedOptions(){return this.dtf.resolvedOptions()}}class lS{constructor(e,i,o){this.opts={style:"long",...o},!i&&d5()&&(this.rtf=QL(e,o))}format(e,i){return this.rtf?this.rtf.format(e,i):SS(i,e,this.opts.numeric,this.opts.style!=="long")}formatToParts(e,i){return this.rtf?this.rtf.formatToParts(e,i):[]}}class tt{static fromOpts(e){return tt.create(e.locale,e.numberingSystem,e.outputCalendar,e.defaultToEN)}static create(e,i,o,l=!1){const d=e||pt.defaultLocale,u=d||(l?"en-US":eS()),v=i||pt.defaultNumberingSystem,m=o||pt.defaultOutputCalendar;return new tt(u,v,m,d)}static resetCache(){ba=null,Ic={},Pc={},Dc={}}static fromObject({locale:e,numberingSystem:i,outputCalendar:o}={}){return tt.create(e,i,o)}constructor(e,i,o,l){const[d,u,v]=tS(e);this.locale=d,this.numberingSystem=i||u||null,this.outputCalendar=o||v||null,this.intl=rS(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=l,this.fastNumbersCached=null}get fastNumbers(){return this.fastNumbersCached==null&&(this.fastNumbersCached=oS(this)),this.fastNumbersCached}listingMode(){const e=this.isEnglish(),i=(this.numberingSystem===null||this.numberingSystem==="latn")&&(this.outputCalendar===null||this.outputCalendar==="gregory");return e&&i?"en":"intl"}clone(e){return!e||Object.getOwnPropertyNames(e).length===0?this:tt.create(e.locale||this.specifiedLocale,e.numberingSystem||this.numberingSystem,e.outputCalendar||this.outputCalendar,e.defaultToEN||!1)}redefaultToEN(e={}){return this.clone({...e,defaultToEN:!0})}redefaultToSystem(e={}){return this.clone({...e,defaultToEN:!1})}months(e,i=!1){return $s(this,e,g5,()=>{const o=i?{month:e,day:"numeric"}:{month:e},l=i?"format":"standalone";return this.monthsCache[l][e]||(this.monthsCache[l][e]=nS(d=>this.extract(d,o,"month"))),this.monthsCache[l][e]})}weekdays(e,i=!1){return $s(this,e,m5,()=>{const o=i?{weekday:e,year:"numeric",month:"long",day:"numeric"}:{weekday:e},l=i?"format":"standalone";return this.weekdaysCache[l][e]||(this.weekdaysCache[l][e]=iS(d=>this.extract(d,o,"weekday"))),this.weekdaysCache[l][e]})}meridiems(){return $s(this,void 0,()=>y5,()=>{if(!this.meridiemCache){const e={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[Te.utc(2016,11,13,9),Te.utc(2016,11,13,19)].map(i=>this.extract(i,e,"dayperiod"))}return this.meridiemCache})}eras(e){return $s(this,e,C5,()=>{const i={era:e};return this.eraCache[e]||(this.eraCache[e]=[Te.utc(-40,1,1),Te.utc(2017,1,1)].map(o=>this.extract(o,i,"era"))),this.eraCache[e]})}extract(e,i,o){const l=this.dtFormatter(e,i),d=l.formatToParts(),u=d.find(v=>v.type.toLowerCase()===o);return u?u.value:null}numberFormatter(e={}){return new aS(this.intl,e.forceSimple||this.fastNumbers,e)}dtFormatter(e,i={}){return new sS(e,this.intl,i)}relFormatter(e={}){return new lS(this.intl,this.isEnglish(),e)}listFormatter(e={}){return XL(this.intl,e)}isEnglish(){return this.locale==="en"||this.locale.toLowerCase()==="en-us"||new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith("en-us")}equals(e){return this.locale===e.locale&&this.numberingSystem===e.numberingSystem&&this.outputCalendar===e.outputCalendar}}let ac=null;class Wt extends Na{static get utcInstance(){return ac===null&&(ac=new Wt(0)),ac}static instance(e){return e===0?Wt.utcInstance:new Wt(e)}static parseSpecifier(e){if(e){const i=e.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(i)return new Wt(Nl(i[1],i[2]))}return null}constructor(e){super(),this.fixed=e}get type(){return"fixed"}get name(){return this.fixed===0?"UTC":`UTC${Ca(this.fixed,"narrow")}`}get ianaName(){return this.fixed===0?"Etc/UTC":`Etc/GMT${Ca(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(e,i){return Ca(this.fixed,i)}get isUniversal(){return!0}offset(){return this.fixed}equals(e){return e.type==="fixed"&&e.fixed===this.fixed}get isValid(){return!0}}class cS extends Na{constructor(e){super(),this.zoneName=e}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return!1}get isValid(){return!1}}function In(n,e){if(De(n)||n===null)return e;if(n instanceof Na)return n;if(uS(n)){const i=n.toLowerCase();return i==="default"?e:i==="local"||i==="system"?Al.instance:i==="utc"||i==="gmt"?Wt.utcInstance:Wt.parseSpecifier(i)||ln.create(n)}else return hi(n)?Wt.instance(n):typeof n=="object"&&"offset"in n&&typeof n.offset=="function"?n:new cS(n)}let Yh=()=>Date.now(),Xh="system",Jh=null,Qh=null,e2=null,t2=60,r2;class pt{static get now(){return Yh}static set now(e){Yh=e}static set defaultZone(e){Xh=e}static get defaultZone(){return In(Xh,Al.instance)}static get defaultLocale(){return Jh}static set defaultLocale(e){Jh=e}static get defaultNumberingSystem(){return Qh}static set defaultNumberingSystem(e){Qh=e}static get defaultOutputCalendar(){return e2}static set defaultOutputCalendar(e){e2=e}static get twoDigitCutoffYear(){return t2}static set twoDigitCutoffYear(e){t2=e%100}static get throwOnInvalid(){return r2}static set throwOnInvalid(e){r2=e}static resetCaches(){tt.resetCache(),ln.resetCache()}}function De(n){return typeof n=="undefined"}function hi(n){return typeof n=="number"}function Pl(n){return typeof n=="number"&&n%1===0}function uS(n){return typeof n=="string"}function dS(n){return Object.prototype.toString.call(n)==="[object Date]"}function d5(){try{return typeof Intl!="undefined"&&!!Intl.RelativeTimeFormat}catch{return!1}}function hS(n){return Array.isArray(n)?n:[n]}function n2(n,e,i){if(n.length!==0)return n.reduce((o,l)=>{const d=[e(l),l];return o&&i(o[0],d[0])===o[0]?o:d},null)[1]}function fS(n,e){return e.reduce((i,o)=>(i[o]=n[o],i),{})}function lo(n,e){return Object.prototype.hasOwnProperty.call(n,e)}function an(n,e,i){return Pl(n)&&n>=e&&n<=i}function pS(n,e){return n-e*Math.floor(n/e)}function gt(n,e=2){const i=n<0;let o;return i?o="-"+(""+-n).padStart(e,"0"):o=(""+n).padStart(e,"0"),o}function En(n){if(!(De(n)||n===null||n===""))return parseInt(n,10)}function ii(n){if(!(De(n)||n===null||n===""))return parseFloat(n)}function m0(n){if(!(De(n)||n===null||n==="")){const e=parseFloat("0."+n)*1e3;return Math.floor(e)}}function y0(n,e,i=!1){const o=10**e;return(i?Math.trunc:Math.round)(n*o)/o}function Ha(n){return n%4===0&&(n%100!==0||n%400===0)}function ya(n){return Ha(n)?366:365}function sl(n,e){const i=pS(e-1,12)+1,o=n+(e-i)/12;return i===2?Ha(o)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][i-1]}function Dl(n){let e=Date.UTC(n.year,n.month-1,n.day,n.hour,n.minute,n.second,n.millisecond);return n.year<100&&n.year>=0&&(e=new Date(e),e.setUTCFullYear(n.year,n.month-1,n.day)),+e}function ll(n){const e=(n+Math.floor(n/4)-Math.floor(n/100)+Math.floor(n/400))%7,i=n-1,o=(i+Math.floor(i/4)-Math.floor(i/100)+Math.floor(i/400))%7;return e===4||o===3?53:52}function Nc(n){return n>99?n:n>pt.twoDigitCutoffYear?1900+n:2e3+n}function h5(n,e,i,o=null){const l=new Date(n),d={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};o&&(d.timeZone=o);const u={timeZoneName:e,...d},v=new Intl.DateTimeFormat(i,u).formatToParts(l).find(m=>m.type.toLowerCase()==="timezonename");return v?v.value:null}function Nl(n,e){let i=parseInt(n,10);Number.isNaN(i)&&(i=0);const o=parseInt(e,10)||0,l=i<0||Object.is(i,-0)?-o:o;return i*60+l}function f5(n){const e=Number(n);if(typeof n=="boolean"||n===""||Number.isNaN(e))throw new fr(`Invalid unit value ${n}`);return e}function cl(n,e){const i={};for(const o in n)if(lo(n,o)){const l=n[o];if(l==null)continue;i[e(o)]=f5(l)}return i}function Ca(n,e){const i=Math.trunc(Math.abs(n/60)),o=Math.trunc(Math.abs(n%60)),l=n>=0?"+":"-";switch(e){case"short":return`${l}${gt(i,2)}:${gt(o,2)}`;case"narrow":return`${l}${i}${o>0?`:${o}`:""}`;case"techie":return`${l}${gt(i,2)}${gt(o,2)}`;default:throw new RangeError(`Value format ${e} is out of range for property format`)}}function Hl(n){return fS(n,["hour","minute","second","millisecond"])}const gS=["January","February","March","April","May","June","July","August","September","October","November","December"],p5=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],vS=["J","F","M","A","M","J","J","A","S","O","N","D"];function g5(n){switch(n){case"narrow":return[...vS];case"short":return[...p5];case"long":return[...gS];case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}const v5=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],b5=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],bS=["M","T","W","T","F","S","S"];function m5(n){switch(n){case"narrow":return[...bS];case"short":return[...b5];case"long":return[...v5];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}const y5=["AM","PM"],mS=["Before Christ","Anno Domini"],yS=["BC","AD"],CS=["B","A"];function C5(n){switch(n){case"narrow":return[...CS];case"short":return[...yS];case"long":return[...mS];default:return null}}function wS(n){return y5[n.hour<12?0:1]}function xS(n,e){return m5(e)[n.weekday-1]}function zS(n,e){return g5(e)[n.month-1]}function LS(n,e){return C5(e)[n.year<0?0:1]}function SS(n,e,i="always",o=!1){const l={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},d=["hours","minutes","seconds"].indexOf(n)===-1;if(i==="auto"&&d){const S=n==="days";switch(e){case 1:return S?"tomorrow":`next ${l[n][0]}`;case-1:return S?"yesterday":`last ${l[n][0]}`;case 0:return S?"today":`this ${l[n][0]}`}}const u=Object.is(e,-0)||e<0,v=Math.abs(e),m=v===1,y=l[n],T=o?m?y[1]:y[2]||y[1]:m?l[n][0]:n;return u?`${v} ${T} ago`:`in ${v} ${T}`}function i2(n,e){let i="";for(const o of n)o.literal?i+=o.val:i+=e(o.val);return i}const MS={D:al,DD:jp,DDD:Gp,DDDD:qp,t:Kp,tt:Yp,ttt:Xp,tttt:Jp,T:Qp,TT:e5,TTT:t5,TTTT:r5,f:n5,ff:o5,fff:s5,ffff:c5,F:i5,FF:a5,FFF:l5,FFFF:u5};class Dt{static create(e,i={}){return new Dt(e,i)}static parseFormat(e){let i=null,o="",l=!1;const d=[];for(let u=0;u<e.length;u++){const v=e.charAt(u);v==="'"?(o.length>0&&d.push({literal:l||/^\s+$/.test(o),val:o}),i=null,o="",l=!l):l||v===i?o+=v:(o.length>0&&d.push({literal:/^\s+$/.test(o),val:o}),o=v,i=v)}return o.length>0&&d.push({literal:l||/^\s+$/.test(o),val:o}),d}static macroTokenToFormatOpts(e){return MS[e]}constructor(e,i){this.opts=i,this.loc=e,this.systemLoc=null}formatWithSystemDefault(e,i){return this.systemLoc===null&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(e,{...this.opts,...i}).format()}dtFormatter(e,i={}){return this.loc.dtFormatter(e,{...this.opts,...i})}formatDateTime(e,i){return this.dtFormatter(e,i).format()}formatDateTimeParts(e,i){return this.dtFormatter(e,i).formatToParts()}formatInterval(e,i){return this.dtFormatter(e.start,i).dtf.formatRange(e.start.toJSDate(),e.end.toJSDate())}resolvedOptions(e,i){return this.dtFormatter(e,i).resolvedOptions()}num(e,i=0){if(this.opts.forceSimple)return gt(e,i);const o={...this.opts};return i>0&&(o.padTo=i),this.loc.numberFormatter(o).format(e)}formatDateTimeFromString(e,i){const o=this.loc.listingMode()==="en",l=this.loc.outputCalendar&&this.loc.outputCalendar!=="gregory",d=(E,N)=>this.loc.extract(e,E,N),u=E=>e.isOffsetFixed&&e.offset===0&&E.allowZ?"Z":e.isValid?e.zone.formatOffset(e.ts,E.format):"",v=()=>o?wS(e):d({hour:"numeric",hourCycle:"h12"},"dayperiod"),m=(E,N)=>o?zS(e,E):d(N?{month:E}:{month:E,day:"numeric"},"month"),y=(E,N)=>o?xS(e,E):d(N?{weekday:E}:{weekday:E,month:"long",day:"numeric"},"weekday"),T=E=>{const N=Dt.macroTokenToFormatOpts(E);return N?this.formatWithSystemDefault(e,N):E},S=E=>o?LS(e,E):d({era:E},"era"),$=E=>{switch(E){case"S":return this.num(e.millisecond);case"u":case"SSS":return this.num(e.millisecond,3);case"s":return this.num(e.second);case"ss":return this.num(e.second,2);case"uu":return this.num(Math.floor(e.millisecond/10),2);case"uuu":return this.num(Math.floor(e.millisecond/100));case"m":return this.num(e.minute);case"mm":return this.num(e.minute,2);case"h":return this.num(e.hour%12===0?12:e.hour%12);case"hh":return this.num(e.hour%12===0?12:e.hour%12,2);case"H":return this.num(e.hour);case"HH":return this.num(e.hour,2);case"Z":return u({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return u({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return u({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return e.zone.offsetName(e.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return e.zone.offsetName(e.ts,{format:"long",locale:this.loc.locale});case"z":return e.zoneName;case"a":return v();case"d":return l?d({day:"numeric"},"day"):this.num(e.day);case"dd":return l?d({day:"2-digit"},"day"):this.num(e.day,2);case"c":return this.num(e.weekday);case"ccc":return y("short",!0);case"cccc":return y("long",!0);case"ccccc":return y("narrow",!0);case"E":return this.num(e.weekday);case"EEE":return y("short",!1);case"EEEE":return y("long",!1);case"EEEEE":return y("narrow",!1);case"L":return l?d({month:"numeric",day:"numeric"},"month"):this.num(e.month);case"LL":return l?d({month:"2-digit",day:"numeric"},"month"):this.num(e.month,2);case"LLL":return m("short",!0);case"LLLL":return m("long",!0);case"LLLLL":return m("narrow",!0);case"M":return l?d({month:"numeric"},"month"):this.num(e.month);case"MM":return l?d({month:"2-digit"},"month"):this.num(e.month,2);case"MMM":return m("short",!1);case"MMMM":return m("long",!1);case"MMMMM":return m("narrow",!1);case"y":return l?d({year:"numeric"},"year"):this.num(e.year);case"yy":return l?d({year:"2-digit"},"year"):this.num(e.year.toString().slice(-2),2);case"yyyy":return l?d({year:"numeric"},"year"):this.num(e.year,4);case"yyyyyy":return l?d({year:"numeric"},"year"):this.num(e.year,6);case"G":return S("short");case"GG":return S("long");case"GGGGG":return S("narrow");case"kk":return this.num(e.weekYear.toString().slice(-2),2);case"kkkk":return this.num(e.weekYear,4);case"W":return this.num(e.weekNumber);case"WW":return this.num(e.weekNumber,2);case"o":return this.num(e.ordinal);case"ooo":return this.num(e.ordinal,3);case"q":return this.num(e.quarter);case"qq":return this.num(e.quarter,2);case"X":return this.num(Math.floor(e.ts/1e3));case"x":return this.num(e.ts);default:return T(E)}};return i2(Dt.parseFormat(i),$)}formatDurationFromString(e,i){const o=m=>{switch(m[0]){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"w":return"week";case"M":return"month";case"y":return"year";default:return null}},l=m=>y=>{const T=o(y);return T?this.num(m.get(T),y.length):y},d=Dt.parseFormat(i),u=d.reduce((m,{literal:y,val:T})=>y?m:m.concat(T),[]),v=e.shiftTo(...u.map(o).filter(m=>m));return i2(d,l(v))}}class Tr{constructor(e,i){this.reason=e,this.explanation=i}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}const w5=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function yo(...n){const e=n.reduce((i,o)=>i+o.source,"");return RegExp(`^${e}$`)}function Co(...n){return e=>n.reduce(([i,o,l],d)=>{const[u,v,m]=d(e,l);return[{...i,...u},v||o,m]},[{},null,1]).slice(0,2)}function wo(n,...e){if(n==null)return[null,null];for(const[i,o]of e){const l=i.exec(n);if(l)return o(l)}return[null,null]}function x5(...n){return(e,i)=>{const o={};let l;for(l=0;l<n.length;l++)o[n[l]]=En(e[i+l]);return[o,null,i+l]}}const z5=/(?:(Z)|([+-]\d\d)(?::?(\d\d))?)/,TS=`(?:${z5.source}?(?:\\[(${w5.source})\\])?)?`,C0=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,L5=RegExp(`${C0.source}${TS}`),w0=RegExp(`(?:T${L5.source})?`),kS=/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,$S=/(\d{4})-?W(\d\d)(?:-?(\d))?/,OS=/(\d{4})-?(\d{3})/,ES=x5("weekYear","weekNumber","weekDay"),_S=x5("year","ordinal"),IS=/(\d{4})-(\d\d)-(\d\d)/,S5=RegExp(`${C0.source} ?(?:${z5.source}|(${w5.source}))?`),AS=RegExp(`(?: ${S5.source})?`);function to(n,e,i){const o=n[e];return De(o)?i:En(o)}function PS(n,e){return[{year:to(n,e),month:to(n,e+1,1),day:to(n,e+2,1)},null,e+3]}function xo(n,e){return[{hours:to(n,e,0),minutes:to(n,e+1,0),seconds:to(n,e+2,0),milliseconds:m0(n[e+3])},null,e+4]}function Ra(n,e){const i=!n[e]&&!n[e+1],o=Nl(n[e+1],n[e+2]),l=i?null:Wt.instance(o);return[{},l,e+3]}function Fa(n,e){const i=n[e]?ln.create(n[e]):null;return[{},i,e+1]}const DS=RegExp(`^T?${C0.source}$`),NS=/^-?P(?:(?:(-?\d{1,20}(?:\.\d{1,20})?)Y)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20}(?:\.\d{1,20})?)W)?(?:(-?\d{1,20}(?:\.\d{1,20})?)D)?(?:T(?:(-?\d{1,20}(?:\.\d{1,20})?)H)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,20}))?S)?)?)$/;function HS(n){const[e,i,o,l,d,u,v,m,y]=n,T=e[0]==="-",S=m&&m[0]==="-",$=(E,N=!1)=>E!==void 0&&(N||E&&T)?-E:E;return[{years:$(ii(i)),months:$(ii(o)),weeks:$(ii(l)),days:$(ii(d)),hours:$(ii(u)),minutes:$(ii(v)),seconds:$(ii(m),m==="-0"),milliseconds:$(m0(y),S)}]}const RS={GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function x0(n,e,i,o,l,d,u){const v={year:e.length===2?Nc(En(e)):En(e),month:p5.indexOf(i)+1,day:En(o),hour:En(l),minute:En(d)};return u&&(v.second=En(u)),n&&(v.weekday=n.length>3?v5.indexOf(n)+1:b5.indexOf(n)+1),v}const FS=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function BS(n){const[,e,i,o,l,d,u,v,m,y,T,S]=n,$=x0(e,l,o,i,d,u,v);let E;return m?E=RS[m]:y?E=0:E=Nl(T,S),[$,new Wt(E)]}function VS(n){return n.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}const ZS=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,WS=/^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,US=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function o2(n){const[,e,i,o,l,d,u,v]=n;return[x0(e,l,o,i,d,u,v),Wt.utcInstance]}function jS(n){const[,e,i,o,l,d,u,v]=n;return[x0(e,v,i,o,l,d,u),Wt.utcInstance]}const GS=yo(kS,w0),qS=yo($S,w0),KS=yo(OS,w0),YS=yo(L5),M5=Co(PS,xo,Ra,Fa),XS=Co(ES,xo,Ra,Fa),JS=Co(_S,xo,Ra,Fa),QS=Co(xo,Ra,Fa);function eM(n){return wo(n,[GS,M5],[qS,XS],[KS,JS],[YS,QS])}function tM(n){return wo(VS(n),[FS,BS])}function rM(n){return wo(n,[ZS,o2],[WS,o2],[US,jS])}function nM(n){return wo(n,[NS,HS])}const iM=Co(xo);function oM(n){return wo(n,[DS,iM])}const aM=yo(IS,AS),sM=yo(S5),lM=Co(xo,Ra,Fa);function cM(n){return wo(n,[aM,M5],[sM,lM])}const uM="Invalid Duration",T5={weeks:{days:7,hours:7*24,minutes:7*24*60,seconds:7*24*60*60,milliseconds:7*24*60*60*1e3},days:{hours:24,minutes:24*60,seconds:24*60*60,milliseconds:24*60*60*1e3},hours:{minutes:60,seconds:60*60,milliseconds:60*60*1e3},minutes:{seconds:60,milliseconds:60*1e3},seconds:{milliseconds:1e3}},dM={years:{quarters:4,months:12,weeks:52,days:365,hours:365*24,minutes:365*24*60,seconds:365*24*60*60,milliseconds:365*24*60*60*1e3},quarters:{months:3,weeks:13,days:91,hours:91*24,minutes:91*24*60,seconds:91*24*60*60,milliseconds:91*24*60*60*1e3},months:{weeks:4,days:30,hours:30*24,minutes:30*24*60,seconds:30*24*60*60,milliseconds:30*24*60*60*1e3},...T5},hr=146097/400,Yi=146097/4800,hM={years:{quarters:4,months:12,weeks:hr/7,days:hr,hours:hr*24,minutes:hr*24*60,seconds:hr*24*60*60,milliseconds:hr*24*60*60*1e3},quarters:{months:3,weeks:hr/28,days:hr/4,hours:hr*24/4,minutes:hr*24*60/4,seconds:hr*24*60*60/4,milliseconds:hr*24*60*60*1e3/4},months:{weeks:Yi/7,days:Yi,hours:Yi*24,minutes:Yi*24*60,seconds:Yi*24*60*60,milliseconds:Yi*24*60*60*1e3},...T5},si=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],k5=si.slice(0).reverse();function On(n,e,i=!1){const o={values:i?e.values:{...n.values,...e.values||{}},loc:n.loc.clone(e.loc),conversionAccuracy:e.conversionAccuracy||n.conversionAccuracy,matrix:e.matrix||n.matrix};return new Ne(o)}function a2(n){return Math.trunc(n*1e3)/1e3}function $5(n,e,i,o,l){const d=n[l][i],u=e[i]/d,v=Math.floor(u);o[l]=a2(o[l]+v),e[i]=a2(e[i]-v*d)}function fM(n,e){k5.reduce((i,o)=>De(e[o])?i:(i&&$5(n,e,i,e,o),o),null)}function pM(n){const e={};for(const[i,o]of Object.entries(n))o!==0&&(e[i]=o);return e}class Ne{constructor(e){const i=e.conversionAccuracy==="longterm"||!1;let o=i?hM:dM;e.matrix&&(o=e.matrix),this.values=e.values,this.loc=e.loc||tt.create(),this.conversionAccuracy=i?"longterm":"casual",this.invalid=e.invalid||null,this.matrix=o,this.isLuxonDuration=!0}static fromMillis(e,i){return Ne.fromObject({milliseconds:e},i)}static fromObject(e,i={}){if(e==null||typeof e!="object")throw new fr(`Duration.fromObject: argument expected to be an object, got ${e===null?"null":typeof e}`);return new Ne({values:cl(e,Ne.normalizeUnit),loc:tt.fromObject(i),conversionAccuracy:i.conversionAccuracy,matrix:i.matrix})}static fromDurationLike(e){if(hi(e))return Ne.fromMillis(e);if(Ne.isDuration(e))return e;if(typeof e=="object")return Ne.fromObject(e);throw new fr(`Unknown duration argument ${e} of type ${typeof e}`)}static fromISO(e,i){const[o]=nM(e);return o?Ne.fromObject(o,i):Ne.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static fromISOTime(e,i){const[o]=oM(e);return o?Ne.fromObject(o,i):Ne.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static invalid(e,i=null){if(!e)throw new fr("need to specify a reason the Duration is invalid");const o=e instanceof Tr?e:new Tr(e,i);if(pt.throwOnInvalid)throw new WL(o);return new Ne({invalid:o})}static normalizeUnit(e){const i={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[e&&e.toLowerCase()];if(!i)throw new Up(e);return i}static isDuration(e){return e&&e.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(e,i={}){const o={...i,floor:i.round!==!1&&i.floor!==!1};return this.isValid?Dt.create(this.loc,o).formatDurationFromString(this,e):uM}toHuman(e={}){const i=si.map(o=>{const l=this.values[o];return De(l)?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...e,unit:o.slice(0,-1)}).format(l)}).filter(o=>o);return this.loc.listFormatter({type:"conjunction",style:e.listStyle||"narrow",...e}).format(i)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let e="P";return this.years!==0&&(e+=this.years+"Y"),(this.months!==0||this.quarters!==0)&&(e+=this.months+this.quarters*3+"M"),this.weeks!==0&&(e+=this.weeks+"W"),this.days!==0&&(e+=this.days+"D"),(this.hours!==0||this.minutes!==0||this.seconds!==0||this.milliseconds!==0)&&(e+="T"),this.hours!==0&&(e+=this.hours+"H"),this.minutes!==0&&(e+=this.minutes+"M"),(this.seconds!==0||this.milliseconds!==0)&&(e+=y0(this.seconds+this.milliseconds/1e3,3)+"S"),e==="P"&&(e+="T0S"),e}toISOTime(e={}){if(!this.isValid)return null;const i=this.toMillis();return i<0||i>=864e5?null:(e={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...e,includeOffset:!1},Te.fromMillis(i,{zone:"UTC"}).toISOTime(e))}toJSON(){return this.toISO()}toString(){return this.toISO()}toMillis(){var i,o;let e=(i=this.values.milliseconds)!=null?i:0;for(let l of k5.slice(1))(o=this.values)!=null&&o[l]&&(e+=this.values[l]*this.matrix[l].milliseconds);return e}valueOf(){return this.toMillis()}plus(e){if(!this.isValid)return this;const i=Ne.fromDurationLike(e),o={};for(const l of si)(lo(i.values,l)||lo(this.values,l))&&(o[l]=i.get(l)+this.get(l));return On(this,{values:o},!0)}minus(e){if(!this.isValid)return this;const i=Ne.fromDurationLike(e);return this.plus(i.negate())}mapUnits(e){if(!this.isValid)return this;const i={};for(const o of Object.keys(this.values))i[o]=f5(e(this.values[o],o));return On(this,{values:i},!0)}get(e){return this[Ne.normalizeUnit(e)]}set(e){if(!this.isValid)return this;const i={...this.values,...cl(e,Ne.normalizeUnit)};return On(this,{values:i})}reconfigure({locale:e,numberingSystem:i,conversionAccuracy:o,matrix:l}={}){const u={loc:this.loc.clone({locale:e,numberingSystem:i}),matrix:l,conversionAccuracy:o};return On(this,u)}as(e){return this.isValid?this.shiftTo(e).get(e):NaN}normalize(){if(!this.isValid)return this;const e=this.toObject();return this.valueOf()>=0?(fM(this.matrix,e),On(this,{values:e},!0)):this.negate().normalize().negate()}rescale(){if(!this.isValid)return this;const e=pM(this.normalize().shiftToAll().toObject());return On(this,{values:e},!0)}shiftTo(...e){if(!this.isValid)return this;if(e.length===0)return this;e=e.map(u=>Ne.normalizeUnit(u));const i={},o={},l=this.toObject();let d;for(const u of si)if(e.indexOf(u)>=0){d=u;let v=0;for(const y in o)v+=this.matrix[y][u]*o[y],o[y]=0;hi(l[u])&&(v+=l[u]);const m=Math.trunc(v);i[u]=m,o[u]=(v*1e3-m*1e3)/1e3;for(const y in l)si.indexOf(y)>si.indexOf(u)&&$5(this.matrix,l,y,i,u)}else hi(l[u])&&(o[u]=l[u]);for(const u in o)o[u]!==0&&(i[d]+=u===d?o[u]:o[u]/this.matrix[d][u]);return On(this,{values:i},!0).normalize()}shiftToAll(){return this.isValid?this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds"):this}negate(){if(!this.isValid)return this;const e={};for(const i of Object.keys(this.values))e[i]=this.values[i]===0?0:-this.values[i];return On(this,{values:e},!0)}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(e){if(!this.isValid||!e.isValid||!this.loc.equals(e.loc))return!1;function i(o,l){return o===void 0||o===0?l===void 0||l===0:o===l}for(const o of si)if(!i(this.values[o],e.values[o]))return!1;return!0}}const Xi="Invalid Interval";function gM(n,e){return!n||!n.isValid?st.invalid("missing or invalid start"):!e||!e.isValid?st.invalid("missing or invalid end"):e<n?st.invalid("end before start",`The end of an interval must be after its start, but you had start=${n.toISO()} and end=${e.toISO()}`):null}class st{constructor(e){this.s=e.start,this.e=e.end,this.invalid=e.invalid||null,this.isLuxonInterval=!0}static invalid(e,i=null){if(!e)throw new fr("need to specify a reason the Interval is invalid");const o=e instanceof Tr?e:new Tr(e,i);if(pt.throwOnInvalid)throw new ZL(o);return new st({invalid:o})}static fromDateTimes(e,i){const o=ha(e),l=ha(i),d=gM(o,l);return d==null?new st({start:o,end:l}):d}static after(e,i){const o=Ne.fromDurationLike(i),l=ha(e);return st.fromDateTimes(l,l.plus(o))}static before(e,i){const o=Ne.fromDurationLike(i),l=ha(e);return st.fromDateTimes(l.minus(o),l)}static fromISO(e,i){const[o,l]=(e||"").split("/",2);if(o&&l){let d,u;try{d=Te.fromISO(o,i),u=d.isValid}catch{u=!1}let v,m;try{v=Te.fromISO(l,i),m=v.isValid}catch{m=!1}if(u&&m)return st.fromDateTimes(d,v);if(u){const y=Ne.fromISO(l,i);if(y.isValid)return st.after(d,y)}else if(m){const y=Ne.fromISO(o,i);if(y.isValid)return st.before(v,y)}}return st.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static isInterval(e){return e&&e.isLuxonInterval||!1}get start(){return this.isValid?this.s:null}get end(){return this.isValid?this.e:null}get isValid(){return this.invalidReason===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}length(e="milliseconds"){return this.isValid?this.toDuration(e).get(e):NaN}count(e="milliseconds"){if(!this.isValid)return NaN;const i=this.start.startOf(e),o=this.end.startOf(e);return Math.floor(o.diff(i,e).get(e))+(o.valueOf()!==this.end.valueOf())}hasSame(e){return this.isValid?this.isEmpty()||this.e.minus(1).hasSame(this.s,e):!1}isEmpty(){return this.s.valueOf()===this.e.valueOf()}isAfter(e){return this.isValid?this.s>e:!1}isBefore(e){return this.isValid?this.e<=e:!1}contains(e){return this.isValid?this.s<=e&&this.e>e:!1}set({start:e,end:i}={}){return this.isValid?st.fromDateTimes(e||this.s,i||this.e):this}splitAt(...e){if(!this.isValid)return[];const i=e.map(ha).filter(u=>this.contains(u)).sort(),o=[];let{s:l}=this,d=0;for(;l<this.e;){const u=i[d]||this.e,v=+u>+this.e?this.e:u;o.push(st.fromDateTimes(l,v)),l=v,d+=1}return o}splitBy(e){const i=Ne.fromDurationLike(e);if(!this.isValid||!i.isValid||i.as("milliseconds")===0)return[];let{s:o}=this,l=1,d;const u=[];for(;o<this.e;){const v=this.start.plus(i.mapUnits(m=>m*l));d=+v>+this.e?this.e:v,u.push(st.fromDateTimes(o,d)),o=d,l+=1}return u}divideEqually(e){return this.isValid?this.splitBy(this.length()/e).slice(0,e):[]}overlaps(e){return this.e>e.s&&this.s<e.e}abutsStart(e){return this.isValid?+this.e==+e.s:!1}abutsEnd(e){return this.isValid?+e.e==+this.s:!1}engulfs(e){return this.isValid?this.s<=e.s&&this.e>=e.e:!1}equals(e){return!this.isValid||!e.isValid?!1:this.s.equals(e.s)&&this.e.equals(e.e)}intersection(e){if(!this.isValid)return this;const i=this.s>e.s?this.s:e.s,o=this.e<e.e?this.e:e.e;return i>=o?null:st.fromDateTimes(i,o)}union(e){if(!this.isValid)return this;const i=this.s<e.s?this.s:e.s,o=this.e>e.e?this.e:e.e;return st.fromDateTimes(i,o)}static merge(e){const[i,o]=e.sort((l,d)=>l.s-d.s).reduce(([l,d],u)=>d?d.overlaps(u)||d.abutsStart(u)?[l,d.union(u)]:[l.concat([d]),u]:[l,u],[[],null]);return o&&i.push(o),i}static xor(e){let i=null,o=0;const l=[],d=e.map(m=>[{time:m.s,type:"s"},{time:m.e,type:"e"}]),u=Array.prototype.concat(...d),v=u.sort((m,y)=>m.time-y.time);for(const m of v)o+=m.type==="s"?1:-1,o===1?i=m.time:(i&&+i!=+m.time&&l.push(st.fromDateTimes(i,m.time)),i=null);return st.merge(l)}difference(...e){return st.xor([this].concat(e)).map(i=>this.intersection(i)).filter(i=>i&&!i.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} – ${this.e.toISO()})`:Xi}toLocaleString(e=al,i={}){return this.isValid?Dt.create(this.s.loc.clone(i),e).formatInterval(this):Xi}toISO(e){return this.isValid?`${this.s.toISO(e)}/${this.e.toISO(e)}`:Xi}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:Xi}toISOTime(e){return this.isValid?`${this.s.toISOTime(e)}/${this.e.toISOTime(e)}`:Xi}toFormat(e,{separator:i=" – "}={}){return this.isValid?`${this.s.toFormat(e)}${i}${this.e.toFormat(e)}`:Xi}toDuration(e,i){return this.isValid?this.e.diff(this.s,e,i):Ne.invalid(this.invalidReason)}mapEndpoints(e){return st.fromDateTimes(e(this.s),e(this.e))}}class Os{static hasDST(e=pt.defaultZone){const i=Te.now().setZone(e).set({month:12});return!e.isUniversal&&i.offset!==i.set({month:6}).offset}static isValidIANAZone(e){return ln.isValidZone(e)}static normalizeZone(e){return In(e,pt.defaultZone)}static months(e="long",{locale:i=null,numberingSystem:o=null,locObj:l=null,outputCalendar:d="gregory"}={}){return(l||tt.create(i,o,d)).months(e)}static monthsFormat(e="long",{locale:i=null,numberingSystem:o=null,locObj:l=null,outputCalendar:d="gregory"}={}){return(l||tt.create(i,o,d)).months(e,!0)}static weekdays(e="long",{locale:i=null,numberingSystem:o=null,locObj:l=null}={}){return(l||tt.create(i,o,null)).weekdays(e)}static weekdaysFormat(e="long",{locale:i=null,numberingSystem:o=null,locObj:l=null}={}){return(l||tt.create(i,o,null)).weekdays(e,!0)}static meridiems({locale:e=null}={}){return tt.create(e).meridiems()}static eras(e="short",{locale:i=null}={}){return tt.create(i,null,"gregory").eras(e)}static features(){return{relative:d5()}}}function s2(n,e){const i=l=>l.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),o=i(e)-i(n);return Math.floor(Ne.fromMillis(o).as("days"))}function vM(n,e,i){const o=[["years",(m,y)=>y.year-m.year],["quarters",(m,y)=>y.quarter-m.quarter+(y.year-m.year)*4],["months",(m,y)=>y.month-m.month+(y.year-m.year)*12],["weeks",(m,y)=>{const T=s2(m,y);return(T-T%7)/7}],["days",s2]],l={},d=n;let u,v;for(const[m,y]of o)i.indexOf(m)>=0&&(u=m,l[m]=y(n,e),v=d.plus(l),v>e?(l[m]--,n=d.plus(l),n>e&&(v=n,l[m]--,n=d.plus(l))):n=v);return[n,l,v,u]}function bM(n,e,i,o){let[l,d,u,v]=vM(n,e,i);const m=e-l,y=i.filter(S=>["hours","minutes","seconds","milliseconds"].indexOf(S)>=0);y.length===0&&(u<e&&(u=l.plus({[v]:1})),u!==l&&(d[v]=(d[v]||0)+m/(u-l)));const T=Ne.fromObject(d,o);return y.length>0?Ne.fromMillis(m,o).shiftTo(...y).plus(T):T}const z0={arab:"[٠-٩]",arabext:"[۰-۹]",bali:"[᭐-᭙]",beng:"[০-৯]",deva:"[०-९]",fullwide:"[0-9]",gujr:"[૦-૯]",hanidec:"[〇|一|二|三|四|五|六|七|八|九]",khmr:"[០-៩]",knda:"[೦-೯]",laoo:"[໐-໙]",limb:"[᥆-᥏]",mlym:"[൦-൯]",mong:"[᠐-᠙]",mymr:"[၀-၉]",orya:"[୦-୯]",tamldec:"[௦-௯]",telu:"[౦-౯]",thai:"[๐-๙]",tibt:"[༠-༩]",latn:"\\d"},l2={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},mM=z0.hanidec.replace(/[\[|\]]/g,"").split("");function yM(n){let e=parseInt(n,10);if(isNaN(e)){e="";for(let i=0;i<n.length;i++){const o=n.charCodeAt(i);if(n[i].search(z0.hanidec)!==-1)e+=mM.indexOf(n[i]);else for(const l in l2){const[d,u]=l2[l];o>=d&&o<=u&&(e+=o-d)}}return parseInt(e,10)}else return e}function Lr({numberingSystem:n},e=""){return new RegExp(`${z0[n||"latn"]}${e}`)}const CM="missing Intl.DateTimeFormat.formatToParts support";function Ve(n,e=i=>i){return{regex:n,deser:([i])=>e(yM(i))}}const wM=String.fromCharCode(160),O5=`[ ${wM}]`,E5=new RegExp(O5,"g");function xM(n){return n.replace(/\./g,"\\.?").replace(E5,O5)}function c2(n){return n.replace(/\./g,"").replace(E5," ").toLowerCase()}function Sr(n,e){return n===null?null:{regex:RegExp(n.map(xM).join("|")),deser:([i])=>n.findIndex(o=>c2(i)===c2(o))+e}}function u2(n,e){return{regex:n,deser:([,i,o])=>Nl(i,o),groups:e}}function Es(n){return{regex:n,deser:([e])=>e}}function zM(n){return n.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function LM(n,e){const i=Lr(e),o=Lr(e,"{2}"),l=Lr(e,"{3}"),d=Lr(e,"{4}"),u=Lr(e,"{6}"),v=Lr(e,"{1,2}"),m=Lr(e,"{1,3}"),y=Lr(e,"{1,6}"),T=Lr(e,"{1,9}"),S=Lr(e,"{2,4}"),$=Lr(e,"{4,6}"),E=ee=>({regex:RegExp(zM(ee.val)),deser:([te])=>te,literal:!0}),G=(ee=>{if(n.literal)return E(ee);switch(ee.val){case"G":return Sr(e.eras("short"),0);case"GG":return Sr(e.eras("long"),0);case"y":return Ve(y);case"yy":return Ve(S,Nc);case"yyyy":return Ve(d);case"yyyyy":return Ve($);case"yyyyyy":return Ve(u);case"M":return Ve(v);case"MM":return Ve(o);case"MMM":return Sr(e.months("short",!0),1);case"MMMM":return Sr(e.months("long",!0),1);case"L":return Ve(v);case"LL":return Ve(o);case"LLL":return Sr(e.months("short",!1),1);case"LLLL":return Sr(e.months("long",!1),1);case"d":return Ve(v);case"dd":return Ve(o);case"o":return Ve(m);case"ooo":return Ve(l);case"HH":return Ve(o);case"H":return Ve(v);case"hh":return Ve(o);case"h":return Ve(v);case"mm":return Ve(o);case"m":return Ve(v);case"q":return Ve(v);case"qq":return Ve(o);case"s":return Ve(v);case"ss":return Ve(o);case"S":return Ve(m);case"SSS":return Ve(l);case"u":return Es(T);case"uu":return Es(v);case"uuu":return Ve(i);case"a":return Sr(e.meridiems(),0);case"kkkk":return Ve(d);case"kk":return Ve(S,Nc);case"W":return Ve(v);case"WW":return Ve(o);case"E":case"c":return Ve(i);case"EEE":return Sr(e.weekdays("short",!1),1);case"EEEE":return Sr(e.weekdays("long",!1),1);case"ccc":return Sr(e.weekdays("short",!0),1);case"cccc":return Sr(e.weekdays("long",!0),1);case"Z":case"ZZ":return u2(new RegExp(`([+-]${v.source})(?::(${o.source}))?`),2);case"ZZZ":return u2(new RegExp(`([+-]${v.source})(${o.source})?`),2);case"z":return Es(/[a-z_+-/]{1,256}?/i);case" ":return Es(/[^\S\n\r]/);default:return E(ee)}})(n)||{invalidReason:CM};return G.token=n,G}const SM={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour12:{numeric:"h","2-digit":"hh"},hour24:{numeric:"H","2-digit":"HH"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"},timeZoneName:{long:"ZZZZZ",short:"ZZZ"}};function MM(n,e,i){const{type:o,value:l}=n;if(o==="literal"){const m=/^\s+$/.test(l);return{literal:!m,val:m?" ":l}}const d=e[o];let u=o;o==="hour"&&(e.hour12!=null?u=e.hour12?"hour12":"hour24":e.hourCycle!=null?e.hourCycle==="h11"||e.hourCycle==="h12"?u="hour12":u="hour24":u=i.hour12?"hour12":"hour24");let v=SM[u];if(typeof v=="object"&&(v=v[d]),v)return{literal:!1,val:v}}function TM(n){return[`^${n.map(i=>i.regex).reduce((i,o)=>`${i}(${o.source})`,"")}$`,n]}function kM(n,e,i){const o=n.match(e);if(o){const l={};let d=1;for(const u in i)if(lo(i,u)){const v=i[u],m=v.groups?v.groups+1:1;!v.literal&&v.token&&(l[v.token.val[0]]=v.deser(o.slice(d,d+m))),d+=m}return[o,l]}else return[o,{}]}function $M(n){const e=d=>{switch(d){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}};let i=null,o;return De(n.z)||(i=ln.create(n.z)),De(n.Z)||(i||(i=new Wt(n.Z)),o=n.Z),De(n.q)||(n.M=(n.q-1)*3+1),De(n.h)||(n.h<12&&n.a===1?n.h+=12:n.h===12&&n.a===0&&(n.h=0)),n.G===0&&n.y&&(n.y=-n.y),De(n.u)||(n.S=m0(n.u)),[Object.keys(n).reduce((d,u)=>{const v=e(u);return v&&(d[v]=n[u]),d},{}),i,o]}let sc=null;function OM(){return sc||(sc=Te.fromMillis(1555555555555)),sc}function EM(n,e){if(n.literal)return n;const i=Dt.macroTokenToFormatOpts(n.val),o=A5(i,e);return o==null||o.includes(void 0)?n:o}function _5(n,e){return Array.prototype.concat(...n.map(i=>EM(i,e)))}function I5(n,e,i){const o=_5(Dt.parseFormat(i),n),l=o.map(u=>LM(u,n)),d=l.find(u=>u.invalidReason);if(d)return{input:e,tokens:o,invalidReason:d.invalidReason};{const[u,v]=TM(l),m=RegExp(u,"i"),[y,T]=kM(e,m,v),[S,$,E]=T?$M(T):[null,null,void 0];if(lo(T,"a")&&lo(T,"H"))throw new va("Can't include meridiem when specifying 24-hour format");return{input:e,tokens:o,regex:m,rawMatches:y,matches:T,result:S,zone:$,specificOffset:E}}}function _M(n,e,i){const{result:o,zone:l,specificOffset:d,invalidReason:u}=I5(n,e,i);return[o,l,d,u]}function A5(n,e){if(!n)return null;const o=Dt.create(e,n).dtFormatter(OM()),l=o.formatToParts(),d=o.resolvedOptions();return l.map(u=>MM(u,n,d))}const P5=[0,31,59,90,120,151,181,212,243,273,304,334],D5=[0,31,60,91,121,152,182,213,244,274,305,335];function pr(n,e){return new Tr("unit out of range",`you specified ${e} (of type ${typeof e}) as a ${n}, which is invalid`)}function N5(n,e,i){const o=new Date(Date.UTC(n,e-1,i));n<100&&n>=0&&o.setUTCFullYear(o.getUTCFullYear()-1900);const l=o.getUTCDay();return l===0?7:l}function H5(n,e,i){return i+(Ha(n)?D5:P5)[e-1]}function R5(n,e){const i=Ha(n)?D5:P5,o=i.findIndex(d=>d<e),l=e-i[o];return{month:o+1,day:l}}function Hc(n){const{year:e,month:i,day:o}=n,l=H5(e,i,o),d=N5(e,i,o);let u=Math.floor((l-d+10)/7),v;return u<1?(v=e-1,u=ll(v)):u>ll(e)?(v=e+1,u=1):v=e,{weekYear:v,weekNumber:u,weekday:d,...Hl(n)}}function d2(n){const{weekYear:e,weekNumber:i,weekday:o}=n,l=N5(e,1,4),d=ya(e);let u=i*7+o-l-3,v;u<1?(v=e-1,u+=ya(v)):u>d?(v=e+1,u-=ya(e)):v=e;const{month:m,day:y}=R5(v,u);return{year:v,month:m,day:y,...Hl(n)}}function lc(n){const{year:e,month:i,day:o}=n,l=H5(e,i,o);return{year:e,ordinal:l,...Hl(n)}}function h2(n){const{year:e,ordinal:i}=n,{month:o,day:l}=R5(e,i);return{year:e,month:o,day:l,...Hl(n)}}function IM(n){const e=Pl(n.weekYear),i=an(n.weekNumber,1,ll(n.weekYear)),o=an(n.weekday,1,7);return e?i?o?!1:pr("weekday",n.weekday):pr("week",n.week):pr("weekYear",n.weekYear)}function AM(n){const e=Pl(n.year),i=an(n.ordinal,1,ya(n.year));return e?i?!1:pr("ordinal",n.ordinal):pr("year",n.year)}function F5(n){const e=Pl(n.year),i=an(n.month,1,12),o=an(n.day,1,sl(n.year,n.month));return e?i?o?!1:pr("day",n.day):pr("month",n.month):pr("year",n.year)}function B5(n){const{hour:e,minute:i,second:o,millisecond:l}=n,d=an(e,0,23)||e===24&&i===0&&o===0&&l===0,u=an(i,0,59),v=an(o,0,59),m=an(l,0,999);return d?u?v?m?!1:pr("millisecond",l):pr("second",o):pr("minute",i):pr("hour",e)}const cc="Invalid DateTime",f2=864e13;function _s(n){return new Tr("unsupported zone",`the zone "${n.name}" is not supported`)}function uc(n){return n.weekData===null&&(n.weekData=Hc(n.c)),n.weekData}function oi(n,e){const i={ts:n.ts,zone:n.zone,c:n.c,o:n.o,loc:n.loc,invalid:n.invalid};return new Te({...i,...e,old:i})}function V5(n,e,i){let o=n-e*60*1e3;const l=i.offset(o);if(e===l)return[o,e];o-=(l-e)*60*1e3;const d=i.offset(o);return l===d?[o,l]:[n-Math.min(l,d)*60*1e3,Math.max(l,d)]}function Is(n,e){n+=e*60*1e3;const i=new Date(n);return{year:i.getUTCFullYear(),month:i.getUTCMonth()+1,day:i.getUTCDate(),hour:i.getUTCHours(),minute:i.getUTCMinutes(),second:i.getUTCSeconds(),millisecond:i.getUTCMilliseconds()}}function Hs(n,e,i){return V5(Dl(n),e,i)}function p2(n,e){const i=n.o,o=n.c.year+Math.trunc(e.years),l=n.c.month+Math.trunc(e.months)+Math.trunc(e.quarters)*3,d={...n.c,year:o,month:l,day:Math.min(n.c.day,sl(o,l))+Math.trunc(e.days)+Math.trunc(e.weeks)*7},u=Ne.fromObject({years:e.years-Math.trunc(e.years),quarters:e.quarters-Math.trunc(e.quarters),months:e.months-Math.trunc(e.months),weeks:e.weeks-Math.trunc(e.weeks),days:e.days-Math.trunc(e.days),hours:e.hours,minutes:e.minutes,seconds:e.seconds,milliseconds:e.milliseconds}).as("milliseconds"),v=Dl(d);let[m,y]=V5(v,i,n.zone);return u!==0&&(m+=u,y=n.zone.offset(m)),{ts:m,o:y}}function da(n,e,i,o,l,d){const{setZone:u,zone:v}=i;if(n&&Object.keys(n).length!==0||e){const m=e||v,y=Te.fromObject(n,{...i,zone:m,specificOffset:d});return u?y:y.setZone(v)}else return Te.invalid(new Tr("unparsable",`the input "${l}" can't be parsed as ${o}`))}function As(n,e,i=!0){return n.isValid?Dt.create(tt.create("en-US"),{allowZ:i,forceSimple:!0}).formatDateTimeFromString(n,e):null}function dc(n,e){const i=n.c.year>9999||n.c.year<0;let o="";return i&&n.c.year>=0&&(o+="+"),o+=gt(n.c.year,i?6:4),e?(o+="-",o+=gt(n.c.month),o+="-",o+=gt(n.c.day)):(o+=gt(n.c.month),o+=gt(n.c.day)),o}function g2(n,e,i,o,l,d){let u=gt(n.c.hour);return e?(u+=":",u+=gt(n.c.minute),(n.c.millisecond!==0||n.c.second!==0||!i)&&(u+=":")):u+=gt(n.c.minute),(n.c.millisecond!==0||n.c.second!==0||!i)&&(u+=gt(n.c.second),(n.c.millisecond!==0||!o)&&(u+=".",u+=gt(n.c.millisecond,3))),l&&(n.isOffsetFixed&&n.offset===0&&!d?u+="Z":n.o<0?(u+="-",u+=gt(Math.trunc(-n.o/60)),u+=":",u+=gt(Math.trunc(-n.o%60))):(u+="+",u+=gt(Math.trunc(n.o/60)),u+=":",u+=gt(Math.trunc(n.o%60)))),d&&(u+="["+n.zone.ianaName+"]"),u}const Z5={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},PM={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},DM={ordinal:1,hour:0,minute:0,second:0,millisecond:0},W5=["year","month","day","hour","minute","second","millisecond"],NM=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],HM=["year","ordinal","hour","minute","second","millisecond"];function v2(n){const e={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[n.toLowerCase()];if(!e)throw new Up(n);return e}function b2(n,e){const i=In(e.zone,pt.defaultZone),o=tt.fromObject(e),l=pt.now();let d,u;if(De(n.year))d=l;else{for(const y of W5)De(n[y])&&(n[y]=Z5[y]);const v=F5(n)||B5(n);if(v)return Te.invalid(v);const m=i.offset(l);[d,u]=Hs(n,m,i)}return new Te({ts:d,zone:i,loc:o,o:u})}function m2(n,e,i){const o=De(i.round)?!0:i.round,l=(u,v)=>(u=y0(u,o||i.calendary?0:2,!0),e.loc.clone(i).relFormatter(i).format(u,v)),d=u=>i.calendary?e.hasSame(n,u)?0:e.startOf(u).diff(n.startOf(u),u).get(u):e.diff(n,u).get(u);if(i.unit)return l(d(i.unit),i.unit);for(const u of i.units){const v=d(u);if(Math.abs(v)>=1)return l(v,u)}return l(n>e?-0:0,i.units[i.units.length-1])}function y2(n){let e={},i;return n.length>0&&typeof n[n.length-1]=="object"?(e=n[n.length-1],i=Array.from(n).slice(0,n.length-1)):i=Array.from(n),[e,i]}class Te{constructor(e){const i=e.zone||pt.defaultZone;let o=e.invalid||(Number.isNaN(e.ts)?new Tr("invalid input"):null)||(i.isValid?null:_s(i));this.ts=De(e.ts)?pt.now():e.ts;let l=null,d=null;if(!o)if(e.old&&e.old.ts===this.ts&&e.old.zone.equals(i))[l,d]=[e.old.c,e.old.o];else{const v=i.offset(this.ts);l=Is(this.ts,v),o=Number.isNaN(l.year)?new Tr("invalid input"):null,l=o?null:l,d=o?null:v}this._zone=i,this.loc=e.loc||tt.create(),this.invalid=o,this.weekData=null,this.c=l,this.o=d,this.isLuxonDateTime=!0}static now(){return new Te({})}static local(){const[e,i]=y2(arguments),[o,l,d,u,v,m,y]=i;return b2({year:o,month:l,day:d,hour:u,minute:v,second:m,millisecond:y},e)}static utc(){const[e,i]=y2(arguments),[o,l,d,u,v,m,y]=i;return e.zone=Wt.utcInstance,b2({year:o,month:l,day:d,hour:u,minute:v,second:m,millisecond:y},e)}static fromJSDate(e,i={}){const o=dS(e)?e.valueOf():NaN;if(Number.isNaN(o))return Te.invalid("invalid input");const l=In(i.zone,pt.defaultZone);return l.isValid?new Te({ts:o,zone:l,loc:tt.fromObject(i)}):Te.invalid(_s(l))}static fromMillis(e,i={}){if(hi(e))return e<-f2||e>f2?Te.invalid("Timestamp out of range"):new Te({ts:e,zone:In(i.zone,pt.defaultZone),loc:tt.fromObject(i)});throw new fr(`fromMillis requires a numerical input, but received a ${typeof e} with value ${e}`)}static fromSeconds(e,i={}){if(hi(e))return new Te({ts:e*1e3,zone:In(i.zone,pt.defaultZone),loc:tt.fromObject(i)});throw new fr("fromSeconds requires a numerical input")}static fromObject(e,i={}){e=e||{};const o=In(i.zone,pt.defaultZone);if(!o.isValid)return Te.invalid(_s(o));const l=pt.now(),d=De(i.specificOffset)?o.offset(l):i.specificOffset,u=cl(e,v2),v=!De(u.ordinal),m=!De(u.year),y=!De(u.month)||!De(u.day),T=m||y,S=u.weekYear||u.weekNumber,$=tt.fromObject(i);if((T||v)&&S)throw new va("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(y&&v)throw new va("Can't mix ordinal dates with month/day");const E=S||u.weekday&&!T;let N,G,ee=Is(l,d);E?(N=NM,G=PM,ee=Hc(ee)):v?(N=HM,G=DM,ee=lc(ee)):(N=W5,G=Z5);let te=!1;for(const Ze of N){const We=u[Ze];De(We)?te?u[Ze]=G[Ze]:u[Ze]=ee[Ze]:te=!0}const se=E?IM(u):v?AM(u):F5(u),re=se||B5(u);if(re)return Te.invalid(re);const ue=E?d2(u):v?h2(u):u,[xe,qe]=Hs(ue,d,o),Ge=new Te({ts:xe,zone:o,o:qe,loc:$});return u.weekday&&T&&e.weekday!==Ge.weekday?Te.invalid("mismatched weekday",`you can't specify both a weekday of ${u.weekday} and a date of ${Ge.toISO()}`):Ge}static fromISO(e,i={}){const[o,l]=eM(e);return da(o,l,i,"ISO 8601",e)}static fromRFC2822(e,i={}){const[o,l]=tM(e);return da(o,l,i,"RFC 2822",e)}static fromHTTP(e,i={}){const[o,l]=rM(e);return da(o,l,i,"HTTP",i)}static fromFormat(e,i,o={}){if(De(e)||De(i))throw new fr("fromFormat requires an input string and a format");const{locale:l=null,numberingSystem:d=null}=o,u=tt.fromOpts({locale:l,numberingSystem:d,defaultToEN:!0}),[v,m,y,T]=_M(u,e,i);return T?Te.invalid(T):da(v,m,o,`format ${i}`,e,y)}static fromString(e,i,o={}){return Te.fromFormat(e,i,o)}static fromSQL(e,i={}){const[o,l]=cM(e);return da(o,l,i,"SQL",e)}static invalid(e,i=null){if(!e)throw new fr("need to specify a reason the DateTime is invalid");const o=e instanceof Tr?e:new Tr(e,i);if(pt.throwOnInvalid)throw new VL(o);return new Te({invalid:o})}static isDateTime(e){return e&&e.isLuxonDateTime||!1}static parseFormatForOpts(e,i={}){const o=A5(e,tt.fromObject(i));return o?o.map(l=>l?l.val:null).join(""):null}static expandFormat(e,i={}){return _5(Dt.parseFormat(e),tt.fromObject(i)).map(l=>l.val).join("")}get(e){return this[e]}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?uc(this).weekYear:NaN}get weekNumber(){return this.isValid?uc(this).weekNumber:NaN}get weekday(){return this.isValid?uc(this).weekday:NaN}get ordinal(){return this.isValid?lc(this.c).ordinal:NaN}get monthShort(){return this.isValid?Os.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?Os.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?Os.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?Os.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}get offsetNameLong(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){return this.isOffsetFixed?!1:this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset}getPossibleOffsets(){if(!this.isValid||this.isOffsetFixed)return[this];const e=864e5,i=6e4,o=Dl(this.c),l=this.zone.offset(o-e),d=this.zone.offset(o+e),u=this.zone.offset(o-l*i),v=this.zone.offset(o-d*i);if(u===v)return[this];const m=o-u*i,y=o-v*i,T=Is(m,u),S=Is(y,v);return T.hour===S.hour&&T.minute===S.minute&&T.second===S.second&&T.millisecond===S.millisecond?[oi(this,{ts:m}),oi(this,{ts:y})]:[this]}get isInLeapYear(){return Ha(this.year)}get daysInMonth(){return sl(this.year,this.month)}get daysInYear(){return this.isValid?ya(this.year):NaN}get weeksInWeekYear(){return this.isValid?ll(this.weekYear):NaN}resolvedLocaleOptions(e={}){const{locale:i,numberingSystem:o,calendar:l}=Dt.create(this.loc.clone(e),e).resolvedOptions(this);return{locale:i,numberingSystem:o,outputCalendar:l}}toUTC(e=0,i={}){return this.setZone(Wt.instance(e),i)}toLocal(){return this.setZone(pt.defaultZone)}setZone(e,{keepLocalTime:i=!1,keepCalendarTime:o=!1}={}){if(e=In(e,pt.defaultZone),e.equals(this.zone))return this;if(e.isValid){let l=this.ts;if(i||o){const d=e.offset(this.ts),u=this.toObject();[l]=Hs(u,d,e)}return oi(this,{ts:l,zone:e})}else return Te.invalid(_s(e))}reconfigure({locale:e,numberingSystem:i,outputCalendar:o}={}){const l=this.loc.clone({locale:e,numberingSystem:i,outputCalendar:o});return oi(this,{loc:l})}setLocale(e){return this.reconfigure({locale:e})}set(e){if(!this.isValid)return this;const i=cl(e,v2),o=!De(i.weekYear)||!De(i.weekNumber)||!De(i.weekday),l=!De(i.ordinal),d=!De(i.year),u=!De(i.month)||!De(i.day),v=d||u,m=i.weekYear||i.weekNumber;if((v||l)&&m)throw new va("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(u&&l)throw new va("Can't mix ordinal dates with month/day");let y;o?y=d2({...Hc(this.c),...i}):De(i.ordinal)?(y={...this.toObject(),...i},De(i.day)&&(y.day=Math.min(sl(y.year,y.month),y.day))):y=h2({...lc(this.c),...i});const[T,S]=Hs(y,this.o,this.zone);return oi(this,{ts:T,o:S})}plus(e){if(!this.isValid)return this;const i=Ne.fromDurationLike(e);return oi(this,p2(this,i))}minus(e){if(!this.isValid)return this;const i=Ne.fromDurationLike(e).negate();return oi(this,p2(this,i))}startOf(e){if(!this.isValid)return this;const i={},o=Ne.normalizeUnit(e);switch(o){case"years":i.month=1;case"quarters":case"months":i.day=1;case"weeks":case"days":i.hour=0;case"hours":i.minute=0;case"minutes":i.second=0;case"seconds":i.millisecond=0;break}if(o==="weeks"&&(i.weekday=1),o==="quarters"){const l=Math.ceil(this.month/3);i.month=(l-1)*3+1}return this.set(i)}endOf(e){return this.isValid?this.plus({[e]:1}).startOf(e).minus(1):this}toFormat(e,i={}){return this.isValid?Dt.create(this.loc.redefaultToEN(i)).formatDateTimeFromString(this,e):cc}toLocaleString(e=al,i={}){return this.isValid?Dt.create(this.loc.clone(i),e).formatDateTime(this):cc}toLocaleParts(e={}){return this.isValid?Dt.create(this.loc.clone(e),e).formatDateTimeParts(this):[]}toISO({format:e="extended",suppressSeconds:i=!1,suppressMilliseconds:o=!1,includeOffset:l=!0,extendedZone:d=!1}={}){if(!this.isValid)return null;const u=e==="extended";let v=dc(this,u);return v+="T",v+=g2(this,u,i,o,l,d),v}toISODate({format:e="extended"}={}){return this.isValid?dc(this,e==="extended"):null}toISOWeekDate(){return As(this,"kkkk-'W'WW-c")}toISOTime({suppressMilliseconds:e=!1,suppressSeconds:i=!1,includeOffset:o=!0,includePrefix:l=!1,extendedZone:d=!1,format:u="extended"}={}){return this.isValid?(l?"T":"")+g2(this,u==="extended",i,e,o,d):null}toRFC2822(){return As(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return As(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?dc(this,!0):null}toSQLTime({includeOffset:e=!0,includeZone:i=!1,includeOffsetSpace:o=!0}={}){let l="HH:mm:ss.SSS";return(i||e)&&(o&&(l+=" "),i?l+="z":e&&(l+="ZZ")),As(this,l,!0)}toSQL(e={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(e)}`:null}toString(){return this.isValid?this.toISO():cc}valueOf(){return this.toMillis()}toMillis(){return this.isValid?this.ts:NaN}toSeconds(){return this.isValid?this.ts/1e3:NaN}toUnixInteger(){return this.isValid?Math.floor(this.ts/1e3):NaN}toJSON(){return this.toISO()}toBSON(){return this.toJSDate()}toObject(e={}){if(!this.isValid)return{};const i={...this.c};return e.includeConfig&&(i.outputCalendar=this.outputCalendar,i.numberingSystem=this.loc.numberingSystem,i.locale=this.loc.locale),i}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(e,i="milliseconds",o={}){if(!this.isValid||!e.isValid)return Ne.invalid("created by diffing an invalid DateTime");const l={locale:this.locale,numberingSystem:this.numberingSystem,...o},d=hS(i).map(Ne.normalizeUnit),u=e.valueOf()>this.valueOf(),v=u?this:e,m=u?e:this,y=bM(v,m,d,l);return u?y.negate():y}diffNow(e="milliseconds",i={}){return this.diff(Te.now(),e,i)}until(e){return this.isValid?st.fromDateTimes(this,e):this}hasSame(e,i){if(!this.isValid)return!1;const o=e.valueOf(),l=this.setZone(e.zone,{keepLocalTime:!0});return l.startOf(i)<=o&&o<=l.endOf(i)}equals(e){return this.isValid&&e.isValid&&this.valueOf()===e.valueOf()&&this.zone.equals(e.zone)&&this.loc.equals(e.loc)}toRelative(e={}){if(!this.isValid)return null;const i=e.base||Te.fromObject({},{zone:this.zone}),o=e.padding?this<i?-e.padding:e.padding:0;let l=["years","months","days","hours","minutes","seconds"],d=e.unit;return Array.isArray(e.unit)&&(l=e.unit,d=void 0),m2(i,this.plus(o),{...e,numeric:"always",units:l,unit:d})}toRelativeCalendar(e={}){return this.isValid?m2(e.base||Te.fromObject({},{zone:this.zone}),this,{...e,numeric:"auto",units:["years","months","days"],calendary:!0}):null}static min(...e){if(!e.every(Te.isDateTime))throw new fr("min requires all arguments be DateTimes");return n2(e,i=>i.valueOf(),Math.min)}static max(...e){if(!e.every(Te.isDateTime))throw new fr("max requires all arguments be DateTimes");return n2(e,i=>i.valueOf(),Math.max)}static fromFormatExplain(e,i,o={}){const{locale:l=null,numberingSystem:d=null}=o,u=tt.fromOpts({locale:l,numberingSystem:d,defaultToEN:!0});return I5(u,e,i)}static fromStringExplain(e,i,o={}){return Te.fromFormatExplain(e,i,o)}static get DATE_SHORT(){return al}static get DATE_MED(){return jp}static get DATE_MED_WITH_WEEKDAY(){return UL}static get DATE_FULL(){return Gp}static get DATE_HUGE(){return qp}static get TIME_SIMPLE(){return Kp}static get TIME_WITH_SECONDS(){return Yp}static get TIME_WITH_SHORT_OFFSET(){return Xp}static get TIME_WITH_LONG_OFFSET(){return Jp}static get TIME_24_SIMPLE(){return Qp}static get TIME_24_WITH_SECONDS(){return e5}static get TIME_24_WITH_SHORT_OFFSET(){return t5}static get TIME_24_WITH_LONG_OFFSET(){return r5}static get DATETIME_SHORT(){return n5}static get DATETIME_SHORT_WITH_SECONDS(){return i5}static get DATETIME_MED(){return o5}static get DATETIME_MED_WITH_SECONDS(){return a5}static get DATETIME_MED_WITH_WEEKDAY(){return jL}static get DATETIME_FULL(){return s5}static get DATETIME_FULL_WITH_SECONDS(){return l5}static get DATETIME_HUGE(){return c5}static get DATETIME_HUGE_WITH_SECONDS(){return u5}}function ha(n){if(Te.isDateTime(n))return n;if(n&&n.valueOf&&hi(n.valueOf()))return Te.fromJSDate(n);if(n&&typeof n=="object")return Te.fromObject(n);throw new fr(`Unknown datetime argument: ${n}, of type ${typeof n}`)}const RM={Africa:"en-za",America:"en-us",US:"en-us",Australia:"en-au",Europe:"en-gb",Pacific:"en-nz"},FM=n=>Te.local().setZone(n).isValid,Rc=n=>n.hour<12,C2=n=>!Rc(n),BM=(n,e)=>Rc(n)&&Rc(e)||C2(n)&&C2(e),w2=(n,e)=>{var l;const i=e&&FM(e)?e:"utc",o=(l=RM[i.split("/")[0]])!=null?l:"en-us";return n.setZone(i).setLocale(o)},x2=n=>VM(U5(n)),VM=n=>n.replace(/Sept/,"Sep"),U5=n=>n.replace(/(AM|PM)/,e=>e.toLowerCase());var ZM=Object.defineProperty,WM=Object.getOwnPropertyDescriptor,Fn=(n,e,i,o)=>{for(var l=o>1?void 0:o?WM(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&ZM(e,i,l),l};const j5=ne("input-time"),G5="h:mma",q5=/^([1-9]|1[0-9]|2[0-3]):([0-5])([0-9])?(am?|pm?)?$/,K5=/^(1[3-9]|2[0-3]).*/,Y5=/^(\d\d?)(am?|pm?)/,UM=["UTC","AEST"],X5=(n,e)=>({label:`${n}${e?` (${e})`:""}`,value:n}),z2=(n,e)=>{const o=Math.ceil(1440/n),l=Te.local().startOf("day");return Array(o).fill(null).map((d,u)=>{const v=l.plus({minutes:n*u}),m=U5(v.toFormat(G5));return X5(m,e)})},jM=(n,e)=>{const i=n.trim(),o=n.match(q5);if(!i||!o)return[];const[,l,d,u]=o,v=parseInt(l,10),m=v>12?`${v-12}`:`${v}`,y=`${d}${u||0}`,T=`${m}:${y}`;return["am","pm"].map(S=>X5(`${T}${S}`,e))},GM=(n,{value:e})=>{const i=n.match(K5);if(!i||!e)return!1;const[,o]=i,l=`${parseInt(o,10)-12}`,d=n.substring(o.length).replace(":",""),u=`${l}:${d}`;return e.startsWith(u)&&e.endsWith("pm")},qM=(n,{value:e})=>{const i=n.match(Y5);if(!i)return!1;const[,o,l]=i;return!!(e!=null&&e.replace(":00","").startsWith(`${o}${l}`))},KM=(...n)=>qM(...n)||GM(...n);exports.InputTime=class extends exports.InputSelect{constructor(){super(...arguments),this.canSearch=!0,this.increment=15,this.isFreeform=!1,this.placeholder="Select time",this.trailingIcon="time",this.freeformOptions=[]}connectedCallback(){super.connectedCallback(),this.options=z2(this.increment,this.suffix)}updated(e){super.updated(e),e.has("increment")&&(this.options=z2(this.increment,this.suffix))}resetFreeformOptions(){this.freeformOptions=[]}handleCloseDropdown(){super.handleCloseDropdown(),this.resetFreeformOptions()}getItems(){return[...this.freeformOptions,...super.getItems()]}handleValueChange(){var e;this.valueLabel=this.value&&this.value!==this.placeholder?(e=this.getItems().find(({value:i})=>i===this.value))==null?void 0:e.label:"",!this.isFreeform&&this.resetSearch()}isCustomQueryMatch(e){return this.query?KM(this.query,e):!1}handleNoResults(){if(this.hasQueryResults)return null;if(!this.isFreeform)return this.renderSearchMessage();this.freeformOptions=jM(this.query,this.suffix),this.hasResults=!!this.freeformOptions.length}renderFreeformOptions(){return this.isFreeform?this.hasQueryResults?this.renderOptionsData(this.freeformOptions):this.renderSearchMessage():null}renderDropdownContent(){return P`
3496
+ `];Da([O({type:String,reflect:!0})],exports.InputMultiselect.prototype,"size",2);Da([O({attribute:"truncate-values-after",type:Number})],exports.InputMultiselect.prototype,"truncateValuesAfter",2);Da([O({type:Array})],exports.InputMultiselect.prototype,"value",2);Da([pe()],exports.InputMultiselect.prototype,"valueLabels",2);exports.InputMultiselect=Da([R(qp)],exports.InputMultiselect);class zi extends Error{}class UL extends zi{constructor(e){super(`Invalid DateTime: ${e.toMessage()}`)}}class jL extends zi{constructor(e){super(`Invalid Interval: ${e.toMessage()}`)}}class GL extends zi{constructor(e){super(`Invalid Duration: ${e.toMessage()}`)}}class va extends zi{}class Kp extends zi{constructor(e){super(`Invalid unit ${e}`)}}class fr extends zi{}class $n extends zi{constructor(){super("Zone is an abstract class")}}const le="numeric",Or="short",cr="long",al={year:le,month:le,day:le},Yp={year:le,month:Or,day:le},qL={year:le,month:Or,day:le,weekday:Or},Xp={year:le,month:cr,day:le},Jp={year:le,month:cr,day:le,weekday:cr},Qp={hour:le,minute:le},e5={hour:le,minute:le,second:le},t5={hour:le,minute:le,second:le,timeZoneName:Or},r5={hour:le,minute:le,second:le,timeZoneName:cr},n5={hour:le,minute:le,hourCycle:"h23"},i5={hour:le,minute:le,second:le,hourCycle:"h23"},o5={hour:le,minute:le,second:le,hourCycle:"h23",timeZoneName:Or},a5={hour:le,minute:le,second:le,hourCycle:"h23",timeZoneName:cr},s5={year:le,month:le,day:le,hour:le,minute:le},l5={year:le,month:le,day:le,hour:le,minute:le,second:le},c5={year:le,month:Or,day:le,hour:le,minute:le},u5={year:le,month:Or,day:le,hour:le,minute:le,second:le},KL={year:le,month:Or,day:le,weekday:Or,hour:le,minute:le},d5={year:le,month:cr,day:le,hour:le,minute:le,timeZoneName:Or},h5={year:le,month:cr,day:le,hour:le,minute:le,second:le,timeZoneName:Or},f5={year:le,month:cr,day:le,weekday:cr,hour:le,minute:le,timeZoneName:cr},p5={year:le,month:cr,day:le,weekday:cr,hour:le,minute:le,second:le,timeZoneName:cr};class Na{get type(){throw new $n}get name(){throw new $n}get ianaName(){return this.name}get isUniversal(){throw new $n}offsetName(e,i){throw new $n}formatOffset(e,i){throw new $n}offset(e){throw new $n}equals(e){throw new $n}get isValid(){throw new $n}}let ac=null;class Al extends Na{static get instance(){return ac===null&&(ac=new Al),ac}get type(){return"system"}get name(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(e,{format:i,locale:o}){return v5(e,i,o)}formatOffset(e,i){return Ca(this.offset(e),i)}offset(e){return-new Date(e).getTimezoneOffset()}equals(e){return e.type==="system"}get isValid(){return!0}}let Ns={};function YL(n){return Ns[n]||(Ns[n]=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:n,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"})),Ns[n]}const XL={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};function JL(n,e){const i=n.format(e).replace(/\u200E/g,""),o=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(i),[,l,d,u,v,m,y,T]=o;return[u,l,d,v,m,y,T]}function QL(n,e){const i=n.formatToParts(e),o=[];for(let l=0;l<i.length;l++){const{type:d,value:u}=i[l],v=XL[d];d==="era"?o[v]=u:De(v)||(o[v]=parseInt(u,10))}return o}let ks={};class ln extends Na{static create(e){return ks[e]||(ks[e]=new ln(e)),ks[e]}static resetCache(){ks={},Ns={}}static isValidSpecifier(e){return this.isValidZone(e)}static isValidZone(e){if(!e)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:e}).format(),!0}catch{return!1}}constructor(e){super(),this.zoneName=e,this.valid=ln.isValidZone(e)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(e,{format:i,locale:o}){return v5(e,i,o,this.name)}formatOffset(e,i){return Ca(this.offset(e),i)}offset(e){const i=new Date(e);if(isNaN(i))return NaN;const o=YL(this.name);let[l,d,u,v,m,y,T]=o.formatToParts?QL(o,i):JL(o,i);v==="BC"&&(l=-Math.abs(l)+1);const $=Dl({year:l,month:d,day:u,hour:m===24?0:m,minute:y,second:T,millisecond:0});let E=+i;const N=E%1e3;return E-=N>=0?N:1e3+N,($-E)/(60*1e3)}equals(e){return e.type==="iana"&&e.name===this.name}get isValid(){return this.valid}}let Qh={};function eS(n,e={}){const i=JSON.stringify([n,e]);let o=Qh[i];return o||(o=new Intl.ListFormat(n,e),Qh[i]=o),o}let Ac={};function Pc(n,e={}){const i=JSON.stringify([n,e]);let o=Ac[i];return o||(o=new Intl.DateTimeFormat(n,e),Ac[i]=o),o}let Dc={};function tS(n,e={}){const i=JSON.stringify([n,e]);let o=Dc[i];return o||(o=new Intl.NumberFormat(n,e),Dc[i]=o),o}let Nc={};function rS(n,e={}){const{base:i,...o}=e,l=JSON.stringify([n,o]);let d=Nc[l];return d||(d=new Intl.RelativeTimeFormat(n,e),Nc[l]=d),d}let ba=null;function nS(){return ba||(ba=new Intl.DateTimeFormat().resolvedOptions().locale,ba)}function iS(n){const e=n.indexOf("-x-");e!==-1&&(n=n.substring(0,e));const i=n.indexOf("-u-");if(i===-1)return[n];{let o,l;try{o=Pc(n).resolvedOptions(),l=n}catch{const m=n.substring(0,i);o=Pc(m).resolvedOptions(),l=m}const{numberingSystem:d,calendar:u}=o;return[l,d,u]}}function oS(n,e,i){return(i||e)&&(n.includes("-u-")||(n+="-u"),i&&(n+=`-ca-${i}`),e&&(n+=`-nu-${e}`)),n}function aS(n){const e=[];for(let i=1;i<=12;i++){const o=Te.utc(2009,i,1);e.push(n(o))}return e}function sS(n){const e=[];for(let i=1;i<=7;i++){const o=Te.utc(2016,11,13+i);e.push(n(o))}return e}function $s(n,e,i,o){const l=n.listingMode();return l==="error"?null:l==="en"?i(e):o(e)}function lS(n){return n.numberingSystem&&n.numberingSystem!=="latn"?!1:n.numberingSystem==="latn"||!n.locale||n.locale.startsWith("en")||new Intl.DateTimeFormat(n.intl).resolvedOptions().numberingSystem==="latn"}class cS{constructor(e,i,o){this.padTo=o.padTo||0,this.floor=o.floor||!1;const{padTo:l,floor:d,...u}=o;if(!i||Object.keys(u).length>0){const v={useGrouping:!1,...o};o.padTo>0&&(v.minimumIntegerDigits=o.padTo),this.inf=tS(e,v)}}format(e){if(this.inf){const i=this.floor?Math.floor(e):e;return this.inf.format(i)}else{const i=this.floor?Math.floor(e):C0(e,3);return gt(i,this.padTo)}}}class uS{constructor(e,i,o){this.opts=o,this.originalZone=void 0;let l;if(this.opts.timeZone)this.dt=e;else if(e.zone.type==="fixed"){const u=-1*(e.offset/60),v=u>=0?`Etc/GMT+${u}`:`Etc/GMT${u}`;e.offset!==0&&ln.create(v).valid?(l=v,this.dt=e):(l="UTC",this.dt=e.offset===0?e:e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone)}else e.zone.type==="system"?this.dt=e:e.zone.type==="iana"?(this.dt=e,l=e.zone.name):(l="UTC",this.dt=e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone);const d={...this.opts};d.timeZone=d.timeZone||l,this.dtf=Pc(i,d)}format(){return this.originalZone?this.formatToParts().map(({value:e})=>e).join(""):this.dtf.format(this.dt.toJSDate())}formatToParts(){const e=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?e.map(i=>{if(i.type==="timeZoneName"){const o=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...i,value:o}}else return i}):e}resolvedOptions(){return this.dtf.resolvedOptions()}}class dS{constructor(e,i,o){this.opts={style:"long",...o},!i&&g5()&&(this.rtf=rS(e,o))}format(e,i){return this.rtf?this.rtf.format(e,i):kS(i,e,this.opts.numeric,this.opts.style!=="long")}formatToParts(e,i){return this.rtf?this.rtf.formatToParts(e,i):[]}}class tt{static fromOpts(e){return tt.create(e.locale,e.numberingSystem,e.outputCalendar,e.defaultToEN)}static create(e,i,o,l=!1){const d=e||pt.defaultLocale,u=d||(l?"en-US":nS()),v=i||pt.defaultNumberingSystem,m=o||pt.defaultOutputCalendar;return new tt(u,v,m,d)}static resetCache(){ba=null,Ac={},Dc={},Nc={}}static fromObject({locale:e,numberingSystem:i,outputCalendar:o}={}){return tt.create(e,i,o)}constructor(e,i,o,l){const[d,u,v]=iS(e);this.locale=d,this.numberingSystem=i||u||null,this.outputCalendar=o||v||null,this.intl=oS(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=l,this.fastNumbersCached=null}get fastNumbers(){return this.fastNumbersCached==null&&(this.fastNumbersCached=lS(this)),this.fastNumbersCached}listingMode(){const e=this.isEnglish(),i=(this.numberingSystem===null||this.numberingSystem==="latn")&&(this.outputCalendar===null||this.outputCalendar==="gregory");return e&&i?"en":"intl"}clone(e){return!e||Object.getOwnPropertyNames(e).length===0?this:tt.create(e.locale||this.specifiedLocale,e.numberingSystem||this.numberingSystem,e.outputCalendar||this.outputCalendar,e.defaultToEN||!1)}redefaultToEN(e={}){return this.clone({...e,defaultToEN:!0})}redefaultToSystem(e={}){return this.clone({...e,defaultToEN:!1})}months(e,i=!1){return $s(this,e,y5,()=>{const o=i?{month:e,day:"numeric"}:{month:e},l=i?"format":"standalone";return this.monthsCache[l][e]||(this.monthsCache[l][e]=aS(d=>this.extract(d,o,"month"))),this.monthsCache[l][e]})}weekdays(e,i=!1){return $s(this,e,x5,()=>{const o=i?{weekday:e,year:"numeric",month:"long",day:"numeric"}:{weekday:e},l=i?"format":"standalone";return this.weekdaysCache[l][e]||(this.weekdaysCache[l][e]=sS(d=>this.extract(d,o,"weekday"))),this.weekdaysCache[l][e]})}meridiems(){return $s(this,void 0,()=>z5,()=>{if(!this.meridiemCache){const e={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[Te.utc(2016,11,13,9),Te.utc(2016,11,13,19)].map(i=>this.extract(i,e,"dayperiod"))}return this.meridiemCache})}eras(e){return $s(this,e,L5,()=>{const i={era:e};return this.eraCache[e]||(this.eraCache[e]=[Te.utc(-40,1,1),Te.utc(2017,1,1)].map(o=>this.extract(o,i,"era"))),this.eraCache[e]})}extract(e,i,o){const l=this.dtFormatter(e,i),d=l.formatToParts(),u=d.find(v=>v.type.toLowerCase()===o);return u?u.value:null}numberFormatter(e={}){return new cS(this.intl,e.forceSimple||this.fastNumbers,e)}dtFormatter(e,i={}){return new uS(e,this.intl,i)}relFormatter(e={}){return new dS(this.intl,this.isEnglish(),e)}listFormatter(e={}){return eS(this.intl,e)}isEnglish(){return this.locale==="en"||this.locale.toLowerCase()==="en-us"||new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith("en-us")}equals(e){return this.locale===e.locale&&this.numberingSystem===e.numberingSystem&&this.outputCalendar===e.outputCalendar}}let sc=null;class Wt extends Na{static get utcInstance(){return sc===null&&(sc=new Wt(0)),sc}static instance(e){return e===0?Wt.utcInstance:new Wt(e)}static parseSpecifier(e){if(e){const i=e.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(i)return new Wt(Nl(i[1],i[2]))}return null}constructor(e){super(),this.fixed=e}get type(){return"fixed"}get name(){return this.fixed===0?"UTC":`UTC${Ca(this.fixed,"narrow")}`}get ianaName(){return this.fixed===0?"Etc/UTC":`Etc/GMT${Ca(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(e,i){return Ca(this.fixed,i)}get isUniversal(){return!0}offset(){return this.fixed}equals(e){return e.type==="fixed"&&e.fixed===this.fixed}get isValid(){return!0}}class hS extends Na{constructor(e){super(),this.zoneName=e}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return!1}get isValid(){return!1}}function In(n,e){if(De(n)||n===null)return e;if(n instanceof Na)return n;if(fS(n)){const i=n.toLowerCase();return i==="default"?e:i==="local"||i==="system"?Al.instance:i==="utc"||i==="gmt"?Wt.utcInstance:Wt.parseSpecifier(i)||ln.create(n)}else return hi(n)?Wt.instance(n):typeof n=="object"&&"offset"in n&&typeof n.offset=="function"?n:new hS(n)}let e2=()=>Date.now(),t2="system",r2=null,n2=null,i2=null,o2=60,a2;class pt{static get now(){return e2}static set now(e){e2=e}static set defaultZone(e){t2=e}static get defaultZone(){return In(t2,Al.instance)}static get defaultLocale(){return r2}static set defaultLocale(e){r2=e}static get defaultNumberingSystem(){return n2}static set defaultNumberingSystem(e){n2=e}static get defaultOutputCalendar(){return i2}static set defaultOutputCalendar(e){i2=e}static get twoDigitCutoffYear(){return o2}static set twoDigitCutoffYear(e){o2=e%100}static get throwOnInvalid(){return a2}static set throwOnInvalid(e){a2=e}static resetCaches(){tt.resetCache(),ln.resetCache()}}function De(n){return typeof n=="undefined"}function hi(n){return typeof n=="number"}function Pl(n){return typeof n=="number"&&n%1===0}function fS(n){return typeof n=="string"}function pS(n){return Object.prototype.toString.call(n)==="[object Date]"}function g5(){try{return typeof Intl!="undefined"&&!!Intl.RelativeTimeFormat}catch{return!1}}function gS(n){return Array.isArray(n)?n:[n]}function s2(n,e,i){if(n.length!==0)return n.reduce((o,l)=>{const d=[e(l),l];return o&&i(o[0],d[0])===o[0]?o:d},null)[1]}function vS(n,e){return e.reduce((i,o)=>(i[o]=n[o],i),{})}function lo(n,e){return Object.prototype.hasOwnProperty.call(n,e)}function an(n,e,i){return Pl(n)&&n>=e&&n<=i}function bS(n,e){return n-e*Math.floor(n/e)}function gt(n,e=2){const i=n<0;let o;return i?o="-"+(""+-n).padStart(e,"0"):o=(""+n).padStart(e,"0"),o}function En(n){if(!(De(n)||n===null||n===""))return parseInt(n,10)}function ii(n){if(!(De(n)||n===null||n===""))return parseFloat(n)}function y0(n){if(!(De(n)||n===null||n==="")){const e=parseFloat("0."+n)*1e3;return Math.floor(e)}}function C0(n,e,i=!1){const o=10**e;return(i?Math.trunc:Math.round)(n*o)/o}function Ha(n){return n%4===0&&(n%100!==0||n%400===0)}function ya(n){return Ha(n)?366:365}function sl(n,e){const i=bS(e-1,12)+1,o=n+(e-i)/12;return i===2?Ha(o)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][i-1]}function Dl(n){let e=Date.UTC(n.year,n.month-1,n.day,n.hour,n.minute,n.second,n.millisecond);return n.year<100&&n.year>=0&&(e=new Date(e),e.setUTCFullYear(n.year,n.month-1,n.day)),+e}function ll(n){const e=(n+Math.floor(n/4)-Math.floor(n/100)+Math.floor(n/400))%7,i=n-1,o=(i+Math.floor(i/4)-Math.floor(i/100)+Math.floor(i/400))%7;return e===4||o===3?53:52}function Hc(n){return n>99?n:n>pt.twoDigitCutoffYear?1900+n:2e3+n}function v5(n,e,i,o=null){const l=new Date(n),d={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};o&&(d.timeZone=o);const u={timeZoneName:e,...d},v=new Intl.DateTimeFormat(i,u).formatToParts(l).find(m=>m.type.toLowerCase()==="timezonename");return v?v.value:null}function Nl(n,e){let i=parseInt(n,10);Number.isNaN(i)&&(i=0);const o=parseInt(e,10)||0,l=i<0||Object.is(i,-0)?-o:o;return i*60+l}function b5(n){const e=Number(n);if(typeof n=="boolean"||n===""||Number.isNaN(e))throw new fr(`Invalid unit value ${n}`);return e}function cl(n,e){const i={};for(const o in n)if(lo(n,o)){const l=n[o];if(l==null)continue;i[e(o)]=b5(l)}return i}function Ca(n,e){const i=Math.trunc(Math.abs(n/60)),o=Math.trunc(Math.abs(n%60)),l=n>=0?"+":"-";switch(e){case"short":return`${l}${gt(i,2)}:${gt(o,2)}`;case"narrow":return`${l}${i}${o>0?`:${o}`:""}`;case"techie":return`${l}${gt(i,2)}${gt(o,2)}`;default:throw new RangeError(`Value format ${e} is out of range for property format`)}}function Hl(n){return vS(n,["hour","minute","second","millisecond"])}const mS=["January","February","March","April","May","June","July","August","September","October","November","December"],m5=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],yS=["J","F","M","A","M","J","J","A","S","O","N","D"];function y5(n){switch(n){case"narrow":return[...yS];case"short":return[...m5];case"long":return[...mS];case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}const C5=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],w5=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],CS=["M","T","W","T","F","S","S"];function x5(n){switch(n){case"narrow":return[...CS];case"short":return[...w5];case"long":return[...C5];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}const z5=["AM","PM"],wS=["Before Christ","Anno Domini"],xS=["BC","AD"],zS=["B","A"];function L5(n){switch(n){case"narrow":return[...zS];case"short":return[...xS];case"long":return[...wS];default:return null}}function LS(n){return z5[n.hour<12?0:1]}function SS(n,e){return x5(e)[n.weekday-1]}function MS(n,e){return y5(e)[n.month-1]}function TS(n,e){return L5(e)[n.year<0?0:1]}function kS(n,e,i="always",o=!1){const l={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},d=["hours","minutes","seconds"].indexOf(n)===-1;if(i==="auto"&&d){const S=n==="days";switch(e){case 1:return S?"tomorrow":`next ${l[n][0]}`;case-1:return S?"yesterday":`last ${l[n][0]}`;case 0:return S?"today":`this ${l[n][0]}`}}const u=Object.is(e,-0)||e<0,v=Math.abs(e),m=v===1,y=l[n],T=o?m?y[1]:y[2]||y[1]:m?l[n][0]:n;return u?`${v} ${T} ago`:`in ${v} ${T}`}function l2(n,e){let i="";for(const o of n)o.literal?i+=o.val:i+=e(o.val);return i}const $S={D:al,DD:Yp,DDD:Xp,DDDD:Jp,t:Qp,tt:e5,ttt:t5,tttt:r5,T:n5,TT:i5,TTT:o5,TTTT:a5,f:s5,ff:c5,fff:d5,ffff:f5,F:l5,FF:u5,FFF:h5,FFFF:p5};class Dt{static create(e,i={}){return new Dt(e,i)}static parseFormat(e){let i=null,o="",l=!1;const d=[];for(let u=0;u<e.length;u++){const v=e.charAt(u);v==="'"?(o.length>0&&d.push({literal:l||/^\s+$/.test(o),val:o}),i=null,o="",l=!l):l||v===i?o+=v:(o.length>0&&d.push({literal:/^\s+$/.test(o),val:o}),o=v,i=v)}return o.length>0&&d.push({literal:l||/^\s+$/.test(o),val:o}),d}static macroTokenToFormatOpts(e){return $S[e]}constructor(e,i){this.opts=i,this.loc=e,this.systemLoc=null}formatWithSystemDefault(e,i){return this.systemLoc===null&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(e,{...this.opts,...i}).format()}dtFormatter(e,i={}){return this.loc.dtFormatter(e,{...this.opts,...i})}formatDateTime(e,i){return this.dtFormatter(e,i).format()}formatDateTimeParts(e,i){return this.dtFormatter(e,i).formatToParts()}formatInterval(e,i){return this.dtFormatter(e.start,i).dtf.formatRange(e.start.toJSDate(),e.end.toJSDate())}resolvedOptions(e,i){return this.dtFormatter(e,i).resolvedOptions()}num(e,i=0){if(this.opts.forceSimple)return gt(e,i);const o={...this.opts};return i>0&&(o.padTo=i),this.loc.numberFormatter(o).format(e)}formatDateTimeFromString(e,i){const o=this.loc.listingMode()==="en",l=this.loc.outputCalendar&&this.loc.outputCalendar!=="gregory",d=(E,N)=>this.loc.extract(e,E,N),u=E=>e.isOffsetFixed&&e.offset===0&&E.allowZ?"Z":e.isValid?e.zone.formatOffset(e.ts,E.format):"",v=()=>o?LS(e):d({hour:"numeric",hourCycle:"h12"},"dayperiod"),m=(E,N)=>o?MS(e,E):d(N?{month:E}:{month:E,day:"numeric"},"month"),y=(E,N)=>o?SS(e,E):d(N?{weekday:E}:{weekday:E,month:"long",day:"numeric"},"weekday"),T=E=>{const N=Dt.macroTokenToFormatOpts(E);return N?this.formatWithSystemDefault(e,N):E},S=E=>o?TS(e,E):d({era:E},"era"),$=E=>{switch(E){case"S":return this.num(e.millisecond);case"u":case"SSS":return this.num(e.millisecond,3);case"s":return this.num(e.second);case"ss":return this.num(e.second,2);case"uu":return this.num(Math.floor(e.millisecond/10),2);case"uuu":return this.num(Math.floor(e.millisecond/100));case"m":return this.num(e.minute);case"mm":return this.num(e.minute,2);case"h":return this.num(e.hour%12===0?12:e.hour%12);case"hh":return this.num(e.hour%12===0?12:e.hour%12,2);case"H":return this.num(e.hour);case"HH":return this.num(e.hour,2);case"Z":return u({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return u({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return u({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return e.zone.offsetName(e.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return e.zone.offsetName(e.ts,{format:"long",locale:this.loc.locale});case"z":return e.zoneName;case"a":return v();case"d":return l?d({day:"numeric"},"day"):this.num(e.day);case"dd":return l?d({day:"2-digit"},"day"):this.num(e.day,2);case"c":return this.num(e.weekday);case"ccc":return y("short",!0);case"cccc":return y("long",!0);case"ccccc":return y("narrow",!0);case"E":return this.num(e.weekday);case"EEE":return y("short",!1);case"EEEE":return y("long",!1);case"EEEEE":return y("narrow",!1);case"L":return l?d({month:"numeric",day:"numeric"},"month"):this.num(e.month);case"LL":return l?d({month:"2-digit",day:"numeric"},"month"):this.num(e.month,2);case"LLL":return m("short",!0);case"LLLL":return m("long",!0);case"LLLLL":return m("narrow",!0);case"M":return l?d({month:"numeric"},"month"):this.num(e.month);case"MM":return l?d({month:"2-digit"},"month"):this.num(e.month,2);case"MMM":return m("short",!1);case"MMMM":return m("long",!1);case"MMMMM":return m("narrow",!1);case"y":return l?d({year:"numeric"},"year"):this.num(e.year);case"yy":return l?d({year:"2-digit"},"year"):this.num(e.year.toString().slice(-2),2);case"yyyy":return l?d({year:"numeric"},"year"):this.num(e.year,4);case"yyyyyy":return l?d({year:"numeric"},"year"):this.num(e.year,6);case"G":return S("short");case"GG":return S("long");case"GGGGG":return S("narrow");case"kk":return this.num(e.weekYear.toString().slice(-2),2);case"kkkk":return this.num(e.weekYear,4);case"W":return this.num(e.weekNumber);case"WW":return this.num(e.weekNumber,2);case"o":return this.num(e.ordinal);case"ooo":return this.num(e.ordinal,3);case"q":return this.num(e.quarter);case"qq":return this.num(e.quarter,2);case"X":return this.num(Math.floor(e.ts/1e3));case"x":return this.num(e.ts);default:return T(E)}};return l2(Dt.parseFormat(i),$)}formatDurationFromString(e,i){const o=m=>{switch(m[0]){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"w":return"week";case"M":return"month";case"y":return"year";default:return null}},l=m=>y=>{const T=o(y);return T?this.num(m.get(T),y.length):y},d=Dt.parseFormat(i),u=d.reduce((m,{literal:y,val:T})=>y?m:m.concat(T),[]),v=e.shiftTo(...u.map(o).filter(m=>m));return l2(d,l(v))}}class Tr{constructor(e,i){this.reason=e,this.explanation=i}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}const S5=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function yo(...n){const e=n.reduce((i,o)=>i+o.source,"");return RegExp(`^${e}$`)}function Co(...n){return e=>n.reduce(([i,o,l],d)=>{const[u,v,m]=d(e,l);return[{...i,...u},v||o,m]},[{},null,1]).slice(0,2)}function wo(n,...e){if(n==null)return[null,null];for(const[i,o]of e){const l=i.exec(n);if(l)return o(l)}return[null,null]}function M5(...n){return(e,i)=>{const o={};let l;for(l=0;l<n.length;l++)o[n[l]]=En(e[i+l]);return[o,null,i+l]}}const T5=/(?:(Z)|([+-]\d\d)(?::?(\d\d))?)/,OS=`(?:${T5.source}?(?:\\[(${S5.source})\\])?)?`,w0=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,k5=RegExp(`${w0.source}${OS}`),x0=RegExp(`(?:T${k5.source})?`),ES=/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,_S=/(\d{4})-?W(\d\d)(?:-?(\d))?/,IS=/(\d{4})-?(\d{3})/,AS=M5("weekYear","weekNumber","weekDay"),PS=M5("year","ordinal"),DS=/(\d{4})-(\d\d)-(\d\d)/,$5=RegExp(`${w0.source} ?(?:${T5.source}|(${S5.source}))?`),NS=RegExp(`(?: ${$5.source})?`);function to(n,e,i){const o=n[e];return De(o)?i:En(o)}function HS(n,e){return[{year:to(n,e),month:to(n,e+1,1),day:to(n,e+2,1)},null,e+3]}function xo(n,e){return[{hours:to(n,e,0),minutes:to(n,e+1,0),seconds:to(n,e+2,0),milliseconds:y0(n[e+3])},null,e+4]}function Ra(n,e){const i=!n[e]&&!n[e+1],o=Nl(n[e+1],n[e+2]),l=i?null:Wt.instance(o);return[{},l,e+3]}function Fa(n,e){const i=n[e]?ln.create(n[e]):null;return[{},i,e+1]}const RS=RegExp(`^T?${w0.source}$`),FS=/^-?P(?:(?:(-?\d{1,20}(?:\.\d{1,20})?)Y)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20}(?:\.\d{1,20})?)W)?(?:(-?\d{1,20}(?:\.\d{1,20})?)D)?(?:T(?:(-?\d{1,20}(?:\.\d{1,20})?)H)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,20}))?S)?)?)$/;function BS(n){const[e,i,o,l,d,u,v,m,y]=n,T=e[0]==="-",S=m&&m[0]==="-",$=(E,N=!1)=>E!==void 0&&(N||E&&T)?-E:E;return[{years:$(ii(i)),months:$(ii(o)),weeks:$(ii(l)),days:$(ii(d)),hours:$(ii(u)),minutes:$(ii(v)),seconds:$(ii(m),m==="-0"),milliseconds:$(y0(y),S)}]}const VS={GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function z0(n,e,i,o,l,d,u){const v={year:e.length===2?Hc(En(e)):En(e),month:m5.indexOf(i)+1,day:En(o),hour:En(l),minute:En(d)};return u&&(v.second=En(u)),n&&(v.weekday=n.length>3?C5.indexOf(n)+1:w5.indexOf(n)+1),v}const ZS=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function WS(n){const[,e,i,o,l,d,u,v,m,y,T,S]=n,$=z0(e,l,o,i,d,u,v);let E;return m?E=VS[m]:y?E=0:E=Nl(T,S),[$,new Wt(E)]}function US(n){return n.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}const jS=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,GS=/^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,qS=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function c2(n){const[,e,i,o,l,d,u,v]=n;return[z0(e,l,o,i,d,u,v),Wt.utcInstance]}function KS(n){const[,e,i,o,l,d,u,v]=n;return[z0(e,v,i,o,l,d,u),Wt.utcInstance]}const YS=yo(ES,x0),XS=yo(_S,x0),JS=yo(IS,x0),QS=yo(k5),O5=Co(HS,xo,Ra,Fa),eM=Co(AS,xo,Ra,Fa),tM=Co(PS,xo,Ra,Fa),rM=Co(xo,Ra,Fa);function nM(n){return wo(n,[YS,O5],[XS,eM],[JS,tM],[QS,rM])}function iM(n){return wo(US(n),[ZS,WS])}function oM(n){return wo(n,[jS,c2],[GS,c2],[qS,KS])}function aM(n){return wo(n,[FS,BS])}const sM=Co(xo);function lM(n){return wo(n,[RS,sM])}const cM=yo(DS,NS),uM=yo($5),dM=Co(xo,Ra,Fa);function hM(n){return wo(n,[cM,O5],[uM,dM])}const fM="Invalid Duration",E5={weeks:{days:7,hours:7*24,minutes:7*24*60,seconds:7*24*60*60,milliseconds:7*24*60*60*1e3},days:{hours:24,minutes:24*60,seconds:24*60*60,milliseconds:24*60*60*1e3},hours:{minutes:60,seconds:60*60,milliseconds:60*60*1e3},minutes:{seconds:60,milliseconds:60*1e3},seconds:{milliseconds:1e3}},pM={years:{quarters:4,months:12,weeks:52,days:365,hours:365*24,minutes:365*24*60,seconds:365*24*60*60,milliseconds:365*24*60*60*1e3},quarters:{months:3,weeks:13,days:91,hours:91*24,minutes:91*24*60,seconds:91*24*60*60,milliseconds:91*24*60*60*1e3},months:{weeks:4,days:30,hours:30*24,minutes:30*24*60,seconds:30*24*60*60,milliseconds:30*24*60*60*1e3},...E5},hr=146097/400,Yi=146097/4800,gM={years:{quarters:4,months:12,weeks:hr/7,days:hr,hours:hr*24,minutes:hr*24*60,seconds:hr*24*60*60,milliseconds:hr*24*60*60*1e3},quarters:{months:3,weeks:hr/28,days:hr/4,hours:hr*24/4,minutes:hr*24*60/4,seconds:hr*24*60*60/4,milliseconds:hr*24*60*60*1e3/4},months:{weeks:Yi/7,days:Yi,hours:Yi*24,minutes:Yi*24*60,seconds:Yi*24*60*60,milliseconds:Yi*24*60*60*1e3},...E5},si=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],_5=si.slice(0).reverse();function On(n,e,i=!1){const o={values:i?e.values:{...n.values,...e.values||{}},loc:n.loc.clone(e.loc),conversionAccuracy:e.conversionAccuracy||n.conversionAccuracy,matrix:e.matrix||n.matrix};return new Ne(o)}function u2(n){return Math.trunc(n*1e3)/1e3}function I5(n,e,i,o,l){const d=n[l][i],u=e[i]/d,v=Math.floor(u);o[l]=u2(o[l]+v),e[i]=u2(e[i]-v*d)}function vM(n,e){_5.reduce((i,o)=>De(e[o])?i:(i&&I5(n,e,i,e,o),o),null)}function bM(n){const e={};for(const[i,o]of Object.entries(n))o!==0&&(e[i]=o);return e}class Ne{constructor(e){const i=e.conversionAccuracy==="longterm"||!1;let o=i?gM:pM;e.matrix&&(o=e.matrix),this.values=e.values,this.loc=e.loc||tt.create(),this.conversionAccuracy=i?"longterm":"casual",this.invalid=e.invalid||null,this.matrix=o,this.isLuxonDuration=!0}static fromMillis(e,i){return Ne.fromObject({milliseconds:e},i)}static fromObject(e,i={}){if(e==null||typeof e!="object")throw new fr(`Duration.fromObject: argument expected to be an object, got ${e===null?"null":typeof e}`);return new Ne({values:cl(e,Ne.normalizeUnit),loc:tt.fromObject(i),conversionAccuracy:i.conversionAccuracy,matrix:i.matrix})}static fromDurationLike(e){if(hi(e))return Ne.fromMillis(e);if(Ne.isDuration(e))return e;if(typeof e=="object")return Ne.fromObject(e);throw new fr(`Unknown duration argument ${e} of type ${typeof e}`)}static fromISO(e,i){const[o]=aM(e);return o?Ne.fromObject(o,i):Ne.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static fromISOTime(e,i){const[o]=lM(e);return o?Ne.fromObject(o,i):Ne.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static invalid(e,i=null){if(!e)throw new fr("need to specify a reason the Duration is invalid");const o=e instanceof Tr?e:new Tr(e,i);if(pt.throwOnInvalid)throw new GL(o);return new Ne({invalid:o})}static normalizeUnit(e){const i={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[e&&e.toLowerCase()];if(!i)throw new Kp(e);return i}static isDuration(e){return e&&e.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(e,i={}){const o={...i,floor:i.round!==!1&&i.floor!==!1};return this.isValid?Dt.create(this.loc,o).formatDurationFromString(this,e):fM}toHuman(e={}){const i=si.map(o=>{const l=this.values[o];return De(l)?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...e,unit:o.slice(0,-1)}).format(l)}).filter(o=>o);return this.loc.listFormatter({type:"conjunction",style:e.listStyle||"narrow",...e}).format(i)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let e="P";return this.years!==0&&(e+=this.years+"Y"),(this.months!==0||this.quarters!==0)&&(e+=this.months+this.quarters*3+"M"),this.weeks!==0&&(e+=this.weeks+"W"),this.days!==0&&(e+=this.days+"D"),(this.hours!==0||this.minutes!==0||this.seconds!==0||this.milliseconds!==0)&&(e+="T"),this.hours!==0&&(e+=this.hours+"H"),this.minutes!==0&&(e+=this.minutes+"M"),(this.seconds!==0||this.milliseconds!==0)&&(e+=C0(this.seconds+this.milliseconds/1e3,3)+"S"),e==="P"&&(e+="T0S"),e}toISOTime(e={}){if(!this.isValid)return null;const i=this.toMillis();return i<0||i>=864e5?null:(e={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...e,includeOffset:!1},Te.fromMillis(i,{zone:"UTC"}).toISOTime(e))}toJSON(){return this.toISO()}toString(){return this.toISO()}toMillis(){var i,o;let e=(i=this.values.milliseconds)!=null?i:0;for(let l of _5.slice(1))(o=this.values)!=null&&o[l]&&(e+=this.values[l]*this.matrix[l].milliseconds);return e}valueOf(){return this.toMillis()}plus(e){if(!this.isValid)return this;const i=Ne.fromDurationLike(e),o={};for(const l of si)(lo(i.values,l)||lo(this.values,l))&&(o[l]=i.get(l)+this.get(l));return On(this,{values:o},!0)}minus(e){if(!this.isValid)return this;const i=Ne.fromDurationLike(e);return this.plus(i.negate())}mapUnits(e){if(!this.isValid)return this;const i={};for(const o of Object.keys(this.values))i[o]=b5(e(this.values[o],o));return On(this,{values:i},!0)}get(e){return this[Ne.normalizeUnit(e)]}set(e){if(!this.isValid)return this;const i={...this.values,...cl(e,Ne.normalizeUnit)};return On(this,{values:i})}reconfigure({locale:e,numberingSystem:i,conversionAccuracy:o,matrix:l}={}){const u={loc:this.loc.clone({locale:e,numberingSystem:i}),matrix:l,conversionAccuracy:o};return On(this,u)}as(e){return this.isValid?this.shiftTo(e).get(e):NaN}normalize(){if(!this.isValid)return this;const e=this.toObject();return this.valueOf()>=0?(vM(this.matrix,e),On(this,{values:e},!0)):this.negate().normalize().negate()}rescale(){if(!this.isValid)return this;const e=bM(this.normalize().shiftToAll().toObject());return On(this,{values:e},!0)}shiftTo(...e){if(!this.isValid)return this;if(e.length===0)return this;e=e.map(u=>Ne.normalizeUnit(u));const i={},o={},l=this.toObject();let d;for(const u of si)if(e.indexOf(u)>=0){d=u;let v=0;for(const y in o)v+=this.matrix[y][u]*o[y],o[y]=0;hi(l[u])&&(v+=l[u]);const m=Math.trunc(v);i[u]=m,o[u]=(v*1e3-m*1e3)/1e3;for(const y in l)si.indexOf(y)>si.indexOf(u)&&I5(this.matrix,l,y,i,u)}else hi(l[u])&&(o[u]=l[u]);for(const u in o)o[u]!==0&&(i[d]+=u===d?o[u]:o[u]/this.matrix[d][u]);return On(this,{values:i},!0).normalize()}shiftToAll(){return this.isValid?this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds"):this}negate(){if(!this.isValid)return this;const e={};for(const i of Object.keys(this.values))e[i]=this.values[i]===0?0:-this.values[i];return On(this,{values:e},!0)}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(e){if(!this.isValid||!e.isValid||!this.loc.equals(e.loc))return!1;function i(o,l){return o===void 0||o===0?l===void 0||l===0:o===l}for(const o of si)if(!i(this.values[o],e.values[o]))return!1;return!0}}const Xi="Invalid Interval";function mM(n,e){return!n||!n.isValid?st.invalid("missing or invalid start"):!e||!e.isValid?st.invalid("missing or invalid end"):e<n?st.invalid("end before start",`The end of an interval must be after its start, but you had start=${n.toISO()} and end=${e.toISO()}`):null}class st{constructor(e){this.s=e.start,this.e=e.end,this.invalid=e.invalid||null,this.isLuxonInterval=!0}static invalid(e,i=null){if(!e)throw new fr("need to specify a reason the Interval is invalid");const o=e instanceof Tr?e:new Tr(e,i);if(pt.throwOnInvalid)throw new jL(o);return new st({invalid:o})}static fromDateTimes(e,i){const o=ha(e),l=ha(i),d=mM(o,l);return d==null?new st({start:o,end:l}):d}static after(e,i){const o=Ne.fromDurationLike(i),l=ha(e);return st.fromDateTimes(l,l.plus(o))}static before(e,i){const o=Ne.fromDurationLike(i),l=ha(e);return st.fromDateTimes(l.minus(o),l)}static fromISO(e,i){const[o,l]=(e||"").split("/",2);if(o&&l){let d,u;try{d=Te.fromISO(o,i),u=d.isValid}catch{u=!1}let v,m;try{v=Te.fromISO(l,i),m=v.isValid}catch{m=!1}if(u&&m)return st.fromDateTimes(d,v);if(u){const y=Ne.fromISO(l,i);if(y.isValid)return st.after(d,y)}else if(m){const y=Ne.fromISO(o,i);if(y.isValid)return st.before(v,y)}}return st.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static isInterval(e){return e&&e.isLuxonInterval||!1}get start(){return this.isValid?this.s:null}get end(){return this.isValid?this.e:null}get isValid(){return this.invalidReason===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}length(e="milliseconds"){return this.isValid?this.toDuration(e).get(e):NaN}count(e="milliseconds"){if(!this.isValid)return NaN;const i=this.start.startOf(e),o=this.end.startOf(e);return Math.floor(o.diff(i,e).get(e))+(o.valueOf()!==this.end.valueOf())}hasSame(e){return this.isValid?this.isEmpty()||this.e.minus(1).hasSame(this.s,e):!1}isEmpty(){return this.s.valueOf()===this.e.valueOf()}isAfter(e){return this.isValid?this.s>e:!1}isBefore(e){return this.isValid?this.e<=e:!1}contains(e){return this.isValid?this.s<=e&&this.e>e:!1}set({start:e,end:i}={}){return this.isValid?st.fromDateTimes(e||this.s,i||this.e):this}splitAt(...e){if(!this.isValid)return[];const i=e.map(ha).filter(u=>this.contains(u)).sort(),o=[];let{s:l}=this,d=0;for(;l<this.e;){const u=i[d]||this.e,v=+u>+this.e?this.e:u;o.push(st.fromDateTimes(l,v)),l=v,d+=1}return o}splitBy(e){const i=Ne.fromDurationLike(e);if(!this.isValid||!i.isValid||i.as("milliseconds")===0)return[];let{s:o}=this,l=1,d;const u=[];for(;o<this.e;){const v=this.start.plus(i.mapUnits(m=>m*l));d=+v>+this.e?this.e:v,u.push(st.fromDateTimes(o,d)),o=d,l+=1}return u}divideEqually(e){return this.isValid?this.splitBy(this.length()/e).slice(0,e):[]}overlaps(e){return this.e>e.s&&this.s<e.e}abutsStart(e){return this.isValid?+this.e==+e.s:!1}abutsEnd(e){return this.isValid?+e.e==+this.s:!1}engulfs(e){return this.isValid?this.s<=e.s&&this.e>=e.e:!1}equals(e){return!this.isValid||!e.isValid?!1:this.s.equals(e.s)&&this.e.equals(e.e)}intersection(e){if(!this.isValid)return this;const i=this.s>e.s?this.s:e.s,o=this.e<e.e?this.e:e.e;return i>=o?null:st.fromDateTimes(i,o)}union(e){if(!this.isValid)return this;const i=this.s<e.s?this.s:e.s,o=this.e>e.e?this.e:e.e;return st.fromDateTimes(i,o)}static merge(e){const[i,o]=e.sort((l,d)=>l.s-d.s).reduce(([l,d],u)=>d?d.overlaps(u)||d.abutsStart(u)?[l,d.union(u)]:[l.concat([d]),u]:[l,u],[[],null]);return o&&i.push(o),i}static xor(e){let i=null,o=0;const l=[],d=e.map(m=>[{time:m.s,type:"s"},{time:m.e,type:"e"}]),u=Array.prototype.concat(...d),v=u.sort((m,y)=>m.time-y.time);for(const m of v)o+=m.type==="s"?1:-1,o===1?i=m.time:(i&&+i!=+m.time&&l.push(st.fromDateTimes(i,m.time)),i=null);return st.merge(l)}difference(...e){return st.xor([this].concat(e)).map(i=>this.intersection(i)).filter(i=>i&&!i.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} – ${this.e.toISO()})`:Xi}toLocaleString(e=al,i={}){return this.isValid?Dt.create(this.s.loc.clone(i),e).formatInterval(this):Xi}toISO(e){return this.isValid?`${this.s.toISO(e)}/${this.e.toISO(e)}`:Xi}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:Xi}toISOTime(e){return this.isValid?`${this.s.toISOTime(e)}/${this.e.toISOTime(e)}`:Xi}toFormat(e,{separator:i=" – "}={}){return this.isValid?`${this.s.toFormat(e)}${i}${this.e.toFormat(e)}`:Xi}toDuration(e,i){return this.isValid?this.e.diff(this.s,e,i):Ne.invalid(this.invalidReason)}mapEndpoints(e){return st.fromDateTimes(e(this.s),e(this.e))}}class Os{static hasDST(e=pt.defaultZone){const i=Te.now().setZone(e).set({month:12});return!e.isUniversal&&i.offset!==i.set({month:6}).offset}static isValidIANAZone(e){return ln.isValidZone(e)}static normalizeZone(e){return In(e,pt.defaultZone)}static months(e="long",{locale:i=null,numberingSystem:o=null,locObj:l=null,outputCalendar:d="gregory"}={}){return(l||tt.create(i,o,d)).months(e)}static monthsFormat(e="long",{locale:i=null,numberingSystem:o=null,locObj:l=null,outputCalendar:d="gregory"}={}){return(l||tt.create(i,o,d)).months(e,!0)}static weekdays(e="long",{locale:i=null,numberingSystem:o=null,locObj:l=null}={}){return(l||tt.create(i,o,null)).weekdays(e)}static weekdaysFormat(e="long",{locale:i=null,numberingSystem:o=null,locObj:l=null}={}){return(l||tt.create(i,o,null)).weekdays(e,!0)}static meridiems({locale:e=null}={}){return tt.create(e).meridiems()}static eras(e="short",{locale:i=null}={}){return tt.create(i,null,"gregory").eras(e)}static features(){return{relative:g5()}}}function d2(n,e){const i=l=>l.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),o=i(e)-i(n);return Math.floor(Ne.fromMillis(o).as("days"))}function yM(n,e,i){const o=[["years",(m,y)=>y.year-m.year],["quarters",(m,y)=>y.quarter-m.quarter+(y.year-m.year)*4],["months",(m,y)=>y.month-m.month+(y.year-m.year)*12],["weeks",(m,y)=>{const T=d2(m,y);return(T-T%7)/7}],["days",d2]],l={},d=n;let u,v;for(const[m,y]of o)i.indexOf(m)>=0&&(u=m,l[m]=y(n,e),v=d.plus(l),v>e?(l[m]--,n=d.plus(l),n>e&&(v=n,l[m]--,n=d.plus(l))):n=v);return[n,l,v,u]}function CM(n,e,i,o){let[l,d,u,v]=yM(n,e,i);const m=e-l,y=i.filter(S=>["hours","minutes","seconds","milliseconds"].indexOf(S)>=0);y.length===0&&(u<e&&(u=l.plus({[v]:1})),u!==l&&(d[v]=(d[v]||0)+m/(u-l)));const T=Ne.fromObject(d,o);return y.length>0?Ne.fromMillis(m,o).shiftTo(...y).plus(T):T}const L0={arab:"[٠-٩]",arabext:"[۰-۹]",bali:"[᭐-᭙]",beng:"[০-৯]",deva:"[०-९]",fullwide:"[0-9]",gujr:"[૦-૯]",hanidec:"[〇|一|二|三|四|五|六|七|八|九]",khmr:"[០-៩]",knda:"[೦-೯]",laoo:"[໐-໙]",limb:"[᥆-᥏]",mlym:"[൦-൯]",mong:"[᠐-᠙]",mymr:"[၀-၉]",orya:"[୦-୯]",tamldec:"[௦-௯]",telu:"[౦-౯]",thai:"[๐-๙]",tibt:"[༠-༩]",latn:"\\d"},h2={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},wM=L0.hanidec.replace(/[\[|\]]/g,"").split("");function xM(n){let e=parseInt(n,10);if(isNaN(e)){e="";for(let i=0;i<n.length;i++){const o=n.charCodeAt(i);if(n[i].search(L0.hanidec)!==-1)e+=wM.indexOf(n[i]);else for(const l in h2){const[d,u]=h2[l];o>=d&&o<=u&&(e+=o-d)}}return parseInt(e,10)}else return e}function Lr({numberingSystem:n},e=""){return new RegExp(`${L0[n||"latn"]}${e}`)}const zM="missing Intl.DateTimeFormat.formatToParts support";function Ve(n,e=i=>i){return{regex:n,deser:([i])=>e(xM(i))}}const LM=String.fromCharCode(160),A5=`[ ${LM}]`,P5=new RegExp(A5,"g");function SM(n){return n.replace(/\./g,"\\.?").replace(P5,A5)}function f2(n){return n.replace(/\./g,"").replace(P5," ").toLowerCase()}function Sr(n,e){return n===null?null:{regex:RegExp(n.map(SM).join("|")),deser:([i])=>n.findIndex(o=>f2(i)===f2(o))+e}}function p2(n,e){return{regex:n,deser:([,i,o])=>Nl(i,o),groups:e}}function Es(n){return{regex:n,deser:([e])=>e}}function MM(n){return n.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function TM(n,e){const i=Lr(e),o=Lr(e,"{2}"),l=Lr(e,"{3}"),d=Lr(e,"{4}"),u=Lr(e,"{6}"),v=Lr(e,"{1,2}"),m=Lr(e,"{1,3}"),y=Lr(e,"{1,6}"),T=Lr(e,"{1,9}"),S=Lr(e,"{2,4}"),$=Lr(e,"{4,6}"),E=ee=>({regex:RegExp(MM(ee.val)),deser:([te])=>te,literal:!0}),G=(ee=>{if(n.literal)return E(ee);switch(ee.val){case"G":return Sr(e.eras("short"),0);case"GG":return Sr(e.eras("long"),0);case"y":return Ve(y);case"yy":return Ve(S,Hc);case"yyyy":return Ve(d);case"yyyyy":return Ve($);case"yyyyyy":return Ve(u);case"M":return Ve(v);case"MM":return Ve(o);case"MMM":return Sr(e.months("short",!0),1);case"MMMM":return Sr(e.months("long",!0),1);case"L":return Ve(v);case"LL":return Ve(o);case"LLL":return Sr(e.months("short",!1),1);case"LLLL":return Sr(e.months("long",!1),1);case"d":return Ve(v);case"dd":return Ve(o);case"o":return Ve(m);case"ooo":return Ve(l);case"HH":return Ve(o);case"H":return Ve(v);case"hh":return Ve(o);case"h":return Ve(v);case"mm":return Ve(o);case"m":return Ve(v);case"q":return Ve(v);case"qq":return Ve(o);case"s":return Ve(v);case"ss":return Ve(o);case"S":return Ve(m);case"SSS":return Ve(l);case"u":return Es(T);case"uu":return Es(v);case"uuu":return Ve(i);case"a":return Sr(e.meridiems(),0);case"kkkk":return Ve(d);case"kk":return Ve(S,Hc);case"W":return Ve(v);case"WW":return Ve(o);case"E":case"c":return Ve(i);case"EEE":return Sr(e.weekdays("short",!1),1);case"EEEE":return Sr(e.weekdays("long",!1),1);case"ccc":return Sr(e.weekdays("short",!0),1);case"cccc":return Sr(e.weekdays("long",!0),1);case"Z":case"ZZ":return p2(new RegExp(`([+-]${v.source})(?::(${o.source}))?`),2);case"ZZZ":return p2(new RegExp(`([+-]${v.source})(${o.source})?`),2);case"z":return Es(/[a-z_+-/]{1,256}?/i);case" ":return Es(/[^\S\n\r]/);default:return E(ee)}})(n)||{invalidReason:zM};return G.token=n,G}const kM={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour12:{numeric:"h","2-digit":"hh"},hour24:{numeric:"H","2-digit":"HH"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"},timeZoneName:{long:"ZZZZZ",short:"ZZZ"}};function $M(n,e,i){const{type:o,value:l}=n;if(o==="literal"){const m=/^\s+$/.test(l);return{literal:!m,val:m?" ":l}}const d=e[o];let u=o;o==="hour"&&(e.hour12!=null?u=e.hour12?"hour12":"hour24":e.hourCycle!=null?e.hourCycle==="h11"||e.hourCycle==="h12"?u="hour12":u="hour24":u=i.hour12?"hour12":"hour24");let v=kM[u];if(typeof v=="object"&&(v=v[d]),v)return{literal:!1,val:v}}function OM(n){return[`^${n.map(i=>i.regex).reduce((i,o)=>`${i}(${o.source})`,"")}$`,n]}function EM(n,e,i){const o=n.match(e);if(o){const l={};let d=1;for(const u in i)if(lo(i,u)){const v=i[u],m=v.groups?v.groups+1:1;!v.literal&&v.token&&(l[v.token.val[0]]=v.deser(o.slice(d,d+m))),d+=m}return[o,l]}else return[o,{}]}function _M(n){const e=d=>{switch(d){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}};let i=null,o;return De(n.z)||(i=ln.create(n.z)),De(n.Z)||(i||(i=new Wt(n.Z)),o=n.Z),De(n.q)||(n.M=(n.q-1)*3+1),De(n.h)||(n.h<12&&n.a===1?n.h+=12:n.h===12&&n.a===0&&(n.h=0)),n.G===0&&n.y&&(n.y=-n.y),De(n.u)||(n.S=y0(n.u)),[Object.keys(n).reduce((d,u)=>{const v=e(u);return v&&(d[v]=n[u]),d},{}),i,o]}let lc=null;function IM(){return lc||(lc=Te.fromMillis(1555555555555)),lc}function AM(n,e){if(n.literal)return n;const i=Dt.macroTokenToFormatOpts(n.val),o=H5(i,e);return o==null||o.includes(void 0)?n:o}function D5(n,e){return Array.prototype.concat(...n.map(i=>AM(i,e)))}function N5(n,e,i){const o=D5(Dt.parseFormat(i),n),l=o.map(u=>TM(u,n)),d=l.find(u=>u.invalidReason);if(d)return{input:e,tokens:o,invalidReason:d.invalidReason};{const[u,v]=OM(l),m=RegExp(u,"i"),[y,T]=EM(e,m,v),[S,$,E]=T?_M(T):[null,null,void 0];if(lo(T,"a")&&lo(T,"H"))throw new va("Can't include meridiem when specifying 24-hour format");return{input:e,tokens:o,regex:m,rawMatches:y,matches:T,result:S,zone:$,specificOffset:E}}}function PM(n,e,i){const{result:o,zone:l,specificOffset:d,invalidReason:u}=N5(n,e,i);return[o,l,d,u]}function H5(n,e){if(!n)return null;const o=Dt.create(e,n).dtFormatter(IM()),l=o.formatToParts(),d=o.resolvedOptions();return l.map(u=>$M(u,n,d))}const R5=[0,31,59,90,120,151,181,212,243,273,304,334],F5=[0,31,60,91,121,152,182,213,244,274,305,335];function pr(n,e){return new Tr("unit out of range",`you specified ${e} (of type ${typeof e}) as a ${n}, which is invalid`)}function B5(n,e,i){const o=new Date(Date.UTC(n,e-1,i));n<100&&n>=0&&o.setUTCFullYear(o.getUTCFullYear()-1900);const l=o.getUTCDay();return l===0?7:l}function V5(n,e,i){return i+(Ha(n)?F5:R5)[e-1]}function Z5(n,e){const i=Ha(n)?F5:R5,o=i.findIndex(d=>d<e),l=e-i[o];return{month:o+1,day:l}}function Rc(n){const{year:e,month:i,day:o}=n,l=V5(e,i,o),d=B5(e,i,o);let u=Math.floor((l-d+10)/7),v;return u<1?(v=e-1,u=ll(v)):u>ll(e)?(v=e+1,u=1):v=e,{weekYear:v,weekNumber:u,weekday:d,...Hl(n)}}function g2(n){const{weekYear:e,weekNumber:i,weekday:o}=n,l=B5(e,1,4),d=ya(e);let u=i*7+o-l-3,v;u<1?(v=e-1,u+=ya(v)):u>d?(v=e+1,u-=ya(e)):v=e;const{month:m,day:y}=Z5(v,u);return{year:v,month:m,day:y,...Hl(n)}}function cc(n){const{year:e,month:i,day:o}=n,l=V5(e,i,o);return{year:e,ordinal:l,...Hl(n)}}function v2(n){const{year:e,ordinal:i}=n,{month:o,day:l}=Z5(e,i);return{year:e,month:o,day:l,...Hl(n)}}function DM(n){const e=Pl(n.weekYear),i=an(n.weekNumber,1,ll(n.weekYear)),o=an(n.weekday,1,7);return e?i?o?!1:pr("weekday",n.weekday):pr("week",n.week):pr("weekYear",n.weekYear)}function NM(n){const e=Pl(n.year),i=an(n.ordinal,1,ya(n.year));return e?i?!1:pr("ordinal",n.ordinal):pr("year",n.year)}function W5(n){const e=Pl(n.year),i=an(n.month,1,12),o=an(n.day,1,sl(n.year,n.month));return e?i?o?!1:pr("day",n.day):pr("month",n.month):pr("year",n.year)}function U5(n){const{hour:e,minute:i,second:o,millisecond:l}=n,d=an(e,0,23)||e===24&&i===0&&o===0&&l===0,u=an(i,0,59),v=an(o,0,59),m=an(l,0,999);return d?u?v?m?!1:pr("millisecond",l):pr("second",o):pr("minute",i):pr("hour",e)}const uc="Invalid DateTime",b2=864e13;function _s(n){return new Tr("unsupported zone",`the zone "${n.name}" is not supported`)}function dc(n){return n.weekData===null&&(n.weekData=Rc(n.c)),n.weekData}function oi(n,e){const i={ts:n.ts,zone:n.zone,c:n.c,o:n.o,loc:n.loc,invalid:n.invalid};return new Te({...i,...e,old:i})}function j5(n,e,i){let o=n-e*60*1e3;const l=i.offset(o);if(e===l)return[o,e];o-=(l-e)*60*1e3;const d=i.offset(o);return l===d?[o,l]:[n-Math.min(l,d)*60*1e3,Math.max(l,d)]}function Is(n,e){n+=e*60*1e3;const i=new Date(n);return{year:i.getUTCFullYear(),month:i.getUTCMonth()+1,day:i.getUTCDate(),hour:i.getUTCHours(),minute:i.getUTCMinutes(),second:i.getUTCSeconds(),millisecond:i.getUTCMilliseconds()}}function Hs(n,e,i){return j5(Dl(n),e,i)}function m2(n,e){const i=n.o,o=n.c.year+Math.trunc(e.years),l=n.c.month+Math.trunc(e.months)+Math.trunc(e.quarters)*3,d={...n.c,year:o,month:l,day:Math.min(n.c.day,sl(o,l))+Math.trunc(e.days)+Math.trunc(e.weeks)*7},u=Ne.fromObject({years:e.years-Math.trunc(e.years),quarters:e.quarters-Math.trunc(e.quarters),months:e.months-Math.trunc(e.months),weeks:e.weeks-Math.trunc(e.weeks),days:e.days-Math.trunc(e.days),hours:e.hours,minutes:e.minutes,seconds:e.seconds,milliseconds:e.milliseconds}).as("milliseconds"),v=Dl(d);let[m,y]=j5(v,i,n.zone);return u!==0&&(m+=u,y=n.zone.offset(m)),{ts:m,o:y}}function da(n,e,i,o,l,d){const{setZone:u,zone:v}=i;if(n&&Object.keys(n).length!==0||e){const m=e||v,y=Te.fromObject(n,{...i,zone:m,specificOffset:d});return u?y:y.setZone(v)}else return Te.invalid(new Tr("unparsable",`the input "${l}" can't be parsed as ${o}`))}function As(n,e,i=!0){return n.isValid?Dt.create(tt.create("en-US"),{allowZ:i,forceSimple:!0}).formatDateTimeFromString(n,e):null}function hc(n,e){const i=n.c.year>9999||n.c.year<0;let o="";return i&&n.c.year>=0&&(o+="+"),o+=gt(n.c.year,i?6:4),e?(o+="-",o+=gt(n.c.month),o+="-",o+=gt(n.c.day)):(o+=gt(n.c.month),o+=gt(n.c.day)),o}function y2(n,e,i,o,l,d){let u=gt(n.c.hour);return e?(u+=":",u+=gt(n.c.minute),(n.c.millisecond!==0||n.c.second!==0||!i)&&(u+=":")):u+=gt(n.c.minute),(n.c.millisecond!==0||n.c.second!==0||!i)&&(u+=gt(n.c.second),(n.c.millisecond!==0||!o)&&(u+=".",u+=gt(n.c.millisecond,3))),l&&(n.isOffsetFixed&&n.offset===0&&!d?u+="Z":n.o<0?(u+="-",u+=gt(Math.trunc(-n.o/60)),u+=":",u+=gt(Math.trunc(-n.o%60))):(u+="+",u+=gt(Math.trunc(n.o/60)),u+=":",u+=gt(Math.trunc(n.o%60)))),d&&(u+="["+n.zone.ianaName+"]"),u}const G5={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},HM={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},RM={ordinal:1,hour:0,minute:0,second:0,millisecond:0},q5=["year","month","day","hour","minute","second","millisecond"],FM=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],BM=["year","ordinal","hour","minute","second","millisecond"];function C2(n){const e={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[n.toLowerCase()];if(!e)throw new Kp(n);return e}function w2(n,e){const i=In(e.zone,pt.defaultZone),o=tt.fromObject(e),l=pt.now();let d,u;if(De(n.year))d=l;else{for(const y of q5)De(n[y])&&(n[y]=G5[y]);const v=W5(n)||U5(n);if(v)return Te.invalid(v);const m=i.offset(l);[d,u]=Hs(n,m,i)}return new Te({ts:d,zone:i,loc:o,o:u})}function x2(n,e,i){const o=De(i.round)?!0:i.round,l=(u,v)=>(u=C0(u,o||i.calendary?0:2,!0),e.loc.clone(i).relFormatter(i).format(u,v)),d=u=>i.calendary?e.hasSame(n,u)?0:e.startOf(u).diff(n.startOf(u),u).get(u):e.diff(n,u).get(u);if(i.unit)return l(d(i.unit),i.unit);for(const u of i.units){const v=d(u);if(Math.abs(v)>=1)return l(v,u)}return l(n>e?-0:0,i.units[i.units.length-1])}function z2(n){let e={},i;return n.length>0&&typeof n[n.length-1]=="object"?(e=n[n.length-1],i=Array.from(n).slice(0,n.length-1)):i=Array.from(n),[e,i]}class Te{constructor(e){const i=e.zone||pt.defaultZone;let o=e.invalid||(Number.isNaN(e.ts)?new Tr("invalid input"):null)||(i.isValid?null:_s(i));this.ts=De(e.ts)?pt.now():e.ts;let l=null,d=null;if(!o)if(e.old&&e.old.ts===this.ts&&e.old.zone.equals(i))[l,d]=[e.old.c,e.old.o];else{const v=i.offset(this.ts);l=Is(this.ts,v),o=Number.isNaN(l.year)?new Tr("invalid input"):null,l=o?null:l,d=o?null:v}this._zone=i,this.loc=e.loc||tt.create(),this.invalid=o,this.weekData=null,this.c=l,this.o=d,this.isLuxonDateTime=!0}static now(){return new Te({})}static local(){const[e,i]=z2(arguments),[o,l,d,u,v,m,y]=i;return w2({year:o,month:l,day:d,hour:u,minute:v,second:m,millisecond:y},e)}static utc(){const[e,i]=z2(arguments),[o,l,d,u,v,m,y]=i;return e.zone=Wt.utcInstance,w2({year:o,month:l,day:d,hour:u,minute:v,second:m,millisecond:y},e)}static fromJSDate(e,i={}){const o=pS(e)?e.valueOf():NaN;if(Number.isNaN(o))return Te.invalid("invalid input");const l=In(i.zone,pt.defaultZone);return l.isValid?new Te({ts:o,zone:l,loc:tt.fromObject(i)}):Te.invalid(_s(l))}static fromMillis(e,i={}){if(hi(e))return e<-b2||e>b2?Te.invalid("Timestamp out of range"):new Te({ts:e,zone:In(i.zone,pt.defaultZone),loc:tt.fromObject(i)});throw new fr(`fromMillis requires a numerical input, but received a ${typeof e} with value ${e}`)}static fromSeconds(e,i={}){if(hi(e))return new Te({ts:e*1e3,zone:In(i.zone,pt.defaultZone),loc:tt.fromObject(i)});throw new fr("fromSeconds requires a numerical input")}static fromObject(e,i={}){e=e||{};const o=In(i.zone,pt.defaultZone);if(!o.isValid)return Te.invalid(_s(o));const l=pt.now(),d=De(i.specificOffset)?o.offset(l):i.specificOffset,u=cl(e,C2),v=!De(u.ordinal),m=!De(u.year),y=!De(u.month)||!De(u.day),T=m||y,S=u.weekYear||u.weekNumber,$=tt.fromObject(i);if((T||v)&&S)throw new va("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(y&&v)throw new va("Can't mix ordinal dates with month/day");const E=S||u.weekday&&!T;let N,G,ee=Is(l,d);E?(N=FM,G=HM,ee=Rc(ee)):v?(N=BM,G=RM,ee=cc(ee)):(N=q5,G=G5);let te=!1;for(const Ze of N){const We=u[Ze];De(We)?te?u[Ze]=G[Ze]:u[Ze]=ee[Ze]:te=!0}const se=E?DM(u):v?NM(u):W5(u),re=se||U5(u);if(re)return Te.invalid(re);const ue=E?g2(u):v?v2(u):u,[xe,qe]=Hs(ue,d,o),Ge=new Te({ts:xe,zone:o,o:qe,loc:$});return u.weekday&&T&&e.weekday!==Ge.weekday?Te.invalid("mismatched weekday",`you can't specify both a weekday of ${u.weekday} and a date of ${Ge.toISO()}`):Ge}static fromISO(e,i={}){const[o,l]=nM(e);return da(o,l,i,"ISO 8601",e)}static fromRFC2822(e,i={}){const[o,l]=iM(e);return da(o,l,i,"RFC 2822",e)}static fromHTTP(e,i={}){const[o,l]=oM(e);return da(o,l,i,"HTTP",i)}static fromFormat(e,i,o={}){if(De(e)||De(i))throw new fr("fromFormat requires an input string and a format");const{locale:l=null,numberingSystem:d=null}=o,u=tt.fromOpts({locale:l,numberingSystem:d,defaultToEN:!0}),[v,m,y,T]=PM(u,e,i);return T?Te.invalid(T):da(v,m,o,`format ${i}`,e,y)}static fromString(e,i,o={}){return Te.fromFormat(e,i,o)}static fromSQL(e,i={}){const[o,l]=hM(e);return da(o,l,i,"SQL",e)}static invalid(e,i=null){if(!e)throw new fr("need to specify a reason the DateTime is invalid");const o=e instanceof Tr?e:new Tr(e,i);if(pt.throwOnInvalid)throw new UL(o);return new Te({invalid:o})}static isDateTime(e){return e&&e.isLuxonDateTime||!1}static parseFormatForOpts(e,i={}){const o=H5(e,tt.fromObject(i));return o?o.map(l=>l?l.val:null).join(""):null}static expandFormat(e,i={}){return D5(Dt.parseFormat(e),tt.fromObject(i)).map(l=>l.val).join("")}get(e){return this[e]}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?dc(this).weekYear:NaN}get weekNumber(){return this.isValid?dc(this).weekNumber:NaN}get weekday(){return this.isValid?dc(this).weekday:NaN}get ordinal(){return this.isValid?cc(this.c).ordinal:NaN}get monthShort(){return this.isValid?Os.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?Os.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?Os.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?Os.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}get offsetNameLong(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){return this.isOffsetFixed?!1:this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset}getPossibleOffsets(){if(!this.isValid||this.isOffsetFixed)return[this];const e=864e5,i=6e4,o=Dl(this.c),l=this.zone.offset(o-e),d=this.zone.offset(o+e),u=this.zone.offset(o-l*i),v=this.zone.offset(o-d*i);if(u===v)return[this];const m=o-u*i,y=o-v*i,T=Is(m,u),S=Is(y,v);return T.hour===S.hour&&T.minute===S.minute&&T.second===S.second&&T.millisecond===S.millisecond?[oi(this,{ts:m}),oi(this,{ts:y})]:[this]}get isInLeapYear(){return Ha(this.year)}get daysInMonth(){return sl(this.year,this.month)}get daysInYear(){return this.isValid?ya(this.year):NaN}get weeksInWeekYear(){return this.isValid?ll(this.weekYear):NaN}resolvedLocaleOptions(e={}){const{locale:i,numberingSystem:o,calendar:l}=Dt.create(this.loc.clone(e),e).resolvedOptions(this);return{locale:i,numberingSystem:o,outputCalendar:l}}toUTC(e=0,i={}){return this.setZone(Wt.instance(e),i)}toLocal(){return this.setZone(pt.defaultZone)}setZone(e,{keepLocalTime:i=!1,keepCalendarTime:o=!1}={}){if(e=In(e,pt.defaultZone),e.equals(this.zone))return this;if(e.isValid){let l=this.ts;if(i||o){const d=e.offset(this.ts),u=this.toObject();[l]=Hs(u,d,e)}return oi(this,{ts:l,zone:e})}else return Te.invalid(_s(e))}reconfigure({locale:e,numberingSystem:i,outputCalendar:o}={}){const l=this.loc.clone({locale:e,numberingSystem:i,outputCalendar:o});return oi(this,{loc:l})}setLocale(e){return this.reconfigure({locale:e})}set(e){if(!this.isValid)return this;const i=cl(e,C2),o=!De(i.weekYear)||!De(i.weekNumber)||!De(i.weekday),l=!De(i.ordinal),d=!De(i.year),u=!De(i.month)||!De(i.day),v=d||u,m=i.weekYear||i.weekNumber;if((v||l)&&m)throw new va("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(u&&l)throw new va("Can't mix ordinal dates with month/day");let y;o?y=g2({...Rc(this.c),...i}):De(i.ordinal)?(y={...this.toObject(),...i},De(i.day)&&(y.day=Math.min(sl(y.year,y.month),y.day))):y=v2({...cc(this.c),...i});const[T,S]=Hs(y,this.o,this.zone);return oi(this,{ts:T,o:S})}plus(e){if(!this.isValid)return this;const i=Ne.fromDurationLike(e);return oi(this,m2(this,i))}minus(e){if(!this.isValid)return this;const i=Ne.fromDurationLike(e).negate();return oi(this,m2(this,i))}startOf(e){if(!this.isValid)return this;const i={},o=Ne.normalizeUnit(e);switch(o){case"years":i.month=1;case"quarters":case"months":i.day=1;case"weeks":case"days":i.hour=0;case"hours":i.minute=0;case"minutes":i.second=0;case"seconds":i.millisecond=0;break}if(o==="weeks"&&(i.weekday=1),o==="quarters"){const l=Math.ceil(this.month/3);i.month=(l-1)*3+1}return this.set(i)}endOf(e){return this.isValid?this.plus({[e]:1}).startOf(e).minus(1):this}toFormat(e,i={}){return this.isValid?Dt.create(this.loc.redefaultToEN(i)).formatDateTimeFromString(this,e):uc}toLocaleString(e=al,i={}){return this.isValid?Dt.create(this.loc.clone(i),e).formatDateTime(this):uc}toLocaleParts(e={}){return this.isValid?Dt.create(this.loc.clone(e),e).formatDateTimeParts(this):[]}toISO({format:e="extended",suppressSeconds:i=!1,suppressMilliseconds:o=!1,includeOffset:l=!0,extendedZone:d=!1}={}){if(!this.isValid)return null;const u=e==="extended";let v=hc(this,u);return v+="T",v+=y2(this,u,i,o,l,d),v}toISODate({format:e="extended"}={}){return this.isValid?hc(this,e==="extended"):null}toISOWeekDate(){return As(this,"kkkk-'W'WW-c")}toISOTime({suppressMilliseconds:e=!1,suppressSeconds:i=!1,includeOffset:o=!0,includePrefix:l=!1,extendedZone:d=!1,format:u="extended"}={}){return this.isValid?(l?"T":"")+y2(this,u==="extended",i,e,o,d):null}toRFC2822(){return As(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return As(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?hc(this,!0):null}toSQLTime({includeOffset:e=!0,includeZone:i=!1,includeOffsetSpace:o=!0}={}){let l="HH:mm:ss.SSS";return(i||e)&&(o&&(l+=" "),i?l+="z":e&&(l+="ZZ")),As(this,l,!0)}toSQL(e={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(e)}`:null}toString(){return this.isValid?this.toISO():uc}valueOf(){return this.toMillis()}toMillis(){return this.isValid?this.ts:NaN}toSeconds(){return this.isValid?this.ts/1e3:NaN}toUnixInteger(){return this.isValid?Math.floor(this.ts/1e3):NaN}toJSON(){return this.toISO()}toBSON(){return this.toJSDate()}toObject(e={}){if(!this.isValid)return{};const i={...this.c};return e.includeConfig&&(i.outputCalendar=this.outputCalendar,i.numberingSystem=this.loc.numberingSystem,i.locale=this.loc.locale),i}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(e,i="milliseconds",o={}){if(!this.isValid||!e.isValid)return Ne.invalid("created by diffing an invalid DateTime");const l={locale:this.locale,numberingSystem:this.numberingSystem,...o},d=gS(i).map(Ne.normalizeUnit),u=e.valueOf()>this.valueOf(),v=u?this:e,m=u?e:this,y=CM(v,m,d,l);return u?y.negate():y}diffNow(e="milliseconds",i={}){return this.diff(Te.now(),e,i)}until(e){return this.isValid?st.fromDateTimes(this,e):this}hasSame(e,i){if(!this.isValid)return!1;const o=e.valueOf(),l=this.setZone(e.zone,{keepLocalTime:!0});return l.startOf(i)<=o&&o<=l.endOf(i)}equals(e){return this.isValid&&e.isValid&&this.valueOf()===e.valueOf()&&this.zone.equals(e.zone)&&this.loc.equals(e.loc)}toRelative(e={}){if(!this.isValid)return null;const i=e.base||Te.fromObject({},{zone:this.zone}),o=e.padding?this<i?-e.padding:e.padding:0;let l=["years","months","days","hours","minutes","seconds"],d=e.unit;return Array.isArray(e.unit)&&(l=e.unit,d=void 0),x2(i,this.plus(o),{...e,numeric:"always",units:l,unit:d})}toRelativeCalendar(e={}){return this.isValid?x2(e.base||Te.fromObject({},{zone:this.zone}),this,{...e,numeric:"auto",units:["years","months","days"],calendary:!0}):null}static min(...e){if(!e.every(Te.isDateTime))throw new fr("min requires all arguments be DateTimes");return s2(e,i=>i.valueOf(),Math.min)}static max(...e){if(!e.every(Te.isDateTime))throw new fr("max requires all arguments be DateTimes");return s2(e,i=>i.valueOf(),Math.max)}static fromFormatExplain(e,i,o={}){const{locale:l=null,numberingSystem:d=null}=o,u=tt.fromOpts({locale:l,numberingSystem:d,defaultToEN:!0});return N5(u,e,i)}static fromStringExplain(e,i,o={}){return Te.fromFormatExplain(e,i,o)}static get DATE_SHORT(){return al}static get DATE_MED(){return Yp}static get DATE_MED_WITH_WEEKDAY(){return qL}static get DATE_FULL(){return Xp}static get DATE_HUGE(){return Jp}static get TIME_SIMPLE(){return Qp}static get TIME_WITH_SECONDS(){return e5}static get TIME_WITH_SHORT_OFFSET(){return t5}static get TIME_WITH_LONG_OFFSET(){return r5}static get TIME_24_SIMPLE(){return n5}static get TIME_24_WITH_SECONDS(){return i5}static get TIME_24_WITH_SHORT_OFFSET(){return o5}static get TIME_24_WITH_LONG_OFFSET(){return a5}static get DATETIME_SHORT(){return s5}static get DATETIME_SHORT_WITH_SECONDS(){return l5}static get DATETIME_MED(){return c5}static get DATETIME_MED_WITH_SECONDS(){return u5}static get DATETIME_MED_WITH_WEEKDAY(){return KL}static get DATETIME_FULL(){return d5}static get DATETIME_FULL_WITH_SECONDS(){return h5}static get DATETIME_HUGE(){return f5}static get DATETIME_HUGE_WITH_SECONDS(){return p5}}function ha(n){if(Te.isDateTime(n))return n;if(n&&n.valueOf&&hi(n.valueOf()))return Te.fromJSDate(n);if(n&&typeof n=="object")return Te.fromObject(n);throw new fr(`Unknown datetime argument: ${n}, of type ${typeof n}`)}const VM={Africa:"en-za",America:"en-us",US:"en-us",Australia:"en-au",Europe:"en-gb",Pacific:"en-nz"},ZM=n=>Te.local().setZone(n).isValid,Fc=n=>n.hour<12,L2=n=>!Fc(n),WM=(n,e)=>Fc(n)&&Fc(e)||L2(n)&&L2(e),S2=(n,e)=>{var l;const i=e&&ZM(e)?e:"utc",o=(l=VM[i.split("/")[0]])!=null?l:"en-us";return n.setZone(i).setLocale(o)},M2=n=>UM(K5(n)),UM=n=>n.replace(/Sept/,"Sep"),K5=n=>n.replace(/(AM|PM)/,e=>e.toLowerCase());var jM=Object.defineProperty,GM=Object.getOwnPropertyDescriptor,Fn=(n,e,i,o)=>{for(var l=o>1?void 0:o?GM(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&jM(e,i,l),l};const Y5=ne("input-time"),X5="h:mma",J5=/^([1-9]|1[0-9]|2[0-3]):([0-5])([0-9])?(am?|pm?)?$/,Q5=/^(1[3-9]|2[0-3]).*/,e6=/^(\d\d?)(am?|pm?)/,qM=["UTC","AEST"],t6=(n,e)=>({label:`${n}${e?` (${e})`:""}`,value:n}),T2=(n,e)=>{const o=Math.ceil(1440/n),l=Te.local().startOf("day");return Array(o).fill(null).map((d,u)=>{const v=l.plus({minutes:n*u}),m=K5(v.toFormat(X5));return t6(m,e)})},KM=(n,e)=>{const i=n.trim(),o=n.match(J5);if(!i||!o)return[];const[,l,d,u]=o,v=parseInt(l,10),m=v>12?`${v-12}`:`${v}`,y=`${d}${u||0}`,T=`${m}:${y}`;return["am","pm"].map(S=>t6(`${T}${S}`,e))},YM=(n,{value:e})=>{const i=n.match(Q5);if(!i||!e)return!1;const[,o]=i,l=`${parseInt(o,10)-12}`,d=n.substring(o.length).replace(":",""),u=`${l}:${d}`;return e.startsWith(u)&&e.endsWith("pm")},XM=(n,{value:e})=>{const i=n.match(e6);if(!i)return!1;const[,o,l]=i;return!!(e!=null&&e.replace(":00","").startsWith(`${o}${l}`))},JM=(...n)=>XM(...n)||YM(...n);exports.InputTime=class extends exports.InputSelect{constructor(){super(...arguments),this.canSearch=!0,this.increment=15,this.isFreeform=!1,this.placeholder="Select time",this.trailingIcon="time",this.freeformOptions=[]}connectedCallback(){super.connectedCallback(),this.options=T2(this.increment,this.suffix)}updated(e){super.updated(e),e.has("increment")&&(this.options=T2(this.increment,this.suffix))}resetFreeformOptions(){this.freeformOptions=[]}handleCloseDropdown(){super.handleCloseDropdown(),this.resetFreeformOptions()}getItems(){return[...this.freeformOptions,...super.getItems()]}handleValueChange(){var e;this.valueLabel=this.value&&this.value!==this.placeholder?(e=this.getItems().find(({value:i})=>i===this.value))==null?void 0:e.label:"",!this.isFreeform&&this.resetSearch()}isCustomQueryMatch(e){return this.query?JM(this.query,e):!1}handleNoResults(){if(this.hasQueryResults)return null;if(!this.isFreeform)return this.renderSearchMessage();this.freeformOptions=KM(this.query,this.suffix),this.hasResults=!!this.freeformOptions.length}renderFreeformOptions(){return this.isFreeform?this.hasQueryResults?this.renderOptionsData(this.freeformOptions):this.renderSearchMessage():null}renderDropdownContent(){return P`
3497
3497
  ${this.handleNoResults()} ${this.renderOptionsData()}
3498
3498
  ${this.renderFreeformOptions()}
3499
- `}};Fn([O({attribute:"can-search",type:Boolean,reflect:!0})],exports.InputTime.prototype,"canSearch",2);Fn([O({type:Number,reflect:!0})],exports.InputTime.prototype,"increment",2);Fn([O({type:String,reflect:!0})],exports.InputTime.prototype,"suffix",2);Fn([O({type:Boolean,attribute:"is-freeform",reflect:!0})],exports.InputTime.prototype,"isFreeform",2);Fn([O({type:String})],exports.InputTime.prototype,"placeholder",2);Fn([O({type:String,reflect:!0,attribute:"trailing-icon"})],exports.InputTime.prototype,"trailingIcon",2);Fn([pe()],exports.InputTime.prototype,"freeformOptions",2);exports.InputTime=Fn([R(j5)],exports.InputTime);var YM=Object.defineProperty,XM=Object.getOwnPropertyDescriptor,vn=(n,e,i,o)=>{for(var l=o>1?void 0:o?XM(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&YM(e,i,l),l};const J5=ne("toggle-switch"),fa={Checked:"Checked",Empty:"Empty"};exports.ToggleSwitch=class extends Jt{constructor(){super(...arguments),this.checked=!1,this.disabled=!1,this.leftLabel=!1,this.value="on",this.switchOffLabel="",this.switchOnLabel="",this.toggleState=fa.Empty,this.label=""}onInput(){this.disabled||(this.toggleState===fa.Checked?this.checked=!1:this.checked=!0,this.dispatchEvent(new CustomEvent("brz-input-change",{detail:{checked:this.checked}})))}handleKeyPress(e){e.preventDefault(),e.key===" "&&this.onInput()}render(){this.toggleState=this.checked?fa.Checked:fa.Empty;const e=P`<span>${this.label}</span>`,i=P`<div class="switch">
3499
+ `}};Fn([O({attribute:"can-search",type:Boolean,reflect:!0})],exports.InputTime.prototype,"canSearch",2);Fn([O({type:Number,reflect:!0})],exports.InputTime.prototype,"increment",2);Fn([O({type:String,reflect:!0})],exports.InputTime.prototype,"suffix",2);Fn([O({type:Boolean,attribute:"is-freeform",reflect:!0})],exports.InputTime.prototype,"isFreeform",2);Fn([O({type:String})],exports.InputTime.prototype,"placeholder",2);Fn([O({type:String,reflect:!0,attribute:"trailing-icon"})],exports.InputTime.prototype,"trailingIcon",2);Fn([pe()],exports.InputTime.prototype,"freeformOptions",2);exports.InputTime=Fn([R(Y5)],exports.InputTime);var QM=Object.defineProperty,eT=Object.getOwnPropertyDescriptor,vn=(n,e,i,o)=>{for(var l=o>1?void 0:o?eT(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&QM(e,i,l),l};const r6=ne("toggle-switch"),fa={Checked:"Checked",Empty:"Empty"};exports.ToggleSwitch=class extends Jt{constructor(){super(...arguments),this.checked=!1,this.disabled=!1,this.leftLabel=!1,this.value="on",this.switchOffLabel="",this.switchOnLabel="",this.toggleState=fa.Empty,this.label=""}onInput(){this.disabled||(this.toggleState===fa.Checked?this.checked=!1:this.checked=!0,this.dispatchEvent(new CustomEvent("brz-input-change",{detail:{checked:this.checked}})))}handleKeyPress(e){e.preventDefault(),e.key===" "&&this.onInput()}render(){this.toggleState=this.checked?fa.Checked:fa.Empty;const e=P`<span>${this.label}</span>`,i=P`<div class="switch">
3500
3500
  <div class="toggle"></div>
3501
3501
  <div class="switch-on">${this.switchOnLabel}</div>
3502
3502
  <div class="switch-off">${this.switchOffLabel}</div>
@@ -3657,7 +3657,7 @@ ${this.value}</textarea
3657
3657
  background: var(--brz-color-neutral-200);
3658
3658
  }
3659
3659
  }
3660
- `];vn([O({type:Boolean,reflect:!0})],exports.ToggleSwitch.prototype,"checked",2);vn([O({type:Boolean,reflect:!0})],exports.ToggleSwitch.prototype,"disabled",2);vn([O({type:Boolean,reflect:!0,attribute:"left-label"})],exports.ToggleSwitch.prototype,"leftLabel",2);vn([O()],exports.ToggleSwitch.prototype,"value",2);vn([O({type:String})],exports.ToggleSwitch.prototype,"switchOffLabel",2);vn([O({type:String})],exports.ToggleSwitch.prototype,"switchOnLabel",2);vn([pe()],exports.ToggleSwitch.prototype,"toggleState",2);vn([O({type:String,reflect:!0})],exports.ToggleSwitch.prototype,"label",2);exports.ToggleSwitch=vn([R(J5)],exports.ToggleSwitch);var JM=Object.defineProperty,QM=Object.getOwnPropertyDescriptor,L0=(n,e,i,o)=>{for(var l=o>1?void 0:o?QM(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&JM(e,i,l),l};const Q5=ne("heading");exports.Heading=class extends me{constructor(){super(...arguments),this.size="base"}getLevel(){if(this.level)return this.level;switch(this.size){case"3xl":return 1;case"2xl":case"xl":case"lg":return 2;case"sm":return 4;default:return 3}}render(){var i;const e=`size-${(i=this.size)!=null?i:"base"}`;switch(this.getLevel()){case 1:return P`<h1 class=${e}><slot></slot></h1>`;case 2:return P`<h2 class=${e}><slot></slot></h2>`;case 3:return P`<h3 class=${e}><slot></slot></h3>`;case 4:return P`<h4 class=${e}><slot></slot></h4>`;case 5:return P`<h5 class=${e}><slot></slot></h5>`;case 6:return P`<h6 class=${e}><slot></slot></h6>`}}};exports.Heading.styles=j`
3660
+ `];vn([O({type:Boolean,reflect:!0})],exports.ToggleSwitch.prototype,"checked",2);vn([O({type:Boolean,reflect:!0})],exports.ToggleSwitch.prototype,"disabled",2);vn([O({type:Boolean,reflect:!0,attribute:"left-label"})],exports.ToggleSwitch.prototype,"leftLabel",2);vn([O()],exports.ToggleSwitch.prototype,"value",2);vn([O({type:String})],exports.ToggleSwitch.prototype,"switchOffLabel",2);vn([O({type:String})],exports.ToggleSwitch.prototype,"switchOnLabel",2);vn([pe()],exports.ToggleSwitch.prototype,"toggleState",2);vn([O({type:String,reflect:!0})],exports.ToggleSwitch.prototype,"label",2);exports.ToggleSwitch=vn([R(r6)],exports.ToggleSwitch);var tT=Object.defineProperty,rT=Object.getOwnPropertyDescriptor,S0=(n,e,i,o)=>{for(var l=o>1?void 0:o?rT(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&tT(e,i,l),l};const n6=ne("heading");exports.Heading=class extends me{constructor(){super(...arguments),this.size="base"}getLevel(){if(this.level)return this.level;switch(this.size){case"3xl":return 1;case"2xl":case"xl":case"lg":return 2;case"sm":return 4;default:return 3}}render(){var i;const e=`size-${(i=this.size)!=null?i:"base"}`;switch(this.getLevel()){case 1:return P`<h1 class=${e}><slot></slot></h1>`;case 2:return P`<h2 class=${e}><slot></slot></h2>`;case 3:return P`<h3 class=${e}><slot></slot></h3>`;case 4:return P`<h4 class=${e}><slot></slot></h4>`;case 5:return P`<h5 class=${e}><slot></slot></h5>`;case 6:return P`<h6 class=${e}><slot></slot></h6>`}}};exports.Heading.styles=j`
3661
3661
  h1,
3662
3662
  h2,
3663
3663
  h3,
@@ -3702,7 +3702,7 @@ ${this.value}</textarea
3702
3702
  :host {
3703
3703
  display: block;
3704
3704
  }
3705
- `;L0([O({type:String})],exports.Heading.prototype,"size",2);L0([O({type:Number})],exports.Heading.prototype,"level",2);exports.Heading=L0([R(Q5)],exports.Heading);const e6=ne("inline-edit-field"),S0=ne("inline-edit-group"),t6=ne("inline-edit-controls"),r6=["edit","saving","error"],eT=["read","saved",...r6];class n6 extends CustomEvent{constructor(e={}){super("brz-inline-edit-controls-cancel",{bubbles:!0,composed:!0,...e})}}class i6 extends CustomEvent{constructor(e={}){super("brz-inline-edit-controls-save",{bubbles:!0,composed:!0,...e})}}class o6 extends CustomEvent{constructor(e={}){super("brz-inline-edit-field-broadcast",{bubbles:!0,composed:!0,...e})}}class a6 extends CustomEvent{constructor(e={}){super("brz-inline-edit-field-mode-change",{bubbles:!0,composed:!0,...e})}}class s6 extends CustomEvent{constructor(e={}){super("brz-inline-edit-group-mode-change",{bubbles:!0,composed:!0,...e})}}const tT=j`
3705
+ `;S0([O({type:String})],exports.Heading.prototype,"size",2);S0([O({type:Number})],exports.Heading.prototype,"level",2);exports.Heading=S0([R(n6)],exports.Heading);const i6=ne("inline-edit-field"),M0=ne("inline-edit-group"),o6=ne("inline-edit-controls"),a6=["edit","saving","error"],nT=["read","saved",...a6];class s6 extends CustomEvent{constructor(e={}){super("brz-inline-edit-controls-cancel",{bubbles:!0,composed:!0,...e})}}class l6 extends CustomEvent{constructor(e={}){super("brz-inline-edit-controls-save",{bubbles:!0,composed:!0,...e})}}class c6 extends CustomEvent{constructor(e={}){super("brz-inline-edit-field-broadcast",{bubbles:!0,composed:!0,...e})}}class u6 extends CustomEvent{constructor(e={}){super("brz-inline-edit-field-mode-change",{bubbles:!0,composed:!0,...e})}}class d6 extends CustomEvent{constructor(e={}){super("brz-inline-edit-group-mode-change",{bubbles:!0,composed:!0,...e})}}const iT=j`
3706
3706
  :host {
3707
3707
  display: block;
3708
3708
  }
@@ -3792,7 +3792,7 @@ ${this.value}</textarea
3792
3792
 
3793
3793
  margin-top: var(--brz-inline-edit-controls-spacing);
3794
3794
  }
3795
- `,rT=j`
3795
+ `,oT=j`
3796
3796
  .inline-edit-group {
3797
3797
  display: inline-flex;
3798
3798
  flex-direction: column;
@@ -3803,7 +3803,7 @@ ${this.value}</textarea
3803
3803
  brz-inline-edit-controls {
3804
3804
  margin-top: var(--brz-inline-edit-controls-spacing);
3805
3805
  }
3806
- `,nT=j`
3806
+ `,aT=j`
3807
3807
  :host {
3808
3808
  --brz-inline-edit-controls-spacing: var(--brz-spacing-4);
3809
3809
 
@@ -3811,7 +3811,7 @@ ${this.value}</textarea
3811
3811
  flex-direction: column;
3812
3812
  row-gap: var(--brz-inline-edit-controls-spacing);
3813
3813
  }
3814
- `;var iT=Object.defineProperty,oT=Object.getOwnPropertyDescriptor,l6=(n,e,i,o)=>{for(var l=o>1?void 0:o?oT(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&iT(e,i,l),l};exports.InlineEditControls=class extends me{constructor(){super(...arguments),this.mode="edit"}handleCancelClick(){this.dispatchEvent(new n6)}handleSaveClick(){this.dispatchEvent(new i6)}render(){return P`
3814
+ `;var sT=Object.defineProperty,lT=Object.getOwnPropertyDescriptor,h6=(n,e,i,o)=>{for(var l=o>1?void 0:o?lT(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&sT(e,i,l),l};exports.InlineEditControls=class extends me{constructor(){super(...arguments),this.mode="edit"}handleCancelClick(){this.dispatchEvent(new s6)}handleSaveClick(){this.dispatchEvent(new l6)}render(){return P`
3815
3815
  <brz-split-row>
3816
3816
  <brz-button-group slot="right">
3817
3817
  ${["edit","error"].includes(this.mode)?P`
@@ -3836,7 +3836,7 @@ ${this.value}</textarea
3836
3836
  </brz-split-row>
3837
3837
 
3838
3838
  ${this.mode==="error"?P` <slot name="error"></slot> `:null}
3839
- `}};exports.InlineEditControls.styles=[nT];l6([O()],exports.InlineEditControls.prototype,"mode",2);exports.InlineEditControls=l6([R(t6)],exports.InlineEditControls);var aT=Object.defineProperty,sT=Object.getOwnPropertyDescriptor,M0=(n,e,i,o)=>{for(var l=o>1?void 0:o?sT(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&aT(e,i,l),l};class Ba extends me{constructor(){super(...arguments),this.locked=!1,this.mode="read"}setEditMode(){this.locked||(this.mode="edit")}setReadMode(){this.mode="read"}setSavingMode(){this.locked||(this.mode="saving")}setErrorMode(){this.locked||(this.mode="error")}setSavedMode(){this.locked||(this.mode="saved",setTimeout(()=>this.setReadMode(),5e3))}setMode(e){switch(e){case"edit":return this.setEditMode();case"saving":return this.setSavingMode();case"error":return this.setErrorMode();case"saved":return this.setSavedMode();case"read":default:return this.setReadMode()}}async handleSaveClick(){this.setMode("saving");try{await this.handleSave(),this.setMode("saved")}catch(e){throw this.setMode("error"),e}}handleCancelClick(){this.setMode("read")}}M0([O({type:Boolean,reflect:!0})],Ba.prototype,"locked",2);M0([O({type:Function,attribute:!1})],Ba.prototype,"save",2);M0([pe()],Ba.prototype,"mode",2);var lT=Object.defineProperty,cT=Object.getOwnPropertyDescriptor,T0=(n,e,i,o)=>{for(var l=o>1?void 0:o?cT(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&lT(e,i,l),l};exports.InlineEditGroup=class extends Ba{constructor(){super(...arguments),this.controller=!1,this.fields=[]}handleInlineEditFieldViewModeClick(){this.controller&&this.setMode("edit")}async handleSave(){var e;await((e=this.save)==null?void 0:e.call(this))}registerField(e){this.fields.push(e)}updated(e){super.updated(e),this.locked&&this.fields.forEach(i=>i.locked=!0),this.controller&&this.fields.forEach(i=>{i.controlled=!0,i.setMode(this.mode)}),e.has("mode")&&this.dispatchEvent(new s6({detail:{currentMode:this.mode,previousMode:e.get("mode"),fields:this.fields,group:this}}))}get defaultSlot(){return P`
3839
+ `}};exports.InlineEditControls.styles=[aT];h6([O()],exports.InlineEditControls.prototype,"mode",2);exports.InlineEditControls=h6([R(o6)],exports.InlineEditControls);var cT=Object.defineProperty,uT=Object.getOwnPropertyDescriptor,T0=(n,e,i,o)=>{for(var l=o>1?void 0:o?uT(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&cT(e,i,l),l};class Ba extends me{constructor(){super(...arguments),this.locked=!1,this.mode="read"}setEditMode(){this.locked||(this.mode="edit")}setReadMode(){this.mode="read"}setSavingMode(){this.locked||(this.mode="saving")}setErrorMode(){this.locked||(this.mode="error")}setSavedMode(){this.locked||(this.mode="saved",setTimeout(()=>this.setReadMode(),5e3))}setMode(e){switch(e){case"edit":return this.setEditMode();case"saving":return this.setSavingMode();case"error":return this.setErrorMode();case"saved":return this.setSavedMode();case"read":default:return this.setReadMode()}}async handleSaveClick(){this.setMode("saving");try{await this.handleSave(),this.setMode("saved")}catch(e){throw this.setMode("error"),e}}handleCancelClick(){this.setMode("read")}}T0([O({type:Boolean,reflect:!0})],Ba.prototype,"locked",2);T0([O({type:Function,attribute:!1})],Ba.prototype,"save",2);T0([pe()],Ba.prototype,"mode",2);var dT=Object.defineProperty,hT=Object.getOwnPropertyDescriptor,k0=(n,e,i,o)=>{for(var l=o>1?void 0:o?hT(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&dT(e,i,l),l};exports.InlineEditGroup=class extends Ba{constructor(){super(...arguments),this.controller=!1,this.fields=[]}handleInlineEditFieldViewModeClick(){this.controller&&this.setMode("edit")}async handleSave(){var e;await((e=this.save)==null?void 0:e.call(this))}registerField(e){this.fields.push(e)}updated(e){super.updated(e),this.locked&&this.fields.forEach(i=>i.locked=!0),this.controller&&this.fields.forEach(i=>{i.controlled=!0,i.setMode(this.mode)}),e.has("mode")&&this.dispatchEvent(new d6({detail:{currentMode:this.mode,previousMode:e.get("mode"),fields:this.fields,group:this}}))}get defaultSlot(){return P`
3840
3840
  <slot
3841
3841
  @brz-inline-edit-field-broadcast=${this.handleInlineEditFieldViewModeClick}
3842
3842
  >
@@ -3856,7 +3856,7 @@ ${this.value}</textarea
3856
3856
  </slot>
3857
3857
  `:null}
3858
3858
  </dl>
3859
- `}};exports.InlineEditGroup.styles=[rT];T0([O({type:Boolean})],exports.InlineEditGroup.prototype,"controller",2);T0([pe()],exports.InlineEditGroup.prototype,"fields",2);exports.InlineEditGroup=T0([R(S0)],exports.InlineEditGroup);var uT=Object.defineProperty,dT=Object.getOwnPropertyDescriptor,Ir=(n,e,i,o)=>{for(var l=o>1?void 0:o?dT(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&uT(e,i,l),l};const hT=n=>n instanceof vt&&!!n.options.length;exports.InlineEditField=class extends Ba{constructor(){super(...arguments),this.controlled=!1,this.truncate=!1,this.labelPosition="top",this.size="medium",this.options=[],this.hasLabel=!1,this.isValueOverflowing=!1}connectedCallback(){var e;super.connectedCallback(),(e=this.group)==null||e.registerField(this)}updated(e){super.updated(e),this.setStateFromInputElement(),this.updateComplete.then(()=>this.setOverflowingState()),this.hasLabel=!!this.label,this.inputElement.disabled=this.mode==="saving",e.has("mode")&&this.dispatchEvent(new a6({detail:{element:this,currentMode:this.mode,previousMode:e.get("mode"),group:this.group}}))}async setOverflowingState(){await this.updateComplete,this.isValueOverflowing=!!this.valueElement&&this.valueElement.clientHeight>=40}setStateFromInputElement(){this.labelPosition=this.fieldElement.labelPosition,this.size=this.fieldElement.size,this.value=this.inputElement.value,hT(this.inputElement)&&(this.options=this.inputElement.options),(this.inputElement instanceof vt||this.inputElement instanceof exports.InputRadio)&&!this.options.length&&this.setOptionsFromChildren(this.inputElement);const e=this.slottedInputLabel;if(!e){this.label=this.generateFieldLabelSlot();return}this.label=e}setOptionsFromChildren(e){const i=[...e.children];this.options=i.filter(o=>!!o.value).map(o=>{var l;return{value:o.value,label:((l=o.textContent)==null?void 0:l.trim())||this.value}})}async handleValueClick(){this.locked||(this.emitBroadcastEvent(),this.controlled||this.setMode("edit"),await this.updateComplete,this.inputElement.focus())}get fieldElement(){const e=[...this.children].find(i=>i.slot==="");if(!e)throw new Error("No element has been assigned to the default slot.");if(!(e instanceof exports.LabeledInput)&&!(e instanceof exports.RecordField))throw new Error("Expected a Breeze Input, LabeledInput or RecordField in the default slot.");return e}get inputElement(){if(this.fieldElement instanceof exports.RecordField){const e=[...this.fieldElement.children].find(i=>i.slot==="");if(!e)throw new Error("No element has been assigned to the RecordField default slot.");if(!(e instanceof Jt))throw new Error("Expected a Breeze Input in the RecordField default slot.");return e}return this.fieldElement}generateFieldLabelSlot(){var e,i;if(this.fieldElement instanceof exports.RecordField&&this.inputElement instanceof exports.InputCheckbox){const o=document.createElement("brz-record-field-label");o.slot="label";const l=document.createElement("span");return l.textContent=((i=(e=this.inputElement.firstChild)==null?void 0:e.textContent)==null?void 0:i.trim())||"",o.appendChild(l),this.fieldElement.appendChild(o),o}}get friendlyValue(){var e;if(this.options.length){if(Array.isArray(this.value)){const o=this.value.map(d=>{var u;return(u=this.options.find(({value:v})=>v===d))==null?void 0:u.label}).filter(d=>!!d);return(o.length===this.value.length?o:this.value).map(d=>this.getSelectValueTemplate(d))}const i=(e=this.options.find(({value:o})=>o===this.value))==null?void 0:e.label;return this.inputElement instanceof exports.InputSelect?this.getSelectValueTemplate(i||this.value):i||this.value}return this.inputElement instanceof exports.InputCheckbox?this.getCheckboxValueTemplate(this.inputElement):this.value}getSelectValueTemplate(e){return P`
3859
+ `}};exports.InlineEditGroup.styles=[oT];k0([O({type:Boolean})],exports.InlineEditGroup.prototype,"controller",2);k0([pe()],exports.InlineEditGroup.prototype,"fields",2);exports.InlineEditGroup=k0([R(M0)],exports.InlineEditGroup);var fT=Object.defineProperty,pT=Object.getOwnPropertyDescriptor,Ir=(n,e,i,o)=>{for(var l=o>1?void 0:o?pT(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&fT(e,i,l),l};const gT=n=>n instanceof vt&&!!n.options.length;exports.InlineEditField=class extends Ba{constructor(){super(...arguments),this.controlled=!1,this.truncate=!1,this.labelPosition="top",this.size="medium",this.options=[],this.hasLabel=!1,this.isValueOverflowing=!1}connectedCallback(){var e;super.connectedCallback(),(e=this.group)==null||e.registerField(this)}updated(e){super.updated(e),this.setStateFromInputElement(),this.updateComplete.then(()=>this.setOverflowingState()),this.hasLabel=!!this.label,this.inputElement.disabled=this.mode==="saving",e.has("mode")&&this.dispatchEvent(new u6({detail:{element:this,currentMode:this.mode,previousMode:e.get("mode"),group:this.group}}))}async setOverflowingState(){await this.updateComplete,this.isValueOverflowing=!!this.valueElement&&this.valueElement.clientHeight>=40}setStateFromInputElement(){this.labelPosition=this.fieldElement.labelPosition,this.size=this.fieldElement.size,this.value=this.inputElement.value,gT(this.inputElement)&&(this.options=this.inputElement.options),(this.inputElement instanceof vt||this.inputElement instanceof exports.InputRadio)&&!this.options.length&&this.setOptionsFromChildren(this.inputElement);const e=this.slottedInputLabel;if(!e){this.label=this.generateFieldLabelSlot();return}this.label=e}setOptionsFromChildren(e){const i=[...e.children];this.options=i.filter(o=>!!o.value).map(o=>{var l;return{value:o.value,label:((l=o.textContent)==null?void 0:l.trim())||this.value}})}async handleValueClick(){this.locked||(this.emitBroadcastEvent(),this.controlled||this.setMode("edit"),await this.updateComplete,this.inputElement.focus())}get fieldElement(){const e=[...this.children].find(i=>i.slot==="");if(!e)throw new Error("No element has been assigned to the default slot.");if(!(e instanceof exports.LabeledInput)&&!(e instanceof exports.RecordField))throw new Error("Expected a Breeze Input, LabeledInput or RecordField in the default slot.");return e}get inputElement(){if(this.fieldElement instanceof exports.RecordField){const e=[...this.fieldElement.children].find(i=>i.slot==="");if(!e)throw new Error("No element has been assigned to the RecordField default slot.");if(!(e instanceof Jt))throw new Error("Expected a Breeze Input in the RecordField default slot.");return e}return this.fieldElement}generateFieldLabelSlot(){var e,i;if(this.fieldElement instanceof exports.RecordField&&this.inputElement instanceof exports.InputCheckbox){const o=document.createElement("brz-record-field-label");o.slot="label";const l=document.createElement("span");return l.textContent=((i=(e=this.inputElement.firstChild)==null?void 0:e.textContent)==null?void 0:i.trim())||"",o.appendChild(l),this.fieldElement.appendChild(o),o}}get friendlyValue(){var e;if(this.options.length){if(Array.isArray(this.value)){const o=this.value.map(d=>{var u;return(u=this.options.find(({value:v})=>v===d))==null?void 0:u.label}).filter(d=>!!d);return(o.length===this.value.length?o:this.value).map(d=>this.getSelectValueTemplate(d))}const i=(e=this.options.find(({value:o})=>o===this.value))==null?void 0:e.label;return this.inputElement instanceof exports.InputSelect?this.getSelectValueTemplate(i||this.value):i||this.value}return this.inputElement instanceof exports.InputCheckbox?this.getCheckboxValueTemplate(this.inputElement):this.value}getSelectValueTemplate(e){return P`
3860
3860
  <brz-lozenge theme="subtle" color="sapphire" size="small">
3861
3861
  ${e}
3862
3862
  </brz-lozenge>
@@ -3917,7 +3917,7 @@ ${this.value}</textarea
3917
3917
  </slot>
3918
3918
  `}
3919
3919
  </div>
3920
- `}get group(){return this.closest(S0)}emitBroadcastEvent(){this.dispatchEvent(new o6({detail:{element:this,currentMode:this.mode}}))}render(){switch(this.mode){case"edit":case"saving":case"error":return this.editModeTemplate;case"read":case"saved":default:return this.readModeTemplate}}};exports.InlineEditField.styles=[tT];Ir([O({type:Boolean})],exports.InlineEditField.prototype,"controlled",2);Ir([O({type:Boolean})],exports.InlineEditField.prototype,"truncate",2);Ir([pe()],exports.InlineEditField.prototype,"labelPosition",2);Ir([pe()],exports.InlineEditField.prototype,"size",2);Ir([pe()],exports.InlineEditField.prototype,"value",2);Ir([pe()],exports.InlineEditField.prototype,"options",2);Ir([pe()],exports.InlineEditField.prototype,"label",2);Ir([pe()],exports.InlineEditField.prototype,"hasLabel",2);Ir([pe()],exports.InlineEditField.prototype,"isValueOverflowing",2);Ir([Er(".value")],exports.InlineEditField.prototype,"valueElement",2);exports.InlineEditField=Ir([R(e6)],exports.InlineEditField);var fT=Object.defineProperty,pT=Object.getOwnPropertyDescriptor,Va=(n,e,i,o)=>{for(var l=o>1?void 0:o?pT(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&fT(e,i,l),l};const c6=ne("side-navigation-item"),gT=j`
3920
+ `}get group(){return this.closest(M0)}emitBroadcastEvent(){this.dispatchEvent(new c6({detail:{element:this,currentMode:this.mode}}))}render(){switch(this.mode){case"edit":case"saving":case"error":return this.editModeTemplate;case"read":case"saved":default:return this.readModeTemplate}}};exports.InlineEditField.styles=[iT];Ir([O({type:Boolean})],exports.InlineEditField.prototype,"controlled",2);Ir([O({type:Boolean})],exports.InlineEditField.prototype,"truncate",2);Ir([pe()],exports.InlineEditField.prototype,"labelPosition",2);Ir([pe()],exports.InlineEditField.prototype,"size",2);Ir([pe()],exports.InlineEditField.prototype,"value",2);Ir([pe()],exports.InlineEditField.prototype,"options",2);Ir([pe()],exports.InlineEditField.prototype,"label",2);Ir([pe()],exports.InlineEditField.prototype,"hasLabel",2);Ir([pe()],exports.InlineEditField.prototype,"isValueOverflowing",2);Ir([Er(".value")],exports.InlineEditField.prototype,"valueElement",2);exports.InlineEditField=Ir([R(i6)],exports.InlineEditField);var vT=Object.defineProperty,bT=Object.getOwnPropertyDescriptor,Va=(n,e,i,o)=>{for(var l=o>1?void 0:o?bT(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&vT(e,i,l),l};const f6=ne("side-navigation-item"),mT=j`
3921
3921
  :host li {
3922
3922
  list-style: none;
3923
3923
  padding: var(--brz-spacing-2) 0;
@@ -3953,7 +3953,7 @@ ${this.value}</textarea
3953
3953
  <slot></slot>
3954
3954
  </a>
3955
3955
  </li>
3956
- `}};exports.SideNavigationItem.styles=[gT];Va([O({type:String,reflect:!0})],exports.SideNavigationItem.prototype,"target",2);Va([O({type:String,reflect:!0})],exports.SideNavigationItem.prototype,"rel",2);Va([O({type:String,reflect:!0})],exports.SideNavigationItem.prototype,"href",2);Va([O({type:Boolean,reflect:!0})],exports.SideNavigationItem.prototype,"active",2);exports.SideNavigationItem=Va([R(c6)],exports.SideNavigationItem);var vT=Object.defineProperty,bT=Object.getOwnPropertyDescriptor,mT=(n,e,i,o)=>{for(var l=o>1?void 0:o?bT(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&vT(e,i,l),l};const u6=ne("side-navigation"),yT=j`
3956
+ `}};exports.SideNavigationItem.styles=[mT];Va([O({type:String,reflect:!0})],exports.SideNavigationItem.prototype,"target",2);Va([O({type:String,reflect:!0})],exports.SideNavigationItem.prototype,"rel",2);Va([O({type:String,reflect:!0})],exports.SideNavigationItem.prototype,"href",2);Va([O({type:Boolean,reflect:!0})],exports.SideNavigationItem.prototype,"active",2);exports.SideNavigationItem=Va([R(f6)],exports.SideNavigationItem);var yT=Object.defineProperty,CT=Object.getOwnPropertyDescriptor,wT=(n,e,i,o)=>{for(var l=o>1?void 0:o?CT(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&yT(e,i,l),l};const p6=ne("side-navigation"),xT=j`
3957
3957
  :host {
3958
3958
  display: block;
3959
3959
  height: 100%;
@@ -3967,15 +3967,15 @@ ${this.value}</textarea
3967
3967
  }
3968
3968
  `;exports.SideNavigation=class extends me{render(){return P`<ul>
3969
3969
  <slot></slot>
3970
- </ul>`}};exports.SideNavigation.styles=[yT];exports.SideNavigation=mT([R(u6)],exports.SideNavigation);var CT=Object.defineProperty,wT=Object.getOwnPropertyDescriptor,d6=(n,e,i,o)=>{for(var l=o>1?void 0:o?wT(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&CT(e,i,l),l};const h6=ne("record-row"),f6=ne("record-row-label");exports.RecordRow=class extends exports.RecordField{connectedCallback(){super.connectedCallback(),this.labelPosition="side"}};exports.RecordRow.styles=[...exports.RecordField.styles,j`
3970
+ </ul>`}};exports.SideNavigation.styles=[xT];exports.SideNavigation=wT([R(p6)],exports.SideNavigation);var zT=Object.defineProperty,LT=Object.getOwnPropertyDescriptor,g6=(n,e,i,o)=>{for(var l=o>1?void 0:o?LT(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&zT(e,i,l),l};const v6=ne("record-row"),b6=ne("record-row-label");exports.RecordRow=class extends exports.RecordField{connectedCallback(){super.connectedCallback(),this.labelPosition="side"}};exports.RecordRow.styles=[...exports.RecordField.styles,j`
3971
3971
  :host(:nth-of-type(n + 2)) {
3972
3972
  margin-top: var(--brz-spacing-4);
3973
3973
  }
3974
- `];exports.RecordRow=d6([R(h6)],exports.RecordRow);exports.RecordRowLabel=class extends exports.RecordFieldLabel{};exports.RecordRowLabel=d6([R(f6)],exports.RecordRowLabel);var xT=Object.defineProperty,zT=Object.getOwnPropertyDescriptor,k0=(n,e,i,o)=>{for(var l=o>1?void 0:o?zT(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&xT(e,i,l),l};const p6=ne("tab-panel");exports.TabPanel=class extends me{constructor(){super(...arguments),this.name="",this.shown=!1}render(){return P`<div id="panel"><slot></slot></div>`}};exports.TabPanel.styles=j`
3974
+ `];exports.RecordRow=g6([R(v6)],exports.RecordRow);exports.RecordRowLabel=class extends exports.RecordFieldLabel{};exports.RecordRowLabel=g6([R(b6)],exports.RecordRowLabel);var ST=Object.defineProperty,MT=Object.getOwnPropertyDescriptor,$0=(n,e,i,o)=>{for(var l=o>1?void 0:o?MT(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&ST(e,i,l),l};const m6=ne("tab-panel");exports.TabPanel=class extends me{constructor(){super(...arguments),this.name="",this.shown=!1}render(){return P`<div id="panel"><slot></slot></div>`}};exports.TabPanel.styles=j`
3975
3975
  :host(:not([shown])) #panel {
3976
3976
  display: none;
3977
3977
  }
3978
- `;k0([O({type:String,reflect:!0})],exports.TabPanel.prototype,"name",2);k0([O({type:Boolean,reflect:!0})],exports.TabPanel.prototype,"shown",2);exports.TabPanel=k0([R(p6)],exports.TabPanel);class Rl extends CustomEvent{constructor(e){super("brz-tab-selected",{bubbles:!0,detail:{name:e}})}}class g6 extends CustomEvent{constructor(e){super("brz-tab-deselected",{bubbles:!0,detail:{name:e}})}}var LT=Object.defineProperty,ST=Object.getOwnPropertyDescriptor,Fl=(n,e,i,o)=>{for(var l=o>1?void 0:o?ST(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&LT(e,i,l),l};const v6=ne("tab");exports.Tab=class extends me{constructor(){super(...arguments),this.selected=!1,this.name="",this.link=""}updated(e){const i=e.get("selected");i===!1&&this.selected===!0?this.dispatchEvent(new Rl(this.name)):i===!0&&this.selected===!1&&this.dispatchEvent(new g6(this.name)),super.updated(e)}render(){return this.link?P`<a href=${this.link} id="tab"><slot></slot></a>`:P`<div
3978
+ `;$0([O({type:String,reflect:!0})],exports.TabPanel.prototype,"name",2);$0([O({type:Boolean,reflect:!0})],exports.TabPanel.prototype,"shown",2);exports.TabPanel=$0([R(m6)],exports.TabPanel);class Rl extends CustomEvent{constructor(e){super("brz-tab-selected",{bubbles:!0,detail:{name:e}})}}class y6 extends CustomEvent{constructor(e){super("brz-tab-deselected",{bubbles:!0,detail:{name:e}})}}var TT=Object.defineProperty,kT=Object.getOwnPropertyDescriptor,Fl=(n,e,i,o)=>{for(var l=o>1?void 0:o?kT(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&TT(e,i,l),l};const C6=ne("tab");exports.Tab=class extends me{constructor(){super(...arguments),this.selected=!1,this.name="",this.link=""}updated(e){const i=e.get("selected");i===!1&&this.selected===!0?this.dispatchEvent(new Rl(this.name)):i===!0&&this.selected===!1&&this.dispatchEvent(new y6(this.name)),super.updated(e)}render(){return this.link?P`<a href=${this.link} id="tab"><slot></slot></a>`:P`<div
3979
3979
  tabindex="0"
3980
3980
  role="tab"
3981
3981
  aria-selected=${this.selected}
@@ -4003,7 +4003,7 @@ ${this.value}</textarea
4003
4003
  #tab:hover {
4004
4004
  color: var(--brz-color-neutral-850);
4005
4005
  }
4006
- `;Fl([O({type:Boolean,reflect:!0})],exports.Tab.prototype,"selected",2);Fl([O({type:String,reflect:!0})],exports.Tab.prototype,"name",2);Fl([O({type:String,reflect:!0})],exports.Tab.prototype,"link",2);exports.Tab=Fl([R(v6)],exports.Tab);var MT=Object.defineProperty,TT=Object.getOwnPropertyDescriptor,Bl=(n,e,i,o)=>{for(var l=o>1?void 0:o?TT(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&MT(e,i,l),l};const b6=ne("tab-bar");exports.TabBar=class extends me{constructor(){super(...arguments),this.controlled=!1,this.selected="",this.tabs=[]}handleSlotChange(){var o,l,d;const e=(o=this.shadowRoot)==null?void 0:o.querySelector("slot");if(!e){this.tabs=[];return}let i=Array.from(e.assignedElements());for(;i[0]instanceof HTMLSlotElement;)i=Array.from(i[0].assignedElements());this.tabs=i.filter(u=>u instanceof exports.Tab&&!!u.name),this.controlled||(this.selected||(this.selected=(d=(l=this.tabs.find(u=>u.selected))==null?void 0:l.name)!=null?d:""),!this.selected&&this.tabs.length&&(this.selected=this.tabs[0].name,this.tabs[0].selected=!0)),this.updateSelectedTab()}handleClick(e){if(e.target instanceof exports.Tab){const{name:i}=e.target;i&&(this.controlled||(this.selected=i),this.dispatchEvent(new Rl(i)))}}updated(e){e.has("selected")&&this.updateSelectedTab()}updateSelectedTab(){this.tabs.forEach(e=>{const i=e.name===this.selected;i!==e.selected&&(e.selected=i)})}render(){return P`
4006
+ `;Fl([O({type:Boolean,reflect:!0})],exports.Tab.prototype,"selected",2);Fl([O({type:String,reflect:!0})],exports.Tab.prototype,"name",2);Fl([O({type:String,reflect:!0})],exports.Tab.prototype,"link",2);exports.Tab=Fl([R(C6)],exports.Tab);var $T=Object.defineProperty,OT=Object.getOwnPropertyDescriptor,Bl=(n,e,i,o)=>{for(var l=o>1?void 0:o?OT(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&$T(e,i,l),l};const w6=ne("tab-bar");exports.TabBar=class extends me{constructor(){super(...arguments),this.controlled=!1,this.selected="",this.tabs=[]}handleSlotChange(){var o,l,d;const e=(o=this.shadowRoot)==null?void 0:o.querySelector("slot");if(!e){this.tabs=[];return}let i=Array.from(e.assignedElements());for(;i[0]instanceof HTMLSlotElement;)i=Array.from(i[0].assignedElements());this.tabs=i.filter(u=>u instanceof exports.Tab&&!!u.name),this.controlled||(this.selected||(this.selected=(d=(l=this.tabs.find(u=>u.selected))==null?void 0:l.name)!=null?d:""),!this.selected&&this.tabs.length&&(this.selected=this.tabs[0].name,this.tabs[0].selected=!0)),this.updateSelectedTab()}handleClick(e){if(e.target instanceof exports.Tab){const{name:i}=e.target;i&&(this.controlled||(this.selected=i),this.dispatchEvent(new Rl(i)))}}updated(e){e.has("selected")&&this.updateSelectedTab()}updateSelectedTab(){this.tabs.forEach(e=>{const i=e.name===this.selected;i!==e.selected&&(e.selected=i)})}render(){return P`
4007
4007
  <brz-row id="tabbar" @click=${this.handleClick}>
4008
4008
  <slot @slotchange=${this.handleSlotChange}></slot>
4009
4009
  </brz-row>
@@ -4025,7 +4025,7 @@ ${this.value}</textarea
4025
4025
  top: 0;
4026
4026
  z-index: 1;
4027
4027
  }
4028
- `;Bl([O({type:Boolean})],exports.TabBar.prototype,"controlled",2);Bl([O({type:String})],exports.TabBar.prototype,"selected",2);Bl([pe()],exports.TabBar.prototype,"tabs",2);exports.TabBar=Bl([R(b6)],exports.TabBar);var kT=Object.defineProperty,$T=Object.getOwnPropertyDescriptor,$0=(n,e,i,o)=>{for(var l=o>1?void 0:o?$T(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&kT(e,i,l),l};const m6=ne("tabs");exports.Tabs=class extends me{constructor(){super(...arguments),this.selected="",this.panels=[]}handleSlotChange(){var i,o,l;const e=(i=this.shadowRoot)==null?void 0:i.querySelector("slot:not([name])");if(this.panels=[],!!e){for(const d of e.assignedElements())if(d instanceof exports.TabPanel)this.panels.push(d);else{const u=d.querySelectorAll("brz-tab-panel"),v=d.querySelectorAll("sp-tab-panel");this.panels.push(...Array.from(u.length?u:v))}this.selected||(this.selected=(l=(o=this.panels.find(d=>d.shown))==null?void 0:o.name)!=null?l:""),!this.selected&&this.panels.length&&(this.selected=this.panels[0].name),this.updatePanelVisibility()}}updatePanelVisibility(){this.panels.forEach(e=>{const i=e.name===this.selected;i!==e.shown&&(e.shown=i)})}handleTabSelected(e){this.selected=e.detail.name,this.updatePanelVisibility(),e.stopPropagation(),this.dispatchEvent(new Rl(this.selected))}render(){return P`
4028
+ `;Bl([O({type:Boolean})],exports.TabBar.prototype,"controlled",2);Bl([O({type:String})],exports.TabBar.prototype,"selected",2);Bl([pe()],exports.TabBar.prototype,"tabs",2);exports.TabBar=Bl([R(w6)],exports.TabBar);var ET=Object.defineProperty,_T=Object.getOwnPropertyDescriptor,O0=(n,e,i,o)=>{for(var l=o>1?void 0:o?_T(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&ET(e,i,l),l};const x6=ne("tabs");exports.Tabs=class extends me{constructor(){super(...arguments),this.selected="",this.panels=[]}handleSlotChange(){var i,o,l;const e=(i=this.shadowRoot)==null?void 0:i.querySelector("slot:not([name])");if(this.panels=[],!!e){for(const d of e.assignedElements())if(d instanceof exports.TabPanel)this.panels.push(d);else{const u=d.querySelectorAll("brz-tab-panel"),v=d.querySelectorAll("sp-tab-panel");this.panels.push(...Array.from(u.length?u:v))}this.selected||(this.selected=(l=(o=this.panels.find(d=>d.shown))==null?void 0:o.name)!=null?l:""),!this.selected&&this.panels.length&&(this.selected=this.panels[0].name),this.updatePanelVisibility()}}updatePanelVisibility(){this.panels.forEach(e=>{const i=e.name===this.selected;i!==e.shown&&(e.shown=i)})}handleTabSelected(e){this.selected=e.detail.name,this.updatePanelVisibility(),e.stopPropagation(),this.dispatchEvent(new Rl(this.selected))}render(){return P`
4029
4029
  <brz-tab-bar
4030
4030
  controlled
4031
4031
  selected=${this.selected}
@@ -4038,7 +4038,7 @@ ${this.value}</textarea
4038
4038
  :host {
4039
4039
  background-color: var(--brz-color-white);
4040
4040
  }
4041
- `;$0([O({type:String,reflect:!0})],exports.Tabs.prototype,"selected",2);$0([pe()],exports.Tabs.prototype,"panels",2);exports.Tabs=$0([R(m6)],exports.Tabs);var OT=Object.defineProperty,ET=Object.getOwnPropertyDescriptor,Vl=(n,e,i,o)=>{for(var l=o>1?void 0:o?ET(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&OT(e,i,l),l};const y6=ne("badge");var C6=(n=>(n[n.subtle=0]="subtle",n[n.primary=1]="primary",n[n.important=2]="important",n))(C6||{});const _T=n=>!n||typeof n!="string"?!1:/^-?\d+$/.test(n),w6=5,x6=99;exports.Badge=class extends me{constructor(){super(...arguments),this.limit=0,this.content=""}setDefaultLimit(){this.limit||(this.limit=typeof this.content=="number"?x6:w6)}updated(e){super.updated(e),e.has("content")&&(this.content=_T(this.content)?parseInt(this.content):this.content),this.setDefaultLimit()}generateContent(){return typeof this.content=="number"?this.content>this.limit?`${this.limit}+`:`${this.content}`:this.content.length>this.limit?`${this.content.slice(0,this.limit)}...`:this.content}render(){return P` <span>${this.generateContent()}</span> `}};exports.Badge.styles=j`
4041
+ `;O0([O({type:String,reflect:!0})],exports.Tabs.prototype,"selected",2);O0([pe()],exports.Tabs.prototype,"panels",2);exports.Tabs=O0([R(x6)],exports.Tabs);var IT=Object.defineProperty,AT=Object.getOwnPropertyDescriptor,Vl=(n,e,i,o)=>{for(var l=o>1?void 0:o?AT(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&IT(e,i,l),l};const z6=ne("badge");var L6=(n=>(n[n.subtle=0]="subtle",n[n.primary=1]="primary",n[n.important=2]="important",n))(L6||{});const PT=n=>!n||typeof n!="string"?!1:/^-?\d+$/.test(n),S6=5,M6=99;exports.Badge=class extends me{constructor(){super(...arguments),this.limit=0,this.content=""}setDefaultLimit(){this.limit||(this.limit=typeof this.content=="number"?M6:S6)}updated(e){super.updated(e),e.has("content")&&(this.content=PT(this.content)?parseInt(this.content):this.content),this.setDefaultLimit()}generateContent(){return typeof this.content=="number"?this.content>this.limit?`${this.limit}+`:`${this.content}`:this.content.length>this.limit?`${this.content.slice(0,this.limit)}...`:this.content}render(){return P` <span>${this.generateContent()}</span> `}};exports.Badge.styles=j`
4042
4042
  :host {
4043
4043
  --brz-badge-background-color: var(--brz-color-neutral-250);
4044
4044
  --brz-badge-color: var(--brz-color-neutral-750);
@@ -4070,7 +4070,7 @@ ${this.value}</textarea
4070
4070
  --brz-badge-background-color: var(--brz-color-red-600);
4071
4071
  --brz-badge-color: var(--brz-color-white);
4072
4072
  }
4073
- `;Vl([O({reflect:!0})],exports.Badge.prototype,"theme",2);Vl([O({type:Number})],exports.Badge.prototype,"limit",2);Vl([O({type:String||Number})],exports.Badge.prototype,"content",2);exports.Badge=Vl([R(y6)],exports.Badge);var IT=Math.ceil,AT=Math.max;function PT(n,e,i,o){for(var l=-1,d=AT(IT((e-n)/(i||1)),0),u=Array(d);d--;)u[o?d:++l]=n,n+=i;return u}var DT=PT,NT=a0,HT=Vf,RT=c0,FT=Ia;function BT(n,e,i){if(!FT(i))return!1;var o=typeof e;return(o=="number"?HT(i)&&RT(e,i.length):o=="string"&&e in i)?NT(i[e],n):!1}var VT=BT,ZT=DT,WT=VT,hc=Qf;function UT(n){return function(e,i,o){return o&&typeof o!="number"&&WT(e,i,o)&&(i=o=void 0),e=hc(e),i===void 0?(i=e,e=0):i=hc(i),o=o===void 0?e<i?1:-1:hc(o),ZT(e,i,o,n)}}var jT=UT,GT=jT,qT=GT(),KT=qT;const Zl=o0(KT);function YT(n,e,i){return[1,null,...Zl(n-e,n+e+1),null,i]}function XT(n,e){return[1,null,...Zl(n-(e-3),n+1)]}function JT(n,e){return[...Zl(1,e-1),null,n]}function QT(n,e,i){return n>1+1+e*2&&n<i-1-e*2}function ek(n,e=1,i=1){const o=5+i*2;if(n<=o)return Zl(1,n+1);if(QT(e,i,n))return YT(e,i,n);if(e+(o-3)>=n)return XT(n,o);if(e<o)return JT(n,o)}var tk=Object.defineProperty,rk=Object.getOwnPropertyDescriptor,Yr=(n,e,i,o)=>{for(var l=o>1?void 0:o?rk(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&tk(e,i,l),l};const O0=ne("basic-pagination"),E0=ne("pagination");class z6 extends CustomEvent{constructor(e){super(`${O0}-${e}`,{bubbles:!0,composed:!0})}}exports.BasicPagination=class extends me{constructor(){super(...arguments),this.hasPreviousPage=!1,this.hasNextPage=!1}emit(e){this.dispatchEvent(new z6(e))}handlePageChange(e){this.emit(`${e}-page`)}render(){return P`
4073
+ `;Vl([O({reflect:!0})],exports.Badge.prototype,"theme",2);Vl([O({type:Number})],exports.Badge.prototype,"limit",2);Vl([O({type:String||Number})],exports.Badge.prototype,"content",2);exports.Badge=Vl([R(z6)],exports.Badge);var DT=Math.ceil,NT=Math.max;function HT(n,e,i,o){for(var l=-1,d=NT(DT((e-n)/(i||1)),0),u=Array(d);d--;)u[o?d:++l]=n,n+=i;return u}var RT=HT,FT=s0,BT=jf,VT=u0,ZT=Ia;function WT(n,e,i){if(!ZT(i))return!1;var o=typeof e;return(o=="number"?BT(i)&&VT(e,i.length):o=="string"&&e in i)?FT(i[e],n):!1}var UT=WT,jT=RT,GT=UT,fc=np;function qT(n){return function(e,i,o){return o&&typeof o!="number"&&GT(e,i,o)&&(i=o=void 0),e=fc(e),i===void 0?(i=e,e=0):i=fc(i),o=o===void 0?e<i?1:-1:fc(o),jT(e,i,o,n)}}var KT=qT,YT=KT,XT=YT(),JT=XT;const Zl=a0(JT);function QT(n,e,i){return[1,null,...Zl(n-e,n+e+1),null,i]}function ek(n,e){return[1,null,...Zl(n-(e-3),n+1)]}function tk(n,e){return[...Zl(1,e-1),null,n]}function rk(n,e,i){return n>1+1+e*2&&n<i-1-e*2}function nk(n,e=1,i=1){const o=5+i*2;if(n<=o)return Zl(1,n+1);if(rk(e,i,n))return QT(e,i,n);if(e+(o-3)>=n)return ek(n,o);if(e<o)return tk(n,o)}var ik=Object.defineProperty,ok=Object.getOwnPropertyDescriptor,Yr=(n,e,i,o)=>{for(var l=o>1?void 0:o?ok(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&ik(e,i,l),l};const E0=ne("basic-pagination"),_0=ne("pagination");class T6 extends CustomEvent{constructor(e){super(`${E0}-${e}`,{bubbles:!0,composed:!0})}}exports.BasicPagination=class extends me{constructor(){super(...arguments),this.hasPreviousPage=!1,this.hasNextPage=!1}emit(e){this.dispatchEvent(new T6(e))}handlePageChange(e){this.emit(`${e}-page`)}render(){return P`
4074
4074
  <brz-button-group role="navigation" aria-label="Pagination Navigation">
4075
4075
  <brz-button
4076
4076
  compact
@@ -4096,7 +4096,7 @@ ${this.value}</textarea
4096
4096
  brz-button-group {
4097
4097
  --brz-spacing-2: var(--brz-spacing-1);
4098
4098
  }
4099
- `;Yr([O({type:Boolean,attribute:"has-previous-page",reflect:!0})],exports.BasicPagination.prototype,"hasPreviousPage",2);Yr([O({type:Boolean,attribute:"has-next-page",reflect:!0})],exports.BasicPagination.prototype,"hasNextPage",2);exports.BasicPagination=Yr([R(O0)],exports.BasicPagination);class L6 extends CustomEvent{constructor(e,i){super(`${E0}-${e}`,{bubbles:!0,composed:!0,detail:{page:i}})}}exports.Pagination=class extends me{constructor(){super(...arguments),this.currentPageSiblings=1}emit(e,i){this.dispatchEvent(new L6(e,i))}onPageChange(e){this.emit("page-change",e)}isCurrentPage(e){return e===this.currentPage}hasNextPage(){return this.currentPage<this.totalPages}onNextPage(){this.emit("page-change",this.currentPage+1)}hasPreviousPage(){return this.currentPage>1}onPreviousPage(){this.emit("page-change",this.currentPage-1)}render(){var e;return this.totalPages=Math.max(1,Math.ceil(this.totalItems/this.pageSize)),this.pages=ek(this.totalPages,this.currentPage,this.currentPageSiblings),P`
4099
+ `;Yr([O({type:Boolean,attribute:"has-previous-page",reflect:!0})],exports.BasicPagination.prototype,"hasPreviousPage",2);Yr([O({type:Boolean,attribute:"has-next-page",reflect:!0})],exports.BasicPagination.prototype,"hasNextPage",2);exports.BasicPagination=Yr([R(E0)],exports.BasicPagination);class k6 extends CustomEvent{constructor(e,i){super(`${_0}-${e}`,{bubbles:!0,composed:!0,detail:{page:i}})}}exports.Pagination=class extends me{constructor(){super(...arguments),this.currentPageSiblings=1}emit(e,i){this.dispatchEvent(new k6(e,i))}onPageChange(e){this.emit("page-change",e)}isCurrentPage(e){return e===this.currentPage}hasNextPage(){return this.currentPage<this.totalPages}onNextPage(){this.emit("page-change",this.currentPage+1)}hasPreviousPage(){return this.currentPage>1}onPreviousPage(){this.emit("page-change",this.currentPage-1)}render(){var e;return this.totalPages=Math.max(1,Math.ceil(this.totalItems/this.pageSize)),this.pages=nk(this.totalPages,this.currentPage,this.currentPageSiblings),P`
4100
4100
  <brz-row role="navigation" aria-label="Pagination Navigation">
4101
4101
  <button
4102
4102
  role="link"
@@ -4197,7 +4197,7 @@ ${this.value}</textarea
4197
4197
  .page {
4198
4198
  padding: 0 var(--brz-spacing-2);
4199
4199
  }
4200
- `;Yr([O({type:Number,attribute:"total-items",reflect:!0})],exports.Pagination.prototype,"totalItems",2);Yr([O({type:Number,attribute:"page-size",reflect:!0})],exports.Pagination.prototype,"pageSize",2);Yr([O({type:Number,attribute:"current-page",reflect:!0})],exports.Pagination.prototype,"currentPage",2);Yr([pe()],exports.Pagination.prototype,"currentPageSiblings",2);Yr([pe()],exports.Pagination.prototype,"totalPages",2);Yr([pe()],exports.Pagination.prototype,"pages",2);exports.Pagination=Yr([R(E0)],exports.Pagination);var nk=Object.defineProperty,ik=Object.getOwnPropertyDescriptor,Za=(n,e,i,o)=>{for(var l=o>1?void 0:o?ik(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&nk(e,i,l),l};const ok=["info","success","warning","error"],S6=ne("alert");class M6 extends CustomEvent{constructor(e){super(e,{bubbles:!0,composed:!0})}}exports.Alert=class extends me{constructor(){super(...arguments),this.type="info",this.clearable=!1,this.title="",this.cleared=!1}getIcon(){switch(this.type){case"success":return"tickFill";case"warning":case"error":return"exclamationFill";default:return"infoFill"}}clear(){this.cleared=!0,this.dispatchEvent(new M6("brz-alert-cleared"))}render(){return this.cleared?null:P`<div class="alert-container">
4200
+ `;Yr([O({type:Number,attribute:"total-items",reflect:!0})],exports.Pagination.prototype,"totalItems",2);Yr([O({type:Number,attribute:"page-size",reflect:!0})],exports.Pagination.prototype,"pageSize",2);Yr([O({type:Number,attribute:"current-page",reflect:!0})],exports.Pagination.prototype,"currentPage",2);Yr([pe()],exports.Pagination.prototype,"currentPageSiblings",2);Yr([pe()],exports.Pagination.prototype,"totalPages",2);Yr([pe()],exports.Pagination.prototype,"pages",2);exports.Pagination=Yr([R(_0)],exports.Pagination);var ak=Object.defineProperty,sk=Object.getOwnPropertyDescriptor,Za=(n,e,i,o)=>{for(var l=o>1?void 0:o?sk(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&ak(e,i,l),l};const lk=["info","success","warning","error"],$6=ne("alert");class O6 extends CustomEvent{constructor(e){super(e,{bubbles:!0,composed:!0})}}exports.Alert=class extends me{constructor(){super(...arguments),this.type="info",this.clearable=!1,this.title="",this.cleared=!1}getIcon(){switch(this.type){case"success":return"tickFill";case"warning":case"error":return"exclamationFill";default:return"infoFill"}}clear(){this.cleared=!0,this.dispatchEvent(new O6("brz-alert-cleared"))}render(){return this.cleared?null:P`<div class="alert-container">
4201
4201
  <brz-icon class="type-icon" icon="${this.getIcon()}"></brz-icon>
4202
4202
  <div role="alert">
4203
4203
  ${this.title?P`<div><brz-heading>${this.title}</brz-heading></div>`:P``}
@@ -4273,7 +4273,7 @@ ${this.value}</textarea
4273
4273
  padding-top: 1px;
4274
4274
  }
4275
4275
 
4276
- ${Q2(".clear-button",j`
4276
+ ${nf(".clear-button",j`
4277
4277
  align-self: start;
4278
4278
  margin-left: auto;
4279
4279
  margin-right: calc(0px - var(--brz-spacing-1));
@@ -4282,7 +4282,7 @@ ${this.value}</textarea
4282
4282
  .clear-button brz-icon {
4283
4283
  vertical-align: middle;
4284
4284
  }
4285
- `;Za([O({type:String,reflect:!0})],exports.Alert.prototype,"type",2);Za([O({type:Boolean})],exports.Alert.prototype,"clearable",2);Za([O()],exports.Alert.prototype,"title",2);Za([pe()],exports.Alert.prototype,"cleared",2);exports.Alert=Za([R(S6)],exports.Alert);const _0={resources:D`
4285
+ `;Za([O({type:String,reflect:!0})],exports.Alert.prototype,"type",2);Za([O({type:Boolean})],exports.Alert.prototype,"clearable",2);Za([O()],exports.Alert.prototype,"title",2);Za([pe()],exports.Alert.prototype,"cleared",2);exports.Alert=Za([R($6)],exports.Alert);const I0={resources:D`
4286
4286
  <path fill-rule="evenodd" clip-rule="evenodd" d="M72.162 23C65.9749 23 60.9331 26.3858 60.9331 35.8357C60.9331 45.2714 65.9608 48.6715 72.162 48.6715C78.3519 48.6715 83.3909 45.2885 83.3909 35.8357C83.3909 26.4029 78.366 23 72.162 23" fill="#ECEEF3"/>
4287
4287
  <path d="M56.4495 56.9434C59.5234 55.7568 64.9414 54.1338 72.1812 54.1338C78.7417 54.1338 84.8193 55.6855 88.0841 56.9434C93.6087 59.077 96.3373 63.076 97.3676 67.212C97.9234 69.4654 97.0055 71.887 95.3408 72.6629C93.7195 73.4199 86.7451 73.8798 78.6699 74.0381C76.8525 68.8754 72.9778 64.0852 65.9467 61.3874C63.1121 60.3023 58.7997 59.0638 53.7502 58.2549C54.565 57.7649 55.4627 57.3244 56.4495 56.9434Z" fill="#ECEEF3"/>
4288
4288
  <path fill-rule="evenodd" clip-rule="evenodd" d="M40.1294 59.3822C29.7418 59.3822 21.9683 61.6959 17.5579 63.3874C9.61917 66.4329 5.70017 72.1418 4.23407 78.0459C3.43657 81.25 4.74559 84.6941 7.11794 85.8082C10.0139 87.1663 25.0495 87.8454 40.1093 87.8454C55.2496 87.8454 70.4222 87.1582 73.3584 85.796C75.7469 84.69 77.0639 81.2378 76.2664 78.0256C74.7883 72.1296 70.8733 66.4289 62.9466 63.3874C58.2624 61.5942 49.5423 59.3822 40.1294 59.3822" fill="#CACFD9"/>
@@ -4376,7 +4376,7 @@ ${this.value}</textarea
4376
4376
  <circle cx="35.1426" cy="45.4286" r="4.28571" fill="white"/>
4377
4377
  <circle cx="22.1426" cy="73.5714" r="19.2857" fill="#CACFD9" stroke="white" stroke-width="3"/>
4378
4378
  <path d="M22.1426 62.8572C23.3212 62.8572 24.2855 63.8215 24.2855 65V73.5715C24.2855 74.75 23.3212 75.7143 22.1426 75.7143C20.964 75.7143 19.9998 74.75 19.9998 73.5715V65C19.9998 63.8215 20.964 62.8572 22.1426 62.8572Z" fill="white"/>
4379
- <path d="M24.2855 82.1429C24.2855 83.3264 23.3261 84.2857 22.1426 84.2857V84.2857C20.9591 84.2857 19.9998 83.3264 19.9998 82.1429V82.1429C19.9998 80.9594 20.9591 80 22.1426 80V80C23.3261 80 24.2855 80.9594 24.2855 82.1429V82.1429Z" fill="white"/>`},ak=Object.keys(_0);var sk=Object.defineProperty,lk=Object.getOwnPropertyDescriptor,Wl=(n,e,i,o)=>{for(var l=o>1?void 0:o?lk(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&sk(e,i,l),l};const T6=ne("illustration");exports.Illustration=class extends me{constructor(){super(...arguments),this.illustration="",this.altTitle="",this.altDescription=""}render(){const e=_0[this.illustration],i=Math.floor(Math.random()*100),o=`${this.illustration}Title${i}`,l=`${this.illustration}Desc${i}`;if(!e){console.warn(`Can't find illustration ${this.illustration}`);return}return P`<svg
4379
+ <path d="M24.2855 82.1429C24.2855 83.3264 23.3261 84.2857 22.1426 84.2857V84.2857C20.9591 84.2857 19.9998 83.3264 19.9998 82.1429V82.1429C19.9998 80.9594 20.9591 80 22.1426 80V80C23.3261 80 24.2855 80.9594 24.2855 82.1429V82.1429Z" fill="white"/>`},ck=Object.keys(I0);var uk=Object.defineProperty,dk=Object.getOwnPropertyDescriptor,Wl=(n,e,i,o)=>{for(var l=o>1?void 0:o?dk(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&uk(e,i,l),l};const E6=ne("illustration");exports.Illustration=class extends me{constructor(){super(...arguments),this.illustration="",this.altTitle="",this.altDescription=""}render(){const e=I0[this.illustration],i=Math.floor(Math.random()*100),o=`${this.illustration}Title${i}`,l=`${this.illustration}Desc${i}`;if(!e){console.warn(`Can't find illustration ${this.illustration}`);return}return P`<svg
4380
4380
  aria-hidden=${!this.altTitle.length||!this.altDescription.length}
4381
4381
  role="img"
4382
4382
  aria-labelledby=${`${o} ${l}`}
@@ -4392,13 +4392,13 @@ ${this.value}</textarea
4392
4392
  /* to get rid of extra height caused by white space */
4393
4393
  line-height: 0;
4394
4394
  }
4395
- `;Wl([O({type:String})],exports.Illustration.prototype,"illustration",2);Wl([O({type:String,attribute:"alt-title"})],exports.Illustration.prototype,"altTitle",2);Wl([O({type:String,attribute:"alt-description"})],exports.Illustration.prototype,"altDescription",2);exports.Illustration=Wl([R(T6)],exports.Illustration);var ck=Object.defineProperty,uk=Object.getOwnPropertyDescriptor,dk=(n,e,i,o)=>{for(var l=o>1?void 0:o?uk(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&ck(e,i,l),l};const k6=ne("header");exports.Header=class extends me{render(){return P`<slot></slot>`}};exports.Header.styles=j`
4395
+ `;Wl([O({type:String})],exports.Illustration.prototype,"illustration",2);Wl([O({type:String,attribute:"alt-title"})],exports.Illustration.prototype,"altTitle",2);Wl([O({type:String,attribute:"alt-description"})],exports.Illustration.prototype,"altDescription",2);exports.Illustration=Wl([R(E6)],exports.Illustration);var hk=Object.defineProperty,fk=Object.getOwnPropertyDescriptor,pk=(n,e,i,o)=>{for(var l=o>1?void 0:o?fk(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&hk(e,i,l),l};const _6=ne("header");exports.Header=class extends me{render(){return P`<slot></slot>`}};exports.Header.styles=j`
4396
4396
  :host {
4397
4397
  display: block;
4398
4398
  padding: var(--brz-spacing-5);
4399
4399
  margin-bottom: var(--brz-spacing-4);
4400
4400
  }
4401
- `;exports.Header=dk([R(k6)],exports.Header);var hk=Object.defineProperty,fk=Object.getOwnPropertyDescriptor,pk=(n,e,i,o)=>{for(var l=o>1?void 0:o?fk(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&hk(e,i,l),l};const $6=ne("header-footer-page");exports.HeaderFooterPage=class extends me{render(){return P`
4401
+ `;exports.Header=pk([R(_6)],exports.Header);var gk=Object.defineProperty,vk=Object.getOwnPropertyDescriptor,bk=(n,e,i,o)=>{for(var l=o>1?void 0:o?vk(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&gk(e,i,l),l};const I6=ne("header-footer-page");exports.HeaderFooterPage=class extends me{render(){return P`
4402
4402
  <div id="container">
4403
4403
  <div id="header"><slot name="header"></slot></div>
4404
4404
  <div id="body"><slot></slot></div>
@@ -4422,7 +4422,7 @@ ${this.value}</textarea
4422
4422
  flex: 1 1;
4423
4423
  overflow-y: auto;
4424
4424
  }
4425
- `;exports.HeaderFooterPage=pk([R($6)],exports.HeaderFooterPage);var gk=Object.defineProperty,vk=Object.getOwnPropertyDescriptor,bk=(n,e,i,o)=>{for(var l=o>1?void 0:o?vk(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&gk(e,i,l),l};const O6=ne("responsive-columns");exports.ResponsiveColumns=class extends me{render(){return P`<slot></slot>`}};exports.ResponsiveColumns.styles=j`
4425
+ `;exports.HeaderFooterPage=bk([R(I6)],exports.HeaderFooterPage);var mk=Object.defineProperty,yk=Object.getOwnPropertyDescriptor,Ck=(n,e,i,o)=>{for(var l=o>1?void 0:o?yk(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&mk(e,i,l),l};const A6=ne("responsive-columns");exports.ResponsiveColumns=class extends me{render(){return P`<slot></slot>`}};exports.ResponsiveColumns.styles=j`
4426
4426
  :host {
4427
4427
  display: flex;
4428
4428
  flex-direction: row;
@@ -4454,7 +4454,7 @@ ${this.value}</textarea
4454
4454
  margin-bottom: var(--brz-padding, var(--brz-spacing-8));
4455
4455
  }
4456
4456
  }
4457
- `;exports.ResponsiveColumns=bk([R(O6)],exports.ResponsiveColumns);var mk=Object.defineProperty,yk=Object.getOwnPropertyDescriptor,Ck=(n,e,i,o)=>{for(var l=o>1?void 0:o?yk(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&mk(e,i,l),l};const E6=ne("footer");exports.Footer=class extends me{render(){return P`<div class="container">
4457
+ `;exports.ResponsiveColumns=Ck([R(A6)],exports.ResponsiveColumns);var wk=Object.defineProperty,xk=Object.getOwnPropertyDescriptor,zk=(n,e,i,o)=>{for(var l=o>1?void 0:o?xk(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&wk(e,i,l),l};const P6=ne("footer");exports.Footer=class extends me{render(){return P`<div class="container">
4458
4458
  <slot name="left"></slot>
4459
4459
  <slot name="middle"></slot>
4460
4460
  <slot name="right"></slot>
@@ -4465,7 +4465,7 @@ ${this.value}</textarea
4465
4465
  justify-content: space-between;
4466
4466
  padding: var(--brz-spacing-3) var(--brz-spacing-4);
4467
4467
  }
4468
- `;exports.Footer=Ck([R(E6)],exports.Footer);var wk=Object.defineProperty,xk=Object.getOwnPropertyDescriptor,Ul=(n,e,i,o)=>{for(var l=o>1?void 0:o?xk(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&wk(e,i,l),l};const _6=ne("page-header");exports.PageHeader=class extends me{constructor(){super(...arguments),this.hasTitle=!1}updated(e){var i;super.updated(e),this.hasTitle=!!((i=this.slottedTitle)!=null&&i.length||this.pageTitle)}render(){return P`
4468
+ `;exports.Footer=zk([R(P6)],exports.Footer);var Lk=Object.defineProperty,Sk=Object.getOwnPropertyDescriptor,Ul=(n,e,i,o)=>{for(var l=o>1?void 0:o?Sk(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&Lk(e,i,l),l};const D6=ne("page-header");exports.PageHeader=class extends me{constructor(){super(...arguments),this.hasTitle=!1}updated(e){var i;super.updated(e),this.hasTitle=!!((i=this.slottedTitle)!=null&&i.length||this.pageTitle)}render(){return P`
4469
4469
  <header>
4470
4470
  <slot name="decorator"></slot>
4471
4471
 
@@ -4525,7 +4525,7 @@ ${this.value}</textarea
4525
4525
  brz-heading.hidden {
4526
4526
  display: none;
4527
4527
  }
4528
- `;Ul([O({attribute:"page-title"})],exports.PageHeader.prototype,"pageTitle",2);Ul([pe()],exports.PageHeader.prototype,"hasTitle",2);Ul([jc({slot:"title"})],exports.PageHeader.prototype,"slottedTitle",2);exports.PageHeader=Ul([R(_6)],exports.PageHeader);var zk=Object.defineProperty,Lk=Object.getOwnPropertyDescriptor,jl=(n,e,i,o)=>{for(var l=o>1?void 0:o?Lk(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&zk(e,i,l),l};const I6=ne("grid"),Sk=Ea.map(n=>j`
4528
+ `;Ul([O({attribute:"page-title"})],exports.PageHeader.prototype,"pageTitle",2);Ul([pe()],exports.PageHeader.prototype,"hasTitle",2);Ul([Gc({slot:"title"})],exports.PageHeader.prototype,"slottedTitle",2);exports.PageHeader=Ul([R(D6)],exports.PageHeader);var Mk=Object.defineProperty,Tk=Object.getOwnPropertyDescriptor,jl=(n,e,i,o)=>{for(var l=o>1?void 0:o?Tk(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&Mk(e,i,l),l};const N6=ne("grid"),kk=Ea.map(n=>j`
4529
4529
  :host([spacing='${n}']),
4530
4530
  :host([col-spacing='${n}']) {
4531
4531
  --brz-grid-column-gap: var(--brz-spacing-${n});
@@ -4534,7 +4534,7 @@ ${this.value}</textarea
4534
4534
  :host([row-spacing='${n}']) {
4535
4535
  --brz-grid-row-gap: var(--brz-spacing-${n});
4536
4536
  }
4537
- `);exports.Grid=class extends uo{render(){return P`<slot></slot>`}};var $2;exports.Grid.styles=[($2=uo.styles)!=null?$2:[],j`
4537
+ `);exports.Grid=class extends uo{render(){return P`<slot></slot>`}};var I2;exports.Grid.styles=[(I2=uo.styles)!=null?I2:[],j`
4538
4538
  :host {
4539
4539
  --brz-grid-columns: 12;
4540
4540
  --brz-grid-column-gap: var(--brz-spacing-5);
@@ -4547,34 +4547,34 @@ ${this.value}</textarea
4547
4547
  column-gap: var(--brz-grid-column-gap);
4548
4548
  row-gap: var(--brz-grid-row-gap);
4549
4549
  }
4550
- `,...Sk];jl([O({type:Number,reflect:!0})],exports.Grid.prototype,"spacing",2);jl([O({type:Number,attribute:"col-spacing",reflect:!0})],exports.Grid.prototype,"colSpacing",2);jl([O({type:Number,attribute:"row-spacing",reflect:!0})],exports.Grid.prototype,"rowSpacing",2);exports.Grid=jl([R(I6)],exports.Grid);const ul={lg:960,md:640},Mk=j`
4550
+ `,...kk];jl([O({type:Number,reflect:!0})],exports.Grid.prototype,"spacing",2);jl([O({type:Number,attribute:"col-spacing",reflect:!0})],exports.Grid.prototype,"colSpacing",2);jl([O({type:Number,attribute:"row-spacing",reflect:!0})],exports.Grid.prototype,"rowSpacing",2);exports.Grid=jl([R(N6)],exports.Grid);const ul={lg:960,md:640},$k=j`
4551
4551
  --brz-breakpoint-lg: ${ul.lg}px;
4552
4552
  --brz-breakpoint-md: ${ul.md}px;
4553
- `,fc=n=>(e,...i)=>j`
4553
+ `,pc=n=>(e,...i)=>j`
4554
4554
  @media (max-width: ${ul[n]}px) {
4555
4555
  ${j(e,...i)}
4556
4556
  }
4557
- `,L2=n=>(e,...i)=>j`
4557
+ `,k2=n=>(e,...i)=>j`
4558
4558
  @media (min-width: ${ul[n]}px) {
4559
4559
  ${j(e,...i)}
4560
4560
  }
4561
- `,dl={breakpointUp:L2,breakpointDown:fc,sm:fc("md"),md:fc("lg"),lg:L2("lg")};var Tk=Object.defineProperty,kk=Object.getOwnPropertyDescriptor,Gl=(n,e,i,o)=>{for(var l=o>1?void 0:o?kk(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&Tk(e,i,l),l};const A6=ne("grid-item"),ql=[1,2,3,4,5,6,7,8,9,10,11,12],$k=ql.map(n=>j`
4561
+ `,dl={breakpointUp:k2,breakpointDown:pc,sm:pc("md"),md:pc("lg"),lg:k2("lg")};var Ok=Object.defineProperty,Ek=Object.getOwnPropertyDescriptor,Gl=(n,e,i,o)=>{for(var l=o>1?void 0:o?Ek(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&Ok(e,i,l),l};const H6=ne("grid-item"),ql=[1,2,3,4,5,6,7,8,9,10,11,12],_k=ql.map(n=>j`
4562
4562
  :host([cols='${n}']) {
4563
4563
  grid-column: auto / span ${n};
4564
4564
  }
4565
- `),Ok=ql.map(n=>j`
4565
+ `),Ik=ql.map(n=>j`
4566
4566
  ${dl.md`
4567
4567
  :host([md-cols='${n}']) {
4568
4568
  grid-column: auto / span ${n};
4569
4569
  }
4570
4570
  `}
4571
- `),Ek=ql.map(n=>j`
4571
+ `),Ak=ql.map(n=>j`
4572
4572
  ${dl.sm`
4573
4573
  :host([sm-cols='${n}']) {
4574
4574
  grid-column: auto / span ${n};
4575
4575
  }
4576
4576
  `}
4577
- `),_k=j`
4577
+ `),Pk=j`
4578
4578
  ${dl.md`
4579
4579
  :host([cols='9']:not([md-cols])),
4580
4580
  :host([cols='8']:not([md-cols])),
@@ -4594,7 +4594,7 @@ ${this.value}</textarea
4594
4594
  :host {
4595
4595
  grid-column: auto / span 12;
4596
4596
  }
4597
- `,$k,_k,Ok,Ek];Gl([O({type:Number,reflect:!0})],exports.GridItem.prototype,"cols",2);Gl([O({type:Number,reflect:!0,attribute:"md-cols"})],exports.GridItem.prototype,"mdCols",2);Gl([O({type:Number,reflect:!0,attribute:"sm-cols"})],exports.GridItem.prototype,"smCols",2);exports.GridItem=Gl([R(A6)],exports.GridItem);const Ik=j`
4597
+ `,_k,Pk,Ik,Ak];Gl([O({type:Number,reflect:!0})],exports.GridItem.prototype,"cols",2);Gl([O({type:Number,reflect:!0,attribute:"md-cols"})],exports.GridItem.prototype,"mdCols",2);Gl([O({type:Number,reflect:!0,attribute:"sm-cols"})],exports.GridItem.prototype,"smCols",2);exports.GridItem=Gl([R(H6)],exports.GridItem);const Dk=j`
4598
4598
  :host {
4599
4599
  --brz-border-radius-default: 2px;
4600
4600
  --brz-border-radius-medium: 3px;
@@ -4602,7 +4602,7 @@ ${this.value}</textarea
4602
4602
 
4603
4603
  --brz-border-divider: 1px solid var(--brz-color-neutral-400);
4604
4604
  }
4605
- `,Ak=j`
4605
+ `,Nk=j`
4606
4606
  :host {
4607
4607
  --brz-color-neutral-900: #1b263a;
4608
4608
  --brz-color-neutral-850: #223049;
@@ -4795,7 +4795,7 @@ ${this.value}</textarea
4795
4795
 
4796
4796
  --brz-color-text-on-color: var(--brz-color-white);
4797
4797
  }
4798
- `,Pk=j`
4798
+ `,Hk=j`
4799
4799
  :host {
4800
4800
  --sp-border-radius-default: var(--brz-border-radius-default);
4801
4801
  --sp-border-radius-medium: var(--brz-border-radius-medium)
@@ -5060,14 +5060,14 @@ ${this.value}</textarea
5060
5060
  --sp-z-index-dropdown: var(--brz-z-index-dropdown);
5061
5061
  --sp-z-index-tooltip: var(--brz-z-index-tooltip);
5062
5062
  }
5063
- `,Dk=j`
5063
+ `,Rk=j`
5064
5064
  :host {
5065
5065
  // TODO: These names currently match the design system but should probably be more generic (based on elevation instead of specific components)
5066
5066
  --brz-box-shadow-info-window: 0px 5px 10px rgba(28, 46, 72, 0.15);
5067
5067
  --brz-box-shadow-menu: 0 3px 5px var(--brz-color-shadow-150);
5068
5068
  --brz-box-shadow-modal: 0 3px 12px var(--brz-color-shadow-100);
5069
5069
  }
5070
- `,Nk=j`
5070
+ `,Fk=j`
5071
5071
  :host {
5072
5072
  --brz-font-family-brand: Inter, sofiapro;
5073
5073
  --brz-font-family-fallback: system-ui, BlinkMacSystemFont, -apple-system,
@@ -5111,14 +5111,14 @@ ${this.value}</textarea
5111
5111
  --brz-text-block-max-width: 44rem;
5112
5112
  --brz-list-block-max-width: 40rem;
5113
5113
  }
5114
- `,Hk=j`
5114
+ `,Bk=j`
5115
5115
  :host {
5116
5116
  --brz-z-index-navigation: 1000;
5117
5117
  --brz-z-index-dialog: 1100;
5118
5118
  --brz-z-index-dropdown: 1200;
5119
5119
  --brz-z-index-tooltip: 1300;
5120
5120
  }
5121
- `;var Rk=Object.defineProperty,Fk=Object.getOwnPropertyDescriptor,Bk=(n,e,i,o)=>{for(var l=o>1?void 0:o?Fk(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&Rk(e,i,l),l};const P6=ne("global-styles");exports.GlobalStyles=class extends me{render(){return P`<slot></slot>`}};exports.GlobalStyles.styles=[Ak,Cf,Nk,Ik,Dk,Hk,Mk,Pk,j`
5121
+ `;var Vk=Object.defineProperty,Zk=Object.getOwnPropertyDescriptor,Wk=(n,e,i,o)=>{for(var l=o>1?void 0:o?Zk(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&Vk(e,i,l),l};const R6=ne("global-styles");exports.GlobalStyles=class extends me{render(){return P`<slot></slot>`}};exports.GlobalStyles.styles=[Nk,Lf,Fk,Dk,Rk,Bk,$k,Hk,j`
5122
5122
  :host {
5123
5123
  --brz-outline-color: var(--brz-color-primary-600);
5124
5124
  --brz-outline-style: solid;
@@ -5136,7 +5136,7 @@ ${this.value}</textarea
5136
5136
  font-weight: var(--brz-font-weight-normal);
5137
5137
  color: var(--brz-color-text);
5138
5138
  }
5139
- `];exports.GlobalStyles=Bk([R(P6)],exports.GlobalStyles);const D6=ne("card"),N6=ne("card-header"),H6=ne("card-footer"),R6=ne("card-section-header"),Vk=j`
5139
+ `];exports.GlobalStyles=Wk([R(R6)],exports.GlobalStyles);const F6=ne("card"),B6=ne("card-header"),V6=ne("card-footer"),Z6=ne("card-section-header"),Uk=j`
5140
5140
  :host {
5141
5141
  --brz-card-background-color: var(--brz-color-white);
5142
5142
  --brz-card-color: var(--brz-color-text);
@@ -5174,7 +5174,7 @@ ${this.value}</textarea
5174
5174
 
5175
5175
  padding-bottom: calc(2 * var(--brz-card-body-balancer));
5176
5176
  }
5177
- `,Zk=n=>j`
5177
+ `,jk=n=>j`
5178
5178
  :host([padding='${n}']) {
5179
5179
  --brz-card-padding: var(--brz-spacing-${n});
5180
5180
  }
@@ -5182,7 +5182,7 @@ ${this.value}</textarea
5182
5182
  :host([body-padding='${n}']) {
5183
5183
  --brz-card-body-padding: var(--brz-spacing-${n});
5184
5184
  }
5185
- `,Wk=Ea.map(Zk),Uk=j`
5185
+ `,Gk=Ea.map(jk),qk=j`
5186
5186
  :host {
5187
5187
  --brz-card-header-color: var(--brz-card-color, var(--brz-color-text));
5188
5188
  --brz-card-header-padding-x: var(--brz-card-padding, var(--brz-spacing-5));
@@ -5230,7 +5230,7 @@ ${this.value}</textarea
5230
5230
  align-self: flex-start;
5231
5231
  flex-shrink: 0;
5232
5232
  }
5233
- `,jk=j`
5233
+ `,Kk=j`
5234
5234
  :host {
5235
5235
  --brz-card-footer-color: var(--brz-card-color, var(--brz-color-text));
5236
5236
  --brz-card-footer-padding-x: var(--brz-card-padding, var(--brz-spacing-5));
@@ -5258,7 +5258,7 @@ ${this.value}</textarea
5258
5258
  align-self: flex-start;
5259
5259
  flex-shrink: 0;
5260
5260
  }
5261
- `;var Gk=Object.defineProperty,qk=Object.getOwnPropertyDescriptor,Kk=(n,e,i,o)=>{for(var l=o>1?void 0:o?qk(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&Gk(e,i,l),l};exports.CardHeader=class extends me{connectedCallback(){super.connectedCallback(),this.slot="header"}get contentTemplate(){return P`
5261
+ `;var Yk=Object.defineProperty,Xk=Object.getOwnPropertyDescriptor,Jk=(n,e,i,o)=>{for(var l=o>1?void 0:o?Xk(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&Yk(e,i,l),l};exports.CardHeader=class extends me{connectedCallback(){super.connectedCallback(),this.slot="header"}get contentTemplate(){return P`
5262
5262
  <div class="title">
5263
5263
  <slot></slot>
5264
5264
  </div>
@@ -5266,9 +5266,9 @@ ${this.value}</textarea
5266
5266
  <div class="aside">
5267
5267
  <slot name="aside"></slot>
5268
5268
  </div>
5269
- `}render(){return P` <header class="card-header">${this.contentTemplate}</header> `}};exports.CardHeader.styles=[Uk];exports.CardHeader=Kk([$a(N6)],exports.CardHeader);var Yk=Object.defineProperty,Xk=Object.getOwnPropertyDescriptor,F6=(n,e,i,o)=>{for(var l=o>1?void 0:o?Xk(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&Yk(e,i,l),l};exports.CardSectionHeader=class extends exports.CardHeader{constructor(){super(...arguments),this.hasDivider=!1}connectedCallback(){super.connectedCallback(),this.slot=""}render(){return P`
5269
+ `}render(){return P` <header class="card-header">${this.contentTemplate}</header> `}};exports.CardHeader.styles=[qk];exports.CardHeader=Jk([$a(B6)],exports.CardHeader);var Qk=Object.defineProperty,e$=Object.getOwnPropertyDescriptor,W6=(n,e,i,o)=>{for(var l=o>1?void 0:o?e$(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&Qk(e,i,l),l};exports.CardSectionHeader=class extends exports.CardHeader{constructor(){super(...arguments),this.hasDivider=!1}connectedCallback(){super.connectedCallback(),this.slot=""}render(){return P`
5270
5270
  <div class="card-section-header">${this.contentTemplate}</div>
5271
- `}};F6([O({type:Boolean,reflect:!0,attribute:"has-divider"})],exports.CardSectionHeader.prototype,"hasDivider",2);exports.CardSectionHeader=F6([$a(R6)],exports.CardSectionHeader);var Jk=Object.defineProperty,Qk=Object.getOwnPropertyDescriptor,e$=(n,e,i,o)=>{for(var l=o>1?void 0:o?Qk(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&Jk(e,i,l),l};exports.CardFooter=class extends me{connectedCallback(){super.connectedCallback(),this.slot="footer"}render(){return P`
5271
+ `}};W6([O({type:Boolean,reflect:!0,attribute:"has-divider"})],exports.CardSectionHeader.prototype,"hasDivider",2);exports.CardSectionHeader=W6([$a(Z6)],exports.CardSectionHeader);var t$=Object.defineProperty,r$=Object.getOwnPropertyDescriptor,n$=(n,e,i,o)=>{for(var l=o>1?void 0:o?r$(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&t$(e,i,l),l};exports.CardFooter=class extends me{connectedCallback(){super.connectedCallback(),this.slot="footer"}render(){return P`
5272
5272
  <footer class="card-footer">
5273
5273
  <div>
5274
5274
  <slot></slot>
@@ -5278,7 +5278,7 @@ ${this.value}</textarea
5278
5278
  <slot name="aside"></slot>
5279
5279
  </div>
5280
5280
  </footer>
5281
- `}};exports.CardFooter.styles=[jk];exports.CardFooter=e$([$a(H6)],exports.CardFooter);var t$=Object.defineProperty,r$=Object.getOwnPropertyDescriptor,Wa=(n,e,i,o)=>{for(var l=o>1?void 0:o?r$(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&t$(e,i,l),l};exports.Card=class extends uo{constructor(){super(...arguments),this.hasHeader=!1}updated(e){super.updated(e),this.hasHeader=!!this.header.length&&this.header[0]instanceof exports.CardHeader}render(){return P`
5281
+ `}};exports.CardFooter.styles=[Kk];exports.CardFooter=n$([$a(V6)],exports.CardFooter);var i$=Object.defineProperty,o$=Object.getOwnPropertyDescriptor,Wa=(n,e,i,o)=>{for(var l=o>1?void 0:o?o$(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&i$(e,i,l),l};exports.Card=class extends uo{constructor(){super(...arguments),this.hasHeader=!1}updated(e){super.updated(e),this.hasHeader=!!this.header.length&&this.header[0]instanceof exports.CardHeader}render(){return P`
5282
5282
  <article class="card" part="card">
5283
5283
  <slot name="header"></slot>
5284
5284
 
@@ -5290,7 +5290,7 @@ ${this.value}</textarea
5290
5290
 
5291
5291
  <slot name="footer"></slot>
5292
5292
  </article>
5293
- `}};var O2;exports.Card.styles=[(O2=uo.styles)!=null?O2:[],Vk,Wk];Wa([O({type:Number,reflect:!0})],exports.Card.prototype,"padding",2);Wa([O({type:Number,reflect:!0,attribute:"body-padding"})],exports.Card.prototype,"bodyPadding",2);Wa([pe()],exports.Card.prototype,"hasHeader",2);Wa([cn({slot:"header",flatten:!0})],exports.Card.prototype,"header",2);exports.Card=Wa([$a(D6)],exports.Card);var n$=Object.defineProperty,i$=Object.getOwnPropertyDescriptor,I0=(n,e,i,o)=>{for(var l=o>1?void 0:o?i$(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&n$(e,i,l),l};const B6=ne("paper");exports.Paper=class extends me{constructor(){super(...arguments),this.hasBorder=!1,this.level=1}render(){return P` <div class="container"><slot></slot></div> `}};exports.Paper.styles=j`
5293
+ `}};var A2;exports.Card.styles=[(A2=uo.styles)!=null?A2:[],Uk,Gk];Wa([O({type:Number,reflect:!0})],exports.Card.prototype,"padding",2);Wa([O({type:Number,reflect:!0,attribute:"body-padding"})],exports.Card.prototype,"bodyPadding",2);Wa([pe()],exports.Card.prototype,"hasHeader",2);Wa([cn({slot:"header",flatten:!0})],exports.Card.prototype,"header",2);exports.Card=Wa([$a(F6)],exports.Card);var a$=Object.defineProperty,s$=Object.getOwnPropertyDescriptor,A0=(n,e,i,o)=>{for(var l=o>1?void 0:o?s$(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&a$(e,i,l),l};const U6=ne("paper");exports.Paper=class extends me{constructor(){super(...arguments),this.hasBorder=!1,this.level=1}render(){return P` <div class="container"><slot></slot></div> `}};exports.Paper.styles=j`
5294
5294
  :host {
5295
5295
  display: block;
5296
5296
  position: relative;
@@ -5314,4 +5314,4 @@ ${this.value}</textarea
5314
5314
  :host([has-border]) .container {
5315
5315
  border: 1px solid var(--brz-color-neutral-300);
5316
5316
  }
5317
- `;I0([O({type:Boolean,attribute:"has-border",reflect:!0})],exports.Paper.prototype,"hasBorder",2);I0([O({type:Number,reflect:!0})],exports.Paper.prototype,"level",2);exports.Paper=I0([R(B6)],exports.Paper);var o$=Object.defineProperty,a$=Object.getOwnPropertyDescriptor,ge=(n,e,i,o)=>{for(var l=o>1?void 0:o?a$(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&o$(e,i,l),l};exports.LegacyGlobalStyles=class extends exports.GlobalStyles{};exports.LegacyGlobalStyles=ge([R("sp-global-styles")],exports.LegacyGlobalStyles);exports.LegacyAlert=class extends exports.Alert{};exports.LegacyAlert=ge([R("sp-alert")],exports.LegacyAlert);exports.LegacyAvatar=class extends exports.Avatar{};exports.LegacyAvatar=ge([R("sp-avatar")],exports.LegacyAvatar);exports.LegacyAvatarGroup=class extends exports.AvatarGroup{};exports.LegacyAvatarGroup=ge([R("sp-avatar-group")],exports.LegacyAvatarGroup);exports.LegacyButton=class extends exports.Button{};exports.LegacyButton=ge([R("sp-button")],exports.LegacyButton);exports.LegacyButtonGroup=class extends exports.ButtonGroup{};exports.LegacyButtonGroup=ge([R("sp-button-group")],exports.LegacyButtonGroup);exports.LegacyBadge=class extends exports.Badge{};exports.LegacyBadge=ge([R("sp-badge")],exports.LegacyBadge);exports.LegacyComboBox=class extends exports.ComboBox{};exports.LegacyComboBox=ge([R("sp-combo-box")],exports.LegacyComboBox);exports.LegacyComboBoxOption=class extends exports.ComboBoxOption{};exports.LegacyComboBoxOption=ge([R("sp-combo-box-option")],exports.LegacyComboBoxOption);exports.LegacyConfirmationDialog=class extends exports.ConfirmationDialog{};exports.LegacyConfirmationDialog=ge([R("sp-confirmation-dialog")],exports.LegacyConfirmationDialog);exports.LegacyHeading=class extends exports.Heading{};exports.LegacyHeading=ge([R("sp-heading")],exports.LegacyHeading);exports.LegacyLink=class extends exports.Link{};exports.LegacyLink=ge([R("sp-link")],exports.LegacyLink);exports.LegacyLinkButton=class extends exports.LinkButton{};exports.LegacyLinkButton=ge([R("sp-link-button")],exports.LegacyLinkButton);exports.LegacyLoadingSpinner=class extends exports.LoadingSpinner{};exports.LegacyLoadingSpinner=ge([R("sp-loading-spinner")],exports.LegacyLoadingSpinner);exports.LegacyLozenge=class extends exports.Lozenge{};exports.LegacyLozenge=ge([R("sp-lozenge")],exports.LegacyLozenge);exports.LegacyBasicPagination=class extends exports.BasicPagination{};exports.LegacyBasicPagination=ge([R("sp-basic-pagination")],exports.LegacyBasicPagination);exports.LegacyPagination=class extends exports.Pagination{};exports.LegacyPagination=ge([R("sp-pagination")],exports.LegacyPagination);exports.LegacyPopover=class extends exports.Popover{};exports.LegacyPopover=ge([R("sp-popover")],exports.LegacyPopover);exports.LegacyPurePopover=class extends exports.PurePopover{};exports.LegacyPurePopover=ge([R("sp-pure-popover")],exports.LegacyPurePopover);exports.LegacyRecordRow=class extends exports.RecordRow{};exports.LegacyRecordRow=ge([R("sp-record-row")],exports.LegacyRecordRow);exports.LegacyRecordRowLabel=class extends exports.RecordRowLabel{};exports.LegacyRecordRowLabel=ge([R("sp-record-row-label")],exports.LegacyRecordRowLabel);exports.LegacyTooltip=class extends exports.Tooltip{};exports.LegacyTooltip=ge([R("sp-tooltip")],exports.LegacyTooltip);exports.LegacyVirtualList=class extends exports.VirtualList{};exports.LegacyVirtualList=ge([R("sp-virtual-list")],exports.LegacyVirtualList);exports.LegacyFadeInOut=class extends exports.FadeInOut{};exports.LegacyFadeInOut=ge([R("sp-fade-in-out")],exports.LegacyFadeInOut);exports.LegacyPaper=class extends exports.Paper{};exports.LegacyPaper=ge([R("sp-paper")],exports.LegacyPaper);exports.LegacyRow=class extends exports.Row{};exports.LegacyRow=ge([R("sp-row")],exports.LegacyRow);exports.LegacyColumn=class extends exports.Column{};exports.LegacyColumn=ge([R("sp-column")],exports.LegacyColumn);exports.LegacyFooter=class extends exports.Footer{};exports.LegacyFooter=ge([R("sp-footer")],exports.LegacyFooter);exports.LegacyHeaderFooterPage=class extends exports.HeaderFooterPage{};exports.LegacyHeaderFooterPage=ge([R("sp-header-footer-page")],exports.LegacyHeaderFooterPage);exports.LegacyHeader=class extends exports.Header{};exports.LegacyHeader=ge([R("sp-header")],exports.LegacyHeader);exports.LegacyResponsiveColumns=class extends exports.ResponsiveColumns{};exports.LegacyResponsiveColumns=ge([R("sp-responsive-columns")],exports.LegacyResponsiveColumns);exports.LegacySplitRow=class extends exports.SplitRow{};exports.LegacySplitRow=ge([R("sp-split-row")],exports.LegacySplitRow);exports.LegacyActionBar=class extends exports.ActionBar{};exports.LegacyActionBar=ge([R("sp-action-bar")],exports.LegacyActionBar);exports.LegacyIllustration=class extends exports.Illustration{};exports.LegacyIllustration=ge([R("sp-illustration")],exports.LegacyIllustration);exports.LegacyIcon=class extends exports.Icon{};exports.LegacyIcon=ge([R("sp-icon")],exports.LegacyIcon);exports.LegacyModalHeader=class extends exports.ModalHeader{};exports.LegacyModalHeader=ge([R("sp-modal-header")],exports.LegacyModalHeader);exports.LegacyModalBody=class extends exports.ModalBody{};exports.LegacyModalBody=ge([R("sp-modal-body")],exports.LegacyModalBody);exports.LegacyModalFooter=class extends exports.ModalFooter{};exports.LegacyModalFooter=ge([R("sp-modal-footer")],exports.LegacyModalFooter);exports.LegacyModal=class extends exports.Modal{};exports.LegacyModal=ge([R("sp-modal")],exports.LegacyModal);exports.LegacySideNavigationItem=class extends exports.SideNavigationItem{};exports.LegacySideNavigationItem=ge([R("sp-side-navigation-item")],exports.LegacySideNavigationItem);exports.LegacySideNavigation=class extends exports.SideNavigation{};exports.LegacySideNavigation=ge([R("sp-side-navigation")],exports.LegacySideNavigation);exports.LegacyTabs=class extends exports.Tabs{};exports.LegacyTabs=ge([R("sp-tabs")],exports.LegacyTabs);exports.LegacyTabPanel=class extends exports.TabPanel{};exports.LegacyTabPanel=ge([R("sp-tab-panel")],exports.LegacyTabPanel);exports.LegacyTabBar=class extends exports.TabBar{};exports.LegacyTabBar=ge([R("sp-tab-bar")],exports.LegacyTabBar);exports.LegacyTab=class extends exports.Tab{};exports.LegacyTab=ge([R("sp-tab")],exports.LegacyTab);exports.LegacyInputCheckbox=class extends exports.InputCheckbox{};exports.LegacyInputCheckbox=ge([R("sp-input-checkbox")],exports.LegacyInputCheckbox);exports.LegacyInputCode=class extends exports.InputCode{};exports.LegacyInputCode=ge([R("sp-input-code")],exports.LegacyInputCode);exports.LegacyInputError=class extends exports.InputError{};exports.LegacyInputError=ge([R("sp-input-error")],exports.LegacyInputError);exports.LegacyInputGuide=class extends el{};exports.LegacyInputGuide=ge([R("sp-input-guide")],exports.LegacyInputGuide);exports.LegacyInputMultiselect=class extends exports.InputMultiselect{};exports.LegacyInputMultiselect=ge([R("sp-input-multiselect")],exports.LegacyInputMultiselect);exports.LegacyInputNumber=class extends exports.InputNumber{};exports.LegacyInputNumber=ge([R("sp-input-number")],exports.LegacyInputNumber);exports.LegacyInputRadio=class extends exports.InputRadio{};exports.LegacyInputRadio=ge([R("sp-input-radio-group")],exports.LegacyInputRadio);exports.LegacyInputRadioOption=class extends exports.InputRadioOption{};exports.LegacyInputRadioOption=ge([R("sp-input-radio-option")],exports.LegacyInputRadioOption);exports.LegacyMenu=class extends exports.Menu{};exports.LegacyMenu=ge([R("sp-menu")],exports.LegacyMenu);exports.LegacyMenuItem=class extends exports.MenuItem{};exports.LegacyMenuItem=ge([R("sp-menu-item")],exports.LegacyMenuItem);exports.LegacyInputSelect=class extends exports.InputSelect{};exports.LegacyInputSelect=ge([R("sp-input-select")],exports.LegacyInputSelect);exports.LegacyInputText=class extends exports.InputText{};exports.LegacyInputText=ge([R("sp-input-text")],exports.LegacyInputText);exports.LegacyInputTextarea=class extends exports.InputTextarea{};exports.LegacyInputTextarea=ge([R("sp-input-textarea")],exports.LegacyInputTextarea);exports.LegacyInputTime=class extends exports.InputTime{};exports.LegacyInputTime=ge([R("sp-input-time")],exports.LegacyInputTime);exports.LegacyInputLabel=class extends exports.InputLabel{};exports.LegacyInputLabel=ge([R("sp-input-label")],exports.LegacyInputLabel);exports.LegacyLabeledInput=class extends exports.LabeledInput{};exports.LegacyLabeledInput=ge([R("sp-labeled-input")],exports.LegacyLabeledInput);const Fc="a",V6="ccc d LLL",Z6="ccc LLL d",W6="ZZZZ",U6=ne("date-time-range");var s$=Object.defineProperty,l$=Object.getOwnPropertyDescriptor,zo=(n,e,i,o)=>{for(var l=o>1?void 0:o?l$(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&s$(e,i,l),l};const S2=(n,e)=>{const{dateFormat:i,year:o,minutes:l,ampm:d,timezone:u=""}=e,m=`${i?`${i}${o}, `:""}${l}${d}${u}`;return n.toFormat(m)},M2=n=>n.minute===0?"h":"h:mm",T2=(n,e)=>n.year!==e.year?" yyyy":"";exports.DateTimeRange=class extends me{constructor(){super(...arguments),this.hideTimezone=!1,this.dateFormat="MonthDayYear"}generateContent(){if(!this.start||!this.end)return"No date and time set";const e=w2(Te.fromISO(this.start),this.timezone),i=w2(Te.fromISO(this.end),this.timezone),o=this.dateFormat==="DayMonthYear"?V6:Z6,l={minutes:M2(e),year:T2(e,i),dateFormat:o,ampm:e.hasSame(i,"day")&&BM(e,i)?"":Fc},d={minutes:M2(i),year:T2(i,e),dateFormat:e.hasSame(i,"day")?"":o,ampm:Fc,timezone:this.hideTimezone?"":` (${W6})`},u=x2(S2(e,l)),v=x2(S2(i,d));return`${u} - ${v}`}render(){return P`<span>${this.generateContent()}</span>`}};zo([O({type:String})],exports.DateTimeRange.prototype,"start",2);zo([O({type:String})],exports.DateTimeRange.prototype,"end",2);zo([O({type:String})],exports.DateTimeRange.prototype,"timezone",2);zo([O({attribute:"hide-timezone",type:Boolean})],exports.DateTimeRange.prototype,"hideTimezone",2);zo([O({attribute:"date-format",type:String})],exports.DateTimeRange.prototype,"dateFormat",2);exports.DateTimeRange=zo([R(U6)],exports.DateTimeRange);exports.ACTION_BAR=xp;exports.ALERT=S6;exports.AM_PM_FORMAT=Fc;exports.AVATAR=bf;exports.AVATAR_GROUP=mf;exports.AlertEvent=M6;exports.AvatarSize=Ys;exports.AvatarTheme=yf;exports.BADGE=y6;exports.BADGE_CHARACTER_LIMIT_DEFAULT=w6;exports.BADGE_NUMBER_LIMIT_DEFAULT=x6;exports.BASIC_PAGINATION=O0;exports.BUTTON=i0;exports.BUTTON_GROUP=$f;exports.BadgeTheme=C6;exports.BasicPaginationEvent=z6;exports.ButtonEvent=Of;exports.CARD=D6;exports.CARD_FOOTER=H6;exports.CARD_HEADER=N6;exports.CARD_SECTION_HEADER=R6;exports.COLUMN=Mf;exports.COMBO_BOX=hp;exports.COMBO_BOX_OPTION=fp;exports.CONFIRMATION_DIALOG=Tp;exports.ConfirmationDialogCancel=kp;exports.ConfirmationDialogConfirm=$p;exports.DATE_TIME_RANGE=U6;exports.DAY_MONTH_YEAR_FORMAT=V6;exports.DROPDOWN_BUTTON=Op;exports.DROPDOWN_MENU=Ef;exports.DeleteLozengeEvent=Zp;exports.FADE_IN_OUT=X2;exports.FOOTER=E6;exports.GLOBAL_STYLES=P6;exports.GRID=I6;exports.GRID_ITEM=A6;exports.HEADER=k6;exports.HEADER_FOOTER_PAGE=$6;exports.HEADING=Q5;exports.ICON=xf;exports.ILLUSTRATION=T6;exports.INLINE_EDIT_CONTROLS=t6;exports.INLINE_EDIT_FIELD=e6;exports.INLINE_EDIT_GROUP=S0;exports.INPUT_CHECKBOX=Ep;exports.INPUT_CODE=Fp;exports.INPUT_ERROR=ip;exports.INPUT_LABEL=ap;exports.INPUT_MULTISELECT=Wp;exports.INPUT_NUMBER=Ap;exports.INPUT_RADIO_GROUP=Np;exports.INPUT_RADIO_OPTION=Hp;exports.INPUT_SELECT=Bp;exports.INPUT_TEXT=_p;exports.INPUT_TEXTAREA=Ip;exports.INPUT_TIME=j5;exports.InlineEditControlsCancelEvent=n6;exports.InlineEditControlsSaveEvent=i6;exports.InlineEditFieldBroadcastEvent=o6;exports.InlineEditFieldModeChangeEvent=a6;exports.InlineEditGroupModeChangeEvent=s6;exports.InputBase=Jt;exports.InputSelectBase=vt;exports.InputSelectQueryChangeEvent=g0;exports.LABELED_INPUT=op;exports.LINK=zf;exports.LINK_BUTTON=Lf;exports.LOADING_SPINNER=kf;exports.LOZENGE=Vp;exports.MENU=lp;exports.MENU_ITEM=tl;exports.MODAL=Cp;exports.MODAL_BODY=Lp;exports.MODAL_FOOTER=Sp;exports.MODAL_HEADER=zp;exports.MONTH_DAY_YEAR_FORMAT=Z6;exports.MenuBlurEvent=cp;exports.MenuItemSelectEvent=sp;exports.MenuSelectEvent=up;exports.ModalCloseEvent=v0;exports.PAGE_HEADER=_6;exports.PAGINATION=E0;exports.PAPER=B6;exports.POPOVER=Jc;exports.POPOVER_LISTENABLE_EVENT_TYPES=Ks;exports.POPOVER_ROLES=Qc;exports.POPOVER_TRIGGERS=ff;exports.PURE_POPOVER=hf;exports.PaginationEvent=L6;exports.PopoverEvent=pf;exports.RECORD_FIELD=rp;exports.RECORD_FIELD_LABEL=np;exports.RECORD_ROW=h6;exports.RECORD_ROW_LABEL=f6;exports.RESPONSIVE_COLUMNS=O6;exports.ROW=Sf;exports.SEARCH_MESSAGE_ID=Ma;exports.SELECT_ALL_ID=Mr;exports.SIDE_NAVIGATION=u6;exports.SIDE_NAVIGATION_ITEM=c6;exports.SPACING_BASE=e0;exports.SPLIT_ROW=wp;exports.TAB=v6;exports.TABS=m6;exports.TAB_BAR=b6;exports.TAB_PANEL=p6;exports.TIMEZONE_FORMAT=W6;exports.TIME_FORMAT=G5;exports.TIME_REGEX_12H=Y5;exports.TIME_REGEX_24H=K5;exports.TIME_REGEX_LOOSE=q5;exports.TOGGLE_SWITCH=J5;exports.TOOLTIP=gf;exports.TabDeselectedEvent=g6;exports.TabSelectedEvent=Rl;exports.TooltipTheme=vf;exports.VIRTUAL_LIST=f0;exports.VirtualListUpdateEvent=tp;exports.alertTypes=ok;exports.buttonTypes=D9;exports.click=qs;exports.columnSpans=ql;exports.dropdownMenuSizes=F9;exports.focus=li;exports.hover=Lc;exports.iconNames=w9;exports.icons=t0;exports.illustrationNames=ak;exports.illustrations=_0;exports.inlineEditControlsModes=r6;exports.inlineEditModes=eT;exports.inputSizes=Wx;exports.labelPositions=Ux;exports.linkButtonElementTypes=M9;exports.linkTypes=$9;exports.lozengeColors=NL;exports.lozengeSizes=RL;exports.lozengeThemes=HL;exports.modalSizes=Xz;exports.radioLayouts=wL;exports.resetLinkStyle=n0;exports.spacing=Cf;exports.spacingLevels=Ea;exports.syntaxes=EL;exports.timeSuffixes=UM;exports.transformIcon=wf;
5317
+ `;A0([O({type:Boolean,attribute:"has-border",reflect:!0})],exports.Paper.prototype,"hasBorder",2);A0([O({type:Number,reflect:!0})],exports.Paper.prototype,"level",2);exports.Paper=A0([R(U6)],exports.Paper);var l$=Object.defineProperty,c$=Object.getOwnPropertyDescriptor,ge=(n,e,i,o)=>{for(var l=o>1?void 0:o?c$(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&l$(e,i,l),l};exports.LegacyGlobalStyles=class extends exports.GlobalStyles{};exports.LegacyGlobalStyles=ge([R("sp-global-styles")],exports.LegacyGlobalStyles);exports.LegacyAlert=class extends exports.Alert{};exports.LegacyAlert=ge([R("sp-alert")],exports.LegacyAlert);exports.LegacyAvatar=class extends exports.Avatar{};exports.LegacyAvatar=ge([R("sp-avatar")],exports.LegacyAvatar);exports.LegacyAvatarGroup=class extends exports.AvatarGroup{};exports.LegacyAvatarGroup=ge([R("sp-avatar-group")],exports.LegacyAvatarGroup);exports.LegacyButton=class extends exports.Button{};exports.LegacyButton=ge([R("sp-button")],exports.LegacyButton);exports.LegacyButtonGroup=class extends exports.ButtonGroup{};exports.LegacyButtonGroup=ge([R("sp-button-group")],exports.LegacyButtonGroup);exports.LegacyBadge=class extends exports.Badge{};exports.LegacyBadge=ge([R("sp-badge")],exports.LegacyBadge);exports.LegacyComboBox=class extends exports.ComboBox{};exports.LegacyComboBox=ge([R("sp-combo-box")],exports.LegacyComboBox);exports.LegacyComboBoxOption=class extends exports.ComboBoxOption{};exports.LegacyComboBoxOption=ge([R("sp-combo-box-option")],exports.LegacyComboBoxOption);exports.LegacyConfirmationDialog=class extends exports.ConfirmationDialog{};exports.LegacyConfirmationDialog=ge([R("sp-confirmation-dialog")],exports.LegacyConfirmationDialog);exports.LegacyHeading=class extends exports.Heading{};exports.LegacyHeading=ge([R("sp-heading")],exports.LegacyHeading);exports.LegacyLink=class extends exports.Link{};exports.LegacyLink=ge([R("sp-link")],exports.LegacyLink);exports.LegacyLinkButton=class extends exports.LinkButton{};exports.LegacyLinkButton=ge([R("sp-link-button")],exports.LegacyLinkButton);exports.LegacyLoadingSpinner=class extends exports.LoadingSpinner{};exports.LegacyLoadingSpinner=ge([R("sp-loading-spinner")],exports.LegacyLoadingSpinner);exports.LegacyLozenge=class extends exports.Lozenge{};exports.LegacyLozenge=ge([R("sp-lozenge")],exports.LegacyLozenge);exports.LegacyBasicPagination=class extends exports.BasicPagination{};exports.LegacyBasicPagination=ge([R("sp-basic-pagination")],exports.LegacyBasicPagination);exports.LegacyPagination=class extends exports.Pagination{};exports.LegacyPagination=ge([R("sp-pagination")],exports.LegacyPagination);exports.LegacyPopover=class extends exports.Popover{};exports.LegacyPopover=ge([R("sp-popover")],exports.LegacyPopover);exports.LegacyPurePopover=class extends exports.PurePopover{};exports.LegacyPurePopover=ge([R("sp-pure-popover")],exports.LegacyPurePopover);exports.LegacyRecordRow=class extends exports.RecordRow{};exports.LegacyRecordRow=ge([R("sp-record-row")],exports.LegacyRecordRow);exports.LegacyRecordRowLabel=class extends exports.RecordRowLabel{};exports.LegacyRecordRowLabel=ge([R("sp-record-row-label")],exports.LegacyRecordRowLabel);exports.LegacyTooltip=class extends exports.Tooltip{};exports.LegacyTooltip=ge([R("sp-tooltip")],exports.LegacyTooltip);exports.LegacyVirtualList=class extends exports.VirtualList{};exports.LegacyVirtualList=ge([R("sp-virtual-list")],exports.LegacyVirtualList);exports.LegacyFadeInOut=class extends exports.FadeInOut{};exports.LegacyFadeInOut=ge([R("sp-fade-in-out")],exports.LegacyFadeInOut);exports.LegacyPaper=class extends exports.Paper{};exports.LegacyPaper=ge([R("sp-paper")],exports.LegacyPaper);exports.LegacyRow=class extends exports.Row{};exports.LegacyRow=ge([R("sp-row")],exports.LegacyRow);exports.LegacyColumn=class extends exports.Column{};exports.LegacyColumn=ge([R("sp-column")],exports.LegacyColumn);exports.LegacyFooter=class extends exports.Footer{};exports.LegacyFooter=ge([R("sp-footer")],exports.LegacyFooter);exports.LegacyHeaderFooterPage=class extends exports.HeaderFooterPage{};exports.LegacyHeaderFooterPage=ge([R("sp-header-footer-page")],exports.LegacyHeaderFooterPage);exports.LegacyHeader=class extends exports.Header{};exports.LegacyHeader=ge([R("sp-header")],exports.LegacyHeader);exports.LegacyResponsiveColumns=class extends exports.ResponsiveColumns{};exports.LegacyResponsiveColumns=ge([R("sp-responsive-columns")],exports.LegacyResponsiveColumns);exports.LegacySplitRow=class extends exports.SplitRow{};exports.LegacySplitRow=ge([R("sp-split-row")],exports.LegacySplitRow);exports.LegacyActionBar=class extends exports.ActionBar{};exports.LegacyActionBar=ge([R("sp-action-bar")],exports.LegacyActionBar);exports.LegacyIllustration=class extends exports.Illustration{};exports.LegacyIllustration=ge([R("sp-illustration")],exports.LegacyIllustration);exports.LegacyIcon=class extends exports.Icon{};exports.LegacyIcon=ge([R("sp-icon")],exports.LegacyIcon);exports.LegacyModalHeader=class extends exports.ModalHeader{};exports.LegacyModalHeader=ge([R("sp-modal-header")],exports.LegacyModalHeader);exports.LegacyModalBody=class extends exports.ModalBody{};exports.LegacyModalBody=ge([R("sp-modal-body")],exports.LegacyModalBody);exports.LegacyModalFooter=class extends exports.ModalFooter{};exports.LegacyModalFooter=ge([R("sp-modal-footer")],exports.LegacyModalFooter);exports.LegacyModal=class extends exports.Modal{};exports.LegacyModal=ge([R("sp-modal")],exports.LegacyModal);exports.LegacySideNavigationItem=class extends exports.SideNavigationItem{};exports.LegacySideNavigationItem=ge([R("sp-side-navigation-item")],exports.LegacySideNavigationItem);exports.LegacySideNavigation=class extends exports.SideNavigation{};exports.LegacySideNavigation=ge([R("sp-side-navigation")],exports.LegacySideNavigation);exports.LegacyTabs=class extends exports.Tabs{};exports.LegacyTabs=ge([R("sp-tabs")],exports.LegacyTabs);exports.LegacyTabPanel=class extends exports.TabPanel{};exports.LegacyTabPanel=ge([R("sp-tab-panel")],exports.LegacyTabPanel);exports.LegacyTabBar=class extends exports.TabBar{};exports.LegacyTabBar=ge([R("sp-tab-bar")],exports.LegacyTabBar);exports.LegacyTab=class extends exports.Tab{};exports.LegacyTab=ge([R("sp-tab")],exports.LegacyTab);exports.LegacyInputCheckbox=class extends exports.InputCheckbox{};exports.LegacyInputCheckbox=ge([R("sp-input-checkbox")],exports.LegacyInputCheckbox);exports.LegacyInputCode=class extends exports.InputCode{};exports.LegacyInputCode=ge([R("sp-input-code")],exports.LegacyInputCode);exports.LegacyInputError=class extends exports.InputError{};exports.LegacyInputError=ge([R("sp-input-error")],exports.LegacyInputError);exports.LegacyInputGuide=class extends el{};exports.LegacyInputGuide=ge([R("sp-input-guide")],exports.LegacyInputGuide);exports.LegacyInputMultiselect=class extends exports.InputMultiselect{};exports.LegacyInputMultiselect=ge([R("sp-input-multiselect")],exports.LegacyInputMultiselect);exports.LegacyInputNumber=class extends exports.InputNumber{};exports.LegacyInputNumber=ge([R("sp-input-number")],exports.LegacyInputNumber);exports.LegacyInputRadio=class extends exports.InputRadio{};exports.LegacyInputRadio=ge([R("sp-input-radio-group")],exports.LegacyInputRadio);exports.LegacyInputRadioOption=class extends exports.InputRadioOption{};exports.LegacyInputRadioOption=ge([R("sp-input-radio-option")],exports.LegacyInputRadioOption);exports.LegacyMenu=class extends exports.Menu{};exports.LegacyMenu=ge([R("sp-menu")],exports.LegacyMenu);exports.LegacyMenuItem=class extends exports.MenuItem{};exports.LegacyMenuItem=ge([R("sp-menu-item")],exports.LegacyMenuItem);exports.LegacyInputSelect=class extends exports.InputSelect{};exports.LegacyInputSelect=ge([R("sp-input-select")],exports.LegacyInputSelect);exports.LegacyInputText=class extends exports.InputText{};exports.LegacyInputText=ge([R("sp-input-text")],exports.LegacyInputText);exports.LegacyInputTextarea=class extends exports.InputTextarea{};exports.LegacyInputTextarea=ge([R("sp-input-textarea")],exports.LegacyInputTextarea);exports.LegacyInputTime=class extends exports.InputTime{};exports.LegacyInputTime=ge([R("sp-input-time")],exports.LegacyInputTime);exports.LegacyInputLabel=class extends exports.InputLabel{};exports.LegacyInputLabel=ge([R("sp-input-label")],exports.LegacyInputLabel);exports.LegacyLabeledInput=class extends exports.LabeledInput{};exports.LegacyLabeledInput=ge([R("sp-labeled-input")],exports.LegacyLabeledInput);const Bc="a",j6="ccc d LLL",G6="ccc LLL d",q6="ZZZZ",K6=ne("date-time-range");var u$=Object.defineProperty,d$=Object.getOwnPropertyDescriptor,zo=(n,e,i,o)=>{for(var l=o>1?void 0:o?d$(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&u$(e,i,l),l};const $2=(n,e)=>{const{dateFormat:i,year:o,minutes:l,ampm:d,timezone:u=""}=e,m=`${i?`${i}${o}, `:""}${l}${d}${u}`;return n.toFormat(m)},O2=n=>n.minute===0?"h":"h:mm",E2=(n,e)=>n.year!==e.year?" yyyy":"";exports.DateTimeRange=class extends me{constructor(){super(...arguments),this.hideTimezone=!1,this.dateFormat="MonthDayYear"}generateContent(){if(!this.start||!this.end)return"No date and time set";const e=S2(Te.fromISO(this.start),this.timezone),i=S2(Te.fromISO(this.end),this.timezone),o=this.dateFormat==="DayMonthYear"?j6:G6,l={minutes:O2(e),year:E2(e,i),dateFormat:o,ampm:e.hasSame(i,"day")&&WM(e,i)?"":Bc},d={minutes:O2(i),year:E2(i,e),dateFormat:e.hasSame(i,"day")?"":o,ampm:Bc,timezone:this.hideTimezone?"":` (${q6})`},u=M2($2(e,l)),v=M2($2(i,d));return`${u} - ${v}`}render(){return P`<span>${this.generateContent()}</span>`}};zo([O({type:String})],exports.DateTimeRange.prototype,"start",2);zo([O({type:String})],exports.DateTimeRange.prototype,"end",2);zo([O({type:String})],exports.DateTimeRange.prototype,"timezone",2);zo([O({attribute:"hide-timezone",type:Boolean})],exports.DateTimeRange.prototype,"hideTimezone",2);zo([O({attribute:"date-format",type:String})],exports.DateTimeRange.prototype,"dateFormat",2);exports.DateTimeRange=zo([R(K6)],exports.DateTimeRange);exports.ACTION_BAR=Mp;exports.ALERT=$6;exports.AM_PM_FORMAT=Bc;exports.AVATAR=wf;exports.AVATAR_GROUP=xf;exports.AlertEvent=O6;exports.AvatarSize=Ys;exports.AvatarTheme=zf;exports.BADGE=z6;exports.BADGE_CHARACTER_LIMIT_DEFAULT=S6;exports.BADGE_NUMBER_LIMIT_DEFAULT=M6;exports.BASIC_PAGINATION=E0;exports.BUTTON=o0;exports.BUTTON_GROUP=If;exports.BadgeTheme=L6;exports.BasicPaginationEvent=T6;exports.ButtonEvent=Af;exports.CARD=F6;exports.CARD_FOOTER=V6;exports.CARD_HEADER=B6;exports.CARD_SECTION_HEADER=Z6;exports.COLUMN=Of;exports.COMBO_BOX=vp;exports.COMBO_BOX_OPTION=bp;exports.CONFIRMATION_DIALOG=Ep;exports.ConfirmationDialogCancel=_p;exports.ConfirmationDialogConfirm=Ip;exports.DATE_TIME_RANGE=K6;exports.DAY_MONTH_YEAR_FORMAT=j6;exports.DROPDOWN_BUTTON=Ap;exports.DROPDOWN_MENU=Pf;exports.DeleteLozengeEvent=Gp;exports.FADE_IN_OUT=tf;exports.FOOTER=P6;exports.GLOBAL_STYLES=R6;exports.GRID=N6;exports.GRID_ITEM=H6;exports.HEADER=_6;exports.HEADER_FOOTER_PAGE=I6;exports.HEADING=n6;exports.ICON=Mf;exports.ILLUSTRATION=E6;exports.INLINE_EDIT_CONTROLS=o6;exports.INLINE_EDIT_FIELD=i6;exports.INLINE_EDIT_GROUP=M0;exports.INPUT_CHECKBOX=Pp;exports.INPUT_CODE=Wp;exports.INPUT_ERROR=lp;exports.INPUT_LABEL=up;exports.INPUT_MULTISELECT=qp;exports.INPUT_NUMBER=Hp;exports.INPUT_RADIO_GROUP=Bp;exports.INPUT_RADIO_OPTION=Vp;exports.INPUT_SELECT=Up;exports.INPUT_TEXT=Dp;exports.INPUT_TEXTAREA=Np;exports.INPUT_TIME=Y5;exports.InlineEditControlsCancelEvent=s6;exports.InlineEditControlsSaveEvent=l6;exports.InlineEditFieldBroadcastEvent=c6;exports.InlineEditFieldModeChangeEvent=u6;exports.InlineEditGroupModeChangeEvent=d6;exports.InputBase=Jt;exports.InputSelectBase=vt;exports.InputSelectQueryChangeEvent=v0;exports.LABELED_INPUT=cp;exports.LINK=Tf;exports.LINK_BUTTON=kf;exports.LOADING_SPINNER=_f;exports.LOZENGE=jp;exports.MENU=hp;exports.MENU_ITEM=tl;exports.MODAL=Lp;exports.MODAL_BODY=kp;exports.MODAL_FOOTER=$p;exports.MODAL_HEADER=Tp;exports.MONTH_DAY_YEAR_FORMAT=G6;exports.MenuBlurEvent=fp;exports.MenuItemSelectEvent=dp;exports.MenuSelectEvent=pp;exports.ModalCloseEvent=b0;exports.PAGE_HEADER=D6;exports.PAGINATION=_0;exports.PAPER=U6;exports.POPOVER=Qc;exports.POPOVER_LISTENABLE_EVENT_TYPES=Ks;exports.POPOVER_ROLES=e0;exports.POPOVER_TRIGGERS=bf;exports.PURE_POPOVER=vf;exports.PaginationEvent=k6;exports.PopoverEvent=mf;exports.RECORD_FIELD=ap;exports.RECORD_FIELD_LABEL=sp;exports.RECORD_ROW=v6;exports.RECORD_ROW_LABEL=b6;exports.RESPONSIVE_COLUMNS=A6;exports.ROW=$f;exports.SEARCH_MESSAGE_ID=Ma;exports.SELECT_ALL_ID=Mr;exports.SIDE_NAVIGATION=p6;exports.SIDE_NAVIGATION_ITEM=f6;exports.SPACING_BASE=t0;exports.SPLIT_ROW=Sp;exports.TAB=C6;exports.TABS=x6;exports.TAB_BAR=w6;exports.TAB_PANEL=m6;exports.TIMEZONE_FORMAT=q6;exports.TIME_FORMAT=X5;exports.TIME_REGEX_12H=e6;exports.TIME_REGEX_24H=Q5;exports.TIME_REGEX_LOOSE=J5;exports.TOGGLE_SWITCH=r6;exports.TOOLTIP=yf;exports.TabDeselectedEvent=y6;exports.TabSelectedEvent=Rl;exports.TooltipTheme=Cf;exports.VIRTUAL_LIST=p0;exports.VirtualListUpdateEvent=op;exports.alertTypes=lk;exports.buttonTypes=F9;exports.click=qs;exports.columnSpans=ql;exports.dropdownMenuSizes=W9;exports.focus=li;exports.hover=Sc;exports.iconNames=S9;exports.icons=r0;exports.illustrationNames=ck;exports.illustrations=I0;exports.inlineEditControlsModes=a6;exports.inlineEditModes=nT;exports.inputSizes=qx;exports.labelPositions=Kx;exports.linkButtonElementTypes=O9;exports.linkTypes=I9;exports.lozengeColors=FL;exports.lozengeSizes=VL;exports.lozengeThemes=BL;exports.modalSizes=tL;exports.radioLayouts=SL;exports.resetLinkStyle=i0;exports.spacing=Lf;exports.spacingLevels=Ea;exports.syntaxes=AL;exports.timeSuffixes=qM;exports.transformIcon=Sf;