@skedulo/breeze-ui 0.9.0 → 0.9.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,32 +1,32 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});function Bv(s,i){for(var l=0;l<i.length;l++){const d=i[l];if(typeof d!="string"&&!Array.isArray(d)){for(const c in d)if(c!=="default"&&!(c in s)){const g=Object.getOwnPropertyDescriptor(d,c);g&&Object.defineProperty(s,c,g.get?g:{enumerable:!0,get:()=>d[c]})}}}return Object.freeze(Object.defineProperty(s,Symbol.toStringTag,{value:"Module"}))}/**
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});function Gv(s,i){for(var l=0;l<i.length;l++){const d=i[l];if(typeof d!="string"&&!Array.isArray(d)){for(const c in d)if(c!=="default"&&!(c in s)){const g=Object.getOwnPropertyDescriptor(d,c);g&&Object.defineProperty(s,c,g.get?g:{enumerable:!0,get:()=>d[c]})}}}return Object.freeze(Object.defineProperty(s,Symbol.toStringTag,{value:"Module"}))}/**
2
2
  * @license
3
3
  * Copyright 2019 Google LLC
4
4
  * SPDX-License-Identifier: BSD-3-Clause
5
- */const z0=window,_d=z0.ShadowRoot&&(z0.ShadyCSS===void 0||z0.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Sd=Symbol(),Df=new WeakMap;class mh{constructor(i,l,d){if(this._$cssResult$=!0,d!==Sd)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=i,this.t=l}get styleSheet(){let i=this.o;const l=this.t;if(_d&&i===void 0){const d=l!==void 0&&l.length===1;d&&(i=Df.get(l)),i===void 0&&((this.o=i=new CSSStyleSheet).replaceSync(this.cssText),d&&Df.set(l,i))}return i}toString(){return this.cssText}}const Ca=s=>new mh(typeof s=="string"?s:s+"",void 0,Sd),ce=(s,...i)=>{const l=s.length===1?s[0]:i.reduce((d,c,g)=>d+(b=>{if(b._$cssResult$===!0)return b.cssText;if(typeof b=="number")return b;throw Error("Value passed to 'css' function must be a 'css' function result: "+b+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(c)+s[g+1],s[0]);return new mh(l,s,Sd)},Fv=(s,i)=>{_d?s.adoptedStyleSheets=i.map(l=>l instanceof CSSStyleSheet?l:l.styleSheet):i.forEach(l=>{const d=document.createElement("style"),c=z0.litNonce;c!==void 0&&d.setAttribute("nonce",c),d.textContent=l.cssText,s.appendChild(d)})},Rf=_d?s=>s:s=>s instanceof CSSStyleSheet?(i=>{let l="";for(const d of i.cssRules)l+=d.cssText;return Ca(l)})(s):s;/**
5
+ */const z0=window,_d=z0.ShadowRoot&&(z0.ShadyCSS===void 0||z0.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Sd=Symbol(),Df=new WeakMap;class xh{constructor(i,l,d){if(this._$cssResult$=!0,d!==Sd)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=i,this.t=l}get styleSheet(){let i=this.o;const l=this.t;if(_d&&i===void 0){const d=l!==void 0&&l.length===1;d&&(i=Df.get(l)),i===void 0&&((this.o=i=new CSSStyleSheet).replaceSync(this.cssText),d&&Df.set(l,i))}return i}toString(){return this.cssText}}const Ca=s=>new xh(typeof s=="string"?s:s+"",void 0,Sd),ue=(s,...i)=>{const l=s.length===1?s[0]:i.reduce((d,c,g)=>d+(b=>{if(b._$cssResult$===!0)return b.cssText;if(typeof b=="number")return b;throw Error("Value passed to 'css' function must be a 'css' function result: "+b+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(c)+s[g+1],s[0]);return new xh(l,s,Sd)},qv=(s,i)=>{_d?s.adoptedStyleSheets=i.map(l=>l instanceof CSSStyleSheet?l:l.styleSheet):i.forEach(l=>{const d=document.createElement("style"),c=z0.litNonce;c!==void 0&&d.setAttribute("nonce",c),d.textContent=l.cssText,s.appendChild(d)})},Rf=_d?s=>s:s=>s instanceof CSSStyleSheet?(i=>{let l="";for(const d of i.cssRules)l+=d.cssText;return Ca(l)})(s):s;/**
6
6
  * @license
7
7
  * Copyright 2017 Google LLC
8
8
  * SPDX-License-Identifier: BSD-3-Clause
9
- */var ad;const M0=window,Nf=M0.trustedTypes,Wv=Nf?Nf.emptyScript:"",Hf=M0.reactiveElementPolyfillSupport,bd={toAttribute(s,i){switch(i){case Boolean:s=s?Wv:null;break;case Object:case Array:s=s==null?s:JSON.stringify(s)}return s},fromAttribute(s,i){let l=s;switch(i){case Boolean:l=s!==null;break;case Number:l=s===null?null:Number(s);break;case Object:case Array:try{l=JSON.parse(s)}catch{l=null}}return l}},yh=(s,i)=>i!==s&&(i==i||s==s),ld={attribute:!0,type:String,converter:bd,reflect:!1,hasChanged:yh};class Cs extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this.u()}static addInitializer(i){var l;this.finalize(),((l=this.h)!==null&&l!==void 0?l:this.h=[]).push(i)}static get observedAttributes(){this.finalize();const i=[];return this.elementProperties.forEach((l,d)=>{const c=this._$Ep(d,l);c!==void 0&&(this._$Ev.set(c,d),i.push(c))}),i}static createProperty(i,l=ld){if(l.state&&(l.attribute=!1),this.finalize(),this.elementProperties.set(i,l),!l.noAccessor&&!this.prototype.hasOwnProperty(i)){const d=typeof i=="symbol"?Symbol():"__"+i,c=this.getPropertyDescriptor(i,d,l);c!==void 0&&Object.defineProperty(this.prototype,i,c)}}static getPropertyDescriptor(i,l,d){return{get(){return this[l]},set(c){const g=this[i];this[l]=c,this.requestUpdate(i,g,d)},configurable:!0,enumerable:!0}}static getPropertyOptions(i){return this.elementProperties.get(i)||ld}static finalize(){if(this.hasOwnProperty("finalized"))return!1;this.finalized=!0;const i=Object.getPrototypeOf(this);if(i.finalize(),i.h!==void 0&&(this.h=[...i.h]),this.elementProperties=new Map(i.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const l=this.properties,d=[...Object.getOwnPropertyNames(l),...Object.getOwnPropertySymbols(l)];for(const c of d)this.createProperty(c,l[c])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(i){const l=[];if(Array.isArray(i)){const d=new Set(i.flat(1/0).reverse());for(const c of d)l.unshift(Rf(c))}else i!==void 0&&l.push(Rf(i));return l}static _$Ep(i,l){const d=l.attribute;return d===!1?void 0:typeof d=="string"?d:typeof i=="string"?i.toLowerCase():void 0}u(){var i;this._$E_=new Promise(l=>this.enableUpdating=l),this._$AL=new Map,this._$Eg(),this.requestUpdate(),(i=this.constructor.h)===null||i===void 0||i.forEach(l=>l(this))}addController(i){var l,d;((l=this._$ES)!==null&&l!==void 0?l:this._$ES=[]).push(i),this.renderRoot!==void 0&&this.isConnected&&((d=i.hostConnected)===null||d===void 0||d.call(i))}removeController(i){var l;(l=this._$ES)===null||l===void 0||l.splice(this._$ES.indexOf(i)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach((i,l)=>{this.hasOwnProperty(l)&&(this._$Ei.set(l,this[l]),delete this[l])})}createRenderRoot(){var i;const l=(i=this.shadowRoot)!==null&&i!==void 0?i:this.attachShadow(this.constructor.shadowRootOptions);return Fv(l,this.constructor.elementStyles),l}connectedCallback(){var i;this.renderRoot===void 0&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(i=this._$ES)===null||i===void 0||i.forEach(l=>{var d;return(d=l.hostConnected)===null||d===void 0?void 0:d.call(l)})}enableUpdating(i){}disconnectedCallback(){var i;(i=this._$ES)===null||i===void 0||i.forEach(l=>{var d;return(d=l.hostDisconnected)===null||d===void 0?void 0:d.call(l)})}attributeChangedCallback(i,l,d){this._$AK(i,d)}_$EO(i,l,d=ld){var c;const g=this.constructor._$Ep(i,d);if(g!==void 0&&d.reflect===!0){const b=(((c=d.converter)===null||c===void 0?void 0:c.toAttribute)!==void 0?d.converter:bd).toAttribute(l,d.type);this._$El=i,b==null?this.removeAttribute(g):this.setAttribute(g,b),this._$El=null}}_$AK(i,l){var d;const c=this.constructor,g=c._$Ev.get(i);if(g!==void 0&&this._$El!==g){const b=c.getPropertyOptions(g),I=typeof b.converter=="function"?{fromAttribute:b.converter}:((d=b.converter)===null||d===void 0?void 0:d.fromAttribute)!==void 0?b.converter:bd;this._$El=g,this[g]=I.fromAttribute(l,b.type),this._$El=null}}requestUpdate(i,l,d){let c=!0;i!==void 0&&(((d=d||this.constructor.getPropertyOptions(i)).hasChanged||yh)(this[i],l)?(this._$AL.has(i)||this._$AL.set(i,l),d.reflect===!0&&this._$El!==i&&(this._$EC===void 0&&(this._$EC=new Map),this._$EC.set(i,d))):c=!1),!this.isUpdatePending&&c&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(l){Promise.reject(l)}const i=this.scheduleUpdate();return i!=null&&await i,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var i;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach((c,g)=>this[g]=c),this._$Ei=void 0);let l=!1;const d=this._$AL;try{l=this.shouldUpdate(d),l?(this.willUpdate(d),(i=this._$ES)===null||i===void 0||i.forEach(c=>{var g;return(g=c.hostUpdate)===null||g===void 0?void 0:g.call(c)}),this.update(d)):this._$Ek()}catch(c){throw l=!1,this._$Ek(),c}l&&this._$AE(d)}willUpdate(i){}_$AE(i){var l;(l=this._$ES)===null||l===void 0||l.forEach(d=>{var c;return(c=d.hostUpdated)===null||c===void 0?void 0:c.call(d)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(i)),this.updated(i)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(i){return!0}update(i){this._$EC!==void 0&&(this._$EC.forEach((l,d)=>this._$EO(d,this[d],l)),this._$EC=void 0),this._$Ek()}updated(i){}firstUpdated(i){}}Cs.finalized=!0,Cs.elementProperties=new Map,Cs.elementStyles=[],Cs.shadowRootOptions={mode:"open"},Hf==null||Hf({ReactiveElement:Cs}),((ad=M0.reactiveElementVersions)!==null&&ad!==void 0?ad:M0.reactiveElementVersions=[]).push("1.4.2");/**
9
+ */var ad;const M0=window,Nf=M0.trustedTypes,jv=Nf?Nf.emptyScript:"",Hf=M0.reactiveElementPolyfillSupport,bd={toAttribute(s,i){switch(i){case Boolean:s=s?jv:null;break;case Object:case Array:s=s==null?s:JSON.stringify(s)}return s},fromAttribute(s,i){let l=s;switch(i){case Boolean:l=s!==null;break;case Number:l=s===null?null:Number(s);break;case Object:case Array:try{l=JSON.parse(s)}catch{l=null}}return l}},zh=(s,i)=>i!==s&&(i==i||s==s),ld={attribute:!0,type:String,converter:bd,reflect:!1,hasChanged:zh};class Cs extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this.u()}static addInitializer(i){var l;this.finalize(),((l=this.h)!==null&&l!==void 0?l:this.h=[]).push(i)}static get observedAttributes(){this.finalize();const i=[];return this.elementProperties.forEach((l,d)=>{const c=this._$Ep(d,l);c!==void 0&&(this._$Ev.set(c,d),i.push(c))}),i}static createProperty(i,l=ld){if(l.state&&(l.attribute=!1),this.finalize(),this.elementProperties.set(i,l),!l.noAccessor&&!this.prototype.hasOwnProperty(i)){const d=typeof i=="symbol"?Symbol():"__"+i,c=this.getPropertyDescriptor(i,d,l);c!==void 0&&Object.defineProperty(this.prototype,i,c)}}static getPropertyDescriptor(i,l,d){return{get(){return this[l]},set(c){const g=this[i];this[l]=c,this.requestUpdate(i,g,d)},configurable:!0,enumerable:!0}}static getPropertyOptions(i){return this.elementProperties.get(i)||ld}static finalize(){if(this.hasOwnProperty("finalized"))return!1;this.finalized=!0;const i=Object.getPrototypeOf(this);if(i.finalize(),i.h!==void 0&&(this.h=[...i.h]),this.elementProperties=new Map(i.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const l=this.properties,d=[...Object.getOwnPropertyNames(l),...Object.getOwnPropertySymbols(l)];for(const c of d)this.createProperty(c,l[c])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(i){const l=[];if(Array.isArray(i)){const d=new Set(i.flat(1/0).reverse());for(const c of d)l.unshift(Rf(c))}else i!==void 0&&l.push(Rf(i));return l}static _$Ep(i,l){const d=l.attribute;return d===!1?void 0:typeof d=="string"?d:typeof i=="string"?i.toLowerCase():void 0}u(){var i;this._$E_=new Promise(l=>this.enableUpdating=l),this._$AL=new Map,this._$Eg(),this.requestUpdate(),(i=this.constructor.h)===null||i===void 0||i.forEach(l=>l(this))}addController(i){var l,d;((l=this._$ES)!==null&&l!==void 0?l:this._$ES=[]).push(i),this.renderRoot!==void 0&&this.isConnected&&((d=i.hostConnected)===null||d===void 0||d.call(i))}removeController(i){var l;(l=this._$ES)===null||l===void 0||l.splice(this._$ES.indexOf(i)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach((i,l)=>{this.hasOwnProperty(l)&&(this._$Ei.set(l,this[l]),delete this[l])})}createRenderRoot(){var i;const l=(i=this.shadowRoot)!==null&&i!==void 0?i:this.attachShadow(this.constructor.shadowRootOptions);return qv(l,this.constructor.elementStyles),l}connectedCallback(){var i;this.renderRoot===void 0&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(i=this._$ES)===null||i===void 0||i.forEach(l=>{var d;return(d=l.hostConnected)===null||d===void 0?void 0:d.call(l)})}enableUpdating(i){}disconnectedCallback(){var i;(i=this._$ES)===null||i===void 0||i.forEach(l=>{var d;return(d=l.hostDisconnected)===null||d===void 0?void 0:d.call(l)})}attributeChangedCallback(i,l,d){this._$AK(i,d)}_$EO(i,l,d=ld){var c;const g=this.constructor._$Ep(i,d);if(g!==void 0&&d.reflect===!0){const b=(((c=d.converter)===null||c===void 0?void 0:c.toAttribute)!==void 0?d.converter:bd).toAttribute(l,d.type);this._$El=i,b==null?this.removeAttribute(g):this.setAttribute(g,b),this._$El=null}}_$AK(i,l){var d;const c=this.constructor,g=c._$Ev.get(i);if(g!==void 0&&this._$El!==g){const b=c.getPropertyOptions(g),I=typeof b.converter=="function"?{fromAttribute:b.converter}:((d=b.converter)===null||d===void 0?void 0:d.fromAttribute)!==void 0?b.converter:bd;this._$El=g,this[g]=I.fromAttribute(l,b.type),this._$El=null}}requestUpdate(i,l,d){let c=!0;i!==void 0&&(((d=d||this.constructor.getPropertyOptions(i)).hasChanged||zh)(this[i],l)?(this._$AL.has(i)||this._$AL.set(i,l),d.reflect===!0&&this._$El!==i&&(this._$EC===void 0&&(this._$EC=new Map),this._$EC.set(i,d))):c=!1),!this.isUpdatePending&&c&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(l){Promise.reject(l)}const i=this.scheduleUpdate();return i!=null&&await i,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var i;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach((c,g)=>this[g]=c),this._$Ei=void 0);let l=!1;const d=this._$AL;try{l=this.shouldUpdate(d),l?(this.willUpdate(d),(i=this._$ES)===null||i===void 0||i.forEach(c=>{var g;return(g=c.hostUpdate)===null||g===void 0?void 0:g.call(c)}),this.update(d)):this._$Ek()}catch(c){throw l=!1,this._$Ek(),c}l&&this._$AE(d)}willUpdate(i){}_$AE(i){var l;(l=this._$ES)===null||l===void 0||l.forEach(d=>{var c;return(c=d.hostUpdated)===null||c===void 0?void 0:c.call(d)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(i)),this.updated(i)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(i){return!0}update(i){this._$EC!==void 0&&(this._$EC.forEach((l,d)=>this._$EO(d,this[d],l)),this._$EC=void 0),this._$Ek()}updated(i){}firstUpdated(i){}}Cs.finalized=!0,Cs.elementProperties=new Map,Cs.elementStyles=[],Cs.shadowRootOptions={mode:"open"},Hf==null||Hf({ReactiveElement:Cs}),((ad=M0.reactiveElementVersions)!==null&&ad!==void 0?ad:M0.reactiveElementVersions=[]).push("1.4.2");/**
10
10
  * @license
11
11
  * Copyright 2017 Google LLC
12
12
  * SPDX-License-Identifier: BSD-3-Clause
13
- */var sd;const k0=window,zs=k0.trustedTypes,Bf=zs?zs.createPolicy("lit-html",{createHTML:s=>s}):void 0,Po=`lit$${(Math.random()+"").slice(9)}$`,Md="?"+Po,Uv=`<${Md}>`,Ls=document,Ru=(s="")=>Ls.createComment(s),Nu=s=>s===null||typeof s!="object"&&typeof s!="function",Ch=Array.isArray,wh=s=>Ch(s)||typeof(s==null?void 0:s[Symbol.iterator])=="function",Ou=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Ff=/-->/g,Wf=/>/g,sl=RegExp(`>|[
13
+ */var sd;const k0=window,zs=k0.trustedTypes,Bf=zs?zs.createPolicy("lit-html",{createHTML:s=>s}):void 0,Po=`lit$${(Math.random()+"").slice(9)}$`,Md="?"+Po,Kv=`<${Md}>`,Ls=document,Ru=(s="")=>Ls.createComment(s),Nu=s=>s===null||typeof s!="object"&&typeof s!="function",Lh=Array.isArray,_h=s=>Lh(s)||typeof(s==null?void 0:s[Symbol.iterator])=="function",Ou=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Ff=/-->/g,Wf=/>/g,sl=RegExp(`>|[
14
14
  \f\r](?:([^\\s"'>=/]+)([
15
15
  \f\r]*=[
16
16
  \f\r]*(?:[^
17
- \f\r"'\`<>=]|("|')|))|$)`,"g"),Uf=/'/g,Zf=/"/g,xh=/^(?:script|style|textarea|title)$/i,zh=s=>(i,...l)=>({_$litType$:s,strings:i,values:l}),K=zh(1),Y=zh(2),Xi=Symbol.for("lit-noChange"),Jt=Symbol.for("lit-nothing"),Gf=new WeakMap,xs=Ls.createTreeWalker(Ls,129,null,!1),Lh=(s,i)=>{const l=s.length-1,d=[];let c,g=i===2?"<svg>":"",b=Ou;for(let T=0;T<l;T++){const k=s[T];let A,B,U=-1,Z=0;for(;Z<k.length&&(b.lastIndex=Z,B=b.exec(k),B!==null);)Z=b.lastIndex,b===Ou?B[1]==="!--"?b=Ff:B[1]!==void 0?b=Wf:B[2]!==void 0?(xh.test(B[2])&&(c=RegExp("</"+B[2],"g")),b=sl):B[3]!==void 0&&(b=sl):b===sl?B[0]===">"?(b=c!=null?c:Ou,U=-1):B[1]===void 0?U=-2:(U=b.lastIndex-B[2].length,A=B[1],b=B[3]===void 0?sl:B[3]==='"'?Zf:Uf):b===Zf||b===Uf?b=sl:b===Ff||b===Wf?b=Ou:(b=sl,c=void 0);const re=b===sl&&s[T+1].startsWith("/>")?" ":"";g+=b===Ou?k+Uv:U>=0?(d.push(A),k.slice(0,U)+"$lit$"+k.slice(U)+Po+re):k+Po+(U===-2?(d.push(void 0),T):re)}const I=g+(s[l]||"<?>")+(i===2?"</svg>":"");if(!Array.isArray(s)||!s.hasOwnProperty("raw"))throw Error("invalid template strings array");return[Bf!==void 0?Bf.createHTML(I):I,d]};class Hu{constructor({strings:i,_$litType$:l},d){let c;this.parts=[];let g=0,b=0;const I=i.length-1,T=this.parts,[k,A]=Lh(i,l);if(this.el=Hu.createElement(k,d),xs.currentNode=this.el.content,l===2){const B=this.el.content,U=B.firstChild;U.remove(),B.append(...U.childNodes)}for(;(c=xs.nextNode())!==null&&T.length<I;){if(c.nodeType===1){if(c.hasAttributes()){const B=[];for(const U of c.getAttributeNames())if(U.endsWith("$lit$")||U.startsWith(Po)){const Z=A[b++];if(B.push(U),Z!==void 0){const re=c.getAttribute(Z.toLowerCase()+"$lit$").split(Po),ve=/([.?@])?(.*)/.exec(Z);T.push({type:1,index:g,name:ve[2],strings:re,ctor:ve[1]==="."?Sh:ve[1]==="?"?Mh:ve[1]==="@"?kh:Zu})}else T.push({type:6,index:g})}for(const U of B)c.removeAttribute(U)}if(xh.test(c.tagName)){const B=c.textContent.split(Po),U=B.length-1;if(U>0){c.textContent=zs?zs.emptyScript:"";for(let Z=0;Z<U;Z++)c.append(B[Z],Ru()),xs.nextNode(),T.push({type:2,index:++g});c.append(B[U],Ru())}}}else if(c.nodeType===8)if(c.data===Md)T.push({type:2,index:g});else{let B=-1;for(;(B=c.data.indexOf(Po,B+1))!==-1;)T.push({type:7,index:g}),B+=Po.length-1}g++}}static createElement(i,l){const d=Ls.createElement("template");return d.innerHTML=i,d}}function pl(s,i,l=s,d){var c,g,b,I;if(i===Xi)return i;let T=d!==void 0?(c=l._$Co)===null||c===void 0?void 0:c[d]:l._$Cl;const k=Nu(i)?void 0:i._$litDirective$;return(T==null?void 0:T.constructor)!==k&&((g=T==null?void 0:T._$AO)===null||g===void 0||g.call(T,!1),k===void 0?T=void 0:(T=new k(s),T._$AT(s,l,d)),d!==void 0?((b=(I=l)._$Co)!==null&&b!==void 0?b:I._$Co=[])[d]=T:l._$Cl=T),T!==void 0&&(i=pl(s,T._$AS(s,i.values),T,d)),i}class _h{constructor(i,l){this.u=[],this._$AN=void 0,this._$AD=i,this._$AM=l}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}v(i){var l;const{el:{content:d},parts:c}=this._$AD,g=((l=i==null?void 0:i.creationScope)!==null&&l!==void 0?l:Ls).importNode(d,!0);xs.currentNode=g;let b=xs.nextNode(),I=0,T=0,k=c[0];for(;k!==void 0;){if(I===k.index){let A;k.type===2?A=new Os(b,b.nextSibling,this,i):k.type===1?A=new k.ctor(b,k.name,k.strings,this,i):k.type===6&&(A=new Oh(b,this,i)),this.u.push(A),k=c[++T]}I!==(k==null?void 0:k.index)&&(b=xs.nextNode(),I++)}return g}p(i){let l=0;for(const d of this.u)d!==void 0&&(d.strings!==void 0?(d._$AI(i,d,l),l+=d.strings.length-2):d._$AI(i[l])),l++}}class Os{constructor(i,l,d,c){var g;this.type=2,this._$AH=Jt,this._$AN=void 0,this._$AA=i,this._$AB=l,this._$AM=d,this.options=c,this._$Cm=(g=c==null?void 0:c.isConnected)===null||g===void 0||g}get _$AU(){var i,l;return(l=(i=this._$AM)===null||i===void 0?void 0:i._$AU)!==null&&l!==void 0?l:this._$Cm}get parentNode(){let i=this._$AA.parentNode;const l=this._$AM;return l!==void 0&&i.nodeType===11&&(i=l.parentNode),i}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(i,l=this){i=pl(this,i,l),Nu(i)?i===Jt||i==null||i===""?(this._$AH!==Jt&&this._$AR(),this._$AH=Jt):i!==this._$AH&&i!==Xi&&this.g(i):i._$litType$!==void 0?this.$(i):i.nodeType!==void 0?this.T(i):wh(i)?this.k(i):this.g(i)}O(i,l=this._$AB){return this._$AA.parentNode.insertBefore(i,l)}T(i){this._$AH!==i&&(this._$AR(),this._$AH=this.O(i))}g(i){this._$AH!==Jt&&Nu(this._$AH)?this._$AA.nextSibling.data=i:this.T(Ls.createTextNode(i)),this._$AH=i}$(i){var l;const{values:d,_$litType$:c}=i,g=typeof c=="number"?this._$AC(i):(c.el===void 0&&(c.el=Hu.createElement(c.h,this.options)),c);if(((l=this._$AH)===null||l===void 0?void 0:l._$AD)===g)this._$AH.p(d);else{const b=new _h(g,this),I=b.v(this.options);b.p(d),this.T(I),this._$AH=b}}_$AC(i){let l=Gf.get(i.strings);return l===void 0&&Gf.set(i.strings,l=new Hu(i)),l}k(i){Ch(this._$AH)||(this._$AH=[],this._$AR());const l=this._$AH;let d,c=0;for(const g of i)c===l.length?l.push(d=new Os(this.O(Ru()),this.O(Ru()),this,this.options)):d=l[c],d._$AI(g),c++;c<l.length&&(this._$AR(d&&d._$AB.nextSibling,c),l.length=c)}_$AR(i=this._$AA.nextSibling,l){var d;for((d=this._$AP)===null||d===void 0||d.call(this,!1,!0,l);i&&i!==this._$AB;){const c=i.nextSibling;i.remove(),i=c}}setConnected(i){var l;this._$AM===void 0&&(this._$Cm=i,(l=this._$AP)===null||l===void 0||l.call(this,i))}}class Zu{constructor(i,l,d,c,g){this.type=1,this._$AH=Jt,this._$AN=void 0,this.element=i,this.name=l,this._$AM=c,this.options=g,d.length>2||d[0]!==""||d[1]!==""?(this._$AH=Array(d.length-1).fill(new String),this.strings=d):this._$AH=Jt}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(i,l=this,d,c){const g=this.strings;let b=!1;if(g===void 0)i=pl(this,i,l,0),b=!Nu(i)||i!==this._$AH&&i!==Xi,b&&(this._$AH=i);else{const I=i;let T,k;for(i=g[0],T=0;T<g.length-1;T++)k=pl(this,I[d+T],l,T),k===Xi&&(k=this._$AH[T]),b||(b=!Nu(k)||k!==this._$AH[T]),k===Jt?i=Jt:i!==Jt&&(i+=(k!=null?k:"")+g[T+1]),this._$AH[T]=k}b&&!c&&this.j(i)}j(i){i===Jt?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,i!=null?i:"")}}class Sh extends Zu{constructor(){super(...arguments),this.type=3}j(i){this.element[this.name]=i===Jt?void 0:i}}const Zv=zs?zs.emptyScript:"";class Mh extends Zu{constructor(){super(...arguments),this.type=4}j(i){i&&i!==Jt?this.element.setAttribute(this.name,Zv):this.element.removeAttribute(this.name)}}class kh extends Zu{constructor(i,l,d,c,g){super(i,l,d,c,g),this.type=5}_$AI(i,l=this){var d;if((i=(d=pl(this,i,l,0))!==null&&d!==void 0?d:Jt)===Xi)return;const c=this._$AH,g=i===Jt&&c!==Jt||i.capture!==c.capture||i.once!==c.once||i.passive!==c.passive,b=i!==Jt&&(c===Jt||g);g&&this.element.removeEventListener(this.name,this,c),b&&this.element.addEventListener(this.name,this,i),this._$AH=i}handleEvent(i){var l,d;typeof this._$AH=="function"?this._$AH.call((d=(l=this.options)===null||l===void 0?void 0:l.host)!==null&&d!==void 0?d:this.element,i):this._$AH.handleEvent(i)}}class Oh{constructor(i,l,d){this.element=i,this.type=6,this._$AN=void 0,this._$AM=l,this.options=d}get _$AU(){return this._$AM._$AU}_$AI(i){pl(this,i)}}const Gv={P:"$lit$",A:Po,M:Md,C:1,L:Lh,R:_h,D:wh,V:pl,I:Os,H:Zu,N:Mh,U:kh,B:Sh,F:Oh},Vf=k0.litHtmlPolyfillSupport;Vf==null||Vf(Hu,Os),((sd=k0.litHtmlVersions)!==null&&sd!==void 0?sd:k0.litHtmlVersions=[]).push("2.4.0");const Th=(s,i,l)=>{var d,c;const g=(d=l==null?void 0:l.renderBefore)!==null&&d!==void 0?d:i;let b=g._$litPart$;if(b===void 0){const I=(c=l==null?void 0:l.renderBefore)!==null&&c!==void 0?c:null;g._$litPart$=b=new Os(i.insertBefore(Ru(),I),I,void 0,l!=null?l:{})}return b._$AI(s),b};/**
17
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),Uf=/'/g,Zf=/"/g,Sh=/^(?:script|style|textarea|title)$/i,Mh=s=>(i,...l)=>({_$litType$:s,strings:i,values:l}),j=Mh(1),Y=Mh(2),Xi=Symbol.for("lit-noChange"),Jt=Symbol.for("lit-nothing"),Vf=new WeakMap,xs=Ls.createTreeWalker(Ls,129,null,!1),kh=(s,i)=>{const l=s.length-1,d=[];let c,g=i===2?"<svg>":"",b=Ou;for(let T=0;T<l;T++){const k=s[T];let A,B,U=-1,Z=0;for(;Z<k.length&&(b.lastIndex=Z,B=b.exec(k),B!==null);)Z=b.lastIndex,b===Ou?B[1]==="!--"?b=Ff:B[1]!==void 0?b=Wf:B[2]!==void 0?(Sh.test(B[2])&&(c=RegExp("</"+B[2],"g")),b=sl):B[3]!==void 0&&(b=sl):b===sl?B[0]===">"?(b=c!=null?c:Ou,U=-1):B[1]===void 0?U=-2:(U=b.lastIndex-B[2].length,A=B[1],b=B[3]===void 0?sl:B[3]==='"'?Zf:Uf):b===Zf||b===Uf?b=sl:b===Ff||b===Wf?b=Ou:(b=sl,c=void 0);const re=b===sl&&s[T+1].startsWith("/>")?" ":"";g+=b===Ou?k+Kv:U>=0?(d.push(A),k.slice(0,U)+"$lit$"+k.slice(U)+Po+re):k+Po+(U===-2?(d.push(void 0),T):re)}const I=g+(s[l]||"<?>")+(i===2?"</svg>":"");if(!Array.isArray(s)||!s.hasOwnProperty("raw"))throw Error("invalid template strings array");return[Bf!==void 0?Bf.createHTML(I):I,d]};class Hu{constructor({strings:i,_$litType$:l},d){let c;this.parts=[];let g=0,b=0;const I=i.length-1,T=this.parts,[k,A]=kh(i,l);if(this.el=Hu.createElement(k,d),xs.currentNode=this.el.content,l===2){const B=this.el.content,U=B.firstChild;U.remove(),B.append(...U.childNodes)}for(;(c=xs.nextNode())!==null&&T.length<I;){if(c.nodeType===1){if(c.hasAttributes()){const B=[];for(const U of c.getAttributeNames())if(U.endsWith("$lit$")||U.startsWith(Po)){const Z=A[b++];if(B.push(U),Z!==void 0){const re=c.getAttribute(Z.toLowerCase()+"$lit$").split(Po),ve=/([.?@])?(.*)/.exec(Z);T.push({type:1,index:g,name:ve[2],strings:re,ctor:ve[1]==="."?Th:ve[1]==="?"?Eh:ve[1]==="@"?Ph:Zu})}else T.push({type:6,index:g})}for(const U of B)c.removeAttribute(U)}if(Sh.test(c.tagName)){const B=c.textContent.split(Po),U=B.length-1;if(U>0){c.textContent=zs?zs.emptyScript:"";for(let Z=0;Z<U;Z++)c.append(B[Z],Ru()),xs.nextNode(),T.push({type:2,index:++g});c.append(B[U],Ru())}}}else if(c.nodeType===8)if(c.data===Md)T.push({type:2,index:g});else{let B=-1;for(;(B=c.data.indexOf(Po,B+1))!==-1;)T.push({type:7,index:g}),B+=Po.length-1}g++}}static createElement(i,l){const d=Ls.createElement("template");return d.innerHTML=i,d}}function pl(s,i,l=s,d){var c,g,b,I;if(i===Xi)return i;let T=d!==void 0?(c=l._$Co)===null||c===void 0?void 0:c[d]:l._$Cl;const k=Nu(i)?void 0:i._$litDirective$;return(T==null?void 0:T.constructor)!==k&&((g=T==null?void 0:T._$AO)===null||g===void 0||g.call(T,!1),k===void 0?T=void 0:(T=new k(s),T._$AT(s,l,d)),d!==void 0?((b=(I=l)._$Co)!==null&&b!==void 0?b:I._$Co=[])[d]=T:l._$Cl=T),T!==void 0&&(i=pl(s,T._$AS(s,i.values),T,d)),i}class Oh{constructor(i,l){this.u=[],this._$AN=void 0,this._$AD=i,this._$AM=l}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}v(i){var l;const{el:{content:d},parts:c}=this._$AD,g=((l=i==null?void 0:i.creationScope)!==null&&l!==void 0?l:Ls).importNode(d,!0);xs.currentNode=g;let b=xs.nextNode(),I=0,T=0,k=c[0];for(;k!==void 0;){if(I===k.index){let A;k.type===2?A=new Os(b,b.nextSibling,this,i):k.type===1?A=new k.ctor(b,k.name,k.strings,this,i):k.type===6&&(A=new Ih(b,this,i)),this.u.push(A),k=c[++T]}I!==(k==null?void 0:k.index)&&(b=xs.nextNode(),I++)}return g}p(i){let l=0;for(const d of this.u)d!==void 0&&(d.strings!==void 0?(d._$AI(i,d,l),l+=d.strings.length-2):d._$AI(i[l])),l++}}class Os{constructor(i,l,d,c){var g;this.type=2,this._$AH=Jt,this._$AN=void 0,this._$AA=i,this._$AB=l,this._$AM=d,this.options=c,this._$Cm=(g=c==null?void 0:c.isConnected)===null||g===void 0||g}get _$AU(){var i,l;return(l=(i=this._$AM)===null||i===void 0?void 0:i._$AU)!==null&&l!==void 0?l:this._$Cm}get parentNode(){let i=this._$AA.parentNode;const l=this._$AM;return l!==void 0&&i.nodeType===11&&(i=l.parentNode),i}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(i,l=this){i=pl(this,i,l),Nu(i)?i===Jt||i==null||i===""?(this._$AH!==Jt&&this._$AR(),this._$AH=Jt):i!==this._$AH&&i!==Xi&&this.g(i):i._$litType$!==void 0?this.$(i):i.nodeType!==void 0?this.T(i):_h(i)?this.k(i):this.g(i)}O(i,l=this._$AB){return this._$AA.parentNode.insertBefore(i,l)}T(i){this._$AH!==i&&(this._$AR(),this._$AH=this.O(i))}g(i){this._$AH!==Jt&&Nu(this._$AH)?this._$AA.nextSibling.data=i:this.T(Ls.createTextNode(i)),this._$AH=i}$(i){var l;const{values:d,_$litType$:c}=i,g=typeof c=="number"?this._$AC(i):(c.el===void 0&&(c.el=Hu.createElement(c.h,this.options)),c);if(((l=this._$AH)===null||l===void 0?void 0:l._$AD)===g)this._$AH.p(d);else{const b=new Oh(g,this),I=b.v(this.options);b.p(d),this.T(I),this._$AH=b}}_$AC(i){let l=Vf.get(i.strings);return l===void 0&&Vf.set(i.strings,l=new Hu(i)),l}k(i){Lh(this._$AH)||(this._$AH=[],this._$AR());const l=this._$AH;let d,c=0;for(const g of i)c===l.length?l.push(d=new Os(this.O(Ru()),this.O(Ru()),this,this.options)):d=l[c],d._$AI(g),c++;c<l.length&&(this._$AR(d&&d._$AB.nextSibling,c),l.length=c)}_$AR(i=this._$AA.nextSibling,l){var d;for((d=this._$AP)===null||d===void 0||d.call(this,!1,!0,l);i&&i!==this._$AB;){const c=i.nextSibling;i.remove(),i=c}}setConnected(i){var l;this._$AM===void 0&&(this._$Cm=i,(l=this._$AP)===null||l===void 0||l.call(this,i))}}class Zu{constructor(i,l,d,c,g){this.type=1,this._$AH=Jt,this._$AN=void 0,this.element=i,this.name=l,this._$AM=c,this.options=g,d.length>2||d[0]!==""||d[1]!==""?(this._$AH=Array(d.length-1).fill(new String),this.strings=d):this._$AH=Jt}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(i,l=this,d,c){const g=this.strings;let b=!1;if(g===void 0)i=pl(this,i,l,0),b=!Nu(i)||i!==this._$AH&&i!==Xi,b&&(this._$AH=i);else{const I=i;let T,k;for(i=g[0],T=0;T<g.length-1;T++)k=pl(this,I[d+T],l,T),k===Xi&&(k=this._$AH[T]),b||(b=!Nu(k)||k!==this._$AH[T]),k===Jt?i=Jt:i!==Jt&&(i+=(k!=null?k:"")+g[T+1]),this._$AH[T]=k}b&&!c&&this.j(i)}j(i){i===Jt?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,i!=null?i:"")}}class Th extends Zu{constructor(){super(...arguments),this.type=3}j(i){this.element[this.name]=i===Jt?void 0:i}}const Yv=zs?zs.emptyScript:"";class Eh extends Zu{constructor(){super(...arguments),this.type=4}j(i){i&&i!==Jt?this.element.setAttribute(this.name,Yv):this.element.removeAttribute(this.name)}}class Ph extends Zu{constructor(i,l,d,c,g){super(i,l,d,c,g),this.type=5}_$AI(i,l=this){var d;if((i=(d=pl(this,i,l,0))!==null&&d!==void 0?d:Jt)===Xi)return;const c=this._$AH,g=i===Jt&&c!==Jt||i.capture!==c.capture||i.once!==c.once||i.passive!==c.passive,b=i!==Jt&&(c===Jt||g);g&&this.element.removeEventListener(this.name,this,c),b&&this.element.addEventListener(this.name,this,i),this._$AH=i}handleEvent(i){var l,d;typeof this._$AH=="function"?this._$AH.call((d=(l=this.options)===null||l===void 0?void 0:l.host)!==null&&d!==void 0?d:this.element,i):this._$AH.handleEvent(i)}}class Ih{constructor(i,l,d){this.element=i,this.type=6,this._$AN=void 0,this._$AM=l,this.options=d}get _$AU(){return this._$AM._$AU}_$AI(i){pl(this,i)}}const Xv={P:"$lit$",A:Po,M:Md,C:1,L:kh,R:Oh,D:_h,V:pl,I:Os,H:Zu,N:Eh,U:Ph,B:Th,F:Ih},Gf=k0.litHtmlPolyfillSupport;Gf==null||Gf(Hu,Os),((sd=k0.litHtmlVersions)!==null&&sd!==void 0?sd:k0.litHtmlVersions=[]).push("2.4.0");const Ah=(s,i,l)=>{var d,c;const g=(d=l==null?void 0:l.renderBefore)!==null&&d!==void 0?d:i;let b=g._$litPart$;if(b===void 0){const I=(c=l==null?void 0:l.renderBefore)!==null&&c!==void 0?c:null;g._$litPart$=b=new Os(i.insertBefore(Ru(),I),I,void 0,l!=null?l:{})}return b._$AI(s),b};/**
18
18
  * @license
19
19
  * Copyright 2017 Google LLC
20
20
  * SPDX-License-Identifier: BSD-3-Clause
21
- */var ud,cd;class Be extends Cs{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var i,l;const d=super.createRenderRoot();return(i=(l=this.renderOptions).renderBefore)!==null&&i!==void 0||(l.renderBefore=d.firstChild),d}update(i){const l=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(i),this._$Do=Th(l,this.renderRoot,this.renderOptions)}connectedCallback(){var i;super.connectedCallback(),(i=this._$Do)===null||i===void 0||i.setConnected(!0)}disconnectedCallback(){var i;super.disconnectedCallback(),(i=this._$Do)===null||i===void 0||i.setConnected(!1)}render(){return Xi}}Be.finalized=!0,Be._$litElement$=!0,(ud=globalThis.litElementHydrateSupport)===null||ud===void 0||ud.call(globalThis,{LitElement:Be});const qf=globalThis.litElementPolyfillSupport;qf==null||qf({LitElement:Be});((cd=globalThis.litElementVersions)!==null&&cd!==void 0?cd:globalThis.litElementVersions=[]).push("3.2.2");/**
21
+ */var ud,cd;class Be extends Cs{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var i,l;const d=super.createRenderRoot();return(i=(l=this.renderOptions).renderBefore)!==null&&i!==void 0||(l.renderBefore=d.firstChild),d}update(i){const l=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(i),this._$Do=Ah(l,this.renderRoot,this.renderOptions)}connectedCallback(){var i;super.connectedCallback(),(i=this._$Do)===null||i===void 0||i.setConnected(!0)}disconnectedCallback(){var i;super.disconnectedCallback(),(i=this._$Do)===null||i===void 0||i.setConnected(!1)}render(){return Xi}}Be.finalized=!0,Be._$litElement$=!0,(ud=globalThis.litElementHydrateSupport)===null||ud===void 0||ud.call(globalThis,{LitElement:Be});const qf=globalThis.litElementPolyfillSupport;qf==null||qf({LitElement:Be});((cd=globalThis.litElementVersions)!==null&&cd!==void 0?cd:globalThis.litElementVersions=[]).push("3.2.2");/**
22
22
  * @license
23
23
  * Copyright 2017 Google LLC
24
24
  * SPDX-License-Identifier: BSD-3-Clause
25
- */const Gu=s=>i=>typeof i=="function"?((l,d)=>(customElements.define(l,d),d))(s,i):((l,d)=>{const{kind:c,elements:g}=d;return{kind:c,elements:g,finisher(b){customElements.define(l,b)}}})(s,i);/**
25
+ */const Vu=s=>i=>typeof i=="function"?((l,d)=>(customElements.define(l,d),d))(s,i):((l,d)=>{const{kind:c,elements:g}=d;return{kind:c,elements:g,finisher(b){customElements.define(l,b)}}})(s,i);/**
26
26
  * @license
27
27
  * Copyright 2017 Google LLC
28
28
  * SPDX-License-Identifier: BSD-3-Clause
29
- */const Vv=(s,i)=>i.kind==="method"&&i.descriptor&&!("value"in i.descriptor)?{...i,finisher(l){l.createProperty(i.key,s)}}:{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:i.key,initializer(){typeof i.initializer=="function"&&(this[i.key]=i.initializer.call(this))},finisher(l){l.createProperty(i.key,s)}};function R(s){return(i,l)=>l!==void 0?((d,c,g)=>{c.constructor.createProperty(g,d)})(s,i,l):Vv(s,i)}/**
29
+ */const Qv=(s,i)=>i.kind==="method"&&i.descriptor&&!("value"in i.descriptor)?{...i,finisher(l){l.createProperty(i.key,s)}}:{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:i.key,initializer(){typeof i.initializer=="function"&&(this[i.key]=i.initializer.call(this))},finisher(l){l.createProperty(i.key,s)}};function R(s){return(i,l)=>l!==void 0?((d,c,g)=>{c.constructor.createProperty(g,d)})(s,i,l):Qv(s,i)}/**
30
30
  * @license
31
31
  * Copyright 2017 Google LLC
32
32
  * SPDX-License-Identifier: BSD-3-Clause
@@ -42,15 +42,15 @@
42
42
  * @license
43
43
  * Copyright 2017 Google LLC
44
44
  * SPDX-License-Identifier: BSD-3-Clause
45
- */function qv(s){return H0({descriptor:i=>({async get(){var l;return await this.updateComplete,(l=this.renderRoot)===null||l===void 0?void 0:l.querySelector(s)},enumerable:!0,configurable:!0})})}/**
45
+ */function Jv(s){return H0({descriptor:i=>({async get(){var l;return await this.updateComplete,(l=this.renderRoot)===null||l===void 0?void 0:l.querySelector(s)},enumerable:!0,configurable:!0})})}/**
46
46
  * @license
47
47
  * Copyright 2021 Google LLC
48
48
  * SPDX-License-Identifier: BSD-3-Clause
49
- */var dd;const jv=((dd=window.HTMLSlotElement)===null||dd===void 0?void 0:dd.prototype.assignedElements)!=null?(s,i)=>s.assignedElements(i):(s,i)=>s.assignedNodes(i).filter(l=>l.nodeType===Node.ELEMENT_NODE);function Io(s){const{slot:i,selector:l}=s!=null?s:{};return H0({descriptor:d=>({get(){var c;const g="slot"+(i?`[name=${i}]`:":not([name])"),b=(c=this.renderRoot)===null||c===void 0?void 0:c.querySelector(g),I=b!=null?jv(b,s):[];return l?I.filter(T=>T.matches(l)):I},enumerable:!0,configurable:!0})})}/**
49
+ */var dd;const e6=((dd=window.HTMLSlotElement)===null||dd===void 0?void 0:dd.prototype.assignedElements)!=null?(s,i)=>s.assignedElements(i):(s,i)=>s.assignedNodes(i).filter(l=>l.nodeType===Node.ELEMENT_NODE);function Io(s){const{slot:i,selector:l}=s!=null?s:{};return H0({descriptor:d=>({get(){var c;const g="slot"+(i?`[name=${i}]`:":not([name])"),b=(c=this.renderRoot)===null||c===void 0?void 0:c.querySelector(g),I=b!=null?e6(b,s):[];return l?I.filter(T=>T.matches(l)):I},enumerable:!0,configurable:!0})})}/**
50
50
  * @license
51
51
  * Copyright 2017 Google LLC
52
52
  * SPDX-License-Identifier: BSD-3-Clause
53
- */function kd(s,i,l){let d,c=s;return typeof s=="object"?(c=s.slot,d=s):d={flatten:i},l?Io({slot:c,flatten:i,selector:l}):H0({descriptor:g=>({get(){var b,I;const T="slot"+(c?`[name=${c}]`:":not([name])"),k=(b=this.renderRoot)===null||b===void 0?void 0:b.querySelector(T);return(I=k==null?void 0:k.assignedNodes(d))!==null&&I!==void 0?I:[]},enumerable:!0,configurable:!0})})}const Le=s=>`brz-${s.toLowerCase()}`,X=s=>customElements.get(s)?(console.warn(`Breeze UI \u{1F4A8} :: ${s} is already defined! Element registration has been blocked to prevent a crash. Check for duplicate imports of breeze-ui.`),(...i)=>{}):Gu(s);var Kv=Object.defineProperty,Yv=Object.getOwnPropertyDescriptor,Od=(s,i,l,d)=>{for(var c=d>1?void 0:d?Yv(i,l):i,g=s.length-1,b;g>=0;g--)(b=s[g])&&(c=(d?b(i,l,c):b(c))||c);return d&&c&&Kv(i,l,c),c};const Eh=Le("fade-in-out");exports.FadeInOut=class extends Be{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(s){s.target===this&&(this.removed=!this.shown)}render(){return this.removed&&!this.shown?K``:K`<slot></slot>`}};exports.FadeInOut.styles=ce`
53
+ */function kd(s,i,l){let d,c=s;return typeof s=="object"?(c=s.slot,d=s):d={flatten:i},l?Io({slot:c,flatten:i,selector:l}):H0({descriptor:g=>({get(){var b,I;const T="slot"+(c?`[name=${c}]`:":not([name])"),k=(b=this.renderRoot)===null||b===void 0?void 0:b.querySelector(T);return(I=k==null?void 0:k.assignedNodes(d))!==null&&I!==void 0?I:[]},enumerable:!0,configurable:!0})})}const Le=s=>`brz-${s.toLowerCase()}`,X=s=>customElements.get(s)?(console.warn(`Breeze UI \u{1F4A8} :: ${s} is already defined! Element registration has been blocked to prevent a crash. Check for duplicate imports of breeze-ui.`),(...i)=>{}):Vu(s);var t6=Object.defineProperty,r6=Object.getOwnPropertyDescriptor,Od=(s,i,l,d)=>{for(var c=d>1?void 0:d?r6(i,l):i,g=s.length-1,b;g>=0;g--)(b=s[g])&&(c=(d?b(i,l,c):b(c))||c);return d&&c&&t6(i,l,c),c};const $h=Le("fade-in-out");exports.FadeInOut=class extends Be{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(s){s.target===this&&(this.removed=!this.shown)}render(){return this.removed&&!this.shown?j``:j`<slot></slot>`}};exports.FadeInOut.styles=ue`
54
54
  :host {
55
55
  opacity: 0;
56
56
  animation: fade-in 0.3s ease;
@@ -67,7 +67,7 @@
67
67
  opacity: 1;
68
68
  }
69
69
  }
70
- `;Od([R({type:Boolean})],exports.FadeInOut.prototype,"shown",2);Od([R({attribute:!1})],exports.FadeInOut.prototype,"removed",2);exports.FadeInOut=Od([X(Eh)],exports.FadeInOut);/**
70
+ `;Od([R({type:Boolean})],exports.FadeInOut.prototype,"shown",2);Od([R({attribute:!1})],exports.FadeInOut.prototype,"removed",2);exports.FadeInOut=Od([X($h)],exports.FadeInOut);/**
71
71
  * @license
72
72
  * Copyright 2017 Google LLC
73
73
  * SPDX-License-Identifier: BSD-3-Clause
@@ -75,17 +75,17 @@
75
75
  * @license
76
76
  * Copyright 2018 Google LLC
77
77
  * SPDX-License-Identifier: BSD-3-Clause
78
- */const Cn=F0(class extends W0{constructor(s){var i;if(super(s),s.type!==B0.ATTRIBUTE||s.name!=="class"||((i=s.strings)===null||i===void 0?void 0:i.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(s){return" "+Object.keys(s).filter(i=>s[i]).join(" ")+" "}update(s,[i]){var l,d;if(this.nt===void 0){this.nt=new Set,s.strings!==void 0&&(this.st=new Set(s.strings.join(" ").split(/\s/).filter(g=>g!=="")));for(const g in i)i[g]&&!(!((l=this.st)===null||l===void 0)&&l.has(g))&&this.nt.add(g);return this.render(i)}const c=s.element.classList;this.nt.forEach(g=>{g in i||(c.remove(g),this.nt.delete(g))});for(const g in i){const b=!!i[g];b===this.nt.has(g)||((d=this.st)===null||d===void 0?void 0:d.has(g))||(b?(c.add(g),this.nt.add(g)):(c.remove(g),this.nt.delete(g)))}return Xi}});/**
78
+ */const un=F0(class extends W0{constructor(s){var i;if(super(s),s.type!==B0.ATTRIBUTE||s.name!=="class"||((i=s.strings)===null||i===void 0?void 0:i.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(s){return" "+Object.keys(s).filter(i=>s[i]).join(" ")+" "}update(s,[i]){var l,d;if(this.nt===void 0){this.nt=new Set,s.strings!==void 0&&(this.st=new Set(s.strings.join(" ").split(/\s/).filter(g=>g!=="")));for(const g in i)i[g]&&!(!((l=this.st)===null||l===void 0)&&l.has(g))&&this.nt.add(g);return this.render(i)}const c=s.element.classList;this.nt.forEach(g=>{g in i||(c.remove(g),this.nt.delete(g))});for(const g in i){const b=!!i[g];b===this.nt.has(g)||((d=this.st)===null||d===void 0?void 0:d.has(g))||(b?(c.add(g),this.nt.add(g)):(c.remove(g),this.nt.delete(g)))}return Xi}});/**
79
79
  * @license
80
80
  * Copyright 2018 Google LLC
81
81
  * SPDX-License-Identifier: BSD-3-Clause
82
- */const zt=s=>s!=null?s:Jt,gl=(s,i=ce``)=>{const l=ce`
82
+ */const zt=s=>s!=null?s:Jt,gl=(s,i=ue``)=>{const l=ue`
83
83
  outline: var(--brz-outline-color) var(--brz-outline-style)
84
84
  var(--brz-outline-width);
85
85
  outline-offset: var(--brz-outline-offset);
86
86
  transition: var(--brz-outline-transition);
87
87
  ${i};
88
- `;return ce`
88
+ `;return ue`
89
89
  :host ${Ca(s)} {
90
90
  outline-color: transparent;
91
91
  }
@@ -99,7 +99,7 @@
99
99
  ${l};
100
100
  }
101
101
  }
102
- `},Ph=ce`
102
+ `},Dh=ue`
103
103
  background: none;
104
104
  border: 0;
105
105
  border-radius: var(--brz-border-radius-default);
@@ -109,9 +109,9 @@
109
109
  font: inherit;
110
110
  margin: 0;
111
111
  padding: 0;
112
- `,Ih=(s,i=ce``)=>ce`
112
+ `,Rh=(s,i=ue``)=>ue`
113
113
  :host ${Ca(s)} {
114
- ${Ph};
114
+ ${Dh};
115
115
  ${i};
116
116
  }
117
117
 
@@ -120,11 +120,11 @@
120
120
  }
121
121
 
122
122
  ${gl(s)}
123
- `;var wn="top",Qn="bottom",Jn="right",xn="left",U0="auto",Vu=[wn,Qn,Jn,xn],_s="start",Bu="end",Xv="clippingParents",Ah="viewport",Tu="popper",Qv="reference",jf=Vu.reduce(function(s,i){return s.concat([i+"-"+_s,i+"-"+Bu])},[]),$h=[].concat(Vu,[U0]).reduce(function(s,i){return s.concat([i,i+"-"+_s,i+"-"+Bu])},[]),Jv="beforeRead",e6="read",t6="afterRead",r6="beforeMain",n6="main",i6="afterMain",o6="beforeWrite",a6="write",l6="afterWrite",md=[Jv,e6,t6,r6,n6,i6,o6,a6,l6];function Qi(s){return s?(s.nodeName||"").toLowerCase():null}function ei(s){if(s==null)return window;if(s.toString()!=="[object Window]"){var i=s.ownerDocument;return i&&i.defaultView||window}return s}function vl(s){var i=ei(s).Element;return s instanceof i||s instanceof Element}function Nn(s){var i=ei(s).HTMLElement;return s instanceof i||s instanceof HTMLElement}function Td(s){if(typeof ShadowRoot=="undefined")return!1;var i=ei(s).ShadowRoot;return s instanceof i||s instanceof ShadowRoot}function s6(s){var i=s.state;Object.keys(i.elements).forEach(function(l){var d=i.styles[l]||{},c=i.attributes[l]||{},g=i.elements[l];!Nn(g)||!Qi(g)||(Object.assign(g.style,d),Object.keys(c).forEach(function(b){var I=c[b];I===!1?g.removeAttribute(b):g.setAttribute(b,I===!0?"":I)}))})}function u6(s){var i=s.state,l={popper:{position:i.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(i.elements.popper.style,l.popper),i.styles=l,i.elements.arrow&&Object.assign(i.elements.arrow.style,l.arrow),function(){Object.keys(i.elements).forEach(function(d){var c=i.elements[d],g=i.attributes[d]||{},b=Object.keys(i.styles.hasOwnProperty(d)?i.styles[d]:l[d]),I=b.reduce(function(T,k){return T[k]="",T},{});!Nn(c)||!Qi(c)||(Object.assign(c.style,I),Object.keys(g).forEach(function(T){c.removeAttribute(T)}))})}}const c6={name:"applyStyles",enabled:!0,phase:"write",fn:s6,effect:u6,requires:["computeStyles"]};function bi(s){return s.split("-")[0]}var hl=Math.max,O0=Math.min,Ss=Math.round;function yd(){var s=navigator.userAgentData;return s!=null&&s.brands?s.brands.map(function(i){return i.brand+"/"+i.version}).join(" "):navigator.userAgent}function Dh(){return!/^((?!chrome|android).)*safari/i.test(yd())}function Ms(s,i,l){i===void 0&&(i=!1),l===void 0&&(l=!1);var d=s.getBoundingClientRect(),c=1,g=1;i&&Nn(s)&&(c=s.offsetWidth>0&&Ss(d.width)/s.offsetWidth||1,g=s.offsetHeight>0&&Ss(d.height)/s.offsetHeight||1);var b=vl(s)?ei(s):window,I=b.visualViewport,T=!Dh()&&l,k=(d.left+(T&&I?I.offsetLeft:0))/c,A=(d.top+(T&&I?I.offsetTop:0))/g,B=d.width/c,U=d.height/g;return{width:B,height:U,top:A,right:k+B,bottom:A+U,left:k,x:k,y:A}}function Ed(s){var i=Ms(s),l=s.offsetWidth,d=s.offsetHeight;return Math.abs(i.width-l)<=1&&(l=i.width),Math.abs(i.height-d)<=1&&(d=i.height),{x:s.offsetLeft,y:s.offsetTop,width:l,height:d}}function Rh(s,i){var l=i.getRootNode&&i.getRootNode();if(s.contains(i))return!0;if(l&&Td(l)){var d=i;do{if(d&&s.isSameNode(d))return!0;d=d.parentNode||d.host}while(d)}return!1}function mi(s){return ei(s).getComputedStyle(s)}function d6(s){return["table","td","th"].indexOf(Qi(s))>=0}function xa(s){return((vl(s)?s.ownerDocument:s.document)||window.document).documentElement}function Z0(s){return Qi(s)==="html"?s:s.assignedSlot||s.parentNode||(Td(s)?s.host:null)||xa(s)}function Kf(s){return!Nn(s)||mi(s).position==="fixed"?null:s.offsetParent}function f6(s){var i=/firefox/i.test(yd()),l=/Trident/i.test(yd());if(l&&Nn(s)){var d=mi(s);if(d.position==="fixed")return null}var c=Z0(s);for(Td(c)&&(c=c.host);Nn(c)&&["html","body"].indexOf(Qi(c))<0;){var g=mi(c);if(g.transform!=="none"||g.perspective!=="none"||g.contain==="paint"||["transform","perspective"].indexOf(g.willChange)!==-1||i&&g.willChange==="filter"||i&&g.filter&&g.filter!=="none")return c;c=c.parentNode}return null}function qu(s){for(var i=ei(s),l=Kf(s);l&&d6(l)&&mi(l).position==="static";)l=Kf(l);return l&&(Qi(l)==="html"||Qi(l)==="body"&&mi(l).position==="static")?i:l||f6(s)||i}function Pd(s){return["top","bottom"].indexOf(s)>=0?"x":"y"}function $u(s,i,l){return hl(s,O0(i,l))}function h6(s,i,l){var d=$u(s,i,l);return d>l?l:d}function Nh(){return{top:0,right:0,bottom:0,left:0}}function Hh(s){return Object.assign({},Nh(),s)}function Bh(s,i){return i.reduce(function(l,d){return l[d]=s,l},{})}var p6=function(i,l){return i=typeof i=="function"?i(Object.assign({},l.rects,{placement:l.placement})):i,Hh(typeof i!="number"?i:Bh(i,Vu))};function g6(s){var i,l=s.state,d=s.name,c=s.options,g=l.elements.arrow,b=l.modifiersData.popperOffsets,I=bi(l.placement),T=Pd(I),k=[xn,Jn].indexOf(I)>=0,A=k?"height":"width";if(!(!g||!b)){var B=p6(c.padding,l),U=Ed(g),Z=T==="y"?wn:xn,re=T==="y"?Qn:Jn,ve=l.rects.reference[A]+l.rects.reference[T]-b[T]-l.rects.popper[A],ge=b[T]-l.rects.reference[T],Me=qu(g),Te=Me?T==="y"?Me.clientHeight||0:Me.clientWidth||0:0,pe=ve/2-ge/2,de=B[Z],ke=Te-U[A]-B[re],Ee=Te/2-U[A]/2+pe,Ie=$u(de,Ee,ke),je=T;l.modifiersData[d]=(i={},i[je]=Ie,i.centerOffset=Ie-Ee,i)}}function v6(s){var i=s.state,l=s.options,d=l.element,c=d===void 0?"[data-popper-arrow]":d;if(c!=null&&!(typeof c=="string"&&(c=i.elements.popper.querySelector(c),!c))){if({}.NODE_ENV!=="production"&&(Nn(c)||console.error(['Popper: "arrow" element must be an HTMLElement (not an SVGElement).',"To use an SVG arrow, wrap it in an HTMLElement that will be used as","the arrow."].join(" "))),!Rh(i.elements.popper,c)){({}).NODE_ENV!=="production"&&console.error(['Popper: "arrow" modifier\'s `element` must be a child of the popper',"element."].join(" "));return}i.elements.arrow=c}}const b6={name:"arrow",enabled:!0,phase:"main",fn:g6,effect:v6,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ks(s){return s.split("-")[1]}var m6={top:"auto",right:"auto",bottom:"auto",left:"auto"};function y6(s){var i=s.x,l=s.y,d=window,c=d.devicePixelRatio||1;return{x:Ss(i*c)/c||0,y:Ss(l*c)/c||0}}function Yf(s){var i,l=s.popper,d=s.popperRect,c=s.placement,g=s.variation,b=s.offsets,I=s.position,T=s.gpuAcceleration,k=s.adaptive,A=s.roundOffsets,B=s.isFixed,U=b.x,Z=U===void 0?0:U,re=b.y,ve=re===void 0?0:re,ge=typeof A=="function"?A({x:Z,y:ve}):{x:Z,y:ve};Z=ge.x,ve=ge.y;var Me=b.hasOwnProperty("x"),Te=b.hasOwnProperty("y"),pe=xn,de=wn,ke=window;if(k){var Ee=qu(l),Ie="clientHeight",je="clientWidth";if(Ee===ei(l)&&(Ee=xa(l),mi(Ee).position!=="static"&&I==="absolute"&&(Ie="scrollHeight",je="scrollWidth")),Ee=Ee,c===wn||(c===xn||c===Jn)&&g===Bu){de=Qn;var Ye=B&&Ee===ke&&ke.visualViewport?ke.visualViewport.height:Ee[Ie];ve-=Ye-d.height,ve*=T?1:-1}if(c===xn||(c===wn||c===Qn)&&g===Bu){pe=Jn;var be=B&&Ee===ke&&ke.visualViewport?ke.visualViewport.width:Ee[je];Z-=be-d.width,Z*=T?1:-1}}var ye=Object.assign({position:I},k&&m6),Qe=A===!0?y6({x:Z,y:ve}):{x:Z,y:ve};if(Z=Qe.x,ve=Qe.y,T){var G;return Object.assign({},ye,(G={},G[de]=Te?"0":"",G[pe]=Me?"0":"",G.transform=(ke.devicePixelRatio||1)<=1?"translate("+Z+"px, "+ve+"px)":"translate3d("+Z+"px, "+ve+"px, 0)",G))}return Object.assign({},ye,(i={},i[de]=Te?ve+"px":"",i[pe]=Me?Z+"px":"",i.transform="",i))}function C6(s){var i=s.state,l=s.options,d=l.gpuAcceleration,c=d===void 0?!0:d,g=l.adaptive,b=g===void 0?!0:g,I=l.roundOffsets,T=I===void 0?!0:I;if({}.NODE_ENV!=="production"){var k=mi(i.elements.popper).transitionProperty||"";b&&["transform","top","right","bottom","left"].some(function(B){return k.indexOf(B)>=0})&&console.warn(["Popper: Detected CSS transitions on at least one of the following",'CSS properties: "transform", "top", "right", "bottom", "left".',`
123
+ `;var wn="top",Qn="bottom",Jn="right",xn="left",U0="auto",Gu=[wn,Qn,Jn,xn],_s="start",Bu="end",n6="clippingParents",Nh="viewport",Tu="popper",i6="reference",jf=Gu.reduce(function(s,i){return s.concat([i+"-"+_s,i+"-"+Bu])},[]),Hh=[].concat(Gu,[U0]).reduce(function(s,i){return s.concat([i,i+"-"+_s,i+"-"+Bu])},[]),o6="beforeRead",a6="read",l6="afterRead",s6="beforeMain",u6="main",c6="afterMain",d6="beforeWrite",f6="write",h6="afterWrite",md=[o6,a6,l6,s6,u6,c6,d6,f6,h6];function Qi(s){return s?(s.nodeName||"").toLowerCase():null}function ei(s){if(s==null)return window;if(s.toString()!=="[object Window]"){var i=s.ownerDocument;return i&&i.defaultView||window}return s}function vl(s){var i=ei(s).Element;return s instanceof i||s instanceof Element}function Nn(s){var i=ei(s).HTMLElement;return s instanceof i||s instanceof HTMLElement}function Td(s){if(typeof ShadowRoot=="undefined")return!1;var i=ei(s).ShadowRoot;return s instanceof i||s instanceof ShadowRoot}function p6(s){var i=s.state;Object.keys(i.elements).forEach(function(l){var d=i.styles[l]||{},c=i.attributes[l]||{},g=i.elements[l];!Nn(g)||!Qi(g)||(Object.assign(g.style,d),Object.keys(c).forEach(function(b){var I=c[b];I===!1?g.removeAttribute(b):g.setAttribute(b,I===!0?"":I)}))})}function g6(s){var i=s.state,l={popper:{position:i.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(i.elements.popper.style,l.popper),i.styles=l,i.elements.arrow&&Object.assign(i.elements.arrow.style,l.arrow),function(){Object.keys(i.elements).forEach(function(d){var c=i.elements[d],g=i.attributes[d]||{},b=Object.keys(i.styles.hasOwnProperty(d)?i.styles[d]:l[d]),I=b.reduce(function(T,k){return T[k]="",T},{});!Nn(c)||!Qi(c)||(Object.assign(c.style,I),Object.keys(g).forEach(function(T){c.removeAttribute(T)}))})}}const v6={name:"applyStyles",enabled:!0,phase:"write",fn:p6,effect:g6,requires:["computeStyles"]};function bi(s){return s.split("-")[0]}var hl=Math.max,O0=Math.min,Ss=Math.round;function yd(){var s=navigator.userAgentData;return s!=null&&s.brands?s.brands.map(function(i){return i.brand+"/"+i.version}).join(" "):navigator.userAgent}function Bh(){return!/^((?!chrome|android).)*safari/i.test(yd())}function Ms(s,i,l){i===void 0&&(i=!1),l===void 0&&(l=!1);var d=s.getBoundingClientRect(),c=1,g=1;i&&Nn(s)&&(c=s.offsetWidth>0&&Ss(d.width)/s.offsetWidth||1,g=s.offsetHeight>0&&Ss(d.height)/s.offsetHeight||1);var b=vl(s)?ei(s):window,I=b.visualViewport,T=!Bh()&&l,k=(d.left+(T&&I?I.offsetLeft:0))/c,A=(d.top+(T&&I?I.offsetTop:0))/g,B=d.width/c,U=d.height/g;return{width:B,height:U,top:A,right:k+B,bottom:A+U,left:k,x:k,y:A}}function Ed(s){var i=Ms(s),l=s.offsetWidth,d=s.offsetHeight;return Math.abs(i.width-l)<=1&&(l=i.width),Math.abs(i.height-d)<=1&&(d=i.height),{x:s.offsetLeft,y:s.offsetTop,width:l,height:d}}function Fh(s,i){var l=i.getRootNode&&i.getRootNode();if(s.contains(i))return!0;if(l&&Td(l)){var d=i;do{if(d&&s.isSameNode(d))return!0;d=d.parentNode||d.host}while(d)}return!1}function mi(s){return ei(s).getComputedStyle(s)}function b6(s){return["table","td","th"].indexOf(Qi(s))>=0}function xa(s){return((vl(s)?s.ownerDocument:s.document)||window.document).documentElement}function Z0(s){return Qi(s)==="html"?s:s.assignedSlot||s.parentNode||(Td(s)?s.host:null)||xa(s)}function Kf(s){return!Nn(s)||mi(s).position==="fixed"?null:s.offsetParent}function m6(s){var i=/firefox/i.test(yd()),l=/Trident/i.test(yd());if(l&&Nn(s)){var d=mi(s);if(d.position==="fixed")return null}var c=Z0(s);for(Td(c)&&(c=c.host);Nn(c)&&["html","body"].indexOf(Qi(c))<0;){var g=mi(c);if(g.transform!=="none"||g.perspective!=="none"||g.contain==="paint"||["transform","perspective"].indexOf(g.willChange)!==-1||i&&g.willChange==="filter"||i&&g.filter&&g.filter!=="none")return c;c=c.parentNode}return null}function qu(s){for(var i=ei(s),l=Kf(s);l&&b6(l)&&mi(l).position==="static";)l=Kf(l);return l&&(Qi(l)==="html"||Qi(l)==="body"&&mi(l).position==="static")?i:l||m6(s)||i}function Pd(s){return["top","bottom"].indexOf(s)>=0?"x":"y"}function $u(s,i,l){return hl(s,O0(i,l))}function y6(s,i,l){var d=$u(s,i,l);return d>l?l:d}function Wh(){return{top:0,right:0,bottom:0,left:0}}function Uh(s){return Object.assign({},Wh(),s)}function Zh(s,i){return i.reduce(function(l,d){return l[d]=s,l},{})}var C6=function(i,l){return i=typeof i=="function"?i(Object.assign({},l.rects,{placement:l.placement})):i,Uh(typeof i!="number"?i:Zh(i,Gu))};function w6(s){var i,l=s.state,d=s.name,c=s.options,g=l.elements.arrow,b=l.modifiersData.popperOffsets,I=bi(l.placement),T=Pd(I),k=[xn,Jn].indexOf(I)>=0,A=k?"height":"width";if(!(!g||!b)){var B=C6(c.padding,l),U=Ed(g),Z=T==="y"?wn:xn,re=T==="y"?Qn:Jn,ve=l.rects.reference[A]+l.rects.reference[T]-b[T]-l.rects.popper[A],ge=b[T]-l.rects.reference[T],Me=qu(g),Te=Me?T==="y"?Me.clientHeight||0:Me.clientWidth||0:0,pe=ve/2-ge/2,de=B[Z],ke=Te-U[A]-B[re],Ee=Te/2-U[A]/2+pe,Ie=$u(de,Ee,ke),je=T;l.modifiersData[d]=(i={},i[je]=Ie,i.centerOffset=Ie-Ee,i)}}function x6(s){var i=s.state,l=s.options,d=l.element,c=d===void 0?"[data-popper-arrow]":d;if(c!=null&&!(typeof c=="string"&&(c=i.elements.popper.querySelector(c),!c))){if({}.NODE_ENV!=="production"&&(Nn(c)||console.error(['Popper: "arrow" element must be an HTMLElement (not an SVGElement).',"To use an SVG arrow, wrap it in an HTMLElement that will be used as","the arrow."].join(" "))),!Fh(i.elements.popper,c)){({}).NODE_ENV!=="production"&&console.error(['Popper: "arrow" modifier\'s `element` must be a child of the popper',"element."].join(" "));return}i.elements.arrow=c}}const z6={name:"arrow",enabled:!0,phase:"main",fn:w6,effect:x6,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ks(s){return s.split("-")[1]}var L6={top:"auto",right:"auto",bottom:"auto",left:"auto"};function _6(s){var i=s.x,l=s.y,d=window,c=d.devicePixelRatio||1;return{x:Ss(i*c)/c||0,y:Ss(l*c)/c||0}}function Yf(s){var i,l=s.popper,d=s.popperRect,c=s.placement,g=s.variation,b=s.offsets,I=s.position,T=s.gpuAcceleration,k=s.adaptive,A=s.roundOffsets,B=s.isFixed,U=b.x,Z=U===void 0?0:U,re=b.y,ve=re===void 0?0:re,ge=typeof A=="function"?A({x:Z,y:ve}):{x:Z,y:ve};Z=ge.x,ve=ge.y;var Me=b.hasOwnProperty("x"),Te=b.hasOwnProperty("y"),pe=xn,de=wn,ke=window;if(k){var Ee=qu(l),Ie="clientHeight",je="clientWidth";if(Ee===ei(l)&&(Ee=xa(l),mi(Ee).position!=="static"&&I==="absolute"&&(Ie="scrollHeight",je="scrollWidth")),Ee=Ee,c===wn||(c===xn||c===Jn)&&g===Bu){de=Qn;var Ye=B&&Ee===ke&&ke.visualViewport?ke.visualViewport.height:Ee[Ie];ve-=Ye-d.height,ve*=T?1:-1}if(c===xn||(c===wn||c===Qn)&&g===Bu){pe=Jn;var be=B&&Ee===ke&&ke.visualViewport?ke.visualViewport.width:Ee[je];Z-=be-d.width,Z*=T?1:-1}}var ye=Object.assign({position:I},k&&L6),Qe=A===!0?_6({x:Z,y:ve}):{x:Z,y:ve};if(Z=Qe.x,ve=Qe.y,T){var V;return Object.assign({},ye,(V={},V[de]=Te?"0":"",V[pe]=Me?"0":"",V.transform=(ke.devicePixelRatio||1)<=1?"translate("+Z+"px, "+ve+"px)":"translate3d("+Z+"px, "+ve+"px, 0)",V))}return Object.assign({},ye,(i={},i[de]=Te?ve+"px":"",i[pe]=Me?Z+"px":"",i.transform="",i))}function S6(s){var i=s.state,l=s.options,d=l.gpuAcceleration,c=d===void 0?!0:d,g=l.adaptive,b=g===void 0?!0:g,I=l.roundOffsets,T=I===void 0?!0:I;if({}.NODE_ENV!=="production"){var k=mi(i.elements.popper).transitionProperty||"";b&&["transform","top","right","bottom","left"].some(function(B){return k.indexOf(B)>=0})&&console.warn(["Popper: Detected CSS transitions on at least one of the following",'CSS properties: "transform", "top", "right", "bottom", "left".',`
124
124
 
125
125
  `,'Disable the "computeStyles" modifier\'s `adaptive` option to allow',"for smooth transitions, or remove these properties from the CSS","transition declaration on the popper element if only transitioning","opacity or background-color for example.",`
126
126
 
127
- `,"We recommend using the popper element as a wrapper around an inner","element that can have any CSS property transitioned for animations."].join(" "))}var A={placement:bi(i.placement),variation:ks(i.placement),popper:i.elements.popper,popperRect:i.rects.popper,gpuAcceleration:c,isFixed:i.options.strategy==="fixed"};i.modifiersData.popperOffsets!=null&&(i.styles.popper=Object.assign({},i.styles.popper,Yf(Object.assign({},A,{offsets:i.modifiersData.popperOffsets,position:i.options.strategy,adaptive:b,roundOffsets:T})))),i.modifiersData.arrow!=null&&(i.styles.arrow=Object.assign({},i.styles.arrow,Yf(Object.assign({},A,{offsets:i.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:T})))),i.attributes.popper=Object.assign({},i.attributes.popper,{"data-popper-placement":i.placement})}const w6={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:C6,data:{}};var x0={passive:!0};function x6(s){var i=s.state,l=s.instance,d=s.options,c=d.scroll,g=c===void 0?!0:c,b=d.resize,I=b===void 0?!0:b,T=ei(i.elements.popper),k=[].concat(i.scrollParents.reference,i.scrollParents.popper);return g&&k.forEach(function(A){A.addEventListener("scroll",l.update,x0)}),I&&T.addEventListener("resize",l.update,x0),function(){g&&k.forEach(function(A){A.removeEventListener("scroll",l.update,x0)}),I&&T.removeEventListener("resize",l.update,x0)}}const z6={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:x6,data:{}};var L6={left:"right",right:"left",bottom:"top",top:"bottom"};function L0(s){return s.replace(/left|right|bottom|top/g,function(i){return L6[i]})}var _6={start:"end",end:"start"};function Xf(s){return s.replace(/start|end/g,function(i){return _6[i]})}function Id(s){var i=ei(s),l=i.pageXOffset,d=i.pageYOffset;return{scrollLeft:l,scrollTop:d}}function Ad(s){return Ms(xa(s)).left+Id(s).scrollLeft}function S6(s,i){var l=ei(s),d=xa(s),c=l.visualViewport,g=d.clientWidth,b=d.clientHeight,I=0,T=0;if(c){g=c.width,b=c.height;var k=Dh();(k||!k&&i==="fixed")&&(I=c.offsetLeft,T=c.offsetTop)}return{width:g,height:b,x:I+Ad(s),y:T}}function M6(s){var i,l=xa(s),d=Id(s),c=(i=s.ownerDocument)==null?void 0:i.body,g=hl(l.scrollWidth,l.clientWidth,c?c.scrollWidth:0,c?c.clientWidth:0),b=hl(l.scrollHeight,l.clientHeight,c?c.scrollHeight:0,c?c.clientHeight:0),I=-d.scrollLeft+Ad(s),T=-d.scrollTop;return mi(c||l).direction==="rtl"&&(I+=hl(l.clientWidth,c?c.clientWidth:0)-g),{width:g,height:b,x:I,y:T}}function $d(s){var i=mi(s),l=i.overflow,d=i.overflowX,c=i.overflowY;return/auto|scroll|overlay|hidden/.test(l+c+d)}function Fh(s){return["html","body","#document"].indexOf(Qi(s))>=0?s.ownerDocument.body:Nn(s)&&$d(s)?s:Fh(Z0(s))}function Du(s,i){var l;i===void 0&&(i=[]);var d=Fh(s),c=d===((l=s.ownerDocument)==null?void 0:l.body),g=ei(d),b=c?[g].concat(g.visualViewport||[],$d(d)?d:[]):d,I=i.concat(b);return c?I:I.concat(Du(Z0(b)))}function Cd(s){return Object.assign({},s,{left:s.x,top:s.y,right:s.x+s.width,bottom:s.y+s.height})}function k6(s,i){var l=Ms(s,!1,i==="fixed");return l.top=l.top+s.clientTop,l.left=l.left+s.clientLeft,l.bottom=l.top+s.clientHeight,l.right=l.left+s.clientWidth,l.width=s.clientWidth,l.height=s.clientHeight,l.x=l.left,l.y=l.top,l}function Qf(s,i,l){return i===Ah?Cd(S6(s,l)):vl(i)?k6(i,l):Cd(M6(xa(s)))}function O6(s){var i=Du(Z0(s)),l=["absolute","fixed"].indexOf(mi(s).position)>=0,d=l&&Nn(s)?qu(s):s;return vl(d)?i.filter(function(c){return vl(c)&&Rh(c,d)&&Qi(c)!=="body"}):[]}function T6(s,i,l,d){var c=i==="clippingParents"?O6(s):[].concat(i),g=[].concat(c,[l]),b=g[0],I=g.reduce(function(T,k){var A=Qf(s,k,d);return T.top=hl(A.top,T.top),T.right=O0(A.right,T.right),T.bottom=O0(A.bottom,T.bottom),T.left=hl(A.left,T.left),T},Qf(s,b,d));return I.width=I.right-I.left,I.height=I.bottom-I.top,I.x=I.left,I.y=I.top,I}function Wh(s){var i=s.reference,l=s.element,d=s.placement,c=d?bi(d):null,g=d?ks(d):null,b=i.x+i.width/2-l.width/2,I=i.y+i.height/2-l.height/2,T;switch(c){case wn:T={x:b,y:i.y-l.height};break;case Qn:T={x:b,y:i.y+i.height};break;case Jn:T={x:i.x+i.width,y:I};break;case xn:T={x:i.x-l.width,y:I};break;default:T={x:i.x,y:i.y}}var k=c?Pd(c):null;if(k!=null){var A=k==="y"?"height":"width";switch(g){case _s:T[k]=T[k]-(i[A]/2-l[A]/2);break;case Bu:T[k]=T[k]+(i[A]/2-l[A]/2);break}}return T}function Fu(s,i){i===void 0&&(i={});var l=i,d=l.placement,c=d===void 0?s.placement:d,g=l.strategy,b=g===void 0?s.strategy:g,I=l.boundary,T=I===void 0?Xv:I,k=l.rootBoundary,A=k===void 0?Ah:k,B=l.elementContext,U=B===void 0?Tu:B,Z=l.altBoundary,re=Z===void 0?!1:Z,ve=l.padding,ge=ve===void 0?0:ve,Me=Hh(typeof ge!="number"?ge:Bh(ge,Vu)),Te=U===Tu?Qv:Tu,pe=s.rects.popper,de=s.elements[re?Te:U],ke=T6(vl(de)?de:de.contextElement||xa(s.elements.popper),T,A,b),Ee=Ms(s.elements.reference),Ie=Wh({reference:Ee,element:pe,strategy:"absolute",placement:c}),je=Cd(Object.assign({},pe,Ie)),Ye=U===Tu?je:Ee,be={top:ke.top-Ye.top+Me.top,bottom:Ye.bottom-ke.bottom+Me.bottom,left:ke.left-Ye.left+Me.left,right:Ye.right-ke.right+Me.right},ye=s.modifiersData.offset;if(U===Tu&&ye){var Qe=ye[c];Object.keys(be).forEach(function(G){var P=[Jn,Qn].indexOf(G)>=0?1:-1,S=[wn,Qn].indexOf(G)>=0?"y":"x";be[G]+=Qe[S]*P})}return be}function E6(s,i){i===void 0&&(i={});var l=i,d=l.placement,c=l.boundary,g=l.rootBoundary,b=l.padding,I=l.flipVariations,T=l.allowedAutoPlacements,k=T===void 0?$h:T,A=ks(d),B=A?I?jf:jf.filter(function(re){return ks(re)===A}):Vu,U=B.filter(function(re){return k.indexOf(re)>=0});U.length===0&&(U=B,{}.NODE_ENV!=="production"&&console.error(["Popper: The `allowedAutoPlacements` option did not allow any","placements. Ensure the `placement` option matches the variation","of the allowed placements.",'For example, "auto" cannot be used to allow "bottom-start".','Use "auto-start" instead.'].join(" ")));var Z=U.reduce(function(re,ve){return re[ve]=Fu(s,{placement:ve,boundary:c,rootBoundary:g,padding:b})[bi(ve)],re},{});return Object.keys(Z).sort(function(re,ve){return Z[re]-Z[ve]})}function P6(s){if(bi(s)===U0)return[];var i=L0(s);return[Xf(s),i,Xf(i)]}function I6(s){var i=s.state,l=s.options,d=s.name;if(!i.modifiersData[d]._skip){for(var c=l.mainAxis,g=c===void 0?!0:c,b=l.altAxis,I=b===void 0?!0:b,T=l.fallbackPlacements,k=l.padding,A=l.boundary,B=l.rootBoundary,U=l.altBoundary,Z=l.flipVariations,re=Z===void 0?!0:Z,ve=l.allowedAutoPlacements,ge=i.options.placement,Me=bi(ge),Te=Me===ge,pe=T||(Te||!re?[L0(ge)]:P6(ge)),de=[ge].concat(pe).reduce(function(At,at){return At.concat(bi(at)===U0?E6(i,{placement:at,boundary:A,rootBoundary:B,padding:k,flipVariations:re,allowedAutoPlacements:ve}):at)},[]),ke=i.rects.reference,Ee=i.rects.popper,Ie=new Map,je=!0,Ye=de[0],be=0;be<de.length;be++){var ye=de[be],Qe=bi(ye),G=ks(ye)===_s,P=[wn,Qn].indexOf(Qe)>=0,S=P?"width":"height",ee=Fu(i,{placement:ye,boundary:A,rootBoundary:B,altBoundary:U,padding:k}),me=P?G?Jn:xn:G?Qn:wn;ke[S]>Ee[S]&&(me=L0(me));var rt=L0(me),Lt=[];if(g&&Lt.push(ee[Qe]<=0),I&&Lt.push(ee[me]<=0,ee[rt]<=0),Lt.every(function(At){return At})){Ye=ye,je=!1;break}Ie.set(ye,Lt)}if(je)for(var Kt=re?3:1,It=function(at){var _e=de.find(function(Fe){var Ue=Ie.get(Fe);if(Ue)return Ue.slice(0,at).every(function(nt){return nt})});if(_e)return Ye=_e,"break"},Xr=Kt;Xr>0;Xr--){var Ut=It(Xr);if(Ut==="break")break}i.placement!==Ye&&(i.modifiersData[d]._skip=!0,i.placement=Ye,i.reset=!0)}}const A6={name:"flip",enabled:!0,phase:"main",fn:I6,requiresIfExists:["offset"],data:{_skip:!1}};function Jf(s,i,l){return l===void 0&&(l={x:0,y:0}),{top:s.top-i.height-l.y,right:s.right-i.width+l.x,bottom:s.bottom-i.height+l.y,left:s.left-i.width-l.x}}function eh(s){return[wn,Jn,Qn,xn].some(function(i){return s[i]>=0})}function $6(s){var i=s.state,l=s.name,d=i.rects.reference,c=i.rects.popper,g=i.modifiersData.preventOverflow,b=Fu(i,{elementContext:"reference"}),I=Fu(i,{altBoundary:!0}),T=Jf(b,d),k=Jf(I,c,g),A=eh(T),B=eh(k);i.modifiersData[l]={referenceClippingOffsets:T,popperEscapeOffsets:k,isReferenceHidden:A,hasPopperEscaped:B},i.attributes.popper=Object.assign({},i.attributes.popper,{"data-popper-reference-hidden":A,"data-popper-escaped":B})}const D6={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:$6};function R6(s,i,l){var d=bi(s),c=[xn,wn].indexOf(d)>=0?-1:1,g=typeof l=="function"?l(Object.assign({},i,{placement:s})):l,b=g[0],I=g[1];return b=b||0,I=(I||0)*c,[xn,Jn].indexOf(d)>=0?{x:I,y:b}:{x:b,y:I}}function N6(s){var i=s.state,l=s.options,d=s.name,c=l.offset,g=c===void 0?[0,0]:c,b=$h.reduce(function(A,B){return A[B]=R6(B,i.rects,g),A},{}),I=b[i.placement],T=I.x,k=I.y;i.modifiersData.popperOffsets!=null&&(i.modifiersData.popperOffsets.x+=T,i.modifiersData.popperOffsets.y+=k),i.modifiersData[d]=b}const H6={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:N6};function B6(s){var i=s.state,l=s.name;i.modifiersData[l]=Wh({reference:i.rects.reference,element:i.rects.popper,strategy:"absolute",placement:i.placement})}const F6={name:"popperOffsets",enabled:!0,phase:"read",fn:B6,data:{}};function W6(s){return s==="x"?"y":"x"}function U6(s){var i=s.state,l=s.options,d=s.name,c=l.mainAxis,g=c===void 0?!0:c,b=l.altAxis,I=b===void 0?!1:b,T=l.boundary,k=l.rootBoundary,A=l.altBoundary,B=l.padding,U=l.tether,Z=U===void 0?!0:U,re=l.tetherOffset,ve=re===void 0?0:re,ge=Fu(i,{boundary:T,rootBoundary:k,padding:B,altBoundary:A}),Me=bi(i.placement),Te=ks(i.placement),pe=!Te,de=Pd(Me),ke=W6(de),Ee=i.modifiersData.popperOffsets,Ie=i.rects.reference,je=i.rects.popper,Ye=typeof ve=="function"?ve(Object.assign({},i.rects,{placement:i.placement})):ve,be=typeof Ye=="number"?{mainAxis:Ye,altAxis:Ye}:Object.assign({mainAxis:0,altAxis:0},Ye),ye=i.modifiersData.offset?i.modifiersData.offset[i.placement]:null,Qe={x:0,y:0};if(!!Ee){if(g){var G,P=de==="y"?wn:xn,S=de==="y"?Qn:Jn,ee=de==="y"?"height":"width",me=Ee[de],rt=me+ge[P],Lt=me-ge[S],Kt=Z?-je[ee]/2:0,It=Te===_s?Ie[ee]:je[ee],Xr=Te===_s?-je[ee]:-Ie[ee],Ut=i.elements.arrow,At=Z&&Ut?Ed(Ut):{width:0,height:0},at=i.modifiersData["arrow#persistent"]?i.modifiersData["arrow#persistent"].padding:Nh(),_e=at[P],Fe=at[S],Ue=$u(0,Ie[ee],At[ee]),nt=pe?Ie[ee]/2-Kt-Ue-_e-be.mainAxis:It-Ue-_e-be.mainAxis,it=pe?-Ie[ee]/2+Kt+Ue+Fe+be.mainAxis:Xr+Ue+Fe+be.mainAxis,We=i.elements.arrow&&qu(i.elements.arrow),Nt=We?de==="y"?We.clientTop||0:We.clientLeft||0:0,$r=(G=ye==null?void 0:ye[de])!=null?G:0,Yt=me+nt-$r-Nt,Ke=me+it-$r,ht=$u(Z?O0(rt,Yt):rt,me,Z?hl(Lt,Ke):Lt);Ee[de]=ht,Qe[de]=ht-me}if(I){var wt,Lr=de==="x"?wn:xn,Gr=de==="x"?Qn:Jn,er=Ee[ke],et=ke==="y"?"height":"width",W=er+ge[Lr],ae=er-ge[Gr],j=[wn,xn].indexOf(Me)!==-1,Xe=(wt=ye==null?void 0:ye[ke])!=null?wt:0,tr=j?W:er-Ie[et]-je[et]-Xe+be.altAxis,pr=j?er+Ie[et]+je[et]-Xe-be.altAxis:ae,Ln=Z&&j?h6(tr,er,pr):$u(Z?tr:W,er,Z?pr:ae);Ee[ke]=Ln,Qe[ke]=Ln-er}i.modifiersData[d]=Qe}}const Z6={name:"preventOverflow",enabled:!0,phase:"main",fn:U6,requiresIfExists:["offset"]};function G6(s){return{scrollLeft:s.scrollLeft,scrollTop:s.scrollTop}}function V6(s){return s===ei(s)||!Nn(s)?Id(s):G6(s)}function q6(s){var i=s.getBoundingClientRect(),l=Ss(i.width)/s.offsetWidth||1,d=Ss(i.height)/s.offsetHeight||1;return l!==1||d!==1}function j6(s,i,l){l===void 0&&(l=!1);var d=Nn(i),c=Nn(i)&&q6(i),g=xa(i),b=Ms(s,c,l),I={scrollLeft:0,scrollTop:0},T={x:0,y:0};return(d||!d&&!l)&&((Qi(i)!=="body"||$d(g))&&(I=V6(i)),Nn(i)?(T=Ms(i,!0),T.x+=i.clientLeft,T.y+=i.clientTop):g&&(T.x=Ad(g))),{x:b.left+I.scrollLeft-T.x,y:b.top+I.scrollTop-T.y,width:b.width,height:b.height}}function K6(s){var i=new Map,l=new Set,d=[];s.forEach(function(g){i.set(g.name,g)});function c(g){l.add(g.name);var b=[].concat(g.requires||[],g.requiresIfExists||[]);b.forEach(function(I){if(!l.has(I)){var T=i.get(I);T&&c(T)}}),d.push(g)}return s.forEach(function(g){l.has(g.name)||c(g)}),d}function Y6(s){var i=K6(s);return md.reduce(function(l,d){return l.concat(i.filter(function(c){return c.phase===d}))},[])}function X6(s){var i;return function(){return i||(i=new Promise(function(l){Promise.resolve().then(function(){i=void 0,l(s())})})),i}}function ma(s){for(var i=arguments.length,l=new Array(i>1?i-1:0),d=1;d<i;d++)l[d-1]=arguments[d];return[].concat(l).reduce(function(c,g){return c.replace(/%s/,g)},s)}var ul='Popper: modifier "%s" provided an invalid %s property, expected %s but got %s',Q6='Popper: modifier "%s" requires "%s", but "%s" modifier is not available',th=["name","enabled","phase","fn","effect","requires","options"];function J6(s){s.forEach(function(i){[].concat(Object.keys(i),th).filter(function(l,d,c){return c.indexOf(l)===d}).forEach(function(l){switch(l){case"name":typeof i.name!="string"&&console.error(ma(ul,String(i.name),'"name"','"string"','"'+String(i.name)+'"'));break;case"enabled":typeof i.enabled!="boolean"&&console.error(ma(ul,i.name,'"enabled"','"boolean"','"'+String(i.enabled)+'"'));break;case"phase":md.indexOf(i.phase)<0&&console.error(ma(ul,i.name,'"phase"',"either "+md.join(", "),'"'+String(i.phase)+'"'));break;case"fn":typeof i.fn!="function"&&console.error(ma(ul,i.name,'"fn"','"function"','"'+String(i.fn)+'"'));break;case"effect":i.effect!=null&&typeof i.effect!="function"&&console.error(ma(ul,i.name,'"effect"','"function"','"'+String(i.fn)+'"'));break;case"requires":i.requires!=null&&!Array.isArray(i.requires)&&console.error(ma(ul,i.name,'"requires"','"array"','"'+String(i.requires)+'"'));break;case"requiresIfExists":Array.isArray(i.requiresIfExists)||console.error(ma(ul,i.name,'"requiresIfExists"','"array"','"'+String(i.requiresIfExists)+'"'));break;case"options":case"data":break;default:console.error('PopperJS: an invalid property has been provided to the "'+i.name+'" modifier, valid properties are '+th.map(function(d){return'"'+d+'"'}).join(", ")+'; but "'+l+'" was provided.')}i.requires&&i.requires.forEach(function(d){s.find(function(c){return c.name===d})==null&&console.error(ma(Q6,String(i.name),d,d))})})})}function e3(s,i){var l=new Set;return s.filter(function(d){var c=i(d);if(!l.has(c))return l.add(c),!0})}function t3(s){var i=s.reduce(function(l,d){var c=l[d.name];return l[d.name]=c?Object.assign({},c,d,{options:Object.assign({},c.options,d.options),data:Object.assign({},c.data,d.data)}):d,l},{});return Object.keys(i).map(function(l){return i[l]})}var rh="Popper: Invalid reference or popper argument provided. They must be either a DOM element or virtual element.",r3="Popper: An infinite loop in the modifiers cycle has been detected! The cycle has been interrupted to prevent a browser crash.",nh={placement:"bottom",modifiers:[],strategy:"absolute"};function ih(){for(var s=arguments.length,i=new Array(s),l=0;l<s;l++)i[l]=arguments[l];return!i.some(function(d){return!(d&&typeof d.getBoundingClientRect=="function")})}function n3(s){s===void 0&&(s={});var i=s,l=i.defaultModifiers,d=l===void 0?[]:l,c=i.defaultOptions,g=c===void 0?nh:c;return function(I,T,k){k===void 0&&(k=g);var A={placement:"bottom",orderedModifiers:[],options:Object.assign({},nh,g),modifiersData:{},elements:{reference:I,popper:T},attributes:{},styles:{}},B=[],U=!1,Z={state:A,setOptions:function(Me){var Te=typeof Me=="function"?Me(A.options):Me;ve(),A.options=Object.assign({},g,A.options,Te),A.scrollParents={reference:vl(I)?Du(I):I.contextElement?Du(I.contextElement):[],popper:Du(T)};var pe=Y6(t3([].concat(d,A.options.modifiers)));if(A.orderedModifiers=pe.filter(function(ye){return ye.enabled}),{}.NODE_ENV!=="production"){var de=e3([].concat(pe,A.options.modifiers),function(ye){var Qe=ye.name;return Qe});if(J6(de),bi(A.options.placement)===U0){var ke=A.orderedModifiers.find(function(ye){var Qe=ye.name;return Qe==="flip"});ke||console.error(['Popper: "auto" placements require the "flip" modifier be',"present and enabled to work."].join(" "))}var Ee=mi(T),Ie=Ee.marginTop,je=Ee.marginRight,Ye=Ee.marginBottom,be=Ee.marginLeft;[Ie,je,Ye,be].some(function(ye){return parseFloat(ye)})&&console.warn(['Popper: CSS "margin" styles cannot be used to apply padding',"between the popper and its reference element or boundary.","To replicate margin, use the `offset` modifier, as well as","the `padding` option in the `preventOverflow` and `flip`","modifiers."].join(" "))}return re(),Z.update()},forceUpdate:function(){if(!U){var Me=A.elements,Te=Me.reference,pe=Me.popper;if(!ih(Te,pe)){({}).NODE_ENV!=="production"&&console.error(rh);return}A.rects={reference:j6(Te,qu(pe),A.options.strategy==="fixed"),popper:Ed(pe)},A.reset=!1,A.placement=A.options.placement,A.orderedModifiers.forEach(function(ye){return A.modifiersData[ye.name]=Object.assign({},ye.data)});for(var de=0,ke=0;ke<A.orderedModifiers.length;ke++){if({}.NODE_ENV!=="production"&&(de+=1,de>100)){console.error(r3);break}if(A.reset===!0){A.reset=!1,ke=-1;continue}var Ee=A.orderedModifiers[ke],Ie=Ee.fn,je=Ee.options,Ye=je===void 0?{}:je,be=Ee.name;typeof Ie=="function"&&(A=Ie({state:A,options:Ye,name:be,instance:Z})||A)}}},update:X6(function(){return new Promise(function(ge){Z.forceUpdate(),ge(A)})}),destroy:function(){ve(),U=!0}};if(!ih(I,T))return{}.NODE_ENV!=="production"&&console.error(rh),Z;Z.setOptions(k).then(function(ge){!U&&k.onFirstUpdate&&k.onFirstUpdate(ge)});function re(){A.orderedModifiers.forEach(function(ge){var Me=ge.name,Te=ge.options,pe=Te===void 0?{}:Te,de=ge.effect;if(typeof de=="function"){var ke=de({state:A,name:Me,instance:Z,options:pe}),Ee=function(){};B.push(ke||Ee)}})}function ve(){B.forEach(function(ge){return ge()}),B=[]}return Z}}var i3=[z6,F6,w6,c6,H6,A6,Z6,b6,D6],o3=n3({defaultModifiers:i3}),a3=Object.defineProperty,l3=Object.getOwnPropertyDescriptor,Wr=(s,i,l,d)=>{for(var c=d>1?void 0:d?l3(i,l):i,g=s.length-1,b;g>=0;g--)(b=s[g])&&(c=(d?b(i,l,c):b(c))||c);return d&&c&&a3(i,l,c),c};let s3=0;const Dd=Le("popover"),Uh=Le("pure-popover"),Zh=["click","hover","focus"],[T0,wd,fl]=Zh,Rd=["dialog","tooltip","menu"],[u3]=Rd;class c3 extends CustomEvent{constructor(i){super(`${Dd}-${i}`,{bubbles:!0,composed:!0})}}exports.PurePopover=class extends Be{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=u3,this.disabled=!1,this.popoverId=`popover-${++s3}`,this.delayTimeout=0}disconnectedCallback(){var s;super.disconnectedCallback(),(s=this.popperInstance)==null||s.destroy()}updatePosition(){var s;(s=this.popperInstance)==null||s.update()}async updated(s){super.updated(s),this.popperInstance=this.popperInstance||o3(this.referenceElement,this.popoverElement,this.popperOptions),await this.setPopperOptions()}get popperOptions(){return{placement:this.placement,strategy:this.isFixed?"fixed":"absolute",modifiers:[{name:"offset",options:{offset:[this.skidding,this.distance]}}]}}async setPopperOptions(){!this.popperInstance||await this.popperInstance.setOptions(this.popperOptions)}get referenceElement(){var i;const s=(i=this.shadowRoot)==null?void 0:i.querySelector("slot");return s==null?void 0:s.assignedElements({flatten:!0})[0]}get contentElement(){var i;const s=(i=this.shadowRoot)==null?void 0:i.querySelector("slot[name=content]");return s==null?void 0:s.assignedNodes({flatten:!0})[0]}get popoverElement(){var s;return(s=this.shadowRoot)==null?void 0:s.querySelector(".popover-container")}emit(s){this.dispatchEvent(new c3(s))}async open(){this.disabled||(this.emit("open"),clearTimeout(this.delayTimeout),this.delayTimeout=window.setTimeout(async()=>{this.isOpen=!0,await this.updateComplete,this.emit("after-open")},this.delayOnOpen))}async close(){this.disabled||(this.emit("close"),clearTimeout(this.delayTimeout),this.delayTimeout=window.setTimeout(async()=>{this.isOpen=!1,await this.updateComplete,this.emit("after-close")},this.delayOnClose))}async toggleIsOpen(){this.isOpen?await this.close():await this.open()}render(){return K`
127
+ `,"We recommend using the popper element as a wrapper around an inner","element that can have any CSS property transitioned for animations."].join(" "))}var A={placement:bi(i.placement),variation:ks(i.placement),popper:i.elements.popper,popperRect:i.rects.popper,gpuAcceleration:c,isFixed:i.options.strategy==="fixed"};i.modifiersData.popperOffsets!=null&&(i.styles.popper=Object.assign({},i.styles.popper,Yf(Object.assign({},A,{offsets:i.modifiersData.popperOffsets,position:i.options.strategy,adaptive:b,roundOffsets:T})))),i.modifiersData.arrow!=null&&(i.styles.arrow=Object.assign({},i.styles.arrow,Yf(Object.assign({},A,{offsets:i.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:T})))),i.attributes.popper=Object.assign({},i.attributes.popper,{"data-popper-placement":i.placement})}const M6={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:S6,data:{}};var x0={passive:!0};function k6(s){var i=s.state,l=s.instance,d=s.options,c=d.scroll,g=c===void 0?!0:c,b=d.resize,I=b===void 0?!0:b,T=ei(i.elements.popper),k=[].concat(i.scrollParents.reference,i.scrollParents.popper);return g&&k.forEach(function(A){A.addEventListener("scroll",l.update,x0)}),I&&T.addEventListener("resize",l.update,x0),function(){g&&k.forEach(function(A){A.removeEventListener("scroll",l.update,x0)}),I&&T.removeEventListener("resize",l.update,x0)}}const O6={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:k6,data:{}};var T6={left:"right",right:"left",bottom:"top",top:"bottom"};function L0(s){return s.replace(/left|right|bottom|top/g,function(i){return T6[i]})}var E6={start:"end",end:"start"};function Xf(s){return s.replace(/start|end/g,function(i){return E6[i]})}function Id(s){var i=ei(s),l=i.pageXOffset,d=i.pageYOffset;return{scrollLeft:l,scrollTop:d}}function Ad(s){return Ms(xa(s)).left+Id(s).scrollLeft}function P6(s,i){var l=ei(s),d=xa(s),c=l.visualViewport,g=d.clientWidth,b=d.clientHeight,I=0,T=0;if(c){g=c.width,b=c.height;var k=Bh();(k||!k&&i==="fixed")&&(I=c.offsetLeft,T=c.offsetTop)}return{width:g,height:b,x:I+Ad(s),y:T}}function I6(s){var i,l=xa(s),d=Id(s),c=(i=s.ownerDocument)==null?void 0:i.body,g=hl(l.scrollWidth,l.clientWidth,c?c.scrollWidth:0,c?c.clientWidth:0),b=hl(l.scrollHeight,l.clientHeight,c?c.scrollHeight:0,c?c.clientHeight:0),I=-d.scrollLeft+Ad(s),T=-d.scrollTop;return mi(c||l).direction==="rtl"&&(I+=hl(l.clientWidth,c?c.clientWidth:0)-g),{width:g,height:b,x:I,y:T}}function $d(s){var i=mi(s),l=i.overflow,d=i.overflowX,c=i.overflowY;return/auto|scroll|overlay|hidden/.test(l+c+d)}function Vh(s){return["html","body","#document"].indexOf(Qi(s))>=0?s.ownerDocument.body:Nn(s)&&$d(s)?s:Vh(Z0(s))}function Du(s,i){var l;i===void 0&&(i=[]);var d=Vh(s),c=d===((l=s.ownerDocument)==null?void 0:l.body),g=ei(d),b=c?[g].concat(g.visualViewport||[],$d(d)?d:[]):d,I=i.concat(b);return c?I:I.concat(Du(Z0(b)))}function Cd(s){return Object.assign({},s,{left:s.x,top:s.y,right:s.x+s.width,bottom:s.y+s.height})}function A6(s,i){var l=Ms(s,!1,i==="fixed");return l.top=l.top+s.clientTop,l.left=l.left+s.clientLeft,l.bottom=l.top+s.clientHeight,l.right=l.left+s.clientWidth,l.width=s.clientWidth,l.height=s.clientHeight,l.x=l.left,l.y=l.top,l}function Qf(s,i,l){return i===Nh?Cd(P6(s,l)):vl(i)?A6(i,l):Cd(I6(xa(s)))}function $6(s){var i=Du(Z0(s)),l=["absolute","fixed"].indexOf(mi(s).position)>=0,d=l&&Nn(s)?qu(s):s;return vl(d)?i.filter(function(c){return vl(c)&&Fh(c,d)&&Qi(c)!=="body"}):[]}function D6(s,i,l,d){var c=i==="clippingParents"?$6(s):[].concat(i),g=[].concat(c,[l]),b=g[0],I=g.reduce(function(T,k){var A=Qf(s,k,d);return T.top=hl(A.top,T.top),T.right=O0(A.right,T.right),T.bottom=O0(A.bottom,T.bottom),T.left=hl(A.left,T.left),T},Qf(s,b,d));return I.width=I.right-I.left,I.height=I.bottom-I.top,I.x=I.left,I.y=I.top,I}function Gh(s){var i=s.reference,l=s.element,d=s.placement,c=d?bi(d):null,g=d?ks(d):null,b=i.x+i.width/2-l.width/2,I=i.y+i.height/2-l.height/2,T;switch(c){case wn:T={x:b,y:i.y-l.height};break;case Qn:T={x:b,y:i.y+i.height};break;case Jn:T={x:i.x+i.width,y:I};break;case xn:T={x:i.x-l.width,y:I};break;default:T={x:i.x,y:i.y}}var k=c?Pd(c):null;if(k!=null){var A=k==="y"?"height":"width";switch(g){case _s:T[k]=T[k]-(i[A]/2-l[A]/2);break;case Bu:T[k]=T[k]+(i[A]/2-l[A]/2);break}}return T}function Fu(s,i){i===void 0&&(i={});var l=i,d=l.placement,c=d===void 0?s.placement:d,g=l.strategy,b=g===void 0?s.strategy:g,I=l.boundary,T=I===void 0?n6:I,k=l.rootBoundary,A=k===void 0?Nh:k,B=l.elementContext,U=B===void 0?Tu:B,Z=l.altBoundary,re=Z===void 0?!1:Z,ve=l.padding,ge=ve===void 0?0:ve,Me=Uh(typeof ge!="number"?ge:Zh(ge,Gu)),Te=U===Tu?i6:Tu,pe=s.rects.popper,de=s.elements[re?Te:U],ke=D6(vl(de)?de:de.contextElement||xa(s.elements.popper),T,A,b),Ee=Ms(s.elements.reference),Ie=Gh({reference:Ee,element:pe,strategy:"absolute",placement:c}),je=Cd(Object.assign({},pe,Ie)),Ye=U===Tu?je:Ee,be={top:ke.top-Ye.top+Me.top,bottom:Ye.bottom-ke.bottom+Me.bottom,left:ke.left-Ye.left+Me.left,right:Ye.right-ke.right+Me.right},ye=s.modifiersData.offset;if(U===Tu&&ye){var Qe=ye[c];Object.keys(be).forEach(function(V){var P=[Jn,Qn].indexOf(V)>=0?1:-1,S=[wn,Qn].indexOf(V)>=0?"y":"x";be[V]+=Qe[S]*P})}return be}function R6(s,i){i===void 0&&(i={});var l=i,d=l.placement,c=l.boundary,g=l.rootBoundary,b=l.padding,I=l.flipVariations,T=l.allowedAutoPlacements,k=T===void 0?Hh:T,A=ks(d),B=A?I?jf:jf.filter(function(re){return ks(re)===A}):Gu,U=B.filter(function(re){return k.indexOf(re)>=0});U.length===0&&(U=B,{}.NODE_ENV!=="production"&&console.error(["Popper: The `allowedAutoPlacements` option did not allow any","placements. Ensure the `placement` option matches the variation","of the allowed placements.",'For example, "auto" cannot be used to allow "bottom-start".','Use "auto-start" instead.'].join(" ")));var Z=U.reduce(function(re,ve){return re[ve]=Fu(s,{placement:ve,boundary:c,rootBoundary:g,padding:b})[bi(ve)],re},{});return Object.keys(Z).sort(function(re,ve){return Z[re]-Z[ve]})}function N6(s){if(bi(s)===U0)return[];var i=L0(s);return[Xf(s),i,Xf(i)]}function H6(s){var i=s.state,l=s.options,d=s.name;if(!i.modifiersData[d]._skip){for(var c=l.mainAxis,g=c===void 0?!0:c,b=l.altAxis,I=b===void 0?!0:b,T=l.fallbackPlacements,k=l.padding,A=l.boundary,B=l.rootBoundary,U=l.altBoundary,Z=l.flipVariations,re=Z===void 0?!0:Z,ve=l.allowedAutoPlacements,ge=i.options.placement,Me=bi(ge),Te=Me===ge,pe=T||(Te||!re?[L0(ge)]:N6(ge)),de=[ge].concat(pe).reduce(function(At,at){return At.concat(bi(at)===U0?R6(i,{placement:at,boundary:A,rootBoundary:B,padding:k,flipVariations:re,allowedAutoPlacements:ve}):at)},[]),ke=i.rects.reference,Ee=i.rects.popper,Ie=new Map,je=!0,Ye=de[0],be=0;be<de.length;be++){var ye=de[be],Qe=bi(ye),V=ks(ye)===_s,P=[wn,Qn].indexOf(Qe)>=0,S=P?"width":"height",ee=Fu(i,{placement:ye,boundary:A,rootBoundary:B,altBoundary:U,padding:k}),me=P?V?Jn:xn:V?Qn:wn;ke[S]>Ee[S]&&(me=L0(me));var rt=L0(me),Lt=[];if(g&&Lt.push(ee[Qe]<=0),I&&Lt.push(ee[me]<=0,ee[rt]<=0),Lt.every(function(At){return At})){Ye=ye,je=!1;break}Ie.set(ye,Lt)}if(je)for(var Kt=re?3:1,It=function(at){var _e=de.find(function(Fe){var Ue=Ie.get(Fe);if(Ue)return Ue.slice(0,at).every(function(nt){return nt})});if(_e)return Ye=_e,"break"},Xr=Kt;Xr>0;Xr--){var Ut=It(Xr);if(Ut==="break")break}i.placement!==Ye&&(i.modifiersData[d]._skip=!0,i.placement=Ye,i.reset=!0)}}const B6={name:"flip",enabled:!0,phase:"main",fn:H6,requiresIfExists:["offset"],data:{_skip:!1}};function Jf(s,i,l){return l===void 0&&(l={x:0,y:0}),{top:s.top-i.height-l.y,right:s.right-i.width+l.x,bottom:s.bottom-i.height+l.y,left:s.left-i.width-l.x}}function eh(s){return[wn,Jn,Qn,xn].some(function(i){return s[i]>=0})}function F6(s){var i=s.state,l=s.name,d=i.rects.reference,c=i.rects.popper,g=i.modifiersData.preventOverflow,b=Fu(i,{elementContext:"reference"}),I=Fu(i,{altBoundary:!0}),T=Jf(b,d),k=Jf(I,c,g),A=eh(T),B=eh(k);i.modifiersData[l]={referenceClippingOffsets:T,popperEscapeOffsets:k,isReferenceHidden:A,hasPopperEscaped:B},i.attributes.popper=Object.assign({},i.attributes.popper,{"data-popper-reference-hidden":A,"data-popper-escaped":B})}const W6={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:F6};function U6(s,i,l){var d=bi(s),c=[xn,wn].indexOf(d)>=0?-1:1,g=typeof l=="function"?l(Object.assign({},i,{placement:s})):l,b=g[0],I=g[1];return b=b||0,I=(I||0)*c,[xn,Jn].indexOf(d)>=0?{x:I,y:b}:{x:b,y:I}}function Z6(s){var i=s.state,l=s.options,d=s.name,c=l.offset,g=c===void 0?[0,0]:c,b=Hh.reduce(function(A,B){return A[B]=U6(B,i.rects,g),A},{}),I=b[i.placement],T=I.x,k=I.y;i.modifiersData.popperOffsets!=null&&(i.modifiersData.popperOffsets.x+=T,i.modifiersData.popperOffsets.y+=k),i.modifiersData[d]=b}const V6={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Z6};function G6(s){var i=s.state,l=s.name;i.modifiersData[l]=Gh({reference:i.rects.reference,element:i.rects.popper,strategy:"absolute",placement:i.placement})}const q6={name:"popperOffsets",enabled:!0,phase:"read",fn:G6,data:{}};function j6(s){return s==="x"?"y":"x"}function K6(s){var i=s.state,l=s.options,d=s.name,c=l.mainAxis,g=c===void 0?!0:c,b=l.altAxis,I=b===void 0?!1:b,T=l.boundary,k=l.rootBoundary,A=l.altBoundary,B=l.padding,U=l.tether,Z=U===void 0?!0:U,re=l.tetherOffset,ve=re===void 0?0:re,ge=Fu(i,{boundary:T,rootBoundary:k,padding:B,altBoundary:A}),Me=bi(i.placement),Te=ks(i.placement),pe=!Te,de=Pd(Me),ke=j6(de),Ee=i.modifiersData.popperOffsets,Ie=i.rects.reference,je=i.rects.popper,Ye=typeof ve=="function"?ve(Object.assign({},i.rects,{placement:i.placement})):ve,be=typeof Ye=="number"?{mainAxis:Ye,altAxis:Ye}:Object.assign({mainAxis:0,altAxis:0},Ye),ye=i.modifiersData.offset?i.modifiersData.offset[i.placement]:null,Qe={x:0,y:0};if(!!Ee){if(g){var V,P=de==="y"?wn:xn,S=de==="y"?Qn:Jn,ee=de==="y"?"height":"width",me=Ee[de],rt=me+ge[P],Lt=me-ge[S],Kt=Z?-je[ee]/2:0,It=Te===_s?Ie[ee]:je[ee],Xr=Te===_s?-je[ee]:-Ie[ee],Ut=i.elements.arrow,At=Z&&Ut?Ed(Ut):{width:0,height:0},at=i.modifiersData["arrow#persistent"]?i.modifiersData["arrow#persistent"].padding:Wh(),_e=at[P],Fe=at[S],Ue=$u(0,Ie[ee],At[ee]),nt=pe?Ie[ee]/2-Kt-Ue-_e-be.mainAxis:It-Ue-_e-be.mainAxis,it=pe?-Ie[ee]/2+Kt+Ue+Fe+be.mainAxis:Xr+Ue+Fe+be.mainAxis,We=i.elements.arrow&&qu(i.elements.arrow),Nt=We?de==="y"?We.clientTop||0:We.clientLeft||0:0,$r=(V=ye==null?void 0:ye[de])!=null?V:0,Yt=me+nt-$r-Nt,Ke=me+it-$r,ht=$u(Z?O0(rt,Yt):rt,me,Z?hl(Lt,Ke):Lt);Ee[de]=ht,Qe[de]=ht-me}if(I){var wt,_r=de==="x"?wn:xn,Vr=de==="x"?Qn:Jn,er=Ee[ke],et=ke==="y"?"height":"width",W=er+ge[_r],ae=er-ge[Vr],K=[wn,xn].indexOf(Me)!==-1,Xe=(wt=ye==null?void 0:ye[ke])!=null?wt:0,tr=K?W:er-Ie[et]-je[et]-Xe+be.altAxis,pr=K?er+Ie[et]+je[et]-Xe-be.altAxis:ae,Ln=Z&&K?y6(tr,er,pr):$u(Z?tr:W,er,Z?pr:ae);Ee[ke]=Ln,Qe[ke]=Ln-er}i.modifiersData[d]=Qe}}const Y6={name:"preventOverflow",enabled:!0,phase:"main",fn:K6,requiresIfExists:["offset"]};function X6(s){return{scrollLeft:s.scrollLeft,scrollTop:s.scrollTop}}function Q6(s){return s===ei(s)||!Nn(s)?Id(s):X6(s)}function J6(s){var i=s.getBoundingClientRect(),l=Ss(i.width)/s.offsetWidth||1,d=Ss(i.height)/s.offsetHeight||1;return l!==1||d!==1}function e3(s,i,l){l===void 0&&(l=!1);var d=Nn(i),c=Nn(i)&&J6(i),g=xa(i),b=Ms(s,c,l),I={scrollLeft:0,scrollTop:0},T={x:0,y:0};return(d||!d&&!l)&&((Qi(i)!=="body"||$d(g))&&(I=Q6(i)),Nn(i)?(T=Ms(i,!0),T.x+=i.clientLeft,T.y+=i.clientTop):g&&(T.x=Ad(g))),{x:b.left+I.scrollLeft-T.x,y:b.top+I.scrollTop-T.y,width:b.width,height:b.height}}function t3(s){var i=new Map,l=new Set,d=[];s.forEach(function(g){i.set(g.name,g)});function c(g){l.add(g.name);var b=[].concat(g.requires||[],g.requiresIfExists||[]);b.forEach(function(I){if(!l.has(I)){var T=i.get(I);T&&c(T)}}),d.push(g)}return s.forEach(function(g){l.has(g.name)||c(g)}),d}function r3(s){var i=t3(s);return md.reduce(function(l,d){return l.concat(i.filter(function(c){return c.phase===d}))},[])}function n3(s){var i;return function(){return i||(i=new Promise(function(l){Promise.resolve().then(function(){i=void 0,l(s())})})),i}}function ma(s){for(var i=arguments.length,l=new Array(i>1?i-1:0),d=1;d<i;d++)l[d-1]=arguments[d];return[].concat(l).reduce(function(c,g){return c.replace(/%s/,g)},s)}var ul='Popper: modifier "%s" provided an invalid %s property, expected %s but got %s',i3='Popper: modifier "%s" requires "%s", but "%s" modifier is not available',th=["name","enabled","phase","fn","effect","requires","options"];function o3(s){s.forEach(function(i){[].concat(Object.keys(i),th).filter(function(l,d,c){return c.indexOf(l)===d}).forEach(function(l){switch(l){case"name":typeof i.name!="string"&&console.error(ma(ul,String(i.name),'"name"','"string"','"'+String(i.name)+'"'));break;case"enabled":typeof i.enabled!="boolean"&&console.error(ma(ul,i.name,'"enabled"','"boolean"','"'+String(i.enabled)+'"'));break;case"phase":md.indexOf(i.phase)<0&&console.error(ma(ul,i.name,'"phase"',"either "+md.join(", "),'"'+String(i.phase)+'"'));break;case"fn":typeof i.fn!="function"&&console.error(ma(ul,i.name,'"fn"','"function"','"'+String(i.fn)+'"'));break;case"effect":i.effect!=null&&typeof i.effect!="function"&&console.error(ma(ul,i.name,'"effect"','"function"','"'+String(i.fn)+'"'));break;case"requires":i.requires!=null&&!Array.isArray(i.requires)&&console.error(ma(ul,i.name,'"requires"','"array"','"'+String(i.requires)+'"'));break;case"requiresIfExists":Array.isArray(i.requiresIfExists)||console.error(ma(ul,i.name,'"requiresIfExists"','"array"','"'+String(i.requiresIfExists)+'"'));break;case"options":case"data":break;default:console.error('PopperJS: an invalid property has been provided to the "'+i.name+'" modifier, valid properties are '+th.map(function(d){return'"'+d+'"'}).join(", ")+'; but "'+l+'" was provided.')}i.requires&&i.requires.forEach(function(d){s.find(function(c){return c.name===d})==null&&console.error(ma(i3,String(i.name),d,d))})})})}function a3(s,i){var l=new Set;return s.filter(function(d){var c=i(d);if(!l.has(c))return l.add(c),!0})}function l3(s){var i=s.reduce(function(l,d){var c=l[d.name];return l[d.name]=c?Object.assign({},c,d,{options:Object.assign({},c.options,d.options),data:Object.assign({},c.data,d.data)}):d,l},{});return Object.keys(i).map(function(l){return i[l]})}var rh="Popper: Invalid reference or popper argument provided. They must be either a DOM element or virtual element.",s3="Popper: An infinite loop in the modifiers cycle has been detected! The cycle has been interrupted to prevent a browser crash.",nh={placement:"bottom",modifiers:[],strategy:"absolute"};function ih(){for(var s=arguments.length,i=new Array(s),l=0;l<s;l++)i[l]=arguments[l];return!i.some(function(d){return!(d&&typeof d.getBoundingClientRect=="function")})}function u3(s){s===void 0&&(s={});var i=s,l=i.defaultModifiers,d=l===void 0?[]:l,c=i.defaultOptions,g=c===void 0?nh:c;return function(I,T,k){k===void 0&&(k=g);var A={placement:"bottom",orderedModifiers:[],options:Object.assign({},nh,g),modifiersData:{},elements:{reference:I,popper:T},attributes:{},styles:{}},B=[],U=!1,Z={state:A,setOptions:function(Me){var Te=typeof Me=="function"?Me(A.options):Me;ve(),A.options=Object.assign({},g,A.options,Te),A.scrollParents={reference:vl(I)?Du(I):I.contextElement?Du(I.contextElement):[],popper:Du(T)};var pe=r3(l3([].concat(d,A.options.modifiers)));if(A.orderedModifiers=pe.filter(function(ye){return ye.enabled}),{}.NODE_ENV!=="production"){var de=a3([].concat(pe,A.options.modifiers),function(ye){var Qe=ye.name;return Qe});if(o3(de),bi(A.options.placement)===U0){var ke=A.orderedModifiers.find(function(ye){var Qe=ye.name;return Qe==="flip"});ke||console.error(['Popper: "auto" placements require the "flip" modifier be',"present and enabled to work."].join(" "))}var Ee=mi(T),Ie=Ee.marginTop,je=Ee.marginRight,Ye=Ee.marginBottom,be=Ee.marginLeft;[Ie,je,Ye,be].some(function(ye){return parseFloat(ye)})&&console.warn(['Popper: CSS "margin" styles cannot be used to apply padding',"between the popper and its reference element or boundary.","To replicate margin, use the `offset` modifier, as well as","the `padding` option in the `preventOverflow` and `flip`","modifiers."].join(" "))}return re(),Z.update()},forceUpdate:function(){if(!U){var Me=A.elements,Te=Me.reference,pe=Me.popper;if(!ih(Te,pe)){({}).NODE_ENV!=="production"&&console.error(rh);return}A.rects={reference:e3(Te,qu(pe),A.options.strategy==="fixed"),popper:Ed(pe)},A.reset=!1,A.placement=A.options.placement,A.orderedModifiers.forEach(function(ye){return A.modifiersData[ye.name]=Object.assign({},ye.data)});for(var de=0,ke=0;ke<A.orderedModifiers.length;ke++){if({}.NODE_ENV!=="production"&&(de+=1,de>100)){console.error(s3);break}if(A.reset===!0){A.reset=!1,ke=-1;continue}var Ee=A.orderedModifiers[ke],Ie=Ee.fn,je=Ee.options,Ye=je===void 0?{}:je,be=Ee.name;typeof Ie=="function"&&(A=Ie({state:A,options:Ye,name:be,instance:Z})||A)}}},update:n3(function(){return new Promise(function(ge){Z.forceUpdate(),ge(A)})}),destroy:function(){ve(),U=!0}};if(!ih(I,T))return{}.NODE_ENV!=="production"&&console.error(rh),Z;Z.setOptions(k).then(function(ge){!U&&k.onFirstUpdate&&k.onFirstUpdate(ge)});function re(){A.orderedModifiers.forEach(function(ge){var Me=ge.name,Te=ge.options,pe=Te===void 0?{}:Te,de=ge.effect;if(typeof de=="function"){var ke=de({state:A,name:Me,instance:Z,options:pe}),Ee=function(){};B.push(ke||Ee)}})}function ve(){B.forEach(function(ge){return ge()}),B=[]}return Z}}var c3=[O6,q6,M6,v6,V6,B6,Y6,z6,W6],d3=u3({defaultModifiers:c3}),f3=Object.defineProperty,h3=Object.getOwnPropertyDescriptor,Wr=(s,i,l,d)=>{for(var c=d>1?void 0:d?h3(i,l):i,g=s.length-1,b;g>=0;g--)(b=s[g])&&(c=(d?b(i,l,c):b(c))||c);return d&&c&&f3(i,l,c),c};let p3=0;const Dd=Le("popover"),qh=Le("pure-popover"),jh=["click","hover","focus"],[T0,wd,fl]=jh,Rd=["dialog","tooltip","menu"],[g3]=Rd;class v3 extends CustomEvent{constructor(i){super(`${Dd}-${i}`,{bubbles:!0,composed:!0})}}exports.PurePopover=class extends Be{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=g3,this.disabled=!1,this.popoverId=`popover-${++p3}`,this.delayTimeout=0}disconnectedCallback(){var s;super.disconnectedCallback(),(s=this.popperInstance)==null||s.destroy()}updatePosition(){var s;(s=this.popperInstance)==null||s.update()}async updated(s){super.updated(s),this.popperInstance=this.popperInstance||d3(this.referenceElement,this.popoverElement,this.popperOptions),await this.setPopperOptions()}get popperOptions(){return{placement:this.placement,strategy:this.isFixed?"fixed":"absolute",modifiers:[{name:"offset",options:{offset:[this.skidding,this.distance]}}]}}async setPopperOptions(){!this.popperInstance||await this.popperInstance.setOptions(this.popperOptions)}get referenceElement(){var i;const s=(i=this.shadowRoot)==null?void 0:i.querySelector("slot");return s==null?void 0:s.assignedElements({flatten:!0})[0]}get contentElement(){var i;const s=(i=this.shadowRoot)==null?void 0:i.querySelector("slot[name=content]");return s==null?void 0:s.assignedNodes({flatten:!0})[0]}get popoverElement(){var s;return(s=this.shadowRoot)==null?void 0:s.querySelector(".popover-container")}emit(s){this.dispatchEvent(new v3(s))}async open(){this.disabled||(this.emit("open"),clearTimeout(this.delayTimeout),this.delayTimeout=window.setTimeout(async()=>{this.isOpen=!0,await this.updateComplete,this.emit("after-open")},this.delayOnOpen))}async close(){this.disabled||(this.emit("close"),clearTimeout(this.delayTimeout),this.delayTimeout=window.setTimeout(async()=>{this.isOpen=!1,await this.updateComplete,this.emit("after-close")},this.delayOnClose))}async toggleIsOpen(){this.isOpen?await this.close():await this.open()}render(){return j`
128
128
  <slot></slot>
129
129
 
130
130
  <brz-fade-in-out ?shown=${this.isOpen} class="popover-container">
@@ -134,7 +134,7 @@
134
134
  </div>
135
135
  </div>
136
136
  </brz-fade-in-out>
137
- `}};exports.PurePopover.styles=ce`
137
+ `}};exports.PurePopover.styles=ue`
138
138
  :host {
139
139
  display: contents;
140
140
  max-width: 100vw; // Probably need a more sensible max width
@@ -143,9 +143,9 @@
143
143
  .popover-container {
144
144
  z-index: var(--brz-z-index-dialog);
145
145
  }
146
- `;Wr([R({type:Number})],exports.PurePopover.prototype,"distance",2);Wr([R({type:Number})],exports.PurePopover.prototype,"skidding",2);Wr([R({type:Number,attribute:"delay-on-close"})],exports.PurePopover.prototype,"delayOnClose",2);Wr([R({type:Number,attribute:"delay-on-open"})],exports.PurePopover.prototype,"delayOnOpen",2);Wr([R({type:Boolean,attribute:"is-fixed"})],exports.PurePopover.prototype,"isFixed",2);Wr([R({type:Boolean,attribute:"is-open",reflect:!0})],exports.PurePopover.prototype,"isOpen",2);Wr([R({type:String})],exports.PurePopover.prototype,"placement",2);Wr([R({type:String,attribute:"popover-role"})],exports.PurePopover.prototype,"popoverRole",2);Wr([R({type:Boolean})],exports.PurePopover.prototype,"disabled",2);Wr([Re()],exports.PurePopover.prototype,"popoverId",2);Wr([Re()],exports.PurePopover.prototype,"popperInstance",2);Wr([Re()],exports.PurePopover.prototype,"delayTimeout",2);exports.PurePopover=Wr([X(Uh)],exports.PurePopover);const E0=["blur","mouseenter","mouseleave","keydown",T0,fl],[fd,d3,f3,h3]=E0;exports.Popover=class extends exports.PurePopover{constructor(){super(),this.trigger="hover focus",this.hasFocus=!1,this.hasPointer=!1,this.listenableEventHandlers={[T0]:this.handleClick,[fl]:this.handleFocus,[fd]:this.handleBlur,[d3]:this.handleMouseEnter,[f3]:this.handleMouseLeave,[h3]: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(){E0.forEach(s=>this.addEventListener(s,this.listenableEventHandlers[s],{capture:[fl,fd].includes(s)})),document.addEventListener("mousedown",this.handleOutsideClick)}teardownListeners(){E0.forEach(s=>this.removeEventListener(s,this.listenableEventHandlers[s],{capture:[fl,fd].includes(s)})),document.removeEventListener("mousedown",this.handleOutsideClick)}get triggers(){return typeof this.trigger=="string"?this.trigger.split(" "):this.trigger}hasTrigger(s){return this.triggers.includes(s)}setFocus(){this.hasFocus=!0}removeFocus(){this.hasFocus=!1}setPointer(){this.hasPointer=!0}removePointer(){this.hasPointer=!1}async handleOutsideClick(s){!this.isOpen||this.contains(s.target)||this.hasPointer||await this.close()}async handleClick(s){var i;if(!(this.isOpen&&((i=this.contentElement)==null?void 0:i.contains(s.target)))){if(!this.hasTrigger(T0))return this.removeFocus();await this.toggleIsOpen()}}async handleFocus(){!this.hasTrigger(fl)||(this.setFocus(),await this.open())}async handleBlur(){!this.hasTrigger(fl)||this.hasPointer||(this.removeFocus(),await this.close())}async handleMouseEnter(){this.setPointer(),!(!this.hasTrigger(wd)||this.hasFocus)&&await this.open()}async handleMouseLeave(){this.removePointer(),!(!this.hasTrigger(wd)||this.hasFocus)&&await this.close()}async handleKeyDown(s){s.stopPropagation(),["Escape","Esc"].includes(s.key)&&await this.close()}};Wr([R({type:String})],exports.Popover.prototype,"trigger",2);Wr([Re()],exports.Popover.prototype,"hasFocus",2);Wr([Re()],exports.Popover.prototype,"hasPointer",2);exports.Popover=Wr([X(Dd)],exports.Popover);var p3=Object.defineProperty,g3=Object.getOwnPropertyDescriptor,Ao=(s,i,l,d)=>{for(var c=d>1?void 0:d?g3(i,l):i,g=s.length-1,b;g>=0;g--)(b=s[g])&&(c=(d?b(i,l,c):b(c))||c);return d&&c&&p3(i,l,c),c};const Gh=Le("tooltip"),[,v3]=Rd;var Vh=(s=>(s[s.dark=0]="dark",s[s.light=1]="light",s))(Vh||{});exports.Tooltip=class extends Be{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 K`
146
+ `;Wr([R({type:Number})],exports.PurePopover.prototype,"distance",2);Wr([R({type:Number})],exports.PurePopover.prototype,"skidding",2);Wr([R({type:Number,attribute:"delay-on-close"})],exports.PurePopover.prototype,"delayOnClose",2);Wr([R({type:Number,attribute:"delay-on-open"})],exports.PurePopover.prototype,"delayOnOpen",2);Wr([R({type:Boolean,attribute:"is-fixed"})],exports.PurePopover.prototype,"isFixed",2);Wr([R({type:Boolean,attribute:"is-open",reflect:!0})],exports.PurePopover.prototype,"isOpen",2);Wr([R({type:String})],exports.PurePopover.prototype,"placement",2);Wr([R({type:String,attribute:"popover-role"})],exports.PurePopover.prototype,"popoverRole",2);Wr([R({type:Boolean})],exports.PurePopover.prototype,"disabled",2);Wr([Re()],exports.PurePopover.prototype,"popoverId",2);Wr([Re()],exports.PurePopover.prototype,"popperInstance",2);Wr([Re()],exports.PurePopover.prototype,"delayTimeout",2);exports.PurePopover=Wr([X(qh)],exports.PurePopover);const E0=["blur","mouseenter","mouseleave","keydown",T0,fl],[fd,b3,m3,y3]=E0;exports.Popover=class extends exports.PurePopover{constructor(){super(),this.trigger="hover focus",this.hasFocus=!1,this.hasPointer=!1,this.listenableEventHandlers={[T0]:this.handleClick,[fl]:this.handleFocus,[fd]:this.handleBlur,[b3]:this.handleMouseEnter,[m3]:this.handleMouseLeave,[y3]: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(){E0.forEach(s=>this.addEventListener(s,this.listenableEventHandlers[s],{capture:[fl,fd].includes(s)})),document.addEventListener("mousedown",this.handleOutsideClick)}teardownListeners(){E0.forEach(s=>this.removeEventListener(s,this.listenableEventHandlers[s],{capture:[fl,fd].includes(s)})),document.removeEventListener("mousedown",this.handleOutsideClick)}get triggers(){return typeof this.trigger=="string"?this.trigger.split(" "):this.trigger}hasTrigger(s){return this.triggers.includes(s)}setFocus(){this.hasFocus=!0}removeFocus(){this.hasFocus=!1}setPointer(){this.hasPointer=!0}removePointer(){this.hasPointer=!1}async handleOutsideClick(s){!this.isOpen||this.contains(s.target)||this.hasPointer||await this.close()}async handleClick(s){var i;if(!(this.isOpen&&((i=this.contentElement)==null?void 0:i.contains(s.target)))){if(!this.hasTrigger(T0))return this.removeFocus();await this.toggleIsOpen()}}async handleFocus(){!this.hasTrigger(fl)||(this.setFocus(),await this.open())}async handleBlur(){!this.hasTrigger(fl)||this.hasPointer||(this.removeFocus(),await this.close())}async handleMouseEnter(){this.setPointer(),!(!this.hasTrigger(wd)||this.hasFocus)&&await this.open()}async handleMouseLeave(){this.removePointer(),!(!this.hasTrigger(wd)||this.hasFocus)&&await this.close()}async handleKeyDown(s){s.stopPropagation(),["Escape","Esc"].includes(s.key)&&await this.close()}};Wr([R({type:String})],exports.Popover.prototype,"trigger",2);Wr([Re()],exports.Popover.prototype,"hasFocus",2);Wr([Re()],exports.Popover.prototype,"hasPointer",2);exports.Popover=Wr([X(Dd)],exports.Popover);var C3=Object.defineProperty,w3=Object.getOwnPropertyDescriptor,Ao=(s,i,l,d)=>{for(var c=d>1?void 0:d?w3(i,l):i,g=s.length-1,b;g>=0;g--)(b=s[g])&&(c=(d?b(i,l,c):b(c))||c);return d&&c&&C3(i,l,c),c};const Kh=Le("tooltip"),[,x3]=Rd;var Yh=(s=>(s[s.dark=0]="dark",s[s.light=1]="light",s))(Yh||{});exports.Tooltip=class extends Be{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 j`
147
147
  <brz-popover
148
- .popoverRole=${v3}
148
+ .popoverRole=${x3}
149
149
  .distance=${8}
150
150
  .delayOnClose=${this.delayOnClose}
151
151
  .delayOnOpen=${this.delayOnOpen}
@@ -157,7 +157,7 @@
157
157
  <slot></slot>
158
158
  <div slot="content">${this.content}</div>
159
159
  </brz-popover>
160
- `}};exports.Tooltip.styles=ce`
160
+ `}};exports.Tooltip.styles=ue`
161
161
  :host div[slot='content'] {
162
162
  border-radius: var(--brz-border-radius-default);
163
163
  box-shadow: var(--brz-box-shadow-menu);
@@ -177,25 +177,25 @@
177
177
  background-color: var(--brz-color-white);
178
178
  color: var(--brz-color-text);
179
179
  }
180
- `;Ao([R({type:Number,attribute:"delay-on-close"})],exports.Tooltip.prototype,"delayOnClose",2);Ao([R({type:Number,attribute:"delay-on-open"})],exports.Tooltip.prototype,"delayOnOpen",2);Ao([R({type:Boolean,attribute:"is-fixed"})],exports.Tooltip.prototype,"isFixed",2);Ao([R({type:String})],exports.Tooltip.prototype,"placement",2);Ao([R({type:String})],exports.Tooltip.prototype,"trigger",2);Ao([R({type:Boolean})],exports.Tooltip.prototype,"disabled",2);Ao([R({type:String})],exports.Tooltip.prototype,"content",2);Ao([R({type:String,reflect:!0})],exports.Tooltip.prototype,"theme",2);exports.Tooltip=Ao([X(Gh)],exports.Tooltip);var b3=Object.defineProperty,m3=Object.getOwnPropertyDescriptor,yi=(s,i,l,d)=>{for(var c=d>1?void 0:d?m3(i,l):i,g=s.length-1,b;g>=0;g--)(b=s[g])&&(c=(d?b(i,l,c):b(c))||c);return d&&c&&b3(i,l,c),c};const qh=Le("avatar"),jh=Le("avatar-group");var P0=(s=>(s[s.tiny=0]="tiny",s[s.small=1]="small",s[s.medium=2]="medium",s[s.large=3]="large",s))(P0||{}),Kh=(s=>(s[s.solid=0]="solid",s[s.subtle=1]="subtle",s[s.border=2]="border",s))(Kh||{});exports.Avatar=class extends Be{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:s}){const i=s==null?void 0:s.assignedElements({flatten:!0});this.slottedElementsCount=i.length}get abbreviatedLabel(){if(!this.label||this.isPlaceholderHidden)return"";const i=P0[this.size]<2?1:2;return this.label.split(" ").slice(0,i).map(l=>l.charAt(0)).join("").toUpperCase()}get iconTemplate(){const s=P0[this.size],i=()=>{switch(s){case 3:return 20;case 2:case 1:return 10;case 0:return 6.5}};return K`
180
+ `;Ao([R({type:Number,attribute:"delay-on-close"})],exports.Tooltip.prototype,"delayOnClose",2);Ao([R({type:Number,attribute:"delay-on-open"})],exports.Tooltip.prototype,"delayOnOpen",2);Ao([R({type:Boolean,attribute:"is-fixed"})],exports.Tooltip.prototype,"isFixed",2);Ao([R({type:String})],exports.Tooltip.prototype,"placement",2);Ao([R({type:String})],exports.Tooltip.prototype,"trigger",2);Ao([R({type:Boolean})],exports.Tooltip.prototype,"disabled",2);Ao([R({type:String})],exports.Tooltip.prototype,"content",2);Ao([R({type:String,reflect:!0})],exports.Tooltip.prototype,"theme",2);exports.Tooltip=Ao([X(Kh)],exports.Tooltip);var z3=Object.defineProperty,L3=Object.getOwnPropertyDescriptor,yi=(s,i,l,d)=>{for(var c=d>1?void 0:d?L3(i,l):i,g=s.length-1,b;g>=0;g--)(b=s[g])&&(c=(d?b(i,l,c):b(c))||c);return d&&c&&z3(i,l,c),c};const Xh=Le("avatar"),Qh=Le("avatar-group");var P0=(s=>(s[s.tiny=0]="tiny",s[s.small=1]="small",s[s.medium=2]="medium",s[s.large=3]="large",s))(P0||{}),Jh=(s=>(s[s.solid=0]="solid",s[s.subtle=1]="subtle",s[s.border=2]="border",s))(Jh||{});exports.Avatar=class extends Be{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:s}){const i=s==null?void 0:s.assignedElements({flatten:!0});this.slottedElementsCount=i.length}get abbreviatedLabel(){if(!this.label||this.isPlaceholderHidden)return"";const i=P0[this.size]<2?1:2;return this.label.split(" ").slice(0,i).map(l=>l.charAt(0)).join("").toUpperCase()}get iconTemplate(){const s=P0[this.size],i=()=>{switch(s){case 3:return 20;case 2:case 1:return 10;case 0:return 6.5}};return j`
181
181
  <span class="icon" aria-label=${this.label}>
182
182
  <brz-icon size=${i()} icon=${zt(this.icon)}></brz-icon>
183
183
  </span>
184
- `}get textTemplate(){return K`
184
+ `}get textTemplate(){return j`
185
185
  <span aria-label=${this.label}>
186
186
  ${this.slottedElementsCount?`+${this.slottedElementsCount}`:this.abbreviatedLabel}
187
187
  </span>
188
- `}get imageTemplate(){return K`<img
188
+ `}get imageTemplate(){return j`<img
189
189
  src=${zt(this.imageSrc)}
190
190
  alt=${this.label}
191
191
  @error=${()=>{console.warn(`An invalid URL or missing resource was provided for the avatar of "${this.label}": ${this.imageSrc}`),this.removeAttribute("image-src")}}
192
- />`}get slotTemplate(){return K`
192
+ />`}get slotTemplate(){return j`
193
193
  <div
194
- class=${Cn({overflow:!0,hidden:!0})}
194
+ class=${un({overflow:!0,hidden:!0})}
195
195
  >
196
196
  <slot @slotchange=${this.handleSlotChange} />
197
197
  </div>
198
- `}get avatarTemplate(){switch(!0){case!!this.imageSrc:return this.imageTemplate;case!!this.icon:return this.iconTemplate;default:return this.textTemplate}}render(){return K`
198
+ `}get avatarTemplate(){switch(!0){case!!this.imageSrc:return this.imageTemplate;case!!this.icon:return this.iconTemplate;default:return this.textTemplate}}render(){return j`
199
199
  <brz-tooltip is-fixed content=${this.label} ?disabled=${this.noTooltip}>
200
200
  <div class="container" tabindex=${this.noTooltip?-1:0}>
201
201
  <div class="avatar">${this.avatarTemplate}</div>
@@ -203,7 +203,7 @@
203
203
  </brz-tooltip>
204
204
 
205
205
  ${this.slotTemplate}
206
- `}};exports.Avatar.styles=ce`
206
+ `}};exports.Avatar.styles=ue`
207
207
  :host {
208
208
  --brz-avatar-background-color: var(--brz-color-neutral-700);
209
209
  --brz-avatar-border-radius: 50%;
@@ -238,7 +238,7 @@
238
238
  width: var(--brz-avatar-diameter);
239
239
  }
240
240
 
241
- ${gl(".container",ce`
241
+ ${gl(".container",ue`
242
242
  z-index: 1;
243
243
  `)}
244
244
 
@@ -337,7 +337,7 @@
337
337
  :host .hidden {
338
338
  display: none;
339
339
  }
340
- `;yi([R({type:Boolean,attribute:"has-outer-border",reflect:!0})],exports.Avatar.prototype,"hasOuterBorder",2);yi([R({type:String,attribute:"icon",reflect:!0})],exports.Avatar.prototype,"icon",2);yi([R({type:String,attribute:"image-src",reflect:!0})],exports.Avatar.prototype,"imageSrc",2);yi([R({type:Boolean,attribute:"is-placeholder-hidden",reflect:!0})],exports.Avatar.prototype,"isPlaceholderHidden",2);yi([R({type:String,attribute:"label",reflect:!0})],exports.Avatar.prototype,"label",2);yi([R({type:Boolean,attribute:"no-tooltip"})],exports.Avatar.prototype,"noTooltip",2);yi([R({type:String,attribute:"size",reflect:!0})],exports.Avatar.prototype,"size",2);yi([R({type:String,attribute:"theme",reflect:!0})],exports.Avatar.prototype,"theme",2);yi([Re()],exports.Avatar.prototype,"slottedElementsCount",2);exports.Avatar=yi([X(qh)],exports.Avatar);exports.AvatarGroup=class extends Be{render(){return K` <div class="container"><slot></slot></div> `}};exports.AvatarGroup.styles=ce`
340
+ `;yi([R({type:Boolean,attribute:"has-outer-border",reflect:!0})],exports.Avatar.prototype,"hasOuterBorder",2);yi([R({type:String,attribute:"icon",reflect:!0})],exports.Avatar.prototype,"icon",2);yi([R({type:String,attribute:"image-src",reflect:!0})],exports.Avatar.prototype,"imageSrc",2);yi([R({type:Boolean,attribute:"is-placeholder-hidden",reflect:!0})],exports.Avatar.prototype,"isPlaceholderHidden",2);yi([R({type:String,attribute:"label",reflect:!0})],exports.Avatar.prototype,"label",2);yi([R({type:Boolean,attribute:"no-tooltip"})],exports.Avatar.prototype,"noTooltip",2);yi([R({type:String,attribute:"size",reflect:!0})],exports.Avatar.prototype,"size",2);yi([R({type:String,attribute:"theme",reflect:!0})],exports.Avatar.prototype,"theme",2);yi([Re()],exports.Avatar.prototype,"slottedElementsCount",2);exports.Avatar=yi([X(Xh)],exports.Avatar);exports.AvatarGroup=class extends Be{render(){return j` <div class="container"><slot></slot></div> `}};exports.AvatarGroup.styles=ue`
341
341
  :host .container {
342
342
  align-items: center;
343
343
  display: inline-flex;
@@ -348,16 +348,16 @@
348
348
  ::slotted(sp-avatar:not(:first-child)) {
349
349
  margin-left: -0.6em;
350
350
  }
351
- `;exports.AvatarGroup=yi([X(jh)],exports.AvatarGroup);const Nd=.25,ju=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20],y3=ju.map(s=>ce`
351
+ `;exports.AvatarGroup=yi([X(Qh)],exports.AvatarGroup);const Nd=.25,ju=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20],_3=ju.map(s=>ue`
352
352
  --brz-spacing-${s}: ${s*Nd}rem;
353
- `),Yh=ce`
353
+ `),ep=ue`
354
354
  :host {
355
355
  --brz-spacing-px: 1px;
356
356
  --brz-spacing-half: ${.5*Nd}rem;
357
357
 
358
- ${Ca(y3.join(""))};
358
+ ${Ca(_3.join(""))};
359
359
  }
360
- `,C3=["m","p"],w3=["x","y"],x3=["t","r","b","l"],z3=C3.flatMap(s=>[s,...w3.map(i=>`${s}${i}`),...x3.map(i=>`${s}${i}`)]),L3=z3.reduce((s,i)=>({...s,[i]:{type:Number,reflect:!0}}),{}),_3=s=>ce`
360
+ `,S3=["m","p"],M3=["x","y"],k3=["t","r","b","l"],O3=S3.flatMap(s=>[s,...M3.map(i=>`${s}${i}`),...k3.map(i=>`${s}${i}`)]),T3=O3.reduce((s,i)=>({...s,[i]:{type:Number,reflect:!0}}),{}),E3=s=>ue`
361
361
  :host([m='${s}']),
362
362
  :host([my='${s}']),
363
363
  :host([mt='${s}']) {
@@ -405,7 +405,7 @@
405
405
  :host([pr='${s}']) {
406
406
  padding-right: var(--brz-spacing-${s});
407
407
  }
408
- `,S3=ju.map(_3),M3=s=>{var l,d;class i extends s{}return i.styles=[(l=s.styles)!=null?l:[],...S3],i.properties={...(d=s.properties)!=null?d:{},...L3},i},Ts=M3(Be);function xd(s,i){if(s){if(s instanceof i)return s;if(s instanceof ShadowRoot)return xd(s.host,i);if("parentNode"in s)return xd(s.parentElement||s.parentNode,i)}return null}const k3=s=>s.viewBox!==void 0,O3={arrowDown:{svg:Y`
408
+ `,P3=ju.map(E3),I3=s=>{var l,d;class i extends s{}return i.styles=[(l=s.styles)!=null?l:[],...P3],i.properties={...(d=s.properties)!=null?d:{},...T3},i},Ts=I3(Be);function xd(s,i){if(s){if(s instanceof i)return s;if(s instanceof ShadowRoot)return xd(s.host,i);if("parentNode"in s)return xd(s.parentElement||s.parentNode,i)}return null}const A3=s=>s.viewBox!==void 0,$3={arrowDown:{svg:Y`
409
409
  <title>Asset 36</title>
410
410
  <g data-name="Layer 2">
411
411
  <g data-name="Layer 1">
@@ -679,7 +679,7 @@
679
679
  C7,14.1,7,14.1,7,14.1z"/>
680
680
  <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
681
681
  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
682
- 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:Y`<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:Y`<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)"/>`}},T3="0 0 18 18",Xh=s=>k3(s)?s:{svg:s,viewBox:T3},Hd={actions:Y`
682
+ 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:Y`<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:Y`<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)"/>`}},D3="0 0 18 18",tp=s=>A3(s)?s:{svg:s,viewBox:D3},Hd={actions:Y`
683
683
  <g stroke="none" stroke-width="1" fill-rule="evenodd">
684
684
  <g transform="translate(-0.002970, 0.000000)">
685
685
  <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>
@@ -1144,7 +1144,7 @@
1144
1144
  <circle class="st0" cx="9" cy="13" r="1"/>
1145
1145
  <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"/>
1146
1146
  </g>
1147
- <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:Y`<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:Y`<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"/>`,...O3},E3=Object.keys(Hd);var P3=Object.defineProperty,I3=Object.getOwnPropertyDescriptor,Bd=(s,i,l,d)=>{for(var c=d>1?void 0:d?I3(i,l):i,g=s.length-1,b;g>=0;g--)(b=s[g])&&(c=(d?b(i,l,c):b(c))||c);return d&&c&&P3(i,l,c),c};const Qh=Le("icon");exports.Icon=class extends Be{constructor(){super(...arguments),this.size=18,this.icon="close"}render(){const{svg:s,viewBox:i}=Xh(Hd[this.icon]);return K`
1147
+ <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:Y`<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:Y`<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"/>`,...$3},R3=Object.keys(Hd);var N3=Object.defineProperty,H3=Object.getOwnPropertyDescriptor,Bd=(s,i,l,d)=>{for(var c=d>1?void 0:d?H3(i,l):i,g=s.length-1,b;g>=0;g--)(b=s[g])&&(c=(d?b(i,l,c):b(c))||c);return d&&c&&N3(i,l,c),c};const rp=Le("icon");exports.Icon=class extends Be{constructor(){super(...arguments),this.size=18,this.icon="close"}render(){const{svg:s,viewBox:i}=tp(Hd[this.icon]);return j`
1148
1148
  <svg
1149
1149
  role="presentation"
1150
1150
  width=${this.size}
@@ -1153,7 +1153,7 @@
1153
1153
  >
1154
1154
  ${s}
1155
1155
  </svg>
1156
- `}};exports.Icon.styles=ce`
1156
+ `}};exports.Icon.styles=ue`
1157
1157
  :host {
1158
1158
  /* to get rid of extra height caused by white space */
1159
1159
  line-height: 0;
@@ -1162,7 +1162,7 @@
1162
1162
  svg {
1163
1163
  fill: currentColor;
1164
1164
  }
1165
- `;Bd([R({type:Number,reflect:!0})],exports.Icon.prototype,"size",2);Bd([R({type:String})],exports.Icon.prototype,"icon",2);exports.Icon=Bd([X(Qh)],exports.Icon);var A3=Object.defineProperty,$3=Object.getOwnPropertyDescriptor,$o=(s,i,l,d)=>{for(var c=d>1?void 0:d?$3(i,l):i,g=s.length-1,b;g>=0;g--)(b=s[g])&&(c=(d?b(i,l,c):b(c))||c);return d&&c&&A3(i,l,c),c};const Jh=Le("link"),ep=Le("link-button"),D3=["a","button"],R3=ce`
1165
+ `;Bd([R({type:Number,reflect:!0})],exports.Icon.prototype,"size",2);Bd([R({type:String})],exports.Icon.prototype,"icon",2);exports.Icon=Bd([X(rp)],exports.Icon);var B3=Object.defineProperty,F3=Object.getOwnPropertyDescriptor,$o=(s,i,l,d)=>{for(var c=d>1?void 0:d?F3(i,l):i,g=s.length-1,b;g>=0;g--)(b=s[g])&&(c=(d?b(i,l,c):b(c))||c);return d&&c&&B3(i,l,c),c};const np=Le("link"),ip=Le("link-button"),W3=["a","button"],U3=ue`
1166
1166
  :host {
1167
1167
  display: inline-flex; /* Avoids the custom element wrapper "padding" the link in some cases */
1168
1168
  align-items: center;
@@ -1170,11 +1170,11 @@
1170
1170
  font-weight: var(--brz-font-weight-medium);
1171
1171
  }
1172
1172
 
1173
- ${gl("a",ce`
1173
+ ${gl("a",ue`
1174
1174
  border-radius: var(--brz-outline-border-radius);
1175
1175
  `)}
1176
1176
 
1177
- ${gl("button",ce`
1177
+ ${gl("button",ue`
1178
1178
  border-radius: var(--brz-outline-border-radius);
1179
1179
  `)}
1180
1180
 
@@ -1196,12 +1196,12 @@
1196
1196
  :host([link-type='secondary']:hover) {
1197
1197
  text-decoration: none;
1198
1198
  }
1199
- `,Fd=ce`
1199
+ `,Fd=ue`
1200
1200
  a {
1201
1201
  color: inherit;
1202
1202
  text-decoration: inherit;
1203
1203
  }
1204
- `,N3=ce`
1204
+ `,Z3=ue`
1205
1205
  button {
1206
1206
  font-family: inherit;
1207
1207
  font-size: inherit;
@@ -1213,7 +1213,7 @@
1213
1213
  color: inherit;
1214
1214
  cursor: pointer;
1215
1215
  }
1216
- `,H3=["primary","secondary"];exports.Link=class extends Be{constructor(){super(...arguments),this.element="a",this.virtual=!1,this.linkType="primary",this.isExternal=!1}handleClick(s){this.virtual&&s.preventDefault()}connectedCallback(){super.connectedCallback(),this.isExternal&&(this.target="_blank")}get externalIcon(){return this.isExternal?K`<brz-icon icon="openLink" size="12"></brz-icon>`:null}get anchorTemplate(){return K`
1216
+ `,V3=["primary","secondary"];exports.Link=class extends Be{constructor(){super(...arguments),this.element="a",this.virtual=!1,this.linkType="primary",this.isExternal=!1}handleClick(s){this.virtual&&s.preventDefault()}connectedCallback(){super.connectedCallback(),this.isExternal&&(this.target="_blank")}get externalIcon(){return this.isExternal?j`<brz-icon icon="openLink" size="12"></brz-icon>`:null}get anchorTemplate(){return j`
1217
1217
  <a
1218
1218
  href=${zt(this.href)}
1219
1219
  target=${zt(this.target)}
@@ -1224,13 +1224,13 @@
1224
1224
  </a>
1225
1225
 
1226
1226
  ${this.externalIcon}
1227
- `}get buttonTemplate(){return K`
1227
+ `}get buttonTemplate(){return j`
1228
1228
  <button type="button" @click=${this.handleClick}>
1229
1229
  <slot></slot>
1230
1230
  </button>
1231
1231
 
1232
1232
  ${this.externalIcon}
1233
- `}render(){switch(this.element){case"button":return this.buttonTemplate;case"a":default:return this.anchorTemplate}}};exports.Link.styles=[Fd,N3,R3];$o([R()],exports.Link.prototype,"element",2);$o([R({type:Boolean,reflect:!0})],exports.Link.prototype,"virtual",2);$o([R({type:String,reflect:!0})],exports.Link.prototype,"href",2);$o([R({type:String,attribute:"link-type",reflect:!0})],exports.Link.prototype,"linkType",2);$o([R({type:String,reflect:!0})],exports.Link.prototype,"target",2);$o([R({type:String,reflect:!0})],exports.Link.prototype,"rel",2);$o([R({type:Boolean,attribute:"is-external",reflect:!0})],exports.Link.prototype,"isExternal",2);exports.Link=$o([X(Jh)],exports.Link);exports.LinkButton=class extends exports.Link{connectedCallback(){super.connectedCallback(),this.element="button"}};exports.LinkButton=$o([X(ep)],exports.LinkButton);var B3=Object.defineProperty,F3=Object.getOwnPropertyDescriptor,G0=(s,i,l,d)=>{for(var c=d>1?void 0:d?F3(i,l):i,g=s.length-1,b;g>=0;g--)(b=s[g])&&(c=(d?b(i,l,c):b(c))||c);return d&&c&&B3(i,l,c),c};const tp=Le("row"),rp=Le("column");exports.Row=class extends Be{constructor(){super(...arguments),this.verticalAlign="top"}render(){return K`<slot></slot>`}};exports.Row.styles=ce`
1233
+ `}render(){switch(this.element){case"button":return this.buttonTemplate;case"a":default:return this.anchorTemplate}}};exports.Link.styles=[Fd,Z3,U3];$o([R()],exports.Link.prototype,"element",2);$o([R({type:Boolean,reflect:!0})],exports.Link.prototype,"virtual",2);$o([R({type:String,reflect:!0})],exports.Link.prototype,"href",2);$o([R({type:String,attribute:"link-type",reflect:!0})],exports.Link.prototype,"linkType",2);$o([R({type:String,reflect:!0})],exports.Link.prototype,"target",2);$o([R({type:String,reflect:!0})],exports.Link.prototype,"rel",2);$o([R({type:Boolean,attribute:"is-external",reflect:!0})],exports.Link.prototype,"isExternal",2);exports.Link=$o([X(np)],exports.Link);exports.LinkButton=class extends exports.Link{connectedCallback(){super.connectedCallback(),this.element="button"}};exports.LinkButton=$o([X(ip)],exports.LinkButton);var G3=Object.defineProperty,q3=Object.getOwnPropertyDescriptor,V0=(s,i,l,d)=>{for(var c=d>1?void 0:d?q3(i,l):i,g=s.length-1,b;g>=0;g--)(b=s[g])&&(c=(d?b(i,l,c):b(c))||c);return d&&c&&G3(i,l,c),c};const op=Le("row"),ap=Le("column");exports.Row=class extends Be{constructor(){super(...arguments),this.verticalAlign="top"}render(){return j`<slot></slot>`}};exports.Row.styles=ue`
1234
1234
  :host {
1235
1235
  display: flex;
1236
1236
  flex-direction: row;
@@ -1250,7 +1250,7 @@
1250
1250
  :host([vertical-align='bottom']) {
1251
1251
  align-items: flex-end;
1252
1252
  }
1253
- `;G0([R({type:String,attribute:"vertical-align",reflect:!0})],exports.Row.prototype,"verticalAlign",2);exports.Row=G0([X(tp)],exports.Row);exports.Column=class extends Be{constructor(){super(...arguments),this.align="left"}render(){return K`<slot></slot>`}};exports.Column.styles=ce`
1253
+ `;V0([R({type:String,attribute:"vertical-align",reflect:!0})],exports.Row.prototype,"verticalAlign",2);exports.Row=V0([X(op)],exports.Row);exports.Column=class extends Be{constructor(){super(...arguments),this.align="left"}render(){return j`<slot></slot>`}};exports.Column.styles=ue`
1254
1254
  :host {
1255
1255
  display: flex;
1256
1256
  flex-direction: column;
@@ -1270,7 +1270,7 @@
1270
1270
  :host([align='right']) {
1271
1271
  align-items: flex-end;
1272
1272
  }
1273
- `;G0([R({type:String})],exports.Column.prototype,"align",2);exports.Column=G0([X(rp)],exports.Column);var W3=Object.defineProperty,U3=Object.getOwnPropertyDescriptor,np=(s,i,l,d)=>{for(var c=d>1?void 0:d?U3(i,l):i,g=s.length-1,b;g>=0;g--)(b=s[g])&&(c=(d?b(i,l,c):b(c))||c);return d&&c&&W3(i,l,c),c};const ip=Le("loading-spinner");exports.LoadingSpinner=class extends Be{constructor(){super(...arguments),this.size=24}render(){return K`
1273
+ `;V0([R({type:String})],exports.Column.prototype,"align",2);exports.Column=V0([X(ap)],exports.Column);var j3=Object.defineProperty,K3=Object.getOwnPropertyDescriptor,lp=(s,i,l,d)=>{for(var c=d>1?void 0:d?K3(i,l):i,g=s.length-1,b;g>=0;g--)(b=s[g])&&(c=(d?b(i,l,c):b(c))||c);return d&&c&&j3(i,l,c),c};const sp=Le("loading-spinner");exports.LoadingSpinner=class extends Be{constructor(){super(...arguments),this.size=24}render(){return j`
1274
1274
  <div class="loading-spinner">
1275
1275
  <svg
1276
1276
  class="loading-spinner--circular"
@@ -1290,7 +1290,7 @@
1290
1290
  />
1291
1291
  </svg>
1292
1292
  </div>
1293
- `}};exports.LoadingSpinner.styles=ce`
1293
+ `}};exports.LoadingSpinner.styles=ue`
1294
1294
  .loading-spinner {
1295
1295
  display: flex;
1296
1296
  justify-content: center;
@@ -1325,8 +1325,8 @@
1325
1325
  stroke-dashoffset: -124px;
1326
1326
  }
1327
1327
  }
1328
- `;np([R({type:Number})],exports.LoadingSpinner.prototype,"size",2);exports.LoadingSpinner=np([X(ip)],exports.LoadingSpinner);var Z3=Object.defineProperty,G3=Object.getOwnPropertyDescriptor,Ur=(s,i,l,d)=>{for(var c=d>1?void 0:d?G3(i,l):i,g=s.length-1,b;g>=0;g--)(b=s[g])&&(c=(d?b(i,l,c):b(c))||c);return d&&c&&Z3(i,l,c),c};const Wd=Le("button"),op=Le("button-group");class V3 extends CustomEvent{constructor(i){super(`${Wd}-${i}`,{bubbles:!0,composed:!0})}}const q3=["primary","secondary","transparent","transparent-primary"];exports.Button=class extends Ts{constructor(){super(...arguments),this.element="button",this.buttonType="primary",this.iconSize=18,this.loading=!1,this.compact=!1,this.disabled=!1,this.iconOnly=!1}connectedCallback(){super.connectedCallback(),this.updateComplete.then(()=>{this.defaultSlot.some(i=>{var l;return!!((l=i.textContent)!=null&&l.replace(`
1329
- `,"").trim())})||(this.iconOnly=!!(this.leadingIcon||this.trailingIcon))})}focus(s){this.buttonElement.focus(s)}emit(s){this.dispatchEvent(new V3(s))}get classes(){return Cn({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 K`
1328
+ `;lp([R({type:Number})],exports.LoadingSpinner.prototype,"size",2);exports.LoadingSpinner=lp([X(sp)],exports.LoadingSpinner);var Y3=Object.defineProperty,X3=Object.getOwnPropertyDescriptor,Ur=(s,i,l,d)=>{for(var c=d>1?void 0:d?X3(i,l):i,g=s.length-1,b;g>=0;g--)(b=s[g])&&(c=(d?b(i,l,c):b(c))||c);return d&&c&&Y3(i,l,c),c};const Wd=Le("button"),up=Le("button-group");class Q3 extends CustomEvent{constructor(i){super(`${Wd}-${i}`,{bubbles:!0,composed:!0})}}const J3=["primary","secondary","transparent","transparent-primary"];exports.Button=class extends Ts{constructor(){super(...arguments),this.element="button",this.buttonType="primary",this.iconSize=18,this.loading=!1,this.compact=!1,this.disabled=!1,this.iconOnly=!1}connectedCallback(){super.connectedCallback(),this.updateComplete.then(()=>{this.defaultSlot.some(i=>{var l;return!!((l=i.textContent)!=null&&l.replace(`
1329
+ `,"").trim())})||(this.iconOnly=!!(this.leadingIcon||this.trailingIcon))})}focus(s){this.buttonElement.focus(s)}emit(s){this.dispatchEvent(new Q3(s))}get classes(){return un({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 j`
1330
1330
  <a
1331
1331
  part="button"
1332
1332
  role="button"
@@ -1340,7 +1340,7 @@
1340
1340
  >
1341
1341
  ${this.innerTemplate}
1342
1342
  </a>
1343
- `}get buttonTemplate(){return K`
1343
+ `}get buttonTemplate(){return j`
1344
1344
  <button
1345
1345
  part="button"
1346
1346
  @click=${this.handleClick}
@@ -1350,16 +1350,16 @@
1350
1350
  >
1351
1351
  ${this.innerTemplate}
1352
1352
  </button>
1353
- `}get innerTemplate(){return K`
1353
+ `}get innerTemplate(){return j`
1354
1354
  <div class="contents" part="contents">
1355
- ${this.leadingIcon?K`<brz-icon
1355
+ ${this.leadingIcon?j`<brz-icon
1356
1356
  part="icon-left"
1357
1357
  class="pre-icon"
1358
1358
  size=${zt(this.iconSize)}
1359
1359
  icon="${this.leadingIcon}"
1360
1360
  ></brz-icon>`:null}
1361
1361
  <slot></slot>
1362
- ${this.trailingIcon?K`<brz-icon
1362
+ ${this.trailingIcon?j`<brz-icon
1363
1363
  part="icon-right"
1364
1364
  class="post-icon"
1365
1365
  size=${zt(this.iconSize)}
@@ -1367,8 +1367,8 @@
1367
1367
  ></brz-icon>`:null}
1368
1368
  </div>
1369
1369
 
1370
- ${this.loading?K`<brz-loading-spinner size="18"></brz-loading-spinner>`:null}
1371
- `}render(){switch(this.element){case"a":return this.anchorTemplate;case"button":default:return this.buttonTemplate}}};var gh;exports.Button.styles=[(gh=Ts.styles)!=null?gh:[],Fd,ce`
1370
+ ${this.loading?j`<brz-loading-spinner size="18"></brz-loading-spinner>`:null}
1371
+ `}render(){switch(this.element){case"a":return this.anchorTemplate;case"button":default:return this.buttonTemplate}}};var yh;exports.Button.styles=[(yh=Ts.styles)!=null?yh:[],Fd,ue`
1372
1372
  :host {
1373
1373
  --brz-button-background-color: transparent;
1374
1374
  --brz-button-border-width: var(--brz-spacing-px);
@@ -1564,9 +1564,9 @@
1564
1564
  color: var(--brz-button-icon-color);
1565
1565
  padding: var(--brz-spacing-px);
1566
1566
  }
1567
- `];Ur([R()],exports.Button.prototype,"element",2);Ur([R({type:String,reflect:!0,attribute:"button-type",noAccessor:!0})],exports.Button.prototype,"buttonType",2);Ur([R({type:String,reflect:!0,attribute:"leading-icon"})],exports.Button.prototype,"leadingIcon",2);Ur([R({type:String,reflect:!0,attribute:"trailing-icon"})],exports.Button.prototype,"trailingIcon",2);Ur([R({type:String,attribute:"icon-size"})],exports.Button.prototype,"iconSize",2);Ur([R({type:Boolean,reflect:!0})],exports.Button.prototype,"loading",2);Ur([R({type:Boolean,reflect:!0})],exports.Button.prototype,"compact",2);Ur([R({type:Boolean,reflect:!0})],exports.Button.prototype,"disabled",2);Ur([R()],exports.Button.prototype,"href",2);Ur([R()],exports.Button.prototype,"target",2);Ur([R()],exports.Button.prototype,"rel",2);Ur([R({type:Boolean,attribute:"icon-only",reflect:!0})],exports.Button.prototype,"iconOnly",2);Ur([Ji("button")],exports.Button.prototype,"buttonElement",2);Ur([kd()],exports.Button.prototype,"defaultSlot",2);exports.Button=Ur([X(Wd)],exports.Button);exports.ButtonGroup=class extends Be{constructor(){super(...arguments),this.compact=!1}render(){return K`<brz-row class=${Cn({compact:this.compact})}
1567
+ `];Ur([R()],exports.Button.prototype,"element",2);Ur([R({type:String,reflect:!0,attribute:"button-type",noAccessor:!0})],exports.Button.prototype,"buttonType",2);Ur([R({type:String,reflect:!0,attribute:"leading-icon"})],exports.Button.prototype,"leadingIcon",2);Ur([R({type:String,reflect:!0,attribute:"trailing-icon"})],exports.Button.prototype,"trailingIcon",2);Ur([R({type:String,attribute:"icon-size"})],exports.Button.prototype,"iconSize",2);Ur([R({type:Boolean,reflect:!0})],exports.Button.prototype,"loading",2);Ur([R({type:Boolean,reflect:!0})],exports.Button.prototype,"compact",2);Ur([R({type:Boolean,reflect:!0})],exports.Button.prototype,"disabled",2);Ur([R()],exports.Button.prototype,"href",2);Ur([R()],exports.Button.prototype,"target",2);Ur([R()],exports.Button.prototype,"rel",2);Ur([R({type:Boolean,attribute:"icon-only",reflect:!0})],exports.Button.prototype,"iconOnly",2);Ur([Ji("button")],exports.Button.prototype,"buttonElement",2);Ur([kd()],exports.Button.prototype,"defaultSlot",2);exports.Button=Ur([X(Wd)],exports.Button);exports.ButtonGroup=class extends Be{constructor(){super(...arguments),this.compact=!1}render(){return j`<brz-row class=${un({compact:this.compact})}
1568
1568
  ><slot></slot
1569
- ></brz-row>`}};exports.ButtonGroup.styles=ce`
1569
+ ></brz-row>`}};exports.ButtonGroup.styles=ue`
1570
1570
  brz-row {
1571
1571
  --brz-row-spacing: var(--brz-spacing-1);
1572
1572
  }
@@ -1583,16 +1583,16 @@
1583
1583
  --brz-button-r-radius: 0;
1584
1584
  --brz-border-r-width: 0;
1585
1585
  }
1586
- `;Ur([R({type:Boolean})],exports.ButtonGroup.prototype,"compact",2);exports.ButtonGroup=Ur([X(op)],exports.ButtonGroup);var ws=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},Wu={exports:{}};/**
1586
+ `;Ur([R({type:Boolean})],exports.ButtonGroup.prototype,"compact",2);exports.ButtonGroup=Ur([X(up)],exports.ButtonGroup);var ws=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},Wu={exports:{}};/**
1587
1587
  * @license
1588
1588
  * Lodash <https://lodash.com/>
1589
1589
  * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
1590
1590
  * Released under MIT license <https://lodash.com/license>
1591
1591
  * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
1592
1592
  * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
1593
- */(function(s,i){(function(){var l,d="4.17.21",c=200,g="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",b="Expected a function",I="Invalid `variable` option passed into `_.template`",T="__lodash_hash_undefined__",k=500,A="__lodash_placeholder__",B=1,U=2,Z=4,re=1,ve=2,ge=1,Me=2,Te=4,pe=8,de=16,ke=32,Ee=64,Ie=128,je=256,Ye=512,be=30,ye="...",Qe=800,G=16,P=1,S=2,ee=3,me=1/0,rt=9007199254740991,Lt=17976931348623157e292,Kt=0/0,It=4294967295,Xr=It-1,Ut=It>>>1,At=[["ary",Ie],["bind",ge],["bindKey",Me],["curry",pe],["curryRight",de],["flip",Ye],["partial",ke],["partialRight",Ee],["rearg",je]],at="[object Arguments]",_e="[object Array]",Fe="[object AsyncFunction]",Ue="[object Boolean]",nt="[object Date]",it="[object DOMException]",We="[object Error]",Nt="[object Function]",$r="[object GeneratorFunction]",Yt="[object Map]",Ke="[object Number]",ht="[object Null]",wt="[object Object]",Lr="[object Promise]",Gr="[object Proxy]",er="[object RegExp]",et="[object Set]",W="[object String]",ae="[object Symbol]",j="[object Undefined]",Xe="[object WeakMap]",tr="[object WeakSet]",pr="[object ArrayBuffer]",Ln="[object DataView]",Dr="[object Float32Array]",Rt="[object Float64Array]",ri="[object Int8Array]",_r="[object Int16Array]",_n="[object Int32Array]",Ne="[object Uint8Array]",Li="[object Uint8ClampedArray]",gr="[object Uint16Array]",Ze="[object Uint32Array]",Vt=/\b__p \+= '';/g,No=/\b(__p \+=) '' \+/g,sr=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Sn=/&(?:amp|lt|gt|quot|#39);/g,ur=/[&<>"']/g,Ho=RegExp(Sn.source),Qr=RegExp(ur.source),io=/<%-([\s\S]+?)%>/g,_i=/<%([\s\S]+?)%>/g,_a=/<%=([\s\S]+?)%>/g,Sa=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Rr=/^\w*$/,wl=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,oo=/[\\^$.*+?()[\]{}|]/g,Hn=RegExp(oo.source),ao=/^\s+/,xl=/\s/,zl=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Ma=/\{\n\/\* \[wrapped with (.+)\] \*/,Si=/,? & /,cn=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Jr=/[()=,{}\[\]\/\s]/,Ll=/\\(\\)?/g,ni=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,lo=/\w*$/,Bo=/^[-+]0x[0-9a-f]+$/i,Mn=/^0b[01]+$/i,kn=/^\[object .+?Constructor\]$/,en=/^0o[0-7]+$/i,ka=/^(?:0|[1-9]\d*)$/,Oa=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,$t=/($^)/,Oe=/['\n\r\u2028\u2029\\]/g,tn="\\ud800-\\udfff",Ta="\\u0300-\\u036f",Vr="\\ufe20-\\ufe2f",bt="\\u20d0-\\u20ff",On=Ta+Vr+bt,Mi="\\u2700-\\u27bf",Fo="a-z\\xdf-\\xf6\\xf8-\\xff",oe="\\xac\\xb1\\xd7\\xf7",w="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",O="\\u2000-\\u206f",Q=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",le="A-Z\\xc0-\\xd6\\xd8-\\xde",Ge="\\ufe0e\\ufe0f",dt=oe+w+O+Q,Ce="['\u2019]",vr="["+tn+"]",qr="["+dt+"]",ii="["+On+"]",Tn="\\d+",tc="["+Mi+"]",$s="["+Fo+"]",Wo="[^"+tn+dt+Tn+Mi+Fo+le+"]",Ea="\\ud83c[\\udffb-\\udfff]",rc="(?:"+ii+"|"+Ea+")",_l="[^"+tn+"]",Sl="(?:\\ud83c[\\udde6-\\uddff]){2}",Ml="[\\ud800-\\udbff][\\udc00-\\udfff]",so="["+le+"]",Ds="\\u200d",nc="(?:"+$s+"|"+Wo+")",a1="(?:"+so+"|"+Wo+")",Rs="(?:"+Ce+"(?:d|ll|m|re|s|t|ve))?",Bn="(?:"+Ce+"(?:D|LL|M|RE|S|T|VE))?",ic=rc+"?",oc="["+Ge+"]?",kl="(?:"+Ds+"(?:"+[_l,Sl,Ml].join("|")+")"+oc+ic+")*",Pa="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",l1="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",ac=oc+ic+kl,s1="(?:"+[tc,Sl,Ml].join("|")+")"+ac,u1="(?:"+[_l+ii+"?",ii,Sl,Ml,vr].join("|")+")",Ns=RegExp(Ce,"g"),lc=RegExp(ii,"g"),Hs=RegExp(Ea+"(?="+Ea+")|"+u1+ac,"g"),sc=RegExp([so+"?"+$s+"+"+Rs+"(?="+[qr,so,"$"].join("|")+")",a1+"+"+Bn+"(?="+[qr,so+nc,"$"].join("|")+")",so+"?"+nc+"+"+Rs,so+"+"+Bn,l1,Pa,Tn,s1].join("|"),"g"),uc=RegExp("["+Ds+tn+On+Ge+"]"),Ol=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Tl=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Bs=-1,Dt={};Dt[Dr]=Dt[Rt]=Dt[ri]=Dt[_r]=Dt[_n]=Dt[Ne]=Dt[Li]=Dt[gr]=Dt[Ze]=!0,Dt[at]=Dt[_e]=Dt[pr]=Dt[Ue]=Dt[Ln]=Dt[nt]=Dt[We]=Dt[Nt]=Dt[Yt]=Dt[Ke]=Dt[wt]=Dt[er]=Dt[et]=Dt[W]=Dt[Xe]=!1;var Tt={};Tt[at]=Tt[_e]=Tt[pr]=Tt[Ln]=Tt[Ue]=Tt[nt]=Tt[Dr]=Tt[Rt]=Tt[ri]=Tt[_r]=Tt[_n]=Tt[Yt]=Tt[Ke]=Tt[wt]=Tt[er]=Tt[et]=Tt[W]=Tt[ae]=Tt[Ne]=Tt[Li]=Tt[gr]=Tt[Ze]=!0,Tt[We]=Tt[Nt]=Tt[Xe]=!1;var El={\u00C0:"A",\u00C1:"A",\u00C2:"A",\u00C3:"A",\u00C4:"A",\u00C5:"A",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u00E3:"a",\u00E4:"a",\u00E5:"a",\u00C7:"C",\u00E7:"c",\u00D0:"D",\u00F0:"d",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u00CB:"E",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u00EB:"e",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u00CF:"I",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u00EF:"i",\u00D1:"N",\u00F1:"n",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u00D5:"O",\u00D6:"O",\u00D8:"O",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u00F5:"o",\u00F6:"o",\u00F8:"o",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u00DC:"U",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u00FC:"u",\u00DD:"Y",\u00FD:"y",\u00FF:"y",\u00C6:"Ae",\u00E6:"ae",\u00DE:"Th",\u00FE:"th",\u00DF:"ss",\u0100:"A",\u0102:"A",\u0104:"A",\u0101:"a",\u0103:"a",\u0105:"a",\u0106:"C",\u0108:"C",\u010A:"C",\u010C:"C",\u0107:"c",\u0109:"c",\u010B:"c",\u010D:"c",\u010E:"D",\u0110:"D",\u010F:"d",\u0111:"d",\u0112:"E",\u0114:"E",\u0116:"E",\u0118:"E",\u011A:"E",\u0113:"e",\u0115:"e",\u0117:"e",\u0119:"e",\u011B:"e",\u011C:"G",\u011E:"G",\u0120:"G",\u0122:"G",\u011D:"g",\u011F:"g",\u0121:"g",\u0123:"g",\u0124:"H",\u0126:"H",\u0125:"h",\u0127:"h",\u0128:"I",\u012A:"I",\u012C:"I",\u012E:"I",\u0130:"I",\u0129:"i",\u012B:"i",\u012D:"i",\u012F:"i",\u0131:"i",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u0138:"k",\u0139:"L",\u013B:"L",\u013D:"L",\u013F:"L",\u0141:"L",\u013A:"l",\u013C:"l",\u013E:"l",\u0140:"l",\u0142:"l",\u0143:"N",\u0145:"N",\u0147:"N",\u014A:"N",\u0144:"n",\u0146:"n",\u0148:"n",\u014B:"n",\u014C:"O",\u014E:"O",\u0150:"O",\u014D:"o",\u014F:"o",\u0151:"o",\u0154:"R",\u0156:"R",\u0158:"R",\u0155:"r",\u0157:"r",\u0159:"r",\u015A:"S",\u015C:"S",\u015E:"S",\u0160:"S",\u015B:"s",\u015D:"s",\u015F:"s",\u0161:"s",\u0162:"T",\u0164:"T",\u0166:"T",\u0163:"t",\u0165:"t",\u0167:"t",\u0168:"U",\u016A:"U",\u016C:"U",\u016E:"U",\u0170:"U",\u0172:"U",\u0169:"u",\u016B:"u",\u016D:"u",\u016F:"u",\u0171:"u",\u0173:"u",\u0174:"W",\u0175:"w",\u0176:"Y",\u0177:"y",\u0178:"Y",\u0179:"Z",\u017B:"Z",\u017D:"Z",\u017A:"z",\u017C:"z",\u017E:"z",\u0132:"IJ",\u0133:"ij",\u0152:"Oe",\u0153:"oe",\u0149:"'n",\u017F:"s"},c1={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},cc={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},Fn={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},d1=parseFloat,f1=parseInt,Pl=typeof ws=="object"&&ws&&ws.Object===Object&&ws,dc=typeof self=="object"&&self&&self.Object===Object&&self,Ht=Pl||dc||Function("return this")(),Ia=i&&!i.nodeType&&i,Nr=Ia&&!0&&s&&!s.nodeType&&s,Aa=Nr&&Nr.exports===Ia,$a=Aa&&Pl.process,br=function(){try{var H=Nr&&Nr.require&&Nr.require("util").types;return H||$a&&$a.binding&&$a.binding("util")}catch{}}(),fc=br&&br.isArrayBuffer,hc=br&&br.isDate,pc=br&&br.isMap,gc=br&&br.isRegExp,Fs=br&&br.isSet,Ws=br&&br.isTypedArray;function rn(H,J,V){switch(V.length){case 0:return H.call(J);case 1:return H.call(J,V[0]);case 2:return H.call(J,V[0],V[1]);case 3:return H.call(J,V[0],V[1],V[2])}return H.apply(J,V)}function h1(H,J,V,Se){for(var Je=-1,Ct=H==null?0:H.length;++Je<Ct;){var nr=H[Je];J(Se,nr,V(nr),H)}return Se}function dn(H,J){for(var V=-1,Se=H==null?0:H.length;++V<Se&&J(H[V],V,H)!==!1;);return H}function p1(H,J){for(var V=H==null?0:H.length;V--&&J(H[V],V,H)!==!1;);return H}function Us(H,J){for(var V=-1,Se=H==null?0:H.length;++V<Se;)if(!J(H[V],V,H))return!1;return!0}function ki(H,J){for(var V=-1,Se=H==null?0:H.length,Je=0,Ct=[];++V<Se;){var nr=H[V];J(nr,V,H)&&(Ct[Je++]=nr)}return Ct}function Da(H,J){var V=H==null?0:H.length;return!!V&&co(H,J,0)>-1}function Uo(H,J,V){for(var Se=-1,Je=H==null?0:H.length;++Se<Je;)if(V(J,H[Se]))return!0;return!1}function _t(H,J){for(var V=-1,Se=H==null?0:H.length,Je=Array(Se);++V<Se;)Je[V]=J(H[V],V,H);return Je}function Oi(H,J){for(var V=-1,Se=J.length,Je=H.length;++V<Se;)H[Je+V]=J[V];return H}function Zs(H,J,V,Se){var Je=-1,Ct=H==null?0:H.length;for(Se&&Ct&&(V=H[++Je]);++Je<Ct;)V=J(V,H[Je],Je,H);return V}function g1(H,J,V,Se){var Je=H==null?0:H.length;for(Se&&Je&&(V=H[--Je]);Je--;)V=J(V,H[Je],Je,H);return V}function uo(H,J){for(var V=-1,Se=H==null?0:H.length;++V<Se;)if(J(H[V],V,H))return!0;return!1}var rr=Vs("length");function v1(H){return H.split("")}function vc(H){return H.match(cn)||[]}function Zo(H,J,V){var Se;return V(H,function(Je,Ct,nr){if(J(Je,Ct,nr))return Se=Ct,!1}),Se}function Il(H,J,V,Se){for(var Je=H.length,Ct=V+(Se?1:-1);Se?Ct--:++Ct<Je;)if(J(H[Ct],Ct,H))return Ct;return-1}function co(H,J,V){return J===J?zc(H,J,V):Il(H,Al,V)}function b1(H,J,V,Se){for(var Je=V-1,Ct=H.length;++Je<Ct;)if(Se(H[Je],J))return Je;return-1}function Al(H){return H!==H}function Gs(H,J){var V=H==null?0:H.length;return V?Ks(H,J)/V:Kt}function Vs(H){return function(J){return J==null?l:J[H]}}function qs(H){return function(J){return H==null?l:H[J]}}function js(H,J,V,Se,Je){return Je(H,function(Ct,nr,gt){V=Se?(Se=!1,Ct):J(V,Ct,nr,gt)}),V}function bc(H,J){var V=H.length;for(H.sort(J);V--;)H[V]=H[V].value;return H}function Ks(H,J){for(var V,Se=-1,Je=H.length;++Se<Je;){var Ct=J(H[Se]);Ct!==l&&(V=V===l?Ct:V+Ct)}return V}function fo(H,J){for(var V=-1,Se=Array(H);++V<H;)Se[V]=J(V);return Se}function oi(H,J){return _t(J,function(V){return[V,H[V]]})}function Ra(H){return H&&H.slice(0,Hl(H)+1).replace(ao,"")}function Hr(H){return function(J){return H(J)}}function $l(H,J){return _t(J,function(V){return H[V]})}function jr(H,J){return H.has(J)}function Ti(H,J){for(var V=-1,Se=H.length;++V<Se&&co(J,H[V],0)>-1;);return V}function Dl(H,J){for(var V=H.length;V--&&co(J,H[V],0)>-1;);return V}function m1(H,J){for(var V=H.length,Se=0;V--;)H[V]===J&&++Se;return Se}var mc=qs(El),y1=qs(c1);function yc(H){return"\\"+Fn[H]}function Ys(H,J){return H==null?l:H[J]}function En(H){return uc.test(H)}function Wn(H){return Ol.test(H)}function Cc(H){for(var J,V=[];!(J=H.next()).done;)V.push(J.value);return V}function Rl(H){var J=-1,V=Array(H.size);return H.forEach(function(Se,Je){V[++J]=[Je,Se]}),V}function wc(H,J){return function(V){return H(J(V))}}function Ei(H,J){for(var V=-1,Se=H.length,Je=0,Ct=[];++V<Se;){var nr=H[V];(nr===J||nr===A)&&(H[V]=A,Ct[Je++]=V)}return Ct}function Nl(H){var J=-1,V=Array(H.size);return H.forEach(function(Se){V[++J]=Se}),V}function xc(H){var J=-1,V=Array(H.size);return H.forEach(function(Se){V[++J]=[Se,Se]}),V}function zc(H,J,V){for(var Se=V-1,Je=H.length;++Se<Je;)if(H[Se]===J)return Se;return-1}function Na(H,J,V){for(var Se=V+1;Se--;)if(H[Se]===J)return Se;return Se}function ho(H){return En(H)?Lc(H):rr(H)}function fn(H){return En(H)?Fl(H):v1(H)}function Hl(H){for(var J=H.length;J--&&xl.test(H.charAt(J)););return J}var Bl=qs(cc);function Lc(H){for(var J=Hs.lastIndex=0;Hs.test(H);)++J;return J}function Fl(H){return H.match(Hs)||[]}function Pn(H){return H.match(sc)||[]}var _c=function H(J){J=J==null?Ht:Pi.defaults(Ht.Object(),J,Pi.pick(Ht,Tl));var V=J.Array,Se=J.Date,Je=J.Error,Ct=J.Function,nr=J.Math,gt=J.Object,Ii=J.RegExp,Go=J.String,Kr=J.TypeError,Vo=V.prototype,Sc=Ct.prototype,Ai=gt.prototype,Un=J["__core-js_shared__"],Zn=Sc.toString,tt=Ai.hasOwnProperty,$i=0,ai=function(){var r=/[^.]+$/.exec(Un&&Un.keys&&Un.keys.IE_PROTO||"");return r?"Symbol(src)_1."+r:""}(),po=Ai.toString,C1=Zn.call(gt),Mc=Ht._,Ha=Ii("^"+Zn.call(tt).replace(oo,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ba=Aa?J.Buffer:l,li=J.Symbol,go=J.Uint8Array,kc=Ba?Ba.allocUnsafe:l,qo=wc(gt.getPrototypeOf,gt),Xs=gt.create,Wl=Ai.propertyIsEnumerable,jo=Vo.splice,vo=li?li.isConcatSpreadable:l,Di=li?li.iterator:l,Ri=li?li.toStringTag:l,bo=function(){try{var r=So(gt,"defineProperty");return r({},"",{}),r}catch{}}(),w1=J.clearTimeout!==Ht.clearTimeout&&J.clearTimeout,x1=Se&&Se.now!==Ht.Date.now&&Se.now,z1=J.setTimeout!==Ht.setTimeout&&J.setTimeout,Ko=nr.ceil,Yo=nr.floor,Ni=gt.getOwnPropertySymbols,Fa=Ba?Ba.isBuffer:l,Oc=J.isFinite,Ul=Vo.join,Tc=wc(gt.keys,gt),Bt=nr.max,mr=nr.min,mo=Se.now,Wa=J.parseInt,Hi=nr.random,Ua=Vo.reverse,Bi=So(J,"DataView"),Xo=So(J,"Map"),Zl=So(J,"Promise"),yo=So(J,"Set"),Za=So(J,"WeakMap"),In=So(gt,"create"),Gn=Za&&new Za,Qo={},L1=Et(Bi),_1=Et(Xo),S1=Et(Zl),M1=Et(yo),k1=Et(Za),yr=li?li.prototype:l,Ft=yr?yr.valueOf:l,Cr=yr?yr.toString:l;function z(r){if(Qt(r)&&!lt(r)&&!(r instanceof ft)){if(r instanceof Br)return r;if(tt.call(r,"__wrapped__"))return Er(r)}return new Br(r)}var Vn=function(){function r(){}return function(a){if(!jt(a))return{};if(Xs)return Xs(a);r.prototype=a;var f=new r;return r.prototype=l,f}}();function Gl(){}function Br(r,a){this.__wrapped__=r,this.__actions__=[],this.__chain__=!!a,this.__index__=0,this.__values__=l}z.templateSettings={escape:io,evaluate:_i,interpolate:_a,variable:"",imports:{_:z}},z.prototype=Gl.prototype,z.prototype.constructor=z,Br.prototype=Vn(Gl.prototype),Br.prototype.constructor=Br;function ft(r){this.__wrapped__=r,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=It,this.__views__=[]}function O1(){var r=new ft(this.__wrapped__);return r.__actions__=fr(this.__actions__),r.__dir__=this.__dir__,r.__filtered__=this.__filtered__,r.__iteratees__=fr(this.__iteratees__),r.__takeCount__=this.__takeCount__,r.__views__=fr(this.__views__),r}function T1(){if(this.__filtered__){var r=new ft(this);r.__dir__=-1,r.__filtered__=!0}else r=this.clone(),r.__dir__*=-1;return r}function Qs(){var r=this.__wrapped__.value(),a=this.__dir__,f=lt(r),v=a<0,x=f?r.length:0,L=gs(0,x,this.__views__),E=L.start,$=L.end,F=$-E,ne=v?$:E-1,ie=this.__iteratees__,se=ie.length,ze=0,De=mr(F,this.__takeCount__);if(!f||!v&&x==F&&De==F)return Xc(r,this.__actions__);var Ve=[];e:for(;F--&&ze<De;){ne+=a;for(var ct=-1,qe=r[ne];++ct<se;){var pt=ie[ct],vt=pt.iteratee,Dn=pt.type,sn=vt(qe);if(Dn==S)qe=sn;else if(!sn){if(Dn==P)continue e;break e}}Ve[ze++]=qe}return Ve}ft.prototype=Vn(Gl.prototype),ft.prototype.constructor=ft;function Fi(r){var a=-1,f=r==null?0:r.length;for(this.clear();++a<f;){var v=r[a];this.set(v[0],v[1])}}function Js(){this.__data__=In?In(null):{},this.size=0}function E1(r){var a=this.has(r)&&delete this.__data__[r];return this.size-=a?1:0,a}function eu(r){var a=this.__data__;if(In){var f=a[r];return f===T?l:f}return tt.call(a,r)?a[r]:l}function tu(r){var a=this.__data__;return In?a[r]!==l:tt.call(a,r)}function Ec(r,a){var f=this.__data__;return this.size+=this.has(r)?0:1,f[r]=In&&a===l?T:a,this}Fi.prototype.clear=Js,Fi.prototype.delete=E1,Fi.prototype.get=eu,Fi.prototype.has=tu,Fi.prototype.set=Ec;function qn(r){var a=-1,f=r==null?0:r.length;for(this.clear();++a<f;){var v=r[a];this.set(v[0],v[1])}}function ru(){this.__data__=[],this.size=0}function Pc(r){var a=this.__data__,f=Co(a,r);if(f<0)return!1;var v=a.length-1;return f==v?a.pop():jo.call(a,f,1),--this.size,!0}function Ga(r){var a=this.__data__,f=Co(a,r);return f<0?l:a[f][1]}function P1(r){return Co(this.__data__,r)>-1}function Vl(r,a){var f=this.__data__,v=Co(f,r);return v<0?(++this.size,f.push([r,a])):f[v][1]=a,this}qn.prototype.clear=ru,qn.prototype.delete=Pc,qn.prototype.get=Ga,qn.prototype.has=P1,qn.prototype.set=Vl;function qt(r){var a=-1,f=r==null?0:r.length;for(this.clear();++a<f;){var v=r[a];this.set(v[0],v[1])}}function Ic(){this.size=0,this.__data__={hash:new Fi,map:new(Xo||qn),string:new Fi}}function I1(r){var a=ps(this,r).delete(r);return this.size-=a?1:0,a}function Ac(r){return ps(this,r).get(r)}function nn(r){return ps(this,r).has(r)}function mt(r,a){var f=ps(this,r),v=f.size;return f.set(r,a),this.size+=f.size==v?0:1,this}qt.prototype.clear=Ic,qt.prototype.delete=I1,qt.prototype.get=Ac,qt.prototype.has=nn,qt.prototype.set=mt;function wr(r){var a=-1,f=r==null?0:r.length;for(this.__data__=new qt;++a<f;)this.add(r[a])}function Wi(r){return this.__data__.set(r,T),this}function Ui(r){return this.__data__.has(r)}wr.prototype.add=wr.prototype.push=Wi,wr.prototype.has=Ui;function hn(r){var a=this.__data__=new qn(r);this.size=a.size}function nu(){this.__data__=new qn,this.size=0}function $c(r){var a=this.__data__,f=a.delete(r);return this.size=a.size,f}function A1(r){return this.__data__.get(r)}function iu(r){return this.__data__.has(r)}function Va(r,a){var f=this.__data__;if(f instanceof qn){var v=f.__data__;if(!Xo||v.length<c-1)return v.push([r,a]),this.size=++f.size,this;f=this.__data__=new qt(v)}return f.set(r,a),this.size=f.size,this}hn.prototype.clear=nu,hn.prototype.delete=$c,hn.prototype.get=A1,hn.prototype.has=iu,hn.prototype.set=Va;function ou(r,a){var f=lt(r),v=!f&&ll(r),x=!f&&!v&&ba(r),L=!f&&!v&&!x&&bs(r),E=f||v||x||L,$=E?fo(r.length,Go):[],F=$.length;for(var ne in r)(a||tt.call(r,ne))&&!(E&&(ne=="length"||x&&(ne=="offset"||ne=="parent")||L&&(ne=="buffer"||ne=="byteLength"||ne=="byteOffset")||m(ne,F)))&&$.push(ne);return $}function ql(r){var a=r.length;return a?r[is(0,a-1)]:l}function Zi(r,a){return hr(fr(r),wo(a,0,r.length))}function Dc(r){return hr(fr(r))}function jl(r,a,f){(f!==l&&!hi(r[a],f)||f===l&&!(a in r))&&jn(r,a,f)}function qa(r,a,f){var v=r[a];(!(tt.call(r,a)&&hi(v,f))||f===l&&!(a in r))&&jn(r,a,f)}function Co(r,a){for(var f=r.length;f--;)if(hi(r[f][0],a))return f;return-1}function au(r,a,f,v){return on(r,function(x,L,E){a(v,x,f(x),E)}),v}function lu(r,a){return r&&Yr(a,Ir(a),r)}function $1(r,a){return r&&Yr(a,mn(a),r)}function jn(r,a,f){a=="__proto__"&&bo?bo(r,a,{configurable:!0,enumerable:!0,value:f,writable:!0}):r[a]=f}function su(r,a){for(var f=-1,v=a.length,x=V(v),L=r==null;++f<v;)x[f]=L?l:X1(r,a[f]);return x}function wo(r,a,f){return r===r&&(f!==l&&(r=r<=f?r:f),a!==l&&(r=r>=a?r:a)),r}function Fr(r,a,f,v,x,L){var E,$=a&B,F=a&U,ne=a&Z;if(f&&(E=x?f(r,v,x,L):f(r)),E!==l)return E;if(!jt(r))return r;var ie=lt(r);if(ie){if(E=o(r),!$)return fr(r,E)}else{var se=kr(r),ze=se==Nt||se==$r;if(ba(r))return yu(r,$);if(se==wt||se==at||ze&&!x){if(E=F||ze?{}:n(r),!$)return F?r0(r,$1(E,r)):U1(r,lu(E,r))}else{if(!Tt[se])return x?r:{};E=u(r,se,$)}}L||(L=new hn);var De=L.get(r);if(De)return De;L.set(r,E),wf(r)?r.forEach(function(qe){E.add(Fr(qe,a,f,qe,r,L))}):yf(r)&&r.forEach(function(qe,pt){E.set(pt,Fr(qe,a,f,pt,r,L))});var Ve=ne?F?hs:ol:F?mn:Ir,ct=ie?l:Ve(r);return dn(ct||r,function(qe,pt){ct&&(pt=qe,qe=r[pt]),qa(E,pt,Fr(qe,a,f,pt,r,L))}),E}function Rc(r){var a=Ir(r);return function(f){return Nc(f,r,a)}}function Nc(r,a,f){var v=f.length;if(r==null)return!v;for(r=gt(r);v--;){var x=f[v],L=a[x],E=r[x];if(E===l&&!(x in r)||!L(E))return!1}return!0}function Hc(r,a,f){if(typeof r!="function")throw new Kr(b);return kt(function(){r.apply(l,f)},a)}function Jo(r,a,f,v){var x=-1,L=Da,E=!0,$=r.length,F=[],ne=a.length;if(!$)return F;f&&(a=_t(a,Hr(f))),v?(L=Uo,E=!1):a.length>=c&&(L=jr,E=!1,a=new wr(a));e:for(;++x<$;){var ie=r[x],se=f==null?ie:f(ie);if(ie=v||ie!==0?ie:0,E&&se===se){for(var ze=ne;ze--;)if(a[ze]===se)continue e;F.push(ie)}else L(a,se,v)||F.push(ie)}return F}var on=n0(an),Kl=n0(Ql,!0);function Yl(r,a){var f=!0;return on(r,function(v,x,L){return f=!!a(v,x,L),f}),f}function ja(r,a,f){for(var v=-1,x=r.length;++v<x;){var L=r[v],E=a(L);if(E!=null&&($===l?E===E&&!$n(E):f(E,$)))var $=E,F=L}return F}function uu(r,a,f,v){var x=r.length;for(f=ut(f),f<0&&(f=-f>x?0:x+f),v=v===l||v>x?x:ut(v),v<0&&(v+=x),v=f>v?0:zf(v);f<v;)r[f++]=a;return r}function cu(r,a){var f=[];return on(r,function(v,x,L){a(v,x,L)&&f.push(v)}),f}function xr(r,a,f,v,x){var L=-1,E=r.length;for(f||(f=p),x||(x=[]);++L<E;){var $=r[L];a>0&&f($)?a>1?xr($,a-1,f,v,x):Oi(x,$):v||(x[x.length]=$)}return x}var Xl=i0(),cr=i0(!0);function an(r,a){return r&&Xl(r,a,Ir)}function Ql(r,a){return r&&cr(r,a,Ir)}function Ka(r,a){return ki(a,function(f){return Oo(r[f])})}function Gi(r,a){a=An(a,r);for(var f=0,v=a.length;r!=null&&f<v;)r=r[St(a[f++])];return f&&f==v?r:l}function xo(r,a,f){var v=a(r);return lt(r)?v:Oi(v,f(r))}function dr(r){return r==null?r===l?j:ht:Ri&&Ri in gt(r)?Zt(r):xe(r)}function Jl(r,a){return r>a}function Bc(r,a){return r!=null&&tt.call(r,a)}function Fc(r,a){return r!=null&&a in gt(r)}function ea(r,a,f){return r>=mr(a,f)&&r<Bt(a,f)}function es(r,a,f){for(var v=f?Uo:Da,x=r[0].length,L=r.length,E=L,$=V(L),F=1/0,ne=[];E--;){var ie=r[E];E&&a&&(ie=_t(ie,Hr(a))),F=mr(ie.length,F),$[E]=!f&&(a||x>=120&&ie.length>=120)?new wr(E&&ie):l}ie=r[0];var se=-1,ze=$[0];e:for(;++se<x&&ne.length<F;){var De=ie[se],Ve=a?a(De):De;if(De=f||De!==0?De:0,!(ze?jr(ze,Ve):v(ne,Ve,f))){for(E=L;--E;){var ct=$[E];if(!(ct?jr(ct,Ve):v(r[E],Ve,f)))continue e}ze&&ze.push(Ve),ne.push(De)}}return ne}function ts(r,a,f,v){return an(r,function(x,L,E){a(v,f(x),L,E)}),v}function ta(r,a,f){a=An(a,r),r=Pe(r,a);var v=r==null?r:r[St(Yn(a))];return v==null?l:rn(v,r,f)}function ra(r){return Qt(r)&&dr(r)==at}function D1(r){return Qt(r)&&dr(r)==pr}function na(r){return Qt(r)&&dr(r)==nt}function ia(r,a,f,v,x){return r===a?!0:r==null||a==null||!Qt(r)&&!Qt(a)?r!==r&&a!==a:Wc(r,a,f,v,ia,x)}function Wc(r,a,f,v,x,L){var E=lt(r),$=lt(a),F=E?_e:kr(r),ne=$?_e:kr(a);F=F==at?wt:F,ne=ne==at?wt:ne;var ie=F==wt,se=ne==wt,ze=F==ne;if(ze&&ba(r)){if(!ba(a))return!1;E=!0,ie=!1}if(ze&&!ie)return L||(L=new hn),E||bs(r)?_u(r,a,f,v,x,L):d0(r,a,F,f,v,x,L);if(!(f&re)){var De=ie&&tt.call(r,"__wrapped__"),Ve=se&&tt.call(a,"__wrapped__");if(De||Ve){var ct=De?r.value():r,qe=Ve?a.value():a;return L||(L=new hn),x(ct,qe,f,v,L)}}return ze?(L||(L=new hn),f0(r,a,f,v,x,L)):!1}function Uc(r){return Qt(r)&&kr(r)==Yt}function zo(r,a,f,v){var x=f.length,L=x,E=!v;if(r==null)return!L;for(r=gt(r);x--;){var $=f[x];if(E&&$[2]?$[1]!==r[$[0]]:!($[0]in r))return!1}for(;++x<L;){$=f[x];var F=$[0],ne=r[F],ie=$[1];if(E&&$[2]){if(ne===l&&!(F in r))return!1}else{var se=new hn;if(v)var ze=v(ne,ie,F,r,a,se);if(!(ze===l?ia(ie,ne,re|ve,v,se):ze))return!1}}return!0}function oa(r){if(!jt(r)||N(r))return!1;var a=Oo(r)?Ha:kn;return a.test(Et(r))}function Ya(r){return Qt(r)&&dr(r)==er}function Xa(r){return Qt(r)&&kr(r)==et}function Zc(r){return Qt(r)&&y0(r.length)&&!!Dt[dr(r)]}function Gc(r){return typeof r=="function"?r:r==null?yn:typeof r=="object"?lt(r)?du(r[0],r[1]):Vc(r):Af(r)}function rs(r){if(!q(r))return Tc(r);var a=[];for(var f in gt(r))tt.call(r,f)&&f!="constructor"&&a.push(f);return a}function Vi(r){if(!jt(r))return he(r);var a=q(r),f=[];for(var v in r)v=="constructor"&&(a||!tt.call(r,v))||f.push(v);return f}function qi(r,a){return r<a}function aa(r,a){var f=-1,v=bn(r)?V(r.length):[];return on(r,function(x,L,E){v[++f]=a(x,L,E)}),v}function Vc(r){var a=pa(r);return a.length==1&&a[0][2]?ue(a[0][0],a[0][1]):function(f){return f===r||zo(f,r,a)}}function du(r,a){return C(r)&&te(a)?ue(St(r),a):function(f){var v=X1(f,r);return v===l&&v===a?Q1(f,r):ia(a,v,re|ve)}}function ns(r,a,f,v,x){r!==a&&Xl(a,function(L,E){if(x||(x=new hn),jt(L))R1(r,a,E,f,ns,v,x);else{var $=v?v(xt(r,E),L,E+"",r,a,x):l;$===l&&($=L),jl(r,E,$)}},mn)}function R1(r,a,f,v,x,L,E){var $=xt(r,f),F=xt(a,f),ne=E.get(F);if(ne){jl(r,f,ne);return}var ie=L?L($,F,f+"",r,a,E):l,se=ie===l;if(se){var ze=lt(F),De=!ze&&ba(F),Ve=!ze&&!De&&bs(F);ie=F,ze||De||Ve?lt($)?ie=$:ar($)?ie=fr($):De?(se=!1,ie=yu(F,!0)):Ve?(se=!1,ie=Jc(F,!0)):ie=[]:ku(F)||ll(F)?(ie=$,ll($)?ie=Lf($):(!jt($)||Oo($))&&(ie=n(F))):se=!1}se&&(E.set(F,ie),x(ie,F,v,L,E),E.delete(F)),jl(r,f,ie)}function qc(r,a){var f=r.length;if(!!f)return a+=a<0?f:0,m(a,f)?r[a]:l}function Sr(r,a,f){a.length?a=_t(a,function(L){return lt(L)?function(E){return Gi(E,L.length===1?L[0]:L)}:L}):a=[yn];var v=-1;a=_t(a,Hr(He()));var x=aa(r,function(L,E,$){var F=_t(a,function(ne){return ne(L)});return{criteria:F,index:++v,value:L}});return bc(x,function(L,E){return e0(L,E,f)})}function jc(r,a){return Kc(r,a,function(f,v){return Q1(r,v)})}function Kc(r,a,f){for(var v=-1,x=a.length,L={};++v<x;){var E=a[v],$=Gi(r,E);f($,E)&&si(L,An(E,r),$)}return L}function N1(r){return function(a){return Gi(a,r)}}function fu(r,a,f,v){var x=v?b1:co,L=-1,E=a.length,$=r;for(r===a&&(a=fr(a)),f&&($=_t(r,Hr(f)));++L<E;)for(var F=0,ne=a[L],ie=f?f(ne):ne;(F=x($,ie,F,v))>-1;)$!==r&&jo.call($,F,1),jo.call(r,F,1);return r}function hu(r,a){for(var f=r?a.length:0,v=f-1;f--;){var x=a[f];if(f==v||x!==L){var L=x;m(x)?jo.call(r,x,1):el(r,x)}}return r}function is(r,a){return r+Yo(Hi()*(a-r+1))}function Yc(r,a,f,v){for(var x=-1,L=Bt(Ko((a-r)/(f||1)),0),E=V(L);L--;)E[v?L:++x]=r,r+=f;return E}function pu(r,a){var f="";if(!r||a<1||a>rt)return f;do a%2&&(f+=r),a=Yo(a/2),a&&(r+=r);while(a);return f}function st(r,a){return Or($e(r,a,yn),r+"")}function H1(r){return ql(ms(r))}function ji(r,a){var f=ms(r);return hr(f,wo(a,0,f.length))}function si(r,a,f,v){if(!jt(r))return r;a=An(a,r);for(var x=-1,L=a.length,E=L-1,$=r;$!=null&&++x<L;){var F=St(a[x]),ne=f;if(F==="__proto__"||F==="constructor"||F==="prototype")return r;if(x!=E){var ie=$[F];ne=v?v(ie,F,$):l,ne===l&&(ne=jt(ie)?ie:m(a[x+1])?[]:{})}qa($,F,ne),$=$[F]}return r}var Qa=Gn?function(r,a){return Gn.set(r,a),r}:yn,Ja=bo?function(r,a){return bo(r,"toString",{configurable:!0,enumerable:!1,value:ed(a),writable:!0})}:yn;function ui(r){return hr(ms(r))}function pn(r,a,f){var v=-1,x=r.length;a<0&&(a=-a>x?0:x+a),f=f>x?x:f,f<0&&(f+=x),x=a>f?0:f-a>>>0,a>>>=0;for(var L=V(x);++v<x;)L[v]=r[v+a];return L}function B1(r,a){var f;return on(r,function(v,x,L){return f=a(v,x,L),!f}),!!f}function ci(r,a,f){var v=0,x=r==null?v:r.length;if(typeof a=="number"&&a===a&&x<=Ut){for(;v<x;){var L=v+x>>>1,E=r[L];E!==null&&!$n(E)&&(f?E<=a:E<a)?v=L+1:x=L}return x}return os(r,a,yn,f)}function os(r,a,f,v){var x=0,L=r==null?0:r.length;if(L===0)return 0;a=f(a);for(var E=a!==a,$=a===null,F=$n(a),ne=a===l;x<L;){var ie=Yo((x+L)/2),se=f(r[ie]),ze=se!==l,De=se===null,Ve=se===se,ct=$n(se);if(E)var qe=v||Ve;else ne?qe=Ve&&(v||ze):$?qe=Ve&&ze&&(v||!De):F?qe=Ve&&ze&&!De&&(v||!ct):De||ct?qe=!1:qe=v?se<=a:se<a;qe?x=ie+1:L=ie}return mr(L,Xr)}function gu(r,a){for(var f=-1,v=r.length,x=0,L=[];++f<v;){var E=r[f],$=a?a(E):E;if(!f||!hi($,F)){var F=$;L[x++]=E===0?0:E}}return L}function vu(r){return typeof r=="number"?r:$n(r)?Kt:+r}function Mr(r){if(typeof r=="string")return r;if(lt(r))return _t(r,Mr)+"";if($n(r))return Cr?Cr.call(r):"";var a=r+"";return a=="0"&&1/r==-me?"-0":a}function ln(r,a,f){var v=-1,x=Da,L=r.length,E=!0,$=[],F=$;if(f)E=!1,x=Uo;else if(L>=c){var ne=a?null:il(r);if(ne)return Nl(ne);E=!1,x=jr,F=new wr}else F=a?[]:$;e:for(;++v<L;){var ie=r[v],se=a?a(ie):ie;if(ie=f||ie!==0?ie:0,E&&se===se){for(var ze=F.length;ze--;)if(F[ze]===se)continue e;a&&F.push(se),$.push(ie)}else x(F,se,f)||(F!==$&&F.push(se),$.push(ie))}return $}function el(r,a){return a=An(a,r),r=Pe(r,a),r==null||delete r[St(Yn(a))]}function as(r,a,f,v){return si(r,a,f(Gi(r,a)),v)}function la(r,a,f,v){for(var x=r.length,L=v?x:-1;(v?L--:++L<x)&&a(r[L],L,r););return f?pn(r,v?0:L,v?L+1:x):pn(r,v?L+1:0,v?x:L)}function Xc(r,a){var f=r;return f instanceof ft&&(f=f.value()),Zs(a,function(v,x){return x.func.apply(x.thisArg,Oi([v],x.args))},f)}function Lo(r,a,f){var v=r.length;if(v<2)return v?ln(r[0]):[];for(var x=-1,L=V(v);++x<v;)for(var E=r[x],$=-1;++$<v;)$!=x&&(L[x]=Jo(L[x]||E,r[$],a,f));return ln(xr(L,1),a,f)}function bu(r,a,f){for(var v=-1,x=r.length,L=a.length,E={};++v<x;){var $=v<L?a[v]:l;f(E,r[v],$)}return E}function mu(r){return ar(r)?r:[]}function ls(r){return typeof r=="function"?r:yn}function An(r,a){return lt(r)?r:C(r,a)?[r]:ir(Ot(r))}var F1=st;function Ki(r,a,f){var v=r.length;return f=f===l?v:f,!a&&f>=v?r:pn(r,a,f)}var sa=w1||function(r){return Ht.clearTimeout(r)};function yu(r,a){if(a)return r.slice();var f=r.length,v=kc?kc(f):new r.constructor(f);return r.copy(v),v}function ss(r){var a=new r.constructor(r.byteLength);return new go(a).set(new go(r)),a}function W1(r,a){var f=a?ss(r.buffer):r.buffer;return new r.constructor(f,r.byteOffset,r.byteLength)}function Cu(r){var a=new r.constructor(r.source,lo.exec(r));return a.lastIndex=r.lastIndex,a}function Qc(r){return Ft?gt(Ft.call(r)):{}}function Jc(r,a){var f=a?ss(r.buffer):r.buffer;return new r.constructor(f,r.byteOffset,r.length)}function wu(r,a){if(r!==a){var f=r!==l,v=r===null,x=r===r,L=$n(r),E=a!==l,$=a===null,F=a===a,ne=$n(a);if(!$&&!ne&&!L&&r>a||L&&E&&F&&!$&&!ne||v&&E&&F||!f&&F||!x)return 1;if(!v&&!L&&!ne&&r<a||ne&&f&&x&&!v&&!L||$&&f&&x||!E&&x||!F)return-1}return 0}function e0(r,a,f){for(var v=-1,x=r.criteria,L=a.criteria,E=x.length,$=f.length;++v<E;){var F=wu(x[v],L[v]);if(F){if(v>=$)return F;var ne=f[v];return F*(ne=="desc"?-1:1)}}return r.index-a.index}function t0(r,a,f,v){for(var x=-1,L=r.length,E=f.length,$=-1,F=a.length,ne=Bt(L-E,0),ie=V(F+ne),se=!v;++$<F;)ie[$]=a[$];for(;++x<E;)(se||x<L)&&(ie[f[x]]=r[x]);for(;ne--;)ie[$++]=r[x++];return ie}function us(r,a,f,v){for(var x=-1,L=r.length,E=-1,$=f.length,F=-1,ne=a.length,ie=Bt(L-$,0),se=V(ie+ne),ze=!v;++x<ie;)se[x]=r[x];for(var De=x;++F<ne;)se[De+F]=a[F];for(;++E<$;)(ze||x<L)&&(se[De+f[E]]=r[x++]);return se}function fr(r,a){var f=-1,v=r.length;for(a||(a=V(v));++f<v;)a[f]=r[f];return a}function Yr(r,a,f,v){var x=!f;f||(f={});for(var L=-1,E=a.length;++L<E;){var $=a[L],F=v?v(f[$],r[$],$,f,r):l;F===l&&(F=r[$]),x?jn(f,$,F):qa(f,$,F)}return f}function U1(r,a){return Yr(r,Su(r),a)}function r0(r,a){return Yr(r,h0(r),a)}function cs(r,a){return function(f,v){var x=lt(f)?h1:au,L=a?a():{};return x(f,r,He(v,2),L)}}function ua(r){return st(function(a,f){var v=-1,x=f.length,L=x>1?f[x-1]:l,E=x>2?f[2]:l;for(L=r.length>3&&typeof L=="function"?(x--,L):l,E&&y(f[0],f[1],E)&&(L=x<3?l:L,x=1),a=gt(a);++v<x;){var $=f[v];$&&r(a,$,v,L)}return a})}function n0(r,a){return function(f,v){if(f==null)return f;if(!bn(f))return r(f,v);for(var x=f.length,L=a?x:-1,E=gt(f);(a?L--:++L<x)&&v(E[L],L,E)!==!1;);return f}}function i0(r){return function(a,f,v){for(var x=-1,L=gt(a),E=v(a),$=E.length;$--;){var F=E[r?$:++x];if(f(L[F],F,L)===!1)break}return a}}function o0(r,a,f){var v=a&ge,x=da(r);function L(){var E=this&&this!==Ht&&this instanceof L?x:r;return E.apply(v?f:this,arguments)}return L}function a0(r){return function(a){a=Ot(a);var f=En(a)?fn(a):l,v=f?f[0]:a.charAt(0),x=f?Ki(f,1).join(""):a.slice(1);return v[r]()+x}}function ca(r){return function(a){return Zs(Pf(Ef(a).replace(Ns,"")),r,"")}}function da(r){return function(){var a=arguments;switch(a.length){case 0:return new r;case 1:return new r(a[0]);case 2:return new r(a[0],a[1]);case 3:return new r(a[0],a[1],a[2]);case 4:return new r(a[0],a[1],a[2],a[3]);case 5:return new r(a[0],a[1],a[2],a[3],a[4]);case 6:return new r(a[0],a[1],a[2],a[3],a[4],a[5]);case 7:return new r(a[0],a[1],a[2],a[3],a[4],a[5],a[6])}var f=Vn(r.prototype),v=r.apply(f,a);return jt(v)?v:f}}function xu(r,a,f){var v=da(r);function x(){for(var L=arguments.length,E=V(L),$=L,F=ha(x);$--;)E[$]=arguments[$];var ne=L<3&&E[0]!==F&&E[L-1]!==F?[]:Ei(E,F);if(L-=ne.length,L<f)return u0(r,a,tl,x.placeholder,l,E,ne,l,l,f-L);var ie=this&&this!==Ht&&this instanceof x?v:r;return rn(ie,this,E)}return x}function zu(r){return function(a,f,v){var x=gt(a);if(!bn(a)){var L=He(f,3);a=Ir(a),f=function($){return L(x[$],$,x)}}var E=r(a,f,v);return E>-1?x[L?a[E]:E]:l}}function l0(r){return di(function(a){var f=a.length,v=f,x=Br.prototype.thru;for(r&&a.reverse();v--;){var L=a[v];if(typeof L!="function")throw new Kr(b);if(x&&!E&&al(L)=="wrapper")var E=new Br([],!0)}for(v=E?v:f;++v<f;){L=a[v];var $=al(L),F=$=="wrapper"?yt(L):l;F&&M(F[0])&&F[1]==(Ie|pe|ke|je)&&!F[4].length&&F[9]==1?E=E[al(F[0])].apply(E,F[3]):E=L.length==1&&M(L)?E[$]():E.thru(L)}return function(){var ne=arguments,ie=ne[0];if(E&&ne.length==1&&lt(ie))return E.plant(ie).value();for(var se=0,ze=f?a[se].apply(this,ne):ie;++se<f;)ze=a[se].call(this,ze);return ze}})}function tl(r,a,f,v,x,L,E,$,F,ne){var ie=a&Ie,se=a&ge,ze=a&Me,De=a&(pe|de),Ve=a&Ye,ct=ze?l:da(r);function qe(){for(var pt=arguments.length,vt=V(pt),Dn=pt;Dn--;)vt[Dn]=arguments[Dn];if(De)var sn=ha(qe),Rn=m1(vt,sn);if(v&&(vt=t0(vt,v,x,De)),L&&(vt=us(vt,L,E,De)),pt-=Rn,De&&pt<ne){var lr=Ei(vt,sn);return u0(r,a,tl,qe.placeholder,f,vt,lr,$,F,ne-pt)}var pi=se?f:this,Eo=ze?pi[r]:r;return pt=vt.length,$?vt=ot(vt,$):Ve&&pt>1&&vt.reverse(),ie&&F<pt&&(vt.length=F),this&&this!==Ht&&this instanceof qe&&(Eo=ct||da(Eo)),Eo.apply(pi,vt)}return qe}function _o(r,a){return function(f,v){return ts(f,r,a(v),{})}}function rl(r,a){return function(f,v){var x;if(f===l&&v===l)return a;if(f!==l&&(x=f),v!==l){if(x===l)return v;typeof f=="string"||typeof v=="string"?(f=Mr(f),v=Mr(v)):(f=vu(f),v=vu(v)),x=r(f,v)}return x}}function fa(r){return di(function(a){return a=_t(a,Hr(He())),st(function(f){var v=this;return r(a,function(x){return rn(x,v,f)})})})}function ds(r,a){a=a===l?" ":Mr(a);var f=a.length;if(f<2)return f?pu(a,r):a;var v=pu(a,Ko(r/ho(a)));return En(a)?Ki(fn(v),0,r).join(""):v.slice(0,r)}function Z1(r,a,f,v){var x=a&ge,L=da(r);function E(){for(var $=-1,F=arguments.length,ne=-1,ie=v.length,se=V(ie+F),ze=this&&this!==Ht&&this instanceof E?L:r;++ne<ie;)se[ne]=v[ne];for(;F--;)se[ne++]=arguments[++$];return rn(ze,x?f:this,se)}return E}function s0(r){return function(a,f,v){return v&&typeof v!="number"&&y(a,f,v)&&(f=v=l),a=To(a),f===l?(f=a,a=0):f=To(f),v=v===l?a<f?1:-1:To(v),Yc(a,f,v,r)}}function Mt(r){return function(a,f){return typeof a=="string"&&typeof f=="string"||(a=Xn(a),f=Xn(f)),r(a,f)}}function u0(r,a,f,v,x,L,E,$,F,ne){var ie=a&pe,se=ie?E:l,ze=ie?l:E,De=ie?L:l,Ve=ie?l:L;a|=ie?ke:Ee,a&=~(ie?Ee:ke),a&Te||(a&=~(ge|Me));var ct=[r,a,x,De,se,Ve,ze,$,F,ne],qe=f.apply(l,ct);return M(r)&&Xt(qe,ct),qe.placeholder=v,Tr(qe,r,a)}function nl(r){var a=nr[r];return function(f,v){if(f=Xn(f),v=v==null?0:mr(ut(v),292),v&&Oc(f)){var x=(Ot(f)+"e").split("e"),L=a(x[0]+"e"+(+x[1]+v));return x=(Ot(L)+"e").split("e"),+(x[0]+"e"+(+x[1]-v))}return a(f)}}var il=yo&&1/Nl(new yo([,-0]))[1]==me?function(r){return new yo(r)}:nd;function gn(r){return function(a){var f=kr(a);return f==Yt?Rl(a):f==et?xc(a):oi(a,r(a))}}function vn(r,a,f,v,x,L,E,$){var F=a&Me;if(!F&&typeof r!="function")throw new Kr(b);var ne=v?v.length:0;if(ne||(a&=~(ke|Ee),v=x=l),E=E===l?E:Bt(ut(E),0),$=$===l?$:ut($),ne-=x?x.length:0,a&Ee){var ie=v,se=x;v=x=l}var ze=F?l:yt(r),De=[r,a,f,v,x,ie,se,L,E,$];if(ze&&we(De,ze),r=De[0],a=De[1],f=De[2],v=De[3],x=De[4],$=De[9]=De[9]===l?F?0:r.length:Bt(De[9]-ne,0),!$&&a&(pe|de)&&(a&=~(pe|de)),!a||a==ge)var Ve=o0(r,a,f);else a==pe||a==de?Ve=xu(r,a,$):(a==ke||a==(ge|ke))&&!x.length?Ve=Z1(r,a,f,v):Ve=tl.apply(l,De);var ct=ze?Qa:Xt;return Tr(ct(Ve,De),r,a)}function fs(r,a,f,v){return r===l||hi(r,Ai[f])&&!tt.call(v,f)?a:r}function Lu(r,a,f,v,x,L){return jt(r)&&jt(a)&&(L.set(a,r),ns(r,a,l,Lu,L),L.delete(a)),r}function c0(r){return ku(r)?l:r}function _u(r,a,f,v,x,L){var E=f&re,$=r.length,F=a.length;if($!=F&&!(E&&F>$))return!1;var ne=L.get(r),ie=L.get(a);if(ne&&ie)return ne==a&&ie==r;var se=-1,ze=!0,De=f&ve?new wr:l;for(L.set(r,a),L.set(a,r);++se<$;){var Ve=r[se],ct=a[se];if(v)var qe=E?v(ct,Ve,se,a,r,L):v(Ve,ct,se,r,a,L);if(qe!==l){if(qe)continue;ze=!1;break}if(De){if(!uo(a,function(pt,vt){if(!jr(De,vt)&&(Ve===pt||x(Ve,pt,f,v,L)))return De.push(vt)})){ze=!1;break}}else if(!(Ve===ct||x(Ve,ct,f,v,L))){ze=!1;break}}return L.delete(r),L.delete(a),ze}function d0(r,a,f,v,x,L,E){switch(f){case Ln:if(r.byteLength!=a.byteLength||r.byteOffset!=a.byteOffset)return!1;r=r.buffer,a=a.buffer;case pr:return!(r.byteLength!=a.byteLength||!L(new go(r),new go(a)));case Ue:case nt:case Ke:return hi(+r,+a);case We:return r.name==a.name&&r.message==a.message;case er:case W:return r==a+"";case Yt:var $=Rl;case et:var F=v&re;if($||($=Nl),r.size!=a.size&&!F)return!1;var ne=E.get(r);if(ne)return ne==a;v|=ve,E.set(r,a);var ie=_u($(r),$(a),v,x,L,E);return E.delete(r),ie;case ae:if(Ft)return Ft.call(r)==Ft.call(a)}return!1}function f0(r,a,f,v,x,L){var E=f&re,$=ol(r),F=$.length,ne=ol(a),ie=ne.length;if(F!=ie&&!E)return!1;for(var se=F;se--;){var ze=$[se];if(!(E?ze in a:tt.call(a,ze)))return!1}var De=L.get(r),Ve=L.get(a);if(De&&Ve)return De==a&&Ve==r;var ct=!0;L.set(r,a),L.set(a,r);for(var qe=E;++se<F;){ze=$[se];var pt=r[ze],vt=a[ze];if(v)var Dn=E?v(vt,pt,ze,a,r,L):v(pt,vt,ze,r,a,L);if(!(Dn===l?pt===vt||x(pt,vt,f,v,L):Dn)){ct=!1;break}qe||(qe=ze=="constructor")}if(ct&&!qe){var sn=r.constructor,Rn=a.constructor;sn!=Rn&&"constructor"in r&&"constructor"in a&&!(typeof sn=="function"&&sn instanceof sn&&typeof Rn=="function"&&Rn instanceof Rn)&&(ct=!1)}return L.delete(r),L.delete(a),ct}function di(r){return Or($e(r,l,nf),r+"")}function ol(r){return xo(r,Ir,Su)}function hs(r){return xo(r,mn,h0)}var yt=Gn?function(r){return Gn.get(r)}:nd;function al(r){for(var a=r.name+"",f=Qo[a],v=tt.call(Qo,a)?f.length:0;v--;){var x=f[v],L=x.func;if(L==null||L==r)return x.name}return a}function ha(r){var a=tt.call(z,"placeholder")?z:r;return a.placeholder}function He(){var r=z.iteratee||td;return r=r===td?Gc:r,arguments.length?r(arguments[0],arguments[1]):r}function ps(r,a){var f=r.__data__;return _(a)?f[typeof a=="string"?"string":"hash"]:f.map}function pa(r){for(var a=Ir(r),f=a.length;f--;){var v=a[f],x=r[v];a[f]=[v,x,te(x)]}return a}function So(r,a){var f=Ys(r,a);return oa(f)?f:l}function Zt(r){var a=tt.call(r,Ri),f=r[Ri];try{r[Ri]=l;var v=!0}catch{}var x=po.call(r);return v&&(a?r[Ri]=f:delete r[Ri]),x}var Su=Ni?function(r){return r==null?[]:(r=gt(r),ki(Ni(r),function(a){return Wl.call(r,a)}))}:id,h0=Ni?function(r){for(var a=[];r;)Oi(a,Su(r)),r=qo(r);return a}:id,kr=dr;(Bi&&kr(new Bi(new ArrayBuffer(1)))!=Ln||Xo&&kr(new Xo)!=Yt||Zl&&kr(Zl.resolve())!=Lr||yo&&kr(new yo)!=et||Za&&kr(new Za)!=Xe)&&(kr=function(r){var a=dr(r),f=a==wt?r.constructor:l,v=f?Et(f):"";if(v)switch(v){case L1:return Ln;case _1:return Yt;case S1:return Lr;case M1:return et;case k1:return Xe}return a});function gs(r,a,f){for(var v=-1,x=f.length;++v<x;){var L=f[v],E=L.size;switch(L.type){case"drop":r+=E;break;case"dropRight":a-=E;break;case"take":a=mr(a,r+E);break;case"takeRight":r=Bt(r,a-E);break}}return{start:r,end:a}}function e(r){var a=r.match(Ma);return a?a[1].split(Si):[]}function t(r,a,f){a=An(a,r);for(var v=-1,x=a.length,L=!1;++v<x;){var E=St(a[v]);if(!(L=r!=null&&f(r,E)))break;r=r[E]}return L||++v!=x?L:(x=r==null?0:r.length,!!x&&y0(x)&&m(E,x)&&(lt(r)||ll(r)))}function o(r){var a=r.length,f=new r.constructor(a);return a&&typeof r[0]=="string"&&tt.call(r,"index")&&(f.index=r.index,f.input=r.input),f}function n(r){return typeof r.constructor=="function"&&!q(r)?Vn(qo(r)):{}}function u(r,a,f){var v=r.constructor;switch(a){case pr:return ss(r);case Ue:case nt:return new v(+r);case Ln:return W1(r,f);case Dr:case Rt:case ri:case _r:case _n:case Ne:case Li:case gr:case Ze:return Jc(r,f);case Yt:return new v;case Ke:case W:return new v(r);case er:return Cu(r);case et:return new v;case ae:return Qc(r)}}function h(r,a){var f=a.length;if(!f)return r;var v=f-1;return a[v]=(f>1?"& ":"")+a[v],a=a.join(f>2?", ":" "),r.replace(zl,`{
1593
+ */(function(s,i){(function(){var l,d="4.17.21",c=200,g="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",b="Expected a function",I="Invalid `variable` option passed into `_.template`",T="__lodash_hash_undefined__",k=500,A="__lodash_placeholder__",B=1,U=2,Z=4,re=1,ve=2,ge=1,Me=2,Te=4,pe=8,de=16,ke=32,Ee=64,Ie=128,je=256,Ye=512,be=30,ye="...",Qe=800,V=16,P=1,S=2,ee=3,me=1/0,rt=9007199254740991,Lt=17976931348623157e292,Kt=0/0,It=4294967295,Xr=It-1,Ut=It>>>1,At=[["ary",Ie],["bind",ge],["bindKey",Me],["curry",pe],["curryRight",de],["flip",Ye],["partial",ke],["partialRight",Ee],["rearg",je]],at="[object Arguments]",_e="[object Array]",Fe="[object AsyncFunction]",Ue="[object Boolean]",nt="[object Date]",it="[object DOMException]",We="[object Error]",Nt="[object Function]",$r="[object GeneratorFunction]",Yt="[object Map]",Ke="[object Number]",ht="[object Null]",wt="[object Object]",_r="[object Promise]",Vr="[object Proxy]",er="[object RegExp]",et="[object Set]",W="[object String]",ae="[object Symbol]",K="[object Undefined]",Xe="[object WeakMap]",tr="[object WeakSet]",pr="[object ArrayBuffer]",Ln="[object DataView]",Dr="[object Float32Array]",Rt="[object Float64Array]",ri="[object Int8Array]",Sr="[object Int16Array]",_n="[object Int32Array]",Ne="[object Uint8Array]",Li="[object Uint8ClampedArray]",gr="[object Uint16Array]",Ze="[object Uint32Array]",Gt=/\b__p \+= '';/g,No=/\b(__p \+=) '' \+/g,sr=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Sn=/&(?:amp|lt|gt|quot|#39);/g,ur=/[&<>"']/g,Ho=RegExp(Sn.source),Qr=RegExp(ur.source),io=/<%-([\s\S]+?)%>/g,_i=/<%([\s\S]+?)%>/g,_a=/<%=([\s\S]+?)%>/g,Sa=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Rr=/^\w*$/,wl=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,oo=/[\\^$.*+?()[\]{}|]/g,Hn=RegExp(oo.source),ao=/^\s+/,xl=/\s/,zl=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Ma=/\{\n\/\* \[wrapped with (.+)\] \*/,Si=/,? & /,dn=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Jr=/[()=,{}\[\]\/\s]/,Ll=/\\(\\)?/g,ni=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,lo=/\w*$/,Bo=/^[-+]0x[0-9a-f]+$/i,Mn=/^0b[01]+$/i,kn=/^\[object .+?Constructor\]$/,en=/^0o[0-7]+$/i,ka=/^(?:0|[1-9]\d*)$/,Oa=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,$t=/($^)/,Oe=/['\n\r\u2028\u2029\\]/g,tn="\\ud800-\\udfff",Ta="\\u0300-\\u036f",Gr="\\ufe20-\\ufe2f",bt="\\u20d0-\\u20ff",On=Ta+Gr+bt,Mi="\\u2700-\\u27bf",Fo="a-z\\xdf-\\xf6\\xf8-\\xff",oe="\\xac\\xb1\\xd7\\xf7",w="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",O="\\u2000-\\u206f",Q=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",le="A-Z\\xc0-\\xd6\\xd8-\\xde",Ve="\\ufe0e\\ufe0f",dt=oe+w+O+Q,Ce="['\u2019]",vr="["+tn+"]",qr="["+dt+"]",ii="["+On+"]",Tn="\\d+",tc="["+Mi+"]",$s="["+Fo+"]",Wo="[^"+tn+dt+Tn+Mi+Fo+le+"]",Ea="\\ud83c[\\udffb-\\udfff]",rc="(?:"+ii+"|"+Ea+")",_l="[^"+tn+"]",Sl="(?:\\ud83c[\\udde6-\\uddff]){2}",Ml="[\\ud800-\\udbff][\\udc00-\\udfff]",so="["+le+"]",Ds="\\u200d",nc="(?:"+$s+"|"+Wo+")",a1="(?:"+so+"|"+Wo+")",Rs="(?:"+Ce+"(?:d|ll|m|re|s|t|ve))?",Bn="(?:"+Ce+"(?:D|LL|M|RE|S|T|VE))?",ic=rc+"?",oc="["+Ve+"]?",kl="(?:"+Ds+"(?:"+[_l,Sl,Ml].join("|")+")"+oc+ic+")*",Pa="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",l1="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",ac=oc+ic+kl,s1="(?:"+[tc,Sl,Ml].join("|")+")"+ac,u1="(?:"+[_l+ii+"?",ii,Sl,Ml,vr].join("|")+")",Ns=RegExp(Ce,"g"),lc=RegExp(ii,"g"),Hs=RegExp(Ea+"(?="+Ea+")|"+u1+ac,"g"),sc=RegExp([so+"?"+$s+"+"+Rs+"(?="+[qr,so,"$"].join("|")+")",a1+"+"+Bn+"(?="+[qr,so+nc,"$"].join("|")+")",so+"?"+nc+"+"+Rs,so+"+"+Bn,l1,Pa,Tn,s1].join("|"),"g"),uc=RegExp("["+Ds+tn+On+Ve+"]"),Ol=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Tl=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Bs=-1,Dt={};Dt[Dr]=Dt[Rt]=Dt[ri]=Dt[Sr]=Dt[_n]=Dt[Ne]=Dt[Li]=Dt[gr]=Dt[Ze]=!0,Dt[at]=Dt[_e]=Dt[pr]=Dt[Ue]=Dt[Ln]=Dt[nt]=Dt[We]=Dt[Nt]=Dt[Yt]=Dt[Ke]=Dt[wt]=Dt[er]=Dt[et]=Dt[W]=Dt[Xe]=!1;var Tt={};Tt[at]=Tt[_e]=Tt[pr]=Tt[Ln]=Tt[Ue]=Tt[nt]=Tt[Dr]=Tt[Rt]=Tt[ri]=Tt[Sr]=Tt[_n]=Tt[Yt]=Tt[Ke]=Tt[wt]=Tt[er]=Tt[et]=Tt[W]=Tt[ae]=Tt[Ne]=Tt[Li]=Tt[gr]=Tt[Ze]=!0,Tt[We]=Tt[Nt]=Tt[Xe]=!1;var El={\u00C0:"A",\u00C1:"A",\u00C2:"A",\u00C3:"A",\u00C4:"A",\u00C5:"A",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u00E3:"a",\u00E4:"a",\u00E5:"a",\u00C7:"C",\u00E7:"c",\u00D0:"D",\u00F0:"d",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u00CB:"E",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u00EB:"e",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u00CF:"I",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u00EF:"i",\u00D1:"N",\u00F1:"n",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u00D5:"O",\u00D6:"O",\u00D8:"O",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u00F5:"o",\u00F6:"o",\u00F8:"o",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u00DC:"U",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u00FC:"u",\u00DD:"Y",\u00FD:"y",\u00FF:"y",\u00C6:"Ae",\u00E6:"ae",\u00DE:"Th",\u00FE:"th",\u00DF:"ss",\u0100:"A",\u0102:"A",\u0104:"A",\u0101:"a",\u0103:"a",\u0105:"a",\u0106:"C",\u0108:"C",\u010A:"C",\u010C:"C",\u0107:"c",\u0109:"c",\u010B:"c",\u010D:"c",\u010E:"D",\u0110:"D",\u010F:"d",\u0111:"d",\u0112:"E",\u0114:"E",\u0116:"E",\u0118:"E",\u011A:"E",\u0113:"e",\u0115:"e",\u0117:"e",\u0119:"e",\u011B:"e",\u011C:"G",\u011E:"G",\u0120:"G",\u0122:"G",\u011D:"g",\u011F:"g",\u0121:"g",\u0123:"g",\u0124:"H",\u0126:"H",\u0125:"h",\u0127:"h",\u0128:"I",\u012A:"I",\u012C:"I",\u012E:"I",\u0130:"I",\u0129:"i",\u012B:"i",\u012D:"i",\u012F:"i",\u0131:"i",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u0138:"k",\u0139:"L",\u013B:"L",\u013D:"L",\u013F:"L",\u0141:"L",\u013A:"l",\u013C:"l",\u013E:"l",\u0140:"l",\u0142:"l",\u0143:"N",\u0145:"N",\u0147:"N",\u014A:"N",\u0144:"n",\u0146:"n",\u0148:"n",\u014B:"n",\u014C:"O",\u014E:"O",\u0150:"O",\u014D:"o",\u014F:"o",\u0151:"o",\u0154:"R",\u0156:"R",\u0158:"R",\u0155:"r",\u0157:"r",\u0159:"r",\u015A:"S",\u015C:"S",\u015E:"S",\u0160:"S",\u015B:"s",\u015D:"s",\u015F:"s",\u0161:"s",\u0162:"T",\u0164:"T",\u0166:"T",\u0163:"t",\u0165:"t",\u0167:"t",\u0168:"U",\u016A:"U",\u016C:"U",\u016E:"U",\u0170:"U",\u0172:"U",\u0169:"u",\u016B:"u",\u016D:"u",\u016F:"u",\u0171:"u",\u0173:"u",\u0174:"W",\u0175:"w",\u0176:"Y",\u0177:"y",\u0178:"Y",\u0179:"Z",\u017B:"Z",\u017D:"Z",\u017A:"z",\u017C:"z",\u017E:"z",\u0132:"IJ",\u0133:"ij",\u0152:"Oe",\u0153:"oe",\u0149:"'n",\u017F:"s"},c1={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},cc={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},Fn={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},d1=parseFloat,f1=parseInt,Pl=typeof ws=="object"&&ws&&ws.Object===Object&&ws,dc=typeof self=="object"&&self&&self.Object===Object&&self,Ht=Pl||dc||Function("return this")(),Ia=i&&!i.nodeType&&i,Nr=Ia&&!0&&s&&!s.nodeType&&s,Aa=Nr&&Nr.exports===Ia,$a=Aa&&Pl.process,br=function(){try{var H=Nr&&Nr.require&&Nr.require("util").types;return H||$a&&$a.binding&&$a.binding("util")}catch{}}(),fc=br&&br.isArrayBuffer,hc=br&&br.isDate,pc=br&&br.isMap,gc=br&&br.isRegExp,Fs=br&&br.isSet,Ws=br&&br.isTypedArray;function rn(H,J,G){switch(G.length){case 0:return H.call(J);case 1:return H.call(J,G[0]);case 2:return H.call(J,G[0],G[1]);case 3:return H.call(J,G[0],G[1],G[2])}return H.apply(J,G)}function h1(H,J,G,Se){for(var Je=-1,Ct=H==null?0:H.length;++Je<Ct;){var nr=H[Je];J(Se,nr,G(nr),H)}return Se}function fn(H,J){for(var G=-1,Se=H==null?0:H.length;++G<Se&&J(H[G],G,H)!==!1;);return H}function p1(H,J){for(var G=H==null?0:H.length;G--&&J(H[G],G,H)!==!1;);return H}function Us(H,J){for(var G=-1,Se=H==null?0:H.length;++G<Se;)if(!J(H[G],G,H))return!1;return!0}function ki(H,J){for(var G=-1,Se=H==null?0:H.length,Je=0,Ct=[];++G<Se;){var nr=H[G];J(nr,G,H)&&(Ct[Je++]=nr)}return Ct}function Da(H,J){var G=H==null?0:H.length;return!!G&&co(H,J,0)>-1}function Uo(H,J,G){for(var Se=-1,Je=H==null?0:H.length;++Se<Je;)if(G(J,H[Se]))return!0;return!1}function _t(H,J){for(var G=-1,Se=H==null?0:H.length,Je=Array(Se);++G<Se;)Je[G]=J(H[G],G,H);return Je}function Oi(H,J){for(var G=-1,Se=J.length,Je=H.length;++G<Se;)H[Je+G]=J[G];return H}function Zs(H,J,G,Se){var Je=-1,Ct=H==null?0:H.length;for(Se&&Ct&&(G=H[++Je]);++Je<Ct;)G=J(G,H[Je],Je,H);return G}function g1(H,J,G,Se){var Je=H==null?0:H.length;for(Se&&Je&&(G=H[--Je]);Je--;)G=J(G,H[Je],Je,H);return G}function uo(H,J){for(var G=-1,Se=H==null?0:H.length;++G<Se;)if(J(H[G],G,H))return!0;return!1}var rr=Gs("length");function v1(H){return H.split("")}function vc(H){return H.match(dn)||[]}function Zo(H,J,G){var Se;return G(H,function(Je,Ct,nr){if(J(Je,Ct,nr))return Se=Ct,!1}),Se}function Il(H,J,G,Se){for(var Je=H.length,Ct=G+(Se?1:-1);Se?Ct--:++Ct<Je;)if(J(H[Ct],Ct,H))return Ct;return-1}function co(H,J,G){return J===J?zc(H,J,G):Il(H,Al,G)}function b1(H,J,G,Se){for(var Je=G-1,Ct=H.length;++Je<Ct;)if(Se(H[Je],J))return Je;return-1}function Al(H){return H!==H}function Vs(H,J){var G=H==null?0:H.length;return G?Ks(H,J)/G:Kt}function Gs(H){return function(J){return J==null?l:J[H]}}function qs(H){return function(J){return H==null?l:H[J]}}function js(H,J,G,Se,Je){return Je(H,function(Ct,nr,gt){G=Se?(Se=!1,Ct):J(G,Ct,nr,gt)}),G}function bc(H,J){var G=H.length;for(H.sort(J);G--;)H[G]=H[G].value;return H}function Ks(H,J){for(var G,Se=-1,Je=H.length;++Se<Je;){var Ct=J(H[Se]);Ct!==l&&(G=G===l?Ct:G+Ct)}return G}function fo(H,J){for(var G=-1,Se=Array(H);++G<H;)Se[G]=J(G);return Se}function oi(H,J){return _t(J,function(G){return[G,H[G]]})}function Ra(H){return H&&H.slice(0,Hl(H)+1).replace(ao,"")}function Hr(H){return function(J){return H(J)}}function $l(H,J){return _t(J,function(G){return H[G]})}function jr(H,J){return H.has(J)}function Ti(H,J){for(var G=-1,Se=H.length;++G<Se&&co(J,H[G],0)>-1;);return G}function Dl(H,J){for(var G=H.length;G--&&co(J,H[G],0)>-1;);return G}function m1(H,J){for(var G=H.length,Se=0;G--;)H[G]===J&&++Se;return Se}var mc=qs(El),y1=qs(c1);function yc(H){return"\\"+Fn[H]}function Ys(H,J){return H==null?l:H[J]}function En(H){return uc.test(H)}function Wn(H){return Ol.test(H)}function Cc(H){for(var J,G=[];!(J=H.next()).done;)G.push(J.value);return G}function Rl(H){var J=-1,G=Array(H.size);return H.forEach(function(Se,Je){G[++J]=[Je,Se]}),G}function wc(H,J){return function(G){return H(J(G))}}function Ei(H,J){for(var G=-1,Se=H.length,Je=0,Ct=[];++G<Se;){var nr=H[G];(nr===J||nr===A)&&(H[G]=A,Ct[Je++]=G)}return Ct}function Nl(H){var J=-1,G=Array(H.size);return H.forEach(function(Se){G[++J]=Se}),G}function xc(H){var J=-1,G=Array(H.size);return H.forEach(function(Se){G[++J]=[Se,Se]}),G}function zc(H,J,G){for(var Se=G-1,Je=H.length;++Se<Je;)if(H[Se]===J)return Se;return-1}function Na(H,J,G){for(var Se=G+1;Se--;)if(H[Se]===J)return Se;return Se}function ho(H){return En(H)?Lc(H):rr(H)}function hn(H){return En(H)?Fl(H):v1(H)}function Hl(H){for(var J=H.length;J--&&xl.test(H.charAt(J)););return J}var Bl=qs(cc);function Lc(H){for(var J=Hs.lastIndex=0;Hs.test(H);)++J;return J}function Fl(H){return H.match(Hs)||[]}function Pn(H){return H.match(sc)||[]}var _c=function H(J){J=J==null?Ht:Pi.defaults(Ht.Object(),J,Pi.pick(Ht,Tl));var G=J.Array,Se=J.Date,Je=J.Error,Ct=J.Function,nr=J.Math,gt=J.Object,Ii=J.RegExp,Vo=J.String,Kr=J.TypeError,Go=G.prototype,Sc=Ct.prototype,Ai=gt.prototype,Un=J["__core-js_shared__"],Zn=Sc.toString,tt=Ai.hasOwnProperty,$i=0,ai=function(){var r=/[^.]+$/.exec(Un&&Un.keys&&Un.keys.IE_PROTO||"");return r?"Symbol(src)_1."+r:""}(),po=Ai.toString,C1=Zn.call(gt),Mc=Ht._,Ha=Ii("^"+Zn.call(tt).replace(oo,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ba=Aa?J.Buffer:l,li=J.Symbol,go=J.Uint8Array,kc=Ba?Ba.allocUnsafe:l,qo=wc(gt.getPrototypeOf,gt),Xs=gt.create,Wl=Ai.propertyIsEnumerable,jo=Go.splice,vo=li?li.isConcatSpreadable:l,Di=li?li.iterator:l,Ri=li?li.toStringTag:l,bo=function(){try{var r=So(gt,"defineProperty");return r({},"",{}),r}catch{}}(),w1=J.clearTimeout!==Ht.clearTimeout&&J.clearTimeout,x1=Se&&Se.now!==Ht.Date.now&&Se.now,z1=J.setTimeout!==Ht.setTimeout&&J.setTimeout,Ko=nr.ceil,Yo=nr.floor,Ni=gt.getOwnPropertySymbols,Fa=Ba?Ba.isBuffer:l,Oc=J.isFinite,Ul=Go.join,Tc=wc(gt.keys,gt),Bt=nr.max,mr=nr.min,mo=Se.now,Wa=J.parseInt,Hi=nr.random,Ua=Go.reverse,Bi=So(J,"DataView"),Xo=So(J,"Map"),Zl=So(J,"Promise"),yo=So(J,"Set"),Za=So(J,"WeakMap"),In=So(gt,"create"),Vn=Za&&new Za,Qo={},L1=Et(Bi),_1=Et(Xo),S1=Et(Zl),M1=Et(yo),k1=Et(Za),yr=li?li.prototype:l,Ft=yr?yr.valueOf:l,Cr=yr?yr.toString:l;function z(r){if(Qt(r)&&!lt(r)&&!(r instanceof ft)){if(r instanceof Br)return r;if(tt.call(r,"__wrapped__"))return Pr(r)}return new Br(r)}var Gn=function(){function r(){}return function(a){if(!jt(a))return{};if(Xs)return Xs(a);r.prototype=a;var f=new r;return r.prototype=l,f}}();function Vl(){}function Br(r,a){this.__wrapped__=r,this.__actions__=[],this.__chain__=!!a,this.__index__=0,this.__values__=l}z.templateSettings={escape:io,evaluate:_i,interpolate:_a,variable:"",imports:{_:z}},z.prototype=Vl.prototype,z.prototype.constructor=z,Br.prototype=Gn(Vl.prototype),Br.prototype.constructor=Br;function ft(r){this.__wrapped__=r,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=It,this.__views__=[]}function O1(){var r=new ft(this.__wrapped__);return r.__actions__=fr(this.__actions__),r.__dir__=this.__dir__,r.__filtered__=this.__filtered__,r.__iteratees__=fr(this.__iteratees__),r.__takeCount__=this.__takeCount__,r.__views__=fr(this.__views__),r}function T1(){if(this.__filtered__){var r=new ft(this);r.__dir__=-1,r.__filtered__=!0}else r=this.clone(),r.__dir__*=-1;return r}function Qs(){var r=this.__wrapped__.value(),a=this.__dir__,f=lt(r),v=a<0,x=f?r.length:0,L=gs(0,x,this.__views__),E=L.start,$=L.end,F=$-E,ne=v?$:E-1,ie=this.__iteratees__,se=ie.length,ze=0,De=mr(F,this.__takeCount__);if(!f||!v&&x==F&&De==F)return Xc(r,this.__actions__);var Ge=[];e:for(;F--&&ze<De;){ne+=a;for(var ct=-1,qe=r[ne];++ct<se;){var pt=ie[ct],vt=pt.iteratee,Dn=pt.type,sn=vt(qe);if(Dn==S)qe=sn;else if(!sn){if(Dn==P)continue e;break e}}Ge[ze++]=qe}return Ge}ft.prototype=Gn(Vl.prototype),ft.prototype.constructor=ft;function Fi(r){var a=-1,f=r==null?0:r.length;for(this.clear();++a<f;){var v=r[a];this.set(v[0],v[1])}}function Js(){this.__data__=In?In(null):{},this.size=0}function E1(r){var a=this.has(r)&&delete this.__data__[r];return this.size-=a?1:0,a}function eu(r){var a=this.__data__;if(In){var f=a[r];return f===T?l:f}return tt.call(a,r)?a[r]:l}function tu(r){var a=this.__data__;return In?a[r]!==l:tt.call(a,r)}function Ec(r,a){var f=this.__data__;return this.size+=this.has(r)?0:1,f[r]=In&&a===l?T:a,this}Fi.prototype.clear=Js,Fi.prototype.delete=E1,Fi.prototype.get=eu,Fi.prototype.has=tu,Fi.prototype.set=Ec;function qn(r){var a=-1,f=r==null?0:r.length;for(this.clear();++a<f;){var v=r[a];this.set(v[0],v[1])}}function ru(){this.__data__=[],this.size=0}function Pc(r){var a=this.__data__,f=Co(a,r);if(f<0)return!1;var v=a.length-1;return f==v?a.pop():jo.call(a,f,1),--this.size,!0}function Va(r){var a=this.__data__,f=Co(a,r);return f<0?l:a[f][1]}function P1(r){return Co(this.__data__,r)>-1}function Gl(r,a){var f=this.__data__,v=Co(f,r);return v<0?(++this.size,f.push([r,a])):f[v][1]=a,this}qn.prototype.clear=ru,qn.prototype.delete=Pc,qn.prototype.get=Va,qn.prototype.has=P1,qn.prototype.set=Gl;function qt(r){var a=-1,f=r==null?0:r.length;for(this.clear();++a<f;){var v=r[a];this.set(v[0],v[1])}}function Ic(){this.size=0,this.__data__={hash:new Fi,map:new(Xo||qn),string:new Fi}}function I1(r){var a=ps(this,r).delete(r);return this.size-=a?1:0,a}function Ac(r){return ps(this,r).get(r)}function nn(r){return ps(this,r).has(r)}function mt(r,a){var f=ps(this,r),v=f.size;return f.set(r,a),this.size+=f.size==v?0:1,this}qt.prototype.clear=Ic,qt.prototype.delete=I1,qt.prototype.get=Ac,qt.prototype.has=nn,qt.prototype.set=mt;function wr(r){var a=-1,f=r==null?0:r.length;for(this.__data__=new qt;++a<f;)this.add(r[a])}function Wi(r){return this.__data__.set(r,T),this}function Ui(r){return this.__data__.has(r)}wr.prototype.add=wr.prototype.push=Wi,wr.prototype.has=Ui;function pn(r){var a=this.__data__=new qn(r);this.size=a.size}function nu(){this.__data__=new qn,this.size=0}function $c(r){var a=this.__data__,f=a.delete(r);return this.size=a.size,f}function A1(r){return this.__data__.get(r)}function iu(r){return this.__data__.has(r)}function Ga(r,a){var f=this.__data__;if(f instanceof qn){var v=f.__data__;if(!Xo||v.length<c-1)return v.push([r,a]),this.size=++f.size,this;f=this.__data__=new qt(v)}return f.set(r,a),this.size=f.size,this}pn.prototype.clear=nu,pn.prototype.delete=$c,pn.prototype.get=A1,pn.prototype.has=iu,pn.prototype.set=Ga;function ou(r,a){var f=lt(r),v=!f&&ll(r),x=!f&&!v&&ba(r),L=!f&&!v&&!x&&bs(r),E=f||v||x||L,$=E?fo(r.length,Vo):[],F=$.length;for(var ne in r)(a||tt.call(r,ne))&&!(E&&(ne=="length"||x&&(ne=="offset"||ne=="parent")||L&&(ne=="buffer"||ne=="byteLength"||ne=="byteOffset")||m(ne,F)))&&$.push(ne);return $}function ql(r){var a=r.length;return a?r[is(0,a-1)]:l}function Zi(r,a){return hr(fr(r),wo(a,0,r.length))}function Dc(r){return hr(fr(r))}function jl(r,a,f){(f!==l&&!hi(r[a],f)||f===l&&!(a in r))&&jn(r,a,f)}function qa(r,a,f){var v=r[a];(!(tt.call(r,a)&&hi(v,f))||f===l&&!(a in r))&&jn(r,a,f)}function Co(r,a){for(var f=r.length;f--;)if(hi(r[f][0],a))return f;return-1}function au(r,a,f,v){return on(r,function(x,L,E){a(v,x,f(x),E)}),v}function lu(r,a){return r&&Yr(a,Ar(a),r)}function $1(r,a){return r&&Yr(a,yn(a),r)}function jn(r,a,f){a=="__proto__"&&bo?bo(r,a,{configurable:!0,enumerable:!0,value:f,writable:!0}):r[a]=f}function su(r,a){for(var f=-1,v=a.length,x=G(v),L=r==null;++f<v;)x[f]=L?l:X1(r,a[f]);return x}function wo(r,a,f){return r===r&&(f!==l&&(r=r<=f?r:f),a!==l&&(r=r>=a?r:a)),r}function Fr(r,a,f,v,x,L){var E,$=a&B,F=a&U,ne=a&Z;if(f&&(E=x?f(r,v,x,L):f(r)),E!==l)return E;if(!jt(r))return r;var ie=lt(r);if(ie){if(E=o(r),!$)return fr(r,E)}else{var se=Or(r),ze=se==Nt||se==$r;if(ba(r))return yu(r,$);if(se==wt||se==at||ze&&!x){if(E=F||ze?{}:n(r),!$)return F?r0(r,$1(E,r)):U1(r,lu(E,r))}else{if(!Tt[se])return x?r:{};E=u(r,se,$)}}L||(L=new pn);var De=L.get(r);if(De)return De;L.set(r,E),wf(r)?r.forEach(function(qe){E.add(Fr(qe,a,f,qe,r,L))}):yf(r)&&r.forEach(function(qe,pt){E.set(pt,Fr(qe,a,f,pt,r,L))});var Ge=ne?F?hs:ol:F?yn:Ar,ct=ie?l:Ge(r);return fn(ct||r,function(qe,pt){ct&&(pt=qe,qe=r[pt]),qa(E,pt,Fr(qe,a,f,pt,r,L))}),E}function Rc(r){var a=Ar(r);return function(f){return Nc(f,r,a)}}function Nc(r,a,f){var v=f.length;if(r==null)return!v;for(r=gt(r);v--;){var x=f[v],L=a[x],E=r[x];if(E===l&&!(x in r)||!L(E))return!1}return!0}function Hc(r,a,f){if(typeof r!="function")throw new Kr(b);return kt(function(){r.apply(l,f)},a)}function Jo(r,a,f,v){var x=-1,L=Da,E=!0,$=r.length,F=[],ne=a.length;if(!$)return F;f&&(a=_t(a,Hr(f))),v?(L=Uo,E=!1):a.length>=c&&(L=jr,E=!1,a=new wr(a));e:for(;++x<$;){var ie=r[x],se=f==null?ie:f(ie);if(ie=v||ie!==0?ie:0,E&&se===se){for(var ze=ne;ze--;)if(a[ze]===se)continue e;F.push(ie)}else L(a,se,v)||F.push(ie)}return F}var on=n0(an),Kl=n0(Ql,!0);function Yl(r,a){var f=!0;return on(r,function(v,x,L){return f=!!a(v,x,L),f}),f}function ja(r,a,f){for(var v=-1,x=r.length;++v<x;){var L=r[v],E=a(L);if(E!=null&&($===l?E===E&&!$n(E):f(E,$)))var $=E,F=L}return F}function uu(r,a,f,v){var x=r.length;for(f=ut(f),f<0&&(f=-f>x?0:x+f),v=v===l||v>x?x:ut(v),v<0&&(v+=x),v=f>v?0:zf(v);f<v;)r[f++]=a;return r}function cu(r,a){var f=[];return on(r,function(v,x,L){a(v,x,L)&&f.push(v)}),f}function xr(r,a,f,v,x){var L=-1,E=r.length;for(f||(f=p),x||(x=[]);++L<E;){var $=r[L];a>0&&f($)?a>1?xr($,a-1,f,v,x):Oi(x,$):v||(x[x.length]=$)}return x}var Xl=i0(),cr=i0(!0);function an(r,a){return r&&Xl(r,a,Ar)}function Ql(r,a){return r&&cr(r,a,Ar)}function Ka(r,a){return ki(a,function(f){return Oo(r[f])})}function Vi(r,a){a=An(a,r);for(var f=0,v=a.length;r!=null&&f<v;)r=r[St(a[f++])];return f&&f==v?r:l}function xo(r,a,f){var v=a(r);return lt(r)?v:Oi(v,f(r))}function dr(r){return r==null?r===l?K:ht:Ri&&Ri in gt(r)?Zt(r):xe(r)}function Jl(r,a){return r>a}function Bc(r,a){return r!=null&&tt.call(r,a)}function Fc(r,a){return r!=null&&a in gt(r)}function ea(r,a,f){return r>=mr(a,f)&&r<Bt(a,f)}function es(r,a,f){for(var v=f?Uo:Da,x=r[0].length,L=r.length,E=L,$=G(L),F=1/0,ne=[];E--;){var ie=r[E];E&&a&&(ie=_t(ie,Hr(a))),F=mr(ie.length,F),$[E]=!f&&(a||x>=120&&ie.length>=120)?new wr(E&&ie):l}ie=r[0];var se=-1,ze=$[0];e:for(;++se<x&&ne.length<F;){var De=ie[se],Ge=a?a(De):De;if(De=f||De!==0?De:0,!(ze?jr(ze,Ge):v(ne,Ge,f))){for(E=L;--E;){var ct=$[E];if(!(ct?jr(ct,Ge):v(r[E],Ge,f)))continue e}ze&&ze.push(Ge),ne.push(De)}}return ne}function ts(r,a,f,v){return an(r,function(x,L,E){a(v,f(x),L,E)}),v}function ta(r,a,f){a=An(a,r),r=Pe(r,a);var v=r==null?r:r[St(Yn(a))];return v==null?l:rn(v,r,f)}function ra(r){return Qt(r)&&dr(r)==at}function D1(r){return Qt(r)&&dr(r)==pr}function na(r){return Qt(r)&&dr(r)==nt}function ia(r,a,f,v,x){return r===a?!0:r==null||a==null||!Qt(r)&&!Qt(a)?r!==r&&a!==a:Wc(r,a,f,v,ia,x)}function Wc(r,a,f,v,x,L){var E=lt(r),$=lt(a),F=E?_e:Or(r),ne=$?_e:Or(a);F=F==at?wt:F,ne=ne==at?wt:ne;var ie=F==wt,se=ne==wt,ze=F==ne;if(ze&&ba(r)){if(!ba(a))return!1;E=!0,ie=!1}if(ze&&!ie)return L||(L=new pn),E||bs(r)?_u(r,a,f,v,x,L):d0(r,a,F,f,v,x,L);if(!(f&re)){var De=ie&&tt.call(r,"__wrapped__"),Ge=se&&tt.call(a,"__wrapped__");if(De||Ge){var ct=De?r.value():r,qe=Ge?a.value():a;return L||(L=new pn),x(ct,qe,f,v,L)}}return ze?(L||(L=new pn),f0(r,a,f,v,x,L)):!1}function Uc(r){return Qt(r)&&Or(r)==Yt}function zo(r,a,f,v){var x=f.length,L=x,E=!v;if(r==null)return!L;for(r=gt(r);x--;){var $=f[x];if(E&&$[2]?$[1]!==r[$[0]]:!($[0]in r))return!1}for(;++x<L;){$=f[x];var F=$[0],ne=r[F],ie=$[1];if(E&&$[2]){if(ne===l&&!(F in r))return!1}else{var se=new pn;if(v)var ze=v(ne,ie,F,r,a,se);if(!(ze===l?ia(ie,ne,re|ve,v,se):ze))return!1}}return!0}function oa(r){if(!jt(r)||N(r))return!1;var a=Oo(r)?Ha:kn;return a.test(Et(r))}function Ya(r){return Qt(r)&&dr(r)==er}function Xa(r){return Qt(r)&&Or(r)==et}function Zc(r){return Qt(r)&&y0(r.length)&&!!Dt[dr(r)]}function Vc(r){return typeof r=="function"?r:r==null?Cn:typeof r=="object"?lt(r)?du(r[0],r[1]):Gc(r):Af(r)}function rs(r){if(!q(r))return Tc(r);var a=[];for(var f in gt(r))tt.call(r,f)&&f!="constructor"&&a.push(f);return a}function Gi(r){if(!jt(r))return he(r);var a=q(r),f=[];for(var v in r)v=="constructor"&&(a||!tt.call(r,v))||f.push(v);return f}function qi(r,a){return r<a}function aa(r,a){var f=-1,v=mn(r)?G(r.length):[];return on(r,function(x,L,E){v[++f]=a(x,L,E)}),v}function Gc(r){var a=pa(r);return a.length==1&&a[0][2]?ce(a[0][0],a[0][1]):function(f){return f===r||zo(f,r,a)}}function du(r,a){return C(r)&&te(a)?ce(St(r),a):function(f){var v=X1(f,r);return v===l&&v===a?Q1(f,r):ia(a,v,re|ve)}}function ns(r,a,f,v,x){r!==a&&Xl(a,function(L,E){if(x||(x=new pn),jt(L))R1(r,a,E,f,ns,v,x);else{var $=v?v(xt(r,E),L,E+"",r,a,x):l;$===l&&($=L),jl(r,E,$)}},yn)}function R1(r,a,f,v,x,L,E){var $=xt(r,f),F=xt(a,f),ne=E.get(F);if(ne){jl(r,f,ne);return}var ie=L?L($,F,f+"",r,a,E):l,se=ie===l;if(se){var ze=lt(F),De=!ze&&ba(F),Ge=!ze&&!De&&bs(F);ie=F,ze||De||Ge?lt($)?ie=$:ar($)?ie=fr($):De?(se=!1,ie=yu(F,!0)):Ge?(se=!1,ie=Jc(F,!0)):ie=[]:ku(F)||ll(F)?(ie=$,ll($)?ie=Lf($):(!jt($)||Oo($))&&(ie=n(F))):se=!1}se&&(E.set(F,ie),x(ie,F,v,L,E),E.delete(F)),jl(r,f,ie)}function qc(r,a){var f=r.length;if(!!f)return a+=a<0?f:0,m(a,f)?r[a]:l}function Mr(r,a,f){a.length?a=_t(a,function(L){return lt(L)?function(E){return Vi(E,L.length===1?L[0]:L)}:L}):a=[Cn];var v=-1;a=_t(a,Hr(He()));var x=aa(r,function(L,E,$){var F=_t(a,function(ne){return ne(L)});return{criteria:F,index:++v,value:L}});return bc(x,function(L,E){return e0(L,E,f)})}function jc(r,a){return Kc(r,a,function(f,v){return Q1(r,v)})}function Kc(r,a,f){for(var v=-1,x=a.length,L={};++v<x;){var E=a[v],$=Vi(r,E);f($,E)&&si(L,An(E,r),$)}return L}function N1(r){return function(a){return Vi(a,r)}}function fu(r,a,f,v){var x=v?b1:co,L=-1,E=a.length,$=r;for(r===a&&(a=fr(a)),f&&($=_t(r,Hr(f)));++L<E;)for(var F=0,ne=a[L],ie=f?f(ne):ne;(F=x($,ie,F,v))>-1;)$!==r&&jo.call($,F,1),jo.call(r,F,1);return r}function hu(r,a){for(var f=r?a.length:0,v=f-1;f--;){var x=a[f];if(f==v||x!==L){var L=x;m(x)?jo.call(r,x,1):el(r,x)}}return r}function is(r,a){return r+Yo(Hi()*(a-r+1))}function Yc(r,a,f,v){for(var x=-1,L=Bt(Ko((a-r)/(f||1)),0),E=G(L);L--;)E[v?L:++x]=r,r+=f;return E}function pu(r,a){var f="";if(!r||a<1||a>rt)return f;do a%2&&(f+=r),a=Yo(a/2),a&&(r+=r);while(a);return f}function st(r,a){return Tr($e(r,a,Cn),r+"")}function H1(r){return ql(ms(r))}function ji(r,a){var f=ms(r);return hr(f,wo(a,0,f.length))}function si(r,a,f,v){if(!jt(r))return r;a=An(a,r);for(var x=-1,L=a.length,E=L-1,$=r;$!=null&&++x<L;){var F=St(a[x]),ne=f;if(F==="__proto__"||F==="constructor"||F==="prototype")return r;if(x!=E){var ie=$[F];ne=v?v(ie,F,$):l,ne===l&&(ne=jt(ie)?ie:m(a[x+1])?[]:{})}qa($,F,ne),$=$[F]}return r}var Qa=Vn?function(r,a){return Vn.set(r,a),r}:Cn,Ja=bo?function(r,a){return bo(r,"toString",{configurable:!0,enumerable:!1,value:ed(a),writable:!0})}:Cn;function ui(r){return hr(ms(r))}function gn(r,a,f){var v=-1,x=r.length;a<0&&(a=-a>x?0:x+a),f=f>x?x:f,f<0&&(f+=x),x=a>f?0:f-a>>>0,a>>>=0;for(var L=G(x);++v<x;)L[v]=r[v+a];return L}function B1(r,a){var f;return on(r,function(v,x,L){return f=a(v,x,L),!f}),!!f}function ci(r,a,f){var v=0,x=r==null?v:r.length;if(typeof a=="number"&&a===a&&x<=Ut){for(;v<x;){var L=v+x>>>1,E=r[L];E!==null&&!$n(E)&&(f?E<=a:E<a)?v=L+1:x=L}return x}return os(r,a,Cn,f)}function os(r,a,f,v){var x=0,L=r==null?0:r.length;if(L===0)return 0;a=f(a);for(var E=a!==a,$=a===null,F=$n(a),ne=a===l;x<L;){var ie=Yo((x+L)/2),se=f(r[ie]),ze=se!==l,De=se===null,Ge=se===se,ct=$n(se);if(E)var qe=v||Ge;else ne?qe=Ge&&(v||ze):$?qe=Ge&&ze&&(v||!De):F?qe=Ge&&ze&&!De&&(v||!ct):De||ct?qe=!1:qe=v?se<=a:se<a;qe?x=ie+1:L=ie}return mr(L,Xr)}function gu(r,a){for(var f=-1,v=r.length,x=0,L=[];++f<v;){var E=r[f],$=a?a(E):E;if(!f||!hi($,F)){var F=$;L[x++]=E===0?0:E}}return L}function vu(r){return typeof r=="number"?r:$n(r)?Kt:+r}function kr(r){if(typeof r=="string")return r;if(lt(r))return _t(r,kr)+"";if($n(r))return Cr?Cr.call(r):"";var a=r+"";return a=="0"&&1/r==-me?"-0":a}function ln(r,a,f){var v=-1,x=Da,L=r.length,E=!0,$=[],F=$;if(f)E=!1,x=Uo;else if(L>=c){var ne=a?null:il(r);if(ne)return Nl(ne);E=!1,x=jr,F=new wr}else F=a?[]:$;e:for(;++v<L;){var ie=r[v],se=a?a(ie):ie;if(ie=f||ie!==0?ie:0,E&&se===se){for(var ze=F.length;ze--;)if(F[ze]===se)continue e;a&&F.push(se),$.push(ie)}else x(F,se,f)||(F!==$&&F.push(se),$.push(ie))}return $}function el(r,a){return a=An(a,r),r=Pe(r,a),r==null||delete r[St(Yn(a))]}function as(r,a,f,v){return si(r,a,f(Vi(r,a)),v)}function la(r,a,f,v){for(var x=r.length,L=v?x:-1;(v?L--:++L<x)&&a(r[L],L,r););return f?gn(r,v?0:L,v?L+1:x):gn(r,v?L+1:0,v?x:L)}function Xc(r,a){var f=r;return f instanceof ft&&(f=f.value()),Zs(a,function(v,x){return x.func.apply(x.thisArg,Oi([v],x.args))},f)}function Lo(r,a,f){var v=r.length;if(v<2)return v?ln(r[0]):[];for(var x=-1,L=G(v);++x<v;)for(var E=r[x],$=-1;++$<v;)$!=x&&(L[x]=Jo(L[x]||E,r[$],a,f));return ln(xr(L,1),a,f)}function bu(r,a,f){for(var v=-1,x=r.length,L=a.length,E={};++v<x;){var $=v<L?a[v]:l;f(E,r[v],$)}return E}function mu(r){return ar(r)?r:[]}function ls(r){return typeof r=="function"?r:Cn}function An(r,a){return lt(r)?r:C(r,a)?[r]:ir(Ot(r))}var F1=st;function Ki(r,a,f){var v=r.length;return f=f===l?v:f,!a&&f>=v?r:gn(r,a,f)}var sa=w1||function(r){return Ht.clearTimeout(r)};function yu(r,a){if(a)return r.slice();var f=r.length,v=kc?kc(f):new r.constructor(f);return r.copy(v),v}function ss(r){var a=new r.constructor(r.byteLength);return new go(a).set(new go(r)),a}function W1(r,a){var f=a?ss(r.buffer):r.buffer;return new r.constructor(f,r.byteOffset,r.byteLength)}function Cu(r){var a=new r.constructor(r.source,lo.exec(r));return a.lastIndex=r.lastIndex,a}function Qc(r){return Ft?gt(Ft.call(r)):{}}function Jc(r,a){var f=a?ss(r.buffer):r.buffer;return new r.constructor(f,r.byteOffset,r.length)}function wu(r,a){if(r!==a){var f=r!==l,v=r===null,x=r===r,L=$n(r),E=a!==l,$=a===null,F=a===a,ne=$n(a);if(!$&&!ne&&!L&&r>a||L&&E&&F&&!$&&!ne||v&&E&&F||!f&&F||!x)return 1;if(!v&&!L&&!ne&&r<a||ne&&f&&x&&!v&&!L||$&&f&&x||!E&&x||!F)return-1}return 0}function e0(r,a,f){for(var v=-1,x=r.criteria,L=a.criteria,E=x.length,$=f.length;++v<E;){var F=wu(x[v],L[v]);if(F){if(v>=$)return F;var ne=f[v];return F*(ne=="desc"?-1:1)}}return r.index-a.index}function t0(r,a,f,v){for(var x=-1,L=r.length,E=f.length,$=-1,F=a.length,ne=Bt(L-E,0),ie=G(F+ne),se=!v;++$<F;)ie[$]=a[$];for(;++x<E;)(se||x<L)&&(ie[f[x]]=r[x]);for(;ne--;)ie[$++]=r[x++];return ie}function us(r,a,f,v){for(var x=-1,L=r.length,E=-1,$=f.length,F=-1,ne=a.length,ie=Bt(L-$,0),se=G(ie+ne),ze=!v;++x<ie;)se[x]=r[x];for(var De=x;++F<ne;)se[De+F]=a[F];for(;++E<$;)(ze||x<L)&&(se[De+f[E]]=r[x++]);return se}function fr(r,a){var f=-1,v=r.length;for(a||(a=G(v));++f<v;)a[f]=r[f];return a}function Yr(r,a,f,v){var x=!f;f||(f={});for(var L=-1,E=a.length;++L<E;){var $=a[L],F=v?v(f[$],r[$],$,f,r):l;F===l&&(F=r[$]),x?jn(f,$,F):qa(f,$,F)}return f}function U1(r,a){return Yr(r,Su(r),a)}function r0(r,a){return Yr(r,h0(r),a)}function cs(r,a){return function(f,v){var x=lt(f)?h1:au,L=a?a():{};return x(f,r,He(v,2),L)}}function ua(r){return st(function(a,f){var v=-1,x=f.length,L=x>1?f[x-1]:l,E=x>2?f[2]:l;for(L=r.length>3&&typeof L=="function"?(x--,L):l,E&&y(f[0],f[1],E)&&(L=x<3?l:L,x=1),a=gt(a);++v<x;){var $=f[v];$&&r(a,$,v,L)}return a})}function n0(r,a){return function(f,v){if(f==null)return f;if(!mn(f))return r(f,v);for(var x=f.length,L=a?x:-1,E=gt(f);(a?L--:++L<x)&&v(E[L],L,E)!==!1;);return f}}function i0(r){return function(a,f,v){for(var x=-1,L=gt(a),E=v(a),$=E.length;$--;){var F=E[r?$:++x];if(f(L[F],F,L)===!1)break}return a}}function o0(r,a,f){var v=a&ge,x=da(r);function L(){var E=this&&this!==Ht&&this instanceof L?x:r;return E.apply(v?f:this,arguments)}return L}function a0(r){return function(a){a=Ot(a);var f=En(a)?hn(a):l,v=f?f[0]:a.charAt(0),x=f?Ki(f,1).join(""):a.slice(1);return v[r]()+x}}function ca(r){return function(a){return Zs(Pf(Ef(a).replace(Ns,"")),r,"")}}function da(r){return function(){var a=arguments;switch(a.length){case 0:return new r;case 1:return new r(a[0]);case 2:return new r(a[0],a[1]);case 3:return new r(a[0],a[1],a[2]);case 4:return new r(a[0],a[1],a[2],a[3]);case 5:return new r(a[0],a[1],a[2],a[3],a[4]);case 6:return new r(a[0],a[1],a[2],a[3],a[4],a[5]);case 7:return new r(a[0],a[1],a[2],a[3],a[4],a[5],a[6])}var f=Gn(r.prototype),v=r.apply(f,a);return jt(v)?v:f}}function xu(r,a,f){var v=da(r);function x(){for(var L=arguments.length,E=G(L),$=L,F=ha(x);$--;)E[$]=arguments[$];var ne=L<3&&E[0]!==F&&E[L-1]!==F?[]:Ei(E,F);if(L-=ne.length,L<f)return u0(r,a,tl,x.placeholder,l,E,ne,l,l,f-L);var ie=this&&this!==Ht&&this instanceof x?v:r;return rn(ie,this,E)}return x}function zu(r){return function(a,f,v){var x=gt(a);if(!mn(a)){var L=He(f,3);a=Ar(a),f=function($){return L(x[$],$,x)}}var E=r(a,f,v);return E>-1?x[L?a[E]:E]:l}}function l0(r){return di(function(a){var f=a.length,v=f,x=Br.prototype.thru;for(r&&a.reverse();v--;){var L=a[v];if(typeof L!="function")throw new Kr(b);if(x&&!E&&al(L)=="wrapper")var E=new Br([],!0)}for(v=E?v:f;++v<f;){L=a[v];var $=al(L),F=$=="wrapper"?yt(L):l;F&&M(F[0])&&F[1]==(Ie|pe|ke|je)&&!F[4].length&&F[9]==1?E=E[al(F[0])].apply(E,F[3]):E=L.length==1&&M(L)?E[$]():E.thru(L)}return function(){var ne=arguments,ie=ne[0];if(E&&ne.length==1&&lt(ie))return E.plant(ie).value();for(var se=0,ze=f?a[se].apply(this,ne):ie;++se<f;)ze=a[se].call(this,ze);return ze}})}function tl(r,a,f,v,x,L,E,$,F,ne){var ie=a&Ie,se=a&ge,ze=a&Me,De=a&(pe|de),Ge=a&Ye,ct=ze?l:da(r);function qe(){for(var pt=arguments.length,vt=G(pt),Dn=pt;Dn--;)vt[Dn]=arguments[Dn];if(De)var sn=ha(qe),Rn=m1(vt,sn);if(v&&(vt=t0(vt,v,x,De)),L&&(vt=us(vt,L,E,De)),pt-=Rn,De&&pt<ne){var lr=Ei(vt,sn);return u0(r,a,tl,qe.placeholder,f,vt,lr,$,F,ne-pt)}var pi=se?f:this,Eo=ze?pi[r]:r;return pt=vt.length,$?vt=ot(vt,$):Ge&&pt>1&&vt.reverse(),ie&&F<pt&&(vt.length=F),this&&this!==Ht&&this instanceof qe&&(Eo=ct||da(Eo)),Eo.apply(pi,vt)}return qe}function _o(r,a){return function(f,v){return ts(f,r,a(v),{})}}function rl(r,a){return function(f,v){var x;if(f===l&&v===l)return a;if(f!==l&&(x=f),v!==l){if(x===l)return v;typeof f=="string"||typeof v=="string"?(f=kr(f),v=kr(v)):(f=vu(f),v=vu(v)),x=r(f,v)}return x}}function fa(r){return di(function(a){return a=_t(a,Hr(He())),st(function(f){var v=this;return r(a,function(x){return rn(x,v,f)})})})}function ds(r,a){a=a===l?" ":kr(a);var f=a.length;if(f<2)return f?pu(a,r):a;var v=pu(a,Ko(r/ho(a)));return En(a)?Ki(hn(v),0,r).join(""):v.slice(0,r)}function Z1(r,a,f,v){var x=a&ge,L=da(r);function E(){for(var $=-1,F=arguments.length,ne=-1,ie=v.length,se=G(ie+F),ze=this&&this!==Ht&&this instanceof E?L:r;++ne<ie;)se[ne]=v[ne];for(;F--;)se[ne++]=arguments[++$];return rn(ze,x?f:this,se)}return E}function s0(r){return function(a,f,v){return v&&typeof v!="number"&&y(a,f,v)&&(f=v=l),a=To(a),f===l?(f=a,a=0):f=To(f),v=v===l?a<f?1:-1:To(v),Yc(a,f,v,r)}}function Mt(r){return function(a,f){return typeof a=="string"&&typeof f=="string"||(a=Xn(a),f=Xn(f)),r(a,f)}}function u0(r,a,f,v,x,L,E,$,F,ne){var ie=a&pe,se=ie?E:l,ze=ie?l:E,De=ie?L:l,Ge=ie?l:L;a|=ie?ke:Ee,a&=~(ie?Ee:ke),a&Te||(a&=~(ge|Me));var ct=[r,a,x,De,se,Ge,ze,$,F,ne],qe=f.apply(l,ct);return M(r)&&Xt(qe,ct),qe.placeholder=v,Er(qe,r,a)}function nl(r){var a=nr[r];return function(f,v){if(f=Xn(f),v=v==null?0:mr(ut(v),292),v&&Oc(f)){var x=(Ot(f)+"e").split("e"),L=a(x[0]+"e"+(+x[1]+v));return x=(Ot(L)+"e").split("e"),+(x[0]+"e"+(+x[1]-v))}return a(f)}}var il=yo&&1/Nl(new yo([,-0]))[1]==me?function(r){return new yo(r)}:nd;function vn(r){return function(a){var f=Or(a);return f==Yt?Rl(a):f==et?xc(a):oi(a,r(a))}}function bn(r,a,f,v,x,L,E,$){var F=a&Me;if(!F&&typeof r!="function")throw new Kr(b);var ne=v?v.length:0;if(ne||(a&=~(ke|Ee),v=x=l),E=E===l?E:Bt(ut(E),0),$=$===l?$:ut($),ne-=x?x.length:0,a&Ee){var ie=v,se=x;v=x=l}var ze=F?l:yt(r),De=[r,a,f,v,x,ie,se,L,E,$];if(ze&&we(De,ze),r=De[0],a=De[1],f=De[2],v=De[3],x=De[4],$=De[9]=De[9]===l?F?0:r.length:Bt(De[9]-ne,0),!$&&a&(pe|de)&&(a&=~(pe|de)),!a||a==ge)var Ge=o0(r,a,f);else a==pe||a==de?Ge=xu(r,a,$):(a==ke||a==(ge|ke))&&!x.length?Ge=Z1(r,a,f,v):Ge=tl.apply(l,De);var ct=ze?Qa:Xt;return Er(ct(Ge,De),r,a)}function fs(r,a,f,v){return r===l||hi(r,Ai[f])&&!tt.call(v,f)?a:r}function Lu(r,a,f,v,x,L){return jt(r)&&jt(a)&&(L.set(a,r),ns(r,a,l,Lu,L),L.delete(a)),r}function c0(r){return ku(r)?l:r}function _u(r,a,f,v,x,L){var E=f&re,$=r.length,F=a.length;if($!=F&&!(E&&F>$))return!1;var ne=L.get(r),ie=L.get(a);if(ne&&ie)return ne==a&&ie==r;var se=-1,ze=!0,De=f&ve?new wr:l;for(L.set(r,a),L.set(a,r);++se<$;){var Ge=r[se],ct=a[se];if(v)var qe=E?v(ct,Ge,se,a,r,L):v(Ge,ct,se,r,a,L);if(qe!==l){if(qe)continue;ze=!1;break}if(De){if(!uo(a,function(pt,vt){if(!jr(De,vt)&&(Ge===pt||x(Ge,pt,f,v,L)))return De.push(vt)})){ze=!1;break}}else if(!(Ge===ct||x(Ge,ct,f,v,L))){ze=!1;break}}return L.delete(r),L.delete(a),ze}function d0(r,a,f,v,x,L,E){switch(f){case Ln:if(r.byteLength!=a.byteLength||r.byteOffset!=a.byteOffset)return!1;r=r.buffer,a=a.buffer;case pr:return!(r.byteLength!=a.byteLength||!L(new go(r),new go(a)));case Ue:case nt:case Ke:return hi(+r,+a);case We:return r.name==a.name&&r.message==a.message;case er:case W:return r==a+"";case Yt:var $=Rl;case et:var F=v&re;if($||($=Nl),r.size!=a.size&&!F)return!1;var ne=E.get(r);if(ne)return ne==a;v|=ve,E.set(r,a);var ie=_u($(r),$(a),v,x,L,E);return E.delete(r),ie;case ae:if(Ft)return Ft.call(r)==Ft.call(a)}return!1}function f0(r,a,f,v,x,L){var E=f&re,$=ol(r),F=$.length,ne=ol(a),ie=ne.length;if(F!=ie&&!E)return!1;for(var se=F;se--;){var ze=$[se];if(!(E?ze in a:tt.call(a,ze)))return!1}var De=L.get(r),Ge=L.get(a);if(De&&Ge)return De==a&&Ge==r;var ct=!0;L.set(r,a),L.set(a,r);for(var qe=E;++se<F;){ze=$[se];var pt=r[ze],vt=a[ze];if(v)var Dn=E?v(vt,pt,ze,a,r,L):v(pt,vt,ze,r,a,L);if(!(Dn===l?pt===vt||x(pt,vt,f,v,L):Dn)){ct=!1;break}qe||(qe=ze=="constructor")}if(ct&&!qe){var sn=r.constructor,Rn=a.constructor;sn!=Rn&&"constructor"in r&&"constructor"in a&&!(typeof sn=="function"&&sn instanceof sn&&typeof Rn=="function"&&Rn instanceof Rn)&&(ct=!1)}return L.delete(r),L.delete(a),ct}function di(r){return Tr($e(r,l,nf),r+"")}function ol(r){return xo(r,Ar,Su)}function hs(r){return xo(r,yn,h0)}var yt=Vn?function(r){return Vn.get(r)}:nd;function al(r){for(var a=r.name+"",f=Qo[a],v=tt.call(Qo,a)?f.length:0;v--;){var x=f[v],L=x.func;if(L==null||L==r)return x.name}return a}function ha(r){var a=tt.call(z,"placeholder")?z:r;return a.placeholder}function He(){var r=z.iteratee||td;return r=r===td?Vc:r,arguments.length?r(arguments[0],arguments[1]):r}function ps(r,a){var f=r.__data__;return _(a)?f[typeof a=="string"?"string":"hash"]:f.map}function pa(r){for(var a=Ar(r),f=a.length;f--;){var v=a[f],x=r[v];a[f]=[v,x,te(x)]}return a}function So(r,a){var f=Ys(r,a);return oa(f)?f:l}function Zt(r){var a=tt.call(r,Ri),f=r[Ri];try{r[Ri]=l;var v=!0}catch{}var x=po.call(r);return v&&(a?r[Ri]=f:delete r[Ri]),x}var Su=Ni?function(r){return r==null?[]:(r=gt(r),ki(Ni(r),function(a){return Wl.call(r,a)}))}:id,h0=Ni?function(r){for(var a=[];r;)Oi(a,Su(r)),r=qo(r);return a}:id,Or=dr;(Bi&&Or(new Bi(new ArrayBuffer(1)))!=Ln||Xo&&Or(new Xo)!=Yt||Zl&&Or(Zl.resolve())!=_r||yo&&Or(new yo)!=et||Za&&Or(new Za)!=Xe)&&(Or=function(r){var a=dr(r),f=a==wt?r.constructor:l,v=f?Et(f):"";if(v)switch(v){case L1:return Ln;case _1:return Yt;case S1:return _r;case M1:return et;case k1:return Xe}return a});function gs(r,a,f){for(var v=-1,x=f.length;++v<x;){var L=f[v],E=L.size;switch(L.type){case"drop":r+=E;break;case"dropRight":a-=E;break;case"take":a=mr(a,r+E);break;case"takeRight":r=Bt(r,a-E);break}}return{start:r,end:a}}function e(r){var a=r.match(Ma);return a?a[1].split(Si):[]}function t(r,a,f){a=An(a,r);for(var v=-1,x=a.length,L=!1;++v<x;){var E=St(a[v]);if(!(L=r!=null&&f(r,E)))break;r=r[E]}return L||++v!=x?L:(x=r==null?0:r.length,!!x&&y0(x)&&m(E,x)&&(lt(r)||ll(r)))}function o(r){var a=r.length,f=new r.constructor(a);return a&&typeof r[0]=="string"&&tt.call(r,"index")&&(f.index=r.index,f.input=r.input),f}function n(r){return typeof r.constructor=="function"&&!q(r)?Gn(qo(r)):{}}function u(r,a,f){var v=r.constructor;switch(a){case pr:return ss(r);case Ue:case nt:return new v(+r);case Ln:return W1(r,f);case Dr:case Rt:case ri:case Sr:case _n:case Ne:case Li:case gr:case Ze:return Jc(r,f);case Yt:return new v;case Ke:case W:return new v(r);case er:return Cu(r);case et:return new v;case ae:return Qc(r)}}function h(r,a){var f=a.length;if(!f)return r;var v=f-1;return a[v]=(f>1?"& ":"")+a[v],a=a.join(f>2?", ":" "),r.replace(zl,`{
1594
1594
  /* [wrapped with `+a+`] */
1595
- `)}function p(r){return lt(r)||ll(r)||!!(vo&&r&&r[vo])}function m(r,a){var f=typeof r;return a=a==null?rt:a,!!a&&(f=="number"||f!="symbol"&&ka.test(r))&&r>-1&&r%1==0&&r<a}function y(r,a,f){if(!jt(f))return!1;var v=typeof a;return(v=="number"?bn(f)&&m(a,f.length):v=="string"&&a in f)?hi(f[a],r):!1}function C(r,a){if(lt(r))return!1;var f=typeof r;return f=="number"||f=="symbol"||f=="boolean"||r==null||$n(r)?!0:Rr.test(r)||!Sa.test(r)||a!=null&&r in gt(a)}function _(r){var a=typeof r;return a=="string"||a=="number"||a=="symbol"||a=="boolean"?r!=="__proto__":r===null}function M(r){var a=al(r),f=z[a];if(typeof f!="function"||!(a in ft.prototype))return!1;if(r===f)return!0;var v=yt(f);return!!v&&r===v[0]}function N(r){return!!ai&&ai in r}var D=Un?Oo:od;function q(r){var a=r&&r.constructor,f=typeof a=="function"&&a.prototype||Ai;return r===f}function te(r){return r===r&&!jt(r)}function ue(r,a){return function(f){return f==null?!1:f[r]===a&&(a!==l||r in gt(f))}}function fe(r){var a=b0(r,function(v){return f.size===k&&f.clear(),v}),f=a.cache;return a}function we(r,a){var f=r[1],v=a[1],x=f|v,L=x<(ge|Me|Ie),E=v==Ie&&f==pe||v==Ie&&f==je&&r[7].length<=a[8]||v==(Ie|je)&&a[7].length<=a[8]&&f==pe;if(!(L||E))return r;v&ge&&(r[2]=a[2],x|=f&ge?0:Te);var $=a[3];if($){var F=r[3];r[3]=F?t0(F,$,a[4]):$,r[4]=F?Ei(r[3],A):a[4]}return $=a[5],$&&(F=r[5],r[5]=F?us(F,$,a[6]):$,r[6]=F?Ei(r[5],A):a[6]),$=a[7],$&&(r[7]=$),v&Ie&&(r[8]=r[8]==null?a[8]:mr(r[8],a[8])),r[9]==null&&(r[9]=a[9]),r[0]=a[0],r[1]=x,r}function he(r){var a=[];if(r!=null)for(var f in gt(r))a.push(f);return a}function xe(r){return po.call(r)}function $e(r,a,f){return a=Bt(a===l?r.length-1:a,0),function(){for(var v=arguments,x=-1,L=Bt(v.length-a,0),E=V(L);++x<L;)E[x]=v[a+x];x=-1;for(var $=V(a+1);++x<a;)$[x]=v[x];return $[a]=f(E),rn(r,this,$)}}function Pe(r,a){return a.length<2?r:Gi(r,pn(a,0,-1))}function ot(r,a){for(var f=r.length,v=mr(a.length,f),x=fr(r);v--;){var L=a[v];r[v]=m(L,f)?x[L]:l}return r}function xt(r,a){if(!(a==="constructor"&&typeof r[a]=="function")&&a!="__proto__")return r[a]}var Xt=Gt(Qa),kt=z1||function(r,a){return Ht.setTimeout(r,a)},Or=Gt(Ja);function Tr(r,a,f){var v=a+"";return Or(r,h(v,Wt(e(v),f)))}function Gt(r){var a=0,f=0;return function(){var v=mo(),x=G-(v-f);if(f=v,x>0){if(++a>=Qe)return arguments[0]}else a=0;return r.apply(l,arguments)}}function hr(r,a){var f=-1,v=r.length,x=v-1;for(a=a===l?v:a;++f<a;){var L=is(f,x),E=r[L];r[L]=r[f],r[f]=E}return r.length=a,r}var ir=fe(function(r){var a=[];return r.charCodeAt(0)===46&&a.push(""),r.replace(wl,function(f,v,x,L){a.push(x?L.replace(Ll,"$1"):v||f)}),a});function St(r){if(typeof r=="string"||$n(r))return r;var a=r+"";return a=="0"&&1/r==-me?"-0":a}function Et(r){if(r!=null){try{return Zn.call(r)}catch{}try{return r+""}catch{}}return""}function Wt(r,a){return dn(At,function(f){var v="_."+f[0];a&f[1]&&!Da(r,v)&&r.push(v)}),r.sort()}function Er(r){if(r instanceof ft)return r.clone();var a=new Br(r.__wrapped__,r.__chain__);return a.__actions__=fr(r.__actions__),a.__index__=r.__index__,a.__values__=r.__values__,a}function ga(r,a,f){(f?y(r,a,f):a===l)?a=1:a=Bt(ut(a),0);var v=r==null?0:r.length;if(!v||a<1)return[];for(var x=0,L=0,E=V(Ko(v/a));x<v;)E[L++]=pn(r,x,x+=a);return E}function Yi(r){for(var a=-1,f=r==null?0:r.length,v=0,x=[];++a<f;){var L=r[a];L&&(x[v++]=L)}return x}function zr(){var r=arguments.length;if(!r)return[];for(var a=V(r-1),f=arguments[0],v=r;v--;)a[v-1]=arguments[v];return Oi(lt(f)?fr(f):[f],xr(a,1))}var Kn=st(function(r,a){return ar(r)?Jo(r,xr(a,1,ar,!0)):[]}),or=st(function(r,a){var f=Yn(a);return ar(f)&&(f=l),ar(r)?Jo(r,xr(a,1,ar,!0),He(f,2)):[]}),Mu=st(function(r,a){var f=Yn(a);return ar(f)&&(f=l),ar(r)?Jo(r,xr(a,1,ar,!0),l,f):[]});function fi(r,a,f){var v=r==null?0:r.length;return v?(a=f||a===l?1:ut(a),pn(r,a<0?0:a,v)):[]}function Mo(r,a,f){var v=r==null?0:r.length;return v?(a=f||a===l?1:ut(a),a=v-a,pn(r,0,a<0?0:a)):[]}function ko(r,a){return r&&r.length?la(r,He(a,3),!0,!0):[]}function Pr(r,a){return r&&r.length?la(r,He(a,3),!0):[]}function va(r,a,f,v){var x=r==null?0:r.length;return x?(f&&typeof f!="number"&&y(r,a,f)&&(f=0,v=x),uu(r,a,f,v)):[]}function vs(r,a,f){var v=r==null?0:r.length;if(!v)return-1;var x=f==null?0:ut(f);return x<0&&(x=Bt(v+x,0)),Il(r,He(a,3),x)}function rf(r,a,f){var v=r==null?0:r.length;if(!v)return-1;var x=v-1;return f!==l&&(x=ut(f),x=f<0?Bt(v+x,0):mr(x,v-1)),Il(r,He(a,3),x,!0)}function nf(r){var a=r==null?0:r.length;return a?xr(r,1):[]}function H2(r){var a=r==null?0:r.length;return a?xr(r,me):[]}function B2(r,a){var f=r==null?0:r.length;return f?(a=a===l?1:ut(a),xr(r,a)):[]}function F2(r){for(var a=-1,f=r==null?0:r.length,v={};++a<f;){var x=r[a];v[x[0]]=x[1]}return v}function of(r){return r&&r.length?r[0]:l}function W2(r,a,f){var v=r==null?0:r.length;if(!v)return-1;var x=f==null?0:ut(f);return x<0&&(x=Bt(v+x,0)),co(r,a,x)}function U2(r){var a=r==null?0:r.length;return a?pn(r,0,-1):[]}var Z2=st(function(r){var a=_t(r,mu);return a.length&&a[0]===r[0]?es(a):[]}),G2=st(function(r){var a=Yn(r),f=_t(r,mu);return a===Yn(f)?a=l:f.pop(),f.length&&f[0]===r[0]?es(f,He(a,2)):[]}),V2=st(function(r){var a=Yn(r),f=_t(r,mu);return a=typeof a=="function"?a:l,a&&f.pop(),f.length&&f[0]===r[0]?es(f,l,a):[]});function q2(r,a){return r==null?"":Ul.call(r,a)}function Yn(r){var a=r==null?0:r.length;return a?r[a-1]:l}function j2(r,a,f){var v=r==null?0:r.length;if(!v)return-1;var x=v;return f!==l&&(x=ut(f),x=x<0?Bt(v+x,0):mr(x,v-1)),a===a?Na(r,a,x):Il(r,Al,x,!0)}function K2(r,a){return r&&r.length?qc(r,ut(a)):l}var Y2=st(af);function af(r,a){return r&&r.length&&a&&a.length?fu(r,a):r}function X2(r,a,f){return r&&r.length&&a&&a.length?fu(r,a,He(f,2)):r}function Q2(r,a,f){return r&&r.length&&a&&a.length?fu(r,a,l,f):r}var J2=di(function(r,a){var f=r==null?0:r.length,v=su(r,a);return hu(r,_t(a,function(x){return m(x,f)?+x:x}).sort(wu)),v});function e4(r,a){var f=[];if(!(r&&r.length))return f;var v=-1,x=[],L=r.length;for(a=He(a,3);++v<L;){var E=r[v];a(E,v,r)&&(f.push(E),x.push(v))}return hu(r,x),f}function G1(r){return r==null?r:Ua.call(r)}function t4(r,a,f){var v=r==null?0:r.length;return v?(f&&typeof f!="number"&&y(r,a,f)?(a=0,f=v):(a=a==null?0:ut(a),f=f===l?v:ut(f)),pn(r,a,f)):[]}function r4(r,a){return ci(r,a)}function n4(r,a,f){return os(r,a,He(f,2))}function i4(r,a){var f=r==null?0:r.length;if(f){var v=ci(r,a);if(v<f&&hi(r[v],a))return v}return-1}function o4(r,a){return ci(r,a,!0)}function a4(r,a,f){return os(r,a,He(f,2),!0)}function l4(r,a){var f=r==null?0:r.length;if(f){var v=ci(r,a,!0)-1;if(hi(r[v],a))return v}return-1}function s4(r){return r&&r.length?gu(r):[]}function u4(r,a){return r&&r.length?gu(r,He(a,2)):[]}function c4(r){var a=r==null?0:r.length;return a?pn(r,1,a):[]}function d4(r,a,f){return r&&r.length?(a=f||a===l?1:ut(a),pn(r,0,a<0?0:a)):[]}function f4(r,a,f){var v=r==null?0:r.length;return v?(a=f||a===l?1:ut(a),a=v-a,pn(r,a<0?0:a,v)):[]}function h4(r,a){return r&&r.length?la(r,He(a,3),!1,!0):[]}function p4(r,a){return r&&r.length?la(r,He(a,3)):[]}var g4=st(function(r){return ln(xr(r,1,ar,!0))}),v4=st(function(r){var a=Yn(r);return ar(a)&&(a=l),ln(xr(r,1,ar,!0),He(a,2))}),b4=st(function(r){var a=Yn(r);return a=typeof a=="function"?a:l,ln(xr(r,1,ar,!0),l,a)});function m4(r){return r&&r.length?ln(r):[]}function y4(r,a){return r&&r.length?ln(r,He(a,2)):[]}function C4(r,a){return a=typeof a=="function"?a:l,r&&r.length?ln(r,l,a):[]}function V1(r){if(!(r&&r.length))return[];var a=0;return r=ki(r,function(f){if(ar(f))return a=Bt(f.length,a),!0}),fo(a,function(f){return _t(r,Vs(f))})}function lf(r,a){if(!(r&&r.length))return[];var f=V1(r);return a==null?f:_t(f,function(v){return rn(a,l,v)})}var w4=st(function(r,a){return ar(r)?Jo(r,a):[]}),x4=st(function(r){return Lo(ki(r,ar))}),z4=st(function(r){var a=Yn(r);return ar(a)&&(a=l),Lo(ki(r,ar),He(a,2))}),L4=st(function(r){var a=Yn(r);return a=typeof a=="function"?a:l,Lo(ki(r,ar),l,a)}),_4=st(V1);function S4(r,a){return bu(r||[],a||[],qa)}function M4(r,a){return bu(r||[],a||[],si)}var k4=st(function(r){var a=r.length,f=a>1?r[a-1]:l;return f=typeof f=="function"?(r.pop(),f):l,lf(r,f)});function sf(r){var a=z(r);return a.__chain__=!0,a}function O4(r,a){return a(r),r}function p0(r,a){return a(r)}var T4=di(function(r){var a=r.length,f=a?r[0]:0,v=this.__wrapped__,x=function(L){return su(L,r)};return a>1||this.__actions__.length||!(v instanceof ft)||!m(f)?this.thru(x):(v=v.slice(f,+f+(a?1:0)),v.__actions__.push({func:p0,args:[x],thisArg:l}),new Br(v,this.__chain__).thru(function(L){return a&&!L.length&&L.push(l),L}))});function E4(){return sf(this)}function P4(){return new Br(this.value(),this.__chain__)}function I4(){this.__values__===l&&(this.__values__=xf(this.value()));var r=this.__index__>=this.__values__.length,a=r?l:this.__values__[this.__index__++];return{done:r,value:a}}function A4(){return this}function $4(r){for(var a,f=this;f instanceof Gl;){var v=Er(f);v.__index__=0,v.__values__=l,a?x.__wrapped__=v:a=v;var x=v;f=f.__wrapped__}return x.__wrapped__=r,a}function D4(){var r=this.__wrapped__;if(r instanceof ft){var a=r;return this.__actions__.length&&(a=new ft(this)),a=a.reverse(),a.__actions__.push({func:p0,args:[G1],thisArg:l}),new Br(a,this.__chain__)}return this.thru(G1)}function R4(){return Xc(this.__wrapped__,this.__actions__)}var N4=cs(function(r,a,f){tt.call(r,f)?++r[f]:jn(r,f,1)});function H4(r,a,f){var v=lt(r)?Us:Yl;return f&&y(r,a,f)&&(a=l),v(r,He(a,3))}function B4(r,a){var f=lt(r)?ki:cu;return f(r,He(a,3))}var F4=zu(vs),W4=zu(rf);function U4(r,a){return xr(g0(r,a),1)}function Z4(r,a){return xr(g0(r,a),me)}function G4(r,a,f){return f=f===l?1:ut(f),xr(g0(r,a),f)}function uf(r,a){var f=lt(r)?dn:on;return f(r,He(a,3))}function cf(r,a){var f=lt(r)?p1:Kl;return f(r,He(a,3))}var V4=cs(function(r,a,f){tt.call(r,f)?r[f].push(a):jn(r,f,[a])});function q4(r,a,f,v){r=bn(r)?r:ms(r),f=f&&!v?ut(f):0;var x=r.length;return f<0&&(f=Bt(x+f,0)),C0(r)?f<=x&&r.indexOf(a,f)>-1:!!x&&co(r,a,f)>-1}var j4=st(function(r,a,f){var v=-1,x=typeof a=="function",L=bn(r)?V(r.length):[];return on(r,function(E){L[++v]=x?rn(a,E,f):ta(E,a,f)}),L}),K4=cs(function(r,a,f){jn(r,f,a)});function g0(r,a){var f=lt(r)?_t:aa;return f(r,He(a,3))}function Y4(r,a,f,v){return r==null?[]:(lt(a)||(a=a==null?[]:[a]),f=v?l:f,lt(f)||(f=f==null?[]:[f]),Sr(r,a,f))}var X4=cs(function(r,a,f){r[f?0:1].push(a)},function(){return[[],[]]});function Q4(r,a,f){var v=lt(r)?Zs:js,x=arguments.length<3;return v(r,He(a,4),f,x,on)}function J4(r,a,f){var v=lt(r)?g1:js,x=arguments.length<3;return v(r,He(a,4),f,x,Kl)}function e5(r,a){var f=lt(r)?ki:cu;return f(r,m0(He(a,3)))}function t5(r){var a=lt(r)?ql:H1;return a(r)}function r5(r,a,f){(f?y(r,a,f):a===l)?a=1:a=ut(a);var v=lt(r)?Zi:ji;return v(r,a)}function n5(r){var a=lt(r)?Dc:ui;return a(r)}function i5(r){if(r==null)return 0;if(bn(r))return C0(r)?ho(r):r.length;var a=kr(r);return a==Yt||a==et?r.size:rs(r).length}function o5(r,a,f){var v=lt(r)?uo:B1;return f&&y(r,a,f)&&(a=l),v(r,He(a,3))}var a5=st(function(r,a){if(r==null)return[];var f=a.length;return f>1&&y(r,a[0],a[1])?a=[]:f>2&&y(a[0],a[1],a[2])&&(a=[a[0]]),Sr(r,xr(a,1),[])}),v0=x1||function(){return Ht.Date.now()};function l5(r,a){if(typeof a!="function")throw new Kr(b);return r=ut(r),function(){if(--r<1)return a.apply(this,arguments)}}function df(r,a,f){return a=f?l:a,a=r&&a==null?r.length:a,vn(r,Ie,l,l,l,l,a)}function ff(r,a){var f;if(typeof a!="function")throw new Kr(b);return r=ut(r),function(){return--r>0&&(f=a.apply(this,arguments)),r<=1&&(a=l),f}}var q1=st(function(r,a,f){var v=ge;if(f.length){var x=Ei(f,ha(q1));v|=ke}return vn(r,v,a,f,x)}),hf=st(function(r,a,f){var v=ge|Me;if(f.length){var x=Ei(f,ha(hf));v|=ke}return vn(a,v,r,f,x)});function pf(r,a,f){a=f?l:a;var v=vn(r,pe,l,l,l,l,l,a);return v.placeholder=pf.placeholder,v}function gf(r,a,f){a=f?l:a;var v=vn(r,de,l,l,l,l,l,a);return v.placeholder=gf.placeholder,v}function vf(r,a,f){var v,x,L,E,$,F,ne=0,ie=!1,se=!1,ze=!0;if(typeof r!="function")throw new Kr(b);a=Xn(a)||0,jt(f)&&(ie=!!f.leading,se="maxWait"in f,L=se?Bt(Xn(f.maxWait)||0,a):L,ze="trailing"in f?!!f.trailing:ze);function De(lr){var pi=v,Eo=x;return v=x=l,ne=lr,E=r.apply(Eo,pi),E}function Ve(lr){return ne=lr,$=kt(pt,a),ie?De(lr):E}function ct(lr){var pi=lr-F,Eo=lr-ne,$f=a-pi;return se?mr($f,L-Eo):$f}function qe(lr){var pi=lr-F,Eo=lr-ne;return F===l||pi>=a||pi<0||se&&Eo>=L}function pt(){var lr=v0();if(qe(lr))return vt(lr);$=kt(pt,ct(lr))}function vt(lr){return $=l,ze&&v?De(lr):(v=x=l,E)}function Dn(){$!==l&&sa($),ne=0,v=F=x=$=l}function sn(){return $===l?E:vt(v0())}function Rn(){var lr=v0(),pi=qe(lr);if(v=arguments,x=this,F=lr,pi){if($===l)return Ve(F);if(se)return sa($),$=kt(pt,a),De(F)}return $===l&&($=kt(pt,a)),E}return Rn.cancel=Dn,Rn.flush=sn,Rn}var s5=st(function(r,a){return Hc(r,1,a)}),u5=st(function(r,a,f){return Hc(r,Xn(a)||0,f)});function c5(r){return vn(r,Ye)}function b0(r,a){if(typeof r!="function"||a!=null&&typeof a!="function")throw new Kr(b);var f=function(){var v=arguments,x=a?a.apply(this,v):v[0],L=f.cache;if(L.has(x))return L.get(x);var E=r.apply(this,v);return f.cache=L.set(x,E)||L,E};return f.cache=new(b0.Cache||qt),f}b0.Cache=qt;function m0(r){if(typeof r!="function")throw new Kr(b);return function(){var a=arguments;switch(a.length){case 0:return!r.call(this);case 1:return!r.call(this,a[0]);case 2:return!r.call(this,a[0],a[1]);case 3:return!r.call(this,a[0],a[1],a[2])}return!r.apply(this,a)}}function d5(r){return ff(2,r)}var f5=F1(function(r,a){a=a.length==1&&lt(a[0])?_t(a[0],Hr(He())):_t(xr(a,1),Hr(He()));var f=a.length;return st(function(v){for(var x=-1,L=mr(v.length,f);++x<L;)v[x]=a[x].call(this,v[x]);return rn(r,this,v)})}),j1=st(function(r,a){var f=Ei(a,ha(j1));return vn(r,ke,l,a,f)}),bf=st(function(r,a){var f=Ei(a,ha(bf));return vn(r,Ee,l,a,f)}),h5=di(function(r,a){return vn(r,je,l,l,l,a)});function p5(r,a){if(typeof r!="function")throw new Kr(b);return a=a===l?a:ut(a),st(r,a)}function g5(r,a){if(typeof r!="function")throw new Kr(b);return a=a==null?0:Bt(ut(a),0),st(function(f){var v=f[a],x=Ki(f,0,a);return v&&Oi(x,v),rn(r,this,x)})}function v5(r,a,f){var v=!0,x=!0;if(typeof r!="function")throw new Kr(b);return jt(f)&&(v="leading"in f?!!f.leading:v,x="trailing"in f?!!f.trailing:x),vf(r,a,{leading:v,maxWait:a,trailing:x})}function b5(r){return df(r,1)}function m5(r,a){return j1(ls(a),r)}function y5(){if(!arguments.length)return[];var r=arguments[0];return lt(r)?r:[r]}function C5(r){return Fr(r,Z)}function w5(r,a){return a=typeof a=="function"?a:l,Fr(r,Z,a)}function x5(r){return Fr(r,B|Z)}function z5(r,a){return a=typeof a=="function"?a:l,Fr(r,B|Z,a)}function L5(r,a){return a==null||Nc(r,a,Ir(a))}function hi(r,a){return r===a||r!==r&&a!==a}var _5=Mt(Jl),S5=Mt(function(r,a){return r>=a}),ll=ra(function(){return arguments}())?ra:function(r){return Qt(r)&&tt.call(r,"callee")&&!Wl.call(r,"callee")},lt=V.isArray,M5=fc?Hr(fc):D1;function bn(r){return r!=null&&y0(r.length)&&!Oo(r)}function ar(r){return Qt(r)&&bn(r)}function k5(r){return r===!0||r===!1||Qt(r)&&dr(r)==Ue}var ba=Fa||od,O5=hc?Hr(hc):na;function T5(r){return Qt(r)&&r.nodeType===1&&!ku(r)}function E5(r){if(r==null)return!0;if(bn(r)&&(lt(r)||typeof r=="string"||typeof r.splice=="function"||ba(r)||bs(r)||ll(r)))return!r.length;var a=kr(r);if(a==Yt||a==et)return!r.size;if(q(r))return!rs(r).length;for(var f in r)if(tt.call(r,f))return!1;return!0}function P5(r,a){return ia(r,a)}function I5(r,a,f){f=typeof f=="function"?f:l;var v=f?f(r,a):l;return v===l?ia(r,a,l,f):!!v}function K1(r){if(!Qt(r))return!1;var a=dr(r);return a==We||a==it||typeof r.message=="string"&&typeof r.name=="string"&&!ku(r)}function A5(r){return typeof r=="number"&&Oc(r)}function Oo(r){if(!jt(r))return!1;var a=dr(r);return a==Nt||a==$r||a==Fe||a==Gr}function mf(r){return typeof r=="number"&&r==ut(r)}function y0(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=rt}function jt(r){var a=typeof r;return r!=null&&(a=="object"||a=="function")}function Qt(r){return r!=null&&typeof r=="object"}var yf=pc?Hr(pc):Uc;function $5(r,a){return r===a||zo(r,a,pa(a))}function D5(r,a,f){return f=typeof f=="function"?f:l,zo(r,a,pa(a),f)}function R5(r){return Cf(r)&&r!=+r}function N5(r){if(D(r))throw new Je(g);return oa(r)}function H5(r){return r===null}function B5(r){return r==null}function Cf(r){return typeof r=="number"||Qt(r)&&dr(r)==Ke}function ku(r){if(!Qt(r)||dr(r)!=wt)return!1;var a=qo(r);if(a===null)return!0;var f=tt.call(a,"constructor")&&a.constructor;return typeof f=="function"&&f instanceof f&&Zn.call(f)==C1}var Y1=gc?Hr(gc):Ya;function F5(r){return mf(r)&&r>=-rt&&r<=rt}var wf=Fs?Hr(Fs):Xa;function C0(r){return typeof r=="string"||!lt(r)&&Qt(r)&&dr(r)==W}function $n(r){return typeof r=="symbol"||Qt(r)&&dr(r)==ae}var bs=Ws?Hr(Ws):Zc;function W5(r){return r===l}function U5(r){return Qt(r)&&kr(r)==Xe}function Z5(r){return Qt(r)&&dr(r)==tr}var G5=Mt(qi),V5=Mt(function(r,a){return r<=a});function xf(r){if(!r)return[];if(bn(r))return C0(r)?fn(r):fr(r);if(Di&&r[Di])return Cc(r[Di]());var a=kr(r),f=a==Yt?Rl:a==et?Nl:ms;return f(r)}function To(r){if(!r)return r===0?r:0;if(r=Xn(r),r===me||r===-me){var a=r<0?-1:1;return a*Lt}return r===r?r:0}function ut(r){var a=To(r),f=a%1;return a===a?f?a-f:a:0}function zf(r){return r?wo(ut(r),0,It):0}function Xn(r){if(typeof r=="number")return r;if($n(r))return Kt;if(jt(r)){var a=typeof r.valueOf=="function"?r.valueOf():r;r=jt(a)?a+"":a}if(typeof r!="string")return r===0?r:+r;r=Ra(r);var f=Mn.test(r);return f||en.test(r)?f1(r.slice(2),f?2:8):Bo.test(r)?Kt:+r}function Lf(r){return Yr(r,mn(r))}function q5(r){return r?wo(ut(r),-rt,rt):r===0?r:0}function Ot(r){return r==null?"":Mr(r)}var j5=ua(function(r,a){if(q(a)||bn(a)){Yr(a,Ir(a),r);return}for(var f in a)tt.call(a,f)&&qa(r,f,a[f])}),_f=ua(function(r,a){Yr(a,mn(a),r)}),w0=ua(function(r,a,f,v){Yr(a,mn(a),r,v)}),K5=ua(function(r,a,f,v){Yr(a,Ir(a),r,v)}),Y5=di(su);function X5(r,a){var f=Vn(r);return a==null?f:lu(f,a)}var Q5=st(function(r,a){r=gt(r);var f=-1,v=a.length,x=v>2?a[2]:l;for(x&&y(a[0],a[1],x)&&(v=1);++f<v;)for(var L=a[f],E=mn(L),$=-1,F=E.length;++$<F;){var ne=E[$],ie=r[ne];(ie===l||hi(ie,Ai[ne])&&!tt.call(r,ne))&&(r[ne]=L[ne])}return r}),J5=st(function(r){return r.push(l,Lu),rn(Sf,l,r)});function eg(r,a){return Zo(r,He(a,3),an)}function tg(r,a){return Zo(r,He(a,3),Ql)}function rg(r,a){return r==null?r:Xl(r,He(a,3),mn)}function ng(r,a){return r==null?r:cr(r,He(a,3),mn)}function ig(r,a){return r&&an(r,He(a,3))}function og(r,a){return r&&Ql(r,He(a,3))}function ag(r){return r==null?[]:Ka(r,Ir(r))}function lg(r){return r==null?[]:Ka(r,mn(r))}function X1(r,a,f){var v=r==null?l:Gi(r,a);return v===l?f:v}function sg(r,a){return r!=null&&t(r,a,Bc)}function Q1(r,a){return r!=null&&t(r,a,Fc)}var ug=_o(function(r,a,f){a!=null&&typeof a.toString!="function"&&(a=po.call(a)),r[a]=f},ed(yn)),cg=_o(function(r,a,f){a!=null&&typeof a.toString!="function"&&(a=po.call(a)),tt.call(r,a)?r[a].push(f):r[a]=[f]},He),dg=st(ta);function Ir(r){return bn(r)?ou(r):rs(r)}function mn(r){return bn(r)?ou(r,!0):Vi(r)}function fg(r,a){var f={};return a=He(a,3),an(r,function(v,x,L){jn(f,a(v,x,L),v)}),f}function hg(r,a){var f={};return a=He(a,3),an(r,function(v,x,L){jn(f,x,a(v,x,L))}),f}var pg=ua(function(r,a,f){ns(r,a,f)}),Sf=ua(function(r,a,f,v){ns(r,a,f,v)}),gg=di(function(r,a){var f={};if(r==null)return f;var v=!1;a=_t(a,function(L){return L=An(L,r),v||(v=L.length>1),L}),Yr(r,hs(r),f),v&&(f=Fr(f,B|U|Z,c0));for(var x=a.length;x--;)el(f,a[x]);return f});function vg(r,a){return Mf(r,m0(He(a)))}var bg=di(function(r,a){return r==null?{}:jc(r,a)});function Mf(r,a){if(r==null)return{};var f=_t(hs(r),function(v){return[v]});return a=He(a),Kc(r,f,function(v,x){return a(v,x[0])})}function mg(r,a,f){a=An(a,r);var v=-1,x=a.length;for(x||(x=1,r=l);++v<x;){var L=r==null?l:r[St(a[v])];L===l&&(v=x,L=f),r=Oo(L)?L.call(r):L}return r}function yg(r,a,f){return r==null?r:si(r,a,f)}function Cg(r,a,f,v){return v=typeof v=="function"?v:l,r==null?r:si(r,a,f,v)}var kf=gn(Ir),Of=gn(mn);function wg(r,a,f){var v=lt(r),x=v||ba(r)||bs(r);if(a=He(a,4),f==null){var L=r&&r.constructor;x?f=v?new L:[]:jt(r)?f=Oo(L)?Vn(qo(r)):{}:f={}}return(x?dn:an)(r,function(E,$,F){return a(f,E,$,F)}),f}function xg(r,a){return r==null?!0:el(r,a)}function zg(r,a,f){return r==null?r:as(r,a,ls(f))}function Lg(r,a,f,v){return v=typeof v=="function"?v:l,r==null?r:as(r,a,ls(f),v)}function ms(r){return r==null?[]:$l(r,Ir(r))}function _g(r){return r==null?[]:$l(r,mn(r))}function Sg(r,a,f){return f===l&&(f=a,a=l),f!==l&&(f=Xn(f),f=f===f?f:0),a!==l&&(a=Xn(a),a=a===a?a:0),wo(Xn(r),a,f)}function Mg(r,a,f){return a=To(a),f===l?(f=a,a=0):f=To(f),r=Xn(r),ea(r,a,f)}function kg(r,a,f){if(f&&typeof f!="boolean"&&y(r,a,f)&&(a=f=l),f===l&&(typeof a=="boolean"?(f=a,a=l):typeof r=="boolean"&&(f=r,r=l)),r===l&&a===l?(r=0,a=1):(r=To(r),a===l?(a=r,r=0):a=To(a)),r>a){var v=r;r=a,a=v}if(f||r%1||a%1){var x=Hi();return mr(r+x*(a-r+d1("1e-"+((x+"").length-1))),a)}return is(r,a)}var Og=ca(function(r,a,f){return a=a.toLowerCase(),r+(f?Tf(a):a)});function Tf(r){return J1(Ot(r).toLowerCase())}function Ef(r){return r=Ot(r),r&&r.replace(Oa,mc).replace(lc,"")}function Tg(r,a,f){r=Ot(r),a=Mr(a);var v=r.length;f=f===l?v:wo(ut(f),0,v);var x=f;return f-=a.length,f>=0&&r.slice(f,x)==a}function Eg(r){return r=Ot(r),r&&Qr.test(r)?r.replace(ur,y1):r}function Pg(r){return r=Ot(r),r&&Hn.test(r)?r.replace(oo,"\\$&"):r}var Ig=ca(function(r,a,f){return r+(f?"-":"")+a.toLowerCase()}),Ag=ca(function(r,a,f){return r+(f?" ":"")+a.toLowerCase()}),$g=a0("toLowerCase");function Dg(r,a,f){r=Ot(r),a=ut(a);var v=a?ho(r):0;if(!a||v>=a)return r;var x=(a-v)/2;return ds(Yo(x),f)+r+ds(Ko(x),f)}function Rg(r,a,f){r=Ot(r),a=ut(a);var v=a?ho(r):0;return a&&v<a?r+ds(a-v,f):r}function Ng(r,a,f){r=Ot(r),a=ut(a);var v=a?ho(r):0;return a&&v<a?ds(a-v,f)+r:r}function Hg(r,a,f){return f||a==null?a=0:a&&(a=+a),Wa(Ot(r).replace(ao,""),a||0)}function Bg(r,a,f){return(f?y(r,a,f):a===l)?a=1:a=ut(a),pu(Ot(r),a)}function Fg(){var r=arguments,a=Ot(r[0]);return r.length<3?a:a.replace(r[1],r[2])}var Wg=ca(function(r,a,f){return r+(f?"_":"")+a.toLowerCase()});function Ug(r,a,f){return f&&typeof f!="number"&&y(r,a,f)&&(a=f=l),f=f===l?It:f>>>0,f?(r=Ot(r),r&&(typeof a=="string"||a!=null&&!Y1(a))&&(a=Mr(a),!a&&En(r))?Ki(fn(r),0,f):r.split(a,f)):[]}var Zg=ca(function(r,a,f){return r+(f?" ":"")+J1(a)});function Gg(r,a,f){return r=Ot(r),f=f==null?0:wo(ut(f),0,r.length),a=Mr(a),r.slice(f,f+a.length)==a}function Vg(r,a,f){var v=z.templateSettings;f&&y(r,a,f)&&(a=l),r=Ot(r),a=w0({},a,v,fs);var x=w0({},a.imports,v.imports,fs),L=Ir(x),E=$l(x,L),$,F,ne=0,ie=a.interpolate||$t,se="__p += '",ze=Ii((a.escape||$t).source+"|"+ie.source+"|"+(ie===_a?ni:$t).source+"|"+(a.evaluate||$t).source+"|$","g"),De="//# sourceURL="+(tt.call(a,"sourceURL")?(a.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Bs+"]")+`
1595
+ `)}function p(r){return lt(r)||ll(r)||!!(vo&&r&&r[vo])}function m(r,a){var f=typeof r;return a=a==null?rt:a,!!a&&(f=="number"||f!="symbol"&&ka.test(r))&&r>-1&&r%1==0&&r<a}function y(r,a,f){if(!jt(f))return!1;var v=typeof a;return(v=="number"?mn(f)&&m(a,f.length):v=="string"&&a in f)?hi(f[a],r):!1}function C(r,a){if(lt(r))return!1;var f=typeof r;return f=="number"||f=="symbol"||f=="boolean"||r==null||$n(r)?!0:Rr.test(r)||!Sa.test(r)||a!=null&&r in gt(a)}function _(r){var a=typeof r;return a=="string"||a=="number"||a=="symbol"||a=="boolean"?r!=="__proto__":r===null}function M(r){var a=al(r),f=z[a];if(typeof f!="function"||!(a in ft.prototype))return!1;if(r===f)return!0;var v=yt(f);return!!v&&r===v[0]}function N(r){return!!ai&&ai in r}var D=Un?Oo:od;function q(r){var a=r&&r.constructor,f=typeof a=="function"&&a.prototype||Ai;return r===f}function te(r){return r===r&&!jt(r)}function ce(r,a){return function(f){return f==null?!1:f[r]===a&&(a!==l||r in gt(f))}}function fe(r){var a=b0(r,function(v){return f.size===k&&f.clear(),v}),f=a.cache;return a}function we(r,a){var f=r[1],v=a[1],x=f|v,L=x<(ge|Me|Ie),E=v==Ie&&f==pe||v==Ie&&f==je&&r[7].length<=a[8]||v==(Ie|je)&&a[7].length<=a[8]&&f==pe;if(!(L||E))return r;v&ge&&(r[2]=a[2],x|=f&ge?0:Te);var $=a[3];if($){var F=r[3];r[3]=F?t0(F,$,a[4]):$,r[4]=F?Ei(r[3],A):a[4]}return $=a[5],$&&(F=r[5],r[5]=F?us(F,$,a[6]):$,r[6]=F?Ei(r[5],A):a[6]),$=a[7],$&&(r[7]=$),v&Ie&&(r[8]=r[8]==null?a[8]:mr(r[8],a[8])),r[9]==null&&(r[9]=a[9]),r[0]=a[0],r[1]=x,r}function he(r){var a=[];if(r!=null)for(var f in gt(r))a.push(f);return a}function xe(r){return po.call(r)}function $e(r,a,f){return a=Bt(a===l?r.length-1:a,0),function(){for(var v=arguments,x=-1,L=Bt(v.length-a,0),E=G(L);++x<L;)E[x]=v[a+x];x=-1;for(var $=G(a+1);++x<a;)$[x]=v[x];return $[a]=f(E),rn(r,this,$)}}function Pe(r,a){return a.length<2?r:Vi(r,gn(a,0,-1))}function ot(r,a){for(var f=r.length,v=mr(a.length,f),x=fr(r);v--;){var L=a[v];r[v]=m(L,f)?x[L]:l}return r}function xt(r,a){if(!(a==="constructor"&&typeof r[a]=="function")&&a!="__proto__")return r[a]}var Xt=Vt(Qa),kt=z1||function(r,a){return Ht.setTimeout(r,a)},Tr=Vt(Ja);function Er(r,a,f){var v=a+"";return Tr(r,h(v,Wt(e(v),f)))}function Vt(r){var a=0,f=0;return function(){var v=mo(),x=V-(v-f);if(f=v,x>0){if(++a>=Qe)return arguments[0]}else a=0;return r.apply(l,arguments)}}function hr(r,a){var f=-1,v=r.length,x=v-1;for(a=a===l?v:a;++f<a;){var L=is(f,x),E=r[L];r[L]=r[f],r[f]=E}return r.length=a,r}var ir=fe(function(r){var a=[];return r.charCodeAt(0)===46&&a.push(""),r.replace(wl,function(f,v,x,L){a.push(x?L.replace(Ll,"$1"):v||f)}),a});function St(r){if(typeof r=="string"||$n(r))return r;var a=r+"";return a=="0"&&1/r==-me?"-0":a}function Et(r){if(r!=null){try{return Zn.call(r)}catch{}try{return r+""}catch{}}return""}function Wt(r,a){return fn(At,function(f){var v="_."+f[0];a&f[1]&&!Da(r,v)&&r.push(v)}),r.sort()}function Pr(r){if(r instanceof ft)return r.clone();var a=new Br(r.__wrapped__,r.__chain__);return a.__actions__=fr(r.__actions__),a.__index__=r.__index__,a.__values__=r.__values__,a}function ga(r,a,f){(f?y(r,a,f):a===l)?a=1:a=Bt(ut(a),0);var v=r==null?0:r.length;if(!v||a<1)return[];for(var x=0,L=0,E=G(Ko(v/a));x<v;)E[L++]=gn(r,x,x+=a);return E}function Yi(r){for(var a=-1,f=r==null?0:r.length,v=0,x=[];++a<f;){var L=r[a];L&&(x[v++]=L)}return x}function zr(){var r=arguments.length;if(!r)return[];for(var a=G(r-1),f=arguments[0],v=r;v--;)a[v-1]=arguments[v];return Oi(lt(f)?fr(f):[f],xr(a,1))}var Kn=st(function(r,a){return ar(r)?Jo(r,xr(a,1,ar,!0)):[]}),or=st(function(r,a){var f=Yn(a);return ar(f)&&(f=l),ar(r)?Jo(r,xr(a,1,ar,!0),He(f,2)):[]}),Mu=st(function(r,a){var f=Yn(a);return ar(f)&&(f=l),ar(r)?Jo(r,xr(a,1,ar,!0),l,f):[]});function fi(r,a,f){var v=r==null?0:r.length;return v?(a=f||a===l?1:ut(a),gn(r,a<0?0:a,v)):[]}function Mo(r,a,f){var v=r==null?0:r.length;return v?(a=f||a===l?1:ut(a),a=v-a,gn(r,0,a<0?0:a)):[]}function ko(r,a){return r&&r.length?la(r,He(a,3),!0,!0):[]}function Ir(r,a){return r&&r.length?la(r,He(a,3),!0):[]}function va(r,a,f,v){var x=r==null?0:r.length;return x?(f&&typeof f!="number"&&y(r,a,f)&&(f=0,v=x),uu(r,a,f,v)):[]}function vs(r,a,f){var v=r==null?0:r.length;if(!v)return-1;var x=f==null?0:ut(f);return x<0&&(x=Bt(v+x,0)),Il(r,He(a,3),x)}function rf(r,a,f){var v=r==null?0:r.length;if(!v)return-1;var x=v-1;return f!==l&&(x=ut(f),x=f<0?Bt(v+x,0):mr(x,v-1)),Il(r,He(a,3),x,!0)}function nf(r){var a=r==null?0:r.length;return a?xr(r,1):[]}function V2(r){var a=r==null?0:r.length;return a?xr(r,me):[]}function G2(r,a){var f=r==null?0:r.length;return f?(a=a===l?1:ut(a),xr(r,a)):[]}function q2(r){for(var a=-1,f=r==null?0:r.length,v={};++a<f;){var x=r[a];v[x[0]]=x[1]}return v}function of(r){return r&&r.length?r[0]:l}function j2(r,a,f){var v=r==null?0:r.length;if(!v)return-1;var x=f==null?0:ut(f);return x<0&&(x=Bt(v+x,0)),co(r,a,x)}function K2(r){var a=r==null?0:r.length;return a?gn(r,0,-1):[]}var Y2=st(function(r){var a=_t(r,mu);return a.length&&a[0]===r[0]?es(a):[]}),X2=st(function(r){var a=Yn(r),f=_t(r,mu);return a===Yn(f)?a=l:f.pop(),f.length&&f[0]===r[0]?es(f,He(a,2)):[]}),Q2=st(function(r){var a=Yn(r),f=_t(r,mu);return a=typeof a=="function"?a:l,a&&f.pop(),f.length&&f[0]===r[0]?es(f,l,a):[]});function J2(r,a){return r==null?"":Ul.call(r,a)}function Yn(r){var a=r==null?0:r.length;return a?r[a-1]:l}function e4(r,a,f){var v=r==null?0:r.length;if(!v)return-1;var x=v;return f!==l&&(x=ut(f),x=x<0?Bt(v+x,0):mr(x,v-1)),a===a?Na(r,a,x):Il(r,Al,x,!0)}function t4(r,a){return r&&r.length?qc(r,ut(a)):l}var r4=st(af);function af(r,a){return r&&r.length&&a&&a.length?fu(r,a):r}function n4(r,a,f){return r&&r.length&&a&&a.length?fu(r,a,He(f,2)):r}function i4(r,a,f){return r&&r.length&&a&&a.length?fu(r,a,l,f):r}var o4=di(function(r,a){var f=r==null?0:r.length,v=su(r,a);return hu(r,_t(a,function(x){return m(x,f)?+x:x}).sort(wu)),v});function a4(r,a){var f=[];if(!(r&&r.length))return f;var v=-1,x=[],L=r.length;for(a=He(a,3);++v<L;){var E=r[v];a(E,v,r)&&(f.push(E),x.push(v))}return hu(r,x),f}function V1(r){return r==null?r:Ua.call(r)}function l4(r,a,f){var v=r==null?0:r.length;return v?(f&&typeof f!="number"&&y(r,a,f)?(a=0,f=v):(a=a==null?0:ut(a),f=f===l?v:ut(f)),gn(r,a,f)):[]}function s4(r,a){return ci(r,a)}function u4(r,a,f){return os(r,a,He(f,2))}function c4(r,a){var f=r==null?0:r.length;if(f){var v=ci(r,a);if(v<f&&hi(r[v],a))return v}return-1}function d4(r,a){return ci(r,a,!0)}function f4(r,a,f){return os(r,a,He(f,2),!0)}function h4(r,a){var f=r==null?0:r.length;if(f){var v=ci(r,a,!0)-1;if(hi(r[v],a))return v}return-1}function p4(r){return r&&r.length?gu(r):[]}function g4(r,a){return r&&r.length?gu(r,He(a,2)):[]}function v4(r){var a=r==null?0:r.length;return a?gn(r,1,a):[]}function b4(r,a,f){return r&&r.length?(a=f||a===l?1:ut(a),gn(r,0,a<0?0:a)):[]}function m4(r,a,f){var v=r==null?0:r.length;return v?(a=f||a===l?1:ut(a),a=v-a,gn(r,a<0?0:a,v)):[]}function y4(r,a){return r&&r.length?la(r,He(a,3),!1,!0):[]}function C4(r,a){return r&&r.length?la(r,He(a,3)):[]}var w4=st(function(r){return ln(xr(r,1,ar,!0))}),x4=st(function(r){var a=Yn(r);return ar(a)&&(a=l),ln(xr(r,1,ar,!0),He(a,2))}),z4=st(function(r){var a=Yn(r);return a=typeof a=="function"?a:l,ln(xr(r,1,ar,!0),l,a)});function L4(r){return r&&r.length?ln(r):[]}function _4(r,a){return r&&r.length?ln(r,He(a,2)):[]}function S4(r,a){return a=typeof a=="function"?a:l,r&&r.length?ln(r,l,a):[]}function G1(r){if(!(r&&r.length))return[];var a=0;return r=ki(r,function(f){if(ar(f))return a=Bt(f.length,a),!0}),fo(a,function(f){return _t(r,Gs(f))})}function lf(r,a){if(!(r&&r.length))return[];var f=G1(r);return a==null?f:_t(f,function(v){return rn(a,l,v)})}var M4=st(function(r,a){return ar(r)?Jo(r,a):[]}),k4=st(function(r){return Lo(ki(r,ar))}),O4=st(function(r){var a=Yn(r);return ar(a)&&(a=l),Lo(ki(r,ar),He(a,2))}),T4=st(function(r){var a=Yn(r);return a=typeof a=="function"?a:l,Lo(ki(r,ar),l,a)}),E4=st(G1);function P4(r,a){return bu(r||[],a||[],qa)}function I4(r,a){return bu(r||[],a||[],si)}var A4=st(function(r){var a=r.length,f=a>1?r[a-1]:l;return f=typeof f=="function"?(r.pop(),f):l,lf(r,f)});function sf(r){var a=z(r);return a.__chain__=!0,a}function $4(r,a){return a(r),r}function p0(r,a){return a(r)}var D4=di(function(r){var a=r.length,f=a?r[0]:0,v=this.__wrapped__,x=function(L){return su(L,r)};return a>1||this.__actions__.length||!(v instanceof ft)||!m(f)?this.thru(x):(v=v.slice(f,+f+(a?1:0)),v.__actions__.push({func:p0,args:[x],thisArg:l}),new Br(v,this.__chain__).thru(function(L){return a&&!L.length&&L.push(l),L}))});function R4(){return sf(this)}function N4(){return new Br(this.value(),this.__chain__)}function H4(){this.__values__===l&&(this.__values__=xf(this.value()));var r=this.__index__>=this.__values__.length,a=r?l:this.__values__[this.__index__++];return{done:r,value:a}}function B4(){return this}function F4(r){for(var a,f=this;f instanceof Vl;){var v=Pr(f);v.__index__=0,v.__values__=l,a?x.__wrapped__=v:a=v;var x=v;f=f.__wrapped__}return x.__wrapped__=r,a}function W4(){var r=this.__wrapped__;if(r instanceof ft){var a=r;return this.__actions__.length&&(a=new ft(this)),a=a.reverse(),a.__actions__.push({func:p0,args:[V1],thisArg:l}),new Br(a,this.__chain__)}return this.thru(V1)}function U4(){return Xc(this.__wrapped__,this.__actions__)}var Z4=cs(function(r,a,f){tt.call(r,f)?++r[f]:jn(r,f,1)});function V4(r,a,f){var v=lt(r)?Us:Yl;return f&&y(r,a,f)&&(a=l),v(r,He(a,3))}function G4(r,a){var f=lt(r)?ki:cu;return f(r,He(a,3))}var q4=zu(vs),j4=zu(rf);function K4(r,a){return xr(g0(r,a),1)}function Y4(r,a){return xr(g0(r,a),me)}function X4(r,a,f){return f=f===l?1:ut(f),xr(g0(r,a),f)}function uf(r,a){var f=lt(r)?fn:on;return f(r,He(a,3))}function cf(r,a){var f=lt(r)?p1:Kl;return f(r,He(a,3))}var Q4=cs(function(r,a,f){tt.call(r,f)?r[f].push(a):jn(r,f,[a])});function J4(r,a,f,v){r=mn(r)?r:ms(r),f=f&&!v?ut(f):0;var x=r.length;return f<0&&(f=Bt(x+f,0)),C0(r)?f<=x&&r.indexOf(a,f)>-1:!!x&&co(r,a,f)>-1}var e5=st(function(r,a,f){var v=-1,x=typeof a=="function",L=mn(r)?G(r.length):[];return on(r,function(E){L[++v]=x?rn(a,E,f):ta(E,a,f)}),L}),t5=cs(function(r,a,f){jn(r,f,a)});function g0(r,a){var f=lt(r)?_t:aa;return f(r,He(a,3))}function r5(r,a,f,v){return r==null?[]:(lt(a)||(a=a==null?[]:[a]),f=v?l:f,lt(f)||(f=f==null?[]:[f]),Mr(r,a,f))}var n5=cs(function(r,a,f){r[f?0:1].push(a)},function(){return[[],[]]});function i5(r,a,f){var v=lt(r)?Zs:js,x=arguments.length<3;return v(r,He(a,4),f,x,on)}function o5(r,a,f){var v=lt(r)?g1:js,x=arguments.length<3;return v(r,He(a,4),f,x,Kl)}function a5(r,a){var f=lt(r)?ki:cu;return f(r,m0(He(a,3)))}function l5(r){var a=lt(r)?ql:H1;return a(r)}function s5(r,a,f){(f?y(r,a,f):a===l)?a=1:a=ut(a);var v=lt(r)?Zi:ji;return v(r,a)}function u5(r){var a=lt(r)?Dc:ui;return a(r)}function c5(r){if(r==null)return 0;if(mn(r))return C0(r)?ho(r):r.length;var a=Or(r);return a==Yt||a==et?r.size:rs(r).length}function d5(r,a,f){var v=lt(r)?uo:B1;return f&&y(r,a,f)&&(a=l),v(r,He(a,3))}var f5=st(function(r,a){if(r==null)return[];var f=a.length;return f>1&&y(r,a[0],a[1])?a=[]:f>2&&y(a[0],a[1],a[2])&&(a=[a[0]]),Mr(r,xr(a,1),[])}),v0=x1||function(){return Ht.Date.now()};function h5(r,a){if(typeof a!="function")throw new Kr(b);return r=ut(r),function(){if(--r<1)return a.apply(this,arguments)}}function df(r,a,f){return a=f?l:a,a=r&&a==null?r.length:a,bn(r,Ie,l,l,l,l,a)}function ff(r,a){var f;if(typeof a!="function")throw new Kr(b);return r=ut(r),function(){return--r>0&&(f=a.apply(this,arguments)),r<=1&&(a=l),f}}var q1=st(function(r,a,f){var v=ge;if(f.length){var x=Ei(f,ha(q1));v|=ke}return bn(r,v,a,f,x)}),hf=st(function(r,a,f){var v=ge|Me;if(f.length){var x=Ei(f,ha(hf));v|=ke}return bn(a,v,r,f,x)});function pf(r,a,f){a=f?l:a;var v=bn(r,pe,l,l,l,l,l,a);return v.placeholder=pf.placeholder,v}function gf(r,a,f){a=f?l:a;var v=bn(r,de,l,l,l,l,l,a);return v.placeholder=gf.placeholder,v}function vf(r,a,f){var v,x,L,E,$,F,ne=0,ie=!1,se=!1,ze=!0;if(typeof r!="function")throw new Kr(b);a=Xn(a)||0,jt(f)&&(ie=!!f.leading,se="maxWait"in f,L=se?Bt(Xn(f.maxWait)||0,a):L,ze="trailing"in f?!!f.trailing:ze);function De(lr){var pi=v,Eo=x;return v=x=l,ne=lr,E=r.apply(Eo,pi),E}function Ge(lr){return ne=lr,$=kt(pt,a),ie?De(lr):E}function ct(lr){var pi=lr-F,Eo=lr-ne,$f=a-pi;return se?mr($f,L-Eo):$f}function qe(lr){var pi=lr-F,Eo=lr-ne;return F===l||pi>=a||pi<0||se&&Eo>=L}function pt(){var lr=v0();if(qe(lr))return vt(lr);$=kt(pt,ct(lr))}function vt(lr){return $=l,ze&&v?De(lr):(v=x=l,E)}function Dn(){$!==l&&sa($),ne=0,v=F=x=$=l}function sn(){return $===l?E:vt(v0())}function Rn(){var lr=v0(),pi=qe(lr);if(v=arguments,x=this,F=lr,pi){if($===l)return Ge(F);if(se)return sa($),$=kt(pt,a),De(F)}return $===l&&($=kt(pt,a)),E}return Rn.cancel=Dn,Rn.flush=sn,Rn}var p5=st(function(r,a){return Hc(r,1,a)}),g5=st(function(r,a,f){return Hc(r,Xn(a)||0,f)});function v5(r){return bn(r,Ye)}function b0(r,a){if(typeof r!="function"||a!=null&&typeof a!="function")throw new Kr(b);var f=function(){var v=arguments,x=a?a.apply(this,v):v[0],L=f.cache;if(L.has(x))return L.get(x);var E=r.apply(this,v);return f.cache=L.set(x,E)||L,E};return f.cache=new(b0.Cache||qt),f}b0.Cache=qt;function m0(r){if(typeof r!="function")throw new Kr(b);return function(){var a=arguments;switch(a.length){case 0:return!r.call(this);case 1:return!r.call(this,a[0]);case 2:return!r.call(this,a[0],a[1]);case 3:return!r.call(this,a[0],a[1],a[2])}return!r.apply(this,a)}}function b5(r){return ff(2,r)}var m5=F1(function(r,a){a=a.length==1&&lt(a[0])?_t(a[0],Hr(He())):_t(xr(a,1),Hr(He()));var f=a.length;return st(function(v){for(var x=-1,L=mr(v.length,f);++x<L;)v[x]=a[x].call(this,v[x]);return rn(r,this,v)})}),j1=st(function(r,a){var f=Ei(a,ha(j1));return bn(r,ke,l,a,f)}),bf=st(function(r,a){var f=Ei(a,ha(bf));return bn(r,Ee,l,a,f)}),y5=di(function(r,a){return bn(r,je,l,l,l,a)});function C5(r,a){if(typeof r!="function")throw new Kr(b);return a=a===l?a:ut(a),st(r,a)}function w5(r,a){if(typeof r!="function")throw new Kr(b);return a=a==null?0:Bt(ut(a),0),st(function(f){var v=f[a],x=Ki(f,0,a);return v&&Oi(x,v),rn(r,this,x)})}function x5(r,a,f){var v=!0,x=!0;if(typeof r!="function")throw new Kr(b);return jt(f)&&(v="leading"in f?!!f.leading:v,x="trailing"in f?!!f.trailing:x),vf(r,a,{leading:v,maxWait:a,trailing:x})}function z5(r){return df(r,1)}function L5(r,a){return j1(ls(a),r)}function _5(){if(!arguments.length)return[];var r=arguments[0];return lt(r)?r:[r]}function S5(r){return Fr(r,Z)}function M5(r,a){return a=typeof a=="function"?a:l,Fr(r,Z,a)}function k5(r){return Fr(r,B|Z)}function O5(r,a){return a=typeof a=="function"?a:l,Fr(r,B|Z,a)}function T5(r,a){return a==null||Nc(r,a,Ar(a))}function hi(r,a){return r===a||r!==r&&a!==a}var E5=Mt(Jl),P5=Mt(function(r,a){return r>=a}),ll=ra(function(){return arguments}())?ra:function(r){return Qt(r)&&tt.call(r,"callee")&&!Wl.call(r,"callee")},lt=G.isArray,I5=fc?Hr(fc):D1;function mn(r){return r!=null&&y0(r.length)&&!Oo(r)}function ar(r){return Qt(r)&&mn(r)}function A5(r){return r===!0||r===!1||Qt(r)&&dr(r)==Ue}var ba=Fa||od,$5=hc?Hr(hc):na;function D5(r){return Qt(r)&&r.nodeType===1&&!ku(r)}function R5(r){if(r==null)return!0;if(mn(r)&&(lt(r)||typeof r=="string"||typeof r.splice=="function"||ba(r)||bs(r)||ll(r)))return!r.length;var a=Or(r);if(a==Yt||a==et)return!r.size;if(q(r))return!rs(r).length;for(var f in r)if(tt.call(r,f))return!1;return!0}function N5(r,a){return ia(r,a)}function H5(r,a,f){f=typeof f=="function"?f:l;var v=f?f(r,a):l;return v===l?ia(r,a,l,f):!!v}function K1(r){if(!Qt(r))return!1;var a=dr(r);return a==We||a==it||typeof r.message=="string"&&typeof r.name=="string"&&!ku(r)}function B5(r){return typeof r=="number"&&Oc(r)}function Oo(r){if(!jt(r))return!1;var a=dr(r);return a==Nt||a==$r||a==Fe||a==Vr}function mf(r){return typeof r=="number"&&r==ut(r)}function y0(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=rt}function jt(r){var a=typeof r;return r!=null&&(a=="object"||a=="function")}function Qt(r){return r!=null&&typeof r=="object"}var yf=pc?Hr(pc):Uc;function F5(r,a){return r===a||zo(r,a,pa(a))}function W5(r,a,f){return f=typeof f=="function"?f:l,zo(r,a,pa(a),f)}function U5(r){return Cf(r)&&r!=+r}function Z5(r){if(D(r))throw new Je(g);return oa(r)}function V5(r){return r===null}function G5(r){return r==null}function Cf(r){return typeof r=="number"||Qt(r)&&dr(r)==Ke}function ku(r){if(!Qt(r)||dr(r)!=wt)return!1;var a=qo(r);if(a===null)return!0;var f=tt.call(a,"constructor")&&a.constructor;return typeof f=="function"&&f instanceof f&&Zn.call(f)==C1}var Y1=gc?Hr(gc):Ya;function q5(r){return mf(r)&&r>=-rt&&r<=rt}var wf=Fs?Hr(Fs):Xa;function C0(r){return typeof r=="string"||!lt(r)&&Qt(r)&&dr(r)==W}function $n(r){return typeof r=="symbol"||Qt(r)&&dr(r)==ae}var bs=Ws?Hr(Ws):Zc;function j5(r){return r===l}function K5(r){return Qt(r)&&Or(r)==Xe}function Y5(r){return Qt(r)&&dr(r)==tr}var X5=Mt(qi),Q5=Mt(function(r,a){return r<=a});function xf(r){if(!r)return[];if(mn(r))return C0(r)?hn(r):fr(r);if(Di&&r[Di])return Cc(r[Di]());var a=Or(r),f=a==Yt?Rl:a==et?Nl:ms;return f(r)}function To(r){if(!r)return r===0?r:0;if(r=Xn(r),r===me||r===-me){var a=r<0?-1:1;return a*Lt}return r===r?r:0}function ut(r){var a=To(r),f=a%1;return a===a?f?a-f:a:0}function zf(r){return r?wo(ut(r),0,It):0}function Xn(r){if(typeof r=="number")return r;if($n(r))return Kt;if(jt(r)){var a=typeof r.valueOf=="function"?r.valueOf():r;r=jt(a)?a+"":a}if(typeof r!="string")return r===0?r:+r;r=Ra(r);var f=Mn.test(r);return f||en.test(r)?f1(r.slice(2),f?2:8):Bo.test(r)?Kt:+r}function Lf(r){return Yr(r,yn(r))}function J5(r){return r?wo(ut(r),-rt,rt):r===0?r:0}function Ot(r){return r==null?"":kr(r)}var eg=ua(function(r,a){if(q(a)||mn(a)){Yr(a,Ar(a),r);return}for(var f in a)tt.call(a,f)&&qa(r,f,a[f])}),_f=ua(function(r,a){Yr(a,yn(a),r)}),w0=ua(function(r,a,f,v){Yr(a,yn(a),r,v)}),tg=ua(function(r,a,f,v){Yr(a,Ar(a),r,v)}),rg=di(su);function ng(r,a){var f=Gn(r);return a==null?f:lu(f,a)}var ig=st(function(r,a){r=gt(r);var f=-1,v=a.length,x=v>2?a[2]:l;for(x&&y(a[0],a[1],x)&&(v=1);++f<v;)for(var L=a[f],E=yn(L),$=-1,F=E.length;++$<F;){var ne=E[$],ie=r[ne];(ie===l||hi(ie,Ai[ne])&&!tt.call(r,ne))&&(r[ne]=L[ne])}return r}),og=st(function(r){return r.push(l,Lu),rn(Sf,l,r)});function ag(r,a){return Zo(r,He(a,3),an)}function lg(r,a){return Zo(r,He(a,3),Ql)}function sg(r,a){return r==null?r:Xl(r,He(a,3),yn)}function ug(r,a){return r==null?r:cr(r,He(a,3),yn)}function cg(r,a){return r&&an(r,He(a,3))}function dg(r,a){return r&&Ql(r,He(a,3))}function fg(r){return r==null?[]:Ka(r,Ar(r))}function hg(r){return r==null?[]:Ka(r,yn(r))}function X1(r,a,f){var v=r==null?l:Vi(r,a);return v===l?f:v}function pg(r,a){return r!=null&&t(r,a,Bc)}function Q1(r,a){return r!=null&&t(r,a,Fc)}var gg=_o(function(r,a,f){a!=null&&typeof a.toString!="function"&&(a=po.call(a)),r[a]=f},ed(Cn)),vg=_o(function(r,a,f){a!=null&&typeof a.toString!="function"&&(a=po.call(a)),tt.call(r,a)?r[a].push(f):r[a]=[f]},He),bg=st(ta);function Ar(r){return mn(r)?ou(r):rs(r)}function yn(r){return mn(r)?ou(r,!0):Gi(r)}function mg(r,a){var f={};return a=He(a,3),an(r,function(v,x,L){jn(f,a(v,x,L),v)}),f}function yg(r,a){var f={};return a=He(a,3),an(r,function(v,x,L){jn(f,x,a(v,x,L))}),f}var Cg=ua(function(r,a,f){ns(r,a,f)}),Sf=ua(function(r,a,f,v){ns(r,a,f,v)}),wg=di(function(r,a){var f={};if(r==null)return f;var v=!1;a=_t(a,function(L){return L=An(L,r),v||(v=L.length>1),L}),Yr(r,hs(r),f),v&&(f=Fr(f,B|U|Z,c0));for(var x=a.length;x--;)el(f,a[x]);return f});function xg(r,a){return Mf(r,m0(He(a)))}var zg=di(function(r,a){return r==null?{}:jc(r,a)});function Mf(r,a){if(r==null)return{};var f=_t(hs(r),function(v){return[v]});return a=He(a),Kc(r,f,function(v,x){return a(v,x[0])})}function Lg(r,a,f){a=An(a,r);var v=-1,x=a.length;for(x||(x=1,r=l);++v<x;){var L=r==null?l:r[St(a[v])];L===l&&(v=x,L=f),r=Oo(L)?L.call(r):L}return r}function _g(r,a,f){return r==null?r:si(r,a,f)}function Sg(r,a,f,v){return v=typeof v=="function"?v:l,r==null?r:si(r,a,f,v)}var kf=vn(Ar),Of=vn(yn);function Mg(r,a,f){var v=lt(r),x=v||ba(r)||bs(r);if(a=He(a,4),f==null){var L=r&&r.constructor;x?f=v?new L:[]:jt(r)?f=Oo(L)?Gn(qo(r)):{}:f={}}return(x?fn:an)(r,function(E,$,F){return a(f,E,$,F)}),f}function kg(r,a){return r==null?!0:el(r,a)}function Og(r,a,f){return r==null?r:as(r,a,ls(f))}function Tg(r,a,f,v){return v=typeof v=="function"?v:l,r==null?r:as(r,a,ls(f),v)}function ms(r){return r==null?[]:$l(r,Ar(r))}function Eg(r){return r==null?[]:$l(r,yn(r))}function Pg(r,a,f){return f===l&&(f=a,a=l),f!==l&&(f=Xn(f),f=f===f?f:0),a!==l&&(a=Xn(a),a=a===a?a:0),wo(Xn(r),a,f)}function Ig(r,a,f){return a=To(a),f===l?(f=a,a=0):f=To(f),r=Xn(r),ea(r,a,f)}function Ag(r,a,f){if(f&&typeof f!="boolean"&&y(r,a,f)&&(a=f=l),f===l&&(typeof a=="boolean"?(f=a,a=l):typeof r=="boolean"&&(f=r,r=l)),r===l&&a===l?(r=0,a=1):(r=To(r),a===l?(a=r,r=0):a=To(a)),r>a){var v=r;r=a,a=v}if(f||r%1||a%1){var x=Hi();return mr(r+x*(a-r+d1("1e-"+((x+"").length-1))),a)}return is(r,a)}var $g=ca(function(r,a,f){return a=a.toLowerCase(),r+(f?Tf(a):a)});function Tf(r){return J1(Ot(r).toLowerCase())}function Ef(r){return r=Ot(r),r&&r.replace(Oa,mc).replace(lc,"")}function Dg(r,a,f){r=Ot(r),a=kr(a);var v=r.length;f=f===l?v:wo(ut(f),0,v);var x=f;return f-=a.length,f>=0&&r.slice(f,x)==a}function Rg(r){return r=Ot(r),r&&Qr.test(r)?r.replace(ur,y1):r}function Ng(r){return r=Ot(r),r&&Hn.test(r)?r.replace(oo,"\\$&"):r}var Hg=ca(function(r,a,f){return r+(f?"-":"")+a.toLowerCase()}),Bg=ca(function(r,a,f){return r+(f?" ":"")+a.toLowerCase()}),Fg=a0("toLowerCase");function Wg(r,a,f){r=Ot(r),a=ut(a);var v=a?ho(r):0;if(!a||v>=a)return r;var x=(a-v)/2;return ds(Yo(x),f)+r+ds(Ko(x),f)}function Ug(r,a,f){r=Ot(r),a=ut(a);var v=a?ho(r):0;return a&&v<a?r+ds(a-v,f):r}function Zg(r,a,f){r=Ot(r),a=ut(a);var v=a?ho(r):0;return a&&v<a?ds(a-v,f)+r:r}function Vg(r,a,f){return f||a==null?a=0:a&&(a=+a),Wa(Ot(r).replace(ao,""),a||0)}function Gg(r,a,f){return(f?y(r,a,f):a===l)?a=1:a=ut(a),pu(Ot(r),a)}function qg(){var r=arguments,a=Ot(r[0]);return r.length<3?a:a.replace(r[1],r[2])}var jg=ca(function(r,a,f){return r+(f?"_":"")+a.toLowerCase()});function Kg(r,a,f){return f&&typeof f!="number"&&y(r,a,f)&&(a=f=l),f=f===l?It:f>>>0,f?(r=Ot(r),r&&(typeof a=="string"||a!=null&&!Y1(a))&&(a=kr(a),!a&&En(r))?Ki(hn(r),0,f):r.split(a,f)):[]}var Yg=ca(function(r,a,f){return r+(f?" ":"")+J1(a)});function Xg(r,a,f){return r=Ot(r),f=f==null?0:wo(ut(f),0,r.length),a=kr(a),r.slice(f,f+a.length)==a}function Qg(r,a,f){var v=z.templateSettings;f&&y(r,a,f)&&(a=l),r=Ot(r),a=w0({},a,v,fs);var x=w0({},a.imports,v.imports,fs),L=Ar(x),E=$l(x,L),$,F,ne=0,ie=a.interpolate||$t,se="__p += '",ze=Ii((a.escape||$t).source+"|"+ie.source+"|"+(ie===_a?ni:$t).source+"|"+(a.evaluate||$t).source+"|$","g"),De="//# sourceURL="+(tt.call(a,"sourceURL")?(a.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Bs+"]")+`
1596
1596
  `;r.replace(ze,function(qe,pt,vt,Dn,sn,Rn){return vt||(vt=Dn),se+=r.slice(ne,Rn).replace(Oe,yc),pt&&($=!0,se+=`' +
1597
1597
  __e(`+pt+`) +
1598
1598
  '`),sn&&(F=!0,se+=`';
@@ -1600,16 +1600,16 @@ __e(`+pt+`) +
1600
1600
  __p += '`),vt&&(se+=`' +
1601
1601
  ((__t = (`+vt+`)) == null ? '' : __t) +
1602
1602
  '`),ne=Rn+qe.length,qe}),se+=`';
1603
- `;var Ve=tt.call(a,"variable")&&a.variable;if(!Ve)se=`with (obj) {
1603
+ `;var Ge=tt.call(a,"variable")&&a.variable;if(!Ge)se=`with (obj) {
1604
1604
  `+se+`
1605
1605
  }
1606
- `;else if(Jr.test(Ve))throw new Je(I);se=(F?se.replace(Vt,""):se).replace(No,"$1").replace(sr,"$1;"),se="function("+(Ve||"obj")+`) {
1607
- `+(Ve?"":`obj || (obj = {});
1606
+ `;else if(Jr.test(Ge))throw new Je(I);se=(F?se.replace(Gt,""):se).replace(No,"$1").replace(sr,"$1;"),se="function("+(Ge||"obj")+`) {
1607
+ `+(Ge?"":`obj || (obj = {});
1608
1608
  `)+"var __t, __p = ''"+($?", __e = _.escape":"")+(F?`, __j = Array.prototype.join;
1609
1609
  function print() { __p += __j.call(arguments, '') }
1610
1610
  `:`;
1611
1611
  `)+se+`return __p
1612
- }`;var ct=If(function(){return Ct(L,De+"return "+se).apply(l,E)});if(ct.source=se,K1(ct))throw ct;return ct}function qg(r){return Ot(r).toLowerCase()}function jg(r){return Ot(r).toUpperCase()}function Kg(r,a,f){if(r=Ot(r),r&&(f||a===l))return Ra(r);if(!r||!(a=Mr(a)))return r;var v=fn(r),x=fn(a),L=Ti(v,x),E=Dl(v,x)+1;return Ki(v,L,E).join("")}function Yg(r,a,f){if(r=Ot(r),r&&(f||a===l))return r.slice(0,Hl(r)+1);if(!r||!(a=Mr(a)))return r;var v=fn(r),x=Dl(v,fn(a))+1;return Ki(v,0,x).join("")}function Xg(r,a,f){if(r=Ot(r),r&&(f||a===l))return r.replace(ao,"");if(!r||!(a=Mr(a)))return r;var v=fn(r),x=Ti(v,fn(a));return Ki(v,x).join("")}function Qg(r,a){var f=be,v=ye;if(jt(a)){var x="separator"in a?a.separator:x;f="length"in a?ut(a.length):f,v="omission"in a?Mr(a.omission):v}r=Ot(r);var L=r.length;if(En(r)){var E=fn(r);L=E.length}if(f>=L)return r;var $=f-ho(v);if($<1)return v;var F=E?Ki(E,0,$).join(""):r.slice(0,$);if(x===l)return F+v;if(E&&($+=F.length-$),Y1(x)){if(r.slice($).search(x)){var ne,ie=F;for(x.global||(x=Ii(x.source,Ot(lo.exec(x))+"g")),x.lastIndex=0;ne=x.exec(ie);)var se=ne.index;F=F.slice(0,se===l?$:se)}}else if(r.indexOf(Mr(x),$)!=$){var ze=F.lastIndexOf(x);ze>-1&&(F=F.slice(0,ze))}return F+v}function Jg(r){return r=Ot(r),r&&Ho.test(r)?r.replace(Sn,Bl):r}var ev=ca(function(r,a,f){return r+(f?" ":"")+a.toUpperCase()}),J1=a0("toUpperCase");function Pf(r,a,f){return r=Ot(r),a=f?l:a,a===l?Wn(r)?Pn(r):vc(r):r.match(a)||[]}var If=st(function(r,a){try{return rn(r,l,a)}catch(f){return K1(f)?f:new Je(f)}}),tv=di(function(r,a){return dn(a,function(f){f=St(f),jn(r,f,q1(r[f],r))}),r});function rv(r){var a=r==null?0:r.length,f=He();return r=a?_t(r,function(v){if(typeof v[1]!="function")throw new Kr(b);return[f(v[0]),v[1]]}):[],st(function(v){for(var x=-1;++x<a;){var L=r[x];if(rn(L[0],this,v))return rn(L[1],this,v)}})}function nv(r){return Rc(Fr(r,B))}function ed(r){return function(){return r}}function iv(r,a){return r==null||r!==r?a:r}var ov=l0(),av=l0(!0);function yn(r){return r}function td(r){return Gc(typeof r=="function"?r:Fr(r,B))}function lv(r){return Vc(Fr(r,B))}function sv(r,a){return du(r,Fr(a,B))}var uv=st(function(r,a){return function(f){return ta(f,r,a)}}),cv=st(function(r,a){return function(f){return ta(r,f,a)}});function rd(r,a,f){var v=Ir(a),x=Ka(a,v);f==null&&!(jt(a)&&(x.length||!v.length))&&(f=a,a=r,r=this,x=Ka(a,Ir(a)));var L=!(jt(f)&&"chain"in f)||!!f.chain,E=Oo(r);return dn(x,function($){var F=a[$];r[$]=F,E&&(r.prototype[$]=function(){var ne=this.__chain__;if(L||ne){var ie=r(this.__wrapped__),se=ie.__actions__=fr(this.__actions__);return se.push({func:F,args:arguments,thisArg:r}),ie.__chain__=ne,ie}return F.apply(r,Oi([this.value()],arguments))})}),r}function dv(){return Ht._===this&&(Ht._=Mc),this}function nd(){}function fv(r){return r=ut(r),st(function(a){return qc(a,r)})}var hv=fa(_t),pv=fa(Us),gv=fa(uo);function Af(r){return C(r)?Vs(St(r)):N1(r)}function vv(r){return function(a){return r==null?l:Gi(r,a)}}var bv=s0(),mv=s0(!0);function id(){return[]}function od(){return!1}function yv(){return{}}function Cv(){return""}function wv(){return!0}function xv(r,a){if(r=ut(r),r<1||r>rt)return[];var f=It,v=mr(r,It);a=He(a),r-=It;for(var x=fo(v,a);++f<r;)a(f);return x}function zv(r){return lt(r)?_t(r,St):$n(r)?[r]:fr(ir(Ot(r)))}function Lv(r){var a=++$i;return Ot(r)+a}var _v=rl(function(r,a){return r+a},0),Sv=nl("ceil"),Mv=rl(function(r,a){return r/a},1),kv=nl("floor");function Ov(r){return r&&r.length?ja(r,yn,Jl):l}function Tv(r,a){return r&&r.length?ja(r,He(a,2),Jl):l}function Ev(r){return Gs(r,yn)}function Pv(r,a){return Gs(r,He(a,2))}function Iv(r){return r&&r.length?ja(r,yn,qi):l}function Av(r,a){return r&&r.length?ja(r,He(a,2),qi):l}var $v=rl(function(r,a){return r*a},1),Dv=nl("round"),Rv=rl(function(r,a){return r-a},0);function Nv(r){return r&&r.length?Ks(r,yn):0}function Hv(r,a){return r&&r.length?Ks(r,He(a,2)):0}return z.after=l5,z.ary=df,z.assign=j5,z.assignIn=_f,z.assignInWith=w0,z.assignWith=K5,z.at=Y5,z.before=ff,z.bind=q1,z.bindAll=tv,z.bindKey=hf,z.castArray=y5,z.chain=sf,z.chunk=ga,z.compact=Yi,z.concat=zr,z.cond=rv,z.conforms=nv,z.constant=ed,z.countBy=N4,z.create=X5,z.curry=pf,z.curryRight=gf,z.debounce=vf,z.defaults=Q5,z.defaultsDeep=J5,z.defer=s5,z.delay=u5,z.difference=Kn,z.differenceBy=or,z.differenceWith=Mu,z.drop=fi,z.dropRight=Mo,z.dropRightWhile=ko,z.dropWhile=Pr,z.fill=va,z.filter=B4,z.flatMap=U4,z.flatMapDeep=Z4,z.flatMapDepth=G4,z.flatten=nf,z.flattenDeep=H2,z.flattenDepth=B2,z.flip=c5,z.flow=ov,z.flowRight=av,z.fromPairs=F2,z.functions=ag,z.functionsIn=lg,z.groupBy=V4,z.initial=U2,z.intersection=Z2,z.intersectionBy=G2,z.intersectionWith=V2,z.invert=ug,z.invertBy=cg,z.invokeMap=j4,z.iteratee=td,z.keyBy=K4,z.keys=Ir,z.keysIn=mn,z.map=g0,z.mapKeys=fg,z.mapValues=hg,z.matches=lv,z.matchesProperty=sv,z.memoize=b0,z.merge=pg,z.mergeWith=Sf,z.method=uv,z.methodOf=cv,z.mixin=rd,z.negate=m0,z.nthArg=fv,z.omit=gg,z.omitBy=vg,z.once=d5,z.orderBy=Y4,z.over=hv,z.overArgs=f5,z.overEvery=pv,z.overSome=gv,z.partial=j1,z.partialRight=bf,z.partition=X4,z.pick=bg,z.pickBy=Mf,z.property=Af,z.propertyOf=vv,z.pull=Y2,z.pullAll=af,z.pullAllBy=X2,z.pullAllWith=Q2,z.pullAt=J2,z.range=bv,z.rangeRight=mv,z.rearg=h5,z.reject=e5,z.remove=e4,z.rest=p5,z.reverse=G1,z.sampleSize=r5,z.set=yg,z.setWith=Cg,z.shuffle=n5,z.slice=t4,z.sortBy=a5,z.sortedUniq=s4,z.sortedUniqBy=u4,z.split=Ug,z.spread=g5,z.tail=c4,z.take=d4,z.takeRight=f4,z.takeRightWhile=h4,z.takeWhile=p4,z.tap=O4,z.throttle=v5,z.thru=p0,z.toArray=xf,z.toPairs=kf,z.toPairsIn=Of,z.toPath=zv,z.toPlainObject=Lf,z.transform=wg,z.unary=b5,z.union=g4,z.unionBy=v4,z.unionWith=b4,z.uniq=m4,z.uniqBy=y4,z.uniqWith=C4,z.unset=xg,z.unzip=V1,z.unzipWith=lf,z.update=zg,z.updateWith=Lg,z.values=ms,z.valuesIn=_g,z.without=w4,z.words=Pf,z.wrap=m5,z.xor=x4,z.xorBy=z4,z.xorWith=L4,z.zip=_4,z.zipObject=S4,z.zipObjectDeep=M4,z.zipWith=k4,z.entries=kf,z.entriesIn=Of,z.extend=_f,z.extendWith=w0,rd(z,z),z.add=_v,z.attempt=If,z.camelCase=Og,z.capitalize=Tf,z.ceil=Sv,z.clamp=Sg,z.clone=C5,z.cloneDeep=x5,z.cloneDeepWith=z5,z.cloneWith=w5,z.conformsTo=L5,z.deburr=Ef,z.defaultTo=iv,z.divide=Mv,z.endsWith=Tg,z.eq=hi,z.escape=Eg,z.escapeRegExp=Pg,z.every=H4,z.find=F4,z.findIndex=vs,z.findKey=eg,z.findLast=W4,z.findLastIndex=rf,z.findLastKey=tg,z.floor=kv,z.forEach=uf,z.forEachRight=cf,z.forIn=rg,z.forInRight=ng,z.forOwn=ig,z.forOwnRight=og,z.get=X1,z.gt=_5,z.gte=S5,z.has=sg,z.hasIn=Q1,z.head=of,z.identity=yn,z.includes=q4,z.indexOf=W2,z.inRange=Mg,z.invoke=dg,z.isArguments=ll,z.isArray=lt,z.isArrayBuffer=M5,z.isArrayLike=bn,z.isArrayLikeObject=ar,z.isBoolean=k5,z.isBuffer=ba,z.isDate=O5,z.isElement=T5,z.isEmpty=E5,z.isEqual=P5,z.isEqualWith=I5,z.isError=K1,z.isFinite=A5,z.isFunction=Oo,z.isInteger=mf,z.isLength=y0,z.isMap=yf,z.isMatch=$5,z.isMatchWith=D5,z.isNaN=R5,z.isNative=N5,z.isNil=B5,z.isNull=H5,z.isNumber=Cf,z.isObject=jt,z.isObjectLike=Qt,z.isPlainObject=ku,z.isRegExp=Y1,z.isSafeInteger=F5,z.isSet=wf,z.isString=C0,z.isSymbol=$n,z.isTypedArray=bs,z.isUndefined=W5,z.isWeakMap=U5,z.isWeakSet=Z5,z.join=q2,z.kebabCase=Ig,z.last=Yn,z.lastIndexOf=j2,z.lowerCase=Ag,z.lowerFirst=$g,z.lt=G5,z.lte=V5,z.max=Ov,z.maxBy=Tv,z.mean=Ev,z.meanBy=Pv,z.min=Iv,z.minBy=Av,z.stubArray=id,z.stubFalse=od,z.stubObject=yv,z.stubString=Cv,z.stubTrue=wv,z.multiply=$v,z.nth=K2,z.noConflict=dv,z.noop=nd,z.now=v0,z.pad=Dg,z.padEnd=Rg,z.padStart=Ng,z.parseInt=Hg,z.random=kg,z.reduce=Q4,z.reduceRight=J4,z.repeat=Bg,z.replace=Fg,z.result=mg,z.round=Dv,z.runInContext=H,z.sample=t5,z.size=i5,z.snakeCase=Wg,z.some=o5,z.sortedIndex=r4,z.sortedIndexBy=n4,z.sortedIndexOf=i4,z.sortedLastIndex=o4,z.sortedLastIndexBy=a4,z.sortedLastIndexOf=l4,z.startCase=Zg,z.startsWith=Gg,z.subtract=Rv,z.sum=Nv,z.sumBy=Hv,z.template=Vg,z.times=xv,z.toFinite=To,z.toInteger=ut,z.toLength=zf,z.toLower=qg,z.toNumber=Xn,z.toSafeInteger=q5,z.toString=Ot,z.toUpper=jg,z.trim=Kg,z.trimEnd=Yg,z.trimStart=Xg,z.truncate=Qg,z.unescape=Jg,z.uniqueId=Lv,z.upperCase=ev,z.upperFirst=J1,z.each=uf,z.eachRight=cf,z.first=of,rd(z,function(){var r={};return an(z,function(a,f){tt.call(z.prototype,f)||(r[f]=a)}),r}(),{chain:!1}),z.VERSION=d,dn(["bind","bindKey","curry","curryRight","partial","partialRight"],function(r){z[r].placeholder=z}),dn(["drop","take"],function(r,a){ft.prototype[r]=function(f){f=f===l?1:Bt(ut(f),0);var v=this.__filtered__&&!a?new ft(this):this.clone();return v.__filtered__?v.__takeCount__=mr(f,v.__takeCount__):v.__views__.push({size:mr(f,It),type:r+(v.__dir__<0?"Right":"")}),v},ft.prototype[r+"Right"]=function(f){return this.reverse()[r](f).reverse()}}),dn(["filter","map","takeWhile"],function(r,a){var f=a+1,v=f==P||f==ee;ft.prototype[r]=function(x){var L=this.clone();return L.__iteratees__.push({iteratee:He(x,3),type:f}),L.__filtered__=L.__filtered__||v,L}}),dn(["head","last"],function(r,a){var f="take"+(a?"Right":"");ft.prototype[r]=function(){return this[f](1).value()[0]}}),dn(["initial","tail"],function(r,a){var f="drop"+(a?"":"Right");ft.prototype[r]=function(){return this.__filtered__?new ft(this):this[f](1)}}),ft.prototype.compact=function(){return this.filter(yn)},ft.prototype.find=function(r){return this.filter(r).head()},ft.prototype.findLast=function(r){return this.reverse().find(r)},ft.prototype.invokeMap=st(function(r,a){return typeof r=="function"?new ft(this):this.map(function(f){return ta(f,r,a)})}),ft.prototype.reject=function(r){return this.filter(m0(He(r)))},ft.prototype.slice=function(r,a){r=ut(r);var f=this;return f.__filtered__&&(r>0||a<0)?new ft(f):(r<0?f=f.takeRight(-r):r&&(f=f.drop(r)),a!==l&&(a=ut(a),f=a<0?f.dropRight(-a):f.take(a-r)),f)},ft.prototype.takeRightWhile=function(r){return this.reverse().takeWhile(r).reverse()},ft.prototype.toArray=function(){return this.take(It)},an(ft.prototype,function(r,a){var f=/^(?:filter|find|map|reject)|While$/.test(a),v=/^(?:head|last)$/.test(a),x=z[v?"take"+(a=="last"?"Right":""):a],L=v||/^find/.test(a);!x||(z.prototype[a]=function(){var E=this.__wrapped__,$=v?[1]:arguments,F=E instanceof ft,ne=$[0],ie=F||lt(E),se=function(pt){var vt=x.apply(z,Oi([pt],$));return v&&ze?vt[0]:vt};ie&&f&&typeof ne=="function"&&ne.length!=1&&(F=ie=!1);var ze=this.__chain__,De=!!this.__actions__.length,Ve=L&&!ze,ct=F&&!De;if(!L&&ie){E=ct?E:new ft(this);var qe=r.apply(E,$);return qe.__actions__.push({func:p0,args:[se],thisArg:l}),new Br(qe,ze)}return Ve&&ct?r.apply(this,$):(qe=this.thru(se),Ve?v?qe.value()[0]:qe.value():qe)})}),dn(["pop","push","shift","sort","splice","unshift"],function(r){var a=Vo[r],f=/^(?:push|sort|unshift)$/.test(r)?"tap":"thru",v=/^(?:pop|shift)$/.test(r);z.prototype[r]=function(){var x=arguments;if(v&&!this.__chain__){var L=this.value();return a.apply(lt(L)?L:[],x)}return this[f](function(E){return a.apply(lt(E)?E:[],x)})}}),an(ft.prototype,function(r,a){var f=z[a];if(f){var v=f.name+"";tt.call(Qo,v)||(Qo[v]=[]),Qo[v].push({name:a,func:f})}}),Qo[tl(l,Me).name]=[{name:"wrapper",func:l}],ft.prototype.clone=O1,ft.prototype.reverse=T1,ft.prototype.value=Qs,z.prototype.at=T4,z.prototype.chain=E4,z.prototype.commit=P4,z.prototype.next=I4,z.prototype.plant=$4,z.prototype.reverse=D4,z.prototype.toJSON=z.prototype.valueOf=z.prototype.value=R4,z.prototype.first=z.prototype.head,Di&&(z.prototype[Di]=A4),z},Pi=_c();Nr?((Nr.exports=Pi)._=Pi,Ia._=Pi):Ht._=Pi}).call(ws)})(Wu,Wu.exports);const j3=Wu.exports,K3=Bv({__proto__:null,default:j3},[Wu.exports]);var Y3=Object.defineProperty,X3=Object.getOwnPropertyDescriptor,bl=(s,i,l,d)=>{for(var c=d>1?void 0:d?X3(i,l):i,g=s.length-1,b;g>=0;g--)(b=s[g])&&(c=(d?b(i,l,c):b(c))||c);return d&&c&&Y3(i,l,c),c};class ti extends Be{constructor(){super(...arguments),this.disabled=!1,this.invalid=!1,this.name="",this.id="input",this.useProxy=!1}connectedCallback(){super.connectedCallback(),this.useProxy&&this.createProxyInput()}onInput(i){this.value=i.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(i){super.updated(i),this.useProxy&&this.updateProxyInput()}}ti.shadowRootOptions={mode:"open",delegatesFocus:!0};bl([R({type:Boolean,reflect:!0})],ti.prototype,"disabled",2);bl([R({type:Boolean,reflect:!0})],ti.prototype,"invalid",2);bl([R({type:String})],ti.prototype,"name",2);bl([R({type:String})],ti.prototype,"id",2);bl([R({type:String})],ti.prototype,"value",2);bl([Re()],ti.prototype,"proxyInput",2);bl([Re()],ti.prototype,"useProxy",2);var Q3=Object.defineProperty,J3=Object.getOwnPropertyDescriptor,ml=(s,i,l,d)=>{for(var c=d>1?void 0:d?J3(i,l):i,g=s.length-1,b;g>=0;g--)(b=s[g])&&(c=(d?b(i,l,c):b(c))||c);return d&&c&&Q3(i,l,c),c};const ap=Le("input-checkbox"),gi={Checked:"Checked",Indeterminate:"Indeterminate",Empty:"Empty"};exports.InputCheckbox=class extends ti{constructor(){super(...arguments),this.checked=!1,this.disabled=!1,this.value="on",this.indeterminate=!1,this.checkboxState=gi.Empty,this.inputElement=null}updateProxyInput(){super.updateProxyInput(),this.proxyInput&&(this.checked?(this.proxyInput.setAttribute("checked",""),this.proxyInput.value=this.value||""):this.proxyInput.value="")}handleKeyPress(s){s.preventDefault(),s.key===" "&&this.onInput()}onInput(){if(!this.disabled){switch(this.checkboxState){case gi.Checked:this.checked=!1;break;case gi.Empty:this.checked=!0;break;case gi.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 gi.Checked:return K`<brz-icon icon="checkBoxTick" size="16"></brz-icon>`;case gi.Indeterminate:return K`<brz-icon icon="zoomOut" size="16"></brz-icon>`;case gi.Empty:default:return}}firstUpdated(){this.inputElement=this.renderRoot.querySelector("input"),this.indeterminate&&this.inputElement&&(this.inputElement.indeterminate=!0)}render(){return this.checkboxState=this.checked?gi.Checked:this.indeterminate?gi.Indeterminate:gi.Empty,K`
1612
+ }`;var ct=If(function(){return Ct(L,De+"return "+se).apply(l,E)});if(ct.source=se,K1(ct))throw ct;return ct}function Jg(r){return Ot(r).toLowerCase()}function ev(r){return Ot(r).toUpperCase()}function tv(r,a,f){if(r=Ot(r),r&&(f||a===l))return Ra(r);if(!r||!(a=kr(a)))return r;var v=hn(r),x=hn(a),L=Ti(v,x),E=Dl(v,x)+1;return Ki(v,L,E).join("")}function rv(r,a,f){if(r=Ot(r),r&&(f||a===l))return r.slice(0,Hl(r)+1);if(!r||!(a=kr(a)))return r;var v=hn(r),x=Dl(v,hn(a))+1;return Ki(v,0,x).join("")}function nv(r,a,f){if(r=Ot(r),r&&(f||a===l))return r.replace(ao,"");if(!r||!(a=kr(a)))return r;var v=hn(r),x=Ti(v,hn(a));return Ki(v,x).join("")}function iv(r,a){var f=be,v=ye;if(jt(a)){var x="separator"in a?a.separator:x;f="length"in a?ut(a.length):f,v="omission"in a?kr(a.omission):v}r=Ot(r);var L=r.length;if(En(r)){var E=hn(r);L=E.length}if(f>=L)return r;var $=f-ho(v);if($<1)return v;var F=E?Ki(E,0,$).join(""):r.slice(0,$);if(x===l)return F+v;if(E&&($+=F.length-$),Y1(x)){if(r.slice($).search(x)){var ne,ie=F;for(x.global||(x=Ii(x.source,Ot(lo.exec(x))+"g")),x.lastIndex=0;ne=x.exec(ie);)var se=ne.index;F=F.slice(0,se===l?$:se)}}else if(r.indexOf(kr(x),$)!=$){var ze=F.lastIndexOf(x);ze>-1&&(F=F.slice(0,ze))}return F+v}function ov(r){return r=Ot(r),r&&Ho.test(r)?r.replace(Sn,Bl):r}var av=ca(function(r,a,f){return r+(f?" ":"")+a.toUpperCase()}),J1=a0("toUpperCase");function Pf(r,a,f){return r=Ot(r),a=f?l:a,a===l?Wn(r)?Pn(r):vc(r):r.match(a)||[]}var If=st(function(r,a){try{return rn(r,l,a)}catch(f){return K1(f)?f:new Je(f)}}),lv=di(function(r,a){return fn(a,function(f){f=St(f),jn(r,f,q1(r[f],r))}),r});function sv(r){var a=r==null?0:r.length,f=He();return r=a?_t(r,function(v){if(typeof v[1]!="function")throw new Kr(b);return[f(v[0]),v[1]]}):[],st(function(v){for(var x=-1;++x<a;){var L=r[x];if(rn(L[0],this,v))return rn(L[1],this,v)}})}function uv(r){return Rc(Fr(r,B))}function ed(r){return function(){return r}}function cv(r,a){return r==null||r!==r?a:r}var dv=l0(),fv=l0(!0);function Cn(r){return r}function td(r){return Vc(typeof r=="function"?r:Fr(r,B))}function hv(r){return Gc(Fr(r,B))}function pv(r,a){return du(r,Fr(a,B))}var gv=st(function(r,a){return function(f){return ta(f,r,a)}}),vv=st(function(r,a){return function(f){return ta(r,f,a)}});function rd(r,a,f){var v=Ar(a),x=Ka(a,v);f==null&&!(jt(a)&&(x.length||!v.length))&&(f=a,a=r,r=this,x=Ka(a,Ar(a)));var L=!(jt(f)&&"chain"in f)||!!f.chain,E=Oo(r);return fn(x,function($){var F=a[$];r[$]=F,E&&(r.prototype[$]=function(){var ne=this.__chain__;if(L||ne){var ie=r(this.__wrapped__),se=ie.__actions__=fr(this.__actions__);return se.push({func:F,args:arguments,thisArg:r}),ie.__chain__=ne,ie}return F.apply(r,Oi([this.value()],arguments))})}),r}function bv(){return Ht._===this&&(Ht._=Mc),this}function nd(){}function mv(r){return r=ut(r),st(function(a){return qc(a,r)})}var yv=fa(_t),Cv=fa(Us),wv=fa(uo);function Af(r){return C(r)?Gs(St(r)):N1(r)}function xv(r){return function(a){return r==null?l:Vi(r,a)}}var zv=s0(),Lv=s0(!0);function id(){return[]}function od(){return!1}function _v(){return{}}function Sv(){return""}function Mv(){return!0}function kv(r,a){if(r=ut(r),r<1||r>rt)return[];var f=It,v=mr(r,It);a=He(a),r-=It;for(var x=fo(v,a);++f<r;)a(f);return x}function Ov(r){return lt(r)?_t(r,St):$n(r)?[r]:fr(ir(Ot(r)))}function Tv(r){var a=++$i;return Ot(r)+a}var Ev=rl(function(r,a){return r+a},0),Pv=nl("ceil"),Iv=rl(function(r,a){return r/a},1),Av=nl("floor");function $v(r){return r&&r.length?ja(r,Cn,Jl):l}function Dv(r,a){return r&&r.length?ja(r,He(a,2),Jl):l}function Rv(r){return Vs(r,Cn)}function Nv(r,a){return Vs(r,He(a,2))}function Hv(r){return r&&r.length?ja(r,Cn,qi):l}function Bv(r,a){return r&&r.length?ja(r,He(a,2),qi):l}var Fv=rl(function(r,a){return r*a},1),Wv=nl("round"),Uv=rl(function(r,a){return r-a},0);function Zv(r){return r&&r.length?Ks(r,Cn):0}function Vv(r,a){return r&&r.length?Ks(r,He(a,2)):0}return z.after=h5,z.ary=df,z.assign=eg,z.assignIn=_f,z.assignInWith=w0,z.assignWith=tg,z.at=rg,z.before=ff,z.bind=q1,z.bindAll=lv,z.bindKey=hf,z.castArray=_5,z.chain=sf,z.chunk=ga,z.compact=Yi,z.concat=zr,z.cond=sv,z.conforms=uv,z.constant=ed,z.countBy=Z4,z.create=ng,z.curry=pf,z.curryRight=gf,z.debounce=vf,z.defaults=ig,z.defaultsDeep=og,z.defer=p5,z.delay=g5,z.difference=Kn,z.differenceBy=or,z.differenceWith=Mu,z.drop=fi,z.dropRight=Mo,z.dropRightWhile=ko,z.dropWhile=Ir,z.fill=va,z.filter=G4,z.flatMap=K4,z.flatMapDeep=Y4,z.flatMapDepth=X4,z.flatten=nf,z.flattenDeep=V2,z.flattenDepth=G2,z.flip=v5,z.flow=dv,z.flowRight=fv,z.fromPairs=q2,z.functions=fg,z.functionsIn=hg,z.groupBy=Q4,z.initial=K2,z.intersection=Y2,z.intersectionBy=X2,z.intersectionWith=Q2,z.invert=gg,z.invertBy=vg,z.invokeMap=e5,z.iteratee=td,z.keyBy=t5,z.keys=Ar,z.keysIn=yn,z.map=g0,z.mapKeys=mg,z.mapValues=yg,z.matches=hv,z.matchesProperty=pv,z.memoize=b0,z.merge=Cg,z.mergeWith=Sf,z.method=gv,z.methodOf=vv,z.mixin=rd,z.negate=m0,z.nthArg=mv,z.omit=wg,z.omitBy=xg,z.once=b5,z.orderBy=r5,z.over=yv,z.overArgs=m5,z.overEvery=Cv,z.overSome=wv,z.partial=j1,z.partialRight=bf,z.partition=n5,z.pick=zg,z.pickBy=Mf,z.property=Af,z.propertyOf=xv,z.pull=r4,z.pullAll=af,z.pullAllBy=n4,z.pullAllWith=i4,z.pullAt=o4,z.range=zv,z.rangeRight=Lv,z.rearg=y5,z.reject=a5,z.remove=a4,z.rest=C5,z.reverse=V1,z.sampleSize=s5,z.set=_g,z.setWith=Sg,z.shuffle=u5,z.slice=l4,z.sortBy=f5,z.sortedUniq=p4,z.sortedUniqBy=g4,z.split=Kg,z.spread=w5,z.tail=v4,z.take=b4,z.takeRight=m4,z.takeRightWhile=y4,z.takeWhile=C4,z.tap=$4,z.throttle=x5,z.thru=p0,z.toArray=xf,z.toPairs=kf,z.toPairsIn=Of,z.toPath=Ov,z.toPlainObject=Lf,z.transform=Mg,z.unary=z5,z.union=w4,z.unionBy=x4,z.unionWith=z4,z.uniq=L4,z.uniqBy=_4,z.uniqWith=S4,z.unset=kg,z.unzip=G1,z.unzipWith=lf,z.update=Og,z.updateWith=Tg,z.values=ms,z.valuesIn=Eg,z.without=M4,z.words=Pf,z.wrap=L5,z.xor=k4,z.xorBy=O4,z.xorWith=T4,z.zip=E4,z.zipObject=P4,z.zipObjectDeep=I4,z.zipWith=A4,z.entries=kf,z.entriesIn=Of,z.extend=_f,z.extendWith=w0,rd(z,z),z.add=Ev,z.attempt=If,z.camelCase=$g,z.capitalize=Tf,z.ceil=Pv,z.clamp=Pg,z.clone=S5,z.cloneDeep=k5,z.cloneDeepWith=O5,z.cloneWith=M5,z.conformsTo=T5,z.deburr=Ef,z.defaultTo=cv,z.divide=Iv,z.endsWith=Dg,z.eq=hi,z.escape=Rg,z.escapeRegExp=Ng,z.every=V4,z.find=q4,z.findIndex=vs,z.findKey=ag,z.findLast=j4,z.findLastIndex=rf,z.findLastKey=lg,z.floor=Av,z.forEach=uf,z.forEachRight=cf,z.forIn=sg,z.forInRight=ug,z.forOwn=cg,z.forOwnRight=dg,z.get=X1,z.gt=E5,z.gte=P5,z.has=pg,z.hasIn=Q1,z.head=of,z.identity=Cn,z.includes=J4,z.indexOf=j2,z.inRange=Ig,z.invoke=bg,z.isArguments=ll,z.isArray=lt,z.isArrayBuffer=I5,z.isArrayLike=mn,z.isArrayLikeObject=ar,z.isBoolean=A5,z.isBuffer=ba,z.isDate=$5,z.isElement=D5,z.isEmpty=R5,z.isEqual=N5,z.isEqualWith=H5,z.isError=K1,z.isFinite=B5,z.isFunction=Oo,z.isInteger=mf,z.isLength=y0,z.isMap=yf,z.isMatch=F5,z.isMatchWith=W5,z.isNaN=U5,z.isNative=Z5,z.isNil=G5,z.isNull=V5,z.isNumber=Cf,z.isObject=jt,z.isObjectLike=Qt,z.isPlainObject=ku,z.isRegExp=Y1,z.isSafeInteger=q5,z.isSet=wf,z.isString=C0,z.isSymbol=$n,z.isTypedArray=bs,z.isUndefined=j5,z.isWeakMap=K5,z.isWeakSet=Y5,z.join=J2,z.kebabCase=Hg,z.last=Yn,z.lastIndexOf=e4,z.lowerCase=Bg,z.lowerFirst=Fg,z.lt=X5,z.lte=Q5,z.max=$v,z.maxBy=Dv,z.mean=Rv,z.meanBy=Nv,z.min=Hv,z.minBy=Bv,z.stubArray=id,z.stubFalse=od,z.stubObject=_v,z.stubString=Sv,z.stubTrue=Mv,z.multiply=Fv,z.nth=t4,z.noConflict=bv,z.noop=nd,z.now=v0,z.pad=Wg,z.padEnd=Ug,z.padStart=Zg,z.parseInt=Vg,z.random=Ag,z.reduce=i5,z.reduceRight=o5,z.repeat=Gg,z.replace=qg,z.result=Lg,z.round=Wv,z.runInContext=H,z.sample=l5,z.size=c5,z.snakeCase=jg,z.some=d5,z.sortedIndex=s4,z.sortedIndexBy=u4,z.sortedIndexOf=c4,z.sortedLastIndex=d4,z.sortedLastIndexBy=f4,z.sortedLastIndexOf=h4,z.startCase=Yg,z.startsWith=Xg,z.subtract=Uv,z.sum=Zv,z.sumBy=Vv,z.template=Qg,z.times=kv,z.toFinite=To,z.toInteger=ut,z.toLength=zf,z.toLower=Jg,z.toNumber=Xn,z.toSafeInteger=J5,z.toString=Ot,z.toUpper=ev,z.trim=tv,z.trimEnd=rv,z.trimStart=nv,z.truncate=iv,z.unescape=ov,z.uniqueId=Tv,z.upperCase=av,z.upperFirst=J1,z.each=uf,z.eachRight=cf,z.first=of,rd(z,function(){var r={};return an(z,function(a,f){tt.call(z.prototype,f)||(r[f]=a)}),r}(),{chain:!1}),z.VERSION=d,fn(["bind","bindKey","curry","curryRight","partial","partialRight"],function(r){z[r].placeholder=z}),fn(["drop","take"],function(r,a){ft.prototype[r]=function(f){f=f===l?1:Bt(ut(f),0);var v=this.__filtered__&&!a?new ft(this):this.clone();return v.__filtered__?v.__takeCount__=mr(f,v.__takeCount__):v.__views__.push({size:mr(f,It),type:r+(v.__dir__<0?"Right":"")}),v},ft.prototype[r+"Right"]=function(f){return this.reverse()[r](f).reverse()}}),fn(["filter","map","takeWhile"],function(r,a){var f=a+1,v=f==P||f==ee;ft.prototype[r]=function(x){var L=this.clone();return L.__iteratees__.push({iteratee:He(x,3),type:f}),L.__filtered__=L.__filtered__||v,L}}),fn(["head","last"],function(r,a){var f="take"+(a?"Right":"");ft.prototype[r]=function(){return this[f](1).value()[0]}}),fn(["initial","tail"],function(r,a){var f="drop"+(a?"":"Right");ft.prototype[r]=function(){return this.__filtered__?new ft(this):this[f](1)}}),ft.prototype.compact=function(){return this.filter(Cn)},ft.prototype.find=function(r){return this.filter(r).head()},ft.prototype.findLast=function(r){return this.reverse().find(r)},ft.prototype.invokeMap=st(function(r,a){return typeof r=="function"?new ft(this):this.map(function(f){return ta(f,r,a)})}),ft.prototype.reject=function(r){return this.filter(m0(He(r)))},ft.prototype.slice=function(r,a){r=ut(r);var f=this;return f.__filtered__&&(r>0||a<0)?new ft(f):(r<0?f=f.takeRight(-r):r&&(f=f.drop(r)),a!==l&&(a=ut(a),f=a<0?f.dropRight(-a):f.take(a-r)),f)},ft.prototype.takeRightWhile=function(r){return this.reverse().takeWhile(r).reverse()},ft.prototype.toArray=function(){return this.take(It)},an(ft.prototype,function(r,a){var f=/^(?:filter|find|map|reject)|While$/.test(a),v=/^(?:head|last)$/.test(a),x=z[v?"take"+(a=="last"?"Right":""):a],L=v||/^find/.test(a);!x||(z.prototype[a]=function(){var E=this.__wrapped__,$=v?[1]:arguments,F=E instanceof ft,ne=$[0],ie=F||lt(E),se=function(pt){var vt=x.apply(z,Oi([pt],$));return v&&ze?vt[0]:vt};ie&&f&&typeof ne=="function"&&ne.length!=1&&(F=ie=!1);var ze=this.__chain__,De=!!this.__actions__.length,Ge=L&&!ze,ct=F&&!De;if(!L&&ie){E=ct?E:new ft(this);var qe=r.apply(E,$);return qe.__actions__.push({func:p0,args:[se],thisArg:l}),new Br(qe,ze)}return Ge&&ct?r.apply(this,$):(qe=this.thru(se),Ge?v?qe.value()[0]:qe.value():qe)})}),fn(["pop","push","shift","sort","splice","unshift"],function(r){var a=Go[r],f=/^(?:push|sort|unshift)$/.test(r)?"tap":"thru",v=/^(?:pop|shift)$/.test(r);z.prototype[r]=function(){var x=arguments;if(v&&!this.__chain__){var L=this.value();return a.apply(lt(L)?L:[],x)}return this[f](function(E){return a.apply(lt(E)?E:[],x)})}}),an(ft.prototype,function(r,a){var f=z[a];if(f){var v=f.name+"";tt.call(Qo,v)||(Qo[v]=[]),Qo[v].push({name:a,func:f})}}),Qo[tl(l,Me).name]=[{name:"wrapper",func:l}],ft.prototype.clone=O1,ft.prototype.reverse=T1,ft.prototype.value=Qs,z.prototype.at=D4,z.prototype.chain=R4,z.prototype.commit=N4,z.prototype.next=H4,z.prototype.plant=F4,z.prototype.reverse=W4,z.prototype.toJSON=z.prototype.valueOf=z.prototype.value=U4,z.prototype.first=z.prototype.head,Di&&(z.prototype[Di]=B4),z},Pi=_c();Nr?((Nr.exports=Pi)._=Pi,Ia._=Pi):Ht._=Pi}).call(ws)})(Wu,Wu.exports);const e7=Wu.exports,t7=Gv({__proto__:null,default:e7},[Wu.exports]);var r7=Object.defineProperty,n7=Object.getOwnPropertyDescriptor,bl=(s,i,l,d)=>{for(var c=d>1?void 0:d?n7(i,l):i,g=s.length-1,b;g>=0;g--)(b=s[g])&&(c=(d?b(i,l,c):b(c))||c);return d&&c&&r7(i,l,c),c};class ti extends Be{constructor(){super(...arguments),this.disabled=!1,this.invalid=!1,this.name="",this.id="input",this.useProxy=!1}connectedCallback(){super.connectedCallback(),this.useProxy&&this.createProxyInput()}onInput(i){this.value=i.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(i){super.updated(i),this.useProxy&&this.updateProxyInput()}}ti.shadowRootOptions={mode:"open",delegatesFocus:!0};bl([R({type:Boolean,reflect:!0})],ti.prototype,"disabled",2);bl([R({type:Boolean,reflect:!0})],ti.prototype,"invalid",2);bl([R({type:String})],ti.prototype,"name",2);bl([R({type:String})],ti.prototype,"id",2);bl([R({type:String})],ti.prototype,"value",2);bl([Re()],ti.prototype,"proxyInput",2);bl([Re()],ti.prototype,"useProxy",2);var i7=Object.defineProperty,o7=Object.getOwnPropertyDescriptor,ml=(s,i,l,d)=>{for(var c=d>1?void 0:d?o7(i,l):i,g=s.length-1,b;g>=0;g--)(b=s[g])&&(c=(d?b(i,l,c):b(c))||c);return d&&c&&i7(i,l,c),c};const cp=Le("input-checkbox"),gi={Checked:"Checked",Indeterminate:"Indeterminate",Empty:"Empty"};exports.InputCheckbox=class extends ti{constructor(){super(...arguments),this.checked=!1,this.disabled=!1,this.value="on",this.indeterminate=!1,this.checkboxState=gi.Empty,this.inputElement=null}updateProxyInput(){super.updateProxyInput(),this.proxyInput&&(this.checked?(this.proxyInput.setAttribute("checked",""),this.proxyInput.value=this.value||""):this.proxyInput.value="")}handleKeyPress(s){s.preventDefault(),s.key===" "&&this.onInput()}onInput(){if(!this.disabled){switch(this.checkboxState){case gi.Checked:this.checked=!1;break;case gi.Empty:this.checked=!0;break;case gi.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 gi.Checked:return j`<brz-icon icon="checkBoxTick" size="16"></brz-icon>`;case gi.Indeterminate:return j`<brz-icon icon="zoomOut" size="16"></brz-icon>`;case gi.Empty:default:return}}firstUpdated(){this.inputElement=this.renderRoot.querySelector("input"),this.indeterminate&&this.inputElement&&(this.inputElement.indeterminate=!0)}render(){return this.checkboxState=this.checked?gi.Checked:this.indeterminate?gi.Indeterminate:gi.Empty,j`
1613
1613
  <label>
1614
1614
  <div class="checkbox-left">
1615
1615
  <div
@@ -1633,7 +1633,7 @@ function print() { __p += __j.call(arguments, '') }
1633
1633
 
1634
1634
  <slot></slot>
1635
1635
  </label>
1636
- `}};exports.InputCheckbox.styles=[ce`
1636
+ `}};exports.InputCheckbox.styles=[ue`
1637
1637
  :host {
1638
1638
  --brz-checkbox-size: var(--brz-spacing-4);
1639
1639
  --input-invalid-color: var(--brz-color-error);
@@ -1713,7 +1713,7 @@ function print() { __p += __j.call(arguments, '') }
1713
1713
  position: absolute;
1714
1714
  left: 0;
1715
1715
  }
1716
- `];ml([R({type:Boolean,reflect:!0})],exports.InputCheckbox.prototype,"checked",2);ml([R({type:Boolean,reflect:!0})],exports.InputCheckbox.prototype,"disabled",2);ml([R()],exports.InputCheckbox.prototype,"value",2);ml([R({type:Boolean,reflect:!0})],exports.InputCheckbox.prototype,"indeterminate",2);ml([Re()],exports.InputCheckbox.prototype,"checkboxState",2);ml([Re()],exports.InputCheckbox.prototype,"inputElement",2);exports.InputCheckbox=ml([X(ap)],exports.InputCheckbox);const lp=Le("record-field"),sp=Le("record-field-label"),e7=["x-small","small","medium","large","x-large","auto","full"],t7=["side","top"],r7=ce`
1716
+ `];ml([R({type:Boolean,reflect:!0})],exports.InputCheckbox.prototype,"checked",2);ml([R({type:Boolean,reflect:!0})],exports.InputCheckbox.prototype,"disabled",2);ml([R()],exports.InputCheckbox.prototype,"value",2);ml([R({type:Boolean,reflect:!0})],exports.InputCheckbox.prototype,"indeterminate",2);ml([Re()],exports.InputCheckbox.prototype,"checkboxState",2);ml([Re()],exports.InputCheckbox.prototype,"inputElement",2);exports.InputCheckbox=ml([X(cp)],exports.InputCheckbox);const dp=Le("record-field"),fp=Le("record-field-label"),a7=["x-small","small","medium","large","x-large","auto","full"],l7=["side","top"],s7=ue`
1717
1717
  .size-x-small {
1718
1718
  width: 80px;
1719
1719
  }
@@ -1737,7 +1737,7 @@ function print() { __p += __j.call(arguments, '') }
1737
1737
  .size-full {
1738
1738
  width: 100%;
1739
1739
  }
1740
- `,n7=ce`
1740
+ `,u7=ue`
1741
1741
  :host {
1742
1742
  display: block;
1743
1743
  }
@@ -1811,7 +1811,11 @@ function print() { __p += __j.call(arguments, '') }
1811
1811
  :host([label-position='side']) .value {
1812
1812
  min-height: var(--brz-spacing-9);
1813
1813
  }
1814
- `,i7=ce`
1814
+
1815
+ :host([label-position='side']) .value.size-auto {
1816
+ flex-grow: 1;
1817
+ }
1818
+ `,c7=ue`
1815
1819
  :host {
1816
1820
  display: inline-flex;
1817
1821
  color: var(--brz-color-neutral-850);
@@ -1819,39 +1823,39 @@ function print() { __p += __j.call(arguments, '') }
1819
1823
  line-height: var(--brz-line-height);
1820
1824
  gap: var(--brz-spacing-1);
1821
1825
  }
1822
- `;var o7=Object.defineProperty,a7=Object.getOwnPropertyDescriptor,Do=(s,i,l,d)=>{for(var c=d>1?void 0:d?a7(i,l):i,g=s.length-1,b;g>=0;g--)(b=s[g])&&(c=(d?b(i,l,c):b(c))||c);return d&&c&&o7(i,l,c),c};exports.RecordField=class extends Be{constructor(){super(...arguments),this.labelPosition="top",this.size="medium",this.hasLabel=!1,this.hasLabelRight=!1,this.isValueMultiline=!1}updated(s){super.updated(s),s.has("labelPosition")&&this.setLabelState(),s.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 K`
1826
+ `;var d7=Object.defineProperty,f7=Object.getOwnPropertyDescriptor,Do=(s,i,l,d)=>{for(var c=d>1?void 0:d?f7(i,l):i,g=s.length-1,b;g>=0;g--)(b=s[g])&&(c=(d?b(i,l,c):b(c))||c);return d&&c&&d7(i,l,c),c};exports.RecordField=class extends Be{constructor(){super(...arguments),this.labelPosition="top",this.size="medium",this.hasLabel=!1,this.hasLabelRight=!1,this.isValueMultiline=!1}updated(s){super.updated(s),s.has("labelPosition")&&this.setLabelState(),s.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 j`
1823
1827
  <brz-split-row
1824
- class=${Cn({[this.sizeClass]:!0,label:!0,"label-right-row":!0,hidden:!this.hasLabelRight})}
1828
+ class=${un({[this.sizeClass]:!0,label:!0,"label-right-row":!0,hidden:!this.hasLabelRight})}
1825
1829
  >
1826
1830
  ${this.labelRightTemplate}
1827
1831
  </brz-split-row>
1828
- `}get valueTemplate(){return K` <slot></slot> `}get labelRightTemplate(){return K` <slot name="label-right" slot="right"></slot> `}render(){return K`
1832
+ `}get valueTemplate(){return j` <slot></slot> `}get labelRightTemplate(){return j` <slot name="label-right" slot="right"></slot> `}render(){return j`
1829
1833
  ${this.labelPosition==="side"?this.labelRightRowTemplate:null}
1830
1834
 
1831
1835
  <div class=${this.labelPosition==="top"?this.sizeClass:"container"}>
1832
1836
  <brz-split-row
1833
- class=${Cn({label:!0,hidden:this.labelPosition==="top"&&!this.hasLabel&&!this.hasLabelRight,[this.sizeClass]:this.labelPosition==="top"&&this.hasLabelRight})}
1837
+ class=${un({label:!0,hidden:this.labelPosition==="top"&&!this.hasLabel&&!this.hasLabelRight,[this.sizeClass]:this.labelPosition==="top"&&this.hasLabelRight})}
1834
1838
  >
1835
1839
  <slot name="label" slot="left"></slot>
1836
1840
  ${this.labelPosition==="top"?this.labelRightTemplate:null}
1837
1841
  </brz-split-row>
1838
1842
 
1839
1843
  <div
1840
- class=${Cn({value:!0,multiline:this.isValueMultiline,[this.sizeClass]:!0})}
1844
+ class=${un({value:!0,multiline:this.isValueMultiline,[this.sizeClass]:!0})}
1841
1845
  >
1842
1846
  ${this.valueTemplate}
1843
1847
  </div>
1844
1848
  </div>
1845
- `}};exports.RecordField.styles=[n7,r7];Do([R({type:String,attribute:"label-position",reflect:!0})],exports.RecordField.prototype,"labelPosition",2);Do([R({type:String,reflect:!0})],exports.RecordField.prototype,"size",2);Do([Re()],exports.RecordField.prototype,"hasLabel",2);Do([Re()],exports.RecordField.prototype,"hasLabelRight",2);Do([Re()],exports.RecordField.prototype,"isValueMultiline",2);Do([Ji(".value")],exports.RecordField.prototype,"value",2);Do([Io({slot:"label"})],exports.RecordField.prototype,"slottedLabel",2);Do([Io({slot:"label-right"})],exports.RecordField.prototype,"slottedLabelRight",2);exports.RecordField=Do([X(lp)],exports.RecordField);var l7=Object.defineProperty,s7=Object.getOwnPropertyDescriptor,Ud=(s,i,l,d)=>{for(var c=d>1?void 0:d?s7(i,l):i,g=s.length-1,b;g>=0;g--)(b=s[g])&&(c=(d?b(i,l,c):b(c))||c);return d&&c&&l7(i,l,c),c};exports.RecordFieldLabel=class extends Be{constructor(){super(...arguments),this.hasContent=!1}connectedCallback(){super.connectedCallback(),this.slot="label"}updated(s){super.updated(s),this.setState()}async setState(){await this.updateComplete,this.hasContent=!!this.defaultSlot.length,this.hidden=this.hidden||!this.hasContent}render(){return K` <slot></slot> `}};exports.RecordFieldLabel.styles=[i7];Ud([Re()],exports.RecordFieldLabel.prototype,"hasContent",2);Ud([Io()],exports.RecordFieldLabel.prototype,"defaultSlot",2);exports.RecordFieldLabel=Ud([X(sp)],exports.RecordFieldLabel);var u7=Object.defineProperty,c7=Object.getOwnPropertyDescriptor,d7=(s,i,l,d)=>{for(var c=d>1?void 0:d?c7(i,l):i,g=s.length-1,b;g>=0;g--)(b=s[g])&&(c=(d?b(i,l,c):b(c))||c);return d&&c&&u7(i,l,c),c};const f7=Le("input-guide");let I0=class extends Be{render(){return K` <slot></slot> `}};I0.styles=ce`
1849
+ `}};exports.RecordField.styles=[u7,s7];Do([R({type:String,attribute:"label-position",reflect:!0})],exports.RecordField.prototype,"labelPosition",2);Do([R({type:String,reflect:!0})],exports.RecordField.prototype,"size",2);Do([Re()],exports.RecordField.prototype,"hasLabel",2);Do([Re()],exports.RecordField.prototype,"hasLabelRight",2);Do([Re()],exports.RecordField.prototype,"isValueMultiline",2);Do([Ji(".value")],exports.RecordField.prototype,"value",2);Do([Io({slot:"label"})],exports.RecordField.prototype,"slottedLabel",2);Do([Io({slot:"label-right"})],exports.RecordField.prototype,"slottedLabelRight",2);exports.RecordField=Do([X(dp)],exports.RecordField);var h7=Object.defineProperty,p7=Object.getOwnPropertyDescriptor,Ud=(s,i,l,d)=>{for(var c=d>1?void 0:d?p7(i,l):i,g=s.length-1,b;g>=0;g--)(b=s[g])&&(c=(d?b(i,l,c):b(c))||c);return d&&c&&h7(i,l,c),c};exports.RecordFieldLabel=class extends Be{constructor(){super(...arguments),this.hasContent=!1}connectedCallback(){super.connectedCallback(),this.slot="label"}updated(s){super.updated(s),this.setState()}async setState(){await this.updateComplete,this.hasContent=!!this.defaultSlot.length,this.hidden=this.hidden||!this.hasContent}render(){return j` <slot></slot> `}};exports.RecordFieldLabel.styles=[c7];Ud([Re()],exports.RecordFieldLabel.prototype,"hasContent",2);Ud([Io()],exports.RecordFieldLabel.prototype,"defaultSlot",2);exports.RecordFieldLabel=Ud([X(fp)],exports.RecordFieldLabel);var g7=Object.defineProperty,v7=Object.getOwnPropertyDescriptor,b7=(s,i,l,d)=>{for(var c=d>1?void 0:d?v7(i,l):i,g=s.length-1,b;g>=0;g--)(b=s[g])&&(c=(d?b(i,l,c):b(c))||c);return d&&c&&g7(i,l,c),c};const m7=Le("input-guide");let I0=class extends Be{render(){return j` <slot></slot> `}};I0.styles=ue`
1846
1850
  :host {
1847
1851
  font-size: var(--brz-font-size-xs);
1848
1852
  }
1849
- `;I0=d7([X(f7)],I0);var h7=Object.defineProperty,p7=Object.getOwnPropertyDescriptor,g7=(s,i,l,d)=>{for(var c=d>1?void 0:d?p7(i,l):i,g=s.length-1,b;g>=0;g--)(b=s[g])&&(c=(d?b(i,l,c):b(c))||c);return d&&c&&h7(i,l,c),c};const up=Le("input-error");exports.InputError=class extends Be{render(){return K` <slot></slot> `}};exports.InputError.styles=ce`
1853
+ `;I0=b7([X(m7)],I0);var y7=Object.defineProperty,C7=Object.getOwnPropertyDescriptor,w7=(s,i,l,d)=>{for(var c=d>1?void 0:d?C7(i,l):i,g=s.length-1,b;g>=0;g--)(b=s[g])&&(c=(d?b(i,l,c):b(c))||c);return d&&c&&y7(i,l,c),c};const hp=Le("input-error");exports.InputError=class extends Be{render(){return j` <slot></slot> `}};exports.InputError.styles=ue`
1850
1854
  :host {
1851
1855
  font-size: var(--brz-font-size);
1852
1856
  color: var(--brz-color-error);
1853
1857
  }
1854
- `;exports.InputError=g7([X(up)],exports.InputError);var v7=Object.defineProperty,b7=Object.getOwnPropertyDescriptor,eo=(s,i,l,d)=>{for(var c=d>1?void 0:d?b7(i,l):i,g=s.length-1,b;g>=0;g--)(b=s[g])&&(c=(d?b(i,l,c):b(c))||c);return d&&c&&v7(i,l,c),c};const cp=Le("labeled-input"),dp=Le("input-label"),m7=ce`
1858
+ `;exports.InputError=w7([X(hp)],exports.InputError);var x7=Object.defineProperty,z7=Object.getOwnPropertyDescriptor,eo=(s,i,l,d)=>{for(var c=d>1?void 0:d?z7(i,l):i,g=s.length-1,b;g>=0;g--)(b=s[g])&&(c=(d?b(i,l,c):b(c))||c);return d&&c&&x7(i,l,c),c};const pp=Le("labeled-input"),gp=Le("input-label"),L7=ue`
1855
1859
  .guide {
1856
1860
  display: flex;
1857
1861
  }
@@ -1865,7 +1869,7 @@ function print() { __p += __j.call(arguments, '') }
1865
1869
  .guide.has-error brz-input-error {
1866
1870
  margin-top: var(--brz-spacing-1);
1867
1871
  }
1868
- `;exports.LabeledInput=class extends ti{constructor(){super(...arguments),this.required=!1,this.labelPosition="top",this.size="medium",this.hasPrompt=!1,this.hasError=!1,this.hasLabel=!1}updated(s){super.updated(s),this.hasLabel=!!this.label.length,this.hasPrompt=!!this.prompt.length}handleErrorChange(){var i;const s=(i=this.shadowRoot)==null?void 0:i.querySelector('slot[name="error"]');this.hasError=s.assignedNodes().length>0}renderInput(){return K`<slot></slot>`}renderInputContainer(){return this.renderInput()}renderGuide(){return null}render(){return K`
1872
+ `;exports.LabeledInput=class extends ti{constructor(){super(...arguments),this.required=!1,this.labelPosition="top",this.size="medium",this.hasPrompt=!1,this.hasError=!1,this.hasLabel=!1}updated(s){super.updated(s),this.hasLabel=!!this.label.length,this.hasPrompt=!!this.prompt.length}handleErrorChange(){var i;const s=(i=this.shadowRoot)==null?void 0:i.querySelector('slot[name="error"]');this.hasError=s.assignedNodes().length>0}renderInput(){return j`<slot></slot>`}renderInputContainer(){return this.renderInput()}renderGuide(){return null}render(){return j`
1869
1873
  <brz-record-field label-position=${this.labelPosition} size=${this.size}>
1870
1874
  <brz-record-field-label .hidden=${!this.hasLabel}>
1871
1875
  <label for=${this.id}>
@@ -1884,17 +1888,17 @@ function print() { __p += __j.call(arguments, '') }
1884
1888
  ${this.renderInputContainer()}
1885
1889
 
1886
1890
  <div
1887
- class=${Cn({guide:!0,"has-error":this.hasError})}
1891
+ class=${un({guide:!0,"has-error":this.hasError})}
1888
1892
  >
1889
1893
  <brz-input-error>
1890
1894
  <slot @slotchange=${this.handleErrorChange} name="error"></slot>
1891
1895
  </brz-input-error>
1892
1896
 
1893
- ${this.renderGuide()?K`<div class="guide-right">${this.renderGuide()}</div>`:null}
1897
+ ${this.renderGuide()?j`<div class="guide-right">${this.renderGuide()}</div>`:null}
1894
1898
  </div>
1895
1899
  </div>
1896
1900
  </brz-record-field>
1897
- `}};exports.LabeledInput.styles=[ce`
1901
+ `}};exports.LabeledInput.styles=[ue`
1898
1902
  :host {
1899
1903
  display: block;
1900
1904
  }
@@ -1902,7 +1906,7 @@ function print() { __p += __j.call(arguments, '') }
1902
1906
  :host(:nth-child(n + 2)) {
1903
1907
  margin-top: var(--brz-spacing-4);
1904
1908
  }
1905
- `,m7];eo([R({type:Boolean,attribute:"required",reflect:!0})],exports.LabeledInput.prototype,"required",2);eo([R({type:String,attribute:"label-position",reflect:!0})],exports.LabeledInput.prototype,"labelPosition",2);eo([R({type:String,reflect:!0})],exports.LabeledInput.prototype,"size",2);eo([Re()],exports.LabeledInput.prototype,"hasPrompt",2);eo([Re()],exports.LabeledInput.prototype,"hasError",2);eo([Re()],exports.LabeledInput.prototype,"hasLabel",2);eo([Io({slot:"label"})],exports.LabeledInput.prototype,"label",2);eo([Io({slot:"prompt"})],exports.LabeledInput.prototype,"prompt",2);exports.LabeledInput=eo([X(cp)],exports.LabeledInput);exports.InputLabel=class extends exports.RecordFieldLabel{};exports.InputLabel=eo([X(dp)],exports.InputLabel);var y7=Object.defineProperty,C7=Object.getOwnPropertyDescriptor,V0=(s,i,l,d)=>{for(var c=d>1?void 0:d?C7(i,l):i,g=s.length-1,b;g>=0;g--)(b=s[g])&&(c=(d?b(i,l,c):b(c))||c);return d&&c&&y7(i,l,c),c};const w7=ce`
1909
+ `,L7];eo([R({type:Boolean,attribute:"required",reflect:!0})],exports.LabeledInput.prototype,"required",2);eo([R({type:String,attribute:"label-position",reflect:!0})],exports.LabeledInput.prototype,"labelPosition",2);eo([R({type:String,reflect:!0})],exports.LabeledInput.prototype,"size",2);eo([Re()],exports.LabeledInput.prototype,"hasPrompt",2);eo([Re()],exports.LabeledInput.prototype,"hasError",2);eo([Re()],exports.LabeledInput.prototype,"hasLabel",2);eo([Io({slot:"label"})],exports.LabeledInput.prototype,"label",2);eo([Io({slot:"prompt"})],exports.LabeledInput.prototype,"prompt",2);exports.LabeledInput=eo([X(pp)],exports.LabeledInput);exports.InputLabel=class extends exports.RecordFieldLabel{};exports.InputLabel=eo([X(gp)],exports.InputLabel);var _7=Object.defineProperty,S7=Object.getOwnPropertyDescriptor,G0=(s,i,l,d)=>{for(var c=d>1?void 0:d?S7(i,l):i,g=s.length-1,b;g>=0;g--)(b=s[g])&&(c=(d?b(i,l,c):b(c))||c);return d&&c&&_7(i,l,c),c};const M7=ue`
1906
1910
  :host {
1907
1911
  --input-text-color: var(--brz-color-neutral-850);
1908
1912
  --input-font: var(--brz-font-family);
@@ -1997,16 +2001,16 @@ function print() { __p += __j.call(arguments, '') }
1997
2001
  :host([trailing-icon]) input:not([type='search']) {
1998
2002
  padding-right: var(--input-icon-offset);
1999
2003
  }
2000
- `;class un extends exports.LabeledInput{constructor(){super(...arguments),this.readonly=!1}renderInputContainer(){return K`
2004
+ `;class cn extends exports.LabeledInput{constructor(){super(...arguments),this.readonly=!1}renderInputContainer(){return j`
2001
2005
  <div class="input-container">
2002
- ${this.leadingIcon?K`<brz-icon icon=${this.leadingIcon} class="leading"></brz-icon>`:null}
2006
+ ${this.leadingIcon?j`<brz-icon icon=${this.leadingIcon} class="leading"></brz-icon>`:null}
2003
2007
  ${this.renderInput()}
2004
- ${this.trailingIcon?K`<brz-icon
2008
+ ${this.trailingIcon?j`<brz-icon
2005
2009
  icon=${this.trailingIcon}
2006
2010
  class="trailing"
2007
2011
  ></brz-icon>`:null}
2008
2012
  </div>
2009
- `}}un.styles=[...exports.LabeledInput.styles,w7];V0([R({type:Boolean,reflect:!0})],un.prototype,"readonly",2);V0([R({type:String,reflect:!0})],un.prototype,"placeholder",2);V0([R({type:String,reflect:!0,attribute:"leading-icon"})],un.prototype,"leadingIcon",2);V0([R({type:String,reflect:!0,attribute:"trailing-icon"})],un.prototype,"trailingIcon",2);var x7=Object.defineProperty,z7=Object.getOwnPropertyDescriptor,q0=(s,i,l,d)=>{for(var c=d>1?void 0:d?z7(i,l):i,g=s.length-1,b;g>=0;g--)(b=s[g])&&(c=(d?b(i,l,c):b(c))||c);return d&&c&&x7(i,l,c),c};const fp=Le("input-text");exports.InputText=class extends un{constructor(){super(...arguments),this.size="medium"}renderInput(){return K`
2013
+ `}}cn.styles=[...exports.LabeledInput.styles,M7];G0([R({type:Boolean,reflect:!0})],cn.prototype,"readonly",2);G0([R({type:String,reflect:!0})],cn.prototype,"placeholder",2);G0([R({type:String,reflect:!0,attribute:"leading-icon"})],cn.prototype,"leadingIcon",2);G0([R({type:String,reflect:!0,attribute:"trailing-icon"})],cn.prototype,"trailingIcon",2);var k7=Object.defineProperty,O7=Object.getOwnPropertyDescriptor,q0=(s,i,l,d)=>{for(var c=d>1?void 0:d?O7(i,l):i,g=s.length-1,b;g>=0;g--)(b=s[g])&&(c=(d?b(i,l,c):b(c))||c);return d&&c&&k7(i,l,c),c};const vp=Le("input-text");exports.InputText=class extends cn{constructor(){super(...arguments),this.size="medium"}renderInput(){return j`
2010
2014
  <input
2011
2015
  @input=${this.onInput}
2012
2016
  .value=${zt(this.value)}
@@ -2018,11 +2022,11 @@ function print() { __p += __j.call(arguments, '') }
2018
2022
  ?disabled=${this.disabled}
2019
2023
  ?readonly=${this.readonly}
2020
2024
  />
2021
- `}};exports.InputText.styles=[...un.styles,ce`
2025
+ `}};exports.InputText.styles=[...cn.styles,ue`
2022
2026
  input {
2023
2027
  height: 36px;
2024
2028
  }
2025
- `];q0([R({type:String})],exports.InputText.prototype,"value",2);q0([R({type:String,reflect:!0})],exports.InputText.prototype,"size",2);q0([R({type:Number,reflect:!0})],exports.InputText.prototype,"maxlength",2);exports.InputText=q0([X(fp)],exports.InputText);var L7=Object.defineProperty,_7=Object.getOwnPropertyDescriptor,j0=(s,i,l,d)=>{for(var c=d>1?void 0:d?_7(i,l):i,g=s.length-1,b;g>=0;g--)(b=s[g])&&(c=(d?b(i,l,c):b(c))||c);return d&&c&&L7(i,l,c),c};const hp=Le("input-textarea");exports.InputTextarea=class extends un{constructor(){super(...arguments),this.size="x-large"}renderGuide(){var l;if(!this.maxlength)return null;const s=((l=this.value)==null?void 0:l.length)||0,i=K`${s} of ${this.maxlength}`;return s>=this.maxlength?K`<brz-input-error>${i}</brz-input-error>`:K`<brz-input-guide>${i}</brz-input-guide>`}renderInput(){var s;return K`
2029
+ `];q0([R({type:String})],exports.InputText.prototype,"value",2);q0([R({type:String,reflect:!0})],exports.InputText.prototype,"size",2);q0([R({type:Number,reflect:!0})],exports.InputText.prototype,"maxlength",2);exports.InputText=q0([X(vp)],exports.InputText);var T7=Object.defineProperty,E7=Object.getOwnPropertyDescriptor,j0=(s,i,l,d)=>{for(var c=d>1?void 0:d?E7(i,l):i,g=s.length-1,b;g>=0;g--)(b=s[g])&&(c=(d?b(i,l,c):b(c))||c);return d&&c&&T7(i,l,c),c};const bp=Le("input-textarea");exports.InputTextarea=class extends cn{constructor(){super(...arguments),this.size="x-large"}renderGuide(){var l;if(!this.maxlength)return null;const s=((l=this.value)==null?void 0:l.length)||0,i=j`${s} of ${this.maxlength}`;return s>=this.maxlength?j`<brz-input-error>${i}</brz-input-error>`:j`<brz-input-guide>${i}</brz-input-guide>`}renderInput(){var s;return j`
2026
2030
  <textarea
2027
2031
  @input=${this.onInput}
2028
2032
  .value=${(s=this.value)!=null?s:""}
@@ -2033,12 +2037,12 @@ function print() { __p += __j.call(arguments, '') }
2033
2037
  ?disabled=${this.disabled}
2034
2038
  ?readonly=${this.readonly}
2035
2039
  />
2036
- `}};exports.InputTextarea.styles=[...un.styles,ce`
2040
+ `}};exports.InputTextarea.styles=[...cn.styles,ue`
2037
2041
  textarea {
2038
2042
  height: 100px;
2039
2043
  resize: none;
2040
2044
  }
2041
- `];j0([R({type:String})],exports.InputTextarea.prototype,"value",2);j0([R({type:String,reflect:!0})],exports.InputTextarea.prototype,"size",2);j0([R({type:Number,reflect:!0,attribute:"maxlength"})],exports.InputTextarea.prototype,"maxlength",2);exports.InputTextarea=j0([X(hp)],exports.InputTextarea);var S7=Object.defineProperty,M7=Object.getOwnPropertyDescriptor,Es=(s,i,l,d)=>{for(var c=d>1?void 0:d?M7(i,l):i,g=s.length-1,b;g>=0;g--)(b=s[g])&&(c=(d?b(i,l,c):b(c))||c);return d&&c&&S7(i,l,c),c};const pp=Le("input-number"),k7=ce`
2045
+ `];j0([R({type:String})],exports.InputTextarea.prototype,"value",2);j0([R({type:String,reflect:!0})],exports.InputTextarea.prototype,"size",2);j0([R({type:Number,reflect:!0,attribute:"maxlength"})],exports.InputTextarea.prototype,"maxlength",2);exports.InputTextarea=j0([X(bp)],exports.InputTextarea);var P7=Object.defineProperty,I7=Object.getOwnPropertyDescriptor,Es=(s,i,l,d)=>{for(var c=d>1?void 0:d?I7(i,l):i,g=s.length-1,b;g>=0;g--)(b=s[g])&&(c=(d?b(i,l,c):b(c))||c);return d&&c&&P7(i,l,c),c};const mp=Le("input-number"),A7=ue`
2042
2046
  /* Chrome, Safari, Edge, Opera */
2043
2047
  input::-webkit-outer-spin-button,
2044
2048
  input::-webkit-inner-spin-button {
@@ -2050,7 +2054,7 @@ function print() { __p += __j.call(arguments, '') }
2050
2054
  input[type='number'] {
2051
2055
  -moz-appearance: textfield;
2052
2056
  }
2053
- `,gp=["e","+"],vp=s=>gp.includes(s.toLowerCase()),O7=s=>!!gp.find(i=>s.toLowerCase().includes(i)),T7=s=>{var l,d;vp(s.key)&&s.preventDefault();const i=s.target;((l=i==null?void 0:i.value)==null?void 0:l.length)===0&&s.key==="-"&&(i.value=""),((d=i==null?void 0:i.value)==null?void 0:d.length)>0&&s.key==="-"&&s.preventDefault()},E7=s=>{var g;const i=/^-?\d+\.?\d*$/,{clipboardData:l}=s,d=(g=l==null?void 0:l.getData("text"))==null?void 0:g.toLowerCase();if(!d)return;const c=s.target;(!(c!=null&&c.value)||!i.test(c.value+d)&&i.test(d))&&(c.value=""),(vp(d)||O7(d)||!i.test(d))&&(s.stopPropagation(),s.preventDefault())};exports.InputNumber=class extends un{constructor(){super(...arguments),this.hasNoStepper=!1,this.step="1"}handleIncrease(){var s;this.inputElement.focus(),this.inputElement.stepUp(),this.handleSteppedChange((s=this.inputElement.value)!=null?s:"")}handleDecrease(){var s;this.inputElement.focus(),this.inputElement.stepDown(),this.handleSteppedChange((s=this.inputElement.value)!=null?s:"")}handleSteppedChange(s){this.value=s,this.dispatchChange()}handleKeyDown(s){T7(s)}handlePaste(s){E7(s)}get stepperLayout(){return this.hasNoStepper?null:K`
2057
+ `,yp=["e","+"],Cp=s=>yp.includes(s.toLowerCase()),$7=s=>!!yp.find(i=>s.toLowerCase().includes(i)),D7=s=>{var l,d;Cp(s.key)&&s.preventDefault();const i=s.target;((l=i==null?void 0:i.value)==null?void 0:l.length)===0&&s.key==="-"&&(i.value=""),((d=i==null?void 0:i.value)==null?void 0:d.length)>0&&s.key==="-"&&s.preventDefault()},R7=s=>{var g;const i=/^-?\d+\.?\d*$/,{clipboardData:l}=s,d=(g=l==null?void 0:l.getData("text"))==null?void 0:g.toLowerCase();if(!d)return;const c=s.target;(!(c!=null&&c.value)||!i.test(c.value+d)&&i.test(d))&&(c.value=""),(Cp(d)||$7(d)||!i.test(d))&&(s.stopPropagation(),s.preventDefault())};exports.InputNumber=class extends cn{constructor(){super(...arguments),this.hasNoStepper=!1,this.step="1"}handleIncrease(){var s;this.inputElement.focus(),this.inputElement.stepUp(),this.handleSteppedChange((s=this.inputElement.value)!=null?s:"")}handleDecrease(){var s;this.inputElement.focus(),this.inputElement.stepDown(),this.handleSteppedChange((s=this.inputElement.value)!=null?s:"")}handleSteppedChange(s){this.value=s,this.dispatchChange()}handleKeyDown(s){D7(s)}handlePaste(s){R7(s)}get stepperLayout(){return this.hasNoStepper?null:j`
2054
2058
  <div class="stepper-container">
2055
2059
  <button
2056
2060
  @click=${this.handleDecrease}
@@ -2071,7 +2075,7 @@ function print() { __p += __j.call(arguments, '') }
2071
2075
  <brz-icon size="10" icon="plus"></brz-icon>
2072
2076
  </button>
2073
2077
  </div>
2074
- `}renderInput(){return K`<div class="container">
2078
+ `}renderInput(){return j`<div class="container">
2075
2079
  ${this.stepperLayout}
2076
2080
  <input
2077
2081
  @keydown=${this.handleKeyDown}
@@ -2088,7 +2092,7 @@ function print() { __p += __j.call(arguments, '') }
2088
2092
  min=${zt(this.min)}
2089
2093
  max=${zt(this.max)}
2090
2094
  />
2091
- </div>`}};exports.InputNumber.styles=[...un.styles,k7,ce`
2095
+ </div>`}};exports.InputNumber.styles=[...cn.styles,A7,ue`
2092
2096
  :host(:not[has-no-stepper]) input {
2093
2097
  padding-right: var(--brz-spacing-20);
2094
2098
  }
@@ -2132,11 +2136,11 @@ function print() { __p += __j.call(arguments, '') }
2132
2136
  cursor: unset;
2133
2137
  background-color: var(--brz-color-neutral-250);
2134
2138
  }
2135
- `];Es([R({type:Boolean,reflect:!0,attribute:"has-no-stepper"})],exports.InputNumber.prototype,"hasNoStepper",2);Es([R({type:Number,reflect:!0})],exports.InputNumber.prototype,"min",2);Es([R({type:Number,reflect:!0})],exports.InputNumber.prototype,"max",2);Es([R({type:Number,reflect:!0})],exports.InputNumber.prototype,"step",2);Es([Ji('input[type="number"]')],exports.InputNumber.prototype,"inputElement",2);exports.InputNumber=Es([X(pp)],exports.InputNumber);/**
2139
+ `];Es([R({type:Boolean,reflect:!0,attribute:"has-no-stepper"})],exports.InputNumber.prototype,"hasNoStepper",2);Es([R({type:Number,reflect:!0})],exports.InputNumber.prototype,"min",2);Es([R({type:Number,reflect:!0})],exports.InputNumber.prototype,"max",2);Es([R({type:Number,reflect:!0})],exports.InputNumber.prototype,"step",2);Es([Ji('input[type="number"]')],exports.InputNumber.prototype,"inputElement",2);exports.InputNumber=Es([X(mp)],exports.InputNumber);/**
2136
2140
  * @license
2137
2141
  * Copyright 2017 Google LLC
2138
2142
  * SPDX-License-Identifier: BSD-3-Clause
2139
- */class zd extends W0{constructor(i){if(super(i),this.it=Jt,i.type!==B0.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(i){if(i===Jt||i==null)return this._t=void 0,this.it=i;if(i===Xi)return i;if(typeof i!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(i===this.it)return this._t;this.it=i;const l=[i];return l.raw=l,this._t={_$litType$:this.constructor.resultType,strings:l,values:[]}}}zd.directiveName="unsafeHTML",zd.resultType=1;const P7=F0(zd);var I7=Object.defineProperty,A7=Object.getOwnPropertyDescriptor,yl=(s,i,l,d)=>{for(var c=d>1?void 0:d?A7(i,l):i,g=s.length-1,b;g>=0;g--)(b=s[g])&&(c=(d?b(i,l,c):b(c))||c);return d&&c&&I7(i,l,c),c};const bp=Le("input-radio-group"),mp=Le("input-radio-option"),$7=["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 s=(i=this.shadowRoot)==null?void 0:i.querySelector("#options");return Array.from(s.assignedElements()).filter(l=>l instanceof exports.InputRadioOption)}radioChange(s){const i=s.target;this.value=i.value,this.dispatchChange()}renderInput(){return K`
2143
+ */class zd extends W0{constructor(i){if(super(i),this.it=Jt,i.type!==B0.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(i){if(i===Jt||i==null)return this._t=void 0,this.it=i;if(i===Xi)return i;if(typeof i!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(i===this.it)return this._t;this.it=i;const l=[i];return l.raw=l,this._t={_$litType$:this.constructor.resultType,strings:l,values:[]}}}zd.directiveName="unsafeHTML",zd.resultType=1;const N7=F0(zd);var H7=Object.defineProperty,B7=Object.getOwnPropertyDescriptor,yl=(s,i,l,d)=>{for(var c=d>1?void 0:d?B7(i,l):i,g=s.length-1,b;g>=0;g--)(b=s[g])&&(c=(d?b(i,l,c):b(c))||c);return d&&c&&H7(i,l,c),c};const wp=Le("input-radio-group"),xp=Le("input-radio-option"),F7=["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 s=(i=this.shadowRoot)==null?void 0:i.querySelector("#options");return Array.from(s.assignedElements()).filter(l=>l instanceof exports.InputRadioOption)}radioChange(s){const i=s.target;this.value=i.value,this.dispatchChange()}renderInput(){return j`
2140
2144
  <slot
2141
2145
  id="options"
2142
2146
  style="display: none;"
@@ -2144,7 +2148,7 @@ function print() { __p += __j.call(arguments, '') }
2144
2148
  ></slot>
2145
2149
 
2146
2150
  <fieldset @change=${this.radioChange}>
2147
- ${this._radioElements.map(s=>{var l,d;const i=((l=s.value)==null?void 0:l.toString())===((d=this.value)==null?void 0:d.toString());return K`
2151
+ ${this._radioElements.map(s=>{var l,d;const i=((l=s.value)==null?void 0:l.toString())===((d=this.value)==null?void 0:d.toString());return j`
2148
2152
  <div class="radio-option">
2149
2153
  <input
2150
2154
  id=${s.value}
@@ -2155,11 +2159,11 @@ function print() { __p += __j.call(arguments, '') }
2155
2159
  ?checked=${i}
2156
2160
  ?disabled=${s.disabled||this.disabled}
2157
2161
  />
2158
- <label for=${s.value}>${P7(s.innerHTML)}</label>
2162
+ <label for=${s.value}>${N7(s.innerHTML)}</label>
2159
2163
  </div>
2160
2164
  `})}
2161
2165
  </fieldset>
2162
- `}};exports.InputRadio.styles=[...exports.LabeledInput.styles,ce`
2166
+ `}};exports.InputRadio.styles=[...exports.LabeledInput.styles,ue`
2163
2167
  :host {
2164
2168
  --brz-input-radio-button-size: var(--brz-spacing-4);
2165
2169
  --brz-input-radio-gutter: var(--brz-input-radio-button-size);
@@ -2311,31 +2315,31 @@ function print() { __p += __j.call(arguments, '') }
2311
2315
  input[type='radio'][aria-invalid='true'] + label {
2312
2316
  color: var(--brz-input-radio-invalid-color);
2313
2317
  }
2314
- `];yl([R({type:String,reflect:!0})],exports.InputRadio.prototype,"layout",2);yl([R({type:String,reflect:!0})],exports.InputRadio.prototype,"size",2);yl([Re()],exports.InputRadio.prototype,"_radioElements",2);exports.InputRadio=yl([X(bp)],exports.InputRadio);exports.InputRadioOption=class extends Be{render(){}};yl([R({type:String})],exports.InputRadioOption.prototype,"value",2);yl([R({type:Boolean})],exports.InputRadioOption.prototype,"disabled",2);exports.InputRadioOption=yl([X(mp)],exports.InputRadioOption);var hd={exports:{}},oh;function Ro(){return oh||(oh=1,function(s,i){(function(l,d){s.exports=d()})(ws,function(){var l=navigator.userAgent,d=navigator.platform,c=/gecko\/\d/i.test(l),g=/MSIE \d/.test(l),b=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(l),I=/Edge\/(\d+)/.exec(l),T=g||b||I,k=T&&(g?document.documentMode||6:+(I||b)[1]),A=!I&&/WebKit\//.test(l),B=A&&/Qt\/\d+\.\d+/.test(l),U=!I&&/Chrome\//.test(l),Z=/Opera\//.test(l),re=/Apple Computer/.test(navigator.vendor),ve=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(l),ge=/PhantomJS/.test(l),Me=re&&(/Mobile\/\w+/.test(l)||navigator.maxTouchPoints>2),Te=/Android/.test(l),pe=Me||Te||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(l),de=Me||/Mac/.test(d),ke=/\bCrOS\b/.test(l),Ee=/win/i.test(d),Ie=Z&&l.match(/Version\/(\d*\.\d*)/);Ie&&(Ie=Number(Ie[1])),Ie&&Ie>=15&&(Z=!1,A=!0);var je=de&&(B||Z&&(Ie==null||Ie<12.11)),Ye=c||T&&k>=9;function be(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var ye=function(e,t){var o=e.className,n=be(t).exec(o);if(n){var u=o.slice(n.index+n[0].length);e.className=o.slice(0,n.index)+(u?n[1]+u:"")}};function Qe(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild);return e}function G(e,t){return Qe(e).appendChild(t)}function P(e,t,o,n){var u=document.createElement(e);if(o&&(u.className=o),n&&(u.style.cssText=n),typeof t=="string")u.appendChild(document.createTextNode(t));else if(t)for(var h=0;h<t.length;++h)u.appendChild(t[h]);return u}function S(e,t,o,n){var u=P(e,t,o,n);return u.setAttribute("role","presentation"),u}var ee;document.createRange?ee=function(e,t,o,n){var u=document.createRange();return u.setEnd(n||e,o),u.setStart(e,t),u}:ee=function(e,t,o){var n=document.body.createTextRange();try{n.moveToElementText(e.parentNode)}catch{return n}return n.collapse(!0),n.moveEnd("character",o),n.moveStart("character",t),n};function me(e,t){if(t.nodeType==3&&(t=t.parentNode),e.contains)return e.contains(t);do if(t.nodeType==11&&(t=t.host),t==e)return!0;while(t=t.parentNode)}function rt(){var e;try{e=document.activeElement}catch{e=document.body||null}for(;e&&e.shadowRoot&&e.shadowRoot.activeElement;)e=e.shadowRoot.activeElement;return e}function Lt(e,t){var o=e.className;be(t).test(o)||(e.className+=(o?" ":"")+t)}function Kt(e,t){for(var o=e.split(" "),n=0;n<o.length;n++)o[n]&&!be(o[n]).test(t)&&(t+=" "+o[n]);return t}var It=function(e){e.select()};Me?It=function(e){e.selectionStart=0,e.selectionEnd=e.value.length}:T&&(It=function(e){try{e.select()}catch{}});function Xr(e){var t=Array.prototype.slice.call(arguments,1);return function(){return e.apply(null,t)}}function Ut(e,t,o){t||(t={});for(var n in e)e.hasOwnProperty(n)&&(o!==!1||!t.hasOwnProperty(n))&&(t[n]=e[n]);return t}function At(e,t,o,n,u){t==null&&(t=e.search(/[^\s\u00a0]/),t==-1&&(t=e.length));for(var h=n||0,p=u||0;;){var m=e.indexOf(" ",h);if(m<0||m>=t)return p+(t-h);p+=m-h,p+=o-p%o,h=m+1}}var at=function(){this.id=null,this.f=null,this.time=0,this.handler=Xr(this.onTimeout,this)};at.prototype.onTimeout=function(e){e.id=0,e.time<=+new Date?e.f():setTimeout(e.handler,e.time-+new Date)},at.prototype.set=function(e,t){this.f=t;var o=+new Date+e;(!this.id||o<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,e),this.time=o)};function _e(e,t){for(var o=0;o<e.length;++o)if(e[o]==t)return o;return-1}var Fe=50,Ue={toString:function(){return"CodeMirror.Pass"}},nt={scroll:!1},it={origin:"*mouse"},We={origin:"+move"};function Nt(e,t,o){for(var n=0,u=0;;){var h=e.indexOf(" ",n);h==-1&&(h=e.length);var p=h-n;if(h==e.length||u+p>=t)return n+Math.min(p,t-u);if(u+=h-n,u+=o-u%o,n=h+1,u>=t)return n}}var $r=[""];function Yt(e){for(;$r.length<=e;)$r.push(Ke($r)+" ");return $r[e]}function Ke(e){return e[e.length-1]}function ht(e,t){for(var o=[],n=0;n<e.length;n++)o[n]=t(e[n],n);return o}function wt(e,t,o){for(var n=0,u=o(t);n<e.length&&o(e[n])<=u;)n++;e.splice(n,0,t)}function Lr(){}function Gr(e,t){var o;return Object.create?o=Object.create(e):(Lr.prototype=e,o=new Lr),t&&Ut(t,o),o}var er=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function et(e){return/\w/.test(e)||e>"\x80"&&(e.toUpperCase()!=e.toLowerCase()||er.test(e))}function W(e,t){return t?t.source.indexOf("\\w")>-1&&et(e)?!0:t.test(e):et(e)}function ae(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])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 Xe(e){return e.charCodeAt(0)>=768&&j.test(e)}function tr(e,t,o){for(;(o<0?t>0:t<e.length)&&Xe(e.charAt(t));)t+=o;return t}function pr(e,t,o){for(var n=t>o?-1:1;;){if(t==o)return t;var u=(t+o)/2,h=n<0?Math.ceil(u):Math.floor(u);if(h==t)return e(h)?t:o;e(h)?o=h:t=h+n}}function Ln(e,t,o,n){if(!e)return n(t,o,"ltr",0);for(var u=!1,h=0;h<e.length;++h){var p=e[h];(p.from<o&&p.to>t||t==o&&p.to==t)&&(n(Math.max(p.from,t),Math.min(p.to,o),p.level==1?"rtl":"ltr",h),u=!0)}u||n(t,o,"ltr")}var Dr=null;function Rt(e,t,o){var n;Dr=null;for(var u=0;u<e.length;++u){var h=e[u];if(h.from<t&&h.to>t)return u;h.to==t&&(h.from!=h.to&&o=="before"?n=u:Dr=u),h.from==t&&(h.from!=h.to&&o!="before"?n=u:Dr=u)}return n!=null?n:Dr}var ri=function(){var e="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",t="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function o(C){return C<=247?e.charAt(C):1424<=C&&C<=1524?"R":1536<=C&&C<=1785?t.charAt(C-1536):1774<=C&&C<=2220?"r":8192<=C&&C<=8203?"w":C==8204?"b":"L"}var n=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,u=/[stwN]/,h=/[LRr]/,p=/[Lb1n]/,m=/[1n]/;function y(C,_,M){this.level=C,this.from=_,this.to=M}return function(C,_){var M=_=="ltr"?"L":"R";if(C.length==0||_=="ltr"&&!n.test(C))return!1;for(var N=C.length,D=[],q=0;q<N;++q)D.push(o(C.charCodeAt(q)));for(var te=0,ue=M;te<N;++te){var fe=D[te];fe=="m"?D[te]=ue:ue=fe}for(var we=0,he=M;we<N;++we){var xe=D[we];xe=="1"&&he=="r"?D[we]="n":h.test(xe)&&(he=xe,xe=="r"&&(D[we]="R"))}for(var $e=1,Pe=D[0];$e<N-1;++$e){var ot=D[$e];ot=="+"&&Pe=="1"&&D[$e+1]=="1"?D[$e]="1":ot==","&&Pe==D[$e+1]&&(Pe=="1"||Pe=="n")&&(D[$e]=Pe),Pe=ot}for(var xt=0;xt<N;++xt){var Xt=D[xt];if(Xt==",")D[xt]="N";else if(Xt=="%"){var kt=void 0;for(kt=xt+1;kt<N&&D[kt]=="%";++kt);for(var Or=xt&&D[xt-1]=="!"||kt<N&&D[kt]=="1"?"1":"N",Tr=xt;Tr<kt;++Tr)D[Tr]=Or;xt=kt-1}}for(var Gt=0,hr=M;Gt<N;++Gt){var ir=D[Gt];hr=="L"&&ir=="1"?D[Gt]="L":h.test(ir)&&(hr=ir)}for(var St=0;St<N;++St)if(u.test(D[St])){var Et=void 0;for(Et=St+1;Et<N&&u.test(D[Et]);++Et);for(var Wt=(St?D[St-1]:M)=="L",Er=(Et<N?D[Et]:M)=="L",ga=Wt==Er?Wt?"L":"R":M,Yi=St;Yi<Et;++Yi)D[Yi]=ga;St=Et-1}for(var zr=[],Kn,or=0;or<N;)if(p.test(D[or])){var Mu=or;for(++or;or<N&&p.test(D[or]);++or);zr.push(new y(0,Mu,or))}else{var fi=or,Mo=zr.length,ko=_=="rtl"?1:0;for(++or;or<N&&D[or]!="L";++or);for(var Pr=fi;Pr<or;)if(m.test(D[Pr])){fi<Pr&&(zr.splice(Mo,0,new y(1,fi,Pr)),Mo+=ko);var va=Pr;for(++Pr;Pr<or&&m.test(D[Pr]);++Pr);zr.splice(Mo,0,new y(2,va,Pr)),Mo+=ko,fi=Pr}else++Pr;fi<or&&zr.splice(Mo,0,new y(1,fi,or))}return _=="ltr"&&(zr[0].level==1&&(Kn=C.match(/^\s+/))&&(zr[0].from=Kn[0].length,zr.unshift(new y(0,0,Kn[0].length))),Ke(zr).level==1&&(Kn=C.match(/\s+$/))&&(Ke(zr).to-=Kn[0].length,zr.push(new y(0,N-Kn[0].length,N)))),_=="rtl"?zr.reverse():zr}}();function _r(e,t){var o=e.order;return o==null&&(o=e.order=ri(e.text,t)),o}var _n=[],Ne=function(e,t,o){if(e.addEventListener)e.addEventListener(t,o,!1);else if(e.attachEvent)e.attachEvent("on"+t,o);else{var n=e._handlers||(e._handlers={});n[t]=(n[t]||_n).concat(o)}};function Li(e,t){return e._handlers&&e._handlers[t]||_n}function gr(e,t,o){if(e.removeEventListener)e.removeEventListener(t,o,!1);else if(e.detachEvent)e.detachEvent("on"+t,o);else{var n=e._handlers,u=n&&n[t];if(u){var h=_e(u,o);h>-1&&(n[t]=u.slice(0,h).concat(u.slice(h+1)))}}}function Ze(e,t){var o=Li(e,t);if(!!o.length)for(var n=Array.prototype.slice.call(arguments,2),u=0;u<o.length;++u)o[u].apply(null,n)}function Vt(e,t,o){return typeof t=="string"&&(t={type:t,preventDefault:function(){this.defaultPrevented=!0}}),Ze(e,o||t.type,e,t),Qr(t)||t.codemirrorIgnore}function No(e){var t=e._handlers&&e._handlers.cursorActivity;if(!!t)for(var o=e.curOp.cursorActivityHandlers||(e.curOp.cursorActivityHandlers=[]),n=0;n<t.length;++n)_e(o,t[n])==-1&&o.push(t[n])}function sr(e,t){return Li(e,t).length>0}function Sn(e){e.prototype.on=function(t,o){Ne(this,t,o)},e.prototype.off=function(t,o){gr(this,t,o)}}function ur(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function Ho(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function Qr(e){return e.defaultPrevented!=null?e.defaultPrevented:e.returnValue==!1}function io(e){ur(e),Ho(e)}function _i(e){return e.target||e.srcElement}function _a(e){var t=e.which;return t==null&&(e.button&1?t=1:e.button&2?t=3:e.button&4&&(t=2)),de&&e.ctrlKey&&t==1&&(t=3),t}var Sa=function(){if(T&&k<9)return!1;var e=P("div");return"draggable"in e||"dragDrop"in e}(),Rr;function wl(e){if(Rr==null){var t=P("span","\u200B");G(e,P("span",[t,document.createTextNode("x")])),e.firstChild.offsetHeight!=0&&(Rr=t.offsetWidth<=1&&t.offsetHeight>2&&!(T&&k<8))}var o=Rr?P("span","\u200B"):P("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return o.setAttribute("cm-text",""),o}var oo;function Hn(e){if(oo!=null)return oo;var t=G(e,document.createTextNode("A\u062EA")),o=ee(t,0,1).getBoundingClientRect(),n=ee(t,1,2).getBoundingClientRect();return Qe(e),!o||o.left==o.right?!1:oo=n.right-o.right<3}var ao=`
2318
+ `];yl([R({type:String,reflect:!0})],exports.InputRadio.prototype,"layout",2);yl([R({type:String,reflect:!0})],exports.InputRadio.prototype,"size",2);yl([Re()],exports.InputRadio.prototype,"_radioElements",2);exports.InputRadio=yl([X(wp)],exports.InputRadio);exports.InputRadioOption=class extends Be{render(){}};yl([R({type:String})],exports.InputRadioOption.prototype,"value",2);yl([R({type:Boolean})],exports.InputRadioOption.prototype,"disabled",2);exports.InputRadioOption=yl([X(xp)],exports.InputRadioOption);var hd={exports:{}},oh;function Ro(){return oh||(oh=1,function(s,i){(function(l,d){s.exports=d()})(ws,function(){var l=navigator.userAgent,d=navigator.platform,c=/gecko\/\d/i.test(l),g=/MSIE \d/.test(l),b=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(l),I=/Edge\/(\d+)/.exec(l),T=g||b||I,k=T&&(g?document.documentMode||6:+(I||b)[1]),A=!I&&/WebKit\//.test(l),B=A&&/Qt\/\d+\.\d+/.test(l),U=!I&&/Chrome\//.test(l),Z=/Opera\//.test(l),re=/Apple Computer/.test(navigator.vendor),ve=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(l),ge=/PhantomJS/.test(l),Me=re&&(/Mobile\/\w+/.test(l)||navigator.maxTouchPoints>2),Te=/Android/.test(l),pe=Me||Te||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(l),de=Me||/Mac/.test(d),ke=/\bCrOS\b/.test(l),Ee=/win/i.test(d),Ie=Z&&l.match(/Version\/(\d*\.\d*)/);Ie&&(Ie=Number(Ie[1])),Ie&&Ie>=15&&(Z=!1,A=!0);var je=de&&(B||Z&&(Ie==null||Ie<12.11)),Ye=c||T&&k>=9;function be(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var ye=function(e,t){var o=e.className,n=be(t).exec(o);if(n){var u=o.slice(n.index+n[0].length);e.className=o.slice(0,n.index)+(u?n[1]+u:"")}};function Qe(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild);return e}function V(e,t){return Qe(e).appendChild(t)}function P(e,t,o,n){var u=document.createElement(e);if(o&&(u.className=o),n&&(u.style.cssText=n),typeof t=="string")u.appendChild(document.createTextNode(t));else if(t)for(var h=0;h<t.length;++h)u.appendChild(t[h]);return u}function S(e,t,o,n){var u=P(e,t,o,n);return u.setAttribute("role","presentation"),u}var ee;document.createRange?ee=function(e,t,o,n){var u=document.createRange();return u.setEnd(n||e,o),u.setStart(e,t),u}:ee=function(e,t,o){var n=document.body.createTextRange();try{n.moveToElementText(e.parentNode)}catch{return n}return n.collapse(!0),n.moveEnd("character",o),n.moveStart("character",t),n};function me(e,t){if(t.nodeType==3&&(t=t.parentNode),e.contains)return e.contains(t);do if(t.nodeType==11&&(t=t.host),t==e)return!0;while(t=t.parentNode)}function rt(){var e;try{e=document.activeElement}catch{e=document.body||null}for(;e&&e.shadowRoot&&e.shadowRoot.activeElement;)e=e.shadowRoot.activeElement;return e}function Lt(e,t){var o=e.className;be(t).test(o)||(e.className+=(o?" ":"")+t)}function Kt(e,t){for(var o=e.split(" "),n=0;n<o.length;n++)o[n]&&!be(o[n]).test(t)&&(t+=" "+o[n]);return t}var It=function(e){e.select()};Me?It=function(e){e.selectionStart=0,e.selectionEnd=e.value.length}:T&&(It=function(e){try{e.select()}catch{}});function Xr(e){var t=Array.prototype.slice.call(arguments,1);return function(){return e.apply(null,t)}}function Ut(e,t,o){t||(t={});for(var n in e)e.hasOwnProperty(n)&&(o!==!1||!t.hasOwnProperty(n))&&(t[n]=e[n]);return t}function At(e,t,o,n,u){t==null&&(t=e.search(/[^\s\u00a0]/),t==-1&&(t=e.length));for(var h=n||0,p=u||0;;){var m=e.indexOf(" ",h);if(m<0||m>=t)return p+(t-h);p+=m-h,p+=o-p%o,h=m+1}}var at=function(){this.id=null,this.f=null,this.time=0,this.handler=Xr(this.onTimeout,this)};at.prototype.onTimeout=function(e){e.id=0,e.time<=+new Date?e.f():setTimeout(e.handler,e.time-+new Date)},at.prototype.set=function(e,t){this.f=t;var o=+new Date+e;(!this.id||o<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,e),this.time=o)};function _e(e,t){for(var o=0;o<e.length;++o)if(e[o]==t)return o;return-1}var Fe=50,Ue={toString:function(){return"CodeMirror.Pass"}},nt={scroll:!1},it={origin:"*mouse"},We={origin:"+move"};function Nt(e,t,o){for(var n=0,u=0;;){var h=e.indexOf(" ",n);h==-1&&(h=e.length);var p=h-n;if(h==e.length||u+p>=t)return n+Math.min(p,t-u);if(u+=h-n,u+=o-u%o,n=h+1,u>=t)return n}}var $r=[""];function Yt(e){for(;$r.length<=e;)$r.push(Ke($r)+" ");return $r[e]}function Ke(e){return e[e.length-1]}function ht(e,t){for(var o=[],n=0;n<e.length;n++)o[n]=t(e[n],n);return o}function wt(e,t,o){for(var n=0,u=o(t);n<e.length&&o(e[n])<=u;)n++;e.splice(n,0,t)}function _r(){}function Vr(e,t){var o;return Object.create?o=Object.create(e):(_r.prototype=e,o=new _r),t&&Ut(t,o),o}var er=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function et(e){return/\w/.test(e)||e>"\x80"&&(e.toUpperCase()!=e.toLowerCase()||er.test(e))}function W(e,t){return t?t.source.indexOf("\\w")>-1&&et(e)?!0:t.test(e):et(e)}function ae(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return!1;return!0}var K=/[\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 Xe(e){return e.charCodeAt(0)>=768&&K.test(e)}function tr(e,t,o){for(;(o<0?t>0:t<e.length)&&Xe(e.charAt(t));)t+=o;return t}function pr(e,t,o){for(var n=t>o?-1:1;;){if(t==o)return t;var u=(t+o)/2,h=n<0?Math.ceil(u):Math.floor(u);if(h==t)return e(h)?t:o;e(h)?o=h:t=h+n}}function Ln(e,t,o,n){if(!e)return n(t,o,"ltr",0);for(var u=!1,h=0;h<e.length;++h){var p=e[h];(p.from<o&&p.to>t||t==o&&p.to==t)&&(n(Math.max(p.from,t),Math.min(p.to,o),p.level==1?"rtl":"ltr",h),u=!0)}u||n(t,o,"ltr")}var Dr=null;function Rt(e,t,o){var n;Dr=null;for(var u=0;u<e.length;++u){var h=e[u];if(h.from<t&&h.to>t)return u;h.to==t&&(h.from!=h.to&&o=="before"?n=u:Dr=u),h.from==t&&(h.from!=h.to&&o!="before"?n=u:Dr=u)}return n!=null?n:Dr}var ri=function(){var e="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",t="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function o(C){return C<=247?e.charAt(C):1424<=C&&C<=1524?"R":1536<=C&&C<=1785?t.charAt(C-1536):1774<=C&&C<=2220?"r":8192<=C&&C<=8203?"w":C==8204?"b":"L"}var n=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,u=/[stwN]/,h=/[LRr]/,p=/[Lb1n]/,m=/[1n]/;function y(C,_,M){this.level=C,this.from=_,this.to=M}return function(C,_){var M=_=="ltr"?"L":"R";if(C.length==0||_=="ltr"&&!n.test(C))return!1;for(var N=C.length,D=[],q=0;q<N;++q)D.push(o(C.charCodeAt(q)));for(var te=0,ce=M;te<N;++te){var fe=D[te];fe=="m"?D[te]=ce:ce=fe}for(var we=0,he=M;we<N;++we){var xe=D[we];xe=="1"&&he=="r"?D[we]="n":h.test(xe)&&(he=xe,xe=="r"&&(D[we]="R"))}for(var $e=1,Pe=D[0];$e<N-1;++$e){var ot=D[$e];ot=="+"&&Pe=="1"&&D[$e+1]=="1"?D[$e]="1":ot==","&&Pe==D[$e+1]&&(Pe=="1"||Pe=="n")&&(D[$e]=Pe),Pe=ot}for(var xt=0;xt<N;++xt){var Xt=D[xt];if(Xt==",")D[xt]="N";else if(Xt=="%"){var kt=void 0;for(kt=xt+1;kt<N&&D[kt]=="%";++kt);for(var Tr=xt&&D[xt-1]=="!"||kt<N&&D[kt]=="1"?"1":"N",Er=xt;Er<kt;++Er)D[Er]=Tr;xt=kt-1}}for(var Vt=0,hr=M;Vt<N;++Vt){var ir=D[Vt];hr=="L"&&ir=="1"?D[Vt]="L":h.test(ir)&&(hr=ir)}for(var St=0;St<N;++St)if(u.test(D[St])){var Et=void 0;for(Et=St+1;Et<N&&u.test(D[Et]);++Et);for(var Wt=(St?D[St-1]:M)=="L",Pr=(Et<N?D[Et]:M)=="L",ga=Wt==Pr?Wt?"L":"R":M,Yi=St;Yi<Et;++Yi)D[Yi]=ga;St=Et-1}for(var zr=[],Kn,or=0;or<N;)if(p.test(D[or])){var Mu=or;for(++or;or<N&&p.test(D[or]);++or);zr.push(new y(0,Mu,or))}else{var fi=or,Mo=zr.length,ko=_=="rtl"?1:0;for(++or;or<N&&D[or]!="L";++or);for(var Ir=fi;Ir<or;)if(m.test(D[Ir])){fi<Ir&&(zr.splice(Mo,0,new y(1,fi,Ir)),Mo+=ko);var va=Ir;for(++Ir;Ir<or&&m.test(D[Ir]);++Ir);zr.splice(Mo,0,new y(2,va,Ir)),Mo+=ko,fi=Ir}else++Ir;fi<or&&zr.splice(Mo,0,new y(1,fi,or))}return _=="ltr"&&(zr[0].level==1&&(Kn=C.match(/^\s+/))&&(zr[0].from=Kn[0].length,zr.unshift(new y(0,0,Kn[0].length))),Ke(zr).level==1&&(Kn=C.match(/\s+$/))&&(Ke(zr).to-=Kn[0].length,zr.push(new y(0,N-Kn[0].length,N)))),_=="rtl"?zr.reverse():zr}}();function Sr(e,t){var o=e.order;return o==null&&(o=e.order=ri(e.text,t)),o}var _n=[],Ne=function(e,t,o){if(e.addEventListener)e.addEventListener(t,o,!1);else if(e.attachEvent)e.attachEvent("on"+t,o);else{var n=e._handlers||(e._handlers={});n[t]=(n[t]||_n).concat(o)}};function Li(e,t){return e._handlers&&e._handlers[t]||_n}function gr(e,t,o){if(e.removeEventListener)e.removeEventListener(t,o,!1);else if(e.detachEvent)e.detachEvent("on"+t,o);else{var n=e._handlers,u=n&&n[t];if(u){var h=_e(u,o);h>-1&&(n[t]=u.slice(0,h).concat(u.slice(h+1)))}}}function Ze(e,t){var o=Li(e,t);if(!!o.length)for(var n=Array.prototype.slice.call(arguments,2),u=0;u<o.length;++u)o[u].apply(null,n)}function Gt(e,t,o){return typeof t=="string"&&(t={type:t,preventDefault:function(){this.defaultPrevented=!0}}),Ze(e,o||t.type,e,t),Qr(t)||t.codemirrorIgnore}function No(e){var t=e._handlers&&e._handlers.cursorActivity;if(!!t)for(var o=e.curOp.cursorActivityHandlers||(e.curOp.cursorActivityHandlers=[]),n=0;n<t.length;++n)_e(o,t[n])==-1&&o.push(t[n])}function sr(e,t){return Li(e,t).length>0}function Sn(e){e.prototype.on=function(t,o){Ne(this,t,o)},e.prototype.off=function(t,o){gr(this,t,o)}}function ur(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function Ho(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function Qr(e){return e.defaultPrevented!=null?e.defaultPrevented:e.returnValue==!1}function io(e){ur(e),Ho(e)}function _i(e){return e.target||e.srcElement}function _a(e){var t=e.which;return t==null&&(e.button&1?t=1:e.button&2?t=3:e.button&4&&(t=2)),de&&e.ctrlKey&&t==1&&(t=3),t}var Sa=function(){if(T&&k<9)return!1;var e=P("div");return"draggable"in e||"dragDrop"in e}(),Rr;function wl(e){if(Rr==null){var t=P("span","\u200B");V(e,P("span",[t,document.createTextNode("x")])),e.firstChild.offsetHeight!=0&&(Rr=t.offsetWidth<=1&&t.offsetHeight>2&&!(T&&k<8))}var o=Rr?P("span","\u200B"):P("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return o.setAttribute("cm-text",""),o}var oo;function Hn(e){if(oo!=null)return oo;var t=V(e,document.createTextNode("A\u062EA")),o=ee(t,0,1).getBoundingClientRect(),n=ee(t,1,2).getBoundingClientRect();return Qe(e),!o||o.left==o.right?!1:oo=n.right-o.right<3}var ao=`
2315
2319
 
2316
2320
  b`.split(/\n/).length!=3?function(e){for(var t=0,o=[],n=e.length;t<=n;){var u=e.indexOf(`
2317
- `,t);u==-1&&(u=e.length);var h=e.slice(t,e.charAt(u-1)=="\r"?u-1:u),p=h.indexOf("\r");p!=-1?(o.push(h.slice(0,p)),t+=p+1):(o.push(h),t=u+1)}return o}:function(e){return e.split(/\r\n?|\n/)},xl=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch{return!1}}:function(e){var t;try{t=e.ownerDocument.selection.createRange()}catch{}return!t||t.parentElement()!=e?!1:t.compareEndPoints("StartToEnd",t)!=0},zl=function(){var e=P("div");return"oncopy"in e?!0:(e.setAttribute("oncopy","return;"),typeof e.oncopy=="function")}(),Ma=null;function Si(e){if(Ma!=null)return Ma;var t=G(e,P("span","x")),o=t.getBoundingClientRect(),n=ee(t,0,1).getBoundingClientRect();return Ma=Math.abs(o.left-n.left)>1}var cn={},Jr={};function Ll(e,t){arguments.length>2&&(t.dependencies=Array.prototype.slice.call(arguments,2)),cn[e]=t}function ni(e,t){Jr[e]=t}function lo(e){if(typeof e=="string"&&Jr.hasOwnProperty(e))e=Jr[e];else if(e&&typeof e.name=="string"&&Jr.hasOwnProperty(e.name)){var t=Jr[e.name];typeof t=="string"&&(t={name:t}),e=Gr(t,e),e.name=t.name}else{if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return lo("application/xml");if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return lo("application/json")}return typeof e=="string"?{name:e}:e||{name:"null"}}function Bo(e,t){t=lo(t);var o=cn[t.name];if(!o)return Bo(e,"text/plain");var n=o(e,t);if(Mn.hasOwnProperty(t.name)){var u=Mn[t.name];for(var h in u)!u.hasOwnProperty(h)||(n.hasOwnProperty(h)&&(n["_"+h]=n[h]),n[h]=u[h])}if(n.name=t.name,t.helperType&&(n.helperType=t.helperType),t.modeProps)for(var p in t.modeProps)n[p]=t.modeProps[p];return n}var Mn={};function kn(e,t){var o=Mn.hasOwnProperty(e)?Mn[e]:Mn[e]={};Ut(t,o)}function en(e,t){if(t===!0)return t;if(e.copyState)return e.copyState(t);var o={};for(var n in t){var u=t[n];u instanceof Array&&(u=u.concat([])),o[n]=u}return o}function ka(e,t){for(var o;e.innerMode&&(o=e.innerMode(t),!(!o||o.mode==e));)t=o.state,e=o.mode;return o||{mode:e,state:t}}function Oa(e,t,o){return e.startState?e.startState(t,o):!0}var $t=function(e,t,o){this.pos=this.start=0,this.string=e,this.tabSize=t||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=o};$t.prototype.eol=function(){return this.pos>=this.string.length},$t.prototype.sol=function(){return this.pos==this.lineStart},$t.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},$t.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},$t.prototype.eat=function(e){var t=this.string.charAt(this.pos),o;if(typeof e=="string"?o=t==e:o=t&&(e.test?e.test(t):e(t)),o)return++this.pos,t},$t.prototype.eatWhile=function(e){for(var t=this.pos;this.eat(e););return this.pos>t},$t.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},$t.prototype.skipToEnd=function(){this.pos=this.string.length},$t.prototype.skipTo=function(e){var t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0},$t.prototype.backUp=function(e){this.pos-=e},$t.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=At(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?At(this.string,this.lineStart,this.tabSize):0)},$t.prototype.indentation=function(){return At(this.string,null,this.tabSize)-(this.lineStart?At(this.string,this.lineStart,this.tabSize):0)},$t.prototype.match=function(e,t,o){if(typeof e=="string"){var n=function(p){return o?p.toLowerCase():p},u=this.string.substr(this.pos,e.length);if(n(u)==n(e))return t!==!1&&(this.pos+=e.length),!0}else{var h=this.string.slice(this.pos).match(e);return h&&h.index>0?null:(h&&t!==!1&&(this.pos+=h[0].length),h)}},$t.prototype.current=function(){return this.string.slice(this.start,this.pos)},$t.prototype.hideFirstChars=function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}},$t.prototype.lookAhead=function(e){var t=this.lineOracle;return t&&t.lookAhead(e)},$t.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};function Oe(e,t){if(t-=e.first,t<0||t>=e.size)throw new Error("There is no line "+(t+e.first)+" in the document.");for(var o=e;!o.lines;)for(var n=0;;++n){var u=o.children[n],h=u.chunkSize();if(t<h){o=u;break}t-=h}return o.lines[t]}function tn(e,t,o){var n=[],u=t.line;return e.iter(t.line,o.line+1,function(h){var p=h.text;u==o.line&&(p=p.slice(0,o.ch)),u==t.line&&(p=p.slice(t.ch)),n.push(p),++u}),n}function Ta(e,t,o){var n=[];return e.iter(t,o,function(u){n.push(u.text)}),n}function Vr(e,t){var o=t-e.height;if(o)for(var n=e;n;n=n.parent)n.height+=o}function bt(e){if(e.parent==null)return null;for(var t=e.parent,o=_e(t.lines,e),n=t.parent;n;t=n,n=n.parent)for(var u=0;n.children[u]!=t;++u)o+=n.children[u].chunkSize();return o+t.first}function On(e,t){var o=e.first;e:do{for(var n=0;n<e.children.length;++n){var u=e.children[n],h=u.height;if(t<h){e=u;continue e}t-=h,o+=u.chunkSize()}return o}while(!e.lines);for(var p=0;p<e.lines.length;++p){var m=e.lines[p],y=m.height;if(t<y)break;t-=y}return o+p}function Mi(e,t){return t>=e.first&&t<e.first+e.size}function Fo(e,t){return String(e.lineNumberFormatter(t+e.firstLineNumber))}function oe(e,t,o){if(o===void 0&&(o=null),!(this instanceof oe))return new oe(e,t,o);this.line=e,this.ch=t,this.sticky=o}function w(e,t){return e.line-t.line||e.ch-t.ch}function O(e,t){return e.sticky==t.sticky&&w(e,t)==0}function Q(e){return oe(e.line,e.ch)}function le(e,t){return w(e,t)<0?t:e}function Ge(e,t){return w(e,t)<0?e:t}function dt(e,t){return Math.max(e.first,Math.min(t,e.first+e.size-1))}function Ce(e,t){if(t.line<e.first)return oe(e.first,0);var o=e.first+e.size-1;return t.line>o?oe(o,Oe(e,o).text.length):vr(t,Oe(e,t.line).text.length)}function vr(e,t){var o=e.ch;return o==null||o>t?oe(e.line,t):o<0?oe(e.line,0):e}function qr(e,t){for(var o=[],n=0;n<t.length;n++)o[n]=Ce(e,t[n]);return o}var ii=function(e,t){this.state=e,this.lookAhead=t},Tn=function(e,t,o,n){this.state=t,this.doc=e,this.line=o,this.maxLookAhead=n||0,this.baseTokens=null,this.baseTokenPos=1};Tn.prototype.lookAhead=function(e){var t=this.doc.getLine(this.line+e);return t!=null&&e>this.maxLookAhead&&(this.maxLookAhead=e),t},Tn.prototype.baseToken=function(e){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=e;)this.baseTokenPos+=2;var t=this.baseTokens[this.baseTokenPos+1];return{type:t&&t.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-e}},Tn.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Tn.fromSaved=function(e,t,o){return t instanceof ii?new Tn(e,en(e.mode,t.state),o,t.lookAhead):new Tn(e,en(e.mode,t),o)},Tn.prototype.save=function(e){var t=e!==!1?en(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new ii(t,this.maxLookAhead):t};function tc(e,t,o,n){var u=[e.state.modeGen],h={};Ds(e,t.text,e.doc.mode,o,function(C,_){return u.push(C,_)},h,n);for(var p=o.state,m=function(C){o.baseTokens=u;var _=e.state.overlays[C],M=1,N=0;o.state=!0,Ds(e,t.text,_.mode,o,function(D,q){for(var te=M;N<D;){var ue=u[M];ue>D&&u.splice(M,1,D,u[M+1],ue),M+=2,N=Math.min(D,ue)}if(!!q)if(_.opaque)u.splice(te,M-te,D,"overlay "+q),M=te+2;else for(;te<M;te+=2){var fe=u[te+1];u[te+1]=(fe?fe+" ":"")+"overlay "+q}},h),o.state=p,o.baseTokens=null,o.baseTokenPos=1},y=0;y<e.state.overlays.length;++y)m(y);return{styles:u,classes:h.bgClass||h.textClass?h:null}}function $s(e,t,o){if(!t.styles||t.styles[0]!=e.state.modeGen){var n=Wo(e,bt(t)),u=t.text.length>e.options.maxHighlightLength&&en(e.doc.mode,n.state),h=tc(e,t,n);u&&(n.state=u),t.stateAfter=n.save(!u),t.styles=h.styles,h.classes?t.styleClasses=h.classes:t.styleClasses&&(t.styleClasses=null),o===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return t.styles}function Wo(e,t,o){var n=e.doc,u=e.display;if(!n.mode.startState)return new Tn(n,!0,t);var h=nc(e,t,o),p=h>n.first&&Oe(n,h-1).stateAfter,m=p?Tn.fromSaved(n,p,h):new Tn(n,Oa(n.mode),h);return n.iter(h,t,function(y){Ea(e,y.text,m);var C=m.line;y.stateAfter=C==t-1||C%5==0||C>=u.viewFrom&&C<u.viewTo?m.save():null,m.nextLine()}),o&&(n.modeFrontier=m.line),m}function Ea(e,t,o,n){var u=e.doc.mode,h=new $t(t,e.options.tabSize,o);for(h.start=h.pos=n||0,t==""&&rc(u,o.state);!h.eol();)_l(u,h,o.state),h.start=h.pos}function rc(e,t){if(e.blankLine)return e.blankLine(t);if(!!e.innerMode){var o=ka(e,t);if(o.mode.blankLine)return o.mode.blankLine(o.state)}}function _l(e,t,o,n){for(var u=0;u<10;u++){n&&(n[0]=ka(e,o).mode);var h=e.token(t,o);if(t.pos>t.start)return h}throw new Error("Mode "+e.name+" failed to advance stream.")}var Sl=function(e,t,o){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=t||null,this.state=o};function Ml(e,t,o,n){var u=e.doc,h=u.mode,p;t=Ce(u,t);var m=Oe(u,t.line),y=Wo(e,t.line,o),C=new $t(m.text,e.options.tabSize,y),_;for(n&&(_=[]);(n||C.pos<t.ch)&&!C.eol();)C.start=C.pos,p=_l(h,C,y.state),n&&_.push(new Sl(C,p,en(u.mode,y.state)));return n?_:new Sl(C,p,y.state)}function so(e,t){if(e)for(;;){var o=e.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!o)break;e=e.slice(0,o.index)+e.slice(o.index+o[0].length);var n=o[1]?"bgClass":"textClass";t[n]==null?t[n]=o[2]:new RegExp("(?:^|\\s)"+o[2]+"(?:$|\\s)").test(t[n])||(t[n]+=" "+o[2])}return e}function Ds(e,t,o,n,u,h,p){var m=o.flattenSpans;m==null&&(m=e.options.flattenSpans);var y=0,C=null,_=new $t(t,e.options.tabSize,n),M,N=e.options.addModeClass&&[null];for(t==""&&so(rc(o,n.state),h);!_.eol();){if(_.pos>e.options.maxHighlightLength?(m=!1,p&&Ea(e,t,n,_.pos),_.pos=t.length,M=null):M=so(_l(o,_,n.state,N),h),N){var D=N[0].name;D&&(M="m-"+(M?D+" "+M:D))}if(!m||C!=M){for(;y<_.start;)y=Math.min(_.start,y+5e3),u(y,C);C=M}_.start=_.pos}for(;y<_.pos;){var q=Math.min(_.pos,y+5e3);u(q,C),y=q}}function nc(e,t,o){for(var n,u,h=e.doc,p=o?-1:t-(e.doc.mode.innerMode?1e3:100),m=t;m>p;--m){if(m<=h.first)return h.first;var y=Oe(h,m-1),C=y.stateAfter;if(C&&(!o||m+(C instanceof ii?C.lookAhead:0)<=h.modeFrontier))return m;var _=At(y.text,null,e.options.tabSize);(u==null||n>_)&&(u=m-1,n=_)}return u}function a1(e,t){if(e.modeFrontier=Math.min(e.modeFrontier,t),!(e.highlightFrontier<t-10)){for(var o=e.first,n=t-1;n>o;n--){var u=Oe(e,n).stateAfter;if(u&&(!(u instanceof ii)||n+u.lookAhead<t)){o=n+1;break}}e.highlightFrontier=Math.min(e.highlightFrontier,o)}}var Rs=!1,Bn=!1;function ic(){Rs=!0}function oc(){Bn=!0}function kl(e,t,o){this.marker=e,this.from=t,this.to=o}function Pa(e,t){if(e)for(var o=0;o<e.length;++o){var n=e[o];if(n.marker==t)return n}}function l1(e,t){for(var o,n=0;n<e.length;++n)e[n]!=t&&(o||(o=[])).push(e[n]);return o}function ac(e,t,o){var n=o&&window.WeakSet&&(o.markedSpans||(o.markedSpans=new WeakSet));n&&n.has(e.markedSpans)?e.markedSpans.push(t):(e.markedSpans=e.markedSpans?e.markedSpans.concat([t]):[t],n&&n.add(e.markedSpans)),t.marker.attachLine(e)}function s1(e,t,o){var n;if(e)for(var u=0;u<e.length;++u){var h=e[u],p=h.marker,m=h.from==null||(p.inclusiveLeft?h.from<=t:h.from<t);if(m||h.from==t&&p.type=="bookmark"&&(!o||!h.marker.insertLeft)){var y=h.to==null||(p.inclusiveRight?h.to>=t:h.to>t);(n||(n=[])).push(new kl(p,h.from,y?null:h.to))}}return n}function u1(e,t,o){var n;if(e)for(var u=0;u<e.length;++u){var h=e[u],p=h.marker,m=h.to==null||(p.inclusiveRight?h.to>=t:h.to>t);if(m||h.from==t&&p.type=="bookmark"&&(!o||h.marker.insertLeft)){var y=h.from==null||(p.inclusiveLeft?h.from<=t:h.from<t);(n||(n=[])).push(new kl(p,y?null:h.from-t,h.to==null?null:h.to-t))}}return n}function Ns(e,t){if(t.full)return null;var o=Mi(e,t.from.line)&&Oe(e,t.from.line).markedSpans,n=Mi(e,t.to.line)&&Oe(e,t.to.line).markedSpans;if(!o&&!n)return null;var u=t.from.ch,h=t.to.ch,p=w(t.from,t.to)==0,m=s1(o,u,p),y=u1(n,h,p),C=t.text.length==1,_=Ke(t.text).length+(C?u:0);if(m)for(var M=0;M<m.length;++M){var N=m[M];if(N.to==null){var D=Pa(y,N.marker);D?C&&(N.to=D.to==null?null:D.to+_):N.to=u}}if(y)for(var q=0;q<y.length;++q){var te=y[q];if(te.to!=null&&(te.to+=_),te.from==null){var ue=Pa(m,te.marker);ue||(te.from=_,C&&(m||(m=[])).push(te))}else te.from+=_,C&&(m||(m=[])).push(te)}m&&(m=lc(m)),y&&y!=m&&(y=lc(y));var fe=[m];if(!C){var we=t.text.length-2,he;if(we>0&&m)for(var xe=0;xe<m.length;++xe)m[xe].to==null&&(he||(he=[])).push(new kl(m[xe].marker,null,null));for(var $e=0;$e<we;++$e)fe.push(he);fe.push(y)}return fe}function lc(e){for(var t=0;t<e.length;++t){var o=e[t];o.from!=null&&o.from==o.to&&o.marker.clearWhenEmpty!==!1&&e.splice(t--,1)}return e.length?e:null}function Hs(e,t,o){var n=null;if(e.iter(t.line,o.line+1,function(D){if(D.markedSpans)for(var q=0;q<D.markedSpans.length;++q){var te=D.markedSpans[q].marker;te.readOnly&&(!n||_e(n,te)==-1)&&(n||(n=[])).push(te)}}),!n)return null;for(var u=[{from:t,to:o}],h=0;h<n.length;++h)for(var p=n[h],m=p.find(0),y=0;y<u.length;++y){var C=u[y];if(!(w(C.to,m.from)<0||w(C.from,m.to)>0)){var _=[y,1],M=w(C.from,m.from),N=w(C.to,m.to);(M<0||!p.inclusiveLeft&&!M)&&_.push({from:C.from,to:m.from}),(N>0||!p.inclusiveRight&&!N)&&_.push({from:m.to,to:C.to}),u.splice.apply(u,_),y+=_.length-3}}return u}function sc(e){var t=e.markedSpans;if(!!t){for(var o=0;o<t.length;++o)t[o].marker.detachLine(e);e.markedSpans=null}}function uc(e,t){if(!!t){for(var o=0;o<t.length;++o)t[o].marker.attachLine(e);e.markedSpans=t}}function Ol(e){return e.inclusiveLeft?-1:0}function Tl(e){return e.inclusiveRight?1:0}function Bs(e,t){var o=e.lines.length-t.lines.length;if(o!=0)return o;var n=e.find(),u=t.find(),h=w(n.from,u.from)||Ol(e)-Ol(t);if(h)return-h;var p=w(n.to,u.to)||Tl(e)-Tl(t);return p||t.id-e.id}function Dt(e,t){var o=Bn&&e.markedSpans,n;if(o)for(var u=void 0,h=0;h<o.length;++h)u=o[h],u.marker.collapsed&&(t?u.from:u.to)==null&&(!n||Bs(n,u.marker)<0)&&(n=u.marker);return n}function Tt(e){return Dt(e,!0)}function El(e){return Dt(e,!1)}function c1(e,t){var o=Bn&&e.markedSpans,n;if(o)for(var u=0;u<o.length;++u){var h=o[u];h.marker.collapsed&&(h.from==null||h.from<t)&&(h.to==null||h.to>t)&&(!n||Bs(n,h.marker)<0)&&(n=h.marker)}return n}function cc(e,t,o,n,u){var h=Oe(e,t),p=Bn&&h.markedSpans;if(p)for(var m=0;m<p.length;++m){var y=p[m];if(!!y.marker.collapsed){var C=y.marker.find(0),_=w(C.from,o)||Ol(y.marker)-Ol(u),M=w(C.to,n)||Tl(y.marker)-Tl(u);if(!(_>=0&&M<=0||_<=0&&M>=0)&&(_<=0&&(y.marker.inclusiveRight&&u.inclusiveLeft?w(C.to,o)>=0:w(C.to,o)>0)||_>=0&&(y.marker.inclusiveRight&&u.inclusiveLeft?w(C.from,n)<=0:w(C.from,n)<0)))return!0}}}function Fn(e){for(var t;t=Tt(e);)e=t.find(-1,!0).line;return e}function d1(e){for(var t;t=El(e);)e=t.find(1,!0).line;return e}function f1(e){for(var t,o;t=El(e);)e=t.find(1,!0).line,(o||(o=[])).push(e);return o}function Pl(e,t){var o=Oe(e,t),n=Fn(o);return o==n?t:bt(n)}function dc(e,t){if(t>e.lastLine())return t;var o=Oe(e,t),n;if(!Ht(e,o))return t;for(;n=El(o);)o=n.find(1,!0).line;return bt(o)+1}function Ht(e,t){var o=Bn&&t.markedSpans;if(o){for(var n=void 0,u=0;u<o.length;++u)if(n=o[u],!!n.marker.collapsed){if(n.from==null)return!0;if(!n.marker.widgetNode&&n.from==0&&n.marker.inclusiveLeft&&Ia(e,t,n))return!0}}}function Ia(e,t,o){if(o.to==null){var n=o.marker.find(1,!0);return Ia(e,n.line,Pa(n.line.markedSpans,o.marker))}if(o.marker.inclusiveRight&&o.to==t.text.length)return!0;for(var u=void 0,h=0;h<t.markedSpans.length;++h)if(u=t.markedSpans[h],u.marker.collapsed&&!u.marker.widgetNode&&u.from==o.to&&(u.to==null||u.to!=o.from)&&(u.marker.inclusiveLeft||o.marker.inclusiveRight)&&Ia(e,t,u))return!0}function Nr(e){e=Fn(e);for(var t=0,o=e.parent,n=0;n<o.lines.length;++n){var u=o.lines[n];if(u==e)break;t+=u.height}for(var h=o.parent;h;o=h,h=o.parent)for(var p=0;p<h.children.length;++p){var m=h.children[p];if(m==o)break;t+=m.height}return t}function Aa(e){if(e.height==0)return 0;for(var t=e.text.length,o,n=e;o=Tt(n);){var u=o.find(0,!0);n=u.from.line,t+=u.from.ch-u.to.ch}for(n=e;o=El(n);){var h=o.find(0,!0);t-=n.text.length-h.from.ch,n=h.to.line,t+=n.text.length-h.to.ch}return t}function $a(e){var t=e.display,o=e.doc;t.maxLine=Oe(o,o.first),t.maxLineLength=Aa(t.maxLine),t.maxLineChanged=!0,o.iter(function(n){var u=Aa(n);u>t.maxLineLength&&(t.maxLineLength=u,t.maxLine=n)})}var br=function(e,t,o){this.text=e,uc(this,t),this.height=o?o(this):1};br.prototype.lineNo=function(){return bt(this)},Sn(br);function fc(e,t,o,n){e.text=t,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),e.order!=null&&(e.order=null),sc(e),uc(e,o);var u=n?n(e):1;u!=e.height&&Vr(e,u)}function hc(e){e.parent=null,sc(e)}var pc={},gc={};function Fs(e,t){if(!e||/^\s*$/.test(e))return null;var o=t.addModeClass?gc:pc;return o[e]||(o[e]=e.replace(/\S+/g,"cm-$&"))}function Ws(e,t){var o=S("span",null,null,A?"padding-right: .1px":null),n={pre:S("pre",[o],"CodeMirror-line"),content:o,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:e.getOption("lineWrapping")};t.measure={};for(var u=0;u<=(t.rest?t.rest.length:0);u++){var h=u?t.rest[u-1]:t.line,p=void 0;n.pos=0,n.addToken=h1,Hn(e.display.measure)&&(p=_r(h,e.doc.direction))&&(n.addToken=p1(n.addToken,p)),n.map=[];var m=t!=e.display.externalMeasured&&bt(h);ki(h,n,$s(e,h,m)),h.styleClasses&&(h.styleClasses.bgClass&&(n.bgClass=Kt(h.styleClasses.bgClass,n.bgClass||"")),h.styleClasses.textClass&&(n.textClass=Kt(h.styleClasses.textClass,n.textClass||""))),n.map.length==0&&n.map.push(0,0,n.content.appendChild(wl(e.display.measure))),u==0?(t.measure.map=n.map,t.measure.cache={}):((t.measure.maps||(t.measure.maps=[])).push(n.map),(t.measure.caches||(t.measure.caches=[])).push({}))}if(A){var y=n.content.lastChild;(/\bcm-tab\b/.test(y.className)||y.querySelector&&y.querySelector(".cm-tab"))&&(n.content.className="cm-tab-wrap-hack")}return Ze(e,"renderLine",e,t.line,n.pre),n.pre.className&&(n.textClass=Kt(n.pre.className,n.textClass||"")),n}function rn(e){var t=P("span","\u2022","cm-invalidchar");return t.title="\\u"+e.charCodeAt(0).toString(16),t.setAttribute("aria-label",t.title),t}function h1(e,t,o,n,u,h,p){if(!!t){var m=e.splitSpaces?dn(t,e.trailingSpace):t,y=e.cm.state.specialChars,C=!1,_;if(!y.test(t))e.col+=t.length,_=document.createTextNode(m),e.map.push(e.pos,e.pos+t.length,_),T&&k<9&&(C=!0),e.pos+=t.length;else{_=document.createDocumentFragment();for(var M=0;;){y.lastIndex=M;var N=y.exec(t),D=N?N.index-M:t.length-M;if(D){var q=document.createTextNode(m.slice(M,M+D));T&&k<9?_.appendChild(P("span",[q])):_.appendChild(q),e.map.push(e.pos,e.pos+D,q),e.col+=D,e.pos+=D}if(!N)break;M+=D+1;var te=void 0;if(N[0]==" "){var ue=e.cm.options.tabSize,fe=ue-e.col%ue;te=_.appendChild(P("span",Yt(fe),"cm-tab")),te.setAttribute("role","presentation"),te.setAttribute("cm-text"," "),e.col+=fe}else N[0]=="\r"||N[0]==`
2318
- `?(te=_.appendChild(P("span",N[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),te.setAttribute("cm-text",N[0]),e.col+=1):(te=e.cm.options.specialCharPlaceholder(N[0]),te.setAttribute("cm-text",N[0]),T&&k<9?_.appendChild(P("span",[te])):_.appendChild(te),e.col+=1);e.map.push(e.pos,e.pos+1,te),e.pos++}}if(e.trailingSpace=m.charCodeAt(t.length-1)==32,o||n||u||C||h||p){var we=o||"";n&&(we+=n),u&&(we+=u);var he=P("span",[_],we,h);if(p)for(var xe in p)p.hasOwnProperty(xe)&&xe!="style"&&xe!="class"&&he.setAttribute(xe,p[xe]);return e.content.appendChild(he)}e.content.appendChild(_)}}function dn(e,t){if(e.length>1&&!/ /.test(e))return e;for(var o=t,n="",u=0;u<e.length;u++){var h=e.charAt(u);h==" "&&o&&(u==e.length-1||e.charCodeAt(u+1)==32)&&(h="\xA0"),n+=h,o=h==" "}return n}function p1(e,t){return function(o,n,u,h,p,m,y){u=u?u+" cm-force-border":"cm-force-border";for(var C=o.pos,_=C+n.length;;){for(var M=void 0,N=0;N<t.length&&(M=t[N],!(M.to>C&&M.from<=C));N++);if(M.to>=_)return e(o,n,u,h,p,m,y);e(o,n.slice(0,M.to-C),u,h,null,m,y),h=null,n=n.slice(M.to-C),C=M.to}}}function Us(e,t,o,n){var u=!n&&o.widgetNode;u&&e.map.push(e.pos,e.pos+t,u),!n&&e.cm.display.input.needsContentAttribute&&(u||(u=e.content.appendChild(document.createElement("span"))),u.setAttribute("cm-marker",o.id)),u&&(e.cm.display.input.setUneditable(u),e.content.appendChild(u)),e.pos+=t,e.trailingSpace=!1}function ki(e,t,o){var n=e.markedSpans,u=e.text,h=0;if(!n){for(var p=1;p<o.length;p+=2)t.addToken(t,u.slice(h,h=o[p]),Fs(o[p+1],t.cm.options));return}for(var m=u.length,y=0,C=1,_="",M,N,D=0,q,te,ue,fe,we;;){if(D==y){q=te=ue=N="",we=null,fe=null,D=1/0;for(var he=[],xe=void 0,$e=0;$e<n.length;++$e){var Pe=n[$e],ot=Pe.marker;if(ot.type=="bookmark"&&Pe.from==y&&ot.widgetNode)he.push(ot);else if(Pe.from<=y&&(Pe.to==null||Pe.to>y||ot.collapsed&&Pe.to==y&&Pe.from==y)){if(Pe.to!=null&&Pe.to!=y&&D>Pe.to&&(D=Pe.to,te=""),ot.className&&(q+=" "+ot.className),ot.css&&(N=(N?N+";":"")+ot.css),ot.startStyle&&Pe.from==y&&(ue+=" "+ot.startStyle),ot.endStyle&&Pe.to==D&&(xe||(xe=[])).push(ot.endStyle,Pe.to),ot.title&&((we||(we={})).title=ot.title),ot.attributes)for(var xt in ot.attributes)(we||(we={}))[xt]=ot.attributes[xt];ot.collapsed&&(!fe||Bs(fe.marker,ot)<0)&&(fe=Pe)}else Pe.from>y&&D>Pe.from&&(D=Pe.from)}if(xe)for(var Xt=0;Xt<xe.length;Xt+=2)xe[Xt+1]==D&&(te+=" "+xe[Xt]);if(!fe||fe.from==y)for(var kt=0;kt<he.length;++kt)Us(t,0,he[kt]);if(fe&&(fe.from||0)==y){if(Us(t,(fe.to==null?m+1:fe.to)-y,fe.marker,fe.from==null),fe.to==null)return;fe.to==y&&(fe=!1)}}if(y>=m)break;for(var Or=Math.min(m,D);;){if(_){var Tr=y+_.length;if(!fe){var Gt=Tr>Or?_.slice(0,Or-y):_;t.addToken(t,Gt,M?M+q:q,ue,y+Gt.length==D?te:"",N,we)}if(Tr>=Or){_=_.slice(Or-y),y=Or;break}y=Tr,ue=""}_=u.slice(h,h=o[C++]),M=Fs(o[C++],t.cm.options)}}}function Da(e,t,o){this.line=t,this.rest=f1(t),this.size=this.rest?bt(Ke(this.rest))-o+1:1,this.node=this.text=null,this.hidden=Ht(e,t)}function Uo(e,t,o){for(var n=[],u,h=t;h<o;h=u){var p=new Da(e.doc,Oe(e.doc,h),h);u=h+p.size,n.push(p)}return n}var _t=null;function Oi(e){_t?_t.ops.push(e):e.ownsGroup=_t={ops:[e],delayedCallbacks:[]}}function Zs(e){var t=e.delayedCallbacks,o=0;do{for(;o<t.length;o++)t[o].call(null);for(var n=0;n<e.ops.length;n++){var u=e.ops[n];if(u.cursorActivityHandlers)for(;u.cursorActivityCalled<u.cursorActivityHandlers.length;)u.cursorActivityHandlers[u.cursorActivityCalled++].call(null,u.cm)}}while(o<t.length)}function g1(e,t){var o=e.ownsGroup;if(!!o)try{Zs(o)}finally{_t=null,t(o)}}var uo=null;function rr(e,t){var o=Li(e,t);if(!!o.length){var n=Array.prototype.slice.call(arguments,2),u;_t?u=_t.delayedCallbacks:uo?u=uo:(u=uo=[],setTimeout(v1,0));for(var h=function(m){u.push(function(){return o[m].apply(null,n)})},p=0;p<o.length;++p)h(p)}}function v1(){var e=uo;uo=null;for(var t=0;t<e.length;++t)e[t]()}function vc(e,t,o,n){for(var u=0;u<t.changes.length;u++){var h=t.changes[u];h=="text"?b1(e,t):h=="gutter"?Gs(e,t,o,n):h=="class"?Al(e,t):h=="widget"&&Vs(e,t,n)}t.changes=null}function Zo(e){return e.node==e.text&&(e.node=P("div",null,null,"position: relative"),e.text.parentNode&&e.text.parentNode.replaceChild(e.node,e.text),e.node.appendChild(e.text),T&&k<8&&(e.node.style.zIndex=2)),e.node}function Il(e,t){var o=t.bgClass?t.bgClass+" "+(t.line.bgClass||""):t.line.bgClass;if(o&&(o+=" CodeMirror-linebackground"),t.background)o?t.background.className=o:(t.background.parentNode.removeChild(t.background),t.background=null);else if(o){var n=Zo(t);t.background=n.insertBefore(P("div",null,o),n.firstChild),e.display.input.setUneditable(t.background)}}function co(e,t){var o=e.display.externalMeasured;return o&&o.line==t.line?(e.display.externalMeasured=null,t.measure=o.measure,o.built):Ws(e,t)}function b1(e,t){var o=t.text.className,n=co(e,t);t.text==t.node&&(t.node=n.pre),t.text.parentNode.replaceChild(n.pre,t.text),t.text=n.pre,n.bgClass!=t.bgClass||n.textClass!=t.textClass?(t.bgClass=n.bgClass,t.textClass=n.textClass,Al(e,t)):o&&(t.text.className=o)}function Al(e,t){Il(e,t),t.line.wrapClass?Zo(t).className=t.line.wrapClass:t.node!=t.text&&(t.node.className="");var o=t.textClass?t.textClass+" "+(t.line.textClass||""):t.line.textClass;t.text.className=o||""}function Gs(e,t,o,n){if(t.gutter&&(t.node.removeChild(t.gutter),t.gutter=null),t.gutterBackground&&(t.node.removeChild(t.gutterBackground),t.gutterBackground=null),t.line.gutterClass){var u=Zo(t);t.gutterBackground=P("div",null,"CodeMirror-gutter-background "+t.line.gutterClass,"left: "+(e.options.fixedGutter?n.fixedPos:-n.gutterTotalWidth)+"px; width: "+n.gutterTotalWidth+"px"),e.display.input.setUneditable(t.gutterBackground),u.insertBefore(t.gutterBackground,t.text)}var h=t.line.gutterMarkers;if(e.options.lineNumbers||h){var p=Zo(t),m=t.gutter=P("div",null,"CodeMirror-gutter-wrapper","left: "+(e.options.fixedGutter?n.fixedPos:-n.gutterTotalWidth)+"px");if(m.setAttribute("aria-hidden","true"),e.display.input.setUneditable(m),p.insertBefore(m,t.text),t.line.gutterClass&&(m.className+=" "+t.line.gutterClass),e.options.lineNumbers&&(!h||!h["CodeMirror-linenumbers"])&&(t.lineNumber=m.appendChild(P("div",Fo(e.options,o),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+n.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+e.display.lineNumInnerWidth+"px"))),h)for(var y=0;y<e.display.gutterSpecs.length;++y){var C=e.display.gutterSpecs[y].className,_=h.hasOwnProperty(C)&&h[C];_&&m.appendChild(P("div",[_],"CodeMirror-gutter-elt","left: "+n.gutterLeft[C]+"px; width: "+n.gutterWidth[C]+"px"))}}}function Vs(e,t,o){t.alignable&&(t.alignable=null);for(var n=be("CodeMirror-linewidget"),u=t.node.firstChild,h=void 0;u;u=h)h=u.nextSibling,n.test(u.className)&&t.node.removeChild(u);js(e,t,o)}function qs(e,t,o,n){var u=co(e,t);return t.text=t.node=u.pre,u.bgClass&&(t.bgClass=u.bgClass),u.textClass&&(t.textClass=u.textClass),Al(e,t),Gs(e,t,o,n),js(e,t,n),t.node}function js(e,t,o){if(bc(e,t.line,t,o,!0),t.rest)for(var n=0;n<t.rest.length;n++)bc(e,t.rest[n],t,o,!1)}function bc(e,t,o,n,u){if(!!t.widgets)for(var h=Zo(o),p=0,m=t.widgets;p<m.length;++p){var y=m[p],C=P("div",[y.node],"CodeMirror-linewidget"+(y.className?" "+y.className:""));y.handleMouseEvents||C.setAttribute("cm-ignore-events","true"),Ks(y,C,o,n),e.display.input.setUneditable(C),u&&y.above?h.insertBefore(C,o.gutter||o.text):h.appendChild(C),rr(y,"redraw")}}function Ks(e,t,o,n){if(e.noHScroll){(o.alignable||(o.alignable=[])).push(t);var u=n.wrapperWidth;t.style.left=n.fixedPos+"px",e.coverGutter||(u-=n.gutterTotalWidth,t.style.paddingLeft=n.gutterTotalWidth+"px"),t.style.width=u+"px"}e.coverGutter&&(t.style.zIndex=5,t.style.position="relative",e.noHScroll||(t.style.marginLeft=-n.gutterTotalWidth+"px"))}function fo(e){if(e.height!=null)return e.height;var t=e.doc.cm;if(!t)return 0;if(!me(document.body,e.node)){var o="position: relative;";e.coverGutter&&(o+="margin-left: -"+t.display.gutters.offsetWidth+"px;"),e.noHScroll&&(o+="width: "+t.display.wrapper.clientWidth+"px;"),G(t.display.measure,P("div",[e.node],null,o))}return e.height=e.node.parentNode.offsetHeight}function oi(e,t){for(var o=_i(t);o!=e.wrapper;o=o.parentNode)if(!o||o.nodeType==1&&o.getAttribute("cm-ignore-events")=="true"||o.parentNode==e.sizer&&o!=e.mover)return!0}function Ra(e){return e.lineSpace.offsetTop}function Hr(e){return e.mover.offsetHeight-e.lineSpace.offsetHeight}function $l(e){if(e.cachedPaddingH)return e.cachedPaddingH;var t=G(e.measure,P("pre","x","CodeMirror-line-like")),o=window.getComputedStyle?window.getComputedStyle(t):t.currentStyle,n={left:parseInt(o.paddingLeft),right:parseInt(o.paddingRight)};return!isNaN(n.left)&&!isNaN(n.right)&&(e.cachedPaddingH=n),n}function jr(e){return Fe-e.display.nativeBarWidth}function Ti(e){return e.display.scroller.clientWidth-jr(e)-e.display.barWidth}function Dl(e){return e.display.scroller.clientHeight-jr(e)-e.display.barHeight}function m1(e,t,o){var n=e.options.lineWrapping,u=n&&Ti(e);if(!t.measure.heights||n&&t.measure.width!=u){var h=t.measure.heights=[];if(n){t.measure.width=u;for(var p=t.text.firstChild.getClientRects(),m=0;m<p.length-1;m++){var y=p[m],C=p[m+1];Math.abs(y.bottom-C.bottom)>2&&h.push((y.bottom+C.top)/2-o.top)}}h.push(o.bottom-o.top)}}function mc(e,t,o){if(e.line==t)return{map:e.measure.map,cache:e.measure.cache};for(var n=0;n<e.rest.length;n++)if(e.rest[n]==t)return{map:e.measure.maps[n],cache:e.measure.caches[n]};for(var u=0;u<e.rest.length;u++)if(bt(e.rest[u])>o)return{map:e.measure.maps[u],cache:e.measure.caches[u],before:!0}}function y1(e,t){t=Fn(t);var o=bt(t),n=e.display.externalMeasured=new Da(e.doc,t,o);n.lineN=o;var u=n.built=Ws(e,n);return n.text=u.pre,G(e.display.lineMeasure,u.pre),n}function yc(e,t,o,n){return Wn(e,En(e,t),o,n)}function Ys(e,t){if(t>=e.display.viewFrom&&t<e.display.viewTo)return e.display.view[Zn(e,t)];var o=e.display.externalMeasured;if(o&&t>=o.lineN&&t<o.lineN+o.size)return o}function En(e,t){var o=bt(t),n=Ys(e,o);n&&!n.text?n=null:n&&n.changes&&(vc(e,n,o,Kr(e)),e.curOp.forceUpdate=!0),n||(n=y1(e,t));var u=mc(n,t,o);return{line:t,view:n,rect:null,map:u.map,cache:u.cache,before:u.before,hasHeights:!1}}function Wn(e,t,o,n,u){t.before&&(o=-1);var h=o+(n||""),p;return t.cache.hasOwnProperty(h)?p=t.cache[h]:(t.rect||(t.rect=t.view.text.getBoundingClientRect()),t.hasHeights||(m1(e,t.view,t.rect),t.hasHeights=!0),p=Ei(e,t,o,n),p.bogus||(t.cache[h]=p)),{left:p.left,right:p.right,top:u?p.rtop:p.top,bottom:u?p.rbottom:p.bottom}}var Cc={left:0,right:0,top:0,bottom:0};function Rl(e,t,o){for(var n,u,h,p,m,y,C=0;C<e.length;C+=3)if(m=e[C],y=e[C+1],t<m?(u=0,h=1,p="left"):t<y?(u=t-m,h=u+1):(C==e.length-3||t==y&&e[C+3]>t)&&(h=y-m,u=h-1,t>=y&&(p="right")),u!=null){if(n=e[C+2],m==y&&o==(n.insertLeft?"left":"right")&&(p=o),o=="left"&&u==0)for(;C&&e[C-2]==e[C-3]&&e[C-1].insertLeft;)n=e[(C-=3)+2],p="left";if(o=="right"&&u==y-m)for(;C<e.length-3&&e[C+3]==e[C+4]&&!e[C+5].insertLeft;)n=e[(C+=3)+2],p="right";break}return{node:n,start:u,end:h,collapse:p,coverStart:m,coverEnd:y}}function wc(e,t){var o=Cc;if(t=="left")for(var n=0;n<e.length&&(o=e[n]).left==o.right;n++);else for(var u=e.length-1;u>=0&&(o=e[u]).left==o.right;u--);return o}function Ei(e,t,o,n){var u=Rl(t.map,o,n),h=u.node,p=u.start,m=u.end,y=u.collapse,C;if(h.nodeType==3){for(var _=0;_<4;_++){for(;p&&Xe(t.line.text.charAt(u.coverStart+p));)--p;for(;u.coverStart+m<u.coverEnd&&Xe(t.line.text.charAt(u.coverStart+m));)++m;if(T&&k<9&&p==0&&m==u.coverEnd-u.coverStart?C=h.parentNode.getBoundingClientRect():C=wc(ee(h,p,m).getClientRects(),n),C.left||C.right||p==0)break;m=p,p=p-1,y="right"}T&&k<11&&(C=Nl(e.display.measure,C))}else{p>0&&(y=n="right");var M;e.options.lineWrapping&&(M=h.getClientRects()).length>1?C=M[n=="right"?M.length-1:0]:C=h.getBoundingClientRect()}if(T&&k<9&&!p&&(!C||!C.left&&!C.right)){var N=h.parentNode.getClientRects()[0];N?C={left:N.left,right:N.left+Go(e.display),top:N.top,bottom:N.bottom}:C=Cc}for(var D=C.top-t.rect.top,q=C.bottom-t.rect.top,te=(D+q)/2,ue=t.view.measure.heights,fe=0;fe<ue.length-1&&!(te<ue[fe]);fe++);var we=fe?ue[fe-1]:0,he=ue[fe],xe={left:(y=="right"?C.right:C.left)-t.rect.left,right:(y=="left"?C.left:C.right)-t.rect.left,top:we,bottom:he};return!C.left&&!C.right&&(xe.bogus=!0),e.options.singleCursorHeightPerLine||(xe.rtop=D,xe.rbottom=q),xe}function Nl(e,t){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!Si(e))return t;var o=screen.logicalXDPI/screen.deviceXDPI,n=screen.logicalYDPI/screen.deviceYDPI;return{left:t.left*o,right:t.right*o,top:t.top*n,bottom:t.bottom*n}}function xc(e){if(e.measure&&(e.measure.cache={},e.measure.heights=null,e.rest))for(var t=0;t<e.rest.length;t++)e.measure.caches[t]={}}function zc(e){e.display.externalMeasure=null,Qe(e.display.lineMeasure);for(var t=0;t<e.display.view.length;t++)xc(e.display.view[t])}function Na(e){zc(e),e.display.cachedCharWidth=e.display.cachedTextHeight=e.display.cachedPaddingH=null,e.options.lineWrapping||(e.display.maxLineChanged=!0),e.display.lineNumChars=null}function ho(){return U&&Te?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function fn(){return U&&Te?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function Hl(e){var t=0;if(e.widgets)for(var o=0;o<e.widgets.length;++o)e.widgets[o].above&&(t+=fo(e.widgets[o]));return t}function Bl(e,t,o,n,u){if(!u){var h=Hl(t);o.top+=h,o.bottom+=h}if(n=="line")return o;n||(n="local");var p=Nr(t);if(n=="local"?p+=Ra(e.display):p-=e.display.viewOffset,n=="page"||n=="window"){var m=e.display.lineSpace.getBoundingClientRect();p+=m.top+(n=="window"?0:fn());var y=m.left+(n=="window"?0:ho());o.left+=y,o.right+=y}return o.top+=p,o.bottom+=p,o}function Lc(e,t,o){if(o=="div")return t;var n=t.left,u=t.top;if(o=="page")n-=ho(),u-=fn();else if(o=="local"||!o){var h=e.display.sizer.getBoundingClientRect();n+=h.left,u+=h.top}var p=e.display.lineSpace.getBoundingClientRect();return{left:n-p.left,top:u-p.top}}function Fl(e,t,o,n,u){return n||(n=Oe(e.doc,t.line)),Bl(e,n,yc(e,n,t.ch,u),o)}function Pn(e,t,o,n,u,h){n=n||Oe(e.doc,t.line),u||(u=En(e,n));function p(q,te){var ue=Wn(e,u,q,te?"right":"left",h);return te?ue.left=ue.right:ue.right=ue.left,Bl(e,n,ue,o)}var m=_r(n,e.doc.direction),y=t.ch,C=t.sticky;if(y>=n.text.length?(y=n.text.length,C="before"):y<=0&&(y=0,C="after"),!m)return p(C=="before"?y-1:y,C=="before");function _(q,te,ue){var fe=m[te],we=fe.level==1;return p(ue?q-1:q,we!=ue)}var M=Rt(m,y,C),N=Dr,D=_(y,M,C=="before");return N!=null&&(D.other=_(y,N,C!="before")),D}function _c(e,t){var o=0;t=Ce(e.doc,t),e.options.lineWrapping||(o=Go(e.display)*t.ch);var n=Oe(e.doc,t.line),u=Nr(n)+Ra(e.display);return{left:o,right:o,top:u,bottom:u+n.height}}function Pi(e,t,o,n,u){var h=oe(e,t,o);return h.xRel=u,n&&(h.outside=n),h}function H(e,t,o){var n=e.doc;if(o+=e.display.viewOffset,o<0)return Pi(n.first,0,null,-1,-1);var u=On(n,o),h=n.first+n.size-1;if(u>h)return Pi(n.first+n.size-1,Oe(n,h).text.length,null,1,1);t<0&&(t=0);for(var p=Oe(n,u);;){var m=Je(e,p,u,t,o),y=c1(p,m.ch+(m.xRel>0||m.outside>0?1:0));if(!y)return m;var C=y.find(1);if(C.line==u)return C;p=Oe(n,u=C.line)}}function J(e,t,o,n){n-=Hl(t);var u=t.text.length,h=pr(function(p){return Wn(e,o,p-1).bottom<=n},u,0);return u=pr(function(p){return Wn(e,o,p).top>n},h,u),{begin:h,end:u}}function V(e,t,o,n){o||(o=En(e,t));var u=Bl(e,t,Wn(e,o,n),"line").top;return J(e,t,o,u)}function Se(e,t,o,n){return e.bottom<=o?!1:e.top>o?!0:(n?e.left:e.right)>t}function Je(e,t,o,n,u){u-=Nr(t);var h=En(e,t),p=Hl(t),m=0,y=t.text.length,C=!0,_=_r(t,e.doc.direction);if(_){var M=(e.options.lineWrapping?nr:Ct)(e,t,o,h,_,n,u);C=M.level!=1,m=C?M.from:M.to-1,y=C?M.to:M.from-1}var N=null,D=null,q=pr(function($e){var Pe=Wn(e,h,$e);return Pe.top+=p,Pe.bottom+=p,Se(Pe,n,u,!1)?(Pe.top<=u&&Pe.left<=n&&(N=$e,D=Pe),!0):!1},m,y),te,ue,fe=!1;if(D){var we=n-D.left<D.right-n,he=we==C;q=N+(he?0:1),ue=he?"after":"before",te=we?D.left:D.right}else{!C&&(q==y||q==m)&&q++,ue=q==0?"after":q==t.text.length?"before":Wn(e,h,q-(C?1:0)).bottom+p<=u==C?"after":"before";var xe=Pn(e,oe(o,q,ue),"line",t,h);te=xe.left,fe=u<xe.top?-1:u>=xe.bottom?1:0}return q=tr(t.text,q,1),Pi(o,q,ue,fe,n-te)}function Ct(e,t,o,n,u,h,p){var m=pr(function(M){var N=u[M],D=N.level!=1;return Se(Pn(e,oe(o,D?N.to:N.from,D?"before":"after"),"line",t,n),h,p,!0)},0,u.length-1),y=u[m];if(m>0){var C=y.level!=1,_=Pn(e,oe(o,C?y.from:y.to,C?"after":"before"),"line",t,n);Se(_,h,p,!0)&&_.top>p&&(y=u[m-1])}return y}function nr(e,t,o,n,u,h,p){var m=J(e,t,n,p),y=m.begin,C=m.end;/\s/.test(t.text.charAt(C-1))&&C--;for(var _=null,M=null,N=0;N<u.length;N++){var D=u[N];if(!(D.from>=C||D.to<=y)){var q=D.level!=1,te=Wn(e,n,q?Math.min(C,D.to)-1:Math.max(y,D.from)).right,ue=te<h?h-te+1e9:te-h;(!_||M>ue)&&(_=D,M=ue)}}return _||(_=u[u.length-1]),_.from<y&&(_={from:y,to:_.to,level:_.level}),_.to>C&&(_={from:_.from,to:C,level:_.level}),_}var gt;function Ii(e){if(e.cachedTextHeight!=null)return e.cachedTextHeight;if(gt==null){gt=P("pre",null,"CodeMirror-line-like");for(var t=0;t<49;++t)gt.appendChild(document.createTextNode("x")),gt.appendChild(P("br"));gt.appendChild(document.createTextNode("x"))}G(e.measure,gt);var o=gt.offsetHeight/50;return o>3&&(e.cachedTextHeight=o),Qe(e.measure),o||1}function Go(e){if(e.cachedCharWidth!=null)return e.cachedCharWidth;var t=P("span","xxxxxxxxxx"),o=P("pre",[t],"CodeMirror-line-like");G(e.measure,o);var n=t.getBoundingClientRect(),u=(n.right-n.left)/10;return u>2&&(e.cachedCharWidth=u),u||10}function Kr(e){for(var t=e.display,o={},n={},u=t.gutters.clientLeft,h=t.gutters.firstChild,p=0;h;h=h.nextSibling,++p){var m=e.display.gutterSpecs[p].className;o[m]=h.offsetLeft+h.clientLeft+u,n[m]=h.clientWidth}return{fixedPos:Vo(t),gutterTotalWidth:t.gutters.offsetWidth,gutterLeft:o,gutterWidth:n,wrapperWidth:t.wrapper.clientWidth}}function Vo(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function Sc(e){var t=Ii(e.display),o=e.options.lineWrapping,n=o&&Math.max(5,e.display.scroller.clientWidth/Go(e.display)-3);return function(u){if(Ht(e.doc,u))return 0;var h=0;if(u.widgets)for(var p=0;p<u.widgets.length;p++)u.widgets[p].height&&(h+=u.widgets[p].height);return o?h+(Math.ceil(u.text.length/n)||1)*t:h+t}}function Ai(e){var t=e.doc,o=Sc(e);t.iter(function(n){var u=o(n);u!=n.height&&Vr(n,u)})}function Un(e,t,o,n){var u=e.display;if(!o&&_i(t).getAttribute("cm-not-content")=="true")return null;var h,p,m=u.lineSpace.getBoundingClientRect();try{h=t.clientX-m.left,p=t.clientY-m.top}catch{return null}var y=H(e,h,p),C;if(n&&y.xRel>0&&(C=Oe(e.doc,y.line).text).length==y.ch){var _=At(C,C.length,e.options.tabSize)-C.length;y=oe(y.line,Math.max(0,Math.round((h-$l(e.display).left)/Go(e.display))-_))}return y}function Zn(e,t){if(t>=e.display.viewTo||(t-=e.display.viewFrom,t<0))return null;for(var o=e.display.view,n=0;n<o.length;n++)if(t-=o[n].size,t<0)return n}function tt(e,t,o,n){t==null&&(t=e.doc.first),o==null&&(o=e.doc.first+e.doc.size),n||(n=0);var u=e.display;if(n&&o<u.viewTo&&(u.updateLineNumbers==null||u.updateLineNumbers>t)&&(u.updateLineNumbers=t),e.curOp.viewChanged=!0,t>=u.viewTo)Bn&&Pl(e.doc,t)<u.viewTo&&ai(e);else if(o<=u.viewFrom)Bn&&dc(e.doc,o+n)>u.viewFrom?ai(e):(u.viewFrom+=n,u.viewTo+=n);else if(t<=u.viewFrom&&o>=u.viewTo)ai(e);else if(t<=u.viewFrom){var h=po(e,o,o+n,1);h?(u.view=u.view.slice(h.index),u.viewFrom=h.lineN,u.viewTo+=n):ai(e)}else if(o>=u.viewTo){var p=po(e,t,t,-1);p?(u.view=u.view.slice(0,p.index),u.viewTo=p.lineN):ai(e)}else{var m=po(e,t,t,-1),y=po(e,o,o+n,1);m&&y?(u.view=u.view.slice(0,m.index).concat(Uo(e,m.lineN,y.lineN)).concat(u.view.slice(y.index)),u.viewTo+=n):ai(e)}var C=u.externalMeasured;C&&(o<C.lineN?C.lineN+=n:t<C.lineN+C.size&&(u.externalMeasured=null))}function $i(e,t,o){e.curOp.viewChanged=!0;var n=e.display,u=e.display.externalMeasured;if(u&&t>=u.lineN&&t<u.lineN+u.size&&(n.externalMeasured=null),!(t<n.viewFrom||t>=n.viewTo)){var h=n.view[Zn(e,t)];if(h.node!=null){var p=h.changes||(h.changes=[]);_e(p,o)==-1&&p.push(o)}}}function ai(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function po(e,t,o,n){var u=Zn(e,t),h,p=e.display.view;if(!Bn||o==e.doc.first+e.doc.size)return{index:u,lineN:o};for(var m=e.display.viewFrom,y=0;y<u;y++)m+=p[y].size;if(m!=t){if(n>0){if(u==p.length-1)return null;h=m+p[u].size-t,u++}else h=m-t;t+=h,o+=h}for(;Pl(e.doc,o)!=o;){if(u==(n<0?0:p.length-1))return null;o+=n*p[u-(n<0?1:0)].size,u+=n}return{index:u,lineN:o}}function C1(e,t,o){var n=e.display,u=n.view;u.length==0||t>=n.viewTo||o<=n.viewFrom?(n.view=Uo(e,t,o),n.viewFrom=t):(n.viewFrom>t?n.view=Uo(e,t,n.viewFrom).concat(n.view):n.viewFrom<t&&(n.view=n.view.slice(Zn(e,t))),n.viewFrom=t,n.viewTo<o?n.view=n.view.concat(Uo(e,n.viewTo,o)):n.viewTo>o&&(n.view=n.view.slice(0,Zn(e,o)))),n.viewTo=o}function Mc(e){for(var t=e.display.view,o=0,n=0;n<t.length;n++){var u=t[n];!u.hidden&&(!u.node||u.changes)&&++o}return o}function Ha(e){e.display.input.showSelection(e.display.input.prepareSelection())}function Ba(e,t){t===void 0&&(t=!0);for(var o=e.doc,n={},u=n.cursors=document.createDocumentFragment(),h=n.selection=document.createDocumentFragment(),p=0;p<o.sel.ranges.length;p++)if(!(!t&&p==o.sel.primIndex)){var m=o.sel.ranges[p];if(!(m.from().line>=e.display.viewTo||m.to().line<e.display.viewFrom)){var y=m.empty();(y||e.options.showCursorWhenSelecting)&&li(e,m.head,u),y||kc(e,m,h)}}return n}function li(e,t,o){var n=Pn(e,t,"div",null,null,!e.options.singleCursorHeightPerLine),u=o.appendChild(P("div","\xA0","CodeMirror-cursor"));if(u.style.left=n.left+"px",u.style.top=n.top+"px",u.style.height=Math.max(0,n.bottom-n.top)*e.options.cursorHeight+"px",/\bcm-fat-cursor\b/.test(e.getWrapperElement().className)){var h=Fl(e,t,"div",null,null);u.style.width=Math.max(0,h.right-h.left)+"px"}if(n.other){var p=o.appendChild(P("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));p.style.display="",p.style.left=n.other.left+"px",p.style.top=n.other.top+"px",p.style.height=(n.other.bottom-n.other.top)*.85+"px"}}function go(e,t){return e.top-t.top||e.left-t.left}function kc(e,t,o){var n=e.display,u=e.doc,h=document.createDocumentFragment(),p=$l(e.display),m=p.left,y=Math.max(n.sizerWidth,Ti(e)-n.sizer.offsetLeft)-p.right,C=u.direction=="ltr";function _(he,xe,$e,Pe){xe<0&&(xe=0),xe=Math.round(xe),Pe=Math.round(Pe),h.appendChild(P("div",null,"CodeMirror-selected","position: absolute; left: "+he+`px;
2321
+ `,t);u==-1&&(u=e.length);var h=e.slice(t,e.charAt(u-1)=="\r"?u-1:u),p=h.indexOf("\r");p!=-1?(o.push(h.slice(0,p)),t+=p+1):(o.push(h),t=u+1)}return o}:function(e){return e.split(/\r\n?|\n/)},xl=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch{return!1}}:function(e){var t;try{t=e.ownerDocument.selection.createRange()}catch{}return!t||t.parentElement()!=e?!1:t.compareEndPoints("StartToEnd",t)!=0},zl=function(){var e=P("div");return"oncopy"in e?!0:(e.setAttribute("oncopy","return;"),typeof e.oncopy=="function")}(),Ma=null;function Si(e){if(Ma!=null)return Ma;var t=V(e,P("span","x")),o=t.getBoundingClientRect(),n=ee(t,0,1).getBoundingClientRect();return Ma=Math.abs(o.left-n.left)>1}var dn={},Jr={};function Ll(e,t){arguments.length>2&&(t.dependencies=Array.prototype.slice.call(arguments,2)),dn[e]=t}function ni(e,t){Jr[e]=t}function lo(e){if(typeof e=="string"&&Jr.hasOwnProperty(e))e=Jr[e];else if(e&&typeof e.name=="string"&&Jr.hasOwnProperty(e.name)){var t=Jr[e.name];typeof t=="string"&&(t={name:t}),e=Vr(t,e),e.name=t.name}else{if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return lo("application/xml");if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return lo("application/json")}return typeof e=="string"?{name:e}:e||{name:"null"}}function Bo(e,t){t=lo(t);var o=dn[t.name];if(!o)return Bo(e,"text/plain");var n=o(e,t);if(Mn.hasOwnProperty(t.name)){var u=Mn[t.name];for(var h in u)!u.hasOwnProperty(h)||(n.hasOwnProperty(h)&&(n["_"+h]=n[h]),n[h]=u[h])}if(n.name=t.name,t.helperType&&(n.helperType=t.helperType),t.modeProps)for(var p in t.modeProps)n[p]=t.modeProps[p];return n}var Mn={};function kn(e,t){var o=Mn.hasOwnProperty(e)?Mn[e]:Mn[e]={};Ut(t,o)}function en(e,t){if(t===!0)return t;if(e.copyState)return e.copyState(t);var o={};for(var n in t){var u=t[n];u instanceof Array&&(u=u.concat([])),o[n]=u}return o}function ka(e,t){for(var o;e.innerMode&&(o=e.innerMode(t),!(!o||o.mode==e));)t=o.state,e=o.mode;return o||{mode:e,state:t}}function Oa(e,t,o){return e.startState?e.startState(t,o):!0}var $t=function(e,t,o){this.pos=this.start=0,this.string=e,this.tabSize=t||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=o};$t.prototype.eol=function(){return this.pos>=this.string.length},$t.prototype.sol=function(){return this.pos==this.lineStart},$t.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},$t.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},$t.prototype.eat=function(e){var t=this.string.charAt(this.pos),o;if(typeof e=="string"?o=t==e:o=t&&(e.test?e.test(t):e(t)),o)return++this.pos,t},$t.prototype.eatWhile=function(e){for(var t=this.pos;this.eat(e););return this.pos>t},$t.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},$t.prototype.skipToEnd=function(){this.pos=this.string.length},$t.prototype.skipTo=function(e){var t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0},$t.prototype.backUp=function(e){this.pos-=e},$t.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=At(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?At(this.string,this.lineStart,this.tabSize):0)},$t.prototype.indentation=function(){return At(this.string,null,this.tabSize)-(this.lineStart?At(this.string,this.lineStart,this.tabSize):0)},$t.prototype.match=function(e,t,o){if(typeof e=="string"){var n=function(p){return o?p.toLowerCase():p},u=this.string.substr(this.pos,e.length);if(n(u)==n(e))return t!==!1&&(this.pos+=e.length),!0}else{var h=this.string.slice(this.pos).match(e);return h&&h.index>0?null:(h&&t!==!1&&(this.pos+=h[0].length),h)}},$t.prototype.current=function(){return this.string.slice(this.start,this.pos)},$t.prototype.hideFirstChars=function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}},$t.prototype.lookAhead=function(e){var t=this.lineOracle;return t&&t.lookAhead(e)},$t.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};function Oe(e,t){if(t-=e.first,t<0||t>=e.size)throw new Error("There is no line "+(t+e.first)+" in the document.");for(var o=e;!o.lines;)for(var n=0;;++n){var u=o.children[n],h=u.chunkSize();if(t<h){o=u;break}t-=h}return o.lines[t]}function tn(e,t,o){var n=[],u=t.line;return e.iter(t.line,o.line+1,function(h){var p=h.text;u==o.line&&(p=p.slice(0,o.ch)),u==t.line&&(p=p.slice(t.ch)),n.push(p),++u}),n}function Ta(e,t,o){var n=[];return e.iter(t,o,function(u){n.push(u.text)}),n}function Gr(e,t){var o=t-e.height;if(o)for(var n=e;n;n=n.parent)n.height+=o}function bt(e){if(e.parent==null)return null;for(var t=e.parent,o=_e(t.lines,e),n=t.parent;n;t=n,n=n.parent)for(var u=0;n.children[u]!=t;++u)o+=n.children[u].chunkSize();return o+t.first}function On(e,t){var o=e.first;e:do{for(var n=0;n<e.children.length;++n){var u=e.children[n],h=u.height;if(t<h){e=u;continue e}t-=h,o+=u.chunkSize()}return o}while(!e.lines);for(var p=0;p<e.lines.length;++p){var m=e.lines[p],y=m.height;if(t<y)break;t-=y}return o+p}function Mi(e,t){return t>=e.first&&t<e.first+e.size}function Fo(e,t){return String(e.lineNumberFormatter(t+e.firstLineNumber))}function oe(e,t,o){if(o===void 0&&(o=null),!(this instanceof oe))return new oe(e,t,o);this.line=e,this.ch=t,this.sticky=o}function w(e,t){return e.line-t.line||e.ch-t.ch}function O(e,t){return e.sticky==t.sticky&&w(e,t)==0}function Q(e){return oe(e.line,e.ch)}function le(e,t){return w(e,t)<0?t:e}function Ve(e,t){return w(e,t)<0?e:t}function dt(e,t){return Math.max(e.first,Math.min(t,e.first+e.size-1))}function Ce(e,t){if(t.line<e.first)return oe(e.first,0);var o=e.first+e.size-1;return t.line>o?oe(o,Oe(e,o).text.length):vr(t,Oe(e,t.line).text.length)}function vr(e,t){var o=e.ch;return o==null||o>t?oe(e.line,t):o<0?oe(e.line,0):e}function qr(e,t){for(var o=[],n=0;n<t.length;n++)o[n]=Ce(e,t[n]);return o}var ii=function(e,t){this.state=e,this.lookAhead=t},Tn=function(e,t,o,n){this.state=t,this.doc=e,this.line=o,this.maxLookAhead=n||0,this.baseTokens=null,this.baseTokenPos=1};Tn.prototype.lookAhead=function(e){var t=this.doc.getLine(this.line+e);return t!=null&&e>this.maxLookAhead&&(this.maxLookAhead=e),t},Tn.prototype.baseToken=function(e){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=e;)this.baseTokenPos+=2;var t=this.baseTokens[this.baseTokenPos+1];return{type:t&&t.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-e}},Tn.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Tn.fromSaved=function(e,t,o){return t instanceof ii?new Tn(e,en(e.mode,t.state),o,t.lookAhead):new Tn(e,en(e.mode,t),o)},Tn.prototype.save=function(e){var t=e!==!1?en(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new ii(t,this.maxLookAhead):t};function tc(e,t,o,n){var u=[e.state.modeGen],h={};Ds(e,t.text,e.doc.mode,o,function(C,_){return u.push(C,_)},h,n);for(var p=o.state,m=function(C){o.baseTokens=u;var _=e.state.overlays[C],M=1,N=0;o.state=!0,Ds(e,t.text,_.mode,o,function(D,q){for(var te=M;N<D;){var ce=u[M];ce>D&&u.splice(M,1,D,u[M+1],ce),M+=2,N=Math.min(D,ce)}if(!!q)if(_.opaque)u.splice(te,M-te,D,"overlay "+q),M=te+2;else for(;te<M;te+=2){var fe=u[te+1];u[te+1]=(fe?fe+" ":"")+"overlay "+q}},h),o.state=p,o.baseTokens=null,o.baseTokenPos=1},y=0;y<e.state.overlays.length;++y)m(y);return{styles:u,classes:h.bgClass||h.textClass?h:null}}function $s(e,t,o){if(!t.styles||t.styles[0]!=e.state.modeGen){var n=Wo(e,bt(t)),u=t.text.length>e.options.maxHighlightLength&&en(e.doc.mode,n.state),h=tc(e,t,n);u&&(n.state=u),t.stateAfter=n.save(!u),t.styles=h.styles,h.classes?t.styleClasses=h.classes:t.styleClasses&&(t.styleClasses=null),o===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return t.styles}function Wo(e,t,o){var n=e.doc,u=e.display;if(!n.mode.startState)return new Tn(n,!0,t);var h=nc(e,t,o),p=h>n.first&&Oe(n,h-1).stateAfter,m=p?Tn.fromSaved(n,p,h):new Tn(n,Oa(n.mode),h);return n.iter(h,t,function(y){Ea(e,y.text,m);var C=m.line;y.stateAfter=C==t-1||C%5==0||C>=u.viewFrom&&C<u.viewTo?m.save():null,m.nextLine()}),o&&(n.modeFrontier=m.line),m}function Ea(e,t,o,n){var u=e.doc.mode,h=new $t(t,e.options.tabSize,o);for(h.start=h.pos=n||0,t==""&&rc(u,o.state);!h.eol();)_l(u,h,o.state),h.start=h.pos}function rc(e,t){if(e.blankLine)return e.blankLine(t);if(!!e.innerMode){var o=ka(e,t);if(o.mode.blankLine)return o.mode.blankLine(o.state)}}function _l(e,t,o,n){for(var u=0;u<10;u++){n&&(n[0]=ka(e,o).mode);var h=e.token(t,o);if(t.pos>t.start)return h}throw new Error("Mode "+e.name+" failed to advance stream.")}var Sl=function(e,t,o){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=t||null,this.state=o};function Ml(e,t,o,n){var u=e.doc,h=u.mode,p;t=Ce(u,t);var m=Oe(u,t.line),y=Wo(e,t.line,o),C=new $t(m.text,e.options.tabSize,y),_;for(n&&(_=[]);(n||C.pos<t.ch)&&!C.eol();)C.start=C.pos,p=_l(h,C,y.state),n&&_.push(new Sl(C,p,en(u.mode,y.state)));return n?_:new Sl(C,p,y.state)}function so(e,t){if(e)for(;;){var o=e.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!o)break;e=e.slice(0,o.index)+e.slice(o.index+o[0].length);var n=o[1]?"bgClass":"textClass";t[n]==null?t[n]=o[2]:new RegExp("(?:^|\\s)"+o[2]+"(?:$|\\s)").test(t[n])||(t[n]+=" "+o[2])}return e}function Ds(e,t,o,n,u,h,p){var m=o.flattenSpans;m==null&&(m=e.options.flattenSpans);var y=0,C=null,_=new $t(t,e.options.tabSize,n),M,N=e.options.addModeClass&&[null];for(t==""&&so(rc(o,n.state),h);!_.eol();){if(_.pos>e.options.maxHighlightLength?(m=!1,p&&Ea(e,t,n,_.pos),_.pos=t.length,M=null):M=so(_l(o,_,n.state,N),h),N){var D=N[0].name;D&&(M="m-"+(M?D+" "+M:D))}if(!m||C!=M){for(;y<_.start;)y=Math.min(_.start,y+5e3),u(y,C);C=M}_.start=_.pos}for(;y<_.pos;){var q=Math.min(_.pos,y+5e3);u(q,C),y=q}}function nc(e,t,o){for(var n,u,h=e.doc,p=o?-1:t-(e.doc.mode.innerMode?1e3:100),m=t;m>p;--m){if(m<=h.first)return h.first;var y=Oe(h,m-1),C=y.stateAfter;if(C&&(!o||m+(C instanceof ii?C.lookAhead:0)<=h.modeFrontier))return m;var _=At(y.text,null,e.options.tabSize);(u==null||n>_)&&(u=m-1,n=_)}return u}function a1(e,t){if(e.modeFrontier=Math.min(e.modeFrontier,t),!(e.highlightFrontier<t-10)){for(var o=e.first,n=t-1;n>o;n--){var u=Oe(e,n).stateAfter;if(u&&(!(u instanceof ii)||n+u.lookAhead<t)){o=n+1;break}}e.highlightFrontier=Math.min(e.highlightFrontier,o)}}var Rs=!1,Bn=!1;function ic(){Rs=!0}function oc(){Bn=!0}function kl(e,t,o){this.marker=e,this.from=t,this.to=o}function Pa(e,t){if(e)for(var o=0;o<e.length;++o){var n=e[o];if(n.marker==t)return n}}function l1(e,t){for(var o,n=0;n<e.length;++n)e[n]!=t&&(o||(o=[])).push(e[n]);return o}function ac(e,t,o){var n=o&&window.WeakSet&&(o.markedSpans||(o.markedSpans=new WeakSet));n&&n.has(e.markedSpans)?e.markedSpans.push(t):(e.markedSpans=e.markedSpans?e.markedSpans.concat([t]):[t],n&&n.add(e.markedSpans)),t.marker.attachLine(e)}function s1(e,t,o){var n;if(e)for(var u=0;u<e.length;++u){var h=e[u],p=h.marker,m=h.from==null||(p.inclusiveLeft?h.from<=t:h.from<t);if(m||h.from==t&&p.type=="bookmark"&&(!o||!h.marker.insertLeft)){var y=h.to==null||(p.inclusiveRight?h.to>=t:h.to>t);(n||(n=[])).push(new kl(p,h.from,y?null:h.to))}}return n}function u1(e,t,o){var n;if(e)for(var u=0;u<e.length;++u){var h=e[u],p=h.marker,m=h.to==null||(p.inclusiveRight?h.to>=t:h.to>t);if(m||h.from==t&&p.type=="bookmark"&&(!o||h.marker.insertLeft)){var y=h.from==null||(p.inclusiveLeft?h.from<=t:h.from<t);(n||(n=[])).push(new kl(p,y?null:h.from-t,h.to==null?null:h.to-t))}}return n}function Ns(e,t){if(t.full)return null;var o=Mi(e,t.from.line)&&Oe(e,t.from.line).markedSpans,n=Mi(e,t.to.line)&&Oe(e,t.to.line).markedSpans;if(!o&&!n)return null;var u=t.from.ch,h=t.to.ch,p=w(t.from,t.to)==0,m=s1(o,u,p),y=u1(n,h,p),C=t.text.length==1,_=Ke(t.text).length+(C?u:0);if(m)for(var M=0;M<m.length;++M){var N=m[M];if(N.to==null){var D=Pa(y,N.marker);D?C&&(N.to=D.to==null?null:D.to+_):N.to=u}}if(y)for(var q=0;q<y.length;++q){var te=y[q];if(te.to!=null&&(te.to+=_),te.from==null){var ce=Pa(m,te.marker);ce||(te.from=_,C&&(m||(m=[])).push(te))}else te.from+=_,C&&(m||(m=[])).push(te)}m&&(m=lc(m)),y&&y!=m&&(y=lc(y));var fe=[m];if(!C){var we=t.text.length-2,he;if(we>0&&m)for(var xe=0;xe<m.length;++xe)m[xe].to==null&&(he||(he=[])).push(new kl(m[xe].marker,null,null));for(var $e=0;$e<we;++$e)fe.push(he);fe.push(y)}return fe}function lc(e){for(var t=0;t<e.length;++t){var o=e[t];o.from!=null&&o.from==o.to&&o.marker.clearWhenEmpty!==!1&&e.splice(t--,1)}return e.length?e:null}function Hs(e,t,o){var n=null;if(e.iter(t.line,o.line+1,function(D){if(D.markedSpans)for(var q=0;q<D.markedSpans.length;++q){var te=D.markedSpans[q].marker;te.readOnly&&(!n||_e(n,te)==-1)&&(n||(n=[])).push(te)}}),!n)return null;for(var u=[{from:t,to:o}],h=0;h<n.length;++h)for(var p=n[h],m=p.find(0),y=0;y<u.length;++y){var C=u[y];if(!(w(C.to,m.from)<0||w(C.from,m.to)>0)){var _=[y,1],M=w(C.from,m.from),N=w(C.to,m.to);(M<0||!p.inclusiveLeft&&!M)&&_.push({from:C.from,to:m.from}),(N>0||!p.inclusiveRight&&!N)&&_.push({from:m.to,to:C.to}),u.splice.apply(u,_),y+=_.length-3}}return u}function sc(e){var t=e.markedSpans;if(!!t){for(var o=0;o<t.length;++o)t[o].marker.detachLine(e);e.markedSpans=null}}function uc(e,t){if(!!t){for(var o=0;o<t.length;++o)t[o].marker.attachLine(e);e.markedSpans=t}}function Ol(e){return e.inclusiveLeft?-1:0}function Tl(e){return e.inclusiveRight?1:0}function Bs(e,t){var o=e.lines.length-t.lines.length;if(o!=0)return o;var n=e.find(),u=t.find(),h=w(n.from,u.from)||Ol(e)-Ol(t);if(h)return-h;var p=w(n.to,u.to)||Tl(e)-Tl(t);return p||t.id-e.id}function Dt(e,t){var o=Bn&&e.markedSpans,n;if(o)for(var u=void 0,h=0;h<o.length;++h)u=o[h],u.marker.collapsed&&(t?u.from:u.to)==null&&(!n||Bs(n,u.marker)<0)&&(n=u.marker);return n}function Tt(e){return Dt(e,!0)}function El(e){return Dt(e,!1)}function c1(e,t){var o=Bn&&e.markedSpans,n;if(o)for(var u=0;u<o.length;++u){var h=o[u];h.marker.collapsed&&(h.from==null||h.from<t)&&(h.to==null||h.to>t)&&(!n||Bs(n,h.marker)<0)&&(n=h.marker)}return n}function cc(e,t,o,n,u){var h=Oe(e,t),p=Bn&&h.markedSpans;if(p)for(var m=0;m<p.length;++m){var y=p[m];if(!!y.marker.collapsed){var C=y.marker.find(0),_=w(C.from,o)||Ol(y.marker)-Ol(u),M=w(C.to,n)||Tl(y.marker)-Tl(u);if(!(_>=0&&M<=0||_<=0&&M>=0)&&(_<=0&&(y.marker.inclusiveRight&&u.inclusiveLeft?w(C.to,o)>=0:w(C.to,o)>0)||_>=0&&(y.marker.inclusiveRight&&u.inclusiveLeft?w(C.from,n)<=0:w(C.from,n)<0)))return!0}}}function Fn(e){for(var t;t=Tt(e);)e=t.find(-1,!0).line;return e}function d1(e){for(var t;t=El(e);)e=t.find(1,!0).line;return e}function f1(e){for(var t,o;t=El(e);)e=t.find(1,!0).line,(o||(o=[])).push(e);return o}function Pl(e,t){var o=Oe(e,t),n=Fn(o);return o==n?t:bt(n)}function dc(e,t){if(t>e.lastLine())return t;var o=Oe(e,t),n;if(!Ht(e,o))return t;for(;n=El(o);)o=n.find(1,!0).line;return bt(o)+1}function Ht(e,t){var o=Bn&&t.markedSpans;if(o){for(var n=void 0,u=0;u<o.length;++u)if(n=o[u],!!n.marker.collapsed){if(n.from==null)return!0;if(!n.marker.widgetNode&&n.from==0&&n.marker.inclusiveLeft&&Ia(e,t,n))return!0}}}function Ia(e,t,o){if(o.to==null){var n=o.marker.find(1,!0);return Ia(e,n.line,Pa(n.line.markedSpans,o.marker))}if(o.marker.inclusiveRight&&o.to==t.text.length)return!0;for(var u=void 0,h=0;h<t.markedSpans.length;++h)if(u=t.markedSpans[h],u.marker.collapsed&&!u.marker.widgetNode&&u.from==o.to&&(u.to==null||u.to!=o.from)&&(u.marker.inclusiveLeft||o.marker.inclusiveRight)&&Ia(e,t,u))return!0}function Nr(e){e=Fn(e);for(var t=0,o=e.parent,n=0;n<o.lines.length;++n){var u=o.lines[n];if(u==e)break;t+=u.height}for(var h=o.parent;h;o=h,h=o.parent)for(var p=0;p<h.children.length;++p){var m=h.children[p];if(m==o)break;t+=m.height}return t}function Aa(e){if(e.height==0)return 0;for(var t=e.text.length,o,n=e;o=Tt(n);){var u=o.find(0,!0);n=u.from.line,t+=u.from.ch-u.to.ch}for(n=e;o=El(n);){var h=o.find(0,!0);t-=n.text.length-h.from.ch,n=h.to.line,t+=n.text.length-h.to.ch}return t}function $a(e){var t=e.display,o=e.doc;t.maxLine=Oe(o,o.first),t.maxLineLength=Aa(t.maxLine),t.maxLineChanged=!0,o.iter(function(n){var u=Aa(n);u>t.maxLineLength&&(t.maxLineLength=u,t.maxLine=n)})}var br=function(e,t,o){this.text=e,uc(this,t),this.height=o?o(this):1};br.prototype.lineNo=function(){return bt(this)},Sn(br);function fc(e,t,o,n){e.text=t,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),e.order!=null&&(e.order=null),sc(e),uc(e,o);var u=n?n(e):1;u!=e.height&&Gr(e,u)}function hc(e){e.parent=null,sc(e)}var pc={},gc={};function Fs(e,t){if(!e||/^\s*$/.test(e))return null;var o=t.addModeClass?gc:pc;return o[e]||(o[e]=e.replace(/\S+/g,"cm-$&"))}function Ws(e,t){var o=S("span",null,null,A?"padding-right: .1px":null),n={pre:S("pre",[o],"CodeMirror-line"),content:o,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:e.getOption("lineWrapping")};t.measure={};for(var u=0;u<=(t.rest?t.rest.length:0);u++){var h=u?t.rest[u-1]:t.line,p=void 0;n.pos=0,n.addToken=h1,Hn(e.display.measure)&&(p=Sr(h,e.doc.direction))&&(n.addToken=p1(n.addToken,p)),n.map=[];var m=t!=e.display.externalMeasured&&bt(h);ki(h,n,$s(e,h,m)),h.styleClasses&&(h.styleClasses.bgClass&&(n.bgClass=Kt(h.styleClasses.bgClass,n.bgClass||"")),h.styleClasses.textClass&&(n.textClass=Kt(h.styleClasses.textClass,n.textClass||""))),n.map.length==0&&n.map.push(0,0,n.content.appendChild(wl(e.display.measure))),u==0?(t.measure.map=n.map,t.measure.cache={}):((t.measure.maps||(t.measure.maps=[])).push(n.map),(t.measure.caches||(t.measure.caches=[])).push({}))}if(A){var y=n.content.lastChild;(/\bcm-tab\b/.test(y.className)||y.querySelector&&y.querySelector(".cm-tab"))&&(n.content.className="cm-tab-wrap-hack")}return Ze(e,"renderLine",e,t.line,n.pre),n.pre.className&&(n.textClass=Kt(n.pre.className,n.textClass||"")),n}function rn(e){var t=P("span","\u2022","cm-invalidchar");return t.title="\\u"+e.charCodeAt(0).toString(16),t.setAttribute("aria-label",t.title),t}function h1(e,t,o,n,u,h,p){if(!!t){var m=e.splitSpaces?fn(t,e.trailingSpace):t,y=e.cm.state.specialChars,C=!1,_;if(!y.test(t))e.col+=t.length,_=document.createTextNode(m),e.map.push(e.pos,e.pos+t.length,_),T&&k<9&&(C=!0),e.pos+=t.length;else{_=document.createDocumentFragment();for(var M=0;;){y.lastIndex=M;var N=y.exec(t),D=N?N.index-M:t.length-M;if(D){var q=document.createTextNode(m.slice(M,M+D));T&&k<9?_.appendChild(P("span",[q])):_.appendChild(q),e.map.push(e.pos,e.pos+D,q),e.col+=D,e.pos+=D}if(!N)break;M+=D+1;var te=void 0;if(N[0]==" "){var ce=e.cm.options.tabSize,fe=ce-e.col%ce;te=_.appendChild(P("span",Yt(fe),"cm-tab")),te.setAttribute("role","presentation"),te.setAttribute("cm-text"," "),e.col+=fe}else N[0]=="\r"||N[0]==`
2322
+ `?(te=_.appendChild(P("span",N[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),te.setAttribute("cm-text",N[0]),e.col+=1):(te=e.cm.options.specialCharPlaceholder(N[0]),te.setAttribute("cm-text",N[0]),T&&k<9?_.appendChild(P("span",[te])):_.appendChild(te),e.col+=1);e.map.push(e.pos,e.pos+1,te),e.pos++}}if(e.trailingSpace=m.charCodeAt(t.length-1)==32,o||n||u||C||h||p){var we=o||"";n&&(we+=n),u&&(we+=u);var he=P("span",[_],we,h);if(p)for(var xe in p)p.hasOwnProperty(xe)&&xe!="style"&&xe!="class"&&he.setAttribute(xe,p[xe]);return e.content.appendChild(he)}e.content.appendChild(_)}}function fn(e,t){if(e.length>1&&!/ /.test(e))return e;for(var o=t,n="",u=0;u<e.length;u++){var h=e.charAt(u);h==" "&&o&&(u==e.length-1||e.charCodeAt(u+1)==32)&&(h="\xA0"),n+=h,o=h==" "}return n}function p1(e,t){return function(o,n,u,h,p,m,y){u=u?u+" cm-force-border":"cm-force-border";for(var C=o.pos,_=C+n.length;;){for(var M=void 0,N=0;N<t.length&&(M=t[N],!(M.to>C&&M.from<=C));N++);if(M.to>=_)return e(o,n,u,h,p,m,y);e(o,n.slice(0,M.to-C),u,h,null,m,y),h=null,n=n.slice(M.to-C),C=M.to}}}function Us(e,t,o,n){var u=!n&&o.widgetNode;u&&e.map.push(e.pos,e.pos+t,u),!n&&e.cm.display.input.needsContentAttribute&&(u||(u=e.content.appendChild(document.createElement("span"))),u.setAttribute("cm-marker",o.id)),u&&(e.cm.display.input.setUneditable(u),e.content.appendChild(u)),e.pos+=t,e.trailingSpace=!1}function ki(e,t,o){var n=e.markedSpans,u=e.text,h=0;if(!n){for(var p=1;p<o.length;p+=2)t.addToken(t,u.slice(h,h=o[p]),Fs(o[p+1],t.cm.options));return}for(var m=u.length,y=0,C=1,_="",M,N,D=0,q,te,ce,fe,we;;){if(D==y){q=te=ce=N="",we=null,fe=null,D=1/0;for(var he=[],xe=void 0,$e=0;$e<n.length;++$e){var Pe=n[$e],ot=Pe.marker;if(ot.type=="bookmark"&&Pe.from==y&&ot.widgetNode)he.push(ot);else if(Pe.from<=y&&(Pe.to==null||Pe.to>y||ot.collapsed&&Pe.to==y&&Pe.from==y)){if(Pe.to!=null&&Pe.to!=y&&D>Pe.to&&(D=Pe.to,te=""),ot.className&&(q+=" "+ot.className),ot.css&&(N=(N?N+";":"")+ot.css),ot.startStyle&&Pe.from==y&&(ce+=" "+ot.startStyle),ot.endStyle&&Pe.to==D&&(xe||(xe=[])).push(ot.endStyle,Pe.to),ot.title&&((we||(we={})).title=ot.title),ot.attributes)for(var xt in ot.attributes)(we||(we={}))[xt]=ot.attributes[xt];ot.collapsed&&(!fe||Bs(fe.marker,ot)<0)&&(fe=Pe)}else Pe.from>y&&D>Pe.from&&(D=Pe.from)}if(xe)for(var Xt=0;Xt<xe.length;Xt+=2)xe[Xt+1]==D&&(te+=" "+xe[Xt]);if(!fe||fe.from==y)for(var kt=0;kt<he.length;++kt)Us(t,0,he[kt]);if(fe&&(fe.from||0)==y){if(Us(t,(fe.to==null?m+1:fe.to)-y,fe.marker,fe.from==null),fe.to==null)return;fe.to==y&&(fe=!1)}}if(y>=m)break;for(var Tr=Math.min(m,D);;){if(_){var Er=y+_.length;if(!fe){var Vt=Er>Tr?_.slice(0,Tr-y):_;t.addToken(t,Vt,M?M+q:q,ce,y+Vt.length==D?te:"",N,we)}if(Er>=Tr){_=_.slice(Tr-y),y=Tr;break}y=Er,ce=""}_=u.slice(h,h=o[C++]),M=Fs(o[C++],t.cm.options)}}}function Da(e,t,o){this.line=t,this.rest=f1(t),this.size=this.rest?bt(Ke(this.rest))-o+1:1,this.node=this.text=null,this.hidden=Ht(e,t)}function Uo(e,t,o){for(var n=[],u,h=t;h<o;h=u){var p=new Da(e.doc,Oe(e.doc,h),h);u=h+p.size,n.push(p)}return n}var _t=null;function Oi(e){_t?_t.ops.push(e):e.ownsGroup=_t={ops:[e],delayedCallbacks:[]}}function Zs(e){var t=e.delayedCallbacks,o=0;do{for(;o<t.length;o++)t[o].call(null);for(var n=0;n<e.ops.length;n++){var u=e.ops[n];if(u.cursorActivityHandlers)for(;u.cursorActivityCalled<u.cursorActivityHandlers.length;)u.cursorActivityHandlers[u.cursorActivityCalled++].call(null,u.cm)}}while(o<t.length)}function g1(e,t){var o=e.ownsGroup;if(!!o)try{Zs(o)}finally{_t=null,t(o)}}var uo=null;function rr(e,t){var o=Li(e,t);if(!!o.length){var n=Array.prototype.slice.call(arguments,2),u;_t?u=_t.delayedCallbacks:uo?u=uo:(u=uo=[],setTimeout(v1,0));for(var h=function(m){u.push(function(){return o[m].apply(null,n)})},p=0;p<o.length;++p)h(p)}}function v1(){var e=uo;uo=null;for(var t=0;t<e.length;++t)e[t]()}function vc(e,t,o,n){for(var u=0;u<t.changes.length;u++){var h=t.changes[u];h=="text"?b1(e,t):h=="gutter"?Vs(e,t,o,n):h=="class"?Al(e,t):h=="widget"&&Gs(e,t,n)}t.changes=null}function Zo(e){return e.node==e.text&&(e.node=P("div",null,null,"position: relative"),e.text.parentNode&&e.text.parentNode.replaceChild(e.node,e.text),e.node.appendChild(e.text),T&&k<8&&(e.node.style.zIndex=2)),e.node}function Il(e,t){var o=t.bgClass?t.bgClass+" "+(t.line.bgClass||""):t.line.bgClass;if(o&&(o+=" CodeMirror-linebackground"),t.background)o?t.background.className=o:(t.background.parentNode.removeChild(t.background),t.background=null);else if(o){var n=Zo(t);t.background=n.insertBefore(P("div",null,o),n.firstChild),e.display.input.setUneditable(t.background)}}function co(e,t){var o=e.display.externalMeasured;return o&&o.line==t.line?(e.display.externalMeasured=null,t.measure=o.measure,o.built):Ws(e,t)}function b1(e,t){var o=t.text.className,n=co(e,t);t.text==t.node&&(t.node=n.pre),t.text.parentNode.replaceChild(n.pre,t.text),t.text=n.pre,n.bgClass!=t.bgClass||n.textClass!=t.textClass?(t.bgClass=n.bgClass,t.textClass=n.textClass,Al(e,t)):o&&(t.text.className=o)}function Al(e,t){Il(e,t),t.line.wrapClass?Zo(t).className=t.line.wrapClass:t.node!=t.text&&(t.node.className="");var o=t.textClass?t.textClass+" "+(t.line.textClass||""):t.line.textClass;t.text.className=o||""}function Vs(e,t,o,n){if(t.gutter&&(t.node.removeChild(t.gutter),t.gutter=null),t.gutterBackground&&(t.node.removeChild(t.gutterBackground),t.gutterBackground=null),t.line.gutterClass){var u=Zo(t);t.gutterBackground=P("div",null,"CodeMirror-gutter-background "+t.line.gutterClass,"left: "+(e.options.fixedGutter?n.fixedPos:-n.gutterTotalWidth)+"px; width: "+n.gutterTotalWidth+"px"),e.display.input.setUneditable(t.gutterBackground),u.insertBefore(t.gutterBackground,t.text)}var h=t.line.gutterMarkers;if(e.options.lineNumbers||h){var p=Zo(t),m=t.gutter=P("div",null,"CodeMirror-gutter-wrapper","left: "+(e.options.fixedGutter?n.fixedPos:-n.gutterTotalWidth)+"px");if(m.setAttribute("aria-hidden","true"),e.display.input.setUneditable(m),p.insertBefore(m,t.text),t.line.gutterClass&&(m.className+=" "+t.line.gutterClass),e.options.lineNumbers&&(!h||!h["CodeMirror-linenumbers"])&&(t.lineNumber=m.appendChild(P("div",Fo(e.options,o),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+n.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+e.display.lineNumInnerWidth+"px"))),h)for(var y=0;y<e.display.gutterSpecs.length;++y){var C=e.display.gutterSpecs[y].className,_=h.hasOwnProperty(C)&&h[C];_&&m.appendChild(P("div",[_],"CodeMirror-gutter-elt","left: "+n.gutterLeft[C]+"px; width: "+n.gutterWidth[C]+"px"))}}}function Gs(e,t,o){t.alignable&&(t.alignable=null);for(var n=be("CodeMirror-linewidget"),u=t.node.firstChild,h=void 0;u;u=h)h=u.nextSibling,n.test(u.className)&&t.node.removeChild(u);js(e,t,o)}function qs(e,t,o,n){var u=co(e,t);return t.text=t.node=u.pre,u.bgClass&&(t.bgClass=u.bgClass),u.textClass&&(t.textClass=u.textClass),Al(e,t),Vs(e,t,o,n),js(e,t,n),t.node}function js(e,t,o){if(bc(e,t.line,t,o,!0),t.rest)for(var n=0;n<t.rest.length;n++)bc(e,t.rest[n],t,o,!1)}function bc(e,t,o,n,u){if(!!t.widgets)for(var h=Zo(o),p=0,m=t.widgets;p<m.length;++p){var y=m[p],C=P("div",[y.node],"CodeMirror-linewidget"+(y.className?" "+y.className:""));y.handleMouseEvents||C.setAttribute("cm-ignore-events","true"),Ks(y,C,o,n),e.display.input.setUneditable(C),u&&y.above?h.insertBefore(C,o.gutter||o.text):h.appendChild(C),rr(y,"redraw")}}function Ks(e,t,o,n){if(e.noHScroll){(o.alignable||(o.alignable=[])).push(t);var u=n.wrapperWidth;t.style.left=n.fixedPos+"px",e.coverGutter||(u-=n.gutterTotalWidth,t.style.paddingLeft=n.gutterTotalWidth+"px"),t.style.width=u+"px"}e.coverGutter&&(t.style.zIndex=5,t.style.position="relative",e.noHScroll||(t.style.marginLeft=-n.gutterTotalWidth+"px"))}function fo(e){if(e.height!=null)return e.height;var t=e.doc.cm;if(!t)return 0;if(!me(document.body,e.node)){var o="position: relative;";e.coverGutter&&(o+="margin-left: -"+t.display.gutters.offsetWidth+"px;"),e.noHScroll&&(o+="width: "+t.display.wrapper.clientWidth+"px;"),V(t.display.measure,P("div",[e.node],null,o))}return e.height=e.node.parentNode.offsetHeight}function oi(e,t){for(var o=_i(t);o!=e.wrapper;o=o.parentNode)if(!o||o.nodeType==1&&o.getAttribute("cm-ignore-events")=="true"||o.parentNode==e.sizer&&o!=e.mover)return!0}function Ra(e){return e.lineSpace.offsetTop}function Hr(e){return e.mover.offsetHeight-e.lineSpace.offsetHeight}function $l(e){if(e.cachedPaddingH)return e.cachedPaddingH;var t=V(e.measure,P("pre","x","CodeMirror-line-like")),o=window.getComputedStyle?window.getComputedStyle(t):t.currentStyle,n={left:parseInt(o.paddingLeft),right:parseInt(o.paddingRight)};return!isNaN(n.left)&&!isNaN(n.right)&&(e.cachedPaddingH=n),n}function jr(e){return Fe-e.display.nativeBarWidth}function Ti(e){return e.display.scroller.clientWidth-jr(e)-e.display.barWidth}function Dl(e){return e.display.scroller.clientHeight-jr(e)-e.display.barHeight}function m1(e,t,o){var n=e.options.lineWrapping,u=n&&Ti(e);if(!t.measure.heights||n&&t.measure.width!=u){var h=t.measure.heights=[];if(n){t.measure.width=u;for(var p=t.text.firstChild.getClientRects(),m=0;m<p.length-1;m++){var y=p[m],C=p[m+1];Math.abs(y.bottom-C.bottom)>2&&h.push((y.bottom+C.top)/2-o.top)}}h.push(o.bottom-o.top)}}function mc(e,t,o){if(e.line==t)return{map:e.measure.map,cache:e.measure.cache};for(var n=0;n<e.rest.length;n++)if(e.rest[n]==t)return{map:e.measure.maps[n],cache:e.measure.caches[n]};for(var u=0;u<e.rest.length;u++)if(bt(e.rest[u])>o)return{map:e.measure.maps[u],cache:e.measure.caches[u],before:!0}}function y1(e,t){t=Fn(t);var o=bt(t),n=e.display.externalMeasured=new Da(e.doc,t,o);n.lineN=o;var u=n.built=Ws(e,n);return n.text=u.pre,V(e.display.lineMeasure,u.pre),n}function yc(e,t,o,n){return Wn(e,En(e,t),o,n)}function Ys(e,t){if(t>=e.display.viewFrom&&t<e.display.viewTo)return e.display.view[Zn(e,t)];var o=e.display.externalMeasured;if(o&&t>=o.lineN&&t<o.lineN+o.size)return o}function En(e,t){var o=bt(t),n=Ys(e,o);n&&!n.text?n=null:n&&n.changes&&(vc(e,n,o,Kr(e)),e.curOp.forceUpdate=!0),n||(n=y1(e,t));var u=mc(n,t,o);return{line:t,view:n,rect:null,map:u.map,cache:u.cache,before:u.before,hasHeights:!1}}function Wn(e,t,o,n,u){t.before&&(o=-1);var h=o+(n||""),p;return t.cache.hasOwnProperty(h)?p=t.cache[h]:(t.rect||(t.rect=t.view.text.getBoundingClientRect()),t.hasHeights||(m1(e,t.view,t.rect),t.hasHeights=!0),p=Ei(e,t,o,n),p.bogus||(t.cache[h]=p)),{left:p.left,right:p.right,top:u?p.rtop:p.top,bottom:u?p.rbottom:p.bottom}}var Cc={left:0,right:0,top:0,bottom:0};function Rl(e,t,o){for(var n,u,h,p,m,y,C=0;C<e.length;C+=3)if(m=e[C],y=e[C+1],t<m?(u=0,h=1,p="left"):t<y?(u=t-m,h=u+1):(C==e.length-3||t==y&&e[C+3]>t)&&(h=y-m,u=h-1,t>=y&&(p="right")),u!=null){if(n=e[C+2],m==y&&o==(n.insertLeft?"left":"right")&&(p=o),o=="left"&&u==0)for(;C&&e[C-2]==e[C-3]&&e[C-1].insertLeft;)n=e[(C-=3)+2],p="left";if(o=="right"&&u==y-m)for(;C<e.length-3&&e[C+3]==e[C+4]&&!e[C+5].insertLeft;)n=e[(C+=3)+2],p="right";break}return{node:n,start:u,end:h,collapse:p,coverStart:m,coverEnd:y}}function wc(e,t){var o=Cc;if(t=="left")for(var n=0;n<e.length&&(o=e[n]).left==o.right;n++);else for(var u=e.length-1;u>=0&&(o=e[u]).left==o.right;u--);return o}function Ei(e,t,o,n){var u=Rl(t.map,o,n),h=u.node,p=u.start,m=u.end,y=u.collapse,C;if(h.nodeType==3){for(var _=0;_<4;_++){for(;p&&Xe(t.line.text.charAt(u.coverStart+p));)--p;for(;u.coverStart+m<u.coverEnd&&Xe(t.line.text.charAt(u.coverStart+m));)++m;if(T&&k<9&&p==0&&m==u.coverEnd-u.coverStart?C=h.parentNode.getBoundingClientRect():C=wc(ee(h,p,m).getClientRects(),n),C.left||C.right||p==0)break;m=p,p=p-1,y="right"}T&&k<11&&(C=Nl(e.display.measure,C))}else{p>0&&(y=n="right");var M;e.options.lineWrapping&&(M=h.getClientRects()).length>1?C=M[n=="right"?M.length-1:0]:C=h.getBoundingClientRect()}if(T&&k<9&&!p&&(!C||!C.left&&!C.right)){var N=h.parentNode.getClientRects()[0];N?C={left:N.left,right:N.left+Vo(e.display),top:N.top,bottom:N.bottom}:C=Cc}for(var D=C.top-t.rect.top,q=C.bottom-t.rect.top,te=(D+q)/2,ce=t.view.measure.heights,fe=0;fe<ce.length-1&&!(te<ce[fe]);fe++);var we=fe?ce[fe-1]:0,he=ce[fe],xe={left:(y=="right"?C.right:C.left)-t.rect.left,right:(y=="left"?C.left:C.right)-t.rect.left,top:we,bottom:he};return!C.left&&!C.right&&(xe.bogus=!0),e.options.singleCursorHeightPerLine||(xe.rtop=D,xe.rbottom=q),xe}function Nl(e,t){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!Si(e))return t;var o=screen.logicalXDPI/screen.deviceXDPI,n=screen.logicalYDPI/screen.deviceYDPI;return{left:t.left*o,right:t.right*o,top:t.top*n,bottom:t.bottom*n}}function xc(e){if(e.measure&&(e.measure.cache={},e.measure.heights=null,e.rest))for(var t=0;t<e.rest.length;t++)e.measure.caches[t]={}}function zc(e){e.display.externalMeasure=null,Qe(e.display.lineMeasure);for(var t=0;t<e.display.view.length;t++)xc(e.display.view[t])}function Na(e){zc(e),e.display.cachedCharWidth=e.display.cachedTextHeight=e.display.cachedPaddingH=null,e.options.lineWrapping||(e.display.maxLineChanged=!0),e.display.lineNumChars=null}function ho(){return U&&Te?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function hn(){return U&&Te?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function Hl(e){var t=0;if(e.widgets)for(var o=0;o<e.widgets.length;++o)e.widgets[o].above&&(t+=fo(e.widgets[o]));return t}function Bl(e,t,o,n,u){if(!u){var h=Hl(t);o.top+=h,o.bottom+=h}if(n=="line")return o;n||(n="local");var p=Nr(t);if(n=="local"?p+=Ra(e.display):p-=e.display.viewOffset,n=="page"||n=="window"){var m=e.display.lineSpace.getBoundingClientRect();p+=m.top+(n=="window"?0:hn());var y=m.left+(n=="window"?0:ho());o.left+=y,o.right+=y}return o.top+=p,o.bottom+=p,o}function Lc(e,t,o){if(o=="div")return t;var n=t.left,u=t.top;if(o=="page")n-=ho(),u-=hn();else if(o=="local"||!o){var h=e.display.sizer.getBoundingClientRect();n+=h.left,u+=h.top}var p=e.display.lineSpace.getBoundingClientRect();return{left:n-p.left,top:u-p.top}}function Fl(e,t,o,n,u){return n||(n=Oe(e.doc,t.line)),Bl(e,n,yc(e,n,t.ch,u),o)}function Pn(e,t,o,n,u,h){n=n||Oe(e.doc,t.line),u||(u=En(e,n));function p(q,te){var ce=Wn(e,u,q,te?"right":"left",h);return te?ce.left=ce.right:ce.right=ce.left,Bl(e,n,ce,o)}var m=Sr(n,e.doc.direction),y=t.ch,C=t.sticky;if(y>=n.text.length?(y=n.text.length,C="before"):y<=0&&(y=0,C="after"),!m)return p(C=="before"?y-1:y,C=="before");function _(q,te,ce){var fe=m[te],we=fe.level==1;return p(ce?q-1:q,we!=ce)}var M=Rt(m,y,C),N=Dr,D=_(y,M,C=="before");return N!=null&&(D.other=_(y,N,C!="before")),D}function _c(e,t){var o=0;t=Ce(e.doc,t),e.options.lineWrapping||(o=Vo(e.display)*t.ch);var n=Oe(e.doc,t.line),u=Nr(n)+Ra(e.display);return{left:o,right:o,top:u,bottom:u+n.height}}function Pi(e,t,o,n,u){var h=oe(e,t,o);return h.xRel=u,n&&(h.outside=n),h}function H(e,t,o){var n=e.doc;if(o+=e.display.viewOffset,o<0)return Pi(n.first,0,null,-1,-1);var u=On(n,o),h=n.first+n.size-1;if(u>h)return Pi(n.first+n.size-1,Oe(n,h).text.length,null,1,1);t<0&&(t=0);for(var p=Oe(n,u);;){var m=Je(e,p,u,t,o),y=c1(p,m.ch+(m.xRel>0||m.outside>0?1:0));if(!y)return m;var C=y.find(1);if(C.line==u)return C;p=Oe(n,u=C.line)}}function J(e,t,o,n){n-=Hl(t);var u=t.text.length,h=pr(function(p){return Wn(e,o,p-1).bottom<=n},u,0);return u=pr(function(p){return Wn(e,o,p).top>n},h,u),{begin:h,end:u}}function G(e,t,o,n){o||(o=En(e,t));var u=Bl(e,t,Wn(e,o,n),"line").top;return J(e,t,o,u)}function Se(e,t,o,n){return e.bottom<=o?!1:e.top>o?!0:(n?e.left:e.right)>t}function Je(e,t,o,n,u){u-=Nr(t);var h=En(e,t),p=Hl(t),m=0,y=t.text.length,C=!0,_=Sr(t,e.doc.direction);if(_){var M=(e.options.lineWrapping?nr:Ct)(e,t,o,h,_,n,u);C=M.level!=1,m=C?M.from:M.to-1,y=C?M.to:M.from-1}var N=null,D=null,q=pr(function($e){var Pe=Wn(e,h,$e);return Pe.top+=p,Pe.bottom+=p,Se(Pe,n,u,!1)?(Pe.top<=u&&Pe.left<=n&&(N=$e,D=Pe),!0):!1},m,y),te,ce,fe=!1;if(D){var we=n-D.left<D.right-n,he=we==C;q=N+(he?0:1),ce=he?"after":"before",te=we?D.left:D.right}else{!C&&(q==y||q==m)&&q++,ce=q==0?"after":q==t.text.length?"before":Wn(e,h,q-(C?1:0)).bottom+p<=u==C?"after":"before";var xe=Pn(e,oe(o,q,ce),"line",t,h);te=xe.left,fe=u<xe.top?-1:u>=xe.bottom?1:0}return q=tr(t.text,q,1),Pi(o,q,ce,fe,n-te)}function Ct(e,t,o,n,u,h,p){var m=pr(function(M){var N=u[M],D=N.level!=1;return Se(Pn(e,oe(o,D?N.to:N.from,D?"before":"after"),"line",t,n),h,p,!0)},0,u.length-1),y=u[m];if(m>0){var C=y.level!=1,_=Pn(e,oe(o,C?y.from:y.to,C?"after":"before"),"line",t,n);Se(_,h,p,!0)&&_.top>p&&(y=u[m-1])}return y}function nr(e,t,o,n,u,h,p){var m=J(e,t,n,p),y=m.begin,C=m.end;/\s/.test(t.text.charAt(C-1))&&C--;for(var _=null,M=null,N=0;N<u.length;N++){var D=u[N];if(!(D.from>=C||D.to<=y)){var q=D.level!=1,te=Wn(e,n,q?Math.min(C,D.to)-1:Math.max(y,D.from)).right,ce=te<h?h-te+1e9:te-h;(!_||M>ce)&&(_=D,M=ce)}}return _||(_=u[u.length-1]),_.from<y&&(_={from:y,to:_.to,level:_.level}),_.to>C&&(_={from:_.from,to:C,level:_.level}),_}var gt;function Ii(e){if(e.cachedTextHeight!=null)return e.cachedTextHeight;if(gt==null){gt=P("pre",null,"CodeMirror-line-like");for(var t=0;t<49;++t)gt.appendChild(document.createTextNode("x")),gt.appendChild(P("br"));gt.appendChild(document.createTextNode("x"))}V(e.measure,gt);var o=gt.offsetHeight/50;return o>3&&(e.cachedTextHeight=o),Qe(e.measure),o||1}function Vo(e){if(e.cachedCharWidth!=null)return e.cachedCharWidth;var t=P("span","xxxxxxxxxx"),o=P("pre",[t],"CodeMirror-line-like");V(e.measure,o);var n=t.getBoundingClientRect(),u=(n.right-n.left)/10;return u>2&&(e.cachedCharWidth=u),u||10}function Kr(e){for(var t=e.display,o={},n={},u=t.gutters.clientLeft,h=t.gutters.firstChild,p=0;h;h=h.nextSibling,++p){var m=e.display.gutterSpecs[p].className;o[m]=h.offsetLeft+h.clientLeft+u,n[m]=h.clientWidth}return{fixedPos:Go(t),gutterTotalWidth:t.gutters.offsetWidth,gutterLeft:o,gutterWidth:n,wrapperWidth:t.wrapper.clientWidth}}function Go(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function Sc(e){var t=Ii(e.display),o=e.options.lineWrapping,n=o&&Math.max(5,e.display.scroller.clientWidth/Vo(e.display)-3);return function(u){if(Ht(e.doc,u))return 0;var h=0;if(u.widgets)for(var p=0;p<u.widgets.length;p++)u.widgets[p].height&&(h+=u.widgets[p].height);return o?h+(Math.ceil(u.text.length/n)||1)*t:h+t}}function Ai(e){var t=e.doc,o=Sc(e);t.iter(function(n){var u=o(n);u!=n.height&&Gr(n,u)})}function Un(e,t,o,n){var u=e.display;if(!o&&_i(t).getAttribute("cm-not-content")=="true")return null;var h,p,m=u.lineSpace.getBoundingClientRect();try{h=t.clientX-m.left,p=t.clientY-m.top}catch{return null}var y=H(e,h,p),C;if(n&&y.xRel>0&&(C=Oe(e.doc,y.line).text).length==y.ch){var _=At(C,C.length,e.options.tabSize)-C.length;y=oe(y.line,Math.max(0,Math.round((h-$l(e.display).left)/Vo(e.display))-_))}return y}function Zn(e,t){if(t>=e.display.viewTo||(t-=e.display.viewFrom,t<0))return null;for(var o=e.display.view,n=0;n<o.length;n++)if(t-=o[n].size,t<0)return n}function tt(e,t,o,n){t==null&&(t=e.doc.first),o==null&&(o=e.doc.first+e.doc.size),n||(n=0);var u=e.display;if(n&&o<u.viewTo&&(u.updateLineNumbers==null||u.updateLineNumbers>t)&&(u.updateLineNumbers=t),e.curOp.viewChanged=!0,t>=u.viewTo)Bn&&Pl(e.doc,t)<u.viewTo&&ai(e);else if(o<=u.viewFrom)Bn&&dc(e.doc,o+n)>u.viewFrom?ai(e):(u.viewFrom+=n,u.viewTo+=n);else if(t<=u.viewFrom&&o>=u.viewTo)ai(e);else if(t<=u.viewFrom){var h=po(e,o,o+n,1);h?(u.view=u.view.slice(h.index),u.viewFrom=h.lineN,u.viewTo+=n):ai(e)}else if(o>=u.viewTo){var p=po(e,t,t,-1);p?(u.view=u.view.slice(0,p.index),u.viewTo=p.lineN):ai(e)}else{var m=po(e,t,t,-1),y=po(e,o,o+n,1);m&&y?(u.view=u.view.slice(0,m.index).concat(Uo(e,m.lineN,y.lineN)).concat(u.view.slice(y.index)),u.viewTo+=n):ai(e)}var C=u.externalMeasured;C&&(o<C.lineN?C.lineN+=n:t<C.lineN+C.size&&(u.externalMeasured=null))}function $i(e,t,o){e.curOp.viewChanged=!0;var n=e.display,u=e.display.externalMeasured;if(u&&t>=u.lineN&&t<u.lineN+u.size&&(n.externalMeasured=null),!(t<n.viewFrom||t>=n.viewTo)){var h=n.view[Zn(e,t)];if(h.node!=null){var p=h.changes||(h.changes=[]);_e(p,o)==-1&&p.push(o)}}}function ai(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function po(e,t,o,n){var u=Zn(e,t),h,p=e.display.view;if(!Bn||o==e.doc.first+e.doc.size)return{index:u,lineN:o};for(var m=e.display.viewFrom,y=0;y<u;y++)m+=p[y].size;if(m!=t){if(n>0){if(u==p.length-1)return null;h=m+p[u].size-t,u++}else h=m-t;t+=h,o+=h}for(;Pl(e.doc,o)!=o;){if(u==(n<0?0:p.length-1))return null;o+=n*p[u-(n<0?1:0)].size,u+=n}return{index:u,lineN:o}}function C1(e,t,o){var n=e.display,u=n.view;u.length==0||t>=n.viewTo||o<=n.viewFrom?(n.view=Uo(e,t,o),n.viewFrom=t):(n.viewFrom>t?n.view=Uo(e,t,n.viewFrom).concat(n.view):n.viewFrom<t&&(n.view=n.view.slice(Zn(e,t))),n.viewFrom=t,n.viewTo<o?n.view=n.view.concat(Uo(e,n.viewTo,o)):n.viewTo>o&&(n.view=n.view.slice(0,Zn(e,o)))),n.viewTo=o}function Mc(e){for(var t=e.display.view,o=0,n=0;n<t.length;n++){var u=t[n];!u.hidden&&(!u.node||u.changes)&&++o}return o}function Ha(e){e.display.input.showSelection(e.display.input.prepareSelection())}function Ba(e,t){t===void 0&&(t=!0);for(var o=e.doc,n={},u=n.cursors=document.createDocumentFragment(),h=n.selection=document.createDocumentFragment(),p=0;p<o.sel.ranges.length;p++)if(!(!t&&p==o.sel.primIndex)){var m=o.sel.ranges[p];if(!(m.from().line>=e.display.viewTo||m.to().line<e.display.viewFrom)){var y=m.empty();(y||e.options.showCursorWhenSelecting)&&li(e,m.head,u),y||kc(e,m,h)}}return n}function li(e,t,o){var n=Pn(e,t,"div",null,null,!e.options.singleCursorHeightPerLine),u=o.appendChild(P("div","\xA0","CodeMirror-cursor"));if(u.style.left=n.left+"px",u.style.top=n.top+"px",u.style.height=Math.max(0,n.bottom-n.top)*e.options.cursorHeight+"px",/\bcm-fat-cursor\b/.test(e.getWrapperElement().className)){var h=Fl(e,t,"div",null,null);u.style.width=Math.max(0,h.right-h.left)+"px"}if(n.other){var p=o.appendChild(P("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));p.style.display="",p.style.left=n.other.left+"px",p.style.top=n.other.top+"px",p.style.height=(n.other.bottom-n.other.top)*.85+"px"}}function go(e,t){return e.top-t.top||e.left-t.left}function kc(e,t,o){var n=e.display,u=e.doc,h=document.createDocumentFragment(),p=$l(e.display),m=p.left,y=Math.max(n.sizerWidth,Ti(e)-n.sizer.offsetLeft)-p.right,C=u.direction=="ltr";function _(he,xe,$e,Pe){xe<0&&(xe=0),xe=Math.round(xe),Pe=Math.round(Pe),h.appendChild(P("div",null,"CodeMirror-selected","position: absolute; left: "+he+`px;
2319
2323
  top: `+xe+"px; width: "+($e==null?y-he:$e)+`px;
2320
- height: `+(Pe-xe)+"px"))}function M(he,xe,$e){var Pe=Oe(u,he),ot=Pe.text.length,xt,Xt;function kt(Gt,hr){return Fl(e,oe(he,Gt),"div",Pe,hr)}function Or(Gt,hr,ir){var St=V(e,Pe,null,Gt),Et=hr=="ltr"==(ir=="after")?"left":"right",Wt=ir=="after"?St.begin:St.end-(/\s/.test(Pe.text.charAt(St.end-1))?2:1);return kt(Wt,Et)[Et]}var Tr=_r(Pe,u.direction);return Ln(Tr,xe||0,$e==null?ot:$e,function(Gt,hr,ir,St){var Et=ir=="ltr",Wt=kt(Gt,Et?"left":"right"),Er=kt(hr-1,Et?"right":"left"),ga=xe==null&&Gt==0,Yi=$e==null&&hr==ot,zr=St==0,Kn=!Tr||St==Tr.length-1;if(Er.top-Wt.top<=3){var or=(C?ga:Yi)&&zr,Mu=(C?Yi:ga)&&Kn,fi=or?m:(Et?Wt:Er).left,Mo=Mu?y:(Et?Er:Wt).right;_(fi,Wt.top,Mo-fi,Wt.bottom)}else{var ko,Pr,va,vs;Et?(ko=C&&ga&&zr?m:Wt.left,Pr=C?y:Or(Gt,ir,"before"),va=C?m:Or(hr,ir,"after"),vs=C&&Yi&&Kn?y:Er.right):(ko=C?Or(Gt,ir,"before"):m,Pr=!C&&ga&&zr?y:Wt.right,va=!C&&Yi&&Kn?m:Er.left,vs=C?Or(hr,ir,"after"):y),_(ko,Wt.top,Pr-ko,Wt.bottom),Wt.bottom<Er.top&&_(m,Wt.bottom,null,Er.top),_(va,Er.top,vs-va,Er.bottom)}(!xt||go(Wt,xt)<0)&&(xt=Wt),go(Er,xt)<0&&(xt=Er),(!Xt||go(Wt,Xt)<0)&&(Xt=Wt),go(Er,Xt)<0&&(Xt=Er)}),{start:xt,end:Xt}}var N=t.from(),D=t.to();if(N.line==D.line)M(N.line,N.ch,D.ch);else{var q=Oe(u,N.line),te=Oe(u,D.line),ue=Fn(q)==Fn(te),fe=M(N.line,N.ch,ue?q.text.length+1:null).end,we=M(D.line,ue?0:null,D.ch).start;ue&&(fe.top<we.top-2?(_(fe.right,fe.top,null,fe.bottom),_(m,we.top,we.left,we.bottom)):_(fe.right,fe.top,we.left-fe.right,fe.bottom)),fe.bottom<we.top&&_(m,fe.bottom,null,we.top)}o.appendChild(h)}function qo(e){if(!!e.state.focused){var t=e.display;clearInterval(t.blinker);var o=!0;t.cursorDiv.style.visibility="",e.options.cursorBlinkRate>0?t.blinker=setInterval(function(){e.hasFocus()||vo(e),t.cursorDiv.style.visibility=(o=!o)?"":"hidden"},e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(t.cursorDiv.style.visibility="hidden")}}function Xs(e){e.hasFocus()||(e.display.input.focus(),e.state.focused||jo(e))}function Wl(e){e.state.delayingBlurEvent=!0,setTimeout(function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,e.state.focused&&vo(e))},100)}function jo(e,t){e.state.delayingBlurEvent&&!e.state.draggingText&&(e.state.delayingBlurEvent=!1),e.options.readOnly!="nocursor"&&(e.state.focused||(Ze(e,"focus",e,t),e.state.focused=!0,Lt(e.display.wrapper,"CodeMirror-focused"),!e.curOp&&e.display.selForContextMenu!=e.doc.sel&&(e.display.input.reset(),A&&setTimeout(function(){return e.display.input.reset(!0)},20)),e.display.input.receivedFocus()),qo(e))}function vo(e,t){e.state.delayingBlurEvent||(e.state.focused&&(Ze(e,"blur",e,t),e.state.focused=!1,ye(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout(function(){e.state.focused||(e.display.shift=!1)},150))}function Di(e){for(var t=e.display,o=t.lineDiv.offsetTop,n=0;n<t.view.length;n++){var u=t.view[n],h=e.options.lineWrapping,p=void 0,m=0;if(!u.hidden){if(T&&k<8){var y=u.node.offsetTop+u.node.offsetHeight;p=y-o,o=y}else{var C=u.node.getBoundingClientRect();p=C.bottom-C.top,!h&&u.text.firstChild&&(m=u.text.firstChild.getBoundingClientRect().right-C.left-1)}var _=u.line.height-p;if((_>.005||_<-.005)&&(Vr(u.line,p),Ri(u.line),u.rest))for(var M=0;M<u.rest.length;M++)Ri(u.rest[M]);if(m>e.display.sizerWidth){var N=Math.ceil(m/Go(e.display));N>e.display.maxLineLength&&(e.display.maxLineLength=N,e.display.maxLine=u.line,e.display.maxLineChanged=!0)}}}}function Ri(e){if(e.widgets)for(var t=0;t<e.widgets.length;++t){var o=e.widgets[t],n=o.node.parentNode;n&&(o.height=n.offsetHeight)}}function bo(e,t,o){var n=o&&o.top!=null?Math.max(0,o.top):e.scroller.scrollTop;n=Math.floor(n-Ra(e));var u=o&&o.bottom!=null?o.bottom:n+e.wrapper.clientHeight,h=On(t,n),p=On(t,u);if(o&&o.ensure){var m=o.ensure.from.line,y=o.ensure.to.line;m<h?(h=m,p=On(t,Nr(Oe(t,m))+e.wrapper.clientHeight)):Math.min(y,t.lastLine())>=p&&(h=On(t,Nr(Oe(t,y))-e.wrapper.clientHeight),p=y)}return{from:h,to:Math.max(p,h+1)}}function w1(e,t){if(!Vt(e,"scrollCursorIntoView")){var o=e.display,n=o.sizer.getBoundingClientRect(),u=null;if(t.top+n.top<0?u=!0:t.bottom+n.top>(window.innerHeight||document.documentElement.clientHeight)&&(u=!1),u!=null&&!ge){var h=P("div","\u200B",null,`position: absolute;
2324
+ height: `+(Pe-xe)+"px"))}function M(he,xe,$e){var Pe=Oe(u,he),ot=Pe.text.length,xt,Xt;function kt(Vt,hr){return Fl(e,oe(he,Vt),"div",Pe,hr)}function Tr(Vt,hr,ir){var St=G(e,Pe,null,Vt),Et=hr=="ltr"==(ir=="after")?"left":"right",Wt=ir=="after"?St.begin:St.end-(/\s/.test(Pe.text.charAt(St.end-1))?2:1);return kt(Wt,Et)[Et]}var Er=Sr(Pe,u.direction);return Ln(Er,xe||0,$e==null?ot:$e,function(Vt,hr,ir,St){var Et=ir=="ltr",Wt=kt(Vt,Et?"left":"right"),Pr=kt(hr-1,Et?"right":"left"),ga=xe==null&&Vt==0,Yi=$e==null&&hr==ot,zr=St==0,Kn=!Er||St==Er.length-1;if(Pr.top-Wt.top<=3){var or=(C?ga:Yi)&&zr,Mu=(C?Yi:ga)&&Kn,fi=or?m:(Et?Wt:Pr).left,Mo=Mu?y:(Et?Pr:Wt).right;_(fi,Wt.top,Mo-fi,Wt.bottom)}else{var ko,Ir,va,vs;Et?(ko=C&&ga&&zr?m:Wt.left,Ir=C?y:Tr(Vt,ir,"before"),va=C?m:Tr(hr,ir,"after"),vs=C&&Yi&&Kn?y:Pr.right):(ko=C?Tr(Vt,ir,"before"):m,Ir=!C&&ga&&zr?y:Wt.right,va=!C&&Yi&&Kn?m:Pr.left,vs=C?Tr(hr,ir,"after"):y),_(ko,Wt.top,Ir-ko,Wt.bottom),Wt.bottom<Pr.top&&_(m,Wt.bottom,null,Pr.top),_(va,Pr.top,vs-va,Pr.bottom)}(!xt||go(Wt,xt)<0)&&(xt=Wt),go(Pr,xt)<0&&(xt=Pr),(!Xt||go(Wt,Xt)<0)&&(Xt=Wt),go(Pr,Xt)<0&&(Xt=Pr)}),{start:xt,end:Xt}}var N=t.from(),D=t.to();if(N.line==D.line)M(N.line,N.ch,D.ch);else{var q=Oe(u,N.line),te=Oe(u,D.line),ce=Fn(q)==Fn(te),fe=M(N.line,N.ch,ce?q.text.length+1:null).end,we=M(D.line,ce?0:null,D.ch).start;ce&&(fe.top<we.top-2?(_(fe.right,fe.top,null,fe.bottom),_(m,we.top,we.left,we.bottom)):_(fe.right,fe.top,we.left-fe.right,fe.bottom)),fe.bottom<we.top&&_(m,fe.bottom,null,we.top)}o.appendChild(h)}function qo(e){if(!!e.state.focused){var t=e.display;clearInterval(t.blinker);var o=!0;t.cursorDiv.style.visibility="",e.options.cursorBlinkRate>0?t.blinker=setInterval(function(){e.hasFocus()||vo(e),t.cursorDiv.style.visibility=(o=!o)?"":"hidden"},e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(t.cursorDiv.style.visibility="hidden")}}function Xs(e){e.hasFocus()||(e.display.input.focus(),e.state.focused||jo(e))}function Wl(e){e.state.delayingBlurEvent=!0,setTimeout(function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,e.state.focused&&vo(e))},100)}function jo(e,t){e.state.delayingBlurEvent&&!e.state.draggingText&&(e.state.delayingBlurEvent=!1),e.options.readOnly!="nocursor"&&(e.state.focused||(Ze(e,"focus",e,t),e.state.focused=!0,Lt(e.display.wrapper,"CodeMirror-focused"),!e.curOp&&e.display.selForContextMenu!=e.doc.sel&&(e.display.input.reset(),A&&setTimeout(function(){return e.display.input.reset(!0)},20)),e.display.input.receivedFocus()),qo(e))}function vo(e,t){e.state.delayingBlurEvent||(e.state.focused&&(Ze(e,"blur",e,t),e.state.focused=!1,ye(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout(function(){e.state.focused||(e.display.shift=!1)},150))}function Di(e){for(var t=e.display,o=t.lineDiv.offsetTop,n=0;n<t.view.length;n++){var u=t.view[n],h=e.options.lineWrapping,p=void 0,m=0;if(!u.hidden){if(T&&k<8){var y=u.node.offsetTop+u.node.offsetHeight;p=y-o,o=y}else{var C=u.node.getBoundingClientRect();p=C.bottom-C.top,!h&&u.text.firstChild&&(m=u.text.firstChild.getBoundingClientRect().right-C.left-1)}var _=u.line.height-p;if((_>.005||_<-.005)&&(Gr(u.line,p),Ri(u.line),u.rest))for(var M=0;M<u.rest.length;M++)Ri(u.rest[M]);if(m>e.display.sizerWidth){var N=Math.ceil(m/Vo(e.display));N>e.display.maxLineLength&&(e.display.maxLineLength=N,e.display.maxLine=u.line,e.display.maxLineChanged=!0)}}}}function Ri(e){if(e.widgets)for(var t=0;t<e.widgets.length;++t){var o=e.widgets[t],n=o.node.parentNode;n&&(o.height=n.offsetHeight)}}function bo(e,t,o){var n=o&&o.top!=null?Math.max(0,o.top):e.scroller.scrollTop;n=Math.floor(n-Ra(e));var u=o&&o.bottom!=null?o.bottom:n+e.wrapper.clientHeight,h=On(t,n),p=On(t,u);if(o&&o.ensure){var m=o.ensure.from.line,y=o.ensure.to.line;m<h?(h=m,p=On(t,Nr(Oe(t,m))+e.wrapper.clientHeight)):Math.min(y,t.lastLine())>=p&&(h=On(t,Nr(Oe(t,y))-e.wrapper.clientHeight),p=y)}return{from:h,to:Math.max(p,h+1)}}function w1(e,t){if(!Gt(e,"scrollCursorIntoView")){var o=e.display,n=o.sizer.getBoundingClientRect(),u=null;if(t.top+n.top<0?u=!0:t.bottom+n.top>(window.innerHeight||document.documentElement.clientHeight)&&(u=!1),u!=null&&!ge){var h=P("div","\u200B",null,`position: absolute;
2321
2325
  top: `+(t.top-o.viewOffset-Ra(e.display))+`px;
2322
2326
  height: `+(t.bottom-t.top+jr(e)+o.barHeight)+`px;
2323
- left: `+t.left+"px; width: "+Math.max(2,t.right-t.left)+"px;");e.display.lineSpace.appendChild(h),h.scrollIntoView(u),e.display.lineSpace.removeChild(h)}}}function x1(e,t,o,n){n==null&&(n=0);var u;!e.options.lineWrapping&&t==o&&(o=t.sticky=="before"?oe(t.line,t.ch+1,"before"):t,t=t.ch?oe(t.line,t.sticky=="before"?t.ch-1:t.ch,"after"):t);for(var h=0;h<5;h++){var p=!1,m=Pn(e,t),y=!o||o==t?m:Pn(e,o);u={left:Math.min(m.left,y.left),top:Math.min(m.top,y.top)-n,right:Math.max(m.left,y.left),bottom:Math.max(m.bottom,y.bottom)+n};var C=Ko(e,u),_=e.doc.scrollTop,M=e.doc.scrollLeft;if(C.scrollTop!=null&&(Bt(e,C.scrollTop),Math.abs(e.doc.scrollTop-_)>1&&(p=!0)),C.scrollLeft!=null&&(mo(e,C.scrollLeft),Math.abs(e.doc.scrollLeft-M)>1&&(p=!0)),!p)break}return u}function z1(e,t){var o=Ko(e,t);o.scrollTop!=null&&Bt(e,o.scrollTop),o.scrollLeft!=null&&mo(e,o.scrollLeft)}function Ko(e,t){var o=e.display,n=Ii(e.display);t.top<0&&(t.top=0);var u=e.curOp&&e.curOp.scrollTop!=null?e.curOp.scrollTop:o.scroller.scrollTop,h=Dl(e),p={};t.bottom-t.top>h&&(t.bottom=t.top+h);var m=e.doc.height+Hr(o),y=t.top<n,C=t.bottom>m-n;if(t.top<u)p.scrollTop=y?0:t.top;else if(t.bottom>u+h){var _=Math.min(t.top,(C?m:t.bottom)-h);_!=u&&(p.scrollTop=_)}var M=e.options.fixedGutter?0:o.gutters.offsetWidth,N=e.curOp&&e.curOp.scrollLeft!=null?e.curOp.scrollLeft:o.scroller.scrollLeft-M,D=Ti(e)-o.gutters.offsetWidth,q=t.right-t.left>D;return q&&(t.right=t.left+D),t.left<10?p.scrollLeft=0:t.left<N?p.scrollLeft=Math.max(0,t.left+M-(q?0:10)):t.right>D+N-3&&(p.scrollLeft=t.right+(q?0:10)-D),p}function Yo(e,t){t!=null&&(Ul(e),e.curOp.scrollTop=(e.curOp.scrollTop==null?e.doc.scrollTop:e.curOp.scrollTop)+t)}function Ni(e){Ul(e);var t=e.getCursor();e.curOp.scrollToPos={from:t,to:t,margin:e.options.cursorScrollMargin}}function Fa(e,t,o){(t!=null||o!=null)&&Ul(e),t!=null&&(e.curOp.scrollLeft=t),o!=null&&(e.curOp.scrollTop=o)}function Oc(e,t){Ul(e),e.curOp.scrollToPos=t}function Ul(e){var t=e.curOp.scrollToPos;if(t){e.curOp.scrollToPos=null;var o=_c(e,t.from),n=_c(e,t.to);Tc(e,o,n,t.margin)}}function Tc(e,t,o,n){var u=Ko(e,{left:Math.min(t.left,o.left),top:Math.min(t.top,o.top)-n,right:Math.max(t.right,o.right),bottom:Math.max(t.bottom,o.bottom)+n});Fa(e,u.scrollLeft,u.scrollTop)}function Bt(e,t){Math.abs(e.doc.scrollTop-t)<2||(c||Js(e,{top:t}),mr(e,t,!0),c&&Js(e),Vn(e,100))}function mr(e,t,o){t=Math.max(0,Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,t)),!(e.display.scroller.scrollTop==t&&!o)&&(e.doc.scrollTop=t,e.display.scrollbars.setScrollTop(t),e.display.scroller.scrollTop!=t&&(e.display.scroller.scrollTop=t))}function mo(e,t,o,n){t=Math.max(0,Math.min(t,e.display.scroller.scrollWidth-e.display.scroller.clientWidth)),!((o?t==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-t)<2)&&!n)&&(e.doc.scrollLeft=t,Ec(e),e.display.scroller.scrollLeft!=t&&(e.display.scroller.scrollLeft=t),e.display.scrollbars.setScrollLeft(t))}function Wa(e){var t=e.display,o=t.gutters.offsetWidth,n=Math.round(e.doc.height+Hr(e.display));return{clientHeight:t.scroller.clientHeight,viewHeight:t.wrapper.clientHeight,scrollWidth:t.scroller.scrollWidth,clientWidth:t.scroller.clientWidth,viewWidth:t.wrapper.clientWidth,barLeft:e.options.fixedGutter?o:0,docHeight:n,scrollHeight:n+jr(e)+t.barHeight,nativeBarWidth:t.nativeBarWidth,gutterWidth:o}}var Hi=function(e,t,o){this.cm=o;var n=this.vert=P("div",[P("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),u=this.horiz=P("div",[P("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");n.tabIndex=u.tabIndex=-1,e(n),e(u),Ne(n,"scroll",function(){n.clientHeight&&t(n.scrollTop,"vertical")}),Ne(u,"scroll",function(){u.clientWidth&&t(u.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,T&&k<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Hi.prototype.update=function(e){var t=e.scrollWidth>e.clientWidth+1,o=e.scrollHeight>e.clientHeight+1,n=e.nativeBarWidth;if(o){this.vert.style.display="block",this.vert.style.bottom=t?n+"px":"0";var u=e.viewHeight-(t?n:0);this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+u)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(t){this.horiz.style.display="block",this.horiz.style.right=o?n+"px":"0",this.horiz.style.left=e.barLeft+"px";var h=e.viewWidth-e.barLeft-(o?n:0);this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+h)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&e.clientHeight>0&&(n==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:o?n:0,bottom:t?n:0}},Hi.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Hi.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Hi.prototype.zeroWidthHack=function(){var e=de&&!ve?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new at,this.disableVert=new at},Hi.prototype.enableZeroWidthBar=function(e,t,o){e.style.pointerEvents="auto";function n(){var u=e.getBoundingClientRect(),h=o=="vert"?document.elementFromPoint(u.right-1,(u.top+u.bottom)/2):document.elementFromPoint((u.right+u.left)/2,u.bottom-1);h!=e?e.style.pointerEvents="none":t.set(1e3,n)}t.set(1e3,n)},Hi.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var Ua=function(){};Ua.prototype.update=function(){return{bottom:0,right:0}},Ua.prototype.setScrollLeft=function(){},Ua.prototype.setScrollTop=function(){},Ua.prototype.clear=function(){};function Bi(e,t){t||(t=Wa(e));var o=e.display.barWidth,n=e.display.barHeight;Xo(e,t);for(var u=0;u<4&&o!=e.display.barWidth||n!=e.display.barHeight;u++)o!=e.display.barWidth&&e.options.lineWrapping&&Di(e),Xo(e,Wa(e)),o=e.display.barWidth,n=e.display.barHeight}function Xo(e,t){var o=e.display,n=o.scrollbars.update(t);o.sizer.style.paddingRight=(o.barWidth=n.right)+"px",o.sizer.style.paddingBottom=(o.barHeight=n.bottom)+"px",o.heightForcer.style.borderBottom=n.bottom+"px solid transparent",n.right&&n.bottom?(o.scrollbarFiller.style.display="block",o.scrollbarFiller.style.height=n.bottom+"px",o.scrollbarFiller.style.width=n.right+"px"):o.scrollbarFiller.style.display="",n.bottom&&e.options.coverGutterNextToScrollbar&&e.options.fixedGutter?(o.gutterFiller.style.display="block",o.gutterFiller.style.height=n.bottom+"px",o.gutterFiller.style.width=t.gutterWidth+"px"):o.gutterFiller.style.display=""}var Zl={native:Hi,null:Ua};function yo(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&ye(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new Zl[e.options.scrollbarStyle](function(t){e.display.wrapper.insertBefore(t,e.display.scrollbarFiller),Ne(t,"mousedown",function(){e.state.focused&&setTimeout(function(){return e.display.input.focus()},0)}),t.setAttribute("cm-not-content","true")},function(t,o){o=="horizontal"?mo(e,t):Bt(e,t)},e),e.display.scrollbars.addClass&&Lt(e.display.wrapper,e.display.scrollbars.addClass)}var Za=0;function In(e){e.curOp={cm:e,viewChanged:!1,startHeight:e.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:++Za,markArrays:null},Oi(e.curOp)}function Gn(e){var t=e.curOp;t&&g1(t,function(o){for(var n=0;n<o.ops.length;n++)o.ops[n].cm.curOp=null;Qo(o)})}function Qo(e){for(var t=e.ops,o=0;o<t.length;o++)L1(t[o]);for(var n=0;n<t.length;n++)_1(t[n]);for(var u=0;u<t.length;u++)S1(t[u]);for(var h=0;h<t.length;h++)M1(t[h]);for(var p=0;p<t.length;p++)k1(t[p])}function L1(e){var t=e.cm,o=t.display;ft(t),e.updateMaxLine&&$a(t),e.mustUpdate=e.viewChanged||e.forceUpdate||e.scrollTop!=null||e.scrollToPos&&(e.scrollToPos.from.line<o.viewFrom||e.scrollToPos.to.line>=o.viewTo)||o.maxLineChanged&&t.options.lineWrapping,e.update=e.mustUpdate&&new Br(t,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function _1(e){e.updatedDisplay=e.mustUpdate&&Qs(e.cm,e.update)}function S1(e){var t=e.cm,o=t.display;e.updatedDisplay&&Di(t),e.barMeasure=Wa(t),o.maxLineChanged&&!t.options.lineWrapping&&(e.adjustWidthTo=yc(t,o.maxLine,o.maxLine.text.length).left+3,t.display.sizerWidth=e.adjustWidthTo,e.barMeasure.scrollWidth=Math.max(o.scroller.clientWidth,o.sizer.offsetLeft+e.adjustWidthTo+jr(t)+t.display.barWidth),e.maxScrollLeft=Math.max(0,o.sizer.offsetLeft+e.adjustWidthTo-Ti(t))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=o.input.prepareSelection())}function M1(e){var t=e.cm;e.adjustWidthTo!=null&&(t.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft<t.doc.scrollLeft&&mo(t,Math.min(t.display.scroller.scrollLeft,e.maxScrollLeft),!0),t.display.maxLineChanged=!1);var o=e.focus&&e.focus==rt();e.preparedSelection&&t.display.input.showSelection(e.preparedSelection,o),(e.updatedDisplay||e.startHeight!=t.doc.height)&&Bi(t,e.barMeasure),e.updatedDisplay&&tu(t,e.barMeasure),e.selectionChanged&&qo(t),t.state.focused&&e.updateInput&&t.display.input.reset(e.typing),o&&Xs(e.cm)}function k1(e){var t=e.cm,o=t.display,n=t.doc;if(e.updatedDisplay&&Fi(t,e.update),o.wheelStartX!=null&&(e.scrollTop!=null||e.scrollLeft!=null||e.scrollToPos)&&(o.wheelStartX=o.wheelStartY=null),e.scrollTop!=null&&mr(t,e.scrollTop,e.forceScroll),e.scrollLeft!=null&&mo(t,e.scrollLeft,!0,!0),e.scrollToPos){var u=x1(t,Ce(n,e.scrollToPos.from),Ce(n,e.scrollToPos.to),e.scrollToPos.margin);w1(t,u)}var h=e.maybeHiddenMarkers,p=e.maybeUnhiddenMarkers;if(h)for(var m=0;m<h.length;++m)h[m].lines.length||Ze(h[m],"hide");if(p)for(var y=0;y<p.length;++y)p[y].lines.length&&Ze(p[y],"unhide");o.wrapper.offsetHeight&&(n.scrollTop=t.display.scroller.scrollTop),e.changeObjs&&Ze(t,"changes",t,e.changeObjs),e.update&&e.update.finish()}function yr(e,t){if(e.curOp)return t();In(e);try{return t()}finally{Gn(e)}}function Ft(e,t){return function(){if(e.curOp)return t.apply(e,arguments);In(e);try{return t.apply(e,arguments)}finally{Gn(e)}}}function Cr(e){return function(){if(this.curOp)return e.apply(this,arguments);In(this);try{return e.apply(this,arguments)}finally{Gn(this)}}}function z(e){return function(){var t=this.cm;if(!t||t.curOp)return e.apply(this,arguments);In(t);try{return e.apply(this,arguments)}finally{Gn(t)}}}function Vn(e,t){e.doc.highlightFrontier<e.display.viewTo&&e.state.highlight.set(t,Xr(Gl,e))}function Gl(e){var t=e.doc;if(!(t.highlightFrontier>=e.display.viewTo)){var o=+new Date+e.options.workTime,n=Wo(e,t.highlightFrontier),u=[];t.iter(n.line,Math.min(t.first+t.size,e.display.viewTo+500),function(h){if(n.line>=e.display.viewFrom){var p=h.styles,m=h.text.length>e.options.maxHighlightLength?en(t.mode,n.state):null,y=tc(e,h,n,!0);m&&(n.state=m),h.styles=y.styles;var C=h.styleClasses,_=y.classes;_?h.styleClasses=_:C&&(h.styleClasses=null);for(var M=!p||p.length!=h.styles.length||C!=_&&(!C||!_||C.bgClass!=_.bgClass||C.textClass!=_.textClass),N=0;!M&&N<p.length;++N)M=p[N]!=h.styles[N];M&&u.push(n.line),h.stateAfter=n.save(),n.nextLine()}else h.text.length<=e.options.maxHighlightLength&&Ea(e,h.text,n),h.stateAfter=n.line%5==0?n.save():null,n.nextLine();if(+new Date>o)return Vn(e,e.options.workDelay),!0}),t.highlightFrontier=n.line,t.modeFrontier=Math.max(t.modeFrontier,n.line),u.length&&yr(e,function(){for(var h=0;h<u.length;h++)$i(e,u[h],"text")})}}var Br=function(e,t,o){var n=e.display;this.viewport=t,this.visible=bo(n,e.doc,t),this.editorIsHidden=!n.wrapper.offsetWidth,this.wrapperHeight=n.wrapper.clientHeight,this.wrapperWidth=n.wrapper.clientWidth,this.oldDisplayWidth=Ti(e),this.force=o,this.dims=Kr(e),this.events=[]};Br.prototype.signal=function(e,t){sr(e,t)&&this.events.push(arguments)},Br.prototype.finish=function(){for(var e=0;e<this.events.length;e++)Ze.apply(null,this.events[e])};function ft(e){var t=e.display;!t.scrollbarsClipped&&t.scroller.offsetWidth&&(t.nativeBarWidth=t.scroller.offsetWidth-t.scroller.clientWidth,t.heightForcer.style.height=jr(e)+"px",t.sizer.style.marginBottom=-t.nativeBarWidth+"px",t.sizer.style.borderRightWidth=jr(e)+"px",t.scrollbarsClipped=!0)}function O1(e){if(e.hasFocus())return null;var t=rt();if(!t||!me(e.display.lineDiv,t))return null;var o={activeElt:t};if(window.getSelection){var n=window.getSelection();n.anchorNode&&n.extend&&me(e.display.lineDiv,n.anchorNode)&&(o.anchorNode=n.anchorNode,o.anchorOffset=n.anchorOffset,o.focusNode=n.focusNode,o.focusOffset=n.focusOffset)}return o}function T1(e){if(!(!e||!e.activeElt||e.activeElt==rt())&&(e.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(e.activeElt.nodeName)&&e.anchorNode&&me(document.body,e.anchorNode)&&me(document.body,e.focusNode))){var t=window.getSelection(),o=document.createRange();o.setEnd(e.anchorNode,e.anchorOffset),o.collapse(!1),t.removeAllRanges(),t.addRange(o),t.extend(e.focusNode,e.focusOffset)}}function Qs(e,t){var o=e.display,n=e.doc;if(t.editorIsHidden)return ai(e),!1;if(!t.force&&t.visible.from>=o.viewFrom&&t.visible.to<=o.viewTo&&(o.updateLineNumbers==null||o.updateLineNumbers>=o.viewTo)&&o.renderedView==o.view&&Mc(e)==0)return!1;qn(e)&&(ai(e),t.dims=Kr(e));var u=n.first+n.size,h=Math.max(t.visible.from-e.options.viewportMargin,n.first),p=Math.min(u,t.visible.to+e.options.viewportMargin);o.viewFrom<h&&h-o.viewFrom<20&&(h=Math.max(n.first,o.viewFrom)),o.viewTo>p&&o.viewTo-p<20&&(p=Math.min(u,o.viewTo)),Bn&&(h=Pl(e.doc,h),p=dc(e.doc,p));var m=h!=o.viewFrom||p!=o.viewTo||o.lastWrapHeight!=t.wrapperHeight||o.lastWrapWidth!=t.wrapperWidth;C1(e,h,p),o.viewOffset=Nr(Oe(e.doc,o.viewFrom)),e.display.mover.style.top=o.viewOffset+"px";var y=Mc(e);if(!m&&y==0&&!t.force&&o.renderedView==o.view&&(o.updateLineNumbers==null||o.updateLineNumbers>=o.viewTo))return!1;var C=O1(e);return y>4&&(o.lineDiv.style.display="none"),E1(e,o.updateLineNumbers,t.dims),y>4&&(o.lineDiv.style.display=""),o.renderedView=o.view,T1(C),Qe(o.cursorDiv),Qe(o.selectionDiv),o.gutters.style.height=o.sizer.style.minHeight=0,m&&(o.lastWrapHeight=t.wrapperHeight,o.lastWrapWidth=t.wrapperWidth,Vn(e,400)),o.updateLineNumbers=null,!0}function Fi(e,t){for(var o=t.viewport,n=!0;;n=!1){if(!n||!e.options.lineWrapping||t.oldDisplayWidth==Ti(e)){if(o&&o.top!=null&&(o={top:Math.min(e.doc.height+Hr(e.display)-Dl(e),o.top)}),t.visible=bo(e.display,e.doc,o),t.visible.from>=e.display.viewFrom&&t.visible.to<=e.display.viewTo)break}else n&&(t.visible=bo(e.display,e.doc,o));if(!Qs(e,t))break;Di(e);var u=Wa(e);Ha(e),Bi(e,u),tu(e,u),t.force=!1}t.signal(e,"update",e),(e.display.viewFrom!=e.display.reportedViewFrom||e.display.viewTo!=e.display.reportedViewTo)&&(t.signal(e,"viewportChange",e,e.display.viewFrom,e.display.viewTo),e.display.reportedViewFrom=e.display.viewFrom,e.display.reportedViewTo=e.display.viewTo)}function Js(e,t){var o=new Br(e,t);if(Qs(e,o)){Di(e),Fi(e,o);var n=Wa(e);Ha(e),Bi(e,n),tu(e,n),o.finish()}}function E1(e,t,o){var n=e.display,u=e.options.lineNumbers,h=n.lineDiv,p=h.firstChild;function m(q){var te=q.nextSibling;return A&&de&&e.display.currentWheelTarget==q?q.style.display="none":q.parentNode.removeChild(q),te}for(var y=n.view,C=n.viewFrom,_=0;_<y.length;_++){var M=y[_];if(!M.hidden)if(!M.node||M.node.parentNode!=h){var N=qs(e,M,C,o);h.insertBefore(N,p)}else{for(;p!=M.node;)p=m(p);var D=u&&t!=null&&t<=C&&M.lineNumber;M.changes&&(_e(M.changes,"gutter")>-1&&(D=!1),vc(e,M,C,o)),D&&(Qe(M.lineNumber),M.lineNumber.appendChild(document.createTextNode(Fo(e.options,C)))),p=M.node.nextSibling}C+=M.size}for(;p;)p=m(p)}function eu(e){var t=e.gutters.offsetWidth;e.sizer.style.marginLeft=t+"px",rr(e,"gutterChanged",e)}function tu(e,t){e.display.sizer.style.minHeight=t.docHeight+"px",e.display.heightForcer.style.top=t.docHeight+"px",e.display.gutters.style.height=t.docHeight+e.display.barHeight+jr(e)+"px"}function Ec(e){var t=e.display,o=t.view;if(!(!t.alignWidgets&&(!t.gutters.firstChild||!e.options.fixedGutter))){for(var n=Vo(t)-t.scroller.scrollLeft+e.doc.scrollLeft,u=t.gutters.offsetWidth,h=n+"px",p=0;p<o.length;p++)if(!o[p].hidden){e.options.fixedGutter&&(o[p].gutter&&(o[p].gutter.style.left=h),o[p].gutterBackground&&(o[p].gutterBackground.style.left=h));var m=o[p].alignable;if(m)for(var y=0;y<m.length;y++)m[y].style.left=h}e.options.fixedGutter&&(t.gutters.style.left=n+u+"px")}}function qn(e){if(!e.options.lineNumbers)return!1;var t=e.doc,o=Fo(e.options,t.first+t.size-1),n=e.display;if(o.length!=n.lineNumChars){var u=n.measure.appendChild(P("div",[P("div",o)],"CodeMirror-linenumber CodeMirror-gutter-elt")),h=u.firstChild.offsetWidth,p=u.offsetWidth-h;return n.lineGutter.style.width="",n.lineNumInnerWidth=Math.max(h,n.lineGutter.offsetWidth-p)+1,n.lineNumWidth=n.lineNumInnerWidth+p,n.lineNumChars=n.lineNumInnerWidth?o.length:-1,n.lineGutter.style.width=n.lineNumWidth+"px",eu(e.display),!0}return!1}function ru(e,t){for(var o=[],n=!1,u=0;u<e.length;u++){var h=e[u],p=null;if(typeof h!="string"&&(p=h.style,h=h.className),h=="CodeMirror-linenumbers")if(t)n=!0;else continue;o.push({className:h,style:p})}return t&&!n&&o.push({className:"CodeMirror-linenumbers",style:null}),o}function Pc(e){var t=e.gutters,o=e.gutterSpecs;Qe(t),e.lineGutter=null;for(var n=0;n<o.length;++n){var u=o[n],h=u.className,p=u.style,m=t.appendChild(P("div",null,"CodeMirror-gutter "+h));p&&(m.style.cssText=p),h=="CodeMirror-linenumbers"&&(e.lineGutter=m,m.style.width=(e.lineNumWidth||1)+"px")}t.style.display=o.length?"":"none",eu(e)}function Ga(e){Pc(e.display),tt(e),Ec(e)}function P1(e,t,o,n){var u=this;this.input=o,u.scrollbarFiller=P("div",null,"CodeMirror-scrollbar-filler"),u.scrollbarFiller.setAttribute("cm-not-content","true"),u.gutterFiller=P("div",null,"CodeMirror-gutter-filler"),u.gutterFiller.setAttribute("cm-not-content","true"),u.lineDiv=S("div",null,"CodeMirror-code"),u.selectionDiv=P("div",null,null,"position: relative; z-index: 1"),u.cursorDiv=P("div",null,"CodeMirror-cursors"),u.measure=P("div",null,"CodeMirror-measure"),u.lineMeasure=P("div",null,"CodeMirror-measure"),u.lineSpace=S("div",[u.measure,u.lineMeasure,u.selectionDiv,u.cursorDiv,u.lineDiv],null,"position: relative; outline: none");var h=S("div",[u.lineSpace],"CodeMirror-lines");u.mover=P("div",[h],null,"position: relative"),u.sizer=P("div",[u.mover],"CodeMirror-sizer"),u.sizerWidth=null,u.heightForcer=P("div",null,null,"position: absolute; height: "+Fe+"px; width: 1px;"),u.gutters=P("div",null,"CodeMirror-gutters"),u.lineGutter=null,u.scroller=P("div",[u.sizer,u.heightForcer,u.gutters],"CodeMirror-scroll"),u.scroller.setAttribute("tabIndex","-1"),u.wrapper=P("div",[u.scrollbarFiller,u.gutterFiller,u.scroller],"CodeMirror"),u.wrapper.setAttribute("translate","no"),T&&k<8&&(u.gutters.style.zIndex=-1,u.scroller.style.paddingRight=0),!A&&!(c&&pe)&&(u.scroller.draggable=!0),e&&(e.appendChild?e.appendChild(u.wrapper):e(u.wrapper)),u.viewFrom=u.viewTo=t.first,u.reportedViewFrom=u.reportedViewTo=t.first,u.view=[],u.renderedView=null,u.externalMeasured=null,u.viewOffset=0,u.lastWrapHeight=u.lastWrapWidth=0,u.updateLineNumbers=null,u.nativeBarWidth=u.barHeight=u.barWidth=0,u.scrollbarsClipped=!1,u.lineNumWidth=u.lineNumInnerWidth=u.lineNumChars=null,u.alignWidgets=!1,u.cachedCharWidth=u.cachedTextHeight=u.cachedPaddingH=null,u.maxLine=null,u.maxLineLength=0,u.maxLineChanged=!1,u.wheelDX=u.wheelDY=u.wheelStartX=u.wheelStartY=null,u.shift=!1,u.selForContextMenu=null,u.activeTouch=null,u.gutterSpecs=ru(n.gutters,n.lineNumbers),Pc(u),o.init(u)}var Vl=0,qt=null;T?qt=-.53:c?qt=15:U?qt=-.7:re&&(qt=-1/3);function Ic(e){var t=e.wheelDeltaX,o=e.wheelDeltaY;return t==null&&e.detail&&e.axis==e.HORIZONTAL_AXIS&&(t=e.detail),o==null&&e.detail&&e.axis==e.VERTICAL_AXIS?o=e.detail:o==null&&(o=e.wheelDelta),{x:t,y:o}}function I1(e){var t=Ic(e);return t.x*=qt,t.y*=qt,t}function Ac(e,t){var o=Ic(t),n=o.x,u=o.y,h=e.display,p=h.scroller,m=p.scrollWidth>p.clientWidth,y=p.scrollHeight>p.clientHeight;if(!!(n&&m||u&&y)){if(u&&de&&A){e:for(var C=t.target,_=h.view;C!=p;C=C.parentNode)for(var M=0;M<_.length;M++)if(_[M].node==C){e.display.currentWheelTarget=C;break e}}if(n&&!c&&!Z&&qt!=null){u&&y&&Bt(e,Math.max(0,p.scrollTop+u*qt)),mo(e,Math.max(0,p.scrollLeft+n*qt)),(!u||u&&y)&&ur(t),h.wheelStartX=null;return}if(u&&qt!=null){var N=u*qt,D=e.doc.scrollTop,q=D+h.wrapper.clientHeight;N<0?D=Math.max(0,D+N-50):q=Math.min(e.doc.height,q+N+50),Js(e,{top:D,bottom:q})}Vl<20&&(h.wheelStartX==null?(h.wheelStartX=p.scrollLeft,h.wheelStartY=p.scrollTop,h.wheelDX=n,h.wheelDY=u,setTimeout(function(){if(h.wheelStartX!=null){var te=p.scrollLeft-h.wheelStartX,ue=p.scrollTop-h.wheelStartY,fe=ue&&h.wheelDY&&ue/h.wheelDY||te&&h.wheelDX&&te/h.wheelDX;h.wheelStartX=h.wheelStartY=null,fe&&(qt=(qt*Vl+fe)/(Vl+1),++Vl)}},200)):(h.wheelDX+=n,h.wheelDY+=u))}}var nn=function(e,t){this.ranges=e,this.primIndex=t};nn.prototype.primary=function(){return this.ranges[this.primIndex]},nn.prototype.equals=function(e){if(e==this)return!0;if(e.primIndex!=this.primIndex||e.ranges.length!=this.ranges.length)return!1;for(var t=0;t<this.ranges.length;t++){var o=this.ranges[t],n=e.ranges[t];if(!O(o.anchor,n.anchor)||!O(o.head,n.head))return!1}return!0},nn.prototype.deepCopy=function(){for(var e=[],t=0;t<this.ranges.length;t++)e[t]=new mt(Q(this.ranges[t].anchor),Q(this.ranges[t].head));return new nn(e,this.primIndex)},nn.prototype.somethingSelected=function(){for(var e=0;e<this.ranges.length;e++)if(!this.ranges[e].empty())return!0;return!1},nn.prototype.contains=function(e,t){t||(t=e);for(var o=0;o<this.ranges.length;o++){var n=this.ranges[o];if(w(t,n.from())>=0&&w(e,n.to())<=0)return o}return-1};var mt=function(e,t){this.anchor=e,this.head=t};mt.prototype.from=function(){return Ge(this.anchor,this.head)},mt.prototype.to=function(){return le(this.anchor,this.head)},mt.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function wr(e,t,o){var n=e&&e.options.selectionsMayTouch,u=t[o];t.sort(function(N,D){return w(N.from(),D.from())}),o=_e(t,u);for(var h=1;h<t.length;h++){var p=t[h],m=t[h-1],y=w(m.to(),p.from());if(n&&!p.empty()?y>0:y>=0){var C=Ge(m.from(),p.from()),_=le(m.to(),p.to()),M=m.empty()?p.from()==p.head:m.from()==m.head;h<=o&&--o,t.splice(--h,2,new mt(M?_:C,M?C:_))}}return new nn(t,o)}function Wi(e,t){return new nn([new mt(e,t||e)],0)}function Ui(e){return e.text?oe(e.from.line+e.text.length-1,Ke(e.text).length+(e.text.length==1?e.from.ch:0)):e.to}function hn(e,t){if(w(e,t.from)<0)return e;if(w(e,t.to)<=0)return Ui(t);var o=e.line+t.text.length-(t.to.line-t.from.line)-1,n=e.ch;return e.line==t.to.line&&(n+=Ui(t).ch-t.to.ch),oe(o,n)}function nu(e,t){for(var o=[],n=0;n<e.sel.ranges.length;n++){var u=e.sel.ranges[n];o.push(new mt(hn(u.anchor,t),hn(u.head,t)))}return wr(e.cm,o,e.sel.primIndex)}function $c(e,t,o){return e.line==t.line?oe(o.line,e.ch-t.ch+o.ch):oe(o.line+(e.line-t.line),e.ch)}function A1(e,t,o){for(var n=[],u=oe(e.first,0),h=u,p=0;p<t.length;p++){var m=t[p],y=$c(m.from,u,h),C=$c(Ui(m),u,h);if(u=m.to,h=C,o=="around"){var _=e.sel.ranges[p],M=w(_.head,_.anchor)<0;n[p]=new mt(M?C:y,M?y:C)}else n[p]=new mt(y,y)}return new nn(n,e.sel.primIndex)}function iu(e){e.doc.mode=Bo(e.options,e.doc.modeOption),Va(e)}function Va(e){e.doc.iter(function(t){t.stateAfter&&(t.stateAfter=null),t.styles&&(t.styles=null)}),e.doc.modeFrontier=e.doc.highlightFrontier=e.doc.first,Vn(e,100),e.state.modeGen++,e.curOp&&tt(e)}function ou(e,t){return t.from.ch==0&&t.to.ch==0&&Ke(t.text)==""&&(!e.cm||e.cm.options.wholeLineUpdateBefore)}function ql(e,t,o,n){function u(we){return o?o[we]:null}function h(we,he,xe){fc(we,he,xe,n),rr(we,"change",we,t)}function p(we,he){for(var xe=[],$e=we;$e<he;++$e)xe.push(new br(C[$e],u($e),n));return xe}var m=t.from,y=t.to,C=t.text,_=Oe(e,m.line),M=Oe(e,y.line),N=Ke(C),D=u(C.length-1),q=y.line-m.line;if(t.full)e.insert(0,p(0,C.length)),e.remove(C.length,e.size-C.length);else if(ou(e,t)){var te=p(0,C.length-1);h(M,M.text,D),q&&e.remove(m.line,q),te.length&&e.insert(m.line,te)}else if(_==M)if(C.length==1)h(_,_.text.slice(0,m.ch)+N+_.text.slice(y.ch),D);else{var ue=p(1,C.length-1);ue.push(new br(N+_.text.slice(y.ch),D,n)),h(_,_.text.slice(0,m.ch)+C[0],u(0)),e.insert(m.line+1,ue)}else if(C.length==1)h(_,_.text.slice(0,m.ch)+C[0]+M.text.slice(y.ch),u(0)),e.remove(m.line+1,q);else{h(_,_.text.slice(0,m.ch)+C[0],u(0)),h(M,N+M.text.slice(y.ch),D);var fe=p(1,C.length-1);q>1&&e.remove(m.line+1,q-1),e.insert(m.line+1,fe)}rr(e,"change",e,t)}function Zi(e,t,o){function n(u,h,p){if(u.linked)for(var m=0;m<u.linked.length;++m){var y=u.linked[m];if(y.doc!=h){var C=p&&y.sharedHist;o&&!C||(t(y.doc,C),n(y.doc,u,C))}}}n(e,null,!0)}function Dc(e,t){if(t.cm)throw new Error("This document is already in use.");e.doc=t,t.cm=e,Ai(e),iu(e),jl(e),e.options.direction=t.direction,e.options.lineWrapping||$a(e),e.options.mode=t.modeOption,tt(e)}function jl(e){(e.doc.direction=="rtl"?Lt:ye)(e.display.lineDiv,"CodeMirror-rtl")}function qa(e){yr(e,function(){jl(e),tt(e)})}function Co(e){this.done=[],this.undone=[],this.undoDepth=e?e.undoDepth:1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=e?e.maxGeneration:1}function au(e,t){var o={from:Q(t.from),to:Ui(t),text:tn(e,t.from,t.to)};return Rc(e,o,t.from.line,t.to.line+1),Zi(e,function(n){return Rc(n,o,t.from.line,t.to.line+1)},!0),o}function lu(e){for(;e.length;){var t=Ke(e);if(t.ranges)e.pop();else break}}function $1(e,t){if(t)return lu(e.done),Ke(e.done);if(e.done.length&&!Ke(e.done).ranges)return Ke(e.done);if(e.done.length>1&&!e.done[e.done.length-2].ranges)return e.done.pop(),Ke(e.done)}function jn(e,t,o,n){var u=e.history;u.undone.length=0;var h=+new Date,p,m;if((u.lastOp==n||u.lastOrigin==t.origin&&t.origin&&(t.origin.charAt(0)=="+"&&u.lastModTime>h-(e.cm?e.cm.options.historyEventDelay:500)||t.origin.charAt(0)=="*"))&&(p=$1(u,u.lastOp==n)))m=Ke(p.changes),w(t.from,t.to)==0&&w(t.from,m.to)==0?m.to=Ui(t):p.changes.push(au(e,t));else{var y=Ke(u.done);for((!y||!y.ranges)&&Fr(e.sel,u.done),p={changes:[au(e,t)],generation:u.generation},u.done.push(p);u.done.length>u.undoDepth;)u.done.shift(),u.done[0].ranges||u.done.shift()}u.done.push(o),u.generation=++u.maxGeneration,u.lastModTime=u.lastSelTime=h,u.lastOp=u.lastSelOp=n,u.lastOrigin=u.lastSelOrigin=t.origin,m||Ze(e,"historyAdded")}function su(e,t,o,n){var u=t.charAt(0);return u=="*"||u=="+"&&o.ranges.length==n.ranges.length&&o.somethingSelected()==n.somethingSelected()&&new Date-e.history.lastSelTime<=(e.cm?e.cm.options.historyEventDelay:500)}function wo(e,t,o,n){var u=e.history,h=n&&n.origin;o==u.lastSelOp||h&&u.lastSelOrigin==h&&(u.lastModTime==u.lastSelTime&&u.lastOrigin==h||su(e,h,Ke(u.done),t))?u.done[u.done.length-1]=t:Fr(t,u.done),u.lastSelTime=+new Date,u.lastSelOrigin=h,u.lastSelOp=o,n&&n.clearRedo!==!1&&lu(u.undone)}function Fr(e,t){var o=Ke(t);o&&o.ranges&&o.equals(e)||t.push(e)}function Rc(e,t,o,n){var u=t["spans_"+e.id],h=0;e.iter(Math.max(e.first,o),Math.min(e.first+e.size,n),function(p){p.markedSpans&&((u||(u=t["spans_"+e.id]={}))[h]=p.markedSpans),++h})}function Nc(e){if(!e)return null;for(var t,o=0;o<e.length;++o)e[o].marker.explicitlyCleared?t||(t=e.slice(0,o)):t&&t.push(e[o]);return t?t.length?t:null:e}function Hc(e,t){var o=t["spans_"+e.id];if(!o)return null;for(var n=[],u=0;u<t.text.length;++u)n.push(Nc(o[u]));return n}function Jo(e,t){var o=Hc(e,t),n=Ns(e,t);if(!o)return n;if(!n)return o;for(var u=0;u<o.length;++u){var h=o[u],p=n[u];if(h&&p){e:for(var m=0;m<p.length;++m){for(var y=p[m],C=0;C<h.length;++C)if(h[C].marker==y.marker)continue e;h.push(y)}}else p&&(o[u]=p)}return o}function on(e,t,o){for(var n=[],u=0;u<e.length;++u){var h=e[u];if(h.ranges){n.push(o?nn.prototype.deepCopy.call(h):h);continue}var p=h.changes,m=[];n.push({changes:m});for(var y=0;y<p.length;++y){var C=p[y],_=void 0;if(m.push({from:C.from,to:C.to,text:C.text}),t)for(var M in C)(_=M.match(/^spans_(\d+)$/))&&_e(t,Number(_[1]))>-1&&(Ke(m)[M]=C[M],delete C[M])}}return n}function Kl(e,t,o,n){if(n){var u=e.anchor;if(o){var h=w(t,u)<0;h!=w(o,u)<0?(u=t,t=o):h!=w(t,o)<0&&(t=o)}return new mt(u,t)}else return new mt(o||t,t)}function Yl(e,t,o,n,u){u==null&&(u=e.cm&&(e.cm.display.shift||e.extend)),cr(e,new nn([Kl(e.sel.primary(),t,o,u)],0),n)}function ja(e,t,o){for(var n=[],u=e.cm&&(e.cm.display.shift||e.extend),h=0;h<e.sel.ranges.length;h++)n[h]=Kl(e.sel.ranges[h],t[h],null,u);var p=wr(e.cm,n,e.sel.primIndex);cr(e,p,o)}function uu(e,t,o,n){var u=e.sel.ranges.slice(0);u[t]=o,cr(e,wr(e.cm,u,e.sel.primIndex),n)}function cu(e,t,o,n){cr(e,Wi(t,o),n)}function xr(e,t,o){var n={ranges:t.ranges,update:function(u){this.ranges=[];for(var h=0;h<u.length;h++)this.ranges[h]=new mt(Ce(e,u[h].anchor),Ce(e,u[h].head))},origin:o&&o.origin};return Ze(e,"beforeSelectionChange",e,n),e.cm&&Ze(e.cm,"beforeSelectionChange",e.cm,n),n.ranges!=t.ranges?wr(e.cm,n.ranges,n.ranges.length-1):t}function Xl(e,t,o){var n=e.history.done,u=Ke(n);u&&u.ranges?(n[n.length-1]=t,an(e,t,o)):cr(e,t,o)}function cr(e,t,o){an(e,t,o),wo(e,e.sel,e.cm?e.cm.curOp.id:NaN,o)}function an(e,t,o){(sr(e,"beforeSelectionChange")||e.cm&&sr(e.cm,"beforeSelectionChange"))&&(t=xr(e,t,o));var n=o&&o.bias||(w(t.primary().head,e.sel.primary().head)<0?-1:1);Ql(e,Gi(e,t,n,!0)),!(o&&o.scroll===!1)&&e.cm&&e.cm.getOption("readOnly")!="nocursor"&&Ni(e.cm)}function Ql(e,t){t.equals(e.sel)||(e.sel=t,e.cm&&(e.cm.curOp.updateInput=1,e.cm.curOp.selectionChanged=!0,No(e.cm)),rr(e,"cursorActivity",e))}function Ka(e){Ql(e,Gi(e,e.sel,null,!1))}function Gi(e,t,o,n){for(var u,h=0;h<t.ranges.length;h++){var p=t.ranges[h],m=t.ranges.length==e.sel.ranges.length&&e.sel.ranges[h],y=dr(e,p.anchor,m&&m.anchor,o,n),C=dr(e,p.head,m&&m.head,o,n);(u||y!=p.anchor||C!=p.head)&&(u||(u=t.ranges.slice(0,h)),u[h]=new mt(y,C))}return u?wr(e.cm,u,t.primIndex):t}function xo(e,t,o,n,u){var h=Oe(e,t.line);if(h.markedSpans)for(var p=0;p<h.markedSpans.length;++p){var m=h.markedSpans[p],y=m.marker,C="selectLeft"in y?!y.selectLeft:y.inclusiveLeft,_="selectRight"in y?!y.selectRight:y.inclusiveRight;if((m.from==null||(C?m.from<=t.ch:m.from<t.ch))&&(m.to==null||(_?m.to>=t.ch:m.to>t.ch))){if(u&&(Ze(y,"beforeCursorEnter"),y.explicitlyCleared))if(h.markedSpans){--p;continue}else break;if(!y.atomic)continue;if(o){var M=y.find(n<0?1:-1),N=void 0;if((n<0?_:C)&&(M=Jl(e,M,-n,M&&M.line==t.line?h:null)),M&&M.line==t.line&&(N=w(M,o))&&(n<0?N<0:N>0))return xo(e,M,t,n,u)}var D=y.find(n<0?-1:1);return(n<0?C:_)&&(D=Jl(e,D,n,D.line==t.line?h:null)),D?xo(e,D,t,n,u):null}}return t}function dr(e,t,o,n,u){var h=n||1,p=xo(e,t,o,h,u)||!u&&xo(e,t,o,h,!0)||xo(e,t,o,-h,u)||!u&&xo(e,t,o,-h,!0);return p||(e.cantEdit=!0,oe(e.first,0))}function Jl(e,t,o,n){return o<0&&t.ch==0?t.line>e.first?Ce(e,oe(t.line-1)):null:o>0&&t.ch==(n||Oe(e,t.line)).text.length?t.line<e.first+e.size-1?oe(t.line+1,0):null:new oe(t.line,t.ch+o)}function Bc(e){e.setSelection(oe(e.firstLine(),0),oe(e.lastLine()),nt)}function Fc(e,t,o){var n={canceled:!1,from:t.from,to:t.to,text:t.text,origin:t.origin,cancel:function(){return n.canceled=!0}};return o&&(n.update=function(u,h,p,m){u&&(n.from=Ce(e,u)),h&&(n.to=Ce(e,h)),p&&(n.text=p),m!==void 0&&(n.origin=m)}),Ze(e,"beforeChange",e,n),e.cm&&Ze(e.cm,"beforeChange",e.cm,n),n.canceled?(e.cm&&(e.cm.curOp.updateInput=2),null):{from:n.from,to:n.to,text:n.text,origin:n.origin}}function ea(e,t,o){if(e.cm){if(!e.cm.curOp)return Ft(e.cm,ea)(e,t,o);if(e.cm.state.suppressEdits)return}if(!((sr(e,"beforeChange")||e.cm&&sr(e.cm,"beforeChange"))&&(t=Fc(e,t,!0),!t))){var n=Rs&&!o&&Hs(e,t.from,t.to);if(n)for(var u=n.length-1;u>=0;--u)es(e,{from:n[u].from,to:n[u].to,text:u?[""]:t.text,origin:t.origin});else es(e,t)}}function es(e,t){if(!(t.text.length==1&&t.text[0]==""&&w(t.from,t.to)==0)){var o=nu(e,t);jn(e,t,o,e.cm?e.cm.curOp.id:NaN),ra(e,t,o,Ns(e,t));var n=[];Zi(e,function(u,h){!h&&_e(n,u.history)==-1&&(Uc(u.history,t),n.push(u.history)),ra(u,t,null,Ns(u,t))})}}function ts(e,t,o){var n=e.cm&&e.cm.state.suppressEdits;if(!(n&&!o)){for(var u=e.history,h,p=e.sel,m=t=="undo"?u.done:u.undone,y=t=="undo"?u.undone:u.done,C=0;C<m.length&&(h=m[C],!(o?h.ranges&&!h.equals(e.sel):!h.ranges));C++);if(C!=m.length){for(u.lastOrigin=u.lastSelOrigin=null;;)if(h=m.pop(),h.ranges){if(Fr(h,y),o&&!h.equals(e.sel)){cr(e,h,{clearRedo:!1});return}p=h}else if(n){m.push(h);return}else break;var _=[];Fr(p,y),y.push({changes:_,generation:u.generation}),u.generation=h.generation||++u.maxGeneration;for(var M=sr(e,"beforeChange")||e.cm&&sr(e.cm,"beforeChange"),N=function(te){var ue=h.changes[te];if(ue.origin=t,M&&!Fc(e,ue,!1))return m.length=0,{};_.push(au(e,ue));var fe=te?nu(e,ue):Ke(m);ra(e,ue,fe,Jo(e,ue)),!te&&e.cm&&e.cm.scrollIntoView({from:ue.from,to:Ui(ue)});var we=[];Zi(e,function(he,xe){!xe&&_e(we,he.history)==-1&&(Uc(he.history,ue),we.push(he.history)),ra(he,ue,null,Jo(he,ue))})},D=h.changes.length-1;D>=0;--D){var q=N(D);if(q)return q.v}}}}function ta(e,t){if(t!=0&&(e.first+=t,e.sel=new nn(ht(e.sel.ranges,function(u){return new mt(oe(u.anchor.line+t,u.anchor.ch),oe(u.head.line+t,u.head.ch))}),e.sel.primIndex),e.cm)){tt(e.cm,e.first,e.first-t,t);for(var o=e.cm.display,n=o.viewFrom;n<o.viewTo;n++)$i(e.cm,n,"gutter")}}function ra(e,t,o,n){if(e.cm&&!e.cm.curOp)return Ft(e.cm,ra)(e,t,o,n);if(t.to.line<e.first){ta(e,t.text.length-1-(t.to.line-t.from.line));return}if(!(t.from.line>e.lastLine())){if(t.from.line<e.first){var u=t.text.length-1-(e.first-t.from.line);ta(e,u),t={from:oe(e.first,0),to:oe(t.to.line+u,t.to.ch),text:[Ke(t.text)],origin:t.origin}}var h=e.lastLine();t.to.line>h&&(t={from:t.from,to:oe(h,Oe(e,h).text.length),text:[t.text[0]],origin:t.origin}),t.removed=tn(e,t.from,t.to),o||(o=nu(e,t)),e.cm?D1(e.cm,t,n):ql(e,t,n),an(e,o,nt),e.cantEdit&&dr(e,oe(e.firstLine(),0))&&(e.cantEdit=!1)}}function D1(e,t,o){var n=e.doc,u=e.display,h=t.from,p=t.to,m=!1,y=h.line;e.options.lineWrapping||(y=bt(Fn(Oe(n,h.line))),n.iter(y,p.line+1,function(D){if(D==u.maxLine)return m=!0,!0})),n.sel.contains(t.from,t.to)>-1&&No(e),ql(n,t,o,Sc(e)),e.options.lineWrapping||(n.iter(y,h.line+t.text.length,function(D){var q=Aa(D);q>u.maxLineLength&&(u.maxLine=D,u.maxLineLength=q,u.maxLineChanged=!0,m=!1)}),m&&(e.curOp.updateMaxLine=!0)),a1(n,h.line),Vn(e,400);var C=t.text.length-(p.line-h.line)-1;t.full?tt(e):h.line==p.line&&t.text.length==1&&!ou(e.doc,t)?$i(e,h.line,"text"):tt(e,h.line,p.line+1,C);var _=sr(e,"changes"),M=sr(e,"change");if(M||_){var N={from:h,to:p,text:t.text,removed:t.removed,origin:t.origin};M&&rr(e,"change",e,N),_&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(N)}e.display.selForContextMenu=null}function na(e,t,o,n,u){var h;n||(n=o),w(n,o)<0&&(h=[n,o],o=h[0],n=h[1]),typeof t=="string"&&(t=e.splitLines(t)),ea(e,{from:o,to:n,text:t,origin:u})}function ia(e,t,o,n){o<e.line?e.line+=n:t<e.line&&(e.line=t,e.ch=0)}function Wc(e,t,o,n){for(var u=0;u<e.length;++u){var h=e[u],p=!0;if(h.ranges){h.copied||(h=e[u]=h.deepCopy(),h.copied=!0);for(var m=0;m<h.ranges.length;m++)ia(h.ranges[m].anchor,t,o,n),ia(h.ranges[m].head,t,o,n);continue}for(var y=0;y<h.changes.length;++y){var C=h.changes[y];if(o<C.from.line)C.from=oe(C.from.line+n,C.from.ch),C.to=oe(C.to.line+n,C.to.ch);else if(t<=C.to.line){p=!1;break}}p||(e.splice(0,u+1),u=0)}}function Uc(e,t){var o=t.from.line,n=t.to.line,u=t.text.length-(n-o)-1;Wc(e.done,o,n,u),Wc(e.undone,o,n,u)}function zo(e,t,o,n){var u=t,h=t;return typeof t=="number"?h=Oe(e,dt(e,t)):u=bt(t),u==null?null:(n(h,u)&&e.cm&&$i(e.cm,u,o),h)}function oa(e){this.lines=e,this.parent=null;for(var t=0,o=0;o<e.length;++o)e[o].parent=this,t+=e[o].height;this.height=t}oa.prototype={chunkSize:function(){return this.lines.length},removeInner:function(e,t){for(var o=e,n=e+t;o<n;++o){var u=this.lines[o];this.height-=u.height,hc(u),rr(u,"delete")}this.lines.splice(e,t)},collapse:function(e){e.push.apply(e,this.lines)},insertInner:function(e,t,o){this.height+=o,this.lines=this.lines.slice(0,e).concat(t).concat(this.lines.slice(e));for(var n=0;n<t.length;++n)t[n].parent=this},iterN:function(e,t,o){for(var n=e+t;e<n;++e)if(o(this.lines[e]))return!0}};function Ya(e){this.children=e;for(var t=0,o=0,n=0;n<e.length;++n){var u=e[n];t+=u.chunkSize(),o+=u.height,u.parent=this}this.size=t,this.height=o,this.parent=null}Ya.prototype={chunkSize:function(){return this.size},removeInner:function(e,t){this.size-=t;for(var o=0;o<this.children.length;++o){var n=this.children[o],u=n.chunkSize();if(e<u){var h=Math.min(t,u-e),p=n.height;if(n.removeInner(e,h),this.height-=p-n.height,u==h&&(this.children.splice(o--,1),n.parent=null),(t-=h)==0)break;e=0}else e-=u}if(this.size-t<25&&(this.children.length>1||!(this.children[0]instanceof oa))){var m=[];this.collapse(m),this.children=[new oa(m)],this.children[0].parent=this}},collapse:function(e){for(var t=0;t<this.children.length;++t)this.children[t].collapse(e)},insertInner:function(e,t,o){this.size+=t.length,this.height+=o;for(var n=0;n<this.children.length;++n){var u=this.children[n],h=u.chunkSize();if(e<=h){if(u.insertInner(e,t,o),u.lines&&u.lines.length>50){for(var p=u.lines.length%25+25,m=p;m<u.lines.length;){var y=new oa(u.lines.slice(m,m+=25));u.height-=y.height,this.children.splice(++n,0,y),y.parent=this}u.lines=u.lines.slice(0,p),this.maybeSpill()}break}e-=h}},maybeSpill:function(){if(!(this.children.length<=10)){var e=this;do{var t=e.children.splice(e.children.length-5,5),o=new Ya(t);if(e.parent){e.size-=o.size,e.height-=o.height;var u=_e(e.parent.children,e);e.parent.children.splice(u+1,0,o)}else{var n=new Ya(e.children);n.parent=e,e.children=[n,o],e=n}o.parent=e.parent}while(e.children.length>10);e.parent.maybeSpill()}},iterN:function(e,t,o){for(var n=0;n<this.children.length;++n){var u=this.children[n],h=u.chunkSize();if(e<h){var p=Math.min(t,h-e);if(u.iterN(e,p,o))return!0;if((t-=p)==0)break;e=0}else e-=h}}};var Xa=function(e,t,o){if(o)for(var n in o)o.hasOwnProperty(n)&&(this[n]=o[n]);this.doc=e,this.node=t};Xa.prototype.clear=function(){var e=this.doc.cm,t=this.line.widgets,o=this.line,n=bt(o);if(!(n==null||!t)){for(var u=0;u<t.length;++u)t[u]==this&&t.splice(u--,1);t.length||(o.widgets=null);var h=fo(this);Vr(o,Math.max(0,o.height-h)),e&&(yr(e,function(){Zc(e,o,-h),$i(e,n,"widget")}),rr(e,"lineWidgetCleared",e,this,n))}},Xa.prototype.changed=function(){var e=this,t=this.height,o=this.doc.cm,n=this.line;this.height=null;var u=fo(this)-t;!u||(Ht(this.doc,n)||Vr(n,n.height+u),o&&yr(o,function(){o.curOp.forceUpdate=!0,Zc(o,n,u),rr(o,"lineWidgetChanged",o,e,bt(n))}))},Sn(Xa);function Zc(e,t,o){Nr(t)<(e.curOp&&e.curOp.scrollTop||e.doc.scrollTop)&&Yo(e,o)}function Gc(e,t,o,n){var u=new Xa(e,o,n),h=e.cm;return h&&u.noHScroll&&(h.display.alignWidgets=!0),zo(e,t,"widget",function(p){var m=p.widgets||(p.widgets=[]);if(u.insertAt==null?m.push(u):m.splice(Math.min(m.length,Math.max(0,u.insertAt)),0,u),u.line=p,h&&!Ht(e,p)){var y=Nr(p)<e.scrollTop;Vr(p,p.height+fo(u)),y&&Yo(h,u.height),h.curOp.forceUpdate=!0}return!0}),h&&rr(h,"lineWidgetAdded",h,u,typeof t=="number"?t:bt(t)),u}var rs=0,Vi=function(e,t){this.lines=[],this.type=t,this.doc=e,this.id=++rs};Vi.prototype.clear=function(){if(!this.explicitlyCleared){var e=this.doc.cm,t=e&&!e.curOp;if(t&&In(e),sr(this,"clear")){var o=this.find();o&&rr(this,"clear",o.from,o.to)}for(var n=null,u=null,h=0;h<this.lines.length;++h){var p=this.lines[h],m=Pa(p.markedSpans,this);e&&!this.collapsed?$i(e,bt(p),"text"):e&&(m.to!=null&&(u=bt(p)),m.from!=null&&(n=bt(p))),p.markedSpans=l1(p.markedSpans,m),m.from==null&&this.collapsed&&!Ht(this.doc,p)&&e&&Vr(p,Ii(e.display))}if(e&&this.collapsed&&!e.options.lineWrapping)for(var y=0;y<this.lines.length;++y){var C=Fn(this.lines[y]),_=Aa(C);_>e.display.maxLineLength&&(e.display.maxLine=C,e.display.maxLineLength=_,e.display.maxLineChanged=!0)}n!=null&&e&&this.collapsed&&tt(e,n,u+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&Ka(e.doc)),e&&rr(e,"markerCleared",e,this,n,u),t&&Gn(e),this.parent&&this.parent.clear()}},Vi.prototype.find=function(e,t){e==null&&this.type=="bookmark"&&(e=1);for(var o,n,u=0;u<this.lines.length;++u){var h=this.lines[u],p=Pa(h.markedSpans,this);if(p.from!=null&&(o=oe(t?h:bt(h),p.from),e==-1))return o;if(p.to!=null&&(n=oe(t?h:bt(h),p.to),e==1))return n}return o&&{from:o,to:n}},Vi.prototype.changed=function(){var e=this,t=this.find(-1,!0),o=this,n=this.doc.cm;!t||!n||yr(n,function(){var u=t.line,h=bt(t.line),p=Ys(n,h);if(p&&(xc(p),n.curOp.selectionChanged=n.curOp.forceUpdate=!0),n.curOp.updateMaxLine=!0,!Ht(o.doc,u)&&o.height!=null){var m=o.height;o.height=null;var y=fo(o)-m;y&&Vr(u,u.height+y)}rr(n,"markerChanged",n,e)})},Vi.prototype.attachLine=function(e){if(!this.lines.length&&this.doc.cm){var t=this.doc.cm.curOp;(!t.maybeHiddenMarkers||_e(t.maybeHiddenMarkers,this)==-1)&&(t.maybeUnhiddenMarkers||(t.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(e)},Vi.prototype.detachLine=function(e){if(this.lines.splice(_e(this.lines,e),1),!this.lines.length&&this.doc.cm){var t=this.doc.cm.curOp;(t.maybeHiddenMarkers||(t.maybeHiddenMarkers=[])).push(this)}},Sn(Vi);function qi(e,t,o,n,u){if(n&&n.shared)return Vc(e,t,o,n,u);if(e.cm&&!e.cm.curOp)return Ft(e.cm,qi)(e,t,o,n,u);var h=new Vi(e,u),p=w(t,o);if(n&&Ut(n,h,!1),p>0||p==0&&h.clearWhenEmpty!==!1)return h;if(h.replacedWith&&(h.collapsed=!0,h.widgetNode=S("span",[h.replacedWith],"CodeMirror-widget"),n.handleMouseEvents||h.widgetNode.setAttribute("cm-ignore-events","true"),n.insertLeft&&(h.widgetNode.insertLeft=!0)),h.collapsed){if(cc(e,t.line,t,o,h)||t.line!=o.line&&cc(e,o.line,t,o,h))throw new Error("Inserting collapsed marker partially overlapping an existing one");oc()}h.addToHistory&&jn(e,{from:t,to:o,origin:"markText"},e.sel,NaN);var m=t.line,y=e.cm,C;if(e.iter(m,o.line+1,function(M){y&&h.collapsed&&!y.options.lineWrapping&&Fn(M)==y.display.maxLine&&(C=!0),h.collapsed&&m!=t.line&&Vr(M,0),ac(M,new kl(h,m==t.line?t.ch:null,m==o.line?o.ch:null),e.cm&&e.cm.curOp),++m}),h.collapsed&&e.iter(t.line,o.line+1,function(M){Ht(e,M)&&Vr(M,0)}),h.clearOnEnter&&Ne(h,"beforeCursorEnter",function(){return h.clear()}),h.readOnly&&(ic(),(e.history.done.length||e.history.undone.length)&&e.clearHistory()),h.collapsed&&(h.id=++rs,h.atomic=!0),y){if(C&&(y.curOp.updateMaxLine=!0),h.collapsed)tt(y,t.line,o.line+1);else if(h.className||h.startStyle||h.endStyle||h.css||h.attributes||h.title)for(var _=t.line;_<=o.line;_++)$i(y,_,"text");h.atomic&&Ka(y.doc),rr(y,"markerAdded",y,h)}return h}var aa=function(e,t){this.markers=e,this.primary=t;for(var o=0;o<e.length;++o)e[o].parent=this};aa.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var e=0;e<this.markers.length;++e)this.markers[e].clear();rr(this,"clear")}},aa.prototype.find=function(e,t){return this.primary.find(e,t)},Sn(aa);function Vc(e,t,o,n,u){n=Ut(n),n.shared=!1;var h=[qi(e,t,o,n,u)],p=h[0],m=n.widgetNode;return Zi(e,function(y){m&&(n.widgetNode=m.cloneNode(!0)),h.push(qi(y,Ce(y,t),Ce(y,o),n,u));for(var C=0;C<y.linked.length;++C)if(y.linked[C].isParent)return;p=Ke(h)}),new aa(h,p)}function du(e){return e.findMarks(oe(e.first,0),e.clipPos(oe(e.lastLine())),function(t){return t.parent})}function ns(e,t){for(var o=0;o<t.length;o++){var n=t[o],u=n.find(),h=e.clipPos(u.from),p=e.clipPos(u.to);if(w(h,p)){var m=qi(e,h,p,n.primary,n.primary.type);n.markers.push(m),m.parent=n}}}function R1(e){for(var t=function(n){var u=e[n],h=[u.primary.doc];Zi(u.primary.doc,function(y){return h.push(y)});for(var p=0;p<u.markers.length;p++){var m=u.markers[p];_e(h,m.doc)==-1&&(m.parent=null,u.markers.splice(p--,1))}},o=0;o<e.length;o++)t(o)}var qc=0,Sr=function(e,t,o,n,u){if(!(this instanceof Sr))return new Sr(e,t,o,n,u);o==null&&(o=0),Ya.call(this,[new oa([new br("",null)])]),this.first=o,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=o;var h=oe(o,0);this.sel=Wi(h),this.history=new Co(null),this.id=++qc,this.modeOption=t,this.lineSep=n,this.direction=u=="rtl"?"rtl":"ltr",this.extend=!1,typeof e=="string"&&(e=this.splitLines(e)),ql(this,{from:h,to:h,text:e}),cr(this,Wi(h),nt)};Sr.prototype=Gr(Ya.prototype,{constructor:Sr,iter:function(e,t,o){o?this.iterN(e-this.first,t-e,o):this.iterN(this.first,this.first+this.size,e)},insert:function(e,t){for(var o=0,n=0;n<t.length;++n)o+=t[n].height;this.insertInner(e-this.first,t,o)},remove:function(e,t){this.removeInner(e-this.first,t)},getValue:function(e){var t=Ta(this,this.first,this.first+this.size);return e===!1?t:t.join(e||this.lineSeparator())},setValue:z(function(e){var t=oe(this.first,0),o=this.first+this.size-1;ea(this,{from:t,to:oe(o,Oe(this,o).text.length),text:this.splitLines(e),origin:"setValue",full:!0},!0),this.cm&&Fa(this.cm,0,0),cr(this,Wi(t),nt)}),replaceRange:function(e,t,o,n){t=Ce(this,t),o=o?Ce(this,o):t,na(this,e,t,o,n)},getRange:function(e,t,o){var n=tn(this,Ce(this,e),Ce(this,t));return o===!1?n:o===""?n.join(""):n.join(o||this.lineSeparator())},getLine:function(e){var t=this.getLineHandle(e);return t&&t.text},getLineHandle:function(e){if(Mi(this,e))return Oe(this,e)},getLineNumber:function(e){return bt(e)},getLineHandleVisualStart:function(e){return typeof e=="number"&&(e=Oe(this,e)),Fn(e)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(e){return Ce(this,e)},getCursor:function(e){var t=this.sel.primary(),o;return e==null||e=="head"?o=t.head:e=="anchor"?o=t.anchor:e=="end"||e=="to"||e===!1?o=t.to():o=t.from(),o},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:z(function(e,t,o){cu(this,Ce(this,typeof e=="number"?oe(e,t||0):e),null,o)}),setSelection:z(function(e,t,o){cu(this,Ce(this,e),Ce(this,t||e),o)}),extendSelection:z(function(e,t,o){Yl(this,Ce(this,e),t&&Ce(this,t),o)}),extendSelections:z(function(e,t){ja(this,qr(this,e),t)}),extendSelectionsBy:z(function(e,t){var o=ht(this.sel.ranges,e);ja(this,qr(this,o),t)}),setSelections:z(function(e,t,o){if(!!e.length){for(var n=[],u=0;u<e.length;u++)n[u]=new mt(Ce(this,e[u].anchor),Ce(this,e[u].head||e[u].anchor));t==null&&(t=Math.min(e.length-1,this.sel.primIndex)),cr(this,wr(this.cm,n,t),o)}}),addSelection:z(function(e,t,o){var n=this.sel.ranges.slice(0);n.push(new mt(Ce(this,e),Ce(this,t||e))),cr(this,wr(this.cm,n,n.length-1),o)}),getSelection:function(e){for(var t=this.sel.ranges,o,n=0;n<t.length;n++){var u=tn(this,t[n].from(),t[n].to());o=o?o.concat(u):u}return e===!1?o:o.join(e||this.lineSeparator())},getSelections:function(e){for(var t=[],o=this.sel.ranges,n=0;n<o.length;n++){var u=tn(this,o[n].from(),o[n].to());e!==!1&&(u=u.join(e||this.lineSeparator())),t[n]=u}return t},replaceSelection:function(e,t,o){for(var n=[],u=0;u<this.sel.ranges.length;u++)n[u]=e;this.replaceSelections(n,t,o||"+input")},replaceSelections:z(function(e,t,o){for(var n=[],u=this.sel,h=0;h<u.ranges.length;h++){var p=u.ranges[h];n[h]={from:p.from(),to:p.to(),text:this.splitLines(e[h]),origin:o}}for(var m=t&&t!="end"&&A1(this,n,t),y=n.length-1;y>=0;y--)ea(this,n[y]);m?Xl(this,m):this.cm&&Ni(this.cm)}),undo:z(function(){ts(this,"undo")}),redo:z(function(){ts(this,"redo")}),undoSelection:z(function(){ts(this,"undo",!0)}),redoSelection:z(function(){ts(this,"redo",!0)}),setExtending:function(e){this.extend=e},getExtending:function(){return this.extend},historySize:function(){for(var e=this.history,t=0,o=0,n=0;n<e.done.length;n++)e.done[n].ranges||++t;for(var u=0;u<e.undone.length;u++)e.undone[u].ranges||++o;return{undo:t,redo:o}},clearHistory:function(){var e=this;this.history=new Co(this.history),Zi(this,function(t){return t.history=e.history},!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(e){return e&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(e){return this.history.generation==(e||this.cleanGeneration)},getHistory:function(){return{done:on(this.history.done),undone:on(this.history.undone)}},setHistory:function(e){var t=this.history=new Co(this.history);t.done=on(e.done.slice(0),null,!0),t.undone=on(e.undone.slice(0),null,!0)},setGutterMarker:z(function(e,t,o){return zo(this,e,"gutter",function(n){var u=n.gutterMarkers||(n.gutterMarkers={});return u[t]=o,!o&&ae(u)&&(n.gutterMarkers=null),!0})}),clearGutter:z(function(e){var t=this;this.iter(function(o){o.gutterMarkers&&o.gutterMarkers[e]&&zo(t,o,"gutter",function(){return o.gutterMarkers[e]=null,ae(o.gutterMarkers)&&(o.gutterMarkers=null),!0})})}),lineInfo:function(e){var t;if(typeof e=="number"){if(!Mi(this,e)||(t=e,e=Oe(this,e),!e))return null}else if(t=bt(e),t==null)return null;return{line:t,handle:e,text:e.text,gutterMarkers:e.gutterMarkers,textClass:e.textClass,bgClass:e.bgClass,wrapClass:e.wrapClass,widgets:e.widgets}},addLineClass:z(function(e,t,o){return zo(this,e,t=="gutter"?"gutter":"class",function(n){var u=t=="text"?"textClass":t=="background"?"bgClass":t=="gutter"?"gutterClass":"wrapClass";if(!n[u])n[u]=o;else{if(be(o).test(n[u]))return!1;n[u]+=" "+o}return!0})}),removeLineClass:z(function(e,t,o){return zo(this,e,t=="gutter"?"gutter":"class",function(n){var u=t=="text"?"textClass":t=="background"?"bgClass":t=="gutter"?"gutterClass":"wrapClass",h=n[u];if(h)if(o==null)n[u]=null;else{var p=h.match(be(o));if(!p)return!1;var m=p.index+p[0].length;n[u]=h.slice(0,p.index)+(!p.index||m==h.length?"":" ")+h.slice(m)||null}else return!1;return!0})}),addLineWidget:z(function(e,t,o){return Gc(this,e,t,o)}),removeLineWidget:function(e){e.clear()},markText:function(e,t,o){return qi(this,Ce(this,e),Ce(this,t),o,o&&o.type||"range")},setBookmark:function(e,t){var o={replacedWith:t&&(t.nodeType==null?t.widget:t),insertLeft:t&&t.insertLeft,clearWhenEmpty:!1,shared:t&&t.shared,handleMouseEvents:t&&t.handleMouseEvents};return e=Ce(this,e),qi(this,e,e,o,"bookmark")},findMarksAt:function(e){e=Ce(this,e);var t=[],o=Oe(this,e.line).markedSpans;if(o)for(var n=0;n<o.length;++n){var u=o[n];(u.from==null||u.from<=e.ch)&&(u.to==null||u.to>=e.ch)&&t.push(u.marker.parent||u.marker)}return t},findMarks:function(e,t,o){e=Ce(this,e),t=Ce(this,t);var n=[],u=e.line;return this.iter(e.line,t.line+1,function(h){var p=h.markedSpans;if(p)for(var m=0;m<p.length;m++){var y=p[m];!(y.to!=null&&u==e.line&&e.ch>=y.to||y.from==null&&u!=e.line||y.from!=null&&u==t.line&&y.from>=t.ch)&&(!o||o(y.marker))&&n.push(y.marker.parent||y.marker)}++u}),n},getAllMarks:function(){var e=[];return this.iter(function(t){var o=t.markedSpans;if(o)for(var n=0;n<o.length;++n)o[n].from!=null&&e.push(o[n].marker)}),e},posFromIndex:function(e){var t,o=this.first,n=this.lineSeparator().length;return this.iter(function(u){var h=u.text.length+n;if(h>e)return t=e,!0;e-=h,++o}),Ce(this,oe(o,t))},indexFromPos:function(e){e=Ce(this,e);var t=e.ch;if(e.line<this.first||e.ch<0)return 0;var o=this.lineSeparator().length;return this.iter(this.first,e.line,function(n){t+=n.text.length+o}),t},copy:function(e){var t=new Sr(Ta(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return t.scrollTop=this.scrollTop,t.scrollLeft=this.scrollLeft,t.sel=this.sel,t.extend=!1,e&&(t.history.undoDepth=this.history.undoDepth,t.setHistory(this.getHistory())),t},linkedDoc:function(e){e||(e={});var t=this.first,o=this.first+this.size;e.from!=null&&e.from>t&&(t=e.from),e.to!=null&&e.to<o&&(o=e.to);var n=new Sr(Ta(this,t,o),e.mode||this.modeOption,t,this.lineSep,this.direction);return e.sharedHist&&(n.history=this.history),(this.linked||(this.linked=[])).push({doc:n,sharedHist:e.sharedHist}),n.linked=[{doc:this,isParent:!0,sharedHist:e.sharedHist}],ns(n,du(this)),n},unlinkDoc:function(e){if(e instanceof Mt&&(e=e.doc),this.linked)for(var t=0;t<this.linked.length;++t){var o=this.linked[t];if(o.doc==e){this.linked.splice(t,1),e.unlinkDoc(this),R1(du(this));break}}if(e.history==this.history){var n=[e.id];Zi(e,function(u){return n.push(u.id)},!0),e.history=new Co(null),e.history.done=on(this.history.done,n),e.history.undone=on(this.history.undone,n)}},iterLinkedDocs:function(e){Zi(this,e)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(e){return this.lineSep?e.split(this.lineSep):ao(e)},lineSeparator:function(){return this.lineSep||`
2324
- `},setDirection:z(function(e){e!="rtl"&&(e="ltr"),e!=this.direction&&(this.direction=e,this.iter(function(t){return t.order=null}),this.cm&&qa(this.cm))})}),Sr.prototype.eachLine=Sr.prototype.iter;var jc=0;function Kc(e){var t=this;if(hu(t),!(Vt(t,e)||oi(t.display,e))){ur(e),T&&(jc=+new Date);var o=Un(t,e,!0),n=e.dataTransfer.files;if(!(!o||t.isReadOnly()))if(n&&n.length&&window.FileReader&&window.File)for(var u=n.length,h=Array(u),p=0,m=function(){++p==u&&Ft(t,function(){o=Ce(t.doc,o);var D={from:o,to:o,text:t.doc.splitLines(h.filter(function(q){return q!=null}).join(t.doc.lineSeparator())),origin:"paste"};ea(t.doc,D),Xl(t.doc,Wi(Ce(t.doc,o),Ce(t.doc,Ui(D))))})()},y=function(D,q){if(t.options.allowDropFileTypes&&_e(t.options.allowDropFileTypes,D.type)==-1){m();return}var te=new FileReader;te.onerror=function(){return m()},te.onload=function(){var ue=te.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(ue)){m();return}h[q]=ue,m()},te.readAsText(D)},C=0;C<n.length;C++)y(n[C],C);else{if(t.state.draggingText&&t.doc.sel.contains(o)>-1){t.state.draggingText(e),setTimeout(function(){return t.display.input.focus()},20);return}try{var _=e.dataTransfer.getData("Text");if(_){var M;if(t.state.draggingText&&!t.state.draggingText.copy&&(M=t.listSelections()),an(t.doc,Wi(o,o)),M)for(var N=0;N<M.length;++N)na(t.doc,"",M[N].anchor,M[N].head,"drag");t.replaceSelection(_,"around","paste"),t.display.input.focus()}}catch{}}}}function N1(e,t){if(T&&(!e.state.draggingText||+new Date-jc<100)){io(t);return}if(!(Vt(e,t)||oi(e.display,t))&&(t.dataTransfer.setData("Text",e.getSelection()),t.dataTransfer.effectAllowed="copyMove",t.dataTransfer.setDragImage&&!re)){var o=P("img",null,null,"position: fixed; left: 0; top: 0;");o.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",Z&&(o.width=o.height=1,e.display.wrapper.appendChild(o),o._top=o.offsetTop),t.dataTransfer.setDragImage(o,0,0),Z&&o.parentNode.removeChild(o)}}function fu(e,t){var o=Un(e,t);if(!!o){var n=document.createDocumentFragment();li(e,o,n),e.display.dragCursor||(e.display.dragCursor=P("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),e.display.lineSpace.insertBefore(e.display.dragCursor,e.display.cursorDiv)),G(e.display.dragCursor,n)}}function hu(e){e.display.dragCursor&&(e.display.lineSpace.removeChild(e.display.dragCursor),e.display.dragCursor=null)}function is(e){if(!!document.getElementsByClassName){for(var t=document.getElementsByClassName("CodeMirror"),o=[],n=0;n<t.length;n++){var u=t[n].CodeMirror;u&&o.push(u)}o.length&&o[0].operation(function(){for(var h=0;h<o.length;h++)e(o[h])})}}var Yc=!1;function pu(){Yc||(st(),Yc=!0)}function st(){var e;Ne(window,"resize",function(){e==null&&(e=setTimeout(function(){e=null,is(H1)},100))}),Ne(window,"blur",function(){return is(vo)})}function H1(e){var t=e.display;t.cachedCharWidth=t.cachedTextHeight=t.cachedPaddingH=null,t.scrollbarsClipped=!1,e.setSize()}for(var ji={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"},si=0;si<10;si++)ji[si+48]=ji[si+96]=String(si);for(var Qa=65;Qa<=90;Qa++)ji[Qa]=String.fromCharCode(Qa);for(var Ja=1;Ja<=12;Ja++)ji[Ja+111]=ji[Ja+63235]="F"+Ja;var ui={};ui.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"},ui.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"},ui.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"},ui.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"]},ui.default=de?ui.macDefault:ui.pcDefault;function pn(e){var t=e.split(/-(?!$)/);e=t[t.length-1];for(var o,n,u,h,p=0;p<t.length-1;p++){var m=t[p];if(/^(cmd|meta|m)$/i.test(m))h=!0;else if(/^a(lt)?$/i.test(m))o=!0;else if(/^(c|ctrl|control)$/i.test(m))n=!0;else if(/^s(hift)?$/i.test(m))u=!0;else throw new Error("Unrecognized modifier name: "+m)}return o&&(e="Alt-"+e),n&&(e="Ctrl-"+e),h&&(e="Cmd-"+e),u&&(e="Shift-"+e),e}function B1(e){var t={};for(var o in e)if(e.hasOwnProperty(o)){var n=e[o];if(/^(name|fallthrough|(de|at)tach)$/.test(o))continue;if(n=="..."){delete e[o];continue}for(var u=ht(o.split(" "),pn),h=0;h<u.length;h++){var p=void 0,m=void 0;h==u.length-1?(m=u.join(" "),p=n):(m=u.slice(0,h+1).join(" "),p="...");var y=t[m];if(!y)t[m]=p;else if(y!=p)throw new Error("Inconsistent bindings for "+m)}delete e[o]}for(var C in t)e[C]=t[C];return e}function ci(e,t,o,n){t=Mr(t);var u=t.call?t.call(e,n):t[e];if(u===!1)return"nothing";if(u==="...")return"multi";if(u!=null&&o(u))return"handled";if(t.fallthrough){if(Object.prototype.toString.call(t.fallthrough)!="[object Array]")return ci(e,t.fallthrough,o,n);for(var h=0;h<t.fallthrough.length;h++){var p=ci(e,t.fallthrough[h],o,n);if(p)return p}}}function os(e){var t=typeof e=="string"?e:ji[e.keyCode];return t=="Ctrl"||t=="Alt"||t=="Shift"||t=="Mod"}function gu(e,t,o){var n=e;return t.altKey&&n!="Alt"&&(e="Alt-"+e),(je?t.metaKey:t.ctrlKey)&&n!="Ctrl"&&(e="Ctrl-"+e),(je?t.ctrlKey:t.metaKey)&&n!="Mod"&&(e="Cmd-"+e),!o&&t.shiftKey&&n!="Shift"&&(e="Shift-"+e),e}function vu(e,t){if(Z&&e.keyCode==34&&e.char)return!1;var o=ji[e.keyCode];return o==null||e.altGraphKey?!1:(e.keyCode==3&&e.code&&(o=e.code),gu(o,e,t))}function Mr(e){return typeof e=="string"?ui[e]:e}function ln(e,t){for(var o=e.doc.sel.ranges,n=[],u=0;u<o.length;u++){for(var h=t(o[u]);n.length&&w(h.from,Ke(n).to)<=0;){var p=n.pop();if(w(p.from,h.from)<0){h.from=p.from;break}}n.push(h)}yr(e,function(){for(var m=n.length-1;m>=0;m--)na(e.doc,"",n[m].from,n[m].to,"+delete");Ni(e)})}function el(e,t,o){var n=tr(e.text,t+o,o);return n<0||n>e.text.length?null:n}function as(e,t,o){var n=el(e,t.ch,o);return n==null?null:new oe(t.line,n,o<0?"after":"before")}function la(e,t,o,n,u){if(e){t.doc.direction=="rtl"&&(u=-u);var h=_r(o,t.doc.direction);if(h){var p=u<0?Ke(h):h[0],m=u<0==(p.level==1),y=m?"after":"before",C;if(p.level>0||t.doc.direction=="rtl"){var _=En(t,o);C=u<0?o.text.length-1:0;var M=Wn(t,_,C).top;C=pr(function(N){return Wn(t,_,N).top==M},u<0==(p.level==1)?p.from:p.to-1,C),y=="before"&&(C=el(o,C,1))}else C=u<0?p.to:p.from;return new oe(n,C,y)}}return new oe(n,u<0?o.text.length:0,u<0?"before":"after")}function Xc(e,t,o,n){var u=_r(t,e.doc.direction);if(!u)return as(t,o,n);o.ch>=t.text.length?(o.ch=t.text.length,o.sticky="before"):o.ch<=0&&(o.ch=0,o.sticky="after");var h=Rt(u,o.ch,o.sticky),p=u[h];if(e.doc.direction=="ltr"&&p.level%2==0&&(n>0?p.to>o.ch:p.from<o.ch))return as(t,o,n);var m=function(fe,we){return el(t,fe instanceof oe?fe.ch:fe,we)},y,C=function(fe){return e.options.lineWrapping?(y=y||En(e,t),V(e,t,y,fe)):{begin:0,end:t.text.length}},_=C(o.sticky=="before"?m(o,-1):o.ch);if(e.doc.direction=="rtl"||p.level==1){var M=p.level==1==n<0,N=m(o,M?1:-1);if(N!=null&&(M?N<=p.to&&N<=_.end:N>=p.from&&N>=_.begin)){var D=M?"before":"after";return new oe(o.line,N,D)}}var q=function(fe,we,he){for(var xe=function(xt,Xt){return Xt?new oe(o.line,m(xt,1),"before"):new oe(o.line,xt,"after")};fe>=0&&fe<u.length;fe+=we){var $e=u[fe],Pe=we>0==($e.level!=1),ot=Pe?he.begin:m(he.end,-1);if($e.from<=ot&&ot<$e.to||(ot=Pe?$e.from:m($e.to,-1),he.begin<=ot&&ot<he.end))return xe(ot,Pe)}},te=q(h+n,n,_);if(te)return te;var ue=n>0?_.end:m(_.begin,-1);return ue!=null&&!(n>0&&ue==t.text.length)&&(te=q(n>0?0:u.length-1,n,C(ue)),te)?te:null}var Lo={selectAll:Bc,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),nt)},killLine:function(e){return ln(e,function(t){if(t.empty()){var o=Oe(e.doc,t.head.line).text.length;return t.head.ch==o&&t.head.line<e.lastLine()?{from:t.head,to:oe(t.head.line+1,0)}:{from:t.head,to:oe(t.head.line,o)}}else return{from:t.from(),to:t.to()}})},deleteLine:function(e){return ln(e,function(t){return{from:oe(t.from().line,0),to:Ce(e.doc,oe(t.to().line+1,0))}})},delLineLeft:function(e){return ln(e,function(t){return{from:oe(t.from().line,0),to:t.from()}})},delWrappedLineLeft:function(e){return ln(e,function(t){var o=e.charCoords(t.head,"div").top+5,n=e.coordsChar({left:0,top:o},"div");return{from:n,to:t.from()}})},delWrappedLineRight:function(e){return ln(e,function(t){var o=e.charCoords(t.head,"div").top+5,n=e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:o},"div");return{from:t.from(),to:n}})},undo:function(e){return e.undo()},redo:function(e){return e.redo()},undoSelection:function(e){return e.undoSelection()},redoSelection:function(e){return e.redoSelection()},goDocStart:function(e){return e.extendSelection(oe(e.firstLine(),0))},goDocEnd:function(e){return e.extendSelection(oe(e.lastLine()))},goLineStart:function(e){return e.extendSelectionsBy(function(t){return bu(e,t.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(e){return e.extendSelectionsBy(function(t){return ls(e,t.head)},{origin:"+move",bias:1})},goLineEnd:function(e){return e.extendSelectionsBy(function(t){return mu(e,t.head.line)},{origin:"+move",bias:-1})},goLineRight:function(e){return e.extendSelectionsBy(function(t){var o=e.cursorCoords(t.head,"div").top+5;return e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:o},"div")},We)},goLineLeft:function(e){return e.extendSelectionsBy(function(t){var o=e.cursorCoords(t.head,"div").top+5;return e.coordsChar({left:0,top:o},"div")},We)},goLineLeftSmart:function(e){return e.extendSelectionsBy(function(t){var o=e.cursorCoords(t.head,"div").top+5,n=e.coordsChar({left:0,top:o},"div");return n.ch<e.getLine(n.line).search(/\S/)?ls(e,t.head):n},We)},goLineUp:function(e){return e.moveV(-1,"line")},goLineDown:function(e){return e.moveV(1,"line")},goPageUp:function(e){return e.moveV(-1,"page")},goPageDown:function(e){return e.moveV(1,"page")},goCharLeft:function(e){return e.moveH(-1,"char")},goCharRight:function(e){return e.moveH(1,"char")},goColumnLeft:function(e){return e.moveH(-1,"column")},goColumnRight:function(e){return e.moveH(1,"column")},goWordLeft:function(e){return e.moveH(-1,"word")},goGroupRight:function(e){return e.moveH(1,"group")},goGroupLeft:function(e){return e.moveH(-1,"group")},goWordRight:function(e){return e.moveH(1,"word")},delCharBefore:function(e){return e.deleteH(-1,"codepoint")},delCharAfter:function(e){return e.deleteH(1,"char")},delWordBefore:function(e){return e.deleteH(-1,"word")},delWordAfter:function(e){return e.deleteH(1,"word")},delGroupBefore:function(e){return e.deleteH(-1,"group")},delGroupAfter:function(e){return e.deleteH(1,"group")},indentAuto:function(e){return e.indentSelection("smart")},indentMore:function(e){return e.indentSelection("add")},indentLess:function(e){return e.indentSelection("subtract")},insertTab:function(e){return e.replaceSelection(" ")},insertSoftTab:function(e){for(var t=[],o=e.listSelections(),n=e.options.tabSize,u=0;u<o.length;u++){var h=o[u].from(),p=At(e.getLine(h.line),h.ch,n);t.push(Yt(n-p%n))}e.replaceSelections(t)},defaultTab:function(e){e.somethingSelected()?e.indentSelection("add"):e.execCommand("insertTab")},transposeChars:function(e){return yr(e,function(){for(var t=e.listSelections(),o=[],n=0;n<t.length;n++)if(!!t[n].empty()){var u=t[n].head,h=Oe(e.doc,u.line).text;if(h){if(u.ch==h.length&&(u=new oe(u.line,u.ch-1)),u.ch>0)u=new oe(u.line,u.ch+1),e.replaceRange(h.charAt(u.ch-1)+h.charAt(u.ch-2),oe(u.line,u.ch-2),u,"+transpose");else if(u.line>e.doc.first){var p=Oe(e.doc,u.line-1).text;p&&(u=new oe(u.line,1),e.replaceRange(h.charAt(0)+e.doc.lineSeparator()+p.charAt(p.length-1),oe(u.line-1,p.length-1),u,"+transpose"))}}o.push(new mt(u,u))}e.setSelections(o)})},newlineAndIndent:function(e){return yr(e,function(){for(var t=e.listSelections(),o=t.length-1;o>=0;o--)e.replaceRange(e.doc.lineSeparator(),t[o].anchor,t[o].head,"+input");t=e.listSelections();for(var n=0;n<t.length;n++)e.indentLine(t[n].from().line,null,!0);Ni(e)})},openLine:function(e){return e.replaceSelection(`
2325
- `,"start")},toggleOverwrite:function(e){return e.toggleOverwrite()}};function bu(e,t){var o=Oe(e.doc,t),n=Fn(o);return n!=o&&(t=bt(n)),la(!0,e,n,t,1)}function mu(e,t){var o=Oe(e.doc,t),n=d1(o);return n!=o&&(t=bt(n)),la(!0,e,o,t,-1)}function ls(e,t){var o=bu(e,t.line),n=Oe(e.doc,o.line),u=_r(n,e.doc.direction);if(!u||u[0].level==0){var h=Math.max(o.ch,n.text.search(/\S/)),p=t.line==o.line&&t.ch<=h&&t.ch;return oe(o.line,p?0:h,o.sticky)}return o}function An(e,t,o){if(typeof t=="string"&&(t=Lo[t],!t))return!1;e.display.input.ensurePolled();var n=e.display.shift,u=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),o&&(e.display.shift=!1),u=t(e)!=Ue}finally{e.display.shift=n,e.state.suppressEdits=!1}return u}function F1(e,t,o){for(var n=0;n<e.state.keyMaps.length;n++){var u=ci(t,e.state.keyMaps[n],o,e);if(u)return u}return e.options.extraKeys&&ci(t,e.options.extraKeys,o,e)||ci(t,e.options.keyMap,o,e)}var Ki=new at;function sa(e,t,o,n){var u=e.state.keySeq;if(u){if(os(t))return"handled";if(/\'$/.test(t)?e.state.keySeq=null:Ki.set(50,function(){e.state.keySeq==u&&(e.state.keySeq=null,e.display.input.reset())}),yu(e,u+" "+t,o,n))return!0}return yu(e,t,o,n)}function yu(e,t,o,n){var u=F1(e,t,n);return u=="multi"&&(e.state.keySeq=t),u=="handled"&&rr(e,"keyHandled",e,t,o),(u=="handled"||u=="multi")&&(ur(o),qo(e)),!!u}function ss(e,t){var o=vu(t,!0);return o?t.shiftKey&&!e.state.keySeq?sa(e,"Shift-"+o,t,function(n){return An(e,n,!0)})||sa(e,o,t,function(n){if(typeof n=="string"?/^go[A-Z]/.test(n):n.motion)return An(e,n)}):sa(e,o,t,function(n){return An(e,n)}):!1}function W1(e,t,o){return sa(e,"'"+o+"'",t,function(n){return An(e,n,!0)})}var Cu=null;function Qc(e){var t=this;if(!(e.target&&e.target!=t.display.input.getField())&&(t.curOp.focus=rt(),!Vt(t,e))){T&&k<11&&e.keyCode==27&&(e.returnValue=!1);var o=e.keyCode;t.display.shift=o==16||e.shiftKey;var n=ss(t,e);Z&&(Cu=n?o:null,!n&&o==88&&!zl&&(de?e.metaKey:e.ctrlKey)&&t.replaceSelection("",null,"cut")),c&&!de&&!n&&o==46&&e.shiftKey&&!e.ctrlKey&&document.execCommand&&document.execCommand("cut"),o==18&&!/\bCodeMirror-crosshair\b/.test(t.display.lineDiv.className)&&Jc(t)}}function Jc(e){var t=e.display.lineDiv;Lt(t,"CodeMirror-crosshair");function o(n){(n.keyCode==18||!n.altKey)&&(ye(t,"CodeMirror-crosshair"),gr(document,"keyup",o),gr(document,"mouseover",o))}Ne(document,"keyup",o),Ne(document,"mouseover",o)}function wu(e){e.keyCode==16&&(this.doc.sel.shift=!1),Vt(this,e)}function e0(e){var t=this;if(!(e.target&&e.target!=t.display.input.getField())&&!(oi(t.display,e)||Vt(t,e)||e.ctrlKey&&!e.altKey||de&&e.metaKey)){var o=e.keyCode,n=e.charCode;if(Z&&o==Cu){Cu=null,ur(e);return}if(!(Z&&(!e.which||e.which<10)&&ss(t,e))){var u=String.fromCharCode(n==null?o:n);u!="\b"&&(W1(t,e,u)||t.display.input.onKeyPress(e))}}}var t0=400,us=function(e,t,o){this.time=e,this.pos=t,this.button=o};us.prototype.compare=function(e,t,o){return this.time+t0>e&&w(t,this.pos)==0&&o==this.button};var fr,Yr;function U1(e,t){var o=+new Date;return Yr&&Yr.compare(o,e,t)?(fr=Yr=null,"triple"):fr&&fr.compare(o,e,t)?(Yr=new us(o,e,t),fr=null,"double"):(fr=new us(o,e,t),Yr=null,"single")}function r0(e){var t=this,o=t.display;if(!(Vt(t,e)||o.activeTouch&&o.input.supportsTouch())){if(o.input.ensurePolled(),o.shift=e.shiftKey,oi(o,e)){A||(o.scroller.draggable=!1,setTimeout(function(){return o.scroller.draggable=!0},100));return}if(!xu(t,e)){var n=Un(t,e),u=_a(e),h=n?U1(n,u):"single";window.focus(),u==1&&t.state.selectingText&&t.state.selectingText(e),!(n&&cs(t,u,n,h,e))&&(u==1?n?n0(t,n,h,e):_i(e)==o.scroller&&ur(e):u==2?(n&&Yl(t.doc,n),setTimeout(function(){return o.input.focus()},20)):u==3&&(Ye?t.display.input.onContextMenu(e):Wl(t)))}}}function cs(e,t,o,n,u){var h="Click";return n=="double"?h="Double"+h:n=="triple"&&(h="Triple"+h),h=(t==1?"Left":t==2?"Middle":"Right")+h,sa(e,gu(h,u),u,function(p){if(typeof p=="string"&&(p=Lo[p]),!p)return!1;var m=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),m=p(e,o)!=Ue}finally{e.state.suppressEdits=!1}return m})}function ua(e,t,o){var n=e.getOption("configureMouse"),u=n?n(e,t,o):{};if(u.unit==null){var h=ke?o.shiftKey&&o.metaKey:o.altKey;u.unit=h?"rectangle":t=="single"?"char":t=="double"?"word":"line"}return(u.extend==null||e.doc.extend)&&(u.extend=e.doc.extend||o.shiftKey),u.addNew==null&&(u.addNew=de?o.metaKey:o.ctrlKey),u.moveOnDrag==null&&(u.moveOnDrag=!(de?o.altKey:o.ctrlKey)),u}function n0(e,t,o,n){T?setTimeout(Xr(Xs,e),0):e.curOp.focus=rt();var u=ua(e,o,n),h=e.doc.sel,p;e.options.dragDrop&&Sa&&!e.isReadOnly()&&o=="single"&&(p=h.contains(t))>-1&&(w((p=h.ranges[p]).from(),t)<0||t.xRel>0)&&(w(p.to(),t)>0||t.xRel<0)?i0(e,n,t,u):a0(e,n,t,u)}function i0(e,t,o,n){var u=e.display,h=!1,p=Ft(e,function(C){A&&(u.scroller.draggable=!1),e.state.draggingText=!1,e.state.delayingBlurEvent&&(e.hasFocus()?e.state.delayingBlurEvent=!1:Wl(e)),gr(u.wrapper.ownerDocument,"mouseup",p),gr(u.wrapper.ownerDocument,"mousemove",m),gr(u.scroller,"dragstart",y),gr(u.scroller,"drop",p),h||(ur(C),n.addNew||Yl(e.doc,o,null,null,n.extend),A&&!re||T&&k==9?setTimeout(function(){u.wrapper.ownerDocument.body.focus({preventScroll:!0}),u.input.focus()},20):u.input.focus())}),m=function(C){h=h||Math.abs(t.clientX-C.clientX)+Math.abs(t.clientY-C.clientY)>=10},y=function(){return h=!0};A&&(u.scroller.draggable=!0),e.state.draggingText=p,p.copy=!n.moveOnDrag,Ne(u.wrapper.ownerDocument,"mouseup",p),Ne(u.wrapper.ownerDocument,"mousemove",m),Ne(u.scroller,"dragstart",y),Ne(u.scroller,"drop",p),e.state.delayingBlurEvent=!0,setTimeout(function(){return u.input.focus()},20),u.scroller.dragDrop&&u.scroller.dragDrop()}function o0(e,t,o){if(o=="char")return new mt(t,t);if(o=="word")return e.findWordAt(t);if(o=="line")return new mt(oe(t.line,0),Ce(e.doc,oe(t.line+1,0)));var n=o(e,t);return new mt(n.from,n.to)}function a0(e,t,o,n){T&&Wl(e);var u=e.display,h=e.doc;ur(t);var p,m,y=h.sel,C=y.ranges;if(n.addNew&&!n.extend?(m=h.sel.contains(o),m>-1?p=C[m]:p=new mt(o,o)):(p=h.sel.primary(),m=h.sel.primIndex),n.unit=="rectangle")n.addNew||(p=new mt(o,o)),o=Un(e,t,!0,!0),m=-1;else{var _=o0(e,o,n.unit);n.extend?p=Kl(p,_.anchor,_.head,n.extend):p=_}n.addNew?m==-1?(m=C.length,cr(h,wr(e,C.concat([p]),m),{scroll:!1,origin:"*mouse"})):C.length>1&&C[m].empty()&&n.unit=="char"&&!n.extend?(cr(h,wr(e,C.slice(0,m).concat(C.slice(m+1)),0),{scroll:!1,origin:"*mouse"}),y=h.sel):uu(h,m,p,it):(m=0,cr(h,new nn([p],0),it),y=h.sel);var M=o;function N(he){if(w(M,he)!=0)if(M=he,n.unit=="rectangle"){for(var xe=[],$e=e.options.tabSize,Pe=At(Oe(h,o.line).text,o.ch,$e),ot=At(Oe(h,he.line).text,he.ch,$e),xt=Math.min(Pe,ot),Xt=Math.max(Pe,ot),kt=Math.min(o.line,he.line),Or=Math.min(e.lastLine(),Math.max(o.line,he.line));kt<=Or;kt++){var Tr=Oe(h,kt).text,Gt=Nt(Tr,xt,$e);xt==Xt?xe.push(new mt(oe(kt,Gt),oe(kt,Gt))):Tr.length>Gt&&xe.push(new mt(oe(kt,Gt),oe(kt,Nt(Tr,Xt,$e))))}xe.length||xe.push(new mt(o,o)),cr(h,wr(e,y.ranges.slice(0,m).concat(xe),m),{origin:"*mouse",scroll:!1}),e.scrollIntoView(he)}else{var hr=p,ir=o0(e,he,n.unit),St=hr.anchor,Et;w(ir.anchor,St)>0?(Et=ir.head,St=Ge(hr.from(),ir.anchor)):(Et=ir.anchor,St=le(hr.to(),ir.head));var Wt=y.ranges.slice(0);Wt[m]=ca(e,new mt(Ce(h,St),Et)),cr(h,wr(e,Wt,m),it)}}var D=u.wrapper.getBoundingClientRect(),q=0;function te(he){var xe=++q,$e=Un(e,he,!0,n.unit=="rectangle");if(!!$e)if(w($e,M)!=0){e.curOp.focus=rt(),N($e);var Pe=bo(u,h);($e.line>=Pe.to||$e.line<Pe.from)&&setTimeout(Ft(e,function(){q==xe&&te(he)}),150)}else{var ot=he.clientY<D.top?-20:he.clientY>D.bottom?20:0;ot&&setTimeout(Ft(e,function(){q==xe&&(u.scroller.scrollTop+=ot,te(he))}),50)}}function ue(he){e.state.selectingText=!1,q=1/0,he&&(ur(he),u.input.focus()),gr(u.wrapper.ownerDocument,"mousemove",fe),gr(u.wrapper.ownerDocument,"mouseup",we),h.history.lastSelOrigin=null}var fe=Ft(e,function(he){he.buttons===0||!_a(he)?ue(he):te(he)}),we=Ft(e,ue);e.state.selectingText=we,Ne(u.wrapper.ownerDocument,"mousemove",fe),Ne(u.wrapper.ownerDocument,"mouseup",we)}function ca(e,t){var o=t.anchor,n=t.head,u=Oe(e.doc,o.line);if(w(o,n)==0&&o.sticky==n.sticky)return t;var h=_r(u);if(!h)return t;var p=Rt(h,o.ch,o.sticky),m=h[p];if(m.from!=o.ch&&m.to!=o.ch)return t;var y=p+(m.from==o.ch==(m.level!=1)?0:1);if(y==0||y==h.length)return t;var C;if(n.line!=o.line)C=(n.line-o.line)*(e.doc.direction=="ltr"?1:-1)>0;else{var _=Rt(h,n.ch,n.sticky),M=_-p||(n.ch-o.ch)*(m.level==1?-1:1);_==y-1||_==y?C=M<0:C=M>0}var N=h[y+(C?-1:0)],D=C==(N.level==1),q=D?N.from:N.to,te=D?"after":"before";return o.ch==q&&o.sticky==te?t:new mt(new oe(o.line,q,te),n)}function da(e,t,o,n){var u,h;if(t.touches)u=t.touches[0].clientX,h=t.touches[0].clientY;else try{u=t.clientX,h=t.clientY}catch{return!1}if(u>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;n&&ur(t);var p=e.display,m=p.lineDiv.getBoundingClientRect();if(h>m.bottom||!sr(e,o))return Qr(t);h-=m.top-p.viewOffset;for(var y=0;y<e.display.gutterSpecs.length;++y){var C=p.gutters.childNodes[y];if(C&&C.getBoundingClientRect().right>=u){var _=On(e.doc,h),M=e.display.gutterSpecs[y];return Ze(e,o,e,_,M.className,t),Qr(t)}}}function xu(e,t){return da(e,t,"gutterClick",!0)}function zu(e,t){oi(e.display,t)||l0(e,t)||Vt(e,t,"contextmenu")||Ye||e.display.input.onContextMenu(t)}function l0(e,t){return sr(e,"gutterContextMenu")?da(e,t,"gutterContextMenu",!1):!1}function tl(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),Na(e)}var _o={toString:function(){return"CodeMirror.Init"}},rl={},fa={};function ds(e){var t=e.optionHandlers;function o(n,u,h,p){e.defaults[n]=u,h&&(t[n]=p?function(m,y,C){C!=_o&&h(m,y,C)}:h)}e.defineOption=o,e.Init=_o,o("value","",function(n,u){return n.setValue(u)},!0),o("mode",null,function(n,u){n.doc.modeOption=u,iu(n)},!0),o("indentUnit",2,iu,!0),o("indentWithTabs",!1),o("smartIndent",!0),o("tabSize",4,function(n){Va(n),Na(n),tt(n)},!0),o("lineSeparator",null,function(n,u){if(n.doc.lineSep=u,!!u){var h=[],p=n.doc.first;n.doc.iter(function(y){for(var C=0;;){var _=y.text.indexOf(u,C);if(_==-1)break;C=_+u.length,h.push(oe(p,_))}p++});for(var m=h.length-1;m>=0;m--)na(n.doc,u,h[m],oe(h[m].line,h[m].ch+u.length))}}),o("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(n,u,h){n.state.specialChars=new RegExp(u.source+(u.test(" ")?"":"| "),"g"),h!=_o&&n.refresh()}),o("specialCharPlaceholder",rn,function(n){return n.refresh()},!0),o("electricChars",!0),o("inputStyle",pe?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),o("spellcheck",!1,function(n,u){return n.getInputField().spellcheck=u},!0),o("autocorrect",!1,function(n,u){return n.getInputField().autocorrect=u},!0),o("autocapitalize",!1,function(n,u){return n.getInputField().autocapitalize=u},!0),o("rtlMoveVisually",!Ee),o("wholeLineUpdateBefore",!0),o("theme","default",function(n){tl(n),Ga(n)},!0),o("keyMap","default",function(n,u,h){var p=Mr(u),m=h!=_o&&Mr(h);m&&m.detach&&m.detach(n,p),p.attach&&p.attach(n,m||null)}),o("extraKeys",null),o("configureMouse",null),o("lineWrapping",!1,s0,!0),o("gutters",[],function(n,u){n.display.gutterSpecs=ru(u,n.options.lineNumbers),Ga(n)},!0),o("fixedGutter",!0,function(n,u){n.display.gutters.style.left=u?Vo(n.display)+"px":"0",n.refresh()},!0),o("coverGutterNextToScrollbar",!1,function(n){return Bi(n)},!0),o("scrollbarStyle","native",function(n){yo(n),Bi(n),n.display.scrollbars.setScrollTop(n.doc.scrollTop),n.display.scrollbars.setScrollLeft(n.doc.scrollLeft)},!0),o("lineNumbers",!1,function(n,u){n.display.gutterSpecs=ru(n.options.gutters,u),Ga(n)},!0),o("firstLineNumber",1,Ga,!0),o("lineNumberFormatter",function(n){return n},Ga,!0),o("showCursorWhenSelecting",!1,Ha,!0),o("resetSelectionOnContextMenu",!0),o("lineWiseCopyCut",!0),o("pasteLinesPerSelection",!0),o("selectionsMayTouch",!1),o("readOnly",!1,function(n,u){u=="nocursor"&&(vo(n),n.display.input.blur()),n.display.input.readOnlyChanged(u)}),o("screenReaderLabel",null,function(n,u){u=u===""?null:u,n.display.input.screenReaderLabelChanged(u)}),o("disableInput",!1,function(n,u){u||n.display.input.reset()},!0),o("dragDrop",!0,Z1),o("allowDropFileTypes",null),o("cursorBlinkRate",530),o("cursorScrollMargin",0),o("cursorHeight",1,Ha,!0),o("singleCursorHeightPerLine",!0,Ha,!0),o("workTime",100),o("workDelay",100),o("flattenSpans",!0,Va,!0),o("addModeClass",!1,Va,!0),o("pollInterval",100),o("undoDepth",200,function(n,u){return n.doc.history.undoDepth=u}),o("historyEventDelay",1250),o("viewportMargin",10,function(n){return n.refresh()},!0),o("maxHighlightLength",1e4,Va,!0),o("moveInputWithCursor",!0,function(n,u){u||n.display.input.resetPosition()}),o("tabindex",null,function(n,u){return n.display.input.getField().tabIndex=u||""}),o("autofocus",null),o("direction","ltr",function(n,u){return n.doc.setDirection(u)},!0),o("phrases",null)}function Z1(e,t,o){var n=o&&o!=_o;if(!t!=!n){var u=e.display.dragFunctions,h=t?Ne:gr;h(e.display.scroller,"dragstart",u.start),h(e.display.scroller,"dragenter",u.enter),h(e.display.scroller,"dragover",u.over),h(e.display.scroller,"dragleave",u.leave),h(e.display.scroller,"drop",u.drop)}}function s0(e){e.options.lineWrapping?(Lt(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(ye(e.display.wrapper,"CodeMirror-wrap"),$a(e)),Ai(e),tt(e),Na(e),setTimeout(function(){return Bi(e)},100)}function Mt(e,t){var o=this;if(!(this instanceof Mt))return new Mt(e,t);this.options=t=t?Ut(t):{},Ut(rl,t,!1);var n=t.value;typeof n=="string"?n=new Sr(n,t.mode,null,t.lineSeparator,t.direction):t.mode&&(n.modeOption=t.mode),this.doc=n;var u=new Mt.inputStyles[t.inputStyle](this),h=this.display=new P1(e,n,u,t);h.wrapper.CodeMirror=this,tl(this),t.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),yo(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 at,keySeq:null,specialChars:null},t.autofocus&&!pe&&h.input.focus(),T&&k<11&&setTimeout(function(){return o.display.input.reset(!0)},20),u0(this),pu(),In(this),this.curOp.forceUpdate=!0,Dc(this,n),t.autofocus&&!pe||this.hasFocus()?setTimeout(function(){o.hasFocus()&&!o.state.focused&&jo(o)},20):vo(this);for(var p in fa)fa.hasOwnProperty(p)&&fa[p](this,t[p],_o);qn(this),t.finishInit&&t.finishInit(this);for(var m=0;m<nl.length;++m)nl[m](this);Gn(this),A&&t.lineWrapping&&getComputedStyle(h.lineDiv).textRendering=="optimizelegibility"&&(h.lineDiv.style.textRendering="auto")}Mt.defaults=rl,Mt.optionHandlers=fa;function u0(e){var t=e.display;Ne(t.scroller,"mousedown",Ft(e,r0)),T&&k<11?Ne(t.scroller,"dblclick",Ft(e,function(y){if(!Vt(e,y)){var C=Un(e,y);if(!(!C||xu(e,y)||oi(e.display,y))){ur(y);var _=e.findWordAt(C);Yl(e.doc,_.anchor,_.head)}}})):Ne(t.scroller,"dblclick",function(y){return Vt(e,y)||ur(y)}),Ne(t.scroller,"contextmenu",function(y){return zu(e,y)}),Ne(t.input.getField(),"contextmenu",function(y){t.scroller.contains(y.target)||zu(e,y)});var o,n={end:0};function u(){t.activeTouch&&(o=setTimeout(function(){return t.activeTouch=null},1e3),n=t.activeTouch,n.end=+new Date)}function h(y){if(y.touches.length!=1)return!1;var C=y.touches[0];return C.radiusX<=1&&C.radiusY<=1}function p(y,C){if(C.left==null)return!0;var _=C.left-y.left,M=C.top-y.top;return _*_+M*M>20*20}Ne(t.scroller,"touchstart",function(y){if(!Vt(e,y)&&!h(y)&&!xu(e,y)){t.input.ensurePolled(),clearTimeout(o);var C=+new Date;t.activeTouch={start:C,moved:!1,prev:C-n.end<=300?n:null},y.touches.length==1&&(t.activeTouch.left=y.touches[0].pageX,t.activeTouch.top=y.touches[0].pageY)}}),Ne(t.scroller,"touchmove",function(){t.activeTouch&&(t.activeTouch.moved=!0)}),Ne(t.scroller,"touchend",function(y){var C=t.activeTouch;if(C&&!oi(t,y)&&C.left!=null&&!C.moved&&new Date-C.start<300){var _=e.coordsChar(t.activeTouch,"page"),M;!C.prev||p(C,C.prev)?M=new mt(_,_):!C.prev.prev||p(C,C.prev.prev)?M=e.findWordAt(_):M=new mt(oe(_.line,0),Ce(e.doc,oe(_.line+1,0))),e.setSelection(M.anchor,M.head),e.focus(),ur(y)}u()}),Ne(t.scroller,"touchcancel",u),Ne(t.scroller,"scroll",function(){t.scroller.clientHeight&&(Bt(e,t.scroller.scrollTop),mo(e,t.scroller.scrollLeft,!0),Ze(e,"scroll",e))}),Ne(t.scroller,"mousewheel",function(y){return Ac(e,y)}),Ne(t.scroller,"DOMMouseScroll",function(y){return Ac(e,y)}),Ne(t.wrapper,"scroll",function(){return t.wrapper.scrollTop=t.wrapper.scrollLeft=0}),t.dragFunctions={enter:function(y){Vt(e,y)||io(y)},over:function(y){Vt(e,y)||(fu(e,y),io(y))},start:function(y){return N1(e,y)},drop:Ft(e,Kc),leave:function(y){Vt(e,y)||hu(e)}};var m=t.input.getField();Ne(m,"keyup",function(y){return wu.call(e,y)}),Ne(m,"keydown",Ft(e,Qc)),Ne(m,"keypress",Ft(e,e0)),Ne(m,"focus",function(y){return jo(e,y)}),Ne(m,"blur",function(y){return vo(e,y)})}var nl=[];Mt.defineInitHook=function(e){return nl.push(e)};function il(e,t,o,n){var u=e.doc,h;o==null&&(o="add"),o=="smart"&&(u.mode.indent?h=Wo(e,t).state:o="prev");var p=e.options.tabSize,m=Oe(u,t),y=At(m.text,null,p);m.stateAfter&&(m.stateAfter=null);var C=m.text.match(/^\s*/)[0],_;if(!n&&!/\S/.test(m.text))_=0,o="not";else if(o=="smart"&&(_=u.mode.indent(h,m.text.slice(C.length),m.text),_==Ue||_>150)){if(!n)return;o="prev"}o=="prev"?t>u.first?_=At(Oe(u,t-1).text,null,p):_=0:o=="add"?_=y+e.options.indentUnit:o=="subtract"?_=y-e.options.indentUnit:typeof o=="number"&&(_=y+o),_=Math.max(0,_);var M="",N=0;if(e.options.indentWithTabs)for(var D=Math.floor(_/p);D;--D)N+=p,M+=" ";if(N<_&&(M+=Yt(_-N)),M!=C)return na(u,M,oe(t,0),oe(t,C.length),"+input"),m.stateAfter=null,!0;for(var q=0;q<u.sel.ranges.length;q++){var te=u.sel.ranges[q];if(te.head.line==t&&te.head.ch<C.length){var ue=oe(t,C.length);uu(u,q,new mt(ue,ue));break}}}var gn=null;function vn(e){gn=e}function fs(e,t,o,n,u){var h=e.doc;e.display.shift=!1,n||(n=h.sel);var p=+new Date-200,m=u=="paste"||e.state.pasteIncoming>p,y=ao(t),C=null;if(m&&n.ranges.length>1)if(gn&&gn.text.join(`
2326
- `)==t){if(n.ranges.length%gn.text.length==0){C=[];for(var _=0;_<gn.text.length;_++)C.push(h.splitLines(gn.text[_]))}}else y.length==n.ranges.length&&e.options.pasteLinesPerSelection&&(C=ht(y,function(fe){return[fe]}));for(var M=e.curOp.updateInput,N=n.ranges.length-1;N>=0;N--){var D=n.ranges[N],q=D.from(),te=D.to();D.empty()&&(o&&o>0?q=oe(q.line,q.ch-o):e.state.overwrite&&!m?te=oe(te.line,Math.min(Oe(h,te.line).text.length,te.ch+Ke(y).length)):m&&gn&&gn.lineWise&&gn.text.join(`
2327
+ left: `+t.left+"px; width: "+Math.max(2,t.right-t.left)+"px;");e.display.lineSpace.appendChild(h),h.scrollIntoView(u),e.display.lineSpace.removeChild(h)}}}function x1(e,t,o,n){n==null&&(n=0);var u;!e.options.lineWrapping&&t==o&&(o=t.sticky=="before"?oe(t.line,t.ch+1,"before"):t,t=t.ch?oe(t.line,t.sticky=="before"?t.ch-1:t.ch,"after"):t);for(var h=0;h<5;h++){var p=!1,m=Pn(e,t),y=!o||o==t?m:Pn(e,o);u={left:Math.min(m.left,y.left),top:Math.min(m.top,y.top)-n,right:Math.max(m.left,y.left),bottom:Math.max(m.bottom,y.bottom)+n};var C=Ko(e,u),_=e.doc.scrollTop,M=e.doc.scrollLeft;if(C.scrollTop!=null&&(Bt(e,C.scrollTop),Math.abs(e.doc.scrollTop-_)>1&&(p=!0)),C.scrollLeft!=null&&(mo(e,C.scrollLeft),Math.abs(e.doc.scrollLeft-M)>1&&(p=!0)),!p)break}return u}function z1(e,t){var o=Ko(e,t);o.scrollTop!=null&&Bt(e,o.scrollTop),o.scrollLeft!=null&&mo(e,o.scrollLeft)}function Ko(e,t){var o=e.display,n=Ii(e.display);t.top<0&&(t.top=0);var u=e.curOp&&e.curOp.scrollTop!=null?e.curOp.scrollTop:o.scroller.scrollTop,h=Dl(e),p={};t.bottom-t.top>h&&(t.bottom=t.top+h);var m=e.doc.height+Hr(o),y=t.top<n,C=t.bottom>m-n;if(t.top<u)p.scrollTop=y?0:t.top;else if(t.bottom>u+h){var _=Math.min(t.top,(C?m:t.bottom)-h);_!=u&&(p.scrollTop=_)}var M=e.options.fixedGutter?0:o.gutters.offsetWidth,N=e.curOp&&e.curOp.scrollLeft!=null?e.curOp.scrollLeft:o.scroller.scrollLeft-M,D=Ti(e)-o.gutters.offsetWidth,q=t.right-t.left>D;return q&&(t.right=t.left+D),t.left<10?p.scrollLeft=0:t.left<N?p.scrollLeft=Math.max(0,t.left+M-(q?0:10)):t.right>D+N-3&&(p.scrollLeft=t.right+(q?0:10)-D),p}function Yo(e,t){t!=null&&(Ul(e),e.curOp.scrollTop=(e.curOp.scrollTop==null?e.doc.scrollTop:e.curOp.scrollTop)+t)}function Ni(e){Ul(e);var t=e.getCursor();e.curOp.scrollToPos={from:t,to:t,margin:e.options.cursorScrollMargin}}function Fa(e,t,o){(t!=null||o!=null)&&Ul(e),t!=null&&(e.curOp.scrollLeft=t),o!=null&&(e.curOp.scrollTop=o)}function Oc(e,t){Ul(e),e.curOp.scrollToPos=t}function Ul(e){var t=e.curOp.scrollToPos;if(t){e.curOp.scrollToPos=null;var o=_c(e,t.from),n=_c(e,t.to);Tc(e,o,n,t.margin)}}function Tc(e,t,o,n){var u=Ko(e,{left:Math.min(t.left,o.left),top:Math.min(t.top,o.top)-n,right:Math.max(t.right,o.right),bottom:Math.max(t.bottom,o.bottom)+n});Fa(e,u.scrollLeft,u.scrollTop)}function Bt(e,t){Math.abs(e.doc.scrollTop-t)<2||(c||Js(e,{top:t}),mr(e,t,!0),c&&Js(e),Gn(e,100))}function mr(e,t,o){t=Math.max(0,Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,t)),!(e.display.scroller.scrollTop==t&&!o)&&(e.doc.scrollTop=t,e.display.scrollbars.setScrollTop(t),e.display.scroller.scrollTop!=t&&(e.display.scroller.scrollTop=t))}function mo(e,t,o,n){t=Math.max(0,Math.min(t,e.display.scroller.scrollWidth-e.display.scroller.clientWidth)),!((o?t==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-t)<2)&&!n)&&(e.doc.scrollLeft=t,Ec(e),e.display.scroller.scrollLeft!=t&&(e.display.scroller.scrollLeft=t),e.display.scrollbars.setScrollLeft(t))}function Wa(e){var t=e.display,o=t.gutters.offsetWidth,n=Math.round(e.doc.height+Hr(e.display));return{clientHeight:t.scroller.clientHeight,viewHeight:t.wrapper.clientHeight,scrollWidth:t.scroller.scrollWidth,clientWidth:t.scroller.clientWidth,viewWidth:t.wrapper.clientWidth,barLeft:e.options.fixedGutter?o:0,docHeight:n,scrollHeight:n+jr(e)+t.barHeight,nativeBarWidth:t.nativeBarWidth,gutterWidth:o}}var Hi=function(e,t,o){this.cm=o;var n=this.vert=P("div",[P("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),u=this.horiz=P("div",[P("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");n.tabIndex=u.tabIndex=-1,e(n),e(u),Ne(n,"scroll",function(){n.clientHeight&&t(n.scrollTop,"vertical")}),Ne(u,"scroll",function(){u.clientWidth&&t(u.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,T&&k<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Hi.prototype.update=function(e){var t=e.scrollWidth>e.clientWidth+1,o=e.scrollHeight>e.clientHeight+1,n=e.nativeBarWidth;if(o){this.vert.style.display="block",this.vert.style.bottom=t?n+"px":"0";var u=e.viewHeight-(t?n:0);this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+u)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(t){this.horiz.style.display="block",this.horiz.style.right=o?n+"px":"0",this.horiz.style.left=e.barLeft+"px";var h=e.viewWidth-e.barLeft-(o?n:0);this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+h)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&e.clientHeight>0&&(n==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:o?n:0,bottom:t?n:0}},Hi.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Hi.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Hi.prototype.zeroWidthHack=function(){var e=de&&!ve?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new at,this.disableVert=new at},Hi.prototype.enableZeroWidthBar=function(e,t,o){e.style.pointerEvents="auto";function n(){var u=e.getBoundingClientRect(),h=o=="vert"?document.elementFromPoint(u.right-1,(u.top+u.bottom)/2):document.elementFromPoint((u.right+u.left)/2,u.bottom-1);h!=e?e.style.pointerEvents="none":t.set(1e3,n)}t.set(1e3,n)},Hi.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var Ua=function(){};Ua.prototype.update=function(){return{bottom:0,right:0}},Ua.prototype.setScrollLeft=function(){},Ua.prototype.setScrollTop=function(){},Ua.prototype.clear=function(){};function Bi(e,t){t||(t=Wa(e));var o=e.display.barWidth,n=e.display.barHeight;Xo(e,t);for(var u=0;u<4&&o!=e.display.barWidth||n!=e.display.barHeight;u++)o!=e.display.barWidth&&e.options.lineWrapping&&Di(e),Xo(e,Wa(e)),o=e.display.barWidth,n=e.display.barHeight}function Xo(e,t){var o=e.display,n=o.scrollbars.update(t);o.sizer.style.paddingRight=(o.barWidth=n.right)+"px",o.sizer.style.paddingBottom=(o.barHeight=n.bottom)+"px",o.heightForcer.style.borderBottom=n.bottom+"px solid transparent",n.right&&n.bottom?(o.scrollbarFiller.style.display="block",o.scrollbarFiller.style.height=n.bottom+"px",o.scrollbarFiller.style.width=n.right+"px"):o.scrollbarFiller.style.display="",n.bottom&&e.options.coverGutterNextToScrollbar&&e.options.fixedGutter?(o.gutterFiller.style.display="block",o.gutterFiller.style.height=n.bottom+"px",o.gutterFiller.style.width=t.gutterWidth+"px"):o.gutterFiller.style.display=""}var Zl={native:Hi,null:Ua};function yo(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&ye(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new Zl[e.options.scrollbarStyle](function(t){e.display.wrapper.insertBefore(t,e.display.scrollbarFiller),Ne(t,"mousedown",function(){e.state.focused&&setTimeout(function(){return e.display.input.focus()},0)}),t.setAttribute("cm-not-content","true")},function(t,o){o=="horizontal"?mo(e,t):Bt(e,t)},e),e.display.scrollbars.addClass&&Lt(e.display.wrapper,e.display.scrollbars.addClass)}var Za=0;function In(e){e.curOp={cm:e,viewChanged:!1,startHeight:e.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:++Za,markArrays:null},Oi(e.curOp)}function Vn(e){var t=e.curOp;t&&g1(t,function(o){for(var n=0;n<o.ops.length;n++)o.ops[n].cm.curOp=null;Qo(o)})}function Qo(e){for(var t=e.ops,o=0;o<t.length;o++)L1(t[o]);for(var n=0;n<t.length;n++)_1(t[n]);for(var u=0;u<t.length;u++)S1(t[u]);for(var h=0;h<t.length;h++)M1(t[h]);for(var p=0;p<t.length;p++)k1(t[p])}function L1(e){var t=e.cm,o=t.display;ft(t),e.updateMaxLine&&$a(t),e.mustUpdate=e.viewChanged||e.forceUpdate||e.scrollTop!=null||e.scrollToPos&&(e.scrollToPos.from.line<o.viewFrom||e.scrollToPos.to.line>=o.viewTo)||o.maxLineChanged&&t.options.lineWrapping,e.update=e.mustUpdate&&new Br(t,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function _1(e){e.updatedDisplay=e.mustUpdate&&Qs(e.cm,e.update)}function S1(e){var t=e.cm,o=t.display;e.updatedDisplay&&Di(t),e.barMeasure=Wa(t),o.maxLineChanged&&!t.options.lineWrapping&&(e.adjustWidthTo=yc(t,o.maxLine,o.maxLine.text.length).left+3,t.display.sizerWidth=e.adjustWidthTo,e.barMeasure.scrollWidth=Math.max(o.scroller.clientWidth,o.sizer.offsetLeft+e.adjustWidthTo+jr(t)+t.display.barWidth),e.maxScrollLeft=Math.max(0,o.sizer.offsetLeft+e.adjustWidthTo-Ti(t))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=o.input.prepareSelection())}function M1(e){var t=e.cm;e.adjustWidthTo!=null&&(t.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft<t.doc.scrollLeft&&mo(t,Math.min(t.display.scroller.scrollLeft,e.maxScrollLeft),!0),t.display.maxLineChanged=!1);var o=e.focus&&e.focus==rt();e.preparedSelection&&t.display.input.showSelection(e.preparedSelection,o),(e.updatedDisplay||e.startHeight!=t.doc.height)&&Bi(t,e.barMeasure),e.updatedDisplay&&tu(t,e.barMeasure),e.selectionChanged&&qo(t),t.state.focused&&e.updateInput&&t.display.input.reset(e.typing),o&&Xs(e.cm)}function k1(e){var t=e.cm,o=t.display,n=t.doc;if(e.updatedDisplay&&Fi(t,e.update),o.wheelStartX!=null&&(e.scrollTop!=null||e.scrollLeft!=null||e.scrollToPos)&&(o.wheelStartX=o.wheelStartY=null),e.scrollTop!=null&&mr(t,e.scrollTop,e.forceScroll),e.scrollLeft!=null&&mo(t,e.scrollLeft,!0,!0),e.scrollToPos){var u=x1(t,Ce(n,e.scrollToPos.from),Ce(n,e.scrollToPos.to),e.scrollToPos.margin);w1(t,u)}var h=e.maybeHiddenMarkers,p=e.maybeUnhiddenMarkers;if(h)for(var m=0;m<h.length;++m)h[m].lines.length||Ze(h[m],"hide");if(p)for(var y=0;y<p.length;++y)p[y].lines.length&&Ze(p[y],"unhide");o.wrapper.offsetHeight&&(n.scrollTop=t.display.scroller.scrollTop),e.changeObjs&&Ze(t,"changes",t,e.changeObjs),e.update&&e.update.finish()}function yr(e,t){if(e.curOp)return t();In(e);try{return t()}finally{Vn(e)}}function Ft(e,t){return function(){if(e.curOp)return t.apply(e,arguments);In(e);try{return t.apply(e,arguments)}finally{Vn(e)}}}function Cr(e){return function(){if(this.curOp)return e.apply(this,arguments);In(this);try{return e.apply(this,arguments)}finally{Vn(this)}}}function z(e){return function(){var t=this.cm;if(!t||t.curOp)return e.apply(this,arguments);In(t);try{return e.apply(this,arguments)}finally{Vn(t)}}}function Gn(e,t){e.doc.highlightFrontier<e.display.viewTo&&e.state.highlight.set(t,Xr(Vl,e))}function Vl(e){var t=e.doc;if(!(t.highlightFrontier>=e.display.viewTo)){var o=+new Date+e.options.workTime,n=Wo(e,t.highlightFrontier),u=[];t.iter(n.line,Math.min(t.first+t.size,e.display.viewTo+500),function(h){if(n.line>=e.display.viewFrom){var p=h.styles,m=h.text.length>e.options.maxHighlightLength?en(t.mode,n.state):null,y=tc(e,h,n,!0);m&&(n.state=m),h.styles=y.styles;var C=h.styleClasses,_=y.classes;_?h.styleClasses=_:C&&(h.styleClasses=null);for(var M=!p||p.length!=h.styles.length||C!=_&&(!C||!_||C.bgClass!=_.bgClass||C.textClass!=_.textClass),N=0;!M&&N<p.length;++N)M=p[N]!=h.styles[N];M&&u.push(n.line),h.stateAfter=n.save(),n.nextLine()}else h.text.length<=e.options.maxHighlightLength&&Ea(e,h.text,n),h.stateAfter=n.line%5==0?n.save():null,n.nextLine();if(+new Date>o)return Gn(e,e.options.workDelay),!0}),t.highlightFrontier=n.line,t.modeFrontier=Math.max(t.modeFrontier,n.line),u.length&&yr(e,function(){for(var h=0;h<u.length;h++)$i(e,u[h],"text")})}}var Br=function(e,t,o){var n=e.display;this.viewport=t,this.visible=bo(n,e.doc,t),this.editorIsHidden=!n.wrapper.offsetWidth,this.wrapperHeight=n.wrapper.clientHeight,this.wrapperWidth=n.wrapper.clientWidth,this.oldDisplayWidth=Ti(e),this.force=o,this.dims=Kr(e),this.events=[]};Br.prototype.signal=function(e,t){sr(e,t)&&this.events.push(arguments)},Br.prototype.finish=function(){for(var e=0;e<this.events.length;e++)Ze.apply(null,this.events[e])};function ft(e){var t=e.display;!t.scrollbarsClipped&&t.scroller.offsetWidth&&(t.nativeBarWidth=t.scroller.offsetWidth-t.scroller.clientWidth,t.heightForcer.style.height=jr(e)+"px",t.sizer.style.marginBottom=-t.nativeBarWidth+"px",t.sizer.style.borderRightWidth=jr(e)+"px",t.scrollbarsClipped=!0)}function O1(e){if(e.hasFocus())return null;var t=rt();if(!t||!me(e.display.lineDiv,t))return null;var o={activeElt:t};if(window.getSelection){var n=window.getSelection();n.anchorNode&&n.extend&&me(e.display.lineDiv,n.anchorNode)&&(o.anchorNode=n.anchorNode,o.anchorOffset=n.anchorOffset,o.focusNode=n.focusNode,o.focusOffset=n.focusOffset)}return o}function T1(e){if(!(!e||!e.activeElt||e.activeElt==rt())&&(e.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(e.activeElt.nodeName)&&e.anchorNode&&me(document.body,e.anchorNode)&&me(document.body,e.focusNode))){var t=window.getSelection(),o=document.createRange();o.setEnd(e.anchorNode,e.anchorOffset),o.collapse(!1),t.removeAllRanges(),t.addRange(o),t.extend(e.focusNode,e.focusOffset)}}function Qs(e,t){var o=e.display,n=e.doc;if(t.editorIsHidden)return ai(e),!1;if(!t.force&&t.visible.from>=o.viewFrom&&t.visible.to<=o.viewTo&&(o.updateLineNumbers==null||o.updateLineNumbers>=o.viewTo)&&o.renderedView==o.view&&Mc(e)==0)return!1;qn(e)&&(ai(e),t.dims=Kr(e));var u=n.first+n.size,h=Math.max(t.visible.from-e.options.viewportMargin,n.first),p=Math.min(u,t.visible.to+e.options.viewportMargin);o.viewFrom<h&&h-o.viewFrom<20&&(h=Math.max(n.first,o.viewFrom)),o.viewTo>p&&o.viewTo-p<20&&(p=Math.min(u,o.viewTo)),Bn&&(h=Pl(e.doc,h),p=dc(e.doc,p));var m=h!=o.viewFrom||p!=o.viewTo||o.lastWrapHeight!=t.wrapperHeight||o.lastWrapWidth!=t.wrapperWidth;C1(e,h,p),o.viewOffset=Nr(Oe(e.doc,o.viewFrom)),e.display.mover.style.top=o.viewOffset+"px";var y=Mc(e);if(!m&&y==0&&!t.force&&o.renderedView==o.view&&(o.updateLineNumbers==null||o.updateLineNumbers>=o.viewTo))return!1;var C=O1(e);return y>4&&(o.lineDiv.style.display="none"),E1(e,o.updateLineNumbers,t.dims),y>4&&(o.lineDiv.style.display=""),o.renderedView=o.view,T1(C),Qe(o.cursorDiv),Qe(o.selectionDiv),o.gutters.style.height=o.sizer.style.minHeight=0,m&&(o.lastWrapHeight=t.wrapperHeight,o.lastWrapWidth=t.wrapperWidth,Gn(e,400)),o.updateLineNumbers=null,!0}function Fi(e,t){for(var o=t.viewport,n=!0;;n=!1){if(!n||!e.options.lineWrapping||t.oldDisplayWidth==Ti(e)){if(o&&o.top!=null&&(o={top:Math.min(e.doc.height+Hr(e.display)-Dl(e),o.top)}),t.visible=bo(e.display,e.doc,o),t.visible.from>=e.display.viewFrom&&t.visible.to<=e.display.viewTo)break}else n&&(t.visible=bo(e.display,e.doc,o));if(!Qs(e,t))break;Di(e);var u=Wa(e);Ha(e),Bi(e,u),tu(e,u),t.force=!1}t.signal(e,"update",e),(e.display.viewFrom!=e.display.reportedViewFrom||e.display.viewTo!=e.display.reportedViewTo)&&(t.signal(e,"viewportChange",e,e.display.viewFrom,e.display.viewTo),e.display.reportedViewFrom=e.display.viewFrom,e.display.reportedViewTo=e.display.viewTo)}function Js(e,t){var o=new Br(e,t);if(Qs(e,o)){Di(e),Fi(e,o);var n=Wa(e);Ha(e),Bi(e,n),tu(e,n),o.finish()}}function E1(e,t,o){var n=e.display,u=e.options.lineNumbers,h=n.lineDiv,p=h.firstChild;function m(q){var te=q.nextSibling;return A&&de&&e.display.currentWheelTarget==q?q.style.display="none":q.parentNode.removeChild(q),te}for(var y=n.view,C=n.viewFrom,_=0;_<y.length;_++){var M=y[_];if(!M.hidden)if(!M.node||M.node.parentNode!=h){var N=qs(e,M,C,o);h.insertBefore(N,p)}else{for(;p!=M.node;)p=m(p);var D=u&&t!=null&&t<=C&&M.lineNumber;M.changes&&(_e(M.changes,"gutter")>-1&&(D=!1),vc(e,M,C,o)),D&&(Qe(M.lineNumber),M.lineNumber.appendChild(document.createTextNode(Fo(e.options,C)))),p=M.node.nextSibling}C+=M.size}for(;p;)p=m(p)}function eu(e){var t=e.gutters.offsetWidth;e.sizer.style.marginLeft=t+"px",rr(e,"gutterChanged",e)}function tu(e,t){e.display.sizer.style.minHeight=t.docHeight+"px",e.display.heightForcer.style.top=t.docHeight+"px",e.display.gutters.style.height=t.docHeight+e.display.barHeight+jr(e)+"px"}function Ec(e){var t=e.display,o=t.view;if(!(!t.alignWidgets&&(!t.gutters.firstChild||!e.options.fixedGutter))){for(var n=Go(t)-t.scroller.scrollLeft+e.doc.scrollLeft,u=t.gutters.offsetWidth,h=n+"px",p=0;p<o.length;p++)if(!o[p].hidden){e.options.fixedGutter&&(o[p].gutter&&(o[p].gutter.style.left=h),o[p].gutterBackground&&(o[p].gutterBackground.style.left=h));var m=o[p].alignable;if(m)for(var y=0;y<m.length;y++)m[y].style.left=h}e.options.fixedGutter&&(t.gutters.style.left=n+u+"px")}}function qn(e){if(!e.options.lineNumbers)return!1;var t=e.doc,o=Fo(e.options,t.first+t.size-1),n=e.display;if(o.length!=n.lineNumChars){var u=n.measure.appendChild(P("div",[P("div",o)],"CodeMirror-linenumber CodeMirror-gutter-elt")),h=u.firstChild.offsetWidth,p=u.offsetWidth-h;return n.lineGutter.style.width="",n.lineNumInnerWidth=Math.max(h,n.lineGutter.offsetWidth-p)+1,n.lineNumWidth=n.lineNumInnerWidth+p,n.lineNumChars=n.lineNumInnerWidth?o.length:-1,n.lineGutter.style.width=n.lineNumWidth+"px",eu(e.display),!0}return!1}function ru(e,t){for(var o=[],n=!1,u=0;u<e.length;u++){var h=e[u],p=null;if(typeof h!="string"&&(p=h.style,h=h.className),h=="CodeMirror-linenumbers")if(t)n=!0;else continue;o.push({className:h,style:p})}return t&&!n&&o.push({className:"CodeMirror-linenumbers",style:null}),o}function Pc(e){var t=e.gutters,o=e.gutterSpecs;Qe(t),e.lineGutter=null;for(var n=0;n<o.length;++n){var u=o[n],h=u.className,p=u.style,m=t.appendChild(P("div",null,"CodeMirror-gutter "+h));p&&(m.style.cssText=p),h=="CodeMirror-linenumbers"&&(e.lineGutter=m,m.style.width=(e.lineNumWidth||1)+"px")}t.style.display=o.length?"":"none",eu(e)}function Va(e){Pc(e.display),tt(e),Ec(e)}function P1(e,t,o,n){var u=this;this.input=o,u.scrollbarFiller=P("div",null,"CodeMirror-scrollbar-filler"),u.scrollbarFiller.setAttribute("cm-not-content","true"),u.gutterFiller=P("div",null,"CodeMirror-gutter-filler"),u.gutterFiller.setAttribute("cm-not-content","true"),u.lineDiv=S("div",null,"CodeMirror-code"),u.selectionDiv=P("div",null,null,"position: relative; z-index: 1"),u.cursorDiv=P("div",null,"CodeMirror-cursors"),u.measure=P("div",null,"CodeMirror-measure"),u.lineMeasure=P("div",null,"CodeMirror-measure"),u.lineSpace=S("div",[u.measure,u.lineMeasure,u.selectionDiv,u.cursorDiv,u.lineDiv],null,"position: relative; outline: none");var h=S("div",[u.lineSpace],"CodeMirror-lines");u.mover=P("div",[h],null,"position: relative"),u.sizer=P("div",[u.mover],"CodeMirror-sizer"),u.sizerWidth=null,u.heightForcer=P("div",null,null,"position: absolute; height: "+Fe+"px; width: 1px;"),u.gutters=P("div",null,"CodeMirror-gutters"),u.lineGutter=null,u.scroller=P("div",[u.sizer,u.heightForcer,u.gutters],"CodeMirror-scroll"),u.scroller.setAttribute("tabIndex","-1"),u.wrapper=P("div",[u.scrollbarFiller,u.gutterFiller,u.scroller],"CodeMirror"),u.wrapper.setAttribute("translate","no"),T&&k<8&&(u.gutters.style.zIndex=-1,u.scroller.style.paddingRight=0),!A&&!(c&&pe)&&(u.scroller.draggable=!0),e&&(e.appendChild?e.appendChild(u.wrapper):e(u.wrapper)),u.viewFrom=u.viewTo=t.first,u.reportedViewFrom=u.reportedViewTo=t.first,u.view=[],u.renderedView=null,u.externalMeasured=null,u.viewOffset=0,u.lastWrapHeight=u.lastWrapWidth=0,u.updateLineNumbers=null,u.nativeBarWidth=u.barHeight=u.barWidth=0,u.scrollbarsClipped=!1,u.lineNumWidth=u.lineNumInnerWidth=u.lineNumChars=null,u.alignWidgets=!1,u.cachedCharWidth=u.cachedTextHeight=u.cachedPaddingH=null,u.maxLine=null,u.maxLineLength=0,u.maxLineChanged=!1,u.wheelDX=u.wheelDY=u.wheelStartX=u.wheelStartY=null,u.shift=!1,u.selForContextMenu=null,u.activeTouch=null,u.gutterSpecs=ru(n.gutters,n.lineNumbers),Pc(u),o.init(u)}var Gl=0,qt=null;T?qt=-.53:c?qt=15:U?qt=-.7:re&&(qt=-1/3);function Ic(e){var t=e.wheelDeltaX,o=e.wheelDeltaY;return t==null&&e.detail&&e.axis==e.HORIZONTAL_AXIS&&(t=e.detail),o==null&&e.detail&&e.axis==e.VERTICAL_AXIS?o=e.detail:o==null&&(o=e.wheelDelta),{x:t,y:o}}function I1(e){var t=Ic(e);return t.x*=qt,t.y*=qt,t}function Ac(e,t){var o=Ic(t),n=o.x,u=o.y,h=e.display,p=h.scroller,m=p.scrollWidth>p.clientWidth,y=p.scrollHeight>p.clientHeight;if(!!(n&&m||u&&y)){if(u&&de&&A){e:for(var C=t.target,_=h.view;C!=p;C=C.parentNode)for(var M=0;M<_.length;M++)if(_[M].node==C){e.display.currentWheelTarget=C;break e}}if(n&&!c&&!Z&&qt!=null){u&&y&&Bt(e,Math.max(0,p.scrollTop+u*qt)),mo(e,Math.max(0,p.scrollLeft+n*qt)),(!u||u&&y)&&ur(t),h.wheelStartX=null;return}if(u&&qt!=null){var N=u*qt,D=e.doc.scrollTop,q=D+h.wrapper.clientHeight;N<0?D=Math.max(0,D+N-50):q=Math.min(e.doc.height,q+N+50),Js(e,{top:D,bottom:q})}Gl<20&&(h.wheelStartX==null?(h.wheelStartX=p.scrollLeft,h.wheelStartY=p.scrollTop,h.wheelDX=n,h.wheelDY=u,setTimeout(function(){if(h.wheelStartX!=null){var te=p.scrollLeft-h.wheelStartX,ce=p.scrollTop-h.wheelStartY,fe=ce&&h.wheelDY&&ce/h.wheelDY||te&&h.wheelDX&&te/h.wheelDX;h.wheelStartX=h.wheelStartY=null,fe&&(qt=(qt*Gl+fe)/(Gl+1),++Gl)}},200)):(h.wheelDX+=n,h.wheelDY+=u))}}var nn=function(e,t){this.ranges=e,this.primIndex=t};nn.prototype.primary=function(){return this.ranges[this.primIndex]},nn.prototype.equals=function(e){if(e==this)return!0;if(e.primIndex!=this.primIndex||e.ranges.length!=this.ranges.length)return!1;for(var t=0;t<this.ranges.length;t++){var o=this.ranges[t],n=e.ranges[t];if(!O(o.anchor,n.anchor)||!O(o.head,n.head))return!1}return!0},nn.prototype.deepCopy=function(){for(var e=[],t=0;t<this.ranges.length;t++)e[t]=new mt(Q(this.ranges[t].anchor),Q(this.ranges[t].head));return new nn(e,this.primIndex)},nn.prototype.somethingSelected=function(){for(var e=0;e<this.ranges.length;e++)if(!this.ranges[e].empty())return!0;return!1},nn.prototype.contains=function(e,t){t||(t=e);for(var o=0;o<this.ranges.length;o++){var n=this.ranges[o];if(w(t,n.from())>=0&&w(e,n.to())<=0)return o}return-1};var mt=function(e,t){this.anchor=e,this.head=t};mt.prototype.from=function(){return Ve(this.anchor,this.head)},mt.prototype.to=function(){return le(this.anchor,this.head)},mt.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function wr(e,t,o){var n=e&&e.options.selectionsMayTouch,u=t[o];t.sort(function(N,D){return w(N.from(),D.from())}),o=_e(t,u);for(var h=1;h<t.length;h++){var p=t[h],m=t[h-1],y=w(m.to(),p.from());if(n&&!p.empty()?y>0:y>=0){var C=Ve(m.from(),p.from()),_=le(m.to(),p.to()),M=m.empty()?p.from()==p.head:m.from()==m.head;h<=o&&--o,t.splice(--h,2,new mt(M?_:C,M?C:_))}}return new nn(t,o)}function Wi(e,t){return new nn([new mt(e,t||e)],0)}function Ui(e){return e.text?oe(e.from.line+e.text.length-1,Ke(e.text).length+(e.text.length==1?e.from.ch:0)):e.to}function pn(e,t){if(w(e,t.from)<0)return e;if(w(e,t.to)<=0)return Ui(t);var o=e.line+t.text.length-(t.to.line-t.from.line)-1,n=e.ch;return e.line==t.to.line&&(n+=Ui(t).ch-t.to.ch),oe(o,n)}function nu(e,t){for(var o=[],n=0;n<e.sel.ranges.length;n++){var u=e.sel.ranges[n];o.push(new mt(pn(u.anchor,t),pn(u.head,t)))}return wr(e.cm,o,e.sel.primIndex)}function $c(e,t,o){return e.line==t.line?oe(o.line,e.ch-t.ch+o.ch):oe(o.line+(e.line-t.line),e.ch)}function A1(e,t,o){for(var n=[],u=oe(e.first,0),h=u,p=0;p<t.length;p++){var m=t[p],y=$c(m.from,u,h),C=$c(Ui(m),u,h);if(u=m.to,h=C,o=="around"){var _=e.sel.ranges[p],M=w(_.head,_.anchor)<0;n[p]=new mt(M?C:y,M?y:C)}else n[p]=new mt(y,y)}return new nn(n,e.sel.primIndex)}function iu(e){e.doc.mode=Bo(e.options,e.doc.modeOption),Ga(e)}function Ga(e){e.doc.iter(function(t){t.stateAfter&&(t.stateAfter=null),t.styles&&(t.styles=null)}),e.doc.modeFrontier=e.doc.highlightFrontier=e.doc.first,Gn(e,100),e.state.modeGen++,e.curOp&&tt(e)}function ou(e,t){return t.from.ch==0&&t.to.ch==0&&Ke(t.text)==""&&(!e.cm||e.cm.options.wholeLineUpdateBefore)}function ql(e,t,o,n){function u(we){return o?o[we]:null}function h(we,he,xe){fc(we,he,xe,n),rr(we,"change",we,t)}function p(we,he){for(var xe=[],$e=we;$e<he;++$e)xe.push(new br(C[$e],u($e),n));return xe}var m=t.from,y=t.to,C=t.text,_=Oe(e,m.line),M=Oe(e,y.line),N=Ke(C),D=u(C.length-1),q=y.line-m.line;if(t.full)e.insert(0,p(0,C.length)),e.remove(C.length,e.size-C.length);else if(ou(e,t)){var te=p(0,C.length-1);h(M,M.text,D),q&&e.remove(m.line,q),te.length&&e.insert(m.line,te)}else if(_==M)if(C.length==1)h(_,_.text.slice(0,m.ch)+N+_.text.slice(y.ch),D);else{var ce=p(1,C.length-1);ce.push(new br(N+_.text.slice(y.ch),D,n)),h(_,_.text.slice(0,m.ch)+C[0],u(0)),e.insert(m.line+1,ce)}else if(C.length==1)h(_,_.text.slice(0,m.ch)+C[0]+M.text.slice(y.ch),u(0)),e.remove(m.line+1,q);else{h(_,_.text.slice(0,m.ch)+C[0],u(0)),h(M,N+M.text.slice(y.ch),D);var fe=p(1,C.length-1);q>1&&e.remove(m.line+1,q-1),e.insert(m.line+1,fe)}rr(e,"change",e,t)}function Zi(e,t,o){function n(u,h,p){if(u.linked)for(var m=0;m<u.linked.length;++m){var y=u.linked[m];if(y.doc!=h){var C=p&&y.sharedHist;o&&!C||(t(y.doc,C),n(y.doc,u,C))}}}n(e,null,!0)}function Dc(e,t){if(t.cm)throw new Error("This document is already in use.");e.doc=t,t.cm=e,Ai(e),iu(e),jl(e),e.options.direction=t.direction,e.options.lineWrapping||$a(e),e.options.mode=t.modeOption,tt(e)}function jl(e){(e.doc.direction=="rtl"?Lt:ye)(e.display.lineDiv,"CodeMirror-rtl")}function qa(e){yr(e,function(){jl(e),tt(e)})}function Co(e){this.done=[],this.undone=[],this.undoDepth=e?e.undoDepth:1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=e?e.maxGeneration:1}function au(e,t){var o={from:Q(t.from),to:Ui(t),text:tn(e,t.from,t.to)};return Rc(e,o,t.from.line,t.to.line+1),Zi(e,function(n){return Rc(n,o,t.from.line,t.to.line+1)},!0),o}function lu(e){for(;e.length;){var t=Ke(e);if(t.ranges)e.pop();else break}}function $1(e,t){if(t)return lu(e.done),Ke(e.done);if(e.done.length&&!Ke(e.done).ranges)return Ke(e.done);if(e.done.length>1&&!e.done[e.done.length-2].ranges)return e.done.pop(),Ke(e.done)}function jn(e,t,o,n){var u=e.history;u.undone.length=0;var h=+new Date,p,m;if((u.lastOp==n||u.lastOrigin==t.origin&&t.origin&&(t.origin.charAt(0)=="+"&&u.lastModTime>h-(e.cm?e.cm.options.historyEventDelay:500)||t.origin.charAt(0)=="*"))&&(p=$1(u,u.lastOp==n)))m=Ke(p.changes),w(t.from,t.to)==0&&w(t.from,m.to)==0?m.to=Ui(t):p.changes.push(au(e,t));else{var y=Ke(u.done);for((!y||!y.ranges)&&Fr(e.sel,u.done),p={changes:[au(e,t)],generation:u.generation},u.done.push(p);u.done.length>u.undoDepth;)u.done.shift(),u.done[0].ranges||u.done.shift()}u.done.push(o),u.generation=++u.maxGeneration,u.lastModTime=u.lastSelTime=h,u.lastOp=u.lastSelOp=n,u.lastOrigin=u.lastSelOrigin=t.origin,m||Ze(e,"historyAdded")}function su(e,t,o,n){var u=t.charAt(0);return u=="*"||u=="+"&&o.ranges.length==n.ranges.length&&o.somethingSelected()==n.somethingSelected()&&new Date-e.history.lastSelTime<=(e.cm?e.cm.options.historyEventDelay:500)}function wo(e,t,o,n){var u=e.history,h=n&&n.origin;o==u.lastSelOp||h&&u.lastSelOrigin==h&&(u.lastModTime==u.lastSelTime&&u.lastOrigin==h||su(e,h,Ke(u.done),t))?u.done[u.done.length-1]=t:Fr(t,u.done),u.lastSelTime=+new Date,u.lastSelOrigin=h,u.lastSelOp=o,n&&n.clearRedo!==!1&&lu(u.undone)}function Fr(e,t){var o=Ke(t);o&&o.ranges&&o.equals(e)||t.push(e)}function Rc(e,t,o,n){var u=t["spans_"+e.id],h=0;e.iter(Math.max(e.first,o),Math.min(e.first+e.size,n),function(p){p.markedSpans&&((u||(u=t["spans_"+e.id]={}))[h]=p.markedSpans),++h})}function Nc(e){if(!e)return null;for(var t,o=0;o<e.length;++o)e[o].marker.explicitlyCleared?t||(t=e.slice(0,o)):t&&t.push(e[o]);return t?t.length?t:null:e}function Hc(e,t){var o=t["spans_"+e.id];if(!o)return null;for(var n=[],u=0;u<t.text.length;++u)n.push(Nc(o[u]));return n}function Jo(e,t){var o=Hc(e,t),n=Ns(e,t);if(!o)return n;if(!n)return o;for(var u=0;u<o.length;++u){var h=o[u],p=n[u];if(h&&p){e:for(var m=0;m<p.length;++m){for(var y=p[m],C=0;C<h.length;++C)if(h[C].marker==y.marker)continue e;h.push(y)}}else p&&(o[u]=p)}return o}function on(e,t,o){for(var n=[],u=0;u<e.length;++u){var h=e[u];if(h.ranges){n.push(o?nn.prototype.deepCopy.call(h):h);continue}var p=h.changes,m=[];n.push({changes:m});for(var y=0;y<p.length;++y){var C=p[y],_=void 0;if(m.push({from:C.from,to:C.to,text:C.text}),t)for(var M in C)(_=M.match(/^spans_(\d+)$/))&&_e(t,Number(_[1]))>-1&&(Ke(m)[M]=C[M],delete C[M])}}return n}function Kl(e,t,o,n){if(n){var u=e.anchor;if(o){var h=w(t,u)<0;h!=w(o,u)<0?(u=t,t=o):h!=w(t,o)<0&&(t=o)}return new mt(u,t)}else return new mt(o||t,t)}function Yl(e,t,o,n,u){u==null&&(u=e.cm&&(e.cm.display.shift||e.extend)),cr(e,new nn([Kl(e.sel.primary(),t,o,u)],0),n)}function ja(e,t,o){for(var n=[],u=e.cm&&(e.cm.display.shift||e.extend),h=0;h<e.sel.ranges.length;h++)n[h]=Kl(e.sel.ranges[h],t[h],null,u);var p=wr(e.cm,n,e.sel.primIndex);cr(e,p,o)}function uu(e,t,o,n){var u=e.sel.ranges.slice(0);u[t]=o,cr(e,wr(e.cm,u,e.sel.primIndex),n)}function cu(e,t,o,n){cr(e,Wi(t,o),n)}function xr(e,t,o){var n={ranges:t.ranges,update:function(u){this.ranges=[];for(var h=0;h<u.length;h++)this.ranges[h]=new mt(Ce(e,u[h].anchor),Ce(e,u[h].head))},origin:o&&o.origin};return Ze(e,"beforeSelectionChange",e,n),e.cm&&Ze(e.cm,"beforeSelectionChange",e.cm,n),n.ranges!=t.ranges?wr(e.cm,n.ranges,n.ranges.length-1):t}function Xl(e,t,o){var n=e.history.done,u=Ke(n);u&&u.ranges?(n[n.length-1]=t,an(e,t,o)):cr(e,t,o)}function cr(e,t,o){an(e,t,o),wo(e,e.sel,e.cm?e.cm.curOp.id:NaN,o)}function an(e,t,o){(sr(e,"beforeSelectionChange")||e.cm&&sr(e.cm,"beforeSelectionChange"))&&(t=xr(e,t,o));var n=o&&o.bias||(w(t.primary().head,e.sel.primary().head)<0?-1:1);Ql(e,Vi(e,t,n,!0)),!(o&&o.scroll===!1)&&e.cm&&e.cm.getOption("readOnly")!="nocursor"&&Ni(e.cm)}function Ql(e,t){t.equals(e.sel)||(e.sel=t,e.cm&&(e.cm.curOp.updateInput=1,e.cm.curOp.selectionChanged=!0,No(e.cm)),rr(e,"cursorActivity",e))}function Ka(e){Ql(e,Vi(e,e.sel,null,!1))}function Vi(e,t,o,n){for(var u,h=0;h<t.ranges.length;h++){var p=t.ranges[h],m=t.ranges.length==e.sel.ranges.length&&e.sel.ranges[h],y=dr(e,p.anchor,m&&m.anchor,o,n),C=dr(e,p.head,m&&m.head,o,n);(u||y!=p.anchor||C!=p.head)&&(u||(u=t.ranges.slice(0,h)),u[h]=new mt(y,C))}return u?wr(e.cm,u,t.primIndex):t}function xo(e,t,o,n,u){var h=Oe(e,t.line);if(h.markedSpans)for(var p=0;p<h.markedSpans.length;++p){var m=h.markedSpans[p],y=m.marker,C="selectLeft"in y?!y.selectLeft:y.inclusiveLeft,_="selectRight"in y?!y.selectRight:y.inclusiveRight;if((m.from==null||(C?m.from<=t.ch:m.from<t.ch))&&(m.to==null||(_?m.to>=t.ch:m.to>t.ch))){if(u&&(Ze(y,"beforeCursorEnter"),y.explicitlyCleared))if(h.markedSpans){--p;continue}else break;if(!y.atomic)continue;if(o){var M=y.find(n<0?1:-1),N=void 0;if((n<0?_:C)&&(M=Jl(e,M,-n,M&&M.line==t.line?h:null)),M&&M.line==t.line&&(N=w(M,o))&&(n<0?N<0:N>0))return xo(e,M,t,n,u)}var D=y.find(n<0?-1:1);return(n<0?C:_)&&(D=Jl(e,D,n,D.line==t.line?h:null)),D?xo(e,D,t,n,u):null}}return t}function dr(e,t,o,n,u){var h=n||1,p=xo(e,t,o,h,u)||!u&&xo(e,t,o,h,!0)||xo(e,t,o,-h,u)||!u&&xo(e,t,o,-h,!0);return p||(e.cantEdit=!0,oe(e.first,0))}function Jl(e,t,o,n){return o<0&&t.ch==0?t.line>e.first?Ce(e,oe(t.line-1)):null:o>0&&t.ch==(n||Oe(e,t.line)).text.length?t.line<e.first+e.size-1?oe(t.line+1,0):null:new oe(t.line,t.ch+o)}function Bc(e){e.setSelection(oe(e.firstLine(),0),oe(e.lastLine()),nt)}function Fc(e,t,o){var n={canceled:!1,from:t.from,to:t.to,text:t.text,origin:t.origin,cancel:function(){return n.canceled=!0}};return o&&(n.update=function(u,h,p,m){u&&(n.from=Ce(e,u)),h&&(n.to=Ce(e,h)),p&&(n.text=p),m!==void 0&&(n.origin=m)}),Ze(e,"beforeChange",e,n),e.cm&&Ze(e.cm,"beforeChange",e.cm,n),n.canceled?(e.cm&&(e.cm.curOp.updateInput=2),null):{from:n.from,to:n.to,text:n.text,origin:n.origin}}function ea(e,t,o){if(e.cm){if(!e.cm.curOp)return Ft(e.cm,ea)(e,t,o);if(e.cm.state.suppressEdits)return}if(!((sr(e,"beforeChange")||e.cm&&sr(e.cm,"beforeChange"))&&(t=Fc(e,t,!0),!t))){var n=Rs&&!o&&Hs(e,t.from,t.to);if(n)for(var u=n.length-1;u>=0;--u)es(e,{from:n[u].from,to:n[u].to,text:u?[""]:t.text,origin:t.origin});else es(e,t)}}function es(e,t){if(!(t.text.length==1&&t.text[0]==""&&w(t.from,t.to)==0)){var o=nu(e,t);jn(e,t,o,e.cm?e.cm.curOp.id:NaN),ra(e,t,o,Ns(e,t));var n=[];Zi(e,function(u,h){!h&&_e(n,u.history)==-1&&(Uc(u.history,t),n.push(u.history)),ra(u,t,null,Ns(u,t))})}}function ts(e,t,o){var n=e.cm&&e.cm.state.suppressEdits;if(!(n&&!o)){for(var u=e.history,h,p=e.sel,m=t=="undo"?u.done:u.undone,y=t=="undo"?u.undone:u.done,C=0;C<m.length&&(h=m[C],!(o?h.ranges&&!h.equals(e.sel):!h.ranges));C++);if(C!=m.length){for(u.lastOrigin=u.lastSelOrigin=null;;)if(h=m.pop(),h.ranges){if(Fr(h,y),o&&!h.equals(e.sel)){cr(e,h,{clearRedo:!1});return}p=h}else if(n){m.push(h);return}else break;var _=[];Fr(p,y),y.push({changes:_,generation:u.generation}),u.generation=h.generation||++u.maxGeneration;for(var M=sr(e,"beforeChange")||e.cm&&sr(e.cm,"beforeChange"),N=function(te){var ce=h.changes[te];if(ce.origin=t,M&&!Fc(e,ce,!1))return m.length=0,{};_.push(au(e,ce));var fe=te?nu(e,ce):Ke(m);ra(e,ce,fe,Jo(e,ce)),!te&&e.cm&&e.cm.scrollIntoView({from:ce.from,to:Ui(ce)});var we=[];Zi(e,function(he,xe){!xe&&_e(we,he.history)==-1&&(Uc(he.history,ce),we.push(he.history)),ra(he,ce,null,Jo(he,ce))})},D=h.changes.length-1;D>=0;--D){var q=N(D);if(q)return q.v}}}}function ta(e,t){if(t!=0&&(e.first+=t,e.sel=new nn(ht(e.sel.ranges,function(u){return new mt(oe(u.anchor.line+t,u.anchor.ch),oe(u.head.line+t,u.head.ch))}),e.sel.primIndex),e.cm)){tt(e.cm,e.first,e.first-t,t);for(var o=e.cm.display,n=o.viewFrom;n<o.viewTo;n++)$i(e.cm,n,"gutter")}}function ra(e,t,o,n){if(e.cm&&!e.cm.curOp)return Ft(e.cm,ra)(e,t,o,n);if(t.to.line<e.first){ta(e,t.text.length-1-(t.to.line-t.from.line));return}if(!(t.from.line>e.lastLine())){if(t.from.line<e.first){var u=t.text.length-1-(e.first-t.from.line);ta(e,u),t={from:oe(e.first,0),to:oe(t.to.line+u,t.to.ch),text:[Ke(t.text)],origin:t.origin}}var h=e.lastLine();t.to.line>h&&(t={from:t.from,to:oe(h,Oe(e,h).text.length),text:[t.text[0]],origin:t.origin}),t.removed=tn(e,t.from,t.to),o||(o=nu(e,t)),e.cm?D1(e.cm,t,n):ql(e,t,n),an(e,o,nt),e.cantEdit&&dr(e,oe(e.firstLine(),0))&&(e.cantEdit=!1)}}function D1(e,t,o){var n=e.doc,u=e.display,h=t.from,p=t.to,m=!1,y=h.line;e.options.lineWrapping||(y=bt(Fn(Oe(n,h.line))),n.iter(y,p.line+1,function(D){if(D==u.maxLine)return m=!0,!0})),n.sel.contains(t.from,t.to)>-1&&No(e),ql(n,t,o,Sc(e)),e.options.lineWrapping||(n.iter(y,h.line+t.text.length,function(D){var q=Aa(D);q>u.maxLineLength&&(u.maxLine=D,u.maxLineLength=q,u.maxLineChanged=!0,m=!1)}),m&&(e.curOp.updateMaxLine=!0)),a1(n,h.line),Gn(e,400);var C=t.text.length-(p.line-h.line)-1;t.full?tt(e):h.line==p.line&&t.text.length==1&&!ou(e.doc,t)?$i(e,h.line,"text"):tt(e,h.line,p.line+1,C);var _=sr(e,"changes"),M=sr(e,"change");if(M||_){var N={from:h,to:p,text:t.text,removed:t.removed,origin:t.origin};M&&rr(e,"change",e,N),_&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(N)}e.display.selForContextMenu=null}function na(e,t,o,n,u){var h;n||(n=o),w(n,o)<0&&(h=[n,o],o=h[0],n=h[1]),typeof t=="string"&&(t=e.splitLines(t)),ea(e,{from:o,to:n,text:t,origin:u})}function ia(e,t,o,n){o<e.line?e.line+=n:t<e.line&&(e.line=t,e.ch=0)}function Wc(e,t,o,n){for(var u=0;u<e.length;++u){var h=e[u],p=!0;if(h.ranges){h.copied||(h=e[u]=h.deepCopy(),h.copied=!0);for(var m=0;m<h.ranges.length;m++)ia(h.ranges[m].anchor,t,o,n),ia(h.ranges[m].head,t,o,n);continue}for(var y=0;y<h.changes.length;++y){var C=h.changes[y];if(o<C.from.line)C.from=oe(C.from.line+n,C.from.ch),C.to=oe(C.to.line+n,C.to.ch);else if(t<=C.to.line){p=!1;break}}p||(e.splice(0,u+1),u=0)}}function Uc(e,t){var o=t.from.line,n=t.to.line,u=t.text.length-(n-o)-1;Wc(e.done,o,n,u),Wc(e.undone,o,n,u)}function zo(e,t,o,n){var u=t,h=t;return typeof t=="number"?h=Oe(e,dt(e,t)):u=bt(t),u==null?null:(n(h,u)&&e.cm&&$i(e.cm,u,o),h)}function oa(e){this.lines=e,this.parent=null;for(var t=0,o=0;o<e.length;++o)e[o].parent=this,t+=e[o].height;this.height=t}oa.prototype={chunkSize:function(){return this.lines.length},removeInner:function(e,t){for(var o=e,n=e+t;o<n;++o){var u=this.lines[o];this.height-=u.height,hc(u),rr(u,"delete")}this.lines.splice(e,t)},collapse:function(e){e.push.apply(e,this.lines)},insertInner:function(e,t,o){this.height+=o,this.lines=this.lines.slice(0,e).concat(t).concat(this.lines.slice(e));for(var n=0;n<t.length;++n)t[n].parent=this},iterN:function(e,t,o){for(var n=e+t;e<n;++e)if(o(this.lines[e]))return!0}};function Ya(e){this.children=e;for(var t=0,o=0,n=0;n<e.length;++n){var u=e[n];t+=u.chunkSize(),o+=u.height,u.parent=this}this.size=t,this.height=o,this.parent=null}Ya.prototype={chunkSize:function(){return this.size},removeInner:function(e,t){this.size-=t;for(var o=0;o<this.children.length;++o){var n=this.children[o],u=n.chunkSize();if(e<u){var h=Math.min(t,u-e),p=n.height;if(n.removeInner(e,h),this.height-=p-n.height,u==h&&(this.children.splice(o--,1),n.parent=null),(t-=h)==0)break;e=0}else e-=u}if(this.size-t<25&&(this.children.length>1||!(this.children[0]instanceof oa))){var m=[];this.collapse(m),this.children=[new oa(m)],this.children[0].parent=this}},collapse:function(e){for(var t=0;t<this.children.length;++t)this.children[t].collapse(e)},insertInner:function(e,t,o){this.size+=t.length,this.height+=o;for(var n=0;n<this.children.length;++n){var u=this.children[n],h=u.chunkSize();if(e<=h){if(u.insertInner(e,t,o),u.lines&&u.lines.length>50){for(var p=u.lines.length%25+25,m=p;m<u.lines.length;){var y=new oa(u.lines.slice(m,m+=25));u.height-=y.height,this.children.splice(++n,0,y),y.parent=this}u.lines=u.lines.slice(0,p),this.maybeSpill()}break}e-=h}},maybeSpill:function(){if(!(this.children.length<=10)){var e=this;do{var t=e.children.splice(e.children.length-5,5),o=new Ya(t);if(e.parent){e.size-=o.size,e.height-=o.height;var u=_e(e.parent.children,e);e.parent.children.splice(u+1,0,o)}else{var n=new Ya(e.children);n.parent=e,e.children=[n,o],e=n}o.parent=e.parent}while(e.children.length>10);e.parent.maybeSpill()}},iterN:function(e,t,o){for(var n=0;n<this.children.length;++n){var u=this.children[n],h=u.chunkSize();if(e<h){var p=Math.min(t,h-e);if(u.iterN(e,p,o))return!0;if((t-=p)==0)break;e=0}else e-=h}}};var Xa=function(e,t,o){if(o)for(var n in o)o.hasOwnProperty(n)&&(this[n]=o[n]);this.doc=e,this.node=t};Xa.prototype.clear=function(){var e=this.doc.cm,t=this.line.widgets,o=this.line,n=bt(o);if(!(n==null||!t)){for(var u=0;u<t.length;++u)t[u]==this&&t.splice(u--,1);t.length||(o.widgets=null);var h=fo(this);Gr(o,Math.max(0,o.height-h)),e&&(yr(e,function(){Zc(e,o,-h),$i(e,n,"widget")}),rr(e,"lineWidgetCleared",e,this,n))}},Xa.prototype.changed=function(){var e=this,t=this.height,o=this.doc.cm,n=this.line;this.height=null;var u=fo(this)-t;!u||(Ht(this.doc,n)||Gr(n,n.height+u),o&&yr(o,function(){o.curOp.forceUpdate=!0,Zc(o,n,u),rr(o,"lineWidgetChanged",o,e,bt(n))}))},Sn(Xa);function Zc(e,t,o){Nr(t)<(e.curOp&&e.curOp.scrollTop||e.doc.scrollTop)&&Yo(e,o)}function Vc(e,t,o,n){var u=new Xa(e,o,n),h=e.cm;return h&&u.noHScroll&&(h.display.alignWidgets=!0),zo(e,t,"widget",function(p){var m=p.widgets||(p.widgets=[]);if(u.insertAt==null?m.push(u):m.splice(Math.min(m.length,Math.max(0,u.insertAt)),0,u),u.line=p,h&&!Ht(e,p)){var y=Nr(p)<e.scrollTop;Gr(p,p.height+fo(u)),y&&Yo(h,u.height),h.curOp.forceUpdate=!0}return!0}),h&&rr(h,"lineWidgetAdded",h,u,typeof t=="number"?t:bt(t)),u}var rs=0,Gi=function(e,t){this.lines=[],this.type=t,this.doc=e,this.id=++rs};Gi.prototype.clear=function(){if(!this.explicitlyCleared){var e=this.doc.cm,t=e&&!e.curOp;if(t&&In(e),sr(this,"clear")){var o=this.find();o&&rr(this,"clear",o.from,o.to)}for(var n=null,u=null,h=0;h<this.lines.length;++h){var p=this.lines[h],m=Pa(p.markedSpans,this);e&&!this.collapsed?$i(e,bt(p),"text"):e&&(m.to!=null&&(u=bt(p)),m.from!=null&&(n=bt(p))),p.markedSpans=l1(p.markedSpans,m),m.from==null&&this.collapsed&&!Ht(this.doc,p)&&e&&Gr(p,Ii(e.display))}if(e&&this.collapsed&&!e.options.lineWrapping)for(var y=0;y<this.lines.length;++y){var C=Fn(this.lines[y]),_=Aa(C);_>e.display.maxLineLength&&(e.display.maxLine=C,e.display.maxLineLength=_,e.display.maxLineChanged=!0)}n!=null&&e&&this.collapsed&&tt(e,n,u+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&Ka(e.doc)),e&&rr(e,"markerCleared",e,this,n,u),t&&Vn(e),this.parent&&this.parent.clear()}},Gi.prototype.find=function(e,t){e==null&&this.type=="bookmark"&&(e=1);for(var o,n,u=0;u<this.lines.length;++u){var h=this.lines[u],p=Pa(h.markedSpans,this);if(p.from!=null&&(o=oe(t?h:bt(h),p.from),e==-1))return o;if(p.to!=null&&(n=oe(t?h:bt(h),p.to),e==1))return n}return o&&{from:o,to:n}},Gi.prototype.changed=function(){var e=this,t=this.find(-1,!0),o=this,n=this.doc.cm;!t||!n||yr(n,function(){var u=t.line,h=bt(t.line),p=Ys(n,h);if(p&&(xc(p),n.curOp.selectionChanged=n.curOp.forceUpdate=!0),n.curOp.updateMaxLine=!0,!Ht(o.doc,u)&&o.height!=null){var m=o.height;o.height=null;var y=fo(o)-m;y&&Gr(u,u.height+y)}rr(n,"markerChanged",n,e)})},Gi.prototype.attachLine=function(e){if(!this.lines.length&&this.doc.cm){var t=this.doc.cm.curOp;(!t.maybeHiddenMarkers||_e(t.maybeHiddenMarkers,this)==-1)&&(t.maybeUnhiddenMarkers||(t.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(e)},Gi.prototype.detachLine=function(e){if(this.lines.splice(_e(this.lines,e),1),!this.lines.length&&this.doc.cm){var t=this.doc.cm.curOp;(t.maybeHiddenMarkers||(t.maybeHiddenMarkers=[])).push(this)}},Sn(Gi);function qi(e,t,o,n,u){if(n&&n.shared)return Gc(e,t,o,n,u);if(e.cm&&!e.cm.curOp)return Ft(e.cm,qi)(e,t,o,n,u);var h=new Gi(e,u),p=w(t,o);if(n&&Ut(n,h,!1),p>0||p==0&&h.clearWhenEmpty!==!1)return h;if(h.replacedWith&&(h.collapsed=!0,h.widgetNode=S("span",[h.replacedWith],"CodeMirror-widget"),n.handleMouseEvents||h.widgetNode.setAttribute("cm-ignore-events","true"),n.insertLeft&&(h.widgetNode.insertLeft=!0)),h.collapsed){if(cc(e,t.line,t,o,h)||t.line!=o.line&&cc(e,o.line,t,o,h))throw new Error("Inserting collapsed marker partially overlapping an existing one");oc()}h.addToHistory&&jn(e,{from:t,to:o,origin:"markText"},e.sel,NaN);var m=t.line,y=e.cm,C;if(e.iter(m,o.line+1,function(M){y&&h.collapsed&&!y.options.lineWrapping&&Fn(M)==y.display.maxLine&&(C=!0),h.collapsed&&m!=t.line&&Gr(M,0),ac(M,new kl(h,m==t.line?t.ch:null,m==o.line?o.ch:null),e.cm&&e.cm.curOp),++m}),h.collapsed&&e.iter(t.line,o.line+1,function(M){Ht(e,M)&&Gr(M,0)}),h.clearOnEnter&&Ne(h,"beforeCursorEnter",function(){return h.clear()}),h.readOnly&&(ic(),(e.history.done.length||e.history.undone.length)&&e.clearHistory()),h.collapsed&&(h.id=++rs,h.atomic=!0),y){if(C&&(y.curOp.updateMaxLine=!0),h.collapsed)tt(y,t.line,o.line+1);else if(h.className||h.startStyle||h.endStyle||h.css||h.attributes||h.title)for(var _=t.line;_<=o.line;_++)$i(y,_,"text");h.atomic&&Ka(y.doc),rr(y,"markerAdded",y,h)}return h}var aa=function(e,t){this.markers=e,this.primary=t;for(var o=0;o<e.length;++o)e[o].parent=this};aa.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var e=0;e<this.markers.length;++e)this.markers[e].clear();rr(this,"clear")}},aa.prototype.find=function(e,t){return this.primary.find(e,t)},Sn(aa);function Gc(e,t,o,n,u){n=Ut(n),n.shared=!1;var h=[qi(e,t,o,n,u)],p=h[0],m=n.widgetNode;return Zi(e,function(y){m&&(n.widgetNode=m.cloneNode(!0)),h.push(qi(y,Ce(y,t),Ce(y,o),n,u));for(var C=0;C<y.linked.length;++C)if(y.linked[C].isParent)return;p=Ke(h)}),new aa(h,p)}function du(e){return e.findMarks(oe(e.first,0),e.clipPos(oe(e.lastLine())),function(t){return t.parent})}function ns(e,t){for(var o=0;o<t.length;o++){var n=t[o],u=n.find(),h=e.clipPos(u.from),p=e.clipPos(u.to);if(w(h,p)){var m=qi(e,h,p,n.primary,n.primary.type);n.markers.push(m),m.parent=n}}}function R1(e){for(var t=function(n){var u=e[n],h=[u.primary.doc];Zi(u.primary.doc,function(y){return h.push(y)});for(var p=0;p<u.markers.length;p++){var m=u.markers[p];_e(h,m.doc)==-1&&(m.parent=null,u.markers.splice(p--,1))}},o=0;o<e.length;o++)t(o)}var qc=0,Mr=function(e,t,o,n,u){if(!(this instanceof Mr))return new Mr(e,t,o,n,u);o==null&&(o=0),Ya.call(this,[new oa([new br("",null)])]),this.first=o,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=o;var h=oe(o,0);this.sel=Wi(h),this.history=new Co(null),this.id=++qc,this.modeOption=t,this.lineSep=n,this.direction=u=="rtl"?"rtl":"ltr",this.extend=!1,typeof e=="string"&&(e=this.splitLines(e)),ql(this,{from:h,to:h,text:e}),cr(this,Wi(h),nt)};Mr.prototype=Vr(Ya.prototype,{constructor:Mr,iter:function(e,t,o){o?this.iterN(e-this.first,t-e,o):this.iterN(this.first,this.first+this.size,e)},insert:function(e,t){for(var o=0,n=0;n<t.length;++n)o+=t[n].height;this.insertInner(e-this.first,t,o)},remove:function(e,t){this.removeInner(e-this.first,t)},getValue:function(e){var t=Ta(this,this.first,this.first+this.size);return e===!1?t:t.join(e||this.lineSeparator())},setValue:z(function(e){var t=oe(this.first,0),o=this.first+this.size-1;ea(this,{from:t,to:oe(o,Oe(this,o).text.length),text:this.splitLines(e),origin:"setValue",full:!0},!0),this.cm&&Fa(this.cm,0,0),cr(this,Wi(t),nt)}),replaceRange:function(e,t,o,n){t=Ce(this,t),o=o?Ce(this,o):t,na(this,e,t,o,n)},getRange:function(e,t,o){var n=tn(this,Ce(this,e),Ce(this,t));return o===!1?n:o===""?n.join(""):n.join(o||this.lineSeparator())},getLine:function(e){var t=this.getLineHandle(e);return t&&t.text},getLineHandle:function(e){if(Mi(this,e))return Oe(this,e)},getLineNumber:function(e){return bt(e)},getLineHandleVisualStart:function(e){return typeof e=="number"&&(e=Oe(this,e)),Fn(e)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(e){return Ce(this,e)},getCursor:function(e){var t=this.sel.primary(),o;return e==null||e=="head"?o=t.head:e=="anchor"?o=t.anchor:e=="end"||e=="to"||e===!1?o=t.to():o=t.from(),o},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:z(function(e,t,o){cu(this,Ce(this,typeof e=="number"?oe(e,t||0):e),null,o)}),setSelection:z(function(e,t,o){cu(this,Ce(this,e),Ce(this,t||e),o)}),extendSelection:z(function(e,t,o){Yl(this,Ce(this,e),t&&Ce(this,t),o)}),extendSelections:z(function(e,t){ja(this,qr(this,e),t)}),extendSelectionsBy:z(function(e,t){var o=ht(this.sel.ranges,e);ja(this,qr(this,o),t)}),setSelections:z(function(e,t,o){if(!!e.length){for(var n=[],u=0;u<e.length;u++)n[u]=new mt(Ce(this,e[u].anchor),Ce(this,e[u].head||e[u].anchor));t==null&&(t=Math.min(e.length-1,this.sel.primIndex)),cr(this,wr(this.cm,n,t),o)}}),addSelection:z(function(e,t,o){var n=this.sel.ranges.slice(0);n.push(new mt(Ce(this,e),Ce(this,t||e))),cr(this,wr(this.cm,n,n.length-1),o)}),getSelection:function(e){for(var t=this.sel.ranges,o,n=0;n<t.length;n++){var u=tn(this,t[n].from(),t[n].to());o=o?o.concat(u):u}return e===!1?o:o.join(e||this.lineSeparator())},getSelections:function(e){for(var t=[],o=this.sel.ranges,n=0;n<o.length;n++){var u=tn(this,o[n].from(),o[n].to());e!==!1&&(u=u.join(e||this.lineSeparator())),t[n]=u}return t},replaceSelection:function(e,t,o){for(var n=[],u=0;u<this.sel.ranges.length;u++)n[u]=e;this.replaceSelections(n,t,o||"+input")},replaceSelections:z(function(e,t,o){for(var n=[],u=this.sel,h=0;h<u.ranges.length;h++){var p=u.ranges[h];n[h]={from:p.from(),to:p.to(),text:this.splitLines(e[h]),origin:o}}for(var m=t&&t!="end"&&A1(this,n,t),y=n.length-1;y>=0;y--)ea(this,n[y]);m?Xl(this,m):this.cm&&Ni(this.cm)}),undo:z(function(){ts(this,"undo")}),redo:z(function(){ts(this,"redo")}),undoSelection:z(function(){ts(this,"undo",!0)}),redoSelection:z(function(){ts(this,"redo",!0)}),setExtending:function(e){this.extend=e},getExtending:function(){return this.extend},historySize:function(){for(var e=this.history,t=0,o=0,n=0;n<e.done.length;n++)e.done[n].ranges||++t;for(var u=0;u<e.undone.length;u++)e.undone[u].ranges||++o;return{undo:t,redo:o}},clearHistory:function(){var e=this;this.history=new Co(this.history),Zi(this,function(t){return t.history=e.history},!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(e){return e&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(e){return this.history.generation==(e||this.cleanGeneration)},getHistory:function(){return{done:on(this.history.done),undone:on(this.history.undone)}},setHistory:function(e){var t=this.history=new Co(this.history);t.done=on(e.done.slice(0),null,!0),t.undone=on(e.undone.slice(0),null,!0)},setGutterMarker:z(function(e,t,o){return zo(this,e,"gutter",function(n){var u=n.gutterMarkers||(n.gutterMarkers={});return u[t]=o,!o&&ae(u)&&(n.gutterMarkers=null),!0})}),clearGutter:z(function(e){var t=this;this.iter(function(o){o.gutterMarkers&&o.gutterMarkers[e]&&zo(t,o,"gutter",function(){return o.gutterMarkers[e]=null,ae(o.gutterMarkers)&&(o.gutterMarkers=null),!0})})}),lineInfo:function(e){var t;if(typeof e=="number"){if(!Mi(this,e)||(t=e,e=Oe(this,e),!e))return null}else if(t=bt(e),t==null)return null;return{line:t,handle:e,text:e.text,gutterMarkers:e.gutterMarkers,textClass:e.textClass,bgClass:e.bgClass,wrapClass:e.wrapClass,widgets:e.widgets}},addLineClass:z(function(e,t,o){return zo(this,e,t=="gutter"?"gutter":"class",function(n){var u=t=="text"?"textClass":t=="background"?"bgClass":t=="gutter"?"gutterClass":"wrapClass";if(!n[u])n[u]=o;else{if(be(o).test(n[u]))return!1;n[u]+=" "+o}return!0})}),removeLineClass:z(function(e,t,o){return zo(this,e,t=="gutter"?"gutter":"class",function(n){var u=t=="text"?"textClass":t=="background"?"bgClass":t=="gutter"?"gutterClass":"wrapClass",h=n[u];if(h)if(o==null)n[u]=null;else{var p=h.match(be(o));if(!p)return!1;var m=p.index+p[0].length;n[u]=h.slice(0,p.index)+(!p.index||m==h.length?"":" ")+h.slice(m)||null}else return!1;return!0})}),addLineWidget:z(function(e,t,o){return Vc(this,e,t,o)}),removeLineWidget:function(e){e.clear()},markText:function(e,t,o){return qi(this,Ce(this,e),Ce(this,t),o,o&&o.type||"range")},setBookmark:function(e,t){var o={replacedWith:t&&(t.nodeType==null?t.widget:t),insertLeft:t&&t.insertLeft,clearWhenEmpty:!1,shared:t&&t.shared,handleMouseEvents:t&&t.handleMouseEvents};return e=Ce(this,e),qi(this,e,e,o,"bookmark")},findMarksAt:function(e){e=Ce(this,e);var t=[],o=Oe(this,e.line).markedSpans;if(o)for(var n=0;n<o.length;++n){var u=o[n];(u.from==null||u.from<=e.ch)&&(u.to==null||u.to>=e.ch)&&t.push(u.marker.parent||u.marker)}return t},findMarks:function(e,t,o){e=Ce(this,e),t=Ce(this,t);var n=[],u=e.line;return this.iter(e.line,t.line+1,function(h){var p=h.markedSpans;if(p)for(var m=0;m<p.length;m++){var y=p[m];!(y.to!=null&&u==e.line&&e.ch>=y.to||y.from==null&&u!=e.line||y.from!=null&&u==t.line&&y.from>=t.ch)&&(!o||o(y.marker))&&n.push(y.marker.parent||y.marker)}++u}),n},getAllMarks:function(){var e=[];return this.iter(function(t){var o=t.markedSpans;if(o)for(var n=0;n<o.length;++n)o[n].from!=null&&e.push(o[n].marker)}),e},posFromIndex:function(e){var t,o=this.first,n=this.lineSeparator().length;return this.iter(function(u){var h=u.text.length+n;if(h>e)return t=e,!0;e-=h,++o}),Ce(this,oe(o,t))},indexFromPos:function(e){e=Ce(this,e);var t=e.ch;if(e.line<this.first||e.ch<0)return 0;var o=this.lineSeparator().length;return this.iter(this.first,e.line,function(n){t+=n.text.length+o}),t},copy:function(e){var t=new Mr(Ta(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return t.scrollTop=this.scrollTop,t.scrollLeft=this.scrollLeft,t.sel=this.sel,t.extend=!1,e&&(t.history.undoDepth=this.history.undoDepth,t.setHistory(this.getHistory())),t},linkedDoc:function(e){e||(e={});var t=this.first,o=this.first+this.size;e.from!=null&&e.from>t&&(t=e.from),e.to!=null&&e.to<o&&(o=e.to);var n=new Mr(Ta(this,t,o),e.mode||this.modeOption,t,this.lineSep,this.direction);return e.sharedHist&&(n.history=this.history),(this.linked||(this.linked=[])).push({doc:n,sharedHist:e.sharedHist}),n.linked=[{doc:this,isParent:!0,sharedHist:e.sharedHist}],ns(n,du(this)),n},unlinkDoc:function(e){if(e instanceof Mt&&(e=e.doc),this.linked)for(var t=0;t<this.linked.length;++t){var o=this.linked[t];if(o.doc==e){this.linked.splice(t,1),e.unlinkDoc(this),R1(du(this));break}}if(e.history==this.history){var n=[e.id];Zi(e,function(u){return n.push(u.id)},!0),e.history=new Co(null),e.history.done=on(this.history.done,n),e.history.undone=on(this.history.undone,n)}},iterLinkedDocs:function(e){Zi(this,e)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(e){return this.lineSep?e.split(this.lineSep):ao(e)},lineSeparator:function(){return this.lineSep||`
2328
+ `},setDirection:z(function(e){e!="rtl"&&(e="ltr"),e!=this.direction&&(this.direction=e,this.iter(function(t){return t.order=null}),this.cm&&qa(this.cm))})}),Mr.prototype.eachLine=Mr.prototype.iter;var jc=0;function Kc(e){var t=this;if(hu(t),!(Gt(t,e)||oi(t.display,e))){ur(e),T&&(jc=+new Date);var o=Un(t,e,!0),n=e.dataTransfer.files;if(!(!o||t.isReadOnly()))if(n&&n.length&&window.FileReader&&window.File)for(var u=n.length,h=Array(u),p=0,m=function(){++p==u&&Ft(t,function(){o=Ce(t.doc,o);var D={from:o,to:o,text:t.doc.splitLines(h.filter(function(q){return q!=null}).join(t.doc.lineSeparator())),origin:"paste"};ea(t.doc,D),Xl(t.doc,Wi(Ce(t.doc,o),Ce(t.doc,Ui(D))))})()},y=function(D,q){if(t.options.allowDropFileTypes&&_e(t.options.allowDropFileTypes,D.type)==-1){m();return}var te=new FileReader;te.onerror=function(){return m()},te.onload=function(){var ce=te.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(ce)){m();return}h[q]=ce,m()},te.readAsText(D)},C=0;C<n.length;C++)y(n[C],C);else{if(t.state.draggingText&&t.doc.sel.contains(o)>-1){t.state.draggingText(e),setTimeout(function(){return t.display.input.focus()},20);return}try{var _=e.dataTransfer.getData("Text");if(_){var M;if(t.state.draggingText&&!t.state.draggingText.copy&&(M=t.listSelections()),an(t.doc,Wi(o,o)),M)for(var N=0;N<M.length;++N)na(t.doc,"",M[N].anchor,M[N].head,"drag");t.replaceSelection(_,"around","paste"),t.display.input.focus()}}catch{}}}}function N1(e,t){if(T&&(!e.state.draggingText||+new Date-jc<100)){io(t);return}if(!(Gt(e,t)||oi(e.display,t))&&(t.dataTransfer.setData("Text",e.getSelection()),t.dataTransfer.effectAllowed="copyMove",t.dataTransfer.setDragImage&&!re)){var o=P("img",null,null,"position: fixed; left: 0; top: 0;");o.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",Z&&(o.width=o.height=1,e.display.wrapper.appendChild(o),o._top=o.offsetTop),t.dataTransfer.setDragImage(o,0,0),Z&&o.parentNode.removeChild(o)}}function fu(e,t){var o=Un(e,t);if(!!o){var n=document.createDocumentFragment();li(e,o,n),e.display.dragCursor||(e.display.dragCursor=P("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),e.display.lineSpace.insertBefore(e.display.dragCursor,e.display.cursorDiv)),V(e.display.dragCursor,n)}}function hu(e){e.display.dragCursor&&(e.display.lineSpace.removeChild(e.display.dragCursor),e.display.dragCursor=null)}function is(e){if(!!document.getElementsByClassName){for(var t=document.getElementsByClassName("CodeMirror"),o=[],n=0;n<t.length;n++){var u=t[n].CodeMirror;u&&o.push(u)}o.length&&o[0].operation(function(){for(var h=0;h<o.length;h++)e(o[h])})}}var Yc=!1;function pu(){Yc||(st(),Yc=!0)}function st(){var e;Ne(window,"resize",function(){e==null&&(e=setTimeout(function(){e=null,is(H1)},100))}),Ne(window,"blur",function(){return is(vo)})}function H1(e){var t=e.display;t.cachedCharWidth=t.cachedTextHeight=t.cachedPaddingH=null,t.scrollbarsClipped=!1,e.setSize()}for(var ji={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"},si=0;si<10;si++)ji[si+48]=ji[si+96]=String(si);for(var Qa=65;Qa<=90;Qa++)ji[Qa]=String.fromCharCode(Qa);for(var Ja=1;Ja<=12;Ja++)ji[Ja+111]=ji[Ja+63235]="F"+Ja;var ui={};ui.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"},ui.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"},ui.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"},ui.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"]},ui.default=de?ui.macDefault:ui.pcDefault;function gn(e){var t=e.split(/-(?!$)/);e=t[t.length-1];for(var o,n,u,h,p=0;p<t.length-1;p++){var m=t[p];if(/^(cmd|meta|m)$/i.test(m))h=!0;else if(/^a(lt)?$/i.test(m))o=!0;else if(/^(c|ctrl|control)$/i.test(m))n=!0;else if(/^s(hift)?$/i.test(m))u=!0;else throw new Error("Unrecognized modifier name: "+m)}return o&&(e="Alt-"+e),n&&(e="Ctrl-"+e),h&&(e="Cmd-"+e),u&&(e="Shift-"+e),e}function B1(e){var t={};for(var o in e)if(e.hasOwnProperty(o)){var n=e[o];if(/^(name|fallthrough|(de|at)tach)$/.test(o))continue;if(n=="..."){delete e[o];continue}for(var u=ht(o.split(" "),gn),h=0;h<u.length;h++){var p=void 0,m=void 0;h==u.length-1?(m=u.join(" "),p=n):(m=u.slice(0,h+1).join(" "),p="...");var y=t[m];if(!y)t[m]=p;else if(y!=p)throw new Error("Inconsistent bindings for "+m)}delete e[o]}for(var C in t)e[C]=t[C];return e}function ci(e,t,o,n){t=kr(t);var u=t.call?t.call(e,n):t[e];if(u===!1)return"nothing";if(u==="...")return"multi";if(u!=null&&o(u))return"handled";if(t.fallthrough){if(Object.prototype.toString.call(t.fallthrough)!="[object Array]")return ci(e,t.fallthrough,o,n);for(var h=0;h<t.fallthrough.length;h++){var p=ci(e,t.fallthrough[h],o,n);if(p)return p}}}function os(e){var t=typeof e=="string"?e:ji[e.keyCode];return t=="Ctrl"||t=="Alt"||t=="Shift"||t=="Mod"}function gu(e,t,o){var n=e;return t.altKey&&n!="Alt"&&(e="Alt-"+e),(je?t.metaKey:t.ctrlKey)&&n!="Ctrl"&&(e="Ctrl-"+e),(je?t.ctrlKey:t.metaKey)&&n!="Mod"&&(e="Cmd-"+e),!o&&t.shiftKey&&n!="Shift"&&(e="Shift-"+e),e}function vu(e,t){if(Z&&e.keyCode==34&&e.char)return!1;var o=ji[e.keyCode];return o==null||e.altGraphKey?!1:(e.keyCode==3&&e.code&&(o=e.code),gu(o,e,t))}function kr(e){return typeof e=="string"?ui[e]:e}function ln(e,t){for(var o=e.doc.sel.ranges,n=[],u=0;u<o.length;u++){for(var h=t(o[u]);n.length&&w(h.from,Ke(n).to)<=0;){var p=n.pop();if(w(p.from,h.from)<0){h.from=p.from;break}}n.push(h)}yr(e,function(){for(var m=n.length-1;m>=0;m--)na(e.doc,"",n[m].from,n[m].to,"+delete");Ni(e)})}function el(e,t,o){var n=tr(e.text,t+o,o);return n<0||n>e.text.length?null:n}function as(e,t,o){var n=el(e,t.ch,o);return n==null?null:new oe(t.line,n,o<0?"after":"before")}function la(e,t,o,n,u){if(e){t.doc.direction=="rtl"&&(u=-u);var h=Sr(o,t.doc.direction);if(h){var p=u<0?Ke(h):h[0],m=u<0==(p.level==1),y=m?"after":"before",C;if(p.level>0||t.doc.direction=="rtl"){var _=En(t,o);C=u<0?o.text.length-1:0;var M=Wn(t,_,C).top;C=pr(function(N){return Wn(t,_,N).top==M},u<0==(p.level==1)?p.from:p.to-1,C),y=="before"&&(C=el(o,C,1))}else C=u<0?p.to:p.from;return new oe(n,C,y)}}return new oe(n,u<0?o.text.length:0,u<0?"before":"after")}function Xc(e,t,o,n){var u=Sr(t,e.doc.direction);if(!u)return as(t,o,n);o.ch>=t.text.length?(o.ch=t.text.length,o.sticky="before"):o.ch<=0&&(o.ch=0,o.sticky="after");var h=Rt(u,o.ch,o.sticky),p=u[h];if(e.doc.direction=="ltr"&&p.level%2==0&&(n>0?p.to>o.ch:p.from<o.ch))return as(t,o,n);var m=function(fe,we){return el(t,fe instanceof oe?fe.ch:fe,we)},y,C=function(fe){return e.options.lineWrapping?(y=y||En(e,t),G(e,t,y,fe)):{begin:0,end:t.text.length}},_=C(o.sticky=="before"?m(o,-1):o.ch);if(e.doc.direction=="rtl"||p.level==1){var M=p.level==1==n<0,N=m(o,M?1:-1);if(N!=null&&(M?N<=p.to&&N<=_.end:N>=p.from&&N>=_.begin)){var D=M?"before":"after";return new oe(o.line,N,D)}}var q=function(fe,we,he){for(var xe=function(xt,Xt){return Xt?new oe(o.line,m(xt,1),"before"):new oe(o.line,xt,"after")};fe>=0&&fe<u.length;fe+=we){var $e=u[fe],Pe=we>0==($e.level!=1),ot=Pe?he.begin:m(he.end,-1);if($e.from<=ot&&ot<$e.to||(ot=Pe?$e.from:m($e.to,-1),he.begin<=ot&&ot<he.end))return xe(ot,Pe)}},te=q(h+n,n,_);if(te)return te;var ce=n>0?_.end:m(_.begin,-1);return ce!=null&&!(n>0&&ce==t.text.length)&&(te=q(n>0?0:u.length-1,n,C(ce)),te)?te:null}var Lo={selectAll:Bc,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),nt)},killLine:function(e){return ln(e,function(t){if(t.empty()){var o=Oe(e.doc,t.head.line).text.length;return t.head.ch==o&&t.head.line<e.lastLine()?{from:t.head,to:oe(t.head.line+1,0)}:{from:t.head,to:oe(t.head.line,o)}}else return{from:t.from(),to:t.to()}})},deleteLine:function(e){return ln(e,function(t){return{from:oe(t.from().line,0),to:Ce(e.doc,oe(t.to().line+1,0))}})},delLineLeft:function(e){return ln(e,function(t){return{from:oe(t.from().line,0),to:t.from()}})},delWrappedLineLeft:function(e){return ln(e,function(t){var o=e.charCoords(t.head,"div").top+5,n=e.coordsChar({left:0,top:o},"div");return{from:n,to:t.from()}})},delWrappedLineRight:function(e){return ln(e,function(t){var o=e.charCoords(t.head,"div").top+5,n=e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:o},"div");return{from:t.from(),to:n}})},undo:function(e){return e.undo()},redo:function(e){return e.redo()},undoSelection:function(e){return e.undoSelection()},redoSelection:function(e){return e.redoSelection()},goDocStart:function(e){return e.extendSelection(oe(e.firstLine(),0))},goDocEnd:function(e){return e.extendSelection(oe(e.lastLine()))},goLineStart:function(e){return e.extendSelectionsBy(function(t){return bu(e,t.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(e){return e.extendSelectionsBy(function(t){return ls(e,t.head)},{origin:"+move",bias:1})},goLineEnd:function(e){return e.extendSelectionsBy(function(t){return mu(e,t.head.line)},{origin:"+move",bias:-1})},goLineRight:function(e){return e.extendSelectionsBy(function(t){var o=e.cursorCoords(t.head,"div").top+5;return e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:o},"div")},We)},goLineLeft:function(e){return e.extendSelectionsBy(function(t){var o=e.cursorCoords(t.head,"div").top+5;return e.coordsChar({left:0,top:o},"div")},We)},goLineLeftSmart:function(e){return e.extendSelectionsBy(function(t){var o=e.cursorCoords(t.head,"div").top+5,n=e.coordsChar({left:0,top:o},"div");return n.ch<e.getLine(n.line).search(/\S/)?ls(e,t.head):n},We)},goLineUp:function(e){return e.moveV(-1,"line")},goLineDown:function(e){return e.moveV(1,"line")},goPageUp:function(e){return e.moveV(-1,"page")},goPageDown:function(e){return e.moveV(1,"page")},goCharLeft:function(e){return e.moveH(-1,"char")},goCharRight:function(e){return e.moveH(1,"char")},goColumnLeft:function(e){return e.moveH(-1,"column")},goColumnRight:function(e){return e.moveH(1,"column")},goWordLeft:function(e){return e.moveH(-1,"word")},goGroupRight:function(e){return e.moveH(1,"group")},goGroupLeft:function(e){return e.moveH(-1,"group")},goWordRight:function(e){return e.moveH(1,"word")},delCharBefore:function(e){return e.deleteH(-1,"codepoint")},delCharAfter:function(e){return e.deleteH(1,"char")},delWordBefore:function(e){return e.deleteH(-1,"word")},delWordAfter:function(e){return e.deleteH(1,"word")},delGroupBefore:function(e){return e.deleteH(-1,"group")},delGroupAfter:function(e){return e.deleteH(1,"group")},indentAuto:function(e){return e.indentSelection("smart")},indentMore:function(e){return e.indentSelection("add")},indentLess:function(e){return e.indentSelection("subtract")},insertTab:function(e){return e.replaceSelection(" ")},insertSoftTab:function(e){for(var t=[],o=e.listSelections(),n=e.options.tabSize,u=0;u<o.length;u++){var h=o[u].from(),p=At(e.getLine(h.line),h.ch,n);t.push(Yt(n-p%n))}e.replaceSelections(t)},defaultTab:function(e){e.somethingSelected()?e.indentSelection("add"):e.execCommand("insertTab")},transposeChars:function(e){return yr(e,function(){for(var t=e.listSelections(),o=[],n=0;n<t.length;n++)if(!!t[n].empty()){var u=t[n].head,h=Oe(e.doc,u.line).text;if(h){if(u.ch==h.length&&(u=new oe(u.line,u.ch-1)),u.ch>0)u=new oe(u.line,u.ch+1),e.replaceRange(h.charAt(u.ch-1)+h.charAt(u.ch-2),oe(u.line,u.ch-2),u,"+transpose");else if(u.line>e.doc.first){var p=Oe(e.doc,u.line-1).text;p&&(u=new oe(u.line,1),e.replaceRange(h.charAt(0)+e.doc.lineSeparator()+p.charAt(p.length-1),oe(u.line-1,p.length-1),u,"+transpose"))}}o.push(new mt(u,u))}e.setSelections(o)})},newlineAndIndent:function(e){return yr(e,function(){for(var t=e.listSelections(),o=t.length-1;o>=0;o--)e.replaceRange(e.doc.lineSeparator(),t[o].anchor,t[o].head,"+input");t=e.listSelections();for(var n=0;n<t.length;n++)e.indentLine(t[n].from().line,null,!0);Ni(e)})},openLine:function(e){return e.replaceSelection(`
2329
+ `,"start")},toggleOverwrite:function(e){return e.toggleOverwrite()}};function bu(e,t){var o=Oe(e.doc,t),n=Fn(o);return n!=o&&(t=bt(n)),la(!0,e,n,t,1)}function mu(e,t){var o=Oe(e.doc,t),n=d1(o);return n!=o&&(t=bt(n)),la(!0,e,o,t,-1)}function ls(e,t){var o=bu(e,t.line),n=Oe(e.doc,o.line),u=Sr(n,e.doc.direction);if(!u||u[0].level==0){var h=Math.max(o.ch,n.text.search(/\S/)),p=t.line==o.line&&t.ch<=h&&t.ch;return oe(o.line,p?0:h,o.sticky)}return o}function An(e,t,o){if(typeof t=="string"&&(t=Lo[t],!t))return!1;e.display.input.ensurePolled();var n=e.display.shift,u=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),o&&(e.display.shift=!1),u=t(e)!=Ue}finally{e.display.shift=n,e.state.suppressEdits=!1}return u}function F1(e,t,o){for(var n=0;n<e.state.keyMaps.length;n++){var u=ci(t,e.state.keyMaps[n],o,e);if(u)return u}return e.options.extraKeys&&ci(t,e.options.extraKeys,o,e)||ci(t,e.options.keyMap,o,e)}var Ki=new at;function sa(e,t,o,n){var u=e.state.keySeq;if(u){if(os(t))return"handled";if(/\'$/.test(t)?e.state.keySeq=null:Ki.set(50,function(){e.state.keySeq==u&&(e.state.keySeq=null,e.display.input.reset())}),yu(e,u+" "+t,o,n))return!0}return yu(e,t,o,n)}function yu(e,t,o,n){var u=F1(e,t,n);return u=="multi"&&(e.state.keySeq=t),u=="handled"&&rr(e,"keyHandled",e,t,o),(u=="handled"||u=="multi")&&(ur(o),qo(e)),!!u}function ss(e,t){var o=vu(t,!0);return o?t.shiftKey&&!e.state.keySeq?sa(e,"Shift-"+o,t,function(n){return An(e,n,!0)})||sa(e,o,t,function(n){if(typeof n=="string"?/^go[A-Z]/.test(n):n.motion)return An(e,n)}):sa(e,o,t,function(n){return An(e,n)}):!1}function W1(e,t,o){return sa(e,"'"+o+"'",t,function(n){return An(e,n,!0)})}var Cu=null;function Qc(e){var t=this;if(!(e.target&&e.target!=t.display.input.getField())&&(t.curOp.focus=rt(),!Gt(t,e))){T&&k<11&&e.keyCode==27&&(e.returnValue=!1);var o=e.keyCode;t.display.shift=o==16||e.shiftKey;var n=ss(t,e);Z&&(Cu=n?o:null,!n&&o==88&&!zl&&(de?e.metaKey:e.ctrlKey)&&t.replaceSelection("",null,"cut")),c&&!de&&!n&&o==46&&e.shiftKey&&!e.ctrlKey&&document.execCommand&&document.execCommand("cut"),o==18&&!/\bCodeMirror-crosshair\b/.test(t.display.lineDiv.className)&&Jc(t)}}function Jc(e){var t=e.display.lineDiv;Lt(t,"CodeMirror-crosshair");function o(n){(n.keyCode==18||!n.altKey)&&(ye(t,"CodeMirror-crosshair"),gr(document,"keyup",o),gr(document,"mouseover",o))}Ne(document,"keyup",o),Ne(document,"mouseover",o)}function wu(e){e.keyCode==16&&(this.doc.sel.shift=!1),Gt(this,e)}function e0(e){var t=this;if(!(e.target&&e.target!=t.display.input.getField())&&!(oi(t.display,e)||Gt(t,e)||e.ctrlKey&&!e.altKey||de&&e.metaKey)){var o=e.keyCode,n=e.charCode;if(Z&&o==Cu){Cu=null,ur(e);return}if(!(Z&&(!e.which||e.which<10)&&ss(t,e))){var u=String.fromCharCode(n==null?o:n);u!="\b"&&(W1(t,e,u)||t.display.input.onKeyPress(e))}}}var t0=400,us=function(e,t,o){this.time=e,this.pos=t,this.button=o};us.prototype.compare=function(e,t,o){return this.time+t0>e&&w(t,this.pos)==0&&o==this.button};var fr,Yr;function U1(e,t){var o=+new Date;return Yr&&Yr.compare(o,e,t)?(fr=Yr=null,"triple"):fr&&fr.compare(o,e,t)?(Yr=new us(o,e,t),fr=null,"double"):(fr=new us(o,e,t),Yr=null,"single")}function r0(e){var t=this,o=t.display;if(!(Gt(t,e)||o.activeTouch&&o.input.supportsTouch())){if(o.input.ensurePolled(),o.shift=e.shiftKey,oi(o,e)){A||(o.scroller.draggable=!1,setTimeout(function(){return o.scroller.draggable=!0},100));return}if(!xu(t,e)){var n=Un(t,e),u=_a(e),h=n?U1(n,u):"single";window.focus(),u==1&&t.state.selectingText&&t.state.selectingText(e),!(n&&cs(t,u,n,h,e))&&(u==1?n?n0(t,n,h,e):_i(e)==o.scroller&&ur(e):u==2?(n&&Yl(t.doc,n),setTimeout(function(){return o.input.focus()},20)):u==3&&(Ye?t.display.input.onContextMenu(e):Wl(t)))}}}function cs(e,t,o,n,u){var h="Click";return n=="double"?h="Double"+h:n=="triple"&&(h="Triple"+h),h=(t==1?"Left":t==2?"Middle":"Right")+h,sa(e,gu(h,u),u,function(p){if(typeof p=="string"&&(p=Lo[p]),!p)return!1;var m=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),m=p(e,o)!=Ue}finally{e.state.suppressEdits=!1}return m})}function ua(e,t,o){var n=e.getOption("configureMouse"),u=n?n(e,t,o):{};if(u.unit==null){var h=ke?o.shiftKey&&o.metaKey:o.altKey;u.unit=h?"rectangle":t=="single"?"char":t=="double"?"word":"line"}return(u.extend==null||e.doc.extend)&&(u.extend=e.doc.extend||o.shiftKey),u.addNew==null&&(u.addNew=de?o.metaKey:o.ctrlKey),u.moveOnDrag==null&&(u.moveOnDrag=!(de?o.altKey:o.ctrlKey)),u}function n0(e,t,o,n){T?setTimeout(Xr(Xs,e),0):e.curOp.focus=rt();var u=ua(e,o,n),h=e.doc.sel,p;e.options.dragDrop&&Sa&&!e.isReadOnly()&&o=="single"&&(p=h.contains(t))>-1&&(w((p=h.ranges[p]).from(),t)<0||t.xRel>0)&&(w(p.to(),t)>0||t.xRel<0)?i0(e,n,t,u):a0(e,n,t,u)}function i0(e,t,o,n){var u=e.display,h=!1,p=Ft(e,function(C){A&&(u.scroller.draggable=!1),e.state.draggingText=!1,e.state.delayingBlurEvent&&(e.hasFocus()?e.state.delayingBlurEvent=!1:Wl(e)),gr(u.wrapper.ownerDocument,"mouseup",p),gr(u.wrapper.ownerDocument,"mousemove",m),gr(u.scroller,"dragstart",y),gr(u.scroller,"drop",p),h||(ur(C),n.addNew||Yl(e.doc,o,null,null,n.extend),A&&!re||T&&k==9?setTimeout(function(){u.wrapper.ownerDocument.body.focus({preventScroll:!0}),u.input.focus()},20):u.input.focus())}),m=function(C){h=h||Math.abs(t.clientX-C.clientX)+Math.abs(t.clientY-C.clientY)>=10},y=function(){return h=!0};A&&(u.scroller.draggable=!0),e.state.draggingText=p,p.copy=!n.moveOnDrag,Ne(u.wrapper.ownerDocument,"mouseup",p),Ne(u.wrapper.ownerDocument,"mousemove",m),Ne(u.scroller,"dragstart",y),Ne(u.scroller,"drop",p),e.state.delayingBlurEvent=!0,setTimeout(function(){return u.input.focus()},20),u.scroller.dragDrop&&u.scroller.dragDrop()}function o0(e,t,o){if(o=="char")return new mt(t,t);if(o=="word")return e.findWordAt(t);if(o=="line")return new mt(oe(t.line,0),Ce(e.doc,oe(t.line+1,0)));var n=o(e,t);return new mt(n.from,n.to)}function a0(e,t,o,n){T&&Wl(e);var u=e.display,h=e.doc;ur(t);var p,m,y=h.sel,C=y.ranges;if(n.addNew&&!n.extend?(m=h.sel.contains(o),m>-1?p=C[m]:p=new mt(o,o)):(p=h.sel.primary(),m=h.sel.primIndex),n.unit=="rectangle")n.addNew||(p=new mt(o,o)),o=Un(e,t,!0,!0),m=-1;else{var _=o0(e,o,n.unit);n.extend?p=Kl(p,_.anchor,_.head,n.extend):p=_}n.addNew?m==-1?(m=C.length,cr(h,wr(e,C.concat([p]),m),{scroll:!1,origin:"*mouse"})):C.length>1&&C[m].empty()&&n.unit=="char"&&!n.extend?(cr(h,wr(e,C.slice(0,m).concat(C.slice(m+1)),0),{scroll:!1,origin:"*mouse"}),y=h.sel):uu(h,m,p,it):(m=0,cr(h,new nn([p],0),it),y=h.sel);var M=o;function N(he){if(w(M,he)!=0)if(M=he,n.unit=="rectangle"){for(var xe=[],$e=e.options.tabSize,Pe=At(Oe(h,o.line).text,o.ch,$e),ot=At(Oe(h,he.line).text,he.ch,$e),xt=Math.min(Pe,ot),Xt=Math.max(Pe,ot),kt=Math.min(o.line,he.line),Tr=Math.min(e.lastLine(),Math.max(o.line,he.line));kt<=Tr;kt++){var Er=Oe(h,kt).text,Vt=Nt(Er,xt,$e);xt==Xt?xe.push(new mt(oe(kt,Vt),oe(kt,Vt))):Er.length>Vt&&xe.push(new mt(oe(kt,Vt),oe(kt,Nt(Er,Xt,$e))))}xe.length||xe.push(new mt(o,o)),cr(h,wr(e,y.ranges.slice(0,m).concat(xe),m),{origin:"*mouse",scroll:!1}),e.scrollIntoView(he)}else{var hr=p,ir=o0(e,he,n.unit),St=hr.anchor,Et;w(ir.anchor,St)>0?(Et=ir.head,St=Ve(hr.from(),ir.anchor)):(Et=ir.anchor,St=le(hr.to(),ir.head));var Wt=y.ranges.slice(0);Wt[m]=ca(e,new mt(Ce(h,St),Et)),cr(h,wr(e,Wt,m),it)}}var D=u.wrapper.getBoundingClientRect(),q=0;function te(he){var xe=++q,$e=Un(e,he,!0,n.unit=="rectangle");if(!!$e)if(w($e,M)!=0){e.curOp.focus=rt(),N($e);var Pe=bo(u,h);($e.line>=Pe.to||$e.line<Pe.from)&&setTimeout(Ft(e,function(){q==xe&&te(he)}),150)}else{var ot=he.clientY<D.top?-20:he.clientY>D.bottom?20:0;ot&&setTimeout(Ft(e,function(){q==xe&&(u.scroller.scrollTop+=ot,te(he))}),50)}}function ce(he){e.state.selectingText=!1,q=1/0,he&&(ur(he),u.input.focus()),gr(u.wrapper.ownerDocument,"mousemove",fe),gr(u.wrapper.ownerDocument,"mouseup",we),h.history.lastSelOrigin=null}var fe=Ft(e,function(he){he.buttons===0||!_a(he)?ce(he):te(he)}),we=Ft(e,ce);e.state.selectingText=we,Ne(u.wrapper.ownerDocument,"mousemove",fe),Ne(u.wrapper.ownerDocument,"mouseup",we)}function ca(e,t){var o=t.anchor,n=t.head,u=Oe(e.doc,o.line);if(w(o,n)==0&&o.sticky==n.sticky)return t;var h=Sr(u);if(!h)return t;var p=Rt(h,o.ch,o.sticky),m=h[p];if(m.from!=o.ch&&m.to!=o.ch)return t;var y=p+(m.from==o.ch==(m.level!=1)?0:1);if(y==0||y==h.length)return t;var C;if(n.line!=o.line)C=(n.line-o.line)*(e.doc.direction=="ltr"?1:-1)>0;else{var _=Rt(h,n.ch,n.sticky),M=_-p||(n.ch-o.ch)*(m.level==1?-1:1);_==y-1||_==y?C=M<0:C=M>0}var N=h[y+(C?-1:0)],D=C==(N.level==1),q=D?N.from:N.to,te=D?"after":"before";return o.ch==q&&o.sticky==te?t:new mt(new oe(o.line,q,te),n)}function da(e,t,o,n){var u,h;if(t.touches)u=t.touches[0].clientX,h=t.touches[0].clientY;else try{u=t.clientX,h=t.clientY}catch{return!1}if(u>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;n&&ur(t);var p=e.display,m=p.lineDiv.getBoundingClientRect();if(h>m.bottom||!sr(e,o))return Qr(t);h-=m.top-p.viewOffset;for(var y=0;y<e.display.gutterSpecs.length;++y){var C=p.gutters.childNodes[y];if(C&&C.getBoundingClientRect().right>=u){var _=On(e.doc,h),M=e.display.gutterSpecs[y];return Ze(e,o,e,_,M.className,t),Qr(t)}}}function xu(e,t){return da(e,t,"gutterClick",!0)}function zu(e,t){oi(e.display,t)||l0(e,t)||Gt(e,t,"contextmenu")||Ye||e.display.input.onContextMenu(t)}function l0(e,t){return sr(e,"gutterContextMenu")?da(e,t,"gutterContextMenu",!1):!1}function tl(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),Na(e)}var _o={toString:function(){return"CodeMirror.Init"}},rl={},fa={};function ds(e){var t=e.optionHandlers;function o(n,u,h,p){e.defaults[n]=u,h&&(t[n]=p?function(m,y,C){C!=_o&&h(m,y,C)}:h)}e.defineOption=o,e.Init=_o,o("value","",function(n,u){return n.setValue(u)},!0),o("mode",null,function(n,u){n.doc.modeOption=u,iu(n)},!0),o("indentUnit",2,iu,!0),o("indentWithTabs",!1),o("smartIndent",!0),o("tabSize",4,function(n){Ga(n),Na(n),tt(n)},!0),o("lineSeparator",null,function(n,u){if(n.doc.lineSep=u,!!u){var h=[],p=n.doc.first;n.doc.iter(function(y){for(var C=0;;){var _=y.text.indexOf(u,C);if(_==-1)break;C=_+u.length,h.push(oe(p,_))}p++});for(var m=h.length-1;m>=0;m--)na(n.doc,u,h[m],oe(h[m].line,h[m].ch+u.length))}}),o("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(n,u,h){n.state.specialChars=new RegExp(u.source+(u.test(" ")?"":"| "),"g"),h!=_o&&n.refresh()}),o("specialCharPlaceholder",rn,function(n){return n.refresh()},!0),o("electricChars",!0),o("inputStyle",pe?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),o("spellcheck",!1,function(n,u){return n.getInputField().spellcheck=u},!0),o("autocorrect",!1,function(n,u){return n.getInputField().autocorrect=u},!0),o("autocapitalize",!1,function(n,u){return n.getInputField().autocapitalize=u},!0),o("rtlMoveVisually",!Ee),o("wholeLineUpdateBefore",!0),o("theme","default",function(n){tl(n),Va(n)},!0),o("keyMap","default",function(n,u,h){var p=kr(u),m=h!=_o&&kr(h);m&&m.detach&&m.detach(n,p),p.attach&&p.attach(n,m||null)}),o("extraKeys",null),o("configureMouse",null),o("lineWrapping",!1,s0,!0),o("gutters",[],function(n,u){n.display.gutterSpecs=ru(u,n.options.lineNumbers),Va(n)},!0),o("fixedGutter",!0,function(n,u){n.display.gutters.style.left=u?Go(n.display)+"px":"0",n.refresh()},!0),o("coverGutterNextToScrollbar",!1,function(n){return Bi(n)},!0),o("scrollbarStyle","native",function(n){yo(n),Bi(n),n.display.scrollbars.setScrollTop(n.doc.scrollTop),n.display.scrollbars.setScrollLeft(n.doc.scrollLeft)},!0),o("lineNumbers",!1,function(n,u){n.display.gutterSpecs=ru(n.options.gutters,u),Va(n)},!0),o("firstLineNumber",1,Va,!0),o("lineNumberFormatter",function(n){return n},Va,!0),o("showCursorWhenSelecting",!1,Ha,!0),o("resetSelectionOnContextMenu",!0),o("lineWiseCopyCut",!0),o("pasteLinesPerSelection",!0),o("selectionsMayTouch",!1),o("readOnly",!1,function(n,u){u=="nocursor"&&(vo(n),n.display.input.blur()),n.display.input.readOnlyChanged(u)}),o("screenReaderLabel",null,function(n,u){u=u===""?null:u,n.display.input.screenReaderLabelChanged(u)}),o("disableInput",!1,function(n,u){u||n.display.input.reset()},!0),o("dragDrop",!0,Z1),o("allowDropFileTypes",null),o("cursorBlinkRate",530),o("cursorScrollMargin",0),o("cursorHeight",1,Ha,!0),o("singleCursorHeightPerLine",!0,Ha,!0),o("workTime",100),o("workDelay",100),o("flattenSpans",!0,Ga,!0),o("addModeClass",!1,Ga,!0),o("pollInterval",100),o("undoDepth",200,function(n,u){return n.doc.history.undoDepth=u}),o("historyEventDelay",1250),o("viewportMargin",10,function(n){return n.refresh()},!0),o("maxHighlightLength",1e4,Ga,!0),o("moveInputWithCursor",!0,function(n,u){u||n.display.input.resetPosition()}),o("tabindex",null,function(n,u){return n.display.input.getField().tabIndex=u||""}),o("autofocus",null),o("direction","ltr",function(n,u){return n.doc.setDirection(u)},!0),o("phrases",null)}function Z1(e,t,o){var n=o&&o!=_o;if(!t!=!n){var u=e.display.dragFunctions,h=t?Ne:gr;h(e.display.scroller,"dragstart",u.start),h(e.display.scroller,"dragenter",u.enter),h(e.display.scroller,"dragover",u.over),h(e.display.scroller,"dragleave",u.leave),h(e.display.scroller,"drop",u.drop)}}function s0(e){e.options.lineWrapping?(Lt(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(ye(e.display.wrapper,"CodeMirror-wrap"),$a(e)),Ai(e),tt(e),Na(e),setTimeout(function(){return Bi(e)},100)}function Mt(e,t){var o=this;if(!(this instanceof Mt))return new Mt(e,t);this.options=t=t?Ut(t):{},Ut(rl,t,!1);var n=t.value;typeof n=="string"?n=new Mr(n,t.mode,null,t.lineSeparator,t.direction):t.mode&&(n.modeOption=t.mode),this.doc=n;var u=new Mt.inputStyles[t.inputStyle](this),h=this.display=new P1(e,n,u,t);h.wrapper.CodeMirror=this,tl(this),t.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),yo(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 at,keySeq:null,specialChars:null},t.autofocus&&!pe&&h.input.focus(),T&&k<11&&setTimeout(function(){return o.display.input.reset(!0)},20),u0(this),pu(),In(this),this.curOp.forceUpdate=!0,Dc(this,n),t.autofocus&&!pe||this.hasFocus()?setTimeout(function(){o.hasFocus()&&!o.state.focused&&jo(o)},20):vo(this);for(var p in fa)fa.hasOwnProperty(p)&&fa[p](this,t[p],_o);qn(this),t.finishInit&&t.finishInit(this);for(var m=0;m<nl.length;++m)nl[m](this);Vn(this),A&&t.lineWrapping&&getComputedStyle(h.lineDiv).textRendering=="optimizelegibility"&&(h.lineDiv.style.textRendering="auto")}Mt.defaults=rl,Mt.optionHandlers=fa;function u0(e){var t=e.display;Ne(t.scroller,"mousedown",Ft(e,r0)),T&&k<11?Ne(t.scroller,"dblclick",Ft(e,function(y){if(!Gt(e,y)){var C=Un(e,y);if(!(!C||xu(e,y)||oi(e.display,y))){ur(y);var _=e.findWordAt(C);Yl(e.doc,_.anchor,_.head)}}})):Ne(t.scroller,"dblclick",function(y){return Gt(e,y)||ur(y)}),Ne(t.scroller,"contextmenu",function(y){return zu(e,y)}),Ne(t.input.getField(),"contextmenu",function(y){t.scroller.contains(y.target)||zu(e,y)});var o,n={end:0};function u(){t.activeTouch&&(o=setTimeout(function(){return t.activeTouch=null},1e3),n=t.activeTouch,n.end=+new Date)}function h(y){if(y.touches.length!=1)return!1;var C=y.touches[0];return C.radiusX<=1&&C.radiusY<=1}function p(y,C){if(C.left==null)return!0;var _=C.left-y.left,M=C.top-y.top;return _*_+M*M>20*20}Ne(t.scroller,"touchstart",function(y){if(!Gt(e,y)&&!h(y)&&!xu(e,y)){t.input.ensurePolled(),clearTimeout(o);var C=+new Date;t.activeTouch={start:C,moved:!1,prev:C-n.end<=300?n:null},y.touches.length==1&&(t.activeTouch.left=y.touches[0].pageX,t.activeTouch.top=y.touches[0].pageY)}}),Ne(t.scroller,"touchmove",function(){t.activeTouch&&(t.activeTouch.moved=!0)}),Ne(t.scroller,"touchend",function(y){var C=t.activeTouch;if(C&&!oi(t,y)&&C.left!=null&&!C.moved&&new Date-C.start<300){var _=e.coordsChar(t.activeTouch,"page"),M;!C.prev||p(C,C.prev)?M=new mt(_,_):!C.prev.prev||p(C,C.prev.prev)?M=e.findWordAt(_):M=new mt(oe(_.line,0),Ce(e.doc,oe(_.line+1,0))),e.setSelection(M.anchor,M.head),e.focus(),ur(y)}u()}),Ne(t.scroller,"touchcancel",u),Ne(t.scroller,"scroll",function(){t.scroller.clientHeight&&(Bt(e,t.scroller.scrollTop),mo(e,t.scroller.scrollLeft,!0),Ze(e,"scroll",e))}),Ne(t.scroller,"mousewheel",function(y){return Ac(e,y)}),Ne(t.scroller,"DOMMouseScroll",function(y){return Ac(e,y)}),Ne(t.wrapper,"scroll",function(){return t.wrapper.scrollTop=t.wrapper.scrollLeft=0}),t.dragFunctions={enter:function(y){Gt(e,y)||io(y)},over:function(y){Gt(e,y)||(fu(e,y),io(y))},start:function(y){return N1(e,y)},drop:Ft(e,Kc),leave:function(y){Gt(e,y)||hu(e)}};var m=t.input.getField();Ne(m,"keyup",function(y){return wu.call(e,y)}),Ne(m,"keydown",Ft(e,Qc)),Ne(m,"keypress",Ft(e,e0)),Ne(m,"focus",function(y){return jo(e,y)}),Ne(m,"blur",function(y){return vo(e,y)})}var nl=[];Mt.defineInitHook=function(e){return nl.push(e)};function il(e,t,o,n){var u=e.doc,h;o==null&&(o="add"),o=="smart"&&(u.mode.indent?h=Wo(e,t).state:o="prev");var p=e.options.tabSize,m=Oe(u,t),y=At(m.text,null,p);m.stateAfter&&(m.stateAfter=null);var C=m.text.match(/^\s*/)[0],_;if(!n&&!/\S/.test(m.text))_=0,o="not";else if(o=="smart"&&(_=u.mode.indent(h,m.text.slice(C.length),m.text),_==Ue||_>150)){if(!n)return;o="prev"}o=="prev"?t>u.first?_=At(Oe(u,t-1).text,null,p):_=0:o=="add"?_=y+e.options.indentUnit:o=="subtract"?_=y-e.options.indentUnit:typeof o=="number"&&(_=y+o),_=Math.max(0,_);var M="",N=0;if(e.options.indentWithTabs)for(var D=Math.floor(_/p);D;--D)N+=p,M+=" ";if(N<_&&(M+=Yt(_-N)),M!=C)return na(u,M,oe(t,0),oe(t,C.length),"+input"),m.stateAfter=null,!0;for(var q=0;q<u.sel.ranges.length;q++){var te=u.sel.ranges[q];if(te.head.line==t&&te.head.ch<C.length){var ce=oe(t,C.length);uu(u,q,new mt(ce,ce));break}}}var vn=null;function bn(e){vn=e}function fs(e,t,o,n,u){var h=e.doc;e.display.shift=!1,n||(n=h.sel);var p=+new Date-200,m=u=="paste"||e.state.pasteIncoming>p,y=ao(t),C=null;if(m&&n.ranges.length>1)if(vn&&vn.text.join(`
2330
+ `)==t){if(n.ranges.length%vn.text.length==0){C=[];for(var _=0;_<vn.text.length;_++)C.push(h.splitLines(vn.text[_]))}}else y.length==n.ranges.length&&e.options.pasteLinesPerSelection&&(C=ht(y,function(fe){return[fe]}));for(var M=e.curOp.updateInput,N=n.ranges.length-1;N>=0;N--){var D=n.ranges[N],q=D.from(),te=D.to();D.empty()&&(o&&o>0?q=oe(q.line,q.ch-o):e.state.overwrite&&!m?te=oe(te.line,Math.min(Oe(h,te.line).text.length,te.ch+Ke(y).length)):m&&vn&&vn.lineWise&&vn.text.join(`
2327
2331
  `)==y.join(`
2328
- `)&&(q=te=oe(q.line,0)));var ue={from:q,to:te,text:C?C[N%C.length]:y,origin:u||(m?"paste":e.state.cutIncoming>p?"cut":"+input")};ea(e.doc,ue),rr(e,"inputRead",e,ue)}t&&!m&&c0(e,t),Ni(e),e.curOp.updateInput<2&&(e.curOp.updateInput=M),e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=-1}function Lu(e,t){var o=e.clipboardData&&e.clipboardData.getData("Text");if(o)return e.preventDefault(),!t.isReadOnly()&&!t.options.disableInput&&yr(t,function(){return fs(t,o,0,null,"paste")}),!0}function c0(e,t){if(!(!e.options.electricChars||!e.options.smartIndent))for(var o=e.doc.sel,n=o.ranges.length-1;n>=0;n--){var u=o.ranges[n];if(!(u.head.ch>100||n&&o.ranges[n-1].head.line==u.head.line)){var h=e.getModeAt(u.head),p=!1;if(h.electricChars){for(var m=0;m<h.electricChars.length;m++)if(t.indexOf(h.electricChars.charAt(m))>-1){p=il(e,u.head.line,"smart");break}}else h.electricInput&&h.electricInput.test(Oe(e.doc,u.head.line).text.slice(0,u.head.ch))&&(p=il(e,u.head.line,"smart"));p&&rr(e,"electricInput",e,u.head.line)}}}function _u(e){for(var t=[],o=[],n=0;n<e.doc.sel.ranges.length;n++){var u=e.doc.sel.ranges[n].head.line,h={anchor:oe(u,0),head:oe(u+1,0)};o.push(h),t.push(e.getRange(h.anchor,h.head))}return{text:t,ranges:o}}function d0(e,t,o,n){e.setAttribute("autocorrect",o?"":"off"),e.setAttribute("autocapitalize",n?"":"off"),e.setAttribute("spellcheck",!!t)}function f0(){var e=P("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),t=P("div",[e],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return A?e.style.width="1000px":e.setAttribute("wrap","off"),Me&&(e.style.border="1px solid black"),d0(e),t}function di(e){var t=e.optionHandlers,o=e.helpers={};e.prototype={constructor:e,focus:function(){window.focus(),this.display.input.focus()},setOption:function(n,u){var h=this.options,p=h[n];h[n]==u&&n!="mode"||(h[n]=u,t.hasOwnProperty(n)&&Ft(this,t[n])(this,u,p),Ze(this,"optionChange",this,n))},getOption:function(n){return this.options[n]},getDoc:function(){return this.doc},addKeyMap:function(n,u){this.state.keyMaps[u?"push":"unshift"](Mr(n))},removeKeyMap:function(n){for(var u=this.state.keyMaps,h=0;h<u.length;++h)if(u[h]==n||u[h].name==n)return u.splice(h,1),!0},addOverlay:Cr(function(n,u){var h=n.token?n:e.getMode(this.options,n);if(h.startState)throw new Error("Overlays may not be stateful.");wt(this.state.overlays,{mode:h,modeSpec:n,opaque:u&&u.opaque,priority:u&&u.priority||0},function(p){return p.priority}),this.state.modeGen++,tt(this)}),removeOverlay:Cr(function(n){for(var u=this.state.overlays,h=0;h<u.length;++h){var p=u[h].modeSpec;if(p==n||typeof n=="string"&&p.name==n){u.splice(h,1),this.state.modeGen++,tt(this);return}}}),indentLine:Cr(function(n,u,h){typeof u!="string"&&typeof u!="number"&&(u==null?u=this.options.smartIndent?"smart":"prev":u=u?"add":"subtract"),Mi(this.doc,n)&&il(this,n,u,h)}),indentSelection:Cr(function(n){for(var u=this.doc.sel.ranges,h=-1,p=0;p<u.length;p++){var m=u[p];if(m.empty())m.head.line>h&&(il(this,m.head.line,n,!0),h=m.head.line,p==this.doc.sel.primIndex&&Ni(this));else{var y=m.from(),C=m.to(),_=Math.max(h,y.line);h=Math.min(this.lastLine(),C.line-(C.ch?0:1))+1;for(var M=_;M<h;++M)il(this,M,n);var N=this.doc.sel.ranges;y.ch==0&&u.length==N.length&&N[p].from().ch>0&&uu(this.doc,p,new mt(y,N[p].to()),nt)}}}),getTokenAt:function(n,u){return Ml(this,n,u)},getLineTokens:function(n,u){return Ml(this,oe(n),u,!0)},getTokenTypeAt:function(n){n=Ce(this.doc,n);var u=$s(this,Oe(this.doc,n.line)),h=0,p=(u.length-1)/2,m=n.ch,y;if(m==0)y=u[2];else for(;;){var C=h+p>>1;if((C?u[C*2-1]:0)>=m)p=C;else if(u[C*2+1]<m)h=C+1;else{y=u[C*2+2];break}}var _=y?y.indexOf("overlay "):-1;return _<0?y:_==0?null:y.slice(0,_-1)},getModeAt:function(n){var u=this.doc.mode;return u.innerMode?e.innerMode(u,this.getTokenAt(n).state).mode:u},getHelper:function(n,u){return this.getHelpers(n,u)[0]},getHelpers:function(n,u){var h=[];if(!o.hasOwnProperty(u))return h;var p=o[u],m=this.getModeAt(n);if(typeof m[u]=="string")p[m[u]]&&h.push(p[m[u]]);else if(m[u])for(var y=0;y<m[u].length;y++){var C=p[m[u][y]];C&&h.push(C)}else m.helperType&&p[m.helperType]?h.push(p[m.helperType]):p[m.name]&&h.push(p[m.name]);for(var _=0;_<p._global.length;_++){var M=p._global[_];M.pred(m,this)&&_e(h,M.val)==-1&&h.push(M.val)}return h},getStateAfter:function(n,u){var h=this.doc;return n=dt(h,n==null?h.first+h.size-1:n),Wo(this,n+1,u).state},cursorCoords:function(n,u){var h,p=this.doc.sel.primary();return n==null?h=p.head:typeof n=="object"?h=Ce(this.doc,n):h=n?p.from():p.to(),Pn(this,h,u||"page")},charCoords:function(n,u){return Fl(this,Ce(this.doc,n),u||"page")},coordsChar:function(n,u){return n=Lc(this,n,u||"page"),H(this,n.left,n.top)},lineAtHeight:function(n,u){return n=Lc(this,{top:n,left:0},u||"page").top,On(this.doc,n+this.display.viewOffset)},heightAtLine:function(n,u,h){var p=!1,m;if(typeof n=="number"){var y=this.doc.first+this.doc.size-1;n<this.doc.first?n=this.doc.first:n>y&&(n=y,p=!0),m=Oe(this.doc,n)}else m=n;return Bl(this,m,{top:0,left:0},u||"page",h||p).top+(p?this.doc.height-Nr(m):0)},defaultTextHeight:function(){return Ii(this.display)},defaultCharWidth:function(){return Go(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(n,u,h,p,m){var y=this.display;n=Pn(this,Ce(this.doc,n));var C=n.bottom,_=n.left;if(u.style.position="absolute",u.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(u),y.sizer.appendChild(u),p=="over")C=n.top;else if(p=="above"||p=="near"){var M=Math.max(y.wrapper.clientHeight,this.doc.height),N=Math.max(y.sizer.clientWidth,y.lineSpace.clientWidth);(p=="above"||n.bottom+u.offsetHeight>M)&&n.top>u.offsetHeight?C=n.top-u.offsetHeight:n.bottom+u.offsetHeight<=M&&(C=n.bottom),_+u.offsetWidth>N&&(_=N-u.offsetWidth)}u.style.top=C+"px",u.style.left=u.style.right="",m=="right"?(_=y.sizer.clientWidth-u.offsetWidth,u.style.right="0px"):(m=="left"?_=0:m=="middle"&&(_=(y.sizer.clientWidth-u.offsetWidth)/2),u.style.left=_+"px"),h&&z1(this,{left:_,top:C,right:_+u.offsetWidth,bottom:C+u.offsetHeight})},triggerOnKeyDown:Cr(Qc),triggerOnKeyPress:Cr(e0),triggerOnKeyUp:wu,triggerOnMouseDown:Cr(r0),execCommand:function(n){if(Lo.hasOwnProperty(n))return Lo[n].call(null,this)},triggerElectric:Cr(function(n){c0(this,n)}),findPosH:function(n,u,h,p){var m=1;u<0&&(m=-1,u=-u);for(var y=Ce(this.doc,n),C=0;C<u&&(y=ol(this.doc,y,m,h,p),!y.hitSide);++C);return y},moveH:Cr(function(n,u){var h=this;this.extendSelectionsBy(function(p){return h.display.shift||h.doc.extend||p.empty()?ol(h.doc,p.head,n,u,h.options.rtlMoveVisually):n<0?p.from():p.to()},We)}),deleteH:Cr(function(n,u){var h=this.doc.sel,p=this.doc;h.somethingSelected()?p.replaceSelection("",null,"+delete"):ln(this,function(m){var y=ol(p,m.head,n,u,!1);return n<0?{from:y,to:m.head}:{from:m.head,to:y}})}),findPosV:function(n,u,h,p){var m=1,y=p;u<0&&(m=-1,u=-u);for(var C=Ce(this.doc,n),_=0;_<u;++_){var M=Pn(this,C,"div");if(y==null?y=M.left:M.left=y,C=hs(this,M,m,h),C.hitSide)break}return C},moveV:Cr(function(n,u){var h=this,p=this.doc,m=[],y=!this.display.shift&&!p.extend&&p.sel.somethingSelected();if(p.extendSelectionsBy(function(_){if(y)return n<0?_.from():_.to();var M=Pn(h,_.head,"div");_.goalColumn!=null&&(M.left=_.goalColumn),m.push(M.left);var N=hs(h,M,n,u);return u=="page"&&_==p.sel.primary()&&Yo(h,Fl(h,N,"div").top-M.top),N},We),m.length)for(var C=0;C<p.sel.ranges.length;C++)p.sel.ranges[C].goalColumn=m[C]}),findWordAt:function(n){var u=this.doc,h=Oe(u,n.line).text,p=n.ch,m=n.ch;if(h){var y=this.getHelper(n,"wordChars");(n.sticky=="before"||m==h.length)&&p?--p:++m;for(var C=h.charAt(p),_=W(C,y)?function(M){return W(M,y)}:/\s/.test(C)?function(M){return/\s/.test(M)}:function(M){return!/\s/.test(M)&&!W(M)};p>0&&_(h.charAt(p-1));)--p;for(;m<h.length&&_(h.charAt(m));)++m}return new mt(oe(n.line,p),oe(n.line,m))},toggleOverwrite:function(n){n!=null&&n==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?Lt(this.display.cursorDiv,"CodeMirror-overwrite"):ye(this.display.cursorDiv,"CodeMirror-overwrite"),Ze(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==rt()},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:Cr(function(n,u){Fa(this,n,u)}),getScrollInfo:function(){var n=this.display.scroller;return{left:n.scrollLeft,top:n.scrollTop,height:n.scrollHeight-jr(this)-this.display.barHeight,width:n.scrollWidth-jr(this)-this.display.barWidth,clientHeight:Dl(this),clientWidth:Ti(this)}},scrollIntoView:Cr(function(n,u){n==null?(n={from:this.doc.sel.primary().head,to:null},u==null&&(u=this.options.cursorScrollMargin)):typeof n=="number"?n={from:oe(n,0),to:null}:n.from==null&&(n={from:n,to:null}),n.to||(n.to=n.from),n.margin=u||0,n.from.line!=null?Oc(this,n):Tc(this,n.from,n.to,n.margin)}),setSize:Cr(function(n,u){var h=this,p=function(y){return typeof y=="number"||/^\d+$/.test(String(y))?y+"px":y};n!=null&&(this.display.wrapper.style.width=p(n)),u!=null&&(this.display.wrapper.style.height=p(u)),this.options.lineWrapping&&zc(this);var m=this.display.viewFrom;this.doc.iter(m,this.display.viewTo,function(y){if(y.widgets){for(var C=0;C<y.widgets.length;C++)if(y.widgets[C].noHScroll){$i(h,m,"widget");break}}++m}),this.curOp.forceUpdate=!0,Ze(this,"refresh",this)}),operation:function(n){return yr(this,n)},startOperation:function(){return In(this)},endOperation:function(){return Gn(this)},refresh:Cr(function(){var n=this.display.cachedTextHeight;tt(this),this.curOp.forceUpdate=!0,Na(this),Fa(this,this.doc.scrollLeft,this.doc.scrollTop),eu(this.display),(n==null||Math.abs(n-Ii(this.display))>.5||this.options.lineWrapping)&&Ai(this),Ze(this,"refresh",this)}),swapDoc:Cr(function(n){var u=this.doc;return u.cm=null,this.state.selectingText&&this.state.selectingText(),Dc(this,n),Na(this),this.display.input.reset(),Fa(this,n.scrollLeft,n.scrollTop),this.curOp.forceScroll=!0,rr(this,"swapDoc",this,u),u}),phrase:function(n){var u=this.options.phrases;return u&&Object.prototype.hasOwnProperty.call(u,n)?u[n]:n},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}},Sn(e),e.registerHelper=function(n,u,h){o.hasOwnProperty(n)||(o[n]=e[n]={_global:[]}),o[n][u]=h},e.registerGlobalHelper=function(n,u,h,p){e.registerHelper(n,u,p),o[n]._global.push({pred:h,val:p})}}function ol(e,t,o,n,u){var h=t,p=o,m=Oe(e,t.line),y=u&&e.direction=="rtl"?-o:o;function C(){var we=t.line+y;return we<e.first||we>=e.first+e.size?!1:(t=new oe(we,t.ch,t.sticky),m=Oe(e,we))}function _(we){var he;if(n=="codepoint"){var xe=m.text.charCodeAt(t.ch+(o>0?0:-1));if(isNaN(xe))he=null;else{var $e=o>0?xe>=55296&&xe<56320:xe>=56320&&xe<57343;he=new oe(t.line,Math.max(0,Math.min(m.text.length,t.ch+o*($e?2:1))),-o)}}else u?he=Xc(e.cm,m,t,o):he=as(m,t,o);if(he==null)if(!we&&C())t=la(u,e.cm,m,t.line,y);else return!1;else t=he;return!0}if(n=="char"||n=="codepoint")_();else if(n=="column")_(!0);else if(n=="word"||n=="group")for(var M=null,N=n=="group",D=e.cm&&e.cm.getHelper(t,"wordChars"),q=!0;!(o<0&&!_(!q));q=!1){var te=m.text.charAt(t.ch)||`
2329
- `,ue=W(te,D)?"w":N&&te==`
2330
- `?"n":!N||/\s/.test(te)?null:"p";if(N&&!q&&!ue&&(ue="s"),M&&M!=ue){o<0&&(o=1,_(),t.sticky="after");break}if(ue&&(M=ue),o>0&&!_(!q))break}var fe=dr(e,t,h,p,!0);return O(h,fe)&&(fe.hitSide=!0),fe}function hs(e,t,o,n){var u=e.doc,h=t.left,p;if(n=="page"){var m=Math.min(e.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),y=Math.max(m-.5*Ii(e.display),3);p=(o>0?t.bottom:t.top)+o*y}else n=="line"&&(p=o>0?t.bottom+3:t.top-3);for(var C;C=H(e,h,p),!!C.outside;){if(o<0?p<=0:p>=u.height){C.hitSide=!0;break}p+=o*5}return C}var yt=function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new at,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};yt.prototype.init=function(e){var t=this,o=this,n=o.cm,u=o.div=e.lineDiv;u.contentEditable=!0,d0(u,n.options.spellcheck,n.options.autocorrect,n.options.autocapitalize);function h(m){for(var y=m.target;y;y=y.parentNode){if(y==u)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(y.className))break}return!1}Ne(u,"paste",function(m){!h(m)||Vt(n,m)||Lu(m,n)||k<=11&&setTimeout(Ft(n,function(){return t.updateFromDOM()}),20)}),Ne(u,"compositionstart",function(m){t.composing={data:m.data,done:!1}}),Ne(u,"compositionupdate",function(m){t.composing||(t.composing={data:m.data,done:!1})}),Ne(u,"compositionend",function(m){t.composing&&(m.data!=t.composing.data&&t.readFromDOMSoon(),t.composing.done=!0)}),Ne(u,"touchstart",function(){return o.forceCompositionEnd()}),Ne(u,"input",function(){t.composing||t.readFromDOMSoon()});function p(m){if(!(!h(m)||Vt(n,m))){if(n.somethingSelected())vn({lineWise:!1,text:n.getSelections()}),m.type=="cut"&&n.replaceSelection("",null,"cut");else if(n.options.lineWiseCopyCut){var y=_u(n);vn({lineWise:!0,text:y.text}),m.type=="cut"&&n.operation(function(){n.setSelections(y.ranges,0,nt),n.replaceSelection("",null,"cut")})}else return;if(m.clipboardData){m.clipboardData.clearData();var C=gn.text.join(`
2331
- `);if(m.clipboardData.setData("Text",C),m.clipboardData.getData("Text")==C){m.preventDefault();return}}var _=f0(),M=_.firstChild;n.display.lineSpace.insertBefore(_,n.display.lineSpace.firstChild),M.value=gn.text.join(`
2332
- `);var N=rt();It(M),setTimeout(function(){n.display.lineSpace.removeChild(_),N.focus(),N==u&&o.showPrimarySelection()},50)}}Ne(u,"copy",p),Ne(u,"cut",p)},yt.prototype.screenReaderLabelChanged=function(e){e?this.div.setAttribute("aria-label",e):this.div.removeAttribute("aria-label")},yt.prototype.prepareSelection=function(){var e=Ba(this.cm,!1);return e.focus=rt()==this.div,e},yt.prototype.showSelection=function(e,t){!e||!this.cm.display.view.length||((e.focus||t)&&this.showPrimarySelection(),this.showMultipleSelections(e))},yt.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},yt.prototype.showPrimarySelection=function(){var e=this.getSelection(),t=this.cm,o=t.doc.sel.primary(),n=o.from(),u=o.to();if(t.display.viewTo==t.display.viewFrom||n.line>=t.display.viewTo||u.line<t.display.viewFrom){e.removeAllRanges();return}var h=pa(t,e.anchorNode,e.anchorOffset),p=pa(t,e.focusNode,e.focusOffset);if(!(h&&!h.bad&&p&&!p.bad&&w(Ge(h,p),n)==0&&w(le(h,p),u)==0)){var m=t.display.view,y=n.line>=t.display.viewFrom&&al(t,n)||{node:m[0].measure.map[2],offset:0},C=u.line<t.display.viewTo&&al(t,u);if(!C){var _=m[m.length-1].measure,M=_.maps?_.maps[_.maps.length-1]:_.map;C={node:M[M.length-1],offset:M[M.length-2]-M[M.length-3]}}if(!y||!C){e.removeAllRanges();return}var N=e.rangeCount&&e.getRangeAt(0),D;try{D=ee(y.node,y.offset,C.offset,C.node)}catch{}D&&(!c&&t.state.focused?(e.collapse(y.node,y.offset),D.collapsed||(e.removeAllRanges(),e.addRange(D))):(e.removeAllRanges(),e.addRange(D)),N&&e.anchorNode==null?e.addRange(N):c&&this.startGracePeriod()),this.rememberSelection()}},yt.prototype.startGracePeriod=function(){var e=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){e.gracePeriod=!1,e.selectionChanged()&&e.cm.operation(function(){return e.cm.curOp.selectionChanged=!0})},20)},yt.prototype.showMultipleSelections=function(e){G(this.cm.display.cursorDiv,e.cursors),G(this.cm.display.selectionDiv,e.selection)},yt.prototype.rememberSelection=function(){var e=this.getSelection();this.lastAnchorNode=e.anchorNode,this.lastAnchorOffset=e.anchorOffset,this.lastFocusNode=e.focusNode,this.lastFocusOffset=e.focusOffset},yt.prototype.selectionInEditor=function(){var e=this.getSelection();if(!e.rangeCount)return!1;var t=e.getRangeAt(0).commonAncestorContainer;return me(this.div,t)},yt.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||rt()!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},yt.prototype.blur=function(){this.div.blur()},yt.prototype.getField=function(){return this.div},yt.prototype.supportsTouch=function(){return!0},yt.prototype.receivedFocus=function(){var e=this;this.selectionInEditor()?this.pollSelection():yr(this.cm,function(){return e.cm.curOp.selectionChanged=!0});function t(){e.cm.state.focused&&(e.pollSelection(),e.polling.set(e.cm.options.pollInterval,t))}this.polling.set(this.cm.options.pollInterval,t)},yt.prototype.selectionChanged=function(){var e=this.getSelection();return e.anchorNode!=this.lastAnchorNode||e.anchorOffset!=this.lastAnchorOffset||e.focusNode!=this.lastFocusNode||e.focusOffset!=this.lastFocusOffset},yt.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var e=this.getSelection(),t=this.cm;if(Te&&U&&this.cm.display.gutterSpecs.length&&ha(e.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var o=pa(t,e.anchorNode,e.anchorOffset),n=pa(t,e.focusNode,e.focusOffset);o&&n&&yr(t,function(){cr(t.doc,Wi(o,n),nt),(o.bad||n.bad)&&(t.curOp.selectionChanged=!0)})}}},yt.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var e=this.cm,t=e.display,o=e.doc.sel.primary(),n=o.from(),u=o.to();if(n.ch==0&&n.line>e.firstLine()&&(n=oe(n.line-1,Oe(e.doc,n.line-1).length)),u.ch==Oe(e.doc,u.line).text.length&&u.line<e.lastLine()&&(u=oe(u.line+1,0)),n.line<t.viewFrom||u.line>t.viewTo-1)return!1;var h,p,m;n.line==t.viewFrom||(h=Zn(e,n.line))==0?(p=bt(t.view[0].line),m=t.view[0].node):(p=bt(t.view[h].line),m=t.view[h-1].node.nextSibling);var y=Zn(e,u.line),C,_;if(y==t.view.length-1?(C=t.viewTo-1,_=t.lineDiv.lastChild):(C=bt(t.view[y+1].line)-1,_=t.view[y+1].node.previousSibling),!m)return!1;for(var M=e.doc.splitLines(ps(e,m,_,p,C)),N=tn(e.doc,oe(p,0),oe(C,Oe(e.doc,C).text.length));M.length>1&&N.length>1;)if(Ke(M)==Ke(N))M.pop(),N.pop(),C--;else if(M[0]==N[0])M.shift(),N.shift(),p++;else break;for(var D=0,q=0,te=M[0],ue=N[0],fe=Math.min(te.length,ue.length);D<fe&&te.charCodeAt(D)==ue.charCodeAt(D);)++D;for(var we=Ke(M),he=Ke(N),xe=Math.min(we.length-(M.length==1?D:0),he.length-(N.length==1?D:0));q<xe&&we.charCodeAt(we.length-q-1)==he.charCodeAt(he.length-q-1);)++q;if(M.length==1&&N.length==1&&p==n.line)for(;D&&D>n.ch&&we.charCodeAt(we.length-q-1)==he.charCodeAt(he.length-q-1);)D--,q++;M[M.length-1]=we.slice(0,we.length-q).replace(/^\u200b+/,""),M[0]=M[0].slice(D).replace(/\u200b+$/,"");var $e=oe(p,D),Pe=oe(C,N.length?Ke(N).length-q:0);if(M.length>1||M[0]||w($e,Pe))return na(e.doc,M,$e,Pe,"+input"),!0},yt.prototype.ensurePolled=function(){this.forceCompositionEnd()},yt.prototype.reset=function(){this.forceCompositionEnd()},yt.prototype.forceCompositionEnd=function(){!this.composing||(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},yt.prototype.readFromDOMSoon=function(){var e=this;this.readDOMTimeout==null&&(this.readDOMTimeout=setTimeout(function(){if(e.readDOMTimeout=null,e.composing)if(e.composing.done)e.composing=null;else return;e.updateFromDOM()},80))},yt.prototype.updateFromDOM=function(){var e=this;(this.cm.isReadOnly()||!this.pollContent())&&yr(this.cm,function(){return tt(e.cm)})},yt.prototype.setUneditable=function(e){e.contentEditable="false"},yt.prototype.onKeyPress=function(e){e.charCode==0||this.composing||(e.preventDefault(),this.cm.isReadOnly()||Ft(this.cm,fs)(this.cm,String.fromCharCode(e.charCode==null?e.keyCode:e.charCode),0))},yt.prototype.readOnlyChanged=function(e){this.div.contentEditable=String(e!="nocursor")},yt.prototype.onContextMenu=function(){},yt.prototype.resetPosition=function(){},yt.prototype.needsContentAttribute=!0;function al(e,t){var o=Ys(e,t.line);if(!o||o.hidden)return null;var n=Oe(e.doc,t.line),u=mc(o,n,t.line),h=_r(n,e.doc.direction),p="left";if(h){var m=Rt(h,t.ch);p=m%2?"right":"left"}var y=Rl(u.map,t.ch,p);return y.offset=y.collapse=="right"?y.end:y.start,y}function ha(e){for(var t=e;t;t=t.parentNode)if(/CodeMirror-gutter-wrapper/.test(t.className))return!0;return!1}function He(e,t){return t&&(e.bad=!0),e}function ps(e,t,o,n,u){var h="",p=!1,m=e.doc.lineSeparator(),y=!1;function C(D){return function(q){return q.id==D}}function _(){p&&(h+=m,y&&(h+=m),p=y=!1)}function M(D){D&&(_(),h+=D)}function N(D){if(D.nodeType==1){var q=D.getAttribute("cm-text");if(q){M(q);return}var te=D.getAttribute("cm-marker"),ue;if(te){var fe=e.findMarks(oe(n,0),oe(u+1,0),C(+te));fe.length&&(ue=fe[0].find(0))&&M(tn(e.doc,ue.from,ue.to).join(m));return}if(D.getAttribute("contenteditable")=="false")return;var we=/^(pre|div|p|li|table|br)$/i.test(D.nodeName);if(!/^br$/i.test(D.nodeName)&&D.textContent.length==0)return;we&&_();for(var he=0;he<D.childNodes.length;he++)N(D.childNodes[he]);/^(pre|p)$/i.test(D.nodeName)&&(y=!0),we&&(p=!0)}else D.nodeType==3&&M(D.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;N(t),t!=o;)t=t.nextSibling,y=!1;return h}function pa(e,t,o){var n;if(t==e.display.lineDiv){if(n=e.display.lineDiv.childNodes[o],!n)return He(e.clipPos(oe(e.display.viewTo-1)),!0);t=null,o=0}else for(n=t;;n=n.parentNode){if(!n||n==e.display.lineDiv)return null;if(n.parentNode&&n.parentNode==e.display.lineDiv)break}for(var u=0;u<e.display.view.length;u++){var h=e.display.view[u];if(h.node==n)return So(h,t,o)}}function So(e,t,o){var n=e.text.firstChild,u=!1;if(!t||!me(n,t))return He(oe(bt(e.line),0),!0);if(t==n&&(u=!0,t=n.childNodes[o],o=0,!t)){var h=e.rest?Ke(e.rest):e.line;return He(oe(bt(h),h.text.length),u)}var p=t.nodeType==3?t:null,m=t;for(!p&&t.childNodes.length==1&&t.firstChild.nodeType==3&&(p=t.firstChild,o&&(o=p.nodeValue.length));m.parentNode!=n;)m=m.parentNode;var y=e.measure,C=y.maps;function _(ue,fe,we){for(var he=-1;he<(C?C.length:0);he++)for(var xe=he<0?y.map:C[he],$e=0;$e<xe.length;$e+=3){var Pe=xe[$e+2];if(Pe==ue||Pe==fe){var ot=bt(he<0?e.line:e.rest[he]),xt=xe[$e]+we;return(we<0||Pe!=ue)&&(xt=xe[$e+(we?1:0)]),oe(ot,xt)}}}var M=_(p,m,o);if(M)return He(M,u);for(var N=m.nextSibling,D=p?p.nodeValue.length-o:0;N;N=N.nextSibling){if(M=_(N,N.firstChild,0),M)return He(oe(M.line,M.ch-D),u);D+=N.textContent.length}for(var q=m.previousSibling,te=o;q;q=q.previousSibling){if(M=_(q,q.firstChild,-1),M)return He(oe(M.line,M.ch+te),u);te+=q.textContent.length}}var Zt=function(e){this.cm=e,this.prevInput="",this.pollingFast=!1,this.polling=new at,this.hasSelection=!1,this.composing=null};Zt.prototype.init=function(e){var t=this,o=this,n=this.cm;this.createField(e);var u=this.textarea;e.wrapper.insertBefore(this.wrapper,e.wrapper.firstChild),Me&&(u.style.width="0px"),Ne(u,"input",function(){T&&k>=9&&t.hasSelection&&(t.hasSelection=null),o.poll()}),Ne(u,"paste",function(p){Vt(n,p)||Lu(p,n)||(n.state.pasteIncoming=+new Date,o.fastPoll())});function h(p){if(!Vt(n,p)){if(n.somethingSelected())vn({lineWise:!1,text:n.getSelections()});else if(n.options.lineWiseCopyCut){var m=_u(n);vn({lineWise:!0,text:m.text}),p.type=="cut"?n.setSelections(m.ranges,null,nt):(o.prevInput="",u.value=m.text.join(`
2333
- `),It(u))}else return;p.type=="cut"&&(n.state.cutIncoming=+new Date)}}Ne(u,"cut",h),Ne(u,"copy",h),Ne(e.scroller,"paste",function(p){if(!(oi(e,p)||Vt(n,p))){if(!u.dispatchEvent){n.state.pasteIncoming=+new Date,o.focus();return}var m=new Event("paste");m.clipboardData=p.clipboardData,u.dispatchEvent(m)}}),Ne(e.lineSpace,"selectstart",function(p){oi(e,p)||ur(p)}),Ne(u,"compositionstart",function(){var p=n.getCursor("from");o.composing&&o.composing.range.clear(),o.composing={start:p,range:n.markText(p,n.getCursor("to"),{className:"CodeMirror-composing"})}}),Ne(u,"compositionend",function(){o.composing&&(o.poll(),o.composing.range.clear(),o.composing=null)})},Zt.prototype.createField=function(e){this.wrapper=f0(),this.textarea=this.wrapper.firstChild},Zt.prototype.screenReaderLabelChanged=function(e){e?this.textarea.setAttribute("aria-label",e):this.textarea.removeAttribute("aria-label")},Zt.prototype.prepareSelection=function(){var e=this.cm,t=e.display,o=e.doc,n=Ba(e);if(e.options.moveInputWithCursor){var u=Pn(e,o.sel.primary().head,"div"),h=t.wrapper.getBoundingClientRect(),p=t.lineDiv.getBoundingClientRect();n.teTop=Math.max(0,Math.min(t.wrapper.clientHeight-10,u.top+p.top-h.top)),n.teLeft=Math.max(0,Math.min(t.wrapper.clientWidth-10,u.left+p.left-h.left))}return n},Zt.prototype.showSelection=function(e){var t=this.cm,o=t.display;G(o.cursorDiv,e.cursors),G(o.selectionDiv,e.selection),e.teTop!=null&&(this.wrapper.style.top=e.teTop+"px",this.wrapper.style.left=e.teLeft+"px")},Zt.prototype.reset=function(e){if(!(this.contextMenuPending||this.composing)){var t=this.cm;if(t.somethingSelected()){this.prevInput="";var o=t.getSelection();this.textarea.value=o,t.state.focused&&It(this.textarea),T&&k>=9&&(this.hasSelection=o)}else e||(this.prevInput=this.textarea.value="",T&&k>=9&&(this.hasSelection=null))}},Zt.prototype.getField=function(){return this.textarea},Zt.prototype.supportsTouch=function(){return!1},Zt.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!pe||rt()!=this.textarea))try{this.textarea.focus()}catch{}},Zt.prototype.blur=function(){this.textarea.blur()},Zt.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Zt.prototype.receivedFocus=function(){this.slowPoll()},Zt.prototype.slowPoll=function(){var e=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){e.poll(),e.cm.state.focused&&e.slowPoll()})},Zt.prototype.fastPoll=function(){var e=!1,t=this;t.pollingFast=!0;function o(){var n=t.poll();!n&&!e?(e=!0,t.polling.set(60,o)):(t.pollingFast=!1,t.slowPoll())}t.polling.set(20,o)},Zt.prototype.poll=function(){var e=this,t=this.cm,o=this.textarea,n=this.prevInput;if(this.contextMenuPending||!t.state.focused||xl(o)&&!n&&!this.composing||t.isReadOnly()||t.options.disableInput||t.state.keySeq)return!1;var u=o.value;if(u==n&&!t.somethingSelected())return!1;if(T&&k>=9&&this.hasSelection===u||de&&/[\uf700-\uf7ff]/.test(u))return t.display.input.reset(),!1;if(t.doc.sel==t.display.selForContextMenu){var h=u.charCodeAt(0);if(h==8203&&!n&&(n="\u200B"),h==8666)return this.reset(),this.cm.execCommand("undo")}for(var p=0,m=Math.min(n.length,u.length);p<m&&n.charCodeAt(p)==u.charCodeAt(p);)++p;return yr(t,function(){fs(t,u.slice(p),n.length-p,null,e.composing?"*compose":null),u.length>1e3||u.indexOf(`
2332
+ `)&&(q=te=oe(q.line,0)));var ce={from:q,to:te,text:C?C[N%C.length]:y,origin:u||(m?"paste":e.state.cutIncoming>p?"cut":"+input")};ea(e.doc,ce),rr(e,"inputRead",e,ce)}t&&!m&&c0(e,t),Ni(e),e.curOp.updateInput<2&&(e.curOp.updateInput=M),e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=-1}function Lu(e,t){var o=e.clipboardData&&e.clipboardData.getData("Text");if(o)return e.preventDefault(),!t.isReadOnly()&&!t.options.disableInput&&yr(t,function(){return fs(t,o,0,null,"paste")}),!0}function c0(e,t){if(!(!e.options.electricChars||!e.options.smartIndent))for(var o=e.doc.sel,n=o.ranges.length-1;n>=0;n--){var u=o.ranges[n];if(!(u.head.ch>100||n&&o.ranges[n-1].head.line==u.head.line)){var h=e.getModeAt(u.head),p=!1;if(h.electricChars){for(var m=0;m<h.electricChars.length;m++)if(t.indexOf(h.electricChars.charAt(m))>-1){p=il(e,u.head.line,"smart");break}}else h.electricInput&&h.electricInput.test(Oe(e.doc,u.head.line).text.slice(0,u.head.ch))&&(p=il(e,u.head.line,"smart"));p&&rr(e,"electricInput",e,u.head.line)}}}function _u(e){for(var t=[],o=[],n=0;n<e.doc.sel.ranges.length;n++){var u=e.doc.sel.ranges[n].head.line,h={anchor:oe(u,0),head:oe(u+1,0)};o.push(h),t.push(e.getRange(h.anchor,h.head))}return{text:t,ranges:o}}function d0(e,t,o,n){e.setAttribute("autocorrect",o?"":"off"),e.setAttribute("autocapitalize",n?"":"off"),e.setAttribute("spellcheck",!!t)}function f0(){var e=P("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),t=P("div",[e],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return A?e.style.width="1000px":e.setAttribute("wrap","off"),Me&&(e.style.border="1px solid black"),d0(e),t}function di(e){var t=e.optionHandlers,o=e.helpers={};e.prototype={constructor:e,focus:function(){window.focus(),this.display.input.focus()},setOption:function(n,u){var h=this.options,p=h[n];h[n]==u&&n!="mode"||(h[n]=u,t.hasOwnProperty(n)&&Ft(this,t[n])(this,u,p),Ze(this,"optionChange",this,n))},getOption:function(n){return this.options[n]},getDoc:function(){return this.doc},addKeyMap:function(n,u){this.state.keyMaps[u?"push":"unshift"](kr(n))},removeKeyMap:function(n){for(var u=this.state.keyMaps,h=0;h<u.length;++h)if(u[h]==n||u[h].name==n)return u.splice(h,1),!0},addOverlay:Cr(function(n,u){var h=n.token?n:e.getMode(this.options,n);if(h.startState)throw new Error("Overlays may not be stateful.");wt(this.state.overlays,{mode:h,modeSpec:n,opaque:u&&u.opaque,priority:u&&u.priority||0},function(p){return p.priority}),this.state.modeGen++,tt(this)}),removeOverlay:Cr(function(n){for(var u=this.state.overlays,h=0;h<u.length;++h){var p=u[h].modeSpec;if(p==n||typeof n=="string"&&p.name==n){u.splice(h,1),this.state.modeGen++,tt(this);return}}}),indentLine:Cr(function(n,u,h){typeof u!="string"&&typeof u!="number"&&(u==null?u=this.options.smartIndent?"smart":"prev":u=u?"add":"subtract"),Mi(this.doc,n)&&il(this,n,u,h)}),indentSelection:Cr(function(n){for(var u=this.doc.sel.ranges,h=-1,p=0;p<u.length;p++){var m=u[p];if(m.empty())m.head.line>h&&(il(this,m.head.line,n,!0),h=m.head.line,p==this.doc.sel.primIndex&&Ni(this));else{var y=m.from(),C=m.to(),_=Math.max(h,y.line);h=Math.min(this.lastLine(),C.line-(C.ch?0:1))+1;for(var M=_;M<h;++M)il(this,M,n);var N=this.doc.sel.ranges;y.ch==0&&u.length==N.length&&N[p].from().ch>0&&uu(this.doc,p,new mt(y,N[p].to()),nt)}}}),getTokenAt:function(n,u){return Ml(this,n,u)},getLineTokens:function(n,u){return Ml(this,oe(n),u,!0)},getTokenTypeAt:function(n){n=Ce(this.doc,n);var u=$s(this,Oe(this.doc,n.line)),h=0,p=(u.length-1)/2,m=n.ch,y;if(m==0)y=u[2];else for(;;){var C=h+p>>1;if((C?u[C*2-1]:0)>=m)p=C;else if(u[C*2+1]<m)h=C+1;else{y=u[C*2+2];break}}var _=y?y.indexOf("overlay "):-1;return _<0?y:_==0?null:y.slice(0,_-1)},getModeAt:function(n){var u=this.doc.mode;return u.innerMode?e.innerMode(u,this.getTokenAt(n).state).mode:u},getHelper:function(n,u){return this.getHelpers(n,u)[0]},getHelpers:function(n,u){var h=[];if(!o.hasOwnProperty(u))return h;var p=o[u],m=this.getModeAt(n);if(typeof m[u]=="string")p[m[u]]&&h.push(p[m[u]]);else if(m[u])for(var y=0;y<m[u].length;y++){var C=p[m[u][y]];C&&h.push(C)}else m.helperType&&p[m.helperType]?h.push(p[m.helperType]):p[m.name]&&h.push(p[m.name]);for(var _=0;_<p._global.length;_++){var M=p._global[_];M.pred(m,this)&&_e(h,M.val)==-1&&h.push(M.val)}return h},getStateAfter:function(n,u){var h=this.doc;return n=dt(h,n==null?h.first+h.size-1:n),Wo(this,n+1,u).state},cursorCoords:function(n,u){var h,p=this.doc.sel.primary();return n==null?h=p.head:typeof n=="object"?h=Ce(this.doc,n):h=n?p.from():p.to(),Pn(this,h,u||"page")},charCoords:function(n,u){return Fl(this,Ce(this.doc,n),u||"page")},coordsChar:function(n,u){return n=Lc(this,n,u||"page"),H(this,n.left,n.top)},lineAtHeight:function(n,u){return n=Lc(this,{top:n,left:0},u||"page").top,On(this.doc,n+this.display.viewOffset)},heightAtLine:function(n,u,h){var p=!1,m;if(typeof n=="number"){var y=this.doc.first+this.doc.size-1;n<this.doc.first?n=this.doc.first:n>y&&(n=y,p=!0),m=Oe(this.doc,n)}else m=n;return Bl(this,m,{top:0,left:0},u||"page",h||p).top+(p?this.doc.height-Nr(m):0)},defaultTextHeight:function(){return Ii(this.display)},defaultCharWidth:function(){return Vo(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(n,u,h,p,m){var y=this.display;n=Pn(this,Ce(this.doc,n));var C=n.bottom,_=n.left;if(u.style.position="absolute",u.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(u),y.sizer.appendChild(u),p=="over")C=n.top;else if(p=="above"||p=="near"){var M=Math.max(y.wrapper.clientHeight,this.doc.height),N=Math.max(y.sizer.clientWidth,y.lineSpace.clientWidth);(p=="above"||n.bottom+u.offsetHeight>M)&&n.top>u.offsetHeight?C=n.top-u.offsetHeight:n.bottom+u.offsetHeight<=M&&(C=n.bottom),_+u.offsetWidth>N&&(_=N-u.offsetWidth)}u.style.top=C+"px",u.style.left=u.style.right="",m=="right"?(_=y.sizer.clientWidth-u.offsetWidth,u.style.right="0px"):(m=="left"?_=0:m=="middle"&&(_=(y.sizer.clientWidth-u.offsetWidth)/2),u.style.left=_+"px"),h&&z1(this,{left:_,top:C,right:_+u.offsetWidth,bottom:C+u.offsetHeight})},triggerOnKeyDown:Cr(Qc),triggerOnKeyPress:Cr(e0),triggerOnKeyUp:wu,triggerOnMouseDown:Cr(r0),execCommand:function(n){if(Lo.hasOwnProperty(n))return Lo[n].call(null,this)},triggerElectric:Cr(function(n){c0(this,n)}),findPosH:function(n,u,h,p){var m=1;u<0&&(m=-1,u=-u);for(var y=Ce(this.doc,n),C=0;C<u&&(y=ol(this.doc,y,m,h,p),!y.hitSide);++C);return y},moveH:Cr(function(n,u){var h=this;this.extendSelectionsBy(function(p){return h.display.shift||h.doc.extend||p.empty()?ol(h.doc,p.head,n,u,h.options.rtlMoveVisually):n<0?p.from():p.to()},We)}),deleteH:Cr(function(n,u){var h=this.doc.sel,p=this.doc;h.somethingSelected()?p.replaceSelection("",null,"+delete"):ln(this,function(m){var y=ol(p,m.head,n,u,!1);return n<0?{from:y,to:m.head}:{from:m.head,to:y}})}),findPosV:function(n,u,h,p){var m=1,y=p;u<0&&(m=-1,u=-u);for(var C=Ce(this.doc,n),_=0;_<u;++_){var M=Pn(this,C,"div");if(y==null?y=M.left:M.left=y,C=hs(this,M,m,h),C.hitSide)break}return C},moveV:Cr(function(n,u){var h=this,p=this.doc,m=[],y=!this.display.shift&&!p.extend&&p.sel.somethingSelected();if(p.extendSelectionsBy(function(_){if(y)return n<0?_.from():_.to();var M=Pn(h,_.head,"div");_.goalColumn!=null&&(M.left=_.goalColumn),m.push(M.left);var N=hs(h,M,n,u);return u=="page"&&_==p.sel.primary()&&Yo(h,Fl(h,N,"div").top-M.top),N},We),m.length)for(var C=0;C<p.sel.ranges.length;C++)p.sel.ranges[C].goalColumn=m[C]}),findWordAt:function(n){var u=this.doc,h=Oe(u,n.line).text,p=n.ch,m=n.ch;if(h){var y=this.getHelper(n,"wordChars");(n.sticky=="before"||m==h.length)&&p?--p:++m;for(var C=h.charAt(p),_=W(C,y)?function(M){return W(M,y)}:/\s/.test(C)?function(M){return/\s/.test(M)}:function(M){return!/\s/.test(M)&&!W(M)};p>0&&_(h.charAt(p-1));)--p;for(;m<h.length&&_(h.charAt(m));)++m}return new mt(oe(n.line,p),oe(n.line,m))},toggleOverwrite:function(n){n!=null&&n==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?Lt(this.display.cursorDiv,"CodeMirror-overwrite"):ye(this.display.cursorDiv,"CodeMirror-overwrite"),Ze(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==rt()},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:Cr(function(n,u){Fa(this,n,u)}),getScrollInfo:function(){var n=this.display.scroller;return{left:n.scrollLeft,top:n.scrollTop,height:n.scrollHeight-jr(this)-this.display.barHeight,width:n.scrollWidth-jr(this)-this.display.barWidth,clientHeight:Dl(this),clientWidth:Ti(this)}},scrollIntoView:Cr(function(n,u){n==null?(n={from:this.doc.sel.primary().head,to:null},u==null&&(u=this.options.cursorScrollMargin)):typeof n=="number"?n={from:oe(n,0),to:null}:n.from==null&&(n={from:n,to:null}),n.to||(n.to=n.from),n.margin=u||0,n.from.line!=null?Oc(this,n):Tc(this,n.from,n.to,n.margin)}),setSize:Cr(function(n,u){var h=this,p=function(y){return typeof y=="number"||/^\d+$/.test(String(y))?y+"px":y};n!=null&&(this.display.wrapper.style.width=p(n)),u!=null&&(this.display.wrapper.style.height=p(u)),this.options.lineWrapping&&zc(this);var m=this.display.viewFrom;this.doc.iter(m,this.display.viewTo,function(y){if(y.widgets){for(var C=0;C<y.widgets.length;C++)if(y.widgets[C].noHScroll){$i(h,m,"widget");break}}++m}),this.curOp.forceUpdate=!0,Ze(this,"refresh",this)}),operation:function(n){return yr(this,n)},startOperation:function(){return In(this)},endOperation:function(){return Vn(this)},refresh:Cr(function(){var n=this.display.cachedTextHeight;tt(this),this.curOp.forceUpdate=!0,Na(this),Fa(this,this.doc.scrollLeft,this.doc.scrollTop),eu(this.display),(n==null||Math.abs(n-Ii(this.display))>.5||this.options.lineWrapping)&&Ai(this),Ze(this,"refresh",this)}),swapDoc:Cr(function(n){var u=this.doc;return u.cm=null,this.state.selectingText&&this.state.selectingText(),Dc(this,n),Na(this),this.display.input.reset(),Fa(this,n.scrollLeft,n.scrollTop),this.curOp.forceScroll=!0,rr(this,"swapDoc",this,u),u}),phrase:function(n){var u=this.options.phrases;return u&&Object.prototype.hasOwnProperty.call(u,n)?u[n]:n},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}},Sn(e),e.registerHelper=function(n,u,h){o.hasOwnProperty(n)||(o[n]=e[n]={_global:[]}),o[n][u]=h},e.registerGlobalHelper=function(n,u,h,p){e.registerHelper(n,u,p),o[n]._global.push({pred:h,val:p})}}function ol(e,t,o,n,u){var h=t,p=o,m=Oe(e,t.line),y=u&&e.direction=="rtl"?-o:o;function C(){var we=t.line+y;return we<e.first||we>=e.first+e.size?!1:(t=new oe(we,t.ch,t.sticky),m=Oe(e,we))}function _(we){var he;if(n=="codepoint"){var xe=m.text.charCodeAt(t.ch+(o>0?0:-1));if(isNaN(xe))he=null;else{var $e=o>0?xe>=55296&&xe<56320:xe>=56320&&xe<57343;he=new oe(t.line,Math.max(0,Math.min(m.text.length,t.ch+o*($e?2:1))),-o)}}else u?he=Xc(e.cm,m,t,o):he=as(m,t,o);if(he==null)if(!we&&C())t=la(u,e.cm,m,t.line,y);else return!1;else t=he;return!0}if(n=="char"||n=="codepoint")_();else if(n=="column")_(!0);else if(n=="word"||n=="group")for(var M=null,N=n=="group",D=e.cm&&e.cm.getHelper(t,"wordChars"),q=!0;!(o<0&&!_(!q));q=!1){var te=m.text.charAt(t.ch)||`
2333
+ `,ce=W(te,D)?"w":N&&te==`
2334
+ `?"n":!N||/\s/.test(te)?null:"p";if(N&&!q&&!ce&&(ce="s"),M&&M!=ce){o<0&&(o=1,_(),t.sticky="after");break}if(ce&&(M=ce),o>0&&!_(!q))break}var fe=dr(e,t,h,p,!0);return O(h,fe)&&(fe.hitSide=!0),fe}function hs(e,t,o,n){var u=e.doc,h=t.left,p;if(n=="page"){var m=Math.min(e.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),y=Math.max(m-.5*Ii(e.display),3);p=(o>0?t.bottom:t.top)+o*y}else n=="line"&&(p=o>0?t.bottom+3:t.top-3);for(var C;C=H(e,h,p),!!C.outside;){if(o<0?p<=0:p>=u.height){C.hitSide=!0;break}p+=o*5}return C}var yt=function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new at,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};yt.prototype.init=function(e){var t=this,o=this,n=o.cm,u=o.div=e.lineDiv;u.contentEditable=!0,d0(u,n.options.spellcheck,n.options.autocorrect,n.options.autocapitalize);function h(m){for(var y=m.target;y;y=y.parentNode){if(y==u)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(y.className))break}return!1}Ne(u,"paste",function(m){!h(m)||Gt(n,m)||Lu(m,n)||k<=11&&setTimeout(Ft(n,function(){return t.updateFromDOM()}),20)}),Ne(u,"compositionstart",function(m){t.composing={data:m.data,done:!1}}),Ne(u,"compositionupdate",function(m){t.composing||(t.composing={data:m.data,done:!1})}),Ne(u,"compositionend",function(m){t.composing&&(m.data!=t.composing.data&&t.readFromDOMSoon(),t.composing.done=!0)}),Ne(u,"touchstart",function(){return o.forceCompositionEnd()}),Ne(u,"input",function(){t.composing||t.readFromDOMSoon()});function p(m){if(!(!h(m)||Gt(n,m))){if(n.somethingSelected())bn({lineWise:!1,text:n.getSelections()}),m.type=="cut"&&n.replaceSelection("",null,"cut");else if(n.options.lineWiseCopyCut){var y=_u(n);bn({lineWise:!0,text:y.text}),m.type=="cut"&&n.operation(function(){n.setSelections(y.ranges,0,nt),n.replaceSelection("",null,"cut")})}else return;if(m.clipboardData){m.clipboardData.clearData();var C=vn.text.join(`
2335
+ `);if(m.clipboardData.setData("Text",C),m.clipboardData.getData("Text")==C){m.preventDefault();return}}var _=f0(),M=_.firstChild;n.display.lineSpace.insertBefore(_,n.display.lineSpace.firstChild),M.value=vn.text.join(`
2336
+ `);var N=rt();It(M),setTimeout(function(){n.display.lineSpace.removeChild(_),N.focus(),N==u&&o.showPrimarySelection()},50)}}Ne(u,"copy",p),Ne(u,"cut",p)},yt.prototype.screenReaderLabelChanged=function(e){e?this.div.setAttribute("aria-label",e):this.div.removeAttribute("aria-label")},yt.prototype.prepareSelection=function(){var e=Ba(this.cm,!1);return e.focus=rt()==this.div,e},yt.prototype.showSelection=function(e,t){!e||!this.cm.display.view.length||((e.focus||t)&&this.showPrimarySelection(),this.showMultipleSelections(e))},yt.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},yt.prototype.showPrimarySelection=function(){var e=this.getSelection(),t=this.cm,o=t.doc.sel.primary(),n=o.from(),u=o.to();if(t.display.viewTo==t.display.viewFrom||n.line>=t.display.viewTo||u.line<t.display.viewFrom){e.removeAllRanges();return}var h=pa(t,e.anchorNode,e.anchorOffset),p=pa(t,e.focusNode,e.focusOffset);if(!(h&&!h.bad&&p&&!p.bad&&w(Ve(h,p),n)==0&&w(le(h,p),u)==0)){var m=t.display.view,y=n.line>=t.display.viewFrom&&al(t,n)||{node:m[0].measure.map[2],offset:0},C=u.line<t.display.viewTo&&al(t,u);if(!C){var _=m[m.length-1].measure,M=_.maps?_.maps[_.maps.length-1]:_.map;C={node:M[M.length-1],offset:M[M.length-2]-M[M.length-3]}}if(!y||!C){e.removeAllRanges();return}var N=e.rangeCount&&e.getRangeAt(0),D;try{D=ee(y.node,y.offset,C.offset,C.node)}catch{}D&&(!c&&t.state.focused?(e.collapse(y.node,y.offset),D.collapsed||(e.removeAllRanges(),e.addRange(D))):(e.removeAllRanges(),e.addRange(D)),N&&e.anchorNode==null?e.addRange(N):c&&this.startGracePeriod()),this.rememberSelection()}},yt.prototype.startGracePeriod=function(){var e=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){e.gracePeriod=!1,e.selectionChanged()&&e.cm.operation(function(){return e.cm.curOp.selectionChanged=!0})},20)},yt.prototype.showMultipleSelections=function(e){V(this.cm.display.cursorDiv,e.cursors),V(this.cm.display.selectionDiv,e.selection)},yt.prototype.rememberSelection=function(){var e=this.getSelection();this.lastAnchorNode=e.anchorNode,this.lastAnchorOffset=e.anchorOffset,this.lastFocusNode=e.focusNode,this.lastFocusOffset=e.focusOffset},yt.prototype.selectionInEditor=function(){var e=this.getSelection();if(!e.rangeCount)return!1;var t=e.getRangeAt(0).commonAncestorContainer;return me(this.div,t)},yt.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||rt()!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},yt.prototype.blur=function(){this.div.blur()},yt.prototype.getField=function(){return this.div},yt.prototype.supportsTouch=function(){return!0},yt.prototype.receivedFocus=function(){var e=this;this.selectionInEditor()?this.pollSelection():yr(this.cm,function(){return e.cm.curOp.selectionChanged=!0});function t(){e.cm.state.focused&&(e.pollSelection(),e.polling.set(e.cm.options.pollInterval,t))}this.polling.set(this.cm.options.pollInterval,t)},yt.prototype.selectionChanged=function(){var e=this.getSelection();return e.anchorNode!=this.lastAnchorNode||e.anchorOffset!=this.lastAnchorOffset||e.focusNode!=this.lastFocusNode||e.focusOffset!=this.lastFocusOffset},yt.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var e=this.getSelection(),t=this.cm;if(Te&&U&&this.cm.display.gutterSpecs.length&&ha(e.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var o=pa(t,e.anchorNode,e.anchorOffset),n=pa(t,e.focusNode,e.focusOffset);o&&n&&yr(t,function(){cr(t.doc,Wi(o,n),nt),(o.bad||n.bad)&&(t.curOp.selectionChanged=!0)})}}},yt.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var e=this.cm,t=e.display,o=e.doc.sel.primary(),n=o.from(),u=o.to();if(n.ch==0&&n.line>e.firstLine()&&(n=oe(n.line-1,Oe(e.doc,n.line-1).length)),u.ch==Oe(e.doc,u.line).text.length&&u.line<e.lastLine()&&(u=oe(u.line+1,0)),n.line<t.viewFrom||u.line>t.viewTo-1)return!1;var h,p,m;n.line==t.viewFrom||(h=Zn(e,n.line))==0?(p=bt(t.view[0].line),m=t.view[0].node):(p=bt(t.view[h].line),m=t.view[h-1].node.nextSibling);var y=Zn(e,u.line),C,_;if(y==t.view.length-1?(C=t.viewTo-1,_=t.lineDiv.lastChild):(C=bt(t.view[y+1].line)-1,_=t.view[y+1].node.previousSibling),!m)return!1;for(var M=e.doc.splitLines(ps(e,m,_,p,C)),N=tn(e.doc,oe(p,0),oe(C,Oe(e.doc,C).text.length));M.length>1&&N.length>1;)if(Ke(M)==Ke(N))M.pop(),N.pop(),C--;else if(M[0]==N[0])M.shift(),N.shift(),p++;else break;for(var D=0,q=0,te=M[0],ce=N[0],fe=Math.min(te.length,ce.length);D<fe&&te.charCodeAt(D)==ce.charCodeAt(D);)++D;for(var we=Ke(M),he=Ke(N),xe=Math.min(we.length-(M.length==1?D:0),he.length-(N.length==1?D:0));q<xe&&we.charCodeAt(we.length-q-1)==he.charCodeAt(he.length-q-1);)++q;if(M.length==1&&N.length==1&&p==n.line)for(;D&&D>n.ch&&we.charCodeAt(we.length-q-1)==he.charCodeAt(he.length-q-1);)D--,q++;M[M.length-1]=we.slice(0,we.length-q).replace(/^\u200b+/,""),M[0]=M[0].slice(D).replace(/\u200b+$/,"");var $e=oe(p,D),Pe=oe(C,N.length?Ke(N).length-q:0);if(M.length>1||M[0]||w($e,Pe))return na(e.doc,M,$e,Pe,"+input"),!0},yt.prototype.ensurePolled=function(){this.forceCompositionEnd()},yt.prototype.reset=function(){this.forceCompositionEnd()},yt.prototype.forceCompositionEnd=function(){!this.composing||(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},yt.prototype.readFromDOMSoon=function(){var e=this;this.readDOMTimeout==null&&(this.readDOMTimeout=setTimeout(function(){if(e.readDOMTimeout=null,e.composing)if(e.composing.done)e.composing=null;else return;e.updateFromDOM()},80))},yt.prototype.updateFromDOM=function(){var e=this;(this.cm.isReadOnly()||!this.pollContent())&&yr(this.cm,function(){return tt(e.cm)})},yt.prototype.setUneditable=function(e){e.contentEditable="false"},yt.prototype.onKeyPress=function(e){e.charCode==0||this.composing||(e.preventDefault(),this.cm.isReadOnly()||Ft(this.cm,fs)(this.cm,String.fromCharCode(e.charCode==null?e.keyCode:e.charCode),0))},yt.prototype.readOnlyChanged=function(e){this.div.contentEditable=String(e!="nocursor")},yt.prototype.onContextMenu=function(){},yt.prototype.resetPosition=function(){},yt.prototype.needsContentAttribute=!0;function al(e,t){var o=Ys(e,t.line);if(!o||o.hidden)return null;var n=Oe(e.doc,t.line),u=mc(o,n,t.line),h=Sr(n,e.doc.direction),p="left";if(h){var m=Rt(h,t.ch);p=m%2?"right":"left"}var y=Rl(u.map,t.ch,p);return y.offset=y.collapse=="right"?y.end:y.start,y}function ha(e){for(var t=e;t;t=t.parentNode)if(/CodeMirror-gutter-wrapper/.test(t.className))return!0;return!1}function He(e,t){return t&&(e.bad=!0),e}function ps(e,t,o,n,u){var h="",p=!1,m=e.doc.lineSeparator(),y=!1;function C(D){return function(q){return q.id==D}}function _(){p&&(h+=m,y&&(h+=m),p=y=!1)}function M(D){D&&(_(),h+=D)}function N(D){if(D.nodeType==1){var q=D.getAttribute("cm-text");if(q){M(q);return}var te=D.getAttribute("cm-marker"),ce;if(te){var fe=e.findMarks(oe(n,0),oe(u+1,0),C(+te));fe.length&&(ce=fe[0].find(0))&&M(tn(e.doc,ce.from,ce.to).join(m));return}if(D.getAttribute("contenteditable")=="false")return;var we=/^(pre|div|p|li|table|br)$/i.test(D.nodeName);if(!/^br$/i.test(D.nodeName)&&D.textContent.length==0)return;we&&_();for(var he=0;he<D.childNodes.length;he++)N(D.childNodes[he]);/^(pre|p)$/i.test(D.nodeName)&&(y=!0),we&&(p=!0)}else D.nodeType==3&&M(D.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;N(t),t!=o;)t=t.nextSibling,y=!1;return h}function pa(e,t,o){var n;if(t==e.display.lineDiv){if(n=e.display.lineDiv.childNodes[o],!n)return He(e.clipPos(oe(e.display.viewTo-1)),!0);t=null,o=0}else for(n=t;;n=n.parentNode){if(!n||n==e.display.lineDiv)return null;if(n.parentNode&&n.parentNode==e.display.lineDiv)break}for(var u=0;u<e.display.view.length;u++){var h=e.display.view[u];if(h.node==n)return So(h,t,o)}}function So(e,t,o){var n=e.text.firstChild,u=!1;if(!t||!me(n,t))return He(oe(bt(e.line),0),!0);if(t==n&&(u=!0,t=n.childNodes[o],o=0,!t)){var h=e.rest?Ke(e.rest):e.line;return He(oe(bt(h),h.text.length),u)}var p=t.nodeType==3?t:null,m=t;for(!p&&t.childNodes.length==1&&t.firstChild.nodeType==3&&(p=t.firstChild,o&&(o=p.nodeValue.length));m.parentNode!=n;)m=m.parentNode;var y=e.measure,C=y.maps;function _(ce,fe,we){for(var he=-1;he<(C?C.length:0);he++)for(var xe=he<0?y.map:C[he],$e=0;$e<xe.length;$e+=3){var Pe=xe[$e+2];if(Pe==ce||Pe==fe){var ot=bt(he<0?e.line:e.rest[he]),xt=xe[$e]+we;return(we<0||Pe!=ce)&&(xt=xe[$e+(we?1:0)]),oe(ot,xt)}}}var M=_(p,m,o);if(M)return He(M,u);for(var N=m.nextSibling,D=p?p.nodeValue.length-o:0;N;N=N.nextSibling){if(M=_(N,N.firstChild,0),M)return He(oe(M.line,M.ch-D),u);D+=N.textContent.length}for(var q=m.previousSibling,te=o;q;q=q.previousSibling){if(M=_(q,q.firstChild,-1),M)return He(oe(M.line,M.ch+te),u);te+=q.textContent.length}}var Zt=function(e){this.cm=e,this.prevInput="",this.pollingFast=!1,this.polling=new at,this.hasSelection=!1,this.composing=null};Zt.prototype.init=function(e){var t=this,o=this,n=this.cm;this.createField(e);var u=this.textarea;e.wrapper.insertBefore(this.wrapper,e.wrapper.firstChild),Me&&(u.style.width="0px"),Ne(u,"input",function(){T&&k>=9&&t.hasSelection&&(t.hasSelection=null),o.poll()}),Ne(u,"paste",function(p){Gt(n,p)||Lu(p,n)||(n.state.pasteIncoming=+new Date,o.fastPoll())});function h(p){if(!Gt(n,p)){if(n.somethingSelected())bn({lineWise:!1,text:n.getSelections()});else if(n.options.lineWiseCopyCut){var m=_u(n);bn({lineWise:!0,text:m.text}),p.type=="cut"?n.setSelections(m.ranges,null,nt):(o.prevInput="",u.value=m.text.join(`
2337
+ `),It(u))}else return;p.type=="cut"&&(n.state.cutIncoming=+new Date)}}Ne(u,"cut",h),Ne(u,"copy",h),Ne(e.scroller,"paste",function(p){if(!(oi(e,p)||Gt(n,p))){if(!u.dispatchEvent){n.state.pasteIncoming=+new Date,o.focus();return}var m=new Event("paste");m.clipboardData=p.clipboardData,u.dispatchEvent(m)}}),Ne(e.lineSpace,"selectstart",function(p){oi(e,p)||ur(p)}),Ne(u,"compositionstart",function(){var p=n.getCursor("from");o.composing&&o.composing.range.clear(),o.composing={start:p,range:n.markText(p,n.getCursor("to"),{className:"CodeMirror-composing"})}}),Ne(u,"compositionend",function(){o.composing&&(o.poll(),o.composing.range.clear(),o.composing=null)})},Zt.prototype.createField=function(e){this.wrapper=f0(),this.textarea=this.wrapper.firstChild},Zt.prototype.screenReaderLabelChanged=function(e){e?this.textarea.setAttribute("aria-label",e):this.textarea.removeAttribute("aria-label")},Zt.prototype.prepareSelection=function(){var e=this.cm,t=e.display,o=e.doc,n=Ba(e);if(e.options.moveInputWithCursor){var u=Pn(e,o.sel.primary().head,"div"),h=t.wrapper.getBoundingClientRect(),p=t.lineDiv.getBoundingClientRect();n.teTop=Math.max(0,Math.min(t.wrapper.clientHeight-10,u.top+p.top-h.top)),n.teLeft=Math.max(0,Math.min(t.wrapper.clientWidth-10,u.left+p.left-h.left))}return n},Zt.prototype.showSelection=function(e){var t=this.cm,o=t.display;V(o.cursorDiv,e.cursors),V(o.selectionDiv,e.selection),e.teTop!=null&&(this.wrapper.style.top=e.teTop+"px",this.wrapper.style.left=e.teLeft+"px")},Zt.prototype.reset=function(e){if(!(this.contextMenuPending||this.composing)){var t=this.cm;if(t.somethingSelected()){this.prevInput="";var o=t.getSelection();this.textarea.value=o,t.state.focused&&It(this.textarea),T&&k>=9&&(this.hasSelection=o)}else e||(this.prevInput=this.textarea.value="",T&&k>=9&&(this.hasSelection=null))}},Zt.prototype.getField=function(){return this.textarea},Zt.prototype.supportsTouch=function(){return!1},Zt.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!pe||rt()!=this.textarea))try{this.textarea.focus()}catch{}},Zt.prototype.blur=function(){this.textarea.blur()},Zt.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Zt.prototype.receivedFocus=function(){this.slowPoll()},Zt.prototype.slowPoll=function(){var e=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){e.poll(),e.cm.state.focused&&e.slowPoll()})},Zt.prototype.fastPoll=function(){var e=!1,t=this;t.pollingFast=!0;function o(){var n=t.poll();!n&&!e?(e=!0,t.polling.set(60,o)):(t.pollingFast=!1,t.slowPoll())}t.polling.set(20,o)},Zt.prototype.poll=function(){var e=this,t=this.cm,o=this.textarea,n=this.prevInput;if(this.contextMenuPending||!t.state.focused||xl(o)&&!n&&!this.composing||t.isReadOnly()||t.options.disableInput||t.state.keySeq)return!1;var u=o.value;if(u==n&&!t.somethingSelected())return!1;if(T&&k>=9&&this.hasSelection===u||de&&/[\uf700-\uf7ff]/.test(u))return t.display.input.reset(),!1;if(t.doc.sel==t.display.selForContextMenu){var h=u.charCodeAt(0);if(h==8203&&!n&&(n="\u200B"),h==8666)return this.reset(),this.cm.execCommand("undo")}for(var p=0,m=Math.min(n.length,u.length);p<m&&n.charCodeAt(p)==u.charCodeAt(p);)++p;return yr(t,function(){fs(t,u.slice(p),n.length-p,null,e.composing?"*compose":null),u.length>1e3||u.indexOf(`
2334
2338
  `)>-1?o.value=e.prevInput="":e.prevInput=u,e.composing&&(e.composing.range.clear(),e.composing.range=t.markText(e.composing.start,t.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},Zt.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Zt.prototype.onKeyPress=function(){T&&k>=9&&(this.hasSelection=null),this.fastPoll()},Zt.prototype.onContextMenu=function(e){var t=this,o=t.cm,n=o.display,u=t.textarea;t.contextMenuPending&&t.contextMenuPending();var h=Un(o,e),p=n.scroller.scrollTop;if(!h||Z)return;var m=o.options.resetSelectionOnContextMenu;m&&o.doc.sel.contains(h)==-1&&Ft(o,cr)(o.doc,Wi(h),nt);var y=u.style.cssText,C=t.wrapper.style.cssText,_=t.wrapper.offsetParent.getBoundingClientRect();t.wrapper.style.cssText="position: static",u.style.cssText=`position: absolute; width: 30px; height: 30px;
2335
2339
  top: `+(e.clientY-_.top-5)+"px; left: "+(e.clientX-_.left-5)+`px;
2336
2340
  z-index: 1000; background: `+(T?"rgba(255, 255, 255, .05)":"transparent")+`;
2337
- outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var M;A&&(M=window.scrollY),n.input.focus(),A&&window.scrollTo(null,M),n.input.reset(),o.somethingSelected()||(u.value=t.prevInput=" "),t.contextMenuPending=D,n.selForContextMenu=o.doc.sel,clearTimeout(n.detectingSelectAll);function N(){if(u.selectionStart!=null){var te=o.somethingSelected(),ue="\u200B"+(te?u.value:"");u.value="\u21DA",u.value=ue,t.prevInput=te?"":"\u200B",u.selectionStart=1,u.selectionEnd=ue.length,n.selForContextMenu=o.doc.sel}}function D(){if(t.contextMenuPending==D&&(t.contextMenuPending=!1,t.wrapper.style.cssText=C,u.style.cssText=y,T&&k<9&&n.scrollbars.setScrollTop(n.scroller.scrollTop=p),u.selectionStart!=null)){(!T||T&&k<9)&&N();var te=0,ue=function(){n.selForContextMenu==o.doc.sel&&u.selectionStart==0&&u.selectionEnd>0&&t.prevInput=="\u200B"?Ft(o,Bc)(o):te++<10?n.detectingSelectAll=setTimeout(ue,500):(n.selForContextMenu=null,n.input.reset())};n.detectingSelectAll=setTimeout(ue,200)}}if(T&&k>=9&&N(),Ye){io(e);var q=function(){gr(window,"mouseup",q),setTimeout(D,20)};Ne(window,"mouseup",q)}else setTimeout(D,50)},Zt.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled=e=="nocursor",this.textarea.readOnly=!!e},Zt.prototype.setUneditable=function(){},Zt.prototype.needsContentAttribute=!1;function Su(e,t){if(t=t?Ut(t):{},t.value=e.value,!t.tabindex&&e.tabIndex&&(t.tabindex=e.tabIndex),!t.placeholder&&e.placeholder&&(t.placeholder=e.placeholder),t.autofocus==null){var o=rt();t.autofocus=o==e||e.getAttribute("autofocus")!=null&&o==document.body}function n(){e.value=m.getValue()}var u;if(e.form&&(Ne(e.form,"submit",n),!t.leaveSubmitMethodAlone)){var h=e.form;u=h.submit;try{var p=h.submit=function(){n(),h.submit=u,h.submit(),h.submit=p}}catch{}}t.finishInit=function(y){y.save=n,y.getTextArea=function(){return e},y.toTextArea=function(){y.toTextArea=isNaN,n(),e.parentNode.removeChild(y.getWrapperElement()),e.style.display="",e.form&&(gr(e.form,"submit",n),!t.leaveSubmitMethodAlone&&typeof e.form.submit=="function"&&(e.form.submit=u))}},e.style.display="none";var m=Mt(function(y){return e.parentNode.insertBefore(y,e.nextSibling)},t);return m}function h0(e){e.off=gr,e.on=Ne,e.wheelEventPixels=I1,e.Doc=Sr,e.splitLines=ao,e.countColumn=At,e.findColumn=Nt,e.isWordChar=et,e.Pass=Ue,e.signal=Ze,e.Line=br,e.changeEnd=Ui,e.scrollbarModel=Zl,e.Pos=oe,e.cmpPos=w,e.modes=cn,e.mimeModes=Jr,e.resolveMode=lo,e.getMode=Bo,e.modeExtensions=Mn,e.extendMode=kn,e.copyState=en,e.startState=Oa,e.innerMode=ka,e.commands=Lo,e.keyMap=ui,e.keyName=vu,e.isModifierKey=os,e.lookupKey=ci,e.normalizeKeyMap=B1,e.StringStream=$t,e.SharedTextMarker=aa,e.TextMarker=Vi,e.LineWidget=Xa,e.e_preventDefault=ur,e.e_stopPropagation=Ho,e.e_stop=io,e.addClass=Lt,e.contains=me,e.rmClass=ye,e.keyNames=ji}ds(Mt),di(Mt);var kr="iter insert remove copy getEditor constructor".split(" ");for(var gs in Sr.prototype)Sr.prototype.hasOwnProperty(gs)&&_e(kr,gs)<0&&(Mt.prototype[gs]=function(e){return function(){return e.apply(this.doc,arguments)}}(Sr.prototype[gs]));return Sn(Sr),Mt.inputStyles={textarea:Zt,contenteditable:yt},Mt.defineMode=function(e){!Mt.defaults.mode&&e!="null"&&(Mt.defaults.mode=e),Ll.apply(this,arguments)},Mt.defineMIME=ni,Mt.defineMode("null",function(){return{token:function(e){return e.skipToEnd()}}}),Mt.defineMIME("text/plain","null"),Mt.defineExtension=function(e,t){Mt.prototype[e]=t},Mt.defineDocExtension=function(e,t){Sr.prototype[e]=t},Mt.fromTextArea=Su,h0(Mt),Mt.version="5.62.3",Mt})}(hd)),hd.exports}var Au=Ro();const D7=`.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}
2338
- `,R7=ce`
2341
+ outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var M;A&&(M=window.scrollY),n.input.focus(),A&&window.scrollTo(null,M),n.input.reset(),o.somethingSelected()||(u.value=t.prevInput=" "),t.contextMenuPending=D,n.selForContextMenu=o.doc.sel,clearTimeout(n.detectingSelectAll);function N(){if(u.selectionStart!=null){var te=o.somethingSelected(),ce="\u200B"+(te?u.value:"");u.value="\u21DA",u.value=ce,t.prevInput=te?"":"\u200B",u.selectionStart=1,u.selectionEnd=ce.length,n.selForContextMenu=o.doc.sel}}function D(){if(t.contextMenuPending==D&&(t.contextMenuPending=!1,t.wrapper.style.cssText=C,u.style.cssText=y,T&&k<9&&n.scrollbars.setScrollTop(n.scroller.scrollTop=p),u.selectionStart!=null)){(!T||T&&k<9)&&N();var te=0,ce=function(){n.selForContextMenu==o.doc.sel&&u.selectionStart==0&&u.selectionEnd>0&&t.prevInput=="\u200B"?Ft(o,Bc)(o):te++<10?n.detectingSelectAll=setTimeout(ce,500):(n.selForContextMenu=null,n.input.reset())};n.detectingSelectAll=setTimeout(ce,200)}}if(T&&k>=9&&N(),Ye){io(e);var q=function(){gr(window,"mouseup",q),setTimeout(D,20)};Ne(window,"mouseup",q)}else setTimeout(D,50)},Zt.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled=e=="nocursor",this.textarea.readOnly=!!e},Zt.prototype.setUneditable=function(){},Zt.prototype.needsContentAttribute=!1;function Su(e,t){if(t=t?Ut(t):{},t.value=e.value,!t.tabindex&&e.tabIndex&&(t.tabindex=e.tabIndex),!t.placeholder&&e.placeholder&&(t.placeholder=e.placeholder),t.autofocus==null){var o=rt();t.autofocus=o==e||e.getAttribute("autofocus")!=null&&o==document.body}function n(){e.value=m.getValue()}var u;if(e.form&&(Ne(e.form,"submit",n),!t.leaveSubmitMethodAlone)){var h=e.form;u=h.submit;try{var p=h.submit=function(){n(),h.submit=u,h.submit(),h.submit=p}}catch{}}t.finishInit=function(y){y.save=n,y.getTextArea=function(){return e},y.toTextArea=function(){y.toTextArea=isNaN,n(),e.parentNode.removeChild(y.getWrapperElement()),e.style.display="",e.form&&(gr(e.form,"submit",n),!t.leaveSubmitMethodAlone&&typeof e.form.submit=="function"&&(e.form.submit=u))}},e.style.display="none";var m=Mt(function(y){return e.parentNode.insertBefore(y,e.nextSibling)},t);return m}function h0(e){e.off=gr,e.on=Ne,e.wheelEventPixels=I1,e.Doc=Mr,e.splitLines=ao,e.countColumn=At,e.findColumn=Nt,e.isWordChar=et,e.Pass=Ue,e.signal=Ze,e.Line=br,e.changeEnd=Ui,e.scrollbarModel=Zl,e.Pos=oe,e.cmpPos=w,e.modes=dn,e.mimeModes=Jr,e.resolveMode=lo,e.getMode=Bo,e.modeExtensions=Mn,e.extendMode=kn,e.copyState=en,e.startState=Oa,e.innerMode=ka,e.commands=Lo,e.keyMap=ui,e.keyName=vu,e.isModifierKey=os,e.lookupKey=ci,e.normalizeKeyMap=B1,e.StringStream=$t,e.SharedTextMarker=aa,e.TextMarker=Gi,e.LineWidget=Xa,e.e_preventDefault=ur,e.e_stopPropagation=Ho,e.e_stop=io,e.addClass=Lt,e.contains=me,e.rmClass=ye,e.keyNames=ji}ds(Mt),di(Mt);var Or="iter insert remove copy getEditor constructor".split(" ");for(var gs in Mr.prototype)Mr.prototype.hasOwnProperty(gs)&&_e(Or,gs)<0&&(Mt.prototype[gs]=function(e){return function(){return e.apply(this.doc,arguments)}}(Mr.prototype[gs]));return Sn(Mr),Mt.inputStyles={textarea:Zt,contenteditable:yt},Mt.defineMode=function(e){!Mt.defaults.mode&&e!="null"&&(Mt.defaults.mode=e),Ll.apply(this,arguments)},Mt.defineMIME=ni,Mt.defineMode("null",function(){return{token:function(e){return e.skipToEnd()}}}),Mt.defineMIME("text/plain","null"),Mt.defineExtension=function(e,t){Mt.prototype[e]=t},Mt.defineDocExtension=function(e,t){Mr.prototype[e]=t},Mt.fromTextArea=Su,h0(Mt),Mt.version="5.62.3",Mt})}(hd)),hd.exports}var Au=Ro();const W7=`.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}
2342
+ `,U7=ue`
2339
2343
  .cm-s-skedulo .cm-header {
2340
2344
  color: blue;
2341
2345
  }
@@ -2415,12 +2419,12 @@ b`.split(/\n/).length!=3?function(e){for(var t=0,o=[],n=e.length;t<=n;){var u=e.
2415
2419
  .cm-invalidchar {
2416
2420
  color: #f00;
2417
2421
  }
2418
- `;(function(s,i){(function(l){l(Ro())})(function(l){l.overlayMode=function(d,c,g){return{startState:function(){return{base:l.startState(d),overlay:l.startState(c),basePos:0,baseCur:null,overlayPos:0,overlayCur:null,streamSeen:null}},copyState:function(b){return{base:l.copyState(d,b.base),overlay:l.copyState(c,b.overlay),basePos:b.basePos,baseCur:null,overlayPos:b.overlayPos,overlayCur:null}},token:function(b,I){return(b!=I.streamSeen||Math.min(I.basePos,I.overlayPos)<b.start)&&(I.streamSeen=b,I.basePos=I.overlayPos=b.start),b.start==I.basePos&&(I.baseCur=d.token(b,I.base),I.basePos=b.pos),b.start==I.overlayPos&&(b.pos=b.start,I.overlayCur=c.token(b,I.overlay),I.overlayPos=b.pos),b.pos=Math.min(I.basePos,I.overlayPos),I.overlayCur==null?I.baseCur:I.baseCur!=null&&I.overlay.combineTokens||g&&I.overlay.combineTokens==null?I.baseCur+" "+I.overlayCur:I.overlayCur},indent:d.indent&&function(b,I,T){return d.indent(b.base,I,T)},electricChars:d.electricChars,innerMode:function(b){return{state:b.base,mode:d}},blankLine:function(b){var I,T;return d.blankLine&&(I=d.blankLine(b.base)),c.blankLine&&(T=c.blankLine(b.overlay)),T==null?I:g&&I!=null?I+" "+T:T}}}})})();(function(s,i){(function(l){l(Ro())})(function(l){l.defineMode("jinja2",function(){var d=["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"],c=/^[+\-*&%=<>!?|~^]/,g=/^[:\[\(\{]/,b=["true","false"],I=/^(\d[+\-\*\/])?\d+(\.\d+)?/;d=new RegExp("(("+d.join(")|(")+"))\\b"),b=new RegExp("(("+b.join(")|(")+"))\\b");function T(k,A){var B=k.peek();if(A.incomment)return k.skipTo("#}")?(k.eatWhile(/\#|}/),A.incomment=!1):k.skipToEnd(),"comment";if(A.intag){if(A.operator){if(A.operator=!1,k.match(b))return"atom";if(k.match(I))return"number"}if(A.sign){if(A.sign=!1,k.match(b))return"atom";if(k.match(I))return"number"}if(A.instring)return B==A.instring&&(A.instring=!1),k.next(),"string";if(B=="'"||B=='"')return A.instring=B,k.next(),"string";if(k.match(A.intag+"}")||k.eat("-")&&k.match(A.intag+"}"))return A.intag=!1,"tag";if(k.match(c))return A.operator=!0,"operator";if(k.match(g))A.sign=!0;else if(k.eat(" ")||k.sol()){if(k.match(d))return"keyword";if(k.match(b))return"atom";if(k.match(I))return"number";k.sol()&&k.next()}else k.next();return"variable"}else if(k.eat("{")){if(k.eat("#"))return A.incomment=!0,k.skipTo("#}")?(k.eatWhile(/\#|}/),A.incomment=!1):k.skipToEnd(),"comment";if(B=k.eat(/\{|%/))return A.intag=B,B=="{"&&(A.intag="}"),k.eat("-"),"tag"}k.next()}return{startState:function(){return{tokenize:T}},token:function(k,A){return A.tokenize(k,A)},blockCommentStart:"{#",blockCommentEnd:"#}"}}),l.defineMIME("text/jinja2","jinja2")})})();var N7={exports:{}};(function(s,i){(function(l){l(Ro())})(function(l){var d={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},c={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};l.defineMode("xml",function(g,b){var I=g.indentUnit,T={},k=b.htmlMode?d:c;for(var A in k)T[A]=k[A];for(var A in b)T[A]=b[A];var B,U;function Z(P,S){function ee(Lt){return S.tokenize=Lt,Lt(P,S)}var me=P.next();if(me=="<")return P.eat("!")?P.eat("[")?P.match("CDATA[")?ee(ge("atom","]]>")):null:P.match("--")?ee(ge("comment","-->")):P.match("DOCTYPE",!0,!0)?(P.eatWhile(/[\w\._\-]/),ee(Me(1))):null:P.eat("?")?(P.eatWhile(/[\w\._\-]/),S.tokenize=ge("meta","?>"),"meta"):(B=P.eat("/")?"closeTag":"openTag",S.tokenize=re,"tag bracket");if(me=="&"){var rt;return P.eat("#")?P.eat("x")?rt=P.eatWhile(/[a-fA-F\d]/)&&P.eat(";"):rt=P.eatWhile(/[\d]/)&&P.eat(";"):rt=P.eatWhile(/[\w\.\-:]/)&&P.eat(";"),rt?"atom":"error"}else return P.eatWhile(/[^&<]/),null}Z.isInText=!0;function re(P,S){var ee=P.next();if(ee==">"||ee=="/"&&P.eat(">"))return S.tokenize=Z,B=ee==">"?"endTag":"selfcloseTag","tag bracket";if(ee=="=")return B="equals",null;if(ee=="<"){S.tokenize=Z,S.state=ke,S.tagName=S.tagStart=null;var me=S.tokenize(P,S);return me?me+" tag error":"tag error"}else return/[\'\"]/.test(ee)?(S.tokenize=ve(ee),S.stringStartCol=P.column(),S.tokenize(P,S)):(P.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function ve(P){var S=function(ee,me){for(;!ee.eol();)if(ee.next()==P){me.tokenize=re;break}return"string"};return S.isInAttribute=!0,S}function ge(P,S){return function(ee,me){for(;!ee.eol();){if(ee.match(S)){me.tokenize=Z;break}ee.next()}return P}}function Me(P){return function(S,ee){for(var me;(me=S.next())!=null;){if(me=="<")return ee.tokenize=Me(P+1),ee.tokenize(S,ee);if(me==">")if(P==1){ee.tokenize=Z;break}else return ee.tokenize=Me(P-1),ee.tokenize(S,ee)}return"meta"}}function Te(P,S,ee){this.prev=P.context,this.tagName=S||"",this.indent=P.indented,this.startOfLine=ee,(T.doNotIndent.hasOwnProperty(S)||P.context&&P.context.noIndent)&&(this.noIndent=!0)}function pe(P){P.context&&(P.context=P.context.prev)}function de(P,S){for(var ee;;){if(!P.context||(ee=P.context.tagName,!T.contextGrabbers.hasOwnProperty(ee)||!T.contextGrabbers[ee].hasOwnProperty(S)))return;pe(P)}}function ke(P,S,ee){return P=="openTag"?(ee.tagStart=S.column(),Ee):P=="closeTag"?Ie:ke}function Ee(P,S,ee){return P=="word"?(ee.tagName=S.current(),U="tag",be):T.allowMissingTagName&&P=="endTag"?(U="tag bracket",be(P,S,ee)):(U="error",Ee)}function Ie(P,S,ee){if(P=="word"){var me=S.current();return ee.context&&ee.context.tagName!=me&&T.implicitlyClosed.hasOwnProperty(ee.context.tagName)&&pe(ee),ee.context&&ee.context.tagName==me||T.matchClosing===!1?(U="tag",je):(U="tag error",Ye)}else return T.allowMissingTagName&&P=="endTag"?(U="tag bracket",je(P,S,ee)):(U="error",Ye)}function je(P,S,ee){return P!="endTag"?(U="error",je):(pe(ee),ke)}function Ye(P,S,ee){return U="error",je(P,S,ee)}function be(P,S,ee){if(P=="word")return U="attribute",ye;if(P=="endTag"||P=="selfcloseTag"){var me=ee.tagName,rt=ee.tagStart;return ee.tagName=ee.tagStart=null,P=="selfcloseTag"||T.autoSelfClosers.hasOwnProperty(me)?de(ee,me):(de(ee,me),ee.context=new Te(ee,me,rt==ee.indented)),ke}return U="error",be}function ye(P,S,ee){return P=="equals"?Qe:(T.allowMissing||(U="error"),be(P,S,ee))}function Qe(P,S,ee){return P=="string"?G:P=="word"&&T.allowUnquoted?(U="string",be):(U="error",be(P,S,ee))}function G(P,S,ee){return P=="string"?G:be(P,S,ee)}return{startState:function(P){var S={tokenize:Z,state:ke,indented:P||0,tagName:null,tagStart:null,context:null};return P!=null&&(S.baseIndent=P),S},token:function(P,S){if(!S.tagName&&P.sol()&&(S.indented=P.indentation()),P.eatSpace())return null;B=null;var ee=S.tokenize(P,S);return(ee||B)&&ee!="comment"&&(U=null,S.state=S.state(B||ee,P,S),U&&(ee=U=="error"?ee+" error":U)),ee},indent:function(P,S,ee){var me=P.context;if(P.tokenize.isInAttribute)return P.tagStart==P.indented?P.stringStartCol+1:P.indented+I;if(me&&me.noIndent)return l.Pass;if(P.tokenize!=re&&P.tokenize!=Z)return ee?ee.match(/^(\s*)/)[0].length:0;if(P.tagName)return T.multilineTagIndentPastTag!==!1?P.tagStart+P.tagName.length+2:P.tagStart+I*(T.multilineTagIndentFactor||1);if(T.alignCDATA&&/<!\[CDATA\[/.test(S))return 0;var rt=S&&/^<(\/)?([\w_:\.-]*)/.exec(S);if(rt&&rt[1])for(;me;)if(me.tagName==rt[2]){me=me.prev;break}else if(T.implicitlyClosed.hasOwnProperty(me.tagName))me=me.prev;else break;else if(rt)for(;me;){var Lt=T.contextGrabbers[me.tagName];if(Lt&&Lt.hasOwnProperty(rt[2]))me=me.prev;else break}for(;me&&me.prev&&!me.startOfLine;)me=me.prev;return me?me.indent+I:P.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:T.htmlMode?"html":"xml",helperType:T.htmlMode?"html":"xml",skipAttribute:function(P){P.state==Qe&&(P.state=be)},xmlCurrentTag:function(P){return P.tagName?{name:P.tagName,close:P.type=="closeTag"}:null},xmlCurrentContext:function(P){for(var S=[],ee=P.context;ee;ee=ee.prev)S.push(ee.tagName);return S.reverse()}}}),l.defineMIME("text/xml","xml"),l.defineMIME("application/xml","xml"),l.mimeModes.hasOwnProperty("text/html")||l.defineMIME("text/html",{name:"xml",htmlMode:!0})})})();var H7={exports:{}};(function(s,i){(function(l){l(Ro())})(function(l){l.defineMode("javascript",function(d,c){var g=d.indentUnit,b=c.statementIndent,I=c.jsonld,T=c.json||I,k=c.trackScope!==!1,A=c.typescript,B=c.wordCharacters||/[\w$\xa1-\uffff]/,U=function(){function w(vr){return{type:vr,style:"keyword"}}var O=w("keyword a"),Q=w("keyword b"),le=w("keyword c"),Ge=w("keyword d"),dt=w("operator"),Ce={type:"atom",style:"atom"};return{if:w("if"),while:O,with:O,else:Q,do:Q,try:Q,finally:Q,return:Ge,break:Ge,continue:Ge,new:w("new"),delete:le,void:le,throw:le,debugger:w("debugger"),var:w("var"),const:w("var"),let:w("var"),function:w("function"),catch:w("catch"),for:w("for"),switch:w("switch"),case:w("case"),default:w("default"),in:dt,typeof:dt,instanceof:dt,true:Ce,false:Ce,null:Ce,undefined:Ce,NaN:Ce,Infinity:Ce,this:w("this"),class:w("class"),super:w("atom"),yield:le,export:w("export"),import:w("import"),extends:le,await:le}}(),Z=/[+\-*&%=<>!?|~^@]/,re=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function ve(w){for(var O=!1,Q,le=!1;(Q=w.next())!=null;){if(!O){if(Q=="/"&&!le)return;Q=="["?le=!0:le&&Q=="]"&&(le=!1)}O=!O&&Q=="\\"}}var ge,Me;function Te(w,O,Q){return ge=w,Me=Q,O}function pe(w,O){var Q=w.next();if(Q=='"'||Q=="'")return O.tokenize=de(Q),O.tokenize(w,O);if(Q=="."&&w.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return Te("number","number");if(Q=="."&&w.match(".."))return Te("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(Q))return Te(Q);if(Q=="="&&w.eat(">"))return Te("=>","operator");if(Q=="0"&&w.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return Te("number","number");if(/\d/.test(Q))return w.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),Te("number","number");if(Q=="/")return w.eat("*")?(O.tokenize=ke,ke(w,O)):w.eat("/")?(w.skipToEnd(),Te("comment","comment")):oe(w,O,1)?(ve(w),w.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),Te("regexp","string-2")):(w.eat("="),Te("operator","operator",w.current()));if(Q=="`")return O.tokenize=Ee,Ee(w,O);if(Q=="#"&&w.peek()=="!")return w.skipToEnd(),Te("meta","meta");if(Q=="#"&&w.eatWhile(B))return Te("variable","property");if(Q=="<"&&w.match("!--")||Q=="-"&&w.match("->")&&!/\S/.test(w.string.slice(0,w.start)))return w.skipToEnd(),Te("comment","comment");if(Z.test(Q))return(Q!=">"||!O.lexical||O.lexical.type!=">")&&(w.eat("=")?(Q=="!"||Q=="=")&&w.eat("="):/[<>*+\-|&?]/.test(Q)&&(w.eat(Q),Q==">"&&w.eat(Q))),Q=="?"&&w.eat(".")?Te("."):Te("operator","operator",w.current());if(B.test(Q)){w.eatWhile(B);var le=w.current();if(O.lastType!="."){if(U.propertyIsEnumerable(le)){var Ge=U[le];return Te(Ge.type,Ge.style,le)}if(le=="async"&&w.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return Te("async","keyword",le)}return Te("variable","variable",le)}}function de(w){return function(O,Q){var le=!1,Ge;if(I&&O.peek()=="@"&&O.match(re))return Q.tokenize=pe,Te("jsonld-keyword","meta");for(;(Ge=O.next())!=null&&!(Ge==w&&!le);)le=!le&&Ge=="\\";return le||(Q.tokenize=pe),Te("string","string")}}function ke(w,O){for(var Q=!1,le;le=w.next();){if(le=="/"&&Q){O.tokenize=pe;break}Q=le=="*"}return Te("comment","comment")}function Ee(w,O){for(var Q=!1,le;(le=w.next())!=null;){if(!Q&&(le=="`"||le=="$"&&w.eat("{"))){O.tokenize=pe;break}Q=!Q&&le=="\\"}return Te("quasi","string-2",w.current())}var Ie="([{}])";function je(w,O){O.fatArrowAt&&(O.fatArrowAt=null);var Q=w.string.indexOf("=>",w.start);if(!(Q<0)){if(A){var le=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(w.string.slice(w.start,Q));le&&(Q=le.index)}for(var Ge=0,dt=!1,Ce=Q-1;Ce>=0;--Ce){var vr=w.string.charAt(Ce),qr=Ie.indexOf(vr);if(qr>=0&&qr<3){if(!Ge){++Ce;break}if(--Ge==0){vr=="("&&(dt=!0);break}}else if(qr>=3&&qr<6)++Ge;else if(B.test(vr))dt=!0;else if(/["'\/`]/.test(vr))for(;;--Ce){if(Ce==0)return;var ii=w.string.charAt(Ce-1);if(ii==vr&&w.string.charAt(Ce-2)!="\\"){Ce--;break}}else if(dt&&!Ge){++Ce;break}}dt&&!Ge&&(O.fatArrowAt=Ce)}}var Ye={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function be(w,O,Q,le,Ge,dt){this.indented=w,this.column=O,this.type=Q,this.prev=Ge,this.info=dt,le!=null&&(this.align=le)}function ye(w,O){if(!k)return!1;for(var Q=w.localVars;Q;Q=Q.next)if(Q.name==O)return!0;for(var le=w.context;le;le=le.prev)for(var Q=le.vars;Q;Q=Q.next)if(Q.name==O)return!0}function Qe(w,O,Q,le,Ge){var dt=w.cc;for(G.state=w,G.stream=Ge,G.marked=null,G.cc=dt,G.style=O,w.lexical.hasOwnProperty("align")||(w.lexical.align=!0);;){var Ce=dt.length?dt.pop():T?We:nt;if(Ce(Q,le)){for(;dt.length&&dt[dt.length-1].lex;)dt.pop()();return G.marked?G.marked:Q=="variable"&&ye(w,le)?"variable-2":O}}}var G={state:null,column:null,marked:null,cc:null};function P(){for(var w=arguments.length-1;w>=0;w--)G.cc.push(arguments[w])}function S(){return P.apply(null,arguments),!0}function ee(w,O){for(var Q=O;Q;Q=Q.next)if(Q.name==w)return!0;return!1}function me(w){var O=G.state;if(G.marked="def",!!k){if(O.context){if(O.lexical.info=="var"&&O.context&&O.context.block){var Q=rt(w,O.context);if(Q!=null){O.context=Q;return}}else if(!ee(w,O.localVars)){O.localVars=new It(w,O.localVars);return}}c.globalVars&&!ee(w,O.globalVars)&&(O.globalVars=new It(w,O.globalVars))}}function rt(w,O){if(O)if(O.block){var Q=rt(w,O.prev);return Q?Q==O.prev?O:new Kt(Q,O.vars,!0):null}else return ee(w,O.vars)?O:new Kt(O.prev,new It(w,O.vars),!1);else return null}function Lt(w){return w=="public"||w=="private"||w=="protected"||w=="abstract"||w=="readonly"}function Kt(w,O,Q){this.prev=w,this.vars=O,this.block=Q}function It(w,O){this.name=w,this.next=O}var Xr=new It("this",new It("arguments",null));function Ut(){G.state.context=new Kt(G.state.context,G.state.localVars,!1),G.state.localVars=Xr}function At(){G.state.context=new Kt(G.state.context,G.state.localVars,!0),G.state.localVars=null}function at(){G.state.localVars=G.state.context.vars,G.state.context=G.state.context.prev}at.lex=!0;function _e(w,O){var Q=function(){var le=G.state,Ge=le.indented;if(le.lexical.type=="stat")Ge=le.lexical.indented;else for(var dt=le.lexical;dt&&dt.type==")"&&dt.align;dt=dt.prev)Ge=dt.indented;le.lexical=new be(Ge,G.stream.column(),w,null,le.lexical,O)};return Q.lex=!0,Q}function Fe(){var w=G.state;w.lexical.prev&&(w.lexical.type==")"&&(w.indented=w.lexical.indented),w.lexical=w.lexical.prev)}Fe.lex=!0;function Ue(w){function O(Q){return Q==w?S():w==";"||Q=="}"||Q==")"||Q=="]"?P():S(O)}return O}function nt(w,O){return w=="var"?S(_e("vardef",O),Sa,Ue(";"),Fe):w=="keyword a"?S(_e("form"),$r,nt,Fe):w=="keyword b"?S(_e("form"),nt,Fe):w=="keyword d"?G.stream.match(/^\s*$/,!1)?S():S(_e("stat"),Ke,Ue(";"),Fe):w=="debugger"?S(Ue(";")):w=="{"?S(_e("}"),At,_r,Fe,at):w==";"?S():w=="if"?(G.state.lexical.info=="else"&&G.state.cc[G.state.cc.length-1]==Fe&&G.state.cc.pop()(),S(_e("form"),$r,nt,Fe,xl)):w=="function"?S(cn):w=="for"?S(_e("form"),At,zl,nt,at,Fe):w=="class"||A&&O=="interface"?(G.marked="keyword",S(_e("form",w=="class"?w:O),Bo,Fe)):w=="variable"?A&&O=="declare"?(G.marked="keyword",S(nt)):A&&(O=="module"||O=="enum"||O=="type")&&G.stream.match(/^\s*\w/,!1)?(G.marked="keyword",O=="enum"?S(On):O=="type"?S(Ll,Ue("operator"),Ze,Ue(";")):S(_e("form"),Rr,Ue("{"),_e("}"),_r,Fe,Fe)):A&&O=="namespace"?(G.marked="keyword",S(_e("form"),We,nt,Fe)):A&&O=="abstract"?(G.marked="keyword",S(nt)):S(_e("stat"),Xe):w=="switch"?S(_e("form"),$r,Ue("{"),_e("}","switch"),At,_r,Fe,Fe,at):w=="case"?S(We,Ue(":")):w=="default"?S(Ue(":")):w=="catch"?S(_e("form"),Ut,it,nt,Fe,at):w=="export"?S(_e("stat"),ka,Fe):w=="import"?S(_e("stat"),$t,Fe):w=="async"?S(nt):O=="@"?S(We,nt):P(_e("stat"),We,Ue(";"),Fe)}function it(w){if(w=="(")return S(ni,Ue(")"))}function We(w,O){return Yt(w,O,!1)}function Nt(w,O){return Yt(w,O,!0)}function $r(w){return w!="("?P():S(_e(")"),Ke,Ue(")"),Fe)}function Yt(w,O,Q){if(G.state.fatArrowAt==G.stream.start){var le=Q?et:er;if(w=="(")return S(Ut,_e(")"),Rt(ni,")"),Fe,Ue("=>"),le,at);if(w=="variable")return P(Ut,Rr,Ue("=>"),le,at)}var Ge=Q?wt:ht;return Ye.hasOwnProperty(w)?S(Ge):w=="function"?S(cn,Ge):w=="class"||A&&O=="interface"?(G.marked="keyword",S(_e("form"),lo,Fe)):w=="keyword c"||w=="async"?S(Q?Nt:We):w=="("?S(_e(")"),Ke,Ue(")"),Fe,Ge):w=="operator"||w=="spread"?S(Q?Nt:We):w=="["?S(_e("]"),bt,Fe,Ge):w=="{"?ri(pr,"}",null,Ge):w=="quasi"?P(Lr,Ge):w=="new"?S(W(Q)):S()}function Ke(w){return w.match(/[;\}\)\],]/)?P():P(We)}function ht(w,O){return w==","?S(Ke):wt(w,O,!1)}function wt(w,O,Q){var le=Q==!1?ht:wt,Ge=Q==!1?We:Nt;if(w=="=>")return S(Ut,Q?et:er,at);if(w=="operator")return/\+\+|--/.test(O)||A&&O=="!"?S(le):A&&O=="<"&&G.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?S(_e(">"),Rt(Ze,">"),Fe,le):O=="?"?S(We,Ue(":"),Ge):S(Ge);if(w=="quasi")return P(Lr,le);if(w!=";"){if(w=="(")return ri(Nt,")","call",le);if(w==".")return S(tr,le);if(w=="[")return S(_e("]"),Ke,Ue("]"),Fe,le);if(A&&O=="as")return G.marked="keyword",S(Ze,le);if(w=="regexp")return G.state.lastType=G.marked="operator",G.stream.backUp(G.stream.pos-G.stream.start-1),S(Ge)}}function Lr(w,O){return w!="quasi"?P():O.slice(O.length-2)!="${"?S(Lr):S(Ke,Gr)}function Gr(w){if(w=="}")return G.marked="string-2",G.state.tokenize=Ee,S(Lr)}function er(w){return je(G.stream,G.state),P(w=="{"?nt:We)}function et(w){return je(G.stream,G.state),P(w=="{"?nt:Nt)}function W(w){return function(O){return O=="."?S(w?j:ae):O=="variable"&&A?S(io,w?wt:ht):P(w?Nt:We)}}function ae(w,O){if(O=="target")return G.marked="keyword",S(ht)}function j(w,O){if(O=="target")return G.marked="keyword",S(wt)}function Xe(w){return w==":"?S(Fe,nt):P(ht,Ue(";"),Fe)}function tr(w){if(w=="variable")return G.marked="property",S()}function pr(w,O){if(w=="async")return G.marked="property",S(pr);if(w=="variable"||G.style=="keyword"){if(G.marked="property",O=="get"||O=="set")return S(Ln);var Q;return A&&G.state.fatArrowAt==G.stream.start&&(Q=G.stream.match(/^\s*:\s*/,!1))&&(G.state.fatArrowAt=G.stream.pos+Q[0].length),S(Dr)}else{if(w=="number"||w=="string")return G.marked=I?"property":G.style+" property",S(Dr);if(w=="jsonld-keyword")return S(Dr);if(A&&Lt(O))return G.marked="keyword",S(pr);if(w=="[")return S(We,_n,Ue("]"),Dr);if(w=="spread")return S(Nt,Dr);if(O=="*")return G.marked="keyword",S(pr);if(w==":")return P(Dr)}}function Ln(w){return w!="variable"?P(Dr):(G.marked="property",S(cn))}function Dr(w){if(w==":")return S(Nt);if(w=="(")return P(cn)}function Rt(w,O,Q){function le(Ge,dt){if(Q?Q.indexOf(Ge)>-1:Ge==","){var Ce=G.state.lexical;return Ce.info=="call"&&(Ce.pos=(Ce.pos||0)+1),S(function(vr,qr){return vr==O||qr==O?P():P(w)},le)}return Ge==O||dt==O?S():Q&&Q.indexOf(";")>-1?P(w):S(Ue(O))}return function(Ge,dt){return Ge==O||dt==O?S():P(w,le)}}function ri(w,O,Q){for(var le=3;le<arguments.length;le++)G.cc.push(arguments[le]);return S(_e(O,Q),Rt(w,O),Fe)}function _r(w){return w=="}"?S():P(nt,_r)}function _n(w,O){if(A){if(w==":")return S(Ze);if(O=="?")return S(_n)}}function Ne(w,O){if(A&&(w==":"||O=="in"))return S(Ze)}function Li(w){if(A&&w==":")return G.stream.match(/^\s*\w+\s+is\b/,!1)?S(We,gr,Ze):S(Ze)}function gr(w,O){if(O=="is")return G.marked="keyword",S()}function Ze(w,O){if(O=="keyof"||O=="typeof"||O=="infer"||O=="readonly")return G.marked="keyword",S(O=="typeof"?Nt:Ze);if(w=="variable"||O=="void")return G.marked="type",S(Qr);if(O=="|"||O=="&")return S(Ze);if(w=="string"||w=="number"||w=="atom")return S(Qr);if(w=="[")return S(_e("]"),Rt(Ze,"]",","),Fe,Qr);if(w=="{")return S(_e("}"),No,Fe,Qr);if(w=="(")return S(Rt(Ho,")"),Vt,Qr);if(w=="<")return S(Rt(Ze,">"),Ze);if(w=="quasi")return P(Sn,Qr)}function Vt(w){if(w=="=>")return S(Ze)}function No(w){return w.match(/[\}\)\]]/)?S():w==","||w==";"?S(No):P(sr,No)}function sr(w,O){if(w=="variable"||G.style=="keyword")return G.marked="property",S(sr);if(O=="?"||w=="number"||w=="string")return S(sr);if(w==":")return S(Ze);if(w=="[")return S(Ue("variable"),Ne,Ue("]"),sr);if(w=="(")return P(Jr,sr);if(!w.match(/[;\}\)\],]/))return S()}function Sn(w,O){return w!="quasi"?P():O.slice(O.length-2)!="${"?S(Sn):S(Ze,ur)}function ur(w){if(w=="}")return G.marked="string-2",G.state.tokenize=Ee,S(Sn)}function Ho(w,O){return w=="variable"&&G.stream.match(/^\s*[?:]/,!1)||O=="?"?S(Ho):w==":"?S(Ze):w=="spread"?S(Ho):P(Ze)}function Qr(w,O){if(O=="<")return S(_e(">"),Rt(Ze,">"),Fe,Qr);if(O=="|"||w=="."||O=="&")return S(Ze);if(w=="[")return S(Ze,Ue("]"),Qr);if(O=="extends"||O=="implements")return G.marked="keyword",S(Ze);if(O=="?")return S(Ze,Ue(":"),Ze)}function io(w,O){if(O=="<")return S(_e(">"),Rt(Ze,">"),Fe,Qr)}function _i(){return P(Ze,_a)}function _a(w,O){if(O=="=")return S(Ze)}function Sa(w,O){return O=="enum"?(G.marked="keyword",S(On)):P(Rr,_n,Hn,ao)}function Rr(w,O){if(A&&Lt(O))return G.marked="keyword",S(Rr);if(w=="variable")return me(O),S();if(w=="spread")return S(Rr);if(w=="[")return ri(oo,"]");if(w=="{")return ri(wl,"}")}function wl(w,O){return w=="variable"&&!G.stream.match(/^\s*:/,!1)?(me(O),S(Hn)):(w=="variable"&&(G.marked="property"),w=="spread"?S(Rr):w=="}"?P():w=="["?S(We,Ue("]"),Ue(":"),wl):S(Ue(":"),Rr,Hn))}function oo(){return P(Rr,Hn)}function Hn(w,O){if(O=="=")return S(Nt)}function ao(w){if(w==",")return S(Sa)}function xl(w,O){if(w=="keyword b"&&O=="else")return S(_e("form","else"),nt,Fe)}function zl(w,O){if(O=="await")return S(zl);if(w=="(")return S(_e(")"),Ma,Fe)}function Ma(w){return w=="var"?S(Sa,Si):w=="variable"?S(Si):P(Si)}function Si(w,O){return w==")"?S():w==";"?S(Si):O=="in"||O=="of"?(G.marked="keyword",S(We,Si)):P(We,Si)}function cn(w,O){if(O=="*")return G.marked="keyword",S(cn);if(w=="variable")return me(O),S(cn);if(w=="(")return S(Ut,_e(")"),Rt(ni,")"),Fe,Li,nt,at);if(A&&O=="<")return S(_e(">"),Rt(_i,">"),Fe,cn)}function Jr(w,O){if(O=="*")return G.marked="keyword",S(Jr);if(w=="variable")return me(O),S(Jr);if(w=="(")return S(Ut,_e(")"),Rt(ni,")"),Fe,Li,at);if(A&&O=="<")return S(_e(">"),Rt(_i,">"),Fe,Jr)}function Ll(w,O){if(w=="keyword"||w=="variable")return G.marked="type",S(Ll);if(O=="<")return S(_e(">"),Rt(_i,">"),Fe)}function ni(w,O){return O=="@"&&S(We,ni),w=="spread"?S(ni):A&&Lt(O)?(G.marked="keyword",S(ni)):A&&w=="this"?S(_n,Hn):P(Rr,_n,Hn)}function lo(w,O){return w=="variable"?Bo(w,O):Mn(w,O)}function Bo(w,O){if(w=="variable")return me(O),S(Mn)}function Mn(w,O){if(O=="<")return S(_e(">"),Rt(_i,">"),Fe,Mn);if(O=="extends"||O=="implements"||A&&w==",")return O=="implements"&&(G.marked="keyword"),S(A?Ze:We,Mn);if(w=="{")return S(_e("}"),kn,Fe)}function kn(w,O){if(w=="async"||w=="variable"&&(O=="static"||O=="get"||O=="set"||A&&Lt(O))&&G.stream.match(/^\s+[\w$\xa1-\uffff]/,!1))return G.marked="keyword",S(kn);if(w=="variable"||G.style=="keyword")return G.marked="property",S(en,kn);if(w=="number"||w=="string")return S(en,kn);if(w=="[")return S(We,_n,Ue("]"),en,kn);if(O=="*")return G.marked="keyword",S(kn);if(A&&w=="(")return P(Jr,kn);if(w==";"||w==",")return S(kn);if(w=="}")return S();if(O=="@")return S(We,kn)}function en(w,O){if(O=="!"||O=="?")return S(en);if(w==":")return S(Ze,Hn);if(O=="=")return S(Nt);var Q=G.state.lexical.prev,le=Q&&Q.info=="interface";return P(le?Jr:cn)}function ka(w,O){return O=="*"?(G.marked="keyword",S(Vr,Ue(";"))):O=="default"?(G.marked="keyword",S(We,Ue(";"))):w=="{"?S(Rt(Oa,"}"),Vr,Ue(";")):P(nt)}function Oa(w,O){if(O=="as")return G.marked="keyword",S(Ue("variable"));if(w=="variable")return P(Nt,Oa)}function $t(w){return w=="string"?S():w=="("?P(We):w=="."?P(ht):P(Oe,tn,Vr)}function Oe(w,O){return w=="{"?ri(Oe,"}"):(w=="variable"&&me(O),O=="*"&&(G.marked="keyword"),S(Ta))}function tn(w){if(w==",")return S(Oe,tn)}function Ta(w,O){if(O=="as")return G.marked="keyword",S(Oe)}function Vr(w,O){if(O=="from")return G.marked="keyword",S(We)}function bt(w){return w=="]"?S():P(Rt(Nt,"]"))}function On(){return P(_e("form"),Rr,Ue("{"),_e("}"),Rt(Mi,"}"),Fe,Fe)}function Mi(){return P(Rr,Hn)}function Fo(w,O){return w.lastType=="operator"||w.lastType==","||Z.test(O.charAt(0))||/[,.]/.test(O.charAt(0))}function oe(w,O,Q){return O.tokenize==pe&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(O.lastType)||O.lastType=="quasi"&&/\{\s*$/.test(w.string.slice(0,w.pos-(Q||0)))}return{startState:function(w){var O={tokenize:pe,lastType:"sof",cc:[],lexical:new be((w||0)-g,0,"block",!1),localVars:c.localVars,context:c.localVars&&new Kt(null,null,!1),indented:w||0};return c.globalVars&&typeof c.globalVars=="object"&&(O.globalVars=c.globalVars),O},token:function(w,O){if(w.sol()&&(O.lexical.hasOwnProperty("align")||(O.lexical.align=!1),O.indented=w.indentation(),je(w,O)),O.tokenize!=ke&&w.eatSpace())return null;var Q=O.tokenize(w,O);return ge=="comment"?Q:(O.lastType=ge=="operator"&&(Me=="++"||Me=="--")?"incdec":ge,Qe(O,Q,ge,Me,w))},indent:function(w,O){if(w.tokenize==ke||w.tokenize==Ee)return l.Pass;if(w.tokenize!=pe)return 0;var Q=O&&O.charAt(0),le=w.lexical,Ge;if(!/^\s*else\b/.test(O))for(var dt=w.cc.length-1;dt>=0;--dt){var Ce=w.cc[dt];if(Ce==Fe)le=le.prev;else if(Ce!=xl&&Ce!=at)break}for(;(le.type=="stat"||le.type=="form")&&(Q=="}"||(Ge=w.cc[w.cc.length-1])&&(Ge==ht||Ge==wt)&&!/^[,\.=+\-*:?[\(]/.test(O));)le=le.prev;b&&le.type==")"&&le.prev.type=="stat"&&(le=le.prev);var vr=le.type,qr=Q==vr;return vr=="vardef"?le.indented+(w.lastType=="operator"||w.lastType==","?le.info.length+1:0):vr=="form"&&Q=="{"?le.indented:vr=="form"?le.indented+g:vr=="stat"?le.indented+(Fo(w,O)?b||g:0):le.info=="switch"&&!qr&&c.doubleIndentSwitch!=!1?le.indented+(/^(?:case|default)\b/.test(O)?g:2*g):le.align?le.column+(qr?0:1):le.indented+(qr?0:g)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:T?null:"/*",blockCommentEnd:T?null:"*/",blockCommentContinue:T?null:" * ",lineComment:T?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:T?"json":"javascript",jsonldMode:I,jsonMode:T,expressionAllowed:oe,skipExpression:function(w){Qe(w,"atom","atom","true",new l.StringStream("",2,null))}}}),l.registerHelper("wordChars","javascript",/[\w$]/),l.defineMIME("text/javascript","javascript"),l.defineMIME("text/ecmascript","javascript"),l.defineMIME("application/javascript","javascript"),l.defineMIME("application/x-javascript","javascript"),l.defineMIME("application/ecmascript","javascript"),l.defineMIME("application/json",{name:"javascript",json:!0}),l.defineMIME("application/x-json",{name:"javascript",json:!0}),l.defineMIME("application/manifest+json",{name:"javascript",json:!0}),l.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),l.defineMIME("text/typescript",{name:"javascript",typescript:!0}),l.defineMIME("application/typescript",{name:"javascript",typescript:!0})})})();var ah={exports:{}},lh;function B7(){return lh||(lh=1,function(s,i){(function(l){l(Ro())})(function(l){l.defineMode("css",function(be,ye){var Qe=ye.inline;ye.propertyKeywords||(ye=l.resolveMode("text/css"));var G=be.indentUnit,P=ye.tokenHooks,S=ye.documentTypes||{},ee=ye.mediaTypes||{},me=ye.mediaFeatures||{},rt=ye.mediaValueKeywords||{},Lt=ye.propertyKeywords||{},Kt=ye.nonStandardPropertyKeywords||{},It=ye.fontProperties||{},Xr=ye.counterDescriptors||{},Ut=ye.colorKeywords||{},At=ye.valueKeywords||{},at=ye.allowNested,_e=ye.lineComment,Fe=ye.supportsAtComponent===!0,Ue=be.highlightNonStandardPropertyKeywords!==!1,nt,it;function We(W,ae){return nt=ae,W}function Nt(W,ae){var j=W.next();if(P[j]){var Xe=P[j](W,ae);if(Xe!==!1)return Xe}if(j=="@")return W.eatWhile(/[\w\\\-]/),We("def",W.current());if(j=="="||(j=="~"||j=="|")&&W.eat("="))return We(null,"compare");if(j=='"'||j=="'")return ae.tokenize=$r(j),ae.tokenize(W,ae);if(j=="#")return W.eatWhile(/[\w\\\-]/),We("atom","hash");if(j=="!")return W.match(/^\s*\w*/),We("keyword","important");if(/\d/.test(j)||j=="."&&W.eat(/\d/))return W.eatWhile(/[\w.%]/),We("number","unit");if(j==="-"){if(/[\d.]/.test(W.peek()))return W.eatWhile(/[\w.%]/),We("number","unit");if(W.match(/^-[\w\\\-]*/))return W.eatWhile(/[\w\\\-]/),W.match(/^\s*:/,!1)?We("variable-2","variable-definition"):We("variable-2","variable");if(W.match(/^\w+-/))return We("meta","meta")}else return/[,+>*\/]/.test(j)?We(null,"select-op"):j=="."&&W.match(/^-?[_a-z][_a-z0-9-]*/i)?We("qualifier","qualifier"):/[:;{}\[\]\(\)]/.test(j)?We(null,j):W.match(/^[\w-.]+(?=\()/)?(/^(url(-prefix)?|domain|regexp)$/i.test(W.current())&&(ae.tokenize=Yt),We("variable callee","variable")):/[\w\\\-]/.test(j)?(W.eatWhile(/[\w\\\-]/),We("property","word")):We(null,null)}function $r(W){return function(ae,j){for(var Xe=!1,tr;(tr=ae.next())!=null;){if(tr==W&&!Xe){W==")"&&ae.backUp(1);break}Xe=!Xe&&tr=="\\"}return(tr==W||!Xe&&W!=")")&&(j.tokenize=null),We("string","string")}}function Yt(W,ae){return W.next(),W.match(/^\s*[\"\')]/,!1)?ae.tokenize=null:ae.tokenize=$r(")"),We(null,"(")}function Ke(W,ae,j){this.type=W,this.indent=ae,this.prev=j}function ht(W,ae,j,Xe){return W.context=new Ke(j,ae.indentation()+(Xe===!1?0:G),W.context),j}function wt(W){return W.context.prev&&(W.context=W.context.prev),W.context.type}function Lr(W,ae,j){return et[j.context.type](W,ae,j)}function Gr(W,ae,j,Xe){for(var tr=Xe||1;tr>0;tr--)j.context=j.context.prev;return Lr(W,ae,j)}function er(W){var ae=W.current().toLowerCase();At.hasOwnProperty(ae)?it="atom":Ut.hasOwnProperty(ae)?it="keyword":it="variable"}var et={};return et.top=function(W,ae,j){if(W=="{")return ht(j,ae,"block");if(W=="}"&&j.context.prev)return wt(j);if(Fe&&/@component/i.test(W))return ht(j,ae,"atComponentBlock");if(/^@(-moz-)?document$/i.test(W))return ht(j,ae,"documentTypes");if(/^@(media|supports|(-moz-)?document|import)$/i.test(W))return ht(j,ae,"atBlock");if(/^@(font-face|counter-style)/i.test(W))return j.stateArg=W,"restricted_atBlock_before";if(/^@(-(moz|ms|o|webkit)-)?keyframes$/i.test(W))return"keyframes";if(W&&W.charAt(0)=="@")return ht(j,ae,"at");if(W=="hash")it="builtin";else if(W=="word")it="tag";else{if(W=="variable-definition")return"maybeprop";if(W=="interpolation")return ht(j,ae,"interpolation");if(W==":")return"pseudo";if(at&&W=="(")return ht(j,ae,"parens")}return j.context.type},et.block=function(W,ae,j){if(W=="word"){var Xe=ae.current().toLowerCase();return Lt.hasOwnProperty(Xe)?(it="property","maybeprop"):Kt.hasOwnProperty(Xe)?(it=Ue?"string-2":"property","maybeprop"):at?(it=ae.match(/^\s*:(?:\s|$)/,!1)?"property":"tag","block"):(it+=" error","maybeprop")}else return W=="meta"?"block":!at&&(W=="hash"||W=="qualifier")?(it="error","block"):et.top(W,ae,j)},et.maybeprop=function(W,ae,j){return W==":"?ht(j,ae,"prop"):Lr(W,ae,j)},et.prop=function(W,ae,j){if(W==";")return wt(j);if(W=="{"&&at)return ht(j,ae,"propBlock");if(W=="}"||W=="{")return Gr(W,ae,j);if(W=="(")return ht(j,ae,"parens");if(W=="hash"&&!/^#([0-9a-fA-f]{3,4}|[0-9a-fA-f]{6}|[0-9a-fA-f]{8})$/.test(ae.current()))it+=" error";else if(W=="word")er(ae);else if(W=="interpolation")return ht(j,ae,"interpolation");return"prop"},et.propBlock=function(W,ae,j){return W=="}"?wt(j):W=="word"?(it="property","maybeprop"):j.context.type},et.parens=function(W,ae,j){return W=="{"||W=="}"?Gr(W,ae,j):W==")"?wt(j):W=="("?ht(j,ae,"parens"):W=="interpolation"?ht(j,ae,"interpolation"):(W=="word"&&er(ae),"parens")},et.pseudo=function(W,ae,j){return W=="meta"?"pseudo":W=="word"?(it="variable-3",j.context.type):Lr(W,ae,j)},et.documentTypes=function(W,ae,j){return W=="word"&&S.hasOwnProperty(ae.current())?(it="tag",j.context.type):et.atBlock(W,ae,j)},et.atBlock=function(W,ae,j){if(W=="(")return ht(j,ae,"atBlock_parens");if(W=="}"||W==";")return Gr(W,ae,j);if(W=="{")return wt(j)&&ht(j,ae,at?"block":"top");if(W=="interpolation")return ht(j,ae,"interpolation");if(W=="word"){var Xe=ae.current().toLowerCase();Xe=="only"||Xe=="not"||Xe=="and"||Xe=="or"?it="keyword":ee.hasOwnProperty(Xe)?it="attribute":me.hasOwnProperty(Xe)?it="property":rt.hasOwnProperty(Xe)?it="keyword":Lt.hasOwnProperty(Xe)?it="property":Kt.hasOwnProperty(Xe)?it=Ue?"string-2":"property":At.hasOwnProperty(Xe)?it="atom":Ut.hasOwnProperty(Xe)?it="keyword":it="error"}return j.context.type},et.atComponentBlock=function(W,ae,j){return W=="}"?Gr(W,ae,j):W=="{"?wt(j)&&ht(j,ae,at?"block":"top",!1):(W=="word"&&(it="error"),j.context.type)},et.atBlock_parens=function(W,ae,j){return W==")"?wt(j):W=="{"||W=="}"?Gr(W,ae,j,2):et.atBlock(W,ae,j)},et.restricted_atBlock_before=function(W,ae,j){return W=="{"?ht(j,ae,"restricted_atBlock"):W=="word"&&j.stateArg=="@counter-style"?(it="variable","restricted_atBlock_before"):Lr(W,ae,j)},et.restricted_atBlock=function(W,ae,j){return W=="}"?(j.stateArg=null,wt(j)):W=="word"?(j.stateArg=="@font-face"&&!It.hasOwnProperty(ae.current().toLowerCase())||j.stateArg=="@counter-style"&&!Xr.hasOwnProperty(ae.current().toLowerCase())?it="error":it="property","maybeprop"):"restricted_atBlock"},et.keyframes=function(W,ae,j){return W=="word"?(it="variable","keyframes"):W=="{"?ht(j,ae,"top"):Lr(W,ae,j)},et.at=function(W,ae,j){return W==";"?wt(j):W=="{"||W=="}"?Gr(W,ae,j):(W=="word"?it="tag":W=="hash"&&(it="builtin"),"at")},et.interpolation=function(W,ae,j){return W=="}"?wt(j):W=="{"||W==";"?Gr(W,ae,j):(W=="word"?it="variable":W!="variable"&&W!="("&&W!=")"&&(it="error"),"interpolation")},{startState:function(W){return{tokenize:null,state:Qe?"block":"top",stateArg:null,context:new Ke(Qe?"block":"top",W||0,null)}},token:function(W,ae){if(!ae.tokenize&&W.eatSpace())return null;var j=(ae.tokenize||Nt)(W,ae);return j&&typeof j=="object"&&(nt=j[1],j=j[0]),it=j,nt!="comment"&&(ae.state=et[ae.state](nt,W,ae)),it},indent:function(W,ae){var j=W.context,Xe=ae&&ae.charAt(0),tr=j.indent;return j.type=="prop"&&(Xe=="}"||Xe==")")&&(j=j.prev),j.prev&&(Xe=="}"&&(j.type=="block"||j.type=="top"||j.type=="interpolation"||j.type=="restricted_atBlock")?(j=j.prev,tr=j.indent):(Xe==")"&&(j.type=="parens"||j.type=="atBlock_parens")||Xe=="{"&&(j.type=="at"||j.type=="atBlock"))&&(tr=Math.max(0,j.indent-G))),tr},electricChars:"}",blockCommentStart:"/*",blockCommentEnd:"*/",blockCommentContinue:" * ",lineComment:_e,fold:"brace"}});function d(be){for(var ye={},Qe=0;Qe<be.length;++Qe)ye[be[Qe].toLowerCase()]=!0;return ye}var c=["domain","regexp","url","url-prefix"],g=d(c),b=["all","aural","braille","handheld","print","projection","screen","tty","tv","embossed"],I=d(b),T=["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"],k=d(T),A=["landscape","portrait","none","coarse","fine","on-demand","hover","interlace","progressive","dark","light"],B=d(A),U=["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"],Z=d(U),re=["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"],ve=d(re),ge=["font-display","font-family","src","unicode-range","font-variant","font-feature-settings","font-stretch","font-weight","font-style"],Me=d(ge),Te=["additive-symbols","fallback","negative","pad","prefix","range","speak-as","suffix","symbols","system"],pe=d(Te),de=["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"],ke=d(de),Ee=["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"],Ie=d(Ee),je=c.concat(b).concat(T).concat(A).concat(U).concat(re).concat(de).concat(Ee);l.registerHelper("hintWords","css",je);function Ye(be,ye){for(var Qe=!1,G;(G=be.next())!=null;){if(Qe&&G=="/"){ye.tokenize=null;break}Qe=G=="*"}return["comment","comment"]}l.defineMIME("text/css",{documentTypes:g,mediaTypes:I,mediaFeatures:k,mediaValueKeywords:B,propertyKeywords:Z,nonStandardPropertyKeywords:ve,fontProperties:Me,counterDescriptors:pe,colorKeywords:ke,valueKeywords:Ie,tokenHooks:{"/":function(be,ye){return be.eat("*")?(ye.tokenize=Ye,Ye(be,ye)):!1}},name:"css"}),l.defineMIME("text/x-scss",{mediaTypes:I,mediaFeatures:k,mediaValueKeywords:B,propertyKeywords:Z,nonStandardPropertyKeywords:ve,colorKeywords:ke,valueKeywords:Ie,fontProperties:Me,allowNested:!0,lineComment:"//",tokenHooks:{"/":function(be,ye){return be.eat("/")?(be.skipToEnd(),["comment","comment"]):be.eat("*")?(ye.tokenize=Ye,Ye(be,ye)):["operator","operator"]},":":function(be){return be.match(/^\s*\{/,!1)?[null,null]:!1},$:function(be){return be.match(/^[\w-]+/),be.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2","variable"]},"#":function(be){return be.eat("{")?[null,"interpolation"]:!1}},name:"css",helperType:"scss"}),l.defineMIME("text/x-less",{mediaTypes:I,mediaFeatures:k,mediaValueKeywords:B,propertyKeywords:Z,nonStandardPropertyKeywords:ve,colorKeywords:ke,valueKeywords:Ie,fontProperties:Me,allowNested:!0,lineComment:"//",tokenHooks:{"/":function(be,ye){return be.eat("/")?(be.skipToEnd(),["comment","comment"]):be.eat("*")?(ye.tokenize=Ye,Ye(be,ye)):["operator","operator"]},"@":function(be){return be.eat("{")?[null,"interpolation"]:be.match(/^(charset|document|font-face|import|(-(moz|ms|o|webkit)-)?keyframes|media|namespace|page|supports)\b/i,!1)?!1:(be.eatWhile(/[\w\\\-]/),be.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2","variable"])},"&":function(){return["atom","atom"]}},name:"css",helperType:"less"}),l.defineMIME("text/x-gss",{documentTypes:g,mediaTypes:I,mediaFeatures:k,propertyKeywords:Z,nonStandardPropertyKeywords:ve,fontProperties:Me,counterDescriptors:pe,colorKeywords:ke,valueKeywords:Ie,supportsAtComponent:!0,tokenHooks:{"/":function(be,ye){return be.eat("*")?(ye.tokenize=Ye,Ye(be,ye)):!1}},name:"css",helperType:"gss"})})}()),ah.exports}(function(s,i){(function(l){l(Ro(),N7.exports,H7.exports,B7())})(function(l){var d={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 c(B,U,Z){var re=B.current(),ve=re.search(U);return ve>-1?B.backUp(re.length-ve):re.match(/<\/?$/)&&(B.backUp(re.length),B.match(U,!1)||B.match(re)),Z}var g={};function b(B){var U=g[B];return U||(g[B]=new RegExp("\\s+"+B+`\\s*=\\s*('|")?([^'"]+)('|")?\\s*`))}function I(B,U){var Z=B.match(b(U));return Z?/^\s*(.*?)\s*$/.exec(Z[2])[1]:""}function T(B,U){return new RegExp((U?"^":"")+"</s*"+B+"s*>","i")}function k(B,U){for(var Z in B)for(var re=U[Z]||(U[Z]=[]),ve=B[Z],ge=ve.length-1;ge>=0;ge--)re.unshift(ve[ge])}function A(B,U){for(var Z=0;Z<B.length;Z++){var re=B[Z];if(!re[0]||re[1].test(I(U,re[0])))return re[2]}}l.defineMode("htmlmixed",function(B,U){var Z=l.getMode(B,{name:"xml",htmlMode:!0,multilineTagIndentFactor:U.multilineTagIndentFactor,multilineTagIndentPastTag:U.multilineTagIndentPastTag,allowMissingTagName:U.allowMissingTagName}),re={},ve=U&&U.tags,ge=U&&U.scriptTypes;if(k(d,re),ve&&k(ve,re),ge)for(var Me=ge.length-1;Me>=0;Me--)re.script.unshift(["type",ge[Me].matches,ge[Me].mode]);function Te(pe,de){var ke=Z.token(pe,de.htmlState),Ee=/\btag\b/.test(ke),Ie;if(Ee&&!/[<>\s\/]/.test(pe.current())&&(Ie=de.htmlState.tagName&&de.htmlState.tagName.toLowerCase())&&re.hasOwnProperty(Ie))de.inTag=Ie+" ";else if(de.inTag&&Ee&&/>$/.test(pe.current())){var je=/^([\S]+) (.*)/.exec(de.inTag);de.inTag=null;var Ye=pe.current()==">"&&A(re[je[1]],je[2]),be=l.getMode(B,Ye),ye=T(je[1],!0),Qe=T(je[1],!1);de.token=function(G,P){return G.match(ye,!1)?(P.token=Te,P.localState=P.localMode=null,null):c(G,Qe,P.localMode.token(G,P.localState))},de.localMode=be,de.localState=l.startState(be,Z.indent(de.htmlState,"",""))}else de.inTag&&(de.inTag+=pe.current(),pe.eol()&&(de.inTag+=" "));return ke}return{startState:function(){var pe=l.startState(Z);return{token:Te,inTag:null,localMode:null,localState:null,htmlState:pe}},copyState:function(pe){var de;return pe.localState&&(de=l.copyState(pe.localMode,pe.localState)),{token:pe.token,inTag:pe.inTag,localMode:pe.localMode,localState:de,htmlState:l.copyState(Z,pe.htmlState)}},token:function(pe,de){return de.token(pe,de)},indent:function(pe,de,ke){return!pe.localMode||/^\s*<\//.test(de)?Z.indent(pe.htmlState,de,ke):pe.localMode.indent?pe.localMode.indent(pe.localState,de,ke):l.Pass},innerMode:function(pe){return{state:pe.localState||pe.htmlState,mode:pe.localMode||Z}}}},"xml","javascript","css"),l.defineMIME("text/html","htmlmixed")})})();(function(s,i){(function(l){l(Ro())})(function(l){l.defineMode("solr",function(){var d=/[^\s\|\!\+\-\*\?\~\^\&\:\(\)\[\]\{\}\"\\]/,c=/[\|\!\+\-\*\?\~\^\&]/,g=/^(OR|AND|NOT|TO)$/i;function b(B){return parseFloat(B).toString()===B}function I(B){return function(U,Z){for(var re=!1,ve;(ve=U.next())!=null&&!(ve==B&&!re);)re=!re&&ve=="\\";return re||(Z.tokenize=A),"string"}}function T(B){return function(U,Z){var re="operator";return B=="+"?re+=" positive":B=="-"?re+=" negative":B=="|"?U.eat(/\|/):B=="&"?U.eat(/\&/):B=="^"&&(re+=" boost"),Z.tokenize=A,re}}function k(B){return function(U,Z){for(var re=B;(B=U.peek())&&B.match(d)!=null;)re+=U.next();return Z.tokenize=A,g.test(re)?"operator":b(re)?"number":U.peek()==":"?"field":"string"}}function A(B,U){var Z=B.next();return Z=='"'?U.tokenize=I(Z):c.test(Z)?U.tokenize=T(Z):d.test(Z)&&(U.tokenize=k(Z)),U.tokenize!=A?U.tokenize(B,U):null}return{startState:function(){return{tokenize:A}},token:function(B,U){return B.eatSpace()?null:U.tokenize(B,U)}}}),l.defineMIME("text/x-solr","solr")})})();(function(s,i){(function(l){l(Ro())})(function(l){l.defineOption("placeholder","",function(k,A,B){var U=B&&B!=l.Init;if(A&&!U)k.on("blur",b),k.on("change",I),k.on("swapDoc",I),l.on(k.getInputField(),"compositionupdate",k.state.placeholderCompose=function(){g(k)}),I(k);else if(!A&&U){k.off("blur",b),k.off("change",I),k.off("swapDoc",I),l.off(k.getInputField(),"compositionupdate",k.state.placeholderCompose),d(k);var Z=k.getWrapperElement();Z.className=Z.className.replace(" CodeMirror-empty","")}A&&!k.hasFocus()&&b(k)});function d(k){k.state.placeholder&&(k.state.placeholder.parentNode.removeChild(k.state.placeholder),k.state.placeholder=null)}function c(k){d(k);var A=k.state.placeholder=document.createElement("pre");A.style.cssText="height: 0; overflow: visible",A.style.direction=k.getOption("direction"),A.className="CodeMirror-placeholder CodeMirror-line-like";var B=k.getOption("placeholder");typeof B=="string"&&(B=document.createTextNode(B)),A.appendChild(B),k.display.lineSpace.insertBefore(A,k.display.lineSpace.firstChild)}function g(k){setTimeout(function(){var A=!1;if(k.lineCount()==1){var B=k.getInputField();A=B.nodeName=="TEXTAREA"?!k.getLine(0).length:!/[^\u200b]/.test(B.querySelector(".CodeMirror-line").textContent)}A?c(k):d(k)},20)}function b(k){T(k)&&c(k)}function I(k){var A=k.getWrapperElement(),B=T(k);A.className=A.className.replace(" CodeMirror-empty","")+(B?" CodeMirror-empty":""),B?c(k):d(k)}function T(k){return k.lineCount()===1&&k.getLine(0)===""}})})();var F7=Object.defineProperty,W7=Object.getOwnPropertyDescriptor,Ps=(s,i,l,d)=>{for(var c=d>1?void 0:d?W7(i,l):i,g=s.length-1,b;g>=0;g--)(b=s[g])&&(c=(d?b(i,l,c):b(c))||c);return d&&c&&F7(i,l,c),c};Au.defineMode("nunjucks",(s,i)=>Au.overlayMode(Au.getMode(s,i.backdrop||"text/html"),Au.getMode(s,"jinja2")));const yp=Le("input-code"),U7=["json","nunjucks","javascript","solr"],Z7={json:{name:"javascript",json:!0},javascript:"javascript",nunjucks:"nunjucks",solr:"solr"};exports.InputCode=class extends un{constructor(){super(...arguments),this.mode="nunjucks",this.size="x-large",this.height=10,this.hideLineNumbers=!1}changeHandler(s){this.value=s.getValue(),this.dispatchChange()}updated(s){var l,d;super.updated(s);const i=this.disabled||this.readonly;this.value!==this.editorValue&&(this.editorValue=this.value||""),i!==((l=this.editor)==null?void 0:l.isReadOnly())&&((d=this.editor)==null||d.setOption("readOnly",this.disabled?"nocursor":this.readonly)),setTimeout(()=>{var c;return(c=this.editor)==null?void 0:c.refresh()})}get editorValue(){var s;return((s=this.editor)==null?void 0:s.getDoc().getValue())||""}set editorValue(s){var i;(i=this.editor)==null||i.setValue(s)}firstUpdated(){var i;const s=(i=this.shadowRoot)==null?void 0:i.querySelector(".editor");s&&(this.editor=Au.fromTextArea(s,{mode:Z7[this.mode],value:this.value,lineNumbers:!this.hideLineNumbers,readOnly:this.disabled?"nocursor":this.readonly,smartIndent:!0,theme:"skedulo"}),this.editor.setSize("100%",`${24*this.height}px`),this.editor.setOption("extraKeys",{Tab:l=>{const d=Array((l.getOption("indentUnit")||0)+1).join(" ");l.replaceSelection(d)}}),this.editor.on("change",this.changeHandler.bind(this)),setTimeout(()=>{var l;return(l=this.editor)==null?void 0:l.refresh()}))}disconnectedCallback(){var s;super.disconnectedCallback(),(s=this.editor)==null||s.off("change",this.changeHandler)}renderInput(){return K`
2422
+ `;(function(s,i){(function(l){l(Ro())})(function(l){l.overlayMode=function(d,c,g){return{startState:function(){return{base:l.startState(d),overlay:l.startState(c),basePos:0,baseCur:null,overlayPos:0,overlayCur:null,streamSeen:null}},copyState:function(b){return{base:l.copyState(d,b.base),overlay:l.copyState(c,b.overlay),basePos:b.basePos,baseCur:null,overlayPos:b.overlayPos,overlayCur:null}},token:function(b,I){return(b!=I.streamSeen||Math.min(I.basePos,I.overlayPos)<b.start)&&(I.streamSeen=b,I.basePos=I.overlayPos=b.start),b.start==I.basePos&&(I.baseCur=d.token(b,I.base),I.basePos=b.pos),b.start==I.overlayPos&&(b.pos=b.start,I.overlayCur=c.token(b,I.overlay),I.overlayPos=b.pos),b.pos=Math.min(I.basePos,I.overlayPos),I.overlayCur==null?I.baseCur:I.baseCur!=null&&I.overlay.combineTokens||g&&I.overlay.combineTokens==null?I.baseCur+" "+I.overlayCur:I.overlayCur},indent:d.indent&&function(b,I,T){return d.indent(b.base,I,T)},electricChars:d.electricChars,innerMode:function(b){return{state:b.base,mode:d}},blankLine:function(b){var I,T;return d.blankLine&&(I=d.blankLine(b.base)),c.blankLine&&(T=c.blankLine(b.overlay)),T==null?I:g&&I!=null?I+" "+T:T}}}})})();(function(s,i){(function(l){l(Ro())})(function(l){l.defineMode("jinja2",function(){var d=["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"],c=/^[+\-*&%=<>!?|~^]/,g=/^[:\[\(\{]/,b=["true","false"],I=/^(\d[+\-\*\/])?\d+(\.\d+)?/;d=new RegExp("(("+d.join(")|(")+"))\\b"),b=new RegExp("(("+b.join(")|(")+"))\\b");function T(k,A){var B=k.peek();if(A.incomment)return k.skipTo("#}")?(k.eatWhile(/\#|}/),A.incomment=!1):k.skipToEnd(),"comment";if(A.intag){if(A.operator){if(A.operator=!1,k.match(b))return"atom";if(k.match(I))return"number"}if(A.sign){if(A.sign=!1,k.match(b))return"atom";if(k.match(I))return"number"}if(A.instring)return B==A.instring&&(A.instring=!1),k.next(),"string";if(B=="'"||B=='"')return A.instring=B,k.next(),"string";if(k.match(A.intag+"}")||k.eat("-")&&k.match(A.intag+"}"))return A.intag=!1,"tag";if(k.match(c))return A.operator=!0,"operator";if(k.match(g))A.sign=!0;else if(k.eat(" ")||k.sol()){if(k.match(d))return"keyword";if(k.match(b))return"atom";if(k.match(I))return"number";k.sol()&&k.next()}else k.next();return"variable"}else if(k.eat("{")){if(k.eat("#"))return A.incomment=!0,k.skipTo("#}")?(k.eatWhile(/\#|}/),A.incomment=!1):k.skipToEnd(),"comment";if(B=k.eat(/\{|%/))return A.intag=B,B=="{"&&(A.intag="}"),k.eat("-"),"tag"}k.next()}return{startState:function(){return{tokenize:T}},token:function(k,A){return A.tokenize(k,A)},blockCommentStart:"{#",blockCommentEnd:"#}"}}),l.defineMIME("text/jinja2","jinja2")})})();var ah={exports:{}},lh;function zp(){return lh||(lh=1,function(s,i){(function(l){l(Ro())})(function(l){var d={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},c={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};l.defineMode("xml",function(g,b){var I=g.indentUnit,T={},k=b.htmlMode?d:c;for(var A in k)T[A]=k[A];for(var A in b)T[A]=b[A];var B,U;function Z(P,S){function ee(Lt){return S.tokenize=Lt,Lt(P,S)}var me=P.next();if(me=="<")return P.eat("!")?P.eat("[")?P.match("CDATA[")?ee(ge("atom","]]>")):null:P.match("--")?ee(ge("comment","-->")):P.match("DOCTYPE",!0,!0)?(P.eatWhile(/[\w\._\-]/),ee(Me(1))):null:P.eat("?")?(P.eatWhile(/[\w\._\-]/),S.tokenize=ge("meta","?>"),"meta"):(B=P.eat("/")?"closeTag":"openTag",S.tokenize=re,"tag bracket");if(me=="&"){var rt;return P.eat("#")?P.eat("x")?rt=P.eatWhile(/[a-fA-F\d]/)&&P.eat(";"):rt=P.eatWhile(/[\d]/)&&P.eat(";"):rt=P.eatWhile(/[\w\.\-:]/)&&P.eat(";"),rt?"atom":"error"}else return P.eatWhile(/[^&<]/),null}Z.isInText=!0;function re(P,S){var ee=P.next();if(ee==">"||ee=="/"&&P.eat(">"))return S.tokenize=Z,B=ee==">"?"endTag":"selfcloseTag","tag bracket";if(ee=="=")return B="equals",null;if(ee=="<"){S.tokenize=Z,S.state=ke,S.tagName=S.tagStart=null;var me=S.tokenize(P,S);return me?me+" tag error":"tag error"}else return/[\'\"]/.test(ee)?(S.tokenize=ve(ee),S.stringStartCol=P.column(),S.tokenize(P,S)):(P.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function ve(P){var S=function(ee,me){for(;!ee.eol();)if(ee.next()==P){me.tokenize=re;break}return"string"};return S.isInAttribute=!0,S}function ge(P,S){return function(ee,me){for(;!ee.eol();){if(ee.match(S)){me.tokenize=Z;break}ee.next()}return P}}function Me(P){return function(S,ee){for(var me;(me=S.next())!=null;){if(me=="<")return ee.tokenize=Me(P+1),ee.tokenize(S,ee);if(me==">")if(P==1){ee.tokenize=Z;break}else return ee.tokenize=Me(P-1),ee.tokenize(S,ee)}return"meta"}}function Te(P,S,ee){this.prev=P.context,this.tagName=S||"",this.indent=P.indented,this.startOfLine=ee,(T.doNotIndent.hasOwnProperty(S)||P.context&&P.context.noIndent)&&(this.noIndent=!0)}function pe(P){P.context&&(P.context=P.context.prev)}function de(P,S){for(var ee;;){if(!P.context||(ee=P.context.tagName,!T.contextGrabbers.hasOwnProperty(ee)||!T.contextGrabbers[ee].hasOwnProperty(S)))return;pe(P)}}function ke(P,S,ee){return P=="openTag"?(ee.tagStart=S.column(),Ee):P=="closeTag"?Ie:ke}function Ee(P,S,ee){return P=="word"?(ee.tagName=S.current(),U="tag",be):T.allowMissingTagName&&P=="endTag"?(U="tag bracket",be(P,S,ee)):(U="error",Ee)}function Ie(P,S,ee){if(P=="word"){var me=S.current();return ee.context&&ee.context.tagName!=me&&T.implicitlyClosed.hasOwnProperty(ee.context.tagName)&&pe(ee),ee.context&&ee.context.tagName==me||T.matchClosing===!1?(U="tag",je):(U="tag error",Ye)}else return T.allowMissingTagName&&P=="endTag"?(U="tag bracket",je(P,S,ee)):(U="error",Ye)}function je(P,S,ee){return P!="endTag"?(U="error",je):(pe(ee),ke)}function Ye(P,S,ee){return U="error",je(P,S,ee)}function be(P,S,ee){if(P=="word")return U="attribute",ye;if(P=="endTag"||P=="selfcloseTag"){var me=ee.tagName,rt=ee.tagStart;return ee.tagName=ee.tagStart=null,P=="selfcloseTag"||T.autoSelfClosers.hasOwnProperty(me)?de(ee,me):(de(ee,me),ee.context=new Te(ee,me,rt==ee.indented)),ke}return U="error",be}function ye(P,S,ee){return P=="equals"?Qe:(T.allowMissing||(U="error"),be(P,S,ee))}function Qe(P,S,ee){return P=="string"?V:P=="word"&&T.allowUnquoted?(U="string",be):(U="error",be(P,S,ee))}function V(P,S,ee){return P=="string"?V:be(P,S,ee)}return{startState:function(P){var S={tokenize:Z,state:ke,indented:P||0,tagName:null,tagStart:null,context:null};return P!=null&&(S.baseIndent=P),S},token:function(P,S){if(!S.tagName&&P.sol()&&(S.indented=P.indentation()),P.eatSpace())return null;B=null;var ee=S.tokenize(P,S);return(ee||B)&&ee!="comment"&&(U=null,S.state=S.state(B||ee,P,S),U&&(ee=U=="error"?ee+" error":U)),ee},indent:function(P,S,ee){var me=P.context;if(P.tokenize.isInAttribute)return P.tagStart==P.indented?P.stringStartCol+1:P.indented+I;if(me&&me.noIndent)return l.Pass;if(P.tokenize!=re&&P.tokenize!=Z)return ee?ee.match(/^(\s*)/)[0].length:0;if(P.tagName)return T.multilineTagIndentPastTag!==!1?P.tagStart+P.tagName.length+2:P.tagStart+I*(T.multilineTagIndentFactor||1);if(T.alignCDATA&&/<!\[CDATA\[/.test(S))return 0;var rt=S&&/^<(\/)?([\w_:\.-]*)/.exec(S);if(rt&&rt[1])for(;me;)if(me.tagName==rt[2]){me=me.prev;break}else if(T.implicitlyClosed.hasOwnProperty(me.tagName))me=me.prev;else break;else if(rt)for(;me;){var Lt=T.contextGrabbers[me.tagName];if(Lt&&Lt.hasOwnProperty(rt[2]))me=me.prev;else break}for(;me&&me.prev&&!me.startOfLine;)me=me.prev;return me?me.indent+I:P.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:T.htmlMode?"html":"xml",helperType:T.htmlMode?"html":"xml",skipAttribute:function(P){P.state==Qe&&(P.state=be)},xmlCurrentTag:function(P){return P.tagName?{name:P.tagName,close:P.type=="closeTag"}:null},xmlCurrentContext:function(P){for(var S=[],ee=P.context;ee;ee=ee.prev)S.push(ee.tagName);return S.reverse()}}}),l.defineMIME("text/xml","xml"),l.defineMIME("application/xml","xml"),l.mimeModes.hasOwnProperty("text/html")||l.defineMIME("text/html",{name:"xml",htmlMode:!0})})}()),ah.exports}zp();var sh={exports:{}},uh;function Lp(){return uh||(uh=1,function(s,i){(function(l){l(Ro())})(function(l){l.defineMode("javascript",function(d,c){var g=d.indentUnit,b=c.statementIndent,I=c.jsonld,T=c.json||I,k=c.trackScope!==!1,A=c.typescript,B=c.wordCharacters||/[\w$\xa1-\uffff]/,U=function(){function w(vr){return{type:vr,style:"keyword"}}var O=w("keyword a"),Q=w("keyword b"),le=w("keyword c"),Ve=w("keyword d"),dt=w("operator"),Ce={type:"atom",style:"atom"};return{if:w("if"),while:O,with:O,else:Q,do:Q,try:Q,finally:Q,return:Ve,break:Ve,continue:Ve,new:w("new"),delete:le,void:le,throw:le,debugger:w("debugger"),var:w("var"),const:w("var"),let:w("var"),function:w("function"),catch:w("catch"),for:w("for"),switch:w("switch"),case:w("case"),default:w("default"),in:dt,typeof:dt,instanceof:dt,true:Ce,false:Ce,null:Ce,undefined:Ce,NaN:Ce,Infinity:Ce,this:w("this"),class:w("class"),super:w("atom"),yield:le,export:w("export"),import:w("import"),extends:le,await:le}}(),Z=/[+\-*&%=<>!?|~^@]/,re=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function ve(w){for(var O=!1,Q,le=!1;(Q=w.next())!=null;){if(!O){if(Q=="/"&&!le)return;Q=="["?le=!0:le&&Q=="]"&&(le=!1)}O=!O&&Q=="\\"}}var ge,Me;function Te(w,O,Q){return ge=w,Me=Q,O}function pe(w,O){var Q=w.next();if(Q=='"'||Q=="'")return O.tokenize=de(Q),O.tokenize(w,O);if(Q=="."&&w.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return Te("number","number");if(Q=="."&&w.match(".."))return Te("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(Q))return Te(Q);if(Q=="="&&w.eat(">"))return Te("=>","operator");if(Q=="0"&&w.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return Te("number","number");if(/\d/.test(Q))return w.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),Te("number","number");if(Q=="/")return w.eat("*")?(O.tokenize=ke,ke(w,O)):w.eat("/")?(w.skipToEnd(),Te("comment","comment")):oe(w,O,1)?(ve(w),w.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),Te("regexp","string-2")):(w.eat("="),Te("operator","operator",w.current()));if(Q=="`")return O.tokenize=Ee,Ee(w,O);if(Q=="#"&&w.peek()=="!")return w.skipToEnd(),Te("meta","meta");if(Q=="#"&&w.eatWhile(B))return Te("variable","property");if(Q=="<"&&w.match("!--")||Q=="-"&&w.match("->")&&!/\S/.test(w.string.slice(0,w.start)))return w.skipToEnd(),Te("comment","comment");if(Z.test(Q))return(Q!=">"||!O.lexical||O.lexical.type!=">")&&(w.eat("=")?(Q=="!"||Q=="=")&&w.eat("="):/[<>*+\-|&?]/.test(Q)&&(w.eat(Q),Q==">"&&w.eat(Q))),Q=="?"&&w.eat(".")?Te("."):Te("operator","operator",w.current());if(B.test(Q)){w.eatWhile(B);var le=w.current();if(O.lastType!="."){if(U.propertyIsEnumerable(le)){var Ve=U[le];return Te(Ve.type,Ve.style,le)}if(le=="async"&&w.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return Te("async","keyword",le)}return Te("variable","variable",le)}}function de(w){return function(O,Q){var le=!1,Ve;if(I&&O.peek()=="@"&&O.match(re))return Q.tokenize=pe,Te("jsonld-keyword","meta");for(;(Ve=O.next())!=null&&!(Ve==w&&!le);)le=!le&&Ve=="\\";return le||(Q.tokenize=pe),Te("string","string")}}function ke(w,O){for(var Q=!1,le;le=w.next();){if(le=="/"&&Q){O.tokenize=pe;break}Q=le=="*"}return Te("comment","comment")}function Ee(w,O){for(var Q=!1,le;(le=w.next())!=null;){if(!Q&&(le=="`"||le=="$"&&w.eat("{"))){O.tokenize=pe;break}Q=!Q&&le=="\\"}return Te("quasi","string-2",w.current())}var Ie="([{}])";function je(w,O){O.fatArrowAt&&(O.fatArrowAt=null);var Q=w.string.indexOf("=>",w.start);if(!(Q<0)){if(A){var le=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(w.string.slice(w.start,Q));le&&(Q=le.index)}for(var Ve=0,dt=!1,Ce=Q-1;Ce>=0;--Ce){var vr=w.string.charAt(Ce),qr=Ie.indexOf(vr);if(qr>=0&&qr<3){if(!Ve){++Ce;break}if(--Ve==0){vr=="("&&(dt=!0);break}}else if(qr>=3&&qr<6)++Ve;else if(B.test(vr))dt=!0;else if(/["'\/`]/.test(vr))for(;;--Ce){if(Ce==0)return;var ii=w.string.charAt(Ce-1);if(ii==vr&&w.string.charAt(Ce-2)!="\\"){Ce--;break}}else if(dt&&!Ve){++Ce;break}}dt&&!Ve&&(O.fatArrowAt=Ce)}}var Ye={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function be(w,O,Q,le,Ve,dt){this.indented=w,this.column=O,this.type=Q,this.prev=Ve,this.info=dt,le!=null&&(this.align=le)}function ye(w,O){if(!k)return!1;for(var Q=w.localVars;Q;Q=Q.next)if(Q.name==O)return!0;for(var le=w.context;le;le=le.prev)for(var Q=le.vars;Q;Q=Q.next)if(Q.name==O)return!0}function Qe(w,O,Q,le,Ve){var dt=w.cc;for(V.state=w,V.stream=Ve,V.marked=null,V.cc=dt,V.style=O,w.lexical.hasOwnProperty("align")||(w.lexical.align=!0);;){var Ce=dt.length?dt.pop():T?We:nt;if(Ce(Q,le)){for(;dt.length&&dt[dt.length-1].lex;)dt.pop()();return V.marked?V.marked:Q=="variable"&&ye(w,le)?"variable-2":O}}}var V={state:null,column:null,marked:null,cc:null};function P(){for(var w=arguments.length-1;w>=0;w--)V.cc.push(arguments[w])}function S(){return P.apply(null,arguments),!0}function ee(w,O){for(var Q=O;Q;Q=Q.next)if(Q.name==w)return!0;return!1}function me(w){var O=V.state;if(V.marked="def",!!k){if(O.context){if(O.lexical.info=="var"&&O.context&&O.context.block){var Q=rt(w,O.context);if(Q!=null){O.context=Q;return}}else if(!ee(w,O.localVars)){O.localVars=new It(w,O.localVars);return}}c.globalVars&&!ee(w,O.globalVars)&&(O.globalVars=new It(w,O.globalVars))}}function rt(w,O){if(O)if(O.block){var Q=rt(w,O.prev);return Q?Q==O.prev?O:new Kt(Q,O.vars,!0):null}else return ee(w,O.vars)?O:new Kt(O.prev,new It(w,O.vars),!1);else return null}function Lt(w){return w=="public"||w=="private"||w=="protected"||w=="abstract"||w=="readonly"}function Kt(w,O,Q){this.prev=w,this.vars=O,this.block=Q}function It(w,O){this.name=w,this.next=O}var Xr=new It("this",new It("arguments",null));function Ut(){V.state.context=new Kt(V.state.context,V.state.localVars,!1),V.state.localVars=Xr}function At(){V.state.context=new Kt(V.state.context,V.state.localVars,!0),V.state.localVars=null}function at(){V.state.localVars=V.state.context.vars,V.state.context=V.state.context.prev}at.lex=!0;function _e(w,O){var Q=function(){var le=V.state,Ve=le.indented;if(le.lexical.type=="stat")Ve=le.lexical.indented;else for(var dt=le.lexical;dt&&dt.type==")"&&dt.align;dt=dt.prev)Ve=dt.indented;le.lexical=new be(Ve,V.stream.column(),w,null,le.lexical,O)};return Q.lex=!0,Q}function Fe(){var w=V.state;w.lexical.prev&&(w.lexical.type==")"&&(w.indented=w.lexical.indented),w.lexical=w.lexical.prev)}Fe.lex=!0;function Ue(w){function O(Q){return Q==w?S():w==";"||Q=="}"||Q==")"||Q=="]"?P():S(O)}return O}function nt(w,O){return w=="var"?S(_e("vardef",O),Sa,Ue(";"),Fe):w=="keyword a"?S(_e("form"),$r,nt,Fe):w=="keyword b"?S(_e("form"),nt,Fe):w=="keyword d"?V.stream.match(/^\s*$/,!1)?S():S(_e("stat"),Ke,Ue(";"),Fe):w=="debugger"?S(Ue(";")):w=="{"?S(_e("}"),At,Sr,Fe,at):w==";"?S():w=="if"?(V.state.lexical.info=="else"&&V.state.cc[V.state.cc.length-1]==Fe&&V.state.cc.pop()(),S(_e("form"),$r,nt,Fe,xl)):w=="function"?S(dn):w=="for"?S(_e("form"),At,zl,nt,at,Fe):w=="class"||A&&O=="interface"?(V.marked="keyword",S(_e("form",w=="class"?w:O),Bo,Fe)):w=="variable"?A&&O=="declare"?(V.marked="keyword",S(nt)):A&&(O=="module"||O=="enum"||O=="type")&&V.stream.match(/^\s*\w/,!1)?(V.marked="keyword",O=="enum"?S(On):O=="type"?S(Ll,Ue("operator"),Ze,Ue(";")):S(_e("form"),Rr,Ue("{"),_e("}"),Sr,Fe,Fe)):A&&O=="namespace"?(V.marked="keyword",S(_e("form"),We,nt,Fe)):A&&O=="abstract"?(V.marked="keyword",S(nt)):S(_e("stat"),Xe):w=="switch"?S(_e("form"),$r,Ue("{"),_e("}","switch"),At,Sr,Fe,Fe,at):w=="case"?S(We,Ue(":")):w=="default"?S(Ue(":")):w=="catch"?S(_e("form"),Ut,it,nt,Fe,at):w=="export"?S(_e("stat"),ka,Fe):w=="import"?S(_e("stat"),$t,Fe):w=="async"?S(nt):O=="@"?S(We,nt):P(_e("stat"),We,Ue(";"),Fe)}function it(w){if(w=="(")return S(ni,Ue(")"))}function We(w,O){return Yt(w,O,!1)}function Nt(w,O){return Yt(w,O,!0)}function $r(w){return w!="("?P():S(_e(")"),Ke,Ue(")"),Fe)}function Yt(w,O,Q){if(V.state.fatArrowAt==V.stream.start){var le=Q?et:er;if(w=="(")return S(Ut,_e(")"),Rt(ni,")"),Fe,Ue("=>"),le,at);if(w=="variable")return P(Ut,Rr,Ue("=>"),le,at)}var Ve=Q?wt:ht;return Ye.hasOwnProperty(w)?S(Ve):w=="function"?S(dn,Ve):w=="class"||A&&O=="interface"?(V.marked="keyword",S(_e("form"),lo,Fe)):w=="keyword c"||w=="async"?S(Q?Nt:We):w=="("?S(_e(")"),Ke,Ue(")"),Fe,Ve):w=="operator"||w=="spread"?S(Q?Nt:We):w=="["?S(_e("]"),bt,Fe,Ve):w=="{"?ri(pr,"}",null,Ve):w=="quasi"?P(_r,Ve):w=="new"?S(W(Q)):S()}function Ke(w){return w.match(/[;\}\)\],]/)?P():P(We)}function ht(w,O){return w==","?S(Ke):wt(w,O,!1)}function wt(w,O,Q){var le=Q==!1?ht:wt,Ve=Q==!1?We:Nt;if(w=="=>")return S(Ut,Q?et:er,at);if(w=="operator")return/\+\+|--/.test(O)||A&&O=="!"?S(le):A&&O=="<"&&V.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?S(_e(">"),Rt(Ze,">"),Fe,le):O=="?"?S(We,Ue(":"),Ve):S(Ve);if(w=="quasi")return P(_r,le);if(w!=";"){if(w=="(")return ri(Nt,")","call",le);if(w==".")return S(tr,le);if(w=="[")return S(_e("]"),Ke,Ue("]"),Fe,le);if(A&&O=="as")return V.marked="keyword",S(Ze,le);if(w=="regexp")return V.state.lastType=V.marked="operator",V.stream.backUp(V.stream.pos-V.stream.start-1),S(Ve)}}function _r(w,O){return w!="quasi"?P():O.slice(O.length-2)!="${"?S(_r):S(Ke,Vr)}function Vr(w){if(w=="}")return V.marked="string-2",V.state.tokenize=Ee,S(_r)}function er(w){return je(V.stream,V.state),P(w=="{"?nt:We)}function et(w){return je(V.stream,V.state),P(w=="{"?nt:Nt)}function W(w){return function(O){return O=="."?S(w?K:ae):O=="variable"&&A?S(io,w?wt:ht):P(w?Nt:We)}}function ae(w,O){if(O=="target")return V.marked="keyword",S(ht)}function K(w,O){if(O=="target")return V.marked="keyword",S(wt)}function Xe(w){return w==":"?S(Fe,nt):P(ht,Ue(";"),Fe)}function tr(w){if(w=="variable")return V.marked="property",S()}function pr(w,O){if(w=="async")return V.marked="property",S(pr);if(w=="variable"||V.style=="keyword"){if(V.marked="property",O=="get"||O=="set")return S(Ln);var Q;return A&&V.state.fatArrowAt==V.stream.start&&(Q=V.stream.match(/^\s*:\s*/,!1))&&(V.state.fatArrowAt=V.stream.pos+Q[0].length),S(Dr)}else{if(w=="number"||w=="string")return V.marked=I?"property":V.style+" property",S(Dr);if(w=="jsonld-keyword")return S(Dr);if(A&&Lt(O))return V.marked="keyword",S(pr);if(w=="[")return S(We,_n,Ue("]"),Dr);if(w=="spread")return S(Nt,Dr);if(O=="*")return V.marked="keyword",S(pr);if(w==":")return P(Dr)}}function Ln(w){return w!="variable"?P(Dr):(V.marked="property",S(dn))}function Dr(w){if(w==":")return S(Nt);if(w=="(")return P(dn)}function Rt(w,O,Q){function le(Ve,dt){if(Q?Q.indexOf(Ve)>-1:Ve==","){var Ce=V.state.lexical;return Ce.info=="call"&&(Ce.pos=(Ce.pos||0)+1),S(function(vr,qr){return vr==O||qr==O?P():P(w)},le)}return Ve==O||dt==O?S():Q&&Q.indexOf(";")>-1?P(w):S(Ue(O))}return function(Ve,dt){return Ve==O||dt==O?S():P(w,le)}}function ri(w,O,Q){for(var le=3;le<arguments.length;le++)V.cc.push(arguments[le]);return S(_e(O,Q),Rt(w,O),Fe)}function Sr(w){return w=="}"?S():P(nt,Sr)}function _n(w,O){if(A){if(w==":")return S(Ze);if(O=="?")return S(_n)}}function Ne(w,O){if(A&&(w==":"||O=="in"))return S(Ze)}function Li(w){if(A&&w==":")return V.stream.match(/^\s*\w+\s+is\b/,!1)?S(We,gr,Ze):S(Ze)}function gr(w,O){if(O=="is")return V.marked="keyword",S()}function Ze(w,O){if(O=="keyof"||O=="typeof"||O=="infer"||O=="readonly")return V.marked="keyword",S(O=="typeof"?Nt:Ze);if(w=="variable"||O=="void")return V.marked="type",S(Qr);if(O=="|"||O=="&")return S(Ze);if(w=="string"||w=="number"||w=="atom")return S(Qr);if(w=="[")return S(_e("]"),Rt(Ze,"]",","),Fe,Qr);if(w=="{")return S(_e("}"),No,Fe,Qr);if(w=="(")return S(Rt(Ho,")"),Gt,Qr);if(w=="<")return S(Rt(Ze,">"),Ze);if(w=="quasi")return P(Sn,Qr)}function Gt(w){if(w=="=>")return S(Ze)}function No(w){return w.match(/[\}\)\]]/)?S():w==","||w==";"?S(No):P(sr,No)}function sr(w,O){if(w=="variable"||V.style=="keyword")return V.marked="property",S(sr);if(O=="?"||w=="number"||w=="string")return S(sr);if(w==":")return S(Ze);if(w=="[")return S(Ue("variable"),Ne,Ue("]"),sr);if(w=="(")return P(Jr,sr);if(!w.match(/[;\}\)\],]/))return S()}function Sn(w,O){return w!="quasi"?P():O.slice(O.length-2)!="${"?S(Sn):S(Ze,ur)}function ur(w){if(w=="}")return V.marked="string-2",V.state.tokenize=Ee,S(Sn)}function Ho(w,O){return w=="variable"&&V.stream.match(/^\s*[?:]/,!1)||O=="?"?S(Ho):w==":"?S(Ze):w=="spread"?S(Ho):P(Ze)}function Qr(w,O){if(O=="<")return S(_e(">"),Rt(Ze,">"),Fe,Qr);if(O=="|"||w=="."||O=="&")return S(Ze);if(w=="[")return S(Ze,Ue("]"),Qr);if(O=="extends"||O=="implements")return V.marked="keyword",S(Ze);if(O=="?")return S(Ze,Ue(":"),Ze)}function io(w,O){if(O=="<")return S(_e(">"),Rt(Ze,">"),Fe,Qr)}function _i(){return P(Ze,_a)}function _a(w,O){if(O=="=")return S(Ze)}function Sa(w,O){return O=="enum"?(V.marked="keyword",S(On)):P(Rr,_n,Hn,ao)}function Rr(w,O){if(A&&Lt(O))return V.marked="keyword",S(Rr);if(w=="variable")return me(O),S();if(w=="spread")return S(Rr);if(w=="[")return ri(oo,"]");if(w=="{")return ri(wl,"}")}function wl(w,O){return w=="variable"&&!V.stream.match(/^\s*:/,!1)?(me(O),S(Hn)):(w=="variable"&&(V.marked="property"),w=="spread"?S(Rr):w=="}"?P():w=="["?S(We,Ue("]"),Ue(":"),wl):S(Ue(":"),Rr,Hn))}function oo(){return P(Rr,Hn)}function Hn(w,O){if(O=="=")return S(Nt)}function ao(w){if(w==",")return S(Sa)}function xl(w,O){if(w=="keyword b"&&O=="else")return S(_e("form","else"),nt,Fe)}function zl(w,O){if(O=="await")return S(zl);if(w=="(")return S(_e(")"),Ma,Fe)}function Ma(w){return w=="var"?S(Sa,Si):w=="variable"?S(Si):P(Si)}function Si(w,O){return w==")"?S():w==";"?S(Si):O=="in"||O=="of"?(V.marked="keyword",S(We,Si)):P(We,Si)}function dn(w,O){if(O=="*")return V.marked="keyword",S(dn);if(w=="variable")return me(O),S(dn);if(w=="(")return S(Ut,_e(")"),Rt(ni,")"),Fe,Li,nt,at);if(A&&O=="<")return S(_e(">"),Rt(_i,">"),Fe,dn)}function Jr(w,O){if(O=="*")return V.marked="keyword",S(Jr);if(w=="variable")return me(O),S(Jr);if(w=="(")return S(Ut,_e(")"),Rt(ni,")"),Fe,Li,at);if(A&&O=="<")return S(_e(">"),Rt(_i,">"),Fe,Jr)}function Ll(w,O){if(w=="keyword"||w=="variable")return V.marked="type",S(Ll);if(O=="<")return S(_e(">"),Rt(_i,">"),Fe)}function ni(w,O){return O=="@"&&S(We,ni),w=="spread"?S(ni):A&&Lt(O)?(V.marked="keyword",S(ni)):A&&w=="this"?S(_n,Hn):P(Rr,_n,Hn)}function lo(w,O){return w=="variable"?Bo(w,O):Mn(w,O)}function Bo(w,O){if(w=="variable")return me(O),S(Mn)}function Mn(w,O){if(O=="<")return S(_e(">"),Rt(_i,">"),Fe,Mn);if(O=="extends"||O=="implements"||A&&w==",")return O=="implements"&&(V.marked="keyword"),S(A?Ze:We,Mn);if(w=="{")return S(_e("}"),kn,Fe)}function kn(w,O){if(w=="async"||w=="variable"&&(O=="static"||O=="get"||O=="set"||A&&Lt(O))&&V.stream.match(/^\s+[\w$\xa1-\uffff]/,!1))return V.marked="keyword",S(kn);if(w=="variable"||V.style=="keyword")return V.marked="property",S(en,kn);if(w=="number"||w=="string")return S(en,kn);if(w=="[")return S(We,_n,Ue("]"),en,kn);if(O=="*")return V.marked="keyword",S(kn);if(A&&w=="(")return P(Jr,kn);if(w==";"||w==",")return S(kn);if(w=="}")return S();if(O=="@")return S(We,kn)}function en(w,O){if(O=="!"||O=="?")return S(en);if(w==":")return S(Ze,Hn);if(O=="=")return S(Nt);var Q=V.state.lexical.prev,le=Q&&Q.info=="interface";return P(le?Jr:dn)}function ka(w,O){return O=="*"?(V.marked="keyword",S(Gr,Ue(";"))):O=="default"?(V.marked="keyword",S(We,Ue(";"))):w=="{"?S(Rt(Oa,"}"),Gr,Ue(";")):P(nt)}function Oa(w,O){if(O=="as")return V.marked="keyword",S(Ue("variable"));if(w=="variable")return P(Nt,Oa)}function $t(w){return w=="string"?S():w=="("?P(We):w=="."?P(ht):P(Oe,tn,Gr)}function Oe(w,O){return w=="{"?ri(Oe,"}"):(w=="variable"&&me(O),O=="*"&&(V.marked="keyword"),S(Ta))}function tn(w){if(w==",")return S(Oe,tn)}function Ta(w,O){if(O=="as")return V.marked="keyword",S(Oe)}function Gr(w,O){if(O=="from")return V.marked="keyword",S(We)}function bt(w){return w=="]"?S():P(Rt(Nt,"]"))}function On(){return P(_e("form"),Rr,Ue("{"),_e("}"),Rt(Mi,"}"),Fe,Fe)}function Mi(){return P(Rr,Hn)}function Fo(w,O){return w.lastType=="operator"||w.lastType==","||Z.test(O.charAt(0))||/[,.]/.test(O.charAt(0))}function oe(w,O,Q){return O.tokenize==pe&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(O.lastType)||O.lastType=="quasi"&&/\{\s*$/.test(w.string.slice(0,w.pos-(Q||0)))}return{startState:function(w){var O={tokenize:pe,lastType:"sof",cc:[],lexical:new be((w||0)-g,0,"block",!1),localVars:c.localVars,context:c.localVars&&new Kt(null,null,!1),indented:w||0};return c.globalVars&&typeof c.globalVars=="object"&&(O.globalVars=c.globalVars),O},token:function(w,O){if(w.sol()&&(O.lexical.hasOwnProperty("align")||(O.lexical.align=!1),O.indented=w.indentation(),je(w,O)),O.tokenize!=ke&&w.eatSpace())return null;var Q=O.tokenize(w,O);return ge=="comment"?Q:(O.lastType=ge=="operator"&&(Me=="++"||Me=="--")?"incdec":ge,Qe(O,Q,ge,Me,w))},indent:function(w,O){if(w.tokenize==ke||w.tokenize==Ee)return l.Pass;if(w.tokenize!=pe)return 0;var Q=O&&O.charAt(0),le=w.lexical,Ve;if(!/^\s*else\b/.test(O))for(var dt=w.cc.length-1;dt>=0;--dt){var Ce=w.cc[dt];if(Ce==Fe)le=le.prev;else if(Ce!=xl&&Ce!=at)break}for(;(le.type=="stat"||le.type=="form")&&(Q=="}"||(Ve=w.cc[w.cc.length-1])&&(Ve==ht||Ve==wt)&&!/^[,\.=+\-*:?[\(]/.test(O));)le=le.prev;b&&le.type==")"&&le.prev.type=="stat"&&(le=le.prev);var vr=le.type,qr=Q==vr;return vr=="vardef"?le.indented+(w.lastType=="operator"||w.lastType==","?le.info.length+1:0):vr=="form"&&Q=="{"?le.indented:vr=="form"?le.indented+g:vr=="stat"?le.indented+(Fo(w,O)?b||g:0):le.info=="switch"&&!qr&&c.doubleIndentSwitch!=!1?le.indented+(/^(?:case|default)\b/.test(O)?g:2*g):le.align?le.column+(qr?0:1):le.indented+(qr?0:g)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:T?null:"/*",blockCommentEnd:T?null:"*/",blockCommentContinue:T?null:" * ",lineComment:T?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:T?"json":"javascript",jsonldMode:I,jsonMode:T,expressionAllowed:oe,skipExpression:function(w){Qe(w,"atom","atom","true",new l.StringStream("",2,null))}}}),l.registerHelper("wordChars","javascript",/[\w$]/),l.defineMIME("text/javascript","javascript"),l.defineMIME("text/ecmascript","javascript"),l.defineMIME("application/javascript","javascript"),l.defineMIME("application/x-javascript","javascript"),l.defineMIME("application/ecmascript","javascript"),l.defineMIME("application/json",{name:"javascript",json:!0}),l.defineMIME("application/x-json",{name:"javascript",json:!0}),l.defineMIME("application/manifest+json",{name:"javascript",json:!0}),l.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),l.defineMIME("text/typescript",{name:"javascript",typescript:!0}),l.defineMIME("application/typescript",{name:"javascript",typescript:!0})})}()),sh.exports}Lp();var ch={exports:{}},dh;function Z7(){return dh||(dh=1,function(s,i){(function(l){l(Ro())})(function(l){l.defineMode("css",function(be,ye){var Qe=ye.inline;ye.propertyKeywords||(ye=l.resolveMode("text/css"));var V=be.indentUnit,P=ye.tokenHooks,S=ye.documentTypes||{},ee=ye.mediaTypes||{},me=ye.mediaFeatures||{},rt=ye.mediaValueKeywords||{},Lt=ye.propertyKeywords||{},Kt=ye.nonStandardPropertyKeywords||{},It=ye.fontProperties||{},Xr=ye.counterDescriptors||{},Ut=ye.colorKeywords||{},At=ye.valueKeywords||{},at=ye.allowNested,_e=ye.lineComment,Fe=ye.supportsAtComponent===!0,Ue=be.highlightNonStandardPropertyKeywords!==!1,nt,it;function We(W,ae){return nt=ae,W}function Nt(W,ae){var K=W.next();if(P[K]){var Xe=P[K](W,ae);if(Xe!==!1)return Xe}if(K=="@")return W.eatWhile(/[\w\\\-]/),We("def",W.current());if(K=="="||(K=="~"||K=="|")&&W.eat("="))return We(null,"compare");if(K=='"'||K=="'")return ae.tokenize=$r(K),ae.tokenize(W,ae);if(K=="#")return W.eatWhile(/[\w\\\-]/),We("atom","hash");if(K=="!")return W.match(/^\s*\w*/),We("keyword","important");if(/\d/.test(K)||K=="."&&W.eat(/\d/))return W.eatWhile(/[\w.%]/),We("number","unit");if(K==="-"){if(/[\d.]/.test(W.peek()))return W.eatWhile(/[\w.%]/),We("number","unit");if(W.match(/^-[\w\\\-]*/))return W.eatWhile(/[\w\\\-]/),W.match(/^\s*:/,!1)?We("variable-2","variable-definition"):We("variable-2","variable");if(W.match(/^\w+-/))return We("meta","meta")}else return/[,+>*\/]/.test(K)?We(null,"select-op"):K=="."&&W.match(/^-?[_a-z][_a-z0-9-]*/i)?We("qualifier","qualifier"):/[:;{}\[\]\(\)]/.test(K)?We(null,K):W.match(/^[\w-.]+(?=\()/)?(/^(url(-prefix)?|domain|regexp)$/i.test(W.current())&&(ae.tokenize=Yt),We("variable callee","variable")):/[\w\\\-]/.test(K)?(W.eatWhile(/[\w\\\-]/),We("property","word")):We(null,null)}function $r(W){return function(ae,K){for(var Xe=!1,tr;(tr=ae.next())!=null;){if(tr==W&&!Xe){W==")"&&ae.backUp(1);break}Xe=!Xe&&tr=="\\"}return(tr==W||!Xe&&W!=")")&&(K.tokenize=null),We("string","string")}}function Yt(W,ae){return W.next(),W.match(/^\s*[\"\')]/,!1)?ae.tokenize=null:ae.tokenize=$r(")"),We(null,"(")}function Ke(W,ae,K){this.type=W,this.indent=ae,this.prev=K}function ht(W,ae,K,Xe){return W.context=new Ke(K,ae.indentation()+(Xe===!1?0:V),W.context),K}function wt(W){return W.context.prev&&(W.context=W.context.prev),W.context.type}function _r(W,ae,K){return et[K.context.type](W,ae,K)}function Vr(W,ae,K,Xe){for(var tr=Xe||1;tr>0;tr--)K.context=K.context.prev;return _r(W,ae,K)}function er(W){var ae=W.current().toLowerCase();At.hasOwnProperty(ae)?it="atom":Ut.hasOwnProperty(ae)?it="keyword":it="variable"}var et={};return et.top=function(W,ae,K){if(W=="{")return ht(K,ae,"block");if(W=="}"&&K.context.prev)return wt(K);if(Fe&&/@component/i.test(W))return ht(K,ae,"atComponentBlock");if(/^@(-moz-)?document$/i.test(W))return ht(K,ae,"documentTypes");if(/^@(media|supports|(-moz-)?document|import)$/i.test(W))return ht(K,ae,"atBlock");if(/^@(font-face|counter-style)/i.test(W))return K.stateArg=W,"restricted_atBlock_before";if(/^@(-(moz|ms|o|webkit)-)?keyframes$/i.test(W))return"keyframes";if(W&&W.charAt(0)=="@")return ht(K,ae,"at");if(W=="hash")it="builtin";else if(W=="word")it="tag";else{if(W=="variable-definition")return"maybeprop";if(W=="interpolation")return ht(K,ae,"interpolation");if(W==":")return"pseudo";if(at&&W=="(")return ht(K,ae,"parens")}return K.context.type},et.block=function(W,ae,K){if(W=="word"){var Xe=ae.current().toLowerCase();return Lt.hasOwnProperty(Xe)?(it="property","maybeprop"):Kt.hasOwnProperty(Xe)?(it=Ue?"string-2":"property","maybeprop"):at?(it=ae.match(/^\s*:(?:\s|$)/,!1)?"property":"tag","block"):(it+=" error","maybeprop")}else return W=="meta"?"block":!at&&(W=="hash"||W=="qualifier")?(it="error","block"):et.top(W,ae,K)},et.maybeprop=function(W,ae,K){return W==":"?ht(K,ae,"prop"):_r(W,ae,K)},et.prop=function(W,ae,K){if(W==";")return wt(K);if(W=="{"&&at)return ht(K,ae,"propBlock");if(W=="}"||W=="{")return Vr(W,ae,K);if(W=="(")return ht(K,ae,"parens");if(W=="hash"&&!/^#([0-9a-fA-f]{3,4}|[0-9a-fA-f]{6}|[0-9a-fA-f]{8})$/.test(ae.current()))it+=" error";else if(W=="word")er(ae);else if(W=="interpolation")return ht(K,ae,"interpolation");return"prop"},et.propBlock=function(W,ae,K){return W=="}"?wt(K):W=="word"?(it="property","maybeprop"):K.context.type},et.parens=function(W,ae,K){return W=="{"||W=="}"?Vr(W,ae,K):W==")"?wt(K):W=="("?ht(K,ae,"parens"):W=="interpolation"?ht(K,ae,"interpolation"):(W=="word"&&er(ae),"parens")},et.pseudo=function(W,ae,K){return W=="meta"?"pseudo":W=="word"?(it="variable-3",K.context.type):_r(W,ae,K)},et.documentTypes=function(W,ae,K){return W=="word"&&S.hasOwnProperty(ae.current())?(it="tag",K.context.type):et.atBlock(W,ae,K)},et.atBlock=function(W,ae,K){if(W=="(")return ht(K,ae,"atBlock_parens");if(W=="}"||W==";")return Vr(W,ae,K);if(W=="{")return wt(K)&&ht(K,ae,at?"block":"top");if(W=="interpolation")return ht(K,ae,"interpolation");if(W=="word"){var Xe=ae.current().toLowerCase();Xe=="only"||Xe=="not"||Xe=="and"||Xe=="or"?it="keyword":ee.hasOwnProperty(Xe)?it="attribute":me.hasOwnProperty(Xe)?it="property":rt.hasOwnProperty(Xe)?it="keyword":Lt.hasOwnProperty(Xe)?it="property":Kt.hasOwnProperty(Xe)?it=Ue?"string-2":"property":At.hasOwnProperty(Xe)?it="atom":Ut.hasOwnProperty(Xe)?it="keyword":it="error"}return K.context.type},et.atComponentBlock=function(W,ae,K){return W=="}"?Vr(W,ae,K):W=="{"?wt(K)&&ht(K,ae,at?"block":"top",!1):(W=="word"&&(it="error"),K.context.type)},et.atBlock_parens=function(W,ae,K){return W==")"?wt(K):W=="{"||W=="}"?Vr(W,ae,K,2):et.atBlock(W,ae,K)},et.restricted_atBlock_before=function(W,ae,K){return W=="{"?ht(K,ae,"restricted_atBlock"):W=="word"&&K.stateArg=="@counter-style"?(it="variable","restricted_atBlock_before"):_r(W,ae,K)},et.restricted_atBlock=function(W,ae,K){return W=="}"?(K.stateArg=null,wt(K)):W=="word"?(K.stateArg=="@font-face"&&!It.hasOwnProperty(ae.current().toLowerCase())||K.stateArg=="@counter-style"&&!Xr.hasOwnProperty(ae.current().toLowerCase())?it="error":it="property","maybeprop"):"restricted_atBlock"},et.keyframes=function(W,ae,K){return W=="word"?(it="variable","keyframes"):W=="{"?ht(K,ae,"top"):_r(W,ae,K)},et.at=function(W,ae,K){return W==";"?wt(K):W=="{"||W=="}"?Vr(W,ae,K):(W=="word"?it="tag":W=="hash"&&(it="builtin"),"at")},et.interpolation=function(W,ae,K){return W=="}"?wt(K):W=="{"||W==";"?Vr(W,ae,K):(W=="word"?it="variable":W!="variable"&&W!="("&&W!=")"&&(it="error"),"interpolation")},{startState:function(W){return{tokenize:null,state:Qe?"block":"top",stateArg:null,context:new Ke(Qe?"block":"top",W||0,null)}},token:function(W,ae){if(!ae.tokenize&&W.eatSpace())return null;var K=(ae.tokenize||Nt)(W,ae);return K&&typeof K=="object"&&(nt=K[1],K=K[0]),it=K,nt!="comment"&&(ae.state=et[ae.state](nt,W,ae)),it},indent:function(W,ae){var K=W.context,Xe=ae&&ae.charAt(0),tr=K.indent;return K.type=="prop"&&(Xe=="}"||Xe==")")&&(K=K.prev),K.prev&&(Xe=="}"&&(K.type=="block"||K.type=="top"||K.type=="interpolation"||K.type=="restricted_atBlock")?(K=K.prev,tr=K.indent):(Xe==")"&&(K.type=="parens"||K.type=="atBlock_parens")||Xe=="{"&&(K.type=="at"||K.type=="atBlock"))&&(tr=Math.max(0,K.indent-V))),tr},electricChars:"}",blockCommentStart:"/*",blockCommentEnd:"*/",blockCommentContinue:" * ",lineComment:_e,fold:"brace"}});function d(be){for(var ye={},Qe=0;Qe<be.length;++Qe)ye[be[Qe].toLowerCase()]=!0;return ye}var c=["domain","regexp","url","url-prefix"],g=d(c),b=["all","aural","braille","handheld","print","projection","screen","tty","tv","embossed"],I=d(b),T=["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"],k=d(T),A=["landscape","portrait","none","coarse","fine","on-demand","hover","interlace","progressive","dark","light"],B=d(A),U=["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"],Z=d(U),re=["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"],ve=d(re),ge=["font-display","font-family","src","unicode-range","font-variant","font-feature-settings","font-stretch","font-weight","font-style"],Me=d(ge),Te=["additive-symbols","fallback","negative","pad","prefix","range","speak-as","suffix","symbols","system"],pe=d(Te),de=["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"],ke=d(de),Ee=["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"],Ie=d(Ee),je=c.concat(b).concat(T).concat(A).concat(U).concat(re).concat(de).concat(Ee);l.registerHelper("hintWords","css",je);function Ye(be,ye){for(var Qe=!1,V;(V=be.next())!=null;){if(Qe&&V=="/"){ye.tokenize=null;break}Qe=V=="*"}return["comment","comment"]}l.defineMIME("text/css",{documentTypes:g,mediaTypes:I,mediaFeatures:k,mediaValueKeywords:B,propertyKeywords:Z,nonStandardPropertyKeywords:ve,fontProperties:Me,counterDescriptors:pe,colorKeywords:ke,valueKeywords:Ie,tokenHooks:{"/":function(be,ye){return be.eat("*")?(ye.tokenize=Ye,Ye(be,ye)):!1}},name:"css"}),l.defineMIME("text/x-scss",{mediaTypes:I,mediaFeatures:k,mediaValueKeywords:B,propertyKeywords:Z,nonStandardPropertyKeywords:ve,colorKeywords:ke,valueKeywords:Ie,fontProperties:Me,allowNested:!0,lineComment:"//",tokenHooks:{"/":function(be,ye){return be.eat("/")?(be.skipToEnd(),["comment","comment"]):be.eat("*")?(ye.tokenize=Ye,Ye(be,ye)):["operator","operator"]},":":function(be){return be.match(/^\s*\{/,!1)?[null,null]:!1},$:function(be){return be.match(/^[\w-]+/),be.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2","variable"]},"#":function(be){return be.eat("{")?[null,"interpolation"]:!1}},name:"css",helperType:"scss"}),l.defineMIME("text/x-less",{mediaTypes:I,mediaFeatures:k,mediaValueKeywords:B,propertyKeywords:Z,nonStandardPropertyKeywords:ve,colorKeywords:ke,valueKeywords:Ie,fontProperties:Me,allowNested:!0,lineComment:"//",tokenHooks:{"/":function(be,ye){return be.eat("/")?(be.skipToEnd(),["comment","comment"]):be.eat("*")?(ye.tokenize=Ye,Ye(be,ye)):["operator","operator"]},"@":function(be){return be.eat("{")?[null,"interpolation"]:be.match(/^(charset|document|font-face|import|(-(moz|ms|o|webkit)-)?keyframes|media|namespace|page|supports)\b/i,!1)?!1:(be.eatWhile(/[\w\\\-]/),be.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2","variable"])},"&":function(){return["atom","atom"]}},name:"css",helperType:"less"}),l.defineMIME("text/x-gss",{documentTypes:g,mediaTypes:I,mediaFeatures:k,propertyKeywords:Z,nonStandardPropertyKeywords:ve,fontProperties:Me,counterDescriptors:pe,colorKeywords:ke,valueKeywords:Ie,supportsAtComponent:!0,tokenHooks:{"/":function(be,ye){return be.eat("*")?(ye.tokenize=Ye,Ye(be,ye)):!1}},name:"css",helperType:"gss"})})}()),ch.exports}(function(s,i){(function(l){l(Ro(),zp(),Lp(),Z7())})(function(l){var d={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 c(B,U,Z){var re=B.current(),ve=re.search(U);return ve>-1?B.backUp(re.length-ve):re.match(/<\/?$/)&&(B.backUp(re.length),B.match(U,!1)||B.match(re)),Z}var g={};function b(B){var U=g[B];return U||(g[B]=new RegExp("\\s+"+B+`\\s*=\\s*('|")?([^'"]+)('|")?\\s*`))}function I(B,U){var Z=B.match(b(U));return Z?/^\s*(.*?)\s*$/.exec(Z[2])[1]:""}function T(B,U){return new RegExp((U?"^":"")+"</s*"+B+"s*>","i")}function k(B,U){for(var Z in B)for(var re=U[Z]||(U[Z]=[]),ve=B[Z],ge=ve.length-1;ge>=0;ge--)re.unshift(ve[ge])}function A(B,U){for(var Z=0;Z<B.length;Z++){var re=B[Z];if(!re[0]||re[1].test(I(U,re[0])))return re[2]}}l.defineMode("htmlmixed",function(B,U){var Z=l.getMode(B,{name:"xml",htmlMode:!0,multilineTagIndentFactor:U.multilineTagIndentFactor,multilineTagIndentPastTag:U.multilineTagIndentPastTag,allowMissingTagName:U.allowMissingTagName}),re={},ve=U&&U.tags,ge=U&&U.scriptTypes;if(k(d,re),ve&&k(ve,re),ge)for(var Me=ge.length-1;Me>=0;Me--)re.script.unshift(["type",ge[Me].matches,ge[Me].mode]);function Te(pe,de){var ke=Z.token(pe,de.htmlState),Ee=/\btag\b/.test(ke),Ie;if(Ee&&!/[<>\s\/]/.test(pe.current())&&(Ie=de.htmlState.tagName&&de.htmlState.tagName.toLowerCase())&&re.hasOwnProperty(Ie))de.inTag=Ie+" ";else if(de.inTag&&Ee&&/>$/.test(pe.current())){var je=/^([\S]+) (.*)/.exec(de.inTag);de.inTag=null;var Ye=pe.current()==">"&&A(re[je[1]],je[2]),be=l.getMode(B,Ye),ye=T(je[1],!0),Qe=T(je[1],!1);de.token=function(V,P){return V.match(ye,!1)?(P.token=Te,P.localState=P.localMode=null,null):c(V,Qe,P.localMode.token(V,P.localState))},de.localMode=be,de.localState=l.startState(be,Z.indent(de.htmlState,"",""))}else de.inTag&&(de.inTag+=pe.current(),pe.eol()&&(de.inTag+=" "));return ke}return{startState:function(){var pe=l.startState(Z);return{token:Te,inTag:null,localMode:null,localState:null,htmlState:pe}},copyState:function(pe){var de;return pe.localState&&(de=l.copyState(pe.localMode,pe.localState)),{token:pe.token,inTag:pe.inTag,localMode:pe.localMode,localState:de,htmlState:l.copyState(Z,pe.htmlState)}},token:function(pe,de){return de.token(pe,de)},indent:function(pe,de,ke){return!pe.localMode||/^\s*<\//.test(de)?Z.indent(pe.htmlState,de,ke):pe.localMode.indent?pe.localMode.indent(pe.localState,de,ke):l.Pass},innerMode:function(pe){return{state:pe.localState||pe.htmlState,mode:pe.localMode||Z}}}},"xml","javascript","css"),l.defineMIME("text/html","htmlmixed")})})();(function(s,i){(function(l){l(Ro())})(function(l){l.defineMode("solr",function(){var d=/[^\s\|\!\+\-\*\?\~\^\&\:\(\)\[\]\{\}\"\\]/,c=/[\|\!\+\-\*\?\~\^\&]/,g=/^(OR|AND|NOT|TO)$/i;function b(B){return parseFloat(B).toString()===B}function I(B){return function(U,Z){for(var re=!1,ve;(ve=U.next())!=null&&!(ve==B&&!re);)re=!re&&ve=="\\";return re||(Z.tokenize=A),"string"}}function T(B){return function(U,Z){var re="operator";return B=="+"?re+=" positive":B=="-"?re+=" negative":B=="|"?U.eat(/\|/):B=="&"?U.eat(/\&/):B=="^"&&(re+=" boost"),Z.tokenize=A,re}}function k(B){return function(U,Z){for(var re=B;(B=U.peek())&&B.match(d)!=null;)re+=U.next();return Z.tokenize=A,g.test(re)?"operator":b(re)?"number":U.peek()==":"?"field":"string"}}function A(B,U){var Z=B.next();return Z=='"'?U.tokenize=I(Z):c.test(Z)?U.tokenize=T(Z):d.test(Z)&&(U.tokenize=k(Z)),U.tokenize!=A?U.tokenize(B,U):null}return{startState:function(){return{tokenize:A}},token:function(B,U){return B.eatSpace()?null:U.tokenize(B,U)}}}),l.defineMIME("text/x-solr","solr")})})();(function(s,i){(function(l){l(Ro())})(function(l){l.defineOption("placeholder","",function(k,A,B){var U=B&&B!=l.Init;if(A&&!U)k.on("blur",b),k.on("change",I),k.on("swapDoc",I),l.on(k.getInputField(),"compositionupdate",k.state.placeholderCompose=function(){g(k)}),I(k);else if(!A&&U){k.off("blur",b),k.off("change",I),k.off("swapDoc",I),l.off(k.getInputField(),"compositionupdate",k.state.placeholderCompose),d(k);var Z=k.getWrapperElement();Z.className=Z.className.replace(" CodeMirror-empty","")}A&&!k.hasFocus()&&b(k)});function d(k){k.state.placeholder&&(k.state.placeholder.parentNode.removeChild(k.state.placeholder),k.state.placeholder=null)}function c(k){d(k);var A=k.state.placeholder=document.createElement("pre");A.style.cssText="height: 0; overflow: visible",A.style.direction=k.getOption("direction"),A.className="CodeMirror-placeholder CodeMirror-line-like";var B=k.getOption("placeholder");typeof B=="string"&&(B=document.createTextNode(B)),A.appendChild(B),k.display.lineSpace.insertBefore(A,k.display.lineSpace.firstChild)}function g(k){setTimeout(function(){var A=!1;if(k.lineCount()==1){var B=k.getInputField();A=B.nodeName=="TEXTAREA"?!k.getLine(0).length:!/[^\u200b]/.test(B.querySelector(".CodeMirror-line").textContent)}A?c(k):d(k)},20)}function b(k){T(k)&&c(k)}function I(k){var A=k.getWrapperElement(),B=T(k);A.className=A.className.replace(" CodeMirror-empty","")+(B?" CodeMirror-empty":""),B?c(k):d(k)}function T(k){return k.lineCount()===1&&k.getLine(0)===""}})})();var V7=Object.defineProperty,G7=Object.getOwnPropertyDescriptor,Ps=(s,i,l,d)=>{for(var c=d>1?void 0:d?G7(i,l):i,g=s.length-1,b;g>=0;g--)(b=s[g])&&(c=(d?b(i,l,c):b(c))||c);return d&&c&&V7(i,l,c),c};Au.defineMode("nunjucks",(s,i)=>Au.overlayMode(Au.getMode(s,i.backdrop||"text/html"),Au.getMode(s,"jinja2")));const _p=Le("input-code"),q7=["json","nunjucks","javascript","solr"],j7={json:{name:"javascript",json:!0},javascript:"javascript",nunjucks:"nunjucks",solr:"solr"};exports.InputCode=class extends cn{constructor(){super(...arguments),this.mode="nunjucks",this.size="x-large",this.height=10,this.hideLineNumbers=!1}changeHandler(s){this.value=s.getValue(),this.dispatchChange()}updated(s){var l,d;super.updated(s);const i=this.disabled||this.readonly;this.value!==this.editorValue&&(this.editorValue=this.value||""),i!==((l=this.editor)==null?void 0:l.isReadOnly())&&((d=this.editor)==null||d.setOption("readOnly",this.disabled?"nocursor":this.readonly)),setTimeout(()=>{var c;return(c=this.editor)==null?void 0:c.refresh()})}get editorValue(){var s;return((s=this.editor)==null?void 0:s.getDoc().getValue())||""}set editorValue(s){var i;(i=this.editor)==null||i.setValue(s)}firstUpdated(){var i;const s=(i=this.shadowRoot)==null?void 0:i.querySelector(".editor");s&&(this.editor=Au.fromTextArea(s,{mode:j7[this.mode],value:this.value,lineNumbers:!this.hideLineNumbers,readOnly:this.disabled?"nocursor":this.readonly,smartIndent:!0,theme:"skedulo"}),this.editor.setSize("100%",`${24*this.height}px`),this.editor.setOption("extraKeys",{Tab:l=>{const d=Array((l.getOption("indentUnit")||0)+1).join(" ");l.replaceSelection(d)}}),this.editor.on("change",this.changeHandler.bind(this)),setTimeout(()=>{var l;return(l=this.editor)==null?void 0:l.refresh()}))}disconnectedCallback(){var s;super.disconnectedCallback(),(s=this.editor)==null||s.off("change",this.changeHandler)}renderInput(){return j`
2419
2423
  <textarea class="editor" placeholder="${zt(this.placeholder)}">
2420
2424
  ${this.value}</textarea
2421
2425
  >
2422
- `}};exports.InputCode.styles=[...un.styles,ce`
2423
- ${Ca(D7)}
2426
+ `}};exports.InputCode.styles=[...cn.styles,ue`
2427
+ ${Ca(W7)}
2424
2428
 
2425
2429
  :host([size="full"]) {
2426
2430
  width: 100%;
@@ -2484,36 +2488,36 @@ ${this.value}</textarea
2484
2488
  .CodeMirror pre.CodeMirror-placeholder {
2485
2489
  color: var(--brz-color-neutral-500);
2486
2490
  }
2487
- `,R7];Ps([R()],exports.InputCode.prototype,"mode",2);Ps([R({reflect:!0})],exports.InputCode.prototype,"size",2);Ps([R({type:Number})],exports.InputCode.prototype,"height",2);Ps([R({type:Boolean,attribute:"hide-line-numbers"})],exports.InputCode.prototype,"hideLineNumbers",2);Ps([Re()],exports.InputCode.prototype,"editor",2);exports.InputCode=Ps([X(yp)],exports.InputCode);let Ld=(s=21)=>crypto.getRandomValues(new Uint8Array(s)).reduce((i,l)=>(l&=63,l<36?i+=l.toString(36):l<62?i+=(l-26).toString(36).toUpperCase():l>62?i+="-":i+="_",i),"");/**
2491
+ `,U7];Ps([R()],exports.InputCode.prototype,"mode",2);Ps([R({reflect:!0})],exports.InputCode.prototype,"size",2);Ps([R({type:Number})],exports.InputCode.prototype,"height",2);Ps([R({type:Boolean,attribute:"hide-line-numbers"})],exports.InputCode.prototype,"hideLineNumbers",2);Ps([Re()],exports.InputCode.prototype,"editor",2);exports.InputCode=Ps([X(_p)],exports.InputCode);let Ld=(s=21)=>crypto.getRandomValues(new Uint8Array(s)).reduce((i,l)=>(l&=63,l<36?i+=l.toString(36):l<62?i+=(l-26).toString(36).toUpperCase():l>62?i+="-":i+="_",i),"");/**
2488
2492
  * @license
2489
2493
  * Copyright 2020 Google LLC
2490
2494
  * SPDX-License-Identifier: BSD-3-Clause
2491
- */const{I:G7}=Gv,sh=()=>document.createComment(""),Eu=(s,i,l)=>{var d;const c=s._$AA.parentNode,g=i===void 0?s._$AB:i._$AA;if(l===void 0){const b=c.insertBefore(sh(),g),I=c.insertBefore(sh(),g);l=new G7(b,I,s,s.options)}else{const b=l._$AB.nextSibling,I=l._$AM,T=I!==s;if(T){let k;(d=l._$AQ)===null||d===void 0||d.call(l,s),l._$AM=s,l._$AP!==void 0&&(k=s._$AU)!==I._$AU&&l._$AP(k)}if(b!==g||T){let k=l._$AA;for(;k!==b;){const A=k.nextSibling;c.insertBefore(k,g),k=A}}}return l},cl=(s,i,l=s)=>(s._$AI(i,l),s),V7={},q7=(s,i=V7)=>s._$AH=i,j7=s=>s._$AH,pd=s=>{var i;(i=s._$AP)===null||i===void 0||i.call(s,!1,!0);let l=s._$AA;const d=s._$AB.nextSibling;for(;l!==d;){const c=l.nextSibling;l.remove(),l=c}};/**
2495
+ */const{I:K7}=Xv,fh=()=>document.createComment(""),Eu=(s,i,l)=>{var d;const c=s._$AA.parentNode,g=i===void 0?s._$AB:i._$AA;if(l===void 0){const b=c.insertBefore(fh(),g),I=c.insertBefore(fh(),g);l=new K7(b,I,s,s.options)}else{const b=l._$AB.nextSibling,I=l._$AM,T=I!==s;if(T){let k;(d=l._$AQ)===null||d===void 0||d.call(l,s),l._$AM=s,l._$AP!==void 0&&(k=s._$AU)!==I._$AU&&l._$AP(k)}if(b!==g||T){let k=l._$AA;for(;k!==b;){const A=k.nextSibling;c.insertBefore(k,g),k=A}}}return l},cl=(s,i,l=s)=>(s._$AI(i,l),s),Y7={},X7=(s,i=Y7)=>s._$AH=i,Q7=s=>s._$AH,pd=s=>{var i;(i=s._$AP)===null||i===void 0||i.call(s,!1,!0);let l=s._$AA;const d=s._$AB.nextSibling;for(;l!==d;){const c=l.nextSibling;l.remove(),l=c}};/**
2492
2496
  * @license
2493
2497
  * Copyright 2017 Google LLC
2494
2498
  * SPDX-License-Identifier: BSD-3-Clause
2495
- */const uh=(s,i,l)=>{const d=new Map;for(let c=i;c<=l;c++)d.set(s[c],c);return d},K7=F0(class extends W0{constructor(s){if(super(s),s.type!==B0.CHILD)throw Error("repeat() can only be used in text expressions")}ht(s,i,l){let d;l===void 0?l=i:i!==void 0&&(d=i);const c=[],g=[];let b=0;for(const I of s)c[b]=d?d(I,b):b,g[b]=l(I,b),b++;return{values:g,keys:c}}render(s,i,l){return this.ht(s,i,l).values}update(s,[i,l,d]){var c;const g=j7(s),{values:b,keys:I}=this.ht(i,l,d);if(!Array.isArray(g))return this.ut=I,b;const T=(c=this.ut)!==null&&c!==void 0?c:this.ut=[],k=[];let A,B,U=0,Z=g.length-1,re=0,ve=b.length-1;for(;U<=Z&&re<=ve;)if(g[U]===null)U++;else if(g[Z]===null)Z--;else if(T[U]===I[re])k[re]=cl(g[U],b[re]),U++,re++;else if(T[Z]===I[ve])k[ve]=cl(g[Z],b[ve]),Z--,ve--;else if(T[U]===I[ve])k[ve]=cl(g[U],b[ve]),Eu(s,k[ve+1],g[U]),U++,ve--;else if(T[Z]===I[re])k[re]=cl(g[Z],b[re]),Eu(s,g[U],g[Z]),Z--,re++;else if(A===void 0&&(A=uh(I,re,ve),B=uh(T,U,Z)),A.has(T[U]))if(A.has(T[Z])){const ge=B.get(I[re]),Me=ge!==void 0?g[ge]:null;if(Me===null){const Te=Eu(s,g[U]);cl(Te,b[re]),k[re]=Te}else k[re]=cl(Me,b[re]),Eu(s,g[U],Me),g[ge]=null;re++}else pd(g[Z]),Z--;else pd(g[U]),U++;for(;re<=ve;){const ge=Eu(s,k[ve+1]);cl(ge,b[re]),k[re++]=ge}for(;U<=Z;){const ge=g[U++];ge!==null&&pd(ge)}return this.ut=I,q7(s,k),Xi}});/**
2499
+ */const hh=(s,i,l)=>{const d=new Map;for(let c=i;c<=l;c++)d.set(s[c],c);return d},J7=F0(class extends W0{constructor(s){if(super(s),s.type!==B0.CHILD)throw Error("repeat() can only be used in text expressions")}ht(s,i,l){let d;l===void 0?l=i:i!==void 0&&(d=i);const c=[],g=[];let b=0;for(const I of s)c[b]=d?d(I,b):b,g[b]=l(I,b),b++;return{values:g,keys:c}}render(s,i,l){return this.ht(s,i,l).values}update(s,[i,l,d]){var c;const g=Q7(s),{values:b,keys:I}=this.ht(i,l,d);if(!Array.isArray(g))return this.ut=I,b;const T=(c=this.ut)!==null&&c!==void 0?c:this.ut=[],k=[];let A,B,U=0,Z=g.length-1,re=0,ve=b.length-1;for(;U<=Z&&re<=ve;)if(g[U]===null)U++;else if(g[Z]===null)Z--;else if(T[U]===I[re])k[re]=cl(g[U],b[re]),U++,re++;else if(T[Z]===I[ve])k[ve]=cl(g[Z],b[ve]),Z--,ve--;else if(T[U]===I[ve])k[ve]=cl(g[U],b[ve]),Eu(s,k[ve+1],g[U]),U++,ve--;else if(T[Z]===I[re])k[re]=cl(g[Z],b[re]),Eu(s,g[U],g[Z]),Z--,re++;else if(A===void 0&&(A=hh(I,re,ve),B=hh(T,U,Z)),A.has(T[U]))if(A.has(T[Z])){const ge=B.get(I[re]),Me=ge!==void 0?g[ge]:null;if(Me===null){const Te=Eu(s,g[U]);cl(Te,b[re]),k[re]=Te}else k[re]=cl(Me,b[re]),Eu(s,g[U],Me),g[ge]=null;re++}else pd(g[Z]),Z--;else pd(g[U]),U++;for(;re<=ve;){const ge=Eu(s,k[ve+1]);cl(ge,b[re]),k[re++]=ge}for(;U<=Z;){const ge=g[U++];ge!==null&&pd(ge)}return this.ut=I,X7(s,k),Xi}});/**
2496
2500
  * @license
2497
2501
  * Copyright 2018 Google LLC
2498
2502
  * SPDX-License-Identifier: BSD-3-Clause
2499
- */const Y7=F0(class extends W0{constructor(s){var i;if(super(s),s.type!==B0.ATTRIBUTE||s.name!=="style"||((i=s.strings)===null||i===void 0?void 0:i.length)>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(s){return Object.keys(s).reduce((i,l)=>{const d=s[l];return d==null?i:i+`${l=l.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${d};`},"")}update(s,[i]){const{style:l}=s.element;if(this.vt===void 0){this.vt=new Set;for(const d in i)this.vt.add(d);return this.render(i)}this.vt.forEach(d=>{i[d]==null&&(this.vt.delete(d),d.includes("-")?l.removeProperty(d):l[d]="")});for(const d in i){const c=i[d];c!=null&&(this.vt.add(d),d.includes("-")?l.setProperty(d,c):l[d]=c)}return Xi}});var X7=Object.defineProperty,Q7=Object.getOwnPropertyDescriptor,zn=(s,i,l,d)=>{for(var c=d>1?void 0:d?Q7(i,l):i,g=s.length-1,b;g>=0;g--)(b=s[g])&&(c=(d?b(i,l,c):b(c))||c);return d&&c&&X7(i,l,c),c};const Zd=Le("virtual-list");exports.VirtualList=class extends Be{constructor(){super(...arguments),this.items=[],this.itemMinHeight=32,this.overscan=50,this.renderItem=(s,i)=>K`
2503
+ */const e9=F0(class extends W0{constructor(s){var i;if(super(s),s.type!==B0.ATTRIBUTE||s.name!=="style"||((i=s.strings)===null||i===void 0?void 0:i.length)>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(s){return Object.keys(s).reduce((i,l)=>{const d=s[l];return d==null?i:i+`${l=l.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${d};`},"")}update(s,[i]){const{style:l}=s.element;if(this.vt===void 0){this.vt=new Set;for(const d in i)this.vt.add(d);return this.render(i)}this.vt.forEach(d=>{i[d]==null&&(this.vt.delete(d),d.includes("-")?l.removeProperty(d):l[d]="")});for(const d in i){const c=i[d];c!=null&&(this.vt.add(d),d.includes("-")?l.setProperty(d,c):l[d]=c)}return Xi}});var t9=Object.defineProperty,r9=Object.getOwnPropertyDescriptor,zn=(s,i,l,d)=>{for(var c=d>1?void 0:d?r9(i,l):i,g=s.length-1,b;g>=0;g--)(b=s[g])&&(c=(d?b(i,l,c):b(c))||c);return d&&c&&t9(i,l,c),c};const Zd=Le("virtual-list");exports.VirtualList=class extends Be{constructor(){super(...arguments),this.items=[],this.itemMinHeight=32,this.overscan=50,this.renderItem=(s,i)=>j`
2500
2504
  <div
2501
2505
  class="default-render-item"
2502
2506
  style="min-height: ${this.itemMinHeight}px"
2503
2507
  >
2504
2508
  Item ${i}: ${JSON.stringify(s)}
2505
2509
  </div>
2506
- `,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(s){super.updated(s),this.canSync(s)&&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((s,i)=>s+i,0)/this.originalItemsCount}get slicedItemHeightMode(){const s={};let i=0,l=0;return this.itemHeights.slice(0,this.overscan).forEach(d=>{s[d]?s[d]++:s[d]=1,s[d]>l&&(i=d,l=s[d])}),i}resetItems(){this.visibleItems=[],this.currentItemsCount=this.items.length,this.endIndex=this.currentItemsCount-1,this.innerHeight=this.estimatedInnerHeight}canSync(s){return["items","renderItem"].reduce((i,l)=>i||s.has(l),!1)}sumOfHeightsToIndex(s){return this.itemHeights.slice(0,s).reduce((i,l)=>(i+=l,i),0)}syncVisibleItems(){this.resetItems();for(let s=this.rollingStartIndex;s<=this.rollingEndIndex;s++){const i={position:"absolute",top:`${this.sumOfHeightsToIndex(s)}px`,width:"100%"},l=this.renderItem(this.items[s],s);if(!this.itemIdentifier){const g=Th(l,new DocumentFragment).parentNode.firstElementChild,b=g==null?void 0:g.tagName.toLowerCase(),I=g==null?void 0:g.className;this.itemIdentifier=`${b}${I?`.${I}`:""}`}const d=K`
2507
- <div class="item-wrapper" style=${Y7(i)}>
2510
+ `,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(s){super.updated(s),this.canSync(s)&&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((s,i)=>s+i,0)/this.originalItemsCount}get slicedItemHeightMode(){const s={};let i=0,l=0;return this.itemHeights.slice(0,this.overscan).forEach(d=>{s[d]?s[d]++:s[d]=1,s[d]>l&&(i=d,l=s[d])}),i}resetItems(){this.visibleItems=[],this.currentItemsCount=this.items.length,this.endIndex=this.currentItemsCount-1,this.innerHeight=this.estimatedInnerHeight}canSync(s){return["items","renderItem"].reduce((i,l)=>i||s.has(l),!1)}sumOfHeightsToIndex(s){return this.itemHeights.slice(0,s).reduce((i,l)=>(i+=l,i),0)}syncVisibleItems(){this.resetItems();for(let s=this.rollingStartIndex;s<=this.rollingEndIndex;s++){const i={position:"absolute",top:`${this.sumOfHeightsToIndex(s)}px`,width:"100%"},l=this.renderItem(this.items[s],s);if(!this.itemIdentifier){const g=Ah(l,new DocumentFragment).parentNode.firstElementChild,b=g==null?void 0:g.tagName.toLowerCase(),I=g==null?void 0:g.className;this.itemIdentifier=`${b}${I?`.${I}`:""}`}const d=j`
2511
+ <div class="item-wrapper" style=${e9(i)}>
2508
2512
  ${l}
2509
2513
  </div>
2510
- `;this.visibleItems.push({index:s,item:d})}this.updateItemHeights(),this.emitUpdate()}async emitUpdate(){await this.updateComplete;const s=[...this.list.children].map(i=>i.firstElementChild);this.dispatchEvent(new Cp({detail:{itemElements:s}}))}async updateItemHeights(){await this.updateComplete,this.visibleItems.forEach(({index:s},i)=>{var l,d;this.itemHeights[s]=((d=(l=this.visibleItemElements)==null?void 0:l[i])==null?void 0:d.getBoundingClientRect().height)||this.itemHeights[s]})}get visibleItemElements(){var s;if(!this.itemIdentifier)throw new Error("Each list item should be wrapped in a single layout element. Check your renderItem template.");return(s=this.shadowRoot)==null?void 0:s.querySelectorAll(this.itemIdentifier)}handleScroll(s){var i;this.currentScrollTop=(i=s.currentTarget)==null?void 0:i.scrollTop,this.syncVisibleItems()}get rollingStartIndex(){const s=Math.floor(this.currentScrollTop/this.estimatedItemMinHeight),i=Math.min(this.overscan,s);return s-i}get rollingEndIndex(){const s=Math.min(this.endIndex,Math.floor((this.currentScrollTop+this.containerHeight)/this.estimatedItemMinHeight)),i=Math.min(this.overscan,this.endIndex-s);return s+i}get containerHeight(){return this.getBoundingClientRect().height}render(){return this.updateItemHeights(),K`
2514
+ `;this.visibleItems.push({index:s,item:d})}this.updateItemHeights(),this.emitUpdate()}async emitUpdate(){await this.updateComplete;const s=[...this.list.children].map(i=>i.firstElementChild);this.dispatchEvent(new Sp({detail:{itemElements:s}}))}async updateItemHeights(){await this.updateComplete,this.visibleItems.forEach(({index:s},i)=>{var l,d;this.itemHeights[s]=((d=(l=this.visibleItemElements)==null?void 0:l[i])==null?void 0:d.getBoundingClientRect().height)||this.itemHeights[s]})}get visibleItemElements(){var s;if(!this.itemIdentifier)throw new Error("Each list item should be wrapped in a single layout element. Check your renderItem template.");return(s=this.shadowRoot)==null?void 0:s.querySelectorAll(this.itemIdentifier)}handleScroll(s){var i;this.currentScrollTop=(i=s.currentTarget)==null?void 0:i.scrollTop,this.syncVisibleItems()}get rollingStartIndex(){const s=Math.floor(this.currentScrollTop/this.estimatedItemMinHeight),i=Math.min(this.overscan,s);return s-i}get rollingEndIndex(){const s=Math.min(this.endIndex,Math.floor((this.currentScrollTop+this.containerHeight)/this.estimatedItemMinHeight)),i=Math.min(this.overscan,this.endIndex-s);return s+i}get containerHeight(){return this.getBoundingClientRect().height}render(){return this.updateItemHeights(),j`
2511
2515
  <div class="container" @scroll=${this.handleScroll}>
2512
2516
  <div class="list" style="height: ${this.innerHeight}px">
2513
- ${K7(this.visibleItems,({index:s})=>s,({item:s})=>s)}
2517
+ ${J7(this.visibleItems,({index:s})=>s,({item:s})=>s)}
2514
2518
  </div>
2515
2519
  </div>
2516
- `}};exports.VirtualList.styles=[ce`
2520
+ `}};exports.VirtualList.styles=[ue`
2517
2521
  :host {
2518
2522
  width: 100%;
2519
2523
  }
@@ -2527,7 +2531,7 @@ ${this.value}</textarea
2527
2531
  .list {
2528
2532
  position: relative;
2529
2533
  }
2530
- `];zn([R({type:Array})],exports.VirtualList.prototype,"items",2);zn([R({attribute:"item-min-height",type:Number})],exports.VirtualList.prototype,"itemMinHeight",2);zn([R({type:Number,attribute:"overscan"})],exports.VirtualList.prototype,"overscan",2);zn([R({attribute:!1})],exports.VirtualList.prototype,"renderItem",2);zn([Re()],exports.VirtualList.prototype,"currentScrollTop",2);zn([Re()],exports.VirtualList.prototype,"endIndex",2);zn([Re()],exports.VirtualList.prototype,"innerHeight",2);zn([Re()],exports.VirtualList.prototype,"itemHeights",2);zn([Re()],exports.VirtualList.prototype,"itemIdentifier",2);zn([Re()],exports.VirtualList.prototype,"originalItemsCount",2);zn([Re()],exports.VirtualList.prototype,"currentItemsCount",2);zn([Re()],exports.VirtualList.prototype,"visibleItems",2);zn([Ji(".list")],exports.VirtualList.prototype,"list",2);exports.VirtualList=zn([X(Zd)],exports.VirtualList);class Cp extends CustomEvent{constructor(i={}){super("brz-virtual-list-update",{bubbles:!0,composed:!0,...i})}}var J7=Object.defineProperty,e9=Object.getOwnPropertyDescriptor,Ci=(s,i,l,d)=>{for(var c=d>1?void 0:d?e9(i,l):i,g=s.length-1,b;g>=0;g--)(b=s[g])&&(c=(d?b(i,l,c):b(c))||c);return d&&c&&J7(i,l,c),c};const Uu="searchMessage";class Ar extends un{constructor(){super(...arguments),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(i=>({...i,id:`option-${Ld()}`}))]:[]}updated(i){super.updated(i),i.has("options")&&this.setInnerOptions(),i.has("value")&&this.updateComplete.then(()=>{this.handleValueChange()})}getItemLabel(i){var l,d;return i?i instanceof exports.MenuItem?(d=(l=i.textContent)==null?void 0:l.trim())!=null?d:"":i.label:""}handleKeyDown(i){["ArrowUp","ArrowDown"].includes(i.key)&&(i.preventDefault(),this.dropdown.open())}handleKeyUp(i){i.key===" "&&this.canSearch&&(i.preventDefault(),this.dropdown.open())}get defaultSlot(){var i,l;return(l=(i=this.renderRoot)==null?void 0:i.querySelector("slot:not([name])"))==null?void 0:l.assignedSlot}getItems(){return this.isDataDriven?this.innerOptions:this.optionElements}get optionElementsRenderRoot(){var i;return this.isDataDriven?(i=this.virtualListElement)==null?void 0:i.renderRoot:this}get virtualListElement(){return this.renderRoot.querySelector(Zd)}get optionElements(){var l,d,c;const i=(l=this.optionElementsRenderRoot)!=null&&l.querySelectorAll(D0).length?(d=this.optionElementsRenderRoot)==null?void 0:d.querySelectorAll(D0):(c=this.optionElementsRenderRoot)==null?void 0:c.querySelectorAll("sp-menu-item");return Array.from(i!=null?i:[])}setValue(i){this.value=i,this.handleValueChange(),this.dispatchChange()}handleSearchInputClick(i){this.isMenuOpen&&i.stopPropagation()}renderInput(){return this.updateComplete.then(()=>{var i;(i=this.dropdown)==null||i.updatePosition()}),this.isReadonlyOrDisabled?this.renderReferenceElement():K`
2534
+ `];zn([R({type:Array})],exports.VirtualList.prototype,"items",2);zn([R({attribute:"item-min-height",type:Number})],exports.VirtualList.prototype,"itemMinHeight",2);zn([R({type:Number,attribute:"overscan"})],exports.VirtualList.prototype,"overscan",2);zn([R({attribute:!1})],exports.VirtualList.prototype,"renderItem",2);zn([Re()],exports.VirtualList.prototype,"currentScrollTop",2);zn([Re()],exports.VirtualList.prototype,"endIndex",2);zn([Re()],exports.VirtualList.prototype,"innerHeight",2);zn([Re()],exports.VirtualList.prototype,"itemHeights",2);zn([Re()],exports.VirtualList.prototype,"itemIdentifier",2);zn([Re()],exports.VirtualList.prototype,"originalItemsCount",2);zn([Re()],exports.VirtualList.prototype,"currentItemsCount",2);zn([Re()],exports.VirtualList.prototype,"visibleItems",2);zn([Ji(".list")],exports.VirtualList.prototype,"list",2);exports.VirtualList=zn([X(Zd)],exports.VirtualList);class Sp extends CustomEvent{constructor(i={}){super("brz-virtual-list-update",{bubbles:!0,composed:!0,...i})}}var n9=Object.defineProperty,i9=Object.getOwnPropertyDescriptor,Ci=(s,i,l,d)=>{for(var c=d>1?void 0:d?i9(i,l):i,g=s.length-1,b;g>=0;g--)(b=s[g])&&(c=(d?b(i,l,c):b(c))||c);return d&&c&&n9(i,l,c),c};const Uu="searchMessage";class Lr extends cn{constructor(){super(...arguments),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(i=>({...i,id:`option-${Ld()}`}))]:[]}updated(i){super.updated(i),i.has("options")&&this.setInnerOptions(),i.has("value")&&this.updateComplete.then(()=>{this.handleValueChange()})}getItemLabel(i){var l,d;return i?i instanceof exports.MenuItem?(d=(l=i.textContent)==null?void 0:l.trim())!=null?d:"":i.label:""}handleKeyDown(i){["ArrowUp","ArrowDown"].includes(i.key)&&(i.preventDefault(),this.dropdown.open())}handleKeyUp(i){i.key===" "&&this.canSearch&&(i.preventDefault(),this.dropdown.open())}get defaultSlot(){var i,l;return(l=(i=this.renderRoot)==null?void 0:i.querySelector("slot:not([name])"))==null?void 0:l.assignedSlot}getItems(){return this.isDataDriven?this.innerOptions:this.optionElements}get optionElementsRenderRoot(){var i;return this.isDataDriven?(i=this.virtualListElement)==null?void 0:i.renderRoot:this}get virtualListElement(){return this.renderRoot.querySelector(Zd)}get optionElements(){var l,d,c;const i=(l=this.optionElementsRenderRoot)!=null&&l.querySelectorAll(D0).length?(d=this.optionElementsRenderRoot)==null?void 0:d.querySelectorAll(D0):(c=this.optionElementsRenderRoot)==null?void 0:c.querySelectorAll("sp-menu-item");return Array.from(i!=null?i:[])}setValue(i){this.value=i,this.handleValueChange(),this.dispatchChange()}handleSearchInputClick(i){this.isMenuOpen&&i.stopPropagation()}renderInput(){return this.updateComplete.then(()=>{var i;(i=this.dropdown)==null||i.updatePosition()}),this.isReadonlyOrDisabled?this.renderReferenceElement():j`
2531
2535
  <brz-dropdown-menu
2532
2536
  @brz-menu-select=${this.handleSelect}
2533
2537
  @brz-menu-item-select=${this.handleItemSelect}
@@ -2539,15 +2543,15 @@ ${this.value}</textarea
2539
2543
  >
2540
2544
  ${this.renderReferenceElement()} ${this.renderDropdownContent()}
2541
2545
  </brz-dropdown-menu>
2542
- `}renderSearchMessage(){return K`
2546
+ `}renderSearchMessage(){return j`
2543
2547
  <brz-menu-item slot="options" id=${Uu} disabled>
2544
2548
  ${this.searchMessage}
2545
2549
  </brz-menu-item>
2546
- `}renderReferenceElement(){return K``}renderDropdownContent(){return K``}renderOptionsData(i=this.innerOptions){return i!=null&&i.length?K`
2550
+ `}renderReferenceElement(){return j``}renderDropdownContent(){return j``}renderOptionsData(i=this.innerOptions){return i!=null&&i.length?j`
2547
2551
  <brz-virtual-list
2548
2552
  slot="options"
2549
2553
  .items=${i.filter(({hidden:l})=>!l)}
2550
- .renderItem=${({id:l,label:d,value:c,disabled:g,selected:b})=>K`
2554
+ .renderItem=${({id:l,label:d,value:c,disabled:g,selected:b})=>j`
2551
2555
  <brz-menu-item
2552
2556
  id=${l}
2553
2557
  value=${c}
@@ -2558,7 +2562,7 @@ ${this.value}</textarea
2558
2562
  </brz-menu-item>
2559
2563
  `}
2560
2564
  ></brz-virtual-list>
2561
- `:null}isQueryMatch(i){return this.query?this.getItemLabel(i).toLowerCase().includes(this.query.toLowerCase())||this.isCustomQueryMatch(i):!1}isCustomQueryMatch(i){return!1}handleOpenDropdown(){this.isMenuOpen=!0,this.canSearch&&this.queryInput.focus()}handleCloseDropdown(){this.isMenuOpen=!1}handleSelect(i){}handleItemSelect(i){}handleValueChange(){}handleQueryInput(i){const l=i.target;this.query=l==null?void 0:l.value,this.dispatchEvent(new wp({detail:{query:this.query}}))}get hasQueryResults(){return!!(!this.query||this.hasResults)}get isDataDriven(){var i;return!!((i=this.options)!=null&&i.length)}get isMulti(){return Array.isArray(this.value)}get isReadonlyOrDisabled(){return this.disabled||this.readonly}}Ar.styles=[...un.styles,ce`
2565
+ `:null}isQueryMatch(i){return this.query?this.getItemLabel(i).toLowerCase().includes(this.query.toLowerCase())||this.isCustomQueryMatch(i):!1}isCustomQueryMatch(i){return!1}handleOpenDropdown(){this.isMenuOpen=!0,this.canSearch&&this.queryInput.focus()}handleCloseDropdown(){this.isMenuOpen=!1}handleSelect(i){}handleItemSelect(i){}handleValueChange(){}handleQueryInput(i){const l=i.target;this.query=l==null?void 0:l.value,this.dispatchEvent(new Mp({detail:{query:this.query}}))}get hasQueryResults(){return!!(!this.query||this.hasResults)}get isDataDriven(){var i;return!!((i=this.options)!=null&&i.length)}get isMulti(){return Array.isArray(this.value)}get isReadonlyOrDisabled(){return this.disabled||this.readonly}}Lr.styles=[...cn.styles,ue`
2562
2566
  :host {
2563
2567
  /** 18px for icon, 10px for icon inset, spacing-2 for standard input padding **/
2564
2568
  --dropdown-decorator-offset: calc(18px + 10px + var(--input-padding));
@@ -2603,7 +2607,7 @@ ${this.value}</textarea
2603
2607
  }
2604
2608
 
2605
2609
  button.wrapper {
2606
- ${Ph};
2610
+ ${Dh};
2607
2611
  align-items: center;
2608
2612
  background-color: var(--brz-color-white);
2609
2613
  border: var(--input-border);
@@ -2641,7 +2645,7 @@ ${this.value}</textarea
2641
2645
  border-color: var(--input-focus-border-color);
2642
2646
  outline: none;
2643
2647
  }
2644
- `];Ci([R({attribute:"can-search",type:Boolean,reflect:!0})],Ar.prototype,"canSearch",2);Ci([R({type:Boolean,reflect:!0})],Ar.prototype,"loading",2);Ci([R({type:String,reflect:!0,attribute:"trailing-icon"})],Ar.prototype,"trailingIcon",2);Ci([R({type:Array})],Ar.prototype,"options",2);Ci([R({attribute:"search-message"})],Ar.prototype,"searchMessage",2);Ci([Re()],Ar.prototype,"isMenuOpen",2);Ci([Re()],Ar.prototype,"hasResults",2);Ci([Re()],Ar.prototype,"query",2);Ci([Re()],Ar.prototype,"innerOptions",2);Ci([Ji("brz-dropdown-menu")],Ar.prototype,"dropdown",2);Ci([Ji("#selectSearch")],Ar.prototype,"queryInput",2);class wp extends CustomEvent{constructor(i={}){super("brz-input-select-query-change",{bubbles:!0,composed:!0,...i})}}var t9=Object.defineProperty,r9=Object.getOwnPropertyDescriptor,Ku=(s,i,l,d)=>{for(var c=d>1?void 0:d?r9(i,l):i,g=s.length-1,b;g>=0;g--)(b=s[g])&&(c=(d?b(i,l,c):b(c))||c);return d&&c&&t9(i,l,c),c};const xp=Le("input-select");exports.InputSelect=class extends Ar{constructor(){super(...arguments),this.value="",this.query="",this.hasResults=!1}handleCloseDropdown(){super.handleCloseDropdown(),window.setTimeout(()=>{this.resetSearch(),this.setQueryInputValue()},200)}handleValueChange(){this.updateComplete.then(()=>{this.syncValueLabel(this.value),this.resetSearch()})}handleSelect(s){this.setValue(s.detail.selected[0])}setQueryInputValue(){!this.queryInput||(this.queryInput.value=this.query||this.valueLabel||"")}applySelectedStatusToChildren(){super.getItems().forEach(s=>{s.selected=this.value===s.value})}renderReferenceElement(){var s;return this.applySelectedStatusToChildren(),this.search(),K`
2648
+ `];Ci([R({attribute:"can-search",type:Boolean,reflect:!0})],Lr.prototype,"canSearch",2);Ci([R({type:Boolean,reflect:!0})],Lr.prototype,"loading",2);Ci([R({type:String,reflect:!0,attribute:"trailing-icon"})],Lr.prototype,"trailingIcon",2);Ci([R({type:Array})],Lr.prototype,"options",2);Ci([R({attribute:"search-message"})],Lr.prototype,"searchMessage",2);Ci([Re()],Lr.prototype,"isMenuOpen",2);Ci([Re()],Lr.prototype,"hasResults",2);Ci([Re()],Lr.prototype,"query",2);Ci([Re()],Lr.prototype,"innerOptions",2);Ci([Ji("brz-dropdown-menu")],Lr.prototype,"dropdown",2);Ci([Ji("#selectSearch")],Lr.prototype,"queryInput",2);class Mp extends CustomEvent{constructor(i={}){super("brz-input-select-query-change",{bubbles:!0,composed:!0,...i})}}var o9=Object.defineProperty,a9=Object.getOwnPropertyDescriptor,Ku=(s,i,l,d)=>{for(var c=d>1?void 0:d?a9(i,l):i,g=s.length-1,b;g>=0;g--)(b=s[g])&&(c=(d?b(i,l,c):b(c))||c);return d&&c&&o9(i,l,c),c};const kp=Le("input-select");exports.InputSelect=class extends Lr{constructor(){super(...arguments),this.value="",this.query="",this.hasResults=!1}handleCloseDropdown(){super.handleCloseDropdown(),window.setTimeout(()=>{this.resetSearch(),this.setQueryInputValue()},200)}handleValueChange(){this.updateComplete.then(()=>{this.syncValueLabel(this.value),this.resetSearch()})}handleSelect(s){this.setValue(s.detail.selected[0])}setQueryInputValue(){!this.queryInput||(this.queryInput.value=this.query||this.valueLabel||"")}applySelectedStatusToChildren(){super.getItems().forEach(s=>{s.selected=this.value===s.value})}renderReferenceElement(){var s;return this.applySelectedStatusToChildren(),this.search(),j`
2645
2649
  <button
2646
2650
  type="button"
2647
2651
  class="wrapper"
@@ -2650,12 +2654,12 @@ ${this.value}</textarea
2650
2654
  @keyup=${this.handleKeyUp}
2651
2655
  aria-required=${zt(this.required)}
2652
2656
  >
2653
- ${this.canSearch?null:K`
2657
+ ${this.canSearch?null:j`
2654
2658
  <span class=${this.value?"":"placeholder"}>
2655
2659
  ${this.valueLabel||this.placeholder}
2656
2660
  </span>
2657
2661
  `}
2658
- ${!this.isReadonlyOrDisabled&&this.canSearch?K`
2662
+ ${!this.isReadonlyOrDisabled&&this.canSearch?j`
2659
2663
  <input
2660
2664
  id="selectSearch"
2661
2665
  type="search"
@@ -2669,15 +2673,15 @@ ${this.value}</textarea
2669
2673
  class="search-area"
2670
2674
  />
2671
2675
  `:null}
2672
- ${this.loading?K`<brz-loading-spinner
2676
+ ${this.loading?j`<brz-loading-spinner
2673
2677
  aria-label="loading options"
2674
2678
  size="16"
2675
2679
  ></brz-loading-spinner>`:null}
2676
2680
  </button>
2677
- `}renderDropdownContent(){return K`
2681
+ `}renderDropdownContent(){return j`
2678
2682
  ${this.hasQueryResults?null:this.renderSearchMessage()}
2679
- ${this.isDataDriven?this.renderOptionsData():K` <slot slot="options"></slot> `}
2680
- `}resetSearch(){this.query=""}search(){var i;this.hasResults=!1;const s=(i=this.query)==null?void 0:i.toLowerCase();this.getItems().forEach(l=>{var c;if("id"in l&&l.id===Uu)return;if(!s||s===((c=this.valueLabel)==null?void 0:c.toLowerCase())){l.hidden=!1,this.hasResults=!0;return}const d=this.isQueryMatch(l);d&&(this.hasResults=!0),l.hidden=!d})}setInnerOptions(){this.innerOptions=this.isDataDriven?[...this.required?[]:[{id:`option-${Ld()}`,label:this.placeholder?this.placeholder:"Select an option",value:""}],...this.options.map(s=>({...s,id:`option-${Ld()}`}))]:[]}disconnectedCallback(){var s;(s=this.selectedOptionObserver)==null||s.disconnect(),super.disconnectedCallback()}syncValueLabel(s){var l,d;if((l=this.selectedOptionObserver)==null||l.disconnect(),this.isDataDriven&&this.isReadonlyOrDisabled){this.valueLabel=(d=this.innerOptions.find(c=>c.value===s))==null?void 0:d.label;return}const i=this.optionElements.find(c=>c.value===s);i&&(this.selectedOptionObserver=new MutationObserver(()=>{this.valueLabel=this.getItemLabel(i),this.resetSearch()}),i instanceof Node&&this.selectedOptionObserver.observe(i,{characterData:!1,childList:!0,attributes:!1}),this.valueLabel=this.value?this.getItemLabel(i):"")}};exports.InputSelect.styles=[...Ar.styles,ce`
2683
+ ${this.isDataDriven?this.renderOptionsData():j` <slot slot="options"></slot> `}
2684
+ `}resetSearch(){this.query=""}search(){var i;this.hasResults=!1;const s=(i=this.query)==null?void 0:i.toLowerCase();this.getItems().forEach(l=>{var c;if("id"in l&&l.id===Uu)return;if(!s||s===((c=this.valueLabel)==null?void 0:c.toLowerCase())){l.hidden=!1,this.hasResults=!0;return}const d=this.isQueryMatch(l);d&&(this.hasResults=!0),l.hidden=!d})}setInnerOptions(){this.innerOptions=this.isDataDriven?[...this.required?[]:[{id:`option-${Ld()}`,label:this.placeholder?this.placeholder:"Select an option",value:""}],...this.options.map(s=>({...s,id:`option-${Ld()}`}))]:[]}disconnectedCallback(){var s;(s=this.selectedOptionObserver)==null||s.disconnect(),super.disconnectedCallback()}syncValueLabel(s){var l,d;if((l=this.selectedOptionObserver)==null||l.disconnect(),this.isDataDriven&&this.isReadonlyOrDisabled){this.valueLabel=(d=this.innerOptions.find(c=>c.value===s))==null?void 0:d.label;return}const i=this.optionElements.find(c=>c.value===s);i&&(this.selectedOptionObserver=new MutationObserver(()=>{this.valueLabel=this.getItemLabel(i),this.resetSearch()}),i instanceof Node&&this.selectedOptionObserver.observe(i,{characterData:!1,childList:!0,attributes:!1}),this.valueLabel=this.value?this.getItemLabel(i):"")}};exports.InputSelect.styles=[...Lr.styles,ue`
2681
2685
  input {
2682
2686
  text-overflow: ellipsis;
2683
2687
  }
@@ -2708,20 +2712,20 @@ ${this.value}</textarea
2708
2712
  .placeholder {
2709
2713
  color: var(--input-placeholder-font-color);
2710
2714
  }
2711
- `];Ku([R({type:String})],exports.InputSelect.prototype,"value",2);Ku([Re()],exports.InputSelect.prototype,"query",2);Ku([Re()],exports.InputSelect.prototype,"valueLabel",2);Ku([Re()],exports.InputSelect.prototype,"hasResults",2);exports.InputSelect=Ku([X(xp)],exports.InputSelect);var n9=Object.defineProperty,i9=Object.getOwnPropertyDescriptor,wi=(s,i,l,d)=>{for(var c=d>1?void 0:d?i9(i,l):i,g=s.length-1,b;g>=0;g--)(b=s[g])&&(c=(d?b(i,l,c):b(c))||c);return d&&c&&n9(i,l,c),c};const zp=Le("lozenge"),o9=["neutral","green","orange","red","cyan","purple","sapphire"],a9=["solid","subtle","border"],l9=["small","medium","large"];class Lp extends CustomEvent{constructor(){super("brz-lozenge-delete",{bubbles:!0})}}exports.Lozenge=class extends Be{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(s){s.stopPropagation(),this.dispatchEvent(new Lp)}get iconSize(){switch(this.size){case"large":return 16;case"medium":return 14;case"small":return 12}}render(){var s;return this.updateComplete.then(()=>this.checkOverflow()),K`
2715
+ `];Ku([R({type:String})],exports.InputSelect.prototype,"value",2);Ku([Re()],exports.InputSelect.prototype,"query",2);Ku([Re()],exports.InputSelect.prototype,"valueLabel",2);Ku([Re()],exports.InputSelect.prototype,"hasResults",2);exports.InputSelect=Ku([X(kp)],exports.InputSelect);var l9=Object.defineProperty,s9=Object.getOwnPropertyDescriptor,wi=(s,i,l,d)=>{for(var c=d>1?void 0:d?s9(i,l):i,g=s.length-1,b;g>=0;g--)(b=s[g])&&(c=(d?b(i,l,c):b(c))||c);return d&&c&&l9(i,l,c),c};const Op=Le("lozenge"),u9=["neutral","green","orange","red","cyan","purple","sapphire"],c9=["solid","subtle","border"],d9=["small","medium","large"];class Tp extends CustomEvent{constructor(){super("brz-lozenge-delete",{bubbles:!0})}}exports.Lozenge=class extends Be{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(s){s.stopPropagation(),this.dispatchEvent(new Tp)}get iconSize(){switch(this.size){case"large":return 16;case"medium":return 14;case"small":return 12}}render(){var s;return this.updateComplete.then(()=>this.checkOverflow()),j`
2712
2716
  <brz-tooltip
2713
2717
  content=${(s=this.defaultSlot[0])==null?void 0:s.textContent}
2714
2718
  ?disabled=${!this.isOverflowing}
2715
2719
  is-fixed
2716
2720
  >
2717
2721
  <div class="lozenge">
2718
- ${this.leadingIcon&&K`
2722
+ ${this.leadingIcon&&j`
2719
2723
  <brz-icon size=${this.iconSize} icon=${this.leadingIcon}></brz-icon>
2720
2724
  `}
2721
2725
 
2722
2726
  <div class="message"><slot></slot></div>
2723
2727
 
2724
- ${this.canDelete?K`
2728
+ ${this.canDelete?j`
2725
2729
  <button
2726
2730
  type="button"
2727
2731
  class="close"
@@ -2734,7 +2738,7 @@ ${this.value}</textarea
2734
2738
  `:null}
2735
2739
  </div>
2736
2740
  </brz-tooltip>
2737
- `}};exports.Lozenge.styles=ce`
2741
+ `}};exports.Lozenge.styles=ue`
2738
2742
  :host {
2739
2743
  --brz-lozenge-max-width: calc(3 * var(--brz-spacing-16));
2740
2744
  --brz-lozenge-color-primary: var(--brz-color-neutral-750);
@@ -2860,7 +2864,7 @@ ${this.value}</textarea
2860
2864
  margin-right: var(--brz-spacing-2);
2861
2865
  }
2862
2866
 
2863
- ${Ih(".close",ce`
2867
+ ${Rh(".close",ue`
2864
2868
  margin-right: calc(0px - var(--brz-spacing-1));
2865
2869
  `)}
2866
2870
 
@@ -2878,9 +2882,9 @@ ${this.value}</textarea
2878
2882
  color: var(--brz-color-neutral-550);
2879
2883
  cursor: unset;
2880
2884
  }
2881
- `;wi([R({type:String,attribute:"size",reflect:!0})],exports.Lozenge.prototype,"size",2);wi([R({type:String,attribute:"theme",reflect:!0})],exports.Lozenge.prototype,"theme",2);wi([R({type:String,attribute:"color",reflect:!0})],exports.Lozenge.prototype,"color",2);wi([R({type:String,attribute:"leading-icon",reflect:!0})],exports.Lozenge.prototype,"leadingIcon",2);wi([R({type:Boolean,attribute:"can-delete",reflect:!0})],exports.Lozenge.prototype,"canDelete",2);wi([R({type:Boolean,attribute:"disabled",reflect:!0})],exports.Lozenge.prototype,"disabled",2);wi([R({type:Boolean,attribute:"no-truncate",reflect:!0})],exports.Lozenge.prototype,"noTruncate",2);wi([kd()],exports.Lozenge.prototype,"defaultSlot",2);wi([qv(".message")],exports.Lozenge.prototype,"message",2);wi([Re()],exports.Lozenge.prototype,"isOverflowing",2);exports.Lozenge=wi([X(zp)],exports.Lozenge);var s9=Object.defineProperty,u9=Object.getOwnPropertyDescriptor,Yu=(s,i,l,d)=>{for(var c=d>1?void 0:d?u9(i,l):i,g=s.length-1,b;g>=0;g--)(b=s[g])&&(c=(d?b(i,l,c):b(c))||c);return d&&c&&s9(i,l,c),c};const _p=Le("input-multiselect");exports.InputMultiselect=class extends Ar{constructor(){super(...arguments),this.size="x-large",this.truncateValuesAfter=20,this.value=[],this.valueLabels=[]}updated(s){super.updated(s),this.dropdown&&(this.dropdown.multiselect=!0),this.isDataDriven&&!this.innerOptions.find(i=>i.id===vi)&&this.innerOptions.unshift(this.selectAllOption)}get allSelected(){const{enabled:s,toggled:i}=[...this.getItems()].reduce((l,d)=>d.id===vi?l:{enabled:d.disabled?l.enabled:l.enabled+1,toggled:d.selected?l.toggled+1:l.toggled},{enabled:0,toggled:0});return s===i}dispatchChange(){this.dispatchEvent(new CustomEvent("brz-input-change",{detail:{value:[...this.value||[]]}}))}handleCloseDropdown(){super.handleCloseDropdown(),window.setTimeout(()=>{this.resetSearch(),this.setQueryInputValue()},200)}handleValueChange(){this.syncValueLabels()}handleSelect(s){this.setValue(s.detail.selected)}handleItemSelect({detail:{item:s}}){s.id===vi&&this.toggleAllSelected()}toggleAllSelected(){const s=[];this.allSelected||this.getItems().forEach(i=>{!i.disabled&&i.id!==vi&&s.push(i.value)}),this.setValue(s),this.handleValueChange()}toggleSelection(s){const i=this.value?[...this.value]:[],l=i.indexOf(s);l>-1&&i.splice(l,1),l===-1&&i.push(s),this.setValue(i)}syncSelected(){this.getItems().forEach(s=>{const i=this.value&&this.value.includes(s.value);s.selected=s.id===vi?this.allSelected:i})}get truncation(){return this.value&&this.value.length>this.truncateValuesAfter?K`<span class="truncation"
2885
+ `;wi([R({type:String,attribute:"size",reflect:!0})],exports.Lozenge.prototype,"size",2);wi([R({type:String,attribute:"theme",reflect:!0})],exports.Lozenge.prototype,"theme",2);wi([R({type:String,attribute:"color",reflect:!0})],exports.Lozenge.prototype,"color",2);wi([R({type:String,attribute:"leading-icon",reflect:!0})],exports.Lozenge.prototype,"leadingIcon",2);wi([R({type:Boolean,attribute:"can-delete",reflect:!0})],exports.Lozenge.prototype,"canDelete",2);wi([R({type:Boolean,attribute:"disabled",reflect:!0})],exports.Lozenge.prototype,"disabled",2);wi([R({type:Boolean,attribute:"no-truncate",reflect:!0})],exports.Lozenge.prototype,"noTruncate",2);wi([kd()],exports.Lozenge.prototype,"defaultSlot",2);wi([Jv(".message")],exports.Lozenge.prototype,"message",2);wi([Re()],exports.Lozenge.prototype,"isOverflowing",2);exports.Lozenge=wi([X(Op)],exports.Lozenge);var f9=Object.defineProperty,h9=Object.getOwnPropertyDescriptor,Yu=(s,i,l,d)=>{for(var c=d>1?void 0:d?h9(i,l):i,g=s.length-1,b;g>=0;g--)(b=s[g])&&(c=(d?b(i,l,c):b(c))||c);return d&&c&&f9(i,l,c),c};const Ep=Le("input-multiselect");exports.InputMultiselect=class extends Lr{constructor(){super(...arguments),this.size="x-large",this.truncateValuesAfter=20,this.value=[],this.valueLabels=[]}updated(s){super.updated(s),this.dropdown&&(this.dropdown.multiselect=!0),this.isDataDriven&&!this.innerOptions.find(i=>i.id===vi)&&this.innerOptions.unshift(this.selectAllOption)}get allSelected(){const{enabled:s,toggled:i}=[...this.getItems()].reduce((l,d)=>d.id===vi?l:{enabled:d.disabled?l.enabled:l.enabled+1,toggled:d.selected?l.toggled+1:l.toggled},{enabled:0,toggled:0});return s===i}dispatchChange(){this.dispatchEvent(new CustomEvent("brz-input-change",{detail:{value:[...this.value||[]]}}))}handleCloseDropdown(){super.handleCloseDropdown(),window.setTimeout(()=>{this.resetSearch(),this.setQueryInputValue()},200)}handleValueChange(){this.syncValueLabels()}handleSelect(s){this.setValue(s.detail.selected)}handleItemSelect({detail:{item:s}}){s.id===vi&&this.toggleAllSelected()}toggleAllSelected(){const s=[];this.allSelected||this.getItems().forEach(i=>{!i.disabled&&i.id!==vi&&s.push(i.value)}),this.setValue(s),this.handleValueChange()}toggleSelection(s){const i=this.value?[...this.value]:[],l=i.indexOf(s);l>-1&&i.splice(l,1),l===-1&&i.push(s),this.setValue(i)}syncSelected(){this.getItems().forEach(s=>{const i=this.value&&this.value.includes(s.value);s.selected=s.id===vi?this.allSelected:i})}get truncation(){return this.value&&this.value.length>this.truncateValuesAfter?j`<span class="truncation"
2882
2886
  >+${this.value.length-this.truncateValuesAfter} more</span
2883
- >`:null}handleKeyDown(s){super.handleKeyDown(s),s.key==="Backspace"&&(this.isReadonlyOrDisabled||this.removeLastValue())}renderReferenceElement(){return this.syncSelected(),this.search(),K`
2887
+ >`:null}handleKeyDown(s){super.handleKeyDown(s),s.key==="Backspace"&&(this.isReadonlyOrDisabled||this.removeLastValue())}renderReferenceElement(){return this.syncSelected(),this.search(),j`
2884
2888
  <button
2885
2889
  type="button"
2886
2890
  class="wrapper"
@@ -2889,8 +2893,8 @@ ${this.value}</textarea
2889
2893
  @keyup=${this.handleKeyUp}
2890
2894
  >
2891
2895
  <div class="selected-options">
2892
- ${!this.canSearch&&this.valueLabels.length===0?K` <div class="placeholder">${this.placeholder}</div> `:void 0}
2893
- ${this.valueLabels.map(({value:s,label:i})=>K`
2896
+ ${!this.canSearch&&this.valueLabels.length===0?j` <div class="placeholder">${this.placeholder}</div> `:void 0}
2897
+ ${this.valueLabels.map(({value:s,label:i})=>j`
2894
2898
  <brz-lozenge
2895
2899
  size="small"
2896
2900
  color="neutral"
@@ -2903,7 +2907,7 @@ ${this.value}</textarea
2903
2907
  </brz-lozenge>
2904
2908
  `)}
2905
2909
  ${this.truncation}
2906
- ${!this.isReadonlyOrDisabled&&this.canSearch?K`
2910
+ ${!this.isReadonlyOrDisabled&&this.canSearch?j`
2907
2911
  <input
2908
2912
  id="selectSearch"
2909
2913
  type="search"
@@ -2915,12 +2919,12 @@ ${this.value}</textarea
2915
2919
  />
2916
2920
  `:null}
2917
2921
  </div>
2918
- ${this.loading?K`<brz-loading-spinner
2922
+ ${this.loading?j`<brz-loading-spinner
2919
2923
  aria-label="loading options"
2920
2924
  size="16"
2921
2925
  ></brz-loading-spinner>`:null}
2922
2926
  </button>
2923
- `}get selectAllOption(){return{id:vi,value:vi,label:"Select all",selected:this.allSelected}}get selectAllOptionElement(){const{id:s,value:i,label:l,selected:d}=this.selectAllOption;return K`
2927
+ `}get selectAllOption(){return{id:vi,value:vi,label:"Select all",selected:this.allSelected}}get selectAllOptionElement(){const{id:s,value:i,label:l,selected:d}=this.selectAllOption;return j`
2924
2928
  <brz-menu-item
2925
2929
  slot="options"
2926
2930
  id=${s}
@@ -2929,10 +2933,10 @@ ${this.value}</textarea
2929
2933
  >
2930
2934
  ${l}
2931
2935
  </brz-menu-item>
2932
- `}renderDropdownContent(){return K`
2936
+ `}renderDropdownContent(){return j`
2933
2937
  ${this.hasQueryResults?null:this.renderSearchMessage()}
2934
- ${this.isDataDriven?this.renderOptionsData():K` ${this.selectAllOptionElement} <slot slot="options"></slot> `}
2935
- `}removeLastValue(){var s;(s=this.value)==null||s.pop(),this.handleValueChange()}resetSearch(){this.query=""}setQueryInputValue(){!this.queryInput||(this.queryInput.value=this.query||"")}search(){var i;this.hasResults=!1;const s=(i=this.query)==null?void 0:i.toLowerCase();this.getItems().forEach(l=>{if(!s){l.hidden=!1,this.hasResults=!0;return}const d=this.isQueryMatch(l);d&&(this.hasResults=!0),l.hidden=!d})}getItems(){var i,l;const s=super.getItems();return this.isDataDriven?s:[((i=this.renderRoot)==null?void 0:i.querySelector(`brz-menu-item#${vi}`))||((l=this.renderRoot)==null?void 0:l.querySelector(`sp-menu-item#${vi}`))||{},...s]}syncValueLabels(){const s=[...this.getItems()];this.valueLabels=this.value?this.value.slice(0,this.truncateValuesAfter).map(i=>({label:this.getItemLabel(s.find(l=>l.value===i)),value:i})):[],this.render()}};exports.InputMultiselect.styles=[...Ar.styles,ce`
2938
+ ${this.isDataDriven?this.renderOptionsData():j` ${this.selectAllOptionElement} <slot slot="options"></slot> `}
2939
+ `}removeLastValue(){var s;(s=this.value)==null||s.pop(),this.handleValueChange()}resetSearch(){this.query=""}setQueryInputValue(){!this.queryInput||(this.queryInput.value=this.query||"")}search(){var i;this.hasResults=!1;const s=(i=this.query)==null?void 0:i.toLowerCase();this.getItems().forEach(l=>{if(!s){l.hidden=!1,this.hasResults=!0;return}const d=this.isQueryMatch(l);d&&(this.hasResults=!0),l.hidden=!d})}getItems(){var i,l;const s=super.getItems();return this.isDataDriven?s:[((i=this.renderRoot)==null?void 0:i.querySelector(`brz-menu-item#${vi}`))||((l=this.renderRoot)==null?void 0:l.querySelector(`sp-menu-item#${vi}`))||{},...s]}syncValueLabels(){const s=[...this.getItems()];this.valueLabels=this.value?this.value.slice(0,this.truncateValuesAfter).map(i=>({label:this.getItemLabel(s.find(l=>l.value===i)),value:i})):[],this.render()}};exports.InputMultiselect.styles=[...Lr.styles,ue`
2936
2940
  :host {
2937
2941
  --brz-input-multiselect-padding-y: calc(
2938
2942
  (var(--brz-spacing-3) / 2) - var(--input-border-width)
@@ -2985,22 +2989,22 @@ ${this.value}</textarea
2985
2989
  brz-icon[icon='chevronDown'] {
2986
2990
  color: var(--brz-color-neutral-750);
2987
2991
  }
2988
- `];Yu([R({type:String,reflect:!0})],exports.InputMultiselect.prototype,"size",2);Yu([R({attribute:"truncate-values-after",type:Number})],exports.InputMultiselect.prototype,"truncateValuesAfter",2);Yu([R({type:Array})],exports.InputMultiselect.prototype,"value",2);Yu([Re()],exports.InputMultiselect.prototype,"valueLabels",2);exports.InputMultiselect=Yu([X(_p)],exports.InputMultiselect);function wa(s){if(s===null||s===!0||s===!1)return NaN;var i=Number(s);return isNaN(i)?i:i<0?Math.ceil(i):Math.floor(i)}function Zr(s,i){if(i.length<s)throw new TypeError(s+" argument"+(s>1?"s":"")+" required, but only "+i.length+" present")}function _0(s){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_0=function(l){return typeof l}:_0=function(l){return l&&typeof Symbol=="function"&&l.constructor===Symbol&&l!==Symbol.prototype?"symbol":typeof l},_0(s)}function xi(s){Zr(1,arguments);var i=Object.prototype.toString.call(s);return s instanceof Date||_0(s)==="object"&&i==="[object Date]"?new Date(s.getTime()):typeof s=="number"||i==="[object Number]"?new Date(s):((typeof s=="string"||i==="[object String]")&&typeof console!="undefined"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function Sp(s,i){Zr(2,arguments);var l=xi(s).getTime(),d=wa(i);return new Date(l+d)}var c9={};function K0(){return c9}function d9(s){var i=new Date(Date.UTC(s.getFullYear(),s.getMonth(),s.getDate(),s.getHours(),s.getMinutes(),s.getSeconds(),s.getMilliseconds()));return i.setUTCFullYear(s.getFullYear()),s.getTime()-i.getTime()}function f9(s){Zr(1,arguments);var i=xi(s);return i.setHours(0,0,0,0),i}var h9=6e4;function p9(s,i){Zr(2,arguments);var l=wa(i);return Sp(s,l*h9)}function S0(s){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?S0=function(l){return typeof l}:S0=function(l){return l&&typeof Symbol=="function"&&l.constructor===Symbol&&l!==Symbol.prototype?"symbol":typeof l},S0(s)}function g9(s){return Zr(1,arguments),s instanceof Date||S0(s)==="object"&&Object.prototype.toString.call(s)==="[object Date]"}function v9(s){if(Zr(1,arguments),!g9(s)&&typeof s!="number")return!1;var i=xi(s);return!isNaN(Number(i))}function b9(s,i){Zr(2,arguments);var l=wa(i);return Sp(s,-l)}var m9=864e5;function y9(s){Zr(1,arguments);var i=xi(s),l=i.getTime();i.setUTCMonth(0,1),i.setUTCHours(0,0,0,0);var d=i.getTime(),c=l-d;return Math.floor(c/m9)+1}function A0(s){Zr(1,arguments);var i=1,l=xi(s),d=l.getUTCDay(),c=(d<i?7:0)+d-i;return l.setUTCDate(l.getUTCDate()-c),l.setUTCHours(0,0,0,0),l}function Mp(s){Zr(1,arguments);var i=xi(s),l=i.getUTCFullYear(),d=new Date(0);d.setUTCFullYear(l+1,0,4),d.setUTCHours(0,0,0,0);var c=A0(d),g=new Date(0);g.setUTCFullYear(l,0,4),g.setUTCHours(0,0,0,0);var b=A0(g);return i.getTime()>=c.getTime()?l+1:i.getTime()>=b.getTime()?l:l-1}function C9(s){Zr(1,arguments);var i=Mp(s),l=new Date(0);l.setUTCFullYear(i,0,4),l.setUTCHours(0,0,0,0);var d=A0(l);return d}var w9=6048e5;function x9(s){Zr(1,arguments);var i=xi(s),l=A0(i).getTime()-C9(i).getTime();return Math.round(l/w9)+1}function $0(s,i){var l,d,c,g,b,I,T,k;Zr(1,arguments);var A=K0(),B=wa((l=(d=(c=(g=i==null?void 0:i.weekStartsOn)!==null&&g!==void 0?g:i==null||(b=i.locale)===null||b===void 0||(I=b.options)===null||I===void 0?void 0:I.weekStartsOn)!==null&&c!==void 0?c:A.weekStartsOn)!==null&&d!==void 0?d:(T=A.locale)===null||T===void 0||(k=T.options)===null||k===void 0?void 0:k.weekStartsOn)!==null&&l!==void 0?l:0);if(!(B>=0&&B<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var U=xi(s),Z=U.getUTCDay(),re=(Z<B?7:0)+Z-B;return U.setUTCDate(U.getUTCDate()-re),U.setUTCHours(0,0,0,0),U}function kp(s,i){var l,d,c,g,b,I,T,k;Zr(1,arguments);var A=xi(s),B=A.getUTCFullYear(),U=K0(),Z=wa((l=(d=(c=(g=i==null?void 0:i.firstWeekContainsDate)!==null&&g!==void 0?g:i==null||(b=i.locale)===null||b===void 0||(I=b.options)===null||I===void 0?void 0:I.firstWeekContainsDate)!==null&&c!==void 0?c:U.firstWeekContainsDate)!==null&&d!==void 0?d:(T=U.locale)===null||T===void 0||(k=T.options)===null||k===void 0?void 0:k.firstWeekContainsDate)!==null&&l!==void 0?l:1);if(!(Z>=1&&Z<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var re=new Date(0);re.setUTCFullYear(B+1,0,Z),re.setUTCHours(0,0,0,0);var ve=$0(re,i),ge=new Date(0);ge.setUTCFullYear(B,0,Z),ge.setUTCHours(0,0,0,0);var Me=$0(ge,i);return A.getTime()>=ve.getTime()?B+1:A.getTime()>=Me.getTime()?B:B-1}function z9(s,i){var l,d,c,g,b,I,T,k;Zr(1,arguments);var A=K0(),B=wa((l=(d=(c=(g=i==null?void 0:i.firstWeekContainsDate)!==null&&g!==void 0?g:i==null||(b=i.locale)===null||b===void 0||(I=b.options)===null||I===void 0?void 0:I.firstWeekContainsDate)!==null&&c!==void 0?c:A.firstWeekContainsDate)!==null&&d!==void 0?d:(T=A.locale)===null||T===void 0||(k=T.options)===null||k===void 0?void 0:k.firstWeekContainsDate)!==null&&l!==void 0?l:1),U=kp(s,i),Z=new Date(0);Z.setUTCFullYear(U,0,B),Z.setUTCHours(0,0,0,0);var re=$0(Z,i);return re}var L9=6048e5;function _9(s,i){Zr(1,arguments);var l=xi(s),d=$0(l,i).getTime()-z9(l,i).getTime();return Math.round(d/L9)+1}function Pt(s,i){for(var l=s<0?"-":"",d=Math.abs(s).toString();d.length<i;)d="0"+d;return l+d}var S9={y:function(i,l){var d=i.getUTCFullYear(),c=d>0?d:1-d;return Pt(l==="yy"?c%100:c,l.length)},M:function(i,l){var d=i.getUTCMonth();return l==="M"?String(d+1):Pt(d+1,2)},d:function(i,l){return Pt(i.getUTCDate(),l.length)},a:function(i,l){var d=i.getUTCHours()/12>=1?"pm":"am";switch(l){case"a":case"aa":return d.toUpperCase();case"aaa":return d;case"aaaaa":return d[0];case"aaaa":default:return d==="am"?"a.m.":"p.m."}},h:function(i,l){return Pt(i.getUTCHours()%12||12,l.length)},H:function(i,l){return Pt(i.getUTCHours(),l.length)},m:function(i,l){return Pt(i.getUTCMinutes(),l.length)},s:function(i,l){return Pt(i.getUTCSeconds(),l.length)},S:function(i,l){var d=l.length,c=i.getUTCMilliseconds(),g=Math.floor(c*Math.pow(10,d-3));return Pt(g,l.length)}};const ya=S9;var ys={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},M9={G:function(i,l,d){var c=i.getUTCFullYear()>0?1:0;switch(l){case"G":case"GG":case"GGG":return d.era(c,{width:"abbreviated"});case"GGGGG":return d.era(c,{width:"narrow"});case"GGGG":default:return d.era(c,{width:"wide"})}},y:function(i,l,d){if(l==="yo"){var c=i.getUTCFullYear(),g=c>0?c:1-c;return d.ordinalNumber(g,{unit:"year"})}return ya.y(i,l)},Y:function(i,l,d,c){var g=kp(i,c),b=g>0?g:1-g;if(l==="YY"){var I=b%100;return Pt(I,2)}return l==="Yo"?d.ordinalNumber(b,{unit:"year"}):Pt(b,l.length)},R:function(i,l){var d=Mp(i);return Pt(d,l.length)},u:function(i,l){var d=i.getUTCFullYear();return Pt(d,l.length)},Q:function(i,l,d){var c=Math.ceil((i.getUTCMonth()+1)/3);switch(l){case"Q":return String(c);case"QQ":return Pt(c,2);case"Qo":return d.ordinalNumber(c,{unit:"quarter"});case"QQQ":return d.quarter(c,{width:"abbreviated",context:"formatting"});case"QQQQQ":return d.quarter(c,{width:"narrow",context:"formatting"});case"QQQQ":default:return d.quarter(c,{width:"wide",context:"formatting"})}},q:function(i,l,d){var c=Math.ceil((i.getUTCMonth()+1)/3);switch(l){case"q":return String(c);case"qq":return Pt(c,2);case"qo":return d.ordinalNumber(c,{unit:"quarter"});case"qqq":return d.quarter(c,{width:"abbreviated",context:"standalone"});case"qqqqq":return d.quarter(c,{width:"narrow",context:"standalone"});case"qqqq":default:return d.quarter(c,{width:"wide",context:"standalone"})}},M:function(i,l,d){var c=i.getUTCMonth();switch(l){case"M":case"MM":return ya.M(i,l);case"Mo":return d.ordinalNumber(c+1,{unit:"month"});case"MMM":return d.month(c,{width:"abbreviated",context:"formatting"});case"MMMMM":return d.month(c,{width:"narrow",context:"formatting"});case"MMMM":default:return d.month(c,{width:"wide",context:"formatting"})}},L:function(i,l,d){var c=i.getUTCMonth();switch(l){case"L":return String(c+1);case"LL":return Pt(c+1,2);case"Lo":return d.ordinalNumber(c+1,{unit:"month"});case"LLL":return d.month(c,{width:"abbreviated",context:"standalone"});case"LLLLL":return d.month(c,{width:"narrow",context:"standalone"});case"LLLL":default:return d.month(c,{width:"wide",context:"standalone"})}},w:function(i,l,d,c){var g=_9(i,c);return l==="wo"?d.ordinalNumber(g,{unit:"week"}):Pt(g,l.length)},I:function(i,l,d){var c=x9(i);return l==="Io"?d.ordinalNumber(c,{unit:"week"}):Pt(c,l.length)},d:function(i,l,d){return l==="do"?d.ordinalNumber(i.getUTCDate(),{unit:"date"}):ya.d(i,l)},D:function(i,l,d){var c=y9(i);return l==="Do"?d.ordinalNumber(c,{unit:"dayOfYear"}):Pt(c,l.length)},E:function(i,l,d){var c=i.getUTCDay();switch(l){case"E":case"EE":case"EEE":return d.day(c,{width:"abbreviated",context:"formatting"});case"EEEEE":return d.day(c,{width:"narrow",context:"formatting"});case"EEEEEE":return d.day(c,{width:"short",context:"formatting"});case"EEEE":default:return d.day(c,{width:"wide",context:"formatting"})}},e:function(i,l,d,c){var g=i.getUTCDay(),b=(g-c.weekStartsOn+8)%7||7;switch(l){case"e":return String(b);case"ee":return Pt(b,2);case"eo":return d.ordinalNumber(b,{unit:"day"});case"eee":return d.day(g,{width:"abbreviated",context:"formatting"});case"eeeee":return d.day(g,{width:"narrow",context:"formatting"});case"eeeeee":return d.day(g,{width:"short",context:"formatting"});case"eeee":default:return d.day(g,{width:"wide",context:"formatting"})}},c:function(i,l,d,c){var g=i.getUTCDay(),b=(g-c.weekStartsOn+8)%7||7;switch(l){case"c":return String(b);case"cc":return Pt(b,l.length);case"co":return d.ordinalNumber(b,{unit:"day"});case"ccc":return d.day(g,{width:"abbreviated",context:"standalone"});case"ccccc":return d.day(g,{width:"narrow",context:"standalone"});case"cccccc":return d.day(g,{width:"short",context:"standalone"});case"cccc":default:return d.day(g,{width:"wide",context:"standalone"})}},i:function(i,l,d){var c=i.getUTCDay(),g=c===0?7:c;switch(l){case"i":return String(g);case"ii":return Pt(g,l.length);case"io":return d.ordinalNumber(g,{unit:"day"});case"iii":return d.day(c,{width:"abbreviated",context:"formatting"});case"iiiii":return d.day(c,{width:"narrow",context:"formatting"});case"iiiiii":return d.day(c,{width:"short",context:"formatting"});case"iiii":default:return d.day(c,{width:"wide",context:"formatting"})}},a:function(i,l,d){var c=i.getUTCHours(),g=c/12>=1?"pm":"am";switch(l){case"a":case"aa":return d.dayPeriod(g,{width:"abbreviated",context:"formatting"});case"aaa":return d.dayPeriod(g,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return d.dayPeriod(g,{width:"narrow",context:"formatting"});case"aaaa":default:return d.dayPeriod(g,{width:"wide",context:"formatting"})}},b:function(i,l,d){var c=i.getUTCHours(),g;switch(c===12?g=ys.noon:c===0?g=ys.midnight:g=c/12>=1?"pm":"am",l){case"b":case"bb":return d.dayPeriod(g,{width:"abbreviated",context:"formatting"});case"bbb":return d.dayPeriod(g,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return d.dayPeriod(g,{width:"narrow",context:"formatting"});case"bbbb":default:return d.dayPeriod(g,{width:"wide",context:"formatting"})}},B:function(i,l,d){var c=i.getUTCHours(),g;switch(c>=17?g=ys.evening:c>=12?g=ys.afternoon:c>=4?g=ys.morning:g=ys.night,l){case"B":case"BB":case"BBB":return d.dayPeriod(g,{width:"abbreviated",context:"formatting"});case"BBBBB":return d.dayPeriod(g,{width:"narrow",context:"formatting"});case"BBBB":default:return d.dayPeriod(g,{width:"wide",context:"formatting"})}},h:function(i,l,d){if(l==="ho"){var c=i.getUTCHours()%12;return c===0&&(c=12),d.ordinalNumber(c,{unit:"hour"})}return ya.h(i,l)},H:function(i,l,d){return l==="Ho"?d.ordinalNumber(i.getUTCHours(),{unit:"hour"}):ya.H(i,l)},K:function(i,l,d){var c=i.getUTCHours()%12;return l==="Ko"?d.ordinalNumber(c,{unit:"hour"}):Pt(c,l.length)},k:function(i,l,d){var c=i.getUTCHours();return c===0&&(c=24),l==="ko"?d.ordinalNumber(c,{unit:"hour"}):Pt(c,l.length)},m:function(i,l,d){return l==="mo"?d.ordinalNumber(i.getUTCMinutes(),{unit:"minute"}):ya.m(i,l)},s:function(i,l,d){return l==="so"?d.ordinalNumber(i.getUTCSeconds(),{unit:"second"}):ya.s(i,l)},S:function(i,l){return ya.S(i,l)},X:function(i,l,d,c){var g=c._originalDate||i,b=g.getTimezoneOffset();if(b===0)return"Z";switch(l){case"X":return dh(b);case"XXXX":case"XX":return dl(b);case"XXXXX":case"XXX":default:return dl(b,":")}},x:function(i,l,d,c){var g=c._originalDate||i,b=g.getTimezoneOffset();switch(l){case"x":return dh(b);case"xxxx":case"xx":return dl(b);case"xxxxx":case"xxx":default:return dl(b,":")}},O:function(i,l,d,c){var g=c._originalDate||i,b=g.getTimezoneOffset();switch(l){case"O":case"OO":case"OOO":return"GMT"+ch(b,":");case"OOOO":default:return"GMT"+dl(b,":")}},z:function(i,l,d,c){var g=c._originalDate||i,b=g.getTimezoneOffset();switch(l){case"z":case"zz":case"zzz":return"GMT"+ch(b,":");case"zzzz":default:return"GMT"+dl(b,":")}},t:function(i,l,d,c){var g=c._originalDate||i,b=Math.floor(g.getTime()/1e3);return Pt(b,l.length)},T:function(i,l,d,c){var g=c._originalDate||i,b=g.getTime();return Pt(b,l.length)}};function ch(s,i){var l=s>0?"-":"+",d=Math.abs(s),c=Math.floor(d/60),g=d%60;if(g===0)return l+String(c);var b=i||"";return l+String(c)+b+Pt(g,2)}function dh(s,i){if(s%60===0){var l=s>0?"-":"+";return l+Pt(Math.abs(s)/60,2)}return dl(s,i)}function dl(s,i){var l=i||"",d=s>0?"-":"+",c=Math.abs(s),g=Pt(Math.floor(c/60),2),b=Pt(c%60,2);return d+g+l+b}const k9=M9;var fh=function(i,l){switch(i){case"P":return l.date({width:"short"});case"PP":return l.date({width:"medium"});case"PPP":return l.date({width:"long"});case"PPPP":default:return l.date({width:"full"})}},Op=function(i,l){switch(i){case"p":return l.time({width:"short"});case"pp":return l.time({width:"medium"});case"ppp":return l.time({width:"long"});case"pppp":default:return l.time({width:"full"})}},O9=function(i,l){var d=i.match(/(P+)(p+)?/)||[],c=d[1],g=d[2];if(!g)return fh(i,l);var b;switch(c){case"P":b=l.dateTime({width:"short"});break;case"PP":b=l.dateTime({width:"medium"});break;case"PPP":b=l.dateTime({width:"long"});break;case"PPPP":default:b=l.dateTime({width:"full"});break}return b.replace("{{date}}",fh(c,l)).replace("{{time}}",Op(g,l))},T9={p:Op,P:O9};const E9=T9;var P9=["D","DD"],I9=["YY","YYYY"];function A9(s){return P9.indexOf(s)!==-1}function $9(s){return I9.indexOf(s)!==-1}function hh(s,i,l){if(s==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(i,"`) for formatting years to the input `").concat(l,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(s==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(i,"`) for formatting years to the input `").concat(l,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(s==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(i,"`) for formatting days of the month to the input `").concat(l,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(s==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(i,"`) for formatting days of the month to the input `").concat(l,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var D9={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},R9=function(i,l,d){var c,g=D9[i];return typeof g=="string"?c=g:l===1?c=g.one:c=g.other.replace("{{count}}",l.toString()),d!=null&&d.addSuffix?d.comparison&&d.comparison>0?"in "+c:c+" ago":c};const N9=R9;function gd(s){return function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},l=i.width?String(i.width):s.defaultWidth,d=s.formats[l]||s.formats[s.defaultWidth];return d}}var H9={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},B9={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},F9={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},W9={date:gd({formats:H9,defaultWidth:"full"}),time:gd({formats:B9,defaultWidth:"full"}),dateTime:gd({formats:F9,defaultWidth:"full"})};const U9=W9;var Z9={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},G9=function(i,l,d,c){return Z9[i]};const V9=G9;function Pu(s){return function(i,l){var d=l!=null&&l.context?String(l.context):"standalone",c;if(d==="formatting"&&s.formattingValues){var g=s.defaultFormattingWidth||s.defaultWidth,b=l!=null&&l.width?String(l.width):g;c=s.formattingValues[b]||s.formattingValues[g]}else{var I=s.defaultWidth,T=l!=null&&l.width?String(l.width):s.defaultWidth;c=s.values[T]||s.values[I]}var k=s.argumentCallback?s.argumentCallback(i):i;return c[k]}}var q9={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},j9={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},K9={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},Y9={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},X9={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},Q9={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},J9=function(i,l){var d=Number(i),c=d%100;if(c>20||c<10)switch(c%10){case 1:return d+"st";case 2:return d+"nd";case 3:return d+"rd"}return d+"th"},eb={ordinalNumber:J9,era:Pu({values:q9,defaultWidth:"wide"}),quarter:Pu({values:j9,defaultWidth:"wide",argumentCallback:function(i){return i-1}}),month:Pu({values:K9,defaultWidth:"wide"}),day:Pu({values:Y9,defaultWidth:"wide"}),dayPeriod:Pu({values:X9,defaultWidth:"wide",formattingValues:Q9,defaultFormattingWidth:"wide"})};const tb=eb;function Iu(s){return function(i){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},d=l.width,c=d&&s.matchPatterns[d]||s.matchPatterns[s.defaultMatchWidth],g=i.match(c);if(!g)return null;var b=g[0],I=d&&s.parsePatterns[d]||s.parsePatterns[s.defaultParseWidth],T=Array.isArray(I)?nb(I,function(B){return B.test(b)}):rb(I,function(B){return B.test(b)}),k;k=s.valueCallback?s.valueCallback(T):T,k=l.valueCallback?l.valueCallback(k):k;var A=i.slice(b.length);return{value:k,rest:A}}}function rb(s,i){for(var l in s)if(s.hasOwnProperty(l)&&i(s[l]))return l}function nb(s,i){for(var l=0;l<s.length;l++)if(i(s[l]))return l}function ib(s){return function(i){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},d=i.match(s.matchPattern);if(!d)return null;var c=d[0],g=i.match(s.parsePattern);if(!g)return null;var b=s.valueCallback?s.valueCallback(g[0]):g[0];b=l.valueCallback?l.valueCallback(b):b;var I=i.slice(c.length);return{value:b,rest:I}}}var ob=/^(\d+)(th|st|nd|rd)?/i,ab=/\d+/i,lb={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},sb={any:[/^b/i,/^(a|c)/i]},ub={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},cb={any:[/1/i,/2/i,/3/i,/4/i]},db={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},fb={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},hb={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},pb={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},gb={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},vb={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},bb={ordinalNumber:ib({matchPattern:ob,parsePattern:ab,valueCallback:function(i){return parseInt(i,10)}}),era:Iu({matchPatterns:lb,defaultMatchWidth:"wide",parsePatterns:sb,defaultParseWidth:"any"}),quarter:Iu({matchPatterns:ub,defaultMatchWidth:"wide",parsePatterns:cb,defaultParseWidth:"any",valueCallback:function(i){return i+1}}),month:Iu({matchPatterns:db,defaultMatchWidth:"wide",parsePatterns:fb,defaultParseWidth:"any"}),day:Iu({matchPatterns:hb,defaultMatchWidth:"wide",parsePatterns:pb,defaultParseWidth:"any"}),dayPeriod:Iu({matchPatterns:gb,defaultMatchWidth:"any",parsePatterns:vb,defaultParseWidth:"any"})};const mb=bb;var yb={code:"en-US",formatDistance:N9,formatLong:U9,formatRelative:V9,localize:tb,match:mb,options:{weekStartsOn:0,firstWeekContainsDate:1}};const Cb=yb;var wb=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,xb=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,zb=/^'([^]*?)'?$/,Lb=/''/g,_b=/[a-zA-Z]/;function Sb(s,i,l){var d,c,g,b,I,T,k,A,B,U,Z,re,ve,ge,Me,Te,pe,de;Zr(2,arguments);var ke=String(i),Ee=K0(),Ie=(d=(c=l==null?void 0:l.locale)!==null&&c!==void 0?c:Ee.locale)!==null&&d!==void 0?d:Cb,je=wa((g=(b=(I=(T=l==null?void 0:l.firstWeekContainsDate)!==null&&T!==void 0?T:l==null||(k=l.locale)===null||k===void 0||(A=k.options)===null||A===void 0?void 0:A.firstWeekContainsDate)!==null&&I!==void 0?I:Ee.firstWeekContainsDate)!==null&&b!==void 0?b:(B=Ee.locale)===null||B===void 0||(U=B.options)===null||U===void 0?void 0:U.firstWeekContainsDate)!==null&&g!==void 0?g:1);if(!(je>=1&&je<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var Ye=wa((Z=(re=(ve=(ge=l==null?void 0:l.weekStartsOn)!==null&&ge!==void 0?ge:l==null||(Me=l.locale)===null||Me===void 0||(Te=Me.options)===null||Te===void 0?void 0:Te.weekStartsOn)!==null&&ve!==void 0?ve:Ee.weekStartsOn)!==null&&re!==void 0?re:(pe=Ee.locale)===null||pe===void 0||(de=pe.options)===null||de===void 0?void 0:de.weekStartsOn)!==null&&Z!==void 0?Z:0);if(!(Ye>=0&&Ye<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!Ie.localize)throw new RangeError("locale must contain localize property");if(!Ie.formatLong)throw new RangeError("locale must contain formatLong property");var be=xi(s);if(!v9(be))throw new RangeError("Invalid time value");var ye=d9(be),Qe=b9(be,ye),G={firstWeekContainsDate:je,weekStartsOn:Ye,locale:Ie,_originalDate:be},P=ke.match(xb).map(function(S){var ee=S[0];if(ee==="p"||ee==="P"){var me=E9[ee];return me(S,Ie.formatLong)}return S}).join("").match(wb).map(function(S){if(S==="''")return"'";var ee=S[0];if(ee==="'")return Mb(S);var me=k9[ee];if(me)return!(l!=null&&l.useAdditionalWeekYearTokens)&&$9(S)&&hh(S,i,String(s)),!(l!=null&&l.useAdditionalDayOfYearTokens)&&A9(S)&&hh(S,i,String(s)),me(Qe,S,Ie.localize,G);if(ee.match(_b))throw new RangeError("Format string contains an unescaped latin alphabet character `"+ee+"`");return S}).join("");return P}function Mb(s){var i=s.match(zb);return i?i[1].replace(Lb,"'"):s}var kb=Object.defineProperty,Ob=Object.getOwnPropertyDescriptor,za=(s,i,l,d)=>{for(var c=d>1?void 0:d?Ob(i,l):i,g=s.length-1,b;g>=0;g--)(b=s[g])&&(c=(d?b(i,l,c):b(c))||c);return d&&c&&kb(i,l,c),c};const Tp=Le("input-time"),Ep="h:mmaaa",Pp=/^([1-9]|1[0-9]|2[0-3]):([0-5])([0-9])?(am?|pm?)?$/,Ip=/^(1[3-9]|2[0-3]).*/,Ap=/^(\d\d?)(am?|pm?)/,Tb=["UTC","AEST"],$p=(s,i)=>({label:`${s}${i?` (${i})`:""}`,value:s}),Eb=(s,i)=>{const d=Math.ceil(1440/s),c=f9(Date.now());return Array(d).fill(null).map((g,b)=>{const I=p9(c,s*b),T=Sb(I,Ep);return $p(T,i)})},Pb=(s,i)=>{const l=s.trim(),d=s.match(Pp);if(!l||!d)return[];const[,c,g,b]=d,I=parseInt(c,10),T=I>12?`${I-12}`:`${I}`,k=`${g}${b||0}`,A=`${T}:${k}`;return["am","pm"].map(B=>$p(`${A}${B}`,i))},Ib=(s,{value:i})=>{const l=s.match(Ip);if(!l||!i)return!1;const[,d]=l,c=`${parseInt(d,10)-12}`,g=s.substring(d.length).replace(":",""),b=`${c}:${g}`;return i.startsWith(b)&&i.endsWith("pm")},Ab=(s,{value:i})=>{const l=s.match(Ap);if(!l)return!1;const[,d,c]=l;return!!(i!=null&&i.replace(":00","").startsWith(`${d}${c}`))},$b=(...s)=>Ab(...s)||Ib(...s);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=Eb(this.increment,this.suffix)}resetFreeformOptions(){this.freeformOptions=[]}handleCloseDropdown(){super.handleCloseDropdown(),this.resetFreeformOptions()}getItems(){return[...this.freeformOptions,...super.getItems()]}handleValueChange(){var s;this.valueLabel=(s=this.getItems().find(({value:i})=>i===this.value))==null?void 0:s.label,this.resetSearch()}isCustomQueryMatch(s){return this.query?$b(this.query,s):!1}handleNoResults(){if(this.hasQueryResults)return null;if(!this.isFreeform)return this.renderSearchMessage();this.freeformOptions=Pb(this.query,this.suffix),this.hasResults=!!this.freeformOptions.length}renderFreeformOptions(){return this.isFreeform?this.hasQueryResults?this.renderOptionsData(this.freeformOptions):this.renderSearchMessage():null}renderDropdownContent(){return K`
2992
+ `];Yu([R({type:String,reflect:!0})],exports.InputMultiselect.prototype,"size",2);Yu([R({attribute:"truncate-values-after",type:Number})],exports.InputMultiselect.prototype,"truncateValuesAfter",2);Yu([R({type:Array})],exports.InputMultiselect.prototype,"value",2);Yu([Re()],exports.InputMultiselect.prototype,"valueLabels",2);exports.InputMultiselect=Yu([X(Ep)],exports.InputMultiselect);function wa(s){if(s===null||s===!0||s===!1)return NaN;var i=Number(s);return isNaN(i)?i:i<0?Math.ceil(i):Math.floor(i)}function Zr(s,i){if(i.length<s)throw new TypeError(s+" argument"+(s>1?"s":"")+" required, but only "+i.length+" present")}function _0(s){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_0=function(l){return typeof l}:_0=function(l){return l&&typeof Symbol=="function"&&l.constructor===Symbol&&l!==Symbol.prototype?"symbol":typeof l},_0(s)}function xi(s){Zr(1,arguments);var i=Object.prototype.toString.call(s);return s instanceof Date||_0(s)==="object"&&i==="[object Date]"?new Date(s.getTime()):typeof s=="number"||i==="[object Number]"?new Date(s):((typeof s=="string"||i==="[object String]")&&typeof console!="undefined"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function Pp(s,i){Zr(2,arguments);var l=xi(s).getTime(),d=wa(i);return new Date(l+d)}var p9={};function K0(){return p9}function g9(s){var i=new Date(Date.UTC(s.getFullYear(),s.getMonth(),s.getDate(),s.getHours(),s.getMinutes(),s.getSeconds(),s.getMilliseconds()));return i.setUTCFullYear(s.getFullYear()),s.getTime()-i.getTime()}function v9(s){Zr(1,arguments);var i=xi(s);return i.setHours(0,0,0,0),i}var b9=6e4;function m9(s,i){Zr(2,arguments);var l=wa(i);return Pp(s,l*b9)}function S0(s){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?S0=function(l){return typeof l}:S0=function(l){return l&&typeof Symbol=="function"&&l.constructor===Symbol&&l!==Symbol.prototype?"symbol":typeof l},S0(s)}function y9(s){return Zr(1,arguments),s instanceof Date||S0(s)==="object"&&Object.prototype.toString.call(s)==="[object Date]"}function C9(s){if(Zr(1,arguments),!y9(s)&&typeof s!="number")return!1;var i=xi(s);return!isNaN(Number(i))}function w9(s,i){Zr(2,arguments);var l=wa(i);return Pp(s,-l)}var x9=864e5;function z9(s){Zr(1,arguments);var i=xi(s),l=i.getTime();i.setUTCMonth(0,1),i.setUTCHours(0,0,0,0);var d=i.getTime(),c=l-d;return Math.floor(c/x9)+1}function A0(s){Zr(1,arguments);var i=1,l=xi(s),d=l.getUTCDay(),c=(d<i?7:0)+d-i;return l.setUTCDate(l.getUTCDate()-c),l.setUTCHours(0,0,0,0),l}function Ip(s){Zr(1,arguments);var i=xi(s),l=i.getUTCFullYear(),d=new Date(0);d.setUTCFullYear(l+1,0,4),d.setUTCHours(0,0,0,0);var c=A0(d),g=new Date(0);g.setUTCFullYear(l,0,4),g.setUTCHours(0,0,0,0);var b=A0(g);return i.getTime()>=c.getTime()?l+1:i.getTime()>=b.getTime()?l:l-1}function L9(s){Zr(1,arguments);var i=Ip(s),l=new Date(0);l.setUTCFullYear(i,0,4),l.setUTCHours(0,0,0,0);var d=A0(l);return d}var _9=6048e5;function S9(s){Zr(1,arguments);var i=xi(s),l=A0(i).getTime()-L9(i).getTime();return Math.round(l/_9)+1}function $0(s,i){var l,d,c,g,b,I,T,k;Zr(1,arguments);var A=K0(),B=wa((l=(d=(c=(g=i==null?void 0:i.weekStartsOn)!==null&&g!==void 0?g:i==null||(b=i.locale)===null||b===void 0||(I=b.options)===null||I===void 0?void 0:I.weekStartsOn)!==null&&c!==void 0?c:A.weekStartsOn)!==null&&d!==void 0?d:(T=A.locale)===null||T===void 0||(k=T.options)===null||k===void 0?void 0:k.weekStartsOn)!==null&&l!==void 0?l:0);if(!(B>=0&&B<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var U=xi(s),Z=U.getUTCDay(),re=(Z<B?7:0)+Z-B;return U.setUTCDate(U.getUTCDate()-re),U.setUTCHours(0,0,0,0),U}function Ap(s,i){var l,d,c,g,b,I,T,k;Zr(1,arguments);var A=xi(s),B=A.getUTCFullYear(),U=K0(),Z=wa((l=(d=(c=(g=i==null?void 0:i.firstWeekContainsDate)!==null&&g!==void 0?g:i==null||(b=i.locale)===null||b===void 0||(I=b.options)===null||I===void 0?void 0:I.firstWeekContainsDate)!==null&&c!==void 0?c:U.firstWeekContainsDate)!==null&&d!==void 0?d:(T=U.locale)===null||T===void 0||(k=T.options)===null||k===void 0?void 0:k.firstWeekContainsDate)!==null&&l!==void 0?l:1);if(!(Z>=1&&Z<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var re=new Date(0);re.setUTCFullYear(B+1,0,Z),re.setUTCHours(0,0,0,0);var ve=$0(re,i),ge=new Date(0);ge.setUTCFullYear(B,0,Z),ge.setUTCHours(0,0,0,0);var Me=$0(ge,i);return A.getTime()>=ve.getTime()?B+1:A.getTime()>=Me.getTime()?B:B-1}function M9(s,i){var l,d,c,g,b,I,T,k;Zr(1,arguments);var A=K0(),B=wa((l=(d=(c=(g=i==null?void 0:i.firstWeekContainsDate)!==null&&g!==void 0?g:i==null||(b=i.locale)===null||b===void 0||(I=b.options)===null||I===void 0?void 0:I.firstWeekContainsDate)!==null&&c!==void 0?c:A.firstWeekContainsDate)!==null&&d!==void 0?d:(T=A.locale)===null||T===void 0||(k=T.options)===null||k===void 0?void 0:k.firstWeekContainsDate)!==null&&l!==void 0?l:1),U=Ap(s,i),Z=new Date(0);Z.setUTCFullYear(U,0,B),Z.setUTCHours(0,0,0,0);var re=$0(Z,i);return re}var k9=6048e5;function O9(s,i){Zr(1,arguments);var l=xi(s),d=$0(l,i).getTime()-M9(l,i).getTime();return Math.round(d/k9)+1}function Pt(s,i){for(var l=s<0?"-":"",d=Math.abs(s).toString();d.length<i;)d="0"+d;return l+d}var T9={y:function(i,l){var d=i.getUTCFullYear(),c=d>0?d:1-d;return Pt(l==="yy"?c%100:c,l.length)},M:function(i,l){var d=i.getUTCMonth();return l==="M"?String(d+1):Pt(d+1,2)},d:function(i,l){return Pt(i.getUTCDate(),l.length)},a:function(i,l){var d=i.getUTCHours()/12>=1?"pm":"am";switch(l){case"a":case"aa":return d.toUpperCase();case"aaa":return d;case"aaaaa":return d[0];case"aaaa":default:return d==="am"?"a.m.":"p.m."}},h:function(i,l){return Pt(i.getUTCHours()%12||12,l.length)},H:function(i,l){return Pt(i.getUTCHours(),l.length)},m:function(i,l){return Pt(i.getUTCMinutes(),l.length)},s:function(i,l){return Pt(i.getUTCSeconds(),l.length)},S:function(i,l){var d=l.length,c=i.getUTCMilliseconds(),g=Math.floor(c*Math.pow(10,d-3));return Pt(g,l.length)}};const ya=T9;var ys={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},E9={G:function(i,l,d){var c=i.getUTCFullYear()>0?1:0;switch(l){case"G":case"GG":case"GGG":return d.era(c,{width:"abbreviated"});case"GGGGG":return d.era(c,{width:"narrow"});case"GGGG":default:return d.era(c,{width:"wide"})}},y:function(i,l,d){if(l==="yo"){var c=i.getUTCFullYear(),g=c>0?c:1-c;return d.ordinalNumber(g,{unit:"year"})}return ya.y(i,l)},Y:function(i,l,d,c){var g=Ap(i,c),b=g>0?g:1-g;if(l==="YY"){var I=b%100;return Pt(I,2)}return l==="Yo"?d.ordinalNumber(b,{unit:"year"}):Pt(b,l.length)},R:function(i,l){var d=Ip(i);return Pt(d,l.length)},u:function(i,l){var d=i.getUTCFullYear();return Pt(d,l.length)},Q:function(i,l,d){var c=Math.ceil((i.getUTCMonth()+1)/3);switch(l){case"Q":return String(c);case"QQ":return Pt(c,2);case"Qo":return d.ordinalNumber(c,{unit:"quarter"});case"QQQ":return d.quarter(c,{width:"abbreviated",context:"formatting"});case"QQQQQ":return d.quarter(c,{width:"narrow",context:"formatting"});case"QQQQ":default:return d.quarter(c,{width:"wide",context:"formatting"})}},q:function(i,l,d){var c=Math.ceil((i.getUTCMonth()+1)/3);switch(l){case"q":return String(c);case"qq":return Pt(c,2);case"qo":return d.ordinalNumber(c,{unit:"quarter"});case"qqq":return d.quarter(c,{width:"abbreviated",context:"standalone"});case"qqqqq":return d.quarter(c,{width:"narrow",context:"standalone"});case"qqqq":default:return d.quarter(c,{width:"wide",context:"standalone"})}},M:function(i,l,d){var c=i.getUTCMonth();switch(l){case"M":case"MM":return ya.M(i,l);case"Mo":return d.ordinalNumber(c+1,{unit:"month"});case"MMM":return d.month(c,{width:"abbreviated",context:"formatting"});case"MMMMM":return d.month(c,{width:"narrow",context:"formatting"});case"MMMM":default:return d.month(c,{width:"wide",context:"formatting"})}},L:function(i,l,d){var c=i.getUTCMonth();switch(l){case"L":return String(c+1);case"LL":return Pt(c+1,2);case"Lo":return d.ordinalNumber(c+1,{unit:"month"});case"LLL":return d.month(c,{width:"abbreviated",context:"standalone"});case"LLLLL":return d.month(c,{width:"narrow",context:"standalone"});case"LLLL":default:return d.month(c,{width:"wide",context:"standalone"})}},w:function(i,l,d,c){var g=O9(i,c);return l==="wo"?d.ordinalNumber(g,{unit:"week"}):Pt(g,l.length)},I:function(i,l,d){var c=S9(i);return l==="Io"?d.ordinalNumber(c,{unit:"week"}):Pt(c,l.length)},d:function(i,l,d){return l==="do"?d.ordinalNumber(i.getUTCDate(),{unit:"date"}):ya.d(i,l)},D:function(i,l,d){var c=z9(i);return l==="Do"?d.ordinalNumber(c,{unit:"dayOfYear"}):Pt(c,l.length)},E:function(i,l,d){var c=i.getUTCDay();switch(l){case"E":case"EE":case"EEE":return d.day(c,{width:"abbreviated",context:"formatting"});case"EEEEE":return d.day(c,{width:"narrow",context:"formatting"});case"EEEEEE":return d.day(c,{width:"short",context:"formatting"});case"EEEE":default:return d.day(c,{width:"wide",context:"formatting"})}},e:function(i,l,d,c){var g=i.getUTCDay(),b=(g-c.weekStartsOn+8)%7||7;switch(l){case"e":return String(b);case"ee":return Pt(b,2);case"eo":return d.ordinalNumber(b,{unit:"day"});case"eee":return d.day(g,{width:"abbreviated",context:"formatting"});case"eeeee":return d.day(g,{width:"narrow",context:"formatting"});case"eeeeee":return d.day(g,{width:"short",context:"formatting"});case"eeee":default:return d.day(g,{width:"wide",context:"formatting"})}},c:function(i,l,d,c){var g=i.getUTCDay(),b=(g-c.weekStartsOn+8)%7||7;switch(l){case"c":return String(b);case"cc":return Pt(b,l.length);case"co":return d.ordinalNumber(b,{unit:"day"});case"ccc":return d.day(g,{width:"abbreviated",context:"standalone"});case"ccccc":return d.day(g,{width:"narrow",context:"standalone"});case"cccccc":return d.day(g,{width:"short",context:"standalone"});case"cccc":default:return d.day(g,{width:"wide",context:"standalone"})}},i:function(i,l,d){var c=i.getUTCDay(),g=c===0?7:c;switch(l){case"i":return String(g);case"ii":return Pt(g,l.length);case"io":return d.ordinalNumber(g,{unit:"day"});case"iii":return d.day(c,{width:"abbreviated",context:"formatting"});case"iiiii":return d.day(c,{width:"narrow",context:"formatting"});case"iiiiii":return d.day(c,{width:"short",context:"formatting"});case"iiii":default:return d.day(c,{width:"wide",context:"formatting"})}},a:function(i,l,d){var c=i.getUTCHours(),g=c/12>=1?"pm":"am";switch(l){case"a":case"aa":return d.dayPeriod(g,{width:"abbreviated",context:"formatting"});case"aaa":return d.dayPeriod(g,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return d.dayPeriod(g,{width:"narrow",context:"formatting"});case"aaaa":default:return d.dayPeriod(g,{width:"wide",context:"formatting"})}},b:function(i,l,d){var c=i.getUTCHours(),g;switch(c===12?g=ys.noon:c===0?g=ys.midnight:g=c/12>=1?"pm":"am",l){case"b":case"bb":return d.dayPeriod(g,{width:"abbreviated",context:"formatting"});case"bbb":return d.dayPeriod(g,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return d.dayPeriod(g,{width:"narrow",context:"formatting"});case"bbbb":default:return d.dayPeriod(g,{width:"wide",context:"formatting"})}},B:function(i,l,d){var c=i.getUTCHours(),g;switch(c>=17?g=ys.evening:c>=12?g=ys.afternoon:c>=4?g=ys.morning:g=ys.night,l){case"B":case"BB":case"BBB":return d.dayPeriod(g,{width:"abbreviated",context:"formatting"});case"BBBBB":return d.dayPeriod(g,{width:"narrow",context:"formatting"});case"BBBB":default:return d.dayPeriod(g,{width:"wide",context:"formatting"})}},h:function(i,l,d){if(l==="ho"){var c=i.getUTCHours()%12;return c===0&&(c=12),d.ordinalNumber(c,{unit:"hour"})}return ya.h(i,l)},H:function(i,l,d){return l==="Ho"?d.ordinalNumber(i.getUTCHours(),{unit:"hour"}):ya.H(i,l)},K:function(i,l,d){var c=i.getUTCHours()%12;return l==="Ko"?d.ordinalNumber(c,{unit:"hour"}):Pt(c,l.length)},k:function(i,l,d){var c=i.getUTCHours();return c===0&&(c=24),l==="ko"?d.ordinalNumber(c,{unit:"hour"}):Pt(c,l.length)},m:function(i,l,d){return l==="mo"?d.ordinalNumber(i.getUTCMinutes(),{unit:"minute"}):ya.m(i,l)},s:function(i,l,d){return l==="so"?d.ordinalNumber(i.getUTCSeconds(),{unit:"second"}):ya.s(i,l)},S:function(i,l){return ya.S(i,l)},X:function(i,l,d,c){var g=c._originalDate||i,b=g.getTimezoneOffset();if(b===0)return"Z";switch(l){case"X":return gh(b);case"XXXX":case"XX":return dl(b);case"XXXXX":case"XXX":default:return dl(b,":")}},x:function(i,l,d,c){var g=c._originalDate||i,b=g.getTimezoneOffset();switch(l){case"x":return gh(b);case"xxxx":case"xx":return dl(b);case"xxxxx":case"xxx":default:return dl(b,":")}},O:function(i,l,d,c){var g=c._originalDate||i,b=g.getTimezoneOffset();switch(l){case"O":case"OO":case"OOO":return"GMT"+ph(b,":");case"OOOO":default:return"GMT"+dl(b,":")}},z:function(i,l,d,c){var g=c._originalDate||i,b=g.getTimezoneOffset();switch(l){case"z":case"zz":case"zzz":return"GMT"+ph(b,":");case"zzzz":default:return"GMT"+dl(b,":")}},t:function(i,l,d,c){var g=c._originalDate||i,b=Math.floor(g.getTime()/1e3);return Pt(b,l.length)},T:function(i,l,d,c){var g=c._originalDate||i,b=g.getTime();return Pt(b,l.length)}};function ph(s,i){var l=s>0?"-":"+",d=Math.abs(s),c=Math.floor(d/60),g=d%60;if(g===0)return l+String(c);var b=i||"";return l+String(c)+b+Pt(g,2)}function gh(s,i){if(s%60===0){var l=s>0?"-":"+";return l+Pt(Math.abs(s)/60,2)}return dl(s,i)}function dl(s,i){var l=i||"",d=s>0?"-":"+",c=Math.abs(s),g=Pt(Math.floor(c/60),2),b=Pt(c%60,2);return d+g+l+b}const P9=E9;var vh=function(i,l){switch(i){case"P":return l.date({width:"short"});case"PP":return l.date({width:"medium"});case"PPP":return l.date({width:"long"});case"PPPP":default:return l.date({width:"full"})}},$p=function(i,l){switch(i){case"p":return l.time({width:"short"});case"pp":return l.time({width:"medium"});case"ppp":return l.time({width:"long"});case"pppp":default:return l.time({width:"full"})}},I9=function(i,l){var d=i.match(/(P+)(p+)?/)||[],c=d[1],g=d[2];if(!g)return vh(i,l);var b;switch(c){case"P":b=l.dateTime({width:"short"});break;case"PP":b=l.dateTime({width:"medium"});break;case"PPP":b=l.dateTime({width:"long"});break;case"PPPP":default:b=l.dateTime({width:"full"});break}return b.replace("{{date}}",vh(c,l)).replace("{{time}}",$p(g,l))},A9={p:$p,P:I9};const $9=A9;var D9=["D","DD"],R9=["YY","YYYY"];function N9(s){return D9.indexOf(s)!==-1}function H9(s){return R9.indexOf(s)!==-1}function bh(s,i,l){if(s==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(i,"`) for formatting years to the input `").concat(l,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(s==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(i,"`) for formatting years to the input `").concat(l,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(s==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(i,"`) for formatting days of the month to the input `").concat(l,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(s==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(i,"`) for formatting days of the month to the input `").concat(l,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var B9={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},F9=function(i,l,d){var c,g=B9[i];return typeof g=="string"?c=g:l===1?c=g.one:c=g.other.replace("{{count}}",l.toString()),d!=null&&d.addSuffix?d.comparison&&d.comparison>0?"in "+c:c+" ago":c};const W9=F9;function gd(s){return function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},l=i.width?String(i.width):s.defaultWidth,d=s.formats[l]||s.formats[s.defaultWidth];return d}}var U9={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Z9={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},V9={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},G9={date:gd({formats:U9,defaultWidth:"full"}),time:gd({formats:Z9,defaultWidth:"full"}),dateTime:gd({formats:V9,defaultWidth:"full"})};const q9=G9;var j9={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},K9=function(i,l,d,c){return j9[i]};const Y9=K9;function Pu(s){return function(i,l){var d=l!=null&&l.context?String(l.context):"standalone",c;if(d==="formatting"&&s.formattingValues){var g=s.defaultFormattingWidth||s.defaultWidth,b=l!=null&&l.width?String(l.width):g;c=s.formattingValues[b]||s.formattingValues[g]}else{var I=s.defaultWidth,T=l!=null&&l.width?String(l.width):s.defaultWidth;c=s.values[T]||s.values[I]}var k=s.argumentCallback?s.argumentCallback(i):i;return c[k]}}var X9={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Q9={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},J9={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},eb={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},tb={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},rb={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},nb=function(i,l){var d=Number(i),c=d%100;if(c>20||c<10)switch(c%10){case 1:return d+"st";case 2:return d+"nd";case 3:return d+"rd"}return d+"th"},ib={ordinalNumber:nb,era:Pu({values:X9,defaultWidth:"wide"}),quarter:Pu({values:Q9,defaultWidth:"wide",argumentCallback:function(i){return i-1}}),month:Pu({values:J9,defaultWidth:"wide"}),day:Pu({values:eb,defaultWidth:"wide"}),dayPeriod:Pu({values:tb,defaultWidth:"wide",formattingValues:rb,defaultFormattingWidth:"wide"})};const ob=ib;function Iu(s){return function(i){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},d=l.width,c=d&&s.matchPatterns[d]||s.matchPatterns[s.defaultMatchWidth],g=i.match(c);if(!g)return null;var b=g[0],I=d&&s.parsePatterns[d]||s.parsePatterns[s.defaultParseWidth],T=Array.isArray(I)?lb(I,function(B){return B.test(b)}):ab(I,function(B){return B.test(b)}),k;k=s.valueCallback?s.valueCallback(T):T,k=l.valueCallback?l.valueCallback(k):k;var A=i.slice(b.length);return{value:k,rest:A}}}function ab(s,i){for(var l in s)if(s.hasOwnProperty(l)&&i(s[l]))return l}function lb(s,i){for(var l=0;l<s.length;l++)if(i(s[l]))return l}function sb(s){return function(i){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},d=i.match(s.matchPattern);if(!d)return null;var c=d[0],g=i.match(s.parsePattern);if(!g)return null;var b=s.valueCallback?s.valueCallback(g[0]):g[0];b=l.valueCallback?l.valueCallback(b):b;var I=i.slice(c.length);return{value:b,rest:I}}}var ub=/^(\d+)(th|st|nd|rd)?/i,cb=/\d+/i,db={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},fb={any:[/^b/i,/^(a|c)/i]},hb={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},pb={any:[/1/i,/2/i,/3/i,/4/i]},gb={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},vb={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},bb={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},mb={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},yb={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},Cb={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},wb={ordinalNumber:sb({matchPattern:ub,parsePattern:cb,valueCallback:function(i){return parseInt(i,10)}}),era:Iu({matchPatterns:db,defaultMatchWidth:"wide",parsePatterns:fb,defaultParseWidth:"any"}),quarter:Iu({matchPatterns:hb,defaultMatchWidth:"wide",parsePatterns:pb,defaultParseWidth:"any",valueCallback:function(i){return i+1}}),month:Iu({matchPatterns:gb,defaultMatchWidth:"wide",parsePatterns:vb,defaultParseWidth:"any"}),day:Iu({matchPatterns:bb,defaultMatchWidth:"wide",parsePatterns:mb,defaultParseWidth:"any"}),dayPeriod:Iu({matchPatterns:yb,defaultMatchWidth:"any",parsePatterns:Cb,defaultParseWidth:"any"})};const xb=wb;var zb={code:"en-US",formatDistance:W9,formatLong:q9,formatRelative:Y9,localize:ob,match:xb,options:{weekStartsOn:0,firstWeekContainsDate:1}};const Lb=zb;var _b=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Sb=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Mb=/^'([^]*?)'?$/,kb=/''/g,Ob=/[a-zA-Z]/;function Tb(s,i,l){var d,c,g,b,I,T,k,A,B,U,Z,re,ve,ge,Me,Te,pe,de;Zr(2,arguments);var ke=String(i),Ee=K0(),Ie=(d=(c=l==null?void 0:l.locale)!==null&&c!==void 0?c:Ee.locale)!==null&&d!==void 0?d:Lb,je=wa((g=(b=(I=(T=l==null?void 0:l.firstWeekContainsDate)!==null&&T!==void 0?T:l==null||(k=l.locale)===null||k===void 0||(A=k.options)===null||A===void 0?void 0:A.firstWeekContainsDate)!==null&&I!==void 0?I:Ee.firstWeekContainsDate)!==null&&b!==void 0?b:(B=Ee.locale)===null||B===void 0||(U=B.options)===null||U===void 0?void 0:U.firstWeekContainsDate)!==null&&g!==void 0?g:1);if(!(je>=1&&je<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var Ye=wa((Z=(re=(ve=(ge=l==null?void 0:l.weekStartsOn)!==null&&ge!==void 0?ge:l==null||(Me=l.locale)===null||Me===void 0||(Te=Me.options)===null||Te===void 0?void 0:Te.weekStartsOn)!==null&&ve!==void 0?ve:Ee.weekStartsOn)!==null&&re!==void 0?re:(pe=Ee.locale)===null||pe===void 0||(de=pe.options)===null||de===void 0?void 0:de.weekStartsOn)!==null&&Z!==void 0?Z:0);if(!(Ye>=0&&Ye<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!Ie.localize)throw new RangeError("locale must contain localize property");if(!Ie.formatLong)throw new RangeError("locale must contain formatLong property");var be=xi(s);if(!C9(be))throw new RangeError("Invalid time value");var ye=g9(be),Qe=w9(be,ye),V={firstWeekContainsDate:je,weekStartsOn:Ye,locale:Ie,_originalDate:be},P=ke.match(Sb).map(function(S){var ee=S[0];if(ee==="p"||ee==="P"){var me=$9[ee];return me(S,Ie.formatLong)}return S}).join("").match(_b).map(function(S){if(S==="''")return"'";var ee=S[0];if(ee==="'")return Eb(S);var me=P9[ee];if(me)return!(l!=null&&l.useAdditionalWeekYearTokens)&&H9(S)&&bh(S,i,String(s)),!(l!=null&&l.useAdditionalDayOfYearTokens)&&N9(S)&&bh(S,i,String(s)),me(Qe,S,Ie.localize,V);if(ee.match(Ob))throw new RangeError("Format string contains an unescaped latin alphabet character `"+ee+"`");return S}).join("");return P}function Eb(s){var i=s.match(Mb);return i?i[1].replace(kb,"'"):s}var Pb=Object.defineProperty,Ib=Object.getOwnPropertyDescriptor,za=(s,i,l,d)=>{for(var c=d>1?void 0:d?Ib(i,l):i,g=s.length-1,b;g>=0;g--)(b=s[g])&&(c=(d?b(i,l,c):b(c))||c);return d&&c&&Pb(i,l,c),c};const Dp=Le("input-time"),Rp="h:mmaaa",Np=/^([1-9]|1[0-9]|2[0-3]):([0-5])([0-9])?(am?|pm?)?$/,Hp=/^(1[3-9]|2[0-3]).*/,Bp=/^(\d\d?)(am?|pm?)/,Ab=["UTC","AEST"],Fp=(s,i)=>({label:`${s}${i?` (${i})`:""}`,value:s}),$b=(s,i)=>{const d=Math.ceil(1440/s),c=v9(Date.now());return Array(d).fill(null).map((g,b)=>{const I=m9(c,s*b),T=Tb(I,Rp);return Fp(T,i)})},Db=(s,i)=>{const l=s.trim(),d=s.match(Np);if(!l||!d)return[];const[,c,g,b]=d,I=parseInt(c,10),T=I>12?`${I-12}`:`${I}`,k=`${g}${b||0}`,A=`${T}:${k}`;return["am","pm"].map(B=>Fp(`${A}${B}`,i))},Rb=(s,{value:i})=>{const l=s.match(Hp);if(!l||!i)return!1;const[,d]=l,c=`${parseInt(d,10)-12}`,g=s.substring(d.length).replace(":",""),b=`${c}:${g}`;return i.startsWith(b)&&i.endsWith("pm")},Nb=(s,{value:i})=>{const l=s.match(Bp);if(!l)return!1;const[,d,c]=l;return!!(i!=null&&i.replace(":00","").startsWith(`${d}${c}`))},Hb=(...s)=>Nb(...s)||Rb(...s);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=$b(this.increment,this.suffix)}resetFreeformOptions(){this.freeformOptions=[]}handleCloseDropdown(){super.handleCloseDropdown(),this.resetFreeformOptions()}getItems(){return[...this.freeformOptions,...super.getItems()]}handleValueChange(){var s;this.valueLabel=(s=this.getItems().find(({value:i})=>i===this.value))==null?void 0:s.label,this.resetSearch()}isCustomQueryMatch(s){return this.query?Hb(this.query,s):!1}handleNoResults(){if(this.hasQueryResults)return null;if(!this.isFreeform)return this.renderSearchMessage();this.freeformOptions=Db(this.query,this.suffix),this.hasResults=!!this.freeformOptions.length}renderFreeformOptions(){return this.isFreeform?this.hasQueryResults?this.renderOptionsData(this.freeformOptions):this.renderSearchMessage():null}renderDropdownContent(){return j`
2989
2993
  ${this.handleNoResults()} ${this.renderOptionsData()}
2990
2994
  ${this.renderFreeformOptions()}
2991
- `}};za([R({attribute:"can-search",type:Boolean,reflect:!0})],exports.InputTime.prototype,"canSearch",2);za([R({type:Number,reflect:!0})],exports.InputTime.prototype,"increment",2);za([R({type:String,reflect:!0})],exports.InputTime.prototype,"suffix",2);za([R({type:Boolean,attribute:"is-freeform",reflect:!0})],exports.InputTime.prototype,"isFreeform",2);za([R({type:String})],exports.InputTime.prototype,"placeholder",2);za([R({type:String,reflect:!0,attribute:"trailing-icon"})],exports.InputTime.prototype,"trailingIcon",2);za([Re()],exports.InputTime.prototype,"freeformOptions",2);exports.InputTime=za([X(Tp)],exports.InputTime);var Db=Object.defineProperty,Rb=Object.getOwnPropertyDescriptor,Cl=(s,i,l,d)=>{for(var c=d>1?void 0:d?Rb(i,l):i,g=s.length-1,b;g>=0;g--)(b=s[g])&&(c=(d?b(i,l,c):b(c))||c);return d&&c&&Db(i,l,c),c};const D0=Le("menu-item");exports.MenuItem=class extends Be{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(s){s.preventDefault(),this.emitSelect(),(this.disabled||this.toggleable)&&s.stopPropagation()}handleKeyDown(){}get labelTemplate(){return K` <div class="label"><slot></slot></div> `}get itemTemplate(){return this.toggleable?K`
2995
+ `}};za([R({attribute:"can-search",type:Boolean,reflect:!0})],exports.InputTime.prototype,"canSearch",2);za([R({type:Number,reflect:!0})],exports.InputTime.prototype,"increment",2);za([R({type:String,reflect:!0})],exports.InputTime.prototype,"suffix",2);za([R({type:Boolean,attribute:"is-freeform",reflect:!0})],exports.InputTime.prototype,"isFreeform",2);za([R({type:String})],exports.InputTime.prototype,"placeholder",2);za([R({type:String,reflect:!0,attribute:"trailing-icon"})],exports.InputTime.prototype,"trailingIcon",2);za([Re()],exports.InputTime.prototype,"freeformOptions",2);exports.InputTime=za([X(Dp)],exports.InputTime);var Bb=Object.defineProperty,Fb=Object.getOwnPropertyDescriptor,Cl=(s,i,l,d)=>{for(var c=d>1?void 0:d?Fb(i,l):i,g=s.length-1,b;g>=0;g--)(b=s[g])&&(c=(d?b(i,l,c):b(c))||c);return d&&c&&Bb(i,l,c),c};const D0=Le("menu-item");exports.MenuItem=class extends Be{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 Wp({detail:{item:this}}))}handleClick(s){s.preventDefault(),this.emitSelect(),(this.disabled||this.toggleable)&&s.stopPropagation()}handleKeyDown(){}get labelTemplate(){return j` <div class="label"><slot></slot></div> `}get itemTemplate(){return this.toggleable?j`
2992
2996
  <brz-input-checkbox
2993
2997
  ?disabled=${this.disabled}
2994
2998
  ?checked=${this.selected}
2995
2999
  >
2996
3000
  ${this.labelTemplate}
2997
3001
  </brz-input-checkbox>
2998
- `:this.selectable?K`
3002
+ `:this.selectable?j`
2999
3003
  <div class="selectable">
3000
- ${this.selected?K`<brz-icon icon="checkBoxTick"></brz-icon>`:null}
3004
+ ${this.selected?j`<brz-icon icon="checkBoxTick"></brz-icon>`:null}
3001
3005
  ${this.labelTemplate}
3002
3006
  </div>
3003
- `:this.labelTemplate}render(){return K`
3007
+ `:this.labelTemplate}render(){return j`
3004
3008
  <li
3005
3009
  class="menu-item"
3006
3010
  role="menuitem"
@@ -3009,7 +3013,7 @@ ${this.value}</textarea
3009
3013
  >
3010
3014
  ${this.itemTemplate}
3011
3015
  </li>
3012
- `}};exports.MenuItem.styles=ce`
3016
+ `}};exports.MenuItem.styles=ue`
3013
3017
  :host {
3014
3018
  --menu-item-min-height: var(--brz-spacing-8);
3015
3019
  --menu-item-padding-y: calc(1.5 * var(--brz-spacing-1));
@@ -3065,7 +3069,7 @@ ${this.value}</textarea
3065
3069
  padding-left: var(--menu-item-label-gutter);
3066
3070
  position: relative;
3067
3071
  }
3068
- `;Cl([R({type:Boolean,reflect:!0})],exports.MenuItem.prototype,"disabled",2);Cl([R({type:Boolean,reflect:!0})],exports.MenuItem.prototype,"highlighted",2);Cl([R({type:Boolean,attribute:!1})],exports.MenuItem.prototype,"selectable",2);Cl([R({type:Boolean,reflect:!0})],exports.MenuItem.prototype,"selected",2);Cl([R({type:Boolean,attribute:!1})],exports.MenuItem.prototype,"toggleable",2);Cl([R({type:String})],exports.MenuItem.prototype,"value",2);exports.MenuItem=Cl([X(D0)],exports.MenuItem);class Dp extends CustomEvent{constructor(i={}){super("brz-menu-item-select",{bubbles:!0,composed:!0,...i})}}var Nb=Object.defineProperty,Hb=Object.getOwnPropertyDescriptor,La=(s,i,l,d)=>{for(var c=d>1?void 0:d?Hb(i,l):i,g=s.length-1,b;g>=0;g--)(b=s[g])&&(c=(d?b(i,l,c):b(c))||c);return d&&c&&Nb(i,l,c),c};const Rp=Le("menu"),vi="selectAll",Np=["small","medium","large"];exports.Menu=class extends Be{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(s){var i;super.updated(s),s.has("highlightedIndex")&&((i=this.highlightedItem)==null||i.scrollIntoView({block:"center"}))}getMenuItems(){return this.virtualListMenuItems||this.menuItems}handleUpOrDownKey(s){s.preventDefault();const{key:i}=s,l=({before:c,after:g})=>(b,I)=>b.hidden?!1:c===void 0&&g===void 0||c!==void 0&&I<c||g!==void 0&&I>g;this.clearHighlightedItem();const d=this.getMenuItems();if(this.highlightedIndex===-1){this.highlightedIndex=0,d[this.highlightedIndex].highlighted=!0;return}i==="ArrowUp"&&(this.highlightedIndex=Wu.exports.findLastIndex(d,l({before:this.highlightedIndex})),this.highlightedIndex===-1&&(this.highlightedIndex=d.length-1)),i==="ArrowDown"&&(this.highlightedIndex=d.findIndex(l({after:this.highlightedIndex})),this.highlightedIndex===-1&&(this.highlightedIndex=0)),d[this.highlightedIndex].highlighted=!0}handleEnterOrSpaceKey(s){if(s.preventDefault(),this.highlightedIndex===-1)return this.emitBlur();this.getActiveMenuItem().emitSelect()}get selectedItems(){return this.getMenuItems().filter(s=>s.selected)}getActiveMenuItem(s){return s?s.detail.item:this.highlightedItem}bypassSelectedState(){if(!this.multiselect)return this.emitBlur()}handleSelectItem(s){if(!this.selectable)return this.bypassSelectedState();if(s.value===void 0)throw new Error("No value found for MenuItem");if(!s.disabled){if(this.multiselect)s.toggle();else{const[i]=this.selectedItems;i==null||i.deselect(),s.select()}this.updateSelected(s.value),this.emitSelection(),this.multiselect||this.emitBlur()}}updateSelected(s){const i=this.selected.some(d=>s===d);if(this.multiselect&&i){this.selected=this.selected.filter(d=>s!==d);return}i||(this.selected=this.multiselect?[...this.selected,s]:[s])}handleMenuItemSelect(s){s.preventDefault(),this.handleSelectItem(this.getActiveMenuItem(s))}emitSelection(){this.dispatchEvent(new Bp({detail:{selected:this.selected}}))}get highlightedItem(){return this.getMenuItems()[this.highlightedIndex]}clearHighlightedItem(){this.highlightedIndex!==-1&&(this.highlightedItem.highlighted=!1)}handleKeyDown(s){var i,l;(l=(i=this.keyBindings)[s.key])==null||l.call(i,s)}resetHighlightedIndex(){this.highlightedIndex=-1}resetScrollPosition(){this.scrollTop=0}reset(){this.clearHighlightedItem(),this.resetHighlightedIndex(),this.resetScrollPosition()}emitBlur(){this.dispatchEvent(new Hp),this.reset()}handleTabKey(s){s.preventDefault(),this.emitBlur()}applyPropsToChildren(s){!Bb(s)||s.forEach(i=>{var l;i.selectable=this.selectable&&i.id!==Uu,i.toggleable=this.multiselect&&i.id!==Uu,i.id!==vi&&(i.selected=i.value!==void 0?(l=this.selected)==null?void 0:l.includes(i.value):!1)})}handleSlotChange(s){const i=s.target.assignedElements({flatten:!0});this.applyPropsToChildren(i)}handleVirtualListUpdate({detail:{itemElements:s}}){this.applyPropsToChildren(s),this.virtualListMenuItems=s}render(){return K`
3072
+ `;Cl([R({type:Boolean,reflect:!0})],exports.MenuItem.prototype,"disabled",2);Cl([R({type:Boolean,reflect:!0})],exports.MenuItem.prototype,"highlighted",2);Cl([R({type:Boolean,attribute:!1})],exports.MenuItem.prototype,"selectable",2);Cl([R({type:Boolean,reflect:!0})],exports.MenuItem.prototype,"selected",2);Cl([R({type:Boolean,attribute:!1})],exports.MenuItem.prototype,"toggleable",2);Cl([R({type:String})],exports.MenuItem.prototype,"value",2);exports.MenuItem=Cl([X(D0)],exports.MenuItem);class Wp extends CustomEvent{constructor(i={}){super("brz-menu-item-select",{bubbles:!0,composed:!0,...i})}}var Wb=Object.defineProperty,Ub=Object.getOwnPropertyDescriptor,La=(s,i,l,d)=>{for(var c=d>1?void 0:d?Ub(i,l):i,g=s.length-1,b;g>=0;g--)(b=s[g])&&(c=(d?b(i,l,c):b(c))||c);return d&&c&&Wb(i,l,c),c};const Up=Le("menu"),vi="selectAll",Zp=["small","medium","large"];exports.Menu=class extends Be{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(s){var i;super.updated(s),s.has("highlightedIndex")&&((i=this.highlightedItem)==null||i.scrollIntoView({block:"center"}))}getMenuItems(){return this.virtualListMenuItems||this.menuItems}handleUpOrDownKey(s){s.preventDefault();const{key:i}=s,l=({before:c,after:g})=>(b,I)=>b.hidden?!1:c===void 0&&g===void 0||c!==void 0&&I<c||g!==void 0&&I>g;this.clearHighlightedItem();const d=this.getMenuItems();if(this.highlightedIndex===-1){this.highlightedIndex=0,d[this.highlightedIndex].highlighted=!0;return}i==="ArrowUp"&&(this.highlightedIndex=Wu.exports.findLastIndex(d,l({before:this.highlightedIndex})),this.highlightedIndex===-1&&(this.highlightedIndex=d.length-1)),i==="ArrowDown"&&(this.highlightedIndex=d.findIndex(l({after:this.highlightedIndex})),this.highlightedIndex===-1&&(this.highlightedIndex=0)),d[this.highlightedIndex].highlighted=!0}handleEnterOrSpaceKey(s){if(s.preventDefault(),this.highlightedIndex===-1)return this.emitBlur();this.getActiveMenuItem().emitSelect()}get selectedItems(){return this.getMenuItems().filter(s=>s.selected)}getActiveMenuItem(s){return s?s.detail.item:this.highlightedItem}bypassSelectedState(){if(!this.multiselect)return this.emitBlur()}handleSelectItem(s){if(!this.selectable)return this.bypassSelectedState();if(s.value===void 0)throw new Error("No value found for MenuItem");if(!s.disabled){if(this.multiselect)s.toggle();else{const[i]=this.selectedItems;i==null||i.deselect(),s.select()}this.updateSelected(s.value),this.emitSelection(),this.multiselect||this.emitBlur()}}updateSelected(s){const i=this.selected.some(d=>s===d);if(this.multiselect&&i){this.selected=this.selected.filter(d=>s!==d);return}i||(this.selected=this.multiselect?[...this.selected,s]:[s])}handleMenuItemSelect(s){s.preventDefault(),this.handleSelectItem(this.getActiveMenuItem(s))}emitSelection(){this.dispatchEvent(new Gp({detail:{selected:this.selected}}))}get highlightedItem(){return this.getMenuItems()[this.highlightedIndex]}clearHighlightedItem(){this.highlightedIndex!==-1&&(this.highlightedItem.highlighted=!1)}handleKeyDown(s){var i,l;(l=(i=this.keyBindings)[s.key])==null||l.call(i,s)}resetHighlightedIndex(){this.highlightedIndex=-1}resetScrollPosition(){this.scrollTop=0}reset(){this.clearHighlightedItem(),this.resetHighlightedIndex(),this.resetScrollPosition()}emitBlur(){this.dispatchEvent(new Vp),this.reset()}handleTabKey(s){s.preventDefault(),this.emitBlur()}applyPropsToChildren(s){!Zb(s)||s.forEach(i=>{var l;i.selectable=this.selectable&&i.id!==Uu,i.toggleable=this.multiselect&&i.id!==Uu,i.id!==vi&&(i.selected=i.value!==void 0?(l=this.selected)==null?void 0:l.includes(i.value):!1)})}handleSlotChange(s){const i=s.target.assignedElements({flatten:!0});this.applyPropsToChildren(i)}handleVirtualListUpdate({detail:{itemElements:s}}){this.applyPropsToChildren(s),this.virtualListMenuItems=s}render(){return j`
3069
3073
  <ul
3070
3074
  class="menu"
3071
3075
  role="menu"
@@ -3075,7 +3079,7 @@ ${this.value}</textarea
3075
3079
  >
3076
3080
  <slot @slotchange=${this.handleSlotChange}></slot>
3077
3081
  </ul>
3078
- `}};exports.Menu.styles=ce`
3082
+ `}};exports.Menu.styles=ue`
3079
3083
  :host {
3080
3084
  --brz-list-max-height: 14rem;
3081
3085
  --brz-menu-padding-y: var(--brz-spacing-1);
@@ -3111,7 +3115,7 @@ ${this.value}</textarea
3111
3115
  width: var(--brz-menu-width, 10rem);
3112
3116
  padding: 0;
3113
3117
  }
3114
- `;La([R({type:Boolean})],exports.Menu.prototype,"multiselect",2);La([R({type:Boolean})],exports.Menu.prototype,"selectable",2);La([R({type:Array})],exports.Menu.prototype,"selected",2);La([R({reflect:!0})],exports.Menu.prototype,"size",2);La([Re()],exports.Menu.prototype,"highlightedIndex",2);La([Re()],exports.Menu.prototype,"virtualListMenuItems",2);La([Io({flatten:!0})],exports.Menu.prototype,"menuItems",2);exports.Menu=La([X(Rp)],exports.Menu);const Bb=s=>s[0]instanceof exports.MenuItem;class Hp extends CustomEvent{constructor(i={}){super("brz-menu-blur",{bubbles:!0,composed:!0,...i})}}class Bp extends CustomEvent{constructor(i={}){super("brz-menu-select",{bubbles:!0,composed:!0,...i})}}var Fb=Object.defineProperty,Wb=Object.getOwnPropertyDescriptor,to=(s,i,l,d)=>{for(var c=d>1?void 0:d?Wb(i,l):i,g=s.length-1,b;g>=0;g--)(b=s[g])&&(c=(d?b(i,l,c):b(c))||c);return d&&c&&Fb(i,l,c),c};const Fp=Le("dropdown-menu"),Ub=[...Np,"fluid"];exports.DropdownMenu=class extends Be{constructor(){super(...arguments),this.multiselect=!1,this.selectable=!1,this.selected=[],this.disabled=!1}updated(s){super.updated(s),this.size==="fluid"&&this.applyFluidWidth()}applyFluidWidth(){const{clientWidth:s,offsetWidth:i}=this.referenceElement,l=window.getComputedStyle(this.referenceElement);this.fluidWidth=l.boxSizing==="border-box"&&l.width!==void 0?s: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 s;(s=this.popover)==null||s.updatePosition()}render(){return K`
3118
+ `;La([R({type:Boolean})],exports.Menu.prototype,"multiselect",2);La([R({type:Boolean})],exports.Menu.prototype,"selectable",2);La([R({type:Array})],exports.Menu.prototype,"selected",2);La([R({reflect:!0})],exports.Menu.prototype,"size",2);La([Re()],exports.Menu.prototype,"highlightedIndex",2);La([Re()],exports.Menu.prototype,"virtualListMenuItems",2);La([Io({flatten:!0})],exports.Menu.prototype,"menuItems",2);exports.Menu=La([X(Up)],exports.Menu);const Zb=s=>s[0]instanceof exports.MenuItem;class Vp extends CustomEvent{constructor(i={}){super("brz-menu-blur",{bubbles:!0,composed:!0,...i})}}class Gp extends CustomEvent{constructor(i={}){super("brz-menu-select",{bubbles:!0,composed:!0,...i})}}var Vb=Object.defineProperty,Gb=Object.getOwnPropertyDescriptor,to=(s,i,l,d)=>{for(var c=d>1?void 0:d?Gb(i,l):i,g=s.length-1,b;g>=0;g--)(b=s[g])&&(c=(d?b(i,l,c):b(c))||c);return d&&c&&Vb(i,l,c),c};const qp=Le("dropdown-menu"),qb=[...Zp,"fluid"];exports.DropdownMenu=class extends Be{constructor(){super(...arguments),this.multiselect=!1,this.selectable=!1,this.selected=[],this.disabled=!1}updated(s){super.updated(s),this.size==="fluid"&&this.applyFluidWidth()}applyFluidWidth(){const{clientWidth:s,offsetWidth:i}=this.referenceElement,l=window.getComputedStyle(this.referenceElement);this.fluidWidth=l.boxSizing==="border-box"&&l.width!==void 0?s: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 s;(s=this.popover)==null||s.updatePosition()}render(){return j`
3115
3119
  <brz-popover
3116
3120
  trigger="click"
3117
3121
  placement="bottom-start"
@@ -3135,13 +3139,13 @@ ${this.value}</textarea
3135
3139
  <slot name="options"></slot>
3136
3140
  </brz-menu>
3137
3141
  </brz-popover>
3138
- `}};exports.DropdownMenu.styles=ce`
3142
+ `}};exports.DropdownMenu.styles=ue`
3139
3143
  ${gl(":focus-within brz-menu:focus-visible")};
3140
- `;to([R({type:Boolean})],exports.DropdownMenu.prototype,"multiselect",2);to([R({type:Boolean})],exports.DropdownMenu.prototype,"selectable",2);to([R({type:Array})],exports.DropdownMenu.prototype,"selected",2);to([R()],exports.DropdownMenu.prototype,"size",2);to([Re()],exports.DropdownMenu.prototype,"fluidWidth",2);to([Re()],exports.DropdownMenu.prototype,"disabled",2);to([Ji("brz-menu")],exports.DropdownMenu.prototype,"menu",2);to([Ji("brz-popover")],exports.DropdownMenu.prototype,"popover",2);to([Io()],exports.DropdownMenu.prototype,"slottedElements",2);exports.DropdownMenu=to([X(Fp)],exports.DropdownMenu);var Zb=Object.defineProperty,Gb=Object.getOwnPropertyDescriptor,Wp=(s,i,l,d)=>{for(var c=d>1?void 0:d?Gb(i,l):i,g=s.length-1,b;g>=0;g--)(b=s[g])&&(c=(d?b(i,l,c):b(c))||c);return d&&c&&Zb(i,l,c),c};const Up=Le("combo-box"),Zp=Le("combo-box-option");exports.ComboBox=class extends exports.DropdownMenu{};exports.ComboBox=Wp([X(Up)],exports.ComboBox);exports.ComboBoxOption=class extends exports.MenuItem{};exports.ComboBoxOption=Wp([X(Zp)],exports.ComboBoxOption);var Vb=Object.defineProperty,qb=Object.getOwnPropertyDescriptor,Is=(s,i,l,d)=>{for(var c=d>1?void 0:d?qb(i,l):i,g=s.length-1,b;g>=0;g--)(b=s[g])&&(c=(d?b(i,l,c):b(c))||c);return d&&c&&Vb(i,l,c),c};const Gp=Le("modal"),jb=["small","medium","large","x-large"];class Gd extends CustomEvent{constructor(){super("brz-modal-close",{bubbles:!0})}}exports.Modal=class extends Be{constructor(){super(...arguments),this.size="small",this.open=!1,this.noClose=!1,this.shown=this.open,this.handleKeyUp=s=>{if(s.key==="Escape")return this.handleClose(s)},this.handleClose=s=>{s instanceof MouseEvent&&this.noClose||s instanceof MouseEvent&&s.target!==this.overlay||(s.stopPropagation(),this.dispatchEvent(new Gd))}}connectedCallback(){super.connectedCallback(),window.addEventListener("keyup",this.handleKeyUp,!0)}disconnectedCallback(){super.disconnectedCallback(),window.removeEventListener("keyup",this.handleKeyUp,!0)}handleTransitionEnd(s){s.target===this.overlay&&(this.shown=!1)}render(){return K`
3144
+ `;to([R({type:Boolean})],exports.DropdownMenu.prototype,"multiselect",2);to([R({type:Boolean})],exports.DropdownMenu.prototype,"selectable",2);to([R({type:Array})],exports.DropdownMenu.prototype,"selected",2);to([R()],exports.DropdownMenu.prototype,"size",2);to([Re()],exports.DropdownMenu.prototype,"fluidWidth",2);to([Re()],exports.DropdownMenu.prototype,"disabled",2);to([Ji("brz-menu")],exports.DropdownMenu.prototype,"menu",2);to([Ji("brz-popover")],exports.DropdownMenu.prototype,"popover",2);to([Io()],exports.DropdownMenu.prototype,"slottedElements",2);exports.DropdownMenu=to([X(qp)],exports.DropdownMenu);var jb=Object.defineProperty,Kb=Object.getOwnPropertyDescriptor,jp=(s,i,l,d)=>{for(var c=d>1?void 0:d?Kb(i,l):i,g=s.length-1,b;g>=0;g--)(b=s[g])&&(c=(d?b(i,l,c):b(c))||c);return d&&c&&jb(i,l,c),c};const Kp=Le("combo-box"),Yp=Le("combo-box-option");exports.ComboBox=class extends exports.DropdownMenu{};exports.ComboBox=jp([X(Kp)],exports.ComboBox);exports.ComboBoxOption=class extends exports.MenuItem{};exports.ComboBoxOption=jp([X(Yp)],exports.ComboBoxOption);var Yb=Object.defineProperty,Xb=Object.getOwnPropertyDescriptor,Is=(s,i,l,d)=>{for(var c=d>1?void 0:d?Xb(i,l):i,g=s.length-1,b;g>=0;g--)(b=s[g])&&(c=(d?b(i,l,c):b(c))||c);return d&&c&&Yb(i,l,c),c};const Xp=Le("modal"),Qb=["small","medium","large","x-large"];class Vd extends CustomEvent{constructor(){super("brz-modal-close",{bubbles:!0})}}exports.Modal=class extends Be{constructor(){super(...arguments),this.size="small",this.open=!1,this.noClose=!1,this.shown=this.open,this.handleKeyUp=s=>{if(s.key==="Escape")return this.handleClose(s)},this.handleClose=s=>{s instanceof MouseEvent&&this.noClose||s instanceof MouseEvent&&s.target!==this.overlay||(s.stopPropagation(),this.dispatchEvent(new Vd))}}connectedCallback(){super.connectedCallback(),window.addEventListener("keyup",this.handleKeyUp,!0)}disconnectedCallback(){super.disconnectedCallback(),window.removeEventListener("keyup",this.handleKeyUp,!0)}handleTransitionEnd(s){s.target===this.overlay&&(this.shown=!1)}render(){return j`
3141
3145
  <brz-fade-in-out ?shown=${this.open}>
3142
3146
  <div
3143
3147
  id="overlay"
3144
- class="${Cn({overlay:!0,medium:this.size==="medium",large:this.size==="large","x-large":this.size==="x-large"})}"
3148
+ class="${un({overlay:!0,medium:this.size==="medium",large:this.size==="large","x-large":this.size==="x-large"})}"
3145
3149
  @mousedown=${this.handleClose}
3146
3150
  @keyup=${()=>{}}
3147
3151
  @transitionend=${this.handleTransitionEnd}
@@ -3151,7 +3155,7 @@ ${this.value}</textarea
3151
3155
  </div>
3152
3156
  </div>
3153
3157
  </brz-fade-in-out>
3154
- `}};exports.Modal.styles=ce`
3158
+ `}};exports.Modal.styles=ue`
3155
3159
  :host {
3156
3160
  position: relative;
3157
3161
  z-index: var(--brz-z-index-dialog);
@@ -3211,7 +3215,7 @@ ${this.value}</textarea
3211
3215
  ::slotted(sp-modal-body:first-child) {
3212
3216
  padding-top: var(--brz-spacing-10);
3213
3217
  }
3214
- `;Is([R({type:String})],exports.Modal.prototype,"size",2);Is([R({type:Boolean})],exports.Modal.prototype,"open",2);Is([R({type:Boolean,attribute:"no-close"})],exports.Modal.prototype,"noClose",2);Is([R({attribute:!1})],exports.Modal.prototype,"shown",2);Is([Ji("#overlay")],exports.Modal.prototype,"overlay",2);exports.Modal=Is([X(Gp)],exports.Modal);var Kb=Object.defineProperty,Yb=Object.getOwnPropertyDescriptor,ro=(s,i,l,d)=>{for(var c=d>1?void 0:d?Yb(i,l):i,g=s.length-1,b;g>=0;g--)(b=s[g])&&(c=(d?b(i,l,c):b(c))||c);return d&&c&&Kb(i,l,c),c};const Vp=Le("split-row"),qp=Le("action-bar");exports.SplitRow=class extends Be{constructor(){super(...arguments),this.verticalAlign="top",this.leftExpand=!1,this.rightExpand=!1,this.noGap=!1,this.expandY=!1}render(){return K`
3218
+ `;Is([R({type:String})],exports.Modal.prototype,"size",2);Is([R({type:Boolean})],exports.Modal.prototype,"open",2);Is([R({type:Boolean,attribute:"no-close"})],exports.Modal.prototype,"noClose",2);Is([R({attribute:!1})],exports.Modal.prototype,"shown",2);Is([Ji("#overlay")],exports.Modal.prototype,"overlay",2);exports.Modal=Is([X(Xp)],exports.Modal);var Jb=Object.defineProperty,e8=Object.getOwnPropertyDescriptor,ro=(s,i,l,d)=>{for(var c=d>1?void 0:d?e8(i,l):i,g=s.length-1,b;g>=0;g--)(b=s[g])&&(c=(d?b(i,l,c):b(c))||c);return d&&c&&Jb(i,l,c),c};const Qp=Le("split-row"),Jp=Le("action-bar");exports.SplitRow=class extends Be{constructor(){super(...arguments),this.verticalAlign="top",this.leftExpand=!1,this.rightExpand=!1,this.noGap=!1,this.expandY=!1}render(){return j`
3215
3219
  <brz-row vertical-align=${this.verticalAlign}>
3216
3220
  <div class="left">
3217
3221
  <slot name="left"></slot>
@@ -3220,7 +3224,7 @@ ${this.value}</textarea
3220
3224
  <slot name="right"></slot>
3221
3225
  </div>
3222
3226
  </brz-row>
3223
- `}};exports.SplitRow.styles=ce`
3227
+ `}};exports.SplitRow.styles=ue`
3224
3228
  :host {
3225
3229
  display: block;
3226
3230
  }
@@ -3249,7 +3253,7 @@ ${this.value}</textarea
3249
3253
  :host([right-expand]) .right {
3250
3254
  flex: 1;
3251
3255
  }
3252
- `;ro([R({type:String,attribute:"vertical-align",reflect:!0})],exports.SplitRow.prototype,"verticalAlign",2);ro([R({type:Boolean,attribute:"left-expand",reflect:!0})],exports.SplitRow.prototype,"leftExpand",2);ro([R({type:Boolean,attribute:"right-expand",reflect:!0})],exports.SplitRow.prototype,"rightExpand",2);ro([R({type:Boolean,attribute:"no-gap",reflect:!0})],exports.SplitRow.prototype,"noGap",2);ro([R({type:Boolean,attribute:"expand-y"})],exports.SplitRow.prototype,"expandY",2);exports.SplitRow=ro([X(Vp)],exports.SplitRow);exports.ActionBar=class extends Be{constructor(){super(...arguments),this.noBorder=!1,this.leftExpand=!1,this.rightExpand=!1}render(){return K`
3256
+ `;ro([R({type:String,attribute:"vertical-align",reflect:!0})],exports.SplitRow.prototype,"verticalAlign",2);ro([R({type:Boolean,attribute:"left-expand",reflect:!0})],exports.SplitRow.prototype,"leftExpand",2);ro([R({type:Boolean,attribute:"right-expand",reflect:!0})],exports.SplitRow.prototype,"rightExpand",2);ro([R({type:Boolean,attribute:"no-gap",reflect:!0})],exports.SplitRow.prototype,"noGap",2);ro([R({type:Boolean,attribute:"expand-y"})],exports.SplitRow.prototype,"expandY",2);exports.SplitRow=ro([X(Qp)],exports.SplitRow);exports.ActionBar=class extends Be{constructor(){super(...arguments),this.noBorder=!1,this.leftExpand=!1,this.rightExpand=!1}render(){return j`
3253
3257
  <brz-split-row
3254
3258
  vertical-align="middle"
3255
3259
  ?left-expand=${this.leftExpand}
@@ -3258,7 +3262,7 @@ ${this.value}</textarea
3258
3262
  <slot slot="left" name="left"></slot>
3259
3263
  <slot slot="right" name="right"></slot>
3260
3264
  </brz-split-row>
3261
- `}};exports.ActionBar.styles=ce`
3265
+ `}};exports.ActionBar.styles=ue`
3262
3266
  brz-split-row {
3263
3267
  padding: var(--brz-spacing-2) var(--brz-spacing-5);
3264
3268
  box-shadow: inset 0 -1px 0 var(--brz-color-neutral-300);
@@ -3267,9 +3271,9 @@ ${this.value}</textarea
3267
3271
  :host([no-border]) brz-split-row {
3268
3272
  box-shadow: none;
3269
3273
  }
3270
- `;ro([R({type:Boolean,attribute:"no-border",reflect:!0})],exports.ActionBar.prototype,"noBorder",2);ro([R({type:Boolean,attribute:"left-expand",reflect:!0})],exports.ActionBar.prototype,"leftExpand",2);ro([R({type:Boolean,attribute:"right-expand",reflect:!0})],exports.ActionBar.prototype,"rightExpand",2);exports.ActionBar=ro([X(qp)],exports.ActionBar);var Xb=Object.defineProperty,Qb=Object.getOwnPropertyDescriptor,Y0=(s,i,l,d)=>{for(var c=d>1?void 0:d?Qb(i,l):i,g=s.length-1,b;g>=0;g--)(b=s[g])&&(c=(d?b(i,l,c):b(c))||c);return d&&c&&Xb(i,l,c),c};const jp=Le("modal-header"),Kp=Le("modal-body"),Yp=Le("modal-footer");exports.ModalHeader=class extends Be{get _noClose(){var s;return(s=xd(this.parentElement,exports.Modal))==null?void 0:s.noClose}_handleClickClose(){this.dispatchEvent(new Gd)}render(){return K`
3274
+ `;ro([R({type:Boolean,attribute:"no-border",reflect:!0})],exports.ActionBar.prototype,"noBorder",2);ro([R({type:Boolean,attribute:"left-expand",reflect:!0})],exports.ActionBar.prototype,"leftExpand",2);ro([R({type:Boolean,attribute:"right-expand",reflect:!0})],exports.ActionBar.prototype,"rightExpand",2);exports.ActionBar=ro([X(Jp)],exports.ActionBar);var t8=Object.defineProperty,r8=Object.getOwnPropertyDescriptor,Y0=(s,i,l,d)=>{for(var c=d>1?void 0:d?r8(i,l):i,g=s.length-1,b;g>=0;g--)(b=s[g])&&(c=(d?b(i,l,c):b(c))||c);return d&&c&&t8(i,l,c),c};const e2=Le("modal-header"),t2=Le("modal-body"),r2=Le("modal-footer");exports.ModalHeader=class extends Be{get _noClose(){var s;return(s=xd(this.parentElement,exports.Modal))==null?void 0:s.noClose}_handleClickClose(){this.dispatchEvent(new Vd)}render(){return j`
3271
3275
  <brz-heading size="xl"><slot></slot></brz-heading>
3272
- ${this._noClose?void 0:K`
3276
+ ${this._noClose?void 0:j`
3273
3277
  <brz-button
3274
3278
  @brz-button-click=${this._handleClickClose}
3275
3279
  button-type="transparent"
@@ -3279,7 +3283,7 @@ ${this.value}</textarea
3279
3283
  compact
3280
3284
  ></brz-button>
3281
3285
  `}
3282
- `}};exports.ModalHeader.styles=ce`
3286
+ `}};exports.ModalHeader.styles=ue`
3283
3287
  :host {
3284
3288
  padding: var(--brz-spacing-4) var(--brz-spacing-6);
3285
3289
  display: flex;
@@ -3296,7 +3300,7 @@ ${this.value}</textarea
3296
3300
  brz-button.close {
3297
3301
  margin-right: calc(0px - var(--brz-spacing-2));
3298
3302
  }
3299
- `;exports.ModalHeader=Y0([X(jp)],exports.ModalHeader);exports.ModalBody=class extends Be{constructor(){super(...arguments),this.scrollable=!1,this._resizeObserver=new ResizeObserver(()=>{this.scrollable=this.scrollHeight>this.clientHeight})}connectedCallback(){super.connectedCallback(),this._resizeObserver.observe(this)}disconnectedCallback(){super.disconnectedCallback(),this._resizeObserver.unobserve(this)}render(){return K`<slot></slot>`}};exports.ModalBody.styles=ce`
3303
+ `;exports.ModalHeader=Y0([X(e2)],exports.ModalHeader);exports.ModalBody=class extends Be{constructor(){super(...arguments),this.scrollable=!1,this._resizeObserver=new ResizeObserver(()=>{this.scrollable=this.scrollHeight>this.clientHeight})}connectedCallback(){super.connectedCallback(),this._resizeObserver.observe(this)}disconnectedCallback(){super.disconnectedCallback(),this._resizeObserver.unobserve(this)}render(){return j`<slot></slot>`}};exports.ModalBody.styles=ue`
3300
3304
  :host {
3301
3305
  display: block;
3302
3306
  padding: var(--brz-spacing-5) var(--brz-spacing-6);
@@ -3306,16 +3310,16 @@ ${this.value}</textarea
3306
3310
  :host([scrollable]) {
3307
3311
  border-bottom: 1px solid var(--brz-color-neutral-300);
3308
3312
  }
3309
- `;Y0([R({type:Boolean,reflect:!0})],exports.ModalBody.prototype,"scrollable",2);exports.ModalBody=Y0([X(Kp)],exports.ModalBody);exports.ModalFooter=class extends Be{render(){return K`
3313
+ `;Y0([R({type:Boolean,reflect:!0})],exports.ModalBody.prototype,"scrollable",2);exports.ModalBody=Y0([X(t2)],exports.ModalBody);exports.ModalFooter=class extends Be{render(){return j`
3310
3314
  <brz-split-row vertical-align="middle">
3311
3315
  <slot slot="left" name="left"></slot>
3312
3316
  <slot slot="right" name="right"></slot>
3313
3317
  </brz-split-row>
3314
- `}};exports.ModalFooter.styles=ce`
3318
+ `}};exports.ModalFooter.styles=ue`
3315
3319
  :host {
3316
3320
  padding: var(--brz-spacing-5) var(--brz-spacing-6);
3317
3321
  }
3318
- `;exports.ModalFooter=Y0([X(Yp)],exports.ModalFooter);var Jb=Object.defineProperty,e8=Object.getOwnPropertyDescriptor,Xp=(s,i,l,d)=>{for(var c=d>1?void 0:d?e8(i,l):i,g=s.length-1,b;g>=0;g--)(b=s[g])&&(c=(d?b(i,l,c):b(c))||c);return d&&c&&Jb(i,l,c),c};const Qp=Le("confirmation-dialog");class Jp extends CustomEvent{constructor(){super("brz-dialog-cancel",{bubbles:!0})}}class e2 extends CustomEvent{constructor(){super("brz-dialog-confirm",{bubbles:!0})}}exports.ConfirmationDialog=class extends Be{constructor(){super(...arguments),this.open=!1}handleCancel(){this.dispatchEvent(new Jp)}handleConfirm(){this.dispatchEvent(new e2)}render(){return K`<brz-modal size="small" ?open=${this.open} noClose>
3322
+ `;exports.ModalFooter=Y0([X(r2)],exports.ModalFooter);var n8=Object.defineProperty,i8=Object.getOwnPropertyDescriptor,n2=(s,i,l,d)=>{for(var c=d>1?void 0:d?i8(i,l):i,g=s.length-1,b;g>=0;g--)(b=s[g])&&(c=(d?b(i,l,c):b(c))||c);return d&&c&&n8(i,l,c),c};const i2=Le("confirmation-dialog");class o2 extends CustomEvent{constructor(){super("brz-dialog-cancel",{bubbles:!0})}}class a2 extends CustomEvent{constructor(){super("brz-dialog-confirm",{bubbles:!0})}}exports.ConfirmationDialog=class extends Be{constructor(){super(...arguments),this.open=!1}handleCancel(){this.dispatchEvent(new o2)}handleConfirm(){this.dispatchEvent(new a2)}render(){return j`<brz-modal size="small" ?open=${this.open} noClose>
3319
3323
  <brz-modal-body>
3320
3324
  <slot name="body"></slot>
3321
3325
  </brz-modal-body>
@@ -3329,12 +3333,12 @@ ${this.value}</textarea
3329
3333
  </brz-button>
3330
3334
  </brz-button-group>
3331
3335
  </brz-modal-footer>
3332
- </brz-modal>`}};Xp([R({type:Boolean})],exports.ConfirmationDialog.prototype,"open",2);exports.ConfirmationDialog=Xp([X(Qp)],exports.ConfirmationDialog);var t8=Object.defineProperty,r8=Object.getOwnPropertyDescriptor,t2=(s,i,l,d)=>{for(var c=d>1?void 0:d?r8(i,l):i,g=s.length-1,b;g>=0;g--)(b=s[g])&&(c=(d?b(i,l,c):b(c))||c);return d&&c&&t8(i,l,c),c};const r2=Le("dropdown-button");exports.DropdownButton=class extends exports.Button{constructor(){super(...arguments),this.trailingIcon="chevronDown"}updated(s){if(super.updated(s),s.has("iconOnly")&&this.iconOnly&&this.leadingIcon)return this.trailingIcon=void 0;s.has("trailingIcon")&&s.get("trailingIcon")!=="chevronDown"&&(this.trailingIcon="chevronDown")}render(){return K`
3336
+ </brz-modal>`}};n2([R({type:Boolean})],exports.ConfirmationDialog.prototype,"open",2);exports.ConfirmationDialog=n2([X(i2)],exports.ConfirmationDialog);var o8=Object.defineProperty,a8=Object.getOwnPropertyDescriptor,l2=(s,i,l,d)=>{for(var c=d>1?void 0:d?a8(i,l):i,g=s.length-1,b;g>=0;g--)(b=s[g])&&(c=(d?b(i,l,c):b(c))||c);return d&&c&&o8(i,l,c),c};const s2=Le("dropdown-button");exports.DropdownButton=class extends exports.Button{constructor(){super(...arguments),this.trailingIcon="chevronDown"}updated(s){if(super.updated(s),s.has("iconOnly")&&this.iconOnly&&this.leadingIcon)return this.trailingIcon=void 0;s.has("trailingIcon")&&s.get("trailingIcon")!=="chevronDown"&&(this.trailingIcon="chevronDown")}render(){return j`
3333
3337
  <brz-dropdown-menu .size=${this.menuSize}>
3334
3338
  ${super.render()}
3335
3339
  <slot name="options" slot="options"></slot>
3336
3340
  </brz-dropdown-menu>
3337
- `}};t2([R({attribute:"menu-size"})],exports.DropdownButton.prototype,"menuSize",2);exports.DropdownButton=t2([X(r2)],exports.DropdownButton);var n8=Object.defineProperty,i8=Object.getOwnPropertyDescriptor,Vd=(s,i,l,d)=>{for(var c=d>1?void 0:d?i8(i,l):i,g=s.length-1,b;g>=0;g--)(b=s[g])&&(c=(d?b(i,l,c):b(c))||c);return d&&c&&n8(i,l,c),c};const n2=Le("heading");exports.Heading=class extends Be{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 s=`size-${(i=this.size)!=null?i:"base"}`;switch(this.getLevel()){case 1:return K`<h1 class=${s}><slot></slot></h1>`;case 2:return K`<h2 class=${s}><slot></slot></h2>`;case 3:return K`<h3 class=${s}><slot></slot></h3>`;case 4:return K`<h4 class=${s}><slot></slot></h4>`;case 5:return K`<h5 class=${s}><slot></slot></h5>`;case 6:return K`<h6 class=${s}><slot></slot></h6>`}}};exports.Heading.styles=ce`
3341
+ `}};l2([R({attribute:"menu-size"})],exports.DropdownButton.prototype,"menuSize",2);exports.DropdownButton=l2([X(s2)],exports.DropdownButton);var l8=Object.defineProperty,s8=Object.getOwnPropertyDescriptor,Gd=(s,i,l,d)=>{for(var c=d>1?void 0:d?s8(i,l):i,g=s.length-1,b;g>=0;g--)(b=s[g])&&(c=(d?b(i,l,c):b(c))||c);return d&&c&&l8(i,l,c),c};const u2=Le("heading");exports.Heading=class extends Be{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 s=`size-${(i=this.size)!=null?i:"base"}`;switch(this.getLevel()){case 1:return j`<h1 class=${s}><slot></slot></h1>`;case 2:return j`<h2 class=${s}><slot></slot></h2>`;case 3:return j`<h3 class=${s}><slot></slot></h3>`;case 4:return j`<h4 class=${s}><slot></slot></h4>`;case 5:return j`<h5 class=${s}><slot></slot></h5>`;case 6:return j`<h6 class=${s}><slot></slot></h6>`}}};exports.Heading.styles=ue`
3338
3342
  h1,
3339
3343
  h2,
3340
3344
  h3,
@@ -3379,32 +3383,9 @@ ${this.value}</textarea
3379
3383
  :host {
3380
3384
  display: block;
3381
3385
  }
3382
- `;Vd([R({type:String})],exports.Heading.prototype,"size",2);Vd([R({type:Number})],exports.Heading.prototype,"level",2);exports.Heading=Vd([X(n2)],exports.Heading);const i2=Le("inline-edit-field"),qd=Le("inline-edit-group"),o2=Le("inline-edit-controls"),a2=["edit","saving"],o8=["read","saved",...a2];class l2 extends CustomEvent{constructor(i={}){super("brz-inline-edit-controls-cancel",{bubbles:!0,composed:!0,...i})}}class s2 extends CustomEvent{constructor(i={}){super("brz-inline-edit-controls-save",{bubbles:!0,composed:!0,...i})}}class u2 extends CustomEvent{constructor(i={}){super("brz-inline-edit-field-broadcast",{bubbles:!0,composed:!0,...i})}}class c2 extends CustomEvent{constructor(i={}){super("brz-inline-edit-field-mode-change",{bubbles:!0,composed:!0,...i})}}class d2 extends CustomEvent{constructor(i={}){super("brz-inline-edit-group-mode-change",{bubbles:!0,composed:!0,...i})}}var a8=Object.defineProperty,l8=Object.getOwnPropertyDescriptor,f2=(s,i,l,d)=>{for(var c=d>1?void 0:d?l8(i,l):i,g=s.length-1,b;g>=0;g--)(b=s[g])&&(c=(d?b(i,l,c):b(c))||c);return d&&c&&a8(i,l,c),c};exports.InlineEditControls=class extends Be{constructor(){super(...arguments),this.mode="edit"}handleCancelClick(){this.dispatchEvent(new l2)}handleSaveClick(){this.dispatchEvent(new s2)}render(){return K`
3383
- <brz-split-row>
3384
- <brz-button-group slot="right">
3385
- ${this.mode==="edit"?K`
3386
- <brz-button
3387
- @brz-button-click=${this.handleCancelClick}
3388
- button-type="transparent"
3389
- compact
3390
- >
3391
- Cancel
3392
- </brz-button>
3393
- `:null}
3394
-
3395
- <brz-button
3396
- @brz-button-click=${this.handleSaveClick}
3397
- ?loading=${this.mode==="saving"}
3398
- ?disabled=${this.mode==="saving"}
3399
- compact
3400
- >
3401
- Save
3402
- </brz-button>
3403
- </brz-button-group>
3404
- </brz-split-row>
3405
- `}};f2([R()],exports.InlineEditControls.prototype,"mode",2);exports.InlineEditControls=f2([X(o2)],exports.InlineEditControls);var s8=Object.defineProperty,u8=Object.getOwnPropertyDescriptor,jd=(s,i,l,d)=>{for(var c=d>1?void 0:d?u8(i,l):i,g=s.length-1,b;g>=0;g--)(b=s[g])&&(c=(d?b(i,l,c):b(c))||c);return d&&c&&s8(i,l,c),c};class Xu extends Be{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")}setSavedMode(){this.locked||(this.mode="saved",setTimeout(()=>this.setReadMode(),5e3))}setMode(i){switch(i){case"edit":return this.setEditMode();case"saving":return this.setSavingMode();case"saved":return this.setSavedMode();case"read":default:return this.setReadMode()}}async handleSaveClick(){this.setMode("saving");try{await this.handleSave(),this.setMode("saved")}catch(i){throw this.setMode("edit"),i}}handleCancelClick(){this.setMode("read")}}jd([R({type:Boolean})],Xu.prototype,"locked",2);jd([R({type:Function,attribute:!1})],Xu.prototype,"save",2);jd([Re()],Xu.prototype,"mode",2);const c8=ce`
3386
+ `;Gd([R({type:String})],exports.Heading.prototype,"size",2);Gd([R({type:Number})],exports.Heading.prototype,"level",2);exports.Heading=Gd([X(u2)],exports.Heading);const c2=Le("inline-edit-field"),qd=Le("inline-edit-group"),d2=Le("inline-edit-controls"),f2=["edit","saving","error"],u8=["read","saved",...f2];class h2 extends CustomEvent{constructor(i={}){super("brz-inline-edit-controls-cancel",{bubbles:!0,composed:!0,...i})}}class p2 extends CustomEvent{constructor(i={}){super("brz-inline-edit-controls-save",{bubbles:!0,composed:!0,...i})}}class g2 extends CustomEvent{constructor(i={}){super("brz-inline-edit-field-broadcast",{bubbles:!0,composed:!0,...i})}}class v2 extends CustomEvent{constructor(i={}){super("brz-inline-edit-field-mode-change",{bubbles:!0,composed:!0,...i})}}class b2 extends CustomEvent{constructor(i={}){super("brz-inline-edit-group-mode-change",{bubbles:!0,composed:!0,...i})}}const c8=ue`
3406
3387
  :host {
3407
- display: flex;
3388
+ display: block;
3408
3389
  }
3409
3390
 
3410
3391
  :host(:nth-of-type(n + 2)) {
@@ -3464,6 +3445,14 @@ ${this.value}</textarea
3464
3445
  margin-top: var(--brz-spacing-2);
3465
3446
  }
3466
3447
 
3448
+ .edit-mode {
3449
+ display: inline-block;
3450
+ }
3451
+
3452
+ .edit-mode.block {
3453
+ display: block;
3454
+ }
3455
+
3467
3456
  .value {
3468
3457
  max-width: calc(100% - var(--brz-spacing-5));
3469
3458
  text-align: left;
@@ -3484,38 +3473,81 @@ ${this.value}</textarea
3484
3473
  }
3485
3474
 
3486
3475
  brz-inline-edit-controls {
3487
- display: block;
3488
- margin-top: var(--brz-spacing-2);
3476
+ --brz-inline-edit-controls-spacing: var(--brz-spacing-2);
3477
+
3478
+ margin-top: var(--brz-inline-edit-controls-spacing);
3489
3479
  }
3490
- `,d8=ce`
3480
+ `,d8=ue`
3491
3481
  .inline-edit-group {
3482
+ display: inline-block;
3492
3483
  margin: 0;
3493
3484
  }
3494
3485
 
3495
3486
  brz-inline-edit-controls {
3496
- display: block;
3497
- margin-top: var(--brz-spacing-4);
3487
+ margin-top: var(--brz-inline-edit-controls-spacing);
3498
3488
  }
3499
- `;var f8=Object.defineProperty,h8=Object.getOwnPropertyDescriptor,Kd=(s,i,l,d)=>{for(var c=d>1?void 0:d?h8(i,l):i,g=s.length-1,b;g>=0;g--)(b=s[g])&&(c=(d?b(i,l,c):b(c))||c);return d&&c&&f8(i,l,c),c};exports.InlineEditGroup=class extends Xu{constructor(){super(...arguments),this.controller=!1,this.fields=[]}handleInlineEditFieldViewModeClick(){!this.controller||this.setMode("edit")}async handleSave(){var s;await((s=this.save)==null?void 0:s.call(this))}registerField(s){this.fields.push(s)}updated(s){super.updated(s),this.locked&&this.fields.forEach(i=>i.locked=!0),this.controller&&this.fields.forEach(i=>{i.controlled=!0,i.setMode(this.mode)}),s.has("mode")&&this.dispatchEvent(new d2({detail:{currentMode:this.mode,previousMode:s.get("mode"),fields:this.fields,group:this}}))}get defaultSlot(){return K`
3489
+ `,f8=ue`
3490
+ :host {
3491
+ --brz-inline-edit-controls-spacing: var(--brz-spacing-4);
3492
+
3493
+ display: flex;
3494
+ flex-direction: column;
3495
+ row-gap: var(--brz-inline-edit-controls-spacing);
3496
+ }
3497
+ `;var h8=Object.defineProperty,p8=Object.getOwnPropertyDescriptor,m2=(s,i,l,d)=>{for(var c=d>1?void 0:d?p8(i,l):i,g=s.length-1,b;g>=0;g--)(b=s[g])&&(c=(d?b(i,l,c):b(c))||c);return d&&c&&h8(i,l,c),c};exports.InlineEditControls=class extends Be{constructor(){super(...arguments),this.mode="edit"}handleCancelClick(){this.dispatchEvent(new h2)}handleSaveClick(){this.dispatchEvent(new p2)}render(){return j`
3498
+ <brz-split-row>
3499
+ <brz-button-group slot="right">
3500
+ ${["edit","error"].includes(this.mode)?j`
3501
+ <brz-button
3502
+ @brz-button-click=${this.handleCancelClick}
3503
+ button-type="transparent"
3504
+ compact
3505
+ >
3506
+ Cancel
3507
+ </brz-button>
3508
+ `:null}
3509
+
3510
+ <brz-button
3511
+ @brz-button-click=${this.handleSaveClick}
3512
+ ?loading=${this.mode==="saving"}
3513
+ ?disabled=${this.mode==="saving"}
3514
+ compact
3515
+ >
3516
+ Save
3517
+ </brz-button>
3518
+ </brz-button-group>
3519
+ </brz-split-row>
3520
+
3521
+ ${this.mode==="error"?j` <slot name="error"></slot> `:null}
3522
+ `}};exports.InlineEditControls.styles=[f8];m2([R()],exports.InlineEditControls.prototype,"mode",2);exports.InlineEditControls=m2([X(d2)],exports.InlineEditControls);var g8=Object.defineProperty,v8=Object.getOwnPropertyDescriptor,jd=(s,i,l,d)=>{for(var c=d>1?void 0:d?v8(i,l):i,g=s.length-1,b;g>=0;g--)(b=s[g])&&(c=(d?b(i,l,c):b(c))||c);return d&&c&&g8(i,l,c),c};class Xu extends Be{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(i){switch(i){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(i){throw this.setMode("error"),i}}handleCancelClick(){this.setMode("read")}}jd([R({type:Boolean,reflect:!0})],Xu.prototype,"locked",2);jd([R({type:Function,attribute:!1})],Xu.prototype,"save",2);jd([Re()],Xu.prototype,"mode",2);var b8=Object.defineProperty,m8=Object.getOwnPropertyDescriptor,Kd=(s,i,l,d)=>{for(var c=d>1?void 0:d?m8(i,l):i,g=s.length-1,b;g>=0;g--)(b=s[g])&&(c=(d?b(i,l,c):b(c))||c);return d&&c&&b8(i,l,c),c};exports.InlineEditGroup=class extends Xu{constructor(){super(...arguments),this.controller=!1,this.fields=[]}handleInlineEditFieldViewModeClick(){!this.controller||this.setMode("edit")}async handleSave(){var s;await((s=this.save)==null?void 0:s.call(this))}registerField(s){this.fields.push(s)}updated(s){super.updated(s),this.locked&&this.fields.forEach(i=>i.locked=!0),this.controller&&this.fields.forEach(i=>{i.controlled=!0,i.setMode(this.mode)}),s.has("mode")&&this.dispatchEvent(new b2({detail:{currentMode:this.mode,previousMode:s.get("mode"),fields:this.fields,group:this}}))}get defaultSlot(){return j`
3500
3523
  <slot
3501
3524
  @brz-inline-edit-field-broadcast=${this.handleInlineEditFieldViewModeClick}
3502
3525
  >
3503
3526
  </slot>
3504
- `}render(){return K`
3505
- <dl class="inline-edit-group">${this.defaultSlot}</dl>
3506
-
3507
- ${this.controller&&["edit","saving"].includes(this.mode)?K`
3508
- <slot
3509
- name="controls"
3510
- @brz-inline-edit-controls-cancel=${this.handleCancelClick}
3511
- @brz-inline-edit-controls-save=${this.handleSaveClick}
3512
- >
3513
- <brz-inline-edit-controls
3514
- mode=${this.mode}
3515
- ></brz-inline-edit-controls>
3516
- </slot>
3517
- `:null}
3518
- `}};exports.InlineEditGroup.styles=[d8];Kd([R({type:Boolean})],exports.InlineEditGroup.prototype,"controller",2);Kd([Re()],exports.InlineEditGroup.prototype,"fields",2);exports.InlineEditGroup=Kd([X(qd)],exports.InlineEditGroup);var p8=Object.defineProperty,g8=Object.getOwnPropertyDescriptor,zi=(s,i,l,d)=>{for(var c=d>1?void 0:d?g8(i,l):i,g=s.length-1,b;g>=0;g--)(b=s[g])&&(c=(d?b(i,l,c):b(c))||c);return d&&c&&p8(i,l,c),c};const v8=s=>s instanceof Ar&&!!s.options.length;exports.InlineEditField=class extends Xu{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 s;super.connectedCallback(),(s=this.group)==null||s.registerField(this)}updated(s){super.updated(s),this.setStateFromInputElement(),this.updateComplete.then(()=>this.setOverflowingState()),this.hasLabel=!!this.label,this.inputElement.disabled=this.mode==="saving",s.has("mode")&&this.dispatchEvent(new c2({detail:{element:this,currentMode:this.mode,previousMode:s.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,v8(this.inputElement)&&(this.options=this.inputElement.options),this.inputElement instanceof exports.InputRadio&&!this.options.length&&(this.options=[...this.inputElement.children].filter(i=>i instanceof exports.InputRadioOption).map(i=>({value:i==null?void 0:i.value,label:i.textContent||""})));const s=this.slottedInputLabel;if(!s){this.label=this.generateFieldLabelSlot();return}this.label=s}async handleValueClick(){this.locked||(this.emitBroadcastEvent(),this.controlled||this.setMode("edit"),await this.updateComplete,this.inputElement.focus())}get fieldElement(){const s=[...this.children].find(i=>i.slot==="");if(!s)throw new Error("No element has been assigned to the default slot.");if(!(s instanceof exports.LabeledInput)&&!(s instanceof exports.RecordField))throw new Error("Expected a Breeze Input, LabeledInput or RecordField in the default slot.");return s}get inputElement(){if(this.fieldElement instanceof exports.RecordField){const s=[...this.fieldElement.children].find(i=>i.slot==="");if(!s)throw new Error("No element has been assigned to the RecordField default slot.");if(!(s instanceof ti))throw new Error("Expected a Breeze Input in the RecordField default slot.");return s}return this.fieldElement}generateFieldLabelSlot(){var s,i;if(this.fieldElement instanceof exports.RecordField&&this.inputElement instanceof exports.InputCheckbox){const l=document.createElement("brz-record-field-label"),d=document.createElement("span");return d.textContent=((i=(s=this.inputElement.firstChild)==null?void 0:s.textContent)==null?void 0:i.trim())||"",l.appendChild(d),this.fieldElement.appendChild(l),l}}get friendlyValue(){var s;if(this.options.length){if(Array.isArray(this.value)){const l=this.value.map(d=>{var c;return(c=this.options.find(({value:g})=>g===d))==null?void 0:c.label}).filter(d=>d!==void 0);return l.length===this.value.length?l.join(", "):this.value.join(", ")}return((s=this.options.find(({value:l})=>l===this.value))==null?void 0:s.label)||this.value}return this.inputElement instanceof exports.InputCheckbox?this.inputElement.checked?"True":"False":this.value}get slottedInputLabel(){return this.fieldElement.querySelector('[slot="label"]')}async handleSave(){var s,i,l;await(((s=this.save)==null?void 0:s.call(this))||((l=(i=this.group)==null?void 0:i.save)==null?void 0:l.call(i)))}get readModeTemplate(){var s;return K`
3527
+ `}render(){return j`
3528
+ <dl class="inline-edit-group">
3529
+ ${this.defaultSlot}
3530
+ ${this.controller&&["edit","saving","error"].includes(this.mode)?j`
3531
+ <slot
3532
+ name="controls"
3533
+ @brz-inline-edit-controls-cancel=${this.handleCancelClick}
3534
+ @brz-inline-edit-controls-save=${this.handleSaveClick}
3535
+ >
3536
+ <brz-inline-edit-controls mode=${this.mode}>
3537
+ <slot name="error" slot="error"></slot>
3538
+ </brz-inline-edit-controls>
3539
+ </slot>
3540
+ `:null}
3541
+ </dl>
3542
+ `}};exports.InlineEditGroup.styles=[d8];Kd([R({type:Boolean})],exports.InlineEditGroup.prototype,"controller",2);Kd([Re()],exports.InlineEditGroup.prototype,"fields",2);exports.InlineEditGroup=Kd([X(qd)],exports.InlineEditGroup);var y8=Object.defineProperty,C8=Object.getOwnPropertyDescriptor,zi=(s,i,l,d)=>{for(var c=d>1?void 0:d?C8(i,l):i,g=s.length-1,b;g>=0;g--)(b=s[g])&&(c=(d?b(i,l,c):b(c))||c);return d&&c&&y8(i,l,c),c};const w8=s=>s instanceof Lr&&!!s.options.length;exports.InlineEditField=class extends Xu{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 s;super.connectedCallback(),(s=this.group)==null||s.registerField(this)}updated(s){super.updated(s),this.setStateFromInputElement(),this.updateComplete.then(()=>this.setOverflowingState()),this.hasLabel=!!this.label,this.inputElement.disabled=this.mode==="saving",s.has("mode")&&this.dispatchEvent(new v2({detail:{element:this,currentMode:this.mode,previousMode:s.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,w8(this.inputElement)&&(this.options=this.inputElement.options),(this.inputElement instanceof Lr||this.inputElement instanceof exports.InputRadio)&&!this.options.length&&this.setOptionsFromChildren(this.inputElement);const s=this.slottedInputLabel;if(!s){this.label=this.generateFieldLabelSlot();return}this.label=s}setOptionsFromChildren(s){const i=[...s.children];this.options=i.filter(l=>!!l.value).map(l=>{var d;return{value:l.value,label:((d=l.textContent)==null?void 0:d.trim())||this.value}})}async handleValueClick(){this.locked||(this.emitBroadcastEvent(),this.controlled||this.setMode("edit"),await this.updateComplete,this.inputElement.focus())}get fieldElement(){const s=[...this.children].find(i=>i.slot==="");if(!s)throw new Error("No element has been assigned to the default slot.");if(!(s instanceof exports.LabeledInput)&&!(s instanceof exports.RecordField))throw new Error("Expected a Breeze Input, LabeledInput or RecordField in the default slot.");return s}get inputElement(){if(this.fieldElement instanceof exports.RecordField){const s=[...this.fieldElement.children].find(i=>i.slot==="");if(!s)throw new Error("No element has been assigned to the RecordField default slot.");if(!(s instanceof ti))throw new Error("Expected a Breeze Input in the RecordField default slot.");return s}return this.fieldElement}generateFieldLabelSlot(){var s,i;if(this.fieldElement instanceof exports.RecordField&&this.inputElement instanceof exports.InputCheckbox){const l=document.createElement("brz-record-field-label"),d=document.createElement("span");return d.textContent=((i=(s=this.inputElement.firstChild)==null?void 0:s.textContent)==null?void 0:i.trim())||"",l.appendChild(d),this.fieldElement.appendChild(l),l}}get friendlyValue(){var s;if(this.options.length){if(Array.isArray(this.value)){const l=this.value.map(c=>{var g;return(g=this.options.find(({value:b})=>b===c))==null?void 0:g.label}).filter(c=>!!c);return(l.length===this.value.length?l:this.value).map(c=>this.getSelectValueTemplate(c))}const i=(s=this.options.find(({value:l})=>l===this.value))==null?void 0:s.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(s){return j`
3543
+ <brz-lozenge theme="subtle" color="sapphire" size="small">
3544
+ ${s}
3545
+ </brz-lozenge>
3546
+ `}getCheckboxValueTemplate(s){const i=s.checked?"True":"False",l=s.checked?"green":"neutral";return j`
3547
+ <brz-lozenge theme="subtle" color=${l} size="small">
3548
+ ${i}
3549
+ </brz-lozenge>
3550
+ `}get slottedInputLabel(){return this.fieldElement.querySelector('[slot="label"]')}async handleSave(){var s,i,l;await(((s=this.save)==null?void 0:s.call(this))||((l=(i=this.group)==null?void 0:i.save)==null?void 0:l.call(i)))}get readModeTemplate(){var s;return j`
3519
3551
  <brz-record-field .labelPosition=${this.labelPosition} size=${this.size}>
3520
3552
  <brz-record-field-label
3521
3553
  part="read-mode-label"
@@ -3539,10 +3571,10 @@ ${this.value}</textarea
3539
3571
  icon-size="14"
3540
3572
  trailing-icon=${this.locked?"locked":"edit"}
3541
3573
  @brz-button-click=${this.handleValueClick}
3542
- class=${Cn({button:!0,offset:this.labelPosition==="top",overflowing:this.isValueOverflowing})}
3574
+ class=${un({button:!0,offset:this.labelPosition==="top",overflowing:this.isValueOverflowing})}
3543
3575
  >
3544
3576
  <span
3545
- class=${Cn({value:!0,truncate:this.truncate,overflowing:this.isValueOverflowing})}
3577
+ class=${un({value:!0,truncate:this.truncate,overflowing:this.isValueOverflowing})}
3546
3578
  >
3547
3579
  <slot name="read-mode">${this.friendlyValue}</slot>
3548
3580
  </span>
@@ -3550,23 +3582,25 @@ ${this.value}</textarea
3550
3582
  </brz-tooltip>
3551
3583
  </dd>
3552
3584
  </brz-record-field>
3553
- `}get editModeTemplate(){return K`
3554
- <div>
3585
+ `}get editModeTemplate(){return j`
3586
+ <div
3587
+ class=${un({"edit-mode":!0,block:["full","auto"].includes(this.size)})}
3588
+ >
3555
3589
  <slot></slot>
3556
3590
 
3557
- ${this.controlled?null:K`
3591
+ ${this.controlled?null:j`
3558
3592
  <slot
3559
3593
  name="controls"
3560
3594
  @brz-inline-edit-controls-cancel=${this.handleCancelClick}
3561
3595
  @brz-inline-edit-controls-save=${this.handleSaveClick}
3562
3596
  >
3563
- <brz-inline-edit-controls
3564
- mode=${this.mode}
3565
- ></brz-inline-edit-controls>
3597
+ <brz-inline-edit-controls mode=${this.mode}>
3598
+ <slot name="error" slot="error"></slot>
3599
+ </brz-inline-edit-controls>
3566
3600
  </slot>
3567
3601
  `}
3568
3602
  </div>
3569
- `}get group(){return this.closest(qd)}emitBroadcastEvent(){this.dispatchEvent(new u2({detail:{element:this,currentMode:this.mode}}))}render(){switch(this.mode){case"edit":case"saving":return this.editModeTemplate;case"read":case"saved":default:return this.readModeTemplate}}};exports.InlineEditField.styles=[c8];zi([R({type:Boolean})],exports.InlineEditField.prototype,"controlled",2);zi([R({type:Boolean})],exports.InlineEditField.prototype,"truncate",2);zi([Re()],exports.InlineEditField.prototype,"labelPosition",2);zi([Re()],exports.InlineEditField.prototype,"size",2);zi([Re()],exports.InlineEditField.prototype,"value",2);zi([Re()],exports.InlineEditField.prototype,"options",2);zi([Re()],exports.InlineEditField.prototype,"label",2);zi([Re()],exports.InlineEditField.prototype,"hasLabel",2);zi([Re()],exports.InlineEditField.prototype,"isValueOverflowing",2);zi([Ji(".value")],exports.InlineEditField.prototype,"valueElement",2);exports.InlineEditField=zi([X(i2)],exports.InlineEditField);var b8=Object.defineProperty,m8=Object.getOwnPropertyDescriptor,Qu=(s,i,l,d)=>{for(var c=d>1?void 0:d?m8(i,l):i,g=s.length-1,b;g>=0;g--)(b=s[g])&&(c=(d?b(i,l,c):b(c))||c);return d&&c&&b8(i,l,c),c};const h2=Le("side-navigation-item"),y8=ce`
3603
+ `}get group(){return this.closest(qd)}emitBroadcastEvent(){this.dispatchEvent(new g2({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=[c8];zi([R({type:Boolean})],exports.InlineEditField.prototype,"controlled",2);zi([R({type:Boolean})],exports.InlineEditField.prototype,"truncate",2);zi([Re()],exports.InlineEditField.prototype,"labelPosition",2);zi([Re()],exports.InlineEditField.prototype,"size",2);zi([Re()],exports.InlineEditField.prototype,"value",2);zi([Re()],exports.InlineEditField.prototype,"options",2);zi([Re()],exports.InlineEditField.prototype,"label",2);zi([Re()],exports.InlineEditField.prototype,"hasLabel",2);zi([Re()],exports.InlineEditField.prototype,"isValueOverflowing",2);zi([Ji(".value")],exports.InlineEditField.prototype,"valueElement",2);exports.InlineEditField=zi([X(c2)],exports.InlineEditField);var x8=Object.defineProperty,z8=Object.getOwnPropertyDescriptor,Qu=(s,i,l,d)=>{for(var c=d>1?void 0:d?z8(i,l):i,g=s.length-1,b;g>=0;g--)(b=s[g])&&(c=(d?b(i,l,c):b(c))||c);return d&&c&&x8(i,l,c),c};const y2=Le("side-navigation-item"),L8=ue`
3570
3604
  :host li {
3571
3605
  list-style: none;
3572
3606
  padding: var(--brz-spacing-2) 0;
@@ -3592,7 +3626,7 @@ ${this.value}</textarea
3592
3626
  color: var(--brz-color-primary-600);
3593
3627
  border-color: var(--brz-color-primary-600);
3594
3628
  }
3595
- `;exports.SideNavigationItem=class extends Be{render(){return K`
3629
+ `;exports.SideNavigationItem=class extends Be{render(){return j`
3596
3630
  <li>
3597
3631
  <a
3598
3632
  href="${zt(this.href)}"
@@ -3602,7 +3636,7 @@ ${this.value}</textarea
3602
3636
  <slot></slot>
3603
3637
  </a>
3604
3638
  </li>
3605
- `}};exports.SideNavigationItem.styles=[y8];Qu([R({type:String,reflect:!0})],exports.SideNavigationItem.prototype,"target",2);Qu([R({type:String,reflect:!0})],exports.SideNavigationItem.prototype,"rel",2);Qu([R({type:String,reflect:!0})],exports.SideNavigationItem.prototype,"href",2);Qu([R({type:Boolean,reflect:!0})],exports.SideNavigationItem.prototype,"active",2);exports.SideNavigationItem=Qu([X(h2)],exports.SideNavigationItem);var C8=Object.defineProperty,w8=Object.getOwnPropertyDescriptor,x8=(s,i,l,d)=>{for(var c=d>1?void 0:d?w8(i,l):i,g=s.length-1,b;g>=0;g--)(b=s[g])&&(c=(d?b(i,l,c):b(c))||c);return d&&c&&C8(i,l,c),c};const p2=Le("side-navigation"),z8=ce`
3639
+ `}};exports.SideNavigationItem.styles=[L8];Qu([R({type:String,reflect:!0})],exports.SideNavigationItem.prototype,"target",2);Qu([R({type:String,reflect:!0})],exports.SideNavigationItem.prototype,"rel",2);Qu([R({type:String,reflect:!0})],exports.SideNavigationItem.prototype,"href",2);Qu([R({type:Boolean,reflect:!0})],exports.SideNavigationItem.prototype,"active",2);exports.SideNavigationItem=Qu([X(y2)],exports.SideNavigationItem);var _8=Object.defineProperty,S8=Object.getOwnPropertyDescriptor,M8=(s,i,l,d)=>{for(var c=d>1?void 0:d?S8(i,l):i,g=s.length-1,b;g>=0;g--)(b=s[g])&&(c=(d?b(i,l,c):b(c))||c);return d&&c&&_8(i,l,c),c};const C2=Le("side-navigation"),k8=ue`
3606
3640
  :host {
3607
3641
  display: block;
3608
3642
  height: 100%;
@@ -3614,20 +3648,20 @@ ${this.value}</textarea
3614
3648
  margin: 0;
3615
3649
  padding: var(--brz-spacing-2) var(--brz-spacing-6);
3616
3650
  }
3617
- `;exports.SideNavigation=class extends Be{render(){return K`<ul>
3651
+ `;exports.SideNavigation=class extends Be{render(){return j`<ul>
3618
3652
  <slot></slot>
3619
- </ul>`}};exports.SideNavigation.styles=[z8];exports.SideNavigation=x8([X(p2)],exports.SideNavigation);var L8=Object.defineProperty,_8=Object.getOwnPropertyDescriptor,g2=(s,i,l,d)=>{for(var c=d>1?void 0:d?_8(i,l):i,g=s.length-1,b;g>=0;g--)(b=s[g])&&(c=(d?b(i,l,c):b(c))||c);return d&&c&&L8(i,l,c),c};const v2=Le("record-row"),b2=Le("record-row-label");exports.RecordRow=class extends exports.RecordField{connectedCallback(){super.connectedCallback(),this.labelPosition="side"}};exports.RecordRow=g2([X(v2)],exports.RecordRow);exports.RecordRowLabel=class extends exports.RecordFieldLabel{};exports.RecordRowLabel=g2([X(b2)],exports.RecordRowLabel);var S8=Object.defineProperty,M8=Object.getOwnPropertyDescriptor,Yd=(s,i,l,d)=>{for(var c=d>1?void 0:d?M8(i,l):i,g=s.length-1,b;g>=0;g--)(b=s[g])&&(c=(d?b(i,l,c):b(c))||c);return d&&c&&S8(i,l,c),c};const m2=Le("tab-panel");exports.TabPanel=class extends Be{constructor(){super(...arguments),this.name="",this.shown=!1}render(){return K`<div id="panel"><slot></slot></div>`}};exports.TabPanel.styles=ce`
3653
+ </ul>`}};exports.SideNavigation.styles=[k8];exports.SideNavigation=M8([X(C2)],exports.SideNavigation);var O8=Object.defineProperty,T8=Object.getOwnPropertyDescriptor,w2=(s,i,l,d)=>{for(var c=d>1?void 0:d?T8(i,l):i,g=s.length-1,b;g>=0;g--)(b=s[g])&&(c=(d?b(i,l,c):b(c))||c);return d&&c&&O8(i,l,c),c};const x2=Le("record-row"),z2=Le("record-row-label");exports.RecordRow=class extends exports.RecordField{connectedCallback(){super.connectedCallback(),this.labelPosition="side"}};exports.RecordRow=w2([X(x2)],exports.RecordRow);exports.RecordRowLabel=class extends exports.RecordFieldLabel{};exports.RecordRowLabel=w2([X(z2)],exports.RecordRowLabel);var E8=Object.defineProperty,P8=Object.getOwnPropertyDescriptor,Yd=(s,i,l,d)=>{for(var c=d>1?void 0:d?P8(i,l):i,g=s.length-1,b;g>=0;g--)(b=s[g])&&(c=(d?b(i,l,c):b(c))||c);return d&&c&&E8(i,l,c),c};const L2=Le("tab-panel");exports.TabPanel=class extends Be{constructor(){super(...arguments),this.name="",this.shown=!1}render(){return j`<div id="panel"><slot></slot></div>`}};exports.TabPanel.styles=ue`
3620
3654
  :host(:not([shown])) #panel {
3621
3655
  display: none;
3622
3656
  }
3623
- `;Yd([R({type:String,reflect:!0})],exports.TabPanel.prototype,"name",2);Yd([R({type:Boolean,reflect:!0})],exports.TabPanel.prototype,"shown",2);exports.TabPanel=Yd([X(m2)],exports.TabPanel);class X0 extends CustomEvent{constructor(i){super("brz-tab-selected",{bubbles:!0,detail:{name:i}})}}class k8 extends CustomEvent{constructor(i){super("brz-tab-deselected",{bubbles:!0,detail:{name:i}})}}var O8=Object.defineProperty,T8=Object.getOwnPropertyDescriptor,Q0=(s,i,l,d)=>{for(var c=d>1?void 0:d?T8(i,l):i,g=s.length-1,b;g>=0;g--)(b=s[g])&&(c=(d?b(i,l,c):b(c))||c);return d&&c&&O8(i,l,c),c};const y2=Le("tab");exports.Tab=class extends Be{constructor(){super(...arguments),this.selected=!1,this.name="",this.link=""}updated(s){const i=s.get("selected");i===!1&&this.selected===!0?this.dispatchEvent(new X0(this.name)):i===!0&&this.selected===!1&&this.dispatchEvent(new k8(this.name)),super.updated(s)}render(){return this.link?K`<a href=${this.link} id="tab"><slot></slot></a>`:K`<div
3657
+ `;Yd([R({type:String,reflect:!0})],exports.TabPanel.prototype,"name",2);Yd([R({type:Boolean,reflect:!0})],exports.TabPanel.prototype,"shown",2);exports.TabPanel=Yd([X(L2)],exports.TabPanel);class X0 extends CustomEvent{constructor(i){super("brz-tab-selected",{bubbles:!0,detail:{name:i}})}}class I8 extends CustomEvent{constructor(i){super("brz-tab-deselected",{bubbles:!0,detail:{name:i}})}}var A8=Object.defineProperty,$8=Object.getOwnPropertyDescriptor,Q0=(s,i,l,d)=>{for(var c=d>1?void 0:d?$8(i,l):i,g=s.length-1,b;g>=0;g--)(b=s[g])&&(c=(d?b(i,l,c):b(c))||c);return d&&c&&A8(i,l,c),c};const _2=Le("tab");exports.Tab=class extends Be{constructor(){super(...arguments),this.selected=!1,this.name="",this.link=""}updated(s){const i=s.get("selected");i===!1&&this.selected===!0?this.dispatchEvent(new X0(this.name)):i===!0&&this.selected===!1&&this.dispatchEvent(new I8(this.name)),super.updated(s)}render(){return this.link?j`<a href=${this.link} id="tab"><slot></slot></a>`:j`<div
3624
3658
  tabindex="0"
3625
3659
  role="tab"
3626
3660
  aria-selected=${this.selected}
3627
3661
  id="tab"
3628
3662
  >
3629
3663
  <slot></slot>
3630
- </div>`}};exports.Tab.styles=ce`
3664
+ </div>`}};exports.Tab.styles=ue`
3631
3665
  #tab {
3632
3666
  display: block;
3633
3667
  font-size: 1rem;
@@ -3648,11 +3682,11 @@ ${this.value}</textarea
3648
3682
  #tab:hover {
3649
3683
  color: var(--brz-color-neutral-850);
3650
3684
  }
3651
- `;Q0([R({type:Boolean,reflect:!0})],exports.Tab.prototype,"selected",2);Q0([R({type:String,reflect:!0})],exports.Tab.prototype,"name",2);Q0([R({type:String,reflect:!0})],exports.Tab.prototype,"link",2);exports.Tab=Q0([X(y2)],exports.Tab);var E8=Object.defineProperty,P8=Object.getOwnPropertyDescriptor,J0=(s,i,l,d)=>{for(var c=d>1?void 0:d?P8(i,l):i,g=s.length-1,b;g>=0;g--)(b=s[g])&&(c=(d?b(i,l,c):b(c))||c);return d&&c&&E8(i,l,c),c};const C2=Le("tab-bar");exports.TabBar=class extends Be{constructor(){super(...arguments),this.controlled=!1,this.selected="",this.tabs=[]}handleSlotChange(){var l,d,c;const s=(l=this.shadowRoot)==null?void 0:l.querySelector("slot");if(!s){this.tabs=[];return}let i=Array.from(s.assignedElements());for(;i[0]instanceof HTMLSlotElement;)i=Array.from(i[0].assignedElements());this.tabs=i.filter(g=>g instanceof exports.Tab&&!!g.name),this.controlled||(this.selected||(this.selected=(c=(d=this.tabs.find(g=>g.selected))==null?void 0:d.name)!=null?c:""),!this.selected&&this.tabs.length&&(this.selected=this.tabs[0].name,this.tabs[0].selected=!0)),this.updateSelectedTab()}handleClick(s){if(s.target instanceof exports.Tab){const{name:i}=s.target;i&&(this.controlled||(this.selected=i),this.dispatchEvent(new X0(i)))}}updated(s){s.has("selected")&&this.updateSelectedTab()}updateSelectedTab(){this.tabs.forEach(s=>{const i=s.name===this.selected;i!==s.selected&&(s.selected=i)})}render(){return K`
3685
+ `;Q0([R({type:Boolean,reflect:!0})],exports.Tab.prototype,"selected",2);Q0([R({type:String,reflect:!0})],exports.Tab.prototype,"name",2);Q0([R({type:String,reflect:!0})],exports.Tab.prototype,"link",2);exports.Tab=Q0([X(_2)],exports.Tab);var D8=Object.defineProperty,R8=Object.getOwnPropertyDescriptor,J0=(s,i,l,d)=>{for(var c=d>1?void 0:d?R8(i,l):i,g=s.length-1,b;g>=0;g--)(b=s[g])&&(c=(d?b(i,l,c):b(c))||c);return d&&c&&D8(i,l,c),c};const S2=Le("tab-bar");exports.TabBar=class extends Be{constructor(){super(...arguments),this.controlled=!1,this.selected="",this.tabs=[]}handleSlotChange(){var l,d,c;const s=(l=this.shadowRoot)==null?void 0:l.querySelector("slot");if(!s){this.tabs=[];return}let i=Array.from(s.assignedElements());for(;i[0]instanceof HTMLSlotElement;)i=Array.from(i[0].assignedElements());this.tabs=i.filter(g=>g instanceof exports.Tab&&!!g.name),this.controlled||(this.selected||(this.selected=(c=(d=this.tabs.find(g=>g.selected))==null?void 0:d.name)!=null?c:""),!this.selected&&this.tabs.length&&(this.selected=this.tabs[0].name,this.tabs[0].selected=!0)),this.updateSelectedTab()}handleClick(s){if(s.target instanceof exports.Tab){const{name:i}=s.target;i&&(this.controlled||(this.selected=i),this.dispatchEvent(new X0(i)))}}updated(s){s.has("selected")&&this.updateSelectedTab()}updateSelectedTab(){this.tabs.forEach(s=>{const i=s.name===this.selected;i!==s.selected&&(s.selected=i)})}render(){return j`
3652
3686
  <brz-row id="tabbar" @click=${this.handleClick}>
3653
3687
  <slot @slotchange=${this.handleSlotChange}></slot>
3654
3688
  </brz-row>
3655
- `}};exports.TabBar.styles=ce`
3689
+ `}};exports.TabBar.styles=ue`
3656
3690
  #tabbar {
3657
3691
  display: flex;
3658
3692
  flex-direction: row;
@@ -3670,7 +3704,7 @@ ${this.value}</textarea
3670
3704
  top: 0;
3671
3705
  z-index: 1;
3672
3706
  }
3673
- `;J0([R({type:Boolean})],exports.TabBar.prototype,"controlled",2);J0([R({type:String})],exports.TabBar.prototype,"selected",2);J0([Re()],exports.TabBar.prototype,"tabs",2);exports.TabBar=J0([X(C2)],exports.TabBar);var I8=Object.defineProperty,A8=Object.getOwnPropertyDescriptor,Xd=(s,i,l,d)=>{for(var c=d>1?void 0:d?A8(i,l):i,g=s.length-1,b;g>=0;g--)(b=s[g])&&(c=(d?b(i,l,c):b(c))||c);return d&&c&&I8(i,l,c),c};const w2=Le("tabs");exports.Tabs=class extends Be{constructor(){super(...arguments),this.selected="",this.panels=[]}handleSlotChange(){var i,l,d;const s=(i=this.shadowRoot)==null?void 0:i.querySelector("slot:not([name])");if(this.panels=[],!!s){for(const c of s.assignedElements())if(c instanceof exports.TabPanel)this.panels.push(c);else{const g=c.querySelectorAll("brz-tab-panel"),b=c.querySelectorAll("sp-tab-panel");this.panels.push(...Array.from(g.length?g:b))}this.selected||(this.selected=(d=(l=this.panels.find(c=>c.shown))==null?void 0:l.name)!=null?d:""),!this.selected&&this.panels.length&&(this.selected=this.panels[0].name),this.updatePanelVisibility()}}updatePanelVisibility(){this.panels.forEach(s=>{const i=s.name===this.selected;i!==s.shown&&(s.shown=i)})}handleTabSelected(s){this.selected=s.detail.name,this.updatePanelVisibility(),s.stopPropagation(),this.dispatchEvent(new X0(this.selected))}render(){return K`
3707
+ `;J0([R({type:Boolean})],exports.TabBar.prototype,"controlled",2);J0([R({type:String})],exports.TabBar.prototype,"selected",2);J0([Re()],exports.TabBar.prototype,"tabs",2);exports.TabBar=J0([X(S2)],exports.TabBar);var N8=Object.defineProperty,H8=Object.getOwnPropertyDescriptor,Xd=(s,i,l,d)=>{for(var c=d>1?void 0:d?H8(i,l):i,g=s.length-1,b;g>=0;g--)(b=s[g])&&(c=(d?b(i,l,c):b(c))||c);return d&&c&&N8(i,l,c),c};const M2=Le("tabs");exports.Tabs=class extends Be{constructor(){super(...arguments),this.selected="",this.panels=[]}handleSlotChange(){var i,l,d;const s=(i=this.shadowRoot)==null?void 0:i.querySelector("slot:not([name])");if(this.panels=[],!!s){for(const c of s.assignedElements())if(c instanceof exports.TabPanel)this.panels.push(c);else{const g=c.querySelectorAll("brz-tab-panel"),b=c.querySelectorAll("sp-tab-panel");this.panels.push(...Array.from(g.length?g:b))}this.selected||(this.selected=(d=(l=this.panels.find(c=>c.shown))==null?void 0:l.name)!=null?d:""),!this.selected&&this.panels.length&&(this.selected=this.panels[0].name),this.updatePanelVisibility()}}updatePanelVisibility(){this.panels.forEach(s=>{const i=s.name===this.selected;i!==s.shown&&(s.shown=i)})}handleTabSelected(s){this.selected=s.detail.name,this.updatePanelVisibility(),s.stopPropagation(),this.dispatchEvent(new X0(this.selected))}render(){return j`
3674
3708
  <brz-tab-bar
3675
3709
  controlled
3676
3710
  selected=${this.selected}
@@ -3679,14 +3713,14 @@ ${this.value}</textarea
3679
3713
  <slot name="tabs"></slot>
3680
3714
  </brz-tab-bar>
3681
3715
  <slot @slotchange=${this.handleSlotChange}></slot>
3682
- `}};exports.Tabs.styles=ce`
3716
+ `}};exports.Tabs.styles=ue`
3683
3717
  :host {
3684
3718
  background-color: var(--brz-color-white);
3685
3719
  }
3686
- `;Xd([R({type:String,reflect:!0})],exports.Tabs.prototype,"selected",2);Xd([Re()],exports.Tabs.prototype,"panels",2);exports.Tabs=Xd([X(w2)],exports.Tabs);var $8=Object.defineProperty,D8=Object.getOwnPropertyDescriptor,As=(s,i,l,d)=>{for(var c=d>1?void 0:d?D8(i,l):i,g=s.length-1,b;g>=0;g--)(b=s[g])&&(c=(d?b(i,l,c):b(c))||c);return d&&c&&$8(i,l,c),c};const x2=Le("badge");var z2=(s=>(s[s.subtle=0]="subtle",s[s.primary=1]="primary",s[s.important=2]="important",s))(z2||{});exports.Badge=class extends Be{constructor(){super(...arguments),this.limit=0,this.content="",this.deafultCharacterLimit=5,this.deafultNumberLimit=99}connectedCallback(){super.connectedCallback(),!this.limit&&(typeof this.content=="number"||this.isNumeric(this.content)?this.limit=this.deafultNumberLimit:this.limit=this.deafultCharacterLimit)}isNumeric(s){return/^-?\d+$/.test(s)}generateContent(){return typeof this.content=="number"||this.isNumeric(this.content)?parseInt(this.content)>this.limit?`${this.limit}+`:this.content:this.content.length>this.limit?`${this.content.slice(0,this.limit)}...`:this.content}render(){return K`<span
3687
- class=${Cn({"extra-wide":this.content.length>1})}
3720
+ `;Xd([R({type:String,reflect:!0})],exports.Tabs.prototype,"selected",2);Xd([Re()],exports.Tabs.prototype,"panels",2);exports.Tabs=Xd([X(M2)],exports.Tabs);var B8=Object.defineProperty,F8=Object.getOwnPropertyDescriptor,As=(s,i,l,d)=>{for(var c=d>1?void 0:d?F8(i,l):i,g=s.length-1,b;g>=0;g--)(b=s[g])&&(c=(d?b(i,l,c):b(c))||c);return d&&c&&B8(i,l,c),c};const k2=Le("badge");var O2=(s=>(s[s.subtle=0]="subtle",s[s.primary=1]="primary",s[s.important=2]="important",s))(O2||{});exports.Badge=class extends Be{constructor(){super(...arguments),this.limit=0,this.content="",this.deafultCharacterLimit=5,this.deafultNumberLimit=99}connectedCallback(){super.connectedCallback(),!this.limit&&(typeof this.content=="number"||this.isNumeric(this.content)?this.limit=this.deafultNumberLimit:this.limit=this.deafultCharacterLimit)}isNumeric(s){return/^-?\d+$/.test(s)}generateContent(){return typeof this.content=="number"||this.isNumeric(this.content)?parseInt(this.content)>this.limit?`${this.limit}+`:this.content:this.content.length>this.limit?`${this.content.slice(0,this.limit)}...`:this.content}render(){return j`<span
3721
+ class=${un({"extra-wide":this.content.length>1})}
3688
3722
  >${this.generateContent()}</span
3689
- >`}};exports.Badge.styles=ce`
3723
+ >`}};exports.Badge.styles=ue`
3690
3724
  :host {
3691
3725
  min-width: 19px;
3692
3726
  height: 20px;
@@ -3719,7 +3753,7 @@ ${this.value}</textarea
3719
3753
  .extra-wide {
3720
3754
  padding: 0 6px;
3721
3755
  }
3722
- `;As([R({type:String,reflect:!0})],exports.Badge.prototype,"theme",2);As([R({type:Number,reflect:!0})],exports.Badge.prototype,"limit",2);As([R({type:String||Number,reflect:!0})],exports.Badge.prototype,"content",2);As([Re()],exports.Badge.prototype,"deafultCharacterLimit",2);As([Re()],exports.Badge.prototype,"deafultNumberLimit",2);exports.Badge=As([X(x2)],exports.Badge);const{range:e1}=K3;function R8(s,i,l){return[1,null,...e1(s-i,s+i+1),null,l]}function N8(s,i){return[1,null,...e1(s-(i-3),s+1)]}function H8(s,i){return[...e1(1,i-1),null,s]}function B8(s,i,l){return s>1+1+i*2&&s<l-1-i*2}function F8(s,i=1,l=1){const d=5+l*2;if(s<=d)return e1(1,s+1);if(B8(i,l,s))return R8(i,l,s);if(i+(d-3)>=s)return N8(s,d);if(i<d)return H8(s,d)}var W8=Object.defineProperty,U8=Object.getOwnPropertyDescriptor,no=(s,i,l,d)=>{for(var c=d>1?void 0:d?U8(i,l):i,g=s.length-1,b;g>=0;g--)(b=s[g])&&(c=(d?b(i,l,c):b(c))||c);return d&&c&&W8(i,l,c),c};const Qd=Le("basic-pagination"),Jd=Le("pagination");class Z8 extends CustomEvent{constructor(i){super(`${Qd}-${i}`,{bubbles:!0,composed:!0})}}exports.BasicPagination=class extends Be{constructor(){super(...arguments),this.hasPreviousPage=!1,this.hasNextPage=!1}emit(s){this.dispatchEvent(new Z8(s))}handlePageChange(s){this.emit(`${s}-page`)}render(){return K`
3756
+ `;As([R({type:String,reflect:!0})],exports.Badge.prototype,"theme",2);As([R({type:Number,reflect:!0})],exports.Badge.prototype,"limit",2);As([R({type:String||Number,reflect:!0})],exports.Badge.prototype,"content",2);As([Re()],exports.Badge.prototype,"deafultCharacterLimit",2);As([Re()],exports.Badge.prototype,"deafultNumberLimit",2);exports.Badge=As([X(k2)],exports.Badge);const{range:e1}=t7;function W8(s,i,l){return[1,null,...e1(s-i,s+i+1),null,l]}function U8(s,i){return[1,null,...e1(s-(i-3),s+1)]}function Z8(s,i){return[...e1(1,i-1),null,s]}function V8(s,i,l){return s>1+1+i*2&&s<l-1-i*2}function G8(s,i=1,l=1){const d=5+l*2;if(s<=d)return e1(1,s+1);if(V8(i,l,s))return W8(i,l,s);if(i+(d-3)>=s)return U8(s,d);if(i<d)return Z8(s,d)}var q8=Object.defineProperty,j8=Object.getOwnPropertyDescriptor,no=(s,i,l,d)=>{for(var c=d>1?void 0:d?j8(i,l):i,g=s.length-1,b;g>=0;g--)(b=s[g])&&(c=(d?b(i,l,c):b(c))||c);return d&&c&&q8(i,l,c),c};const Qd=Le("basic-pagination"),Jd=Le("pagination");class K8 extends CustomEvent{constructor(i){super(`${Qd}-${i}`,{bubbles:!0,composed:!0})}}exports.BasicPagination=class extends Be{constructor(){super(...arguments),this.hasPreviousPage=!1,this.hasNextPage=!1}emit(s){this.dispatchEvent(new K8(s))}handlePageChange(s){this.emit(`${s}-page`)}render(){return j`
3723
3757
  <brz-button-group role="navigation" aria-label="Pagination Navigation">
3724
3758
  <brz-button
3725
3759
  compact
@@ -3741,11 +3775,11 @@ ${this.value}</textarea
3741
3775
  leading-icon="chevronRight"
3742
3776
  ></brz-button>
3743
3777
  </brz-button-group>
3744
- `}};exports.BasicPagination.styles=ce`
3778
+ `}};exports.BasicPagination.styles=ue`
3745
3779
  brz-button-group {
3746
3780
  --brz-spacing-2: var(--brz-spacing-1);
3747
3781
  }
3748
- `;no([R({type:Boolean,attribute:"has-previous-page",reflect:!0})],exports.BasicPagination.prototype,"hasPreviousPage",2);no([R({type:Boolean,attribute:"has-next-page",reflect:!0})],exports.BasicPagination.prototype,"hasNextPage",2);exports.BasicPagination=no([X(Qd)],exports.BasicPagination);class G8 extends CustomEvent{constructor(i,l){super(`${Jd}-${i}`,{bubbles:!0,composed:!0,detail:{page:l}})}}exports.Pagination=class extends Be{constructor(){super(...arguments),this.currentPageSiblings=1}emit(s,i){this.dispatchEvent(new G8(s,i))}onPageChange(s){this.emit("page-change",s)}isCurrentPage(s){return s===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 s;return this.totalPages=Math.max(1,Math.ceil(this.totalItems/this.pageSize)),this.pages=F8(this.totalPages,this.currentPage,this.currentPageSiblings),K`
3782
+ `;no([R({type:Boolean,attribute:"has-previous-page",reflect:!0})],exports.BasicPagination.prototype,"hasPreviousPage",2);no([R({type:Boolean,attribute:"has-next-page",reflect:!0})],exports.BasicPagination.prototype,"hasNextPage",2);exports.BasicPagination=no([X(Qd)],exports.BasicPagination);class Y8 extends CustomEvent{constructor(i,l){super(`${Jd}-${i}`,{bubbles:!0,composed:!0,detail:{page:l}})}}exports.Pagination=class extends Be{constructor(){super(...arguments),this.currentPageSiblings=1}emit(s,i){this.dispatchEvent(new Y8(s,i))}onPageChange(s){this.emit("page-change",s)}isCurrentPage(s){return s===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 s;return this.totalPages=Math.max(1,Math.ceil(this.totalItems/this.pageSize)),this.pages=G8(this.totalPages,this.currentPage,this.currentPageSiblings),j`
3749
3783
  <brz-row role="navigation" aria-label="Pagination Navigation">
3750
3784
  <button
3751
3785
  role="link"
@@ -3757,15 +3791,15 @@ ${this.value}</textarea
3757
3791
  <brz-icon class="pre-icon" size=${15} icon="chevronLeft"></brz-icon>
3758
3792
  </div>
3759
3793
  </button>
3760
- ${(s=this.pages)==null?void 0:s.map(i=>i?K`<button
3761
- class=${Cn({page:i,selected:this.isCurrentPage(i)})}
3794
+ ${(s=this.pages)==null?void 0:s.map(i=>i?j`<button
3795
+ class=${un({page:i,selected:this.isCurrentPage(i)})}
3762
3796
  role="link"
3763
3797
  aria-label=${`${this.isCurrentPage(i)?`Current Page, Page ${i}`:`Go to page ${i}`}`}
3764
3798
  aria-current=${`${this.isCurrentPage(i)}`}
3765
3799
  @click=${this.isCurrentPage(i)?null:this.onPageChange.bind(this,i)}
3766
3800
  ?disabled=${this.isCurrentPage(i)}
3767
3801
  >${i}</brz-button
3768
- >`:K`<span class="pagination-truncated">&hellip;</span>`)}
3802
+ >`:j`<span class="pagination-truncated">&hellip;</span>`)}
3769
3803
  <button
3770
3804
  role="link"
3771
3805
  aria-label="Go to next page"
@@ -3781,7 +3815,7 @@ ${this.value}</textarea
3781
3815
  </div>
3782
3816
  </button>
3783
3817
  </brz-row>
3784
- `}};exports.Pagination.styles=ce`
3818
+ `}};exports.Pagination.styles=ue`
3785
3819
  brz-row {
3786
3820
  --brz-row-spacing: 0;
3787
3821
  }
@@ -3846,13 +3880,13 @@ ${this.value}</textarea
3846
3880
  .page {
3847
3881
  padding: 0 var(--brz-spacing-2);
3848
3882
  }
3849
- `;no([R({type:Number,attribute:"total-items",reflect:!0})],exports.Pagination.prototype,"totalItems",2);no([R({type:Number,attribute:"page-size",reflect:!0})],exports.Pagination.prototype,"pageSize",2);no([R({type:Number,attribute:"current-page",reflect:!0})],exports.Pagination.prototype,"currentPage",2);no([Re()],exports.Pagination.prototype,"currentPageSiblings",2);no([Re()],exports.Pagination.prototype,"totalPages",2);no([Re()],exports.Pagination.prototype,"pages",2);exports.Pagination=no([X(Jd)],exports.Pagination);var V8=Object.defineProperty,q8=Object.getOwnPropertyDescriptor,Ju=(s,i,l,d)=>{for(var c=d>1?void 0:d?q8(i,l):i,g=s.length-1,b;g>=0;g--)(b=s[g])&&(c=(d?b(i,l,c):b(c))||c);return d&&c&&V8(i,l,c),c};const j8=["info","success","warning","error"],L2=Le("alert");class K8 extends CustomEvent{constructor(i){super(i,{bubbles:!0,composed:!0})}}exports.Alert=class extends Be{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 K8("brz-alert-cleared"))}render(){return this.cleared?null:K`<div class="alert-container">
3883
+ `;no([R({type:Number,attribute:"total-items",reflect:!0})],exports.Pagination.prototype,"totalItems",2);no([R({type:Number,attribute:"page-size",reflect:!0})],exports.Pagination.prototype,"pageSize",2);no([R({type:Number,attribute:"current-page",reflect:!0})],exports.Pagination.prototype,"currentPage",2);no([Re()],exports.Pagination.prototype,"currentPageSiblings",2);no([Re()],exports.Pagination.prototype,"totalPages",2);no([Re()],exports.Pagination.prototype,"pages",2);exports.Pagination=no([X(Jd)],exports.Pagination);var X8=Object.defineProperty,Q8=Object.getOwnPropertyDescriptor,Ju=(s,i,l,d)=>{for(var c=d>1?void 0:d?Q8(i,l):i,g=s.length-1,b;g>=0;g--)(b=s[g])&&(c=(d?b(i,l,c):b(c))||c);return d&&c&&X8(i,l,c),c};const J8=["info","success","warning","error"],T2=Le("alert");class em extends CustomEvent{constructor(i){super(i,{bubbles:!0,composed:!0})}}exports.Alert=class extends Be{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 em("brz-alert-cleared"))}render(){return this.cleared?null:j`<div class="alert-container">
3850
3884
  <brz-icon class="type-icon" icon="${this.getIcon()}"></brz-icon>
3851
3885
  <div role="alert">
3852
- ${this.title?K`<div><brz-heading>${this.title}</brz-heading></div>`:K``}
3886
+ ${this.title?j`<div><brz-heading>${this.title}</brz-heading></div>`:j``}
3853
3887
  <div><slot /></div>
3854
3888
  </div>
3855
- ${this.clearable?K`
3889
+ ${this.clearable?j`
3856
3890
  <button
3857
3891
  type="button"
3858
3892
  class="clear-button"
@@ -3866,7 +3900,7 @@ ${this.value}</textarea
3866
3900
  ></brz-icon>
3867
3901
  </button>
3868
3902
  `:""}
3869
- </div>`}};exports.Alert.styles=ce`
3903
+ </div>`}};exports.Alert.styles=ue`
3870
3904
  :host {
3871
3905
  --brz-alert-border-width: var(--brz-spacing-px);
3872
3906
  }
@@ -3922,7 +3956,7 @@ ${this.value}</textarea
3922
3956
  padding-top: 1px;
3923
3957
  }
3924
3958
 
3925
- ${Ih(".clear-button",ce`
3959
+ ${Rh(".clear-button",ue`
3926
3960
  align-self: start;
3927
3961
  margin-left: auto;
3928
3962
  margin-right: calc(0px - var(--brz-spacing-1));
@@ -3931,7 +3965,7 @@ ${this.value}</textarea
3931
3965
  .clear-button brz-icon {
3932
3966
  vertical-align: middle;
3933
3967
  }
3934
- `;Ju([R({type:String,reflect:!0})],exports.Alert.prototype,"type",2);Ju([R({type:Boolean})],exports.Alert.prototype,"clearable",2);Ju([R()],exports.Alert.prototype,"title",2);Ju([Re()],exports.Alert.prototype,"cleared",2);exports.Alert=Ju([X(L2)],exports.Alert);const ef={resources:Y`
3968
+ `;Ju([R({type:String,reflect:!0})],exports.Alert.prototype,"type",2);Ju([R({type:Boolean})],exports.Alert.prototype,"clearable",2);Ju([R()],exports.Alert.prototype,"title",2);Ju([Re()],exports.Alert.prototype,"cleared",2);exports.Alert=Ju([X(T2)],exports.Alert);const ef={resources:Y`
3935
3969
  <path fill-rule="evenodd" clip-rule="evenodd" d="M72.162 23C65.9749 23 60.9331 26.3858 60.9331 35.8357C60.9331 45.2714 65.9608 48.6715 72.162 48.6715C78.3519 48.6715 83.3909 45.2885 83.3909 35.8357C83.3909 26.4029 78.366 23 72.162 23" fill="#ECEEF3"/>
3936
3970
  <path d="M56.4495 56.9434C59.5234 55.7568 64.9414 54.1338 72.1812 54.1338C78.7417 54.1338 84.8193 55.6855 88.0841 56.9434C93.6087 59.077 96.3373 63.076 97.3676 67.212C97.9234 69.4654 97.0055 71.887 95.3408 72.6629C93.7195 73.4199 86.7451 73.8798 78.6699 74.0381C76.8525 68.8754 72.9778 64.0852 65.9467 61.3874C63.1121 60.3023 58.7997 59.0638 53.7502 58.2549C54.565 57.7649 55.4627 57.3244 56.4495 56.9434Z" fill="#ECEEF3"/>
3937
3971
  <path fill-rule="evenodd" clip-rule="evenodd" d="M40.1294 59.3822C29.7418 59.3822 21.9683 61.6959 17.5579 63.3874C9.61917 66.4329 5.70017 72.1418 4.23407 78.0459C3.43657 81.25 4.74559 84.6941 7.11794 85.8082C10.0139 87.1663 25.0495 87.8454 40.1093 87.8454C55.2496 87.8454 70.4222 87.1582 73.3584 85.796C75.7469 84.69 77.0639 81.2378 76.2664 78.0256C74.7883 72.1296 70.8733 66.4289 62.9466 63.3874C58.2624 61.5942 49.5423 59.3822 40.1294 59.3822" fill="#CACFD9"/>
@@ -4025,7 +4059,7 @@ ${this.value}</textarea
4025
4059
  <circle cx="35.1426" cy="45.4286" r="4.28571" fill="white"/>
4026
4060
  <circle cx="22.1426" cy="73.5714" r="19.2857" fill="#CACFD9" stroke="white" stroke-width="3"/>
4027
4061
  <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"/>
4028
- <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"/>`},Y8=Object.keys(ef);var X8=Object.defineProperty,Q8=Object.getOwnPropertyDescriptor,t1=(s,i,l,d)=>{for(var c=d>1?void 0:d?Q8(i,l):i,g=s.length-1,b;g>=0;g--)(b=s[g])&&(c=(d?b(i,l,c):b(c))||c);return d&&c&&X8(i,l,c),c};const _2=Le("illustration");exports.Illustration=class extends Be{constructor(){super(...arguments),this.illustration="",this.altTitle="",this.altDescription=""}render(){const s=ef[this.illustration],i=Math.floor(Math.random()*100),l=`${this.illustration}Title${i}`,d=`${this.illustration}Desc${i}`;if(!s){console.warn(`Can't find illustration ${this.illustration}`);return}return K`<svg
4062
+ <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"/>`},tm=Object.keys(ef);var rm=Object.defineProperty,nm=Object.getOwnPropertyDescriptor,t1=(s,i,l,d)=>{for(var c=d>1?void 0:d?nm(i,l):i,g=s.length-1,b;g>=0;g--)(b=s[g])&&(c=(d?b(i,l,c):b(c))||c);return d&&c&&rm(i,l,c),c};const E2=Le("illustration");exports.Illustration=class extends Be{constructor(){super(...arguments),this.illustration="",this.altTitle="",this.altDescription=""}render(){const s=ef[this.illustration],i=Math.floor(Math.random()*100),l=`${this.illustration}Title${i}`,d=`${this.illustration}Desc${i}`;if(!s){console.warn(`Can't find illustration ${this.illustration}`);return}return j`<svg
4029
4063
  aria-hidden=${!this.altTitle.length||!this.altDescription.length}
4030
4064
  role="img"
4031
4065
  aria-labelledby=${`${l} ${d}`}
@@ -4036,24 +4070,24 @@ ${this.value}</textarea
4036
4070
  <title id=${l}>${this.altTitle}</title>
4037
4071
  <desc id=${d}>${this.altDescription}</desc>
4038
4072
  ${s}
4039
- </svg>`}};exports.Illustration.styles=ce`
4073
+ </svg>`}};exports.Illustration.styles=ue`
4040
4074
  :host {
4041
4075
  /* to get rid of extra height caused by white space */
4042
4076
  line-height: 0;
4043
4077
  }
4044
- `;t1([R({type:String})],exports.Illustration.prototype,"illustration",2);t1([R({type:String,attribute:"alt-title"})],exports.Illustration.prototype,"altTitle",2);t1([R({type:String,attribute:"alt-description"})],exports.Illustration.prototype,"altDescription",2);exports.Illustration=t1([X(_2)],exports.Illustration);var J8=Object.defineProperty,em=Object.getOwnPropertyDescriptor,tm=(s,i,l,d)=>{for(var c=d>1?void 0:d?em(i,l):i,g=s.length-1,b;g>=0;g--)(b=s[g])&&(c=(d?b(i,l,c):b(c))||c);return d&&c&&J8(i,l,c),c};const S2=Le("header");exports.Header=class extends Be{render(){return K`<slot></slot>`}};exports.Header.styles=ce`
4078
+ `;t1([R({type:String})],exports.Illustration.prototype,"illustration",2);t1([R({type:String,attribute:"alt-title"})],exports.Illustration.prototype,"altTitle",2);t1([R({type:String,attribute:"alt-description"})],exports.Illustration.prototype,"altDescription",2);exports.Illustration=t1([X(E2)],exports.Illustration);var im=Object.defineProperty,om=Object.getOwnPropertyDescriptor,am=(s,i,l,d)=>{for(var c=d>1?void 0:d?om(i,l):i,g=s.length-1,b;g>=0;g--)(b=s[g])&&(c=(d?b(i,l,c):b(c))||c);return d&&c&&im(i,l,c),c};const P2=Le("header");exports.Header=class extends Be{render(){return j`<slot></slot>`}};exports.Header.styles=ue`
4045
4079
  :host {
4046
4080
  display: block;
4047
4081
  padding: var(--brz-spacing-5);
4048
4082
  margin-bottom: var(--brz-spacing-4);
4049
4083
  }
4050
- `;exports.Header=tm([X(S2)],exports.Header);var rm=Object.defineProperty,nm=Object.getOwnPropertyDescriptor,im=(s,i,l,d)=>{for(var c=d>1?void 0:d?nm(i,l):i,g=s.length-1,b;g>=0;g--)(b=s[g])&&(c=(d?b(i,l,c):b(c))||c);return d&&c&&rm(i,l,c),c};const M2=Le("header-footer-page");exports.HeaderFooterPage=class extends Be{render(){return K`
4084
+ `;exports.Header=am([X(P2)],exports.Header);var lm=Object.defineProperty,sm=Object.getOwnPropertyDescriptor,um=(s,i,l,d)=>{for(var c=d>1?void 0:d?sm(i,l):i,g=s.length-1,b;g>=0;g--)(b=s[g])&&(c=(d?b(i,l,c):b(c))||c);return d&&c&&lm(i,l,c),c};const I2=Le("header-footer-page");exports.HeaderFooterPage=class extends Be{render(){return j`
4051
4085
  <div id="container">
4052
4086
  <div id="header"><slot name="header"></slot></div>
4053
4087
  <div id="body"><slot></slot></div>
4054
4088
  <div id="footer"><slot name="footer"></slot></div>
4055
4089
  </div>
4056
- `}};exports.HeaderFooterPage.styles=ce`
4090
+ `}};exports.HeaderFooterPage.styles=ue`
4057
4091
  :host {
4058
4092
  width: 100%;
4059
4093
  height: 100%;
@@ -4071,7 +4105,7 @@ ${this.value}</textarea
4071
4105
  flex: 1 1;
4072
4106
  overflow-y: auto;
4073
4107
  }
4074
- `;exports.HeaderFooterPage=im([X(M2)],exports.HeaderFooterPage);var om=Object.defineProperty,am=Object.getOwnPropertyDescriptor,lm=(s,i,l,d)=>{for(var c=d>1?void 0:d?am(i,l):i,g=s.length-1,b;g>=0;g--)(b=s[g])&&(c=(d?b(i,l,c):b(c))||c);return d&&c&&om(i,l,c),c};const k2=Le("responsive-columns");exports.ResponsiveColumns=class extends Be{render(){return K`<slot></slot>`}};exports.ResponsiveColumns.styles=ce`
4108
+ `;exports.HeaderFooterPage=um([X(I2)],exports.HeaderFooterPage);var cm=Object.defineProperty,dm=Object.getOwnPropertyDescriptor,fm=(s,i,l,d)=>{for(var c=d>1?void 0:d?dm(i,l):i,g=s.length-1,b;g>=0;g--)(b=s[g])&&(c=(d?b(i,l,c):b(c))||c);return d&&c&&cm(i,l,c),c};const A2=Le("responsive-columns");exports.ResponsiveColumns=class extends Be{render(){return j`<slot></slot>`}};exports.ResponsiveColumns.styles=ue`
4075
4109
  :host {
4076
4110
  display: flex;
4077
4111
  flex-direction: row;
@@ -4103,18 +4137,18 @@ ${this.value}</textarea
4103
4137
  margin-bottom: var(--brz-padding, var(--brz-spacing-8));
4104
4138
  }
4105
4139
  }
4106
- `;exports.ResponsiveColumns=lm([X(k2)],exports.ResponsiveColumns);var sm=Object.defineProperty,um=Object.getOwnPropertyDescriptor,cm=(s,i,l,d)=>{for(var c=d>1?void 0:d?um(i,l):i,g=s.length-1,b;g>=0;g--)(b=s[g])&&(c=(d?b(i,l,c):b(c))||c);return d&&c&&sm(i,l,c),c};const O2=Le("footer");exports.Footer=class extends Be{render(){return K`<div class="container">
4140
+ `;exports.ResponsiveColumns=fm([X(A2)],exports.ResponsiveColumns);var hm=Object.defineProperty,pm=Object.getOwnPropertyDescriptor,gm=(s,i,l,d)=>{for(var c=d>1?void 0:d?pm(i,l):i,g=s.length-1,b;g>=0;g--)(b=s[g])&&(c=(d?b(i,l,c):b(c))||c);return d&&c&&hm(i,l,c),c};const $2=Le("footer");exports.Footer=class extends Be{render(){return j`<div class="container">
4107
4141
  <slot name="left"></slot>
4108
4142
  <slot name="middle"></slot>
4109
4143
  <slot name="right"></slot>
4110
- </div> `}};exports.Footer.styles=ce`
4144
+ </div> `}};exports.Footer.styles=ue`
4111
4145
  .container {
4112
4146
  border-top: 1px solid var(--brz-color-neutral-400);
4113
4147
  display: flex;
4114
4148
  justify-content: space-between;
4115
4149
  padding: var(--brz-spacing-3) var(--brz-spacing-4);
4116
4150
  }
4117
- `;exports.Footer=cm([X(O2)],exports.Footer);var dm=Object.defineProperty,fm=Object.getOwnPropertyDescriptor,r1=(s,i,l,d)=>{for(var c=d>1?void 0:d?fm(i,l):i,g=s.length-1,b;g>=0;g--)(b=s[g])&&(c=(d?b(i,l,c):b(c))||c);return d&&c&&dm(i,l,c),c};const T2=Le("page-header");exports.PageHeader=class extends Be{constructor(){super(...arguments),this.hasTitle=!1}updated(s){var i;super.updated(s),this.hasTitle=!!(((i=this.slottedTitle)==null?void 0:i.length)||this.pageTitle)}render(){return K`
4151
+ `;exports.Footer=gm([X($2)],exports.Footer);var vm=Object.defineProperty,bm=Object.getOwnPropertyDescriptor,r1=(s,i,l,d)=>{for(var c=d>1?void 0:d?bm(i,l):i,g=s.length-1,b;g>=0;g--)(b=s[g])&&(c=(d?b(i,l,c):b(c))||c);return d&&c&&vm(i,l,c),c};const D2=Le("page-header");exports.PageHeader=class extends Be{constructor(){super(...arguments),this.hasTitle=!1}updated(s){var i;super.updated(s),this.hasTitle=!!(((i=this.slottedTitle)==null?void 0:i.length)||this.pageTitle)}render(){return j`
4118
4152
  <header>
4119
4153
  <slot name="decorator"></slot>
4120
4154
 
@@ -4123,7 +4157,7 @@ ${this.value}</textarea
4123
4157
  <brz-heading
4124
4158
  level="1"
4125
4159
  size="2xl"
4126
- class=${Cn({hidden:!this.hasTitle})}
4160
+ class=${un({hidden:!this.hasTitle})}
4127
4161
  >
4128
4162
  <slot name="title">${this.pageTitle}</slot>
4129
4163
  </brz-heading>
@@ -4137,7 +4171,7 @@ ${this.value}</textarea
4137
4171
 
4138
4172
  <slot name="actions"></slot>
4139
4173
  </header>
4140
- `}};exports.PageHeader.styles=ce`
4174
+ `}};exports.PageHeader.styles=ue`
4141
4175
  :host {
4142
4176
  display: flex;
4143
4177
  }
@@ -4174,7 +4208,7 @@ ${this.value}</textarea
4174
4208
  brz-heading.hidden {
4175
4209
  display: none;
4176
4210
  }
4177
- `;r1([R({attribute:"page-title"})],exports.PageHeader.prototype,"pageTitle",2);r1([Re()],exports.PageHeader.prototype,"hasTitle",2);r1([kd({slot:"title"})],exports.PageHeader.prototype,"slottedTitle",2);exports.PageHeader=r1([X(T2)],exports.PageHeader);var hm=Object.defineProperty,pm=Object.getOwnPropertyDescriptor,n1=(s,i,l,d)=>{for(var c=d>1?void 0:d?pm(i,l):i,g=s.length-1,b;g>=0;g--)(b=s[g])&&(c=(d?b(i,l,c):b(c))||c);return d&&c&&hm(i,l,c),c};const E2=Le("grid"),gm=ju.map(s=>ce`
4211
+ `;r1([R({attribute:"page-title"})],exports.PageHeader.prototype,"pageTitle",2);r1([Re()],exports.PageHeader.prototype,"hasTitle",2);r1([kd({slot:"title"})],exports.PageHeader.prototype,"slottedTitle",2);exports.PageHeader=r1([X(D2)],exports.PageHeader);var mm=Object.defineProperty,ym=Object.getOwnPropertyDescriptor,n1=(s,i,l,d)=>{for(var c=d>1?void 0:d?ym(i,l):i,g=s.length-1,b;g>=0;g--)(b=s[g])&&(c=(d?b(i,l,c):b(c))||c);return d&&c&&mm(i,l,c),c};const R2=Le("grid"),Cm=ju.map(s=>ue`
4178
4212
  :host([spacing='${s}']),
4179
4213
  :host([col-spacing='${s}']) {
4180
4214
  --brz-grid-column-gap: var(--brz-spacing-${s});
@@ -4183,7 +4217,7 @@ ${this.value}</textarea
4183
4217
  :host([row-spacing='${s}']) {
4184
4218
  --brz-grid-row-gap: var(--brz-spacing-${s});
4185
4219
  }
4186
- `);exports.Grid=class extends Ts{render(){return K`<slot></slot>`}};var vh;exports.Grid.styles=[(vh=Ts.styles)!=null?vh:[],ce`
4220
+ `);exports.Grid=class extends Ts{render(){return j`<slot></slot>`}};var Ch;exports.Grid.styles=[(Ch=Ts.styles)!=null?Ch:[],ue`
4187
4221
  :host {
4188
4222
  --brz-grid-columns: 12;
4189
4223
  --brz-grid-column-gap: var(--brz-spacing-5);
@@ -4196,34 +4230,34 @@ ${this.value}</textarea
4196
4230
  column-gap: var(--brz-grid-column-gap);
4197
4231
  row-gap: var(--brz-grid-row-gap);
4198
4232
  }
4199
- `,...gm];n1([R({type:Number,reflect:!0})],exports.Grid.prototype,"spacing",2);n1([R({type:Number,attribute:"col-spacing",reflect:!0})],exports.Grid.prototype,"colSpacing",2);n1([R({type:Number,attribute:"row-spacing",reflect:!0})],exports.Grid.prototype,"rowSpacing",2);exports.Grid=n1([X(E2)],exports.Grid);const R0={lg:960,md:640},vm=ce`
4233
+ `,...Cm];n1([R({type:Number,reflect:!0})],exports.Grid.prototype,"spacing",2);n1([R({type:Number,attribute:"col-spacing",reflect:!0})],exports.Grid.prototype,"colSpacing",2);n1([R({type:Number,attribute:"row-spacing",reflect:!0})],exports.Grid.prototype,"rowSpacing",2);exports.Grid=n1([X(R2)],exports.Grid);const R0={lg:960,md:640},wm=ue`
4200
4234
  --brz-breakpoint-lg: ${R0.lg}px;
4201
4235
  --brz-breakpoint-md: ${R0.md}px;
4202
- `,vd=s=>(i,...l)=>ce`
4236
+ `,vd=s=>(i,...l)=>ue`
4203
4237
  @media (max-width: ${R0[s]}px) {
4204
- ${ce(i,...l)}
4238
+ ${ue(i,...l)}
4205
4239
  }
4206
- `,ph=s=>(i,...l)=>ce`
4240
+ `,mh=s=>(i,...l)=>ue`
4207
4241
  @media (min-width: ${R0[s]}px) {
4208
- ${ce(i,...l)}
4242
+ ${ue(i,...l)}
4209
4243
  }
4210
- `,N0={breakpointUp:ph,breakpointDown:vd,sm:vd("md"),md:vd("lg"),lg:ph("lg")};var bm=Object.defineProperty,mm=Object.getOwnPropertyDescriptor,i1=(s,i,l,d)=>{for(var c=d>1?void 0:d?mm(i,l):i,g=s.length-1,b;g>=0;g--)(b=s[g])&&(c=(d?b(i,l,c):b(c))||c);return d&&c&&bm(i,l,c),c};const P2=Le("grid-item"),o1=[1,2,3,4,5,6,7,8,9,10,11,12],ym=o1.map(s=>ce`
4244
+ `,N0={breakpointUp:mh,breakpointDown:vd,sm:vd("md"),md:vd("lg"),lg:mh("lg")};var xm=Object.defineProperty,zm=Object.getOwnPropertyDescriptor,i1=(s,i,l,d)=>{for(var c=d>1?void 0:d?zm(i,l):i,g=s.length-1,b;g>=0;g--)(b=s[g])&&(c=(d?b(i,l,c):b(c))||c);return d&&c&&xm(i,l,c),c};const N2=Le("grid-item"),o1=[1,2,3,4,5,6,7,8,9,10,11,12],Lm=o1.map(s=>ue`
4211
4245
  :host([cols='${s}']) {
4212
4246
  grid-column: auto / span ${s};
4213
4247
  }
4214
- `),Cm=o1.map(s=>ce`
4248
+ `),_m=o1.map(s=>ue`
4215
4249
  ${N0.md`
4216
4250
  :host([md-cols='${s}']) {
4217
4251
  grid-column: auto / span ${s};
4218
4252
  }
4219
4253
  `}
4220
- `),wm=o1.map(s=>ce`
4254
+ `),Sm=o1.map(s=>ue`
4221
4255
  ${N0.sm`
4222
4256
  :host([sm-cols='${s}']) {
4223
4257
  grid-column: auto / span ${s};
4224
4258
  }
4225
4259
  `}
4226
- `),xm=ce`
4260
+ `),Mm=ue`
4227
4261
  ${N0.md`
4228
4262
  :host([cols='9']:not([md-cols])),
4229
4263
  :host([cols='8']:not([md-cols])),
@@ -4239,11 +4273,11 @@ ${this.value}</textarea
4239
4273
  grid-column: auto / span 12;
4240
4274
  }
4241
4275
  `}
4242
- `;exports.GridItem=class extends Be{render(){return K`<slot></slot>`}};exports.GridItem.styles=[ce`
4276
+ `;exports.GridItem=class extends Be{render(){return j`<slot></slot>`}};exports.GridItem.styles=[ue`
4243
4277
  :host {
4244
4278
  grid-column: auto / span 12;
4245
4279
  }
4246
- `,ym,xm,Cm,wm];i1([R({type:Number,reflect:!0})],exports.GridItem.prototype,"cols",2);i1([R({type:Number,reflect:!0,attribute:"md-cols"})],exports.GridItem.prototype,"mdCols",2);i1([R({type:Number,reflect:!0,attribute:"sm-cols"})],exports.GridItem.prototype,"smCols",2);exports.GridItem=i1([X(P2)],exports.GridItem);const zm=ce`
4280
+ `,Lm,Mm,_m,Sm];i1([R({type:Number,reflect:!0})],exports.GridItem.prototype,"cols",2);i1([R({type:Number,reflect:!0,attribute:"md-cols"})],exports.GridItem.prototype,"mdCols",2);i1([R({type:Number,reflect:!0,attribute:"sm-cols"})],exports.GridItem.prototype,"smCols",2);exports.GridItem=i1([X(N2)],exports.GridItem);const km=ue`
4247
4281
  :host {
4248
4282
  --brz-border-radius-default: 2px;
4249
4283
  --brz-border-radius-medium: 3px;
@@ -4251,7 +4285,7 @@ ${this.value}</textarea
4251
4285
 
4252
4286
  --brz-border-divider: 1px solid var(--brz-color-neutral-400);
4253
4287
  }
4254
- `,Lm=ce`
4288
+ `,Om=ue`
4255
4289
  :host {
4256
4290
  --brz-color-neutral-900: #1b263a;
4257
4291
  --brz-color-neutral-850: #223049;
@@ -4441,7 +4475,7 @@ ${this.value}</textarea
4441
4475
 
4442
4476
  --brz-color-text-on-color: var(--brz-color-white);
4443
4477
  }
4444
- `,_m=ce`
4478
+ `,Tm=ue`
4445
4479
  :host {
4446
4480
  --sp-border-radius-default: var(--brz-border-radius-default);
4447
4481
  --sp-border-radius-medium: var(--brz-border-radius-medium)
@@ -4706,14 +4740,14 @@ ${this.value}</textarea
4706
4740
  --sp-z-index-dropdown: var(--brz-z-index-dropdown);
4707
4741
  --sp-z-index-tooltip: var(--brz-z-index-tooltip);
4708
4742
  }
4709
- `,Sm=ce`
4743
+ `,Em=ue`
4710
4744
  :host {
4711
4745
  // TODO: These names currently match the design system but should probably be more generic (based on elevation instead of specific components)
4712
4746
  --brz-box-shadow-info-window: 0px 5px 10px rgba(28, 46, 72, 0.15);
4713
4747
  --brz-box-shadow-menu: 0 3px 5px var(--brz-color-shadow-150);
4714
4748
  --brz-box-shadow-modal: 0 3px 12px var(--brz-color-shadow-100);
4715
4749
  }
4716
- `,Mm=ce`
4750
+ `,Pm=ue`
4717
4751
  :host {
4718
4752
  --brz-font-family-brand: Inter, sofiapro;
4719
4753
  --brz-font-family-fallback: system-ui, BlinkMacSystemFont, -apple-system,
@@ -4756,14 +4790,14 @@ ${this.value}</textarea
4756
4790
 
4757
4791
  --brz-text-block-max-width: 44rem;
4758
4792
  }
4759
- `,km=ce`
4793
+ `,Im=ue`
4760
4794
  :host {
4761
4795
  --brz-z-index-navigation: 1000;
4762
4796
  --brz-z-index-dialog: 1100;
4763
4797
  --brz-z-index-dropdown: 1200;
4764
4798
  --brz-z-index-tooltip: 1300;
4765
4799
  }
4766
- `;var Om=Object.defineProperty,Tm=Object.getOwnPropertyDescriptor,Em=(s,i,l,d)=>{for(var c=d>1?void 0:d?Tm(i,l):i,g=s.length-1,b;g>=0;g--)(b=s[g])&&(c=(d?b(i,l,c):b(c))||c);return d&&c&&Om(i,l,c),c};const I2=Le("global-styles");exports.GlobalStyles=class extends Be{render(){return K`<slot></slot>`}};exports.GlobalStyles.styles=[Lm,Yh,Mm,zm,Sm,km,vm,_m,ce`
4800
+ `;var Am=Object.defineProperty,$m=Object.getOwnPropertyDescriptor,Dm=(s,i,l,d)=>{for(var c=d>1?void 0:d?$m(i,l):i,g=s.length-1,b;g>=0;g--)(b=s[g])&&(c=(d?b(i,l,c):b(c))||c);return d&&c&&Am(i,l,c),c};const H2=Le("global-styles");exports.GlobalStyles=class extends Be{render(){return j`<slot></slot>`}};exports.GlobalStyles.styles=[Om,ep,Pm,km,Em,Im,wm,Tm,ue`
4767
4801
  :host {
4768
4802
  --brz-outline-color: var(--brz-color-primary-600);
4769
4803
  --brz-outline-style: solid;
@@ -4781,7 +4815,7 @@ ${this.value}</textarea
4781
4815
  font-weight: var(--brz-font-weight-normal);
4782
4816
  color: var(--brz-color-text);
4783
4817
  }
4784
- `];exports.GlobalStyles=Em([X(I2)],exports.GlobalStyles);const A2=Le("card"),$2=Le("card-header"),D2=Le("card-footer"),R2=Le("card-section-header"),Pm=ce`
4818
+ `];exports.GlobalStyles=Dm([X(H2)],exports.GlobalStyles);const B2=Le("card"),F2=Le("card-header"),W2=Le("card-footer"),U2=Le("card-section-header"),Rm=ue`
4785
4819
  :host {
4786
4820
  --brz-card-background-color: var(--brz-color-white);
4787
4821
  --brz-card-color: var(--brz-color-text);
@@ -4819,7 +4853,7 @@ ${this.value}</textarea
4819
4853
 
4820
4854
  padding-bottom: calc(2 * var(--brz-card-body-balancer));
4821
4855
  }
4822
- `,Im=s=>ce`
4856
+ `,Nm=s=>ue`
4823
4857
  :host([padding='${s}']) {
4824
4858
  --brz-card-padding: var(--brz-spacing-${s});
4825
4859
  }
@@ -4827,7 +4861,7 @@ ${this.value}</textarea
4827
4861
  :host([body-padding='${s}']) {
4828
4862
  --brz-card-body-padding: var(--brz-spacing-${s});
4829
4863
  }
4830
- `,Am=ju.map(Im),$m=ce`
4864
+ `,Hm=ju.map(Nm),Bm=ue`
4831
4865
  :host {
4832
4866
  --brz-card-header-color: var(--brz-card-color, var(--brz-color-text));
4833
4867
  --brz-card-header-padding-x: var(--brz-card-padding, var(--brz-spacing-5));
@@ -4873,7 +4907,7 @@ ${this.value}</textarea
4873
4907
  align-self: flex-start;
4874
4908
  flex-shrink: 0;
4875
4909
  }
4876
- `,Dm=ce`
4910
+ `,Fm=ue`
4877
4911
  :host {
4878
4912
  --brz-card-footer-color: var(--brz-card-color, var(--brz-color-text));
4879
4913
  --brz-card-footer-padding-x: var(--brz-card-padding, var(--brz-spacing-5));
@@ -4901,7 +4935,7 @@ ${this.value}</textarea
4901
4935
  align-self: flex-start;
4902
4936
  flex-shrink: 0;
4903
4937
  }
4904
- `;var Rm=Object.defineProperty,Nm=Object.getOwnPropertyDescriptor,Hm=(s,i,l,d)=>{for(var c=d>1?void 0:d?Nm(i,l):i,g=s.length-1,b;g>=0;g--)(b=s[g])&&(c=(d?b(i,l,c):b(c))||c);return d&&c&&Rm(i,l,c),c};exports.CardHeader=class extends Be{connectedCallback(){super.connectedCallback(),this.slot="header"}get contentTemplate(){return K`
4938
+ `;var Wm=Object.defineProperty,Um=Object.getOwnPropertyDescriptor,Zm=(s,i,l,d)=>{for(var c=d>1?void 0:d?Um(i,l):i,g=s.length-1,b;g>=0;g--)(b=s[g])&&(c=(d?b(i,l,c):b(c))||c);return d&&c&&Wm(i,l,c),c};exports.CardHeader=class extends Be{connectedCallback(){super.connectedCallback(),this.slot="header"}get contentTemplate(){return j`
4905
4939
  <div class="title">
4906
4940
  <slot></slot>
4907
4941
  </div>
@@ -4909,9 +4943,9 @@ ${this.value}</textarea
4909
4943
  <div class="aside">
4910
4944
  <slot name="aside"></slot>
4911
4945
  </div>
4912
- `}render(){return K` <header class="card-header">${this.contentTemplate}</header> `}};exports.CardHeader.styles=[$m];exports.CardHeader=Hm([Gu($2)],exports.CardHeader);var Bm=Object.defineProperty,Fm=Object.getOwnPropertyDescriptor,Wm=(s,i,l,d)=>{for(var c=d>1?void 0:d?Fm(i,l):i,g=s.length-1,b;g>=0;g--)(b=s[g])&&(c=(d?b(i,l,c):b(c))||c);return d&&c&&Bm(i,l,c),c};exports.CardSectionHeader=class extends exports.CardHeader{connectedCallback(){super.connectedCallback(),this.slot=""}render(){return K`
4946
+ `}render(){return j` <header class="card-header">${this.contentTemplate}</header> `}};exports.CardHeader.styles=[Bm];exports.CardHeader=Zm([Vu(F2)],exports.CardHeader);var Vm=Object.defineProperty,Gm=Object.getOwnPropertyDescriptor,qm=(s,i,l,d)=>{for(var c=d>1?void 0:d?Gm(i,l):i,g=s.length-1,b;g>=0;g--)(b=s[g])&&(c=(d?b(i,l,c):b(c))||c);return d&&c&&Vm(i,l,c),c};exports.CardSectionHeader=class extends exports.CardHeader{connectedCallback(){super.connectedCallback(),this.slot=""}render(){return j`
4913
4947
  <div class="card-section-header">${this.contentTemplate}</div>
4914
- `}};exports.CardSectionHeader=Wm([Gu(R2)],exports.CardSectionHeader);var Um=Object.defineProperty,Zm=Object.getOwnPropertyDescriptor,Gm=(s,i,l,d)=>{for(var c=d>1?void 0:d?Zm(i,l):i,g=s.length-1,b;g>=0;g--)(b=s[g])&&(c=(d?b(i,l,c):b(c))||c);return d&&c&&Um(i,l,c),c};exports.CardFooter=class extends Be{connectedCallback(){super.connectedCallback(),this.slot="footer"}render(){return K`
4948
+ `}};exports.CardSectionHeader=qm([Vu(U2)],exports.CardSectionHeader);var jm=Object.defineProperty,Km=Object.getOwnPropertyDescriptor,Ym=(s,i,l,d)=>{for(var c=d>1?void 0:d?Km(i,l):i,g=s.length-1,b;g>=0;g--)(b=s[g])&&(c=(d?b(i,l,c):b(c))||c);return d&&c&&jm(i,l,c),c};exports.CardFooter=class extends Be{connectedCallback(){super.connectedCallback(),this.slot="footer"}render(){return j`
4915
4949
  <footer class="card-footer">
4916
4950
  <div>
4917
4951
  <slot></slot>
@@ -4921,19 +4955,19 @@ ${this.value}</textarea
4921
4955
  <slot name="aside"></slot>
4922
4956
  </div>
4923
4957
  </footer>
4924
- `}};exports.CardFooter.styles=[Dm];exports.CardFooter=Gm([Gu(D2)],exports.CardFooter);var Vm=Object.defineProperty,qm=Object.getOwnPropertyDescriptor,ec=(s,i,l,d)=>{for(var c=d>1?void 0:d?qm(i,l):i,g=s.length-1,b;g>=0;g--)(b=s[g])&&(c=(d?b(i,l,c):b(c))||c);return d&&c&&Vm(i,l,c),c};exports.Card=class extends Ts{constructor(){super(...arguments),this.hasHeader=!1}updated(s){super.updated(s),this.hasHeader=!!this.header.length&&this.header[0]instanceof exports.CardHeader}render(){return K`
4958
+ `}};exports.CardFooter.styles=[Fm];exports.CardFooter=Ym([Vu(W2)],exports.CardFooter);var Xm=Object.defineProperty,Qm=Object.getOwnPropertyDescriptor,ec=(s,i,l,d)=>{for(var c=d>1?void 0:d?Qm(i,l):i,g=s.length-1,b;g>=0;g--)(b=s[g])&&(c=(d?b(i,l,c):b(c))||c);return d&&c&&Xm(i,l,c),c};exports.Card=class extends Ts{constructor(){super(...arguments),this.hasHeader=!1}updated(s){super.updated(s),this.hasHeader=!!this.header.length&&this.header[0]instanceof exports.CardHeader}render(){return j`
4925
4959
  <article class="card">
4926
4960
  <slot name="header"></slot>
4927
4961
 
4928
4962
  <div
4929
- class=${Cn({"card-body":!0,"has-header":this.hasHeader})}
4963
+ class=${un({"card-body":!0,"has-header":this.hasHeader})}
4930
4964
  >
4931
4965
  <slot></slot>
4932
4966
  </div>
4933
4967
 
4934
4968
  <slot name="footer"></slot>
4935
4969
  </article>
4936
- `}};var bh;exports.Card.styles=[(bh=Ts.styles)!=null?bh:[],Pm,Am];ec([R({type:Number,reflect:!0})],exports.Card.prototype,"padding",2);ec([R({type:Number,reflect:!0,attribute:"body-padding"})],exports.Card.prototype,"bodyPadding",2);ec([Re()],exports.Card.prototype,"hasHeader",2);ec([Io({slot:"header",flatten:!0})],exports.Card.prototype,"header",2);exports.Card=ec([Gu(A2)],exports.Card);var jm=Object.defineProperty,Km=Object.getOwnPropertyDescriptor,tf=(s,i,l,d)=>{for(var c=d>1?void 0:d?Km(i,l):i,g=s.length-1,b;g>=0;g--)(b=s[g])&&(c=(d?b(i,l,c):b(c))||c);return d&&c&&jm(i,l,c),c};const N2=Le("paper");exports.Paper=class extends Be{constructor(){super(...arguments),this.hasBorder=!1,this.level=1}render(){return K` <div class="container"><slot></slot></div> `}};exports.Paper.styles=ce`
4970
+ `}};var wh;exports.Card.styles=[(wh=Ts.styles)!=null?wh:[],Rm,Hm];ec([R({type:Number,reflect:!0})],exports.Card.prototype,"padding",2);ec([R({type:Number,reflect:!0,attribute:"body-padding"})],exports.Card.prototype,"bodyPadding",2);ec([Re()],exports.Card.prototype,"hasHeader",2);ec([Io({slot:"header",flatten:!0})],exports.Card.prototype,"header",2);exports.Card=ec([Vu(B2)],exports.Card);var Jm=Object.defineProperty,ey=Object.getOwnPropertyDescriptor,tf=(s,i,l,d)=>{for(var c=d>1?void 0:d?ey(i,l):i,g=s.length-1,b;g>=0;g--)(b=s[g])&&(c=(d?b(i,l,c):b(c))||c);return d&&c&&Jm(i,l,c),c};const Z2=Le("paper");exports.Paper=class extends Be{constructor(){super(...arguments),this.hasBorder=!1,this.level=1}render(){return j` <div class="container"><slot></slot></div> `}};exports.Paper.styles=ue`
4937
4971
  :host {
4938
4972
  display: block;
4939
4973
  position: relative;
@@ -4957,4 +4991,4 @@ ${this.value}</textarea
4957
4991
  :host([has-border]) .container {
4958
4992
  border: 1px solid var(--brz-color-neutral-300);
4959
4993
  }
4960
- `;tf([R({type:Boolean,attribute:"has-border",reflect:!0})],exports.Paper.prototype,"hasBorder",2);tf([R({type:Number,reflect:!0})],exports.Paper.prototype,"level",2);exports.Paper=tf([X(N2)],exports.Paper);var Ym=Object.defineProperty,Xm=Object.getOwnPropertyDescriptor,Ae=(s,i,l,d)=>{for(var c=d>1?void 0:d?Xm(i,l):i,g=s.length-1,b;g>=0;g--)(b=s[g])&&(c=(d?b(i,l,c):b(c))||c);return d&&c&&Ym(i,l,c),c};exports.LegacyGlobalStyles=class extends exports.GlobalStyles{};exports.LegacyGlobalStyles=Ae([X("sp-global-styles")],exports.LegacyGlobalStyles);exports.LegacyAlert=class extends exports.Alert{};exports.LegacyAlert=Ae([X("sp-alert")],exports.LegacyAlert);exports.LegacyAvatar=class extends exports.Avatar{};exports.LegacyAvatar=Ae([X("sp-avatar")],exports.LegacyAvatar);exports.LegacyAvatarGroup=class extends exports.AvatarGroup{};exports.LegacyAvatarGroup=Ae([X("sp-avatar-group")],exports.LegacyAvatarGroup);exports.LegacyButton=class extends exports.Button{};exports.LegacyButton=Ae([X("sp-button")],exports.LegacyButton);exports.LegacyButtonGroup=class extends exports.ButtonGroup{};exports.LegacyButtonGroup=Ae([X("sp-button-group")],exports.LegacyButtonGroup);exports.LegacyBadge=class extends exports.Badge{};exports.LegacyBadge=Ae([X("sp-badge")],exports.LegacyBadge);exports.LegacyComboBox=class extends exports.ComboBox{};exports.LegacyComboBox=Ae([X("sp-combo-box")],exports.LegacyComboBox);exports.LegacyComboBoxOption=class extends exports.ComboBoxOption{};exports.LegacyComboBoxOption=Ae([X("sp-combo-box-option")],exports.LegacyComboBoxOption);exports.LegacyConfirmationDialog=class extends exports.ConfirmationDialog{};exports.LegacyConfirmationDialog=Ae([X("sp-confirmation-dialog")],exports.LegacyConfirmationDialog);exports.LegacyHeading=class extends exports.Heading{};exports.LegacyHeading=Ae([X("sp-heading")],exports.LegacyHeading);exports.LegacyLink=class extends exports.Link{};exports.LegacyLink=Ae([X("sp-link")],exports.LegacyLink);exports.LegacyLinkButton=class extends exports.LinkButton{};exports.LegacyLinkButton=Ae([X("sp-link-button")],exports.LegacyLinkButton);exports.LegacyLoadingSpinner=class extends exports.LoadingSpinner{};exports.LegacyLoadingSpinner=Ae([X("sp-loading-spinner")],exports.LegacyLoadingSpinner);exports.LegacyLozenge=class extends exports.Lozenge{};exports.LegacyLozenge=Ae([X("sp-lozenge")],exports.LegacyLozenge);exports.LegacyBasicPagination=class extends exports.BasicPagination{};exports.LegacyBasicPagination=Ae([X("sp-basic-pagination")],exports.LegacyBasicPagination);exports.LegacyPagination=class extends exports.Pagination{};exports.LegacyPagination=Ae([X("sp-pagination")],exports.LegacyPagination);exports.LegacyPopover=class extends exports.Popover{};exports.LegacyPopover=Ae([X("sp-popover")],exports.LegacyPopover);exports.LegacyPurePopover=class extends exports.PurePopover{};exports.LegacyPurePopover=Ae([X("sp-pure-popover")],exports.LegacyPurePopover);exports.LegacyRecordRow=class extends exports.RecordRow{};exports.LegacyRecordRow=Ae([X("sp-record-row")],exports.LegacyRecordRow);exports.LegacyRecordRowLabel=class extends exports.RecordRowLabel{};exports.LegacyRecordRowLabel=Ae([X("sp-record-row-label")],exports.LegacyRecordRowLabel);exports.LegacyTooltip=class extends exports.Tooltip{};exports.LegacyTooltip=Ae([X("sp-tooltip")],exports.LegacyTooltip);exports.LegacyVirtualList=class extends exports.VirtualList{};exports.LegacyVirtualList=Ae([X("sp-virtual-list")],exports.LegacyVirtualList);exports.LegacyFadeInOut=class extends exports.FadeInOut{};exports.LegacyFadeInOut=Ae([X("sp-fade-in-out")],exports.LegacyFadeInOut);exports.LegacyPaper=class extends exports.Paper{};exports.LegacyPaper=Ae([X("sp-paper")],exports.LegacyPaper);exports.LegacyRow=class extends exports.Row{};exports.LegacyRow=Ae([X("sp-row")],exports.LegacyRow);exports.LegacyColumn=class extends exports.Column{};exports.LegacyColumn=Ae([X("sp-column")],exports.LegacyColumn);exports.LegacyFooter=class extends exports.Footer{};exports.LegacyFooter=Ae([X("sp-footer")],exports.LegacyFooter);exports.LegacyHeaderFooterPage=class extends exports.HeaderFooterPage{};exports.LegacyHeaderFooterPage=Ae([X("sp-header-footer-page")],exports.LegacyHeaderFooterPage);exports.LegacyHeader=class extends exports.Header{};exports.LegacyHeader=Ae([X("sp-header")],exports.LegacyHeader);exports.LegacyResponsiveColumns=class extends exports.ResponsiveColumns{};exports.LegacyResponsiveColumns=Ae([X("sp-responsive-columns")],exports.LegacyResponsiveColumns);exports.LegacySplitRow=class extends exports.SplitRow{};exports.LegacySplitRow=Ae([X("sp-split-row")],exports.LegacySplitRow);exports.LegacyActionBar=class extends exports.ActionBar{};exports.LegacyActionBar=Ae([X("sp-action-bar")],exports.LegacyActionBar);exports.LegacyIllustration=class extends exports.Illustration{};exports.LegacyIllustration=Ae([X("sp-illustration")],exports.LegacyIllustration);exports.LegacyIcon=class extends exports.Icon{};exports.LegacyIcon=Ae([X("sp-icon")],exports.LegacyIcon);exports.LegacyModalHeader=class extends exports.ModalHeader{};exports.LegacyModalHeader=Ae([X("sp-modal-header")],exports.LegacyModalHeader);exports.LegacyModalBody=class extends exports.ModalBody{};exports.LegacyModalBody=Ae([X("sp-modal-body")],exports.LegacyModalBody);exports.LegacyModalFooter=class extends exports.ModalFooter{};exports.LegacyModalFooter=Ae([X("sp-modal-footer")],exports.LegacyModalFooter);exports.LegacyModal=class extends exports.Modal{};exports.LegacyModal=Ae([X("sp-modal")],exports.LegacyModal);exports.LegacySideNavigationItem=class extends exports.SideNavigationItem{};exports.LegacySideNavigationItem=Ae([X("sp-side-navigation-item")],exports.LegacySideNavigationItem);exports.LegacySideNavigation=class extends exports.SideNavigation{};exports.LegacySideNavigation=Ae([X("sp-side-navigation")],exports.LegacySideNavigation);exports.LegacyTabs=class extends exports.Tabs{};exports.LegacyTabs=Ae([X("sp-tabs")],exports.LegacyTabs);exports.LegacyTabPanel=class extends exports.TabPanel{};exports.LegacyTabPanel=Ae([X("sp-tab-panel")],exports.LegacyTabPanel);exports.LegacyTabBar=class extends exports.TabBar{};exports.LegacyTabBar=Ae([X("sp-tab-bar")],exports.LegacyTabBar);exports.LegacyTab=class extends exports.Tab{};exports.LegacyTab=Ae([X("sp-tab")],exports.LegacyTab);exports.LegacyInputCheckbox=class extends exports.InputCheckbox{};exports.LegacyInputCheckbox=Ae([X("sp-input-checkbox")],exports.LegacyInputCheckbox);exports.LegacyInputCode=class extends exports.InputCode{};exports.LegacyInputCode=Ae([X("sp-input-code")],exports.LegacyInputCode);exports.LegacyInputError=class extends exports.InputError{};exports.LegacyInputError=Ae([X("sp-input-error")],exports.LegacyInputError);exports.LegacyInputGuide=class extends I0{};exports.LegacyInputGuide=Ae([X("sp-input-guide")],exports.LegacyInputGuide);exports.LegacyInputMultiselect=class extends exports.InputMultiselect{};exports.LegacyInputMultiselect=Ae([X("sp-input-multiselect")],exports.LegacyInputMultiselect);exports.LegacyInputNumber=class extends exports.InputNumber{};exports.LegacyInputNumber=Ae([X("sp-input-number")],exports.LegacyInputNumber);exports.LegacyInputRadio=class extends exports.InputRadio{};exports.LegacyInputRadio=Ae([X("sp-input-radio-group")],exports.LegacyInputRadio);exports.LegacyInputRadioOption=class extends exports.InputRadioOption{};exports.LegacyInputRadioOption=Ae([X("sp-input-radio-option")],exports.LegacyInputRadioOption);exports.LegacyMenu=class extends exports.Menu{};exports.LegacyMenu=Ae([X("sp-menu")],exports.LegacyMenu);exports.LegacyMenuItem=class extends exports.MenuItem{};exports.LegacyMenuItem=Ae([X("sp-menu-item")],exports.LegacyMenuItem);exports.LegacyInputSelect=class extends exports.InputSelect{};exports.LegacyInputSelect=Ae([X("sp-input-select")],exports.LegacyInputSelect);exports.LegacyInputText=class extends exports.InputText{};exports.LegacyInputText=Ae([X("sp-input-text")],exports.LegacyInputText);exports.LegacyInputTextarea=class extends exports.InputTextarea{};exports.LegacyInputTextarea=Ae([X("sp-input-textarea")],exports.LegacyInputTextarea);exports.LegacyInputTime=class extends exports.InputTime{};exports.LegacyInputTime=Ae([X("sp-input-time")],exports.LegacyInputTime);exports.LegacyInputLabel=class extends exports.InputLabel{};exports.LegacyInputLabel=Ae([X("sp-input-label")],exports.LegacyInputLabel);exports.LegacyLabeledInput=class extends exports.LabeledInput{};exports.LegacyLabeledInput=Ae([X("sp-labeled-input")],exports.LegacyLabeledInput);exports.ACTION_BAR=qp;exports.ALERT=L2;exports.AVATAR=qh;exports.AVATAR_GROUP=jh;exports.AvatarSize=P0;exports.AvatarTheme=Kh;exports.BADGE=x2;exports.BASIC_PAGINATION=Qd;exports.BUTTON=Wd;exports.BUTTON_GROUP=op;exports.BadgeTheme=z2;exports.CARD=A2;exports.CARD_FOOTER=D2;exports.CARD_HEADER=$2;exports.CARD_SECTION_HEADER=R2;exports.COLUMN=rp;exports.COMBO_BOX=Up;exports.COMBO_BOX_OPTION=Zp;exports.CONFIRMATION_DIALOG=Qp;exports.ConfirmationDialogCancel=Jp;exports.ConfirmationDialogConfirm=e2;exports.DROPDOWN_BUTTON=r2;exports.DROPDOWN_MENU=Fp;exports.DeleteLozengeEvent=Lp;exports.FADE_IN_OUT=Eh;exports.FOOTER=O2;exports.GLOBAL_STYLES=I2;exports.GRID=E2;exports.GRID_ITEM=P2;exports.HEADER=S2;exports.HEADER_FOOTER_PAGE=M2;exports.HEADING=n2;exports.ICON=Qh;exports.ILLUSTRATION=_2;exports.INLINE_EDIT_CONTROLS=o2;exports.INLINE_EDIT_FIELD=i2;exports.INLINE_EDIT_GROUP=qd;exports.INPUT_CHECKBOX=ap;exports.INPUT_CODE=yp;exports.INPUT_ERROR=up;exports.INPUT_LABEL=dp;exports.INPUT_MULTISELECT=_p;exports.INPUT_NUMBER=pp;exports.INPUT_RADIO_GROUP=bp;exports.INPUT_RADIO_OPTION=mp;exports.INPUT_SELECT=xp;exports.INPUT_TEXT=fp;exports.INPUT_TEXTAREA=hp;exports.INPUT_TIME=Tp;exports.InlineEditControlsCancelEvent=l2;exports.InlineEditControlsSaveEvent=s2;exports.InlineEditFieldBroadcastEvent=u2;exports.InlineEditFieldModeChangeEvent=c2;exports.InlineEditGroupModeChangeEvent=d2;exports.InputBase=ti;exports.InputSelectBase=Ar;exports.InputSelectQueryChangeEvent=wp;exports.LABELED_INPUT=cp;exports.LINK=Jh;exports.LINK_BUTTON=ep;exports.LOADING_SPINNER=ip;exports.LOZENGE=zp;exports.MENU=Rp;exports.MENU_ITEM=D0;exports.MODAL=Gp;exports.MODAL_BODY=Kp;exports.MODAL_FOOTER=Yp;exports.MODAL_HEADER=jp;exports.MenuBlurEvent=Hp;exports.MenuItemSelectEvent=Dp;exports.MenuSelectEvent=Bp;exports.ModalCloseEvent=Gd;exports.PAGE_HEADER=T2;exports.PAGINATION=Jd;exports.PAPER=N2;exports.POPOVER=Dd;exports.POPOVER_LISTENABLE_EVENT_TYPES=E0;exports.POPOVER_ROLES=Rd;exports.POPOVER_TRIGGERS=Zh;exports.PURE_POPOVER=Uh;exports.RECORD_FIELD=lp;exports.RECORD_FIELD_LABEL=sp;exports.RECORD_ROW=v2;exports.RECORD_ROW_LABEL=b2;exports.RESPONSIVE_COLUMNS=k2;exports.ROW=tp;exports.SEARCH_MESSAGE_ID=Uu;exports.SELECT_ALL_ID=vi;exports.SIDE_NAVIGATION=p2;exports.SIDE_NAVIGATION_ITEM=h2;exports.SPACING_BASE=Nd;exports.SPLIT_ROW=Vp;exports.TAB=y2;exports.TABS=w2;exports.TAB_BAR=C2;exports.TAB_PANEL=m2;exports.TIME_FORMAT=Ep;exports.TIME_REGEX_12H=Ap;exports.TIME_REGEX_24H=Ip;exports.TIME_REGEX_LOOSE=Pp;exports.TOOLTIP=Gh;exports.TabSelectedEvent=X0;exports.TooltipTheme=Vh;exports.VIRTUAL_LIST=Zd;exports.VirtualListUpdateEvent=Cp;exports.alertTypes=j8;exports.buttonTypes=q3;exports.click=T0;exports.columnSpans=o1;exports.dropdownMenuSizes=Ub;exports.focus=fl;exports.hover=wd;exports.iconNames=E3;exports.icons=Hd;exports.illustrationNames=Y8;exports.illustrations=ef;exports.inlineEditControlsModes=a2;exports.inlineEditModes=o8;exports.inputSizes=e7;exports.labelPositions=t7;exports.linkButtonElementTypes=D3;exports.linkTypes=H3;exports.lozengeColors=o9;exports.lozengeSizes=l9;exports.lozengeThemes=a9;exports.menuSizes=Np;exports.modalSizes=jb;exports.radioLayouts=$7;exports.resetLinkStyle=Fd;exports.spacing=Yh;exports.spacingLevels=ju;exports.syntaxes=U7;exports.timeSuffixes=Tb;exports.transformIcon=Xh;
4994
+ `;tf([R({type:Boolean,attribute:"has-border",reflect:!0})],exports.Paper.prototype,"hasBorder",2);tf([R({type:Number,reflect:!0})],exports.Paper.prototype,"level",2);exports.Paper=tf([X(Z2)],exports.Paper);var ty=Object.defineProperty,ry=Object.getOwnPropertyDescriptor,Ae=(s,i,l,d)=>{for(var c=d>1?void 0:d?ry(i,l):i,g=s.length-1,b;g>=0;g--)(b=s[g])&&(c=(d?b(i,l,c):b(c))||c);return d&&c&&ty(i,l,c),c};exports.LegacyGlobalStyles=class extends exports.GlobalStyles{};exports.LegacyGlobalStyles=Ae([X("sp-global-styles")],exports.LegacyGlobalStyles);exports.LegacyAlert=class extends exports.Alert{};exports.LegacyAlert=Ae([X("sp-alert")],exports.LegacyAlert);exports.LegacyAvatar=class extends exports.Avatar{};exports.LegacyAvatar=Ae([X("sp-avatar")],exports.LegacyAvatar);exports.LegacyAvatarGroup=class extends exports.AvatarGroup{};exports.LegacyAvatarGroup=Ae([X("sp-avatar-group")],exports.LegacyAvatarGroup);exports.LegacyButton=class extends exports.Button{};exports.LegacyButton=Ae([X("sp-button")],exports.LegacyButton);exports.LegacyButtonGroup=class extends exports.ButtonGroup{};exports.LegacyButtonGroup=Ae([X("sp-button-group")],exports.LegacyButtonGroup);exports.LegacyBadge=class extends exports.Badge{};exports.LegacyBadge=Ae([X("sp-badge")],exports.LegacyBadge);exports.LegacyComboBox=class extends exports.ComboBox{};exports.LegacyComboBox=Ae([X("sp-combo-box")],exports.LegacyComboBox);exports.LegacyComboBoxOption=class extends exports.ComboBoxOption{};exports.LegacyComboBoxOption=Ae([X("sp-combo-box-option")],exports.LegacyComboBoxOption);exports.LegacyConfirmationDialog=class extends exports.ConfirmationDialog{};exports.LegacyConfirmationDialog=Ae([X("sp-confirmation-dialog")],exports.LegacyConfirmationDialog);exports.LegacyHeading=class extends exports.Heading{};exports.LegacyHeading=Ae([X("sp-heading")],exports.LegacyHeading);exports.LegacyLink=class extends exports.Link{};exports.LegacyLink=Ae([X("sp-link")],exports.LegacyLink);exports.LegacyLinkButton=class extends exports.LinkButton{};exports.LegacyLinkButton=Ae([X("sp-link-button")],exports.LegacyLinkButton);exports.LegacyLoadingSpinner=class extends exports.LoadingSpinner{};exports.LegacyLoadingSpinner=Ae([X("sp-loading-spinner")],exports.LegacyLoadingSpinner);exports.LegacyLozenge=class extends exports.Lozenge{};exports.LegacyLozenge=Ae([X("sp-lozenge")],exports.LegacyLozenge);exports.LegacyBasicPagination=class extends exports.BasicPagination{};exports.LegacyBasicPagination=Ae([X("sp-basic-pagination")],exports.LegacyBasicPagination);exports.LegacyPagination=class extends exports.Pagination{};exports.LegacyPagination=Ae([X("sp-pagination")],exports.LegacyPagination);exports.LegacyPopover=class extends exports.Popover{};exports.LegacyPopover=Ae([X("sp-popover")],exports.LegacyPopover);exports.LegacyPurePopover=class extends exports.PurePopover{};exports.LegacyPurePopover=Ae([X("sp-pure-popover")],exports.LegacyPurePopover);exports.LegacyRecordRow=class extends exports.RecordRow{};exports.LegacyRecordRow=Ae([X("sp-record-row")],exports.LegacyRecordRow);exports.LegacyRecordRowLabel=class extends exports.RecordRowLabel{};exports.LegacyRecordRowLabel=Ae([X("sp-record-row-label")],exports.LegacyRecordRowLabel);exports.LegacyTooltip=class extends exports.Tooltip{};exports.LegacyTooltip=Ae([X("sp-tooltip")],exports.LegacyTooltip);exports.LegacyVirtualList=class extends exports.VirtualList{};exports.LegacyVirtualList=Ae([X("sp-virtual-list")],exports.LegacyVirtualList);exports.LegacyFadeInOut=class extends exports.FadeInOut{};exports.LegacyFadeInOut=Ae([X("sp-fade-in-out")],exports.LegacyFadeInOut);exports.LegacyPaper=class extends exports.Paper{};exports.LegacyPaper=Ae([X("sp-paper")],exports.LegacyPaper);exports.LegacyRow=class extends exports.Row{};exports.LegacyRow=Ae([X("sp-row")],exports.LegacyRow);exports.LegacyColumn=class extends exports.Column{};exports.LegacyColumn=Ae([X("sp-column")],exports.LegacyColumn);exports.LegacyFooter=class extends exports.Footer{};exports.LegacyFooter=Ae([X("sp-footer")],exports.LegacyFooter);exports.LegacyHeaderFooterPage=class extends exports.HeaderFooterPage{};exports.LegacyHeaderFooterPage=Ae([X("sp-header-footer-page")],exports.LegacyHeaderFooterPage);exports.LegacyHeader=class extends exports.Header{};exports.LegacyHeader=Ae([X("sp-header")],exports.LegacyHeader);exports.LegacyResponsiveColumns=class extends exports.ResponsiveColumns{};exports.LegacyResponsiveColumns=Ae([X("sp-responsive-columns")],exports.LegacyResponsiveColumns);exports.LegacySplitRow=class extends exports.SplitRow{};exports.LegacySplitRow=Ae([X("sp-split-row")],exports.LegacySplitRow);exports.LegacyActionBar=class extends exports.ActionBar{};exports.LegacyActionBar=Ae([X("sp-action-bar")],exports.LegacyActionBar);exports.LegacyIllustration=class extends exports.Illustration{};exports.LegacyIllustration=Ae([X("sp-illustration")],exports.LegacyIllustration);exports.LegacyIcon=class extends exports.Icon{};exports.LegacyIcon=Ae([X("sp-icon")],exports.LegacyIcon);exports.LegacyModalHeader=class extends exports.ModalHeader{};exports.LegacyModalHeader=Ae([X("sp-modal-header")],exports.LegacyModalHeader);exports.LegacyModalBody=class extends exports.ModalBody{};exports.LegacyModalBody=Ae([X("sp-modal-body")],exports.LegacyModalBody);exports.LegacyModalFooter=class extends exports.ModalFooter{};exports.LegacyModalFooter=Ae([X("sp-modal-footer")],exports.LegacyModalFooter);exports.LegacyModal=class extends exports.Modal{};exports.LegacyModal=Ae([X("sp-modal")],exports.LegacyModal);exports.LegacySideNavigationItem=class extends exports.SideNavigationItem{};exports.LegacySideNavigationItem=Ae([X("sp-side-navigation-item")],exports.LegacySideNavigationItem);exports.LegacySideNavigation=class extends exports.SideNavigation{};exports.LegacySideNavigation=Ae([X("sp-side-navigation")],exports.LegacySideNavigation);exports.LegacyTabs=class extends exports.Tabs{};exports.LegacyTabs=Ae([X("sp-tabs")],exports.LegacyTabs);exports.LegacyTabPanel=class extends exports.TabPanel{};exports.LegacyTabPanel=Ae([X("sp-tab-panel")],exports.LegacyTabPanel);exports.LegacyTabBar=class extends exports.TabBar{};exports.LegacyTabBar=Ae([X("sp-tab-bar")],exports.LegacyTabBar);exports.LegacyTab=class extends exports.Tab{};exports.LegacyTab=Ae([X("sp-tab")],exports.LegacyTab);exports.LegacyInputCheckbox=class extends exports.InputCheckbox{};exports.LegacyInputCheckbox=Ae([X("sp-input-checkbox")],exports.LegacyInputCheckbox);exports.LegacyInputCode=class extends exports.InputCode{};exports.LegacyInputCode=Ae([X("sp-input-code")],exports.LegacyInputCode);exports.LegacyInputError=class extends exports.InputError{};exports.LegacyInputError=Ae([X("sp-input-error")],exports.LegacyInputError);exports.LegacyInputGuide=class extends I0{};exports.LegacyInputGuide=Ae([X("sp-input-guide")],exports.LegacyInputGuide);exports.LegacyInputMultiselect=class extends exports.InputMultiselect{};exports.LegacyInputMultiselect=Ae([X("sp-input-multiselect")],exports.LegacyInputMultiselect);exports.LegacyInputNumber=class extends exports.InputNumber{};exports.LegacyInputNumber=Ae([X("sp-input-number")],exports.LegacyInputNumber);exports.LegacyInputRadio=class extends exports.InputRadio{};exports.LegacyInputRadio=Ae([X("sp-input-radio-group")],exports.LegacyInputRadio);exports.LegacyInputRadioOption=class extends exports.InputRadioOption{};exports.LegacyInputRadioOption=Ae([X("sp-input-radio-option")],exports.LegacyInputRadioOption);exports.LegacyMenu=class extends exports.Menu{};exports.LegacyMenu=Ae([X("sp-menu")],exports.LegacyMenu);exports.LegacyMenuItem=class extends exports.MenuItem{};exports.LegacyMenuItem=Ae([X("sp-menu-item")],exports.LegacyMenuItem);exports.LegacyInputSelect=class extends exports.InputSelect{};exports.LegacyInputSelect=Ae([X("sp-input-select")],exports.LegacyInputSelect);exports.LegacyInputText=class extends exports.InputText{};exports.LegacyInputText=Ae([X("sp-input-text")],exports.LegacyInputText);exports.LegacyInputTextarea=class extends exports.InputTextarea{};exports.LegacyInputTextarea=Ae([X("sp-input-textarea")],exports.LegacyInputTextarea);exports.LegacyInputTime=class extends exports.InputTime{};exports.LegacyInputTime=Ae([X("sp-input-time")],exports.LegacyInputTime);exports.LegacyInputLabel=class extends exports.InputLabel{};exports.LegacyInputLabel=Ae([X("sp-input-label")],exports.LegacyInputLabel);exports.LegacyLabeledInput=class extends exports.LabeledInput{};exports.LegacyLabeledInput=Ae([X("sp-labeled-input")],exports.LegacyLabeledInput);exports.ACTION_BAR=Jp;exports.ALERT=T2;exports.AVATAR=Xh;exports.AVATAR_GROUP=Qh;exports.AvatarSize=P0;exports.AvatarTheme=Jh;exports.BADGE=k2;exports.BASIC_PAGINATION=Qd;exports.BUTTON=Wd;exports.BUTTON_GROUP=up;exports.BadgeTheme=O2;exports.CARD=B2;exports.CARD_FOOTER=W2;exports.CARD_HEADER=F2;exports.CARD_SECTION_HEADER=U2;exports.COLUMN=ap;exports.COMBO_BOX=Kp;exports.COMBO_BOX_OPTION=Yp;exports.CONFIRMATION_DIALOG=i2;exports.ConfirmationDialogCancel=o2;exports.ConfirmationDialogConfirm=a2;exports.DROPDOWN_BUTTON=s2;exports.DROPDOWN_MENU=qp;exports.DeleteLozengeEvent=Tp;exports.FADE_IN_OUT=$h;exports.FOOTER=$2;exports.GLOBAL_STYLES=H2;exports.GRID=R2;exports.GRID_ITEM=N2;exports.HEADER=P2;exports.HEADER_FOOTER_PAGE=I2;exports.HEADING=u2;exports.ICON=rp;exports.ILLUSTRATION=E2;exports.INLINE_EDIT_CONTROLS=d2;exports.INLINE_EDIT_FIELD=c2;exports.INLINE_EDIT_GROUP=qd;exports.INPUT_CHECKBOX=cp;exports.INPUT_CODE=_p;exports.INPUT_ERROR=hp;exports.INPUT_LABEL=gp;exports.INPUT_MULTISELECT=Ep;exports.INPUT_NUMBER=mp;exports.INPUT_RADIO_GROUP=wp;exports.INPUT_RADIO_OPTION=xp;exports.INPUT_SELECT=kp;exports.INPUT_TEXT=vp;exports.INPUT_TEXTAREA=bp;exports.INPUT_TIME=Dp;exports.InlineEditControlsCancelEvent=h2;exports.InlineEditControlsSaveEvent=p2;exports.InlineEditFieldBroadcastEvent=g2;exports.InlineEditFieldModeChangeEvent=v2;exports.InlineEditGroupModeChangeEvent=b2;exports.InputBase=ti;exports.InputSelectBase=Lr;exports.InputSelectQueryChangeEvent=Mp;exports.LABELED_INPUT=pp;exports.LINK=np;exports.LINK_BUTTON=ip;exports.LOADING_SPINNER=sp;exports.LOZENGE=Op;exports.MENU=Up;exports.MENU_ITEM=D0;exports.MODAL=Xp;exports.MODAL_BODY=t2;exports.MODAL_FOOTER=r2;exports.MODAL_HEADER=e2;exports.MenuBlurEvent=Vp;exports.MenuItemSelectEvent=Wp;exports.MenuSelectEvent=Gp;exports.ModalCloseEvent=Vd;exports.PAGE_HEADER=D2;exports.PAGINATION=Jd;exports.PAPER=Z2;exports.POPOVER=Dd;exports.POPOVER_LISTENABLE_EVENT_TYPES=E0;exports.POPOVER_ROLES=Rd;exports.POPOVER_TRIGGERS=jh;exports.PURE_POPOVER=qh;exports.RECORD_FIELD=dp;exports.RECORD_FIELD_LABEL=fp;exports.RECORD_ROW=x2;exports.RECORD_ROW_LABEL=z2;exports.RESPONSIVE_COLUMNS=A2;exports.ROW=op;exports.SEARCH_MESSAGE_ID=Uu;exports.SELECT_ALL_ID=vi;exports.SIDE_NAVIGATION=C2;exports.SIDE_NAVIGATION_ITEM=y2;exports.SPACING_BASE=Nd;exports.SPLIT_ROW=Qp;exports.TAB=_2;exports.TABS=M2;exports.TAB_BAR=S2;exports.TAB_PANEL=L2;exports.TIME_FORMAT=Rp;exports.TIME_REGEX_12H=Bp;exports.TIME_REGEX_24H=Hp;exports.TIME_REGEX_LOOSE=Np;exports.TOOLTIP=Kh;exports.TabSelectedEvent=X0;exports.TooltipTheme=Yh;exports.VIRTUAL_LIST=Zd;exports.VirtualListUpdateEvent=Sp;exports.alertTypes=J8;exports.buttonTypes=J3;exports.click=T0;exports.columnSpans=o1;exports.dropdownMenuSizes=qb;exports.focus=fl;exports.hover=wd;exports.iconNames=R3;exports.icons=Hd;exports.illustrationNames=tm;exports.illustrations=ef;exports.inlineEditControlsModes=f2;exports.inlineEditModes=u8;exports.inputSizes=a7;exports.labelPositions=l7;exports.linkButtonElementTypes=W3;exports.linkTypes=V3;exports.lozengeColors=u9;exports.lozengeSizes=d9;exports.lozengeThemes=c9;exports.menuSizes=Zp;exports.modalSizes=Qb;exports.radioLayouts=F7;exports.resetLinkStyle=Fd;exports.spacing=ep;exports.spacingLevels=ju;exports.syntaxes=q7;exports.timeSuffixes=Ab;exports.transformIcon=tp;