@skedulo/breeze-ui 1.22.6 → 1.22.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,67 +2,67 @@
2
2
  * @license
3
3
  * Copyright 2019 Google LLC
4
4
  * SPDX-License-Identifier: BSD-3-Clause
5
- */const Da=window,Uc=Da.ShadowRoot&&(Da.ShadyCSS===void 0||Da.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Df=Symbol(),Hd=new WeakMap;let q3=class{constructor(e,n,o){if(this._$cssResult$=!0,o!==Df)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=n}get styleSheet(){let e=this.o;const n=this.t;if(Uc&&e===void 0){const o=n!==void 0&&n.length===1;o&&(e=Hd.get(n)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),o&&Hd.set(n,e))}return e}toString(){return this.cssText}};const K3=i=>new q3(typeof i=="string"?i:i+"",void 0,Df),Y3=(i,e)=>{Uc?i.adoptedStyleSheets=e.map(n=>n instanceof CSSStyleSheet?n:n.styleSheet):e.forEach(n=>{const o=document.createElement("style"),l=Da.litNonce;l!==void 0&&o.setAttribute("nonce",l),o.textContent=n.cssText,i.appendChild(o)})},Rd=Uc?i=>i:i=>i instanceof CSSStyleSheet?(e=>{let n="";for(const o of e.cssRules)n+=o.cssText;return K3(n)})(i):i;/**
5
+ */const Da=window,Uc=Da.ShadowRoot&&(Da.ShadyCSS===void 0||Da.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Df=Symbol(),Hd=new WeakMap;let q3=class{constructor(e,i,o){if(this._$cssResult$=!0,o!==Df)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=Hd.get(i)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),o&&Hd.set(i,e))}return e}toString(){return this.cssText}};const K3=n=>new q3(typeof n=="string"?n:n+"",void 0,Df),Y3=(n,e)=>{Uc?n.adoptedStyleSheets=e.map(i=>i instanceof CSSStyleSheet?i:i.styleSheet):e.forEach(i=>{const o=document.createElement("style"),l=Da.litNonce;l!==void 0&&o.setAttribute("nonce",l),o.textContent=i.cssText,n.appendChild(o)})},Rd=Uc?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 U1;const Fa=window,Fd=Fa.trustedTypes,X3=Fd?Fd.emptyScript:"",Bd=Fa.reactiveElementPolyfillSupport,yc={toAttribute(i,e){switch(e){case Boolean:i=i?X3:null;break;case Object:case Array:i=i==null?i:JSON.stringify(i)}return i},fromAttribute(i,e){let n=i;switch(e){case Boolean:n=i!==null;break;case Number:n=i===null?null:Number(i);break;case Object:case Array:try{n=JSON.parse(i)}catch{n=null}}return n}},Nf=(i,e)=>e!==i&&(e==e||i==i),j1={attribute:!0,type:String,converter:yc,reflect:!1,hasChanged:Nf},Cc="finalized";let ss=class extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this.u()}static addInitializer(e){var n;this.finalize(),((n=this.h)!==null&&n!==void 0?n:this.h=[]).push(e)}static get observedAttributes(){this.finalize();const e=[];return this.elementProperties.forEach((n,o)=>{const l=this._$Ep(o,n);l!==void 0&&(this._$Ev.set(l,o),e.push(l))}),e}static createProperty(e,n=j1){if(n.state&&(n.attribute=!1),this.finalize(),this.elementProperties.set(e,n),!n.noAccessor&&!this.prototype.hasOwnProperty(e)){const o=typeof e=="symbol"?Symbol():"__"+e,l=this.getPropertyDescriptor(e,o,n);l!==void 0&&Object.defineProperty(this.prototype,e,l)}}static getPropertyDescriptor(e,n,o){return{get(){return this[n]},set(l){const d=this[e];this[n]=l,this.requestUpdate(e,d,o)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)||j1}static finalize(){if(this.hasOwnProperty(Cc))return!1;this[Cc]=!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 n=this.properties,o=[...Object.getOwnPropertyNames(n),...Object.getOwnPropertySymbols(n)];for(const l of o)this.createProperty(l,n[l])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(e){const n=[];if(Array.isArray(e)){const o=new Set(e.flat(1/0).reverse());for(const l of o)n.unshift(Rd(l))}else e!==void 0&&n.push(Rd(e));return n}static _$Ep(e,n){const o=n.attribute;return o===!1?void 0:typeof o=="string"?o:typeof e=="string"?e.toLowerCase():void 0}u(){var e;this._$E_=new Promise(n=>this.enableUpdating=n),this._$AL=new Map,this._$Eg(),this.requestUpdate(),(e=this.constructor.h)===null||e===void 0||e.forEach(n=>n(this))}addController(e){var n,o;((n=this._$ES)!==null&&n!==void 0?n:this._$ES=[]).push(e),this.renderRoot!==void 0&&this.isConnected&&((o=e.hostConnected)===null||o===void 0||o.call(e))}removeController(e){var n;(n=this._$ES)===null||n===void 0||n.splice(this._$ES.indexOf(e)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach((e,n)=>{this.hasOwnProperty(n)&&(this._$Ei.set(n,this[n]),delete this[n])})}createRenderRoot(){var e;const n=(e=this.shadowRoot)!==null&&e!==void 0?e:this.attachShadow(this.constructor.shadowRootOptions);return Y3(n,this.constructor.elementStyles),n}connectedCallback(){var e;this.renderRoot===void 0&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(e=this._$ES)===null||e===void 0||e.forEach(n=>{var o;return(o=n.hostConnected)===null||o===void 0?void 0:o.call(n)})}enableUpdating(e){}disconnectedCallback(){var e;(e=this._$ES)===null||e===void 0||e.forEach(n=>{var o;return(o=n.hostDisconnected)===null||o===void 0?void 0:o.call(n)})}attributeChangedCallback(e,n,o){this._$AK(e,o)}_$EO(e,n,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:yc).toAttribute(n,o.type);this._$El=e,u==null?this.removeAttribute(d):this.setAttribute(d,u),this._$El=null}}_$AK(e,n){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:yc;this._$El=d,this[d]=v.fromAttribute(n,u.type),this._$El=null}}requestUpdate(e,n,o){let l=!0;e!==void 0&&(((o=o||this.constructor.getPropertyOptions(e)).hasChanged||Nf)(this[e],n)?(this._$AL.has(e)||this._$AL.set(e,n),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(n){Promise.reject(n)}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 n=!1;const o=this._$AL;try{n=this.shouldUpdate(o),n?(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 n=!1,this._$Ek(),l}n&&this._$AE(o)}willUpdate(e){}_$AE(e){var n;(n=this._$ES)===null||n===void 0||n.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((n,o)=>this._$EO(o,this[o],n)),this._$EC=void 0),this._$Ek()}updated(e){}firstUpdated(e){}};ss[Cc]=!0,ss.elementProperties=new Map,ss.elementStyles=[],ss.shadowRootOptions={mode:"open"},Bd==null||Bd({ReactiveElement:ss}),((U1=Fa.reactiveElementVersions)!==null&&U1!==void 0?U1:Fa.reactiveElementVersions=[]).push("1.6.2");/**
9
+ */var U1;const Fa=window,Fd=Fa.trustedTypes,X3=Fd?Fd.emptyScript:"",Bd=Fa.reactiveElementPolyfillSupport,yc={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}},Nf=(n,e)=>e!==n&&(e==e||n==n),j1={attribute:!0,type:String,converter:yc,reflect:!1,hasChanged:Nf},Cc="finalized";let ss=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(Cc))return!1;this[Cc]=!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(Rd(l))}else e!==void 0&&i.push(Rd(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=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:yc).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:yc;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||Nf)(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){}};ss[Cc]=!0,ss.elementProperties=new Map,ss.elementStyles=[],ss.shadowRootOptions={mode:"open"},Bd==null||Bd({ReactiveElement:ss}),((U1=Fa.reactiveElementVersions)!==null&&U1!==void 0?U1:Fa.reactiveElementVersions=[]).push("1.6.2");/**
10
10
  * @license
11
11
  * Copyright 2017 Google LLC
12
12
  * SPDX-License-Identifier: BSD-3-Clause
13
- */var G1;const Ba=window,oo=Ba.trustedTypes,Vd=oo?oo.createPolicy("lit-html",{createHTML:i=>i}):void 0,Va="$lit$",cn=`lit$${(Math.random()+"").slice(9)}$`,jc="?"+cn,J3=`<${jc}>`,gi=document,Za=()=>gi.createComment(""),ws=i=>i===null||typeof i!="object"&&typeof i!="function",Hf=Array.isArray,Rf=i=>Hf(i)||typeof(i==null?void 0:i[Symbol.iterator])=="function",q1=`[
14
- \f\r]`,as=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Zd=/-->/g,Wd=/>/g,ni=RegExp(`>|${q1}(?:([^\\s"'>=/]+)(${q1}*=${q1}*(?:[^
15
- \f\r"'\`<>=]|("|')|))|$)`,"g"),Ud=/'/g,jd=/"/g,Ff=/^(?:script|style|textarea|title)$/i,dn=Symbol.for("lit-noChange"),vt=Symbol.for("lit-nothing"),Gd=new WeakMap,hi=gi.createTreeWalker(gi,129,null,!1),Bf=(i,e)=>{const n=i.length-1,o=[];let l,d=e===2?"<svg>":"",u=as;for(let y=0;y<n;y++){const b=i[y];let M,L,T=-1,$=0;for(;$<b.length&&(u.lastIndex=$,L=u.exec(b),L!==null);)$=u.lastIndex,u===as?L[1]==="!--"?u=Zd:L[1]!==void 0?u=Wd:L[2]!==void 0?(Ff.test(L[2])&&(l=RegExp("</"+L[2],"g")),u=ni):L[3]!==void 0&&(u=ni):u===ni?L[0]===">"?(u=l!=null?l:as,T=-1):L[1]===void 0?T=-2:(T=u.lastIndex-L[2].length,M=L[1],u=L[3]===void 0?ni:L[3]==='"'?jd:Ud):u===jd||u===Ud?u=ni:u===Zd||u===Wd?u=as:(u=ni,l=void 0);const N=u===ni&&i[y+1].startsWith("/>")?" ":"";d+=u===as?b+J3:T>=0?(o.push(M),b.slice(0,T)+Va+b.slice(T)+cn+N):b+cn+(T===-2?(o.push(void 0),y):N)}const v=d+(i[n]||"<?>")+(e===2?"</svg>":"");if(!Array.isArray(i)||!i.hasOwnProperty("raw"))throw Error("invalid template strings array");return[Vd!==void 0?Vd.createHTML(v):v,o]};let wc=class Vf{constructor({strings:e,_$litType$:n},o){let l;this.parts=[];let d=0,u=0;const v=e.length-1,y=this.parts,[b,M]=Bf(e,n);if(this.el=Vf.createElement(b,o),hi.currentNode=this.el.content,n===2){const L=this.el.content,T=L.firstChild;T.remove(),L.append(...T.childNodes)}for(;(l=hi.nextNode())!==null&&y.length<v;){if(l.nodeType===1){if(l.hasAttributes()){const L=[];for(const T of l.getAttributeNames())if(T.endsWith(Va)||T.startsWith(cn)){const $=M[u++];if(L.push(T),$!==void 0){const N=l.getAttribute($.toLowerCase()+Va).split(cn),Y=/([.?@])?(.*)/.exec($);y.push({type:1,index:d,name:Y[2],strings:N,ctor:Y[1]==="."?Uf:Y[1]==="?"?jf:Y[1]==="@"?Gf:Ts})}else y.push({type:6,index:d})}for(const T of L)l.removeAttribute(T)}if(Ff.test(l.tagName)){const L=l.textContent.split(cn),T=L.length-1;if(T>0){l.textContent=oo?oo.emptyScript:"";for(let $=0;$<T;$++)l.append(L[$],Za()),hi.nextNode(),y.push({type:2,index:++d});l.append(L[T],Za())}}}else if(l.nodeType===8)if(l.data===jc)y.push({type:2,index:d});else{let L=-1;for(;(L=l.data.indexOf(cn,L+1))!==-1;)y.push({type:7,index:d}),L+=cn.length-1}d++}}static createElement(e,n){const o=gi.createElement("template");return o.innerHTML=e,o}};function vi(i,e,n=i,o){var l,d,u,v;if(e===dn)return e;let y=o!==void 0?(l=n._$Co)===null||l===void 0?void 0:l[o]:n._$Cl;const b=ws(e)?void 0:e._$litDirective$;return(y==null?void 0:y.constructor)!==b&&((d=y==null?void 0:y._$AO)===null||d===void 0||d.call(y,!1),b===void 0?y=void 0:(y=new b(i),y._$AT(i,n,o)),o!==void 0?((u=(v=n)._$Co)!==null&&u!==void 0?u:v._$Co=[])[o]=y:n._$Cl=y),y!==void 0&&(e=vi(i,y._$AS(i,e.values),y,o)),e}let Zf=class{constructor(e,n){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=n}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){var n;const{el:{content:o},parts:l}=this._$AD,d=((n=e==null?void 0:e.creationScope)!==null&&n!==void 0?n:gi).importNode(o,!0);hi.currentNode=d;let u=hi.nextNode(),v=0,y=0,b=l[0];for(;b!==void 0;){if(v===b.index){let M;b.type===2?M=new Gc(u,u.nextSibling,this,e):b.type===1?M=new b.ctor(u,b.name,b.strings,this,e):b.type===6&&(M=new qf(u,this,e)),this._$AV.push(M),b=l[++y]}v!==(b==null?void 0:b.index)&&(u=hi.nextNode(),v++)}return hi.currentNode=gi,d}v(e){let n=0;for(const o of this._$AV)o!==void 0&&(o.strings!==void 0?(o._$AI(e,o,n),n+=o.strings.length-2):o._$AI(e[n])),n++}},Gc=class Wf{constructor(e,n,o,l){var d;this.type=2,this._$AH=vt,this._$AN=void 0,this._$AA=e,this._$AB=n,this._$AM=o,this.options=l,this._$Cp=(d=l==null?void 0:l.isConnected)===null||d===void 0||d}get _$AU(){var e,n;return(n=(e=this._$AM)===null||e===void 0?void 0:e._$AU)!==null&&n!==void 0?n:this._$Cp}get parentNode(){let e=this._$AA.parentNode;const n=this._$AM;return n!==void 0&&(e==null?void 0:e.nodeType)===11&&(e=n.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,n=this){e=vi(this,e,n),ws(e)?e===vt||e==null||e===""?(this._$AH!==vt&&this._$AR(),this._$AH=vt):e!==this._$AH&&e!==dn&&this._(e):e._$litType$!==void 0?this.g(e):e.nodeType!==void 0?this.$(e):Rf(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!==vt&&ws(this._$AH)?this._$AA.nextSibling.data=e:this.$(gi.createTextNode(e)),this._$AH=e}g(e){var n;const{values:o,_$litType$:l}=e,d=typeof l=="number"?this._$AC(e):(l.el===void 0&&(l.el=wc.createElement(l.h,this.options)),l);if(((n=this._$AH)===null||n===void 0?void 0:n._$AD)===d)this._$AH.v(o);else{const u=new Zf(d,this),v=u.u(this.options);u.v(o),this.$(v),this._$AH=u}}_$AC(e){let n=Gd.get(e.strings);return n===void 0&&Gd.set(e.strings,n=new wc(e)),n}T(e){Hf(this._$AH)||(this._$AH=[],this._$AR());const n=this._$AH;let o,l=0;for(const d of e)l===n.length?n.push(o=new Wf(this.k(Za()),this.k(Za()),this,this.options)):o=n[l],o._$AI(d),l++;l<n.length&&(this._$AR(o&&o._$AB.nextSibling,l),n.length=l)}_$AR(e=this._$AA.nextSibling,n){var o;for((o=this._$AP)===null||o===void 0||o.call(this,!1,!0,n);e&&e!==this._$AB;){const l=e.nextSibling;e.remove(),e=l}}setConnected(e){var n;this._$AM===void 0&&(this._$Cp=e,(n=this._$AP)===null||n===void 0||n.call(this,e))}},Ts=class{constructor(e,n,o,l,d){this.type=1,this._$AH=vt,this._$AN=void 0,this.element=e,this.name=n,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=vt}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(e,n=this,o,l){const d=this.strings;let u=!1;if(d===void 0)e=vi(this,e,n,0),u=!ws(e)||e!==this._$AH&&e!==dn,u&&(this._$AH=e);else{const v=e;let y,b;for(e=d[0],y=0;y<d.length-1;y++)b=vi(this,v[o+y],n,y),b===dn&&(b=this._$AH[y]),u||(u=!ws(b)||b!==this._$AH[y]),b===vt?e=vt:e!==vt&&(e+=(b!=null?b:"")+d[y+1]),this._$AH[y]=b}u&&!l&&this.j(e)}j(e){e===vt?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e!=null?e:"")}},Uf=class extends Ts{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===vt?void 0:e}};const Q3=oo?oo.emptyScript:"";let jf=class extends Ts{constructor(){super(...arguments),this.type=4}j(e){e&&e!==vt?this.element.setAttribute(this.name,Q3):this.element.removeAttribute(this.name)}},Gf=class extends Ts{constructor(e,n,o,l,d){super(e,n,o,l,d),this.type=5}_$AI(e,n=this){var o;if((e=(o=vi(this,e,n,0))!==null&&o!==void 0?o:vt)===dn)return;const l=this._$AH,d=e===vt&&l!==vt||e.capture!==l.capture||e.once!==l.once||e.passive!==l.passive,u=e!==vt&&(l===vt||d);d&&this.element.removeEventListener(this.name,this,l),u&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){var n,o;typeof this._$AH=="function"?this._$AH.call((o=(n=this.options)===null||n===void 0?void 0:n.host)!==null&&o!==void 0?o:this.element,e):this._$AH.handleEvent(e)}},qf=class{constructor(e,n,o){this.element=e,this.type=6,this._$AN=void 0,this._$AM=n,this.options=o}get _$AU(){return this._$AM._$AU}_$AI(e){vi(this,e)}};const e7={O:Va,P:cn,A:jc,C:1,M:Bf,L:Zf,D:Rf,R:vi,I:Gc,V:Ts,H:jf,N:Gf,U:Uf,F:qf},qd=Ba.litHtmlPolyfillSupport;qd==null||qd(wc,Gc),((G1=Ba.litHtmlVersions)!==null&&G1!==void 0?G1:Ba.litHtmlVersions=[]).push("2.7.4");/**
13
+ */var G1;const Ba=window,oo=Ba.trustedTypes,Vd=oo?oo.createPolicy("lit-html",{createHTML:n=>n}):void 0,Va="$lit$",li=`lit$${(Math.random()+"").slice(9)}$`,jc="?"+li,J3=`<${jc}>`,gn=document,Za=()=>gn.createComment(""),ws=n=>n===null||typeof n!="object"&&typeof n!="function",Hf=Array.isArray,Rf=n=>Hf(n)||typeof(n==null?void 0:n[Symbol.iterator])=="function",q1=`[
14
+ \f\r]`,as=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Zd=/-->/g,Wd=/>/g,rn=RegExp(`>|${q1}(?:([^\\s"'>=/]+)(${q1}*=${q1}*(?:[^
15
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),Ud=/'/g,jd=/"/g,Ff=/^(?:script|style|textarea|title)$/i,ui=Symbol.for("lit-noChange"),vt=Symbol.for("lit-nothing"),Gd=new WeakMap,hn=gn.createTreeWalker(gn,129,null,!1),Bf=(n,e)=>{const i=n.length-1,o=[];let l,d=e===2?"<svg>":"",u=as;for(let y=0;y<i;y++){const b=n[y];let M,L,T=-1,$=0;for(;$<b.length&&(u.lastIndex=$,L=u.exec(b),L!==null);)$=u.lastIndex,u===as?L[1]==="!--"?u=Zd:L[1]!==void 0?u=Wd:L[2]!==void 0?(Ff.test(L[2])&&(l=RegExp("</"+L[2],"g")),u=rn):L[3]!==void 0&&(u=rn):u===rn?L[0]===">"?(u=l!=null?l:as,T=-1):L[1]===void 0?T=-2:(T=u.lastIndex-L[2].length,M=L[1],u=L[3]===void 0?rn:L[3]==='"'?jd:Ud):u===jd||u===Ud?u=rn:u===Zd||u===Wd?u=as:(u=rn,l=void 0);const N=u===rn&&n[y+1].startsWith("/>")?" ":"";d+=u===as?b+J3:T>=0?(o.push(M),b.slice(0,T)+Va+b.slice(T)+li+N):b+li+(T===-2?(o.push(void 0),y):N)}const v=d+(n[i]||"<?>")+(e===2?"</svg>":"");if(!Array.isArray(n)||!n.hasOwnProperty("raw"))throw Error("invalid template strings array");return[Vd!==void 0?Vd.createHTML(v):v,o]};let wc=class Vf{constructor({strings:e,_$litType$:i},o){let l;this.parts=[];let d=0,u=0;const v=e.length-1,y=this.parts,[b,M]=Bf(e,i);if(this.el=Vf.createElement(b,o),hn.currentNode=this.el.content,i===2){const L=this.el.content,T=L.firstChild;T.remove(),L.append(...T.childNodes)}for(;(l=hn.nextNode())!==null&&y.length<v;){if(l.nodeType===1){if(l.hasAttributes()){const L=[];for(const T of l.getAttributeNames())if(T.endsWith(Va)||T.startsWith(li)){const $=M[u++];if(L.push(T),$!==void 0){const N=l.getAttribute($.toLowerCase()+Va).split(li),Y=/([.?@])?(.*)/.exec($);y.push({type:1,index:d,name:Y[2],strings:N,ctor:Y[1]==="."?Uf:Y[1]==="?"?jf:Y[1]==="@"?Gf:Ts})}else y.push({type:6,index:d})}for(const T of L)l.removeAttribute(T)}if(Ff.test(l.tagName)){const L=l.textContent.split(li),T=L.length-1;if(T>0){l.textContent=oo?oo.emptyScript:"";for(let $=0;$<T;$++)l.append(L[$],Za()),hn.nextNode(),y.push({type:2,index:++d});l.append(L[T],Za())}}}else if(l.nodeType===8)if(l.data===jc)y.push({type:2,index:d});else{let L=-1;for(;(L=l.data.indexOf(li,L+1))!==-1;)y.push({type:7,index:d}),L+=li.length-1}d++}}static createElement(e,i){const o=gn.createElement("template");return o.innerHTML=e,o}};function vn(n,e,i=n,o){var l,d,u,v;if(e===ui)return e;let y=o!==void 0?(l=i._$Co)===null||l===void 0?void 0:l[o]:i._$Cl;const b=ws(e)?void 0:e._$litDirective$;return(y==null?void 0:y.constructor)!==b&&((d=y==null?void 0:y._$AO)===null||d===void 0||d.call(y,!1),b===void 0?y=void 0:(y=new b(n),y._$AT(n,i,o)),o!==void 0?((u=(v=i)._$Co)!==null&&u!==void 0?u:v._$Co=[])[o]=y:i._$Cl=y),y!==void 0&&(e=vn(n,y._$AS(n,e.values),y,o)),e}let Zf=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:gn).importNode(o,!0);hn.currentNode=d;let u=hn.nextNode(),v=0,y=0,b=l[0];for(;b!==void 0;){if(v===b.index){let M;b.type===2?M=new Gc(u,u.nextSibling,this,e):b.type===1?M=new b.ctor(u,b.name,b.strings,this,e):b.type===6&&(M=new qf(u,this,e)),this._$AV.push(M),b=l[++y]}v!==(b==null?void 0:b.index)&&(u=hn.nextNode(),v++)}return hn.currentNode=gn,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++}},Gc=class Wf{constructor(e,i,o,l){var d;this.type=2,this._$AH=vt,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=vn(this,e,i),ws(e)?e===vt||e==null||e===""?(this._$AH!==vt&&this._$AR(),this._$AH=vt):e!==this._$AH&&e!==ui&&this._(e):e._$litType$!==void 0?this.g(e):e.nodeType!==void 0?this.$(e):Rf(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!==vt&&ws(this._$AH)?this._$AA.nextSibling.data=e:this.$(gn.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=wc.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 Zf(d,this),v=u.u(this.options);u.v(o),this.$(v),this._$AH=u}}_$AC(e){let i=Gd.get(e.strings);return i===void 0&&Gd.set(e.strings,i=new wc(e)),i}T(e){Hf(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 Wf(this.k(Za()),this.k(Za()),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))}},Ts=class{constructor(e,i,o,l,d){this.type=1,this._$AH=vt,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=vt}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=vn(this,e,i,0),u=!ws(e)||e!==this._$AH&&e!==ui,u&&(this._$AH=e);else{const v=e;let y,b;for(e=d[0],y=0;y<d.length-1;y++)b=vn(this,v[o+y],i,y),b===ui&&(b=this._$AH[y]),u||(u=!ws(b)||b!==this._$AH[y]),b===vt?e=vt:e!==vt&&(e+=(b!=null?b:"")+d[y+1]),this._$AH[y]=b}u&&!l&&this.j(e)}j(e){e===vt?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e!=null?e:"")}},Uf=class extends Ts{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===vt?void 0:e}};const Q3=oo?oo.emptyScript:"";let jf=class extends Ts{constructor(){super(...arguments),this.type=4}j(e){e&&e!==vt?this.element.setAttribute(this.name,Q3):this.element.removeAttribute(this.name)}},Gf=class extends Ts{constructor(e,i,o,l,d){super(e,i,o,l,d),this.type=5}_$AI(e,i=this){var o;if((e=(o=vn(this,e,i,0))!==null&&o!==void 0?o:vt)===ui)return;const l=this._$AH,d=e===vt&&l!==vt||e.capture!==l.capture||e.once!==l.once||e.passive!==l.passive,u=e!==vt&&(l===vt||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)}},qf=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){vn(this,e)}};const e7={O:Va,P:li,A:jc,C:1,M:Bf,L:Zf,D:Rf,R:vn,I:Gc,V:Ts,H:jf,N:Gf,U:Uf,F:qf},qd=Ba.litHtmlPolyfillSupport;qd==null||qd(wc,Gc),((G1=Ba.litHtmlVersions)!==null&&G1!==void 0?G1:Ba.litHtmlVersions=[]).push("2.7.4");/**
16
16
  * @license
17
17
  * Copyright 2019 Google LLC
18
18
  * SPDX-License-Identifier: BSD-3-Clause
19
- */const Na=window,qc=Na.ShadowRoot&&(Na.ShadyCSS===void 0||Na.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Kc=Symbol(),Kd=new WeakMap;let Kf=class{constructor(e,n,o){if(this._$cssResult$=!0,o!==Kc)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=n}get styleSheet(){let e=this.o;const n=this.t;if(qc&&e===void 0){const o=n!==void 0&&n.length===1;o&&(e=Kd.get(n)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),o&&Kd.set(n,e))}return e}toString(){return this.cssText}};const Gr=i=>new Kf(typeof i=="string"?i:i+"",void 0,Kc),Q=(i,...e)=>{const n=i.length===1?i[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)+i[d+1],i[0]);return new Kf(n,i,Kc)},t7=(i,e)=>{qc?i.adoptedStyleSheets=e.map(n=>n instanceof CSSStyleSheet?n:n.styleSheet):e.forEach(n=>{const o=document.createElement("style"),l=Na.litNonce;l!==void 0&&o.setAttribute("nonce",l),o.textContent=n.cssText,i.appendChild(o)})},Yd=qc?i=>i:i=>i instanceof CSSStyleSheet?(e=>{let n="";for(const o of e.cssRules)n+=o.cssText;return Gr(n)})(i):i;/**
19
+ */const Na=window,qc=Na.ShadowRoot&&(Na.ShadyCSS===void 0||Na.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Kc=Symbol(),Kd=new WeakMap;let Kf=class{constructor(e,i,o){if(this._$cssResult$=!0,o!==Kc)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(qc&&e===void 0){const o=i!==void 0&&i.length===1;o&&(e=Kd.get(i)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),o&&Kd.set(i,e))}return e}toString(){return this.cssText}};const Gr=n=>new Kf(typeof n=="string"?n:n+"",void 0,Kc),Q=(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 Kf(i,n,Kc)},t7=(n,e)=>{qc?n.adoptedStyleSheets=e.map(i=>i instanceof CSSStyleSheet?i:i.styleSheet):e.forEach(i=>{const o=document.createElement("style"),l=Na.litNonce;l!==void 0&&o.setAttribute("nonce",l),o.textContent=i.cssText,n.appendChild(o)})},Yd=qc?n=>n:n=>n instanceof CSSStyleSheet?(e=>{let i="";for(const o of e.cssRules)i+=o.cssText;return Gr(i)})(n):n;/**
20
20
  * @license
21
21
  * Copyright 2017 Google LLC
22
22
  * SPDX-License-Identifier: BSD-3-Clause
23
- */var K1;const Wa=window,Xd=Wa.trustedTypes,r7=Xd?Xd.emptyScript:"",Jd=Wa.reactiveElementPolyfillSupport,xc={toAttribute(i,e){switch(e){case Boolean:i=i?r7:null;break;case Object:case Array:i=i==null?i:JSON.stringify(i)}return i},fromAttribute(i,e){let n=i;switch(e){case Boolean:n=i!==null;break;case Number:n=i===null?null:Number(i);break;case Object:case Array:try{n=JSON.parse(i)}catch{n=null}}return n}},Yf=(i,e)=>e!==i&&(e==e||i==i),Y1={attribute:!0,type:String,converter:xc,reflect:!1,hasChanged:Yf};let to=class extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this.u()}static addInitializer(e){var n;this.finalize(),((n=this.h)!==null&&n!==void 0?n:this.h=[]).push(e)}static get observedAttributes(){this.finalize();const e=[];return this.elementProperties.forEach((n,o)=>{const l=this._$Ep(o,n);l!==void 0&&(this._$Ev.set(l,o),e.push(l))}),e}static createProperty(e,n=Y1){if(n.state&&(n.attribute=!1),this.finalize(),this.elementProperties.set(e,n),!n.noAccessor&&!this.prototype.hasOwnProperty(e)){const o=typeof e=="symbol"?Symbol():"__"+e,l=this.getPropertyDescriptor(e,o,n);l!==void 0&&Object.defineProperty(this.prototype,e,l)}}static getPropertyDescriptor(e,n,o){return{get(){return this[n]},set(l){const d=this[e];this[n]=l,this.requestUpdate(e,d,o)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)||Y1}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 n=this.properties,o=[...Object.getOwnPropertyNames(n),...Object.getOwnPropertySymbols(n)];for(const l of o)this.createProperty(l,n[l])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(e){const n=[];if(Array.isArray(e)){const o=new Set(e.flat(1/0).reverse());for(const l of o)n.unshift(Yd(l))}else e!==void 0&&n.push(Yd(e));return n}static _$Ep(e,n){const o=n.attribute;return o===!1?void 0:typeof o=="string"?o:typeof e=="string"?e.toLowerCase():void 0}u(){var e;this._$E_=new Promise(n=>this.enableUpdating=n),this._$AL=new Map,this._$Eg(),this.requestUpdate(),(e=this.constructor.h)===null||e===void 0||e.forEach(n=>n(this))}addController(e){var n,o;((n=this._$ES)!==null&&n!==void 0?n:this._$ES=[]).push(e),this.renderRoot!==void 0&&this.isConnected&&((o=e.hostConnected)===null||o===void 0||o.call(e))}removeController(e){var n;(n=this._$ES)===null||n===void 0||n.splice(this._$ES.indexOf(e)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach((e,n)=>{this.hasOwnProperty(n)&&(this._$Ei.set(n,this[n]),delete this[n])})}createRenderRoot(){var e;const n=(e=this.shadowRoot)!==null&&e!==void 0?e:this.attachShadow(this.constructor.shadowRootOptions);return t7(n,this.constructor.elementStyles),n}connectedCallback(){var e;this.renderRoot===void 0&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(e=this._$ES)===null||e===void 0||e.forEach(n=>{var o;return(o=n.hostConnected)===null||o===void 0?void 0:o.call(n)})}enableUpdating(e){}disconnectedCallback(){var e;(e=this._$ES)===null||e===void 0||e.forEach(n=>{var o;return(o=n.hostDisconnected)===null||o===void 0?void 0:o.call(n)})}attributeChangedCallback(e,n,o){this._$AK(e,o)}_$EO(e,n,o=Y1){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:xc).toAttribute(n,o.type);this._$El=e,u==null?this.removeAttribute(d):this.setAttribute(d,u),this._$El=null}}_$AK(e,n){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:xc;this._$El=d,this[d]=v.fromAttribute(n,u.type),this._$El=null}}requestUpdate(e,n,o){let l=!0;e!==void 0&&(((o=o||this.constructor.getPropertyOptions(e)).hasChanged||Yf)(this[e],n)?(this._$AL.has(e)||this._$AL.set(e,n),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(n){Promise.reject(n)}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 n=!1;const o=this._$AL;try{n=this.shouldUpdate(o),n?(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 n=!1,this._$Ek(),l}n&&this._$AE(o)}willUpdate(e){}_$AE(e){var n;(n=this._$ES)===null||n===void 0||n.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((n,o)=>this._$EO(o,this[o],n)),this._$EC=void 0),this._$Ek()}updated(e){}firstUpdated(e){}};to.finalized=!0,to.elementProperties=new Map,to.elementStyles=[],to.shadowRootOptions={mode:"open"},Jd==null||Jd({ReactiveElement:to}),((K1=Wa.reactiveElementVersions)!==null&&K1!==void 0?K1:Wa.reactiveElementVersions=[]).push("1.4.2");/**
23
+ */var K1;const Wa=window,Xd=Wa.trustedTypes,r7=Xd?Xd.emptyScript:"",Jd=Wa.reactiveElementPolyfillSupport,xc={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}},Yf=(n,e)=>e!==n&&(e==e||n==n),Y1={attribute:!0,type:String,converter:xc,reflect:!1,hasChanged:Yf};let to=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=Y1){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)||Y1}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(Yd(l))}else e!==void 0&&i.push(Yd(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=Y1){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:xc).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:xc;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||Yf)(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){}};to.finalized=!0,to.elementProperties=new Map,to.elementStyles=[],to.shadowRootOptions={mode:"open"},Jd==null||Jd({ReactiveElement:to}),((K1=Wa.reactiveElementVersions)!==null&&K1!==void 0?K1:Wa.reactiveElementVersions=[]).push("1.4.2");/**
24
24
  * @license
25
25
  * Copyright 2017 Google LLC
26
26
  * SPDX-License-Identifier: BSD-3-Clause
27
- */var X1;const Ua=window,so=Ua.trustedTypes,Qd=so?so.createPolicy("lit-html",{createHTML:i=>i}):void 0,zc="$lit$",Pn=`lit$${(Math.random()+"").slice(9)}$`,Xf="?"+Pn,n7=`<${Xf}>`,bi=document,xs=()=>bi.createComment(""),zs=i=>i===null||typeof i!="object"&&typeof i!="function",Jf=Array.isArray,i7=i=>Jf(i)||typeof(i==null?void 0:i[Symbol.iterator])=="function",J1=`[
28
- \f\r]`,ls=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,eh=/-->/g,th=/>/g,ii=RegExp(`>|${J1}(?:([^\\s"'>=/]+)(${J1}*=${J1}*(?:[^
29
- \f\r"'\`<>=]|("|')|))|$)`,"g"),rh=/'/g,nh=/"/g,Qf=/^(?:script|style|textarea|title)$/i,e2=i=>(e,...n)=>({_$litType$:i,strings:e,values:n}),R=e2(1),F=e2(2),ao=Symbol.for("lit-noChange"),Mt=Symbol.for("lit-nothing"),ih=new WeakMap,fi=bi.createTreeWalker(bi,129,null,!1),o7=(i,e)=>{const n=i.length-1,o=[];let l,d=e===2?"<svg>":"",u=ls;for(let y=0;y<n;y++){const b=i[y];let M,L,T=-1,$=0;for(;$<b.length&&(u.lastIndex=$,L=u.exec(b),L!==null);)$=u.lastIndex,u===ls?L[1]==="!--"?u=eh:L[1]!==void 0?u=th:L[2]!==void 0?(Qf.test(L[2])&&(l=RegExp("</"+L[2],"g")),u=ii):L[3]!==void 0&&(u=ii):u===ii?L[0]===">"?(u=l!=null?l:ls,T=-1):L[1]===void 0?T=-2:(T=u.lastIndex-L[2].length,M=L[1],u=L[3]===void 0?ii:L[3]==='"'?nh:rh):u===nh||u===rh?u=ii:u===eh||u===th?u=ls:(u=ii,l=void 0);const N=u===ii&&i[y+1].startsWith("/>")?" ":"";d+=u===ls?b+n7:T>=0?(o.push(M),b.slice(0,T)+zc+b.slice(T)+Pn+N):b+Pn+(T===-2?(o.push(void 0),y):N)}const v=d+(i[n]||"<?>")+(e===2?"</svg>":"");if(!Array.isArray(i)||!i.hasOwnProperty("raw"))throw Error("invalid template strings array");return[Qd!==void 0?Qd.createHTML(v):v,o]};class Ls{constructor({strings:e,_$litType$:n},o){let l;this.parts=[];let d=0,u=0;const v=e.length-1,y=this.parts,[b,M]=o7(e,n);if(this.el=Ls.createElement(b,o),fi.currentNode=this.el.content,n===2){const L=this.el.content,T=L.firstChild;T.remove(),L.append(...T.childNodes)}for(;(l=fi.nextNode())!==null&&y.length<v;){if(l.nodeType===1){if(l.hasAttributes()){const L=[];for(const T of l.getAttributeNames())if(T.endsWith(zc)||T.startsWith(Pn)){const $=M[u++];if(L.push(T),$!==void 0){const N=l.getAttribute($.toLowerCase()+zc).split(Pn),Y=/([.?@])?(.*)/.exec($);y.push({type:1,index:d,name:Y[2],strings:N,ctor:Y[1]==="."?a7:Y[1]==="?"?c7:Y[1]==="@"?u7:vl})}else y.push({type:6,index:d})}for(const T of L)l.removeAttribute(T)}if(Qf.test(l.tagName)){const L=l.textContent.split(Pn),T=L.length-1;if(T>0){l.textContent=so?so.emptyScript:"";for(let $=0;$<T;$++)l.append(L[$],xs()),fi.nextNode(),y.push({type:2,index:++d});l.append(L[T],xs())}}}else if(l.nodeType===8)if(l.data===Xf)y.push({type:2,index:d});else{let L=-1;for(;(L=l.data.indexOf(Pn,L+1))!==-1;)y.push({type:7,index:d}),L+=Pn.length-1}d++}}static createElement(e,n){const o=bi.createElement("template");return o.innerHTML=e,o}}function lo(i,e,n=i,o){var l,d,u,v;if(e===ao)return e;let y=o!==void 0?(l=n._$Co)===null||l===void 0?void 0:l[o]:n._$Cl;const b=zs(e)?void 0:e._$litDirective$;return(y==null?void 0:y.constructor)!==b&&((d=y==null?void 0:y._$AO)===null||d===void 0||d.call(y,!1),b===void 0?y=void 0:(y=new b(i),y._$AT(i,n,o)),o!==void 0?((u=(v=n)._$Co)!==null&&u!==void 0?u:v._$Co=[])[o]=y:n._$Cl=y),y!==void 0&&(e=lo(i,y._$AS(i,e.values),y,o)),e}class s7{constructor(e,n){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=n}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){var n;const{el:{content:o},parts:l}=this._$AD,d=((n=e==null?void 0:e.creationScope)!==null&&n!==void 0?n:bi).importNode(o,!0);fi.currentNode=d;let u=fi.nextNode(),v=0,y=0,b=l[0];for(;b!==void 0;){if(v===b.index){let M;b.type===2?M=new ks(u,u.nextSibling,this,e):b.type===1?M=new b.ctor(u,b.name,b.strings,this,e):b.type===6&&(M=new d7(u,this,e)),this._$AV.push(M),b=l[++y]}v!==(b==null?void 0:b.index)&&(u=fi.nextNode(),v++)}return fi.currentNode=bi,d}v(e){let n=0;for(const o of this._$AV)o!==void 0&&(o.strings!==void 0?(o._$AI(e,o,n),n+=o.strings.length-2):o._$AI(e[n])),n++}}class ks{constructor(e,n,o,l){var d;this.type=2,this._$AH=Mt,this._$AN=void 0,this._$AA=e,this._$AB=n,this._$AM=o,this.options=l,this._$Cp=(d=l==null?void 0:l.isConnected)===null||d===void 0||d}get _$AU(){var e,n;return(n=(e=this._$AM)===null||e===void 0?void 0:e._$AU)!==null&&n!==void 0?n:this._$Cp}get parentNode(){let e=this._$AA.parentNode;const n=this._$AM;return n!==void 0&&(e==null?void 0:e.nodeType)===11&&(e=n.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,n=this){e=lo(this,e,n),zs(e)?e===Mt||e==null||e===""?(this._$AH!==Mt&&this._$AR(),this._$AH=Mt):e!==this._$AH&&e!==ao&&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!==Mt&&zs(this._$AH)?this._$AA.nextSibling.data=e:this.$(bi.createTextNode(e)),this._$AH=e}g(e){var n;const{values:o,_$litType$:l}=e,d=typeof l=="number"?this._$AC(e):(l.el===void 0&&(l.el=Ls.createElement(l.h,this.options)),l);if(((n=this._$AH)===null||n===void 0?void 0:n._$AD)===d)this._$AH.v(o);else{const u=new s7(d,this),v=u.u(this.options);u.v(o),this.$(v),this._$AH=u}}_$AC(e){let n=ih.get(e.strings);return n===void 0&&ih.set(e.strings,n=new Ls(e)),n}T(e){Jf(this._$AH)||(this._$AH=[],this._$AR());const n=this._$AH;let o,l=0;for(const d of e)l===n.length?n.push(o=new ks(this.k(xs()),this.k(xs()),this,this.options)):o=n[l],o._$AI(d),l++;l<n.length&&(this._$AR(o&&o._$AB.nextSibling,l),n.length=l)}_$AR(e=this._$AA.nextSibling,n){var o;for((o=this._$AP)===null||o===void 0||o.call(this,!1,!0,n);e&&e!==this._$AB;){const l=e.nextSibling;e.remove(),e=l}}setConnected(e){var n;this._$AM===void 0&&(this._$Cp=e,(n=this._$AP)===null||n===void 0||n.call(this,e))}}class vl{constructor(e,n,o,l,d){this.type=1,this._$AH=Mt,this._$AN=void 0,this.element=e,this.name=n,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=Mt}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(e,n=this,o,l){const d=this.strings;let u=!1;if(d===void 0)e=lo(this,e,n,0),u=!zs(e)||e!==this._$AH&&e!==ao,u&&(this._$AH=e);else{const v=e;let y,b;for(e=d[0],y=0;y<d.length-1;y++)b=lo(this,v[o+y],n,y),b===ao&&(b=this._$AH[y]),u||(u=!zs(b)||b!==this._$AH[y]),b===Mt?e=Mt:e!==Mt&&(e+=(b!=null?b:"")+d[y+1]),this._$AH[y]=b}u&&!l&&this.j(e)}j(e){e===Mt?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e!=null?e:"")}}class a7 extends vl{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===Mt?void 0:e}}const l7=so?so.emptyScript:"";class c7 extends vl{constructor(){super(...arguments),this.type=4}j(e){e&&e!==Mt?this.element.setAttribute(this.name,l7):this.element.removeAttribute(this.name)}}class u7 extends vl{constructor(e,n,o,l,d){super(e,n,o,l,d),this.type=5}_$AI(e,n=this){var o;if((e=(o=lo(this,e,n,0))!==null&&o!==void 0?o:Mt)===ao)return;const l=this._$AH,d=e===Mt&&l!==Mt||e.capture!==l.capture||e.once!==l.once||e.passive!==l.passive,u=e!==Mt&&(l===Mt||d);d&&this.element.removeEventListener(this.name,this,l),u&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){var n,o;typeof this._$AH=="function"?this._$AH.call((o=(n=this.options)===null||n===void 0?void 0:n.host)!==null&&o!==void 0?o:this.element,e):this._$AH.handleEvent(e)}}class d7{constructor(e,n,o){this.element=e,this.type=6,this._$AN=void 0,this._$AM=n,this.options=o}get _$AU(){return this._$AM._$AU}_$AI(e){lo(this,e)}}const oh=Ua.litHtmlPolyfillSupport;oh==null||oh(Ls,ks),((X1=Ua.litHtmlVersions)!==null&&X1!==void 0?X1:Ua.litHtmlVersions=[]).push("2.7.4");const t2=(i,e,n)=>{var o,l;const d=(o=n==null?void 0:n.renderBefore)!==null&&o!==void 0?o:e;let u=d._$litPart$;if(u===void 0){const v=(l=n==null?void 0:n.renderBefore)!==null&&l!==void 0?l:null;d._$litPart$=u=new ks(e.insertBefore(xs(),v),v,void 0,n!=null?n:{})}return u._$AI(i),u};/**
27
+ */var X1;const Ua=window,so=Ua.trustedTypes,Qd=so?so.createPolicy("lit-html",{createHTML:n=>n}):void 0,zc="$lit$",Ai=`lit$${(Math.random()+"").slice(9)}$`,Xf="?"+Ai,i7=`<${Xf}>`,bn=document,xs=()=>bn.createComment(""),zs=n=>n===null||typeof n!="object"&&typeof n!="function",Jf=Array.isArray,n7=n=>Jf(n)||typeof(n==null?void 0:n[Symbol.iterator])=="function",J1=`[
28
+ \f\r]`,ls=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,eh=/-->/g,th=/>/g,nn=RegExp(`>|${J1}(?:([^\\s"'>=/]+)(${J1}*=${J1}*(?:[^
29
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),rh=/'/g,ih=/"/g,Qf=/^(?:script|style|textarea|title)$/i,e2=n=>(e,...i)=>({_$litType$:n,strings:e,values:i}),R=e2(1),F=e2(2),ao=Symbol.for("lit-noChange"),Mt=Symbol.for("lit-nothing"),nh=new WeakMap,fn=bn.createTreeWalker(bn,129,null,!1),o7=(n,e)=>{const i=n.length-1,o=[];let l,d=e===2?"<svg>":"",u=ls;for(let y=0;y<i;y++){const b=n[y];let M,L,T=-1,$=0;for(;$<b.length&&(u.lastIndex=$,L=u.exec(b),L!==null);)$=u.lastIndex,u===ls?L[1]==="!--"?u=eh:L[1]!==void 0?u=th:L[2]!==void 0?(Qf.test(L[2])&&(l=RegExp("</"+L[2],"g")),u=nn):L[3]!==void 0&&(u=nn):u===nn?L[0]===">"?(u=l!=null?l:ls,T=-1):L[1]===void 0?T=-2:(T=u.lastIndex-L[2].length,M=L[1],u=L[3]===void 0?nn:L[3]==='"'?ih:rh):u===ih||u===rh?u=nn:u===eh||u===th?u=ls:(u=nn,l=void 0);const N=u===nn&&n[y+1].startsWith("/>")?" ":"";d+=u===ls?b+i7:T>=0?(o.push(M),b.slice(0,T)+zc+b.slice(T)+Ai+N):b+Ai+(T===-2?(o.push(void 0),y):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 Ls{constructor({strings:e,_$litType$:i},o){let l;this.parts=[];let d=0,u=0;const v=e.length-1,y=this.parts,[b,M]=o7(e,i);if(this.el=Ls.createElement(b,o),fn.currentNode=this.el.content,i===2){const L=this.el.content,T=L.firstChild;T.remove(),L.append(...T.childNodes)}for(;(l=fn.nextNode())!==null&&y.length<v;){if(l.nodeType===1){if(l.hasAttributes()){const L=[];for(const T of l.getAttributeNames())if(T.endsWith(zc)||T.startsWith(Ai)){const $=M[u++];if(L.push(T),$!==void 0){const N=l.getAttribute($.toLowerCase()+zc).split(Ai),Y=/([.?@])?(.*)/.exec($);y.push({type:1,index:d,name:Y[2],strings:N,ctor:Y[1]==="."?a7:Y[1]==="?"?c7:Y[1]==="@"?u7:vl})}else y.push({type:6,index:d})}for(const T of L)l.removeAttribute(T)}if(Qf.test(l.tagName)){const L=l.textContent.split(Ai),T=L.length-1;if(T>0){l.textContent=so?so.emptyScript:"";for(let $=0;$<T;$++)l.append(L[$],xs()),fn.nextNode(),y.push({type:2,index:++d});l.append(L[T],xs())}}}else if(l.nodeType===8)if(l.data===Xf)y.push({type:2,index:d});else{let L=-1;for(;(L=l.data.indexOf(Ai,L+1))!==-1;)y.push({type:7,index:d}),L+=Ai.length-1}d++}}static createElement(e,i){const o=bn.createElement("template");return o.innerHTML=e,o}}function lo(n,e,i=n,o){var l,d,u,v;if(e===ao)return e;let y=o!==void 0?(l=i._$Co)===null||l===void 0?void 0:l[o]:i._$Cl;const b=zs(e)?void 0:e._$litDirective$;return(y==null?void 0:y.constructor)!==b&&((d=y==null?void 0:y._$AO)===null||d===void 0||d.call(y,!1),b===void 0?y=void 0:(y=new b(n),y._$AT(n,i,o)),o!==void 0?((u=(v=i)._$Co)!==null&&u!==void 0?u:v._$Co=[])[o]=y:i._$Cl=y),y!==void 0&&(e=lo(n,y._$AS(n,e.values),y,o)),e}class s7{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:bn).importNode(o,!0);fn.currentNode=d;let u=fn.nextNode(),v=0,y=0,b=l[0];for(;b!==void 0;){if(v===b.index){let M;b.type===2?M=new ks(u,u.nextSibling,this,e):b.type===1?M=new b.ctor(u,b.name,b.strings,this,e):b.type===6&&(M=new d7(u,this,e)),this._$AV.push(M),b=l[++y]}v!==(b==null?void 0:b.index)&&(u=fn.nextNode(),v++)}return fn.currentNode=bn,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 ks{constructor(e,i,o,l){var d;this.type=2,this._$AH=Mt,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=lo(this,e,i),zs(e)?e===Mt||e==null||e===""?(this._$AH!==Mt&&this._$AR(),this._$AH=Mt):e!==this._$AH&&e!==ao&&this._(e):e._$litType$!==void 0?this.g(e):e.nodeType!==void 0?this.$(e):n7(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!==Mt&&zs(this._$AH)?this._$AA.nextSibling.data=e:this.$(bn.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=Ls.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 s7(d,this),v=u.u(this.options);u.v(o),this.$(v),this._$AH=u}}_$AC(e){let i=nh.get(e.strings);return i===void 0&&nh.set(e.strings,i=new Ls(e)),i}T(e){Jf(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 ks(this.k(xs()),this.k(xs()),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 vl{constructor(e,i,o,l,d){this.type=1,this._$AH=Mt,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=Mt}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=lo(this,e,i,0),u=!zs(e)||e!==this._$AH&&e!==ao,u&&(this._$AH=e);else{const v=e;let y,b;for(e=d[0],y=0;y<d.length-1;y++)b=lo(this,v[o+y],i,y),b===ao&&(b=this._$AH[y]),u||(u=!zs(b)||b!==this._$AH[y]),b===Mt?e=Mt:e!==Mt&&(e+=(b!=null?b:"")+d[y+1]),this._$AH[y]=b}u&&!l&&this.j(e)}j(e){e===Mt?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e!=null?e:"")}}class a7 extends vl{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===Mt?void 0:e}}const l7=so?so.emptyScript:"";class c7 extends vl{constructor(){super(...arguments),this.type=4}j(e){e&&e!==Mt?this.element.setAttribute(this.name,l7):this.element.removeAttribute(this.name)}}class u7 extends vl{constructor(e,i,o,l,d){super(e,i,o,l,d),this.type=5}_$AI(e,i=this){var o;if((e=(o=lo(this,e,i,0))!==null&&o!==void 0?o:Mt)===ao)return;const l=this._$AH,d=e===Mt&&l!==Mt||e.capture!==l.capture||e.once!==l.once||e.passive!==l.passive,u=e!==Mt&&(l===Mt||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){lo(this,e)}}const oh=Ua.litHtmlPolyfillSupport;oh==null||oh(Ls,ks),((X1=Ua.litHtmlVersions)!==null&&X1!==void 0?X1:Ua.litHtmlVersions=[]).push("2.7.4");const t2=(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 ks(e.insertBefore(xs(),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 Q1,ec;let ze=class extends to{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var e,n;const o=super.createRenderRoot();return(e=(n=this.renderOptions).renderBefore)!==null&&e!==void 0||(n.renderBefore=o.firstChild),o}update(e){const n=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=t2(n,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 ao}};ze.finalized=!0,ze._$litElement$=!0,(Q1=globalThis.litElementHydrateSupport)===null||Q1===void 0||Q1.call(globalThis,{LitElement:ze});const sh=globalThis.litElementPolyfillSupport;sh==null||sh({LitElement:ze});((ec=globalThis.litElementVersions)!==null&&ec!==void 0?ec:globalThis.litElementVersions=[]).push("3.3.2");/**
33
+ */var Q1,ec;let ze=class extends to{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=t2(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 ao}};ze.finalized=!0,ze._$litElement$=!0,(Q1=globalThis.litElementHydrateSupport)===null||Q1===void 0||Q1.call(globalThis,{LitElement:ze});const sh=globalThis.litElementPolyfillSupport;sh==null||sh({LitElement:ze});((ec=globalThis.litElementVersions)!==null&&ec!==void 0?ec:globalThis.litElementVersions=[]).push("3.3.2");/**
34
34
  * @license
35
35
  * Copyright 2017 Google LLC
36
36
  * SPDX-License-Identifier: BSD-3-Clause
37
- */const Os=i=>e=>typeof e=="function"?((n,o)=>(customElements.define(n,o),o))(i,e):((n,o)=>{const{kind:l,elements:d}=o;return{kind:l,elements:d,finisher(u){customElements.define(n,u)}}})(i,e);/**
37
+ */const Os=n=>e=>typeof e=="function"?((i,o)=>(customElements.define(i,o),o))(n,e):((i,o)=>{const{kind:l,elements:d}=o;return{kind:l,elements:d,finisher(u){customElements.define(i,u)}}})(n,e);/**
38
38
  * @license
39
39
  * Copyright 2017 Google LLC
40
40
  * SPDX-License-Identifier: BSD-3-Clause
41
- */const h7=(i,e)=>e.kind==="method"&&e.descriptor&&!("value"in e.descriptor)?{...e,finisher(n){n.createProperty(e.key,i)}}:{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:e.key,initializer(){typeof e.initializer=="function"&&(this[e.key]=e.initializer.call(this))},finisher(n){n.createProperty(e.key,i)}},f7=(i,e,n)=>{e.constructor.createProperty(n,i)};function E(i){return(e,n)=>n!==void 0?f7(i,e,n):h7(i,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 E(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
45
- */function Ce(i){return E({...i,state:!0})}/**
45
+ */function Ce(n){return E({...n,state:!0})}/**
46
46
  * @license
47
47
  * Copyright 2017 Google LLC
48
48
  * SPDX-License-Identifier: BSD-3-Clause
49
- */const bl=({finisher:i,descriptor:e})=>(n,o)=>{var l;if(o===void 0){const d=(l=n.originalKey)!==null&&l!==void 0?l:n.key,u=e!=null?{kind:"method",placement:"prototype",key:d,descriptor:e(n.key)}:{...n,key:d};return i!=null&&(u.finisher=function(v){i(v,d)}),u}{const d=n.constructor;e!==void 0&&Object.defineProperty(n,o,e(o)),i==null||i(d,o)}};/**
49
+ */const bl=({finisher:n,descriptor:e})=>(i,o)=>{var l;if(o===void 0){const d=(l=i.originalKey)!==null&&l!==void 0?l:i.key,u=e!=null?{kind:"method",placement:"prototype",key:d,descriptor:e(i.key)}:{...i,key:d};return n!=null&&(u.finisher=function(v){n(v,d)}),u}{const d=i.constructor;e!==void 0&&Object.defineProperty(i,o,e(o)),n==null||n(d,o)}};/**
50
50
  * @license
51
51
  * Copyright 2017 Google LLC
52
52
  * SPDX-License-Identifier: BSD-3-Clause
53
- */function _r(i,e){return bl({descriptor:n=>{const o={get(){var l,d;return(d=(l=this.renderRoot)===null||l===void 0?void 0:l.querySelector(i))!==null&&d!==void 0?d:null},enumerable:!0,configurable:!0};if(e){const l=typeof n=="symbol"?Symbol():"__"+n;o.get=function(){var d,u;return this[l]===void 0&&(this[l]=(u=(d=this.renderRoot)===null||d===void 0?void 0:d.querySelector(i))!==null&&u!==void 0?u:null),this[l]}}return o}})}/**
53
+ */function _r(n,e){return bl({descriptor:i=>{const o={get(){var l,d;return(d=(l=this.renderRoot)===null||l===void 0?void 0:l.querySelector(n))!==null&&d!==void 0?d:null},enumerable:!0,configurable:!0};if(e){const l=typeof i=="symbol"?Symbol():"__"+i;o.get=function(){var d,u;return this[l]===void 0&&(this[l]=(u=(d=this.renderRoot)===null||d===void 0?void 0:d.querySelector(n))!==null&&u!==void 0?u:null),this[l]}}return o}})}/**
54
54
  * @license
55
55
  * Copyright 2017 Google LLC
56
56
  * SPDX-License-Identifier: BSD-3-Clause
57
- */function p7(i){return bl({descriptor:e=>({async get(){var n;return await this.updateComplete,(n=this.renderRoot)===null||n===void 0?void 0:n.querySelector(i)},enumerable:!0,configurable:!0})})}/**
57
+ */function p7(n){return bl({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 tc;const g7=((tc=window.HTMLSlotElement)===null||tc===void 0?void 0:tc.prototype.assignedElements)!=null?(i,e)=>i.assignedElements(e):(i,e)=>i.assignedNodes(e).filter(n=>n.nodeType===Node.ELEMENT_NODE);function fn(i){const{slot:e,selector:n}=i!=null?i:{};return bl({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,i):[];return n?v.filter(y=>y.matches(n)):v},enumerable:!0,configurable:!0})})}/**
61
+ */var tc;const g7=((tc=window.HTMLSlotElement)===null||tc===void 0?void 0:tc.prototype.assignedElements)!=null?(n,e)=>n.assignedElements(e):(n,e)=>n.assignedNodes(e).filter(i=>i.nodeType===Node.ELEMENT_NODE);function hi(n){const{slot:e,selector:i}=n!=null?n:{};return bl({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(y=>y.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 Yc(i,e,n){let o,l=i;return typeof i=="object"?(l=i.slot,o=i):o={flatten:e},n?fn({slot:l,flatten:e,selector:n}):bl({descriptor:d=>({get(){var u,v;const y="slot"+(l?`[name=${l}]`:":not([name])"),b=(u=this.renderRoot)===null||u===void 0?void 0:u.querySelector(y);return(v=b==null?void 0:b.assignedNodes(o))!==null&&v!==void 0?v:[]},enumerable:!0,configurable:!0})})}function Lc(i,e){if(i){if(i instanceof e)return i;if(i instanceof ShadowRoot)return Lc(i.host,e);if("parentNode"in i)return Lc(i.parentElement||i.parentNode,e)}return null}const ce=i=>`brz-${i.toLowerCase()}`,W=i=>customElements.get(i)?(console.warn(`Breeze UI 💨 :: ${i} is already defined! Element registration has been blocked to prevent a crash. Check for duplicate imports of breeze-ui.`),(...e)=>{}):Os(i),Sc=function(){return Date.now().toString(36)+Math.random().toString(36).substring(2)};var v7=Object.defineProperty,b7=Object.getOwnPropertyDescriptor,Xc=(i,e,n,o)=>{for(var l=o>1?void 0:o?b7(e,n):e,d=i.length-1,u;d>=0;d--)(u=i[d])&&(l=(o?u(e,n,l):u(l))||l);return o&&l&&v7(e,n,l),l};const r2=ce("fade-in-out");exports.FadeInOut=class extends ze{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?R``:R`<slot></slot>`}};exports.FadeInOut.styles=Q`
65
+ */function Yc(n,e,i){let o,l=n;return typeof n=="object"?(l=n.slot,o=n):o={flatten:e},i?hi({slot:l,flatten:e,selector:i}):bl({descriptor:d=>({get(){var u,v;const y="slot"+(l?`[name=${l}]`:":not([name])"),b=(u=this.renderRoot)===null||u===void 0?void 0:u.querySelector(y);return(v=b==null?void 0:b.assignedNodes(o))!==null&&v!==void 0?v:[]},enumerable:!0,configurable:!0})})}function Lc(n,e){if(n){if(n instanceof e)return n;if(n instanceof ShadowRoot)return Lc(n.host,e);if("parentNode"in n)return Lc(n.parentElement||n.parentNode,e)}return null}const ce=n=>`brz-${n.toLowerCase()}`,W=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)=>{}):Os(n),Sc=function(){return Date.now().toString(36)+Math.random().toString(36).substring(2)};var v7=Object.defineProperty,b7=Object.getOwnPropertyDescriptor,Xc=(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 r2=ce("fade-in-out");exports.FadeInOut=class extends ze{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?R``:R`<slot></slot>`}};exports.FadeInOut.styles=Q`
66
66
  :host {
67
67
  opacity: 0;
68
68
  animation: fade-in 0.3s ease;
@@ -83,35 +83,35 @@
83
83
  * @license
84
84
  * Copyright 2017 Google LLC
85
85
  * SPDX-License-Identifier: BSD-3-Clause
86
- */const ml={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},yl=i=>(...e)=>({_$litDirective$:i,values:e});let Cl=class{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,n,o){this._$Ct=e,this._$AM=n,this._$Ci=o}_$AS(e,n){return this.update(e,n)}update(e,n){return this.render(...n)}};/**
86
+ */const ml={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},yl=n=>(...e)=>({_$litDirective$:n,values:e});let Cl=class{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,i,o){this._$Ct=e,this._$AM=i,this._$Ci=o}_$AS(e,i){return this.update(e,i)}update(e,i){return this.render(...i)}};/**
87
87
  * @license
88
88
  * Copyright 2018 Google LLC
89
89
  * SPDX-License-Identifier: BSD-3-Clause
90
- */const Qt=yl(class extends Cl{constructor(i){var e;if(super(i),i.type!==ml.ATTRIBUTE||i.name!=="class"||((e=i.strings)===null||e===void 0?void 0:e.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(i){return" "+Object.keys(i).filter(e=>i[e]).join(" ")+" "}update(i,[e]){var n,o;if(this.it===void 0){this.it=new Set,i.strings!==void 0&&(this.nt=new Set(i.strings.join(" ").split(/\s/).filter(d=>d!=="")));for(const d in e)e[d]&&!(!((n=this.nt)===null||n===void 0)&&n.has(d))&&this.it.add(d);return this.render(e)}const l=i.element.classList;this.it.forEach(d=>{d in e||(l.remove(d),this.it.delete(d))});for(const d in e){const u=!!e[d];u===this.it.has(d)||!((o=this.nt)===null||o===void 0)&&o.has(d)||(u?(l.add(d),this.it.add(d)):(l.remove(d),this.it.delete(d)))}return dn}});/**
90
+ */const Qt=yl(class extends Cl{constructor(n){var e;if(super(n),n.type!==ml.ATTRIBUTE||n.name!=="class"||((e=n.strings)===null||e===void 0?void 0:e.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(n){return" "+Object.keys(n).filter(e=>n[e]).join(" ")+" "}update(n,[e]){var i,o;if(this.it===void 0){this.it=new Set,n.strings!==void 0&&(this.nt=new Set(n.strings.join(" ").split(/\s/).filter(d=>d!=="")));for(const d in e)e[d]&&!(!((i=this.nt)===null||i===void 0)&&i.has(d))&&this.it.add(d);return this.render(e)}const l=n.element.classList;this.it.forEach(d=>{d in e||(l.remove(d),this.it.delete(d))});for(const d in e){const u=!!e[d];u===this.it.has(d)||!((o=this.nt)===null||o===void 0)&&o.has(d)||(u?(l.add(d),this.it.add(d)):(l.remove(d),this.it.delete(d)))}return ui}});/**
91
91
  * @license
92
92
  * Copyright 2018 Google LLC
93
93
  * SPDX-License-Identifier: BSD-3-Clause
94
- */const He=i=>i!=null?i:vt,mi=(i,e=Q``)=>{const n=Q`
94
+ */const He=n=>n!=null?n:vt,mn=(n,e=Q``)=>{const i=Q`
95
95
  outline: var(--brz-outline-color) var(--brz-outline-style)
96
96
  var(--brz-outline-width);
97
97
  outline-offset: var(--brz-outline-offset);
98
98
  transition: var(--brz-outline-transition);
99
99
  ${e};
100
100
  `;return Q`
101
- :host ${Gr(i)} {
101
+ :host ${Gr(n)} {
102
102
  outline-color: transparent;
103
103
  }
104
104
 
105
- :host ${Gr(i)}:focus-visible {
106
- ${n};
105
+ :host ${Gr(n)}:focus-visible {
106
+ ${i};
107
107
  }
108
108
 
109
109
  @supports not selector(:focus-visible) {
110
- :host ${Gr(i)}:focus {
111
- ${n};
110
+ :host ${Gr(n)}:focus {
111
+ ${i};
112
112
  }
113
113
  }
114
- `},n2=Q`
114
+ `},i2=Q`
115
115
  background: none;
116
116
  border: 0;
117
117
  border-radius: var(--brz-border-radius-default);
@@ -121,18 +121,18 @@
121
121
  font: inherit;
122
122
  margin: 0;
123
123
  padding: 0;
124
- `,i2=(i,e=Q``)=>Q`
125
- :host ${Gr(i)} {
126
- ${n2};
124
+ `,n2=(n,e=Q``)=>Q`
125
+ :host ${Gr(n)} {
126
+ ${i2};
127
127
  ${e};
128
128
  }
129
129
 
130
- :host ${Gr(i)}:hover {
130
+ :host ${Gr(n)}:hover {
131
131
  color: var(--brz-color-neutral-850);
132
132
  }
133
133
 
134
- ${mi(i)}
135
- `,m7=Math.min,y7=Math.max,C7={left:"right",right:"left",bottom:"top",top:"bottom"},w7={start:"end",end:"start"};function ah(i,e,n){return y7(i,m7(e,n))}function wl(i,e){return typeof i=="function"?i(e):i}function yi(i){return i.split("-")[0]}function xl(i){return i.split("-")[1]}function o2(i){return i==="x"?"y":"x"}function s2(i){return i==="y"?"height":"width"}function co(i){return["top","bottom"].includes(yi(i))?"y":"x"}function a2(i){return o2(co(i))}function x7(i,e,n){n===void 0&&(n=!1);const o=xl(i),l=a2(i),d=s2(l);let u=l==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return e.reference[d]>e.floating[d]&&(u=ja(u)),[u,ja(u)]}function z7(i){const e=ja(i);return[Mc(i),e,Mc(e)]}function Mc(i){return i.replace(/start|end/g,e=>w7[e])}function L7(i,e,n){const o=["left","right"],l=["right","left"],d=["top","bottom"],u=["bottom","top"];switch(i){case"top":case"bottom":return n?e?l:o:e?o:l;case"left":case"right":return e?d:u;default:return[]}}function S7(i,e,n,o){const l=xl(i);let d=L7(yi(i),n==="start",o);return l&&(d=d.map(u=>u+"-"+l),e&&(d=d.concat(d.map(Mc)))),d}function ja(i){return i.replace(/left|right|bottom|top/g,e=>C7[e])}function M7(i){return{top:0,right:0,bottom:0,left:0,...i}}function T7(i){return typeof i!="number"?M7(i):{top:i,right:i,bottom:i,left:i}}function Ga(i){const{x:e,y:n,width:o,height:l}=i;return{width:o,height:l,top:n,left:e,right:e+o,bottom:n+l,x:e,y:n}}function lh(i,e,n){let{reference:o,floating:l}=i;const d=co(e),u=a2(e),v=s2(u),y=yi(e),b=d==="y",M=o.x+o.width/2-l.width/2,L=o.y+o.height/2-l.height/2,T=o[v]/2-l[v]/2;let $;switch(y){case"top":$={x:M,y:o.y-l.height};break;case"bottom":$={x:M,y:o.y+o.height};break;case"right":$={x:o.x+o.width,y:L};break;case"left":$={x:o.x-l.width,y:L};break;default:$={x:o.x,y:o.y}}switch(xl(e)){case"start":$[u]-=T*(n&&b?-1:1);break;case"end":$[u]+=T*(n&&b?-1:1);break}return $}const k7=async(i,e,n)=>{const{placement:o="bottom",strategy:l="absolute",middleware:d=[],platform:u}=n,v=d.filter(Boolean),y=await(u.isRTL==null?void 0:u.isRTL(e));let b=await u.getElementRects({reference:i,floating:e,strategy:l}),{x:M,y:L}=lh(b,o,y),T=o,$={},N=0;for(let Y=0;Y<v.length;Y++){const{name:oe,fn:_}=v[Y],{x:D,y:A,data:B,reset:K}=await _({x:M,y:L,initialPlacement:o,placement:T,strategy:l,middlewareData:$,rects:b,platform:u,elements:{reference:i,floating:e}});M=D!=null?D:M,L=A!=null?A:L,$={...$,[oe]:{...$[oe],...B}},K&&N<=50&&(N++,typeof K=="object"&&(K.placement&&(T=K.placement),K.rects&&(b=K.rects===!0?await u.getElementRects({reference:i,floating:e,strategy:l}):K.rects),{x:M,y:L}=lh(b,T,y)),Y=-1)}return{x:M,y:L,placement:T,strategy:l,middlewareData:$}};async function l2(i,e){var n;e===void 0&&(e={});const{x:o,y:l,platform:d,rects:u,elements:v,strategy:y}=i,{boundary:b="clippingAncestors",rootBoundary:M="viewport",elementContext:L="floating",altBoundary:T=!1,padding:$=0}=wl(e,i),N=T7($),oe=v[T?L==="floating"?"reference":"floating":L],_=Ga(await d.getClippingRect({element:(n=await(d.isElement==null?void 0:d.isElement(oe)))==null||n?oe:oe.contextElement||await(d.getDocumentElement==null?void 0:d.getDocumentElement(v.floating)),boundary:b,rootBoundary:M,strategy:y})),D=L==="floating"?{x:o,y:l,width:u.floating.width,height:u.floating.height}:u.reference,A=await(d.getOffsetParent==null?void 0:d.getOffsetParent(v.floating)),B=await(d.isElement==null?void 0:d.isElement(A))?await(d.getScale==null?void 0:d.getScale(A))||{x:1,y:1}:{x:1,y:1},K=Ga(d.convertOffsetParentRelativeRectToViewportRelativeRect?await d.convertOffsetParentRelativeRectToViewportRelativeRect({elements:v,rect:D,offsetParent:A,strategy:y}):D);return{top:(_.top-K.top+N.top)/B.y,bottom:(K.bottom-_.bottom+N.bottom)/B.y,left:(_.left-K.left+N.left)/B.x,right:(K.right-_.right+N.right)/B.x}}const O7=function(i){return i===void 0&&(i={}),{name:"flip",options:i,async fn(e){var n,o;const{placement:l,middlewareData:d,rects:u,initialPlacement:v,platform:y,elements:b}=e,{mainAxis:M=!0,crossAxis:L=!0,fallbackPlacements:T,fallbackStrategy:$="bestFit",fallbackAxisSideDirection:N="none",flipAlignment:Y=!0,...oe}=wl(i,e);if((n=d.arrow)!=null&&n.alignmentOffset)return{};const _=yi(l),D=co(v),A=yi(v)===v,B=await(y.isRTL==null?void 0:y.isRTL(b.floating)),K=T||(A||!Y?[ja(v)]:z7(v)),ue=N!=="none";!T&&ue&&K.push(...S7(v,Y,N,B));const le=[v,...K],me=await l2(e,oe),Me=[];let ne=((o=d.flip)==null?void 0:o.overflows)||[];if(M&&Me.push(me[_]),L){const x=x7(l,u,B);Me.push(me[x[0]],me[x[1]])}if(ne=[...ne,{placement:l,overflows:Me}],!Me.every(x=>x<=0)){var X,V;const x=(((X=d.flip)==null?void 0:X.index)||0)+1,w=le[x];if(w)return{data:{index:x,overflows:ne},reset:{placement:w}};let U=(V=ne.filter(ie=>ie.overflows[0]<=0).sort((ie,ye)=>ie.overflows[1]-ye.overflows[1])[0])==null?void 0:V.placement;if(!U)switch($){case"bestFit":{var O;const ie=(O=ne.filter(ye=>{if(ue){const ke=co(ye.placement);return ke===D||ke==="y"}return!0}).map(ye=>[ye.placement,ye.overflows.filter(ke=>ke>0).reduce((ke,Re)=>ke+Re,0)]).sort((ye,ke)=>ye[1]-ke[1])[0])==null?void 0:O[0];ie&&(U=ie);break}case"initialPlacement":U=v;break}if(l!==U)return{reset:{placement:U}}}return{}}}};async function $7(i,e){const{placement:n,platform:o,elements:l}=i,d=await(o.isRTL==null?void 0:o.isRTL(l.floating)),u=yi(n),v=xl(n),y=co(n)==="y",b=["left","top"].includes(u)?-1:1,M=d&&y?-1:1,L=wl(e,i);let{mainAxis:T,crossAxis:$,alignmentAxis:N}=typeof L=="number"?{mainAxis:L,crossAxis:0,alignmentAxis:null}:{mainAxis:L.mainAxis||0,crossAxis:L.crossAxis||0,alignmentAxis:L.alignmentAxis};return v&&typeof N=="number"&&($=v==="end"?N*-1:N),y?{x:$*M,y:T*b}:{x:T*b,y:$*M}}const E7=function(i){return i===void 0&&(i=0),{name:"offset",options:i,async fn(e){var n,o;const{x:l,y:d,placement:u,middlewareData:v}=e,y=await $7(e,i);return u===((n=v.offset)==null?void 0:n.placement)&&(o=v.arrow)!=null&&o.alignmentOffset?{}:{x:l+y.x,y:d+y.y,data:{...y,placement:u}}}}},_7=function(i){return i===void 0&&(i={}),{name:"shift",options:i,async fn(e){const{x:n,y:o,placement:l}=e,{mainAxis:d=!0,crossAxis:u=!1,limiter:v={fn:oe=>{let{x:_,y:D}=oe;return{x:_,y:D}}},...y}=wl(i,e),b={x:n,y:o},M=await l2(e,y),L=co(yi(l)),T=o2(L);let $=b[T],N=b[L];if(d){const oe=T==="y"?"top":"left",_=T==="y"?"bottom":"right",D=$+M[oe],A=$-M[_];$=ah(D,$,A)}if(u){const oe=L==="y"?"top":"left",_=L==="y"?"bottom":"right",D=N+M[oe],A=N-M[_];N=ah(D,N,A)}const Y=v.fn({...e,[T]:$,[L]:N});return{...Y,data:{x:Y.x-n,y:Y.y-o,enabled:{[T]:d,[L]:u}}}}}},Tc=Math.min,ro=Math.max,qa=Math.round,Ma=Math.floor,qr=i=>({x:i,y:i});function zl(){return typeof window!="undefined"}function fo(i){return c2(i)?(i.nodeName||"").toLowerCase():"#document"}function dr(i){var e;return(i==null||(e=i.ownerDocument)==null?void 0:e.defaultView)||window}function Yr(i){var e;return(e=(c2(i)?i.ownerDocument:i.document)||window.document)==null?void 0:e.documentElement}function c2(i){return zl()?i instanceof Node||i instanceof dr(i).Node:!1}function Or(i){return zl()?i instanceof Element||i instanceof dr(i).Element:!1}function Kr(i){return zl()?i instanceof HTMLElement||i instanceof dr(i).HTMLElement:!1}function ch(i){return!zl()||typeof ShadowRoot=="undefined"?!1:i instanceof ShadowRoot||i instanceof dr(i).ShadowRoot}function $s(i){const{overflow:e,overflowX:n,overflowY:o,display:l}=$r(i);return/auto|scroll|overlay|hidden|clip/.test(e+o+n)&&!["inline","contents"].includes(l)}function I7(i){return["table","td","th"].includes(fo(i))}function Ll(i){return[":popover-open",":modal"].some(e=>{try{return i.matches(e)}catch{return!1}})}function Jc(i){const e=Qc(),n=Or(i)?$r(i):i;return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!e&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!e&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(o=>(n.willChange||"").includes(o))||["paint","layout","strict","content"].some(o=>(n.contain||"").includes(o))}function A7(i){let e=Hn(i);for(;Kr(e)&&!uo(e);){if(Jc(e))return e;if(Ll(e))return null;e=Hn(e)}return null}function Qc(){return typeof CSS=="undefined"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function uo(i){return["html","body","#document"].includes(fo(i))}function $r(i){return dr(i).getComputedStyle(i)}function Sl(i){return Or(i)?{scrollLeft:i.scrollLeft,scrollTop:i.scrollTop}:{scrollLeft:i.scrollX,scrollTop:i.scrollY}}function Hn(i){if(fo(i)==="html")return i;const e=i.assignedSlot||i.parentNode||ch(i)&&i.host||Yr(i);return ch(e)?e.host:e}function u2(i){const e=Hn(i);return uo(e)?i.ownerDocument?i.ownerDocument.body:i.body:Kr(e)&&$s(e)?e:u2(e)}function Ss(i,e,n){var o;e===void 0&&(e=[]),n===void 0&&(n=!0);const l=u2(i),d=l===((o=i.ownerDocument)==null?void 0:o.body),u=dr(l);if(d){const v=kc(u);return e.concat(u,u.visualViewport||[],$s(l)?l:[],v&&n?Ss(v):[])}return e.concat(l,Ss(l,[],n))}function kc(i){return i.parent&&Object.getPrototypeOf(i.parent)?i.frameElement:null}function d2(i){const e=$r(i);let n=parseFloat(e.width)||0,o=parseFloat(e.height)||0;const l=Kr(i),d=l?i.offsetWidth:n,u=l?i.offsetHeight:o,v=qa(n)!==d||qa(o)!==u;return v&&(n=d,o=u),{width:n,height:o,$:v}}function eu(i){return Or(i)?i:i.contextElement}function no(i){const e=eu(i);if(!Kr(e))return qr(1);const n=e.getBoundingClientRect(),{width:o,height:l,$:d}=d2(e);let u=(d?qa(n.width):n.width)/o,v=(d?qa(n.height):n.height)/l;return(!u||!Number.isFinite(u))&&(u=1),(!v||!Number.isFinite(v))&&(v=1),{x:u,y:v}}const P7=qr(0);function h2(i){const e=dr(i);return!Qc()||!e.visualViewport?P7:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function D7(i,e,n){return e===void 0&&(e=!1),!n||e&&n!==dr(i)?!1:e}function Ci(i,e,n,o){e===void 0&&(e=!1),n===void 0&&(n=!1);const l=i.getBoundingClientRect(),d=eu(i);let u=qr(1);e&&(o?Or(o)&&(u=no(o)):u=no(i));const v=D7(d,n,o)?h2(d):qr(0);let y=(l.left+v.x)/u.x,b=(l.top+v.y)/u.y,M=l.width/u.x,L=l.height/u.y;if(d){const T=dr(d),$=o&&Or(o)?dr(o):o;let N=T,Y=kc(N);for(;Y&&o&&$!==N;){const oe=no(Y),_=Y.getBoundingClientRect(),D=$r(Y),A=_.left+(Y.clientLeft+parseFloat(D.paddingLeft))*oe.x,B=_.top+(Y.clientTop+parseFloat(D.paddingTop))*oe.y;y*=oe.x,b*=oe.y,M*=oe.x,L*=oe.y,y+=A,b+=B,N=dr(Y),Y=kc(N)}}return Ga({width:M,height:L,x:y,y:b})}function tu(i,e){const n=Sl(i).scrollLeft;return e?e.left+n:Ci(Yr(i)).left+n}function f2(i,e,n){n===void 0&&(n=!1);const o=i.getBoundingClientRect(),l=o.left+e.scrollLeft-(n?0:tu(i,o)),d=o.top+e.scrollTop;return{x:l,y:d}}function N7(i){let{elements:e,rect:n,offsetParent:o,strategy:l}=i;const d=l==="fixed",u=Yr(o),v=e?Ll(e.floating):!1;if(o===u||v&&d)return n;let y={scrollLeft:0,scrollTop:0},b=qr(1);const M=qr(0),L=Kr(o);if((L||!L&&!d)&&((fo(o)!=="body"||$s(u))&&(y=Sl(o)),Kr(o))){const $=Ci(o);b=no(o),M.x=$.x+o.clientLeft,M.y=$.y+o.clientTop}const T=u&&!L&&!d?f2(u,y,!0):qr(0);return{width:n.width*b.x,height:n.height*b.y,x:n.x*b.x-y.scrollLeft*b.x+M.x+T.x,y:n.y*b.y-y.scrollTop*b.y+M.y+T.y}}function H7(i){return Array.from(i.getClientRects())}function R7(i){const e=Yr(i),n=Sl(i),o=i.ownerDocument.body,l=ro(e.scrollWidth,e.clientWidth,o.scrollWidth,o.clientWidth),d=ro(e.scrollHeight,e.clientHeight,o.scrollHeight,o.clientHeight);let u=-n.scrollLeft+tu(i);const v=-n.scrollTop;return $r(o).direction==="rtl"&&(u+=ro(e.clientWidth,o.clientWidth)-l),{width:l,height:d,x:u,y:v}}function F7(i,e){const n=dr(i),o=Yr(i),l=n.visualViewport;let d=o.clientWidth,u=o.clientHeight,v=0,y=0;if(l){d=l.width,u=l.height;const b=Qc();(!b||b&&e==="fixed")&&(v=l.offsetLeft,y=l.offsetTop)}return{width:d,height:u,x:v,y}}function B7(i,e){const n=Ci(i,!0,e==="fixed"),o=n.top+i.clientTop,l=n.left+i.clientLeft,d=Kr(i)?no(i):qr(1),u=i.clientWidth*d.x,v=i.clientHeight*d.y,y=l*d.x,b=o*d.y;return{width:u,height:v,x:y,y:b}}function uh(i,e,n){let o;if(e==="viewport")o=F7(i,n);else if(e==="document")o=R7(Yr(i));else if(Or(e))o=B7(e,n);else{const l=h2(i);o={x:e.x-l.x,y:e.y-l.y,width:e.width,height:e.height}}return Ga(o)}function p2(i,e){const n=Hn(i);return n===e||!Or(n)||uo(n)?!1:$r(n).position==="fixed"||p2(n,e)}function V7(i,e){const n=e.get(i);if(n)return n;let o=Ss(i,[],!1).filter(v=>Or(v)&&fo(v)!=="body"),l=null;const d=$r(i).position==="fixed";let u=d?Hn(i):i;for(;Or(u)&&!uo(u);){const v=$r(u),y=Jc(u);!y&&v.position==="fixed"&&(l=null),(d?!y&&!l:!y&&v.position==="static"&&!!l&&["absolute","fixed"].includes(l.position)||$s(u)&&!y&&p2(i,u))?o=o.filter(M=>M!==u):l=v,u=Hn(u)}return e.set(i,o),o}function Z7(i){let{element:e,boundary:n,rootBoundary:o,strategy:l}=i;const u=[...n==="clippingAncestors"?Ll(e)?[]:V7(e,this._c):[].concat(n),o],v=u[0],y=u.reduce((b,M)=>{const L=uh(e,M,l);return b.top=ro(L.top,b.top),b.right=Tc(L.right,b.right),b.bottom=Tc(L.bottom,b.bottom),b.left=ro(L.left,b.left),b},uh(e,v,l));return{width:y.right-y.left,height:y.bottom-y.top,x:y.left,y:y.top}}function W7(i){const{width:e,height:n}=d2(i);return{width:e,height:n}}function U7(i,e,n){const o=Kr(e),l=Yr(e),d=n==="fixed",u=Ci(i,!0,d,e);let v={scrollLeft:0,scrollTop:0};const y=qr(0);if(o||!o&&!d)if((fo(e)!=="body"||$s(l))&&(v=Sl(e)),o){const T=Ci(e,!0,d,e);y.x=T.x+e.clientLeft,y.y=T.y+e.clientTop}else l&&(y.x=tu(l));const b=l&&!o&&!d?f2(l,v):qr(0),M=u.left+v.scrollLeft-y.x-b.x,L=u.top+v.scrollTop-y.y-b.y;return{x:M,y:L,width:u.width,height:u.height}}function rc(i){return $r(i).position==="static"}function dh(i,e){if(!Kr(i)||$r(i).position==="fixed")return null;if(e)return e(i);let n=i.offsetParent;return Yr(i)===n&&(n=n.ownerDocument.body),n}function g2(i,e){const n=dr(i);if(Ll(i))return n;if(!Kr(i)){let l=Hn(i);for(;l&&!uo(l);){if(Or(l)&&!rc(l))return l;l=Hn(l)}return n}let o=dh(i,e);for(;o&&I7(o)&&rc(o);)o=dh(o,e);return o&&uo(o)&&rc(o)&&!Jc(o)?n:o||A7(i)||n}const j7=async function(i){const e=this.getOffsetParent||g2,n=this.getDimensions,o=await n(i.floating);return{reference:U7(i.reference,await e(i.floating),i.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function G7(i){return $r(i).direction==="rtl"}const q7={convertOffsetParentRelativeRectToViewportRelativeRect:N7,getDocumentElement:Yr,getClippingRect:Z7,getOffsetParent:g2,getElementRects:j7,getClientRects:H7,getDimensions:W7,getScale:no,isElement:Or,isRTL:G7};function K7(i,e){let n=null,o;const l=Yr(i);function d(){var v;clearTimeout(o),(v=n)==null||v.disconnect(),n=null}function u(v,y){v===void 0&&(v=!1),y===void 0&&(y=1),d();const{left:b,top:M,width:L,height:T}=i.getBoundingClientRect();if(v||e(),!L||!T)return;const $=Ma(M),N=Ma(l.clientWidth-(b+L)),Y=Ma(l.clientHeight-(M+T)),oe=Ma(b),D={rootMargin:-$+"px "+-N+"px "+-Y+"px "+-oe+"px",threshold:ro(0,Tc(1,y))||1};let A=!0;function B(K){const ue=K[0].intersectionRatio;if(ue!==y){if(!A)return u();ue?u(!1,ue):o=setTimeout(()=>{u(!1,1e-7)},1e3)}A=!1}try{n=new IntersectionObserver(B,{...D,root:l.ownerDocument})}catch{n=new IntersectionObserver(B,D)}n.observe(i)}return u(!0),d}function Y7(i,e,n,o){o===void 0&&(o={});const{ancestorScroll:l=!0,ancestorResize:d=!0,elementResize:u=typeof ResizeObserver=="function",layoutShift:v=typeof IntersectionObserver=="function",animationFrame:y=!1}=o,b=eu(i),M=l||d?[...b?Ss(b):[],...Ss(e)]:[];M.forEach(_=>{l&&_.addEventListener("scroll",n,{passive:!0}),d&&_.addEventListener("resize",n)});const L=b&&v?K7(b,n):null;let T=-1,$=null;u&&($=new ResizeObserver(_=>{let[D]=_;D&&D.target===b&&$&&($.unobserve(e),cancelAnimationFrame(T),T=requestAnimationFrame(()=>{var A;(A=$)==null||A.observe(e)})),n()}),b&&!y&&$.observe(b),$.observe(e));let N,Y=y?Ci(i):null;y&&oe();function oe(){const _=Ci(i);Y&&(_.x!==Y.x||_.y!==Y.y||_.width!==Y.width||_.height!==Y.height)&&n(),Y=_,N=requestAnimationFrame(oe)}return n(),()=>{var _;M.forEach(D=>{l&&D.removeEventListener("scroll",n),d&&D.removeEventListener("resize",n)}),L==null||L(),(_=$)==null||_.disconnect(),$=null,y&&cancelAnimationFrame(N)}}const X7=E7,J7=_7,Q7=O7,e9=(i,e,n)=>{const o=new Map,l={platform:q7,...n},d={...l.platform,_c:o};return k7(i,e,{...l,platform:d})};var t9=Object.defineProperty,r9=Object.getOwnPropertyDescriptor,Ot=(i,e,n,o)=>{for(var l=o>1?void 0:o?r9(e,n):e,d=i.length-1,u;d>=0;d--)(u=i[d])&&(l=(o?u(e,n,l):u(l))||l);return o&&l&&t9(e,n,l),l};let n9=0;const ru=ce("popover"),v2=ce("pure-popover"),b2=["click","hover","focus"],[Ka,Oc,ui]=b2,nu=["dialog","tooltip","menu"],[i9]=nu;class m2 extends CustomEvent{constructor(e){super(`${ru}-${e}`,{bubbles:!0,composed:!0})}}exports.PurePopover=class extends ze{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:n,y:o})=>{Object.assign(this.popoverElement.style,{left:`${n}px`,top:`${o}px`,position:e.strategy})})}))}destroyPopover(){var e;(e=this.cleanupFunction)==null||e.call(this),this.cleanupFunction=void 0}get referenceElement(){var n;const e=(n=this.shadowRoot)==null?void 0:n.querySelector("slot");return e==null?void 0:e.assignedElements({flatten:!0})[0]}get contentElement(){var n;const e=(n=this.shadowRoot)==null?void 0:n.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 m2(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?R`
134
+ ${mn(n)}
135
+ `,m7=Math.min,y7=Math.max,C7={left:"right",right:"left",bottom:"top",top:"bottom"},w7={start:"end",end:"start"};function ah(n,e,i){return y7(n,m7(e,i))}function wl(n,e){return typeof n=="function"?n(e):n}function yn(n){return n.split("-")[0]}function xl(n){return n.split("-")[1]}function o2(n){return n==="x"?"y":"x"}function s2(n){return n==="y"?"height":"width"}function co(n){return["top","bottom"].includes(yn(n))?"y":"x"}function a2(n){return o2(co(n))}function x7(n,e,i){i===void 0&&(i=!1);const o=xl(n),l=a2(n),d=s2(l);let u=l==="x"?o===(i?"end":"start")?"right":"left":o==="start"?"bottom":"top";return e.reference[d]>e.floating[d]&&(u=ja(u)),[u,ja(u)]}function z7(n){const e=ja(n);return[Mc(n),e,Mc(e)]}function Mc(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=xl(n);let d=L7(yn(n),i==="start",o);return l&&(d=d.map(u=>u+"-"+l),e&&(d=d.concat(d.map(Mc)))),d}function ja(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 Ga(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 lh(n,e,i){let{reference:o,floating:l}=n;const d=co(e),u=a2(e),v=s2(u),y=yn(e),b=d==="y",M=o.x+o.width/2-l.width/2,L=o.y+o.height/2-l.height/2,T=o[v]/2-l[v]/2;let $;switch(y){case"top":$={x:M,y:o.y-l.height};break;case"bottom":$={x:M,y:o.y+o.height};break;case"right":$={x:o.x+o.width,y:L};break;case"left":$={x:o.x-l.width,y:L};break;default:$={x:o.x,y:o.y}}switch(xl(e)){case"start":$[u]-=T*(i&&b?-1:1);break;case"end":$[u]+=T*(i&&b?-1:1);break}return $}const k7=async(n,e,i)=>{const{placement:o="bottom",strategy:l="absolute",middleware:d=[],platform:u}=i,v=d.filter(Boolean),y=await(u.isRTL==null?void 0:u.isRTL(e));let b=await u.getElementRects({reference:n,floating:e,strategy:l}),{x:M,y:L}=lh(b,o,y),T=o,$={},N=0;for(let Y=0;Y<v.length;Y++){const{name:oe,fn:_}=v[Y],{x:D,y:A,data:B,reset:K}=await _({x:M,y:L,initialPlacement:o,placement:T,strategy:l,middlewareData:$,rects:b,platform:u,elements:{reference:n,floating:e}});M=D!=null?D:M,L=A!=null?A:L,$={...$,[oe]:{...$[oe],...B}},K&&N<=50&&(N++,typeof K=="object"&&(K.placement&&(T=K.placement),K.rects&&(b=K.rects===!0?await u.getElementRects({reference:n,floating:e,strategy:l}):K.rects),{x:M,y:L}=lh(b,T,y)),Y=-1)}return{x:M,y:L,placement:T,strategy:l,middlewareData:$}};async function l2(n,e){var i;e===void 0&&(e={});const{x:o,y:l,platform:d,rects:u,elements:v,strategy:y}=n,{boundary:b="clippingAncestors",rootBoundary:M="viewport",elementContext:L="floating",altBoundary:T=!1,padding:$=0}=wl(e,n),N=T7($),oe=v[T?L==="floating"?"reference":"floating":L],_=Ga(await d.getClippingRect({element:(i=await(d.isElement==null?void 0:d.isElement(oe)))==null||i?oe:oe.contextElement||await(d.getDocumentElement==null?void 0:d.getDocumentElement(v.floating)),boundary:b,rootBoundary:M,strategy:y})),D=L==="floating"?{x:o,y:l,width:u.floating.width,height:u.floating.height}:u.reference,A=await(d.getOffsetParent==null?void 0:d.getOffsetParent(v.floating)),B=await(d.isElement==null?void 0:d.isElement(A))?await(d.getScale==null?void 0:d.getScale(A))||{x:1,y:1}:{x:1,y:1},K=Ga(d.convertOffsetParentRelativeRectToViewportRelativeRect?await d.convertOffsetParentRelativeRectToViewportRelativeRect({elements:v,rect:D,offsetParent:A,strategy:y}):D);return{top:(_.top-K.top+N.top)/B.y,bottom:(K.bottom-_.bottom+N.bottom)/B.y,left:(_.left-K.left+N.left)/B.x,right:(K.right-_.right+N.right)/B.x}}const O7=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:y,elements:b}=e,{mainAxis:M=!0,crossAxis:L=!0,fallbackPlacements:T,fallbackStrategy:$="bestFit",fallbackAxisSideDirection:N="none",flipAlignment:Y=!0,...oe}=wl(n,e);if((i=d.arrow)!=null&&i.alignmentOffset)return{};const _=yn(l),D=co(v),A=yn(v)===v,B=await(y.isRTL==null?void 0:y.isRTL(b.floating)),K=T||(A||!Y?[ja(v)]:z7(v)),ue=N!=="none";!T&&ue&&K.push(...S7(v,Y,N,B));const le=[v,...K],me=await l2(e,oe),Me=[];let ie=((o=d.flip)==null?void 0:o.overflows)||[];if(M&&Me.push(me[_]),L){const x=x7(l,u,B);Me.push(me[x[0]],me[x[1]])}if(ie=[...ie,{placement:l,overflows:Me}],!Me.every(x=>x<=0)){var X,V;const x=(((X=d.flip)==null?void 0:X.index)||0)+1,w=le[x];if(w)return{data:{index:x,overflows:ie},reset:{placement:w}};let U=(V=ie.filter(ne=>ne.overflows[0]<=0).sort((ne,ye)=>ne.overflows[1]-ye.overflows[1])[0])==null?void 0:V.placement;if(!U)switch($){case"bestFit":{var O;const ne=(O=ie.filter(ye=>{if(ue){const ke=co(ye.placement);return ke===D||ke==="y"}return!0}).map(ye=>[ye.placement,ye.overflows.filter(ke=>ke>0).reduce((ke,Re)=>ke+Re,0)]).sort((ye,ke)=>ye[1]-ke[1])[0])==null?void 0:O[0];ne&&(U=ne);break}case"initialPlacement":U=v;break}if(l!==U)return{reset:{placement:U}}}return{}}}};async function $7(n,e){const{placement:i,platform:o,elements:l}=n,d=await(o.isRTL==null?void 0:o.isRTL(l.floating)),u=yn(i),v=xl(i),y=co(i)==="y",b=["left","top"].includes(u)?-1:1,M=d&&y?-1:1,L=wl(e,n);let{mainAxis:T,crossAxis:$,alignmentAxis:N}=typeof L=="number"?{mainAxis:L,crossAxis:0,alignmentAxis:null}:{mainAxis:L.mainAxis||0,crossAxis:L.crossAxis||0,alignmentAxis:L.alignmentAxis};return v&&typeof N=="number"&&($=v==="end"?N*-1:N),y?{x:$*M,y:T*b}:{x:T*b,y:$*M}}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,y=await $7(e,n);return u===((i=v.offset)==null?void 0:i.placement)&&(o=v.arrow)!=null&&o.alignmentOffset?{}:{x:l+y.x,y:d+y.y,data:{...y,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:oe=>{let{x:_,y:D}=oe;return{x:_,y:D}}},...y}=wl(n,e),b={x:i,y:o},M=await l2(e,y),L=co(yn(l)),T=o2(L);let $=b[T],N=b[L];if(d){const oe=T==="y"?"top":"left",_=T==="y"?"bottom":"right",D=$+M[oe],A=$-M[_];$=ah(D,$,A)}if(u){const oe=L==="y"?"top":"left",_=L==="y"?"bottom":"right",D=N+M[oe],A=N-M[_];N=ah(D,N,A)}const Y=v.fn({...e,[T]:$,[L]:N});return{...Y,data:{x:Y.x-i,y:Y.y-o,enabled:{[T]:d,[L]:u}}}}}},Tc=Math.min,ro=Math.max,qa=Math.round,Ma=Math.floor,qr=n=>({x:n,y:n});function zl(){return typeof window!="undefined"}function fo(n){return c2(n)?(n.nodeName||"").toLowerCase():"#document"}function dr(n){var e;return(n==null||(e=n.ownerDocument)==null?void 0:e.defaultView)||window}function Yr(n){var e;return(e=(c2(n)?n.ownerDocument:n.document)||window.document)==null?void 0:e.documentElement}function c2(n){return zl()?n instanceof Node||n instanceof dr(n).Node:!1}function Or(n){return zl()?n instanceof Element||n instanceof dr(n).Element:!1}function Kr(n){return zl()?n instanceof HTMLElement||n instanceof dr(n).HTMLElement:!1}function ch(n){return!zl()||typeof ShadowRoot=="undefined"?!1:n instanceof ShadowRoot||n instanceof dr(n).ShadowRoot}function $s(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(fo(n))}function Ll(n){return[":popover-open",":modal"].some(e=>{try{return n.matches(e)}catch{return!1}})}function Jc(n){const e=Qc(),i=Or(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=Ni(n);for(;Kr(e)&&!uo(e);){if(Jc(e))return e;if(Ll(e))return null;e=Ni(e)}return null}function Qc(){return typeof CSS=="undefined"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function uo(n){return["html","body","#document"].includes(fo(n))}function $r(n){return dr(n).getComputedStyle(n)}function Sl(n){return Or(n)?{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}:{scrollLeft:n.scrollX,scrollTop:n.scrollY}}function Ni(n){if(fo(n)==="html")return n;const e=n.assignedSlot||n.parentNode||ch(n)&&n.host||Yr(n);return ch(e)?e.host:e}function u2(n){const e=Ni(n);return uo(e)?n.ownerDocument?n.ownerDocument.body:n.body:Kr(e)&&$s(e)?e:u2(e)}function Ss(n,e,i){var o;e===void 0&&(e=[]),i===void 0&&(i=!0);const l=u2(n),d=l===((o=n.ownerDocument)==null?void 0:o.body),u=dr(l);if(d){const v=kc(u);return e.concat(u,u.visualViewport||[],$s(l)?l:[],v&&i?Ss(v):[])}return e.concat(l,Ss(l,[],i))}function kc(n){return n.parent&&Object.getPrototypeOf(n.parent)?n.frameElement:null}function d2(n){const e=$r(n);let i=parseFloat(e.width)||0,o=parseFloat(e.height)||0;const l=Kr(n),d=l?n.offsetWidth:i,u=l?n.offsetHeight:o,v=qa(i)!==d||qa(o)!==u;return v&&(i=d,o=u),{width:i,height:o,$:v}}function eu(n){return Or(n)?n:n.contextElement}function io(n){const e=eu(n);if(!Kr(e))return qr(1);const i=e.getBoundingClientRect(),{width:o,height:l,$:d}=d2(e);let u=(d?qa(i.width):i.width)/o,v=(d?qa(i.height):i.height)/l;return(!u||!Number.isFinite(u))&&(u=1),(!v||!Number.isFinite(v))&&(v=1),{x:u,y:v}}const P7=qr(0);function h2(n){const e=dr(n);return!Qc()||!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!==dr(n)?!1:e}function Cn(n,e,i,o){e===void 0&&(e=!1),i===void 0&&(i=!1);const l=n.getBoundingClientRect(),d=eu(n);let u=qr(1);e&&(o?Or(o)&&(u=io(o)):u=io(n));const v=D7(d,i,o)?h2(d):qr(0);let y=(l.left+v.x)/u.x,b=(l.top+v.y)/u.y,M=l.width/u.x,L=l.height/u.y;if(d){const T=dr(d),$=o&&Or(o)?dr(o):o;let N=T,Y=kc(N);for(;Y&&o&&$!==N;){const oe=io(Y),_=Y.getBoundingClientRect(),D=$r(Y),A=_.left+(Y.clientLeft+parseFloat(D.paddingLeft))*oe.x,B=_.top+(Y.clientTop+parseFloat(D.paddingTop))*oe.y;y*=oe.x,b*=oe.y,M*=oe.x,L*=oe.y,y+=A,b+=B,N=dr(Y),Y=kc(N)}}return Ga({width:M,height:L,x:y,y:b})}function tu(n,e){const i=Sl(n).scrollLeft;return e?e.left+i:Cn(Yr(n)).left+i}function f2(n,e,i){i===void 0&&(i=!1);const o=n.getBoundingClientRect(),l=o.left+e.scrollLeft-(i?0:tu(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=Yr(o),v=e?Ll(e.floating):!1;if(o===u||v&&d)return i;let y={scrollLeft:0,scrollTop:0},b=qr(1);const M=qr(0),L=Kr(o);if((L||!L&&!d)&&((fo(o)!=="body"||$s(u))&&(y=Sl(o)),Kr(o))){const $=Cn(o);b=io(o),M.x=$.x+o.clientLeft,M.y=$.y+o.clientTop}const T=u&&!L&&!d?f2(u,y,!0):qr(0);return{width:i.width*b.x,height:i.height*b.y,x:i.x*b.x-y.scrollLeft*b.x+M.x+T.x,y:i.y*b.y-y.scrollTop*b.y+M.y+T.y}}function H7(n){return Array.from(n.getClientRects())}function R7(n){const e=Yr(n),i=Sl(n),o=n.ownerDocument.body,l=ro(e.scrollWidth,e.clientWidth,o.scrollWidth,o.clientWidth),d=ro(e.scrollHeight,e.clientHeight,o.scrollHeight,o.clientHeight);let u=-i.scrollLeft+tu(n);const v=-i.scrollTop;return $r(o).direction==="rtl"&&(u+=ro(e.clientWidth,o.clientWidth)-l),{width:l,height:d,x:u,y:v}}function F7(n,e){const i=dr(n),o=Yr(n),l=i.visualViewport;let d=o.clientWidth,u=o.clientHeight,v=0,y=0;if(l){d=l.width,u=l.height;const b=Qc();(!b||b&&e==="fixed")&&(v=l.offsetLeft,y=l.offsetTop)}return{width:d,height:u,x:v,y}}function B7(n,e){const i=Cn(n,!0,e==="fixed"),o=i.top+n.clientTop,l=i.left+n.clientLeft,d=Kr(n)?io(n):qr(1),u=n.clientWidth*d.x,v=n.clientHeight*d.y,y=l*d.x,b=o*d.y;return{width:u,height:v,x:y,y:b}}function uh(n,e,i){let o;if(e==="viewport")o=F7(n,i);else if(e==="document")o=R7(Yr(n));else if(Or(e))o=B7(e,i);else{const l=h2(n);o={x:e.x-l.x,y:e.y-l.y,width:e.width,height:e.height}}return Ga(o)}function p2(n,e){const i=Ni(n);return i===e||!Or(i)||uo(i)?!1:$r(i).position==="fixed"||p2(i,e)}function V7(n,e){const i=e.get(n);if(i)return i;let o=Ss(n,[],!1).filter(v=>Or(v)&&fo(v)!=="body"),l=null;const d=$r(n).position==="fixed";let u=d?Ni(n):n;for(;Or(u)&&!uo(u);){const v=$r(u),y=Jc(u);!y&&v.position==="fixed"&&(l=null),(d?!y&&!l:!y&&v.position==="static"&&!!l&&["absolute","fixed"].includes(l.position)||$s(u)&&!y&&p2(n,u))?o=o.filter(M=>M!==u):l=v,u=Ni(u)}return e.set(n,o),o}function Z7(n){let{element:e,boundary:i,rootBoundary:o,strategy:l}=n;const u=[...i==="clippingAncestors"?Ll(e)?[]:V7(e,this._c):[].concat(i),o],v=u[0],y=u.reduce((b,M)=>{const L=uh(e,M,l);return b.top=ro(L.top,b.top),b.right=Tc(L.right,b.right),b.bottom=Tc(L.bottom,b.bottom),b.left=ro(L.left,b.left),b},uh(e,v,l));return{width:y.right-y.left,height:y.bottom-y.top,x:y.left,y:y.top}}function W7(n){const{width:e,height:i}=d2(n);return{width:e,height:i}}function U7(n,e,i){const o=Kr(e),l=Yr(e),d=i==="fixed",u=Cn(n,!0,d,e);let v={scrollLeft:0,scrollTop:0};const y=qr(0);if(o||!o&&!d)if((fo(e)!=="body"||$s(l))&&(v=Sl(e)),o){const T=Cn(e,!0,d,e);y.x=T.x+e.clientLeft,y.y=T.y+e.clientTop}else l&&(y.x=tu(l));const b=l&&!o&&!d?f2(l,v):qr(0),M=u.left+v.scrollLeft-y.x-b.x,L=u.top+v.scrollTop-y.y-b.y;return{x:M,y:L,width:u.width,height:u.height}}function rc(n){return $r(n).position==="static"}function dh(n,e){if(!Kr(n)||$r(n).position==="fixed")return null;if(e)return e(n);let i=n.offsetParent;return Yr(n)===i&&(i=i.ownerDocument.body),i}function g2(n,e){const i=dr(n);if(Ll(n))return i;if(!Kr(n)){let l=Ni(n);for(;l&&!uo(l);){if(Or(l)&&!rc(l))return l;l=Ni(l)}return i}let o=dh(n,e);for(;o&&I7(o)&&rc(o);)o=dh(o,e);return o&&uo(o)&&rc(o)&&!Jc(o)?i:o||A7(n)||i}const j7=async function(n){const e=this.getOffsetParent||g2,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:Yr,getClippingRect:Z7,getOffsetParent:g2,getElementRects:j7,getClientRects:H7,getDimensions:W7,getScale:io,isElement:Or,isRTL:G7};function K7(n,e){let i=null,o;const l=Yr(n);function d(){var v;clearTimeout(o),(v=i)==null||v.disconnect(),i=null}function u(v,y){v===void 0&&(v=!1),y===void 0&&(y=1),d();const{left:b,top:M,width:L,height:T}=n.getBoundingClientRect();if(v||e(),!L||!T)return;const $=Ma(M),N=Ma(l.clientWidth-(b+L)),Y=Ma(l.clientHeight-(M+T)),oe=Ma(b),D={rootMargin:-$+"px "+-N+"px "+-Y+"px "+-oe+"px",threshold:ro(0,Tc(1,y))||1};let A=!0;function B(K){const ue=K[0].intersectionRatio;if(ue!==y){if(!A)return u();ue?u(!1,ue):o=setTimeout(()=>{u(!1,1e-7)},1e3)}A=!1}try{i=new IntersectionObserver(B,{...D,root:l.ownerDocument})}catch{i=new IntersectionObserver(B,D)}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:y=!1}=o,b=eu(n),M=l||d?[...b?Ss(b):[],...Ss(e)]:[];M.forEach(_=>{l&&_.addEventListener("scroll",i,{passive:!0}),d&&_.addEventListener("resize",i)});const L=b&&v?K7(b,i):null;let T=-1,$=null;u&&($=new ResizeObserver(_=>{let[D]=_;D&&D.target===b&&$&&($.unobserve(e),cancelAnimationFrame(T),T=requestAnimationFrame(()=>{var A;(A=$)==null||A.observe(e)})),i()}),b&&!y&&$.observe(b),$.observe(e));let N,Y=y?Cn(n):null;y&&oe();function oe(){const _=Cn(n);Y&&(_.x!==Y.x||_.y!==Y.y||_.width!==Y.width||_.height!==Y.height)&&i(),Y=_,N=requestAnimationFrame(oe)}return i(),()=>{var _;M.forEach(D=>{l&&D.removeEventListener("scroll",i),d&&D.removeEventListener("resize",i)}),L==null||L(),(_=$)==null||_.disconnect(),$=null,y&&cancelAnimationFrame(N)}}const X7=E7,J7=_7,Q7=O7,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,Ot=(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 i9=0;const ru=ce("popover"),v2=ce("pure-popover"),b2=["click","hover","focus"],[Ka,Oc,un]=b2,iu=["dialog","tooltip","menu"],[n9]=iu;class m2 extends CustomEvent{constructor(e){super(`${ru}-${e}`,{bubbles:!0,composed:!0})}}exports.PurePopover=class extends ze{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=n9,this.disabled=!1,this.enablePositionTracking=!1,this.popoverId=`popover-${++i9}`,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 m2(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?R`
136
136
  <slot></slot>
137
137
 
138
138
  <brz-fade-in-out ?shown=${this.isOpen} class="popover-container">
@@ -156,7 +156,7 @@
156
156
  position: absolute';
157
157
  width: max-content;
158
158
  }
159
- `;Ot([E({type:Number})],exports.PurePopover.prototype,"distance",2);Ot([E({type:Number})],exports.PurePopover.prototype,"skidding",2);Ot([E({type:Number,attribute:"delay-on-close"})],exports.PurePopover.prototype,"delayOnClose",2);Ot([E({type:Number,attribute:"delay-on-open"})],exports.PurePopover.prototype,"delayOnOpen",2);Ot([E({type:Boolean,attribute:"is-fixed"})],exports.PurePopover.prototype,"isFixed",2);Ot([E({type:Boolean,attribute:"is-open",reflect:!0})],exports.PurePopover.prototype,"isOpen",2);Ot([E({type:String})],exports.PurePopover.prototype,"placement",2);Ot([E({type:String,attribute:"popover-role"})],exports.PurePopover.prototype,"popoverRole",2);Ot([E({type:Boolean})],exports.PurePopover.prototype,"disabled",2);Ot([E({type:Boolean,attribute:"enable-position-tracking"})],exports.PurePopover.prototype,"enablePositionTracking",2);Ot([Ce()],exports.PurePopover.prototype,"popoverId",2);Ot([Ce()],exports.PurePopover.prototype,"cleanupFunction",2);Ot([Ce()],exports.PurePopover.prototype,"delayTimeout",2);exports.PurePopover=Ot([W(v2)],exports.PurePopover);const Ya=["blur","mouseenter","mouseleave","keydown",Ka,ui],[nc,o9,s9,a9]=Ya;exports.Popover=class extends exports.PurePopover{constructor(){super(),this.trigger="hover focus",this.hasFocus=!1,this.hasPointer=!1,this.listenableEventHandlers={[Ka]:this.handleClick,[ui]:this.handleFocus,[nc]:this.handleBlur,[o9]:this.handleMouseEnter,[s9]:this.handleMouseLeave,[a9]: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(){Ya.forEach(e=>this.addEventListener(e,this.listenableEventHandlers[e],{capture:[ui,nc].includes(e)})),document.addEventListener("mousedown",this.handleOutsideClick)}teardownListeners(){Ya.forEach(e=>this.removeEventListener(e,this.listenableEventHandlers[e],{capture:[ui,nc].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 n;if(!(this.isOpen&&((n=this.contentElement)!=null&&n.contains(e.target)))){if(!this.hasTrigger(Ka))return this.removeFocus();await this.toggleIsOpen()}}async handleFocus(){this.hasTrigger(ui)&&(this.setFocus(),await this.open())}async handleBlur(){!this.hasTrigger(ui)||this.hasPointer||(this.removeFocus(),await this.close())}async handleMouseEnter(){this.setPointer(),!(!this.hasTrigger(Oc)||this.hasFocus)&&await this.open()}async handleMouseLeave(){this.removePointer(),!(!this.hasTrigger(Oc)||this.hasFocus)&&await this.close()}async handleKeyDown(e){e.stopPropagation(),["Escape","Esc"].includes(e.key)&&await this.close()}};Ot([E({type:String})],exports.Popover.prototype,"trigger",2);Ot([Ce()],exports.Popover.prototype,"hasFocus",2);Ot([Ce()],exports.Popover.prototype,"hasPointer",2);exports.Popover=Ot([W(ru)],exports.Popover);var l9=Object.defineProperty,c9=Object.getOwnPropertyDescriptor,pn=(i,e,n,o)=>{for(var l=o>1?void 0:o?c9(e,n):e,d=i.length-1,u;d>=0;d--)(u=i[d])&&(l=(o?u(e,n,l):u(l))||l);return o&&l&&l9(e,n,l),l};const y2=ce("tooltip"),[,u9]=nu;var C2=(i=>(i[i.dark=0]="dark",i[i.light=1]="light",i))(C2||{});exports.Tooltip=class extends ze{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 R`
159
+ `;Ot([E({type:Number})],exports.PurePopover.prototype,"distance",2);Ot([E({type:Number})],exports.PurePopover.prototype,"skidding",2);Ot([E({type:Number,attribute:"delay-on-close"})],exports.PurePopover.prototype,"delayOnClose",2);Ot([E({type:Number,attribute:"delay-on-open"})],exports.PurePopover.prototype,"delayOnOpen",2);Ot([E({type:Boolean,attribute:"is-fixed"})],exports.PurePopover.prototype,"isFixed",2);Ot([E({type:Boolean,attribute:"is-open",reflect:!0})],exports.PurePopover.prototype,"isOpen",2);Ot([E({type:String})],exports.PurePopover.prototype,"placement",2);Ot([E({type:String,attribute:"popover-role"})],exports.PurePopover.prototype,"popoverRole",2);Ot([E({type:Boolean})],exports.PurePopover.prototype,"disabled",2);Ot([E({type:Boolean,attribute:"enable-position-tracking"})],exports.PurePopover.prototype,"enablePositionTracking",2);Ot([Ce()],exports.PurePopover.prototype,"popoverId",2);Ot([Ce()],exports.PurePopover.prototype,"cleanupFunction",2);Ot([Ce()],exports.PurePopover.prototype,"delayTimeout",2);exports.PurePopover=Ot([W(v2)],exports.PurePopover);const Ya=["blur","mouseenter","mouseleave","keydown",Ka,un],[ic,o9,s9,a9]=Ya;exports.Popover=class extends exports.PurePopover{constructor(){super(),this.trigger="hover focus",this.hasFocus=!1,this.hasPointer=!1,this.listenableEventHandlers={[Ka]:this.handleClick,[un]:this.handleFocus,[ic]:this.handleBlur,[o9]:this.handleMouseEnter,[s9]:this.handleMouseLeave,[a9]: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(){Ya.forEach(e=>this.addEventListener(e,this.listenableEventHandlers[e],{capture:[un,ic].includes(e)})),document.addEventListener("mousedown",this.handleOutsideClick)}teardownListeners(){Ya.forEach(e=>this.removeEventListener(e,this.listenableEventHandlers[e],{capture:[un,ic].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(Ka))return this.removeFocus();await this.toggleIsOpen()}}async handleFocus(){this.hasTrigger(un)&&(this.setFocus(),await this.open())}async handleBlur(){!this.hasTrigger(un)||this.hasPointer||(this.removeFocus(),await this.close())}async handleMouseEnter(){this.setPointer(),!(!this.hasTrigger(Oc)||this.hasFocus)&&await this.open()}async handleMouseLeave(){this.removePointer(),!(!this.hasTrigger(Oc)||this.hasFocus)&&await this.close()}async handleKeyDown(e){e.stopPropagation(),["Escape","Esc"].includes(e.key)&&await this.close()}};Ot([E({type:String})],exports.Popover.prototype,"trigger",2);Ot([Ce()],exports.Popover.prototype,"hasFocus",2);Ot([Ce()],exports.Popover.prototype,"hasPointer",2);exports.Popover=Ot([W(ru)],exports.Popover);var l9=Object.defineProperty,c9=Object.getOwnPropertyDescriptor,fi=(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 y2=ce("tooltip"),[,u9]=iu;var C2=(n=>(n[n.dark=0]="dark",n[n.light=1]="light",n))(C2||{});exports.Tooltip=class extends ze{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 R`
160
160
  <brz-popover
161
161
  .popoverRole=${u9}
162
162
  .distance=${8}
@@ -191,9 +191,9 @@
191
191
  background-color: var(--brz-color-white);
192
192
  color: var(--brz-color-text);
193
193
  }
194
- `;pn([E({type:Number,attribute:"delay-on-close"})],exports.Tooltip.prototype,"delayOnClose",2);pn([E({type:Number,attribute:"delay-on-open"})],exports.Tooltip.prototype,"delayOnOpen",2);pn([E({type:Boolean,attribute:"is-fixed",reflect:!0})],exports.Tooltip.prototype,"isFixed",2);pn([E({type:String})],exports.Tooltip.prototype,"placement",2);pn([E({type:String})],exports.Tooltip.prototype,"trigger",2);pn([E({type:Boolean})],exports.Tooltip.prototype,"disabled",2);pn([E({type:String})],exports.Tooltip.prototype,"content",2);pn([E({type:String,reflect:!0})],exports.Tooltip.prototype,"theme",2);exports.Tooltip=pn([W(y2)],exports.Tooltip);var d9=Object.defineProperty,h9=Object.getOwnPropertyDescriptor,br=(i,e,n,o)=>{for(var l=o>1?void 0:o?h9(e,n):e,d=i.length-1,u;d>=0;d--)(u=i[d])&&(l=(o?u(e,n,l):u(l))||l);return o&&l&&d9(e,n,l),l};const w2=ce("avatar"),x2=ce("avatar-group");var Xa=(i=>(i[i.tiny=0]="tiny",i[i.small=1]="small",i[i.medium=2]="medium",i[i.large=3]="large",i))(Xa||{}),z2=(i=>(i[i.solid=0]="solid",i[i.subtle=1]="subtle",i[i.border=2]="border",i))(z2||{});exports.Avatar=class extends ze{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 n=e==null?void 0:e.assignedElements({flatten:!0});this.slottedElementsCount=n.length}get abbreviatedLabel(){if(!this.label||this.isPlaceholderHidden)return"";const n=Xa[this.size]<2?1:2;return this.label.split(" ").slice(0,n).map(o=>o.charAt(0)).join("").toUpperCase()}get iconTemplate(){const e=Xa[this.size],n=()=>{switch(e){case 3:return 20;case 2:case 1:return 10;case 0:return 6.5}};return R`
194
+ `;fi([E({type:Number,attribute:"delay-on-close"})],exports.Tooltip.prototype,"delayOnClose",2);fi([E({type:Number,attribute:"delay-on-open"})],exports.Tooltip.prototype,"delayOnOpen",2);fi([E({type:Boolean,attribute:"is-fixed",reflect:!0})],exports.Tooltip.prototype,"isFixed",2);fi([E({type:String})],exports.Tooltip.prototype,"placement",2);fi([E({type:String})],exports.Tooltip.prototype,"trigger",2);fi([E({type:Boolean})],exports.Tooltip.prototype,"disabled",2);fi([E({type:String})],exports.Tooltip.prototype,"content",2);fi([E({type:String,reflect:!0})],exports.Tooltip.prototype,"theme",2);exports.Tooltip=fi([W(y2)],exports.Tooltip);var d9=Object.defineProperty,h9=Object.getOwnPropertyDescriptor,br=(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 w2=ce("avatar"),x2=ce("avatar-group");var Xa=(n=>(n[n.tiny=0]="tiny",n[n.small=1]="small",n[n.medium=2]="medium",n[n.large=3]="large",n))(Xa||{}),z2=(n=>(n[n.solid=0]="solid",n[n.subtle=1]="subtle",n[n.border=2]="border",n))(z2||{});exports.Avatar=class extends ze{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=Xa[this.size]<2?1:2;return this.label.split(" ").slice(0,i).map(o=>o.charAt(0)).join("").toUpperCase()}get iconTemplate(){const e=Xa[this.size],i=()=>{switch(e){case 3:return 20;case 2:case 1:return 10;case 0:return 6.5}};return R`
195
195
  <span class="icon" aria-label=${this.label}>
196
- <brz-icon size=${n()} icon=${He(this.icon)}></brz-icon>
196
+ <brz-icon size=${i()} icon=${He(this.icon)}></brz-icon>
197
197
  </span>
198
198
  `}get textTemplate(){return R`
199
199
  <span aria-label=${this.label}>
@@ -265,7 +265,7 @@
265
265
  width: var(--brz-avatar-diameter);
266
266
  }
267
267
 
268
- ${mi(".container",Q`
268
+ ${mn(".container",Q`
269
269
  z-index: 1;
270
270
  `)}
271
271
 
@@ -379,64 +379,64 @@
379
379
  ::slotted(sp-avatar:not(:first-child)) {
380
380
  margin-left: -0.6em;
381
381
  }
382
- `;exports.AvatarGroup=br([W(x2)],exports.AvatarGroup);const iu=.25,Es=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20],f9=Es.map(i=>Q`
383
- --brz-spacing-${i}: ${i*iu}rem;
382
+ `;exports.AvatarGroup=br([W(x2)],exports.AvatarGroup);const nu=.25,Es=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20],f9=Es.map(n=>Q`
383
+ --brz-spacing-${n}: ${n*nu}rem;
384
384
  `),L2=Q`
385
385
  :host {
386
386
  --brz-spacing-px: 1px;
387
- --brz-spacing-half: ${.5*iu}rem;
387
+ --brz-spacing-half: ${.5*nu}rem;
388
388
 
389
389
  ${Gr(f9.join(""))};
390
390
  }
391
- `,p9=["m","p"],g9=["x","y"],v9=["t","r","b","l"],b9=p9.flatMap(i=>[i,...g9.map(e=>`${i}${e}`),...v9.map(e=>`${i}${e}`)]),m9=b9.reduce((i,e)=>({...i,[e]:{type:Number,reflect:!0}}),{}),y9=i=>Q`
392
- :host([m='${i}']),
393
- :host([my='${i}']),
394
- :host([mt='${i}']) {
395
- margin-top: var(--brz-spacing-${i});
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=>Q`
392
+ :host([m='${n}']),
393
+ :host([my='${n}']),
394
+ :host([mt='${n}']) {
395
+ margin-top: var(--brz-spacing-${n});
396
396
  }
397
397
 
398
- :host([m='${i}']),
399
- :host([my='${i}']),
400
- :host([mb='${i}']) {
401
- margin-bottom: var(--brz-spacing-${i});
398
+ :host([m='${n}']),
399
+ :host([my='${n}']),
400
+ :host([mb='${n}']) {
401
+ margin-bottom: var(--brz-spacing-${n});
402
402
  }
403
403
 
404
- :host([m='${i}']),
405
- :host([mx='${i}']),
406
- :host([ml='${i}']) {
407
- margin-left: var(--brz-spacing-${i});
404
+ :host([m='${n}']),
405
+ :host([mx='${n}']),
406
+ :host([ml='${n}']) {
407
+ margin-left: var(--brz-spacing-${n});
408
408
  }
409
409
 
410
- :host([m='${i}']),
411
- :host([mx='${i}']),
412
- :host([mr='${i}']) {
413
- margin-right: var(--brz-spacing-${i});
410
+ :host([m='${n}']),
411
+ :host([mx='${n}']),
412
+ :host([mr='${n}']) {
413
+ margin-right: var(--brz-spacing-${n});
414
414
  }
415
415
 
416
- :host([p='${i}']),
417
- :host([py='${i}']),
418
- :host([pt='${i}']) {
419
- padding-top: var(--brz-spacing-${i});
416
+ :host([p='${n}']),
417
+ :host([py='${n}']),
418
+ :host([pt='${n}']) {
419
+ padding-top: var(--brz-spacing-${n});
420
420
  }
421
421
 
422
- :host([p='${i}']),
423
- :host([py='${i}']),
424
- :host([pb='${i}']) {
425
- padding-bottom: var(--brz-spacing-${i});
422
+ :host([p='${n}']),
423
+ :host([py='${n}']),
424
+ :host([pb='${n}']) {
425
+ padding-bottom: var(--brz-spacing-${n});
426
426
  }
427
427
 
428
- :host([p='${i}']),
429
- :host([px='${i}']),
430
- :host([pl='${i}']) {
431
- padding-left: var(--brz-spacing-${i});
428
+ :host([p='${n}']),
429
+ :host([px='${n}']),
430
+ :host([pl='${n}']) {
431
+ padding-left: var(--brz-spacing-${n});
432
432
  }
433
433
 
434
- :host([p='${i}']),
435
- :host([px='${i}']),
436
- :host([pr='${i}']) {
437
- padding-right: var(--brz-spacing-${i});
434
+ :host([p='${n}']),
435
+ :host([px='${n}']),
436
+ :host([pr='${n}']) {
437
+ padding-right: var(--brz-spacing-${n});
438
438
  }
439
- `,C9=Es.map(y9),w9=i=>{var n,o;class e extends i{}return e.styles=[(n=i.styles)!=null?n:[],...C9],e.properties={...(o=i.properties)!=null?o:{},...m9},e},po=w9(ze),x9=i=>i.viewBox!==void 0,z9={arrowDown:{svg:F`
439
+ `,C9=Es.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},po=w9(ze),x9=n=>n.viewBox!==void 0,z9={arrowDown:{svg:F`
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:F`<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:F`<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",S2=i=>x9(i)?i:{svg:i,viewBox:L9},ou={actions:F`
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:F`<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:F`<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",S2=n=>x9(n)?n:{svg:n,viewBox:L9},ou={actions:F`
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>
@@ -1223,12 +1223,12 @@
1223
1223
  <circle class="st0" cx="9" cy="13" r="1"/>
1224
1224
  <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"/>
1225
1225
  </g>
1226
- <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:F`<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:F`<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(ou);var M9=Object.defineProperty,T9=Object.getOwnPropertyDescriptor,su=(i,e,n,o)=>{for(var l=o>1?void 0:o?T9(e,n):e,d=i.length-1,u;d>=0;d--)(u=i[d])&&(l=(o?u(e,n,l):u(l))||l);return o&&l&&M9(e,n,l),l};const M2=ce("icon");exports.Icon=class extends ze{constructor(){super(...arguments),this.size=18,this.icon="close"}render(){const{svg:e,viewBox:n}=S2(ou[this.icon]);return R`
1226
+ <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:F`<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:F`<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(ou);var M9=Object.defineProperty,T9=Object.getOwnPropertyDescriptor,su=(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 M2=ce("icon");exports.Icon=class extends ze{constructor(){super(...arguments),this.size=18,this.icon="close"}render(){const{svg:e,viewBox:i}=S2(ou[this.icon]);return R`
1227
1227
  <svg
1228
1228
  role="presentation"
1229
1229
  width=${this.size}
1230
1230
  height=${this.size}
1231
- viewBox=${n}
1231
+ viewBox=${i}
1232
1232
  >
1233
1233
  ${e}
1234
1234
  </svg>
@@ -1241,7 +1241,7 @@
1241
1241
  svg {
1242
1242
  fill: currentColor;
1243
1243
  }
1244
- `;su([E({type:Number,reflect:!0})],exports.Icon.prototype,"size",2);su([E({type:String})],exports.Icon.prototype,"icon",2);exports.Icon=su([W(M2)],exports.Icon);var k9=Object.defineProperty,O9=Object.getOwnPropertyDescriptor,gn=(i,e,n,o)=>{for(var l=o>1?void 0:o?O9(e,n):e,d=i.length-1,u;d>=0;d--)(u=i[d])&&(l=(o?u(e,n,l):u(l))||l);return o&&l&&k9(e,n,l),l};const T2=ce("link"),k2=ce("link-button"),$9=["a","button"],E9=Q`
1244
+ `;su([E({type:Number,reflect:!0})],exports.Icon.prototype,"size",2);su([E({type:String})],exports.Icon.prototype,"icon",2);exports.Icon=su([W(M2)],exports.Icon);var k9=Object.defineProperty,O9=Object.getOwnPropertyDescriptor,pi=(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&&k9(e,i,l),l};const T2=ce("link"),k2=ce("link-button"),$9=["a","button"],E9=Q`
1245
1245
  :host {
1246
1246
  display: inline-flex; /* Avoids the custom element wrapper "padding" the link in some cases */
1247
1247
  align-items: center;
@@ -1249,11 +1249,11 @@
1249
1249
  font-weight: var(--brz-font-weight-medium);
1250
1250
  }
1251
1251
 
1252
- ${mi("a",Q`
1252
+ ${mn("a",Q`
1253
1253
  border-radius: var(--brz-outline-border-radius);
1254
1254
  `)}
1255
1255
 
1256
- ${mi("button",Q`
1256
+ ${mn("button",Q`
1257
1257
  border-radius: var(--brz-outline-border-radius);
1258
1258
  `)}
1259
1259
 
@@ -1309,7 +1309,7 @@
1309
1309
  </button>
1310
1310
 
1311
1311
  ${this.externalIcon}
1312
- `}render(){switch(this.element){case"button":return this.buttonTemplate;case"a":default:return this.anchorTemplate}}};exports.Link.styles=[au,_9,E9];gn([E()],exports.Link.prototype,"element",2);gn([E({type:Boolean,reflect:!0})],exports.Link.prototype,"virtual",2);gn([E({type:String,reflect:!0})],exports.Link.prototype,"href",2);gn([E({type:String,attribute:"link-type",reflect:!0})],exports.Link.prototype,"linkType",2);gn([E({type:String,reflect:!0})],exports.Link.prototype,"target",2);gn([E({type:String,reflect:!0})],exports.Link.prototype,"rel",2);gn([E({type:Boolean,attribute:"is-external",reflect:!0})],exports.Link.prototype,"isExternal",2);exports.Link=gn([W(T2)],exports.Link);exports.LinkButton=class extends exports.Link{connectedCallback(){super.connectedCallback(),this.element="button"}};exports.LinkButton=gn([W(k2)],exports.LinkButton);var A9=Object.defineProperty,P9=Object.getOwnPropertyDescriptor,Ml=(i,e,n,o)=>{for(var l=o>1?void 0:o?P9(e,n):e,d=i.length-1,u;d>=0;d--)(u=i[d])&&(l=(o?u(e,n,l):u(l))||l);return o&&l&&A9(e,n,l),l};const O2=ce("row"),$2=ce("column");exports.Row=class extends ze{render(){return R`<slot></slot>`}};exports.Row.styles=Q`
1312
+ `}render(){switch(this.element){case"button":return this.buttonTemplate;case"a":default:return this.anchorTemplate}}};exports.Link.styles=[au,_9,E9];pi([E()],exports.Link.prototype,"element",2);pi([E({type:Boolean,reflect:!0})],exports.Link.prototype,"virtual",2);pi([E({type:String,reflect:!0})],exports.Link.prototype,"href",2);pi([E({type:String,attribute:"link-type",reflect:!0})],exports.Link.prototype,"linkType",2);pi([E({type:String,reflect:!0})],exports.Link.prototype,"target",2);pi([E({type:String,reflect:!0})],exports.Link.prototype,"rel",2);pi([E({type:Boolean,attribute:"is-external",reflect:!0})],exports.Link.prototype,"isExternal",2);exports.Link=pi([W(T2)],exports.Link);exports.LinkButton=class extends exports.Link{connectedCallback(){super.connectedCallback(),this.element="button"}};exports.LinkButton=pi([W(k2)],exports.LinkButton);var A9=Object.defineProperty,P9=Object.getOwnPropertyDescriptor,Ml=(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 O2=ce("row"),$2=ce("column");exports.Row=class extends ze{render(){return R`<slot></slot>`}};exports.Row.styles=Q`
1313
1313
  :host {
1314
1314
  display: flex;
1315
1315
  flex-direction: row;
@@ -1347,7 +1347,7 @@
1347
1347
  :host([align='right']) {
1348
1348
  align-items: flex-end;
1349
1349
  }
1350
- `;Ml([E({reflect:!0})],exports.Column.prototype,"align",2);exports.Column=Ml([W($2)],exports.Column);var D9=Object.defineProperty,N9=Object.getOwnPropertyDescriptor,E2=(i,e,n,o)=>{for(var l=o>1?void 0:o?N9(e,n):e,d=i.length-1,u;d>=0;d--)(u=i[d])&&(l=(o?u(e,n,l):u(l))||l);return o&&l&&D9(e,n,l),l};const _2=ce("loading-spinner");exports.LoadingSpinner=class extends ze{constructor(){super(...arguments),this.size=24}render(){return R`
1350
+ `;Ml([E({reflect:!0})],exports.Column.prototype,"align",2);exports.Column=Ml([W($2)],exports.Column);var D9=Object.defineProperty,N9=Object.getOwnPropertyDescriptor,E2=(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 _2=ce("loading-spinner");exports.LoadingSpinner=class extends ze{constructor(){super(...arguments),this.size=24}render(){return R`
1351
1351
  <div class="loading-spinner">
1352
1352
  <svg
1353
1353
  class="loading-spinner--circular"
@@ -1402,7 +1402,7 @@
1402
1402
  stroke-dashoffset: -124px;
1403
1403
  }
1404
1404
  }
1405
- `;E2([E({type:Number})],exports.LoadingSpinner.prototype,"size",2);exports.LoadingSpinner=E2([W(_2)],exports.LoadingSpinner);var H9=Object.defineProperty,R9=Object.getOwnPropertyDescriptor,$t=(i,e,n,o)=>{for(var l=o>1?void 0:o?R9(e,n):e,d=i.length-1,u;d>=0;d--)(u=i[d])&&(l=(o?u(e,n,l):u(l))||l);return o&&l&&H9(e,n,l),l};const lu=ce("button"),I2=ce("button-group");class A2 extends CustomEvent{constructor(e){super(`${lu}-${e}`,{bubbles:!0,composed:!0})}}const F9=["primary","secondary","transparent","transparent-primary"];exports.Button=class extends po{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(n=>{var o;return!!((o=n.textContent)!=null&&o.replace(`
1405
+ `;E2([E({type:Number})],exports.LoadingSpinner.prototype,"size",2);exports.LoadingSpinner=E2([W(_2)],exports.LoadingSpinner);var H9=Object.defineProperty,R9=Object.getOwnPropertyDescriptor,$t=(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 lu=ce("button"),I2=ce("button-group");class A2 extends CustomEvent{constructor(e){super(`${lu}-${e}`,{bubbles:!0,composed:!0})}}const F9=["primary","secondary","transparent","transparent-primary"];exports.Button=class extends po{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(`
1406
1406
  `,"").trim())})||(this.iconOnly=!!(this.leadingIcon||this.trailingIcon))})}focus(e){this.buttonElement.focus(e)}emit(e){this.dispatchEvent(new A2(e))}get classes(){return Qt({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 R`
1407
1407
  <a
1408
1408
  part="button"
@@ -1511,7 +1511,7 @@
1511
1511
  );
1512
1512
  }
1513
1513
 
1514
- ${mi(".button")}
1514
+ ${mn(".button")}
1515
1515
 
1516
1516
  :host([leading-icon][icon-only]) .button,
1517
1517
  :host([trailing-icon][icon-only]) .button {
@@ -1665,7 +1665,7 @@
1665
1665
  --brz-button-r-radius: 0;
1666
1666
  --brz-border-r-width: 0;
1667
1667
  }
1668
- `;$t([E({type:Boolean})],exports.ButtonGroup.prototype,"compact",2);exports.ButtonGroup=$t([W(I2)],exports.ButtonGroup);const B9=["small","medium","large"];var V9=Object.defineProperty,Z9=Object.getOwnPropertyDescriptor,Xr=(i,e,n,o)=>{for(var l=o>1?void 0:o?Z9(e,n):e,d=i.length-1,u;d>=0;d--)(u=i[d])&&(l=(o?u(e,n,l):u(l))||l);return o&&l&&V9(e,n,l),l};const P2=ce("dropdown-menu"),W9=[...B9,"fluid"];exports.DropdownMenu=class extends ze{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:n}=this.referenceElement,o=window.getComputedStyle(this.referenceElement);this.fluidWidth=o.boxSizing==="border-box"&&o.width!==void 0?e:n}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 R`
1668
+ `;$t([E({type:Boolean})],exports.ButtonGroup.prototype,"compact",2);exports.ButtonGroup=$t([W(I2)],exports.ButtonGroup);const B9=["small","medium","large"];var V9=Object.defineProperty,Z9=Object.getOwnPropertyDescriptor,Xr=(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 P2=ce("dropdown-menu"),W9=[...B9,"fluid"];exports.DropdownMenu=class extends ze{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 R`
1669
1669
  <brz-popover
1670
1670
  trigger="click"
1671
1671
  placement="bottom-start"
@@ -1691,7 +1691,7 @@
1691
1691
  </brz-menu>
1692
1692
  </brz-popover>
1693
1693
  `}};exports.DropdownMenu.styles=Q`
1694
- ${mi(":focus-within brz-menu:focus-visible")};
1694
+ ${mn(":focus-within brz-menu:focus-visible")};
1695
1695
  brz-menu {
1696
1696
  overflow-y: auto;
1697
1697
  overflow-x: hidden;
@@ -1713,30 +1713,30 @@
1713
1713
  brz-menu::-webkit-scrollbar-track {
1714
1714
  background-clip: padding-box;
1715
1715
  }
1716
- `;Xr([E({type:Boolean})],exports.DropdownMenu.prototype,"multiselect",2);Xr([E({type:Boolean})],exports.DropdownMenu.prototype,"selectable",2);Xr([E({type:Array})],exports.DropdownMenu.prototype,"selected",2);Xr([E()],exports.DropdownMenu.prototype,"size",2);Xr([Ce()],exports.DropdownMenu.prototype,"fluidWidth",2);Xr([Ce()],exports.DropdownMenu.prototype,"disabled",2);Xr([_r("brz-menu")],exports.DropdownMenu.prototype,"menu",2);Xr([_r("brz-popover")],exports.DropdownMenu.prototype,"popover",2);Xr([fn()],exports.DropdownMenu.prototype,"slottedElements",2);exports.DropdownMenu=Xr([W(P2)],exports.DropdownMenu);var gs=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function cu(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}function U9(i,e,n,o){for(var l=i.length,d=n+(o?1:-1);o?d--:++d<l;)if(e(i[d],d,i))return d;return-1}var j9=U9;function G9(){this.__data__=[],this.size=0}var q9=G9;function K9(i,e){return i===e||i!==i&&e!==e}var uu=K9,Y9=uu;function X9(i,e){for(var n=i.length;n--;)if(Y9(i[n][0],e))return n;return-1}var Tl=X9,J9=Tl,Q9=Array.prototype,e8=Q9.splice;function t8(i){var e=this.__data__,n=J9(e,i);if(n<0)return!1;var o=e.length-1;return n==o?e.pop():e8.call(e,n,1),--this.size,!0}var r8=t8,n8=Tl;function i8(i){var e=this.__data__,n=n8(e,i);return n<0?void 0:e[n][1]}var o8=i8,s8=Tl;function a8(i){return s8(this.__data__,i)>-1}var l8=a8,c8=Tl;function u8(i,e){var n=this.__data__,o=c8(n,i);return o<0?(++this.size,n.push([i,e])):n[o][1]=e,this}var d8=u8,h8=q9,f8=r8,p8=o8,g8=l8,v8=d8;function go(i){var e=-1,n=i==null?0:i.length;for(this.clear();++e<n;){var o=i[e];this.set(o[0],o[1])}}go.prototype.clear=h8;go.prototype.delete=f8;go.prototype.get=p8;go.prototype.has=g8;go.prototype.set=v8;var kl=go,b8=kl;function m8(){this.__data__=new b8,this.size=0}var y8=m8;function C8(i){var e=this.__data__,n=e.delete(i);return this.size=e.size,n}var w8=C8;function x8(i){return this.__data__.get(i)}var z8=x8;function L8(i){return this.__data__.has(i)}var S8=L8,M8=typeof gs=="object"&&gs&&gs.Object===Object&&gs,D2=M8,T8=D2,k8=typeof self=="object"&&self&&self.Object===Object&&self,O8=T8||k8||Function("return this")(),vn=O8,$8=vn,E8=$8.Symbol,Ol=E8,hh=Ol,N2=Object.prototype,_8=N2.hasOwnProperty,I8=N2.toString,cs=hh?hh.toStringTag:void 0;function A8(i){var e=_8.call(i,cs),n=i[cs];try{i[cs]=void 0;var o=!0}catch{}var l=I8.call(i);return o&&(e?i[cs]=n:delete i[cs]),l}var P8=A8,D8=Object.prototype,N8=D8.toString;function H8(i){return N8.call(i)}var R8=H8,fh=Ol,F8=P8,B8=R8,V8="[object Null]",Z8="[object Undefined]",ph=fh?fh.toStringTag:void 0;function W8(i){return i==null?i===void 0?Z8:V8:ph&&ph in Object(i)?F8(i):B8(i)}var _s=W8;function U8(i){var e=typeof i;return i!=null&&(e=="object"||e=="function")}var Is=U8,j8=_s,G8=Is,q8="[object AsyncFunction]",K8="[object Function]",Y8="[object GeneratorFunction]",X8="[object Proxy]";function J8(i){if(!G8(i))return!1;var e=j8(i);return e==K8||e==Y8||e==q8||e==X8}var H2=J8,Q8=vn,eg=Q8["__core-js_shared__"],tg=eg,ic=tg,gh=function(){var i=/[^.]+$/.exec(ic&&ic.keys&&ic.keys.IE_PROTO||"");return i?"Symbol(src)_1."+i:""}();function rg(i){return!!gh&&gh in i}var ng=rg,ig=Function.prototype,og=ig.toString;function sg(i){if(i!=null){try{return og.call(i)}catch{}try{return i+""}catch{}}return""}var R2=sg,ag=H2,lg=ng,cg=Is,ug=R2,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(i){if(!cg(i)||lg(i))return!1;var e=ag(i)?bg:hg;return e.test(ug(i))}var yg=mg;function Cg(i,e){return i==null?void 0:i[e]}var wg=Cg,xg=yg,zg=wg;function Lg(i,e){var n=zg(i,e);return xg(n)?n:void 0}var vo=Lg,Sg=vo,Mg=vn,Tg=Sg(Mg,"Map"),du=Tg,kg=vo,Og=kg(Object,"create"),$l=Og,vh=$l;function $g(){this.__data__=vh?vh(null):{},this.size=0}var Eg=$g;function _g(i){var e=this.has(i)&&delete this.__data__[i];return this.size-=e?1:0,e}var Ig=_g,Ag=$l,Pg="__lodash_hash_undefined__",Dg=Object.prototype,Ng=Dg.hasOwnProperty;function Hg(i){var e=this.__data__;if(Ag){var n=e[i];return n===Pg?void 0:n}return Ng.call(e,i)?e[i]:void 0}var Rg=Hg,Fg=$l,Bg=Object.prototype,Vg=Bg.hasOwnProperty;function Zg(i){var e=this.__data__;return Fg?e[i]!==void 0:Vg.call(e,i)}var Wg=Zg,Ug=$l,jg="__lodash_hash_undefined__";function Gg(i,e){var n=this.__data__;return this.size+=this.has(i)?0:1,n[i]=Ug&&e===void 0?jg:e,this}var qg=Gg,Kg=Eg,Yg=Ig,Xg=Rg,Jg=Wg,Qg=qg;function bo(i){var e=-1,n=i==null?0:i.length;for(this.clear();++e<n;){var o=i[e];this.set(o[0],o[1])}}bo.prototype.clear=Kg;bo.prototype.delete=Yg;bo.prototype.get=Xg;bo.prototype.has=Jg;bo.prototype.set=Qg;var ev=bo,bh=ev,tv=kl,rv=du;function nv(){this.size=0,this.__data__={hash:new bh,map:new(rv||tv),string:new bh}}var iv=nv;function ov(i){var e=typeof i;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?i!=="__proto__":i===null}var sv=ov,av=sv;function lv(i,e){var n=i.__data__;return av(e)?n[typeof e=="string"?"string":"hash"]:n.map}var El=lv,cv=El;function uv(i){var e=cv(this,i).delete(i);return this.size-=e?1:0,e}var dv=uv,hv=El;function fv(i){return hv(this,i).get(i)}var pv=fv,gv=El;function vv(i){return gv(this,i).has(i)}var bv=vv,mv=El;function yv(i,e){var n=mv(this,i),o=n.size;return n.set(i,e),this.size+=n.size==o?0:1,this}var Cv=yv,wv=iv,xv=dv,zv=pv,Lv=bv,Sv=Cv;function mo(i){var e=-1,n=i==null?0:i.length;for(this.clear();++e<n;){var o=i[e];this.set(o[0],o[1])}}mo.prototype.clear=wv;mo.prototype.delete=xv;mo.prototype.get=zv;mo.prototype.has=Lv;mo.prototype.set=Sv;var hu=mo,Mv=kl,Tv=du,kv=hu,Ov=200;function $v(i,e){var n=this.__data__;if(n instanceof Mv){var o=n.__data__;if(!Tv||o.length<Ov-1)return o.push([i,e]),this.size=++n.size,this;n=this.__data__=new kv(o)}return n.set(i,e),this.size=n.size,this}var Ev=$v,_v=kl,Iv=y8,Av=w8,Pv=z8,Dv=S8,Nv=Ev;function yo(i){var e=this.__data__=new _v(i);this.size=e.size}yo.prototype.clear=Iv;yo.prototype.delete=Av;yo.prototype.get=Pv;yo.prototype.has=Dv;yo.prototype.set=Nv;var F2=yo,Hv="__lodash_hash_undefined__";function Rv(i){return this.__data__.set(i,Hv),this}var Fv=Rv;function Bv(i){return this.__data__.has(i)}var Vv=Bv,Zv=hu,Wv=Fv,Uv=Vv;function Ja(i){var e=-1,n=i==null?0:i.length;for(this.__data__=new Zv;++e<n;)this.add(i[e])}Ja.prototype.add=Ja.prototype.push=Wv;Ja.prototype.has=Uv;var jv=Ja;function Gv(i,e){for(var n=-1,o=i==null?0:i.length;++n<o;)if(e(i[n],n,i))return!0;return!1}var qv=Gv;function Kv(i,e){return i.has(e)}var Yv=Kv,Xv=jv,Jv=qv,Qv=Yv,eb=1,tb=2;function rb(i,e,n,o,l,d){var u=n&eb,v=i.length,y=e.length;if(v!=y&&!(u&&y>v))return!1;var b=d.get(i),M=d.get(e);if(b&&M)return b==e&&M==i;var L=-1,T=!0,$=n&tb?new Xv:void 0;for(d.set(i,e),d.set(e,i);++L<v;){var N=i[L],Y=e[L];if(o)var oe=u?o(Y,N,L,e,i,d):o(N,Y,L,i,e,d);if(oe!==void 0){if(oe)continue;T=!1;break}if($){if(!Jv(e,function(_,D){if(!Qv($,D)&&(N===_||l(N,_,n,o,d)))return $.push(D)})){T=!1;break}}else if(!(N===Y||l(N,Y,n,o,d))){T=!1;break}}return d.delete(i),d.delete(e),T}var B2=rb,nb=vn,ib=nb.Uint8Array,ob=ib;function sb(i){var e=-1,n=Array(i.size);return i.forEach(function(o,l){n[++e]=[l,o]}),n}var ab=sb;function lb(i){var e=-1,n=Array(i.size);return i.forEach(function(o){n[++e]=o}),n}var cb=lb,mh=Ol,yh=ob,ub=uu,db=B2,hb=ab,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]",Ch=mh?mh.prototype:void 0,oc=Ch?Ch.valueOf:void 0;function Tb(i,e,n,o,l,d,u){switch(n){case Mb:if(i.byteLength!=e.byteLength||i.byteOffset!=e.byteOffset)return!1;i=i.buffer,e=e.buffer;case Sb:return!(i.byteLength!=e.byteLength||!d(new yh(i),new yh(e)));case vb:case bb:case Cb:return ub(+i,+e);case mb:return i.name==e.name&&i.message==e.message;case wb:case zb:return i==e+"";case yb:var v=hb;case xb:var y=o&pb;if(v||(v=fb),i.size!=e.size&&!y)return!1;var b=u.get(i);if(b)return b==e;o|=gb,u.set(i,e);var M=db(v(i),v(e),o,l,d,u);return u.delete(i),M;case Lb:if(oc)return oc.call(i)==oc.call(e)}return!1}var kb=Tb;function Ob(i,e){for(var n=-1,o=e.length,l=i.length;++n<o;)i[l+n]=e[n];return i}var $b=Ob,Eb=Array.isArray,Rn=Eb,_b=$b,Ib=Rn;function Ab(i,e,n){var o=e(i);return Ib(i)?o:_b(o,n(i))}var Pb=Ab;function Db(i,e){for(var n=-1,o=i==null?0:i.length,l=0,d=[];++n<o;){var u=i[n];e(u,n,i)&&(d[l++]=u)}return d}var Nb=Db;function Hb(){return[]}var Rb=Hb,Fb=Nb,Bb=Rb,Vb=Object.prototype,Zb=Vb.propertyIsEnumerable,wh=Object.getOwnPropertySymbols,Wb=wh?function(i){return i==null?[]:(i=Object(i),Fb(wh(i),function(e){return Zb.call(i,e)}))}:Bb,Ub=Wb;function jb(i,e){for(var n=-1,o=Array(i);++n<i;)o[n]=e(n);return o}var Gb=jb;function qb(i){return i!=null&&typeof i=="object"}var As=qb,Kb=_s,Yb=As,Xb="[object Arguments]";function Jb(i){return Yb(i)&&Kb(i)==Xb}var Qb=Jb,xh=Qb,em=As,V2=Object.prototype,tm=V2.hasOwnProperty,rm=V2.propertyIsEnumerable,nm=xh(function(){return arguments}())?xh:function(i){return em(i)&&tm.call(i,"callee")&&!rm.call(i,"callee")},Z2=nm,Qa={exports:{}};function im(){return!1}var om=im;Qa.exports;(function(i,e){var n=vn,o=om,l=e&&!e.nodeType&&e,d=l&&!0&&i&&!i.nodeType&&i,u=d&&d.exports===l,v=u?n.Buffer:void 0,y=v?v.isBuffer:void 0,b=y||o;i.exports=b})(Qa,Qa.exports);var W2=Qa.exports,sm=9007199254740991,am=/^(?:0|[1-9]\d*)$/;function lm(i,e){var n=typeof i;return e=e==null?sm:e,!!e&&(n=="number"||n!="symbol"&&am.test(i))&&i>-1&&i%1==0&&i<e}var fu=lm,cm=9007199254740991;function um(i){return typeof i=="number"&&i>-1&&i%1==0&&i<=cm}var pu=um,dm=_s,hm=pu,fm=As,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]",Om="[object Float32Array]",$m="[object Float64Array]",Em="[object Int8Array]",_m="[object Int16Array]",Im="[object Int32Array]",Am="[object Uint8Array]",Pm="[object Uint8ClampedArray]",Dm="[object Uint16Array]",Nm="[object Uint32Array]",rt={};rt[Om]=rt[$m]=rt[Em]=rt[_m]=rt[Im]=rt[Am]=rt[Pm]=rt[Dm]=rt[Nm]=!0;rt[pm]=rt[gm]=rt[Tm]=rt[vm]=rt[km]=rt[bm]=rt[mm]=rt[ym]=rt[Cm]=rt[wm]=rt[xm]=rt[zm]=rt[Lm]=rt[Sm]=rt[Mm]=!1;function Hm(i){return fm(i)&&hm(i.length)&&!!rt[dm(i)]}var Rm=Hm;function Fm(i){return function(e){return i(e)}}var Bm=Fm,el={exports:{}};el.exports;(function(i,e){var n=D2,o=e&&!e.nodeType&&e,l=o&&!0&&i&&!i.nodeType&&i,d=l&&l.exports===o,u=d&&n.process,v=function(){try{var y=l&&l.require&&l.require("util").types;return y||u&&u.binding&&u.binding("util")}catch{}}();i.exports=v})(el,el.exports);var Vm=el.exports,Zm=Rm,Wm=Bm,zh=Vm,Lh=zh&&zh.isTypedArray,Um=Lh?Wm(Lh):Zm,U2=Um,jm=Gb,Gm=Z2,qm=Rn,Km=W2,Ym=fu,Xm=U2,Jm=Object.prototype,Qm=Jm.hasOwnProperty;function ey(i,e){var n=qm(i),o=!n&&Gm(i),l=!n&&!o&&Km(i),d=!n&&!o&&!l&&Xm(i),u=n||o||l||d,v=u?jm(i.length,String):[],y=v.length;for(var b in i)(e||Qm.call(i,b))&&!(u&&(b=="length"||l&&(b=="offset"||b=="parent")||d&&(b=="buffer"||b=="byteLength"||b=="byteOffset")||Ym(b,y)))&&v.push(b);return v}var ty=ey,ry=Object.prototype;function ny(i){var e=i&&i.constructor,n=typeof e=="function"&&e.prototype||ry;return i===n}var iy=ny;function oy(i,e){return function(n){return i(e(n))}}var sy=oy,ay=sy,ly=ay(Object.keys,Object),cy=ly,uy=iy,dy=cy,hy=Object.prototype,fy=hy.hasOwnProperty;function py(i){if(!uy(i))return dy(i);var e=[];for(var n in Object(i))fy.call(i,n)&&n!="constructor"&&e.push(n);return e}var gy=py,vy=H2,by=pu;function my(i){return i!=null&&by(i.length)&&!vy(i)}var j2=my,yy=ty,Cy=gy,wy=j2;function xy(i){return wy(i)?yy(i):Cy(i)}var G2=xy,zy=Pb,Ly=Ub,Sy=G2;function My(i){return zy(i,Sy,Ly)}var Ty=My,Sh=Ty,ky=1,Oy=Object.prototype,$y=Oy.hasOwnProperty;function Ey(i,e,n,o,l,d){var u=n&ky,v=Sh(i),y=v.length,b=Sh(e),M=b.length;if(y!=M&&!u)return!1;for(var L=y;L--;){var T=v[L];if(!(u?T in e:$y.call(e,T)))return!1}var $=d.get(i),N=d.get(e);if($&&N)return $==e&&N==i;var Y=!0;d.set(i,e),d.set(e,i);for(var oe=u;++L<y;){T=v[L];var _=i[T],D=e[T];if(o)var A=u?o(D,_,T,e,i,d):o(_,D,T,i,e,d);if(!(A===void 0?_===D||l(_,D,n,o,d):A)){Y=!1;break}oe||(oe=T=="constructor")}if(Y&&!oe){var B=i.constructor,K=e.constructor;B!=K&&"constructor"in i&&"constructor"in e&&!(typeof B=="function"&&B instanceof B&&typeof K=="function"&&K instanceof K)&&(Y=!1)}return d.delete(i),d.delete(e),Y}var _y=Ey,Iy=vo,Ay=vn,Py=Iy(Ay,"DataView"),Dy=Py,Ny=vo,Hy=vn,Ry=Ny(Hy,"Promise"),Fy=Ry,By=vo,Vy=vn,Zy=By(Vy,"Set"),Wy=Zy,Uy=vo,jy=vn,Gy=Uy(jy,"WeakMap"),qy=Gy,$c=Dy,Ec=du,_c=Fy,Ic=Wy,Ac=qy,q2=_s,Co=R2,Mh="[object Map]",Ky="[object Object]",Th="[object Promise]",kh="[object Set]",Oh="[object WeakMap]",$h="[object DataView]",Yy=Co($c),Xy=Co(Ec),Jy=Co(_c),Qy=Co(Ic),eC=Co(Ac),li=q2;($c&&li(new $c(new ArrayBuffer(1)))!=$h||Ec&&li(new Ec)!=Mh||_c&&li(_c.resolve())!=Th||Ic&&li(new Ic)!=kh||Ac&&li(new Ac)!=Oh)&&(li=function(i){var e=q2(i),n=e==Ky?i.constructor:void 0,o=n?Co(n):"";if(o)switch(o){case Yy:return $h;case Xy:return Mh;case Jy:return Th;case Qy:return kh;case eC:return Oh}return e});var tC=li,sc=F2,rC=B2,nC=kb,iC=_y,Eh=tC,_h=Rn,Ih=W2,oC=U2,sC=1,Ah="[object Arguments]",Ph="[object Array]",Ta="[object Object]",aC=Object.prototype,Dh=aC.hasOwnProperty;function lC(i,e,n,o,l,d){var u=_h(i),v=_h(e),y=u?Ph:Eh(i),b=v?Ph:Eh(e);y=y==Ah?Ta:y,b=b==Ah?Ta:b;var M=y==Ta,L=b==Ta,T=y==b;if(T&&Ih(i)){if(!Ih(e))return!1;u=!0,M=!1}if(T&&!M)return d||(d=new sc),u||oC(i)?rC(i,e,n,o,l,d):nC(i,e,y,n,o,l,d);if(!(n&sC)){var $=M&&Dh.call(i,"__wrapped__"),N=L&&Dh.call(e,"__wrapped__");if($||N){var Y=$?i.value():i,oe=N?e.value():e;return d||(d=new sc),l(Y,oe,n,o,d)}}return T?(d||(d=new sc),iC(i,e,n,o,l,d)):!1}var cC=lC,uC=cC,Nh=As;function K2(i,e,n,o,l){return i===e?!0:i==null||e==null||!Nh(i)&&!Nh(e)?i!==i&&e!==e:uC(i,e,n,o,K2,l)}var Y2=K2,dC=F2,hC=Y2,fC=1,pC=2;function gC(i,e,n,o){var l=n.length,d=l,u=!o;if(i==null)return!d;for(i=Object(i);l--;){var v=n[l];if(u&&v[2]?v[1]!==i[v[0]]:!(v[0]in i))return!1}for(;++l<d;){v=n[l];var y=v[0],b=i[y],M=v[1];if(u&&v[2]){if(b===void 0&&!(y in i))return!1}else{var L=new dC;if(o)var T=o(b,M,y,i,e,L);if(!(T===void 0?hC(M,b,fC|pC,o,L):T))return!1}}return!0}var vC=gC,bC=Is;function mC(i){return i===i&&!bC(i)}var X2=mC,yC=X2,CC=G2;function wC(i){for(var e=CC(i),n=e.length;n--;){var o=e[n],l=i[o];e[n]=[o,l,yC(l)]}return e}var xC=wC;function zC(i,e){return function(n){return n==null?!1:n[i]===e&&(e!==void 0||i in Object(n))}}var J2=zC,LC=vC,SC=xC,MC=J2;function TC(i){var e=SC(i);return e.length==1&&e[0][2]?MC(e[0][0],e[0][1]):function(n){return n===i||LC(n,i,e)}}var kC=TC,OC=_s,$C=As,EC="[object Symbol]";function _C(i){return typeof i=="symbol"||$C(i)&&OC(i)==EC}var _l=_C,IC=Rn,AC=_l,PC=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,DC=/^\w*$/;function NC(i,e){if(IC(i))return!1;var n=typeof i;return n=="number"||n=="symbol"||n=="boolean"||i==null||AC(i)?!0:DC.test(i)||!PC.test(i)||e!=null&&i in Object(e)}var gu=NC,Q2=hu,HC="Expected a function";function vu(i,e){if(typeof i!="function"||e!=null&&typeof e!="function")throw new TypeError(HC);var n=function(){var o=arguments,l=e?e.apply(this,o):o[0],d=n.cache;if(d.has(l))return d.get(l);var u=i.apply(this,o);return n.cache=d.set(l,u)||d,u};return n.cache=new(vu.Cache||Q2),n}vu.Cache=Q2;var RC=vu,FC=RC,BC=500;function VC(i){var e=FC(i,function(o){return n.size===BC&&n.clear(),o}),n=e.cache;return e}var ZC=VC,WC=ZC,UC=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,jC=/\\(\\)?/g,GC=WC(function(i){var e=[];return i.charCodeAt(0)===46&&e.push(""),i.replace(UC,function(n,o,l,d){e.push(l?d.replace(jC,"$1"):o||n)}),e}),qC=GC;function KC(i,e){for(var n=-1,o=i==null?0:i.length,l=Array(o);++n<o;)l[n]=e(i[n],n,i);return l}var YC=KC,Hh=Ol,XC=YC,JC=Rn,QC=_l,ew=1/0,Rh=Hh?Hh.prototype:void 0,Fh=Rh?Rh.toString:void 0;function ep(i){if(typeof i=="string")return i;if(JC(i))return XC(i,ep)+"";if(QC(i))return Fh?Fh.call(i):"";var e=i+"";return e=="0"&&1/i==-ew?"-0":e}var tw=ep,rw=tw;function nw(i){return i==null?"":rw(i)}var iw=nw,ow=Rn,sw=gu,aw=qC,lw=iw;function cw(i,e){return ow(i)?i:sw(i,e)?[i]:aw(lw(i))}var tp=cw,uw=_l,dw=1/0;function hw(i){if(typeof i=="string"||uw(i))return i;var e=i+"";return e=="0"&&1/i==-dw?"-0":e}var Il=hw,fw=tp,pw=Il;function gw(i,e){e=fw(e,i);for(var n=0,o=e.length;i!=null&&n<o;)i=i[pw(e[n++])];return n&&n==o?i:void 0}var rp=gw,vw=rp;function bw(i,e,n){var o=i==null?void 0:vw(i,e);return o===void 0?n:o}var mw=bw;function yw(i,e){return i!=null&&e in Object(i)}var Cw=yw,ww=tp,xw=Z2,zw=Rn,Lw=fu,Sw=pu,Mw=Il;function Tw(i,e,n){e=ww(e,i);for(var o=-1,l=e.length,d=!1;++o<l;){var u=Mw(e[o]);if(!(d=i!=null&&n(i,u)))break;i=i[u]}return d||++o!=l?d:(l=i==null?0:i.length,!!l&&Sw(l)&&Lw(u,l)&&(zw(i)||xw(i)))}var kw=Tw,Ow=Cw,$w=kw;function Ew(i,e){return i!=null&&$w(i,e,Ow)}var _w=Ew,Iw=Y2,Aw=mw,Pw=_w,Dw=gu,Nw=X2,Hw=J2,Rw=Il,Fw=1,Bw=2;function Vw(i,e){return Dw(i)&&Nw(e)?Hw(Rw(i),e):function(n){var o=Aw(n,i);return o===void 0&&o===e?Pw(n,i):Iw(e,o,Fw|Bw)}}var Zw=Vw;function Ww(i){return i}var Uw=Ww;function jw(i){return function(e){return e==null?void 0:e[i]}}var Gw=jw,qw=rp;function Kw(i){return function(e){return qw(e,i)}}var Yw=Kw,Xw=Gw,Jw=Yw,Qw=gu,ex=Il;function tx(i){return Qw(i)?Xw(ex(i)):Jw(i)}var rx=tx,nx=kC,ix=Zw,ox=Uw,sx=Rn,ax=rx;function lx(i){return typeof i=="function"?i:i==null?ox:typeof i=="object"?sx(i)?ix(i[0],i[1]):nx(i):ax(i)}var cx=lx,ux=/\s/;function dx(i){for(var e=i.length;e--&&ux.test(i.charAt(e)););return e}var hx=dx,fx=hx,px=/^\s+/;function gx(i){return i&&i.slice(0,fx(i)+1).replace(px,"")}var vx=gx,bx=vx,Bh=Is,mx=_l,Vh=0/0,yx=/^[-+]0x[0-9a-f]+$/i,Cx=/^0b[01]+$/i,wx=/^0o[0-7]+$/i,xx=parseInt;function zx(i){if(typeof i=="number")return i;if(mx(i))return Vh;if(Bh(i)){var e=typeof i.valueOf=="function"?i.valueOf():i;i=Bh(e)?e+"":e}if(typeof i!="string")return i===0?i:+i;i=bx(i);var n=Cx.test(i);return n||wx.test(i)?xx(i.slice(2),n?2:8):yx.test(i)?Vh:+i}var Lx=zx,Sx=Lx,Zh=1/0,Mx=17976931348623157e292;function Tx(i){if(!i)return i===0?i:0;if(i=Sx(i),i===Zh||i===-Zh){var e=i<0?-1:1;return e*Mx}return i===i?i:0}var np=Tx,kx=np;function Ox(i){var e=kx(i),n=e%1;return e===e?n?e-n:e:0}var $x=Ox,Ex=j9,_x=cx,Ix=$x,Ax=Math.max,Px=Math.min;function Dx(i,e,n){var o=i==null?0:i.length;if(!o)return-1;var l=o-1;return n!==void 0&&(l=Ix(n),l=n<0?Ax(o+l,0):Px(l,o-1)),Ex(i,_x(e),l,!0)}var Nx=Dx;const Hx=cu(Nx);/**
1716
+ `;Xr([E({type:Boolean})],exports.DropdownMenu.prototype,"multiselect",2);Xr([E({type:Boolean})],exports.DropdownMenu.prototype,"selectable",2);Xr([E({type:Array})],exports.DropdownMenu.prototype,"selected",2);Xr([E()],exports.DropdownMenu.prototype,"size",2);Xr([Ce()],exports.DropdownMenu.prototype,"fluidWidth",2);Xr([Ce()],exports.DropdownMenu.prototype,"disabled",2);Xr([_r("brz-menu")],exports.DropdownMenu.prototype,"menu",2);Xr([_r("brz-popover")],exports.DropdownMenu.prototype,"popover",2);Xr([hi()],exports.DropdownMenu.prototype,"slottedElements",2);exports.DropdownMenu=Xr([W(P2)],exports.DropdownMenu);var gs=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function cu(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 uu=K9,Y9=uu;function X9(n,e){for(var i=n.length;i--;)if(Y9(n[i][0],e))return i;return-1}var Tl=X9,J9=Tl,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,i8=Tl;function n8(n){var e=this.__data__,i=i8(e,n);return i<0?void 0:e[i][1]}var o8=n8,s8=Tl;function a8(n){return s8(this.__data__,n)>-1}var l8=a8,c8=Tl;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 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=h8;go.prototype.delete=f8;go.prototype.get=p8;go.prototype.has=g8;go.prototype.set=v8;var kl=go,b8=kl;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 gs=="object"&&gs&&gs.Object===Object&&gs,D2=M8,T8=D2,k8=typeof self=="object"&&self&&self.Object===Object&&self,O8=T8||k8||Function("return this")(),gi=O8,$8=gi,E8=$8.Symbol,Ol=E8,hh=Ol,N2=Object.prototype,_8=N2.hasOwnProperty,I8=N2.toString,cs=hh?hh.toStringTag:void 0;function A8(n){var e=_8.call(n,cs),i=n[cs];try{n[cs]=void 0;var o=!0}catch{}var l=I8.call(n);return o&&(e?n[cs]=i:delete n[cs]),l}var P8=A8,D8=Object.prototype,N8=D8.toString;function H8(n){return N8.call(n)}var R8=H8,fh=Ol,F8=P8,B8=R8,V8="[object Null]",Z8="[object Undefined]",ph=fh?fh.toStringTag:void 0;function W8(n){return n==null?n===void 0?Z8:V8:ph&&ph in Object(n)?F8(n):B8(n)}var _s=W8;function U8(n){var e=typeof n;return n!=null&&(e=="object"||e=="function")}var Is=U8,j8=_s,G8=Is,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 H2=J8,Q8=gi,eg=Q8["__core-js_shared__"],tg=eg,nc=tg,gh=function(){var n=/[^.]+$/.exec(nc&&nc.keys&&nc.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""}();function rg(n){return!!gh&&gh in n}var ig=rg,ng=Function.prototype,og=ng.toString;function sg(n){if(n!=null){try{return og.call(n)}catch{}try{return n+""}catch{}}return""}var R2=sg,ag=H2,lg=ig,cg=Is,ug=R2,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=ag(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 vo=Lg,Sg=vo,Mg=gi,Tg=Sg(Mg,"Map"),du=Tg,kg=vo,Og=kg(Object,"create"),$l=Og,vh=$l;function $g(){this.__data__=vh?vh(null):{},this.size=0}var Eg=$g;function _g(n){var e=this.has(n)&&delete this.__data__[n];return this.size-=e?1:0,e}var Ig=_g,Ag=$l,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=$l,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=$l,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 bo(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])}}bo.prototype.clear=Kg;bo.prototype.delete=Yg;bo.prototype.get=Xg;bo.prototype.has=Jg;bo.prototype.set=Qg;var ev=bo,bh=ev,tv=kl,rv=du;function iv(){this.size=0,this.__data__={hash:new bh,map:new(rv||tv),string:new bh}}var nv=iv;function ov(n){var e=typeof n;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?n!=="__proto__":n===null}var sv=ov,av=sv;function lv(n,e){var i=n.__data__;return av(e)?i[typeof e=="string"?"string":"hash"]:i.map}var El=lv,cv=El;function uv(n){var e=cv(this,n).delete(n);return this.size-=e?1:0,e}var dv=uv,hv=El;function fv(n){return hv(this,n).get(n)}var pv=fv,gv=El;function vv(n){return gv(this,n).has(n)}var bv=vv,mv=El;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=nv,xv=dv,zv=pv,Lv=bv,Sv=Cv;function mo(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])}}mo.prototype.clear=wv;mo.prototype.delete=xv;mo.prototype.get=zv;mo.prototype.has=Lv;mo.prototype.set=Sv;var hu=mo,Mv=kl,Tv=du,kv=hu,Ov=200;function $v(n,e){var i=this.__data__;if(i instanceof Mv){var o=i.__data__;if(!Tv||o.length<Ov-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=$v,_v=kl,Iv=y8,Av=w8,Pv=z8,Dv=S8,Nv=Ev;function yo(n){var e=this.__data__=new _v(n);this.size=e.size}yo.prototype.clear=Iv;yo.prototype.delete=Av;yo.prototype.get=Pv;yo.prototype.has=Dv;yo.prototype.set=Nv;var F2=yo,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=hu,Wv=Fv,Uv=Vv;function Ja(n){var e=-1,i=n==null?0:n.length;for(this.__data__=new Zv;++e<i;)this.add(n[e])}Ja.prototype.add=Ja.prototype.push=Wv;Ja.prototype.has=Uv;var jv=Ja;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,y=e.length;if(v!=y&&!(u&&y>v))return!1;var b=d.get(n),M=d.get(e);if(b&&M)return b==e&&M==n;var L=-1,T=!0,$=i&tb?new Xv:void 0;for(d.set(n,e),d.set(e,n);++L<v;){var N=n[L],Y=e[L];if(o)var oe=u?o(Y,N,L,e,n,d):o(N,Y,L,n,e,d);if(oe!==void 0){if(oe)continue;T=!1;break}if($){if(!Jv(e,function(_,D){if(!Qv($,D)&&(N===_||l(N,_,i,o,d)))return $.push(D)})){T=!1;break}}else if(!(N===Y||l(N,Y,i,o,d))){T=!1;break}}return d.delete(n),d.delete(e),T}var B2=rb,ib=gi,nb=ib.Uint8Array,ob=nb;function sb(n){var e=-1,i=Array(n.size);return n.forEach(function(o,l){i[++e]=[l,o]}),i}var ab=sb;function lb(n){var e=-1,i=Array(n.size);return n.forEach(function(o){i[++e]=o}),i}var cb=lb,mh=Ol,yh=ob,ub=uu,db=B2,hb=ab,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]",Ch=mh?mh.prototype:void 0,oc=Ch?Ch.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 yh(n),new yh(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 y=o&pb;if(v||(v=fb),n.size!=e.size&&!y)return!1;var b=u.get(n);if(b)return b==e;o|=gb,u.set(n,e);var M=db(v(n),v(e),o,l,d,u);return u.delete(n),M;case Lb:if(oc)return oc.call(n)==oc.call(e)}return!1}var kb=Tb;function Ob(n,e){for(var i=-1,o=e.length,l=n.length;++i<o;)n[l+i]=e[i];return n}var $b=Ob,Eb=Array.isArray,Hi=Eb,_b=$b,Ib=Hi;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,wh=Object.getOwnPropertySymbols,Wb=wh?function(n){return n==null?[]:(n=Object(n),Fb(wh(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 As=qb,Kb=_s,Yb=As,Xb="[object Arguments]";function Jb(n){return Yb(n)&&Kb(n)==Xb}var Qb=Jb,xh=Qb,em=As,V2=Object.prototype,tm=V2.hasOwnProperty,rm=V2.propertyIsEnumerable,im=xh(function(){return arguments}())?xh:function(n){return em(n)&&tm.call(n,"callee")&&!rm.call(n,"callee")},Z2=im,Qa={exports:{}};function nm(){return!1}var om=nm;Qa.exports;(function(n,e){var i=gi,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,y=v?v.isBuffer:void 0,b=y||o;n.exports=b})(Qa,Qa.exports);var W2=Qa.exports,sm=9007199254740991,am=/^(?:0|[1-9]\d*)$/;function lm(n,e){var i=typeof n;return e=e==null?sm:e,!!e&&(i=="number"||i!="symbol"&&am.test(n))&&n>-1&&n%1==0&&n<e}var fu=lm,cm=9007199254740991;function um(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=cm}var pu=um,dm=_s,hm=pu,fm=As,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]",Om="[object Float32Array]",$m="[object Float64Array]",Em="[object Int8Array]",_m="[object Int16Array]",Im="[object Int32Array]",Am="[object Uint8Array]",Pm="[object Uint8ClampedArray]",Dm="[object Uint16Array]",Nm="[object Uint32Array]",rt={};rt[Om]=rt[$m]=rt[Em]=rt[_m]=rt[Im]=rt[Am]=rt[Pm]=rt[Dm]=rt[Nm]=!0;rt[pm]=rt[gm]=rt[Tm]=rt[vm]=rt[km]=rt[bm]=rt[mm]=rt[ym]=rt[Cm]=rt[wm]=rt[xm]=rt[zm]=rt[Lm]=rt[Sm]=rt[Mm]=!1;function Hm(n){return fm(n)&&hm(n.length)&&!!rt[dm(n)]}var Rm=Hm;function Fm(n){return function(e){return n(e)}}var Bm=Fm,el={exports:{}};el.exports;(function(n,e){var i=D2,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 y=l&&l.require&&l.require("util").types;return y||u&&u.binding&&u.binding("util")}catch{}}();n.exports=v})(el,el.exports);var Vm=el.exports,Zm=Rm,Wm=Bm,zh=Vm,Lh=zh&&zh.isTypedArray,Um=Lh?Wm(Lh):Zm,U2=Um,jm=Gb,Gm=Z2,qm=Hi,Km=W2,Ym=fu,Xm=U2,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):[],y=v.length;for(var b in n)(e||Qm.call(n,b))&&!(u&&(b=="length"||l&&(b=="offset"||b=="parent")||d&&(b=="buffer"||b=="byteLength"||b=="byteOffset")||Ym(b,y)))&&v.push(b);return v}var ty=ey,ry=Object.prototype;function iy(n){var e=n&&n.constructor,i=typeof e=="function"&&e.prototype||ry;return n===i}var ny=iy;function oy(n,e){return function(i){return n(e(i))}}var sy=oy,ay=sy,ly=ay(Object.keys,Object),cy=ly,uy=ny,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=H2,by=pu;function my(n){return n!=null&&by(n.length)&&!vy(n)}var j2=my,yy=ty,Cy=gy,wy=j2;function xy(n){return wy(n)?yy(n):Cy(n)}var G2=xy,zy=Pb,Ly=Ub,Sy=G2;function My(n){return zy(n,Sy,Ly)}var Ty=My,Sh=Ty,ky=1,Oy=Object.prototype,$y=Oy.hasOwnProperty;function Ey(n,e,i,o,l,d){var u=i&ky,v=Sh(n),y=v.length,b=Sh(e),M=b.length;if(y!=M&&!u)return!1;for(var L=y;L--;){var T=v[L];if(!(u?T in e:$y.call(e,T)))return!1}var $=d.get(n),N=d.get(e);if($&&N)return $==e&&N==n;var Y=!0;d.set(n,e),d.set(e,n);for(var oe=u;++L<y;){T=v[L];var _=n[T],D=e[T];if(o)var A=u?o(D,_,T,e,n,d):o(_,D,T,n,e,d);if(!(A===void 0?_===D||l(_,D,i,o,d):A)){Y=!1;break}oe||(oe=T=="constructor")}if(Y&&!oe){var B=n.constructor,K=e.constructor;B!=K&&"constructor"in n&&"constructor"in e&&!(typeof B=="function"&&B instanceof B&&typeof K=="function"&&K instanceof K)&&(Y=!1)}return d.delete(n),d.delete(e),Y}var _y=Ey,Iy=vo,Ay=gi,Py=Iy(Ay,"DataView"),Dy=Py,Ny=vo,Hy=gi,Ry=Ny(Hy,"Promise"),Fy=Ry,By=vo,Vy=gi,Zy=By(Vy,"Set"),Wy=Zy,Uy=vo,jy=gi,Gy=Uy(jy,"WeakMap"),qy=Gy,$c=Dy,Ec=du,_c=Fy,Ic=Wy,Ac=qy,q2=_s,Co=R2,Mh="[object Map]",Ky="[object Object]",Th="[object Promise]",kh="[object Set]",Oh="[object WeakMap]",$h="[object DataView]",Yy=Co($c),Xy=Co(Ec),Jy=Co(_c),Qy=Co(Ic),eC=Co(Ac),ln=q2;($c&&ln(new $c(new ArrayBuffer(1)))!=$h||Ec&&ln(new Ec)!=Mh||_c&&ln(_c.resolve())!=Th||Ic&&ln(new Ic)!=kh||Ac&&ln(new Ac)!=Oh)&&(ln=function(n){var e=q2(n),i=e==Ky?n.constructor:void 0,o=i?Co(i):"";if(o)switch(o){case Yy:return $h;case Xy:return Mh;case Jy:return Th;case Qy:return kh;case eC:return Oh}return e});var tC=ln,sc=F2,rC=B2,iC=kb,nC=_y,Eh=tC,_h=Hi,Ih=W2,oC=U2,sC=1,Ah="[object Arguments]",Ph="[object Array]",Ta="[object Object]",aC=Object.prototype,Dh=aC.hasOwnProperty;function lC(n,e,i,o,l,d){var u=_h(n),v=_h(e),y=u?Ph:Eh(n),b=v?Ph:Eh(e);y=y==Ah?Ta:y,b=b==Ah?Ta:b;var M=y==Ta,L=b==Ta,T=y==b;if(T&&Ih(n)){if(!Ih(e))return!1;u=!0,M=!1}if(T&&!M)return d||(d=new sc),u||oC(n)?rC(n,e,i,o,l,d):iC(n,e,y,i,o,l,d);if(!(i&sC)){var $=M&&Dh.call(n,"__wrapped__"),N=L&&Dh.call(e,"__wrapped__");if($||N){var Y=$?n.value():n,oe=N?e.value():e;return d||(d=new sc),l(Y,oe,i,o,d)}}return T?(d||(d=new sc),nC(n,e,i,o,l,d)):!1}var cC=lC,uC=cC,Nh=As;function K2(n,e,i,o,l){return n===e?!0:n==null||e==null||!Nh(n)&&!Nh(e)?n!==n&&e!==e:uC(n,e,i,o,K2,l)}var Y2=K2,dC=F2,hC=Y2,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 y=v[0],b=n[y],M=v[1];if(u&&v[2]){if(b===void 0&&!(y in n))return!1}else{var L=new dC;if(o)var T=o(b,M,y,n,e,L);if(!(T===void 0?hC(M,b,fC|pC,o,L):T))return!1}}return!0}var vC=gC,bC=Is;function mC(n){return n===n&&!bC(n)}var X2=mC,yC=X2,CC=G2;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 J2=zC,LC=vC,SC=xC,MC=J2;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,OC=_s,$C=As,EC="[object Symbol]";function _C(n){return typeof n=="symbol"||$C(n)&&OC(n)==EC}var _l=_C,IC=Hi,AC=_l,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 gu=NC,Q2=hu,HC="Expected a function";function vu(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(vu.Cache||Q2),i}vu.Cache=Q2;var RC=vu,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,Hh=Ol,XC=YC,JC=Hi,QC=_l,ew=1/0,Rh=Hh?Hh.prototype:void 0,Fh=Rh?Rh.toString:void 0;function ep(n){if(typeof n=="string")return n;if(JC(n))return XC(n,ep)+"";if(QC(n))return Fh?Fh.call(n):"";var e=n+"";return e=="0"&&1/n==-ew?"-0":e}var tw=ep,rw=tw;function iw(n){return n==null?"":rw(n)}var nw=iw,ow=Hi,sw=gu,aw=qC,lw=nw;function cw(n,e){return ow(n)?n:sw(n,e)?[n]:aw(lw(n))}var tp=cw,uw=_l,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 Il=hw,fw=tp,pw=Il;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=Z2,zw=Hi,Lw=fu,Sw=pu,Mw=Il;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,Ow=Cw,$w=kw;function Ew(n,e){return n!=null&&$w(n,e,Ow)}var _w=Ew,Iw=Y2,Aw=mw,Pw=_w,Dw=gu,Nw=X2,Hw=J2,Rw=Il,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=gu,ex=Il;function tx(n){return Qw(n)?Xw(ex(n)):Jw(n)}var rx=tx,ix=kC,nx=Zw,ox=Uw,sx=Hi,ax=rx;function lx(n){return typeof n=="function"?n:n==null?ox:typeof n=="object"?sx(n)?nx(n[0],n[1]):ix(n):ax(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,Bh=Is,mx=_l,Vh=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 Vh;if(Bh(n)){var e=typeof n.valueOf=="function"?n.valueOf():n;n=Bh(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)?Vh:+n}var Lx=zx,Sx=Lx,Zh=1/0,Mx=17976931348623157e292;function Tx(n){if(!n)return n===0?n:0;if(n=Sx(n),n===Zh||n===-Zh){var e=n<0?-1:1;return e*Mx}return n===n?n:0}var ip=Tx,kx=ip;function Ox(n){var e=kx(n),i=e%1;return e===e?i?e-i:e:0}var $x=Ox,Ex=j9,_x=cx,Ix=$x,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=cu(Nx);/**
1717
1717
  * @license
1718
1718
  * Copyright 2020 Google LLC
1719
1719
  * SPDX-License-Identifier: BSD-3-Clause
1720
- */const{I:Rx}=e7,Wh=()=>document.createComment(""),us=(i,e,n)=>{var o;const l=i._$AA.parentNode,d=e===void 0?i._$AB:e._$AA;if(n===void 0){const u=l.insertBefore(Wh(),d),v=l.insertBefore(Wh(),d);n=new Rx(u,v,i,i.options)}else{const u=n._$AB.nextSibling,v=n._$AM,y=v!==i;if(y){let b;(o=n._$AQ)===null||o===void 0||o.call(n,i),n._$AM=i,n._$AP!==void 0&&(b=i._$AU)!==v._$AU&&n._$AP(b)}if(u!==d||y){let b=n._$AA;for(;b!==u;){const M=b.nextSibling;l.insertBefore(b,d),b=M}}}return n},oi=(i,e,n=i)=>(i._$AI(e,n),i),Fx={},Bx=(i,e=Fx)=>i._$AH=e,Vx=i=>i._$AH,ac=i=>{var e;(e=i._$AP)===null||e===void 0||e.call(i,!1,!0);let n=i._$AA;const o=i._$AB.nextSibling;for(;n!==o;){const l=n.nextSibling;n.remove(),n=l}};/**
1720
+ */const{I:Rx}=e7,Wh=()=>document.createComment(""),us=(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(Wh(),d),v=l.insertBefore(Wh(),d);i=new Rx(u,v,n,n.options)}else{const u=i._$AB.nextSibling,v=i._$AM,y=v!==n;if(y){let b;(o=i._$AQ)===null||o===void 0||o.call(i,n),i._$AM=n,i._$AP!==void 0&&(b=n._$AU)!==v._$AU&&i._$AP(b)}if(u!==d||y){let b=i._$AA;for(;b!==u;){const M=b.nextSibling;l.insertBefore(b,d),b=M}}}return i},on=(n,e,i=n)=>(n._$AI(e,i),n),Fx={},Bx=(n,e=Fx)=>n._$AH=e,Vx=n=>n._$AH,ac=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}};/**
1721
1721
  * @license
1722
1722
  * Copyright 2017 Google LLC
1723
1723
  * SPDX-License-Identifier: BSD-3-Clause
1724
- */const Uh=(i,e,n)=>{const o=new Map;for(let l=e;l<=n;l++)o.set(i[l],l);return o},Zx=yl(class extends Cl{constructor(i){if(super(i),i.type!==ml.CHILD)throw Error("repeat() can only be used in text expressions")}dt(i,e,n){let o;n===void 0?n=e:e!==void 0&&(o=e);const l=[],d=[];let u=0;for(const v of i)l[u]=o?o(v,u):u,d[u]=n(v,u),u++;return{values:d,keys:l}}render(i,e,n){return this.dt(i,e,n).values}update(i,[e,n,o]){var l;const d=Vx(i),{values:u,keys:v}=this.dt(e,n,o);if(!Array.isArray(d))return this.ht=v,u;const y=(l=this.ht)!==null&&l!==void 0?l:this.ht=[],b=[];let M,L,T=0,$=d.length-1,N=0,Y=u.length-1;for(;T<=$&&N<=Y;)if(d[T]===null)T++;else if(d[$]===null)$--;else if(y[T]===v[N])b[N]=oi(d[T],u[N]),T++,N++;else if(y[$]===v[Y])b[Y]=oi(d[$],u[Y]),$--,Y--;else if(y[T]===v[Y])b[Y]=oi(d[T],u[Y]),us(i,b[Y+1],d[T]),T++,Y--;else if(y[$]===v[N])b[N]=oi(d[$],u[N]),us(i,d[T],d[$]),$--,N++;else if(M===void 0&&(M=Uh(v,N,Y),L=Uh(y,T,$)),M.has(y[T]))if(M.has(y[$])){const oe=L.get(v[N]),_=oe!==void 0?d[oe]:null;if(_===null){const D=us(i,d[T]);oi(D,u[N]),b[N]=D}else b[N]=oi(_,u[N]),us(i,d[T],_),d[oe]=null;N++}else ac(d[$]),$--;else ac(d[T]),T++;for(;N<=Y;){const oe=us(i,b[Y+1]);oi(oe,u[N]),b[N++]=oe}for(;T<=$;){const oe=d[T++];oe!==null&&ac(oe)}return this.ht=v,Bx(i,b),dn}});/**
1724
+ */const Uh=(n,e,i)=>{const o=new Map;for(let l=e;l<=i;l++)o.set(n[l],l);return o},Zx=yl(class extends Cl{constructor(n){if(super(n),n.type!==ml.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 y=(l=this.ht)!==null&&l!==void 0?l:this.ht=[],b=[];let M,L,T=0,$=d.length-1,N=0,Y=u.length-1;for(;T<=$&&N<=Y;)if(d[T]===null)T++;else if(d[$]===null)$--;else if(y[T]===v[N])b[N]=on(d[T],u[N]),T++,N++;else if(y[$]===v[Y])b[Y]=on(d[$],u[Y]),$--,Y--;else if(y[T]===v[Y])b[Y]=on(d[T],u[Y]),us(n,b[Y+1],d[T]),T++,Y--;else if(y[$]===v[N])b[N]=on(d[$],u[N]),us(n,d[T],d[$]),$--,N++;else if(M===void 0&&(M=Uh(v,N,Y),L=Uh(y,T,$)),M.has(y[T]))if(M.has(y[$])){const oe=L.get(v[N]),_=oe!==void 0?d[oe]:null;if(_===null){const D=us(n,d[T]);on(D,u[N]),b[N]=D}else b[N]=on(_,u[N]),us(n,d[T],_),d[oe]=null;N++}else ac(d[$]),$--;else ac(d[T]),T++;for(;N<=Y;){const oe=us(n,b[Y+1]);on(oe,u[N]),b[N++]=oe}for(;T<=$;){const oe=d[T++];oe!==null&&ac(oe)}return this.ht=v,Bx(n,b),ui}});/**
1725
1725
  * @license
1726
1726
  * Copyright 2018 Google LLC
1727
1727
  * SPDX-License-Identifier: BSD-3-Clause
1728
- */const ip="important",Wx=" !"+ip,Ux=yl(class extends Cl{constructor(i){var e;if(super(i),i.type!==ml.ATTRIBUTE||i.name!=="style"||((e=i.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(i){return Object.keys(i).reduce((e,n)=>{const o=i[n];return o==null?e:e+`${n=n.includes("-")?n:n.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${o};`},"")}update(i,[e]){const{style:n}=i.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("-")?n.removeProperty(o):n[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?n.setProperty(o,d?l.slice(0,-11):l,d?ip:""):n[o]=l}}return dn}});var jx=Object.defineProperty,Gx=Object.getOwnPropertyDescriptor,er=(i,e,n,o)=>{for(var l=o>1?void 0:o?Gx(e,n):e,d=i.length-1,u;d>=0;d--)(u=i[d])&&(l=(o?u(e,n,l):u(l))||l);return o&&l&&jx(e,n,l),l};const bu=ce("virtual-list");exports.VirtualList=class extends ze{constructor(){super(...arguments),this.items=[],this.itemMinHeight=32,this.overscan=50,this.renderItem=(e,n)=>R`
1728
+ */const np="important",Wx=" !"+np,Ux=yl(class extends Cl{constructor(n){var e;if(super(n),n.type!==ml.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?np:""):i[o]=l}}return ui}});var jx=Object.defineProperty,Gx=Object.getOwnPropertyDescriptor,er=(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 bu=ce("virtual-list");exports.VirtualList=class extends ze{constructor(){super(...arguments),this.items=[],this.itemMinHeight=32,this.overscan=50,this.renderItem=(e,i)=>R`
1729
1729
  <div
1730
1730
  class="default-render-item"
1731
1731
  style="min-height: ${this.itemMinHeight}px"
1732
1732
  >
1733
- Item ${n}: ${JSON.stringify(e)}
1733
+ Item ${i}: ${JSON.stringify(e)}
1734
1734
  </div>
1735
- `,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,n)=>e+n,0)/this.originalItemsCount}get slicedItemHeightMode(){const e={};let n=0,o=0;return this.itemHeights.slice(0,this.overscan).forEach(l=>{e[l]?e[l]++:e[l]=1,e[l]>o&&(n=l,o=e[l])}),n}resetItems(){this.visibleItems=[],this.currentItemsCount=this.items.length,this.endIndex=this.currentItemsCount-1,this.innerHeight=this.estimatedInnerHeight}canSync(e){return["items","renderItem"].reduce((n,o)=>n||e.has(o),!1)}sumOfHeightsToIndex(e){return this.itemHeights.slice(0,e).reduce((n,o)=>(n+=o,n),0)}syncVisibleItems(){this.resetItems();for(let e=this.rollingStartIndex;e<=this.rollingEndIndex;e++){const n={position:"absolute",top:`${this.sumOfHeightsToIndex(e)}px`,width:"100%"},o=this.renderItem(this.items[e],e);if(!this.itemIdentifier){const u=t2(o,new DocumentFragment).parentNode.firstElementChild,v=u==null?void 0:u.tagName.toLowerCase(),y=u==null?void 0:u.className;this.itemIdentifier=`${v}${y?`.${y}`:""}`}const l=R`
1736
- <div class="item-wrapper" style=${Ux(n)}>
1735
+ `,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=t2(o,new DocumentFragment).parentNode.firstElementChild,v=u==null?void 0:u.tagName.toLowerCase(),y=u==null?void 0:u.className;this.itemIdentifier=`${v}${y?`.${y}`:""}`}const l=R`
1736
+ <div class="item-wrapper" style=${Ux(i)}>
1737
1737
  ${o}
1738
1738
  </div>
1739
- `;this.visibleItems.push({index:e,item:l})}this.updateItemHeights(),this.emitUpdate()}async emitUpdate(){await this.updateComplete;const e=[...this.list.children].map(n=>n.firstElementChild);this.dispatchEvent(new op({detail:{itemElements:e}}))}async updateItemHeights(){await this.updateComplete,this.visibleItems.forEach(({index:e},n)=>{var o,l;this.itemHeights[e]=((l=(o=this.visibleItemElements)==null?void 0:o[n])==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 n;this.currentScrollTop=(n=e.currentTarget)==null?void 0:n.scrollTop,this.syncVisibleItems()}get rollingStartIndex(){const e=Math.floor(this.currentScrollTop/this.estimatedItemMinHeight),n=Math.min(this.overscan,e);return e-n}get rollingEndIndex(){const e=Math.min(this.endIndex,Math.floor((this.currentScrollTop+this.containerHeight)/this.estimatedItemMinHeight)),n=Math.min(this.overscan,this.endIndex-e);return e+n}get containerHeight(){return this.getBoundingClientRect().height}render(){return this.updateItemHeights(),R`
1739
+ `;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(),R`
1740
1740
  <div class="container" @scroll=${this.handleScroll}>
1741
1741
  <div class="list" style="height: ${this.innerHeight}px">
1742
1742
  ${Zx(this.visibleItems,({index:e})=>e,({item:e})=>e)}
@@ -1862,7 +1862,7 @@
1862
1862
  line-height: var(--brz-line-height);
1863
1863
  gap: var(--brz-spacing-1);
1864
1864
  }
1865
- `;var Qx=Object.defineProperty,ez=Object.getOwnPropertyDescriptor,bn=(i,e,n,o)=>{for(var l=o>1?void 0:o?ez(e,n):e,d=i.length-1,u;d>=0;d--)(u=i[d])&&(l=(o?u(e,n,l):u(l))||l);return o&&l&&Qx(e,n,l),l};exports.RecordField=class extends ze{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 R`
1865
+ `;var Qx=Object.defineProperty,ez=Object.getOwnPropertyDescriptor,vi=(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 ze{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 R`
1866
1866
  <brz-split-row
1867
1867
  class=${Qt({[this.sizeClass]:!0,label:!0,"label-right-row":!0,hidden:!this.hasLabelRight})}
1868
1868
  >
@@ -1885,16 +1885,16 @@
1885
1885
  ${this.valueTemplate}
1886
1886
  </div>
1887
1887
  </div>
1888
- `}};exports.RecordField.styles=[Xx,Yx];bn([E({type:String,attribute:"label-position",reflect:!0})],exports.RecordField.prototype,"labelPosition",2);bn([E({type:String,reflect:!0})],exports.RecordField.prototype,"size",2);bn([Ce()],exports.RecordField.prototype,"hasLabel",2);bn([Ce()],exports.RecordField.prototype,"hasLabelRight",2);bn([Ce()],exports.RecordField.prototype,"isValueMultiline",2);bn([_r(".value")],exports.RecordField.prototype,"value",2);bn([fn({slot:"label"})],exports.RecordField.prototype,"slottedLabel",2);bn([fn({slot:"label-right"})],exports.RecordField.prototype,"slottedLabelRight",2);exports.RecordField=bn([W(sp)],exports.RecordField);var tz=Object.defineProperty,rz=Object.getOwnPropertyDescriptor,mu=(i,e,n,o)=>{for(var l=o>1?void 0:o?rz(e,n):e,d=i.length-1,u;d>=0;d--)(u=i[d])&&(l=(o?u(e,n,l):u(l))||l);return o&&l&&tz(e,n,l),l};exports.RecordFieldLabel=class extends ze{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 R` <slot></slot> `}};exports.RecordFieldLabel.styles=[Jx];mu([Ce()],exports.RecordFieldLabel.prototype,"hasContent",2);mu([fn()],exports.RecordFieldLabel.prototype,"defaultSlot",2);exports.RecordFieldLabel=mu([W(ap)],exports.RecordFieldLabel);var nz=Object.defineProperty,iz=Object.getOwnPropertyDescriptor,Fn=(i,e,n,o)=>{for(var l=o>1?void 0:o?iz(e,n):e,d=i.length-1,u;d>=0;d--)(u=i[d])&&(l=(o?u(e,n,l):u(l))||l);return o&&l&&nz(e,n,l),l};class tr extends ze{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()}}tr.shadowRootOptions={mode:"open",delegatesFocus:!0};Fn([E({type:Boolean,reflect:!0})],tr.prototype,"disabled",2);Fn([E({type:Boolean,reflect:!0})],tr.prototype,"required",2);Fn([E({type:Boolean,reflect:!0})],tr.prototype,"invalid",2);Fn([E({type:String})],tr.prototype,"name",2);Fn([E({type:String})],tr.prototype,"id",2);Fn([E({type:String})],tr.prototype,"value",2);Fn([Ce()],tr.prototype,"proxyInput",2);Fn([Ce()],tr.prototype,"useProxy",2);var oz=Object.defineProperty,sz=Object.getOwnPropertyDescriptor,az=(i,e,n,o)=>{for(var l=o>1?void 0:o?sz(e,n):e,d=i.length-1,u;d>=0;d--)(u=i[d])&&(l=(o?u(e,n,l):u(l))||l);return o&&l&&oz(e,n,l),l};const lz=ce("input-guide");let tl=class extends ze{render(){return R` <slot></slot> `}};tl.styles=Q`
1888
+ `}};exports.RecordField.styles=[Xx,Yx];vi([E({type:String,attribute:"label-position",reflect:!0})],exports.RecordField.prototype,"labelPosition",2);vi([E({type:String,reflect:!0})],exports.RecordField.prototype,"size",2);vi([Ce()],exports.RecordField.prototype,"hasLabel",2);vi([Ce()],exports.RecordField.prototype,"hasLabelRight",2);vi([Ce()],exports.RecordField.prototype,"isValueMultiline",2);vi([_r(".value")],exports.RecordField.prototype,"value",2);vi([hi({slot:"label"})],exports.RecordField.prototype,"slottedLabel",2);vi([hi({slot:"label-right"})],exports.RecordField.prototype,"slottedLabelRight",2);exports.RecordField=vi([W(sp)],exports.RecordField);var tz=Object.defineProperty,rz=Object.getOwnPropertyDescriptor,mu=(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 ze{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 R` <slot></slot> `}};exports.RecordFieldLabel.styles=[Jx];mu([Ce()],exports.RecordFieldLabel.prototype,"hasContent",2);mu([hi()],exports.RecordFieldLabel.prototype,"defaultSlot",2);exports.RecordFieldLabel=mu([W(ap)],exports.RecordFieldLabel);var iz=Object.defineProperty,nz=Object.getOwnPropertyDescriptor,Ri=(n,e,i,o)=>{for(var l=o>1?void 0:o?nz(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&&iz(e,i,l),l};class tr extends ze{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()}}tr.shadowRootOptions={mode:"open",delegatesFocus:!0};Ri([E({type:Boolean,reflect:!0})],tr.prototype,"disabled",2);Ri([E({type:Boolean,reflect:!0})],tr.prototype,"required",2);Ri([E({type:Boolean,reflect:!0})],tr.prototype,"invalid",2);Ri([E({type:String})],tr.prototype,"name",2);Ri([E({type:String})],tr.prototype,"id",2);Ri([E({type:String})],tr.prototype,"value",2);Ri([Ce()],tr.prototype,"proxyInput",2);Ri([Ce()],tr.prototype,"useProxy",2);var oz=Object.defineProperty,sz=Object.getOwnPropertyDescriptor,az=(n,e,i,o)=>{for(var l=o>1?void 0:o?sz(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=ce("input-guide");let tl=class extends ze{render(){return R` <slot></slot> `}};tl.styles=Q`
1889
1889
  :host {
1890
1890
  font-size: var(--brz-font-size-xs);
1891
1891
  }
1892
- `;tl=az([W(lz)],tl);var cz=Object.defineProperty,uz=Object.getOwnPropertyDescriptor,dz=(i,e,n,o)=>{for(var l=o>1?void 0:o?uz(e,n):e,d=i.length-1,u;d>=0;d--)(u=i[d])&&(l=(o?u(e,n,l):u(l))||l);return o&&l&&cz(e,n,l),l};const lp=ce("input-error");exports.InputError=class extends ze{render(){return R` <slot></slot> `}};exports.InputError.styles=Q`
1892
+ `;tl=az([W(lz)],tl);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=ce("input-error");exports.InputError=class extends ze{render(){return R` <slot></slot> `}};exports.InputError.styles=Q`
1893
1893
  :host {
1894
1894
  font-size: var(--brz-font-size);
1895
1895
  color: var(--brz-color-error);
1896
1896
  }
1897
- `;exports.InputError=dz([W(lp)],exports.InputError);var hz=Object.defineProperty,fz=Object.getOwnPropertyDescriptor,Jr=(i,e,n,o)=>{for(var l=o>1?void 0:o?fz(e,n):e,d=i.length-1,u;d>=0;d--)(u=i[d])&&(l=(o?u(e,n,l):u(l))||l);return o&&l&&hz(e,n,l),l};const cp=ce("labeled-input"),up=ce("input-label"),pz=Q`
1897
+ `;exports.InputError=dz([W(lp)],exports.InputError);var hz=Object.defineProperty,fz=Object.getOwnPropertyDescriptor,Jr=(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=ce("labeled-input"),up=ce("input-label"),pz=Q`
1898
1898
  .guide {
1899
1899
  display: flex;
1900
1900
  }
@@ -1908,7 +1908,7 @@
1908
1908
  .guide.has-error brz-input-error {
1909
1909
  margin-top: var(--brz-spacing-1);
1910
1910
  }
1911
- `;exports.LabeledInput=class extends tr{constructor(){super(...arguments),this.labelPosition="top",this.size="medium",this.optional=!1,this.hasPrompt=!1,this.hasError=!1,this.hasLabel=!1}updated(e){super.updated(e),this.hasLabel=!!this.label.length,this.hasPrompt=!!this.prompt.length}handleErrorChange(){var n;const e=(n=this.shadowRoot)==null?void 0:n.querySelector('slot[name="error"]');this.hasError=e.assignedNodes().length>0}renderInput(){return R`<slot></slot>`}renderInputContainer(){return this.renderInput()}renderGuide(){return null}get labelFlag(){switch(!0){case this.required:return"*";case this.optional:return"(optional)";default:return null}}render(){return R`
1911
+ `;exports.LabeledInput=class extends tr{constructor(){super(...arguments),this.labelPosition="top",this.size="medium",this.optional=!1,this.hasPrompt=!1,this.hasError=!1,this.hasLabel=!1}updated(e){super.updated(e),this.hasLabel=!!this.label.length,this.hasPrompt=!!this.prompt.length}handleErrorChange(){var i;const e=(i=this.shadowRoot)==null?void 0:i.querySelector('slot[name="error"]');this.hasError=e.assignedNodes().length>0}renderInput(){return R`<slot></slot>`}renderInputContainer(){return this.renderInput()}renderGuide(){return null}get labelFlag(){switch(!0){case this.required:return"*";case this.optional:return"(optional)";default:return null}}render(){return R`
1912
1912
  <brz-record-field label-position=${this.labelPosition} size=${this.size}>
1913
1913
  <brz-record-field-label .hidden=${!this.hasLabel}>
1914
1914
  <label for=${this.id} class="label">
@@ -1953,7 +1953,7 @@
1953
1953
  :host([optional]:not([required])) .label-flag {
1954
1954
  color: var(--brz-color-text-placeholder);
1955
1955
  }
1956
- `,pz];Jr([E({type:String,attribute:"label-position",reflect:!0})],exports.LabeledInput.prototype,"labelPosition",2);Jr([E({type:String,reflect:!0})],exports.LabeledInput.prototype,"size",2);Jr([E({type:Boolean,reflect:!0})],exports.LabeledInput.prototype,"optional",2);Jr([Ce()],exports.LabeledInput.prototype,"hasPrompt",2);Jr([Ce()],exports.LabeledInput.prototype,"hasError",2);Jr([Ce()],exports.LabeledInput.prototype,"hasLabel",2);Jr([fn({slot:"label"})],exports.LabeledInput.prototype,"label",2);Jr([fn({slot:"prompt"})],exports.LabeledInput.prototype,"prompt",2);exports.LabeledInput=Jr([W(cp)],exports.LabeledInput);exports.InputLabel=class extends exports.RecordFieldLabel{};exports.InputLabel=Jr([W(up)],exports.InputLabel);var gz=Object.defineProperty,vz=Object.getOwnPropertyDescriptor,Al=(i,e,n,o)=>{for(var l=o>1?void 0:o?vz(e,n):e,d=i.length-1,u;d>=0;d--)(u=i[d])&&(l=(o?u(e,n,l):u(l))||l);return o&&l&&gz(e,n,l),l};const bz=Q`
1956
+ `,pz];Jr([E({type:String,attribute:"label-position",reflect:!0})],exports.LabeledInput.prototype,"labelPosition",2);Jr([E({type:String,reflect:!0})],exports.LabeledInput.prototype,"size",2);Jr([E({type:Boolean,reflect:!0})],exports.LabeledInput.prototype,"optional",2);Jr([Ce()],exports.LabeledInput.prototype,"hasPrompt",2);Jr([Ce()],exports.LabeledInput.prototype,"hasError",2);Jr([Ce()],exports.LabeledInput.prototype,"hasLabel",2);Jr([hi({slot:"label"})],exports.LabeledInput.prototype,"label",2);Jr([hi({slot:"prompt"})],exports.LabeledInput.prototype,"prompt",2);exports.LabeledInput=Jr([W(cp)],exports.LabeledInput);exports.InputLabel=class extends exports.RecordFieldLabel{};exports.InputLabel=Jr([W(up)],exports.InputLabel);var gz=Object.defineProperty,vz=Object.getOwnPropertyDescriptor,Al=(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=Q`
1957
1957
  :host {
1958
1958
  --input-text-color: var(--brz-color-neutral-850);
1959
1959
  --input-font: var(--brz-font-family);
@@ -2058,7 +2058,7 @@
2058
2058
  class="trailing"
2059
2059
  ></brz-icon>`:null}
2060
2060
  </div>
2061
- `}}rr.styles=[...exports.LabeledInput.styles,bz];Al([E({type:Boolean,reflect:!0})],rr.prototype,"readonly",2);Al([E({type:String,reflect:!0})],rr.prototype,"placeholder",2);Al([E({type:String,reflect:!0,attribute:"leading-icon"})],rr.prototype,"leadingIcon",2);Al([E({type:String,reflect:!0,attribute:"trailing-icon"})],rr.prototype,"trailingIcon",2);var mz=Object.defineProperty,yz=Object.getOwnPropertyDescriptor,mr=(i,e,n,o)=>{for(var l=o>1?void 0:o?yz(e,n):e,d=i.length-1,u;d>=0;d--)(u=i[d])&&(l=(o?u(e,n,l):u(l))||l);return o&&l&&mz(e,n,l),l};const Ms="searchMessage",jh="";class Ct extends rr{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-${Sc()}`}))]:[]}updated(e){super.updated(e),e.has("options")&&this.setInnerOptions(),e.has("value")&&this.updateComplete.then(()=>{this.handleValueChange()})}getItemLabel(e){var n,o;return!e||(e==null?void 0:e.value)===""?"":e instanceof exports.MenuItem?(o=(n=e.textContent)==null?void 0:n.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,n;return(n=(e=this.renderRoot)==null?void 0:e.querySelector("slot:not([name])"))==null?void 0:n.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(bu)}get optionElements(){var n,o,l;const e=(n=this.optionElementsRenderRoot)!=null&&n.querySelectorAll(rl).length?(o=this.optionElementsRenderRoot)==null?void 0:o.querySelectorAll(rl):(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():R`
2061
+ `}}rr.styles=[...exports.LabeledInput.styles,bz];Al([E({type:Boolean,reflect:!0})],rr.prototype,"readonly",2);Al([E({type:String,reflect:!0})],rr.prototype,"placeholder",2);Al([E({type:String,reflect:!0,attribute:"leading-icon"})],rr.prototype,"leadingIcon",2);Al([E({type:String,reflect:!0,attribute:"trailing-icon"})],rr.prototype,"trailingIcon",2);var mz=Object.defineProperty,yz=Object.getOwnPropertyDescriptor,mr=(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 Ms="searchMessage",jh="";class Ct extends rr{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-${Sc()}`}))]:[]}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==null?void 0:e.value)===""?"":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(bu)}get optionElements(){var i,o,l;const e=(i=this.optionElementsRenderRoot)!=null&&i.querySelectorAll(rl).length?(o=this.optionElementsRenderRoot)==null?void 0:o.querySelectorAll(rl):(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():R`
2062
2062
  <brz-dropdown-menu
2063
2063
  @brz-menu-select=${this.handleSelect}
2064
2064
  @brz-menu-item-select=${this.handleItemSelect}
@@ -2077,10 +2077,10 @@
2077
2077
  `}renderReferenceElement(){return R``}renderDropdownContent(){return R``}renderOptionsData(e=this.innerOptions){return e!=null&&e.length?R`
2078
2078
  <brz-virtual-list
2079
2079
  slot="options"
2080
- .items=${e.filter(({hidden:n})=>!n)}
2081
- .renderItem=${({id:n,label:o,value:l,disabled:d,selected:u})=>R`
2080
+ .items=${e.filter(({hidden:i})=>!i)}
2081
+ .renderItem=${({id:i,label:o,value:l,disabled:d,selected:u})=>R`
2082
2082
  <brz-menu-item
2083
- id=${n}
2083
+ id=${i}
2084
2084
  value=${l}
2085
2085
  ?disabled=${d}
2086
2086
  ?selected=${u}
@@ -2089,7 +2089,7 @@
2089
2089
  </brz-menu-item>
2090
2090
  `}
2091
2091
  ></brz-virtual-list>
2092
- `: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 n=e.target;this.query=n==null?void 0:n.value,this.dispatchEvent(new yu({detail:{query:this.query}})),this.hasClearableOption()&&n.value===jh&&this.setValue("")}hasClearableOption(){let e=!1;return this.getItems().forEach(n=>{n.value===jh&&(e=!0)}),e}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}}Ct.styles=[...rr.styles,Q`
2092
+ `: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 yu({detail:{query:this.query}})),this.hasClearableOption()&&i.value===jh&&this.setValue("")}hasClearableOption(){let e=!1;return this.getItems().forEach(i=>{i.value===jh&&(e=!0)}),e}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}}Ct.styles=[...rr.styles,Q`
2093
2093
  :host {
2094
2094
  /** 18px for icon, 10px for icon inset, spacing-2 for standard input padding **/
2095
2095
  --dropdown-decorator-offset: calc(18px + 10px + var(--input-padding));
@@ -2134,7 +2134,7 @@
2134
2134
  }
2135
2135
 
2136
2136
  button.wrapper {
2137
- ${n2};
2137
+ ${i2};
2138
2138
  align-items: center;
2139
2139
  background-color: var(--brz-color-white);
2140
2140
  border: var(--input-border);
@@ -2172,7 +2172,7 @@
2172
2172
  border-color: var(--input-focus-border-color);
2173
2173
  outline: none;
2174
2174
  }
2175
- `];mr([E({type:Boolean})],Ct.prototype,"controlled",2);mr([E({attribute:"can-search",type:Boolean,reflect:!0})],Ct.prototype,"canSearch",2);mr([E({type:Boolean,reflect:!0})],Ct.prototype,"loading",2);mr([E({type:String,reflect:!0,attribute:"trailing-icon"})],Ct.prototype,"trailingIcon",2);mr([E({type:Array})],Ct.prototype,"options",2);mr([E({attribute:"search-message"})],Ct.prototype,"searchMessage",2);mr([Ce()],Ct.prototype,"isMenuOpen",2);mr([Ce()],Ct.prototype,"hasResults",2);mr([Ce()],Ct.prototype,"query",2);mr([Ce()],Ct.prototype,"innerOptions",2);mr([_r("brz-dropdown-menu")],Ct.prototype,"dropdown",2);mr([_r("#selectSearch")],Ct.prototype,"queryInput",2);class yu extends CustomEvent{constructor(e={}){super("brz-input-select-query-change",{bubbles:!0,composed:!0,...e})}}var Cz=Object.defineProperty,wz=Object.getOwnPropertyDescriptor,xi=(i,e,n,o)=>{for(var l=o>1?void 0:o?wz(e,n):e,d=i.length-1,u;d>=0;d--)(u=i[d])&&(l=(o?u(e,n,l):u(l))||l);return o&&l&&Cz(e,n,l),l};const rl=ce("menu-item");exports.MenuItem=class extends ze{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 R` <div class="label"><slot></slot></div> `}get itemTemplate(){return this.toggleable?R`
2175
+ `];mr([E({type:Boolean})],Ct.prototype,"controlled",2);mr([E({attribute:"can-search",type:Boolean,reflect:!0})],Ct.prototype,"canSearch",2);mr([E({type:Boolean,reflect:!0})],Ct.prototype,"loading",2);mr([E({type:String,reflect:!0,attribute:"trailing-icon"})],Ct.prototype,"trailingIcon",2);mr([E({type:Array})],Ct.prototype,"options",2);mr([E({attribute:"search-message"})],Ct.prototype,"searchMessage",2);mr([Ce()],Ct.prototype,"isMenuOpen",2);mr([Ce()],Ct.prototype,"hasResults",2);mr([Ce()],Ct.prototype,"query",2);mr([Ce()],Ct.prototype,"innerOptions",2);mr([_r("brz-dropdown-menu")],Ct.prototype,"dropdown",2);mr([_r("#selectSearch")],Ct.prototype,"queryInput",2);class yu extends CustomEvent{constructor(e={}){super("brz-input-select-query-change",{bubbles:!0,composed:!0,...e})}}var Cz=Object.defineProperty,wz=Object.getOwnPropertyDescriptor,xn=(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 rl=ce("menu-item");exports.MenuItem=class extends ze{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 R` <div class="label"><slot></slot></div> `}get itemTemplate(){return this.toggleable?R`
2176
2176
  <brz-input-checkbox
2177
2177
  ?disabled=${this.disabled}
2178
2178
  ?checked=${this.selected}
@@ -2249,8 +2249,8 @@
2249
2249
  padding-left: var(--menu-item-label-gutter);
2250
2250
  position: relative;
2251
2251
  }
2252
- `;xi([E({type:Boolean,reflect:!0})],exports.MenuItem.prototype,"disabled",2);xi([E({type:Boolean,reflect:!0})],exports.MenuItem.prototype,"highlighted",2);xi([E({type:Boolean,attribute:!1})],exports.MenuItem.prototype,"selectable",2);xi([E({type:Boolean,reflect:!0})],exports.MenuItem.prototype,"selected",2);xi([E({type:Boolean,attribute:!1})],exports.MenuItem.prototype,"toggleable",2);xi([E({type:String})],exports.MenuItem.prototype,"value",2);exports.MenuItem=xi([W(rl)],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,mn=(i,e,n,o)=>{for(var l=o>1?void 0:o?zz(e,n):e,d=i.length-1,u;d>=0;d--)(u=i[d])&&(l=(o?u(e,n,l):u(l))||l);return o&&l&&xz(e,n,l),l};const hp=ce("menu"),Tr="selectAll";exports.Menu=class extends ze{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 n;super.updated(e),e.has("highlightedIndex")&&((n=this.highlightedItem)==null||n.scrollIntoView({block:"center"}))}getMenuItems(){return this.virtualListMenuItems||this.menuItems}handleUpOrDownKey(e){e.preventDefault();const{key:n}=e,o=({before:d,after:u})=>(v,y)=>v.hidden?!1:d===void 0&&u===void 0||d!==void 0&&y<d||u!==void 0&&y>u;this.clearHighlightedItem();const l=this.getMenuItems();if(this.highlightedIndex===-1){this.highlightedIndex=0,l[this.highlightedIndex].highlighted=!0;return}n==="ArrowUp"&&(this.highlightedIndex=Hx(l,o({before:this.highlightedIndex})),this.highlightedIndex===-1&&(this.highlightedIndex=l.length-1)),n==="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[n]=this.selectedItems;n==null||n.deselect(),e.select()}this.updateSelected(e.value),this.emitSelection(),this.multiselect||this.emitBlur()}}updateSelected(e){const n=this.selected.some(l=>e===l);if(this.multiselect&&n){this.selected=this.selected.filter(l=>e!==l);return}n||(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 n,o;(o=(n=this.keyBindings)[e.key])==null||o.call(n,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(n=>{var o;n.selectable=this.selectable&&n.id!==Ms,n.toggleable=this.multiselect&&n.id!==Ms,n.id!==Tr&&(n.selected=n.value!==void 0?(o=this.selected)==null?void 0:o.includes(n.value):!1)})}handleSlotChange(e){const n=e.target.assignedElements({flatten:!0});this.slottedElements=n,this.applyPropsToChildren(n)}handleVirtualListUpdate({detail:{itemElements:e}}){this.applyPropsToChildren(e),this.virtualListMenuItems=e}render(){var o;const e=this.getMenuItems(),n=e&&(e==null?void 0:e.length)>0||this.slottedElements&&((o=this.slottedElements)==null?void 0:o.length)>0?"menu-container":"";return R`
2253
- <div class=${n}>
2252
+ `;xn([E({type:Boolean,reflect:!0})],exports.MenuItem.prototype,"disabled",2);xn([E({type:Boolean,reflect:!0})],exports.MenuItem.prototype,"highlighted",2);xn([E({type:Boolean,attribute:!1})],exports.MenuItem.prototype,"selectable",2);xn([E({type:Boolean,reflect:!0})],exports.MenuItem.prototype,"selected",2);xn([E({type:Boolean,attribute:!1})],exports.MenuItem.prototype,"toggleable",2);xn([E({type:String})],exports.MenuItem.prototype,"value",2);exports.MenuItem=xn([W(rl)],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,bi=(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=ce("menu"),Tr="selectAll";exports.Menu=class extends ze{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,y)=>v.hidden?!1:d===void 0&&u===void 0||d!==void 0&&y<d||u!==void 0&&y>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!==Ms,i.toggleable=this.multiselect&&i.id!==Ms,i.id!==Tr&&(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.slottedElements=i,this.applyPropsToChildren(i)}handleVirtualListUpdate({detail:{itemElements:e}}){this.applyPropsToChildren(e),this.virtualListMenuItems=e}render(){var o;const e=this.getMenuItems(),i=e&&(e==null?void 0:e.length)>0||this.slottedElements&&((o=this.slottedElements)==null?void 0:o.length)>0?"menu-container":"";return R`
2253
+ <div class=${i}>
2254
2254
  <ul
2255
2255
  class="menu"
2256
2256
  role="menu"
@@ -2297,13 +2297,13 @@
2297
2297
  width: var(--brz-menu-width, 10rem);
2298
2298
  padding: 0;
2299
2299
  }
2300
- `;mn([E({type:Boolean})],exports.Menu.prototype,"multiselect",2);mn([E({type:Boolean})],exports.Menu.prototype,"selectable",2);mn([E({type:Array})],exports.Menu.prototype,"selected",2);mn([E({reflect:!0})],exports.Menu.prototype,"size",2);mn([Ce()],exports.Menu.prototype,"highlightedIndex",2);mn([Ce()],exports.Menu.prototype,"virtualListMenuItems",2);mn([Ce()],exports.Menu.prototype,"slottedElements",2);mn([fn({flatten:!0})],exports.Menu.prototype,"menuItems",2);exports.Menu=mn([W(hp)],exports.Menu);const Lz=i=>i[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=(i,e,n,o)=>{for(var l=o>1?void 0:o?Mz(e,n):e,d=i.length-1,u;d>=0;d--)(u=i[d])&&(l=(o?u(e,n,l):u(l))||l);return o&&l&&Sz(e,n,l),l};const vp=ce("combo-box"),bp=ce("combo-box-option");exports.ComboBox=class extends exports.DropdownMenu{};exports.ComboBox=gp([W(vp)],exports.ComboBox);exports.ComboBoxOption=class extends exports.MenuItem{};exports.ComboBoxOption=gp([W(bp)],exports.ComboBoxOption);/*!
2300
+ `;bi([E({type:Boolean})],exports.Menu.prototype,"multiselect",2);bi([E({type:Boolean})],exports.Menu.prototype,"selectable",2);bi([E({type:Array})],exports.Menu.prototype,"selected",2);bi([E({reflect:!0})],exports.Menu.prototype,"size",2);bi([Ce()],exports.Menu.prototype,"highlightedIndex",2);bi([Ce()],exports.Menu.prototype,"virtualListMenuItems",2);bi([Ce()],exports.Menu.prototype,"slottedElements",2);bi([hi({flatten:!0})],exports.Menu.prototype,"menuItems",2);exports.Menu=bi([W(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=ce("combo-box"),bp=ce("combo-box-option");exports.ComboBox=class extends exports.DropdownMenu{};exports.ComboBox=gp([W(vp)],exports.ComboBox);exports.ComboBoxOption=class extends exports.MenuItem{};exports.ComboBoxOption=gp([W(bp)],exports.ComboBoxOption);/*!
2301
2301
  * tabbable 6.2.0
2302
2302
  * @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
2303
- */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])"],nl=mp.join(","),yp=typeof Element=="undefined",wi=yp?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,il=!yp&&Element.prototype.getRootNode?function(i){var e;return i==null||(e=i.getRootNode)===null||e===void 0?void 0:e.call(i)}:function(i){return i==null?void 0:i.ownerDocument},ol=function i(e,n){var o;n===void 0&&(n=!0);var l=e==null||(o=e.getAttribute)===null||o===void 0?void 0:o.call(e,"inert"),d=l===""||l==="true",u=d||n&&e&&i(e.parentNode);return u},Tz=function(e){var n,o=e==null||(n=e.getAttribute)===null||n===void 0?void 0:n.call(e,"contenteditable");return o===""||o==="true"},Cp=function(e,n,o){if(ol(e))return[];var l=Array.prototype.slice.apply(e.querySelectorAll(nl));return n&&wi.call(e,nl)&&l.unshift(e),l=l.filter(o),l},wp=function i(e,n,o){for(var l=[],d=Array.from(e);d.length;){var u=d.shift();if(!ol(u,!1))if(u.tagName==="SLOT"){var v=u.assignedElements(),y=v.length?v:u.children,b=i(y,!0,o);o.flatten?l.push.apply(l,b):l.push({scopeParent:u,candidates:b})}else{var M=wi.call(u,nl);M&&o.filter(u)&&(n||!e.includes(u))&&l.push(u);var L=u.shadowRoot||typeof o.getShadowRoot=="function"&&o.getShadowRoot(u),T=!ol(L,!1)&&(!o.shadowRootFilter||o.shadowRootFilter(u));if(L&&T){var $=i(L===!0?u.children:L.children,!0,o);o.flatten?l.push.apply(l,$):l.push({scopeParent:u,candidates:$})}else d.unshift.apply(d,u.children)}}return l},xp=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},di=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,n){var o=di(e);return o<0&&n&&!xp(e)?0:o},Oz=function(e,n){return e.tabIndex===n.tabIndex?e.documentOrder-n.documentOrder:e.tabIndex-n.tabIndex},zp=function(e){return e.tagName==="INPUT"},$z=function(e){return zp(e)&&e.type==="hidden"},Ez=function(e){var n=e.tagName==="DETAILS"&&Array.prototype.slice.apply(e.children).some(function(o){return o.tagName==="SUMMARY"});return n},_z=function(e,n){for(var o=0;o<e.length;o++)if(e[o].checked&&e[o].form===n)return e[o]},Iz=function(e){if(!e.name)return!0;var n=e.form||il(e),o=function(v){return n.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 n,o=e&&il(e),l=(n=o)===null||n===void 0?void 0:n.host,d=!1;if(o&&o!==e){var u,v,y;for(d=!!((u=l)!==null&&u!==void 0&&(v=u.ownerDocument)!==null&&v!==void 0&&v.contains(l)||e!=null&&(y=e.ownerDocument)!==null&&y!==void 0&&y.contains(e));!d&&l;){var b,M,L;o=il(l),l=(b=o)===null||b===void 0?void 0:b.host,d=!!((M=l)!==null&&M!==void 0&&(L=M.ownerDocument)!==null&&L!==void 0&&L.contains(l))}}return d},Gh=function(e){var n=e.getBoundingClientRect(),o=n.width,l=n.height;return o===0&&l===0},Nz=function(e,n){var o=n.displayCheck,l=n.getShadowRoot;if(getComputedStyle(e).visibility==="hidden")return!0;var d=wi.call(e,"details>summary:first-of-type"),u=d?e.parentElement:e;if(wi.call(u,"details:not([open]) *"))return!0;if(!o||o==="full"||o==="legacy-full"){if(typeof l=="function"){for(var v=e;e;){var y=e.parentElement,b=il(e);if(y&&!y.shadowRoot&&l(y)===!0)return Gh(e);e.assignedSlot?e=e.assignedSlot:!y&&b!==e.ownerDocument?e=b.host:e=y}e=v}if(Dz(e))return!e.getClientRects().length;if(o!=="legacy-full")return!0}else if(o==="non-zero-area")return Gh(e);return!1},Hz=function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var n=e.parentElement;n;){if(n.tagName==="FIELDSET"&&n.disabled){for(var o=0;o<n.children.length;o++){var l=n.children.item(o);if(l.tagName==="LEGEND")return wi.call(n,"fieldset[disabled] *")?!0:!l.contains(e)}return!0}n=n.parentElement}return!1},sl=function(e,n){return!(n.disabled||ol(n)||$z(n)||Nz(n,e)||Ez(n)||Hz(n))},Pc=function(e,n){return!(Pz(n)||di(n)<0||!sl(e,n))},Rz=function(e){var n=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(n)||n>=0)},Fz=function i(e){var n=[],o=[];return e.forEach(function(l,d){var u=!!l.scopeParent,v=u?l.scopeParent:l,y=kz(v,u),b=u?i(l.candidates):v;y===0?u?n.push.apply(n,b):n.push(v):o.push({documentOrder:d,tabIndex:y,item:l,isScope:u,content:b})}),o.sort(Oz).reduce(function(l,d){return d.isScope?l.push.apply(l,d.content):l.push(d.content),l},[]).concat(n)},Bz=function(e,n){n=n||{};var o;return n.getShadowRoot?o=wp([e],n.includeContainer,{filter:Pc.bind(null,n),flatten:!1,getShadowRoot:n.getShadowRoot,shadowRootFilter:Rz}):o=Cp(e,n.includeContainer,Pc.bind(null,n)),Fz(o)},Vz=function(e,n){n=n||{};var o;return n.getShadowRoot?o=wp([e],n.includeContainer,{filter:sl.bind(null,n),flatten:!0,getShadowRoot:n.getShadowRoot}):o=Cp(e,n.includeContainer,sl.bind(null,n)),o},Ji=function(e,n){if(n=n||{},!e)throw new Error("No node provided");return wi.call(e,nl)===!1?!1:Pc(n,e)},Zz=mp.concat("iframe").join(","),lc=function(e,n){if(n=n||{},!e)throw new Error("No node provided");return wi.call(e,Zz)===!1?!1:sl(n,e)};/*!
2303
+ */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])"],il=mp.join(","),yp=typeof Element=="undefined",wn=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},ol=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(ol(e))return[];var l=Array.prototype.slice.apply(e.querySelectorAll(il));return i&&wn.call(e,il)&&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(!ol(u,!1))if(u.tagName==="SLOT"){var v=u.assignedElements(),y=v.length?v:u.children,b=n(y,!0,o);o.flatten?l.push.apply(l,b):l.push({scopeParent:u,candidates:b})}else{var M=wn.call(u,il);M&&o.filter(u)&&(i||!e.includes(u))&&l.push(u);var L=u.shadowRoot||typeof o.getShadowRoot=="function"&&o.getShadowRoot(u),T=!ol(L,!1)&&(!o.shadowRootFilter||o.shadowRootFilter(u));if(L&&T){var $=n(L===!0?u.children:L.children,!0,o);o.flatten?l.push.apply(l,$):l.push({scopeParent:u,candidates:$})}else d.unshift.apply(d,u.children)}}return l},xp=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},dn=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=dn(e);return o<0&&i&&!xp(e)?0:o},Oz=function(e,i){return e.tabIndex===i.tabIndex?e.documentOrder-i.documentOrder:e.tabIndex-i.tabIndex},zp=function(e){return e.tagName==="INPUT"},$z=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,y;for(d=!!((u=l)!==null&&u!==void 0&&(v=u.ownerDocument)!==null&&v!==void 0&&v.contains(l)||e!=null&&(y=e.ownerDocument)!==null&&y!==void 0&&y.contains(e));!d&&l;){var b,M,L;o=nl(l),l=(b=o)===null||b===void 0?void 0:b.host,d=!!((M=l)!==null&&M!==void 0&&(L=M.ownerDocument)!==null&&L!==void 0&&L.contains(l))}}return d},Gh=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=wn.call(e,"details>summary:first-of-type"),u=d?e.parentElement:e;if(wn.call(u,"details:not([open]) *"))return!0;if(!o||o==="full"||o==="legacy-full"){if(typeof l=="function"){for(var v=e;e;){var y=e.parentElement,b=nl(e);if(y&&!y.shadowRoot&&l(y)===!0)return Gh(e);e.assignedSlot?e=e.assignedSlot:!y&&b!==e.ownerDocument?e=b.host:e=y}e=v}if(Dz(e))return!e.getClientRects().length;if(o!=="legacy-full")return!0}else if(o==="non-zero-area")return Gh(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 wn.call(i,"fieldset[disabled] *")?!0:!l.contains(e)}return!0}i=i.parentElement}return!1},sl=function(e,i){return!(i.disabled||ol(i)||$z(i)||Nz(i,e)||Ez(i)||Hz(i))},Pc=function(e,i){return!(Pz(i)||dn(i)<0||!sl(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,y=kz(v,u),b=u?n(l.candidates):v;y===0?u?i.push.apply(i,b):i.push(v):o.push({documentOrder:d,tabIndex:y,item:l,isScope:u,content:b})}),o.sort(Oz).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:Pc.bind(null,i),flatten:!1,getShadowRoot:i.getShadowRoot,shadowRootFilter:Rz}):o=Cp(e,i.includeContainer,Pc.bind(null,i)),Fz(o)},Vz=function(e,i){i=i||{};var o;return i.getShadowRoot?o=wp([e],i.includeContainer,{filter:sl.bind(null,i),flatten:!0,getShadowRoot:i.getShadowRoot}):o=Cp(e,i.includeContainer,sl.bind(null,i)),o},Jn=function(e,i){if(i=i||{},!e)throw new Error("No node provided");return wn.call(e,il)===!1?!1:Pc(i,e)},Zz=mp.concat("iframe").join(","),lc=function(e,i){if(i=i||{},!e)throw new Error("No node provided");return wn.call(e,Zz)===!1?!1:sl(i,e)};/*!
2304
2304
  * focus-trap 7.5.4
2305
2305
  * @license MIT, https://github.com/focus-trap/focus-trap/blob/master/LICENSE
2306
- */function qh(i,e){var n=Object.keys(i);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(i);e&&(o=o.filter(function(l){return Object.getOwnPropertyDescriptor(i,l).enumerable})),n.push.apply(n,o)}return n}function Kh(i){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?qh(Object(n),!0).forEach(function(o){Wz(i,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(n)):qh(Object(n)).forEach(function(o){Object.defineProperty(i,o,Object.getOwnPropertyDescriptor(n,o))})}return i}function Wz(i,e,n){return e=jz(e),e in i?Object.defineProperty(i,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):i[e]=n,i}function Uz(i,e){if(typeof i!="object"||i===null)return i;var n=i[Symbol.toPrimitive];if(n!==void 0){var o=n.call(i,e||"default");if(typeof o!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(i)}function jz(i){var e=Uz(i,"string");return typeof e=="symbol"?e:String(e)}var Yh={activateTrap:function(e,n){if(e.length>0){var o=e[e.length-1];o!==n&&o.pause()}var l=e.indexOf(n);l===-1||e.splice(l,1),e.push(n)},deactivateTrap:function(e,n){var o=e.indexOf(n);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},ms=function(e){return(e==null?void 0:e.key)==="Tab"||(e==null?void 0:e.keyCode)===9},Kz=function(e){return ms(e)&&!e.shiftKey},Yz=function(e){return ms(e)&&e.shiftKey},Xh=function(e){return setTimeout(e,0)},Jh=function(e,n){var o=-1;return e.every(function(l,d){return n(l)?(o=d,!1):!0}),o},ds=function(e){for(var n=arguments.length,o=new Array(n>1?n-1:0),l=1;l<n;l++)o[l-1]=arguments[l];return typeof e=="function"?e.apply(void 0,o):e},ka=function(e){return e.target.shadowRoot&&typeof e.composedPath=="function"?e.composedPath()[0]:e.target},Xz=[],Jz=function(e,n){var o=(n==null?void 0:n.document)||document,l=(n==null?void 0:n.trapStack)||Xz,d=Kh({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,isKeyForward:Kz,isKeyBackward:Yz},n),u={containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,delayInitialFocusTimer:void 0,recentNavEvent:void 0},v,y=function(V,O,x){return V&&V[O]!==void 0?V[O]:d[x||O]},b=function(V,O){var x=typeof(O==null?void 0:O.composedPath)=="function"?O.composedPath():void 0;return u.containerGroups.findIndex(function(w){var U=w.container,ie=w.tabbableNodes;return U.contains(V)||(x==null?void 0:x.includes(U))||ie.find(function(ye){return ye===V})})},M=function(V){var O=d[V];if(typeof O=="function"){for(var x=arguments.length,w=new Array(x>1?x-1:0),U=1;U<x;U++)w[U-1]=arguments[U];O=O.apply(void 0,w)}if(O===!0&&(O=void 0),!O){if(O===void 0||O===!1)return O;throw new Error("`".concat(V,"` was specified but was not a node, or did not return a node"))}var ie=O;if(typeof O=="string"&&(ie=o.querySelector(O),!ie))throw new Error("`".concat(V,"` as selector refers to no known node"));return ie},L=function(){var V=M("initialFocus");if(V===!1)return!1;if(V===void 0||!lc(V,d.tabbableOptions))if(b(o.activeElement)>=0)V=o.activeElement;else{var O=u.tabbableGroups[0],x=O&&O.firstTabbableNode;V=x||M("fallbackFocus")}if(!V)throw new Error("Your focus-trap needs to have at least one focusable element");return V},T=function(){if(u.containerGroups=u.containers.map(function(V){var O=Bz(V,d.tabbableOptions),x=Vz(V,d.tabbableOptions),w=O.length>0?O[0]:void 0,U=O.length>0?O[O.length-1]:void 0,ie=x.find(function(Re){return Ji(Re)}),ye=x.slice().reverse().find(function(Re){return Ji(Re)}),ke=!!O.find(function(Re){return di(Re)>0});return{container:V,tabbableNodes:O,focusableNodes:x,posTabIndexesFound:ke,firstTabbableNode:w,lastTabbableNode:U,firstDomTabbableNode:ie,lastDomTabbableNode:ye,nextTabbableNode:function(ot){var Et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,Ye=O.indexOf(ot);return Ye<0?Et?x.slice(x.indexOf(ot)+1).find(function(Xe){return Ji(Xe)}):x.slice(0,x.indexOf(ot)).reverse().find(function(Xe){return Ji(Xe)}):O[Ye+(Et?1:-1)]}}}),u.tabbableGroups=u.containerGroups.filter(function(V){return V.tabbableNodes.length>0}),u.tabbableGroups.length<=0&&!M("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(V){return V.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.")},$=function X(V){var O=V.activeElement;if(O)return O.shadowRoot&&O.shadowRoot.activeElement!==null?X(O.shadowRoot):O},N=function X(V){if(V!==!1&&V!==$(document)){if(!V||!V.focus){X(L());return}V.focus({preventScroll:!!d.preventScroll}),u.mostRecentlyFocusedNode=V,Gz(V)&&V.select()}},Y=function(V){var O=M("setReturnFocus",V);return O||(O===!1?!1:V)},oe=function(V){var O=V.target,x=V.event,w=V.isBackward,U=w===void 0?!1:w;O=O||ka(x),T();var ie=null;if(u.tabbableGroups.length>0){var ye=b(O,x),ke=ye>=0?u.containerGroups[ye]:void 0;if(ye<0)U?ie=u.tabbableGroups[u.tabbableGroups.length-1].lastTabbableNode:ie=u.tabbableGroups[0].firstTabbableNode;else if(U){var Re=Jh(u.tabbableGroups,function(ge){var ve=ge.firstTabbableNode;return O===ve});if(Re<0&&(ke.container===O||lc(O,d.tabbableOptions)&&!Ji(O,d.tabbableOptions)&&!ke.nextTabbableNode(O,!1))&&(Re=ye),Re>=0){var ot=Re===0?u.tabbableGroups.length-1:Re-1,Et=u.tabbableGroups[ot];ie=di(O)>=0?Et.lastTabbableNode:Et.lastDomTabbableNode}else ms(x)||(ie=ke.nextTabbableNode(O,!1))}else{var Ye=Jh(u.tabbableGroups,function(ge){var ve=ge.lastTabbableNode;return O===ve});if(Ye<0&&(ke.container===O||lc(O,d.tabbableOptions)&&!Ji(O,d.tabbableOptions)&&!ke.nextTabbableNode(O))&&(Ye=ye),Ye>=0){var Xe=Ye===u.tabbableGroups.length-1?0:Ye+1,Be=u.tabbableGroups[Xe];ie=di(O)>=0?Be.firstTabbableNode:Be.firstDomTabbableNode}else ms(x)||(ie=ke.nextTabbableNode(O))}}else ie=M("fallbackFocus");return ie},_=function(V){var O=ka(V);if(!(b(O,V)>=0)){if(ds(d.clickOutsideDeactivates,V)){v.deactivate({returnFocus:d.returnFocusOnDeactivate});return}ds(d.allowOutsideClick,V)||V.preventDefault()}},D=function(V){var O=ka(V),x=b(O,V)>=0;if(x||O instanceof Document)x&&(u.mostRecentlyFocusedNode=O);else{V.stopImmediatePropagation();var w,U=!0;if(u.mostRecentlyFocusedNode)if(di(u.mostRecentlyFocusedNode)>0){var ie=b(u.mostRecentlyFocusedNode),ye=u.containerGroups[ie].tabbableNodes;if(ye.length>0){var ke=ye.findIndex(function(Re){return Re===u.mostRecentlyFocusedNode});ke>=0&&(d.isKeyForward(u.recentNavEvent)?ke+1<ye.length&&(w=ye[ke+1],U=!1):ke-1>=0&&(w=ye[ke-1],U=!1))}}else u.containerGroups.some(function(Re){return Re.tabbableNodes.some(function(ot){return di(ot)>0})})||(U=!1);else U=!1;U&&(w=oe({target:u.mostRecentlyFocusedNode,isBackward:d.isKeyBackward(u.recentNavEvent)})),N(w||u.mostRecentlyFocusedNode||L())}u.recentNavEvent=void 0},A=function(V){var O=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;u.recentNavEvent=V;var x=oe({event:V,isBackward:O});x&&(ms(V)&&V.preventDefault(),N(x))},B=function(V){if(qz(V)&&ds(d.escapeDeactivates,V)!==!1){V.preventDefault(),v.deactivate();return}(d.isKeyForward(V)||d.isKeyBackward(V))&&A(V,d.isKeyBackward(V))},K=function(V){var O=ka(V);b(O,V)>=0||ds(d.clickOutsideDeactivates,V)||ds(d.allowOutsideClick,V)||(V.preventDefault(),V.stopImmediatePropagation())},ue=function(){if(u.active)return Yh.activateTrap(l,v),u.delayInitialFocusTimer=d.delayInitialFocus?Xh(function(){N(L())}):N(L()),o.addEventListener("focusin",D,!0),o.addEventListener("mousedown",_,{capture:!0,passive:!1}),o.addEventListener("touchstart",_,{capture:!0,passive:!1}),o.addEventListener("click",K,{capture:!0,passive:!1}),o.addEventListener("keydown",B,{capture:!0,passive:!1}),v},le=function(){if(u.active)return o.removeEventListener("focusin",D,!0),o.removeEventListener("mousedown",_,!0),o.removeEventListener("touchstart",_,!0),o.removeEventListener("click",K,!0),o.removeEventListener("keydown",B,!0),v},me=function(V){var O=V.some(function(x){var w=Array.from(x.removedNodes);return w.some(function(U){return U===u.mostRecentlyFocusedNode})});O&&N(L())},Me=typeof window!="undefined"&&"MutationObserver"in window?new MutationObserver(me):void 0,ne=function(){Me&&(Me.disconnect(),u.active&&!u.paused&&u.containers.map(function(V){Me.observe(V,{subtree:!0,childList:!0})}))};return v={get active(){return u.active},get paused(){return u.paused},activate:function(V){if(u.active)return this;var O=y(V,"onActivate"),x=y(V,"onPostActivate"),w=y(V,"checkCanFocusTrap");w||T(),u.active=!0,u.paused=!1,u.nodeFocusedBeforeActivation=o.activeElement,O==null||O();var U=function(){w&&T(),ue(),ne(),x==null||x()};return w?(w(u.containers.concat()).then(U,U),this):(U(),this)},deactivate:function(V){if(!u.active)return this;var O=Kh({onDeactivate:d.onDeactivate,onPostDeactivate:d.onPostDeactivate,checkCanReturnFocus:d.checkCanReturnFocus},V);clearTimeout(u.delayInitialFocusTimer),u.delayInitialFocusTimer=void 0,le(),u.active=!1,u.paused=!1,ne(),Yh.deactivateTrap(l,v);var x=y(O,"onDeactivate"),w=y(O,"onPostDeactivate"),U=y(O,"checkCanReturnFocus"),ie=y(O,"returnFocus","returnFocusOnDeactivate");x==null||x();var ye=function(){Xh(function(){ie&&N(Y(u.nodeFocusedBeforeActivation)),w==null||w()})};return ie&&U?(U(Y(u.nodeFocusedBeforeActivation)).then(ye,ye),this):(ye(),this)},pause:function(V){if(u.paused||!u.active)return this;var O=y(V,"onPause"),x=y(V,"onPostPause");return u.paused=!0,O==null||O(),le(),ne(),x==null||x(),this},unpause:function(V){if(!u.paused||!u.active)return this;var O=y(V,"onUnpause"),x=y(V,"onPostUnpause");return u.paused=!1,O==null||O(),T(),ue(),ne(),x==null||x(),this},updateContainerElements:function(V){var O=[].concat(V).filter(Boolean);return u.containers=O.map(function(x){return typeof x=="string"?o.querySelector(x):x}),u.active&&T(),ne(),this}},v.updateContainerElements(e),v},Qz=Object.defineProperty,eL=Object.getOwnPropertyDescriptor,zi=(i,e,n,o)=>{for(var l=o>1?void 0:o?eL(e,n):e,d=i.length-1,u;d>=0;d--)(u=i[d])&&(l=(o?u(e,n,l):u(l))||l);return o&&l&&Qz(e,n,l),l};const Lp=ce("modal"),tL=["small","medium","large","x-large","full-page"];class Cu extends CustomEvent{constructor(){super("brz-modal-close",{bubbles:!0})}}exports.Modal=class extends ze{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 Cu))}}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 R`
2306
+ */function qh(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 Kh(n){for(var e=1;e<arguments.length;e++){var i=arguments[e]!=null?arguments[e]:{};e%2?qh(Object(i),!0).forEach(function(o){Wz(n,o,i[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(i)):qh(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 Yh={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},ms=function(e){return(e==null?void 0:e.key)==="Tab"||(e==null?void 0:e.keyCode)===9},Kz=function(e){return ms(e)&&!e.shiftKey},Yz=function(e){return ms(e)&&e.shiftKey},Xh=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},ds=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},ka=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=Kh({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,y=function(V,O,x){return V&&V[O]!==void 0?V[O]:d[x||O]},b=function(V,O){var x=typeof(O==null?void 0:O.composedPath)=="function"?O.composedPath():void 0;return u.containerGroups.findIndex(function(w){var U=w.container,ne=w.tabbableNodes;return U.contains(V)||(x==null?void 0:x.includes(U))||ne.find(function(ye){return ye===V})})},M=function(V){var O=d[V];if(typeof O=="function"){for(var x=arguments.length,w=new Array(x>1?x-1:0),U=1;U<x;U++)w[U-1]=arguments[U];O=O.apply(void 0,w)}if(O===!0&&(O=void 0),!O){if(O===void 0||O===!1)return O;throw new Error("`".concat(V,"` was specified but was not a node, or did not return a node"))}var ne=O;if(typeof O=="string"&&(ne=o.querySelector(O),!ne))throw new Error("`".concat(V,"` as selector refers to no known node"));return ne},L=function(){var V=M("initialFocus");if(V===!1)return!1;if(V===void 0||!lc(V,d.tabbableOptions))if(b(o.activeElement)>=0)V=o.activeElement;else{var O=u.tabbableGroups[0],x=O&&O.firstTabbableNode;V=x||M("fallbackFocus")}if(!V)throw new Error("Your focus-trap needs to have at least one focusable element");return V},T=function(){if(u.containerGroups=u.containers.map(function(V){var O=Bz(V,d.tabbableOptions),x=Vz(V,d.tabbableOptions),w=O.length>0?O[0]:void 0,U=O.length>0?O[O.length-1]:void 0,ne=x.find(function(Re){return Jn(Re)}),ye=x.slice().reverse().find(function(Re){return Jn(Re)}),ke=!!O.find(function(Re){return dn(Re)>0});return{container:V,tabbableNodes:O,focusableNodes:x,posTabIndexesFound:ke,firstTabbableNode:w,lastTabbableNode:U,firstDomTabbableNode:ne,lastDomTabbableNode:ye,nextTabbableNode:function(ot){var Et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,Ye=O.indexOf(ot);return Ye<0?Et?x.slice(x.indexOf(ot)+1).find(function(Xe){return Jn(Xe)}):x.slice(0,x.indexOf(ot)).reverse().find(function(Xe){return Jn(Xe)}):O[Ye+(Et?1:-1)]}}}),u.tabbableGroups=u.containerGroups.filter(function(V){return V.tabbableNodes.length>0}),u.tabbableGroups.length<=0&&!M("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(V){return V.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.")},$=function X(V){var O=V.activeElement;if(O)return O.shadowRoot&&O.shadowRoot.activeElement!==null?X(O.shadowRoot):O},N=function X(V){if(V!==!1&&V!==$(document)){if(!V||!V.focus){X(L());return}V.focus({preventScroll:!!d.preventScroll}),u.mostRecentlyFocusedNode=V,Gz(V)&&V.select()}},Y=function(V){var O=M("setReturnFocus",V);return O||(O===!1?!1:V)},oe=function(V){var O=V.target,x=V.event,w=V.isBackward,U=w===void 0?!1:w;O=O||ka(x),T();var ne=null;if(u.tabbableGroups.length>0){var ye=b(O,x),ke=ye>=0?u.containerGroups[ye]:void 0;if(ye<0)U?ne=u.tabbableGroups[u.tabbableGroups.length-1].lastTabbableNode:ne=u.tabbableGroups[0].firstTabbableNode;else if(U){var Re=Jh(u.tabbableGroups,function(ge){var ve=ge.firstTabbableNode;return O===ve});if(Re<0&&(ke.container===O||lc(O,d.tabbableOptions)&&!Jn(O,d.tabbableOptions)&&!ke.nextTabbableNode(O,!1))&&(Re=ye),Re>=0){var ot=Re===0?u.tabbableGroups.length-1:Re-1,Et=u.tabbableGroups[ot];ne=dn(O)>=0?Et.lastTabbableNode:Et.lastDomTabbableNode}else ms(x)||(ne=ke.nextTabbableNode(O,!1))}else{var Ye=Jh(u.tabbableGroups,function(ge){var ve=ge.lastTabbableNode;return O===ve});if(Ye<0&&(ke.container===O||lc(O,d.tabbableOptions)&&!Jn(O,d.tabbableOptions)&&!ke.nextTabbableNode(O))&&(Ye=ye),Ye>=0){var Xe=Ye===u.tabbableGroups.length-1?0:Ye+1,Be=u.tabbableGroups[Xe];ne=dn(O)>=0?Be.firstTabbableNode:Be.firstDomTabbableNode}else ms(x)||(ne=ke.nextTabbableNode(O))}}else ne=M("fallbackFocus");return ne},_=function(V){var O=ka(V);if(!(b(O,V)>=0)){if(ds(d.clickOutsideDeactivates,V)){v.deactivate({returnFocus:d.returnFocusOnDeactivate});return}ds(d.allowOutsideClick,V)||V.preventDefault()}},D=function(V){var O=ka(V),x=b(O,V)>=0;if(x||O instanceof Document)x&&(u.mostRecentlyFocusedNode=O);else{V.stopImmediatePropagation();var w,U=!0;if(u.mostRecentlyFocusedNode)if(dn(u.mostRecentlyFocusedNode)>0){var ne=b(u.mostRecentlyFocusedNode),ye=u.containerGroups[ne].tabbableNodes;if(ye.length>0){var ke=ye.findIndex(function(Re){return Re===u.mostRecentlyFocusedNode});ke>=0&&(d.isKeyForward(u.recentNavEvent)?ke+1<ye.length&&(w=ye[ke+1],U=!1):ke-1>=0&&(w=ye[ke-1],U=!1))}}else u.containerGroups.some(function(Re){return Re.tabbableNodes.some(function(ot){return dn(ot)>0})})||(U=!1);else U=!1;U&&(w=oe({target:u.mostRecentlyFocusedNode,isBackward:d.isKeyBackward(u.recentNavEvent)})),N(w||u.mostRecentlyFocusedNode||L())}u.recentNavEvent=void 0},A=function(V){var O=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;u.recentNavEvent=V;var x=oe({event:V,isBackward:O});x&&(ms(V)&&V.preventDefault(),N(x))},B=function(V){if(qz(V)&&ds(d.escapeDeactivates,V)!==!1){V.preventDefault(),v.deactivate();return}(d.isKeyForward(V)||d.isKeyBackward(V))&&A(V,d.isKeyBackward(V))},K=function(V){var O=ka(V);b(O,V)>=0||ds(d.clickOutsideDeactivates,V)||ds(d.allowOutsideClick,V)||(V.preventDefault(),V.stopImmediatePropagation())},ue=function(){if(u.active)return Yh.activateTrap(l,v),u.delayInitialFocusTimer=d.delayInitialFocus?Xh(function(){N(L())}):N(L()),o.addEventListener("focusin",D,!0),o.addEventListener("mousedown",_,{capture:!0,passive:!1}),o.addEventListener("touchstart",_,{capture:!0,passive:!1}),o.addEventListener("click",K,{capture:!0,passive:!1}),o.addEventListener("keydown",B,{capture:!0,passive:!1}),v},le=function(){if(u.active)return o.removeEventListener("focusin",D,!0),o.removeEventListener("mousedown",_,!0),o.removeEventListener("touchstart",_,!0),o.removeEventListener("click",K,!0),o.removeEventListener("keydown",B,!0),v},me=function(V){var O=V.some(function(x){var w=Array.from(x.removedNodes);return w.some(function(U){return U===u.mostRecentlyFocusedNode})});O&&N(L())},Me=typeof window!="undefined"&&"MutationObserver"in window?new MutationObserver(me):void 0,ie=function(){Me&&(Me.disconnect(),u.active&&!u.paused&&u.containers.map(function(V){Me.observe(V,{subtree:!0,childList:!0})}))};return v={get active(){return u.active},get paused(){return u.paused},activate:function(V){if(u.active)return this;var O=y(V,"onActivate"),x=y(V,"onPostActivate"),w=y(V,"checkCanFocusTrap");w||T(),u.active=!0,u.paused=!1,u.nodeFocusedBeforeActivation=o.activeElement,O==null||O();var U=function(){w&&T(),ue(),ie(),x==null||x()};return w?(w(u.containers.concat()).then(U,U),this):(U(),this)},deactivate:function(V){if(!u.active)return this;var O=Kh({onDeactivate:d.onDeactivate,onPostDeactivate:d.onPostDeactivate,checkCanReturnFocus:d.checkCanReturnFocus},V);clearTimeout(u.delayInitialFocusTimer),u.delayInitialFocusTimer=void 0,le(),u.active=!1,u.paused=!1,ie(),Yh.deactivateTrap(l,v);var x=y(O,"onDeactivate"),w=y(O,"onPostDeactivate"),U=y(O,"checkCanReturnFocus"),ne=y(O,"returnFocus","returnFocusOnDeactivate");x==null||x();var ye=function(){Xh(function(){ne&&N(Y(u.nodeFocusedBeforeActivation)),w==null||w()})};return ne&&U?(U(Y(u.nodeFocusedBeforeActivation)).then(ye,ye),this):(ye(),this)},pause:function(V){if(u.paused||!u.active)return this;var O=y(V,"onPause"),x=y(V,"onPostPause");return u.paused=!0,O==null||O(),le(),ie(),x==null||x(),this},unpause:function(V){if(!u.paused||!u.active)return this;var O=y(V,"onUnpause"),x=y(V,"onPostUnpause");return u.paused=!1,O==null||O(),T(),ue(),ie(),x==null||x(),this},updateContainerElements:function(V){var O=[].concat(V).filter(Boolean);return u.containers=O.map(function(x){return typeof x=="string"?o.querySelector(x):x}),u.active&&T(),ie(),this}},v.updateContainerElements(e),v},Qz=Object.defineProperty,eL=Object.getOwnPropertyDescriptor,zn=(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=ce("modal"),tL=["small","medium","large","x-large","full-page"];class Cu extends CustomEvent{constructor(){super("brz-modal-close",{bubbles:!0})}}exports.Modal=class extends ze{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 Cu))}}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 R`
2307
2307
  <brz-fade-in-out ?shown=${this.open}>
2308
2308
  <div
2309
2309
  id="overlay"
@@ -2405,7 +2405,7 @@
2405
2405
  ::slotted(sp-modal-body:first-child) {
2406
2406
  padding-top: var(--brz-spacing-10);
2407
2407
  }
2408
- `;zi([E({type:String})],exports.Modal.prototype,"size",2);zi([E({type:Boolean})],exports.Modal.prototype,"open",2);zi([E({type:Boolean,attribute:"no-close"})],exports.Modal.prototype,"noClose",2);zi([Ce()],exports.Modal.prototype,"focusTrap",2);zi([_r("#overlay")],exports.Modal.prototype,"overlay",2);zi([_r(".modal")],exports.Modal.prototype,"modal",2);exports.Modal=zi([W(Lp)],exports.Modal);var rL=Object.defineProperty,nL=Object.getOwnPropertyDescriptor,Qr=(i,e,n,o)=>{for(var l=o>1?void 0:o?nL(e,n):e,d=i.length-1,u;d>=0;d--)(u=i[d])&&(l=(o?u(e,n,l):u(l))||l);return o&&l&&rL(e,n,l),l};const Sp=ce("split-row"),Mp=ce("action-bar");exports.SplitRow=class extends ze{constructor(){super(...arguments),this.verticalAlign="top",this.leftExpand=!1,this.rightExpand=!1,this.noGap=!1,this.expandY=!1}render(){return R`
2408
+ `;zn([E({type:String})],exports.Modal.prototype,"size",2);zn([E({type:Boolean})],exports.Modal.prototype,"open",2);zn([E({type:Boolean,attribute:"no-close"})],exports.Modal.prototype,"noClose",2);zn([Ce()],exports.Modal.prototype,"focusTrap",2);zn([_r("#overlay")],exports.Modal.prototype,"overlay",2);zn([_r(".modal")],exports.Modal.prototype,"modal",2);exports.Modal=zn([W(Lp)],exports.Modal);var rL=Object.defineProperty,iL=Object.getOwnPropertyDescriptor,Qr=(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&&rL(e,i,l),l};const Sp=ce("split-row"),Mp=ce("action-bar");exports.SplitRow=class extends ze{constructor(){super(...arguments),this.verticalAlign="top",this.leftExpand=!1,this.rightExpand=!1,this.noGap=!1,this.expandY=!1}render(){return R`
2409
2409
  <brz-row vertical-align=${this.verticalAlign}>
2410
2410
  <div class="left">
2411
2411
  <slot name="left"></slot>
@@ -2463,7 +2463,7 @@
2463
2463
  :host([no-border]) brz-split-row {
2464
2464
  box-shadow: none;
2465
2465
  }
2466
- `;Qr([E({type:Boolean,attribute:"no-border",reflect:!0})],exports.ActionBar.prototype,"noBorder",2);Qr([E({type:Boolean,attribute:"left-expand",reflect:!0})],exports.ActionBar.prototype,"leftExpand",2);Qr([E({type:Boolean,attribute:"right-expand",reflect:!0})],exports.ActionBar.prototype,"rightExpand",2);exports.ActionBar=Qr([W(Mp)],exports.ActionBar);var iL=Object.defineProperty,oL=Object.getOwnPropertyDescriptor,Pl=(i,e,n,o)=>{for(var l=o>1?void 0:o?oL(e,n):e,d=i.length-1,u;d>=0;d--)(u=i[d])&&(l=(o?u(e,n,l):u(l))||l);return o&&l&&iL(e,n,l),l};const Tp=ce("modal-header"),kp=ce("modal-body"),Op=ce("modal-footer");exports.ModalHeader=class extends ze{get _noClose(){var e;return(e=Lc(this.parentElement,exports.Modal))==null?void 0:e.noClose}_handleClickClose(){this.dispatchEvent(new Cu)}render(){return R`
2466
+ `;Qr([E({type:Boolean,attribute:"no-border",reflect:!0})],exports.ActionBar.prototype,"noBorder",2);Qr([E({type:Boolean,attribute:"left-expand",reflect:!0})],exports.ActionBar.prototype,"leftExpand",2);Qr([E({type:Boolean,attribute:"right-expand",reflect:!0})],exports.ActionBar.prototype,"rightExpand",2);exports.ActionBar=Qr([W(Mp)],exports.ActionBar);var nL=Object.defineProperty,oL=Object.getOwnPropertyDescriptor,Pl=(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&&nL(e,i,l),l};const Tp=ce("modal-header"),kp=ce("modal-body"),Op=ce("modal-footer");exports.ModalHeader=class extends ze{get _noClose(){var e;return(e=Lc(this.parentElement,exports.Modal))==null?void 0:e.noClose}_handleClickClose(){this.dispatchEvent(new Cu)}render(){return R`
2467
2467
  <brz-heading size="xl"><slot></slot></brz-heading>
2468
2468
  ${this._noClose?void 0:R`
2469
2469
  <brz-button
@@ -2512,7 +2512,7 @@
2512
2512
  display: block;
2513
2513
  padding: var(--brz-spacing-5) var(--brz-spacing-6);
2514
2514
  }
2515
- `;exports.ModalFooter=Pl([W(Op)],exports.ModalFooter);var sL=Object.defineProperty,aL=Object.getOwnPropertyDescriptor,$p=(i,e,n,o)=>{for(var l=o>1?void 0:o?aL(e,n):e,d=i.length-1,u;d>=0;d--)(u=i[d])&&(l=(o?u(e,n,l):u(l))||l);return o&&l&&sL(e,n,l),l};const Ep=ce("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 ze{constructor(){super(...arguments),this.open=!1}handleCancel(){this.dispatchEvent(new _p)}handleConfirm(){this.dispatchEvent(new Ip)}render(){return R`<brz-modal size="small" ?open=${this.open} noClose>
2515
+ `;exports.ModalFooter=Pl([W(Op)],exports.ModalFooter);var sL=Object.defineProperty,aL=Object.getOwnPropertyDescriptor,$p=(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&&sL(e,i,l),l};const Ep=ce("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 ze{constructor(){super(...arguments),this.open=!1}handleCancel(){this.dispatchEvent(new _p)}handleConfirm(){this.dispatchEvent(new Ip)}render(){return R`<brz-modal size="small" ?open=${this.open} noClose>
2516
2516
  <brz-modal-body>
2517
2517
  <slot name="body"></slot>
2518
2518
  </brz-modal-body>
@@ -2526,12 +2526,12 @@
2526
2526
  </brz-button>
2527
2527
  </brz-button-group>
2528
2528
  </brz-modal-footer>
2529
- </brz-modal>`}};$p([E({type:Boolean})],exports.ConfirmationDialog.prototype,"open",2);exports.ConfirmationDialog=$p([W(Ep)],exports.ConfirmationDialog);var lL=Object.defineProperty,cL=Object.getOwnPropertyDescriptor,wu=(i,e,n,o)=>{for(var l=o>1?void 0:o?cL(e,n):e,d=i.length-1,u;d>=0;d--)(u=i[d])&&(l=(o?u(e,n,l):u(l))||l);return o&&l&&lL(e,n,l),l};const Ap=ce("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 R`
2529
+ </brz-modal>`}};$p([E({type:Boolean})],exports.ConfirmationDialog.prototype,"open",2);exports.ConfirmationDialog=$p([W(Ep)],exports.ConfirmationDialog);var lL=Object.defineProperty,cL=Object.getOwnPropertyDescriptor,wu=(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=ce("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 R`
2530
2530
  <brz-dropdown-menu .size=${this.menuSize}>
2531
2531
  ${super.render()}
2532
2532
  <slot name="options" slot="options"></slot>
2533
2533
  </brz-dropdown-menu>
2534
- `}};wu([E({attribute:"menu-size"})],exports.DropdownButton.prototype,"menuSize",2);wu([E({type:String,attribute:"tooltip-text"})],exports.DropdownButton.prototype,"tooltipText",2);exports.DropdownButton=wu([W(Ap)],exports.DropdownButton);var uL=Object.defineProperty,dL=Object.getOwnPropertyDescriptor,Bn=(i,e,n,o)=>{for(var l=o>1?void 0:o?dL(e,n):e,d=i.length-1,u;d>=0;d--)(u=i[d])&&(l=(o?u(e,n,l):u(l))||l);return o&&l&&uL(e,n,l),l};const Pp=ce("input-checkbox"),Lr={Checked:"Checked",Indeterminate:"Indeterminate",Empty:"Empty"};exports.InputCheckbox=class extends tr{constructor(){super(...arguments),this.checked=!1,this.disabled=!1,this.leftLabel=!1,this.value="on",this.indeterminate=!1,this.checkboxState=Lr.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 Lr.Checked:this.checked=!1;break;case Lr.Empty:this.checked=!0;break;case Lr.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 Lr.Checked:return R`<brz-icon icon="checkBoxTick" size="16"></brz-icon>`;case Lr.Indeterminate:return R`<brz-icon icon="zoomOut" size="16"></brz-icon>`;case Lr.Empty:default:return}}firstUpdated(){this.inputElement=this.renderRoot.querySelector("input"),this.indeterminate&&this.inputElement&&(this.inputElement.indeterminate=!0)}render(){this.checkboxState=this.checked?Lr.Checked:this.indeterminate?Lr.Indeterminate:Lr.Empty;const e=R`
2534
+ `}};wu([E({attribute:"menu-size"})],exports.DropdownButton.prototype,"menuSize",2);wu([E({type:String,attribute:"tooltip-text"})],exports.DropdownButton.prototype,"tooltipText",2);exports.DropdownButton=wu([W(Ap)],exports.DropdownButton);var uL=Object.defineProperty,dL=Object.getOwnPropertyDescriptor,Fi=(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=ce("input-checkbox"),Lr={Checked:"Checked",Indeterminate:"Indeterminate",Empty:"Empty"};exports.InputCheckbox=class extends tr{constructor(){super(...arguments),this.checked=!1,this.disabled=!1,this.leftLabel=!1,this.value="on",this.indeterminate=!1,this.checkboxState=Lr.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 Lr.Checked:this.checked=!1;break;case Lr.Empty:this.checked=!0;break;case Lr.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 Lr.Checked:return R`<brz-icon icon="checkBoxTick" size="16"></brz-icon>`;case Lr.Indeterminate:return R`<brz-icon icon="zoomOut" size="16"></brz-icon>`;case Lr.Empty:default:return}}firstUpdated(){this.inputElement=this.renderRoot.querySelector("input"),this.indeterminate&&this.inputElement&&(this.inputElement.indeterminate=!0)}render(){this.checkboxState=this.checked?Lr.Checked:this.indeterminate?Lr.Indeterminate:Lr.Empty;const e=R`
2535
2535
  <div class="checkbox-left">
2536
2536
  <div
2537
2537
  class="checkbox"
@@ -2541,7 +2541,7 @@
2541
2541
  ${this.getIcon()}
2542
2542
  </div>
2543
2543
  </div>
2544
- `,n=R`
2544
+ `,i=R`
2545
2545
  <input
2546
2546
  @change=${this.onInput}
2547
2547
  .value=${this.value}
@@ -2555,7 +2555,7 @@
2555
2555
  <slot></slot>
2556
2556
  `;return R`
2557
2557
  <label>
2558
- ${this.leftLabel?R`${n}${e}`:R`${e}${n}`}
2558
+ ${this.leftLabel?R`${i}${e}`:R`${e}${i}`}
2559
2559
  </label>
2560
2560
  `}};exports.InputCheckbox.styles=[Q`
2561
2561
  :host {
@@ -2615,7 +2615,7 @@
2615
2615
  height: var(--brz-line-height);
2616
2616
  }
2617
2617
 
2618
- ${mi(".checkbox")}
2618
+ ${mn(".checkbox")}
2619
2619
 
2620
2620
  .checkbox {
2621
2621
  width: var(--brz-checkbox-size);
@@ -2637,7 +2637,7 @@
2637
2637
  position: absolute;
2638
2638
  left: 0;
2639
2639
  }
2640
- `];Bn([E({type:Boolean,reflect:!0})],exports.InputCheckbox.prototype,"checked",2);Bn([E({type:Boolean,reflect:!0})],exports.InputCheckbox.prototype,"disabled",2);Bn([E({type:Boolean,reflect:!0,attribute:"left-label"})],exports.InputCheckbox.prototype,"leftLabel",2);Bn([E()],exports.InputCheckbox.prototype,"value",2);Bn([E({type:Boolean,reflect:!0})],exports.InputCheckbox.prototype,"indeterminate",2);Bn([Ce()],exports.InputCheckbox.prototype,"checkboxState",2);Bn([Ce()],exports.InputCheckbox.prototype,"inputElement",2);exports.InputCheckbox=Bn([W(Pp)],exports.InputCheckbox);var hL=Object.defineProperty,fL=Object.getOwnPropertyDescriptor,Dl=(i,e,n,o)=>{for(var l=o>1?void 0:o?fL(e,n):e,d=i.length-1,u;d>=0;d--)(u=i[d])&&(l=(o?u(e,n,l):u(l))||l);return o&&l&&hL(e,n,l),l};const Dp=ce("input-text");exports.InputText=class extends rr{constructor(){super(...arguments),this.size="medium"}renderInput(){return R`
2640
+ `];Fi([E({type:Boolean,reflect:!0})],exports.InputCheckbox.prototype,"checked",2);Fi([E({type:Boolean,reflect:!0})],exports.InputCheckbox.prototype,"disabled",2);Fi([E({type:Boolean,reflect:!0,attribute:"left-label"})],exports.InputCheckbox.prototype,"leftLabel",2);Fi([E()],exports.InputCheckbox.prototype,"value",2);Fi([E({type:Boolean,reflect:!0})],exports.InputCheckbox.prototype,"indeterminate",2);Fi([Ce()],exports.InputCheckbox.prototype,"checkboxState",2);Fi([Ce()],exports.InputCheckbox.prototype,"inputElement",2);exports.InputCheckbox=Fi([W(Pp)],exports.InputCheckbox);var hL=Object.defineProperty,fL=Object.getOwnPropertyDescriptor,Dl=(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=ce("input-text");exports.InputText=class extends rr{constructor(){super(...arguments),this.size="medium"}renderInput(){return R`
2641
2641
  <input
2642
2642
  @input=${this.onInput}
2643
2643
  .value=${He(this.value)}
@@ -2654,7 +2654,7 @@
2654
2654
  input {
2655
2655
  height: 36px;
2656
2656
  }
2657
- `];Dl([E({type:String})],exports.InputText.prototype,"value",2);Dl([E({type:String,reflect:!0})],exports.InputText.prototype,"size",2);Dl([E({type:Number,reflect:!0})],exports.InputText.prototype,"maxlength",2);exports.InputText=Dl([W(Dp)],exports.InputText);var pL=Object.defineProperty,gL=Object.getOwnPropertyDescriptor,Nl=(i,e,n,o)=>{for(var l=o>1?void 0:o?gL(e,n):e,d=i.length-1,u;d>=0;d--)(u=i[d])&&(l=(o?u(e,n,l):u(l))||l);return o&&l&&pL(e,n,l),l};const Np=ce("input-textarea");exports.InputTextarea=class extends rr{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,n=R`${e} of ${this.maxlength}`;return e>=this.maxlength?R`<brz-input-error>${n}</brz-input-error>`:R`<brz-input-guide>${n}</brz-input-guide>`}renderInput(){var e;return R`
2657
+ `];Dl([E({type:String})],exports.InputText.prototype,"value",2);Dl([E({type:String,reflect:!0})],exports.InputText.prototype,"size",2);Dl([E({type:Number,reflect:!0})],exports.InputText.prototype,"maxlength",2);exports.InputText=Dl([W(Dp)],exports.InputText);var pL=Object.defineProperty,gL=Object.getOwnPropertyDescriptor,Nl=(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=ce("input-textarea");exports.InputTextarea=class extends rr{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=R`${e} of ${this.maxlength}`;return e>=this.maxlength?R`<brz-input-error>${i}</brz-input-error>`:R`<brz-input-guide>${i}</brz-input-guide>`}renderInput(){var e;return R`
2658
2658
  <textarea
2659
2659
  @input=${this.onInput}
2660
2660
  .value=${(e=this.value)!=null?e:""}
@@ -2670,7 +2670,7 @@
2670
2670
  height: 100px;
2671
2671
  resize: none;
2672
2672
  }
2673
- `];Nl([E({type:String})],exports.InputTextarea.prototype,"value",2);Nl([E({type:String,reflect:!0})],exports.InputTextarea.prototype,"size",2);Nl([E({type:Number,reflect:!0,attribute:"maxlength"})],exports.InputTextarea.prototype,"maxlength",2);exports.InputTextarea=Nl([W(Np)],exports.InputTextarea);var vL=Object.defineProperty,bL=Object.getOwnPropertyDescriptor,yn=(i,e,n,o)=>{for(var l=o>1?void 0:o?bL(e,n):e,d=i.length-1,u;d>=0;d--)(u=i[d])&&(l=(o?u(e,n,l):u(l))||l);return o&&l&&vL(e,n,l),l};const Hp=ce("input-number"),mL=Q`
2673
+ `];Nl([E({type:String})],exports.InputTextarea.prototype,"value",2);Nl([E({type:String,reflect:!0})],exports.InputTextarea.prototype,"size",2);Nl([E({type:Number,reflect:!0,attribute:"maxlength"})],exports.InputTextarea.prototype,"maxlength",2);exports.InputTextarea=Nl([W(Np)],exports.InputTextarea);var vL=Object.defineProperty,bL=Object.getOwnPropertyDescriptor,mi=(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=ce("input-number"),mL=Q`
2674
2674
  /* Chrome, Safari, Edge, Opera */
2675
2675
  input::-webkit-outer-spin-button,
2676
2676
  input::-webkit-inner-spin-button {
@@ -2682,7 +2682,7 @@
2682
2682
  input[type='number'] {
2683
2683
  -moz-appearance: textfield;
2684
2684
  }
2685
- `,Rp=["e","+"],Dc=(i,e,n=!1)=>{const o=n?"-?":"",l=e?"([0-9]{0,"+e+"})":"([0-9]+)?",d=i===0?"":"(.([0-9]{0,"+i+"}))?";return new RegExp("^"+o+l+d+"$")},Fp=i=>Rp.includes(i.toLowerCase()),yL=i=>!!Rp.find(e=>i.toLowerCase().includes(e)),CL=i=>{var n,o;Fp(i.key)&&i.preventDefault();const e=i.target;((n=e==null?void 0:e.value)==null?void 0:n.length)===0&&i.key==="-"&&(e.value=""),((o=e==null?void 0:e.value)==null?void 0:o.length)>0&&i.key==="-"&&i.preventDefault()},wL=(i,e)=>{var u;const n=Dc(e,void 0,!0),{clipboardData:o}=i,l=(u=o==null?void 0:o.getData("text"))==null?void 0:u.toLowerCase();if(!l)return;const d=i.target;(!(d!=null&&d.value)||!n.test(d.value+l)&&n.test(l))&&(d.value=""),(Fp(l)||yL(l)||!n.test(l))&&(i.stopPropagation(),i.preventDefault())};exports.InputNumber=class extends rr{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 n=typeof e.target.value=="string"?parseFloat(e.target.value):e.target.value;if(e.target.value===""||e.target.value==="-"){super.onInput({target:{value:n}});return}if(this.allowValueUpdate(n)){const l=this.decimalPlaces?parseFloat(Number(n).toFixed(this.decimalPlaces)):n;super.onInput({target:{value:l}})}else e.target.value=(o=this.value)!=null?o:"0"}allowValueUpdate(e){const n=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:Dc(this.decimalPlaces,n).test(e.toString()),u=l?Dc(this.decimalPlaces,o,!0).test(e.toString()):!0,v=this.min?e>=this.min:!0,y=this.max?e<=this.max:!0;return!!(d&&u&&v&&y)}handleKeyDown(e){CL(e)}handlePaste(e){wL(e,this.decimalPlaces)}get stepperLayout(){return this.hasNoStepper?null:R`
2685
+ `,Rp=["e","+"],Dc=(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=Dc(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 rr{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:Dc(this.decimalPlaces,i).test(e.toString()),u=l?Dc(this.decimalPlaces,o,!0).test(e.toString()):!0,v=this.min?e>=this.min:!0,y=this.max?e<=this.max:!0;return!!(d&&u&&v&&y)}handleKeyDown(e){CL(e)}handlePaste(e){wL(e,this.decimalPlaces)}get stepperLayout(){return this.hasNoStepper?null:R`
2686
2686
  <div class="stepper-container">
2687
2687
  <button
2688
2688
  @click=${this.handleDecrease}
@@ -2797,11 +2797,11 @@
2797
2797
  background-color: var(--input-readonly-background-color);
2798
2798
  border-color: var(--input-readonly-border-color);
2799
2799
  }
2800
- `];yn([E({type:Number})],exports.InputNumber.prototype,"value",2);yn([E({type:String,reflect:!0,attribute:"units"})],exports.InputNumber.prototype,"units",2);yn([E({type:Boolean,reflect:!0,attribute:"has-no-stepper"})],exports.InputNumber.prototype,"hasNoStepper",2);yn([E({type:Number,reflect:!0})],exports.InputNumber.prototype,"min",2);yn([E({type:Number,reflect:!0})],exports.InputNumber.prototype,"max",2);yn([E({type:Number,reflect:!0,attribute:"decimal-places"})],exports.InputNumber.prototype,"decimalPlaces",2);yn([E({type:Number,reflect:!0})],exports.InputNumber.prototype,"step",2);yn([_r('input[type="number"]')],exports.InputNumber.prototype,"inputElement",2);exports.InputNumber=yn([W(Hp)],exports.InputNumber);/**
2800
+ `];mi([E({type:Number})],exports.InputNumber.prototype,"value",2);mi([E({type:String,reflect:!0,attribute:"units"})],exports.InputNumber.prototype,"units",2);mi([E({type:Boolean,reflect:!0,attribute:"has-no-stepper"})],exports.InputNumber.prototype,"hasNoStepper",2);mi([E({type:Number,reflect:!0})],exports.InputNumber.prototype,"min",2);mi([E({type:Number,reflect:!0})],exports.InputNumber.prototype,"max",2);mi([E({type:Number,reflect:!0,attribute:"decimal-places"})],exports.InputNumber.prototype,"decimalPlaces",2);mi([E({type:Number,reflect:!0})],exports.InputNumber.prototype,"step",2);mi([_r('input[type="number"]')],exports.InputNumber.prototype,"inputElement",2);exports.InputNumber=mi([W(Hp)],exports.InputNumber);/**
2801
2801
  * @license
2802
2802
  * Copyright 2017 Google LLC
2803
2803
  * SPDX-License-Identifier: BSD-3-Clause
2804
- */class Nc extends Cl{constructor(e){if(super(e),this.et=vt,e.type!==ml.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===vt||e==null)return this.ft=void 0,this.et=e;if(e===dn)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 n=[e];return n.raw=n,this.ft={_$litType$:this.constructor.resultType,strings:n,values:[]}}}Nc.directiveName="unsafeHTML",Nc.resultType=1;const xL=yl(Nc);var zL=Object.defineProperty,LL=Object.getOwnPropertyDescriptor,Li=(i,e,n,o)=>{for(var l=o>1?void 0:o?LL(e,n):e,d=i.length-1,u;d>=0;d--)(u=i[d])&&(l=(o?u(e,n,l):u(l))||l);return o&&l&&zL(e,n,l),l};const Bp=ce("input-radio-group"),Vp=ce("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 n;const e=(n=this.shadowRoot)==null?void 0:n.querySelector("#options");return Array.from(e.assignedElements()).filter(o=>o instanceof exports.InputRadioOption)}radioChange(e){const n=e.target;this.value=n.value,this.dispatchChange()}renderInput(){return R`
2804
+ */class Nc extends Cl{constructor(e){if(super(e),this.et=vt,e.type!==ml.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===vt||e==null)return this.ft=void 0,this.et=e;if(e===ui)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:[]}}}Nc.directiveName="unsafeHTML",Nc.resultType=1;const xL=yl(Nc);var zL=Object.defineProperty,LL=Object.getOwnPropertyDescriptor,Ln=(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=ce("input-radio-group"),Vp=ce("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 R`
2805
2805
  <slot
2806
2806
  id="options"
2807
2807
  style="display: none;"
@@ -2809,7 +2809,7 @@
2809
2809
  ></slot>
2810
2810
 
2811
2811
  <fieldset @change=${this.radioChange}>
2812
- ${this._radioElements.map(e=>{var o,l;const n=((o=e.value)==null?void 0:o.toString())===((l=this.value)==null?void 0:l.toString());return R`
2812
+ ${this._radioElements.map(e=>{var o,l;const i=((o=e.value)==null?void 0:o.toString())===((l=this.value)==null?void 0:l.toString());return R`
2813
2813
  <div class="radio-option">
2814
2814
  <input
2815
2815
  id=${e.value}
@@ -2817,7 +2817,7 @@
2817
2817
  name=${this.name}
2818
2818
  value=${e.value}
2819
2819
  aria-invalid=${He(this.invalid?this.invalid:void 0)}
2820
- ?checked=${n}
2820
+ ?checked=${i}
2821
2821
  ?disabled=${e.disabled||this.disabled}
2822
2822
  />
2823
2823
  <label for=${e.value}>${xL(e.innerHTML)}</label>
@@ -2976,30 +2976,30 @@
2976
2976
  input[type='radio'][aria-invalid='true'] + label {
2977
2977
  color: var(--brz-input-radio-invalid-color);
2978
2978
  }
2979
- `];Li([E({type:String,reflect:!0})],exports.InputRadio.prototype,"layout",2);Li([E({type:String,reflect:!0})],exports.InputRadio.prototype,"size",2);Li([Ce()],exports.InputRadio.prototype,"_radioElements",2);exports.InputRadio=Li([W(Bp)],exports.InputRadio);exports.InputRadioOption=class extends ze{render(){}};Li([E({type:String})],exports.InputRadioOption.prototype,"value",2);Li([E({type:Boolean})],exports.InputRadioOption.prototype,"disabled",2);exports.InputRadioOption=Li([W(Vp)],exports.InputRadioOption);var Zp={exports:{}};(function(i,e){(function(n,o){i.exports=o()})(gs,function(){var n=navigator.userAgent,o=navigator.platform,l=/gecko\/\d/i.test(n),d=/MSIE \d/.test(n),u=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(n),v=/Edge\/(\d+)/.exec(n),y=d||u||v,b=y&&(d?document.documentMode||6:+(v||u)[1]),M=!v&&/WebKit\//.test(n),L=M&&/Qt\/\d+\.\d+/.test(n),T=!v&&/Chrome\//.test(n),$=/Opera\//.test(n),N=/Apple Computer/.test(navigator.vendor),Y=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(n),oe=/PhantomJS/.test(n),_=N&&(/Mobile\/\w+/.test(n)||navigator.maxTouchPoints>2),D=/Android/.test(n),A=_||D||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(n),B=_||/Mac/.test(o),K=/\bCrOS\b/.test(n),ue=/win/i.test(o),le=$&&n.match(/Version\/(\d*\.\d*)/);le&&(le=Number(le[1])),le&&le>=15&&($=!1,M=!0);var me=B&&(L||$&&(le==null||le<12.11)),Me=l||y&&b>=9;function ne(t){return new RegExp("(^|\\s)"+t+"(?:$|\\s)\\s*")}var X=function(t,r){var a=t.className,s=ne(r).exec(a);if(s){var c=a.slice(s.index+s[0].length);t.className=a.slice(0,s.index)+(c?s[1]+c:"")}};function V(t){for(var r=t.childNodes.length;r>0;--r)t.removeChild(t.firstChild);return t}function O(t,r){return V(t).appendChild(r)}function x(t,r,a,s){var c=document.createElement(t);if(a&&(c.className=a),s&&(c.style.cssText=s),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 w(t,r,a,s){var c=x(t,r,a,s);return c.setAttribute("role","presentation"),c}var U;document.createRange?U=function(t,r,a,s){var c=document.createRange();return c.setEnd(s||t,a),c.setStart(t,r),c}:U=function(t,r,a){var s=document.body.createTextRange();try{s.moveToElementText(t.parentNode)}catch{return s}return s.collapse(!0),s.moveEnd("character",a),s.moveStart("character",r),s};function ie(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 ye(){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 ke(t,r){var a=t.className;ne(r).test(a)||(t.className+=(a?" ":"")+r)}function Re(t,r){for(var a=t.split(" "),s=0;s<a.length;s++)a[s]&&!ne(a[s]).test(r)&&(r+=" "+a[s]);return r}var ot=function(t){t.select()};_?ot=function(t){t.selectionStart=0,t.selectionEnd=t.value.length}:y&&(ot=function(t){try{t.select()}catch{}});function Et(t){var r=Array.prototype.slice.call(arguments,1);return function(){return t.apply(null,r)}}function Ye(t,r,a){r||(r={});for(var s in t)t.hasOwnProperty(s)&&(a!==!1||!r.hasOwnProperty(s))&&(r[s]=t[s]);return r}function Xe(t,r,a,s,c){r==null&&(r=t.search(/[^\s\u00a0]/),r==-1&&(r=t.length));for(var h=s||0,f=c||0;;){var p=t.indexOf(" ",h);if(p<0||p>=r)return f+(r-h);f+=p-h,f+=a-f%a,h=p+1}}var Be=function(){this.id=null,this.f=null,this.time=0,this.handler=Et(this.onTimeout,this)};Be.prototype.onTimeout=function(t){t.id=0,t.time<=+new Date?t.f():setTimeout(t.handler,t.time-+new Date)},Be.prototype.set=function(t,r){this.f=r;var a=+new Date+t;(!this.id||a<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,t),this.time=a)};function ge(t,r){for(var a=0;a<t.length;++a)if(t[a]==r)return a;return-1}var ve=50,Ie={toString:function(){return"CodeMirror.Pass"}},De={scroll:!1},Ae={origin:"*mouse"},Te={origin:"+move"};function ht(t,r,a){for(var s=0,c=0;;){var h=t.indexOf(" ",s);h==-1&&(h=t.length);var f=h-s;if(h==t.length||c+f>=r)return s+Math.min(f,r-c);if(c+=h-s,c+=a-c%a,s=h+1,c>=r)return s}}var qt=[""];function nr(t){for(;qt.length<=t;)qt.push(_e(qt)+" ");return qt[t]}function _e(t){return t[t.length-1]}function Ve(t,r){for(var a=[],s=0;s<t.length;s++)a[s]=r(t[s],s);return a}function ct(t,r,a){for(var s=0,c=a(r);s<t.length&&a(t[s])<=c;)s++;t.splice(s,0,r)}function Qe(){}function et(t,r){var a;return Object.create?a=Object.create(t):(Qe.prototype=t,a=new Qe),r&&Ye(r,a),a}var Dr=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function Ue(t){return/\w/.test(t)||t>"€"&&(t.toUpperCase()!=t.toLowerCase()||Dr.test(t))}function H(t,r){return r?r.source.indexOf("\\w")>-1&&Ue(t)?!0:r.test(t):Ue(t)}function re(t){for(var r in t)if(t.hasOwnProperty(r)&&t[r])return!1;return!0}var j=/[\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 Ne(t){return t.charCodeAt(0)>=768&&j.test(t)}function Dt(t,r,a){for(;(a<0?r>0:r<t.length)&&Ne(t.charAt(r));)r+=a;return r}function Nr(t,r,a){for(var s=r>a?-1:1;;){if(r==a)return r;var c=(r+a)/2,h=s<0?Math.ceil(c):Math.floor(c);if(h==r)return t(h)?r:a;t(h)?a=h:r=h+s}}function Ql(t,r,a,s){if(!t)return s(r,a,"ltr",0);for(var c=!1,h=0;h<t.length;++h){var f=t[h];(f.from<a&&f.to>r||r==a&&f.to==r)&&(s(Math.max(f.from,r),Math.min(f.to,a),f.level==1?"rtl":"ltr",h),c=!0)}c||s(r,a,"ltr")}var ir=null;function st(t,r,a){var s;ir=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&&a=="before"?s=c:ir=c),h.from==r&&(h.from!=h.to&&a!="before"?s=c:ir=c)}return s!=null?s:ir}var Wn=function(){var t="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",r="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function a(m){return m<=247?t.charAt(m):1424<=m&&m<=1524?"R":1536<=m&&m<=1785?r.charAt(m-1536):1774<=m&&m<=2220?"r":8192<=m&&m<=8203?"w":m==8204?"b":"L"}var s=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,c=/[stwN]/,h=/[LRr]/,f=/[Lb1n]/,p=/[1n]/;function g(m,z,S){this.level=m,this.from=z,this.to=S}return function(m,z){var S=z=="ltr"?"L":"R";if(m.length==0||z=="ltr"&&!s.test(m))return!1;for(var P=m.length,I=[],Z=0;Z<P;++Z)I.push(a(m.charCodeAt(Z)));for(var q=0,te=S;q<P;++q){var se=I[q];se=="m"?I[q]=te:te=se}for(var he=0,ae=S;he<P;++he){var pe=I[he];pe=="1"&&ae=="r"?I[he]="n":h.test(pe)&&(ae=pe,pe=="r"&&(I[he]="R"))}for(var Le=1,xe=I[0];Le<P-1;++Le){var Pe=I[Le];Pe=="+"&&xe=="1"&&I[Le+1]=="1"?I[Le]="1":Pe==","&&xe==I[Le+1]&&(xe=="1"||xe=="n")&&(I[Le]=xe),xe=Pe}for(var Je=0;Je<P;++Je){var Lt=I[Je];if(Lt==",")I[Je]="N";else if(Lt=="%"){var it=void 0;for(it=Je+1;it<P&&I[it]=="%";++it);for(var Jt=Je&&I[Je-1]=="!"||it<P&&I[it]=="1"?"1":"N",Wt=Je;Wt<it;++Wt)I[Wt]=Jt;Je=it-1}}for(var pt=0,Ut=S;pt<P;++pt){var kt=I[pt];Ut=="L"&&kt=="1"?I[pt]="L":h.test(kt)&&(Ut=kt)}for(var bt=0;bt<P;++bt)if(c.test(I[bt])){var gt=void 0;for(gt=bt+1;gt<P&&c.test(I[gt]);++gt);for(var lt=(bt?I[bt-1]:S)=="L",jt=(gt<P?I[gt]:S)=="L",Yi=lt==jt?lt?"L":"R":S,En=bt;En<gt;++En)I[En]=Yi;bt=gt-1}for(var Pt=[],jr,St=0;St<P;)if(f.test(I[St])){var Z1=St;for(++St;St<P&&f.test(I[St]);++St);Pt.push(new g(0,Z1,St))}else{var ln=St,ti=Pt.length,ri=z=="rtl"?1:0;for(++St;St<P&&I[St]!="L";++St);for(var Ht=ln;Ht<St;)if(p.test(I[Ht])){ln<Ht&&(Pt.splice(ti,0,new g(1,ln,Ht)),ti+=ri);var Xi=Ht;for(++Ht;Ht<St&&p.test(I[Ht]);++Ht);Pt.splice(ti,0,new g(2,Xi,Ht)),ti+=ri,ln=Ht}else++Ht;ln<St&&Pt.splice(ti,0,new g(1,ln,St))}return z=="ltr"&&(Pt[0].level==1&&(jr=m.match(/^\s+/))&&(Pt[0].from=jr[0].length,Pt.unshift(new g(0,0,jr[0].length))),_e(Pt).level==1&&(jr=m.match(/\s+$/))&&(_e(Pt).to-=jr[0].length,Pt.push(new g(0,P-jr[0].length,P)))),z=="rtl"?Pt.reverse():Pt}}();function Kt(t,r){var a=t.order;return a==null&&(a=t.order=Wn(t.text,r)),a}var tn=[],Se=function(t,r,a){if(t.addEventListener)t.addEventListener(r,a,!1);else if(t.attachEvent)t.attachEvent("on"+r,a);else{var s=t._handlers||(t._handlers={});s[r]=(s[r]||tn).concat(a)}};function Ti(t,r){return t._handlers&&t._handlers[r]||tn}function Ft(t,r,a){if(t.removeEventListener)t.removeEventListener(r,a,!1);else if(t.detachEvent)t.detachEvent("on"+r,a);else{var s=t._handlers,c=s&&s[r];if(c){var h=ge(c,a);h>-1&&(s[r]=c.slice(0,h).concat(c.slice(h+1)))}}}function Oe(t,r){var a=Ti(t,r);if(a.length)for(var s=Array.prototype.slice.call(arguments,2),c=0;c<a.length;++c)a[c].apply(null,s)}function ft(t,r,a){return typeof r=="string"&&(r={type:r,preventDefault:function(){this.defaultPrevented=!0}}),Oe(t,a||r.type,t,r),or(r)||r.codemirrorIgnore}function ki(t){var r=t._handlers&&t._handlers.cursorActivity;if(r)for(var a=t.curOp.cursorActivityHandlers||(t.curOp.cursorActivityHandlers=[]),s=0;s<r.length;++s)ge(a,r[s])==-1&&a.push(r[s])}function Tt(t,r){return Ti(t,r).length>0}function Hr(t){t.prototype.on=function(r,a){Se(this,r,a)},t.prototype.off=function(r,a){Ft(this,r,a)}}function _t(t){t.preventDefault?t.preventDefault():t.returnValue=!1}function Oi(t){t.stopPropagation?t.stopPropagation():t.cancelBubble=!0}function or(t){return t.defaultPrevented!=null?t.defaultPrevented:t.returnValue==!1}function Un(t){_t(t),Oi(t)}function wn(t){return t.target||t.srcElement}function js(t){var r=t.which;return r==null&&(t.button&1?r=1:t.button&2?r=3:t.button&4&&(r=2)),B&&t.ctrlKey&&r==1&&(r=3),r}var So=function(){if(y&&b<9)return!1;var t=x("div");return"draggable"in t||"dragDrop"in t}(),Bt;function Gs(t){if(Bt==null){var r=x("span","​");O(t,x("span",[r,document.createTextNode("x")])),t.firstChild.offsetHeight!=0&&(Bt=r.offsetWidth<=1&&r.offsetHeight>2&&!(y&&b<8))}var a=Bt?x("span","​"):x("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return a.setAttribute("cm-text",""),a}var Mo;function Rr(t){if(Mo!=null)return Mo;var r=O(t,document.createTextNode("AخA")),a=U(r,0,1).getBoundingClientRect(),s=U(r,1,2).getBoundingClientRect();return V(t),!a||a.left==a.right?!1:Mo=s.right-a.right<3}var To=`
2979
+ `];Ln([E({type:String,reflect:!0})],exports.InputRadio.prototype,"layout",2);Ln([E({type:String,reflect:!0})],exports.InputRadio.prototype,"size",2);Ln([Ce()],exports.InputRadio.prototype,"_radioElements",2);exports.InputRadio=Ln([W(Bp)],exports.InputRadio);exports.InputRadioOption=class extends ze{render(){}};Ln([E({type:String})],exports.InputRadioOption.prototype,"value",2);Ln([E({type:Boolean})],exports.InputRadioOption.prototype,"disabled",2);exports.InputRadioOption=Ln([W(Vp)],exports.InputRadioOption);var Zp={exports:{}};(function(n,e){(function(i,o){n.exports=o()})(gs,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),y=d||u||v,b=y&&(d?document.documentMode||6:+(v||u)[1]),M=!v&&/WebKit\//.test(i),L=M&&/Qt\/\d+\.\d+/.test(i),T=!v&&/Chrome\//.test(i),$=/Opera\//.test(i),N=/Apple Computer/.test(navigator.vendor),Y=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(i),oe=/PhantomJS/.test(i),_=N&&(/Mobile\/\w+/.test(i)||navigator.maxTouchPoints>2),D=/Android/.test(i),A=_||D||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(i),B=_||/Mac/.test(o),K=/\bCrOS\b/.test(i),ue=/win/i.test(o),le=$&&i.match(/Version\/(\d*\.\d*)/);le&&(le=Number(le[1])),le&&le>=15&&($=!1,M=!0);var me=B&&(L||$&&(le==null||le<12.11)),Me=l||y&&b>=9;function ie(t){return new RegExp("(^|\\s)"+t+"(?:$|\\s)\\s*")}var X=function(t,r){var a=t.className,s=ie(r).exec(a);if(s){var c=a.slice(s.index+s[0].length);t.className=a.slice(0,s.index)+(c?s[1]+c:"")}};function V(t){for(var r=t.childNodes.length;r>0;--r)t.removeChild(t.firstChild);return t}function O(t,r){return V(t).appendChild(r)}function x(t,r,a,s){var c=document.createElement(t);if(a&&(c.className=a),s&&(c.style.cssText=s),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 w(t,r,a,s){var c=x(t,r,a,s);return c.setAttribute("role","presentation"),c}var U;document.createRange?U=function(t,r,a,s){var c=document.createRange();return c.setEnd(s||t,a),c.setStart(t,r),c}:U=function(t,r,a){var s=document.body.createTextRange();try{s.moveToElementText(t.parentNode)}catch{return s}return s.collapse(!0),s.moveEnd("character",a),s.moveStart("character",r),s};function ne(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 ye(){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 ke(t,r){var a=t.className;ie(r).test(a)||(t.className+=(a?" ":"")+r)}function Re(t,r){for(var a=t.split(" "),s=0;s<a.length;s++)a[s]&&!ie(a[s]).test(r)&&(r+=" "+a[s]);return r}var ot=function(t){t.select()};_?ot=function(t){t.selectionStart=0,t.selectionEnd=t.value.length}:y&&(ot=function(t){try{t.select()}catch{}});function Et(t){var r=Array.prototype.slice.call(arguments,1);return function(){return t.apply(null,r)}}function Ye(t,r,a){r||(r={});for(var s in t)t.hasOwnProperty(s)&&(a!==!1||!r.hasOwnProperty(s))&&(r[s]=t[s]);return r}function Xe(t,r,a,s,c){r==null&&(r=t.search(/[^\s\u00a0]/),r==-1&&(r=t.length));for(var h=s||0,f=c||0;;){var p=t.indexOf(" ",h);if(p<0||p>=r)return f+(r-h);f+=p-h,f+=a-f%a,h=p+1}}var Be=function(){this.id=null,this.f=null,this.time=0,this.handler=Et(this.onTimeout,this)};Be.prototype.onTimeout=function(t){t.id=0,t.time<=+new Date?t.f():setTimeout(t.handler,t.time-+new Date)},Be.prototype.set=function(t,r){this.f=r;var a=+new Date+t;(!this.id||a<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,t),this.time=a)};function ge(t,r){for(var a=0;a<t.length;++a)if(t[a]==r)return a;return-1}var ve=50,Ie={toString:function(){return"CodeMirror.Pass"}},De={scroll:!1},Ae={origin:"*mouse"},Te={origin:"+move"};function ht(t,r,a){for(var s=0,c=0;;){var h=t.indexOf(" ",s);h==-1&&(h=t.length);var f=h-s;if(h==t.length||c+f>=r)return s+Math.min(f,r-c);if(c+=h-s,c+=a-c%a,s=h+1,c>=r)return s}}var qt=[""];function ir(t){for(;qt.length<=t;)qt.push(_e(qt)+" ");return qt[t]}function _e(t){return t[t.length-1]}function Ve(t,r){for(var a=[],s=0;s<t.length;s++)a[s]=r(t[s],s);return a}function ct(t,r,a){for(var s=0,c=a(r);s<t.length&&a(t[s])<=c;)s++;t.splice(s,0,r)}function Qe(){}function et(t,r){var a;return Object.create?a=Object.create(t):(Qe.prototype=t,a=new Qe),r&&Ye(r,a),a}var Dr=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function Ue(t){return/\w/.test(t)||t>"€"&&(t.toUpperCase()!=t.toLowerCase()||Dr.test(t))}function H(t,r){return r?r.source.indexOf("\\w")>-1&&Ue(t)?!0:r.test(t):Ue(t)}function re(t){for(var r in t)if(t.hasOwnProperty(r)&&t[r])return!1;return!0}var j=/[\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 Ne(t){return t.charCodeAt(0)>=768&&j.test(t)}function Dt(t,r,a){for(;(a<0?r>0:r<t.length)&&Ne(t.charAt(r));)r+=a;return r}function Nr(t,r,a){for(var s=r>a?-1:1;;){if(r==a)return r;var c=(r+a)/2,h=s<0?Math.ceil(c):Math.floor(c);if(h==r)return t(h)?r:a;t(h)?a=h:r=h+s}}function Ql(t,r,a,s){if(!t)return s(r,a,"ltr",0);for(var c=!1,h=0;h<t.length;++h){var f=t[h];(f.from<a&&f.to>r||r==a&&f.to==r)&&(s(Math.max(f.from,r),Math.min(f.to,a),f.level==1?"rtl":"ltr",h),c=!0)}c||s(r,a,"ltr")}var nr=null;function st(t,r,a){var s;nr=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&&a=="before"?s=c:nr=c),h.from==r&&(h.from!=h.to&&a!="before"?s=c:nr=c)}return s!=null?s:nr}var Zi=function(){var t="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",r="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function a(m){return m<=247?t.charAt(m):1424<=m&&m<=1524?"R":1536<=m&&m<=1785?r.charAt(m-1536):1774<=m&&m<=2220?"r":8192<=m&&m<=8203?"w":m==8204?"b":"L"}var s=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,c=/[stwN]/,h=/[LRr]/,f=/[Lb1n]/,p=/[1n]/;function g(m,z,S){this.level=m,this.from=z,this.to=S}return function(m,z){var S=z=="ltr"?"L":"R";if(m.length==0||z=="ltr"&&!s.test(m))return!1;for(var P=m.length,I=[],Z=0;Z<P;++Z)I.push(a(m.charCodeAt(Z)));for(var q=0,te=S;q<P;++q){var se=I[q];se=="m"?I[q]=te:te=se}for(var he=0,ae=S;he<P;++he){var pe=I[he];pe=="1"&&ae=="r"?I[he]="n":h.test(pe)&&(ae=pe,pe=="r"&&(I[he]="R"))}for(var Le=1,xe=I[0];Le<P-1;++Le){var Pe=I[Le];Pe=="+"&&xe=="1"&&I[Le+1]=="1"?I[Le]="1":Pe==","&&xe==I[Le+1]&&(xe=="1"||xe=="n")&&(I[Le]=xe),xe=Pe}for(var Je=0;Je<P;++Je){var Lt=I[Je];if(Lt==",")I[Je]="N";else if(Lt=="%"){var nt=void 0;for(nt=Je+1;nt<P&&I[nt]=="%";++nt);for(var Jt=Je&&I[Je-1]=="!"||nt<P&&I[nt]=="1"?"1":"N",Wt=Je;Wt<nt;++Wt)I[Wt]=Jt;Je=nt-1}}for(var pt=0,Ut=S;pt<P;++pt){var kt=I[pt];Ut=="L"&&kt=="1"?I[pt]="L":h.test(kt)&&(Ut=kt)}for(var bt=0;bt<P;++bt)if(c.test(I[bt])){var gt=void 0;for(gt=bt+1;gt<P&&c.test(I[gt]);++gt);for(var lt=(bt?I[bt-1]:S)=="L",jt=(gt<P?I[gt]:S)=="L",Yn=lt==jt?lt?"L":"R":S,$i=bt;$i<gt;++$i)I[$i]=Yn;bt=gt-1}for(var Pt=[],jr,St=0;St<P;)if(f.test(I[St])){var Z1=St;for(++St;St<P&&f.test(I[St]);++St);Pt.push(new g(0,Z1,St))}else{var ai=St,en=Pt.length,tn=z=="rtl"?1:0;for(++St;St<P&&I[St]!="L";++St);for(var Ht=ai;Ht<St;)if(p.test(I[Ht])){ai<Ht&&(Pt.splice(en,0,new g(1,ai,Ht)),en+=tn);var Xn=Ht;for(++Ht;Ht<St&&p.test(I[Ht]);++Ht);Pt.splice(en,0,new g(2,Xn,Ht)),en+=tn,ai=Ht}else++Ht;ai<St&&Pt.splice(en,0,new g(1,ai,St))}return z=="ltr"&&(Pt[0].level==1&&(jr=m.match(/^\s+/))&&(Pt[0].from=jr[0].length,Pt.unshift(new g(0,0,jr[0].length))),_e(Pt).level==1&&(jr=m.match(/\s+$/))&&(_e(Pt).to-=jr[0].length,Pt.push(new g(0,P-jr[0].length,P)))),z=="rtl"?Pt.reverse():Pt}}();function Kt(t,r){var a=t.order;return a==null&&(a=t.order=Zi(t.text,r)),a}var ti=[],Se=function(t,r,a){if(t.addEventListener)t.addEventListener(r,a,!1);else if(t.attachEvent)t.attachEvent("on"+r,a);else{var s=t._handlers||(t._handlers={});s[r]=(s[r]||ti).concat(a)}};function Tn(t,r){return t._handlers&&t._handlers[r]||ti}function Ft(t,r,a){if(t.removeEventListener)t.removeEventListener(r,a,!1);else if(t.detachEvent)t.detachEvent("on"+r,a);else{var s=t._handlers,c=s&&s[r];if(c){var h=ge(c,a);h>-1&&(s[r]=c.slice(0,h).concat(c.slice(h+1)))}}}function Oe(t,r){var a=Tn(t,r);if(a.length)for(var s=Array.prototype.slice.call(arguments,2),c=0;c<a.length;++c)a[c].apply(null,s)}function ft(t,r,a){return typeof r=="string"&&(r={type:r,preventDefault:function(){this.defaultPrevented=!0}}),Oe(t,a||r.type,t,r),or(r)||r.codemirrorIgnore}function kn(t){var r=t._handlers&&t._handlers.cursorActivity;if(r)for(var a=t.curOp.cursorActivityHandlers||(t.curOp.cursorActivityHandlers=[]),s=0;s<r.length;++s)ge(a,r[s])==-1&&a.push(r[s])}function Tt(t,r){return Tn(t,r).length>0}function Hr(t){t.prototype.on=function(r,a){Se(this,r,a)},t.prototype.off=function(r,a){Ft(this,r,a)}}function _t(t){t.preventDefault?t.preventDefault():t.returnValue=!1}function On(t){t.stopPropagation?t.stopPropagation():t.cancelBubble=!0}function or(t){return t.defaultPrevented!=null?t.defaultPrevented:t.returnValue==!1}function Wi(t){_t(t),On(t)}function Ci(t){return t.target||t.srcElement}function js(t){var r=t.which;return r==null&&(t.button&1?r=1:t.button&2?r=3:t.button&4&&(r=2)),B&&t.ctrlKey&&r==1&&(r=3),r}var So=function(){if(y&&b<9)return!1;var t=x("div");return"draggable"in t||"dragDrop"in t}(),Bt;function Gs(t){if(Bt==null){var r=x("span","​");O(t,x("span",[r,document.createTextNode("x")])),t.firstChild.offsetHeight!=0&&(Bt=r.offsetWidth<=1&&r.offsetHeight>2&&!(y&&b<8))}var a=Bt?x("span","​"):x("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return a.setAttribute("cm-text",""),a}var Mo;function Rr(t){if(Mo!=null)return Mo;var r=O(t,document.createTextNode("AخA")),a=U(r,0,1).getBoundingClientRect(),s=U(r,1,2).getBoundingClientRect();return V(t),!a||a.left==a.right?!1:Mo=s.right-a.right<3}var To=`
2980
2980
 
2981
2981
  b`.split(/\n/).length!=3?function(t){for(var r=0,a=[],s=t.length;r<=s;){var c=t.indexOf(`
2982
- `,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?(a.push(h.slice(0,f)),r+=f+1):(a.push(h),r=c+1)}return a}:function(t){return t.split(/\r\n?|\n/)},qs=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},Ks=function(){var t=x("div");return"oncopy"in t?!0:(t.setAttribute("oncopy","return;"),typeof t.oncopy=="function")}(),ko=null;function xn(t){if(ko!=null)return ko;var r=O(t,x("span","x")),a=r.getBoundingClientRect(),s=U(r,0,1).getBoundingClientRect();return ko=Math.abs(a.left-s.left)>1}var fr={},sr={};function Ys(t,r){arguments.length>2&&(r.dependencies=Array.prototype.slice.call(arguments,2)),fr[t]=r}function rn(t,r){sr[t]=r}function $i(t){if(typeof t=="string"&&sr.hasOwnProperty(t))t=sr[t];else if(t&&typeof t.name=="string"&&sr.hasOwnProperty(t.name)){var r=sr[t.name];typeof r=="string"&&(r={name:r}),t=et(r,t),t.name=r.name}else{if(typeof t=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(t))return $i("application/xml");if(typeof t=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(t))return $i("application/json")}return typeof t=="string"?{name:t}:t||{name:"null"}}function Ei(t,r){r=$i(r);var a=fr[r.name];if(!a)return Ei(t,"text/plain");var s=a(t,r);if(yr.hasOwnProperty(r.name)){var c=yr[r.name];for(var h in c)c.hasOwnProperty(h)&&(s.hasOwnProperty(h)&&(s["_"+h]=s[h]),s[h]=c[h])}if(s.name=r.name,r.helperType&&(s.helperType=r.helperType),r.modeProps)for(var f in r.modeProps)s[f]=r.modeProps[f];return s}var yr={};function Cr(t,r){var a=yr.hasOwnProperty(t)?yr[t]:yr[t]={};Ye(r,a)}function ar(t,r){if(r===!0)return r;if(t.copyState)return t.copyState(r);var a={};for(var s in r){var c=r[s];c instanceof Array&&(c=c.concat([])),a[s]=c}return a}function Oo(t,r){for(var a;t.innerMode&&(a=t.innerMode(r),!(!a||a.mode==t));)r=a.state,t=a.mode;return a||{mode:t,state:r}}function $o(t,r,a){return t.startState?t.startState(r,a):!0}var at=function(t,r,a){this.pos=this.start=0,this.string=t,this.tabSize=r||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=a};at.prototype.eol=function(){return this.pos>=this.string.length},at.prototype.sol=function(){return this.pos==this.lineStart},at.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},at.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},at.prototype.eat=function(t){var r=this.string.charAt(this.pos),a;if(typeof t=="string"?a=r==t:a=r&&(t.test?t.test(r):t(r)),a)return++this.pos,r},at.prototype.eatWhile=function(t){for(var r=this.pos;this.eat(t););return this.pos>r},at.prototype.eatSpace=function(){for(var t=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>t},at.prototype.skipToEnd=function(){this.pos=this.string.length},at.prototype.skipTo=function(t){var r=this.string.indexOf(t,this.pos);if(r>-1)return this.pos=r,!0},at.prototype.backUp=function(t){this.pos-=t},at.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=Xe(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?Xe(this.string,this.lineStart,this.tabSize):0)},at.prototype.indentation=function(){return Xe(this.string,null,this.tabSize)-(this.lineStart?Xe(this.string,this.lineStart,this.tabSize):0)},at.prototype.match=function(t,r,a){if(typeof t=="string"){var s=function(f){return a?f.toLowerCase():f},c=this.string.substr(this.pos,t.length);if(s(c)==s(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)}},at.prototype.current=function(){return this.string.slice(this.start,this.pos)},at.prototype.hideFirstChars=function(t,r){this.lineStart+=t;try{return r()}finally{this.lineStart-=t}},at.prototype.lookAhead=function(t){var r=this.lineOracle;return r&&r.lookAhead(t)},at.prototype.baseToken=function(){var t=this.lineOracle;return t&&t.baseToken(this.pos)};function be(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 a=t;!a.lines;)for(var s=0;;++s){var c=a.children[s],h=c.chunkSize();if(r<h){a=c;break}r-=h}return a.lines[r]}function Fr(t,r,a){var s=[],c=r.line;return t.iter(r.line,a.line+1,function(h){var f=h.text;c==a.line&&(f=f.slice(0,a.ch)),c==r.line&&(f=f.slice(r.ch)),s.push(f),++c}),s}function Eo(t,r,a){var s=[];return t.iter(r,a,function(c){s.push(c.text)}),s}function Yt(t,r){var a=r-t.height;if(a)for(var s=t;s;s=s.parent)s.height+=a}function je(t){if(t.parent==null)return null;for(var r=t.parent,a=ge(r.lines,t),s=r.parent;s;r=s,s=s.parent)for(var c=0;s.children[c]!=r;++c)a+=s.children[c].chunkSize();return a+r.first}function Br(t,r){var a=t.first;e:do{for(var s=0;s<t.children.length;++s){var c=t.children[s],h=c.height;if(r<h){t=c;continue e}r-=h,a+=c.chunkSize()}return a}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 a+f}function jn(t,r){return r>=t.first&&r<t.first+t.size}function _o(t,r){return String(t.lineNumberFormatter(r+t.firstLineNumber))}function J(t,r,a){if(a===void 0&&(a=null),!(this instanceof J))return new J(t,r,a);this.line=t,this.ch=r,this.sticky=a}function C(t,r){return t.line-r.line||t.ch-r.ch}function k(t,r){return t.sticky==r.sticky&&C(t,r)==0}function G(t){return J(t.line,t.ch)}function ee(t,r){return C(t,r)<0?r:t}function $e(t,r){return C(t,r)<0?t:r}function Fe(t,r){return Math.max(t.first,Math.min(r,t.first+t.size-1))}function de(t,r){if(r.line<t.first)return J(t.first,0);var a=t.first+t.size-1;return r.line>a?J(a,be(t,a).text.length):It(r,be(t,r.line).text.length)}function It(t,r){var a=t.ch;return a==null||a>r?J(t.line,r):a<0?J(t.line,0):t}function lr(t,r){for(var a=[],s=0;s<r.length;s++)a[s]=de(t,r[s]);return a}var _i=function(t,r){this.state=t,this.lookAhead=r},Vr=function(t,r,a,s){this.state=r,this.doc=t,this.line=a,this.maxLookAhead=s||0,this.baseTokens=null,this.baseTokenPos=1};Vr.prototype.lookAhead=function(t){var r=this.doc.getLine(this.line+t);return r!=null&&t>this.maxLookAhead&&(this.maxLookAhead=t),r},Vr.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}},Vr.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Vr.fromSaved=function(t,r,a){return r instanceof _i?new Vr(t,ar(t.mode,r.state),a,r.lookAhead):new Vr(t,ar(t.mode,r),a)},Vr.prototype.save=function(t){var r=t!==!1?ar(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new _i(r,this.maxLookAhead):r};function Ru(t,r,a,s){var c=[t.state.modeGen],h={};Uu(t,r.text,t.doc.mode,a,function(m,z){return c.push(m,z)},h,s);for(var f=a.state,p=function(m){a.baseTokens=c;var z=t.state.overlays[m],S=1,P=0;a.state=!0,Uu(t,r.text,z.mode,a,function(I,Z){for(var q=S;P<I;){var te=c[S];te>I&&c.splice(S,1,I,c[S+1],te),S+=2,P=Math.min(I,te)}if(Z)if(z.opaque)c.splice(q,S-q,I,"overlay "+Z),S=q+2;else for(;q<S;q+=2){var se=c[q+1];c[q+1]=(se?se+" ":"")+"overlay "+Z}},h),a.state=f,a.baseTokens=null,a.baseTokenPos=1},g=0;g<t.state.overlays.length;++g)p(g);return{styles:c,classes:h.bgClass||h.textClass?h:null}}function Fu(t,r,a){if(!r.styles||r.styles[0]!=t.state.modeGen){var s=Io(t,je(r)),c=r.text.length>t.options.maxHighlightLength&&ar(t.doc.mode,s.state),h=Ru(t,r,s);c&&(s.state=c),r.stateAfter=s.save(!c),r.styles=h.styles,h.classes?r.styleClasses=h.classes:r.styleClasses&&(r.styleClasses=null),a===t.doc.highlightFrontier&&(t.doc.modeFrontier=Math.max(t.doc.modeFrontier,++t.doc.highlightFrontier))}return r.styles}function Io(t,r,a){var s=t.doc,c=t.display;if(!s.mode.startState)return new Vr(s,!0,r);var h=Y6(t,r,a),f=h>s.first&&be(s,h-1).stateAfter,p=f?Vr.fromSaved(s,f,h):new Vr(s,$o(s.mode),h);return s.iter(h,r,function(g){e1(t,g.text,p);var m=p.line;g.stateAfter=m==r-1||m%5==0||m>=c.viewFrom&&m<c.viewTo?p.save():null,p.nextLine()}),a&&(s.modeFrontier=p.line),p}function e1(t,r,a,s){var c=t.doc.mode,h=new at(r,t.options.tabSize,a);for(h.start=h.pos=s||0,r==""&&Bu(c,a.state);!h.eol();)t1(c,h,a.state),h.start=h.pos}function Bu(t,r){if(t.blankLine)return t.blankLine(r);if(t.innerMode){var a=Oo(t,r);if(a.mode.blankLine)return a.mode.blankLine(a.state)}}function t1(t,r,a,s){for(var c=0;c<10;c++){s&&(s[0]=Oo(t,a).mode);var h=t.token(r,a);if(r.pos>r.start)return h}throw new Error("Mode "+t.name+" failed to advance stream.")}var Vu=function(t,r,a){this.start=t.start,this.end=t.pos,this.string=t.current(),this.type=r||null,this.state=a};function Zu(t,r,a,s){var c=t.doc,h=c.mode,f;r=de(c,r);var p=be(c,r.line),g=Io(t,r.line,a),m=new at(p.text,t.options.tabSize,g),z;for(s&&(z=[]);(s||m.pos<r.ch)&&!m.eol();)m.start=m.pos,f=t1(h,m,g.state),s&&z.push(new Vu(m,f,ar(c.mode,g.state)));return s?z:new Vu(m,f,g.state)}function Wu(t,r){if(t)for(;;){var a=t.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!a)break;t=t.slice(0,a.index)+t.slice(a.index+a[0].length);var s=a[1]?"bgClass":"textClass";r[s]==null?r[s]=a[2]:new RegExp("(?:^|\\s)"+a[2]+"(?:$|\\s)").test(r[s])||(r[s]+=" "+a[2])}return t}function Uu(t,r,a,s,c,h,f){var p=a.flattenSpans;p==null&&(p=t.options.flattenSpans);var g=0,m=null,z=new at(r,t.options.tabSize,s),S,P=t.options.addModeClass&&[null];for(r==""&&Wu(Bu(a,s.state),h);!z.eol();){if(z.pos>t.options.maxHighlightLength?(p=!1,f&&e1(t,r,s,z.pos),z.pos=r.length,S=null):S=Wu(t1(a,z,s.state,P),h),P){var I=P[0].name;I&&(S="m-"+(S?I+" "+S:I))}if(!p||m!=S){for(;g<z.start;)g=Math.min(z.start,g+5e3),c(g,m);m=S}z.start=z.pos}for(;g<z.pos;){var Z=Math.min(z.pos,g+5e3);c(Z,m),g=Z}}function Y6(t,r,a){for(var s,c,h=t.doc,f=a?-1:r-(t.doc.mode.innerMode?1e3:100),p=r;p>f;--p){if(p<=h.first)return h.first;var g=be(h,p-1),m=g.stateAfter;if(m&&(!a||p+(m instanceof _i?m.lookAhead:0)<=h.modeFrontier))return p;var z=Xe(g.text,null,t.options.tabSize);(c==null||s>z)&&(c=p-1,s=z)}return c}function X6(t,r){if(t.modeFrontier=Math.min(t.modeFrontier,r),!(t.highlightFrontier<r-10)){for(var a=t.first,s=r-1;s>a;s--){var c=be(t,s).stateAfter;if(c&&(!(c instanceof _i)||s+c.lookAhead<r)){a=s+1;break}}t.highlightFrontier=Math.min(t.highlightFrontier,a)}}var ju=!1,nn=!1;function J6(){ju=!0}function Q6(){nn=!0}function Xs(t,r,a){this.marker=t,this.from=r,this.to=a}function Ao(t,r){if(t)for(var a=0;a<t.length;++a){var s=t[a];if(s.marker==r)return s}}function e4(t,r){for(var a,s=0;s<t.length;++s)t[s]!=r&&(a||(a=[])).push(t[s]);return a}function t4(t,r,a){var s=a&&window.WeakSet&&(a.markedSpans||(a.markedSpans=new WeakSet));s&&s.has(t.markedSpans)?t.markedSpans.push(r):(t.markedSpans=t.markedSpans?t.markedSpans.concat([r]):[r],s&&s.add(t.markedSpans)),r.marker.attachLine(t)}function r4(t,r,a){var s;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"&&(!a||!h.marker.insertLeft)){var g=h.to==null||(f.inclusiveRight?h.to>=r:h.to>r);(s||(s=[])).push(new Xs(f,h.from,g?null:h.to))}}return s}function n4(t,r,a){var s;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"&&(!a||h.marker.insertLeft)){var g=h.from==null||(f.inclusiveLeft?h.from<=r:h.from<r);(s||(s=[])).push(new Xs(f,g?null:h.from-r,h.to==null?null:h.to-r))}}return s}function r1(t,r){if(r.full)return null;var a=jn(t,r.from.line)&&be(t,r.from.line).markedSpans,s=jn(t,r.to.line)&&be(t,r.to.line).markedSpans;if(!a&&!s)return null;var c=r.from.ch,h=r.to.ch,f=C(r.from,r.to)==0,p=r4(a,c,f),g=n4(s,h,f),m=r.text.length==1,z=_e(r.text).length+(m?c:0);if(p)for(var S=0;S<p.length;++S){var P=p[S];if(P.to==null){var I=Ao(g,P.marker);I?m&&(P.to=I.to==null?null:I.to+z):P.to=c}}if(g)for(var Z=0;Z<g.length;++Z){var q=g[Z];if(q.to!=null&&(q.to+=z),q.from==null){var te=Ao(p,q.marker);te||(q.from=z,m&&(p||(p=[])).push(q))}else q.from+=z,m&&(p||(p=[])).push(q)}p&&(p=Gu(p)),g&&g!=p&&(g=Gu(g));var se=[p];if(!m){var he=r.text.length-2,ae;if(he>0&&p)for(var pe=0;pe<p.length;++pe)p[pe].to==null&&(ae||(ae=[])).push(new Xs(p[pe].marker,null,null));for(var Le=0;Le<he;++Le)se.push(ae);se.push(g)}return se}function Gu(t){for(var r=0;r<t.length;++r){var a=t[r];a.from!=null&&a.from==a.to&&a.marker.clearWhenEmpty!==!1&&t.splice(r--,1)}return t.length?t:null}function i4(t,r,a){var s=null;if(t.iter(r.line,a.line+1,function(I){if(I.markedSpans)for(var Z=0;Z<I.markedSpans.length;++Z){var q=I.markedSpans[Z].marker;q.readOnly&&(!s||ge(s,q)==-1)&&(s||(s=[])).push(q)}}),!s)return null;for(var c=[{from:r,to:a}],h=0;h<s.length;++h)for(var f=s[h],p=f.find(0),g=0;g<c.length;++g){var m=c[g];if(!(C(m.to,p.from)<0||C(m.from,p.to)>0)){var z=[g,1],S=C(m.from,p.from),P=C(m.to,p.to);(S<0||!f.inclusiveLeft&&!S)&&z.push({from:m.from,to:p.from}),(P>0||!f.inclusiveRight&&!P)&&z.push({from:p.to,to:m.to}),c.splice.apply(c,z),g+=z.length-3}}return c}function qu(t){var r=t.markedSpans;if(r){for(var a=0;a<r.length;++a)r[a].marker.detachLine(t);t.markedSpans=null}}function Ku(t,r){if(r){for(var a=0;a<r.length;++a)r[a].marker.attachLine(t);t.markedSpans=r}}function Js(t){return t.inclusiveLeft?-1:0}function Qs(t){return t.inclusiveRight?1:0}function n1(t,r){var a=t.lines.length-r.lines.length;if(a!=0)return a;var s=t.find(),c=r.find(),h=C(s.from,c.from)||Js(t)-Js(r);if(h)return-h;var f=C(s.to,c.to)||Qs(t)-Qs(r);return f||r.id-t.id}function Yu(t,r){var a=nn&&t.markedSpans,s;if(a)for(var c=void 0,h=0;h<a.length;++h)c=a[h],c.marker.collapsed&&(r?c.from:c.to)==null&&(!s||n1(s,c.marker)<0)&&(s=c.marker);return s}function Xu(t){return Yu(t,!0)}function ea(t){return Yu(t,!1)}function o4(t,r){var a=nn&&t.markedSpans,s;if(a)for(var c=0;c<a.length;++c){var h=a[c];h.marker.collapsed&&(h.from==null||h.from<r)&&(h.to==null||h.to>r)&&(!s||n1(s,h.marker)<0)&&(s=h.marker)}return s}function Ju(t,r,a,s,c){var h=be(t,r),f=nn&&h.markedSpans;if(f)for(var p=0;p<f.length;++p){var g=f[p];if(g.marker.collapsed){var m=g.marker.find(0),z=C(m.from,a)||Js(g.marker)-Js(c),S=C(m.to,s)||Qs(g.marker)-Qs(c);if(!(z>=0&&S<=0||z<=0&&S>=0)&&(z<=0&&(g.marker.inclusiveRight&&c.inclusiveLeft?C(m.to,a)>=0:C(m.to,a)>0)||z>=0&&(g.marker.inclusiveRight&&c.inclusiveLeft?C(m.from,s)<=0:C(m.from,s)<0)))return!0}}}function Zr(t){for(var r;r=Xu(t);)t=r.find(-1,!0).line;return t}function s4(t){for(var r;r=ea(t);)t=r.find(1,!0).line;return t}function a4(t){for(var r,a;r=ea(t);)t=r.find(1,!0).line,(a||(a=[])).push(t);return a}function i1(t,r){var a=be(t,r),s=Zr(a);return a==s?r:je(s)}function Qu(t,r){if(r>t.lastLine())return r;var a=be(t,r),s;if(!zn(t,a))return r;for(;s=ea(a);)a=s.find(1,!0).line;return je(a)+1}function zn(t,r){var a=nn&&r.markedSpans;if(a){for(var s=void 0,c=0;c<a.length;++c)if(s=a[c],!!s.marker.collapsed){if(s.from==null)return!0;if(!s.marker.widgetNode&&s.from==0&&s.marker.inclusiveLeft&&o1(t,r,s))return!0}}}function o1(t,r,a){if(a.to==null){var s=a.marker.find(1,!0);return o1(t,s.line,Ao(s.line.markedSpans,a.marker))}if(a.marker.inclusiveRight&&a.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==a.to&&(c.to==null||c.to!=a.from)&&(c.marker.inclusiveLeft||a.marker.inclusiveRight)&&o1(t,r,c))return!0}function on(t){t=Zr(t);for(var r=0,a=t.parent,s=0;s<a.lines.length;++s){var c=a.lines[s];if(c==t)break;r+=c.height}for(var h=a.parent;h;a=h,h=a.parent)for(var f=0;f<h.children.length;++f){var p=h.children[f];if(p==a)break;r+=p.height}return r}function ta(t){if(t.height==0)return 0;for(var r=t.text.length,a,s=t;a=Xu(s);){var c=a.find(0,!0);s=c.from.line,r+=c.from.ch-c.to.ch}for(s=t;a=ea(s);){var h=a.find(0,!0);r-=s.text.length-h.from.ch,s=h.to.line,r+=s.text.length-h.to.ch}return r}function s1(t){var r=t.display,a=t.doc;r.maxLine=be(a,a.first),r.maxLineLength=ta(r.maxLine),r.maxLineChanged=!0,a.iter(function(s){var c=ta(s);c>r.maxLineLength&&(r.maxLineLength=c,r.maxLine=s)})}var Ii=function(t,r,a){this.text=t,Ku(this,r),this.height=a?a(this):1};Ii.prototype.lineNo=function(){return je(this)},Hr(Ii);function l4(t,r,a,s){t.text=r,t.stateAfter&&(t.stateAfter=null),t.styles&&(t.styles=null),t.order!=null&&(t.order=null),qu(t),Ku(t,a);var c=s?s(t):1;c!=t.height&&Yt(t,c)}function c4(t){t.parent=null,qu(t)}var u4={},d4={};function e0(t,r){if(!t||/^\s*$/.test(t))return null;var a=r.addModeClass?d4:u4;return a[t]||(a[t]=t.replace(/\S+/g,"cm-$&"))}function t0(t,r){var a=w("span",null,null,M?"padding-right: .1px":null),s={pre:w("pre",[a],"CodeMirror-line"),content:a,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;s.pos=0,s.addToken=f4,Rr(t.display.measure)&&(f=Kt(h,t.doc.direction))&&(s.addToken=g4(s.addToken,f)),s.map=[];var p=r!=t.display.externalMeasured&&je(h);v4(h,s,Fu(t,h,p)),h.styleClasses&&(h.styleClasses.bgClass&&(s.bgClass=Re(h.styleClasses.bgClass,s.bgClass||"")),h.styleClasses.textClass&&(s.textClass=Re(h.styleClasses.textClass,s.textClass||""))),s.map.length==0&&s.map.push(0,0,s.content.appendChild(Gs(t.display.measure))),c==0?(r.measure.map=s.map,r.measure.cache={}):((r.measure.maps||(r.measure.maps=[])).push(s.map),(r.measure.caches||(r.measure.caches=[])).push({}))}if(M){var g=s.content.lastChild;(/\bcm-tab\b/.test(g.className)||g.querySelector&&g.querySelector(".cm-tab"))&&(s.content.className="cm-tab-wrap-hack")}return Oe(t,"renderLine",t,r.line,s.pre),s.pre.className&&(s.textClass=Re(s.pre.className,s.textClass||"")),s}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,a,s,c,h,f){if(r){var p=t.splitSpaces?p4(r,t.trailingSpace):r,g=t.cm.state.specialChars,m=!1,z;if(!g.test(r))t.col+=r.length,z=document.createTextNode(p),t.map.push(t.pos,t.pos+r.length,z),y&&b<9&&(m=!0),t.pos+=r.length;else{z=document.createDocumentFragment();for(var S=0;;){g.lastIndex=S;var P=g.exec(r),I=P?P.index-S:r.length-S;if(I){var Z=document.createTextNode(p.slice(S,S+I));y&&b<9?z.appendChild(x("span",[Z])):z.appendChild(Z),t.map.push(t.pos,t.pos+I,Z),t.col+=I,t.pos+=I}if(!P)break;S+=I+1;var q=void 0;if(P[0]==" "){var te=t.cm.options.tabSize,se=te-t.col%te;q=z.appendChild(x("span",nr(se),"cm-tab")),q.setAttribute("role","presentation"),q.setAttribute("cm-text"," "),t.col+=se}else P[0]=="\r"||P[0]==`
2983
- `?(q=z.appendChild(x("span",P[0]=="\r"?"␍":"␤","cm-invalidchar")),q.setAttribute("cm-text",P[0]),t.col+=1):(q=t.cm.options.specialCharPlaceholder(P[0]),q.setAttribute("cm-text",P[0]),y&&b<9?z.appendChild(x("span",[q])):z.appendChild(q),t.col+=1);t.map.push(t.pos,t.pos+1,q),t.pos++}}if(t.trailingSpace=p.charCodeAt(r.length-1)==32,a||s||c||m||h||f){var he=a||"";s&&(he+=s),c&&(he+=c);var ae=x("span",[z],he,h);if(f)for(var pe in f)f.hasOwnProperty(pe)&&pe!="style"&&pe!="class"&&ae.setAttribute(pe,f[pe]);return t.content.appendChild(ae)}t.content.appendChild(z)}}function p4(t,r){if(t.length>1&&!/ /.test(t))return t;for(var a=r,s="",c=0;c<t.length;c++){var h=t.charAt(c);h==" "&&a&&(c==t.length-1||t.charCodeAt(c+1)==32)&&(h=" "),s+=h,a=h==" "}return s}function g4(t,r){return function(a,s,c,h,f,p,g){c=c?c+" cm-force-border":"cm-force-border";for(var m=a.pos,z=m+s.length;;){for(var S=void 0,P=0;P<r.length&&(S=r[P],!(S.to>m&&S.from<=m));P++);if(S.to>=z)return t(a,s,c,h,f,p,g);t(a,s.slice(0,S.to-m),c,h,null,p,g),h=null,s=s.slice(S.to-m),m=S.to}}}function r0(t,r,a,s){var c=!s&&a.widgetNode;c&&t.map.push(t.pos,t.pos+r,c),!s&&t.cm.display.input.needsContentAttribute&&(c||(c=t.content.appendChild(document.createElement("span"))),c.setAttribute("cm-marker",a.id)),c&&(t.cm.display.input.setUneditable(c),t.content.appendChild(c)),t.pos+=r,t.trailingSpace=!1}function v4(t,r,a){var s=t.markedSpans,c=t.text,h=0;if(!s){for(var f=1;f<a.length;f+=2)r.addToken(r,c.slice(h,h=a[f]),e0(a[f+1],r.cm.options));return}for(var p=c.length,g=0,m=1,z="",S,P,I=0,Z,q,te,se,he;;){if(I==g){Z=q=te=P="",he=null,se=null,I=1/0;for(var ae=[],pe=void 0,Le=0;Le<s.length;++Le){var xe=s[Le],Pe=xe.marker;if(Pe.type=="bookmark"&&xe.from==g&&Pe.widgetNode)ae.push(Pe);else if(xe.from<=g&&(xe.to==null||xe.to>g||Pe.collapsed&&xe.to==g&&xe.from==g)){if(xe.to!=null&&xe.to!=g&&I>xe.to&&(I=xe.to,q=""),Pe.className&&(Z+=" "+Pe.className),Pe.css&&(P=(P?P+";":"")+Pe.css),Pe.startStyle&&xe.from==g&&(te+=" "+Pe.startStyle),Pe.endStyle&&xe.to==I&&(pe||(pe=[])).push(Pe.endStyle,xe.to),Pe.title&&((he||(he={})).title=Pe.title),Pe.attributes)for(var Je in Pe.attributes)(he||(he={}))[Je]=Pe.attributes[Je];Pe.collapsed&&(!se||n1(se.marker,Pe)<0)&&(se=xe)}else xe.from>g&&I>xe.from&&(I=xe.from)}if(pe)for(var Lt=0;Lt<pe.length;Lt+=2)pe[Lt+1]==I&&(q+=" "+pe[Lt]);if(!se||se.from==g)for(var it=0;it<ae.length;++it)r0(r,0,ae[it]);if(se&&(se.from||0)==g){if(r0(r,(se.to==null?p+1:se.to)-g,se.marker,se.from==null),se.to==null)return;se.to==g&&(se=!1)}}if(g>=p)break;for(var Jt=Math.min(p,I);;){if(z){var Wt=g+z.length;if(!se){var pt=Wt>Jt?z.slice(0,Jt-g):z;r.addToken(r,pt,S?S+Z:Z,te,g+pt.length==I?q:"",P,he)}if(Wt>=Jt){z=z.slice(Jt-g),g=Jt;break}g=Wt,te=""}z=c.slice(h,h=a[m++]),S=e0(a[m++],r.cm.options)}}}function n0(t,r,a){this.line=r,this.rest=a4(r),this.size=this.rest?je(_e(this.rest))-a+1:1,this.node=this.text=null,this.hidden=zn(t,r)}function ra(t,r,a){for(var s=[],c,h=r;h<a;h=c){var f=new n0(t.doc,be(t.doc,h),h);c=h+f.size,s.push(f)}return s}var Ai=null;function b4(t){Ai?Ai.ops.push(t):t.ownsGroup=Ai={ops:[t],delayedCallbacks:[]}}function m4(t){var r=t.delayedCallbacks,a=0;do{for(;a<r.length;a++)r[a].call(null);for(var s=0;s<t.ops.length;s++){var c=t.ops[s];if(c.cursorActivityHandlers)for(;c.cursorActivityCalled<c.cursorActivityHandlers.length;)c.cursorActivityHandlers[c.cursorActivityCalled++].call(null,c.cm)}}while(a<r.length)}function y4(t,r){var a=t.ownsGroup;if(a)try{m4(a)}finally{Ai=null,r(a)}}var Po=null;function wt(t,r){var a=Ti(t,r);if(a.length){var s=Array.prototype.slice.call(arguments,2),c;Ai?c=Ai.delayedCallbacks:Po?c=Po:(c=Po=[],setTimeout(C4,0));for(var h=function(p){c.push(function(){return a[p].apply(null,s)})},f=0;f<a.length;++f)h(f)}}function C4(){var t=Po;Po=null;for(var r=0;r<t.length;++r)t[r]()}function i0(t,r,a,s){for(var c=0;c<r.changes.length;c++){var h=r.changes[c];h=="text"?x4(t,r):h=="gutter"?s0(t,r,a,s):h=="class"?a1(t,r):h=="widget"&&z4(t,r,s)}r.changes=null}function Do(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),y&&b<8&&(t.node.style.zIndex=2)),t.node}function w4(t,r){var a=r.bgClass?r.bgClass+" "+(r.line.bgClass||""):r.line.bgClass;if(a&&(a+=" CodeMirror-linebackground"),r.background)a?r.background.className=a:(r.background.parentNode.removeChild(r.background),r.background=null);else if(a){var s=Do(r);r.background=s.insertBefore(x("div",null,a),s.firstChild),t.display.input.setUneditable(r.background)}}function o0(t,r){var a=t.display.externalMeasured;return a&&a.line==r.line?(t.display.externalMeasured=null,r.measure=a.measure,a.built):t0(t,r)}function x4(t,r){var a=r.text.className,s=o0(t,r);r.text==r.node&&(r.node=s.pre),r.text.parentNode.replaceChild(s.pre,r.text),r.text=s.pre,s.bgClass!=r.bgClass||s.textClass!=r.textClass?(r.bgClass=s.bgClass,r.textClass=s.textClass,a1(t,r)):a&&(r.text.className=a)}function a1(t,r){w4(t,r),r.line.wrapClass?Do(r).className=r.line.wrapClass:r.node!=r.text&&(r.node.className="");var a=r.textClass?r.textClass+" "+(r.line.textClass||""):r.line.textClass;r.text.className=a||""}function s0(t,r,a,s){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=Do(r);r.gutterBackground=x("div",null,"CodeMirror-gutter-background "+r.line.gutterClass,"left: "+(t.options.fixedGutter?s.fixedPos:-s.gutterTotalWidth)+"px; width: "+s.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=Do(r),p=r.gutter=x("div",null,"CodeMirror-gutter-wrapper","left: "+(t.options.fixedGutter?s.fixedPos:-s.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",_o(t.options,a),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+s.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+t.display.lineNumInnerWidth+"px"))),h)for(var g=0;g<t.display.gutterSpecs.length;++g){var m=t.display.gutterSpecs[g].className,z=h.hasOwnProperty(m)&&h[m];z&&p.appendChild(x("div",[z],"CodeMirror-gutter-elt","left: "+s.gutterLeft[m]+"px; width: "+s.gutterWidth[m]+"px"))}}}function z4(t,r,a){r.alignable&&(r.alignable=null);for(var s=ne("CodeMirror-linewidget"),c=r.node.firstChild,h=void 0;c;c=h)h=c.nextSibling,s.test(c.className)&&r.node.removeChild(c);a0(t,r,a)}function L4(t,r,a,s){var c=o0(t,r);return r.text=r.node=c.pre,c.bgClass&&(r.bgClass=c.bgClass),c.textClass&&(r.textClass=c.textClass),a1(t,r),s0(t,r,a,s),a0(t,r,s),r.node}function a0(t,r,a){if(l0(t,r.line,r,a,!0),r.rest)for(var s=0;s<r.rest.length;s++)l0(t,r.rest[s],r,a,!1)}function l0(t,r,a,s,c){if(r.widgets)for(var h=Do(a),f=0,p=r.widgets;f<p.length;++f){var g=p[f],m=x("div",[g.node],"CodeMirror-linewidget"+(g.className?" "+g.className:""));g.handleMouseEvents||m.setAttribute("cm-ignore-events","true"),S4(g,m,a,s),t.display.input.setUneditable(m),c&&g.above?h.insertBefore(m,a.gutter||a.text):h.appendChild(m),wt(g,"redraw")}}function S4(t,r,a,s){if(t.noHScroll){(a.alignable||(a.alignable=[])).push(r);var c=s.wrapperWidth;r.style.left=s.fixedPos+"px",t.coverGutter||(c-=s.gutterTotalWidth,r.style.paddingLeft=s.gutterTotalWidth+"px"),r.style.width=c+"px"}t.coverGutter&&(r.style.zIndex=5,r.style.position="relative",t.noHScroll||(r.style.marginLeft=-s.gutterTotalWidth+"px"))}function No(t){if(t.height!=null)return t.height;var r=t.doc.cm;if(!r)return 0;if(!ie(document.body,t.node)){var a="position: relative;";t.coverGutter&&(a+="margin-left: -"+r.display.gutters.offsetWidth+"px;"),t.noHScroll&&(a+="width: "+r.display.wrapper.clientWidth+"px;"),O(r.display.measure,x("div",[t.node],null,a))}return t.height=t.node.parentNode.offsetHeight}function sn(t,r){for(var a=wn(r);a!=t.wrapper;a=a.parentNode)if(!a||a.nodeType==1&&a.getAttribute("cm-ignore-events")=="true"||a.parentNode==t.sizer&&a!=t.mover)return!0}function na(t){return t.lineSpace.offsetTop}function l1(t){return t.mover.offsetHeight-t.lineSpace.offsetHeight}function c0(t){if(t.cachedPaddingH)return t.cachedPaddingH;var r=O(t.measure,x("pre","x","CodeMirror-line-like")),a=window.getComputedStyle?window.getComputedStyle(r):r.currentStyle,s={left:parseInt(a.paddingLeft),right:parseInt(a.paddingRight)};return!isNaN(s.left)&&!isNaN(s.right)&&(t.cachedPaddingH=s),s}function Wr(t){return ve-t.display.nativeBarWidth}function Gn(t){return t.display.scroller.clientWidth-Wr(t)-t.display.barWidth}function c1(t){return t.display.scroller.clientHeight-Wr(t)-t.display.barHeight}function M4(t,r,a){var s=t.options.lineWrapping,c=s&&Gn(t);if(!r.measure.heights||s&&r.measure.width!=c){var h=r.measure.heights=[];if(s){r.measure.width=c;for(var f=r.text.firstChild.getClientRects(),p=0;p<f.length-1;p++){var g=f[p],m=f[p+1];Math.abs(g.bottom-m.bottom)>2&&h.push((g.bottom+m.top)/2-a.top)}}h.push(a.bottom-a.top)}}function u0(t,r,a){if(t.line==r)return{map:t.measure.map,cache:t.measure.cache};for(var s=0;s<t.rest.length;s++)if(t.rest[s]==r)return{map:t.measure.maps[s],cache:t.measure.caches[s]};for(var c=0;c<t.rest.length;c++)if(je(t.rest[c])>a)return{map:t.measure.maps[c],cache:t.measure.caches[c],before:!0}}function T4(t,r){r=Zr(r);var a=je(r),s=t.display.externalMeasured=new n0(t.doc,r,a);s.lineN=a;var c=s.built=t0(t,s);return s.text=c.pre,O(t.display.lineMeasure,c.pre),s}function d0(t,r,a,s){return Ur(t,Pi(t,r),a,s)}function u1(t,r){if(r>=t.display.viewFrom&&r<t.display.viewTo)return t.display.view[Yn(t,r)];var a=t.display.externalMeasured;if(a&&r>=a.lineN&&r<a.lineN+a.size)return a}function Pi(t,r){var a=je(r),s=u1(t,a);s&&!s.text?s=null:s&&s.changes&&(i0(t,s,a,g1(t)),t.curOp.forceUpdate=!0),s||(s=T4(t,r));var c=u0(s,r,a);return{line:r,view:s,rect:null,map:c.map,cache:c.cache,before:c.before,hasHeights:!1}}function Ur(t,r,a,s,c){r.before&&(a=-1);var h=a+(s||""),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=O4(t,r,a,s),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 h0={left:0,right:0,top:0,bottom:0};function f0(t,r,a){for(var s,c,h,f,p,g,m=0;m<t.length;m+=3)if(p=t[m],g=t[m+1],r<p?(c=0,h=1,f="left"):r<g?(c=r-p,h=c+1):(m==t.length-3||r==g&&t[m+3]>r)&&(h=g-p,c=h-1,r>=g&&(f="right")),c!=null){if(s=t[m+2],p==g&&a==(s.insertLeft?"left":"right")&&(f=a),a=="left"&&c==0)for(;m&&t[m-2]==t[m-3]&&t[m-1].insertLeft;)s=t[(m-=3)+2],f="left";if(a=="right"&&c==g-p)for(;m<t.length-3&&t[m+3]==t[m+4]&&!t[m+5].insertLeft;)s=t[(m+=3)+2],f="right";break}return{node:s,start:c,end:h,collapse:f,coverStart:p,coverEnd:g}}function k4(t,r){var a=h0;if(r=="left")for(var s=0;s<t.length&&(a=t[s]).left==a.right;s++);else for(var c=t.length-1;c>=0&&(a=t[c]).left==a.right;c--);return a}function O4(t,r,a,s){var c=f0(r.map,a,s),h=c.node,f=c.start,p=c.end,g=c.collapse,m;if(h.nodeType==3){for(var z=0;z<4;z++){for(;f&&Ne(r.line.text.charAt(c.coverStart+f));)--f;for(;c.coverStart+p<c.coverEnd&&Ne(r.line.text.charAt(c.coverStart+p));)++p;if(y&&b<9&&f==0&&p==c.coverEnd-c.coverStart?m=h.parentNode.getBoundingClientRect():m=k4(U(h,f,p).getClientRects(),s),m.left||m.right||f==0)break;p=f,f=f-1,g="right"}y&&b<11&&(m=$4(t.display.measure,m))}else{f>0&&(g=s="right");var S;t.options.lineWrapping&&(S=h.getClientRects()).length>1?m=S[s=="right"?S.length-1:0]:m=h.getBoundingClientRect()}if(y&&b<9&&!f&&(!m||!m.left&&!m.right)){var P=h.parentNode.getClientRects()[0];P?m={left:P.left,right:P.left+Ni(t.display),top:P.top,bottom:P.bottom}:m=h0}for(var I=m.top-r.rect.top,Z=m.bottom-r.rect.top,q=(I+Z)/2,te=r.view.measure.heights,se=0;se<te.length-1&&!(q<te[se]);se++);var he=se?te[se-1]:0,ae=te[se],pe={left:(g=="right"?m.right:m.left)-r.rect.left,right:(g=="left"?m.left:m.right)-r.rect.left,top:he,bottom:ae};return!m.left&&!m.right&&(pe.bogus=!0),t.options.singleCursorHeightPerLine||(pe.rtop=I,pe.rbottom=Z),pe}function $4(t,r){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!xn(t))return r;var a=screen.logicalXDPI/screen.deviceXDPI,s=screen.logicalYDPI/screen.deviceYDPI;return{left:r.left*a,right:r.right*a,top:r.top*s,bottom:r.bottom*s}}function p0(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 g0(t){t.display.externalMeasure=null,V(t.display.lineMeasure);for(var r=0;r<t.display.view.length;r++)p0(t.display.view[r])}function Ho(t){g0(t),t.display.cachedCharWidth=t.display.cachedTextHeight=t.display.cachedPaddingH=null,t.options.lineWrapping||(t.display.maxLineChanged=!0),t.display.lineNumChars=null}function v0(){return T&&D?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function b0(){return T&&D?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function d1(t){var r=0;if(t.widgets)for(var a=0;a<t.widgets.length;++a)t.widgets[a].above&&(r+=No(t.widgets[a]));return r}function ia(t,r,a,s,c){if(!c){var h=d1(r);a.top+=h,a.bottom+=h}if(s=="line")return a;s||(s="local");var f=on(r);if(s=="local"?f+=na(t.display):f-=t.display.viewOffset,s=="page"||s=="window"){var p=t.display.lineSpace.getBoundingClientRect();f+=p.top+(s=="window"?0:b0());var g=p.left+(s=="window"?0:v0());a.left+=g,a.right+=g}return a.top+=f,a.bottom+=f,a}function m0(t,r,a){if(a=="div")return r;var s=r.left,c=r.top;if(a=="page")s-=v0(),c-=b0();else if(a=="local"||!a){var h=t.display.sizer.getBoundingClientRect();s+=h.left,c+=h.top}var f=t.display.lineSpace.getBoundingClientRect();return{left:s-f.left,top:c-f.top}}function oa(t,r,a,s,c){return s||(s=be(t.doc,r.line)),ia(t,s,d0(t,s,r.ch,c),a)}function wr(t,r,a,s,c,h){s=s||be(t.doc,r.line),c||(c=Pi(t,s));function f(Z,q){var te=Ur(t,c,Z,q?"right":"left",h);return q?te.left=te.right:te.right=te.left,ia(t,s,te,a)}var p=Kt(s,t.doc.direction),g=r.ch,m=r.sticky;if(g>=s.text.length?(g=s.text.length,m="before"):g<=0&&(g=0,m="after"),!p)return f(m=="before"?g-1:g,m=="before");function z(Z,q,te){var se=p[q],he=se.level==1;return f(te?Z-1:Z,he!=te)}var S=st(p,g,m),P=ir,I=z(g,S,m=="before");return P!=null&&(I.other=z(g,P,m!="before")),I}function y0(t,r){var a=0;r=de(t.doc,r),t.options.lineWrapping||(a=Ni(t.display)*r.ch);var s=be(t.doc,r.line),c=on(s)+na(t.display);return{left:a,right:a,top:c,bottom:c+s.height}}function h1(t,r,a,s,c){var h=J(t,r,a);return h.xRel=c,s&&(h.outside=s),h}function f1(t,r,a){var s=t.doc;if(a+=t.display.viewOffset,a<0)return h1(s.first,0,null,-1,-1);var c=Br(s,a),h=s.first+s.size-1;if(c>h)return h1(s.first+s.size-1,be(s,h).text.length,null,1,1);r<0&&(r=0);for(var f=be(s,c);;){var p=E4(t,f,c,r,a),g=o4(f,p.ch+(p.xRel>0||p.outside>0?1:0));if(!g)return p;var m=g.find(1);if(m.line==c)return m;f=be(s,c=m.line)}}function C0(t,r,a,s){s-=d1(r);var c=r.text.length,h=Nr(function(f){return Ur(t,a,f-1).bottom<=s},c,0);return c=Nr(function(f){return Ur(t,a,f).top>s},h,c),{begin:h,end:c}}function w0(t,r,a,s){a||(a=Pi(t,r));var c=ia(t,r,Ur(t,a,s),"line").top;return C0(t,r,a,c)}function p1(t,r,a,s){return t.bottom<=a?!1:t.top>a?!0:(s?t.left:t.right)>r}function E4(t,r,a,s,c){c-=on(r);var h=Pi(t,r),f=d1(r),p=0,g=r.text.length,m=!0,z=Kt(r,t.doc.direction);if(z){var S=(t.options.lineWrapping?I4:_4)(t,r,a,h,z,s,c);m=S.level!=1,p=m?S.from:S.to-1,g=m?S.to:S.from-1}var P=null,I=null,Z=Nr(function(Le){var xe=Ur(t,h,Le);return xe.top+=f,xe.bottom+=f,p1(xe,s,c,!1)?(xe.top<=c&&xe.left<=s&&(P=Le,I=xe),!0):!1},p,g),q,te,se=!1;if(I){var he=s-I.left<I.right-s,ae=he==m;Z=P+(ae?0:1),te=ae?"after":"before",q=he?I.left:I.right}else{!m&&(Z==g||Z==p)&&Z++,te=Z==0?"after":Z==r.text.length?"before":Ur(t,h,Z-(m?1:0)).bottom+f<=c==m?"after":"before";var pe=wr(t,J(a,Z,te),"line",r,h);q=pe.left,se=c<pe.top?-1:c>=pe.bottom?1:0}return Z=Dt(r.text,Z,1),h1(a,Z,te,se,s-q)}function _4(t,r,a,s,c,h,f){var p=Nr(function(S){var P=c[S],I=P.level!=1;return p1(wr(t,J(a,I?P.to:P.from,I?"before":"after"),"line",r,s),h,f,!0)},0,c.length-1),g=c[p];if(p>0){var m=g.level!=1,z=wr(t,J(a,m?g.from:g.to,m?"after":"before"),"line",r,s);p1(z,h,f,!0)&&z.top>f&&(g=c[p-1])}return g}function I4(t,r,a,s,c,h,f){var p=C0(t,r,s,f),g=p.begin,m=p.end;/\s/.test(r.text.charAt(m-1))&&m--;for(var z=null,S=null,P=0;P<c.length;P++){var I=c[P];if(!(I.from>=m||I.to<=g)){var Z=I.level!=1,q=Ur(t,s,Z?Math.min(m,I.to)-1:Math.max(g,I.from)).right,te=q<h?h-q+1e9:q-h;(!z||S>te)&&(z=I,S=te)}}return z||(z=c[c.length-1]),z.from<g&&(z={from:g,to:z.to,level:z.level}),z.to>m&&(z={from:z.from,to:m,level:z.level}),z}var qn;function Di(t){if(t.cachedTextHeight!=null)return t.cachedTextHeight;if(qn==null){qn=x("pre",null,"CodeMirror-line-like");for(var r=0;r<49;++r)qn.appendChild(document.createTextNode("x")),qn.appendChild(x("br"));qn.appendChild(document.createTextNode("x"))}O(t.measure,qn);var a=qn.offsetHeight/50;return a>3&&(t.cachedTextHeight=a),V(t.measure),a||1}function Ni(t){if(t.cachedCharWidth!=null)return t.cachedCharWidth;var r=x("span","xxxxxxxxxx"),a=x("pre",[r],"CodeMirror-line-like");O(t.measure,a);var s=r.getBoundingClientRect(),c=(s.right-s.left)/10;return c>2&&(t.cachedCharWidth=c),c||10}function g1(t){for(var r=t.display,a={},s={},c=r.gutters.clientLeft,h=r.gutters.firstChild,f=0;h;h=h.nextSibling,++f){var p=t.display.gutterSpecs[f].className;a[p]=h.offsetLeft+h.clientLeft+c,s[p]=h.clientWidth}return{fixedPos:v1(r),gutterTotalWidth:r.gutters.offsetWidth,gutterLeft:a,gutterWidth:s,wrapperWidth:r.wrapper.clientWidth}}function v1(t){return t.scroller.getBoundingClientRect().left-t.sizer.getBoundingClientRect().left}function x0(t){var r=Di(t.display),a=t.options.lineWrapping,s=a&&Math.max(5,t.display.scroller.clientWidth/Ni(t.display)-3);return function(c){if(zn(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 a?h+(Math.ceil(c.text.length/s)||1)*r:h+r}}function b1(t){var r=t.doc,a=x0(t);r.iter(function(s){var c=a(s);c!=s.height&&Yt(s,c)})}function Kn(t,r,a,s){var c=t.display;if(!a&&wn(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=f1(t,h,f),m;if(s&&g.xRel>0&&(m=be(t.doc,g.line).text).length==g.ch){var z=Xe(m,m.length,t.options.tabSize)-m.length;g=J(g.line,Math.max(0,Math.round((h-c0(t.display).left)/Ni(t.display))-z))}return g}function Yn(t,r){if(r>=t.display.viewTo||(r-=t.display.viewFrom,r<0))return null;for(var a=t.display.view,s=0;s<a.length;s++)if(r-=a[s].size,r<0)return s}function Vt(t,r,a,s){r==null&&(r=t.doc.first),a==null&&(a=t.doc.first+t.doc.size),s||(s=0);var c=t.display;if(s&&a<c.viewTo&&(c.updateLineNumbers==null||c.updateLineNumbers>r)&&(c.updateLineNumbers=r),t.curOp.viewChanged=!0,r>=c.viewTo)nn&&i1(t.doc,r)<c.viewTo&&Sn(t);else if(a<=c.viewFrom)nn&&Qu(t.doc,a+s)>c.viewFrom?Sn(t):(c.viewFrom+=s,c.viewTo+=s);else if(r<=c.viewFrom&&a>=c.viewTo)Sn(t);else if(r<=c.viewFrom){var h=sa(t,a,a+s,1);h?(c.view=c.view.slice(h.index),c.viewFrom=h.lineN,c.viewTo+=s):Sn(t)}else if(a>=c.viewTo){var f=sa(t,r,r,-1);f?(c.view=c.view.slice(0,f.index),c.viewTo=f.lineN):Sn(t)}else{var p=sa(t,r,r,-1),g=sa(t,a,a+s,1);p&&g?(c.view=c.view.slice(0,p.index).concat(ra(t,p.lineN,g.lineN)).concat(c.view.slice(g.index)),c.viewTo+=s):Sn(t)}var m=c.externalMeasured;m&&(a<m.lineN?m.lineN+=s:r<m.lineN+m.size&&(c.externalMeasured=null))}function Ln(t,r,a){t.curOp.viewChanged=!0;var s=t.display,c=t.display.externalMeasured;if(c&&r>=c.lineN&&r<c.lineN+c.size&&(s.externalMeasured=null),!(r<s.viewFrom||r>=s.viewTo)){var h=s.view[Yn(t,r)];if(h.node!=null){var f=h.changes||(h.changes=[]);ge(f,a)==-1&&f.push(a)}}}function Sn(t){t.display.viewFrom=t.display.viewTo=t.doc.first,t.display.view=[],t.display.viewOffset=0}function sa(t,r,a,s){var c=Yn(t,r),h,f=t.display.view;if(!nn||a==t.doc.first+t.doc.size)return{index:c,lineN:a};for(var p=t.display.viewFrom,g=0;g<c;g++)p+=f[g].size;if(p!=r){if(s>0){if(c==f.length-1)return null;h=p+f[c].size-r,c++}else h=p-r;r+=h,a+=h}for(;i1(t.doc,a)!=a;){if(c==(s<0?0:f.length-1))return null;a+=s*f[c-(s<0?1:0)].size,c+=s}return{index:c,lineN:a}}function A4(t,r,a){var s=t.display,c=s.view;c.length==0||r>=s.viewTo||a<=s.viewFrom?(s.view=ra(t,r,a),s.viewFrom=r):(s.viewFrom>r?s.view=ra(t,r,s.viewFrom).concat(s.view):s.viewFrom<r&&(s.view=s.view.slice(Yn(t,r))),s.viewFrom=r,s.viewTo<a?s.view=s.view.concat(ra(t,s.viewTo,a)):s.viewTo>a&&(s.view=s.view.slice(0,Yn(t,a)))),s.viewTo=a}function z0(t){for(var r=t.display.view,a=0,s=0;s<r.length;s++){var c=r[s];!c.hidden&&(!c.node||c.changes)&&++a}return a}function Ro(t){t.display.input.showSelection(t.display.input.prepareSelection())}function L0(t,r){r===void 0&&(r=!0);for(var a=t.doc,s={},c=s.cursors=document.createDocumentFragment(),h=s.selection=document.createDocumentFragment(),f=0;f<a.sel.ranges.length;f++)if(!(!r&&f==a.sel.primIndex)){var p=a.sel.ranges[f];if(!(p.from().line>=t.display.viewTo||p.to().line<t.display.viewFrom)){var g=p.empty();(g||t.options.showCursorWhenSelecting)&&S0(t,p.head,c),g||P4(t,p,h)}}return s}function S0(t,r,a){var s=wr(t,r,"div",null,null,!t.options.singleCursorHeightPerLine),c=a.appendChild(x("div"," ","CodeMirror-cursor"));if(c.style.left=s.left+"px",c.style.top=s.top+"px",c.style.height=Math.max(0,s.bottom-s.top)*t.options.cursorHeight+"px",/\bcm-fat-cursor\b/.test(t.getWrapperElement().className)){var h=oa(t,r,"div",null,null);c.style.width=Math.max(0,h.right-h.left)+"px"}if(s.other){var f=a.appendChild(x("div"," ","CodeMirror-cursor CodeMirror-secondarycursor"));f.style.display="",f.style.left=s.other.left+"px",f.style.top=s.other.top+"px",f.style.height=(s.other.bottom-s.other.top)*.85+"px"}}function aa(t,r){return t.top-r.top||t.left-r.left}function P4(t,r,a){var s=t.display,c=t.doc,h=document.createDocumentFragment(),f=c0(t.display),p=f.left,g=Math.max(s.sizerWidth,Gn(t)-s.sizer.offsetLeft)-f.right,m=c.direction=="ltr";function z(ae,pe,Le,xe){pe<0&&(pe=0),pe=Math.round(pe),xe=Math.round(xe),h.appendChild(x("div",null,"CodeMirror-selected","position: absolute; left: "+ae+`px;
2982
+ `,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?(a.push(h.slice(0,f)),r+=f+1):(a.push(h),r=c+1)}return a}:function(t){return t.split(/\r\n?|\n/)},qs=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},Ks=function(){var t=x("div");return"oncopy"in t?!0:(t.setAttribute("oncopy","return;"),typeof t.oncopy=="function")}(),ko=null;function wi(t){if(ko!=null)return ko;var r=O(t,x("span","x")),a=r.getBoundingClientRect(),s=U(r,0,1).getBoundingClientRect();return ko=Math.abs(a.left-s.left)>1}var fr={},sr={};function Ys(t,r){arguments.length>2&&(r.dependencies=Array.prototype.slice.call(arguments,2)),fr[t]=r}function ri(t,r){sr[t]=r}function $n(t){if(typeof t=="string"&&sr.hasOwnProperty(t))t=sr[t];else if(t&&typeof t.name=="string"&&sr.hasOwnProperty(t.name)){var r=sr[t.name];typeof r=="string"&&(r={name:r}),t=et(r,t),t.name=r.name}else{if(typeof t=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(t))return $n("application/xml");if(typeof t=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(t))return $n("application/json")}return typeof t=="string"?{name:t}:t||{name:"null"}}function En(t,r){r=$n(r);var a=fr[r.name];if(!a)return En(t,"text/plain");var s=a(t,r);if(yr.hasOwnProperty(r.name)){var c=yr[r.name];for(var h in c)c.hasOwnProperty(h)&&(s.hasOwnProperty(h)&&(s["_"+h]=s[h]),s[h]=c[h])}if(s.name=r.name,r.helperType&&(s.helperType=r.helperType),r.modeProps)for(var f in r.modeProps)s[f]=r.modeProps[f];return s}var yr={};function Cr(t,r){var a=yr.hasOwnProperty(t)?yr[t]:yr[t]={};Ye(r,a)}function ar(t,r){if(r===!0)return r;if(t.copyState)return t.copyState(r);var a={};for(var s in r){var c=r[s];c instanceof Array&&(c=c.concat([])),a[s]=c}return a}function Oo(t,r){for(var a;t.innerMode&&(a=t.innerMode(r),!(!a||a.mode==t));)r=a.state,t=a.mode;return a||{mode:t,state:r}}function $o(t,r,a){return t.startState?t.startState(r,a):!0}var at=function(t,r,a){this.pos=this.start=0,this.string=t,this.tabSize=r||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=a};at.prototype.eol=function(){return this.pos>=this.string.length},at.prototype.sol=function(){return this.pos==this.lineStart},at.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},at.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},at.prototype.eat=function(t){var r=this.string.charAt(this.pos),a;if(typeof t=="string"?a=r==t:a=r&&(t.test?t.test(r):t(r)),a)return++this.pos,r},at.prototype.eatWhile=function(t){for(var r=this.pos;this.eat(t););return this.pos>r},at.prototype.eatSpace=function(){for(var t=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>t},at.prototype.skipToEnd=function(){this.pos=this.string.length},at.prototype.skipTo=function(t){var r=this.string.indexOf(t,this.pos);if(r>-1)return this.pos=r,!0},at.prototype.backUp=function(t){this.pos-=t},at.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=Xe(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?Xe(this.string,this.lineStart,this.tabSize):0)},at.prototype.indentation=function(){return Xe(this.string,null,this.tabSize)-(this.lineStart?Xe(this.string,this.lineStart,this.tabSize):0)},at.prototype.match=function(t,r,a){if(typeof t=="string"){var s=function(f){return a?f.toLowerCase():f},c=this.string.substr(this.pos,t.length);if(s(c)==s(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)}},at.prototype.current=function(){return this.string.slice(this.start,this.pos)},at.prototype.hideFirstChars=function(t,r){this.lineStart+=t;try{return r()}finally{this.lineStart-=t}},at.prototype.lookAhead=function(t){var r=this.lineOracle;return r&&r.lookAhead(t)},at.prototype.baseToken=function(){var t=this.lineOracle;return t&&t.baseToken(this.pos)};function be(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 a=t;!a.lines;)for(var s=0;;++s){var c=a.children[s],h=c.chunkSize();if(r<h){a=c;break}r-=h}return a.lines[r]}function Fr(t,r,a){var s=[],c=r.line;return t.iter(r.line,a.line+1,function(h){var f=h.text;c==a.line&&(f=f.slice(0,a.ch)),c==r.line&&(f=f.slice(r.ch)),s.push(f),++c}),s}function Eo(t,r,a){var s=[];return t.iter(r,a,function(c){s.push(c.text)}),s}function Yt(t,r){var a=r-t.height;if(a)for(var s=t;s;s=s.parent)s.height+=a}function je(t){if(t.parent==null)return null;for(var r=t.parent,a=ge(r.lines,t),s=r.parent;s;r=s,s=s.parent)for(var c=0;s.children[c]!=r;++c)a+=s.children[c].chunkSize();return a+r.first}function Br(t,r){var a=t.first;e:do{for(var s=0;s<t.children.length;++s){var c=t.children[s],h=c.height;if(r<h){t=c;continue e}r-=h,a+=c.chunkSize()}return a}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 a+f}function Ui(t,r){return r>=t.first&&r<t.first+t.size}function _o(t,r){return String(t.lineNumberFormatter(r+t.firstLineNumber))}function J(t,r,a){if(a===void 0&&(a=null),!(this instanceof J))return new J(t,r,a);this.line=t,this.ch=r,this.sticky=a}function C(t,r){return t.line-r.line||t.ch-r.ch}function k(t,r){return t.sticky==r.sticky&&C(t,r)==0}function G(t){return J(t.line,t.ch)}function ee(t,r){return C(t,r)<0?r:t}function $e(t,r){return C(t,r)<0?t:r}function Fe(t,r){return Math.max(t.first,Math.min(r,t.first+t.size-1))}function de(t,r){if(r.line<t.first)return J(t.first,0);var a=t.first+t.size-1;return r.line>a?J(a,be(t,a).text.length):It(r,be(t,r.line).text.length)}function It(t,r){var a=t.ch;return a==null||a>r?J(t.line,r):a<0?J(t.line,0):t}function lr(t,r){for(var a=[],s=0;s<r.length;s++)a[s]=de(t,r[s]);return a}var _n=function(t,r){this.state=t,this.lookAhead=r},Vr=function(t,r,a,s){this.state=r,this.doc=t,this.line=a,this.maxLookAhead=s||0,this.baseTokens=null,this.baseTokenPos=1};Vr.prototype.lookAhead=function(t){var r=this.doc.getLine(this.line+t);return r!=null&&t>this.maxLookAhead&&(this.maxLookAhead=t),r},Vr.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}},Vr.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Vr.fromSaved=function(t,r,a){return r instanceof _n?new Vr(t,ar(t.mode,r.state),a,r.lookAhead):new Vr(t,ar(t.mode,r),a)},Vr.prototype.save=function(t){var r=t!==!1?ar(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new _n(r,this.maxLookAhead):r};function Ru(t,r,a,s){var c=[t.state.modeGen],h={};Uu(t,r.text,t.doc.mode,a,function(m,z){return c.push(m,z)},h,s);for(var f=a.state,p=function(m){a.baseTokens=c;var z=t.state.overlays[m],S=1,P=0;a.state=!0,Uu(t,r.text,z.mode,a,function(I,Z){for(var q=S;P<I;){var te=c[S];te>I&&c.splice(S,1,I,c[S+1],te),S+=2,P=Math.min(I,te)}if(Z)if(z.opaque)c.splice(q,S-q,I,"overlay "+Z),S=q+2;else for(;q<S;q+=2){var se=c[q+1];c[q+1]=(se?se+" ":"")+"overlay "+Z}},h),a.state=f,a.baseTokens=null,a.baseTokenPos=1},g=0;g<t.state.overlays.length;++g)p(g);return{styles:c,classes:h.bgClass||h.textClass?h:null}}function Fu(t,r,a){if(!r.styles||r.styles[0]!=t.state.modeGen){var s=Io(t,je(r)),c=r.text.length>t.options.maxHighlightLength&&ar(t.doc.mode,s.state),h=Ru(t,r,s);c&&(s.state=c),r.stateAfter=s.save(!c),r.styles=h.styles,h.classes?r.styleClasses=h.classes:r.styleClasses&&(r.styleClasses=null),a===t.doc.highlightFrontier&&(t.doc.modeFrontier=Math.max(t.doc.modeFrontier,++t.doc.highlightFrontier))}return r.styles}function Io(t,r,a){var s=t.doc,c=t.display;if(!s.mode.startState)return new Vr(s,!0,r);var h=Y6(t,r,a),f=h>s.first&&be(s,h-1).stateAfter,p=f?Vr.fromSaved(s,f,h):new Vr(s,$o(s.mode),h);return s.iter(h,r,function(g){e1(t,g.text,p);var m=p.line;g.stateAfter=m==r-1||m%5==0||m>=c.viewFrom&&m<c.viewTo?p.save():null,p.nextLine()}),a&&(s.modeFrontier=p.line),p}function e1(t,r,a,s){var c=t.doc.mode,h=new at(r,t.options.tabSize,a);for(h.start=h.pos=s||0,r==""&&Bu(c,a.state);!h.eol();)t1(c,h,a.state),h.start=h.pos}function Bu(t,r){if(t.blankLine)return t.blankLine(r);if(t.innerMode){var a=Oo(t,r);if(a.mode.blankLine)return a.mode.blankLine(a.state)}}function t1(t,r,a,s){for(var c=0;c<10;c++){s&&(s[0]=Oo(t,a).mode);var h=t.token(r,a);if(r.pos>r.start)return h}throw new Error("Mode "+t.name+" failed to advance stream.")}var Vu=function(t,r,a){this.start=t.start,this.end=t.pos,this.string=t.current(),this.type=r||null,this.state=a};function Zu(t,r,a,s){var c=t.doc,h=c.mode,f;r=de(c,r);var p=be(c,r.line),g=Io(t,r.line,a),m=new at(p.text,t.options.tabSize,g),z;for(s&&(z=[]);(s||m.pos<r.ch)&&!m.eol();)m.start=m.pos,f=t1(h,m,g.state),s&&z.push(new Vu(m,f,ar(c.mode,g.state)));return s?z:new Vu(m,f,g.state)}function Wu(t,r){if(t)for(;;){var a=t.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!a)break;t=t.slice(0,a.index)+t.slice(a.index+a[0].length);var s=a[1]?"bgClass":"textClass";r[s]==null?r[s]=a[2]:new RegExp("(?:^|\\s)"+a[2]+"(?:$|\\s)").test(r[s])||(r[s]+=" "+a[2])}return t}function Uu(t,r,a,s,c,h,f){var p=a.flattenSpans;p==null&&(p=t.options.flattenSpans);var g=0,m=null,z=new at(r,t.options.tabSize,s),S,P=t.options.addModeClass&&[null];for(r==""&&Wu(Bu(a,s.state),h);!z.eol();){if(z.pos>t.options.maxHighlightLength?(p=!1,f&&e1(t,r,s,z.pos),z.pos=r.length,S=null):S=Wu(t1(a,z,s.state,P),h),P){var I=P[0].name;I&&(S="m-"+(S?I+" "+S:I))}if(!p||m!=S){for(;g<z.start;)g=Math.min(z.start,g+5e3),c(g,m);m=S}z.start=z.pos}for(;g<z.pos;){var Z=Math.min(z.pos,g+5e3);c(Z,m),g=Z}}function Y6(t,r,a){for(var s,c,h=t.doc,f=a?-1:r-(t.doc.mode.innerMode?1e3:100),p=r;p>f;--p){if(p<=h.first)return h.first;var g=be(h,p-1),m=g.stateAfter;if(m&&(!a||p+(m instanceof _n?m.lookAhead:0)<=h.modeFrontier))return p;var z=Xe(g.text,null,t.options.tabSize);(c==null||s>z)&&(c=p-1,s=z)}return c}function X6(t,r){if(t.modeFrontier=Math.min(t.modeFrontier,r),!(t.highlightFrontier<r-10)){for(var a=t.first,s=r-1;s>a;s--){var c=be(t,s).stateAfter;if(c&&(!(c instanceof _n)||s+c.lookAhead<r)){a=s+1;break}}t.highlightFrontier=Math.min(t.highlightFrontier,a)}}var ju=!1,ii=!1;function J6(){ju=!0}function Q6(){ii=!0}function Xs(t,r,a){this.marker=t,this.from=r,this.to=a}function Ao(t,r){if(t)for(var a=0;a<t.length;++a){var s=t[a];if(s.marker==r)return s}}function e4(t,r){for(var a,s=0;s<t.length;++s)t[s]!=r&&(a||(a=[])).push(t[s]);return a}function t4(t,r,a){var s=a&&window.WeakSet&&(a.markedSpans||(a.markedSpans=new WeakSet));s&&s.has(t.markedSpans)?t.markedSpans.push(r):(t.markedSpans=t.markedSpans?t.markedSpans.concat([r]):[r],s&&s.add(t.markedSpans)),r.marker.attachLine(t)}function r4(t,r,a){var s;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"&&(!a||!h.marker.insertLeft)){var g=h.to==null||(f.inclusiveRight?h.to>=r:h.to>r);(s||(s=[])).push(new Xs(f,h.from,g?null:h.to))}}return s}function i4(t,r,a){var s;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"&&(!a||h.marker.insertLeft)){var g=h.from==null||(f.inclusiveLeft?h.from<=r:h.from<r);(s||(s=[])).push(new Xs(f,g?null:h.from-r,h.to==null?null:h.to-r))}}return s}function r1(t,r){if(r.full)return null;var a=Ui(t,r.from.line)&&be(t,r.from.line).markedSpans,s=Ui(t,r.to.line)&&be(t,r.to.line).markedSpans;if(!a&&!s)return null;var c=r.from.ch,h=r.to.ch,f=C(r.from,r.to)==0,p=r4(a,c,f),g=i4(s,h,f),m=r.text.length==1,z=_e(r.text).length+(m?c:0);if(p)for(var S=0;S<p.length;++S){var P=p[S];if(P.to==null){var I=Ao(g,P.marker);I?m&&(P.to=I.to==null?null:I.to+z):P.to=c}}if(g)for(var Z=0;Z<g.length;++Z){var q=g[Z];if(q.to!=null&&(q.to+=z),q.from==null){var te=Ao(p,q.marker);te||(q.from=z,m&&(p||(p=[])).push(q))}else q.from+=z,m&&(p||(p=[])).push(q)}p&&(p=Gu(p)),g&&g!=p&&(g=Gu(g));var se=[p];if(!m){var he=r.text.length-2,ae;if(he>0&&p)for(var pe=0;pe<p.length;++pe)p[pe].to==null&&(ae||(ae=[])).push(new Xs(p[pe].marker,null,null));for(var Le=0;Le<he;++Le)se.push(ae);se.push(g)}return se}function Gu(t){for(var r=0;r<t.length;++r){var a=t[r];a.from!=null&&a.from==a.to&&a.marker.clearWhenEmpty!==!1&&t.splice(r--,1)}return t.length?t:null}function n4(t,r,a){var s=null;if(t.iter(r.line,a.line+1,function(I){if(I.markedSpans)for(var Z=0;Z<I.markedSpans.length;++Z){var q=I.markedSpans[Z].marker;q.readOnly&&(!s||ge(s,q)==-1)&&(s||(s=[])).push(q)}}),!s)return null;for(var c=[{from:r,to:a}],h=0;h<s.length;++h)for(var f=s[h],p=f.find(0),g=0;g<c.length;++g){var m=c[g];if(!(C(m.to,p.from)<0||C(m.from,p.to)>0)){var z=[g,1],S=C(m.from,p.from),P=C(m.to,p.to);(S<0||!f.inclusiveLeft&&!S)&&z.push({from:m.from,to:p.from}),(P>0||!f.inclusiveRight&&!P)&&z.push({from:p.to,to:m.to}),c.splice.apply(c,z),g+=z.length-3}}return c}function qu(t){var r=t.markedSpans;if(r){for(var a=0;a<r.length;++a)r[a].marker.detachLine(t);t.markedSpans=null}}function Ku(t,r){if(r){for(var a=0;a<r.length;++a)r[a].marker.attachLine(t);t.markedSpans=r}}function Js(t){return t.inclusiveLeft?-1:0}function Qs(t){return t.inclusiveRight?1:0}function i1(t,r){var a=t.lines.length-r.lines.length;if(a!=0)return a;var s=t.find(),c=r.find(),h=C(s.from,c.from)||Js(t)-Js(r);if(h)return-h;var f=C(s.to,c.to)||Qs(t)-Qs(r);return f||r.id-t.id}function Yu(t,r){var a=ii&&t.markedSpans,s;if(a)for(var c=void 0,h=0;h<a.length;++h)c=a[h],c.marker.collapsed&&(r?c.from:c.to)==null&&(!s||i1(s,c.marker)<0)&&(s=c.marker);return s}function Xu(t){return Yu(t,!0)}function ea(t){return Yu(t,!1)}function o4(t,r){var a=ii&&t.markedSpans,s;if(a)for(var c=0;c<a.length;++c){var h=a[c];h.marker.collapsed&&(h.from==null||h.from<r)&&(h.to==null||h.to>r)&&(!s||i1(s,h.marker)<0)&&(s=h.marker)}return s}function Ju(t,r,a,s,c){var h=be(t,r),f=ii&&h.markedSpans;if(f)for(var p=0;p<f.length;++p){var g=f[p];if(g.marker.collapsed){var m=g.marker.find(0),z=C(m.from,a)||Js(g.marker)-Js(c),S=C(m.to,s)||Qs(g.marker)-Qs(c);if(!(z>=0&&S<=0||z<=0&&S>=0)&&(z<=0&&(g.marker.inclusiveRight&&c.inclusiveLeft?C(m.to,a)>=0:C(m.to,a)>0)||z>=0&&(g.marker.inclusiveRight&&c.inclusiveLeft?C(m.from,s)<=0:C(m.from,s)<0)))return!0}}}function Zr(t){for(var r;r=Xu(t);)t=r.find(-1,!0).line;return t}function s4(t){for(var r;r=ea(t);)t=r.find(1,!0).line;return t}function a4(t){for(var r,a;r=ea(t);)t=r.find(1,!0).line,(a||(a=[])).push(t);return a}function n1(t,r){var a=be(t,r),s=Zr(a);return a==s?r:je(s)}function Qu(t,r){if(r>t.lastLine())return r;var a=be(t,r),s;if(!xi(t,a))return r;for(;s=ea(a);)a=s.find(1,!0).line;return je(a)+1}function xi(t,r){var a=ii&&r.markedSpans;if(a){for(var s=void 0,c=0;c<a.length;++c)if(s=a[c],!!s.marker.collapsed){if(s.from==null)return!0;if(!s.marker.widgetNode&&s.from==0&&s.marker.inclusiveLeft&&o1(t,r,s))return!0}}}function o1(t,r,a){if(a.to==null){var s=a.marker.find(1,!0);return o1(t,s.line,Ao(s.line.markedSpans,a.marker))}if(a.marker.inclusiveRight&&a.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==a.to&&(c.to==null||c.to!=a.from)&&(c.marker.inclusiveLeft||a.marker.inclusiveRight)&&o1(t,r,c))return!0}function ni(t){t=Zr(t);for(var r=0,a=t.parent,s=0;s<a.lines.length;++s){var c=a.lines[s];if(c==t)break;r+=c.height}for(var h=a.parent;h;a=h,h=a.parent)for(var f=0;f<h.children.length;++f){var p=h.children[f];if(p==a)break;r+=p.height}return r}function ta(t){if(t.height==0)return 0;for(var r=t.text.length,a,s=t;a=Xu(s);){var c=a.find(0,!0);s=c.from.line,r+=c.from.ch-c.to.ch}for(s=t;a=ea(s);){var h=a.find(0,!0);r-=s.text.length-h.from.ch,s=h.to.line,r+=s.text.length-h.to.ch}return r}function s1(t){var r=t.display,a=t.doc;r.maxLine=be(a,a.first),r.maxLineLength=ta(r.maxLine),r.maxLineChanged=!0,a.iter(function(s){var c=ta(s);c>r.maxLineLength&&(r.maxLineLength=c,r.maxLine=s)})}var In=function(t,r,a){this.text=t,Ku(this,r),this.height=a?a(this):1};In.prototype.lineNo=function(){return je(this)},Hr(In);function l4(t,r,a,s){t.text=r,t.stateAfter&&(t.stateAfter=null),t.styles&&(t.styles=null),t.order!=null&&(t.order=null),qu(t),Ku(t,a);var c=s?s(t):1;c!=t.height&&Yt(t,c)}function c4(t){t.parent=null,qu(t)}var u4={},d4={};function e0(t,r){if(!t||/^\s*$/.test(t))return null;var a=r.addModeClass?d4:u4;return a[t]||(a[t]=t.replace(/\S+/g,"cm-$&"))}function t0(t,r){var a=w("span",null,null,M?"padding-right: .1px":null),s={pre:w("pre",[a],"CodeMirror-line"),content:a,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;s.pos=0,s.addToken=f4,Rr(t.display.measure)&&(f=Kt(h,t.doc.direction))&&(s.addToken=g4(s.addToken,f)),s.map=[];var p=r!=t.display.externalMeasured&&je(h);v4(h,s,Fu(t,h,p)),h.styleClasses&&(h.styleClasses.bgClass&&(s.bgClass=Re(h.styleClasses.bgClass,s.bgClass||"")),h.styleClasses.textClass&&(s.textClass=Re(h.styleClasses.textClass,s.textClass||""))),s.map.length==0&&s.map.push(0,0,s.content.appendChild(Gs(t.display.measure))),c==0?(r.measure.map=s.map,r.measure.cache={}):((r.measure.maps||(r.measure.maps=[])).push(s.map),(r.measure.caches||(r.measure.caches=[])).push({}))}if(M){var g=s.content.lastChild;(/\bcm-tab\b/.test(g.className)||g.querySelector&&g.querySelector(".cm-tab"))&&(s.content.className="cm-tab-wrap-hack")}return Oe(t,"renderLine",t,r.line,s.pre),s.pre.className&&(s.textClass=Re(s.pre.className,s.textClass||"")),s}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,a,s,c,h,f){if(r){var p=t.splitSpaces?p4(r,t.trailingSpace):r,g=t.cm.state.specialChars,m=!1,z;if(!g.test(r))t.col+=r.length,z=document.createTextNode(p),t.map.push(t.pos,t.pos+r.length,z),y&&b<9&&(m=!0),t.pos+=r.length;else{z=document.createDocumentFragment();for(var S=0;;){g.lastIndex=S;var P=g.exec(r),I=P?P.index-S:r.length-S;if(I){var Z=document.createTextNode(p.slice(S,S+I));y&&b<9?z.appendChild(x("span",[Z])):z.appendChild(Z),t.map.push(t.pos,t.pos+I,Z),t.col+=I,t.pos+=I}if(!P)break;S+=I+1;var q=void 0;if(P[0]==" "){var te=t.cm.options.tabSize,se=te-t.col%te;q=z.appendChild(x("span",ir(se),"cm-tab")),q.setAttribute("role","presentation"),q.setAttribute("cm-text"," "),t.col+=se}else P[0]=="\r"||P[0]==`
2983
+ `?(q=z.appendChild(x("span",P[0]=="\r"?"␍":"␤","cm-invalidchar")),q.setAttribute("cm-text",P[0]),t.col+=1):(q=t.cm.options.specialCharPlaceholder(P[0]),q.setAttribute("cm-text",P[0]),y&&b<9?z.appendChild(x("span",[q])):z.appendChild(q),t.col+=1);t.map.push(t.pos,t.pos+1,q),t.pos++}}if(t.trailingSpace=p.charCodeAt(r.length-1)==32,a||s||c||m||h||f){var he=a||"";s&&(he+=s),c&&(he+=c);var ae=x("span",[z],he,h);if(f)for(var pe in f)f.hasOwnProperty(pe)&&pe!="style"&&pe!="class"&&ae.setAttribute(pe,f[pe]);return t.content.appendChild(ae)}t.content.appendChild(z)}}function p4(t,r){if(t.length>1&&!/ /.test(t))return t;for(var a=r,s="",c=0;c<t.length;c++){var h=t.charAt(c);h==" "&&a&&(c==t.length-1||t.charCodeAt(c+1)==32)&&(h=" "),s+=h,a=h==" "}return s}function g4(t,r){return function(a,s,c,h,f,p,g){c=c?c+" cm-force-border":"cm-force-border";for(var m=a.pos,z=m+s.length;;){for(var S=void 0,P=0;P<r.length&&(S=r[P],!(S.to>m&&S.from<=m));P++);if(S.to>=z)return t(a,s,c,h,f,p,g);t(a,s.slice(0,S.to-m),c,h,null,p,g),h=null,s=s.slice(S.to-m),m=S.to}}}function r0(t,r,a,s){var c=!s&&a.widgetNode;c&&t.map.push(t.pos,t.pos+r,c),!s&&t.cm.display.input.needsContentAttribute&&(c||(c=t.content.appendChild(document.createElement("span"))),c.setAttribute("cm-marker",a.id)),c&&(t.cm.display.input.setUneditable(c),t.content.appendChild(c)),t.pos+=r,t.trailingSpace=!1}function v4(t,r,a){var s=t.markedSpans,c=t.text,h=0;if(!s){for(var f=1;f<a.length;f+=2)r.addToken(r,c.slice(h,h=a[f]),e0(a[f+1],r.cm.options));return}for(var p=c.length,g=0,m=1,z="",S,P,I=0,Z,q,te,se,he;;){if(I==g){Z=q=te=P="",he=null,se=null,I=1/0;for(var ae=[],pe=void 0,Le=0;Le<s.length;++Le){var xe=s[Le],Pe=xe.marker;if(Pe.type=="bookmark"&&xe.from==g&&Pe.widgetNode)ae.push(Pe);else if(xe.from<=g&&(xe.to==null||xe.to>g||Pe.collapsed&&xe.to==g&&xe.from==g)){if(xe.to!=null&&xe.to!=g&&I>xe.to&&(I=xe.to,q=""),Pe.className&&(Z+=" "+Pe.className),Pe.css&&(P=(P?P+";":"")+Pe.css),Pe.startStyle&&xe.from==g&&(te+=" "+Pe.startStyle),Pe.endStyle&&xe.to==I&&(pe||(pe=[])).push(Pe.endStyle,xe.to),Pe.title&&((he||(he={})).title=Pe.title),Pe.attributes)for(var Je in Pe.attributes)(he||(he={}))[Je]=Pe.attributes[Je];Pe.collapsed&&(!se||i1(se.marker,Pe)<0)&&(se=xe)}else xe.from>g&&I>xe.from&&(I=xe.from)}if(pe)for(var Lt=0;Lt<pe.length;Lt+=2)pe[Lt+1]==I&&(q+=" "+pe[Lt]);if(!se||se.from==g)for(var nt=0;nt<ae.length;++nt)r0(r,0,ae[nt]);if(se&&(se.from||0)==g){if(r0(r,(se.to==null?p+1:se.to)-g,se.marker,se.from==null),se.to==null)return;se.to==g&&(se=!1)}}if(g>=p)break;for(var Jt=Math.min(p,I);;){if(z){var Wt=g+z.length;if(!se){var pt=Wt>Jt?z.slice(0,Jt-g):z;r.addToken(r,pt,S?S+Z:Z,te,g+pt.length==I?q:"",P,he)}if(Wt>=Jt){z=z.slice(Jt-g),g=Jt;break}g=Wt,te=""}z=c.slice(h,h=a[m++]),S=e0(a[m++],r.cm.options)}}}function i0(t,r,a){this.line=r,this.rest=a4(r),this.size=this.rest?je(_e(this.rest))-a+1:1,this.node=this.text=null,this.hidden=xi(t,r)}function ra(t,r,a){for(var s=[],c,h=r;h<a;h=c){var f=new i0(t.doc,be(t.doc,h),h);c=h+f.size,s.push(f)}return s}var An=null;function b4(t){An?An.ops.push(t):t.ownsGroup=An={ops:[t],delayedCallbacks:[]}}function m4(t){var r=t.delayedCallbacks,a=0;do{for(;a<r.length;a++)r[a].call(null);for(var s=0;s<t.ops.length;s++){var c=t.ops[s];if(c.cursorActivityHandlers)for(;c.cursorActivityCalled<c.cursorActivityHandlers.length;)c.cursorActivityHandlers[c.cursorActivityCalled++].call(null,c.cm)}}while(a<r.length)}function y4(t,r){var a=t.ownsGroup;if(a)try{m4(a)}finally{An=null,r(a)}}var Po=null;function wt(t,r){var a=Tn(t,r);if(a.length){var s=Array.prototype.slice.call(arguments,2),c;An?c=An.delayedCallbacks:Po?c=Po:(c=Po=[],setTimeout(C4,0));for(var h=function(p){c.push(function(){return a[p].apply(null,s)})},f=0;f<a.length;++f)h(f)}}function C4(){var t=Po;Po=null;for(var r=0;r<t.length;++r)t[r]()}function n0(t,r,a,s){for(var c=0;c<r.changes.length;c++){var h=r.changes[c];h=="text"?x4(t,r):h=="gutter"?s0(t,r,a,s):h=="class"?a1(t,r):h=="widget"&&z4(t,r,s)}r.changes=null}function Do(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),y&&b<8&&(t.node.style.zIndex=2)),t.node}function w4(t,r){var a=r.bgClass?r.bgClass+" "+(r.line.bgClass||""):r.line.bgClass;if(a&&(a+=" CodeMirror-linebackground"),r.background)a?r.background.className=a:(r.background.parentNode.removeChild(r.background),r.background=null);else if(a){var s=Do(r);r.background=s.insertBefore(x("div",null,a),s.firstChild),t.display.input.setUneditable(r.background)}}function o0(t,r){var a=t.display.externalMeasured;return a&&a.line==r.line?(t.display.externalMeasured=null,r.measure=a.measure,a.built):t0(t,r)}function x4(t,r){var a=r.text.className,s=o0(t,r);r.text==r.node&&(r.node=s.pre),r.text.parentNode.replaceChild(s.pre,r.text),r.text=s.pre,s.bgClass!=r.bgClass||s.textClass!=r.textClass?(r.bgClass=s.bgClass,r.textClass=s.textClass,a1(t,r)):a&&(r.text.className=a)}function a1(t,r){w4(t,r),r.line.wrapClass?Do(r).className=r.line.wrapClass:r.node!=r.text&&(r.node.className="");var a=r.textClass?r.textClass+" "+(r.line.textClass||""):r.line.textClass;r.text.className=a||""}function s0(t,r,a,s){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=Do(r);r.gutterBackground=x("div",null,"CodeMirror-gutter-background "+r.line.gutterClass,"left: "+(t.options.fixedGutter?s.fixedPos:-s.gutterTotalWidth)+"px; width: "+s.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=Do(r),p=r.gutter=x("div",null,"CodeMirror-gutter-wrapper","left: "+(t.options.fixedGutter?s.fixedPos:-s.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",_o(t.options,a),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+s.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+t.display.lineNumInnerWidth+"px"))),h)for(var g=0;g<t.display.gutterSpecs.length;++g){var m=t.display.gutterSpecs[g].className,z=h.hasOwnProperty(m)&&h[m];z&&p.appendChild(x("div",[z],"CodeMirror-gutter-elt","left: "+s.gutterLeft[m]+"px; width: "+s.gutterWidth[m]+"px"))}}}function z4(t,r,a){r.alignable&&(r.alignable=null);for(var s=ie("CodeMirror-linewidget"),c=r.node.firstChild,h=void 0;c;c=h)h=c.nextSibling,s.test(c.className)&&r.node.removeChild(c);a0(t,r,a)}function L4(t,r,a,s){var c=o0(t,r);return r.text=r.node=c.pre,c.bgClass&&(r.bgClass=c.bgClass),c.textClass&&(r.textClass=c.textClass),a1(t,r),s0(t,r,a,s),a0(t,r,s),r.node}function a0(t,r,a){if(l0(t,r.line,r,a,!0),r.rest)for(var s=0;s<r.rest.length;s++)l0(t,r.rest[s],r,a,!1)}function l0(t,r,a,s,c){if(r.widgets)for(var h=Do(a),f=0,p=r.widgets;f<p.length;++f){var g=p[f],m=x("div",[g.node],"CodeMirror-linewidget"+(g.className?" "+g.className:""));g.handleMouseEvents||m.setAttribute("cm-ignore-events","true"),S4(g,m,a,s),t.display.input.setUneditable(m),c&&g.above?h.insertBefore(m,a.gutter||a.text):h.appendChild(m),wt(g,"redraw")}}function S4(t,r,a,s){if(t.noHScroll){(a.alignable||(a.alignable=[])).push(r);var c=s.wrapperWidth;r.style.left=s.fixedPos+"px",t.coverGutter||(c-=s.gutterTotalWidth,r.style.paddingLeft=s.gutterTotalWidth+"px"),r.style.width=c+"px"}t.coverGutter&&(r.style.zIndex=5,r.style.position="relative",t.noHScroll||(r.style.marginLeft=-s.gutterTotalWidth+"px"))}function No(t){if(t.height!=null)return t.height;var r=t.doc.cm;if(!r)return 0;if(!ne(document.body,t.node)){var a="position: relative;";t.coverGutter&&(a+="margin-left: -"+r.display.gutters.offsetWidth+"px;"),t.noHScroll&&(a+="width: "+r.display.wrapper.clientWidth+"px;"),O(r.display.measure,x("div",[t.node],null,a))}return t.height=t.node.parentNode.offsetHeight}function oi(t,r){for(var a=Ci(r);a!=t.wrapper;a=a.parentNode)if(!a||a.nodeType==1&&a.getAttribute("cm-ignore-events")=="true"||a.parentNode==t.sizer&&a!=t.mover)return!0}function ia(t){return t.lineSpace.offsetTop}function l1(t){return t.mover.offsetHeight-t.lineSpace.offsetHeight}function c0(t){if(t.cachedPaddingH)return t.cachedPaddingH;var r=O(t.measure,x("pre","x","CodeMirror-line-like")),a=window.getComputedStyle?window.getComputedStyle(r):r.currentStyle,s={left:parseInt(a.paddingLeft),right:parseInt(a.paddingRight)};return!isNaN(s.left)&&!isNaN(s.right)&&(t.cachedPaddingH=s),s}function Wr(t){return ve-t.display.nativeBarWidth}function ji(t){return t.display.scroller.clientWidth-Wr(t)-t.display.barWidth}function c1(t){return t.display.scroller.clientHeight-Wr(t)-t.display.barHeight}function M4(t,r,a){var s=t.options.lineWrapping,c=s&&ji(t);if(!r.measure.heights||s&&r.measure.width!=c){var h=r.measure.heights=[];if(s){r.measure.width=c;for(var f=r.text.firstChild.getClientRects(),p=0;p<f.length-1;p++){var g=f[p],m=f[p+1];Math.abs(g.bottom-m.bottom)>2&&h.push((g.bottom+m.top)/2-a.top)}}h.push(a.bottom-a.top)}}function u0(t,r,a){if(t.line==r)return{map:t.measure.map,cache:t.measure.cache};for(var s=0;s<t.rest.length;s++)if(t.rest[s]==r)return{map:t.measure.maps[s],cache:t.measure.caches[s]};for(var c=0;c<t.rest.length;c++)if(je(t.rest[c])>a)return{map:t.measure.maps[c],cache:t.measure.caches[c],before:!0}}function T4(t,r){r=Zr(r);var a=je(r),s=t.display.externalMeasured=new i0(t.doc,r,a);s.lineN=a;var c=s.built=t0(t,s);return s.text=c.pre,O(t.display.lineMeasure,c.pre),s}function d0(t,r,a,s){return Ur(t,Pn(t,r),a,s)}function u1(t,r){if(r>=t.display.viewFrom&&r<t.display.viewTo)return t.display.view[Ki(t,r)];var a=t.display.externalMeasured;if(a&&r>=a.lineN&&r<a.lineN+a.size)return a}function Pn(t,r){var a=je(r),s=u1(t,a);s&&!s.text?s=null:s&&s.changes&&(n0(t,s,a,g1(t)),t.curOp.forceUpdate=!0),s||(s=T4(t,r));var c=u0(s,r,a);return{line:r,view:s,rect:null,map:c.map,cache:c.cache,before:c.before,hasHeights:!1}}function Ur(t,r,a,s,c){r.before&&(a=-1);var h=a+(s||""),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=O4(t,r,a,s),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 h0={left:0,right:0,top:0,bottom:0};function f0(t,r,a){for(var s,c,h,f,p,g,m=0;m<t.length;m+=3)if(p=t[m],g=t[m+1],r<p?(c=0,h=1,f="left"):r<g?(c=r-p,h=c+1):(m==t.length-3||r==g&&t[m+3]>r)&&(h=g-p,c=h-1,r>=g&&(f="right")),c!=null){if(s=t[m+2],p==g&&a==(s.insertLeft?"left":"right")&&(f=a),a=="left"&&c==0)for(;m&&t[m-2]==t[m-3]&&t[m-1].insertLeft;)s=t[(m-=3)+2],f="left";if(a=="right"&&c==g-p)for(;m<t.length-3&&t[m+3]==t[m+4]&&!t[m+5].insertLeft;)s=t[(m+=3)+2],f="right";break}return{node:s,start:c,end:h,collapse:f,coverStart:p,coverEnd:g}}function k4(t,r){var a=h0;if(r=="left")for(var s=0;s<t.length&&(a=t[s]).left==a.right;s++);else for(var c=t.length-1;c>=0&&(a=t[c]).left==a.right;c--);return a}function O4(t,r,a,s){var c=f0(r.map,a,s),h=c.node,f=c.start,p=c.end,g=c.collapse,m;if(h.nodeType==3){for(var z=0;z<4;z++){for(;f&&Ne(r.line.text.charAt(c.coverStart+f));)--f;for(;c.coverStart+p<c.coverEnd&&Ne(r.line.text.charAt(c.coverStart+p));)++p;if(y&&b<9&&f==0&&p==c.coverEnd-c.coverStart?m=h.parentNode.getBoundingClientRect():m=k4(U(h,f,p).getClientRects(),s),m.left||m.right||f==0)break;p=f,f=f-1,g="right"}y&&b<11&&(m=$4(t.display.measure,m))}else{f>0&&(g=s="right");var S;t.options.lineWrapping&&(S=h.getClientRects()).length>1?m=S[s=="right"?S.length-1:0]:m=h.getBoundingClientRect()}if(y&&b<9&&!f&&(!m||!m.left&&!m.right)){var P=h.parentNode.getClientRects()[0];P?m={left:P.left,right:P.left+Nn(t.display),top:P.top,bottom:P.bottom}:m=h0}for(var I=m.top-r.rect.top,Z=m.bottom-r.rect.top,q=(I+Z)/2,te=r.view.measure.heights,se=0;se<te.length-1&&!(q<te[se]);se++);var he=se?te[se-1]:0,ae=te[se],pe={left:(g=="right"?m.right:m.left)-r.rect.left,right:(g=="left"?m.left:m.right)-r.rect.left,top:he,bottom:ae};return!m.left&&!m.right&&(pe.bogus=!0),t.options.singleCursorHeightPerLine||(pe.rtop=I,pe.rbottom=Z),pe}function $4(t,r){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!wi(t))return r;var a=screen.logicalXDPI/screen.deviceXDPI,s=screen.logicalYDPI/screen.deviceYDPI;return{left:r.left*a,right:r.right*a,top:r.top*s,bottom:r.bottom*s}}function p0(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 g0(t){t.display.externalMeasure=null,V(t.display.lineMeasure);for(var r=0;r<t.display.view.length;r++)p0(t.display.view[r])}function Ho(t){g0(t),t.display.cachedCharWidth=t.display.cachedTextHeight=t.display.cachedPaddingH=null,t.options.lineWrapping||(t.display.maxLineChanged=!0),t.display.lineNumChars=null}function v0(){return T&&D?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function b0(){return T&&D?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function d1(t){var r=0;if(t.widgets)for(var a=0;a<t.widgets.length;++a)t.widgets[a].above&&(r+=No(t.widgets[a]));return r}function na(t,r,a,s,c){if(!c){var h=d1(r);a.top+=h,a.bottom+=h}if(s=="line")return a;s||(s="local");var f=ni(r);if(s=="local"?f+=ia(t.display):f-=t.display.viewOffset,s=="page"||s=="window"){var p=t.display.lineSpace.getBoundingClientRect();f+=p.top+(s=="window"?0:b0());var g=p.left+(s=="window"?0:v0());a.left+=g,a.right+=g}return a.top+=f,a.bottom+=f,a}function m0(t,r,a){if(a=="div")return r;var s=r.left,c=r.top;if(a=="page")s-=v0(),c-=b0();else if(a=="local"||!a){var h=t.display.sizer.getBoundingClientRect();s+=h.left,c+=h.top}var f=t.display.lineSpace.getBoundingClientRect();return{left:s-f.left,top:c-f.top}}function oa(t,r,a,s,c){return s||(s=be(t.doc,r.line)),na(t,s,d0(t,s,r.ch,c),a)}function wr(t,r,a,s,c,h){s=s||be(t.doc,r.line),c||(c=Pn(t,s));function f(Z,q){var te=Ur(t,c,Z,q?"right":"left",h);return q?te.left=te.right:te.right=te.left,na(t,s,te,a)}var p=Kt(s,t.doc.direction),g=r.ch,m=r.sticky;if(g>=s.text.length?(g=s.text.length,m="before"):g<=0&&(g=0,m="after"),!p)return f(m=="before"?g-1:g,m=="before");function z(Z,q,te){var se=p[q],he=se.level==1;return f(te?Z-1:Z,he!=te)}var S=st(p,g,m),P=nr,I=z(g,S,m=="before");return P!=null&&(I.other=z(g,P,m!="before")),I}function y0(t,r){var a=0;r=de(t.doc,r),t.options.lineWrapping||(a=Nn(t.display)*r.ch);var s=be(t.doc,r.line),c=ni(s)+ia(t.display);return{left:a,right:a,top:c,bottom:c+s.height}}function h1(t,r,a,s,c){var h=J(t,r,a);return h.xRel=c,s&&(h.outside=s),h}function f1(t,r,a){var s=t.doc;if(a+=t.display.viewOffset,a<0)return h1(s.first,0,null,-1,-1);var c=Br(s,a),h=s.first+s.size-1;if(c>h)return h1(s.first+s.size-1,be(s,h).text.length,null,1,1);r<0&&(r=0);for(var f=be(s,c);;){var p=E4(t,f,c,r,a),g=o4(f,p.ch+(p.xRel>0||p.outside>0?1:0));if(!g)return p;var m=g.find(1);if(m.line==c)return m;f=be(s,c=m.line)}}function C0(t,r,a,s){s-=d1(r);var c=r.text.length,h=Nr(function(f){return Ur(t,a,f-1).bottom<=s},c,0);return c=Nr(function(f){return Ur(t,a,f).top>s},h,c),{begin:h,end:c}}function w0(t,r,a,s){a||(a=Pn(t,r));var c=na(t,r,Ur(t,a,s),"line").top;return C0(t,r,a,c)}function p1(t,r,a,s){return t.bottom<=a?!1:t.top>a?!0:(s?t.left:t.right)>r}function E4(t,r,a,s,c){c-=ni(r);var h=Pn(t,r),f=d1(r),p=0,g=r.text.length,m=!0,z=Kt(r,t.doc.direction);if(z){var S=(t.options.lineWrapping?I4:_4)(t,r,a,h,z,s,c);m=S.level!=1,p=m?S.from:S.to-1,g=m?S.to:S.from-1}var P=null,I=null,Z=Nr(function(Le){var xe=Ur(t,h,Le);return xe.top+=f,xe.bottom+=f,p1(xe,s,c,!1)?(xe.top<=c&&xe.left<=s&&(P=Le,I=xe),!0):!1},p,g),q,te,se=!1;if(I){var he=s-I.left<I.right-s,ae=he==m;Z=P+(ae?0:1),te=ae?"after":"before",q=he?I.left:I.right}else{!m&&(Z==g||Z==p)&&Z++,te=Z==0?"after":Z==r.text.length?"before":Ur(t,h,Z-(m?1:0)).bottom+f<=c==m?"after":"before";var pe=wr(t,J(a,Z,te),"line",r,h);q=pe.left,se=c<pe.top?-1:c>=pe.bottom?1:0}return Z=Dt(r.text,Z,1),h1(a,Z,te,se,s-q)}function _4(t,r,a,s,c,h,f){var p=Nr(function(S){var P=c[S],I=P.level!=1;return p1(wr(t,J(a,I?P.to:P.from,I?"before":"after"),"line",r,s),h,f,!0)},0,c.length-1),g=c[p];if(p>0){var m=g.level!=1,z=wr(t,J(a,m?g.from:g.to,m?"after":"before"),"line",r,s);p1(z,h,f,!0)&&z.top>f&&(g=c[p-1])}return g}function I4(t,r,a,s,c,h,f){var p=C0(t,r,s,f),g=p.begin,m=p.end;/\s/.test(r.text.charAt(m-1))&&m--;for(var z=null,S=null,P=0;P<c.length;P++){var I=c[P];if(!(I.from>=m||I.to<=g)){var Z=I.level!=1,q=Ur(t,s,Z?Math.min(m,I.to)-1:Math.max(g,I.from)).right,te=q<h?h-q+1e9:q-h;(!z||S>te)&&(z=I,S=te)}}return z||(z=c[c.length-1]),z.from<g&&(z={from:g,to:z.to,level:z.level}),z.to>m&&(z={from:z.from,to:m,level:z.level}),z}var Gi;function Dn(t){if(t.cachedTextHeight!=null)return t.cachedTextHeight;if(Gi==null){Gi=x("pre",null,"CodeMirror-line-like");for(var r=0;r<49;++r)Gi.appendChild(document.createTextNode("x")),Gi.appendChild(x("br"));Gi.appendChild(document.createTextNode("x"))}O(t.measure,Gi);var a=Gi.offsetHeight/50;return a>3&&(t.cachedTextHeight=a),V(t.measure),a||1}function Nn(t){if(t.cachedCharWidth!=null)return t.cachedCharWidth;var r=x("span","xxxxxxxxxx"),a=x("pre",[r],"CodeMirror-line-like");O(t.measure,a);var s=r.getBoundingClientRect(),c=(s.right-s.left)/10;return c>2&&(t.cachedCharWidth=c),c||10}function g1(t){for(var r=t.display,a={},s={},c=r.gutters.clientLeft,h=r.gutters.firstChild,f=0;h;h=h.nextSibling,++f){var p=t.display.gutterSpecs[f].className;a[p]=h.offsetLeft+h.clientLeft+c,s[p]=h.clientWidth}return{fixedPos:v1(r),gutterTotalWidth:r.gutters.offsetWidth,gutterLeft:a,gutterWidth:s,wrapperWidth:r.wrapper.clientWidth}}function v1(t){return t.scroller.getBoundingClientRect().left-t.sizer.getBoundingClientRect().left}function x0(t){var r=Dn(t.display),a=t.options.lineWrapping,s=a&&Math.max(5,t.display.scroller.clientWidth/Nn(t.display)-3);return function(c){if(xi(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 a?h+(Math.ceil(c.text.length/s)||1)*r:h+r}}function b1(t){var r=t.doc,a=x0(t);r.iter(function(s){var c=a(s);c!=s.height&&Yt(s,c)})}function qi(t,r,a,s){var c=t.display;if(!a&&Ci(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=f1(t,h,f),m;if(s&&g.xRel>0&&(m=be(t.doc,g.line).text).length==g.ch){var z=Xe(m,m.length,t.options.tabSize)-m.length;g=J(g.line,Math.max(0,Math.round((h-c0(t.display).left)/Nn(t.display))-z))}return g}function Ki(t,r){if(r>=t.display.viewTo||(r-=t.display.viewFrom,r<0))return null;for(var a=t.display.view,s=0;s<a.length;s++)if(r-=a[s].size,r<0)return s}function Vt(t,r,a,s){r==null&&(r=t.doc.first),a==null&&(a=t.doc.first+t.doc.size),s||(s=0);var c=t.display;if(s&&a<c.viewTo&&(c.updateLineNumbers==null||c.updateLineNumbers>r)&&(c.updateLineNumbers=r),t.curOp.viewChanged=!0,r>=c.viewTo)ii&&n1(t.doc,r)<c.viewTo&&Li(t);else if(a<=c.viewFrom)ii&&Qu(t.doc,a+s)>c.viewFrom?Li(t):(c.viewFrom+=s,c.viewTo+=s);else if(r<=c.viewFrom&&a>=c.viewTo)Li(t);else if(r<=c.viewFrom){var h=sa(t,a,a+s,1);h?(c.view=c.view.slice(h.index),c.viewFrom=h.lineN,c.viewTo+=s):Li(t)}else if(a>=c.viewTo){var f=sa(t,r,r,-1);f?(c.view=c.view.slice(0,f.index),c.viewTo=f.lineN):Li(t)}else{var p=sa(t,r,r,-1),g=sa(t,a,a+s,1);p&&g?(c.view=c.view.slice(0,p.index).concat(ra(t,p.lineN,g.lineN)).concat(c.view.slice(g.index)),c.viewTo+=s):Li(t)}var m=c.externalMeasured;m&&(a<m.lineN?m.lineN+=s:r<m.lineN+m.size&&(c.externalMeasured=null))}function zi(t,r,a){t.curOp.viewChanged=!0;var s=t.display,c=t.display.externalMeasured;if(c&&r>=c.lineN&&r<c.lineN+c.size&&(s.externalMeasured=null),!(r<s.viewFrom||r>=s.viewTo)){var h=s.view[Ki(t,r)];if(h.node!=null){var f=h.changes||(h.changes=[]);ge(f,a)==-1&&f.push(a)}}}function Li(t){t.display.viewFrom=t.display.viewTo=t.doc.first,t.display.view=[],t.display.viewOffset=0}function sa(t,r,a,s){var c=Ki(t,r),h,f=t.display.view;if(!ii||a==t.doc.first+t.doc.size)return{index:c,lineN:a};for(var p=t.display.viewFrom,g=0;g<c;g++)p+=f[g].size;if(p!=r){if(s>0){if(c==f.length-1)return null;h=p+f[c].size-r,c++}else h=p-r;r+=h,a+=h}for(;n1(t.doc,a)!=a;){if(c==(s<0?0:f.length-1))return null;a+=s*f[c-(s<0?1:0)].size,c+=s}return{index:c,lineN:a}}function A4(t,r,a){var s=t.display,c=s.view;c.length==0||r>=s.viewTo||a<=s.viewFrom?(s.view=ra(t,r,a),s.viewFrom=r):(s.viewFrom>r?s.view=ra(t,r,s.viewFrom).concat(s.view):s.viewFrom<r&&(s.view=s.view.slice(Ki(t,r))),s.viewFrom=r,s.viewTo<a?s.view=s.view.concat(ra(t,s.viewTo,a)):s.viewTo>a&&(s.view=s.view.slice(0,Ki(t,a)))),s.viewTo=a}function z0(t){for(var r=t.display.view,a=0,s=0;s<r.length;s++){var c=r[s];!c.hidden&&(!c.node||c.changes)&&++a}return a}function Ro(t){t.display.input.showSelection(t.display.input.prepareSelection())}function L0(t,r){r===void 0&&(r=!0);for(var a=t.doc,s={},c=s.cursors=document.createDocumentFragment(),h=s.selection=document.createDocumentFragment(),f=0;f<a.sel.ranges.length;f++)if(!(!r&&f==a.sel.primIndex)){var p=a.sel.ranges[f];if(!(p.from().line>=t.display.viewTo||p.to().line<t.display.viewFrom)){var g=p.empty();(g||t.options.showCursorWhenSelecting)&&S0(t,p.head,c),g||P4(t,p,h)}}return s}function S0(t,r,a){var s=wr(t,r,"div",null,null,!t.options.singleCursorHeightPerLine),c=a.appendChild(x("div"," ","CodeMirror-cursor"));if(c.style.left=s.left+"px",c.style.top=s.top+"px",c.style.height=Math.max(0,s.bottom-s.top)*t.options.cursorHeight+"px",/\bcm-fat-cursor\b/.test(t.getWrapperElement().className)){var h=oa(t,r,"div",null,null);c.style.width=Math.max(0,h.right-h.left)+"px"}if(s.other){var f=a.appendChild(x("div"," ","CodeMirror-cursor CodeMirror-secondarycursor"));f.style.display="",f.style.left=s.other.left+"px",f.style.top=s.other.top+"px",f.style.height=(s.other.bottom-s.other.top)*.85+"px"}}function aa(t,r){return t.top-r.top||t.left-r.left}function P4(t,r,a){var s=t.display,c=t.doc,h=document.createDocumentFragment(),f=c0(t.display),p=f.left,g=Math.max(s.sizerWidth,ji(t)-s.sizer.offsetLeft)-f.right,m=c.direction=="ltr";function z(ae,pe,Le,xe){pe<0&&(pe=0),pe=Math.round(pe),xe=Math.round(xe),h.appendChild(x("div",null,"CodeMirror-selected","position: absolute; left: "+ae+`px;
2984
2984
  top: `+pe+"px; width: "+(Le==null?g-ae:Le)+`px;
2985
- height: `+(xe-pe)+"px"))}function S(ae,pe,Le){var xe=be(c,ae),Pe=xe.text.length,Je,Lt;function it(pt,Ut){return oa(t,J(ae,pt),"div",xe,Ut)}function Jt(pt,Ut,kt){var bt=w0(t,xe,null,pt),gt=Ut=="ltr"==(kt=="after")?"left":"right",lt=kt=="after"?bt.begin:bt.end-(/\s/.test(xe.text.charAt(bt.end-1))?2:1);return it(lt,gt)[gt]}var Wt=Kt(xe,c.direction);return Ql(Wt,pe||0,Le==null?Pe:Le,function(pt,Ut,kt,bt){var gt=kt=="ltr",lt=it(pt,gt?"left":"right"),jt=it(Ut-1,gt?"right":"left"),Yi=pe==null&&pt==0,En=Le==null&&Ut==Pe,Pt=bt==0,jr=!Wt||bt==Wt.length-1;if(jt.top-lt.top<=3){var St=(m?Yi:En)&&Pt,Z1=(m?En:Yi)&&jr,ln=St?p:(gt?lt:jt).left,ti=Z1?g:(gt?jt:lt).right;z(ln,lt.top,ti-ln,lt.bottom)}else{var ri,Ht,Xi,W1;gt?(ri=m&&Yi&&Pt?p:lt.left,Ht=m?g:Jt(pt,kt,"before"),Xi=m?p:Jt(Ut,kt,"after"),W1=m&&En&&jr?g:jt.right):(ri=m?Jt(pt,kt,"before"):p,Ht=!m&&Yi&&Pt?g:lt.right,Xi=!m&&En&&jr?p:jt.left,W1=m?Jt(Ut,kt,"after"):g),z(ri,lt.top,Ht-ri,lt.bottom),lt.bottom<jt.top&&z(p,lt.bottom,null,jt.top),z(Xi,jt.top,W1-Xi,jt.bottom)}(!Je||aa(lt,Je)<0)&&(Je=lt),aa(jt,Je)<0&&(Je=jt),(!Lt||aa(lt,Lt)<0)&&(Lt=lt),aa(jt,Lt)<0&&(Lt=jt)}),{start:Je,end:Lt}}var P=r.from(),I=r.to();if(P.line==I.line)S(P.line,P.ch,I.ch);else{var Z=be(c,P.line),q=be(c,I.line),te=Zr(Z)==Zr(q),se=S(P.line,P.ch,te?Z.text.length+1:null).end,he=S(I.line,te?0:null,I.ch).start;te&&(se.top<he.top-2?(z(se.right,se.top,null,se.bottom),z(p,he.top,he.left,he.bottom)):z(se.right,se.top,he.left-se.right,se.bottom)),se.bottom<he.top&&z(p,se.bottom,null,he.top)}a.appendChild(h)}function m1(t){if(t.state.focused){var r=t.display;clearInterval(r.blinker);var a=!0;r.cursorDiv.style.visibility="",t.options.cursorBlinkRate>0?r.blinker=setInterval(function(){t.hasFocus()||Hi(t),r.cursorDiv.style.visibility=(a=!a)?"":"hidden"},t.options.cursorBlinkRate):t.options.cursorBlinkRate<0&&(r.cursorDiv.style.visibility="hidden")}}function M0(t){t.hasFocus()||(t.display.input.focus(),t.state.focused||C1(t))}function y1(t){t.state.delayingBlurEvent=!0,setTimeout(function(){t.state.delayingBlurEvent&&(t.state.delayingBlurEvent=!1,t.state.focused&&Hi(t))},100)}function C1(t,r){t.state.delayingBlurEvent&&!t.state.draggingText&&(t.state.delayingBlurEvent=!1),t.options.readOnly!="nocursor"&&(t.state.focused||(Oe(t,"focus",t,r),t.state.focused=!0,ke(t.display.wrapper,"CodeMirror-focused"),!t.curOp&&t.display.selForContextMenu!=t.doc.sel&&(t.display.input.reset(),M&&setTimeout(function(){return t.display.input.reset(!0)},20)),t.display.input.receivedFocus()),m1(t))}function Hi(t,r){t.state.delayingBlurEvent||(t.state.focused&&(Oe(t,"blur",t,r),t.state.focused=!1,X(t.display.wrapper,"CodeMirror-focused")),clearInterval(t.display.blinker),setTimeout(function(){t.state.focused||(t.display.shift=!1)},150))}function la(t){for(var r=t.display,a=r.lineDiv.offsetTop,s=0;s<r.view.length;s++){var c=r.view[s],h=t.options.lineWrapping,f=void 0,p=0;if(!c.hidden){if(y&&b<8){var g=c.node.offsetTop+c.node.offsetHeight;f=g-a,a=g}else{var m=c.node.getBoundingClientRect();f=m.bottom-m.top,!h&&c.text.firstChild&&(p=c.text.firstChild.getBoundingClientRect().right-m.left-1)}var z=c.line.height-f;if((z>.005||z<-.005)&&(Yt(c.line,f),T0(c.line),c.rest))for(var S=0;S<c.rest.length;S++)T0(c.rest[S]);if(p>t.display.sizerWidth){var P=Math.ceil(p/Ni(t.display));P>t.display.maxLineLength&&(t.display.maxLineLength=P,t.display.maxLine=c.line,t.display.maxLineChanged=!0)}}}}function T0(t){if(t.widgets)for(var r=0;r<t.widgets.length;++r){var a=t.widgets[r],s=a.node.parentNode;s&&(a.height=s.offsetHeight)}}function ca(t,r,a){var s=a&&a.top!=null?Math.max(0,a.top):t.scroller.scrollTop;s=Math.floor(s-na(t));var c=a&&a.bottom!=null?a.bottom:s+t.wrapper.clientHeight,h=Br(r,s),f=Br(r,c);if(a&&a.ensure){var p=a.ensure.from.line,g=a.ensure.to.line;p<h?(h=p,f=Br(r,on(be(r,p))+t.wrapper.clientHeight)):Math.min(g,r.lastLine())>=f&&(h=Br(r,on(be(r,g))-t.wrapper.clientHeight),f=g)}return{from:h,to:Math.max(f,h+1)}}function D4(t,r){if(!ft(t,"scrollCursorIntoView")){var a=t.display,s=a.sizer.getBoundingClientRect(),c=null;if(r.top+s.top<0?c=!0:r.bottom+s.top>(window.innerHeight||document.documentElement.clientHeight)&&(c=!1),c!=null&&!oe){var h=x("div","​",null,`position: absolute;
2986
- top: `+(r.top-a.viewOffset-na(t.display))+`px;
2985
+ height: `+(xe-pe)+"px"))}function S(ae,pe,Le){var xe=be(c,ae),Pe=xe.text.length,Je,Lt;function nt(pt,Ut){return oa(t,J(ae,pt),"div",xe,Ut)}function Jt(pt,Ut,kt){var bt=w0(t,xe,null,pt),gt=Ut=="ltr"==(kt=="after")?"left":"right",lt=kt=="after"?bt.begin:bt.end-(/\s/.test(xe.text.charAt(bt.end-1))?2:1);return nt(lt,gt)[gt]}var Wt=Kt(xe,c.direction);return Ql(Wt,pe||0,Le==null?Pe:Le,function(pt,Ut,kt,bt){var gt=kt=="ltr",lt=nt(pt,gt?"left":"right"),jt=nt(Ut-1,gt?"right":"left"),Yn=pe==null&&pt==0,$i=Le==null&&Ut==Pe,Pt=bt==0,jr=!Wt||bt==Wt.length-1;if(jt.top-lt.top<=3){var St=(m?Yn:$i)&&Pt,Z1=(m?$i:Yn)&&jr,ai=St?p:(gt?lt:jt).left,en=Z1?g:(gt?jt:lt).right;z(ai,lt.top,en-ai,lt.bottom)}else{var tn,Ht,Xn,W1;gt?(tn=m&&Yn&&Pt?p:lt.left,Ht=m?g:Jt(pt,kt,"before"),Xn=m?p:Jt(Ut,kt,"after"),W1=m&&$i&&jr?g:jt.right):(tn=m?Jt(pt,kt,"before"):p,Ht=!m&&Yn&&Pt?g:lt.right,Xn=!m&&$i&&jr?p:jt.left,W1=m?Jt(Ut,kt,"after"):g),z(tn,lt.top,Ht-tn,lt.bottom),lt.bottom<jt.top&&z(p,lt.bottom,null,jt.top),z(Xn,jt.top,W1-Xn,jt.bottom)}(!Je||aa(lt,Je)<0)&&(Je=lt),aa(jt,Je)<0&&(Je=jt),(!Lt||aa(lt,Lt)<0)&&(Lt=lt),aa(jt,Lt)<0&&(Lt=jt)}),{start:Je,end:Lt}}var P=r.from(),I=r.to();if(P.line==I.line)S(P.line,P.ch,I.ch);else{var Z=be(c,P.line),q=be(c,I.line),te=Zr(Z)==Zr(q),se=S(P.line,P.ch,te?Z.text.length+1:null).end,he=S(I.line,te?0:null,I.ch).start;te&&(se.top<he.top-2?(z(se.right,se.top,null,se.bottom),z(p,he.top,he.left,he.bottom)):z(se.right,se.top,he.left-se.right,se.bottom)),se.bottom<he.top&&z(p,se.bottom,null,he.top)}a.appendChild(h)}function m1(t){if(t.state.focused){var r=t.display;clearInterval(r.blinker);var a=!0;r.cursorDiv.style.visibility="",t.options.cursorBlinkRate>0?r.blinker=setInterval(function(){t.hasFocus()||Hn(t),r.cursorDiv.style.visibility=(a=!a)?"":"hidden"},t.options.cursorBlinkRate):t.options.cursorBlinkRate<0&&(r.cursorDiv.style.visibility="hidden")}}function M0(t){t.hasFocus()||(t.display.input.focus(),t.state.focused||C1(t))}function y1(t){t.state.delayingBlurEvent=!0,setTimeout(function(){t.state.delayingBlurEvent&&(t.state.delayingBlurEvent=!1,t.state.focused&&Hn(t))},100)}function C1(t,r){t.state.delayingBlurEvent&&!t.state.draggingText&&(t.state.delayingBlurEvent=!1),t.options.readOnly!="nocursor"&&(t.state.focused||(Oe(t,"focus",t,r),t.state.focused=!0,ke(t.display.wrapper,"CodeMirror-focused"),!t.curOp&&t.display.selForContextMenu!=t.doc.sel&&(t.display.input.reset(),M&&setTimeout(function(){return t.display.input.reset(!0)},20)),t.display.input.receivedFocus()),m1(t))}function Hn(t,r){t.state.delayingBlurEvent||(t.state.focused&&(Oe(t,"blur",t,r),t.state.focused=!1,X(t.display.wrapper,"CodeMirror-focused")),clearInterval(t.display.blinker),setTimeout(function(){t.state.focused||(t.display.shift=!1)},150))}function la(t){for(var r=t.display,a=r.lineDiv.offsetTop,s=0;s<r.view.length;s++){var c=r.view[s],h=t.options.lineWrapping,f=void 0,p=0;if(!c.hidden){if(y&&b<8){var g=c.node.offsetTop+c.node.offsetHeight;f=g-a,a=g}else{var m=c.node.getBoundingClientRect();f=m.bottom-m.top,!h&&c.text.firstChild&&(p=c.text.firstChild.getBoundingClientRect().right-m.left-1)}var z=c.line.height-f;if((z>.005||z<-.005)&&(Yt(c.line,f),T0(c.line),c.rest))for(var S=0;S<c.rest.length;S++)T0(c.rest[S]);if(p>t.display.sizerWidth){var P=Math.ceil(p/Nn(t.display));P>t.display.maxLineLength&&(t.display.maxLineLength=P,t.display.maxLine=c.line,t.display.maxLineChanged=!0)}}}}function T0(t){if(t.widgets)for(var r=0;r<t.widgets.length;++r){var a=t.widgets[r],s=a.node.parentNode;s&&(a.height=s.offsetHeight)}}function ca(t,r,a){var s=a&&a.top!=null?Math.max(0,a.top):t.scroller.scrollTop;s=Math.floor(s-ia(t));var c=a&&a.bottom!=null?a.bottom:s+t.wrapper.clientHeight,h=Br(r,s),f=Br(r,c);if(a&&a.ensure){var p=a.ensure.from.line,g=a.ensure.to.line;p<h?(h=p,f=Br(r,ni(be(r,p))+t.wrapper.clientHeight)):Math.min(g,r.lastLine())>=f&&(h=Br(r,ni(be(r,g))-t.wrapper.clientHeight),f=g)}return{from:h,to:Math.max(f,h+1)}}function D4(t,r){if(!ft(t,"scrollCursorIntoView")){var a=t.display,s=a.sizer.getBoundingClientRect(),c=null;if(r.top+s.top<0?c=!0:r.bottom+s.top>(window.innerHeight||document.documentElement.clientHeight)&&(c=!1),c!=null&&!oe){var h=x("div","​",null,`position: absolute;
2986
+ top: `+(r.top-a.viewOffset-ia(t.display))+`px;
2987
2987
  height: `+(r.bottom-r.top+Wr(t)+a.barHeight)+`px;
2988
- 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,a,s){s==null&&(s=0);var c;!t.options.lineWrapping&&r==a&&(a=r.sticky=="before"?J(r.line,r.ch+1,"before"):r,r=r.ch?J(r.line,r.sticky=="before"?r.ch-1:r.ch,"after"):r);for(var h=0;h<5;h++){var f=!1,p=wr(t,r),g=!a||a==r?p:wr(t,a);c={left:Math.min(p.left,g.left),top:Math.min(p.top,g.top)-s,right:Math.max(p.left,g.left),bottom:Math.max(p.bottom,g.bottom)+s};var m=w1(t,c),z=t.doc.scrollTop,S=t.doc.scrollLeft;if(m.scrollTop!=null&&(Bo(t,m.scrollTop),Math.abs(t.doc.scrollTop-z)>1&&(f=!0)),m.scrollLeft!=null&&(Xn(t,m.scrollLeft),Math.abs(t.doc.scrollLeft-S)>1&&(f=!0)),!f)break}return c}function H4(t,r){var a=w1(t,r);a.scrollTop!=null&&Bo(t,a.scrollTop),a.scrollLeft!=null&&Xn(t,a.scrollLeft)}function w1(t,r){var a=t.display,s=Di(t.display);r.top<0&&(r.top=0);var c=t.curOp&&t.curOp.scrollTop!=null?t.curOp.scrollTop:a.scroller.scrollTop,h=c1(t),f={};r.bottom-r.top>h&&(r.bottom=r.top+h);var p=t.doc.height+l1(a),g=r.top<s,m=r.bottom>p-s;if(r.top<c)f.scrollTop=g?0:r.top;else if(r.bottom>c+h){var z=Math.min(r.top,(m?p:r.bottom)-h);z!=c&&(f.scrollTop=z)}var S=t.options.fixedGutter?0:a.gutters.offsetWidth,P=t.curOp&&t.curOp.scrollLeft!=null?t.curOp.scrollLeft:a.scroller.scrollLeft-S,I=Gn(t)-a.gutters.offsetWidth,Z=r.right-r.left>I;return Z&&(r.right=r.left+I),r.left<10?f.scrollLeft=0:r.left<P?f.scrollLeft=Math.max(0,r.left+S-(Z?0:10)):r.right>I+P-3&&(f.scrollLeft=r.right+(Z?0:10)-I),f}function x1(t,r){r!=null&&(ua(t),t.curOp.scrollTop=(t.curOp.scrollTop==null?t.doc.scrollTop:t.curOp.scrollTop)+r)}function Ri(t){ua(t);var r=t.getCursor();t.curOp.scrollToPos={from:r,to:r,margin:t.options.cursorScrollMargin}}function Fo(t,r,a){(r!=null||a!=null)&&ua(t),r!=null&&(t.curOp.scrollLeft=r),a!=null&&(t.curOp.scrollTop=a)}function R4(t,r){ua(t),t.curOp.scrollToPos=r}function ua(t){var r=t.curOp.scrollToPos;if(r){t.curOp.scrollToPos=null;var a=y0(t,r.from),s=y0(t,r.to);k0(t,a,s,r.margin)}}function k0(t,r,a,s){var c=w1(t,{left:Math.min(r.left,a.left),top:Math.min(r.top,a.top)-s,right:Math.max(r.right,a.right),bottom:Math.max(r.bottom,a.bottom)+s});Fo(t,c.scrollLeft,c.scrollTop)}function Bo(t,r){Math.abs(t.doc.scrollTop-r)<2||(l||L1(t,{top:r}),O0(t,r,!0),l&&L1(t),Wo(t,100))}function O0(t,r,a){r=Math.max(0,Math.min(t.display.scroller.scrollHeight-t.display.scroller.clientHeight,r)),!(t.display.scroller.scrollTop==r&&!a)&&(t.doc.scrollTop=r,t.display.scrollbars.setScrollTop(r),t.display.scroller.scrollTop!=r&&(t.display.scroller.scrollTop=r))}function Xn(t,r,a,s){r=Math.max(0,Math.min(r,t.display.scroller.scrollWidth-t.display.scroller.clientWidth)),!((a?r==t.doc.scrollLeft:Math.abs(t.doc.scrollLeft-r)<2)&&!s)&&(t.doc.scrollLeft=r,A0(t),t.display.scroller.scrollLeft!=r&&(t.display.scroller.scrollLeft=r),t.display.scrollbars.setScrollLeft(r))}function Vo(t){var r=t.display,a=r.gutters.offsetWidth,s=Math.round(t.doc.height+l1(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?a:0,docHeight:s,scrollHeight:s+Wr(t)+r.barHeight,nativeBarWidth:r.nativeBarWidth,gutterWidth:a}}var Jn=function(t,r,a){this.cm=a;var s=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");s.tabIndex=c.tabIndex=-1,t(s),t(c),Se(s,"scroll",function(){s.clientHeight&&r(s.scrollTop,"vertical")}),Se(c,"scroll",function(){c.clientWidth&&r(c.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,y&&b<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Jn.prototype.update=function(t){var r=t.scrollWidth>t.clientWidth+1,a=t.scrollHeight>t.clientHeight+1,s=t.nativeBarWidth;if(a){this.vert.style.display="block",this.vert.style.bottom=r?s+"px":"0";var c=t.viewHeight-(r?s: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=a?s+"px":"0",this.horiz.style.left=t.barLeft+"px";var h=t.viewWidth-t.barLeft-(a?s: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&&(s==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:a?s:0,bottom:r?s:0}},Jn.prototype.setScrollLeft=function(t){this.horiz.scrollLeft!=t&&(this.horiz.scrollLeft=t),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Jn.prototype.setScrollTop=function(t){this.vert.scrollTop!=t&&(this.vert.scrollTop=t),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Jn.prototype.zeroWidthHack=function(){var t=B&&!Y?"12px":"18px";this.horiz.style.height=this.vert.style.width=t,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new Be,this.disableVert=new Be},Jn.prototype.enableZeroWidthBar=function(t,r,a){t.style.pointerEvents="auto";function s(){var c=t.getBoundingClientRect(),h=a=="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,s)}r.set(1e3,s)},Jn.prototype.clear=function(){var t=this.horiz.parentNode;t.removeChild(this.horiz),t.removeChild(this.vert)};var Zo=function(){};Zo.prototype.update=function(){return{bottom:0,right:0}},Zo.prototype.setScrollLeft=function(){},Zo.prototype.setScrollTop=function(){},Zo.prototype.clear=function(){};function Fi(t,r){r||(r=Vo(t));var a=t.display.barWidth,s=t.display.barHeight;$0(t,r);for(var c=0;c<4&&a!=t.display.barWidth||s!=t.display.barHeight;c++)a!=t.display.barWidth&&t.options.lineWrapping&&la(t),$0(t,Vo(t)),a=t.display.barWidth,s=t.display.barHeight}function $0(t,r){var a=t.display,s=a.scrollbars.update(r);a.sizer.style.paddingRight=(a.barWidth=s.right)+"px",a.sizer.style.paddingBottom=(a.barHeight=s.bottom)+"px",a.heightForcer.style.borderBottom=s.bottom+"px solid transparent",s.right&&s.bottom?(a.scrollbarFiller.style.display="block",a.scrollbarFiller.style.height=s.bottom+"px",a.scrollbarFiller.style.width=s.right+"px"):a.scrollbarFiller.style.display="",s.bottom&&t.options.coverGutterNextToScrollbar&&t.options.fixedGutter?(a.gutterFiller.style.display="block",a.gutterFiller.style.height=s.bottom+"px",a.gutterFiller.style.width=r.gutterWidth+"px"):a.gutterFiller.style.display=""}var E0={native:Jn,null:Zo};function _0(t){t.display.scrollbars&&(t.display.scrollbars.clear(),t.display.scrollbars.addClass&&X(t.display.wrapper,t.display.scrollbars.addClass)),t.display.scrollbars=new E0[t.options.scrollbarStyle](function(r){t.display.wrapper.insertBefore(r,t.display.scrollbarFiller),Se(r,"mousedown",function(){t.state.focused&&setTimeout(function(){return t.display.input.focus()},0)}),r.setAttribute("cm-not-content","true")},function(r,a){a=="horizontal"?Xn(t,r):Bo(t,r)},t),t.display.scrollbars.addClass&&ke(t.display.wrapper,t.display.scrollbars.addClass)}var F4=0;function Qn(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 ei(t){var r=t.curOp;r&&y4(r,function(a){for(var s=0;s<a.ops.length;s++)a.ops[s].cm.curOp=null;B4(a)})}function B4(t){for(var r=t.ops,a=0;a<r.length;a++)V4(r[a]);for(var s=0;s<r.length;s++)Z4(r[s]);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,a=r.display;q4(r),t.updateMaxLine&&s1(r),t.mustUpdate=t.viewChanged||t.forceUpdate||t.scrollTop!=null||t.scrollToPos&&(t.scrollToPos.from.line<a.viewFrom||t.scrollToPos.to.line>=a.viewTo)||a.maxLineChanged&&r.options.lineWrapping,t.update=t.mustUpdate&&new da(r,t.mustUpdate&&{top:t.scrollTop,ensure:t.scrollToPos},t.forceUpdate)}function Z4(t){t.updatedDisplay=t.mustUpdate&&z1(t.cm,t.update)}function W4(t){var r=t.cm,a=r.display;t.updatedDisplay&&la(r),t.barMeasure=Vo(r),a.maxLineChanged&&!r.options.lineWrapping&&(t.adjustWidthTo=d0(r,a.maxLine,a.maxLine.text.length).left+3,r.display.sizerWidth=t.adjustWidthTo,t.barMeasure.scrollWidth=Math.max(a.scroller.clientWidth,a.sizer.offsetLeft+t.adjustWidthTo+Wr(r)+r.display.barWidth),t.maxScrollLeft=Math.max(0,a.sizer.offsetLeft+t.adjustWidthTo-Gn(r))),(t.updatedDisplay||t.selectionChanged)&&(t.preparedSelection=a.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&&Xn(r,Math.min(r.display.scroller.scrollLeft,t.maxScrollLeft),!0),r.display.maxLineChanged=!1);var a=t.focus&&t.focus==ye();t.preparedSelection&&r.display.input.showSelection(t.preparedSelection,a),(t.updatedDisplay||t.startHeight!=r.doc.height)&&Fi(r,t.barMeasure),t.updatedDisplay&&M1(r,t.barMeasure),t.selectionChanged&&m1(r),r.state.focused&&t.updateInput&&r.display.input.reset(t.typing),a&&M0(t.cm)}function j4(t){var r=t.cm,a=r.display,s=r.doc;if(t.updatedDisplay&&I0(r,t.update),a.wheelStartX!=null&&(t.scrollTop!=null||t.scrollLeft!=null||t.scrollToPos)&&(a.wheelStartX=a.wheelStartY=null),t.scrollTop!=null&&O0(r,t.scrollTop,t.forceScroll),t.scrollLeft!=null&&Xn(r,t.scrollLeft,!0,!0),t.scrollToPos){var c=N4(r,de(s,t.scrollToPos.from),de(s,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||Oe(h[p],"hide");if(f)for(var g=0;g<f.length;++g)f[g].lines.length&&Oe(f[g],"unhide");a.wrapper.offsetHeight&&(s.scrollTop=r.display.scroller.scrollTop),t.changeObjs&&Oe(r,"changes",r,t.changeObjs),t.update&&t.update.finish()}function Xt(t,r){if(t.curOp)return r();Qn(t);try{return r()}finally{ei(t)}}function xt(t,r){return function(){if(t.curOp)return r.apply(t,arguments);Qn(t);try{return r.apply(t,arguments)}finally{ei(t)}}}function Nt(t){return function(){if(this.curOp)return t.apply(this,arguments);Qn(this);try{return t.apply(this,arguments)}finally{ei(this)}}}function zt(t){return function(){var r=this.cm;if(!r||r.curOp)return t.apply(this,arguments);Qn(r);try{return t.apply(this,arguments)}finally{ei(r)}}}function Wo(t,r){t.doc.highlightFrontier<t.display.viewTo&&t.state.highlight.set(r,Et(G4,t))}function G4(t){var r=t.doc;if(!(r.highlightFrontier>=t.display.viewTo)){var a=+new Date+t.options.workTime,s=Io(t,r.highlightFrontier),c=[];r.iter(s.line,Math.min(r.first+r.size,t.display.viewTo+500),function(h){if(s.line>=t.display.viewFrom){var f=h.styles,p=h.text.length>t.options.maxHighlightLength?ar(r.mode,s.state):null,g=Ru(t,h,s,!0);p&&(s.state=p),h.styles=g.styles;var m=h.styleClasses,z=g.classes;z?h.styleClasses=z:m&&(h.styleClasses=null);for(var S=!f||f.length!=h.styles.length||m!=z&&(!m||!z||m.bgClass!=z.bgClass||m.textClass!=z.textClass),P=0;!S&&P<f.length;++P)S=f[P]!=h.styles[P];S&&c.push(s.line),h.stateAfter=s.save(),s.nextLine()}else h.text.length<=t.options.maxHighlightLength&&e1(t,h.text,s),h.stateAfter=s.line%5==0?s.save():null,s.nextLine();if(+new Date>a)return Wo(t,t.options.workDelay),!0}),r.highlightFrontier=s.line,r.modeFrontier=Math.max(r.modeFrontier,s.line),c.length&&Xt(t,function(){for(var h=0;h<c.length;h++)Ln(t,c[h],"text")})}}var da=function(t,r,a){var s=t.display;this.viewport=r,this.visible=ca(s,t.doc,r),this.editorIsHidden=!s.wrapper.offsetWidth,this.wrapperHeight=s.wrapper.clientHeight,this.wrapperWidth=s.wrapper.clientWidth,this.oldDisplayWidth=Gn(t),this.force=a,this.dims=g1(t),this.events=[]};da.prototype.signal=function(t,r){Tt(t,r)&&this.events.push(arguments)},da.prototype.finish=function(){for(var t=0;t<this.events.length;t++)Oe.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=Wr(t)+"px",r.sizer.style.marginBottom=-r.nativeBarWidth+"px",r.sizer.style.borderRightWidth=Wr(t)+"px",r.scrollbarsClipped=!0)}function K4(t){if(t.hasFocus())return null;var r=ye();if(!r||!ie(t.display.lineDiv,r))return null;var a={activeElt:r};if(window.getSelection){var s=window.getSelection();s.anchorNode&&s.extend&&ie(t.display.lineDiv,s.anchorNode)&&(a.anchorNode=s.anchorNode,a.anchorOffset=s.anchorOffset,a.focusNode=s.focusNode,a.focusOffset=s.focusOffset)}return a}function Y4(t){if(!(!t||!t.activeElt||t.activeElt==ye())&&(t.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(t.activeElt.nodeName)&&t.anchorNode&&ie(document.body,t.anchorNode)&&ie(document.body,t.focusNode))){var r=window.getSelection(),a=document.createRange();a.setEnd(t.anchorNode,t.anchorOffset),a.collapse(!1),r.removeAllRanges(),r.addRange(a),r.extend(t.focusNode,t.focusOffset)}}function z1(t,r){var a=t.display,s=t.doc;if(r.editorIsHidden)return Sn(t),!1;if(!r.force&&r.visible.from>=a.viewFrom&&r.visible.to<=a.viewTo&&(a.updateLineNumbers==null||a.updateLineNumbers>=a.viewTo)&&a.renderedView==a.view&&z0(t)==0)return!1;P0(t)&&(Sn(t),r.dims=g1(t));var c=s.first+s.size,h=Math.max(r.visible.from-t.options.viewportMargin,s.first),f=Math.min(c,r.visible.to+t.options.viewportMargin);a.viewFrom<h&&h-a.viewFrom<20&&(h=Math.max(s.first,a.viewFrom)),a.viewTo>f&&a.viewTo-f<20&&(f=Math.min(c,a.viewTo)),nn&&(h=i1(t.doc,h),f=Qu(t.doc,f));var p=h!=a.viewFrom||f!=a.viewTo||a.lastWrapHeight!=r.wrapperHeight||a.lastWrapWidth!=r.wrapperWidth;A4(t,h,f),a.viewOffset=on(be(t.doc,a.viewFrom)),t.display.mover.style.top=a.viewOffset+"px";var g=z0(t);if(!p&&g==0&&!r.force&&a.renderedView==a.view&&(a.updateLineNumbers==null||a.updateLineNumbers>=a.viewTo))return!1;var m=K4(t);return g>4&&(a.lineDiv.style.display="none"),X4(t,a.updateLineNumbers,r.dims),g>4&&(a.lineDiv.style.display=""),a.renderedView=a.view,Y4(m),V(a.cursorDiv),V(a.selectionDiv),a.gutters.style.height=a.sizer.style.minHeight=0,p&&(a.lastWrapHeight=r.wrapperHeight,a.lastWrapWidth=r.wrapperWidth,Wo(t,400)),a.updateLineNumbers=null,!0}function I0(t,r){for(var a=r.viewport,s=!0;;s=!1){if(!s||!t.options.lineWrapping||r.oldDisplayWidth==Gn(t)){if(a&&a.top!=null&&(a={top:Math.min(t.doc.height+l1(t.display)-c1(t),a.top)}),r.visible=ca(t.display,t.doc,a),r.visible.from>=t.display.viewFrom&&r.visible.to<=t.display.viewTo)break}else s&&(r.visible=ca(t.display,t.doc,a));if(!z1(t,r))break;la(t);var c=Vo(t);Ro(t),Fi(t,c),M1(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 L1(t,r){var a=new da(t,r);if(z1(t,a)){la(t),I0(t,a);var s=Vo(t);Ro(t),Fi(t,s),M1(t,s),a.finish()}}function X4(t,r,a){var s=t.display,c=t.options.lineNumbers,h=s.lineDiv,f=h.firstChild;function p(Z){var q=Z.nextSibling;return M&&B&&t.display.currentWheelTarget==Z?Z.style.display="none":Z.parentNode.removeChild(Z),q}for(var g=s.view,m=s.viewFrom,z=0;z<g.length;z++){var S=g[z];if(!S.hidden)if(!S.node||S.node.parentNode!=h){var P=L4(t,S,m,a);h.insertBefore(P,f)}else{for(;f!=S.node;)f=p(f);var I=c&&r!=null&&r<=m&&S.lineNumber;S.changes&&(ge(S.changes,"gutter")>-1&&(I=!1),i0(t,S,m,a)),I&&(V(S.lineNumber),S.lineNumber.appendChild(document.createTextNode(_o(t.options,m)))),f=S.node.nextSibling}m+=S.size}for(;f;)f=p(f)}function S1(t){var r=t.gutters.offsetWidth;t.sizer.style.marginLeft=r+"px",wt(t,"gutterChanged",t)}function M1(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+Wr(t)+"px"}function A0(t){var r=t.display,a=r.view;if(!(!r.alignWidgets&&(!r.gutters.firstChild||!t.options.fixedGutter))){for(var s=v1(r)-r.scroller.scrollLeft+t.doc.scrollLeft,c=r.gutters.offsetWidth,h=s+"px",f=0;f<a.length;f++)if(!a[f].hidden){t.options.fixedGutter&&(a[f].gutter&&(a[f].gutter.style.left=h),a[f].gutterBackground&&(a[f].gutterBackground.style.left=h));var p=a[f].alignable;if(p)for(var g=0;g<p.length;g++)p[g].style.left=h}t.options.fixedGutter&&(r.gutters.style.left=s+c+"px")}}function P0(t){if(!t.options.lineNumbers)return!1;var r=t.doc,a=_o(t.options,r.first+r.size-1),s=t.display;if(a.length!=s.lineNumChars){var c=s.measure.appendChild(x("div",[x("div",a)],"CodeMirror-linenumber CodeMirror-gutter-elt")),h=c.firstChild.offsetWidth,f=c.offsetWidth-h;return s.lineGutter.style.width="",s.lineNumInnerWidth=Math.max(h,s.lineGutter.offsetWidth-f)+1,s.lineNumWidth=s.lineNumInnerWidth+f,s.lineNumChars=s.lineNumInnerWidth?a.length:-1,s.lineGutter.style.width=s.lineNumWidth+"px",S1(t.display),!0}return!1}function T1(t,r){for(var a=[],s=!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)s=!0;else continue;a.push({className:h,style:f})}return r&&!s&&a.push({className:"CodeMirror-linenumbers",style:null}),a}function D0(t){var r=t.gutters,a=t.gutterSpecs;V(r),t.lineGutter=null;for(var s=0;s<a.length;++s){var c=a[s],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=a.length?"":"none",S1(t)}function Uo(t){D0(t.display),Vt(t),A0(t)}function J4(t,r,a,s){var c=this;this.input=a,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=w("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=w("div",[c.measure,c.lineMeasure,c.selectionDiv,c.cursorDiv,c.lineDiv],null,"position: relative; outline: none");var h=w("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: "+ve+"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"),y&&b<8&&(c.gutters.style.zIndex=-1,c.scroller.style.paddingRight=0),!M&&!(l&&A)&&(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=T1(s.gutters,s.lineNumbers),D0(c),a.init(c)}var ha=0,cr=null;y?cr=-.53:l?cr=15:T?cr=-.7:N&&(cr=-1/3);function N0(t){var r=t.wheelDeltaX,a=t.wheelDeltaY;return r==null&&t.detail&&t.axis==t.HORIZONTAL_AXIS&&(r=t.detail),a==null&&t.detail&&t.axis==t.VERTICAL_AXIS?a=t.detail:a==null&&(a=t.wheelDelta),{x:r,y:a}}function Q4(t){var r=N0(t);return r.x*=cr,r.y*=cr,r}function H0(t,r){var a=N0(r),s=a.x,c=a.y,h=t.display,f=h.scroller,p=f.scrollWidth>f.clientWidth,g=f.scrollHeight>f.clientHeight;if(s&&p||c&&g){if(c&&B&&M){e:for(var m=r.target,z=h.view;m!=f;m=m.parentNode)for(var S=0;S<z.length;S++)if(z[S].node==m){t.display.currentWheelTarget=m;break e}}if(s&&!l&&!$&&cr!=null){c&&g&&Bo(t,Math.max(0,f.scrollTop+c*cr)),Xn(t,Math.max(0,f.scrollLeft+s*cr)),(!c||c&&g)&&_t(r),h.wheelStartX=null;return}if(c&&cr!=null){var P=c*cr,I=t.doc.scrollTop,Z=I+h.wrapper.clientHeight;P<0?I=Math.max(0,I+P-50):Z=Math.min(t.doc.height,Z+P+50),L1(t,{top:I,bottom:Z})}ha<20&&(h.wheelStartX==null?(h.wheelStartX=f.scrollLeft,h.wheelStartY=f.scrollTop,h.wheelDX=s,h.wheelDY=c,setTimeout(function(){if(h.wheelStartX!=null){var q=f.scrollLeft-h.wheelStartX,te=f.scrollTop-h.wheelStartY,se=te&&h.wheelDY&&te/h.wheelDY||q&&h.wheelDX&&q/h.wheelDX;h.wheelStartX=h.wheelStartY=null,se&&(cr=(cr*ha+se)/(ha+1),++ha)}},200)):(h.wheelDX+=s,h.wheelDY+=c))}}var ur=function(t,r){this.ranges=t,this.primIndex=r};ur.prototype.primary=function(){return this.ranges[this.primIndex]},ur.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 a=this.ranges[r],s=t.ranges[r];if(!k(a.anchor,s.anchor)||!k(a.head,s.head))return!1}return!0},ur.prototype.deepCopy=function(){for(var t=[],r=0;r<this.ranges.length;r++)t[r]=new Ge(G(this.ranges[r].anchor),G(this.ranges[r].head));return new ur(t,this.primIndex)},ur.prototype.somethingSelected=function(){for(var t=0;t<this.ranges.length;t++)if(!this.ranges[t].empty())return!0;return!1},ur.prototype.contains=function(t,r){r||(r=t);for(var a=0;a<this.ranges.length;a++){var s=this.ranges[a];if(C(r,s.from())>=0&&C(t,s.to())<=0)return a}return-1};var Ge=function(t,r){this.anchor=t,this.head=r};Ge.prototype.from=function(){return $e(this.anchor,this.head)},Ge.prototype.to=function(){return ee(this.anchor,this.head)},Ge.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function xr(t,r,a){var s=t&&t.options.selectionsMayTouch,c=r[a];r.sort(function(P,I){return C(P.from(),I.from())}),a=ge(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(s&&!f.empty()?g>0:g>=0){var m=$e(p.from(),f.from()),z=ee(p.to(),f.to()),S=p.empty()?f.from()==f.head:p.from()==p.head;h<=a&&--a,r.splice(--h,2,new Ge(S?z:m,S?m:z))}}return new ur(r,a)}function Mn(t,r){return new ur([new Ge(t,r||t)],0)}function Tn(t){return t.text?J(t.from.line+t.text.length-1,_e(t.text).length+(t.text.length==1?t.from.ch:0)):t.to}function R0(t,r){if(C(t,r.from)<0)return t;if(C(t,r.to)<=0)return Tn(r);var a=t.line+r.text.length-(r.to.line-r.from.line)-1,s=t.ch;return t.line==r.to.line&&(s+=Tn(r).ch-r.to.ch),J(a,s)}function k1(t,r){for(var a=[],s=0;s<t.sel.ranges.length;s++){var c=t.sel.ranges[s];a.push(new Ge(R0(c.anchor,r),R0(c.head,r)))}return xr(t.cm,a,t.sel.primIndex)}function F0(t,r,a){return t.line==r.line?J(a.line,t.ch-r.ch+a.ch):J(a.line+(t.line-r.line),t.ch)}function e3(t,r,a){for(var s=[],c=J(t.first,0),h=c,f=0;f<r.length;f++){var p=r[f],g=F0(p.from,c,h),m=F0(Tn(p),c,h);if(c=p.to,h=m,a=="around"){var z=t.sel.ranges[f],S=C(z.head,z.anchor)<0;s[f]=new Ge(S?m:g,S?g:m)}else s[f]=new Ge(g,g)}return new ur(s,t.sel.primIndex)}function O1(t){t.doc.mode=Ei(t.options,t.doc.modeOption),jo(t)}function jo(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,Wo(t,100),t.state.modeGen++,t.curOp&&Vt(t)}function B0(t,r){return r.from.ch==0&&r.to.ch==0&&_e(r.text)==""&&(!t.cm||t.cm.options.wholeLineUpdateBefore)}function $1(t,r,a,s){function c(he){return a?a[he]:null}function h(he,ae,pe){l4(he,ae,pe,s),wt(he,"change",he,r)}function f(he,ae){for(var pe=[],Le=he;Le<ae;++Le)pe.push(new Ii(m[Le],c(Le),s));return pe}var p=r.from,g=r.to,m=r.text,z=be(t,p.line),S=be(t,g.line),P=_e(m),I=c(m.length-1),Z=g.line-p.line;if(r.full)t.insert(0,f(0,m.length)),t.remove(m.length,t.size-m.length);else if(B0(t,r)){var q=f(0,m.length-1);h(S,S.text,I),Z&&t.remove(p.line,Z),q.length&&t.insert(p.line,q)}else if(z==S)if(m.length==1)h(z,z.text.slice(0,p.ch)+P+z.text.slice(g.ch),I);else{var te=f(1,m.length-1);te.push(new Ii(P+z.text.slice(g.ch),I,s)),h(z,z.text.slice(0,p.ch)+m[0],c(0)),t.insert(p.line+1,te)}else if(m.length==1)h(z,z.text.slice(0,p.ch)+m[0]+S.text.slice(g.ch),c(0)),t.remove(p.line+1,Z);else{h(z,z.text.slice(0,p.ch)+m[0],c(0)),h(S,P+S.text.slice(g.ch),I);var se=f(1,m.length-1);Z>1&&t.remove(p.line+1,Z-1),t.insert(p.line+1,se)}wt(t,"change",t,r)}function kn(t,r,a){function s(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 m=f&&g.sharedHist;a&&!m||(r(g.doc,m),s(g.doc,c,m))}}}s(t,null,!0)}function V0(t,r){if(r.cm)throw new Error("This document is already in use.");t.doc=r,r.cm=t,b1(t),O1(t),Z0(t),t.options.direction=r.direction,t.options.lineWrapping||s1(t),t.options.mode=r.modeOption,Vt(t)}function Z0(t){(t.doc.direction=="rtl"?ke:X)(t.display.lineDiv,"CodeMirror-rtl")}function t3(t){Xt(t,function(){Z0(t),Vt(t)})}function fa(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 E1(t,r){var a={from:G(r.from),to:Tn(r),text:Fr(t,r.from,r.to)};return j0(t,a,r.from.line,r.to.line+1),kn(t,function(s){return j0(s,a,r.from.line,r.to.line+1)},!0),a}function W0(t){for(;t.length;){var r=_e(t);if(r.ranges)t.pop();else break}}function r3(t,r){if(r)return W0(t.done),_e(t.done);if(t.done.length&&!_e(t.done).ranges)return _e(t.done);if(t.done.length>1&&!t.done[t.done.length-2].ranges)return t.done.pop(),_e(t.done)}function U0(t,r,a,s){var c=t.history;c.undone.length=0;var h=+new Date,f,p;if((c.lastOp==s||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==s)))p=_e(f.changes),C(r.from,r.to)==0&&C(r.from,p.to)==0?p.to=Tn(r):f.changes.push(E1(t,r));else{var g=_e(c.done);for((!g||!g.ranges)&&pa(t.sel,c.done),f={changes:[E1(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(a),c.generation=++c.maxGeneration,c.lastModTime=c.lastSelTime=h,c.lastOp=c.lastSelOp=s,c.lastOrigin=c.lastSelOrigin=r.origin,p||Oe(t,"historyAdded")}function n3(t,r,a,s){var c=r.charAt(0);return c=="*"||c=="+"&&a.ranges.length==s.ranges.length&&a.somethingSelected()==s.somethingSelected()&&new Date-t.history.lastSelTime<=(t.cm?t.cm.options.historyEventDelay:500)}function i3(t,r,a,s){var c=t.history,h=s&&s.origin;a==c.lastSelOp||h&&c.lastSelOrigin==h&&(c.lastModTime==c.lastSelTime&&c.lastOrigin==h||n3(t,h,_e(c.done),r))?c.done[c.done.length-1]=r:pa(r,c.done),c.lastSelTime=+new Date,c.lastSelOrigin=h,c.lastSelOp=a,s&&s.clearRedo!==!1&&W0(c.undone)}function pa(t,r){var a=_e(r);a&&a.ranges&&a.equals(t)||r.push(t)}function j0(t,r,a,s){var c=r["spans_"+t.id],h=0;t.iter(Math.max(t.first,a),Math.min(t.first+t.size,s),function(f){f.markedSpans&&((c||(c=r["spans_"+t.id]={}))[h]=f.markedSpans),++h})}function o3(t){if(!t)return null;for(var r,a=0;a<t.length;++a)t[a].marker.explicitlyCleared?r||(r=t.slice(0,a)):r&&r.push(t[a]);return r?r.length?r:null:t}function s3(t,r){var a=r["spans_"+t.id];if(!a)return null;for(var s=[],c=0;c<r.text.length;++c)s.push(o3(a[c]));return s}function G0(t,r){var a=s3(t,r),s=r1(t,r);if(!a)return s;if(!s)return a;for(var c=0;c<a.length;++c){var h=a[c],f=s[c];if(h&&f)e:for(var p=0;p<f.length;++p){for(var g=f[p],m=0;m<h.length;++m)if(h[m].marker==g.marker)continue e;h.push(g)}else f&&(a[c]=f)}return a}function Bi(t,r,a){for(var s=[],c=0;c<t.length;++c){var h=t[c];if(h.ranges){s.push(a?ur.prototype.deepCopy.call(h):h);continue}var f=h.changes,p=[];s.push({changes:p});for(var g=0;g<f.length;++g){var m=f[g],z=void 0;if(p.push({from:m.from,to:m.to,text:m.text}),r)for(var S in m)(z=S.match(/^spans_(\d+)$/))&&ge(r,Number(z[1]))>-1&&(_e(p)[S]=m[S],delete m[S])}}return s}function _1(t,r,a,s){if(s){var c=t.anchor;if(a){var h=C(r,c)<0;h!=C(a,c)<0?(c=r,r=a):h!=C(r,a)<0&&(r=a)}return new Ge(c,r)}else return new Ge(a||r,r)}function ga(t,r,a,s,c){c==null&&(c=t.cm&&(t.cm.display.shift||t.extend)),At(t,new ur([_1(t.sel.primary(),r,a,c)],0),s)}function q0(t,r,a){for(var s=[],c=t.cm&&(t.cm.display.shift||t.extend),h=0;h<t.sel.ranges.length;h++)s[h]=_1(t.sel.ranges[h],r[h],null,c);var f=xr(t.cm,s,t.sel.primIndex);At(t,f,a)}function I1(t,r,a,s){var c=t.sel.ranges.slice(0);c[r]=a,At(t,xr(t.cm,c,t.sel.primIndex),s)}function K0(t,r,a,s){At(t,Mn(r,a),s)}function a3(t,r,a){var s={ranges:r.ranges,update:function(c){this.ranges=[];for(var h=0;h<c.length;h++)this.ranges[h]=new Ge(de(t,c[h].anchor),de(t,c[h].head))},origin:a&&a.origin};return Oe(t,"beforeSelectionChange",t,s),t.cm&&Oe(t.cm,"beforeSelectionChange",t.cm,s),s.ranges!=r.ranges?xr(t.cm,s.ranges,s.ranges.length-1):r}function Y0(t,r,a){var s=t.history.done,c=_e(s);c&&c.ranges?(s[s.length-1]=r,va(t,r,a)):At(t,r,a)}function At(t,r,a){va(t,r,a),i3(t,t.sel,t.cm?t.cm.curOp.id:NaN,a)}function va(t,r,a){(Tt(t,"beforeSelectionChange")||t.cm&&Tt(t.cm,"beforeSelectionChange"))&&(r=a3(t,r,a));var s=a&&a.bias||(C(r.primary().head,t.sel.primary().head)<0?-1:1);X0(t,Q0(t,r,s,!0)),!(a&&a.scroll===!1)&&t.cm&&t.cm.getOption("readOnly")!="nocursor"&&Ri(t.cm)}function X0(t,r){r.equals(t.sel)||(t.sel=r,t.cm&&(t.cm.curOp.updateInput=1,t.cm.curOp.selectionChanged=!0,ki(t.cm)),wt(t,"cursorActivity",t))}function J0(t){X0(t,Q0(t,t.sel,null,!1))}function Q0(t,r,a,s){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=ba(t,f.anchor,p&&p.anchor,a,s),m=ba(t,f.head,p&&p.head,a,s);(c||g!=f.anchor||m!=f.head)&&(c||(c=r.ranges.slice(0,h)),c[h]=new Ge(g,m))}return c?xr(t.cm,c,r.primIndex):r}function Vi(t,r,a,s,c){var h=be(t,r.line);if(h.markedSpans)for(var f=0;f<h.markedSpans.length;++f){var p=h.markedSpans[f],g=p.marker,m="selectLeft"in g?!g.selectLeft:g.inclusiveLeft,z="selectRight"in g?!g.selectRight:g.inclusiveRight;if((p.from==null||(m?p.from<=r.ch:p.from<r.ch))&&(p.to==null||(z?p.to>=r.ch:p.to>r.ch))){if(c&&(Oe(g,"beforeCursorEnter"),g.explicitlyCleared))if(h.markedSpans){--f;continue}else break;if(!g.atomic)continue;if(a){var S=g.find(s<0?1:-1),P=void 0;if((s<0?z:m)&&(S=ed(t,S,-s,S&&S.line==r.line?h:null)),S&&S.line==r.line&&(P=C(S,a))&&(s<0?P<0:P>0))return Vi(t,S,r,s,c)}var I=g.find(s<0?-1:1);return(s<0?m:z)&&(I=ed(t,I,s,I.line==r.line?h:null)),I?Vi(t,I,r,s,c):null}}return r}function ba(t,r,a,s,c){var h=s||1,f=Vi(t,r,a,h,c)||!c&&Vi(t,r,a,h,!0)||Vi(t,r,a,-h,c)||!c&&Vi(t,r,a,-h,!0);return f||(t.cantEdit=!0,J(t.first,0))}function ed(t,r,a,s){return a<0&&r.ch==0?r.line>t.first?de(t,J(r.line-1)):null:a>0&&r.ch==(s||be(t,r.line)).text.length?r.line<t.first+t.size-1?J(r.line+1,0):null:new J(r.line,r.ch+a)}function td(t){t.setSelection(J(t.firstLine(),0),J(t.lastLine()),De)}function rd(t,r,a){var s={canceled:!1,from:r.from,to:r.to,text:r.text,origin:r.origin,cancel:function(){return s.canceled=!0}};return a&&(s.update=function(c,h,f,p){c&&(s.from=de(t,c)),h&&(s.to=de(t,h)),f&&(s.text=f),p!==void 0&&(s.origin=p)}),Oe(t,"beforeChange",t,s),t.cm&&Oe(t.cm,"beforeChange",t.cm,s),s.canceled?(t.cm&&(t.cm.curOp.updateInput=2),null):{from:s.from,to:s.to,text:s.text,origin:s.origin}}function Zi(t,r,a){if(t.cm){if(!t.cm.curOp)return xt(t.cm,Zi)(t,r,a);if(t.cm.state.suppressEdits)return}if(!((Tt(t,"beforeChange")||t.cm&&Tt(t.cm,"beforeChange"))&&(r=rd(t,r,!0),!r))){var s=ju&&!a&&i4(t,r.from,r.to);if(s)for(var c=s.length-1;c>=0;--c)nd(t,{from:s[c].from,to:s[c].to,text:c?[""]:r.text,origin:r.origin});else nd(t,r)}}function nd(t,r){if(!(r.text.length==1&&r.text[0]==""&&C(r.from,r.to)==0)){var a=k1(t,r);U0(t,r,a,t.cm?t.cm.curOp.id:NaN),Go(t,r,a,r1(t,r));var s=[];kn(t,function(c,h){!h&&ge(s,c.history)==-1&&(ad(c.history,r),s.push(c.history)),Go(c,r,null,r1(c,r))})}}function ma(t,r,a){var s=t.cm&&t.cm.state.suppressEdits;if(!(s&&!a)){for(var c=t.history,h,f=t.sel,p=r=="undo"?c.done:c.undone,g=r=="undo"?c.undone:c.done,m=0;m<p.length&&(h=p[m],!(a?h.ranges&&!h.equals(t.sel):!h.ranges));m++);if(m!=p.length){for(c.lastOrigin=c.lastSelOrigin=null;;)if(h=p.pop(),h.ranges){if(pa(h,g),a&&!h.equals(t.sel)){At(t,h,{clearRedo:!1});return}f=h}else if(s){p.push(h);return}else break;var z=[];pa(f,g),g.push({changes:z,generation:c.generation}),c.generation=h.generation||++c.maxGeneration;for(var S=Tt(t,"beforeChange")||t.cm&&Tt(t.cm,"beforeChange"),P=function(q){var te=h.changes[q];if(te.origin=r,S&&!rd(t,te,!1))return p.length=0,{};z.push(E1(t,te));var se=q?k1(t,te):_e(p);Go(t,te,se,G0(t,te)),!q&&t.cm&&t.cm.scrollIntoView({from:te.from,to:Tn(te)});var he=[];kn(t,function(ae,pe){!pe&&ge(he,ae.history)==-1&&(ad(ae.history,te),he.push(ae.history)),Go(ae,te,null,G0(ae,te))})},I=h.changes.length-1;I>=0;--I){var Z=P(I);if(Z)return Z.v}}}}function id(t,r){if(r!=0&&(t.first+=r,t.sel=new ur(Ve(t.sel.ranges,function(c){return new Ge(J(c.anchor.line+r,c.anchor.ch),J(c.head.line+r,c.head.ch))}),t.sel.primIndex),t.cm)){Vt(t.cm,t.first,t.first-r,r);for(var a=t.cm.display,s=a.viewFrom;s<a.viewTo;s++)Ln(t.cm,s,"gutter")}}function Go(t,r,a,s){if(t.cm&&!t.cm.curOp)return xt(t.cm,Go)(t,r,a,s);if(r.to.line<t.first){id(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);id(t,c),r={from:J(t.first,0),to:J(r.to.line+c,r.to.ch),text:[_e(r.text)],origin:r.origin}}var h=t.lastLine();r.to.line>h&&(r={from:r.from,to:J(h,be(t,h).text.length),text:[r.text[0]],origin:r.origin}),r.removed=Fr(t,r.from,r.to),a||(a=k1(t,r)),t.cm?l3(t.cm,r,s):$1(t,r,s),va(t,a,De),t.cantEdit&&ba(t,J(t.firstLine(),0))&&(t.cantEdit=!1)}}function l3(t,r,a){var s=t.doc,c=t.display,h=r.from,f=r.to,p=!1,g=h.line;t.options.lineWrapping||(g=je(Zr(be(s,h.line))),s.iter(g,f.line+1,function(I){if(I==c.maxLine)return p=!0,!0})),s.sel.contains(r.from,r.to)>-1&&ki(t),$1(s,r,a,x0(t)),t.options.lineWrapping||(s.iter(g,h.line+r.text.length,function(I){var Z=ta(I);Z>c.maxLineLength&&(c.maxLine=I,c.maxLineLength=Z,c.maxLineChanged=!0,p=!1)}),p&&(t.curOp.updateMaxLine=!0)),X6(s,h.line),Wo(t,400);var m=r.text.length-(f.line-h.line)-1;r.full?Vt(t):h.line==f.line&&r.text.length==1&&!B0(t.doc,r)?Ln(t,h.line,"text"):Vt(t,h.line,f.line+1,m);var z=Tt(t,"changes"),S=Tt(t,"change");if(S||z){var P={from:h,to:f,text:r.text,removed:r.removed,origin:r.origin};S&&wt(t,"change",t,P),z&&(t.curOp.changeObjs||(t.curOp.changeObjs=[])).push(P)}t.display.selForContextMenu=null}function Wi(t,r,a,s,c){var h;s||(s=a),C(s,a)<0&&(h=[s,a],a=h[0],s=h[1]),typeof r=="string"&&(r=t.splitLines(r)),Zi(t,{from:a,to:s,text:r,origin:c})}function od(t,r,a,s){a<t.line?t.line+=s:r<t.line&&(t.line=r,t.ch=0)}function sd(t,r,a,s){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++)od(h.ranges[p].anchor,r,a,s),od(h.ranges[p].head,r,a,s);continue}for(var g=0;g<h.changes.length;++g){var m=h.changes[g];if(a<m.from.line)m.from=J(m.from.line+s,m.from.ch),m.to=J(m.to.line+s,m.to.ch);else if(r<=m.to.line){f=!1;break}}f||(t.splice(0,c+1),c=0)}}function ad(t,r){var a=r.from.line,s=r.to.line,c=r.text.length-(s-a)-1;sd(t.done,a,s,c),sd(t.undone,a,s,c)}function qo(t,r,a,s){var c=r,h=r;return typeof r=="number"?h=be(t,Fe(t,r)):c=je(r),c==null?null:(s(h,c)&&t.cm&&Ln(t.cm,c,a),h)}function Ko(t){this.lines=t,this.parent=null;for(var r=0,a=0;a<t.length;++a)t[a].parent=this,r+=t[a].height;this.height=r}Ko.prototype={chunkSize:function(){return this.lines.length},removeInner:function(t,r){for(var a=t,s=t+r;a<s;++a){var c=this.lines[a];this.height-=c.height,c4(c),wt(c,"delete")}this.lines.splice(t,r)},collapse:function(t){t.push.apply(t,this.lines)},insertInner:function(t,r,a){this.height+=a,this.lines=this.lines.slice(0,t).concat(r).concat(this.lines.slice(t));for(var s=0;s<r.length;++s)r[s].parent=this},iterN:function(t,r,a){for(var s=t+r;t<s;++t)if(a(this.lines[t]))return!0}};function Yo(t){this.children=t;for(var r=0,a=0,s=0;s<t.length;++s){var c=t[s];r+=c.chunkSize(),a+=c.height,c.parent=this}this.size=r,this.height=a,this.parent=null}Yo.prototype={chunkSize:function(){return this.size},removeInner:function(t,r){this.size-=r;for(var a=0;a<this.children.length;++a){var s=this.children[a],c=s.chunkSize();if(t<c){var h=Math.min(r,c-t),f=s.height;if(s.removeInner(t,h),this.height-=f-s.height,c==h&&(this.children.splice(a--,1),s.parent=null),(r-=h)==0)break;t=0}else t-=c}if(this.size-r<25&&(this.children.length>1||!(this.children[0]instanceof Ko))){var p=[];this.collapse(p),this.children=[new Ko(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,a){this.size+=r.length,this.height+=a;for(var s=0;s<this.children.length;++s){var c=this.children[s],h=c.chunkSize();if(t<=h){if(c.insertInner(t,r,a),c.lines&&c.lines.length>50){for(var f=c.lines.length%25+25,p=f;p<c.lines.length;){var g=new Ko(c.lines.slice(p,p+=25));c.height-=g.height,this.children.splice(++s,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),a=new Yo(r);if(t.parent){t.size-=a.size,t.height-=a.height;var c=ge(t.parent.children,t);t.parent.children.splice(c+1,0,a)}else{var s=new Yo(t.children);s.parent=t,t.children=[s,a],t=s}a.parent=t.parent}while(t.children.length>10);t.parent.maybeSpill()}},iterN:function(t,r,a){for(var s=0;s<this.children.length;++s){var c=this.children[s],h=c.chunkSize();if(t<h){var f=Math.min(r,h-t);if(c.iterN(t,f,a))return!0;if((r-=f)==0)break;t=0}else t-=h}}};var Xo=function(t,r,a){if(a)for(var s in a)a.hasOwnProperty(s)&&(this[s]=a[s]);this.doc=t,this.node=r};Xo.prototype.clear=function(){var t=this.doc.cm,r=this.line.widgets,a=this.line,s=je(a);if(!(s==null||!r)){for(var c=0;c<r.length;++c)r[c]==this&&r.splice(c--,1);r.length||(a.widgets=null);var h=No(this);Yt(a,Math.max(0,a.height-h)),t&&(Xt(t,function(){ld(t,a,-h),Ln(t,s,"widget")}),wt(t,"lineWidgetCleared",t,this,s))}},Xo.prototype.changed=function(){var t=this,r=this.height,a=this.doc.cm,s=this.line;this.height=null;var c=No(this)-r;c&&(zn(this.doc,s)||Yt(s,s.height+c),a&&Xt(a,function(){a.curOp.forceUpdate=!0,ld(a,s,c),wt(a,"lineWidgetChanged",a,t,je(s))}))},Hr(Xo);function ld(t,r,a){on(r)<(t.curOp&&t.curOp.scrollTop||t.doc.scrollTop)&&x1(t,a)}function c3(t,r,a,s){var c=new Xo(t,a,s),h=t.cm;return h&&c.noHScroll&&(h.display.alignWidgets=!0),qo(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&&!zn(t,f)){var g=on(f)<t.scrollTop;Yt(f,f.height+No(c)),g&&x1(h,c.height),h.curOp.forceUpdate=!0}return!0}),h&&wt(h,"lineWidgetAdded",h,c,typeof r=="number"?r:je(r)),c}var cd=0,On=function(t,r){this.lines=[],this.type=r,this.doc=t,this.id=++cd};On.prototype.clear=function(){if(!this.explicitlyCleared){var t=this.doc.cm,r=t&&!t.curOp;if(r&&Qn(t),Tt(this,"clear")){var a=this.find();a&&wt(this,"clear",a.from,a.to)}for(var s=null,c=null,h=0;h<this.lines.length;++h){var f=this.lines[h],p=Ao(f.markedSpans,this);t&&!this.collapsed?Ln(t,je(f),"text"):t&&(p.to!=null&&(c=je(f)),p.from!=null&&(s=je(f))),f.markedSpans=e4(f.markedSpans,p),p.from==null&&this.collapsed&&!zn(this.doc,f)&&t&&Yt(f,Di(t.display))}if(t&&this.collapsed&&!t.options.lineWrapping)for(var g=0;g<this.lines.length;++g){var m=Zr(this.lines[g]),z=ta(m);z>t.display.maxLineLength&&(t.display.maxLine=m,t.display.maxLineLength=z,t.display.maxLineChanged=!0)}s!=null&&t&&this.collapsed&&Vt(t,s,c+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,t&&J0(t.doc)),t&&wt(t,"markerCleared",t,this,s,c),r&&ei(t),this.parent&&this.parent.clear()}},On.prototype.find=function(t,r){t==null&&this.type=="bookmark"&&(t=1);for(var a,s,c=0;c<this.lines.length;++c){var h=this.lines[c],f=Ao(h.markedSpans,this);if(f.from!=null&&(a=J(r?h:je(h),f.from),t==-1))return a;if(f.to!=null&&(s=J(r?h:je(h),f.to),t==1))return s}return a&&{from:a,to:s}},On.prototype.changed=function(){var t=this,r=this.find(-1,!0),a=this,s=this.doc.cm;!r||!s||Xt(s,function(){var c=r.line,h=je(r.line),f=u1(s,h);if(f&&(p0(f),s.curOp.selectionChanged=s.curOp.forceUpdate=!0),s.curOp.updateMaxLine=!0,!zn(a.doc,c)&&a.height!=null){var p=a.height;a.height=null;var g=No(a)-p;g&&Yt(c,c.height+g)}wt(s,"markerChanged",s,t)})},On.prototype.attachLine=function(t){if(!this.lines.length&&this.doc.cm){var r=this.doc.cm.curOp;(!r.maybeHiddenMarkers||ge(r.maybeHiddenMarkers,this)==-1)&&(r.maybeUnhiddenMarkers||(r.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(t)},On.prototype.detachLine=function(t){if(this.lines.splice(ge(this.lines,t),1),!this.lines.length&&this.doc.cm){var r=this.doc.cm.curOp;(r.maybeHiddenMarkers||(r.maybeHiddenMarkers=[])).push(this)}},Hr(On);function Ui(t,r,a,s,c){if(s&&s.shared)return u3(t,r,a,s,c);if(t.cm&&!t.cm.curOp)return xt(t.cm,Ui)(t,r,a,s,c);var h=new On(t,c),f=C(r,a);if(s&&Ye(s,h,!1),f>0||f==0&&h.clearWhenEmpty!==!1)return h;if(h.replacedWith&&(h.collapsed=!0,h.widgetNode=w("span",[h.replacedWith],"CodeMirror-widget"),s.handleMouseEvents||h.widgetNode.setAttribute("cm-ignore-events","true"),s.insertLeft&&(h.widgetNode.insertLeft=!0)),h.collapsed){if(Ju(t,r.line,r,a,h)||r.line!=a.line&&Ju(t,a.line,r,a,h))throw new Error("Inserting collapsed marker partially overlapping an existing one");Q6()}h.addToHistory&&U0(t,{from:r,to:a,origin:"markText"},t.sel,NaN);var p=r.line,g=t.cm,m;if(t.iter(p,a.line+1,function(S){g&&h.collapsed&&!g.options.lineWrapping&&Zr(S)==g.display.maxLine&&(m=!0),h.collapsed&&p!=r.line&&Yt(S,0),t4(S,new Xs(h,p==r.line?r.ch:null,p==a.line?a.ch:null),t.cm&&t.cm.curOp),++p}),h.collapsed&&t.iter(r.line,a.line+1,function(S){zn(t,S)&&Yt(S,0)}),h.clearOnEnter&&Se(h,"beforeCursorEnter",function(){return h.clear()}),h.readOnly&&(J6(),(t.history.done.length||t.history.undone.length)&&t.clearHistory()),h.collapsed&&(h.id=++cd,h.atomic=!0),g){if(m&&(g.curOp.updateMaxLine=!0),h.collapsed)Vt(g,r.line,a.line+1);else if(h.className||h.startStyle||h.endStyle||h.css||h.attributes||h.title)for(var z=r.line;z<=a.line;z++)Ln(g,z,"text");h.atomic&&J0(g.doc),wt(g,"markerAdded",g,h)}return h}var Jo=function(t,r){this.markers=t,this.primary=r;for(var a=0;a<t.length;++a)t[a].parent=this};Jo.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var t=0;t<this.markers.length;++t)this.markers[t].clear();wt(this,"clear")}},Jo.prototype.find=function(t,r){return this.primary.find(t,r)},Hr(Jo);function u3(t,r,a,s,c){s=Ye(s),s.shared=!1;var h=[Ui(t,r,a,s,c)],f=h[0],p=s.widgetNode;return kn(t,function(g){p&&(s.widgetNode=p.cloneNode(!0)),h.push(Ui(g,de(g,r),de(g,a),s,c));for(var m=0;m<g.linked.length;++m)if(g.linked[m].isParent)return;f=_e(h)}),new Jo(h,f)}function ud(t){return t.findMarks(J(t.first,0),t.clipPos(J(t.lastLine())),function(r){return r.parent})}function d3(t,r){for(var a=0;a<r.length;a++){var s=r[a],c=s.find(),h=t.clipPos(c.from),f=t.clipPos(c.to);if(C(h,f)){var p=Ui(t,h,f,s.primary,s.primary.type);s.markers.push(p),p.parent=s}}}function h3(t){for(var r=function(s){var c=t[s],h=[c.primary.doc];kn(c.primary.doc,function(g){return h.push(g)});for(var f=0;f<c.markers.length;f++){var p=c.markers[f];ge(h,p.doc)==-1&&(p.parent=null,c.markers.splice(f--,1))}},a=0;a<t.length;a++)r(a)}var f3=0,Zt=function(t,r,a,s,c){if(!(this instanceof Zt))return new Zt(t,r,a,s,c);a==null&&(a=0),Yo.call(this,[new Ko([new Ii("",null)])]),this.first=a,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=a;var h=J(a,0);this.sel=Mn(h),this.history=new fa(null),this.id=++f3,this.modeOption=r,this.lineSep=s,this.direction=c=="rtl"?"rtl":"ltr",this.extend=!1,typeof t=="string"&&(t=this.splitLines(t)),$1(this,{from:h,to:h,text:t}),At(this,Mn(h),De)};Zt.prototype=et(Yo.prototype,{constructor:Zt,iter:function(t,r,a){a?this.iterN(t-this.first,r-t,a):this.iterN(this.first,this.first+this.size,t)},insert:function(t,r){for(var a=0,s=0;s<r.length;++s)a+=r[s].height;this.insertInner(t-this.first,r,a)},remove:function(t,r){this.removeInner(t-this.first,r)},getValue:function(t){var r=Eo(this,this.first,this.first+this.size);return t===!1?r:r.join(t||this.lineSeparator())},setValue:zt(function(t){var r=J(this.first,0),a=this.first+this.size-1;Zi(this,{from:r,to:J(a,be(this,a).text.length),text:this.splitLines(t),origin:"setValue",full:!0},!0),this.cm&&Fo(this.cm,0,0),At(this,Mn(r),De)}),replaceRange:function(t,r,a,s){r=de(this,r),a=a?de(this,a):r,Wi(this,t,r,a,s)},getRange:function(t,r,a){var s=Fr(this,de(this,t),de(this,r));return a===!1?s:a===""?s.join(""):s.join(a||this.lineSeparator())},getLine:function(t){var r=this.getLineHandle(t);return r&&r.text},getLineHandle:function(t){if(jn(this,t))return be(this,t)},getLineNumber:function(t){return je(t)},getLineHandleVisualStart:function(t){return typeof t=="number"&&(t=be(this,t)),Zr(t)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(t){return de(this,t)},getCursor:function(t){var r=this.sel.primary(),a;return t==null||t=="head"?a=r.head:t=="anchor"?a=r.anchor:t=="end"||t=="to"||t===!1?a=r.to():a=r.from(),a},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:zt(function(t,r,a){K0(this,de(this,typeof t=="number"?J(t,r||0):t),null,a)}),setSelection:zt(function(t,r,a){K0(this,de(this,t),de(this,r||t),a)}),extendSelection:zt(function(t,r,a){ga(this,de(this,t),r&&de(this,r),a)}),extendSelections:zt(function(t,r){q0(this,lr(this,t),r)}),extendSelectionsBy:zt(function(t,r){var a=Ve(this.sel.ranges,t);q0(this,lr(this,a),r)}),setSelections:zt(function(t,r,a){if(t.length){for(var s=[],c=0;c<t.length;c++)s[c]=new Ge(de(this,t[c].anchor),de(this,t[c].head||t[c].anchor));r==null&&(r=Math.min(t.length-1,this.sel.primIndex)),At(this,xr(this.cm,s,r),a)}}),addSelection:zt(function(t,r,a){var s=this.sel.ranges.slice(0);s.push(new Ge(de(this,t),de(this,r||t))),At(this,xr(this.cm,s,s.length-1),a)}),getSelection:function(t){for(var r=this.sel.ranges,a,s=0;s<r.length;s++){var c=Fr(this,r[s].from(),r[s].to());a=a?a.concat(c):c}return t===!1?a:a.join(t||this.lineSeparator())},getSelections:function(t){for(var r=[],a=this.sel.ranges,s=0;s<a.length;s++){var c=Fr(this,a[s].from(),a[s].to());t!==!1&&(c=c.join(t||this.lineSeparator())),r[s]=c}return r},replaceSelection:function(t,r,a){for(var s=[],c=0;c<this.sel.ranges.length;c++)s[c]=t;this.replaceSelections(s,r,a||"+input")},replaceSelections:zt(function(t,r,a){for(var s=[],c=this.sel,h=0;h<c.ranges.length;h++){var f=c.ranges[h];s[h]={from:f.from(),to:f.to(),text:this.splitLines(t[h]),origin:a}}for(var p=r&&r!="end"&&e3(this,s,r),g=s.length-1;g>=0;g--)Zi(this,s[g]);p?Y0(this,p):this.cm&&Ri(this.cm)}),undo:zt(function(){ma(this,"undo")}),redo:zt(function(){ma(this,"redo")}),undoSelection:zt(function(){ma(this,"undo",!0)}),redoSelection:zt(function(){ma(this,"redo",!0)}),setExtending:function(t){this.extend=t},getExtending:function(){return this.extend},historySize:function(){for(var t=this.history,r=0,a=0,s=0;s<t.done.length;s++)t.done[s].ranges||++r;for(var c=0;c<t.undone.length;c++)t.undone[c].ranges||++a;return{undo:r,redo:a}},clearHistory:function(){var t=this;this.history=new fa(this.history),kn(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:Bi(this.history.done),undone:Bi(this.history.undone)}},setHistory:function(t){var r=this.history=new fa(this.history);r.done=Bi(t.done.slice(0),null,!0),r.undone=Bi(t.undone.slice(0),null,!0)},setGutterMarker:zt(function(t,r,a){return qo(this,t,"gutter",function(s){var c=s.gutterMarkers||(s.gutterMarkers={});return c[r]=a,!a&&re(c)&&(s.gutterMarkers=null),!0})}),clearGutter:zt(function(t){var r=this;this.iter(function(a){a.gutterMarkers&&a.gutterMarkers[t]&&qo(r,a,"gutter",function(){return a.gutterMarkers[t]=null,re(a.gutterMarkers)&&(a.gutterMarkers=null),!0})})}),lineInfo:function(t){var r;if(typeof t=="number"){if(!jn(this,t)||(r=t,t=be(this,t),!t))return null}else if(r=je(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:zt(function(t,r,a){return qo(this,t,r=="gutter"?"gutter":"class",function(s){var c=r=="text"?"textClass":r=="background"?"bgClass":r=="gutter"?"gutterClass":"wrapClass";if(!s[c])s[c]=a;else{if(ne(a).test(s[c]))return!1;s[c]+=" "+a}return!0})}),removeLineClass:zt(function(t,r,a){return qo(this,t,r=="gutter"?"gutter":"class",function(s){var c=r=="text"?"textClass":r=="background"?"bgClass":r=="gutter"?"gutterClass":"wrapClass",h=s[c];if(h)if(a==null)s[c]=null;else{var f=h.match(ne(a));if(!f)return!1;var p=f.index+f[0].length;s[c]=h.slice(0,f.index)+(!f.index||p==h.length?"":" ")+h.slice(p)||null}else return!1;return!0})}),addLineWidget:zt(function(t,r,a){return c3(this,t,r,a)}),removeLineWidget:function(t){t.clear()},markText:function(t,r,a){return Ui(this,de(this,t),de(this,r),a,a&&a.type||"range")},setBookmark:function(t,r){var a={replacedWith:r&&(r.nodeType==null?r.widget:r),insertLeft:r&&r.insertLeft,clearWhenEmpty:!1,shared:r&&r.shared,handleMouseEvents:r&&r.handleMouseEvents};return t=de(this,t),Ui(this,t,t,a,"bookmark")},findMarksAt:function(t){t=de(this,t);var r=[],a=be(this,t.line).markedSpans;if(a)for(var s=0;s<a.length;++s){var c=a[s];(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,a){t=de(this,t),r=de(this,r);var s=[],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)&&(!a||a(g.marker))&&s.push(g.marker.parent||g.marker)}++c}),s},getAllMarks:function(){var t=[];return this.iter(function(r){var a=r.markedSpans;if(a)for(var s=0;s<a.length;++s)a[s].from!=null&&t.push(a[s].marker)}),t},posFromIndex:function(t){var r,a=this.first,s=this.lineSeparator().length;return this.iter(function(c){var h=c.text.length+s;if(h>t)return r=t,!0;t-=h,++a}),de(this,J(a,r))},indexFromPos:function(t){t=de(this,t);var r=t.ch;if(t.line<this.first||t.ch<0)return 0;var a=this.lineSeparator().length;return this.iter(this.first,t.line,function(s){r+=s.text.length+a}),r},copy:function(t){var r=new Zt(Eo(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,a=this.first+this.size;t.from!=null&&t.from>r&&(r=t.from),t.to!=null&&t.to<a&&(a=t.to);var s=new Zt(Eo(this,r,a),t.mode||this.modeOption,r,this.lineSep,this.direction);return t.sharedHist&&(s.history=this.history),(this.linked||(this.linked=[])).push({doc:s,sharedHist:t.sharedHist}),s.linked=[{doc:this,isParent:!0,sharedHist:t.sharedHist}],d3(s,ud(this)),s},unlinkDoc:function(t){if(t instanceof tt&&(t=t.doc),this.linked)for(var r=0;r<this.linked.length;++r){var a=this.linked[r];if(a.doc==t){this.linked.splice(r,1),t.unlinkDoc(this),h3(ud(this));break}}if(t.history==this.history){var s=[t.id];kn(t,function(c){return s.push(c.id)},!0),t.history=new fa(null),t.history.done=Bi(this.history.done,s),t.history.undone=Bi(this.history.undone,s)}},iterLinkedDocs:function(t){kn(this,t)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(t){return this.lineSep?t.split(this.lineSep):To(t)},lineSeparator:function(){return this.lineSep||`
2989
- `},setDirection:zt(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))})}),Zt.prototype.eachLine=Zt.prototype.iter;var dd=0;function p3(t){var r=this;if(hd(r),!(ft(r,t)||sn(r.display,t))){_t(t),y&&(dd=+new Date);var a=Kn(r,t,!0),s=t.dataTransfer.files;if(!(!a||r.isReadOnly()))if(s&&s.length&&window.FileReader&&window.File)for(var c=s.length,h=Array(c),f=0,p=function(){++f==c&&xt(r,function(){a=de(r.doc,a);var I={from:a,to:a,text:r.doc.splitLines(h.filter(function(Z){return Z!=null}).join(r.doc.lineSeparator())),origin:"paste"};Zi(r.doc,I),Y0(r.doc,Mn(de(r.doc,a),de(r.doc,Tn(I))))})()},g=function(I,Z){if(r.options.allowDropFileTypes&&ge(r.options.allowDropFileTypes,I.type)==-1){p();return}var q=new FileReader;q.onerror=function(){return p()},q.onload=function(){var te=q.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(te)){p();return}h[Z]=te,p()},q.readAsText(I)},m=0;m<s.length;m++)g(s[m],m);else{if(r.state.draggingText&&r.doc.sel.contains(a)>-1){r.state.draggingText(t),setTimeout(function(){return r.display.input.focus()},20);return}try{var z=t.dataTransfer.getData("Text");if(z){var S;if(r.state.draggingText&&!r.state.draggingText.copy&&(S=r.listSelections()),va(r.doc,Mn(a,a)),S)for(var P=0;P<S.length;++P)Wi(r.doc,"",S[P].anchor,S[P].head,"drag");r.replaceSelection(z,"around","paste"),r.display.input.focus()}}catch{}}}}function g3(t,r){if(y&&(!t.state.draggingText||+new Date-dd<100)){Un(r);return}if(!(ft(t,r)||sn(t.display,r))&&(r.dataTransfer.setData("Text",t.getSelection()),r.dataTransfer.effectAllowed="copyMove",r.dataTransfer.setDragImage&&!N)){var a=x("img",null,null,"position: fixed; left: 0; top: 0;");a.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",$&&(a.width=a.height=1,t.display.wrapper.appendChild(a),a._top=a.offsetTop),r.dataTransfer.setDragImage(a,0,0),$&&a.parentNode.removeChild(a)}}function v3(t,r){var a=Kn(t,r);if(a){var s=document.createDocumentFragment();S0(t,a,s),t.display.dragCursor||(t.display.dragCursor=x("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),t.display.lineSpace.insertBefore(t.display.dragCursor,t.display.cursorDiv)),O(t.display.dragCursor,s)}}function hd(t){t.display.dragCursor&&(t.display.lineSpace.removeChild(t.display.dragCursor),t.display.dragCursor=null)}function fd(t){if(document.getElementsByClassName){for(var r=document.getElementsByClassName("CodeMirror"),a=[],s=0;s<r.length;s++){var c=r[s].CodeMirror;c&&a.push(c)}a.length&&a[0].operation(function(){for(var h=0;h<a.length;h++)t(a[h])})}}var pd=!1;function b3(){pd||(m3(),pd=!0)}function m3(){var t;Se(window,"resize",function(){t==null&&(t=setTimeout(function(){t=null,fd(y3)},100))}),Se(window,"blur",function(){return fd(Hi)})}function y3(t){var r=t.display;r.cachedCharWidth=r.cachedTextHeight=r.cachedPaddingH=null,r.scrollbarsClipped=!1,t.setSize()}for(var $n={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"},Qo=0;Qo<10;Qo++)$n[Qo+48]=$n[Qo+96]=String(Qo);for(var ya=65;ya<=90;ya++)$n[ya]=String.fromCharCode(ya);for(var es=1;es<=12;es++)$n[es+111]=$n[es+63235]="F"+es;var an={};an.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"},an.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"},an.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"},an.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"]},an.default=B?an.macDefault:an.pcDefault;function C3(t){var r=t.split(/-(?!$)/);t=r[r.length-1];for(var a,s,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))a=!0;else if(/^(c|ctrl|control)$/i.test(p))s=!0;else if(/^s(hift)?$/i.test(p))c=!0;else throw new Error("Unrecognized modifier name: "+p)}return a&&(t="Alt-"+t),s&&(t="Ctrl-"+t),h&&(t="Cmd-"+t),c&&(t="Shift-"+t),t}function w3(t){var r={};for(var a in t)if(t.hasOwnProperty(a)){var s=t[a];if(/^(name|fallthrough|(de|at)tach)$/.test(a))continue;if(s=="..."){delete t[a];continue}for(var c=Ve(a.split(" "),C3),h=0;h<c.length;h++){var f=void 0,p=void 0;h==c.length-1?(p=c.join(" "),f=s):(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[a]}for(var m in r)t[m]=r[m];return t}function ji(t,r,a,s){r=Ca(r);var c=r.call?r.call(t,s):r[t];if(c===!1)return"nothing";if(c==="...")return"multi";if(c!=null&&a(c))return"handled";if(r.fallthrough){if(Object.prototype.toString.call(r.fallthrough)!="[object Array]")return ji(t,r.fallthrough,a,s);for(var h=0;h<r.fallthrough.length;h++){var f=ji(t,r.fallthrough[h],a,s);if(f)return f}}}function gd(t){var r=typeof t=="string"?t:$n[t.keyCode];return r=="Ctrl"||r=="Alt"||r=="Shift"||r=="Mod"}function vd(t,r,a){var s=t;return r.altKey&&s!="Alt"&&(t="Alt-"+t),(me?r.metaKey:r.ctrlKey)&&s!="Ctrl"&&(t="Ctrl-"+t),(me?r.ctrlKey:r.metaKey)&&s!="Mod"&&(t="Cmd-"+t),!a&&r.shiftKey&&s!="Shift"&&(t="Shift-"+t),t}function bd(t,r){if($&&t.keyCode==34&&t.char)return!1;var a=$n[t.keyCode];return a==null||t.altGraphKey?!1:(t.keyCode==3&&t.code&&(a=t.code),vd(a,t,r))}function Ca(t){return typeof t=="string"?an[t]:t}function Gi(t,r){for(var a=t.doc.sel.ranges,s=[],c=0;c<a.length;c++){for(var h=r(a[c]);s.length&&C(h.from,_e(s).to)<=0;){var f=s.pop();if(C(f.from,h.from)<0){h.from=f.from;break}}s.push(h)}Xt(t,function(){for(var p=s.length-1;p>=0;p--)Wi(t.doc,"",s[p].from,s[p].to,"+delete");Ri(t)})}function A1(t,r,a){var s=Dt(t.text,r+a,a);return s<0||s>t.text.length?null:s}function P1(t,r,a){var s=A1(t,r.ch,a);return s==null?null:new J(r.line,s,a<0?"after":"before")}function D1(t,r,a,s,c){if(t){r.doc.direction=="rtl"&&(c=-c);var h=Kt(a,r.doc.direction);if(h){var f=c<0?_e(h):h[0],p=c<0==(f.level==1),g=p?"after":"before",m;if(f.level>0||r.doc.direction=="rtl"){var z=Pi(r,a);m=c<0?a.text.length-1:0;var S=Ur(r,z,m).top;m=Nr(function(P){return Ur(r,z,P).top==S},c<0==(f.level==1)?f.from:f.to-1,m),g=="before"&&(m=A1(a,m,1))}else m=c<0?f.to:f.from;return new J(s,m,g)}}return new J(s,c<0?a.text.length:0,c<0?"before":"after")}function x3(t,r,a,s){var c=Kt(r,t.doc.direction);if(!c)return P1(r,a,s);a.ch>=r.text.length?(a.ch=r.text.length,a.sticky="before"):a.ch<=0&&(a.ch=0,a.sticky="after");var h=st(c,a.ch,a.sticky),f=c[h];if(t.doc.direction=="ltr"&&f.level%2==0&&(s>0?f.to>a.ch:f.from<a.ch))return P1(r,a,s);var p=function(se,he){return A1(r,se instanceof J?se.ch:se,he)},g,m=function(se){return t.options.lineWrapping?(g=g||Pi(t,r),w0(t,r,g,se)):{begin:0,end:r.text.length}},z=m(a.sticky=="before"?p(a,-1):a.ch);if(t.doc.direction=="rtl"||f.level==1){var S=f.level==1==s<0,P=p(a,S?1:-1);if(P!=null&&(S?P<=f.to&&P<=z.end:P>=f.from&&P>=z.begin)){var I=S?"before":"after";return new J(a.line,P,I)}}var Z=function(se,he,ae){for(var pe=function(Je,Lt){return Lt?new J(a.line,p(Je,1),"before"):new J(a.line,Je,"after")};se>=0&&se<c.length;se+=he){var Le=c[se],xe=he>0==(Le.level!=1),Pe=xe?ae.begin:p(ae.end,-1);if(Le.from<=Pe&&Pe<Le.to||(Pe=xe?Le.from:p(Le.to,-1),ae.begin<=Pe&&Pe<ae.end))return pe(Pe,xe)}},q=Z(h+s,s,z);if(q)return q;var te=s>0?z.end:p(z.begin,-1);return te!=null&&!(s>0&&te==r.text.length)&&(q=Z(s>0?0:c.length-1,s,m(te)),q)?q:null}var ts={selectAll:td,singleSelection:function(t){return t.setSelection(t.getCursor("anchor"),t.getCursor("head"),De)},killLine:function(t){return Gi(t,function(r){if(r.empty()){var a=be(t.doc,r.head.line).text.length;return r.head.ch==a&&r.head.line<t.lastLine()?{from:r.head,to:J(r.head.line+1,0)}:{from:r.head,to:J(r.head.line,a)}}else return{from:r.from(),to:r.to()}})},deleteLine:function(t){return Gi(t,function(r){return{from:J(r.from().line,0),to:de(t.doc,J(r.to().line+1,0))}})},delLineLeft:function(t){return Gi(t,function(r){return{from:J(r.from().line,0),to:r.from()}})},delWrappedLineLeft:function(t){return Gi(t,function(r){var a=t.charCoords(r.head,"div").top+5,s=t.coordsChar({left:0,top:a},"div");return{from:s,to:r.from()}})},delWrappedLineRight:function(t){return Gi(t,function(r){var a=t.charCoords(r.head,"div").top+5,s=t.coordsChar({left:t.display.lineDiv.offsetWidth+100,top:a},"div");return{from:r.from(),to:s}})},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(J(t.firstLine(),0))},goDocEnd:function(t){return t.extendSelection(J(t.lastLine()))},goLineStart:function(t){return t.extendSelectionsBy(function(r){return md(t,r.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(t){return t.extendSelectionsBy(function(r){return yd(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 a=t.cursorCoords(r.head,"div").top+5;return t.coordsChar({left:t.display.lineDiv.offsetWidth+100,top:a},"div")},Te)},goLineLeft:function(t){return t.extendSelectionsBy(function(r){var a=t.cursorCoords(r.head,"div").top+5;return t.coordsChar({left:0,top:a},"div")},Te)},goLineLeftSmart:function(t){return t.extendSelectionsBy(function(r){var a=t.cursorCoords(r.head,"div").top+5,s=t.coordsChar({left:0,top:a},"div");return s.ch<t.getLine(s.line).search(/\S/)?yd(t,r.head):s},Te)},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=[],a=t.listSelections(),s=t.options.tabSize,c=0;c<a.length;c++){var h=a[c].from(),f=Xe(t.getLine(h.line),h.ch,s);r.push(nr(s-f%s))}t.replaceSelections(r)},defaultTab:function(t){t.somethingSelected()?t.indentSelection("add"):t.execCommand("insertTab")},transposeChars:function(t){return Xt(t,function(){for(var r=t.listSelections(),a=[],s=0;s<r.length;s++)if(r[s].empty()){var c=r[s].head,h=be(t.doc,c.line).text;if(h){if(c.ch==h.length&&(c=new J(c.line,c.ch-1)),c.ch>0)c=new J(c.line,c.ch+1),t.replaceRange(h.charAt(c.ch-1)+h.charAt(c.ch-2),J(c.line,c.ch-2),c,"+transpose");else if(c.line>t.doc.first){var f=be(t.doc,c.line-1).text;f&&(c=new J(c.line,1),t.replaceRange(h.charAt(0)+t.doc.lineSeparator()+f.charAt(f.length-1),J(c.line-1,f.length-1),c,"+transpose"))}}a.push(new Ge(c,c))}t.setSelections(a)})},newlineAndIndent:function(t){return Xt(t,function(){for(var r=t.listSelections(),a=r.length-1;a>=0;a--)t.replaceRange(t.doc.lineSeparator(),r[a].anchor,r[a].head,"+input");r=t.listSelections();for(var s=0;s<r.length;s++)t.indentLine(r[s].from().line,null,!0);Ri(t)})},openLine:function(t){return t.replaceSelection(`
2990
- `,"start")},toggleOverwrite:function(t){return t.toggleOverwrite()}};function md(t,r){var a=be(t.doc,r),s=Zr(a);return s!=a&&(r=je(s)),D1(!0,t,s,r,1)}function z3(t,r){var a=be(t.doc,r),s=s4(a);return s!=a&&(r=je(s)),D1(!0,t,a,r,-1)}function yd(t,r){var a=md(t,r.line),s=be(t.doc,a.line),c=Kt(s,t.doc.direction);if(!c||c[0].level==0){var h=Math.max(a.ch,s.text.search(/\S/)),f=r.line==a.line&&r.ch<=h&&r.ch;return J(a.line,f?0:h,a.sticky)}return a}function wa(t,r,a){if(typeof r=="string"&&(r=ts[r],!r))return!1;t.display.input.ensurePolled();var s=t.display.shift,c=!1;try{t.isReadOnly()&&(t.state.suppressEdits=!0),a&&(t.display.shift=!1),c=r(t)!=Ie}finally{t.display.shift=s,t.state.suppressEdits=!1}return c}function L3(t,r,a){for(var s=0;s<t.state.keyMaps.length;s++){var c=ji(r,t.state.keyMaps[s],a,t);if(c)return c}return t.options.extraKeys&&ji(r,t.options.extraKeys,a,t)||ji(r,t.options.keyMap,a,t)}var S3=new Be;function rs(t,r,a,s){var c=t.state.keySeq;if(c){if(gd(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())}),Cd(t,c+" "+r,a,s))return!0}return Cd(t,r,a,s)}function Cd(t,r,a,s){var c=L3(t,r,s);return c=="multi"&&(t.state.keySeq=r),c=="handled"&&wt(t,"keyHandled",t,r,a),(c=="handled"||c=="multi")&&(_t(a),m1(t)),!!c}function wd(t,r){var a=bd(r,!0);return a?r.shiftKey&&!t.state.keySeq?rs(t,"Shift-"+a,r,function(s){return wa(t,s,!0)})||rs(t,a,r,function(s){if(typeof s=="string"?/^go[A-Z]/.test(s):s.motion)return wa(t,s)}):rs(t,a,r,function(s){return wa(t,s)}):!1}function M3(t,r,a){return rs(t,"'"+a+"'",r,function(s){return wa(t,s,!0)})}var N1=null;function xd(t){var r=this;if(!(t.target&&t.target!=r.display.input.getField())&&(r.curOp.focus=ye(),!ft(r,t))){y&&b<11&&t.keyCode==27&&(t.returnValue=!1);var a=t.keyCode;r.display.shift=a==16||t.shiftKey;var s=wd(r,t);$&&(N1=s?a:null,!s&&a==88&&!Ks&&(B?t.metaKey:t.ctrlKey)&&r.replaceSelection("",null,"cut")),l&&!B&&!s&&a==46&&t.shiftKey&&!t.ctrlKey&&document.execCommand&&document.execCommand("cut"),a==18&&!/\bCodeMirror-crosshair\b/.test(r.display.lineDiv.className)&&T3(r)}}function T3(t){var r=t.display.lineDiv;ke(r,"CodeMirror-crosshair");function a(s){(s.keyCode==18||!s.altKey)&&(X(r,"CodeMirror-crosshair"),Ft(document,"keyup",a),Ft(document,"mouseover",a))}Se(document,"keyup",a),Se(document,"mouseover",a)}function zd(t){t.keyCode==16&&(this.doc.sel.shift=!1),ft(this,t)}function Ld(t){var r=this;if(!(t.target&&t.target!=r.display.input.getField())&&!(sn(r.display,t)||ft(r,t)||t.ctrlKey&&!t.altKey||B&&t.metaKey)){var a=t.keyCode,s=t.charCode;if($&&a==N1){N1=null,_t(t);return}if(!($&&(!t.which||t.which<10)&&wd(r,t))){var c=String.fromCharCode(s==null?a:s);c!="\b"&&(M3(r,t,c)||r.display.input.onKeyPress(t))}}}var k3=400,H1=function(t,r,a){this.time=t,this.pos=r,this.button=a};H1.prototype.compare=function(t,r,a){return this.time+k3>t&&C(r,this.pos)==0&&a==this.button};var ns,is;function O3(t,r){var a=+new Date;return is&&is.compare(a,t,r)?(ns=is=null,"triple"):ns&&ns.compare(a,t,r)?(is=new H1(a,t,r),ns=null,"double"):(ns=new H1(a,t,r),is=null,"single")}function Sd(t){var r=this,a=r.display;if(!(ft(r,t)||a.activeTouch&&a.input.supportsTouch())){if(a.input.ensurePolled(),a.shift=t.shiftKey,sn(a,t)){M||(a.scroller.draggable=!1,setTimeout(function(){return a.scroller.draggable=!0},100));return}if(!R1(r,t)){var s=Kn(r,t),c=js(t),h=s?O3(s,c):"single";window.focus(),c==1&&r.state.selectingText&&r.state.selectingText(t),!(s&&$3(r,c,s,h,t))&&(c==1?s?_3(r,s,h,t):wn(t)==a.scroller&&_t(t):c==2?(s&&ga(r.doc,s),setTimeout(function(){return a.input.focus()},20)):c==3&&(Me?r.display.input.onContextMenu(t):y1(r)))}}}function $3(t,r,a,s,c){var h="Click";return s=="double"?h="Double"+h:s=="triple"&&(h="Triple"+h),h=(r==1?"Left":r==2?"Middle":"Right")+h,rs(t,vd(h,c),c,function(f){if(typeof f=="string"&&(f=ts[f]),!f)return!1;var p=!1;try{t.isReadOnly()&&(t.state.suppressEdits=!0),p=f(t,a)!=Ie}finally{t.state.suppressEdits=!1}return p})}function E3(t,r,a){var s=t.getOption("configureMouse"),c=s?s(t,r,a):{};if(c.unit==null){var h=K?a.shiftKey&&a.metaKey:a.altKey;c.unit=h?"rectangle":r=="single"?"char":r=="double"?"word":"line"}return(c.extend==null||t.doc.extend)&&(c.extend=t.doc.extend||a.shiftKey),c.addNew==null&&(c.addNew=B?a.metaKey:a.ctrlKey),c.moveOnDrag==null&&(c.moveOnDrag=!(B?a.altKey:a.ctrlKey)),c}function _3(t,r,a,s){y?setTimeout(Et(M0,t),0):t.curOp.focus=ye();var c=E3(t,a,s),h=t.doc.sel,f;t.options.dragDrop&&So&&!t.isReadOnly()&&a=="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,s,r,c):A3(t,s,r,c)}function I3(t,r,a,s){var c=t.display,h=!1,f=xt(t,function(m){M&&(c.scroller.draggable=!1),t.state.draggingText=!1,t.state.delayingBlurEvent&&(t.hasFocus()?t.state.delayingBlurEvent=!1:y1(t)),Ft(c.wrapper.ownerDocument,"mouseup",f),Ft(c.wrapper.ownerDocument,"mousemove",p),Ft(c.scroller,"dragstart",g),Ft(c.scroller,"drop",f),h||(_t(m),s.addNew||ga(t.doc,a,null,null,s.extend),M&&!N||y&&b==9?setTimeout(function(){c.wrapper.ownerDocument.body.focus({preventScroll:!0}),c.input.focus()},20):c.input.focus())}),p=function(m){h=h||Math.abs(r.clientX-m.clientX)+Math.abs(r.clientY-m.clientY)>=10},g=function(){return h=!0};M&&(c.scroller.draggable=!0),t.state.draggingText=f,f.copy=!s.moveOnDrag,Se(c.wrapper.ownerDocument,"mouseup",f),Se(c.wrapper.ownerDocument,"mousemove",p),Se(c.scroller,"dragstart",g),Se(c.scroller,"drop",f),t.state.delayingBlurEvent=!0,setTimeout(function(){return c.input.focus()},20),c.scroller.dragDrop&&c.scroller.dragDrop()}function Md(t,r,a){if(a=="char")return new Ge(r,r);if(a=="word")return t.findWordAt(r);if(a=="line")return new Ge(J(r.line,0),de(t.doc,J(r.line+1,0)));var s=a(t,r);return new Ge(s.from,s.to)}function A3(t,r,a,s){y&&y1(t);var c=t.display,h=t.doc;_t(r);var f,p,g=h.sel,m=g.ranges;if(s.addNew&&!s.extend?(p=h.sel.contains(a),p>-1?f=m[p]:f=new Ge(a,a)):(f=h.sel.primary(),p=h.sel.primIndex),s.unit=="rectangle")s.addNew||(f=new Ge(a,a)),a=Kn(t,r,!0,!0),p=-1;else{var z=Md(t,a,s.unit);s.extend?f=_1(f,z.anchor,z.head,s.extend):f=z}s.addNew?p==-1?(p=m.length,At(h,xr(t,m.concat([f]),p),{scroll:!1,origin:"*mouse"})):m.length>1&&m[p].empty()&&s.unit=="char"&&!s.extend?(At(h,xr(t,m.slice(0,p).concat(m.slice(p+1)),0),{scroll:!1,origin:"*mouse"}),g=h.sel):I1(h,p,f,Ae):(p=0,At(h,new ur([f],0),Ae),g=h.sel);var S=a;function P(ae){if(C(S,ae)!=0)if(S=ae,s.unit=="rectangle"){for(var pe=[],Le=t.options.tabSize,xe=Xe(be(h,a.line).text,a.ch,Le),Pe=Xe(be(h,ae.line).text,ae.ch,Le),Je=Math.min(xe,Pe),Lt=Math.max(xe,Pe),it=Math.min(a.line,ae.line),Jt=Math.min(t.lastLine(),Math.max(a.line,ae.line));it<=Jt;it++){var Wt=be(h,it).text,pt=ht(Wt,Je,Le);Je==Lt?pe.push(new Ge(J(it,pt),J(it,pt))):Wt.length>pt&&pe.push(new Ge(J(it,pt),J(it,ht(Wt,Lt,Le))))}pe.length||pe.push(new Ge(a,a)),At(h,xr(t,g.ranges.slice(0,p).concat(pe),p),{origin:"*mouse",scroll:!1}),t.scrollIntoView(ae)}else{var Ut=f,kt=Md(t,ae,s.unit),bt=Ut.anchor,gt;C(kt.anchor,bt)>0?(gt=kt.head,bt=$e(Ut.from(),kt.anchor)):(gt=kt.anchor,bt=ee(Ut.to(),kt.head));var lt=g.ranges.slice(0);lt[p]=P3(t,new Ge(de(h,bt),gt)),At(h,xr(t,lt,p),Ae)}}var I=c.wrapper.getBoundingClientRect(),Z=0;function q(ae){var pe=++Z,Le=Kn(t,ae,!0,s.unit=="rectangle");if(Le)if(C(Le,S)!=0){t.curOp.focus=ye(),P(Le);var xe=ca(c,h);(Le.line>=xe.to||Le.line<xe.from)&&setTimeout(xt(t,function(){Z==pe&&q(ae)}),150)}else{var Pe=ae.clientY<I.top?-20:ae.clientY>I.bottom?20:0;Pe&&setTimeout(xt(t,function(){Z==pe&&(c.scroller.scrollTop+=Pe,q(ae))}),50)}}function te(ae){t.state.selectingText=!1,Z=1/0,ae&&(_t(ae),c.input.focus()),Ft(c.wrapper.ownerDocument,"mousemove",se),Ft(c.wrapper.ownerDocument,"mouseup",he),h.history.lastSelOrigin=null}var se=xt(t,function(ae){ae.buttons===0||!js(ae)?te(ae):q(ae)}),he=xt(t,te);t.state.selectingText=he,Se(c.wrapper.ownerDocument,"mousemove",se),Se(c.wrapper.ownerDocument,"mouseup",he)}function P3(t,r){var a=r.anchor,s=r.head,c=be(t.doc,a.line);if(C(a,s)==0&&a.sticky==s.sticky)return r;var h=Kt(c);if(!h)return r;var f=st(h,a.ch,a.sticky),p=h[f];if(p.from!=a.ch&&p.to!=a.ch)return r;var g=f+(p.from==a.ch==(p.level!=1)?0:1);if(g==0||g==h.length)return r;var m;if(s.line!=a.line)m=(s.line-a.line)*(t.doc.direction=="ltr"?1:-1)>0;else{var z=st(h,s.ch,s.sticky),S=z-f||(s.ch-a.ch)*(p.level==1?-1:1);z==g-1||z==g?m=S<0:m=S>0}var P=h[g+(m?-1:0)],I=m==(P.level==1),Z=I?P.from:P.to,q=I?"after":"before";return a.ch==Z&&a.sticky==q?r:new Ge(new J(a.line,Z,q),s)}function Td(t,r,a,s){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;s&&_t(r);var f=t.display,p=f.lineDiv.getBoundingClientRect();if(h>p.bottom||!Tt(t,a))return or(r);h-=p.top-f.viewOffset;for(var g=0;g<t.display.gutterSpecs.length;++g){var m=f.gutters.childNodes[g];if(m&&m.getBoundingClientRect().right>=c){var z=Br(t.doc,h),S=t.display.gutterSpecs[g];return Oe(t,a,t,z,S.className,r),or(r)}}}function R1(t,r){return Td(t,r,"gutterClick",!0)}function kd(t,r){sn(t.display,r)||D3(t,r)||ft(t,r,"contextmenu")||Me||t.display.input.onContextMenu(r)}function D3(t,r){return Tt(t,"gutterContextMenu")?Td(t,r,"gutterContextMenu",!1):!1}function Od(t){t.display.wrapper.className=t.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+t.options.theme.replace(/(^|\s)\s*/g," cm-s-"),Ho(t)}var qi={toString:function(){return"CodeMirror.Init"}},$d={},xa={};function N3(t){var r=t.optionHandlers;function a(s,c,h,f){t.defaults[s]=c,h&&(r[s]=f?function(p,g,m){m!=qi&&h(p,g,m)}:h)}t.defineOption=a,t.Init=qi,a("value","",function(s,c){return s.setValue(c)},!0),a("mode",null,function(s,c){s.doc.modeOption=c,O1(s)},!0),a("indentUnit",2,O1,!0),a("indentWithTabs",!1),a("smartIndent",!0),a("tabSize",4,function(s){jo(s),Ho(s),Vt(s)},!0),a("lineSeparator",null,function(s,c){if(s.doc.lineSep=c,!!c){var h=[],f=s.doc.first;s.doc.iter(function(g){for(var m=0;;){var z=g.text.indexOf(c,m);if(z==-1)break;m=z+c.length,h.push(J(f,z))}f++});for(var p=h.length-1;p>=0;p--)Wi(s.doc,c,h[p],J(h[p].line,h[p].ch+c.length))}}),a("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(s,c,h){s.state.specialChars=new RegExp(c.source+(c.test(" ")?"":"| "),"g"),h!=qi&&s.refresh()}),a("specialCharPlaceholder",h4,function(s){return s.refresh()},!0),a("electricChars",!0),a("inputStyle",A?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),a("spellcheck",!1,function(s,c){return s.getInputField().spellcheck=c},!0),a("autocorrect",!1,function(s,c){return s.getInputField().autocorrect=c},!0),a("autocapitalize",!1,function(s,c){return s.getInputField().autocapitalize=c},!0),a("rtlMoveVisually",!ue),a("wholeLineUpdateBefore",!0),a("theme","default",function(s){Od(s),Uo(s)},!0),a("keyMap","default",function(s,c,h){var f=Ca(c),p=h!=qi&&Ca(h);p&&p.detach&&p.detach(s,f),f.attach&&f.attach(s,p||null)}),a("extraKeys",null),a("configureMouse",null),a("lineWrapping",!1,R3,!0),a("gutters",[],function(s,c){s.display.gutterSpecs=T1(c,s.options.lineNumbers),Uo(s)},!0),a("fixedGutter",!0,function(s,c){s.display.gutters.style.left=c?v1(s.display)+"px":"0",s.refresh()},!0),a("coverGutterNextToScrollbar",!1,function(s){return Fi(s)},!0),a("scrollbarStyle","native",function(s){_0(s),Fi(s),s.display.scrollbars.setScrollTop(s.doc.scrollTop),s.display.scrollbars.setScrollLeft(s.doc.scrollLeft)},!0),a("lineNumbers",!1,function(s,c){s.display.gutterSpecs=T1(s.options.gutters,c),Uo(s)},!0),a("firstLineNumber",1,Uo,!0),a("lineNumberFormatter",function(s){return s},Uo,!0),a("showCursorWhenSelecting",!1,Ro,!0),a("resetSelectionOnContextMenu",!0),a("lineWiseCopyCut",!0),a("pasteLinesPerSelection",!0),a("selectionsMayTouch",!1),a("readOnly",!1,function(s,c){c=="nocursor"&&(Hi(s),s.display.input.blur()),s.display.input.readOnlyChanged(c)}),a("screenReaderLabel",null,function(s,c){c=c===""?null:c,s.display.input.screenReaderLabelChanged(c)}),a("disableInput",!1,function(s,c){c||s.display.input.reset()},!0),a("dragDrop",!0,H3),a("allowDropFileTypes",null),a("cursorBlinkRate",530),a("cursorScrollMargin",0),a("cursorHeight",1,Ro,!0),a("singleCursorHeightPerLine",!0,Ro,!0),a("workTime",100),a("workDelay",100),a("flattenSpans",!0,jo,!0),a("addModeClass",!1,jo,!0),a("pollInterval",100),a("undoDepth",200,function(s,c){return s.doc.history.undoDepth=c}),a("historyEventDelay",1250),a("viewportMargin",10,function(s){return s.refresh()},!0),a("maxHighlightLength",1e4,jo,!0),a("moveInputWithCursor",!0,function(s,c){c||s.display.input.resetPosition()}),a("tabindex",null,function(s,c){return s.display.input.getField().tabIndex=c||""}),a("autofocus",null),a("direction","ltr",function(s,c){return s.doc.setDirection(c)},!0),a("phrases",null)}function H3(t,r,a){var s=a&&a!=qi;if(!r!=!s){var c=t.display.dragFunctions,h=r?Se:Ft;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?(ke(t.display.wrapper,"CodeMirror-wrap"),t.display.sizer.style.minWidth="",t.display.sizerWidth=null):(X(t.display.wrapper,"CodeMirror-wrap"),s1(t)),b1(t),Vt(t),Ho(t),setTimeout(function(){return Fi(t)},100)}function tt(t,r){var a=this;if(!(this instanceof tt))return new tt(t,r);this.options=r=r?Ye(r):{},Ye($d,r,!1);var s=r.value;typeof s=="string"?s=new Zt(s,r.mode,null,r.lineSeparator,r.direction):r.mode&&(s.modeOption=r.mode),this.doc=s;var c=new tt.inputStyles[r.inputStyle](this),h=this.display=new J4(t,s,c,r);h.wrapper.CodeMirror=this,Od(this),r.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),_0(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 Be,keySeq:null,specialChars:null},r.autofocus&&!A&&h.input.focus(),y&&b<11&&setTimeout(function(){return a.display.input.reset(!0)},20),F3(this),b3(),Qn(this),this.curOp.forceUpdate=!0,V0(this,s),r.autofocus&&!A||this.hasFocus()?setTimeout(function(){a.hasFocus()&&!a.state.focused&&C1(a)},20):Hi(this);for(var f in xa)xa.hasOwnProperty(f)&&xa[f](this,r[f],qi);P0(this),r.finishInit&&r.finishInit(this);for(var p=0;p<F1.length;++p)F1[p](this);ei(this),M&&r.lineWrapping&&getComputedStyle(h.lineDiv).textRendering=="optimizelegibility"&&(h.lineDiv.style.textRendering="auto")}tt.defaults=$d,tt.optionHandlers=xa;function F3(t){var r=t.display;Se(r.scroller,"mousedown",xt(t,Sd)),y&&b<11?Se(r.scroller,"dblclick",xt(t,function(g){if(!ft(t,g)){var m=Kn(t,g);if(!(!m||R1(t,g)||sn(t.display,g))){_t(g);var z=t.findWordAt(m);ga(t.doc,z.anchor,z.head)}}})):Se(r.scroller,"dblclick",function(g){return ft(t,g)||_t(g)}),Se(r.scroller,"contextmenu",function(g){return kd(t,g)}),Se(r.input.getField(),"contextmenu",function(g){r.scroller.contains(g.target)||kd(t,g)});var a,s={end:0};function c(){r.activeTouch&&(a=setTimeout(function(){return r.activeTouch=null},1e3),s=r.activeTouch,s.end=+new Date)}function h(g){if(g.touches.length!=1)return!1;var m=g.touches[0];return m.radiusX<=1&&m.radiusY<=1}function f(g,m){if(m.left==null)return!0;var z=m.left-g.left,S=m.top-g.top;return z*z+S*S>20*20}Se(r.scroller,"touchstart",function(g){if(!ft(t,g)&&!h(g)&&!R1(t,g)){r.input.ensurePolled(),clearTimeout(a);var m=+new Date;r.activeTouch={start:m,moved:!1,prev:m-s.end<=300?s:null},g.touches.length==1&&(r.activeTouch.left=g.touches[0].pageX,r.activeTouch.top=g.touches[0].pageY)}}),Se(r.scroller,"touchmove",function(){r.activeTouch&&(r.activeTouch.moved=!0)}),Se(r.scroller,"touchend",function(g){var m=r.activeTouch;if(m&&!sn(r,g)&&m.left!=null&&!m.moved&&new Date-m.start<300){var z=t.coordsChar(r.activeTouch,"page"),S;!m.prev||f(m,m.prev)?S=new Ge(z,z):!m.prev.prev||f(m,m.prev.prev)?S=t.findWordAt(z):S=new Ge(J(z.line,0),de(t.doc,J(z.line+1,0))),t.setSelection(S.anchor,S.head),t.focus(),_t(g)}c()}),Se(r.scroller,"touchcancel",c),Se(r.scroller,"scroll",function(){r.scroller.clientHeight&&(Bo(t,r.scroller.scrollTop),Xn(t,r.scroller.scrollLeft,!0),Oe(t,"scroll",t))}),Se(r.scroller,"mousewheel",function(g){return H0(t,g)}),Se(r.scroller,"DOMMouseScroll",function(g){return H0(t,g)}),Se(r.wrapper,"scroll",function(){return r.wrapper.scrollTop=r.wrapper.scrollLeft=0}),r.dragFunctions={enter:function(g){ft(t,g)||Un(g)},over:function(g){ft(t,g)||(v3(t,g),Un(g))},start:function(g){return g3(t,g)},drop:xt(t,p3),leave:function(g){ft(t,g)||hd(t)}};var p=r.input.getField();Se(p,"keyup",function(g){return zd.call(t,g)}),Se(p,"keydown",xt(t,xd)),Se(p,"keypress",xt(t,Ld)),Se(p,"focus",function(g){return C1(t,g)}),Se(p,"blur",function(g){return Hi(t,g)})}var F1=[];tt.defineInitHook=function(t){return F1.push(t)};function os(t,r,a,s){var c=t.doc,h;a==null&&(a="add"),a=="smart"&&(c.mode.indent?h=Io(t,r).state:a="prev");var f=t.options.tabSize,p=be(c,r),g=Xe(p.text,null,f);p.stateAfter&&(p.stateAfter=null);var m=p.text.match(/^\s*/)[0],z;if(!s&&!/\S/.test(p.text))z=0,a="not";else if(a=="smart"&&(z=c.mode.indent(h,p.text.slice(m.length),p.text),z==Ie||z>150)){if(!s)return;a="prev"}a=="prev"?r>c.first?z=Xe(be(c,r-1).text,null,f):z=0:a=="add"?z=g+t.options.indentUnit:a=="subtract"?z=g-t.options.indentUnit:typeof a=="number"&&(z=g+a),z=Math.max(0,z);var S="",P=0;if(t.options.indentWithTabs)for(var I=Math.floor(z/f);I;--I)P+=f,S+=" ";if(P<z&&(S+=nr(z-P)),S!=m)return Wi(c,S,J(r,0),J(r,m.length),"+input"),p.stateAfter=null,!0;for(var Z=0;Z<c.sel.ranges.length;Z++){var q=c.sel.ranges[Z];if(q.head.line==r&&q.head.ch<m.length){var te=J(r,m.length);I1(c,Z,new Ge(te,te));break}}}var zr=null;function za(t){zr=t}function B1(t,r,a,s,c){var h=t.doc;t.display.shift=!1,s||(s=h.sel);var f=+new Date-200,p=c=="paste"||t.state.pasteIncoming>f,g=To(r),m=null;if(p&&s.ranges.length>1)if(zr&&zr.text.join(`
2988
+ 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,a,s){s==null&&(s=0);var c;!t.options.lineWrapping&&r==a&&(a=r.sticky=="before"?J(r.line,r.ch+1,"before"):r,r=r.ch?J(r.line,r.sticky=="before"?r.ch-1:r.ch,"after"):r);for(var h=0;h<5;h++){var f=!1,p=wr(t,r),g=!a||a==r?p:wr(t,a);c={left:Math.min(p.left,g.left),top:Math.min(p.top,g.top)-s,right:Math.max(p.left,g.left),bottom:Math.max(p.bottom,g.bottom)+s};var m=w1(t,c),z=t.doc.scrollTop,S=t.doc.scrollLeft;if(m.scrollTop!=null&&(Bo(t,m.scrollTop),Math.abs(t.doc.scrollTop-z)>1&&(f=!0)),m.scrollLeft!=null&&(Yi(t,m.scrollLeft),Math.abs(t.doc.scrollLeft-S)>1&&(f=!0)),!f)break}return c}function H4(t,r){var a=w1(t,r);a.scrollTop!=null&&Bo(t,a.scrollTop),a.scrollLeft!=null&&Yi(t,a.scrollLeft)}function w1(t,r){var a=t.display,s=Dn(t.display);r.top<0&&(r.top=0);var c=t.curOp&&t.curOp.scrollTop!=null?t.curOp.scrollTop:a.scroller.scrollTop,h=c1(t),f={};r.bottom-r.top>h&&(r.bottom=r.top+h);var p=t.doc.height+l1(a),g=r.top<s,m=r.bottom>p-s;if(r.top<c)f.scrollTop=g?0:r.top;else if(r.bottom>c+h){var z=Math.min(r.top,(m?p:r.bottom)-h);z!=c&&(f.scrollTop=z)}var S=t.options.fixedGutter?0:a.gutters.offsetWidth,P=t.curOp&&t.curOp.scrollLeft!=null?t.curOp.scrollLeft:a.scroller.scrollLeft-S,I=ji(t)-a.gutters.offsetWidth,Z=r.right-r.left>I;return Z&&(r.right=r.left+I),r.left<10?f.scrollLeft=0:r.left<P?f.scrollLeft=Math.max(0,r.left+S-(Z?0:10)):r.right>I+P-3&&(f.scrollLeft=r.right+(Z?0:10)-I),f}function x1(t,r){r!=null&&(ua(t),t.curOp.scrollTop=(t.curOp.scrollTop==null?t.doc.scrollTop:t.curOp.scrollTop)+r)}function Rn(t){ua(t);var r=t.getCursor();t.curOp.scrollToPos={from:r,to:r,margin:t.options.cursorScrollMargin}}function Fo(t,r,a){(r!=null||a!=null)&&ua(t),r!=null&&(t.curOp.scrollLeft=r),a!=null&&(t.curOp.scrollTop=a)}function R4(t,r){ua(t),t.curOp.scrollToPos=r}function ua(t){var r=t.curOp.scrollToPos;if(r){t.curOp.scrollToPos=null;var a=y0(t,r.from),s=y0(t,r.to);k0(t,a,s,r.margin)}}function k0(t,r,a,s){var c=w1(t,{left:Math.min(r.left,a.left),top:Math.min(r.top,a.top)-s,right:Math.max(r.right,a.right),bottom:Math.max(r.bottom,a.bottom)+s});Fo(t,c.scrollLeft,c.scrollTop)}function Bo(t,r){Math.abs(t.doc.scrollTop-r)<2||(l||L1(t,{top:r}),O0(t,r,!0),l&&L1(t),Wo(t,100))}function O0(t,r,a){r=Math.max(0,Math.min(t.display.scroller.scrollHeight-t.display.scroller.clientHeight,r)),!(t.display.scroller.scrollTop==r&&!a)&&(t.doc.scrollTop=r,t.display.scrollbars.setScrollTop(r),t.display.scroller.scrollTop!=r&&(t.display.scroller.scrollTop=r))}function Yi(t,r,a,s){r=Math.max(0,Math.min(r,t.display.scroller.scrollWidth-t.display.scroller.clientWidth)),!((a?r==t.doc.scrollLeft:Math.abs(t.doc.scrollLeft-r)<2)&&!s)&&(t.doc.scrollLeft=r,A0(t),t.display.scroller.scrollLeft!=r&&(t.display.scroller.scrollLeft=r),t.display.scrollbars.setScrollLeft(r))}function Vo(t){var r=t.display,a=r.gutters.offsetWidth,s=Math.round(t.doc.height+l1(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?a:0,docHeight:s,scrollHeight:s+Wr(t)+r.barHeight,nativeBarWidth:r.nativeBarWidth,gutterWidth:a}}var Xi=function(t,r,a){this.cm=a;var s=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");s.tabIndex=c.tabIndex=-1,t(s),t(c),Se(s,"scroll",function(){s.clientHeight&&r(s.scrollTop,"vertical")}),Se(c,"scroll",function(){c.clientWidth&&r(c.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,y&&b<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Xi.prototype.update=function(t){var r=t.scrollWidth>t.clientWidth+1,a=t.scrollHeight>t.clientHeight+1,s=t.nativeBarWidth;if(a){this.vert.style.display="block",this.vert.style.bottom=r?s+"px":"0";var c=t.viewHeight-(r?s: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=a?s+"px":"0",this.horiz.style.left=t.barLeft+"px";var h=t.viewWidth-t.barLeft-(a?s: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&&(s==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:a?s:0,bottom:r?s:0}},Xi.prototype.setScrollLeft=function(t){this.horiz.scrollLeft!=t&&(this.horiz.scrollLeft=t),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Xi.prototype.setScrollTop=function(t){this.vert.scrollTop!=t&&(this.vert.scrollTop=t),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Xi.prototype.zeroWidthHack=function(){var t=B&&!Y?"12px":"18px";this.horiz.style.height=this.vert.style.width=t,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new Be,this.disableVert=new Be},Xi.prototype.enableZeroWidthBar=function(t,r,a){t.style.pointerEvents="auto";function s(){var c=t.getBoundingClientRect(),h=a=="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,s)}r.set(1e3,s)},Xi.prototype.clear=function(){var t=this.horiz.parentNode;t.removeChild(this.horiz),t.removeChild(this.vert)};var Zo=function(){};Zo.prototype.update=function(){return{bottom:0,right:0}},Zo.prototype.setScrollLeft=function(){},Zo.prototype.setScrollTop=function(){},Zo.prototype.clear=function(){};function Fn(t,r){r||(r=Vo(t));var a=t.display.barWidth,s=t.display.barHeight;$0(t,r);for(var c=0;c<4&&a!=t.display.barWidth||s!=t.display.barHeight;c++)a!=t.display.barWidth&&t.options.lineWrapping&&la(t),$0(t,Vo(t)),a=t.display.barWidth,s=t.display.barHeight}function $0(t,r){var a=t.display,s=a.scrollbars.update(r);a.sizer.style.paddingRight=(a.barWidth=s.right)+"px",a.sizer.style.paddingBottom=(a.barHeight=s.bottom)+"px",a.heightForcer.style.borderBottom=s.bottom+"px solid transparent",s.right&&s.bottom?(a.scrollbarFiller.style.display="block",a.scrollbarFiller.style.height=s.bottom+"px",a.scrollbarFiller.style.width=s.right+"px"):a.scrollbarFiller.style.display="",s.bottom&&t.options.coverGutterNextToScrollbar&&t.options.fixedGutter?(a.gutterFiller.style.display="block",a.gutterFiller.style.height=s.bottom+"px",a.gutterFiller.style.width=r.gutterWidth+"px"):a.gutterFiller.style.display=""}var E0={native:Xi,null:Zo};function _0(t){t.display.scrollbars&&(t.display.scrollbars.clear(),t.display.scrollbars.addClass&&X(t.display.wrapper,t.display.scrollbars.addClass)),t.display.scrollbars=new E0[t.options.scrollbarStyle](function(r){t.display.wrapper.insertBefore(r,t.display.scrollbarFiller),Se(r,"mousedown",function(){t.state.focused&&setTimeout(function(){return t.display.input.focus()},0)}),r.setAttribute("cm-not-content","true")},function(r,a){a=="horizontal"?Yi(t,r):Bo(t,r)},t),t.display.scrollbars.addClass&&ke(t.display.wrapper,t.display.scrollbars.addClass)}var F4=0;function Ji(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 Qi(t){var r=t.curOp;r&&y4(r,function(a){for(var s=0;s<a.ops.length;s++)a.ops[s].cm.curOp=null;B4(a)})}function B4(t){for(var r=t.ops,a=0;a<r.length;a++)V4(r[a]);for(var s=0;s<r.length;s++)Z4(r[s]);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,a=r.display;q4(r),t.updateMaxLine&&s1(r),t.mustUpdate=t.viewChanged||t.forceUpdate||t.scrollTop!=null||t.scrollToPos&&(t.scrollToPos.from.line<a.viewFrom||t.scrollToPos.to.line>=a.viewTo)||a.maxLineChanged&&r.options.lineWrapping,t.update=t.mustUpdate&&new da(r,t.mustUpdate&&{top:t.scrollTop,ensure:t.scrollToPos},t.forceUpdate)}function Z4(t){t.updatedDisplay=t.mustUpdate&&z1(t.cm,t.update)}function W4(t){var r=t.cm,a=r.display;t.updatedDisplay&&la(r),t.barMeasure=Vo(r),a.maxLineChanged&&!r.options.lineWrapping&&(t.adjustWidthTo=d0(r,a.maxLine,a.maxLine.text.length).left+3,r.display.sizerWidth=t.adjustWidthTo,t.barMeasure.scrollWidth=Math.max(a.scroller.clientWidth,a.sizer.offsetLeft+t.adjustWidthTo+Wr(r)+r.display.barWidth),t.maxScrollLeft=Math.max(0,a.sizer.offsetLeft+t.adjustWidthTo-ji(r))),(t.updatedDisplay||t.selectionChanged)&&(t.preparedSelection=a.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&&Yi(r,Math.min(r.display.scroller.scrollLeft,t.maxScrollLeft),!0),r.display.maxLineChanged=!1);var a=t.focus&&t.focus==ye();t.preparedSelection&&r.display.input.showSelection(t.preparedSelection,a),(t.updatedDisplay||t.startHeight!=r.doc.height)&&Fn(r,t.barMeasure),t.updatedDisplay&&M1(r,t.barMeasure),t.selectionChanged&&m1(r),r.state.focused&&t.updateInput&&r.display.input.reset(t.typing),a&&M0(t.cm)}function j4(t){var r=t.cm,a=r.display,s=r.doc;if(t.updatedDisplay&&I0(r,t.update),a.wheelStartX!=null&&(t.scrollTop!=null||t.scrollLeft!=null||t.scrollToPos)&&(a.wheelStartX=a.wheelStartY=null),t.scrollTop!=null&&O0(r,t.scrollTop,t.forceScroll),t.scrollLeft!=null&&Yi(r,t.scrollLeft,!0,!0),t.scrollToPos){var c=N4(r,de(s,t.scrollToPos.from),de(s,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||Oe(h[p],"hide");if(f)for(var g=0;g<f.length;++g)f[g].lines.length&&Oe(f[g],"unhide");a.wrapper.offsetHeight&&(s.scrollTop=r.display.scroller.scrollTop),t.changeObjs&&Oe(r,"changes",r,t.changeObjs),t.update&&t.update.finish()}function Xt(t,r){if(t.curOp)return r();Ji(t);try{return r()}finally{Qi(t)}}function xt(t,r){return function(){if(t.curOp)return r.apply(t,arguments);Ji(t);try{return r.apply(t,arguments)}finally{Qi(t)}}}function Nt(t){return function(){if(this.curOp)return t.apply(this,arguments);Ji(this);try{return t.apply(this,arguments)}finally{Qi(this)}}}function zt(t){return function(){var r=this.cm;if(!r||r.curOp)return t.apply(this,arguments);Ji(r);try{return t.apply(this,arguments)}finally{Qi(r)}}}function Wo(t,r){t.doc.highlightFrontier<t.display.viewTo&&t.state.highlight.set(r,Et(G4,t))}function G4(t){var r=t.doc;if(!(r.highlightFrontier>=t.display.viewTo)){var a=+new Date+t.options.workTime,s=Io(t,r.highlightFrontier),c=[];r.iter(s.line,Math.min(r.first+r.size,t.display.viewTo+500),function(h){if(s.line>=t.display.viewFrom){var f=h.styles,p=h.text.length>t.options.maxHighlightLength?ar(r.mode,s.state):null,g=Ru(t,h,s,!0);p&&(s.state=p),h.styles=g.styles;var m=h.styleClasses,z=g.classes;z?h.styleClasses=z:m&&(h.styleClasses=null);for(var S=!f||f.length!=h.styles.length||m!=z&&(!m||!z||m.bgClass!=z.bgClass||m.textClass!=z.textClass),P=0;!S&&P<f.length;++P)S=f[P]!=h.styles[P];S&&c.push(s.line),h.stateAfter=s.save(),s.nextLine()}else h.text.length<=t.options.maxHighlightLength&&e1(t,h.text,s),h.stateAfter=s.line%5==0?s.save():null,s.nextLine();if(+new Date>a)return Wo(t,t.options.workDelay),!0}),r.highlightFrontier=s.line,r.modeFrontier=Math.max(r.modeFrontier,s.line),c.length&&Xt(t,function(){for(var h=0;h<c.length;h++)zi(t,c[h],"text")})}}var da=function(t,r,a){var s=t.display;this.viewport=r,this.visible=ca(s,t.doc,r),this.editorIsHidden=!s.wrapper.offsetWidth,this.wrapperHeight=s.wrapper.clientHeight,this.wrapperWidth=s.wrapper.clientWidth,this.oldDisplayWidth=ji(t),this.force=a,this.dims=g1(t),this.events=[]};da.prototype.signal=function(t,r){Tt(t,r)&&this.events.push(arguments)},da.prototype.finish=function(){for(var t=0;t<this.events.length;t++)Oe.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=Wr(t)+"px",r.sizer.style.marginBottom=-r.nativeBarWidth+"px",r.sizer.style.borderRightWidth=Wr(t)+"px",r.scrollbarsClipped=!0)}function K4(t){if(t.hasFocus())return null;var r=ye();if(!r||!ne(t.display.lineDiv,r))return null;var a={activeElt:r};if(window.getSelection){var s=window.getSelection();s.anchorNode&&s.extend&&ne(t.display.lineDiv,s.anchorNode)&&(a.anchorNode=s.anchorNode,a.anchorOffset=s.anchorOffset,a.focusNode=s.focusNode,a.focusOffset=s.focusOffset)}return a}function Y4(t){if(!(!t||!t.activeElt||t.activeElt==ye())&&(t.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(t.activeElt.nodeName)&&t.anchorNode&&ne(document.body,t.anchorNode)&&ne(document.body,t.focusNode))){var r=window.getSelection(),a=document.createRange();a.setEnd(t.anchorNode,t.anchorOffset),a.collapse(!1),r.removeAllRanges(),r.addRange(a),r.extend(t.focusNode,t.focusOffset)}}function z1(t,r){var a=t.display,s=t.doc;if(r.editorIsHidden)return Li(t),!1;if(!r.force&&r.visible.from>=a.viewFrom&&r.visible.to<=a.viewTo&&(a.updateLineNumbers==null||a.updateLineNumbers>=a.viewTo)&&a.renderedView==a.view&&z0(t)==0)return!1;P0(t)&&(Li(t),r.dims=g1(t));var c=s.first+s.size,h=Math.max(r.visible.from-t.options.viewportMargin,s.first),f=Math.min(c,r.visible.to+t.options.viewportMargin);a.viewFrom<h&&h-a.viewFrom<20&&(h=Math.max(s.first,a.viewFrom)),a.viewTo>f&&a.viewTo-f<20&&(f=Math.min(c,a.viewTo)),ii&&(h=n1(t.doc,h),f=Qu(t.doc,f));var p=h!=a.viewFrom||f!=a.viewTo||a.lastWrapHeight!=r.wrapperHeight||a.lastWrapWidth!=r.wrapperWidth;A4(t,h,f),a.viewOffset=ni(be(t.doc,a.viewFrom)),t.display.mover.style.top=a.viewOffset+"px";var g=z0(t);if(!p&&g==0&&!r.force&&a.renderedView==a.view&&(a.updateLineNumbers==null||a.updateLineNumbers>=a.viewTo))return!1;var m=K4(t);return g>4&&(a.lineDiv.style.display="none"),X4(t,a.updateLineNumbers,r.dims),g>4&&(a.lineDiv.style.display=""),a.renderedView=a.view,Y4(m),V(a.cursorDiv),V(a.selectionDiv),a.gutters.style.height=a.sizer.style.minHeight=0,p&&(a.lastWrapHeight=r.wrapperHeight,a.lastWrapWidth=r.wrapperWidth,Wo(t,400)),a.updateLineNumbers=null,!0}function I0(t,r){for(var a=r.viewport,s=!0;;s=!1){if(!s||!t.options.lineWrapping||r.oldDisplayWidth==ji(t)){if(a&&a.top!=null&&(a={top:Math.min(t.doc.height+l1(t.display)-c1(t),a.top)}),r.visible=ca(t.display,t.doc,a),r.visible.from>=t.display.viewFrom&&r.visible.to<=t.display.viewTo)break}else s&&(r.visible=ca(t.display,t.doc,a));if(!z1(t,r))break;la(t);var c=Vo(t);Ro(t),Fn(t,c),M1(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 L1(t,r){var a=new da(t,r);if(z1(t,a)){la(t),I0(t,a);var s=Vo(t);Ro(t),Fn(t,s),M1(t,s),a.finish()}}function X4(t,r,a){var s=t.display,c=t.options.lineNumbers,h=s.lineDiv,f=h.firstChild;function p(Z){var q=Z.nextSibling;return M&&B&&t.display.currentWheelTarget==Z?Z.style.display="none":Z.parentNode.removeChild(Z),q}for(var g=s.view,m=s.viewFrom,z=0;z<g.length;z++){var S=g[z];if(!S.hidden)if(!S.node||S.node.parentNode!=h){var P=L4(t,S,m,a);h.insertBefore(P,f)}else{for(;f!=S.node;)f=p(f);var I=c&&r!=null&&r<=m&&S.lineNumber;S.changes&&(ge(S.changes,"gutter")>-1&&(I=!1),n0(t,S,m,a)),I&&(V(S.lineNumber),S.lineNumber.appendChild(document.createTextNode(_o(t.options,m)))),f=S.node.nextSibling}m+=S.size}for(;f;)f=p(f)}function S1(t){var r=t.gutters.offsetWidth;t.sizer.style.marginLeft=r+"px",wt(t,"gutterChanged",t)}function M1(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+Wr(t)+"px"}function A0(t){var r=t.display,a=r.view;if(!(!r.alignWidgets&&(!r.gutters.firstChild||!t.options.fixedGutter))){for(var s=v1(r)-r.scroller.scrollLeft+t.doc.scrollLeft,c=r.gutters.offsetWidth,h=s+"px",f=0;f<a.length;f++)if(!a[f].hidden){t.options.fixedGutter&&(a[f].gutter&&(a[f].gutter.style.left=h),a[f].gutterBackground&&(a[f].gutterBackground.style.left=h));var p=a[f].alignable;if(p)for(var g=0;g<p.length;g++)p[g].style.left=h}t.options.fixedGutter&&(r.gutters.style.left=s+c+"px")}}function P0(t){if(!t.options.lineNumbers)return!1;var r=t.doc,a=_o(t.options,r.first+r.size-1),s=t.display;if(a.length!=s.lineNumChars){var c=s.measure.appendChild(x("div",[x("div",a)],"CodeMirror-linenumber CodeMirror-gutter-elt")),h=c.firstChild.offsetWidth,f=c.offsetWidth-h;return s.lineGutter.style.width="",s.lineNumInnerWidth=Math.max(h,s.lineGutter.offsetWidth-f)+1,s.lineNumWidth=s.lineNumInnerWidth+f,s.lineNumChars=s.lineNumInnerWidth?a.length:-1,s.lineGutter.style.width=s.lineNumWidth+"px",S1(t.display),!0}return!1}function T1(t,r){for(var a=[],s=!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)s=!0;else continue;a.push({className:h,style:f})}return r&&!s&&a.push({className:"CodeMirror-linenumbers",style:null}),a}function D0(t){var r=t.gutters,a=t.gutterSpecs;V(r),t.lineGutter=null;for(var s=0;s<a.length;++s){var c=a[s],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=a.length?"":"none",S1(t)}function Uo(t){D0(t.display),Vt(t),A0(t)}function J4(t,r,a,s){var c=this;this.input=a,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=w("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=w("div",[c.measure,c.lineMeasure,c.selectionDiv,c.cursorDiv,c.lineDiv],null,"position: relative; outline: none");var h=w("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: "+ve+"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"),y&&b<8&&(c.gutters.style.zIndex=-1,c.scroller.style.paddingRight=0),!M&&!(l&&A)&&(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=T1(s.gutters,s.lineNumbers),D0(c),a.init(c)}var ha=0,cr=null;y?cr=-.53:l?cr=15:T?cr=-.7:N&&(cr=-1/3);function N0(t){var r=t.wheelDeltaX,a=t.wheelDeltaY;return r==null&&t.detail&&t.axis==t.HORIZONTAL_AXIS&&(r=t.detail),a==null&&t.detail&&t.axis==t.VERTICAL_AXIS?a=t.detail:a==null&&(a=t.wheelDelta),{x:r,y:a}}function Q4(t){var r=N0(t);return r.x*=cr,r.y*=cr,r}function H0(t,r){var a=N0(r),s=a.x,c=a.y,h=t.display,f=h.scroller,p=f.scrollWidth>f.clientWidth,g=f.scrollHeight>f.clientHeight;if(s&&p||c&&g){if(c&&B&&M){e:for(var m=r.target,z=h.view;m!=f;m=m.parentNode)for(var S=0;S<z.length;S++)if(z[S].node==m){t.display.currentWheelTarget=m;break e}}if(s&&!l&&!$&&cr!=null){c&&g&&Bo(t,Math.max(0,f.scrollTop+c*cr)),Yi(t,Math.max(0,f.scrollLeft+s*cr)),(!c||c&&g)&&_t(r),h.wheelStartX=null;return}if(c&&cr!=null){var P=c*cr,I=t.doc.scrollTop,Z=I+h.wrapper.clientHeight;P<0?I=Math.max(0,I+P-50):Z=Math.min(t.doc.height,Z+P+50),L1(t,{top:I,bottom:Z})}ha<20&&(h.wheelStartX==null?(h.wheelStartX=f.scrollLeft,h.wheelStartY=f.scrollTop,h.wheelDX=s,h.wheelDY=c,setTimeout(function(){if(h.wheelStartX!=null){var q=f.scrollLeft-h.wheelStartX,te=f.scrollTop-h.wheelStartY,se=te&&h.wheelDY&&te/h.wheelDY||q&&h.wheelDX&&q/h.wheelDX;h.wheelStartX=h.wheelStartY=null,se&&(cr=(cr*ha+se)/(ha+1),++ha)}},200)):(h.wheelDX+=s,h.wheelDY+=c))}}var ur=function(t,r){this.ranges=t,this.primIndex=r};ur.prototype.primary=function(){return this.ranges[this.primIndex]},ur.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 a=this.ranges[r],s=t.ranges[r];if(!k(a.anchor,s.anchor)||!k(a.head,s.head))return!1}return!0},ur.prototype.deepCopy=function(){for(var t=[],r=0;r<this.ranges.length;r++)t[r]=new Ge(G(this.ranges[r].anchor),G(this.ranges[r].head));return new ur(t,this.primIndex)},ur.prototype.somethingSelected=function(){for(var t=0;t<this.ranges.length;t++)if(!this.ranges[t].empty())return!0;return!1},ur.prototype.contains=function(t,r){r||(r=t);for(var a=0;a<this.ranges.length;a++){var s=this.ranges[a];if(C(r,s.from())>=0&&C(t,s.to())<=0)return a}return-1};var Ge=function(t,r){this.anchor=t,this.head=r};Ge.prototype.from=function(){return $e(this.anchor,this.head)},Ge.prototype.to=function(){return ee(this.anchor,this.head)},Ge.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function xr(t,r,a){var s=t&&t.options.selectionsMayTouch,c=r[a];r.sort(function(P,I){return C(P.from(),I.from())}),a=ge(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(s&&!f.empty()?g>0:g>=0){var m=$e(p.from(),f.from()),z=ee(p.to(),f.to()),S=p.empty()?f.from()==f.head:p.from()==p.head;h<=a&&--a,r.splice(--h,2,new Ge(S?z:m,S?m:z))}}return new ur(r,a)}function Si(t,r){return new ur([new Ge(t,r||t)],0)}function Mi(t){return t.text?J(t.from.line+t.text.length-1,_e(t.text).length+(t.text.length==1?t.from.ch:0)):t.to}function R0(t,r){if(C(t,r.from)<0)return t;if(C(t,r.to)<=0)return Mi(r);var a=t.line+r.text.length-(r.to.line-r.from.line)-1,s=t.ch;return t.line==r.to.line&&(s+=Mi(r).ch-r.to.ch),J(a,s)}function k1(t,r){for(var a=[],s=0;s<t.sel.ranges.length;s++){var c=t.sel.ranges[s];a.push(new Ge(R0(c.anchor,r),R0(c.head,r)))}return xr(t.cm,a,t.sel.primIndex)}function F0(t,r,a){return t.line==r.line?J(a.line,t.ch-r.ch+a.ch):J(a.line+(t.line-r.line),t.ch)}function e3(t,r,a){for(var s=[],c=J(t.first,0),h=c,f=0;f<r.length;f++){var p=r[f],g=F0(p.from,c,h),m=F0(Mi(p),c,h);if(c=p.to,h=m,a=="around"){var z=t.sel.ranges[f],S=C(z.head,z.anchor)<0;s[f]=new Ge(S?m:g,S?g:m)}else s[f]=new Ge(g,g)}return new ur(s,t.sel.primIndex)}function O1(t){t.doc.mode=En(t.options,t.doc.modeOption),jo(t)}function jo(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,Wo(t,100),t.state.modeGen++,t.curOp&&Vt(t)}function B0(t,r){return r.from.ch==0&&r.to.ch==0&&_e(r.text)==""&&(!t.cm||t.cm.options.wholeLineUpdateBefore)}function $1(t,r,a,s){function c(he){return a?a[he]:null}function h(he,ae,pe){l4(he,ae,pe,s),wt(he,"change",he,r)}function f(he,ae){for(var pe=[],Le=he;Le<ae;++Le)pe.push(new In(m[Le],c(Le),s));return pe}var p=r.from,g=r.to,m=r.text,z=be(t,p.line),S=be(t,g.line),P=_e(m),I=c(m.length-1),Z=g.line-p.line;if(r.full)t.insert(0,f(0,m.length)),t.remove(m.length,t.size-m.length);else if(B0(t,r)){var q=f(0,m.length-1);h(S,S.text,I),Z&&t.remove(p.line,Z),q.length&&t.insert(p.line,q)}else if(z==S)if(m.length==1)h(z,z.text.slice(0,p.ch)+P+z.text.slice(g.ch),I);else{var te=f(1,m.length-1);te.push(new In(P+z.text.slice(g.ch),I,s)),h(z,z.text.slice(0,p.ch)+m[0],c(0)),t.insert(p.line+1,te)}else if(m.length==1)h(z,z.text.slice(0,p.ch)+m[0]+S.text.slice(g.ch),c(0)),t.remove(p.line+1,Z);else{h(z,z.text.slice(0,p.ch)+m[0],c(0)),h(S,P+S.text.slice(g.ch),I);var se=f(1,m.length-1);Z>1&&t.remove(p.line+1,Z-1),t.insert(p.line+1,se)}wt(t,"change",t,r)}function Ti(t,r,a){function s(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 m=f&&g.sharedHist;a&&!m||(r(g.doc,m),s(g.doc,c,m))}}}s(t,null,!0)}function V0(t,r){if(r.cm)throw new Error("This document is already in use.");t.doc=r,r.cm=t,b1(t),O1(t),Z0(t),t.options.direction=r.direction,t.options.lineWrapping||s1(t),t.options.mode=r.modeOption,Vt(t)}function Z0(t){(t.doc.direction=="rtl"?ke:X)(t.display.lineDiv,"CodeMirror-rtl")}function t3(t){Xt(t,function(){Z0(t),Vt(t)})}function fa(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 E1(t,r){var a={from:G(r.from),to:Mi(r),text:Fr(t,r.from,r.to)};return j0(t,a,r.from.line,r.to.line+1),Ti(t,function(s){return j0(s,a,r.from.line,r.to.line+1)},!0),a}function W0(t){for(;t.length;){var r=_e(t);if(r.ranges)t.pop();else break}}function r3(t,r){if(r)return W0(t.done),_e(t.done);if(t.done.length&&!_e(t.done).ranges)return _e(t.done);if(t.done.length>1&&!t.done[t.done.length-2].ranges)return t.done.pop(),_e(t.done)}function U0(t,r,a,s){var c=t.history;c.undone.length=0;var h=+new Date,f,p;if((c.lastOp==s||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==s)))p=_e(f.changes),C(r.from,r.to)==0&&C(r.from,p.to)==0?p.to=Mi(r):f.changes.push(E1(t,r));else{var g=_e(c.done);for((!g||!g.ranges)&&pa(t.sel,c.done),f={changes:[E1(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(a),c.generation=++c.maxGeneration,c.lastModTime=c.lastSelTime=h,c.lastOp=c.lastSelOp=s,c.lastOrigin=c.lastSelOrigin=r.origin,p||Oe(t,"historyAdded")}function i3(t,r,a,s){var c=r.charAt(0);return c=="*"||c=="+"&&a.ranges.length==s.ranges.length&&a.somethingSelected()==s.somethingSelected()&&new Date-t.history.lastSelTime<=(t.cm?t.cm.options.historyEventDelay:500)}function n3(t,r,a,s){var c=t.history,h=s&&s.origin;a==c.lastSelOp||h&&c.lastSelOrigin==h&&(c.lastModTime==c.lastSelTime&&c.lastOrigin==h||i3(t,h,_e(c.done),r))?c.done[c.done.length-1]=r:pa(r,c.done),c.lastSelTime=+new Date,c.lastSelOrigin=h,c.lastSelOp=a,s&&s.clearRedo!==!1&&W0(c.undone)}function pa(t,r){var a=_e(r);a&&a.ranges&&a.equals(t)||r.push(t)}function j0(t,r,a,s){var c=r["spans_"+t.id],h=0;t.iter(Math.max(t.first,a),Math.min(t.first+t.size,s),function(f){f.markedSpans&&((c||(c=r["spans_"+t.id]={}))[h]=f.markedSpans),++h})}function o3(t){if(!t)return null;for(var r,a=0;a<t.length;++a)t[a].marker.explicitlyCleared?r||(r=t.slice(0,a)):r&&r.push(t[a]);return r?r.length?r:null:t}function s3(t,r){var a=r["spans_"+t.id];if(!a)return null;for(var s=[],c=0;c<r.text.length;++c)s.push(o3(a[c]));return s}function G0(t,r){var a=s3(t,r),s=r1(t,r);if(!a)return s;if(!s)return a;for(var c=0;c<a.length;++c){var h=a[c],f=s[c];if(h&&f)e:for(var p=0;p<f.length;++p){for(var g=f[p],m=0;m<h.length;++m)if(h[m].marker==g.marker)continue e;h.push(g)}else f&&(a[c]=f)}return a}function Bn(t,r,a){for(var s=[],c=0;c<t.length;++c){var h=t[c];if(h.ranges){s.push(a?ur.prototype.deepCopy.call(h):h);continue}var f=h.changes,p=[];s.push({changes:p});for(var g=0;g<f.length;++g){var m=f[g],z=void 0;if(p.push({from:m.from,to:m.to,text:m.text}),r)for(var S in m)(z=S.match(/^spans_(\d+)$/))&&ge(r,Number(z[1]))>-1&&(_e(p)[S]=m[S],delete m[S])}}return s}function _1(t,r,a,s){if(s){var c=t.anchor;if(a){var h=C(r,c)<0;h!=C(a,c)<0?(c=r,r=a):h!=C(r,a)<0&&(r=a)}return new Ge(c,r)}else return new Ge(a||r,r)}function ga(t,r,a,s,c){c==null&&(c=t.cm&&(t.cm.display.shift||t.extend)),At(t,new ur([_1(t.sel.primary(),r,a,c)],0),s)}function q0(t,r,a){for(var s=[],c=t.cm&&(t.cm.display.shift||t.extend),h=0;h<t.sel.ranges.length;h++)s[h]=_1(t.sel.ranges[h],r[h],null,c);var f=xr(t.cm,s,t.sel.primIndex);At(t,f,a)}function I1(t,r,a,s){var c=t.sel.ranges.slice(0);c[r]=a,At(t,xr(t.cm,c,t.sel.primIndex),s)}function K0(t,r,a,s){At(t,Si(r,a),s)}function a3(t,r,a){var s={ranges:r.ranges,update:function(c){this.ranges=[];for(var h=0;h<c.length;h++)this.ranges[h]=new Ge(de(t,c[h].anchor),de(t,c[h].head))},origin:a&&a.origin};return Oe(t,"beforeSelectionChange",t,s),t.cm&&Oe(t.cm,"beforeSelectionChange",t.cm,s),s.ranges!=r.ranges?xr(t.cm,s.ranges,s.ranges.length-1):r}function Y0(t,r,a){var s=t.history.done,c=_e(s);c&&c.ranges?(s[s.length-1]=r,va(t,r,a)):At(t,r,a)}function At(t,r,a){va(t,r,a),n3(t,t.sel,t.cm?t.cm.curOp.id:NaN,a)}function va(t,r,a){(Tt(t,"beforeSelectionChange")||t.cm&&Tt(t.cm,"beforeSelectionChange"))&&(r=a3(t,r,a));var s=a&&a.bias||(C(r.primary().head,t.sel.primary().head)<0?-1:1);X0(t,Q0(t,r,s,!0)),!(a&&a.scroll===!1)&&t.cm&&t.cm.getOption("readOnly")!="nocursor"&&Rn(t.cm)}function X0(t,r){r.equals(t.sel)||(t.sel=r,t.cm&&(t.cm.curOp.updateInput=1,t.cm.curOp.selectionChanged=!0,kn(t.cm)),wt(t,"cursorActivity",t))}function J0(t){X0(t,Q0(t,t.sel,null,!1))}function Q0(t,r,a,s){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=ba(t,f.anchor,p&&p.anchor,a,s),m=ba(t,f.head,p&&p.head,a,s);(c||g!=f.anchor||m!=f.head)&&(c||(c=r.ranges.slice(0,h)),c[h]=new Ge(g,m))}return c?xr(t.cm,c,r.primIndex):r}function Vn(t,r,a,s,c){var h=be(t,r.line);if(h.markedSpans)for(var f=0;f<h.markedSpans.length;++f){var p=h.markedSpans[f],g=p.marker,m="selectLeft"in g?!g.selectLeft:g.inclusiveLeft,z="selectRight"in g?!g.selectRight:g.inclusiveRight;if((p.from==null||(m?p.from<=r.ch:p.from<r.ch))&&(p.to==null||(z?p.to>=r.ch:p.to>r.ch))){if(c&&(Oe(g,"beforeCursorEnter"),g.explicitlyCleared))if(h.markedSpans){--f;continue}else break;if(!g.atomic)continue;if(a){var S=g.find(s<0?1:-1),P=void 0;if((s<0?z:m)&&(S=ed(t,S,-s,S&&S.line==r.line?h:null)),S&&S.line==r.line&&(P=C(S,a))&&(s<0?P<0:P>0))return Vn(t,S,r,s,c)}var I=g.find(s<0?-1:1);return(s<0?m:z)&&(I=ed(t,I,s,I.line==r.line?h:null)),I?Vn(t,I,r,s,c):null}}return r}function ba(t,r,a,s,c){var h=s||1,f=Vn(t,r,a,h,c)||!c&&Vn(t,r,a,h,!0)||Vn(t,r,a,-h,c)||!c&&Vn(t,r,a,-h,!0);return f||(t.cantEdit=!0,J(t.first,0))}function ed(t,r,a,s){return a<0&&r.ch==0?r.line>t.first?de(t,J(r.line-1)):null:a>0&&r.ch==(s||be(t,r.line)).text.length?r.line<t.first+t.size-1?J(r.line+1,0):null:new J(r.line,r.ch+a)}function td(t){t.setSelection(J(t.firstLine(),0),J(t.lastLine()),De)}function rd(t,r,a){var s={canceled:!1,from:r.from,to:r.to,text:r.text,origin:r.origin,cancel:function(){return s.canceled=!0}};return a&&(s.update=function(c,h,f,p){c&&(s.from=de(t,c)),h&&(s.to=de(t,h)),f&&(s.text=f),p!==void 0&&(s.origin=p)}),Oe(t,"beforeChange",t,s),t.cm&&Oe(t.cm,"beforeChange",t.cm,s),s.canceled?(t.cm&&(t.cm.curOp.updateInput=2),null):{from:s.from,to:s.to,text:s.text,origin:s.origin}}function Zn(t,r,a){if(t.cm){if(!t.cm.curOp)return xt(t.cm,Zn)(t,r,a);if(t.cm.state.suppressEdits)return}if(!((Tt(t,"beforeChange")||t.cm&&Tt(t.cm,"beforeChange"))&&(r=rd(t,r,!0),!r))){var s=ju&&!a&&n4(t,r.from,r.to);if(s)for(var c=s.length-1;c>=0;--c)id(t,{from:s[c].from,to:s[c].to,text:c?[""]:r.text,origin:r.origin});else id(t,r)}}function id(t,r){if(!(r.text.length==1&&r.text[0]==""&&C(r.from,r.to)==0)){var a=k1(t,r);U0(t,r,a,t.cm?t.cm.curOp.id:NaN),Go(t,r,a,r1(t,r));var s=[];Ti(t,function(c,h){!h&&ge(s,c.history)==-1&&(ad(c.history,r),s.push(c.history)),Go(c,r,null,r1(c,r))})}}function ma(t,r,a){var s=t.cm&&t.cm.state.suppressEdits;if(!(s&&!a)){for(var c=t.history,h,f=t.sel,p=r=="undo"?c.done:c.undone,g=r=="undo"?c.undone:c.done,m=0;m<p.length&&(h=p[m],!(a?h.ranges&&!h.equals(t.sel):!h.ranges));m++);if(m!=p.length){for(c.lastOrigin=c.lastSelOrigin=null;;)if(h=p.pop(),h.ranges){if(pa(h,g),a&&!h.equals(t.sel)){At(t,h,{clearRedo:!1});return}f=h}else if(s){p.push(h);return}else break;var z=[];pa(f,g),g.push({changes:z,generation:c.generation}),c.generation=h.generation||++c.maxGeneration;for(var S=Tt(t,"beforeChange")||t.cm&&Tt(t.cm,"beforeChange"),P=function(q){var te=h.changes[q];if(te.origin=r,S&&!rd(t,te,!1))return p.length=0,{};z.push(E1(t,te));var se=q?k1(t,te):_e(p);Go(t,te,se,G0(t,te)),!q&&t.cm&&t.cm.scrollIntoView({from:te.from,to:Mi(te)});var he=[];Ti(t,function(ae,pe){!pe&&ge(he,ae.history)==-1&&(ad(ae.history,te),he.push(ae.history)),Go(ae,te,null,G0(ae,te))})},I=h.changes.length-1;I>=0;--I){var Z=P(I);if(Z)return Z.v}}}}function nd(t,r){if(r!=0&&(t.first+=r,t.sel=new ur(Ve(t.sel.ranges,function(c){return new Ge(J(c.anchor.line+r,c.anchor.ch),J(c.head.line+r,c.head.ch))}),t.sel.primIndex),t.cm)){Vt(t.cm,t.first,t.first-r,r);for(var a=t.cm.display,s=a.viewFrom;s<a.viewTo;s++)zi(t.cm,s,"gutter")}}function Go(t,r,a,s){if(t.cm&&!t.cm.curOp)return xt(t.cm,Go)(t,r,a,s);if(r.to.line<t.first){nd(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);nd(t,c),r={from:J(t.first,0),to:J(r.to.line+c,r.to.ch),text:[_e(r.text)],origin:r.origin}}var h=t.lastLine();r.to.line>h&&(r={from:r.from,to:J(h,be(t,h).text.length),text:[r.text[0]],origin:r.origin}),r.removed=Fr(t,r.from,r.to),a||(a=k1(t,r)),t.cm?l3(t.cm,r,s):$1(t,r,s),va(t,a,De),t.cantEdit&&ba(t,J(t.firstLine(),0))&&(t.cantEdit=!1)}}function l3(t,r,a){var s=t.doc,c=t.display,h=r.from,f=r.to,p=!1,g=h.line;t.options.lineWrapping||(g=je(Zr(be(s,h.line))),s.iter(g,f.line+1,function(I){if(I==c.maxLine)return p=!0,!0})),s.sel.contains(r.from,r.to)>-1&&kn(t),$1(s,r,a,x0(t)),t.options.lineWrapping||(s.iter(g,h.line+r.text.length,function(I){var Z=ta(I);Z>c.maxLineLength&&(c.maxLine=I,c.maxLineLength=Z,c.maxLineChanged=!0,p=!1)}),p&&(t.curOp.updateMaxLine=!0)),X6(s,h.line),Wo(t,400);var m=r.text.length-(f.line-h.line)-1;r.full?Vt(t):h.line==f.line&&r.text.length==1&&!B0(t.doc,r)?zi(t,h.line,"text"):Vt(t,h.line,f.line+1,m);var z=Tt(t,"changes"),S=Tt(t,"change");if(S||z){var P={from:h,to:f,text:r.text,removed:r.removed,origin:r.origin};S&&wt(t,"change",t,P),z&&(t.curOp.changeObjs||(t.curOp.changeObjs=[])).push(P)}t.display.selForContextMenu=null}function Wn(t,r,a,s,c){var h;s||(s=a),C(s,a)<0&&(h=[s,a],a=h[0],s=h[1]),typeof r=="string"&&(r=t.splitLines(r)),Zn(t,{from:a,to:s,text:r,origin:c})}function od(t,r,a,s){a<t.line?t.line+=s:r<t.line&&(t.line=r,t.ch=0)}function sd(t,r,a,s){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++)od(h.ranges[p].anchor,r,a,s),od(h.ranges[p].head,r,a,s);continue}for(var g=0;g<h.changes.length;++g){var m=h.changes[g];if(a<m.from.line)m.from=J(m.from.line+s,m.from.ch),m.to=J(m.to.line+s,m.to.ch);else if(r<=m.to.line){f=!1;break}}f||(t.splice(0,c+1),c=0)}}function ad(t,r){var a=r.from.line,s=r.to.line,c=r.text.length-(s-a)-1;sd(t.done,a,s,c),sd(t.undone,a,s,c)}function qo(t,r,a,s){var c=r,h=r;return typeof r=="number"?h=be(t,Fe(t,r)):c=je(r),c==null?null:(s(h,c)&&t.cm&&zi(t.cm,c,a),h)}function Ko(t){this.lines=t,this.parent=null;for(var r=0,a=0;a<t.length;++a)t[a].parent=this,r+=t[a].height;this.height=r}Ko.prototype={chunkSize:function(){return this.lines.length},removeInner:function(t,r){for(var a=t,s=t+r;a<s;++a){var c=this.lines[a];this.height-=c.height,c4(c),wt(c,"delete")}this.lines.splice(t,r)},collapse:function(t){t.push.apply(t,this.lines)},insertInner:function(t,r,a){this.height+=a,this.lines=this.lines.slice(0,t).concat(r).concat(this.lines.slice(t));for(var s=0;s<r.length;++s)r[s].parent=this},iterN:function(t,r,a){for(var s=t+r;t<s;++t)if(a(this.lines[t]))return!0}};function Yo(t){this.children=t;for(var r=0,a=0,s=0;s<t.length;++s){var c=t[s];r+=c.chunkSize(),a+=c.height,c.parent=this}this.size=r,this.height=a,this.parent=null}Yo.prototype={chunkSize:function(){return this.size},removeInner:function(t,r){this.size-=r;for(var a=0;a<this.children.length;++a){var s=this.children[a],c=s.chunkSize();if(t<c){var h=Math.min(r,c-t),f=s.height;if(s.removeInner(t,h),this.height-=f-s.height,c==h&&(this.children.splice(a--,1),s.parent=null),(r-=h)==0)break;t=0}else t-=c}if(this.size-r<25&&(this.children.length>1||!(this.children[0]instanceof Ko))){var p=[];this.collapse(p),this.children=[new Ko(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,a){this.size+=r.length,this.height+=a;for(var s=0;s<this.children.length;++s){var c=this.children[s],h=c.chunkSize();if(t<=h){if(c.insertInner(t,r,a),c.lines&&c.lines.length>50){for(var f=c.lines.length%25+25,p=f;p<c.lines.length;){var g=new Ko(c.lines.slice(p,p+=25));c.height-=g.height,this.children.splice(++s,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),a=new Yo(r);if(t.parent){t.size-=a.size,t.height-=a.height;var c=ge(t.parent.children,t);t.parent.children.splice(c+1,0,a)}else{var s=new Yo(t.children);s.parent=t,t.children=[s,a],t=s}a.parent=t.parent}while(t.children.length>10);t.parent.maybeSpill()}},iterN:function(t,r,a){for(var s=0;s<this.children.length;++s){var c=this.children[s],h=c.chunkSize();if(t<h){var f=Math.min(r,h-t);if(c.iterN(t,f,a))return!0;if((r-=f)==0)break;t=0}else t-=h}}};var Xo=function(t,r,a){if(a)for(var s in a)a.hasOwnProperty(s)&&(this[s]=a[s]);this.doc=t,this.node=r};Xo.prototype.clear=function(){var t=this.doc.cm,r=this.line.widgets,a=this.line,s=je(a);if(!(s==null||!r)){for(var c=0;c<r.length;++c)r[c]==this&&r.splice(c--,1);r.length||(a.widgets=null);var h=No(this);Yt(a,Math.max(0,a.height-h)),t&&(Xt(t,function(){ld(t,a,-h),zi(t,s,"widget")}),wt(t,"lineWidgetCleared",t,this,s))}},Xo.prototype.changed=function(){var t=this,r=this.height,a=this.doc.cm,s=this.line;this.height=null;var c=No(this)-r;c&&(xi(this.doc,s)||Yt(s,s.height+c),a&&Xt(a,function(){a.curOp.forceUpdate=!0,ld(a,s,c),wt(a,"lineWidgetChanged",a,t,je(s))}))},Hr(Xo);function ld(t,r,a){ni(r)<(t.curOp&&t.curOp.scrollTop||t.doc.scrollTop)&&x1(t,a)}function c3(t,r,a,s){var c=new Xo(t,a,s),h=t.cm;return h&&c.noHScroll&&(h.display.alignWidgets=!0),qo(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&&!xi(t,f)){var g=ni(f)<t.scrollTop;Yt(f,f.height+No(c)),g&&x1(h,c.height),h.curOp.forceUpdate=!0}return!0}),h&&wt(h,"lineWidgetAdded",h,c,typeof r=="number"?r:je(r)),c}var cd=0,ki=function(t,r){this.lines=[],this.type=r,this.doc=t,this.id=++cd};ki.prototype.clear=function(){if(!this.explicitlyCleared){var t=this.doc.cm,r=t&&!t.curOp;if(r&&Ji(t),Tt(this,"clear")){var a=this.find();a&&wt(this,"clear",a.from,a.to)}for(var s=null,c=null,h=0;h<this.lines.length;++h){var f=this.lines[h],p=Ao(f.markedSpans,this);t&&!this.collapsed?zi(t,je(f),"text"):t&&(p.to!=null&&(c=je(f)),p.from!=null&&(s=je(f))),f.markedSpans=e4(f.markedSpans,p),p.from==null&&this.collapsed&&!xi(this.doc,f)&&t&&Yt(f,Dn(t.display))}if(t&&this.collapsed&&!t.options.lineWrapping)for(var g=0;g<this.lines.length;++g){var m=Zr(this.lines[g]),z=ta(m);z>t.display.maxLineLength&&(t.display.maxLine=m,t.display.maxLineLength=z,t.display.maxLineChanged=!0)}s!=null&&t&&this.collapsed&&Vt(t,s,c+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,t&&J0(t.doc)),t&&wt(t,"markerCleared",t,this,s,c),r&&Qi(t),this.parent&&this.parent.clear()}},ki.prototype.find=function(t,r){t==null&&this.type=="bookmark"&&(t=1);for(var a,s,c=0;c<this.lines.length;++c){var h=this.lines[c],f=Ao(h.markedSpans,this);if(f.from!=null&&(a=J(r?h:je(h),f.from),t==-1))return a;if(f.to!=null&&(s=J(r?h:je(h),f.to),t==1))return s}return a&&{from:a,to:s}},ki.prototype.changed=function(){var t=this,r=this.find(-1,!0),a=this,s=this.doc.cm;!r||!s||Xt(s,function(){var c=r.line,h=je(r.line),f=u1(s,h);if(f&&(p0(f),s.curOp.selectionChanged=s.curOp.forceUpdate=!0),s.curOp.updateMaxLine=!0,!xi(a.doc,c)&&a.height!=null){var p=a.height;a.height=null;var g=No(a)-p;g&&Yt(c,c.height+g)}wt(s,"markerChanged",s,t)})},ki.prototype.attachLine=function(t){if(!this.lines.length&&this.doc.cm){var r=this.doc.cm.curOp;(!r.maybeHiddenMarkers||ge(r.maybeHiddenMarkers,this)==-1)&&(r.maybeUnhiddenMarkers||(r.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(t)},ki.prototype.detachLine=function(t){if(this.lines.splice(ge(this.lines,t),1),!this.lines.length&&this.doc.cm){var r=this.doc.cm.curOp;(r.maybeHiddenMarkers||(r.maybeHiddenMarkers=[])).push(this)}},Hr(ki);function Un(t,r,a,s,c){if(s&&s.shared)return u3(t,r,a,s,c);if(t.cm&&!t.cm.curOp)return xt(t.cm,Un)(t,r,a,s,c);var h=new ki(t,c),f=C(r,a);if(s&&Ye(s,h,!1),f>0||f==0&&h.clearWhenEmpty!==!1)return h;if(h.replacedWith&&(h.collapsed=!0,h.widgetNode=w("span",[h.replacedWith],"CodeMirror-widget"),s.handleMouseEvents||h.widgetNode.setAttribute("cm-ignore-events","true"),s.insertLeft&&(h.widgetNode.insertLeft=!0)),h.collapsed){if(Ju(t,r.line,r,a,h)||r.line!=a.line&&Ju(t,a.line,r,a,h))throw new Error("Inserting collapsed marker partially overlapping an existing one");Q6()}h.addToHistory&&U0(t,{from:r,to:a,origin:"markText"},t.sel,NaN);var p=r.line,g=t.cm,m;if(t.iter(p,a.line+1,function(S){g&&h.collapsed&&!g.options.lineWrapping&&Zr(S)==g.display.maxLine&&(m=!0),h.collapsed&&p!=r.line&&Yt(S,0),t4(S,new Xs(h,p==r.line?r.ch:null,p==a.line?a.ch:null),t.cm&&t.cm.curOp),++p}),h.collapsed&&t.iter(r.line,a.line+1,function(S){xi(t,S)&&Yt(S,0)}),h.clearOnEnter&&Se(h,"beforeCursorEnter",function(){return h.clear()}),h.readOnly&&(J6(),(t.history.done.length||t.history.undone.length)&&t.clearHistory()),h.collapsed&&(h.id=++cd,h.atomic=!0),g){if(m&&(g.curOp.updateMaxLine=!0),h.collapsed)Vt(g,r.line,a.line+1);else if(h.className||h.startStyle||h.endStyle||h.css||h.attributes||h.title)for(var z=r.line;z<=a.line;z++)zi(g,z,"text");h.atomic&&J0(g.doc),wt(g,"markerAdded",g,h)}return h}var Jo=function(t,r){this.markers=t,this.primary=r;for(var a=0;a<t.length;++a)t[a].parent=this};Jo.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var t=0;t<this.markers.length;++t)this.markers[t].clear();wt(this,"clear")}},Jo.prototype.find=function(t,r){return this.primary.find(t,r)},Hr(Jo);function u3(t,r,a,s,c){s=Ye(s),s.shared=!1;var h=[Un(t,r,a,s,c)],f=h[0],p=s.widgetNode;return Ti(t,function(g){p&&(s.widgetNode=p.cloneNode(!0)),h.push(Un(g,de(g,r),de(g,a),s,c));for(var m=0;m<g.linked.length;++m)if(g.linked[m].isParent)return;f=_e(h)}),new Jo(h,f)}function ud(t){return t.findMarks(J(t.first,0),t.clipPos(J(t.lastLine())),function(r){return r.parent})}function d3(t,r){for(var a=0;a<r.length;a++){var s=r[a],c=s.find(),h=t.clipPos(c.from),f=t.clipPos(c.to);if(C(h,f)){var p=Un(t,h,f,s.primary,s.primary.type);s.markers.push(p),p.parent=s}}}function h3(t){for(var r=function(s){var c=t[s],h=[c.primary.doc];Ti(c.primary.doc,function(g){return h.push(g)});for(var f=0;f<c.markers.length;f++){var p=c.markers[f];ge(h,p.doc)==-1&&(p.parent=null,c.markers.splice(f--,1))}},a=0;a<t.length;a++)r(a)}var f3=0,Zt=function(t,r,a,s,c){if(!(this instanceof Zt))return new Zt(t,r,a,s,c);a==null&&(a=0),Yo.call(this,[new Ko([new In("",null)])]),this.first=a,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=a;var h=J(a,0);this.sel=Si(h),this.history=new fa(null),this.id=++f3,this.modeOption=r,this.lineSep=s,this.direction=c=="rtl"?"rtl":"ltr",this.extend=!1,typeof t=="string"&&(t=this.splitLines(t)),$1(this,{from:h,to:h,text:t}),At(this,Si(h),De)};Zt.prototype=et(Yo.prototype,{constructor:Zt,iter:function(t,r,a){a?this.iterN(t-this.first,r-t,a):this.iterN(this.first,this.first+this.size,t)},insert:function(t,r){for(var a=0,s=0;s<r.length;++s)a+=r[s].height;this.insertInner(t-this.first,r,a)},remove:function(t,r){this.removeInner(t-this.first,r)},getValue:function(t){var r=Eo(this,this.first,this.first+this.size);return t===!1?r:r.join(t||this.lineSeparator())},setValue:zt(function(t){var r=J(this.first,0),a=this.first+this.size-1;Zn(this,{from:r,to:J(a,be(this,a).text.length),text:this.splitLines(t),origin:"setValue",full:!0},!0),this.cm&&Fo(this.cm,0,0),At(this,Si(r),De)}),replaceRange:function(t,r,a,s){r=de(this,r),a=a?de(this,a):r,Wn(this,t,r,a,s)},getRange:function(t,r,a){var s=Fr(this,de(this,t),de(this,r));return a===!1?s:a===""?s.join(""):s.join(a||this.lineSeparator())},getLine:function(t){var r=this.getLineHandle(t);return r&&r.text},getLineHandle:function(t){if(Ui(this,t))return be(this,t)},getLineNumber:function(t){return je(t)},getLineHandleVisualStart:function(t){return typeof t=="number"&&(t=be(this,t)),Zr(t)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(t){return de(this,t)},getCursor:function(t){var r=this.sel.primary(),a;return t==null||t=="head"?a=r.head:t=="anchor"?a=r.anchor:t=="end"||t=="to"||t===!1?a=r.to():a=r.from(),a},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:zt(function(t,r,a){K0(this,de(this,typeof t=="number"?J(t,r||0):t),null,a)}),setSelection:zt(function(t,r,a){K0(this,de(this,t),de(this,r||t),a)}),extendSelection:zt(function(t,r,a){ga(this,de(this,t),r&&de(this,r),a)}),extendSelections:zt(function(t,r){q0(this,lr(this,t),r)}),extendSelectionsBy:zt(function(t,r){var a=Ve(this.sel.ranges,t);q0(this,lr(this,a),r)}),setSelections:zt(function(t,r,a){if(t.length){for(var s=[],c=0;c<t.length;c++)s[c]=new Ge(de(this,t[c].anchor),de(this,t[c].head||t[c].anchor));r==null&&(r=Math.min(t.length-1,this.sel.primIndex)),At(this,xr(this.cm,s,r),a)}}),addSelection:zt(function(t,r,a){var s=this.sel.ranges.slice(0);s.push(new Ge(de(this,t),de(this,r||t))),At(this,xr(this.cm,s,s.length-1),a)}),getSelection:function(t){for(var r=this.sel.ranges,a,s=0;s<r.length;s++){var c=Fr(this,r[s].from(),r[s].to());a=a?a.concat(c):c}return t===!1?a:a.join(t||this.lineSeparator())},getSelections:function(t){for(var r=[],a=this.sel.ranges,s=0;s<a.length;s++){var c=Fr(this,a[s].from(),a[s].to());t!==!1&&(c=c.join(t||this.lineSeparator())),r[s]=c}return r},replaceSelection:function(t,r,a){for(var s=[],c=0;c<this.sel.ranges.length;c++)s[c]=t;this.replaceSelections(s,r,a||"+input")},replaceSelections:zt(function(t,r,a){for(var s=[],c=this.sel,h=0;h<c.ranges.length;h++){var f=c.ranges[h];s[h]={from:f.from(),to:f.to(),text:this.splitLines(t[h]),origin:a}}for(var p=r&&r!="end"&&e3(this,s,r),g=s.length-1;g>=0;g--)Zn(this,s[g]);p?Y0(this,p):this.cm&&Rn(this.cm)}),undo:zt(function(){ma(this,"undo")}),redo:zt(function(){ma(this,"redo")}),undoSelection:zt(function(){ma(this,"undo",!0)}),redoSelection:zt(function(){ma(this,"redo",!0)}),setExtending:function(t){this.extend=t},getExtending:function(){return this.extend},historySize:function(){for(var t=this.history,r=0,a=0,s=0;s<t.done.length;s++)t.done[s].ranges||++r;for(var c=0;c<t.undone.length;c++)t.undone[c].ranges||++a;return{undo:r,redo:a}},clearHistory:function(){var t=this;this.history=new fa(this.history),Ti(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:Bn(this.history.done),undone:Bn(this.history.undone)}},setHistory:function(t){var r=this.history=new fa(this.history);r.done=Bn(t.done.slice(0),null,!0),r.undone=Bn(t.undone.slice(0),null,!0)},setGutterMarker:zt(function(t,r,a){return qo(this,t,"gutter",function(s){var c=s.gutterMarkers||(s.gutterMarkers={});return c[r]=a,!a&&re(c)&&(s.gutterMarkers=null),!0})}),clearGutter:zt(function(t){var r=this;this.iter(function(a){a.gutterMarkers&&a.gutterMarkers[t]&&qo(r,a,"gutter",function(){return a.gutterMarkers[t]=null,re(a.gutterMarkers)&&(a.gutterMarkers=null),!0})})}),lineInfo:function(t){var r;if(typeof t=="number"){if(!Ui(this,t)||(r=t,t=be(this,t),!t))return null}else if(r=je(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:zt(function(t,r,a){return qo(this,t,r=="gutter"?"gutter":"class",function(s){var c=r=="text"?"textClass":r=="background"?"bgClass":r=="gutter"?"gutterClass":"wrapClass";if(!s[c])s[c]=a;else{if(ie(a).test(s[c]))return!1;s[c]+=" "+a}return!0})}),removeLineClass:zt(function(t,r,a){return qo(this,t,r=="gutter"?"gutter":"class",function(s){var c=r=="text"?"textClass":r=="background"?"bgClass":r=="gutter"?"gutterClass":"wrapClass",h=s[c];if(h)if(a==null)s[c]=null;else{var f=h.match(ie(a));if(!f)return!1;var p=f.index+f[0].length;s[c]=h.slice(0,f.index)+(!f.index||p==h.length?"":" ")+h.slice(p)||null}else return!1;return!0})}),addLineWidget:zt(function(t,r,a){return c3(this,t,r,a)}),removeLineWidget:function(t){t.clear()},markText:function(t,r,a){return Un(this,de(this,t),de(this,r),a,a&&a.type||"range")},setBookmark:function(t,r){var a={replacedWith:r&&(r.nodeType==null?r.widget:r),insertLeft:r&&r.insertLeft,clearWhenEmpty:!1,shared:r&&r.shared,handleMouseEvents:r&&r.handleMouseEvents};return t=de(this,t),Un(this,t,t,a,"bookmark")},findMarksAt:function(t){t=de(this,t);var r=[],a=be(this,t.line).markedSpans;if(a)for(var s=0;s<a.length;++s){var c=a[s];(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,a){t=de(this,t),r=de(this,r);var s=[],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)&&(!a||a(g.marker))&&s.push(g.marker.parent||g.marker)}++c}),s},getAllMarks:function(){var t=[];return this.iter(function(r){var a=r.markedSpans;if(a)for(var s=0;s<a.length;++s)a[s].from!=null&&t.push(a[s].marker)}),t},posFromIndex:function(t){var r,a=this.first,s=this.lineSeparator().length;return this.iter(function(c){var h=c.text.length+s;if(h>t)return r=t,!0;t-=h,++a}),de(this,J(a,r))},indexFromPos:function(t){t=de(this,t);var r=t.ch;if(t.line<this.first||t.ch<0)return 0;var a=this.lineSeparator().length;return this.iter(this.first,t.line,function(s){r+=s.text.length+a}),r},copy:function(t){var r=new Zt(Eo(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,a=this.first+this.size;t.from!=null&&t.from>r&&(r=t.from),t.to!=null&&t.to<a&&(a=t.to);var s=new Zt(Eo(this,r,a),t.mode||this.modeOption,r,this.lineSep,this.direction);return t.sharedHist&&(s.history=this.history),(this.linked||(this.linked=[])).push({doc:s,sharedHist:t.sharedHist}),s.linked=[{doc:this,isParent:!0,sharedHist:t.sharedHist}],d3(s,ud(this)),s},unlinkDoc:function(t){if(t instanceof tt&&(t=t.doc),this.linked)for(var r=0;r<this.linked.length;++r){var a=this.linked[r];if(a.doc==t){this.linked.splice(r,1),t.unlinkDoc(this),h3(ud(this));break}}if(t.history==this.history){var s=[t.id];Ti(t,function(c){return s.push(c.id)},!0),t.history=new fa(null),t.history.done=Bn(this.history.done,s),t.history.undone=Bn(this.history.undone,s)}},iterLinkedDocs:function(t){Ti(this,t)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(t){return this.lineSep?t.split(this.lineSep):To(t)},lineSeparator:function(){return this.lineSep||`
2989
+ `},setDirection:zt(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))})}),Zt.prototype.eachLine=Zt.prototype.iter;var dd=0;function p3(t){var r=this;if(hd(r),!(ft(r,t)||oi(r.display,t))){_t(t),y&&(dd=+new Date);var a=qi(r,t,!0),s=t.dataTransfer.files;if(!(!a||r.isReadOnly()))if(s&&s.length&&window.FileReader&&window.File)for(var c=s.length,h=Array(c),f=0,p=function(){++f==c&&xt(r,function(){a=de(r.doc,a);var I={from:a,to:a,text:r.doc.splitLines(h.filter(function(Z){return Z!=null}).join(r.doc.lineSeparator())),origin:"paste"};Zn(r.doc,I),Y0(r.doc,Si(de(r.doc,a),de(r.doc,Mi(I))))})()},g=function(I,Z){if(r.options.allowDropFileTypes&&ge(r.options.allowDropFileTypes,I.type)==-1){p();return}var q=new FileReader;q.onerror=function(){return p()},q.onload=function(){var te=q.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(te)){p();return}h[Z]=te,p()},q.readAsText(I)},m=0;m<s.length;m++)g(s[m],m);else{if(r.state.draggingText&&r.doc.sel.contains(a)>-1){r.state.draggingText(t),setTimeout(function(){return r.display.input.focus()},20);return}try{var z=t.dataTransfer.getData("Text");if(z){var S;if(r.state.draggingText&&!r.state.draggingText.copy&&(S=r.listSelections()),va(r.doc,Si(a,a)),S)for(var P=0;P<S.length;++P)Wn(r.doc,"",S[P].anchor,S[P].head,"drag");r.replaceSelection(z,"around","paste"),r.display.input.focus()}}catch{}}}}function g3(t,r){if(y&&(!t.state.draggingText||+new Date-dd<100)){Wi(r);return}if(!(ft(t,r)||oi(t.display,r))&&(r.dataTransfer.setData("Text",t.getSelection()),r.dataTransfer.effectAllowed="copyMove",r.dataTransfer.setDragImage&&!N)){var a=x("img",null,null,"position: fixed; left: 0; top: 0;");a.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",$&&(a.width=a.height=1,t.display.wrapper.appendChild(a),a._top=a.offsetTop),r.dataTransfer.setDragImage(a,0,0),$&&a.parentNode.removeChild(a)}}function v3(t,r){var a=qi(t,r);if(a){var s=document.createDocumentFragment();S0(t,a,s),t.display.dragCursor||(t.display.dragCursor=x("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),t.display.lineSpace.insertBefore(t.display.dragCursor,t.display.cursorDiv)),O(t.display.dragCursor,s)}}function hd(t){t.display.dragCursor&&(t.display.lineSpace.removeChild(t.display.dragCursor),t.display.dragCursor=null)}function fd(t){if(document.getElementsByClassName){for(var r=document.getElementsByClassName("CodeMirror"),a=[],s=0;s<r.length;s++){var c=r[s].CodeMirror;c&&a.push(c)}a.length&&a[0].operation(function(){for(var h=0;h<a.length;h++)t(a[h])})}}var pd=!1;function b3(){pd||(m3(),pd=!0)}function m3(){var t;Se(window,"resize",function(){t==null&&(t=setTimeout(function(){t=null,fd(y3)},100))}),Se(window,"blur",function(){return fd(Hn)})}function y3(t){var r=t.display;r.cachedCharWidth=r.cachedTextHeight=r.cachedPaddingH=null,r.scrollbarsClipped=!1,t.setSize()}for(var Oi={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"},Qo=0;Qo<10;Qo++)Oi[Qo+48]=Oi[Qo+96]=String(Qo);for(var ya=65;ya<=90;ya++)Oi[ya]=String.fromCharCode(ya);for(var es=1;es<=12;es++)Oi[es+111]=Oi[es+63235]="F"+es;var si={};si.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"},si.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"},si.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"},si.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"]},si.default=B?si.macDefault:si.pcDefault;function C3(t){var r=t.split(/-(?!$)/);t=r[r.length-1];for(var a,s,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))a=!0;else if(/^(c|ctrl|control)$/i.test(p))s=!0;else if(/^s(hift)?$/i.test(p))c=!0;else throw new Error("Unrecognized modifier name: "+p)}return a&&(t="Alt-"+t),s&&(t="Ctrl-"+t),h&&(t="Cmd-"+t),c&&(t="Shift-"+t),t}function w3(t){var r={};for(var a in t)if(t.hasOwnProperty(a)){var s=t[a];if(/^(name|fallthrough|(de|at)tach)$/.test(a))continue;if(s=="..."){delete t[a];continue}for(var c=Ve(a.split(" "),C3),h=0;h<c.length;h++){var f=void 0,p=void 0;h==c.length-1?(p=c.join(" "),f=s):(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[a]}for(var m in r)t[m]=r[m];return t}function jn(t,r,a,s){r=Ca(r);var c=r.call?r.call(t,s):r[t];if(c===!1)return"nothing";if(c==="...")return"multi";if(c!=null&&a(c))return"handled";if(r.fallthrough){if(Object.prototype.toString.call(r.fallthrough)!="[object Array]")return jn(t,r.fallthrough,a,s);for(var h=0;h<r.fallthrough.length;h++){var f=jn(t,r.fallthrough[h],a,s);if(f)return f}}}function gd(t){var r=typeof t=="string"?t:Oi[t.keyCode];return r=="Ctrl"||r=="Alt"||r=="Shift"||r=="Mod"}function vd(t,r,a){var s=t;return r.altKey&&s!="Alt"&&(t="Alt-"+t),(me?r.metaKey:r.ctrlKey)&&s!="Ctrl"&&(t="Ctrl-"+t),(me?r.ctrlKey:r.metaKey)&&s!="Mod"&&(t="Cmd-"+t),!a&&r.shiftKey&&s!="Shift"&&(t="Shift-"+t),t}function bd(t,r){if($&&t.keyCode==34&&t.char)return!1;var a=Oi[t.keyCode];return a==null||t.altGraphKey?!1:(t.keyCode==3&&t.code&&(a=t.code),vd(a,t,r))}function Ca(t){return typeof t=="string"?si[t]:t}function Gn(t,r){for(var a=t.doc.sel.ranges,s=[],c=0;c<a.length;c++){for(var h=r(a[c]);s.length&&C(h.from,_e(s).to)<=0;){var f=s.pop();if(C(f.from,h.from)<0){h.from=f.from;break}}s.push(h)}Xt(t,function(){for(var p=s.length-1;p>=0;p--)Wn(t.doc,"",s[p].from,s[p].to,"+delete");Rn(t)})}function A1(t,r,a){var s=Dt(t.text,r+a,a);return s<0||s>t.text.length?null:s}function P1(t,r,a){var s=A1(t,r.ch,a);return s==null?null:new J(r.line,s,a<0?"after":"before")}function D1(t,r,a,s,c){if(t){r.doc.direction=="rtl"&&(c=-c);var h=Kt(a,r.doc.direction);if(h){var f=c<0?_e(h):h[0],p=c<0==(f.level==1),g=p?"after":"before",m;if(f.level>0||r.doc.direction=="rtl"){var z=Pn(r,a);m=c<0?a.text.length-1:0;var S=Ur(r,z,m).top;m=Nr(function(P){return Ur(r,z,P).top==S},c<0==(f.level==1)?f.from:f.to-1,m),g=="before"&&(m=A1(a,m,1))}else m=c<0?f.to:f.from;return new J(s,m,g)}}return new J(s,c<0?a.text.length:0,c<0?"before":"after")}function x3(t,r,a,s){var c=Kt(r,t.doc.direction);if(!c)return P1(r,a,s);a.ch>=r.text.length?(a.ch=r.text.length,a.sticky="before"):a.ch<=0&&(a.ch=0,a.sticky="after");var h=st(c,a.ch,a.sticky),f=c[h];if(t.doc.direction=="ltr"&&f.level%2==0&&(s>0?f.to>a.ch:f.from<a.ch))return P1(r,a,s);var p=function(se,he){return A1(r,se instanceof J?se.ch:se,he)},g,m=function(se){return t.options.lineWrapping?(g=g||Pn(t,r),w0(t,r,g,se)):{begin:0,end:r.text.length}},z=m(a.sticky=="before"?p(a,-1):a.ch);if(t.doc.direction=="rtl"||f.level==1){var S=f.level==1==s<0,P=p(a,S?1:-1);if(P!=null&&(S?P<=f.to&&P<=z.end:P>=f.from&&P>=z.begin)){var I=S?"before":"after";return new J(a.line,P,I)}}var Z=function(se,he,ae){for(var pe=function(Je,Lt){return Lt?new J(a.line,p(Je,1),"before"):new J(a.line,Je,"after")};se>=0&&se<c.length;se+=he){var Le=c[se],xe=he>0==(Le.level!=1),Pe=xe?ae.begin:p(ae.end,-1);if(Le.from<=Pe&&Pe<Le.to||(Pe=xe?Le.from:p(Le.to,-1),ae.begin<=Pe&&Pe<ae.end))return pe(Pe,xe)}},q=Z(h+s,s,z);if(q)return q;var te=s>0?z.end:p(z.begin,-1);return te!=null&&!(s>0&&te==r.text.length)&&(q=Z(s>0?0:c.length-1,s,m(te)),q)?q:null}var ts={selectAll:td,singleSelection:function(t){return t.setSelection(t.getCursor("anchor"),t.getCursor("head"),De)},killLine:function(t){return Gn(t,function(r){if(r.empty()){var a=be(t.doc,r.head.line).text.length;return r.head.ch==a&&r.head.line<t.lastLine()?{from:r.head,to:J(r.head.line+1,0)}:{from:r.head,to:J(r.head.line,a)}}else return{from:r.from(),to:r.to()}})},deleteLine:function(t){return Gn(t,function(r){return{from:J(r.from().line,0),to:de(t.doc,J(r.to().line+1,0))}})},delLineLeft:function(t){return Gn(t,function(r){return{from:J(r.from().line,0),to:r.from()}})},delWrappedLineLeft:function(t){return Gn(t,function(r){var a=t.charCoords(r.head,"div").top+5,s=t.coordsChar({left:0,top:a},"div");return{from:s,to:r.from()}})},delWrappedLineRight:function(t){return Gn(t,function(r){var a=t.charCoords(r.head,"div").top+5,s=t.coordsChar({left:t.display.lineDiv.offsetWidth+100,top:a},"div");return{from:r.from(),to:s}})},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(J(t.firstLine(),0))},goDocEnd:function(t){return t.extendSelection(J(t.lastLine()))},goLineStart:function(t){return t.extendSelectionsBy(function(r){return md(t,r.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(t){return t.extendSelectionsBy(function(r){return yd(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 a=t.cursorCoords(r.head,"div").top+5;return t.coordsChar({left:t.display.lineDiv.offsetWidth+100,top:a},"div")},Te)},goLineLeft:function(t){return t.extendSelectionsBy(function(r){var a=t.cursorCoords(r.head,"div").top+5;return t.coordsChar({left:0,top:a},"div")},Te)},goLineLeftSmart:function(t){return t.extendSelectionsBy(function(r){var a=t.cursorCoords(r.head,"div").top+5,s=t.coordsChar({left:0,top:a},"div");return s.ch<t.getLine(s.line).search(/\S/)?yd(t,r.head):s},Te)},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=[],a=t.listSelections(),s=t.options.tabSize,c=0;c<a.length;c++){var h=a[c].from(),f=Xe(t.getLine(h.line),h.ch,s);r.push(ir(s-f%s))}t.replaceSelections(r)},defaultTab:function(t){t.somethingSelected()?t.indentSelection("add"):t.execCommand("insertTab")},transposeChars:function(t){return Xt(t,function(){for(var r=t.listSelections(),a=[],s=0;s<r.length;s++)if(r[s].empty()){var c=r[s].head,h=be(t.doc,c.line).text;if(h){if(c.ch==h.length&&(c=new J(c.line,c.ch-1)),c.ch>0)c=new J(c.line,c.ch+1),t.replaceRange(h.charAt(c.ch-1)+h.charAt(c.ch-2),J(c.line,c.ch-2),c,"+transpose");else if(c.line>t.doc.first){var f=be(t.doc,c.line-1).text;f&&(c=new J(c.line,1),t.replaceRange(h.charAt(0)+t.doc.lineSeparator()+f.charAt(f.length-1),J(c.line-1,f.length-1),c,"+transpose"))}}a.push(new Ge(c,c))}t.setSelections(a)})},newlineAndIndent:function(t){return Xt(t,function(){for(var r=t.listSelections(),a=r.length-1;a>=0;a--)t.replaceRange(t.doc.lineSeparator(),r[a].anchor,r[a].head,"+input");r=t.listSelections();for(var s=0;s<r.length;s++)t.indentLine(r[s].from().line,null,!0);Rn(t)})},openLine:function(t){return t.replaceSelection(`
2990
+ `,"start")},toggleOverwrite:function(t){return t.toggleOverwrite()}};function md(t,r){var a=be(t.doc,r),s=Zr(a);return s!=a&&(r=je(s)),D1(!0,t,s,r,1)}function z3(t,r){var a=be(t.doc,r),s=s4(a);return s!=a&&(r=je(s)),D1(!0,t,a,r,-1)}function yd(t,r){var a=md(t,r.line),s=be(t.doc,a.line),c=Kt(s,t.doc.direction);if(!c||c[0].level==0){var h=Math.max(a.ch,s.text.search(/\S/)),f=r.line==a.line&&r.ch<=h&&r.ch;return J(a.line,f?0:h,a.sticky)}return a}function wa(t,r,a){if(typeof r=="string"&&(r=ts[r],!r))return!1;t.display.input.ensurePolled();var s=t.display.shift,c=!1;try{t.isReadOnly()&&(t.state.suppressEdits=!0),a&&(t.display.shift=!1),c=r(t)!=Ie}finally{t.display.shift=s,t.state.suppressEdits=!1}return c}function L3(t,r,a){for(var s=0;s<t.state.keyMaps.length;s++){var c=jn(r,t.state.keyMaps[s],a,t);if(c)return c}return t.options.extraKeys&&jn(r,t.options.extraKeys,a,t)||jn(r,t.options.keyMap,a,t)}var S3=new Be;function rs(t,r,a,s){var c=t.state.keySeq;if(c){if(gd(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())}),Cd(t,c+" "+r,a,s))return!0}return Cd(t,r,a,s)}function Cd(t,r,a,s){var c=L3(t,r,s);return c=="multi"&&(t.state.keySeq=r),c=="handled"&&wt(t,"keyHandled",t,r,a),(c=="handled"||c=="multi")&&(_t(a),m1(t)),!!c}function wd(t,r){var a=bd(r,!0);return a?r.shiftKey&&!t.state.keySeq?rs(t,"Shift-"+a,r,function(s){return wa(t,s,!0)})||rs(t,a,r,function(s){if(typeof s=="string"?/^go[A-Z]/.test(s):s.motion)return wa(t,s)}):rs(t,a,r,function(s){return wa(t,s)}):!1}function M3(t,r,a){return rs(t,"'"+a+"'",r,function(s){return wa(t,s,!0)})}var N1=null;function xd(t){var r=this;if(!(t.target&&t.target!=r.display.input.getField())&&(r.curOp.focus=ye(),!ft(r,t))){y&&b<11&&t.keyCode==27&&(t.returnValue=!1);var a=t.keyCode;r.display.shift=a==16||t.shiftKey;var s=wd(r,t);$&&(N1=s?a:null,!s&&a==88&&!Ks&&(B?t.metaKey:t.ctrlKey)&&r.replaceSelection("",null,"cut")),l&&!B&&!s&&a==46&&t.shiftKey&&!t.ctrlKey&&document.execCommand&&document.execCommand("cut"),a==18&&!/\bCodeMirror-crosshair\b/.test(r.display.lineDiv.className)&&T3(r)}}function T3(t){var r=t.display.lineDiv;ke(r,"CodeMirror-crosshair");function a(s){(s.keyCode==18||!s.altKey)&&(X(r,"CodeMirror-crosshair"),Ft(document,"keyup",a),Ft(document,"mouseover",a))}Se(document,"keyup",a),Se(document,"mouseover",a)}function zd(t){t.keyCode==16&&(this.doc.sel.shift=!1),ft(this,t)}function Ld(t){var r=this;if(!(t.target&&t.target!=r.display.input.getField())&&!(oi(r.display,t)||ft(r,t)||t.ctrlKey&&!t.altKey||B&&t.metaKey)){var a=t.keyCode,s=t.charCode;if($&&a==N1){N1=null,_t(t);return}if(!($&&(!t.which||t.which<10)&&wd(r,t))){var c=String.fromCharCode(s==null?a:s);c!="\b"&&(M3(r,t,c)||r.display.input.onKeyPress(t))}}}var k3=400,H1=function(t,r,a){this.time=t,this.pos=r,this.button=a};H1.prototype.compare=function(t,r,a){return this.time+k3>t&&C(r,this.pos)==0&&a==this.button};var is,ns;function O3(t,r){var a=+new Date;return ns&&ns.compare(a,t,r)?(is=ns=null,"triple"):is&&is.compare(a,t,r)?(ns=new H1(a,t,r),is=null,"double"):(is=new H1(a,t,r),ns=null,"single")}function Sd(t){var r=this,a=r.display;if(!(ft(r,t)||a.activeTouch&&a.input.supportsTouch())){if(a.input.ensurePolled(),a.shift=t.shiftKey,oi(a,t)){M||(a.scroller.draggable=!1,setTimeout(function(){return a.scroller.draggable=!0},100));return}if(!R1(r,t)){var s=qi(r,t),c=js(t),h=s?O3(s,c):"single";window.focus(),c==1&&r.state.selectingText&&r.state.selectingText(t),!(s&&$3(r,c,s,h,t))&&(c==1?s?_3(r,s,h,t):Ci(t)==a.scroller&&_t(t):c==2?(s&&ga(r.doc,s),setTimeout(function(){return a.input.focus()},20)):c==3&&(Me?r.display.input.onContextMenu(t):y1(r)))}}}function $3(t,r,a,s,c){var h="Click";return s=="double"?h="Double"+h:s=="triple"&&(h="Triple"+h),h=(r==1?"Left":r==2?"Middle":"Right")+h,rs(t,vd(h,c),c,function(f){if(typeof f=="string"&&(f=ts[f]),!f)return!1;var p=!1;try{t.isReadOnly()&&(t.state.suppressEdits=!0),p=f(t,a)!=Ie}finally{t.state.suppressEdits=!1}return p})}function E3(t,r,a){var s=t.getOption("configureMouse"),c=s?s(t,r,a):{};if(c.unit==null){var h=K?a.shiftKey&&a.metaKey:a.altKey;c.unit=h?"rectangle":r=="single"?"char":r=="double"?"word":"line"}return(c.extend==null||t.doc.extend)&&(c.extend=t.doc.extend||a.shiftKey),c.addNew==null&&(c.addNew=B?a.metaKey:a.ctrlKey),c.moveOnDrag==null&&(c.moveOnDrag=!(B?a.altKey:a.ctrlKey)),c}function _3(t,r,a,s){y?setTimeout(Et(M0,t),0):t.curOp.focus=ye();var c=E3(t,a,s),h=t.doc.sel,f;t.options.dragDrop&&So&&!t.isReadOnly()&&a=="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,s,r,c):A3(t,s,r,c)}function I3(t,r,a,s){var c=t.display,h=!1,f=xt(t,function(m){M&&(c.scroller.draggable=!1),t.state.draggingText=!1,t.state.delayingBlurEvent&&(t.hasFocus()?t.state.delayingBlurEvent=!1:y1(t)),Ft(c.wrapper.ownerDocument,"mouseup",f),Ft(c.wrapper.ownerDocument,"mousemove",p),Ft(c.scroller,"dragstart",g),Ft(c.scroller,"drop",f),h||(_t(m),s.addNew||ga(t.doc,a,null,null,s.extend),M&&!N||y&&b==9?setTimeout(function(){c.wrapper.ownerDocument.body.focus({preventScroll:!0}),c.input.focus()},20):c.input.focus())}),p=function(m){h=h||Math.abs(r.clientX-m.clientX)+Math.abs(r.clientY-m.clientY)>=10},g=function(){return h=!0};M&&(c.scroller.draggable=!0),t.state.draggingText=f,f.copy=!s.moveOnDrag,Se(c.wrapper.ownerDocument,"mouseup",f),Se(c.wrapper.ownerDocument,"mousemove",p),Se(c.scroller,"dragstart",g),Se(c.scroller,"drop",f),t.state.delayingBlurEvent=!0,setTimeout(function(){return c.input.focus()},20),c.scroller.dragDrop&&c.scroller.dragDrop()}function Md(t,r,a){if(a=="char")return new Ge(r,r);if(a=="word")return t.findWordAt(r);if(a=="line")return new Ge(J(r.line,0),de(t.doc,J(r.line+1,0)));var s=a(t,r);return new Ge(s.from,s.to)}function A3(t,r,a,s){y&&y1(t);var c=t.display,h=t.doc;_t(r);var f,p,g=h.sel,m=g.ranges;if(s.addNew&&!s.extend?(p=h.sel.contains(a),p>-1?f=m[p]:f=new Ge(a,a)):(f=h.sel.primary(),p=h.sel.primIndex),s.unit=="rectangle")s.addNew||(f=new Ge(a,a)),a=qi(t,r,!0,!0),p=-1;else{var z=Md(t,a,s.unit);s.extend?f=_1(f,z.anchor,z.head,s.extend):f=z}s.addNew?p==-1?(p=m.length,At(h,xr(t,m.concat([f]),p),{scroll:!1,origin:"*mouse"})):m.length>1&&m[p].empty()&&s.unit=="char"&&!s.extend?(At(h,xr(t,m.slice(0,p).concat(m.slice(p+1)),0),{scroll:!1,origin:"*mouse"}),g=h.sel):I1(h,p,f,Ae):(p=0,At(h,new ur([f],0),Ae),g=h.sel);var S=a;function P(ae){if(C(S,ae)!=0)if(S=ae,s.unit=="rectangle"){for(var pe=[],Le=t.options.tabSize,xe=Xe(be(h,a.line).text,a.ch,Le),Pe=Xe(be(h,ae.line).text,ae.ch,Le),Je=Math.min(xe,Pe),Lt=Math.max(xe,Pe),nt=Math.min(a.line,ae.line),Jt=Math.min(t.lastLine(),Math.max(a.line,ae.line));nt<=Jt;nt++){var Wt=be(h,nt).text,pt=ht(Wt,Je,Le);Je==Lt?pe.push(new Ge(J(nt,pt),J(nt,pt))):Wt.length>pt&&pe.push(new Ge(J(nt,pt),J(nt,ht(Wt,Lt,Le))))}pe.length||pe.push(new Ge(a,a)),At(h,xr(t,g.ranges.slice(0,p).concat(pe),p),{origin:"*mouse",scroll:!1}),t.scrollIntoView(ae)}else{var Ut=f,kt=Md(t,ae,s.unit),bt=Ut.anchor,gt;C(kt.anchor,bt)>0?(gt=kt.head,bt=$e(Ut.from(),kt.anchor)):(gt=kt.anchor,bt=ee(Ut.to(),kt.head));var lt=g.ranges.slice(0);lt[p]=P3(t,new Ge(de(h,bt),gt)),At(h,xr(t,lt,p),Ae)}}var I=c.wrapper.getBoundingClientRect(),Z=0;function q(ae){var pe=++Z,Le=qi(t,ae,!0,s.unit=="rectangle");if(Le)if(C(Le,S)!=0){t.curOp.focus=ye(),P(Le);var xe=ca(c,h);(Le.line>=xe.to||Le.line<xe.from)&&setTimeout(xt(t,function(){Z==pe&&q(ae)}),150)}else{var Pe=ae.clientY<I.top?-20:ae.clientY>I.bottom?20:0;Pe&&setTimeout(xt(t,function(){Z==pe&&(c.scroller.scrollTop+=Pe,q(ae))}),50)}}function te(ae){t.state.selectingText=!1,Z=1/0,ae&&(_t(ae),c.input.focus()),Ft(c.wrapper.ownerDocument,"mousemove",se),Ft(c.wrapper.ownerDocument,"mouseup",he),h.history.lastSelOrigin=null}var se=xt(t,function(ae){ae.buttons===0||!js(ae)?te(ae):q(ae)}),he=xt(t,te);t.state.selectingText=he,Se(c.wrapper.ownerDocument,"mousemove",se),Se(c.wrapper.ownerDocument,"mouseup",he)}function P3(t,r){var a=r.anchor,s=r.head,c=be(t.doc,a.line);if(C(a,s)==0&&a.sticky==s.sticky)return r;var h=Kt(c);if(!h)return r;var f=st(h,a.ch,a.sticky),p=h[f];if(p.from!=a.ch&&p.to!=a.ch)return r;var g=f+(p.from==a.ch==(p.level!=1)?0:1);if(g==0||g==h.length)return r;var m;if(s.line!=a.line)m=(s.line-a.line)*(t.doc.direction=="ltr"?1:-1)>0;else{var z=st(h,s.ch,s.sticky),S=z-f||(s.ch-a.ch)*(p.level==1?-1:1);z==g-1||z==g?m=S<0:m=S>0}var P=h[g+(m?-1:0)],I=m==(P.level==1),Z=I?P.from:P.to,q=I?"after":"before";return a.ch==Z&&a.sticky==q?r:new Ge(new J(a.line,Z,q),s)}function Td(t,r,a,s){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;s&&_t(r);var f=t.display,p=f.lineDiv.getBoundingClientRect();if(h>p.bottom||!Tt(t,a))return or(r);h-=p.top-f.viewOffset;for(var g=0;g<t.display.gutterSpecs.length;++g){var m=f.gutters.childNodes[g];if(m&&m.getBoundingClientRect().right>=c){var z=Br(t.doc,h),S=t.display.gutterSpecs[g];return Oe(t,a,t,z,S.className,r),or(r)}}}function R1(t,r){return Td(t,r,"gutterClick",!0)}function kd(t,r){oi(t.display,r)||D3(t,r)||ft(t,r,"contextmenu")||Me||t.display.input.onContextMenu(r)}function D3(t,r){return Tt(t,"gutterContextMenu")?Td(t,r,"gutterContextMenu",!1):!1}function Od(t){t.display.wrapper.className=t.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+t.options.theme.replace(/(^|\s)\s*/g," cm-s-"),Ho(t)}var qn={toString:function(){return"CodeMirror.Init"}},$d={},xa={};function N3(t){var r=t.optionHandlers;function a(s,c,h,f){t.defaults[s]=c,h&&(r[s]=f?function(p,g,m){m!=qn&&h(p,g,m)}:h)}t.defineOption=a,t.Init=qn,a("value","",function(s,c){return s.setValue(c)},!0),a("mode",null,function(s,c){s.doc.modeOption=c,O1(s)},!0),a("indentUnit",2,O1,!0),a("indentWithTabs",!1),a("smartIndent",!0),a("tabSize",4,function(s){jo(s),Ho(s),Vt(s)},!0),a("lineSeparator",null,function(s,c){if(s.doc.lineSep=c,!!c){var h=[],f=s.doc.first;s.doc.iter(function(g){for(var m=0;;){var z=g.text.indexOf(c,m);if(z==-1)break;m=z+c.length,h.push(J(f,z))}f++});for(var p=h.length-1;p>=0;p--)Wn(s.doc,c,h[p],J(h[p].line,h[p].ch+c.length))}}),a("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(s,c,h){s.state.specialChars=new RegExp(c.source+(c.test(" ")?"":"| "),"g"),h!=qn&&s.refresh()}),a("specialCharPlaceholder",h4,function(s){return s.refresh()},!0),a("electricChars",!0),a("inputStyle",A?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),a("spellcheck",!1,function(s,c){return s.getInputField().spellcheck=c},!0),a("autocorrect",!1,function(s,c){return s.getInputField().autocorrect=c},!0),a("autocapitalize",!1,function(s,c){return s.getInputField().autocapitalize=c},!0),a("rtlMoveVisually",!ue),a("wholeLineUpdateBefore",!0),a("theme","default",function(s){Od(s),Uo(s)},!0),a("keyMap","default",function(s,c,h){var f=Ca(c),p=h!=qn&&Ca(h);p&&p.detach&&p.detach(s,f),f.attach&&f.attach(s,p||null)}),a("extraKeys",null),a("configureMouse",null),a("lineWrapping",!1,R3,!0),a("gutters",[],function(s,c){s.display.gutterSpecs=T1(c,s.options.lineNumbers),Uo(s)},!0),a("fixedGutter",!0,function(s,c){s.display.gutters.style.left=c?v1(s.display)+"px":"0",s.refresh()},!0),a("coverGutterNextToScrollbar",!1,function(s){return Fn(s)},!0),a("scrollbarStyle","native",function(s){_0(s),Fn(s),s.display.scrollbars.setScrollTop(s.doc.scrollTop),s.display.scrollbars.setScrollLeft(s.doc.scrollLeft)},!0),a("lineNumbers",!1,function(s,c){s.display.gutterSpecs=T1(s.options.gutters,c),Uo(s)},!0),a("firstLineNumber",1,Uo,!0),a("lineNumberFormatter",function(s){return s},Uo,!0),a("showCursorWhenSelecting",!1,Ro,!0),a("resetSelectionOnContextMenu",!0),a("lineWiseCopyCut",!0),a("pasteLinesPerSelection",!0),a("selectionsMayTouch",!1),a("readOnly",!1,function(s,c){c=="nocursor"&&(Hn(s),s.display.input.blur()),s.display.input.readOnlyChanged(c)}),a("screenReaderLabel",null,function(s,c){c=c===""?null:c,s.display.input.screenReaderLabelChanged(c)}),a("disableInput",!1,function(s,c){c||s.display.input.reset()},!0),a("dragDrop",!0,H3),a("allowDropFileTypes",null),a("cursorBlinkRate",530),a("cursorScrollMargin",0),a("cursorHeight",1,Ro,!0),a("singleCursorHeightPerLine",!0,Ro,!0),a("workTime",100),a("workDelay",100),a("flattenSpans",!0,jo,!0),a("addModeClass",!1,jo,!0),a("pollInterval",100),a("undoDepth",200,function(s,c){return s.doc.history.undoDepth=c}),a("historyEventDelay",1250),a("viewportMargin",10,function(s){return s.refresh()},!0),a("maxHighlightLength",1e4,jo,!0),a("moveInputWithCursor",!0,function(s,c){c||s.display.input.resetPosition()}),a("tabindex",null,function(s,c){return s.display.input.getField().tabIndex=c||""}),a("autofocus",null),a("direction","ltr",function(s,c){return s.doc.setDirection(c)},!0),a("phrases",null)}function H3(t,r,a){var s=a&&a!=qn;if(!r!=!s){var c=t.display.dragFunctions,h=r?Se:Ft;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?(ke(t.display.wrapper,"CodeMirror-wrap"),t.display.sizer.style.minWidth="",t.display.sizerWidth=null):(X(t.display.wrapper,"CodeMirror-wrap"),s1(t)),b1(t),Vt(t),Ho(t),setTimeout(function(){return Fn(t)},100)}function tt(t,r){var a=this;if(!(this instanceof tt))return new tt(t,r);this.options=r=r?Ye(r):{},Ye($d,r,!1);var s=r.value;typeof s=="string"?s=new Zt(s,r.mode,null,r.lineSeparator,r.direction):r.mode&&(s.modeOption=r.mode),this.doc=s;var c=new tt.inputStyles[r.inputStyle](this),h=this.display=new J4(t,s,c,r);h.wrapper.CodeMirror=this,Od(this),r.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),_0(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 Be,keySeq:null,specialChars:null},r.autofocus&&!A&&h.input.focus(),y&&b<11&&setTimeout(function(){return a.display.input.reset(!0)},20),F3(this),b3(),Ji(this),this.curOp.forceUpdate=!0,V0(this,s),r.autofocus&&!A||this.hasFocus()?setTimeout(function(){a.hasFocus()&&!a.state.focused&&C1(a)},20):Hn(this);for(var f in xa)xa.hasOwnProperty(f)&&xa[f](this,r[f],qn);P0(this),r.finishInit&&r.finishInit(this);for(var p=0;p<F1.length;++p)F1[p](this);Qi(this),M&&r.lineWrapping&&getComputedStyle(h.lineDiv).textRendering=="optimizelegibility"&&(h.lineDiv.style.textRendering="auto")}tt.defaults=$d,tt.optionHandlers=xa;function F3(t){var r=t.display;Se(r.scroller,"mousedown",xt(t,Sd)),y&&b<11?Se(r.scroller,"dblclick",xt(t,function(g){if(!ft(t,g)){var m=qi(t,g);if(!(!m||R1(t,g)||oi(t.display,g))){_t(g);var z=t.findWordAt(m);ga(t.doc,z.anchor,z.head)}}})):Se(r.scroller,"dblclick",function(g){return ft(t,g)||_t(g)}),Se(r.scroller,"contextmenu",function(g){return kd(t,g)}),Se(r.input.getField(),"contextmenu",function(g){r.scroller.contains(g.target)||kd(t,g)});var a,s={end:0};function c(){r.activeTouch&&(a=setTimeout(function(){return r.activeTouch=null},1e3),s=r.activeTouch,s.end=+new Date)}function h(g){if(g.touches.length!=1)return!1;var m=g.touches[0];return m.radiusX<=1&&m.radiusY<=1}function f(g,m){if(m.left==null)return!0;var z=m.left-g.left,S=m.top-g.top;return z*z+S*S>20*20}Se(r.scroller,"touchstart",function(g){if(!ft(t,g)&&!h(g)&&!R1(t,g)){r.input.ensurePolled(),clearTimeout(a);var m=+new Date;r.activeTouch={start:m,moved:!1,prev:m-s.end<=300?s:null},g.touches.length==1&&(r.activeTouch.left=g.touches[0].pageX,r.activeTouch.top=g.touches[0].pageY)}}),Se(r.scroller,"touchmove",function(){r.activeTouch&&(r.activeTouch.moved=!0)}),Se(r.scroller,"touchend",function(g){var m=r.activeTouch;if(m&&!oi(r,g)&&m.left!=null&&!m.moved&&new Date-m.start<300){var z=t.coordsChar(r.activeTouch,"page"),S;!m.prev||f(m,m.prev)?S=new Ge(z,z):!m.prev.prev||f(m,m.prev.prev)?S=t.findWordAt(z):S=new Ge(J(z.line,0),de(t.doc,J(z.line+1,0))),t.setSelection(S.anchor,S.head),t.focus(),_t(g)}c()}),Se(r.scroller,"touchcancel",c),Se(r.scroller,"scroll",function(){r.scroller.clientHeight&&(Bo(t,r.scroller.scrollTop),Yi(t,r.scroller.scrollLeft,!0),Oe(t,"scroll",t))}),Se(r.scroller,"mousewheel",function(g){return H0(t,g)}),Se(r.scroller,"DOMMouseScroll",function(g){return H0(t,g)}),Se(r.wrapper,"scroll",function(){return r.wrapper.scrollTop=r.wrapper.scrollLeft=0}),r.dragFunctions={enter:function(g){ft(t,g)||Wi(g)},over:function(g){ft(t,g)||(v3(t,g),Wi(g))},start:function(g){return g3(t,g)},drop:xt(t,p3),leave:function(g){ft(t,g)||hd(t)}};var p=r.input.getField();Se(p,"keyup",function(g){return zd.call(t,g)}),Se(p,"keydown",xt(t,xd)),Se(p,"keypress",xt(t,Ld)),Se(p,"focus",function(g){return C1(t,g)}),Se(p,"blur",function(g){return Hn(t,g)})}var F1=[];tt.defineInitHook=function(t){return F1.push(t)};function os(t,r,a,s){var c=t.doc,h;a==null&&(a="add"),a=="smart"&&(c.mode.indent?h=Io(t,r).state:a="prev");var f=t.options.tabSize,p=be(c,r),g=Xe(p.text,null,f);p.stateAfter&&(p.stateAfter=null);var m=p.text.match(/^\s*/)[0],z;if(!s&&!/\S/.test(p.text))z=0,a="not";else if(a=="smart"&&(z=c.mode.indent(h,p.text.slice(m.length),p.text),z==Ie||z>150)){if(!s)return;a="prev"}a=="prev"?r>c.first?z=Xe(be(c,r-1).text,null,f):z=0:a=="add"?z=g+t.options.indentUnit:a=="subtract"?z=g-t.options.indentUnit:typeof a=="number"&&(z=g+a),z=Math.max(0,z);var S="",P=0;if(t.options.indentWithTabs)for(var I=Math.floor(z/f);I;--I)P+=f,S+=" ";if(P<z&&(S+=ir(z-P)),S!=m)return Wn(c,S,J(r,0),J(r,m.length),"+input"),p.stateAfter=null,!0;for(var Z=0;Z<c.sel.ranges.length;Z++){var q=c.sel.ranges[Z];if(q.head.line==r&&q.head.ch<m.length){var te=J(r,m.length);I1(c,Z,new Ge(te,te));break}}}var zr=null;function za(t){zr=t}function B1(t,r,a,s,c){var h=t.doc;t.display.shift=!1,s||(s=h.sel);var f=+new Date-200,p=c=="paste"||t.state.pasteIncoming>f,g=To(r),m=null;if(p&&s.ranges.length>1)if(zr&&zr.text.join(`
2991
2991
  `)==r){if(s.ranges.length%zr.text.length==0){m=[];for(var z=0;z<zr.text.length;z++)m.push(h.splitLines(zr.text[z]))}}else g.length==s.ranges.length&&t.options.pasteLinesPerSelection&&(m=Ve(g,function(se){return[se]}));for(var S=t.curOp.updateInput,P=s.ranges.length-1;P>=0;P--){var I=s.ranges[P],Z=I.from(),q=I.to();I.empty()&&(a&&a>0?Z=J(Z.line,Z.ch-a):t.state.overwrite&&!p?q=J(q.line,Math.min(be(h,q.line).text.length,q.ch+_e(g).length)):p&&zr&&zr.lineWise&&zr.text.join(`
2992
2992
  `)==g.join(`
2993
- `)&&(Z=q=J(Z.line,0)));var te={from:Z,to:q,text:m?m[P%m.length]:g,origin:c||(p?"paste":t.state.cutIncoming>f?"cut":"+input")};Zi(t.doc,te),wt(t,"inputRead",t,te)}r&&!p&&_d(t,r),Ri(t),t.curOp.updateInput<2&&(t.curOp.updateInput=S),t.curOp.typing=!0,t.state.pasteIncoming=t.state.cutIncoming=-1}function Ed(t,r){var a=t.clipboardData&&t.clipboardData.getData("Text");if(a)return t.preventDefault(),!r.isReadOnly()&&!r.options.disableInput&&Xt(r,function(){return B1(r,a,0,null,"paste")}),!0}function _d(t,r){if(!(!t.options.electricChars||!t.options.smartIndent))for(var a=t.doc.sel,s=a.ranges.length-1;s>=0;s--){var c=a.ranges[s];if(!(c.head.ch>100||s&&a.ranges[s-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=os(t,c.head.line,"smart");break}}else h.electricInput&&h.electricInput.test(be(t.doc,c.head.line).text.slice(0,c.head.ch))&&(f=os(t,c.head.line,"smart"));f&&wt(t,"electricInput",t,c.head.line)}}}function Id(t){for(var r=[],a=[],s=0;s<t.doc.sel.ranges.length;s++){var c=t.doc.sel.ranges[s].head.line,h={anchor:J(c,0),head:J(c+1,0)};a.push(h),r.push(t.getRange(h.anchor,h.head))}return{text:r,ranges:a}}function Ad(t,r,a,s){t.setAttribute("autocorrect",a?"":"off"),t.setAttribute("autocapitalize",s?"":"off"),t.setAttribute("spellcheck",!!r)}function Pd(){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 M?t.style.width="1000px":t.setAttribute("wrap","off"),_&&(t.style.border="1px solid black"),Ad(t),r}function B3(t){var r=t.optionHandlers,a=t.helpers={};t.prototype={constructor:t,focus:function(){window.focus(),this.display.input.focus()},setOption:function(s,c){var h=this.options,f=h[s];h[s]==c&&s!="mode"||(h[s]=c,r.hasOwnProperty(s)&&xt(this,r[s])(this,c,f),Oe(this,"optionChange",this,s))},getOption:function(s){return this.options[s]},getDoc:function(){return this.doc},addKeyMap:function(s,c){this.state.keyMaps[c?"push":"unshift"](Ca(s))},removeKeyMap:function(s){for(var c=this.state.keyMaps,h=0;h<c.length;++h)if(c[h]==s||c[h].name==s)return c.splice(h,1),!0},addOverlay:Nt(function(s,c){var h=s.token?s:t.getMode(this.options,s);if(h.startState)throw new Error("Overlays may not be stateful.");ct(this.state.overlays,{mode:h,modeSpec:s,opaque:c&&c.opaque,priority:c&&c.priority||0},function(f){return f.priority}),this.state.modeGen++,Vt(this)}),removeOverlay:Nt(function(s){for(var c=this.state.overlays,h=0;h<c.length;++h){var f=c[h].modeSpec;if(f==s||typeof s=="string"&&f.name==s){c.splice(h,1),this.state.modeGen++,Vt(this);return}}}),indentLine:Nt(function(s,c,h){typeof c!="string"&&typeof c!="number"&&(c==null?c=this.options.smartIndent?"smart":"prev":c=c?"add":"subtract"),jn(this.doc,s)&&os(this,s,c,h)}),indentSelection:Nt(function(s){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&&(os(this,p.head.line,s,!0),h=p.head.line,f==this.doc.sel.primIndex&&Ri(this));else{var g=p.from(),m=p.to(),z=Math.max(h,g.line);h=Math.min(this.lastLine(),m.line-(m.ch?0:1))+1;for(var S=z;S<h;++S)os(this,S,s);var P=this.doc.sel.ranges;g.ch==0&&c.length==P.length&&P[f].from().ch>0&&I1(this.doc,f,new Ge(g,P[f].to()),De)}}}),getTokenAt:function(s,c){return Zu(this,s,c)},getLineTokens:function(s,c){return Zu(this,J(s),c,!0)},getTokenTypeAt:function(s){s=de(this.doc,s);var c=Fu(this,be(this.doc,s.line)),h=0,f=(c.length-1)/2,p=s.ch,g;if(p==0)g=c[2];else for(;;){var m=h+f>>1;if((m?c[m*2-1]:0)>=p)f=m;else if(c[m*2+1]<p)h=m+1;else{g=c[m*2+2];break}}var z=g?g.indexOf("overlay "):-1;return z<0?g:z==0?null:g.slice(0,z-1)},getModeAt:function(s){var c=this.doc.mode;return c.innerMode?t.innerMode(c,this.getTokenAt(s).state).mode:c},getHelper:function(s,c){return this.getHelpers(s,c)[0]},getHelpers:function(s,c){var h=[];if(!a.hasOwnProperty(c))return h;var f=a[c],p=this.getModeAt(s);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 m=f[p[c][g]];m&&h.push(m)}else p.helperType&&f[p.helperType]?h.push(f[p.helperType]):f[p.name]&&h.push(f[p.name]);for(var z=0;z<f._global.length;z++){var S=f._global[z];S.pred(p,this)&&ge(h,S.val)==-1&&h.push(S.val)}return h},getStateAfter:function(s,c){var h=this.doc;return s=Fe(h,s==null?h.first+h.size-1:s),Io(this,s+1,c).state},cursorCoords:function(s,c){var h,f=this.doc.sel.primary();return s==null?h=f.head:typeof s=="object"?h=de(this.doc,s):h=s?f.from():f.to(),wr(this,h,c||"page")},charCoords:function(s,c){return oa(this,de(this.doc,s),c||"page")},coordsChar:function(s,c){return s=m0(this,s,c||"page"),f1(this,s.left,s.top)},lineAtHeight:function(s,c){return s=m0(this,{top:s,left:0},c||"page").top,Br(this.doc,s+this.display.viewOffset)},heightAtLine:function(s,c,h){var f=!1,p;if(typeof s=="number"){var g=this.doc.first+this.doc.size-1;s<this.doc.first?s=this.doc.first:s>g&&(s=g,f=!0),p=be(this.doc,s)}else p=s;return ia(this,p,{top:0,left:0},c||"page",h||f).top+(f?this.doc.height-on(p):0)},defaultTextHeight:function(){return Di(this.display)},defaultCharWidth:function(){return Ni(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(s,c,h,f,p){var g=this.display;s=wr(this,de(this.doc,s));var m=s.bottom,z=s.left;if(c.style.position="absolute",c.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(c),g.sizer.appendChild(c),f=="over")m=s.top;else if(f=="above"||f=="near"){var S=Math.max(g.wrapper.clientHeight,this.doc.height),P=Math.max(g.sizer.clientWidth,g.lineSpace.clientWidth);(f=="above"||s.bottom+c.offsetHeight>S)&&s.top>c.offsetHeight?m=s.top-c.offsetHeight:s.bottom+c.offsetHeight<=S&&(m=s.bottom),z+c.offsetWidth>P&&(z=P-c.offsetWidth)}c.style.top=m+"px",c.style.left=c.style.right="",p=="right"?(z=g.sizer.clientWidth-c.offsetWidth,c.style.right="0px"):(p=="left"?z=0:p=="middle"&&(z=(g.sizer.clientWidth-c.offsetWidth)/2),c.style.left=z+"px"),h&&H4(this,{left:z,top:m,right:z+c.offsetWidth,bottom:m+c.offsetHeight})},triggerOnKeyDown:Nt(xd),triggerOnKeyPress:Nt(Ld),triggerOnKeyUp:zd,triggerOnMouseDown:Nt(Sd),execCommand:function(s){if(ts.hasOwnProperty(s))return ts[s].call(null,this)},triggerElectric:Nt(function(s){_d(this,s)}),findPosH:function(s,c,h,f){var p=1;c<0&&(p=-1,c=-c);for(var g=de(this.doc,s),m=0;m<c&&(g=V1(this.doc,g,p,h,f),!g.hitSide);++m);return g},moveH:Nt(function(s,c){var h=this;this.extendSelectionsBy(function(f){return h.display.shift||h.doc.extend||f.empty()?V1(h.doc,f.head,s,c,h.options.rtlMoveVisually):s<0?f.from():f.to()},Te)}),deleteH:Nt(function(s,c){var h=this.doc.sel,f=this.doc;h.somethingSelected()?f.replaceSelection("",null,"+delete"):Gi(this,function(p){var g=V1(f,p.head,s,c,!1);return s<0?{from:g,to:p.head}:{from:p.head,to:g}})}),findPosV:function(s,c,h,f){var p=1,g=f;c<0&&(p=-1,c=-c);for(var m=de(this.doc,s),z=0;z<c;++z){var S=wr(this,m,"div");if(g==null?g=S.left:S.left=g,m=Dd(this,S,p,h),m.hitSide)break}return m},moveV:Nt(function(s,c){var h=this,f=this.doc,p=[],g=!this.display.shift&&!f.extend&&f.sel.somethingSelected();if(f.extendSelectionsBy(function(z){if(g)return s<0?z.from():z.to();var S=wr(h,z.head,"div");z.goalColumn!=null&&(S.left=z.goalColumn),p.push(S.left);var P=Dd(h,S,s,c);return c=="page"&&z==f.sel.primary()&&x1(h,oa(h,P,"div").top-S.top),P},Te),p.length)for(var m=0;m<f.sel.ranges.length;m++)f.sel.ranges[m].goalColumn=p[m]}),findWordAt:function(s){var c=this.doc,h=be(c,s.line).text,f=s.ch,p=s.ch;if(h){var g=this.getHelper(s,"wordChars");(s.sticky=="before"||p==h.length)&&f?--f:++p;for(var m=h.charAt(f),z=H(m,g)?function(S){return H(S,g)}:/\s/.test(m)?function(S){return/\s/.test(S)}:function(S){return!/\s/.test(S)&&!H(S)};f>0&&z(h.charAt(f-1));)--f;for(;p<h.length&&z(h.charAt(p));)++p}return new Ge(J(s.line,f),J(s.line,p))},toggleOverwrite:function(s){s!=null&&s==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?ke(this.display.cursorDiv,"CodeMirror-overwrite"):X(this.display.cursorDiv,"CodeMirror-overwrite"),Oe(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==ye()},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:Nt(function(s,c){Fo(this,s,c)}),getScrollInfo:function(){var s=this.display.scroller;return{left:s.scrollLeft,top:s.scrollTop,height:s.scrollHeight-Wr(this)-this.display.barHeight,width:s.scrollWidth-Wr(this)-this.display.barWidth,clientHeight:c1(this),clientWidth:Gn(this)}},scrollIntoView:Nt(function(s,c){s==null?(s={from:this.doc.sel.primary().head,to:null},c==null&&(c=this.options.cursorScrollMargin)):typeof s=="number"?s={from:J(s,0),to:null}:s.from==null&&(s={from:s,to:null}),s.to||(s.to=s.from),s.margin=c||0,s.from.line!=null?R4(this,s):k0(this,s.from,s.to,s.margin)}),setSize:Nt(function(s,c){var h=this,f=function(g){return typeof g=="number"||/^\d+$/.test(String(g))?g+"px":g};s!=null&&(this.display.wrapper.style.width=f(s)),c!=null&&(this.display.wrapper.style.height=f(c)),this.options.lineWrapping&&g0(this);var p=this.display.viewFrom;this.doc.iter(p,this.display.viewTo,function(g){if(g.widgets){for(var m=0;m<g.widgets.length;m++)if(g.widgets[m].noHScroll){Ln(h,p,"widget");break}}++p}),this.curOp.forceUpdate=!0,Oe(this,"refresh",this)}),operation:function(s){return Xt(this,s)},startOperation:function(){return Qn(this)},endOperation:function(){return ei(this)},refresh:Nt(function(){var s=this.display.cachedTextHeight;Vt(this),this.curOp.forceUpdate=!0,Ho(this),Fo(this,this.doc.scrollLeft,this.doc.scrollTop),S1(this.display),(s==null||Math.abs(s-Di(this.display))>.5||this.options.lineWrapping)&&b1(this),Oe(this,"refresh",this)}),swapDoc:Nt(function(s){var c=this.doc;return c.cm=null,this.state.selectingText&&this.state.selectingText(),V0(this,s),Ho(this),this.display.input.reset(),Fo(this,s.scrollLeft,s.scrollTop),this.curOp.forceScroll=!0,wt(this,"swapDoc",this,c),c}),phrase:function(s){var c=this.options.phrases;return c&&Object.prototype.hasOwnProperty.call(c,s)?c[s]:s},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}},Hr(t),t.registerHelper=function(s,c,h){a.hasOwnProperty(s)||(a[s]=t[s]={_global:[]}),a[s][c]=h},t.registerGlobalHelper=function(s,c,h,f){t.registerHelper(s,c,f),a[s]._global.push({pred:h,val:f})}}function V1(t,r,a,s,c){var h=r,f=a,p=be(t,r.line),g=c&&t.direction=="rtl"?-a:a;function m(){var he=r.line+g;return he<t.first||he>=t.first+t.size?!1:(r=new J(he,r.ch,r.sticky),p=be(t,he))}function z(he){var ae;if(s=="codepoint"){var pe=p.text.charCodeAt(r.ch+(a>0?0:-1));if(isNaN(pe))ae=null;else{var Le=a>0?pe>=55296&&pe<56320:pe>=56320&&pe<57343;ae=new J(r.line,Math.max(0,Math.min(p.text.length,r.ch+a*(Le?2:1))),-a)}}else c?ae=x3(t.cm,p,r,a):ae=P1(p,r,a);if(ae==null)if(!he&&m())r=D1(c,t.cm,p,r.line,g);else return!1;else r=ae;return!0}if(s=="char"||s=="codepoint")z();else if(s=="column")z(!0);else if(s=="word"||s=="group")for(var S=null,P=s=="group",I=t.cm&&t.cm.getHelper(r,"wordChars"),Z=!0;!(a<0&&!z(!Z));Z=!1){var q=p.text.charAt(r.ch)||`
2993
+ `)&&(Z=q=J(Z.line,0)));var te={from:Z,to:q,text:m?m[P%m.length]:g,origin:c||(p?"paste":t.state.cutIncoming>f?"cut":"+input")};Zn(t.doc,te),wt(t,"inputRead",t,te)}r&&!p&&_d(t,r),Rn(t),t.curOp.updateInput<2&&(t.curOp.updateInput=S),t.curOp.typing=!0,t.state.pasteIncoming=t.state.cutIncoming=-1}function Ed(t,r){var a=t.clipboardData&&t.clipboardData.getData("Text");if(a)return t.preventDefault(),!r.isReadOnly()&&!r.options.disableInput&&Xt(r,function(){return B1(r,a,0,null,"paste")}),!0}function _d(t,r){if(!(!t.options.electricChars||!t.options.smartIndent))for(var a=t.doc.sel,s=a.ranges.length-1;s>=0;s--){var c=a.ranges[s];if(!(c.head.ch>100||s&&a.ranges[s-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=os(t,c.head.line,"smart");break}}else h.electricInput&&h.electricInput.test(be(t.doc,c.head.line).text.slice(0,c.head.ch))&&(f=os(t,c.head.line,"smart"));f&&wt(t,"electricInput",t,c.head.line)}}}function Id(t){for(var r=[],a=[],s=0;s<t.doc.sel.ranges.length;s++){var c=t.doc.sel.ranges[s].head.line,h={anchor:J(c,0),head:J(c+1,0)};a.push(h),r.push(t.getRange(h.anchor,h.head))}return{text:r,ranges:a}}function Ad(t,r,a,s){t.setAttribute("autocorrect",a?"":"off"),t.setAttribute("autocapitalize",s?"":"off"),t.setAttribute("spellcheck",!!r)}function Pd(){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 M?t.style.width="1000px":t.setAttribute("wrap","off"),_&&(t.style.border="1px solid black"),Ad(t),r}function B3(t){var r=t.optionHandlers,a=t.helpers={};t.prototype={constructor:t,focus:function(){window.focus(),this.display.input.focus()},setOption:function(s,c){var h=this.options,f=h[s];h[s]==c&&s!="mode"||(h[s]=c,r.hasOwnProperty(s)&&xt(this,r[s])(this,c,f),Oe(this,"optionChange",this,s))},getOption:function(s){return this.options[s]},getDoc:function(){return this.doc},addKeyMap:function(s,c){this.state.keyMaps[c?"push":"unshift"](Ca(s))},removeKeyMap:function(s){for(var c=this.state.keyMaps,h=0;h<c.length;++h)if(c[h]==s||c[h].name==s)return c.splice(h,1),!0},addOverlay:Nt(function(s,c){var h=s.token?s:t.getMode(this.options,s);if(h.startState)throw new Error("Overlays may not be stateful.");ct(this.state.overlays,{mode:h,modeSpec:s,opaque:c&&c.opaque,priority:c&&c.priority||0},function(f){return f.priority}),this.state.modeGen++,Vt(this)}),removeOverlay:Nt(function(s){for(var c=this.state.overlays,h=0;h<c.length;++h){var f=c[h].modeSpec;if(f==s||typeof s=="string"&&f.name==s){c.splice(h,1),this.state.modeGen++,Vt(this);return}}}),indentLine:Nt(function(s,c,h){typeof c!="string"&&typeof c!="number"&&(c==null?c=this.options.smartIndent?"smart":"prev":c=c?"add":"subtract"),Ui(this.doc,s)&&os(this,s,c,h)}),indentSelection:Nt(function(s){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&&(os(this,p.head.line,s,!0),h=p.head.line,f==this.doc.sel.primIndex&&Rn(this));else{var g=p.from(),m=p.to(),z=Math.max(h,g.line);h=Math.min(this.lastLine(),m.line-(m.ch?0:1))+1;for(var S=z;S<h;++S)os(this,S,s);var P=this.doc.sel.ranges;g.ch==0&&c.length==P.length&&P[f].from().ch>0&&I1(this.doc,f,new Ge(g,P[f].to()),De)}}}),getTokenAt:function(s,c){return Zu(this,s,c)},getLineTokens:function(s,c){return Zu(this,J(s),c,!0)},getTokenTypeAt:function(s){s=de(this.doc,s);var c=Fu(this,be(this.doc,s.line)),h=0,f=(c.length-1)/2,p=s.ch,g;if(p==0)g=c[2];else for(;;){var m=h+f>>1;if((m?c[m*2-1]:0)>=p)f=m;else if(c[m*2+1]<p)h=m+1;else{g=c[m*2+2];break}}var z=g?g.indexOf("overlay "):-1;return z<0?g:z==0?null:g.slice(0,z-1)},getModeAt:function(s){var c=this.doc.mode;return c.innerMode?t.innerMode(c,this.getTokenAt(s).state).mode:c},getHelper:function(s,c){return this.getHelpers(s,c)[0]},getHelpers:function(s,c){var h=[];if(!a.hasOwnProperty(c))return h;var f=a[c],p=this.getModeAt(s);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 m=f[p[c][g]];m&&h.push(m)}else p.helperType&&f[p.helperType]?h.push(f[p.helperType]):f[p.name]&&h.push(f[p.name]);for(var z=0;z<f._global.length;z++){var S=f._global[z];S.pred(p,this)&&ge(h,S.val)==-1&&h.push(S.val)}return h},getStateAfter:function(s,c){var h=this.doc;return s=Fe(h,s==null?h.first+h.size-1:s),Io(this,s+1,c).state},cursorCoords:function(s,c){var h,f=this.doc.sel.primary();return s==null?h=f.head:typeof s=="object"?h=de(this.doc,s):h=s?f.from():f.to(),wr(this,h,c||"page")},charCoords:function(s,c){return oa(this,de(this.doc,s),c||"page")},coordsChar:function(s,c){return s=m0(this,s,c||"page"),f1(this,s.left,s.top)},lineAtHeight:function(s,c){return s=m0(this,{top:s,left:0},c||"page").top,Br(this.doc,s+this.display.viewOffset)},heightAtLine:function(s,c,h){var f=!1,p;if(typeof s=="number"){var g=this.doc.first+this.doc.size-1;s<this.doc.first?s=this.doc.first:s>g&&(s=g,f=!0),p=be(this.doc,s)}else p=s;return na(this,p,{top:0,left:0},c||"page",h||f).top+(f?this.doc.height-ni(p):0)},defaultTextHeight:function(){return Dn(this.display)},defaultCharWidth:function(){return Nn(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(s,c,h,f,p){var g=this.display;s=wr(this,de(this.doc,s));var m=s.bottom,z=s.left;if(c.style.position="absolute",c.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(c),g.sizer.appendChild(c),f=="over")m=s.top;else if(f=="above"||f=="near"){var S=Math.max(g.wrapper.clientHeight,this.doc.height),P=Math.max(g.sizer.clientWidth,g.lineSpace.clientWidth);(f=="above"||s.bottom+c.offsetHeight>S)&&s.top>c.offsetHeight?m=s.top-c.offsetHeight:s.bottom+c.offsetHeight<=S&&(m=s.bottom),z+c.offsetWidth>P&&(z=P-c.offsetWidth)}c.style.top=m+"px",c.style.left=c.style.right="",p=="right"?(z=g.sizer.clientWidth-c.offsetWidth,c.style.right="0px"):(p=="left"?z=0:p=="middle"&&(z=(g.sizer.clientWidth-c.offsetWidth)/2),c.style.left=z+"px"),h&&H4(this,{left:z,top:m,right:z+c.offsetWidth,bottom:m+c.offsetHeight})},triggerOnKeyDown:Nt(xd),triggerOnKeyPress:Nt(Ld),triggerOnKeyUp:zd,triggerOnMouseDown:Nt(Sd),execCommand:function(s){if(ts.hasOwnProperty(s))return ts[s].call(null,this)},triggerElectric:Nt(function(s){_d(this,s)}),findPosH:function(s,c,h,f){var p=1;c<0&&(p=-1,c=-c);for(var g=de(this.doc,s),m=0;m<c&&(g=V1(this.doc,g,p,h,f),!g.hitSide);++m);return g},moveH:Nt(function(s,c){var h=this;this.extendSelectionsBy(function(f){return h.display.shift||h.doc.extend||f.empty()?V1(h.doc,f.head,s,c,h.options.rtlMoveVisually):s<0?f.from():f.to()},Te)}),deleteH:Nt(function(s,c){var h=this.doc.sel,f=this.doc;h.somethingSelected()?f.replaceSelection("",null,"+delete"):Gn(this,function(p){var g=V1(f,p.head,s,c,!1);return s<0?{from:g,to:p.head}:{from:p.head,to:g}})}),findPosV:function(s,c,h,f){var p=1,g=f;c<0&&(p=-1,c=-c);for(var m=de(this.doc,s),z=0;z<c;++z){var S=wr(this,m,"div");if(g==null?g=S.left:S.left=g,m=Dd(this,S,p,h),m.hitSide)break}return m},moveV:Nt(function(s,c){var h=this,f=this.doc,p=[],g=!this.display.shift&&!f.extend&&f.sel.somethingSelected();if(f.extendSelectionsBy(function(z){if(g)return s<0?z.from():z.to();var S=wr(h,z.head,"div");z.goalColumn!=null&&(S.left=z.goalColumn),p.push(S.left);var P=Dd(h,S,s,c);return c=="page"&&z==f.sel.primary()&&x1(h,oa(h,P,"div").top-S.top),P},Te),p.length)for(var m=0;m<f.sel.ranges.length;m++)f.sel.ranges[m].goalColumn=p[m]}),findWordAt:function(s){var c=this.doc,h=be(c,s.line).text,f=s.ch,p=s.ch;if(h){var g=this.getHelper(s,"wordChars");(s.sticky=="before"||p==h.length)&&f?--f:++p;for(var m=h.charAt(f),z=H(m,g)?function(S){return H(S,g)}:/\s/.test(m)?function(S){return/\s/.test(S)}:function(S){return!/\s/.test(S)&&!H(S)};f>0&&z(h.charAt(f-1));)--f;for(;p<h.length&&z(h.charAt(p));)++p}return new Ge(J(s.line,f),J(s.line,p))},toggleOverwrite:function(s){s!=null&&s==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?ke(this.display.cursorDiv,"CodeMirror-overwrite"):X(this.display.cursorDiv,"CodeMirror-overwrite"),Oe(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==ye()},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:Nt(function(s,c){Fo(this,s,c)}),getScrollInfo:function(){var s=this.display.scroller;return{left:s.scrollLeft,top:s.scrollTop,height:s.scrollHeight-Wr(this)-this.display.barHeight,width:s.scrollWidth-Wr(this)-this.display.barWidth,clientHeight:c1(this),clientWidth:ji(this)}},scrollIntoView:Nt(function(s,c){s==null?(s={from:this.doc.sel.primary().head,to:null},c==null&&(c=this.options.cursorScrollMargin)):typeof s=="number"?s={from:J(s,0),to:null}:s.from==null&&(s={from:s,to:null}),s.to||(s.to=s.from),s.margin=c||0,s.from.line!=null?R4(this,s):k0(this,s.from,s.to,s.margin)}),setSize:Nt(function(s,c){var h=this,f=function(g){return typeof g=="number"||/^\d+$/.test(String(g))?g+"px":g};s!=null&&(this.display.wrapper.style.width=f(s)),c!=null&&(this.display.wrapper.style.height=f(c)),this.options.lineWrapping&&g0(this);var p=this.display.viewFrom;this.doc.iter(p,this.display.viewTo,function(g){if(g.widgets){for(var m=0;m<g.widgets.length;m++)if(g.widgets[m].noHScroll){zi(h,p,"widget");break}}++p}),this.curOp.forceUpdate=!0,Oe(this,"refresh",this)}),operation:function(s){return Xt(this,s)},startOperation:function(){return Ji(this)},endOperation:function(){return Qi(this)},refresh:Nt(function(){var s=this.display.cachedTextHeight;Vt(this),this.curOp.forceUpdate=!0,Ho(this),Fo(this,this.doc.scrollLeft,this.doc.scrollTop),S1(this.display),(s==null||Math.abs(s-Dn(this.display))>.5||this.options.lineWrapping)&&b1(this),Oe(this,"refresh",this)}),swapDoc:Nt(function(s){var c=this.doc;return c.cm=null,this.state.selectingText&&this.state.selectingText(),V0(this,s),Ho(this),this.display.input.reset(),Fo(this,s.scrollLeft,s.scrollTop),this.curOp.forceScroll=!0,wt(this,"swapDoc",this,c),c}),phrase:function(s){var c=this.options.phrases;return c&&Object.prototype.hasOwnProperty.call(c,s)?c[s]:s},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}},Hr(t),t.registerHelper=function(s,c,h){a.hasOwnProperty(s)||(a[s]=t[s]={_global:[]}),a[s][c]=h},t.registerGlobalHelper=function(s,c,h,f){t.registerHelper(s,c,f),a[s]._global.push({pred:h,val:f})}}function V1(t,r,a,s,c){var h=r,f=a,p=be(t,r.line),g=c&&t.direction=="rtl"?-a:a;function m(){var he=r.line+g;return he<t.first||he>=t.first+t.size?!1:(r=new J(he,r.ch,r.sticky),p=be(t,he))}function z(he){var ae;if(s=="codepoint"){var pe=p.text.charCodeAt(r.ch+(a>0?0:-1));if(isNaN(pe))ae=null;else{var Le=a>0?pe>=55296&&pe<56320:pe>=56320&&pe<57343;ae=new J(r.line,Math.max(0,Math.min(p.text.length,r.ch+a*(Le?2:1))),-a)}}else c?ae=x3(t.cm,p,r,a):ae=P1(p,r,a);if(ae==null)if(!he&&m())r=D1(c,t.cm,p,r.line,g);else return!1;else r=ae;return!0}if(s=="char"||s=="codepoint")z();else if(s=="column")z(!0);else if(s=="word"||s=="group")for(var S=null,P=s=="group",I=t.cm&&t.cm.getHelper(r,"wordChars"),Z=!0;!(a<0&&!z(!Z));Z=!1){var q=p.text.charAt(r.ch)||`
2994
2994
  `,te=H(q,I)?"w":P&&q==`
2995
- `?"n":!P||/\s/.test(q)?null:"p";if(P&&!Z&&!te&&(te="s"),S&&S!=te){a<0&&(a=1,z(),r.sticky="after");break}if(te&&(S=te),a>0&&!z(!Z))break}var se=ba(t,r,h,f,!0);return k(h,se)&&(se.hitSide=!0),se}function Dd(t,r,a,s){var c=t.doc,h=r.left,f;if(s=="page"){var p=Math.min(t.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),g=Math.max(p-.5*Di(t.display),3);f=(a>0?r.bottom:r.top)+a*g}else s=="line"&&(f=a>0?r.bottom+3:r.top-3);for(var m;m=f1(t,h,f),!!m.outside;){if(a<0?f<=0:f>=c.height){m.hitSide=!0;break}f+=a*5}return m}var Ke=function(t){this.cm=t,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new Be,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};Ke.prototype.init=function(t){var r=this,a=this,s=a.cm,c=a.div=t.lineDiv;c.contentEditable=!0,Ad(c,s.options.spellcheck,s.options.autocorrect,s.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}Se(c,"paste",function(p){!h(p)||ft(s,p)||Ed(p,s)||b<=11&&setTimeout(xt(s,function(){return r.updateFromDOM()}),20)}),Se(c,"compositionstart",function(p){r.composing={data:p.data,done:!1}}),Se(c,"compositionupdate",function(p){r.composing||(r.composing={data:p.data,done:!1})}),Se(c,"compositionend",function(p){r.composing&&(p.data!=r.composing.data&&r.readFromDOMSoon(),r.composing.done=!0)}),Se(c,"touchstart",function(){return a.forceCompositionEnd()}),Se(c,"input",function(){r.composing||r.readFromDOMSoon()});function f(p){if(!(!h(p)||ft(s,p))){if(s.somethingSelected())za({lineWise:!1,text:s.getSelections()}),p.type=="cut"&&s.replaceSelection("",null,"cut");else if(s.options.lineWiseCopyCut){var g=Id(s);za({lineWise:!0,text:g.text}),p.type=="cut"&&s.operation(function(){s.setSelections(g.ranges,0,De),s.replaceSelection("",null,"cut")})}else return;if(p.clipboardData){p.clipboardData.clearData();var m=zr.text.join(`
2995
+ `?"n":!P||/\s/.test(q)?null:"p";if(P&&!Z&&!te&&(te="s"),S&&S!=te){a<0&&(a=1,z(),r.sticky="after");break}if(te&&(S=te),a>0&&!z(!Z))break}var se=ba(t,r,h,f,!0);return k(h,se)&&(se.hitSide=!0),se}function Dd(t,r,a,s){var c=t.doc,h=r.left,f;if(s=="page"){var p=Math.min(t.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),g=Math.max(p-.5*Dn(t.display),3);f=(a>0?r.bottom:r.top)+a*g}else s=="line"&&(f=a>0?r.bottom+3:r.top-3);for(var m;m=f1(t,h,f),!!m.outside;){if(a<0?f<=0:f>=c.height){m.hitSide=!0;break}f+=a*5}return m}var Ke=function(t){this.cm=t,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new Be,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};Ke.prototype.init=function(t){var r=this,a=this,s=a.cm,c=a.div=t.lineDiv;c.contentEditable=!0,Ad(c,s.options.spellcheck,s.options.autocorrect,s.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}Se(c,"paste",function(p){!h(p)||ft(s,p)||Ed(p,s)||b<=11&&setTimeout(xt(s,function(){return r.updateFromDOM()}),20)}),Se(c,"compositionstart",function(p){r.composing={data:p.data,done:!1}}),Se(c,"compositionupdate",function(p){r.composing||(r.composing={data:p.data,done:!1})}),Se(c,"compositionend",function(p){r.composing&&(p.data!=r.composing.data&&r.readFromDOMSoon(),r.composing.done=!0)}),Se(c,"touchstart",function(){return a.forceCompositionEnd()}),Se(c,"input",function(){r.composing||r.readFromDOMSoon()});function f(p){if(!(!h(p)||ft(s,p))){if(s.somethingSelected())za({lineWise:!1,text:s.getSelections()}),p.type=="cut"&&s.replaceSelection("",null,"cut");else if(s.options.lineWiseCopyCut){var g=Id(s);za({lineWise:!0,text:g.text}),p.type=="cut"&&s.operation(function(){s.setSelections(g.ranges,0,De),s.replaceSelection("",null,"cut")})}else return;if(p.clipboardData){p.clipboardData.clearData();var m=zr.text.join(`
2996
2996
  `);if(p.clipboardData.setData("Text",m),p.clipboardData.getData("Text")==m){p.preventDefault();return}}var z=Pd(),S=z.firstChild;s.display.lineSpace.insertBefore(z,s.display.lineSpace.firstChild),S.value=zr.text.join(`
2997
- `);var P=ye();ot(S),setTimeout(function(){s.display.lineSpace.removeChild(z),P.focus(),P==c&&a.showPrimarySelection()},50)}}Se(c,"copy",f),Se(c,"cut",f)},Ke.prototype.screenReaderLabelChanged=function(t){t?this.div.setAttribute("aria-label",t):this.div.removeAttribute("aria-label")},Ke.prototype.prepareSelection=function(){var t=L0(this.cm,!1);return t.focus=ye()==this.div,t},Ke.prototype.showSelection=function(t,r){!t||!this.cm.display.view.length||((t.focus||r)&&this.showPrimarySelection(),this.showMultipleSelections(t))},Ke.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},Ke.prototype.showPrimarySelection=function(){var t=this.getSelection(),r=this.cm,a=r.doc.sel.primary(),s=a.from(),c=a.to();if(r.display.viewTo==r.display.viewFrom||s.line>=r.display.viewTo||c.line<r.display.viewFrom){t.removeAllRanges();return}var h=La(r,t.anchorNode,t.anchorOffset),f=La(r,t.focusNode,t.focusOffset);if(!(h&&!h.bad&&f&&!f.bad&&C($e(h,f),s)==0&&C(ee(h,f),c)==0)){var p=r.display.view,g=s.line>=r.display.viewFrom&&Nd(r,s)||{node:p[0].measure.map[2],offset:0},m=c.line<r.display.viewTo&&Nd(r,c);if(!m){var z=p[p.length-1].measure,S=z.maps?z.maps[z.maps.length-1]:z.map;m={node:S[S.length-1],offset:S[S.length-2]-S[S.length-3]}}if(!g||!m){t.removeAllRanges();return}var P=t.rangeCount&&t.getRangeAt(0),I;try{I=U(g.node,g.offset,m.offset,m.node)}catch{}I&&(!l&&r.state.focused?(t.collapse(g.node,g.offset),I.collapsed||(t.removeAllRanges(),t.addRange(I))):(t.removeAllRanges(),t.addRange(I)),P&&t.anchorNode==null?t.addRange(P):l&&this.startGracePeriod()),this.rememberSelection()}},Ke.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)},Ke.prototype.showMultipleSelections=function(t){O(this.cm.display.cursorDiv,t.cursors),O(this.cm.display.selectionDiv,t.selection)},Ke.prototype.rememberSelection=function(){var t=this.getSelection();this.lastAnchorNode=t.anchorNode,this.lastAnchorOffset=t.anchorOffset,this.lastFocusNode=t.focusNode,this.lastFocusOffset=t.focusOffset},Ke.prototype.selectionInEditor=function(){var t=this.getSelection();if(!t.rangeCount)return!1;var r=t.getRangeAt(0).commonAncestorContainer;return ie(this.div,r)},Ke.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||ye()!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},Ke.prototype.blur=function(){this.div.blur()},Ke.prototype.getField=function(){return this.div},Ke.prototype.supportsTouch=function(){return!0},Ke.prototype.receivedFocus=function(){var t=this;this.selectionInEditor()?this.pollSelection():Xt(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)},Ke.prototype.selectionChanged=function(){var t=this.getSelection();return t.anchorNode!=this.lastAnchorNode||t.anchorOffset!=this.lastAnchorOffset||t.focusNode!=this.lastFocusNode||t.focusOffset!=this.lastFocusOffset},Ke.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var t=this.getSelection(),r=this.cm;if(D&&T&&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 a=La(r,t.anchorNode,t.anchorOffset),s=La(r,t.focusNode,t.focusOffset);a&&s&&Xt(r,function(){At(r.doc,Mn(a,s),De),(a.bad||s.bad)&&(r.curOp.selectionChanged=!0)})}}},Ke.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var t=this.cm,r=t.display,a=t.doc.sel.primary(),s=a.from(),c=a.to();if(s.ch==0&&s.line>t.firstLine()&&(s=J(s.line-1,be(t.doc,s.line-1).length)),c.ch==be(t.doc,c.line).text.length&&c.line<t.lastLine()&&(c=J(c.line+1,0)),s.line<r.viewFrom||c.line>r.viewTo-1)return!1;var h,f,p;s.line==r.viewFrom||(h=Yn(t,s.line))==0?(f=je(r.view[0].line),p=r.view[0].node):(f=je(r.view[h].line),p=r.view[h-1].node.nextSibling);var g=Yn(t,c.line),m,z;if(g==r.view.length-1?(m=r.viewTo-1,z=r.lineDiv.lastChild):(m=je(r.view[g+1].line)-1,z=r.view[g+1].node.previousSibling),!p)return!1;for(var S=t.doc.splitLines(Z3(t,p,z,f,m)),P=Fr(t.doc,J(f,0),J(m,be(t.doc,m).text.length));S.length>1&&P.length>1;)if(_e(S)==_e(P))S.pop(),P.pop(),m--;else if(S[0]==P[0])S.shift(),P.shift(),f++;else break;for(var I=0,Z=0,q=S[0],te=P[0],se=Math.min(q.length,te.length);I<se&&q.charCodeAt(I)==te.charCodeAt(I);)++I;for(var he=_e(S),ae=_e(P),pe=Math.min(he.length-(S.length==1?I:0),ae.length-(P.length==1?I:0));Z<pe&&he.charCodeAt(he.length-Z-1)==ae.charCodeAt(ae.length-Z-1);)++Z;if(S.length==1&&P.length==1&&f==s.line)for(;I&&I>s.ch&&he.charCodeAt(he.length-Z-1)==ae.charCodeAt(ae.length-Z-1);)I--,Z++;S[S.length-1]=he.slice(0,he.length-Z).replace(/^\u200b+/,""),S[0]=S[0].slice(I).replace(/\u200b+$/,"");var Le=J(f,I),xe=J(m,P.length?_e(P).length-Z:0);if(S.length>1||S[0]||C(Le,xe))return Wi(t.doc,S,Le,xe,"+input"),!0},Ke.prototype.ensurePolled=function(){this.forceCompositionEnd()},Ke.prototype.reset=function(){this.forceCompositionEnd()},Ke.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},Ke.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))},Ke.prototype.updateFromDOM=function(){var t=this;(this.cm.isReadOnly()||!this.pollContent())&&Xt(this.cm,function(){return Vt(t.cm)})},Ke.prototype.setUneditable=function(t){t.contentEditable="false"},Ke.prototype.onKeyPress=function(t){t.charCode==0||this.composing||(t.preventDefault(),this.cm.isReadOnly()||xt(this.cm,B1)(this.cm,String.fromCharCode(t.charCode==null?t.keyCode:t.charCode),0))},Ke.prototype.readOnlyChanged=function(t){this.div.contentEditable=String(t!="nocursor")},Ke.prototype.onContextMenu=function(){},Ke.prototype.resetPosition=function(){},Ke.prototype.needsContentAttribute=!0;function Nd(t,r){var a=u1(t,r.line);if(!a||a.hidden)return null;var s=be(t.doc,r.line),c=u0(a,s,r.line),h=Kt(s,t.doc.direction),f="left";if(h){var p=st(h,r.ch);f=p%2?"right":"left"}var g=f0(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 Ki(t,r){return r&&(t.bad=!0),t}function Z3(t,r,a,s,c){var h="",f=!1,p=t.doc.lineSeparator(),g=!1;function m(I){return function(Z){return Z.id==I}}function z(){f&&(h+=p,g&&(h+=p),f=g=!1)}function S(I){I&&(z(),h+=I)}function P(I){if(I.nodeType==1){var Z=I.getAttribute("cm-text");if(Z){S(Z);return}var q=I.getAttribute("cm-marker"),te;if(q){var se=t.findMarks(J(s,0),J(c+1,0),m(+q));se.length&&(te=se[0].find(0))&&S(Fr(t.doc,te.from,te.to).join(p));return}if(I.getAttribute("contenteditable")=="false")return;var he=/^(pre|div|p|li|table|br)$/i.test(I.nodeName);if(!/^br$/i.test(I.nodeName)&&I.textContent.length==0)return;he&&z();for(var ae=0;ae<I.childNodes.length;ae++)P(I.childNodes[ae]);/^(pre|p)$/i.test(I.nodeName)&&(g=!0),he&&(f=!0)}else I.nodeType==3&&S(I.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;P(r),r!=a;)r=r.nextSibling,g=!1;return h}function La(t,r,a){var s;if(r==t.display.lineDiv){if(s=t.display.lineDiv.childNodes[a],!s)return Ki(t.clipPos(J(t.display.viewTo-1)),!0);r=null,a=0}else for(s=r;;s=s.parentNode){if(!s||s==t.display.lineDiv)return null;if(s.parentNode&&s.parentNode==t.display.lineDiv)break}for(var c=0;c<t.display.view.length;c++){var h=t.display.view[c];if(h.node==s)return W3(h,r,a)}}function W3(t,r,a){var s=t.text.firstChild,c=!1;if(!r||!ie(s,r))return Ki(J(je(t.line),0),!0);if(r==s&&(c=!0,r=s.childNodes[a],a=0,!r)){var h=t.rest?_e(t.rest):t.line;return Ki(J(je(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,a&&(a=f.nodeValue.length));p.parentNode!=s;)p=p.parentNode;var g=t.measure,m=g.maps;function z(te,se,he){for(var ae=-1;ae<(m?m.length:0);ae++)for(var pe=ae<0?g.map:m[ae],Le=0;Le<pe.length;Le+=3){var xe=pe[Le+2];if(xe==te||xe==se){var Pe=je(ae<0?t.line:t.rest[ae]),Je=pe[Le]+he;return(he<0||xe!=te)&&(Je=pe[Le+(he?1:0)]),J(Pe,Je)}}}var S=z(f,p,a);if(S)return Ki(S,c);for(var P=p.nextSibling,I=f?f.nodeValue.length-a:0;P;P=P.nextSibling){if(S=z(P,P.firstChild,0),S)return Ki(J(S.line,S.ch-I),c);I+=P.textContent.length}for(var Z=p.previousSibling,q=a;Z;Z=Z.previousSibling){if(S=z(Z,Z.firstChild,-1),S)return Ki(J(S.line,S.ch+q),c);q+=Z.textContent.length}}var ut=function(t){this.cm=t,this.prevInput="",this.pollingFast=!1,this.polling=new Be,this.hasSelection=!1,this.composing=null};ut.prototype.init=function(t){var r=this,a=this,s=this.cm;this.createField(t);var c=this.textarea;t.wrapper.insertBefore(this.wrapper,t.wrapper.firstChild),_&&(c.style.width="0px"),Se(c,"input",function(){y&&b>=9&&r.hasSelection&&(r.hasSelection=null),a.poll()}),Se(c,"paste",function(f){ft(s,f)||Ed(f,s)||(s.state.pasteIncoming=+new Date,a.fastPoll())});function h(f){if(!ft(s,f)){if(s.somethingSelected())za({lineWise:!1,text:s.getSelections()});else if(s.options.lineWiseCopyCut){var p=Id(s);za({lineWise:!0,text:p.text}),f.type=="cut"?s.setSelections(p.ranges,null,De):(a.prevInput="",c.value=p.text.join(`
2998
- `),ot(c))}else return;f.type=="cut"&&(s.state.cutIncoming=+new Date)}}Se(c,"cut",h),Se(c,"copy",h),Se(t.scroller,"paste",function(f){if(!(sn(t,f)||ft(s,f))){if(!c.dispatchEvent){s.state.pasteIncoming=+new Date,a.focus();return}var p=new Event("paste");p.clipboardData=f.clipboardData,c.dispatchEvent(p)}}),Se(t.lineSpace,"selectstart",function(f){sn(t,f)||_t(f)}),Se(c,"compositionstart",function(){var f=s.getCursor("from");a.composing&&a.composing.range.clear(),a.composing={start:f,range:s.markText(f,s.getCursor("to"),{className:"CodeMirror-composing"})}}),Se(c,"compositionend",function(){a.composing&&(a.poll(),a.composing.range.clear(),a.composing=null)})},ut.prototype.createField=function(t){this.wrapper=Pd(),this.textarea=this.wrapper.firstChild},ut.prototype.screenReaderLabelChanged=function(t){t?this.textarea.setAttribute("aria-label",t):this.textarea.removeAttribute("aria-label")},ut.prototype.prepareSelection=function(){var t=this.cm,r=t.display,a=t.doc,s=L0(t);if(t.options.moveInputWithCursor){var c=wr(t,a.sel.primary().head,"div"),h=r.wrapper.getBoundingClientRect(),f=r.lineDiv.getBoundingClientRect();s.teTop=Math.max(0,Math.min(r.wrapper.clientHeight-10,c.top+f.top-h.top)),s.teLeft=Math.max(0,Math.min(r.wrapper.clientWidth-10,c.left+f.left-h.left))}return s},ut.prototype.showSelection=function(t){var r=this.cm,a=r.display;O(a.cursorDiv,t.cursors),O(a.selectionDiv,t.selection),t.teTop!=null&&(this.wrapper.style.top=t.teTop+"px",this.wrapper.style.left=t.teLeft+"px")},ut.prototype.reset=function(t){if(!(this.contextMenuPending||this.composing)){var r=this.cm;if(r.somethingSelected()){this.prevInput="";var a=r.getSelection();this.textarea.value=a,r.state.focused&&ot(this.textarea),y&&b>=9&&(this.hasSelection=a)}else t||(this.prevInput=this.textarea.value="",y&&b>=9&&(this.hasSelection=null))}},ut.prototype.getField=function(){return this.textarea},ut.prototype.supportsTouch=function(){return!1},ut.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!A||ye()!=this.textarea))try{this.textarea.focus()}catch{}},ut.prototype.blur=function(){this.textarea.blur()},ut.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},ut.prototype.receivedFocus=function(){this.slowPoll()},ut.prototype.slowPoll=function(){var t=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){t.poll(),t.cm.state.focused&&t.slowPoll()})},ut.prototype.fastPoll=function(){var t=!1,r=this;r.pollingFast=!0;function a(){var s=r.poll();!s&&!t?(t=!0,r.polling.set(60,a)):(r.pollingFast=!1,r.slowPoll())}r.polling.set(20,a)},ut.prototype.poll=function(){var t=this,r=this.cm,a=this.textarea,s=this.prevInput;if(this.contextMenuPending||!r.state.focused||qs(a)&&!s&&!this.composing||r.isReadOnly()||r.options.disableInput||r.state.keySeq)return!1;var c=a.value;if(c==s&&!r.somethingSelected())return!1;if(y&&b>=9&&this.hasSelection===c||B&&/[\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&&!s&&(s="​"),h==8666)return this.reset(),this.cm.execCommand("undo")}for(var f=0,p=Math.min(s.length,c.length);f<p&&s.charCodeAt(f)==c.charCodeAt(f);)++f;return Xt(r,function(){B1(r,c.slice(f),s.length-f,null,t.composing?"*compose":null),c.length>1e3||c.indexOf(`
2999
- `)>-1?a.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},ut.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},ut.prototype.onKeyPress=function(){y&&b>=9&&(this.hasSelection=null),this.fastPoll()},ut.prototype.onContextMenu=function(t){var r=this,a=r.cm,s=a.display,c=r.textarea;r.contextMenuPending&&r.contextMenuPending();var h=Kn(a,t),f=s.scroller.scrollTop;if(!h||$)return;var p=a.options.resetSelectionOnContextMenu;p&&a.doc.sel.contains(h)==-1&&xt(a,At)(a.doc,Mn(h),De);var g=c.style.cssText,m=r.wrapper.style.cssText,z=r.wrapper.offsetParent.getBoundingClientRect();r.wrapper.style.cssText="position: static",c.style.cssText=`position: absolute; width: 30px; height: 30px;
2997
+ `);var P=ye();ot(S),setTimeout(function(){s.display.lineSpace.removeChild(z),P.focus(),P==c&&a.showPrimarySelection()},50)}}Se(c,"copy",f),Se(c,"cut",f)},Ke.prototype.screenReaderLabelChanged=function(t){t?this.div.setAttribute("aria-label",t):this.div.removeAttribute("aria-label")},Ke.prototype.prepareSelection=function(){var t=L0(this.cm,!1);return t.focus=ye()==this.div,t},Ke.prototype.showSelection=function(t,r){!t||!this.cm.display.view.length||((t.focus||r)&&this.showPrimarySelection(),this.showMultipleSelections(t))},Ke.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},Ke.prototype.showPrimarySelection=function(){var t=this.getSelection(),r=this.cm,a=r.doc.sel.primary(),s=a.from(),c=a.to();if(r.display.viewTo==r.display.viewFrom||s.line>=r.display.viewTo||c.line<r.display.viewFrom){t.removeAllRanges();return}var h=La(r,t.anchorNode,t.anchorOffset),f=La(r,t.focusNode,t.focusOffset);if(!(h&&!h.bad&&f&&!f.bad&&C($e(h,f),s)==0&&C(ee(h,f),c)==0)){var p=r.display.view,g=s.line>=r.display.viewFrom&&Nd(r,s)||{node:p[0].measure.map[2],offset:0},m=c.line<r.display.viewTo&&Nd(r,c);if(!m){var z=p[p.length-1].measure,S=z.maps?z.maps[z.maps.length-1]:z.map;m={node:S[S.length-1],offset:S[S.length-2]-S[S.length-3]}}if(!g||!m){t.removeAllRanges();return}var P=t.rangeCount&&t.getRangeAt(0),I;try{I=U(g.node,g.offset,m.offset,m.node)}catch{}I&&(!l&&r.state.focused?(t.collapse(g.node,g.offset),I.collapsed||(t.removeAllRanges(),t.addRange(I))):(t.removeAllRanges(),t.addRange(I)),P&&t.anchorNode==null?t.addRange(P):l&&this.startGracePeriod()),this.rememberSelection()}},Ke.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)},Ke.prototype.showMultipleSelections=function(t){O(this.cm.display.cursorDiv,t.cursors),O(this.cm.display.selectionDiv,t.selection)},Ke.prototype.rememberSelection=function(){var t=this.getSelection();this.lastAnchorNode=t.anchorNode,this.lastAnchorOffset=t.anchorOffset,this.lastFocusNode=t.focusNode,this.lastFocusOffset=t.focusOffset},Ke.prototype.selectionInEditor=function(){var t=this.getSelection();if(!t.rangeCount)return!1;var r=t.getRangeAt(0).commonAncestorContainer;return ne(this.div,r)},Ke.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||ye()!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},Ke.prototype.blur=function(){this.div.blur()},Ke.prototype.getField=function(){return this.div},Ke.prototype.supportsTouch=function(){return!0},Ke.prototype.receivedFocus=function(){var t=this;this.selectionInEditor()?this.pollSelection():Xt(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)},Ke.prototype.selectionChanged=function(){var t=this.getSelection();return t.anchorNode!=this.lastAnchorNode||t.anchorOffset!=this.lastAnchorOffset||t.focusNode!=this.lastFocusNode||t.focusOffset!=this.lastFocusOffset},Ke.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var t=this.getSelection(),r=this.cm;if(D&&T&&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 a=La(r,t.anchorNode,t.anchorOffset),s=La(r,t.focusNode,t.focusOffset);a&&s&&Xt(r,function(){At(r.doc,Si(a,s),De),(a.bad||s.bad)&&(r.curOp.selectionChanged=!0)})}}},Ke.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var t=this.cm,r=t.display,a=t.doc.sel.primary(),s=a.from(),c=a.to();if(s.ch==0&&s.line>t.firstLine()&&(s=J(s.line-1,be(t.doc,s.line-1).length)),c.ch==be(t.doc,c.line).text.length&&c.line<t.lastLine()&&(c=J(c.line+1,0)),s.line<r.viewFrom||c.line>r.viewTo-1)return!1;var h,f,p;s.line==r.viewFrom||(h=Ki(t,s.line))==0?(f=je(r.view[0].line),p=r.view[0].node):(f=je(r.view[h].line),p=r.view[h-1].node.nextSibling);var g=Ki(t,c.line),m,z;if(g==r.view.length-1?(m=r.viewTo-1,z=r.lineDiv.lastChild):(m=je(r.view[g+1].line)-1,z=r.view[g+1].node.previousSibling),!p)return!1;for(var S=t.doc.splitLines(Z3(t,p,z,f,m)),P=Fr(t.doc,J(f,0),J(m,be(t.doc,m).text.length));S.length>1&&P.length>1;)if(_e(S)==_e(P))S.pop(),P.pop(),m--;else if(S[0]==P[0])S.shift(),P.shift(),f++;else break;for(var I=0,Z=0,q=S[0],te=P[0],se=Math.min(q.length,te.length);I<se&&q.charCodeAt(I)==te.charCodeAt(I);)++I;for(var he=_e(S),ae=_e(P),pe=Math.min(he.length-(S.length==1?I:0),ae.length-(P.length==1?I:0));Z<pe&&he.charCodeAt(he.length-Z-1)==ae.charCodeAt(ae.length-Z-1);)++Z;if(S.length==1&&P.length==1&&f==s.line)for(;I&&I>s.ch&&he.charCodeAt(he.length-Z-1)==ae.charCodeAt(ae.length-Z-1);)I--,Z++;S[S.length-1]=he.slice(0,he.length-Z).replace(/^\u200b+/,""),S[0]=S[0].slice(I).replace(/\u200b+$/,"");var Le=J(f,I),xe=J(m,P.length?_e(P).length-Z:0);if(S.length>1||S[0]||C(Le,xe))return Wn(t.doc,S,Le,xe,"+input"),!0},Ke.prototype.ensurePolled=function(){this.forceCompositionEnd()},Ke.prototype.reset=function(){this.forceCompositionEnd()},Ke.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},Ke.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))},Ke.prototype.updateFromDOM=function(){var t=this;(this.cm.isReadOnly()||!this.pollContent())&&Xt(this.cm,function(){return Vt(t.cm)})},Ke.prototype.setUneditable=function(t){t.contentEditable="false"},Ke.prototype.onKeyPress=function(t){t.charCode==0||this.composing||(t.preventDefault(),this.cm.isReadOnly()||xt(this.cm,B1)(this.cm,String.fromCharCode(t.charCode==null?t.keyCode:t.charCode),0))},Ke.prototype.readOnlyChanged=function(t){this.div.contentEditable=String(t!="nocursor")},Ke.prototype.onContextMenu=function(){},Ke.prototype.resetPosition=function(){},Ke.prototype.needsContentAttribute=!0;function Nd(t,r){var a=u1(t,r.line);if(!a||a.hidden)return null;var s=be(t.doc,r.line),c=u0(a,s,r.line),h=Kt(s,t.doc.direction),f="left";if(h){var p=st(h,r.ch);f=p%2?"right":"left"}var g=f0(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 Kn(t,r){return r&&(t.bad=!0),t}function Z3(t,r,a,s,c){var h="",f=!1,p=t.doc.lineSeparator(),g=!1;function m(I){return function(Z){return Z.id==I}}function z(){f&&(h+=p,g&&(h+=p),f=g=!1)}function S(I){I&&(z(),h+=I)}function P(I){if(I.nodeType==1){var Z=I.getAttribute("cm-text");if(Z){S(Z);return}var q=I.getAttribute("cm-marker"),te;if(q){var se=t.findMarks(J(s,0),J(c+1,0),m(+q));se.length&&(te=se[0].find(0))&&S(Fr(t.doc,te.from,te.to).join(p));return}if(I.getAttribute("contenteditable")=="false")return;var he=/^(pre|div|p|li|table|br)$/i.test(I.nodeName);if(!/^br$/i.test(I.nodeName)&&I.textContent.length==0)return;he&&z();for(var ae=0;ae<I.childNodes.length;ae++)P(I.childNodes[ae]);/^(pre|p)$/i.test(I.nodeName)&&(g=!0),he&&(f=!0)}else I.nodeType==3&&S(I.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;P(r),r!=a;)r=r.nextSibling,g=!1;return h}function La(t,r,a){var s;if(r==t.display.lineDiv){if(s=t.display.lineDiv.childNodes[a],!s)return Kn(t.clipPos(J(t.display.viewTo-1)),!0);r=null,a=0}else for(s=r;;s=s.parentNode){if(!s||s==t.display.lineDiv)return null;if(s.parentNode&&s.parentNode==t.display.lineDiv)break}for(var c=0;c<t.display.view.length;c++){var h=t.display.view[c];if(h.node==s)return W3(h,r,a)}}function W3(t,r,a){var s=t.text.firstChild,c=!1;if(!r||!ne(s,r))return Kn(J(je(t.line),0),!0);if(r==s&&(c=!0,r=s.childNodes[a],a=0,!r)){var h=t.rest?_e(t.rest):t.line;return Kn(J(je(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,a&&(a=f.nodeValue.length));p.parentNode!=s;)p=p.parentNode;var g=t.measure,m=g.maps;function z(te,se,he){for(var ae=-1;ae<(m?m.length:0);ae++)for(var pe=ae<0?g.map:m[ae],Le=0;Le<pe.length;Le+=3){var xe=pe[Le+2];if(xe==te||xe==se){var Pe=je(ae<0?t.line:t.rest[ae]),Je=pe[Le]+he;return(he<0||xe!=te)&&(Je=pe[Le+(he?1:0)]),J(Pe,Je)}}}var S=z(f,p,a);if(S)return Kn(S,c);for(var P=p.nextSibling,I=f?f.nodeValue.length-a:0;P;P=P.nextSibling){if(S=z(P,P.firstChild,0),S)return Kn(J(S.line,S.ch-I),c);I+=P.textContent.length}for(var Z=p.previousSibling,q=a;Z;Z=Z.previousSibling){if(S=z(Z,Z.firstChild,-1),S)return Kn(J(S.line,S.ch+q),c);q+=Z.textContent.length}}var ut=function(t){this.cm=t,this.prevInput="",this.pollingFast=!1,this.polling=new Be,this.hasSelection=!1,this.composing=null};ut.prototype.init=function(t){var r=this,a=this,s=this.cm;this.createField(t);var c=this.textarea;t.wrapper.insertBefore(this.wrapper,t.wrapper.firstChild),_&&(c.style.width="0px"),Se(c,"input",function(){y&&b>=9&&r.hasSelection&&(r.hasSelection=null),a.poll()}),Se(c,"paste",function(f){ft(s,f)||Ed(f,s)||(s.state.pasteIncoming=+new Date,a.fastPoll())});function h(f){if(!ft(s,f)){if(s.somethingSelected())za({lineWise:!1,text:s.getSelections()});else if(s.options.lineWiseCopyCut){var p=Id(s);za({lineWise:!0,text:p.text}),f.type=="cut"?s.setSelections(p.ranges,null,De):(a.prevInput="",c.value=p.text.join(`
2998
+ `),ot(c))}else return;f.type=="cut"&&(s.state.cutIncoming=+new Date)}}Se(c,"cut",h),Se(c,"copy",h),Se(t.scroller,"paste",function(f){if(!(oi(t,f)||ft(s,f))){if(!c.dispatchEvent){s.state.pasteIncoming=+new Date,a.focus();return}var p=new Event("paste");p.clipboardData=f.clipboardData,c.dispatchEvent(p)}}),Se(t.lineSpace,"selectstart",function(f){oi(t,f)||_t(f)}),Se(c,"compositionstart",function(){var f=s.getCursor("from");a.composing&&a.composing.range.clear(),a.composing={start:f,range:s.markText(f,s.getCursor("to"),{className:"CodeMirror-composing"})}}),Se(c,"compositionend",function(){a.composing&&(a.poll(),a.composing.range.clear(),a.composing=null)})},ut.prototype.createField=function(t){this.wrapper=Pd(),this.textarea=this.wrapper.firstChild},ut.prototype.screenReaderLabelChanged=function(t){t?this.textarea.setAttribute("aria-label",t):this.textarea.removeAttribute("aria-label")},ut.prototype.prepareSelection=function(){var t=this.cm,r=t.display,a=t.doc,s=L0(t);if(t.options.moveInputWithCursor){var c=wr(t,a.sel.primary().head,"div"),h=r.wrapper.getBoundingClientRect(),f=r.lineDiv.getBoundingClientRect();s.teTop=Math.max(0,Math.min(r.wrapper.clientHeight-10,c.top+f.top-h.top)),s.teLeft=Math.max(0,Math.min(r.wrapper.clientWidth-10,c.left+f.left-h.left))}return s},ut.prototype.showSelection=function(t){var r=this.cm,a=r.display;O(a.cursorDiv,t.cursors),O(a.selectionDiv,t.selection),t.teTop!=null&&(this.wrapper.style.top=t.teTop+"px",this.wrapper.style.left=t.teLeft+"px")},ut.prototype.reset=function(t){if(!(this.contextMenuPending||this.composing)){var r=this.cm;if(r.somethingSelected()){this.prevInput="";var a=r.getSelection();this.textarea.value=a,r.state.focused&&ot(this.textarea),y&&b>=9&&(this.hasSelection=a)}else t||(this.prevInput=this.textarea.value="",y&&b>=9&&(this.hasSelection=null))}},ut.prototype.getField=function(){return this.textarea},ut.prototype.supportsTouch=function(){return!1},ut.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!A||ye()!=this.textarea))try{this.textarea.focus()}catch{}},ut.prototype.blur=function(){this.textarea.blur()},ut.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},ut.prototype.receivedFocus=function(){this.slowPoll()},ut.prototype.slowPoll=function(){var t=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){t.poll(),t.cm.state.focused&&t.slowPoll()})},ut.prototype.fastPoll=function(){var t=!1,r=this;r.pollingFast=!0;function a(){var s=r.poll();!s&&!t?(t=!0,r.polling.set(60,a)):(r.pollingFast=!1,r.slowPoll())}r.polling.set(20,a)},ut.prototype.poll=function(){var t=this,r=this.cm,a=this.textarea,s=this.prevInput;if(this.contextMenuPending||!r.state.focused||qs(a)&&!s&&!this.composing||r.isReadOnly()||r.options.disableInput||r.state.keySeq)return!1;var c=a.value;if(c==s&&!r.somethingSelected())return!1;if(y&&b>=9&&this.hasSelection===c||B&&/[\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&&!s&&(s="​"),h==8666)return this.reset(),this.cm.execCommand("undo")}for(var f=0,p=Math.min(s.length,c.length);f<p&&s.charCodeAt(f)==c.charCodeAt(f);)++f;return Xt(r,function(){B1(r,c.slice(f),s.length-f,null,t.composing?"*compose":null),c.length>1e3||c.indexOf(`
2999
+ `)>-1?a.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},ut.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},ut.prototype.onKeyPress=function(){y&&b>=9&&(this.hasSelection=null),this.fastPoll()},ut.prototype.onContextMenu=function(t){var r=this,a=r.cm,s=a.display,c=r.textarea;r.contextMenuPending&&r.contextMenuPending();var h=qi(a,t),f=s.scroller.scrollTop;if(!h||$)return;var p=a.options.resetSelectionOnContextMenu;p&&a.doc.sel.contains(h)==-1&&xt(a,At)(a.doc,Si(h),De);var g=c.style.cssText,m=r.wrapper.style.cssText,z=r.wrapper.offsetParent.getBoundingClientRect();r.wrapper.style.cssText="position: static",c.style.cssText=`position: absolute; width: 30px; height: 30px;
3000
3000
  top: `+(t.clientY-z.top-5)+"px; left: "+(t.clientX-z.left-5)+`px;
3001
3001
  z-index: 1000; background: `+(y?"rgba(255, 255, 255, .05)":"transparent")+`;
3002
- outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var S;M&&(S=window.scrollY),s.input.focus(),M&&window.scrollTo(null,S),s.input.reset(),a.somethingSelected()||(c.value=r.prevInput=" "),r.contextMenuPending=I,s.selForContextMenu=a.doc.sel,clearTimeout(s.detectingSelectAll);function P(){if(c.selectionStart!=null){var q=a.somethingSelected(),te="​"+(q?c.value:"");c.value="⇚",c.value=te,r.prevInput=q?"":"​",c.selectionStart=1,c.selectionEnd=te.length,s.selForContextMenu=a.doc.sel}}function I(){if(r.contextMenuPending==I&&(r.contextMenuPending=!1,r.wrapper.style.cssText=m,c.style.cssText=g,y&&b<9&&s.scrollbars.setScrollTop(s.scroller.scrollTop=f),c.selectionStart!=null)){(!y||y&&b<9)&&P();var q=0,te=function(){s.selForContextMenu==a.doc.sel&&c.selectionStart==0&&c.selectionEnd>0&&r.prevInput=="​"?xt(a,td)(a):q++<10?s.detectingSelectAll=setTimeout(te,500):(s.selForContextMenu=null,s.input.reset())};s.detectingSelectAll=setTimeout(te,200)}}if(y&&b>=9&&P(),Me){Un(t);var Z=function(){Ft(window,"mouseup",Z),setTimeout(I,20)};Se(window,"mouseup",Z)}else setTimeout(I,50)},ut.prototype.readOnlyChanged=function(t){t||this.reset(),this.textarea.disabled=t=="nocursor",this.textarea.readOnly=!!t},ut.prototype.setUneditable=function(){},ut.prototype.needsContentAttribute=!1;function U3(t,r){if(r=r?Ye(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 a=ye();r.autofocus=a==t||t.getAttribute("autofocus")!=null&&a==document.body}function s(){t.value=p.getValue()}var c;if(t.form&&(Se(t.form,"submit",s),!r.leaveSubmitMethodAlone)){var h=t.form;c=h.submit;try{var f=h.submit=function(){s(),h.submit=c,h.submit(),h.submit=f}}catch{}}r.finishInit=function(g){g.save=s,g.getTextArea=function(){return t},g.toTextArea=function(){g.toTextArea=isNaN,s(),t.parentNode.removeChild(g.getWrapperElement()),t.style.display="",t.form&&(Ft(t.form,"submit",s),!r.leaveSubmitMethodAlone&&typeof t.form.submit=="function"&&(t.form.submit=c))}},t.style.display="none";var p=tt(function(g){return t.parentNode.insertBefore(g,t.nextSibling)},r);return p}function j3(t){t.off=Ft,t.on=Se,t.wheelEventPixels=Q4,t.Doc=Zt,t.splitLines=To,t.countColumn=Xe,t.findColumn=ht,t.isWordChar=Ue,t.Pass=Ie,t.signal=Oe,t.Line=Ii,t.changeEnd=Tn,t.scrollbarModel=E0,t.Pos=J,t.cmpPos=C,t.modes=fr,t.mimeModes=sr,t.resolveMode=$i,t.getMode=Ei,t.modeExtensions=yr,t.extendMode=Cr,t.copyState=ar,t.startState=$o,t.innerMode=Oo,t.commands=ts,t.keyMap=an,t.keyName=bd,t.isModifierKey=gd,t.lookupKey=ji,t.normalizeKeyMap=w3,t.StringStream=at,t.SharedTextMarker=Jo,t.TextMarker=On,t.LineWidget=Xo,t.e_preventDefault=_t,t.e_stopPropagation=Oi,t.e_stop=Un,t.addClass=ke,t.contains=ie,t.rmClass=X,t.keyNames=$n}N3(tt),B3(tt);var G3="iter insert remove copy getEditor constructor".split(" ");for(var Sa in Zt.prototype)Zt.prototype.hasOwnProperty(Sa)&&ge(G3,Sa)<0&&(tt.prototype[Sa]=function(t){return function(){return t.apply(this.doc,arguments)}}(Zt.prototype[Sa]));return Hr(Zt),tt.inputStyles={textarea:ut,contenteditable:Ke},tt.defineMode=function(t){!tt.defaults.mode&&t!="null"&&(tt.defaults.mode=t),Ys.apply(this,arguments)},tt.defineMIME=rn,tt.defineMode("null",function(){return{token:function(t){return t.skipToEnd()}}}),tt.defineMIME("text/plain","null"),tt.defineExtension=function(t,r){tt.prototype[t]=r},tt.defineDocExtension=function(t,r){Zt.prototype[t]=r},tt.fromTextArea=U3,j3(tt),tt.version="5.62.3",tt})})(Zp);var Ir=Zp.exports;const Nn=cu(Ir),Wp=`.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}.CodeMirror-hints{position:absolute;z-index:10;overflow:hidden;list-style:none;margin:0;padding:2px;-webkit-box-shadow:2px 3px 5px rgba(0,0,0,.2);-moz-box-shadow:2px 3px 5px rgba(0,0,0,.2);box-shadow:2px 3px 5px #0003;border-radius:3px;border:1px solid silver;background:white;font-size:90%;font-family:monospace;max-height:20em;overflow-y:auto}.CodeMirror-hint{margin:0;padding:0 4px;border-radius:2px;white-space:pre;color:#000;cursor:pointer}li.CodeMirror-hint-active{background:#08f;color:#fff}
3002
+ outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var S;M&&(S=window.scrollY),s.input.focus(),M&&window.scrollTo(null,S),s.input.reset(),a.somethingSelected()||(c.value=r.prevInput=" "),r.contextMenuPending=I,s.selForContextMenu=a.doc.sel,clearTimeout(s.detectingSelectAll);function P(){if(c.selectionStart!=null){var q=a.somethingSelected(),te="​"+(q?c.value:"");c.value="⇚",c.value=te,r.prevInput=q?"":"​",c.selectionStart=1,c.selectionEnd=te.length,s.selForContextMenu=a.doc.sel}}function I(){if(r.contextMenuPending==I&&(r.contextMenuPending=!1,r.wrapper.style.cssText=m,c.style.cssText=g,y&&b<9&&s.scrollbars.setScrollTop(s.scroller.scrollTop=f),c.selectionStart!=null)){(!y||y&&b<9)&&P();var q=0,te=function(){s.selForContextMenu==a.doc.sel&&c.selectionStart==0&&c.selectionEnd>0&&r.prevInput=="​"?xt(a,td)(a):q++<10?s.detectingSelectAll=setTimeout(te,500):(s.selForContextMenu=null,s.input.reset())};s.detectingSelectAll=setTimeout(te,200)}}if(y&&b>=9&&P(),Me){Wi(t);var Z=function(){Ft(window,"mouseup",Z),setTimeout(I,20)};Se(window,"mouseup",Z)}else setTimeout(I,50)},ut.prototype.readOnlyChanged=function(t){t||this.reset(),this.textarea.disabled=t=="nocursor",this.textarea.readOnly=!!t},ut.prototype.setUneditable=function(){},ut.prototype.needsContentAttribute=!1;function U3(t,r){if(r=r?Ye(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 a=ye();r.autofocus=a==t||t.getAttribute("autofocus")!=null&&a==document.body}function s(){t.value=p.getValue()}var c;if(t.form&&(Se(t.form,"submit",s),!r.leaveSubmitMethodAlone)){var h=t.form;c=h.submit;try{var f=h.submit=function(){s(),h.submit=c,h.submit(),h.submit=f}}catch{}}r.finishInit=function(g){g.save=s,g.getTextArea=function(){return t},g.toTextArea=function(){g.toTextArea=isNaN,s(),t.parentNode.removeChild(g.getWrapperElement()),t.style.display="",t.form&&(Ft(t.form,"submit",s),!r.leaveSubmitMethodAlone&&typeof t.form.submit=="function"&&(t.form.submit=c))}},t.style.display="none";var p=tt(function(g){return t.parentNode.insertBefore(g,t.nextSibling)},r);return p}function j3(t){t.off=Ft,t.on=Se,t.wheelEventPixels=Q4,t.Doc=Zt,t.splitLines=To,t.countColumn=Xe,t.findColumn=ht,t.isWordChar=Ue,t.Pass=Ie,t.signal=Oe,t.Line=In,t.changeEnd=Mi,t.scrollbarModel=E0,t.Pos=J,t.cmpPos=C,t.modes=fr,t.mimeModes=sr,t.resolveMode=$n,t.getMode=En,t.modeExtensions=yr,t.extendMode=Cr,t.copyState=ar,t.startState=$o,t.innerMode=Oo,t.commands=ts,t.keyMap=si,t.keyName=bd,t.isModifierKey=gd,t.lookupKey=jn,t.normalizeKeyMap=w3,t.StringStream=at,t.SharedTextMarker=Jo,t.TextMarker=ki,t.LineWidget=Xo,t.e_preventDefault=_t,t.e_stopPropagation=On,t.e_stop=Wi,t.addClass=ke,t.contains=ne,t.rmClass=X,t.keyNames=Oi}N3(tt),B3(tt);var G3="iter insert remove copy getEditor constructor".split(" ");for(var Sa in Zt.prototype)Zt.prototype.hasOwnProperty(Sa)&&ge(G3,Sa)<0&&(tt.prototype[Sa]=function(t){return function(){return t.apply(this.doc,arguments)}}(Zt.prototype[Sa]));return Hr(Zt),tt.inputStyles={textarea:ut,contenteditable:Ke},tt.defineMode=function(t){!tt.defaults.mode&&t!="null"&&(tt.defaults.mode=t),Ys.apply(this,arguments)},tt.defineMIME=ri,tt.defineMode("null",function(){return{token:function(t){return t.skipToEnd()}}}),tt.defineMIME("text/plain","null"),tt.defineExtension=function(t,r){tt.prototype[t]=r},tt.defineDocExtension=function(t,r){Zt.prototype[t]=r},tt.fromTextArea=U3,j3(tt),tt.version="5.62.3",tt})})(Zp);var Ir=Zp.exports;const Di=cu(Ir),Wp=`.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}.CodeMirror-hints{position:absolute;z-index:10;overflow:hidden;list-style:none;margin:0;padding:2px;-webkit-box-shadow:2px 3px 5px rgba(0,0,0,.2);-moz-box-shadow:2px 3px 5px rgba(0,0,0,.2);box-shadow:2px 3px 5px #0003;border-radius:3px;border:1px solid silver;background:white;font-size:90%;font-family:monospace;max-height:20em;overflow-y:auto}.CodeMirror-hint{margin:0;padding:0 4px;border-radius:2px;white-space:pre;color:#000;cursor:pointer}li.CodeMirror-hint-active{background:#08f;color:#fff}
3003
3003
  `,ML=Q`
3004
3004
  .cm-s-skedulo .cm-header {
3005
3005
  color: blue;
@@ -3080,7 +3080,7 @@ b`.split(/\n/).length!=3?function(t){for(var r=0,a=[],s=t.length;r<=s;){var c=t.
3080
3080
  .cm-invalidchar {
3081
3081
  color: #f00;
3082
3082
  }
3083
- `;(function(i,e){(function(n){n(Ir)})(function(n){n.overlayMode=function(o,l,d){return{startState:function(){return{base:n.startState(o),overlay:n.startState(l),basePos:0,baseCur:null,overlayPos:0,overlayCur:null,streamSeen:null}},copyState:function(u){return{base:n.copyState(o,u.base),overlay:n.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,y){return o.indent(u.base,v,y)},electricChars:o.electricChars,innerMode:function(u){return{state:u.base,mode:o}},blankLine:function(u){var v,y;return o.blankLine&&(v=o.blankLine(u.base)),l.blankLine&&(y=l.blankLine(u.overlay)),y==null?v:d&&v!=null?v+" "+y:y}}}})})();(function(i,e){(function(n){n(Ir)})(function(n){n.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 y(b,M){var L=b.peek();if(M.incomment)return b.skipTo("#}")?(b.eatWhile(/\#|}/),M.incomment=!1):b.skipToEnd(),"comment";if(M.intag){if(M.operator){if(M.operator=!1,b.match(u))return"atom";if(b.match(v))return"number"}if(M.sign){if(M.sign=!1,b.match(u))return"atom";if(b.match(v))return"number"}if(M.instring)return L==M.instring&&(M.instring=!1),b.next(),"string";if(L=="'"||L=='"')return M.instring=L,b.next(),"string";if(b.match(M.intag+"}")||b.eat("-")&&b.match(M.intag+"}"))return M.intag=!1,"tag";if(b.match(l))return M.operator=!0,"operator";if(b.match(d))M.sign=!0;else if(b.eat(" ")||b.sol()){if(b.match(o))return"keyword";if(b.match(u))return"atom";if(b.match(v))return"number";b.sol()&&b.next()}else b.next();return"variable"}else if(b.eat("{")){if(b.eat("#"))return M.incomment=!0,b.skipTo("#}")?(b.eatWhile(/\#|}/),M.incomment=!1):b.skipToEnd(),"comment";if(L=b.eat(/\{|%/))return M.intag=L,L=="{"&&(M.intag="}"),b.eat("-"),"tag"}b.next()}return{startState:function(){return{tokenize:y}},token:function(b,M){return M.tokenize(b,M)},blockCommentStart:"{#",blockCommentEnd:"#}"}}),n.defineMIME("text/jinja2","jinja2")})})();var TL={exports:{}};(function(i,e){(function(n){n(Ir)})(function(n){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};n.defineMode("xml",function(d,u){var v=d.indentUnit,y={},b=u.htmlMode?o:l;for(var M in b)y[M]=b[M];for(var M in u)y[M]=u[M];var L,T;function $(x,w){function U(ke){return w.tokenize=ke,ke(x,w)}var ie=x.next();if(ie=="<")return x.eat("!")?x.eat("[")?x.match("CDATA[")?U(oe("atom","]]>")):null:x.match("--")?U(oe("comment","-->")):x.match("DOCTYPE",!0,!0)?(x.eatWhile(/[\w\._\-]/),U(_(1))):null:x.eat("?")?(x.eatWhile(/[\w\._\-]/),w.tokenize=oe("meta","?>"),"meta"):(L=x.eat("/")?"closeTag":"openTag",w.tokenize=N,"tag bracket");if(ie=="&"){var ye;return x.eat("#")?x.eat("x")?ye=x.eatWhile(/[a-fA-F\d]/)&&x.eat(";"):ye=x.eatWhile(/[\d]/)&&x.eat(";"):ye=x.eatWhile(/[\w\.\-:]/)&&x.eat(";"),ye?"atom":"error"}else return x.eatWhile(/[^&<]/),null}$.isInText=!0;function N(x,w){var U=x.next();if(U==">"||U=="/"&&x.eat(">"))return w.tokenize=$,L=U==">"?"endTag":"selfcloseTag","tag bracket";if(U=="=")return L="equals",null;if(U=="<"){w.tokenize=$,w.state=K,w.tagName=w.tagStart=null;var ie=w.tokenize(x,w);return ie?ie+" tag error":"tag error"}else return/[\'\"]/.test(U)?(w.tokenize=Y(U),w.stringStartCol=x.column(),w.tokenize(x,w)):(x.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function Y(x){var w=function(U,ie){for(;!U.eol();)if(U.next()==x){ie.tokenize=N;break}return"string"};return w.isInAttribute=!0,w}function oe(x,w){return function(U,ie){for(;!U.eol();){if(U.match(w)){ie.tokenize=$;break}U.next()}return x}}function _(x){return function(w,U){for(var ie;(ie=w.next())!=null;){if(ie=="<")return U.tokenize=_(x+1),U.tokenize(w,U);if(ie==">")if(x==1){U.tokenize=$;break}else return U.tokenize=_(x-1),U.tokenize(w,U)}return"meta"}}function D(x,w,U){this.prev=x.context,this.tagName=w||"",this.indent=x.indented,this.startOfLine=U,(y.doNotIndent.hasOwnProperty(w)||x.context&&x.context.noIndent)&&(this.noIndent=!0)}function A(x){x.context&&(x.context=x.context.prev)}function B(x,w){for(var U;;){if(!x.context||(U=x.context.tagName,!y.contextGrabbers.hasOwnProperty(U)||!y.contextGrabbers[U].hasOwnProperty(w)))return;A(x)}}function K(x,w,U){return x=="openTag"?(U.tagStart=w.column(),ue):x=="closeTag"?le:K}function ue(x,w,U){return x=="word"?(U.tagName=w.current(),T="tag",ne):y.allowMissingTagName&&x=="endTag"?(T="tag bracket",ne(x,w,U)):(T="error",ue)}function le(x,w,U){if(x=="word"){var ie=w.current();return U.context&&U.context.tagName!=ie&&y.implicitlyClosed.hasOwnProperty(U.context.tagName)&&A(U),U.context&&U.context.tagName==ie||y.matchClosing===!1?(T="tag",me):(T="tag error",Me)}else return y.allowMissingTagName&&x=="endTag"?(T="tag bracket",me(x,w,U)):(T="error",Me)}function me(x,w,U){return x!="endTag"?(T="error",me):(A(U),K)}function Me(x,w,U){return T="error",me(x,w,U)}function ne(x,w,U){if(x=="word")return T="attribute",X;if(x=="endTag"||x=="selfcloseTag"){var ie=U.tagName,ye=U.tagStart;return U.tagName=U.tagStart=null,x=="selfcloseTag"||y.autoSelfClosers.hasOwnProperty(ie)?B(U,ie):(B(U,ie),U.context=new D(U,ie,ye==U.indented)),K}return T="error",ne}function X(x,w,U){return x=="equals"?V:(y.allowMissing||(T="error"),ne(x,w,U))}function V(x,w,U){return x=="string"?O:x=="word"&&y.allowUnquoted?(T="string",ne):(T="error",ne(x,w,U))}function O(x,w,U){return x=="string"?O:ne(x,w,U)}return{startState:function(x){var w={tokenize:$,state:K,indented:x||0,tagName:null,tagStart:null,context:null};return x!=null&&(w.baseIndent=x),w},token:function(x,w){if(!w.tagName&&x.sol()&&(w.indented=x.indentation()),x.eatSpace())return null;L=null;var U=w.tokenize(x,w);return(U||L)&&U!="comment"&&(T=null,w.state=w.state(L||U,x,w),T&&(U=T=="error"?U+" error":T)),U},indent:function(x,w,U){var ie=x.context;if(x.tokenize.isInAttribute)return x.tagStart==x.indented?x.stringStartCol+1:x.indented+v;if(ie&&ie.noIndent)return n.Pass;if(x.tokenize!=N&&x.tokenize!=$)return U?U.match(/^(\s*)/)[0].length:0;if(x.tagName)return y.multilineTagIndentPastTag!==!1?x.tagStart+x.tagName.length+2:x.tagStart+v*(y.multilineTagIndentFactor||1);if(y.alignCDATA&&/<!\[CDATA\[/.test(w))return 0;var ye=w&&/^<(\/)?([\w_:\.-]*)/.exec(w);if(ye&&ye[1])for(;ie;)if(ie.tagName==ye[2]){ie=ie.prev;break}else if(y.implicitlyClosed.hasOwnProperty(ie.tagName))ie=ie.prev;else break;else if(ye)for(;ie;){var ke=y.contextGrabbers[ie.tagName];if(ke&&ke.hasOwnProperty(ye[2]))ie=ie.prev;else break}for(;ie&&ie.prev&&!ie.startOfLine;)ie=ie.prev;return ie?ie.indent+v:x.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:y.htmlMode?"html":"xml",helperType:y.htmlMode?"html":"xml",skipAttribute:function(x){x.state==V&&(x.state=ne)},xmlCurrentTag:function(x){return x.tagName?{name:x.tagName,close:x.type=="closeTag"}:null},xmlCurrentContext:function(x){for(var w=[],U=x.context;U;U=U.prev)w.push(U.tagName);return w.reverse()}}}),n.defineMIME("text/xml","xml"),n.defineMIME("application/xml","xml"),n.mimeModes.hasOwnProperty("text/html")||n.defineMIME("text/html",{name:"xml",htmlMode:!0})})})();var kL=TL.exports,OL={exports:{}};(function(i,e){(function(n){n(Ir)})(function(n){n.defineMode("javascript",function(o,l){var d=o.indentUnit,u=l.statementIndent,v=l.jsonld,y=l.json||v,b=l.trackScope!==!1,M=l.typescript,L=l.wordCharacters||/[\w$\xa1-\uffff]/,T=function(){function C(It){return{type:It,style:"keyword"}}var k=C("keyword a"),G=C("keyword b"),ee=C("keyword c"),$e=C("keyword d"),Fe=C("operator"),de={type:"atom",style:"atom"};return{if:C("if"),while:k,with:k,else:G,do:G,try:G,finally:G,return:$e,break:$e,continue:$e,new:C("new"),delete:ee,void:ee,throw:ee,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:Fe,typeof:Fe,instanceof:Fe,true:de,false:de,null:de,undefined:de,NaN:de,Infinity:de,this:C("this"),class:C("class"),super:C("atom"),yield:ee,export:C("export"),import:C("import"),extends:ee,await:ee}}(),$=/[+\-*&%=<>!?|~^@]/,N=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function Y(C){for(var k=!1,G,ee=!1;(G=C.next())!=null;){if(!k){if(G=="/"&&!ee)return;G=="["?ee=!0:ee&&G=="]"&&(ee=!1)}k=!k&&G=="\\"}}var oe,_;function D(C,k,G){return oe=C,_=G,k}function A(C,k){var G=C.next();if(G=='"'||G=="'")return k.tokenize=B(G),k.tokenize(C,k);if(G=="."&&C.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return D("number","number");if(G=="."&&C.match(".."))return D("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(G))return D(G);if(G=="="&&C.eat(">"))return D("=>","operator");if(G=="0"&&C.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return D("number","number");if(/\d/.test(G))return C.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),D("number","number");if(G=="/")return C.eat("*")?(k.tokenize=K,K(C,k)):C.eat("/")?(C.skipToEnd(),D("comment","comment")):J(C,k,1)?(Y(C),C.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),D("regexp","string-2")):(C.eat("="),D("operator","operator",C.current()));if(G=="`")return k.tokenize=ue,ue(C,k);if(G=="#"&&C.peek()=="!")return C.skipToEnd(),D("meta","meta");if(G=="#"&&C.eatWhile(L))return D("variable","property");if(G=="<"&&C.match("!--")||G=="-"&&C.match("->")&&!/\S/.test(C.string.slice(0,C.start)))return C.skipToEnd(),D("comment","comment");if($.test(G))return(G!=">"||!k.lexical||k.lexical.type!=">")&&(C.eat("=")?(G=="!"||G=="=")&&C.eat("="):/[<>*+\-|&?]/.test(G)&&(C.eat(G),G==">"&&C.eat(G))),G=="?"&&C.eat(".")?D("."):D("operator","operator",C.current());if(L.test(G)){C.eatWhile(L);var ee=C.current();if(k.lastType!="."){if(T.propertyIsEnumerable(ee)){var $e=T[ee];return D($e.type,$e.style,ee)}if(ee=="async"&&C.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return D("async","keyword",ee)}return D("variable","variable",ee)}}function B(C){return function(k,G){var ee=!1,$e;if(v&&k.peek()=="@"&&k.match(N))return G.tokenize=A,D("jsonld-keyword","meta");for(;($e=k.next())!=null&&!($e==C&&!ee);)ee=!ee&&$e=="\\";return ee||(G.tokenize=A),D("string","string")}}function K(C,k){for(var G=!1,ee;ee=C.next();){if(ee=="/"&&G){k.tokenize=A;break}G=ee=="*"}return D("comment","comment")}function ue(C,k){for(var G=!1,ee;(ee=C.next())!=null;){if(!G&&(ee=="`"||ee=="$"&&C.eat("{"))){k.tokenize=A;break}G=!G&&ee=="\\"}return D("quasi","string-2",C.current())}var le="([{}])";function me(C,k){k.fatArrowAt&&(k.fatArrowAt=null);var G=C.string.indexOf("=>",C.start);if(!(G<0)){if(M){var ee=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(C.string.slice(C.start,G));ee&&(G=ee.index)}for(var $e=0,Fe=!1,de=G-1;de>=0;--de){var It=C.string.charAt(de),lr=le.indexOf(It);if(lr>=0&&lr<3){if(!$e){++de;break}if(--$e==0){It=="("&&(Fe=!0);break}}else if(lr>=3&&lr<6)++$e;else if(L.test(It))Fe=!0;else if(/["'\/`]/.test(It))for(;;--de){if(de==0)return;var _i=C.string.charAt(de-1);if(_i==It&&C.string.charAt(de-2)!="\\"){de--;break}}else if(Fe&&!$e){++de;break}}Fe&&!$e&&(k.fatArrowAt=de)}}var Me={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function ne(C,k,G,ee,$e,Fe){this.indented=C,this.column=k,this.type=G,this.prev=$e,this.info=Fe,ee!=null&&(this.align=ee)}function X(C,k){if(!b)return!1;for(var G=C.localVars;G;G=G.next)if(G.name==k)return!0;for(var ee=C.context;ee;ee=ee.prev)for(var G=ee.vars;G;G=G.next)if(G.name==k)return!0}function V(C,k,G,ee,$e){var Fe=C.cc;for(O.state=C,O.stream=$e,O.marked=null,O.cc=Fe,O.style=k,C.lexical.hasOwnProperty("align")||(C.lexical.align=!0);;){var de=Fe.length?Fe.pop():y?Te:De;if(de(G,ee)){for(;Fe.length&&Fe[Fe.length-1].lex;)Fe.pop()();return O.marked?O.marked:G=="variable"&&X(C,ee)?"variable-2":k}}}var O={state:null,column:null,marked:null,cc:null};function x(){for(var C=arguments.length-1;C>=0;C--)O.cc.push(arguments[C])}function w(){return x.apply(null,arguments),!0}function U(C,k){for(var G=k;G;G=G.next)if(G.name==C)return!0;return!1}function ie(C){var k=O.state;if(O.marked="def",!!b){if(k.context){if(k.lexical.info=="var"&&k.context&&k.context.block){var G=ye(C,k.context);if(G!=null){k.context=G;return}}else if(!U(C,k.localVars)){k.localVars=new ot(C,k.localVars);return}}l.globalVars&&!U(C,k.globalVars)&&(k.globalVars=new ot(C,k.globalVars))}}function ye(C,k){if(k)if(k.block){var G=ye(C,k.prev);return G?G==k.prev?k:new Re(G,k.vars,!0):null}else return U(C,k.vars)?k:new Re(k.prev,new ot(C,k.vars),!1);else return null}function ke(C){return C=="public"||C=="private"||C=="protected"||C=="abstract"||C=="readonly"}function Re(C,k,G){this.prev=C,this.vars=k,this.block=G}function ot(C,k){this.name=C,this.next=k}var Et=new ot("this",new ot("arguments",null));function Ye(){O.state.context=new Re(O.state.context,O.state.localVars,!1),O.state.localVars=Et}function Xe(){O.state.context=new Re(O.state.context,O.state.localVars,!0),O.state.localVars=null}function Be(){O.state.localVars=O.state.context.vars,O.state.context=O.state.context.prev}Be.lex=!0;function ge(C,k){var G=function(){var ee=O.state,$e=ee.indented;if(ee.lexical.type=="stat")$e=ee.lexical.indented;else for(var Fe=ee.lexical;Fe&&Fe.type==")"&&Fe.align;Fe=Fe.prev)$e=Fe.indented;ee.lexical=new ne($e,O.stream.column(),C,null,ee.lexical,k)};return G.lex=!0,G}function ve(){var C=O.state;C.lexical.prev&&(C.lexical.type==")"&&(C.indented=C.lexical.indented),C.lexical=C.lexical.prev)}ve.lex=!0;function Ie(C){function k(G){return G==C?w():C==";"||G=="}"||G==")"||G=="]"?x():w(k)}return k}function De(C,k){return C=="var"?w(ge("vardef",k),So,Ie(";"),ve):C=="keyword a"?w(ge("form"),qt,De,ve):C=="keyword b"?w(ge("form"),De,ve):C=="keyword d"?O.stream.match(/^\s*$/,!1)?w():w(ge("stat"),_e,Ie(";"),ve):C=="debugger"?w(Ie(";")):C=="{"?w(ge("}"),Xe,Kt,ve,Be):C==";"?w():C=="if"?(O.state.lexical.info=="else"&&O.state.cc[O.state.cc.length-1]==ve&&O.state.cc.pop()(),w(ge("form"),qt,De,ve,qs)):C=="function"?w(fr):C=="for"?w(ge("form"),Xe,Ks,De,Be,ve):C=="class"||M&&k=="interface"?(O.marked="keyword",w(ge("form",C=="class"?C:k),Ei,ve)):C=="variable"?M&&k=="declare"?(O.marked="keyword",w(De)):M&&(k=="module"||k=="enum"||k=="type")&&O.stream.match(/^\s*\w/,!1)?(O.marked="keyword",k=="enum"?w(Br):k=="type"?w(Ys,Ie("operator"),Oe,Ie(";")):w(ge("form"),Bt,Ie("{"),ge("}"),Kt,ve,ve)):M&&k=="namespace"?(O.marked="keyword",w(ge("form"),Te,De,ve)):M&&k=="abstract"?(O.marked="keyword",w(De)):w(ge("stat"),Ne):C=="switch"?w(ge("form"),qt,Ie("{"),ge("}","switch"),Xe,Kt,ve,ve,Be):C=="case"?w(Te,Ie(":")):C=="default"?w(Ie(":")):C=="catch"?w(ge("form"),Ye,Ae,De,ve,Be):C=="export"?w(ge("stat"),Oo,ve):C=="import"?w(ge("stat"),at,ve):C=="async"?w(De):k=="@"?w(Te,De):x(ge("stat"),Te,Ie(";"),ve)}function Ae(C){if(C=="(")return w(rn,Ie(")"))}function Te(C,k){return nr(C,k,!1)}function ht(C,k){return nr(C,k,!0)}function qt(C){return C!="("?x():w(ge(")"),_e,Ie(")"),ve)}function nr(C,k,G){if(O.state.fatArrowAt==O.stream.start){var ee=G?Ue:Dr;if(C=="(")return w(Ye,ge(")"),st(rn,")"),ve,Ie("=>"),ee,Be);if(C=="variable")return x(Ye,Bt,Ie("=>"),ee,Be)}var $e=G?ct:Ve;return Me.hasOwnProperty(C)?w($e):C=="function"?w(fr,$e):C=="class"||M&&k=="interface"?(O.marked="keyword",w(ge("form"),$i,ve)):C=="keyword c"||C=="async"?w(G?ht:Te):C=="("?w(ge(")"),_e,Ie(")"),ve,$e):C=="operator"||C=="spread"?w(G?ht:Te):C=="["?w(ge("]"),je,ve,$e):C=="{"?Wn(Nr,"}",null,$e):C=="quasi"?x(Qe,$e):C=="new"?w(H(G)):w()}function _e(C){return C.match(/[;\}\)\],]/)?x():x(Te)}function Ve(C,k){return C==","?w(_e):ct(C,k,!1)}function ct(C,k,G){var ee=G==!1?Ve:ct,$e=G==!1?Te:ht;if(C=="=>")return w(Ye,G?Ue:Dr,Be);if(C=="operator")return/\+\+|--/.test(k)||M&&k=="!"?w(ee):M&&k=="<"&&O.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?w(ge(">"),st(Oe,">"),ve,ee):k=="?"?w(Te,Ie(":"),$e):w($e);if(C=="quasi")return x(Qe,ee);if(C!=";"){if(C=="(")return Wn(ht,")","call",ee);if(C==".")return w(Dt,ee);if(C=="[")return w(ge("]"),_e,Ie("]"),ve,ee);if(M&&k=="as")return O.marked="keyword",w(Oe,ee);if(C=="regexp")return O.state.lastType=O.marked="operator",O.stream.backUp(O.stream.pos-O.stream.start-1),w($e)}}function Qe(C,k){return C!="quasi"?x():k.slice(k.length-2)!="${"?w(Qe):w(_e,et)}function et(C){if(C=="}")return O.marked="string-2",O.state.tokenize=ue,w(Qe)}function Dr(C){return me(O.stream,O.state),x(C=="{"?De:Te)}function Ue(C){return me(O.stream,O.state),x(C=="{"?De:ht)}function H(C){return function(k){return k=="."?w(C?j:re):k=="variable"&&M?w(Un,C?ct:Ve):x(C?ht:Te)}}function re(C,k){if(k=="target")return O.marked="keyword",w(Ve)}function j(C,k){if(k=="target")return O.marked="keyword",w(ct)}function Ne(C){return C==":"?w(ve,De):x(Ve,Ie(";"),ve)}function Dt(C){if(C=="variable")return O.marked="property",w()}function Nr(C,k){if(C=="async")return O.marked="property",w(Nr);if(C=="variable"||O.style=="keyword"){if(O.marked="property",k=="get"||k=="set")return w(Ql);var G;return M&&O.state.fatArrowAt==O.stream.start&&(G=O.stream.match(/^\s*:\s*/,!1))&&(O.state.fatArrowAt=O.stream.pos+G[0].length),w(ir)}else{if(C=="number"||C=="string")return O.marked=v?"property":O.style+" property",w(ir);if(C=="jsonld-keyword")return w(ir);if(M&&ke(k))return O.marked="keyword",w(Nr);if(C=="[")return w(Te,tn,Ie("]"),ir);if(C=="spread")return w(ht,ir);if(k=="*")return O.marked="keyword",w(Nr);if(C==":")return x(ir)}}function Ql(C){return C!="variable"?x(ir):(O.marked="property",w(fr))}function ir(C){if(C==":")return w(ht);if(C=="(")return x(fr)}function st(C,k,G){function ee($e,Fe){if(G?G.indexOf($e)>-1:$e==","){var de=O.state.lexical;return de.info=="call"&&(de.pos=(de.pos||0)+1),w(function(It,lr){return It==k||lr==k?x():x(C)},ee)}return $e==k||Fe==k?w():G&&G.indexOf(";")>-1?x(C):w(Ie(k))}return function($e,Fe){return $e==k||Fe==k?w():x(C,ee)}}function Wn(C,k,G){for(var ee=3;ee<arguments.length;ee++)O.cc.push(arguments[ee]);return w(ge(k,G),st(C,k),ve)}function Kt(C){return C=="}"?w():x(De,Kt)}function tn(C,k){if(M){if(C==":")return w(Oe);if(k=="?")return w(tn)}}function Se(C,k){if(M&&(C==":"||k=="in"))return w(Oe)}function Ti(C){if(M&&C==":")return O.stream.match(/^\s*\w+\s+is\b/,!1)?w(Te,Ft,Oe):w(Oe)}function Ft(C,k){if(k=="is")return O.marked="keyword",w()}function Oe(C,k){if(k=="keyof"||k=="typeof"||k=="infer"||k=="readonly")return O.marked="keyword",w(k=="typeof"?ht:Oe);if(C=="variable"||k=="void")return O.marked="type",w(or);if(k=="|"||k=="&")return w(Oe);if(C=="string"||C=="number"||C=="atom")return w(or);if(C=="[")return w(ge("]"),st(Oe,"]",","),ve,or);if(C=="{")return w(ge("}"),ki,ve,or);if(C=="(")return w(st(Oi,")"),ft,or);if(C=="<")return w(st(Oe,">"),Oe);if(C=="quasi")return x(Hr,or)}function ft(C){if(C=="=>")return w(Oe)}function ki(C){return C.match(/[\}\)\]]/)?w():C==","||C==";"?w(ki):x(Tt,ki)}function Tt(C,k){if(C=="variable"||O.style=="keyword")return O.marked="property",w(Tt);if(k=="?"||C=="number"||C=="string")return w(Tt);if(C==":")return w(Oe);if(C=="[")return w(Ie("variable"),Se,Ie("]"),Tt);if(C=="(")return x(sr,Tt);if(!C.match(/[;\}\)\],]/))return w()}function Hr(C,k){return C!="quasi"?x():k.slice(k.length-2)!="${"?w(Hr):w(Oe,_t)}function _t(C){if(C=="}")return O.marked="string-2",O.state.tokenize=ue,w(Hr)}function Oi(C,k){return C=="variable"&&O.stream.match(/^\s*[?:]/,!1)||k=="?"?w(Oi):C==":"?w(Oe):C=="spread"?w(Oi):x(Oe)}function or(C,k){if(k=="<")return w(ge(">"),st(Oe,">"),ve,or);if(k=="|"||C=="."||k=="&")return w(Oe);if(C=="[")return w(Oe,Ie("]"),or);if(k=="extends"||k=="implements")return O.marked="keyword",w(Oe);if(k=="?")return w(Oe,Ie(":"),Oe)}function Un(C,k){if(k=="<")return w(ge(">"),st(Oe,">"),ve,or)}function wn(){return x(Oe,js)}function js(C,k){if(k=="=")return w(Oe)}function So(C,k){return k=="enum"?(O.marked="keyword",w(Br)):x(Bt,tn,Rr,To)}function Bt(C,k){if(M&&ke(k))return O.marked="keyword",w(Bt);if(C=="variable")return ie(k),w();if(C=="spread")return w(Bt);if(C=="[")return Wn(Mo,"]");if(C=="{")return Wn(Gs,"}")}function Gs(C,k){return C=="variable"&&!O.stream.match(/^\s*:/,!1)?(ie(k),w(Rr)):(C=="variable"&&(O.marked="property"),C=="spread"?w(Bt):C=="}"?x():C=="["?w(Te,Ie("]"),Ie(":"),Gs):w(Ie(":"),Bt,Rr))}function Mo(){return x(Bt,Rr)}function Rr(C,k){if(k=="=")return w(ht)}function To(C){if(C==",")return w(So)}function qs(C,k){if(C=="keyword b"&&k=="else")return w(ge("form","else"),De,ve)}function Ks(C,k){if(k=="await")return w(Ks);if(C=="(")return w(ge(")"),ko,ve)}function ko(C){return C=="var"?w(So,xn):C=="variable"?w(xn):x(xn)}function xn(C,k){return C==")"?w():C==";"?w(xn):k=="in"||k=="of"?(O.marked="keyword",w(Te,xn)):x(Te,xn)}function fr(C,k){if(k=="*")return O.marked="keyword",w(fr);if(C=="variable")return ie(k),w(fr);if(C=="(")return w(Ye,ge(")"),st(rn,")"),ve,Ti,De,Be);if(M&&k=="<")return w(ge(">"),st(wn,">"),ve,fr)}function sr(C,k){if(k=="*")return O.marked="keyword",w(sr);if(C=="variable")return ie(k),w(sr);if(C=="(")return w(Ye,ge(")"),st(rn,")"),ve,Ti,Be);if(M&&k=="<")return w(ge(">"),st(wn,">"),ve,sr)}function Ys(C,k){if(C=="keyword"||C=="variable")return O.marked="type",w(Ys);if(k=="<")return w(ge(">"),st(wn,">"),ve)}function rn(C,k){return k=="@"&&w(Te,rn),C=="spread"?w(rn):M&&ke(k)?(O.marked="keyword",w(rn)):M&&C=="this"?w(tn,Rr):x(Bt,tn,Rr)}function $i(C,k){return C=="variable"?Ei(C,k):yr(C,k)}function Ei(C,k){if(C=="variable")return ie(k),w(yr)}function yr(C,k){if(k=="<")return w(ge(">"),st(wn,">"),ve,yr);if(k=="extends"||k=="implements"||M&&C==",")return k=="implements"&&(O.marked="keyword"),w(M?Oe:Te,yr);if(C=="{")return w(ge("}"),Cr,ve)}function Cr(C,k){if(C=="async"||C=="variable"&&(k=="static"||k=="get"||k=="set"||M&&ke(k))&&O.stream.match(/^\s+[\w$\xa1-\uffff]/,!1))return O.marked="keyword",w(Cr);if(C=="variable"||O.style=="keyword")return O.marked="property",w(ar,Cr);if(C=="number"||C=="string")return w(ar,Cr);if(C=="[")return w(Te,tn,Ie("]"),ar,Cr);if(k=="*")return O.marked="keyword",w(Cr);if(M&&C=="(")return x(sr,Cr);if(C==";"||C==",")return w(Cr);if(C=="}")return w();if(k=="@")return w(Te,Cr)}function ar(C,k){if(k=="!"||k=="?")return w(ar);if(C==":")return w(Oe,Rr);if(k=="=")return w(ht);var G=O.state.lexical.prev,ee=G&&G.info=="interface";return x(ee?sr:fr)}function Oo(C,k){return k=="*"?(O.marked="keyword",w(Yt,Ie(";"))):k=="default"?(O.marked="keyword",w(Te,Ie(";"))):C=="{"?w(st($o,"}"),Yt,Ie(";")):x(De)}function $o(C,k){if(k=="as")return O.marked="keyword",w(Ie("variable"));if(C=="variable")return x(ht,$o)}function at(C){return C=="string"?w():C=="("?x(Te):C=="."?x(Ve):x(be,Fr,Yt)}function be(C,k){return C=="{"?Wn(be,"}"):(C=="variable"&&ie(k),k=="*"&&(O.marked="keyword"),w(Eo))}function Fr(C){if(C==",")return w(be,Fr)}function Eo(C,k){if(k=="as")return O.marked="keyword",w(be)}function Yt(C,k){if(k=="from")return O.marked="keyword",w(Te)}function je(C){return C=="]"?w():x(st(ht,"]"))}function Br(){return x(ge("form"),Bt,Ie("{"),ge("}"),st(jn,"}"),ve,ve)}function jn(){return x(Bt,Rr)}function _o(C,k){return C.lastType=="operator"||C.lastType==","||$.test(k.charAt(0))||/[,.]/.test(k.charAt(0))}function J(C,k,G){return k.tokenize==A&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(k.lastType)||k.lastType=="quasi"&&/\{\s*$/.test(C.string.slice(0,C.pos-(G||0)))}return{startState:function(C){var k={tokenize:A,lastType:"sof",cc:[],lexical:new ne((C||0)-d,0,"block",!1),localVars:l.localVars,context:l.localVars&&new Re(null,null,!1),indented:C||0};return l.globalVars&&typeof l.globalVars=="object"&&(k.globalVars=l.globalVars),k},token:function(C,k){if(C.sol()&&(k.lexical.hasOwnProperty("align")||(k.lexical.align=!1),k.indented=C.indentation(),me(C,k)),k.tokenize!=K&&C.eatSpace())return null;var G=k.tokenize(C,k);return oe=="comment"?G:(k.lastType=oe=="operator"&&(_=="++"||_=="--")?"incdec":oe,V(k,G,oe,_,C))},indent:function(C,k){if(C.tokenize==K||C.tokenize==ue)return n.Pass;if(C.tokenize!=A)return 0;var G=k&&k.charAt(0),ee=C.lexical,$e;if(!/^\s*else\b/.test(k))for(var Fe=C.cc.length-1;Fe>=0;--Fe){var de=C.cc[Fe];if(de==ve)ee=ee.prev;else if(de!=qs&&de!=Be)break}for(;(ee.type=="stat"||ee.type=="form")&&(G=="}"||($e=C.cc[C.cc.length-1])&&($e==Ve||$e==ct)&&!/^[,\.=+\-*:?[\(]/.test(k));)ee=ee.prev;u&&ee.type==")"&&ee.prev.type=="stat"&&(ee=ee.prev);var It=ee.type,lr=G==It;return It=="vardef"?ee.indented+(C.lastType=="operator"||C.lastType==","?ee.info.length+1:0):It=="form"&&G=="{"?ee.indented:It=="form"?ee.indented+d:It=="stat"?ee.indented+(_o(C,k)?u||d:0):ee.info=="switch"&&!lr&&l.doubleIndentSwitch!=!1?ee.indented+(/^(?:case|default)\b/.test(k)?d:2*d):ee.align?ee.column+(lr?0:1):ee.indented+(lr?0:d)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:y?null:"/*",blockCommentEnd:y?null:"*/",blockCommentContinue:y?null:" * ",lineComment:y?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:y?"json":"javascript",jsonldMode:v,jsonMode:y,expressionAllowed:J,skipExpression:function(C){V(C,"atom","atom","true",new n.StringStream("",2,null))}}}),n.registerHelper("wordChars","javascript",/[\w$]/),n.defineMIME("text/javascript","javascript"),n.defineMIME("text/ecmascript","javascript"),n.defineMIME("application/javascript","javascript"),n.defineMIME("application/x-javascript","javascript"),n.defineMIME("application/ecmascript","javascript"),n.defineMIME("application/json",{name:"javascript",json:!0}),n.defineMIME("application/x-json",{name:"javascript",json:!0}),n.defineMIME("application/manifest+json",{name:"javascript",json:!0}),n.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),n.defineMIME("text/typescript",{name:"javascript",typescript:!0}),n.defineMIME("application/typescript",{name:"javascript",typescript:!0})})})();var $L=OL.exports,Qh={exports:{}},ef;function EL(){return ef||(ef=1,function(i,e){(function(n){n(Ir)})(function(n){n.defineMode("css",function(ne,X){var V=X.inline;X.propertyKeywords||(X=n.resolveMode("text/css"));var O=ne.indentUnit,x=X.tokenHooks,w=X.documentTypes||{},U=X.mediaTypes||{},ie=X.mediaFeatures||{},ye=X.mediaValueKeywords||{},ke=X.propertyKeywords||{},Re=X.nonStandardPropertyKeywords||{},ot=X.fontProperties||{},Et=X.counterDescriptors||{},Ye=X.colorKeywords||{},Xe=X.valueKeywords||{},Be=X.allowNested,ge=X.lineComment,ve=X.supportsAtComponent===!0,Ie=ne.highlightNonStandardPropertyKeywords!==!1,De,Ae;function Te(H,re){return De=re,H}function ht(H,re){var j=H.next();if(x[j]){var Ne=x[j](H,re);if(Ne!==!1)return Ne}if(j=="@")return H.eatWhile(/[\w\\\-]/),Te("def",H.current());if(j=="="||(j=="~"||j=="|")&&H.eat("="))return Te(null,"compare");if(j=='"'||j=="'")return re.tokenize=qt(j),re.tokenize(H,re);if(j=="#")return H.eatWhile(/[\w\\\-]/),Te("atom","hash");if(j=="!")return H.match(/^\s*\w*/),Te("keyword","important");if(/\d/.test(j)||j=="."&&H.eat(/\d/))return H.eatWhile(/[\w.%]/),Te("number","unit");if(j==="-"){if(/[\d.]/.test(H.peek()))return H.eatWhile(/[\w.%]/),Te("number","unit");if(H.match(/^-[\w\\\-]*/))return H.eatWhile(/[\w\\\-]/),H.match(/^\s*:/,!1)?Te("variable-2","variable-definition"):Te("variable-2","variable");if(H.match(/^\w+-/))return Te("meta","meta")}else return/[,+>*\/]/.test(j)?Te(null,"select-op"):j=="."&&H.match(/^-?[_a-z][_a-z0-9-]*/i)?Te("qualifier","qualifier"):/[:;{}\[\]\(\)]/.test(j)?Te(null,j):H.match(/^[\w-.]+(?=\()/)?(/^(url(-prefix)?|domain|regexp)$/i.test(H.current())&&(re.tokenize=nr),Te("variable callee","variable")):/[\w\\\-]/.test(j)?(H.eatWhile(/[\w\\\-]/),Te("property","word")):Te(null,null)}function qt(H){return function(re,j){for(var Ne=!1,Dt;(Dt=re.next())!=null;){if(Dt==H&&!Ne){H==")"&&re.backUp(1);break}Ne=!Ne&&Dt=="\\"}return(Dt==H||!Ne&&H!=")")&&(j.tokenize=null),Te("string","string")}}function nr(H,re){return H.next(),H.match(/^\s*[\"\')]/,!1)?re.tokenize=null:re.tokenize=qt(")"),Te(null,"(")}function _e(H,re,j){this.type=H,this.indent=re,this.prev=j}function Ve(H,re,j,Ne){return H.context=new _e(j,re.indentation()+(Ne===!1?0:O),H.context),j}function ct(H){return H.context.prev&&(H.context=H.context.prev),H.context.type}function Qe(H,re,j){return Ue[j.context.type](H,re,j)}function et(H,re,j,Ne){for(var Dt=Ne||1;Dt>0;Dt--)j.context=j.context.prev;return Qe(H,re,j)}function Dr(H){var re=H.current().toLowerCase();Xe.hasOwnProperty(re)?Ae="atom":Ye.hasOwnProperty(re)?Ae="keyword":Ae="variable"}var Ue={};return Ue.top=function(H,re,j){if(H=="{")return Ve(j,re,"block");if(H=="}"&&j.context.prev)return ct(j);if(ve&&/@component/i.test(H))return Ve(j,re,"atComponentBlock");if(/^@(-moz-)?document$/i.test(H))return Ve(j,re,"documentTypes");if(/^@(media|supports|(-moz-)?document|import)$/i.test(H))return Ve(j,re,"atBlock");if(/^@(font-face|counter-style)/i.test(H))return j.stateArg=H,"restricted_atBlock_before";if(/^@(-(moz|ms|o|webkit)-)?keyframes$/i.test(H))return"keyframes";if(H&&H.charAt(0)=="@")return Ve(j,re,"at");if(H=="hash")Ae="builtin";else if(H=="word")Ae="tag";else{if(H=="variable-definition")return"maybeprop";if(H=="interpolation")return Ve(j,re,"interpolation");if(H==":")return"pseudo";if(Be&&H=="(")return Ve(j,re,"parens")}return j.context.type},Ue.block=function(H,re,j){if(H=="word"){var Ne=re.current().toLowerCase();return ke.hasOwnProperty(Ne)?(Ae="property","maybeprop"):Re.hasOwnProperty(Ne)?(Ae=Ie?"string-2":"property","maybeprop"):Be?(Ae=re.match(/^\s*:(?:\s|$)/,!1)?"property":"tag","block"):(Ae+=" error","maybeprop")}else return H=="meta"?"block":!Be&&(H=="hash"||H=="qualifier")?(Ae="error","block"):Ue.top(H,re,j)},Ue.maybeprop=function(H,re,j){return H==":"?Ve(j,re,"prop"):Qe(H,re,j)},Ue.prop=function(H,re,j){if(H==";")return ct(j);if(H=="{"&&Be)return Ve(j,re,"propBlock");if(H=="}"||H=="{")return et(H,re,j);if(H=="(")return Ve(j,re,"parens");if(H=="hash"&&!/^#([0-9a-fA-f]{3,4}|[0-9a-fA-f]{6}|[0-9a-fA-f]{8})$/.test(re.current()))Ae+=" error";else if(H=="word")Dr(re);else if(H=="interpolation")return Ve(j,re,"interpolation");return"prop"},Ue.propBlock=function(H,re,j){return H=="}"?ct(j):H=="word"?(Ae="property","maybeprop"):j.context.type},Ue.parens=function(H,re,j){return H=="{"||H=="}"?et(H,re,j):H==")"?ct(j):H=="("?Ve(j,re,"parens"):H=="interpolation"?Ve(j,re,"interpolation"):(H=="word"&&Dr(re),"parens")},Ue.pseudo=function(H,re,j){return H=="meta"?"pseudo":H=="word"?(Ae="variable-3",j.context.type):Qe(H,re,j)},Ue.documentTypes=function(H,re,j){return H=="word"&&w.hasOwnProperty(re.current())?(Ae="tag",j.context.type):Ue.atBlock(H,re,j)},Ue.atBlock=function(H,re,j){if(H=="(")return Ve(j,re,"atBlock_parens");if(H=="}"||H==";")return et(H,re,j);if(H=="{")return ct(j)&&Ve(j,re,Be?"block":"top");if(H=="interpolation")return Ve(j,re,"interpolation");if(H=="word"){var Ne=re.current().toLowerCase();Ne=="only"||Ne=="not"||Ne=="and"||Ne=="or"?Ae="keyword":U.hasOwnProperty(Ne)?Ae="attribute":ie.hasOwnProperty(Ne)?Ae="property":ye.hasOwnProperty(Ne)?Ae="keyword":ke.hasOwnProperty(Ne)?Ae="property":Re.hasOwnProperty(Ne)?Ae=Ie?"string-2":"property":Xe.hasOwnProperty(Ne)?Ae="atom":Ye.hasOwnProperty(Ne)?Ae="keyword":Ae="error"}return j.context.type},Ue.atComponentBlock=function(H,re,j){return H=="}"?et(H,re,j):H=="{"?ct(j)&&Ve(j,re,Be?"block":"top",!1):(H=="word"&&(Ae="error"),j.context.type)},Ue.atBlock_parens=function(H,re,j){return H==")"?ct(j):H=="{"||H=="}"?et(H,re,j,2):Ue.atBlock(H,re,j)},Ue.restricted_atBlock_before=function(H,re,j){return H=="{"?Ve(j,re,"restricted_atBlock"):H=="word"&&j.stateArg=="@counter-style"?(Ae="variable","restricted_atBlock_before"):Qe(H,re,j)},Ue.restricted_atBlock=function(H,re,j){return H=="}"?(j.stateArg=null,ct(j)):H=="word"?(j.stateArg=="@font-face"&&!ot.hasOwnProperty(re.current().toLowerCase())||j.stateArg=="@counter-style"&&!Et.hasOwnProperty(re.current().toLowerCase())?Ae="error":Ae="property","maybeprop"):"restricted_atBlock"},Ue.keyframes=function(H,re,j){return H=="word"?(Ae="variable","keyframes"):H=="{"?Ve(j,re,"top"):Qe(H,re,j)},Ue.at=function(H,re,j){return H==";"?ct(j):H=="{"||H=="}"?et(H,re,j):(H=="word"?Ae="tag":H=="hash"&&(Ae="builtin"),"at")},Ue.interpolation=function(H,re,j){return H=="}"?ct(j):H=="{"||H==";"?et(H,re,j):(H=="word"?Ae="variable":H!="variable"&&H!="("&&H!=")"&&(Ae="error"),"interpolation")},{startState:function(H){return{tokenize:null,state:V?"block":"top",stateArg:null,context:new _e(V?"block":"top",H||0,null)}},token:function(H,re){if(!re.tokenize&&H.eatSpace())return null;var j=(re.tokenize||ht)(H,re);return j&&typeof j=="object"&&(De=j[1],j=j[0]),Ae=j,De!="comment"&&(re.state=Ue[re.state](De,H,re)),Ae},indent:function(H,re){var j=H.context,Ne=re&&re.charAt(0),Dt=j.indent;return j.type=="prop"&&(Ne=="}"||Ne==")")&&(j=j.prev),j.prev&&(Ne=="}"&&(j.type=="block"||j.type=="top"||j.type=="interpolation"||j.type=="restricted_atBlock")?(j=j.prev,Dt=j.indent):(Ne==")"&&(j.type=="parens"||j.type=="atBlock_parens")||Ne=="{"&&(j.type=="at"||j.type=="atBlock"))&&(Dt=Math.max(0,j.indent-O))),Dt},electricChars:"}",blockCommentStart:"/*",blockCommentEnd:"*/",blockCommentContinue:" * ",lineComment:ge,fold:"brace"}});function o(ne){for(var X={},V=0;V<ne.length;++V)X[ne[V].toLowerCase()]=!0;return X}var l=["domain","regexp","url","url-prefix"],d=o(l),u=["all","aural","braille","handheld","print","projection","screen","tty","tv","embossed"],v=o(u),y=["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"],b=o(y),M=["landscape","portrait","none","coarse","fine","on-demand","hover","interlace","progressive","dark","light"],L=o(M),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"],$=o(T),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"],Y=o(N),oe=["font-display","font-family","src","unicode-range","font-variant","font-feature-settings","font-stretch","font-weight","font-style"],_=o(oe),D=["additive-symbols","fallback","negative","pad","prefix","range","speak-as","suffix","symbols","system"],A=o(D),B=["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"],K=o(B),ue=["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"],le=o(ue),me=l.concat(u).concat(y).concat(M).concat(T).concat(N).concat(B).concat(ue);n.registerHelper("hintWords","css",me);function Me(ne,X){for(var V=!1,O;(O=ne.next())!=null;){if(V&&O=="/"){X.tokenize=null;break}V=O=="*"}return["comment","comment"]}n.defineMIME("text/css",{documentTypes:d,mediaTypes:v,mediaFeatures:b,mediaValueKeywords:L,propertyKeywords:$,nonStandardPropertyKeywords:Y,fontProperties:_,counterDescriptors:A,colorKeywords:K,valueKeywords:le,tokenHooks:{"/":function(ne,X){return ne.eat("*")?(X.tokenize=Me,Me(ne,X)):!1}},name:"css"}),n.defineMIME("text/x-scss",{mediaTypes:v,mediaFeatures:b,mediaValueKeywords:L,propertyKeywords:$,nonStandardPropertyKeywords:Y,colorKeywords:K,valueKeywords:le,fontProperties:_,allowNested:!0,lineComment:"//",tokenHooks:{"/":function(ne,X){return ne.eat("/")?(ne.skipToEnd(),["comment","comment"]):ne.eat("*")?(X.tokenize=Me,Me(ne,X)):["operator","operator"]},":":function(ne){return ne.match(/^\s*\{/,!1)?[null,null]:!1},$:function(ne){return ne.match(/^[\w-]+/),ne.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2","variable"]},"#":function(ne){return ne.eat("{")?[null,"interpolation"]:!1}},name:"css",helperType:"scss"}),n.defineMIME("text/x-less",{mediaTypes:v,mediaFeatures:b,mediaValueKeywords:L,propertyKeywords:$,nonStandardPropertyKeywords:Y,colorKeywords:K,valueKeywords:le,fontProperties:_,allowNested:!0,lineComment:"//",tokenHooks:{"/":function(ne,X){return ne.eat("/")?(ne.skipToEnd(),["comment","comment"]):ne.eat("*")?(X.tokenize=Me,Me(ne,X)):["operator","operator"]},"@":function(ne){return ne.eat("{")?[null,"interpolation"]:ne.match(/^(charset|document|font-face|import|(-(moz|ms|o|webkit)-)?keyframes|media|namespace|page|supports)\b/i,!1)?!1:(ne.eatWhile(/[\w\\\-]/),ne.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2","variable"])},"&":function(){return["atom","atom"]}},name:"css",helperType:"less"}),n.defineMIME("text/x-gss",{documentTypes:d,mediaTypes:v,mediaFeatures:b,propertyKeywords:$,nonStandardPropertyKeywords:Y,fontProperties:_,counterDescriptors:A,colorKeywords:K,valueKeywords:le,supportsAtComponent:!0,tokenHooks:{"/":function(ne,X){return ne.eat("*")?(X.tokenize=Me,Me(ne,X)):!1}},name:"css",helperType:"gss"})})}()),Qh.exports}(function(i,e){(function(n){n(Ir,kL,$L,EL())})(function(n){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(L,T,$){var N=L.current(),Y=N.search(T);return Y>-1?L.backUp(N.length-Y):N.match(/<\/?$/)&&(L.backUp(N.length),L.match(T,!1)||L.match(N)),$}var d={};function u(L){var T=d[L];return T||(d[L]=new RegExp("\\s+"+L+`\\s*=\\s*('|")?([^'"]+)('|")?\\s*`))}function v(L,T){var $=L.match(u(T));return $?/^\s*(.*?)\s*$/.exec($[2])[1]:""}function y(L,T){return new RegExp((T?"^":"")+"</s*"+L+"s*>","i")}function b(L,T){for(var $ in L)for(var N=T[$]||(T[$]=[]),Y=L[$],oe=Y.length-1;oe>=0;oe--)N.unshift(Y[oe])}function M(L,T){for(var $=0;$<L.length;$++){var N=L[$];if(!N[0]||N[1].test(v(T,N[0])))return N[2]}}n.defineMode("htmlmixed",function(L,T){var $=n.getMode(L,{name:"xml",htmlMode:!0,multilineTagIndentFactor:T.multilineTagIndentFactor,multilineTagIndentPastTag:T.multilineTagIndentPastTag,allowMissingTagName:T.allowMissingTagName}),N={},Y=T&&T.tags,oe=T&&T.scriptTypes;if(b(o,N),Y&&b(Y,N),oe)for(var _=oe.length-1;_>=0;_--)N.script.unshift(["type",oe[_].matches,oe[_].mode]);function D(A,B){var K=$.token(A,B.htmlState),ue=/\btag\b/.test(K),le;if(ue&&!/[<>\s\/]/.test(A.current())&&(le=B.htmlState.tagName&&B.htmlState.tagName.toLowerCase())&&N.hasOwnProperty(le))B.inTag=le+" ";else if(B.inTag&&ue&&/>$/.test(A.current())){var me=/^([\S]+) (.*)/.exec(B.inTag);B.inTag=null;var Me=A.current()==">"&&M(N[me[1]],me[2]),ne=n.getMode(L,Me),X=y(me[1],!0),V=y(me[1],!1);B.token=function(O,x){return O.match(X,!1)?(x.token=D,x.localState=x.localMode=null,null):l(O,V,x.localMode.token(O,x.localState))},B.localMode=ne,B.localState=n.startState(ne,$.indent(B.htmlState,"",""))}else B.inTag&&(B.inTag+=A.current(),A.eol()&&(B.inTag+=" "));return K}return{startState:function(){var A=n.startState($);return{token:D,inTag:null,localMode:null,localState:null,htmlState:A}},copyState:function(A){var B;return A.localState&&(B=n.copyState(A.localMode,A.localState)),{token:A.token,inTag:A.inTag,localMode:A.localMode,localState:B,htmlState:n.copyState($,A.htmlState)}},token:function(A,B){return B.token(A,B)},indent:function(A,B,K){return!A.localMode||/^\s*<\//.test(B)?$.indent(A.htmlState,B,K):A.localMode.indent?A.localMode.indent(A.localState,B,K):n.Pass},innerMode:function(A){return{state:A.localState||A.htmlState,mode:A.localMode||$}}}},"xml","javascript","css"),n.defineMIME("text/html","htmlmixed")})})();(function(i,e){(function(n){n(Ir)})(function(n){n.defineMode("solr",function(){var o=/[^\s\|\!\+\-\*\?\~\^\&\:\(\)\[\]\{\}\"\\]/,l=/[\|\!\+\-\*\?\~\^\&]/,d=/^(OR|AND|NOT|TO)$/i;function u(L){return parseFloat(L).toString()===L}function v(L){return function(T,$){for(var N=!1,Y;(Y=T.next())!=null&&!(Y==L&&!N);)N=!N&&Y=="\\";return N||($.tokenize=M),"string"}}function y(L){return function(T,$){var N="operator";return L=="+"?N+=" positive":L=="-"?N+=" negative":L=="|"?T.eat(/\|/):L=="&"?T.eat(/\&/):L=="^"&&(N+=" boost"),$.tokenize=M,N}}function b(L){return function(T,$){for(var N=L;(L=T.peek())&&L.match(o)!=null;)N+=T.next();return $.tokenize=M,d.test(N)?"operator":u(N)?"number":T.peek()==":"?"field":"string"}}function M(L,T){var $=L.next();return $=='"'?T.tokenize=v($):l.test($)?T.tokenize=y($):o.test($)&&(T.tokenize=b($)),T.tokenize!=M?T.tokenize(L,T):null}return{startState:function(){return{tokenize:M}},token:function(L,T){return L.eatSpace()?null:T.tokenize(L,T)}}}),n.defineMIME("text/x-solr","solr")})})();(function(i,e){(function(n){n(Ir)})(function(n){n.defineOption("placeholder","",function(b,M,L){var T=L&&L!=n.Init;if(M&&!T)b.on("blur",u),b.on("change",v),b.on("swapDoc",v),n.on(b.getInputField(),"compositionupdate",b.state.placeholderCompose=function(){d(b)}),v(b);else if(!M&&T){b.off("blur",u),b.off("change",v),b.off("swapDoc",v),n.off(b.getInputField(),"compositionupdate",b.state.placeholderCompose),o(b);var $=b.getWrapperElement();$.className=$.className.replace(" CodeMirror-empty","")}M&&!b.hasFocus()&&u(b)});function o(b){b.state.placeholder&&(b.state.placeholder.parentNode.removeChild(b.state.placeholder),b.state.placeholder=null)}function l(b){o(b);var M=b.state.placeholder=document.createElement("pre");M.style.cssText="height: 0; overflow: visible",M.style.direction=b.getOption("direction"),M.className="CodeMirror-placeholder CodeMirror-line-like";var L=b.getOption("placeholder");typeof L=="string"&&(L=document.createTextNode(L)),M.appendChild(L),b.display.lineSpace.insertBefore(M,b.display.lineSpace.firstChild)}function d(b){setTimeout(function(){var M=!1;if(b.lineCount()==1){var L=b.getInputField();M=L.nodeName=="TEXTAREA"?!b.getLine(0).length:!/[^\u200b]/.test(L.querySelector(".CodeMirror-line").textContent)}M?l(b):o(b)},20)}function u(b){y(b)&&l(b)}function v(b){var M=b.getWrapperElement(),L=y(b);M.className=M.className.replace(" CodeMirror-empty","")+(L?" CodeMirror-empty":""),L?l(b):o(b)}function y(b){return b.lineCount()===1&&b.getLine(0)===""}})})();(function(i,e){(function(n){n(Ir)})(function(n){var o="CodeMirror-hint",l="CodeMirror-hint-active";n.showHint=function(_,D,A){if(!D)return _.showHint(A);A&&A.async&&(D.async=!0);var B={hint:D};if(A)for(var K in A)B[K]=A[K];return _.showHint(B)},n.defineExtension("showHint",function(_){_=y(this,this.getCursor("start"),_);var D=this.listSelections();if(!(D.length>1)){if(this.somethingSelected()){if(!_.hint.supportsSelection)return;for(var A=0;A<D.length;A++)if(D[A].head.line!=D[A].anchor.line)return}this.state.completionActive&&this.state.completionActive.close();var B=this.state.completionActive=new d(this,_);B.options.hint&&(n.signal(this,"startCompletion",this),B.update(!0))}}),n.defineExtension("closeHint",function(){this.state.completionActive&&this.state.completionActive.close()});function d(_,D){if(this.cm=_,this.options=D,this.widget=null,this.debounce=0,this.tick=0,this.startPos=this.cm.getCursor("start"),this.startLen=this.cm.getLine(this.startPos.line).length-this.cm.getSelection().length,this.options.updateOnCursorActivity){var A=this;_.on("cursorActivity",this.activityFunc=function(){A.cursorActivity()})}}var u=window.requestAnimationFrame||function(_){return setTimeout(_,1e3/60)},v=window.cancelAnimationFrame||clearTimeout;d.prototype={close:function(){this.active()&&(this.cm.state.completionActive=null,this.tick=null,this.options.updateOnCursorActivity&&this.cm.off("cursorActivity",this.activityFunc),this.widget&&this.data&&n.signal(this.data,"close"),this.widget&&this.widget.close(),n.signal(this.cm,"endCompletion",this.cm))},active:function(){return this.cm.state.completionActive==this},pick:function(_,D){var A=_.list[D],B=this;this.cm.operation(function(){A.hint?A.hint(B.cm,_,A):B.cm.replaceRange(b(A),A.from||_.from,A.to||_.to,"complete"),n.signal(_,"pick",A),B.cm.scrollIntoView()}),this.options.closeOnPick&&this.close()},cursorActivity:function(){this.debounce&&(v(this.debounce),this.debounce=0);var _=this.startPos;this.data&&(_=this.data.from);var D=this.cm.getCursor(),A=this.cm.getLine(D.line);if(D.line!=this.startPos.line||A.length-D.ch!=this.startLen-this.startPos.ch||D.ch<_.ch||this.cm.somethingSelected()||!D.ch||this.options.closeCharacters.test(A.charAt(D.ch-1)))this.close();else{var B=this;this.debounce=u(function(){B.update()}),this.widget&&this.widget.disable()}},update:function(_){if(this.tick!=null){var D=this,A=++this.tick;N(this.options.hint,this.cm,this.options,function(B){D.tick==A&&D.finishUpdate(B,_)})}},finishUpdate:function(_,D){this.data&&n.signal(this.data,"update");var A=this.widget&&this.widget.picked||D&&this.options.completeSingle;this.widget&&this.widget.close(),this.data=_,_&&_.list.length&&(A&&_.list.length==1?this.pick(_,0):(this.widget=new T(this,_),n.signal(_,"shown")))}};function y(_,D,A){var B=_.options.hintOptions,K={};for(var ue in oe)K[ue]=oe[ue];if(B)for(var ue in B)B[ue]!==void 0&&(K[ue]=B[ue]);if(A)for(var ue in A)A[ue]!==void 0&&(K[ue]=A[ue]);return K.hint.resolve&&(K.hint=K.hint.resolve(_,D)),K}function b(_){return typeof _=="string"?_:_.text}function M(_,D){var A={Up:function(){D.moveFocus(-1)},Down:function(){D.moveFocus(1)},PageUp:function(){D.moveFocus(-D.menuSize()+1,!0)},PageDown:function(){D.moveFocus(D.menuSize()-1,!0)},Home:function(){D.setFocus(0)},End:function(){D.setFocus(D.length-1)},Enter:D.pick,Tab:D.pick,Esc:D.close},B=/Mac/.test(navigator.platform);B&&(A["Ctrl-P"]=function(){D.moveFocus(-1)},A["Ctrl-N"]=function(){D.moveFocus(1)});var K=_.options.customKeys,ue=K?{}:A;function le(ne,X){var V;typeof X!="string"?V=function(O){return X(O,D)}:A.hasOwnProperty(X)?V=A[X]:V=X,ue[ne]=V}if(K)for(var me in K)K.hasOwnProperty(me)&&le(me,K[me]);var Me=_.options.extraKeys;if(Me)for(var me in Me)Me.hasOwnProperty(me)&&le(me,Me[me]);return ue}function L(_,D){for(;D&&D!=_;){if(D.nodeName.toUpperCase()==="LI"&&D.parentNode==_)return D;D=D.parentNode}}function T(_,D){this.id="cm-complete-"+Math.floor(Math.random(1e6)),this.completion=_,this.data=D,this.picked=!1;var A=this,B=_.cm,K=B.getInputField().ownerDocument,ue=K.defaultView||K.parentWindow,le=this.hints=K.createElement("ul");le.setAttribute("role","listbox"),le.setAttribute("aria-expanded","true"),le.id=this.id;var me=_.cm.options.theme;le.className="CodeMirror-hints "+me,this.selectedHint=D.selectedHint||0;for(var Me=D.list,ne=0;ne<Me.length;++ne){var X=le.appendChild(K.createElement("li")),V=Me[ne],O=o+(ne!=this.selectedHint?"":" "+l);V.className!=null&&(O=V.className+" "+O),X.className=O,ne==this.selectedHint&&X.setAttribute("aria-selected","true"),X.id=this.id+"-"+ne,X.setAttribute("role","option"),V.render?V.render(X,D,V):X.appendChild(K.createTextNode(V.displayText||b(V))),X.hintId=ne}var x=_.options.container||K.body,w=B.cursorCoords(_.options.alignWithWord?D.from:null),U=w.left,ie=w.bottom,ye=!0,ke=0,Re=0;if(x!==K.body){var ot=["absolute","relative","fixed"].indexOf(ue.getComputedStyle(x).position)!==-1,Et=ot?x:x.offsetParent,Ye=Et.getBoundingClientRect(),Xe=K.body.getBoundingClientRect();ke=Ye.left-Xe.left-Et.scrollLeft,Re=Ye.top-Xe.top-Et.scrollTop}le.style.left=U-ke+"px",le.style.top=ie-Re+"px";var Be=ue.innerWidth||Math.max(K.body.offsetWidth,K.documentElement.offsetWidth),ge=ue.innerHeight||Math.max(K.body.offsetHeight,K.documentElement.offsetHeight);x.appendChild(le),B.getInputField().setAttribute("aria-autocomplete","list"),B.getInputField().setAttribute("aria-owns",this.id),B.getInputField().setAttribute("aria-activedescendant",this.id+"-"+this.selectedHint);var ve=_.options.moveOnOverlap?le.getBoundingClientRect():new DOMRect,Ie=_.options.paddingForScrollbar?le.scrollHeight>le.clientHeight+1:!1,De;setTimeout(function(){De=B.getScrollInfo()});var Ae=ve.bottom-ge;if(Ae>0){var Te=ve.bottom-ve.top,ht=w.top-(w.bottom-ve.top);if(ht-Te>0)le.style.top=(ie=w.top-Te-Re)+"px",ye=!1;else if(Te>ge){le.style.height=ge-5+"px",le.style.top=(ie=w.bottom-ve.top-Re)+"px";var qt=B.getCursor();D.from.ch!=qt.ch&&(w=B.cursorCoords(qt),le.style.left=(U=w.left-ke)+"px",ve=le.getBoundingClientRect())}}var nr=ve.right-Be;if(Ie&&(nr+=B.display.nativeBarWidth),nr>0&&(ve.right-ve.left>Be&&(le.style.width=Be-5+"px",nr-=ve.right-ve.left-Be),le.style.left=(U=w.left-nr-ke)+"px"),Ie)for(var _e=le.firstChild;_e;_e=_e.nextSibling)_e.style.paddingRight=B.display.nativeBarWidth+"px";if(B.addKeyMap(this.keyMap=M(_,{moveFocus:function(Qe,et){A.changeActive(A.selectedHint+Qe,et)},setFocus:function(Qe){A.changeActive(Qe)},menuSize:function(){return A.screenAmount()},length:Me.length,close:function(){_.close()},pick:function(){A.pick()},data:D})),_.options.closeOnUnfocus){var Ve;B.on("blur",this.onBlur=function(){Ve=setTimeout(function(){_.close()},100)}),B.on("focus",this.onFocus=function(){clearTimeout(Ve)})}B.on("scroll",this.onScroll=function(){var Qe=B.getScrollInfo(),et=B.getWrapperElement().getBoundingClientRect();De||(De=B.getScrollInfo());var Dr=ie+De.top-Qe.top,Ue=Dr-(ue.pageYOffset||(K.documentElement||K.body).scrollTop);if(ye||(Ue+=le.offsetHeight),Ue<=et.top||Ue>=et.bottom)return _.close();le.style.top=Dr+"px",le.style.left=U+De.left-Qe.left+"px"}),n.on(le,"dblclick",function(Qe){var et=L(le,Qe.target||Qe.srcElement);et&&et.hintId!=null&&(A.changeActive(et.hintId),A.pick())}),n.on(le,"click",function(Qe){var et=L(le,Qe.target||Qe.srcElement);et&&et.hintId!=null&&(A.changeActive(et.hintId),_.options.completeOnSingleClick&&A.pick())}),n.on(le,"mousedown",function(){setTimeout(function(){B.focus()},20)});var ct=this.getSelectedHintRange();return(ct.from!==0||ct.to!==0)&&this.scrollToActive(),n.signal(D,"select",Me[this.selectedHint],le.childNodes[this.selectedHint]),!0}T.prototype={close:function(){if(this.completion.widget==this){this.completion.widget=null,this.hints.parentNode&&this.hints.parentNode.removeChild(this.hints),this.completion.cm.removeKeyMap(this.keyMap);var _=this.completion.cm.getInputField();_.removeAttribute("aria-activedescendant"),_.removeAttribute("aria-owns");var D=this.completion.cm;this.completion.options.closeOnUnfocus&&(D.off("blur",this.onBlur),D.off("focus",this.onFocus)),D.off("scroll",this.onScroll)}},disable:function(){this.completion.cm.removeKeyMap(this.keyMap);var _=this;this.keyMap={Enter:function(){_.picked=!0}},this.completion.cm.addKeyMap(this.keyMap)},pick:function(){this.completion.pick(this.data,this.selectedHint)},changeActive:function(_,D){if(_>=this.data.list.length?_=D?this.data.list.length-1:0:_<0&&(_=D?0:this.data.list.length-1),this.selectedHint!=_){var A=this.hints.childNodes[this.selectedHint];A&&(A.className=A.className.replace(" "+l,""),A.removeAttribute("aria-selected")),A=this.hints.childNodes[this.selectedHint=_],A.className+=" "+l,A.setAttribute("aria-selected","true"),this.completion.cm.getInputField().setAttribute("aria-activedescendant",A.id),this.scrollToActive(),n.signal(this.data,"select",this.data.list[this.selectedHint],A)}},scrollToActive:function(){var _=this.getSelectedHintRange(),D=this.hints.childNodes[_.from],A=this.hints.childNodes[_.to],B=this.hints.firstChild;D.offsetTop<this.hints.scrollTop?this.hints.scrollTop=D.offsetTop-B.offsetTop:A.offsetTop+A.offsetHeight>this.hints.scrollTop+this.hints.clientHeight&&(this.hints.scrollTop=A.offsetTop+A.offsetHeight-this.hints.clientHeight+B.offsetTop)},screenAmount:function(){return Math.floor(this.hints.clientHeight/this.hints.firstChild.offsetHeight)||1},getSelectedHintRange:function(){var _=this.completion.options.scrollMargin||0;return{from:Math.max(0,this.selectedHint-_),to:Math.min(this.data.list.length-1,this.selectedHint+_)}}};function $(_,D){if(!_.somethingSelected())return D;for(var A=[],B=0;B<D.length;B++)D[B].supportsSelection&&A.push(D[B]);return A}function N(_,D,A,B){if(_.async)_(D,B,A);else{var K=_(D,A);K&&K.then?K.then(B):B(K)}}function Y(_,D){var A=_.getHelpers(D,"hint"),B;if(A.length){var K=function(ue,le,me){var Me=$(ue,A);function ne(X){if(X==Me.length)return le(null);N(Me[X],ue,me,function(V){V&&V.list.length>0?le(V):ne(X+1)})}ne(0)};return K.async=!0,K.supportsSelection=!0,K}else return(B=_.getHelper(_.getCursor(),"hintWords"))?function(ue){return n.hint.fromList(ue,{words:B})}:n.hint.anyword?function(ue,le){return n.hint.anyword(ue,le)}:function(){}}n.registerHelper("hint","auto",{resolve:Y}),n.registerHelper("hint","fromList",function(_,D){var A=_.getCursor(),B=_.getTokenAt(A),K,ue=n.Pos(A.line,B.start),le=A;B.start<A.ch&&/\w/.test(B.string.charAt(A.ch-B.start-1))?K=B.string.substr(0,A.ch-B.start):(K="",ue=A);for(var me=[],Me=0;Me<D.words.length;Me++){var ne=D.words[Me];ne.slice(0,K.length)==K&&me.push(ne)}if(me.length)return{list:me,from:ue,to:le}}),n.commands.autocomplete=n.showHint;var oe={hint:n.hint.auto,completeSingle:!0,alignWithWord:!0,closeCharacters:/[\s()\[\]{};:>,]/,closeOnPick:!0,closeOnUnfocus:!0,updateOnCursorActivity:!0,completeOnSingleClick:!0,container:null,customKeys:null,extraKeys:null,paddingForScrollbar:!0,moveOnOverlap:!0};n.defineOption("hintOptions",null)})})();(function(i,e){(function(n){n(Ir)})(function(n){var o=n.Pos;function l(_,D){for(var A=0,B=_.length;A<B;++A)D(_[A])}function d(_,D){if(!Array.prototype.indexOf){for(var A=_.length;A--;)if(_[A]===D)return!0;return!1}return _.indexOf(D)!=-1}function u(_,D,A,B){var K=_.getCursor(),ue=A(_,K);if(!/\b(?:string|comment)\b/.test(ue.type)){var le=n.innerMode(_.getMode(),ue.state);if(le.mode.helperType!=="json"){ue.state=le.state,/^[\w$_]*$/.test(ue.string)?ue.end>K.ch&&(ue.end=K.ch,ue.string=ue.string.slice(0,K.ch-ue.start)):ue={start:K.ch,end:K.ch,string:"",state:ue.state,type:ue.string=="."?"property":null};for(var me=ue;me.type=="property";){if(me=A(_,o(K.line,me.start)),me.string!=".")return;if(me=A(_,o(K.line,me.start)),!Me)var Me=[];Me.push(me)}return{list:oe(ue,Me,D,B),from:o(K.line,ue.start),to:o(K.line,ue.end)}}}}function v(_,D){return u(_,$,function(A,B){return A.getTokenAt(B)},D)}n.registerHelper("hint","javascript",v);function y(_,D){var A=_.getTokenAt(D);return D.ch==A.start+1&&A.string.charAt(0)=="."?(A.end=A.start,A.string=".",A.type="property"):/^\.[\w$_]*$/.test(A.string)&&(A.type="property",A.start++,A.string=A.string.replace(/\./,"")),A}function b(_,D){return u(_,N,y,D)}n.registerHelper("hint","coffeescript",b);var M="charAt charCodeAt indexOf lastIndexOf substring substr slice trim trimLeft trimRight toUpperCase toLowerCase split concat match replace search".split(" "),L="length concat join splice push pop shift unshift slice reverse sort indexOf lastIndexOf every some filter forEach map reduce reduceRight ".split(" "),T="prototype apply call bind".split(" "),$="break case catch class const continue debugger default delete do else export extends false finally for function if in import instanceof new null return super switch this throw true try typeof var void while with yield".split(" "),N="and break catch class continue delete do else extends false finally for if in instanceof isnt new no not null of off on or return switch then throw true try typeof until void while with yes".split(" ");function Y(_,D){if(!Object.getOwnPropertyNames||!Object.getPrototypeOf)for(var A in _)D(A);else for(var B=_;B;B=Object.getPrototypeOf(B))Object.getOwnPropertyNames(B).forEach(D)}function oe(_,D,A,B){var K=[],ue=_.string,le=B&&B.globalScope||window;function me(w){w.lastIndexOf(ue,0)==0&&!d(K,w)&&K.push(w)}function Me(w){typeof w=="string"?l(M,me):w instanceof Array?l(L,me):w instanceof Function&&l(T,me),Y(w,me)}if(D&&D.length){var ne=D.pop(),X;for(ne.type&&ne.type.indexOf("variable")===0?(B&&B.additionalContext&&(X=B.additionalContext[ne.string]),(!B||B.useGlobalScope!==!1)&&(X=X||le[ne.string])):ne.type=="string"?X="":ne.type=="atom"?X=1:ne.type=="function"&&(le.jQuery!=null&&(ne.string=="$"||ne.string=="jQuery")&&typeof le.jQuery=="function"?X=le.jQuery():le._!=null&&ne.string=="_"&&typeof le._=="function"&&(X=le._()));X!=null&&D.length;)X=X[D.pop().string];X!=null&&Me(X)}else{for(var V=_.state.localVars;V;V=V.next)me(V.name);for(var O=_.state.context;O;O=O.prev)for(var V=O.vars;V;V=V.next)me(V.name);for(var V=_.state.globalVars;V;V=V.next)me(V.name);if(B&&B.additionalContext!=null)for(var x in B.additionalContext)me(x);(!B||B.useGlobalScope!==!1)&&Me(le),l(A,me)}return K}})})();var _L=Object.defineProperty,IL=Object.getOwnPropertyDescriptor,Vn=(i,e,n,o)=>{for(var l=o>1?void 0:o?IL(e,n):e,d=i.length-1,u;d>=0;d--)(u=i[d])&&(l=(o?u(e,n,l):u(l))||l);return o&&l&&_L(e,n,l),l};Nn.defineMode("nunjucks",(i,e)=>Nn.overlayMode(Nn.getMode(i,e.backdrop||"text/html"),Nn.getMode(i,"jinja2")));const Up=ce("input-code"),AL=["json","nunjucks","javascript","solr"],tf={json:{name:"javascript",json:!0},javascript:"javascript",nunjucks:"nunjucks",solr:"solr"};exports.InputCode=class extends rr{constructor(){super(...arguments),this.mode="nunjucks",this.size="x-large",this.height=10,this.hideLineNumbers=!1,this.autocompleteList=[],this.singleLine=!1,this.boundHandleEditorMouseDown=this.handleEditorMouseDown.bind(this),this.changeHandler=e=>{this.value=e.getValue(),this.dispatchChange()}}atSignHint(e,n){const o=e.getCursor(),l=e.getLine(o.line),d=e.getTokenAt(o),u=n.fromAtTrigger||!1,v=n.fromGeneralTyping||!1;let y,b="";if(u){let T=-1;for(let $=o.ch-1;$>=0;$--)if(l.charAt($)==="@"){T=$;break}if(T===-1&&d.string.startsWith("@")&&d.start<o.ch&&(T=d.start),T!==-1)y=Nn.Pos(o.line,T),b=l.substring(T+1,o.ch);else return null}else if(v){let T=o.ch;for(;T>0&&l.charAt(T-1).match(/[\w.]/);)T--;if(b=l.substring(T,o.ch),y=Nn.Pos(o.line,T),b.length===0||b==="."&&(T===0||!l.charAt(T-1).match(/\w/)))return null}else return null;const L=(n.words||this.autocompleteList||[]).filter(T=>T.toLowerCase().startsWith(b.toLowerCase())).map(T=>({text:T,displayText:T}));return L.length>0?{list:L,from:y,to:Nn.Pos(o.line,o.ch)}:null}get editorValue(){var e;return((e=this.editor)==null?void 0:e.getDoc().getValue())||""}set editorValue(e){this.editor&&this.editor.getValue()!==e&&this.editor.setValue(e)}updated(e){super.updated(e);const n=this.disabled||this.readonly;if(this.value!==this.editorValue&&(this.editorValue=this.value||""),this.editor&&n!==this.editor.isReadOnly()&&this.editor.setOption("readOnly",this.disabled?"nocursor":this.readonly),e.get("mode")&&this.editor&&(this.editor.setOption("mode",tf[this.mode]),this.editor.refresh()),e.has("autocompleteList")&&this.editor){const o={hint:this.atSignHint.bind(this),words:this.autocompleteList,container:document.body,completeSingle:!1,fromAtTrigger:!1,fromGeneralTyping:!1};this.editor.setOption("hintOptions",o)}this.editor&&(e.has("height")||e.has("hideLineNumbers"))&&(this.updateEditorSize(),this.editor.refresh()),e.has("singleLine")&&this.editor&&(this.editor.setOption("lineNumbers",!this.hideLineNumbers&&!this.singleLine),this.updateEditorSize(),this.editor.refresh())}updateEditorSize(){if(this.editor){const e=this.singleLine?"36px":`${24*this.height}px`;this.editor.setSize("100%",e)}}handleEditorMouseDown(){this.editor&&!this.editor.hasFocus()&&this.editor.focus()}firstUpdated(){var n;const e=(n=this.shadowRoot)==null?void 0:n.querySelector(".editor");if(e&&this.shadowRoot){this.editor=Nn.fromTextArea(e,{mode:tf[this.mode],lineNumbers:!this.hideLineNumbers&&!this.singleLine,readOnly:this.disabled?"nocursor":this.readonly,smartIndent:!0,theme:"skedulo"}),this.value!==void 0&&(this.editorValue=this.value);const o={hint:this.atSignHint.bind(this),words:this.autocompleteList,container:document.body,completeSingle:!1};this.editor.setOption("hintOptions",o),this.updateEditorSize(),this.editor.on("change",this.changeHandler),this.editor.getWrapperElement().addEventListener("mousedown",this.boundHandleEditorMouseDown),this.editor.on("beforeChange",(u,v)=>{this.singleLine&&v.text.some(y=>/\n/.test(y))&&v.cancel()});const d={Tab:u=>{const v=Array((u.getOption("indentUnit")||0)+1).join(" ");u.replaceSelection(v)}};this.singleLine&&(d.Enter=()=>{}),this.editor.setOption("extraKeys",d),this.editor.on("inputRead",(u,v)=>{if(u.state.completionActive)return;const y=v.text&&v.text[0],b=u.getCursor(),M=u.getLine(b.line);let L=!1;const T={hint:this.atSignHint.bind(this),words:this.autocompleteList,container:document.body,completeSingle:!1,fromAtTrigger:!1,fromGeneralTyping:!1};if(y==="@")T.fromAtTrigger=!0,L=!0;else if(y&&y.match(/[\w.]/)&&this.autocompleteList.length>0){if(y==="."&&(b.ch<=1||!M.charAt(b.ch-2).match(/\w/)))return;let $=b.ch;for(;$>0&&M.charAt($-1).match(/[\w.]/);)$--;const N=M.substring($,b.ch);if(N&&N.length>=1){if(N==="."&&($===0||!M.charAt($-1).match(/\w/)))return;this.autocompleteList.some(oe=>oe.toLowerCase().startsWith(N.toLowerCase()))&&(T.fromGeneralTyping=!0,L=!0)}}if(L){u.setOption("hintOptions",T);const $=T.fromAtTrigger?50:0;setTimeout(()=>{u.hasFocus()&&u.execCommand("autocomplete")},$)}}),setTimeout(()=>{var u;return(u=this.editor)==null?void 0:u.refresh()},0)}}disconnectedCallback(){if(super.disconnectedCallback(),this.editor){const e=this.editor.getWrapperElement();e.removeEventListener("mousedown",this.boundHandleEditorMouseDown),this.editor.off("change",this.changeHandler),e&&e.remove&&e.remove(),this.editor=void 0}}renderInput(){return R`
3083
+ `;(function(n,e){(function(i){i(Ir)})(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,y){return o.indent(u.base,v,y)},electricChars:o.electricChars,innerMode:function(u){return{state:u.base,mode:o}},blankLine:function(u){var v,y;return o.blankLine&&(v=o.blankLine(u.base)),l.blankLine&&(y=l.blankLine(u.overlay)),y==null?v:d&&v!=null?v+" "+y:y}}}})})();(function(n,e){(function(i){i(Ir)})(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 y(b,M){var L=b.peek();if(M.incomment)return b.skipTo("#}")?(b.eatWhile(/\#|}/),M.incomment=!1):b.skipToEnd(),"comment";if(M.intag){if(M.operator){if(M.operator=!1,b.match(u))return"atom";if(b.match(v))return"number"}if(M.sign){if(M.sign=!1,b.match(u))return"atom";if(b.match(v))return"number"}if(M.instring)return L==M.instring&&(M.instring=!1),b.next(),"string";if(L=="'"||L=='"')return M.instring=L,b.next(),"string";if(b.match(M.intag+"}")||b.eat("-")&&b.match(M.intag+"}"))return M.intag=!1,"tag";if(b.match(l))return M.operator=!0,"operator";if(b.match(d))M.sign=!0;else if(b.eat(" ")||b.sol()){if(b.match(o))return"keyword";if(b.match(u))return"atom";if(b.match(v))return"number";b.sol()&&b.next()}else b.next();return"variable"}else if(b.eat("{")){if(b.eat("#"))return M.incomment=!0,b.skipTo("#}")?(b.eatWhile(/\#|}/),M.incomment=!1):b.skipToEnd(),"comment";if(L=b.eat(/\{|%/))return M.intag=L,L=="{"&&(M.intag="}"),b.eat("-"),"tag"}b.next()}return{startState:function(){return{tokenize:y}},token:function(b,M){return M.tokenize(b,M)},blockCommentStart:"{#",blockCommentEnd:"#}"}}),i.defineMIME("text/jinja2","jinja2")})})();var TL={exports:{}};(function(n,e){(function(i){i(Ir)})(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,y={},b=u.htmlMode?o:l;for(var M in b)y[M]=b[M];for(var M in u)y[M]=u[M];var L,T;function $(x,w){function U(ke){return w.tokenize=ke,ke(x,w)}var ne=x.next();if(ne=="<")return x.eat("!")?x.eat("[")?x.match("CDATA[")?U(oe("atom","]]>")):null:x.match("--")?U(oe("comment","-->")):x.match("DOCTYPE",!0,!0)?(x.eatWhile(/[\w\._\-]/),U(_(1))):null:x.eat("?")?(x.eatWhile(/[\w\._\-]/),w.tokenize=oe("meta","?>"),"meta"):(L=x.eat("/")?"closeTag":"openTag",w.tokenize=N,"tag bracket");if(ne=="&"){var ye;return x.eat("#")?x.eat("x")?ye=x.eatWhile(/[a-fA-F\d]/)&&x.eat(";"):ye=x.eatWhile(/[\d]/)&&x.eat(";"):ye=x.eatWhile(/[\w\.\-:]/)&&x.eat(";"),ye?"atom":"error"}else return x.eatWhile(/[^&<]/),null}$.isInText=!0;function N(x,w){var U=x.next();if(U==">"||U=="/"&&x.eat(">"))return w.tokenize=$,L=U==">"?"endTag":"selfcloseTag","tag bracket";if(U=="=")return L="equals",null;if(U=="<"){w.tokenize=$,w.state=K,w.tagName=w.tagStart=null;var ne=w.tokenize(x,w);return ne?ne+" tag error":"tag error"}else return/[\'\"]/.test(U)?(w.tokenize=Y(U),w.stringStartCol=x.column(),w.tokenize(x,w)):(x.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function Y(x){var w=function(U,ne){for(;!U.eol();)if(U.next()==x){ne.tokenize=N;break}return"string"};return w.isInAttribute=!0,w}function oe(x,w){return function(U,ne){for(;!U.eol();){if(U.match(w)){ne.tokenize=$;break}U.next()}return x}}function _(x){return function(w,U){for(var ne;(ne=w.next())!=null;){if(ne=="<")return U.tokenize=_(x+1),U.tokenize(w,U);if(ne==">")if(x==1){U.tokenize=$;break}else return U.tokenize=_(x-1),U.tokenize(w,U)}return"meta"}}function D(x,w,U){this.prev=x.context,this.tagName=w||"",this.indent=x.indented,this.startOfLine=U,(y.doNotIndent.hasOwnProperty(w)||x.context&&x.context.noIndent)&&(this.noIndent=!0)}function A(x){x.context&&(x.context=x.context.prev)}function B(x,w){for(var U;;){if(!x.context||(U=x.context.tagName,!y.contextGrabbers.hasOwnProperty(U)||!y.contextGrabbers[U].hasOwnProperty(w)))return;A(x)}}function K(x,w,U){return x=="openTag"?(U.tagStart=w.column(),ue):x=="closeTag"?le:K}function ue(x,w,U){return x=="word"?(U.tagName=w.current(),T="tag",ie):y.allowMissingTagName&&x=="endTag"?(T="tag bracket",ie(x,w,U)):(T="error",ue)}function le(x,w,U){if(x=="word"){var ne=w.current();return U.context&&U.context.tagName!=ne&&y.implicitlyClosed.hasOwnProperty(U.context.tagName)&&A(U),U.context&&U.context.tagName==ne||y.matchClosing===!1?(T="tag",me):(T="tag error",Me)}else return y.allowMissingTagName&&x=="endTag"?(T="tag bracket",me(x,w,U)):(T="error",Me)}function me(x,w,U){return x!="endTag"?(T="error",me):(A(U),K)}function Me(x,w,U){return T="error",me(x,w,U)}function ie(x,w,U){if(x=="word")return T="attribute",X;if(x=="endTag"||x=="selfcloseTag"){var ne=U.tagName,ye=U.tagStart;return U.tagName=U.tagStart=null,x=="selfcloseTag"||y.autoSelfClosers.hasOwnProperty(ne)?B(U,ne):(B(U,ne),U.context=new D(U,ne,ye==U.indented)),K}return T="error",ie}function X(x,w,U){return x=="equals"?V:(y.allowMissing||(T="error"),ie(x,w,U))}function V(x,w,U){return x=="string"?O:x=="word"&&y.allowUnquoted?(T="string",ie):(T="error",ie(x,w,U))}function O(x,w,U){return x=="string"?O:ie(x,w,U)}return{startState:function(x){var w={tokenize:$,state:K,indented:x||0,tagName:null,tagStart:null,context:null};return x!=null&&(w.baseIndent=x),w},token:function(x,w){if(!w.tagName&&x.sol()&&(w.indented=x.indentation()),x.eatSpace())return null;L=null;var U=w.tokenize(x,w);return(U||L)&&U!="comment"&&(T=null,w.state=w.state(L||U,x,w),T&&(U=T=="error"?U+" error":T)),U},indent:function(x,w,U){var ne=x.context;if(x.tokenize.isInAttribute)return x.tagStart==x.indented?x.stringStartCol+1:x.indented+v;if(ne&&ne.noIndent)return i.Pass;if(x.tokenize!=N&&x.tokenize!=$)return U?U.match(/^(\s*)/)[0].length:0;if(x.tagName)return y.multilineTagIndentPastTag!==!1?x.tagStart+x.tagName.length+2:x.tagStart+v*(y.multilineTagIndentFactor||1);if(y.alignCDATA&&/<!\[CDATA\[/.test(w))return 0;var ye=w&&/^<(\/)?([\w_:\.-]*)/.exec(w);if(ye&&ye[1])for(;ne;)if(ne.tagName==ye[2]){ne=ne.prev;break}else if(y.implicitlyClosed.hasOwnProperty(ne.tagName))ne=ne.prev;else break;else if(ye)for(;ne;){var ke=y.contextGrabbers[ne.tagName];if(ke&&ke.hasOwnProperty(ye[2]))ne=ne.prev;else break}for(;ne&&ne.prev&&!ne.startOfLine;)ne=ne.prev;return ne?ne.indent+v:x.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:y.htmlMode?"html":"xml",helperType:y.htmlMode?"html":"xml",skipAttribute:function(x){x.state==V&&(x.state=ie)},xmlCurrentTag:function(x){return x.tagName?{name:x.tagName,close:x.type=="closeTag"}:null},xmlCurrentContext:function(x){for(var w=[],U=x.context;U;U=U.prev)w.push(U.tagName);return w.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 kL=TL.exports,OL={exports:{}};(function(n,e){(function(i){i(Ir)})(function(i){i.defineMode("javascript",function(o,l){var d=o.indentUnit,u=l.statementIndent,v=l.jsonld,y=l.json||v,b=l.trackScope!==!1,M=l.typescript,L=l.wordCharacters||/[\w$\xa1-\uffff]/,T=function(){function C(It){return{type:It,style:"keyword"}}var k=C("keyword a"),G=C("keyword b"),ee=C("keyword c"),$e=C("keyword d"),Fe=C("operator"),de={type:"atom",style:"atom"};return{if:C("if"),while:k,with:k,else:G,do:G,try:G,finally:G,return:$e,break:$e,continue:$e,new:C("new"),delete:ee,void:ee,throw:ee,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:Fe,typeof:Fe,instanceof:Fe,true:de,false:de,null:de,undefined:de,NaN:de,Infinity:de,this:C("this"),class:C("class"),super:C("atom"),yield:ee,export:C("export"),import:C("import"),extends:ee,await:ee}}(),$=/[+\-*&%=<>!?|~^@]/,N=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function Y(C){for(var k=!1,G,ee=!1;(G=C.next())!=null;){if(!k){if(G=="/"&&!ee)return;G=="["?ee=!0:ee&&G=="]"&&(ee=!1)}k=!k&&G=="\\"}}var oe,_;function D(C,k,G){return oe=C,_=G,k}function A(C,k){var G=C.next();if(G=='"'||G=="'")return k.tokenize=B(G),k.tokenize(C,k);if(G=="."&&C.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return D("number","number");if(G=="."&&C.match(".."))return D("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(G))return D(G);if(G=="="&&C.eat(">"))return D("=>","operator");if(G=="0"&&C.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return D("number","number");if(/\d/.test(G))return C.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),D("number","number");if(G=="/")return C.eat("*")?(k.tokenize=K,K(C,k)):C.eat("/")?(C.skipToEnd(),D("comment","comment")):J(C,k,1)?(Y(C),C.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),D("regexp","string-2")):(C.eat("="),D("operator","operator",C.current()));if(G=="`")return k.tokenize=ue,ue(C,k);if(G=="#"&&C.peek()=="!")return C.skipToEnd(),D("meta","meta");if(G=="#"&&C.eatWhile(L))return D("variable","property");if(G=="<"&&C.match("!--")||G=="-"&&C.match("->")&&!/\S/.test(C.string.slice(0,C.start)))return C.skipToEnd(),D("comment","comment");if($.test(G))return(G!=">"||!k.lexical||k.lexical.type!=">")&&(C.eat("=")?(G=="!"||G=="=")&&C.eat("="):/[<>*+\-|&?]/.test(G)&&(C.eat(G),G==">"&&C.eat(G))),G=="?"&&C.eat(".")?D("."):D("operator","operator",C.current());if(L.test(G)){C.eatWhile(L);var ee=C.current();if(k.lastType!="."){if(T.propertyIsEnumerable(ee)){var $e=T[ee];return D($e.type,$e.style,ee)}if(ee=="async"&&C.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return D("async","keyword",ee)}return D("variable","variable",ee)}}function B(C){return function(k,G){var ee=!1,$e;if(v&&k.peek()=="@"&&k.match(N))return G.tokenize=A,D("jsonld-keyword","meta");for(;($e=k.next())!=null&&!($e==C&&!ee);)ee=!ee&&$e=="\\";return ee||(G.tokenize=A),D("string","string")}}function K(C,k){for(var G=!1,ee;ee=C.next();){if(ee=="/"&&G){k.tokenize=A;break}G=ee=="*"}return D("comment","comment")}function ue(C,k){for(var G=!1,ee;(ee=C.next())!=null;){if(!G&&(ee=="`"||ee=="$"&&C.eat("{"))){k.tokenize=A;break}G=!G&&ee=="\\"}return D("quasi","string-2",C.current())}var le="([{}])";function me(C,k){k.fatArrowAt&&(k.fatArrowAt=null);var G=C.string.indexOf("=>",C.start);if(!(G<0)){if(M){var ee=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(C.string.slice(C.start,G));ee&&(G=ee.index)}for(var $e=0,Fe=!1,de=G-1;de>=0;--de){var It=C.string.charAt(de),lr=le.indexOf(It);if(lr>=0&&lr<3){if(!$e){++de;break}if(--$e==0){It=="("&&(Fe=!0);break}}else if(lr>=3&&lr<6)++$e;else if(L.test(It))Fe=!0;else if(/["'\/`]/.test(It))for(;;--de){if(de==0)return;var _n=C.string.charAt(de-1);if(_n==It&&C.string.charAt(de-2)!="\\"){de--;break}}else if(Fe&&!$e){++de;break}}Fe&&!$e&&(k.fatArrowAt=de)}}var Me={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function ie(C,k,G,ee,$e,Fe){this.indented=C,this.column=k,this.type=G,this.prev=$e,this.info=Fe,ee!=null&&(this.align=ee)}function X(C,k){if(!b)return!1;for(var G=C.localVars;G;G=G.next)if(G.name==k)return!0;for(var ee=C.context;ee;ee=ee.prev)for(var G=ee.vars;G;G=G.next)if(G.name==k)return!0}function V(C,k,G,ee,$e){var Fe=C.cc;for(O.state=C,O.stream=$e,O.marked=null,O.cc=Fe,O.style=k,C.lexical.hasOwnProperty("align")||(C.lexical.align=!0);;){var de=Fe.length?Fe.pop():y?Te:De;if(de(G,ee)){for(;Fe.length&&Fe[Fe.length-1].lex;)Fe.pop()();return O.marked?O.marked:G=="variable"&&X(C,ee)?"variable-2":k}}}var O={state:null,column:null,marked:null,cc:null};function x(){for(var C=arguments.length-1;C>=0;C--)O.cc.push(arguments[C])}function w(){return x.apply(null,arguments),!0}function U(C,k){for(var G=k;G;G=G.next)if(G.name==C)return!0;return!1}function ne(C){var k=O.state;if(O.marked="def",!!b){if(k.context){if(k.lexical.info=="var"&&k.context&&k.context.block){var G=ye(C,k.context);if(G!=null){k.context=G;return}}else if(!U(C,k.localVars)){k.localVars=new ot(C,k.localVars);return}}l.globalVars&&!U(C,k.globalVars)&&(k.globalVars=new ot(C,k.globalVars))}}function ye(C,k){if(k)if(k.block){var G=ye(C,k.prev);return G?G==k.prev?k:new Re(G,k.vars,!0):null}else return U(C,k.vars)?k:new Re(k.prev,new ot(C,k.vars),!1);else return null}function ke(C){return C=="public"||C=="private"||C=="protected"||C=="abstract"||C=="readonly"}function Re(C,k,G){this.prev=C,this.vars=k,this.block=G}function ot(C,k){this.name=C,this.next=k}var Et=new ot("this",new ot("arguments",null));function Ye(){O.state.context=new Re(O.state.context,O.state.localVars,!1),O.state.localVars=Et}function Xe(){O.state.context=new Re(O.state.context,O.state.localVars,!0),O.state.localVars=null}function Be(){O.state.localVars=O.state.context.vars,O.state.context=O.state.context.prev}Be.lex=!0;function ge(C,k){var G=function(){var ee=O.state,$e=ee.indented;if(ee.lexical.type=="stat")$e=ee.lexical.indented;else for(var Fe=ee.lexical;Fe&&Fe.type==")"&&Fe.align;Fe=Fe.prev)$e=Fe.indented;ee.lexical=new ie($e,O.stream.column(),C,null,ee.lexical,k)};return G.lex=!0,G}function ve(){var C=O.state;C.lexical.prev&&(C.lexical.type==")"&&(C.indented=C.lexical.indented),C.lexical=C.lexical.prev)}ve.lex=!0;function Ie(C){function k(G){return G==C?w():C==";"||G=="}"||G==")"||G=="]"?x():w(k)}return k}function De(C,k){return C=="var"?w(ge("vardef",k),So,Ie(";"),ve):C=="keyword a"?w(ge("form"),qt,De,ve):C=="keyword b"?w(ge("form"),De,ve):C=="keyword d"?O.stream.match(/^\s*$/,!1)?w():w(ge("stat"),_e,Ie(";"),ve):C=="debugger"?w(Ie(";")):C=="{"?w(ge("}"),Xe,Kt,ve,Be):C==";"?w():C=="if"?(O.state.lexical.info=="else"&&O.state.cc[O.state.cc.length-1]==ve&&O.state.cc.pop()(),w(ge("form"),qt,De,ve,qs)):C=="function"?w(fr):C=="for"?w(ge("form"),Xe,Ks,De,Be,ve):C=="class"||M&&k=="interface"?(O.marked="keyword",w(ge("form",C=="class"?C:k),En,ve)):C=="variable"?M&&k=="declare"?(O.marked="keyword",w(De)):M&&(k=="module"||k=="enum"||k=="type")&&O.stream.match(/^\s*\w/,!1)?(O.marked="keyword",k=="enum"?w(Br):k=="type"?w(Ys,Ie("operator"),Oe,Ie(";")):w(ge("form"),Bt,Ie("{"),ge("}"),Kt,ve,ve)):M&&k=="namespace"?(O.marked="keyword",w(ge("form"),Te,De,ve)):M&&k=="abstract"?(O.marked="keyword",w(De)):w(ge("stat"),Ne):C=="switch"?w(ge("form"),qt,Ie("{"),ge("}","switch"),Xe,Kt,ve,ve,Be):C=="case"?w(Te,Ie(":")):C=="default"?w(Ie(":")):C=="catch"?w(ge("form"),Ye,Ae,De,ve,Be):C=="export"?w(ge("stat"),Oo,ve):C=="import"?w(ge("stat"),at,ve):C=="async"?w(De):k=="@"?w(Te,De):x(ge("stat"),Te,Ie(";"),ve)}function Ae(C){if(C=="(")return w(ri,Ie(")"))}function Te(C,k){return ir(C,k,!1)}function ht(C,k){return ir(C,k,!0)}function qt(C){return C!="("?x():w(ge(")"),_e,Ie(")"),ve)}function ir(C,k,G){if(O.state.fatArrowAt==O.stream.start){var ee=G?Ue:Dr;if(C=="(")return w(Ye,ge(")"),st(ri,")"),ve,Ie("=>"),ee,Be);if(C=="variable")return x(Ye,Bt,Ie("=>"),ee,Be)}var $e=G?ct:Ve;return Me.hasOwnProperty(C)?w($e):C=="function"?w(fr,$e):C=="class"||M&&k=="interface"?(O.marked="keyword",w(ge("form"),$n,ve)):C=="keyword c"||C=="async"?w(G?ht:Te):C=="("?w(ge(")"),_e,Ie(")"),ve,$e):C=="operator"||C=="spread"?w(G?ht:Te):C=="["?w(ge("]"),je,ve,$e):C=="{"?Zi(Nr,"}",null,$e):C=="quasi"?x(Qe,$e):C=="new"?w(H(G)):w()}function _e(C){return C.match(/[;\}\)\],]/)?x():x(Te)}function Ve(C,k){return C==","?w(_e):ct(C,k,!1)}function ct(C,k,G){var ee=G==!1?Ve:ct,$e=G==!1?Te:ht;if(C=="=>")return w(Ye,G?Ue:Dr,Be);if(C=="operator")return/\+\+|--/.test(k)||M&&k=="!"?w(ee):M&&k=="<"&&O.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?w(ge(">"),st(Oe,">"),ve,ee):k=="?"?w(Te,Ie(":"),$e):w($e);if(C=="quasi")return x(Qe,ee);if(C!=";"){if(C=="(")return Zi(ht,")","call",ee);if(C==".")return w(Dt,ee);if(C=="[")return w(ge("]"),_e,Ie("]"),ve,ee);if(M&&k=="as")return O.marked="keyword",w(Oe,ee);if(C=="regexp")return O.state.lastType=O.marked="operator",O.stream.backUp(O.stream.pos-O.stream.start-1),w($e)}}function Qe(C,k){return C!="quasi"?x():k.slice(k.length-2)!="${"?w(Qe):w(_e,et)}function et(C){if(C=="}")return O.marked="string-2",O.state.tokenize=ue,w(Qe)}function Dr(C){return me(O.stream,O.state),x(C=="{"?De:Te)}function Ue(C){return me(O.stream,O.state),x(C=="{"?De:ht)}function H(C){return function(k){return k=="."?w(C?j:re):k=="variable"&&M?w(Wi,C?ct:Ve):x(C?ht:Te)}}function re(C,k){if(k=="target")return O.marked="keyword",w(Ve)}function j(C,k){if(k=="target")return O.marked="keyword",w(ct)}function Ne(C){return C==":"?w(ve,De):x(Ve,Ie(";"),ve)}function Dt(C){if(C=="variable")return O.marked="property",w()}function Nr(C,k){if(C=="async")return O.marked="property",w(Nr);if(C=="variable"||O.style=="keyword"){if(O.marked="property",k=="get"||k=="set")return w(Ql);var G;return M&&O.state.fatArrowAt==O.stream.start&&(G=O.stream.match(/^\s*:\s*/,!1))&&(O.state.fatArrowAt=O.stream.pos+G[0].length),w(nr)}else{if(C=="number"||C=="string")return O.marked=v?"property":O.style+" property",w(nr);if(C=="jsonld-keyword")return w(nr);if(M&&ke(k))return O.marked="keyword",w(Nr);if(C=="[")return w(Te,ti,Ie("]"),nr);if(C=="spread")return w(ht,nr);if(k=="*")return O.marked="keyword",w(Nr);if(C==":")return x(nr)}}function Ql(C){return C!="variable"?x(nr):(O.marked="property",w(fr))}function nr(C){if(C==":")return w(ht);if(C=="(")return x(fr)}function st(C,k,G){function ee($e,Fe){if(G?G.indexOf($e)>-1:$e==","){var de=O.state.lexical;return de.info=="call"&&(de.pos=(de.pos||0)+1),w(function(It,lr){return It==k||lr==k?x():x(C)},ee)}return $e==k||Fe==k?w():G&&G.indexOf(";")>-1?x(C):w(Ie(k))}return function($e,Fe){return $e==k||Fe==k?w():x(C,ee)}}function Zi(C,k,G){for(var ee=3;ee<arguments.length;ee++)O.cc.push(arguments[ee]);return w(ge(k,G),st(C,k),ve)}function Kt(C){return C=="}"?w():x(De,Kt)}function ti(C,k){if(M){if(C==":")return w(Oe);if(k=="?")return w(ti)}}function Se(C,k){if(M&&(C==":"||k=="in"))return w(Oe)}function Tn(C){if(M&&C==":")return O.stream.match(/^\s*\w+\s+is\b/,!1)?w(Te,Ft,Oe):w(Oe)}function Ft(C,k){if(k=="is")return O.marked="keyword",w()}function Oe(C,k){if(k=="keyof"||k=="typeof"||k=="infer"||k=="readonly")return O.marked="keyword",w(k=="typeof"?ht:Oe);if(C=="variable"||k=="void")return O.marked="type",w(or);if(k=="|"||k=="&")return w(Oe);if(C=="string"||C=="number"||C=="atom")return w(or);if(C=="[")return w(ge("]"),st(Oe,"]",","),ve,or);if(C=="{")return w(ge("}"),kn,ve,or);if(C=="(")return w(st(On,")"),ft,or);if(C=="<")return w(st(Oe,">"),Oe);if(C=="quasi")return x(Hr,or)}function ft(C){if(C=="=>")return w(Oe)}function kn(C){return C.match(/[\}\)\]]/)?w():C==","||C==";"?w(kn):x(Tt,kn)}function Tt(C,k){if(C=="variable"||O.style=="keyword")return O.marked="property",w(Tt);if(k=="?"||C=="number"||C=="string")return w(Tt);if(C==":")return w(Oe);if(C=="[")return w(Ie("variable"),Se,Ie("]"),Tt);if(C=="(")return x(sr,Tt);if(!C.match(/[;\}\)\],]/))return w()}function Hr(C,k){return C!="quasi"?x():k.slice(k.length-2)!="${"?w(Hr):w(Oe,_t)}function _t(C){if(C=="}")return O.marked="string-2",O.state.tokenize=ue,w(Hr)}function On(C,k){return C=="variable"&&O.stream.match(/^\s*[?:]/,!1)||k=="?"?w(On):C==":"?w(Oe):C=="spread"?w(On):x(Oe)}function or(C,k){if(k=="<")return w(ge(">"),st(Oe,">"),ve,or);if(k=="|"||C=="."||k=="&")return w(Oe);if(C=="[")return w(Oe,Ie("]"),or);if(k=="extends"||k=="implements")return O.marked="keyword",w(Oe);if(k=="?")return w(Oe,Ie(":"),Oe)}function Wi(C,k){if(k=="<")return w(ge(">"),st(Oe,">"),ve,or)}function Ci(){return x(Oe,js)}function js(C,k){if(k=="=")return w(Oe)}function So(C,k){return k=="enum"?(O.marked="keyword",w(Br)):x(Bt,ti,Rr,To)}function Bt(C,k){if(M&&ke(k))return O.marked="keyword",w(Bt);if(C=="variable")return ne(k),w();if(C=="spread")return w(Bt);if(C=="[")return Zi(Mo,"]");if(C=="{")return Zi(Gs,"}")}function Gs(C,k){return C=="variable"&&!O.stream.match(/^\s*:/,!1)?(ne(k),w(Rr)):(C=="variable"&&(O.marked="property"),C=="spread"?w(Bt):C=="}"?x():C=="["?w(Te,Ie("]"),Ie(":"),Gs):w(Ie(":"),Bt,Rr))}function Mo(){return x(Bt,Rr)}function Rr(C,k){if(k=="=")return w(ht)}function To(C){if(C==",")return w(So)}function qs(C,k){if(C=="keyword b"&&k=="else")return w(ge("form","else"),De,ve)}function Ks(C,k){if(k=="await")return w(Ks);if(C=="(")return w(ge(")"),ko,ve)}function ko(C){return C=="var"?w(So,wi):C=="variable"?w(wi):x(wi)}function wi(C,k){return C==")"?w():C==";"?w(wi):k=="in"||k=="of"?(O.marked="keyword",w(Te,wi)):x(Te,wi)}function fr(C,k){if(k=="*")return O.marked="keyword",w(fr);if(C=="variable")return ne(k),w(fr);if(C=="(")return w(Ye,ge(")"),st(ri,")"),ve,Tn,De,Be);if(M&&k=="<")return w(ge(">"),st(Ci,">"),ve,fr)}function sr(C,k){if(k=="*")return O.marked="keyword",w(sr);if(C=="variable")return ne(k),w(sr);if(C=="(")return w(Ye,ge(")"),st(ri,")"),ve,Tn,Be);if(M&&k=="<")return w(ge(">"),st(Ci,">"),ve,sr)}function Ys(C,k){if(C=="keyword"||C=="variable")return O.marked="type",w(Ys);if(k=="<")return w(ge(">"),st(Ci,">"),ve)}function ri(C,k){return k=="@"&&w(Te,ri),C=="spread"?w(ri):M&&ke(k)?(O.marked="keyword",w(ri)):M&&C=="this"?w(ti,Rr):x(Bt,ti,Rr)}function $n(C,k){return C=="variable"?En(C,k):yr(C,k)}function En(C,k){if(C=="variable")return ne(k),w(yr)}function yr(C,k){if(k=="<")return w(ge(">"),st(Ci,">"),ve,yr);if(k=="extends"||k=="implements"||M&&C==",")return k=="implements"&&(O.marked="keyword"),w(M?Oe:Te,yr);if(C=="{")return w(ge("}"),Cr,ve)}function Cr(C,k){if(C=="async"||C=="variable"&&(k=="static"||k=="get"||k=="set"||M&&ke(k))&&O.stream.match(/^\s+[\w$\xa1-\uffff]/,!1))return O.marked="keyword",w(Cr);if(C=="variable"||O.style=="keyword")return O.marked="property",w(ar,Cr);if(C=="number"||C=="string")return w(ar,Cr);if(C=="[")return w(Te,ti,Ie("]"),ar,Cr);if(k=="*")return O.marked="keyword",w(Cr);if(M&&C=="(")return x(sr,Cr);if(C==";"||C==",")return w(Cr);if(C=="}")return w();if(k=="@")return w(Te,Cr)}function ar(C,k){if(k=="!"||k=="?")return w(ar);if(C==":")return w(Oe,Rr);if(k=="=")return w(ht);var G=O.state.lexical.prev,ee=G&&G.info=="interface";return x(ee?sr:fr)}function Oo(C,k){return k=="*"?(O.marked="keyword",w(Yt,Ie(";"))):k=="default"?(O.marked="keyword",w(Te,Ie(";"))):C=="{"?w(st($o,"}"),Yt,Ie(";")):x(De)}function $o(C,k){if(k=="as")return O.marked="keyword",w(Ie("variable"));if(C=="variable")return x(ht,$o)}function at(C){return C=="string"?w():C=="("?x(Te):C=="."?x(Ve):x(be,Fr,Yt)}function be(C,k){return C=="{"?Zi(be,"}"):(C=="variable"&&ne(k),k=="*"&&(O.marked="keyword"),w(Eo))}function Fr(C){if(C==",")return w(be,Fr)}function Eo(C,k){if(k=="as")return O.marked="keyword",w(be)}function Yt(C,k){if(k=="from")return O.marked="keyword",w(Te)}function je(C){return C=="]"?w():x(st(ht,"]"))}function Br(){return x(ge("form"),Bt,Ie("{"),ge("}"),st(Ui,"}"),ve,ve)}function Ui(){return x(Bt,Rr)}function _o(C,k){return C.lastType=="operator"||C.lastType==","||$.test(k.charAt(0))||/[,.]/.test(k.charAt(0))}function J(C,k,G){return k.tokenize==A&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(k.lastType)||k.lastType=="quasi"&&/\{\s*$/.test(C.string.slice(0,C.pos-(G||0)))}return{startState:function(C){var k={tokenize:A,lastType:"sof",cc:[],lexical:new ie((C||0)-d,0,"block",!1),localVars:l.localVars,context:l.localVars&&new Re(null,null,!1),indented:C||0};return l.globalVars&&typeof l.globalVars=="object"&&(k.globalVars=l.globalVars),k},token:function(C,k){if(C.sol()&&(k.lexical.hasOwnProperty("align")||(k.lexical.align=!1),k.indented=C.indentation(),me(C,k)),k.tokenize!=K&&C.eatSpace())return null;var G=k.tokenize(C,k);return oe=="comment"?G:(k.lastType=oe=="operator"&&(_=="++"||_=="--")?"incdec":oe,V(k,G,oe,_,C))},indent:function(C,k){if(C.tokenize==K||C.tokenize==ue)return i.Pass;if(C.tokenize!=A)return 0;var G=k&&k.charAt(0),ee=C.lexical,$e;if(!/^\s*else\b/.test(k))for(var Fe=C.cc.length-1;Fe>=0;--Fe){var de=C.cc[Fe];if(de==ve)ee=ee.prev;else if(de!=qs&&de!=Be)break}for(;(ee.type=="stat"||ee.type=="form")&&(G=="}"||($e=C.cc[C.cc.length-1])&&($e==Ve||$e==ct)&&!/^[,\.=+\-*:?[\(]/.test(k));)ee=ee.prev;u&&ee.type==")"&&ee.prev.type=="stat"&&(ee=ee.prev);var It=ee.type,lr=G==It;return It=="vardef"?ee.indented+(C.lastType=="operator"||C.lastType==","?ee.info.length+1:0):It=="form"&&G=="{"?ee.indented:It=="form"?ee.indented+d:It=="stat"?ee.indented+(_o(C,k)?u||d:0):ee.info=="switch"&&!lr&&l.doubleIndentSwitch!=!1?ee.indented+(/^(?:case|default)\b/.test(k)?d:2*d):ee.align?ee.column+(lr?0:1):ee.indented+(lr?0:d)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:y?null:"/*",blockCommentEnd:y?null:"*/",blockCommentContinue:y?null:" * ",lineComment:y?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:y?"json":"javascript",jsonldMode:v,jsonMode:y,expressionAllowed:J,skipExpression:function(C){V(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 $L=OL.exports,Qh={exports:{}},ef;function EL(){return ef||(ef=1,function(n,e){(function(i){i(Ir)})(function(i){i.defineMode("css",function(ie,X){var V=X.inline;X.propertyKeywords||(X=i.resolveMode("text/css"));var O=ie.indentUnit,x=X.tokenHooks,w=X.documentTypes||{},U=X.mediaTypes||{},ne=X.mediaFeatures||{},ye=X.mediaValueKeywords||{},ke=X.propertyKeywords||{},Re=X.nonStandardPropertyKeywords||{},ot=X.fontProperties||{},Et=X.counterDescriptors||{},Ye=X.colorKeywords||{},Xe=X.valueKeywords||{},Be=X.allowNested,ge=X.lineComment,ve=X.supportsAtComponent===!0,Ie=ie.highlightNonStandardPropertyKeywords!==!1,De,Ae;function Te(H,re){return De=re,H}function ht(H,re){var j=H.next();if(x[j]){var Ne=x[j](H,re);if(Ne!==!1)return Ne}if(j=="@")return H.eatWhile(/[\w\\\-]/),Te("def",H.current());if(j=="="||(j=="~"||j=="|")&&H.eat("="))return Te(null,"compare");if(j=='"'||j=="'")return re.tokenize=qt(j),re.tokenize(H,re);if(j=="#")return H.eatWhile(/[\w\\\-]/),Te("atom","hash");if(j=="!")return H.match(/^\s*\w*/),Te("keyword","important");if(/\d/.test(j)||j=="."&&H.eat(/\d/))return H.eatWhile(/[\w.%]/),Te("number","unit");if(j==="-"){if(/[\d.]/.test(H.peek()))return H.eatWhile(/[\w.%]/),Te("number","unit");if(H.match(/^-[\w\\\-]*/))return H.eatWhile(/[\w\\\-]/),H.match(/^\s*:/,!1)?Te("variable-2","variable-definition"):Te("variable-2","variable");if(H.match(/^\w+-/))return Te("meta","meta")}else return/[,+>*\/]/.test(j)?Te(null,"select-op"):j=="."&&H.match(/^-?[_a-z][_a-z0-9-]*/i)?Te("qualifier","qualifier"):/[:;{}\[\]\(\)]/.test(j)?Te(null,j):H.match(/^[\w-.]+(?=\()/)?(/^(url(-prefix)?|domain|regexp)$/i.test(H.current())&&(re.tokenize=ir),Te("variable callee","variable")):/[\w\\\-]/.test(j)?(H.eatWhile(/[\w\\\-]/),Te("property","word")):Te(null,null)}function qt(H){return function(re,j){for(var Ne=!1,Dt;(Dt=re.next())!=null;){if(Dt==H&&!Ne){H==")"&&re.backUp(1);break}Ne=!Ne&&Dt=="\\"}return(Dt==H||!Ne&&H!=")")&&(j.tokenize=null),Te("string","string")}}function ir(H,re){return H.next(),H.match(/^\s*[\"\')]/,!1)?re.tokenize=null:re.tokenize=qt(")"),Te(null,"(")}function _e(H,re,j){this.type=H,this.indent=re,this.prev=j}function Ve(H,re,j,Ne){return H.context=new _e(j,re.indentation()+(Ne===!1?0:O),H.context),j}function ct(H){return H.context.prev&&(H.context=H.context.prev),H.context.type}function Qe(H,re,j){return Ue[j.context.type](H,re,j)}function et(H,re,j,Ne){for(var Dt=Ne||1;Dt>0;Dt--)j.context=j.context.prev;return Qe(H,re,j)}function Dr(H){var re=H.current().toLowerCase();Xe.hasOwnProperty(re)?Ae="atom":Ye.hasOwnProperty(re)?Ae="keyword":Ae="variable"}var Ue={};return Ue.top=function(H,re,j){if(H=="{")return Ve(j,re,"block");if(H=="}"&&j.context.prev)return ct(j);if(ve&&/@component/i.test(H))return Ve(j,re,"atComponentBlock");if(/^@(-moz-)?document$/i.test(H))return Ve(j,re,"documentTypes");if(/^@(media|supports|(-moz-)?document|import)$/i.test(H))return Ve(j,re,"atBlock");if(/^@(font-face|counter-style)/i.test(H))return j.stateArg=H,"restricted_atBlock_before";if(/^@(-(moz|ms|o|webkit)-)?keyframes$/i.test(H))return"keyframes";if(H&&H.charAt(0)=="@")return Ve(j,re,"at");if(H=="hash")Ae="builtin";else if(H=="word")Ae="tag";else{if(H=="variable-definition")return"maybeprop";if(H=="interpolation")return Ve(j,re,"interpolation");if(H==":")return"pseudo";if(Be&&H=="(")return Ve(j,re,"parens")}return j.context.type},Ue.block=function(H,re,j){if(H=="word"){var Ne=re.current().toLowerCase();return ke.hasOwnProperty(Ne)?(Ae="property","maybeprop"):Re.hasOwnProperty(Ne)?(Ae=Ie?"string-2":"property","maybeprop"):Be?(Ae=re.match(/^\s*:(?:\s|$)/,!1)?"property":"tag","block"):(Ae+=" error","maybeprop")}else return H=="meta"?"block":!Be&&(H=="hash"||H=="qualifier")?(Ae="error","block"):Ue.top(H,re,j)},Ue.maybeprop=function(H,re,j){return H==":"?Ve(j,re,"prop"):Qe(H,re,j)},Ue.prop=function(H,re,j){if(H==";")return ct(j);if(H=="{"&&Be)return Ve(j,re,"propBlock");if(H=="}"||H=="{")return et(H,re,j);if(H=="(")return Ve(j,re,"parens");if(H=="hash"&&!/^#([0-9a-fA-f]{3,4}|[0-9a-fA-f]{6}|[0-9a-fA-f]{8})$/.test(re.current()))Ae+=" error";else if(H=="word")Dr(re);else if(H=="interpolation")return Ve(j,re,"interpolation");return"prop"},Ue.propBlock=function(H,re,j){return H=="}"?ct(j):H=="word"?(Ae="property","maybeprop"):j.context.type},Ue.parens=function(H,re,j){return H=="{"||H=="}"?et(H,re,j):H==")"?ct(j):H=="("?Ve(j,re,"parens"):H=="interpolation"?Ve(j,re,"interpolation"):(H=="word"&&Dr(re),"parens")},Ue.pseudo=function(H,re,j){return H=="meta"?"pseudo":H=="word"?(Ae="variable-3",j.context.type):Qe(H,re,j)},Ue.documentTypes=function(H,re,j){return H=="word"&&w.hasOwnProperty(re.current())?(Ae="tag",j.context.type):Ue.atBlock(H,re,j)},Ue.atBlock=function(H,re,j){if(H=="(")return Ve(j,re,"atBlock_parens");if(H=="}"||H==";")return et(H,re,j);if(H=="{")return ct(j)&&Ve(j,re,Be?"block":"top");if(H=="interpolation")return Ve(j,re,"interpolation");if(H=="word"){var Ne=re.current().toLowerCase();Ne=="only"||Ne=="not"||Ne=="and"||Ne=="or"?Ae="keyword":U.hasOwnProperty(Ne)?Ae="attribute":ne.hasOwnProperty(Ne)?Ae="property":ye.hasOwnProperty(Ne)?Ae="keyword":ke.hasOwnProperty(Ne)?Ae="property":Re.hasOwnProperty(Ne)?Ae=Ie?"string-2":"property":Xe.hasOwnProperty(Ne)?Ae="atom":Ye.hasOwnProperty(Ne)?Ae="keyword":Ae="error"}return j.context.type},Ue.atComponentBlock=function(H,re,j){return H=="}"?et(H,re,j):H=="{"?ct(j)&&Ve(j,re,Be?"block":"top",!1):(H=="word"&&(Ae="error"),j.context.type)},Ue.atBlock_parens=function(H,re,j){return H==")"?ct(j):H=="{"||H=="}"?et(H,re,j,2):Ue.atBlock(H,re,j)},Ue.restricted_atBlock_before=function(H,re,j){return H=="{"?Ve(j,re,"restricted_atBlock"):H=="word"&&j.stateArg=="@counter-style"?(Ae="variable","restricted_atBlock_before"):Qe(H,re,j)},Ue.restricted_atBlock=function(H,re,j){return H=="}"?(j.stateArg=null,ct(j)):H=="word"?(j.stateArg=="@font-face"&&!ot.hasOwnProperty(re.current().toLowerCase())||j.stateArg=="@counter-style"&&!Et.hasOwnProperty(re.current().toLowerCase())?Ae="error":Ae="property","maybeprop"):"restricted_atBlock"},Ue.keyframes=function(H,re,j){return H=="word"?(Ae="variable","keyframes"):H=="{"?Ve(j,re,"top"):Qe(H,re,j)},Ue.at=function(H,re,j){return H==";"?ct(j):H=="{"||H=="}"?et(H,re,j):(H=="word"?Ae="tag":H=="hash"&&(Ae="builtin"),"at")},Ue.interpolation=function(H,re,j){return H=="}"?ct(j):H=="{"||H==";"?et(H,re,j):(H=="word"?Ae="variable":H!="variable"&&H!="("&&H!=")"&&(Ae="error"),"interpolation")},{startState:function(H){return{tokenize:null,state:V?"block":"top",stateArg:null,context:new _e(V?"block":"top",H||0,null)}},token:function(H,re){if(!re.tokenize&&H.eatSpace())return null;var j=(re.tokenize||ht)(H,re);return j&&typeof j=="object"&&(De=j[1],j=j[0]),Ae=j,De!="comment"&&(re.state=Ue[re.state](De,H,re)),Ae},indent:function(H,re){var j=H.context,Ne=re&&re.charAt(0),Dt=j.indent;return j.type=="prop"&&(Ne=="}"||Ne==")")&&(j=j.prev),j.prev&&(Ne=="}"&&(j.type=="block"||j.type=="top"||j.type=="interpolation"||j.type=="restricted_atBlock")?(j=j.prev,Dt=j.indent):(Ne==")"&&(j.type=="parens"||j.type=="atBlock_parens")||Ne=="{"&&(j.type=="at"||j.type=="atBlock"))&&(Dt=Math.max(0,j.indent-O))),Dt},electricChars:"}",blockCommentStart:"/*",blockCommentEnd:"*/",blockCommentContinue:" * ",lineComment:ge,fold:"brace"}});function o(ie){for(var X={},V=0;V<ie.length;++V)X[ie[V].toLowerCase()]=!0;return X}var l=["domain","regexp","url","url-prefix"],d=o(l),u=["all","aural","braille","handheld","print","projection","screen","tty","tv","embossed"],v=o(u),y=["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"],b=o(y),M=["landscape","portrait","none","coarse","fine","on-demand","hover","interlace","progressive","dark","light"],L=o(M),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"],$=o(T),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"],Y=o(N),oe=["font-display","font-family","src","unicode-range","font-variant","font-feature-settings","font-stretch","font-weight","font-style"],_=o(oe),D=["additive-symbols","fallback","negative","pad","prefix","range","speak-as","suffix","symbols","system"],A=o(D),B=["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"],K=o(B),ue=["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"],le=o(ue),me=l.concat(u).concat(y).concat(M).concat(T).concat(N).concat(B).concat(ue);i.registerHelper("hintWords","css",me);function Me(ie,X){for(var V=!1,O;(O=ie.next())!=null;){if(V&&O=="/"){X.tokenize=null;break}V=O=="*"}return["comment","comment"]}i.defineMIME("text/css",{documentTypes:d,mediaTypes:v,mediaFeatures:b,mediaValueKeywords:L,propertyKeywords:$,nonStandardPropertyKeywords:Y,fontProperties:_,counterDescriptors:A,colorKeywords:K,valueKeywords:le,tokenHooks:{"/":function(ie,X){return ie.eat("*")?(X.tokenize=Me,Me(ie,X)):!1}},name:"css"}),i.defineMIME("text/x-scss",{mediaTypes:v,mediaFeatures:b,mediaValueKeywords:L,propertyKeywords:$,nonStandardPropertyKeywords:Y,colorKeywords:K,valueKeywords:le,fontProperties:_,allowNested:!0,lineComment:"//",tokenHooks:{"/":function(ie,X){return ie.eat("/")?(ie.skipToEnd(),["comment","comment"]):ie.eat("*")?(X.tokenize=Me,Me(ie,X)):["operator","operator"]},":":function(ie){return ie.match(/^\s*\{/,!1)?[null,null]:!1},$:function(ie){return ie.match(/^[\w-]+/),ie.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2","variable"]},"#":function(ie){return ie.eat("{")?[null,"interpolation"]:!1}},name:"css",helperType:"scss"}),i.defineMIME("text/x-less",{mediaTypes:v,mediaFeatures:b,mediaValueKeywords:L,propertyKeywords:$,nonStandardPropertyKeywords:Y,colorKeywords:K,valueKeywords:le,fontProperties:_,allowNested:!0,lineComment:"//",tokenHooks:{"/":function(ie,X){return ie.eat("/")?(ie.skipToEnd(),["comment","comment"]):ie.eat("*")?(X.tokenize=Me,Me(ie,X)):["operator","operator"]},"@":function(ie){return ie.eat("{")?[null,"interpolation"]:ie.match(/^(charset|document|font-face|import|(-(moz|ms|o|webkit)-)?keyframes|media|namespace|page|supports)\b/i,!1)?!1:(ie.eatWhile(/[\w\\\-]/),ie.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:b,propertyKeywords:$,nonStandardPropertyKeywords:Y,fontProperties:_,counterDescriptors:A,colorKeywords:K,valueKeywords:le,supportsAtComponent:!0,tokenHooks:{"/":function(ie,X){return ie.eat("*")?(X.tokenize=Me,Me(ie,X)):!1}},name:"css",helperType:"gss"})})}()),Qh.exports}(function(n,e){(function(i){i(Ir,kL,$L,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(L,T,$){var N=L.current(),Y=N.search(T);return Y>-1?L.backUp(N.length-Y):N.match(/<\/?$/)&&(L.backUp(N.length),L.match(T,!1)||L.match(N)),$}var d={};function u(L){var T=d[L];return T||(d[L]=new RegExp("\\s+"+L+`\\s*=\\s*('|")?([^'"]+)('|")?\\s*`))}function v(L,T){var $=L.match(u(T));return $?/^\s*(.*?)\s*$/.exec($[2])[1]:""}function y(L,T){return new RegExp((T?"^":"")+"</s*"+L+"s*>","i")}function b(L,T){for(var $ in L)for(var N=T[$]||(T[$]=[]),Y=L[$],oe=Y.length-1;oe>=0;oe--)N.unshift(Y[oe])}function M(L,T){for(var $=0;$<L.length;$++){var N=L[$];if(!N[0]||N[1].test(v(T,N[0])))return N[2]}}i.defineMode("htmlmixed",function(L,T){var $=i.getMode(L,{name:"xml",htmlMode:!0,multilineTagIndentFactor:T.multilineTagIndentFactor,multilineTagIndentPastTag:T.multilineTagIndentPastTag,allowMissingTagName:T.allowMissingTagName}),N={},Y=T&&T.tags,oe=T&&T.scriptTypes;if(b(o,N),Y&&b(Y,N),oe)for(var _=oe.length-1;_>=0;_--)N.script.unshift(["type",oe[_].matches,oe[_].mode]);function D(A,B){var K=$.token(A,B.htmlState),ue=/\btag\b/.test(K),le;if(ue&&!/[<>\s\/]/.test(A.current())&&(le=B.htmlState.tagName&&B.htmlState.tagName.toLowerCase())&&N.hasOwnProperty(le))B.inTag=le+" ";else if(B.inTag&&ue&&/>$/.test(A.current())){var me=/^([\S]+) (.*)/.exec(B.inTag);B.inTag=null;var Me=A.current()==">"&&M(N[me[1]],me[2]),ie=i.getMode(L,Me),X=y(me[1],!0),V=y(me[1],!1);B.token=function(O,x){return O.match(X,!1)?(x.token=D,x.localState=x.localMode=null,null):l(O,V,x.localMode.token(O,x.localState))},B.localMode=ie,B.localState=i.startState(ie,$.indent(B.htmlState,"",""))}else B.inTag&&(B.inTag+=A.current(),A.eol()&&(B.inTag+=" "));return K}return{startState:function(){var A=i.startState($);return{token:D,inTag:null,localMode:null,localState:null,htmlState:A}},copyState:function(A){var B;return A.localState&&(B=i.copyState(A.localMode,A.localState)),{token:A.token,inTag:A.inTag,localMode:A.localMode,localState:B,htmlState:i.copyState($,A.htmlState)}},token:function(A,B){return B.token(A,B)},indent:function(A,B,K){return!A.localMode||/^\s*<\//.test(B)?$.indent(A.htmlState,B,K):A.localMode.indent?A.localMode.indent(A.localState,B,K):i.Pass},innerMode:function(A){return{state:A.localState||A.htmlState,mode:A.localMode||$}}}},"xml","javascript","css"),i.defineMIME("text/html","htmlmixed")})})();(function(n,e){(function(i){i(Ir)})(function(i){i.defineMode("solr",function(){var o=/[^\s\|\!\+\-\*\?\~\^\&\:\(\)\[\]\{\}\"\\]/,l=/[\|\!\+\-\*\?\~\^\&]/,d=/^(OR|AND|NOT|TO)$/i;function u(L){return parseFloat(L).toString()===L}function v(L){return function(T,$){for(var N=!1,Y;(Y=T.next())!=null&&!(Y==L&&!N);)N=!N&&Y=="\\";return N||($.tokenize=M),"string"}}function y(L){return function(T,$){var N="operator";return L=="+"?N+=" positive":L=="-"?N+=" negative":L=="|"?T.eat(/\|/):L=="&"?T.eat(/\&/):L=="^"&&(N+=" boost"),$.tokenize=M,N}}function b(L){return function(T,$){for(var N=L;(L=T.peek())&&L.match(o)!=null;)N+=T.next();return $.tokenize=M,d.test(N)?"operator":u(N)?"number":T.peek()==":"?"field":"string"}}function M(L,T){var $=L.next();return $=='"'?T.tokenize=v($):l.test($)?T.tokenize=y($):o.test($)&&(T.tokenize=b($)),T.tokenize!=M?T.tokenize(L,T):null}return{startState:function(){return{tokenize:M}},token:function(L,T){return L.eatSpace()?null:T.tokenize(L,T)}}}),i.defineMIME("text/x-solr","solr")})})();(function(n,e){(function(i){i(Ir)})(function(i){i.defineOption("placeholder","",function(b,M,L){var T=L&&L!=i.Init;if(M&&!T)b.on("blur",u),b.on("change",v),b.on("swapDoc",v),i.on(b.getInputField(),"compositionupdate",b.state.placeholderCompose=function(){d(b)}),v(b);else if(!M&&T){b.off("blur",u),b.off("change",v),b.off("swapDoc",v),i.off(b.getInputField(),"compositionupdate",b.state.placeholderCompose),o(b);var $=b.getWrapperElement();$.className=$.className.replace(" CodeMirror-empty","")}M&&!b.hasFocus()&&u(b)});function o(b){b.state.placeholder&&(b.state.placeholder.parentNode.removeChild(b.state.placeholder),b.state.placeholder=null)}function l(b){o(b);var M=b.state.placeholder=document.createElement("pre");M.style.cssText="height: 0; overflow: visible",M.style.direction=b.getOption("direction"),M.className="CodeMirror-placeholder CodeMirror-line-like";var L=b.getOption("placeholder");typeof L=="string"&&(L=document.createTextNode(L)),M.appendChild(L),b.display.lineSpace.insertBefore(M,b.display.lineSpace.firstChild)}function d(b){setTimeout(function(){var M=!1;if(b.lineCount()==1){var L=b.getInputField();M=L.nodeName=="TEXTAREA"?!b.getLine(0).length:!/[^\u200b]/.test(L.querySelector(".CodeMirror-line").textContent)}M?l(b):o(b)},20)}function u(b){y(b)&&l(b)}function v(b){var M=b.getWrapperElement(),L=y(b);M.className=M.className.replace(" CodeMirror-empty","")+(L?" CodeMirror-empty":""),L?l(b):o(b)}function y(b){return b.lineCount()===1&&b.getLine(0)===""}})})();(function(n,e){(function(i){i(Ir)})(function(i){var o="CodeMirror-hint",l="CodeMirror-hint-active";i.showHint=function(_,D,A){if(!D)return _.showHint(A);A&&A.async&&(D.async=!0);var B={hint:D};if(A)for(var K in A)B[K]=A[K];return _.showHint(B)},i.defineExtension("showHint",function(_){_=y(this,this.getCursor("start"),_);var D=this.listSelections();if(!(D.length>1)){if(this.somethingSelected()){if(!_.hint.supportsSelection)return;for(var A=0;A<D.length;A++)if(D[A].head.line!=D[A].anchor.line)return}this.state.completionActive&&this.state.completionActive.close();var B=this.state.completionActive=new d(this,_);B.options.hint&&(i.signal(this,"startCompletion",this),B.update(!0))}}),i.defineExtension("closeHint",function(){this.state.completionActive&&this.state.completionActive.close()});function d(_,D){if(this.cm=_,this.options=D,this.widget=null,this.debounce=0,this.tick=0,this.startPos=this.cm.getCursor("start"),this.startLen=this.cm.getLine(this.startPos.line).length-this.cm.getSelection().length,this.options.updateOnCursorActivity){var A=this;_.on("cursorActivity",this.activityFunc=function(){A.cursorActivity()})}}var u=window.requestAnimationFrame||function(_){return setTimeout(_,1e3/60)},v=window.cancelAnimationFrame||clearTimeout;d.prototype={close:function(){this.active()&&(this.cm.state.completionActive=null,this.tick=null,this.options.updateOnCursorActivity&&this.cm.off("cursorActivity",this.activityFunc),this.widget&&this.data&&i.signal(this.data,"close"),this.widget&&this.widget.close(),i.signal(this.cm,"endCompletion",this.cm))},active:function(){return this.cm.state.completionActive==this},pick:function(_,D){var A=_.list[D],B=this;this.cm.operation(function(){A.hint?A.hint(B.cm,_,A):B.cm.replaceRange(b(A),A.from||_.from,A.to||_.to,"complete"),i.signal(_,"pick",A),B.cm.scrollIntoView()}),this.options.closeOnPick&&this.close()},cursorActivity:function(){this.debounce&&(v(this.debounce),this.debounce=0);var _=this.startPos;this.data&&(_=this.data.from);var D=this.cm.getCursor(),A=this.cm.getLine(D.line);if(D.line!=this.startPos.line||A.length-D.ch!=this.startLen-this.startPos.ch||D.ch<_.ch||this.cm.somethingSelected()||!D.ch||this.options.closeCharacters.test(A.charAt(D.ch-1)))this.close();else{var B=this;this.debounce=u(function(){B.update()}),this.widget&&this.widget.disable()}},update:function(_){if(this.tick!=null){var D=this,A=++this.tick;N(this.options.hint,this.cm,this.options,function(B){D.tick==A&&D.finishUpdate(B,_)})}},finishUpdate:function(_,D){this.data&&i.signal(this.data,"update");var A=this.widget&&this.widget.picked||D&&this.options.completeSingle;this.widget&&this.widget.close(),this.data=_,_&&_.list.length&&(A&&_.list.length==1?this.pick(_,0):(this.widget=new T(this,_),i.signal(_,"shown")))}};function y(_,D,A){var B=_.options.hintOptions,K={};for(var ue in oe)K[ue]=oe[ue];if(B)for(var ue in B)B[ue]!==void 0&&(K[ue]=B[ue]);if(A)for(var ue in A)A[ue]!==void 0&&(K[ue]=A[ue]);return K.hint.resolve&&(K.hint=K.hint.resolve(_,D)),K}function b(_){return typeof _=="string"?_:_.text}function M(_,D){var A={Up:function(){D.moveFocus(-1)},Down:function(){D.moveFocus(1)},PageUp:function(){D.moveFocus(-D.menuSize()+1,!0)},PageDown:function(){D.moveFocus(D.menuSize()-1,!0)},Home:function(){D.setFocus(0)},End:function(){D.setFocus(D.length-1)},Enter:D.pick,Tab:D.pick,Esc:D.close},B=/Mac/.test(navigator.platform);B&&(A["Ctrl-P"]=function(){D.moveFocus(-1)},A["Ctrl-N"]=function(){D.moveFocus(1)});var K=_.options.customKeys,ue=K?{}:A;function le(ie,X){var V;typeof X!="string"?V=function(O){return X(O,D)}:A.hasOwnProperty(X)?V=A[X]:V=X,ue[ie]=V}if(K)for(var me in K)K.hasOwnProperty(me)&&le(me,K[me]);var Me=_.options.extraKeys;if(Me)for(var me in Me)Me.hasOwnProperty(me)&&le(me,Me[me]);return ue}function L(_,D){for(;D&&D!=_;){if(D.nodeName.toUpperCase()==="LI"&&D.parentNode==_)return D;D=D.parentNode}}function T(_,D){this.id="cm-complete-"+Math.floor(Math.random(1e6)),this.completion=_,this.data=D,this.picked=!1;var A=this,B=_.cm,K=B.getInputField().ownerDocument,ue=K.defaultView||K.parentWindow,le=this.hints=K.createElement("ul");le.setAttribute("role","listbox"),le.setAttribute("aria-expanded","true"),le.id=this.id;var me=_.cm.options.theme;le.className="CodeMirror-hints "+me,this.selectedHint=D.selectedHint||0;for(var Me=D.list,ie=0;ie<Me.length;++ie){var X=le.appendChild(K.createElement("li")),V=Me[ie],O=o+(ie!=this.selectedHint?"":" "+l);V.className!=null&&(O=V.className+" "+O),X.className=O,ie==this.selectedHint&&X.setAttribute("aria-selected","true"),X.id=this.id+"-"+ie,X.setAttribute("role","option"),V.render?V.render(X,D,V):X.appendChild(K.createTextNode(V.displayText||b(V))),X.hintId=ie}var x=_.options.container||K.body,w=B.cursorCoords(_.options.alignWithWord?D.from:null),U=w.left,ne=w.bottom,ye=!0,ke=0,Re=0;if(x!==K.body){var ot=["absolute","relative","fixed"].indexOf(ue.getComputedStyle(x).position)!==-1,Et=ot?x:x.offsetParent,Ye=Et.getBoundingClientRect(),Xe=K.body.getBoundingClientRect();ke=Ye.left-Xe.left-Et.scrollLeft,Re=Ye.top-Xe.top-Et.scrollTop}le.style.left=U-ke+"px",le.style.top=ne-Re+"px";var Be=ue.innerWidth||Math.max(K.body.offsetWidth,K.documentElement.offsetWidth),ge=ue.innerHeight||Math.max(K.body.offsetHeight,K.documentElement.offsetHeight);x.appendChild(le),B.getInputField().setAttribute("aria-autocomplete","list"),B.getInputField().setAttribute("aria-owns",this.id),B.getInputField().setAttribute("aria-activedescendant",this.id+"-"+this.selectedHint);var ve=_.options.moveOnOverlap?le.getBoundingClientRect():new DOMRect,Ie=_.options.paddingForScrollbar?le.scrollHeight>le.clientHeight+1:!1,De;setTimeout(function(){De=B.getScrollInfo()});var Ae=ve.bottom-ge;if(Ae>0){var Te=ve.bottom-ve.top,ht=w.top-(w.bottom-ve.top);if(ht-Te>0)le.style.top=(ne=w.top-Te-Re)+"px",ye=!1;else if(Te>ge){le.style.height=ge-5+"px",le.style.top=(ne=w.bottom-ve.top-Re)+"px";var qt=B.getCursor();D.from.ch!=qt.ch&&(w=B.cursorCoords(qt),le.style.left=(U=w.left-ke)+"px",ve=le.getBoundingClientRect())}}var ir=ve.right-Be;if(Ie&&(ir+=B.display.nativeBarWidth),ir>0&&(ve.right-ve.left>Be&&(le.style.width=Be-5+"px",ir-=ve.right-ve.left-Be),le.style.left=(U=w.left-ir-ke)+"px"),Ie)for(var _e=le.firstChild;_e;_e=_e.nextSibling)_e.style.paddingRight=B.display.nativeBarWidth+"px";if(B.addKeyMap(this.keyMap=M(_,{moveFocus:function(Qe,et){A.changeActive(A.selectedHint+Qe,et)},setFocus:function(Qe){A.changeActive(Qe)},menuSize:function(){return A.screenAmount()},length:Me.length,close:function(){_.close()},pick:function(){A.pick()},data:D})),_.options.closeOnUnfocus){var Ve;B.on("blur",this.onBlur=function(){Ve=setTimeout(function(){_.close()},100)}),B.on("focus",this.onFocus=function(){clearTimeout(Ve)})}B.on("scroll",this.onScroll=function(){var Qe=B.getScrollInfo(),et=B.getWrapperElement().getBoundingClientRect();De||(De=B.getScrollInfo());var Dr=ne+De.top-Qe.top,Ue=Dr-(ue.pageYOffset||(K.documentElement||K.body).scrollTop);if(ye||(Ue+=le.offsetHeight),Ue<=et.top||Ue>=et.bottom)return _.close();le.style.top=Dr+"px",le.style.left=U+De.left-Qe.left+"px"}),i.on(le,"dblclick",function(Qe){var et=L(le,Qe.target||Qe.srcElement);et&&et.hintId!=null&&(A.changeActive(et.hintId),A.pick())}),i.on(le,"click",function(Qe){var et=L(le,Qe.target||Qe.srcElement);et&&et.hintId!=null&&(A.changeActive(et.hintId),_.options.completeOnSingleClick&&A.pick())}),i.on(le,"mousedown",function(){setTimeout(function(){B.focus()},20)});var ct=this.getSelectedHintRange();return(ct.from!==0||ct.to!==0)&&this.scrollToActive(),i.signal(D,"select",Me[this.selectedHint],le.childNodes[this.selectedHint]),!0}T.prototype={close:function(){if(this.completion.widget==this){this.completion.widget=null,this.hints.parentNode&&this.hints.parentNode.removeChild(this.hints),this.completion.cm.removeKeyMap(this.keyMap);var _=this.completion.cm.getInputField();_.removeAttribute("aria-activedescendant"),_.removeAttribute("aria-owns");var D=this.completion.cm;this.completion.options.closeOnUnfocus&&(D.off("blur",this.onBlur),D.off("focus",this.onFocus)),D.off("scroll",this.onScroll)}},disable:function(){this.completion.cm.removeKeyMap(this.keyMap);var _=this;this.keyMap={Enter:function(){_.picked=!0}},this.completion.cm.addKeyMap(this.keyMap)},pick:function(){this.completion.pick(this.data,this.selectedHint)},changeActive:function(_,D){if(_>=this.data.list.length?_=D?this.data.list.length-1:0:_<0&&(_=D?0:this.data.list.length-1),this.selectedHint!=_){var A=this.hints.childNodes[this.selectedHint];A&&(A.className=A.className.replace(" "+l,""),A.removeAttribute("aria-selected")),A=this.hints.childNodes[this.selectedHint=_],A.className+=" "+l,A.setAttribute("aria-selected","true"),this.completion.cm.getInputField().setAttribute("aria-activedescendant",A.id),this.scrollToActive(),i.signal(this.data,"select",this.data.list[this.selectedHint],A)}},scrollToActive:function(){var _=this.getSelectedHintRange(),D=this.hints.childNodes[_.from],A=this.hints.childNodes[_.to],B=this.hints.firstChild;D.offsetTop<this.hints.scrollTop?this.hints.scrollTop=D.offsetTop-B.offsetTop:A.offsetTop+A.offsetHeight>this.hints.scrollTop+this.hints.clientHeight&&(this.hints.scrollTop=A.offsetTop+A.offsetHeight-this.hints.clientHeight+B.offsetTop)},screenAmount:function(){return Math.floor(this.hints.clientHeight/this.hints.firstChild.offsetHeight)||1},getSelectedHintRange:function(){var _=this.completion.options.scrollMargin||0;return{from:Math.max(0,this.selectedHint-_),to:Math.min(this.data.list.length-1,this.selectedHint+_)}}};function $(_,D){if(!_.somethingSelected())return D;for(var A=[],B=0;B<D.length;B++)D[B].supportsSelection&&A.push(D[B]);return A}function N(_,D,A,B){if(_.async)_(D,B,A);else{var K=_(D,A);K&&K.then?K.then(B):B(K)}}function Y(_,D){var A=_.getHelpers(D,"hint"),B;if(A.length){var K=function(ue,le,me){var Me=$(ue,A);function ie(X){if(X==Me.length)return le(null);N(Me[X],ue,me,function(V){V&&V.list.length>0?le(V):ie(X+1)})}ie(0)};return K.async=!0,K.supportsSelection=!0,K}else return(B=_.getHelper(_.getCursor(),"hintWords"))?function(ue){return i.hint.fromList(ue,{words:B})}:i.hint.anyword?function(ue,le){return i.hint.anyword(ue,le)}:function(){}}i.registerHelper("hint","auto",{resolve:Y}),i.registerHelper("hint","fromList",function(_,D){var A=_.getCursor(),B=_.getTokenAt(A),K,ue=i.Pos(A.line,B.start),le=A;B.start<A.ch&&/\w/.test(B.string.charAt(A.ch-B.start-1))?K=B.string.substr(0,A.ch-B.start):(K="",ue=A);for(var me=[],Me=0;Me<D.words.length;Me++){var ie=D.words[Me];ie.slice(0,K.length)==K&&me.push(ie)}if(me.length)return{list:me,from:ue,to:le}}),i.commands.autocomplete=i.showHint;var oe={hint:i.hint.auto,completeSingle:!0,alignWithWord:!0,closeCharacters:/[\s()\[\]{};:>,]/,closeOnPick:!0,closeOnUnfocus:!0,updateOnCursorActivity:!0,completeOnSingleClick:!0,container:null,customKeys:null,extraKeys:null,paddingForScrollbar:!0,moveOnOverlap:!0};i.defineOption("hintOptions",null)})})();(function(n,e){(function(i){i(Ir)})(function(i){var o=i.Pos;function l(_,D){for(var A=0,B=_.length;A<B;++A)D(_[A])}function d(_,D){if(!Array.prototype.indexOf){for(var A=_.length;A--;)if(_[A]===D)return!0;return!1}return _.indexOf(D)!=-1}function u(_,D,A,B){var K=_.getCursor(),ue=A(_,K);if(!/\b(?:string|comment)\b/.test(ue.type)){var le=i.innerMode(_.getMode(),ue.state);if(le.mode.helperType!=="json"){ue.state=le.state,/^[\w$_]*$/.test(ue.string)?ue.end>K.ch&&(ue.end=K.ch,ue.string=ue.string.slice(0,K.ch-ue.start)):ue={start:K.ch,end:K.ch,string:"",state:ue.state,type:ue.string=="."?"property":null};for(var me=ue;me.type=="property";){if(me=A(_,o(K.line,me.start)),me.string!=".")return;if(me=A(_,o(K.line,me.start)),!Me)var Me=[];Me.push(me)}return{list:oe(ue,Me,D,B),from:o(K.line,ue.start),to:o(K.line,ue.end)}}}}function v(_,D){return u(_,$,function(A,B){return A.getTokenAt(B)},D)}i.registerHelper("hint","javascript",v);function y(_,D){var A=_.getTokenAt(D);return D.ch==A.start+1&&A.string.charAt(0)=="."?(A.end=A.start,A.string=".",A.type="property"):/^\.[\w$_]*$/.test(A.string)&&(A.type="property",A.start++,A.string=A.string.replace(/\./,"")),A}function b(_,D){return u(_,N,y,D)}i.registerHelper("hint","coffeescript",b);var M="charAt charCodeAt indexOf lastIndexOf substring substr slice trim trimLeft trimRight toUpperCase toLowerCase split concat match replace search".split(" "),L="length concat join splice push pop shift unshift slice reverse sort indexOf lastIndexOf every some filter forEach map reduce reduceRight ".split(" "),T="prototype apply call bind".split(" "),$="break case catch class const continue debugger default delete do else export extends false finally for function if in import instanceof new null return super switch this throw true try typeof var void while with yield".split(" "),N="and break catch class continue delete do else extends false finally for if in instanceof isnt new no not null of off on or return switch then throw true try typeof until void while with yes".split(" ");function Y(_,D){if(!Object.getOwnPropertyNames||!Object.getPrototypeOf)for(var A in _)D(A);else for(var B=_;B;B=Object.getPrototypeOf(B))Object.getOwnPropertyNames(B).forEach(D)}function oe(_,D,A,B){var K=[],ue=_.string,le=B&&B.globalScope||window;function me(w){w.lastIndexOf(ue,0)==0&&!d(K,w)&&K.push(w)}function Me(w){typeof w=="string"?l(M,me):w instanceof Array?l(L,me):w instanceof Function&&l(T,me),Y(w,me)}if(D&&D.length){var ie=D.pop(),X;for(ie.type&&ie.type.indexOf("variable")===0?(B&&B.additionalContext&&(X=B.additionalContext[ie.string]),(!B||B.useGlobalScope!==!1)&&(X=X||le[ie.string])):ie.type=="string"?X="":ie.type=="atom"?X=1:ie.type=="function"&&(le.jQuery!=null&&(ie.string=="$"||ie.string=="jQuery")&&typeof le.jQuery=="function"?X=le.jQuery():le._!=null&&ie.string=="_"&&typeof le._=="function"&&(X=le._()));X!=null&&D.length;)X=X[D.pop().string];X!=null&&Me(X)}else{for(var V=_.state.localVars;V;V=V.next)me(V.name);for(var O=_.state.context;O;O=O.prev)for(var V=O.vars;V;V=V.next)me(V.name);for(var V=_.state.globalVars;V;V=V.next)me(V.name);if(B&&B.additionalContext!=null)for(var x in B.additionalContext)me(x);(!B||B.useGlobalScope!==!1)&&Me(le),l(A,me)}return K}})})();var _L=Object.defineProperty,IL=Object.getOwnPropertyDescriptor,Bi=(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};Di.defineMode("nunjucks",(n,e)=>Di.overlayMode(Di.getMode(n,e.backdrop||"text/html"),Di.getMode(n,"jinja2")));const Up=ce("input-code"),AL=["json","nunjucks","javascript","solr"],tf={json:{name:"javascript",json:!0},javascript:"javascript",nunjucks:"nunjucks",solr:"solr"};exports.InputCode=class extends rr{constructor(){super(...arguments),this.mode="nunjucks",this.size="x-large",this.height=10,this.hideLineNumbers=!1,this.autocompleteList=[],this.singleLine=!1,this.boundHandleEditorMouseDown=this.handleEditorMouseDown.bind(this),this.changeHandler=e=>{this.value=e.getValue(),this.dispatchChange()}}atSignHint(e,i){const o=e.getCursor(),l=e.getLine(o.line),d=e.getTokenAt(o),u=i.fromAtTrigger||!1,v=i.fromGeneralTyping||!1;let y,b="";if(u){let T=-1;for(let $=o.ch-1;$>=0;$--)if(l.charAt($)==="@"){T=$;break}if(T===-1&&d.string.startsWith("@")&&d.start<o.ch&&(T=d.start),T!==-1)y=Di.Pos(o.line,T),b=l.substring(T+1,o.ch);else return null}else if(v){let T=o.ch;for(;T>0&&l.charAt(T-1).match(/[\w.]/);)T--;if(b=l.substring(T,o.ch),y=Di.Pos(o.line,T),b.length===0||b==="."&&(T===0||!l.charAt(T-1).match(/\w/)))return null}else return null;const L=(i.words||this.autocompleteList||[]).filter(T=>T.toLowerCase().startsWith(b.toLowerCase())).map(T=>({text:T,displayText:T}));return L.length>0?{list:L,from:y,to:Di.Pos(o.line,o.ch)}:null}get editorValue(){var e;return((e=this.editor)==null?void 0:e.getDoc().getValue())||""}set editorValue(e){this.editor&&this.editor.getValue()!==e&&this.editor.setValue(e)}updated(e){super.updated(e);const i=this.disabled||this.readonly;if(this.value!==this.editorValue&&(this.editorValue=this.value||""),this.editor&&i!==this.editor.isReadOnly()&&this.editor.setOption("readOnly",this.disabled?"nocursor":this.readonly),e.get("mode")&&this.editor&&(this.editor.setOption("mode",tf[this.mode]),this.editor.refresh()),e.has("autocompleteList")&&this.editor){const o={hint:this.atSignHint.bind(this),words:this.autocompleteList,container:document.body,completeSingle:!1,fromAtTrigger:!1,fromGeneralTyping:!1};this.editor.setOption("hintOptions",o)}this.editor&&(e.has("height")||e.has("hideLineNumbers"))&&(this.updateEditorSize(),this.editor.refresh()),e.has("singleLine")&&this.editor&&(this.editor.setOption("lineNumbers",!this.hideLineNumbers&&!this.singleLine),this.updateEditorSize(),this.editor.refresh())}updateEditorSize(){if(this.editor){const e=this.singleLine?"36px":`${24*this.height}px`;this.editor.setSize(null,e)}}handleEditorMouseDown(){this.editor&&!this.editor.hasFocus()&&this.editor.focus()}firstUpdated(){var i;const e=(i=this.shadowRoot)==null?void 0:i.querySelector(".editor");if(e&&this.shadowRoot){this.editor=Di.fromTextArea(e,{mode:tf[this.mode],lineNumbers:!this.hideLineNumbers&&!this.singleLine,readOnly:this.disabled?"nocursor":this.readonly,smartIndent:!0,theme:"skedulo"}),this.value!==void 0&&(this.editorValue=this.value);const o={hint:this.atSignHint.bind(this),words:this.autocompleteList,container:document.body,completeSingle:!1};this.editor.setOption("hintOptions",o),this.updateEditorSize(),this.editor.on("change",this.changeHandler),this.editor.getWrapperElement().addEventListener("mousedown",this.boundHandleEditorMouseDown),this.editor.on("beforeChange",(u,v)=>{this.singleLine&&v.text.some(y=>/\n/.test(y))&&v.cancel()});const d={Tab:u=>{const v=Array((u.getOption("indentUnit")||0)+1).join(" ");u.replaceSelection(v)}};this.singleLine&&(d.Enter=()=>{}),this.editor.setOption("extraKeys",d),this.editor.on("inputRead",(u,v)=>{if(u.state.completionActive)return;const y=v.text&&v.text[0],b=u.getCursor(),M=u.getLine(b.line);let L=!1;const T={hint:this.atSignHint.bind(this),words:this.autocompleteList,container:document.body,completeSingle:!1,fromAtTrigger:!1,fromGeneralTyping:!1};if(y==="@")T.fromAtTrigger=!0,L=!0;else if(y&&y.match(/[\w.]/)&&this.autocompleteList.length>0){if(y==="."&&(b.ch<=1||!M.charAt(b.ch-2).match(/\w/)))return;let $=b.ch;for(;$>0&&M.charAt($-1).match(/[\w.]/);)$--;const N=M.substring($,b.ch);if(N&&N.length>=1){if(N==="."&&($===0||!M.charAt($-1).match(/\w/)))return;this.autocompleteList.some(oe=>oe.toLowerCase().startsWith(N.toLowerCase()))&&(T.fromGeneralTyping=!0,L=!0)}}if(L){u.setOption("hintOptions",T);const $=T.fromAtTrigger?50:0;setTimeout(()=>{u.hasFocus()&&u.execCommand("autocomplete")},$)}}),setTimeout(()=>{var u;return(u=this.editor)==null?void 0:u.refresh()},0)}}disconnectedCallback(){if(super.disconnectedCallback(),this.editor){const e=this.editor.getWrapperElement();e.removeEventListener("mousedown",this.boundHandleEditorMouseDown),this.editor.off("change",this.changeHandler),e&&e.remove&&e.remove(),this.editor=void 0}}renderInput(){return R`
3084
3084
  <textarea class="editor" placeholder="${He(this.placeholder)}">
3085
3085
  ${this.value}</textarea
3086
3086
  >
@@ -3154,9 +3154,10 @@ ${this.value}</textarea
3154
3154
  }
3155
3155
 
3156
3156
  .CodeMirror pre.CodeMirror-placeholder {
3157
- color: var(--brz-color-neutral-500, #999);
3157
+ color: var(--brz-color-text-placeholder);
3158
+ letter-spacing: 0;
3158
3159
  }
3159
- `,ML];Vn([E()],exports.InputCode.prototype,"mode",2);Vn([E({reflect:!0})],exports.InputCode.prototype,"size",2);Vn([E({type:Number})],exports.InputCode.prototype,"height",2);Vn([E({type:Boolean,attribute:"hide-line-numbers"})],exports.InputCode.prototype,"hideLineNumbers",2);Vn([E({type:Array,attribute:"autocomplete-list"})],exports.InputCode.prototype,"autocompleteList",2);Vn([E({type:Boolean,attribute:"single-line",reflect:!0})],exports.InputCode.prototype,"singleLine",2);Vn([Ce()],exports.InputCode.prototype,"editor",2);exports.InputCode=Vn([W(Up)],exports.InputCode);var PL=Object.defineProperty,DL=Object.getOwnPropertyDescriptor,Ps=(i,e,n,o)=>{for(var l=o>1?void 0:o?DL(e,n):e,d=i.length-1,u;d>=0;d--)(u=i[d])&&(l=(o?u(e,n,l):u(l))||l);return o&&l&&PL(e,n,l),l};const jp=ce("input-select");exports.InputSelect=class extends Ct{constructor(){super(...arguments),this.value="",this.query="",this.hasResults=!1}updated(e){var n,o;if((n=super.updated)==null||n.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(),R`
3160
+ `,ML];Bi([E()],exports.InputCode.prototype,"mode",2);Bi([E({reflect:!0})],exports.InputCode.prototype,"size",2);Bi([E({type:Number})],exports.InputCode.prototype,"height",2);Bi([E({type:Boolean,attribute:"hide-line-numbers"})],exports.InputCode.prototype,"hideLineNumbers",2);Bi([E({type:Array,attribute:"autocomplete-list"})],exports.InputCode.prototype,"autocompleteList",2);Bi([E({type:Boolean,attribute:"single-line",reflect:!0})],exports.InputCode.prototype,"singleLine",2);Bi([Ce()],exports.InputCode.prototype,"editor",2);exports.InputCode=Bi([W(Up)],exports.InputCode);var PL=Object.defineProperty,DL=Object.getOwnPropertyDescriptor,Ps=(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 jp=ce("input-select");exports.InputSelect=class extends Ct{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(),R`
3160
3161
  <button
3161
3162
  type="button"
3162
3163
  class="wrapper"
@@ -3193,7 +3194,7 @@ ${this.value}</textarea
3193
3194
  `}renderDropdownContent(){return R`
3194
3195
  ${!this.controlled&&!this.hasQueryResults?this.renderSearchMessage():null}
3195
3196
  ${this.isDataDriven?this.renderOptionsData():R` <slot slot="options"></slot> `}
3196
- `}resetSearch(){this.query=""}search(){var n;this.hasResults=!1;const e=(n=this.query)==null?void 0:n.toLowerCase();this.getItems().forEach(o=>{var d;if("id"in o&&o.id===Ms)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-${Sc()}`,label:this.placeholder?this.placeholder:"Select an option",value:""}],...this.options.map(e=>({...e,id:`option-${Sc()}`}))]:[]}disconnectedCallback(){var e;(e=this.selectedOptionObserver)==null||e.disconnect(),super.disconnectedCallback()}findItem(e){var n;return((n=this.getItems())==null?void 0:n[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 n=this.findItem(e);this.valueLabel=this.getItemLabel(n),!(this.isDataDriven&&this.isReadonlyOrDisabled)&&n instanceof Node&&(this.selectedOptionObserver=new MutationObserver(()=>{this.valueLabel=this.getItemLabel(n),this.resetSearch()}),this.selectedOptionObserver.observe(n,{characterData:!1,childList:!0,attributes:!1}))}};exports.InputSelect.styles=[...Ct.styles,Q`
3197
+ `}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===Ms)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-${Sc()}`,label:this.placeholder?this.placeholder:"Select an option",value:""}],...this.options.map(e=>({...e,id:`option-${Sc()}`}))]:[]}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=[...Ct.styles,Q`
3197
3198
  input {
3198
3199
  text-overflow: ellipsis;
3199
3200
  }
@@ -3224,7 +3225,7 @@ ${this.value}</textarea
3224
3225
  .placeholder {
3225
3226
  color: var(--input-placeholder-font-color);
3226
3227
  }
3227
- `];Ps([E({type:String})],exports.InputSelect.prototype,"value",2);Ps([Ce()],exports.InputSelect.prototype,"query",2);Ps([Ce()],exports.InputSelect.prototype,"valueLabel",2);Ps([Ce()],exports.InputSelect.prototype,"hasResults",2);exports.InputSelect=Ps([W(jp)],exports.InputSelect);var NL=Object.defineProperty,HL=Object.getOwnPropertyDescriptor,Ar=(i,e,n,o)=>{for(var l=o>1?void 0:o?HL(e,n):e,d=i.length-1,u;d>=0;d--)(u=i[d])&&(l=(o?u(e,n,l):u(l))||l);return o&&l&&NL(e,n,l),l};const Gp=ce("lozenge"),RL=["neutral","green","orange","red","cyan","purple","sapphire"],FL=["solid","subtle","border"],BL=["small","medium","large"];class qp extends CustomEvent{constructor(){super("brz-lozenge-delete",{bubbles:!0})}}exports.Lozenge=class extends ze{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 qp)}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()),R`
3228
+ `];Ps([E({type:String})],exports.InputSelect.prototype,"value",2);Ps([Ce()],exports.InputSelect.prototype,"query",2);Ps([Ce()],exports.InputSelect.prototype,"valueLabel",2);Ps([Ce()],exports.InputSelect.prototype,"hasResults",2);exports.InputSelect=Ps([W(jp)],exports.InputSelect);var NL=Object.defineProperty,HL=Object.getOwnPropertyDescriptor,Ar=(n,e,i,o)=>{for(var l=o>1?void 0:o?HL(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&&NL(e,i,l),l};const Gp=ce("lozenge"),RL=["neutral","green","orange","red","cyan","purple","sapphire"],FL=["solid","subtle","border"],BL=["small","medium","large"];class qp extends CustomEvent{constructor(){super("brz-lozenge-delete",{bubbles:!0})}}exports.Lozenge=class extends ze{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 qp)}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()),R`
3228
3229
  <brz-tooltip
3229
3230
  content=${(e=this.defaultSlot[0])==null?void 0:e.textContent}
3230
3231
  ?disabled=${!this.isOverflowing}
@@ -3376,7 +3377,7 @@ ${this.value}</textarea
3376
3377
  margin-right: var(--brz-spacing-2);
3377
3378
  }
3378
3379
 
3379
- ${i2(".close",Q`
3380
+ ${n2(".close",Q`
3380
3381
  margin-right: calc(0px - var(--brz-spacing-1));
3381
3382
  `)}
3382
3383
 
@@ -3394,7 +3395,7 @@ ${this.value}</textarea
3394
3395
  color: var(--brz-color-neutral-550);
3395
3396
  cursor: unset;
3396
3397
  }
3397
- `;Ar([E({type:String,attribute:"size",reflect:!0})],exports.Lozenge.prototype,"size",2);Ar([E({type:String,attribute:"theme",reflect:!0})],exports.Lozenge.prototype,"theme",2);Ar([E({type:String,attribute:"color",reflect:!0})],exports.Lozenge.prototype,"color",2);Ar([E({type:String,attribute:"leading-icon",reflect:!0})],exports.Lozenge.prototype,"leadingIcon",2);Ar([E({type:Boolean,attribute:"can-delete",reflect:!0})],exports.Lozenge.prototype,"canDelete",2);Ar([E({type:Boolean,attribute:"disabled",reflect:!0})],exports.Lozenge.prototype,"disabled",2);Ar([E({type:Boolean,attribute:"no-truncate",reflect:!0})],exports.Lozenge.prototype,"noTruncate",2);Ar([Yc()],exports.Lozenge.prototype,"defaultSlot",2);Ar([p7(".message")],exports.Lozenge.prototype,"message",2);Ar([Ce()],exports.Lozenge.prototype,"isOverflowing",2);exports.Lozenge=Ar([W(Gp)],exports.Lozenge);var VL=Object.defineProperty,ZL=Object.getOwnPropertyDescriptor,Ds=(i,e,n,o)=>{for(var l=o>1?void 0:o?ZL(e,n):e,d=i.length-1,u;d>=0;d--)(u=i[d])&&(l=(o?u(e,n,l):u(l))||l);return o&&l&&VL(e,n,l),l};const Kp=ce("input-multiselect");exports.InputMultiselect=class extends Ct{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(n=>n.id===Tr)&&this.innerOptions.unshift(this.selectAllOption)}get allSelected(){const{enabled:e,toggled:n}=[...this.getItems()].reduce((o,l)=>l.id===Tr?o:{enabled:l.disabled?o.enabled:o.enabled+1,toggled:l.selected?o.toggled+1:o.toggled},{enabled:0,toggled:0});return e===n}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 yu({detail:{query:""}}))},200)}handleValueChange(){this.controlled||this.syncValueLabels()}handleSelect(e){this.setValue(e.detail.selected)}handleItemSelect({detail:{item:e}}){e.id===Tr&&this.toggleAllSelected()}toggleAllSelected(){const e=[];this.allSelected||this.getItems().forEach(n=>{!n.disabled&&n.id!==Tr&&e.push(n.value)}),this.setValue(e),this.handleValueChange()}toggleSelection(e){const n=this.value?[...this.value]:[],o=n.indexOf(e);o>-1&&n.splice(o,1),o===-1&&n.push(e),this.setValue(n)}syncSelected(){this.getItems().forEach(e=>{const n=this.value&&this.value.includes(e.value);e.selected=e.id===Tr?this.allSelected:n})}get truncation(){return this.value&&this.value.length>this.truncateValuesAfter?R`<span class="truncation"
3398
+ `;Ar([E({type:String,attribute:"size",reflect:!0})],exports.Lozenge.prototype,"size",2);Ar([E({type:String,attribute:"theme",reflect:!0})],exports.Lozenge.prototype,"theme",2);Ar([E({type:String,attribute:"color",reflect:!0})],exports.Lozenge.prototype,"color",2);Ar([E({type:String,attribute:"leading-icon",reflect:!0})],exports.Lozenge.prototype,"leadingIcon",2);Ar([E({type:Boolean,attribute:"can-delete",reflect:!0})],exports.Lozenge.prototype,"canDelete",2);Ar([E({type:Boolean,attribute:"disabled",reflect:!0})],exports.Lozenge.prototype,"disabled",2);Ar([E({type:Boolean,attribute:"no-truncate",reflect:!0})],exports.Lozenge.prototype,"noTruncate",2);Ar([Yc()],exports.Lozenge.prototype,"defaultSlot",2);Ar([p7(".message")],exports.Lozenge.prototype,"message",2);Ar([Ce()],exports.Lozenge.prototype,"isOverflowing",2);exports.Lozenge=Ar([W(Gp)],exports.Lozenge);var VL=Object.defineProperty,ZL=Object.getOwnPropertyDescriptor,Ds=(n,e,i,o)=>{for(var l=o>1?void 0:o?ZL(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 Kp=ce("input-multiselect");exports.InputMultiselect=class extends Ct{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===Tr)&&this.innerOptions.unshift(this.selectAllOption)}get allSelected(){const{enabled:e,toggled:i}=[...this.getItems()].reduce((o,l)=>l.id===Tr?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 yu({detail:{query:""}}))},200)}handleValueChange(){this.controlled||this.syncValueLabels()}handleSelect(e){this.setValue(e.detail.selected)}handleItemSelect({detail:{item:e}}){e.id===Tr&&this.toggleAllSelected()}toggleAllSelected(){const e=[];this.allSelected||this.getItems().forEach(i=>{!i.disabled&&i.id!==Tr&&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===Tr?this.allSelected:i})}get truncation(){return this.value&&this.value.length>this.truncateValuesAfter?R`<span class="truncation"
3398
3399
  >+${this.value.length-this.truncateValuesAfter} more</span
3399
3400
  >`: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()}),R`
3400
3401
  <button
@@ -3406,7 +3407,7 @@ ${this.value}</textarea
3406
3407
  >
3407
3408
  <div class="selected-options">
3408
3409
  ${!this.canSearch&&this.valueLabels.length===0?R` <div class="placeholder">${this.placeholder}</div> `:void 0}
3409
- ${this.controlled?this.renderSelectedItems():this.valueLabels.map(({value:e,label:n})=>R`
3410
+ ${this.controlled?this.renderSelectedItems():this.valueLabels.map(({value:e,label:i})=>R`
3410
3411
  <brz-lozenge
3411
3412
  size="small"
3412
3413
  color="neutral"
@@ -3415,7 +3416,7 @@ ${this.value}</textarea
3415
3416
  @brz-lozenge-delete="${()=>{this.isReadonlyOrDisabled||this.toggleSelection(e)}}"
3416
3417
  can-delete
3417
3418
  >
3418
- ${n}
3419
+ ${i}
3419
3420
  </brz-lozenge>
3420
3421
  `)}
3421
3422
  ${this.truncation}
@@ -3436,11 +3437,11 @@ ${this.value}</textarea
3436
3437
  size="16"
3437
3438
  ></brz-loading-spinner>`:null}
3438
3439
  </button>
3439
- `}get selectAllOption(){return{id:Tr,value:Tr,label:"Select all",selected:this.allSelected}}get selectAllOptionElement(){const{id:e,value:n,label:o,selected:l}=this.selectAllOption;return R`
3440
+ `}get selectAllOption(){return{id:Tr,value:Tr,label:"Select all",selected:this.allSelected}}get selectAllOptionElement(){const{id:e,value:i,label:o,selected:l}=this.selectAllOption;return R`
3440
3441
  <brz-menu-item
3441
3442
  slot="options"
3442
3443
  id=${e}
3443
- value=${n}
3444
+ value=${i}
3444
3445
  ?selected=${l}
3445
3446
  >
3446
3447
  ${o}
@@ -3451,7 +3452,7 @@ ${this.value}</textarea
3451
3452
  ${this.controlled?"":this.selectAllOptionElement}
3452
3453
  <slot slot="options"></slot>
3453
3454
  `}
3454
- `}renderSelectedItems(){return R`<slot name="selected-items" class="selected-options"></slot>`}removeLastValue(){var e;(e=this.value)==null||e.pop(),this.handleValueChange()}resetSearch(){this.query=""}setQueryInputValue(){this.queryInput&&(this.queryInput.value=this.query||"")}search(){var n;this.hasResults=!1;const e=(n=this.query)==null?void 0:n.toLowerCase();this.getItems().forEach(o=>{if(!e){o.hidden=!1,this.hasResults=!0;return}const l=this.isQueryMatch(o);l&&(this.hasResults=!0),o.hidden=!l})}getItems(){var n,o;const e=super.getItems();return this.isDataDriven?e:[((n=this.renderRoot)==null?void 0:n.querySelector(`brz-menu-item#${Tr}`))||((o=this.renderRoot)==null?void 0:o.querySelector(`sp-menu-item#${Tr}`))||{},...e]}syncValueLabels(){const e=[...this.getItems()];this.valueLabels=this.value?this.value.slice(0,this.truncateValuesAfter).map(n=>({label:this.getItemLabel(e.find(o=>o.value===n)),value:n})):[],this.render()}};exports.InputMultiselect.styles=[...Ct.styles,Q`
3455
+ `}renderSelectedItems(){return R`<slot name="selected-items" class="selected-options"></slot>`}removeLastValue(){var e;(e=this.value)==null||e.pop(),this.handleValueChange()}resetSearch(){this.query=""}setQueryInputValue(){this.queryInput&&(this.queryInput.value=this.query||"")}search(){var i;this.hasResults=!1;const e=(i=this.query)==null?void 0:i.toLowerCase();this.getItems().forEach(o=>{if(!e){o.hidden=!1,this.hasResults=!0;return}const l=this.isQueryMatch(o);l&&(this.hasResults=!0),o.hidden=!l})}getItems(){var i,o;const e=super.getItems();return this.isDataDriven?e:[((i=this.renderRoot)==null?void 0:i.querySelector(`brz-menu-item#${Tr}`))||((o=this.renderRoot)==null?void 0:o.querySelector(`sp-menu-item#${Tr}`))||{},...e]}syncValueLabels(){const e=[...this.getItems()];this.valueLabels=this.value?this.value.slice(0,this.truncateValuesAfter).map(i=>({label:this.getItemLabel(e.find(o=>o.value===i)),value:i})):[],this.render()}};exports.InputMultiselect.styles=[...Ct.styles,Q`
3455
3456
  :host {
3456
3457
  --brz-input-multiselect-padding-y: calc(
3457
3458
  (var(--brz-spacing-3) / 2) - var(--input-border-width)
@@ -3505,10 +3506,10 @@ ${this.value}</textarea
3505
3506
  brz-icon[icon='chevronDown'] {
3506
3507
  color: var(--brz-color-neutral-750);
3507
3508
  }
3508
- `];Ds([E({type:String,reflect:!0})],exports.InputMultiselect.prototype,"size",2);Ds([E({attribute:"truncate-values-after",type:Number})],exports.InputMultiselect.prototype,"truncateValuesAfter",2);Ds([E({type:Array})],exports.InputMultiselect.prototype,"value",2);Ds([Ce()],exports.InputMultiselect.prototype,"valueLabels",2);exports.InputMultiselect=Ds([W(Kp)],exports.InputMultiselect);class Si extends Error{}class WL extends Si{constructor(e){super(`Invalid DateTime: ${e.toMessage()}`)}}class UL extends Si{constructor(e){super(`Invalid Interval: ${e.toMessage()}`)}}class jL extends Si{constructor(e){super(`Invalid Duration: ${e.toMessage()}`)}}class vs extends Si{}class Yp extends Si{constructor(e){super(`Invalid unit ${e}`)}}class gr extends Si{}class _n extends Si{constructor(){super("Zone is an abstract class")}}const fe="numeric",Er="short",hr="long",al={year:fe,month:fe,day:fe},Xp={year:fe,month:Er,day:fe},GL={year:fe,month:Er,day:fe,weekday:Er},Jp={year:fe,month:hr,day:fe},Qp={year:fe,month:hr,day:fe,weekday:hr},e5={hour:fe,minute:fe},t5={hour:fe,minute:fe,second:fe},r5={hour:fe,minute:fe,second:fe,timeZoneName:Er},n5={hour:fe,minute:fe,second:fe,timeZoneName:hr},i5={hour:fe,minute:fe,hourCycle:"h23"},o5={hour:fe,minute:fe,second:fe,hourCycle:"h23"},s5={hour:fe,minute:fe,second:fe,hourCycle:"h23",timeZoneName:Er},a5={hour:fe,minute:fe,second:fe,hourCycle:"h23",timeZoneName:hr},l5={year:fe,month:fe,day:fe,hour:fe,minute:fe},c5={year:fe,month:fe,day:fe,hour:fe,minute:fe,second:fe},u5={year:fe,month:Er,day:fe,hour:fe,minute:fe},d5={year:fe,month:Er,day:fe,hour:fe,minute:fe,second:fe},qL={year:fe,month:Er,day:fe,weekday:Er,hour:fe,minute:fe},h5={year:fe,month:hr,day:fe,hour:fe,minute:fe,timeZoneName:Er},f5={year:fe,month:hr,day:fe,hour:fe,minute:fe,second:fe,timeZoneName:Er},p5={year:fe,month:hr,day:fe,weekday:hr,hour:fe,minute:fe,timeZoneName:hr},g5={year:fe,month:hr,day:fe,weekday:hr,hour:fe,minute:fe,second:fe,timeZoneName:hr};class Ns{get type(){throw new _n}get name(){throw new _n}get ianaName(){return this.name}get isUniversal(){throw new _n}offsetName(e,n){throw new _n}formatOffset(e,n){throw new _n}offset(e){throw new _n}equals(e){throw new _n}get isValid(){throw new _n}}let cc=null;class Hl extends Ns{static get instance(){return cc===null&&(cc=new Hl),cc}get type(){return"system"}get name(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(e,{format:n,locale:o}){return b5(e,n,o)}formatOffset(e,n){return Cs(this.offset(e),n)}offset(e){return-new Date(e).getTimezoneOffset()}equals(e){return e.type==="system"}get isValid(){return!0}}let Ha={};function KL(i){return Ha[i]||(Ha[i]=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:i,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"})),Ha[i]}const YL={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};function XL(i,e){const n=i.format(e).replace(/\u200E/g,""),o=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(n),[,l,d,u,v,y,b,M]=o;return[u,l,d,v,y,b,M]}function JL(i,e){const n=i.formatToParts(e),o=[];for(let l=0;l<n.length;l++){const{type:d,value:u}=n[l],v=YL[d];d==="era"?o[v]=u:Ze(v)||(o[v]=parseInt(u,10))}return o}let Oa={};class hn extends Ns{static create(e){return Oa[e]||(Oa[e]=new hn(e)),Oa[e]}static resetCache(){Oa={},Ha={}}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=hn.isValidZone(e)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(e,{format:n,locale:o}){return b5(e,n,o,this.name)}formatOffset(e,n){return Cs(this.offset(e),n)}offset(e){const n=new Date(e);if(isNaN(n))return NaN;const o=KL(this.name);let[l,d,u,v,y,b,M]=o.formatToParts?JL(o,n):XL(o,n);v==="BC"&&(l=-Math.abs(l)+1);const T=Fl({year:l,month:d,day:u,hour:y===24?0:y,minute:b,second:M,millisecond:0});let $=+n;const N=$%1e3;return $-=N>=0?N:1e3+N,(T-$)/(60*1e3)}equals(e){return e.type==="iana"&&e.name===this.name}get isValid(){return this.valid}}let rf={};function QL(i,e={}){const n=JSON.stringify([i,e]);let o=rf[n];return o||(o=new Intl.ListFormat(i,e),rf[n]=o),o}let Hc={};function Rc(i,e={}){const n=JSON.stringify([i,e]);let o=Hc[n];return o||(o=new Intl.DateTimeFormat(i,e),Hc[n]=o),o}let Fc={};function eS(i,e={}){const n=JSON.stringify([i,e]);let o=Fc[n];return o||(o=new Intl.NumberFormat(i,e),Fc[n]=o),o}let Bc={};function tS(i,e={}){const{base:n,...o}=e,l=JSON.stringify([i,o]);let d=Bc[l];return d||(d=new Intl.RelativeTimeFormat(i,e),Bc[l]=d),d}let bs=null;function rS(){return bs||(bs=new Intl.DateTimeFormat().resolvedOptions().locale,bs)}function nS(i){const e=i.indexOf("-x-");e!==-1&&(i=i.substring(0,e));const n=i.indexOf("-u-");if(n===-1)return[i];{let o,l;try{o=Rc(i).resolvedOptions(),l=i}catch{const y=i.substring(0,n);o=Rc(y).resolvedOptions(),l=y}const{numberingSystem:d,calendar:u}=o;return[l,d,u]}}function iS(i,e,n){return(n||e)&&(i.includes("-u-")||(i+="-u"),n&&(i+=`-ca-${n}`),e&&(i+=`-nu-${e}`)),i}function oS(i){const e=[];for(let n=1;n<=12;n++){const o=Ee.utc(2009,n,1);e.push(i(o))}return e}function sS(i){const e=[];for(let n=1;n<=7;n++){const o=Ee.utc(2016,11,13+n);e.push(i(o))}return e}function $a(i,e,n,o){const l=i.listingMode();return l==="error"?null:l==="en"?n(e):o(e)}function aS(i){return i.numberingSystem&&i.numberingSystem!=="latn"?!1:i.numberingSystem==="latn"||!i.locale||i.locale.startsWith("en")||new Intl.DateTimeFormat(i.intl).resolvedOptions().numberingSystem==="latn"}class lS{constructor(e,n,o){this.padTo=o.padTo||0,this.floor=o.floor||!1;const{padTo:l,floor:d,...u}=o;if(!n||Object.keys(u).length>0){const v={useGrouping:!1,...o};o.padTo>0&&(v.minimumIntegerDigits=o.padTo),this.inf=eS(e,v)}}format(e){if(this.inf){const n=this.floor?Math.floor(e):e;return this.inf.format(n)}else{const n=this.floor?Math.floor(e):zu(e,3);return yt(n,this.padTo)}}}class cS{constructor(e,n,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&&hn.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=Rc(n,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(n=>{if(n.type==="timeZoneName"){const o=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...n,value:o}}else return n}):e}resolvedOptions(){return this.dtf.resolvedOptions()}}class uS{constructor(e,n,o){this.opts={style:"long",...o},!n&&v5()&&(this.rtf=tS(e,o))}format(e,n){return this.rtf?this.rtf.format(e,n):TS(n,e,this.opts.numeric,this.opts.style!=="long")}formatToParts(e,n){return this.rtf?this.rtf.formatToParts(e,n):[]}}class nt{static fromOpts(e){return nt.create(e.locale,e.numberingSystem,e.outputCalendar,e.defaultToEN)}static create(e,n,o,l=!1){const d=e||mt.defaultLocale,u=d||(l?"en-US":rS()),v=n||mt.defaultNumberingSystem,y=o||mt.defaultOutputCalendar;return new nt(u,v,y,d)}static resetCache(){bs=null,Hc={},Fc={},Bc={}}static fromObject({locale:e,numberingSystem:n,outputCalendar:o}={}){return nt.create(e,n,o)}constructor(e,n,o,l){const[d,u,v]=nS(e);this.locale=d,this.numberingSystem=n||u||null,this.outputCalendar=o||v||null,this.intl=iS(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=aS(this)),this.fastNumbersCached}listingMode(){const e=this.isEnglish(),n=(this.numberingSystem===null||this.numberingSystem==="latn")&&(this.outputCalendar===null||this.outputCalendar==="gregory");return e&&n?"en":"intl"}clone(e){return!e||Object.getOwnPropertyNames(e).length===0?this:nt.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,n=!1){return $a(this,e,C5,()=>{const o=n?{month:e,day:"numeric"}:{month:e},l=n?"format":"standalone";return this.monthsCache[l][e]||(this.monthsCache[l][e]=oS(d=>this.extract(d,o,"month"))),this.monthsCache[l][e]})}weekdays(e,n=!1){return $a(this,e,z5,()=>{const o=n?{weekday:e,year:"numeric",month:"long",day:"numeric"}:{weekday:e},l=n?"format":"standalone";return this.weekdaysCache[l][e]||(this.weekdaysCache[l][e]=sS(d=>this.extract(d,o,"weekday"))),this.weekdaysCache[l][e]})}meridiems(){return $a(this,void 0,()=>L5,()=>{if(!this.meridiemCache){const e={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[Ee.utc(2016,11,13,9),Ee.utc(2016,11,13,19)].map(n=>this.extract(n,e,"dayperiod"))}return this.meridiemCache})}eras(e){return $a(this,e,S5,()=>{const n={era:e};return this.eraCache[e]||(this.eraCache[e]=[Ee.utc(-40,1,1),Ee.utc(2017,1,1)].map(o=>this.extract(o,n,"era"))),this.eraCache[e]})}extract(e,n,o){const l=this.dtFormatter(e,n),d=l.formatToParts(),u=d.find(v=>v.type.toLowerCase()===o);return u?u.value:null}numberFormatter(e={}){return new lS(this.intl,e.forceSimple||this.fastNumbers,e)}dtFormatter(e,n={}){return new cS(e,this.intl,n)}relFormatter(e={}){return new uS(this.intl,this.isEnglish(),e)}listFormatter(e={}){return QL(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 uc=null;class Gt extends Ns{static get utcInstance(){return uc===null&&(uc=new Gt(0)),uc}static instance(e){return e===0?Gt.utcInstance:new Gt(e)}static parseSpecifier(e){if(e){const n=e.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(n)return new Gt(Bl(n[1],n[2]))}return null}constructor(e){super(),this.fixed=e}get type(){return"fixed"}get name(){return this.fixed===0?"UTC":`UTC${Cs(this.fixed,"narrow")}`}get ianaName(){return this.fixed===0?"Etc/UTC":`Etc/GMT${Cs(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(e,n){return Cs(this.fixed,n)}get isUniversal(){return!0}offset(){return this.fixed}equals(e){return e.type==="fixed"&&e.fixed===this.fixed}get isValid(){return!0}}class dS extends Ns{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 Dn(i,e){if(Ze(i)||i===null)return e;if(i instanceof Ns)return i;if(hS(i)){const n=i.toLowerCase();return n==="default"?e:n==="local"||n==="system"?Hl.instance:n==="utc"||n==="gmt"?Gt.utcInstance:Gt.parseSpecifier(n)||hn.create(i)}else return pi(i)?Gt.instance(i):typeof i=="object"&&"offset"in i&&typeof i.offset=="function"?i:new dS(i)}let nf=()=>Date.now(),of="system",sf=null,af=null,lf=null,cf=60,uf;class mt{static get now(){return nf}static set now(e){nf=e}static set defaultZone(e){of=e}static get defaultZone(){return Dn(of,Hl.instance)}static get defaultLocale(){return sf}static set defaultLocale(e){sf=e}static get defaultNumberingSystem(){return af}static set defaultNumberingSystem(e){af=e}static get defaultOutputCalendar(){return lf}static set defaultOutputCalendar(e){lf=e}static get twoDigitCutoffYear(){return cf}static set twoDigitCutoffYear(e){cf=e%100}static get throwOnInvalid(){return uf}static set throwOnInvalid(e){uf=e}static resetCaches(){nt.resetCache(),hn.resetCache()}}function Ze(i){return typeof i=="undefined"}function pi(i){return typeof i=="number"}function Rl(i){return typeof i=="number"&&i%1===0}function hS(i){return typeof i=="string"}function fS(i){return Object.prototype.toString.call(i)==="[object Date]"}function v5(){try{return typeof Intl!="undefined"&&!!Intl.RelativeTimeFormat}catch{return!1}}function pS(i){return Array.isArray(i)?i:[i]}function df(i,e,n){if(i.length!==0)return i.reduce((o,l)=>{const d=[e(l),l];return o&&n(o[0],d[0])===o[0]?o:d},null)[1]}function gS(i,e){return e.reduce((n,o)=>(n[o]=i[o],n),{})}function ho(i,e){return Object.prototype.hasOwnProperty.call(i,e)}function un(i,e,n){return Rl(i)&&i>=e&&i<=n}function vS(i,e){return i-e*Math.floor(i/e)}function yt(i,e=2){const n=i<0;let o;return n?o="-"+(""+-i).padStart(e,"0"):o=(""+i).padStart(e,"0"),o}function An(i){if(!(Ze(i)||i===null||i===""))return parseInt(i,10)}function si(i){if(!(Ze(i)||i===null||i===""))return parseFloat(i)}function xu(i){if(!(Ze(i)||i===null||i==="")){const e=parseFloat("0."+i)*1e3;return Math.floor(e)}}function zu(i,e,n=!1){const o=10**e;return(n?Math.trunc:Math.round)(i*o)/o}function Hs(i){return i%4===0&&(i%100!==0||i%400===0)}function ys(i){return Hs(i)?366:365}function ll(i,e){const n=vS(e-1,12)+1,o=i+(e-n)/12;return n===2?Hs(o)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][n-1]}function Fl(i){let e=Date.UTC(i.year,i.month-1,i.day,i.hour,i.minute,i.second,i.millisecond);return i.year<100&&i.year>=0&&(e=new Date(e),e.setUTCFullYear(i.year,i.month-1,i.day)),+e}function cl(i){const e=(i+Math.floor(i/4)-Math.floor(i/100)+Math.floor(i/400))%7,n=i-1,o=(n+Math.floor(n/4)-Math.floor(n/100)+Math.floor(n/400))%7;return e===4||o===3?53:52}function Vc(i){return i>99?i:i>mt.twoDigitCutoffYear?1900+i:2e3+i}function b5(i,e,n,o=null){const l=new Date(i),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(n,u).formatToParts(l).find(y=>y.type.toLowerCase()==="timezonename");return v?v.value:null}function Bl(i,e){let n=parseInt(i,10);Number.isNaN(n)&&(n=0);const o=parseInt(e,10)||0,l=n<0||Object.is(n,-0)?-o:o;return n*60+l}function m5(i){const e=Number(i);if(typeof i=="boolean"||i===""||Number.isNaN(e))throw new gr(`Invalid unit value ${i}`);return e}function ul(i,e){const n={};for(const o in i)if(ho(i,o)){const l=i[o];if(l==null)continue;n[e(o)]=m5(l)}return n}function Cs(i,e){const n=Math.trunc(Math.abs(i/60)),o=Math.trunc(Math.abs(i%60)),l=i>=0?"+":"-";switch(e){case"short":return`${l}${yt(n,2)}:${yt(o,2)}`;case"narrow":return`${l}${n}${o>0?`:${o}`:""}`;case"techie":return`${l}${yt(n,2)}${yt(o,2)}`;default:throw new RangeError(`Value format ${e} is out of range for property format`)}}function Vl(i){return gS(i,["hour","minute","second","millisecond"])}const bS=["January","February","March","April","May","June","July","August","September","October","November","December"],y5=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],mS=["J","F","M","A","M","J","J","A","S","O","N","D"];function C5(i){switch(i){case"narrow":return[...mS];case"short":return[...y5];case"long":return[...bS];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 w5=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],x5=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],yS=["M","T","W","T","F","S","S"];function z5(i){switch(i){case"narrow":return[...yS];case"short":return[...x5];case"long":return[...w5];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}const L5=["AM","PM"],CS=["Before Christ","Anno Domini"],wS=["BC","AD"],xS=["B","A"];function S5(i){switch(i){case"narrow":return[...xS];case"short":return[...wS];case"long":return[...CS];default:return null}}function zS(i){return L5[i.hour<12?0:1]}function LS(i,e){return z5(e)[i.weekday-1]}function SS(i,e){return C5(e)[i.month-1]}function MS(i,e){return S5(e)[i.year<0?0:1]}function TS(i,e,n="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(i)===-1;if(n==="auto"&&d){const L=i==="days";switch(e){case 1:return L?"tomorrow":`next ${l[i][0]}`;case-1:return L?"yesterday":`last ${l[i][0]}`;case 0:return L?"today":`this ${l[i][0]}`}}const u=Object.is(e,-0)||e<0,v=Math.abs(e),y=v===1,b=l[i],M=o?y?b[1]:b[2]||b[1]:y?l[i][0]:i;return u?`${v} ${M} ago`:`in ${v} ${M}`}function hf(i,e){let n="";for(const o of i)o.literal?n+=o.val:n+=e(o.val);return n}const kS={D:al,DD:Xp,DDD:Jp,DDDD:Qp,t:e5,tt:t5,ttt:r5,tttt:n5,T:i5,TT:o5,TTT:s5,TTTT:a5,f:l5,ff:u5,fff:h5,ffff:p5,F:c5,FF:d5,FFF:f5,FFFF:g5};class Rt{static create(e,n={}){return new Rt(e,n)}static parseFormat(e){let n=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}),n=null,o="",l=!l):l||v===n?o+=v:(o.length>0&&d.push({literal:/^\s+$/.test(o),val:o}),o=v,n=v)}return o.length>0&&d.push({literal:l||/^\s+$/.test(o),val:o}),d}static macroTokenToFormatOpts(e){return kS[e]}constructor(e,n){this.opts=n,this.loc=e,this.systemLoc=null}formatWithSystemDefault(e,n){return this.systemLoc===null&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(e,{...this.opts,...n}).format()}dtFormatter(e,n={}){return this.loc.dtFormatter(e,{...this.opts,...n})}formatDateTime(e,n){return this.dtFormatter(e,n).format()}formatDateTimeParts(e,n){return this.dtFormatter(e,n).formatToParts()}formatInterval(e,n){return this.dtFormatter(e.start,n).dtf.formatRange(e.start.toJSDate(),e.end.toJSDate())}resolvedOptions(e,n){return this.dtFormatter(e,n).resolvedOptions()}num(e,n=0){if(this.opts.forceSimple)return yt(e,n);const o={...this.opts};return n>0&&(o.padTo=n),this.loc.numberFormatter(o).format(e)}formatDateTimeFromString(e,n){const o=this.loc.listingMode()==="en",l=this.loc.outputCalendar&&this.loc.outputCalendar!=="gregory",d=($,N)=>this.loc.extract(e,$,N),u=$=>e.isOffsetFixed&&e.offset===0&&$.allowZ?"Z":e.isValid?e.zone.formatOffset(e.ts,$.format):"",v=()=>o?zS(e):d({hour:"numeric",hourCycle:"h12"},"dayperiod"),y=($,N)=>o?SS(e,$):d(N?{month:$}:{month:$,day:"numeric"},"month"),b=($,N)=>o?LS(e,$):d(N?{weekday:$}:{weekday:$,month:"long",day:"numeric"},"weekday"),M=$=>{const N=Rt.macroTokenToFormatOpts($);return N?this.formatWithSystemDefault(e,N):$},L=$=>o?MS(e,$):d({era:$},"era"),T=$=>{switch($){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 b("short",!0);case"cccc":return b("long",!0);case"ccccc":return b("narrow",!0);case"E":return this.num(e.weekday);case"EEE":return b("short",!1);case"EEEE":return b("long",!1);case"EEEEE":return b("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 y("short",!0);case"LLLL":return y("long",!0);case"LLLLL":return y("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 y("short",!1);case"MMMM":return y("long",!1);case"MMMMM":return y("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 L("short");case"GG":return L("long");case"GGGGG":return L("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 M($)}};return hf(Rt.parseFormat(n),T)}formatDurationFromString(e,n){const o=y=>{switch(y[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=y=>b=>{const M=o(b);return M?this.num(y.get(M),b.length):b},d=Rt.parseFormat(n),u=d.reduce((y,{literal:b,val:M})=>b?y:y.concat(M),[]),v=e.shiftTo(...u.map(o).filter(y=>y));return hf(d,l(v))}}class kr{constructor(e,n){this.reason=e,this.explanation=n}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}const M5=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function wo(...i){const e=i.reduce((n,o)=>n+o.source,"");return RegExp(`^${e}$`)}function xo(...i){return e=>i.reduce(([n,o,l],d)=>{const[u,v,y]=d(e,l);return[{...n,...u},v||o,y]},[{},null,1]).slice(0,2)}function zo(i,...e){if(i==null)return[null,null];for(const[n,o]of e){const l=n.exec(i);if(l)return o(l)}return[null,null]}function T5(...i){return(e,n)=>{const o={};let l;for(l=0;l<i.length;l++)o[i[l]]=An(e[n+l]);return[o,null,n+l]}}const k5=/(?:(Z)|([+-]\d\d)(?::?(\d\d))?)/,OS=`(?:${k5.source}?(?:\\[(${M5.source})\\])?)?`,Lu=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,O5=RegExp(`${Lu.source}${OS}`),Su=RegExp(`(?:T${O5.source})?`),$S=/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,ES=/(\d{4})-?W(\d\d)(?:-?(\d))?/,_S=/(\d{4})-?(\d{3})/,IS=T5("weekYear","weekNumber","weekDay"),AS=T5("year","ordinal"),PS=/(\d{4})-(\d\d)-(\d\d)/,$5=RegExp(`${Lu.source} ?(?:${k5.source}|(${M5.source}))?`),DS=RegExp(`(?: ${$5.source})?`);function io(i,e,n){const o=i[e];return Ze(o)?n:An(o)}function NS(i,e){return[{year:io(i,e),month:io(i,e+1,1),day:io(i,e+2,1)},null,e+3]}function Lo(i,e){return[{hours:io(i,e,0),minutes:io(i,e+1,0),seconds:io(i,e+2,0),milliseconds:xu(i[e+3])},null,e+4]}function Rs(i,e){const n=!i[e]&&!i[e+1],o=Bl(i[e+1],i[e+2]),l=n?null:Gt.instance(o);return[{},l,e+3]}function Fs(i,e){const n=i[e]?hn.create(i[e]):null;return[{},n,e+1]}const HS=RegExp(`^T?${Lu.source}$`),RS=/^-?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 FS(i){const[e,n,o,l,d,u,v,y,b]=i,M=e[0]==="-",L=y&&y[0]==="-",T=($,N=!1)=>$!==void 0&&(N||$&&M)?-$:$;return[{years:T(si(n)),months:T(si(o)),weeks:T(si(l)),days:T(si(d)),hours:T(si(u)),minutes:T(si(v)),seconds:T(si(y),y==="-0"),milliseconds:T(xu(b),L)}]}const BS={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 Mu(i,e,n,o,l,d,u){const v={year:e.length===2?Vc(An(e)):An(e),month:y5.indexOf(n)+1,day:An(o),hour:An(l),minute:An(d)};return u&&(v.second=An(u)),i&&(v.weekday=i.length>3?w5.indexOf(i)+1:x5.indexOf(i)+1),v}const VS=/^(?:(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 ZS(i){const[,e,n,o,l,d,u,v,y,b,M,L]=i,T=Mu(e,l,o,n,d,u,v);let $;return y?$=BS[y]:b?$=0:$=Bl(M,L),[T,new Gt($)]}function WS(i){return i.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}const US=/^(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$/,jS=/^(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$/,GS=/^(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 ff(i){const[,e,n,o,l,d,u,v]=i;return[Mu(e,l,o,n,d,u,v),Gt.utcInstance]}function qS(i){const[,e,n,o,l,d,u,v]=i;return[Mu(e,v,n,o,l,d,u),Gt.utcInstance]}const KS=wo($S,Su),YS=wo(ES,Su),XS=wo(_S,Su),JS=wo(O5),E5=xo(NS,Lo,Rs,Fs),QS=xo(IS,Lo,Rs,Fs),eM=xo(AS,Lo,Rs,Fs),tM=xo(Lo,Rs,Fs);function rM(i){return zo(i,[KS,E5],[YS,QS],[XS,eM],[JS,tM])}function nM(i){return zo(WS(i),[VS,ZS])}function iM(i){return zo(i,[US,ff],[jS,ff],[GS,qS])}function oM(i){return zo(i,[RS,FS])}const sM=xo(Lo);function aM(i){return zo(i,[HS,sM])}const lM=wo(PS,DS),cM=wo($5),uM=xo(Lo,Rs,Fs);function dM(i){return zo(i,[lM,E5],[cM,uM])}const hM="Invalid Duration",_5={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}},fM={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},..._5},pr=146097/400,Qi=146097/4800,pM={years:{quarters:4,months:12,weeks:pr/7,days:pr,hours:pr*24,minutes:pr*24*60,seconds:pr*24*60*60,milliseconds:pr*24*60*60*1e3},quarters:{months:3,weeks:pr/28,days:pr/4,hours:pr*24/4,minutes:pr*24*60/4,seconds:pr*24*60*60/4,milliseconds:pr*24*60*60*1e3/4},months:{weeks:Qi/7,days:Qi,hours:Qi*24,minutes:Qi*24*60,seconds:Qi*24*60*60,milliseconds:Qi*24*60*60*1e3},..._5},ci=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],I5=ci.slice(0).reverse();function In(i,e,n=!1){const o={values:n?e.values:{...i.values,...e.values||{}},loc:i.loc.clone(e.loc),conversionAccuracy:e.conversionAccuracy||i.conversionAccuracy,matrix:e.matrix||i.matrix};return new We(o)}function pf(i){return Math.trunc(i*1e3)/1e3}function A5(i,e,n,o,l){const d=i[l][n],u=e[n]/d,v=Math.floor(u);o[l]=pf(o[l]+v),e[n]=pf(e[n]-v*d)}function gM(i,e){I5.reduce((n,o)=>Ze(e[o])?n:(n&&A5(i,e,n,e,o),o),null)}function vM(i){const e={};for(const[n,o]of Object.entries(i))o!==0&&(e[n]=o);return e}class We{constructor(e){const n=e.conversionAccuracy==="longterm"||!1;let o=n?pM:fM;e.matrix&&(o=e.matrix),this.values=e.values,this.loc=e.loc||nt.create(),this.conversionAccuracy=n?"longterm":"casual",this.invalid=e.invalid||null,this.matrix=o,this.isLuxonDuration=!0}static fromMillis(e,n){return We.fromObject({milliseconds:e},n)}static fromObject(e,n={}){if(e==null||typeof e!="object")throw new gr(`Duration.fromObject: argument expected to be an object, got ${e===null?"null":typeof e}`);return new We({values:ul(e,We.normalizeUnit),loc:nt.fromObject(n),conversionAccuracy:n.conversionAccuracy,matrix:n.matrix})}static fromDurationLike(e){if(pi(e))return We.fromMillis(e);if(We.isDuration(e))return e;if(typeof e=="object")return We.fromObject(e);throw new gr(`Unknown duration argument ${e} of type ${typeof e}`)}static fromISO(e,n){const[o]=oM(e);return o?We.fromObject(o,n):We.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static fromISOTime(e,n){const[o]=aM(e);return o?We.fromObject(o,n):We.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static invalid(e,n=null){if(!e)throw new gr("need to specify a reason the Duration is invalid");const o=e instanceof kr?e:new kr(e,n);if(mt.throwOnInvalid)throw new jL(o);return new We({invalid:o})}static normalizeUnit(e){const n={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(!n)throw new Yp(e);return n}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,n={}){const o={...n,floor:n.round!==!1&&n.floor!==!1};return this.isValid?Rt.create(this.loc,o).formatDurationFromString(this,e):hM}toHuman(e={}){const n=ci.map(o=>{const l=this.values[o];return Ze(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(n)}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+=zu(this.seconds+this.milliseconds/1e3,3)+"S"),e==="P"&&(e+="T0S"),e}toISOTime(e={}){if(!this.isValid)return null;const n=this.toMillis();return n<0||n>=864e5?null:(e={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...e,includeOffset:!1},Ee.fromMillis(n,{zone:"UTC"}).toISOTime(e))}toJSON(){return this.toISO()}toString(){return this.toISO()}toMillis(){var n,o;let e=(n=this.values.milliseconds)!=null?n:0;for(let l of I5.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 n=We.fromDurationLike(e),o={};for(const l of ci)(ho(n.values,l)||ho(this.values,l))&&(o[l]=n.get(l)+this.get(l));return In(this,{values:o},!0)}minus(e){if(!this.isValid)return this;const n=We.fromDurationLike(e);return this.plus(n.negate())}mapUnits(e){if(!this.isValid)return this;const n={};for(const o of Object.keys(this.values))n[o]=m5(e(this.values[o],o));return In(this,{values:n},!0)}get(e){return this[We.normalizeUnit(e)]}set(e){if(!this.isValid)return this;const n={...this.values,...ul(e,We.normalizeUnit)};return In(this,{values:n})}reconfigure({locale:e,numberingSystem:n,conversionAccuracy:o,matrix:l}={}){const u={loc:this.loc.clone({locale:e,numberingSystem:n}),matrix:l,conversionAccuracy:o};return In(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?(gM(this.matrix,e),In(this,{values:e},!0)):this.negate().normalize().negate()}rescale(){if(!this.isValid)return this;const e=vM(this.normalize().shiftToAll().toObject());return In(this,{values:e},!0)}shiftTo(...e){if(!this.isValid)return this;if(e.length===0)return this;e=e.map(u=>We.normalizeUnit(u));const n={},o={},l=this.toObject();let d;for(const u of ci)if(e.indexOf(u)>=0){d=u;let v=0;for(const b in o)v+=this.matrix[b][u]*o[b],o[b]=0;pi(l[u])&&(v+=l[u]);const y=Math.trunc(v);n[u]=y,o[u]=(v*1e3-y*1e3)/1e3;for(const b in l)ci.indexOf(b)>ci.indexOf(u)&&A5(this.matrix,l,b,n,u)}else pi(l[u])&&(o[u]=l[u]);for(const u in o)o[u]!==0&&(n[d]+=u===d?o[u]:o[u]/this.matrix[d][u]);return In(this,{values:n},!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 n of Object.keys(this.values))e[n]=this.values[n]===0?0:-this.values[n];return In(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 n(o,l){return o===void 0||o===0?l===void 0||l===0:o===l}for(const o of ci)if(!n(this.values[o],e.values[o]))return!1;return!0}}const eo="Invalid Interval";function bM(i,e){return!i||!i.isValid?dt.invalid("missing or invalid start"):!e||!e.isValid?dt.invalid("missing or invalid end"):e<i?dt.invalid("end before start",`The end of an interval must be after its start, but you had start=${i.toISO()} and end=${e.toISO()}`):null}class dt{constructor(e){this.s=e.start,this.e=e.end,this.invalid=e.invalid||null,this.isLuxonInterval=!0}static invalid(e,n=null){if(!e)throw new gr("need to specify a reason the Interval is invalid");const o=e instanceof kr?e:new kr(e,n);if(mt.throwOnInvalid)throw new UL(o);return new dt({invalid:o})}static fromDateTimes(e,n){const o=fs(e),l=fs(n),d=bM(o,l);return d==null?new dt({start:o,end:l}):d}static after(e,n){const o=We.fromDurationLike(n),l=fs(e);return dt.fromDateTimes(l,l.plus(o))}static before(e,n){const o=We.fromDurationLike(n),l=fs(e);return dt.fromDateTimes(l.minus(o),l)}static fromISO(e,n){const[o,l]=(e||"").split("/",2);if(o&&l){let d,u;try{d=Ee.fromISO(o,n),u=d.isValid}catch{u=!1}let v,y;try{v=Ee.fromISO(l,n),y=v.isValid}catch{y=!1}if(u&&y)return dt.fromDateTimes(d,v);if(u){const b=We.fromISO(l,n);if(b.isValid)return dt.after(d,b)}else if(y){const b=We.fromISO(o,n);if(b.isValid)return dt.before(v,b)}}return dt.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 n=this.start.startOf(e),o=this.end.startOf(e);return Math.floor(o.diff(n,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:n}={}){return this.isValid?dt.fromDateTimes(e||this.s,n||this.e):this}splitAt(...e){if(!this.isValid)return[];const n=e.map(fs).filter(u=>this.contains(u)).sort(),o=[];let{s:l}=this,d=0;for(;l<this.e;){const u=n[d]||this.e,v=+u>+this.e?this.e:u;o.push(dt.fromDateTimes(l,v)),l=v,d+=1}return o}splitBy(e){const n=We.fromDurationLike(e);if(!this.isValid||!n.isValid||n.as("milliseconds")===0)return[];let{s:o}=this,l=1,d;const u=[];for(;o<this.e;){const v=this.start.plus(n.mapUnits(y=>y*l));d=+v>+this.e?this.e:v,u.push(dt.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 n=this.s>e.s?this.s:e.s,o=this.e<e.e?this.e:e.e;return n>=o?null:dt.fromDateTimes(n,o)}union(e){if(!this.isValid)return this;const n=this.s<e.s?this.s:e.s,o=this.e>e.e?this.e:e.e;return dt.fromDateTimes(n,o)}static merge(e){const[n,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&&n.push(o),n}static xor(e){let n=null,o=0;const l=[],d=e.map(y=>[{time:y.s,type:"s"},{time:y.e,type:"e"}]),u=Array.prototype.concat(...d),v=u.sort((y,b)=>y.time-b.time);for(const y of v)o+=y.type==="s"?1:-1,o===1?n=y.time:(n&&+n!=+y.time&&l.push(dt.fromDateTimes(n,y.time)),n=null);return dt.merge(l)}difference(...e){return dt.xor([this].concat(e)).map(n=>this.intersection(n)).filter(n=>n&&!n.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} – ${this.e.toISO()})`:eo}toLocaleString(e=al,n={}){return this.isValid?Rt.create(this.s.loc.clone(n),e).formatInterval(this):eo}toISO(e){return this.isValid?`${this.s.toISO(e)}/${this.e.toISO(e)}`:eo}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:eo}toISOTime(e){return this.isValid?`${this.s.toISOTime(e)}/${this.e.toISOTime(e)}`:eo}toFormat(e,{separator:n=" – "}={}){return this.isValid?`${this.s.toFormat(e)}${n}${this.e.toFormat(e)}`:eo}toDuration(e,n){return this.isValid?this.e.diff(this.s,e,n):We.invalid(this.invalidReason)}mapEndpoints(e){return dt.fromDateTimes(e(this.s),e(this.e))}}class Ea{static hasDST(e=mt.defaultZone){const n=Ee.now().setZone(e).set({month:12});return!e.isUniversal&&n.offset!==n.set({month:6}).offset}static isValidIANAZone(e){return hn.isValidZone(e)}static normalizeZone(e){return Dn(e,mt.defaultZone)}static months(e="long",{locale:n=null,numberingSystem:o=null,locObj:l=null,outputCalendar:d="gregory"}={}){return(l||nt.create(n,o,d)).months(e)}static monthsFormat(e="long",{locale:n=null,numberingSystem:o=null,locObj:l=null,outputCalendar:d="gregory"}={}){return(l||nt.create(n,o,d)).months(e,!0)}static weekdays(e="long",{locale:n=null,numberingSystem:o=null,locObj:l=null}={}){return(l||nt.create(n,o,null)).weekdays(e)}static weekdaysFormat(e="long",{locale:n=null,numberingSystem:o=null,locObj:l=null}={}){return(l||nt.create(n,o,null)).weekdays(e,!0)}static meridiems({locale:e=null}={}){return nt.create(e).meridiems()}static eras(e="short",{locale:n=null}={}){return nt.create(n,null,"gregory").eras(e)}static features(){return{relative:v5()}}}function gf(i,e){const n=l=>l.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),o=n(e)-n(i);return Math.floor(We.fromMillis(o).as("days"))}function mM(i,e,n){const o=[["years",(y,b)=>b.year-y.year],["quarters",(y,b)=>b.quarter-y.quarter+(b.year-y.year)*4],["months",(y,b)=>b.month-y.month+(b.year-y.year)*12],["weeks",(y,b)=>{const M=gf(y,b);return(M-M%7)/7}],["days",gf]],l={},d=i;let u,v;for(const[y,b]of o)n.indexOf(y)>=0&&(u=y,l[y]=b(i,e),v=d.plus(l),v>e?(l[y]--,i=d.plus(l),i>e&&(v=i,l[y]--,i=d.plus(l))):i=v);return[i,l,v,u]}function yM(i,e,n,o){let[l,d,u,v]=mM(i,e,n);const y=e-l,b=n.filter(L=>["hours","minutes","seconds","milliseconds"].indexOf(L)>=0);b.length===0&&(u<e&&(u=l.plus({[v]:1})),u!==l&&(d[v]=(d[v]||0)+y/(u-l)));const M=We.fromObject(d,o);return b.length>0?We.fromMillis(y,o).shiftTo(...b).plus(M):M}const Tu={arab:"[٠-٩]",arabext:"[۰-۹]",bali:"[᭐-᭙]",beng:"[০-৯]",deva:"[०-९]",fullwide:"[0-9]",gujr:"[૦-૯]",hanidec:"[〇|一|二|三|四|五|六|七|八|九]",khmr:"[០-៩]",knda:"[೦-೯]",laoo:"[໐-໙]",limb:"[᥆-᥏]",mlym:"[൦-൯]",mong:"[᠐-᠙]",mymr:"[၀-၉]",orya:"[୦-୯]",tamldec:"[௦-௯]",telu:"[౦-౯]",thai:"[๐-๙]",tibt:"[༠-༩]",latn:"\\d"},vf={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]},CM=Tu.hanidec.replace(/[\[|\]]/g,"").split("");function wM(i){let e=parseInt(i,10);if(isNaN(e)){e="";for(let n=0;n<i.length;n++){const o=i.charCodeAt(n);if(i[n].search(Tu.hanidec)!==-1)e+=CM.indexOf(i[n]);else for(const l in vf){const[d,u]=vf[l];o>=d&&o<=u&&(e+=o-d)}}return parseInt(e,10)}else return e}function Sr({numberingSystem:i},e=""){return new RegExp(`${Tu[i||"latn"]}${e}`)}const xM="missing Intl.DateTimeFormat.formatToParts support";function qe(i,e=n=>n){return{regex:i,deser:([n])=>e(wM(n))}}const zM=String.fromCharCode(160),P5=`[ ${zM}]`,D5=new RegExp(P5,"g");function LM(i){return i.replace(/\./g,"\\.?").replace(D5,P5)}function bf(i){return i.replace(/\./g,"").replace(D5," ").toLowerCase()}function Mr(i,e){return i===null?null:{regex:RegExp(i.map(LM).join("|")),deser:([n])=>i.findIndex(o=>bf(n)===bf(o))+e}}function mf(i,e){return{regex:i,deser:([,n,o])=>Bl(n,o),groups:e}}function _a(i){return{regex:i,deser:([e])=>e}}function SM(i){return i.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function MM(i,e){const n=Sr(e),o=Sr(e,"{2}"),l=Sr(e,"{3}"),d=Sr(e,"{4}"),u=Sr(e,"{6}"),v=Sr(e,"{1,2}"),y=Sr(e,"{1,3}"),b=Sr(e,"{1,6}"),M=Sr(e,"{1,9}"),L=Sr(e,"{2,4}"),T=Sr(e,"{4,6}"),$=oe=>({regex:RegExp(SM(oe.val)),deser:([_])=>_,literal:!0}),Y=(oe=>{if(i.literal)return $(oe);switch(oe.val){case"G":return Mr(e.eras("short"),0);case"GG":return Mr(e.eras("long"),0);case"y":return qe(b);case"yy":return qe(L,Vc);case"yyyy":return qe(d);case"yyyyy":return qe(T);case"yyyyyy":return qe(u);case"M":return qe(v);case"MM":return qe(o);case"MMM":return Mr(e.months("short",!0),1);case"MMMM":return Mr(e.months("long",!0),1);case"L":return qe(v);case"LL":return qe(o);case"LLL":return Mr(e.months("short",!1),1);case"LLLL":return Mr(e.months("long",!1),1);case"d":return qe(v);case"dd":return qe(o);case"o":return qe(y);case"ooo":return qe(l);case"HH":return qe(o);case"H":return qe(v);case"hh":return qe(o);case"h":return qe(v);case"mm":return qe(o);case"m":return qe(v);case"q":return qe(v);case"qq":return qe(o);case"s":return qe(v);case"ss":return qe(o);case"S":return qe(y);case"SSS":return qe(l);case"u":return _a(M);case"uu":return _a(v);case"uuu":return qe(n);case"a":return Mr(e.meridiems(),0);case"kkkk":return qe(d);case"kk":return qe(L,Vc);case"W":return qe(v);case"WW":return qe(o);case"E":case"c":return qe(n);case"EEE":return Mr(e.weekdays("short",!1),1);case"EEEE":return Mr(e.weekdays("long",!1),1);case"ccc":return Mr(e.weekdays("short",!0),1);case"cccc":return Mr(e.weekdays("long",!0),1);case"Z":case"ZZ":return mf(new RegExp(`([+-]${v.source})(?::(${o.source}))?`),2);case"ZZZ":return mf(new RegExp(`([+-]${v.source})(${o.source})?`),2);case"z":return _a(/[a-z_+-/]{1,256}?/i);case" ":return _a(/[^\S\n\r]/);default:return $(oe)}})(i)||{invalidReason:xM};return Y.token=i,Y}const TM={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 kM(i,e,n){const{type:o,value:l}=i;if(o==="literal"){const y=/^\s+$/.test(l);return{literal:!y,val:y?" ":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=n.hour12?"hour12":"hour24");let v=TM[u];if(typeof v=="object"&&(v=v[d]),v)return{literal:!1,val:v}}function OM(i){return[`^${i.map(n=>n.regex).reduce((n,o)=>`${n}(${o.source})`,"")}$`,i]}function $M(i,e,n){const o=i.match(e);if(o){const l={};let d=1;for(const u in n)if(ho(n,u)){const v=n[u],y=v.groups?v.groups+1:1;!v.literal&&v.token&&(l[v.token.val[0]]=v.deser(o.slice(d,d+y))),d+=y}return[o,l]}else return[o,{}]}function EM(i){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 n=null,o;return Ze(i.z)||(n=hn.create(i.z)),Ze(i.Z)||(n||(n=new Gt(i.Z)),o=i.Z),Ze(i.q)||(i.M=(i.q-1)*3+1),Ze(i.h)||(i.h<12&&i.a===1?i.h+=12:i.h===12&&i.a===0&&(i.h=0)),i.G===0&&i.y&&(i.y=-i.y),Ze(i.u)||(i.S=xu(i.u)),[Object.keys(i).reduce((d,u)=>{const v=e(u);return v&&(d[v]=i[u]),d},{}),n,o]}let dc=null;function _M(){return dc||(dc=Ee.fromMillis(1555555555555)),dc}function IM(i,e){if(i.literal)return i;const n=Rt.macroTokenToFormatOpts(i.val),o=R5(n,e);return o==null||o.includes(void 0)?i:o}function N5(i,e){return Array.prototype.concat(...i.map(n=>IM(n,e)))}function H5(i,e,n){const o=N5(Rt.parseFormat(n),i),l=o.map(u=>MM(u,i)),d=l.find(u=>u.invalidReason);if(d)return{input:e,tokens:o,invalidReason:d.invalidReason};{const[u,v]=OM(l),y=RegExp(u,"i"),[b,M]=$M(e,y,v),[L,T,$]=M?EM(M):[null,null,void 0];if(ho(M,"a")&&ho(M,"H"))throw new vs("Can't include meridiem when specifying 24-hour format");return{input:e,tokens:o,regex:y,rawMatches:b,matches:M,result:L,zone:T,specificOffset:$}}}function AM(i,e,n){const{result:o,zone:l,specificOffset:d,invalidReason:u}=H5(i,e,n);return[o,l,d,u]}function R5(i,e){if(!i)return null;const o=Rt.create(e,i).dtFormatter(_M()),l=o.formatToParts(),d=o.resolvedOptions();return l.map(u=>kM(u,i,d))}const F5=[0,31,59,90,120,151,181,212,243,273,304,334],B5=[0,31,60,91,121,152,182,213,244,274,305,335];function vr(i,e){return new kr("unit out of range",`you specified ${e} (of type ${typeof e}) as a ${i}, which is invalid`)}function V5(i,e,n){const o=new Date(Date.UTC(i,e-1,n));i<100&&i>=0&&o.setUTCFullYear(o.getUTCFullYear()-1900);const l=o.getUTCDay();return l===0?7:l}function Z5(i,e,n){return n+(Hs(i)?B5:F5)[e-1]}function W5(i,e){const n=Hs(i)?B5:F5,o=n.findIndex(d=>d<e),l=e-n[o];return{month:o+1,day:l}}function Zc(i){const{year:e,month:n,day:o}=i,l=Z5(e,n,o),d=V5(e,n,o);let u=Math.floor((l-d+10)/7),v;return u<1?(v=e-1,u=cl(v)):u>cl(e)?(v=e+1,u=1):v=e,{weekYear:v,weekNumber:u,weekday:d,...Vl(i)}}function yf(i){const{weekYear:e,weekNumber:n,weekday:o}=i,l=V5(e,1,4),d=ys(e);let u=n*7+o-l-3,v;u<1?(v=e-1,u+=ys(v)):u>d?(v=e+1,u-=ys(e)):v=e;const{month:y,day:b}=W5(v,u);return{year:v,month:y,day:b,...Vl(i)}}function hc(i){const{year:e,month:n,day:o}=i,l=Z5(e,n,o);return{year:e,ordinal:l,...Vl(i)}}function Cf(i){const{year:e,ordinal:n}=i,{month:o,day:l}=W5(e,n);return{year:e,month:o,day:l,...Vl(i)}}function PM(i){const e=Rl(i.weekYear),n=un(i.weekNumber,1,cl(i.weekYear)),o=un(i.weekday,1,7);return e?n?o?!1:vr("weekday",i.weekday):vr("week",i.week):vr("weekYear",i.weekYear)}function DM(i){const e=Rl(i.year),n=un(i.ordinal,1,ys(i.year));return e?n?!1:vr("ordinal",i.ordinal):vr("year",i.year)}function U5(i){const e=Rl(i.year),n=un(i.month,1,12),o=un(i.day,1,ll(i.year,i.month));return e?n?o?!1:vr("day",i.day):vr("month",i.month):vr("year",i.year)}function j5(i){const{hour:e,minute:n,second:o,millisecond:l}=i,d=un(e,0,23)||e===24&&n===0&&o===0&&l===0,u=un(n,0,59),v=un(o,0,59),y=un(l,0,999);return d?u?v?y?!1:vr("millisecond",l):vr("second",o):vr("minute",n):vr("hour",e)}const fc="Invalid DateTime",wf=864e13;function Ia(i){return new kr("unsupported zone",`the zone "${i.name}" is not supported`)}function pc(i){return i.weekData===null&&(i.weekData=Zc(i.c)),i.weekData}function ai(i,e){const n={ts:i.ts,zone:i.zone,c:i.c,o:i.o,loc:i.loc,invalid:i.invalid};return new Ee({...n,...e,old:n})}function G5(i,e,n){let o=i-e*60*1e3;const l=n.offset(o);if(e===l)return[o,e];o-=(l-e)*60*1e3;const d=n.offset(o);return l===d?[o,l]:[i-Math.min(l,d)*60*1e3,Math.max(l,d)]}function Aa(i,e){i+=e*60*1e3;const n=new Date(i);return{year:n.getUTCFullYear(),month:n.getUTCMonth()+1,day:n.getUTCDate(),hour:n.getUTCHours(),minute:n.getUTCMinutes(),second:n.getUTCSeconds(),millisecond:n.getUTCMilliseconds()}}function Ra(i,e,n){return G5(Fl(i),e,n)}function xf(i,e){const n=i.o,o=i.c.year+Math.trunc(e.years),l=i.c.month+Math.trunc(e.months)+Math.trunc(e.quarters)*3,d={...i.c,year:o,month:l,day:Math.min(i.c.day,ll(o,l))+Math.trunc(e.days)+Math.trunc(e.weeks)*7},u=We.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=Fl(d);let[y,b]=G5(v,n,i.zone);return u!==0&&(y+=u,b=i.zone.offset(y)),{ts:y,o:b}}function hs(i,e,n,o,l,d){const{setZone:u,zone:v}=n;if(i&&Object.keys(i).length!==0||e){const y=e||v,b=Ee.fromObject(i,{...n,zone:y,specificOffset:d});return u?b:b.setZone(v)}else return Ee.invalid(new kr("unparsable",`the input "${l}" can't be parsed as ${o}`))}function Pa(i,e,n=!0){return i.isValid?Rt.create(nt.create("en-US"),{allowZ:n,forceSimple:!0}).formatDateTimeFromString(i,e):null}function gc(i,e){const n=i.c.year>9999||i.c.year<0;let o="";return n&&i.c.year>=0&&(o+="+"),o+=yt(i.c.year,n?6:4),e?(o+="-",o+=yt(i.c.month),o+="-",o+=yt(i.c.day)):(o+=yt(i.c.month),o+=yt(i.c.day)),o}function zf(i,e,n,o,l,d){let u=yt(i.c.hour);return e?(u+=":",u+=yt(i.c.minute),(i.c.millisecond!==0||i.c.second!==0||!n)&&(u+=":")):u+=yt(i.c.minute),(i.c.millisecond!==0||i.c.second!==0||!n)&&(u+=yt(i.c.second),(i.c.millisecond!==0||!o)&&(u+=".",u+=yt(i.c.millisecond,3))),l&&(i.isOffsetFixed&&i.offset===0&&!d?u+="Z":i.o<0?(u+="-",u+=yt(Math.trunc(-i.o/60)),u+=":",u+=yt(Math.trunc(-i.o%60))):(u+="+",u+=yt(Math.trunc(i.o/60)),u+=":",u+=yt(Math.trunc(i.o%60)))),d&&(u+="["+i.zone.ianaName+"]"),u}const q5={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},NM={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},HM={ordinal:1,hour:0,minute:0,second:0,millisecond:0},K5=["year","month","day","hour","minute","second","millisecond"],RM=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],FM=["year","ordinal","hour","minute","second","millisecond"];function Lf(i){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"}[i.toLowerCase()];if(!e)throw new Yp(i);return e}function Sf(i,e){const n=Dn(e.zone,mt.defaultZone),o=nt.fromObject(e),l=mt.now();let d,u;if(Ze(i.year))d=l;else{for(const b of K5)Ze(i[b])&&(i[b]=q5[b]);const v=U5(i)||j5(i);if(v)return Ee.invalid(v);const y=n.offset(l);[d,u]=Ra(i,y,n)}return new Ee({ts:d,zone:n,loc:o,o:u})}function Mf(i,e,n){const o=Ze(n.round)?!0:n.round,l=(u,v)=>(u=zu(u,o||n.calendary?0:2,!0),e.loc.clone(n).relFormatter(n).format(u,v)),d=u=>n.calendary?e.hasSame(i,u)?0:e.startOf(u).diff(i.startOf(u),u).get(u):e.diff(i,u).get(u);if(n.unit)return l(d(n.unit),n.unit);for(const u of n.units){const v=d(u);if(Math.abs(v)>=1)return l(v,u)}return l(i>e?-0:0,n.units[n.units.length-1])}function Tf(i){let e={},n;return i.length>0&&typeof i[i.length-1]=="object"?(e=i[i.length-1],n=Array.from(i).slice(0,i.length-1)):n=Array.from(i),[e,n]}class Ee{constructor(e){const n=e.zone||mt.defaultZone;let o=e.invalid||(Number.isNaN(e.ts)?new kr("invalid input"):null)||(n.isValid?null:Ia(n));this.ts=Ze(e.ts)?mt.now():e.ts;let l=null,d=null;if(!o)if(e.old&&e.old.ts===this.ts&&e.old.zone.equals(n))[l,d]=[e.old.c,e.old.o];else{const v=n.offset(this.ts);l=Aa(this.ts,v),o=Number.isNaN(l.year)?new kr("invalid input"):null,l=o?null:l,d=o?null:v}this._zone=n,this.loc=e.loc||nt.create(),this.invalid=o,this.weekData=null,this.c=l,this.o=d,this.isLuxonDateTime=!0}static now(){return new Ee({})}static local(){const[e,n]=Tf(arguments),[o,l,d,u,v,y,b]=n;return Sf({year:o,month:l,day:d,hour:u,minute:v,second:y,millisecond:b},e)}static utc(){const[e,n]=Tf(arguments),[o,l,d,u,v,y,b]=n;return e.zone=Gt.utcInstance,Sf({year:o,month:l,day:d,hour:u,minute:v,second:y,millisecond:b},e)}static fromJSDate(e,n={}){const o=fS(e)?e.valueOf():NaN;if(Number.isNaN(o))return Ee.invalid("invalid input");const l=Dn(n.zone,mt.defaultZone);return l.isValid?new Ee({ts:o,zone:l,loc:nt.fromObject(n)}):Ee.invalid(Ia(l))}static fromMillis(e,n={}){if(pi(e))return e<-wf||e>wf?Ee.invalid("Timestamp out of range"):new Ee({ts:e,zone:Dn(n.zone,mt.defaultZone),loc:nt.fromObject(n)});throw new gr(`fromMillis requires a numerical input, but received a ${typeof e} with value ${e}`)}static fromSeconds(e,n={}){if(pi(e))return new Ee({ts:e*1e3,zone:Dn(n.zone,mt.defaultZone),loc:nt.fromObject(n)});throw new gr("fromSeconds requires a numerical input")}static fromObject(e,n={}){e=e||{};const o=Dn(n.zone,mt.defaultZone);if(!o.isValid)return Ee.invalid(Ia(o));const l=mt.now(),d=Ze(n.specificOffset)?o.offset(l):n.specificOffset,u=ul(e,Lf),v=!Ze(u.ordinal),y=!Ze(u.year),b=!Ze(u.month)||!Ze(u.day),M=y||b,L=u.weekYear||u.weekNumber,T=nt.fromObject(n);if((M||v)&&L)throw new vs("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(b&&v)throw new vs("Can't mix ordinal dates with month/day");const $=L||u.weekday&&!M;let N,Y,oe=Aa(l,d);$?(N=RM,Y=NM,oe=Zc(oe)):v?(N=FM,Y=HM,oe=hc(oe)):(N=K5,Y=q5);let _=!1;for(const me of N){const Me=u[me];Ze(Me)?_?u[me]=Y[me]:u[me]=oe[me]:_=!0}const D=$?PM(u):v?DM(u):U5(u),A=D||j5(u);if(A)return Ee.invalid(A);const B=$?yf(u):v?Cf(u):u,[K,ue]=Ra(B,d,o),le=new Ee({ts:K,zone:o,o:ue,loc:T});return u.weekday&&M&&e.weekday!==le.weekday?Ee.invalid("mismatched weekday",`you can't specify both a weekday of ${u.weekday} and a date of ${le.toISO()}`):le}static fromISO(e,n={}){const[o,l]=rM(e);return hs(o,l,n,"ISO 8601",e)}static fromRFC2822(e,n={}){const[o,l]=nM(e);return hs(o,l,n,"RFC 2822",e)}static fromHTTP(e,n={}){const[o,l]=iM(e);return hs(o,l,n,"HTTP",n)}static fromFormat(e,n,o={}){if(Ze(e)||Ze(n))throw new gr("fromFormat requires an input string and a format");const{locale:l=null,numberingSystem:d=null}=o,u=nt.fromOpts({locale:l,numberingSystem:d,defaultToEN:!0}),[v,y,b,M]=AM(u,e,n);return M?Ee.invalid(M):hs(v,y,o,`format ${n}`,e,b)}static fromString(e,n,o={}){return Ee.fromFormat(e,n,o)}static fromSQL(e,n={}){const[o,l]=dM(e);return hs(o,l,n,"SQL",e)}static invalid(e,n=null){if(!e)throw new gr("need to specify a reason the DateTime is invalid");const o=e instanceof kr?e:new kr(e,n);if(mt.throwOnInvalid)throw new WL(o);return new Ee({invalid:o})}static isDateTime(e){return e&&e.isLuxonDateTime||!1}static parseFormatForOpts(e,n={}){const o=R5(e,nt.fromObject(n));return o?o.map(l=>l?l.val:null).join(""):null}static expandFormat(e,n={}){return N5(Rt.parseFormat(e),nt.fromObject(n)).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?pc(this).weekYear:NaN}get weekNumber(){return this.isValid?pc(this).weekNumber:NaN}get weekday(){return this.isValid?pc(this).weekday:NaN}get ordinal(){return this.isValid?hc(this.c).ordinal:NaN}get monthShort(){return this.isValid?Ea.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?Ea.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?Ea.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?Ea.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,n=6e4,o=Fl(this.c),l=this.zone.offset(o-e),d=this.zone.offset(o+e),u=this.zone.offset(o-l*n),v=this.zone.offset(o-d*n);if(u===v)return[this];const y=o-u*n,b=o-v*n,M=Aa(y,u),L=Aa(b,v);return M.hour===L.hour&&M.minute===L.minute&&M.second===L.second&&M.millisecond===L.millisecond?[ai(this,{ts:y}),ai(this,{ts:b})]:[this]}get isInLeapYear(){return Hs(this.year)}get daysInMonth(){return ll(this.year,this.month)}get daysInYear(){return this.isValid?ys(this.year):NaN}get weeksInWeekYear(){return this.isValid?cl(this.weekYear):NaN}resolvedLocaleOptions(e={}){const{locale:n,numberingSystem:o,calendar:l}=Rt.create(this.loc.clone(e),e).resolvedOptions(this);return{locale:n,numberingSystem:o,outputCalendar:l}}toUTC(e=0,n={}){return this.setZone(Gt.instance(e),n)}toLocal(){return this.setZone(mt.defaultZone)}setZone(e,{keepLocalTime:n=!1,keepCalendarTime:o=!1}={}){if(e=Dn(e,mt.defaultZone),e.equals(this.zone))return this;if(e.isValid){let l=this.ts;if(n||o){const d=e.offset(this.ts),u=this.toObject();[l]=Ra(u,d,e)}return ai(this,{ts:l,zone:e})}else return Ee.invalid(Ia(e))}reconfigure({locale:e,numberingSystem:n,outputCalendar:o}={}){const l=this.loc.clone({locale:e,numberingSystem:n,outputCalendar:o});return ai(this,{loc:l})}setLocale(e){return this.reconfigure({locale:e})}set(e){if(!this.isValid)return this;const n=ul(e,Lf),o=!Ze(n.weekYear)||!Ze(n.weekNumber)||!Ze(n.weekday),l=!Ze(n.ordinal),d=!Ze(n.year),u=!Ze(n.month)||!Ze(n.day),v=d||u,y=n.weekYear||n.weekNumber;if((v||l)&&y)throw new vs("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(u&&l)throw new vs("Can't mix ordinal dates with month/day");let b;o?b=yf({...Zc(this.c),...n}):Ze(n.ordinal)?(b={...this.toObject(),...n},Ze(n.day)&&(b.day=Math.min(ll(b.year,b.month),b.day))):b=Cf({...hc(this.c),...n});const[M,L]=Ra(b,this.o,this.zone);return ai(this,{ts:M,o:L})}plus(e){if(!this.isValid)return this;const n=We.fromDurationLike(e);return ai(this,xf(this,n))}minus(e){if(!this.isValid)return this;const n=We.fromDurationLike(e).negate();return ai(this,xf(this,n))}startOf(e){if(!this.isValid)return this;const n={},o=We.normalizeUnit(e);switch(o){case"years":n.month=1;case"quarters":case"months":n.day=1;case"weeks":case"days":n.hour=0;case"hours":n.minute=0;case"minutes":n.second=0;case"seconds":n.millisecond=0;break}if(o==="weeks"&&(n.weekday=1),o==="quarters"){const l=Math.ceil(this.month/3);n.month=(l-1)*3+1}return this.set(n)}endOf(e){return this.isValid?this.plus({[e]:1}).startOf(e).minus(1):this}toFormat(e,n={}){return this.isValid?Rt.create(this.loc.redefaultToEN(n)).formatDateTimeFromString(this,e):fc}toLocaleString(e=al,n={}){return this.isValid?Rt.create(this.loc.clone(n),e).formatDateTime(this):fc}toLocaleParts(e={}){return this.isValid?Rt.create(this.loc.clone(e),e).formatDateTimeParts(this):[]}toISO({format:e="extended",suppressSeconds:n=!1,suppressMilliseconds:o=!1,includeOffset:l=!0,extendedZone:d=!1}={}){if(!this.isValid)return null;const u=e==="extended";let v=gc(this,u);return v+="T",v+=zf(this,u,n,o,l,d),v}toISODate({format:e="extended"}={}){return this.isValid?gc(this,e==="extended"):null}toISOWeekDate(){return Pa(this,"kkkk-'W'WW-c")}toISOTime({suppressMilliseconds:e=!1,suppressSeconds:n=!1,includeOffset:o=!0,includePrefix:l=!1,extendedZone:d=!1,format:u="extended"}={}){return this.isValid?(l?"T":"")+zf(this,u==="extended",n,e,o,d):null}toRFC2822(){return Pa(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return Pa(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?gc(this,!0):null}toSQLTime({includeOffset:e=!0,includeZone:n=!1,includeOffsetSpace:o=!0}={}){let l="HH:mm:ss.SSS";return(n||e)&&(o&&(l+=" "),n?l+="z":e&&(l+="ZZ")),Pa(this,l,!0)}toSQL(e={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(e)}`:null}toString(){return this.isValid?this.toISO():fc}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 n={...this.c};return e.includeConfig&&(n.outputCalendar=this.outputCalendar,n.numberingSystem=this.loc.numberingSystem,n.locale=this.loc.locale),n}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(e,n="milliseconds",o={}){if(!this.isValid||!e.isValid)return We.invalid("created by diffing an invalid DateTime");const l={locale:this.locale,numberingSystem:this.numberingSystem,...o},d=pS(n).map(We.normalizeUnit),u=e.valueOf()>this.valueOf(),v=u?this:e,y=u?e:this,b=yM(v,y,d,l);return u?b.negate():b}diffNow(e="milliseconds",n={}){return this.diff(Ee.now(),e,n)}until(e){return this.isValid?dt.fromDateTimes(this,e):this}hasSame(e,n){if(!this.isValid)return!1;const o=e.valueOf(),l=this.setZone(e.zone,{keepLocalTime:!0});return l.startOf(n)<=o&&o<=l.endOf(n)}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 n=e.base||Ee.fromObject({},{zone:this.zone}),o=e.padding?this<n?-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),Mf(n,this.plus(o),{...e,numeric:"always",units:l,unit:d})}toRelativeCalendar(e={}){return this.isValid?Mf(e.base||Ee.fromObject({},{zone:this.zone}),this,{...e,numeric:"auto",units:["years","months","days"],calendary:!0}):null}static min(...e){if(!e.every(Ee.isDateTime))throw new gr("min requires all arguments be DateTimes");return df(e,n=>n.valueOf(),Math.min)}static max(...e){if(!e.every(Ee.isDateTime))throw new gr("max requires all arguments be DateTimes");return df(e,n=>n.valueOf(),Math.max)}static fromFormatExplain(e,n,o={}){const{locale:l=null,numberingSystem:d=null}=o,u=nt.fromOpts({locale:l,numberingSystem:d,defaultToEN:!0});return H5(u,e,n)}static fromStringExplain(e,n,o={}){return Ee.fromFormatExplain(e,n,o)}static get DATE_SHORT(){return al}static get DATE_MED(){return Xp}static get DATE_MED_WITH_WEEKDAY(){return GL}static get DATE_FULL(){return Jp}static get DATE_HUGE(){return Qp}static get TIME_SIMPLE(){return e5}static get TIME_WITH_SECONDS(){return t5}static get TIME_WITH_SHORT_OFFSET(){return r5}static get TIME_WITH_LONG_OFFSET(){return n5}static get TIME_24_SIMPLE(){return i5}static get TIME_24_WITH_SECONDS(){return o5}static get TIME_24_WITH_SHORT_OFFSET(){return s5}static get TIME_24_WITH_LONG_OFFSET(){return a5}static get DATETIME_SHORT(){return l5}static get DATETIME_SHORT_WITH_SECONDS(){return c5}static get DATETIME_MED(){return u5}static get DATETIME_MED_WITH_SECONDS(){return d5}static get DATETIME_MED_WITH_WEEKDAY(){return qL}static get DATETIME_FULL(){return h5}static get DATETIME_FULL_WITH_SECONDS(){return f5}static get DATETIME_HUGE(){return p5}static get DATETIME_HUGE_WITH_SECONDS(){return g5}}function fs(i){if(Ee.isDateTime(i))return i;if(i&&i.valueOf&&pi(i.valueOf()))return Ee.fromJSDate(i);if(i&&typeof i=="object")return Ee.fromObject(i);throw new gr(`Unknown datetime argument: ${i}, of type ${typeof i}`)}const BM={Africa:"en-za",America:"en-us",US:"en-us",Australia:"en-au",Europe:"en-gb",Pacific:"en-nz"},VM=i=>Ee.local().setZone(i).isValid,Wc=i=>i.hour<12,kf=i=>!Wc(i),Y5=(i,e)=>Wc(i)&&Wc(e)||kf(i)&&kf(e),vc=(i,e)=>{var l;const n=e&&VM(e)?e:"utc",o=(l=BM[n.split("/")[0]])!=null?l:"en-us";return i.setZone(n).setLocale(o)},ZM=(i,e,n)=>{let o=Ee.fromISO(i),l=Ee.fromISO(e);n&&(o=o.setZone(n),l=l.setZone(n));const d=o.hour===0&&o.minute===0&&o.second===0,u=24*60*60*1e3,v=l.diff(o,"milliseconds").milliseconds===u;return d&&v},Of=i=>WM(X5(i)),WM=i=>i.replace(/Sept/,"Sep"),X5=i=>i.replace(/(AM|PM)/,e=>e.toLowerCase()),dl=i=>i.minute===0?"h":"h:mm",hl=(i,e)=>i.year!==e.year?" yyyy":"";var UM=Object.defineProperty,jM=Object.getOwnPropertyDescriptor,Zn=(i,e,n,o)=>{for(var l=o>1?void 0:o?jM(e,n):e,d=i.length-1,u;d>=0;d--)(u=i[d])&&(l=(o?u(e,n,l):u(l))||l);return o&&l&&UM(e,n,l),l};const J5=ce("input-time"),Q5="h:mma",e6=/^([1-9]|1[0-9]|2[0-3]):([0-5])([0-9])?(am?|pm?)?$/,t6=/^(1[3-9]|2[0-3]).*/,r6=/^(\d\d?)(am?|pm?)/,GM=["UTC","AEST"],n6=(i,e)=>({label:`${i}${e?` (${e})`:""}`,value:i}),$f=(i,e)=>{const o=Math.ceil(1440/i),l=Ee.local().startOf("day");return Array(o).fill(null).map((d,u)=>{const v=l.plus({minutes:i*u}),y=X5(v.toFormat(Q5));return n6(y,e)})},qM=(i,e)=>{const n=i.trim(),o=i.match(e6);if(!n||!o)return[];const[,l,d,u]=o,v=parseInt(l,10),y=v>12?`${v-12}`:`${v}`,b=`${d}${u||0}`,M=`${y}:${b}`;return["am","pm"].map(L=>n6(`${M}${L}`,e))},KM=(i,{value:e})=>{const n=i.match(t6);if(!n||!e)return!1;const[,o]=n,l=`${parseInt(o,10)-12}`,d=i.substring(o.length).replace(":",""),u=`${l}:${d}`;return e.startsWith(u)&&e.endsWith("pm")},YM=(i,{value:e})=>{const n=i.match(r6);if(!n)return!1;const[,o,l]=n;return!!(e!=null&&e.replace(":00","").startsWith(`${o}${l}`))},XM=(...i)=>YM(...i)||KM(...i);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=$f(this.increment,this.suffix)}updated(e){super.updated(e),e.has("increment")&&(this.options=$f(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:n})=>n===this.value))==null?void 0:e.label:"",!this.isFreeform&&this.resetSearch()}isCustomQueryMatch(e){return this.query?XM(this.query,e):!1}handleNoResults(){if(this.hasQueryResults)return null;if(!this.isFreeform)return this.renderSearchMessage();this.freeformOptions=qM(this.query,this.suffix),this.hasResults=!!this.freeformOptions.length}renderFreeformOptions(){return this.isFreeform?this.hasQueryResults?this.renderOptionsData(this.freeformOptions):this.renderSearchMessage():null}renderDropdownContent(){return R`
3509
+ `];Ds([E({type:String,reflect:!0})],exports.InputMultiselect.prototype,"size",2);Ds([E({attribute:"truncate-values-after",type:Number})],exports.InputMultiselect.prototype,"truncateValuesAfter",2);Ds([E({type:Array})],exports.InputMultiselect.prototype,"value",2);Ds([Ce()],exports.InputMultiselect.prototype,"valueLabels",2);exports.InputMultiselect=Ds([W(Kp)],exports.InputMultiselect);class Sn extends Error{}class WL extends Sn{constructor(e){super(`Invalid DateTime: ${e.toMessage()}`)}}class UL extends Sn{constructor(e){super(`Invalid Interval: ${e.toMessage()}`)}}class jL extends Sn{constructor(e){super(`Invalid Duration: ${e.toMessage()}`)}}class vs extends Sn{}class Yp extends Sn{constructor(e){super(`Invalid unit ${e}`)}}class gr extends Sn{}class Ei extends Sn{constructor(){super("Zone is an abstract class")}}const fe="numeric",Er="short",hr="long",al={year:fe,month:fe,day:fe},Xp={year:fe,month:Er,day:fe},GL={year:fe,month:Er,day:fe,weekday:Er},Jp={year:fe,month:hr,day:fe},Qp={year:fe,month:hr,day:fe,weekday:hr},e5={hour:fe,minute:fe},t5={hour:fe,minute:fe,second:fe},r5={hour:fe,minute:fe,second:fe,timeZoneName:Er},i5={hour:fe,minute:fe,second:fe,timeZoneName:hr},n5={hour:fe,minute:fe,hourCycle:"h23"},o5={hour:fe,minute:fe,second:fe,hourCycle:"h23"},s5={hour:fe,minute:fe,second:fe,hourCycle:"h23",timeZoneName:Er},a5={hour:fe,minute:fe,second:fe,hourCycle:"h23",timeZoneName:hr},l5={year:fe,month:fe,day:fe,hour:fe,minute:fe},c5={year:fe,month:fe,day:fe,hour:fe,minute:fe,second:fe},u5={year:fe,month:Er,day:fe,hour:fe,minute:fe},d5={year:fe,month:Er,day:fe,hour:fe,minute:fe,second:fe},qL={year:fe,month:Er,day:fe,weekday:Er,hour:fe,minute:fe},h5={year:fe,month:hr,day:fe,hour:fe,minute:fe,timeZoneName:Er},f5={year:fe,month:hr,day:fe,hour:fe,minute:fe,second:fe,timeZoneName:Er},p5={year:fe,month:hr,day:fe,weekday:hr,hour:fe,minute:fe,timeZoneName:hr},g5={year:fe,month:hr,day:fe,weekday:hr,hour:fe,minute:fe,second:fe,timeZoneName:hr};class Ns{get type(){throw new Ei}get name(){throw new Ei}get ianaName(){return this.name}get isUniversal(){throw new Ei}offsetName(e,i){throw new Ei}formatOffset(e,i){throw new Ei}offset(e){throw new Ei}equals(e){throw new Ei}get isValid(){throw new Ei}}let cc=null;class Hl extends Ns{static get instance(){return cc===null&&(cc=new Hl),cc}get type(){return"system"}get name(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(e,{format:i,locale:o}){return b5(e,i,o)}formatOffset(e,i){return Cs(this.offset(e),i)}offset(e){return-new Date(e).getTimezoneOffset()}equals(e){return e.type==="system"}get isValid(){return!0}}let Ha={};function KL(n){return Ha[n]||(Ha[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"})),Ha[n]}const YL={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};function XL(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,y,b,M]=o;return[u,l,d,v,y,b,M]}function JL(n,e){const i=n.formatToParts(e),o=[];for(let l=0;l<i.length;l++){const{type:d,value:u}=i[l],v=YL[d];d==="era"?o[v]=u:Ze(v)||(o[v]=parseInt(u,10))}return o}let Oa={};class di extends Ns{static create(e){return Oa[e]||(Oa[e]=new di(e)),Oa[e]}static resetCache(){Oa={},Ha={}}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=di.isValidZone(e)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(e,{format:i,locale:o}){return b5(e,i,o,this.name)}formatOffset(e,i){return Cs(this.offset(e),i)}offset(e){const i=new Date(e);if(isNaN(i))return NaN;const o=KL(this.name);let[l,d,u,v,y,b,M]=o.formatToParts?JL(o,i):XL(o,i);v==="BC"&&(l=-Math.abs(l)+1);const T=Fl({year:l,month:d,day:u,hour:y===24?0:y,minute:b,second:M,millisecond:0});let $=+i;const N=$%1e3;return $-=N>=0?N:1e3+N,(T-$)/(60*1e3)}equals(e){return e.type==="iana"&&e.name===this.name}get isValid(){return this.valid}}let rf={};function QL(n,e={}){const i=JSON.stringify([n,e]);let o=rf[i];return o||(o=new Intl.ListFormat(n,e),rf[i]=o),o}let Hc={};function Rc(n,e={}){const i=JSON.stringify([n,e]);let o=Hc[i];return o||(o=new Intl.DateTimeFormat(n,e),Hc[i]=o),o}let Fc={};function eS(n,e={}){const i=JSON.stringify([n,e]);let o=Fc[i];return o||(o=new Intl.NumberFormat(n,e),Fc[i]=o),o}let Bc={};function tS(n,e={}){const{base:i,...o}=e,l=JSON.stringify([n,o]);let d=Bc[l];return d||(d=new Intl.RelativeTimeFormat(n,e),Bc[l]=d),d}let bs=null;function rS(){return bs||(bs=new Intl.DateTimeFormat().resolvedOptions().locale,bs)}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=Rc(n).resolvedOptions(),l=n}catch{const y=n.substring(0,i);o=Rc(y).resolvedOptions(),l=y}const{numberingSystem:d,calendar:u}=o;return[l,d,u]}}function nS(n,e,i){return(i||e)&&(n.includes("-u-")||(n+="-u"),i&&(n+=`-ca-${i}`),e&&(n+=`-nu-${e}`)),n}function oS(n){const e=[];for(let i=1;i<=12;i++){const o=Ee.utc(2009,i,1);e.push(n(o))}return e}function sS(n){const e=[];for(let i=1;i<=7;i++){const o=Ee.utc(2016,11,13+i);e.push(n(o))}return e}function $a(n,e,i,o){const l=n.listingMode();return l==="error"?null:l==="en"?i(e):o(e)}function aS(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 lS{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=eS(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):zu(e,3);return yt(i,this.padTo)}}}class cS{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&&di.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=Rc(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 uS{constructor(e,i,o){this.opts={style:"long",...o},!i&&v5()&&(this.rtf=tS(e,o))}format(e,i){return this.rtf?this.rtf.format(e,i):TS(i,e,this.opts.numeric,this.opts.style!=="long")}formatToParts(e,i){return this.rtf?this.rtf.formatToParts(e,i):[]}}class it{static fromOpts(e){return it.create(e.locale,e.numberingSystem,e.outputCalendar,e.defaultToEN)}static create(e,i,o,l=!1){const d=e||mt.defaultLocale,u=d||(l?"en-US":rS()),v=i||mt.defaultNumberingSystem,y=o||mt.defaultOutputCalendar;return new it(u,v,y,d)}static resetCache(){bs=null,Hc={},Fc={},Bc={}}static fromObject({locale:e,numberingSystem:i,outputCalendar:o}={}){return it.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=nS(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=aS(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:it.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 $a(this,e,C5,()=>{const o=i?{month:e,day:"numeric"}:{month:e},l=i?"format":"standalone";return this.monthsCache[l][e]||(this.monthsCache[l][e]=oS(d=>this.extract(d,o,"month"))),this.monthsCache[l][e]})}weekdays(e,i=!1){return $a(this,e,z5,()=>{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 $a(this,void 0,()=>L5,()=>{if(!this.meridiemCache){const e={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[Ee.utc(2016,11,13,9),Ee.utc(2016,11,13,19)].map(i=>this.extract(i,e,"dayperiod"))}return this.meridiemCache})}eras(e){return $a(this,e,S5,()=>{const i={era:e};return this.eraCache[e]||(this.eraCache[e]=[Ee.utc(-40,1,1),Ee.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 lS(this.intl,e.forceSimple||this.fastNumbers,e)}dtFormatter(e,i={}){return new cS(e,this.intl,i)}relFormatter(e={}){return new uS(this.intl,this.isEnglish(),e)}listFormatter(e={}){return QL(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 uc=null;class Gt extends Ns{static get utcInstance(){return uc===null&&(uc=new Gt(0)),uc}static instance(e){return e===0?Gt.utcInstance:new Gt(e)}static parseSpecifier(e){if(e){const i=e.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(i)return new Gt(Bl(i[1],i[2]))}return null}constructor(e){super(),this.fixed=e}get type(){return"fixed"}get name(){return this.fixed===0?"UTC":`UTC${Cs(this.fixed,"narrow")}`}get ianaName(){return this.fixed===0?"Etc/UTC":`Etc/GMT${Cs(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(e,i){return Cs(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 dS extends Ns{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 Pi(n,e){if(Ze(n)||n===null)return e;if(n instanceof Ns)return n;if(hS(n)){const i=n.toLowerCase();return i==="default"?e:i==="local"||i==="system"?Hl.instance:i==="utc"||i==="gmt"?Gt.utcInstance:Gt.parseSpecifier(i)||di.create(n)}else return pn(n)?Gt.instance(n):typeof n=="object"&&"offset"in n&&typeof n.offset=="function"?n:new dS(n)}let nf=()=>Date.now(),of="system",sf=null,af=null,lf=null,cf=60,uf;class mt{static get now(){return nf}static set now(e){nf=e}static set defaultZone(e){of=e}static get defaultZone(){return Pi(of,Hl.instance)}static get defaultLocale(){return sf}static set defaultLocale(e){sf=e}static get defaultNumberingSystem(){return af}static set defaultNumberingSystem(e){af=e}static get defaultOutputCalendar(){return lf}static set defaultOutputCalendar(e){lf=e}static get twoDigitCutoffYear(){return cf}static set twoDigitCutoffYear(e){cf=e%100}static get throwOnInvalid(){return uf}static set throwOnInvalid(e){uf=e}static resetCaches(){it.resetCache(),di.resetCache()}}function Ze(n){return typeof n=="undefined"}function pn(n){return typeof n=="number"}function Rl(n){return typeof n=="number"&&n%1===0}function hS(n){return typeof n=="string"}function fS(n){return Object.prototype.toString.call(n)==="[object Date]"}function v5(){try{return typeof Intl!="undefined"&&!!Intl.RelativeTimeFormat}catch{return!1}}function pS(n){return Array.isArray(n)?n:[n]}function df(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 gS(n,e){return e.reduce((i,o)=>(i[o]=n[o],i),{})}function ho(n,e){return Object.prototype.hasOwnProperty.call(n,e)}function ci(n,e,i){return Rl(n)&&n>=e&&n<=i}function vS(n,e){return n-e*Math.floor(n/e)}function yt(n,e=2){const i=n<0;let o;return i?o="-"+(""+-n).padStart(e,"0"):o=(""+n).padStart(e,"0"),o}function Ii(n){if(!(Ze(n)||n===null||n===""))return parseInt(n,10)}function sn(n){if(!(Ze(n)||n===null||n===""))return parseFloat(n)}function xu(n){if(!(Ze(n)||n===null||n==="")){const e=parseFloat("0."+n)*1e3;return Math.floor(e)}}function zu(n,e,i=!1){const o=10**e;return(i?Math.trunc:Math.round)(n*o)/o}function Hs(n){return n%4===0&&(n%100!==0||n%400===0)}function ys(n){return Hs(n)?366:365}function ll(n,e){const i=vS(e-1,12)+1,o=n+(e-i)/12;return i===2?Hs(o)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][i-1]}function Fl(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 cl(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 Vc(n){return n>99?n:n>mt.twoDigitCutoffYear?1900+n:2e3+n}function b5(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(y=>y.type.toLowerCase()==="timezonename");return v?v.value:null}function Bl(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 m5(n){const e=Number(n);if(typeof n=="boolean"||n===""||Number.isNaN(e))throw new gr(`Invalid unit value ${n}`);return e}function ul(n,e){const i={};for(const o in n)if(ho(n,o)){const l=n[o];if(l==null)continue;i[e(o)]=m5(l)}return i}function Cs(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}${yt(i,2)}:${yt(o,2)}`;case"narrow":return`${l}${i}${o>0?`:${o}`:""}`;case"techie":return`${l}${yt(i,2)}${yt(o,2)}`;default:throw new RangeError(`Value format ${e} is out of range for property format`)}}function Vl(n){return gS(n,["hour","minute","second","millisecond"])}const bS=["January","February","March","April","May","June","July","August","September","October","November","December"],y5=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],mS=["J","F","M","A","M","J","J","A","S","O","N","D"];function C5(n){switch(n){case"narrow":return[...mS];case"short":return[...y5];case"long":return[...bS];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 w5=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],x5=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],yS=["M","T","W","T","F","S","S"];function z5(n){switch(n){case"narrow":return[...yS];case"short":return[...x5];case"long":return[...w5];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}const L5=["AM","PM"],CS=["Before Christ","Anno Domini"],wS=["BC","AD"],xS=["B","A"];function S5(n){switch(n){case"narrow":return[...xS];case"short":return[...wS];case"long":return[...CS];default:return null}}function zS(n){return L5[n.hour<12?0:1]}function LS(n,e){return z5(e)[n.weekday-1]}function SS(n,e){return C5(e)[n.month-1]}function MS(n,e){return S5(e)[n.year<0?0:1]}function TS(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 L=n==="days";switch(e){case 1:return L?"tomorrow":`next ${l[n][0]}`;case-1:return L?"yesterday":`last ${l[n][0]}`;case 0:return L?"today":`this ${l[n][0]}`}}const u=Object.is(e,-0)||e<0,v=Math.abs(e),y=v===1,b=l[n],M=o?y?b[1]:b[2]||b[1]:y?l[n][0]:n;return u?`${v} ${M} ago`:`in ${v} ${M}`}function hf(n,e){let i="";for(const o of n)o.literal?i+=o.val:i+=e(o.val);return i}const kS={D:al,DD:Xp,DDD:Jp,DDDD:Qp,t:e5,tt:t5,ttt:r5,tttt:i5,T:n5,TT:o5,TTT:s5,TTTT:a5,f:l5,ff:u5,fff:h5,ffff:p5,F:c5,FF:d5,FFF:f5,FFFF:g5};class Rt{static create(e,i={}){return new Rt(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 kS[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 yt(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=($,N)=>this.loc.extract(e,$,N),u=$=>e.isOffsetFixed&&e.offset===0&&$.allowZ?"Z":e.isValid?e.zone.formatOffset(e.ts,$.format):"",v=()=>o?zS(e):d({hour:"numeric",hourCycle:"h12"},"dayperiod"),y=($,N)=>o?SS(e,$):d(N?{month:$}:{month:$,day:"numeric"},"month"),b=($,N)=>o?LS(e,$):d(N?{weekday:$}:{weekday:$,month:"long",day:"numeric"},"weekday"),M=$=>{const N=Rt.macroTokenToFormatOpts($);return N?this.formatWithSystemDefault(e,N):$},L=$=>o?MS(e,$):d({era:$},"era"),T=$=>{switch($){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 b("short",!0);case"cccc":return b("long",!0);case"ccccc":return b("narrow",!0);case"E":return this.num(e.weekday);case"EEE":return b("short",!1);case"EEEE":return b("long",!1);case"EEEEE":return b("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 y("short",!0);case"LLLL":return y("long",!0);case"LLLLL":return y("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 y("short",!1);case"MMMM":return y("long",!1);case"MMMMM":return y("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 L("short");case"GG":return L("long");case"GGGGG":return L("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 M($)}};return hf(Rt.parseFormat(i),T)}formatDurationFromString(e,i){const o=y=>{switch(y[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=y=>b=>{const M=o(b);return M?this.num(y.get(M),b.length):b},d=Rt.parseFormat(i),u=d.reduce((y,{literal:b,val:M})=>b?y:y.concat(M),[]),v=e.shiftTo(...u.map(o).filter(y=>y));return hf(d,l(v))}}class kr{constructor(e,i){this.reason=e,this.explanation=i}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}const M5=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function wo(...n){const e=n.reduce((i,o)=>i+o.source,"");return RegExp(`^${e}$`)}function xo(...n){return e=>n.reduce(([i,o,l],d)=>{const[u,v,y]=d(e,l);return[{...i,...u},v||o,y]},[{},null,1]).slice(0,2)}function zo(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 T5(...n){return(e,i)=>{const o={};let l;for(l=0;l<n.length;l++)o[n[l]]=Ii(e[i+l]);return[o,null,i+l]}}const k5=/(?:(Z)|([+-]\d\d)(?::?(\d\d))?)/,OS=`(?:${k5.source}?(?:\\[(${M5.source})\\])?)?`,Lu=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,O5=RegExp(`${Lu.source}${OS}`),Su=RegExp(`(?:T${O5.source})?`),$S=/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,ES=/(\d{4})-?W(\d\d)(?:-?(\d))?/,_S=/(\d{4})-?(\d{3})/,IS=T5("weekYear","weekNumber","weekDay"),AS=T5("year","ordinal"),PS=/(\d{4})-(\d\d)-(\d\d)/,$5=RegExp(`${Lu.source} ?(?:${k5.source}|(${M5.source}))?`),DS=RegExp(`(?: ${$5.source})?`);function no(n,e,i){const o=n[e];return Ze(o)?i:Ii(o)}function NS(n,e){return[{year:no(n,e),month:no(n,e+1,1),day:no(n,e+2,1)},null,e+3]}function Lo(n,e){return[{hours:no(n,e,0),minutes:no(n,e+1,0),seconds:no(n,e+2,0),milliseconds:xu(n[e+3])},null,e+4]}function Rs(n,e){const i=!n[e]&&!n[e+1],o=Bl(n[e+1],n[e+2]),l=i?null:Gt.instance(o);return[{},l,e+3]}function Fs(n,e){const i=n[e]?di.create(n[e]):null;return[{},i,e+1]}const HS=RegExp(`^T?${Lu.source}$`),RS=/^-?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 FS(n){const[e,i,o,l,d,u,v,y,b]=n,M=e[0]==="-",L=y&&y[0]==="-",T=($,N=!1)=>$!==void 0&&(N||$&&M)?-$:$;return[{years:T(sn(i)),months:T(sn(o)),weeks:T(sn(l)),days:T(sn(d)),hours:T(sn(u)),minutes:T(sn(v)),seconds:T(sn(y),y==="-0"),milliseconds:T(xu(b),L)}]}const BS={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 Mu(n,e,i,o,l,d,u){const v={year:e.length===2?Vc(Ii(e)):Ii(e),month:y5.indexOf(i)+1,day:Ii(o),hour:Ii(l),minute:Ii(d)};return u&&(v.second=Ii(u)),n&&(v.weekday=n.length>3?w5.indexOf(n)+1:x5.indexOf(n)+1),v}const VS=/^(?:(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 ZS(n){const[,e,i,o,l,d,u,v,y,b,M,L]=n,T=Mu(e,l,o,i,d,u,v);let $;return y?$=BS[y]:b?$=0:$=Bl(M,L),[T,new Gt($)]}function WS(n){return n.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}const US=/^(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$/,jS=/^(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$/,GS=/^(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 ff(n){const[,e,i,o,l,d,u,v]=n;return[Mu(e,l,o,i,d,u,v),Gt.utcInstance]}function qS(n){const[,e,i,o,l,d,u,v]=n;return[Mu(e,v,i,o,l,d,u),Gt.utcInstance]}const KS=wo($S,Su),YS=wo(ES,Su),XS=wo(_S,Su),JS=wo(O5),E5=xo(NS,Lo,Rs,Fs),QS=xo(IS,Lo,Rs,Fs),eM=xo(AS,Lo,Rs,Fs),tM=xo(Lo,Rs,Fs);function rM(n){return zo(n,[KS,E5],[YS,QS],[XS,eM],[JS,tM])}function iM(n){return zo(WS(n),[VS,ZS])}function nM(n){return zo(n,[US,ff],[jS,ff],[GS,qS])}function oM(n){return zo(n,[RS,FS])}const sM=xo(Lo);function aM(n){return zo(n,[HS,sM])}const lM=wo(PS,DS),cM=wo($5),uM=xo(Lo,Rs,Fs);function dM(n){return zo(n,[lM,E5],[cM,uM])}const hM="Invalid Duration",_5={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}},fM={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},..._5},pr=146097/400,Qn=146097/4800,pM={years:{quarters:4,months:12,weeks:pr/7,days:pr,hours:pr*24,minutes:pr*24*60,seconds:pr*24*60*60,milliseconds:pr*24*60*60*1e3},quarters:{months:3,weeks:pr/28,days:pr/4,hours:pr*24/4,minutes:pr*24*60/4,seconds:pr*24*60*60/4,milliseconds:pr*24*60*60*1e3/4},months:{weeks:Qn/7,days:Qn,hours:Qn*24,minutes:Qn*24*60,seconds:Qn*24*60*60,milliseconds:Qn*24*60*60*1e3},..._5},cn=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],I5=cn.slice(0).reverse();function _i(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 We(o)}function pf(n){return Math.trunc(n*1e3)/1e3}function A5(n,e,i,o,l){const d=n[l][i],u=e[i]/d,v=Math.floor(u);o[l]=pf(o[l]+v),e[i]=pf(e[i]-v*d)}function gM(n,e){I5.reduce((i,o)=>Ze(e[o])?i:(i&&A5(n,e,i,e,o),o),null)}function vM(n){const e={};for(const[i,o]of Object.entries(n))o!==0&&(e[i]=o);return e}class We{constructor(e){const i=e.conversionAccuracy==="longterm"||!1;let o=i?pM:fM;e.matrix&&(o=e.matrix),this.values=e.values,this.loc=e.loc||it.create(),this.conversionAccuracy=i?"longterm":"casual",this.invalid=e.invalid||null,this.matrix=o,this.isLuxonDuration=!0}static fromMillis(e,i){return We.fromObject({milliseconds:e},i)}static fromObject(e,i={}){if(e==null||typeof e!="object")throw new gr(`Duration.fromObject: argument expected to be an object, got ${e===null?"null":typeof e}`);return new We({values:ul(e,We.normalizeUnit),loc:it.fromObject(i),conversionAccuracy:i.conversionAccuracy,matrix:i.matrix})}static fromDurationLike(e){if(pn(e))return We.fromMillis(e);if(We.isDuration(e))return e;if(typeof e=="object")return We.fromObject(e);throw new gr(`Unknown duration argument ${e} of type ${typeof e}`)}static fromISO(e,i){const[o]=oM(e);return o?We.fromObject(o,i):We.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static fromISOTime(e,i){const[o]=aM(e);return o?We.fromObject(o,i):We.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static invalid(e,i=null){if(!e)throw new gr("need to specify a reason the Duration is invalid");const o=e instanceof kr?e:new kr(e,i);if(mt.throwOnInvalid)throw new jL(o);return new We({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 Yp(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?Rt.create(this.loc,o).formatDurationFromString(this,e):hM}toHuman(e={}){const i=cn.map(o=>{const l=this.values[o];return Ze(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+=zu(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},Ee.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 I5.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=We.fromDurationLike(e),o={};for(const l of cn)(ho(i.values,l)||ho(this.values,l))&&(o[l]=i.get(l)+this.get(l));return _i(this,{values:o},!0)}minus(e){if(!this.isValid)return this;const i=We.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]=m5(e(this.values[o],o));return _i(this,{values:i},!0)}get(e){return this[We.normalizeUnit(e)]}set(e){if(!this.isValid)return this;const i={...this.values,...ul(e,We.normalizeUnit)};return _i(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 _i(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?(gM(this.matrix,e),_i(this,{values:e},!0)):this.negate().normalize().negate()}rescale(){if(!this.isValid)return this;const e=vM(this.normalize().shiftToAll().toObject());return _i(this,{values:e},!0)}shiftTo(...e){if(!this.isValid)return this;if(e.length===0)return this;e=e.map(u=>We.normalizeUnit(u));const i={},o={},l=this.toObject();let d;for(const u of cn)if(e.indexOf(u)>=0){d=u;let v=0;for(const b in o)v+=this.matrix[b][u]*o[b],o[b]=0;pn(l[u])&&(v+=l[u]);const y=Math.trunc(v);i[u]=y,o[u]=(v*1e3-y*1e3)/1e3;for(const b in l)cn.indexOf(b)>cn.indexOf(u)&&A5(this.matrix,l,b,i,u)}else pn(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 _i(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 _i(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 cn)if(!i(this.values[o],e.values[o]))return!1;return!0}}const eo="Invalid Interval";function bM(n,e){return!n||!n.isValid?dt.invalid("missing or invalid start"):!e||!e.isValid?dt.invalid("missing or invalid end"):e<n?dt.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 dt{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 gr("need to specify a reason the Interval is invalid");const o=e instanceof kr?e:new kr(e,i);if(mt.throwOnInvalid)throw new UL(o);return new dt({invalid:o})}static fromDateTimes(e,i){const o=fs(e),l=fs(i),d=bM(o,l);return d==null?new dt({start:o,end:l}):d}static after(e,i){const o=We.fromDurationLike(i),l=fs(e);return dt.fromDateTimes(l,l.plus(o))}static before(e,i){const o=We.fromDurationLike(i),l=fs(e);return dt.fromDateTimes(l.minus(o),l)}static fromISO(e,i){const[o,l]=(e||"").split("/",2);if(o&&l){let d,u;try{d=Ee.fromISO(o,i),u=d.isValid}catch{u=!1}let v,y;try{v=Ee.fromISO(l,i),y=v.isValid}catch{y=!1}if(u&&y)return dt.fromDateTimes(d,v);if(u){const b=We.fromISO(l,i);if(b.isValid)return dt.after(d,b)}else if(y){const b=We.fromISO(o,i);if(b.isValid)return dt.before(v,b)}}return dt.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?dt.fromDateTimes(e||this.s,i||this.e):this}splitAt(...e){if(!this.isValid)return[];const i=e.map(fs).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(dt.fromDateTimes(l,v)),l=v,d+=1}return o}splitBy(e){const i=We.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(y=>y*l));d=+v>+this.e?this.e:v,u.push(dt.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:dt.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 dt.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(y=>[{time:y.s,type:"s"},{time:y.e,type:"e"}]),u=Array.prototype.concat(...d),v=u.sort((y,b)=>y.time-b.time);for(const y of v)o+=y.type==="s"?1:-1,o===1?i=y.time:(i&&+i!=+y.time&&l.push(dt.fromDateTimes(i,y.time)),i=null);return dt.merge(l)}difference(...e){return dt.xor([this].concat(e)).map(i=>this.intersection(i)).filter(i=>i&&!i.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} – ${this.e.toISO()})`:eo}toLocaleString(e=al,i={}){return this.isValid?Rt.create(this.s.loc.clone(i),e).formatInterval(this):eo}toISO(e){return this.isValid?`${this.s.toISO(e)}/${this.e.toISO(e)}`:eo}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:eo}toISOTime(e){return this.isValid?`${this.s.toISOTime(e)}/${this.e.toISOTime(e)}`:eo}toFormat(e,{separator:i=" – "}={}){return this.isValid?`${this.s.toFormat(e)}${i}${this.e.toFormat(e)}`:eo}toDuration(e,i){return this.isValid?this.e.diff(this.s,e,i):We.invalid(this.invalidReason)}mapEndpoints(e){return dt.fromDateTimes(e(this.s),e(this.e))}}class Ea{static hasDST(e=mt.defaultZone){const i=Ee.now().setZone(e).set({month:12});return!e.isUniversal&&i.offset!==i.set({month:6}).offset}static isValidIANAZone(e){return di.isValidZone(e)}static normalizeZone(e){return Pi(e,mt.defaultZone)}static months(e="long",{locale:i=null,numberingSystem:o=null,locObj:l=null,outputCalendar:d="gregory"}={}){return(l||it.create(i,o,d)).months(e)}static monthsFormat(e="long",{locale:i=null,numberingSystem:o=null,locObj:l=null,outputCalendar:d="gregory"}={}){return(l||it.create(i,o,d)).months(e,!0)}static weekdays(e="long",{locale:i=null,numberingSystem:o=null,locObj:l=null}={}){return(l||it.create(i,o,null)).weekdays(e)}static weekdaysFormat(e="long",{locale:i=null,numberingSystem:o=null,locObj:l=null}={}){return(l||it.create(i,o,null)).weekdays(e,!0)}static meridiems({locale:e=null}={}){return it.create(e).meridiems()}static eras(e="short",{locale:i=null}={}){return it.create(i,null,"gregory").eras(e)}static features(){return{relative:v5()}}}function gf(n,e){const i=l=>l.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),o=i(e)-i(n);return Math.floor(We.fromMillis(o).as("days"))}function mM(n,e,i){const o=[["years",(y,b)=>b.year-y.year],["quarters",(y,b)=>b.quarter-y.quarter+(b.year-y.year)*4],["months",(y,b)=>b.month-y.month+(b.year-y.year)*12],["weeks",(y,b)=>{const M=gf(y,b);return(M-M%7)/7}],["days",gf]],l={},d=n;let u,v;for(const[y,b]of o)i.indexOf(y)>=0&&(u=y,l[y]=b(n,e),v=d.plus(l),v>e?(l[y]--,n=d.plus(l),n>e&&(v=n,l[y]--,n=d.plus(l))):n=v);return[n,l,v,u]}function yM(n,e,i,o){let[l,d,u,v]=mM(n,e,i);const y=e-l,b=i.filter(L=>["hours","minutes","seconds","milliseconds"].indexOf(L)>=0);b.length===0&&(u<e&&(u=l.plus({[v]:1})),u!==l&&(d[v]=(d[v]||0)+y/(u-l)));const M=We.fromObject(d,o);return b.length>0?We.fromMillis(y,o).shiftTo(...b).plus(M):M}const Tu={arab:"[٠-٩]",arabext:"[۰-۹]",bali:"[᭐-᭙]",beng:"[০-৯]",deva:"[०-९]",fullwide:"[0-9]",gujr:"[૦-૯]",hanidec:"[〇|一|二|三|四|五|六|七|八|九]",khmr:"[០-៩]",knda:"[೦-೯]",laoo:"[໐-໙]",limb:"[᥆-᥏]",mlym:"[൦-൯]",mong:"[᠐-᠙]",mymr:"[၀-၉]",orya:"[୦-୯]",tamldec:"[௦-௯]",telu:"[౦-౯]",thai:"[๐-๙]",tibt:"[༠-༩]",latn:"\\d"},vf={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]},CM=Tu.hanidec.replace(/[\[|\]]/g,"").split("");function wM(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(Tu.hanidec)!==-1)e+=CM.indexOf(n[i]);else for(const l in vf){const[d,u]=vf[l];o>=d&&o<=u&&(e+=o-d)}}return parseInt(e,10)}else return e}function Sr({numberingSystem:n},e=""){return new RegExp(`${Tu[n||"latn"]}${e}`)}const xM="missing Intl.DateTimeFormat.formatToParts support";function qe(n,e=i=>i){return{regex:n,deser:([i])=>e(wM(i))}}const zM=String.fromCharCode(160),P5=`[ ${zM}]`,D5=new RegExp(P5,"g");function LM(n){return n.replace(/\./g,"\\.?").replace(D5,P5)}function bf(n){return n.replace(/\./g,"").replace(D5," ").toLowerCase()}function Mr(n,e){return n===null?null:{regex:RegExp(n.map(LM).join("|")),deser:([i])=>n.findIndex(o=>bf(i)===bf(o))+e}}function mf(n,e){return{regex:n,deser:([,i,o])=>Bl(i,o),groups:e}}function _a(n){return{regex:n,deser:([e])=>e}}function SM(n){return n.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function MM(n,e){const i=Sr(e),o=Sr(e,"{2}"),l=Sr(e,"{3}"),d=Sr(e,"{4}"),u=Sr(e,"{6}"),v=Sr(e,"{1,2}"),y=Sr(e,"{1,3}"),b=Sr(e,"{1,6}"),M=Sr(e,"{1,9}"),L=Sr(e,"{2,4}"),T=Sr(e,"{4,6}"),$=oe=>({regex:RegExp(SM(oe.val)),deser:([_])=>_,literal:!0}),Y=(oe=>{if(n.literal)return $(oe);switch(oe.val){case"G":return Mr(e.eras("short"),0);case"GG":return Mr(e.eras("long"),0);case"y":return qe(b);case"yy":return qe(L,Vc);case"yyyy":return qe(d);case"yyyyy":return qe(T);case"yyyyyy":return qe(u);case"M":return qe(v);case"MM":return qe(o);case"MMM":return Mr(e.months("short",!0),1);case"MMMM":return Mr(e.months("long",!0),1);case"L":return qe(v);case"LL":return qe(o);case"LLL":return Mr(e.months("short",!1),1);case"LLLL":return Mr(e.months("long",!1),1);case"d":return qe(v);case"dd":return qe(o);case"o":return qe(y);case"ooo":return qe(l);case"HH":return qe(o);case"H":return qe(v);case"hh":return qe(o);case"h":return qe(v);case"mm":return qe(o);case"m":return qe(v);case"q":return qe(v);case"qq":return qe(o);case"s":return qe(v);case"ss":return qe(o);case"S":return qe(y);case"SSS":return qe(l);case"u":return _a(M);case"uu":return _a(v);case"uuu":return qe(i);case"a":return Mr(e.meridiems(),0);case"kkkk":return qe(d);case"kk":return qe(L,Vc);case"W":return qe(v);case"WW":return qe(o);case"E":case"c":return qe(i);case"EEE":return Mr(e.weekdays("short",!1),1);case"EEEE":return Mr(e.weekdays("long",!1),1);case"ccc":return Mr(e.weekdays("short",!0),1);case"cccc":return Mr(e.weekdays("long",!0),1);case"Z":case"ZZ":return mf(new RegExp(`([+-]${v.source})(?::(${o.source}))?`),2);case"ZZZ":return mf(new RegExp(`([+-]${v.source})(${o.source})?`),2);case"z":return _a(/[a-z_+-/]{1,256}?/i);case" ":return _a(/[^\S\n\r]/);default:return $(oe)}})(n)||{invalidReason:xM};return Y.token=n,Y}const TM={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 kM(n,e,i){const{type:o,value:l}=n;if(o==="literal"){const y=/^\s+$/.test(l);return{literal:!y,val:y?" ":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=TM[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 $M(n,e,i){const o=n.match(e);if(o){const l={};let d=1;for(const u in i)if(ho(i,u)){const v=i[u],y=v.groups?v.groups+1:1;!v.literal&&v.token&&(l[v.token.val[0]]=v.deser(o.slice(d,d+y))),d+=y}return[o,l]}else return[o,{}]}function EM(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 Ze(n.z)||(i=di.create(n.z)),Ze(n.Z)||(i||(i=new Gt(n.Z)),o=n.Z),Ze(n.q)||(n.M=(n.q-1)*3+1),Ze(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),Ze(n.u)||(n.S=xu(n.u)),[Object.keys(n).reduce((d,u)=>{const v=e(u);return v&&(d[v]=n[u]),d},{}),i,o]}let dc=null;function _M(){return dc||(dc=Ee.fromMillis(1555555555555)),dc}function IM(n,e){if(n.literal)return n;const i=Rt.macroTokenToFormatOpts(n.val),o=R5(i,e);return o==null||o.includes(void 0)?n:o}function N5(n,e){return Array.prototype.concat(...n.map(i=>IM(i,e)))}function H5(n,e,i){const o=N5(Rt.parseFormat(i),n),l=o.map(u=>MM(u,n)),d=l.find(u=>u.invalidReason);if(d)return{input:e,tokens:o,invalidReason:d.invalidReason};{const[u,v]=OM(l),y=RegExp(u,"i"),[b,M]=$M(e,y,v),[L,T,$]=M?EM(M):[null,null,void 0];if(ho(M,"a")&&ho(M,"H"))throw new vs("Can't include meridiem when specifying 24-hour format");return{input:e,tokens:o,regex:y,rawMatches:b,matches:M,result:L,zone:T,specificOffset:$}}}function AM(n,e,i){const{result:o,zone:l,specificOffset:d,invalidReason:u}=H5(n,e,i);return[o,l,d,u]}function R5(n,e){if(!n)return null;const o=Rt.create(e,n).dtFormatter(_M()),l=o.formatToParts(),d=o.resolvedOptions();return l.map(u=>kM(u,n,d))}const F5=[0,31,59,90,120,151,181,212,243,273,304,334],B5=[0,31,60,91,121,152,182,213,244,274,305,335];function vr(n,e){return new kr("unit out of range",`you specified ${e} (of type ${typeof e}) as a ${n}, which is invalid`)}function V5(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 Z5(n,e,i){return i+(Hs(n)?B5:F5)[e-1]}function W5(n,e){const i=Hs(n)?B5:F5,o=i.findIndex(d=>d<e),l=e-i[o];return{month:o+1,day:l}}function Zc(n){const{year:e,month:i,day:o}=n,l=Z5(e,i,o),d=V5(e,i,o);let u=Math.floor((l-d+10)/7),v;return u<1?(v=e-1,u=cl(v)):u>cl(e)?(v=e+1,u=1):v=e,{weekYear:v,weekNumber:u,weekday:d,...Vl(n)}}function yf(n){const{weekYear:e,weekNumber:i,weekday:o}=n,l=V5(e,1,4),d=ys(e);let u=i*7+o-l-3,v;u<1?(v=e-1,u+=ys(v)):u>d?(v=e+1,u-=ys(e)):v=e;const{month:y,day:b}=W5(v,u);return{year:v,month:y,day:b,...Vl(n)}}function hc(n){const{year:e,month:i,day:o}=n,l=Z5(e,i,o);return{year:e,ordinal:l,...Vl(n)}}function Cf(n){const{year:e,ordinal:i}=n,{month:o,day:l}=W5(e,i);return{year:e,month:o,day:l,...Vl(n)}}function PM(n){const e=Rl(n.weekYear),i=ci(n.weekNumber,1,cl(n.weekYear)),o=ci(n.weekday,1,7);return e?i?o?!1:vr("weekday",n.weekday):vr("week",n.week):vr("weekYear",n.weekYear)}function DM(n){const e=Rl(n.year),i=ci(n.ordinal,1,ys(n.year));return e?i?!1:vr("ordinal",n.ordinal):vr("year",n.year)}function U5(n){const e=Rl(n.year),i=ci(n.month,1,12),o=ci(n.day,1,ll(n.year,n.month));return e?i?o?!1:vr("day",n.day):vr("month",n.month):vr("year",n.year)}function j5(n){const{hour:e,minute:i,second:o,millisecond:l}=n,d=ci(e,0,23)||e===24&&i===0&&o===0&&l===0,u=ci(i,0,59),v=ci(o,0,59),y=ci(l,0,999);return d?u?v?y?!1:vr("millisecond",l):vr("second",o):vr("minute",i):vr("hour",e)}const fc="Invalid DateTime",wf=864e13;function Ia(n){return new kr("unsupported zone",`the zone "${n.name}" is not supported`)}function pc(n){return n.weekData===null&&(n.weekData=Zc(n.c)),n.weekData}function an(n,e){const i={ts:n.ts,zone:n.zone,c:n.c,o:n.o,loc:n.loc,invalid:n.invalid};return new Ee({...i,...e,old:i})}function G5(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 Aa(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 Ra(n,e,i){return G5(Fl(n),e,i)}function xf(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,ll(o,l))+Math.trunc(e.days)+Math.trunc(e.weeks)*7},u=We.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=Fl(d);let[y,b]=G5(v,i,n.zone);return u!==0&&(y+=u,b=n.zone.offset(y)),{ts:y,o:b}}function hs(n,e,i,o,l,d){const{setZone:u,zone:v}=i;if(n&&Object.keys(n).length!==0||e){const y=e||v,b=Ee.fromObject(n,{...i,zone:y,specificOffset:d});return u?b:b.setZone(v)}else return Ee.invalid(new kr("unparsable",`the input "${l}" can't be parsed as ${o}`))}function Pa(n,e,i=!0){return n.isValid?Rt.create(it.create("en-US"),{allowZ:i,forceSimple:!0}).formatDateTimeFromString(n,e):null}function gc(n,e){const i=n.c.year>9999||n.c.year<0;let o="";return i&&n.c.year>=0&&(o+="+"),o+=yt(n.c.year,i?6:4),e?(o+="-",o+=yt(n.c.month),o+="-",o+=yt(n.c.day)):(o+=yt(n.c.month),o+=yt(n.c.day)),o}function zf(n,e,i,o,l,d){let u=yt(n.c.hour);return e?(u+=":",u+=yt(n.c.minute),(n.c.millisecond!==0||n.c.second!==0||!i)&&(u+=":")):u+=yt(n.c.minute),(n.c.millisecond!==0||n.c.second!==0||!i)&&(u+=yt(n.c.second),(n.c.millisecond!==0||!o)&&(u+=".",u+=yt(n.c.millisecond,3))),l&&(n.isOffsetFixed&&n.offset===0&&!d?u+="Z":n.o<0?(u+="-",u+=yt(Math.trunc(-n.o/60)),u+=":",u+=yt(Math.trunc(-n.o%60))):(u+="+",u+=yt(Math.trunc(n.o/60)),u+=":",u+=yt(Math.trunc(n.o%60)))),d&&(u+="["+n.zone.ianaName+"]"),u}const q5={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},NM={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},HM={ordinal:1,hour:0,minute:0,second:0,millisecond:0},K5=["year","month","day","hour","minute","second","millisecond"],RM=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],FM=["year","ordinal","hour","minute","second","millisecond"];function Lf(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 Yp(n);return e}function Sf(n,e){const i=Pi(e.zone,mt.defaultZone),o=it.fromObject(e),l=mt.now();let d,u;if(Ze(n.year))d=l;else{for(const b of K5)Ze(n[b])&&(n[b]=q5[b]);const v=U5(n)||j5(n);if(v)return Ee.invalid(v);const y=i.offset(l);[d,u]=Ra(n,y,i)}return new Ee({ts:d,zone:i,loc:o,o:u})}function Mf(n,e,i){const o=Ze(i.round)?!0:i.round,l=(u,v)=>(u=zu(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 Tf(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 Ee{constructor(e){const i=e.zone||mt.defaultZone;let o=e.invalid||(Number.isNaN(e.ts)?new kr("invalid input"):null)||(i.isValid?null:Ia(i));this.ts=Ze(e.ts)?mt.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=Aa(this.ts,v),o=Number.isNaN(l.year)?new kr("invalid input"):null,l=o?null:l,d=o?null:v}this._zone=i,this.loc=e.loc||it.create(),this.invalid=o,this.weekData=null,this.c=l,this.o=d,this.isLuxonDateTime=!0}static now(){return new Ee({})}static local(){const[e,i]=Tf(arguments),[o,l,d,u,v,y,b]=i;return Sf({year:o,month:l,day:d,hour:u,minute:v,second:y,millisecond:b},e)}static utc(){const[e,i]=Tf(arguments),[o,l,d,u,v,y,b]=i;return e.zone=Gt.utcInstance,Sf({year:o,month:l,day:d,hour:u,minute:v,second:y,millisecond:b},e)}static fromJSDate(e,i={}){const o=fS(e)?e.valueOf():NaN;if(Number.isNaN(o))return Ee.invalid("invalid input");const l=Pi(i.zone,mt.defaultZone);return l.isValid?new Ee({ts:o,zone:l,loc:it.fromObject(i)}):Ee.invalid(Ia(l))}static fromMillis(e,i={}){if(pn(e))return e<-wf||e>wf?Ee.invalid("Timestamp out of range"):new Ee({ts:e,zone:Pi(i.zone,mt.defaultZone),loc:it.fromObject(i)});throw new gr(`fromMillis requires a numerical input, but received a ${typeof e} with value ${e}`)}static fromSeconds(e,i={}){if(pn(e))return new Ee({ts:e*1e3,zone:Pi(i.zone,mt.defaultZone),loc:it.fromObject(i)});throw new gr("fromSeconds requires a numerical input")}static fromObject(e,i={}){e=e||{};const o=Pi(i.zone,mt.defaultZone);if(!o.isValid)return Ee.invalid(Ia(o));const l=mt.now(),d=Ze(i.specificOffset)?o.offset(l):i.specificOffset,u=ul(e,Lf),v=!Ze(u.ordinal),y=!Ze(u.year),b=!Ze(u.month)||!Ze(u.day),M=y||b,L=u.weekYear||u.weekNumber,T=it.fromObject(i);if((M||v)&&L)throw new vs("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(b&&v)throw new vs("Can't mix ordinal dates with month/day");const $=L||u.weekday&&!M;let N,Y,oe=Aa(l,d);$?(N=RM,Y=NM,oe=Zc(oe)):v?(N=FM,Y=HM,oe=hc(oe)):(N=K5,Y=q5);let _=!1;for(const me of N){const Me=u[me];Ze(Me)?_?u[me]=Y[me]:u[me]=oe[me]:_=!0}const D=$?PM(u):v?DM(u):U5(u),A=D||j5(u);if(A)return Ee.invalid(A);const B=$?yf(u):v?Cf(u):u,[K,ue]=Ra(B,d,o),le=new Ee({ts:K,zone:o,o:ue,loc:T});return u.weekday&&M&&e.weekday!==le.weekday?Ee.invalid("mismatched weekday",`you can't specify both a weekday of ${u.weekday} and a date of ${le.toISO()}`):le}static fromISO(e,i={}){const[o,l]=rM(e);return hs(o,l,i,"ISO 8601",e)}static fromRFC2822(e,i={}){const[o,l]=iM(e);return hs(o,l,i,"RFC 2822",e)}static fromHTTP(e,i={}){const[o,l]=nM(e);return hs(o,l,i,"HTTP",i)}static fromFormat(e,i,o={}){if(Ze(e)||Ze(i))throw new gr("fromFormat requires an input string and a format");const{locale:l=null,numberingSystem:d=null}=o,u=it.fromOpts({locale:l,numberingSystem:d,defaultToEN:!0}),[v,y,b,M]=AM(u,e,i);return M?Ee.invalid(M):hs(v,y,o,`format ${i}`,e,b)}static fromString(e,i,o={}){return Ee.fromFormat(e,i,o)}static fromSQL(e,i={}){const[o,l]=dM(e);return hs(o,l,i,"SQL",e)}static invalid(e,i=null){if(!e)throw new gr("need to specify a reason the DateTime is invalid");const o=e instanceof kr?e:new kr(e,i);if(mt.throwOnInvalid)throw new WL(o);return new Ee({invalid:o})}static isDateTime(e){return e&&e.isLuxonDateTime||!1}static parseFormatForOpts(e,i={}){const o=R5(e,it.fromObject(i));return o?o.map(l=>l?l.val:null).join(""):null}static expandFormat(e,i={}){return N5(Rt.parseFormat(e),it.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?pc(this).weekYear:NaN}get weekNumber(){return this.isValid?pc(this).weekNumber:NaN}get weekday(){return this.isValid?pc(this).weekday:NaN}get ordinal(){return this.isValid?hc(this.c).ordinal:NaN}get monthShort(){return this.isValid?Ea.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?Ea.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?Ea.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?Ea.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=Fl(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 y=o-u*i,b=o-v*i,M=Aa(y,u),L=Aa(b,v);return M.hour===L.hour&&M.minute===L.minute&&M.second===L.second&&M.millisecond===L.millisecond?[an(this,{ts:y}),an(this,{ts:b})]:[this]}get isInLeapYear(){return Hs(this.year)}get daysInMonth(){return ll(this.year,this.month)}get daysInYear(){return this.isValid?ys(this.year):NaN}get weeksInWeekYear(){return this.isValid?cl(this.weekYear):NaN}resolvedLocaleOptions(e={}){const{locale:i,numberingSystem:o,calendar:l}=Rt.create(this.loc.clone(e),e).resolvedOptions(this);return{locale:i,numberingSystem:o,outputCalendar:l}}toUTC(e=0,i={}){return this.setZone(Gt.instance(e),i)}toLocal(){return this.setZone(mt.defaultZone)}setZone(e,{keepLocalTime:i=!1,keepCalendarTime:o=!1}={}){if(e=Pi(e,mt.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]=Ra(u,d,e)}return an(this,{ts:l,zone:e})}else return Ee.invalid(Ia(e))}reconfigure({locale:e,numberingSystem:i,outputCalendar:o}={}){const l=this.loc.clone({locale:e,numberingSystem:i,outputCalendar:o});return an(this,{loc:l})}setLocale(e){return this.reconfigure({locale:e})}set(e){if(!this.isValid)return this;const i=ul(e,Lf),o=!Ze(i.weekYear)||!Ze(i.weekNumber)||!Ze(i.weekday),l=!Ze(i.ordinal),d=!Ze(i.year),u=!Ze(i.month)||!Ze(i.day),v=d||u,y=i.weekYear||i.weekNumber;if((v||l)&&y)throw new vs("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(u&&l)throw new vs("Can't mix ordinal dates with month/day");let b;o?b=yf({...Zc(this.c),...i}):Ze(i.ordinal)?(b={...this.toObject(),...i},Ze(i.day)&&(b.day=Math.min(ll(b.year,b.month),b.day))):b=Cf({...hc(this.c),...i});const[M,L]=Ra(b,this.o,this.zone);return an(this,{ts:M,o:L})}plus(e){if(!this.isValid)return this;const i=We.fromDurationLike(e);return an(this,xf(this,i))}minus(e){if(!this.isValid)return this;const i=We.fromDurationLike(e).negate();return an(this,xf(this,i))}startOf(e){if(!this.isValid)return this;const i={},o=We.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?Rt.create(this.loc.redefaultToEN(i)).formatDateTimeFromString(this,e):fc}toLocaleString(e=al,i={}){return this.isValid?Rt.create(this.loc.clone(i),e).formatDateTime(this):fc}toLocaleParts(e={}){return this.isValid?Rt.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=gc(this,u);return v+="T",v+=zf(this,u,i,o,l,d),v}toISODate({format:e="extended"}={}){return this.isValid?gc(this,e==="extended"):null}toISOWeekDate(){return Pa(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":"")+zf(this,u==="extended",i,e,o,d):null}toRFC2822(){return Pa(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return Pa(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?gc(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")),Pa(this,l,!0)}toSQL(e={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(e)}`:null}toString(){return this.isValid?this.toISO():fc}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 We.invalid("created by diffing an invalid DateTime");const l={locale:this.locale,numberingSystem:this.numberingSystem,...o},d=pS(i).map(We.normalizeUnit),u=e.valueOf()>this.valueOf(),v=u?this:e,y=u?e:this,b=yM(v,y,d,l);return u?b.negate():b}diffNow(e="milliseconds",i={}){return this.diff(Ee.now(),e,i)}until(e){return this.isValid?dt.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||Ee.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),Mf(i,this.plus(o),{...e,numeric:"always",units:l,unit:d})}toRelativeCalendar(e={}){return this.isValid?Mf(e.base||Ee.fromObject({},{zone:this.zone}),this,{...e,numeric:"auto",units:["years","months","days"],calendary:!0}):null}static min(...e){if(!e.every(Ee.isDateTime))throw new gr("min requires all arguments be DateTimes");return df(e,i=>i.valueOf(),Math.min)}static max(...e){if(!e.every(Ee.isDateTime))throw new gr("max requires all arguments be DateTimes");return df(e,i=>i.valueOf(),Math.max)}static fromFormatExplain(e,i,o={}){const{locale:l=null,numberingSystem:d=null}=o,u=it.fromOpts({locale:l,numberingSystem:d,defaultToEN:!0});return H5(u,e,i)}static fromStringExplain(e,i,o={}){return Ee.fromFormatExplain(e,i,o)}static get DATE_SHORT(){return al}static get DATE_MED(){return Xp}static get DATE_MED_WITH_WEEKDAY(){return GL}static get DATE_FULL(){return Jp}static get DATE_HUGE(){return Qp}static get TIME_SIMPLE(){return e5}static get TIME_WITH_SECONDS(){return t5}static get TIME_WITH_SHORT_OFFSET(){return r5}static get TIME_WITH_LONG_OFFSET(){return i5}static get TIME_24_SIMPLE(){return n5}static get TIME_24_WITH_SECONDS(){return o5}static get TIME_24_WITH_SHORT_OFFSET(){return s5}static get TIME_24_WITH_LONG_OFFSET(){return a5}static get DATETIME_SHORT(){return l5}static get DATETIME_SHORT_WITH_SECONDS(){return c5}static get DATETIME_MED(){return u5}static get DATETIME_MED_WITH_SECONDS(){return d5}static get DATETIME_MED_WITH_WEEKDAY(){return qL}static get DATETIME_FULL(){return h5}static get DATETIME_FULL_WITH_SECONDS(){return f5}static get DATETIME_HUGE(){return p5}static get DATETIME_HUGE_WITH_SECONDS(){return g5}}function fs(n){if(Ee.isDateTime(n))return n;if(n&&n.valueOf&&pn(n.valueOf()))return Ee.fromJSDate(n);if(n&&typeof n=="object")return Ee.fromObject(n);throw new gr(`Unknown datetime argument: ${n}, of type ${typeof n}`)}const BM={Africa:"en-za",America:"en-us",US:"en-us",Australia:"en-au",Europe:"en-gb",Pacific:"en-nz"},VM=n=>Ee.local().setZone(n).isValid,Wc=n=>n.hour<12,kf=n=>!Wc(n),Y5=(n,e)=>Wc(n)&&Wc(e)||kf(n)&&kf(e),vc=(n,e)=>{var l;const i=e&&VM(e)?e:"utc",o=(l=BM[i.split("/")[0]])!=null?l:"en-us";return n.setZone(i).setLocale(o)},ZM=(n,e,i)=>{let o=Ee.fromISO(n),l=Ee.fromISO(e);i&&(o=o.setZone(i),l=l.setZone(i));const d=o.hour===0&&o.minute===0&&o.second===0,u=24*60*60*1e3,v=l.diff(o,"milliseconds").milliseconds===u;return d&&v},Of=n=>WM(X5(n)),WM=n=>n.replace(/Sept/,"Sep"),X5=n=>n.replace(/(AM|PM)/,e=>e.toLowerCase()),dl=n=>n.minute===0?"h":"h:mm",hl=(n,e)=>n.year!==e.year?" yyyy":"";var UM=Object.defineProperty,jM=Object.getOwnPropertyDescriptor,Vi=(n,e,i,o)=>{for(var l=o>1?void 0:o?jM(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&&UM(e,i,l),l};const J5=ce("input-time"),Q5="h:mma",e6=/^([1-9]|1[0-9]|2[0-3]):([0-5])([0-9])?(am?|pm?)?$/,t6=/^(1[3-9]|2[0-3]).*/,r6=/^(\d\d?)(am?|pm?)/,GM=["UTC","AEST"],i6=(n,e)=>({label:`${n}${e?` (${e})`:""}`,value:n}),$f=(n,e)=>{const o=Math.ceil(1440/n),l=Ee.local().startOf("day");return Array(o).fill(null).map((d,u)=>{const v=l.plus({minutes:n*u}),y=X5(v.toFormat(Q5));return i6(y,e)})},qM=(n,e)=>{const i=n.trim(),o=n.match(e6);if(!i||!o)return[];const[,l,d,u]=o,v=parseInt(l,10),y=v>12?`${v-12}`:`${v}`,b=`${d}${u||0}`,M=`${y}:${b}`;return["am","pm"].map(L=>i6(`${M}${L}`,e))},KM=(n,{value:e})=>{const i=n.match(t6);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")},YM=(n,{value:e})=>{const i=n.match(r6);if(!i)return!1;const[,o,l]=i;return!!(e!=null&&e.replace(":00","").startsWith(`${o}${l}`))},XM=(...n)=>YM(...n)||KM(...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=$f(this.increment,this.suffix)}updated(e){super.updated(e),e.has("increment")&&(this.options=$f(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?XM(this.query,e):!1}handleNoResults(){if(this.hasQueryResults)return null;if(!this.isFreeform)return this.renderSearchMessage();this.freeformOptions=qM(this.query,this.suffix),this.hasResults=!!this.freeformOptions.length}renderFreeformOptions(){return this.isFreeform?this.hasQueryResults?this.renderOptionsData(this.freeformOptions):this.renderSearchMessage():null}renderDropdownContent(){return R`
3509
3510
  ${this.handleNoResults()} ${this.renderOptionsData()}
3510
3511
  ${this.renderFreeformOptions()}
3511
- `}};Zn([E({attribute:"can-search",type:Boolean,reflect:!0})],exports.InputTime.prototype,"canSearch",2);Zn([E({type:Number,reflect:!0})],exports.InputTime.prototype,"increment",2);Zn([E({type:String,reflect:!0})],exports.InputTime.prototype,"suffix",2);Zn([E({type:Boolean,attribute:"is-freeform",reflect:!0})],exports.InputTime.prototype,"isFreeform",2);Zn([E({type:String})],exports.InputTime.prototype,"placeholder",2);Zn([E({type:String,reflect:!0,attribute:"trailing-icon"})],exports.InputTime.prototype,"trailingIcon",2);Zn([Ce()],exports.InputTime.prototype,"freeformOptions",2);exports.InputTime=Zn([W(J5)],exports.InputTime);var JM=Object.defineProperty,QM=Object.getOwnPropertyDescriptor,Cn=(i,e,n,o)=>{for(var l=o>1?void 0:o?QM(e,n):e,d=i.length-1,u;d>=0;d--)(u=i[d])&&(l=(o?u(e,n,l):u(l))||l);return o&&l&&JM(e,n,l),l};const i6=ce("toggle-switch"),ps={Checked:"Checked",Empty:"Empty"};exports.ToggleSwitch=class extends tr{constructor(){super(...arguments),this.checked=!1,this.disabled=!1,this.leftLabel=!1,this.value="on",this.switchOffLabel="",this.switchOnLabel="",this.toggleState=ps.Empty,this.label=""}onInput(){this.disabled||(this.toggleState===ps.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?ps.Checked:ps.Empty;const e=R`<span>${this.label}</span>`,n=R`<div class="switch">
3512
+ `}};Vi([E({attribute:"can-search",type:Boolean,reflect:!0})],exports.InputTime.prototype,"canSearch",2);Vi([E({type:Number,reflect:!0})],exports.InputTime.prototype,"increment",2);Vi([E({type:String,reflect:!0})],exports.InputTime.prototype,"suffix",2);Vi([E({type:Boolean,attribute:"is-freeform",reflect:!0})],exports.InputTime.prototype,"isFreeform",2);Vi([E({type:String})],exports.InputTime.prototype,"placeholder",2);Vi([E({type:String,reflect:!0,attribute:"trailing-icon"})],exports.InputTime.prototype,"trailingIcon",2);Vi([Ce()],exports.InputTime.prototype,"freeformOptions",2);exports.InputTime=Vi([W(J5)],exports.InputTime);var JM=Object.defineProperty,QM=Object.getOwnPropertyDescriptor,yi=(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 n6=ce("toggle-switch"),ps={Checked:"Checked",Empty:"Empty"};exports.ToggleSwitch=class extends tr{constructor(){super(...arguments),this.checked=!1,this.disabled=!1,this.leftLabel=!1,this.value="on",this.switchOffLabel="",this.switchOnLabel="",this.toggleState=ps.Empty,this.label=""}onInput(){this.disabled||(this.toggleState===ps.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?ps.Checked:ps.Empty;const e=R`<span>${this.label}</span>`,i=R`<div class="switch">
3512
3513
  <div class="toggle"></div>
3513
3514
  <div class="switch-on">${this.switchOnLabel}</div>
3514
3515
  <div class="switch-off">${this.switchOffLabel}</div>
@@ -3526,7 +3527,7 @@ ${this.value}</textarea
3526
3527
  ?disabled=${this.disabled}
3527
3528
  />`;return R`
3528
3529
  <label for=${this.label} class="label">
3529
- ${this.leftLabel?R`${e}${o}${n}`:R`${o}${n}${e}`}
3530
+ ${this.leftLabel?R`${e}${o}${i}`:R`${o}${i}${e}`}
3530
3531
  </label>
3531
3532
  `}};exports.ToggleSwitch.styles=[Q`
3532
3533
  :host {
@@ -3669,7 +3670,7 @@ ${this.value}</textarea
3669
3670
  background: var(--brz-color-neutral-200);
3670
3671
  }
3671
3672
  }
3672
- `];Cn([E({type:Boolean,reflect:!0})],exports.ToggleSwitch.prototype,"checked",2);Cn([E({type:Boolean,reflect:!0})],exports.ToggleSwitch.prototype,"disabled",2);Cn([E({type:Boolean,reflect:!0,attribute:"left-label"})],exports.ToggleSwitch.prototype,"leftLabel",2);Cn([E()],exports.ToggleSwitch.prototype,"value",2);Cn([E({type:String})],exports.ToggleSwitch.prototype,"switchOffLabel",2);Cn([E({type:String})],exports.ToggleSwitch.prototype,"switchOnLabel",2);Cn([Ce()],exports.ToggleSwitch.prototype,"toggleState",2);Cn([E({type:String,reflect:!0})],exports.ToggleSwitch.prototype,"label",2);exports.ToggleSwitch=Cn([W(i6)],exports.ToggleSwitch);var eT=Object.defineProperty,tT=Object.getOwnPropertyDescriptor,ku=(i,e,n,o)=>{for(var l=o>1?void 0:o?tT(e,n):e,d=i.length-1,u;d>=0;d--)(u=i[d])&&(l=(o?u(e,n,l):u(l))||l);return o&&l&&eT(e,n,l),l};const o6=ce("heading");exports.Heading=class extends ze{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 n;const e=`size-${(n=this.size)!=null?n:"base"}`;switch(this.getLevel()){case 1:return R`<h1 class=${e}><slot></slot></h1>`;case 2:return R`<h2 class=${e}><slot></slot></h2>`;case 3:return R`<h3 class=${e}><slot></slot></h3>`;case 4:return R`<h4 class=${e}><slot></slot></h4>`;case 5:return R`<h5 class=${e}><slot></slot></h5>`;case 6:return R`<h6 class=${e}><slot></slot></h6>`}}};exports.Heading.styles=Q`
3673
+ `];yi([E({type:Boolean,reflect:!0})],exports.ToggleSwitch.prototype,"checked",2);yi([E({type:Boolean,reflect:!0})],exports.ToggleSwitch.prototype,"disabled",2);yi([E({type:Boolean,reflect:!0,attribute:"left-label"})],exports.ToggleSwitch.prototype,"leftLabel",2);yi([E()],exports.ToggleSwitch.prototype,"value",2);yi([E({type:String})],exports.ToggleSwitch.prototype,"switchOffLabel",2);yi([E({type:String})],exports.ToggleSwitch.prototype,"switchOnLabel",2);yi([Ce()],exports.ToggleSwitch.prototype,"toggleState",2);yi([E({type:String,reflect:!0})],exports.ToggleSwitch.prototype,"label",2);exports.ToggleSwitch=yi([W(n6)],exports.ToggleSwitch);var eT=Object.defineProperty,tT=Object.getOwnPropertyDescriptor,ku=(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&&eT(e,i,l),l};const o6=ce("heading");exports.Heading=class extends ze{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 R`<h1 class=${e}><slot></slot></h1>`;case 2:return R`<h2 class=${e}><slot></slot></h2>`;case 3:return R`<h3 class=${e}><slot></slot></h3>`;case 4:return R`<h4 class=${e}><slot></slot></h4>`;case 5:return R`<h5 class=${e}><slot></slot></h5>`;case 6:return R`<h6 class=${e}><slot></slot></h6>`}}};exports.Heading.styles=Q`
3673
3674
  h1,
3674
3675
  h2,
3675
3676
  h3,
@@ -3714,7 +3715,7 @@ ${this.value}</textarea
3714
3715
  :host {
3715
3716
  display: block;
3716
3717
  }
3717
- `;ku([E({type:String})],exports.Heading.prototype,"size",2);ku([E({type:Number})],exports.Heading.prototype,"level",2);exports.Heading=ku([W(o6)],exports.Heading);const s6=ce("inline-edit-field"),Ou=ce("inline-edit-group"),a6=ce("inline-edit-controls"),l6=["edit","saving","error"],rT=["read","saved",...l6];class c6 extends CustomEvent{constructor(e={}){super("brz-inline-edit-controls-cancel",{bubbles:!0,composed:!0,...e})}}class u6 extends CustomEvent{constructor(e={}){super("brz-inline-edit-controls-save",{bubbles:!0,composed:!0,...e})}}class d6 extends CustomEvent{constructor(e={}){super("brz-inline-edit-field-broadcast",{bubbles:!0,composed:!0,...e})}}class h6 extends CustomEvent{constructor(e={}){super("brz-inline-edit-field-mode-change",{bubbles:!0,composed:!0,...e})}}class f6 extends CustomEvent{constructor(e={}){super("brz-inline-edit-group-mode-change",{bubbles:!0,composed:!0,...e})}}const nT=Q`
3718
+ `;ku([E({type:String})],exports.Heading.prototype,"size",2);ku([E({type:Number})],exports.Heading.prototype,"level",2);exports.Heading=ku([W(o6)],exports.Heading);const s6=ce("inline-edit-field"),Ou=ce("inline-edit-group"),a6=ce("inline-edit-controls"),l6=["edit","saving","error"],rT=["read","saved",...l6];class c6 extends CustomEvent{constructor(e={}){super("brz-inline-edit-controls-cancel",{bubbles:!0,composed:!0,...e})}}class u6 extends CustomEvent{constructor(e={}){super("brz-inline-edit-controls-save",{bubbles:!0,composed:!0,...e})}}class d6 extends CustomEvent{constructor(e={}){super("brz-inline-edit-field-broadcast",{bubbles:!0,composed:!0,...e})}}class h6 extends CustomEvent{constructor(e={}){super("brz-inline-edit-field-mode-change",{bubbles:!0,composed:!0,...e})}}class f6 extends CustomEvent{constructor(e={}){super("brz-inline-edit-group-mode-change",{bubbles:!0,composed:!0,...e})}}const iT=Q`
3718
3719
  :host {
3719
3720
  display: block;
3720
3721
  }
@@ -3804,7 +3805,7 @@ ${this.value}</textarea
3804
3805
 
3805
3806
  margin-top: var(--brz-inline-edit-controls-spacing);
3806
3807
  }
3807
- `,iT=Q`
3808
+ `,nT=Q`
3808
3809
  .inline-edit-group {
3809
3810
  display: inline-flex;
3810
3811
  flex-direction: column;
@@ -3823,7 +3824,7 @@ ${this.value}</textarea
3823
3824
  flex-direction: column;
3824
3825
  row-gap: var(--brz-inline-edit-controls-spacing);
3825
3826
  }
3826
- `;var sT=Object.defineProperty,aT=Object.getOwnPropertyDescriptor,p6=(i,e,n,o)=>{for(var l=o>1?void 0:o?aT(e,n):e,d=i.length-1,u;d>=0;d--)(u=i[d])&&(l=(o?u(e,n,l):u(l))||l);return o&&l&&sT(e,n,l),l};exports.InlineEditControls=class extends ze{constructor(){super(...arguments),this.mode="edit"}handleCancelClick(){this.dispatchEvent(new c6)}handleSaveClick(){this.dispatchEvent(new u6)}render(){return R`
3827
+ `;var sT=Object.defineProperty,aT=Object.getOwnPropertyDescriptor,p6=(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&&sT(e,i,l),l};exports.InlineEditControls=class extends ze{constructor(){super(...arguments),this.mode="edit"}handleCancelClick(){this.dispatchEvent(new c6)}handleSaveClick(){this.dispatchEvent(new u6)}render(){return R`
3827
3828
  <brz-split-row>
3828
3829
  <brz-button-group slot="right">
3829
3830
  ${["edit","error"].includes(this.mode)?R`
@@ -3848,7 +3849,7 @@ ${this.value}</textarea
3848
3849
  </brz-split-row>
3849
3850
 
3850
3851
  ${this.mode==="error"?R` <slot name="error"></slot> `:null}
3851
- `}};exports.InlineEditControls.styles=[oT];p6([E()],exports.InlineEditControls.prototype,"mode",2);exports.InlineEditControls=p6([W(a6)],exports.InlineEditControls);var lT=Object.defineProperty,cT=Object.getOwnPropertyDescriptor,$u=(i,e,n,o)=>{for(var l=o>1?void 0:o?cT(e,n):e,d=i.length-1,u;d>=0;d--)(u=i[d])&&(l=(o?u(e,n,l):u(l))||l);return o&&l&&lT(e,n,l),l};class Bs extends ze{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")}}$u([E({type:Boolean,reflect:!0})],Bs.prototype,"locked",2);$u([E({type:Function,attribute:!1})],Bs.prototype,"save",2);$u([Ce()],Bs.prototype,"mode",2);var uT=Object.defineProperty,dT=Object.getOwnPropertyDescriptor,Eu=(i,e,n,o)=>{for(var l=o>1?void 0:o?dT(e,n):e,d=i.length-1,u;d>=0;d--)(u=i[d])&&(l=(o?u(e,n,l):u(l))||l);return o&&l&&uT(e,n,l),l};exports.InlineEditGroup=class extends Bs{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(n=>n.locked=!0),this.controller&&this.fields.forEach(n=>{n.controlled=!0,n.setMode(this.mode)}),e.has("mode")&&this.dispatchEvent(new f6({detail:{currentMode:this.mode,previousMode:e.get("mode"),fields:this.fields,group:this}}))}get defaultSlot(){return R`
3852
+ `}};exports.InlineEditControls.styles=[oT];p6([E()],exports.InlineEditControls.prototype,"mode",2);exports.InlineEditControls=p6([W(a6)],exports.InlineEditControls);var lT=Object.defineProperty,cT=Object.getOwnPropertyDescriptor,$u=(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};class Bs extends ze{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")}}$u([E({type:Boolean,reflect:!0})],Bs.prototype,"locked",2);$u([E({type:Function,attribute:!1})],Bs.prototype,"save",2);$u([Ce()],Bs.prototype,"mode",2);var uT=Object.defineProperty,dT=Object.getOwnPropertyDescriptor,Eu=(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};exports.InlineEditGroup=class extends Bs{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 f6({detail:{currentMode:this.mode,previousMode:e.get("mode"),fields:this.fields,group:this}}))}get defaultSlot(){return R`
3852
3853
  <slot
3853
3854
  @brz-inline-edit-field-broadcast=${this.handleInlineEditFieldViewModeClick}
3854
3855
  >
@@ -3868,15 +3869,15 @@ ${this.value}</textarea
3868
3869
  </slot>
3869
3870
  `:null}
3870
3871
  </dl>
3871
- `}};exports.InlineEditGroup.styles=[iT];Eu([E({type:Boolean})],exports.InlineEditGroup.prototype,"controller",2);Eu([Ce()],exports.InlineEditGroup.prototype,"fields",2);exports.InlineEditGroup=Eu([W(Ou)],exports.InlineEditGroup);var hT=Object.defineProperty,fT=Object.getOwnPropertyDescriptor,Pr=(i,e,n,o)=>{for(var l=o>1?void 0:o?fT(e,n):e,d=i.length-1,u;d>=0;d--)(u=i[d])&&(l=(o?u(e,n,l):u(l))||l);return o&&l&&hT(e,n,l),l};const pT=i=>i instanceof Ct&&!!i.options.length;exports.InlineEditField=class extends Bs{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 h6({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,pT(this.inputElement)&&(this.options=this.inputElement.options),(this.inputElement instanceof Ct||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 n=[...e.children];this.options=n.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(n=>n.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(n=>n.slot==="");if(!e)throw new Error("No element has been assigned to the RecordField default slot.");if(!(e instanceof tr))throw new Error("Expected a Breeze Input in the RecordField default slot.");return e}return this.fieldElement}generateFieldLabelSlot(){var e,n;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=((n=(e=this.inputElement.firstChild)==null?void 0:e.textContent)==null?void 0:n.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 n=(e=this.options.find(({value:o})=>o===this.value))==null?void 0:e.label;return this.inputElement instanceof exports.InputSelect?this.getSelectValueTemplate(n||this.value):n||this.value}return this.inputElement instanceof exports.InputCheckbox?this.getCheckboxValueTemplate(this.inputElement):this.value}getSelectValueTemplate(e){return R`
3872
+ `}};exports.InlineEditGroup.styles=[nT];Eu([E({type:Boolean})],exports.InlineEditGroup.prototype,"controller",2);Eu([Ce()],exports.InlineEditGroup.prototype,"fields",2);exports.InlineEditGroup=Eu([W(Ou)],exports.InlineEditGroup);var hT=Object.defineProperty,fT=Object.getOwnPropertyDescriptor,Pr=(n,e,i,o)=>{for(var l=o>1?void 0:o?fT(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&&hT(e,i,l),l};const pT=n=>n instanceof Ct&&!!n.options.length;exports.InlineEditField=class extends Bs{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 h6({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,pT(this.inputElement)&&(this.options=this.inputElement.options),(this.inputElement instanceof Ct||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 tr))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 R`
3872
3873
  <brz-lozenge theme="subtle" color="sapphire" size="small">
3873
3874
  ${e}
3874
3875
  </brz-lozenge>
3875
- `}getCheckboxValueTemplate(e){const n=e.checked?"True":"False",o=e.checked?"green":"neutral";return R`
3876
+ `}getCheckboxValueTemplate(e){const i=e.checked?"True":"False",o=e.checked?"green":"neutral";return R`
3876
3877
  <brz-lozenge theme="subtle" color=${o} size="small">
3877
- ${n}
3878
+ ${i}
3878
3879
  </brz-lozenge>
3879
- `}get slottedInputLabel(){return this.fieldElement.querySelector('[slot="label"]')}async handleSave(){var e,n,o;await(((e=this.save)==null?void 0:e.call(this))||((o=(n=this.group)==null?void 0:n.save)==null?void 0:o.call(n)))}get readModeTemplate(){var e;return R`
3880
+ `}get slottedInputLabel(){return this.fieldElement.querySelector('[slot="label"]')}async handleSave(){var e,i,o;await(((e=this.save)==null?void 0:e.call(this))||((o=(i=this.group)==null?void 0:i.save)==null?void 0:o.call(i)))}get readModeTemplate(){var e;return R`
3880
3881
  <brz-record-field .labelPosition=${this.labelPosition} size=${this.size}>
3881
3882
  <brz-record-field-label
3882
3883
  part="read-mode-label"
@@ -3929,7 +3930,7 @@ ${this.value}</textarea
3929
3930
  </slot>
3930
3931
  `}
3931
3932
  </div>
3932
- `}get group(){return this.closest(Ou)}emitBroadcastEvent(){this.dispatchEvent(new d6({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=[nT];Pr([E({type:Boolean})],exports.InlineEditField.prototype,"controlled",2);Pr([E({type:Boolean})],exports.InlineEditField.prototype,"truncate",2);Pr([Ce()],exports.InlineEditField.prototype,"labelPosition",2);Pr([Ce()],exports.InlineEditField.prototype,"size",2);Pr([Ce()],exports.InlineEditField.prototype,"value",2);Pr([Ce()],exports.InlineEditField.prototype,"options",2);Pr([Ce()],exports.InlineEditField.prototype,"label",2);Pr([Ce()],exports.InlineEditField.prototype,"hasLabel",2);Pr([Ce()],exports.InlineEditField.prototype,"isValueOverflowing",2);Pr([_r(".value")],exports.InlineEditField.prototype,"valueElement",2);exports.InlineEditField=Pr([W(s6)],exports.InlineEditField);var gT=Object.defineProperty,vT=Object.getOwnPropertyDescriptor,Vs=(i,e,n,o)=>{for(var l=o>1?void 0:o?vT(e,n):e,d=i.length-1,u;d>=0;d--)(u=i[d])&&(l=(o?u(e,n,l):u(l))||l);return o&&l&&gT(e,n,l),l};const g6=ce("side-navigation-item"),bT=Q`
3933
+ `}get group(){return this.closest(Ou)}emitBroadcastEvent(){this.dispatchEvent(new d6({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];Pr([E({type:Boolean})],exports.InlineEditField.prototype,"controlled",2);Pr([E({type:Boolean})],exports.InlineEditField.prototype,"truncate",2);Pr([Ce()],exports.InlineEditField.prototype,"labelPosition",2);Pr([Ce()],exports.InlineEditField.prototype,"size",2);Pr([Ce()],exports.InlineEditField.prototype,"value",2);Pr([Ce()],exports.InlineEditField.prototype,"options",2);Pr([Ce()],exports.InlineEditField.prototype,"label",2);Pr([Ce()],exports.InlineEditField.prototype,"hasLabel",2);Pr([Ce()],exports.InlineEditField.prototype,"isValueOverflowing",2);Pr([_r(".value")],exports.InlineEditField.prototype,"valueElement",2);exports.InlineEditField=Pr([W(s6)],exports.InlineEditField);var gT=Object.defineProperty,vT=Object.getOwnPropertyDescriptor,Vs=(n,e,i,o)=>{for(var l=o>1?void 0:o?vT(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&&gT(e,i,l),l};const g6=ce("side-navigation-item"),bT=Q`
3933
3934
  :host li {
3934
3935
  list-style: none;
3935
3936
  padding: var(--brz-spacing-2) 0;
@@ -3965,7 +3966,7 @@ ${this.value}</textarea
3965
3966
  <slot></slot>
3966
3967
  </a>
3967
3968
  </li>
3968
- `}};exports.SideNavigationItem.styles=[bT];Vs([E({type:String,reflect:!0})],exports.SideNavigationItem.prototype,"target",2);Vs([E({type:String,reflect:!0})],exports.SideNavigationItem.prototype,"rel",2);Vs([E({type:String,reflect:!0})],exports.SideNavigationItem.prototype,"href",2);Vs([E({type:Boolean,reflect:!0})],exports.SideNavigationItem.prototype,"active",2);exports.SideNavigationItem=Vs([W(g6)],exports.SideNavigationItem);var mT=Object.defineProperty,yT=Object.getOwnPropertyDescriptor,CT=(i,e,n,o)=>{for(var l=o>1?void 0:o?yT(e,n):e,d=i.length-1,u;d>=0;d--)(u=i[d])&&(l=(o?u(e,n,l):u(l))||l);return o&&l&&mT(e,n,l),l};const v6=ce("side-navigation"),wT=Q`
3969
+ `}};exports.SideNavigationItem.styles=[bT];Vs([E({type:String,reflect:!0})],exports.SideNavigationItem.prototype,"target",2);Vs([E({type:String,reflect:!0})],exports.SideNavigationItem.prototype,"rel",2);Vs([E({type:String,reflect:!0})],exports.SideNavigationItem.prototype,"href",2);Vs([E({type:Boolean,reflect:!0})],exports.SideNavigationItem.prototype,"active",2);exports.SideNavigationItem=Vs([W(g6)],exports.SideNavigationItem);var mT=Object.defineProperty,yT=Object.getOwnPropertyDescriptor,CT=(n,e,i,o)=>{for(var l=o>1?void 0:o?yT(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 v6=ce("side-navigation"),wT=Q`
3969
3970
  :host {
3970
3971
  display: block;
3971
3972
  height: 100%;
@@ -3979,15 +3980,15 @@ ${this.value}</textarea
3979
3980
  }
3980
3981
  `;exports.SideNavigation=class extends ze{render(){return R`<ul>
3981
3982
  <slot></slot>
3982
- </ul>`}};exports.SideNavigation.styles=[wT];exports.SideNavigation=CT([W(v6)],exports.SideNavigation);var xT=Object.defineProperty,zT=Object.getOwnPropertyDescriptor,b6=(i,e,n,o)=>{for(var l=o>1?void 0:o?zT(e,n):e,d=i.length-1,u;d>=0;d--)(u=i[d])&&(l=(o?u(e,n,l):u(l))||l);return o&&l&&xT(e,n,l),l};const m6=ce("record-row"),y6=ce("record-row-label");exports.RecordRow=class extends exports.RecordField{connectedCallback(){super.connectedCallback(),this.labelPosition="side"}};exports.RecordRow.styles=[...exports.RecordField.styles,Q`
3983
+ </ul>`}};exports.SideNavigation.styles=[wT];exports.SideNavigation=CT([W(v6)],exports.SideNavigation);var xT=Object.defineProperty,zT=Object.getOwnPropertyDescriptor,b6=(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 m6=ce("record-row"),y6=ce("record-row-label");exports.RecordRow=class extends exports.RecordField{connectedCallback(){super.connectedCallback(),this.labelPosition="side"}};exports.RecordRow.styles=[...exports.RecordField.styles,Q`
3983
3984
  :host(:nth-of-type(n + 2)) {
3984
3985
  margin-top: var(--brz-spacing-4);
3985
3986
  }
3986
- `];exports.RecordRow=b6([W(m6)],exports.RecordRow);exports.RecordRowLabel=class extends exports.RecordFieldLabel{};exports.RecordRowLabel=b6([W(y6)],exports.RecordRowLabel);var LT=Object.defineProperty,ST=Object.getOwnPropertyDescriptor,_u=(i,e,n,o)=>{for(var l=o>1?void 0:o?ST(e,n):e,d=i.length-1,u;d>=0;d--)(u=i[d])&&(l=(o?u(e,n,l):u(l))||l);return o&&l&&LT(e,n,l),l};const C6=ce("tab-panel");exports.TabPanel=class extends ze{constructor(){super(...arguments),this.name="",this.shown=!1}render(){return R`<div id="panel"><slot></slot></div>`}};exports.TabPanel.styles=Q`
3987
+ `];exports.RecordRow=b6([W(m6)],exports.RecordRow);exports.RecordRowLabel=class extends exports.RecordFieldLabel{};exports.RecordRowLabel=b6([W(y6)],exports.RecordRowLabel);var LT=Object.defineProperty,ST=Object.getOwnPropertyDescriptor,_u=(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 C6=ce("tab-panel");exports.TabPanel=class extends ze{constructor(){super(...arguments),this.name="",this.shown=!1}render(){return R`<div id="panel"><slot></slot></div>`}};exports.TabPanel.styles=Q`
3987
3988
  :host(:not([shown])) #panel {
3988
3989
  display: none;
3989
3990
  }
3990
- `;_u([E({type:String,reflect:!0})],exports.TabPanel.prototype,"name",2);_u([E({type:Boolean,reflect:!0})],exports.TabPanel.prototype,"shown",2);exports.TabPanel=_u([W(C6)],exports.TabPanel);class Zl extends CustomEvent{constructor(e){super("brz-tab-selected",{bubbles:!0,detail:{name:e}})}}class w6 extends CustomEvent{constructor(e){super("brz-tab-deselected",{bubbles:!0,detail:{name:e}})}}var MT=Object.defineProperty,TT=Object.getOwnPropertyDescriptor,Wl=(i,e,n,o)=>{for(var l=o>1?void 0:o?TT(e,n):e,d=i.length-1,u;d>=0;d--)(u=i[d])&&(l=(o?u(e,n,l):u(l))||l);return o&&l&&MT(e,n,l),l};const x6=ce("tab");exports.Tab=class extends ze{constructor(){super(...arguments),this.selected=!1,this.name="",this.link=""}updated(e){const n=e.get("selected");n===!1&&this.selected===!0?this.dispatchEvent(new Zl(this.name)):n===!0&&this.selected===!1&&this.dispatchEvent(new w6(this.name)),super.updated(e)}render(){return this.link?R`<a href=${this.link} id="tab"><slot></slot></a>`:R`<div
3991
+ `;_u([E({type:String,reflect:!0})],exports.TabPanel.prototype,"name",2);_u([E({type:Boolean,reflect:!0})],exports.TabPanel.prototype,"shown",2);exports.TabPanel=_u([W(C6)],exports.TabPanel);class Zl extends CustomEvent{constructor(e){super("brz-tab-selected",{bubbles:!0,detail:{name:e}})}}class w6 extends CustomEvent{constructor(e){super("brz-tab-deselected",{bubbles:!0,detail:{name:e}})}}var MT=Object.defineProperty,TT=Object.getOwnPropertyDescriptor,Wl=(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 x6=ce("tab");exports.Tab=class extends ze{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 Zl(this.name)):i===!0&&this.selected===!1&&this.dispatchEvent(new w6(this.name)),super.updated(e)}render(){return this.link?R`<a href=${this.link} id="tab"><slot></slot></a>`:R`<div
3991
3992
  tabindex="0"
3992
3993
  role="tab"
3993
3994
  aria-selected=${this.selected}
@@ -4015,7 +4016,7 @@ ${this.value}</textarea
4015
4016
  #tab:hover {
4016
4017
  color: var(--brz-color-neutral-850);
4017
4018
  }
4018
- `;Wl([E({type:Boolean,reflect:!0})],exports.Tab.prototype,"selected",2);Wl([E({type:String,reflect:!0})],exports.Tab.prototype,"name",2);Wl([E({type:String,reflect:!0})],exports.Tab.prototype,"link",2);exports.Tab=Wl([W(x6)],exports.Tab);var kT=Object.defineProperty,OT=Object.getOwnPropertyDescriptor,Ul=(i,e,n,o)=>{for(var l=o>1?void 0:o?OT(e,n):e,d=i.length-1,u;d>=0;d--)(u=i[d])&&(l=(o?u(e,n,l):u(l))||l);return o&&l&&kT(e,n,l),l};const z6=ce("tab-bar");exports.TabBar=class extends ze{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 n=Array.from(e.assignedElements());for(;n[0]instanceof HTMLSlotElement;)n=Array.from(n[0].assignedElements());this.tabs=n.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:n}=e.target;n&&(this.controlled||(this.selected=n),this.dispatchEvent(new Zl(n)))}}updated(e){e.has("selected")&&this.updateSelectedTab()}updateSelectedTab(){this.tabs.forEach(e=>{const n=e.name===this.selected;n!==e.selected&&(e.selected=n)})}render(){return R`
4019
+ `;Wl([E({type:Boolean,reflect:!0})],exports.Tab.prototype,"selected",2);Wl([E({type:String,reflect:!0})],exports.Tab.prototype,"name",2);Wl([E({type:String,reflect:!0})],exports.Tab.prototype,"link",2);exports.Tab=Wl([W(x6)],exports.Tab);var kT=Object.defineProperty,OT=Object.getOwnPropertyDescriptor,Ul=(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&&kT(e,i,l),l};const z6=ce("tab-bar");exports.TabBar=class extends ze{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 Zl(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 R`
4019
4020
  <brz-row id="tabbar" @click=${this.handleClick}>
4020
4021
  <slot @slotchange=${this.handleSlotChange}></slot>
4021
4022
  </brz-row>
@@ -4037,7 +4038,7 @@ ${this.value}</textarea
4037
4038
  top: 0;
4038
4039
  z-index: 1;
4039
4040
  }
4040
- `;Ul([E({type:Boolean})],exports.TabBar.prototype,"controlled",2);Ul([E({type:String})],exports.TabBar.prototype,"selected",2);Ul([Ce()],exports.TabBar.prototype,"tabs",2);exports.TabBar=Ul([W(z6)],exports.TabBar);var $T=Object.defineProperty,ET=Object.getOwnPropertyDescriptor,Iu=(i,e,n,o)=>{for(var l=o>1?void 0:o?ET(e,n):e,d=i.length-1,u;d>=0;d--)(u=i[d])&&(l=(o?u(e,n,l):u(l))||l);return o&&l&&$T(e,n,l),l};const L6=ce("tabs");exports.Tabs=class extends ze{constructor(){super(...arguments),this.selected="",this.panels=[]}handleSlotChange(){var n,o,l;const e=(n=this.shadowRoot)==null?void 0:n.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 n=e.name===this.selected;n!==e.shown&&(e.shown=n)})}handleTabSelected(e){this.selected=e.detail.name,this.updatePanelVisibility(),e.stopPropagation(),this.dispatchEvent(new Zl(this.selected))}render(){return R`
4041
+ `;Ul([E({type:Boolean})],exports.TabBar.prototype,"controlled",2);Ul([E({type:String})],exports.TabBar.prototype,"selected",2);Ul([Ce()],exports.TabBar.prototype,"tabs",2);exports.TabBar=Ul([W(z6)],exports.TabBar);var $T=Object.defineProperty,ET=Object.getOwnPropertyDescriptor,Iu=(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&&$T(e,i,l),l};const L6=ce("tabs");exports.Tabs=class extends ze{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 Zl(this.selected))}render(){return R`
4041
4042
  <brz-tab-bar
4042
4043
  controlled
4043
4044
  selected=${this.selected}
@@ -4050,7 +4051,7 @@ ${this.value}</textarea
4050
4051
  :host {
4051
4052
  background-color: var(--brz-color-white);
4052
4053
  }
4053
- `;Iu([E({type:String,reflect:!0})],exports.Tabs.prototype,"selected",2);Iu([Ce()],exports.Tabs.prototype,"panels",2);exports.Tabs=Iu([W(L6)],exports.Tabs);var _T=Object.defineProperty,IT=Object.getOwnPropertyDescriptor,jl=(i,e,n,o)=>{for(var l=o>1?void 0:o?IT(e,n):e,d=i.length-1,u;d>=0;d--)(u=i[d])&&(l=(o?u(e,n,l):u(l))||l);return o&&l&&_T(e,n,l),l};const S6=ce("badge");var M6=(i=>(i[i.subtle=0]="subtle",i[i.primary=1]="primary",i[i.important=2]="important",i))(M6||{});const AT=i=>!i||typeof i!="string"?!1:/^-?\d+$/.test(i),T6=5,k6=99;exports.Badge=class extends ze{constructor(){super(...arguments),this.limit=0,this.content=""}setDefaultLimit(){this.limit||(this.limit=typeof this.content=="number"?k6:T6)}updated(e){super.updated(e),e.has("content")&&(this.content=AT(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 R` <span>${this.generateContent()}</span> `}};exports.Badge.styles=Q`
4054
+ `;Iu([E({type:String,reflect:!0})],exports.Tabs.prototype,"selected",2);Iu([Ce()],exports.Tabs.prototype,"panels",2);exports.Tabs=Iu([W(L6)],exports.Tabs);var _T=Object.defineProperty,IT=Object.getOwnPropertyDescriptor,jl=(n,e,i,o)=>{for(var l=o>1?void 0:o?IT(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 S6=ce("badge");var M6=(n=>(n[n.subtle=0]="subtle",n[n.primary=1]="primary",n[n.important=2]="important",n))(M6||{});const AT=n=>!n||typeof n!="string"?!1:/^-?\d+$/.test(n),T6=5,k6=99;exports.Badge=class extends ze{constructor(){super(...arguments),this.limit=0,this.content=""}setDefaultLimit(){this.limit||(this.limit=typeof this.content=="number"?k6:T6)}updated(e){super.updated(e),e.has("content")&&(this.content=AT(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 R` <span>${this.generateContent()}</span> `}};exports.Badge.styles=Q`
4054
4055
  :host {
4055
4056
  --brz-badge-background-color: var(--brz-color-neutral-250);
4056
4057
  --brz-badge-color: var(--brz-color-neutral-750);
@@ -4082,7 +4083,7 @@ ${this.value}</textarea
4082
4083
  --brz-badge-background-color: var(--brz-color-red-600);
4083
4084
  --brz-badge-color: var(--brz-color-white);
4084
4085
  }
4085
- `;jl([E({reflect:!0})],exports.Badge.prototype,"theme",2);jl([E({type:Number})],exports.Badge.prototype,"limit",2);jl([E({type:String||Number})],exports.Badge.prototype,"content",2);exports.Badge=jl([W(S6)],exports.Badge);var PT=Math.ceil,DT=Math.max;function NT(i,e,n,o){for(var l=-1,d=DT(PT((e-i)/(n||1)),0),u=Array(d);d--;)u[o?d:++l]=i,i+=n;return u}var HT=NT,RT=uu,FT=j2,BT=fu,VT=Is;function ZT(i,e,n){if(!VT(n))return!1;var o=typeof e;return(o=="number"?FT(n)&&BT(e,n.length):o=="string"&&e in n)?RT(n[e],i):!1}var WT=ZT,UT=HT,jT=WT,bc=np;function GT(i){return function(e,n,o){return o&&typeof o!="number"&&jT(e,n,o)&&(n=o=void 0),e=bc(e),n===void 0?(n=e,e=0):n=bc(n),o=o===void 0?e<n?1:-1:bc(o),UT(e,n,o,i)}}var qT=GT,KT=qT,YT=KT(),XT=YT;const Gl=cu(XT);function JT(i,e,n){return[1,null,...Gl(i-e,i+e+1),null,n]}function QT(i,e){return[1,null,...Gl(i-(e-3),i+1)]}function ek(i,e){return[...Gl(1,e-1),null,i]}function tk(i,e,n){return i>1+1+e*2&&i<n-1-e*2}function rk(i,e=1,n=1){const o=5+n*2;if(i<=o)return Gl(1,i+1);if(tk(e,n,i))return JT(e,n,i);if(e+(o-3)>=i)return QT(i,o);if(e<o)return ek(i,o)}var nk=Object.defineProperty,ik=Object.getOwnPropertyDescriptor,en=(i,e,n,o)=>{for(var l=o>1?void 0:o?ik(e,n):e,d=i.length-1,u;d>=0;d--)(u=i[d])&&(l=(o?u(e,n,l):u(l))||l);return o&&l&&nk(e,n,l),l};const Au=ce("basic-pagination"),Pu=ce("pagination");class O6 extends CustomEvent{constructor(e){super(`${Au}-${e}`,{bubbles:!0,composed:!0})}}exports.BasicPagination=class extends ze{constructor(){super(...arguments),this.hasPreviousPage=!1,this.hasNextPage=!1}emit(e){this.dispatchEvent(new O6(e))}handlePageChange(e){this.emit(`${e}-page`)}render(){return R`
4086
+ `;jl([E({reflect:!0})],exports.Badge.prototype,"theme",2);jl([E({type:Number})],exports.Badge.prototype,"limit",2);jl([E({type:String||Number})],exports.Badge.prototype,"content",2);exports.Badge=jl([W(S6)],exports.Badge);var PT=Math.ceil,DT=Math.max;function NT(n,e,i,o){for(var l=-1,d=DT(PT((e-n)/(i||1)),0),u=Array(d);d--;)u[o?d:++l]=n,n+=i;return u}var HT=NT,RT=uu,FT=j2,BT=fu,VT=Is;function ZT(n,e,i){if(!VT(i))return!1;var o=typeof e;return(o=="number"?FT(i)&&BT(e,i.length):o=="string"&&e in i)?RT(i[e],n):!1}var WT=ZT,UT=HT,jT=WT,bc=ip;function GT(n){return function(e,i,o){return o&&typeof o!="number"&&jT(e,i,o)&&(i=o=void 0),e=bc(e),i===void 0?(i=e,e=0):i=bc(i),o=o===void 0?e<i?1:-1:bc(o),UT(e,i,o,n)}}var qT=GT,KT=qT,YT=KT(),XT=YT;const Gl=cu(XT);function JT(n,e,i){return[1,null,...Gl(n-e,n+e+1),null,i]}function QT(n,e){return[1,null,...Gl(n-(e-3),n+1)]}function ek(n,e){return[...Gl(1,e-1),null,n]}function tk(n,e,i){return n>1+1+e*2&&n<i-1-e*2}function rk(n,e=1,i=1){const o=5+i*2;if(n<=o)return Gl(1,n+1);if(tk(e,i,n))return JT(e,i,n);if(e+(o-3)>=n)return QT(n,o);if(e<o)return ek(n,o)}var ik=Object.defineProperty,nk=Object.getOwnPropertyDescriptor,ei=(n,e,i,o)=>{for(var l=o>1?void 0:o?nk(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 Au=ce("basic-pagination"),Pu=ce("pagination");class O6 extends CustomEvent{constructor(e){super(`${Au}-${e}`,{bubbles:!0,composed:!0})}}exports.BasicPagination=class extends ze{constructor(){super(...arguments),this.hasPreviousPage=!1,this.hasNextPage=!1}emit(e){this.dispatchEvent(new O6(e))}handlePageChange(e){this.emit(`${e}-page`)}render(){return R`
4086
4087
  <brz-button-group role="navigation" aria-label="Pagination Navigation">
4087
4088
  <brz-button
4088
4089
  compact
@@ -4108,7 +4109,7 @@ ${this.value}</textarea
4108
4109
  brz-button-group {
4109
4110
  --brz-spacing-2: var(--brz-spacing-1);
4110
4111
  }
4111
- `;en([E({type:Boolean,attribute:"has-previous-page",reflect:!0})],exports.BasicPagination.prototype,"hasPreviousPage",2);en([E({type:Boolean,attribute:"has-next-page",reflect:!0})],exports.BasicPagination.prototype,"hasNextPage",2);exports.BasicPagination=en([W(Au)],exports.BasicPagination);class $6 extends CustomEvent{constructor(e,n){super(`${Pu}-${e}`,{bubbles:!0,composed:!0,detail:{page:n}})}}exports.Pagination=class extends ze{constructor(){super(...arguments),this.currentPageSiblings=1}emit(e,n){this.dispatchEvent(new $6(e,n))}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=rk(this.totalPages,this.currentPage,this.currentPageSiblings),R`
4112
+ `;ei([E({type:Boolean,attribute:"has-previous-page",reflect:!0})],exports.BasicPagination.prototype,"hasPreviousPage",2);ei([E({type:Boolean,attribute:"has-next-page",reflect:!0})],exports.BasicPagination.prototype,"hasNextPage",2);exports.BasicPagination=ei([W(Au)],exports.BasicPagination);class $6 extends CustomEvent{constructor(e,i){super(`${Pu}-${e}`,{bubbles:!0,composed:!0,detail:{page:i}})}}exports.Pagination=class extends ze{constructor(){super(...arguments),this.currentPageSiblings=1}emit(e,i){this.dispatchEvent(new $6(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=rk(this.totalPages,this.currentPage,this.currentPageSiblings),R`
4112
4113
  <brz-row role="navigation" aria-label="Pagination Navigation">
4113
4114
  <button
4114
4115
  role="link"
@@ -4120,14 +4121,14 @@ ${this.value}</textarea
4120
4121
  <brz-icon class="pre-icon" size=${15} icon="chevronLeft"></brz-icon>
4121
4122
  </div>
4122
4123
  </button>
4123
- ${(e=this.pages)==null?void 0:e.map(n=>n?R`<button
4124
- class=${Qt({page:n,selected:this.isCurrentPage(n)})}
4124
+ ${(e=this.pages)==null?void 0:e.map(i=>i?R`<button
4125
+ class=${Qt({page:i,selected:this.isCurrentPage(i)})}
4125
4126
  role="link"
4126
- aria-label=${`${this.isCurrentPage(n)?`Current Page, Page ${n}`:`Go to page ${n}`}`}
4127
- aria-current=${`${this.isCurrentPage(n)}`}
4128
- @click=${this.isCurrentPage(n)?null:this.onPageChange.bind(this,n)}
4129
- ?disabled=${this.isCurrentPage(n)}
4130
- >${n}</brz-button
4127
+ aria-label=${`${this.isCurrentPage(i)?`Current Page, Page ${i}`:`Go to page ${i}`}`}
4128
+ aria-current=${`${this.isCurrentPage(i)}`}
4129
+ @click=${this.isCurrentPage(i)?null:this.onPageChange.bind(this,i)}
4130
+ ?disabled=${this.isCurrentPage(i)}
4131
+ >${i}</brz-button
4131
4132
  >`:R`<span class="pagination-truncated">&hellip;</span>`)}
4132
4133
  <button
4133
4134
  role="link"
@@ -4209,7 +4210,7 @@ ${this.value}</textarea
4209
4210
  .page {
4210
4211
  padding: 0 var(--brz-spacing-2);
4211
4212
  }
4212
- `;en([E({type:Number,attribute:"total-items",reflect:!0})],exports.Pagination.prototype,"totalItems",2);en([E({type:Number,attribute:"page-size",reflect:!0})],exports.Pagination.prototype,"pageSize",2);en([E({type:Number,attribute:"current-page",reflect:!0})],exports.Pagination.prototype,"currentPage",2);en([Ce()],exports.Pagination.prototype,"currentPageSiblings",2);en([Ce()],exports.Pagination.prototype,"totalPages",2);en([Ce()],exports.Pagination.prototype,"pages",2);exports.Pagination=en([W(Pu)],exports.Pagination);var ok=Object.defineProperty,sk=Object.getOwnPropertyDescriptor,Zs=(i,e,n,o)=>{for(var l=o>1?void 0:o?sk(e,n):e,d=i.length-1,u;d>=0;d--)(u=i[d])&&(l=(o?u(e,n,l):u(l))||l);return o&&l&&ok(e,n,l),l};const ak=["info","success","warning","error"],E6=ce("alert");class _6 extends CustomEvent{constructor(e){super(e,{bubbles:!0,composed:!0})}}exports.Alert=class extends ze{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 _6("brz-alert-cleared"))}render(){return this.cleared?null:R`<div class="alert-container">
4213
+ `;ei([E({type:Number,attribute:"total-items",reflect:!0})],exports.Pagination.prototype,"totalItems",2);ei([E({type:Number,attribute:"page-size",reflect:!0})],exports.Pagination.prototype,"pageSize",2);ei([E({type:Number,attribute:"current-page",reflect:!0})],exports.Pagination.prototype,"currentPage",2);ei([Ce()],exports.Pagination.prototype,"currentPageSiblings",2);ei([Ce()],exports.Pagination.prototype,"totalPages",2);ei([Ce()],exports.Pagination.prototype,"pages",2);exports.Pagination=ei([W(Pu)],exports.Pagination);var ok=Object.defineProperty,sk=Object.getOwnPropertyDescriptor,Zs=(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&&ok(e,i,l),l};const ak=["info","success","warning","error"],E6=ce("alert");class _6 extends CustomEvent{constructor(e){super(e,{bubbles:!0,composed:!0})}}exports.Alert=class extends ze{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 _6("brz-alert-cleared"))}render(){return this.cleared?null:R`<div class="alert-container">
4213
4214
  <brz-icon class="type-icon" icon="${this.getIcon()}"></brz-icon>
4214
4215
  <div role="alert">
4215
4216
  ${this.title?R`<div><brz-heading>${this.title}</brz-heading></div>`:R``}
@@ -4285,7 +4286,7 @@ ${this.value}</textarea
4285
4286
  padding-top: 1px;
4286
4287
  }
4287
4288
 
4288
- ${i2(".clear-button",Q`
4289
+ ${n2(".clear-button",Q`
4289
4290
  align-self: start;
4290
4291
  margin-left: auto;
4291
4292
  margin-right: calc(0px - var(--brz-spacing-1));
@@ -4388,7 +4389,7 @@ ${this.value}</textarea
4388
4389
  <circle cx="35.1426" cy="45.4286" r="4.28571" fill="white"/>
4389
4390
  <circle cx="22.1426" cy="73.5714" r="19.2857" fill="#CACFD9" stroke="white" stroke-width="3"/>
4390
4391
  <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"/>
4391
- <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"/>`},lk=Object.keys(Du);var ck=Object.defineProperty,uk=Object.getOwnPropertyDescriptor,ql=(i,e,n,o)=>{for(var l=o>1?void 0:o?uk(e,n):e,d=i.length-1,u;d>=0;d--)(u=i[d])&&(l=(o?u(e,n,l):u(l))||l);return o&&l&&ck(e,n,l),l};const I6=ce("illustration");exports.Illustration=class extends ze{constructor(){super(...arguments),this.illustration="",this.altTitle="",this.altDescription=""}render(){const e=Du[this.illustration],n=Math.floor(Math.random()*100),o=`${this.illustration}Title${n}`,l=`${this.illustration}Desc${n}`;if(!e){console.warn(`Can't find illustration ${this.illustration}`);return}return R`<svg
4392
+ <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"/>`},lk=Object.keys(Du);var ck=Object.defineProperty,uk=Object.getOwnPropertyDescriptor,ql=(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 I6=ce("illustration");exports.Illustration=class extends ze{constructor(){super(...arguments),this.illustration="",this.altTitle="",this.altDescription=""}render(){const e=Du[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 R`<svg
4392
4393
  aria-hidden=${!this.altTitle.length||!this.altDescription.length}
4393
4394
  role="img"
4394
4395
  aria-labelledby=${`${o} ${l}`}
@@ -4404,13 +4405,13 @@ ${this.value}</textarea
4404
4405
  /* to get rid of extra height caused by white space */
4405
4406
  line-height: 0;
4406
4407
  }
4407
- `;ql([E({type:String})],exports.Illustration.prototype,"illustration",2);ql([E({type:String,attribute:"alt-title"})],exports.Illustration.prototype,"altTitle",2);ql([E({type:String,attribute:"alt-description"})],exports.Illustration.prototype,"altDescription",2);exports.Illustration=ql([W(I6)],exports.Illustration);var dk=Object.defineProperty,hk=Object.getOwnPropertyDescriptor,fk=(i,e,n,o)=>{for(var l=o>1?void 0:o?hk(e,n):e,d=i.length-1,u;d>=0;d--)(u=i[d])&&(l=(o?u(e,n,l):u(l))||l);return o&&l&&dk(e,n,l),l};const A6=ce("header");exports.Header=class extends ze{render(){return R`<slot></slot>`}};exports.Header.styles=Q`
4408
+ `;ql([E({type:String})],exports.Illustration.prototype,"illustration",2);ql([E({type:String,attribute:"alt-title"})],exports.Illustration.prototype,"altTitle",2);ql([E({type:String,attribute:"alt-description"})],exports.Illustration.prototype,"altDescription",2);exports.Illustration=ql([W(I6)],exports.Illustration);var dk=Object.defineProperty,hk=Object.getOwnPropertyDescriptor,fk=(n,e,i,o)=>{for(var l=o>1?void 0:o?hk(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&&dk(e,i,l),l};const A6=ce("header");exports.Header=class extends ze{render(){return R`<slot></slot>`}};exports.Header.styles=Q`
4408
4409
  :host {
4409
4410
  display: block;
4410
4411
  padding: var(--brz-spacing-5);
4411
4412
  margin-bottom: var(--brz-spacing-4);
4412
4413
  }
4413
- `;exports.Header=fk([W(A6)],exports.Header);var pk=Object.defineProperty,gk=Object.getOwnPropertyDescriptor,vk=(i,e,n,o)=>{for(var l=o>1?void 0:o?gk(e,n):e,d=i.length-1,u;d>=0;d--)(u=i[d])&&(l=(o?u(e,n,l):u(l))||l);return o&&l&&pk(e,n,l),l};const P6=ce("header-footer-page");exports.HeaderFooterPage=class extends ze{render(){return R`
4414
+ `;exports.Header=fk([W(A6)],exports.Header);var pk=Object.defineProperty,gk=Object.getOwnPropertyDescriptor,vk=(n,e,i,o)=>{for(var l=o>1?void 0:o?gk(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&&pk(e,i,l),l};const P6=ce("header-footer-page");exports.HeaderFooterPage=class extends ze{render(){return R`
4414
4415
  <div id="container">
4415
4416
  <div id="header"><slot name="header"></slot></div>
4416
4417
  <div id="body"><slot></slot></div>
@@ -4434,7 +4435,7 @@ ${this.value}</textarea
4434
4435
  flex: 1 1;
4435
4436
  overflow-y: auto;
4436
4437
  }
4437
- `;exports.HeaderFooterPage=vk([W(P6)],exports.HeaderFooterPage);var bk=Object.defineProperty,mk=Object.getOwnPropertyDescriptor,yk=(i,e,n,o)=>{for(var l=o>1?void 0:o?mk(e,n):e,d=i.length-1,u;d>=0;d--)(u=i[d])&&(l=(o?u(e,n,l):u(l))||l);return o&&l&&bk(e,n,l),l};const D6=ce("responsive-columns");exports.ResponsiveColumns=class extends ze{render(){return R`<slot></slot>`}};exports.ResponsiveColumns.styles=Q`
4438
+ `;exports.HeaderFooterPage=vk([W(P6)],exports.HeaderFooterPage);var bk=Object.defineProperty,mk=Object.getOwnPropertyDescriptor,yk=(n,e,i,o)=>{for(var l=o>1?void 0:o?mk(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&&bk(e,i,l),l};const D6=ce("responsive-columns");exports.ResponsiveColumns=class extends ze{render(){return R`<slot></slot>`}};exports.ResponsiveColumns.styles=Q`
4438
4439
  :host {
4439
4440
  display: flex;
4440
4441
  flex-direction: row;
@@ -4466,7 +4467,7 @@ ${this.value}</textarea
4466
4467
  margin-bottom: var(--brz-padding, var(--brz-spacing-8));
4467
4468
  }
4468
4469
  }
4469
- `;exports.ResponsiveColumns=yk([W(D6)],exports.ResponsiveColumns);var Ck=Object.defineProperty,wk=Object.getOwnPropertyDescriptor,xk=(i,e,n,o)=>{for(var l=o>1?void 0:o?wk(e,n):e,d=i.length-1,u;d>=0;d--)(u=i[d])&&(l=(o?u(e,n,l):u(l))||l);return o&&l&&Ck(e,n,l),l};const N6=ce("footer");exports.Footer=class extends ze{render(){return R`<div class="container">
4470
+ `;exports.ResponsiveColumns=yk([W(D6)],exports.ResponsiveColumns);var Ck=Object.defineProperty,wk=Object.getOwnPropertyDescriptor,xk=(n,e,i,o)=>{for(var l=o>1?void 0:o?wk(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 N6=ce("footer");exports.Footer=class extends ze{render(){return R`<div class="container">
4470
4471
  <slot name="left"></slot>
4471
4472
  <slot name="middle"></slot>
4472
4473
  <slot name="right"></slot>
@@ -4477,7 +4478,7 @@ ${this.value}</textarea
4477
4478
  justify-content: space-between;
4478
4479
  padding: var(--brz-spacing-3) var(--brz-spacing-4);
4479
4480
  }
4480
- `;exports.Footer=xk([W(N6)],exports.Footer);var zk=Object.defineProperty,Lk=Object.getOwnPropertyDescriptor,Kl=(i,e,n,o)=>{for(var l=o>1?void 0:o?Lk(e,n):e,d=i.length-1,u;d>=0;d--)(u=i[d])&&(l=(o?u(e,n,l):u(l))||l);return o&&l&&zk(e,n,l),l};const H6=ce("page-header");exports.PageHeader=class extends ze{constructor(){super(...arguments),this.hasTitle=!1}updated(e){var n;super.updated(e),this.hasTitle=!!((n=this.slottedTitle)!=null&&n.length||this.pageTitle)}render(){return R`
4481
+ `;exports.Footer=xk([W(N6)],exports.Footer);var zk=Object.defineProperty,Lk=Object.getOwnPropertyDescriptor,Kl=(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 H6=ce("page-header");exports.PageHeader=class extends ze{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 R`
4481
4482
  <header>
4482
4483
  <slot name="decorator"></slot>
4483
4484
 
@@ -4537,14 +4538,14 @@ ${this.value}</textarea
4537
4538
  brz-heading.hidden {
4538
4539
  display: none;
4539
4540
  }
4540
- `;Kl([E({attribute:"page-title"})],exports.PageHeader.prototype,"pageTitle",2);Kl([Ce()],exports.PageHeader.prototype,"hasTitle",2);Kl([Yc({slot:"title"})],exports.PageHeader.prototype,"slottedTitle",2);exports.PageHeader=Kl([W(H6)],exports.PageHeader);var Sk=Object.defineProperty,Mk=Object.getOwnPropertyDescriptor,Yl=(i,e,n,o)=>{for(var l=o>1?void 0:o?Mk(e,n):e,d=i.length-1,u;d>=0;d--)(u=i[d])&&(l=(o?u(e,n,l):u(l))||l);return o&&l&&Sk(e,n,l),l};const R6=ce("grid"),Tk=Es.map(i=>Q`
4541
- :host([spacing='${i}']),
4542
- :host([col-spacing='${i}']) {
4543
- --brz-grid-column-gap: var(--brz-spacing-${i});
4541
+ `;Kl([E({attribute:"page-title"})],exports.PageHeader.prototype,"pageTitle",2);Kl([Ce()],exports.PageHeader.prototype,"hasTitle",2);Kl([Yc({slot:"title"})],exports.PageHeader.prototype,"slottedTitle",2);exports.PageHeader=Kl([W(H6)],exports.PageHeader);var Sk=Object.defineProperty,Mk=Object.getOwnPropertyDescriptor,Yl=(n,e,i,o)=>{for(var l=o>1?void 0:o?Mk(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 R6=ce("grid"),Tk=Es.map(n=>Q`
4542
+ :host([spacing='${n}']),
4543
+ :host([col-spacing='${n}']) {
4544
+ --brz-grid-column-gap: var(--brz-spacing-${n});
4544
4545
  }
4545
- :host([spacing='${i}']),
4546
- :host([row-spacing='${i}']) {
4547
- --brz-grid-row-gap: var(--brz-spacing-${i});
4546
+ :host([spacing='${n}']),
4547
+ :host([row-spacing='${n}']) {
4548
+ --brz-grid-row-gap: var(--brz-spacing-${n});
4548
4549
  }
4549
4550
  `);exports.Grid=class extends po{render(){return R`<slot></slot>`}};var Af;exports.Grid.styles=[(Af=po.styles)!=null?Af:[],Q`
4550
4551
  :host {
@@ -4562,28 +4563,28 @@ ${this.value}</textarea
4562
4563
  `,...Tk];Yl([E({type:Number,reflect:!0})],exports.Grid.prototype,"spacing",2);Yl([E({type:Number,attribute:"col-spacing",reflect:!0})],exports.Grid.prototype,"colSpacing",2);Yl([E({type:Number,attribute:"row-spacing",reflect:!0})],exports.Grid.prototype,"rowSpacing",2);exports.Grid=Yl([W(R6)],exports.Grid);const fl={lg:960,md:640},kk=Q`
4563
4564
  --brz-breakpoint-lg: ${fl.lg}px;
4564
4565
  --brz-breakpoint-md: ${fl.md}px;
4565
- `,mc=i=>(e,...n)=>Q`
4566
- @media (max-width: ${fl[i]}px) {
4567
- ${Q(e,...n)}
4566
+ `,mc=n=>(e,...i)=>Q`
4567
+ @media (max-width: ${fl[n]}px) {
4568
+ ${Q(e,...i)}
4568
4569
  }
4569
- `,Ef=i=>(e,...n)=>Q`
4570
- @media (min-width: ${fl[i]}px) {
4571
- ${Q(e,...n)}
4570
+ `,Ef=n=>(e,...i)=>Q`
4571
+ @media (min-width: ${fl[n]}px) {
4572
+ ${Q(e,...i)}
4572
4573
  }
4573
- `,pl={breakpointUp:Ef,breakpointDown:mc,sm:mc("md"),md:mc("lg"),lg:Ef("lg")};var Ok=Object.defineProperty,$k=Object.getOwnPropertyDescriptor,Xl=(i,e,n,o)=>{for(var l=o>1?void 0:o?$k(e,n):e,d=i.length-1,u;d>=0;d--)(u=i[d])&&(l=(o?u(e,n,l):u(l))||l);return o&&l&&Ok(e,n,l),l};const F6=ce("grid-item"),Jl=[1,2,3,4,5,6,7,8,9,10,11,12],Ek=Jl.map(i=>Q`
4574
- :host([cols='${i}']) {
4575
- grid-column: auto / span ${i};
4574
+ `,pl={breakpointUp:Ef,breakpointDown:mc,sm:mc("md"),md:mc("lg"),lg:Ef("lg")};var Ok=Object.defineProperty,$k=Object.getOwnPropertyDescriptor,Xl=(n,e,i,o)=>{for(var l=o>1?void 0:o?$k(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 F6=ce("grid-item"),Jl=[1,2,3,4,5,6,7,8,9,10,11,12],Ek=Jl.map(n=>Q`
4575
+ :host([cols='${n}']) {
4576
+ grid-column: auto / span ${n};
4576
4577
  }
4577
- `),_k=Jl.map(i=>Q`
4578
+ `),_k=Jl.map(n=>Q`
4578
4579
  ${pl.md`
4579
- :host([md-cols='${i}']) {
4580
- grid-column: auto / span ${i};
4580
+ :host([md-cols='${n}']) {
4581
+ grid-column: auto / span ${n};
4581
4582
  }
4582
4583
  `}
4583
- `),Ik=Jl.map(i=>Q`
4584
+ `),Ik=Jl.map(n=>Q`
4584
4585
  ${pl.sm`
4585
- :host([sm-cols='${i}']) {
4586
- grid-column: auto / span ${i};
4586
+ :host([sm-cols='${n}']) {
4587
+ grid-column: auto / span ${n};
4587
4588
  }
4588
4589
  `}
4589
4590
  `),Ak=Q`
@@ -4614,7 +4615,7 @@ ${this.value}</textarea
4614
4615
 
4615
4616
  --brz-border-divider: 1px solid var(--brz-color-neutral-400);
4616
4617
  }
4617
- `,Dk=`.CodeMirror-hints{position:absolute;z-index:10;overflow:hidden;list-style:none;margin:0;padding:2px;-webkit-box-shadow:2px 3px 5px rgba(0,0,0,.2);-moz-box-shadow:2px 3px 5px rgba(0,0,0,.2);box-shadow:2px 3px 5px #0003;border-radius:3px;border:1px solid silver;background:white;font-size:90%;font-family:monospace;max-height:20em;overflow-y:auto}.CodeMirror-hint{margin:0;padding:0 4px;border-radius:2px;white-space:pre;color:#000;cursor:pointer}li.CodeMirror-hint-active{background:#08f;color:#fff}
4618
+ `,Dk=`.CodeMirror-hints{position:absolute;z-index:2000;list-style:none;margin:0;padding:2px;box-shadow:2px 3px 5px #0003;border:1px solid silver;border-radius:3px;background:white;font-family:monospace;font-size:14px;font-weight:400;line-height:20px;max-height:20em;overflow-y:auto}.CodeMirror-hint{margin:0;padding:4px;white-space:pre;color:#000;cursor:pointer}.CodeMirror-hint:hover,li.CodeMirror-hint-active{background:#eceef3;color:#000}.CodeMirror-hints::-webkit-scrollbar{width:11px}.CodeMirror-hints::-webkit-scrollbar-thumb{background-color:#00000080;border-radius:50px;border:2px solid white}.CodeMirror-hints::-webkit-scrollbar-track{background-clip:padding-box}
4618
4619
  `;Q`
4619
4620
  ${Gr(Wp)}
4620
4621
  `;const _f=Q`
@@ -5135,7 +5136,7 @@ ${this.value}</textarea
5135
5136
  --brz-z-index-dropdown: 1200;
5136
5137
  --brz-z-index-tooltip: 1300;
5137
5138
  }
5138
- `;var Vk=Object.defineProperty,Zk=Object.getOwnPropertyDescriptor,Wk=(i,e,n,o)=>{for(var l=o>1?void 0:o?Zk(e,n):e,d=i.length-1,u;d>=0;d--)(u=i[d])&&(l=(o?u(e,n,l):u(l))||l);return o&&l&&Vk(e,n,l),l};const B6=ce("global-styles");exports.GlobalStyles=class extends ze{connectedCallback(){super.connectedCallback(),this.injectGlobalStyles()}injectGlobalStyles(){const e=[];_f&&e.push(_f),e.forEach((n,o)=>{const l=n.toString(),d=`brz-injected-global-style-${o}`;if(!document.head.querySelector(`#${d}`)){const u=document.createElement("style");u.id=d,u.textContent=l,document.head.appendChild(u)}})}render(){return R`<slot></slot>`}};exports.GlobalStyles.styles=[Nk,L2,Fk,Pk,Rk,Bk,kk,Hk,Q`
5139
+ `;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 B6=ce("global-styles");exports.GlobalStyles=class extends ze{connectedCallback(){super.connectedCallback(),this.injectGlobalStyles()}injectGlobalStyles(){const e=[];_f&&e.push(_f),e.forEach((i,o)=>{const l=i.toString(),d=`brz-injected-global-style-${o}`;if(!document.head.querySelector(`#${d}`)){const u=document.createElement("style");u.id=d,u.textContent=l,document.head.appendChild(u)}})}render(){return R`<slot></slot>`}};exports.GlobalStyles.styles=[Nk,L2,Fk,Pk,Rk,Bk,kk,Hk,Q`
5139
5140
  :host {
5140
5141
  --brz-outline-color: var(--brz-color-primary-600);
5141
5142
  --brz-outline-style: solid;
@@ -5191,13 +5192,13 @@ ${this.value}</textarea
5191
5192
 
5192
5193
  padding-bottom: calc(2 * var(--brz-card-body-balancer));
5193
5194
  }
5194
- `,jk=i=>Q`
5195
- :host([padding='${i}']) {
5196
- --brz-card-padding: var(--brz-spacing-${i});
5195
+ `,jk=n=>Q`
5196
+ :host([padding='${n}']) {
5197
+ --brz-card-padding: var(--brz-spacing-${n});
5197
5198
  }
5198
5199
 
5199
- :host([body-padding='${i}']) {
5200
- --brz-card-body-padding: var(--brz-spacing-${i});
5200
+ :host([body-padding='${n}']) {
5201
+ --brz-card-body-padding: var(--brz-spacing-${n});
5201
5202
  }
5202
5203
  `,Gk=Es.map(jk),qk=Q`
5203
5204
  :host {
@@ -5275,7 +5276,7 @@ ${this.value}</textarea
5275
5276
  align-self: flex-start;
5276
5277
  flex-shrink: 0;
5277
5278
  }
5278
- `;var Yk=Object.defineProperty,Xk=Object.getOwnPropertyDescriptor,Jk=(i,e,n,o)=>{for(var l=o>1?void 0:o?Xk(e,n):e,d=i.length-1,u;d>=0;d--)(u=i[d])&&(l=(o?u(e,n,l):u(l))||l);return o&&l&&Yk(e,n,l),l};exports.CardHeader=class extends ze{connectedCallback(){super.connectedCallback(),this.slot="header"}get contentTemplate(){return R`
5279
+ `;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 ze{connectedCallback(){super.connectedCallback(),this.slot="header"}get contentTemplate(){return R`
5279
5280
  <div class="title">
5280
5281
  <slot></slot>
5281
5282
  </div>
@@ -5283,9 +5284,9 @@ ${this.value}</textarea
5283
5284
  <div class="aside">
5284
5285
  <slot name="aside"></slot>
5285
5286
  </div>
5286
- `}render(){return R` <header class="card-header">${this.contentTemplate}</header> `}};exports.CardHeader.styles=[qk];exports.CardHeader=Jk([Os(Z6)],exports.CardHeader);var Qk=Object.defineProperty,eO=Object.getOwnPropertyDescriptor,j6=(i,e,n,o)=>{for(var l=o>1?void 0:o?eO(e,n):e,d=i.length-1,u;d>=0;d--)(u=i[d])&&(l=(o?u(e,n,l):u(l))||l);return o&&l&&Qk(e,n,l),l};exports.CardSectionHeader=class extends exports.CardHeader{constructor(){super(...arguments),this.hasDivider=!1}connectedCallback(){super.connectedCallback(),this.slot=""}render(){return R`
5287
+ `}render(){return R` <header class="card-header">${this.contentTemplate}</header> `}};exports.CardHeader.styles=[qk];exports.CardHeader=Jk([Os(Z6)],exports.CardHeader);var Qk=Object.defineProperty,eO=Object.getOwnPropertyDescriptor,j6=(n,e,i,o)=>{for(var l=o>1?void 0:o?eO(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 R`
5287
5288
  <div class="card-section-header">${this.contentTemplate}</div>
5288
- `}};j6([E({type:Boolean,reflect:!0,attribute:"has-divider"})],exports.CardSectionHeader.prototype,"hasDivider",2);exports.CardSectionHeader=j6([Os(U6)],exports.CardSectionHeader);var tO=Object.defineProperty,rO=Object.getOwnPropertyDescriptor,nO=(i,e,n,o)=>{for(var l=o>1?void 0:o?rO(e,n):e,d=i.length-1,u;d>=0;d--)(u=i[d])&&(l=(o?u(e,n,l):u(l))||l);return o&&l&&tO(e,n,l),l};exports.CardFooter=class extends ze{connectedCallback(){super.connectedCallback(),this.slot="footer"}render(){return R`
5289
+ `}};j6([E({type:Boolean,reflect:!0,attribute:"has-divider"})],exports.CardSectionHeader.prototype,"hasDivider",2);exports.CardSectionHeader=j6([Os(U6)],exports.CardSectionHeader);var tO=Object.defineProperty,rO=Object.getOwnPropertyDescriptor,iO=(n,e,i,o)=>{for(var l=o>1?void 0:o?rO(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&&tO(e,i,l),l};exports.CardFooter=class extends ze{connectedCallback(){super.connectedCallback(),this.slot="footer"}render(){return R`
5289
5290
  <footer class="card-footer">
5290
5291
  <div>
5291
5292
  <slot></slot>
@@ -5295,7 +5296,7 @@ ${this.value}</textarea
5295
5296
  <slot name="aside"></slot>
5296
5297
  </div>
5297
5298
  </footer>
5298
- `}};exports.CardFooter.styles=[Kk];exports.CardFooter=nO([Os(W6)],exports.CardFooter);var iO=Object.defineProperty,oO=Object.getOwnPropertyDescriptor,Ws=(i,e,n,o)=>{for(var l=o>1?void 0:o?oO(e,n):e,d=i.length-1,u;d>=0;d--)(u=i[d])&&(l=(o?u(e,n,l):u(l))||l);return o&&l&&iO(e,n,l),l};exports.Card=class extends po{constructor(){super(...arguments),this.hasHeader=!1}updated(e){super.updated(e),this.hasHeader=!!this.header.length&&this.header[0]instanceof exports.CardHeader}render(){return R`
5299
+ `}};exports.CardFooter.styles=[Kk];exports.CardFooter=iO([Os(W6)],exports.CardFooter);var nO=Object.defineProperty,oO=Object.getOwnPropertyDescriptor,Ws=(n,e,i,o)=>{for(var l=o>1?void 0:o?oO(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&&nO(e,i,l),l};exports.Card=class extends po{constructor(){super(...arguments),this.hasHeader=!1}updated(e){super.updated(e),this.hasHeader=!!this.header.length&&this.header[0]instanceof exports.CardHeader}render(){return R`
5299
5300
  <article class="card" part="card">
5300
5301
  <slot name="header"></slot>
5301
5302
 
@@ -5307,7 +5308,7 @@ ${this.value}</textarea
5307
5308
 
5308
5309
  <slot name="footer"></slot>
5309
5310
  </article>
5310
- `}};var Pf;exports.Card.styles=[(Pf=po.styles)!=null?Pf:[],Uk,Gk];Ws([E({type:Number,reflect:!0})],exports.Card.prototype,"padding",2);Ws([E({type:Number,reflect:!0,attribute:"body-padding"})],exports.Card.prototype,"bodyPadding",2);Ws([Ce()],exports.Card.prototype,"hasHeader",2);Ws([fn({slot:"header",flatten:!0})],exports.Card.prototype,"header",2);exports.Card=Ws([Os(V6)],exports.Card);var sO=Object.defineProperty,aO=Object.getOwnPropertyDescriptor,Nu=(i,e,n,o)=>{for(var l=o>1?void 0:o?aO(e,n):e,d=i.length-1,u;d>=0;d--)(u=i[d])&&(l=(o?u(e,n,l):u(l))||l);return o&&l&&sO(e,n,l),l};const G6=ce("paper");exports.Paper=class extends ze{constructor(){super(...arguments),this.hasBorder=!1,this.level=1}render(){return R` <div class="container"><slot></slot></div> `}};exports.Paper.styles=Q`
5311
+ `}};var Pf;exports.Card.styles=[(Pf=po.styles)!=null?Pf:[],Uk,Gk];Ws([E({type:Number,reflect:!0})],exports.Card.prototype,"padding",2);Ws([E({type:Number,reflect:!0,attribute:"body-padding"})],exports.Card.prototype,"bodyPadding",2);Ws([Ce()],exports.Card.prototype,"hasHeader",2);Ws([hi({slot:"header",flatten:!0})],exports.Card.prototype,"header",2);exports.Card=Ws([Os(V6)],exports.Card);var sO=Object.defineProperty,aO=Object.getOwnPropertyDescriptor,Nu=(n,e,i,o)=>{for(var l=o>1?void 0:o?aO(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&&sO(e,i,l),l};const G6=ce("paper");exports.Paper=class extends ze{constructor(){super(...arguments),this.hasBorder=!1,this.level=1}render(){return R` <div class="container"><slot></slot></div> `}};exports.Paper.styles=Q`
5311
5312
  :host {
5312
5313
  display: block;
5313
5314
  position: relative;
@@ -5331,4 +5332,4 @@ ${this.value}</textarea
5331
5332
  :host([has-border]) .container {
5332
5333
  border: 1px solid var(--brz-color-neutral-300);
5333
5334
  }
5334
- `;Nu([E({type:Boolean,attribute:"has-border",reflect:!0})],exports.Paper.prototype,"hasBorder",2);Nu([E({type:Number,reflect:!0})],exports.Paper.prototype,"level",2);exports.Paper=Nu([W(G6)],exports.Paper);var lO=Object.defineProperty,cO=Object.getOwnPropertyDescriptor,we=(i,e,n,o)=>{for(var l=o>1?void 0:o?cO(e,n):e,d=i.length-1,u;d>=0;d--)(u=i[d])&&(l=(o?u(e,n,l):u(l))||l);return o&&l&&lO(e,n,l),l};exports.LegacyGlobalStyles=class extends exports.GlobalStyles{};exports.LegacyGlobalStyles=we([W("sp-global-styles")],exports.LegacyGlobalStyles);exports.LegacyAlert=class extends exports.Alert{};exports.LegacyAlert=we([W("sp-alert")],exports.LegacyAlert);exports.LegacyAvatar=class extends exports.Avatar{};exports.LegacyAvatar=we([W("sp-avatar")],exports.LegacyAvatar);exports.LegacyAvatarGroup=class extends exports.AvatarGroup{};exports.LegacyAvatarGroup=we([W("sp-avatar-group")],exports.LegacyAvatarGroup);exports.LegacyButton=class extends exports.Button{};exports.LegacyButton=we([W("sp-button")],exports.LegacyButton);exports.LegacyButtonGroup=class extends exports.ButtonGroup{};exports.LegacyButtonGroup=we([W("sp-button-group")],exports.LegacyButtonGroup);exports.LegacyBadge=class extends exports.Badge{};exports.LegacyBadge=we([W("sp-badge")],exports.LegacyBadge);exports.LegacyComboBox=class extends exports.ComboBox{};exports.LegacyComboBox=we([W("sp-combo-box")],exports.LegacyComboBox);exports.LegacyComboBoxOption=class extends exports.ComboBoxOption{};exports.LegacyComboBoxOption=we([W("sp-combo-box-option")],exports.LegacyComboBoxOption);exports.LegacyConfirmationDialog=class extends exports.ConfirmationDialog{};exports.LegacyConfirmationDialog=we([W("sp-confirmation-dialog")],exports.LegacyConfirmationDialog);exports.LegacyHeading=class extends exports.Heading{};exports.LegacyHeading=we([W("sp-heading")],exports.LegacyHeading);exports.LegacyLink=class extends exports.Link{};exports.LegacyLink=we([W("sp-link")],exports.LegacyLink);exports.LegacyLinkButton=class extends exports.LinkButton{};exports.LegacyLinkButton=we([W("sp-link-button")],exports.LegacyLinkButton);exports.LegacyLoadingSpinner=class extends exports.LoadingSpinner{};exports.LegacyLoadingSpinner=we([W("sp-loading-spinner")],exports.LegacyLoadingSpinner);exports.LegacyLozenge=class extends exports.Lozenge{};exports.LegacyLozenge=we([W("sp-lozenge")],exports.LegacyLozenge);exports.LegacyBasicPagination=class extends exports.BasicPagination{};exports.LegacyBasicPagination=we([W("sp-basic-pagination")],exports.LegacyBasicPagination);exports.LegacyPagination=class extends exports.Pagination{};exports.LegacyPagination=we([W("sp-pagination")],exports.LegacyPagination);exports.LegacyPopover=class extends exports.Popover{};exports.LegacyPopover=we([W("sp-popover")],exports.LegacyPopover);exports.LegacyPurePopover=class extends exports.PurePopover{};exports.LegacyPurePopover=we([W("sp-pure-popover")],exports.LegacyPurePopover);exports.LegacyRecordRow=class extends exports.RecordRow{};exports.LegacyRecordRow=we([W("sp-record-row")],exports.LegacyRecordRow);exports.LegacyRecordRowLabel=class extends exports.RecordRowLabel{};exports.LegacyRecordRowLabel=we([W("sp-record-row-label")],exports.LegacyRecordRowLabel);exports.LegacyTooltip=class extends exports.Tooltip{};exports.LegacyTooltip=we([W("sp-tooltip")],exports.LegacyTooltip);exports.LegacyVirtualList=class extends exports.VirtualList{};exports.LegacyVirtualList=we([W("sp-virtual-list")],exports.LegacyVirtualList);exports.LegacyFadeInOut=class extends exports.FadeInOut{};exports.LegacyFadeInOut=we([W("sp-fade-in-out")],exports.LegacyFadeInOut);exports.LegacyPaper=class extends exports.Paper{};exports.LegacyPaper=we([W("sp-paper")],exports.LegacyPaper);exports.LegacyRow=class extends exports.Row{};exports.LegacyRow=we([W("sp-row")],exports.LegacyRow);exports.LegacyColumn=class extends exports.Column{};exports.LegacyColumn=we([W("sp-column")],exports.LegacyColumn);exports.LegacyFooter=class extends exports.Footer{};exports.LegacyFooter=we([W("sp-footer")],exports.LegacyFooter);exports.LegacyHeaderFooterPage=class extends exports.HeaderFooterPage{};exports.LegacyHeaderFooterPage=we([W("sp-header-footer-page")],exports.LegacyHeaderFooterPage);exports.LegacyHeader=class extends exports.Header{};exports.LegacyHeader=we([W("sp-header")],exports.LegacyHeader);exports.LegacyResponsiveColumns=class extends exports.ResponsiveColumns{};exports.LegacyResponsiveColumns=we([W("sp-responsive-columns")],exports.LegacyResponsiveColumns);exports.LegacySplitRow=class extends exports.SplitRow{};exports.LegacySplitRow=we([W("sp-split-row")],exports.LegacySplitRow);exports.LegacyActionBar=class extends exports.ActionBar{};exports.LegacyActionBar=we([W("sp-action-bar")],exports.LegacyActionBar);exports.LegacyIllustration=class extends exports.Illustration{};exports.LegacyIllustration=we([W("sp-illustration")],exports.LegacyIllustration);exports.LegacyIcon=class extends exports.Icon{};exports.LegacyIcon=we([W("sp-icon")],exports.LegacyIcon);exports.LegacyModalHeader=class extends exports.ModalHeader{};exports.LegacyModalHeader=we([W("sp-modal-header")],exports.LegacyModalHeader);exports.LegacyModalBody=class extends exports.ModalBody{};exports.LegacyModalBody=we([W("sp-modal-body")],exports.LegacyModalBody);exports.LegacyModalFooter=class extends exports.ModalFooter{};exports.LegacyModalFooter=we([W("sp-modal-footer")],exports.LegacyModalFooter);exports.LegacyModal=class extends exports.Modal{};exports.LegacyModal=we([W("sp-modal")],exports.LegacyModal);exports.LegacySideNavigationItem=class extends exports.SideNavigationItem{};exports.LegacySideNavigationItem=we([W("sp-side-navigation-item")],exports.LegacySideNavigationItem);exports.LegacySideNavigation=class extends exports.SideNavigation{};exports.LegacySideNavigation=we([W("sp-side-navigation")],exports.LegacySideNavigation);exports.LegacyTabs=class extends exports.Tabs{};exports.LegacyTabs=we([W("sp-tabs")],exports.LegacyTabs);exports.LegacyTabPanel=class extends exports.TabPanel{};exports.LegacyTabPanel=we([W("sp-tab-panel")],exports.LegacyTabPanel);exports.LegacyTabBar=class extends exports.TabBar{};exports.LegacyTabBar=we([W("sp-tab-bar")],exports.LegacyTabBar);exports.LegacyTab=class extends exports.Tab{};exports.LegacyTab=we([W("sp-tab")],exports.LegacyTab);exports.LegacyInputCheckbox=class extends exports.InputCheckbox{};exports.LegacyInputCheckbox=we([W("sp-input-checkbox")],exports.LegacyInputCheckbox);exports.LegacyInputCode=class extends exports.InputCode{};exports.LegacyInputCode=we([W("sp-input-code")],exports.LegacyInputCode);exports.LegacyInputError=class extends exports.InputError{};exports.LegacyInputError=we([W("sp-input-error")],exports.LegacyInputError);exports.LegacyInputGuide=class extends tl{};exports.LegacyInputGuide=we([W("sp-input-guide")],exports.LegacyInputGuide);exports.LegacyInputMultiselect=class extends exports.InputMultiselect{};exports.LegacyInputMultiselect=we([W("sp-input-multiselect")],exports.LegacyInputMultiselect);exports.LegacyInputNumber=class extends exports.InputNumber{};exports.LegacyInputNumber=we([W("sp-input-number")],exports.LegacyInputNumber);exports.LegacyInputRadio=class extends exports.InputRadio{};exports.LegacyInputRadio=we([W("sp-input-radio-group")],exports.LegacyInputRadio);exports.LegacyInputRadioOption=class extends exports.InputRadioOption{};exports.LegacyInputRadioOption=we([W("sp-input-radio-option")],exports.LegacyInputRadioOption);exports.LegacyMenu=class extends exports.Menu{};exports.LegacyMenu=we([W("sp-menu")],exports.LegacyMenu);exports.LegacyMenuItem=class extends exports.MenuItem{};exports.LegacyMenuItem=we([W("sp-menu-item")],exports.LegacyMenuItem);exports.LegacyInputSelect=class extends exports.InputSelect{};exports.LegacyInputSelect=we([W("sp-input-select")],exports.LegacyInputSelect);exports.LegacyInputText=class extends exports.InputText{};exports.LegacyInputText=we([W("sp-input-text")],exports.LegacyInputText);exports.LegacyInputTextarea=class extends exports.InputTextarea{};exports.LegacyInputTextarea=we([W("sp-input-textarea")],exports.LegacyInputTextarea);exports.LegacyInputTime=class extends exports.InputTime{};exports.LegacyInputTime=we([W("sp-input-time")],exports.LegacyInputTime);exports.LegacyInputLabel=class extends exports.InputLabel{};exports.LegacyInputLabel=we([W("sp-input-label")],exports.LegacyInputLabel);exports.LegacyLabeledInput=class extends exports.LabeledInput{};exports.LegacyLabeledInput=we([W("sp-labeled-input")],exports.LegacyLabeledInput);const q6=ce("date-time-range"),gl="a",uO="ccc d LLL",dO="ccc LLL d",Hu="ZZZZ";var hO=Object.defineProperty,fO=Object.getOwnPropertyDescriptor,Us=(i,e,n,o)=>{for(var l=o>1?void 0:o?fO(e,n):e,d=i.length-1,u;d>=0;d--)(u=i[d])&&(l=(o?u(e,n,l):u(l))||l);return o&&l&&hO(e,n,l),l};class Mi extends ze{constructor(){super(...arguments),this.hideTimezone=!1,this.dateFormat="MonthDayYear"}generateContent(){if(!this.start||!this.end)return"No date and time set";if(ZM(this.start,this.end,this.timezone))return this.hideTimezone||!this.timezone?"All day":`All day (${vc(Ee.fromISO(this.start),this.timezone).toFormat(Hu)})`;const e=vc(Ee.fromISO(this.start),this.timezone),n=vc(Ee.fromISO(this.end),this.timezone),o=this.dateFormat==="DayMonthYear"?uO:dO,{start:l,end:d}=this.getStartAndEndDateTimeTokens(e,n,o),u=(b,M)=>{const{dateFormat:L,year:T,minutes:$,ampm:N,timezone:Y=""}=M,_=`${L?`${L}${T}, `:""}${$}${N}${Y}`;return b.toFormat(_)},v=Of(u(e,l)),y=Of(u(n,d));return`${v} - ${y}`}render(){return R`<span>${this.generateContent()}</span>`}}Us([E({type:String})],Mi.prototype,"start",2);Us([E({type:String})],Mi.prototype,"end",2);Us([E({type:String})],Mi.prototype,"timezone",2);Us([E({attribute:"hide-timezone",type:Boolean})],Mi.prototype,"hideTimezone",2);Us([E({attribute:"date-format",type:String})],Mi.prototype,"dateFormat",2);var pO=Object.defineProperty,gO=Object.getOwnPropertyDescriptor,vO=(i,e,n,o)=>{for(var l=o>1?void 0:o?gO(e,n):e,d=i.length-1,u;d>=0;d--)(u=i[d])&&(l=(o?u(e,n,l):u(l))||l);return o&&l&&pO(e,n,l),l};exports.DateTimeRange=class extends Mi{getStartAndEndDateTimeTokens(e,n,o){const l={minutes:dl(e),year:hl(e,n),dateFormat:o,ampm:e.hasSame(n,"day")&&Y5(e,n)?"":gl},d={minutes:dl(n),year:hl(n,e),dateFormat:e.hasSame(n,"day")?"":o,ampm:gl,timezone:this.hideTimezone?"":` (${Hu})`};return{start:l,end:d}}};exports.DateTimeRange=vO([W(q6)],exports.DateTimeRange);const K6=ce("time-range");var bO=Object.defineProperty,mO=Object.getOwnPropertyDescriptor,yO=(i,e,n,o)=>{for(var l=o>1?void 0:o?mO(e,n):e,d=i.length-1,u;d>=0;d--)(u=i[d])&&(l=(o?u(e,n,l):u(l))||l);return o&&l&&bO(e,n,l),l};exports.TimeRange=class extends Mi{getStartAndEndDateTimeTokens(e,n,o){const l=e.hasSame(n,"day"),d={minutes:dl(e),year:hl(e,n),dateFormat:l?"":o,ampm:l&&Y5(e,n)?"":gl},u={minutes:dl(n),year:hl(n,e),dateFormat:l?"":o,ampm:gl,timezone:this.hideTimezone?"":` (${Hu})`};return{start:d,end:u}}};exports.TimeRange=yO([W(K6)],exports.TimeRange);exports.ACTION_BAR=Mp;exports.ALERT=E6;exports.AVATAR=w2;exports.AVATAR_GROUP=x2;exports.AlertEvent=_6;exports.AvatarSize=Xa;exports.AvatarTheme=z2;exports.BADGE=S6;exports.BADGE_CHARACTER_LIMIT_DEFAULT=T6;exports.BADGE_NUMBER_LIMIT_DEFAULT=k6;exports.BASIC_PAGINATION=Au;exports.BUTTON=lu;exports.BUTTON_GROUP=I2;exports.BadgeTheme=M6;exports.BasicPaginationEvent=O6;exports.ButtonEvent=A2;exports.CARD=V6;exports.CARD_FOOTER=W6;exports.CARD_HEADER=Z6;exports.CARD_SECTION_HEADER=U6;exports.COLUMN=$2;exports.COMBO_BOX=vp;exports.COMBO_BOX_OPTION=bp;exports.CONFIRMATION_DIALOG=Ep;exports.ConfirmationDialogCancel=_p;exports.ConfirmationDialogConfirm=Ip;exports.DATE_TIME_RANGE=q6;exports.DROPDOWN_BUTTON=Ap;exports.DROPDOWN_MENU=P2;exports.DeleteLozengeEvent=qp;exports.FADE_IN_OUT=r2;exports.FOOTER=N6;exports.GLOBAL_STYLES=B6;exports.GRID=R6;exports.GRID_ITEM=F6;exports.HEADER=A6;exports.HEADER_FOOTER_PAGE=P6;exports.HEADING=o6;exports.ICON=M2;exports.ILLUSTRATION=I6;exports.INLINE_EDIT_CONTROLS=a6;exports.INLINE_EDIT_FIELD=s6;exports.INLINE_EDIT_GROUP=Ou;exports.INPUT_CHECKBOX=Pp;exports.INPUT_CODE=Up;exports.INPUT_ERROR=lp;exports.INPUT_LABEL=up;exports.INPUT_MULTISELECT=Kp;exports.INPUT_NUMBER=Hp;exports.INPUT_RADIO_GROUP=Bp;exports.INPUT_RADIO_OPTION=Vp;exports.INPUT_SELECT=jp;exports.INPUT_TEXT=Dp;exports.INPUT_TEXTAREA=Np;exports.INPUT_TIME=J5;exports.InlineEditControlsCancelEvent=c6;exports.InlineEditControlsSaveEvent=u6;exports.InlineEditFieldBroadcastEvent=d6;exports.InlineEditFieldModeChangeEvent=h6;exports.InlineEditGroupModeChangeEvent=f6;exports.InputBase=tr;exports.InputSelectBase=Ct;exports.InputSelectQueryChangeEvent=yu;exports.LABELED_INPUT=cp;exports.LINK=T2;exports.LINK_BUTTON=k2;exports.LOADING_SPINNER=_2;exports.LOZENGE=Gp;exports.MENU=hp;exports.MENU_ITEM=rl;exports.MODAL=Lp;exports.MODAL_BODY=kp;exports.MODAL_FOOTER=Op;exports.MODAL_HEADER=Tp;exports.MenuBlurEvent=fp;exports.MenuItemSelectEvent=dp;exports.MenuSelectEvent=pp;exports.ModalCloseEvent=Cu;exports.PAGE_HEADER=H6;exports.PAGINATION=Pu;exports.PAPER=G6;exports.POPOVER=ru;exports.POPOVER_LISTENABLE_EVENT_TYPES=Ya;exports.POPOVER_ROLES=nu;exports.POPOVER_TRIGGERS=b2;exports.PURE_POPOVER=v2;exports.PaginationEvent=$6;exports.PopoverEvent=m2;exports.RECORD_FIELD=sp;exports.RECORD_FIELD_LABEL=ap;exports.RECORD_ROW=m6;exports.RECORD_ROW_LABEL=y6;exports.RESPONSIVE_COLUMNS=D6;exports.ROW=O2;exports.SEARCH_MESSAGE_ID=Ms;exports.SELECT_ALL_ID=Tr;exports.SIDE_NAVIGATION=v6;exports.SIDE_NAVIGATION_ITEM=g6;exports.SPACING_BASE=iu;exports.SPLIT_ROW=Sp;exports.TAB=x6;exports.TABS=L6;exports.TAB_BAR=z6;exports.TAB_PANEL=C6;exports.TIME_FORMAT=Q5;exports.TIME_RANGE=K6;exports.TIME_REGEX_12H=r6;exports.TIME_REGEX_24H=t6;exports.TIME_REGEX_LOOSE=e6;exports.TOGGLE_SWITCH=i6;exports.TOOLTIP=y2;exports.TabDeselectedEvent=w6;exports.TabSelectedEvent=Zl;exports.TooltipTheme=C2;exports.VIRTUAL_LIST=bu;exports.VirtualListUpdateEvent=op;exports.alertTypes=ak;exports.buttonTypes=F9;exports.click=Ka;exports.columnSpans=Jl;exports.dropdownMenuSizes=W9;exports.focus=ui;exports.hover=Oc;exports.iconNames=S9;exports.icons=ou;exports.illustrationNames=lk;exports.illustrations=Du;exports.inlineEditControlsModes=l6;exports.inlineEditModes=rT;exports.inputSizes=qx;exports.labelPositions=Kx;exports.linkButtonElementTypes=$9;exports.linkTypes=I9;exports.lozengeColors=RL;exports.lozengeSizes=BL;exports.lozengeThemes=FL;exports.modalSizes=tL;exports.radioLayouts=SL;exports.resetLinkStyle=au;exports.spacing=L2;exports.spacingLevels=Es;exports.syntaxes=AL;exports.timeSuffixes=GM;exports.transformIcon=S2;
5335
+ `;Nu([E({type:Boolean,attribute:"has-border",reflect:!0})],exports.Paper.prototype,"hasBorder",2);Nu([E({type:Number,reflect:!0})],exports.Paper.prototype,"level",2);exports.Paper=Nu([W(G6)],exports.Paper);var lO=Object.defineProperty,cO=Object.getOwnPropertyDescriptor,we=(n,e,i,o)=>{for(var l=o>1?void 0:o?cO(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&&lO(e,i,l),l};exports.LegacyGlobalStyles=class extends exports.GlobalStyles{};exports.LegacyGlobalStyles=we([W("sp-global-styles")],exports.LegacyGlobalStyles);exports.LegacyAlert=class extends exports.Alert{};exports.LegacyAlert=we([W("sp-alert")],exports.LegacyAlert);exports.LegacyAvatar=class extends exports.Avatar{};exports.LegacyAvatar=we([W("sp-avatar")],exports.LegacyAvatar);exports.LegacyAvatarGroup=class extends exports.AvatarGroup{};exports.LegacyAvatarGroup=we([W("sp-avatar-group")],exports.LegacyAvatarGroup);exports.LegacyButton=class extends exports.Button{};exports.LegacyButton=we([W("sp-button")],exports.LegacyButton);exports.LegacyButtonGroup=class extends exports.ButtonGroup{};exports.LegacyButtonGroup=we([W("sp-button-group")],exports.LegacyButtonGroup);exports.LegacyBadge=class extends exports.Badge{};exports.LegacyBadge=we([W("sp-badge")],exports.LegacyBadge);exports.LegacyComboBox=class extends exports.ComboBox{};exports.LegacyComboBox=we([W("sp-combo-box")],exports.LegacyComboBox);exports.LegacyComboBoxOption=class extends exports.ComboBoxOption{};exports.LegacyComboBoxOption=we([W("sp-combo-box-option")],exports.LegacyComboBoxOption);exports.LegacyConfirmationDialog=class extends exports.ConfirmationDialog{};exports.LegacyConfirmationDialog=we([W("sp-confirmation-dialog")],exports.LegacyConfirmationDialog);exports.LegacyHeading=class extends exports.Heading{};exports.LegacyHeading=we([W("sp-heading")],exports.LegacyHeading);exports.LegacyLink=class extends exports.Link{};exports.LegacyLink=we([W("sp-link")],exports.LegacyLink);exports.LegacyLinkButton=class extends exports.LinkButton{};exports.LegacyLinkButton=we([W("sp-link-button")],exports.LegacyLinkButton);exports.LegacyLoadingSpinner=class extends exports.LoadingSpinner{};exports.LegacyLoadingSpinner=we([W("sp-loading-spinner")],exports.LegacyLoadingSpinner);exports.LegacyLozenge=class extends exports.Lozenge{};exports.LegacyLozenge=we([W("sp-lozenge")],exports.LegacyLozenge);exports.LegacyBasicPagination=class extends exports.BasicPagination{};exports.LegacyBasicPagination=we([W("sp-basic-pagination")],exports.LegacyBasicPagination);exports.LegacyPagination=class extends exports.Pagination{};exports.LegacyPagination=we([W("sp-pagination")],exports.LegacyPagination);exports.LegacyPopover=class extends exports.Popover{};exports.LegacyPopover=we([W("sp-popover")],exports.LegacyPopover);exports.LegacyPurePopover=class extends exports.PurePopover{};exports.LegacyPurePopover=we([W("sp-pure-popover")],exports.LegacyPurePopover);exports.LegacyRecordRow=class extends exports.RecordRow{};exports.LegacyRecordRow=we([W("sp-record-row")],exports.LegacyRecordRow);exports.LegacyRecordRowLabel=class extends exports.RecordRowLabel{};exports.LegacyRecordRowLabel=we([W("sp-record-row-label")],exports.LegacyRecordRowLabel);exports.LegacyTooltip=class extends exports.Tooltip{};exports.LegacyTooltip=we([W("sp-tooltip")],exports.LegacyTooltip);exports.LegacyVirtualList=class extends exports.VirtualList{};exports.LegacyVirtualList=we([W("sp-virtual-list")],exports.LegacyVirtualList);exports.LegacyFadeInOut=class extends exports.FadeInOut{};exports.LegacyFadeInOut=we([W("sp-fade-in-out")],exports.LegacyFadeInOut);exports.LegacyPaper=class extends exports.Paper{};exports.LegacyPaper=we([W("sp-paper")],exports.LegacyPaper);exports.LegacyRow=class extends exports.Row{};exports.LegacyRow=we([W("sp-row")],exports.LegacyRow);exports.LegacyColumn=class extends exports.Column{};exports.LegacyColumn=we([W("sp-column")],exports.LegacyColumn);exports.LegacyFooter=class extends exports.Footer{};exports.LegacyFooter=we([W("sp-footer")],exports.LegacyFooter);exports.LegacyHeaderFooterPage=class extends exports.HeaderFooterPage{};exports.LegacyHeaderFooterPage=we([W("sp-header-footer-page")],exports.LegacyHeaderFooterPage);exports.LegacyHeader=class extends exports.Header{};exports.LegacyHeader=we([W("sp-header")],exports.LegacyHeader);exports.LegacyResponsiveColumns=class extends exports.ResponsiveColumns{};exports.LegacyResponsiveColumns=we([W("sp-responsive-columns")],exports.LegacyResponsiveColumns);exports.LegacySplitRow=class extends exports.SplitRow{};exports.LegacySplitRow=we([W("sp-split-row")],exports.LegacySplitRow);exports.LegacyActionBar=class extends exports.ActionBar{};exports.LegacyActionBar=we([W("sp-action-bar")],exports.LegacyActionBar);exports.LegacyIllustration=class extends exports.Illustration{};exports.LegacyIllustration=we([W("sp-illustration")],exports.LegacyIllustration);exports.LegacyIcon=class extends exports.Icon{};exports.LegacyIcon=we([W("sp-icon")],exports.LegacyIcon);exports.LegacyModalHeader=class extends exports.ModalHeader{};exports.LegacyModalHeader=we([W("sp-modal-header")],exports.LegacyModalHeader);exports.LegacyModalBody=class extends exports.ModalBody{};exports.LegacyModalBody=we([W("sp-modal-body")],exports.LegacyModalBody);exports.LegacyModalFooter=class extends exports.ModalFooter{};exports.LegacyModalFooter=we([W("sp-modal-footer")],exports.LegacyModalFooter);exports.LegacyModal=class extends exports.Modal{};exports.LegacyModal=we([W("sp-modal")],exports.LegacyModal);exports.LegacySideNavigationItem=class extends exports.SideNavigationItem{};exports.LegacySideNavigationItem=we([W("sp-side-navigation-item")],exports.LegacySideNavigationItem);exports.LegacySideNavigation=class extends exports.SideNavigation{};exports.LegacySideNavigation=we([W("sp-side-navigation")],exports.LegacySideNavigation);exports.LegacyTabs=class extends exports.Tabs{};exports.LegacyTabs=we([W("sp-tabs")],exports.LegacyTabs);exports.LegacyTabPanel=class extends exports.TabPanel{};exports.LegacyTabPanel=we([W("sp-tab-panel")],exports.LegacyTabPanel);exports.LegacyTabBar=class extends exports.TabBar{};exports.LegacyTabBar=we([W("sp-tab-bar")],exports.LegacyTabBar);exports.LegacyTab=class extends exports.Tab{};exports.LegacyTab=we([W("sp-tab")],exports.LegacyTab);exports.LegacyInputCheckbox=class extends exports.InputCheckbox{};exports.LegacyInputCheckbox=we([W("sp-input-checkbox")],exports.LegacyInputCheckbox);exports.LegacyInputCode=class extends exports.InputCode{};exports.LegacyInputCode=we([W("sp-input-code")],exports.LegacyInputCode);exports.LegacyInputError=class extends exports.InputError{};exports.LegacyInputError=we([W("sp-input-error")],exports.LegacyInputError);exports.LegacyInputGuide=class extends tl{};exports.LegacyInputGuide=we([W("sp-input-guide")],exports.LegacyInputGuide);exports.LegacyInputMultiselect=class extends exports.InputMultiselect{};exports.LegacyInputMultiselect=we([W("sp-input-multiselect")],exports.LegacyInputMultiselect);exports.LegacyInputNumber=class extends exports.InputNumber{};exports.LegacyInputNumber=we([W("sp-input-number")],exports.LegacyInputNumber);exports.LegacyInputRadio=class extends exports.InputRadio{};exports.LegacyInputRadio=we([W("sp-input-radio-group")],exports.LegacyInputRadio);exports.LegacyInputRadioOption=class extends exports.InputRadioOption{};exports.LegacyInputRadioOption=we([W("sp-input-radio-option")],exports.LegacyInputRadioOption);exports.LegacyMenu=class extends exports.Menu{};exports.LegacyMenu=we([W("sp-menu")],exports.LegacyMenu);exports.LegacyMenuItem=class extends exports.MenuItem{};exports.LegacyMenuItem=we([W("sp-menu-item")],exports.LegacyMenuItem);exports.LegacyInputSelect=class extends exports.InputSelect{};exports.LegacyInputSelect=we([W("sp-input-select")],exports.LegacyInputSelect);exports.LegacyInputText=class extends exports.InputText{};exports.LegacyInputText=we([W("sp-input-text")],exports.LegacyInputText);exports.LegacyInputTextarea=class extends exports.InputTextarea{};exports.LegacyInputTextarea=we([W("sp-input-textarea")],exports.LegacyInputTextarea);exports.LegacyInputTime=class extends exports.InputTime{};exports.LegacyInputTime=we([W("sp-input-time")],exports.LegacyInputTime);exports.LegacyInputLabel=class extends exports.InputLabel{};exports.LegacyInputLabel=we([W("sp-input-label")],exports.LegacyInputLabel);exports.LegacyLabeledInput=class extends exports.LabeledInput{};exports.LegacyLabeledInput=we([W("sp-labeled-input")],exports.LegacyLabeledInput);const q6=ce("date-time-range"),gl="a",uO="ccc d LLL",dO="ccc LLL d",Hu="ZZZZ";var hO=Object.defineProperty,fO=Object.getOwnPropertyDescriptor,Us=(n,e,i,o)=>{for(var l=o>1?void 0:o?fO(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&&hO(e,i,l),l};class Mn extends ze{constructor(){super(...arguments),this.hideTimezone=!1,this.dateFormat="MonthDayYear"}generateContent(){if(!this.start||!this.end)return"No date and time set";if(ZM(this.start,this.end,this.timezone))return this.hideTimezone||!this.timezone?"All day":`All day (${vc(Ee.fromISO(this.start),this.timezone).toFormat(Hu)})`;const e=vc(Ee.fromISO(this.start),this.timezone),i=vc(Ee.fromISO(this.end),this.timezone),o=this.dateFormat==="DayMonthYear"?uO:dO,{start:l,end:d}=this.getStartAndEndDateTimeTokens(e,i,o),u=(b,M)=>{const{dateFormat:L,year:T,minutes:$,ampm:N,timezone:Y=""}=M,_=`${L?`${L}${T}, `:""}${$}${N}${Y}`;return b.toFormat(_)},v=Of(u(e,l)),y=Of(u(i,d));return`${v} - ${y}`}render(){return R`<span>${this.generateContent()}</span>`}}Us([E({type:String})],Mn.prototype,"start",2);Us([E({type:String})],Mn.prototype,"end",2);Us([E({type:String})],Mn.prototype,"timezone",2);Us([E({attribute:"hide-timezone",type:Boolean})],Mn.prototype,"hideTimezone",2);Us([E({attribute:"date-format",type:String})],Mn.prototype,"dateFormat",2);var pO=Object.defineProperty,gO=Object.getOwnPropertyDescriptor,vO=(n,e,i,o)=>{for(var l=o>1?void 0:o?gO(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&&pO(e,i,l),l};exports.DateTimeRange=class extends Mn{getStartAndEndDateTimeTokens(e,i,o){const l={minutes:dl(e),year:hl(e,i),dateFormat:o,ampm:e.hasSame(i,"day")&&Y5(e,i)?"":gl},d={minutes:dl(i),year:hl(i,e),dateFormat:e.hasSame(i,"day")?"":o,ampm:gl,timezone:this.hideTimezone?"":` (${Hu})`};return{start:l,end:d}}};exports.DateTimeRange=vO([W(q6)],exports.DateTimeRange);const K6=ce("time-range");var bO=Object.defineProperty,mO=Object.getOwnPropertyDescriptor,yO=(n,e,i,o)=>{for(var l=o>1?void 0:o?mO(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&&bO(e,i,l),l};exports.TimeRange=class extends Mn{getStartAndEndDateTimeTokens(e,i,o){const l=e.hasSame(i,"day"),d={minutes:dl(e),year:hl(e,i),dateFormat:l?"":o,ampm:l&&Y5(e,i)?"":gl},u={minutes:dl(i),year:hl(i,e),dateFormat:l?"":o,ampm:gl,timezone:this.hideTimezone?"":` (${Hu})`};return{start:d,end:u}}};exports.TimeRange=yO([W(K6)],exports.TimeRange);exports.ACTION_BAR=Mp;exports.ALERT=E6;exports.AVATAR=w2;exports.AVATAR_GROUP=x2;exports.AlertEvent=_6;exports.AvatarSize=Xa;exports.AvatarTheme=z2;exports.BADGE=S6;exports.BADGE_CHARACTER_LIMIT_DEFAULT=T6;exports.BADGE_NUMBER_LIMIT_DEFAULT=k6;exports.BASIC_PAGINATION=Au;exports.BUTTON=lu;exports.BUTTON_GROUP=I2;exports.BadgeTheme=M6;exports.BasicPaginationEvent=O6;exports.ButtonEvent=A2;exports.CARD=V6;exports.CARD_FOOTER=W6;exports.CARD_HEADER=Z6;exports.CARD_SECTION_HEADER=U6;exports.COLUMN=$2;exports.COMBO_BOX=vp;exports.COMBO_BOX_OPTION=bp;exports.CONFIRMATION_DIALOG=Ep;exports.ConfirmationDialogCancel=_p;exports.ConfirmationDialogConfirm=Ip;exports.DATE_TIME_RANGE=q6;exports.DROPDOWN_BUTTON=Ap;exports.DROPDOWN_MENU=P2;exports.DeleteLozengeEvent=qp;exports.FADE_IN_OUT=r2;exports.FOOTER=N6;exports.GLOBAL_STYLES=B6;exports.GRID=R6;exports.GRID_ITEM=F6;exports.HEADER=A6;exports.HEADER_FOOTER_PAGE=P6;exports.HEADING=o6;exports.ICON=M2;exports.ILLUSTRATION=I6;exports.INLINE_EDIT_CONTROLS=a6;exports.INLINE_EDIT_FIELD=s6;exports.INLINE_EDIT_GROUP=Ou;exports.INPUT_CHECKBOX=Pp;exports.INPUT_CODE=Up;exports.INPUT_ERROR=lp;exports.INPUT_LABEL=up;exports.INPUT_MULTISELECT=Kp;exports.INPUT_NUMBER=Hp;exports.INPUT_RADIO_GROUP=Bp;exports.INPUT_RADIO_OPTION=Vp;exports.INPUT_SELECT=jp;exports.INPUT_TEXT=Dp;exports.INPUT_TEXTAREA=Np;exports.INPUT_TIME=J5;exports.InlineEditControlsCancelEvent=c6;exports.InlineEditControlsSaveEvent=u6;exports.InlineEditFieldBroadcastEvent=d6;exports.InlineEditFieldModeChangeEvent=h6;exports.InlineEditGroupModeChangeEvent=f6;exports.InputBase=tr;exports.InputSelectBase=Ct;exports.InputSelectQueryChangeEvent=yu;exports.LABELED_INPUT=cp;exports.LINK=T2;exports.LINK_BUTTON=k2;exports.LOADING_SPINNER=_2;exports.LOZENGE=Gp;exports.MENU=hp;exports.MENU_ITEM=rl;exports.MODAL=Lp;exports.MODAL_BODY=kp;exports.MODAL_FOOTER=Op;exports.MODAL_HEADER=Tp;exports.MenuBlurEvent=fp;exports.MenuItemSelectEvent=dp;exports.MenuSelectEvent=pp;exports.ModalCloseEvent=Cu;exports.PAGE_HEADER=H6;exports.PAGINATION=Pu;exports.PAPER=G6;exports.POPOVER=ru;exports.POPOVER_LISTENABLE_EVENT_TYPES=Ya;exports.POPOVER_ROLES=iu;exports.POPOVER_TRIGGERS=b2;exports.PURE_POPOVER=v2;exports.PaginationEvent=$6;exports.PopoverEvent=m2;exports.RECORD_FIELD=sp;exports.RECORD_FIELD_LABEL=ap;exports.RECORD_ROW=m6;exports.RECORD_ROW_LABEL=y6;exports.RESPONSIVE_COLUMNS=D6;exports.ROW=O2;exports.SEARCH_MESSAGE_ID=Ms;exports.SELECT_ALL_ID=Tr;exports.SIDE_NAVIGATION=v6;exports.SIDE_NAVIGATION_ITEM=g6;exports.SPACING_BASE=nu;exports.SPLIT_ROW=Sp;exports.TAB=x6;exports.TABS=L6;exports.TAB_BAR=z6;exports.TAB_PANEL=C6;exports.TIME_FORMAT=Q5;exports.TIME_RANGE=K6;exports.TIME_REGEX_12H=r6;exports.TIME_REGEX_24H=t6;exports.TIME_REGEX_LOOSE=e6;exports.TOGGLE_SWITCH=n6;exports.TOOLTIP=y2;exports.TabDeselectedEvent=w6;exports.TabSelectedEvent=Zl;exports.TooltipTheme=C2;exports.VIRTUAL_LIST=bu;exports.VirtualListUpdateEvent=op;exports.alertTypes=ak;exports.buttonTypes=F9;exports.click=Ka;exports.columnSpans=Jl;exports.dropdownMenuSizes=W9;exports.focus=un;exports.hover=Oc;exports.iconNames=S9;exports.icons=ou;exports.illustrationNames=lk;exports.illustrations=Du;exports.inlineEditControlsModes=l6;exports.inlineEditModes=rT;exports.inputSizes=qx;exports.labelPositions=Kx;exports.linkButtonElementTypes=$9;exports.linkTypes=I9;exports.lozengeColors=RL;exports.lozengeSizes=BL;exports.lozengeThemes=FL;exports.modalSizes=tL;exports.radioLayouts=SL;exports.resetLinkStyle=au;exports.spacing=L2;exports.spacingLevels=Es;exports.syntaxes=AL;exports.timeSuffixes=GM;exports.transformIcon=S2;