@skedulo/breeze-ui 0.3.2 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/breeze-ui.cjs CHANGED
@@ -2,23 +2,23 @@
2
2
  * @license
3
3
  * Copyright 2019 Google LLC
4
4
  * SPDX-License-Identifier: BSD-3-Clause
5
- */const v1=window,Id=v1.ShadowRoot&&(v1.ShadyCSS===void 0||v1.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Dd=Symbol(),sp=new WeakMap;class Wp{constructor(n,o,c){if(this._$cssResult$=!0,c!==Dd)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=n,this.t=o}get styleSheet(){let n=this.o;const o=this.t;if(Id&&n===void 0){const c=o!==void 0&&o.length===1;c&&(n=sp.get(o)),n===void 0&&((this.o=n=new CSSStyleSheet).replaceSync(this.cssText),c&&sp.set(o,n))}return n}toString(){return this.cssText}}const Zs=r=>new Wp(typeof r=="string"?r:r+"",void 0,Dd),ge=(r,...n)=>{const o=r.length===1?r[0]:n.reduce((c,f,p)=>c+(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.")})(f)+r[p+1],r[0]);return new Wp(o,r,Dd)},_g=(r,n)=>{Id?r.adoptedStyleSheets=n.map(o=>o instanceof CSSStyleSheet?o:o.styleSheet):n.forEach(o=>{const c=document.createElement("style"),f=v1.litNonce;f!==void 0&&c.setAttribute("nonce",f),c.textContent=o.cssText,r.appendChild(c)})},lp=Id?r=>r:r=>r instanceof CSSStyleSheet?(n=>{let o="";for(const c of n.cssRules)o+=c.cssText;return Zs(o)})(r):r;/**
5
+ */const v1=window,Dd=v1.ShadowRoot&&(v1.ShadyCSS===void 0||v1.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Rd=Symbol(),sp=new WeakMap;class Wp{constructor(n,o,c){if(this._$cssResult$=!0,c!==Rd)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=n,this.t=o}get styleSheet(){let n=this.o;const o=this.t;if(Dd&&n===void 0){const c=o!==void 0&&o.length===1;c&&(n=sp.get(o)),n===void 0&&((this.o=n=new CSSStyleSheet).replaceSync(this.cssText),c&&sp.set(o,n))}return n}toString(){return this.cssText}}const Zs=r=>new Wp(typeof r=="string"?r:r+"",void 0,Rd),ge=(r,...n)=>{const o=r.length===1?r[0]:n.reduce((c,f,p)=>c+(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.")})(f)+r[p+1],r[0]);return new Wp(o,r,Rd)},_g=(r,n)=>{Dd?r.adoptedStyleSheets=n.map(o=>o instanceof CSSStyleSheet?o:o.styleSheet):n.forEach(o=>{const c=document.createElement("style"),f=v1.litNonce;f!==void 0&&c.setAttribute("nonce",f),c.textContent=o.cssText,r.appendChild(c)})},lp=Dd?r=>r:r=>r instanceof CSSStyleSheet?(n=>{let o="";for(const c of n.cssRules)o+=c.cssText;return Zs(o)})(r):r;/**
6
6
  * @license
7
7
  * Copyright 2017 Google LLC
8
8
  * SPDX-License-Identifier: BSD-3-Clause
9
- */var ad;const w1=window,up=w1.trustedTypes,Sg=up?up.emptyScript:"",cp=w1.reactiveElementPolyfillSupport,yd={toAttribute(r,n){switch(n){case Boolean:r=r?Sg:null;break;case Object:case Array:r=r==null?r:JSON.stringify(r)}return r},fromAttribute(r,n){let o=r;switch(n){case Boolean:o=r!==null;break;case Number:o=r===null?null:Number(r);break;case Object:case Array:try{o=JSON.parse(r)}catch{o=null}}return o}},Up=(r,n)=>n!==r&&(n==n||r==r),sd={attribute:!0,type:String,converter:yd,reflect:!1,hasChanged:Up};class Ql extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this.u()}static addInitializer(n){var o;this.finalize(),((o=this.h)!==null&&o!==void 0?o:this.h=[]).push(n)}static get observedAttributes(){this.finalize();const n=[];return this.elementProperties.forEach((o,c)=>{const f=this._$Ep(c,o);f!==void 0&&(this._$Ev.set(f,c),n.push(f))}),n}static createProperty(n,o=sd){if(o.state&&(o.attribute=!1),this.finalize(),this.elementProperties.set(n,o),!o.noAccessor&&!this.prototype.hasOwnProperty(n)){const c=typeof n=="symbol"?Symbol():"__"+n,f=this.getPropertyDescriptor(n,c,o);f!==void 0&&Object.defineProperty(this.prototype,n,f)}}static getPropertyDescriptor(n,o,c){return{get(){return this[o]},set(f){const p=this[n];this[o]=f,this.requestUpdate(n,p,c)},configurable:!0,enumerable:!0}}static getPropertyOptions(n){return this.elementProperties.get(n)||sd}static finalize(){if(this.hasOwnProperty("finalized"))return!1;this.finalized=!0;const n=Object.getPrototypeOf(this);if(n.finalize(),n.h!==void 0&&(this.h=[...n.h]),this.elementProperties=new Map(n.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const o=this.properties,c=[...Object.getOwnPropertyNames(o),...Object.getOwnPropertySymbols(o)];for(const f of c)this.createProperty(f,o[f])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(n){const o=[];if(Array.isArray(n)){const c=new Set(n.flat(1/0).reverse());for(const f of c)o.unshift(lp(f))}else n!==void 0&&o.push(lp(n));return o}static _$Ep(n,o){const c=o.attribute;return c===!1?void 0:typeof c=="string"?c:typeof n=="string"?n.toLowerCase():void 0}u(){var n;this._$E_=new Promise(o=>this.enableUpdating=o),this._$AL=new Map,this._$Eg(),this.requestUpdate(),(n=this.constructor.h)===null||n===void 0||n.forEach(o=>o(this))}addController(n){var o,c;((o=this._$ES)!==null&&o!==void 0?o:this._$ES=[]).push(n),this.renderRoot!==void 0&&this.isConnected&&((c=n.hostConnected)===null||c===void 0||c.call(n))}removeController(n){var o;(o=this._$ES)===null||o===void 0||o.splice(this._$ES.indexOf(n)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach((n,o)=>{this.hasOwnProperty(o)&&(this._$Ei.set(o,this[o]),delete this[o])})}createRenderRoot(){var n;const o=(n=this.shadowRoot)!==null&&n!==void 0?n:this.attachShadow(this.constructor.shadowRootOptions);return _g(o,this.constructor.elementStyles),o}connectedCallback(){var n;this.renderRoot===void 0&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(n=this._$ES)===null||n===void 0||n.forEach(o=>{var c;return(c=o.hostConnected)===null||c===void 0?void 0:c.call(o)})}enableUpdating(n){}disconnectedCallback(){var n;(n=this._$ES)===null||n===void 0||n.forEach(o=>{var c;return(c=o.hostDisconnected)===null||c===void 0?void 0:c.call(o)})}attributeChangedCallback(n,o,c){this._$AK(n,c)}_$EO(n,o,c=sd){var f;const p=this.constructor._$Ep(n,c);if(p!==void 0&&c.reflect===!0){const b=(((f=c.converter)===null||f===void 0?void 0:f.toAttribute)!==void 0?c.converter:yd).toAttribute(o,c.type);this._$El=n,b==null?this.removeAttribute(p):this.setAttribute(p,b),this._$El=null}}_$AK(n,o){var c;const f=this.constructor,p=f._$Ev.get(n);if(p!==void 0&&this._$El!==p){const b=f.getPropertyOptions(p),M=typeof b.converter=="function"?{fromAttribute:b.converter}:((c=b.converter)===null||c===void 0?void 0:c.fromAttribute)!==void 0?b.converter:yd;this._$El=p,this[p]=M.fromAttribute(o,b.type),this._$El=null}}requestUpdate(n,o,c){let f=!0;n!==void 0&&(((c=c||this.constructor.getPropertyOptions(n)).hasChanged||Up)(this[n],o)?(this._$AL.has(n)||this._$AL.set(n,o),c.reflect===!0&&this._$El!==n&&(this._$EC===void 0&&(this._$EC=new Map),this._$EC.set(n,c))):f=!1),!this.isUpdatePending&&f&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(o){Promise.reject(o)}const n=this.scheduleUpdate();return n!=null&&await n,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var n;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach((f,p)=>this[p]=f),this._$Ei=void 0);let o=!1;const c=this._$AL;try{o=this.shouldUpdate(c),o?(this.willUpdate(c),(n=this._$ES)===null||n===void 0||n.forEach(f=>{var p;return(p=f.hostUpdate)===null||p===void 0?void 0:p.call(f)}),this.update(c)):this._$Ek()}catch(f){throw o=!1,this._$Ek(),f}o&&this._$AE(c)}willUpdate(n){}_$AE(n){var o;(o=this._$ES)===null||o===void 0||o.forEach(c=>{var f;return(f=c.hostUpdated)===null||f===void 0?void 0:f.call(c)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(n)),this.updated(n)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(n){return!0}update(n){this._$EC!==void 0&&(this._$EC.forEach((o,c)=>this._$EO(c,this[c],o)),this._$EC=void 0),this._$Ek()}updated(n){}firstUpdated(n){}}Ql.finalized=!0,Ql.elementProperties=new Map,Ql.elementStyles=[],Ql.shadowRootOptions={mode:"open"},cp==null||cp({ReactiveElement:Ql}),((ad=w1.reactiveElementVersions)!==null&&ad!==void 0?ad:w1.reactiveElementVersions=[]).push("1.4.2");/**
9
+ */var sd;const w1=window,up=w1.trustedTypes,Sg=up?up.emptyScript:"",cp=w1.reactiveElementPolyfillSupport,Cd={toAttribute(r,n){switch(n){case Boolean:r=r?Sg:null;break;case Object:case Array:r=r==null?r:JSON.stringify(r)}return r},fromAttribute(r,n){let o=r;switch(n){case Boolean:o=r!==null;break;case Number:o=r===null?null:Number(r);break;case Object:case Array:try{o=JSON.parse(r)}catch{o=null}}return o}},Up=(r,n)=>n!==r&&(n==n||r==r),ld={attribute:!0,type:String,converter:Cd,reflect:!1,hasChanged:Up};class Ql extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this.u()}static addInitializer(n){var o;this.finalize(),((o=this.h)!==null&&o!==void 0?o:this.h=[]).push(n)}static get observedAttributes(){this.finalize();const n=[];return this.elementProperties.forEach((o,c)=>{const f=this._$Ep(c,o);f!==void 0&&(this._$Ev.set(f,c),n.push(f))}),n}static createProperty(n,o=ld){if(o.state&&(o.attribute=!1),this.finalize(),this.elementProperties.set(n,o),!o.noAccessor&&!this.prototype.hasOwnProperty(n)){const c=typeof n=="symbol"?Symbol():"__"+n,f=this.getPropertyDescriptor(n,c,o);f!==void 0&&Object.defineProperty(this.prototype,n,f)}}static getPropertyDescriptor(n,o,c){return{get(){return this[o]},set(f){const p=this[n];this[o]=f,this.requestUpdate(n,p,c)},configurable:!0,enumerable:!0}}static getPropertyOptions(n){return this.elementProperties.get(n)||ld}static finalize(){if(this.hasOwnProperty("finalized"))return!1;this.finalized=!0;const n=Object.getPrototypeOf(this);if(n.finalize(),n.h!==void 0&&(this.h=[...n.h]),this.elementProperties=new Map(n.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const o=this.properties,c=[...Object.getOwnPropertyNames(o),...Object.getOwnPropertySymbols(o)];for(const f of c)this.createProperty(f,o[f])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(n){const o=[];if(Array.isArray(n)){const c=new Set(n.flat(1/0).reverse());for(const f of c)o.unshift(lp(f))}else n!==void 0&&o.push(lp(n));return o}static _$Ep(n,o){const c=o.attribute;return c===!1?void 0:typeof c=="string"?c:typeof n=="string"?n.toLowerCase():void 0}u(){var n;this._$E_=new Promise(o=>this.enableUpdating=o),this._$AL=new Map,this._$Eg(),this.requestUpdate(),(n=this.constructor.h)===null||n===void 0||n.forEach(o=>o(this))}addController(n){var o,c;((o=this._$ES)!==null&&o!==void 0?o:this._$ES=[]).push(n),this.renderRoot!==void 0&&this.isConnected&&((c=n.hostConnected)===null||c===void 0||c.call(n))}removeController(n){var o;(o=this._$ES)===null||o===void 0||o.splice(this._$ES.indexOf(n)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach((n,o)=>{this.hasOwnProperty(o)&&(this._$Ei.set(o,this[o]),delete this[o])})}createRenderRoot(){var n;const o=(n=this.shadowRoot)!==null&&n!==void 0?n:this.attachShadow(this.constructor.shadowRootOptions);return _g(o,this.constructor.elementStyles),o}connectedCallback(){var n;this.renderRoot===void 0&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(n=this._$ES)===null||n===void 0||n.forEach(o=>{var c;return(c=o.hostConnected)===null||c===void 0?void 0:c.call(o)})}enableUpdating(n){}disconnectedCallback(){var n;(n=this._$ES)===null||n===void 0||n.forEach(o=>{var c;return(c=o.hostDisconnected)===null||c===void 0?void 0:c.call(o)})}attributeChangedCallback(n,o,c){this._$AK(n,c)}_$EO(n,o,c=ld){var f;const p=this.constructor._$Ep(n,c);if(p!==void 0&&c.reflect===!0){const b=(((f=c.converter)===null||f===void 0?void 0:f.toAttribute)!==void 0?c.converter:Cd).toAttribute(o,c.type);this._$El=n,b==null?this.removeAttribute(p):this.setAttribute(p,b),this._$El=null}}_$AK(n,o){var c;const f=this.constructor,p=f._$Ev.get(n);if(p!==void 0&&this._$El!==p){const b=f.getPropertyOptions(p),k=typeof b.converter=="function"?{fromAttribute:b.converter}:((c=b.converter)===null||c===void 0?void 0:c.fromAttribute)!==void 0?b.converter:Cd;this._$El=p,this[p]=k.fromAttribute(o,b.type),this._$El=null}}requestUpdate(n,o,c){let f=!0;n!==void 0&&(((c=c||this.constructor.getPropertyOptions(n)).hasChanged||Up)(this[n],o)?(this._$AL.has(n)||this._$AL.set(n,o),c.reflect===!0&&this._$El!==n&&(this._$EC===void 0&&(this._$EC=new Map),this._$EC.set(n,c))):f=!1),!this.isUpdatePending&&f&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(o){Promise.reject(o)}const n=this.scheduleUpdate();return n!=null&&await n,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var n;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach((f,p)=>this[p]=f),this._$Ei=void 0);let o=!1;const c=this._$AL;try{o=this.shouldUpdate(c),o?(this.willUpdate(c),(n=this._$ES)===null||n===void 0||n.forEach(f=>{var p;return(p=f.hostUpdate)===null||p===void 0?void 0:p.call(f)}),this.update(c)):this._$Ek()}catch(f){throw o=!1,this._$Ek(),f}o&&this._$AE(c)}willUpdate(n){}_$AE(n){var o;(o=this._$ES)===null||o===void 0||o.forEach(c=>{var f;return(f=c.hostUpdated)===null||f===void 0?void 0:f.call(c)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(n)),this.updated(n)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(n){return!0}update(n){this._$EC!==void 0&&(this._$EC.forEach((o,c)=>this._$EO(c,this[c],o)),this._$EC=void 0),this._$Ek()}updated(n){}firstUpdated(n){}}Ql.finalized=!0,Ql.elementProperties=new Map,Ql.elementStyles=[],Ql.shadowRootOptions={mode:"open"},cp==null||cp({ReactiveElement:Ql}),((sd=w1.reactiveElementVersions)!==null&&sd!==void 0?sd:w1.reactiveElementVersions=[]).push("1.4.2");/**
10
10
  * @license
11
11
  * Copyright 2017 Google LLC
12
12
  * SPDX-License-Identifier: BSD-3-Clause
13
- */var ld;const x1=window,au=x1.trustedTypes,fp=au?au.createPolicy("lit-html",{createHTML:r=>r}):void 0,ia=`lit$${(Math.random()+"").slice(9)}$`,Rd="?"+ia,kg=`<${Rd}>`,su=document,z0=(r="")=>su.createComment(r),L0=r=>r===null||typeof r!="object"&&typeof r!="function",Yp=Array.isArray,Zp=r=>Yp(r)||typeof(r==null?void 0:r[Symbol.iterator])=="function",d0=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,dp=/-->/g,hp=/>/g,Hs=RegExp(`>|[
13
+ */var ud;const x1=window,au=x1.trustedTypes,fp=au?au.createPolicy("lit-html",{createHTML:r=>r}):void 0,ia=`lit$${(Math.random()+"").slice(9)}$`,Nd="?"+ia,Mg=`<${Nd}>`,su=document,z0=(r="")=>su.createComment(r),L0=r=>r===null||typeof r!="object"&&typeof r!="function",Yp=Array.isArray,Zp=r=>Yp(r)||typeof(r==null?void 0:r[Symbol.iterator])=="function",d0=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,dp=/-->/g,hp=/>/g,Hs=RegExp(`>|[
14
14
  \f\r](?:([^\\s"'>=/]+)([
15
15
  \f\r]*=[
16
16
  \f\r]*(?:[^
17
- \f\r"'\`<>=]|("|')|))|$)`,"g"),pp=/'/g,gp=/"/g,Vp=/^(?:script|style|textarea|title)$/i,Gp=r=>(n,...o)=>({_$litType$:r,strings:n,values:o}),ee=Gp(1),G=Gp(2),yo=Symbol.for("lit-noChange"),Cr=Symbol.for("lit-nothing"),vp=new WeakMap,ru=su.createTreeWalker(su,129,null,!1),qp=(r,n)=>{const o=r.length-1,c=[];let f,p=n===2?"<svg>":"",b=d0;for(let S=0;S<o;S++){const O=r[S];let I,U,q=-1,X=0;for(;X<O.length&&(b.lastIndex=X,U=b.exec(O),U!==null);)X=b.lastIndex,b===d0?U[1]==="!--"?b=dp:U[1]!==void 0?b=hp:U[2]!==void 0?(Vp.test(U[2])&&(f=RegExp("</"+U[2],"g")),b=Hs):U[3]!==void 0&&(b=Hs):b===Hs?U[0]===">"?(b=f!=null?f:d0,q=-1):U[1]===void 0?q=-2:(q=b.lastIndex-U[2].length,I=U[1],b=U[3]===void 0?Hs:U[3]==='"'?gp:pp):b===gp||b===pp?b=Hs:b===dp||b===hp?b=d0:(b=Hs,f=void 0);const ce=b===Hs&&r[S+1].startsWith("/>")?" ":"";p+=b===d0?O+kg:q>=0?(c.push(I),O.slice(0,q)+"$lit$"+O.slice(q)+ia+ce):O+ia+(q===-2?(c.push(void 0),S):ce)}const M=p+(r[o]||"<?>")+(n===2?"</svg>":"");if(!Array.isArray(r)||!r.hasOwnProperty("raw"))throw Error("invalid template strings array");return[fp!==void 0?fp.createHTML(M):M,c]};class _0{constructor({strings:n,_$litType$:o},c){let f;this.parts=[];let p=0,b=0;const M=n.length-1,S=this.parts,[O,I]=qp(n,o);if(this.el=_0.createElement(O,c),ru.currentNode=this.el.content,o===2){const U=this.el.content,q=U.firstChild;q.remove(),U.append(...q.childNodes)}for(;(f=ru.nextNode())!==null&&S.length<M;){if(f.nodeType===1){if(f.hasAttributes()){const U=[];for(const q of f.getAttributeNames())if(q.endsWith("$lit$")||q.startsWith(ia)){const X=I[b++];if(U.push(q),X!==void 0){const ce=f.getAttribute(X.toLowerCase()+"$lit$").split(ia),xe=/([.?@])?(.*)/.exec(X);S.push({type:1,index:p,name:xe[2],strings:ce,ctor:xe[1]==="."?Kp:xe[1]==="?"?Xp:xe[1]==="@"?Qp:A0})}else S.push({type:6,index:p})}for(const q of U)f.removeAttribute(q)}if(Vp.test(f.tagName)){const U=f.textContent.split(ia),q=U.length-1;if(q>0){f.textContent=au?au.emptyScript:"";for(let X=0;X<q;X++)f.append(U[X],z0()),ru.nextNode(),S.push({type:2,index:++p});f.append(U[q],z0())}}}else if(f.nodeType===8)if(f.data===Rd)S.push({type:2,index:p});else{let U=-1;for(;(U=f.data.indexOf(ia,U+1))!==-1;)S.push({type:7,index:p}),U+=ia.length-1}p++}}static createElement(n,o){const c=su.createElement("template");return c.innerHTML=n,c}}function qs(r,n,o=r,c){var f,p,b,M;if(n===yo)return n;let S=c!==void 0?(f=o._$Co)===null||f===void 0?void 0:f[c]:o._$Cl;const O=L0(n)?void 0:n._$litDirective$;return(S==null?void 0:S.constructor)!==O&&((p=S==null?void 0:S._$AO)===null||p===void 0||p.call(S,!1),O===void 0?S=void 0:(S=new O(r),S._$AT(r,o,c)),c!==void 0?((b=(M=o)._$Co)!==null&&b!==void 0?b:M._$Co=[])[c]=S:o._$Cl=S),S!==void 0&&(n=qs(r,S._$AS(r,n.values),S,c)),n}class jp{constructor(n,o){this.u=[],this._$AN=void 0,this._$AD=n,this._$AM=o}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}v(n){var o;const{el:{content:c},parts:f}=this._$AD,p=((o=n==null?void 0:n.creationScope)!==null&&o!==void 0?o:su).importNode(c,!0);ru.currentNode=p;let b=ru.nextNode(),M=0,S=0,O=f[0];for(;O!==void 0;){if(M===O.index){let I;O.type===2?I=new du(b,b.nextSibling,this,n):O.type===1?I=new O.ctor(b,O.name,O.strings,this,n):O.type===6&&(I=new Jp(b,this,n)),this.u.push(I),O=f[++S]}M!==(O==null?void 0:O.index)&&(b=ru.nextNode(),M++)}return p}p(n){let o=0;for(const c of this.u)c!==void 0&&(c.strings!==void 0?(c._$AI(n,c,o),o+=c.strings.length-2):c._$AI(n[o])),o++}}class du{constructor(n,o,c,f){var p;this.type=2,this._$AH=Cr,this._$AN=void 0,this._$AA=n,this._$AB=o,this._$AM=c,this.options=f,this._$Cm=(p=f==null?void 0:f.isConnected)===null||p===void 0||p}get _$AU(){var n,o;return(o=(n=this._$AM)===null||n===void 0?void 0:n._$AU)!==null&&o!==void 0?o:this._$Cm}get parentNode(){let n=this._$AA.parentNode;const o=this._$AM;return o!==void 0&&n.nodeType===11&&(n=o.parentNode),n}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(n,o=this){n=qs(this,n,o),L0(n)?n===Cr||n==null||n===""?(this._$AH!==Cr&&this._$AR(),this._$AH=Cr):n!==this._$AH&&n!==yo&&this.g(n):n._$litType$!==void 0?this.$(n):n.nodeType!==void 0?this.T(n):Zp(n)?this.k(n):this.g(n)}O(n,o=this._$AB){return this._$AA.parentNode.insertBefore(n,o)}T(n){this._$AH!==n&&(this._$AR(),this._$AH=this.O(n))}g(n){this._$AH!==Cr&&L0(this._$AH)?this._$AA.nextSibling.data=n:this.T(su.createTextNode(n)),this._$AH=n}$(n){var o;const{values:c,_$litType$:f}=n,p=typeof f=="number"?this._$AC(n):(f.el===void 0&&(f.el=_0.createElement(f.h,this.options)),f);if(((o=this._$AH)===null||o===void 0?void 0:o._$AD)===p)this._$AH.p(c);else{const b=new jp(p,this),M=b.v(this.options);b.p(c),this.T(M),this._$AH=b}}_$AC(n){let o=vp.get(n.strings);return o===void 0&&vp.set(n.strings,o=new _0(n)),o}k(n){Yp(this._$AH)||(this._$AH=[],this._$AR());const o=this._$AH;let c,f=0;for(const p of n)f===o.length?o.push(c=new du(this.O(z0()),this.O(z0()),this,this.options)):c=o[f],c._$AI(p),f++;f<o.length&&(this._$AR(c&&c._$AB.nextSibling,f),o.length=f)}_$AR(n=this._$AA.nextSibling,o){var c;for((c=this._$AP)===null||c===void 0||c.call(this,!1,!0,o);n&&n!==this._$AB;){const f=n.nextSibling;n.remove(),n=f}}setConnected(n){var o;this._$AM===void 0&&(this._$Cm=n,(o=this._$AP)===null||o===void 0||o.call(this,n))}}class A0{constructor(n,o,c,f,p){this.type=1,this._$AH=Cr,this._$AN=void 0,this.element=n,this.name=o,this._$AM=f,this.options=p,c.length>2||c[0]!==""||c[1]!==""?(this._$AH=Array(c.length-1).fill(new String),this.strings=c):this._$AH=Cr}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(n,o=this,c,f){const p=this.strings;let b=!1;if(p===void 0)n=qs(this,n,o,0),b=!L0(n)||n!==this._$AH&&n!==yo,b&&(this._$AH=n);else{const M=n;let S,O;for(n=p[0],S=0;S<p.length-1;S++)O=qs(this,M[c+S],o,S),O===yo&&(O=this._$AH[S]),b||(b=!L0(O)||O!==this._$AH[S]),O===Cr?n=Cr:n!==Cr&&(n+=(O!=null?O:"")+p[S+1]),this._$AH[S]=O}b&&!f&&this.j(n)}j(n){n===Cr?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,n!=null?n:"")}}class Kp extends A0{constructor(){super(...arguments),this.type=3}j(n){this.element[this.name]=n===Cr?void 0:n}}const Mg=au?au.emptyScript:"";class Xp extends A0{constructor(){super(...arguments),this.type=4}j(n){n&&n!==Cr?this.element.setAttribute(this.name,Mg):this.element.removeAttribute(this.name)}}class Qp extends A0{constructor(n,o,c,f,p){super(n,o,c,f,p),this.type=5}_$AI(n,o=this){var c;if((n=(c=qs(this,n,o,0))!==null&&c!==void 0?c:Cr)===yo)return;const f=this._$AH,p=n===Cr&&f!==Cr||n.capture!==f.capture||n.once!==f.once||n.passive!==f.passive,b=n!==Cr&&(f===Cr||p);p&&this.element.removeEventListener(this.name,this,f),b&&this.element.addEventListener(this.name,this,n),this._$AH=n}handleEvent(n){var o,c;typeof this._$AH=="function"?this._$AH.call((c=(o=this.options)===null||o===void 0?void 0:o.host)!==null&&c!==void 0?c:this.element,n):this._$AH.handleEvent(n)}}class Jp{constructor(n,o,c){this.element=n,this.type=6,this._$AN=void 0,this._$AM=o,this.options=c}get _$AU(){return this._$AM._$AU}_$AI(n){qs(this,n)}}const Og={P:"$lit$",A:ia,M:Rd,C:1,L:qp,R:jp,D:Zp,V:qs,I:du,H:A0,N:Xp,U:Qp,B:Kp,F:Jp},bp=x1.litHtmlPolyfillSupport;bp==null||bp(_0,du),((ld=x1.litHtmlVersions)!==null&&ld!==void 0?ld:x1.litHtmlVersions=[]).push("2.4.0");const e2=(r,n,o)=>{var c,f;const p=(c=o==null?void 0:o.renderBefore)!==null&&c!==void 0?c:n;let b=p._$litPart$;if(b===void 0){const M=(f=o==null?void 0:o.renderBefore)!==null&&f!==void 0?f:null;p._$litPart$=b=new du(n.insertBefore(z0(),M),M,void 0,o!=null?o:{})}return b._$AI(r),b};/**
17
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),pp=/'/g,gp=/"/g,Vp=/^(?:script|style|textarea|title)$/i,Gp=r=>(n,...o)=>({_$litType$:r,strings:n,values:o}),ee=Gp(1),G=Gp(2),yo=Symbol.for("lit-noChange"),Cr=Symbol.for("lit-nothing"),vp=new WeakMap,ru=su.createTreeWalker(su,129,null,!1),qp=(r,n)=>{const o=r.length-1,c=[];let f,p=n===2?"<svg>":"",b=d0;for(let S=0;S<o;S++){const O=r[S];let I,U,q=-1,X=0;for(;X<O.length&&(b.lastIndex=X,U=b.exec(O),U!==null);)X=b.lastIndex,b===d0?U[1]==="!--"?b=dp:U[1]!==void 0?b=hp:U[2]!==void 0?(Vp.test(U[2])&&(f=RegExp("</"+U[2],"g")),b=Hs):U[3]!==void 0&&(b=Hs):b===Hs?U[0]===">"?(b=f!=null?f:d0,q=-1):U[1]===void 0?q=-2:(q=b.lastIndex-U[2].length,I=U[1],b=U[3]===void 0?Hs:U[3]==='"'?gp:pp):b===gp||b===pp?b=Hs:b===dp||b===hp?b=d0:(b=Hs,f=void 0);const ce=b===Hs&&r[S+1].startsWith("/>")?" ":"";p+=b===d0?O+Mg:q>=0?(c.push(I),O.slice(0,q)+"$lit$"+O.slice(q)+ia+ce):O+ia+(q===-2?(c.push(void 0),S):ce)}const k=p+(r[o]||"<?>")+(n===2?"</svg>":"");if(!Array.isArray(r)||!r.hasOwnProperty("raw"))throw Error("invalid template strings array");return[fp!==void 0?fp.createHTML(k):k,c]};class _0{constructor({strings:n,_$litType$:o},c){let f;this.parts=[];let p=0,b=0;const k=n.length-1,S=this.parts,[O,I]=qp(n,o);if(this.el=_0.createElement(O,c),ru.currentNode=this.el.content,o===2){const U=this.el.content,q=U.firstChild;q.remove(),U.append(...q.childNodes)}for(;(f=ru.nextNode())!==null&&S.length<k;){if(f.nodeType===1){if(f.hasAttributes()){const U=[];for(const q of f.getAttributeNames())if(q.endsWith("$lit$")||q.startsWith(ia)){const X=I[b++];if(U.push(q),X!==void 0){const ce=f.getAttribute(X.toLowerCase()+"$lit$").split(ia),xe=/([.?@])?(.*)/.exec(X);S.push({type:1,index:p,name:xe[2],strings:ce,ctor:xe[1]==="."?Kp:xe[1]==="?"?Xp:xe[1]==="@"?Qp:A0})}else S.push({type:6,index:p})}for(const q of U)f.removeAttribute(q)}if(Vp.test(f.tagName)){const U=f.textContent.split(ia),q=U.length-1;if(q>0){f.textContent=au?au.emptyScript:"";for(let X=0;X<q;X++)f.append(U[X],z0()),ru.nextNode(),S.push({type:2,index:++p});f.append(U[q],z0())}}}else if(f.nodeType===8)if(f.data===Nd)S.push({type:2,index:p});else{let U=-1;for(;(U=f.data.indexOf(ia,U+1))!==-1;)S.push({type:7,index:p}),U+=ia.length-1}p++}}static createElement(n,o){const c=su.createElement("template");return c.innerHTML=n,c}}function qs(r,n,o=r,c){var f,p,b,k;if(n===yo)return n;let S=c!==void 0?(f=o._$Co)===null||f===void 0?void 0:f[c]:o._$Cl;const O=L0(n)?void 0:n._$litDirective$;return(S==null?void 0:S.constructor)!==O&&((p=S==null?void 0:S._$AO)===null||p===void 0||p.call(S,!1),O===void 0?S=void 0:(S=new O(r),S._$AT(r,o,c)),c!==void 0?((b=(k=o)._$Co)!==null&&b!==void 0?b:k._$Co=[])[c]=S:o._$Cl=S),S!==void 0&&(n=qs(r,S._$AS(r,n.values),S,c)),n}class jp{constructor(n,o){this.u=[],this._$AN=void 0,this._$AD=n,this._$AM=o}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}v(n){var o;const{el:{content:c},parts:f}=this._$AD,p=((o=n==null?void 0:n.creationScope)!==null&&o!==void 0?o:su).importNode(c,!0);ru.currentNode=p;let b=ru.nextNode(),k=0,S=0,O=f[0];for(;O!==void 0;){if(k===O.index){let I;O.type===2?I=new du(b,b.nextSibling,this,n):O.type===1?I=new O.ctor(b,O.name,O.strings,this,n):O.type===6&&(I=new Jp(b,this,n)),this.u.push(I),O=f[++S]}k!==(O==null?void 0:O.index)&&(b=ru.nextNode(),k++)}return p}p(n){let o=0;for(const c of this.u)c!==void 0&&(c.strings!==void 0?(c._$AI(n,c,o),o+=c.strings.length-2):c._$AI(n[o])),o++}}class du{constructor(n,o,c,f){var p;this.type=2,this._$AH=Cr,this._$AN=void 0,this._$AA=n,this._$AB=o,this._$AM=c,this.options=f,this._$Cm=(p=f==null?void 0:f.isConnected)===null||p===void 0||p}get _$AU(){var n,o;return(o=(n=this._$AM)===null||n===void 0?void 0:n._$AU)!==null&&o!==void 0?o:this._$Cm}get parentNode(){let n=this._$AA.parentNode;const o=this._$AM;return o!==void 0&&n.nodeType===11&&(n=o.parentNode),n}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(n,o=this){n=qs(this,n,o),L0(n)?n===Cr||n==null||n===""?(this._$AH!==Cr&&this._$AR(),this._$AH=Cr):n!==this._$AH&&n!==yo&&this.g(n):n._$litType$!==void 0?this.$(n):n.nodeType!==void 0?this.T(n):Zp(n)?this.k(n):this.g(n)}O(n,o=this._$AB){return this._$AA.parentNode.insertBefore(n,o)}T(n){this._$AH!==n&&(this._$AR(),this._$AH=this.O(n))}g(n){this._$AH!==Cr&&L0(this._$AH)?this._$AA.nextSibling.data=n:this.T(su.createTextNode(n)),this._$AH=n}$(n){var o;const{values:c,_$litType$:f}=n,p=typeof f=="number"?this._$AC(n):(f.el===void 0&&(f.el=_0.createElement(f.h,this.options)),f);if(((o=this._$AH)===null||o===void 0?void 0:o._$AD)===p)this._$AH.p(c);else{const b=new jp(p,this),k=b.v(this.options);b.p(c),this.T(k),this._$AH=b}}_$AC(n){let o=vp.get(n.strings);return o===void 0&&vp.set(n.strings,o=new _0(n)),o}k(n){Yp(this._$AH)||(this._$AH=[],this._$AR());const o=this._$AH;let c,f=0;for(const p of n)f===o.length?o.push(c=new du(this.O(z0()),this.O(z0()),this,this.options)):c=o[f],c._$AI(p),f++;f<o.length&&(this._$AR(c&&c._$AB.nextSibling,f),o.length=f)}_$AR(n=this._$AA.nextSibling,o){var c;for((c=this._$AP)===null||c===void 0||c.call(this,!1,!0,o);n&&n!==this._$AB;){const f=n.nextSibling;n.remove(),n=f}}setConnected(n){var o;this._$AM===void 0&&(this._$Cm=n,(o=this._$AP)===null||o===void 0||o.call(this,n))}}class A0{constructor(n,o,c,f,p){this.type=1,this._$AH=Cr,this._$AN=void 0,this.element=n,this.name=o,this._$AM=f,this.options=p,c.length>2||c[0]!==""||c[1]!==""?(this._$AH=Array(c.length-1).fill(new String),this.strings=c):this._$AH=Cr}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(n,o=this,c,f){const p=this.strings;let b=!1;if(p===void 0)n=qs(this,n,o,0),b=!L0(n)||n!==this._$AH&&n!==yo,b&&(this._$AH=n);else{const k=n;let S,O;for(n=p[0],S=0;S<p.length-1;S++)O=qs(this,k[c+S],o,S),O===yo&&(O=this._$AH[S]),b||(b=!L0(O)||O!==this._$AH[S]),O===Cr?n=Cr:n!==Cr&&(n+=(O!=null?O:"")+p[S+1]),this._$AH[S]=O}b&&!f&&this.j(n)}j(n){n===Cr?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,n!=null?n:"")}}class Kp extends A0{constructor(){super(...arguments),this.type=3}j(n){this.element[this.name]=n===Cr?void 0:n}}const kg=au?au.emptyScript:"";class Xp extends A0{constructor(){super(...arguments),this.type=4}j(n){n&&n!==Cr?this.element.setAttribute(this.name,kg):this.element.removeAttribute(this.name)}}class Qp extends A0{constructor(n,o,c,f,p){super(n,o,c,f,p),this.type=5}_$AI(n,o=this){var c;if((n=(c=qs(this,n,o,0))!==null&&c!==void 0?c:Cr)===yo)return;const f=this._$AH,p=n===Cr&&f!==Cr||n.capture!==f.capture||n.once!==f.once||n.passive!==f.passive,b=n!==Cr&&(f===Cr||p);p&&this.element.removeEventListener(this.name,this,f),b&&this.element.addEventListener(this.name,this,n),this._$AH=n}handleEvent(n){var o,c;typeof this._$AH=="function"?this._$AH.call((c=(o=this.options)===null||o===void 0?void 0:o.host)!==null&&c!==void 0?c:this.element,n):this._$AH.handleEvent(n)}}class Jp{constructor(n,o,c){this.element=n,this.type=6,this._$AN=void 0,this._$AM=o,this.options=c}get _$AU(){return this._$AM._$AU}_$AI(n){qs(this,n)}}const Og={P:"$lit$",A:ia,M:Nd,C:1,L:qp,R:jp,D:Zp,V:qs,I:du,H:A0,N:Xp,U:Qp,B:Kp,F:Jp},bp=x1.litHtmlPolyfillSupport;bp==null||bp(_0,du),((ud=x1.litHtmlVersions)!==null&&ud!==void 0?ud:x1.litHtmlVersions=[]).push("2.4.0");const e2=(r,n,o)=>{var c,f;const p=(c=o==null?void 0:o.renderBefore)!==null&&c!==void 0?c:n;let b=p._$litPart$;if(b===void 0){const k=(f=o==null?void 0:o.renderBefore)!==null&&f!==void 0?f:null;p._$litPart$=b=new du(n.insertBefore(z0(),k),k,void 0,o!=null?o:{})}return b._$AI(r),b};/**
18
18
  * @license
19
19
  * Copyright 2017 Google LLC
20
20
  * SPDX-License-Identifier: BSD-3-Clause
21
- */var ud,cd;class Ue extends Ql{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var n,o;const c=super.createRenderRoot();return(n=(o=this.renderOptions).renderBefore)!==null&&n!==void 0||(o.renderBefore=c.firstChild),c}update(n){const o=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(n),this._$Do=e2(o,this.renderRoot,this.renderOptions)}connectedCallback(){var n;super.connectedCallback(),(n=this._$Do)===null||n===void 0||n.setConnected(!0)}disconnectedCallback(){var n;super.disconnectedCallback(),(n=this._$Do)===null||n===void 0||n.setConnected(!1)}render(){return yo}}Ue.finalized=!0,Ue._$litElement$=!0,(ud=globalThis.litElementHydrateSupport)===null||ud===void 0||ud.call(globalThis,{LitElement:Ue});const mp=globalThis.litElementPolyfillSupport;mp==null||mp({LitElement:Ue});((cd=globalThis.litElementVersions)!==null&&cd!==void 0?cd:globalThis.litElementVersions=[]).push("3.2.2");/**
21
+ */var cd,fd;class Ue extends Ql{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var n,o;const c=super.createRenderRoot();return(n=(o=this.renderOptions).renderBefore)!==null&&n!==void 0||(o.renderBefore=c.firstChild),c}update(n){const o=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(n),this._$Do=e2(o,this.renderRoot,this.renderOptions)}connectedCallback(){var n;super.connectedCallback(),(n=this._$Do)===null||n===void 0||n.setConnected(!0)}disconnectedCallback(){var n;super.disconnectedCallback(),(n=this._$Do)===null||n===void 0||n.setConnected(!1)}render(){return yo}}Ue.finalized=!0,Ue._$litElement$=!0,(cd=globalThis.litElementHydrateSupport)===null||cd===void 0||cd.call(globalThis,{LitElement:Ue});const mp=globalThis.litElementPolyfillSupport;mp==null||mp({LitElement:Ue});((fd=globalThis.litElementVersions)!==null&&fd!==void 0?fd:globalThis.litElementVersions=[]).push("3.2.2");/**
22
22
  * @license
23
23
  * Copyright 2017 Google LLC
24
24
  * SPDX-License-Identifier: BSD-3-Clause
@@ -34,19 +34,19 @@
34
34
  * @license
35
35
  * Copyright 2017 Google LLC
36
36
  * SPDX-License-Identifier: BSD-3-Clause
37
- */const Nd=({finisher:r,descriptor:n})=>(o,c)=>{var f;if(c===void 0){const p=(f=o.originalKey)!==null&&f!==void 0?f:o.key,b=n!=null?{kind:"method",placement:"prototype",key:p,descriptor:n(o.key)}:{...o,key:p};return r!=null&&(b.finisher=function(M){r(M,p)}),b}{const p=o.constructor;n!==void 0&&Object.defineProperty(o,c,n(c)),r==null||r(p,c)}};/**
37
+ */const $d=({finisher:r,descriptor:n})=>(o,c)=>{var f;if(c===void 0){const p=(f=o.originalKey)!==null&&f!==void 0?f:o.key,b=n!=null?{kind:"method",placement:"prototype",key:p,descriptor:n(o.key)}:{...o,key:p};return r!=null&&(b.finisher=function(k){r(k,p)}),b}{const p=o.constructor;n!==void 0&&Object.defineProperty(o,c,n(c)),r==null||r(p,c)}};/**
38
38
  * @license
39
39
  * Copyright 2017 Google LLC
40
40
  * SPDX-License-Identifier: BSD-3-Clause
41
- */function Pg(r){return Nd({descriptor:n=>({async get(){var o;return await this.updateComplete,(o=this.renderRoot)===null||o===void 0?void 0:o.querySelector(r)},enumerable:!0,configurable:!0})})}/**
41
+ */function Pg(r){return $d({descriptor:n=>({async get(){var o;return await this.updateComplete,(o=this.renderRoot)===null||o===void 0?void 0:o.querySelector(r)},enumerable:!0,configurable:!0})})}/**
42
42
  * @license
43
43
  * Copyright 2021 Google LLC
44
44
  * SPDX-License-Identifier: BSD-3-Clause
45
- */var fd;const Ag=((fd=window.HTMLSlotElement)===null||fd===void 0?void 0:fd.prototype.assignedElements)!=null?(r,n)=>r.assignedElements(n):(r,n)=>r.assignedNodes(n).filter(o=>o.nodeType===Node.ELEMENT_NODE);function Eg(r){const{slot:n,selector:o}=r!=null?r:{};return Nd({descriptor:c=>({get(){var f;const p="slot"+(n?`[name=${n}]`:":not([name])"),b=(f=this.renderRoot)===null||f===void 0?void 0:f.querySelector(p),M=b!=null?Ag(b,r):[];return o?M.filter(S=>S.matches(o)):M},enumerable:!0,configurable:!0})})}/**
45
+ */var dd;const Ag=((dd=window.HTMLSlotElement)===null||dd===void 0?void 0:dd.prototype.assignedElements)!=null?(r,n)=>r.assignedElements(n):(r,n)=>r.assignedNodes(n).filter(o=>o.nodeType===Node.ELEMENT_NODE);function Eg(r){const{slot:n,selector:o}=r!=null?r:{};return $d({descriptor:c=>({get(){var f;const p="slot"+(n?`[name=${n}]`:":not([name])"),b=(f=this.renderRoot)===null||f===void 0?void 0:f.querySelector(p),k=b!=null?Ag(b,r):[];return o?k.filter(S=>S.matches(o)):k},enumerable:!0,configurable:!0})})}/**
46
46
  * @license
47
47
  * Copyright 2017 Google LLC
48
48
  * SPDX-License-Identifier: BSD-3-Clause
49
- */function t2(r,n,o){let c,f=r;return typeof r=="object"?(f=r.slot,c=r):c={flatten:n},o?Eg({slot:f,flatten:n,selector:o}):Nd({descriptor:p=>({get(){var b,M;const S="slot"+(f?`[name=${f}]`:":not([name])"),O=(b=this.renderRoot)===null||b===void 0?void 0:b.querySelector(S);return(M=O==null?void 0:O.assignedNodes(c))!==null&&M!==void 0?M:[]},enumerable:!0,configurable:!0})})}const Ee=r=>`brz-${r.toLowerCase()}`;var Ig=Object.defineProperty,Dg=Object.getOwnPropertyDescriptor,$d=(r,n,o,c)=>{for(var f=c>1?void 0:c?Dg(n,o):n,p=r.length-1,b;p>=0;p--)(b=r[p])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&Ig(n,o,f),f};const r2=Ee("fade-in-out");exports.FadeInOut=class extends Ue{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(r){r.target===this&&(this.removed=!this.shown)}render(){return this.removed&&!this.shown?ee``:ee`<slot></slot>`}};exports.FadeInOut.styles=ge`
49
+ */function t2(r,n,o){let c,f=r;return typeof r=="object"?(f=r.slot,c=r):c={flatten:n},o?Eg({slot:f,flatten:n,selector:o}):$d({descriptor:p=>({get(){var b,k;const S="slot"+(f?`[name=${f}]`:":not([name])"),O=(b=this.renderRoot)===null||b===void 0?void 0:b.querySelector(S);return(k=O==null?void 0:O.assignedNodes(c))!==null&&k!==void 0?k:[]},enumerable:!0,configurable:!0})})}const Ee=r=>`brz-${r.toLowerCase()}`;var Ig=Object.defineProperty,Dg=Object.getOwnPropertyDescriptor,Hd=(r,n,o,c)=>{for(var f=c>1?void 0:c?Dg(n,o):n,p=r.length-1,b;p>=0;p--)(b=r[p])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&Ig(n,o,f),f};const r2=Ee("fade-in-out");exports.FadeInOut=class extends Ue{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(r){r.target===this&&(this.removed=!this.shown)}render(){return this.removed&&!this.shown?ee``:ee`<slot></slot>`}};exports.FadeInOut.styles=ge`
50
50
  :host {
51
51
  opacity: 0;
52
52
  animation: fade-in 0.3s ease;
@@ -63,7 +63,7 @@
63
63
  opacity: 1;
64
64
  }
65
65
  }
66
- `;$d([F({type:Boolean})],exports.FadeInOut.prototype,"shown",2);$d([F({attribute:!1})],exports.FadeInOut.prototype,"removed",2);exports.FadeInOut=$d([Q(r2)],exports.FadeInOut);/**
66
+ `;Hd([F({type:Boolean})],exports.FadeInOut.prototype,"shown",2);Hd([F({attribute:!1})],exports.FadeInOut.prototype,"removed",2);exports.FadeInOut=Hd([Q(r2)],exports.FadeInOut);/**
67
67
  * @license
68
68
  * Copyright 2017 Google LLC
69
69
  * SPDX-License-Identifier: BSD-3-Clause
@@ -116,11 +116,11 @@
116
116
  }
117
117
 
118
118
  ${E0(r)}
119
- `;var In="top",bi="bottom",mi="right",Dn="left",R1="auto",I0=[In,bi,mi,Dn],lu="start",S0="end",Ng="clippingParents",i2="viewport",h0="popper",$g="reference",yp=I0.reduce(function(r,n){return r.concat([n+"-"+lu,n+"-"+S0])},[]),o2=[].concat(I0,[R1]).reduce(function(r,n){return r.concat([n,n+"-"+lu,n+"-"+S0])},[]),Hg="beforeRead",Bg="read",Fg="afterRead",Wg="beforeMain",Ug="main",Yg="afterMain",Zg="beforeWrite",Vg="write",Gg="afterWrite",Cd=[Hg,Bg,Fg,Wg,Ug,Yg,Zg,Vg,Gg];function Co(r){return r?(r.nodeName||"").toLowerCase():null}function yi(r){if(r==null)return window;if(r.toString()!=="[object Window]"){var n=r.ownerDocument;return n&&n.defaultView||window}return r}function js(r){var n=yi(r).Element;return r instanceof n||r instanceof Element}function Jn(r){var n=yi(r).HTMLElement;return r instanceof n||r instanceof HTMLElement}function Hd(r){if(typeof ShadowRoot=="undefined")return!1;var n=yi(r).ShadowRoot;return r instanceof n||r instanceof ShadowRoot}function qg(r){var n=r.state;Object.keys(n.elements).forEach(function(o){var c=n.styles[o]||{},f=n.attributes[o]||{},p=n.elements[o];!Jn(p)||!Co(p)||(Object.assign(p.style,c),Object.keys(f).forEach(function(b){var M=f[b];M===!1?p.removeAttribute(b):p.setAttribute(b,M===!0?"":M)}))})}function jg(r){var n=r.state,o={popper:{position:n.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(n.elements.popper.style,o.popper),n.styles=o,n.elements.arrow&&Object.assign(n.elements.arrow.style,o.arrow),function(){Object.keys(n.elements).forEach(function(c){var f=n.elements[c],p=n.attributes[c]||{},b=Object.keys(n.styles.hasOwnProperty(c)?n.styles[c]:o[c]),M=b.reduce(function(S,O){return S[O]="",S},{});!Jn(f)||!Co(f)||(Object.assign(f.style,M),Object.keys(p).forEach(function(S){f.removeAttribute(S)}))})}}const Kg={name:"applyStyles",enabled:!0,phase:"write",fn:qg,effect:jg,requires:["computeStyles"]};function $i(r){return r.split("-")[0]}var Vs=Math.max,z1=Math.min,uu=Math.round;function wd(){var r=navigator.userAgentData;return r!=null&&r.brands?r.brands.map(function(n){return n.brand+"/"+n.version}).join(" "):navigator.userAgent}function a2(){return!/^((?!chrome|android).)*safari/i.test(wd())}function cu(r,n,o){n===void 0&&(n=!1),o===void 0&&(o=!1);var c=r.getBoundingClientRect(),f=1,p=1;n&&Jn(r)&&(f=r.offsetWidth>0&&uu(c.width)/r.offsetWidth||1,p=r.offsetHeight>0&&uu(c.height)/r.offsetHeight||1);var b=js(r)?yi(r):window,M=b.visualViewport,S=!a2()&&o,O=(c.left+(S&&M?M.offsetLeft:0))/f,I=(c.top+(S&&M?M.offsetTop:0))/p,U=c.width/f,q=c.height/p;return{width:U,height:q,top:I,right:O+U,bottom:I+q,left:O,x:O,y:I}}function Bd(r){var n=cu(r),o=r.offsetWidth,c=r.offsetHeight;return Math.abs(n.width-o)<=1&&(o=n.width),Math.abs(n.height-c)<=1&&(c=n.height),{x:r.offsetLeft,y:r.offsetTop,width:o,height:c}}function s2(r,n){var o=n.getRootNode&&n.getRootNode();if(r.contains(n))return!0;if(o&&Hd(o)){var c=n;do{if(c&&r.isSameNode(c))return!0;c=c.parentNode||c.host}while(c)}return!1}function Hi(r){return yi(r).getComputedStyle(r)}function Xg(r){return["table","td","th"].indexOf(Co(r))>=0}function Qa(r){return((js(r)?r.ownerDocument:r.document)||window.document).documentElement}function N1(r){return Co(r)==="html"?r:r.assignedSlot||r.parentNode||(Hd(r)?r.host:null)||Qa(r)}function Cp(r){return!Jn(r)||Hi(r).position==="fixed"?null:r.offsetParent}function Qg(r){var n=/firefox/i.test(wd()),o=/Trident/i.test(wd());if(o&&Jn(r)){var c=Hi(r);if(c.position==="fixed")return null}var f=N1(r);for(Hd(f)&&(f=f.host);Jn(f)&&["html","body"].indexOf(Co(f))<0;){var p=Hi(f);if(p.transform!=="none"||p.perspective!=="none"||p.contain==="paint"||["transform","perspective"].indexOf(p.willChange)!==-1||n&&p.willChange==="filter"||n&&p.filter&&p.filter!=="none")return f;f=f.parentNode}return null}function D0(r){for(var n=yi(r),o=Cp(r);o&&Xg(o)&&Hi(o).position==="static";)o=Cp(o);return o&&(Co(o)==="html"||Co(o)==="body"&&Hi(o).position==="static")?n:o||Qg(r)||n}function Fd(r){return["top","bottom"].indexOf(r)>=0?"x":"y"}function m0(r,n,o){return Vs(r,z1(n,o))}function Jg(r,n,o){var c=m0(r,n,o);return c>o?o:c}function l2(){return{top:0,right:0,bottom:0,left:0}}function u2(r){return Object.assign({},l2(),r)}function c2(r,n){return n.reduce(function(o,c){return o[c]=r,o},{})}var ev=function(n,o){return n=typeof n=="function"?n(Object.assign({},o.rects,{placement:o.placement})):n,u2(typeof n!="number"?n:c2(n,I0))};function tv(r){var n,o=r.state,c=r.name,f=r.options,p=o.elements.arrow,b=o.modifiersData.popperOffsets,M=$i(o.placement),S=Fd(M),O=[Dn,mi].indexOf(M)>=0,I=O?"height":"width";if(!(!p||!b)){var U=ev(f.padding,o),q=Bd(p),X=S==="y"?In:Dn,ce=S==="y"?bi:mi,xe=o.rects.reference[I]+o.rects.reference[S]-b[S]-o.rects.popper[I],ye=b[S]-o.rects.reference[S],Ae=D0(p),Ie=Ae?S==="y"?Ae.clientHeight||0:Ae.clientWidth||0:0,pe=xe/2-ye/2,he=U[X],Te=Ie-q[I]-U[ce],He=Ie/2-q[I]/2+pe,Ye=m0(he,He,Te),et=S;o.modifiersData[c]=(n={},n[et]=Ye,n.centerOffset=Ye-He,n)}}function rv(r){var n=r.state,o=r.options,c=o.element,f=c===void 0?"[data-popper-arrow]":c;if(f!=null&&!(typeof f=="string"&&(f=n.elements.popper.querySelector(f),!f))){if({}.NODE_ENV!=="production"&&(Jn(f)||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(" "))),!s2(n.elements.popper,f)){({}).NODE_ENV!=="production"&&console.error(['Popper: "arrow" modifier\'s `element` must be a child of the popper',"element."].join(" "));return}n.elements.arrow=f}}const nv={name:"arrow",enabled:!0,phase:"main",fn:tv,effect:rv,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function fu(r){return r.split("-")[1]}var iv={top:"auto",right:"auto",bottom:"auto",left:"auto"};function ov(r){var n=r.x,o=r.y,c=window,f=c.devicePixelRatio||1;return{x:uu(n*f)/f||0,y:uu(o*f)/f||0}}function wp(r){var n,o=r.popper,c=r.popperRect,f=r.placement,p=r.variation,b=r.offsets,M=r.position,S=r.gpuAcceleration,O=r.adaptive,I=r.roundOffsets,U=r.isFixed,q=b.x,X=q===void 0?0:q,ce=b.y,xe=ce===void 0?0:ce,ye=typeof I=="function"?I({x:X,y:xe}):{x:X,y:xe};X=ye.x,xe=ye.y;var Ae=b.hasOwnProperty("x"),Ie=b.hasOwnProperty("y"),pe=Dn,he=In,Te=window;if(O){var He=D0(o),Ye="clientHeight",et="clientWidth";if(He===yi(o)&&(He=Qa(o),Hi(He).position!=="static"&&M==="absolute"&&(Ye="scrollHeight",et="scrollWidth")),He=He,f===In||(f===Dn||f===mi)&&p===S0){he=bi;var nt=U&&He===Te&&Te.visualViewport?Te.visualViewport.height:He[Ye];xe-=nt-c.height,xe*=S?1:-1}if(f===Dn||(f===In||f===bi)&&p===S0){pe=mi;var ve=U&&He===Te&&Te.visualViewport?Te.visualViewport.width:He[et];X-=ve-c.width,X*=S?1:-1}}var Ce=Object.assign({position:M},O&&iv),it=I===!0?ov({x:X,y:xe}):{x:X,y:xe};if(X=it.x,xe=it.y,S){var W;return Object.assign({},Ce,(W={},W[he]=Ie?"0":"",W[pe]=Ae?"0":"",W.transform=(Te.devicePixelRatio||1)<=1?"translate("+X+"px, "+xe+"px)":"translate3d("+X+"px, "+xe+"px, 0)",W))}return Object.assign({},Ce,(n={},n[he]=Ie?xe+"px":"",n[pe]=Ae?X+"px":"",n.transform="",n))}function av(r){var n=r.state,o=r.options,c=o.gpuAcceleration,f=c===void 0?!0:c,p=o.adaptive,b=p===void 0?!0:p,M=o.roundOffsets,S=M===void 0?!0:M;if({}.NODE_ENV!=="production"){var O=Hi(n.elements.popper).transitionProperty||"";b&&["transform","top","right","bottom","left"].some(function(U){return O.indexOf(U)>=0})&&console.warn(["Popper: Detected CSS transitions on at least one of the following",'CSS properties: "transform", "top", "right", "bottom", "left".',`
119
+ `;var Dn="top",bi="bottom",mi="right",Rn="left",R1="auto",I0=[Dn,bi,mi,Rn],lu="start",S0="end",Ng="clippingParents",i2="viewport",h0="popper",$g="reference",yp=I0.reduce(function(r,n){return r.concat([n+"-"+lu,n+"-"+S0])},[]),o2=[].concat(I0,[R1]).reduce(function(r,n){return r.concat([n,n+"-"+lu,n+"-"+S0])},[]),Hg="beforeRead",Bg="read",Fg="afterRead",Wg="beforeMain",Ug="main",Yg="afterMain",Zg="beforeWrite",Vg="write",Gg="afterWrite",wd=[Hg,Bg,Fg,Wg,Ug,Yg,Zg,Vg,Gg];function Co(r){return r?(r.nodeName||"").toLowerCase():null}function yi(r){if(r==null)return window;if(r.toString()!=="[object Window]"){var n=r.ownerDocument;return n&&n.defaultView||window}return r}function js(r){var n=yi(r).Element;return r instanceof n||r instanceof Element}function Jn(r){var n=yi(r).HTMLElement;return r instanceof n||r instanceof HTMLElement}function Bd(r){if(typeof ShadowRoot=="undefined")return!1;var n=yi(r).ShadowRoot;return r instanceof n||r instanceof ShadowRoot}function qg(r){var n=r.state;Object.keys(n.elements).forEach(function(o){var c=n.styles[o]||{},f=n.attributes[o]||{},p=n.elements[o];!Jn(p)||!Co(p)||(Object.assign(p.style,c),Object.keys(f).forEach(function(b){var k=f[b];k===!1?p.removeAttribute(b):p.setAttribute(b,k===!0?"":k)}))})}function jg(r){var n=r.state,o={popper:{position:n.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(n.elements.popper.style,o.popper),n.styles=o,n.elements.arrow&&Object.assign(n.elements.arrow.style,o.arrow),function(){Object.keys(n.elements).forEach(function(c){var f=n.elements[c],p=n.attributes[c]||{},b=Object.keys(n.styles.hasOwnProperty(c)?n.styles[c]:o[c]),k=b.reduce(function(S,O){return S[O]="",S},{});!Jn(f)||!Co(f)||(Object.assign(f.style,k),Object.keys(p).forEach(function(S){f.removeAttribute(S)}))})}}const Kg={name:"applyStyles",enabled:!0,phase:"write",fn:qg,effect:jg,requires:["computeStyles"]};function $i(r){return r.split("-")[0]}var Vs=Math.max,z1=Math.min,uu=Math.round;function xd(){var r=navigator.userAgentData;return r!=null&&r.brands?r.brands.map(function(n){return n.brand+"/"+n.version}).join(" "):navigator.userAgent}function a2(){return!/^((?!chrome|android).)*safari/i.test(xd())}function cu(r,n,o){n===void 0&&(n=!1),o===void 0&&(o=!1);var c=r.getBoundingClientRect(),f=1,p=1;n&&Jn(r)&&(f=r.offsetWidth>0&&uu(c.width)/r.offsetWidth||1,p=r.offsetHeight>0&&uu(c.height)/r.offsetHeight||1);var b=js(r)?yi(r):window,k=b.visualViewport,S=!a2()&&o,O=(c.left+(S&&k?k.offsetLeft:0))/f,I=(c.top+(S&&k?k.offsetTop:0))/p,U=c.width/f,q=c.height/p;return{width:U,height:q,top:I,right:O+U,bottom:I+q,left:O,x:O,y:I}}function Fd(r){var n=cu(r),o=r.offsetWidth,c=r.offsetHeight;return Math.abs(n.width-o)<=1&&(o=n.width),Math.abs(n.height-c)<=1&&(c=n.height),{x:r.offsetLeft,y:r.offsetTop,width:o,height:c}}function s2(r,n){var o=n.getRootNode&&n.getRootNode();if(r.contains(n))return!0;if(o&&Bd(o)){var c=n;do{if(c&&r.isSameNode(c))return!0;c=c.parentNode||c.host}while(c)}return!1}function Hi(r){return yi(r).getComputedStyle(r)}function Xg(r){return["table","td","th"].indexOf(Co(r))>=0}function Qa(r){return((js(r)?r.ownerDocument:r.document)||window.document).documentElement}function N1(r){return Co(r)==="html"?r:r.assignedSlot||r.parentNode||(Bd(r)?r.host:null)||Qa(r)}function Cp(r){return!Jn(r)||Hi(r).position==="fixed"?null:r.offsetParent}function Qg(r){var n=/firefox/i.test(xd()),o=/Trident/i.test(xd());if(o&&Jn(r)){var c=Hi(r);if(c.position==="fixed")return null}var f=N1(r);for(Bd(f)&&(f=f.host);Jn(f)&&["html","body"].indexOf(Co(f))<0;){var p=Hi(f);if(p.transform!=="none"||p.perspective!=="none"||p.contain==="paint"||["transform","perspective"].indexOf(p.willChange)!==-1||n&&p.willChange==="filter"||n&&p.filter&&p.filter!=="none")return f;f=f.parentNode}return null}function D0(r){for(var n=yi(r),o=Cp(r);o&&Xg(o)&&Hi(o).position==="static";)o=Cp(o);return o&&(Co(o)==="html"||Co(o)==="body"&&Hi(o).position==="static")?n:o||Qg(r)||n}function Wd(r){return["top","bottom"].indexOf(r)>=0?"x":"y"}function m0(r,n,o){return Vs(r,z1(n,o))}function Jg(r,n,o){var c=m0(r,n,o);return c>o?o:c}function l2(){return{top:0,right:0,bottom:0,left:0}}function u2(r){return Object.assign({},l2(),r)}function c2(r,n){return n.reduce(function(o,c){return o[c]=r,o},{})}var ev=function(n,o){return n=typeof n=="function"?n(Object.assign({},o.rects,{placement:o.placement})):n,u2(typeof n!="number"?n:c2(n,I0))};function tv(r){var n,o=r.state,c=r.name,f=r.options,p=o.elements.arrow,b=o.modifiersData.popperOffsets,k=$i(o.placement),S=Wd(k),O=[Rn,mi].indexOf(k)>=0,I=O?"height":"width";if(!(!p||!b)){var U=ev(f.padding,o),q=Fd(p),X=S==="y"?Dn:Rn,ce=S==="y"?bi:mi,xe=o.rects.reference[I]+o.rects.reference[S]-b[S]-o.rects.popper[I],ye=b[S]-o.rects.reference[S],Ae=D0(p),Ie=Ae?S==="y"?Ae.clientHeight||0:Ae.clientWidth||0:0,pe=xe/2-ye/2,he=U[X],Te=Ie-q[I]-U[ce],He=Ie/2-q[I]/2+pe,Ye=m0(he,He,Te),et=S;o.modifiersData[c]=(n={},n[et]=Ye,n.centerOffset=Ye-He,n)}}function rv(r){var n=r.state,o=r.options,c=o.element,f=c===void 0?"[data-popper-arrow]":c;if(f!=null&&!(typeof f=="string"&&(f=n.elements.popper.querySelector(f),!f))){if({}.NODE_ENV!=="production"&&(Jn(f)||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(" "))),!s2(n.elements.popper,f)){({}).NODE_ENV!=="production"&&console.error(['Popper: "arrow" modifier\'s `element` must be a child of the popper',"element."].join(" "));return}n.elements.arrow=f}}const nv={name:"arrow",enabled:!0,phase:"main",fn:tv,effect:rv,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function fu(r){return r.split("-")[1]}var iv={top:"auto",right:"auto",bottom:"auto",left:"auto"};function ov(r){var n=r.x,o=r.y,c=window,f=c.devicePixelRatio||1;return{x:uu(n*f)/f||0,y:uu(o*f)/f||0}}function wp(r){var n,o=r.popper,c=r.popperRect,f=r.placement,p=r.variation,b=r.offsets,k=r.position,S=r.gpuAcceleration,O=r.adaptive,I=r.roundOffsets,U=r.isFixed,q=b.x,X=q===void 0?0:q,ce=b.y,xe=ce===void 0?0:ce,ye=typeof I=="function"?I({x:X,y:xe}):{x:X,y:xe};X=ye.x,xe=ye.y;var Ae=b.hasOwnProperty("x"),Ie=b.hasOwnProperty("y"),pe=Rn,he=Dn,Te=window;if(O){var He=D0(o),Ye="clientHeight",et="clientWidth";if(He===yi(o)&&(He=Qa(o),Hi(He).position!=="static"&&k==="absolute"&&(Ye="scrollHeight",et="scrollWidth")),He=He,f===Dn||(f===Rn||f===mi)&&p===S0){he=bi;var nt=U&&He===Te&&Te.visualViewport?Te.visualViewport.height:He[Ye];xe-=nt-c.height,xe*=S?1:-1}if(f===Rn||(f===Dn||f===bi)&&p===S0){pe=mi;var ve=U&&He===Te&&Te.visualViewport?Te.visualViewport.width:He[et];X-=ve-c.width,X*=S?1:-1}}var Ce=Object.assign({position:k},O&&iv),it=I===!0?ov({x:X,y:xe}):{x:X,y:xe};if(X=it.x,xe=it.y,S){var W;return Object.assign({},Ce,(W={},W[he]=Ie?"0":"",W[pe]=Ae?"0":"",W.transform=(Te.devicePixelRatio||1)<=1?"translate("+X+"px, "+xe+"px)":"translate3d("+X+"px, "+xe+"px, 0)",W))}return Object.assign({},Ce,(n={},n[he]=Ie?xe+"px":"",n[pe]=Ae?X+"px":"",n.transform="",n))}function av(r){var n=r.state,o=r.options,c=o.gpuAcceleration,f=c===void 0?!0:c,p=o.adaptive,b=p===void 0?!0:p,k=o.roundOffsets,S=k===void 0?!0:k;if({}.NODE_ENV!=="production"){var O=Hi(n.elements.popper).transitionProperty||"";b&&["transform","top","right","bottom","left"].some(function(U){return O.indexOf(U)>=0})&&console.warn(["Popper: Detected CSS transitions on at least one of the following",'CSS properties: "transform", "top", "right", "bottom", "left".',`
120
120
 
121
121
  `,'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.",`
122
122
 
123
- `,"We recommend using the popper element as a wrapper around an inner","element that can have any CSS property transitioned for animations."].join(" "))}var I={placement:$i(n.placement),variation:fu(n.placement),popper:n.elements.popper,popperRect:n.rects.popper,gpuAcceleration:f,isFixed:n.options.strategy==="fixed"};n.modifiersData.popperOffsets!=null&&(n.styles.popper=Object.assign({},n.styles.popper,wp(Object.assign({},I,{offsets:n.modifiersData.popperOffsets,position:n.options.strategy,adaptive:b,roundOffsets:S})))),n.modifiersData.arrow!=null&&(n.styles.arrow=Object.assign({},n.styles.arrow,wp(Object.assign({},I,{offsets:n.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:S})))),n.attributes.popper=Object.assign({},n.attributes.popper,{"data-popper-placement":n.placement})}const sv={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:av,data:{}};var h1={passive:!0};function lv(r){var n=r.state,o=r.instance,c=r.options,f=c.scroll,p=f===void 0?!0:f,b=c.resize,M=b===void 0?!0:b,S=yi(n.elements.popper),O=[].concat(n.scrollParents.reference,n.scrollParents.popper);return p&&O.forEach(function(I){I.addEventListener("scroll",o.update,h1)}),M&&S.addEventListener("resize",o.update,h1),function(){p&&O.forEach(function(I){I.removeEventListener("scroll",o.update,h1)}),M&&S.removeEventListener("resize",o.update,h1)}}const uv={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:lv,data:{}};var cv={left:"right",right:"left",bottom:"top",top:"bottom"};function b1(r){return r.replace(/left|right|bottom|top/g,function(n){return cv[n]})}var fv={start:"end",end:"start"};function xp(r){return r.replace(/start|end/g,function(n){return fv[n]})}function Wd(r){var n=yi(r),o=n.pageXOffset,c=n.pageYOffset;return{scrollLeft:o,scrollTop:c}}function Ud(r){return cu(Qa(r)).left+Wd(r).scrollLeft}function dv(r,n){var o=yi(r),c=Qa(r),f=o.visualViewport,p=c.clientWidth,b=c.clientHeight,M=0,S=0;if(f){p=f.width,b=f.height;var O=a2();(O||!O&&n==="fixed")&&(M=f.offsetLeft,S=f.offsetTop)}return{width:p,height:b,x:M+Ud(r),y:S}}function hv(r){var n,o=Qa(r),c=Wd(r),f=(n=r.ownerDocument)==null?void 0:n.body,p=Vs(o.scrollWidth,o.clientWidth,f?f.scrollWidth:0,f?f.clientWidth:0),b=Vs(o.scrollHeight,o.clientHeight,f?f.scrollHeight:0,f?f.clientHeight:0),M=-c.scrollLeft+Ud(r),S=-c.scrollTop;return Hi(f||o).direction==="rtl"&&(M+=Vs(o.clientWidth,f?f.clientWidth:0)-p),{width:p,height:b,x:M,y:S}}function Yd(r){var n=Hi(r),o=n.overflow,c=n.overflowX,f=n.overflowY;return/auto|scroll|overlay|hidden/.test(o+f+c)}function f2(r){return["html","body","#document"].indexOf(Co(r))>=0?r.ownerDocument.body:Jn(r)&&Yd(r)?r:f2(N1(r))}function y0(r,n){var o;n===void 0&&(n=[]);var c=f2(r),f=c===((o=r.ownerDocument)==null?void 0:o.body),p=yi(c),b=f?[p].concat(p.visualViewport||[],Yd(c)?c:[]):c,M=n.concat(b);return f?M:M.concat(y0(N1(b)))}function xd(r){return Object.assign({},r,{left:r.x,top:r.y,right:r.x+r.width,bottom:r.y+r.height})}function pv(r,n){var o=cu(r,!1,n==="fixed");return o.top=o.top+r.clientTop,o.left=o.left+r.clientLeft,o.bottom=o.top+r.clientHeight,o.right=o.left+r.clientWidth,o.width=r.clientWidth,o.height=r.clientHeight,o.x=o.left,o.y=o.top,o}function zp(r,n,o){return n===i2?xd(dv(r,o)):js(n)?pv(n,o):xd(hv(Qa(r)))}function gv(r){var n=y0(N1(r)),o=["absolute","fixed"].indexOf(Hi(r).position)>=0,c=o&&Jn(r)?D0(r):r;return js(c)?n.filter(function(f){return js(f)&&s2(f,c)&&Co(f)!=="body"}):[]}function vv(r,n,o,c){var f=n==="clippingParents"?gv(r):[].concat(n),p=[].concat(f,[o]),b=p[0],M=p.reduce(function(S,O){var I=zp(r,O,c);return S.top=Vs(I.top,S.top),S.right=z1(I.right,S.right),S.bottom=z1(I.bottom,S.bottom),S.left=Vs(I.left,S.left),S},zp(r,b,c));return M.width=M.right-M.left,M.height=M.bottom-M.top,M.x=M.left,M.y=M.top,M}function d2(r){var n=r.reference,o=r.element,c=r.placement,f=c?$i(c):null,p=c?fu(c):null,b=n.x+n.width/2-o.width/2,M=n.y+n.height/2-o.height/2,S;switch(f){case In:S={x:b,y:n.y-o.height};break;case bi:S={x:b,y:n.y+n.height};break;case mi:S={x:n.x+n.width,y:M};break;case Dn:S={x:n.x-o.width,y:M};break;default:S={x:n.x,y:n.y}}var O=f?Fd(f):null;if(O!=null){var I=O==="y"?"height":"width";switch(p){case lu:S[O]=S[O]-(n[I]/2-o[I]/2);break;case S0:S[O]=S[O]+(n[I]/2-o[I]/2);break}}return S}function k0(r,n){n===void 0&&(n={});var o=n,c=o.placement,f=c===void 0?r.placement:c,p=o.strategy,b=p===void 0?r.strategy:p,M=o.boundary,S=M===void 0?Ng:M,O=o.rootBoundary,I=O===void 0?i2:O,U=o.elementContext,q=U===void 0?h0:U,X=o.altBoundary,ce=X===void 0?!1:X,xe=o.padding,ye=xe===void 0?0:xe,Ae=u2(typeof ye!="number"?ye:c2(ye,I0)),Ie=q===h0?$g:h0,pe=r.rects.popper,he=r.elements[ce?Ie:q],Te=vv(js(he)?he:he.contextElement||Qa(r.elements.popper),S,I,b),He=cu(r.elements.reference),Ye=d2({reference:He,element:pe,strategy:"absolute",placement:f}),et=xd(Object.assign({},pe,Ye)),nt=q===h0?et:He,ve={top:Te.top-nt.top+Ae.top,bottom:nt.bottom-Te.bottom+Ae.bottom,left:Te.left-nt.left+Ae.left,right:nt.right-Te.right+Ae.right},Ce=r.modifiersData.offset;if(q===h0&&Ce){var it=Ce[f];Object.keys(ve).forEach(function(W){var E=[mi,bi].indexOf(W)>=0?1:-1,T=[In,bi].indexOf(W)>=0?"y":"x";ve[W]+=it[T]*E})}return ve}function bv(r,n){n===void 0&&(n={});var o=n,c=o.placement,f=o.boundary,p=o.rootBoundary,b=o.padding,M=o.flipVariations,S=o.allowedAutoPlacements,O=S===void 0?o2:S,I=fu(c),U=I?M?yp:yp.filter(function(ce){return fu(ce)===I}):I0,q=U.filter(function(ce){return O.indexOf(ce)>=0});q.length===0&&(q=U,{}.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 X=q.reduce(function(ce,xe){return ce[xe]=k0(r,{placement:xe,boundary:f,rootBoundary:p,padding:b})[$i(xe)],ce},{});return Object.keys(X).sort(function(ce,xe){return X[ce]-X[xe]})}function mv(r){if($i(r)===R1)return[];var n=b1(r);return[xp(r),n,xp(n)]}function yv(r){var n=r.state,o=r.options,c=r.name;if(!n.modifiersData[c]._skip){for(var f=o.mainAxis,p=f===void 0?!0:f,b=o.altAxis,M=b===void 0?!0:b,S=o.fallbackPlacements,O=o.padding,I=o.boundary,U=o.rootBoundary,q=o.altBoundary,X=o.flipVariations,ce=X===void 0?!0:X,xe=o.allowedAutoPlacements,ye=n.options.placement,Ae=$i(ye),Ie=Ae===ye,pe=S||(Ie||!ce?[b1(ye)]:mv(ye)),he=[ye].concat(pe).reduce(function(Ft,ut){return Ft.concat($i(ut)===R1?bv(n,{placement:ut,boundary:I,rootBoundary:U,padding:O,flipVariations:ce,allowedAutoPlacements:xe}):ut)},[]),Te=n.rects.reference,He=n.rects.popper,Ye=new Map,et=!0,nt=he[0],ve=0;ve<he.length;ve++){var Ce=he[ve],it=$i(Ce),W=fu(Ce)===lu,E=[In,bi].indexOf(it)>=0,T=E?"width":"height",ne=k0(n,{placement:Ce,boundary:I,rootBoundary:U,altBoundary:q,padding:O}),be=E?W?mi:Dn:W?bi:In;Te[T]>He[T]&&(be=b1(be));var ot=b1(be),At=[];if(p&&At.push(ne[it]<=0),M&&At.push(ne[be]<=0,ne[ot]<=0),At.every(function(Ft){return Ft})){nt=Ce,et=!1;break}Ye.set(Ce,At)}if(et)for(var sr=ce?3:1,Bt=function(ut){var _e=he.find(function(Fe){var Ze=Ye.get(Fe);if(Ze)return Ze.slice(0,ut).every(function(at){return at})});if(_e)return nt=_e,"break"},dn=sr;dn>0;dn--){var er=Bt(dn);if(er==="break")break}n.placement!==nt&&(n.modifiersData[c]._skip=!0,n.placement=nt,n.reset=!0)}}const Cv={name:"flip",enabled:!0,phase:"main",fn:yv,requiresIfExists:["offset"],data:{_skip:!1}};function Lp(r,n,o){return o===void 0&&(o={x:0,y:0}),{top:r.top-n.height-o.y,right:r.right-n.width+o.x,bottom:r.bottom-n.height+o.y,left:r.left-n.width-o.x}}function _p(r){return[In,mi,bi,Dn].some(function(n){return r[n]>=0})}function wv(r){var n=r.state,o=r.name,c=n.rects.reference,f=n.rects.popper,p=n.modifiersData.preventOverflow,b=k0(n,{elementContext:"reference"}),M=k0(n,{altBoundary:!0}),S=Lp(b,c),O=Lp(M,f,p),I=_p(S),U=_p(O);n.modifiersData[o]={referenceClippingOffsets:S,popperEscapeOffsets:O,isReferenceHidden:I,hasPopperEscaped:U},n.attributes.popper=Object.assign({},n.attributes.popper,{"data-popper-reference-hidden":I,"data-popper-escaped":U})}const xv={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:wv};function zv(r,n,o){var c=$i(r),f=[Dn,In].indexOf(c)>=0?-1:1,p=typeof o=="function"?o(Object.assign({},n,{placement:r})):o,b=p[0],M=p[1];return b=b||0,M=(M||0)*f,[Dn,mi].indexOf(c)>=0?{x:M,y:b}:{x:b,y:M}}function Lv(r){var n=r.state,o=r.options,c=r.name,f=o.offset,p=f===void 0?[0,0]:f,b=o2.reduce(function(I,U){return I[U]=zv(U,n.rects,p),I},{}),M=b[n.placement],S=M.x,O=M.y;n.modifiersData.popperOffsets!=null&&(n.modifiersData.popperOffsets.x+=S,n.modifiersData.popperOffsets.y+=O),n.modifiersData[c]=b}const _v={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Lv};function Sv(r){var n=r.state,o=r.name;n.modifiersData[o]=d2({reference:n.rects.reference,element:n.rects.popper,strategy:"absolute",placement:n.placement})}const kv={name:"popperOffsets",enabled:!0,phase:"read",fn:Sv,data:{}};function Mv(r){return r==="x"?"y":"x"}function Ov(r){var n=r.state,o=r.options,c=r.name,f=o.mainAxis,p=f===void 0?!0:f,b=o.altAxis,M=b===void 0?!1:b,S=o.boundary,O=o.rootBoundary,I=o.altBoundary,U=o.padding,q=o.tether,X=q===void 0?!0:q,ce=o.tetherOffset,xe=ce===void 0?0:ce,ye=k0(n,{boundary:S,rootBoundary:O,padding:U,altBoundary:I}),Ae=$i(n.placement),Ie=fu(n.placement),pe=!Ie,he=Fd(Ae),Te=Mv(he),He=n.modifiersData.popperOffsets,Ye=n.rects.reference,et=n.rects.popper,nt=typeof xe=="function"?xe(Object.assign({},n.rects,{placement:n.placement})):xe,ve=typeof nt=="number"?{mainAxis:nt,altAxis:nt}:Object.assign({mainAxis:0,altAxis:0},nt),Ce=n.modifiersData.offset?n.modifiersData.offset[n.placement]:null,it={x:0,y:0};if(!!He){if(p){var W,E=he==="y"?In:Dn,T=he==="y"?bi:mi,ne=he==="y"?"height":"width",be=He[he],ot=be+ye[E],At=be-ye[T],sr=X?-et[ne]/2:0,Bt=Ie===lu?Ye[ne]:et[ne],dn=Ie===lu?-et[ne]:-Ye[ne],er=n.elements.arrow,Ft=X&&er?Bd(er):{width:0,height:0},ut=n.modifiersData["arrow#persistent"]?n.modifiersData["arrow#persistent"].padding:l2(),_e=ut[E],Fe=ut[T],Ze=m0(0,Ye[ne],Ft[ne]),at=pe?Ye[ne]/2-sr-Ze-_e-ve.mainAxis:Bt-Ze-_e-ve.mainAxis,st=pe?-Ye[ne]/2+sr+Ze+Fe+ve.mainAxis:dn+Ze+Fe+ve.mainAxis,We=n.elements.arrow&&D0(n.elements.arrow),Vt=We?he==="y"?We.clientTop||0:We.clientLeft||0:0,qr=(W=Ce==null?void 0:Ce[he])!=null?W:0,lr=be+at-qr-Vt,Xe=be+st-qr,yt=m0(X?z1(ot,lr):ot,be,X?Vs(At,Xe):At);He[he]=yt,it[he]=yt-be}if(M){var Mt,$r=he==="x"?In:Dn,rn=he==="x"?bi:mi,fr=He[Te],tt=Te==="y"?"height":"width",B=fr+ye[$r],oe=fr-ye[rn],V=[In,Dn].indexOf(Ae)!==-1,Qe=(Mt=Ce==null?void 0:Ce[Te])!=null?Mt:0,dr=V?B:fr-Ye[tt]-et[tt]-Qe+ve.altAxis,kr=V?fr+Ye[tt]+et[tt]-Qe-ve.altAxis:oe,$n=X&&V?Jg(dr,fr,kr):m0(X?dr:B,fr,X?kr:oe);He[Te]=$n,it[Te]=$n-fr}n.modifiersData[c]=it}}const Tv={name:"preventOverflow",enabled:!0,phase:"main",fn:Ov,requiresIfExists:["offset"]};function Pv(r){return{scrollLeft:r.scrollLeft,scrollTop:r.scrollTop}}function Av(r){return r===yi(r)||!Jn(r)?Wd(r):Pv(r)}function Ev(r){var n=r.getBoundingClientRect(),o=uu(n.width)/r.offsetWidth||1,c=uu(n.height)/r.offsetHeight||1;return o!==1||c!==1}function Iv(r,n,o){o===void 0&&(o=!1);var c=Jn(n),f=Jn(n)&&Ev(n),p=Qa(n),b=cu(r,f,o),M={scrollLeft:0,scrollTop:0},S={x:0,y:0};return(c||!c&&!o)&&((Co(n)!=="body"||Yd(p))&&(M=Av(n)),Jn(n)?(S=cu(n,!0),S.x+=n.clientLeft,S.y+=n.clientTop):p&&(S.x=Ud(p))),{x:b.left+M.scrollLeft-S.x,y:b.top+M.scrollTop-S.y,width:b.width,height:b.height}}function Dv(r){var n=new Map,o=new Set,c=[];r.forEach(function(p){n.set(p.name,p)});function f(p){o.add(p.name);var b=[].concat(p.requires||[],p.requiresIfExists||[]);b.forEach(function(M){if(!o.has(M)){var S=n.get(M);S&&f(S)}}),c.push(p)}return r.forEach(function(p){o.has(p.name)||f(p)}),c}function Rv(r){var n=Dv(r);return Cd.reduce(function(o,c){return o.concat(n.filter(function(f){return f.phase===c}))},[])}function Nv(r){var n;return function(){return n||(n=new Promise(function(o){Promise.resolve().then(function(){n=void 0,o(r())})})),n}}function Ga(r){for(var n=arguments.length,o=new Array(n>1?n-1:0),c=1;c<n;c++)o[c-1]=arguments[c];return[].concat(o).reduce(function(f,p){return f.replace(/%s/,p)},r)}var Bs='Popper: modifier "%s" provided an invalid %s property, expected %s but got %s',$v='Popper: modifier "%s" requires "%s", but "%s" modifier is not available',Sp=["name","enabled","phase","fn","effect","requires","options"];function Hv(r){r.forEach(function(n){[].concat(Object.keys(n),Sp).filter(function(o,c,f){return f.indexOf(o)===c}).forEach(function(o){switch(o){case"name":typeof n.name!="string"&&console.error(Ga(Bs,String(n.name),'"name"','"string"','"'+String(n.name)+'"'));break;case"enabled":typeof n.enabled!="boolean"&&console.error(Ga(Bs,n.name,'"enabled"','"boolean"','"'+String(n.enabled)+'"'));break;case"phase":Cd.indexOf(n.phase)<0&&console.error(Ga(Bs,n.name,'"phase"',"either "+Cd.join(", "),'"'+String(n.phase)+'"'));break;case"fn":typeof n.fn!="function"&&console.error(Ga(Bs,n.name,'"fn"','"function"','"'+String(n.fn)+'"'));break;case"effect":n.effect!=null&&typeof n.effect!="function"&&console.error(Ga(Bs,n.name,'"effect"','"function"','"'+String(n.fn)+'"'));break;case"requires":n.requires!=null&&!Array.isArray(n.requires)&&console.error(Ga(Bs,n.name,'"requires"','"array"','"'+String(n.requires)+'"'));break;case"requiresIfExists":Array.isArray(n.requiresIfExists)||console.error(Ga(Bs,n.name,'"requiresIfExists"','"array"','"'+String(n.requiresIfExists)+'"'));break;case"options":case"data":break;default:console.error('PopperJS: an invalid property has been provided to the "'+n.name+'" modifier, valid properties are '+Sp.map(function(c){return'"'+c+'"'}).join(", ")+'; but "'+o+'" was provided.')}n.requires&&n.requires.forEach(function(c){r.find(function(f){return f.name===c})==null&&console.error(Ga($v,String(n.name),c,c))})})})}function Bv(r,n){var o=new Set;return r.filter(function(c){var f=n(c);if(!o.has(f))return o.add(f),!0})}function Fv(r){var n=r.reduce(function(o,c){var f=o[c.name];return o[c.name]=f?Object.assign({},f,c,{options:Object.assign({},f.options,c.options),data:Object.assign({},f.data,c.data)}):c,o},{});return Object.keys(n).map(function(o){return n[o]})}var kp="Popper: Invalid reference or popper argument provided. They must be either a DOM element or virtual element.",Wv="Popper: An infinite loop in the modifiers cycle has been detected! The cycle has been interrupted to prevent a browser crash.",Mp={placement:"bottom",modifiers:[],strategy:"absolute"};function Op(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return!n.some(function(c){return!(c&&typeof c.getBoundingClientRect=="function")})}function Uv(r){r===void 0&&(r={});var n=r,o=n.defaultModifiers,c=o===void 0?[]:o,f=n.defaultOptions,p=f===void 0?Mp:f;return function(M,S,O){O===void 0&&(O=p);var I={placement:"bottom",orderedModifiers:[],options:Object.assign({},Mp,p),modifiersData:{},elements:{reference:M,popper:S},attributes:{},styles:{}},U=[],q=!1,X={state:I,setOptions:function(Ae){var Ie=typeof Ae=="function"?Ae(I.options):Ae;xe(),I.options=Object.assign({},p,I.options,Ie),I.scrollParents={reference:js(M)?y0(M):M.contextElement?y0(M.contextElement):[],popper:y0(S)};var pe=Rv(Fv([].concat(c,I.options.modifiers)));if(I.orderedModifiers=pe.filter(function(Ce){return Ce.enabled}),{}.NODE_ENV!=="production"){var he=Bv([].concat(pe,I.options.modifiers),function(Ce){var it=Ce.name;return it});if(Hv(he),$i(I.options.placement)===R1){var Te=I.orderedModifiers.find(function(Ce){var it=Ce.name;return it==="flip"});Te||console.error(['Popper: "auto" placements require the "flip" modifier be',"present and enabled to work."].join(" "))}var He=Hi(S),Ye=He.marginTop,et=He.marginRight,nt=He.marginBottom,ve=He.marginLeft;[Ye,et,nt,ve].some(function(Ce){return parseFloat(Ce)})&&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 ce(),X.update()},forceUpdate:function(){if(!q){var Ae=I.elements,Ie=Ae.reference,pe=Ae.popper;if(!Op(Ie,pe)){({}).NODE_ENV!=="production"&&console.error(kp);return}I.rects={reference:Iv(Ie,D0(pe),I.options.strategy==="fixed"),popper:Bd(pe)},I.reset=!1,I.placement=I.options.placement,I.orderedModifiers.forEach(function(Ce){return I.modifiersData[Ce.name]=Object.assign({},Ce.data)});for(var he=0,Te=0;Te<I.orderedModifiers.length;Te++){if({}.NODE_ENV!=="production"&&(he+=1,he>100)){console.error(Wv);break}if(I.reset===!0){I.reset=!1,Te=-1;continue}var He=I.orderedModifiers[Te],Ye=He.fn,et=He.options,nt=et===void 0?{}:et,ve=He.name;typeof Ye=="function"&&(I=Ye({state:I,options:nt,name:ve,instance:X})||I)}}},update:Nv(function(){return new Promise(function(ye){X.forceUpdate(),ye(I)})}),destroy:function(){xe(),q=!0}};if(!Op(M,S))return{}.NODE_ENV!=="production"&&console.error(kp),X;X.setOptions(O).then(function(ye){!q&&O.onFirstUpdate&&O.onFirstUpdate(ye)});function ce(){I.orderedModifiers.forEach(function(ye){var Ae=ye.name,Ie=ye.options,pe=Ie===void 0?{}:Ie,he=ye.effect;if(typeof he=="function"){var Te=he({state:I,name:Ae,instance:X,options:pe}),He=function(){};U.push(Te||He)}})}function xe(){U.forEach(function(ye){return ye()}),U=[]}return X}}var Yv=[uv,kv,sv,Kg,_v,Cv,Tv,nv,xv],Zv=Uv({defaultModifiers:Yv}),Vv=Object.defineProperty,Gv=Object.getOwnPropertyDescriptor,tn=(r,n,o,c)=>{for(var f=c>1?void 0:c?Gv(n,o):n,p=r.length-1,b;p>=0;p--)(b=r[p])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&Vv(n,o,f),f};let qv=0;const Zd=Ee("popover"),h2=Ee("pure-popover"),p2=["click","hover","focus"],[L1,zd,Us]=p2,Vd=["dialog","tooltip","menu"],[jv]=Vd;class Kv extends CustomEvent{constructor(n){super(`${Zd}-${n}`,{bubbles:!0,composed:!0})}}exports.PurePopover=class extends Ue{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=jv,this.disabled=!1,this.popoverId=`popover-${++qv}`,this.delayTimeout=0}disconnectedCallback(){var r;super.disconnectedCallback(),(r=this.popperInstance)==null||r.destroy()}updatePosition(){var r;(r=this.popperInstance)==null||r.update()}async updated(r){super.updated(r),this.popperInstance=this.popperInstance||Zv(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 n;const r=(n=this.shadowRoot)==null?void 0:n.querySelector("slot");return r==null?void 0:r.assignedElements({flatten:!0})[0]}get contentElement(){var n;const r=(n=this.shadowRoot)==null?void 0:n.querySelector("slot[name=content]");return r==null?void 0:r.assignedNodes({flatten:!0})[0]}get popoverElement(){var r;return(r=this.shadowRoot)==null?void 0:r.querySelector(".popover-container")}emit(r){this.dispatchEvent(new Kv(r))}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 ee`
123
+ `,"We recommend using the popper element as a wrapper around an inner","element that can have any CSS property transitioned for animations."].join(" "))}var I={placement:$i(n.placement),variation:fu(n.placement),popper:n.elements.popper,popperRect:n.rects.popper,gpuAcceleration:f,isFixed:n.options.strategy==="fixed"};n.modifiersData.popperOffsets!=null&&(n.styles.popper=Object.assign({},n.styles.popper,wp(Object.assign({},I,{offsets:n.modifiersData.popperOffsets,position:n.options.strategy,adaptive:b,roundOffsets:S})))),n.modifiersData.arrow!=null&&(n.styles.arrow=Object.assign({},n.styles.arrow,wp(Object.assign({},I,{offsets:n.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:S})))),n.attributes.popper=Object.assign({},n.attributes.popper,{"data-popper-placement":n.placement})}const sv={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:av,data:{}};var h1={passive:!0};function lv(r){var n=r.state,o=r.instance,c=r.options,f=c.scroll,p=f===void 0?!0:f,b=c.resize,k=b===void 0?!0:b,S=yi(n.elements.popper),O=[].concat(n.scrollParents.reference,n.scrollParents.popper);return p&&O.forEach(function(I){I.addEventListener("scroll",o.update,h1)}),k&&S.addEventListener("resize",o.update,h1),function(){p&&O.forEach(function(I){I.removeEventListener("scroll",o.update,h1)}),k&&S.removeEventListener("resize",o.update,h1)}}const uv={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:lv,data:{}};var cv={left:"right",right:"left",bottom:"top",top:"bottom"};function b1(r){return r.replace(/left|right|bottom|top/g,function(n){return cv[n]})}var fv={start:"end",end:"start"};function xp(r){return r.replace(/start|end/g,function(n){return fv[n]})}function Ud(r){var n=yi(r),o=n.pageXOffset,c=n.pageYOffset;return{scrollLeft:o,scrollTop:c}}function Yd(r){return cu(Qa(r)).left+Ud(r).scrollLeft}function dv(r,n){var o=yi(r),c=Qa(r),f=o.visualViewport,p=c.clientWidth,b=c.clientHeight,k=0,S=0;if(f){p=f.width,b=f.height;var O=a2();(O||!O&&n==="fixed")&&(k=f.offsetLeft,S=f.offsetTop)}return{width:p,height:b,x:k+Yd(r),y:S}}function hv(r){var n,o=Qa(r),c=Ud(r),f=(n=r.ownerDocument)==null?void 0:n.body,p=Vs(o.scrollWidth,o.clientWidth,f?f.scrollWidth:0,f?f.clientWidth:0),b=Vs(o.scrollHeight,o.clientHeight,f?f.scrollHeight:0,f?f.clientHeight:0),k=-c.scrollLeft+Yd(r),S=-c.scrollTop;return Hi(f||o).direction==="rtl"&&(k+=Vs(o.clientWidth,f?f.clientWidth:0)-p),{width:p,height:b,x:k,y:S}}function Zd(r){var n=Hi(r),o=n.overflow,c=n.overflowX,f=n.overflowY;return/auto|scroll|overlay|hidden/.test(o+f+c)}function f2(r){return["html","body","#document"].indexOf(Co(r))>=0?r.ownerDocument.body:Jn(r)&&Zd(r)?r:f2(N1(r))}function y0(r,n){var o;n===void 0&&(n=[]);var c=f2(r),f=c===((o=r.ownerDocument)==null?void 0:o.body),p=yi(c),b=f?[p].concat(p.visualViewport||[],Zd(c)?c:[]):c,k=n.concat(b);return f?k:k.concat(y0(N1(b)))}function zd(r){return Object.assign({},r,{left:r.x,top:r.y,right:r.x+r.width,bottom:r.y+r.height})}function pv(r,n){var o=cu(r,!1,n==="fixed");return o.top=o.top+r.clientTop,o.left=o.left+r.clientLeft,o.bottom=o.top+r.clientHeight,o.right=o.left+r.clientWidth,o.width=r.clientWidth,o.height=r.clientHeight,o.x=o.left,o.y=o.top,o}function zp(r,n,o){return n===i2?zd(dv(r,o)):js(n)?pv(n,o):zd(hv(Qa(r)))}function gv(r){var n=y0(N1(r)),o=["absolute","fixed"].indexOf(Hi(r).position)>=0,c=o&&Jn(r)?D0(r):r;return js(c)?n.filter(function(f){return js(f)&&s2(f,c)&&Co(f)!=="body"}):[]}function vv(r,n,o,c){var f=n==="clippingParents"?gv(r):[].concat(n),p=[].concat(f,[o]),b=p[0],k=p.reduce(function(S,O){var I=zp(r,O,c);return S.top=Vs(I.top,S.top),S.right=z1(I.right,S.right),S.bottom=z1(I.bottom,S.bottom),S.left=Vs(I.left,S.left),S},zp(r,b,c));return k.width=k.right-k.left,k.height=k.bottom-k.top,k.x=k.left,k.y=k.top,k}function d2(r){var n=r.reference,o=r.element,c=r.placement,f=c?$i(c):null,p=c?fu(c):null,b=n.x+n.width/2-o.width/2,k=n.y+n.height/2-o.height/2,S;switch(f){case Dn:S={x:b,y:n.y-o.height};break;case bi:S={x:b,y:n.y+n.height};break;case mi:S={x:n.x+n.width,y:k};break;case Rn:S={x:n.x-o.width,y:k};break;default:S={x:n.x,y:n.y}}var O=f?Wd(f):null;if(O!=null){var I=O==="y"?"height":"width";switch(p){case lu:S[O]=S[O]-(n[I]/2-o[I]/2);break;case S0:S[O]=S[O]+(n[I]/2-o[I]/2);break}}return S}function M0(r,n){n===void 0&&(n={});var o=n,c=o.placement,f=c===void 0?r.placement:c,p=o.strategy,b=p===void 0?r.strategy:p,k=o.boundary,S=k===void 0?Ng:k,O=o.rootBoundary,I=O===void 0?i2:O,U=o.elementContext,q=U===void 0?h0:U,X=o.altBoundary,ce=X===void 0?!1:X,xe=o.padding,ye=xe===void 0?0:xe,Ae=u2(typeof ye!="number"?ye:c2(ye,I0)),Ie=q===h0?$g:h0,pe=r.rects.popper,he=r.elements[ce?Ie:q],Te=vv(js(he)?he:he.contextElement||Qa(r.elements.popper),S,I,b),He=cu(r.elements.reference),Ye=d2({reference:He,element:pe,strategy:"absolute",placement:f}),et=zd(Object.assign({},pe,Ye)),nt=q===h0?et:He,ve={top:Te.top-nt.top+Ae.top,bottom:nt.bottom-Te.bottom+Ae.bottom,left:Te.left-nt.left+Ae.left,right:nt.right-Te.right+Ae.right},Ce=r.modifiersData.offset;if(q===h0&&Ce){var it=Ce[f];Object.keys(ve).forEach(function(W){var E=[mi,bi].indexOf(W)>=0?1:-1,T=[Dn,bi].indexOf(W)>=0?"y":"x";ve[W]+=it[T]*E})}return ve}function bv(r,n){n===void 0&&(n={});var o=n,c=o.placement,f=o.boundary,p=o.rootBoundary,b=o.padding,k=o.flipVariations,S=o.allowedAutoPlacements,O=S===void 0?o2:S,I=fu(c),U=I?k?yp:yp.filter(function(ce){return fu(ce)===I}):I0,q=U.filter(function(ce){return O.indexOf(ce)>=0});q.length===0&&(q=U,{}.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 X=q.reduce(function(ce,xe){return ce[xe]=M0(r,{placement:xe,boundary:f,rootBoundary:p,padding:b})[$i(xe)],ce},{});return Object.keys(X).sort(function(ce,xe){return X[ce]-X[xe]})}function mv(r){if($i(r)===R1)return[];var n=b1(r);return[xp(r),n,xp(n)]}function yv(r){var n=r.state,o=r.options,c=r.name;if(!n.modifiersData[c]._skip){for(var f=o.mainAxis,p=f===void 0?!0:f,b=o.altAxis,k=b===void 0?!0:b,S=o.fallbackPlacements,O=o.padding,I=o.boundary,U=o.rootBoundary,q=o.altBoundary,X=o.flipVariations,ce=X===void 0?!0:X,xe=o.allowedAutoPlacements,ye=n.options.placement,Ae=$i(ye),Ie=Ae===ye,pe=S||(Ie||!ce?[b1(ye)]:mv(ye)),he=[ye].concat(pe).reduce(function(Ft,ut){return Ft.concat($i(ut)===R1?bv(n,{placement:ut,boundary:I,rootBoundary:U,padding:O,flipVariations:ce,allowedAutoPlacements:xe}):ut)},[]),Te=n.rects.reference,He=n.rects.popper,Ye=new Map,et=!0,nt=he[0],ve=0;ve<he.length;ve++){var Ce=he[ve],it=$i(Ce),W=fu(Ce)===lu,E=[Dn,bi].indexOf(it)>=0,T=E?"width":"height",ne=M0(n,{placement:Ce,boundary:I,rootBoundary:U,altBoundary:q,padding:O}),be=E?W?mi:Rn:W?bi:Dn;Te[T]>He[T]&&(be=b1(be));var ot=b1(be),At=[];if(p&&At.push(ne[it]<=0),k&&At.push(ne[be]<=0,ne[ot]<=0),At.every(function(Ft){return Ft})){nt=Ce,et=!1;break}Ye.set(Ce,At)}if(et)for(var sr=ce?3:1,Bt=function(ut){var _e=he.find(function(Fe){var Ze=Ye.get(Fe);if(Ze)return Ze.slice(0,ut).every(function(at){return at})});if(_e)return nt=_e,"break"},dn=sr;dn>0;dn--){var er=Bt(dn);if(er==="break")break}n.placement!==nt&&(n.modifiersData[c]._skip=!0,n.placement=nt,n.reset=!0)}}const Cv={name:"flip",enabled:!0,phase:"main",fn:yv,requiresIfExists:["offset"],data:{_skip:!1}};function Lp(r,n,o){return o===void 0&&(o={x:0,y:0}),{top:r.top-n.height-o.y,right:r.right-n.width+o.x,bottom:r.bottom-n.height+o.y,left:r.left-n.width-o.x}}function _p(r){return[Dn,mi,bi,Rn].some(function(n){return r[n]>=0})}function wv(r){var n=r.state,o=r.name,c=n.rects.reference,f=n.rects.popper,p=n.modifiersData.preventOverflow,b=M0(n,{elementContext:"reference"}),k=M0(n,{altBoundary:!0}),S=Lp(b,c),O=Lp(k,f,p),I=_p(S),U=_p(O);n.modifiersData[o]={referenceClippingOffsets:S,popperEscapeOffsets:O,isReferenceHidden:I,hasPopperEscaped:U},n.attributes.popper=Object.assign({},n.attributes.popper,{"data-popper-reference-hidden":I,"data-popper-escaped":U})}const xv={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:wv};function zv(r,n,o){var c=$i(r),f=[Rn,Dn].indexOf(c)>=0?-1:1,p=typeof o=="function"?o(Object.assign({},n,{placement:r})):o,b=p[0],k=p[1];return b=b||0,k=(k||0)*f,[Rn,mi].indexOf(c)>=0?{x:k,y:b}:{x:b,y:k}}function Lv(r){var n=r.state,o=r.options,c=r.name,f=o.offset,p=f===void 0?[0,0]:f,b=o2.reduce(function(I,U){return I[U]=zv(U,n.rects,p),I},{}),k=b[n.placement],S=k.x,O=k.y;n.modifiersData.popperOffsets!=null&&(n.modifiersData.popperOffsets.x+=S,n.modifiersData.popperOffsets.y+=O),n.modifiersData[c]=b}const _v={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Lv};function Sv(r){var n=r.state,o=r.name;n.modifiersData[o]=d2({reference:n.rects.reference,element:n.rects.popper,strategy:"absolute",placement:n.placement})}const Mv={name:"popperOffsets",enabled:!0,phase:"read",fn:Sv,data:{}};function kv(r){return r==="x"?"y":"x"}function Ov(r){var n=r.state,o=r.options,c=r.name,f=o.mainAxis,p=f===void 0?!0:f,b=o.altAxis,k=b===void 0?!1:b,S=o.boundary,O=o.rootBoundary,I=o.altBoundary,U=o.padding,q=o.tether,X=q===void 0?!0:q,ce=o.tetherOffset,xe=ce===void 0?0:ce,ye=M0(n,{boundary:S,rootBoundary:O,padding:U,altBoundary:I}),Ae=$i(n.placement),Ie=fu(n.placement),pe=!Ie,he=Wd(Ae),Te=kv(he),He=n.modifiersData.popperOffsets,Ye=n.rects.reference,et=n.rects.popper,nt=typeof xe=="function"?xe(Object.assign({},n.rects,{placement:n.placement})):xe,ve=typeof nt=="number"?{mainAxis:nt,altAxis:nt}:Object.assign({mainAxis:0,altAxis:0},nt),Ce=n.modifiersData.offset?n.modifiersData.offset[n.placement]:null,it={x:0,y:0};if(!!He){if(p){var W,E=he==="y"?Dn:Rn,T=he==="y"?bi:mi,ne=he==="y"?"height":"width",be=He[he],ot=be+ye[E],At=be-ye[T],sr=X?-et[ne]/2:0,Bt=Ie===lu?Ye[ne]:et[ne],dn=Ie===lu?-et[ne]:-Ye[ne],er=n.elements.arrow,Ft=X&&er?Fd(er):{width:0,height:0},ut=n.modifiersData["arrow#persistent"]?n.modifiersData["arrow#persistent"].padding:l2(),_e=ut[E],Fe=ut[T],Ze=m0(0,Ye[ne],Ft[ne]),at=pe?Ye[ne]/2-sr-Ze-_e-ve.mainAxis:Bt-Ze-_e-ve.mainAxis,st=pe?-Ye[ne]/2+sr+Ze+Fe+ve.mainAxis:dn+Ze+Fe+ve.mainAxis,We=n.elements.arrow&&D0(n.elements.arrow),Vt=We?he==="y"?We.clientTop||0:We.clientLeft||0:0,qr=(W=Ce==null?void 0:Ce[he])!=null?W:0,lr=be+at-qr-Vt,Xe=be+st-qr,yt=m0(X?z1(ot,lr):ot,be,X?Vs(At,Xe):At);He[he]=yt,it[he]=yt-be}if(k){var kt,$r=he==="x"?Dn:Rn,rn=he==="x"?bi:mi,fr=He[Te],tt=Te==="y"?"height":"width",B=fr+ye[$r],oe=fr-ye[rn],V=[Dn,Rn].indexOf(Ae)!==-1,Qe=(kt=Ce==null?void 0:Ce[Te])!=null?kt:0,dr=V?B:fr-Ye[tt]-et[tt]-Qe+ve.altAxis,Mr=V?fr+Ye[tt]+et[tt]-Qe-ve.altAxis:oe,$n=X&&V?Jg(dr,fr,Mr):m0(X?dr:B,fr,X?Mr:oe);He[Te]=$n,it[Te]=$n-fr}n.modifiersData[c]=it}}const Tv={name:"preventOverflow",enabled:!0,phase:"main",fn:Ov,requiresIfExists:["offset"]};function Pv(r){return{scrollLeft:r.scrollLeft,scrollTop:r.scrollTop}}function Av(r){return r===yi(r)||!Jn(r)?Ud(r):Pv(r)}function Ev(r){var n=r.getBoundingClientRect(),o=uu(n.width)/r.offsetWidth||1,c=uu(n.height)/r.offsetHeight||1;return o!==1||c!==1}function Iv(r,n,o){o===void 0&&(o=!1);var c=Jn(n),f=Jn(n)&&Ev(n),p=Qa(n),b=cu(r,f,o),k={scrollLeft:0,scrollTop:0},S={x:0,y:0};return(c||!c&&!o)&&((Co(n)!=="body"||Zd(p))&&(k=Av(n)),Jn(n)?(S=cu(n,!0),S.x+=n.clientLeft,S.y+=n.clientTop):p&&(S.x=Yd(p))),{x:b.left+k.scrollLeft-S.x,y:b.top+k.scrollTop-S.y,width:b.width,height:b.height}}function Dv(r){var n=new Map,o=new Set,c=[];r.forEach(function(p){n.set(p.name,p)});function f(p){o.add(p.name);var b=[].concat(p.requires||[],p.requiresIfExists||[]);b.forEach(function(k){if(!o.has(k)){var S=n.get(k);S&&f(S)}}),c.push(p)}return r.forEach(function(p){o.has(p.name)||f(p)}),c}function Rv(r){var n=Dv(r);return wd.reduce(function(o,c){return o.concat(n.filter(function(f){return f.phase===c}))},[])}function Nv(r){var n;return function(){return n||(n=new Promise(function(o){Promise.resolve().then(function(){n=void 0,o(r())})})),n}}function Ga(r){for(var n=arguments.length,o=new Array(n>1?n-1:0),c=1;c<n;c++)o[c-1]=arguments[c];return[].concat(o).reduce(function(f,p){return f.replace(/%s/,p)},r)}var Bs='Popper: modifier "%s" provided an invalid %s property, expected %s but got %s',$v='Popper: modifier "%s" requires "%s", but "%s" modifier is not available',Sp=["name","enabled","phase","fn","effect","requires","options"];function Hv(r){r.forEach(function(n){[].concat(Object.keys(n),Sp).filter(function(o,c,f){return f.indexOf(o)===c}).forEach(function(o){switch(o){case"name":typeof n.name!="string"&&console.error(Ga(Bs,String(n.name),'"name"','"string"','"'+String(n.name)+'"'));break;case"enabled":typeof n.enabled!="boolean"&&console.error(Ga(Bs,n.name,'"enabled"','"boolean"','"'+String(n.enabled)+'"'));break;case"phase":wd.indexOf(n.phase)<0&&console.error(Ga(Bs,n.name,'"phase"',"either "+wd.join(", "),'"'+String(n.phase)+'"'));break;case"fn":typeof n.fn!="function"&&console.error(Ga(Bs,n.name,'"fn"','"function"','"'+String(n.fn)+'"'));break;case"effect":n.effect!=null&&typeof n.effect!="function"&&console.error(Ga(Bs,n.name,'"effect"','"function"','"'+String(n.fn)+'"'));break;case"requires":n.requires!=null&&!Array.isArray(n.requires)&&console.error(Ga(Bs,n.name,'"requires"','"array"','"'+String(n.requires)+'"'));break;case"requiresIfExists":Array.isArray(n.requiresIfExists)||console.error(Ga(Bs,n.name,'"requiresIfExists"','"array"','"'+String(n.requiresIfExists)+'"'));break;case"options":case"data":break;default:console.error('PopperJS: an invalid property has been provided to the "'+n.name+'" modifier, valid properties are '+Sp.map(function(c){return'"'+c+'"'}).join(", ")+'; but "'+o+'" was provided.')}n.requires&&n.requires.forEach(function(c){r.find(function(f){return f.name===c})==null&&console.error(Ga($v,String(n.name),c,c))})})})}function Bv(r,n){var o=new Set;return r.filter(function(c){var f=n(c);if(!o.has(f))return o.add(f),!0})}function Fv(r){var n=r.reduce(function(o,c){var f=o[c.name];return o[c.name]=f?Object.assign({},f,c,{options:Object.assign({},f.options,c.options),data:Object.assign({},f.data,c.data)}):c,o},{});return Object.keys(n).map(function(o){return n[o]})}var Mp="Popper: Invalid reference or popper argument provided. They must be either a DOM element or virtual element.",Wv="Popper: An infinite loop in the modifiers cycle has been detected! The cycle has been interrupted to prevent a browser crash.",kp={placement:"bottom",modifiers:[],strategy:"absolute"};function Op(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return!n.some(function(c){return!(c&&typeof c.getBoundingClientRect=="function")})}function Uv(r){r===void 0&&(r={});var n=r,o=n.defaultModifiers,c=o===void 0?[]:o,f=n.defaultOptions,p=f===void 0?kp:f;return function(k,S,O){O===void 0&&(O=p);var I={placement:"bottom",orderedModifiers:[],options:Object.assign({},kp,p),modifiersData:{},elements:{reference:k,popper:S},attributes:{},styles:{}},U=[],q=!1,X={state:I,setOptions:function(Ae){var Ie=typeof Ae=="function"?Ae(I.options):Ae;xe(),I.options=Object.assign({},p,I.options,Ie),I.scrollParents={reference:js(k)?y0(k):k.contextElement?y0(k.contextElement):[],popper:y0(S)};var pe=Rv(Fv([].concat(c,I.options.modifiers)));if(I.orderedModifiers=pe.filter(function(Ce){return Ce.enabled}),{}.NODE_ENV!=="production"){var he=Bv([].concat(pe,I.options.modifiers),function(Ce){var it=Ce.name;return it});if(Hv(he),$i(I.options.placement)===R1){var Te=I.orderedModifiers.find(function(Ce){var it=Ce.name;return it==="flip"});Te||console.error(['Popper: "auto" placements require the "flip" modifier be',"present and enabled to work."].join(" "))}var He=Hi(S),Ye=He.marginTop,et=He.marginRight,nt=He.marginBottom,ve=He.marginLeft;[Ye,et,nt,ve].some(function(Ce){return parseFloat(Ce)})&&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 ce(),X.update()},forceUpdate:function(){if(!q){var Ae=I.elements,Ie=Ae.reference,pe=Ae.popper;if(!Op(Ie,pe)){({}).NODE_ENV!=="production"&&console.error(Mp);return}I.rects={reference:Iv(Ie,D0(pe),I.options.strategy==="fixed"),popper:Fd(pe)},I.reset=!1,I.placement=I.options.placement,I.orderedModifiers.forEach(function(Ce){return I.modifiersData[Ce.name]=Object.assign({},Ce.data)});for(var he=0,Te=0;Te<I.orderedModifiers.length;Te++){if({}.NODE_ENV!=="production"&&(he+=1,he>100)){console.error(Wv);break}if(I.reset===!0){I.reset=!1,Te=-1;continue}var He=I.orderedModifiers[Te],Ye=He.fn,et=He.options,nt=et===void 0?{}:et,ve=He.name;typeof Ye=="function"&&(I=Ye({state:I,options:nt,name:ve,instance:X})||I)}}},update:Nv(function(){return new Promise(function(ye){X.forceUpdate(),ye(I)})}),destroy:function(){xe(),q=!0}};if(!Op(k,S))return{}.NODE_ENV!=="production"&&console.error(Mp),X;X.setOptions(O).then(function(ye){!q&&O.onFirstUpdate&&O.onFirstUpdate(ye)});function ce(){I.orderedModifiers.forEach(function(ye){var Ae=ye.name,Ie=ye.options,pe=Ie===void 0?{}:Ie,he=ye.effect;if(typeof he=="function"){var Te=he({state:I,name:Ae,instance:X,options:pe}),He=function(){};U.push(Te||He)}})}function xe(){U.forEach(function(ye){return ye()}),U=[]}return X}}var Yv=[uv,Mv,sv,Kg,_v,Cv,Tv,nv,xv],Zv=Uv({defaultModifiers:Yv}),Vv=Object.defineProperty,Gv=Object.getOwnPropertyDescriptor,tn=(r,n,o,c)=>{for(var f=c>1?void 0:c?Gv(n,o):n,p=r.length-1,b;p>=0;p--)(b=r[p])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&Vv(n,o,f),f};let qv=0;const Vd=Ee("popover"),h2=Ee("pure-popover"),p2=["click","hover","focus"],[L1,Ld,Us]=p2,Gd=["dialog","tooltip","menu"],[jv]=Gd;class Kv extends CustomEvent{constructor(n){super(`${Vd}-${n}`,{bubbles:!0,composed:!0})}}exports.PurePopover=class extends Ue{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=jv,this.disabled=!1,this.popoverId=`popover-${++qv}`,this.delayTimeout=0}disconnectedCallback(){var r;super.disconnectedCallback(),(r=this.popperInstance)==null||r.destroy()}updatePosition(){var r;(r=this.popperInstance)==null||r.update()}async updated(r){super.updated(r),this.popperInstance=this.popperInstance||Zv(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 n;const r=(n=this.shadowRoot)==null?void 0:n.querySelector("slot");return r==null?void 0:r.assignedElements({flatten:!0})[0]}get contentElement(){var n;const r=(n=this.shadowRoot)==null?void 0:n.querySelector("slot[name=content]");return r==null?void 0:r.assignedNodes({flatten:!0})[0]}get popoverElement(){var r;return(r=this.shadowRoot)==null?void 0:r.querySelector(".popover-container")}emit(r){this.dispatchEvent(new Kv(r))}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 ee`
124
124
  <slot></slot>
125
125
 
126
126
  <brz-fade-in-out ?shown=${this.isOpen} class="popover-container">
@@ -139,7 +139,7 @@
139
139
  .popover-container {
140
140
  z-index: var(--brz-z-index-dialog);
141
141
  }
142
- `;tn([F({type:Number})],exports.PurePopover.prototype,"distance",2);tn([F({type:Number})],exports.PurePopover.prototype,"skidding",2);tn([F({type:Number,attribute:"delay-on-close"})],exports.PurePopover.prototype,"delayOnClose",2);tn([F({type:Number,attribute:"delay-on-open"})],exports.PurePopover.prototype,"delayOnOpen",2);tn([F({type:Boolean,attribute:"is-fixed"})],exports.PurePopover.prototype,"isFixed",2);tn([F({type:Boolean,attribute:"is-open",reflect:!0})],exports.PurePopover.prototype,"isOpen",2);tn([F({type:String})],exports.PurePopover.prototype,"placement",2);tn([F({type:String,attribute:"popover-role"})],exports.PurePopover.prototype,"popoverRole",2);tn([F({type:Boolean})],exports.PurePopover.prototype,"disabled",2);tn([pt()],exports.PurePopover.prototype,"popoverId",2);tn([pt()],exports.PurePopover.prototype,"popperInstance",2);tn([pt()],exports.PurePopover.prototype,"delayTimeout",2);exports.PurePopover=tn([Q(h2)],exports.PurePopover);const _1=["blur","mouseenter","mouseleave","keydown",L1,Us],[dd,Xv,Qv,Jv]=_1;exports.Popover=class extends exports.PurePopover{constructor(){super(),this.trigger="hover focus",this.hasFocus=!1,this.hasPointer=!1,this.listenableEventHandlers={[L1]:this.handleClick,[Us]:this.handleFocus,[dd]:this.handleBlur,[Xv]:this.handleMouseEnter,[Qv]:this.handleMouseLeave,[Jv]: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(){_1.forEach(r=>this.addEventListener(r,this.listenableEventHandlers[r],{capture:[Us,dd].includes(r)})),document.addEventListener("click",this.handleOutsideClick)}teardownListeners(){_1.forEach(r=>this.removeEventListener(r,this.listenableEventHandlers[r],{capture:[Us,dd].includes(r)})),document.removeEventListener("click",this.handleOutsideClick)}get triggers(){return typeof this.trigger=="string"?this.trigger.split(" "):this.trigger}hasTrigger(r){return this.triggers.includes(r)}setFocus(){this.hasFocus=!0}removeFocus(){this.hasFocus=!1}setPointer(){this.hasPointer=!0}removePointer(){this.hasPointer=!1}async handleOutsideClick(r){!this.isOpen||this.contains(r.target)||this.hasPointer||await this.close()}async handleClick(r){var n;if(!(this.isOpen&&((n=this.contentElement)==null?void 0:n.contains(r.target)))){if(!this.hasTrigger(L1))return this.removeFocus();await this.toggleIsOpen()}}async handleFocus(){!this.hasTrigger(Us)||(this.setFocus(),await this.open())}async handleBlur(){!this.hasTrigger(Us)||this.hasPointer||(this.removeFocus(),await this.close())}async handleMouseEnter(){this.setPointer(),!(!this.hasTrigger(zd)||this.hasFocus)&&await this.open()}async handleMouseLeave(){this.removePointer(),!(!this.hasTrigger(zd)||this.hasFocus)&&await this.close()}async handleKeyDown(r){r.stopPropagation(),["Escape","Esc"].includes(r.key)&&await this.close()}};tn([F({type:String})],exports.Popover.prototype,"trigger",2);tn([pt()],exports.Popover.prototype,"hasFocus",2);tn([pt()],exports.Popover.prototype,"hasPointer",2);exports.Popover=tn([Q(Zd)],exports.Popover);var e9=Object.defineProperty,t9=Object.getOwnPropertyDescriptor,ua=(r,n,o,c)=>{for(var f=c>1?void 0:c?t9(n,o):n,p=r.length-1,b;p>=0;p--)(b=r[p])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&e9(n,o,f),f};const g2=Ee("tooltip"),[,r9]=Vd;exports.Tooltip=class extends Ue{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 ee`
142
+ `;tn([F({type:Number})],exports.PurePopover.prototype,"distance",2);tn([F({type:Number})],exports.PurePopover.prototype,"skidding",2);tn([F({type:Number,attribute:"delay-on-close"})],exports.PurePopover.prototype,"delayOnClose",2);tn([F({type:Number,attribute:"delay-on-open"})],exports.PurePopover.prototype,"delayOnOpen",2);tn([F({type:Boolean,attribute:"is-fixed"})],exports.PurePopover.prototype,"isFixed",2);tn([F({type:Boolean,attribute:"is-open",reflect:!0})],exports.PurePopover.prototype,"isOpen",2);tn([F({type:String})],exports.PurePopover.prototype,"placement",2);tn([F({type:String,attribute:"popover-role"})],exports.PurePopover.prototype,"popoverRole",2);tn([F({type:Boolean})],exports.PurePopover.prototype,"disabled",2);tn([pt()],exports.PurePopover.prototype,"popoverId",2);tn([pt()],exports.PurePopover.prototype,"popperInstance",2);tn([pt()],exports.PurePopover.prototype,"delayTimeout",2);exports.PurePopover=tn([Q(h2)],exports.PurePopover);const _1=["blur","mouseenter","mouseleave","keydown",L1,Us],[hd,Xv,Qv,Jv]=_1;exports.Popover=class extends exports.PurePopover{constructor(){super(),this.trigger="hover focus",this.hasFocus=!1,this.hasPointer=!1,this.listenableEventHandlers={[L1]:this.handleClick,[Us]:this.handleFocus,[hd]:this.handleBlur,[Xv]:this.handleMouseEnter,[Qv]:this.handleMouseLeave,[Jv]: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(){_1.forEach(r=>this.addEventListener(r,this.listenableEventHandlers[r],{capture:[Us,hd].includes(r)})),document.addEventListener("click",this.handleOutsideClick)}teardownListeners(){_1.forEach(r=>this.removeEventListener(r,this.listenableEventHandlers[r],{capture:[Us,hd].includes(r)})),document.removeEventListener("click",this.handleOutsideClick)}get triggers(){return typeof this.trigger=="string"?this.trigger.split(" "):this.trigger}hasTrigger(r){return this.triggers.includes(r)}setFocus(){this.hasFocus=!0}removeFocus(){this.hasFocus=!1}setPointer(){this.hasPointer=!0}removePointer(){this.hasPointer=!1}async handleOutsideClick(r){!this.isOpen||this.contains(r.target)||this.hasPointer||await this.close()}async handleClick(r){var n;if(!(this.isOpen&&((n=this.contentElement)==null?void 0:n.contains(r.target)))){if(!this.hasTrigger(L1))return this.removeFocus();await this.toggleIsOpen()}}async handleFocus(){!this.hasTrigger(Us)||(this.setFocus(),await this.open())}async handleBlur(){!this.hasTrigger(Us)||this.hasPointer||(this.removeFocus(),await this.close())}async handleMouseEnter(){this.setPointer(),!(!this.hasTrigger(Ld)||this.hasFocus)&&await this.open()}async handleMouseLeave(){this.removePointer(),!(!this.hasTrigger(Ld)||this.hasFocus)&&await this.close()}async handleKeyDown(r){r.stopPropagation(),["Escape","Esc"].includes(r.key)&&await this.close()}};tn([F({type:String})],exports.Popover.prototype,"trigger",2);tn([pt()],exports.Popover.prototype,"hasFocus",2);tn([pt()],exports.Popover.prototype,"hasPointer",2);exports.Popover=tn([Q(Vd)],exports.Popover);var e9=Object.defineProperty,t9=Object.getOwnPropertyDescriptor,ua=(r,n,o,c)=>{for(var f=c>1?void 0:c?t9(n,o):n,p=r.length-1,b;p>=0;p--)(b=r[p])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&e9(n,o,f),f};const g2=Ee("tooltip"),[,r9]=Gd;exports.Tooltip=class extends Ue{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 ee`
143
143
  <brz-popover
144
144
  .popoverRole=${r9}
145
145
  .distance=${8}
@@ -173,7 +173,7 @@
173
173
  background-color: var(--brz-color-white);
174
174
  color: var(--brz-color-text);
175
175
  }
176
- `;ua([F({type:Number,attribute:"delay-on-close"})],exports.Tooltip.prototype,"delayOnClose",2);ua([F({type:Number,attribute:"delay-on-open"})],exports.Tooltip.prototype,"delayOnOpen",2);ua([F({type:Boolean,attribute:"is-fixed"})],exports.Tooltip.prototype,"isFixed",2);ua([F({type:String})],exports.Tooltip.prototype,"placement",2);ua([F({type:String})],exports.Tooltip.prototype,"trigger",2);ua([F({type:Boolean})],exports.Tooltip.prototype,"disabled",2);ua([F({type:String})],exports.Tooltip.prototype,"content",2);ua([F({type:String,reflect:!0})],exports.Tooltip.prototype,"theme",2);exports.Tooltip=ua([Q(g2)],exports.Tooltip);var n9=Object.defineProperty,i9=Object.getOwnPropertyDescriptor,xo=(r,n,o,c)=>{for(var f=c>1?void 0:c?i9(n,o):n,p=r.length-1,b;p>=0;p--)(b=r[p])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&n9(n,o,f),f};const v2=Ee("avatar"),b2=Ee("avatar-group");var Ld=(r=>(r[r.tiny=0]="tiny",r[r.small=1]="small",r[r.medium=2]="medium",r[r.large=3]="large",r))(Ld||{});exports.Avatar=class extends Ue{constructor(){super(...arguments),this.hasOuterBorder=!1,this.isPlaceholderHidden=!1,this.label="",this.size="medium",this.theme="solid",this.slottedElementsCount=0}handleSlotChange({target:r}){const n=r==null?void 0:r.assignedElements({flatten:!0});this.slottedElementsCount=n.length}get abbreviatedLabel(){if(!this.label||this.isPlaceholderHidden)return"";const n=Ld[this.size]<2?1:2;return this.label.split(" ").slice(0,n).map(o=>o.charAt(0)).join("").toUpperCase()}get iconTemplate(){const r=Ld[this.size],n=()=>{switch(r){case 3:return 20;case 2:case 1:return 10;case 0:return 6.5}};return ee`
176
+ `;ua([F({type:Number,attribute:"delay-on-close"})],exports.Tooltip.prototype,"delayOnClose",2);ua([F({type:Number,attribute:"delay-on-open"})],exports.Tooltip.prototype,"delayOnOpen",2);ua([F({type:Boolean,attribute:"is-fixed"})],exports.Tooltip.prototype,"isFixed",2);ua([F({type:String})],exports.Tooltip.prototype,"placement",2);ua([F({type:String})],exports.Tooltip.prototype,"trigger",2);ua([F({type:Boolean})],exports.Tooltip.prototype,"disabled",2);ua([F({type:String})],exports.Tooltip.prototype,"content",2);ua([F({type:String,reflect:!0})],exports.Tooltip.prototype,"theme",2);exports.Tooltip=ua([Q(g2)],exports.Tooltip);var n9=Object.defineProperty,i9=Object.getOwnPropertyDescriptor,xo=(r,n,o,c)=>{for(var f=c>1?void 0:c?i9(n,o):n,p=r.length-1,b;p>=0;p--)(b=r[p])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&n9(n,o,f),f};const v2=Ee("avatar"),b2=Ee("avatar-group");var _d=(r=>(r[r.tiny=0]="tiny",r[r.small=1]="small",r[r.medium=2]="medium",r[r.large=3]="large",r))(_d||{});exports.Avatar=class extends Ue{constructor(){super(...arguments),this.hasOuterBorder=!1,this.isPlaceholderHidden=!1,this.label="",this.size="medium",this.theme="solid",this.slottedElementsCount=0}handleSlotChange({target:r}){const n=r==null?void 0:r.assignedElements({flatten:!0});this.slottedElementsCount=n.length}get abbreviatedLabel(){if(!this.label||this.isPlaceholderHidden)return"";const n=_d[this.size]<2?1:2;return this.label.split(" ").slice(0,n).map(o=>o.charAt(0)).join("").toUpperCase()}get iconTemplate(){const r=_d[this.size],n=()=>{switch(r){case 3:return 20;case 2:case 1:return 10;case 0:return 6.5}};return ee`
177
177
  <span class="icon" aria-label=${this.label}>
178
178
  <brz-icon size=${n()} icon=${qt(this.icon)}></brz-icon>
179
179
  </span>
@@ -434,7 +434,7 @@
434
434
  stroke-dashoffset: -124px;
435
435
  }
436
436
  }
437
- `;C2([F({type:Number})],exports.LoadingSpinner.prototype,"size",2);exports.LoadingSpinner=C2([Q(w2)],exports.LoadingSpinner);var u9=Object.defineProperty,c9=Object.getOwnPropertyDescriptor,Ci=(r,n,o,c)=>{for(var f=c>1?void 0:c?c9(n,o):n,p=r.length-1,b;p>=0;p--)(b=r[p])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&u9(n,o,f),f};const Gd=Ee("button"),x2=Ee("button-group");class f9 extends CustomEvent{constructor(n){super(`${Gd}-${n}`,{bubbles:!0,composed:!0})}}const d9=["primary","secondary","transparent","transparent-primary"];exports.Button=class extends Ue{constructor(){super(...arguments),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(n=>{var o;return!!((o=n.textContent)!=null&&o.replace(`
437
+ `;C2([F({type:Number})],exports.LoadingSpinner.prototype,"size",2);exports.LoadingSpinner=C2([Q(w2)],exports.LoadingSpinner);var u9=Object.defineProperty,c9=Object.getOwnPropertyDescriptor,Ci=(r,n,o,c)=>{for(var f=c>1?void 0:c?c9(n,o):n,p=r.length-1,b;p>=0;p--)(b=r[p])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&u9(n,o,f),f};const qd=Ee("button"),x2=Ee("button-group");class f9 extends CustomEvent{constructor(n){super(`${qd}-${n}`,{bubbles:!0,composed:!0})}}const d9=["primary","secondary","transparent","transparent-primary"];exports.Button=class extends Ue{constructor(){super(...arguments),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(n=>{var o;return!!((o=n.textContent)!=null&&o.replace(`
438
438
  `,"").trim())})||(this.iconOnly=!!(this.leadingIcon||this.trailingIcon))})}emit(r){this.dispatchEvent(new f9(r))}render(){return ee`
439
439
  <button
440
440
  @click=${()=>{this.disabled||this.emit("click")}}
@@ -631,7 +631,7 @@
631
631
  brz-icon {
632
632
  padding: var(--brz-spacing-px);
633
633
  }
634
- `;Ci([F({type:String,reflect:!0,attribute:"button-type",noAccessor:!0})],exports.Button.prototype,"buttonType",2);Ci([F({type:String,reflect:!0,attribute:"leading-icon"})],exports.Button.prototype,"leadingIcon",2);Ci([F({type:String,reflect:!0,attribute:"trailing-icon"})],exports.Button.prototype,"trailingIcon",2);Ci([F({type:String,attribute:"icon-size"})],exports.Button.prototype,"iconSize",2);Ci([F({type:Boolean,reflect:!0})],exports.Button.prototype,"loading",2);Ci([F({type:Boolean,reflect:!0})],exports.Button.prototype,"compact",2);Ci([F({type:Boolean,reflect:!0})],exports.Button.prototype,"disabled",2);Ci([F({type:Boolean,attribute:"icon-only",reflect:!0})],exports.Button.prototype,"iconOnly",2);Ci([t2()],exports.Button.prototype,"defaultSlot",2);exports.Button=Ci([Q(Gd)],exports.Button);exports.ButtonGroup=class extends Ue{constructor(){super(...arguments),this.compact=!1}render(){return ee`<brz-row class=${Xa({compact:this.compact})}
634
+ `;Ci([F({type:String,reflect:!0,attribute:"button-type",noAccessor:!0})],exports.Button.prototype,"buttonType",2);Ci([F({type:String,reflect:!0,attribute:"leading-icon"})],exports.Button.prototype,"leadingIcon",2);Ci([F({type:String,reflect:!0,attribute:"trailing-icon"})],exports.Button.prototype,"trailingIcon",2);Ci([F({type:String,attribute:"icon-size"})],exports.Button.prototype,"iconSize",2);Ci([F({type:Boolean,reflect:!0})],exports.Button.prototype,"loading",2);Ci([F({type:Boolean,reflect:!0})],exports.Button.prototype,"compact",2);Ci([F({type:Boolean,reflect:!0})],exports.Button.prototype,"disabled",2);Ci([F({type:Boolean,attribute:"icon-only",reflect:!0})],exports.Button.prototype,"iconOnly",2);Ci([t2()],exports.Button.prototype,"defaultSlot",2);exports.Button=Ci([Q(qd)],exports.Button);exports.ButtonGroup=class extends Ue{constructor(){super(...arguments),this.compact=!1}render(){return ee`<brz-row class=${Xa({compact:this.compact})}
635
635
  ><slot></slot
636
636
  ></brz-row>`}};exports.ButtonGroup.styles=ge`
637
637
  brz-row {
@@ -650,7 +650,7 @@
650
650
  --brz-button-r-radius: 0;
651
651
  --brz-border-r-width: 0;
652
652
  }
653
- `;Ci([F({type:Boolean})],exports.ButtonGroup.prototype,"compact",2);exports.ButtonGroup=Ci([Q(x2)],exports.ButtonGroup);var h9=Object.defineProperty,p9=Object.getOwnPropertyDescriptor,qd=(r,n,o,c)=>{for(var f=c>1?void 0:c?p9(n,o):n,p=r.length-1,b;p>=0;p--)(b=r[p])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&h9(n,o,f),f};const z2=Ee("combo-box"),L2=Ee("combo-box-option");exports.ComboBox=class extends Ue{constructor(){super(...arguments),this.isOpen=!1,this.toggleMenu=r=>{this.isOpen=!this.isOpen,r.stopPropagation()},this.outsideClick=()=>{this.isOpen=!1}}connectedCallback(){super.connectedCallback(),document.addEventListener("click",this.outsideClick)}disconnectedCallback(){document.removeEventListener("click",this.outsideClick),super.disconnectedCallback()}render(){return ee`
653
+ `;Ci([F({type:Boolean})],exports.ButtonGroup.prototype,"compact",2);exports.ButtonGroup=Ci([Q(x2)],exports.ButtonGroup);var h9=Object.defineProperty,p9=Object.getOwnPropertyDescriptor,jd=(r,n,o,c)=>{for(var f=c>1?void 0:c?p9(n,o):n,p=r.length-1,b;p>=0;p--)(b=r[p])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&h9(n,o,f),f};const z2=Ee("combo-box"),L2=Ee("combo-box-option");exports.ComboBox=class extends Ue{constructor(){super(...arguments),this.isOpen=!1,this.toggleMenu=r=>{this.isOpen=!this.isOpen,r.stopPropagation()},this.outsideClick=()=>{this.isOpen=!1}}connectedCallback(){super.connectedCallback(),document.addEventListener("click",this.outsideClick)}disconnectedCallback(){document.removeEventListener("click",this.outsideClick),super.disconnectedCallback()}render(){return ee`
654
654
  <div class="container ${this.isOpen?"open":""}">
655
655
  <div @click="${this.toggleMenu}"><slot></slot></div>
656
656
  <div class="dropdown"><slot name="options"></slot></div>
@@ -678,7 +678,7 @@
678
678
  .container.open .dropdown {
679
679
  display: block;
680
680
  }
681
- `;qd([F({type:Boolean,attribute:"is-open",reflect:!0})],exports.ComboBox.prototype,"isOpen",2);exports.ComboBox=qd([Q(z2)],exports.ComboBox);exports.ComboBoxOption=class extends Ue{render(){return ee` <div class="item"><slot></slot></div> `}};exports.ComboBoxOption.styles=ge`
681
+ `;jd([F({type:Boolean,attribute:"is-open",reflect:!0})],exports.ComboBox.prototype,"isOpen",2);exports.ComboBox=jd([Q(z2)],exports.ComboBox);exports.ComboBoxOption=class extends Ue{render(){return ee` <div class="item"><slot></slot></div> `}};exports.ComboBoxOption.styles=ge`
682
682
  .item {
683
683
  height: 20px;
684
684
  cursor: pointer;
@@ -693,7 +693,7 @@
693
693
  .item:hover {
694
694
  background-color: var(--brz-color-neutral-250);
695
695
  }
696
- `;exports.ComboBoxOption=qd([Q(L2)],exports.ComboBoxOption);var g9=Object.defineProperty,v9=Object.getOwnPropertyDescriptor,R0=(r,n,o,c)=>{for(var f=c>1?void 0:c?v9(n,o):n,p=r.length-1,b;p>=0;p--)(b=r[p])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&g9(n,o,f),f};const _2=Ee("modal");class jd extends CustomEvent{constructor(){super("brz-modal-close",{bubbles:!0})}}exports.Modal=class extends Ue{constructor(){super(...arguments),this.size="small",this.open=!1,this.noClose=!1,this.shown=this.open,this.handleKeyUp=r=>{if(r.key==="Escape")return this.handleClose(r)},this.handleClose=r=>{r instanceof MouseEvent&&this.noClose||r instanceof MouseEvent&&r.target!==this.overlay||(r.stopPropagation(),this.dispatchEvent(new jd))}}connectedCallback(){super.connectedCallback(),window.addEventListener("keyup",this.handleKeyUp,!0)}disconnectedCallback(){super.disconnectedCallback(),window.removeEventListener("keyup",this.handleKeyUp,!0)}get overlay(){return this.renderRoot.querySelector("#overlay")}handleTransitionEnd(r){r.target===this.overlay&&(this.shown=!1)}render(){return ee`
696
+ `;exports.ComboBoxOption=jd([Q(L2)],exports.ComboBoxOption);var g9=Object.defineProperty,v9=Object.getOwnPropertyDescriptor,R0=(r,n,o,c)=>{for(var f=c>1?void 0:c?v9(n,o):n,p=r.length-1,b;p>=0;p--)(b=r[p])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&g9(n,o,f),f};const _2=Ee("modal");class Kd extends CustomEvent{constructor(){super("brz-modal-close",{bubbles:!0})}}exports.Modal=class extends Ue{constructor(){super(...arguments),this.size="small",this.open=!1,this.noClose=!1,this.shown=this.open,this.handleKeyUp=r=>{if(r.key==="Escape")return this.handleClose(r)},this.handleClose=r=>{r instanceof MouseEvent&&this.noClose||r instanceof MouseEvent&&r.target!==this.overlay||(r.stopPropagation(),this.dispatchEvent(new Kd))}}connectedCallback(){super.connectedCallback(),window.addEventListener("keyup",this.handleKeyUp,!0)}disconnectedCallback(){super.disconnectedCallback(),window.removeEventListener("keyup",this.handleKeyUp,!0)}get overlay(){return this.renderRoot.querySelector("#overlay")}handleTransitionEnd(r){r.target===this.overlay&&(this.shown=!1)}render(){return ee`
697
697
  <brz-fade-in-out ?shown=${this.open}>
698
698
  <div
699
699
  id="overlay"
@@ -767,7 +767,7 @@
767
767
  ::slotted(sp-modal-body:first-child) {
768
768
  padding-top: var(--brz-spacing-10);
769
769
  }
770
- `;R0([F({type:String})],exports.Modal.prototype,"size",2);R0([F({type:Boolean})],exports.Modal.prototype,"open",2);R0([F({type:Boolean,attribute:"no-close"})],exports.Modal.prototype,"noClose",2);R0([F({attribute:!1})],exports.Modal.prototype,"shown",2);exports.Modal=R0([Q(_2)],exports.Modal);function _d(r,n){if(r){if(r instanceof n)return r;if(r instanceof ShadowRoot)return _d(r.host,n);if("parentNode"in r)return _d(r.parentElement||r.parentNode,n)}return null}var b9=Object.defineProperty,m9=Object.getOwnPropertyDescriptor,zo=(r,n,o,c)=>{for(var f=c>1?void 0:c?m9(n,o):n,p=r.length-1,b;p>=0;p--)(b=r[p])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&b9(n,o,f),f};const S2=Ee("split-row"),k2=Ee("action-bar");exports.SplitRow=class extends Ue{constructor(){super(...arguments),this.verticalAlign="top",this.leftExpand=!1,this.rightExpand=!1,this.noGap=!1,this.expandY=!1}render(){return ee`
770
+ `;R0([F({type:String})],exports.Modal.prototype,"size",2);R0([F({type:Boolean})],exports.Modal.prototype,"open",2);R0([F({type:Boolean,attribute:"no-close"})],exports.Modal.prototype,"noClose",2);R0([F({attribute:!1})],exports.Modal.prototype,"shown",2);exports.Modal=R0([Q(_2)],exports.Modal);function Sd(r,n){if(r){if(r instanceof n)return r;if(r instanceof ShadowRoot)return Sd(r.host,n);if("parentNode"in r)return Sd(r.parentElement||r.parentNode,n)}return null}var b9=Object.defineProperty,m9=Object.getOwnPropertyDescriptor,zo=(r,n,o,c)=>{for(var f=c>1?void 0:c?m9(n,o):n,p=r.length-1,b;p>=0;p--)(b=r[p])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&b9(n,o,f),f};const S2=Ee("split-row"),M2=Ee("action-bar");exports.SplitRow=class extends Ue{constructor(){super(...arguments),this.verticalAlign="top",this.leftExpand=!1,this.rightExpand=!1,this.noGap=!1,this.expandY=!1}render(){return ee`
771
771
  <brz-row vertical-align=${this.verticalAlign}>
772
772
  <div class="left">
773
773
  <slot name="left"></slot>
@@ -823,7 +823,7 @@
823
823
  :host([no-border]) brz-split-row {
824
824
  box-shadow: none;
825
825
  }
826
- `;zo([F({type:Boolean,attribute:"no-border",reflect:!0})],exports.ActionBar.prototype,"noBorder",2);zo([F({type:Boolean,attribute:"left-expand",reflect:!0})],exports.ActionBar.prototype,"leftExpand",2);zo([F({type:Boolean,attribute:"right-expand",reflect:!0})],exports.ActionBar.prototype,"rightExpand",2);exports.ActionBar=zo([Q(k2)],exports.ActionBar);const y9=r=>r.viewBox!==void 0,C9={arrowDown:{svg:G`
826
+ `;zo([F({type:Boolean,attribute:"no-border",reflect:!0})],exports.ActionBar.prototype,"noBorder",2);zo([F({type:Boolean,attribute:"left-expand",reflect:!0})],exports.ActionBar.prototype,"leftExpand",2);zo([F({type:Boolean,attribute:"right-expand",reflect:!0})],exports.ActionBar.prototype,"rightExpand",2);exports.ActionBar=zo([Q(M2)],exports.ActionBar);const y9=r=>r.viewBox!==void 0,C9={arrowDown:{svg:G`
827
827
  <title>Asset 36</title>
828
828
  <g data-name="Layer 2">
829
829
  <g data-name="Layer 1">
@@ -1097,7 +1097,7 @@
1097
1097
  C7,14.1,7,14.1,7,14.1z"/>
1098
1098
  <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
1099
1099
  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
1100
- 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:G`<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:G`<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)"/>`}},w9="0 0 18 18",M2=r=>y9(r)?r:{svg:r,viewBox:w9},Kd={actions:G`
1100
+ 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:G`<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:G`<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)"/>`}},w9="0 0 18 18",k2=r=>y9(r)?r:{svg:r,viewBox:w9},Xd={actions:G`
1101
1101
  <g stroke="none" stroke-width="1" fill-rule="evenodd">
1102
1102
  <g transform="translate(-0.002970, 0.000000)">
1103
1103
  <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>
@@ -1562,7 +1562,7 @@
1562
1562
  <circle class="st0" cx="9" cy="13" r="1"/>
1563
1563
  <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"/>
1564
1564
  </g>
1565
- <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:G`<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:G`<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"/>`,...C9},x9=Object.keys(Kd);var z9=Object.defineProperty,L9=Object.getOwnPropertyDescriptor,Xd=(r,n,o,c)=>{for(var f=c>1?void 0:c?L9(n,o):n,p=r.length-1,b;p>=0;p--)(b=r[p])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&z9(n,o,f),f};const O2=Ee("icon");exports.Icon=class extends Ue{constructor(){super(...arguments),this.size=18,this.icon="close"}render(){const{svg:r,viewBox:n}=M2(Kd[this.icon]);return ee`
1565
+ <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:G`<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:G`<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"/>`,...C9},x9=Object.keys(Xd);var z9=Object.defineProperty,L9=Object.getOwnPropertyDescriptor,Qd=(r,n,o,c)=>{for(var f=c>1?void 0:c?L9(n,o):n,p=r.length-1,b;p>=0;p--)(b=r[p])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&z9(n,o,f),f};const O2=Ee("icon");exports.Icon=class extends Ue{constructor(){super(...arguments),this.size=18,this.icon="close"}render(){const{svg:r,viewBox:n}=k2(Xd[this.icon]);return ee`
1566
1566
  <svg
1567
1567
  role="presentation"
1568
1568
  width=${this.size}
@@ -1580,7 +1580,7 @@
1580
1580
  svg {
1581
1581
  fill: currentColor;
1582
1582
  }
1583
- `;Xd([F({type:Number,reflect:!0})],exports.Icon.prototype,"size",2);Xd([F({type:String})],exports.Icon.prototype,"icon",2);exports.Icon=Xd([Q(O2)],exports.Icon);var _9=Object.defineProperty,S9=Object.getOwnPropertyDescriptor,H1=(r,n,o,c)=>{for(var f=c>1?void 0:c?S9(n,o):n,p=r.length-1,b;p>=0;p--)(b=r[p])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&_9(n,o,f),f};const T2=Ee("modal-header"),P2=Ee("modal-body"),A2=Ee("modal-footer");exports.ModalHeader=class extends Ue{get _noClose(){var r;return(r=_d(this.parentElement,exports.Modal))==null?void 0:r.noClose}_handleClickClose(){this.dispatchEvent(new jd)}render(){return ee`
1583
+ `;Qd([F({type:Number,reflect:!0})],exports.Icon.prototype,"size",2);Qd([F({type:String})],exports.Icon.prototype,"icon",2);exports.Icon=Qd([Q(O2)],exports.Icon);var _9=Object.defineProperty,S9=Object.getOwnPropertyDescriptor,H1=(r,n,o,c)=>{for(var f=c>1?void 0:c?S9(n,o):n,p=r.length-1,b;p>=0;p--)(b=r[p])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&_9(n,o,f),f};const T2=Ee("modal-header"),P2=Ee("modal-body"),A2=Ee("modal-footer");exports.ModalHeader=class extends Ue{get _noClose(){var r;return(r=Sd(this.parentElement,exports.Modal))==null?void 0:r.noClose}_handleClickClose(){this.dispatchEvent(new Kd)}render(){return ee`
1584
1584
  <brz-heading size="xl"><slot></slot></brz-heading>
1585
1585
  ${this._noClose?void 0:ee`
1586
1586
  <brz-button
@@ -1629,7 +1629,7 @@
1629
1629
  :host {
1630
1630
  padding: var(--brz-spacing-5) var(--brz-spacing-6);
1631
1631
  }
1632
- `;exports.ModalFooter=H1([Q(A2)],exports.ModalFooter);var k9=Object.defineProperty,M9=Object.getOwnPropertyDescriptor,E2=(r,n,o,c)=>{for(var f=c>1?void 0:c?M9(n,o):n,p=r.length-1,b;p>=0;p--)(b=r[p])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&k9(n,o,f),f};const I2=Ee("confirmation-dialog");class D2 extends CustomEvent{constructor(){super("brz-dialog-cancel",{bubbles:!0})}}class R2 extends CustomEvent{constructor(){super("brz-dialog-confirm",{bubbles:!0})}}exports.ConfirmationDialog=class extends Ue{constructor(){super(...arguments),this.open=!1}handleCancel(){this.dispatchEvent(new D2)}handleConfirm(){this.dispatchEvent(new R2)}render(){return ee`<brz-modal size="small" ?open=${this.open} noClose>
1632
+ `;exports.ModalFooter=H1([Q(A2)],exports.ModalFooter);var M9=Object.defineProperty,k9=Object.getOwnPropertyDescriptor,E2=(r,n,o,c)=>{for(var f=c>1?void 0:c?k9(n,o):n,p=r.length-1,b;p>=0;p--)(b=r[p])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&M9(n,o,f),f};const I2=Ee("confirmation-dialog");class D2 extends CustomEvent{constructor(){super("brz-dialog-cancel",{bubbles:!0})}}class R2 extends CustomEvent{constructor(){super("brz-dialog-confirm",{bubbles:!0})}}exports.ConfirmationDialog=class extends Ue{constructor(){super(...arguments),this.open=!1}handleCancel(){this.dispatchEvent(new D2)}handleConfirm(){this.dispatchEvent(new R2)}render(){return ee`<brz-modal size="small" ?open=${this.open} noClose>
1633
1633
  <brz-modal-body>
1634
1634
  <slot name="body"></slot>
1635
1635
  </brz-modal-body>
@@ -1643,7 +1643,7 @@
1643
1643
  </brz-button>
1644
1644
  </brz-button-group>
1645
1645
  </brz-modal-footer>
1646
- </brz-modal>`}};E2([F({type:Boolean})],exports.ConfirmationDialog.prototype,"open",2);exports.ConfirmationDialog=E2([Q(I2)],exports.ConfirmationDialog);var O9=Object.defineProperty,T9=Object.getOwnPropertyDescriptor,Ks=(r,n,o,c)=>{for(var f=c>1?void 0:c?T9(n,o):n,p=r.length-1,b;p>=0;p--)(b=r[p])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&O9(n,o,f),f};class Lo extends Ue{constructor(){super(...arguments),this.readonly=!1,this.invalid=!1,this.name="",this.id="input",this.useProxy=!1}connectedCallback(){super.connectedCallback(),this.useProxy&&this.createProxyInput()}onInput(n){this.value=n.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(n){this.useProxy&&this.updateProxyInput()}}Ks([F({type:Boolean,reflect:!0})],Lo.prototype,"readonly",2);Ks([F({type:Boolean,reflect:!0})],Lo.prototype,"invalid",2);Ks([F({type:String})],Lo.prototype,"name",2);Ks([F({type:String})],Lo.prototype,"id",2);Ks([F({type:String})],Lo.prototype,"value",2);Ks([pt()],Lo.prototype,"proxyInput",2);Ks([pt()],Lo.prototype,"useProxy",2);var P9=Object.defineProperty,A9=Object.getOwnPropertyDescriptor,hu=(r,n,o,c)=>{for(var f=c>1?void 0:c?A9(n,o):n,p=r.length-1,b;p>=0;p--)(b=r[p])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&P9(n,o,f),f};const N2=Ee("input-checkbox"),Ri={Checked:"Checked",Indeterminate:"Indeterminate",Empty:"Empty"};exports.InputCheckbox=class extends Lo{constructor(){super(...arguments),this.checked=!1,this.disabled=!1,this.indeterminate=!1,this.checkboxState=Ri.Empty,this.inputElement=null}updateProxyInput(){super.updateProxyInput(),this.proxyInput&&(this.checked?(this.proxyInput.setAttribute("checked",""),this.proxyInput.value=this.value||""):this.proxyInput.value="")}handleKeyPress(r){r.key===" "&&this.onInput()}onInput(){if(!(this.readonly||this.disabled)){switch(this.checkboxState){case Ri.Checked:this.checked=!1;break;case Ri.Empty:this.checked=!0;break;case Ri.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 Ri.Checked:return ee`<brz-icon icon="checkBoxTick" size="16"></brz-icon>`;case Ri.Indeterminate:return ee`<brz-icon icon="zoomOut" size="16"></brz-icon>`;case Ri.Empty:default:return}}firstUpdated(){this.inputElement=this.renderRoot.querySelector("input"),this.indeterminate&&this.inputElement&&(this.inputElement.indeterminate=!0)}render(){return this.checkboxState=this.checked?Ri.Checked:this.indeterminate?Ri.Indeterminate:Ri.Empty,ee` <label>
1646
+ </brz-modal>`}};E2([F({type:Boolean})],exports.ConfirmationDialog.prototype,"open",2);exports.ConfirmationDialog=E2([Q(I2)],exports.ConfirmationDialog);var O9=Object.defineProperty,T9=Object.getOwnPropertyDescriptor,Ks=(r,n,o,c)=>{for(var f=c>1?void 0:c?T9(n,o):n,p=r.length-1,b;p>=0;p--)(b=r[p])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&O9(n,o,f),f};class Lo extends Ue{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(n){this.value=n.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(n){this.useProxy&&this.updateProxyInput()}}Ks([F({type:Boolean})],Lo.prototype,"disabled",2);Ks([F({type:Boolean,reflect:!0})],Lo.prototype,"invalid",2);Ks([F({type:String})],Lo.prototype,"name",2);Ks([F({type:String})],Lo.prototype,"id",2);Ks([F({type:String})],Lo.prototype,"value",2);Ks([pt()],Lo.prototype,"proxyInput",2);Ks([pt()],Lo.prototype,"useProxy",2);var P9=Object.defineProperty,A9=Object.getOwnPropertyDescriptor,hu=(r,n,o,c)=>{for(var f=c>1?void 0:c?A9(n,o):n,p=r.length-1,b;p>=0;p--)(b=r[p])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&P9(n,o,f),f};const N2=Ee("input-checkbox"),Ri={Checked:"Checked",Indeterminate:"Indeterminate",Empty:"Empty"};exports.InputCheckbox=class extends Lo{constructor(){super(...arguments),this.checked=!1,this.disabled=!1,this.indeterminate=!1,this.checkboxState=Ri.Empty,this.inputElement=null}updateProxyInput(){super.updateProxyInput(),this.proxyInput&&(this.checked?(this.proxyInput.setAttribute("checked",""),this.proxyInput.value=this.value||""):this.proxyInput.value="")}handleKeyPress(r){r.key===" "&&this.onInput()}onInput(){if(!this.disabled){switch(this.checkboxState){case Ri.Checked:this.checked=!1;break;case Ri.Empty:this.checked=!0;break;case Ri.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 Ri.Checked:return ee`<brz-icon icon="checkBoxTick" size="16"></brz-icon>`;case Ri.Indeterminate:return ee`<brz-icon icon="zoomOut" size="16"></brz-icon>`;case Ri.Empty:default:return}}firstUpdated(){this.inputElement=this.renderRoot.querySelector("input"),this.indeterminate&&this.inputElement&&(this.inputElement.indeterminate=!0)}render(){return this.checkboxState=this.checked?Ri.Checked:this.indeterminate?Ri.Indeterminate:Ri.Empty,ee` <label>
1647
1647
  <div
1648
1648
  class="checkbox"
1649
1649
  tabindex=${this.disabled?"-1":"0"}
@@ -1656,7 +1656,6 @@
1656
1656
  @change=${this.onInput}
1657
1657
  .value=${this.value}
1658
1658
  type="checkbox"
1659
- ?readonly=${this.readonly}
1660
1659
  ?checked=${this.checkboxState===Ri.Checked}
1661
1660
  aria-invalid=${qt(this.invalid?this.invalid:void 0)}
1662
1661
  id=${this.id}
@@ -1846,7 +1845,7 @@
1846
1845
  font-weight: var(--brz-font-weight-medium);
1847
1846
  line-height: var(--brz-line-height);
1848
1847
  }
1849
- `;exports.InputLabel=Ja([Q(B2)],exports.InputLabel);var Z9=Object.defineProperty,V9=Object.getOwnPropertyDescriptor,Qd=(r,n,o,c)=>{for(var f=c>1?void 0:c?V9(n,o):n,p=r.length-1,b;p>=0;p--)(b=r[p])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&Z9(n,o,f),f};const G9=ge`
1848
+ `;exports.InputLabel=Ja([Q(B2)],exports.InputLabel);var Z9=Object.defineProperty,V9=Object.getOwnPropertyDescriptor,B1=(r,n,o,c)=>{for(var f=c>1?void 0:c?V9(n,o):n,p=r.length-1,b;p>=0;p--)(b=r[p])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&Z9(n,o,f),f};const G9=ge`
1850
1849
  :host {
1851
1850
  --input-text-color: var(--brz-color-neutral-850);
1852
1851
  --input-font: var(--brz-font-family);
@@ -1880,9 +1879,11 @@
1880
1879
  }
1881
1880
 
1882
1881
  input::placeholder,
1883
- input[readonly]::placeholder,
1882
+ input:disabled::placeholder,
1883
+ input:read-only::placeholder,
1884
1884
  textarea::placeholder,
1885
- textarea[readonly]::placeholder {
1885
+ textarea:disabled::placeholder,
1886
+ textarea:read-only::placeholder {
1886
1887
  color: var(--input-placeholder-font-color);
1887
1888
  }
1888
1889
 
@@ -1891,8 +1892,16 @@
1891
1892
  border-color: var(--input-invalid-border-color);
1892
1893
  }
1893
1894
 
1894
- input:hover,
1895
- textarea:hover {
1895
+ input:disabled,
1896
+ input:read-only,
1897
+ textarea:disabled,
1898
+ textarea:read-only {
1899
+ background-color: var(--input-readonly-background-color);
1900
+ border-color: var(--input-readonly-border-color);
1901
+ }
1902
+
1903
+ input:hover:not(:disabled):not(:focus):not([aria-invalid]),
1904
+ textarea:hover:not(:disabled):not(:focus):not([aria-invalid]) {
1896
1905
  border-color: var(--input-hover-border-color);
1897
1906
  }
1898
1907
 
@@ -1902,12 +1911,6 @@
1902
1911
  outline: none;
1903
1912
  }
1904
1913
 
1905
- input[readonly],
1906
- textarea[readonly] {
1907
- background-color: var(--input-readonly-background-color);
1908
- border-color: var(--input-readonly-border-color);
1909
- }
1910
-
1911
1914
  .input-container {
1912
1915
  position: relative;
1913
1916
  }
@@ -1937,7 +1940,7 @@
1937
1940
  :host([trailing-icon]) input:not([type='search']) {
1938
1941
  padding-right: var(--input-icon-offset);
1939
1942
  }
1940
- `;class Rn extends exports.LabeledInput{renderInputContainer(){return ee`
1943
+ `;class zn extends exports.LabeledInput{constructor(){super(...arguments),this.readonly=!1}renderInputContainer(){return ee`
1941
1944
  <div class="input-container">
1942
1945
  ${this.leadingIcon?ee`<brz-icon icon=${this.leadingIcon} class="leading"></brz-icon>`:null}
1943
1946
  ${this.renderInput()}
@@ -1946,7 +1949,7 @@
1946
1949
  class="trailing"
1947
1950
  ></brz-icon>`:null}
1948
1951
  </div>
1949
- `}}Rn.styles=[...exports.LabeledInput.styles,G9];Qd([F({type:String})],Rn.prototype,"placeholder",2);Qd([F({type:String,reflect:!0,attribute:"leading-icon"})],Rn.prototype,"leadingIcon",2);Qd([F({type:String,reflect:!0,attribute:"trailing-icon"})],Rn.prototype,"trailingIcon",2);var q9=Object.defineProperty,j9=Object.getOwnPropertyDescriptor,B1=(r,n,o,c)=>{for(var f=c>1?void 0:c?j9(n,o):n,p=r.length-1,b;p>=0;p--)(b=r[p])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&q9(n,o,f),f};const F2=Ee("input-text");exports.InputText=class extends Rn{constructor(){super(...arguments),this.size="medium"}renderInput(){return ee`
1952
+ `}}zn.styles=[...exports.LabeledInput.styles,G9];B1([F({type:Boolean})],zn.prototype,"readonly",2);B1([F({type:String})],zn.prototype,"placeholder",2);B1([F({type:String,reflect:!0,attribute:"leading-icon"})],zn.prototype,"leadingIcon",2);B1([F({type:String,reflect:!0,attribute:"trailing-icon"})],zn.prototype,"trailingIcon",2);var q9=Object.defineProperty,j9=Object.getOwnPropertyDescriptor,F1=(r,n,o,c)=>{for(var f=c>1?void 0:c?j9(n,o):n,p=r.length-1,b;p>=0;p--)(b=r[p])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&q9(n,o,f),f};const F2=Ee("input-text");exports.InputText=class extends zn{constructor(){super(...arguments),this.size="medium"}renderInput(){return ee`
1950
1953
  <input
1951
1954
  @input=${this.onInput}
1952
1955
  .value=${qt(this.value)}
@@ -1955,29 +1958,30 @@
1955
1958
  placeholder=${qt(this.placeholder)}
1956
1959
  aria-invalid=${qt(this.invalid?this.invalid:void 0)}
1957
1960
  maxlength=${qt(this.maxlength)}
1961
+ ?disabled=${this.disabled}
1958
1962
  ?readonly=${this.readonly}
1959
1963
  />
1960
- `}};exports.InputText.styles=[...Rn.styles,ge`
1964
+ `}};exports.InputText.styles=[...zn.styles,ge`
1961
1965
  input {
1962
1966
  height: 36px;
1963
1967
  }
1964
- `];B1([F({type:String})],exports.InputText.prototype,"value",2);B1([F({type:String,reflect:!0})],exports.InputText.prototype,"size",2);B1([F({type:Number,reflect:!0})],exports.InputText.prototype,"maxlength",2);exports.InputText=B1([Q(F2)],exports.InputText);var K9=Object.defineProperty,X9=Object.getOwnPropertyDescriptor,F1=(r,n,o,c)=>{for(var f=c>1?void 0:c?X9(n,o):n,p=r.length-1,b;p>=0;p--)(b=r[p])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&K9(n,o,f),f};const W2=Ee("input-textarea");exports.InputTextarea=class extends Rn{constructor(){super(...arguments),this.size="x-large"}renderGuide(){var o;if(!this.maxlength)return null;const r=((o=this.value)==null?void 0:o.length)||0,n=ee`${r} of ${this.maxlength}`;return r>=this.maxlength?ee`<brz-input-error>${n}</brz-input-error>`:ee`<brz-input-guide>${n}</brz-input-guide>`}renderInput(){var r;return ee`
1968
+ `];F1([F({type:String})],exports.InputText.prototype,"value",2);F1([F({type:String,reflect:!0})],exports.InputText.prototype,"size",2);F1([F({type:Number,reflect:!0})],exports.InputText.prototype,"maxlength",2);exports.InputText=F1([Q(F2)],exports.InputText);var K9=Object.defineProperty,X9=Object.getOwnPropertyDescriptor,W1=(r,n,o,c)=>{for(var f=c>1?void 0:c?X9(n,o):n,p=r.length-1,b;p>=0;p--)(b=r[p])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&K9(n,o,f),f};const W2=Ee("input-textarea");exports.InputTextarea=class extends zn{constructor(){super(...arguments),this.size="x-large"}renderGuide(){var o;if(!this.maxlength)return null;const r=((o=this.value)==null?void 0:o.length)||0,n=ee`${r} of ${this.maxlength}`;return r>=this.maxlength?ee`<brz-input-error>${n}</brz-input-error>`:ee`<brz-input-guide>${n}</brz-input-guide>`}renderInput(){var r;return ee`
1965
1969
  <textarea
1966
1970
  @input=${this.onInput}
1967
1971
  .value=${(r=this.value)!=null?r:""}
1968
1972
  id=${this.id}
1969
- type="text"
1970
1973
  placeholder=${qt(this.placeholder)}
1971
1974
  aria-invalid=${qt(this.invalid?this.invalid:void 0)}
1972
1975
  maxlength=${qt(this.maxlength)}
1976
+ ?disabled=${this.disabled}
1973
1977
  ?readonly=${this.readonly}
1974
1978
  />
1975
- `}};exports.InputTextarea.styles=[...Rn.styles,ge`
1979
+ `}};exports.InputTextarea.styles=[...zn.styles,ge`
1976
1980
  textarea {
1977
1981
  height: 100px;
1978
1982
  resize: none;
1979
1983
  }
1980
- `];F1([F({type:String})],exports.InputTextarea.prototype,"value",2);F1([F({type:String,reflect:!0})],exports.InputTextarea.prototype,"size",2);F1([F({type:Number,reflect:!0,attribute:"maxlength"})],exports.InputTextarea.prototype,"maxlength",2);exports.InputTextarea=F1([Q(W2)],exports.InputTextarea);var Q9=Object.defineProperty,J9=Object.getOwnPropertyDescriptor,N0=(r,n,o,c)=>{for(var f=c>1?void 0:c?J9(n,o):n,p=r.length-1,b;p>=0;p--)(b=r[p])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&Q9(n,o,f),f};const U2=Ee("input-number"),e8=ge`
1984
+ `];W1([F({type:String})],exports.InputTextarea.prototype,"value",2);W1([F({type:String,reflect:!0})],exports.InputTextarea.prototype,"size",2);W1([F({type:Number,reflect:!0,attribute:"maxlength"})],exports.InputTextarea.prototype,"maxlength",2);exports.InputTextarea=W1([Q(W2)],exports.InputTextarea);var Q9=Object.defineProperty,J9=Object.getOwnPropertyDescriptor,N0=(r,n,o,c)=>{for(var f=c>1?void 0:c?J9(n,o):n,p=r.length-1,b;p>=0;p--)(b=r[p])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&Q9(n,o,f),f};const U2=Ee("input-number"),e8=ge`
1981
1985
  /* Chrome, Safari, Edge, Opera */
1982
1986
  input::-webkit-outer-spin-button,
1983
1987
  input::-webkit-inner-spin-button {
@@ -1989,11 +1993,11 @@
1989
1993
  input[type='number'] {
1990
1994
  -moz-appearance: textfield;
1991
1995
  }
1992
- `,Y2=["e"],Z2=r=>Y2.includes(r.toLowerCase()),t8=r=>!!Y2.find(n=>r.toLowerCase().includes(n)),r8=r=>{Z2(r.key)&&r.preventDefault()},n8=r=>{var c;const{clipboardData:n}=r||window,o=(c=n==null?void 0:n.getData("text"))==null?void 0:c.toLowerCase();!o||(Z2(o)||t8(o))&&(r.stopPropagation(),r.preventDefault())};exports.InputNumber=class extends Rn{constructor(){super(...arguments),this.hasNoStepper=!1,this.step="1"}getInput(){var n;const r=(n=this.shadowRoot)==null?void 0:n.querySelector("input");return r==null||r.focus(),r}handleIncrease(){var n;const r=this.getInput();r==null||r.stepUp(),this.handleSteppedChange((n=r==null?void 0:r.value)!=null?n:"")}handleDecrease(){var n;const r=this.getInput();r==null||r.stepDown(),this.handleSteppedChange((n=r==null?void 0:r.value)!=null?n:"")}handleSteppedChange(r){this.value=r,this.dispatchChange()}get stepperLayout(){return this.hasNoStepper?null:ee`
1996
+ `,Y2=["e"],Z2=r=>Y2.includes(r.toLowerCase()),t8=r=>!!Y2.find(n=>r.toLowerCase().includes(n)),r8=r=>{Z2(r.key)&&r.preventDefault()},n8=r=>{var c;const{clipboardData:n}=r||window,o=(c=n==null?void 0:n.getData("text"))==null?void 0:c.toLowerCase();!o||(Z2(o)||t8(o))&&(r.stopPropagation(),r.preventDefault())};exports.InputNumber=class extends zn{constructor(){super(...arguments),this.hasNoStepper=!1,this.step="1"}getInput(){var n;const r=(n=this.shadowRoot)==null?void 0:n.querySelector("input");return r==null||r.focus(),r}handleIncrease(){var n;const r=this.getInput();r==null||r.stepUp(),this.handleSteppedChange((n=r==null?void 0:r.value)!=null?n:"")}handleDecrease(){var n;const r=this.getInput();r==null||r.stepDown(),this.handleSteppedChange((n=r==null?void 0:r.value)!=null?n:"")}handleSteppedChange(r){this.value=r,this.dispatchChange()}get stepperLayout(){return this.hasNoStepper?null:ee`
1993
1997
  <div class="stepper-container">
1994
1998
  <button
1995
1999
  @click=${this.handleDecrease}
1996
- ?disabled=${this.readonly}
2000
+ ?disabled=${this.readonly||this.disabled}
1997
2001
  tabindex="-1"
1998
2002
  class="stepper"
1999
2003
  aria-label="Decrease"
@@ -2002,7 +2006,7 @@
2002
2006
  </button>
2003
2007
  <button
2004
2008
  @click=${this.handleIncrease}
2005
- ?disabled=${this.readonly}
2009
+ ?disabled=${this.readonly||this.disabled}
2006
2010
  tabindex="-1"
2007
2011
  class="stepper"
2008
2012
  aria-label="Increase"
@@ -2020,6 +2024,7 @@
2020
2024
  .value=${this.value}
2021
2025
  .step=${this.step}
2022
2026
  type="number"
2027
+ ?disabled=${this.disabled}
2023
2028
  ?readonly=${this.readonly}
2024
2029
  placeholder=${qt(this.placeholder)}
2025
2030
  aria-invalid=${qt(this.invalid?this.invalid:void 0)}
@@ -2027,7 +2032,7 @@
2027
2032
  min=${qt(this.min)}
2028
2033
  max=${qt(this.max)}
2029
2034
  />
2030
- </div>`}};exports.InputNumber.styles=[...Rn.styles,e8,ge`
2035
+ </div>`}};exports.InputNumber.styles=[...zn.styles,e8,ge`
2031
2036
  :host(:not[has-no-stepper]) input {
2032
2037
  padding-right: var(--brz-spacing-20);
2033
2038
  }
@@ -2046,7 +2051,7 @@
2046
2051
  height: 100%;
2047
2052
  }
2048
2053
 
2049
- .stepper-container:hover + input:not(:focus) {
2054
+ .stepper-container:hover + input:not(:focus):not(:disabled) {
2050
2055
  border-color: var(--input-hover-border-color);
2051
2056
  }
2052
2057
 
@@ -2075,7 +2080,7 @@
2075
2080
  * @license
2076
2081
  * Copyright 2017 Google LLC
2077
2082
  * SPDX-License-Identifier: BSD-3-Clause
2078
- */class Sd extends D1{constructor(n){if(super(n),this.it=Cr,n.type!==E1.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(n){if(n===Cr||n==null)return this._t=void 0,this.it=n;if(n===yo)return n;if(typeof n!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(n===this.it)return this._t;this.it=n;const o=[n];return o.raw=o,this._t={_$litType$:this.constructor.resultType,strings:o,values:[]}}}Sd.directiveName="unsafeHTML",Sd.resultType=1;const i8=I1(Sd);var o8=Object.defineProperty,a8=Object.getOwnPropertyDescriptor,Xs=(r,n,o,c)=>{for(var f=c>1?void 0:c?a8(n,o):n,p=r.length-1,b;p>=0;p--)(b=r[p])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&o8(n,o,f),f};const V2=Ee("input-radio-group"),G2=Ee("input-radio-option");exports.InputRadio=class extends exports.LabeledInput{constructor(){super(...arguments),this.layout="vertical",this.size="auto",this._radioElements=[]}handleSlotChange(){this._radioElements=this._findRadioOptions()}_findRadioOptions(){var n;const r=(n=this.shadowRoot)==null?void 0:n.querySelector("#options");return Array.from(r.assignedElements()).filter(o=>o instanceof exports.InputRadioOption)}radioChange(r){const n=r.target;this.value=n.value,this.dispatchChange()}renderInput(){return ee`
2083
+ */class Md extends D1{constructor(n){if(super(n),this.it=Cr,n.type!==E1.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(n){if(n===Cr||n==null)return this._t=void 0,this.it=n;if(n===yo)return n;if(typeof n!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(n===this.it)return this._t;this.it=n;const o=[n];return o.raw=o,this._t={_$litType$:this.constructor.resultType,strings:o,values:[]}}}Md.directiveName="unsafeHTML",Md.resultType=1;const i8=I1(Md);var o8=Object.defineProperty,a8=Object.getOwnPropertyDescriptor,Xs=(r,n,o,c)=>{for(var f=c>1?void 0:c?a8(n,o):n,p=r.length-1,b;p>=0;p--)(b=r[p])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&o8(n,o,f),f};const V2=Ee("input-radio-group"),G2=Ee("input-radio-option");exports.InputRadio=class extends exports.LabeledInput{constructor(){super(...arguments),this.layout="vertical",this.size="auto",this._radioElements=[]}handleSlotChange(){this._radioElements=this._findRadioOptions()}_findRadioOptions(){var n;const r=(n=this.shadowRoot)==null?void 0:n.querySelector("#options");return Array.from(r.assignedElements()).filter(o=>o instanceof exports.InputRadioOption)}radioChange(r){const n=r.target;this.value=n.value,this.dispatchChange()}renderInput(){return ee`
2079
2084
  <slot
2080
2085
  id="options"
2081
2086
  style="display: none;"
@@ -2083,14 +2088,14 @@
2083
2088
  ></slot>
2084
2089
 
2085
2090
  <fieldset @change=${this.radioChange}>
2086
- ${this._radioElements.map(r=>{var o;const n=r.value.toString()===((o=this.value)==null?void 0:o.toString());return ee` <div>
2091
+ ${this._radioElements.map(r=>{var o,c;const n=((o=r.value)==null?void 0:o.toString())===((c=this.value)==null?void 0:c.toString());return ee` <div>
2087
2092
  <input
2088
2093
  id=${r.value}
2089
2094
  type="radio"
2090
2095
  name=${this.name}
2091
2096
  value=${r.value}
2092
2097
  ?checked=${n}
2093
- ?disabled=${r.disabled||this.readonly}
2098
+ ?disabled=${r.disabled||this.disabled}
2094
2099
  />
2095
2100
  <label for=${r.value}>${i8(r.innerHTML)}</label>
2096
2101
  </div>`})}
@@ -2131,10 +2136,13 @@
2131
2136
 
2132
2137
  input[type='radio'] + label {
2133
2138
  position: relative;
2134
- cursor: pointer;
2135
2139
  display: inline-block;
2136
2140
  }
2137
2141
 
2142
+ input[type='radio']:not(:disabled) + label {
2143
+ cursor: pointer;
2144
+ }
2145
+
2138
2146
  input[type='radio']:disabled + label {
2139
2147
  color: var(--brz-color-text-placeholder);
2140
2148
  }
@@ -2197,30 +2205,30 @@
2197
2205
  input[type='radio']:checked:disabled + label::after {
2198
2206
  background-color: var(--brz-color-neutral-450);
2199
2207
  }
2200
- `];Xs([F({type:String,reflect:!0})],exports.InputRadio.prototype,"layout",2);Xs([F({type:String,reflect:!0})],exports.InputRadio.prototype,"size",2);Xs([pt()],exports.InputRadio.prototype,"_radioElements",2);exports.InputRadio=Xs([Q(V2)],exports.InputRadio);exports.InputRadioOption=class extends Ue{render(){}};Xs([F({type:String})],exports.InputRadioOption.prototype,"value",2);Xs([F({type:Boolean})],exports.InputRadioOption.prototype,"disabled",2);exports.InputRadioOption=Xs([Q(G2)],exports.InputRadioOption);var Jl=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},hd={exports:{}},Tp;function es(){return Tp||(Tp=1,function(r,n){(function(o,c){r.exports=c()})(Jl,function(){var o=navigator.userAgent,c=navigator.platform,f=/gecko\/\d/i.test(o),p=/MSIE \d/.test(o),b=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(o),M=/Edge\/(\d+)/.exec(o),S=p||b||M,O=S&&(p?document.documentMode||6:+(M||b)[1]),I=!M&&/WebKit\//.test(o),U=I&&/Qt\/\d+\.\d+/.test(o),q=!M&&/Chrome\//.test(o),X=/Opera\//.test(o),ce=/Apple Computer/.test(navigator.vendor),xe=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(o),ye=/PhantomJS/.test(o),Ae=ce&&(/Mobile\/\w+/.test(o)||navigator.maxTouchPoints>2),Ie=/Android/.test(o),pe=Ae||Ie||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(o),he=Ae||/Mac/.test(c),Te=/\bCrOS\b/.test(o),He=/win/i.test(c),Ye=X&&o.match(/Version\/(\d*\.\d*)/);Ye&&(Ye=Number(Ye[1])),Ye&&Ye>=15&&(X=!1,I=!0);var et=he&&(U||X&&(Ye==null||Ye<12.11)),nt=f||S&&O>=9;function ve(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var Ce=function(e,t){var s=e.className,a=ve(t).exec(s);if(a){var u=s.slice(a.index+a[0].length);e.className=s.slice(0,a.index)+(u?a[1]+u:"")}};function it(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild);return e}function W(e,t){return it(e).appendChild(t)}function E(e,t,s,a){var u=document.createElement(e);if(s&&(u.className=s),a&&(u.style.cssText=a),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 T(e,t,s,a){var u=E(e,t,s,a);return u.setAttribute("role","presentation"),u}var ne;document.createRange?ne=function(e,t,s,a){var u=document.createRange();return u.setEnd(a||e,s),u.setStart(e,t),u}:ne=function(e,t,s){var a=document.body.createTextRange();try{a.moveToElementText(e.parentNode)}catch{return a}return a.collapse(!0),a.moveEnd("character",s),a.moveStart("character",t),a};function be(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 ot(){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 At(e,t){var s=e.className;ve(t).test(s)||(e.className+=(s?" ":"")+t)}function sr(e,t){for(var s=e.split(" "),a=0;a<s.length;a++)s[a]&&!ve(s[a]).test(t)&&(t+=" "+s[a]);return t}var Bt=function(e){e.select()};Ae?Bt=function(e){e.selectionStart=0,e.selectionEnd=e.value.length}:S&&(Bt=function(e){try{e.select()}catch{}});function dn(e){var t=Array.prototype.slice.call(arguments,1);return function(){return e.apply(null,t)}}function er(e,t,s){t||(t={});for(var a in e)e.hasOwnProperty(a)&&(s!==!1||!t.hasOwnProperty(a))&&(t[a]=e[a]);return t}function Ft(e,t,s,a,u){t==null&&(t=e.search(/[^\s\u00a0]/),t==-1&&(t=e.length));for(var h=a||0,g=u||0;;){var m=e.indexOf(" ",h);if(m<0||m>=t)return g+(t-h);g+=m-h,g+=s-g%s,h=m+1}}var ut=function(){this.id=null,this.f=null,this.time=0,this.handler=dn(this.onTimeout,this)};ut.prototype.onTimeout=function(e){e.id=0,e.time<=+new Date?e.f():setTimeout(e.handler,e.time-+new Date)},ut.prototype.set=function(e,t){this.f=t;var s=+new Date+e;(!this.id||s<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,e),this.time=s)};function _e(e,t){for(var s=0;s<e.length;++s)if(e[s]==t)return s;return-1}var Fe=50,Ze={toString:function(){return"CodeMirror.Pass"}},at={scroll:!1},st={origin:"*mouse"},We={origin:"+move"};function Vt(e,t,s){for(var a=0,u=0;;){var h=e.indexOf(" ",a);h==-1&&(h=e.length);var g=h-a;if(h==e.length||u+g>=t)return a+Math.min(g,t-u);if(u+=h-a,u+=s-u%s,a=h+1,u>=t)return a}}var qr=[""];function lr(e){for(;qr.length<=e;)qr.push(Xe(qr)+" ");return qr[e]}function Xe(e){return e[e.length-1]}function yt(e,t){for(var s=[],a=0;a<e.length;a++)s[a]=t(e[a],a);return s}function Mt(e,t,s){for(var a=0,u=s(t);a<e.length&&s(e[a])<=u;)a++;e.splice(a,0,t)}function $r(){}function rn(e,t){var s;return Object.create?s=Object.create(e):($r.prototype=e,s=new $r),t&&er(t,s),s}var fr=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function tt(e){return/\w/.test(e)||e>"\x80"&&(e.toUpperCase()!=e.toLowerCase()||fr.test(e))}function B(e,t){return t?t.source.indexOf("\\w")>-1&&tt(e)?!0:t.test(e):tt(e)}function oe(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return!1;return!0}var V=/[\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 Qe(e){return e.charCodeAt(0)>=768&&V.test(e)}function dr(e,t,s){for(;(s<0?t>0:t<e.length)&&Qe(e.charAt(t));)t+=s;return t}function kr(e,t,s){for(var a=t>s?-1:1;;){if(t==s)return t;var u=(t+s)/2,h=a<0?Math.ceil(u):Math.floor(u);if(h==t)return e(h)?t:s;e(h)?s=h:t=h+a}}function $n(e,t,s,a){if(!e)return a(t,s,"ltr",0);for(var u=!1,h=0;h<e.length;++h){var g=e[h];(g.from<s&&g.to>t||t==s&&g.to==t)&&(a(Math.max(g.from,t),Math.min(g.to,s),g.level==1?"rtl":"ltr",h),u=!0)}u||a(t,s,"ltr")}var jr=null;function Zt(e,t,s){var a;jr=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&&s=="before"?a=u:jr=u),h.from==t&&(h.from!=h.to&&s!="before"?a=u:jr=u)}return a!=null?a:jr}var zi=function(){var e="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",t="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function s(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 a=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,u=/[stwN]/,h=/[LRr]/,g=/[Lb1n]/,m=/[1n]/;function y(C,_,k){this.level=C,this.from=_,this.to=k}return function(C,_){var k=_=="ltr"?"L":"R";if(C.length==0||_=="ltr"&&!a.test(C))return!1;for(var N=C.length,R=[],Z=0;Z<N;++Z)R.push(s(C.charCodeAt(Z)));for(var J=0,le=k;J<N;++J){var fe=R[J];fe=="m"?R[J]=le:le=fe}for(var we=0,de=k;we<N;++we){var ze=R[we];ze=="1"&&de=="r"?R[we]="n":h.test(ze)&&(de=ze,ze=="r"&&(R[we]="R"))}for(var Re=1,Pe=R[0];Re<N-1;++Re){var lt=R[Re];lt=="+"&&Pe=="1"&&R[Re+1]=="1"?R[Re]="1":lt==","&&Pe==R[Re+1]&&(Pe=="1"||Pe=="n")&&(R[Re]=Pe),Pe=lt}for(var Ot=0;Ot<N;++Ot){var ur=R[Ot];if(ur==",")R[Ot]="N";else if(ur=="%"){var Rt=void 0;for(Rt=Ot+1;Rt<N&&R[Rt]=="%";++Rt);for(var Ur=Ot&&R[Ot-1]=="!"||Rt<N&&R[Rt]=="1"?"1":"N",Yr=Ot;Yr<Rt;++Yr)R[Yr]=Ur;Ot=Rt-1}}for(var rr=0,Sr=k;rr<N;++rr){var gr=R[rr];Sr=="L"&&gr=="1"?R[rr]="L":h.test(gr)&&(Sr=gr)}for(var It=0;It<N;++It)if(u.test(R[It])){var Ht=void 0;for(Ht=It+1;Ht<N&&u.test(R[Ht]);++Ht);for(var Xt=(It?R[It-1]:k)=="L",Zr=(Ht<N?R[Ht]:k)=="L",Ya=Xt==Zr?Xt?"L":"R":k,bo=It;bo<Ht;++bo)R[bo]=Ya;It=Ht-1}for(var Rr=[],hi,vr=0;vr<N;)if(g.test(R[vr])){var c0=vr;for(++vr;vr<N&&g.test(R[vr]);++vr);Rr.push(new y(0,c0,vr))}else{var Ei=vr,Ko=Rr.length,Xo=_=="rtl"?1:0;for(++vr;vr<N&&R[vr]!="L";++vr);for(var Vr=Ei;Vr<vr;)if(m.test(R[Vr])){Ei<Vr&&(Rr.splice(Ko,0,new y(1,Ei,Vr)),Ko+=Xo);var Za=Vr;for(++Vr;Vr<vr&&m.test(R[Vr]);++Vr);Rr.splice(Ko,0,new y(2,Za,Vr)),Ko+=Xo,Ei=Vr}else++Vr;Ei<vr&&Rr.splice(Ko,0,new y(1,Ei,vr))}return _=="ltr"&&(Rr[0].level==1&&(hi=C.match(/^\s+/))&&(Rr[0].from=hi[0].length,Rr.unshift(new y(0,0,hi[0].length))),Xe(Rr).level==1&&(hi=C.match(/\s+$/))&&(Xe(Rr).to-=hi[0].length,Rr.push(new y(0,N-hi[0].length,N)))),_=="rtl"?Rr.reverse():Rr}}();function Hr(e,t){var s=e.order;return s==null&&(s=e.order=zi(e.text,t)),s}var Hn=[],$e=function(e,t,s){if(e.addEventListener)e.addEventListener(t,s,!1);else if(e.attachEvent)e.attachEvent("on"+t,s);else{var a=e._handlers||(e._handlers={});a[t]=(a[t]||Hn).concat(s)}};function Yi(e,t){return e._handlers&&e._handlers[t]||Hn}function Mr(e,t,s){if(e.removeEventListener)e.removeEventListener(t,s,!1);else if(e.detachEvent)e.detachEvent("on"+t,s);else{var a=e._handlers,u=a&&a[t];if(u){var h=_e(u,s);h>-1&&(a[t]=u.slice(0,h).concat(u.slice(h+1)))}}}function Ge(e,t){var s=Yi(e,t);if(!!s.length)for(var a=Array.prototype.slice.call(arguments,2),u=0;u<s.length;++u)s[u].apply(null,a)}function ir(e,t,s){return typeof t=="string"&&(t={type:t,preventDefault:function(){this.defaultPrevented=!0}}),Ge(e,s||t.type,e,t),hn(t)||t.codemirrorIgnore}function ha(e){var t=e._handlers&&e._handlers.cursorActivity;if(!!t)for(var s=e.curOp.cursorActivityHandlers||(e.curOp.cursorActivityHandlers=[]),a=0;a<t.length;++a)_e(s,t[a])==-1&&s.push(t[a])}function wr(e,t){return Yi(e,t).length>0}function Bn(e){e.prototype.on=function(t,s){$e(this,t,s)},e.prototype.off=function(t,s){Mr(this,t,s)}}function xr(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function pa(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function hn(e){return e.defaultPrevented!=null?e.defaultPrevented:e.returnValue==!1}function Mo(e){xr(e),pa(e)}function Zi(e){return e.target||e.srcElement}function rs(e){var t=e.which;return t==null&&(e.button&1?t=1:e.button&2?t=3:e.button&4&&(t=2)),he&&e.ctrlKey&&t==1&&(t=3),t}var ns=function(){if(S&&O<9)return!1;var e=E("div");return"draggable"in e||"dragDrop"in e}(),Kr;function Js(e){if(Kr==null){var t=E("span","\u200B");W(e,E("span",[t,document.createTextNode("x")])),e.firstChild.offsetHeight!=0&&(Kr=t.offsetWidth<=1&&t.offsetHeight>2&&!(S&&O<8))}var s=Kr?E("span","\u200B"):E("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return s.setAttribute("cm-text",""),s}var Oo;function ni(e){if(Oo!=null)return Oo;var t=W(e,document.createTextNode("A\u062EA")),s=ne(t,0,1).getBoundingClientRect(),a=ne(t,1,2).getBoundingClientRect();return it(e),!s||s.left==s.right?!1:Oo=a.right-s.right<3}var To=`
2208
+ `];Xs([F({type:String,reflect:!0})],exports.InputRadio.prototype,"layout",2);Xs([F({type:String,reflect:!0})],exports.InputRadio.prototype,"size",2);Xs([pt()],exports.InputRadio.prototype,"_radioElements",2);exports.InputRadio=Xs([Q(V2)],exports.InputRadio);exports.InputRadioOption=class extends Ue{render(){}};Xs([F({type:String})],exports.InputRadioOption.prototype,"value",2);Xs([F({type:Boolean})],exports.InputRadioOption.prototype,"disabled",2);exports.InputRadioOption=Xs([Q(G2)],exports.InputRadioOption);var Jl=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},pd={exports:{}},Tp;function es(){return Tp||(Tp=1,function(r,n){(function(o,c){r.exports=c()})(Jl,function(){var o=navigator.userAgent,c=navigator.platform,f=/gecko\/\d/i.test(o),p=/MSIE \d/.test(o),b=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(o),k=/Edge\/(\d+)/.exec(o),S=p||b||k,O=S&&(p?document.documentMode||6:+(k||b)[1]),I=!k&&/WebKit\//.test(o),U=I&&/Qt\/\d+\.\d+/.test(o),q=!k&&/Chrome\//.test(o),X=/Opera\//.test(o),ce=/Apple Computer/.test(navigator.vendor),xe=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(o),ye=/PhantomJS/.test(o),Ae=ce&&(/Mobile\/\w+/.test(o)||navigator.maxTouchPoints>2),Ie=/Android/.test(o),pe=Ae||Ie||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(o),he=Ae||/Mac/.test(c),Te=/\bCrOS\b/.test(o),He=/win/i.test(c),Ye=X&&o.match(/Version\/(\d*\.\d*)/);Ye&&(Ye=Number(Ye[1])),Ye&&Ye>=15&&(X=!1,I=!0);var et=he&&(U||X&&(Ye==null||Ye<12.11)),nt=f||S&&O>=9;function ve(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var Ce=function(e,t){var s=e.className,a=ve(t).exec(s);if(a){var u=s.slice(a.index+a[0].length);e.className=s.slice(0,a.index)+(u?a[1]+u:"")}};function it(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild);return e}function W(e,t){return it(e).appendChild(t)}function E(e,t,s,a){var u=document.createElement(e);if(s&&(u.className=s),a&&(u.style.cssText=a),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 T(e,t,s,a){var u=E(e,t,s,a);return u.setAttribute("role","presentation"),u}var ne;document.createRange?ne=function(e,t,s,a){var u=document.createRange();return u.setEnd(a||e,s),u.setStart(e,t),u}:ne=function(e,t,s){var a=document.body.createTextRange();try{a.moveToElementText(e.parentNode)}catch{return a}return a.collapse(!0),a.moveEnd("character",s),a.moveStart("character",t),a};function be(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 ot(){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 At(e,t){var s=e.className;ve(t).test(s)||(e.className+=(s?" ":"")+t)}function sr(e,t){for(var s=e.split(" "),a=0;a<s.length;a++)s[a]&&!ve(s[a]).test(t)&&(t+=" "+s[a]);return t}var Bt=function(e){e.select()};Ae?Bt=function(e){e.selectionStart=0,e.selectionEnd=e.value.length}:S&&(Bt=function(e){try{e.select()}catch{}});function dn(e){var t=Array.prototype.slice.call(arguments,1);return function(){return e.apply(null,t)}}function er(e,t,s){t||(t={});for(var a in e)e.hasOwnProperty(a)&&(s!==!1||!t.hasOwnProperty(a))&&(t[a]=e[a]);return t}function Ft(e,t,s,a,u){t==null&&(t=e.search(/[^\s\u00a0]/),t==-1&&(t=e.length));for(var h=a||0,g=u||0;;){var m=e.indexOf(" ",h);if(m<0||m>=t)return g+(t-h);g+=m-h,g+=s-g%s,h=m+1}}var ut=function(){this.id=null,this.f=null,this.time=0,this.handler=dn(this.onTimeout,this)};ut.prototype.onTimeout=function(e){e.id=0,e.time<=+new Date?e.f():setTimeout(e.handler,e.time-+new Date)},ut.prototype.set=function(e,t){this.f=t;var s=+new Date+e;(!this.id||s<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,e),this.time=s)};function _e(e,t){for(var s=0;s<e.length;++s)if(e[s]==t)return s;return-1}var Fe=50,Ze={toString:function(){return"CodeMirror.Pass"}},at={scroll:!1},st={origin:"*mouse"},We={origin:"+move"};function Vt(e,t,s){for(var a=0,u=0;;){var h=e.indexOf(" ",a);h==-1&&(h=e.length);var g=h-a;if(h==e.length||u+g>=t)return a+Math.min(g,t-u);if(u+=h-a,u+=s-u%s,a=h+1,u>=t)return a}}var qr=[""];function lr(e){for(;qr.length<=e;)qr.push(Xe(qr)+" ");return qr[e]}function Xe(e){return e[e.length-1]}function yt(e,t){for(var s=[],a=0;a<e.length;a++)s[a]=t(e[a],a);return s}function kt(e,t,s){for(var a=0,u=s(t);a<e.length&&s(e[a])<=u;)a++;e.splice(a,0,t)}function $r(){}function rn(e,t){var s;return Object.create?s=Object.create(e):($r.prototype=e,s=new $r),t&&er(t,s),s}var fr=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function tt(e){return/\w/.test(e)||e>"\x80"&&(e.toUpperCase()!=e.toLowerCase()||fr.test(e))}function B(e,t){return t?t.source.indexOf("\\w")>-1&&tt(e)?!0:t.test(e):tt(e)}function oe(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return!1;return!0}var V=/[\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 Qe(e){return e.charCodeAt(0)>=768&&V.test(e)}function dr(e,t,s){for(;(s<0?t>0:t<e.length)&&Qe(e.charAt(t));)t+=s;return t}function Mr(e,t,s){for(var a=t>s?-1:1;;){if(t==s)return t;var u=(t+s)/2,h=a<0?Math.ceil(u):Math.floor(u);if(h==t)return e(h)?t:s;e(h)?s=h:t=h+a}}function $n(e,t,s,a){if(!e)return a(t,s,"ltr",0);for(var u=!1,h=0;h<e.length;++h){var g=e[h];(g.from<s&&g.to>t||t==s&&g.to==t)&&(a(Math.max(g.from,t),Math.min(g.to,s),g.level==1?"rtl":"ltr",h),u=!0)}u||a(t,s,"ltr")}var jr=null;function Zt(e,t,s){var a;jr=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&&s=="before"?a=u:jr=u),h.from==t&&(h.from!=h.to&&s!="before"?a=u:jr=u)}return a!=null?a:jr}var zi=function(){var e="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",t="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function s(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 a=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,u=/[stwN]/,h=/[LRr]/,g=/[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"&&!a.test(C))return!1;for(var N=C.length,R=[],Z=0;Z<N;++Z)R.push(s(C.charCodeAt(Z)));for(var J=0,le=M;J<N;++J){var fe=R[J];fe=="m"?R[J]=le:le=fe}for(var we=0,de=M;we<N;++we){var ze=R[we];ze=="1"&&de=="r"?R[we]="n":h.test(ze)&&(de=ze,ze=="r"&&(R[we]="R"))}for(var Re=1,Pe=R[0];Re<N-1;++Re){var lt=R[Re];lt=="+"&&Pe=="1"&&R[Re+1]=="1"?R[Re]="1":lt==","&&Pe==R[Re+1]&&(Pe=="1"||Pe=="n")&&(R[Re]=Pe),Pe=lt}for(var Ot=0;Ot<N;++Ot){var ur=R[Ot];if(ur==",")R[Ot]="N";else if(ur=="%"){var Rt=void 0;for(Rt=Ot+1;Rt<N&&R[Rt]=="%";++Rt);for(var Ur=Ot&&R[Ot-1]=="!"||Rt<N&&R[Rt]=="1"?"1":"N",Yr=Ot;Yr<Rt;++Yr)R[Yr]=Ur;Ot=Rt-1}}for(var rr=0,Sr=M;rr<N;++rr){var gr=R[rr];Sr=="L"&&gr=="1"?R[rr]="L":h.test(gr)&&(Sr=gr)}for(var It=0;It<N;++It)if(u.test(R[It])){var Ht=void 0;for(Ht=It+1;Ht<N&&u.test(R[Ht]);++Ht);for(var Xt=(It?R[It-1]:M)=="L",Zr=(Ht<N?R[Ht]:M)=="L",Ya=Xt==Zr?Xt?"L":"R":M,bo=It;bo<Ht;++bo)R[bo]=Ya;It=Ht-1}for(var Rr=[],hi,vr=0;vr<N;)if(g.test(R[vr])){var c0=vr;for(++vr;vr<N&&g.test(R[vr]);++vr);Rr.push(new y(0,c0,vr))}else{var Ei=vr,Ko=Rr.length,Xo=_=="rtl"?1:0;for(++vr;vr<N&&R[vr]!="L";++vr);for(var Vr=Ei;Vr<vr;)if(m.test(R[Vr])){Ei<Vr&&(Rr.splice(Ko,0,new y(1,Ei,Vr)),Ko+=Xo);var Za=Vr;for(++Vr;Vr<vr&&m.test(R[Vr]);++Vr);Rr.splice(Ko,0,new y(2,Za,Vr)),Ko+=Xo,Ei=Vr}else++Vr;Ei<vr&&Rr.splice(Ko,0,new y(1,Ei,vr))}return _=="ltr"&&(Rr[0].level==1&&(hi=C.match(/^\s+/))&&(Rr[0].from=hi[0].length,Rr.unshift(new y(0,0,hi[0].length))),Xe(Rr).level==1&&(hi=C.match(/\s+$/))&&(Xe(Rr).to-=hi[0].length,Rr.push(new y(0,N-hi[0].length,N)))),_=="rtl"?Rr.reverse():Rr}}();function Hr(e,t){var s=e.order;return s==null&&(s=e.order=zi(e.text,t)),s}var Hn=[],$e=function(e,t,s){if(e.addEventListener)e.addEventListener(t,s,!1);else if(e.attachEvent)e.attachEvent("on"+t,s);else{var a=e._handlers||(e._handlers={});a[t]=(a[t]||Hn).concat(s)}};function Yi(e,t){return e._handlers&&e._handlers[t]||Hn}function kr(e,t,s){if(e.removeEventListener)e.removeEventListener(t,s,!1);else if(e.detachEvent)e.detachEvent("on"+t,s);else{var a=e._handlers,u=a&&a[t];if(u){var h=_e(u,s);h>-1&&(a[t]=u.slice(0,h).concat(u.slice(h+1)))}}}function Ge(e,t){var s=Yi(e,t);if(!!s.length)for(var a=Array.prototype.slice.call(arguments,2),u=0;u<s.length;++u)s[u].apply(null,a)}function ir(e,t,s){return typeof t=="string"&&(t={type:t,preventDefault:function(){this.defaultPrevented=!0}}),Ge(e,s||t.type,e,t),hn(t)||t.codemirrorIgnore}function ha(e){var t=e._handlers&&e._handlers.cursorActivity;if(!!t)for(var s=e.curOp.cursorActivityHandlers||(e.curOp.cursorActivityHandlers=[]),a=0;a<t.length;++a)_e(s,t[a])==-1&&s.push(t[a])}function wr(e,t){return Yi(e,t).length>0}function Bn(e){e.prototype.on=function(t,s){$e(this,t,s)},e.prototype.off=function(t,s){kr(this,t,s)}}function xr(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function pa(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function hn(e){return e.defaultPrevented!=null?e.defaultPrevented:e.returnValue==!1}function ko(e){xr(e),pa(e)}function Zi(e){return e.target||e.srcElement}function rs(e){var t=e.which;return t==null&&(e.button&1?t=1:e.button&2?t=3:e.button&4&&(t=2)),he&&e.ctrlKey&&t==1&&(t=3),t}var ns=function(){if(S&&O<9)return!1;var e=E("div");return"draggable"in e||"dragDrop"in e}(),Kr;function Js(e){if(Kr==null){var t=E("span","\u200B");W(e,E("span",[t,document.createTextNode("x")])),e.firstChild.offsetHeight!=0&&(Kr=t.offsetWidth<=1&&t.offsetHeight>2&&!(S&&O<8))}var s=Kr?E("span","\u200B"):E("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return s.setAttribute("cm-text",""),s}var Oo;function ni(e){if(Oo!=null)return Oo;var t=W(e,document.createTextNode("A\u062EA")),s=ne(t,0,1).getBoundingClientRect(),a=ne(t,1,2).getBoundingClientRect();return it(e),!s||s.left==s.right?!1:Oo=a.right-s.right<3}var To=`
2201
2209
 
2202
2210
  b`.split(/\n/).length!=3?function(e){for(var t=0,s=[],a=e.length;t<=a;){var u=e.indexOf(`
2203
- `,t);u==-1&&(u=e.length);var h=e.slice(t,e.charAt(u-1)=="\r"?u-1:u),g=h.indexOf("\r");g!=-1?(s.push(h.slice(0,g)),t+=g+1):(s.push(h),t=u+1)}return s}:function(e){return e.split(/\r\n?|\n/)},el=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},tl=function(){var e=E("div");return"oncopy"in e?!0:(e.setAttribute("oncopy","return;"),typeof e.oncopy=="function")}(),is=null;function Vi(e){if(is!=null)return is;var t=W(e,E("span","x")),s=t.getBoundingClientRect(),a=ne(t,0,1).getBoundingClientRect();return is=Math.abs(s.left-a.left)>1}var zn={},pn={};function rl(e,t){arguments.length>2&&(t.dependencies=Array.prototype.slice.call(arguments,2)),zn[e]=t}function Li(e,t){pn[e]=t}function Po(e){if(typeof e=="string"&&pn.hasOwnProperty(e))e=pn[e];else if(e&&typeof e.name=="string"&&pn.hasOwnProperty(e.name)){var t=pn[e.name];typeof t=="string"&&(t={name:t}),e=rn(t,e),e.name=t.name}else{if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return Po("application/xml");if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return Po("application/json")}return typeof e=="string"?{name:e}:e||{name:"null"}}function ga(e,t){t=Po(t);var s=zn[t.name];if(!s)return ga(e,"text/plain");var a=s(e,t);if(Fn.hasOwnProperty(t.name)){var u=Fn[t.name];for(var h in u)!u.hasOwnProperty(h)||(a.hasOwnProperty(h)&&(a["_"+h]=a[h]),a[h]=u[h])}if(a.name=t.name,t.helperType&&(a.helperType=t.helperType),t.modeProps)for(var g in t.modeProps)a[g]=t.modeProps[g];return a}var Fn={};function Wn(e,t){var s=Fn.hasOwnProperty(e)?Fn[e]:Fn[e]={};er(t,s)}function gn(e,t){if(t===!0)return t;if(e.copyState)return e.copyState(t);var s={};for(var a in t){var u=t[a];u instanceof Array&&(u=u.concat([])),s[a]=u}return s}function os(e,t){for(var s;e.innerMode&&(s=e.innerMode(t),!(!s||s.mode==e));)t=s.state,e=s.mode;return s||{mode:e,state:t}}function as(e,t,s){return e.startState?e.startState(t,s):!0}var Wt=function(e,t,s){this.pos=this.start=0,this.string=e,this.tabSize=t||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=s};Wt.prototype.eol=function(){return this.pos>=this.string.length},Wt.prototype.sol=function(){return this.pos==this.lineStart},Wt.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Wt.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},Wt.prototype.eat=function(e){var t=this.string.charAt(this.pos),s;if(typeof e=="string"?s=t==e:s=t&&(e.test?e.test(t):e(t)),s)return++this.pos,t},Wt.prototype.eatWhile=function(e){for(var t=this.pos;this.eat(e););return this.pos>t},Wt.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},Wt.prototype.skipToEnd=function(){this.pos=this.string.length},Wt.prototype.skipTo=function(e){var t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0},Wt.prototype.backUp=function(e){this.pos-=e},Wt.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=Ft(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?Ft(this.string,this.lineStart,this.tabSize):0)},Wt.prototype.indentation=function(){return Ft(this.string,null,this.tabSize)-(this.lineStart?Ft(this.string,this.lineStart,this.tabSize):0)},Wt.prototype.match=function(e,t,s){if(typeof e=="string"){var a=function(g){return s?g.toLowerCase():g},u=this.string.substr(this.pos,e.length);if(a(u)==a(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)}},Wt.prototype.current=function(){return this.string.slice(this.start,this.pos)},Wt.prototype.hideFirstChars=function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}},Wt.prototype.lookAhead=function(e){var t=this.lineOracle;return t&&t.lookAhead(e)},Wt.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};function Me(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 s=e;!s.lines;)for(var a=0;;++a){var u=s.children[a],h=u.chunkSize();if(t<h){s=u;break}t-=h}return s.lines[t]}function vn(e,t,s){var a=[],u=t.line;return e.iter(t.line,s.line+1,function(h){var g=h.text;u==s.line&&(g=g.slice(0,s.ch)),u==t.line&&(g=g.slice(t.ch)),a.push(g),++u}),a}function ss(e,t,s){var a=[];return e.iter(t,s,function(u){a.push(u.text)}),a}function nn(e,t){var s=t-e.height;if(s)for(var a=e;a;a=a.parent)a.height+=s}function zt(e){if(e.parent==null)return null;for(var t=e.parent,s=_e(t.lines,e),a=t.parent;a;t=a,a=a.parent)for(var u=0;a.children[u]!=t;++u)s+=a.children[u].chunkSize();return s+t.first}function Un(e,t){var s=e.first;e:do{for(var a=0;a<e.children.length;++a){var u=e.children[a],h=u.height;if(t<h){e=u;continue e}t-=h,s+=u.chunkSize()}return s}while(!e.lines);for(var g=0;g<e.lines.length;++g){var m=e.lines[g],y=m.height;if(t<y)break;t-=y}return s+g}function Gi(e,t){return t>=e.first&&t<e.first+e.size}function va(e,t){return String(e.lineNumberFormatter(t+e.firstLineNumber))}function ie(e,t,s){if(s===void 0&&(s=null),!(this instanceof ie))return new ie(e,t,s);this.line=e,this.ch=t,this.sticky=s}function w(e,t){return e.line-t.line||e.ch-t.ch}function P(e,t){return e.sticky==t.sticky&&w(e,t)==0}function j(e){return ie(e.line,e.ch)}function ae(e,t){return w(e,t)<0?t:e}function qe(e,t){return w(e,t)<0?e:t}function vt(e,t){return Math.max(e.first,Math.min(t,e.first+e.size-1))}function me(e,t){if(t.line<e.first)return ie(e.first,0);var s=e.first+e.size-1;return t.line>s?ie(s,Me(e,s).text.length):Or(t,Me(e,t.line).text.length)}function Or(e,t){var s=e.ch;return s==null||s>t?ie(e.line,t):s<0?ie(e.line,0):e}function on(e,t){for(var s=[],a=0;a<t.length;a++)s[a]=me(e,t[a]);return s}var _i=function(e,t){this.state=e,this.lookAhead=t},Yn=function(e,t,s,a){this.state=t,this.doc=e,this.line=s,this.maxLookAhead=a||0,this.baseTokens=null,this.baseTokenPos=1};Yn.prototype.lookAhead=function(e){var t=this.doc.getLine(this.line+e);return t!=null&&e>this.maxLookAhead&&(this.maxLookAhead=e),t},Yn.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}},Yn.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Yn.fromSaved=function(e,t,s){return t instanceof _i?new Yn(e,gn(e.mode,t.state),s,t.lookAhead):new Yn(e,gn(e.mode,t),s)},Yn.prototype.save=function(e){var t=e!==!1?gn(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new _i(t,this.maxLookAhead):t};function V0(e,t,s,a){var u=[e.state.modeGen],h={};yu(e,t.text,e.doc.mode,s,function(C,_){return u.push(C,_)},h,a);for(var g=s.state,m=function(C){s.baseTokens=u;var _=e.state.overlays[C],k=1,N=0;s.state=!0,yu(e,t.text,_.mode,s,function(R,Z){for(var J=k;N<R;){var le=u[k];le>R&&u.splice(k,1,R,u[k+1],le),k+=2,N=Math.min(R,le)}if(!!Z)if(_.opaque)u.splice(J,k-J,R,"overlay "+Z),k=J+2;else for(;J<k;J+=2){var fe=u[J+1];u[J+1]=(fe?fe+" ":"")+"overlay "+Z}},h),s.state=g,s.baseTokens=null,s.baseTokenPos=1},y=0;y<e.state.overlays.length;++y)m(y);return{styles:u,classes:h.bgClass||h.textClass?h:null}}function mu(e,t,s){if(!t.styles||t.styles[0]!=e.state.modeGen){var a=ba(e,zt(t)),u=t.text.length>e.options.maxHighlightLength&&gn(e.doc.mode,a.state),h=V0(e,t,a);u&&(a.state=u),t.stateAfter=a.save(!u),t.styles=h.styles,h.classes?t.styleClasses=h.classes:t.styleClasses&&(t.styleClasses=null),s===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return t.styles}function ba(e,t,s){var a=e.doc,u=e.display;if(!a.mode.startState)return new Yn(a,!0,t);var h=q0(e,t,s),g=h>a.first&&Me(a,h-1).stateAfter,m=g?Yn.fromSaved(a,g,h):new Yn(a,as(a.mode),h);return a.iter(h,t,function(y){ls(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()}),s&&(a.modeFrontier=m.line),m}function ls(e,t,s,a){var u=e.doc.mode,h=new Wt(t,e.options.tabSize,s);for(h.start=h.pos=a||0,t==""&&G0(u,s.state);!h.eol();)nl(u,h,s.state),h.start=h.pos}function G0(e,t){if(e.blankLine)return e.blankLine(t);if(!!e.innerMode){var s=os(e,t);if(s.mode.blankLine)return s.mode.blankLine(s.state)}}function nl(e,t,s,a){for(var u=0;u<10;u++){a&&(a[0]=os(e,s).mode);var h=e.token(t,s);if(t.pos>t.start)return h}throw new Error("Mode "+e.name+" failed to advance stream.")}var il=function(e,t,s){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=t||null,this.state=s};function ol(e,t,s,a){var u=e.doc,h=u.mode,g;t=me(u,t);var m=Me(u,t.line),y=ba(e,t.line,s),C=new Wt(m.text,e.options.tabSize,y),_;for(a&&(_=[]);(a||C.pos<t.ch)&&!C.eol();)C.start=C.pos,g=nl(h,C,y.state),a&&_.push(new il(C,g,gn(u.mode,y.state)));return a?_:new il(C,g,y.state)}function Ao(e,t){if(e)for(;;){var s=e.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!s)break;e=e.slice(0,s.index)+e.slice(s.index+s[0].length);var a=s[1]?"bgClass":"textClass";t[a]==null?t[a]=s[2]:new RegExp("(?:^|\\s)"+s[2]+"(?:$|\\s)").test(t[a])||(t[a]+=" "+s[2])}return e}function yu(e,t,s,a,u,h,g){var m=s.flattenSpans;m==null&&(m=e.options.flattenSpans);var y=0,C=null,_=new Wt(t,e.options.tabSize,a),k,N=e.options.addModeClass&&[null];for(t==""&&Ao(G0(s,a.state),h);!_.eol();){if(_.pos>e.options.maxHighlightLength?(m=!1,g&&ls(e,t,a,_.pos),_.pos=t.length,k=null):k=Ao(nl(s,_,a.state,N),h),N){var R=N[0].name;R&&(k="m-"+(k?R+" "+k:R))}if(!m||C!=k){for(;y<_.start;)y=Math.min(_.start,y+5e3),u(y,C);C=k}_.start=_.pos}for(;y<_.pos;){var Z=Math.min(_.pos,y+5e3);u(Z,C),y=Z}}function q0(e,t,s){for(var a,u,h=e.doc,g=s?-1:t-(e.doc.mode.innerMode?1e3:100),m=t;m>g;--m){if(m<=h.first)return h.first;var y=Me(h,m-1),C=y.stateAfter;if(C&&(!s||m+(C instanceof _i?C.lookAhead:0)<=h.modeFrontier))return m;var _=Ft(y.text,null,e.options.tabSize);(u==null||a>_)&&(u=m-1,a=_)}return u}function af(e,t){if(e.modeFrontier=Math.min(e.modeFrontier,t),!(e.highlightFrontier<t-10)){for(var s=e.first,a=t-1;a>s;a--){var u=Me(e,a).stateAfter;if(u&&(!(u instanceof _i)||a+u.lookAhead<t)){s=a+1;break}}e.highlightFrontier=Math.min(e.highlightFrontier,s)}}var Cu=!1,ii=!1;function j0(){Cu=!0}function K0(){ii=!0}function al(e,t,s){this.marker=e,this.from=t,this.to=s}function us(e,t){if(e)for(var s=0;s<e.length;++s){var a=e[s];if(a.marker==t)return a}}function sf(e,t){for(var s,a=0;a<e.length;++a)e[a]!=t&&(s||(s=[])).push(e[a]);return s}function X0(e,t,s){var a=s&&window.WeakSet&&(s.markedSpans||(s.markedSpans=new WeakSet));a&&a.has(e.markedSpans)?e.markedSpans.push(t):(e.markedSpans=e.markedSpans?e.markedSpans.concat([t]):[t],a&&a.add(e.markedSpans)),t.marker.attachLine(e)}function lf(e,t,s){var a;if(e)for(var u=0;u<e.length;++u){var h=e[u],g=h.marker,m=h.from==null||(g.inclusiveLeft?h.from<=t:h.from<t);if(m||h.from==t&&g.type=="bookmark"&&(!s||!h.marker.insertLeft)){var y=h.to==null||(g.inclusiveRight?h.to>=t:h.to>t);(a||(a=[])).push(new al(g,h.from,y?null:h.to))}}return a}function uf(e,t,s){var a;if(e)for(var u=0;u<e.length;++u){var h=e[u],g=h.marker,m=h.to==null||(g.inclusiveRight?h.to>=t:h.to>t);if(m||h.from==t&&g.type=="bookmark"&&(!s||h.marker.insertLeft)){var y=h.from==null||(g.inclusiveLeft?h.from<=t:h.from<t);(a||(a=[])).push(new al(g,y?null:h.from-t,h.to==null?null:h.to-t))}}return a}function wu(e,t){if(t.full)return null;var s=Gi(e,t.from.line)&&Me(e,t.from.line).markedSpans,a=Gi(e,t.to.line)&&Me(e,t.to.line).markedSpans;if(!s&&!a)return null;var u=t.from.ch,h=t.to.ch,g=w(t.from,t.to)==0,m=lf(s,u,g),y=uf(a,h,g),C=t.text.length==1,_=Xe(t.text).length+(C?u:0);if(m)for(var k=0;k<m.length;++k){var N=m[k];if(N.to==null){var R=us(y,N.marker);R?C&&(N.to=R.to==null?null:R.to+_):N.to=u}}if(y)for(var Z=0;Z<y.length;++Z){var J=y[Z];if(J.to!=null&&(J.to+=_),J.from==null){var le=us(m,J.marker);le||(J.from=_,C&&(m||(m=[])).push(J))}else J.from+=_,C&&(m||(m=[])).push(J)}m&&(m=Q0(m)),y&&y!=m&&(y=Q0(y));var fe=[m];if(!C){var we=t.text.length-2,de;if(we>0&&m)for(var ze=0;ze<m.length;++ze)m[ze].to==null&&(de||(de=[])).push(new al(m[ze].marker,null,null));for(var Re=0;Re<we;++Re)fe.push(de);fe.push(y)}return fe}function Q0(e){for(var t=0;t<e.length;++t){var s=e[t];s.from!=null&&s.from==s.to&&s.marker.clearWhenEmpty!==!1&&e.splice(t--,1)}return e.length?e:null}function xu(e,t,s){var a=null;if(e.iter(t.line,s.line+1,function(R){if(R.markedSpans)for(var Z=0;Z<R.markedSpans.length;++Z){var J=R.markedSpans[Z].marker;J.readOnly&&(!a||_e(a,J)==-1)&&(a||(a=[])).push(J)}}),!a)return null;for(var u=[{from:t,to:s}],h=0;h<a.length;++h)for(var g=a[h],m=g.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],k=w(C.from,m.from),N=w(C.to,m.to);(k<0||!g.inclusiveLeft&&!k)&&_.push({from:C.from,to:m.from}),(N>0||!g.inclusiveRight&&!N)&&_.push({from:m.to,to:C.to}),u.splice.apply(u,_),y+=_.length-3}}return u}function J0(e){var t=e.markedSpans;if(!!t){for(var s=0;s<t.length;++s)t[s].marker.detachLine(e);e.markedSpans=null}}function ec(e,t){if(!!t){for(var s=0;s<t.length;++s)t[s].marker.attachLine(e);e.markedSpans=t}}function sl(e){return e.inclusiveLeft?-1:0}function ll(e){return e.inclusiveRight?1:0}function zu(e,t){var s=e.lines.length-t.lines.length;if(s!=0)return s;var a=e.find(),u=t.find(),h=w(a.from,u.from)||sl(e)-sl(t);if(h)return-h;var g=w(a.to,u.to)||ll(e)-ll(t);return g||t.id-e.id}function Ut(e,t){var s=ii&&e.markedSpans,a;if(s)for(var u=void 0,h=0;h<s.length;++h)u=s[h],u.marker.collapsed&&(t?u.from:u.to)==null&&(!a||zu(a,u.marker)<0)&&(a=u.marker);return a}function $t(e){return Ut(e,!0)}function ul(e){return Ut(e,!1)}function cf(e,t){var s=ii&&e.markedSpans,a;if(s)for(var u=0;u<s.length;++u){var h=s[u];h.marker.collapsed&&(h.from==null||h.from<t)&&(h.to==null||h.to>t)&&(!a||zu(a,h.marker)<0)&&(a=h.marker)}return a}function tc(e,t,s,a,u){var h=Me(e,t),g=ii&&h.markedSpans;if(g)for(var m=0;m<g.length;++m){var y=g[m];if(!!y.marker.collapsed){var C=y.marker.find(0),_=w(C.from,s)||sl(y.marker)-sl(u),k=w(C.to,a)||ll(y.marker)-ll(u);if(!(_>=0&&k<=0||_<=0&&k>=0)&&(_<=0&&(y.marker.inclusiveRight&&u.inclusiveLeft?w(C.to,s)>=0:w(C.to,s)>0)||_>=0&&(y.marker.inclusiveRight&&u.inclusiveLeft?w(C.from,a)<=0:w(C.from,a)<0)))return!0}}}function oi(e){for(var t;t=$t(e);)e=t.find(-1,!0).line;return e}function ff(e){for(var t;t=ul(e);)e=t.find(1,!0).line;return e}function df(e){for(var t,s;t=ul(e);)e=t.find(1,!0).line,(s||(s=[])).push(e);return s}function cl(e,t){var s=Me(e,t),a=oi(s);return s==a?t:zt(a)}function rc(e,t){if(t>e.lastLine())return t;var s=Me(e,t),a;if(!Gt(e,s))return t;for(;a=ul(s);)s=a.find(1,!0).line;return zt(s)+1}function Gt(e,t){var s=ii&&t.markedSpans;if(s){for(var a=void 0,u=0;u<s.length;++u)if(a=s[u],!!a.marker.collapsed){if(a.from==null)return!0;if(!a.marker.widgetNode&&a.from==0&&a.marker.inclusiveLeft&&cs(e,t,a))return!0}}}function cs(e,t,s){if(s.to==null){var a=s.marker.find(1,!0);return cs(e,a.line,us(a.line.markedSpans,s.marker))}if(s.marker.inclusiveRight&&s.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==s.to&&(u.to==null||u.to!=s.from)&&(u.marker.inclusiveLeft||s.marker.inclusiveRight)&&cs(e,t,u))return!0}function Xr(e){e=oi(e);for(var t=0,s=e.parent,a=0;a<s.lines.length;++a){var u=s.lines[a];if(u==e)break;t+=u.height}for(var h=s.parent;h;s=h,h=s.parent)for(var g=0;g<h.children.length;++g){var m=h.children[g];if(m==s)break;t+=m.height}return t}function fs(e){if(e.height==0)return 0;for(var t=e.text.length,s,a=e;s=$t(a);){var u=s.find(0,!0);a=u.from.line,t+=u.from.ch-u.to.ch}for(a=e;s=ul(a);){var h=s.find(0,!0);t-=a.text.length-h.from.ch,a=h.to.line,t+=a.text.length-h.to.ch}return t}function ds(e){var t=e.display,s=e.doc;t.maxLine=Me(s,s.first),t.maxLineLength=fs(t.maxLine),t.maxLineChanged=!0,s.iter(function(a){var u=fs(a);u>t.maxLineLength&&(t.maxLineLength=u,t.maxLine=a)})}var Tr=function(e,t,s){this.text=e,ec(this,t),this.height=s?s(this):1};Tr.prototype.lineNo=function(){return zt(this)},Bn(Tr);function nc(e,t,s,a){e.text=t,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),e.order!=null&&(e.order=null),J0(e),ec(e,s);var u=a?a(e):1;u!=e.height&&nn(e,u)}function ic(e){e.parent=null,J0(e)}var oc={},ac={};function Lu(e,t){if(!e||/^\s*$/.test(e))return null;var s=t.addModeClass?ac:oc;return s[e]||(s[e]=e.replace(/\S+/g,"cm-$&"))}function _u(e,t){var s=T("span",null,null,I?"padding-right: .1px":null),a={pre:T("pre",[s],"CodeMirror-line"),content:s,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,g=void 0;a.pos=0,a.addToken=hf,ni(e.display.measure)&&(g=Hr(h,e.doc.direction))&&(a.addToken=pf(a.addToken,g)),a.map=[];var m=t!=e.display.externalMeasured&&zt(h);qi(h,a,mu(e,h,m)),h.styleClasses&&(h.styleClasses.bgClass&&(a.bgClass=sr(h.styleClasses.bgClass,a.bgClass||"")),h.styleClasses.textClass&&(a.textClass=sr(h.styleClasses.textClass,a.textClass||""))),a.map.length==0&&a.map.push(0,0,a.content.appendChild(Js(e.display.measure))),u==0?(t.measure.map=a.map,t.measure.cache={}):((t.measure.maps||(t.measure.maps=[])).push(a.map),(t.measure.caches||(t.measure.caches=[])).push({}))}if(I){var y=a.content.lastChild;(/\bcm-tab\b/.test(y.className)||y.querySelector&&y.querySelector(".cm-tab"))&&(a.content.className="cm-tab-wrap-hack")}return Ge(e,"renderLine",e,t.line,a.pre),a.pre.className&&(a.textClass=sr(a.pre.className,a.textClass||"")),a}function bn(e){var t=E("span","\u2022","cm-invalidchar");return t.title="\\u"+e.charCodeAt(0).toString(16),t.setAttribute("aria-label",t.title),t}function hf(e,t,s,a,u,h,g){if(!!t){var m=e.splitSpaces?Ln(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,_),S&&O<9&&(C=!0),e.pos+=t.length;else{_=document.createDocumentFragment();for(var k=0;;){y.lastIndex=k;var N=y.exec(t),R=N?N.index-k:t.length-k;if(R){var Z=document.createTextNode(m.slice(k,k+R));S&&O<9?_.appendChild(E("span",[Z])):_.appendChild(Z),e.map.push(e.pos,e.pos+R,Z),e.col+=R,e.pos+=R}if(!N)break;k+=R+1;var J=void 0;if(N[0]==" "){var le=e.cm.options.tabSize,fe=le-e.col%le;J=_.appendChild(E("span",lr(fe),"cm-tab")),J.setAttribute("role","presentation"),J.setAttribute("cm-text"," "),e.col+=fe}else N[0]=="\r"||N[0]==`
2204
- `?(J=_.appendChild(E("span",N[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),J.setAttribute("cm-text",N[0]),e.col+=1):(J=e.cm.options.specialCharPlaceholder(N[0]),J.setAttribute("cm-text",N[0]),S&&O<9?_.appendChild(E("span",[J])):_.appendChild(J),e.col+=1);e.map.push(e.pos,e.pos+1,J),e.pos++}}if(e.trailingSpace=m.charCodeAt(t.length-1)==32,s||a||u||C||h||g){var we=s||"";a&&(we+=a),u&&(we+=u);var de=E("span",[_],we,h);if(g)for(var ze in g)g.hasOwnProperty(ze)&&ze!="style"&&ze!="class"&&de.setAttribute(ze,g[ze]);return e.content.appendChild(de)}e.content.appendChild(_)}}function Ln(e,t){if(e.length>1&&!/ /.test(e))return e;for(var s=t,a="",u=0;u<e.length;u++){var h=e.charAt(u);h==" "&&s&&(u==e.length-1||e.charCodeAt(u+1)==32)&&(h="\xA0"),a+=h,s=h==" "}return a}function pf(e,t){return function(s,a,u,h,g,m,y){u=u?u+" cm-force-border":"cm-force-border";for(var C=s.pos,_=C+a.length;;){for(var k=void 0,N=0;N<t.length&&(k=t[N],!(k.to>C&&k.from<=C));N++);if(k.to>=_)return e(s,a,u,h,g,m,y);e(s,a.slice(0,k.to-C),u,h,null,m,y),h=null,a=a.slice(k.to-C),C=k.to}}}function Su(e,t,s,a){var u=!a&&s.widgetNode;u&&e.map.push(e.pos,e.pos+t,u),!a&&e.cm.display.input.needsContentAttribute&&(u||(u=e.content.appendChild(document.createElement("span"))),u.setAttribute("cm-marker",s.id)),u&&(e.cm.display.input.setUneditable(u),e.content.appendChild(u)),e.pos+=t,e.trailingSpace=!1}function qi(e,t,s){var a=e.markedSpans,u=e.text,h=0;if(!a){for(var g=1;g<s.length;g+=2)t.addToken(t,u.slice(h,h=s[g]),Lu(s[g+1],t.cm.options));return}for(var m=u.length,y=0,C=1,_="",k,N,R=0,Z,J,le,fe,we;;){if(R==y){Z=J=le=N="",we=null,fe=null,R=1/0;for(var de=[],ze=void 0,Re=0;Re<a.length;++Re){var Pe=a[Re],lt=Pe.marker;if(lt.type=="bookmark"&&Pe.from==y&&lt.widgetNode)de.push(lt);else if(Pe.from<=y&&(Pe.to==null||Pe.to>y||lt.collapsed&&Pe.to==y&&Pe.from==y)){if(Pe.to!=null&&Pe.to!=y&&R>Pe.to&&(R=Pe.to,J=""),lt.className&&(Z+=" "+lt.className),lt.css&&(N=(N?N+";":"")+lt.css),lt.startStyle&&Pe.from==y&&(le+=" "+lt.startStyle),lt.endStyle&&Pe.to==R&&(ze||(ze=[])).push(lt.endStyle,Pe.to),lt.title&&((we||(we={})).title=lt.title),lt.attributes)for(var Ot in lt.attributes)(we||(we={}))[Ot]=lt.attributes[Ot];lt.collapsed&&(!fe||zu(fe.marker,lt)<0)&&(fe=Pe)}else Pe.from>y&&R>Pe.from&&(R=Pe.from)}if(ze)for(var ur=0;ur<ze.length;ur+=2)ze[ur+1]==R&&(J+=" "+ze[ur]);if(!fe||fe.from==y)for(var Rt=0;Rt<de.length;++Rt)Su(t,0,de[Rt]);if(fe&&(fe.from||0)==y){if(Su(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 Ur=Math.min(m,R);;){if(_){var Yr=y+_.length;if(!fe){var rr=Yr>Ur?_.slice(0,Ur-y):_;t.addToken(t,rr,k?k+Z:Z,le,y+rr.length==R?J:"",N,we)}if(Yr>=Ur){_=_.slice(Ur-y),y=Ur;break}y=Yr,le=""}_=u.slice(h,h=s[C++]),k=Lu(s[C++],t.cm.options)}}}function hs(e,t,s){this.line=t,this.rest=df(t),this.size=this.rest?zt(Xe(this.rest))-s+1:1,this.node=this.text=null,this.hidden=Gt(e,t)}function ma(e,t,s){for(var a=[],u,h=t;h<s;h=u){var g=new hs(e.doc,Me(e.doc,h),h);u=h+g.size,a.push(g)}return a}var Et=null;function ji(e){Et?Et.ops.push(e):e.ownsGroup=Et={ops:[e],delayedCallbacks:[]}}function ku(e){var t=e.delayedCallbacks,s=0;do{for(;s<t.length;s++)t[s].call(null);for(var a=0;a<e.ops.length;a++){var u=e.ops[a];if(u.cursorActivityHandlers)for(;u.cursorActivityCalled<u.cursorActivityHandlers.length;)u.cursorActivityHandlers[u.cursorActivityCalled++].call(null,u.cm)}}while(s<t.length)}function gf(e,t){var s=e.ownsGroup;if(!!s)try{ku(s)}finally{Et=null,t(s)}}var Eo=null;function hr(e,t){var s=Yi(e,t);if(!!s.length){var a=Array.prototype.slice.call(arguments,2),u;Et?u=Et.delayedCallbacks:Eo?u=Eo:(u=Eo=[],setTimeout(vf,0));for(var h=function(m){u.push(function(){return s[m].apply(null,a)})},g=0;g<s.length;++g)h(g)}}function vf(){var e=Eo;Eo=null;for(var t=0;t<e.length;++t)e[t]()}function sc(e,t,s,a){for(var u=0;u<t.changes.length;u++){var h=t.changes[u];h=="text"?bf(e,t):h=="gutter"?Mu(e,t,s,a):h=="class"?dl(e,t):h=="widget"&&Ou(e,t,a)}t.changes=null}function ya(e){return e.node==e.text&&(e.node=E("div",null,null,"position: relative"),e.text.parentNode&&e.text.parentNode.replaceChild(e.node,e.text),e.node.appendChild(e.text),S&&O<8&&(e.node.style.zIndex=2)),e.node}function fl(e,t){var s=t.bgClass?t.bgClass+" "+(t.line.bgClass||""):t.line.bgClass;if(s&&(s+=" CodeMirror-linebackground"),t.background)s?t.background.className=s:(t.background.parentNode.removeChild(t.background),t.background=null);else if(s){var a=ya(t);t.background=a.insertBefore(E("div",null,s),a.firstChild),e.display.input.setUneditable(t.background)}}function Io(e,t){var s=e.display.externalMeasured;return s&&s.line==t.line?(e.display.externalMeasured=null,t.measure=s.measure,s.built):_u(e,t)}function bf(e,t){var s=t.text.className,a=Io(e,t);t.text==t.node&&(t.node=a.pre),t.text.parentNode.replaceChild(a.pre,t.text),t.text=a.pre,a.bgClass!=t.bgClass||a.textClass!=t.textClass?(t.bgClass=a.bgClass,t.textClass=a.textClass,dl(e,t)):s&&(t.text.className=s)}function dl(e,t){fl(e,t),t.line.wrapClass?ya(t).className=t.line.wrapClass:t.node!=t.text&&(t.node.className="");var s=t.textClass?t.textClass+" "+(t.line.textClass||""):t.line.textClass;t.text.className=s||""}function Mu(e,t,s,a){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=ya(t);t.gutterBackground=E("div",null,"CodeMirror-gutter-background "+t.line.gutterClass,"left: "+(e.options.fixedGutter?a.fixedPos:-a.gutterTotalWidth)+"px; width: "+a.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 g=ya(t),m=t.gutter=E("div",null,"CodeMirror-gutter-wrapper","left: "+(e.options.fixedGutter?a.fixedPos:-a.gutterTotalWidth)+"px");if(m.setAttribute("aria-hidden","true"),e.display.input.setUneditable(m),g.insertBefore(m,t.text),t.line.gutterClass&&(m.className+=" "+t.line.gutterClass),e.options.lineNumbers&&(!h||!h["CodeMirror-linenumbers"])&&(t.lineNumber=m.appendChild(E("div",va(e.options,s),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+a.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(E("div",[_],"CodeMirror-gutter-elt","left: "+a.gutterLeft[C]+"px; width: "+a.gutterWidth[C]+"px"))}}}function Ou(e,t,s){t.alignable&&(t.alignable=null);for(var a=ve("CodeMirror-linewidget"),u=t.node.firstChild,h=void 0;u;u=h)h=u.nextSibling,a.test(u.className)&&t.node.removeChild(u);Pu(e,t,s)}function Tu(e,t,s,a){var u=Io(e,t);return t.text=t.node=u.pre,u.bgClass&&(t.bgClass=u.bgClass),u.textClass&&(t.textClass=u.textClass),dl(e,t),Mu(e,t,s,a),Pu(e,t,a),t.node}function Pu(e,t,s){if(lc(e,t.line,t,s,!0),t.rest)for(var a=0;a<t.rest.length;a++)lc(e,t.rest[a],t,s,!1)}function lc(e,t,s,a,u){if(!!t.widgets)for(var h=ya(s),g=0,m=t.widgets;g<m.length;++g){var y=m[g],C=E("div",[y.node],"CodeMirror-linewidget"+(y.className?" "+y.className:""));y.handleMouseEvents||C.setAttribute("cm-ignore-events","true"),Au(y,C,s,a),e.display.input.setUneditable(C),u&&y.above?h.insertBefore(C,s.gutter||s.text):h.appendChild(C),hr(y,"redraw")}}function Au(e,t,s,a){if(e.noHScroll){(s.alignable||(s.alignable=[])).push(t);var u=a.wrapperWidth;t.style.left=a.fixedPos+"px",e.coverGutter||(u-=a.gutterTotalWidth,t.style.paddingLeft=a.gutterTotalWidth+"px"),t.style.width=u+"px"}e.coverGutter&&(t.style.zIndex=5,t.style.position="relative",e.noHScroll||(t.style.marginLeft=-a.gutterTotalWidth+"px"))}function Do(e){if(e.height!=null)return e.height;var t=e.doc.cm;if(!t)return 0;if(!be(document.body,e.node)){var s="position: relative;";e.coverGutter&&(s+="margin-left: -"+t.display.gutters.offsetWidth+"px;"),e.noHScroll&&(s+="width: "+t.display.wrapper.clientWidth+"px;"),W(t.display.measure,E("div",[e.node],null,s))}return e.height=e.node.parentNode.offsetHeight}function Si(e,t){for(var s=Zi(t);s!=e.wrapper;s=s.parentNode)if(!s||s.nodeType==1&&s.getAttribute("cm-ignore-events")=="true"||s.parentNode==e.sizer&&s!=e.mover)return!0}function ps(e){return e.lineSpace.offsetTop}function Qr(e){return e.mover.offsetHeight-e.lineSpace.offsetHeight}function hl(e){if(e.cachedPaddingH)return e.cachedPaddingH;var t=W(e.measure,E("pre","x","CodeMirror-line-like")),s=window.getComputedStyle?window.getComputedStyle(t):t.currentStyle,a={left:parseInt(s.paddingLeft),right:parseInt(s.paddingRight)};return!isNaN(a.left)&&!isNaN(a.right)&&(e.cachedPaddingH=a),a}function an(e){return Fe-e.display.nativeBarWidth}function Ki(e){return e.display.scroller.clientWidth-an(e)-e.display.barWidth}function pl(e){return e.display.scroller.clientHeight-an(e)-e.display.barHeight}function mf(e,t,s){var a=e.options.lineWrapping,u=a&&Ki(e);if(!t.measure.heights||a&&t.measure.width!=u){var h=t.measure.heights=[];if(a){t.measure.width=u;for(var g=t.text.firstChild.getClientRects(),m=0;m<g.length-1;m++){var y=g[m],C=g[m+1];Math.abs(y.bottom-C.bottom)>2&&h.push((y.bottom+C.top)/2-s.top)}}h.push(s.bottom-s.top)}}function uc(e,t,s){if(e.line==t)return{map:e.measure.map,cache:e.measure.cache};for(var a=0;a<e.rest.length;a++)if(e.rest[a]==t)return{map:e.measure.maps[a],cache:e.measure.caches[a]};for(var u=0;u<e.rest.length;u++)if(zt(e.rest[u])>s)return{map:e.measure.maps[u],cache:e.measure.caches[u],before:!0}}function yf(e,t){t=oi(t);var s=zt(t),a=e.display.externalMeasured=new hs(e.doc,t,s);a.lineN=s;var u=a.built=_u(e,a);return a.text=u.pre,W(e.display.lineMeasure,u.pre),a}function cc(e,t,s,a){return ai(e,Zn(e,t),s,a)}function Eu(e,t){if(t>=e.display.viewFrom&&t<e.display.viewTo)return e.display.view[li(e,t)];var s=e.display.externalMeasured;if(s&&t>=s.lineN&&t<s.lineN+s.size)return s}function Zn(e,t){var s=zt(t),a=Eu(e,s);a&&!a.text?a=null:a&&a.changes&&(sc(e,a,s,sn(e)),e.curOp.forceUpdate=!0),a||(a=yf(e,t));var u=uc(a,t,s);return{line:t,view:a,rect:null,map:u.map,cache:u.cache,before:u.before,hasHeights:!1}}function ai(e,t,s,a,u){t.before&&(s=-1);var h=s+(a||""),g;return t.cache.hasOwnProperty(h)?g=t.cache[h]:(t.rect||(t.rect=t.view.text.getBoundingClientRect()),t.hasHeights||(mf(e,t.view,t.rect),t.hasHeights=!0),g=Xi(e,t,s,a),g.bogus||(t.cache[h]=g)),{left:g.left,right:g.right,top:u?g.rtop:g.top,bottom:u?g.rbottom:g.bottom}}var fc={left:0,right:0,top:0,bottom:0};function gl(e,t,s){for(var a,u,h,g,m,y,C=0;C<e.length;C+=3)if(m=e[C],y=e[C+1],t<m?(u=0,h=1,g="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&&(g="right")),u!=null){if(a=e[C+2],m==y&&s==(a.insertLeft?"left":"right")&&(g=s),s=="left"&&u==0)for(;C&&e[C-2]==e[C-3]&&e[C-1].insertLeft;)a=e[(C-=3)+2],g="left";if(s=="right"&&u==y-m)for(;C<e.length-3&&e[C+3]==e[C+4]&&!e[C+5].insertLeft;)a=e[(C+=3)+2],g="right";break}return{node:a,start:u,end:h,collapse:g,coverStart:m,coverEnd:y}}function dc(e,t){var s=fc;if(t=="left")for(var a=0;a<e.length&&(s=e[a]).left==s.right;a++);else for(var u=e.length-1;u>=0&&(s=e[u]).left==s.right;u--);return s}function Xi(e,t,s,a){var u=gl(t.map,s,a),h=u.node,g=u.start,m=u.end,y=u.collapse,C;if(h.nodeType==3){for(var _=0;_<4;_++){for(;g&&Qe(t.line.text.charAt(u.coverStart+g));)--g;for(;u.coverStart+m<u.coverEnd&&Qe(t.line.text.charAt(u.coverStart+m));)++m;if(S&&O<9&&g==0&&m==u.coverEnd-u.coverStart?C=h.parentNode.getBoundingClientRect():C=dc(ne(h,g,m).getClientRects(),a),C.left||C.right||g==0)break;m=g,g=g-1,y="right"}S&&O<11&&(C=vl(e.display.measure,C))}else{g>0&&(y=a="right");var k;e.options.lineWrapping&&(k=h.getClientRects()).length>1?C=k[a=="right"?k.length-1:0]:C=h.getBoundingClientRect()}if(S&&O<9&&!g&&(!C||!C.left&&!C.right)){var N=h.parentNode.getClientRects()[0];N?C={left:N.left,right:N.left+Ca(e.display),top:N.top,bottom:N.bottom}:C=fc}for(var R=C.top-t.rect.top,Z=C.bottom-t.rect.top,J=(R+Z)/2,le=t.view.measure.heights,fe=0;fe<le.length-1&&!(J<le[fe]);fe++);var we=fe?le[fe-1]:0,de=le[fe],ze={left:(y=="right"?C.right:C.left)-t.rect.left,right:(y=="left"?C.left:C.right)-t.rect.left,top:we,bottom:de};return!C.left&&!C.right&&(ze.bogus=!0),e.options.singleCursorHeightPerLine||(ze.rtop=R,ze.rbottom=Z),ze}function vl(e,t){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!Vi(e))return t;var s=screen.logicalXDPI/screen.deviceXDPI,a=screen.logicalYDPI/screen.deviceYDPI;return{left:t.left*s,right:t.right*s,top:t.top*a,bottom:t.bottom*a}}function hc(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 pc(e){e.display.externalMeasure=null,it(e.display.lineMeasure);for(var t=0;t<e.display.view.length;t++)hc(e.display.view[t])}function gs(e){pc(e),e.display.cachedCharWidth=e.display.cachedTextHeight=e.display.cachedPaddingH=null,e.options.lineWrapping||(e.display.maxLineChanged=!0),e.display.lineNumChars=null}function Ro(){return q&&Ie?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function _n(){return q&&Ie?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function bl(e){var t=0;if(e.widgets)for(var s=0;s<e.widgets.length;++s)e.widgets[s].above&&(t+=Do(e.widgets[s]));return t}function ml(e,t,s,a,u){if(!u){var h=bl(t);s.top+=h,s.bottom+=h}if(a=="line")return s;a||(a="local");var g=Xr(t);if(a=="local"?g+=ps(e.display):g-=e.display.viewOffset,a=="page"||a=="window"){var m=e.display.lineSpace.getBoundingClientRect();g+=m.top+(a=="window"?0:_n());var y=m.left+(a=="window"?0:Ro());s.left+=y,s.right+=y}return s.top+=g,s.bottom+=g,s}function gc(e,t,s){if(s=="div")return t;var a=t.left,u=t.top;if(s=="page")a-=Ro(),u-=_n();else if(s=="local"||!s){var h=e.display.sizer.getBoundingClientRect();a+=h.left,u+=h.top}var g=e.display.lineSpace.getBoundingClientRect();return{left:a-g.left,top:u-g.top}}function yl(e,t,s,a,u){return a||(a=Me(e.doc,t.line)),ml(e,a,cc(e,a,t.ch,u),s)}function Vn(e,t,s,a,u,h){a=a||Me(e.doc,t.line),u||(u=Zn(e,a));function g(Z,J){var le=ai(e,u,Z,J?"right":"left",h);return J?le.left=le.right:le.right=le.left,ml(e,a,le,s)}var m=Hr(a,e.doc.direction),y=t.ch,C=t.sticky;if(y>=a.text.length?(y=a.text.length,C="before"):y<=0&&(y=0,C="after"),!m)return g(C=="before"?y-1:y,C=="before");function _(Z,J,le){var fe=m[J],we=fe.level==1;return g(le?Z-1:Z,we!=le)}var k=Zt(m,y,C),N=jr,R=_(y,k,C=="before");return N!=null&&(R.other=_(y,N,C!="before")),R}function vc(e,t){var s=0;t=me(e.doc,t),e.options.lineWrapping||(s=Ca(e.display)*t.ch);var a=Me(e.doc,t.line),u=Xr(a)+ps(e.display);return{left:s,right:s,top:u,bottom:u+a.height}}function Qi(e,t,s,a,u){var h=ie(e,t,s);return h.xRel=u,a&&(h.outside=a),h}function $(e,t,s){var a=e.doc;if(s+=e.display.viewOffset,s<0)return Qi(a.first,0,null,-1,-1);var u=Un(a,s),h=a.first+a.size-1;if(u>h)return Qi(a.first+a.size-1,Me(a,h).text.length,null,1,1);t<0&&(t=0);for(var g=Me(a,u);;){var m=Je(e,g,u,t,s),y=cf(g,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;g=Me(a,u=C.line)}}function K(e,t,s,a){a-=bl(t);var u=t.text.length,h=kr(function(g){return ai(e,s,g-1).bottom<=a},u,0);return u=kr(function(g){return ai(e,s,g).top>a},h,u),{begin:h,end:u}}function Y(e,t,s,a){s||(s=Zn(e,t));var u=ml(e,t,ai(e,s,a),"line").top;return K(e,t,s,u)}function ke(e,t,s,a){return e.bottom<=s?!1:e.top>s?!0:(a?e.left:e.right)>t}function Je(e,t,s,a,u){u-=Xr(t);var h=Zn(e,t),g=bl(t),m=0,y=t.text.length,C=!0,_=Hr(t,e.doc.direction);if(_){var k=(e.options.lineWrapping?pr:kt)(e,t,s,h,_,a,u);C=k.level!=1,m=C?k.from:k.to-1,y=C?k.to:k.from-1}var N=null,R=null,Z=kr(function(Re){var Pe=ai(e,h,Re);return Pe.top+=g,Pe.bottom+=g,ke(Pe,a,u,!1)?(Pe.top<=u&&Pe.left<=a&&(N=Re,R=Pe),!0):!1},m,y),J,le,fe=!1;if(R){var we=a-R.left<R.right-a,de=we==C;Z=N+(de?0:1),le=de?"after":"before",J=we?R.left:R.right}else{!C&&(Z==y||Z==m)&&Z++,le=Z==0?"after":Z==t.text.length?"before":ai(e,h,Z-(C?1:0)).bottom+g<=u==C?"after":"before";var ze=Vn(e,ie(s,Z,le),"line",t,h);J=ze.left,fe=u<ze.top?-1:u>=ze.bottom?1:0}return Z=dr(t.text,Z,1),Qi(s,Z,le,fe,a-J)}function kt(e,t,s,a,u,h,g){var m=kr(function(k){var N=u[k],R=N.level!=1;return ke(Vn(e,ie(s,R?N.to:N.from,R?"before":"after"),"line",t,a),h,g,!0)},0,u.length-1),y=u[m];if(m>0){var C=y.level!=1,_=Vn(e,ie(s,C?y.from:y.to,C?"after":"before"),"line",t,a);ke(_,h,g,!0)&&_.top>g&&(y=u[m-1])}return y}function pr(e,t,s,a,u,h,g){var m=K(e,t,a,g),y=m.begin,C=m.end;/\s/.test(t.text.charAt(C-1))&&C--;for(var _=null,k=null,N=0;N<u.length;N++){var R=u[N];if(!(R.from>=C||R.to<=y)){var Z=R.level!=1,J=ai(e,a,Z?Math.min(C,R.to)-1:Math.max(y,R.from)).right,le=J<h?h-J+1e9:J-h;(!_||k>le)&&(_=R,k=le)}}return _||(_=u[u.length-1]),_.from<y&&(_={from:y,to:_.to,level:_.level}),_.to>C&&(_={from:_.from,to:C,level:_.level}),_}var wt;function Ji(e){if(e.cachedTextHeight!=null)return e.cachedTextHeight;if(wt==null){wt=E("pre",null,"CodeMirror-line-like");for(var t=0;t<49;++t)wt.appendChild(document.createTextNode("x")),wt.appendChild(E("br"));wt.appendChild(document.createTextNode("x"))}W(e.measure,wt);var s=wt.offsetHeight/50;return s>3&&(e.cachedTextHeight=s),it(e.measure),s||1}function Ca(e){if(e.cachedCharWidth!=null)return e.cachedCharWidth;var t=E("span","xxxxxxxxxx"),s=E("pre",[t],"CodeMirror-line-like");W(e.measure,s);var a=t.getBoundingClientRect(),u=(a.right-a.left)/10;return u>2&&(e.cachedCharWidth=u),u||10}function sn(e){for(var t=e.display,s={},a={},u=t.gutters.clientLeft,h=t.gutters.firstChild,g=0;h;h=h.nextSibling,++g){var m=e.display.gutterSpecs[g].className;s[m]=h.offsetLeft+h.clientLeft+u,a[m]=h.clientWidth}return{fixedPos:wa(t),gutterTotalWidth:t.gutters.offsetWidth,gutterLeft:s,gutterWidth:a,wrapperWidth:t.wrapper.clientWidth}}function wa(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function bc(e){var t=Ji(e.display),s=e.options.lineWrapping,a=s&&Math.max(5,e.display.scroller.clientWidth/Ca(e.display)-3);return function(u){if(Gt(e.doc,u))return 0;var h=0;if(u.widgets)for(var g=0;g<u.widgets.length;g++)u.widgets[g].height&&(h+=u.widgets[g].height);return s?h+(Math.ceil(u.text.length/a)||1)*t:h+t}}function eo(e){var t=e.doc,s=bc(e);t.iter(function(a){var u=s(a);u!=a.height&&nn(a,u)})}function si(e,t,s,a){var u=e.display;if(!s&&Zi(t).getAttribute("cm-not-content")=="true")return null;var h,g,m=u.lineSpace.getBoundingClientRect();try{h=t.clientX-m.left,g=t.clientY-m.top}catch{return null}var y=$(e,h,g),C;if(a&&y.xRel>0&&(C=Me(e.doc,y.line).text).length==y.ch){var _=Ft(C,C.length,e.options.tabSize)-C.length;y=ie(y.line,Math.max(0,Math.round((h-hl(e.display).left)/Ca(e.display))-_))}return y}function li(e,t){if(t>=e.display.viewTo||(t-=e.display.viewFrom,t<0))return null;for(var s=e.display.view,a=0;a<s.length;a++)if(t-=s[a].size,t<0)return a}function rt(e,t,s,a){t==null&&(t=e.doc.first),s==null&&(s=e.doc.first+e.doc.size),a||(a=0);var u=e.display;if(a&&s<u.viewTo&&(u.updateLineNumbers==null||u.updateLineNumbers>t)&&(u.updateLineNumbers=t),e.curOp.viewChanged=!0,t>=u.viewTo)ii&&cl(e.doc,t)<u.viewTo&&ki(e);else if(s<=u.viewFrom)ii&&rc(e.doc,s+a)>u.viewFrom?ki(e):(u.viewFrom+=a,u.viewTo+=a);else if(t<=u.viewFrom&&s>=u.viewTo)ki(e);else if(t<=u.viewFrom){var h=No(e,s,s+a,1);h?(u.view=u.view.slice(h.index),u.viewFrom=h.lineN,u.viewTo+=a):ki(e)}else if(s>=u.viewTo){var g=No(e,t,t,-1);g?(u.view=u.view.slice(0,g.index),u.viewTo=g.lineN):ki(e)}else{var m=No(e,t,t,-1),y=No(e,s,s+a,1);m&&y?(u.view=u.view.slice(0,m.index).concat(ma(e,m.lineN,y.lineN)).concat(u.view.slice(y.index)),u.viewTo+=a):ki(e)}var C=u.externalMeasured;C&&(s<C.lineN?C.lineN+=a:t<C.lineN+C.size&&(u.externalMeasured=null))}function to(e,t,s){e.curOp.viewChanged=!0;var a=e.display,u=e.display.externalMeasured;if(u&&t>=u.lineN&&t<u.lineN+u.size&&(a.externalMeasured=null),!(t<a.viewFrom||t>=a.viewTo)){var h=a.view[li(e,t)];if(h.node!=null){var g=h.changes||(h.changes=[]);_e(g,s)==-1&&g.push(s)}}}function ki(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function No(e,t,s,a){var u=li(e,t),h,g=e.display.view;if(!ii||s==e.doc.first+e.doc.size)return{index:u,lineN:s};for(var m=e.display.viewFrom,y=0;y<u;y++)m+=g[y].size;if(m!=t){if(a>0){if(u==g.length-1)return null;h=m+g[u].size-t,u++}else h=m-t;t+=h,s+=h}for(;cl(e.doc,s)!=s;){if(u==(a<0?0:g.length-1))return null;s+=a*g[u-(a<0?1:0)].size,u+=a}return{index:u,lineN:s}}function Cf(e,t,s){var a=e.display,u=a.view;u.length==0||t>=a.viewTo||s<=a.viewFrom?(a.view=ma(e,t,s),a.viewFrom=t):(a.viewFrom>t?a.view=ma(e,t,a.viewFrom).concat(a.view):a.viewFrom<t&&(a.view=a.view.slice(li(e,t))),a.viewFrom=t,a.viewTo<s?a.view=a.view.concat(ma(e,a.viewTo,s)):a.viewTo>s&&(a.view=a.view.slice(0,li(e,s)))),a.viewTo=s}function mc(e){for(var t=e.display.view,s=0,a=0;a<t.length;a++){var u=t[a];!u.hidden&&(!u.node||u.changes)&&++s}return s}function vs(e){e.display.input.showSelection(e.display.input.prepareSelection())}function bs(e,t){t===void 0&&(t=!0);for(var s=e.doc,a={},u=a.cursors=document.createDocumentFragment(),h=a.selection=document.createDocumentFragment(),g=0;g<s.sel.ranges.length;g++)if(!(!t&&g==s.sel.primIndex)){var m=s.sel.ranges[g];if(!(m.from().line>=e.display.viewTo||m.to().line<e.display.viewFrom)){var y=m.empty();(y||e.options.showCursorWhenSelecting)&&Mi(e,m.head,u),y||yc(e,m,h)}}return a}function Mi(e,t,s){var a=Vn(e,t,"div",null,null,!e.options.singleCursorHeightPerLine),u=s.appendChild(E("div","\xA0","CodeMirror-cursor"));if(u.style.left=a.left+"px",u.style.top=a.top+"px",u.style.height=Math.max(0,a.bottom-a.top)*e.options.cursorHeight+"px",/\bcm-fat-cursor\b/.test(e.getWrapperElement().className)){var h=yl(e,t,"div",null,null);u.style.width=Math.max(0,h.right-h.left)+"px"}if(a.other){var g=s.appendChild(E("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));g.style.display="",g.style.left=a.other.left+"px",g.style.top=a.other.top+"px",g.style.height=(a.other.bottom-a.other.top)*.85+"px"}}function $o(e,t){return e.top-t.top||e.left-t.left}function yc(e,t,s){var a=e.display,u=e.doc,h=document.createDocumentFragment(),g=hl(e.display),m=g.left,y=Math.max(a.sizerWidth,Ki(e)-a.sizer.offsetLeft)-g.right,C=u.direction=="ltr";function _(de,ze,Re,Pe){ze<0&&(ze=0),ze=Math.round(ze),Pe=Math.round(Pe),h.appendChild(E("div",null,"CodeMirror-selected","position: absolute; left: "+de+`px;
2211
+ `,t);u==-1&&(u=e.length);var h=e.slice(t,e.charAt(u-1)=="\r"?u-1:u),g=h.indexOf("\r");g!=-1?(s.push(h.slice(0,g)),t+=g+1):(s.push(h),t=u+1)}return s}:function(e){return e.split(/\r\n?|\n/)},el=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},tl=function(){var e=E("div");return"oncopy"in e?!0:(e.setAttribute("oncopy","return;"),typeof e.oncopy=="function")}(),is=null;function Vi(e){if(is!=null)return is;var t=W(e,E("span","x")),s=t.getBoundingClientRect(),a=ne(t,0,1).getBoundingClientRect();return is=Math.abs(s.left-a.left)>1}var Ln={},pn={};function rl(e,t){arguments.length>2&&(t.dependencies=Array.prototype.slice.call(arguments,2)),Ln[e]=t}function Li(e,t){pn[e]=t}function Po(e){if(typeof e=="string"&&pn.hasOwnProperty(e))e=pn[e];else if(e&&typeof e.name=="string"&&pn.hasOwnProperty(e.name)){var t=pn[e.name];typeof t=="string"&&(t={name:t}),e=rn(t,e),e.name=t.name}else{if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return Po("application/xml");if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return Po("application/json")}return typeof e=="string"?{name:e}:e||{name:"null"}}function ga(e,t){t=Po(t);var s=Ln[t.name];if(!s)return ga(e,"text/plain");var a=s(e,t);if(Fn.hasOwnProperty(t.name)){var u=Fn[t.name];for(var h in u)!u.hasOwnProperty(h)||(a.hasOwnProperty(h)&&(a["_"+h]=a[h]),a[h]=u[h])}if(a.name=t.name,t.helperType&&(a.helperType=t.helperType),t.modeProps)for(var g in t.modeProps)a[g]=t.modeProps[g];return a}var Fn={};function Wn(e,t){var s=Fn.hasOwnProperty(e)?Fn[e]:Fn[e]={};er(t,s)}function gn(e,t){if(t===!0)return t;if(e.copyState)return e.copyState(t);var s={};for(var a in t){var u=t[a];u instanceof Array&&(u=u.concat([])),s[a]=u}return s}function os(e,t){for(var s;e.innerMode&&(s=e.innerMode(t),!(!s||s.mode==e));)t=s.state,e=s.mode;return s||{mode:e,state:t}}function as(e,t,s){return e.startState?e.startState(t,s):!0}var Wt=function(e,t,s){this.pos=this.start=0,this.string=e,this.tabSize=t||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=s};Wt.prototype.eol=function(){return this.pos>=this.string.length},Wt.prototype.sol=function(){return this.pos==this.lineStart},Wt.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Wt.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},Wt.prototype.eat=function(e){var t=this.string.charAt(this.pos),s;if(typeof e=="string"?s=t==e:s=t&&(e.test?e.test(t):e(t)),s)return++this.pos,t},Wt.prototype.eatWhile=function(e){for(var t=this.pos;this.eat(e););return this.pos>t},Wt.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},Wt.prototype.skipToEnd=function(){this.pos=this.string.length},Wt.prototype.skipTo=function(e){var t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0},Wt.prototype.backUp=function(e){this.pos-=e},Wt.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=Ft(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?Ft(this.string,this.lineStart,this.tabSize):0)},Wt.prototype.indentation=function(){return Ft(this.string,null,this.tabSize)-(this.lineStart?Ft(this.string,this.lineStart,this.tabSize):0)},Wt.prototype.match=function(e,t,s){if(typeof e=="string"){var a=function(g){return s?g.toLowerCase():g},u=this.string.substr(this.pos,e.length);if(a(u)==a(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)}},Wt.prototype.current=function(){return this.string.slice(this.start,this.pos)},Wt.prototype.hideFirstChars=function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}},Wt.prototype.lookAhead=function(e){var t=this.lineOracle;return t&&t.lookAhead(e)},Wt.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};function ke(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 s=e;!s.lines;)for(var a=0;;++a){var u=s.children[a],h=u.chunkSize();if(t<h){s=u;break}t-=h}return s.lines[t]}function vn(e,t,s){var a=[],u=t.line;return e.iter(t.line,s.line+1,function(h){var g=h.text;u==s.line&&(g=g.slice(0,s.ch)),u==t.line&&(g=g.slice(t.ch)),a.push(g),++u}),a}function ss(e,t,s){var a=[];return e.iter(t,s,function(u){a.push(u.text)}),a}function nn(e,t){var s=t-e.height;if(s)for(var a=e;a;a=a.parent)a.height+=s}function zt(e){if(e.parent==null)return null;for(var t=e.parent,s=_e(t.lines,e),a=t.parent;a;t=a,a=a.parent)for(var u=0;a.children[u]!=t;++u)s+=a.children[u].chunkSize();return s+t.first}function Un(e,t){var s=e.first;e:do{for(var a=0;a<e.children.length;++a){var u=e.children[a],h=u.height;if(t<h){e=u;continue e}t-=h,s+=u.chunkSize()}return s}while(!e.lines);for(var g=0;g<e.lines.length;++g){var m=e.lines[g],y=m.height;if(t<y)break;t-=y}return s+g}function Gi(e,t){return t>=e.first&&t<e.first+e.size}function va(e,t){return String(e.lineNumberFormatter(t+e.firstLineNumber))}function ie(e,t,s){if(s===void 0&&(s=null),!(this instanceof ie))return new ie(e,t,s);this.line=e,this.ch=t,this.sticky=s}function w(e,t){return e.line-t.line||e.ch-t.ch}function P(e,t){return e.sticky==t.sticky&&w(e,t)==0}function j(e){return ie(e.line,e.ch)}function ae(e,t){return w(e,t)<0?t:e}function qe(e,t){return w(e,t)<0?e:t}function vt(e,t){return Math.max(e.first,Math.min(t,e.first+e.size-1))}function me(e,t){if(t.line<e.first)return ie(e.first,0);var s=e.first+e.size-1;return t.line>s?ie(s,ke(e,s).text.length):Or(t,ke(e,t.line).text.length)}function Or(e,t){var s=e.ch;return s==null||s>t?ie(e.line,t):s<0?ie(e.line,0):e}function on(e,t){for(var s=[],a=0;a<t.length;a++)s[a]=me(e,t[a]);return s}var _i=function(e,t){this.state=e,this.lookAhead=t},Yn=function(e,t,s,a){this.state=t,this.doc=e,this.line=s,this.maxLookAhead=a||0,this.baseTokens=null,this.baseTokenPos=1};Yn.prototype.lookAhead=function(e){var t=this.doc.getLine(this.line+e);return t!=null&&e>this.maxLookAhead&&(this.maxLookAhead=e),t},Yn.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}},Yn.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Yn.fromSaved=function(e,t,s){return t instanceof _i?new Yn(e,gn(e.mode,t.state),s,t.lookAhead):new Yn(e,gn(e.mode,t),s)},Yn.prototype.save=function(e){var t=e!==!1?gn(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new _i(t,this.maxLookAhead):t};function V0(e,t,s,a){var u=[e.state.modeGen],h={};yu(e,t.text,e.doc.mode,s,function(C,_){return u.push(C,_)},h,a);for(var g=s.state,m=function(C){s.baseTokens=u;var _=e.state.overlays[C],M=1,N=0;s.state=!0,yu(e,t.text,_.mode,s,function(R,Z){for(var J=M;N<R;){var le=u[M];le>R&&u.splice(M,1,R,u[M+1],le),M+=2,N=Math.min(R,le)}if(!!Z)if(_.opaque)u.splice(J,M-J,R,"overlay "+Z),M=J+2;else for(;J<M;J+=2){var fe=u[J+1];u[J+1]=(fe?fe+" ":"")+"overlay "+Z}},h),s.state=g,s.baseTokens=null,s.baseTokenPos=1},y=0;y<e.state.overlays.length;++y)m(y);return{styles:u,classes:h.bgClass||h.textClass?h:null}}function mu(e,t,s){if(!t.styles||t.styles[0]!=e.state.modeGen){var a=ba(e,zt(t)),u=t.text.length>e.options.maxHighlightLength&&gn(e.doc.mode,a.state),h=V0(e,t,a);u&&(a.state=u),t.stateAfter=a.save(!u),t.styles=h.styles,h.classes?t.styleClasses=h.classes:t.styleClasses&&(t.styleClasses=null),s===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return t.styles}function ba(e,t,s){var a=e.doc,u=e.display;if(!a.mode.startState)return new Yn(a,!0,t);var h=q0(e,t,s),g=h>a.first&&ke(a,h-1).stateAfter,m=g?Yn.fromSaved(a,g,h):new Yn(a,as(a.mode),h);return a.iter(h,t,function(y){ls(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()}),s&&(a.modeFrontier=m.line),m}function ls(e,t,s,a){var u=e.doc.mode,h=new Wt(t,e.options.tabSize,s);for(h.start=h.pos=a||0,t==""&&G0(u,s.state);!h.eol();)nl(u,h,s.state),h.start=h.pos}function G0(e,t){if(e.blankLine)return e.blankLine(t);if(!!e.innerMode){var s=os(e,t);if(s.mode.blankLine)return s.mode.blankLine(s.state)}}function nl(e,t,s,a){for(var u=0;u<10;u++){a&&(a[0]=os(e,s).mode);var h=e.token(t,s);if(t.pos>t.start)return h}throw new Error("Mode "+e.name+" failed to advance stream.")}var il=function(e,t,s){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=t||null,this.state=s};function ol(e,t,s,a){var u=e.doc,h=u.mode,g;t=me(u,t);var m=ke(u,t.line),y=ba(e,t.line,s),C=new Wt(m.text,e.options.tabSize,y),_;for(a&&(_=[]);(a||C.pos<t.ch)&&!C.eol();)C.start=C.pos,g=nl(h,C,y.state),a&&_.push(new il(C,g,gn(u.mode,y.state)));return a?_:new il(C,g,y.state)}function Ao(e,t){if(e)for(;;){var s=e.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!s)break;e=e.slice(0,s.index)+e.slice(s.index+s[0].length);var a=s[1]?"bgClass":"textClass";t[a]==null?t[a]=s[2]:new RegExp("(?:^|\\s)"+s[2]+"(?:$|\\s)").test(t[a])||(t[a]+=" "+s[2])}return e}function yu(e,t,s,a,u,h,g){var m=s.flattenSpans;m==null&&(m=e.options.flattenSpans);var y=0,C=null,_=new Wt(t,e.options.tabSize,a),M,N=e.options.addModeClass&&[null];for(t==""&&Ao(G0(s,a.state),h);!_.eol();){if(_.pos>e.options.maxHighlightLength?(m=!1,g&&ls(e,t,a,_.pos),_.pos=t.length,M=null):M=Ao(nl(s,_,a.state,N),h),N){var R=N[0].name;R&&(M="m-"+(M?R+" "+M:R))}if(!m||C!=M){for(;y<_.start;)y=Math.min(_.start,y+5e3),u(y,C);C=M}_.start=_.pos}for(;y<_.pos;){var Z=Math.min(_.pos,y+5e3);u(Z,C),y=Z}}function q0(e,t,s){for(var a,u,h=e.doc,g=s?-1:t-(e.doc.mode.innerMode?1e3:100),m=t;m>g;--m){if(m<=h.first)return h.first;var y=ke(h,m-1),C=y.stateAfter;if(C&&(!s||m+(C instanceof _i?C.lookAhead:0)<=h.modeFrontier))return m;var _=Ft(y.text,null,e.options.tabSize);(u==null||a>_)&&(u=m-1,a=_)}return u}function sf(e,t){if(e.modeFrontier=Math.min(e.modeFrontier,t),!(e.highlightFrontier<t-10)){for(var s=e.first,a=t-1;a>s;a--){var u=ke(e,a).stateAfter;if(u&&(!(u instanceof _i)||a+u.lookAhead<t)){s=a+1;break}}e.highlightFrontier=Math.min(e.highlightFrontier,s)}}var Cu=!1,ii=!1;function j0(){Cu=!0}function K0(){ii=!0}function al(e,t,s){this.marker=e,this.from=t,this.to=s}function us(e,t){if(e)for(var s=0;s<e.length;++s){var a=e[s];if(a.marker==t)return a}}function lf(e,t){for(var s,a=0;a<e.length;++a)e[a]!=t&&(s||(s=[])).push(e[a]);return s}function X0(e,t,s){var a=s&&window.WeakSet&&(s.markedSpans||(s.markedSpans=new WeakSet));a&&a.has(e.markedSpans)?e.markedSpans.push(t):(e.markedSpans=e.markedSpans?e.markedSpans.concat([t]):[t],a&&a.add(e.markedSpans)),t.marker.attachLine(e)}function uf(e,t,s){var a;if(e)for(var u=0;u<e.length;++u){var h=e[u],g=h.marker,m=h.from==null||(g.inclusiveLeft?h.from<=t:h.from<t);if(m||h.from==t&&g.type=="bookmark"&&(!s||!h.marker.insertLeft)){var y=h.to==null||(g.inclusiveRight?h.to>=t:h.to>t);(a||(a=[])).push(new al(g,h.from,y?null:h.to))}}return a}function cf(e,t,s){var a;if(e)for(var u=0;u<e.length;++u){var h=e[u],g=h.marker,m=h.to==null||(g.inclusiveRight?h.to>=t:h.to>t);if(m||h.from==t&&g.type=="bookmark"&&(!s||h.marker.insertLeft)){var y=h.from==null||(g.inclusiveLeft?h.from<=t:h.from<t);(a||(a=[])).push(new al(g,y?null:h.from-t,h.to==null?null:h.to-t))}}return a}function wu(e,t){if(t.full)return null;var s=Gi(e,t.from.line)&&ke(e,t.from.line).markedSpans,a=Gi(e,t.to.line)&&ke(e,t.to.line).markedSpans;if(!s&&!a)return null;var u=t.from.ch,h=t.to.ch,g=w(t.from,t.to)==0,m=uf(s,u,g),y=cf(a,h,g),C=t.text.length==1,_=Xe(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 R=us(y,N.marker);R?C&&(N.to=R.to==null?null:R.to+_):N.to=u}}if(y)for(var Z=0;Z<y.length;++Z){var J=y[Z];if(J.to!=null&&(J.to+=_),J.from==null){var le=us(m,J.marker);le||(J.from=_,C&&(m||(m=[])).push(J))}else J.from+=_,C&&(m||(m=[])).push(J)}m&&(m=Q0(m)),y&&y!=m&&(y=Q0(y));var fe=[m];if(!C){var we=t.text.length-2,de;if(we>0&&m)for(var ze=0;ze<m.length;++ze)m[ze].to==null&&(de||(de=[])).push(new al(m[ze].marker,null,null));for(var Re=0;Re<we;++Re)fe.push(de);fe.push(y)}return fe}function Q0(e){for(var t=0;t<e.length;++t){var s=e[t];s.from!=null&&s.from==s.to&&s.marker.clearWhenEmpty!==!1&&e.splice(t--,1)}return e.length?e:null}function xu(e,t,s){var a=null;if(e.iter(t.line,s.line+1,function(R){if(R.markedSpans)for(var Z=0;Z<R.markedSpans.length;++Z){var J=R.markedSpans[Z].marker;J.readOnly&&(!a||_e(a,J)==-1)&&(a||(a=[])).push(J)}}),!a)return null;for(var u=[{from:t,to:s}],h=0;h<a.length;++h)for(var g=a[h],m=g.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||!g.inclusiveLeft&&!M)&&_.push({from:C.from,to:m.from}),(N>0||!g.inclusiveRight&&!N)&&_.push({from:m.to,to:C.to}),u.splice.apply(u,_),y+=_.length-3}}return u}function J0(e){var t=e.markedSpans;if(!!t){for(var s=0;s<t.length;++s)t[s].marker.detachLine(e);e.markedSpans=null}}function ec(e,t){if(!!t){for(var s=0;s<t.length;++s)t[s].marker.attachLine(e);e.markedSpans=t}}function sl(e){return e.inclusiveLeft?-1:0}function ll(e){return e.inclusiveRight?1:0}function zu(e,t){var s=e.lines.length-t.lines.length;if(s!=0)return s;var a=e.find(),u=t.find(),h=w(a.from,u.from)||sl(e)-sl(t);if(h)return-h;var g=w(a.to,u.to)||ll(e)-ll(t);return g||t.id-e.id}function Ut(e,t){var s=ii&&e.markedSpans,a;if(s)for(var u=void 0,h=0;h<s.length;++h)u=s[h],u.marker.collapsed&&(t?u.from:u.to)==null&&(!a||zu(a,u.marker)<0)&&(a=u.marker);return a}function $t(e){return Ut(e,!0)}function ul(e){return Ut(e,!1)}function ff(e,t){var s=ii&&e.markedSpans,a;if(s)for(var u=0;u<s.length;++u){var h=s[u];h.marker.collapsed&&(h.from==null||h.from<t)&&(h.to==null||h.to>t)&&(!a||zu(a,h.marker)<0)&&(a=h.marker)}return a}function tc(e,t,s,a,u){var h=ke(e,t),g=ii&&h.markedSpans;if(g)for(var m=0;m<g.length;++m){var y=g[m];if(!!y.marker.collapsed){var C=y.marker.find(0),_=w(C.from,s)||sl(y.marker)-sl(u),M=w(C.to,a)||ll(y.marker)-ll(u);if(!(_>=0&&M<=0||_<=0&&M>=0)&&(_<=0&&(y.marker.inclusiveRight&&u.inclusiveLeft?w(C.to,s)>=0:w(C.to,s)>0)||_>=0&&(y.marker.inclusiveRight&&u.inclusiveLeft?w(C.from,a)<=0:w(C.from,a)<0)))return!0}}}function oi(e){for(var t;t=$t(e);)e=t.find(-1,!0).line;return e}function df(e){for(var t;t=ul(e);)e=t.find(1,!0).line;return e}function hf(e){for(var t,s;t=ul(e);)e=t.find(1,!0).line,(s||(s=[])).push(e);return s}function cl(e,t){var s=ke(e,t),a=oi(s);return s==a?t:zt(a)}function rc(e,t){if(t>e.lastLine())return t;var s=ke(e,t),a;if(!Gt(e,s))return t;for(;a=ul(s);)s=a.find(1,!0).line;return zt(s)+1}function Gt(e,t){var s=ii&&t.markedSpans;if(s){for(var a=void 0,u=0;u<s.length;++u)if(a=s[u],!!a.marker.collapsed){if(a.from==null)return!0;if(!a.marker.widgetNode&&a.from==0&&a.marker.inclusiveLeft&&cs(e,t,a))return!0}}}function cs(e,t,s){if(s.to==null){var a=s.marker.find(1,!0);return cs(e,a.line,us(a.line.markedSpans,s.marker))}if(s.marker.inclusiveRight&&s.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==s.to&&(u.to==null||u.to!=s.from)&&(u.marker.inclusiveLeft||s.marker.inclusiveRight)&&cs(e,t,u))return!0}function Xr(e){e=oi(e);for(var t=0,s=e.parent,a=0;a<s.lines.length;++a){var u=s.lines[a];if(u==e)break;t+=u.height}for(var h=s.parent;h;s=h,h=s.parent)for(var g=0;g<h.children.length;++g){var m=h.children[g];if(m==s)break;t+=m.height}return t}function fs(e){if(e.height==0)return 0;for(var t=e.text.length,s,a=e;s=$t(a);){var u=s.find(0,!0);a=u.from.line,t+=u.from.ch-u.to.ch}for(a=e;s=ul(a);){var h=s.find(0,!0);t-=a.text.length-h.from.ch,a=h.to.line,t+=a.text.length-h.to.ch}return t}function ds(e){var t=e.display,s=e.doc;t.maxLine=ke(s,s.first),t.maxLineLength=fs(t.maxLine),t.maxLineChanged=!0,s.iter(function(a){var u=fs(a);u>t.maxLineLength&&(t.maxLineLength=u,t.maxLine=a)})}var Tr=function(e,t,s){this.text=e,ec(this,t),this.height=s?s(this):1};Tr.prototype.lineNo=function(){return zt(this)},Bn(Tr);function nc(e,t,s,a){e.text=t,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),e.order!=null&&(e.order=null),J0(e),ec(e,s);var u=a?a(e):1;u!=e.height&&nn(e,u)}function ic(e){e.parent=null,J0(e)}var oc={},ac={};function Lu(e,t){if(!e||/^\s*$/.test(e))return null;var s=t.addModeClass?ac:oc;return s[e]||(s[e]=e.replace(/\S+/g,"cm-$&"))}function _u(e,t){var s=T("span",null,null,I?"padding-right: .1px":null),a={pre:T("pre",[s],"CodeMirror-line"),content:s,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,g=void 0;a.pos=0,a.addToken=pf,ni(e.display.measure)&&(g=Hr(h,e.doc.direction))&&(a.addToken=gf(a.addToken,g)),a.map=[];var m=t!=e.display.externalMeasured&&zt(h);qi(h,a,mu(e,h,m)),h.styleClasses&&(h.styleClasses.bgClass&&(a.bgClass=sr(h.styleClasses.bgClass,a.bgClass||"")),h.styleClasses.textClass&&(a.textClass=sr(h.styleClasses.textClass,a.textClass||""))),a.map.length==0&&a.map.push(0,0,a.content.appendChild(Js(e.display.measure))),u==0?(t.measure.map=a.map,t.measure.cache={}):((t.measure.maps||(t.measure.maps=[])).push(a.map),(t.measure.caches||(t.measure.caches=[])).push({}))}if(I){var y=a.content.lastChild;(/\bcm-tab\b/.test(y.className)||y.querySelector&&y.querySelector(".cm-tab"))&&(a.content.className="cm-tab-wrap-hack")}return Ge(e,"renderLine",e,t.line,a.pre),a.pre.className&&(a.textClass=sr(a.pre.className,a.textClass||"")),a}function bn(e){var t=E("span","\u2022","cm-invalidchar");return t.title="\\u"+e.charCodeAt(0).toString(16),t.setAttribute("aria-label",t.title),t}function pf(e,t,s,a,u,h,g){if(!!t){var m=e.splitSpaces?_n(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,_),S&&O<9&&(C=!0),e.pos+=t.length;else{_=document.createDocumentFragment();for(var M=0;;){y.lastIndex=M;var N=y.exec(t),R=N?N.index-M:t.length-M;if(R){var Z=document.createTextNode(m.slice(M,M+R));S&&O<9?_.appendChild(E("span",[Z])):_.appendChild(Z),e.map.push(e.pos,e.pos+R,Z),e.col+=R,e.pos+=R}if(!N)break;M+=R+1;var J=void 0;if(N[0]==" "){var le=e.cm.options.tabSize,fe=le-e.col%le;J=_.appendChild(E("span",lr(fe),"cm-tab")),J.setAttribute("role","presentation"),J.setAttribute("cm-text"," "),e.col+=fe}else N[0]=="\r"||N[0]==`
2212
+ `?(J=_.appendChild(E("span",N[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),J.setAttribute("cm-text",N[0]),e.col+=1):(J=e.cm.options.specialCharPlaceholder(N[0]),J.setAttribute("cm-text",N[0]),S&&O<9?_.appendChild(E("span",[J])):_.appendChild(J),e.col+=1);e.map.push(e.pos,e.pos+1,J),e.pos++}}if(e.trailingSpace=m.charCodeAt(t.length-1)==32,s||a||u||C||h||g){var we=s||"";a&&(we+=a),u&&(we+=u);var de=E("span",[_],we,h);if(g)for(var ze in g)g.hasOwnProperty(ze)&&ze!="style"&&ze!="class"&&de.setAttribute(ze,g[ze]);return e.content.appendChild(de)}e.content.appendChild(_)}}function _n(e,t){if(e.length>1&&!/ /.test(e))return e;for(var s=t,a="",u=0;u<e.length;u++){var h=e.charAt(u);h==" "&&s&&(u==e.length-1||e.charCodeAt(u+1)==32)&&(h="\xA0"),a+=h,s=h==" "}return a}function gf(e,t){return function(s,a,u,h,g,m,y){u=u?u+" cm-force-border":"cm-force-border";for(var C=s.pos,_=C+a.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(s,a,u,h,g,m,y);e(s,a.slice(0,M.to-C),u,h,null,m,y),h=null,a=a.slice(M.to-C),C=M.to}}}function Su(e,t,s,a){var u=!a&&s.widgetNode;u&&e.map.push(e.pos,e.pos+t,u),!a&&e.cm.display.input.needsContentAttribute&&(u||(u=e.content.appendChild(document.createElement("span"))),u.setAttribute("cm-marker",s.id)),u&&(e.cm.display.input.setUneditable(u),e.content.appendChild(u)),e.pos+=t,e.trailingSpace=!1}function qi(e,t,s){var a=e.markedSpans,u=e.text,h=0;if(!a){for(var g=1;g<s.length;g+=2)t.addToken(t,u.slice(h,h=s[g]),Lu(s[g+1],t.cm.options));return}for(var m=u.length,y=0,C=1,_="",M,N,R=0,Z,J,le,fe,we;;){if(R==y){Z=J=le=N="",we=null,fe=null,R=1/0;for(var de=[],ze=void 0,Re=0;Re<a.length;++Re){var Pe=a[Re],lt=Pe.marker;if(lt.type=="bookmark"&&Pe.from==y&&lt.widgetNode)de.push(lt);else if(Pe.from<=y&&(Pe.to==null||Pe.to>y||lt.collapsed&&Pe.to==y&&Pe.from==y)){if(Pe.to!=null&&Pe.to!=y&&R>Pe.to&&(R=Pe.to,J=""),lt.className&&(Z+=" "+lt.className),lt.css&&(N=(N?N+";":"")+lt.css),lt.startStyle&&Pe.from==y&&(le+=" "+lt.startStyle),lt.endStyle&&Pe.to==R&&(ze||(ze=[])).push(lt.endStyle,Pe.to),lt.title&&((we||(we={})).title=lt.title),lt.attributes)for(var Ot in lt.attributes)(we||(we={}))[Ot]=lt.attributes[Ot];lt.collapsed&&(!fe||zu(fe.marker,lt)<0)&&(fe=Pe)}else Pe.from>y&&R>Pe.from&&(R=Pe.from)}if(ze)for(var ur=0;ur<ze.length;ur+=2)ze[ur+1]==R&&(J+=" "+ze[ur]);if(!fe||fe.from==y)for(var Rt=0;Rt<de.length;++Rt)Su(t,0,de[Rt]);if(fe&&(fe.from||0)==y){if(Su(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 Ur=Math.min(m,R);;){if(_){var Yr=y+_.length;if(!fe){var rr=Yr>Ur?_.slice(0,Ur-y):_;t.addToken(t,rr,M?M+Z:Z,le,y+rr.length==R?J:"",N,we)}if(Yr>=Ur){_=_.slice(Ur-y),y=Ur;break}y=Yr,le=""}_=u.slice(h,h=s[C++]),M=Lu(s[C++],t.cm.options)}}}function hs(e,t,s){this.line=t,this.rest=hf(t),this.size=this.rest?zt(Xe(this.rest))-s+1:1,this.node=this.text=null,this.hidden=Gt(e,t)}function ma(e,t,s){for(var a=[],u,h=t;h<s;h=u){var g=new hs(e.doc,ke(e.doc,h),h);u=h+g.size,a.push(g)}return a}var Et=null;function ji(e){Et?Et.ops.push(e):e.ownsGroup=Et={ops:[e],delayedCallbacks:[]}}function Mu(e){var t=e.delayedCallbacks,s=0;do{for(;s<t.length;s++)t[s].call(null);for(var a=0;a<e.ops.length;a++){var u=e.ops[a];if(u.cursorActivityHandlers)for(;u.cursorActivityCalled<u.cursorActivityHandlers.length;)u.cursorActivityHandlers[u.cursorActivityCalled++].call(null,u.cm)}}while(s<t.length)}function vf(e,t){var s=e.ownsGroup;if(!!s)try{Mu(s)}finally{Et=null,t(s)}}var Eo=null;function hr(e,t){var s=Yi(e,t);if(!!s.length){var a=Array.prototype.slice.call(arguments,2),u;Et?u=Et.delayedCallbacks:Eo?u=Eo:(u=Eo=[],setTimeout(bf,0));for(var h=function(m){u.push(function(){return s[m].apply(null,a)})},g=0;g<s.length;++g)h(g)}}function bf(){var e=Eo;Eo=null;for(var t=0;t<e.length;++t)e[t]()}function sc(e,t,s,a){for(var u=0;u<t.changes.length;u++){var h=t.changes[u];h=="text"?mf(e,t):h=="gutter"?ku(e,t,s,a):h=="class"?dl(e,t):h=="widget"&&Ou(e,t,a)}t.changes=null}function ya(e){return e.node==e.text&&(e.node=E("div",null,null,"position: relative"),e.text.parentNode&&e.text.parentNode.replaceChild(e.node,e.text),e.node.appendChild(e.text),S&&O<8&&(e.node.style.zIndex=2)),e.node}function fl(e,t){var s=t.bgClass?t.bgClass+" "+(t.line.bgClass||""):t.line.bgClass;if(s&&(s+=" CodeMirror-linebackground"),t.background)s?t.background.className=s:(t.background.parentNode.removeChild(t.background),t.background=null);else if(s){var a=ya(t);t.background=a.insertBefore(E("div",null,s),a.firstChild),e.display.input.setUneditable(t.background)}}function Io(e,t){var s=e.display.externalMeasured;return s&&s.line==t.line?(e.display.externalMeasured=null,t.measure=s.measure,s.built):_u(e,t)}function mf(e,t){var s=t.text.className,a=Io(e,t);t.text==t.node&&(t.node=a.pre),t.text.parentNode.replaceChild(a.pre,t.text),t.text=a.pre,a.bgClass!=t.bgClass||a.textClass!=t.textClass?(t.bgClass=a.bgClass,t.textClass=a.textClass,dl(e,t)):s&&(t.text.className=s)}function dl(e,t){fl(e,t),t.line.wrapClass?ya(t).className=t.line.wrapClass:t.node!=t.text&&(t.node.className="");var s=t.textClass?t.textClass+" "+(t.line.textClass||""):t.line.textClass;t.text.className=s||""}function ku(e,t,s,a){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=ya(t);t.gutterBackground=E("div",null,"CodeMirror-gutter-background "+t.line.gutterClass,"left: "+(e.options.fixedGutter?a.fixedPos:-a.gutterTotalWidth)+"px; width: "+a.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 g=ya(t),m=t.gutter=E("div",null,"CodeMirror-gutter-wrapper","left: "+(e.options.fixedGutter?a.fixedPos:-a.gutterTotalWidth)+"px");if(m.setAttribute("aria-hidden","true"),e.display.input.setUneditable(m),g.insertBefore(m,t.text),t.line.gutterClass&&(m.className+=" "+t.line.gutterClass),e.options.lineNumbers&&(!h||!h["CodeMirror-linenumbers"])&&(t.lineNumber=m.appendChild(E("div",va(e.options,s),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+a.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(E("div",[_],"CodeMirror-gutter-elt","left: "+a.gutterLeft[C]+"px; width: "+a.gutterWidth[C]+"px"))}}}function Ou(e,t,s){t.alignable&&(t.alignable=null);for(var a=ve("CodeMirror-linewidget"),u=t.node.firstChild,h=void 0;u;u=h)h=u.nextSibling,a.test(u.className)&&t.node.removeChild(u);Pu(e,t,s)}function Tu(e,t,s,a){var u=Io(e,t);return t.text=t.node=u.pre,u.bgClass&&(t.bgClass=u.bgClass),u.textClass&&(t.textClass=u.textClass),dl(e,t),ku(e,t,s,a),Pu(e,t,a),t.node}function Pu(e,t,s){if(lc(e,t.line,t,s,!0),t.rest)for(var a=0;a<t.rest.length;a++)lc(e,t.rest[a],t,s,!1)}function lc(e,t,s,a,u){if(!!t.widgets)for(var h=ya(s),g=0,m=t.widgets;g<m.length;++g){var y=m[g],C=E("div",[y.node],"CodeMirror-linewidget"+(y.className?" "+y.className:""));y.handleMouseEvents||C.setAttribute("cm-ignore-events","true"),Au(y,C,s,a),e.display.input.setUneditable(C),u&&y.above?h.insertBefore(C,s.gutter||s.text):h.appendChild(C),hr(y,"redraw")}}function Au(e,t,s,a){if(e.noHScroll){(s.alignable||(s.alignable=[])).push(t);var u=a.wrapperWidth;t.style.left=a.fixedPos+"px",e.coverGutter||(u-=a.gutterTotalWidth,t.style.paddingLeft=a.gutterTotalWidth+"px"),t.style.width=u+"px"}e.coverGutter&&(t.style.zIndex=5,t.style.position="relative",e.noHScroll||(t.style.marginLeft=-a.gutterTotalWidth+"px"))}function Do(e){if(e.height!=null)return e.height;var t=e.doc.cm;if(!t)return 0;if(!be(document.body,e.node)){var s="position: relative;";e.coverGutter&&(s+="margin-left: -"+t.display.gutters.offsetWidth+"px;"),e.noHScroll&&(s+="width: "+t.display.wrapper.clientWidth+"px;"),W(t.display.measure,E("div",[e.node],null,s))}return e.height=e.node.parentNode.offsetHeight}function Si(e,t){for(var s=Zi(t);s!=e.wrapper;s=s.parentNode)if(!s||s.nodeType==1&&s.getAttribute("cm-ignore-events")=="true"||s.parentNode==e.sizer&&s!=e.mover)return!0}function ps(e){return e.lineSpace.offsetTop}function Qr(e){return e.mover.offsetHeight-e.lineSpace.offsetHeight}function hl(e){if(e.cachedPaddingH)return e.cachedPaddingH;var t=W(e.measure,E("pre","x","CodeMirror-line-like")),s=window.getComputedStyle?window.getComputedStyle(t):t.currentStyle,a={left:parseInt(s.paddingLeft),right:parseInt(s.paddingRight)};return!isNaN(a.left)&&!isNaN(a.right)&&(e.cachedPaddingH=a),a}function an(e){return Fe-e.display.nativeBarWidth}function Ki(e){return e.display.scroller.clientWidth-an(e)-e.display.barWidth}function pl(e){return e.display.scroller.clientHeight-an(e)-e.display.barHeight}function yf(e,t,s){var a=e.options.lineWrapping,u=a&&Ki(e);if(!t.measure.heights||a&&t.measure.width!=u){var h=t.measure.heights=[];if(a){t.measure.width=u;for(var g=t.text.firstChild.getClientRects(),m=0;m<g.length-1;m++){var y=g[m],C=g[m+1];Math.abs(y.bottom-C.bottom)>2&&h.push((y.bottom+C.top)/2-s.top)}}h.push(s.bottom-s.top)}}function uc(e,t,s){if(e.line==t)return{map:e.measure.map,cache:e.measure.cache};for(var a=0;a<e.rest.length;a++)if(e.rest[a]==t)return{map:e.measure.maps[a],cache:e.measure.caches[a]};for(var u=0;u<e.rest.length;u++)if(zt(e.rest[u])>s)return{map:e.measure.maps[u],cache:e.measure.caches[u],before:!0}}function Cf(e,t){t=oi(t);var s=zt(t),a=e.display.externalMeasured=new hs(e.doc,t,s);a.lineN=s;var u=a.built=_u(e,a);return a.text=u.pre,W(e.display.lineMeasure,u.pre),a}function cc(e,t,s,a){return ai(e,Zn(e,t),s,a)}function Eu(e,t){if(t>=e.display.viewFrom&&t<e.display.viewTo)return e.display.view[li(e,t)];var s=e.display.externalMeasured;if(s&&t>=s.lineN&&t<s.lineN+s.size)return s}function Zn(e,t){var s=zt(t),a=Eu(e,s);a&&!a.text?a=null:a&&a.changes&&(sc(e,a,s,sn(e)),e.curOp.forceUpdate=!0),a||(a=Cf(e,t));var u=uc(a,t,s);return{line:t,view:a,rect:null,map:u.map,cache:u.cache,before:u.before,hasHeights:!1}}function ai(e,t,s,a,u){t.before&&(s=-1);var h=s+(a||""),g;return t.cache.hasOwnProperty(h)?g=t.cache[h]:(t.rect||(t.rect=t.view.text.getBoundingClientRect()),t.hasHeights||(yf(e,t.view,t.rect),t.hasHeights=!0),g=Xi(e,t,s,a),g.bogus||(t.cache[h]=g)),{left:g.left,right:g.right,top:u?g.rtop:g.top,bottom:u?g.rbottom:g.bottom}}var fc={left:0,right:0,top:0,bottom:0};function gl(e,t,s){for(var a,u,h,g,m,y,C=0;C<e.length;C+=3)if(m=e[C],y=e[C+1],t<m?(u=0,h=1,g="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&&(g="right")),u!=null){if(a=e[C+2],m==y&&s==(a.insertLeft?"left":"right")&&(g=s),s=="left"&&u==0)for(;C&&e[C-2]==e[C-3]&&e[C-1].insertLeft;)a=e[(C-=3)+2],g="left";if(s=="right"&&u==y-m)for(;C<e.length-3&&e[C+3]==e[C+4]&&!e[C+5].insertLeft;)a=e[(C+=3)+2],g="right";break}return{node:a,start:u,end:h,collapse:g,coverStart:m,coverEnd:y}}function dc(e,t){var s=fc;if(t=="left")for(var a=0;a<e.length&&(s=e[a]).left==s.right;a++);else for(var u=e.length-1;u>=0&&(s=e[u]).left==s.right;u--);return s}function Xi(e,t,s,a){var u=gl(t.map,s,a),h=u.node,g=u.start,m=u.end,y=u.collapse,C;if(h.nodeType==3){for(var _=0;_<4;_++){for(;g&&Qe(t.line.text.charAt(u.coverStart+g));)--g;for(;u.coverStart+m<u.coverEnd&&Qe(t.line.text.charAt(u.coverStart+m));)++m;if(S&&O<9&&g==0&&m==u.coverEnd-u.coverStart?C=h.parentNode.getBoundingClientRect():C=dc(ne(h,g,m).getClientRects(),a),C.left||C.right||g==0)break;m=g,g=g-1,y="right"}S&&O<11&&(C=vl(e.display.measure,C))}else{g>0&&(y=a="right");var M;e.options.lineWrapping&&(M=h.getClientRects()).length>1?C=M[a=="right"?M.length-1:0]:C=h.getBoundingClientRect()}if(S&&O<9&&!g&&(!C||!C.left&&!C.right)){var N=h.parentNode.getClientRects()[0];N?C={left:N.left,right:N.left+Ca(e.display),top:N.top,bottom:N.bottom}:C=fc}for(var R=C.top-t.rect.top,Z=C.bottom-t.rect.top,J=(R+Z)/2,le=t.view.measure.heights,fe=0;fe<le.length-1&&!(J<le[fe]);fe++);var we=fe?le[fe-1]:0,de=le[fe],ze={left:(y=="right"?C.right:C.left)-t.rect.left,right:(y=="left"?C.left:C.right)-t.rect.left,top:we,bottom:de};return!C.left&&!C.right&&(ze.bogus=!0),e.options.singleCursorHeightPerLine||(ze.rtop=R,ze.rbottom=Z),ze}function vl(e,t){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!Vi(e))return t;var s=screen.logicalXDPI/screen.deviceXDPI,a=screen.logicalYDPI/screen.deviceYDPI;return{left:t.left*s,right:t.right*s,top:t.top*a,bottom:t.bottom*a}}function hc(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 pc(e){e.display.externalMeasure=null,it(e.display.lineMeasure);for(var t=0;t<e.display.view.length;t++)hc(e.display.view[t])}function gs(e){pc(e),e.display.cachedCharWidth=e.display.cachedTextHeight=e.display.cachedPaddingH=null,e.options.lineWrapping||(e.display.maxLineChanged=!0),e.display.lineNumChars=null}function Ro(){return q&&Ie?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function Sn(){return q&&Ie?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function bl(e){var t=0;if(e.widgets)for(var s=0;s<e.widgets.length;++s)e.widgets[s].above&&(t+=Do(e.widgets[s]));return t}function ml(e,t,s,a,u){if(!u){var h=bl(t);s.top+=h,s.bottom+=h}if(a=="line")return s;a||(a="local");var g=Xr(t);if(a=="local"?g+=ps(e.display):g-=e.display.viewOffset,a=="page"||a=="window"){var m=e.display.lineSpace.getBoundingClientRect();g+=m.top+(a=="window"?0:Sn());var y=m.left+(a=="window"?0:Ro());s.left+=y,s.right+=y}return s.top+=g,s.bottom+=g,s}function gc(e,t,s){if(s=="div")return t;var a=t.left,u=t.top;if(s=="page")a-=Ro(),u-=Sn();else if(s=="local"||!s){var h=e.display.sizer.getBoundingClientRect();a+=h.left,u+=h.top}var g=e.display.lineSpace.getBoundingClientRect();return{left:a-g.left,top:u-g.top}}function yl(e,t,s,a,u){return a||(a=ke(e.doc,t.line)),ml(e,a,cc(e,a,t.ch,u),s)}function Vn(e,t,s,a,u,h){a=a||ke(e.doc,t.line),u||(u=Zn(e,a));function g(Z,J){var le=ai(e,u,Z,J?"right":"left",h);return J?le.left=le.right:le.right=le.left,ml(e,a,le,s)}var m=Hr(a,e.doc.direction),y=t.ch,C=t.sticky;if(y>=a.text.length?(y=a.text.length,C="before"):y<=0&&(y=0,C="after"),!m)return g(C=="before"?y-1:y,C=="before");function _(Z,J,le){var fe=m[J],we=fe.level==1;return g(le?Z-1:Z,we!=le)}var M=Zt(m,y,C),N=jr,R=_(y,M,C=="before");return N!=null&&(R.other=_(y,N,C!="before")),R}function vc(e,t){var s=0;t=me(e.doc,t),e.options.lineWrapping||(s=Ca(e.display)*t.ch);var a=ke(e.doc,t.line),u=Xr(a)+ps(e.display);return{left:s,right:s,top:u,bottom:u+a.height}}function Qi(e,t,s,a,u){var h=ie(e,t,s);return h.xRel=u,a&&(h.outside=a),h}function $(e,t,s){var a=e.doc;if(s+=e.display.viewOffset,s<0)return Qi(a.first,0,null,-1,-1);var u=Un(a,s),h=a.first+a.size-1;if(u>h)return Qi(a.first+a.size-1,ke(a,h).text.length,null,1,1);t<0&&(t=0);for(var g=ke(a,u);;){var m=Je(e,g,u,t,s),y=ff(g,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;g=ke(a,u=C.line)}}function K(e,t,s,a){a-=bl(t);var u=t.text.length,h=Mr(function(g){return ai(e,s,g-1).bottom<=a},u,0);return u=Mr(function(g){return ai(e,s,g).top>a},h,u),{begin:h,end:u}}function Y(e,t,s,a){s||(s=Zn(e,t));var u=ml(e,t,ai(e,s,a),"line").top;return K(e,t,s,u)}function Me(e,t,s,a){return e.bottom<=s?!1:e.top>s?!0:(a?e.left:e.right)>t}function Je(e,t,s,a,u){u-=Xr(t);var h=Zn(e,t),g=bl(t),m=0,y=t.text.length,C=!0,_=Hr(t,e.doc.direction);if(_){var M=(e.options.lineWrapping?pr:Mt)(e,t,s,h,_,a,u);C=M.level!=1,m=C?M.from:M.to-1,y=C?M.to:M.from-1}var N=null,R=null,Z=Mr(function(Re){var Pe=ai(e,h,Re);return Pe.top+=g,Pe.bottom+=g,Me(Pe,a,u,!1)?(Pe.top<=u&&Pe.left<=a&&(N=Re,R=Pe),!0):!1},m,y),J,le,fe=!1;if(R){var we=a-R.left<R.right-a,de=we==C;Z=N+(de?0:1),le=de?"after":"before",J=we?R.left:R.right}else{!C&&(Z==y||Z==m)&&Z++,le=Z==0?"after":Z==t.text.length?"before":ai(e,h,Z-(C?1:0)).bottom+g<=u==C?"after":"before";var ze=Vn(e,ie(s,Z,le),"line",t,h);J=ze.left,fe=u<ze.top?-1:u>=ze.bottom?1:0}return Z=dr(t.text,Z,1),Qi(s,Z,le,fe,a-J)}function Mt(e,t,s,a,u,h,g){var m=Mr(function(M){var N=u[M],R=N.level!=1;return Me(Vn(e,ie(s,R?N.to:N.from,R?"before":"after"),"line",t,a),h,g,!0)},0,u.length-1),y=u[m];if(m>0){var C=y.level!=1,_=Vn(e,ie(s,C?y.from:y.to,C?"after":"before"),"line",t,a);Me(_,h,g,!0)&&_.top>g&&(y=u[m-1])}return y}function pr(e,t,s,a,u,h,g){var m=K(e,t,a,g),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 R=u[N];if(!(R.from>=C||R.to<=y)){var Z=R.level!=1,J=ai(e,a,Z?Math.min(C,R.to)-1:Math.max(y,R.from)).right,le=J<h?h-J+1e9:J-h;(!_||M>le)&&(_=R,M=le)}}return _||(_=u[u.length-1]),_.from<y&&(_={from:y,to:_.to,level:_.level}),_.to>C&&(_={from:_.from,to:C,level:_.level}),_}var wt;function Ji(e){if(e.cachedTextHeight!=null)return e.cachedTextHeight;if(wt==null){wt=E("pre",null,"CodeMirror-line-like");for(var t=0;t<49;++t)wt.appendChild(document.createTextNode("x")),wt.appendChild(E("br"));wt.appendChild(document.createTextNode("x"))}W(e.measure,wt);var s=wt.offsetHeight/50;return s>3&&(e.cachedTextHeight=s),it(e.measure),s||1}function Ca(e){if(e.cachedCharWidth!=null)return e.cachedCharWidth;var t=E("span","xxxxxxxxxx"),s=E("pre",[t],"CodeMirror-line-like");W(e.measure,s);var a=t.getBoundingClientRect(),u=(a.right-a.left)/10;return u>2&&(e.cachedCharWidth=u),u||10}function sn(e){for(var t=e.display,s={},a={},u=t.gutters.clientLeft,h=t.gutters.firstChild,g=0;h;h=h.nextSibling,++g){var m=e.display.gutterSpecs[g].className;s[m]=h.offsetLeft+h.clientLeft+u,a[m]=h.clientWidth}return{fixedPos:wa(t),gutterTotalWidth:t.gutters.offsetWidth,gutterLeft:s,gutterWidth:a,wrapperWidth:t.wrapper.clientWidth}}function wa(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function bc(e){var t=Ji(e.display),s=e.options.lineWrapping,a=s&&Math.max(5,e.display.scroller.clientWidth/Ca(e.display)-3);return function(u){if(Gt(e.doc,u))return 0;var h=0;if(u.widgets)for(var g=0;g<u.widgets.length;g++)u.widgets[g].height&&(h+=u.widgets[g].height);return s?h+(Math.ceil(u.text.length/a)||1)*t:h+t}}function eo(e){var t=e.doc,s=bc(e);t.iter(function(a){var u=s(a);u!=a.height&&nn(a,u)})}function si(e,t,s,a){var u=e.display;if(!s&&Zi(t).getAttribute("cm-not-content")=="true")return null;var h,g,m=u.lineSpace.getBoundingClientRect();try{h=t.clientX-m.left,g=t.clientY-m.top}catch{return null}var y=$(e,h,g),C;if(a&&y.xRel>0&&(C=ke(e.doc,y.line).text).length==y.ch){var _=Ft(C,C.length,e.options.tabSize)-C.length;y=ie(y.line,Math.max(0,Math.round((h-hl(e.display).left)/Ca(e.display))-_))}return y}function li(e,t){if(t>=e.display.viewTo||(t-=e.display.viewFrom,t<0))return null;for(var s=e.display.view,a=0;a<s.length;a++)if(t-=s[a].size,t<0)return a}function rt(e,t,s,a){t==null&&(t=e.doc.first),s==null&&(s=e.doc.first+e.doc.size),a||(a=0);var u=e.display;if(a&&s<u.viewTo&&(u.updateLineNumbers==null||u.updateLineNumbers>t)&&(u.updateLineNumbers=t),e.curOp.viewChanged=!0,t>=u.viewTo)ii&&cl(e.doc,t)<u.viewTo&&Mi(e);else if(s<=u.viewFrom)ii&&rc(e.doc,s+a)>u.viewFrom?Mi(e):(u.viewFrom+=a,u.viewTo+=a);else if(t<=u.viewFrom&&s>=u.viewTo)Mi(e);else if(t<=u.viewFrom){var h=No(e,s,s+a,1);h?(u.view=u.view.slice(h.index),u.viewFrom=h.lineN,u.viewTo+=a):Mi(e)}else if(s>=u.viewTo){var g=No(e,t,t,-1);g?(u.view=u.view.slice(0,g.index),u.viewTo=g.lineN):Mi(e)}else{var m=No(e,t,t,-1),y=No(e,s,s+a,1);m&&y?(u.view=u.view.slice(0,m.index).concat(ma(e,m.lineN,y.lineN)).concat(u.view.slice(y.index)),u.viewTo+=a):Mi(e)}var C=u.externalMeasured;C&&(s<C.lineN?C.lineN+=a:t<C.lineN+C.size&&(u.externalMeasured=null))}function to(e,t,s){e.curOp.viewChanged=!0;var a=e.display,u=e.display.externalMeasured;if(u&&t>=u.lineN&&t<u.lineN+u.size&&(a.externalMeasured=null),!(t<a.viewFrom||t>=a.viewTo)){var h=a.view[li(e,t)];if(h.node!=null){var g=h.changes||(h.changes=[]);_e(g,s)==-1&&g.push(s)}}}function Mi(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function No(e,t,s,a){var u=li(e,t),h,g=e.display.view;if(!ii||s==e.doc.first+e.doc.size)return{index:u,lineN:s};for(var m=e.display.viewFrom,y=0;y<u;y++)m+=g[y].size;if(m!=t){if(a>0){if(u==g.length-1)return null;h=m+g[u].size-t,u++}else h=m-t;t+=h,s+=h}for(;cl(e.doc,s)!=s;){if(u==(a<0?0:g.length-1))return null;s+=a*g[u-(a<0?1:0)].size,u+=a}return{index:u,lineN:s}}function wf(e,t,s){var a=e.display,u=a.view;u.length==0||t>=a.viewTo||s<=a.viewFrom?(a.view=ma(e,t,s),a.viewFrom=t):(a.viewFrom>t?a.view=ma(e,t,a.viewFrom).concat(a.view):a.viewFrom<t&&(a.view=a.view.slice(li(e,t))),a.viewFrom=t,a.viewTo<s?a.view=a.view.concat(ma(e,a.viewTo,s)):a.viewTo>s&&(a.view=a.view.slice(0,li(e,s)))),a.viewTo=s}function mc(e){for(var t=e.display.view,s=0,a=0;a<t.length;a++){var u=t[a];!u.hidden&&(!u.node||u.changes)&&++s}return s}function vs(e){e.display.input.showSelection(e.display.input.prepareSelection())}function bs(e,t){t===void 0&&(t=!0);for(var s=e.doc,a={},u=a.cursors=document.createDocumentFragment(),h=a.selection=document.createDocumentFragment(),g=0;g<s.sel.ranges.length;g++)if(!(!t&&g==s.sel.primIndex)){var m=s.sel.ranges[g];if(!(m.from().line>=e.display.viewTo||m.to().line<e.display.viewFrom)){var y=m.empty();(y||e.options.showCursorWhenSelecting)&&ki(e,m.head,u),y||yc(e,m,h)}}return a}function ki(e,t,s){var a=Vn(e,t,"div",null,null,!e.options.singleCursorHeightPerLine),u=s.appendChild(E("div","\xA0","CodeMirror-cursor"));if(u.style.left=a.left+"px",u.style.top=a.top+"px",u.style.height=Math.max(0,a.bottom-a.top)*e.options.cursorHeight+"px",/\bcm-fat-cursor\b/.test(e.getWrapperElement().className)){var h=yl(e,t,"div",null,null);u.style.width=Math.max(0,h.right-h.left)+"px"}if(a.other){var g=s.appendChild(E("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));g.style.display="",g.style.left=a.other.left+"px",g.style.top=a.other.top+"px",g.style.height=(a.other.bottom-a.other.top)*.85+"px"}}function $o(e,t){return e.top-t.top||e.left-t.left}function yc(e,t,s){var a=e.display,u=e.doc,h=document.createDocumentFragment(),g=hl(e.display),m=g.left,y=Math.max(a.sizerWidth,Ki(e)-a.sizer.offsetLeft)-g.right,C=u.direction=="ltr";function _(de,ze,Re,Pe){ze<0&&(ze=0),ze=Math.round(ze),Pe=Math.round(Pe),h.appendChild(E("div",null,"CodeMirror-selected","position: absolute; left: "+de+`px;
2205
2213
  top: `+ze+"px; width: "+(Re==null?y-de:Re)+`px;
2206
- height: `+(Pe-ze)+"px"))}function k(de,ze,Re){var Pe=Me(u,de),lt=Pe.text.length,Ot,ur;function Rt(rr,Sr){return yl(e,ie(de,rr),"div",Pe,Sr)}function Ur(rr,Sr,gr){var It=Y(e,Pe,null,rr),Ht=Sr=="ltr"==(gr=="after")?"left":"right",Xt=gr=="after"?It.begin:It.end-(/\s/.test(Pe.text.charAt(It.end-1))?2:1);return Rt(Xt,Ht)[Ht]}var Yr=Hr(Pe,u.direction);return $n(Yr,ze||0,Re==null?lt:Re,function(rr,Sr,gr,It){var Ht=gr=="ltr",Xt=Rt(rr,Ht?"left":"right"),Zr=Rt(Sr-1,Ht?"right":"left"),Ya=ze==null&&rr==0,bo=Re==null&&Sr==lt,Rr=It==0,hi=!Yr||It==Yr.length-1;if(Zr.top-Xt.top<=3){var vr=(C?Ya:bo)&&Rr,c0=(C?bo:Ya)&&hi,Ei=vr?m:(Ht?Xt:Zr).left,Ko=c0?y:(Ht?Zr:Xt).right;_(Ei,Xt.top,Ko-Ei,Xt.bottom)}else{var Xo,Vr,Za,ql;Ht?(Xo=C&&Ya&&Rr?m:Xt.left,Vr=C?y:Ur(rr,gr,"before"),Za=C?m:Ur(Sr,gr,"after"),ql=C&&bo&&hi?y:Zr.right):(Xo=C?Ur(rr,gr,"before"):m,Vr=!C&&Ya&&Rr?y:Xt.right,Za=!C&&bo&&hi?m:Zr.left,ql=C?Ur(Sr,gr,"after"):y),_(Xo,Xt.top,Vr-Xo,Xt.bottom),Xt.bottom<Zr.top&&_(m,Xt.bottom,null,Zr.top),_(Za,Zr.top,ql-Za,Zr.bottom)}(!Ot||$o(Xt,Ot)<0)&&(Ot=Xt),$o(Zr,Ot)<0&&(Ot=Zr),(!ur||$o(Xt,ur)<0)&&(ur=Xt),$o(Zr,ur)<0&&(ur=Zr)}),{start:Ot,end:ur}}var N=t.from(),R=t.to();if(N.line==R.line)k(N.line,N.ch,R.ch);else{var Z=Me(u,N.line),J=Me(u,R.line),le=oi(Z)==oi(J),fe=k(N.line,N.ch,le?Z.text.length+1:null).end,we=k(R.line,le?0:null,R.ch).start;le&&(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)}s.appendChild(h)}function xa(e){if(!!e.state.focused){var t=e.display;clearInterval(t.blinker);var s=!0;t.cursorDiv.style.visibility="",e.options.cursorBlinkRate>0?t.blinker=setInterval(function(){e.hasFocus()||Ho(e),t.cursorDiv.style.visibility=(s=!s)?"":"hidden"},e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(t.cursorDiv.style.visibility="hidden")}}function Iu(e){e.hasFocus()||(e.display.input.focus(),e.state.focused||za(e))}function Cl(e){e.state.delayingBlurEvent=!0,setTimeout(function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,e.state.focused&&Ho(e))},100)}function za(e,t){e.state.delayingBlurEvent&&!e.state.draggingText&&(e.state.delayingBlurEvent=!1),e.options.readOnly!="nocursor"&&(e.state.focused||(Ge(e,"focus",e,t),e.state.focused=!0,At(e.display.wrapper,"CodeMirror-focused"),!e.curOp&&e.display.selForContextMenu!=e.doc.sel&&(e.display.input.reset(),I&&setTimeout(function(){return e.display.input.reset(!0)},20)),e.display.input.receivedFocus()),xa(e))}function Ho(e,t){e.state.delayingBlurEvent||(e.state.focused&&(Ge(e,"blur",e,t),e.state.focused=!1,Ce(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout(function(){e.state.focused||(e.display.shift=!1)},150))}function ro(e){for(var t=e.display,s=t.lineDiv.offsetTop,a=0;a<t.view.length;a++){var u=t.view[a],h=e.options.lineWrapping,g=void 0,m=0;if(!u.hidden){if(S&&O<8){var y=u.node.offsetTop+u.node.offsetHeight;g=y-s,s=y}else{var C=u.node.getBoundingClientRect();g=C.bottom-C.top,!h&&u.text.firstChild&&(m=u.text.firstChild.getBoundingClientRect().right-C.left-1)}var _=u.line.height-g;if((_>.005||_<-.005)&&(nn(u.line,g),no(u.line),u.rest))for(var k=0;k<u.rest.length;k++)no(u.rest[k]);if(m>e.display.sizerWidth){var N=Math.ceil(m/Ca(e.display));N>e.display.maxLineLength&&(e.display.maxLineLength=N,e.display.maxLine=u.line,e.display.maxLineChanged=!0)}}}}function no(e){if(e.widgets)for(var t=0;t<e.widgets.length;++t){var s=e.widgets[t],a=s.node.parentNode;a&&(s.height=a.offsetHeight)}}function Bo(e,t,s){var a=s&&s.top!=null?Math.max(0,s.top):e.scroller.scrollTop;a=Math.floor(a-ps(e));var u=s&&s.bottom!=null?s.bottom:a+e.wrapper.clientHeight,h=Un(t,a),g=Un(t,u);if(s&&s.ensure){var m=s.ensure.from.line,y=s.ensure.to.line;m<h?(h=m,g=Un(t,Xr(Me(t,m))+e.wrapper.clientHeight)):Math.min(y,t.lastLine())>=g&&(h=Un(t,Xr(Me(t,y))-e.wrapper.clientHeight),g=y)}return{from:h,to:Math.max(g,h+1)}}function wf(e,t){if(!ir(e,"scrollCursorIntoView")){var s=e.display,a=s.sizer.getBoundingClientRect(),u=null;if(t.top+a.top<0?u=!0:t.bottom+a.top>(window.innerHeight||document.documentElement.clientHeight)&&(u=!1),u!=null&&!ye){var h=E("div","\u200B",null,`position: absolute;
2214
+ height: `+(Pe-ze)+"px"))}function M(de,ze,Re){var Pe=ke(u,de),lt=Pe.text.length,Ot,ur;function Rt(rr,Sr){return yl(e,ie(de,rr),"div",Pe,Sr)}function Ur(rr,Sr,gr){var It=Y(e,Pe,null,rr),Ht=Sr=="ltr"==(gr=="after")?"left":"right",Xt=gr=="after"?It.begin:It.end-(/\s/.test(Pe.text.charAt(It.end-1))?2:1);return Rt(Xt,Ht)[Ht]}var Yr=Hr(Pe,u.direction);return $n(Yr,ze||0,Re==null?lt:Re,function(rr,Sr,gr,It){var Ht=gr=="ltr",Xt=Rt(rr,Ht?"left":"right"),Zr=Rt(Sr-1,Ht?"right":"left"),Ya=ze==null&&rr==0,bo=Re==null&&Sr==lt,Rr=It==0,hi=!Yr||It==Yr.length-1;if(Zr.top-Xt.top<=3){var vr=(C?Ya:bo)&&Rr,c0=(C?bo:Ya)&&hi,Ei=vr?m:(Ht?Xt:Zr).left,Ko=c0?y:(Ht?Zr:Xt).right;_(Ei,Xt.top,Ko-Ei,Xt.bottom)}else{var Xo,Vr,Za,ql;Ht?(Xo=C&&Ya&&Rr?m:Xt.left,Vr=C?y:Ur(rr,gr,"before"),Za=C?m:Ur(Sr,gr,"after"),ql=C&&bo&&hi?y:Zr.right):(Xo=C?Ur(rr,gr,"before"):m,Vr=!C&&Ya&&Rr?y:Xt.right,Za=!C&&bo&&hi?m:Zr.left,ql=C?Ur(Sr,gr,"after"):y),_(Xo,Xt.top,Vr-Xo,Xt.bottom),Xt.bottom<Zr.top&&_(m,Xt.bottom,null,Zr.top),_(Za,Zr.top,ql-Za,Zr.bottom)}(!Ot||$o(Xt,Ot)<0)&&(Ot=Xt),$o(Zr,Ot)<0&&(Ot=Zr),(!ur||$o(Xt,ur)<0)&&(ur=Xt),$o(Zr,ur)<0&&(ur=Zr)}),{start:Ot,end:ur}}var N=t.from(),R=t.to();if(N.line==R.line)M(N.line,N.ch,R.ch);else{var Z=ke(u,N.line),J=ke(u,R.line),le=oi(Z)==oi(J),fe=M(N.line,N.ch,le?Z.text.length+1:null).end,we=M(R.line,le?0:null,R.ch).start;le&&(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)}s.appendChild(h)}function xa(e){if(!!e.state.focused){var t=e.display;clearInterval(t.blinker);var s=!0;t.cursorDiv.style.visibility="",e.options.cursorBlinkRate>0?t.blinker=setInterval(function(){e.hasFocus()||Ho(e),t.cursorDiv.style.visibility=(s=!s)?"":"hidden"},e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(t.cursorDiv.style.visibility="hidden")}}function Iu(e){e.hasFocus()||(e.display.input.focus(),e.state.focused||za(e))}function Cl(e){e.state.delayingBlurEvent=!0,setTimeout(function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,e.state.focused&&Ho(e))},100)}function za(e,t){e.state.delayingBlurEvent&&!e.state.draggingText&&(e.state.delayingBlurEvent=!1),e.options.readOnly!="nocursor"&&(e.state.focused||(Ge(e,"focus",e,t),e.state.focused=!0,At(e.display.wrapper,"CodeMirror-focused"),!e.curOp&&e.display.selForContextMenu!=e.doc.sel&&(e.display.input.reset(),I&&setTimeout(function(){return e.display.input.reset(!0)},20)),e.display.input.receivedFocus()),xa(e))}function Ho(e,t){e.state.delayingBlurEvent||(e.state.focused&&(Ge(e,"blur",e,t),e.state.focused=!1,Ce(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout(function(){e.state.focused||(e.display.shift=!1)},150))}function ro(e){for(var t=e.display,s=t.lineDiv.offsetTop,a=0;a<t.view.length;a++){var u=t.view[a],h=e.options.lineWrapping,g=void 0,m=0;if(!u.hidden){if(S&&O<8){var y=u.node.offsetTop+u.node.offsetHeight;g=y-s,s=y}else{var C=u.node.getBoundingClientRect();g=C.bottom-C.top,!h&&u.text.firstChild&&(m=u.text.firstChild.getBoundingClientRect().right-C.left-1)}var _=u.line.height-g;if((_>.005||_<-.005)&&(nn(u.line,g),no(u.line),u.rest))for(var M=0;M<u.rest.length;M++)no(u.rest[M]);if(m>e.display.sizerWidth){var N=Math.ceil(m/Ca(e.display));N>e.display.maxLineLength&&(e.display.maxLineLength=N,e.display.maxLine=u.line,e.display.maxLineChanged=!0)}}}}function no(e){if(e.widgets)for(var t=0;t<e.widgets.length;++t){var s=e.widgets[t],a=s.node.parentNode;a&&(s.height=a.offsetHeight)}}function Bo(e,t,s){var a=s&&s.top!=null?Math.max(0,s.top):e.scroller.scrollTop;a=Math.floor(a-ps(e));var u=s&&s.bottom!=null?s.bottom:a+e.wrapper.clientHeight,h=Un(t,a),g=Un(t,u);if(s&&s.ensure){var m=s.ensure.from.line,y=s.ensure.to.line;m<h?(h=m,g=Un(t,Xr(ke(t,m))+e.wrapper.clientHeight)):Math.min(y,t.lastLine())>=g&&(h=Un(t,Xr(ke(t,y))-e.wrapper.clientHeight),g=y)}return{from:h,to:Math.max(g,h+1)}}function xf(e,t){if(!ir(e,"scrollCursorIntoView")){var s=e.display,a=s.sizer.getBoundingClientRect(),u=null;if(t.top+a.top<0?u=!0:t.bottom+a.top>(window.innerHeight||document.documentElement.clientHeight)&&(u=!1),u!=null&&!ye){var h=E("div","\u200B",null,`position: absolute;
2207
2215
  top: `+(t.top-s.viewOffset-ps(e.display))+`px;
2208
2216
  height: `+(t.bottom-t.top+an(e)+s.barHeight)+`px;
2209
- 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 xf(e,t,s,a){a==null&&(a=0);var u;!e.options.lineWrapping&&t==s&&(s=t.sticky=="before"?ie(t.line,t.ch+1,"before"):t,t=t.ch?ie(t.line,t.sticky=="before"?t.ch-1:t.ch,"after"):t);for(var h=0;h<5;h++){var g=!1,m=Vn(e,t),y=!s||s==t?m:Vn(e,s);u={left:Math.min(m.left,y.left),top:Math.min(m.top,y.top)-a,right:Math.max(m.left,y.left),bottom:Math.max(m.bottom,y.bottom)+a};var C=La(e,u),_=e.doc.scrollTop,k=e.doc.scrollLeft;if(C.scrollTop!=null&&(jt(e,C.scrollTop),Math.abs(e.doc.scrollTop-_)>1&&(g=!0)),C.scrollLeft!=null&&(Fo(e,C.scrollLeft),Math.abs(e.doc.scrollLeft-k)>1&&(g=!0)),!g)break}return u}function zf(e,t){var s=La(e,t);s.scrollTop!=null&&jt(e,s.scrollTop),s.scrollLeft!=null&&Fo(e,s.scrollLeft)}function La(e,t){var s=e.display,a=Ji(e.display);t.top<0&&(t.top=0);var u=e.curOp&&e.curOp.scrollTop!=null?e.curOp.scrollTop:s.scroller.scrollTop,h=pl(e),g={};t.bottom-t.top>h&&(t.bottom=t.top+h);var m=e.doc.height+Qr(s),y=t.top<a,C=t.bottom>m-a;if(t.top<u)g.scrollTop=y?0:t.top;else if(t.bottom>u+h){var _=Math.min(t.top,(C?m:t.bottom)-h);_!=u&&(g.scrollTop=_)}var k=e.options.fixedGutter?0:s.gutters.offsetWidth,N=e.curOp&&e.curOp.scrollLeft!=null?e.curOp.scrollLeft:s.scroller.scrollLeft-k,R=Ki(e)-s.gutters.offsetWidth,Z=t.right-t.left>R;return Z&&(t.right=t.left+R),t.left<10?g.scrollLeft=0:t.left<N?g.scrollLeft=Math.max(0,t.left+k-(Z?0:10)):t.right>R+N-3&&(g.scrollLeft=t.right+(Z?0:10)-R),g}function _a(e,t){t!=null&&(wl(e),e.curOp.scrollTop=(e.curOp.scrollTop==null?e.doc.scrollTop:e.curOp.scrollTop)+t)}function io(e){wl(e);var t=e.getCursor();e.curOp.scrollToPos={from:t,to:t,margin:e.options.cursorScrollMargin}}function ms(e,t,s){(t!=null||s!=null)&&wl(e),t!=null&&(e.curOp.scrollLeft=t),s!=null&&(e.curOp.scrollTop=s)}function Cc(e,t){wl(e),e.curOp.scrollToPos=t}function wl(e){var t=e.curOp.scrollToPos;if(t){e.curOp.scrollToPos=null;var s=vc(e,t.from),a=vc(e,t.to);wc(e,s,a,t.margin)}}function wc(e,t,s,a){var u=La(e,{left:Math.min(t.left,s.left),top:Math.min(t.top,s.top)-a,right:Math.max(t.right,s.right),bottom:Math.max(t.bottom,s.bottom)+a});ms(e,u.scrollLeft,u.scrollTop)}function jt(e,t){Math.abs(e.doc.scrollTop-t)<2||(f||Ru(e,{top:t}),Pr(e,t,!0),f&&Ru(e),ci(e,100))}function Pr(e,t,s){t=Math.max(0,Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,t)),!(e.display.scroller.scrollTop==t&&!s)&&(e.doc.scrollTop=t,e.display.scrollbars.setScrollTop(t),e.display.scroller.scrollTop!=t&&(e.display.scroller.scrollTop=t))}function Fo(e,t,s,a){t=Math.max(0,Math.min(t,e.display.scroller.scrollWidth-e.display.scroller.clientWidth)),!((s?t==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-t)<2)&&!a)&&(e.doc.scrollLeft=t,xc(e),e.display.scroller.scrollLeft!=t&&(e.display.scroller.scrollLeft=t),e.display.scrollbars.setScrollLeft(t))}function ys(e){var t=e.display,s=t.gutters.offsetWidth,a=Math.round(e.doc.height+Qr(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?s:0,docHeight:a,scrollHeight:a+an(e)+t.barHeight,nativeBarWidth:t.nativeBarWidth,gutterWidth:s}}var oo=function(e,t,s){this.cm=s;var a=this.vert=E("div",[E("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),u=this.horiz=E("div",[E("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");a.tabIndex=u.tabIndex=-1,e(a),e(u),$e(a,"scroll",function(){a.clientHeight&&t(a.scrollTop,"vertical")}),$e(u,"scroll",function(){u.clientWidth&&t(u.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,S&&O<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};oo.prototype.update=function(e){var t=e.scrollWidth>e.clientWidth+1,s=e.scrollHeight>e.clientHeight+1,a=e.nativeBarWidth;if(s){this.vert.style.display="block",this.vert.style.bottom=t?a+"px":"0";var u=e.viewHeight-(t?a: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=s?a+"px":"0",this.horiz.style.left=e.barLeft+"px";var h=e.viewWidth-e.barLeft-(s?a: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&&(a==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:s?a:0,bottom:t?a:0}},oo.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},oo.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},oo.prototype.zeroWidthHack=function(){var e=he&&!xe?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new ut,this.disableVert=new ut},oo.prototype.enableZeroWidthBar=function(e,t,s){e.style.pointerEvents="auto";function a(){var u=e.getBoundingClientRect(),h=s=="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,a)}t.set(1e3,a)},oo.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var Cs=function(){};Cs.prototype.update=function(){return{bottom:0,right:0}},Cs.prototype.setScrollLeft=function(){},Cs.prototype.setScrollTop=function(){},Cs.prototype.clear=function(){};function ao(e,t){t||(t=ys(e));var s=e.display.barWidth,a=e.display.barHeight;Sa(e,t);for(var u=0;u<4&&s!=e.display.barWidth||a!=e.display.barHeight;u++)s!=e.display.barWidth&&e.options.lineWrapping&&ro(e),Sa(e,ys(e)),s=e.display.barWidth,a=e.display.barHeight}function Sa(e,t){var s=e.display,a=s.scrollbars.update(t);s.sizer.style.paddingRight=(s.barWidth=a.right)+"px",s.sizer.style.paddingBottom=(s.barHeight=a.bottom)+"px",s.heightForcer.style.borderBottom=a.bottom+"px solid transparent",a.right&&a.bottom?(s.scrollbarFiller.style.display="block",s.scrollbarFiller.style.height=a.bottom+"px",s.scrollbarFiller.style.width=a.right+"px"):s.scrollbarFiller.style.display="",a.bottom&&e.options.coverGutterNextToScrollbar&&e.options.fixedGutter?(s.gutterFiller.style.display="block",s.gutterFiller.style.height=a.bottom+"px",s.gutterFiller.style.width=t.gutterWidth+"px"):s.gutterFiller.style.display=""}var xl={native:oo,null:Cs};function Wo(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&Ce(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new xl[e.options.scrollbarStyle](function(t){e.display.wrapper.insertBefore(t,e.display.scrollbarFiller),$e(t,"mousedown",function(){e.state.focused&&setTimeout(function(){return e.display.input.focus()},0)}),t.setAttribute("cm-not-content","true")},function(t,s){s=="horizontal"?Fo(e,t):jt(e,t)},e),e.display.scrollbars.addClass&&At(e.display.wrapper,e.display.scrollbars.addClass)}var ws=0;function Gn(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:++ws,markArrays:null},ji(e.curOp)}function ui(e){var t=e.curOp;t&&gf(t,function(s){for(var a=0;a<s.ops.length;a++)s.ops[a].cm.curOp=null;ka(s)})}function ka(e){for(var t=e.ops,s=0;s<t.length;s++)Lf(t[s]);for(var a=0;a<t.length;a++)_f(t[a]);for(var u=0;u<t.length;u++)Sf(t[u]);for(var h=0;h<t.length;h++)kf(t[h]);for(var g=0;g<t.length;g++)Mf(t[g])}function Lf(e){var t=e.cm,s=t.display;bt(t),e.updateMaxLine&&ds(t),e.mustUpdate=e.viewChanged||e.forceUpdate||e.scrollTop!=null||e.scrollToPos&&(e.scrollToPos.from.line<s.viewFrom||e.scrollToPos.to.line>=s.viewTo)||s.maxLineChanged&&t.options.lineWrapping,e.update=e.mustUpdate&&new Jr(t,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function _f(e){e.updatedDisplay=e.mustUpdate&&Du(e.cm,e.update)}function Sf(e){var t=e.cm,s=t.display;e.updatedDisplay&&ro(t),e.barMeasure=ys(t),s.maxLineChanged&&!t.options.lineWrapping&&(e.adjustWidthTo=cc(t,s.maxLine,s.maxLine.text.length).left+3,t.display.sizerWidth=e.adjustWidthTo,e.barMeasure.scrollWidth=Math.max(s.scroller.clientWidth,s.sizer.offsetLeft+e.adjustWidthTo+an(t)+t.display.barWidth),e.maxScrollLeft=Math.max(0,s.sizer.offsetLeft+e.adjustWidthTo-Ki(t))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=s.input.prepareSelection())}function kf(e){var t=e.cm;e.adjustWidthTo!=null&&(t.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft<t.doc.scrollLeft&&Fo(t,Math.min(t.display.scroller.scrollLeft,e.maxScrollLeft),!0),t.display.maxLineChanged=!1);var s=e.focus&&e.focus==ot();e.preparedSelection&&t.display.input.showSelection(e.preparedSelection,s),(e.updatedDisplay||e.startHeight!=t.doc.height)&&ao(t,e.barMeasure),e.updatedDisplay&&$u(t,e.barMeasure),e.selectionChanged&&xa(t),t.state.focused&&e.updateInput&&t.display.input.reset(e.typing),s&&Iu(e.cm)}function Mf(e){var t=e.cm,s=t.display,a=t.doc;if(e.updatedDisplay&&so(t,e.update),s.wheelStartX!=null&&(e.scrollTop!=null||e.scrollLeft!=null||e.scrollToPos)&&(s.wheelStartX=s.wheelStartY=null),e.scrollTop!=null&&Pr(t,e.scrollTop,e.forceScroll),e.scrollLeft!=null&&Fo(t,e.scrollLeft,!0,!0),e.scrollToPos){var u=xf(t,me(a,e.scrollToPos.from),me(a,e.scrollToPos.to),e.scrollToPos.margin);wf(t,u)}var h=e.maybeHiddenMarkers,g=e.maybeUnhiddenMarkers;if(h)for(var m=0;m<h.length;++m)h[m].lines.length||Ge(h[m],"hide");if(g)for(var y=0;y<g.length;++y)g[y].lines.length&&Ge(g[y],"unhide");s.wrapper.offsetHeight&&(a.scrollTop=t.display.scroller.scrollTop),e.changeObjs&&Ge(t,"changes",t,e.changeObjs),e.update&&e.update.finish()}function Ar(e,t){if(e.curOp)return t();Gn(e);try{return t()}finally{ui(e)}}function Kt(e,t){return function(){if(e.curOp)return t.apply(e,arguments);Gn(e);try{return t.apply(e,arguments)}finally{ui(e)}}}function Er(e){return function(){if(this.curOp)return e.apply(this,arguments);Gn(this);try{return e.apply(this,arguments)}finally{ui(this)}}}function z(e){return function(){var t=this.cm;if(!t||t.curOp)return e.apply(this,arguments);Gn(t);try{return e.apply(this,arguments)}finally{ui(t)}}}function ci(e,t){e.doc.highlightFrontier<e.display.viewTo&&e.state.highlight.set(t,dn(zl,e))}function zl(e){var t=e.doc;if(!(t.highlightFrontier>=e.display.viewTo)){var s=+new Date+e.options.workTime,a=ba(e,t.highlightFrontier),u=[];t.iter(a.line,Math.min(t.first+t.size,e.display.viewTo+500),function(h){if(a.line>=e.display.viewFrom){var g=h.styles,m=h.text.length>e.options.maxHighlightLength?gn(t.mode,a.state):null,y=V0(e,h,a,!0);m&&(a.state=m),h.styles=y.styles;var C=h.styleClasses,_=y.classes;_?h.styleClasses=_:C&&(h.styleClasses=null);for(var k=!g||g.length!=h.styles.length||C!=_&&(!C||!_||C.bgClass!=_.bgClass||C.textClass!=_.textClass),N=0;!k&&N<g.length;++N)k=g[N]!=h.styles[N];k&&u.push(a.line),h.stateAfter=a.save(),a.nextLine()}else h.text.length<=e.options.maxHighlightLength&&ls(e,h.text,a),h.stateAfter=a.line%5==0?a.save():null,a.nextLine();if(+new Date>s)return ci(e,e.options.workDelay),!0}),t.highlightFrontier=a.line,t.modeFrontier=Math.max(t.modeFrontier,a.line),u.length&&Ar(e,function(){for(var h=0;h<u.length;h++)to(e,u[h],"text")})}}var Jr=function(e,t,s){var a=e.display;this.viewport=t,this.visible=Bo(a,e.doc,t),this.editorIsHidden=!a.wrapper.offsetWidth,this.wrapperHeight=a.wrapper.clientHeight,this.wrapperWidth=a.wrapper.clientWidth,this.oldDisplayWidth=Ki(e),this.force=s,this.dims=sn(e),this.events=[]};Jr.prototype.signal=function(e,t){wr(e,t)&&this.events.push(arguments)},Jr.prototype.finish=function(){for(var e=0;e<this.events.length;e++)Ge.apply(null,this.events[e])};function bt(e){var t=e.display;!t.scrollbarsClipped&&t.scroller.offsetWidth&&(t.nativeBarWidth=t.scroller.offsetWidth-t.scroller.clientWidth,t.heightForcer.style.height=an(e)+"px",t.sizer.style.marginBottom=-t.nativeBarWidth+"px",t.sizer.style.borderRightWidth=an(e)+"px",t.scrollbarsClipped=!0)}function Of(e){if(e.hasFocus())return null;var t=ot();if(!t||!be(e.display.lineDiv,t))return null;var s={activeElt:t};if(window.getSelection){var a=window.getSelection();a.anchorNode&&a.extend&&be(e.display.lineDiv,a.anchorNode)&&(s.anchorNode=a.anchorNode,s.anchorOffset=a.anchorOffset,s.focusNode=a.focusNode,s.focusOffset=a.focusOffset)}return s}function Tf(e){if(!(!e||!e.activeElt||e.activeElt==ot())&&(e.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(e.activeElt.nodeName)&&e.anchorNode&&be(document.body,e.anchorNode)&&be(document.body,e.focusNode))){var t=window.getSelection(),s=document.createRange();s.setEnd(e.anchorNode,e.anchorOffset),s.collapse(!1),t.removeAllRanges(),t.addRange(s),t.extend(e.focusNode,e.focusOffset)}}function Du(e,t){var s=e.display,a=e.doc;if(t.editorIsHidden)return ki(e),!1;if(!t.force&&t.visible.from>=s.viewFrom&&t.visible.to<=s.viewTo&&(s.updateLineNumbers==null||s.updateLineNumbers>=s.viewTo)&&s.renderedView==s.view&&mc(e)==0)return!1;fi(e)&&(ki(e),t.dims=sn(e));var u=a.first+a.size,h=Math.max(t.visible.from-e.options.viewportMargin,a.first),g=Math.min(u,t.visible.to+e.options.viewportMargin);s.viewFrom<h&&h-s.viewFrom<20&&(h=Math.max(a.first,s.viewFrom)),s.viewTo>g&&s.viewTo-g<20&&(g=Math.min(u,s.viewTo)),ii&&(h=cl(e.doc,h),g=rc(e.doc,g));var m=h!=s.viewFrom||g!=s.viewTo||s.lastWrapHeight!=t.wrapperHeight||s.lastWrapWidth!=t.wrapperWidth;Cf(e,h,g),s.viewOffset=Xr(Me(e.doc,s.viewFrom)),e.display.mover.style.top=s.viewOffset+"px";var y=mc(e);if(!m&&y==0&&!t.force&&s.renderedView==s.view&&(s.updateLineNumbers==null||s.updateLineNumbers>=s.viewTo))return!1;var C=Of(e);return y>4&&(s.lineDiv.style.display="none"),Pf(e,s.updateLineNumbers,t.dims),y>4&&(s.lineDiv.style.display=""),s.renderedView=s.view,Tf(C),it(s.cursorDiv),it(s.selectionDiv),s.gutters.style.height=s.sizer.style.minHeight=0,m&&(s.lastWrapHeight=t.wrapperHeight,s.lastWrapWidth=t.wrapperWidth,ci(e,400)),s.updateLineNumbers=null,!0}function so(e,t){for(var s=t.viewport,a=!0;;a=!1){if(!a||!e.options.lineWrapping||t.oldDisplayWidth==Ki(e)){if(s&&s.top!=null&&(s={top:Math.min(e.doc.height+Qr(e.display)-pl(e),s.top)}),t.visible=Bo(e.display,e.doc,s),t.visible.from>=e.display.viewFrom&&t.visible.to<=e.display.viewTo)break}else a&&(t.visible=Bo(e.display,e.doc,s));if(!Du(e,t))break;ro(e);var u=ys(e);vs(e),ao(e,u),$u(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 Ru(e,t){var s=new Jr(e,t);if(Du(e,s)){ro(e),so(e,s);var a=ys(e);vs(e),ao(e,a),$u(e,a),s.finish()}}function Pf(e,t,s){var a=e.display,u=e.options.lineNumbers,h=a.lineDiv,g=h.firstChild;function m(Z){var J=Z.nextSibling;return I&&he&&e.display.currentWheelTarget==Z?Z.style.display="none":Z.parentNode.removeChild(Z),J}for(var y=a.view,C=a.viewFrom,_=0;_<y.length;_++){var k=y[_];if(!k.hidden)if(!k.node||k.node.parentNode!=h){var N=Tu(e,k,C,s);h.insertBefore(N,g)}else{for(;g!=k.node;)g=m(g);var R=u&&t!=null&&t<=C&&k.lineNumber;k.changes&&(_e(k.changes,"gutter")>-1&&(R=!1),sc(e,k,C,s)),R&&(it(k.lineNumber),k.lineNumber.appendChild(document.createTextNode(va(e.options,C)))),g=k.node.nextSibling}C+=k.size}for(;g;)g=m(g)}function Nu(e){var t=e.gutters.offsetWidth;e.sizer.style.marginLeft=t+"px",hr(e,"gutterChanged",e)}function $u(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+an(e)+"px"}function xc(e){var t=e.display,s=t.view;if(!(!t.alignWidgets&&(!t.gutters.firstChild||!e.options.fixedGutter))){for(var a=wa(t)-t.scroller.scrollLeft+e.doc.scrollLeft,u=t.gutters.offsetWidth,h=a+"px",g=0;g<s.length;g++)if(!s[g].hidden){e.options.fixedGutter&&(s[g].gutter&&(s[g].gutter.style.left=h),s[g].gutterBackground&&(s[g].gutterBackground.style.left=h));var m=s[g].alignable;if(m)for(var y=0;y<m.length;y++)m[y].style.left=h}e.options.fixedGutter&&(t.gutters.style.left=a+u+"px")}}function fi(e){if(!e.options.lineNumbers)return!1;var t=e.doc,s=va(e.options,t.first+t.size-1),a=e.display;if(s.length!=a.lineNumChars){var u=a.measure.appendChild(E("div",[E("div",s)],"CodeMirror-linenumber CodeMirror-gutter-elt")),h=u.firstChild.offsetWidth,g=u.offsetWidth-h;return a.lineGutter.style.width="",a.lineNumInnerWidth=Math.max(h,a.lineGutter.offsetWidth-g)+1,a.lineNumWidth=a.lineNumInnerWidth+g,a.lineNumChars=a.lineNumInnerWidth?s.length:-1,a.lineGutter.style.width=a.lineNumWidth+"px",Nu(e.display),!0}return!1}function Hu(e,t){for(var s=[],a=!1,u=0;u<e.length;u++){var h=e[u],g=null;if(typeof h!="string"&&(g=h.style,h=h.className),h=="CodeMirror-linenumbers")if(t)a=!0;else continue;s.push({className:h,style:g})}return t&&!a&&s.push({className:"CodeMirror-linenumbers",style:null}),s}function zc(e){var t=e.gutters,s=e.gutterSpecs;it(t),e.lineGutter=null;for(var a=0;a<s.length;++a){var u=s[a],h=u.className,g=u.style,m=t.appendChild(E("div",null,"CodeMirror-gutter "+h));g&&(m.style.cssText=g),h=="CodeMirror-linenumbers"&&(e.lineGutter=m,m.style.width=(e.lineNumWidth||1)+"px")}t.style.display=s.length?"":"none",Nu(e)}function xs(e){zc(e.display),rt(e),xc(e)}function Af(e,t,s,a){var u=this;this.input=s,u.scrollbarFiller=E("div",null,"CodeMirror-scrollbar-filler"),u.scrollbarFiller.setAttribute("cm-not-content","true"),u.gutterFiller=E("div",null,"CodeMirror-gutter-filler"),u.gutterFiller.setAttribute("cm-not-content","true"),u.lineDiv=T("div",null,"CodeMirror-code"),u.selectionDiv=E("div",null,null,"position: relative; z-index: 1"),u.cursorDiv=E("div",null,"CodeMirror-cursors"),u.measure=E("div",null,"CodeMirror-measure"),u.lineMeasure=E("div",null,"CodeMirror-measure"),u.lineSpace=T("div",[u.measure,u.lineMeasure,u.selectionDiv,u.cursorDiv,u.lineDiv],null,"position: relative; outline: none");var h=T("div",[u.lineSpace],"CodeMirror-lines");u.mover=E("div",[h],null,"position: relative"),u.sizer=E("div",[u.mover],"CodeMirror-sizer"),u.sizerWidth=null,u.heightForcer=E("div",null,null,"position: absolute; height: "+Fe+"px; width: 1px;"),u.gutters=E("div",null,"CodeMirror-gutters"),u.lineGutter=null,u.scroller=E("div",[u.sizer,u.heightForcer,u.gutters],"CodeMirror-scroll"),u.scroller.setAttribute("tabIndex","-1"),u.wrapper=E("div",[u.scrollbarFiller,u.gutterFiller,u.scroller],"CodeMirror"),u.wrapper.setAttribute("translate","no"),S&&O<8&&(u.gutters.style.zIndex=-1,u.scroller.style.paddingRight=0),!I&&!(f&&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=Hu(a.gutters,a.lineNumbers),zc(u),s.init(u)}var Ll=0,or=null;S?or=-.53:f?or=15:q?or=-.7:ce&&(or=-1/3);function Lc(e){var t=e.wheelDeltaX,s=e.wheelDeltaY;return t==null&&e.detail&&e.axis==e.HORIZONTAL_AXIS&&(t=e.detail),s==null&&e.detail&&e.axis==e.VERTICAL_AXIS?s=e.detail:s==null&&(s=e.wheelDelta),{x:t,y:s}}function Ef(e){var t=Lc(e);return t.x*=or,t.y*=or,t}function _c(e,t){var s=Lc(t),a=s.x,u=s.y,h=e.display,g=h.scroller,m=g.scrollWidth>g.clientWidth,y=g.scrollHeight>g.clientHeight;if(!!(a&&m||u&&y)){if(u&&he&&I){e:for(var C=t.target,_=h.view;C!=g;C=C.parentNode)for(var k=0;k<_.length;k++)if(_[k].node==C){e.display.currentWheelTarget=C;break e}}if(a&&!f&&!X&&or!=null){u&&y&&jt(e,Math.max(0,g.scrollTop+u*or)),Fo(e,Math.max(0,g.scrollLeft+a*or)),(!u||u&&y)&&xr(t),h.wheelStartX=null;return}if(u&&or!=null){var N=u*or,R=e.doc.scrollTop,Z=R+h.wrapper.clientHeight;N<0?R=Math.max(0,R+N-50):Z=Math.min(e.doc.height,Z+N+50),Ru(e,{top:R,bottom:Z})}Ll<20&&(h.wheelStartX==null?(h.wheelStartX=g.scrollLeft,h.wheelStartY=g.scrollTop,h.wheelDX=a,h.wheelDY=u,setTimeout(function(){if(h.wheelStartX!=null){var J=g.scrollLeft-h.wheelStartX,le=g.scrollTop-h.wheelStartY,fe=le&&h.wheelDY&&le/h.wheelDY||J&&h.wheelDX&&J/h.wheelDX;h.wheelStartX=h.wheelStartY=null,fe&&(or=(or*Ll+fe)/(Ll+1),++Ll)}},200)):(h.wheelDX+=a,h.wheelDY+=u))}}var mn=function(e,t){this.ranges=e,this.primIndex=t};mn.prototype.primary=function(){return this.ranges[this.primIndex]},mn.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 s=this.ranges[t],a=e.ranges[t];if(!P(s.anchor,a.anchor)||!P(s.head,a.head))return!1}return!0},mn.prototype.deepCopy=function(){for(var e=[],t=0;t<this.ranges.length;t++)e[t]=new Lt(j(this.ranges[t].anchor),j(this.ranges[t].head));return new mn(e,this.primIndex)},mn.prototype.somethingSelected=function(){for(var e=0;e<this.ranges.length;e++)if(!this.ranges[e].empty())return!0;return!1},mn.prototype.contains=function(e,t){t||(t=e);for(var s=0;s<this.ranges.length;s++){var a=this.ranges[s];if(w(t,a.from())>=0&&w(e,a.to())<=0)return s}return-1};var Lt=function(e,t){this.anchor=e,this.head=t};Lt.prototype.from=function(){return qe(this.anchor,this.head)},Lt.prototype.to=function(){return ae(this.anchor,this.head)},Lt.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function Ir(e,t,s){var a=e&&e.options.selectionsMayTouch,u=t[s];t.sort(function(N,R){return w(N.from(),R.from())}),s=_e(t,u);for(var h=1;h<t.length;h++){var g=t[h],m=t[h-1],y=w(m.to(),g.from());if(a&&!g.empty()?y>0:y>=0){var C=qe(m.from(),g.from()),_=ae(m.to(),g.to()),k=m.empty()?g.from()==g.head:m.from()==m.head;h<=s&&--s,t.splice(--h,2,new Lt(k?_:C,k?C:_))}}return new mn(t,s)}function lo(e,t){return new mn([new Lt(e,t||e)],0)}function uo(e){return e.text?ie(e.from.line+e.text.length-1,Xe(e.text).length+(e.text.length==1?e.from.ch:0)):e.to}function Sn(e,t){if(w(e,t.from)<0)return e;if(w(e,t.to)<=0)return uo(t);var s=e.line+t.text.length-(t.to.line-t.from.line)-1,a=e.ch;return e.line==t.to.line&&(a+=uo(t).ch-t.to.ch),ie(s,a)}function Bu(e,t){for(var s=[],a=0;a<e.sel.ranges.length;a++){var u=e.sel.ranges[a];s.push(new Lt(Sn(u.anchor,t),Sn(u.head,t)))}return Ir(e.cm,s,e.sel.primIndex)}function Sc(e,t,s){return e.line==t.line?ie(s.line,e.ch-t.ch+s.ch):ie(s.line+(e.line-t.line),e.ch)}function If(e,t,s){for(var a=[],u=ie(e.first,0),h=u,g=0;g<t.length;g++){var m=t[g],y=Sc(m.from,u,h),C=Sc(uo(m),u,h);if(u=m.to,h=C,s=="around"){var _=e.sel.ranges[g],k=w(_.head,_.anchor)<0;a[g]=new Lt(k?C:y,k?y:C)}else a[g]=new Lt(y,y)}return new mn(a,e.sel.primIndex)}function Fu(e){e.doc.mode=ga(e.options,e.doc.modeOption),zs(e)}function zs(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,ci(e,100),e.state.modeGen++,e.curOp&&rt(e)}function Wu(e,t){return t.from.ch==0&&t.to.ch==0&&Xe(t.text)==""&&(!e.cm||e.cm.options.wholeLineUpdateBefore)}function _l(e,t,s,a){function u(we){return s?s[we]:null}function h(we,de,ze){nc(we,de,ze,a),hr(we,"change",we,t)}function g(we,de){for(var ze=[],Re=we;Re<de;++Re)ze.push(new Tr(C[Re],u(Re),a));return ze}var m=t.from,y=t.to,C=t.text,_=Me(e,m.line),k=Me(e,y.line),N=Xe(C),R=u(C.length-1),Z=y.line-m.line;if(t.full)e.insert(0,g(0,C.length)),e.remove(C.length,e.size-C.length);else if(Wu(e,t)){var J=g(0,C.length-1);h(k,k.text,R),Z&&e.remove(m.line,Z),J.length&&e.insert(m.line,J)}else if(_==k)if(C.length==1)h(_,_.text.slice(0,m.ch)+N+_.text.slice(y.ch),R);else{var le=g(1,C.length-1);le.push(new Tr(N+_.text.slice(y.ch),R,a)),h(_,_.text.slice(0,m.ch)+C[0],u(0)),e.insert(m.line+1,le)}else if(C.length==1)h(_,_.text.slice(0,m.ch)+C[0]+k.text.slice(y.ch),u(0)),e.remove(m.line+1,Z);else{h(_,_.text.slice(0,m.ch)+C[0],u(0)),h(k,N+k.text.slice(y.ch),R);var fe=g(1,C.length-1);Z>1&&e.remove(m.line+1,Z-1),e.insert(m.line+1,fe)}hr(e,"change",e,t)}function co(e,t,s){function a(u,h,g){if(u.linked)for(var m=0;m<u.linked.length;++m){var y=u.linked[m];if(y.doc!=h){var C=g&&y.sharedHist;s&&!C||(t(y.doc,C),a(y.doc,u,C))}}}a(e,null,!0)}function kc(e,t){if(t.cm)throw new Error("This document is already in use.");e.doc=t,t.cm=e,eo(e),Fu(e),Sl(e),e.options.direction=t.direction,e.options.lineWrapping||ds(e),e.options.mode=t.modeOption,rt(e)}function Sl(e){(e.doc.direction=="rtl"?At:Ce)(e.display.lineDiv,"CodeMirror-rtl")}function Ls(e){Ar(e,function(){Sl(e),rt(e)})}function Uo(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 Uu(e,t){var s={from:j(t.from),to:uo(t),text:vn(e,t.from,t.to)};return Mc(e,s,t.from.line,t.to.line+1),co(e,function(a){return Mc(a,s,t.from.line,t.to.line+1)},!0),s}function Yu(e){for(;e.length;){var t=Xe(e);if(t.ranges)e.pop();else break}}function Df(e,t){if(t)return Yu(e.done),Xe(e.done);if(e.done.length&&!Xe(e.done).ranges)return Xe(e.done);if(e.done.length>1&&!e.done[e.done.length-2].ranges)return e.done.pop(),Xe(e.done)}function di(e,t,s,a){var u=e.history;u.undone.length=0;var h=+new Date,g,m;if((u.lastOp==a||u.lastOrigin==t.origin&&t.origin&&(t.origin.charAt(0)=="+"&&u.lastModTime>h-(e.cm?e.cm.options.historyEventDelay:500)||t.origin.charAt(0)=="*"))&&(g=Df(u,u.lastOp==a)))m=Xe(g.changes),w(t.from,t.to)==0&&w(t.from,m.to)==0?m.to=uo(t):g.changes.push(Uu(e,t));else{var y=Xe(u.done);for((!y||!y.ranges)&&en(e.sel,u.done),g={changes:[Uu(e,t)],generation:u.generation},u.done.push(g);u.done.length>u.undoDepth;)u.done.shift(),u.done[0].ranges||u.done.shift()}u.done.push(s),u.generation=++u.maxGeneration,u.lastModTime=u.lastSelTime=h,u.lastOp=u.lastSelOp=a,u.lastOrigin=u.lastSelOrigin=t.origin,m||Ge(e,"historyAdded")}function Zu(e,t,s,a){var u=t.charAt(0);return u=="*"||u=="+"&&s.ranges.length==a.ranges.length&&s.somethingSelected()==a.somethingSelected()&&new Date-e.history.lastSelTime<=(e.cm?e.cm.options.historyEventDelay:500)}function Yo(e,t,s,a){var u=e.history,h=a&&a.origin;s==u.lastSelOp||h&&u.lastSelOrigin==h&&(u.lastModTime==u.lastSelTime&&u.lastOrigin==h||Zu(e,h,Xe(u.done),t))?u.done[u.done.length-1]=t:en(t,u.done),u.lastSelTime=+new Date,u.lastSelOrigin=h,u.lastSelOp=s,a&&a.clearRedo!==!1&&Yu(u.undone)}function en(e,t){var s=Xe(t);s&&s.ranges&&s.equals(e)||t.push(e)}function Mc(e,t,s,a){var u=t["spans_"+e.id],h=0;e.iter(Math.max(e.first,s),Math.min(e.first+e.size,a),function(g){g.markedSpans&&((u||(u=t["spans_"+e.id]={}))[h]=g.markedSpans),++h})}function Oc(e){if(!e)return null;for(var t,s=0;s<e.length;++s)e[s].marker.explicitlyCleared?t||(t=e.slice(0,s)):t&&t.push(e[s]);return t?t.length?t:null:e}function Tc(e,t){var s=t["spans_"+e.id];if(!s)return null;for(var a=[],u=0;u<t.text.length;++u)a.push(Oc(s[u]));return a}function Ma(e,t){var s=Tc(e,t),a=wu(e,t);if(!s)return a;if(!a)return s;for(var u=0;u<s.length;++u){var h=s[u],g=a[u];if(h&&g){e:for(var m=0;m<g.length;++m){for(var y=g[m],C=0;C<h.length;++C)if(h[C].marker==y.marker)continue e;h.push(y)}}else g&&(s[u]=g)}return s}function yn(e,t,s){for(var a=[],u=0;u<e.length;++u){var h=e[u];if(h.ranges){a.push(s?mn.prototype.deepCopy.call(h):h);continue}var g=h.changes,m=[];a.push({changes:m});for(var y=0;y<g.length;++y){var C=g[y],_=void 0;if(m.push({from:C.from,to:C.to,text:C.text}),t)for(var k in C)(_=k.match(/^spans_(\d+)$/))&&_e(t,Number(_[1]))>-1&&(Xe(m)[k]=C[k],delete C[k])}}return a}function kl(e,t,s,a){if(a){var u=e.anchor;if(s){var h=w(t,u)<0;h!=w(s,u)<0?(u=t,t=s):h!=w(t,s)<0&&(t=s)}return new Lt(u,t)}else return new Lt(s||t,t)}function Ml(e,t,s,a,u){u==null&&(u=e.cm&&(e.cm.display.shift||e.extend)),zr(e,new mn([kl(e.sel.primary(),t,s,u)],0),a)}function _s(e,t,s){for(var a=[],u=e.cm&&(e.cm.display.shift||e.extend),h=0;h<e.sel.ranges.length;h++)a[h]=kl(e.sel.ranges[h],t[h],null,u);var g=Ir(e.cm,a,e.sel.primIndex);zr(e,g,s)}function Vu(e,t,s,a){var u=e.sel.ranges.slice(0);u[t]=s,zr(e,Ir(e.cm,u,e.sel.primIndex),a)}function Gu(e,t,s,a){zr(e,lo(t,s),a)}function Dr(e,t,s){var a={ranges:t.ranges,update:function(u){this.ranges=[];for(var h=0;h<u.length;h++)this.ranges[h]=new Lt(me(e,u[h].anchor),me(e,u[h].head))},origin:s&&s.origin};return Ge(e,"beforeSelectionChange",e,a),e.cm&&Ge(e.cm,"beforeSelectionChange",e.cm,a),a.ranges!=t.ranges?Ir(e.cm,a.ranges,a.ranges.length-1):t}function Ol(e,t,s){var a=e.history.done,u=Xe(a);u&&u.ranges?(a[a.length-1]=t,Cn(e,t,s)):zr(e,t,s)}function zr(e,t,s){Cn(e,t,s),Yo(e,e.sel,e.cm?e.cm.curOp.id:NaN,s)}function Cn(e,t,s){(wr(e,"beforeSelectionChange")||e.cm&&wr(e.cm,"beforeSelectionChange"))&&(t=Dr(e,t,s));var a=s&&s.bias||(w(t.primary().head,e.sel.primary().head)<0?-1:1);Tl(e,fo(e,t,a,!0)),!(s&&s.scroll===!1)&&e.cm&&e.cm.getOption("readOnly")!="nocursor"&&io(e.cm)}function Tl(e,t){t.equals(e.sel)||(e.sel=t,e.cm&&(e.cm.curOp.updateInput=1,e.cm.curOp.selectionChanged=!0,ha(e.cm)),hr(e,"cursorActivity",e))}function Ss(e){Tl(e,fo(e,e.sel,null,!1))}function fo(e,t,s,a){for(var u,h=0;h<t.ranges.length;h++){var g=t.ranges[h],m=t.ranges.length==e.sel.ranges.length&&e.sel.ranges[h],y=Lr(e,g.anchor,m&&m.anchor,s,a),C=Lr(e,g.head,m&&m.head,s,a);(u||y!=g.anchor||C!=g.head)&&(u||(u=t.ranges.slice(0,h)),u[h]=new Lt(y,C))}return u?Ir(e.cm,u,t.primIndex):t}function Zo(e,t,s,a,u){var h=Me(e,t.line);if(h.markedSpans)for(var g=0;g<h.markedSpans.length;++g){var m=h.markedSpans[g],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&&(Ge(y,"beforeCursorEnter"),y.explicitlyCleared))if(h.markedSpans){--g;continue}else break;if(!y.atomic)continue;if(s){var k=y.find(a<0?1:-1),N=void 0;if((a<0?_:C)&&(k=Pl(e,k,-a,k&&k.line==t.line?h:null)),k&&k.line==t.line&&(N=w(k,s))&&(a<0?N<0:N>0))return Zo(e,k,t,a,u)}var R=y.find(a<0?-1:1);return(a<0?C:_)&&(R=Pl(e,R,a,R.line==t.line?h:null)),R?Zo(e,R,t,a,u):null}}return t}function Lr(e,t,s,a,u){var h=a||1,g=Zo(e,t,s,h,u)||!u&&Zo(e,t,s,h,!0)||Zo(e,t,s,-h,u)||!u&&Zo(e,t,s,-h,!0);return g||(e.cantEdit=!0,ie(e.first,0))}function Pl(e,t,s,a){return s<0&&t.ch==0?t.line>e.first?me(e,ie(t.line-1)):null:s>0&&t.ch==(a||Me(e,t.line)).text.length?t.line<e.first+e.size-1?ie(t.line+1,0):null:new ie(t.line,t.ch+s)}function Pc(e){e.setSelection(ie(e.firstLine(),0),ie(e.lastLine()),at)}function Ac(e,t,s){var a={canceled:!1,from:t.from,to:t.to,text:t.text,origin:t.origin,cancel:function(){return a.canceled=!0}};return s&&(a.update=function(u,h,g,m){u&&(a.from=me(e,u)),h&&(a.to=me(e,h)),g&&(a.text=g),m!==void 0&&(a.origin=m)}),Ge(e,"beforeChange",e,a),e.cm&&Ge(e.cm,"beforeChange",e.cm,a),a.canceled?(e.cm&&(e.cm.curOp.updateInput=2),null):{from:a.from,to:a.to,text:a.text,origin:a.origin}}function Oa(e,t,s){if(e.cm){if(!e.cm.curOp)return Kt(e.cm,Oa)(e,t,s);if(e.cm.state.suppressEdits)return}if(!((wr(e,"beforeChange")||e.cm&&wr(e.cm,"beforeChange"))&&(t=Ac(e,t,!0),!t))){var a=Cu&&!s&&xu(e,t.from,t.to);if(a)for(var u=a.length-1;u>=0;--u)Al(e,{from:a[u].from,to:a[u].to,text:u?[""]:t.text,origin:t.origin});else Al(e,t)}}function Al(e,t){if(!(t.text.length==1&&t.text[0]==""&&w(t.from,t.to)==0)){var s=Bu(e,t);di(e,t,s,e.cm?e.cm.curOp.id:NaN),Pa(e,t,s,wu(e,t));var a=[];co(e,function(u,h){!h&&_e(a,u.history)==-1&&(Ic(u.history,t),a.push(u.history)),Pa(u,t,null,wu(u,t))})}}function El(e,t,s){var a=e.cm&&e.cm.state.suppressEdits;if(!(a&&!s)){for(var u=e.history,h,g=e.sel,m=t=="undo"?u.done:u.undone,y=t=="undo"?u.undone:u.done,C=0;C<m.length&&(h=m[C],!(s?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(en(h,y),s&&!h.equals(e.sel)){zr(e,h,{clearRedo:!1});return}g=h}else if(a){m.push(h);return}else break;var _=[];en(g,y),y.push({changes:_,generation:u.generation}),u.generation=h.generation||++u.maxGeneration;for(var k=wr(e,"beforeChange")||e.cm&&wr(e.cm,"beforeChange"),N=function(J){var le=h.changes[J];if(le.origin=t,k&&!Ac(e,le,!1))return m.length=0,{};_.push(Uu(e,le));var fe=J?Bu(e,le):Xe(m);Pa(e,le,fe,Ma(e,le)),!J&&e.cm&&e.cm.scrollIntoView({from:le.from,to:uo(le)});var we=[];co(e,function(de,ze){!ze&&_e(we,de.history)==-1&&(Ic(de.history,le),we.push(de.history)),Pa(de,le,null,Ma(de,le))})},R=h.changes.length-1;R>=0;--R){var Z=N(R);if(Z)return Z.v}}}}function Ta(e,t){if(t!=0&&(e.first+=t,e.sel=new mn(yt(e.sel.ranges,function(u){return new Lt(ie(u.anchor.line+t,u.anchor.ch),ie(u.head.line+t,u.head.ch))}),e.sel.primIndex),e.cm)){rt(e.cm,e.first,e.first-t,t);for(var s=e.cm.display,a=s.viewFrom;a<s.viewTo;a++)to(e.cm,a,"gutter")}}function Pa(e,t,s,a){if(e.cm&&!e.cm.curOp)return Kt(e.cm,Pa)(e,t,s,a);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:ie(e.first,0),to:ie(t.to.line+u,t.to.ch),text:[Xe(t.text)],origin:t.origin}}var h=e.lastLine();t.to.line>h&&(t={from:t.from,to:ie(h,Me(e,h).text.length),text:[t.text[0]],origin:t.origin}),t.removed=vn(e,t.from,t.to),s||(s=Bu(e,t)),e.cm?Rf(e.cm,t,a):_l(e,t,a),Cn(e,s,at),e.cantEdit&&Lr(e,ie(e.firstLine(),0))&&(e.cantEdit=!1)}}function Rf(e,t,s){var a=e.doc,u=e.display,h=t.from,g=t.to,m=!1,y=h.line;e.options.lineWrapping||(y=zt(oi(Me(a,h.line))),a.iter(y,g.line+1,function(R){if(R==u.maxLine)return m=!0,!0})),a.sel.contains(t.from,t.to)>-1&&ha(e),_l(a,t,s,bc(e)),e.options.lineWrapping||(a.iter(y,h.line+t.text.length,function(R){var Z=fs(R);Z>u.maxLineLength&&(u.maxLine=R,u.maxLineLength=Z,u.maxLineChanged=!0,m=!1)}),m&&(e.curOp.updateMaxLine=!0)),af(a,h.line),ci(e,400);var C=t.text.length-(g.line-h.line)-1;t.full?rt(e):h.line==g.line&&t.text.length==1&&!Wu(e.doc,t)?to(e,h.line,"text"):rt(e,h.line,g.line+1,C);var _=wr(e,"changes"),k=wr(e,"change");if(k||_){var N={from:h,to:g,text:t.text,removed:t.removed,origin:t.origin};k&&hr(e,"change",e,N),_&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(N)}e.display.selForContextMenu=null}function Aa(e,t,s,a,u){var h;a||(a=s),w(a,s)<0&&(h=[a,s],s=h[0],a=h[1]),typeof t=="string"&&(t=e.splitLines(t)),Oa(e,{from:s,to:a,text:t,origin:u})}function Ea(e,t,s,a){s<e.line?e.line+=a:t<e.line&&(e.line=t,e.ch=0)}function Ec(e,t,s,a){for(var u=0;u<e.length;++u){var h=e[u],g=!0;if(h.ranges){h.copied||(h=e[u]=h.deepCopy(),h.copied=!0);for(var m=0;m<h.ranges.length;m++)Ea(h.ranges[m].anchor,t,s,a),Ea(h.ranges[m].head,t,s,a);continue}for(var y=0;y<h.changes.length;++y){var C=h.changes[y];if(s<C.from.line)C.from=ie(C.from.line+a,C.from.ch),C.to=ie(C.to.line+a,C.to.ch);else if(t<=C.to.line){g=!1;break}}g||(e.splice(0,u+1),u=0)}}function Ic(e,t){var s=t.from.line,a=t.to.line,u=t.text.length-(a-s)-1;Ec(e.done,s,a,u),Ec(e.undone,s,a,u)}function Vo(e,t,s,a){var u=t,h=t;return typeof t=="number"?h=Me(e,vt(e,t)):u=zt(t),u==null?null:(a(h,u)&&e.cm&&to(e.cm,u,s),h)}function Ia(e){this.lines=e,this.parent=null;for(var t=0,s=0;s<e.length;++s)e[s].parent=this,t+=e[s].height;this.height=t}Ia.prototype={chunkSize:function(){return this.lines.length},removeInner:function(e,t){for(var s=e,a=e+t;s<a;++s){var u=this.lines[s];this.height-=u.height,ic(u),hr(u,"delete")}this.lines.splice(e,t)},collapse:function(e){e.push.apply(e,this.lines)},insertInner:function(e,t,s){this.height+=s,this.lines=this.lines.slice(0,e).concat(t).concat(this.lines.slice(e));for(var a=0;a<t.length;++a)t[a].parent=this},iterN:function(e,t,s){for(var a=e+t;e<a;++e)if(s(this.lines[e]))return!0}};function ks(e){this.children=e;for(var t=0,s=0,a=0;a<e.length;++a){var u=e[a];t+=u.chunkSize(),s+=u.height,u.parent=this}this.size=t,this.height=s,this.parent=null}ks.prototype={chunkSize:function(){return this.size},removeInner:function(e,t){this.size-=t;for(var s=0;s<this.children.length;++s){var a=this.children[s],u=a.chunkSize();if(e<u){var h=Math.min(t,u-e),g=a.height;if(a.removeInner(e,h),this.height-=g-a.height,u==h&&(this.children.splice(s--,1),a.parent=null),(t-=h)==0)break;e=0}else e-=u}if(this.size-t<25&&(this.children.length>1||!(this.children[0]instanceof Ia))){var m=[];this.collapse(m),this.children=[new Ia(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,s){this.size+=t.length,this.height+=s;for(var a=0;a<this.children.length;++a){var u=this.children[a],h=u.chunkSize();if(e<=h){if(u.insertInner(e,t,s),u.lines&&u.lines.length>50){for(var g=u.lines.length%25+25,m=g;m<u.lines.length;){var y=new Ia(u.lines.slice(m,m+=25));u.height-=y.height,this.children.splice(++a,0,y),y.parent=this}u.lines=u.lines.slice(0,g),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),s=new ks(t);if(e.parent){e.size-=s.size,e.height-=s.height;var u=_e(e.parent.children,e);e.parent.children.splice(u+1,0,s)}else{var a=new ks(e.children);a.parent=e,e.children=[a,s],e=a}s.parent=e.parent}while(e.children.length>10);e.parent.maybeSpill()}},iterN:function(e,t,s){for(var a=0;a<this.children.length;++a){var u=this.children[a],h=u.chunkSize();if(e<h){var g=Math.min(t,h-e);if(u.iterN(e,g,s))return!0;if((t-=g)==0)break;e=0}else e-=h}}};var Ms=function(e,t,s){if(s)for(var a in s)s.hasOwnProperty(a)&&(this[a]=s[a]);this.doc=e,this.node=t};Ms.prototype.clear=function(){var e=this.doc.cm,t=this.line.widgets,s=this.line,a=zt(s);if(!(a==null||!t)){for(var u=0;u<t.length;++u)t[u]==this&&t.splice(u--,1);t.length||(s.widgets=null);var h=Do(this);nn(s,Math.max(0,s.height-h)),e&&(Ar(e,function(){Dc(e,s,-h),to(e,a,"widget")}),hr(e,"lineWidgetCleared",e,this,a))}},Ms.prototype.changed=function(){var e=this,t=this.height,s=this.doc.cm,a=this.line;this.height=null;var u=Do(this)-t;!u||(Gt(this.doc,a)||nn(a,a.height+u),s&&Ar(s,function(){s.curOp.forceUpdate=!0,Dc(s,a,u),hr(s,"lineWidgetChanged",s,e,zt(a))}))},Bn(Ms);function Dc(e,t,s){Xr(t)<(e.curOp&&e.curOp.scrollTop||e.doc.scrollTop)&&_a(e,s)}function Rc(e,t,s,a){var u=new Ms(e,s,a),h=e.cm;return h&&u.noHScroll&&(h.display.alignWidgets=!0),Vo(e,t,"widget",function(g){var m=g.widgets||(g.widgets=[]);if(u.insertAt==null?m.push(u):m.splice(Math.min(m.length,Math.max(0,u.insertAt)),0,u),u.line=g,h&&!Gt(e,g)){var y=Xr(g)<e.scrollTop;nn(g,g.height+Do(u)),y&&_a(h,u.height),h.curOp.forceUpdate=!0}return!0}),h&&hr(h,"lineWidgetAdded",h,u,typeof t=="number"?t:zt(t)),u}var Il=0,ho=function(e,t){this.lines=[],this.type=t,this.doc=e,this.id=++Il};ho.prototype.clear=function(){if(!this.explicitlyCleared){var e=this.doc.cm,t=e&&!e.curOp;if(t&&Gn(e),wr(this,"clear")){var s=this.find();s&&hr(this,"clear",s.from,s.to)}for(var a=null,u=null,h=0;h<this.lines.length;++h){var g=this.lines[h],m=us(g.markedSpans,this);e&&!this.collapsed?to(e,zt(g),"text"):e&&(m.to!=null&&(u=zt(g)),m.from!=null&&(a=zt(g))),g.markedSpans=sf(g.markedSpans,m),m.from==null&&this.collapsed&&!Gt(this.doc,g)&&e&&nn(g,Ji(e.display))}if(e&&this.collapsed&&!e.options.lineWrapping)for(var y=0;y<this.lines.length;++y){var C=oi(this.lines[y]),_=fs(C);_>e.display.maxLineLength&&(e.display.maxLine=C,e.display.maxLineLength=_,e.display.maxLineChanged=!0)}a!=null&&e&&this.collapsed&&rt(e,a,u+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&Ss(e.doc)),e&&hr(e,"markerCleared",e,this,a,u),t&&ui(e),this.parent&&this.parent.clear()}},ho.prototype.find=function(e,t){e==null&&this.type=="bookmark"&&(e=1);for(var s,a,u=0;u<this.lines.length;++u){var h=this.lines[u],g=us(h.markedSpans,this);if(g.from!=null&&(s=ie(t?h:zt(h),g.from),e==-1))return s;if(g.to!=null&&(a=ie(t?h:zt(h),g.to),e==1))return a}return s&&{from:s,to:a}},ho.prototype.changed=function(){var e=this,t=this.find(-1,!0),s=this,a=this.doc.cm;!t||!a||Ar(a,function(){var u=t.line,h=zt(t.line),g=Eu(a,h);if(g&&(hc(g),a.curOp.selectionChanged=a.curOp.forceUpdate=!0),a.curOp.updateMaxLine=!0,!Gt(s.doc,u)&&s.height!=null){var m=s.height;s.height=null;var y=Do(s)-m;y&&nn(u,u.height+y)}hr(a,"markerChanged",a,e)})},ho.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)},ho.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)}},Bn(ho);function po(e,t,s,a,u){if(a&&a.shared)return Nc(e,t,s,a,u);if(e.cm&&!e.cm.curOp)return Kt(e.cm,po)(e,t,s,a,u);var h=new ho(e,u),g=w(t,s);if(a&&er(a,h,!1),g>0||g==0&&h.clearWhenEmpty!==!1)return h;if(h.replacedWith&&(h.collapsed=!0,h.widgetNode=T("span",[h.replacedWith],"CodeMirror-widget"),a.handleMouseEvents||h.widgetNode.setAttribute("cm-ignore-events","true"),a.insertLeft&&(h.widgetNode.insertLeft=!0)),h.collapsed){if(tc(e,t.line,t,s,h)||t.line!=s.line&&tc(e,s.line,t,s,h))throw new Error("Inserting collapsed marker partially overlapping an existing one");K0()}h.addToHistory&&di(e,{from:t,to:s,origin:"markText"},e.sel,NaN);var m=t.line,y=e.cm,C;if(e.iter(m,s.line+1,function(k){y&&h.collapsed&&!y.options.lineWrapping&&oi(k)==y.display.maxLine&&(C=!0),h.collapsed&&m!=t.line&&nn(k,0),X0(k,new al(h,m==t.line?t.ch:null,m==s.line?s.ch:null),e.cm&&e.cm.curOp),++m}),h.collapsed&&e.iter(t.line,s.line+1,function(k){Gt(e,k)&&nn(k,0)}),h.clearOnEnter&&$e(h,"beforeCursorEnter",function(){return h.clear()}),h.readOnly&&(j0(),(e.history.done.length||e.history.undone.length)&&e.clearHistory()),h.collapsed&&(h.id=++Il,h.atomic=!0),y){if(C&&(y.curOp.updateMaxLine=!0),h.collapsed)rt(y,t.line,s.line+1);else if(h.className||h.startStyle||h.endStyle||h.css||h.attributes||h.title)for(var _=t.line;_<=s.line;_++)to(y,_,"text");h.atomic&&Ss(y.doc),hr(y,"markerAdded",y,h)}return h}var Da=function(e,t){this.markers=e,this.primary=t;for(var s=0;s<e.length;++s)e[s].parent=this};Da.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var e=0;e<this.markers.length;++e)this.markers[e].clear();hr(this,"clear")}},Da.prototype.find=function(e,t){return this.primary.find(e,t)},Bn(Da);function Nc(e,t,s,a,u){a=er(a),a.shared=!1;var h=[po(e,t,s,a,u)],g=h[0],m=a.widgetNode;return co(e,function(y){m&&(a.widgetNode=m.cloneNode(!0)),h.push(po(y,me(y,t),me(y,s),a,u));for(var C=0;C<y.linked.length;++C)if(y.linked[C].isParent)return;g=Xe(h)}),new Da(h,g)}function qu(e){return e.findMarks(ie(e.first,0),e.clipPos(ie(e.lastLine())),function(t){return t.parent})}function Dl(e,t){for(var s=0;s<t.length;s++){var a=t[s],u=a.find(),h=e.clipPos(u.from),g=e.clipPos(u.to);if(w(h,g)){var m=po(e,h,g,a.primary,a.primary.type);a.markers.push(m),m.parent=a}}}function Nf(e){for(var t=function(a){var u=e[a],h=[u.primary.doc];co(u.primary.doc,function(y){return h.push(y)});for(var g=0;g<u.markers.length;g++){var m=u.markers[g];_e(h,m.doc)==-1&&(m.parent=null,u.markers.splice(g--,1))}},s=0;s<e.length;s++)t(s)}var $c=0,Br=function(e,t,s,a,u){if(!(this instanceof Br))return new Br(e,t,s,a,u);s==null&&(s=0),ks.call(this,[new Ia([new Tr("",null)])]),this.first=s,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=s;var h=ie(s,0);this.sel=lo(h),this.history=new Uo(null),this.id=++$c,this.modeOption=t,this.lineSep=a,this.direction=u=="rtl"?"rtl":"ltr",this.extend=!1,typeof e=="string"&&(e=this.splitLines(e)),_l(this,{from:h,to:h,text:e}),zr(this,lo(h),at)};Br.prototype=rn(ks.prototype,{constructor:Br,iter:function(e,t,s){s?this.iterN(e-this.first,t-e,s):this.iterN(this.first,this.first+this.size,e)},insert:function(e,t){for(var s=0,a=0;a<t.length;++a)s+=t[a].height;this.insertInner(e-this.first,t,s)},remove:function(e,t){this.removeInner(e-this.first,t)},getValue:function(e){var t=ss(this,this.first,this.first+this.size);return e===!1?t:t.join(e||this.lineSeparator())},setValue:z(function(e){var t=ie(this.first,0),s=this.first+this.size-1;Oa(this,{from:t,to:ie(s,Me(this,s).text.length),text:this.splitLines(e),origin:"setValue",full:!0},!0),this.cm&&ms(this.cm,0,0),zr(this,lo(t),at)}),replaceRange:function(e,t,s,a){t=me(this,t),s=s?me(this,s):t,Aa(this,e,t,s,a)},getRange:function(e,t,s){var a=vn(this,me(this,e),me(this,t));return s===!1?a:s===""?a.join(""):a.join(s||this.lineSeparator())},getLine:function(e){var t=this.getLineHandle(e);return t&&t.text},getLineHandle:function(e){if(Gi(this,e))return Me(this,e)},getLineNumber:function(e){return zt(e)},getLineHandleVisualStart:function(e){return typeof e=="number"&&(e=Me(this,e)),oi(e)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(e){return me(this,e)},getCursor:function(e){var t=this.sel.primary(),s;return e==null||e=="head"?s=t.head:e=="anchor"?s=t.anchor:e=="end"||e=="to"||e===!1?s=t.to():s=t.from(),s},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:z(function(e,t,s){Gu(this,me(this,typeof e=="number"?ie(e,t||0):e),null,s)}),setSelection:z(function(e,t,s){Gu(this,me(this,e),me(this,t||e),s)}),extendSelection:z(function(e,t,s){Ml(this,me(this,e),t&&me(this,t),s)}),extendSelections:z(function(e,t){_s(this,on(this,e),t)}),extendSelectionsBy:z(function(e,t){var s=yt(this.sel.ranges,e);_s(this,on(this,s),t)}),setSelections:z(function(e,t,s){if(!!e.length){for(var a=[],u=0;u<e.length;u++)a[u]=new Lt(me(this,e[u].anchor),me(this,e[u].head||e[u].anchor));t==null&&(t=Math.min(e.length-1,this.sel.primIndex)),zr(this,Ir(this.cm,a,t),s)}}),addSelection:z(function(e,t,s){var a=this.sel.ranges.slice(0);a.push(new Lt(me(this,e),me(this,t||e))),zr(this,Ir(this.cm,a,a.length-1),s)}),getSelection:function(e){for(var t=this.sel.ranges,s,a=0;a<t.length;a++){var u=vn(this,t[a].from(),t[a].to());s=s?s.concat(u):u}return e===!1?s:s.join(e||this.lineSeparator())},getSelections:function(e){for(var t=[],s=this.sel.ranges,a=0;a<s.length;a++){var u=vn(this,s[a].from(),s[a].to());e!==!1&&(u=u.join(e||this.lineSeparator())),t[a]=u}return t},replaceSelection:function(e,t,s){for(var a=[],u=0;u<this.sel.ranges.length;u++)a[u]=e;this.replaceSelections(a,t,s||"+input")},replaceSelections:z(function(e,t,s){for(var a=[],u=this.sel,h=0;h<u.ranges.length;h++){var g=u.ranges[h];a[h]={from:g.from(),to:g.to(),text:this.splitLines(e[h]),origin:s}}for(var m=t&&t!="end"&&If(this,a,t),y=a.length-1;y>=0;y--)Oa(this,a[y]);m?Ol(this,m):this.cm&&io(this.cm)}),undo:z(function(){El(this,"undo")}),redo:z(function(){El(this,"redo")}),undoSelection:z(function(){El(this,"undo",!0)}),redoSelection:z(function(){El(this,"redo",!0)}),setExtending:function(e){this.extend=e},getExtending:function(){return this.extend},historySize:function(){for(var e=this.history,t=0,s=0,a=0;a<e.done.length;a++)e.done[a].ranges||++t;for(var u=0;u<e.undone.length;u++)e.undone[u].ranges||++s;return{undo:t,redo:s}},clearHistory:function(){var e=this;this.history=new Uo(this.history),co(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:yn(this.history.done),undone:yn(this.history.undone)}},setHistory:function(e){var t=this.history=new Uo(this.history);t.done=yn(e.done.slice(0),null,!0),t.undone=yn(e.undone.slice(0),null,!0)},setGutterMarker:z(function(e,t,s){return Vo(this,e,"gutter",function(a){var u=a.gutterMarkers||(a.gutterMarkers={});return u[t]=s,!s&&oe(u)&&(a.gutterMarkers=null),!0})}),clearGutter:z(function(e){var t=this;this.iter(function(s){s.gutterMarkers&&s.gutterMarkers[e]&&Vo(t,s,"gutter",function(){return s.gutterMarkers[e]=null,oe(s.gutterMarkers)&&(s.gutterMarkers=null),!0})})}),lineInfo:function(e){var t;if(typeof e=="number"){if(!Gi(this,e)||(t=e,e=Me(this,e),!e))return null}else if(t=zt(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,s){return Vo(this,e,t=="gutter"?"gutter":"class",function(a){var u=t=="text"?"textClass":t=="background"?"bgClass":t=="gutter"?"gutterClass":"wrapClass";if(!a[u])a[u]=s;else{if(ve(s).test(a[u]))return!1;a[u]+=" "+s}return!0})}),removeLineClass:z(function(e,t,s){return Vo(this,e,t=="gutter"?"gutter":"class",function(a){var u=t=="text"?"textClass":t=="background"?"bgClass":t=="gutter"?"gutterClass":"wrapClass",h=a[u];if(h)if(s==null)a[u]=null;else{var g=h.match(ve(s));if(!g)return!1;var m=g.index+g[0].length;a[u]=h.slice(0,g.index)+(!g.index||m==h.length?"":" ")+h.slice(m)||null}else return!1;return!0})}),addLineWidget:z(function(e,t,s){return Rc(this,e,t,s)}),removeLineWidget:function(e){e.clear()},markText:function(e,t,s){return po(this,me(this,e),me(this,t),s,s&&s.type||"range")},setBookmark:function(e,t){var s={replacedWith:t&&(t.nodeType==null?t.widget:t),insertLeft:t&&t.insertLeft,clearWhenEmpty:!1,shared:t&&t.shared,handleMouseEvents:t&&t.handleMouseEvents};return e=me(this,e),po(this,e,e,s,"bookmark")},findMarksAt:function(e){e=me(this,e);var t=[],s=Me(this,e.line).markedSpans;if(s)for(var a=0;a<s.length;++a){var u=s[a];(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,s){e=me(this,e),t=me(this,t);var a=[],u=e.line;return this.iter(e.line,t.line+1,function(h){var g=h.markedSpans;if(g)for(var m=0;m<g.length;m++){var y=g[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)&&(!s||s(y.marker))&&a.push(y.marker.parent||y.marker)}++u}),a},getAllMarks:function(){var e=[];return this.iter(function(t){var s=t.markedSpans;if(s)for(var a=0;a<s.length;++a)s[a].from!=null&&e.push(s[a].marker)}),e},posFromIndex:function(e){var t,s=this.first,a=this.lineSeparator().length;return this.iter(function(u){var h=u.text.length+a;if(h>e)return t=e,!0;e-=h,++s}),me(this,ie(s,t))},indexFromPos:function(e){e=me(this,e);var t=e.ch;if(e.line<this.first||e.ch<0)return 0;var s=this.lineSeparator().length;return this.iter(this.first,e.line,function(a){t+=a.text.length+s}),t},copy:function(e){var t=new Br(ss(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,s=this.first+this.size;e.from!=null&&e.from>t&&(t=e.from),e.to!=null&&e.to<s&&(s=e.to);var a=new Br(ss(this,t,s),e.mode||this.modeOption,t,this.lineSep,this.direction);return e.sharedHist&&(a.history=this.history),(this.linked||(this.linked=[])).push({doc:a,sharedHist:e.sharedHist}),a.linked=[{doc:this,isParent:!0,sharedHist:e.sharedHist}],Dl(a,qu(this)),a},unlinkDoc:function(e){if(e instanceof Dt&&(e=e.doc),this.linked)for(var t=0;t<this.linked.length;++t){var s=this.linked[t];if(s.doc==e){this.linked.splice(t,1),e.unlinkDoc(this),Nf(qu(this));break}}if(e.history==this.history){var a=[e.id];co(e,function(u){return a.push(u.id)},!0),e.history=new Uo(null),e.history.done=yn(this.history.done,a),e.history.undone=yn(this.history.undone,a)}},iterLinkedDocs:function(e){co(this,e)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(e){return this.lineSep?e.split(this.lineSep):To(e)},lineSeparator:function(){return this.lineSep||`
2210
- `},setDirection:z(function(e){e!="rtl"&&(e="ltr"),e!=this.direction&&(this.direction=e,this.iter(function(t){return t.order=null}),this.cm&&Ls(this.cm))})}),Br.prototype.eachLine=Br.prototype.iter;var Hc=0;function Bc(e){var t=this;if(Ku(t),!(ir(t,e)||Si(t.display,e))){xr(e),S&&(Hc=+new Date);var s=si(t,e,!0),a=e.dataTransfer.files;if(!(!s||t.isReadOnly()))if(a&&a.length&&window.FileReader&&window.File)for(var u=a.length,h=Array(u),g=0,m=function(){++g==u&&Kt(t,function(){s=me(t.doc,s);var R={from:s,to:s,text:t.doc.splitLines(h.filter(function(Z){return Z!=null}).join(t.doc.lineSeparator())),origin:"paste"};Oa(t.doc,R),Ol(t.doc,lo(me(t.doc,s),me(t.doc,uo(R))))})()},y=function(R,Z){if(t.options.allowDropFileTypes&&_e(t.options.allowDropFileTypes,R.type)==-1){m();return}var J=new FileReader;J.onerror=function(){return m()},J.onload=function(){var le=J.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(le)){m();return}h[Z]=le,m()},J.readAsText(R)},C=0;C<a.length;C++)y(a[C],C);else{if(t.state.draggingText&&t.doc.sel.contains(s)>-1){t.state.draggingText(e),setTimeout(function(){return t.display.input.focus()},20);return}try{var _=e.dataTransfer.getData("Text");if(_){var k;if(t.state.draggingText&&!t.state.draggingText.copy&&(k=t.listSelections()),Cn(t.doc,lo(s,s)),k)for(var N=0;N<k.length;++N)Aa(t.doc,"",k[N].anchor,k[N].head,"drag");t.replaceSelection(_,"around","paste"),t.display.input.focus()}}catch{}}}}function $f(e,t){if(S&&(!e.state.draggingText||+new Date-Hc<100)){Mo(t);return}if(!(ir(e,t)||Si(e.display,t))&&(t.dataTransfer.setData("Text",e.getSelection()),t.dataTransfer.effectAllowed="copyMove",t.dataTransfer.setDragImage&&!ce)){var s=E("img",null,null,"position: fixed; left: 0; top: 0;");s.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",X&&(s.width=s.height=1,e.display.wrapper.appendChild(s),s._top=s.offsetTop),t.dataTransfer.setDragImage(s,0,0),X&&s.parentNode.removeChild(s)}}function ju(e,t){var s=si(e,t);if(!!s){var a=document.createDocumentFragment();Mi(e,s,a),e.display.dragCursor||(e.display.dragCursor=E("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),e.display.lineSpace.insertBefore(e.display.dragCursor,e.display.cursorDiv)),W(e.display.dragCursor,a)}}function Ku(e){e.display.dragCursor&&(e.display.lineSpace.removeChild(e.display.dragCursor),e.display.dragCursor=null)}function Rl(e){if(!!document.getElementsByClassName){for(var t=document.getElementsByClassName("CodeMirror"),s=[],a=0;a<t.length;a++){var u=t[a].CodeMirror;u&&s.push(u)}s.length&&s[0].operation(function(){for(var h=0;h<s.length;h++)e(s[h])})}}var Fc=!1;function Xu(){Fc||(ft(),Fc=!0)}function ft(){var e;$e(window,"resize",function(){e==null&&(e=setTimeout(function(){e=null,Rl(Hf)},100))}),$e(window,"blur",function(){return Rl(Ho)})}function Hf(e){var t=e.display;t.cachedCharWidth=t.cachedTextHeight=t.cachedPaddingH=null,t.scrollbarsClipped=!1,e.setSize()}for(var go={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"},Oi=0;Oi<10;Oi++)go[Oi+48]=go[Oi+96]=String(Oi);for(var Os=65;Os<=90;Os++)go[Os]=String.fromCharCode(Os);for(var Ts=1;Ts<=12;Ts++)go[Ts+111]=go[Ts+63235]="F"+Ts;var Ti={};Ti.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"},Ti.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"},Ti.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"},Ti.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"]},Ti.default=he?Ti.macDefault:Ti.pcDefault;function kn(e){var t=e.split(/-(?!$)/);e=t[t.length-1];for(var s,a,u,h,g=0;g<t.length-1;g++){var m=t[g];if(/^(cmd|meta|m)$/i.test(m))h=!0;else if(/^a(lt)?$/i.test(m))s=!0;else if(/^(c|ctrl|control)$/i.test(m))a=!0;else if(/^s(hift)?$/i.test(m))u=!0;else throw new Error("Unrecognized modifier name: "+m)}return s&&(e="Alt-"+e),a&&(e="Ctrl-"+e),h&&(e="Cmd-"+e),u&&(e="Shift-"+e),e}function Bf(e){var t={};for(var s in e)if(e.hasOwnProperty(s)){var a=e[s];if(/^(name|fallthrough|(de|at)tach)$/.test(s))continue;if(a=="..."){delete e[s];continue}for(var u=yt(s.split(" "),kn),h=0;h<u.length;h++){var g=void 0,m=void 0;h==u.length-1?(m=u.join(" "),g=a):(m=u.slice(0,h+1).join(" "),g="...");var y=t[m];if(!y)t[m]=g;else if(y!=g)throw new Error("Inconsistent bindings for "+m)}delete e[s]}for(var C in t)e[C]=t[C];return e}function Pi(e,t,s,a){t=Fr(t);var u=t.call?t.call(e,a):t[e];if(u===!1)return"nothing";if(u==="...")return"multi";if(u!=null&&s(u))return"handled";if(t.fallthrough){if(Object.prototype.toString.call(t.fallthrough)!="[object Array]")return Pi(e,t.fallthrough,s,a);for(var h=0;h<t.fallthrough.length;h++){var g=Pi(e,t.fallthrough[h],s,a);if(g)return g}}}function Nl(e){var t=typeof e=="string"?e:go[e.keyCode];return t=="Ctrl"||t=="Alt"||t=="Shift"||t=="Mod"}function Qu(e,t,s){var a=e;return t.altKey&&a!="Alt"&&(e="Alt-"+e),(et?t.metaKey:t.ctrlKey)&&a!="Ctrl"&&(e="Ctrl-"+e),(et?t.ctrlKey:t.metaKey)&&a!="Mod"&&(e="Cmd-"+e),!s&&t.shiftKey&&a!="Shift"&&(e="Shift-"+e),e}function Ju(e,t){if(X&&e.keyCode==34&&e.char)return!1;var s=go[e.keyCode];return s==null||e.altGraphKey?!1:(e.keyCode==3&&e.code&&(s=e.code),Qu(s,e,t))}function Fr(e){return typeof e=="string"?Ti[e]:e}function wn(e,t){for(var s=e.doc.sel.ranges,a=[],u=0;u<s.length;u++){for(var h=t(s[u]);a.length&&w(h.from,Xe(a).to)<=0;){var g=a.pop();if(w(g.from,h.from)<0){h.from=g.from;break}}a.push(h)}Ar(e,function(){for(var m=a.length-1;m>=0;m--)Aa(e.doc,"",a[m].from,a[m].to,"+delete");io(e)})}function Ps(e,t,s){var a=dr(e.text,t+s,s);return a<0||a>e.text.length?null:a}function $l(e,t,s){var a=Ps(e,t.ch,s);return a==null?null:new ie(t.line,a,s<0?"after":"before")}function Ra(e,t,s,a,u){if(e){t.doc.direction=="rtl"&&(u=-u);var h=Hr(s,t.doc.direction);if(h){var g=u<0?Xe(h):h[0],m=u<0==(g.level==1),y=m?"after":"before",C;if(g.level>0||t.doc.direction=="rtl"){var _=Zn(t,s);C=u<0?s.text.length-1:0;var k=ai(t,_,C).top;C=kr(function(N){return ai(t,_,N).top==k},u<0==(g.level==1)?g.from:g.to-1,C),y=="before"&&(C=Ps(s,C,1))}else C=u<0?g.to:g.from;return new ie(a,C,y)}}return new ie(a,u<0?s.text.length:0,u<0?"before":"after")}function Wc(e,t,s,a){var u=Hr(t,e.doc.direction);if(!u)return $l(t,s,a);s.ch>=t.text.length?(s.ch=t.text.length,s.sticky="before"):s.ch<=0&&(s.ch=0,s.sticky="after");var h=Zt(u,s.ch,s.sticky),g=u[h];if(e.doc.direction=="ltr"&&g.level%2==0&&(a>0?g.to>s.ch:g.from<s.ch))return $l(t,s,a);var m=function(fe,we){return Ps(t,fe instanceof ie?fe.ch:fe,we)},y,C=function(fe){return e.options.lineWrapping?(y=y||Zn(e,t),Y(e,t,y,fe)):{begin:0,end:t.text.length}},_=C(s.sticky=="before"?m(s,-1):s.ch);if(e.doc.direction=="rtl"||g.level==1){var k=g.level==1==a<0,N=m(s,k?1:-1);if(N!=null&&(k?N<=g.to&&N<=_.end:N>=g.from&&N>=_.begin)){var R=k?"before":"after";return new ie(s.line,N,R)}}var Z=function(fe,we,de){for(var ze=function(Ot,ur){return ur?new ie(s.line,m(Ot,1),"before"):new ie(s.line,Ot,"after")};fe>=0&&fe<u.length;fe+=we){var Re=u[fe],Pe=we>0==(Re.level!=1),lt=Pe?de.begin:m(de.end,-1);if(Re.from<=lt&&lt<Re.to||(lt=Pe?Re.from:m(Re.to,-1),de.begin<=lt&&lt<de.end))return ze(lt,Pe)}},J=Z(h+a,a,_);if(J)return J;var le=a>0?_.end:m(_.begin,-1);return le!=null&&!(a>0&&le==t.text.length)&&(J=Z(a>0?0:u.length-1,a,C(le)),J)?J:null}var Go={selectAll:Pc,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),at)},killLine:function(e){return wn(e,function(t){if(t.empty()){var s=Me(e.doc,t.head.line).text.length;return t.head.ch==s&&t.head.line<e.lastLine()?{from:t.head,to:ie(t.head.line+1,0)}:{from:t.head,to:ie(t.head.line,s)}}else return{from:t.from(),to:t.to()}})},deleteLine:function(e){return wn(e,function(t){return{from:ie(t.from().line,0),to:me(e.doc,ie(t.to().line+1,0))}})},delLineLeft:function(e){return wn(e,function(t){return{from:ie(t.from().line,0),to:t.from()}})},delWrappedLineLeft:function(e){return wn(e,function(t){var s=e.charCoords(t.head,"div").top+5,a=e.coordsChar({left:0,top:s},"div");return{from:a,to:t.from()}})},delWrappedLineRight:function(e){return wn(e,function(t){var s=e.charCoords(t.head,"div").top+5,a=e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:s},"div");return{from:t.from(),to:a}})},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(ie(e.firstLine(),0))},goDocEnd:function(e){return e.extendSelection(ie(e.lastLine()))},goLineStart:function(e){return e.extendSelectionsBy(function(t){return e0(e,t.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(e){return e.extendSelectionsBy(function(t){return Hl(e,t.head)},{origin:"+move",bias:1})},goLineEnd:function(e){return e.extendSelectionsBy(function(t){return t0(e,t.head.line)},{origin:"+move",bias:-1})},goLineRight:function(e){return e.extendSelectionsBy(function(t){var s=e.cursorCoords(t.head,"div").top+5;return e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:s},"div")},We)},goLineLeft:function(e){return e.extendSelectionsBy(function(t){var s=e.cursorCoords(t.head,"div").top+5;return e.coordsChar({left:0,top:s},"div")},We)},goLineLeftSmart:function(e){return e.extendSelectionsBy(function(t){var s=e.cursorCoords(t.head,"div").top+5,a=e.coordsChar({left:0,top:s},"div");return a.ch<e.getLine(a.line).search(/\S/)?Hl(e,t.head):a},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=[],s=e.listSelections(),a=e.options.tabSize,u=0;u<s.length;u++){var h=s[u].from(),g=Ft(e.getLine(h.line),h.ch,a);t.push(lr(a-g%a))}e.replaceSelections(t)},defaultTab:function(e){e.somethingSelected()?e.indentSelection("add"):e.execCommand("insertTab")},transposeChars:function(e){return Ar(e,function(){for(var t=e.listSelections(),s=[],a=0;a<t.length;a++)if(!!t[a].empty()){var u=t[a].head,h=Me(e.doc,u.line).text;if(h){if(u.ch==h.length&&(u=new ie(u.line,u.ch-1)),u.ch>0)u=new ie(u.line,u.ch+1),e.replaceRange(h.charAt(u.ch-1)+h.charAt(u.ch-2),ie(u.line,u.ch-2),u,"+transpose");else if(u.line>e.doc.first){var g=Me(e.doc,u.line-1).text;g&&(u=new ie(u.line,1),e.replaceRange(h.charAt(0)+e.doc.lineSeparator()+g.charAt(g.length-1),ie(u.line-1,g.length-1),u,"+transpose"))}}s.push(new Lt(u,u))}e.setSelections(s)})},newlineAndIndent:function(e){return Ar(e,function(){for(var t=e.listSelections(),s=t.length-1;s>=0;s--)e.replaceRange(e.doc.lineSeparator(),t[s].anchor,t[s].head,"+input");t=e.listSelections();for(var a=0;a<t.length;a++)e.indentLine(t[a].from().line,null,!0);io(e)})},openLine:function(e){return e.replaceSelection(`
2211
- `,"start")},toggleOverwrite:function(e){return e.toggleOverwrite()}};function e0(e,t){var s=Me(e.doc,t),a=oi(s);return a!=s&&(t=zt(a)),Ra(!0,e,a,t,1)}function t0(e,t){var s=Me(e.doc,t),a=ff(s);return a!=s&&(t=zt(a)),Ra(!0,e,s,t,-1)}function Hl(e,t){var s=e0(e,t.line),a=Me(e.doc,s.line),u=Hr(a,e.doc.direction);if(!u||u[0].level==0){var h=Math.max(s.ch,a.text.search(/\S/)),g=t.line==s.line&&t.ch<=h&&t.ch;return ie(s.line,g?0:h,s.sticky)}return s}function qn(e,t,s){if(typeof t=="string"&&(t=Go[t],!t))return!1;e.display.input.ensurePolled();var a=e.display.shift,u=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),s&&(e.display.shift=!1),u=t(e)!=Ze}finally{e.display.shift=a,e.state.suppressEdits=!1}return u}function Ff(e,t,s){for(var a=0;a<e.state.keyMaps.length;a++){var u=Pi(t,e.state.keyMaps[a],s,e);if(u)return u}return e.options.extraKeys&&Pi(t,e.options.extraKeys,s,e)||Pi(t,e.options.keyMap,s,e)}var vo=new ut;function Na(e,t,s,a){var u=e.state.keySeq;if(u){if(Nl(t))return"handled";if(/\'$/.test(t)?e.state.keySeq=null:vo.set(50,function(){e.state.keySeq==u&&(e.state.keySeq=null,e.display.input.reset())}),r0(e,u+" "+t,s,a))return!0}return r0(e,t,s,a)}function r0(e,t,s,a){var u=Ff(e,t,a);return u=="multi"&&(e.state.keySeq=t),u=="handled"&&hr(e,"keyHandled",e,t,s),(u=="handled"||u=="multi")&&(xr(s),xa(e)),!!u}function Bl(e,t){var s=Ju(t,!0);return s?t.shiftKey&&!e.state.keySeq?Na(e,"Shift-"+s,t,function(a){return qn(e,a,!0)})||Na(e,s,t,function(a){if(typeof a=="string"?/^go[A-Z]/.test(a):a.motion)return qn(e,a)}):Na(e,s,t,function(a){return qn(e,a)}):!1}function Wf(e,t,s){return Na(e,"'"+s+"'",t,function(a){return qn(e,a,!0)})}var n0=null;function Uc(e){var t=this;if(!(e.target&&e.target!=t.display.input.getField())&&(t.curOp.focus=ot(),!ir(t,e))){S&&O<11&&e.keyCode==27&&(e.returnValue=!1);var s=e.keyCode;t.display.shift=s==16||e.shiftKey;var a=Bl(t,e);X&&(n0=a?s:null,!a&&s==88&&!tl&&(he?e.metaKey:e.ctrlKey)&&t.replaceSelection("",null,"cut")),f&&!he&&!a&&s==46&&e.shiftKey&&!e.ctrlKey&&document.execCommand&&document.execCommand("cut"),s==18&&!/\bCodeMirror-crosshair\b/.test(t.display.lineDiv.className)&&Yc(t)}}function Yc(e){var t=e.display.lineDiv;At(t,"CodeMirror-crosshair");function s(a){(a.keyCode==18||!a.altKey)&&(Ce(t,"CodeMirror-crosshair"),Mr(document,"keyup",s),Mr(document,"mouseover",s))}$e(document,"keyup",s),$e(document,"mouseover",s)}function i0(e){e.keyCode==16&&(this.doc.sel.shift=!1),ir(this,e)}function Zc(e){var t=this;if(!(e.target&&e.target!=t.display.input.getField())&&!(Si(t.display,e)||ir(t,e)||e.ctrlKey&&!e.altKey||he&&e.metaKey)){var s=e.keyCode,a=e.charCode;if(X&&s==n0){n0=null,xr(e);return}if(!(X&&(!e.which||e.which<10)&&Bl(t,e))){var u=String.fromCharCode(a==null?s:a);u!="\b"&&(Wf(t,e,u)||t.display.input.onKeyPress(e))}}}var Vc=400,Fl=function(e,t,s){this.time=e,this.pos=t,this.button=s};Fl.prototype.compare=function(e,t,s){return this.time+Vc>e&&w(t,this.pos)==0&&s==this.button};var _r,ln;function Uf(e,t){var s=+new Date;return ln&&ln.compare(s,e,t)?(_r=ln=null,"triple"):_r&&_r.compare(s,e,t)?(ln=new Fl(s,e,t),_r=null,"double"):(_r=new Fl(s,e,t),ln=null,"single")}function Gc(e){var t=this,s=t.display;if(!(ir(t,e)||s.activeTouch&&s.input.supportsTouch())){if(s.input.ensurePolled(),s.shift=e.shiftKey,Si(s,e)){I||(s.scroller.draggable=!1,setTimeout(function(){return s.scroller.draggable=!0},100));return}if(!o0(t,e)){var a=si(t,e),u=rs(e),h=a?Uf(a,u):"single";window.focus(),u==1&&t.state.selectingText&&t.state.selectingText(e),!(a&&Wl(t,u,a,h,e))&&(u==1?a?qc(t,a,h,e):Zi(e)==s.scroller&&xr(e):u==2?(a&&Ml(t.doc,a),setTimeout(function(){return s.input.focus()},20)):u==3&&(nt?t.display.input.onContextMenu(e):Cl(t)))}}}function Wl(e,t,s,a,u){var h="Click";return a=="double"?h="Double"+h:a=="triple"&&(h="Triple"+h),h=(t==1?"Left":t==2?"Middle":"Right")+h,Na(e,Qu(h,u),u,function(g){if(typeof g=="string"&&(g=Go[g]),!g)return!1;var m=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),m=g(e,s)!=Ze}finally{e.state.suppressEdits=!1}return m})}function $a(e,t,s){var a=e.getOption("configureMouse"),u=a?a(e,t,s):{};if(u.unit==null){var h=Te?s.shiftKey&&s.metaKey:s.altKey;u.unit=h?"rectangle":t=="single"?"char":t=="double"?"word":"line"}return(u.extend==null||e.doc.extend)&&(u.extend=e.doc.extend||s.shiftKey),u.addNew==null&&(u.addNew=he?s.metaKey:s.ctrlKey),u.moveOnDrag==null&&(u.moveOnDrag=!(he?s.altKey:s.ctrlKey)),u}function qc(e,t,s,a){S?setTimeout(dn(Iu,e),0):e.curOp.focus=ot();var u=$a(e,s,a),h=e.doc.sel,g;e.options.dragDrop&&ns&&!e.isReadOnly()&&s=="single"&&(g=h.contains(t))>-1&&(w((g=h.ranges[g]).from(),t)<0||t.xRel>0)&&(w(g.to(),t)>0||t.xRel<0)?jc(e,a,t,u):Xc(e,a,t,u)}function jc(e,t,s,a){var u=e.display,h=!1,g=Kt(e,function(C){I&&(u.scroller.draggable=!1),e.state.draggingText=!1,e.state.delayingBlurEvent&&(e.hasFocus()?e.state.delayingBlurEvent=!1:Cl(e)),Mr(u.wrapper.ownerDocument,"mouseup",g),Mr(u.wrapper.ownerDocument,"mousemove",m),Mr(u.scroller,"dragstart",y),Mr(u.scroller,"drop",g),h||(xr(C),a.addNew||Ml(e.doc,s,null,null,a.extend),I&&!ce||S&&O==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};I&&(u.scroller.draggable=!0),e.state.draggingText=g,g.copy=!a.moveOnDrag,$e(u.wrapper.ownerDocument,"mouseup",g),$e(u.wrapper.ownerDocument,"mousemove",m),$e(u.scroller,"dragstart",y),$e(u.scroller,"drop",g),e.state.delayingBlurEvent=!0,setTimeout(function(){return u.input.focus()},20),u.scroller.dragDrop&&u.scroller.dragDrop()}function Kc(e,t,s){if(s=="char")return new Lt(t,t);if(s=="word")return e.findWordAt(t);if(s=="line")return new Lt(ie(t.line,0),me(e.doc,ie(t.line+1,0)));var a=s(e,t);return new Lt(a.from,a.to)}function Xc(e,t,s,a){S&&Cl(e);var u=e.display,h=e.doc;xr(t);var g,m,y=h.sel,C=y.ranges;if(a.addNew&&!a.extend?(m=h.sel.contains(s),m>-1?g=C[m]:g=new Lt(s,s)):(g=h.sel.primary(),m=h.sel.primIndex),a.unit=="rectangle")a.addNew||(g=new Lt(s,s)),s=si(e,t,!0,!0),m=-1;else{var _=Kc(e,s,a.unit);a.extend?g=kl(g,_.anchor,_.head,a.extend):g=_}a.addNew?m==-1?(m=C.length,zr(h,Ir(e,C.concat([g]),m),{scroll:!1,origin:"*mouse"})):C.length>1&&C[m].empty()&&a.unit=="char"&&!a.extend?(zr(h,Ir(e,C.slice(0,m).concat(C.slice(m+1)),0),{scroll:!1,origin:"*mouse"}),y=h.sel):Vu(h,m,g,st):(m=0,zr(h,new mn([g],0),st),y=h.sel);var k=s;function N(de){if(w(k,de)!=0)if(k=de,a.unit=="rectangle"){for(var ze=[],Re=e.options.tabSize,Pe=Ft(Me(h,s.line).text,s.ch,Re),lt=Ft(Me(h,de.line).text,de.ch,Re),Ot=Math.min(Pe,lt),ur=Math.max(Pe,lt),Rt=Math.min(s.line,de.line),Ur=Math.min(e.lastLine(),Math.max(s.line,de.line));Rt<=Ur;Rt++){var Yr=Me(h,Rt).text,rr=Vt(Yr,Ot,Re);Ot==ur?ze.push(new Lt(ie(Rt,rr),ie(Rt,rr))):Yr.length>rr&&ze.push(new Lt(ie(Rt,rr),ie(Rt,Vt(Yr,ur,Re))))}ze.length||ze.push(new Lt(s,s)),zr(h,Ir(e,y.ranges.slice(0,m).concat(ze),m),{origin:"*mouse",scroll:!1}),e.scrollIntoView(de)}else{var Sr=g,gr=Kc(e,de,a.unit),It=Sr.anchor,Ht;w(gr.anchor,It)>0?(Ht=gr.head,It=qe(Sr.from(),gr.anchor)):(Ht=gr.anchor,It=ae(Sr.to(),gr.head));var Xt=y.ranges.slice(0);Xt[m]=Ha(e,new Lt(me(h,It),Ht)),zr(h,Ir(e,Xt,m),st)}}var R=u.wrapper.getBoundingClientRect(),Z=0;function J(de){var ze=++Z,Re=si(e,de,!0,a.unit=="rectangle");if(!!Re)if(w(Re,k)!=0){e.curOp.focus=ot(),N(Re);var Pe=Bo(u,h);(Re.line>=Pe.to||Re.line<Pe.from)&&setTimeout(Kt(e,function(){Z==ze&&J(de)}),150)}else{var lt=de.clientY<R.top?-20:de.clientY>R.bottom?20:0;lt&&setTimeout(Kt(e,function(){Z==ze&&(u.scroller.scrollTop+=lt,J(de))}),50)}}function le(de){e.state.selectingText=!1,Z=1/0,de&&(xr(de),u.input.focus()),Mr(u.wrapper.ownerDocument,"mousemove",fe),Mr(u.wrapper.ownerDocument,"mouseup",we),h.history.lastSelOrigin=null}var fe=Kt(e,function(de){de.buttons===0||!rs(de)?le(de):J(de)}),we=Kt(e,le);e.state.selectingText=we,$e(u.wrapper.ownerDocument,"mousemove",fe),$e(u.wrapper.ownerDocument,"mouseup",we)}function Ha(e,t){var s=t.anchor,a=t.head,u=Me(e.doc,s.line);if(w(s,a)==0&&s.sticky==a.sticky)return t;var h=Hr(u);if(!h)return t;var g=Zt(h,s.ch,s.sticky),m=h[g];if(m.from!=s.ch&&m.to!=s.ch)return t;var y=g+(m.from==s.ch==(m.level!=1)?0:1);if(y==0||y==h.length)return t;var C;if(a.line!=s.line)C=(a.line-s.line)*(e.doc.direction=="ltr"?1:-1)>0;else{var _=Zt(h,a.ch,a.sticky),k=_-g||(a.ch-s.ch)*(m.level==1?-1:1);_==y-1||_==y?C=k<0:C=k>0}var N=h[y+(C?-1:0)],R=C==(N.level==1),Z=R?N.from:N.to,J=R?"after":"before";return s.ch==Z&&s.sticky==J?t:new Lt(new ie(s.line,Z,J),a)}function Ba(e,t,s,a){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;a&&xr(t);var g=e.display,m=g.lineDiv.getBoundingClientRect();if(h>m.bottom||!wr(e,s))return hn(t);h-=m.top-g.viewOffset;for(var y=0;y<e.display.gutterSpecs.length;++y){var C=g.gutters.childNodes[y];if(C&&C.getBoundingClientRect().right>=u){var _=Un(e.doc,h),k=e.display.gutterSpecs[y];return Ge(e,s,e,_,k.className,t),hn(t)}}}function o0(e,t){return Ba(e,t,"gutterClick",!0)}function a0(e,t){Si(e.display,t)||Qc(e,t)||ir(e,t,"contextmenu")||nt||e.display.input.onContextMenu(t)}function Qc(e,t){return wr(e,"gutterContextMenu")?Ba(e,t,"gutterContextMenu",!1):!1}function As(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),gs(e)}var qo={toString:function(){return"CodeMirror.Init"}},Es={},Fa={};function Ul(e){var t=e.optionHandlers;function s(a,u,h,g){e.defaults[a]=u,h&&(t[a]=g?function(m,y,C){C!=qo&&h(m,y,C)}:h)}e.defineOption=s,e.Init=qo,s("value","",function(a,u){return a.setValue(u)},!0),s("mode",null,function(a,u){a.doc.modeOption=u,Fu(a)},!0),s("indentUnit",2,Fu,!0),s("indentWithTabs",!1),s("smartIndent",!0),s("tabSize",4,function(a){zs(a),gs(a),rt(a)},!0),s("lineSeparator",null,function(a,u){if(a.doc.lineSep=u,!!u){var h=[],g=a.doc.first;a.doc.iter(function(y){for(var C=0;;){var _=y.text.indexOf(u,C);if(_==-1)break;C=_+u.length,h.push(ie(g,_))}g++});for(var m=h.length-1;m>=0;m--)Aa(a.doc,u,h[m],ie(h[m].line,h[m].ch+u.length))}}),s("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(a,u,h){a.state.specialChars=new RegExp(u.source+(u.test(" ")?"":"| "),"g"),h!=qo&&a.refresh()}),s("specialCharPlaceholder",bn,function(a){return a.refresh()},!0),s("electricChars",!0),s("inputStyle",pe?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),s("spellcheck",!1,function(a,u){return a.getInputField().spellcheck=u},!0),s("autocorrect",!1,function(a,u){return a.getInputField().autocorrect=u},!0),s("autocapitalize",!1,function(a,u){return a.getInputField().autocapitalize=u},!0),s("rtlMoveVisually",!He),s("wholeLineUpdateBefore",!0),s("theme","default",function(a){As(a),xs(a)},!0),s("keyMap","default",function(a,u,h){var g=Fr(u),m=h!=qo&&Fr(h);m&&m.detach&&m.detach(a,g),g.attach&&g.attach(a,m||null)}),s("extraKeys",null),s("configureMouse",null),s("lineWrapping",!1,Jc,!0),s("gutters",[],function(a,u){a.display.gutterSpecs=Hu(u,a.options.lineNumbers),xs(a)},!0),s("fixedGutter",!0,function(a,u){a.display.gutters.style.left=u?wa(a.display)+"px":"0",a.refresh()},!0),s("coverGutterNextToScrollbar",!1,function(a){return ao(a)},!0),s("scrollbarStyle","native",function(a){Wo(a),ao(a),a.display.scrollbars.setScrollTop(a.doc.scrollTop),a.display.scrollbars.setScrollLeft(a.doc.scrollLeft)},!0),s("lineNumbers",!1,function(a,u){a.display.gutterSpecs=Hu(a.options.gutters,u),xs(a)},!0),s("firstLineNumber",1,xs,!0),s("lineNumberFormatter",function(a){return a},xs,!0),s("showCursorWhenSelecting",!1,vs,!0),s("resetSelectionOnContextMenu",!0),s("lineWiseCopyCut",!0),s("pasteLinesPerSelection",!0),s("selectionsMayTouch",!1),s("readOnly",!1,function(a,u){u=="nocursor"&&(Ho(a),a.display.input.blur()),a.display.input.readOnlyChanged(u)}),s("screenReaderLabel",null,function(a,u){u=u===""?null:u,a.display.input.screenReaderLabelChanged(u)}),s("disableInput",!1,function(a,u){u||a.display.input.reset()},!0),s("dragDrop",!0,Yf),s("allowDropFileTypes",null),s("cursorBlinkRate",530),s("cursorScrollMargin",0),s("cursorHeight",1,vs,!0),s("singleCursorHeightPerLine",!0,vs,!0),s("workTime",100),s("workDelay",100),s("flattenSpans",!0,zs,!0),s("addModeClass",!1,zs,!0),s("pollInterval",100),s("undoDepth",200,function(a,u){return a.doc.history.undoDepth=u}),s("historyEventDelay",1250),s("viewportMargin",10,function(a){return a.refresh()},!0),s("maxHighlightLength",1e4,zs,!0),s("moveInputWithCursor",!0,function(a,u){u||a.display.input.resetPosition()}),s("tabindex",null,function(a,u){return a.display.input.getField().tabIndex=u||""}),s("autofocus",null),s("direction","ltr",function(a,u){return a.doc.setDirection(u)},!0),s("phrases",null)}function Yf(e,t,s){var a=s&&s!=qo;if(!t!=!a){var u=e.display.dragFunctions,h=t?$e:Mr;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 Jc(e){e.options.lineWrapping?(At(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(Ce(e.display.wrapper,"CodeMirror-wrap"),ds(e)),eo(e),rt(e),gs(e),setTimeout(function(){return ao(e)},100)}function Dt(e,t){var s=this;if(!(this instanceof Dt))return new Dt(e,t);this.options=t=t?er(t):{},er(Es,t,!1);var a=t.value;typeof a=="string"?a=new Br(a,t.mode,null,t.lineSeparator,t.direction):t.mode&&(a.modeOption=t.mode),this.doc=a;var u=new Dt.inputStyles[t.inputStyle](this),h=this.display=new Af(e,a,u,t);h.wrapper.CodeMirror=this,As(this),t.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Wo(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 ut,keySeq:null,specialChars:null},t.autofocus&&!pe&&h.input.focus(),S&&O<11&&setTimeout(function(){return s.display.input.reset(!0)},20),e1(this),Xu(),Gn(this),this.curOp.forceUpdate=!0,kc(this,a),t.autofocus&&!pe||this.hasFocus()?setTimeout(function(){s.hasFocus()&&!s.state.focused&&za(s)},20):Ho(this);for(var g in Fa)Fa.hasOwnProperty(g)&&Fa[g](this,t[g],qo);fi(this),t.finishInit&&t.finishInit(this);for(var m=0;m<Is.length;++m)Is[m](this);ui(this),I&&t.lineWrapping&&getComputedStyle(h.lineDiv).textRendering=="optimizelegibility"&&(h.lineDiv.style.textRendering="auto")}Dt.defaults=Es,Dt.optionHandlers=Fa;function e1(e){var t=e.display;$e(t.scroller,"mousedown",Kt(e,Gc)),S&&O<11?$e(t.scroller,"dblclick",Kt(e,function(y){if(!ir(e,y)){var C=si(e,y);if(!(!C||o0(e,y)||Si(e.display,y))){xr(y);var _=e.findWordAt(C);Ml(e.doc,_.anchor,_.head)}}})):$e(t.scroller,"dblclick",function(y){return ir(e,y)||xr(y)}),$e(t.scroller,"contextmenu",function(y){return a0(e,y)}),$e(t.input.getField(),"contextmenu",function(y){t.scroller.contains(y.target)||a0(e,y)});var s,a={end:0};function u(){t.activeTouch&&(s=setTimeout(function(){return t.activeTouch=null},1e3),a=t.activeTouch,a.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 g(y,C){if(C.left==null)return!0;var _=C.left-y.left,k=C.top-y.top;return _*_+k*k>20*20}$e(t.scroller,"touchstart",function(y){if(!ir(e,y)&&!h(y)&&!o0(e,y)){t.input.ensurePolled(),clearTimeout(s);var C=+new Date;t.activeTouch={start:C,moved:!1,prev:C-a.end<=300?a:null},y.touches.length==1&&(t.activeTouch.left=y.touches[0].pageX,t.activeTouch.top=y.touches[0].pageY)}}),$e(t.scroller,"touchmove",function(){t.activeTouch&&(t.activeTouch.moved=!0)}),$e(t.scroller,"touchend",function(y){var C=t.activeTouch;if(C&&!Si(t,y)&&C.left!=null&&!C.moved&&new Date-C.start<300){var _=e.coordsChar(t.activeTouch,"page"),k;!C.prev||g(C,C.prev)?k=new Lt(_,_):!C.prev.prev||g(C,C.prev.prev)?k=e.findWordAt(_):k=new Lt(ie(_.line,0),me(e.doc,ie(_.line+1,0))),e.setSelection(k.anchor,k.head),e.focus(),xr(y)}u()}),$e(t.scroller,"touchcancel",u),$e(t.scroller,"scroll",function(){t.scroller.clientHeight&&(jt(e,t.scroller.scrollTop),Fo(e,t.scroller.scrollLeft,!0),Ge(e,"scroll",e))}),$e(t.scroller,"mousewheel",function(y){return _c(e,y)}),$e(t.scroller,"DOMMouseScroll",function(y){return _c(e,y)}),$e(t.wrapper,"scroll",function(){return t.wrapper.scrollTop=t.wrapper.scrollLeft=0}),t.dragFunctions={enter:function(y){ir(e,y)||Mo(y)},over:function(y){ir(e,y)||(ju(e,y),Mo(y))},start:function(y){return $f(e,y)},drop:Kt(e,Bc),leave:function(y){ir(e,y)||Ku(e)}};var m=t.input.getField();$e(m,"keyup",function(y){return i0.call(e,y)}),$e(m,"keydown",Kt(e,Uc)),$e(m,"keypress",Kt(e,Zc)),$e(m,"focus",function(y){return za(e,y)}),$e(m,"blur",function(y){return Ho(e,y)})}var Is=[];Dt.defineInitHook=function(e){return Is.push(e)};function Ds(e,t,s,a){var u=e.doc,h;s==null&&(s="add"),s=="smart"&&(u.mode.indent?h=ba(e,t).state:s="prev");var g=e.options.tabSize,m=Me(u,t),y=Ft(m.text,null,g);m.stateAfter&&(m.stateAfter=null);var C=m.text.match(/^\s*/)[0],_;if(!a&&!/\S/.test(m.text))_=0,s="not";else if(s=="smart"&&(_=u.mode.indent(h,m.text.slice(C.length),m.text),_==Ze||_>150)){if(!a)return;s="prev"}s=="prev"?t>u.first?_=Ft(Me(u,t-1).text,null,g):_=0:s=="add"?_=y+e.options.indentUnit:s=="subtract"?_=y-e.options.indentUnit:typeof s=="number"&&(_=y+s),_=Math.max(0,_);var k="",N=0;if(e.options.indentWithTabs)for(var R=Math.floor(_/g);R;--R)N+=g,k+=" ";if(N<_&&(k+=lr(_-N)),k!=C)return Aa(u,k,ie(t,0),ie(t,C.length),"+input"),m.stateAfter=null,!0;for(var Z=0;Z<u.sel.ranges.length;Z++){var J=u.sel.ranges[Z];if(J.head.line==t&&J.head.ch<C.length){var le=ie(t,C.length);Vu(u,Z,new Lt(le,le));break}}}var Mn=null;function On(e){Mn=e}function Yl(e,t,s,a,u){var h=e.doc;e.display.shift=!1,a||(a=h.sel);var g=+new Date-200,m=u=="paste"||e.state.pasteIncoming>g,y=To(t),C=null;if(m&&a.ranges.length>1)if(Mn&&Mn.text.join(`
2212
- `)==t){if(a.ranges.length%Mn.text.length==0){C=[];for(var _=0;_<Mn.text.length;_++)C.push(h.splitLines(Mn.text[_]))}}else y.length==a.ranges.length&&e.options.pasteLinesPerSelection&&(C=yt(y,function(fe){return[fe]}));for(var k=e.curOp.updateInput,N=a.ranges.length-1;N>=0;N--){var R=a.ranges[N],Z=R.from(),J=R.to();R.empty()&&(s&&s>0?Z=ie(Z.line,Z.ch-s):e.state.overwrite&&!m?J=ie(J.line,Math.min(Me(h,J.line).text.length,J.ch+Xe(y).length)):m&&Mn&&Mn.lineWise&&Mn.text.join(`
2217
+ 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 zf(e,t,s,a){a==null&&(a=0);var u;!e.options.lineWrapping&&t==s&&(s=t.sticky=="before"?ie(t.line,t.ch+1,"before"):t,t=t.ch?ie(t.line,t.sticky=="before"?t.ch-1:t.ch,"after"):t);for(var h=0;h<5;h++){var g=!1,m=Vn(e,t),y=!s||s==t?m:Vn(e,s);u={left:Math.min(m.left,y.left),top:Math.min(m.top,y.top)-a,right:Math.max(m.left,y.left),bottom:Math.max(m.bottom,y.bottom)+a};var C=La(e,u),_=e.doc.scrollTop,M=e.doc.scrollLeft;if(C.scrollTop!=null&&(jt(e,C.scrollTop),Math.abs(e.doc.scrollTop-_)>1&&(g=!0)),C.scrollLeft!=null&&(Fo(e,C.scrollLeft),Math.abs(e.doc.scrollLeft-M)>1&&(g=!0)),!g)break}return u}function Lf(e,t){var s=La(e,t);s.scrollTop!=null&&jt(e,s.scrollTop),s.scrollLeft!=null&&Fo(e,s.scrollLeft)}function La(e,t){var s=e.display,a=Ji(e.display);t.top<0&&(t.top=0);var u=e.curOp&&e.curOp.scrollTop!=null?e.curOp.scrollTop:s.scroller.scrollTop,h=pl(e),g={};t.bottom-t.top>h&&(t.bottom=t.top+h);var m=e.doc.height+Qr(s),y=t.top<a,C=t.bottom>m-a;if(t.top<u)g.scrollTop=y?0:t.top;else if(t.bottom>u+h){var _=Math.min(t.top,(C?m:t.bottom)-h);_!=u&&(g.scrollTop=_)}var M=e.options.fixedGutter?0:s.gutters.offsetWidth,N=e.curOp&&e.curOp.scrollLeft!=null?e.curOp.scrollLeft:s.scroller.scrollLeft-M,R=Ki(e)-s.gutters.offsetWidth,Z=t.right-t.left>R;return Z&&(t.right=t.left+R),t.left<10?g.scrollLeft=0:t.left<N?g.scrollLeft=Math.max(0,t.left+M-(Z?0:10)):t.right>R+N-3&&(g.scrollLeft=t.right+(Z?0:10)-R),g}function _a(e,t){t!=null&&(wl(e),e.curOp.scrollTop=(e.curOp.scrollTop==null?e.doc.scrollTop:e.curOp.scrollTop)+t)}function io(e){wl(e);var t=e.getCursor();e.curOp.scrollToPos={from:t,to:t,margin:e.options.cursorScrollMargin}}function ms(e,t,s){(t!=null||s!=null)&&wl(e),t!=null&&(e.curOp.scrollLeft=t),s!=null&&(e.curOp.scrollTop=s)}function Cc(e,t){wl(e),e.curOp.scrollToPos=t}function wl(e){var t=e.curOp.scrollToPos;if(t){e.curOp.scrollToPos=null;var s=vc(e,t.from),a=vc(e,t.to);wc(e,s,a,t.margin)}}function wc(e,t,s,a){var u=La(e,{left:Math.min(t.left,s.left),top:Math.min(t.top,s.top)-a,right:Math.max(t.right,s.right),bottom:Math.max(t.bottom,s.bottom)+a});ms(e,u.scrollLeft,u.scrollTop)}function jt(e,t){Math.abs(e.doc.scrollTop-t)<2||(f||Ru(e,{top:t}),Pr(e,t,!0),f&&Ru(e),ci(e,100))}function Pr(e,t,s){t=Math.max(0,Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,t)),!(e.display.scroller.scrollTop==t&&!s)&&(e.doc.scrollTop=t,e.display.scrollbars.setScrollTop(t),e.display.scroller.scrollTop!=t&&(e.display.scroller.scrollTop=t))}function Fo(e,t,s,a){t=Math.max(0,Math.min(t,e.display.scroller.scrollWidth-e.display.scroller.clientWidth)),!((s?t==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-t)<2)&&!a)&&(e.doc.scrollLeft=t,xc(e),e.display.scroller.scrollLeft!=t&&(e.display.scroller.scrollLeft=t),e.display.scrollbars.setScrollLeft(t))}function ys(e){var t=e.display,s=t.gutters.offsetWidth,a=Math.round(e.doc.height+Qr(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?s:0,docHeight:a,scrollHeight:a+an(e)+t.barHeight,nativeBarWidth:t.nativeBarWidth,gutterWidth:s}}var oo=function(e,t,s){this.cm=s;var a=this.vert=E("div",[E("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),u=this.horiz=E("div",[E("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");a.tabIndex=u.tabIndex=-1,e(a),e(u),$e(a,"scroll",function(){a.clientHeight&&t(a.scrollTop,"vertical")}),$e(u,"scroll",function(){u.clientWidth&&t(u.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,S&&O<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};oo.prototype.update=function(e){var t=e.scrollWidth>e.clientWidth+1,s=e.scrollHeight>e.clientHeight+1,a=e.nativeBarWidth;if(s){this.vert.style.display="block",this.vert.style.bottom=t?a+"px":"0";var u=e.viewHeight-(t?a: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=s?a+"px":"0",this.horiz.style.left=e.barLeft+"px";var h=e.viewWidth-e.barLeft-(s?a: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&&(a==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:s?a:0,bottom:t?a:0}},oo.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},oo.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},oo.prototype.zeroWidthHack=function(){var e=he&&!xe?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new ut,this.disableVert=new ut},oo.prototype.enableZeroWidthBar=function(e,t,s){e.style.pointerEvents="auto";function a(){var u=e.getBoundingClientRect(),h=s=="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,a)}t.set(1e3,a)},oo.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var Cs=function(){};Cs.prototype.update=function(){return{bottom:0,right:0}},Cs.prototype.setScrollLeft=function(){},Cs.prototype.setScrollTop=function(){},Cs.prototype.clear=function(){};function ao(e,t){t||(t=ys(e));var s=e.display.barWidth,a=e.display.barHeight;Sa(e,t);for(var u=0;u<4&&s!=e.display.barWidth||a!=e.display.barHeight;u++)s!=e.display.barWidth&&e.options.lineWrapping&&ro(e),Sa(e,ys(e)),s=e.display.barWidth,a=e.display.barHeight}function Sa(e,t){var s=e.display,a=s.scrollbars.update(t);s.sizer.style.paddingRight=(s.barWidth=a.right)+"px",s.sizer.style.paddingBottom=(s.barHeight=a.bottom)+"px",s.heightForcer.style.borderBottom=a.bottom+"px solid transparent",a.right&&a.bottom?(s.scrollbarFiller.style.display="block",s.scrollbarFiller.style.height=a.bottom+"px",s.scrollbarFiller.style.width=a.right+"px"):s.scrollbarFiller.style.display="",a.bottom&&e.options.coverGutterNextToScrollbar&&e.options.fixedGutter?(s.gutterFiller.style.display="block",s.gutterFiller.style.height=a.bottom+"px",s.gutterFiller.style.width=t.gutterWidth+"px"):s.gutterFiller.style.display=""}var xl={native:oo,null:Cs};function Wo(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&Ce(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new xl[e.options.scrollbarStyle](function(t){e.display.wrapper.insertBefore(t,e.display.scrollbarFiller),$e(t,"mousedown",function(){e.state.focused&&setTimeout(function(){return e.display.input.focus()},0)}),t.setAttribute("cm-not-content","true")},function(t,s){s=="horizontal"?Fo(e,t):jt(e,t)},e),e.display.scrollbars.addClass&&At(e.display.wrapper,e.display.scrollbars.addClass)}var ws=0;function Gn(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:++ws,markArrays:null},ji(e.curOp)}function ui(e){var t=e.curOp;t&&vf(t,function(s){for(var a=0;a<s.ops.length;a++)s.ops[a].cm.curOp=null;Ma(s)})}function Ma(e){for(var t=e.ops,s=0;s<t.length;s++)_f(t[s]);for(var a=0;a<t.length;a++)Sf(t[a]);for(var u=0;u<t.length;u++)Mf(t[u]);for(var h=0;h<t.length;h++)kf(t[h]);for(var g=0;g<t.length;g++)Of(t[g])}function _f(e){var t=e.cm,s=t.display;bt(t),e.updateMaxLine&&ds(t),e.mustUpdate=e.viewChanged||e.forceUpdate||e.scrollTop!=null||e.scrollToPos&&(e.scrollToPos.from.line<s.viewFrom||e.scrollToPos.to.line>=s.viewTo)||s.maxLineChanged&&t.options.lineWrapping,e.update=e.mustUpdate&&new Jr(t,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function Sf(e){e.updatedDisplay=e.mustUpdate&&Du(e.cm,e.update)}function Mf(e){var t=e.cm,s=t.display;e.updatedDisplay&&ro(t),e.barMeasure=ys(t),s.maxLineChanged&&!t.options.lineWrapping&&(e.adjustWidthTo=cc(t,s.maxLine,s.maxLine.text.length).left+3,t.display.sizerWidth=e.adjustWidthTo,e.barMeasure.scrollWidth=Math.max(s.scroller.clientWidth,s.sizer.offsetLeft+e.adjustWidthTo+an(t)+t.display.barWidth),e.maxScrollLeft=Math.max(0,s.sizer.offsetLeft+e.adjustWidthTo-Ki(t))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=s.input.prepareSelection())}function kf(e){var t=e.cm;e.adjustWidthTo!=null&&(t.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft<t.doc.scrollLeft&&Fo(t,Math.min(t.display.scroller.scrollLeft,e.maxScrollLeft),!0),t.display.maxLineChanged=!1);var s=e.focus&&e.focus==ot();e.preparedSelection&&t.display.input.showSelection(e.preparedSelection,s),(e.updatedDisplay||e.startHeight!=t.doc.height)&&ao(t,e.barMeasure),e.updatedDisplay&&$u(t,e.barMeasure),e.selectionChanged&&xa(t),t.state.focused&&e.updateInput&&t.display.input.reset(e.typing),s&&Iu(e.cm)}function Of(e){var t=e.cm,s=t.display,a=t.doc;if(e.updatedDisplay&&so(t,e.update),s.wheelStartX!=null&&(e.scrollTop!=null||e.scrollLeft!=null||e.scrollToPos)&&(s.wheelStartX=s.wheelStartY=null),e.scrollTop!=null&&Pr(t,e.scrollTop,e.forceScroll),e.scrollLeft!=null&&Fo(t,e.scrollLeft,!0,!0),e.scrollToPos){var u=zf(t,me(a,e.scrollToPos.from),me(a,e.scrollToPos.to),e.scrollToPos.margin);xf(t,u)}var h=e.maybeHiddenMarkers,g=e.maybeUnhiddenMarkers;if(h)for(var m=0;m<h.length;++m)h[m].lines.length||Ge(h[m],"hide");if(g)for(var y=0;y<g.length;++y)g[y].lines.length&&Ge(g[y],"unhide");s.wrapper.offsetHeight&&(a.scrollTop=t.display.scroller.scrollTop),e.changeObjs&&Ge(t,"changes",t,e.changeObjs),e.update&&e.update.finish()}function Ar(e,t){if(e.curOp)return t();Gn(e);try{return t()}finally{ui(e)}}function Kt(e,t){return function(){if(e.curOp)return t.apply(e,arguments);Gn(e);try{return t.apply(e,arguments)}finally{ui(e)}}}function Er(e){return function(){if(this.curOp)return e.apply(this,arguments);Gn(this);try{return e.apply(this,arguments)}finally{ui(this)}}}function z(e){return function(){var t=this.cm;if(!t||t.curOp)return e.apply(this,arguments);Gn(t);try{return e.apply(this,arguments)}finally{ui(t)}}}function ci(e,t){e.doc.highlightFrontier<e.display.viewTo&&e.state.highlight.set(t,dn(zl,e))}function zl(e){var t=e.doc;if(!(t.highlightFrontier>=e.display.viewTo)){var s=+new Date+e.options.workTime,a=ba(e,t.highlightFrontier),u=[];t.iter(a.line,Math.min(t.first+t.size,e.display.viewTo+500),function(h){if(a.line>=e.display.viewFrom){var g=h.styles,m=h.text.length>e.options.maxHighlightLength?gn(t.mode,a.state):null,y=V0(e,h,a,!0);m&&(a.state=m),h.styles=y.styles;var C=h.styleClasses,_=y.classes;_?h.styleClasses=_:C&&(h.styleClasses=null);for(var M=!g||g.length!=h.styles.length||C!=_&&(!C||!_||C.bgClass!=_.bgClass||C.textClass!=_.textClass),N=0;!M&&N<g.length;++N)M=g[N]!=h.styles[N];M&&u.push(a.line),h.stateAfter=a.save(),a.nextLine()}else h.text.length<=e.options.maxHighlightLength&&ls(e,h.text,a),h.stateAfter=a.line%5==0?a.save():null,a.nextLine();if(+new Date>s)return ci(e,e.options.workDelay),!0}),t.highlightFrontier=a.line,t.modeFrontier=Math.max(t.modeFrontier,a.line),u.length&&Ar(e,function(){for(var h=0;h<u.length;h++)to(e,u[h],"text")})}}var Jr=function(e,t,s){var a=e.display;this.viewport=t,this.visible=Bo(a,e.doc,t),this.editorIsHidden=!a.wrapper.offsetWidth,this.wrapperHeight=a.wrapper.clientHeight,this.wrapperWidth=a.wrapper.clientWidth,this.oldDisplayWidth=Ki(e),this.force=s,this.dims=sn(e),this.events=[]};Jr.prototype.signal=function(e,t){wr(e,t)&&this.events.push(arguments)},Jr.prototype.finish=function(){for(var e=0;e<this.events.length;e++)Ge.apply(null,this.events[e])};function bt(e){var t=e.display;!t.scrollbarsClipped&&t.scroller.offsetWidth&&(t.nativeBarWidth=t.scroller.offsetWidth-t.scroller.clientWidth,t.heightForcer.style.height=an(e)+"px",t.sizer.style.marginBottom=-t.nativeBarWidth+"px",t.sizer.style.borderRightWidth=an(e)+"px",t.scrollbarsClipped=!0)}function Tf(e){if(e.hasFocus())return null;var t=ot();if(!t||!be(e.display.lineDiv,t))return null;var s={activeElt:t};if(window.getSelection){var a=window.getSelection();a.anchorNode&&a.extend&&be(e.display.lineDiv,a.anchorNode)&&(s.anchorNode=a.anchorNode,s.anchorOffset=a.anchorOffset,s.focusNode=a.focusNode,s.focusOffset=a.focusOffset)}return s}function Pf(e){if(!(!e||!e.activeElt||e.activeElt==ot())&&(e.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(e.activeElt.nodeName)&&e.anchorNode&&be(document.body,e.anchorNode)&&be(document.body,e.focusNode))){var t=window.getSelection(),s=document.createRange();s.setEnd(e.anchorNode,e.anchorOffset),s.collapse(!1),t.removeAllRanges(),t.addRange(s),t.extend(e.focusNode,e.focusOffset)}}function Du(e,t){var s=e.display,a=e.doc;if(t.editorIsHidden)return Mi(e),!1;if(!t.force&&t.visible.from>=s.viewFrom&&t.visible.to<=s.viewTo&&(s.updateLineNumbers==null||s.updateLineNumbers>=s.viewTo)&&s.renderedView==s.view&&mc(e)==0)return!1;fi(e)&&(Mi(e),t.dims=sn(e));var u=a.first+a.size,h=Math.max(t.visible.from-e.options.viewportMargin,a.first),g=Math.min(u,t.visible.to+e.options.viewportMargin);s.viewFrom<h&&h-s.viewFrom<20&&(h=Math.max(a.first,s.viewFrom)),s.viewTo>g&&s.viewTo-g<20&&(g=Math.min(u,s.viewTo)),ii&&(h=cl(e.doc,h),g=rc(e.doc,g));var m=h!=s.viewFrom||g!=s.viewTo||s.lastWrapHeight!=t.wrapperHeight||s.lastWrapWidth!=t.wrapperWidth;wf(e,h,g),s.viewOffset=Xr(ke(e.doc,s.viewFrom)),e.display.mover.style.top=s.viewOffset+"px";var y=mc(e);if(!m&&y==0&&!t.force&&s.renderedView==s.view&&(s.updateLineNumbers==null||s.updateLineNumbers>=s.viewTo))return!1;var C=Tf(e);return y>4&&(s.lineDiv.style.display="none"),Af(e,s.updateLineNumbers,t.dims),y>4&&(s.lineDiv.style.display=""),s.renderedView=s.view,Pf(C),it(s.cursorDiv),it(s.selectionDiv),s.gutters.style.height=s.sizer.style.minHeight=0,m&&(s.lastWrapHeight=t.wrapperHeight,s.lastWrapWidth=t.wrapperWidth,ci(e,400)),s.updateLineNumbers=null,!0}function so(e,t){for(var s=t.viewport,a=!0;;a=!1){if(!a||!e.options.lineWrapping||t.oldDisplayWidth==Ki(e)){if(s&&s.top!=null&&(s={top:Math.min(e.doc.height+Qr(e.display)-pl(e),s.top)}),t.visible=Bo(e.display,e.doc,s),t.visible.from>=e.display.viewFrom&&t.visible.to<=e.display.viewTo)break}else a&&(t.visible=Bo(e.display,e.doc,s));if(!Du(e,t))break;ro(e);var u=ys(e);vs(e),ao(e,u),$u(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 Ru(e,t){var s=new Jr(e,t);if(Du(e,s)){ro(e),so(e,s);var a=ys(e);vs(e),ao(e,a),$u(e,a),s.finish()}}function Af(e,t,s){var a=e.display,u=e.options.lineNumbers,h=a.lineDiv,g=h.firstChild;function m(Z){var J=Z.nextSibling;return I&&he&&e.display.currentWheelTarget==Z?Z.style.display="none":Z.parentNode.removeChild(Z),J}for(var y=a.view,C=a.viewFrom,_=0;_<y.length;_++){var M=y[_];if(!M.hidden)if(!M.node||M.node.parentNode!=h){var N=Tu(e,M,C,s);h.insertBefore(N,g)}else{for(;g!=M.node;)g=m(g);var R=u&&t!=null&&t<=C&&M.lineNumber;M.changes&&(_e(M.changes,"gutter")>-1&&(R=!1),sc(e,M,C,s)),R&&(it(M.lineNumber),M.lineNumber.appendChild(document.createTextNode(va(e.options,C)))),g=M.node.nextSibling}C+=M.size}for(;g;)g=m(g)}function Nu(e){var t=e.gutters.offsetWidth;e.sizer.style.marginLeft=t+"px",hr(e,"gutterChanged",e)}function $u(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+an(e)+"px"}function xc(e){var t=e.display,s=t.view;if(!(!t.alignWidgets&&(!t.gutters.firstChild||!e.options.fixedGutter))){for(var a=wa(t)-t.scroller.scrollLeft+e.doc.scrollLeft,u=t.gutters.offsetWidth,h=a+"px",g=0;g<s.length;g++)if(!s[g].hidden){e.options.fixedGutter&&(s[g].gutter&&(s[g].gutter.style.left=h),s[g].gutterBackground&&(s[g].gutterBackground.style.left=h));var m=s[g].alignable;if(m)for(var y=0;y<m.length;y++)m[y].style.left=h}e.options.fixedGutter&&(t.gutters.style.left=a+u+"px")}}function fi(e){if(!e.options.lineNumbers)return!1;var t=e.doc,s=va(e.options,t.first+t.size-1),a=e.display;if(s.length!=a.lineNumChars){var u=a.measure.appendChild(E("div",[E("div",s)],"CodeMirror-linenumber CodeMirror-gutter-elt")),h=u.firstChild.offsetWidth,g=u.offsetWidth-h;return a.lineGutter.style.width="",a.lineNumInnerWidth=Math.max(h,a.lineGutter.offsetWidth-g)+1,a.lineNumWidth=a.lineNumInnerWidth+g,a.lineNumChars=a.lineNumInnerWidth?s.length:-1,a.lineGutter.style.width=a.lineNumWidth+"px",Nu(e.display),!0}return!1}function Hu(e,t){for(var s=[],a=!1,u=0;u<e.length;u++){var h=e[u],g=null;if(typeof h!="string"&&(g=h.style,h=h.className),h=="CodeMirror-linenumbers")if(t)a=!0;else continue;s.push({className:h,style:g})}return t&&!a&&s.push({className:"CodeMirror-linenumbers",style:null}),s}function zc(e){var t=e.gutters,s=e.gutterSpecs;it(t),e.lineGutter=null;for(var a=0;a<s.length;++a){var u=s[a],h=u.className,g=u.style,m=t.appendChild(E("div",null,"CodeMirror-gutter "+h));g&&(m.style.cssText=g),h=="CodeMirror-linenumbers"&&(e.lineGutter=m,m.style.width=(e.lineNumWidth||1)+"px")}t.style.display=s.length?"":"none",Nu(e)}function xs(e){zc(e.display),rt(e),xc(e)}function Ef(e,t,s,a){var u=this;this.input=s,u.scrollbarFiller=E("div",null,"CodeMirror-scrollbar-filler"),u.scrollbarFiller.setAttribute("cm-not-content","true"),u.gutterFiller=E("div",null,"CodeMirror-gutter-filler"),u.gutterFiller.setAttribute("cm-not-content","true"),u.lineDiv=T("div",null,"CodeMirror-code"),u.selectionDiv=E("div",null,null,"position: relative; z-index: 1"),u.cursorDiv=E("div",null,"CodeMirror-cursors"),u.measure=E("div",null,"CodeMirror-measure"),u.lineMeasure=E("div",null,"CodeMirror-measure"),u.lineSpace=T("div",[u.measure,u.lineMeasure,u.selectionDiv,u.cursorDiv,u.lineDiv],null,"position: relative; outline: none");var h=T("div",[u.lineSpace],"CodeMirror-lines");u.mover=E("div",[h],null,"position: relative"),u.sizer=E("div",[u.mover],"CodeMirror-sizer"),u.sizerWidth=null,u.heightForcer=E("div",null,null,"position: absolute; height: "+Fe+"px; width: 1px;"),u.gutters=E("div",null,"CodeMirror-gutters"),u.lineGutter=null,u.scroller=E("div",[u.sizer,u.heightForcer,u.gutters],"CodeMirror-scroll"),u.scroller.setAttribute("tabIndex","-1"),u.wrapper=E("div",[u.scrollbarFiller,u.gutterFiller,u.scroller],"CodeMirror"),u.wrapper.setAttribute("translate","no"),S&&O<8&&(u.gutters.style.zIndex=-1,u.scroller.style.paddingRight=0),!I&&!(f&&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=Hu(a.gutters,a.lineNumbers),zc(u),s.init(u)}var Ll=0,or=null;S?or=-.53:f?or=15:q?or=-.7:ce&&(or=-1/3);function Lc(e){var t=e.wheelDeltaX,s=e.wheelDeltaY;return t==null&&e.detail&&e.axis==e.HORIZONTAL_AXIS&&(t=e.detail),s==null&&e.detail&&e.axis==e.VERTICAL_AXIS?s=e.detail:s==null&&(s=e.wheelDelta),{x:t,y:s}}function If(e){var t=Lc(e);return t.x*=or,t.y*=or,t}function _c(e,t){var s=Lc(t),a=s.x,u=s.y,h=e.display,g=h.scroller,m=g.scrollWidth>g.clientWidth,y=g.scrollHeight>g.clientHeight;if(!!(a&&m||u&&y)){if(u&&he&&I){e:for(var C=t.target,_=h.view;C!=g;C=C.parentNode)for(var M=0;M<_.length;M++)if(_[M].node==C){e.display.currentWheelTarget=C;break e}}if(a&&!f&&!X&&or!=null){u&&y&&jt(e,Math.max(0,g.scrollTop+u*or)),Fo(e,Math.max(0,g.scrollLeft+a*or)),(!u||u&&y)&&xr(t),h.wheelStartX=null;return}if(u&&or!=null){var N=u*or,R=e.doc.scrollTop,Z=R+h.wrapper.clientHeight;N<0?R=Math.max(0,R+N-50):Z=Math.min(e.doc.height,Z+N+50),Ru(e,{top:R,bottom:Z})}Ll<20&&(h.wheelStartX==null?(h.wheelStartX=g.scrollLeft,h.wheelStartY=g.scrollTop,h.wheelDX=a,h.wheelDY=u,setTimeout(function(){if(h.wheelStartX!=null){var J=g.scrollLeft-h.wheelStartX,le=g.scrollTop-h.wheelStartY,fe=le&&h.wheelDY&&le/h.wheelDY||J&&h.wheelDX&&J/h.wheelDX;h.wheelStartX=h.wheelStartY=null,fe&&(or=(or*Ll+fe)/(Ll+1),++Ll)}},200)):(h.wheelDX+=a,h.wheelDY+=u))}}var mn=function(e,t){this.ranges=e,this.primIndex=t};mn.prototype.primary=function(){return this.ranges[this.primIndex]},mn.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 s=this.ranges[t],a=e.ranges[t];if(!P(s.anchor,a.anchor)||!P(s.head,a.head))return!1}return!0},mn.prototype.deepCopy=function(){for(var e=[],t=0;t<this.ranges.length;t++)e[t]=new Lt(j(this.ranges[t].anchor),j(this.ranges[t].head));return new mn(e,this.primIndex)},mn.prototype.somethingSelected=function(){for(var e=0;e<this.ranges.length;e++)if(!this.ranges[e].empty())return!0;return!1},mn.prototype.contains=function(e,t){t||(t=e);for(var s=0;s<this.ranges.length;s++){var a=this.ranges[s];if(w(t,a.from())>=0&&w(e,a.to())<=0)return s}return-1};var Lt=function(e,t){this.anchor=e,this.head=t};Lt.prototype.from=function(){return qe(this.anchor,this.head)},Lt.prototype.to=function(){return ae(this.anchor,this.head)},Lt.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function Ir(e,t,s){var a=e&&e.options.selectionsMayTouch,u=t[s];t.sort(function(N,R){return w(N.from(),R.from())}),s=_e(t,u);for(var h=1;h<t.length;h++){var g=t[h],m=t[h-1],y=w(m.to(),g.from());if(a&&!g.empty()?y>0:y>=0){var C=qe(m.from(),g.from()),_=ae(m.to(),g.to()),M=m.empty()?g.from()==g.head:m.from()==m.head;h<=s&&--s,t.splice(--h,2,new Lt(M?_:C,M?C:_))}}return new mn(t,s)}function lo(e,t){return new mn([new Lt(e,t||e)],0)}function uo(e){return e.text?ie(e.from.line+e.text.length-1,Xe(e.text).length+(e.text.length==1?e.from.ch:0)):e.to}function Mn(e,t){if(w(e,t.from)<0)return e;if(w(e,t.to)<=0)return uo(t);var s=e.line+t.text.length-(t.to.line-t.from.line)-1,a=e.ch;return e.line==t.to.line&&(a+=uo(t).ch-t.to.ch),ie(s,a)}function Bu(e,t){for(var s=[],a=0;a<e.sel.ranges.length;a++){var u=e.sel.ranges[a];s.push(new Lt(Mn(u.anchor,t),Mn(u.head,t)))}return Ir(e.cm,s,e.sel.primIndex)}function Sc(e,t,s){return e.line==t.line?ie(s.line,e.ch-t.ch+s.ch):ie(s.line+(e.line-t.line),e.ch)}function Df(e,t,s){for(var a=[],u=ie(e.first,0),h=u,g=0;g<t.length;g++){var m=t[g],y=Sc(m.from,u,h),C=Sc(uo(m),u,h);if(u=m.to,h=C,s=="around"){var _=e.sel.ranges[g],M=w(_.head,_.anchor)<0;a[g]=new Lt(M?C:y,M?y:C)}else a[g]=new Lt(y,y)}return new mn(a,e.sel.primIndex)}function Fu(e){e.doc.mode=ga(e.options,e.doc.modeOption),zs(e)}function zs(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,ci(e,100),e.state.modeGen++,e.curOp&&rt(e)}function Wu(e,t){return t.from.ch==0&&t.to.ch==0&&Xe(t.text)==""&&(!e.cm||e.cm.options.wholeLineUpdateBefore)}function _l(e,t,s,a){function u(we){return s?s[we]:null}function h(we,de,ze){nc(we,de,ze,a),hr(we,"change",we,t)}function g(we,de){for(var ze=[],Re=we;Re<de;++Re)ze.push(new Tr(C[Re],u(Re),a));return ze}var m=t.from,y=t.to,C=t.text,_=ke(e,m.line),M=ke(e,y.line),N=Xe(C),R=u(C.length-1),Z=y.line-m.line;if(t.full)e.insert(0,g(0,C.length)),e.remove(C.length,e.size-C.length);else if(Wu(e,t)){var J=g(0,C.length-1);h(M,M.text,R),Z&&e.remove(m.line,Z),J.length&&e.insert(m.line,J)}else if(_==M)if(C.length==1)h(_,_.text.slice(0,m.ch)+N+_.text.slice(y.ch),R);else{var le=g(1,C.length-1);le.push(new Tr(N+_.text.slice(y.ch),R,a)),h(_,_.text.slice(0,m.ch)+C[0],u(0)),e.insert(m.line+1,le)}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,Z);else{h(_,_.text.slice(0,m.ch)+C[0],u(0)),h(M,N+M.text.slice(y.ch),R);var fe=g(1,C.length-1);Z>1&&e.remove(m.line+1,Z-1),e.insert(m.line+1,fe)}hr(e,"change",e,t)}function co(e,t,s){function a(u,h,g){if(u.linked)for(var m=0;m<u.linked.length;++m){var y=u.linked[m];if(y.doc!=h){var C=g&&y.sharedHist;s&&!C||(t(y.doc,C),a(y.doc,u,C))}}}a(e,null,!0)}function Mc(e,t){if(t.cm)throw new Error("This document is already in use.");e.doc=t,t.cm=e,eo(e),Fu(e),Sl(e),e.options.direction=t.direction,e.options.lineWrapping||ds(e),e.options.mode=t.modeOption,rt(e)}function Sl(e){(e.doc.direction=="rtl"?At:Ce)(e.display.lineDiv,"CodeMirror-rtl")}function Ls(e){Ar(e,function(){Sl(e),rt(e)})}function Uo(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 Uu(e,t){var s={from:j(t.from),to:uo(t),text:vn(e,t.from,t.to)};return kc(e,s,t.from.line,t.to.line+1),co(e,function(a){return kc(a,s,t.from.line,t.to.line+1)},!0),s}function Yu(e){for(;e.length;){var t=Xe(e);if(t.ranges)e.pop();else break}}function Rf(e,t){if(t)return Yu(e.done),Xe(e.done);if(e.done.length&&!Xe(e.done).ranges)return Xe(e.done);if(e.done.length>1&&!e.done[e.done.length-2].ranges)return e.done.pop(),Xe(e.done)}function di(e,t,s,a){var u=e.history;u.undone.length=0;var h=+new Date,g,m;if((u.lastOp==a||u.lastOrigin==t.origin&&t.origin&&(t.origin.charAt(0)=="+"&&u.lastModTime>h-(e.cm?e.cm.options.historyEventDelay:500)||t.origin.charAt(0)=="*"))&&(g=Rf(u,u.lastOp==a)))m=Xe(g.changes),w(t.from,t.to)==0&&w(t.from,m.to)==0?m.to=uo(t):g.changes.push(Uu(e,t));else{var y=Xe(u.done);for((!y||!y.ranges)&&en(e.sel,u.done),g={changes:[Uu(e,t)],generation:u.generation},u.done.push(g);u.done.length>u.undoDepth;)u.done.shift(),u.done[0].ranges||u.done.shift()}u.done.push(s),u.generation=++u.maxGeneration,u.lastModTime=u.lastSelTime=h,u.lastOp=u.lastSelOp=a,u.lastOrigin=u.lastSelOrigin=t.origin,m||Ge(e,"historyAdded")}function Zu(e,t,s,a){var u=t.charAt(0);return u=="*"||u=="+"&&s.ranges.length==a.ranges.length&&s.somethingSelected()==a.somethingSelected()&&new Date-e.history.lastSelTime<=(e.cm?e.cm.options.historyEventDelay:500)}function Yo(e,t,s,a){var u=e.history,h=a&&a.origin;s==u.lastSelOp||h&&u.lastSelOrigin==h&&(u.lastModTime==u.lastSelTime&&u.lastOrigin==h||Zu(e,h,Xe(u.done),t))?u.done[u.done.length-1]=t:en(t,u.done),u.lastSelTime=+new Date,u.lastSelOrigin=h,u.lastSelOp=s,a&&a.clearRedo!==!1&&Yu(u.undone)}function en(e,t){var s=Xe(t);s&&s.ranges&&s.equals(e)||t.push(e)}function kc(e,t,s,a){var u=t["spans_"+e.id],h=0;e.iter(Math.max(e.first,s),Math.min(e.first+e.size,a),function(g){g.markedSpans&&((u||(u=t["spans_"+e.id]={}))[h]=g.markedSpans),++h})}function Oc(e){if(!e)return null;for(var t,s=0;s<e.length;++s)e[s].marker.explicitlyCleared?t||(t=e.slice(0,s)):t&&t.push(e[s]);return t?t.length?t:null:e}function Tc(e,t){var s=t["spans_"+e.id];if(!s)return null;for(var a=[],u=0;u<t.text.length;++u)a.push(Oc(s[u]));return a}function ka(e,t){var s=Tc(e,t),a=wu(e,t);if(!s)return a;if(!a)return s;for(var u=0;u<s.length;++u){var h=s[u],g=a[u];if(h&&g){e:for(var m=0;m<g.length;++m){for(var y=g[m],C=0;C<h.length;++C)if(h[C].marker==y.marker)continue e;h.push(y)}}else g&&(s[u]=g)}return s}function yn(e,t,s){for(var a=[],u=0;u<e.length;++u){var h=e[u];if(h.ranges){a.push(s?mn.prototype.deepCopy.call(h):h);continue}var g=h.changes,m=[];a.push({changes:m});for(var y=0;y<g.length;++y){var C=g[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&&(Xe(m)[M]=C[M],delete C[M])}}return a}function Ml(e,t,s,a){if(a){var u=e.anchor;if(s){var h=w(t,u)<0;h!=w(s,u)<0?(u=t,t=s):h!=w(t,s)<0&&(t=s)}return new Lt(u,t)}else return new Lt(s||t,t)}function kl(e,t,s,a,u){u==null&&(u=e.cm&&(e.cm.display.shift||e.extend)),zr(e,new mn([Ml(e.sel.primary(),t,s,u)],0),a)}function _s(e,t,s){for(var a=[],u=e.cm&&(e.cm.display.shift||e.extend),h=0;h<e.sel.ranges.length;h++)a[h]=Ml(e.sel.ranges[h],t[h],null,u);var g=Ir(e.cm,a,e.sel.primIndex);zr(e,g,s)}function Vu(e,t,s,a){var u=e.sel.ranges.slice(0);u[t]=s,zr(e,Ir(e.cm,u,e.sel.primIndex),a)}function Gu(e,t,s,a){zr(e,lo(t,s),a)}function Dr(e,t,s){var a={ranges:t.ranges,update:function(u){this.ranges=[];for(var h=0;h<u.length;h++)this.ranges[h]=new Lt(me(e,u[h].anchor),me(e,u[h].head))},origin:s&&s.origin};return Ge(e,"beforeSelectionChange",e,a),e.cm&&Ge(e.cm,"beforeSelectionChange",e.cm,a),a.ranges!=t.ranges?Ir(e.cm,a.ranges,a.ranges.length-1):t}function Ol(e,t,s){var a=e.history.done,u=Xe(a);u&&u.ranges?(a[a.length-1]=t,Cn(e,t,s)):zr(e,t,s)}function zr(e,t,s){Cn(e,t,s),Yo(e,e.sel,e.cm?e.cm.curOp.id:NaN,s)}function Cn(e,t,s){(wr(e,"beforeSelectionChange")||e.cm&&wr(e.cm,"beforeSelectionChange"))&&(t=Dr(e,t,s));var a=s&&s.bias||(w(t.primary().head,e.sel.primary().head)<0?-1:1);Tl(e,fo(e,t,a,!0)),!(s&&s.scroll===!1)&&e.cm&&e.cm.getOption("readOnly")!="nocursor"&&io(e.cm)}function Tl(e,t){t.equals(e.sel)||(e.sel=t,e.cm&&(e.cm.curOp.updateInput=1,e.cm.curOp.selectionChanged=!0,ha(e.cm)),hr(e,"cursorActivity",e))}function Ss(e){Tl(e,fo(e,e.sel,null,!1))}function fo(e,t,s,a){for(var u,h=0;h<t.ranges.length;h++){var g=t.ranges[h],m=t.ranges.length==e.sel.ranges.length&&e.sel.ranges[h],y=Lr(e,g.anchor,m&&m.anchor,s,a),C=Lr(e,g.head,m&&m.head,s,a);(u||y!=g.anchor||C!=g.head)&&(u||(u=t.ranges.slice(0,h)),u[h]=new Lt(y,C))}return u?Ir(e.cm,u,t.primIndex):t}function Zo(e,t,s,a,u){var h=ke(e,t.line);if(h.markedSpans)for(var g=0;g<h.markedSpans.length;++g){var m=h.markedSpans[g],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&&(Ge(y,"beforeCursorEnter"),y.explicitlyCleared))if(h.markedSpans){--g;continue}else break;if(!y.atomic)continue;if(s){var M=y.find(a<0?1:-1),N=void 0;if((a<0?_:C)&&(M=Pl(e,M,-a,M&&M.line==t.line?h:null)),M&&M.line==t.line&&(N=w(M,s))&&(a<0?N<0:N>0))return Zo(e,M,t,a,u)}var R=y.find(a<0?-1:1);return(a<0?C:_)&&(R=Pl(e,R,a,R.line==t.line?h:null)),R?Zo(e,R,t,a,u):null}}return t}function Lr(e,t,s,a,u){var h=a||1,g=Zo(e,t,s,h,u)||!u&&Zo(e,t,s,h,!0)||Zo(e,t,s,-h,u)||!u&&Zo(e,t,s,-h,!0);return g||(e.cantEdit=!0,ie(e.first,0))}function Pl(e,t,s,a){return s<0&&t.ch==0?t.line>e.first?me(e,ie(t.line-1)):null:s>0&&t.ch==(a||ke(e,t.line)).text.length?t.line<e.first+e.size-1?ie(t.line+1,0):null:new ie(t.line,t.ch+s)}function Pc(e){e.setSelection(ie(e.firstLine(),0),ie(e.lastLine()),at)}function Ac(e,t,s){var a={canceled:!1,from:t.from,to:t.to,text:t.text,origin:t.origin,cancel:function(){return a.canceled=!0}};return s&&(a.update=function(u,h,g,m){u&&(a.from=me(e,u)),h&&(a.to=me(e,h)),g&&(a.text=g),m!==void 0&&(a.origin=m)}),Ge(e,"beforeChange",e,a),e.cm&&Ge(e.cm,"beforeChange",e.cm,a),a.canceled?(e.cm&&(e.cm.curOp.updateInput=2),null):{from:a.from,to:a.to,text:a.text,origin:a.origin}}function Oa(e,t,s){if(e.cm){if(!e.cm.curOp)return Kt(e.cm,Oa)(e,t,s);if(e.cm.state.suppressEdits)return}if(!((wr(e,"beforeChange")||e.cm&&wr(e.cm,"beforeChange"))&&(t=Ac(e,t,!0),!t))){var a=Cu&&!s&&xu(e,t.from,t.to);if(a)for(var u=a.length-1;u>=0;--u)Al(e,{from:a[u].from,to:a[u].to,text:u?[""]:t.text,origin:t.origin});else Al(e,t)}}function Al(e,t){if(!(t.text.length==1&&t.text[0]==""&&w(t.from,t.to)==0)){var s=Bu(e,t);di(e,t,s,e.cm?e.cm.curOp.id:NaN),Pa(e,t,s,wu(e,t));var a=[];co(e,function(u,h){!h&&_e(a,u.history)==-1&&(Ic(u.history,t),a.push(u.history)),Pa(u,t,null,wu(u,t))})}}function El(e,t,s){var a=e.cm&&e.cm.state.suppressEdits;if(!(a&&!s)){for(var u=e.history,h,g=e.sel,m=t=="undo"?u.done:u.undone,y=t=="undo"?u.undone:u.done,C=0;C<m.length&&(h=m[C],!(s?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(en(h,y),s&&!h.equals(e.sel)){zr(e,h,{clearRedo:!1});return}g=h}else if(a){m.push(h);return}else break;var _=[];en(g,y),y.push({changes:_,generation:u.generation}),u.generation=h.generation||++u.maxGeneration;for(var M=wr(e,"beforeChange")||e.cm&&wr(e.cm,"beforeChange"),N=function(J){var le=h.changes[J];if(le.origin=t,M&&!Ac(e,le,!1))return m.length=0,{};_.push(Uu(e,le));var fe=J?Bu(e,le):Xe(m);Pa(e,le,fe,ka(e,le)),!J&&e.cm&&e.cm.scrollIntoView({from:le.from,to:uo(le)});var we=[];co(e,function(de,ze){!ze&&_e(we,de.history)==-1&&(Ic(de.history,le),we.push(de.history)),Pa(de,le,null,ka(de,le))})},R=h.changes.length-1;R>=0;--R){var Z=N(R);if(Z)return Z.v}}}}function Ta(e,t){if(t!=0&&(e.first+=t,e.sel=new mn(yt(e.sel.ranges,function(u){return new Lt(ie(u.anchor.line+t,u.anchor.ch),ie(u.head.line+t,u.head.ch))}),e.sel.primIndex),e.cm)){rt(e.cm,e.first,e.first-t,t);for(var s=e.cm.display,a=s.viewFrom;a<s.viewTo;a++)to(e.cm,a,"gutter")}}function Pa(e,t,s,a){if(e.cm&&!e.cm.curOp)return Kt(e.cm,Pa)(e,t,s,a);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:ie(e.first,0),to:ie(t.to.line+u,t.to.ch),text:[Xe(t.text)],origin:t.origin}}var h=e.lastLine();t.to.line>h&&(t={from:t.from,to:ie(h,ke(e,h).text.length),text:[t.text[0]],origin:t.origin}),t.removed=vn(e,t.from,t.to),s||(s=Bu(e,t)),e.cm?Nf(e.cm,t,a):_l(e,t,a),Cn(e,s,at),e.cantEdit&&Lr(e,ie(e.firstLine(),0))&&(e.cantEdit=!1)}}function Nf(e,t,s){var a=e.doc,u=e.display,h=t.from,g=t.to,m=!1,y=h.line;e.options.lineWrapping||(y=zt(oi(ke(a,h.line))),a.iter(y,g.line+1,function(R){if(R==u.maxLine)return m=!0,!0})),a.sel.contains(t.from,t.to)>-1&&ha(e),_l(a,t,s,bc(e)),e.options.lineWrapping||(a.iter(y,h.line+t.text.length,function(R){var Z=fs(R);Z>u.maxLineLength&&(u.maxLine=R,u.maxLineLength=Z,u.maxLineChanged=!0,m=!1)}),m&&(e.curOp.updateMaxLine=!0)),sf(a,h.line),ci(e,400);var C=t.text.length-(g.line-h.line)-1;t.full?rt(e):h.line==g.line&&t.text.length==1&&!Wu(e.doc,t)?to(e,h.line,"text"):rt(e,h.line,g.line+1,C);var _=wr(e,"changes"),M=wr(e,"change");if(M||_){var N={from:h,to:g,text:t.text,removed:t.removed,origin:t.origin};M&&hr(e,"change",e,N),_&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(N)}e.display.selForContextMenu=null}function Aa(e,t,s,a,u){var h;a||(a=s),w(a,s)<0&&(h=[a,s],s=h[0],a=h[1]),typeof t=="string"&&(t=e.splitLines(t)),Oa(e,{from:s,to:a,text:t,origin:u})}function Ea(e,t,s,a){s<e.line?e.line+=a:t<e.line&&(e.line=t,e.ch=0)}function Ec(e,t,s,a){for(var u=0;u<e.length;++u){var h=e[u],g=!0;if(h.ranges){h.copied||(h=e[u]=h.deepCopy(),h.copied=!0);for(var m=0;m<h.ranges.length;m++)Ea(h.ranges[m].anchor,t,s,a),Ea(h.ranges[m].head,t,s,a);continue}for(var y=0;y<h.changes.length;++y){var C=h.changes[y];if(s<C.from.line)C.from=ie(C.from.line+a,C.from.ch),C.to=ie(C.to.line+a,C.to.ch);else if(t<=C.to.line){g=!1;break}}g||(e.splice(0,u+1),u=0)}}function Ic(e,t){var s=t.from.line,a=t.to.line,u=t.text.length-(a-s)-1;Ec(e.done,s,a,u),Ec(e.undone,s,a,u)}function Vo(e,t,s,a){var u=t,h=t;return typeof t=="number"?h=ke(e,vt(e,t)):u=zt(t),u==null?null:(a(h,u)&&e.cm&&to(e.cm,u,s),h)}function Ia(e){this.lines=e,this.parent=null;for(var t=0,s=0;s<e.length;++s)e[s].parent=this,t+=e[s].height;this.height=t}Ia.prototype={chunkSize:function(){return this.lines.length},removeInner:function(e,t){for(var s=e,a=e+t;s<a;++s){var u=this.lines[s];this.height-=u.height,ic(u),hr(u,"delete")}this.lines.splice(e,t)},collapse:function(e){e.push.apply(e,this.lines)},insertInner:function(e,t,s){this.height+=s,this.lines=this.lines.slice(0,e).concat(t).concat(this.lines.slice(e));for(var a=0;a<t.length;++a)t[a].parent=this},iterN:function(e,t,s){for(var a=e+t;e<a;++e)if(s(this.lines[e]))return!0}};function Ms(e){this.children=e;for(var t=0,s=0,a=0;a<e.length;++a){var u=e[a];t+=u.chunkSize(),s+=u.height,u.parent=this}this.size=t,this.height=s,this.parent=null}Ms.prototype={chunkSize:function(){return this.size},removeInner:function(e,t){this.size-=t;for(var s=0;s<this.children.length;++s){var a=this.children[s],u=a.chunkSize();if(e<u){var h=Math.min(t,u-e),g=a.height;if(a.removeInner(e,h),this.height-=g-a.height,u==h&&(this.children.splice(s--,1),a.parent=null),(t-=h)==0)break;e=0}else e-=u}if(this.size-t<25&&(this.children.length>1||!(this.children[0]instanceof Ia))){var m=[];this.collapse(m),this.children=[new Ia(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,s){this.size+=t.length,this.height+=s;for(var a=0;a<this.children.length;++a){var u=this.children[a],h=u.chunkSize();if(e<=h){if(u.insertInner(e,t,s),u.lines&&u.lines.length>50){for(var g=u.lines.length%25+25,m=g;m<u.lines.length;){var y=new Ia(u.lines.slice(m,m+=25));u.height-=y.height,this.children.splice(++a,0,y),y.parent=this}u.lines=u.lines.slice(0,g),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),s=new Ms(t);if(e.parent){e.size-=s.size,e.height-=s.height;var u=_e(e.parent.children,e);e.parent.children.splice(u+1,0,s)}else{var a=new Ms(e.children);a.parent=e,e.children=[a,s],e=a}s.parent=e.parent}while(e.children.length>10);e.parent.maybeSpill()}},iterN:function(e,t,s){for(var a=0;a<this.children.length;++a){var u=this.children[a],h=u.chunkSize();if(e<h){var g=Math.min(t,h-e);if(u.iterN(e,g,s))return!0;if((t-=g)==0)break;e=0}else e-=h}}};var ks=function(e,t,s){if(s)for(var a in s)s.hasOwnProperty(a)&&(this[a]=s[a]);this.doc=e,this.node=t};ks.prototype.clear=function(){var e=this.doc.cm,t=this.line.widgets,s=this.line,a=zt(s);if(!(a==null||!t)){for(var u=0;u<t.length;++u)t[u]==this&&t.splice(u--,1);t.length||(s.widgets=null);var h=Do(this);nn(s,Math.max(0,s.height-h)),e&&(Ar(e,function(){Dc(e,s,-h),to(e,a,"widget")}),hr(e,"lineWidgetCleared",e,this,a))}},ks.prototype.changed=function(){var e=this,t=this.height,s=this.doc.cm,a=this.line;this.height=null;var u=Do(this)-t;!u||(Gt(this.doc,a)||nn(a,a.height+u),s&&Ar(s,function(){s.curOp.forceUpdate=!0,Dc(s,a,u),hr(s,"lineWidgetChanged",s,e,zt(a))}))},Bn(ks);function Dc(e,t,s){Xr(t)<(e.curOp&&e.curOp.scrollTop||e.doc.scrollTop)&&_a(e,s)}function Rc(e,t,s,a){var u=new ks(e,s,a),h=e.cm;return h&&u.noHScroll&&(h.display.alignWidgets=!0),Vo(e,t,"widget",function(g){var m=g.widgets||(g.widgets=[]);if(u.insertAt==null?m.push(u):m.splice(Math.min(m.length,Math.max(0,u.insertAt)),0,u),u.line=g,h&&!Gt(e,g)){var y=Xr(g)<e.scrollTop;nn(g,g.height+Do(u)),y&&_a(h,u.height),h.curOp.forceUpdate=!0}return!0}),h&&hr(h,"lineWidgetAdded",h,u,typeof t=="number"?t:zt(t)),u}var Il=0,ho=function(e,t){this.lines=[],this.type=t,this.doc=e,this.id=++Il};ho.prototype.clear=function(){if(!this.explicitlyCleared){var e=this.doc.cm,t=e&&!e.curOp;if(t&&Gn(e),wr(this,"clear")){var s=this.find();s&&hr(this,"clear",s.from,s.to)}for(var a=null,u=null,h=0;h<this.lines.length;++h){var g=this.lines[h],m=us(g.markedSpans,this);e&&!this.collapsed?to(e,zt(g),"text"):e&&(m.to!=null&&(u=zt(g)),m.from!=null&&(a=zt(g))),g.markedSpans=lf(g.markedSpans,m),m.from==null&&this.collapsed&&!Gt(this.doc,g)&&e&&nn(g,Ji(e.display))}if(e&&this.collapsed&&!e.options.lineWrapping)for(var y=0;y<this.lines.length;++y){var C=oi(this.lines[y]),_=fs(C);_>e.display.maxLineLength&&(e.display.maxLine=C,e.display.maxLineLength=_,e.display.maxLineChanged=!0)}a!=null&&e&&this.collapsed&&rt(e,a,u+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&Ss(e.doc)),e&&hr(e,"markerCleared",e,this,a,u),t&&ui(e),this.parent&&this.parent.clear()}},ho.prototype.find=function(e,t){e==null&&this.type=="bookmark"&&(e=1);for(var s,a,u=0;u<this.lines.length;++u){var h=this.lines[u],g=us(h.markedSpans,this);if(g.from!=null&&(s=ie(t?h:zt(h),g.from),e==-1))return s;if(g.to!=null&&(a=ie(t?h:zt(h),g.to),e==1))return a}return s&&{from:s,to:a}},ho.prototype.changed=function(){var e=this,t=this.find(-1,!0),s=this,a=this.doc.cm;!t||!a||Ar(a,function(){var u=t.line,h=zt(t.line),g=Eu(a,h);if(g&&(hc(g),a.curOp.selectionChanged=a.curOp.forceUpdate=!0),a.curOp.updateMaxLine=!0,!Gt(s.doc,u)&&s.height!=null){var m=s.height;s.height=null;var y=Do(s)-m;y&&nn(u,u.height+y)}hr(a,"markerChanged",a,e)})},ho.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)},ho.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)}},Bn(ho);function po(e,t,s,a,u){if(a&&a.shared)return Nc(e,t,s,a,u);if(e.cm&&!e.cm.curOp)return Kt(e.cm,po)(e,t,s,a,u);var h=new ho(e,u),g=w(t,s);if(a&&er(a,h,!1),g>0||g==0&&h.clearWhenEmpty!==!1)return h;if(h.replacedWith&&(h.collapsed=!0,h.widgetNode=T("span",[h.replacedWith],"CodeMirror-widget"),a.handleMouseEvents||h.widgetNode.setAttribute("cm-ignore-events","true"),a.insertLeft&&(h.widgetNode.insertLeft=!0)),h.collapsed){if(tc(e,t.line,t,s,h)||t.line!=s.line&&tc(e,s.line,t,s,h))throw new Error("Inserting collapsed marker partially overlapping an existing one");K0()}h.addToHistory&&di(e,{from:t,to:s,origin:"markText"},e.sel,NaN);var m=t.line,y=e.cm,C;if(e.iter(m,s.line+1,function(M){y&&h.collapsed&&!y.options.lineWrapping&&oi(M)==y.display.maxLine&&(C=!0),h.collapsed&&m!=t.line&&nn(M,0),X0(M,new al(h,m==t.line?t.ch:null,m==s.line?s.ch:null),e.cm&&e.cm.curOp),++m}),h.collapsed&&e.iter(t.line,s.line+1,function(M){Gt(e,M)&&nn(M,0)}),h.clearOnEnter&&$e(h,"beforeCursorEnter",function(){return h.clear()}),h.readOnly&&(j0(),(e.history.done.length||e.history.undone.length)&&e.clearHistory()),h.collapsed&&(h.id=++Il,h.atomic=!0),y){if(C&&(y.curOp.updateMaxLine=!0),h.collapsed)rt(y,t.line,s.line+1);else if(h.className||h.startStyle||h.endStyle||h.css||h.attributes||h.title)for(var _=t.line;_<=s.line;_++)to(y,_,"text");h.atomic&&Ss(y.doc),hr(y,"markerAdded",y,h)}return h}var Da=function(e,t){this.markers=e,this.primary=t;for(var s=0;s<e.length;++s)e[s].parent=this};Da.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var e=0;e<this.markers.length;++e)this.markers[e].clear();hr(this,"clear")}},Da.prototype.find=function(e,t){return this.primary.find(e,t)},Bn(Da);function Nc(e,t,s,a,u){a=er(a),a.shared=!1;var h=[po(e,t,s,a,u)],g=h[0],m=a.widgetNode;return co(e,function(y){m&&(a.widgetNode=m.cloneNode(!0)),h.push(po(y,me(y,t),me(y,s),a,u));for(var C=0;C<y.linked.length;++C)if(y.linked[C].isParent)return;g=Xe(h)}),new Da(h,g)}function qu(e){return e.findMarks(ie(e.first,0),e.clipPos(ie(e.lastLine())),function(t){return t.parent})}function Dl(e,t){for(var s=0;s<t.length;s++){var a=t[s],u=a.find(),h=e.clipPos(u.from),g=e.clipPos(u.to);if(w(h,g)){var m=po(e,h,g,a.primary,a.primary.type);a.markers.push(m),m.parent=a}}}function $f(e){for(var t=function(a){var u=e[a],h=[u.primary.doc];co(u.primary.doc,function(y){return h.push(y)});for(var g=0;g<u.markers.length;g++){var m=u.markers[g];_e(h,m.doc)==-1&&(m.parent=null,u.markers.splice(g--,1))}},s=0;s<e.length;s++)t(s)}var $c=0,Br=function(e,t,s,a,u){if(!(this instanceof Br))return new Br(e,t,s,a,u);s==null&&(s=0),Ms.call(this,[new Ia([new Tr("",null)])]),this.first=s,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=s;var h=ie(s,0);this.sel=lo(h),this.history=new Uo(null),this.id=++$c,this.modeOption=t,this.lineSep=a,this.direction=u=="rtl"?"rtl":"ltr",this.extend=!1,typeof e=="string"&&(e=this.splitLines(e)),_l(this,{from:h,to:h,text:e}),zr(this,lo(h),at)};Br.prototype=rn(Ms.prototype,{constructor:Br,iter:function(e,t,s){s?this.iterN(e-this.first,t-e,s):this.iterN(this.first,this.first+this.size,e)},insert:function(e,t){for(var s=0,a=0;a<t.length;++a)s+=t[a].height;this.insertInner(e-this.first,t,s)},remove:function(e,t){this.removeInner(e-this.first,t)},getValue:function(e){var t=ss(this,this.first,this.first+this.size);return e===!1?t:t.join(e||this.lineSeparator())},setValue:z(function(e){var t=ie(this.first,0),s=this.first+this.size-1;Oa(this,{from:t,to:ie(s,ke(this,s).text.length),text:this.splitLines(e),origin:"setValue",full:!0},!0),this.cm&&ms(this.cm,0,0),zr(this,lo(t),at)}),replaceRange:function(e,t,s,a){t=me(this,t),s=s?me(this,s):t,Aa(this,e,t,s,a)},getRange:function(e,t,s){var a=vn(this,me(this,e),me(this,t));return s===!1?a:s===""?a.join(""):a.join(s||this.lineSeparator())},getLine:function(e){var t=this.getLineHandle(e);return t&&t.text},getLineHandle:function(e){if(Gi(this,e))return ke(this,e)},getLineNumber:function(e){return zt(e)},getLineHandleVisualStart:function(e){return typeof e=="number"&&(e=ke(this,e)),oi(e)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(e){return me(this,e)},getCursor:function(e){var t=this.sel.primary(),s;return e==null||e=="head"?s=t.head:e=="anchor"?s=t.anchor:e=="end"||e=="to"||e===!1?s=t.to():s=t.from(),s},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:z(function(e,t,s){Gu(this,me(this,typeof e=="number"?ie(e,t||0):e),null,s)}),setSelection:z(function(e,t,s){Gu(this,me(this,e),me(this,t||e),s)}),extendSelection:z(function(e,t,s){kl(this,me(this,e),t&&me(this,t),s)}),extendSelections:z(function(e,t){_s(this,on(this,e),t)}),extendSelectionsBy:z(function(e,t){var s=yt(this.sel.ranges,e);_s(this,on(this,s),t)}),setSelections:z(function(e,t,s){if(!!e.length){for(var a=[],u=0;u<e.length;u++)a[u]=new Lt(me(this,e[u].anchor),me(this,e[u].head||e[u].anchor));t==null&&(t=Math.min(e.length-1,this.sel.primIndex)),zr(this,Ir(this.cm,a,t),s)}}),addSelection:z(function(e,t,s){var a=this.sel.ranges.slice(0);a.push(new Lt(me(this,e),me(this,t||e))),zr(this,Ir(this.cm,a,a.length-1),s)}),getSelection:function(e){for(var t=this.sel.ranges,s,a=0;a<t.length;a++){var u=vn(this,t[a].from(),t[a].to());s=s?s.concat(u):u}return e===!1?s:s.join(e||this.lineSeparator())},getSelections:function(e){for(var t=[],s=this.sel.ranges,a=0;a<s.length;a++){var u=vn(this,s[a].from(),s[a].to());e!==!1&&(u=u.join(e||this.lineSeparator())),t[a]=u}return t},replaceSelection:function(e,t,s){for(var a=[],u=0;u<this.sel.ranges.length;u++)a[u]=e;this.replaceSelections(a,t,s||"+input")},replaceSelections:z(function(e,t,s){for(var a=[],u=this.sel,h=0;h<u.ranges.length;h++){var g=u.ranges[h];a[h]={from:g.from(),to:g.to(),text:this.splitLines(e[h]),origin:s}}for(var m=t&&t!="end"&&Df(this,a,t),y=a.length-1;y>=0;y--)Oa(this,a[y]);m?Ol(this,m):this.cm&&io(this.cm)}),undo:z(function(){El(this,"undo")}),redo:z(function(){El(this,"redo")}),undoSelection:z(function(){El(this,"undo",!0)}),redoSelection:z(function(){El(this,"redo",!0)}),setExtending:function(e){this.extend=e},getExtending:function(){return this.extend},historySize:function(){for(var e=this.history,t=0,s=0,a=0;a<e.done.length;a++)e.done[a].ranges||++t;for(var u=0;u<e.undone.length;u++)e.undone[u].ranges||++s;return{undo:t,redo:s}},clearHistory:function(){var e=this;this.history=new Uo(this.history),co(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:yn(this.history.done),undone:yn(this.history.undone)}},setHistory:function(e){var t=this.history=new Uo(this.history);t.done=yn(e.done.slice(0),null,!0),t.undone=yn(e.undone.slice(0),null,!0)},setGutterMarker:z(function(e,t,s){return Vo(this,e,"gutter",function(a){var u=a.gutterMarkers||(a.gutterMarkers={});return u[t]=s,!s&&oe(u)&&(a.gutterMarkers=null),!0})}),clearGutter:z(function(e){var t=this;this.iter(function(s){s.gutterMarkers&&s.gutterMarkers[e]&&Vo(t,s,"gutter",function(){return s.gutterMarkers[e]=null,oe(s.gutterMarkers)&&(s.gutterMarkers=null),!0})})}),lineInfo:function(e){var t;if(typeof e=="number"){if(!Gi(this,e)||(t=e,e=ke(this,e),!e))return null}else if(t=zt(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,s){return Vo(this,e,t=="gutter"?"gutter":"class",function(a){var u=t=="text"?"textClass":t=="background"?"bgClass":t=="gutter"?"gutterClass":"wrapClass";if(!a[u])a[u]=s;else{if(ve(s).test(a[u]))return!1;a[u]+=" "+s}return!0})}),removeLineClass:z(function(e,t,s){return Vo(this,e,t=="gutter"?"gutter":"class",function(a){var u=t=="text"?"textClass":t=="background"?"bgClass":t=="gutter"?"gutterClass":"wrapClass",h=a[u];if(h)if(s==null)a[u]=null;else{var g=h.match(ve(s));if(!g)return!1;var m=g.index+g[0].length;a[u]=h.slice(0,g.index)+(!g.index||m==h.length?"":" ")+h.slice(m)||null}else return!1;return!0})}),addLineWidget:z(function(e,t,s){return Rc(this,e,t,s)}),removeLineWidget:function(e){e.clear()},markText:function(e,t,s){return po(this,me(this,e),me(this,t),s,s&&s.type||"range")},setBookmark:function(e,t){var s={replacedWith:t&&(t.nodeType==null?t.widget:t),insertLeft:t&&t.insertLeft,clearWhenEmpty:!1,shared:t&&t.shared,handleMouseEvents:t&&t.handleMouseEvents};return e=me(this,e),po(this,e,e,s,"bookmark")},findMarksAt:function(e){e=me(this,e);var t=[],s=ke(this,e.line).markedSpans;if(s)for(var a=0;a<s.length;++a){var u=s[a];(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,s){e=me(this,e),t=me(this,t);var a=[],u=e.line;return this.iter(e.line,t.line+1,function(h){var g=h.markedSpans;if(g)for(var m=0;m<g.length;m++){var y=g[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)&&(!s||s(y.marker))&&a.push(y.marker.parent||y.marker)}++u}),a},getAllMarks:function(){var e=[];return this.iter(function(t){var s=t.markedSpans;if(s)for(var a=0;a<s.length;++a)s[a].from!=null&&e.push(s[a].marker)}),e},posFromIndex:function(e){var t,s=this.first,a=this.lineSeparator().length;return this.iter(function(u){var h=u.text.length+a;if(h>e)return t=e,!0;e-=h,++s}),me(this,ie(s,t))},indexFromPos:function(e){e=me(this,e);var t=e.ch;if(e.line<this.first||e.ch<0)return 0;var s=this.lineSeparator().length;return this.iter(this.first,e.line,function(a){t+=a.text.length+s}),t},copy:function(e){var t=new Br(ss(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,s=this.first+this.size;e.from!=null&&e.from>t&&(t=e.from),e.to!=null&&e.to<s&&(s=e.to);var a=new Br(ss(this,t,s),e.mode||this.modeOption,t,this.lineSep,this.direction);return e.sharedHist&&(a.history=this.history),(this.linked||(this.linked=[])).push({doc:a,sharedHist:e.sharedHist}),a.linked=[{doc:this,isParent:!0,sharedHist:e.sharedHist}],Dl(a,qu(this)),a},unlinkDoc:function(e){if(e instanceof Dt&&(e=e.doc),this.linked)for(var t=0;t<this.linked.length;++t){var s=this.linked[t];if(s.doc==e){this.linked.splice(t,1),e.unlinkDoc(this),$f(qu(this));break}}if(e.history==this.history){var a=[e.id];co(e,function(u){return a.push(u.id)},!0),e.history=new Uo(null),e.history.done=yn(this.history.done,a),e.history.undone=yn(this.history.undone,a)}},iterLinkedDocs:function(e){co(this,e)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(e){return this.lineSep?e.split(this.lineSep):To(e)},lineSeparator:function(){return this.lineSep||`
2218
+ `},setDirection:z(function(e){e!="rtl"&&(e="ltr"),e!=this.direction&&(this.direction=e,this.iter(function(t){return t.order=null}),this.cm&&Ls(this.cm))})}),Br.prototype.eachLine=Br.prototype.iter;var Hc=0;function Bc(e){var t=this;if(Ku(t),!(ir(t,e)||Si(t.display,e))){xr(e),S&&(Hc=+new Date);var s=si(t,e,!0),a=e.dataTransfer.files;if(!(!s||t.isReadOnly()))if(a&&a.length&&window.FileReader&&window.File)for(var u=a.length,h=Array(u),g=0,m=function(){++g==u&&Kt(t,function(){s=me(t.doc,s);var R={from:s,to:s,text:t.doc.splitLines(h.filter(function(Z){return Z!=null}).join(t.doc.lineSeparator())),origin:"paste"};Oa(t.doc,R),Ol(t.doc,lo(me(t.doc,s),me(t.doc,uo(R))))})()},y=function(R,Z){if(t.options.allowDropFileTypes&&_e(t.options.allowDropFileTypes,R.type)==-1){m();return}var J=new FileReader;J.onerror=function(){return m()},J.onload=function(){var le=J.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(le)){m();return}h[Z]=le,m()},J.readAsText(R)},C=0;C<a.length;C++)y(a[C],C);else{if(t.state.draggingText&&t.doc.sel.contains(s)>-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()),Cn(t.doc,lo(s,s)),M)for(var N=0;N<M.length;++N)Aa(t.doc,"",M[N].anchor,M[N].head,"drag");t.replaceSelection(_,"around","paste"),t.display.input.focus()}}catch{}}}}function Hf(e,t){if(S&&(!e.state.draggingText||+new Date-Hc<100)){ko(t);return}if(!(ir(e,t)||Si(e.display,t))&&(t.dataTransfer.setData("Text",e.getSelection()),t.dataTransfer.effectAllowed="copyMove",t.dataTransfer.setDragImage&&!ce)){var s=E("img",null,null,"position: fixed; left: 0; top: 0;");s.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",X&&(s.width=s.height=1,e.display.wrapper.appendChild(s),s._top=s.offsetTop),t.dataTransfer.setDragImage(s,0,0),X&&s.parentNode.removeChild(s)}}function ju(e,t){var s=si(e,t);if(!!s){var a=document.createDocumentFragment();ki(e,s,a),e.display.dragCursor||(e.display.dragCursor=E("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),e.display.lineSpace.insertBefore(e.display.dragCursor,e.display.cursorDiv)),W(e.display.dragCursor,a)}}function Ku(e){e.display.dragCursor&&(e.display.lineSpace.removeChild(e.display.dragCursor),e.display.dragCursor=null)}function Rl(e){if(!!document.getElementsByClassName){for(var t=document.getElementsByClassName("CodeMirror"),s=[],a=0;a<t.length;a++){var u=t[a].CodeMirror;u&&s.push(u)}s.length&&s[0].operation(function(){for(var h=0;h<s.length;h++)e(s[h])})}}var Fc=!1;function Xu(){Fc||(ft(),Fc=!0)}function ft(){var e;$e(window,"resize",function(){e==null&&(e=setTimeout(function(){e=null,Rl(Bf)},100))}),$e(window,"blur",function(){return Rl(Ho)})}function Bf(e){var t=e.display;t.cachedCharWidth=t.cachedTextHeight=t.cachedPaddingH=null,t.scrollbarsClipped=!1,e.setSize()}for(var go={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"},Oi=0;Oi<10;Oi++)go[Oi+48]=go[Oi+96]=String(Oi);for(var Os=65;Os<=90;Os++)go[Os]=String.fromCharCode(Os);for(var Ts=1;Ts<=12;Ts++)go[Ts+111]=go[Ts+63235]="F"+Ts;var Ti={};Ti.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"},Ti.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"},Ti.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"},Ti.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"]},Ti.default=he?Ti.macDefault:Ti.pcDefault;function kn(e){var t=e.split(/-(?!$)/);e=t[t.length-1];for(var s,a,u,h,g=0;g<t.length-1;g++){var m=t[g];if(/^(cmd|meta|m)$/i.test(m))h=!0;else if(/^a(lt)?$/i.test(m))s=!0;else if(/^(c|ctrl|control)$/i.test(m))a=!0;else if(/^s(hift)?$/i.test(m))u=!0;else throw new Error("Unrecognized modifier name: "+m)}return s&&(e="Alt-"+e),a&&(e="Ctrl-"+e),h&&(e="Cmd-"+e),u&&(e="Shift-"+e),e}function Ff(e){var t={};for(var s in e)if(e.hasOwnProperty(s)){var a=e[s];if(/^(name|fallthrough|(de|at)tach)$/.test(s))continue;if(a=="..."){delete e[s];continue}for(var u=yt(s.split(" "),kn),h=0;h<u.length;h++){var g=void 0,m=void 0;h==u.length-1?(m=u.join(" "),g=a):(m=u.slice(0,h+1).join(" "),g="...");var y=t[m];if(!y)t[m]=g;else if(y!=g)throw new Error("Inconsistent bindings for "+m)}delete e[s]}for(var C in t)e[C]=t[C];return e}function Pi(e,t,s,a){t=Fr(t);var u=t.call?t.call(e,a):t[e];if(u===!1)return"nothing";if(u==="...")return"multi";if(u!=null&&s(u))return"handled";if(t.fallthrough){if(Object.prototype.toString.call(t.fallthrough)!="[object Array]")return Pi(e,t.fallthrough,s,a);for(var h=0;h<t.fallthrough.length;h++){var g=Pi(e,t.fallthrough[h],s,a);if(g)return g}}}function Nl(e){var t=typeof e=="string"?e:go[e.keyCode];return t=="Ctrl"||t=="Alt"||t=="Shift"||t=="Mod"}function Qu(e,t,s){var a=e;return t.altKey&&a!="Alt"&&(e="Alt-"+e),(et?t.metaKey:t.ctrlKey)&&a!="Ctrl"&&(e="Ctrl-"+e),(et?t.ctrlKey:t.metaKey)&&a!="Mod"&&(e="Cmd-"+e),!s&&t.shiftKey&&a!="Shift"&&(e="Shift-"+e),e}function Ju(e,t){if(X&&e.keyCode==34&&e.char)return!1;var s=go[e.keyCode];return s==null||e.altGraphKey?!1:(e.keyCode==3&&e.code&&(s=e.code),Qu(s,e,t))}function Fr(e){return typeof e=="string"?Ti[e]:e}function wn(e,t){for(var s=e.doc.sel.ranges,a=[],u=0;u<s.length;u++){for(var h=t(s[u]);a.length&&w(h.from,Xe(a).to)<=0;){var g=a.pop();if(w(g.from,h.from)<0){h.from=g.from;break}}a.push(h)}Ar(e,function(){for(var m=a.length-1;m>=0;m--)Aa(e.doc,"",a[m].from,a[m].to,"+delete");io(e)})}function Ps(e,t,s){var a=dr(e.text,t+s,s);return a<0||a>e.text.length?null:a}function $l(e,t,s){var a=Ps(e,t.ch,s);return a==null?null:new ie(t.line,a,s<0?"after":"before")}function Ra(e,t,s,a,u){if(e){t.doc.direction=="rtl"&&(u=-u);var h=Hr(s,t.doc.direction);if(h){var g=u<0?Xe(h):h[0],m=u<0==(g.level==1),y=m?"after":"before",C;if(g.level>0||t.doc.direction=="rtl"){var _=Zn(t,s);C=u<0?s.text.length-1:0;var M=ai(t,_,C).top;C=Mr(function(N){return ai(t,_,N).top==M},u<0==(g.level==1)?g.from:g.to-1,C),y=="before"&&(C=Ps(s,C,1))}else C=u<0?g.to:g.from;return new ie(a,C,y)}}return new ie(a,u<0?s.text.length:0,u<0?"before":"after")}function Wc(e,t,s,a){var u=Hr(t,e.doc.direction);if(!u)return $l(t,s,a);s.ch>=t.text.length?(s.ch=t.text.length,s.sticky="before"):s.ch<=0&&(s.ch=0,s.sticky="after");var h=Zt(u,s.ch,s.sticky),g=u[h];if(e.doc.direction=="ltr"&&g.level%2==0&&(a>0?g.to>s.ch:g.from<s.ch))return $l(t,s,a);var m=function(fe,we){return Ps(t,fe instanceof ie?fe.ch:fe,we)},y,C=function(fe){return e.options.lineWrapping?(y=y||Zn(e,t),Y(e,t,y,fe)):{begin:0,end:t.text.length}},_=C(s.sticky=="before"?m(s,-1):s.ch);if(e.doc.direction=="rtl"||g.level==1){var M=g.level==1==a<0,N=m(s,M?1:-1);if(N!=null&&(M?N<=g.to&&N<=_.end:N>=g.from&&N>=_.begin)){var R=M?"before":"after";return new ie(s.line,N,R)}}var Z=function(fe,we,de){for(var ze=function(Ot,ur){return ur?new ie(s.line,m(Ot,1),"before"):new ie(s.line,Ot,"after")};fe>=0&&fe<u.length;fe+=we){var Re=u[fe],Pe=we>0==(Re.level!=1),lt=Pe?de.begin:m(de.end,-1);if(Re.from<=lt&&lt<Re.to||(lt=Pe?Re.from:m(Re.to,-1),de.begin<=lt&&lt<de.end))return ze(lt,Pe)}},J=Z(h+a,a,_);if(J)return J;var le=a>0?_.end:m(_.begin,-1);return le!=null&&!(a>0&&le==t.text.length)&&(J=Z(a>0?0:u.length-1,a,C(le)),J)?J:null}var Go={selectAll:Pc,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),at)},killLine:function(e){return wn(e,function(t){if(t.empty()){var s=ke(e.doc,t.head.line).text.length;return t.head.ch==s&&t.head.line<e.lastLine()?{from:t.head,to:ie(t.head.line+1,0)}:{from:t.head,to:ie(t.head.line,s)}}else return{from:t.from(),to:t.to()}})},deleteLine:function(e){return wn(e,function(t){return{from:ie(t.from().line,0),to:me(e.doc,ie(t.to().line+1,0))}})},delLineLeft:function(e){return wn(e,function(t){return{from:ie(t.from().line,0),to:t.from()}})},delWrappedLineLeft:function(e){return wn(e,function(t){var s=e.charCoords(t.head,"div").top+5,a=e.coordsChar({left:0,top:s},"div");return{from:a,to:t.from()}})},delWrappedLineRight:function(e){return wn(e,function(t){var s=e.charCoords(t.head,"div").top+5,a=e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:s},"div");return{from:t.from(),to:a}})},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(ie(e.firstLine(),0))},goDocEnd:function(e){return e.extendSelection(ie(e.lastLine()))},goLineStart:function(e){return e.extendSelectionsBy(function(t){return e0(e,t.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(e){return e.extendSelectionsBy(function(t){return Hl(e,t.head)},{origin:"+move",bias:1})},goLineEnd:function(e){return e.extendSelectionsBy(function(t){return t0(e,t.head.line)},{origin:"+move",bias:-1})},goLineRight:function(e){return e.extendSelectionsBy(function(t){var s=e.cursorCoords(t.head,"div").top+5;return e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:s},"div")},We)},goLineLeft:function(e){return e.extendSelectionsBy(function(t){var s=e.cursorCoords(t.head,"div").top+5;return e.coordsChar({left:0,top:s},"div")},We)},goLineLeftSmart:function(e){return e.extendSelectionsBy(function(t){var s=e.cursorCoords(t.head,"div").top+5,a=e.coordsChar({left:0,top:s},"div");return a.ch<e.getLine(a.line).search(/\S/)?Hl(e,t.head):a},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=[],s=e.listSelections(),a=e.options.tabSize,u=0;u<s.length;u++){var h=s[u].from(),g=Ft(e.getLine(h.line),h.ch,a);t.push(lr(a-g%a))}e.replaceSelections(t)},defaultTab:function(e){e.somethingSelected()?e.indentSelection("add"):e.execCommand("insertTab")},transposeChars:function(e){return Ar(e,function(){for(var t=e.listSelections(),s=[],a=0;a<t.length;a++)if(!!t[a].empty()){var u=t[a].head,h=ke(e.doc,u.line).text;if(h){if(u.ch==h.length&&(u=new ie(u.line,u.ch-1)),u.ch>0)u=new ie(u.line,u.ch+1),e.replaceRange(h.charAt(u.ch-1)+h.charAt(u.ch-2),ie(u.line,u.ch-2),u,"+transpose");else if(u.line>e.doc.first){var g=ke(e.doc,u.line-1).text;g&&(u=new ie(u.line,1),e.replaceRange(h.charAt(0)+e.doc.lineSeparator()+g.charAt(g.length-1),ie(u.line-1,g.length-1),u,"+transpose"))}}s.push(new Lt(u,u))}e.setSelections(s)})},newlineAndIndent:function(e){return Ar(e,function(){for(var t=e.listSelections(),s=t.length-1;s>=0;s--)e.replaceRange(e.doc.lineSeparator(),t[s].anchor,t[s].head,"+input");t=e.listSelections();for(var a=0;a<t.length;a++)e.indentLine(t[a].from().line,null,!0);io(e)})},openLine:function(e){return e.replaceSelection(`
2219
+ `,"start")},toggleOverwrite:function(e){return e.toggleOverwrite()}};function e0(e,t){var s=ke(e.doc,t),a=oi(s);return a!=s&&(t=zt(a)),Ra(!0,e,a,t,1)}function t0(e,t){var s=ke(e.doc,t),a=df(s);return a!=s&&(t=zt(a)),Ra(!0,e,s,t,-1)}function Hl(e,t){var s=e0(e,t.line),a=ke(e.doc,s.line),u=Hr(a,e.doc.direction);if(!u||u[0].level==0){var h=Math.max(s.ch,a.text.search(/\S/)),g=t.line==s.line&&t.ch<=h&&t.ch;return ie(s.line,g?0:h,s.sticky)}return s}function qn(e,t,s){if(typeof t=="string"&&(t=Go[t],!t))return!1;e.display.input.ensurePolled();var a=e.display.shift,u=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),s&&(e.display.shift=!1),u=t(e)!=Ze}finally{e.display.shift=a,e.state.suppressEdits=!1}return u}function Wf(e,t,s){for(var a=0;a<e.state.keyMaps.length;a++){var u=Pi(t,e.state.keyMaps[a],s,e);if(u)return u}return e.options.extraKeys&&Pi(t,e.options.extraKeys,s,e)||Pi(t,e.options.keyMap,s,e)}var vo=new ut;function Na(e,t,s,a){var u=e.state.keySeq;if(u){if(Nl(t))return"handled";if(/\'$/.test(t)?e.state.keySeq=null:vo.set(50,function(){e.state.keySeq==u&&(e.state.keySeq=null,e.display.input.reset())}),r0(e,u+" "+t,s,a))return!0}return r0(e,t,s,a)}function r0(e,t,s,a){var u=Wf(e,t,a);return u=="multi"&&(e.state.keySeq=t),u=="handled"&&hr(e,"keyHandled",e,t,s),(u=="handled"||u=="multi")&&(xr(s),xa(e)),!!u}function Bl(e,t){var s=Ju(t,!0);return s?t.shiftKey&&!e.state.keySeq?Na(e,"Shift-"+s,t,function(a){return qn(e,a,!0)})||Na(e,s,t,function(a){if(typeof a=="string"?/^go[A-Z]/.test(a):a.motion)return qn(e,a)}):Na(e,s,t,function(a){return qn(e,a)}):!1}function Uf(e,t,s){return Na(e,"'"+s+"'",t,function(a){return qn(e,a,!0)})}var n0=null;function Uc(e){var t=this;if(!(e.target&&e.target!=t.display.input.getField())&&(t.curOp.focus=ot(),!ir(t,e))){S&&O<11&&e.keyCode==27&&(e.returnValue=!1);var s=e.keyCode;t.display.shift=s==16||e.shiftKey;var a=Bl(t,e);X&&(n0=a?s:null,!a&&s==88&&!tl&&(he?e.metaKey:e.ctrlKey)&&t.replaceSelection("",null,"cut")),f&&!he&&!a&&s==46&&e.shiftKey&&!e.ctrlKey&&document.execCommand&&document.execCommand("cut"),s==18&&!/\bCodeMirror-crosshair\b/.test(t.display.lineDiv.className)&&Yc(t)}}function Yc(e){var t=e.display.lineDiv;At(t,"CodeMirror-crosshair");function s(a){(a.keyCode==18||!a.altKey)&&(Ce(t,"CodeMirror-crosshair"),kr(document,"keyup",s),kr(document,"mouseover",s))}$e(document,"keyup",s),$e(document,"mouseover",s)}function i0(e){e.keyCode==16&&(this.doc.sel.shift=!1),ir(this,e)}function Zc(e){var t=this;if(!(e.target&&e.target!=t.display.input.getField())&&!(Si(t.display,e)||ir(t,e)||e.ctrlKey&&!e.altKey||he&&e.metaKey)){var s=e.keyCode,a=e.charCode;if(X&&s==n0){n0=null,xr(e);return}if(!(X&&(!e.which||e.which<10)&&Bl(t,e))){var u=String.fromCharCode(a==null?s:a);u!="\b"&&(Uf(t,e,u)||t.display.input.onKeyPress(e))}}}var Vc=400,Fl=function(e,t,s){this.time=e,this.pos=t,this.button=s};Fl.prototype.compare=function(e,t,s){return this.time+Vc>e&&w(t,this.pos)==0&&s==this.button};var _r,ln;function Yf(e,t){var s=+new Date;return ln&&ln.compare(s,e,t)?(_r=ln=null,"triple"):_r&&_r.compare(s,e,t)?(ln=new Fl(s,e,t),_r=null,"double"):(_r=new Fl(s,e,t),ln=null,"single")}function Gc(e){var t=this,s=t.display;if(!(ir(t,e)||s.activeTouch&&s.input.supportsTouch())){if(s.input.ensurePolled(),s.shift=e.shiftKey,Si(s,e)){I||(s.scroller.draggable=!1,setTimeout(function(){return s.scroller.draggable=!0},100));return}if(!o0(t,e)){var a=si(t,e),u=rs(e),h=a?Yf(a,u):"single";window.focus(),u==1&&t.state.selectingText&&t.state.selectingText(e),!(a&&Wl(t,u,a,h,e))&&(u==1?a?qc(t,a,h,e):Zi(e)==s.scroller&&xr(e):u==2?(a&&kl(t.doc,a),setTimeout(function(){return s.input.focus()},20)):u==3&&(nt?t.display.input.onContextMenu(e):Cl(t)))}}}function Wl(e,t,s,a,u){var h="Click";return a=="double"?h="Double"+h:a=="triple"&&(h="Triple"+h),h=(t==1?"Left":t==2?"Middle":"Right")+h,Na(e,Qu(h,u),u,function(g){if(typeof g=="string"&&(g=Go[g]),!g)return!1;var m=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),m=g(e,s)!=Ze}finally{e.state.suppressEdits=!1}return m})}function $a(e,t,s){var a=e.getOption("configureMouse"),u=a?a(e,t,s):{};if(u.unit==null){var h=Te?s.shiftKey&&s.metaKey:s.altKey;u.unit=h?"rectangle":t=="single"?"char":t=="double"?"word":"line"}return(u.extend==null||e.doc.extend)&&(u.extend=e.doc.extend||s.shiftKey),u.addNew==null&&(u.addNew=he?s.metaKey:s.ctrlKey),u.moveOnDrag==null&&(u.moveOnDrag=!(he?s.altKey:s.ctrlKey)),u}function qc(e,t,s,a){S?setTimeout(dn(Iu,e),0):e.curOp.focus=ot();var u=$a(e,s,a),h=e.doc.sel,g;e.options.dragDrop&&ns&&!e.isReadOnly()&&s=="single"&&(g=h.contains(t))>-1&&(w((g=h.ranges[g]).from(),t)<0||t.xRel>0)&&(w(g.to(),t)>0||t.xRel<0)?jc(e,a,t,u):Xc(e,a,t,u)}function jc(e,t,s,a){var u=e.display,h=!1,g=Kt(e,function(C){I&&(u.scroller.draggable=!1),e.state.draggingText=!1,e.state.delayingBlurEvent&&(e.hasFocus()?e.state.delayingBlurEvent=!1:Cl(e)),kr(u.wrapper.ownerDocument,"mouseup",g),kr(u.wrapper.ownerDocument,"mousemove",m),kr(u.scroller,"dragstart",y),kr(u.scroller,"drop",g),h||(xr(C),a.addNew||kl(e.doc,s,null,null,a.extend),I&&!ce||S&&O==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};I&&(u.scroller.draggable=!0),e.state.draggingText=g,g.copy=!a.moveOnDrag,$e(u.wrapper.ownerDocument,"mouseup",g),$e(u.wrapper.ownerDocument,"mousemove",m),$e(u.scroller,"dragstart",y),$e(u.scroller,"drop",g),e.state.delayingBlurEvent=!0,setTimeout(function(){return u.input.focus()},20),u.scroller.dragDrop&&u.scroller.dragDrop()}function Kc(e,t,s){if(s=="char")return new Lt(t,t);if(s=="word")return e.findWordAt(t);if(s=="line")return new Lt(ie(t.line,0),me(e.doc,ie(t.line+1,0)));var a=s(e,t);return new Lt(a.from,a.to)}function Xc(e,t,s,a){S&&Cl(e);var u=e.display,h=e.doc;xr(t);var g,m,y=h.sel,C=y.ranges;if(a.addNew&&!a.extend?(m=h.sel.contains(s),m>-1?g=C[m]:g=new Lt(s,s)):(g=h.sel.primary(),m=h.sel.primIndex),a.unit=="rectangle")a.addNew||(g=new Lt(s,s)),s=si(e,t,!0,!0),m=-1;else{var _=Kc(e,s,a.unit);a.extend?g=Ml(g,_.anchor,_.head,a.extend):g=_}a.addNew?m==-1?(m=C.length,zr(h,Ir(e,C.concat([g]),m),{scroll:!1,origin:"*mouse"})):C.length>1&&C[m].empty()&&a.unit=="char"&&!a.extend?(zr(h,Ir(e,C.slice(0,m).concat(C.slice(m+1)),0),{scroll:!1,origin:"*mouse"}),y=h.sel):Vu(h,m,g,st):(m=0,zr(h,new mn([g],0),st),y=h.sel);var M=s;function N(de){if(w(M,de)!=0)if(M=de,a.unit=="rectangle"){for(var ze=[],Re=e.options.tabSize,Pe=Ft(ke(h,s.line).text,s.ch,Re),lt=Ft(ke(h,de.line).text,de.ch,Re),Ot=Math.min(Pe,lt),ur=Math.max(Pe,lt),Rt=Math.min(s.line,de.line),Ur=Math.min(e.lastLine(),Math.max(s.line,de.line));Rt<=Ur;Rt++){var Yr=ke(h,Rt).text,rr=Vt(Yr,Ot,Re);Ot==ur?ze.push(new Lt(ie(Rt,rr),ie(Rt,rr))):Yr.length>rr&&ze.push(new Lt(ie(Rt,rr),ie(Rt,Vt(Yr,ur,Re))))}ze.length||ze.push(new Lt(s,s)),zr(h,Ir(e,y.ranges.slice(0,m).concat(ze),m),{origin:"*mouse",scroll:!1}),e.scrollIntoView(de)}else{var Sr=g,gr=Kc(e,de,a.unit),It=Sr.anchor,Ht;w(gr.anchor,It)>0?(Ht=gr.head,It=qe(Sr.from(),gr.anchor)):(Ht=gr.anchor,It=ae(Sr.to(),gr.head));var Xt=y.ranges.slice(0);Xt[m]=Ha(e,new Lt(me(h,It),Ht)),zr(h,Ir(e,Xt,m),st)}}var R=u.wrapper.getBoundingClientRect(),Z=0;function J(de){var ze=++Z,Re=si(e,de,!0,a.unit=="rectangle");if(!!Re)if(w(Re,M)!=0){e.curOp.focus=ot(),N(Re);var Pe=Bo(u,h);(Re.line>=Pe.to||Re.line<Pe.from)&&setTimeout(Kt(e,function(){Z==ze&&J(de)}),150)}else{var lt=de.clientY<R.top?-20:de.clientY>R.bottom?20:0;lt&&setTimeout(Kt(e,function(){Z==ze&&(u.scroller.scrollTop+=lt,J(de))}),50)}}function le(de){e.state.selectingText=!1,Z=1/0,de&&(xr(de),u.input.focus()),kr(u.wrapper.ownerDocument,"mousemove",fe),kr(u.wrapper.ownerDocument,"mouseup",we),h.history.lastSelOrigin=null}var fe=Kt(e,function(de){de.buttons===0||!rs(de)?le(de):J(de)}),we=Kt(e,le);e.state.selectingText=we,$e(u.wrapper.ownerDocument,"mousemove",fe),$e(u.wrapper.ownerDocument,"mouseup",we)}function Ha(e,t){var s=t.anchor,a=t.head,u=ke(e.doc,s.line);if(w(s,a)==0&&s.sticky==a.sticky)return t;var h=Hr(u);if(!h)return t;var g=Zt(h,s.ch,s.sticky),m=h[g];if(m.from!=s.ch&&m.to!=s.ch)return t;var y=g+(m.from==s.ch==(m.level!=1)?0:1);if(y==0||y==h.length)return t;var C;if(a.line!=s.line)C=(a.line-s.line)*(e.doc.direction=="ltr"?1:-1)>0;else{var _=Zt(h,a.ch,a.sticky),M=_-g||(a.ch-s.ch)*(m.level==1?-1:1);_==y-1||_==y?C=M<0:C=M>0}var N=h[y+(C?-1:0)],R=C==(N.level==1),Z=R?N.from:N.to,J=R?"after":"before";return s.ch==Z&&s.sticky==J?t:new Lt(new ie(s.line,Z,J),a)}function Ba(e,t,s,a){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;a&&xr(t);var g=e.display,m=g.lineDiv.getBoundingClientRect();if(h>m.bottom||!wr(e,s))return hn(t);h-=m.top-g.viewOffset;for(var y=0;y<e.display.gutterSpecs.length;++y){var C=g.gutters.childNodes[y];if(C&&C.getBoundingClientRect().right>=u){var _=Un(e.doc,h),M=e.display.gutterSpecs[y];return Ge(e,s,e,_,M.className,t),hn(t)}}}function o0(e,t){return Ba(e,t,"gutterClick",!0)}function a0(e,t){Si(e.display,t)||Qc(e,t)||ir(e,t,"contextmenu")||nt||e.display.input.onContextMenu(t)}function Qc(e,t){return wr(e,"gutterContextMenu")?Ba(e,t,"gutterContextMenu",!1):!1}function As(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),gs(e)}var qo={toString:function(){return"CodeMirror.Init"}},Es={},Fa={};function Ul(e){var t=e.optionHandlers;function s(a,u,h,g){e.defaults[a]=u,h&&(t[a]=g?function(m,y,C){C!=qo&&h(m,y,C)}:h)}e.defineOption=s,e.Init=qo,s("value","",function(a,u){return a.setValue(u)},!0),s("mode",null,function(a,u){a.doc.modeOption=u,Fu(a)},!0),s("indentUnit",2,Fu,!0),s("indentWithTabs",!1),s("smartIndent",!0),s("tabSize",4,function(a){zs(a),gs(a),rt(a)},!0),s("lineSeparator",null,function(a,u){if(a.doc.lineSep=u,!!u){var h=[],g=a.doc.first;a.doc.iter(function(y){for(var C=0;;){var _=y.text.indexOf(u,C);if(_==-1)break;C=_+u.length,h.push(ie(g,_))}g++});for(var m=h.length-1;m>=0;m--)Aa(a.doc,u,h[m],ie(h[m].line,h[m].ch+u.length))}}),s("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(a,u,h){a.state.specialChars=new RegExp(u.source+(u.test(" ")?"":"| "),"g"),h!=qo&&a.refresh()}),s("specialCharPlaceholder",bn,function(a){return a.refresh()},!0),s("electricChars",!0),s("inputStyle",pe?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),s("spellcheck",!1,function(a,u){return a.getInputField().spellcheck=u},!0),s("autocorrect",!1,function(a,u){return a.getInputField().autocorrect=u},!0),s("autocapitalize",!1,function(a,u){return a.getInputField().autocapitalize=u},!0),s("rtlMoveVisually",!He),s("wholeLineUpdateBefore",!0),s("theme","default",function(a){As(a),xs(a)},!0),s("keyMap","default",function(a,u,h){var g=Fr(u),m=h!=qo&&Fr(h);m&&m.detach&&m.detach(a,g),g.attach&&g.attach(a,m||null)}),s("extraKeys",null),s("configureMouse",null),s("lineWrapping",!1,Jc,!0),s("gutters",[],function(a,u){a.display.gutterSpecs=Hu(u,a.options.lineNumbers),xs(a)},!0),s("fixedGutter",!0,function(a,u){a.display.gutters.style.left=u?wa(a.display)+"px":"0",a.refresh()},!0),s("coverGutterNextToScrollbar",!1,function(a){return ao(a)},!0),s("scrollbarStyle","native",function(a){Wo(a),ao(a),a.display.scrollbars.setScrollTop(a.doc.scrollTop),a.display.scrollbars.setScrollLeft(a.doc.scrollLeft)},!0),s("lineNumbers",!1,function(a,u){a.display.gutterSpecs=Hu(a.options.gutters,u),xs(a)},!0),s("firstLineNumber",1,xs,!0),s("lineNumberFormatter",function(a){return a},xs,!0),s("showCursorWhenSelecting",!1,vs,!0),s("resetSelectionOnContextMenu",!0),s("lineWiseCopyCut",!0),s("pasteLinesPerSelection",!0),s("selectionsMayTouch",!1),s("readOnly",!1,function(a,u){u=="nocursor"&&(Ho(a),a.display.input.blur()),a.display.input.readOnlyChanged(u)}),s("screenReaderLabel",null,function(a,u){u=u===""?null:u,a.display.input.screenReaderLabelChanged(u)}),s("disableInput",!1,function(a,u){u||a.display.input.reset()},!0),s("dragDrop",!0,Zf),s("allowDropFileTypes",null),s("cursorBlinkRate",530),s("cursorScrollMargin",0),s("cursorHeight",1,vs,!0),s("singleCursorHeightPerLine",!0,vs,!0),s("workTime",100),s("workDelay",100),s("flattenSpans",!0,zs,!0),s("addModeClass",!1,zs,!0),s("pollInterval",100),s("undoDepth",200,function(a,u){return a.doc.history.undoDepth=u}),s("historyEventDelay",1250),s("viewportMargin",10,function(a){return a.refresh()},!0),s("maxHighlightLength",1e4,zs,!0),s("moveInputWithCursor",!0,function(a,u){u||a.display.input.resetPosition()}),s("tabindex",null,function(a,u){return a.display.input.getField().tabIndex=u||""}),s("autofocus",null),s("direction","ltr",function(a,u){return a.doc.setDirection(u)},!0),s("phrases",null)}function Zf(e,t,s){var a=s&&s!=qo;if(!t!=!a){var u=e.display.dragFunctions,h=t?$e:kr;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 Jc(e){e.options.lineWrapping?(At(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(Ce(e.display.wrapper,"CodeMirror-wrap"),ds(e)),eo(e),rt(e),gs(e),setTimeout(function(){return ao(e)},100)}function Dt(e,t){var s=this;if(!(this instanceof Dt))return new Dt(e,t);this.options=t=t?er(t):{},er(Es,t,!1);var a=t.value;typeof a=="string"?a=new Br(a,t.mode,null,t.lineSeparator,t.direction):t.mode&&(a.modeOption=t.mode),this.doc=a;var u=new Dt.inputStyles[t.inputStyle](this),h=this.display=new Ef(e,a,u,t);h.wrapper.CodeMirror=this,As(this),t.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Wo(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 ut,keySeq:null,specialChars:null},t.autofocus&&!pe&&h.input.focus(),S&&O<11&&setTimeout(function(){return s.display.input.reset(!0)},20),e1(this),Xu(),Gn(this),this.curOp.forceUpdate=!0,Mc(this,a),t.autofocus&&!pe||this.hasFocus()?setTimeout(function(){s.hasFocus()&&!s.state.focused&&za(s)},20):Ho(this);for(var g in Fa)Fa.hasOwnProperty(g)&&Fa[g](this,t[g],qo);fi(this),t.finishInit&&t.finishInit(this);for(var m=0;m<Is.length;++m)Is[m](this);ui(this),I&&t.lineWrapping&&getComputedStyle(h.lineDiv).textRendering=="optimizelegibility"&&(h.lineDiv.style.textRendering="auto")}Dt.defaults=Es,Dt.optionHandlers=Fa;function e1(e){var t=e.display;$e(t.scroller,"mousedown",Kt(e,Gc)),S&&O<11?$e(t.scroller,"dblclick",Kt(e,function(y){if(!ir(e,y)){var C=si(e,y);if(!(!C||o0(e,y)||Si(e.display,y))){xr(y);var _=e.findWordAt(C);kl(e.doc,_.anchor,_.head)}}})):$e(t.scroller,"dblclick",function(y){return ir(e,y)||xr(y)}),$e(t.scroller,"contextmenu",function(y){return a0(e,y)}),$e(t.input.getField(),"contextmenu",function(y){t.scroller.contains(y.target)||a0(e,y)});var s,a={end:0};function u(){t.activeTouch&&(s=setTimeout(function(){return t.activeTouch=null},1e3),a=t.activeTouch,a.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 g(y,C){if(C.left==null)return!0;var _=C.left-y.left,M=C.top-y.top;return _*_+M*M>20*20}$e(t.scroller,"touchstart",function(y){if(!ir(e,y)&&!h(y)&&!o0(e,y)){t.input.ensurePolled(),clearTimeout(s);var C=+new Date;t.activeTouch={start:C,moved:!1,prev:C-a.end<=300?a:null},y.touches.length==1&&(t.activeTouch.left=y.touches[0].pageX,t.activeTouch.top=y.touches[0].pageY)}}),$e(t.scroller,"touchmove",function(){t.activeTouch&&(t.activeTouch.moved=!0)}),$e(t.scroller,"touchend",function(y){var C=t.activeTouch;if(C&&!Si(t,y)&&C.left!=null&&!C.moved&&new Date-C.start<300){var _=e.coordsChar(t.activeTouch,"page"),M;!C.prev||g(C,C.prev)?M=new Lt(_,_):!C.prev.prev||g(C,C.prev.prev)?M=e.findWordAt(_):M=new Lt(ie(_.line,0),me(e.doc,ie(_.line+1,0))),e.setSelection(M.anchor,M.head),e.focus(),xr(y)}u()}),$e(t.scroller,"touchcancel",u),$e(t.scroller,"scroll",function(){t.scroller.clientHeight&&(jt(e,t.scroller.scrollTop),Fo(e,t.scroller.scrollLeft,!0),Ge(e,"scroll",e))}),$e(t.scroller,"mousewheel",function(y){return _c(e,y)}),$e(t.scroller,"DOMMouseScroll",function(y){return _c(e,y)}),$e(t.wrapper,"scroll",function(){return t.wrapper.scrollTop=t.wrapper.scrollLeft=0}),t.dragFunctions={enter:function(y){ir(e,y)||ko(y)},over:function(y){ir(e,y)||(ju(e,y),ko(y))},start:function(y){return Hf(e,y)},drop:Kt(e,Bc),leave:function(y){ir(e,y)||Ku(e)}};var m=t.input.getField();$e(m,"keyup",function(y){return i0.call(e,y)}),$e(m,"keydown",Kt(e,Uc)),$e(m,"keypress",Kt(e,Zc)),$e(m,"focus",function(y){return za(e,y)}),$e(m,"blur",function(y){return Ho(e,y)})}var Is=[];Dt.defineInitHook=function(e){return Is.push(e)};function Ds(e,t,s,a){var u=e.doc,h;s==null&&(s="add"),s=="smart"&&(u.mode.indent?h=ba(e,t).state:s="prev");var g=e.options.tabSize,m=ke(u,t),y=Ft(m.text,null,g);m.stateAfter&&(m.stateAfter=null);var C=m.text.match(/^\s*/)[0],_;if(!a&&!/\S/.test(m.text))_=0,s="not";else if(s=="smart"&&(_=u.mode.indent(h,m.text.slice(C.length),m.text),_==Ze||_>150)){if(!a)return;s="prev"}s=="prev"?t>u.first?_=Ft(ke(u,t-1).text,null,g):_=0:s=="add"?_=y+e.options.indentUnit:s=="subtract"?_=y-e.options.indentUnit:typeof s=="number"&&(_=y+s),_=Math.max(0,_);var M="",N=0;if(e.options.indentWithTabs)for(var R=Math.floor(_/g);R;--R)N+=g,M+=" ";if(N<_&&(M+=lr(_-N)),M!=C)return Aa(u,M,ie(t,0),ie(t,C.length),"+input"),m.stateAfter=null,!0;for(var Z=0;Z<u.sel.ranges.length;Z++){var J=u.sel.ranges[Z];if(J.head.line==t&&J.head.ch<C.length){var le=ie(t,C.length);Vu(u,Z,new Lt(le,le));break}}}var On=null;function Tn(e){On=e}function Yl(e,t,s,a,u){var h=e.doc;e.display.shift=!1,a||(a=h.sel);var g=+new Date-200,m=u=="paste"||e.state.pasteIncoming>g,y=To(t),C=null;if(m&&a.ranges.length>1)if(On&&On.text.join(`
2220
+ `)==t){if(a.ranges.length%On.text.length==0){C=[];for(var _=0;_<On.text.length;_++)C.push(h.splitLines(On.text[_]))}}else y.length==a.ranges.length&&e.options.pasteLinesPerSelection&&(C=yt(y,function(fe){return[fe]}));for(var M=e.curOp.updateInput,N=a.ranges.length-1;N>=0;N--){var R=a.ranges[N],Z=R.from(),J=R.to();R.empty()&&(s&&s>0?Z=ie(Z.line,Z.ch-s):e.state.overwrite&&!m?J=ie(J.line,Math.min(ke(h,J.line).text.length,J.ch+Xe(y).length)):m&&On&&On.lineWise&&On.text.join(`
2213
2221
  `)==y.join(`
2214
- `)&&(Z=J=ie(Z.line,0)));var le={from:Z,to:J,text:C?C[N%C.length]:y,origin:u||(m?"paste":e.state.cutIncoming>g?"cut":"+input")};Oa(e.doc,le),hr(e,"inputRead",e,le)}t&&!m&&t1(e,t),io(e),e.curOp.updateInput<2&&(e.curOp.updateInput=k),e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=-1}function s0(e,t){var s=e.clipboardData&&e.clipboardData.getData("Text");if(s)return e.preventDefault(),!t.isReadOnly()&&!t.options.disableInput&&Ar(t,function(){return Yl(t,s,0,null,"paste")}),!0}function t1(e,t){if(!(!e.options.electricChars||!e.options.smartIndent))for(var s=e.doc.sel,a=s.ranges.length-1;a>=0;a--){var u=s.ranges[a];if(!(u.head.ch>100||a&&s.ranges[a-1].head.line==u.head.line)){var h=e.getModeAt(u.head),g=!1;if(h.electricChars){for(var m=0;m<h.electricChars.length;m++)if(t.indexOf(h.electricChars.charAt(m))>-1){g=Ds(e,u.head.line,"smart");break}}else h.electricInput&&h.electricInput.test(Me(e.doc,u.head.line).text.slice(0,u.head.ch))&&(g=Ds(e,u.head.line,"smart"));g&&hr(e,"electricInput",e,u.head.line)}}}function l0(e){for(var t=[],s=[],a=0;a<e.doc.sel.ranges.length;a++){var u=e.doc.sel.ranges[a].head.line,h={anchor:ie(u,0),head:ie(u+1,0)};s.push(h),t.push(e.getRange(h.anchor,h.head))}return{text:t,ranges:s}}function r1(e,t,s,a){e.setAttribute("autocorrect",s?"":"off"),e.setAttribute("autocapitalize",a?"":"off"),e.setAttribute("spellcheck",!!t)}function n1(){var e=E("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),t=E("div",[e],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return I?e.style.width="1000px":e.setAttribute("wrap","off"),Ae&&(e.style.border="1px solid black"),r1(e),t}function Ai(e){var t=e.optionHandlers,s=e.helpers={};e.prototype={constructor:e,focus:function(){window.focus(),this.display.input.focus()},setOption:function(a,u){var h=this.options,g=h[a];h[a]==u&&a!="mode"||(h[a]=u,t.hasOwnProperty(a)&&Kt(this,t[a])(this,u,g),Ge(this,"optionChange",this,a))},getOption:function(a){return this.options[a]},getDoc:function(){return this.doc},addKeyMap:function(a,u){this.state.keyMaps[u?"push":"unshift"](Fr(a))},removeKeyMap:function(a){for(var u=this.state.keyMaps,h=0;h<u.length;++h)if(u[h]==a||u[h].name==a)return u.splice(h,1),!0},addOverlay:Er(function(a,u){var h=a.token?a:e.getMode(this.options,a);if(h.startState)throw new Error("Overlays may not be stateful.");Mt(this.state.overlays,{mode:h,modeSpec:a,opaque:u&&u.opaque,priority:u&&u.priority||0},function(g){return g.priority}),this.state.modeGen++,rt(this)}),removeOverlay:Er(function(a){for(var u=this.state.overlays,h=0;h<u.length;++h){var g=u[h].modeSpec;if(g==a||typeof a=="string"&&g.name==a){u.splice(h,1),this.state.modeGen++,rt(this);return}}}),indentLine:Er(function(a,u,h){typeof u!="string"&&typeof u!="number"&&(u==null?u=this.options.smartIndent?"smart":"prev":u=u?"add":"subtract"),Gi(this.doc,a)&&Ds(this,a,u,h)}),indentSelection:Er(function(a){for(var u=this.doc.sel.ranges,h=-1,g=0;g<u.length;g++){var m=u[g];if(m.empty())m.head.line>h&&(Ds(this,m.head.line,a,!0),h=m.head.line,g==this.doc.sel.primIndex&&io(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 k=_;k<h;++k)Ds(this,k,a);var N=this.doc.sel.ranges;y.ch==0&&u.length==N.length&&N[g].from().ch>0&&Vu(this.doc,g,new Lt(y,N[g].to()),at)}}}),getTokenAt:function(a,u){return ol(this,a,u)},getLineTokens:function(a,u){return ol(this,ie(a),u,!0)},getTokenTypeAt:function(a){a=me(this.doc,a);var u=mu(this,Me(this.doc,a.line)),h=0,g=(u.length-1)/2,m=a.ch,y;if(m==0)y=u[2];else for(;;){var C=h+g>>1;if((C?u[C*2-1]:0)>=m)g=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(a){var u=this.doc.mode;return u.innerMode?e.innerMode(u,this.getTokenAt(a).state).mode:u},getHelper:function(a,u){return this.getHelpers(a,u)[0]},getHelpers:function(a,u){var h=[];if(!s.hasOwnProperty(u))return h;var g=s[u],m=this.getModeAt(a);if(typeof m[u]=="string")g[m[u]]&&h.push(g[m[u]]);else if(m[u])for(var y=0;y<m[u].length;y++){var C=g[m[u][y]];C&&h.push(C)}else m.helperType&&g[m.helperType]?h.push(g[m.helperType]):g[m.name]&&h.push(g[m.name]);for(var _=0;_<g._global.length;_++){var k=g._global[_];k.pred(m,this)&&_e(h,k.val)==-1&&h.push(k.val)}return h},getStateAfter:function(a,u){var h=this.doc;return a=vt(h,a==null?h.first+h.size-1:a),ba(this,a+1,u).state},cursorCoords:function(a,u){var h,g=this.doc.sel.primary();return a==null?h=g.head:typeof a=="object"?h=me(this.doc,a):h=a?g.from():g.to(),Vn(this,h,u||"page")},charCoords:function(a,u){return yl(this,me(this.doc,a),u||"page")},coordsChar:function(a,u){return a=gc(this,a,u||"page"),$(this,a.left,a.top)},lineAtHeight:function(a,u){return a=gc(this,{top:a,left:0},u||"page").top,Un(this.doc,a+this.display.viewOffset)},heightAtLine:function(a,u,h){var g=!1,m;if(typeof a=="number"){var y=this.doc.first+this.doc.size-1;a<this.doc.first?a=this.doc.first:a>y&&(a=y,g=!0),m=Me(this.doc,a)}else m=a;return ml(this,m,{top:0,left:0},u||"page",h||g).top+(g?this.doc.height-Xr(m):0)},defaultTextHeight:function(){return Ji(this.display)},defaultCharWidth:function(){return Ca(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(a,u,h,g,m){var y=this.display;a=Vn(this,me(this.doc,a));var C=a.bottom,_=a.left;if(u.style.position="absolute",u.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(u),y.sizer.appendChild(u),g=="over")C=a.top;else if(g=="above"||g=="near"){var k=Math.max(y.wrapper.clientHeight,this.doc.height),N=Math.max(y.sizer.clientWidth,y.lineSpace.clientWidth);(g=="above"||a.bottom+u.offsetHeight>k)&&a.top>u.offsetHeight?C=a.top-u.offsetHeight:a.bottom+u.offsetHeight<=k&&(C=a.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&&zf(this,{left:_,top:C,right:_+u.offsetWidth,bottom:C+u.offsetHeight})},triggerOnKeyDown:Er(Uc),triggerOnKeyPress:Er(Zc),triggerOnKeyUp:i0,triggerOnMouseDown:Er(Gc),execCommand:function(a){if(Go.hasOwnProperty(a))return Go[a].call(null,this)},triggerElectric:Er(function(a){t1(this,a)}),findPosH:function(a,u,h,g){var m=1;u<0&&(m=-1,u=-u);for(var y=me(this.doc,a),C=0;C<u&&(y=Rs(this.doc,y,m,h,g),!y.hitSide);++C);return y},moveH:Er(function(a,u){var h=this;this.extendSelectionsBy(function(g){return h.display.shift||h.doc.extend||g.empty()?Rs(h.doc,g.head,a,u,h.options.rtlMoveVisually):a<0?g.from():g.to()},We)}),deleteH:Er(function(a,u){var h=this.doc.sel,g=this.doc;h.somethingSelected()?g.replaceSelection("",null,"+delete"):wn(this,function(m){var y=Rs(g,m.head,a,u,!1);return a<0?{from:y,to:m.head}:{from:m.head,to:y}})}),findPosV:function(a,u,h,g){var m=1,y=g;u<0&&(m=-1,u=-u);for(var C=me(this.doc,a),_=0;_<u;++_){var k=Vn(this,C,"div");if(y==null?y=k.left:k.left=y,C=Zl(this,k,m,h),C.hitSide)break}return C},moveV:Er(function(a,u){var h=this,g=this.doc,m=[],y=!this.display.shift&&!g.extend&&g.sel.somethingSelected();if(g.extendSelectionsBy(function(_){if(y)return a<0?_.from():_.to();var k=Vn(h,_.head,"div");_.goalColumn!=null&&(k.left=_.goalColumn),m.push(k.left);var N=Zl(h,k,a,u);return u=="page"&&_==g.sel.primary()&&_a(h,yl(h,N,"div").top-k.top),N},We),m.length)for(var C=0;C<g.sel.ranges.length;C++)g.sel.ranges[C].goalColumn=m[C]}),findWordAt:function(a){var u=this.doc,h=Me(u,a.line).text,g=a.ch,m=a.ch;if(h){var y=this.getHelper(a,"wordChars");(a.sticky=="before"||m==h.length)&&g?--g:++m;for(var C=h.charAt(g),_=B(C,y)?function(k){return B(k,y)}:/\s/.test(C)?function(k){return/\s/.test(k)}:function(k){return!/\s/.test(k)&&!B(k)};g>0&&_(h.charAt(g-1));)--g;for(;m<h.length&&_(h.charAt(m));)++m}return new Lt(ie(a.line,g),ie(a.line,m))},toggleOverwrite:function(a){a!=null&&a==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?At(this.display.cursorDiv,"CodeMirror-overwrite"):Ce(this.display.cursorDiv,"CodeMirror-overwrite"),Ge(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==ot()},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:Er(function(a,u){ms(this,a,u)}),getScrollInfo:function(){var a=this.display.scroller;return{left:a.scrollLeft,top:a.scrollTop,height:a.scrollHeight-an(this)-this.display.barHeight,width:a.scrollWidth-an(this)-this.display.barWidth,clientHeight:pl(this),clientWidth:Ki(this)}},scrollIntoView:Er(function(a,u){a==null?(a={from:this.doc.sel.primary().head,to:null},u==null&&(u=this.options.cursorScrollMargin)):typeof a=="number"?a={from:ie(a,0),to:null}:a.from==null&&(a={from:a,to:null}),a.to||(a.to=a.from),a.margin=u||0,a.from.line!=null?Cc(this,a):wc(this,a.from,a.to,a.margin)}),setSize:Er(function(a,u){var h=this,g=function(y){return typeof y=="number"||/^\d+$/.test(String(y))?y+"px":y};a!=null&&(this.display.wrapper.style.width=g(a)),u!=null&&(this.display.wrapper.style.height=g(u)),this.options.lineWrapping&&pc(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){to(h,m,"widget");break}}++m}),this.curOp.forceUpdate=!0,Ge(this,"refresh",this)}),operation:function(a){return Ar(this,a)},startOperation:function(){return Gn(this)},endOperation:function(){return ui(this)},refresh:Er(function(){var a=this.display.cachedTextHeight;rt(this),this.curOp.forceUpdate=!0,gs(this),ms(this,this.doc.scrollLeft,this.doc.scrollTop),Nu(this.display),(a==null||Math.abs(a-Ji(this.display))>.5||this.options.lineWrapping)&&eo(this),Ge(this,"refresh",this)}),swapDoc:Er(function(a){var u=this.doc;return u.cm=null,this.state.selectingText&&this.state.selectingText(),kc(this,a),gs(this),this.display.input.reset(),ms(this,a.scrollLeft,a.scrollTop),this.curOp.forceScroll=!0,hr(this,"swapDoc",this,u),u}),phrase:function(a){var u=this.options.phrases;return u&&Object.prototype.hasOwnProperty.call(u,a)?u[a]:a},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},Bn(e),e.registerHelper=function(a,u,h){s.hasOwnProperty(a)||(s[a]=e[a]={_global:[]}),s[a][u]=h},e.registerGlobalHelper=function(a,u,h,g){e.registerHelper(a,u,g),s[a]._global.push({pred:h,val:g})}}function Rs(e,t,s,a,u){var h=t,g=s,m=Me(e,t.line),y=u&&e.direction=="rtl"?-s:s;function C(){var we=t.line+y;return we<e.first||we>=e.first+e.size?!1:(t=new ie(we,t.ch,t.sticky),m=Me(e,we))}function _(we){var de;if(a=="codepoint"){var ze=m.text.charCodeAt(t.ch+(s>0?0:-1));if(isNaN(ze))de=null;else{var Re=s>0?ze>=55296&&ze<56320:ze>=56320&&ze<57343;de=new ie(t.line,Math.max(0,Math.min(m.text.length,t.ch+s*(Re?2:1))),-s)}}else u?de=Wc(e.cm,m,t,s):de=$l(m,t,s);if(de==null)if(!we&&C())t=Ra(u,e.cm,m,t.line,y);else return!1;else t=de;return!0}if(a=="char"||a=="codepoint")_();else if(a=="column")_(!0);else if(a=="word"||a=="group")for(var k=null,N=a=="group",R=e.cm&&e.cm.getHelper(t,"wordChars"),Z=!0;!(s<0&&!_(!Z));Z=!1){var J=m.text.charAt(t.ch)||`
2222
+ `)&&(Z=J=ie(Z.line,0)));var le={from:Z,to:J,text:C?C[N%C.length]:y,origin:u||(m?"paste":e.state.cutIncoming>g?"cut":"+input")};Oa(e.doc,le),hr(e,"inputRead",e,le)}t&&!m&&t1(e,t),io(e),e.curOp.updateInput<2&&(e.curOp.updateInput=M),e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=-1}function s0(e,t){var s=e.clipboardData&&e.clipboardData.getData("Text");if(s)return e.preventDefault(),!t.isReadOnly()&&!t.options.disableInput&&Ar(t,function(){return Yl(t,s,0,null,"paste")}),!0}function t1(e,t){if(!(!e.options.electricChars||!e.options.smartIndent))for(var s=e.doc.sel,a=s.ranges.length-1;a>=0;a--){var u=s.ranges[a];if(!(u.head.ch>100||a&&s.ranges[a-1].head.line==u.head.line)){var h=e.getModeAt(u.head),g=!1;if(h.electricChars){for(var m=0;m<h.electricChars.length;m++)if(t.indexOf(h.electricChars.charAt(m))>-1){g=Ds(e,u.head.line,"smart");break}}else h.electricInput&&h.electricInput.test(ke(e.doc,u.head.line).text.slice(0,u.head.ch))&&(g=Ds(e,u.head.line,"smart"));g&&hr(e,"electricInput",e,u.head.line)}}}function l0(e){for(var t=[],s=[],a=0;a<e.doc.sel.ranges.length;a++){var u=e.doc.sel.ranges[a].head.line,h={anchor:ie(u,0),head:ie(u+1,0)};s.push(h),t.push(e.getRange(h.anchor,h.head))}return{text:t,ranges:s}}function r1(e,t,s,a){e.setAttribute("autocorrect",s?"":"off"),e.setAttribute("autocapitalize",a?"":"off"),e.setAttribute("spellcheck",!!t)}function n1(){var e=E("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),t=E("div",[e],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return I?e.style.width="1000px":e.setAttribute("wrap","off"),Ae&&(e.style.border="1px solid black"),r1(e),t}function Ai(e){var t=e.optionHandlers,s=e.helpers={};e.prototype={constructor:e,focus:function(){window.focus(),this.display.input.focus()},setOption:function(a,u){var h=this.options,g=h[a];h[a]==u&&a!="mode"||(h[a]=u,t.hasOwnProperty(a)&&Kt(this,t[a])(this,u,g),Ge(this,"optionChange",this,a))},getOption:function(a){return this.options[a]},getDoc:function(){return this.doc},addKeyMap:function(a,u){this.state.keyMaps[u?"push":"unshift"](Fr(a))},removeKeyMap:function(a){for(var u=this.state.keyMaps,h=0;h<u.length;++h)if(u[h]==a||u[h].name==a)return u.splice(h,1),!0},addOverlay:Er(function(a,u){var h=a.token?a:e.getMode(this.options,a);if(h.startState)throw new Error("Overlays may not be stateful.");kt(this.state.overlays,{mode:h,modeSpec:a,opaque:u&&u.opaque,priority:u&&u.priority||0},function(g){return g.priority}),this.state.modeGen++,rt(this)}),removeOverlay:Er(function(a){for(var u=this.state.overlays,h=0;h<u.length;++h){var g=u[h].modeSpec;if(g==a||typeof a=="string"&&g.name==a){u.splice(h,1),this.state.modeGen++,rt(this);return}}}),indentLine:Er(function(a,u,h){typeof u!="string"&&typeof u!="number"&&(u==null?u=this.options.smartIndent?"smart":"prev":u=u?"add":"subtract"),Gi(this.doc,a)&&Ds(this,a,u,h)}),indentSelection:Er(function(a){for(var u=this.doc.sel.ranges,h=-1,g=0;g<u.length;g++){var m=u[g];if(m.empty())m.head.line>h&&(Ds(this,m.head.line,a,!0),h=m.head.line,g==this.doc.sel.primIndex&&io(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)Ds(this,M,a);var N=this.doc.sel.ranges;y.ch==0&&u.length==N.length&&N[g].from().ch>0&&Vu(this.doc,g,new Lt(y,N[g].to()),at)}}}),getTokenAt:function(a,u){return ol(this,a,u)},getLineTokens:function(a,u){return ol(this,ie(a),u,!0)},getTokenTypeAt:function(a){a=me(this.doc,a);var u=mu(this,ke(this.doc,a.line)),h=0,g=(u.length-1)/2,m=a.ch,y;if(m==0)y=u[2];else for(;;){var C=h+g>>1;if((C?u[C*2-1]:0)>=m)g=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(a){var u=this.doc.mode;return u.innerMode?e.innerMode(u,this.getTokenAt(a).state).mode:u},getHelper:function(a,u){return this.getHelpers(a,u)[0]},getHelpers:function(a,u){var h=[];if(!s.hasOwnProperty(u))return h;var g=s[u],m=this.getModeAt(a);if(typeof m[u]=="string")g[m[u]]&&h.push(g[m[u]]);else if(m[u])for(var y=0;y<m[u].length;y++){var C=g[m[u][y]];C&&h.push(C)}else m.helperType&&g[m.helperType]?h.push(g[m.helperType]):g[m.name]&&h.push(g[m.name]);for(var _=0;_<g._global.length;_++){var M=g._global[_];M.pred(m,this)&&_e(h,M.val)==-1&&h.push(M.val)}return h},getStateAfter:function(a,u){var h=this.doc;return a=vt(h,a==null?h.first+h.size-1:a),ba(this,a+1,u).state},cursorCoords:function(a,u){var h,g=this.doc.sel.primary();return a==null?h=g.head:typeof a=="object"?h=me(this.doc,a):h=a?g.from():g.to(),Vn(this,h,u||"page")},charCoords:function(a,u){return yl(this,me(this.doc,a),u||"page")},coordsChar:function(a,u){return a=gc(this,a,u||"page"),$(this,a.left,a.top)},lineAtHeight:function(a,u){return a=gc(this,{top:a,left:0},u||"page").top,Un(this.doc,a+this.display.viewOffset)},heightAtLine:function(a,u,h){var g=!1,m;if(typeof a=="number"){var y=this.doc.first+this.doc.size-1;a<this.doc.first?a=this.doc.first:a>y&&(a=y,g=!0),m=ke(this.doc,a)}else m=a;return ml(this,m,{top:0,left:0},u||"page",h||g).top+(g?this.doc.height-Xr(m):0)},defaultTextHeight:function(){return Ji(this.display)},defaultCharWidth:function(){return Ca(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(a,u,h,g,m){var y=this.display;a=Vn(this,me(this.doc,a));var C=a.bottom,_=a.left;if(u.style.position="absolute",u.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(u),y.sizer.appendChild(u),g=="over")C=a.top;else if(g=="above"||g=="near"){var M=Math.max(y.wrapper.clientHeight,this.doc.height),N=Math.max(y.sizer.clientWidth,y.lineSpace.clientWidth);(g=="above"||a.bottom+u.offsetHeight>M)&&a.top>u.offsetHeight?C=a.top-u.offsetHeight:a.bottom+u.offsetHeight<=M&&(C=a.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&&Lf(this,{left:_,top:C,right:_+u.offsetWidth,bottom:C+u.offsetHeight})},triggerOnKeyDown:Er(Uc),triggerOnKeyPress:Er(Zc),triggerOnKeyUp:i0,triggerOnMouseDown:Er(Gc),execCommand:function(a){if(Go.hasOwnProperty(a))return Go[a].call(null,this)},triggerElectric:Er(function(a){t1(this,a)}),findPosH:function(a,u,h,g){var m=1;u<0&&(m=-1,u=-u);for(var y=me(this.doc,a),C=0;C<u&&(y=Rs(this.doc,y,m,h,g),!y.hitSide);++C);return y},moveH:Er(function(a,u){var h=this;this.extendSelectionsBy(function(g){return h.display.shift||h.doc.extend||g.empty()?Rs(h.doc,g.head,a,u,h.options.rtlMoveVisually):a<0?g.from():g.to()},We)}),deleteH:Er(function(a,u){var h=this.doc.sel,g=this.doc;h.somethingSelected()?g.replaceSelection("",null,"+delete"):wn(this,function(m){var y=Rs(g,m.head,a,u,!1);return a<0?{from:y,to:m.head}:{from:m.head,to:y}})}),findPosV:function(a,u,h,g){var m=1,y=g;u<0&&(m=-1,u=-u);for(var C=me(this.doc,a),_=0;_<u;++_){var M=Vn(this,C,"div");if(y==null?y=M.left:M.left=y,C=Zl(this,M,m,h),C.hitSide)break}return C},moveV:Er(function(a,u){var h=this,g=this.doc,m=[],y=!this.display.shift&&!g.extend&&g.sel.somethingSelected();if(g.extendSelectionsBy(function(_){if(y)return a<0?_.from():_.to();var M=Vn(h,_.head,"div");_.goalColumn!=null&&(M.left=_.goalColumn),m.push(M.left);var N=Zl(h,M,a,u);return u=="page"&&_==g.sel.primary()&&_a(h,yl(h,N,"div").top-M.top),N},We),m.length)for(var C=0;C<g.sel.ranges.length;C++)g.sel.ranges[C].goalColumn=m[C]}),findWordAt:function(a){var u=this.doc,h=ke(u,a.line).text,g=a.ch,m=a.ch;if(h){var y=this.getHelper(a,"wordChars");(a.sticky=="before"||m==h.length)&&g?--g:++m;for(var C=h.charAt(g),_=B(C,y)?function(M){return B(M,y)}:/\s/.test(C)?function(M){return/\s/.test(M)}:function(M){return!/\s/.test(M)&&!B(M)};g>0&&_(h.charAt(g-1));)--g;for(;m<h.length&&_(h.charAt(m));)++m}return new Lt(ie(a.line,g),ie(a.line,m))},toggleOverwrite:function(a){a!=null&&a==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?At(this.display.cursorDiv,"CodeMirror-overwrite"):Ce(this.display.cursorDiv,"CodeMirror-overwrite"),Ge(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==ot()},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:Er(function(a,u){ms(this,a,u)}),getScrollInfo:function(){var a=this.display.scroller;return{left:a.scrollLeft,top:a.scrollTop,height:a.scrollHeight-an(this)-this.display.barHeight,width:a.scrollWidth-an(this)-this.display.barWidth,clientHeight:pl(this),clientWidth:Ki(this)}},scrollIntoView:Er(function(a,u){a==null?(a={from:this.doc.sel.primary().head,to:null},u==null&&(u=this.options.cursorScrollMargin)):typeof a=="number"?a={from:ie(a,0),to:null}:a.from==null&&(a={from:a,to:null}),a.to||(a.to=a.from),a.margin=u||0,a.from.line!=null?Cc(this,a):wc(this,a.from,a.to,a.margin)}),setSize:Er(function(a,u){var h=this,g=function(y){return typeof y=="number"||/^\d+$/.test(String(y))?y+"px":y};a!=null&&(this.display.wrapper.style.width=g(a)),u!=null&&(this.display.wrapper.style.height=g(u)),this.options.lineWrapping&&pc(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){to(h,m,"widget");break}}++m}),this.curOp.forceUpdate=!0,Ge(this,"refresh",this)}),operation:function(a){return Ar(this,a)},startOperation:function(){return Gn(this)},endOperation:function(){return ui(this)},refresh:Er(function(){var a=this.display.cachedTextHeight;rt(this),this.curOp.forceUpdate=!0,gs(this),ms(this,this.doc.scrollLeft,this.doc.scrollTop),Nu(this.display),(a==null||Math.abs(a-Ji(this.display))>.5||this.options.lineWrapping)&&eo(this),Ge(this,"refresh",this)}),swapDoc:Er(function(a){var u=this.doc;return u.cm=null,this.state.selectingText&&this.state.selectingText(),Mc(this,a),gs(this),this.display.input.reset(),ms(this,a.scrollLeft,a.scrollTop),this.curOp.forceScroll=!0,hr(this,"swapDoc",this,u),u}),phrase:function(a){var u=this.options.phrases;return u&&Object.prototype.hasOwnProperty.call(u,a)?u[a]:a},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},Bn(e),e.registerHelper=function(a,u,h){s.hasOwnProperty(a)||(s[a]=e[a]={_global:[]}),s[a][u]=h},e.registerGlobalHelper=function(a,u,h,g){e.registerHelper(a,u,g),s[a]._global.push({pred:h,val:g})}}function Rs(e,t,s,a,u){var h=t,g=s,m=ke(e,t.line),y=u&&e.direction=="rtl"?-s:s;function C(){var we=t.line+y;return we<e.first||we>=e.first+e.size?!1:(t=new ie(we,t.ch,t.sticky),m=ke(e,we))}function _(we){var de;if(a=="codepoint"){var ze=m.text.charCodeAt(t.ch+(s>0?0:-1));if(isNaN(ze))de=null;else{var Re=s>0?ze>=55296&&ze<56320:ze>=56320&&ze<57343;de=new ie(t.line,Math.max(0,Math.min(m.text.length,t.ch+s*(Re?2:1))),-s)}}else u?de=Wc(e.cm,m,t,s):de=$l(m,t,s);if(de==null)if(!we&&C())t=Ra(u,e.cm,m,t.line,y);else return!1;else t=de;return!0}if(a=="char"||a=="codepoint")_();else if(a=="column")_(!0);else if(a=="word"||a=="group")for(var M=null,N=a=="group",R=e.cm&&e.cm.getHelper(t,"wordChars"),Z=!0;!(s<0&&!_(!Z));Z=!1){var J=m.text.charAt(t.ch)||`
2215
2223
  `,le=B(J,R)?"w":N&&J==`
2216
- `?"n":!N||/\s/.test(J)?null:"p";if(N&&!Z&&!le&&(le="s"),k&&k!=le){s<0&&(s=1,_(),t.sticky="after");break}if(le&&(k=le),s>0&&!_(!Z))break}var fe=Lr(e,t,h,g,!0);return P(h,fe)&&(fe.hitSide=!0),fe}function Zl(e,t,s,a){var u=e.doc,h=t.left,g;if(a=="page"){var m=Math.min(e.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),y=Math.max(m-.5*Ji(e.display),3);g=(s>0?t.bottom:t.top)+s*y}else a=="line"&&(g=s>0?t.bottom+3:t.top-3);for(var C;C=$(e,h,g),!!C.outside;){if(s<0?g<=0:g>=u.height){C.hitSide=!0;break}g+=s*5}return C}var _t=function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new ut,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};_t.prototype.init=function(e){var t=this,s=this,a=s.cm,u=s.div=e.lineDiv;u.contentEditable=!0,r1(u,a.options.spellcheck,a.options.autocorrect,a.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}$e(u,"paste",function(m){!h(m)||ir(a,m)||s0(m,a)||O<=11&&setTimeout(Kt(a,function(){return t.updateFromDOM()}),20)}),$e(u,"compositionstart",function(m){t.composing={data:m.data,done:!1}}),$e(u,"compositionupdate",function(m){t.composing||(t.composing={data:m.data,done:!1})}),$e(u,"compositionend",function(m){t.composing&&(m.data!=t.composing.data&&t.readFromDOMSoon(),t.composing.done=!0)}),$e(u,"touchstart",function(){return s.forceCompositionEnd()}),$e(u,"input",function(){t.composing||t.readFromDOMSoon()});function g(m){if(!(!h(m)||ir(a,m))){if(a.somethingSelected())On({lineWise:!1,text:a.getSelections()}),m.type=="cut"&&a.replaceSelection("",null,"cut");else if(a.options.lineWiseCopyCut){var y=l0(a);On({lineWise:!0,text:y.text}),m.type=="cut"&&a.operation(function(){a.setSelections(y.ranges,0,at),a.replaceSelection("",null,"cut")})}else return;if(m.clipboardData){m.clipboardData.clearData();var C=Mn.text.join(`
2217
- `);if(m.clipboardData.setData("Text",C),m.clipboardData.getData("Text")==C){m.preventDefault();return}}var _=n1(),k=_.firstChild;a.display.lineSpace.insertBefore(_,a.display.lineSpace.firstChild),k.value=Mn.text.join(`
2218
- `);var N=ot();Bt(k),setTimeout(function(){a.display.lineSpace.removeChild(_),N.focus(),N==u&&s.showPrimarySelection()},50)}}$e(u,"copy",g),$e(u,"cut",g)},_t.prototype.screenReaderLabelChanged=function(e){e?this.div.setAttribute("aria-label",e):this.div.removeAttribute("aria-label")},_t.prototype.prepareSelection=function(){var e=bs(this.cm,!1);return e.focus=ot()==this.div,e},_t.prototype.showSelection=function(e,t){!e||!this.cm.display.view.length||((e.focus||t)&&this.showPrimarySelection(),this.showMultipleSelections(e))},_t.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},_t.prototype.showPrimarySelection=function(){var e=this.getSelection(),t=this.cm,s=t.doc.sel.primary(),a=s.from(),u=s.to();if(t.display.viewTo==t.display.viewFrom||a.line>=t.display.viewTo||u.line<t.display.viewFrom){e.removeAllRanges();return}var h=Ua(t,e.anchorNode,e.anchorOffset),g=Ua(t,e.focusNode,e.focusOffset);if(!(h&&!h.bad&&g&&!g.bad&&w(qe(h,g),a)==0&&w(ae(h,g),u)==0)){var m=t.display.view,y=a.line>=t.display.viewFrom&&Ns(t,a)||{node:m[0].measure.map[2],offset:0},C=u.line<t.display.viewTo&&Ns(t,u);if(!C){var _=m[m.length-1].measure,k=_.maps?_.maps[_.maps.length-1]:_.map;C={node:k[k.length-1],offset:k[k.length-2]-k[k.length-3]}}if(!y||!C){e.removeAllRanges();return}var N=e.rangeCount&&e.getRangeAt(0),R;try{R=ne(y.node,y.offset,C.offset,C.node)}catch{}R&&(!f&&t.state.focused?(e.collapse(y.node,y.offset),R.collapsed||(e.removeAllRanges(),e.addRange(R))):(e.removeAllRanges(),e.addRange(R)),N&&e.anchorNode==null?e.addRange(N):f&&this.startGracePeriod()),this.rememberSelection()}},_t.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)},_t.prototype.showMultipleSelections=function(e){W(this.cm.display.cursorDiv,e.cursors),W(this.cm.display.selectionDiv,e.selection)},_t.prototype.rememberSelection=function(){var e=this.getSelection();this.lastAnchorNode=e.anchorNode,this.lastAnchorOffset=e.anchorOffset,this.lastFocusNode=e.focusNode,this.lastFocusOffset=e.focusOffset},_t.prototype.selectionInEditor=function(){var e=this.getSelection();if(!e.rangeCount)return!1;var t=e.getRangeAt(0).commonAncestorContainer;return be(this.div,t)},_t.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||ot()!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},_t.prototype.blur=function(){this.div.blur()},_t.prototype.getField=function(){return this.div},_t.prototype.supportsTouch=function(){return!0},_t.prototype.receivedFocus=function(){var e=this;this.selectionInEditor()?this.pollSelection():Ar(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)},_t.prototype.selectionChanged=function(){var e=this.getSelection();return e.anchorNode!=this.lastAnchorNode||e.anchorOffset!=this.lastAnchorOffset||e.focusNode!=this.lastFocusNode||e.focusOffset!=this.lastFocusOffset},_t.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var e=this.getSelection(),t=this.cm;if(Ie&&q&&this.cm.display.gutterSpecs.length&&Wa(e.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var s=Ua(t,e.anchorNode,e.anchorOffset),a=Ua(t,e.focusNode,e.focusOffset);s&&a&&Ar(t,function(){zr(t.doc,lo(s,a),at),(s.bad||a.bad)&&(t.curOp.selectionChanged=!0)})}}},_t.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var e=this.cm,t=e.display,s=e.doc.sel.primary(),a=s.from(),u=s.to();if(a.ch==0&&a.line>e.firstLine()&&(a=ie(a.line-1,Me(e.doc,a.line-1).length)),u.ch==Me(e.doc,u.line).text.length&&u.line<e.lastLine()&&(u=ie(u.line+1,0)),a.line<t.viewFrom||u.line>t.viewTo-1)return!1;var h,g,m;a.line==t.viewFrom||(h=li(e,a.line))==0?(g=zt(t.view[0].line),m=t.view[0].node):(g=zt(t.view[h].line),m=t.view[h-1].node.nextSibling);var y=li(e,u.line),C,_;if(y==t.view.length-1?(C=t.viewTo-1,_=t.lineDiv.lastChild):(C=zt(t.view[y+1].line)-1,_=t.view[y+1].node.previousSibling),!m)return!1;for(var k=e.doc.splitLines(Vl(e,m,_,g,C)),N=vn(e.doc,ie(g,0),ie(C,Me(e.doc,C).text.length));k.length>1&&N.length>1;)if(Xe(k)==Xe(N))k.pop(),N.pop(),C--;else if(k[0]==N[0])k.shift(),N.shift(),g++;else break;for(var R=0,Z=0,J=k[0],le=N[0],fe=Math.min(J.length,le.length);R<fe&&J.charCodeAt(R)==le.charCodeAt(R);)++R;for(var we=Xe(k),de=Xe(N),ze=Math.min(we.length-(k.length==1?R:0),de.length-(N.length==1?R:0));Z<ze&&we.charCodeAt(we.length-Z-1)==de.charCodeAt(de.length-Z-1);)++Z;if(k.length==1&&N.length==1&&g==a.line)for(;R&&R>a.ch&&we.charCodeAt(we.length-Z-1)==de.charCodeAt(de.length-Z-1);)R--,Z++;k[k.length-1]=we.slice(0,we.length-Z).replace(/^\u200b+/,""),k[0]=k[0].slice(R).replace(/\u200b+$/,"");var Re=ie(g,R),Pe=ie(C,N.length?Xe(N).length-Z:0);if(k.length>1||k[0]||w(Re,Pe))return Aa(e.doc,k,Re,Pe,"+input"),!0},_t.prototype.ensurePolled=function(){this.forceCompositionEnd()},_t.prototype.reset=function(){this.forceCompositionEnd()},_t.prototype.forceCompositionEnd=function(){!this.composing||(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},_t.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))},_t.prototype.updateFromDOM=function(){var e=this;(this.cm.isReadOnly()||!this.pollContent())&&Ar(this.cm,function(){return rt(e.cm)})},_t.prototype.setUneditable=function(e){e.contentEditable="false"},_t.prototype.onKeyPress=function(e){e.charCode==0||this.composing||(e.preventDefault(),this.cm.isReadOnly()||Kt(this.cm,Yl)(this.cm,String.fromCharCode(e.charCode==null?e.keyCode:e.charCode),0))},_t.prototype.readOnlyChanged=function(e){this.div.contentEditable=String(e!="nocursor")},_t.prototype.onContextMenu=function(){},_t.prototype.resetPosition=function(){},_t.prototype.needsContentAttribute=!0;function Ns(e,t){var s=Eu(e,t.line);if(!s||s.hidden)return null;var a=Me(e.doc,t.line),u=uc(s,a,t.line),h=Hr(a,e.doc.direction),g="left";if(h){var m=Zt(h,t.ch);g=m%2?"right":"left"}var y=gl(u.map,t.ch,g);return y.offset=y.collapse=="right"?y.end:y.start,y}function Wa(e){for(var t=e;t;t=t.parentNode)if(/CodeMirror-gutter-wrapper/.test(t.className))return!0;return!1}function Be(e,t){return t&&(e.bad=!0),e}function Vl(e,t,s,a,u){var h="",g=!1,m=e.doc.lineSeparator(),y=!1;function C(R){return function(Z){return Z.id==R}}function _(){g&&(h+=m,y&&(h+=m),g=y=!1)}function k(R){R&&(_(),h+=R)}function N(R){if(R.nodeType==1){var Z=R.getAttribute("cm-text");if(Z){k(Z);return}var J=R.getAttribute("cm-marker"),le;if(J){var fe=e.findMarks(ie(a,0),ie(u+1,0),C(+J));fe.length&&(le=fe[0].find(0))&&k(vn(e.doc,le.from,le.to).join(m));return}if(R.getAttribute("contenteditable")=="false")return;var we=/^(pre|div|p|li|table|br)$/i.test(R.nodeName);if(!/^br$/i.test(R.nodeName)&&R.textContent.length==0)return;we&&_();for(var de=0;de<R.childNodes.length;de++)N(R.childNodes[de]);/^(pre|p)$/i.test(R.nodeName)&&(y=!0),we&&(g=!0)}else R.nodeType==3&&k(R.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;N(t),t!=s;)t=t.nextSibling,y=!1;return h}function Ua(e,t,s){var a;if(t==e.display.lineDiv){if(a=e.display.lineDiv.childNodes[s],!a)return Be(e.clipPos(ie(e.display.viewTo-1)),!0);t=null,s=0}else for(a=t;;a=a.parentNode){if(!a||a==e.display.lineDiv)return null;if(a.parentNode&&a.parentNode==e.display.lineDiv)break}for(var u=0;u<e.display.view.length;u++){var h=e.display.view[u];if(h.node==a)return jo(h,t,s)}}function jo(e,t,s){var a=e.text.firstChild,u=!1;if(!t||!be(a,t))return Be(ie(zt(e.line),0),!0);if(t==a&&(u=!0,t=a.childNodes[s],s=0,!t)){var h=e.rest?Xe(e.rest):e.line;return Be(ie(zt(h),h.text.length),u)}var g=t.nodeType==3?t:null,m=t;for(!g&&t.childNodes.length==1&&t.firstChild.nodeType==3&&(g=t.firstChild,s&&(s=g.nodeValue.length));m.parentNode!=a;)m=m.parentNode;var y=e.measure,C=y.maps;function _(le,fe,we){for(var de=-1;de<(C?C.length:0);de++)for(var ze=de<0?y.map:C[de],Re=0;Re<ze.length;Re+=3){var Pe=ze[Re+2];if(Pe==le||Pe==fe){var lt=zt(de<0?e.line:e.rest[de]),Ot=ze[Re]+we;return(we<0||Pe!=le)&&(Ot=ze[Re+(we?1:0)]),ie(lt,Ot)}}}var k=_(g,m,s);if(k)return Be(k,u);for(var N=m.nextSibling,R=g?g.nodeValue.length-s:0;N;N=N.nextSibling){if(k=_(N,N.firstChild,0),k)return Be(ie(k.line,k.ch-R),u);R+=N.textContent.length}for(var Z=m.previousSibling,J=s;Z;Z=Z.previousSibling){if(k=_(Z,Z.firstChild,-1),k)return Be(ie(k.line,k.ch+J),u);J+=Z.textContent.length}}var tr=function(e){this.cm=e,this.prevInput="",this.pollingFast=!1,this.polling=new ut,this.hasSelection=!1,this.composing=null};tr.prototype.init=function(e){var t=this,s=this,a=this.cm;this.createField(e);var u=this.textarea;e.wrapper.insertBefore(this.wrapper,e.wrapper.firstChild),Ae&&(u.style.width="0px"),$e(u,"input",function(){S&&O>=9&&t.hasSelection&&(t.hasSelection=null),s.poll()}),$e(u,"paste",function(g){ir(a,g)||s0(g,a)||(a.state.pasteIncoming=+new Date,s.fastPoll())});function h(g){if(!ir(a,g)){if(a.somethingSelected())On({lineWise:!1,text:a.getSelections()});else if(a.options.lineWiseCopyCut){var m=l0(a);On({lineWise:!0,text:m.text}),g.type=="cut"?a.setSelections(m.ranges,null,at):(s.prevInput="",u.value=m.text.join(`
2224
+ `?"n":!N||/\s/.test(J)?null:"p";if(N&&!Z&&!le&&(le="s"),M&&M!=le){s<0&&(s=1,_(),t.sticky="after");break}if(le&&(M=le),s>0&&!_(!Z))break}var fe=Lr(e,t,h,g,!0);return P(h,fe)&&(fe.hitSide=!0),fe}function Zl(e,t,s,a){var u=e.doc,h=t.left,g;if(a=="page"){var m=Math.min(e.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),y=Math.max(m-.5*Ji(e.display),3);g=(s>0?t.bottom:t.top)+s*y}else a=="line"&&(g=s>0?t.bottom+3:t.top-3);for(var C;C=$(e,h,g),!!C.outside;){if(s<0?g<=0:g>=u.height){C.hitSide=!0;break}g+=s*5}return C}var _t=function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new ut,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};_t.prototype.init=function(e){var t=this,s=this,a=s.cm,u=s.div=e.lineDiv;u.contentEditable=!0,r1(u,a.options.spellcheck,a.options.autocorrect,a.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}$e(u,"paste",function(m){!h(m)||ir(a,m)||s0(m,a)||O<=11&&setTimeout(Kt(a,function(){return t.updateFromDOM()}),20)}),$e(u,"compositionstart",function(m){t.composing={data:m.data,done:!1}}),$e(u,"compositionupdate",function(m){t.composing||(t.composing={data:m.data,done:!1})}),$e(u,"compositionend",function(m){t.composing&&(m.data!=t.composing.data&&t.readFromDOMSoon(),t.composing.done=!0)}),$e(u,"touchstart",function(){return s.forceCompositionEnd()}),$e(u,"input",function(){t.composing||t.readFromDOMSoon()});function g(m){if(!(!h(m)||ir(a,m))){if(a.somethingSelected())Tn({lineWise:!1,text:a.getSelections()}),m.type=="cut"&&a.replaceSelection("",null,"cut");else if(a.options.lineWiseCopyCut){var y=l0(a);Tn({lineWise:!0,text:y.text}),m.type=="cut"&&a.operation(function(){a.setSelections(y.ranges,0,at),a.replaceSelection("",null,"cut")})}else return;if(m.clipboardData){m.clipboardData.clearData();var C=On.text.join(`
2225
+ `);if(m.clipboardData.setData("Text",C),m.clipboardData.getData("Text")==C){m.preventDefault();return}}var _=n1(),M=_.firstChild;a.display.lineSpace.insertBefore(_,a.display.lineSpace.firstChild),M.value=On.text.join(`
2226
+ `);var N=ot();Bt(M),setTimeout(function(){a.display.lineSpace.removeChild(_),N.focus(),N==u&&s.showPrimarySelection()},50)}}$e(u,"copy",g),$e(u,"cut",g)},_t.prototype.screenReaderLabelChanged=function(e){e?this.div.setAttribute("aria-label",e):this.div.removeAttribute("aria-label")},_t.prototype.prepareSelection=function(){var e=bs(this.cm,!1);return e.focus=ot()==this.div,e},_t.prototype.showSelection=function(e,t){!e||!this.cm.display.view.length||((e.focus||t)&&this.showPrimarySelection(),this.showMultipleSelections(e))},_t.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},_t.prototype.showPrimarySelection=function(){var e=this.getSelection(),t=this.cm,s=t.doc.sel.primary(),a=s.from(),u=s.to();if(t.display.viewTo==t.display.viewFrom||a.line>=t.display.viewTo||u.line<t.display.viewFrom){e.removeAllRanges();return}var h=Ua(t,e.anchorNode,e.anchorOffset),g=Ua(t,e.focusNode,e.focusOffset);if(!(h&&!h.bad&&g&&!g.bad&&w(qe(h,g),a)==0&&w(ae(h,g),u)==0)){var m=t.display.view,y=a.line>=t.display.viewFrom&&Ns(t,a)||{node:m[0].measure.map[2],offset:0},C=u.line<t.display.viewTo&&Ns(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),R;try{R=ne(y.node,y.offset,C.offset,C.node)}catch{}R&&(!f&&t.state.focused?(e.collapse(y.node,y.offset),R.collapsed||(e.removeAllRanges(),e.addRange(R))):(e.removeAllRanges(),e.addRange(R)),N&&e.anchorNode==null?e.addRange(N):f&&this.startGracePeriod()),this.rememberSelection()}},_t.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)},_t.prototype.showMultipleSelections=function(e){W(this.cm.display.cursorDiv,e.cursors),W(this.cm.display.selectionDiv,e.selection)},_t.prototype.rememberSelection=function(){var e=this.getSelection();this.lastAnchorNode=e.anchorNode,this.lastAnchorOffset=e.anchorOffset,this.lastFocusNode=e.focusNode,this.lastFocusOffset=e.focusOffset},_t.prototype.selectionInEditor=function(){var e=this.getSelection();if(!e.rangeCount)return!1;var t=e.getRangeAt(0).commonAncestorContainer;return be(this.div,t)},_t.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||ot()!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},_t.prototype.blur=function(){this.div.blur()},_t.prototype.getField=function(){return this.div},_t.prototype.supportsTouch=function(){return!0},_t.prototype.receivedFocus=function(){var e=this;this.selectionInEditor()?this.pollSelection():Ar(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)},_t.prototype.selectionChanged=function(){var e=this.getSelection();return e.anchorNode!=this.lastAnchorNode||e.anchorOffset!=this.lastAnchorOffset||e.focusNode!=this.lastFocusNode||e.focusOffset!=this.lastFocusOffset},_t.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var e=this.getSelection(),t=this.cm;if(Ie&&q&&this.cm.display.gutterSpecs.length&&Wa(e.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var s=Ua(t,e.anchorNode,e.anchorOffset),a=Ua(t,e.focusNode,e.focusOffset);s&&a&&Ar(t,function(){zr(t.doc,lo(s,a),at),(s.bad||a.bad)&&(t.curOp.selectionChanged=!0)})}}},_t.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var e=this.cm,t=e.display,s=e.doc.sel.primary(),a=s.from(),u=s.to();if(a.ch==0&&a.line>e.firstLine()&&(a=ie(a.line-1,ke(e.doc,a.line-1).length)),u.ch==ke(e.doc,u.line).text.length&&u.line<e.lastLine()&&(u=ie(u.line+1,0)),a.line<t.viewFrom||u.line>t.viewTo-1)return!1;var h,g,m;a.line==t.viewFrom||(h=li(e,a.line))==0?(g=zt(t.view[0].line),m=t.view[0].node):(g=zt(t.view[h].line),m=t.view[h-1].node.nextSibling);var y=li(e,u.line),C,_;if(y==t.view.length-1?(C=t.viewTo-1,_=t.lineDiv.lastChild):(C=zt(t.view[y+1].line)-1,_=t.view[y+1].node.previousSibling),!m)return!1;for(var M=e.doc.splitLines(Vl(e,m,_,g,C)),N=vn(e.doc,ie(g,0),ie(C,ke(e.doc,C).text.length));M.length>1&&N.length>1;)if(Xe(M)==Xe(N))M.pop(),N.pop(),C--;else if(M[0]==N[0])M.shift(),N.shift(),g++;else break;for(var R=0,Z=0,J=M[0],le=N[0],fe=Math.min(J.length,le.length);R<fe&&J.charCodeAt(R)==le.charCodeAt(R);)++R;for(var we=Xe(M),de=Xe(N),ze=Math.min(we.length-(M.length==1?R:0),de.length-(N.length==1?R:0));Z<ze&&we.charCodeAt(we.length-Z-1)==de.charCodeAt(de.length-Z-1);)++Z;if(M.length==1&&N.length==1&&g==a.line)for(;R&&R>a.ch&&we.charCodeAt(we.length-Z-1)==de.charCodeAt(de.length-Z-1);)R--,Z++;M[M.length-1]=we.slice(0,we.length-Z).replace(/^\u200b+/,""),M[0]=M[0].slice(R).replace(/\u200b+$/,"");var Re=ie(g,R),Pe=ie(C,N.length?Xe(N).length-Z:0);if(M.length>1||M[0]||w(Re,Pe))return Aa(e.doc,M,Re,Pe,"+input"),!0},_t.prototype.ensurePolled=function(){this.forceCompositionEnd()},_t.prototype.reset=function(){this.forceCompositionEnd()},_t.prototype.forceCompositionEnd=function(){!this.composing||(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},_t.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))},_t.prototype.updateFromDOM=function(){var e=this;(this.cm.isReadOnly()||!this.pollContent())&&Ar(this.cm,function(){return rt(e.cm)})},_t.prototype.setUneditable=function(e){e.contentEditable="false"},_t.prototype.onKeyPress=function(e){e.charCode==0||this.composing||(e.preventDefault(),this.cm.isReadOnly()||Kt(this.cm,Yl)(this.cm,String.fromCharCode(e.charCode==null?e.keyCode:e.charCode),0))},_t.prototype.readOnlyChanged=function(e){this.div.contentEditable=String(e!="nocursor")},_t.prototype.onContextMenu=function(){},_t.prototype.resetPosition=function(){},_t.prototype.needsContentAttribute=!0;function Ns(e,t){var s=Eu(e,t.line);if(!s||s.hidden)return null;var a=ke(e.doc,t.line),u=uc(s,a,t.line),h=Hr(a,e.doc.direction),g="left";if(h){var m=Zt(h,t.ch);g=m%2?"right":"left"}var y=gl(u.map,t.ch,g);return y.offset=y.collapse=="right"?y.end:y.start,y}function Wa(e){for(var t=e;t;t=t.parentNode)if(/CodeMirror-gutter-wrapper/.test(t.className))return!0;return!1}function Be(e,t){return t&&(e.bad=!0),e}function Vl(e,t,s,a,u){var h="",g=!1,m=e.doc.lineSeparator(),y=!1;function C(R){return function(Z){return Z.id==R}}function _(){g&&(h+=m,y&&(h+=m),g=y=!1)}function M(R){R&&(_(),h+=R)}function N(R){if(R.nodeType==1){var Z=R.getAttribute("cm-text");if(Z){M(Z);return}var J=R.getAttribute("cm-marker"),le;if(J){var fe=e.findMarks(ie(a,0),ie(u+1,0),C(+J));fe.length&&(le=fe[0].find(0))&&M(vn(e.doc,le.from,le.to).join(m));return}if(R.getAttribute("contenteditable")=="false")return;var we=/^(pre|div|p|li|table|br)$/i.test(R.nodeName);if(!/^br$/i.test(R.nodeName)&&R.textContent.length==0)return;we&&_();for(var de=0;de<R.childNodes.length;de++)N(R.childNodes[de]);/^(pre|p)$/i.test(R.nodeName)&&(y=!0),we&&(g=!0)}else R.nodeType==3&&M(R.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;N(t),t!=s;)t=t.nextSibling,y=!1;return h}function Ua(e,t,s){var a;if(t==e.display.lineDiv){if(a=e.display.lineDiv.childNodes[s],!a)return Be(e.clipPos(ie(e.display.viewTo-1)),!0);t=null,s=0}else for(a=t;;a=a.parentNode){if(!a||a==e.display.lineDiv)return null;if(a.parentNode&&a.parentNode==e.display.lineDiv)break}for(var u=0;u<e.display.view.length;u++){var h=e.display.view[u];if(h.node==a)return jo(h,t,s)}}function jo(e,t,s){var a=e.text.firstChild,u=!1;if(!t||!be(a,t))return Be(ie(zt(e.line),0),!0);if(t==a&&(u=!0,t=a.childNodes[s],s=0,!t)){var h=e.rest?Xe(e.rest):e.line;return Be(ie(zt(h),h.text.length),u)}var g=t.nodeType==3?t:null,m=t;for(!g&&t.childNodes.length==1&&t.firstChild.nodeType==3&&(g=t.firstChild,s&&(s=g.nodeValue.length));m.parentNode!=a;)m=m.parentNode;var y=e.measure,C=y.maps;function _(le,fe,we){for(var de=-1;de<(C?C.length:0);de++)for(var ze=de<0?y.map:C[de],Re=0;Re<ze.length;Re+=3){var Pe=ze[Re+2];if(Pe==le||Pe==fe){var lt=zt(de<0?e.line:e.rest[de]),Ot=ze[Re]+we;return(we<0||Pe!=le)&&(Ot=ze[Re+(we?1:0)]),ie(lt,Ot)}}}var M=_(g,m,s);if(M)return Be(M,u);for(var N=m.nextSibling,R=g?g.nodeValue.length-s:0;N;N=N.nextSibling){if(M=_(N,N.firstChild,0),M)return Be(ie(M.line,M.ch-R),u);R+=N.textContent.length}for(var Z=m.previousSibling,J=s;Z;Z=Z.previousSibling){if(M=_(Z,Z.firstChild,-1),M)return Be(ie(M.line,M.ch+J),u);J+=Z.textContent.length}}var tr=function(e){this.cm=e,this.prevInput="",this.pollingFast=!1,this.polling=new ut,this.hasSelection=!1,this.composing=null};tr.prototype.init=function(e){var t=this,s=this,a=this.cm;this.createField(e);var u=this.textarea;e.wrapper.insertBefore(this.wrapper,e.wrapper.firstChild),Ae&&(u.style.width="0px"),$e(u,"input",function(){S&&O>=9&&t.hasSelection&&(t.hasSelection=null),s.poll()}),$e(u,"paste",function(g){ir(a,g)||s0(g,a)||(a.state.pasteIncoming=+new Date,s.fastPoll())});function h(g){if(!ir(a,g)){if(a.somethingSelected())Tn({lineWise:!1,text:a.getSelections()});else if(a.options.lineWiseCopyCut){var m=l0(a);Tn({lineWise:!0,text:m.text}),g.type=="cut"?a.setSelections(m.ranges,null,at):(s.prevInput="",u.value=m.text.join(`
2219
2227
  `),Bt(u))}else return;g.type=="cut"&&(a.state.cutIncoming=+new Date)}}$e(u,"cut",h),$e(u,"copy",h),$e(e.scroller,"paste",function(g){if(!(Si(e,g)||ir(a,g))){if(!u.dispatchEvent){a.state.pasteIncoming=+new Date,s.focus();return}var m=new Event("paste");m.clipboardData=g.clipboardData,u.dispatchEvent(m)}}),$e(e.lineSpace,"selectstart",function(g){Si(e,g)||xr(g)}),$e(u,"compositionstart",function(){var g=a.getCursor("from");s.composing&&s.composing.range.clear(),s.composing={start:g,range:a.markText(g,a.getCursor("to"),{className:"CodeMirror-composing"})}}),$e(u,"compositionend",function(){s.composing&&(s.poll(),s.composing.range.clear(),s.composing=null)})},tr.prototype.createField=function(e){this.wrapper=n1(),this.textarea=this.wrapper.firstChild},tr.prototype.screenReaderLabelChanged=function(e){e?this.textarea.setAttribute("aria-label",e):this.textarea.removeAttribute("aria-label")},tr.prototype.prepareSelection=function(){var e=this.cm,t=e.display,s=e.doc,a=bs(e);if(e.options.moveInputWithCursor){var u=Vn(e,s.sel.primary().head,"div"),h=t.wrapper.getBoundingClientRect(),g=t.lineDiv.getBoundingClientRect();a.teTop=Math.max(0,Math.min(t.wrapper.clientHeight-10,u.top+g.top-h.top)),a.teLeft=Math.max(0,Math.min(t.wrapper.clientWidth-10,u.left+g.left-h.left))}return a},tr.prototype.showSelection=function(e){var t=this.cm,s=t.display;W(s.cursorDiv,e.cursors),W(s.selectionDiv,e.selection),e.teTop!=null&&(this.wrapper.style.top=e.teTop+"px",this.wrapper.style.left=e.teLeft+"px")},tr.prototype.reset=function(e){if(!(this.contextMenuPending||this.composing)){var t=this.cm;if(t.somethingSelected()){this.prevInput="";var s=t.getSelection();this.textarea.value=s,t.state.focused&&Bt(this.textarea),S&&O>=9&&(this.hasSelection=s)}else e||(this.prevInput=this.textarea.value="",S&&O>=9&&(this.hasSelection=null))}},tr.prototype.getField=function(){return this.textarea},tr.prototype.supportsTouch=function(){return!1},tr.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!pe||ot()!=this.textarea))try{this.textarea.focus()}catch{}},tr.prototype.blur=function(){this.textarea.blur()},tr.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},tr.prototype.receivedFocus=function(){this.slowPoll()},tr.prototype.slowPoll=function(){var e=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){e.poll(),e.cm.state.focused&&e.slowPoll()})},tr.prototype.fastPoll=function(){var e=!1,t=this;t.pollingFast=!0;function s(){var a=t.poll();!a&&!e?(e=!0,t.polling.set(60,s)):(t.pollingFast=!1,t.slowPoll())}t.polling.set(20,s)},tr.prototype.poll=function(){var e=this,t=this.cm,s=this.textarea,a=this.prevInput;if(this.contextMenuPending||!t.state.focused||el(s)&&!a&&!this.composing||t.isReadOnly()||t.options.disableInput||t.state.keySeq)return!1;var u=s.value;if(u==a&&!t.somethingSelected())return!1;if(S&&O>=9&&this.hasSelection===u||he&&/[\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&&!a&&(a="\u200B"),h==8666)return this.reset(),this.cm.execCommand("undo")}for(var g=0,m=Math.min(a.length,u.length);g<m&&a.charCodeAt(g)==u.charCodeAt(g);)++g;return Ar(t,function(){Yl(t,u.slice(g),a.length-g,null,e.composing?"*compose":null),u.length>1e3||u.indexOf(`
2220
2228
  `)>-1?s.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},tr.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},tr.prototype.onKeyPress=function(){S&&O>=9&&(this.hasSelection=null),this.fastPoll()},tr.prototype.onContextMenu=function(e){var t=this,s=t.cm,a=s.display,u=t.textarea;t.contextMenuPending&&t.contextMenuPending();var h=si(s,e),g=a.scroller.scrollTop;if(!h||X)return;var m=s.options.resetSelectionOnContextMenu;m&&s.doc.sel.contains(h)==-1&&Kt(s,zr)(s.doc,lo(h),at);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;
2221
2229
  top: `+(e.clientY-_.top-5)+"px; left: "+(e.clientX-_.left-5)+`px;
2222
2230
  z-index: 1000; background: `+(S?"rgba(255, 255, 255, .05)":"transparent")+`;
2223
- outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var k;I&&(k=window.scrollY),a.input.focus(),I&&window.scrollTo(null,k),a.input.reset(),s.somethingSelected()||(u.value=t.prevInput=" "),t.contextMenuPending=R,a.selForContextMenu=s.doc.sel,clearTimeout(a.detectingSelectAll);function N(){if(u.selectionStart!=null){var J=s.somethingSelected(),le="\u200B"+(J?u.value:"");u.value="\u21DA",u.value=le,t.prevInput=J?"":"\u200B",u.selectionStart=1,u.selectionEnd=le.length,a.selForContextMenu=s.doc.sel}}function R(){if(t.contextMenuPending==R&&(t.contextMenuPending=!1,t.wrapper.style.cssText=C,u.style.cssText=y,S&&O<9&&a.scrollbars.setScrollTop(a.scroller.scrollTop=g),u.selectionStart!=null)){(!S||S&&O<9)&&N();var J=0,le=function(){a.selForContextMenu==s.doc.sel&&u.selectionStart==0&&u.selectionEnd>0&&t.prevInput=="\u200B"?Kt(s,Pc)(s):J++<10?a.detectingSelectAll=setTimeout(le,500):(a.selForContextMenu=null,a.input.reset())};a.detectingSelectAll=setTimeout(le,200)}}if(S&&O>=9&&N(),nt){Mo(e);var Z=function(){Mr(window,"mouseup",Z),setTimeout(R,20)};$e(window,"mouseup",Z)}else setTimeout(R,50)},tr.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled=e=="nocursor",this.textarea.readOnly=!!e},tr.prototype.setUneditable=function(){},tr.prototype.needsContentAttribute=!1;function u0(e,t){if(t=t?er(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 s=ot();t.autofocus=s==e||e.getAttribute("autofocus")!=null&&s==document.body}function a(){e.value=m.getValue()}var u;if(e.form&&($e(e.form,"submit",a),!t.leaveSubmitMethodAlone)){var h=e.form;u=h.submit;try{var g=h.submit=function(){a(),h.submit=u,h.submit(),h.submit=g}}catch{}}t.finishInit=function(y){y.save=a,y.getTextArea=function(){return e},y.toTextArea=function(){y.toTextArea=isNaN,a(),e.parentNode.removeChild(y.getWrapperElement()),e.style.display="",e.form&&(Mr(e.form,"submit",a),!t.leaveSubmitMethodAlone&&typeof e.form.submit=="function"&&(e.form.submit=u))}},e.style.display="none";var m=Dt(function(y){return e.parentNode.insertBefore(y,e.nextSibling)},t);return m}function i1(e){e.off=Mr,e.on=$e,e.wheelEventPixels=Ef,e.Doc=Br,e.splitLines=To,e.countColumn=Ft,e.findColumn=Vt,e.isWordChar=tt,e.Pass=Ze,e.signal=Ge,e.Line=Tr,e.changeEnd=uo,e.scrollbarModel=xl,e.Pos=ie,e.cmpPos=w,e.modes=zn,e.mimeModes=pn,e.resolveMode=Po,e.getMode=ga,e.modeExtensions=Fn,e.extendMode=Wn,e.copyState=gn,e.startState=as,e.innerMode=os,e.commands=Go,e.keyMap=Ti,e.keyName=Ju,e.isModifierKey=Nl,e.lookupKey=Pi,e.normalizeKeyMap=Bf,e.StringStream=Wt,e.SharedTextMarker=Da,e.TextMarker=ho,e.LineWidget=Ms,e.e_preventDefault=xr,e.e_stopPropagation=pa,e.e_stop=Mo,e.addClass=At,e.contains=be,e.rmClass=Ce,e.keyNames=go}Ul(Dt),Ai(Dt);var Wr="iter insert remove copy getEditor constructor".split(" ");for(var Gl in Br.prototype)Br.prototype.hasOwnProperty(Gl)&&_e(Wr,Gl)<0&&(Dt.prototype[Gl]=function(e){return function(){return e.apply(this.doc,arguments)}}(Br.prototype[Gl]));return Bn(Br),Dt.inputStyles={textarea:tr,contenteditable:_t},Dt.defineMode=function(e){!Dt.defaults.mode&&e!="null"&&(Dt.defaults.mode=e),rl.apply(this,arguments)},Dt.defineMIME=Li,Dt.defineMode("null",function(){return{token:function(e){return e.skipToEnd()}}}),Dt.defineMIME("text/plain","null"),Dt.defineExtension=function(e,t){Dt.prototype[e]=t},Dt.defineDocExtension=function(e,t){Br.prototype[e]=t},Dt.fromTextArea=u0,i1(Dt),Dt.version="5.62.3",Dt})}(hd)),hd.exports}var b0=es();const s8=`.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}
2231
+ outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var M;I&&(M=window.scrollY),a.input.focus(),I&&window.scrollTo(null,M),a.input.reset(),s.somethingSelected()||(u.value=t.prevInput=" "),t.contextMenuPending=R,a.selForContextMenu=s.doc.sel,clearTimeout(a.detectingSelectAll);function N(){if(u.selectionStart!=null){var J=s.somethingSelected(),le="\u200B"+(J?u.value:"");u.value="\u21DA",u.value=le,t.prevInput=J?"":"\u200B",u.selectionStart=1,u.selectionEnd=le.length,a.selForContextMenu=s.doc.sel}}function R(){if(t.contextMenuPending==R&&(t.contextMenuPending=!1,t.wrapper.style.cssText=C,u.style.cssText=y,S&&O<9&&a.scrollbars.setScrollTop(a.scroller.scrollTop=g),u.selectionStart!=null)){(!S||S&&O<9)&&N();var J=0,le=function(){a.selForContextMenu==s.doc.sel&&u.selectionStart==0&&u.selectionEnd>0&&t.prevInput=="\u200B"?Kt(s,Pc)(s):J++<10?a.detectingSelectAll=setTimeout(le,500):(a.selForContextMenu=null,a.input.reset())};a.detectingSelectAll=setTimeout(le,200)}}if(S&&O>=9&&N(),nt){ko(e);var Z=function(){kr(window,"mouseup",Z),setTimeout(R,20)};$e(window,"mouseup",Z)}else setTimeout(R,50)},tr.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled=e=="nocursor",this.textarea.readOnly=!!e},tr.prototype.setUneditable=function(){},tr.prototype.needsContentAttribute=!1;function u0(e,t){if(t=t?er(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 s=ot();t.autofocus=s==e||e.getAttribute("autofocus")!=null&&s==document.body}function a(){e.value=m.getValue()}var u;if(e.form&&($e(e.form,"submit",a),!t.leaveSubmitMethodAlone)){var h=e.form;u=h.submit;try{var g=h.submit=function(){a(),h.submit=u,h.submit(),h.submit=g}}catch{}}t.finishInit=function(y){y.save=a,y.getTextArea=function(){return e},y.toTextArea=function(){y.toTextArea=isNaN,a(),e.parentNode.removeChild(y.getWrapperElement()),e.style.display="",e.form&&(kr(e.form,"submit",a),!t.leaveSubmitMethodAlone&&typeof e.form.submit=="function"&&(e.form.submit=u))}},e.style.display="none";var m=Dt(function(y){return e.parentNode.insertBefore(y,e.nextSibling)},t);return m}function i1(e){e.off=kr,e.on=$e,e.wheelEventPixels=If,e.Doc=Br,e.splitLines=To,e.countColumn=Ft,e.findColumn=Vt,e.isWordChar=tt,e.Pass=Ze,e.signal=Ge,e.Line=Tr,e.changeEnd=uo,e.scrollbarModel=xl,e.Pos=ie,e.cmpPos=w,e.modes=Ln,e.mimeModes=pn,e.resolveMode=Po,e.getMode=ga,e.modeExtensions=Fn,e.extendMode=Wn,e.copyState=gn,e.startState=as,e.innerMode=os,e.commands=Go,e.keyMap=Ti,e.keyName=Ju,e.isModifierKey=Nl,e.lookupKey=Pi,e.normalizeKeyMap=Ff,e.StringStream=Wt,e.SharedTextMarker=Da,e.TextMarker=ho,e.LineWidget=ks,e.e_preventDefault=xr,e.e_stopPropagation=pa,e.e_stop=ko,e.addClass=At,e.contains=be,e.rmClass=Ce,e.keyNames=go}Ul(Dt),Ai(Dt);var Wr="iter insert remove copy getEditor constructor".split(" ");for(var Gl in Br.prototype)Br.prototype.hasOwnProperty(Gl)&&_e(Wr,Gl)<0&&(Dt.prototype[Gl]=function(e){return function(){return e.apply(this.doc,arguments)}}(Br.prototype[Gl]));return Bn(Br),Dt.inputStyles={textarea:tr,contenteditable:_t},Dt.defineMode=function(e){!Dt.defaults.mode&&e!="null"&&(Dt.defaults.mode=e),rl.apply(this,arguments)},Dt.defineMIME=Li,Dt.defineMode("null",function(){return{token:function(e){return e.skipToEnd()}}}),Dt.defineMIME("text/plain","null"),Dt.defineExtension=function(e,t){Dt.prototype[e]=t},Dt.defineDocExtension=function(e,t){Br.prototype[e]=t},Dt.fromTextArea=u0,i1(Dt),Dt.version="5.62.3",Dt})}(pd)),pd.exports}var b0=es();const s8=`.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}
2224
2232
  `,l8=ge`
2225
2233
  .cm-s-skedulo .cm-header {
2226
2234
  color: blue;
@@ -2299,11 +2307,11 @@ b`.split(/\n/).length!=3?function(e){for(var t=0,s=[],a=e.length;t<=a;){var u=e.
2299
2307
  .cm-invalidchar {
2300
2308
  color: #f00;
2301
2309
  }
2302
- `;(function(r,n){(function(o){o(es())})(function(o){o.overlayMode=function(c,f,p){return{startState:function(){return{base:o.startState(c),overlay:o.startState(f),basePos:0,baseCur:null,overlayPos:0,overlayCur:null,streamSeen:null}},copyState:function(b){return{base:o.copyState(c,b.base),overlay:o.copyState(f,b.overlay),basePos:b.basePos,baseCur:null,overlayPos:b.overlayPos,overlayCur:null}},token:function(b,M){return(b!=M.streamSeen||Math.min(M.basePos,M.overlayPos)<b.start)&&(M.streamSeen=b,M.basePos=M.overlayPos=b.start),b.start==M.basePos&&(M.baseCur=c.token(b,M.base),M.basePos=b.pos),b.start==M.overlayPos&&(b.pos=b.start,M.overlayCur=f.token(b,M.overlay),M.overlayPos=b.pos),b.pos=Math.min(M.basePos,M.overlayPos),M.overlayCur==null?M.baseCur:M.baseCur!=null&&M.overlay.combineTokens||p&&M.overlay.combineTokens==null?M.baseCur+" "+M.overlayCur:M.overlayCur},indent:c.indent&&function(b,M,S){return c.indent(b.base,M,S)},electricChars:c.electricChars,innerMode:function(b){return{state:b.base,mode:c}},blankLine:function(b){var M,S;return c.blankLine&&(M=c.blankLine(b.base)),f.blankLine&&(S=f.blankLine(b.overlay)),S==null?M:p&&M!=null?M+" "+S:S}}}})})();(function(r,n){(function(o){o(es())})(function(o){o.defineMode("jinja2",function(){var c=["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"],f=/^[+\-*&%=<>!?|~^]/,p=/^[:\[\(\{]/,b=["true","false"],M=/^(\d[+\-\*\/])?\d+(\.\d+)?/;c=new RegExp("(("+c.join(")|(")+"))\\b"),b=new RegExp("(("+b.join(")|(")+"))\\b");function S(O,I){var U=O.peek();if(I.incomment)return O.skipTo("#}")?(O.eatWhile(/\#|}/),I.incomment=!1):O.skipToEnd(),"comment";if(I.intag){if(I.operator){if(I.operator=!1,O.match(b))return"atom";if(O.match(M))return"number"}if(I.sign){if(I.sign=!1,O.match(b))return"atom";if(O.match(M))return"number"}if(I.instring)return U==I.instring&&(I.instring=!1),O.next(),"string";if(U=="'"||U=='"')return I.instring=U,O.next(),"string";if(O.match(I.intag+"}")||O.eat("-")&&O.match(I.intag+"}"))return I.intag=!1,"tag";if(O.match(f))return I.operator=!0,"operator";if(O.match(p))I.sign=!0;else if(O.eat(" ")||O.sol()){if(O.match(c))return"keyword";if(O.match(b))return"atom";if(O.match(M))return"number";O.sol()&&O.next()}else O.next();return"variable"}else if(O.eat("{")){if(O.eat("#"))return I.incomment=!0,O.skipTo("#}")?(O.eatWhile(/\#|}/),I.incomment=!1):O.skipToEnd(),"comment";if(U=O.eat(/\{|%/))return I.intag=U,U=="{"&&(I.intag="}"),O.eat("-"),"tag"}O.next()}return{startState:function(){return{tokenize:S}},token:function(O,I){return I.tokenize(O,I)},blockCommentStart:"{#",blockCommentEnd:"#}"}}),o.defineMIME("text/jinja2","jinja2")})})();var u8={exports:{}};(function(r,n){(function(o){o(es())})(function(o){var c={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},f={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};o.defineMode("xml",function(p,b){var M=p.indentUnit,S={},O=b.htmlMode?c:f;for(var I in O)S[I]=O[I];for(var I in b)S[I]=b[I];var U,q;function X(E,T){function ne(At){return T.tokenize=At,At(E,T)}var be=E.next();if(be=="<")return E.eat("!")?E.eat("[")?E.match("CDATA[")?ne(ye("atom","]]>")):null:E.match("--")?ne(ye("comment","-->")):E.match("DOCTYPE",!0,!0)?(E.eatWhile(/[\w\._\-]/),ne(Ae(1))):null:E.eat("?")?(E.eatWhile(/[\w\._\-]/),T.tokenize=ye("meta","?>"),"meta"):(U=E.eat("/")?"closeTag":"openTag",T.tokenize=ce,"tag bracket");if(be=="&"){var ot;return E.eat("#")?E.eat("x")?ot=E.eatWhile(/[a-fA-F\d]/)&&E.eat(";"):ot=E.eatWhile(/[\d]/)&&E.eat(";"):ot=E.eatWhile(/[\w\.\-:]/)&&E.eat(";"),ot?"atom":"error"}else return E.eatWhile(/[^&<]/),null}X.isInText=!0;function ce(E,T){var ne=E.next();if(ne==">"||ne=="/"&&E.eat(">"))return T.tokenize=X,U=ne==">"?"endTag":"selfcloseTag","tag bracket";if(ne=="=")return U="equals",null;if(ne=="<"){T.tokenize=X,T.state=Te,T.tagName=T.tagStart=null;var be=T.tokenize(E,T);return be?be+" tag error":"tag error"}else return/[\'\"]/.test(ne)?(T.tokenize=xe(ne),T.stringStartCol=E.column(),T.tokenize(E,T)):(E.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function xe(E){var T=function(ne,be){for(;!ne.eol();)if(ne.next()==E){be.tokenize=ce;break}return"string"};return T.isInAttribute=!0,T}function ye(E,T){return function(ne,be){for(;!ne.eol();){if(ne.match(T)){be.tokenize=X;break}ne.next()}return E}}function Ae(E){return function(T,ne){for(var be;(be=T.next())!=null;){if(be=="<")return ne.tokenize=Ae(E+1),ne.tokenize(T,ne);if(be==">")if(E==1){ne.tokenize=X;break}else return ne.tokenize=Ae(E-1),ne.tokenize(T,ne)}return"meta"}}function Ie(E,T,ne){this.prev=E.context,this.tagName=T||"",this.indent=E.indented,this.startOfLine=ne,(S.doNotIndent.hasOwnProperty(T)||E.context&&E.context.noIndent)&&(this.noIndent=!0)}function pe(E){E.context&&(E.context=E.context.prev)}function he(E,T){for(var ne;;){if(!E.context||(ne=E.context.tagName,!S.contextGrabbers.hasOwnProperty(ne)||!S.contextGrabbers[ne].hasOwnProperty(T)))return;pe(E)}}function Te(E,T,ne){return E=="openTag"?(ne.tagStart=T.column(),He):E=="closeTag"?Ye:Te}function He(E,T,ne){return E=="word"?(ne.tagName=T.current(),q="tag",ve):S.allowMissingTagName&&E=="endTag"?(q="tag bracket",ve(E,T,ne)):(q="error",He)}function Ye(E,T,ne){if(E=="word"){var be=T.current();return ne.context&&ne.context.tagName!=be&&S.implicitlyClosed.hasOwnProperty(ne.context.tagName)&&pe(ne),ne.context&&ne.context.tagName==be||S.matchClosing===!1?(q="tag",et):(q="tag error",nt)}else return S.allowMissingTagName&&E=="endTag"?(q="tag bracket",et(E,T,ne)):(q="error",nt)}function et(E,T,ne){return E!="endTag"?(q="error",et):(pe(ne),Te)}function nt(E,T,ne){return q="error",et(E,T,ne)}function ve(E,T,ne){if(E=="word")return q="attribute",Ce;if(E=="endTag"||E=="selfcloseTag"){var be=ne.tagName,ot=ne.tagStart;return ne.tagName=ne.tagStart=null,E=="selfcloseTag"||S.autoSelfClosers.hasOwnProperty(be)?he(ne,be):(he(ne,be),ne.context=new Ie(ne,be,ot==ne.indented)),Te}return q="error",ve}function Ce(E,T,ne){return E=="equals"?it:(S.allowMissing||(q="error"),ve(E,T,ne))}function it(E,T,ne){return E=="string"?W:E=="word"&&S.allowUnquoted?(q="string",ve):(q="error",ve(E,T,ne))}function W(E,T,ne){return E=="string"?W:ve(E,T,ne)}return{startState:function(E){var T={tokenize:X,state:Te,indented:E||0,tagName:null,tagStart:null,context:null};return E!=null&&(T.baseIndent=E),T},token:function(E,T){if(!T.tagName&&E.sol()&&(T.indented=E.indentation()),E.eatSpace())return null;U=null;var ne=T.tokenize(E,T);return(ne||U)&&ne!="comment"&&(q=null,T.state=T.state(U||ne,E,T),q&&(ne=q=="error"?ne+" error":q)),ne},indent:function(E,T,ne){var be=E.context;if(E.tokenize.isInAttribute)return E.tagStart==E.indented?E.stringStartCol+1:E.indented+M;if(be&&be.noIndent)return o.Pass;if(E.tokenize!=ce&&E.tokenize!=X)return ne?ne.match(/^(\s*)/)[0].length:0;if(E.tagName)return S.multilineTagIndentPastTag!==!1?E.tagStart+E.tagName.length+2:E.tagStart+M*(S.multilineTagIndentFactor||1);if(S.alignCDATA&&/<!\[CDATA\[/.test(T))return 0;var ot=T&&/^<(\/)?([\w_:\.-]*)/.exec(T);if(ot&&ot[1])for(;be;)if(be.tagName==ot[2]){be=be.prev;break}else if(S.implicitlyClosed.hasOwnProperty(be.tagName))be=be.prev;else break;else if(ot)for(;be;){var At=S.contextGrabbers[be.tagName];if(At&&At.hasOwnProperty(ot[2]))be=be.prev;else break}for(;be&&be.prev&&!be.startOfLine;)be=be.prev;return be?be.indent+M:E.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:S.htmlMode?"html":"xml",helperType:S.htmlMode?"html":"xml",skipAttribute:function(E){E.state==it&&(E.state=ve)},xmlCurrentTag:function(E){return E.tagName?{name:E.tagName,close:E.type=="closeTag"}:null},xmlCurrentContext:function(E){for(var T=[],ne=E.context;ne;ne=ne.prev)T.push(ne.tagName);return T.reverse()}}}),o.defineMIME("text/xml","xml"),o.defineMIME("application/xml","xml"),o.mimeModes.hasOwnProperty("text/html")||o.defineMIME("text/html",{name:"xml",htmlMode:!0})})})();var Pp={exports:{}},Ap;function q2(){return Ap||(Ap=1,function(r,n){(function(o){o(es())})(function(o){o.defineMode("javascript",function(c,f){var p=c.indentUnit,b=f.statementIndent,M=f.jsonld,S=f.json||M,O=f.trackScope!==!1,I=f.typescript,U=f.wordCharacters||/[\w$\xa1-\uffff]/,q=function(){function w(Or){return{type:Or,style:"keyword"}}var P=w("keyword a"),j=w("keyword b"),ae=w("keyword c"),qe=w("keyword d"),vt=w("operator"),me={type:"atom",style:"atom"};return{if:w("if"),while:P,with:P,else:j,do:j,try:j,finally:j,return:qe,break:qe,continue:qe,new:w("new"),delete:ae,void:ae,throw:ae,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:vt,typeof:vt,instanceof:vt,true:me,false:me,null:me,undefined:me,NaN:me,Infinity:me,this:w("this"),class:w("class"),super:w("atom"),yield:ae,export:w("export"),import:w("import"),extends:ae,await:ae}}(),X=/[+\-*&%=<>!?|~^@]/,ce=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function xe(w){for(var P=!1,j,ae=!1;(j=w.next())!=null;){if(!P){if(j=="/"&&!ae)return;j=="["?ae=!0:ae&&j=="]"&&(ae=!1)}P=!P&&j=="\\"}}var ye,Ae;function Ie(w,P,j){return ye=w,Ae=j,P}function pe(w,P){var j=w.next();if(j=='"'||j=="'")return P.tokenize=he(j),P.tokenize(w,P);if(j=="."&&w.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return Ie("number","number");if(j=="."&&w.match(".."))return Ie("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(j))return Ie(j);if(j=="="&&w.eat(">"))return Ie("=>","operator");if(j=="0"&&w.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return Ie("number","number");if(/\d/.test(j))return w.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),Ie("number","number");if(j=="/")return w.eat("*")?(P.tokenize=Te,Te(w,P)):w.eat("/")?(w.skipToEnd(),Ie("comment","comment")):ie(w,P,1)?(xe(w),w.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),Ie("regexp","string-2")):(w.eat("="),Ie("operator","operator",w.current()));if(j=="`")return P.tokenize=He,He(w,P);if(j=="#"&&w.peek()=="!")return w.skipToEnd(),Ie("meta","meta");if(j=="#"&&w.eatWhile(U))return Ie("variable","property");if(j=="<"&&w.match("!--")||j=="-"&&w.match("->")&&!/\S/.test(w.string.slice(0,w.start)))return w.skipToEnd(),Ie("comment","comment");if(X.test(j))return(j!=">"||!P.lexical||P.lexical.type!=">")&&(w.eat("=")?(j=="!"||j=="=")&&w.eat("="):/[<>*+\-|&?]/.test(j)&&(w.eat(j),j==">"&&w.eat(j))),j=="?"&&w.eat(".")?Ie("."):Ie("operator","operator",w.current());if(U.test(j)){w.eatWhile(U);var ae=w.current();if(P.lastType!="."){if(q.propertyIsEnumerable(ae)){var qe=q[ae];return Ie(qe.type,qe.style,ae)}if(ae=="async"&&w.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return Ie("async","keyword",ae)}return Ie("variable","variable",ae)}}function he(w){return function(P,j){var ae=!1,qe;if(M&&P.peek()=="@"&&P.match(ce))return j.tokenize=pe,Ie("jsonld-keyword","meta");for(;(qe=P.next())!=null&&!(qe==w&&!ae);)ae=!ae&&qe=="\\";return ae||(j.tokenize=pe),Ie("string","string")}}function Te(w,P){for(var j=!1,ae;ae=w.next();){if(ae=="/"&&j){P.tokenize=pe;break}j=ae=="*"}return Ie("comment","comment")}function He(w,P){for(var j=!1,ae;(ae=w.next())!=null;){if(!j&&(ae=="`"||ae=="$"&&w.eat("{"))){P.tokenize=pe;break}j=!j&&ae=="\\"}return Ie("quasi","string-2",w.current())}var Ye="([{}])";function et(w,P){P.fatArrowAt&&(P.fatArrowAt=null);var j=w.string.indexOf("=>",w.start);if(!(j<0)){if(I){var ae=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(w.string.slice(w.start,j));ae&&(j=ae.index)}for(var qe=0,vt=!1,me=j-1;me>=0;--me){var Or=w.string.charAt(me),on=Ye.indexOf(Or);if(on>=0&&on<3){if(!qe){++me;break}if(--qe==0){Or=="("&&(vt=!0);break}}else if(on>=3&&on<6)++qe;else if(U.test(Or))vt=!0;else if(/["'\/`]/.test(Or))for(;;--me){if(me==0)return;var _i=w.string.charAt(me-1);if(_i==Or&&w.string.charAt(me-2)!="\\"){me--;break}}else if(vt&&!qe){++me;break}}vt&&!qe&&(P.fatArrowAt=me)}}var nt={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function ve(w,P,j,ae,qe,vt){this.indented=w,this.column=P,this.type=j,this.prev=qe,this.info=vt,ae!=null&&(this.align=ae)}function Ce(w,P){if(!O)return!1;for(var j=w.localVars;j;j=j.next)if(j.name==P)return!0;for(var ae=w.context;ae;ae=ae.prev)for(var j=ae.vars;j;j=j.next)if(j.name==P)return!0}function it(w,P,j,ae,qe){var vt=w.cc;for(W.state=w,W.stream=qe,W.marked=null,W.cc=vt,W.style=P,w.lexical.hasOwnProperty("align")||(w.lexical.align=!0);;){var me=vt.length?vt.pop():S?We:at;if(me(j,ae)){for(;vt.length&&vt[vt.length-1].lex;)vt.pop()();return W.marked?W.marked:j=="variable"&&Ce(w,ae)?"variable-2":P}}}var W={state:null,column:null,marked:null,cc:null};function E(){for(var w=arguments.length-1;w>=0;w--)W.cc.push(arguments[w])}function T(){return E.apply(null,arguments),!0}function ne(w,P){for(var j=P;j;j=j.next)if(j.name==w)return!0;return!1}function be(w){var P=W.state;if(W.marked="def",!!O){if(P.context){if(P.lexical.info=="var"&&P.context&&P.context.block){var j=ot(w,P.context);if(j!=null){P.context=j;return}}else if(!ne(w,P.localVars)){P.localVars=new Bt(w,P.localVars);return}}f.globalVars&&!ne(w,P.globalVars)&&(P.globalVars=new Bt(w,P.globalVars))}}function ot(w,P){if(P)if(P.block){var j=ot(w,P.prev);return j?j==P.prev?P:new sr(j,P.vars,!0):null}else return ne(w,P.vars)?P:new sr(P.prev,new Bt(w,P.vars),!1);else return null}function At(w){return w=="public"||w=="private"||w=="protected"||w=="abstract"||w=="readonly"}function sr(w,P,j){this.prev=w,this.vars=P,this.block=j}function Bt(w,P){this.name=w,this.next=P}var dn=new Bt("this",new Bt("arguments",null));function er(){W.state.context=new sr(W.state.context,W.state.localVars,!1),W.state.localVars=dn}function Ft(){W.state.context=new sr(W.state.context,W.state.localVars,!0),W.state.localVars=null}function ut(){W.state.localVars=W.state.context.vars,W.state.context=W.state.context.prev}ut.lex=!0;function _e(w,P){var j=function(){var ae=W.state,qe=ae.indented;if(ae.lexical.type=="stat")qe=ae.lexical.indented;else for(var vt=ae.lexical;vt&&vt.type==")"&&vt.align;vt=vt.prev)qe=vt.indented;ae.lexical=new ve(qe,W.stream.column(),w,null,ae.lexical,P)};return j.lex=!0,j}function Fe(){var w=W.state;w.lexical.prev&&(w.lexical.type==")"&&(w.indented=w.lexical.indented),w.lexical=w.lexical.prev)}Fe.lex=!0;function Ze(w){function P(j){return j==w?T():w==";"||j=="}"||j==")"||j=="]"?E():T(P)}return P}function at(w,P){return w=="var"?T(_e("vardef",P),ns,Ze(";"),Fe):w=="keyword a"?T(_e("form"),qr,at,Fe):w=="keyword b"?T(_e("form"),at,Fe):w=="keyword d"?W.stream.match(/^\s*$/,!1)?T():T(_e("stat"),Xe,Ze(";"),Fe):w=="debugger"?T(Ze(";")):w=="{"?T(_e("}"),Ft,Hr,Fe,ut):w==";"?T():w=="if"?(W.state.lexical.info=="else"&&W.state.cc[W.state.cc.length-1]==Fe&&W.state.cc.pop()(),T(_e("form"),qr,at,Fe,el)):w=="function"?T(zn):w=="for"?T(_e("form"),Ft,tl,at,ut,Fe):w=="class"||I&&P=="interface"?(W.marked="keyword",T(_e("form",w=="class"?w:P),ga,Fe)):w=="variable"?I&&P=="declare"?(W.marked="keyword",T(at)):I&&(P=="module"||P=="enum"||P=="type")&&W.stream.match(/^\s*\w/,!1)?(W.marked="keyword",P=="enum"?T(Un):P=="type"?T(rl,Ze("operator"),Ge,Ze(";")):T(_e("form"),Kr,Ze("{"),_e("}"),Hr,Fe,Fe)):I&&P=="namespace"?(W.marked="keyword",T(_e("form"),We,at,Fe)):I&&P=="abstract"?(W.marked="keyword",T(at)):T(_e("stat"),Qe):w=="switch"?T(_e("form"),qr,Ze("{"),_e("}","switch"),Ft,Hr,Fe,Fe,ut):w=="case"?T(We,Ze(":")):w=="default"?T(Ze(":")):w=="catch"?T(_e("form"),er,st,at,Fe,ut):w=="export"?T(_e("stat"),os,Fe):w=="import"?T(_e("stat"),Wt,Fe):w=="async"?T(at):P=="@"?T(We,at):E(_e("stat"),We,Ze(";"),Fe)}function st(w){if(w=="(")return T(Li,Ze(")"))}function We(w,P){return lr(w,P,!1)}function Vt(w,P){return lr(w,P,!0)}function qr(w){return w!="("?E():T(_e(")"),Xe,Ze(")"),Fe)}function lr(w,P,j){if(W.state.fatArrowAt==W.stream.start){var ae=j?tt:fr;if(w=="(")return T(er,_e(")"),Zt(Li,")"),Fe,Ze("=>"),ae,ut);if(w=="variable")return E(er,Kr,Ze("=>"),ae,ut)}var qe=j?Mt:yt;return nt.hasOwnProperty(w)?T(qe):w=="function"?T(zn,qe):w=="class"||I&&P=="interface"?(W.marked="keyword",T(_e("form"),Po,Fe)):w=="keyword c"||w=="async"?T(j?Vt:We):w=="("?T(_e(")"),Xe,Ze(")"),Fe,qe):w=="operator"||w=="spread"?T(j?Vt:We):w=="["?T(_e("]"),zt,Fe,qe):w=="{"?zi(kr,"}",null,qe):w=="quasi"?E($r,qe):w=="new"?T(B(j)):T()}function Xe(w){return w.match(/[;\}\)\],]/)?E():E(We)}function yt(w,P){return w==","?T(Xe):Mt(w,P,!1)}function Mt(w,P,j){var ae=j==!1?yt:Mt,qe=j==!1?We:Vt;if(w=="=>")return T(er,j?tt:fr,ut);if(w=="operator")return/\+\+|--/.test(P)||I&&P=="!"?T(ae):I&&P=="<"&&W.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?T(_e(">"),Zt(Ge,">"),Fe,ae):P=="?"?T(We,Ze(":"),qe):T(qe);if(w=="quasi")return E($r,ae);if(w!=";"){if(w=="(")return zi(Vt,")","call",ae);if(w==".")return T(dr,ae);if(w=="[")return T(_e("]"),Xe,Ze("]"),Fe,ae);if(I&&P=="as")return W.marked="keyword",T(Ge,ae);if(w=="regexp")return W.state.lastType=W.marked="operator",W.stream.backUp(W.stream.pos-W.stream.start-1),T(qe)}}function $r(w,P){return w!="quasi"?E():P.slice(P.length-2)!="${"?T($r):T(Xe,rn)}function rn(w){if(w=="}")return W.marked="string-2",W.state.tokenize=He,T($r)}function fr(w){return et(W.stream,W.state),E(w=="{"?at:We)}function tt(w){return et(W.stream,W.state),E(w=="{"?at:Vt)}function B(w){return function(P){return P=="."?T(w?V:oe):P=="variable"&&I?T(Mo,w?Mt:yt):E(w?Vt:We)}}function oe(w,P){if(P=="target")return W.marked="keyword",T(yt)}function V(w,P){if(P=="target")return W.marked="keyword",T(Mt)}function Qe(w){return w==":"?T(Fe,at):E(yt,Ze(";"),Fe)}function dr(w){if(w=="variable")return W.marked="property",T()}function kr(w,P){if(w=="async")return W.marked="property",T(kr);if(w=="variable"||W.style=="keyword"){if(W.marked="property",P=="get"||P=="set")return T($n);var j;return I&&W.state.fatArrowAt==W.stream.start&&(j=W.stream.match(/^\s*:\s*/,!1))&&(W.state.fatArrowAt=W.stream.pos+j[0].length),T(jr)}else{if(w=="number"||w=="string")return W.marked=M?"property":W.style+" property",T(jr);if(w=="jsonld-keyword")return T(jr);if(I&&At(P))return W.marked="keyword",T(kr);if(w=="[")return T(We,Hn,Ze("]"),jr);if(w=="spread")return T(Vt,jr);if(P=="*")return W.marked="keyword",T(kr);if(w==":")return E(jr)}}function $n(w){return w!="variable"?E(jr):(W.marked="property",T(zn))}function jr(w){if(w==":")return T(Vt);if(w=="(")return E(zn)}function Zt(w,P,j){function ae(qe,vt){if(j?j.indexOf(qe)>-1:qe==","){var me=W.state.lexical;return me.info=="call"&&(me.pos=(me.pos||0)+1),T(function(Or,on){return Or==P||on==P?E():E(w)},ae)}return qe==P||vt==P?T():j&&j.indexOf(";")>-1?E(w):T(Ze(P))}return function(qe,vt){return qe==P||vt==P?T():E(w,ae)}}function zi(w,P,j){for(var ae=3;ae<arguments.length;ae++)W.cc.push(arguments[ae]);return T(_e(P,j),Zt(w,P),Fe)}function Hr(w){return w=="}"?T():E(at,Hr)}function Hn(w,P){if(I){if(w==":")return T(Ge);if(P=="?")return T(Hn)}}function $e(w,P){if(I&&(w==":"||P=="in"))return T(Ge)}function Yi(w){if(I&&w==":")return W.stream.match(/^\s*\w+\s+is\b/,!1)?T(We,Mr,Ge):T(Ge)}function Mr(w,P){if(P=="is")return W.marked="keyword",T()}function Ge(w,P){if(P=="keyof"||P=="typeof"||P=="infer"||P=="readonly")return W.marked="keyword",T(P=="typeof"?Vt:Ge);if(w=="variable"||P=="void")return W.marked="type",T(hn);if(P=="|"||P=="&")return T(Ge);if(w=="string"||w=="number"||w=="atom")return T(hn);if(w=="[")return T(_e("]"),Zt(Ge,"]",","),Fe,hn);if(w=="{")return T(_e("}"),ha,Fe,hn);if(w=="(")return T(Zt(pa,")"),ir,hn);if(w=="<")return T(Zt(Ge,">"),Ge);if(w=="quasi")return E(Bn,hn)}function ir(w){if(w=="=>")return T(Ge)}function ha(w){return w.match(/[\}\)\]]/)?T():w==","||w==";"?T(ha):E(wr,ha)}function wr(w,P){if(w=="variable"||W.style=="keyword")return W.marked="property",T(wr);if(P=="?"||w=="number"||w=="string")return T(wr);if(w==":")return T(Ge);if(w=="[")return T(Ze("variable"),$e,Ze("]"),wr);if(w=="(")return E(pn,wr);if(!w.match(/[;\}\)\],]/))return T()}function Bn(w,P){return w!="quasi"?E():P.slice(P.length-2)!="${"?T(Bn):T(Ge,xr)}function xr(w){if(w=="}")return W.marked="string-2",W.state.tokenize=He,T(Bn)}function pa(w,P){return w=="variable"&&W.stream.match(/^\s*[?:]/,!1)||P=="?"?T(pa):w==":"?T(Ge):w=="spread"?T(pa):E(Ge)}function hn(w,P){if(P=="<")return T(_e(">"),Zt(Ge,">"),Fe,hn);if(P=="|"||w=="."||P=="&")return T(Ge);if(w=="[")return T(Ge,Ze("]"),hn);if(P=="extends"||P=="implements")return W.marked="keyword",T(Ge);if(P=="?")return T(Ge,Ze(":"),Ge)}function Mo(w,P){if(P=="<")return T(_e(">"),Zt(Ge,">"),Fe,hn)}function Zi(){return E(Ge,rs)}function rs(w,P){if(P=="=")return T(Ge)}function ns(w,P){return P=="enum"?(W.marked="keyword",T(Un)):E(Kr,Hn,ni,To)}function Kr(w,P){if(I&&At(P))return W.marked="keyword",T(Kr);if(w=="variable")return be(P),T();if(w=="spread")return T(Kr);if(w=="[")return zi(Oo,"]");if(w=="{")return zi(Js,"}")}function Js(w,P){return w=="variable"&&!W.stream.match(/^\s*:/,!1)?(be(P),T(ni)):(w=="variable"&&(W.marked="property"),w=="spread"?T(Kr):w=="}"?E():w=="["?T(We,Ze("]"),Ze(":"),Js):T(Ze(":"),Kr,ni))}function Oo(){return E(Kr,ni)}function ni(w,P){if(P=="=")return T(Vt)}function To(w){if(w==",")return T(ns)}function el(w,P){if(w=="keyword b"&&P=="else")return T(_e("form","else"),at,Fe)}function tl(w,P){if(P=="await")return T(tl);if(w=="(")return T(_e(")"),is,Fe)}function is(w){return w=="var"?T(ns,Vi):w=="variable"?T(Vi):E(Vi)}function Vi(w,P){return w==")"?T():w==";"?T(Vi):P=="in"||P=="of"?(W.marked="keyword",T(We,Vi)):E(We,Vi)}function zn(w,P){if(P=="*")return W.marked="keyword",T(zn);if(w=="variable")return be(P),T(zn);if(w=="(")return T(er,_e(")"),Zt(Li,")"),Fe,Yi,at,ut);if(I&&P=="<")return T(_e(">"),Zt(Zi,">"),Fe,zn)}function pn(w,P){if(P=="*")return W.marked="keyword",T(pn);if(w=="variable")return be(P),T(pn);if(w=="(")return T(er,_e(")"),Zt(Li,")"),Fe,Yi,ut);if(I&&P=="<")return T(_e(">"),Zt(Zi,">"),Fe,pn)}function rl(w,P){if(w=="keyword"||w=="variable")return W.marked="type",T(rl);if(P=="<")return T(_e(">"),Zt(Zi,">"),Fe)}function Li(w,P){return P=="@"&&T(We,Li),w=="spread"?T(Li):I&&At(P)?(W.marked="keyword",T(Li)):I&&w=="this"?T(Hn,ni):E(Kr,Hn,ni)}function Po(w,P){return w=="variable"?ga(w,P):Fn(w,P)}function ga(w,P){if(w=="variable")return be(P),T(Fn)}function Fn(w,P){if(P=="<")return T(_e(">"),Zt(Zi,">"),Fe,Fn);if(P=="extends"||P=="implements"||I&&w==",")return P=="implements"&&(W.marked="keyword"),T(I?Ge:We,Fn);if(w=="{")return T(_e("}"),Wn,Fe)}function Wn(w,P){if(w=="async"||w=="variable"&&(P=="static"||P=="get"||P=="set"||I&&At(P))&&W.stream.match(/^\s+[\w$\xa1-\uffff]/,!1))return W.marked="keyword",T(Wn);if(w=="variable"||W.style=="keyword")return W.marked="property",T(gn,Wn);if(w=="number"||w=="string")return T(gn,Wn);if(w=="[")return T(We,Hn,Ze("]"),gn,Wn);if(P=="*")return W.marked="keyword",T(Wn);if(I&&w=="(")return E(pn,Wn);if(w==";"||w==",")return T(Wn);if(w=="}")return T();if(P=="@")return T(We,Wn)}function gn(w,P){if(P=="!"||P=="?")return T(gn);if(w==":")return T(Ge,ni);if(P=="=")return T(Vt);var j=W.state.lexical.prev,ae=j&&j.info=="interface";return E(ae?pn:zn)}function os(w,P){return P=="*"?(W.marked="keyword",T(nn,Ze(";"))):P=="default"?(W.marked="keyword",T(We,Ze(";"))):w=="{"?T(Zt(as,"}"),nn,Ze(";")):E(at)}function as(w,P){if(P=="as")return W.marked="keyword",T(Ze("variable"));if(w=="variable")return E(Vt,as)}function Wt(w){return w=="string"?T():w=="("?E(We):w=="."?E(yt):E(Me,vn,nn)}function Me(w,P){return w=="{"?zi(Me,"}"):(w=="variable"&&be(P),P=="*"&&(W.marked="keyword"),T(ss))}function vn(w){if(w==",")return T(Me,vn)}function ss(w,P){if(P=="as")return W.marked="keyword",T(Me)}function nn(w,P){if(P=="from")return W.marked="keyword",T(We)}function zt(w){return w=="]"?T():E(Zt(Vt,"]"))}function Un(){return E(_e("form"),Kr,Ze("{"),_e("}"),Zt(Gi,"}"),Fe,Fe)}function Gi(){return E(Kr,ni)}function va(w,P){return w.lastType=="operator"||w.lastType==","||X.test(P.charAt(0))||/[,.]/.test(P.charAt(0))}function ie(w,P,j){return P.tokenize==pe&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(P.lastType)||P.lastType=="quasi"&&/\{\s*$/.test(w.string.slice(0,w.pos-(j||0)))}return{startState:function(w){var P={tokenize:pe,lastType:"sof",cc:[],lexical:new ve((w||0)-p,0,"block",!1),localVars:f.localVars,context:f.localVars&&new sr(null,null,!1),indented:w||0};return f.globalVars&&typeof f.globalVars=="object"&&(P.globalVars=f.globalVars),P},token:function(w,P){if(w.sol()&&(P.lexical.hasOwnProperty("align")||(P.lexical.align=!1),P.indented=w.indentation(),et(w,P)),P.tokenize!=Te&&w.eatSpace())return null;var j=P.tokenize(w,P);return ye=="comment"?j:(P.lastType=ye=="operator"&&(Ae=="++"||Ae=="--")?"incdec":ye,it(P,j,ye,Ae,w))},indent:function(w,P){if(w.tokenize==Te||w.tokenize==He)return o.Pass;if(w.tokenize!=pe)return 0;var j=P&&P.charAt(0),ae=w.lexical,qe;if(!/^\s*else\b/.test(P))for(var vt=w.cc.length-1;vt>=0;--vt){var me=w.cc[vt];if(me==Fe)ae=ae.prev;else if(me!=el&&me!=ut)break}for(;(ae.type=="stat"||ae.type=="form")&&(j=="}"||(qe=w.cc[w.cc.length-1])&&(qe==yt||qe==Mt)&&!/^[,\.=+\-*:?[\(]/.test(P));)ae=ae.prev;b&&ae.type==")"&&ae.prev.type=="stat"&&(ae=ae.prev);var Or=ae.type,on=j==Or;return Or=="vardef"?ae.indented+(w.lastType=="operator"||w.lastType==","?ae.info.length+1:0):Or=="form"&&j=="{"?ae.indented:Or=="form"?ae.indented+p:Or=="stat"?ae.indented+(va(w,P)?b||p:0):ae.info=="switch"&&!on&&f.doubleIndentSwitch!=!1?ae.indented+(/^(?:case|default)\b/.test(P)?p:2*p):ae.align?ae.column+(on?0:1):ae.indented+(on?0:p)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:S?null:"/*",blockCommentEnd:S?null:"*/",blockCommentContinue:S?null:" * ",lineComment:S?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:S?"json":"javascript",jsonldMode:M,jsonMode:S,expressionAllowed:ie,skipExpression:function(w){it(w,"atom","atom","true",new o.StringStream("",2,null))}}}),o.registerHelper("wordChars","javascript",/[\w$]/),o.defineMIME("text/javascript","javascript"),o.defineMIME("text/ecmascript","javascript"),o.defineMIME("application/javascript","javascript"),o.defineMIME("application/x-javascript","javascript"),o.defineMIME("application/ecmascript","javascript"),o.defineMIME("application/json",{name:"javascript",json:!0}),o.defineMIME("application/x-json",{name:"javascript",json:!0}),o.defineMIME("application/manifest+json",{name:"javascript",json:!0}),o.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),o.defineMIME("text/typescript",{name:"javascript",typescript:!0}),o.defineMIME("application/typescript",{name:"javascript",typescript:!0})})}()),Pp.exports}q2();var Ep={exports:{}},Ip;function c8(){return Ip||(Ip=1,function(r,n){(function(o){o(es())})(function(o){o.defineMode("css",function(ve,Ce){var it=Ce.inline;Ce.propertyKeywords||(Ce=o.resolveMode("text/css"));var W=ve.indentUnit,E=Ce.tokenHooks,T=Ce.documentTypes||{},ne=Ce.mediaTypes||{},be=Ce.mediaFeatures||{},ot=Ce.mediaValueKeywords||{},At=Ce.propertyKeywords||{},sr=Ce.nonStandardPropertyKeywords||{},Bt=Ce.fontProperties||{},dn=Ce.counterDescriptors||{},er=Ce.colorKeywords||{},Ft=Ce.valueKeywords||{},ut=Ce.allowNested,_e=Ce.lineComment,Fe=Ce.supportsAtComponent===!0,Ze=ve.highlightNonStandardPropertyKeywords!==!1,at,st;function We(B,oe){return at=oe,B}function Vt(B,oe){var V=B.next();if(E[V]){var Qe=E[V](B,oe);if(Qe!==!1)return Qe}if(V=="@")return B.eatWhile(/[\w\\\-]/),We("def",B.current());if(V=="="||(V=="~"||V=="|")&&B.eat("="))return We(null,"compare");if(V=='"'||V=="'")return oe.tokenize=qr(V),oe.tokenize(B,oe);if(V=="#")return B.eatWhile(/[\w\\\-]/),We("atom","hash");if(V=="!")return B.match(/^\s*\w*/),We("keyword","important");if(/\d/.test(V)||V=="."&&B.eat(/\d/))return B.eatWhile(/[\w.%]/),We("number","unit");if(V==="-"){if(/[\d.]/.test(B.peek()))return B.eatWhile(/[\w.%]/),We("number","unit");if(B.match(/^-[\w\\\-]*/))return B.eatWhile(/[\w\\\-]/),B.match(/^\s*:/,!1)?We("variable-2","variable-definition"):We("variable-2","variable");if(B.match(/^\w+-/))return We("meta","meta")}else return/[,+>*\/]/.test(V)?We(null,"select-op"):V=="."&&B.match(/^-?[_a-z][_a-z0-9-]*/i)?We("qualifier","qualifier"):/[:;{}\[\]\(\)]/.test(V)?We(null,V):B.match(/^[\w-.]+(?=\()/)?(/^(url(-prefix)?|domain|regexp)$/i.test(B.current())&&(oe.tokenize=lr),We("variable callee","variable")):/[\w\\\-]/.test(V)?(B.eatWhile(/[\w\\\-]/),We("property","word")):We(null,null)}function qr(B){return function(oe,V){for(var Qe=!1,dr;(dr=oe.next())!=null;){if(dr==B&&!Qe){B==")"&&oe.backUp(1);break}Qe=!Qe&&dr=="\\"}return(dr==B||!Qe&&B!=")")&&(V.tokenize=null),We("string","string")}}function lr(B,oe){return B.next(),B.match(/^\s*[\"\')]/,!1)?oe.tokenize=null:oe.tokenize=qr(")"),We(null,"(")}function Xe(B,oe,V){this.type=B,this.indent=oe,this.prev=V}function yt(B,oe,V,Qe){return B.context=new Xe(V,oe.indentation()+(Qe===!1?0:W),B.context),V}function Mt(B){return B.context.prev&&(B.context=B.context.prev),B.context.type}function $r(B,oe,V){return tt[V.context.type](B,oe,V)}function rn(B,oe,V,Qe){for(var dr=Qe||1;dr>0;dr--)V.context=V.context.prev;return $r(B,oe,V)}function fr(B){var oe=B.current().toLowerCase();Ft.hasOwnProperty(oe)?st="atom":er.hasOwnProperty(oe)?st="keyword":st="variable"}var tt={};return tt.top=function(B,oe,V){if(B=="{")return yt(V,oe,"block");if(B=="}"&&V.context.prev)return Mt(V);if(Fe&&/@component/i.test(B))return yt(V,oe,"atComponentBlock");if(/^@(-moz-)?document$/i.test(B))return yt(V,oe,"documentTypes");if(/^@(media|supports|(-moz-)?document|import)$/i.test(B))return yt(V,oe,"atBlock");if(/^@(font-face|counter-style)/i.test(B))return V.stateArg=B,"restricted_atBlock_before";if(/^@(-(moz|ms|o|webkit)-)?keyframes$/i.test(B))return"keyframes";if(B&&B.charAt(0)=="@")return yt(V,oe,"at");if(B=="hash")st="builtin";else if(B=="word")st="tag";else{if(B=="variable-definition")return"maybeprop";if(B=="interpolation")return yt(V,oe,"interpolation");if(B==":")return"pseudo";if(ut&&B=="(")return yt(V,oe,"parens")}return V.context.type},tt.block=function(B,oe,V){if(B=="word"){var Qe=oe.current().toLowerCase();return At.hasOwnProperty(Qe)?(st="property","maybeprop"):sr.hasOwnProperty(Qe)?(st=Ze?"string-2":"property","maybeprop"):ut?(st=oe.match(/^\s*:(?:\s|$)/,!1)?"property":"tag","block"):(st+=" error","maybeprop")}else return B=="meta"?"block":!ut&&(B=="hash"||B=="qualifier")?(st="error","block"):tt.top(B,oe,V)},tt.maybeprop=function(B,oe,V){return B==":"?yt(V,oe,"prop"):$r(B,oe,V)},tt.prop=function(B,oe,V){if(B==";")return Mt(V);if(B=="{"&&ut)return yt(V,oe,"propBlock");if(B=="}"||B=="{")return rn(B,oe,V);if(B=="(")return yt(V,oe,"parens");if(B=="hash"&&!/^#([0-9a-fA-f]{3,4}|[0-9a-fA-f]{6}|[0-9a-fA-f]{8})$/.test(oe.current()))st+=" error";else if(B=="word")fr(oe);else if(B=="interpolation")return yt(V,oe,"interpolation");return"prop"},tt.propBlock=function(B,oe,V){return B=="}"?Mt(V):B=="word"?(st="property","maybeprop"):V.context.type},tt.parens=function(B,oe,V){return B=="{"||B=="}"?rn(B,oe,V):B==")"?Mt(V):B=="("?yt(V,oe,"parens"):B=="interpolation"?yt(V,oe,"interpolation"):(B=="word"&&fr(oe),"parens")},tt.pseudo=function(B,oe,V){return B=="meta"?"pseudo":B=="word"?(st="variable-3",V.context.type):$r(B,oe,V)},tt.documentTypes=function(B,oe,V){return B=="word"&&T.hasOwnProperty(oe.current())?(st="tag",V.context.type):tt.atBlock(B,oe,V)},tt.atBlock=function(B,oe,V){if(B=="(")return yt(V,oe,"atBlock_parens");if(B=="}"||B==";")return rn(B,oe,V);if(B=="{")return Mt(V)&&yt(V,oe,ut?"block":"top");if(B=="interpolation")return yt(V,oe,"interpolation");if(B=="word"){var Qe=oe.current().toLowerCase();Qe=="only"||Qe=="not"||Qe=="and"||Qe=="or"?st="keyword":ne.hasOwnProperty(Qe)?st="attribute":be.hasOwnProperty(Qe)?st="property":ot.hasOwnProperty(Qe)?st="keyword":At.hasOwnProperty(Qe)?st="property":sr.hasOwnProperty(Qe)?st=Ze?"string-2":"property":Ft.hasOwnProperty(Qe)?st="atom":er.hasOwnProperty(Qe)?st="keyword":st="error"}return V.context.type},tt.atComponentBlock=function(B,oe,V){return B=="}"?rn(B,oe,V):B=="{"?Mt(V)&&yt(V,oe,ut?"block":"top",!1):(B=="word"&&(st="error"),V.context.type)},tt.atBlock_parens=function(B,oe,V){return B==")"?Mt(V):B=="{"||B=="}"?rn(B,oe,V,2):tt.atBlock(B,oe,V)},tt.restricted_atBlock_before=function(B,oe,V){return B=="{"?yt(V,oe,"restricted_atBlock"):B=="word"&&V.stateArg=="@counter-style"?(st="variable","restricted_atBlock_before"):$r(B,oe,V)},tt.restricted_atBlock=function(B,oe,V){return B=="}"?(V.stateArg=null,Mt(V)):B=="word"?(V.stateArg=="@font-face"&&!Bt.hasOwnProperty(oe.current().toLowerCase())||V.stateArg=="@counter-style"&&!dn.hasOwnProperty(oe.current().toLowerCase())?st="error":st="property","maybeprop"):"restricted_atBlock"},tt.keyframes=function(B,oe,V){return B=="word"?(st="variable","keyframes"):B=="{"?yt(V,oe,"top"):$r(B,oe,V)},tt.at=function(B,oe,V){return B==";"?Mt(V):B=="{"||B=="}"?rn(B,oe,V):(B=="word"?st="tag":B=="hash"&&(st="builtin"),"at")},tt.interpolation=function(B,oe,V){return B=="}"?Mt(V):B=="{"||B==";"?rn(B,oe,V):(B=="word"?st="variable":B!="variable"&&B!="("&&B!=")"&&(st="error"),"interpolation")},{startState:function(B){return{tokenize:null,state:it?"block":"top",stateArg:null,context:new Xe(it?"block":"top",B||0,null)}},token:function(B,oe){if(!oe.tokenize&&B.eatSpace())return null;var V=(oe.tokenize||Vt)(B,oe);return V&&typeof V=="object"&&(at=V[1],V=V[0]),st=V,at!="comment"&&(oe.state=tt[oe.state](at,B,oe)),st},indent:function(B,oe){var V=B.context,Qe=oe&&oe.charAt(0),dr=V.indent;return V.type=="prop"&&(Qe=="}"||Qe==")")&&(V=V.prev),V.prev&&(Qe=="}"&&(V.type=="block"||V.type=="top"||V.type=="interpolation"||V.type=="restricted_atBlock")?(V=V.prev,dr=V.indent):(Qe==")"&&(V.type=="parens"||V.type=="atBlock_parens")||Qe=="{"&&(V.type=="at"||V.type=="atBlock"))&&(dr=Math.max(0,V.indent-W))),dr},electricChars:"}",blockCommentStart:"/*",blockCommentEnd:"*/",blockCommentContinue:" * ",lineComment:_e,fold:"brace"}});function c(ve){for(var Ce={},it=0;it<ve.length;++it)Ce[ve[it].toLowerCase()]=!0;return Ce}var f=["domain","regexp","url","url-prefix"],p=c(f),b=["all","aural","braille","handheld","print","projection","screen","tty","tv","embossed"],M=c(b),S=["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"],O=c(S),I=["landscape","portrait","none","coarse","fine","on-demand","hover","interlace","progressive","dark","light"],U=c(I),q=["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"],X=c(q),ce=["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"],xe=c(ce),ye=["font-display","font-family","src","unicode-range","font-variant","font-feature-settings","font-stretch","font-weight","font-style"],Ae=c(ye),Ie=["additive-symbols","fallback","negative","pad","prefix","range","speak-as","suffix","symbols","system"],pe=c(Ie),he=["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"],Te=c(he),He=["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"],Ye=c(He),et=f.concat(b).concat(S).concat(I).concat(q).concat(ce).concat(he).concat(He);o.registerHelper("hintWords","css",et);function nt(ve,Ce){for(var it=!1,W;(W=ve.next())!=null;){if(it&&W=="/"){Ce.tokenize=null;break}it=W=="*"}return["comment","comment"]}o.defineMIME("text/css",{documentTypes:p,mediaTypes:M,mediaFeatures:O,mediaValueKeywords:U,propertyKeywords:X,nonStandardPropertyKeywords:xe,fontProperties:Ae,counterDescriptors:pe,colorKeywords:Te,valueKeywords:Ye,tokenHooks:{"/":function(ve,Ce){return ve.eat("*")?(Ce.tokenize=nt,nt(ve,Ce)):!1}},name:"css"}),o.defineMIME("text/x-scss",{mediaTypes:M,mediaFeatures:O,mediaValueKeywords:U,propertyKeywords:X,nonStandardPropertyKeywords:xe,colorKeywords:Te,valueKeywords:Ye,fontProperties:Ae,allowNested:!0,lineComment:"//",tokenHooks:{"/":function(ve,Ce){return ve.eat("/")?(ve.skipToEnd(),["comment","comment"]):ve.eat("*")?(Ce.tokenize=nt,nt(ve,Ce)):["operator","operator"]},":":function(ve){return ve.match(/^\s*\{/,!1)?[null,null]:!1},$:function(ve){return ve.match(/^[\w-]+/),ve.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2","variable"]},"#":function(ve){return ve.eat("{")?[null,"interpolation"]:!1}},name:"css",helperType:"scss"}),o.defineMIME("text/x-less",{mediaTypes:M,mediaFeatures:O,mediaValueKeywords:U,propertyKeywords:X,nonStandardPropertyKeywords:xe,colorKeywords:Te,valueKeywords:Ye,fontProperties:Ae,allowNested:!0,lineComment:"//",tokenHooks:{"/":function(ve,Ce){return ve.eat("/")?(ve.skipToEnd(),["comment","comment"]):ve.eat("*")?(Ce.tokenize=nt,nt(ve,Ce)):["operator","operator"]},"@":function(ve){return ve.eat("{")?[null,"interpolation"]:ve.match(/^(charset|document|font-face|import|(-(moz|ms|o|webkit)-)?keyframes|media|namespace|page|supports)\b/i,!1)?!1:(ve.eatWhile(/[\w\\\-]/),ve.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2","variable"])},"&":function(){return["atom","atom"]}},name:"css",helperType:"less"}),o.defineMIME("text/x-gss",{documentTypes:p,mediaTypes:M,mediaFeatures:O,propertyKeywords:X,nonStandardPropertyKeywords:xe,fontProperties:Ae,counterDescriptors:pe,colorKeywords:Te,valueKeywords:Ye,supportsAtComponent:!0,tokenHooks:{"/":function(ve,Ce){return ve.eat("*")?(Ce.tokenize=nt,nt(ve,Ce)):!1}},name:"css",helperType:"gss"})})}()),Ep.exports}(function(r,n){(function(o){o(es(),u8.exports,q2(),c8())})(function(o){var c={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 f(U,q,X){var ce=U.current(),xe=ce.search(q);return xe>-1?U.backUp(ce.length-xe):ce.match(/<\/?$/)&&(U.backUp(ce.length),U.match(q,!1)||U.match(ce)),X}var p={};function b(U){var q=p[U];return q||(p[U]=new RegExp("\\s+"+U+`\\s*=\\s*('|")?([^'"]+)('|")?\\s*`))}function M(U,q){var X=U.match(b(q));return X?/^\s*(.*?)\s*$/.exec(X[2])[1]:""}function S(U,q){return new RegExp((q?"^":"")+"</s*"+U+"s*>","i")}function O(U,q){for(var X in U)for(var ce=q[X]||(q[X]=[]),xe=U[X],ye=xe.length-1;ye>=0;ye--)ce.unshift(xe[ye])}function I(U,q){for(var X=0;X<U.length;X++){var ce=U[X];if(!ce[0]||ce[1].test(M(q,ce[0])))return ce[2]}}o.defineMode("htmlmixed",function(U,q){var X=o.getMode(U,{name:"xml",htmlMode:!0,multilineTagIndentFactor:q.multilineTagIndentFactor,multilineTagIndentPastTag:q.multilineTagIndentPastTag,allowMissingTagName:q.allowMissingTagName}),ce={},xe=q&&q.tags,ye=q&&q.scriptTypes;if(O(c,ce),xe&&O(xe,ce),ye)for(var Ae=ye.length-1;Ae>=0;Ae--)ce.script.unshift(["type",ye[Ae].matches,ye[Ae].mode]);function Ie(pe,he){var Te=X.token(pe,he.htmlState),He=/\btag\b/.test(Te),Ye;if(He&&!/[<>\s\/]/.test(pe.current())&&(Ye=he.htmlState.tagName&&he.htmlState.tagName.toLowerCase())&&ce.hasOwnProperty(Ye))he.inTag=Ye+" ";else if(he.inTag&&He&&/>$/.test(pe.current())){var et=/^([\S]+) (.*)/.exec(he.inTag);he.inTag=null;var nt=pe.current()==">"&&I(ce[et[1]],et[2]),ve=o.getMode(U,nt),Ce=S(et[1],!0),it=S(et[1],!1);he.token=function(W,E){return W.match(Ce,!1)?(E.token=Ie,E.localState=E.localMode=null,null):f(W,it,E.localMode.token(W,E.localState))},he.localMode=ve,he.localState=o.startState(ve,X.indent(he.htmlState,"",""))}else he.inTag&&(he.inTag+=pe.current(),pe.eol()&&(he.inTag+=" "));return Te}return{startState:function(){var pe=o.startState(X);return{token:Ie,inTag:null,localMode:null,localState:null,htmlState:pe}},copyState:function(pe){var he;return pe.localState&&(he=o.copyState(pe.localMode,pe.localState)),{token:pe.token,inTag:pe.inTag,localMode:pe.localMode,localState:he,htmlState:o.copyState(X,pe.htmlState)}},token:function(pe,he){return he.token(pe,he)},indent:function(pe,he,Te){return!pe.localMode||/^\s*<\//.test(he)?X.indent(pe.htmlState,he,Te):pe.localMode.indent?pe.localMode.indent(pe.localState,he,Te):o.Pass},innerMode:function(pe){return{state:pe.localState||pe.htmlState,mode:pe.localMode||X}}}},"xml","javascript","css"),o.defineMIME("text/html","htmlmixed")})})();(function(r,n){(function(o){o(es())})(function(o){o.defineOption("placeholder","",function(O,I,U){var q=U&&U!=o.Init;if(I&&!q)O.on("blur",b),O.on("change",M),O.on("swapDoc",M),o.on(O.getInputField(),"compositionupdate",O.state.placeholderCompose=function(){p(O)}),M(O);else if(!I&&q){O.off("blur",b),O.off("change",M),O.off("swapDoc",M),o.off(O.getInputField(),"compositionupdate",O.state.placeholderCompose),c(O);var X=O.getWrapperElement();X.className=X.className.replace(" CodeMirror-empty","")}I&&!O.hasFocus()&&b(O)});function c(O){O.state.placeholder&&(O.state.placeholder.parentNode.removeChild(O.state.placeholder),O.state.placeholder=null)}function f(O){c(O);var I=O.state.placeholder=document.createElement("pre");I.style.cssText="height: 0; overflow: visible",I.style.direction=O.getOption("direction"),I.className="CodeMirror-placeholder CodeMirror-line-like";var U=O.getOption("placeholder");typeof U=="string"&&(U=document.createTextNode(U)),I.appendChild(U),O.display.lineSpace.insertBefore(I,O.display.lineSpace.firstChild)}function p(O){setTimeout(function(){var I=!1;if(O.lineCount()==1){var U=O.getInputField();I=U.nodeName=="TEXTAREA"?!O.getLine(0).length:!/[^\u200b]/.test(U.querySelector(".CodeMirror-line").textContent)}I?f(O):c(O)},20)}function b(O){S(O)&&f(O)}function M(O){var I=O.getWrapperElement(),U=S(O);I.className=I.className.replace(" CodeMirror-empty","")+(U?" CodeMirror-empty":""),U?f(O):c(O)}function S(O){return O.lineCount()===1&&O.getLine(0)===""}})})();var f8=Object.defineProperty,d8=Object.getOwnPropertyDescriptor,pu=(r,n,o,c)=>{for(var f=c>1?void 0:c?d8(n,o):n,p=r.length-1,b;p>=0;p--)(b=r[p])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&f8(n,o,f),f};b0.defineMode("nunjucks",(r,n)=>b0.overlayMode(b0.getMode(r,n.backdrop||"text/html"),b0.getMode(r,"jinja2")));const j2=Ee("input-code"),h8={json:{name:"javascript",json:!0},javascript:"javascript",nunjucks:"nunjucks"};exports.InputCode=class extends Rn{constructor(){super(...arguments),this.mode="nunjucks",this.size="x-large",this.height=10,this.hideLineNumbers=!1}changeHandler(r){this.value=r.getValue(),this.dispatchChange()}updated(){var r,n;super.updated(),this.value!==this.editorValue&&(this.editorValue=this.value||""),this.readonly!==((r=this.editor)==null?void 0:r.isReadOnly())&&((n=this.editor)==null||n.setOption("readOnly",this.readonly)),setTimeout(()=>{var o;return(o=this.editor)==null?void 0:o.refresh()})}get editorValue(){var r;return((r=this.editor)==null?void 0:r.getDoc().getValue())||""}set editorValue(r){var n;(n=this.editor)==null||n.setValue(r)}firstUpdated(){var n;const r=(n=this.shadowRoot)==null?void 0:n.querySelector(".editor");r&&(this.editor=b0.fromTextArea(r,{mode:h8[this.mode],value:this.value,lineNumbers:!this.hideLineNumbers,readOnly:this.readonly,smartIndent:!0,theme:"skedulo"}),this.editor.setSize("100%",`${24*this.height}px`),this.editor.setOption("extraKeys",{Tab:o=>{const c=Array((o.getOption("indentUnit")||0)+1).join(" ");o.replaceSelection(c)}}),this.editor.on("change",this.changeHandler.bind(this)),setTimeout(()=>{var o;return(o=this.editor)==null?void 0:o.refresh()}))}disconnectedCallback(){var r;super.disconnectedCallback(),(r=this.editor)==null||r.off("change",this.changeHandler)}renderInput(){return ee`
2310
+ `;(function(r,n){(function(o){o(es())})(function(o){o.overlayMode=function(c,f,p){return{startState:function(){return{base:o.startState(c),overlay:o.startState(f),basePos:0,baseCur:null,overlayPos:0,overlayCur:null,streamSeen:null}},copyState:function(b){return{base:o.copyState(c,b.base),overlay:o.copyState(f,b.overlay),basePos:b.basePos,baseCur:null,overlayPos:b.overlayPos,overlayCur:null}},token:function(b,k){return(b!=k.streamSeen||Math.min(k.basePos,k.overlayPos)<b.start)&&(k.streamSeen=b,k.basePos=k.overlayPos=b.start),b.start==k.basePos&&(k.baseCur=c.token(b,k.base),k.basePos=b.pos),b.start==k.overlayPos&&(b.pos=b.start,k.overlayCur=f.token(b,k.overlay),k.overlayPos=b.pos),b.pos=Math.min(k.basePos,k.overlayPos),k.overlayCur==null?k.baseCur:k.baseCur!=null&&k.overlay.combineTokens||p&&k.overlay.combineTokens==null?k.baseCur+" "+k.overlayCur:k.overlayCur},indent:c.indent&&function(b,k,S){return c.indent(b.base,k,S)},electricChars:c.electricChars,innerMode:function(b){return{state:b.base,mode:c}},blankLine:function(b){var k,S;return c.blankLine&&(k=c.blankLine(b.base)),f.blankLine&&(S=f.blankLine(b.overlay)),S==null?k:p&&k!=null?k+" "+S:S}}}})})();(function(r,n){(function(o){o(es())})(function(o){o.defineMode("jinja2",function(){var c=["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"],f=/^[+\-*&%=<>!?|~^]/,p=/^[:\[\(\{]/,b=["true","false"],k=/^(\d[+\-\*\/])?\d+(\.\d+)?/;c=new RegExp("(("+c.join(")|(")+"))\\b"),b=new RegExp("(("+b.join(")|(")+"))\\b");function S(O,I){var U=O.peek();if(I.incomment)return O.skipTo("#}")?(O.eatWhile(/\#|}/),I.incomment=!1):O.skipToEnd(),"comment";if(I.intag){if(I.operator){if(I.operator=!1,O.match(b))return"atom";if(O.match(k))return"number"}if(I.sign){if(I.sign=!1,O.match(b))return"atom";if(O.match(k))return"number"}if(I.instring)return U==I.instring&&(I.instring=!1),O.next(),"string";if(U=="'"||U=='"')return I.instring=U,O.next(),"string";if(O.match(I.intag+"}")||O.eat("-")&&O.match(I.intag+"}"))return I.intag=!1,"tag";if(O.match(f))return I.operator=!0,"operator";if(O.match(p))I.sign=!0;else if(O.eat(" ")||O.sol()){if(O.match(c))return"keyword";if(O.match(b))return"atom";if(O.match(k))return"number";O.sol()&&O.next()}else O.next();return"variable"}else if(O.eat("{")){if(O.eat("#"))return I.incomment=!0,O.skipTo("#}")?(O.eatWhile(/\#|}/),I.incomment=!1):O.skipToEnd(),"comment";if(U=O.eat(/\{|%/))return I.intag=U,U=="{"&&(I.intag="}"),O.eat("-"),"tag"}O.next()}return{startState:function(){return{tokenize:S}},token:function(O,I){return I.tokenize(O,I)},blockCommentStart:"{#",blockCommentEnd:"#}"}}),o.defineMIME("text/jinja2","jinja2")})})();var u8={exports:{}};(function(r,n){(function(o){o(es())})(function(o){var c={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},f={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};o.defineMode("xml",function(p,b){var k=p.indentUnit,S={},O=b.htmlMode?c:f;for(var I in O)S[I]=O[I];for(var I in b)S[I]=b[I];var U,q;function X(E,T){function ne(At){return T.tokenize=At,At(E,T)}var be=E.next();if(be=="<")return E.eat("!")?E.eat("[")?E.match("CDATA[")?ne(ye("atom","]]>")):null:E.match("--")?ne(ye("comment","-->")):E.match("DOCTYPE",!0,!0)?(E.eatWhile(/[\w\._\-]/),ne(Ae(1))):null:E.eat("?")?(E.eatWhile(/[\w\._\-]/),T.tokenize=ye("meta","?>"),"meta"):(U=E.eat("/")?"closeTag":"openTag",T.tokenize=ce,"tag bracket");if(be=="&"){var ot;return E.eat("#")?E.eat("x")?ot=E.eatWhile(/[a-fA-F\d]/)&&E.eat(";"):ot=E.eatWhile(/[\d]/)&&E.eat(";"):ot=E.eatWhile(/[\w\.\-:]/)&&E.eat(";"),ot?"atom":"error"}else return E.eatWhile(/[^&<]/),null}X.isInText=!0;function ce(E,T){var ne=E.next();if(ne==">"||ne=="/"&&E.eat(">"))return T.tokenize=X,U=ne==">"?"endTag":"selfcloseTag","tag bracket";if(ne=="=")return U="equals",null;if(ne=="<"){T.tokenize=X,T.state=Te,T.tagName=T.tagStart=null;var be=T.tokenize(E,T);return be?be+" tag error":"tag error"}else return/[\'\"]/.test(ne)?(T.tokenize=xe(ne),T.stringStartCol=E.column(),T.tokenize(E,T)):(E.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function xe(E){var T=function(ne,be){for(;!ne.eol();)if(ne.next()==E){be.tokenize=ce;break}return"string"};return T.isInAttribute=!0,T}function ye(E,T){return function(ne,be){for(;!ne.eol();){if(ne.match(T)){be.tokenize=X;break}ne.next()}return E}}function Ae(E){return function(T,ne){for(var be;(be=T.next())!=null;){if(be=="<")return ne.tokenize=Ae(E+1),ne.tokenize(T,ne);if(be==">")if(E==1){ne.tokenize=X;break}else return ne.tokenize=Ae(E-1),ne.tokenize(T,ne)}return"meta"}}function Ie(E,T,ne){this.prev=E.context,this.tagName=T||"",this.indent=E.indented,this.startOfLine=ne,(S.doNotIndent.hasOwnProperty(T)||E.context&&E.context.noIndent)&&(this.noIndent=!0)}function pe(E){E.context&&(E.context=E.context.prev)}function he(E,T){for(var ne;;){if(!E.context||(ne=E.context.tagName,!S.contextGrabbers.hasOwnProperty(ne)||!S.contextGrabbers[ne].hasOwnProperty(T)))return;pe(E)}}function Te(E,T,ne){return E=="openTag"?(ne.tagStart=T.column(),He):E=="closeTag"?Ye:Te}function He(E,T,ne){return E=="word"?(ne.tagName=T.current(),q="tag",ve):S.allowMissingTagName&&E=="endTag"?(q="tag bracket",ve(E,T,ne)):(q="error",He)}function Ye(E,T,ne){if(E=="word"){var be=T.current();return ne.context&&ne.context.tagName!=be&&S.implicitlyClosed.hasOwnProperty(ne.context.tagName)&&pe(ne),ne.context&&ne.context.tagName==be||S.matchClosing===!1?(q="tag",et):(q="tag error",nt)}else return S.allowMissingTagName&&E=="endTag"?(q="tag bracket",et(E,T,ne)):(q="error",nt)}function et(E,T,ne){return E!="endTag"?(q="error",et):(pe(ne),Te)}function nt(E,T,ne){return q="error",et(E,T,ne)}function ve(E,T,ne){if(E=="word")return q="attribute",Ce;if(E=="endTag"||E=="selfcloseTag"){var be=ne.tagName,ot=ne.tagStart;return ne.tagName=ne.tagStart=null,E=="selfcloseTag"||S.autoSelfClosers.hasOwnProperty(be)?he(ne,be):(he(ne,be),ne.context=new Ie(ne,be,ot==ne.indented)),Te}return q="error",ve}function Ce(E,T,ne){return E=="equals"?it:(S.allowMissing||(q="error"),ve(E,T,ne))}function it(E,T,ne){return E=="string"?W:E=="word"&&S.allowUnquoted?(q="string",ve):(q="error",ve(E,T,ne))}function W(E,T,ne){return E=="string"?W:ve(E,T,ne)}return{startState:function(E){var T={tokenize:X,state:Te,indented:E||0,tagName:null,tagStart:null,context:null};return E!=null&&(T.baseIndent=E),T},token:function(E,T){if(!T.tagName&&E.sol()&&(T.indented=E.indentation()),E.eatSpace())return null;U=null;var ne=T.tokenize(E,T);return(ne||U)&&ne!="comment"&&(q=null,T.state=T.state(U||ne,E,T),q&&(ne=q=="error"?ne+" error":q)),ne},indent:function(E,T,ne){var be=E.context;if(E.tokenize.isInAttribute)return E.tagStart==E.indented?E.stringStartCol+1:E.indented+k;if(be&&be.noIndent)return o.Pass;if(E.tokenize!=ce&&E.tokenize!=X)return ne?ne.match(/^(\s*)/)[0].length:0;if(E.tagName)return S.multilineTagIndentPastTag!==!1?E.tagStart+E.tagName.length+2:E.tagStart+k*(S.multilineTagIndentFactor||1);if(S.alignCDATA&&/<!\[CDATA\[/.test(T))return 0;var ot=T&&/^<(\/)?([\w_:\.-]*)/.exec(T);if(ot&&ot[1])for(;be;)if(be.tagName==ot[2]){be=be.prev;break}else if(S.implicitlyClosed.hasOwnProperty(be.tagName))be=be.prev;else break;else if(ot)for(;be;){var At=S.contextGrabbers[be.tagName];if(At&&At.hasOwnProperty(ot[2]))be=be.prev;else break}for(;be&&be.prev&&!be.startOfLine;)be=be.prev;return be?be.indent+k:E.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:S.htmlMode?"html":"xml",helperType:S.htmlMode?"html":"xml",skipAttribute:function(E){E.state==it&&(E.state=ve)},xmlCurrentTag:function(E){return E.tagName?{name:E.tagName,close:E.type=="closeTag"}:null},xmlCurrentContext:function(E){for(var T=[],ne=E.context;ne;ne=ne.prev)T.push(ne.tagName);return T.reverse()}}}),o.defineMIME("text/xml","xml"),o.defineMIME("application/xml","xml"),o.mimeModes.hasOwnProperty("text/html")||o.defineMIME("text/html",{name:"xml",htmlMode:!0})})})();var Pp={exports:{}},Ap;function q2(){return Ap||(Ap=1,function(r,n){(function(o){o(es())})(function(o){o.defineMode("javascript",function(c,f){var p=c.indentUnit,b=f.statementIndent,k=f.jsonld,S=f.json||k,O=f.trackScope!==!1,I=f.typescript,U=f.wordCharacters||/[\w$\xa1-\uffff]/,q=function(){function w(Or){return{type:Or,style:"keyword"}}var P=w("keyword a"),j=w("keyword b"),ae=w("keyword c"),qe=w("keyword d"),vt=w("operator"),me={type:"atom",style:"atom"};return{if:w("if"),while:P,with:P,else:j,do:j,try:j,finally:j,return:qe,break:qe,continue:qe,new:w("new"),delete:ae,void:ae,throw:ae,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:vt,typeof:vt,instanceof:vt,true:me,false:me,null:me,undefined:me,NaN:me,Infinity:me,this:w("this"),class:w("class"),super:w("atom"),yield:ae,export:w("export"),import:w("import"),extends:ae,await:ae}}(),X=/[+\-*&%=<>!?|~^@]/,ce=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function xe(w){for(var P=!1,j,ae=!1;(j=w.next())!=null;){if(!P){if(j=="/"&&!ae)return;j=="["?ae=!0:ae&&j=="]"&&(ae=!1)}P=!P&&j=="\\"}}var ye,Ae;function Ie(w,P,j){return ye=w,Ae=j,P}function pe(w,P){var j=w.next();if(j=='"'||j=="'")return P.tokenize=he(j),P.tokenize(w,P);if(j=="."&&w.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return Ie("number","number");if(j=="."&&w.match(".."))return Ie("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(j))return Ie(j);if(j=="="&&w.eat(">"))return Ie("=>","operator");if(j=="0"&&w.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return Ie("number","number");if(/\d/.test(j))return w.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),Ie("number","number");if(j=="/")return w.eat("*")?(P.tokenize=Te,Te(w,P)):w.eat("/")?(w.skipToEnd(),Ie("comment","comment")):ie(w,P,1)?(xe(w),w.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),Ie("regexp","string-2")):(w.eat("="),Ie("operator","operator",w.current()));if(j=="`")return P.tokenize=He,He(w,P);if(j=="#"&&w.peek()=="!")return w.skipToEnd(),Ie("meta","meta");if(j=="#"&&w.eatWhile(U))return Ie("variable","property");if(j=="<"&&w.match("!--")||j=="-"&&w.match("->")&&!/\S/.test(w.string.slice(0,w.start)))return w.skipToEnd(),Ie("comment","comment");if(X.test(j))return(j!=">"||!P.lexical||P.lexical.type!=">")&&(w.eat("=")?(j=="!"||j=="=")&&w.eat("="):/[<>*+\-|&?]/.test(j)&&(w.eat(j),j==">"&&w.eat(j))),j=="?"&&w.eat(".")?Ie("."):Ie("operator","operator",w.current());if(U.test(j)){w.eatWhile(U);var ae=w.current();if(P.lastType!="."){if(q.propertyIsEnumerable(ae)){var qe=q[ae];return Ie(qe.type,qe.style,ae)}if(ae=="async"&&w.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return Ie("async","keyword",ae)}return Ie("variable","variable",ae)}}function he(w){return function(P,j){var ae=!1,qe;if(k&&P.peek()=="@"&&P.match(ce))return j.tokenize=pe,Ie("jsonld-keyword","meta");for(;(qe=P.next())!=null&&!(qe==w&&!ae);)ae=!ae&&qe=="\\";return ae||(j.tokenize=pe),Ie("string","string")}}function Te(w,P){for(var j=!1,ae;ae=w.next();){if(ae=="/"&&j){P.tokenize=pe;break}j=ae=="*"}return Ie("comment","comment")}function He(w,P){for(var j=!1,ae;(ae=w.next())!=null;){if(!j&&(ae=="`"||ae=="$"&&w.eat("{"))){P.tokenize=pe;break}j=!j&&ae=="\\"}return Ie("quasi","string-2",w.current())}var Ye="([{}])";function et(w,P){P.fatArrowAt&&(P.fatArrowAt=null);var j=w.string.indexOf("=>",w.start);if(!(j<0)){if(I){var ae=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(w.string.slice(w.start,j));ae&&(j=ae.index)}for(var qe=0,vt=!1,me=j-1;me>=0;--me){var Or=w.string.charAt(me),on=Ye.indexOf(Or);if(on>=0&&on<3){if(!qe){++me;break}if(--qe==0){Or=="("&&(vt=!0);break}}else if(on>=3&&on<6)++qe;else if(U.test(Or))vt=!0;else if(/["'\/`]/.test(Or))for(;;--me){if(me==0)return;var _i=w.string.charAt(me-1);if(_i==Or&&w.string.charAt(me-2)!="\\"){me--;break}}else if(vt&&!qe){++me;break}}vt&&!qe&&(P.fatArrowAt=me)}}var nt={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function ve(w,P,j,ae,qe,vt){this.indented=w,this.column=P,this.type=j,this.prev=qe,this.info=vt,ae!=null&&(this.align=ae)}function Ce(w,P){if(!O)return!1;for(var j=w.localVars;j;j=j.next)if(j.name==P)return!0;for(var ae=w.context;ae;ae=ae.prev)for(var j=ae.vars;j;j=j.next)if(j.name==P)return!0}function it(w,P,j,ae,qe){var vt=w.cc;for(W.state=w,W.stream=qe,W.marked=null,W.cc=vt,W.style=P,w.lexical.hasOwnProperty("align")||(w.lexical.align=!0);;){var me=vt.length?vt.pop():S?We:at;if(me(j,ae)){for(;vt.length&&vt[vt.length-1].lex;)vt.pop()();return W.marked?W.marked:j=="variable"&&Ce(w,ae)?"variable-2":P}}}var W={state:null,column:null,marked:null,cc:null};function E(){for(var w=arguments.length-1;w>=0;w--)W.cc.push(arguments[w])}function T(){return E.apply(null,arguments),!0}function ne(w,P){for(var j=P;j;j=j.next)if(j.name==w)return!0;return!1}function be(w){var P=W.state;if(W.marked="def",!!O){if(P.context){if(P.lexical.info=="var"&&P.context&&P.context.block){var j=ot(w,P.context);if(j!=null){P.context=j;return}}else if(!ne(w,P.localVars)){P.localVars=new Bt(w,P.localVars);return}}f.globalVars&&!ne(w,P.globalVars)&&(P.globalVars=new Bt(w,P.globalVars))}}function ot(w,P){if(P)if(P.block){var j=ot(w,P.prev);return j?j==P.prev?P:new sr(j,P.vars,!0):null}else return ne(w,P.vars)?P:new sr(P.prev,new Bt(w,P.vars),!1);else return null}function At(w){return w=="public"||w=="private"||w=="protected"||w=="abstract"||w=="readonly"}function sr(w,P,j){this.prev=w,this.vars=P,this.block=j}function Bt(w,P){this.name=w,this.next=P}var dn=new Bt("this",new Bt("arguments",null));function er(){W.state.context=new sr(W.state.context,W.state.localVars,!1),W.state.localVars=dn}function Ft(){W.state.context=new sr(W.state.context,W.state.localVars,!0),W.state.localVars=null}function ut(){W.state.localVars=W.state.context.vars,W.state.context=W.state.context.prev}ut.lex=!0;function _e(w,P){var j=function(){var ae=W.state,qe=ae.indented;if(ae.lexical.type=="stat")qe=ae.lexical.indented;else for(var vt=ae.lexical;vt&&vt.type==")"&&vt.align;vt=vt.prev)qe=vt.indented;ae.lexical=new ve(qe,W.stream.column(),w,null,ae.lexical,P)};return j.lex=!0,j}function Fe(){var w=W.state;w.lexical.prev&&(w.lexical.type==")"&&(w.indented=w.lexical.indented),w.lexical=w.lexical.prev)}Fe.lex=!0;function Ze(w){function P(j){return j==w?T():w==";"||j=="}"||j==")"||j=="]"?E():T(P)}return P}function at(w,P){return w=="var"?T(_e("vardef",P),ns,Ze(";"),Fe):w=="keyword a"?T(_e("form"),qr,at,Fe):w=="keyword b"?T(_e("form"),at,Fe):w=="keyword d"?W.stream.match(/^\s*$/,!1)?T():T(_e("stat"),Xe,Ze(";"),Fe):w=="debugger"?T(Ze(";")):w=="{"?T(_e("}"),Ft,Hr,Fe,ut):w==";"?T():w=="if"?(W.state.lexical.info=="else"&&W.state.cc[W.state.cc.length-1]==Fe&&W.state.cc.pop()(),T(_e("form"),qr,at,Fe,el)):w=="function"?T(Ln):w=="for"?T(_e("form"),Ft,tl,at,ut,Fe):w=="class"||I&&P=="interface"?(W.marked="keyword",T(_e("form",w=="class"?w:P),ga,Fe)):w=="variable"?I&&P=="declare"?(W.marked="keyword",T(at)):I&&(P=="module"||P=="enum"||P=="type")&&W.stream.match(/^\s*\w/,!1)?(W.marked="keyword",P=="enum"?T(Un):P=="type"?T(rl,Ze("operator"),Ge,Ze(";")):T(_e("form"),Kr,Ze("{"),_e("}"),Hr,Fe,Fe)):I&&P=="namespace"?(W.marked="keyword",T(_e("form"),We,at,Fe)):I&&P=="abstract"?(W.marked="keyword",T(at)):T(_e("stat"),Qe):w=="switch"?T(_e("form"),qr,Ze("{"),_e("}","switch"),Ft,Hr,Fe,Fe,ut):w=="case"?T(We,Ze(":")):w=="default"?T(Ze(":")):w=="catch"?T(_e("form"),er,st,at,Fe,ut):w=="export"?T(_e("stat"),os,Fe):w=="import"?T(_e("stat"),Wt,Fe):w=="async"?T(at):P=="@"?T(We,at):E(_e("stat"),We,Ze(";"),Fe)}function st(w){if(w=="(")return T(Li,Ze(")"))}function We(w,P){return lr(w,P,!1)}function Vt(w,P){return lr(w,P,!0)}function qr(w){return w!="("?E():T(_e(")"),Xe,Ze(")"),Fe)}function lr(w,P,j){if(W.state.fatArrowAt==W.stream.start){var ae=j?tt:fr;if(w=="(")return T(er,_e(")"),Zt(Li,")"),Fe,Ze("=>"),ae,ut);if(w=="variable")return E(er,Kr,Ze("=>"),ae,ut)}var qe=j?kt:yt;return nt.hasOwnProperty(w)?T(qe):w=="function"?T(Ln,qe):w=="class"||I&&P=="interface"?(W.marked="keyword",T(_e("form"),Po,Fe)):w=="keyword c"||w=="async"?T(j?Vt:We):w=="("?T(_e(")"),Xe,Ze(")"),Fe,qe):w=="operator"||w=="spread"?T(j?Vt:We):w=="["?T(_e("]"),zt,Fe,qe):w=="{"?zi(Mr,"}",null,qe):w=="quasi"?E($r,qe):w=="new"?T(B(j)):T()}function Xe(w){return w.match(/[;\}\)\],]/)?E():E(We)}function yt(w,P){return w==","?T(Xe):kt(w,P,!1)}function kt(w,P,j){var ae=j==!1?yt:kt,qe=j==!1?We:Vt;if(w=="=>")return T(er,j?tt:fr,ut);if(w=="operator")return/\+\+|--/.test(P)||I&&P=="!"?T(ae):I&&P=="<"&&W.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?T(_e(">"),Zt(Ge,">"),Fe,ae):P=="?"?T(We,Ze(":"),qe):T(qe);if(w=="quasi")return E($r,ae);if(w!=";"){if(w=="(")return zi(Vt,")","call",ae);if(w==".")return T(dr,ae);if(w=="[")return T(_e("]"),Xe,Ze("]"),Fe,ae);if(I&&P=="as")return W.marked="keyword",T(Ge,ae);if(w=="regexp")return W.state.lastType=W.marked="operator",W.stream.backUp(W.stream.pos-W.stream.start-1),T(qe)}}function $r(w,P){return w!="quasi"?E():P.slice(P.length-2)!="${"?T($r):T(Xe,rn)}function rn(w){if(w=="}")return W.marked="string-2",W.state.tokenize=He,T($r)}function fr(w){return et(W.stream,W.state),E(w=="{"?at:We)}function tt(w){return et(W.stream,W.state),E(w=="{"?at:Vt)}function B(w){return function(P){return P=="."?T(w?V:oe):P=="variable"&&I?T(ko,w?kt:yt):E(w?Vt:We)}}function oe(w,P){if(P=="target")return W.marked="keyword",T(yt)}function V(w,P){if(P=="target")return W.marked="keyword",T(kt)}function Qe(w){return w==":"?T(Fe,at):E(yt,Ze(";"),Fe)}function dr(w){if(w=="variable")return W.marked="property",T()}function Mr(w,P){if(w=="async")return W.marked="property",T(Mr);if(w=="variable"||W.style=="keyword"){if(W.marked="property",P=="get"||P=="set")return T($n);var j;return I&&W.state.fatArrowAt==W.stream.start&&(j=W.stream.match(/^\s*:\s*/,!1))&&(W.state.fatArrowAt=W.stream.pos+j[0].length),T(jr)}else{if(w=="number"||w=="string")return W.marked=k?"property":W.style+" property",T(jr);if(w=="jsonld-keyword")return T(jr);if(I&&At(P))return W.marked="keyword",T(Mr);if(w=="[")return T(We,Hn,Ze("]"),jr);if(w=="spread")return T(Vt,jr);if(P=="*")return W.marked="keyword",T(Mr);if(w==":")return E(jr)}}function $n(w){return w!="variable"?E(jr):(W.marked="property",T(Ln))}function jr(w){if(w==":")return T(Vt);if(w=="(")return E(Ln)}function Zt(w,P,j){function ae(qe,vt){if(j?j.indexOf(qe)>-1:qe==","){var me=W.state.lexical;return me.info=="call"&&(me.pos=(me.pos||0)+1),T(function(Or,on){return Or==P||on==P?E():E(w)},ae)}return qe==P||vt==P?T():j&&j.indexOf(";")>-1?E(w):T(Ze(P))}return function(qe,vt){return qe==P||vt==P?T():E(w,ae)}}function zi(w,P,j){for(var ae=3;ae<arguments.length;ae++)W.cc.push(arguments[ae]);return T(_e(P,j),Zt(w,P),Fe)}function Hr(w){return w=="}"?T():E(at,Hr)}function Hn(w,P){if(I){if(w==":")return T(Ge);if(P=="?")return T(Hn)}}function $e(w,P){if(I&&(w==":"||P=="in"))return T(Ge)}function Yi(w){if(I&&w==":")return W.stream.match(/^\s*\w+\s+is\b/,!1)?T(We,kr,Ge):T(Ge)}function kr(w,P){if(P=="is")return W.marked="keyword",T()}function Ge(w,P){if(P=="keyof"||P=="typeof"||P=="infer"||P=="readonly")return W.marked="keyword",T(P=="typeof"?Vt:Ge);if(w=="variable"||P=="void")return W.marked="type",T(hn);if(P=="|"||P=="&")return T(Ge);if(w=="string"||w=="number"||w=="atom")return T(hn);if(w=="[")return T(_e("]"),Zt(Ge,"]",","),Fe,hn);if(w=="{")return T(_e("}"),ha,Fe,hn);if(w=="(")return T(Zt(pa,")"),ir,hn);if(w=="<")return T(Zt(Ge,">"),Ge);if(w=="quasi")return E(Bn,hn)}function ir(w){if(w=="=>")return T(Ge)}function ha(w){return w.match(/[\}\)\]]/)?T():w==","||w==";"?T(ha):E(wr,ha)}function wr(w,P){if(w=="variable"||W.style=="keyword")return W.marked="property",T(wr);if(P=="?"||w=="number"||w=="string")return T(wr);if(w==":")return T(Ge);if(w=="[")return T(Ze("variable"),$e,Ze("]"),wr);if(w=="(")return E(pn,wr);if(!w.match(/[;\}\)\],]/))return T()}function Bn(w,P){return w!="quasi"?E():P.slice(P.length-2)!="${"?T(Bn):T(Ge,xr)}function xr(w){if(w=="}")return W.marked="string-2",W.state.tokenize=He,T(Bn)}function pa(w,P){return w=="variable"&&W.stream.match(/^\s*[?:]/,!1)||P=="?"?T(pa):w==":"?T(Ge):w=="spread"?T(pa):E(Ge)}function hn(w,P){if(P=="<")return T(_e(">"),Zt(Ge,">"),Fe,hn);if(P=="|"||w=="."||P=="&")return T(Ge);if(w=="[")return T(Ge,Ze("]"),hn);if(P=="extends"||P=="implements")return W.marked="keyword",T(Ge);if(P=="?")return T(Ge,Ze(":"),Ge)}function ko(w,P){if(P=="<")return T(_e(">"),Zt(Ge,">"),Fe,hn)}function Zi(){return E(Ge,rs)}function rs(w,P){if(P=="=")return T(Ge)}function ns(w,P){return P=="enum"?(W.marked="keyword",T(Un)):E(Kr,Hn,ni,To)}function Kr(w,P){if(I&&At(P))return W.marked="keyword",T(Kr);if(w=="variable")return be(P),T();if(w=="spread")return T(Kr);if(w=="[")return zi(Oo,"]");if(w=="{")return zi(Js,"}")}function Js(w,P){return w=="variable"&&!W.stream.match(/^\s*:/,!1)?(be(P),T(ni)):(w=="variable"&&(W.marked="property"),w=="spread"?T(Kr):w=="}"?E():w=="["?T(We,Ze("]"),Ze(":"),Js):T(Ze(":"),Kr,ni))}function Oo(){return E(Kr,ni)}function ni(w,P){if(P=="=")return T(Vt)}function To(w){if(w==",")return T(ns)}function el(w,P){if(w=="keyword b"&&P=="else")return T(_e("form","else"),at,Fe)}function tl(w,P){if(P=="await")return T(tl);if(w=="(")return T(_e(")"),is,Fe)}function is(w){return w=="var"?T(ns,Vi):w=="variable"?T(Vi):E(Vi)}function Vi(w,P){return w==")"?T():w==";"?T(Vi):P=="in"||P=="of"?(W.marked="keyword",T(We,Vi)):E(We,Vi)}function Ln(w,P){if(P=="*")return W.marked="keyword",T(Ln);if(w=="variable")return be(P),T(Ln);if(w=="(")return T(er,_e(")"),Zt(Li,")"),Fe,Yi,at,ut);if(I&&P=="<")return T(_e(">"),Zt(Zi,">"),Fe,Ln)}function pn(w,P){if(P=="*")return W.marked="keyword",T(pn);if(w=="variable")return be(P),T(pn);if(w=="(")return T(er,_e(")"),Zt(Li,")"),Fe,Yi,ut);if(I&&P=="<")return T(_e(">"),Zt(Zi,">"),Fe,pn)}function rl(w,P){if(w=="keyword"||w=="variable")return W.marked="type",T(rl);if(P=="<")return T(_e(">"),Zt(Zi,">"),Fe)}function Li(w,P){return P=="@"&&T(We,Li),w=="spread"?T(Li):I&&At(P)?(W.marked="keyword",T(Li)):I&&w=="this"?T(Hn,ni):E(Kr,Hn,ni)}function Po(w,P){return w=="variable"?ga(w,P):Fn(w,P)}function ga(w,P){if(w=="variable")return be(P),T(Fn)}function Fn(w,P){if(P=="<")return T(_e(">"),Zt(Zi,">"),Fe,Fn);if(P=="extends"||P=="implements"||I&&w==",")return P=="implements"&&(W.marked="keyword"),T(I?Ge:We,Fn);if(w=="{")return T(_e("}"),Wn,Fe)}function Wn(w,P){if(w=="async"||w=="variable"&&(P=="static"||P=="get"||P=="set"||I&&At(P))&&W.stream.match(/^\s+[\w$\xa1-\uffff]/,!1))return W.marked="keyword",T(Wn);if(w=="variable"||W.style=="keyword")return W.marked="property",T(gn,Wn);if(w=="number"||w=="string")return T(gn,Wn);if(w=="[")return T(We,Hn,Ze("]"),gn,Wn);if(P=="*")return W.marked="keyword",T(Wn);if(I&&w=="(")return E(pn,Wn);if(w==";"||w==",")return T(Wn);if(w=="}")return T();if(P=="@")return T(We,Wn)}function gn(w,P){if(P=="!"||P=="?")return T(gn);if(w==":")return T(Ge,ni);if(P=="=")return T(Vt);var j=W.state.lexical.prev,ae=j&&j.info=="interface";return E(ae?pn:Ln)}function os(w,P){return P=="*"?(W.marked="keyword",T(nn,Ze(";"))):P=="default"?(W.marked="keyword",T(We,Ze(";"))):w=="{"?T(Zt(as,"}"),nn,Ze(";")):E(at)}function as(w,P){if(P=="as")return W.marked="keyword",T(Ze("variable"));if(w=="variable")return E(Vt,as)}function Wt(w){return w=="string"?T():w=="("?E(We):w=="."?E(yt):E(ke,vn,nn)}function ke(w,P){return w=="{"?zi(ke,"}"):(w=="variable"&&be(P),P=="*"&&(W.marked="keyword"),T(ss))}function vn(w){if(w==",")return T(ke,vn)}function ss(w,P){if(P=="as")return W.marked="keyword",T(ke)}function nn(w,P){if(P=="from")return W.marked="keyword",T(We)}function zt(w){return w=="]"?T():E(Zt(Vt,"]"))}function Un(){return E(_e("form"),Kr,Ze("{"),_e("}"),Zt(Gi,"}"),Fe,Fe)}function Gi(){return E(Kr,ni)}function va(w,P){return w.lastType=="operator"||w.lastType==","||X.test(P.charAt(0))||/[,.]/.test(P.charAt(0))}function ie(w,P,j){return P.tokenize==pe&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(P.lastType)||P.lastType=="quasi"&&/\{\s*$/.test(w.string.slice(0,w.pos-(j||0)))}return{startState:function(w){var P={tokenize:pe,lastType:"sof",cc:[],lexical:new ve((w||0)-p,0,"block",!1),localVars:f.localVars,context:f.localVars&&new sr(null,null,!1),indented:w||0};return f.globalVars&&typeof f.globalVars=="object"&&(P.globalVars=f.globalVars),P},token:function(w,P){if(w.sol()&&(P.lexical.hasOwnProperty("align")||(P.lexical.align=!1),P.indented=w.indentation(),et(w,P)),P.tokenize!=Te&&w.eatSpace())return null;var j=P.tokenize(w,P);return ye=="comment"?j:(P.lastType=ye=="operator"&&(Ae=="++"||Ae=="--")?"incdec":ye,it(P,j,ye,Ae,w))},indent:function(w,P){if(w.tokenize==Te||w.tokenize==He)return o.Pass;if(w.tokenize!=pe)return 0;var j=P&&P.charAt(0),ae=w.lexical,qe;if(!/^\s*else\b/.test(P))for(var vt=w.cc.length-1;vt>=0;--vt){var me=w.cc[vt];if(me==Fe)ae=ae.prev;else if(me!=el&&me!=ut)break}for(;(ae.type=="stat"||ae.type=="form")&&(j=="}"||(qe=w.cc[w.cc.length-1])&&(qe==yt||qe==kt)&&!/^[,\.=+\-*:?[\(]/.test(P));)ae=ae.prev;b&&ae.type==")"&&ae.prev.type=="stat"&&(ae=ae.prev);var Or=ae.type,on=j==Or;return Or=="vardef"?ae.indented+(w.lastType=="operator"||w.lastType==","?ae.info.length+1:0):Or=="form"&&j=="{"?ae.indented:Or=="form"?ae.indented+p:Or=="stat"?ae.indented+(va(w,P)?b||p:0):ae.info=="switch"&&!on&&f.doubleIndentSwitch!=!1?ae.indented+(/^(?:case|default)\b/.test(P)?p:2*p):ae.align?ae.column+(on?0:1):ae.indented+(on?0:p)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:S?null:"/*",blockCommentEnd:S?null:"*/",blockCommentContinue:S?null:" * ",lineComment:S?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:S?"json":"javascript",jsonldMode:k,jsonMode:S,expressionAllowed:ie,skipExpression:function(w){it(w,"atom","atom","true",new o.StringStream("",2,null))}}}),o.registerHelper("wordChars","javascript",/[\w$]/),o.defineMIME("text/javascript","javascript"),o.defineMIME("text/ecmascript","javascript"),o.defineMIME("application/javascript","javascript"),o.defineMIME("application/x-javascript","javascript"),o.defineMIME("application/ecmascript","javascript"),o.defineMIME("application/json",{name:"javascript",json:!0}),o.defineMIME("application/x-json",{name:"javascript",json:!0}),o.defineMIME("application/manifest+json",{name:"javascript",json:!0}),o.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),o.defineMIME("text/typescript",{name:"javascript",typescript:!0}),o.defineMIME("application/typescript",{name:"javascript",typescript:!0})})}()),Pp.exports}q2();var Ep={exports:{}},Ip;function c8(){return Ip||(Ip=1,function(r,n){(function(o){o(es())})(function(o){o.defineMode("css",function(ve,Ce){var it=Ce.inline;Ce.propertyKeywords||(Ce=o.resolveMode("text/css"));var W=ve.indentUnit,E=Ce.tokenHooks,T=Ce.documentTypes||{},ne=Ce.mediaTypes||{},be=Ce.mediaFeatures||{},ot=Ce.mediaValueKeywords||{},At=Ce.propertyKeywords||{},sr=Ce.nonStandardPropertyKeywords||{},Bt=Ce.fontProperties||{},dn=Ce.counterDescriptors||{},er=Ce.colorKeywords||{},Ft=Ce.valueKeywords||{},ut=Ce.allowNested,_e=Ce.lineComment,Fe=Ce.supportsAtComponent===!0,Ze=ve.highlightNonStandardPropertyKeywords!==!1,at,st;function We(B,oe){return at=oe,B}function Vt(B,oe){var V=B.next();if(E[V]){var Qe=E[V](B,oe);if(Qe!==!1)return Qe}if(V=="@")return B.eatWhile(/[\w\\\-]/),We("def",B.current());if(V=="="||(V=="~"||V=="|")&&B.eat("="))return We(null,"compare");if(V=='"'||V=="'")return oe.tokenize=qr(V),oe.tokenize(B,oe);if(V=="#")return B.eatWhile(/[\w\\\-]/),We("atom","hash");if(V=="!")return B.match(/^\s*\w*/),We("keyword","important");if(/\d/.test(V)||V=="."&&B.eat(/\d/))return B.eatWhile(/[\w.%]/),We("number","unit");if(V==="-"){if(/[\d.]/.test(B.peek()))return B.eatWhile(/[\w.%]/),We("number","unit");if(B.match(/^-[\w\\\-]*/))return B.eatWhile(/[\w\\\-]/),B.match(/^\s*:/,!1)?We("variable-2","variable-definition"):We("variable-2","variable");if(B.match(/^\w+-/))return We("meta","meta")}else return/[,+>*\/]/.test(V)?We(null,"select-op"):V=="."&&B.match(/^-?[_a-z][_a-z0-9-]*/i)?We("qualifier","qualifier"):/[:;{}\[\]\(\)]/.test(V)?We(null,V):B.match(/^[\w-.]+(?=\()/)?(/^(url(-prefix)?|domain|regexp)$/i.test(B.current())&&(oe.tokenize=lr),We("variable callee","variable")):/[\w\\\-]/.test(V)?(B.eatWhile(/[\w\\\-]/),We("property","word")):We(null,null)}function qr(B){return function(oe,V){for(var Qe=!1,dr;(dr=oe.next())!=null;){if(dr==B&&!Qe){B==")"&&oe.backUp(1);break}Qe=!Qe&&dr=="\\"}return(dr==B||!Qe&&B!=")")&&(V.tokenize=null),We("string","string")}}function lr(B,oe){return B.next(),B.match(/^\s*[\"\')]/,!1)?oe.tokenize=null:oe.tokenize=qr(")"),We(null,"(")}function Xe(B,oe,V){this.type=B,this.indent=oe,this.prev=V}function yt(B,oe,V,Qe){return B.context=new Xe(V,oe.indentation()+(Qe===!1?0:W),B.context),V}function kt(B){return B.context.prev&&(B.context=B.context.prev),B.context.type}function $r(B,oe,V){return tt[V.context.type](B,oe,V)}function rn(B,oe,V,Qe){for(var dr=Qe||1;dr>0;dr--)V.context=V.context.prev;return $r(B,oe,V)}function fr(B){var oe=B.current().toLowerCase();Ft.hasOwnProperty(oe)?st="atom":er.hasOwnProperty(oe)?st="keyword":st="variable"}var tt={};return tt.top=function(B,oe,V){if(B=="{")return yt(V,oe,"block");if(B=="}"&&V.context.prev)return kt(V);if(Fe&&/@component/i.test(B))return yt(V,oe,"atComponentBlock");if(/^@(-moz-)?document$/i.test(B))return yt(V,oe,"documentTypes");if(/^@(media|supports|(-moz-)?document|import)$/i.test(B))return yt(V,oe,"atBlock");if(/^@(font-face|counter-style)/i.test(B))return V.stateArg=B,"restricted_atBlock_before";if(/^@(-(moz|ms|o|webkit)-)?keyframes$/i.test(B))return"keyframes";if(B&&B.charAt(0)=="@")return yt(V,oe,"at");if(B=="hash")st="builtin";else if(B=="word")st="tag";else{if(B=="variable-definition")return"maybeprop";if(B=="interpolation")return yt(V,oe,"interpolation");if(B==":")return"pseudo";if(ut&&B=="(")return yt(V,oe,"parens")}return V.context.type},tt.block=function(B,oe,V){if(B=="word"){var Qe=oe.current().toLowerCase();return At.hasOwnProperty(Qe)?(st="property","maybeprop"):sr.hasOwnProperty(Qe)?(st=Ze?"string-2":"property","maybeprop"):ut?(st=oe.match(/^\s*:(?:\s|$)/,!1)?"property":"tag","block"):(st+=" error","maybeprop")}else return B=="meta"?"block":!ut&&(B=="hash"||B=="qualifier")?(st="error","block"):tt.top(B,oe,V)},tt.maybeprop=function(B,oe,V){return B==":"?yt(V,oe,"prop"):$r(B,oe,V)},tt.prop=function(B,oe,V){if(B==";")return kt(V);if(B=="{"&&ut)return yt(V,oe,"propBlock");if(B=="}"||B=="{")return rn(B,oe,V);if(B=="(")return yt(V,oe,"parens");if(B=="hash"&&!/^#([0-9a-fA-f]{3,4}|[0-9a-fA-f]{6}|[0-9a-fA-f]{8})$/.test(oe.current()))st+=" error";else if(B=="word")fr(oe);else if(B=="interpolation")return yt(V,oe,"interpolation");return"prop"},tt.propBlock=function(B,oe,V){return B=="}"?kt(V):B=="word"?(st="property","maybeprop"):V.context.type},tt.parens=function(B,oe,V){return B=="{"||B=="}"?rn(B,oe,V):B==")"?kt(V):B=="("?yt(V,oe,"parens"):B=="interpolation"?yt(V,oe,"interpolation"):(B=="word"&&fr(oe),"parens")},tt.pseudo=function(B,oe,V){return B=="meta"?"pseudo":B=="word"?(st="variable-3",V.context.type):$r(B,oe,V)},tt.documentTypes=function(B,oe,V){return B=="word"&&T.hasOwnProperty(oe.current())?(st="tag",V.context.type):tt.atBlock(B,oe,V)},tt.atBlock=function(B,oe,V){if(B=="(")return yt(V,oe,"atBlock_parens");if(B=="}"||B==";")return rn(B,oe,V);if(B=="{")return kt(V)&&yt(V,oe,ut?"block":"top");if(B=="interpolation")return yt(V,oe,"interpolation");if(B=="word"){var Qe=oe.current().toLowerCase();Qe=="only"||Qe=="not"||Qe=="and"||Qe=="or"?st="keyword":ne.hasOwnProperty(Qe)?st="attribute":be.hasOwnProperty(Qe)?st="property":ot.hasOwnProperty(Qe)?st="keyword":At.hasOwnProperty(Qe)?st="property":sr.hasOwnProperty(Qe)?st=Ze?"string-2":"property":Ft.hasOwnProperty(Qe)?st="atom":er.hasOwnProperty(Qe)?st="keyword":st="error"}return V.context.type},tt.atComponentBlock=function(B,oe,V){return B=="}"?rn(B,oe,V):B=="{"?kt(V)&&yt(V,oe,ut?"block":"top",!1):(B=="word"&&(st="error"),V.context.type)},tt.atBlock_parens=function(B,oe,V){return B==")"?kt(V):B=="{"||B=="}"?rn(B,oe,V,2):tt.atBlock(B,oe,V)},tt.restricted_atBlock_before=function(B,oe,V){return B=="{"?yt(V,oe,"restricted_atBlock"):B=="word"&&V.stateArg=="@counter-style"?(st="variable","restricted_atBlock_before"):$r(B,oe,V)},tt.restricted_atBlock=function(B,oe,V){return B=="}"?(V.stateArg=null,kt(V)):B=="word"?(V.stateArg=="@font-face"&&!Bt.hasOwnProperty(oe.current().toLowerCase())||V.stateArg=="@counter-style"&&!dn.hasOwnProperty(oe.current().toLowerCase())?st="error":st="property","maybeprop"):"restricted_atBlock"},tt.keyframes=function(B,oe,V){return B=="word"?(st="variable","keyframes"):B=="{"?yt(V,oe,"top"):$r(B,oe,V)},tt.at=function(B,oe,V){return B==";"?kt(V):B=="{"||B=="}"?rn(B,oe,V):(B=="word"?st="tag":B=="hash"&&(st="builtin"),"at")},tt.interpolation=function(B,oe,V){return B=="}"?kt(V):B=="{"||B==";"?rn(B,oe,V):(B=="word"?st="variable":B!="variable"&&B!="("&&B!=")"&&(st="error"),"interpolation")},{startState:function(B){return{tokenize:null,state:it?"block":"top",stateArg:null,context:new Xe(it?"block":"top",B||0,null)}},token:function(B,oe){if(!oe.tokenize&&B.eatSpace())return null;var V=(oe.tokenize||Vt)(B,oe);return V&&typeof V=="object"&&(at=V[1],V=V[0]),st=V,at!="comment"&&(oe.state=tt[oe.state](at,B,oe)),st},indent:function(B,oe){var V=B.context,Qe=oe&&oe.charAt(0),dr=V.indent;return V.type=="prop"&&(Qe=="}"||Qe==")")&&(V=V.prev),V.prev&&(Qe=="}"&&(V.type=="block"||V.type=="top"||V.type=="interpolation"||V.type=="restricted_atBlock")?(V=V.prev,dr=V.indent):(Qe==")"&&(V.type=="parens"||V.type=="atBlock_parens")||Qe=="{"&&(V.type=="at"||V.type=="atBlock"))&&(dr=Math.max(0,V.indent-W))),dr},electricChars:"}",blockCommentStart:"/*",blockCommentEnd:"*/",blockCommentContinue:" * ",lineComment:_e,fold:"brace"}});function c(ve){for(var Ce={},it=0;it<ve.length;++it)Ce[ve[it].toLowerCase()]=!0;return Ce}var f=["domain","regexp","url","url-prefix"],p=c(f),b=["all","aural","braille","handheld","print","projection","screen","tty","tv","embossed"],k=c(b),S=["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"],O=c(S),I=["landscape","portrait","none","coarse","fine","on-demand","hover","interlace","progressive","dark","light"],U=c(I),q=["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"],X=c(q),ce=["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"],xe=c(ce),ye=["font-display","font-family","src","unicode-range","font-variant","font-feature-settings","font-stretch","font-weight","font-style"],Ae=c(ye),Ie=["additive-symbols","fallback","negative","pad","prefix","range","speak-as","suffix","symbols","system"],pe=c(Ie),he=["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"],Te=c(he),He=["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"],Ye=c(He),et=f.concat(b).concat(S).concat(I).concat(q).concat(ce).concat(he).concat(He);o.registerHelper("hintWords","css",et);function nt(ve,Ce){for(var it=!1,W;(W=ve.next())!=null;){if(it&&W=="/"){Ce.tokenize=null;break}it=W=="*"}return["comment","comment"]}o.defineMIME("text/css",{documentTypes:p,mediaTypes:k,mediaFeatures:O,mediaValueKeywords:U,propertyKeywords:X,nonStandardPropertyKeywords:xe,fontProperties:Ae,counterDescriptors:pe,colorKeywords:Te,valueKeywords:Ye,tokenHooks:{"/":function(ve,Ce){return ve.eat("*")?(Ce.tokenize=nt,nt(ve,Ce)):!1}},name:"css"}),o.defineMIME("text/x-scss",{mediaTypes:k,mediaFeatures:O,mediaValueKeywords:U,propertyKeywords:X,nonStandardPropertyKeywords:xe,colorKeywords:Te,valueKeywords:Ye,fontProperties:Ae,allowNested:!0,lineComment:"//",tokenHooks:{"/":function(ve,Ce){return ve.eat("/")?(ve.skipToEnd(),["comment","comment"]):ve.eat("*")?(Ce.tokenize=nt,nt(ve,Ce)):["operator","operator"]},":":function(ve){return ve.match(/^\s*\{/,!1)?[null,null]:!1},$:function(ve){return ve.match(/^[\w-]+/),ve.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2","variable"]},"#":function(ve){return ve.eat("{")?[null,"interpolation"]:!1}},name:"css",helperType:"scss"}),o.defineMIME("text/x-less",{mediaTypes:k,mediaFeatures:O,mediaValueKeywords:U,propertyKeywords:X,nonStandardPropertyKeywords:xe,colorKeywords:Te,valueKeywords:Ye,fontProperties:Ae,allowNested:!0,lineComment:"//",tokenHooks:{"/":function(ve,Ce){return ve.eat("/")?(ve.skipToEnd(),["comment","comment"]):ve.eat("*")?(Ce.tokenize=nt,nt(ve,Ce)):["operator","operator"]},"@":function(ve){return ve.eat("{")?[null,"interpolation"]:ve.match(/^(charset|document|font-face|import|(-(moz|ms|o|webkit)-)?keyframes|media|namespace|page|supports)\b/i,!1)?!1:(ve.eatWhile(/[\w\\\-]/),ve.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2","variable"])},"&":function(){return["atom","atom"]}},name:"css",helperType:"less"}),o.defineMIME("text/x-gss",{documentTypes:p,mediaTypes:k,mediaFeatures:O,propertyKeywords:X,nonStandardPropertyKeywords:xe,fontProperties:Ae,counterDescriptors:pe,colorKeywords:Te,valueKeywords:Ye,supportsAtComponent:!0,tokenHooks:{"/":function(ve,Ce){return ve.eat("*")?(Ce.tokenize=nt,nt(ve,Ce)):!1}},name:"css",helperType:"gss"})})}()),Ep.exports}(function(r,n){(function(o){o(es(),u8.exports,q2(),c8())})(function(o){var c={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 f(U,q,X){var ce=U.current(),xe=ce.search(q);return xe>-1?U.backUp(ce.length-xe):ce.match(/<\/?$/)&&(U.backUp(ce.length),U.match(q,!1)||U.match(ce)),X}var p={};function b(U){var q=p[U];return q||(p[U]=new RegExp("\\s+"+U+`\\s*=\\s*('|")?([^'"]+)('|")?\\s*`))}function k(U,q){var X=U.match(b(q));return X?/^\s*(.*?)\s*$/.exec(X[2])[1]:""}function S(U,q){return new RegExp((q?"^":"")+"</s*"+U+"s*>","i")}function O(U,q){for(var X in U)for(var ce=q[X]||(q[X]=[]),xe=U[X],ye=xe.length-1;ye>=0;ye--)ce.unshift(xe[ye])}function I(U,q){for(var X=0;X<U.length;X++){var ce=U[X];if(!ce[0]||ce[1].test(k(q,ce[0])))return ce[2]}}o.defineMode("htmlmixed",function(U,q){var X=o.getMode(U,{name:"xml",htmlMode:!0,multilineTagIndentFactor:q.multilineTagIndentFactor,multilineTagIndentPastTag:q.multilineTagIndentPastTag,allowMissingTagName:q.allowMissingTagName}),ce={},xe=q&&q.tags,ye=q&&q.scriptTypes;if(O(c,ce),xe&&O(xe,ce),ye)for(var Ae=ye.length-1;Ae>=0;Ae--)ce.script.unshift(["type",ye[Ae].matches,ye[Ae].mode]);function Ie(pe,he){var Te=X.token(pe,he.htmlState),He=/\btag\b/.test(Te),Ye;if(He&&!/[<>\s\/]/.test(pe.current())&&(Ye=he.htmlState.tagName&&he.htmlState.tagName.toLowerCase())&&ce.hasOwnProperty(Ye))he.inTag=Ye+" ";else if(he.inTag&&He&&/>$/.test(pe.current())){var et=/^([\S]+) (.*)/.exec(he.inTag);he.inTag=null;var nt=pe.current()==">"&&I(ce[et[1]],et[2]),ve=o.getMode(U,nt),Ce=S(et[1],!0),it=S(et[1],!1);he.token=function(W,E){return W.match(Ce,!1)?(E.token=Ie,E.localState=E.localMode=null,null):f(W,it,E.localMode.token(W,E.localState))},he.localMode=ve,he.localState=o.startState(ve,X.indent(he.htmlState,"",""))}else he.inTag&&(he.inTag+=pe.current(),pe.eol()&&(he.inTag+=" "));return Te}return{startState:function(){var pe=o.startState(X);return{token:Ie,inTag:null,localMode:null,localState:null,htmlState:pe}},copyState:function(pe){var he;return pe.localState&&(he=o.copyState(pe.localMode,pe.localState)),{token:pe.token,inTag:pe.inTag,localMode:pe.localMode,localState:he,htmlState:o.copyState(X,pe.htmlState)}},token:function(pe,he){return he.token(pe,he)},indent:function(pe,he,Te){return!pe.localMode||/^\s*<\//.test(he)?X.indent(pe.htmlState,he,Te):pe.localMode.indent?pe.localMode.indent(pe.localState,he,Te):o.Pass},innerMode:function(pe){return{state:pe.localState||pe.htmlState,mode:pe.localMode||X}}}},"xml","javascript","css"),o.defineMIME("text/html","htmlmixed")})})();(function(r,n){(function(o){o(es())})(function(o){o.defineOption("placeholder","",function(O,I,U){var q=U&&U!=o.Init;if(I&&!q)O.on("blur",b),O.on("change",k),O.on("swapDoc",k),o.on(O.getInputField(),"compositionupdate",O.state.placeholderCompose=function(){p(O)}),k(O);else if(!I&&q){O.off("blur",b),O.off("change",k),O.off("swapDoc",k),o.off(O.getInputField(),"compositionupdate",O.state.placeholderCompose),c(O);var X=O.getWrapperElement();X.className=X.className.replace(" CodeMirror-empty","")}I&&!O.hasFocus()&&b(O)});function c(O){O.state.placeholder&&(O.state.placeholder.parentNode.removeChild(O.state.placeholder),O.state.placeholder=null)}function f(O){c(O);var I=O.state.placeholder=document.createElement("pre");I.style.cssText="height: 0; overflow: visible",I.style.direction=O.getOption("direction"),I.className="CodeMirror-placeholder CodeMirror-line-like";var U=O.getOption("placeholder");typeof U=="string"&&(U=document.createTextNode(U)),I.appendChild(U),O.display.lineSpace.insertBefore(I,O.display.lineSpace.firstChild)}function p(O){setTimeout(function(){var I=!1;if(O.lineCount()==1){var U=O.getInputField();I=U.nodeName=="TEXTAREA"?!O.getLine(0).length:!/[^\u200b]/.test(U.querySelector(".CodeMirror-line").textContent)}I?f(O):c(O)},20)}function b(O){S(O)&&f(O)}function k(O){var I=O.getWrapperElement(),U=S(O);I.className=I.className.replace(" CodeMirror-empty","")+(U?" CodeMirror-empty":""),U?f(O):c(O)}function S(O){return O.lineCount()===1&&O.getLine(0)===""}})})();var f8=Object.defineProperty,d8=Object.getOwnPropertyDescriptor,pu=(r,n,o,c)=>{for(var f=c>1?void 0:c?d8(n,o):n,p=r.length-1,b;p>=0;p--)(b=r[p])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&f8(n,o,f),f};b0.defineMode("nunjucks",(r,n)=>b0.overlayMode(b0.getMode(r,n.backdrop||"text/html"),b0.getMode(r,"jinja2")));const j2=Ee("input-code"),h8={json:{name:"javascript",json:!0},javascript:"javascript",nunjucks:"nunjucks"};exports.InputCode=class extends zn{constructor(){super(...arguments),this.mode="nunjucks",this.size="x-large",this.height=10,this.hideLineNumbers=!1}changeHandler(r){this.value=r.getValue(),this.dispatchChange()}updated(){var n,o;super.updated();const r=this.disabled||this.readonly;this.value!==this.editorValue&&(this.editorValue=this.value||""),r!==((n=this.editor)==null?void 0:n.isReadOnly())&&((o=this.editor)==null||o.setOption("readOnly",this.disabled?"nocursor":this.readonly)),setTimeout(()=>{var c;return(c=this.editor)==null?void 0:c.refresh()})}get editorValue(){var r;return((r=this.editor)==null?void 0:r.getDoc().getValue())||""}set editorValue(r){var n;(n=this.editor)==null||n.setValue(r)}firstUpdated(){var n;const r=(n=this.shadowRoot)==null?void 0:n.querySelector(".editor");r&&(this.editor=b0.fromTextArea(r,{mode:h8[this.mode],value:this.value,lineNumbers:!this.hideLineNumbers,readOnly:this.disabled?"nocursor":this.readonly,smartIndent:!0,theme:"skedulo"}),this.editor.setSize("100%",`${24*this.height}px`),this.editor.setOption("extraKeys",{Tab:o=>{const c=Array((o.getOption("indentUnit")||0)+1).join(" ");o.replaceSelection(c)}}),this.editor.on("change",this.changeHandler.bind(this)),setTimeout(()=>{var o;return(o=this.editor)==null?void 0:o.refresh()}))}disconnectedCallback(){var r;super.disconnectedCallback(),(r=this.editor)==null||r.off("change",this.changeHandler)}renderInput(){return ee`
2303
2311
  <textarea class="editor" placeholder="${qt(this.placeholder)}">
2304
2312
  ${this.value}</textarea
2305
2313
  >
2306
- `}};exports.InputCode.styles=[...Rn.styles,ge`
2314
+ `}};exports.InputCode.styles=[...zn.styles,ge`
2307
2315
  ${Zs(s8)}
2308
2316
 
2309
2317
  :host([size="full"]) {
@@ -2324,10 +2332,24 @@ ${this.value}</textarea
2324
2332
  line-height: 24px;
2325
2333
  }
2326
2334
 
2327
- :host([readonly]) .CodeMirror {
2335
+ .CodeMirror:hover {
2336
+ border-color: var(--input-hover-border-color);
2337
+ cursor: text;
2338
+ }
2339
+
2340
+ .CodeMirror.CodeMirror-focused {
2341
+ border-color: var(--input-focus-border-color);
2342
+ }
2343
+
2344
+ :host([readonly]) .CodeMirror,
2345
+ :host([disabled]) .CodeMirror {
2328
2346
  background-color: var(--brz-color-neutral-200);
2329
2347
  }
2330
2348
 
2349
+ :host([disabled]) .CodeMirror {
2350
+ cursor: default;
2351
+ }
2352
+
2331
2353
  .CodeMirror-gutters {
2332
2354
  background-color: var(--brz-color-neutral-200);
2333
2355
  border-color: var(--brz-color-neutral-700);
@@ -2354,17 +2376,17 @@ ${this.value}</textarea
2354
2376
  .CodeMirror pre.CodeMirror-placeholder {
2355
2377
  color: var(--brz-color-neutral-500);
2356
2378
  }
2357
- `,l8];pu([F()],exports.InputCode.prototype,"mode",2);pu([F({reflect:!0})],exports.InputCode.prototype,"size",2);pu([F({type:Number})],exports.InputCode.prototype,"height",2);pu([F({type:Boolean,attribute:"hide-line-numbers"})],exports.InputCode.prototype,"hideLineNumbers",2);pu([pt()],exports.InputCode.prototype,"editor",2);exports.InputCode=pu([Q(j2)],exports.InputCode);var M0={exports:{}};/**
2379
+ `,l8];pu([F()],exports.InputCode.prototype,"mode",2);pu([F({reflect:!0})],exports.InputCode.prototype,"size",2);pu([F({type:Number})],exports.InputCode.prototype,"height",2);pu([F({type:Boolean,attribute:"hide-line-numbers"})],exports.InputCode.prototype,"hideLineNumbers",2);pu([pt()],exports.InputCode.prototype,"editor",2);exports.InputCode=pu([Q(j2)],exports.InputCode);var k0={exports:{}};/**
2358
2380
  * @license
2359
2381
  * Lodash <https://lodash.com/>
2360
2382
  * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
2361
2383
  * Released under MIT license <https://lodash.com/license>
2362
2384
  * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
2363
2385
  * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
2364
- */(function(r,n){(function(){var o,c="4.17.21",f=200,p="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",b="Expected a function",M="Invalid `variable` option passed into `_.template`",S="__lodash_hash_undefined__",O=500,I="__lodash_placeholder__",U=1,q=2,X=4,ce=1,xe=2,ye=1,Ae=2,Ie=4,pe=8,he=16,Te=32,He=64,Ye=128,et=256,nt=512,ve=30,Ce="...",it=800,W=16,E=1,T=2,ne=3,be=1/0,ot=9007199254740991,At=17976931348623157e292,sr=0/0,Bt=4294967295,dn=Bt-1,er=Bt>>>1,Ft=[["ary",Ye],["bind",ye],["bindKey",Ae],["curry",pe],["curryRight",he],["flip",nt],["partial",Te],["partialRight",He],["rearg",et]],ut="[object Arguments]",_e="[object Array]",Fe="[object AsyncFunction]",Ze="[object Boolean]",at="[object Date]",st="[object DOMException]",We="[object Error]",Vt="[object Function]",qr="[object GeneratorFunction]",lr="[object Map]",Xe="[object Number]",yt="[object Null]",Mt="[object Object]",$r="[object Promise]",rn="[object Proxy]",fr="[object RegExp]",tt="[object Set]",B="[object String]",oe="[object Symbol]",V="[object Undefined]",Qe="[object WeakMap]",dr="[object WeakSet]",kr="[object ArrayBuffer]",$n="[object DataView]",jr="[object Float32Array]",Zt="[object Float64Array]",zi="[object Int8Array]",Hr="[object Int16Array]",Hn="[object Int32Array]",$e="[object Uint8Array]",Yi="[object Uint8ClampedArray]",Mr="[object Uint16Array]",Ge="[object Uint32Array]",ir=/\b__p \+= '';/g,ha=/\b(__p \+=) '' \+/g,wr=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Bn=/&(?:amp|lt|gt|quot|#39);/g,xr=/[&<>"']/g,pa=RegExp(Bn.source),hn=RegExp(xr.source),Mo=/<%-([\s\S]+?)%>/g,Zi=/<%([\s\S]+?)%>/g,rs=/<%=([\s\S]+?)%>/g,ns=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Kr=/^\w*$/,Js=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Oo=/[\\^$.*+?()[\]{}|]/g,ni=RegExp(Oo.source),To=/^\s+/,el=/\s/,tl=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,is=/\{\n\/\* \[wrapped with (.+)\] \*/,Vi=/,? & /,zn=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,pn=/[()=,{}\[\]\/\s]/,rl=/\\(\\)?/g,Li=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Po=/\w*$/,ga=/^[-+]0x[0-9a-f]+$/i,Fn=/^0b[01]+$/i,Wn=/^\[object .+?Constructor\]$/,gn=/^0o[0-7]+$/i,os=/^(?:0|[1-9]\d*)$/,as=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Wt=/($^)/,Me=/['\n\r\u2028\u2029\\]/g,vn="\\ud800-\\udfff",ss="\\u0300-\\u036f",nn="\\ufe20-\\ufe2f",zt="\\u20d0-\\u20ff",Un=ss+nn+zt,Gi="\\u2700-\\u27bf",va="a-z\\xdf-\\xf6\\xf8-\\xff",ie="\\xac\\xb1\\xd7\\xf7",w="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",P="\\u2000-\\u206f",j=" \\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",ae="A-Z\\xc0-\\xd6\\xd8-\\xde",qe="\\ufe0e\\ufe0f",vt=ie+w+P+j,me="['\u2019]",Or="["+vn+"]",on="["+vt+"]",_i="["+Un+"]",Yn="\\d+",V0="["+Gi+"]",mu="["+va+"]",ba="[^"+vn+vt+Yn+Gi+va+ae+"]",ls="\\ud83c[\\udffb-\\udfff]",G0="(?:"+_i+"|"+ls+")",nl="[^"+vn+"]",il="(?:\\ud83c[\\udde6-\\uddff]){2}",ol="[\\ud800-\\udbff][\\udc00-\\udfff]",Ao="["+ae+"]",yu="\\u200d",q0="(?:"+mu+"|"+ba+")",af="(?:"+Ao+"|"+ba+")",Cu="(?:"+me+"(?:d|ll|m|re|s|t|ve))?",ii="(?:"+me+"(?:D|LL|M|RE|S|T|VE))?",j0=G0+"?",K0="["+qe+"]?",al="(?:"+yu+"(?:"+[nl,il,ol].join("|")+")"+K0+j0+")*",us="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",sf="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",X0=K0+j0+al,lf="(?:"+[V0,il,ol].join("|")+")"+X0,uf="(?:"+[nl+_i+"?",_i,il,ol,Or].join("|")+")",wu=RegExp(me,"g"),Q0=RegExp(_i,"g"),xu=RegExp(ls+"(?="+ls+")|"+uf+X0,"g"),J0=RegExp([Ao+"?"+mu+"+"+Cu+"(?="+[on,Ao,"$"].join("|")+")",af+"+"+ii+"(?="+[on,Ao+q0,"$"].join("|")+")",Ao+"?"+q0+"+"+Cu,Ao+"+"+ii,sf,us,Yn,lf].join("|"),"g"),ec=RegExp("["+yu+vn+Un+qe+"]"),sl=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,ll=["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"],zu=-1,Ut={};Ut[jr]=Ut[Zt]=Ut[zi]=Ut[Hr]=Ut[Hn]=Ut[$e]=Ut[Yi]=Ut[Mr]=Ut[Ge]=!0,Ut[ut]=Ut[_e]=Ut[kr]=Ut[Ze]=Ut[$n]=Ut[at]=Ut[We]=Ut[Vt]=Ut[lr]=Ut[Xe]=Ut[Mt]=Ut[fr]=Ut[tt]=Ut[B]=Ut[Qe]=!1;var $t={};$t[ut]=$t[_e]=$t[kr]=$t[$n]=$t[Ze]=$t[at]=$t[jr]=$t[Zt]=$t[zi]=$t[Hr]=$t[Hn]=$t[lr]=$t[Xe]=$t[Mt]=$t[fr]=$t[tt]=$t[B]=$t[oe]=$t[$e]=$t[Yi]=$t[Mr]=$t[Ge]=!0,$t[We]=$t[Vt]=$t[Qe]=!1;var ul={\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"},cf={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},tc={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},oi={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},ff=parseFloat,df=parseInt,cl=typeof Jl=="object"&&Jl&&Jl.Object===Object&&Jl,rc=typeof self=="object"&&self&&self.Object===Object&&self,Gt=cl||rc||Function("return this")(),cs=n&&!n.nodeType&&n,Xr=cs&&!0&&r&&!r.nodeType&&r,fs=Xr&&Xr.exports===cs,ds=fs&&cl.process,Tr=function(){try{var $=Xr&&Xr.require&&Xr.require("util").types;return $||ds&&ds.binding&&ds.binding("util")}catch{}}(),nc=Tr&&Tr.isArrayBuffer,ic=Tr&&Tr.isDate,oc=Tr&&Tr.isMap,ac=Tr&&Tr.isRegExp,Lu=Tr&&Tr.isSet,_u=Tr&&Tr.isTypedArray;function bn($,K,Y){switch(Y.length){case 0:return $.call(K);case 1:return $.call(K,Y[0]);case 2:return $.call(K,Y[0],Y[1]);case 3:return $.call(K,Y[0],Y[1],Y[2])}return $.apply(K,Y)}function hf($,K,Y,ke){for(var Je=-1,kt=$==null?0:$.length;++Je<kt;){var pr=$[Je];K(ke,pr,Y(pr),$)}return ke}function Ln($,K){for(var Y=-1,ke=$==null?0:$.length;++Y<ke&&K($[Y],Y,$)!==!1;);return $}function pf($,K){for(var Y=$==null?0:$.length;Y--&&K($[Y],Y,$)!==!1;);return $}function Su($,K){for(var Y=-1,ke=$==null?0:$.length;++Y<ke;)if(!K($[Y],Y,$))return!1;return!0}function qi($,K){for(var Y=-1,ke=$==null?0:$.length,Je=0,kt=[];++Y<ke;){var pr=$[Y];K(pr,Y,$)&&(kt[Je++]=pr)}return kt}function hs($,K){var Y=$==null?0:$.length;return!!Y&&Io($,K,0)>-1}function ma($,K,Y){for(var ke=-1,Je=$==null?0:$.length;++ke<Je;)if(Y(K,$[ke]))return!0;return!1}function Et($,K){for(var Y=-1,ke=$==null?0:$.length,Je=Array(ke);++Y<ke;)Je[Y]=K($[Y],Y,$);return Je}function ji($,K){for(var Y=-1,ke=K.length,Je=$.length;++Y<ke;)$[Je+Y]=K[Y];return $}function ku($,K,Y,ke){var Je=-1,kt=$==null?0:$.length;for(ke&&kt&&(Y=$[++Je]);++Je<kt;)Y=K(Y,$[Je],Je,$);return Y}function gf($,K,Y,ke){var Je=$==null?0:$.length;for(ke&&Je&&(Y=$[--Je]);Je--;)Y=K(Y,$[Je],Je,$);return Y}function Eo($,K){for(var Y=-1,ke=$==null?0:$.length;++Y<ke;)if(K($[Y],Y,$))return!0;return!1}var hr=Ou("length");function vf($){return $.split("")}function sc($){return $.match(zn)||[]}function ya($,K,Y){var ke;return Y($,function(Je,kt,pr){if(K(Je,kt,pr))return ke=kt,!1}),ke}function fl($,K,Y,ke){for(var Je=$.length,kt=Y+(ke?1:-1);ke?kt--:++kt<Je;)if(K($[kt],kt,$))return kt;return-1}function Io($,K,Y){return K===K?pc($,K,Y):fl($,dl,Y)}function bf($,K,Y,ke){for(var Je=Y-1,kt=$.length;++Je<kt;)if(ke($[Je],K))return Je;return-1}function dl($){return $!==$}function Mu($,K){var Y=$==null?0:$.length;return Y?Au($,K)/Y:sr}function Ou($){return function(K){return K==null?o:K[$]}}function Tu($){return function(K){return $==null?o:$[K]}}function Pu($,K,Y,ke,Je){return Je($,function(kt,pr,wt){Y=ke?(ke=!1,kt):K(Y,kt,pr,wt)}),Y}function lc($,K){var Y=$.length;for($.sort(K);Y--;)$[Y]=$[Y].value;return $}function Au($,K){for(var Y,ke=-1,Je=$.length;++ke<Je;){var kt=K($[ke]);kt!==o&&(Y=Y===o?kt:Y+kt)}return Y}function Do($,K){for(var Y=-1,ke=Array($);++Y<$;)ke[Y]=K(Y);return ke}function Si($,K){return Et(K,function(Y){return[Y,$[Y]]})}function ps($){return $&&$.slice(0,bl($)+1).replace(To,"")}function Qr($){return function(K){return $(K)}}function hl($,K){return Et(K,function(Y){return $[Y]})}function an($,K){return $.has(K)}function Ki($,K){for(var Y=-1,ke=$.length;++Y<ke&&Io(K,$[Y],0)>-1;);return Y}function pl($,K){for(var Y=$.length;Y--&&Io(K,$[Y],0)>-1;);return Y}function mf($,K){for(var Y=$.length,ke=0;Y--;)$[Y]===K&&++ke;return ke}var uc=Tu(ul),yf=Tu(cf);function cc($){return"\\"+oi[$]}function Eu($,K){return $==null?o:$[K]}function Zn($){return ec.test($)}function ai($){return sl.test($)}function fc($){for(var K,Y=[];!(K=$.next()).done;)Y.push(K.value);return Y}function gl($){var K=-1,Y=Array($.size);return $.forEach(function(ke,Je){Y[++K]=[Je,ke]}),Y}function dc($,K){return function(Y){return $(K(Y))}}function Xi($,K){for(var Y=-1,ke=$.length,Je=0,kt=[];++Y<ke;){var pr=$[Y];(pr===K||pr===I)&&($[Y]=I,kt[Je++]=Y)}return kt}function vl($){var K=-1,Y=Array($.size);return $.forEach(function(ke){Y[++K]=ke}),Y}function hc($){var K=-1,Y=Array($.size);return $.forEach(function(ke){Y[++K]=[ke,ke]}),Y}function pc($,K,Y){for(var ke=Y-1,Je=$.length;++ke<Je;)if($[ke]===K)return ke;return-1}function gs($,K,Y){for(var ke=Y+1;ke--;)if($[ke]===K)return ke;return ke}function Ro($){return Zn($)?gc($):hr($)}function _n($){return Zn($)?yl($):vf($)}function bl($){for(var K=$.length;K--&&el.test($.charAt(K)););return K}var ml=Tu(tc);function gc($){for(var K=xu.lastIndex=0;xu.test($);)++K;return K}function yl($){return $.match(xu)||[]}function Vn($){return $.match(J0)||[]}var vc=function $(K){K=K==null?Gt:Qi.defaults(Gt.Object(),K,Qi.pick(Gt,ll));var Y=K.Array,ke=K.Date,Je=K.Error,kt=K.Function,pr=K.Math,wt=K.Object,Ji=K.RegExp,Ca=K.String,sn=K.TypeError,wa=Y.prototype,bc=kt.prototype,eo=wt.prototype,si=K["__core-js_shared__"],li=bc.toString,rt=eo.hasOwnProperty,to=0,ki=function(){var i=/[^.]+$/.exec(si&&si.keys&&si.keys.IE_PROTO||"");return i?"Symbol(src)_1."+i:""}(),No=eo.toString,Cf=li.call(wt),mc=Gt._,vs=Ji("^"+li.call(rt).replace(Oo,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),bs=fs?K.Buffer:o,Mi=K.Symbol,$o=K.Uint8Array,yc=bs?bs.allocUnsafe:o,xa=dc(wt.getPrototypeOf,wt),Iu=wt.create,Cl=eo.propertyIsEnumerable,za=wa.splice,Ho=Mi?Mi.isConcatSpreadable:o,ro=Mi?Mi.iterator:o,no=Mi?Mi.toStringTag:o,Bo=function(){try{var i=jo(wt,"defineProperty");return i({},"",{}),i}catch{}}(),wf=K.clearTimeout!==Gt.clearTimeout&&K.clearTimeout,xf=ke&&ke.now!==Gt.Date.now&&ke.now,zf=K.setTimeout!==Gt.setTimeout&&K.setTimeout,La=pr.ceil,_a=pr.floor,io=wt.getOwnPropertySymbols,ms=bs?bs.isBuffer:o,Cc=K.isFinite,wl=wa.join,wc=dc(wt.keys,wt),jt=pr.max,Pr=pr.min,Fo=ke.now,ys=K.parseInt,oo=pr.random,Cs=wa.reverse,ao=jo(K,"DataView"),Sa=jo(K,"Map"),xl=jo(K,"Promise"),Wo=jo(K,"Set"),ws=jo(K,"WeakMap"),Gn=jo(wt,"create"),ui=ws&&new ws,ka={},Lf=Ht(ao),_f=Ht(Sa),Sf=Ht(xl),kf=Ht(Wo),Mf=Ht(ws),Ar=Mi?Mi.prototype:o,Kt=Ar?Ar.valueOf:o,Er=Ar?Ar.toString:o;function z(i){if(cr(i)&&!ct(i)&&!(i instanceof bt)){if(i instanceof Jr)return i;if(rt.call(i,"__wrapped__"))return Zr(i)}return new Jr(i)}var ci=function(){function i(){}return function(l){if(!ar(l))return{};if(Iu)return Iu(l);i.prototype=l;var d=new i;return i.prototype=o,d}}();function zl(){}function Jr(i,l){this.__wrapped__=i,this.__actions__=[],this.__chain__=!!l,this.__index__=0,this.__values__=o}z.templateSettings={escape:Mo,evaluate:Zi,interpolate:rs,variable:"",imports:{_:z}},z.prototype=zl.prototype,z.prototype.constructor=z,Jr.prototype=ci(zl.prototype),Jr.prototype.constructor=Jr;function bt(i){this.__wrapped__=i,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Bt,this.__views__=[]}function Of(){var i=new bt(this.__wrapped__);return i.__actions__=_r(this.__actions__),i.__dir__=this.__dir__,i.__filtered__=this.__filtered__,i.__iteratees__=_r(this.__iteratees__),i.__takeCount__=this.__takeCount__,i.__views__=_r(this.__views__),i}function Tf(){if(this.__filtered__){var i=new bt(this);i.__dir__=-1,i.__filtered__=!0}else i=this.clone(),i.__dir__*=-1;return i}function Du(){var i=this.__wrapped__.value(),l=this.__dir__,d=ct(i),v=l<0,x=d?i.length:0,L=Gl(0,x,this.__views__),A=L.start,D=L.end,H=D-A,te=v?D:A-1,re=this.__iteratees__,se=re.length,Le=0,Ne=Pr(H,this.__takeCount__);if(!d||!v&&x==H&&Ne==H)return Wc(i,this.__actions__);var je=[];e:for(;H--&&Le<Ne;){te+=l;for(var gt=-1,Ke=i[te];++gt<se;){var Ct=re[gt],xt=Ct.iteratee,Kn=Ct.type,xn=xt(Ke);if(Kn==T)Ke=xn;else if(!xn){if(Kn==E)continue e;break e}}je[Le++]=Ke}return je}bt.prototype=ci(zl.prototype),bt.prototype.constructor=bt;function so(i){var l=-1,d=i==null?0:i.length;for(this.clear();++l<d;){var v=i[l];this.set(v[0],v[1])}}function Ru(){this.__data__=Gn?Gn(null):{},this.size=0}function Pf(i){var l=this.has(i)&&delete this.__data__[i];return this.size-=l?1:0,l}function Nu(i){var l=this.__data__;if(Gn){var d=l[i];return d===S?o:d}return rt.call(l,i)?l[i]:o}function $u(i){var l=this.__data__;return Gn?l[i]!==o:rt.call(l,i)}function xc(i,l){var d=this.__data__;return this.size+=this.has(i)?0:1,d[i]=Gn&&l===o?S:l,this}so.prototype.clear=Ru,so.prototype.delete=Pf,so.prototype.get=Nu,so.prototype.has=$u,so.prototype.set=xc;function fi(i){var l=-1,d=i==null?0:i.length;for(this.clear();++l<d;){var v=i[l];this.set(v[0],v[1])}}function Hu(){this.__data__=[],this.size=0}function zc(i){var l=this.__data__,d=Uo(l,i);if(d<0)return!1;var v=l.length-1;return d==v?l.pop():za.call(l,d,1),--this.size,!0}function xs(i){var l=this.__data__,d=Uo(l,i);return d<0?o:l[d][1]}function Af(i){return Uo(this.__data__,i)>-1}function Ll(i,l){var d=this.__data__,v=Uo(d,i);return v<0?(++this.size,d.push([i,l])):d[v][1]=l,this}fi.prototype.clear=Hu,fi.prototype.delete=zc,fi.prototype.get=xs,fi.prototype.has=Af,fi.prototype.set=Ll;function or(i){var l=-1,d=i==null?0:i.length;for(this.clear();++l<d;){var v=i[l];this.set(v[0],v[1])}}function Lc(){this.size=0,this.__data__={hash:new so,map:new(Sa||fi),string:new so}}function Ef(i){var l=Vl(this,i).delete(i);return this.size-=l?1:0,l}function _c(i){return Vl(this,i).get(i)}function mn(i){return Vl(this,i).has(i)}function Lt(i,l){var d=Vl(this,i),v=d.size;return d.set(i,l),this.size+=d.size==v?0:1,this}or.prototype.clear=Lc,or.prototype.delete=Ef,or.prototype.get=_c,or.prototype.has=mn,or.prototype.set=Lt;function Ir(i){var l=-1,d=i==null?0:i.length;for(this.__data__=new or;++l<d;)this.add(i[l])}function lo(i){return this.__data__.set(i,S),this}function uo(i){return this.__data__.has(i)}Ir.prototype.add=Ir.prototype.push=lo,Ir.prototype.has=uo;function Sn(i){var l=this.__data__=new fi(i);this.size=l.size}function Bu(){this.__data__=new fi,this.size=0}function Sc(i){var l=this.__data__,d=l.delete(i);return this.size=l.size,d}function If(i){return this.__data__.get(i)}function Fu(i){return this.__data__.has(i)}function zs(i,l){var d=this.__data__;if(d instanceof fi){var v=d.__data__;if(!Sa||v.length<f-1)return v.push([i,l]),this.size=++d.size,this;d=this.__data__=new or(v)}return d.set(i,l),this.size=d.size,this}Sn.prototype.clear=Bu,Sn.prototype.delete=Sc,Sn.prototype.get=If,Sn.prototype.has=Fu,Sn.prototype.set=zs;function Wu(i,l){var d=ct(i),v=!d&&$s(i),x=!d&&!v&&Va(i),L=!d&&!v&&!x&&jl(i),A=d||v||x||L,D=A?Do(i.length,Ca):[],H=D.length;for(var te in i)(l||rt.call(i,te))&&!(A&&(te=="length"||x&&(te=="offset"||te=="parent")||L&&(te=="buffer"||te=="byteLength"||te=="byteOffset")||m(te,H)))&&D.push(te);return D}function _l(i){var l=i.length;return l?i[Rl(0,l-1)]:o}function co(i,l){return Sr(_r(i),Yo(l,0,i.length))}function kc(i){return Sr(_r(i))}function Sl(i,l,d){(d!==o&&!Ii(i[l],d)||d===o&&!(l in i))&&di(i,l,d)}function Ls(i,l,d){var v=i[l];(!(rt.call(i,l)&&Ii(v,d))||d===o&&!(l in i))&&di(i,l,d)}function Uo(i,l){for(var d=i.length;d--;)if(Ii(i[d][0],l))return d;return-1}function Uu(i,l,d,v){return yn(i,function(x,L,A){l(v,x,d(x),A)}),v}function Yu(i,l){return i&&ln(l,Gr(l),i)}function Df(i,l){return i&&ln(l,Pn(l),i)}function di(i,l,d){l=="__proto__"&&Bo?Bo(i,l,{configurable:!0,enumerable:!0,value:d,writable:!0}):i[l]=d}function Zu(i,l){for(var d=-1,v=l.length,x=Y(v),L=i==null;++d<v;)x[d]=L?o:Xf(i,l[d]);return x}function Yo(i,l,d){return i===i&&(d!==o&&(i=i<=d?i:d),l!==o&&(i=i>=l?i:l)),i}function en(i,l,d,v,x,L){var A,D=l&U,H=l&q,te=l&X;if(d&&(A=x?d(i,v,x,L):d(i)),A!==o)return A;if(!ar(i))return i;var re=ct(i);if(re){if(A=s(i),!D)return _r(i,A)}else{var se=Wr(i),Le=se==Vt||se==qr;if(Va(i))return r0(i,D);if(se==Mt||se==ut||Le&&!x){if(A=H||Le?{}:a(i),!D)return H?Gc(i,Df(A,i)):Uf(i,Yu(A,i))}else{if(!$t[se])return x?i:{};A=u(i,se,D)}}L||(L=new Sn);var Ne=L.get(i);if(Ne)return Ne;L.set(i,A),Vh(i)?i.forEach(function(Ke){A.add(en(Ke,l,d,Ke,i,L))}):Yh(i)&&i.forEach(function(Ke,Ct){A.set(Ct,en(Ke,l,d,Ct,i,L))});var je=te?H?Zl:Rs:H?Pn:Gr,gt=re?o:je(i);return Ln(gt||i,function(Ke,Ct){gt&&(Ct=Ke,Ke=i[Ct]),Ls(A,Ct,en(Ke,l,d,Ct,i,L))}),A}function Mc(i){var l=Gr(i);return function(d){return Oc(d,i,l)}}function Oc(i,l,d){var v=d.length;if(i==null)return!v;for(i=wt(i);v--;){var x=d[v],L=l[x],A=i[x];if(A===o&&!(x in i)||!L(A))return!1}return!0}function Tc(i,l,d){if(typeof i!="function")throw new sn(b);return Rt(function(){i.apply(o,d)},l)}function Ma(i,l,d,v){var x=-1,L=hs,A=!0,D=i.length,H=[],te=l.length;if(!D)return H;d&&(l=Et(l,Qr(d))),v?(L=ma,A=!1):l.length>=f&&(L=an,A=!1,l=new Ir(l));e:for(;++x<D;){var re=i[x],se=d==null?re:d(re);if(re=v||re!==0?re:0,A&&se===se){for(var Le=te;Le--;)if(l[Le]===se)continue e;H.push(re)}else L(l,se,v)||H.push(re)}return H}var yn=qc(Cn),kl=qc(Tl,!0);function Ml(i,l){var d=!0;return yn(i,function(v,x,L){return d=!!l(v,x,L),d}),d}function _s(i,l,d){for(var v=-1,x=i.length;++v<x;){var L=i[v],A=l(L);if(A!=null&&(D===o?A===A&&!jn(A):d(A,D)))var D=A,H=L}return H}function Vu(i,l,d,v){var x=i.length;for(d=dt(d),d<0&&(d=-d>x?0:x+d),v=v===o||v>x?x:dt(v),v<0&&(v+=x),v=d>v?0:qh(v);d<v;)i[d++]=l;return i}function Gu(i,l){var d=[];return yn(i,function(v,x,L){l(v,x,L)&&d.push(v)}),d}function Dr(i,l,d,v,x){var L=-1,A=i.length;for(d||(d=g),x||(x=[]);++L<A;){var D=i[L];l>0&&d(D)?l>1?Dr(D,l-1,d,v,x):ji(x,D):v||(x[x.length]=D)}return x}var Ol=jc(),zr=jc(!0);function Cn(i,l){return i&&Ol(i,l,Gr)}function Tl(i,l){return i&&zr(i,l,Gr)}function Ss(i,l){return qi(l,function(d){return Qo(i[d])})}function fo(i,l){l=qn(l,i);for(var d=0,v=l.length;i!=null&&d<v;)i=i[It(l[d++])];return d&&d==v?i:o}function Zo(i,l,d){var v=l(i);return ct(i)?v:ji(v,d(i))}function Lr(i){return i==null?i===o?V:yt:no&&no in wt(i)?tr(i):ze(i)}function Pl(i,l){return i>l}function Pc(i,l){return i!=null&&rt.call(i,l)}function Ac(i,l){return i!=null&&l in wt(i)}function Oa(i,l,d){return i>=Pr(l,d)&&i<jt(l,d)}function Al(i,l,d){for(var v=d?ma:hs,x=i[0].length,L=i.length,A=L,D=Y(L),H=1/0,te=[];A--;){var re=i[A];A&&l&&(re=Et(re,Qr(l))),H=Pr(re.length,H),D[A]=!d&&(l||x>=120&&re.length>=120)?new Ir(A&&re):o}re=i[0];var se=-1,Le=D[0];e:for(;++se<x&&te.length<H;){var Ne=re[se],je=l?l(Ne):Ne;if(Ne=d||Ne!==0?Ne:0,!(Le?an(Le,je):v(te,je,d))){for(A=L;--A;){var gt=D[A];if(!(gt?an(gt,je):v(i[A],je,d)))continue e}Le&&Le.push(je),te.push(Ne)}}return te}function El(i,l,d,v){return Cn(i,function(x,L,A){l(v,d(x),L,A)}),v}function Ta(i,l,d){l=qn(l,i),i=Pe(i,l);var v=i==null?i:i[It(pi(l))];return v==null?o:bn(v,i,d)}function Pa(i){return cr(i)&&Lr(i)==ut}function Rf(i){return cr(i)&&Lr(i)==kr}function Aa(i){return cr(i)&&Lr(i)==at}function Ea(i,l,d,v,x){return i===l?!0:i==null||l==null||!cr(i)&&!cr(l)?i!==i&&l!==l:Ec(i,l,d,v,Ea,x)}function Ec(i,l,d,v,x,L){var A=ct(i),D=ct(l),H=A?_e:Wr(i),te=D?_e:Wr(l);H=H==ut?Mt:H,te=te==ut?Mt:te;var re=H==Mt,se=te==Mt,Le=H==te;if(Le&&Va(i)){if(!Va(l))return!1;A=!0,re=!1}if(Le&&!re)return L||(L=new Sn),A||jl(i)?l0(i,l,d,v,x,L):r1(i,l,H,d,v,x,L);if(!(d&ce)){var Ne=re&&rt.call(i,"__wrapped__"),je=se&&rt.call(l,"__wrapped__");if(Ne||je){var gt=Ne?i.value():i,Ke=je?l.value():l;return L||(L=new Sn),x(gt,Ke,d,v,L)}}return Le?(L||(L=new Sn),n1(i,l,d,v,x,L)):!1}function Ic(i){return cr(i)&&Wr(i)==lr}function Vo(i,l,d,v){var x=d.length,L=x,A=!v;if(i==null)return!L;for(i=wt(i);x--;){var D=d[x];if(A&&D[2]?D[1]!==i[D[0]]:!(D[0]in i))return!1}for(;++x<L;){D=d[x];var H=D[0],te=i[H],re=D[1];if(A&&D[2]){if(te===o&&!(H in i))return!1}else{var se=new Sn;if(v)var Le=v(te,re,H,i,l,se);if(!(Le===o?Ea(re,te,ce|xe,v,se):Le))return!1}}return!0}function Ia(i){if(!ar(i)||N(i))return!1;var l=Qo(i)?vs:Wn;return l.test(Ht(i))}function ks(i){return cr(i)&&Lr(i)==fr}function Ms(i){return cr(i)&&Wr(i)==tt}function Dc(i){return cr(i)&&c1(i.length)&&!!Ut[Lr(i)]}function Rc(i){return typeof i=="function"?i:i==null?An:typeof i=="object"?ct(i)?qu(i[0],i[1]):Nc(i):op(i)}function Il(i){if(!Z(i))return wc(i);var l=[];for(var d in wt(i))rt.call(i,d)&&d!="constructor"&&l.push(d);return l}function ho(i){if(!ar(i))return de(i);var l=Z(i),d=[];for(var v in i)v=="constructor"&&(l||!rt.call(i,v))||d.push(v);return d}function po(i,l){return i<l}function Da(i,l){var d=-1,v=Tn(i)?Y(i.length):[];return yn(i,function(x,L,A){v[++d]=l(x,L,A)}),v}function Nc(i){var l=Ua(i);return l.length==1&&l[0][2]?le(l[0][0],l[0][1]):function(d){return d===i||Vo(d,i,l)}}function qu(i,l){return C(i)&&J(l)?le(It(i),l):function(d){var v=Xf(d,i);return v===o&&v===l?Qf(d,i):Ea(l,v,ce|xe)}}function Dl(i,l,d,v,x){i!==l&&Ol(l,function(L,A){if(x||(x=new Sn),ar(L))Nf(i,l,A,d,Dl,v,x);else{var D=v?v(Ot(i,A),L,A+"",i,l,x):o;D===o&&(D=L),Sl(i,A,D)}},Pn)}function Nf(i,l,d,v,x,L,A){var D=Ot(i,d),H=Ot(l,d),te=A.get(H);if(te){Sl(i,d,te);return}var re=L?L(D,H,d+"",i,l,A):o,se=re===o;if(se){var Le=ct(H),Ne=!Le&&Va(H),je=!Le&&!Ne&&jl(H);re=H,Le||Ne||je?ct(D)?re=D:br(D)?re=_r(D):Ne?(se=!1,re=r0(H,!0)):je?(se=!1,re=Yc(H,!0)):re=[]:f0(H)||$s(H)?(re=D,$s(D)?re=jh(D):(!ar(D)||Qo(D))&&(re=a(H))):se=!1}se&&(A.set(H,re),x(re,H,v,L,A),A.delete(H)),Sl(i,d,re)}function $c(i,l){var d=i.length;if(!!d)return l+=l<0?d:0,m(l,d)?i[l]:o}function Br(i,l,d){l.length?l=Et(l,function(L){return ct(L)?function(A){return fo(A,L.length===1?L[0]:L)}:L}):l=[An];var v=-1;l=Et(l,Qr(Be()));var x=Da(i,function(L,A,D){var H=Et(l,function(te){return te(L)});return{criteria:H,index:++v,value:L}});return lc(x,function(L,A){return Zc(L,A,d)})}function Hc(i,l){return Bc(i,l,function(d,v){return Qf(i,v)})}function Bc(i,l,d){for(var v=-1,x=l.length,L={};++v<x;){var A=l[v],D=fo(i,A);d(D,A)&&Oi(L,qn(A,i),D)}return L}function $f(i){return function(l){return fo(l,i)}}function ju(i,l,d,v){var x=v?bf:Io,L=-1,A=l.length,D=i;for(i===l&&(l=_r(l)),d&&(D=Et(i,Qr(d)));++L<A;)for(var H=0,te=l[L],re=d?d(te):te;(H=x(D,re,H,v))>-1;)D!==i&&za.call(D,H,1),za.call(i,H,1);return i}function Ku(i,l){for(var d=i?l.length:0,v=d-1;d--;){var x=l[d];if(d==v||x!==L){var L=x;m(x)?za.call(i,x,1):Ps(i,x)}}return i}function Rl(i,l){return i+_a(oo()*(l-i+1))}function Fc(i,l,d,v){for(var x=-1,L=jt(La((l-i)/(d||1)),0),A=Y(L);L--;)A[v?L:++x]=i,i+=d;return A}function Xu(i,l){var d="";if(!i||l<1||l>ot)return d;do l%2&&(d+=i),l=_a(l/2),l&&(i+=i);while(l);return d}function ft(i,l){return Ur(Re(i,l,An),i+"")}function Hf(i){return _l(Kl(i))}function go(i,l){var d=Kl(i);return Sr(d,Yo(l,0,d.length))}function Oi(i,l,d,v){if(!ar(i))return i;l=qn(l,i);for(var x=-1,L=l.length,A=L-1,D=i;D!=null&&++x<L;){var H=It(l[x]),te=d;if(H==="__proto__"||H==="constructor"||H==="prototype")return i;if(x!=A){var re=D[H];te=v?v(re,H,D):o,te===o&&(te=ar(re)?re:m(l[x+1])?[]:{})}Ls(D,H,te),D=D[H]}return i}var Os=ui?function(i,l){return ui.set(i,l),i}:An,Ts=Bo?function(i,l){return Bo(i,"toString",{configurable:!0,enumerable:!1,value:ed(l),writable:!0})}:An;function Ti(i){return Sr(Kl(i))}function kn(i,l,d){var v=-1,x=i.length;l<0&&(l=-l>x?0:x+l),d=d>x?x:d,d<0&&(d+=x),x=l>d?0:d-l>>>0,l>>>=0;for(var L=Y(x);++v<x;)L[v]=i[v+l];return L}function Bf(i,l){var d;return yn(i,function(v,x,L){return d=l(v,x,L),!d}),!!d}function Pi(i,l,d){var v=0,x=i==null?v:i.length;if(typeof l=="number"&&l===l&&x<=er){for(;v<x;){var L=v+x>>>1,A=i[L];A!==null&&!jn(A)&&(d?A<=l:A<l)?v=L+1:x=L}return x}return Nl(i,l,An,d)}function Nl(i,l,d,v){var x=0,L=i==null?0:i.length;if(L===0)return 0;l=d(l);for(var A=l!==l,D=l===null,H=jn(l),te=l===o;x<L;){var re=_a((x+L)/2),se=d(i[re]),Le=se!==o,Ne=se===null,je=se===se,gt=jn(se);if(A)var Ke=v||je;else te?Ke=je&&(v||Le):D?Ke=je&&Le&&(v||!Ne):H?Ke=je&&Le&&!Ne&&(v||!gt):Ne||gt?Ke=!1:Ke=v?se<=l:se<l;Ke?x=re+1:L=re}return Pr(L,dn)}function Qu(i,l){for(var d=-1,v=i.length,x=0,L=[];++d<v;){var A=i[d],D=l?l(A):A;if(!d||!Ii(D,H)){var H=D;L[x++]=A===0?0:A}}return L}function Ju(i){return typeof i=="number"?i:jn(i)?sr:+i}function Fr(i){if(typeof i=="string")return i;if(ct(i))return Et(i,Fr)+"";if(jn(i))return Er?Er.call(i):"";var l=i+"";return l=="0"&&1/i==-be?"-0":l}function wn(i,l,d){var v=-1,x=hs,L=i.length,A=!0,D=[],H=D;if(d)A=!1,x=ma;else if(L>=f){var te=l?null:Ds(i);if(te)return vl(te);A=!1,x=an,H=new Ir}else H=l?[]:D;e:for(;++v<L;){var re=i[v],se=l?l(re):re;if(re=d||re!==0?re:0,A&&se===se){for(var Le=H.length;Le--;)if(H[Le]===se)continue e;l&&H.push(se),D.push(re)}else x(H,se,d)||(H!==D&&H.push(se),D.push(re))}return D}function Ps(i,l){return l=qn(l,i),i=Pe(i,l),i==null||delete i[It(pi(l))]}function $l(i,l,d,v){return Oi(i,l,d(fo(i,l)),v)}function Ra(i,l,d,v){for(var x=i.length,L=v?x:-1;(v?L--:++L<x)&&l(i[L],L,i););return d?kn(i,v?0:L,v?L+1:x):kn(i,v?L+1:0,v?x:L)}function Wc(i,l){var d=i;return d instanceof bt&&(d=d.value()),ku(l,function(v,x){return x.func.apply(x.thisArg,ji([v],x.args))},d)}function Go(i,l,d){var v=i.length;if(v<2)return v?wn(i[0]):[];for(var x=-1,L=Y(v);++x<v;)for(var A=i[x],D=-1;++D<v;)D!=x&&(L[x]=Ma(L[x]||A,i[D],l,d));return wn(Dr(L,1),l,d)}function e0(i,l,d){for(var v=-1,x=i.length,L=l.length,A={};++v<x;){var D=v<L?l[v]:o;d(A,i[v],D)}return A}function t0(i){return br(i)?i:[]}function Hl(i){return typeof i=="function"?i:An}function qn(i,l){return ct(i)?i:C(i,l)?[i]:gr(Nt(i))}var Ff=ft;function vo(i,l,d){var v=i.length;return d=d===o?v:d,!l&&d>=v?i:kn(i,l,d)}var Na=wf||function(i){return Gt.clearTimeout(i)};function r0(i,l){if(l)return i.slice();var d=i.length,v=yc?yc(d):new i.constructor(d);return i.copy(v),v}function Bl(i){var l=new i.constructor(i.byteLength);return new $o(l).set(new $o(i)),l}function Wf(i,l){var d=l?Bl(i.buffer):i.buffer;return new i.constructor(d,i.byteOffset,i.byteLength)}function n0(i){var l=new i.constructor(i.source,Po.exec(i));return l.lastIndex=i.lastIndex,l}function Uc(i){return Kt?wt(Kt.call(i)):{}}function Yc(i,l){var d=l?Bl(i.buffer):i.buffer;return new i.constructor(d,i.byteOffset,i.length)}function i0(i,l){if(i!==l){var d=i!==o,v=i===null,x=i===i,L=jn(i),A=l!==o,D=l===null,H=l===l,te=jn(l);if(!D&&!te&&!L&&i>l||L&&A&&H&&!D&&!te||v&&A&&H||!d&&H||!x)return 1;if(!v&&!L&&!te&&i<l||te&&d&&x&&!v&&!L||D&&d&&x||!A&&x||!H)return-1}return 0}function Zc(i,l,d){for(var v=-1,x=i.criteria,L=l.criteria,A=x.length,D=d.length;++v<A;){var H=i0(x[v],L[v]);if(H){if(v>=D)return H;var te=d[v];return H*(te=="desc"?-1:1)}}return i.index-l.index}function Vc(i,l,d,v){for(var x=-1,L=i.length,A=d.length,D=-1,H=l.length,te=jt(L-A,0),re=Y(H+te),se=!v;++D<H;)re[D]=l[D];for(;++x<A;)(se||x<L)&&(re[d[x]]=i[x]);for(;te--;)re[D++]=i[x++];return re}function Fl(i,l,d,v){for(var x=-1,L=i.length,A=-1,D=d.length,H=-1,te=l.length,re=jt(L-D,0),se=Y(re+te),Le=!v;++x<re;)se[x]=i[x];for(var Ne=x;++H<te;)se[Ne+H]=l[H];for(;++A<D;)(Le||x<L)&&(se[Ne+d[A]]=i[x++]);return se}function _r(i,l){var d=-1,v=i.length;for(l||(l=Y(v));++d<v;)l[d]=i[d];return l}function ln(i,l,d,v){var x=!d;d||(d={});for(var L=-1,A=l.length;++L<A;){var D=l[L],H=v?v(d[D],i[D],D,d,i):o;H===o&&(H=i[D]),x?di(d,D,H):Ls(d,D,H)}return d}function Uf(i,l){return ln(i,u0(i),l)}function Gc(i,l){return ln(i,i1(i),l)}function Wl(i,l){return function(d,v){var x=ct(d)?hf:Uu,L=l?l():{};return x(d,i,Be(v,2),L)}}function $a(i){return ft(function(l,d){var v=-1,x=d.length,L=x>1?d[x-1]:o,A=x>2?d[2]:o;for(L=i.length>3&&typeof L=="function"?(x--,L):o,A&&y(d[0],d[1],A)&&(L=x<3?o:L,x=1),l=wt(l);++v<x;){var D=d[v];D&&i(l,D,v,L)}return l})}function qc(i,l){return function(d,v){if(d==null)return d;if(!Tn(d))return i(d,v);for(var x=d.length,L=l?x:-1,A=wt(d);(l?L--:++L<x)&&v(A[L],L,A)!==!1;);return d}}function jc(i){return function(l,d,v){for(var x=-1,L=wt(l),A=v(l),D=A.length;D--;){var H=A[i?D:++x];if(d(L[H],H,L)===!1)break}return l}}function Kc(i,l,d){var v=l&ye,x=Ba(i);function L(){var A=this&&this!==Gt&&this instanceof L?x:i;return A.apply(v?d:this,arguments)}return L}function Xc(i){return function(l){l=Nt(l);var d=Zn(l)?_n(l):o,v=d?d[0]:l.charAt(0),x=d?vo(d,1).join(""):l.slice(1);return v[i]()+x}}function Ha(i){return function(l){return ku(np(rp(l).replace(wu,"")),i,"")}}function Ba(i){return function(){var l=arguments;switch(l.length){case 0:return new i;case 1:return new i(l[0]);case 2:return new i(l[0],l[1]);case 3:return new i(l[0],l[1],l[2]);case 4:return new i(l[0],l[1],l[2],l[3]);case 5:return new i(l[0],l[1],l[2],l[3],l[4]);case 6:return new i(l[0],l[1],l[2],l[3],l[4],l[5]);case 7:return new i(l[0],l[1],l[2],l[3],l[4],l[5],l[6])}var d=ci(i.prototype),v=i.apply(d,l);return ar(v)?v:d}}function o0(i,l,d){var v=Ba(i);function x(){for(var L=arguments.length,A=Y(L),D=L,H=Wa(x);D--;)A[D]=arguments[D];var te=L<3&&A[0]!==H&&A[L-1]!==H?[]:Xi(A,H);if(L-=te.length,L<d)return e1(i,l,As,x.placeholder,o,A,te,o,o,d-L);var re=this&&this!==Gt&&this instanceof x?v:i;return bn(re,this,A)}return x}function a0(i){return function(l,d,v){var x=wt(l);if(!Tn(l)){var L=Be(d,3);l=Gr(l),d=function(D){return L(x[D],D,x)}}var A=i(l,d,v);return A>-1?x[L?l[A]:A]:o}}function Qc(i){return Ai(function(l){var d=l.length,v=d,x=Jr.prototype.thru;for(i&&l.reverse();v--;){var L=l[v];if(typeof L!="function")throw new sn(b);if(x&&!A&&Ns(L)=="wrapper")var A=new Jr([],!0)}for(v=A?v:d;++v<d;){L=l[v];var D=Ns(L),H=D=="wrapper"?_t(L):o;H&&k(H[0])&&H[1]==(Ye|pe|Te|et)&&!H[4].length&&H[9]==1?A=A[Ns(H[0])].apply(A,H[3]):A=L.length==1&&k(L)?A[D]():A.thru(L)}return function(){var te=arguments,re=te[0];if(A&&te.length==1&&ct(re))return A.plant(re).value();for(var se=0,Le=d?l[se].apply(this,te):re;++se<d;)Le=l[se].call(this,Le);return Le}})}function As(i,l,d,v,x,L,A,D,H,te){var re=l&Ye,se=l&ye,Le=l&Ae,Ne=l&(pe|he),je=l&nt,gt=Le?o:Ba(i);function Ke(){for(var Ct=arguments.length,xt=Y(Ct),Kn=Ct;Kn--;)xt[Kn]=arguments[Kn];if(Ne)var xn=Wa(Ke),Xn=mf(xt,xn);if(v&&(xt=Vc(xt,v,x,Ne)),L&&(xt=Fl(xt,L,A,Ne)),Ct-=Xn,Ne&&Ct<te){var mr=Xi(xt,xn);return e1(i,l,As,Ke.placeholder,d,xt,mr,D,H,te-Ct)}var Di=se?d:this,ea=Le?Di[i]:i;return Ct=xt.length,D?xt=lt(xt,D):je&&Ct>1&&xt.reverse(),re&&H<Ct&&(xt.length=H),this&&this!==Gt&&this instanceof Ke&&(ea=gt||Ba(ea)),ea.apply(Di,xt)}return Ke}function qo(i,l){return function(d,v){return El(d,i,l(v),{})}}function Es(i,l){return function(d,v){var x;if(d===o&&v===o)return l;if(d!==o&&(x=d),v!==o){if(x===o)return v;typeof d=="string"||typeof v=="string"?(d=Fr(d),v=Fr(v)):(d=Ju(d),v=Ju(v)),x=i(d,v)}return x}}function Fa(i){return Ai(function(l){return l=Et(l,Qr(Be())),ft(function(d){var v=this;return i(l,function(x){return bn(x,v,d)})})})}function Ul(i,l){l=l===o?" ":Fr(l);var d=l.length;if(d<2)return d?Xu(l,i):l;var v=Xu(l,La(i/Ro(l)));return Zn(l)?vo(_n(v),0,i).join(""):v.slice(0,i)}function Yf(i,l,d,v){var x=l&ye,L=Ba(i);function A(){for(var D=-1,H=arguments.length,te=-1,re=v.length,se=Y(re+H),Le=this&&this!==Gt&&this instanceof A?L:i;++te<re;)se[te]=v[te];for(;H--;)se[te++]=arguments[++D];return bn(Le,x?d:this,se)}return A}function Jc(i){return function(l,d,v){return v&&typeof v!="number"&&y(l,d,v)&&(d=v=o),l=Jo(l),d===o?(d=l,l=0):d=Jo(d),v=v===o?l<d?1:-1:Jo(v),Fc(l,d,v,i)}}function Dt(i){return function(l,d){return typeof l=="string"&&typeof d=="string"||(l=gi(l),d=gi(d)),i(l,d)}}function e1(i,l,d,v,x,L,A,D,H,te){var re=l&pe,se=re?A:o,Le=re?o:A,Ne=re?L:o,je=re?o:L;l|=re?Te:He,l&=~(re?He:Te),l&Ie||(l&=~(ye|Ae));var gt=[i,l,x,Ne,se,je,Le,D,H,te],Ke=d.apply(o,gt);return k(i)&&ur(Ke,gt),Ke.placeholder=v,Yr(Ke,i,l)}function Is(i){var l=pr[i];return function(d,v){if(d=gi(d),v=v==null?0:Pr(dt(v),292),v&&Cc(d)){var x=(Nt(d)+"e").split("e"),L=l(x[0]+"e"+(+x[1]+v));return x=(Nt(L)+"e").split("e"),+(x[0]+"e"+(+x[1]-v))}return l(d)}}var Ds=Wo&&1/vl(new Wo([,-0]))[1]==be?function(i){return new Wo(i)}:nd;function Mn(i){return function(l){var d=Wr(l);return d==lr?gl(l):d==tt?hc(l):Si(l,i(l))}}function On(i,l,d,v,x,L,A,D){var H=l&Ae;if(!H&&typeof i!="function")throw new sn(b);var te=v?v.length:0;if(te||(l&=~(Te|He),v=x=o),A=A===o?A:jt(dt(A),0),D=D===o?D:dt(D),te-=x?x.length:0,l&He){var re=v,se=x;v=x=o}var Le=H?o:_t(i),Ne=[i,l,d,v,x,re,se,L,A,D];if(Le&&we(Ne,Le),i=Ne[0],l=Ne[1],d=Ne[2],v=Ne[3],x=Ne[4],D=Ne[9]=Ne[9]===o?H?0:i.length:jt(Ne[9]-te,0),!D&&l&(pe|he)&&(l&=~(pe|he)),!l||l==ye)var je=Kc(i,l,d);else l==pe||l==he?je=o0(i,l,D):(l==Te||l==(ye|Te))&&!x.length?je=Yf(i,l,d,v):je=As.apply(o,Ne);var gt=Le?Os:ur;return Yr(gt(je,Ne),i,l)}function Yl(i,l,d,v){return i===o||Ii(i,eo[d])&&!rt.call(v,d)?l:i}function s0(i,l,d,v,x,L){return ar(i)&&ar(l)&&(L.set(l,i),Dl(i,l,o,s0,L),L.delete(l)),i}function t1(i){return f0(i)?o:i}function l0(i,l,d,v,x,L){var A=d&ce,D=i.length,H=l.length;if(D!=H&&!(A&&H>D))return!1;var te=L.get(i),re=L.get(l);if(te&&re)return te==l&&re==i;var se=-1,Le=!0,Ne=d&xe?new Ir:o;for(L.set(i,l),L.set(l,i);++se<D;){var je=i[se],gt=l[se];if(v)var Ke=A?v(gt,je,se,l,i,L):v(je,gt,se,i,l,L);if(Ke!==o){if(Ke)continue;Le=!1;break}if(Ne){if(!Eo(l,function(Ct,xt){if(!an(Ne,xt)&&(je===Ct||x(je,Ct,d,v,L)))return Ne.push(xt)})){Le=!1;break}}else if(!(je===gt||x(je,gt,d,v,L))){Le=!1;break}}return L.delete(i),L.delete(l),Le}function r1(i,l,d,v,x,L,A){switch(d){case $n:if(i.byteLength!=l.byteLength||i.byteOffset!=l.byteOffset)return!1;i=i.buffer,l=l.buffer;case kr:return!(i.byteLength!=l.byteLength||!L(new $o(i),new $o(l)));case Ze:case at:case Xe:return Ii(+i,+l);case We:return i.name==l.name&&i.message==l.message;case fr:case B:return i==l+"";case lr:var D=gl;case tt:var H=v&ce;if(D||(D=vl),i.size!=l.size&&!H)return!1;var te=A.get(i);if(te)return te==l;v|=xe,A.set(i,l);var re=l0(D(i),D(l),v,x,L,A);return A.delete(i),re;case oe:if(Kt)return Kt.call(i)==Kt.call(l)}return!1}function n1(i,l,d,v,x,L){var A=d&ce,D=Rs(i),H=D.length,te=Rs(l),re=te.length;if(H!=re&&!A)return!1;for(var se=H;se--;){var Le=D[se];if(!(A?Le in l:rt.call(l,Le)))return!1}var Ne=L.get(i),je=L.get(l);if(Ne&&je)return Ne==l&&je==i;var gt=!0;L.set(i,l),L.set(l,i);for(var Ke=A;++se<H;){Le=D[se];var Ct=i[Le],xt=l[Le];if(v)var Kn=A?v(xt,Ct,Le,l,i,L):v(Ct,xt,Le,i,l,L);if(!(Kn===o?Ct===xt||x(Ct,xt,d,v,L):Kn)){gt=!1;break}Ke||(Ke=Le=="constructor")}if(gt&&!Ke){var xn=i.constructor,Xn=l.constructor;xn!=Xn&&"constructor"in i&&"constructor"in l&&!(typeof xn=="function"&&xn instanceof xn&&typeof Xn=="function"&&Xn instanceof Xn)&&(gt=!1)}return L.delete(i),L.delete(l),gt}function Ai(i){return Ur(Re(i,o,Oh),i+"")}function Rs(i){return Zo(i,Gr,u0)}function Zl(i){return Zo(i,Pn,i1)}var _t=ui?function(i){return ui.get(i)}:nd;function Ns(i){for(var l=i.name+"",d=ka[l],v=rt.call(ka,l)?d.length:0;v--;){var x=d[v],L=x.func;if(L==null||L==i)return x.name}return l}function Wa(i){var l=rt.call(z,"placeholder")?z:i;return l.placeholder}function Be(){var i=z.iteratee||td;return i=i===td?Rc:i,arguments.length?i(arguments[0],arguments[1]):i}function Vl(i,l){var d=i.__data__;return _(l)?d[typeof l=="string"?"string":"hash"]:d.map}function Ua(i){for(var l=Gr(i),d=l.length;d--;){var v=l[d],x=i[v];l[d]=[v,x,J(x)]}return l}function jo(i,l){var d=Eu(i,l);return Ia(d)?d:o}function tr(i){var l=rt.call(i,no),d=i[no];try{i[no]=o;var v=!0}catch{}var x=No.call(i);return v&&(l?i[no]=d:delete i[no]),x}var u0=io?function(i){return i==null?[]:(i=wt(i),qi(io(i),function(l){return Cl.call(i,l)}))}:id,i1=io?function(i){for(var l=[];i;)ji(l,u0(i)),i=xa(i);return l}:id,Wr=Lr;(ao&&Wr(new ao(new ArrayBuffer(1)))!=$n||Sa&&Wr(new Sa)!=lr||xl&&Wr(xl.resolve())!=$r||Wo&&Wr(new Wo)!=tt||ws&&Wr(new ws)!=Qe)&&(Wr=function(i){var l=Lr(i),d=l==Mt?i.constructor:o,v=d?Ht(d):"";if(v)switch(v){case Lf:return $n;case _f:return lr;case Sf:return $r;case kf:return tt;case Mf:return Qe}return l});function Gl(i,l,d){for(var v=-1,x=d.length;++v<x;){var L=d[v],A=L.size;switch(L.type){case"drop":i+=A;break;case"dropRight":l-=A;break;case"take":l=Pr(l,i+A);break;case"takeRight":i=jt(i,l-A);break}}return{start:i,end:l}}function e(i){var l=i.match(is);return l?l[1].split(Vi):[]}function t(i,l,d){l=qn(l,i);for(var v=-1,x=l.length,L=!1;++v<x;){var A=It(l[v]);if(!(L=i!=null&&d(i,A)))break;i=i[A]}return L||++v!=x?L:(x=i==null?0:i.length,!!x&&c1(x)&&m(A,x)&&(ct(i)||$s(i)))}function s(i){var l=i.length,d=new i.constructor(l);return l&&typeof i[0]=="string"&&rt.call(i,"index")&&(d.index=i.index,d.input=i.input),d}function a(i){return typeof i.constructor=="function"&&!Z(i)?ci(xa(i)):{}}function u(i,l,d){var v=i.constructor;switch(l){case kr:return Bl(i);case Ze:case at:return new v(+i);case $n:return Wf(i,d);case jr:case Zt:case zi:case Hr:case Hn:case $e:case Yi:case Mr:case Ge:return Yc(i,d);case lr:return new v;case Xe:case B:return new v(i);case fr:return n0(i);case tt:return new v;case oe:return Uc(i)}}function h(i,l){var d=l.length;if(!d)return i;var v=d-1;return l[v]=(d>1?"& ":"")+l[v],l=l.join(d>2?", ":" "),i.replace(tl,`{
2386
+ */(function(r,n){(function(){var o,c="4.17.21",f=200,p="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",b="Expected a function",k="Invalid `variable` option passed into `_.template`",S="__lodash_hash_undefined__",O=500,I="__lodash_placeholder__",U=1,q=2,X=4,ce=1,xe=2,ye=1,Ae=2,Ie=4,pe=8,he=16,Te=32,He=64,Ye=128,et=256,nt=512,ve=30,Ce="...",it=800,W=16,E=1,T=2,ne=3,be=1/0,ot=9007199254740991,At=17976931348623157e292,sr=0/0,Bt=4294967295,dn=Bt-1,er=Bt>>>1,Ft=[["ary",Ye],["bind",ye],["bindKey",Ae],["curry",pe],["curryRight",he],["flip",nt],["partial",Te],["partialRight",He],["rearg",et]],ut="[object Arguments]",_e="[object Array]",Fe="[object AsyncFunction]",Ze="[object Boolean]",at="[object Date]",st="[object DOMException]",We="[object Error]",Vt="[object Function]",qr="[object GeneratorFunction]",lr="[object Map]",Xe="[object Number]",yt="[object Null]",kt="[object Object]",$r="[object Promise]",rn="[object Proxy]",fr="[object RegExp]",tt="[object Set]",B="[object String]",oe="[object Symbol]",V="[object Undefined]",Qe="[object WeakMap]",dr="[object WeakSet]",Mr="[object ArrayBuffer]",$n="[object DataView]",jr="[object Float32Array]",Zt="[object Float64Array]",zi="[object Int8Array]",Hr="[object Int16Array]",Hn="[object Int32Array]",$e="[object Uint8Array]",Yi="[object Uint8ClampedArray]",kr="[object Uint16Array]",Ge="[object Uint32Array]",ir=/\b__p \+= '';/g,ha=/\b(__p \+=) '' \+/g,wr=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Bn=/&(?:amp|lt|gt|quot|#39);/g,xr=/[&<>"']/g,pa=RegExp(Bn.source),hn=RegExp(xr.source),ko=/<%-([\s\S]+?)%>/g,Zi=/<%([\s\S]+?)%>/g,rs=/<%=([\s\S]+?)%>/g,ns=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Kr=/^\w*$/,Js=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Oo=/[\\^$.*+?()[\]{}|]/g,ni=RegExp(Oo.source),To=/^\s+/,el=/\s/,tl=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,is=/\{\n\/\* \[wrapped with (.+)\] \*/,Vi=/,? & /,Ln=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,pn=/[()=,{}\[\]\/\s]/,rl=/\\(\\)?/g,Li=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Po=/\w*$/,ga=/^[-+]0x[0-9a-f]+$/i,Fn=/^0b[01]+$/i,Wn=/^\[object .+?Constructor\]$/,gn=/^0o[0-7]+$/i,os=/^(?:0|[1-9]\d*)$/,as=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Wt=/($^)/,ke=/['\n\r\u2028\u2029\\]/g,vn="\\ud800-\\udfff",ss="\\u0300-\\u036f",nn="\\ufe20-\\ufe2f",zt="\\u20d0-\\u20ff",Un=ss+nn+zt,Gi="\\u2700-\\u27bf",va="a-z\\xdf-\\xf6\\xf8-\\xff",ie="\\xac\\xb1\\xd7\\xf7",w="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",P="\\u2000-\\u206f",j=" \\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",ae="A-Z\\xc0-\\xd6\\xd8-\\xde",qe="\\ufe0e\\ufe0f",vt=ie+w+P+j,me="['\u2019]",Or="["+vn+"]",on="["+vt+"]",_i="["+Un+"]",Yn="\\d+",V0="["+Gi+"]",mu="["+va+"]",ba="[^"+vn+vt+Yn+Gi+va+ae+"]",ls="\\ud83c[\\udffb-\\udfff]",G0="(?:"+_i+"|"+ls+")",nl="[^"+vn+"]",il="(?:\\ud83c[\\udde6-\\uddff]){2}",ol="[\\ud800-\\udbff][\\udc00-\\udfff]",Ao="["+ae+"]",yu="\\u200d",q0="(?:"+mu+"|"+ba+")",sf="(?:"+Ao+"|"+ba+")",Cu="(?:"+me+"(?:d|ll|m|re|s|t|ve))?",ii="(?:"+me+"(?:D|LL|M|RE|S|T|VE))?",j0=G0+"?",K0="["+qe+"]?",al="(?:"+yu+"(?:"+[nl,il,ol].join("|")+")"+K0+j0+")*",us="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",lf="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",X0=K0+j0+al,uf="(?:"+[V0,il,ol].join("|")+")"+X0,cf="(?:"+[nl+_i+"?",_i,il,ol,Or].join("|")+")",wu=RegExp(me,"g"),Q0=RegExp(_i,"g"),xu=RegExp(ls+"(?="+ls+")|"+cf+X0,"g"),J0=RegExp([Ao+"?"+mu+"+"+Cu+"(?="+[on,Ao,"$"].join("|")+")",sf+"+"+ii+"(?="+[on,Ao+q0,"$"].join("|")+")",Ao+"?"+q0+"+"+Cu,Ao+"+"+ii,lf,us,Yn,uf].join("|"),"g"),ec=RegExp("["+yu+vn+Un+qe+"]"),sl=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,ll=["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"],zu=-1,Ut={};Ut[jr]=Ut[Zt]=Ut[zi]=Ut[Hr]=Ut[Hn]=Ut[$e]=Ut[Yi]=Ut[kr]=Ut[Ge]=!0,Ut[ut]=Ut[_e]=Ut[Mr]=Ut[Ze]=Ut[$n]=Ut[at]=Ut[We]=Ut[Vt]=Ut[lr]=Ut[Xe]=Ut[kt]=Ut[fr]=Ut[tt]=Ut[B]=Ut[Qe]=!1;var $t={};$t[ut]=$t[_e]=$t[Mr]=$t[$n]=$t[Ze]=$t[at]=$t[jr]=$t[Zt]=$t[zi]=$t[Hr]=$t[Hn]=$t[lr]=$t[Xe]=$t[kt]=$t[fr]=$t[tt]=$t[B]=$t[oe]=$t[$e]=$t[Yi]=$t[kr]=$t[Ge]=!0,$t[We]=$t[Vt]=$t[Qe]=!1;var ul={\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"},ff={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},tc={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},oi={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},df=parseFloat,hf=parseInt,cl=typeof Jl=="object"&&Jl&&Jl.Object===Object&&Jl,rc=typeof self=="object"&&self&&self.Object===Object&&self,Gt=cl||rc||Function("return this")(),cs=n&&!n.nodeType&&n,Xr=cs&&!0&&r&&!r.nodeType&&r,fs=Xr&&Xr.exports===cs,ds=fs&&cl.process,Tr=function(){try{var $=Xr&&Xr.require&&Xr.require("util").types;return $||ds&&ds.binding&&ds.binding("util")}catch{}}(),nc=Tr&&Tr.isArrayBuffer,ic=Tr&&Tr.isDate,oc=Tr&&Tr.isMap,ac=Tr&&Tr.isRegExp,Lu=Tr&&Tr.isSet,_u=Tr&&Tr.isTypedArray;function bn($,K,Y){switch(Y.length){case 0:return $.call(K);case 1:return $.call(K,Y[0]);case 2:return $.call(K,Y[0],Y[1]);case 3:return $.call(K,Y[0],Y[1],Y[2])}return $.apply(K,Y)}function pf($,K,Y,Me){for(var Je=-1,Mt=$==null?0:$.length;++Je<Mt;){var pr=$[Je];K(Me,pr,Y(pr),$)}return Me}function _n($,K){for(var Y=-1,Me=$==null?0:$.length;++Y<Me&&K($[Y],Y,$)!==!1;);return $}function gf($,K){for(var Y=$==null?0:$.length;Y--&&K($[Y],Y,$)!==!1;);return $}function Su($,K){for(var Y=-1,Me=$==null?0:$.length;++Y<Me;)if(!K($[Y],Y,$))return!1;return!0}function qi($,K){for(var Y=-1,Me=$==null?0:$.length,Je=0,Mt=[];++Y<Me;){var pr=$[Y];K(pr,Y,$)&&(Mt[Je++]=pr)}return Mt}function hs($,K){var Y=$==null?0:$.length;return!!Y&&Io($,K,0)>-1}function ma($,K,Y){for(var Me=-1,Je=$==null?0:$.length;++Me<Je;)if(Y(K,$[Me]))return!0;return!1}function Et($,K){for(var Y=-1,Me=$==null?0:$.length,Je=Array(Me);++Y<Me;)Je[Y]=K($[Y],Y,$);return Je}function ji($,K){for(var Y=-1,Me=K.length,Je=$.length;++Y<Me;)$[Je+Y]=K[Y];return $}function Mu($,K,Y,Me){var Je=-1,Mt=$==null?0:$.length;for(Me&&Mt&&(Y=$[++Je]);++Je<Mt;)Y=K(Y,$[Je],Je,$);return Y}function vf($,K,Y,Me){var Je=$==null?0:$.length;for(Me&&Je&&(Y=$[--Je]);Je--;)Y=K(Y,$[Je],Je,$);return Y}function Eo($,K){for(var Y=-1,Me=$==null?0:$.length;++Y<Me;)if(K($[Y],Y,$))return!0;return!1}var hr=Ou("length");function bf($){return $.split("")}function sc($){return $.match(Ln)||[]}function ya($,K,Y){var Me;return Y($,function(Je,Mt,pr){if(K(Je,Mt,pr))return Me=Mt,!1}),Me}function fl($,K,Y,Me){for(var Je=$.length,Mt=Y+(Me?1:-1);Me?Mt--:++Mt<Je;)if(K($[Mt],Mt,$))return Mt;return-1}function Io($,K,Y){return K===K?pc($,K,Y):fl($,dl,Y)}function mf($,K,Y,Me){for(var Je=Y-1,Mt=$.length;++Je<Mt;)if(Me($[Je],K))return Je;return-1}function dl($){return $!==$}function ku($,K){var Y=$==null?0:$.length;return Y?Au($,K)/Y:sr}function Ou($){return function(K){return K==null?o:K[$]}}function Tu($){return function(K){return $==null?o:$[K]}}function Pu($,K,Y,Me,Je){return Je($,function(Mt,pr,wt){Y=Me?(Me=!1,Mt):K(Y,Mt,pr,wt)}),Y}function lc($,K){var Y=$.length;for($.sort(K);Y--;)$[Y]=$[Y].value;return $}function Au($,K){for(var Y,Me=-1,Je=$.length;++Me<Je;){var Mt=K($[Me]);Mt!==o&&(Y=Y===o?Mt:Y+Mt)}return Y}function Do($,K){for(var Y=-1,Me=Array($);++Y<$;)Me[Y]=K(Y);return Me}function Si($,K){return Et(K,function(Y){return[Y,$[Y]]})}function ps($){return $&&$.slice(0,bl($)+1).replace(To,"")}function Qr($){return function(K){return $(K)}}function hl($,K){return Et(K,function(Y){return $[Y]})}function an($,K){return $.has(K)}function Ki($,K){for(var Y=-1,Me=$.length;++Y<Me&&Io(K,$[Y],0)>-1;);return Y}function pl($,K){for(var Y=$.length;Y--&&Io(K,$[Y],0)>-1;);return Y}function yf($,K){for(var Y=$.length,Me=0;Y--;)$[Y]===K&&++Me;return Me}var uc=Tu(ul),Cf=Tu(ff);function cc($){return"\\"+oi[$]}function Eu($,K){return $==null?o:$[K]}function Zn($){return ec.test($)}function ai($){return sl.test($)}function fc($){for(var K,Y=[];!(K=$.next()).done;)Y.push(K.value);return Y}function gl($){var K=-1,Y=Array($.size);return $.forEach(function(Me,Je){Y[++K]=[Je,Me]}),Y}function dc($,K){return function(Y){return $(K(Y))}}function Xi($,K){for(var Y=-1,Me=$.length,Je=0,Mt=[];++Y<Me;){var pr=$[Y];(pr===K||pr===I)&&($[Y]=I,Mt[Je++]=Y)}return Mt}function vl($){var K=-1,Y=Array($.size);return $.forEach(function(Me){Y[++K]=Me}),Y}function hc($){var K=-1,Y=Array($.size);return $.forEach(function(Me){Y[++K]=[Me,Me]}),Y}function pc($,K,Y){for(var Me=Y-1,Je=$.length;++Me<Je;)if($[Me]===K)return Me;return-1}function gs($,K,Y){for(var Me=Y+1;Me--;)if($[Me]===K)return Me;return Me}function Ro($){return Zn($)?gc($):hr($)}function Sn($){return Zn($)?yl($):bf($)}function bl($){for(var K=$.length;K--&&el.test($.charAt(K)););return K}var ml=Tu(tc);function gc($){for(var K=xu.lastIndex=0;xu.test($);)++K;return K}function yl($){return $.match(xu)||[]}function Vn($){return $.match(J0)||[]}var vc=function $(K){K=K==null?Gt:Qi.defaults(Gt.Object(),K,Qi.pick(Gt,ll));var Y=K.Array,Me=K.Date,Je=K.Error,Mt=K.Function,pr=K.Math,wt=K.Object,Ji=K.RegExp,Ca=K.String,sn=K.TypeError,wa=Y.prototype,bc=Mt.prototype,eo=wt.prototype,si=K["__core-js_shared__"],li=bc.toString,rt=eo.hasOwnProperty,to=0,Mi=function(){var i=/[^.]+$/.exec(si&&si.keys&&si.keys.IE_PROTO||"");return i?"Symbol(src)_1."+i:""}(),No=eo.toString,wf=li.call(wt),mc=Gt._,vs=Ji("^"+li.call(rt).replace(Oo,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),bs=fs?K.Buffer:o,ki=K.Symbol,$o=K.Uint8Array,yc=bs?bs.allocUnsafe:o,xa=dc(wt.getPrototypeOf,wt),Iu=wt.create,Cl=eo.propertyIsEnumerable,za=wa.splice,Ho=ki?ki.isConcatSpreadable:o,ro=ki?ki.iterator:o,no=ki?ki.toStringTag:o,Bo=function(){try{var i=jo(wt,"defineProperty");return i({},"",{}),i}catch{}}(),xf=K.clearTimeout!==Gt.clearTimeout&&K.clearTimeout,zf=Me&&Me.now!==Gt.Date.now&&Me.now,Lf=K.setTimeout!==Gt.setTimeout&&K.setTimeout,La=pr.ceil,_a=pr.floor,io=wt.getOwnPropertySymbols,ms=bs?bs.isBuffer:o,Cc=K.isFinite,wl=wa.join,wc=dc(wt.keys,wt),jt=pr.max,Pr=pr.min,Fo=Me.now,ys=K.parseInt,oo=pr.random,Cs=wa.reverse,ao=jo(K,"DataView"),Sa=jo(K,"Map"),xl=jo(K,"Promise"),Wo=jo(K,"Set"),ws=jo(K,"WeakMap"),Gn=jo(wt,"create"),ui=ws&&new ws,Ma={},_f=Ht(ao),Sf=Ht(Sa),Mf=Ht(xl),kf=Ht(Wo),Of=Ht(ws),Ar=ki?ki.prototype:o,Kt=Ar?Ar.valueOf:o,Er=Ar?Ar.toString:o;function z(i){if(cr(i)&&!ct(i)&&!(i instanceof bt)){if(i instanceof Jr)return i;if(rt.call(i,"__wrapped__"))return Zr(i)}return new Jr(i)}var ci=function(){function i(){}return function(l){if(!ar(l))return{};if(Iu)return Iu(l);i.prototype=l;var d=new i;return i.prototype=o,d}}();function zl(){}function Jr(i,l){this.__wrapped__=i,this.__actions__=[],this.__chain__=!!l,this.__index__=0,this.__values__=o}z.templateSettings={escape:ko,evaluate:Zi,interpolate:rs,variable:"",imports:{_:z}},z.prototype=zl.prototype,z.prototype.constructor=z,Jr.prototype=ci(zl.prototype),Jr.prototype.constructor=Jr;function bt(i){this.__wrapped__=i,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Bt,this.__views__=[]}function Tf(){var i=new bt(this.__wrapped__);return i.__actions__=_r(this.__actions__),i.__dir__=this.__dir__,i.__filtered__=this.__filtered__,i.__iteratees__=_r(this.__iteratees__),i.__takeCount__=this.__takeCount__,i.__views__=_r(this.__views__),i}function Pf(){if(this.__filtered__){var i=new bt(this);i.__dir__=-1,i.__filtered__=!0}else i=this.clone(),i.__dir__*=-1;return i}function Du(){var i=this.__wrapped__.value(),l=this.__dir__,d=ct(i),v=l<0,x=d?i.length:0,L=Gl(0,x,this.__views__),A=L.start,D=L.end,H=D-A,te=v?D:A-1,re=this.__iteratees__,se=re.length,Le=0,Ne=Pr(H,this.__takeCount__);if(!d||!v&&x==H&&Ne==H)return Wc(i,this.__actions__);var je=[];e:for(;H--&&Le<Ne;){te+=l;for(var gt=-1,Ke=i[te];++gt<se;){var Ct=re[gt],xt=Ct.iteratee,Kn=Ct.type,xn=xt(Ke);if(Kn==T)Ke=xn;else if(!xn){if(Kn==E)continue e;break e}}je[Le++]=Ke}return je}bt.prototype=ci(zl.prototype),bt.prototype.constructor=bt;function so(i){var l=-1,d=i==null?0:i.length;for(this.clear();++l<d;){var v=i[l];this.set(v[0],v[1])}}function Ru(){this.__data__=Gn?Gn(null):{},this.size=0}function Af(i){var l=this.has(i)&&delete this.__data__[i];return this.size-=l?1:0,l}function Nu(i){var l=this.__data__;if(Gn){var d=l[i];return d===S?o:d}return rt.call(l,i)?l[i]:o}function $u(i){var l=this.__data__;return Gn?l[i]!==o:rt.call(l,i)}function xc(i,l){var d=this.__data__;return this.size+=this.has(i)?0:1,d[i]=Gn&&l===o?S:l,this}so.prototype.clear=Ru,so.prototype.delete=Af,so.prototype.get=Nu,so.prototype.has=$u,so.prototype.set=xc;function fi(i){var l=-1,d=i==null?0:i.length;for(this.clear();++l<d;){var v=i[l];this.set(v[0],v[1])}}function Hu(){this.__data__=[],this.size=0}function zc(i){var l=this.__data__,d=Uo(l,i);if(d<0)return!1;var v=l.length-1;return d==v?l.pop():za.call(l,d,1),--this.size,!0}function xs(i){var l=this.__data__,d=Uo(l,i);return d<0?o:l[d][1]}function Ef(i){return Uo(this.__data__,i)>-1}function Ll(i,l){var d=this.__data__,v=Uo(d,i);return v<0?(++this.size,d.push([i,l])):d[v][1]=l,this}fi.prototype.clear=Hu,fi.prototype.delete=zc,fi.prototype.get=xs,fi.prototype.has=Ef,fi.prototype.set=Ll;function or(i){var l=-1,d=i==null?0:i.length;for(this.clear();++l<d;){var v=i[l];this.set(v[0],v[1])}}function Lc(){this.size=0,this.__data__={hash:new so,map:new(Sa||fi),string:new so}}function If(i){var l=Vl(this,i).delete(i);return this.size-=l?1:0,l}function _c(i){return Vl(this,i).get(i)}function mn(i){return Vl(this,i).has(i)}function Lt(i,l){var d=Vl(this,i),v=d.size;return d.set(i,l),this.size+=d.size==v?0:1,this}or.prototype.clear=Lc,or.prototype.delete=If,or.prototype.get=_c,or.prototype.has=mn,or.prototype.set=Lt;function Ir(i){var l=-1,d=i==null?0:i.length;for(this.__data__=new or;++l<d;)this.add(i[l])}function lo(i){return this.__data__.set(i,S),this}function uo(i){return this.__data__.has(i)}Ir.prototype.add=Ir.prototype.push=lo,Ir.prototype.has=uo;function Mn(i){var l=this.__data__=new fi(i);this.size=l.size}function Bu(){this.__data__=new fi,this.size=0}function Sc(i){var l=this.__data__,d=l.delete(i);return this.size=l.size,d}function Df(i){return this.__data__.get(i)}function Fu(i){return this.__data__.has(i)}function zs(i,l){var d=this.__data__;if(d instanceof fi){var v=d.__data__;if(!Sa||v.length<f-1)return v.push([i,l]),this.size=++d.size,this;d=this.__data__=new or(v)}return d.set(i,l),this.size=d.size,this}Mn.prototype.clear=Bu,Mn.prototype.delete=Sc,Mn.prototype.get=Df,Mn.prototype.has=Fu,Mn.prototype.set=zs;function Wu(i,l){var d=ct(i),v=!d&&$s(i),x=!d&&!v&&Va(i),L=!d&&!v&&!x&&jl(i),A=d||v||x||L,D=A?Do(i.length,Ca):[],H=D.length;for(var te in i)(l||rt.call(i,te))&&!(A&&(te=="length"||x&&(te=="offset"||te=="parent")||L&&(te=="buffer"||te=="byteLength"||te=="byteOffset")||m(te,H)))&&D.push(te);return D}function _l(i){var l=i.length;return l?i[Rl(0,l-1)]:o}function co(i,l){return Sr(_r(i),Yo(l,0,i.length))}function Mc(i){return Sr(_r(i))}function Sl(i,l,d){(d!==o&&!Ii(i[l],d)||d===o&&!(l in i))&&di(i,l,d)}function Ls(i,l,d){var v=i[l];(!(rt.call(i,l)&&Ii(v,d))||d===o&&!(l in i))&&di(i,l,d)}function Uo(i,l){for(var d=i.length;d--;)if(Ii(i[d][0],l))return d;return-1}function Uu(i,l,d,v){return yn(i,function(x,L,A){l(v,x,d(x),A)}),v}function Yu(i,l){return i&&ln(l,Gr(l),i)}function Rf(i,l){return i&&ln(l,An(l),i)}function di(i,l,d){l=="__proto__"&&Bo?Bo(i,l,{configurable:!0,enumerable:!0,value:d,writable:!0}):i[l]=d}function Zu(i,l){for(var d=-1,v=l.length,x=Y(v),L=i==null;++d<v;)x[d]=L?o:Qf(i,l[d]);return x}function Yo(i,l,d){return i===i&&(d!==o&&(i=i<=d?i:d),l!==o&&(i=i>=l?i:l)),i}function en(i,l,d,v,x,L){var A,D=l&U,H=l&q,te=l&X;if(d&&(A=x?d(i,v,x,L):d(i)),A!==o)return A;if(!ar(i))return i;var re=ct(i);if(re){if(A=s(i),!D)return _r(i,A)}else{var se=Wr(i),Le=se==Vt||se==qr;if(Va(i))return r0(i,D);if(se==kt||se==ut||Le&&!x){if(A=H||Le?{}:a(i),!D)return H?Gc(i,Rf(A,i)):Yf(i,Yu(A,i))}else{if(!$t[se])return x?i:{};A=u(i,se,D)}}L||(L=new Mn);var Ne=L.get(i);if(Ne)return Ne;L.set(i,A),Vh(i)?i.forEach(function(Ke){A.add(en(Ke,l,d,Ke,i,L))}):Yh(i)&&i.forEach(function(Ke,Ct){A.set(Ct,en(Ke,l,d,Ct,i,L))});var je=te?H?Zl:Rs:H?An:Gr,gt=re?o:je(i);return _n(gt||i,function(Ke,Ct){gt&&(Ct=Ke,Ke=i[Ct]),Ls(A,Ct,en(Ke,l,d,Ct,i,L))}),A}function kc(i){var l=Gr(i);return function(d){return Oc(d,i,l)}}function Oc(i,l,d){var v=d.length;if(i==null)return!v;for(i=wt(i);v--;){var x=d[v],L=l[x],A=i[x];if(A===o&&!(x in i)||!L(A))return!1}return!0}function Tc(i,l,d){if(typeof i!="function")throw new sn(b);return Rt(function(){i.apply(o,d)},l)}function ka(i,l,d,v){var x=-1,L=hs,A=!0,D=i.length,H=[],te=l.length;if(!D)return H;d&&(l=Et(l,Qr(d))),v?(L=ma,A=!1):l.length>=f&&(L=an,A=!1,l=new Ir(l));e:for(;++x<D;){var re=i[x],se=d==null?re:d(re);if(re=v||re!==0?re:0,A&&se===se){for(var Le=te;Le--;)if(l[Le]===se)continue e;H.push(re)}else L(l,se,v)||H.push(re)}return H}var yn=qc(Cn),Ml=qc(Tl,!0);function kl(i,l){var d=!0;return yn(i,function(v,x,L){return d=!!l(v,x,L),d}),d}function _s(i,l,d){for(var v=-1,x=i.length;++v<x;){var L=i[v],A=l(L);if(A!=null&&(D===o?A===A&&!jn(A):d(A,D)))var D=A,H=L}return H}function Vu(i,l,d,v){var x=i.length;for(d=dt(d),d<0&&(d=-d>x?0:x+d),v=v===o||v>x?x:dt(v),v<0&&(v+=x),v=d>v?0:qh(v);d<v;)i[d++]=l;return i}function Gu(i,l){var d=[];return yn(i,function(v,x,L){l(v,x,L)&&d.push(v)}),d}function Dr(i,l,d,v,x){var L=-1,A=i.length;for(d||(d=g),x||(x=[]);++L<A;){var D=i[L];l>0&&d(D)?l>1?Dr(D,l-1,d,v,x):ji(x,D):v||(x[x.length]=D)}return x}var Ol=jc(),zr=jc(!0);function Cn(i,l){return i&&Ol(i,l,Gr)}function Tl(i,l){return i&&zr(i,l,Gr)}function Ss(i,l){return qi(l,function(d){return Qo(i[d])})}function fo(i,l){l=qn(l,i);for(var d=0,v=l.length;i!=null&&d<v;)i=i[It(l[d++])];return d&&d==v?i:o}function Zo(i,l,d){var v=l(i);return ct(i)?v:ji(v,d(i))}function Lr(i){return i==null?i===o?V:yt:no&&no in wt(i)?tr(i):ze(i)}function Pl(i,l){return i>l}function Pc(i,l){return i!=null&&rt.call(i,l)}function Ac(i,l){return i!=null&&l in wt(i)}function Oa(i,l,d){return i>=Pr(l,d)&&i<jt(l,d)}function Al(i,l,d){for(var v=d?ma:hs,x=i[0].length,L=i.length,A=L,D=Y(L),H=1/0,te=[];A--;){var re=i[A];A&&l&&(re=Et(re,Qr(l))),H=Pr(re.length,H),D[A]=!d&&(l||x>=120&&re.length>=120)?new Ir(A&&re):o}re=i[0];var se=-1,Le=D[0];e:for(;++se<x&&te.length<H;){var Ne=re[se],je=l?l(Ne):Ne;if(Ne=d||Ne!==0?Ne:0,!(Le?an(Le,je):v(te,je,d))){for(A=L;--A;){var gt=D[A];if(!(gt?an(gt,je):v(i[A],je,d)))continue e}Le&&Le.push(je),te.push(Ne)}}return te}function El(i,l,d,v){return Cn(i,function(x,L,A){l(v,d(x),L,A)}),v}function Ta(i,l,d){l=qn(l,i),i=Pe(i,l);var v=i==null?i:i[It(pi(l))];return v==null?o:bn(v,i,d)}function Pa(i){return cr(i)&&Lr(i)==ut}function Nf(i){return cr(i)&&Lr(i)==Mr}function Aa(i){return cr(i)&&Lr(i)==at}function Ea(i,l,d,v,x){return i===l?!0:i==null||l==null||!cr(i)&&!cr(l)?i!==i&&l!==l:Ec(i,l,d,v,Ea,x)}function Ec(i,l,d,v,x,L){var A=ct(i),D=ct(l),H=A?_e:Wr(i),te=D?_e:Wr(l);H=H==ut?kt:H,te=te==ut?kt:te;var re=H==kt,se=te==kt,Le=H==te;if(Le&&Va(i)){if(!Va(l))return!1;A=!0,re=!1}if(Le&&!re)return L||(L=new Mn),A||jl(i)?l0(i,l,d,v,x,L):r1(i,l,H,d,v,x,L);if(!(d&ce)){var Ne=re&&rt.call(i,"__wrapped__"),je=se&&rt.call(l,"__wrapped__");if(Ne||je){var gt=Ne?i.value():i,Ke=je?l.value():l;return L||(L=new Mn),x(gt,Ke,d,v,L)}}return Le?(L||(L=new Mn),n1(i,l,d,v,x,L)):!1}function Ic(i){return cr(i)&&Wr(i)==lr}function Vo(i,l,d,v){var x=d.length,L=x,A=!v;if(i==null)return!L;for(i=wt(i);x--;){var D=d[x];if(A&&D[2]?D[1]!==i[D[0]]:!(D[0]in i))return!1}for(;++x<L;){D=d[x];var H=D[0],te=i[H],re=D[1];if(A&&D[2]){if(te===o&&!(H in i))return!1}else{var se=new Mn;if(v)var Le=v(te,re,H,i,l,se);if(!(Le===o?Ea(re,te,ce|xe,v,se):Le))return!1}}return!0}function Ia(i){if(!ar(i)||N(i))return!1;var l=Qo(i)?vs:Wn;return l.test(Ht(i))}function Ms(i){return cr(i)&&Lr(i)==fr}function ks(i){return cr(i)&&Wr(i)==tt}function Dc(i){return cr(i)&&c1(i.length)&&!!Ut[Lr(i)]}function Rc(i){return typeof i=="function"?i:i==null?En:typeof i=="object"?ct(i)?qu(i[0],i[1]):Nc(i):op(i)}function Il(i){if(!Z(i))return wc(i);var l=[];for(var d in wt(i))rt.call(i,d)&&d!="constructor"&&l.push(d);return l}function ho(i){if(!ar(i))return de(i);var l=Z(i),d=[];for(var v in i)v=="constructor"&&(l||!rt.call(i,v))||d.push(v);return d}function po(i,l){return i<l}function Da(i,l){var d=-1,v=Pn(i)?Y(i.length):[];return yn(i,function(x,L,A){v[++d]=l(x,L,A)}),v}function Nc(i){var l=Ua(i);return l.length==1&&l[0][2]?le(l[0][0],l[0][1]):function(d){return d===i||Vo(d,i,l)}}function qu(i,l){return C(i)&&J(l)?le(It(i),l):function(d){var v=Qf(d,i);return v===o&&v===l?Jf(d,i):Ea(l,v,ce|xe)}}function Dl(i,l,d,v,x){i!==l&&Ol(l,function(L,A){if(x||(x=new Mn),ar(L))$f(i,l,A,d,Dl,v,x);else{var D=v?v(Ot(i,A),L,A+"",i,l,x):o;D===o&&(D=L),Sl(i,A,D)}},An)}function $f(i,l,d,v,x,L,A){var D=Ot(i,d),H=Ot(l,d),te=A.get(H);if(te){Sl(i,d,te);return}var re=L?L(D,H,d+"",i,l,A):o,se=re===o;if(se){var Le=ct(H),Ne=!Le&&Va(H),je=!Le&&!Ne&&jl(H);re=H,Le||Ne||je?ct(D)?re=D:br(D)?re=_r(D):Ne?(se=!1,re=r0(H,!0)):je?(se=!1,re=Yc(H,!0)):re=[]:f0(H)||$s(H)?(re=D,$s(D)?re=jh(D):(!ar(D)||Qo(D))&&(re=a(H))):se=!1}se&&(A.set(H,re),x(re,H,v,L,A),A.delete(H)),Sl(i,d,re)}function $c(i,l){var d=i.length;if(!!d)return l+=l<0?d:0,m(l,d)?i[l]:o}function Br(i,l,d){l.length?l=Et(l,function(L){return ct(L)?function(A){return fo(A,L.length===1?L[0]:L)}:L}):l=[En];var v=-1;l=Et(l,Qr(Be()));var x=Da(i,function(L,A,D){var H=Et(l,function(te){return te(L)});return{criteria:H,index:++v,value:L}});return lc(x,function(L,A){return Zc(L,A,d)})}function Hc(i,l){return Bc(i,l,function(d,v){return Jf(i,v)})}function Bc(i,l,d){for(var v=-1,x=l.length,L={};++v<x;){var A=l[v],D=fo(i,A);d(D,A)&&Oi(L,qn(A,i),D)}return L}function Hf(i){return function(l){return fo(l,i)}}function ju(i,l,d,v){var x=v?mf:Io,L=-1,A=l.length,D=i;for(i===l&&(l=_r(l)),d&&(D=Et(i,Qr(d)));++L<A;)for(var H=0,te=l[L],re=d?d(te):te;(H=x(D,re,H,v))>-1;)D!==i&&za.call(D,H,1),za.call(i,H,1);return i}function Ku(i,l){for(var d=i?l.length:0,v=d-1;d--;){var x=l[d];if(d==v||x!==L){var L=x;m(x)?za.call(i,x,1):Ps(i,x)}}return i}function Rl(i,l){return i+_a(oo()*(l-i+1))}function Fc(i,l,d,v){for(var x=-1,L=jt(La((l-i)/(d||1)),0),A=Y(L);L--;)A[v?L:++x]=i,i+=d;return A}function Xu(i,l){var d="";if(!i||l<1||l>ot)return d;do l%2&&(d+=i),l=_a(l/2),l&&(i+=i);while(l);return d}function ft(i,l){return Ur(Re(i,l,En),i+"")}function Bf(i){return _l(Kl(i))}function go(i,l){var d=Kl(i);return Sr(d,Yo(l,0,d.length))}function Oi(i,l,d,v){if(!ar(i))return i;l=qn(l,i);for(var x=-1,L=l.length,A=L-1,D=i;D!=null&&++x<L;){var H=It(l[x]),te=d;if(H==="__proto__"||H==="constructor"||H==="prototype")return i;if(x!=A){var re=D[H];te=v?v(re,H,D):o,te===o&&(te=ar(re)?re:m(l[x+1])?[]:{})}Ls(D,H,te),D=D[H]}return i}var Os=ui?function(i,l){return ui.set(i,l),i}:En,Ts=Bo?function(i,l){return Bo(i,"toString",{configurable:!0,enumerable:!1,value:td(l),writable:!0})}:En;function Ti(i){return Sr(Kl(i))}function kn(i,l,d){var v=-1,x=i.length;l<0&&(l=-l>x?0:x+l),d=d>x?x:d,d<0&&(d+=x),x=l>d?0:d-l>>>0,l>>>=0;for(var L=Y(x);++v<x;)L[v]=i[v+l];return L}function Ff(i,l){var d;return yn(i,function(v,x,L){return d=l(v,x,L),!d}),!!d}function Pi(i,l,d){var v=0,x=i==null?v:i.length;if(typeof l=="number"&&l===l&&x<=er){for(;v<x;){var L=v+x>>>1,A=i[L];A!==null&&!jn(A)&&(d?A<=l:A<l)?v=L+1:x=L}return x}return Nl(i,l,En,d)}function Nl(i,l,d,v){var x=0,L=i==null?0:i.length;if(L===0)return 0;l=d(l);for(var A=l!==l,D=l===null,H=jn(l),te=l===o;x<L;){var re=_a((x+L)/2),se=d(i[re]),Le=se!==o,Ne=se===null,je=se===se,gt=jn(se);if(A)var Ke=v||je;else te?Ke=je&&(v||Le):D?Ke=je&&Le&&(v||!Ne):H?Ke=je&&Le&&!Ne&&(v||!gt):Ne||gt?Ke=!1:Ke=v?se<=l:se<l;Ke?x=re+1:L=re}return Pr(L,dn)}function Qu(i,l){for(var d=-1,v=i.length,x=0,L=[];++d<v;){var A=i[d],D=l?l(A):A;if(!d||!Ii(D,H)){var H=D;L[x++]=A===0?0:A}}return L}function Ju(i){return typeof i=="number"?i:jn(i)?sr:+i}function Fr(i){if(typeof i=="string")return i;if(ct(i))return Et(i,Fr)+"";if(jn(i))return Er?Er.call(i):"";var l=i+"";return l=="0"&&1/i==-be?"-0":l}function wn(i,l,d){var v=-1,x=hs,L=i.length,A=!0,D=[],H=D;if(d)A=!1,x=ma;else if(L>=f){var te=l?null:Ds(i);if(te)return vl(te);A=!1,x=an,H=new Ir}else H=l?[]:D;e:for(;++v<L;){var re=i[v],se=l?l(re):re;if(re=d||re!==0?re:0,A&&se===se){for(var Le=H.length;Le--;)if(H[Le]===se)continue e;l&&H.push(se),D.push(re)}else x(H,se,d)||(H!==D&&H.push(se),D.push(re))}return D}function Ps(i,l){return l=qn(l,i),i=Pe(i,l),i==null||delete i[It(pi(l))]}function $l(i,l,d,v){return Oi(i,l,d(fo(i,l)),v)}function Ra(i,l,d,v){for(var x=i.length,L=v?x:-1;(v?L--:++L<x)&&l(i[L],L,i););return d?kn(i,v?0:L,v?L+1:x):kn(i,v?L+1:0,v?x:L)}function Wc(i,l){var d=i;return d instanceof bt&&(d=d.value()),Mu(l,function(v,x){return x.func.apply(x.thisArg,ji([v],x.args))},d)}function Go(i,l,d){var v=i.length;if(v<2)return v?wn(i[0]):[];for(var x=-1,L=Y(v);++x<v;)for(var A=i[x],D=-1;++D<v;)D!=x&&(L[x]=ka(L[x]||A,i[D],l,d));return wn(Dr(L,1),l,d)}function e0(i,l,d){for(var v=-1,x=i.length,L=l.length,A={};++v<x;){var D=v<L?l[v]:o;d(A,i[v],D)}return A}function t0(i){return br(i)?i:[]}function Hl(i){return typeof i=="function"?i:En}function qn(i,l){return ct(i)?i:C(i,l)?[i]:gr(Nt(i))}var Wf=ft;function vo(i,l,d){var v=i.length;return d=d===o?v:d,!l&&d>=v?i:kn(i,l,d)}var Na=xf||function(i){return Gt.clearTimeout(i)};function r0(i,l){if(l)return i.slice();var d=i.length,v=yc?yc(d):new i.constructor(d);return i.copy(v),v}function Bl(i){var l=new i.constructor(i.byteLength);return new $o(l).set(new $o(i)),l}function Uf(i,l){var d=l?Bl(i.buffer):i.buffer;return new i.constructor(d,i.byteOffset,i.byteLength)}function n0(i){var l=new i.constructor(i.source,Po.exec(i));return l.lastIndex=i.lastIndex,l}function Uc(i){return Kt?wt(Kt.call(i)):{}}function Yc(i,l){var d=l?Bl(i.buffer):i.buffer;return new i.constructor(d,i.byteOffset,i.length)}function i0(i,l){if(i!==l){var d=i!==o,v=i===null,x=i===i,L=jn(i),A=l!==o,D=l===null,H=l===l,te=jn(l);if(!D&&!te&&!L&&i>l||L&&A&&H&&!D&&!te||v&&A&&H||!d&&H||!x)return 1;if(!v&&!L&&!te&&i<l||te&&d&&x&&!v&&!L||D&&d&&x||!A&&x||!H)return-1}return 0}function Zc(i,l,d){for(var v=-1,x=i.criteria,L=l.criteria,A=x.length,D=d.length;++v<A;){var H=i0(x[v],L[v]);if(H){if(v>=D)return H;var te=d[v];return H*(te=="desc"?-1:1)}}return i.index-l.index}function Vc(i,l,d,v){for(var x=-1,L=i.length,A=d.length,D=-1,H=l.length,te=jt(L-A,0),re=Y(H+te),se=!v;++D<H;)re[D]=l[D];for(;++x<A;)(se||x<L)&&(re[d[x]]=i[x]);for(;te--;)re[D++]=i[x++];return re}function Fl(i,l,d,v){for(var x=-1,L=i.length,A=-1,D=d.length,H=-1,te=l.length,re=jt(L-D,0),se=Y(re+te),Le=!v;++x<re;)se[x]=i[x];for(var Ne=x;++H<te;)se[Ne+H]=l[H];for(;++A<D;)(Le||x<L)&&(se[Ne+d[A]]=i[x++]);return se}function _r(i,l){var d=-1,v=i.length;for(l||(l=Y(v));++d<v;)l[d]=i[d];return l}function ln(i,l,d,v){var x=!d;d||(d={});for(var L=-1,A=l.length;++L<A;){var D=l[L],H=v?v(d[D],i[D],D,d,i):o;H===o&&(H=i[D]),x?di(d,D,H):Ls(d,D,H)}return d}function Yf(i,l){return ln(i,u0(i),l)}function Gc(i,l){return ln(i,i1(i),l)}function Wl(i,l){return function(d,v){var x=ct(d)?pf:Uu,L=l?l():{};return x(d,i,Be(v,2),L)}}function $a(i){return ft(function(l,d){var v=-1,x=d.length,L=x>1?d[x-1]:o,A=x>2?d[2]:o;for(L=i.length>3&&typeof L=="function"?(x--,L):o,A&&y(d[0],d[1],A)&&(L=x<3?o:L,x=1),l=wt(l);++v<x;){var D=d[v];D&&i(l,D,v,L)}return l})}function qc(i,l){return function(d,v){if(d==null)return d;if(!Pn(d))return i(d,v);for(var x=d.length,L=l?x:-1,A=wt(d);(l?L--:++L<x)&&v(A[L],L,A)!==!1;);return d}}function jc(i){return function(l,d,v){for(var x=-1,L=wt(l),A=v(l),D=A.length;D--;){var H=A[i?D:++x];if(d(L[H],H,L)===!1)break}return l}}function Kc(i,l,d){var v=l&ye,x=Ba(i);function L(){var A=this&&this!==Gt&&this instanceof L?x:i;return A.apply(v?d:this,arguments)}return L}function Xc(i){return function(l){l=Nt(l);var d=Zn(l)?Sn(l):o,v=d?d[0]:l.charAt(0),x=d?vo(d,1).join(""):l.slice(1);return v[i]()+x}}function Ha(i){return function(l){return Mu(np(rp(l).replace(wu,"")),i,"")}}function Ba(i){return function(){var l=arguments;switch(l.length){case 0:return new i;case 1:return new i(l[0]);case 2:return new i(l[0],l[1]);case 3:return new i(l[0],l[1],l[2]);case 4:return new i(l[0],l[1],l[2],l[3]);case 5:return new i(l[0],l[1],l[2],l[3],l[4]);case 6:return new i(l[0],l[1],l[2],l[3],l[4],l[5]);case 7:return new i(l[0],l[1],l[2],l[3],l[4],l[5],l[6])}var d=ci(i.prototype),v=i.apply(d,l);return ar(v)?v:d}}function o0(i,l,d){var v=Ba(i);function x(){for(var L=arguments.length,A=Y(L),D=L,H=Wa(x);D--;)A[D]=arguments[D];var te=L<3&&A[0]!==H&&A[L-1]!==H?[]:Xi(A,H);if(L-=te.length,L<d)return e1(i,l,As,x.placeholder,o,A,te,o,o,d-L);var re=this&&this!==Gt&&this instanceof x?v:i;return bn(re,this,A)}return x}function a0(i){return function(l,d,v){var x=wt(l);if(!Pn(l)){var L=Be(d,3);l=Gr(l),d=function(D){return L(x[D],D,x)}}var A=i(l,d,v);return A>-1?x[L?l[A]:A]:o}}function Qc(i){return Ai(function(l){var d=l.length,v=d,x=Jr.prototype.thru;for(i&&l.reverse();v--;){var L=l[v];if(typeof L!="function")throw new sn(b);if(x&&!A&&Ns(L)=="wrapper")var A=new Jr([],!0)}for(v=A?v:d;++v<d;){L=l[v];var D=Ns(L),H=D=="wrapper"?_t(L):o;H&&M(H[0])&&H[1]==(Ye|pe|Te|et)&&!H[4].length&&H[9]==1?A=A[Ns(H[0])].apply(A,H[3]):A=L.length==1&&M(L)?A[D]():A.thru(L)}return function(){var te=arguments,re=te[0];if(A&&te.length==1&&ct(re))return A.plant(re).value();for(var se=0,Le=d?l[se].apply(this,te):re;++se<d;)Le=l[se].call(this,Le);return Le}})}function As(i,l,d,v,x,L,A,D,H,te){var re=l&Ye,se=l&ye,Le=l&Ae,Ne=l&(pe|he),je=l&nt,gt=Le?o:Ba(i);function Ke(){for(var Ct=arguments.length,xt=Y(Ct),Kn=Ct;Kn--;)xt[Kn]=arguments[Kn];if(Ne)var xn=Wa(Ke),Xn=yf(xt,xn);if(v&&(xt=Vc(xt,v,x,Ne)),L&&(xt=Fl(xt,L,A,Ne)),Ct-=Xn,Ne&&Ct<te){var mr=Xi(xt,xn);return e1(i,l,As,Ke.placeholder,d,xt,mr,D,H,te-Ct)}var Di=se?d:this,ea=Le?Di[i]:i;return Ct=xt.length,D?xt=lt(xt,D):je&&Ct>1&&xt.reverse(),re&&H<Ct&&(xt.length=H),this&&this!==Gt&&this instanceof Ke&&(ea=gt||Ba(ea)),ea.apply(Di,xt)}return Ke}function qo(i,l){return function(d,v){return El(d,i,l(v),{})}}function Es(i,l){return function(d,v){var x;if(d===o&&v===o)return l;if(d!==o&&(x=d),v!==o){if(x===o)return v;typeof d=="string"||typeof v=="string"?(d=Fr(d),v=Fr(v)):(d=Ju(d),v=Ju(v)),x=i(d,v)}return x}}function Fa(i){return Ai(function(l){return l=Et(l,Qr(Be())),ft(function(d){var v=this;return i(l,function(x){return bn(x,v,d)})})})}function Ul(i,l){l=l===o?" ":Fr(l);var d=l.length;if(d<2)return d?Xu(l,i):l;var v=Xu(l,La(i/Ro(l)));return Zn(l)?vo(Sn(v),0,i).join(""):v.slice(0,i)}function Zf(i,l,d,v){var x=l&ye,L=Ba(i);function A(){for(var D=-1,H=arguments.length,te=-1,re=v.length,se=Y(re+H),Le=this&&this!==Gt&&this instanceof A?L:i;++te<re;)se[te]=v[te];for(;H--;)se[te++]=arguments[++D];return bn(Le,x?d:this,se)}return A}function Jc(i){return function(l,d,v){return v&&typeof v!="number"&&y(l,d,v)&&(d=v=o),l=Jo(l),d===o?(d=l,l=0):d=Jo(d),v=v===o?l<d?1:-1:Jo(v),Fc(l,d,v,i)}}function Dt(i){return function(l,d){return typeof l=="string"&&typeof d=="string"||(l=gi(l),d=gi(d)),i(l,d)}}function e1(i,l,d,v,x,L,A,D,H,te){var re=l&pe,se=re?A:o,Le=re?o:A,Ne=re?L:o,je=re?o:L;l|=re?Te:He,l&=~(re?He:Te),l&Ie||(l&=~(ye|Ae));var gt=[i,l,x,Ne,se,je,Le,D,H,te],Ke=d.apply(o,gt);return M(i)&&ur(Ke,gt),Ke.placeholder=v,Yr(Ke,i,l)}function Is(i){var l=pr[i];return function(d,v){if(d=gi(d),v=v==null?0:Pr(dt(v),292),v&&Cc(d)){var x=(Nt(d)+"e").split("e"),L=l(x[0]+"e"+(+x[1]+v));return x=(Nt(L)+"e").split("e"),+(x[0]+"e"+(+x[1]-v))}return l(d)}}var Ds=Wo&&1/vl(new Wo([,-0]))[1]==be?function(i){return new Wo(i)}:id;function On(i){return function(l){var d=Wr(l);return d==lr?gl(l):d==tt?hc(l):Si(l,i(l))}}function Tn(i,l,d,v,x,L,A,D){var H=l&Ae;if(!H&&typeof i!="function")throw new sn(b);var te=v?v.length:0;if(te||(l&=~(Te|He),v=x=o),A=A===o?A:jt(dt(A),0),D=D===o?D:dt(D),te-=x?x.length:0,l&He){var re=v,se=x;v=x=o}var Le=H?o:_t(i),Ne=[i,l,d,v,x,re,se,L,A,D];if(Le&&we(Ne,Le),i=Ne[0],l=Ne[1],d=Ne[2],v=Ne[3],x=Ne[4],D=Ne[9]=Ne[9]===o?H?0:i.length:jt(Ne[9]-te,0),!D&&l&(pe|he)&&(l&=~(pe|he)),!l||l==ye)var je=Kc(i,l,d);else l==pe||l==he?je=o0(i,l,D):(l==Te||l==(ye|Te))&&!x.length?je=Zf(i,l,d,v):je=As.apply(o,Ne);var gt=Le?Os:ur;return Yr(gt(je,Ne),i,l)}function Yl(i,l,d,v){return i===o||Ii(i,eo[d])&&!rt.call(v,d)?l:i}function s0(i,l,d,v,x,L){return ar(i)&&ar(l)&&(L.set(l,i),Dl(i,l,o,s0,L),L.delete(l)),i}function t1(i){return f0(i)?o:i}function l0(i,l,d,v,x,L){var A=d&ce,D=i.length,H=l.length;if(D!=H&&!(A&&H>D))return!1;var te=L.get(i),re=L.get(l);if(te&&re)return te==l&&re==i;var se=-1,Le=!0,Ne=d&xe?new Ir:o;for(L.set(i,l),L.set(l,i);++se<D;){var je=i[se],gt=l[se];if(v)var Ke=A?v(gt,je,se,l,i,L):v(je,gt,se,i,l,L);if(Ke!==o){if(Ke)continue;Le=!1;break}if(Ne){if(!Eo(l,function(Ct,xt){if(!an(Ne,xt)&&(je===Ct||x(je,Ct,d,v,L)))return Ne.push(xt)})){Le=!1;break}}else if(!(je===gt||x(je,gt,d,v,L))){Le=!1;break}}return L.delete(i),L.delete(l),Le}function r1(i,l,d,v,x,L,A){switch(d){case $n:if(i.byteLength!=l.byteLength||i.byteOffset!=l.byteOffset)return!1;i=i.buffer,l=l.buffer;case Mr:return!(i.byteLength!=l.byteLength||!L(new $o(i),new $o(l)));case Ze:case at:case Xe:return Ii(+i,+l);case We:return i.name==l.name&&i.message==l.message;case fr:case B:return i==l+"";case lr:var D=gl;case tt:var H=v&ce;if(D||(D=vl),i.size!=l.size&&!H)return!1;var te=A.get(i);if(te)return te==l;v|=xe,A.set(i,l);var re=l0(D(i),D(l),v,x,L,A);return A.delete(i),re;case oe:if(Kt)return Kt.call(i)==Kt.call(l)}return!1}function n1(i,l,d,v,x,L){var A=d&ce,D=Rs(i),H=D.length,te=Rs(l),re=te.length;if(H!=re&&!A)return!1;for(var se=H;se--;){var Le=D[se];if(!(A?Le in l:rt.call(l,Le)))return!1}var Ne=L.get(i),je=L.get(l);if(Ne&&je)return Ne==l&&je==i;var gt=!0;L.set(i,l),L.set(l,i);for(var Ke=A;++se<H;){Le=D[se];var Ct=i[Le],xt=l[Le];if(v)var Kn=A?v(xt,Ct,Le,l,i,L):v(Ct,xt,Le,i,l,L);if(!(Kn===o?Ct===xt||x(Ct,xt,d,v,L):Kn)){gt=!1;break}Ke||(Ke=Le=="constructor")}if(gt&&!Ke){var xn=i.constructor,Xn=l.constructor;xn!=Xn&&"constructor"in i&&"constructor"in l&&!(typeof xn=="function"&&xn instanceof xn&&typeof Xn=="function"&&Xn instanceof Xn)&&(gt=!1)}return L.delete(i),L.delete(l),gt}function Ai(i){return Ur(Re(i,o,Oh),i+"")}function Rs(i){return Zo(i,Gr,u0)}function Zl(i){return Zo(i,An,i1)}var _t=ui?function(i){return ui.get(i)}:id;function Ns(i){for(var l=i.name+"",d=Ma[l],v=rt.call(Ma,l)?d.length:0;v--;){var x=d[v],L=x.func;if(L==null||L==i)return x.name}return l}function Wa(i){var l=rt.call(z,"placeholder")?z:i;return l.placeholder}function Be(){var i=z.iteratee||rd;return i=i===rd?Rc:i,arguments.length?i(arguments[0],arguments[1]):i}function Vl(i,l){var d=i.__data__;return _(l)?d[typeof l=="string"?"string":"hash"]:d.map}function Ua(i){for(var l=Gr(i),d=l.length;d--;){var v=l[d],x=i[v];l[d]=[v,x,J(x)]}return l}function jo(i,l){var d=Eu(i,l);return Ia(d)?d:o}function tr(i){var l=rt.call(i,no),d=i[no];try{i[no]=o;var v=!0}catch{}var x=No.call(i);return v&&(l?i[no]=d:delete i[no]),x}var u0=io?function(i){return i==null?[]:(i=wt(i),qi(io(i),function(l){return Cl.call(i,l)}))}:od,i1=io?function(i){for(var l=[];i;)ji(l,u0(i)),i=xa(i);return l}:od,Wr=Lr;(ao&&Wr(new ao(new ArrayBuffer(1)))!=$n||Sa&&Wr(new Sa)!=lr||xl&&Wr(xl.resolve())!=$r||Wo&&Wr(new Wo)!=tt||ws&&Wr(new ws)!=Qe)&&(Wr=function(i){var l=Lr(i),d=l==kt?i.constructor:o,v=d?Ht(d):"";if(v)switch(v){case _f:return $n;case Sf:return lr;case Mf:return $r;case kf:return tt;case Of:return Qe}return l});function Gl(i,l,d){for(var v=-1,x=d.length;++v<x;){var L=d[v],A=L.size;switch(L.type){case"drop":i+=A;break;case"dropRight":l-=A;break;case"take":l=Pr(l,i+A);break;case"takeRight":i=jt(i,l-A);break}}return{start:i,end:l}}function e(i){var l=i.match(is);return l?l[1].split(Vi):[]}function t(i,l,d){l=qn(l,i);for(var v=-1,x=l.length,L=!1;++v<x;){var A=It(l[v]);if(!(L=i!=null&&d(i,A)))break;i=i[A]}return L||++v!=x?L:(x=i==null?0:i.length,!!x&&c1(x)&&m(A,x)&&(ct(i)||$s(i)))}function s(i){var l=i.length,d=new i.constructor(l);return l&&typeof i[0]=="string"&&rt.call(i,"index")&&(d.index=i.index,d.input=i.input),d}function a(i){return typeof i.constructor=="function"&&!Z(i)?ci(xa(i)):{}}function u(i,l,d){var v=i.constructor;switch(l){case Mr:return Bl(i);case Ze:case at:return new v(+i);case $n:return Uf(i,d);case jr:case Zt:case zi:case Hr:case Hn:case $e:case Yi:case kr:case Ge:return Yc(i,d);case lr:return new v;case Xe:case B:return new v(i);case fr:return n0(i);case tt:return new v;case oe:return Uc(i)}}function h(i,l){var d=l.length;if(!d)return i;var v=d-1;return l[v]=(d>1?"& ":"")+l[v],l=l.join(d>2?", ":" "),i.replace(tl,`{
2365
2387
  /* [wrapped with `+l+`] */
2366
- `)}function g(i){return ct(i)||$s(i)||!!(Ho&&i&&i[Ho])}function m(i,l){var d=typeof i;return l=l==null?ot:l,!!l&&(d=="number"||d!="symbol"&&os.test(i))&&i>-1&&i%1==0&&i<l}function y(i,l,d){if(!ar(d))return!1;var v=typeof l;return(v=="number"?Tn(d)&&m(l,d.length):v=="string"&&l in d)?Ii(d[l],i):!1}function C(i,l){if(ct(i))return!1;var d=typeof i;return d=="number"||d=="symbol"||d=="boolean"||i==null||jn(i)?!0:Kr.test(i)||!ns.test(i)||l!=null&&i in wt(l)}function _(i){var l=typeof i;return l=="string"||l=="number"||l=="symbol"||l=="boolean"?i!=="__proto__":i===null}function k(i){var l=Ns(i),d=z[l];if(typeof d!="function"||!(l in bt.prototype))return!1;if(i===d)return!0;var v=_t(d);return!!v&&i===v[0]}function N(i){return!!ki&&ki in i}var R=si?Qo:od;function Z(i){var l=i&&i.constructor,d=typeof l=="function"&&l.prototype||eo;return i===d}function J(i){return i===i&&!ar(i)}function le(i,l){return function(d){return d==null?!1:d[i]===l&&(l!==o||i in wt(d))}}function fe(i){var l=l1(i,function(v){return d.size===O&&d.clear(),v}),d=l.cache;return l}function we(i,l){var d=i[1],v=l[1],x=d|v,L=x<(ye|Ae|Ye),A=v==Ye&&d==pe||v==Ye&&d==et&&i[7].length<=l[8]||v==(Ye|et)&&l[7].length<=l[8]&&d==pe;if(!(L||A))return i;v&ye&&(i[2]=l[2],x|=d&ye?0:Ie);var D=l[3];if(D){var H=i[3];i[3]=H?Vc(H,D,l[4]):D,i[4]=H?Xi(i[3],I):l[4]}return D=l[5],D&&(H=i[5],i[5]=H?Fl(H,D,l[6]):D,i[6]=H?Xi(i[5],I):l[6]),D=l[7],D&&(i[7]=D),v&Ye&&(i[8]=i[8]==null?l[8]:Pr(i[8],l[8])),i[9]==null&&(i[9]=l[9]),i[0]=l[0],i[1]=x,i}function de(i){var l=[];if(i!=null)for(var d in wt(i))l.push(d);return l}function ze(i){return No.call(i)}function Re(i,l,d){return l=jt(l===o?i.length-1:l,0),function(){for(var v=arguments,x=-1,L=jt(v.length-l,0),A=Y(L);++x<L;)A[x]=v[l+x];x=-1;for(var D=Y(l+1);++x<l;)D[x]=v[x];return D[l]=d(A),bn(i,this,D)}}function Pe(i,l){return l.length<2?i:fo(i,kn(l,0,-1))}function lt(i,l){for(var d=i.length,v=Pr(l.length,d),x=_r(i);v--;){var L=l[v];i[v]=m(L,d)?x[L]:o}return i}function Ot(i,l){if(!(l==="constructor"&&typeof i[l]=="function")&&l!="__proto__")return i[l]}var ur=rr(Os),Rt=zf||function(i,l){return Gt.setTimeout(i,l)},Ur=rr(Ts);function Yr(i,l,d){var v=l+"";return Ur(i,h(v,Xt(e(v),d)))}function rr(i){var l=0,d=0;return function(){var v=Fo(),x=W-(v-d);if(d=v,x>0){if(++l>=it)return arguments[0]}else l=0;return i.apply(o,arguments)}}function Sr(i,l){var d=-1,v=i.length,x=v-1;for(l=l===o?v:l;++d<l;){var L=Rl(d,x),A=i[L];i[L]=i[d],i[d]=A}return i.length=l,i}var gr=fe(function(i){var l=[];return i.charCodeAt(0)===46&&l.push(""),i.replace(Js,function(d,v,x,L){l.push(x?L.replace(rl,"$1"):v||d)}),l});function It(i){if(typeof i=="string"||jn(i))return i;var l=i+"";return l=="0"&&1/i==-be?"-0":l}function Ht(i){if(i!=null){try{return li.call(i)}catch{}try{return i+""}catch{}}return""}function Xt(i,l){return Ln(Ft,function(d){var v="_."+d[0];l&d[1]&&!hs(i,v)&&i.push(v)}),i.sort()}function Zr(i){if(i instanceof bt)return i.clone();var l=new Jr(i.__wrapped__,i.__chain__);return l.__actions__=_r(i.__actions__),l.__index__=i.__index__,l.__values__=i.__values__,l}function Ya(i,l,d){(d?y(i,l,d):l===o)?l=1:l=jt(dt(l),0);var v=i==null?0:i.length;if(!v||l<1)return[];for(var x=0,L=0,A=Y(La(v/l));x<v;)A[L++]=kn(i,x,x+=l);return A}function bo(i){for(var l=-1,d=i==null?0:i.length,v=0,x=[];++l<d;){var L=i[l];L&&(x[v++]=L)}return x}function Rr(){var i=arguments.length;if(!i)return[];for(var l=Y(i-1),d=arguments[0],v=i;v--;)l[v-1]=arguments[v];return ji(ct(d)?_r(d):[d],Dr(l,1))}var hi=ft(function(i,l){return br(i)?Ma(i,Dr(l,1,br,!0)):[]}),vr=ft(function(i,l){var d=pi(l);return br(d)&&(d=o),br(i)?Ma(i,Dr(l,1,br,!0),Be(d,2)):[]}),c0=ft(function(i,l){var d=pi(l);return br(d)&&(d=o),br(i)?Ma(i,Dr(l,1,br,!0),o,d):[]});function Ei(i,l,d){var v=i==null?0:i.length;return v?(l=d||l===o?1:dt(l),kn(i,l<0?0:l,v)):[]}function Ko(i,l,d){var v=i==null?0:i.length;return v?(l=d||l===o?1:dt(l),l=v-l,kn(i,0,l<0?0:l)):[]}function Xo(i,l){return i&&i.length?Ra(i,Be(l,3),!0,!0):[]}function Vr(i,l){return i&&i.length?Ra(i,Be(l,3),!0):[]}function Za(i,l,d,v){var x=i==null?0:i.length;return x?(d&&typeof d!="number"&&y(i,l,d)&&(d=0,v=x),Vu(i,l,d,v)):[]}function ql(i,l,d){var v=i==null?0:i.length;if(!v)return-1;var x=d==null?0:dt(d);return x<0&&(x=jt(v+x,0)),fl(i,Be(l,3),x)}function Mh(i,l,d){var v=i==null?0:i.length;if(!v)return-1;var x=v-1;return d!==o&&(x=dt(d),x=d<0?jt(v+x,0):Pr(x,v-1)),fl(i,Be(l,3),x,!0)}function Oh(i){var l=i==null?0:i.length;return l?Dr(i,1):[]}function z5(i){var l=i==null?0:i.length;return l?Dr(i,be):[]}function L5(i,l){var d=i==null?0:i.length;return d?(l=l===o?1:dt(l),Dr(i,l)):[]}function _5(i){for(var l=-1,d=i==null?0:i.length,v={};++l<d;){var x=i[l];v[x[0]]=x[1]}return v}function Th(i){return i&&i.length?i[0]:o}function S5(i,l,d){var v=i==null?0:i.length;if(!v)return-1;var x=d==null?0:dt(d);return x<0&&(x=jt(v+x,0)),Io(i,l,x)}function k5(i){var l=i==null?0:i.length;return l?kn(i,0,-1):[]}var M5=ft(function(i){var l=Et(i,t0);return l.length&&l[0]===i[0]?Al(l):[]}),O5=ft(function(i){var l=pi(i),d=Et(i,t0);return l===pi(d)?l=o:d.pop(),d.length&&d[0]===i[0]?Al(d,Be(l,2)):[]}),T5=ft(function(i){var l=pi(i),d=Et(i,t0);return l=typeof l=="function"?l:o,l&&d.pop(),d.length&&d[0]===i[0]?Al(d,o,l):[]});function P5(i,l){return i==null?"":wl.call(i,l)}function pi(i){var l=i==null?0:i.length;return l?i[l-1]:o}function A5(i,l,d){var v=i==null?0:i.length;if(!v)return-1;var x=v;return d!==o&&(x=dt(d),x=x<0?jt(v+x,0):Pr(x,v-1)),l===l?gs(i,l,x):fl(i,dl,x,!0)}function E5(i,l){return i&&i.length?$c(i,dt(l)):o}var I5=ft(Ph);function Ph(i,l){return i&&i.length&&l&&l.length?ju(i,l):i}function D5(i,l,d){return i&&i.length&&l&&l.length?ju(i,l,Be(d,2)):i}function R5(i,l,d){return i&&i.length&&l&&l.length?ju(i,l,o,d):i}var N5=Ai(function(i,l){var d=i==null?0:i.length,v=Zu(i,l);return Ku(i,Et(l,function(x){return m(x,d)?+x:x}).sort(i0)),v});function $5(i,l){var d=[];if(!(i&&i.length))return d;var v=-1,x=[],L=i.length;for(l=Be(l,3);++v<L;){var A=i[v];l(A,v,i)&&(d.push(A),x.push(v))}return Ku(i,x),d}function Zf(i){return i==null?i:Cs.call(i)}function H5(i,l,d){var v=i==null?0:i.length;return v?(d&&typeof d!="number"&&y(i,l,d)?(l=0,d=v):(l=l==null?0:dt(l),d=d===o?v:dt(d)),kn(i,l,d)):[]}function B5(i,l){return Pi(i,l)}function F5(i,l,d){return Nl(i,l,Be(d,2))}function W5(i,l){var d=i==null?0:i.length;if(d){var v=Pi(i,l);if(v<d&&Ii(i[v],l))return v}return-1}function U5(i,l){return Pi(i,l,!0)}function Y5(i,l,d){return Nl(i,l,Be(d,2),!0)}function Z5(i,l){var d=i==null?0:i.length;if(d){var v=Pi(i,l,!0)-1;if(Ii(i[v],l))return v}return-1}function V5(i){return i&&i.length?Qu(i):[]}function G5(i,l){return i&&i.length?Qu(i,Be(l,2)):[]}function q5(i){var l=i==null?0:i.length;return l?kn(i,1,l):[]}function j5(i,l,d){return i&&i.length?(l=d||l===o?1:dt(l),kn(i,0,l<0?0:l)):[]}function K5(i,l,d){var v=i==null?0:i.length;return v?(l=d||l===o?1:dt(l),l=v-l,kn(i,l<0?0:l,v)):[]}function X5(i,l){return i&&i.length?Ra(i,Be(l,3),!1,!0):[]}function Q5(i,l){return i&&i.length?Ra(i,Be(l,3)):[]}var J5=ft(function(i){return wn(Dr(i,1,br,!0))}),e6=ft(function(i){var l=pi(i);return br(l)&&(l=o),wn(Dr(i,1,br,!0),Be(l,2))}),t6=ft(function(i){var l=pi(i);return l=typeof l=="function"?l:o,wn(Dr(i,1,br,!0),o,l)});function r6(i){return i&&i.length?wn(i):[]}function n6(i,l){return i&&i.length?wn(i,Be(l,2)):[]}function i6(i,l){return l=typeof l=="function"?l:o,i&&i.length?wn(i,o,l):[]}function Vf(i){if(!(i&&i.length))return[];var l=0;return i=qi(i,function(d){if(br(d))return l=jt(d.length,l),!0}),Do(l,function(d){return Et(i,Ou(d))})}function Ah(i,l){if(!(i&&i.length))return[];var d=Vf(i);return l==null?d:Et(d,function(v){return bn(l,o,v)})}var o6=ft(function(i,l){return br(i)?Ma(i,l):[]}),a6=ft(function(i){return Go(qi(i,br))}),s6=ft(function(i){var l=pi(i);return br(l)&&(l=o),Go(qi(i,br),Be(l,2))}),l6=ft(function(i){var l=pi(i);return l=typeof l=="function"?l:o,Go(qi(i,br),o,l)}),u6=ft(Vf);function c6(i,l){return e0(i||[],l||[],Ls)}function f6(i,l){return e0(i||[],l||[],Oi)}var d6=ft(function(i){var l=i.length,d=l>1?i[l-1]:o;return d=typeof d=="function"?(i.pop(),d):o,Ah(i,d)});function Eh(i){var l=z(i);return l.__chain__=!0,l}function h6(i,l){return l(i),i}function o1(i,l){return l(i)}var p6=Ai(function(i){var l=i.length,d=l?i[0]:0,v=this.__wrapped__,x=function(L){return Zu(L,i)};return l>1||this.__actions__.length||!(v instanceof bt)||!m(d)?this.thru(x):(v=v.slice(d,+d+(l?1:0)),v.__actions__.push({func:o1,args:[x],thisArg:o}),new Jr(v,this.__chain__).thru(function(L){return l&&!L.length&&L.push(o),L}))});function g6(){return Eh(this)}function v6(){return new Jr(this.value(),this.__chain__)}function b6(){this.__values__===o&&(this.__values__=Gh(this.value()));var i=this.__index__>=this.__values__.length,l=i?o:this.__values__[this.__index__++];return{done:i,value:l}}function m6(){return this}function y6(i){for(var l,d=this;d instanceof zl;){var v=Zr(d);v.__index__=0,v.__values__=o,l?x.__wrapped__=v:l=v;var x=v;d=d.__wrapped__}return x.__wrapped__=i,l}function C6(){var i=this.__wrapped__;if(i instanceof bt){var l=i;return this.__actions__.length&&(l=new bt(this)),l=l.reverse(),l.__actions__.push({func:o1,args:[Zf],thisArg:o}),new Jr(l,this.__chain__)}return this.thru(Zf)}function w6(){return Wc(this.__wrapped__,this.__actions__)}var x6=Wl(function(i,l,d){rt.call(i,d)?++i[d]:di(i,d,1)});function z6(i,l,d){var v=ct(i)?Su:Ml;return d&&y(i,l,d)&&(l=o),v(i,Be(l,3))}function L6(i,l){var d=ct(i)?qi:Gu;return d(i,Be(l,3))}var _6=a0(ql),S6=a0(Mh);function k6(i,l){return Dr(a1(i,l),1)}function M6(i,l){return Dr(a1(i,l),be)}function O6(i,l,d){return d=d===o?1:dt(d),Dr(a1(i,l),d)}function Ih(i,l){var d=ct(i)?Ln:yn;return d(i,Be(l,3))}function Dh(i,l){var d=ct(i)?pf:kl;return d(i,Be(l,3))}var T6=Wl(function(i,l,d){rt.call(i,d)?i[d].push(l):di(i,d,[l])});function P6(i,l,d,v){i=Tn(i)?i:Kl(i),d=d&&!v?dt(d):0;var x=i.length;return d<0&&(d=jt(x+d,0)),f1(i)?d<=x&&i.indexOf(l,d)>-1:!!x&&Io(i,l,d)>-1}var A6=ft(function(i,l,d){var v=-1,x=typeof l=="function",L=Tn(i)?Y(i.length):[];return yn(i,function(A){L[++v]=x?bn(l,A,d):Ta(A,l,d)}),L}),E6=Wl(function(i,l,d){di(i,d,l)});function a1(i,l){var d=ct(i)?Et:Da;return d(i,Be(l,3))}function I6(i,l,d,v){return i==null?[]:(ct(l)||(l=l==null?[]:[l]),d=v?o:d,ct(d)||(d=d==null?[]:[d]),Br(i,l,d))}var D6=Wl(function(i,l,d){i[d?0:1].push(l)},function(){return[[],[]]});function R6(i,l,d){var v=ct(i)?ku:Pu,x=arguments.length<3;return v(i,Be(l,4),d,x,yn)}function N6(i,l,d){var v=ct(i)?gf:Pu,x=arguments.length<3;return v(i,Be(l,4),d,x,kl)}function $6(i,l){var d=ct(i)?qi:Gu;return d(i,u1(Be(l,3)))}function H6(i){var l=ct(i)?_l:Hf;return l(i)}function B6(i,l,d){(d?y(i,l,d):l===o)?l=1:l=dt(l);var v=ct(i)?co:go;return v(i,l)}function F6(i){var l=ct(i)?kc:Ti;return l(i)}function W6(i){if(i==null)return 0;if(Tn(i))return f1(i)?Ro(i):i.length;var l=Wr(i);return l==lr||l==tt?i.size:Il(i).length}function U6(i,l,d){var v=ct(i)?Eo:Bf;return d&&y(i,l,d)&&(l=o),v(i,Be(l,3))}var Y6=ft(function(i,l){if(i==null)return[];var d=l.length;return d>1&&y(i,l[0],l[1])?l=[]:d>2&&y(l[0],l[1],l[2])&&(l=[l[0]]),Br(i,Dr(l,1),[])}),s1=xf||function(){return Gt.Date.now()};function Z6(i,l){if(typeof l!="function")throw new sn(b);return i=dt(i),function(){if(--i<1)return l.apply(this,arguments)}}function Rh(i,l,d){return l=d?o:l,l=i&&l==null?i.length:l,On(i,Ye,o,o,o,o,l)}function Nh(i,l){var d;if(typeof l!="function")throw new sn(b);return i=dt(i),function(){return--i>0&&(d=l.apply(this,arguments)),i<=1&&(l=o),d}}var Gf=ft(function(i,l,d){var v=ye;if(d.length){var x=Xi(d,Wa(Gf));v|=Te}return On(i,v,l,d,x)}),$h=ft(function(i,l,d){var v=ye|Ae;if(d.length){var x=Xi(d,Wa($h));v|=Te}return On(l,v,i,d,x)});function Hh(i,l,d){l=d?o:l;var v=On(i,pe,o,o,o,o,o,l);return v.placeholder=Hh.placeholder,v}function Bh(i,l,d){l=d?o:l;var v=On(i,he,o,o,o,o,o,l);return v.placeholder=Bh.placeholder,v}function Fh(i,l,d){var v,x,L,A,D,H,te=0,re=!1,se=!1,Le=!0;if(typeof i!="function")throw new sn(b);l=gi(l)||0,ar(d)&&(re=!!d.leading,se="maxWait"in d,L=se?jt(gi(d.maxWait)||0,l):L,Le="trailing"in d?!!d.trailing:Le);function Ne(mr){var Di=v,ea=x;return v=x=o,te=mr,A=i.apply(ea,Di),A}function je(mr){return te=mr,D=Rt(Ct,l),re?Ne(mr):A}function gt(mr){var Di=mr-H,ea=mr-te,ap=l-Di;return se?Pr(ap,L-ea):ap}function Ke(mr){var Di=mr-H,ea=mr-te;return H===o||Di>=l||Di<0||se&&ea>=L}function Ct(){var mr=s1();if(Ke(mr))return xt(mr);D=Rt(Ct,gt(mr))}function xt(mr){return D=o,Le&&v?Ne(mr):(v=x=o,A)}function Kn(){D!==o&&Na(D),te=0,v=H=x=D=o}function xn(){return D===o?A:xt(s1())}function Xn(){var mr=s1(),Di=Ke(mr);if(v=arguments,x=this,H=mr,Di){if(D===o)return je(H);if(se)return Na(D),D=Rt(Ct,l),Ne(H)}return D===o&&(D=Rt(Ct,l)),A}return Xn.cancel=Kn,Xn.flush=xn,Xn}var V6=ft(function(i,l){return Tc(i,1,l)}),G6=ft(function(i,l,d){return Tc(i,gi(l)||0,d)});function q6(i){return On(i,nt)}function l1(i,l){if(typeof i!="function"||l!=null&&typeof l!="function")throw new sn(b);var d=function(){var v=arguments,x=l?l.apply(this,v):v[0],L=d.cache;if(L.has(x))return L.get(x);var A=i.apply(this,v);return d.cache=L.set(x,A)||L,A};return d.cache=new(l1.Cache||or),d}l1.Cache=or;function u1(i){if(typeof i!="function")throw new sn(b);return function(){var l=arguments;switch(l.length){case 0:return!i.call(this);case 1:return!i.call(this,l[0]);case 2:return!i.call(this,l[0],l[1]);case 3:return!i.call(this,l[0],l[1],l[2])}return!i.apply(this,l)}}function j6(i){return Nh(2,i)}var K6=Ff(function(i,l){l=l.length==1&&ct(l[0])?Et(l[0],Qr(Be())):Et(Dr(l,1),Qr(Be()));var d=l.length;return ft(function(v){for(var x=-1,L=Pr(v.length,d);++x<L;)v[x]=l[x].call(this,v[x]);return bn(i,this,v)})}),qf=ft(function(i,l){var d=Xi(l,Wa(qf));return On(i,Te,o,l,d)}),Wh=ft(function(i,l){var d=Xi(l,Wa(Wh));return On(i,He,o,l,d)}),X6=Ai(function(i,l){return On(i,et,o,o,o,l)});function Q6(i,l){if(typeof i!="function")throw new sn(b);return l=l===o?l:dt(l),ft(i,l)}function J6(i,l){if(typeof i!="function")throw new sn(b);return l=l==null?0:jt(dt(l),0),ft(function(d){var v=d[l],x=vo(d,0,l);return v&&ji(x,v),bn(i,this,x)})}function e3(i,l,d){var v=!0,x=!0;if(typeof i!="function")throw new sn(b);return ar(d)&&(v="leading"in d?!!d.leading:v,x="trailing"in d?!!d.trailing:x),Fh(i,l,{leading:v,maxWait:l,trailing:x})}function t3(i){return Rh(i,1)}function r3(i,l){return qf(Hl(l),i)}function n3(){if(!arguments.length)return[];var i=arguments[0];return ct(i)?i:[i]}function i3(i){return en(i,X)}function o3(i,l){return l=typeof l=="function"?l:o,en(i,X,l)}function a3(i){return en(i,U|X)}function s3(i,l){return l=typeof l=="function"?l:o,en(i,U|X,l)}function l3(i,l){return l==null||Oc(i,l,Gr(l))}function Ii(i,l){return i===l||i!==i&&l!==l}var u3=Dt(Pl),c3=Dt(function(i,l){return i>=l}),$s=Pa(function(){return arguments}())?Pa:function(i){return cr(i)&&rt.call(i,"callee")&&!Cl.call(i,"callee")},ct=Y.isArray,f3=nc?Qr(nc):Rf;function Tn(i){return i!=null&&c1(i.length)&&!Qo(i)}function br(i){return cr(i)&&Tn(i)}function d3(i){return i===!0||i===!1||cr(i)&&Lr(i)==Ze}var Va=ms||od,h3=ic?Qr(ic):Aa;function p3(i){return cr(i)&&i.nodeType===1&&!f0(i)}function g3(i){if(i==null)return!0;if(Tn(i)&&(ct(i)||typeof i=="string"||typeof i.splice=="function"||Va(i)||jl(i)||$s(i)))return!i.length;var l=Wr(i);if(l==lr||l==tt)return!i.size;if(Z(i))return!Il(i).length;for(var d in i)if(rt.call(i,d))return!1;return!0}function v3(i,l){return Ea(i,l)}function b3(i,l,d){d=typeof d=="function"?d:o;var v=d?d(i,l):o;return v===o?Ea(i,l,o,d):!!v}function jf(i){if(!cr(i))return!1;var l=Lr(i);return l==We||l==st||typeof i.message=="string"&&typeof i.name=="string"&&!f0(i)}function m3(i){return typeof i=="number"&&Cc(i)}function Qo(i){if(!ar(i))return!1;var l=Lr(i);return l==Vt||l==qr||l==Fe||l==rn}function Uh(i){return typeof i=="number"&&i==dt(i)}function c1(i){return typeof i=="number"&&i>-1&&i%1==0&&i<=ot}function ar(i){var l=typeof i;return i!=null&&(l=="object"||l=="function")}function cr(i){return i!=null&&typeof i=="object"}var Yh=oc?Qr(oc):Ic;function y3(i,l){return i===l||Vo(i,l,Ua(l))}function C3(i,l,d){return d=typeof d=="function"?d:o,Vo(i,l,Ua(l),d)}function w3(i){return Zh(i)&&i!=+i}function x3(i){if(R(i))throw new Je(p);return Ia(i)}function z3(i){return i===null}function L3(i){return i==null}function Zh(i){return typeof i=="number"||cr(i)&&Lr(i)==Xe}function f0(i){if(!cr(i)||Lr(i)!=Mt)return!1;var l=xa(i);if(l===null)return!0;var d=rt.call(l,"constructor")&&l.constructor;return typeof d=="function"&&d instanceof d&&li.call(d)==Cf}var Kf=ac?Qr(ac):ks;function _3(i){return Uh(i)&&i>=-ot&&i<=ot}var Vh=Lu?Qr(Lu):Ms;function f1(i){return typeof i=="string"||!ct(i)&&cr(i)&&Lr(i)==B}function jn(i){return typeof i=="symbol"||cr(i)&&Lr(i)==oe}var jl=_u?Qr(_u):Dc;function S3(i){return i===o}function k3(i){return cr(i)&&Wr(i)==Qe}function M3(i){return cr(i)&&Lr(i)==dr}var O3=Dt(po),T3=Dt(function(i,l){return i<=l});function Gh(i){if(!i)return[];if(Tn(i))return f1(i)?_n(i):_r(i);if(ro&&i[ro])return fc(i[ro]());var l=Wr(i),d=l==lr?gl:l==tt?vl:Kl;return d(i)}function Jo(i){if(!i)return i===0?i:0;if(i=gi(i),i===be||i===-be){var l=i<0?-1:1;return l*At}return i===i?i:0}function dt(i){var l=Jo(i),d=l%1;return l===l?d?l-d:l:0}function qh(i){return i?Yo(dt(i),0,Bt):0}function gi(i){if(typeof i=="number")return i;if(jn(i))return sr;if(ar(i)){var l=typeof i.valueOf=="function"?i.valueOf():i;i=ar(l)?l+"":l}if(typeof i!="string")return i===0?i:+i;i=ps(i);var d=Fn.test(i);return d||gn.test(i)?df(i.slice(2),d?2:8):ga.test(i)?sr:+i}function jh(i){return ln(i,Pn(i))}function P3(i){return i?Yo(dt(i),-ot,ot):i===0?i:0}function Nt(i){return i==null?"":Fr(i)}var A3=$a(function(i,l){if(Z(l)||Tn(l)){ln(l,Gr(l),i);return}for(var d in l)rt.call(l,d)&&Ls(i,d,l[d])}),Kh=$a(function(i,l){ln(l,Pn(l),i)}),d1=$a(function(i,l,d,v){ln(l,Pn(l),i,v)}),E3=$a(function(i,l,d,v){ln(l,Gr(l),i,v)}),I3=Ai(Zu);function D3(i,l){var d=ci(i);return l==null?d:Yu(d,l)}var R3=ft(function(i,l){i=wt(i);var d=-1,v=l.length,x=v>2?l[2]:o;for(x&&y(l[0],l[1],x)&&(v=1);++d<v;)for(var L=l[d],A=Pn(L),D=-1,H=A.length;++D<H;){var te=A[D],re=i[te];(re===o||Ii(re,eo[te])&&!rt.call(i,te))&&(i[te]=L[te])}return i}),N3=ft(function(i){return i.push(o,s0),bn(Xh,o,i)});function $3(i,l){return ya(i,Be(l,3),Cn)}function H3(i,l){return ya(i,Be(l,3),Tl)}function B3(i,l){return i==null?i:Ol(i,Be(l,3),Pn)}function F3(i,l){return i==null?i:zr(i,Be(l,3),Pn)}function W3(i,l){return i&&Cn(i,Be(l,3))}function U3(i,l){return i&&Tl(i,Be(l,3))}function Y3(i){return i==null?[]:Ss(i,Gr(i))}function Z3(i){return i==null?[]:Ss(i,Pn(i))}function Xf(i,l,d){var v=i==null?o:fo(i,l);return v===o?d:v}function V3(i,l){return i!=null&&t(i,l,Pc)}function Qf(i,l){return i!=null&&t(i,l,Ac)}var G3=qo(function(i,l,d){l!=null&&typeof l.toString!="function"&&(l=No.call(l)),i[l]=d},ed(An)),q3=qo(function(i,l,d){l!=null&&typeof l.toString!="function"&&(l=No.call(l)),rt.call(i,l)?i[l].push(d):i[l]=[d]},Be),j3=ft(Ta);function Gr(i){return Tn(i)?Wu(i):Il(i)}function Pn(i){return Tn(i)?Wu(i,!0):ho(i)}function K3(i,l){var d={};return l=Be(l,3),Cn(i,function(v,x,L){di(d,l(v,x,L),v)}),d}function X3(i,l){var d={};return l=Be(l,3),Cn(i,function(v,x,L){di(d,x,l(v,x,L))}),d}var Q3=$a(function(i,l,d){Dl(i,l,d)}),Xh=$a(function(i,l,d,v){Dl(i,l,d,v)}),J3=Ai(function(i,l){var d={};if(i==null)return d;var v=!1;l=Et(l,function(L){return L=qn(L,i),v||(v=L.length>1),L}),ln(i,Zl(i),d),v&&(d=en(d,U|q|X,t1));for(var x=l.length;x--;)Ps(d,l[x]);return d});function e7(i,l){return Qh(i,u1(Be(l)))}var t7=Ai(function(i,l){return i==null?{}:Hc(i,l)});function Qh(i,l){if(i==null)return{};var d=Et(Zl(i),function(v){return[v]});return l=Be(l),Bc(i,d,function(v,x){return l(v,x[0])})}function r7(i,l,d){l=qn(l,i);var v=-1,x=l.length;for(x||(x=1,i=o);++v<x;){var L=i==null?o:i[It(l[v])];L===o&&(v=x,L=d),i=Qo(L)?L.call(i):L}return i}function n7(i,l,d){return i==null?i:Oi(i,l,d)}function i7(i,l,d,v){return v=typeof v=="function"?v:o,i==null?i:Oi(i,l,d,v)}var Jh=Mn(Gr),ep=Mn(Pn);function o7(i,l,d){var v=ct(i),x=v||Va(i)||jl(i);if(l=Be(l,4),d==null){var L=i&&i.constructor;x?d=v?new L:[]:ar(i)?d=Qo(L)?ci(xa(i)):{}:d={}}return(x?Ln:Cn)(i,function(A,D,H){return l(d,A,D,H)}),d}function a7(i,l){return i==null?!0:Ps(i,l)}function s7(i,l,d){return i==null?i:$l(i,l,Hl(d))}function l7(i,l,d,v){return v=typeof v=="function"?v:o,i==null?i:$l(i,l,Hl(d),v)}function Kl(i){return i==null?[]:hl(i,Gr(i))}function u7(i){return i==null?[]:hl(i,Pn(i))}function c7(i,l,d){return d===o&&(d=l,l=o),d!==o&&(d=gi(d),d=d===d?d:0),l!==o&&(l=gi(l),l=l===l?l:0),Yo(gi(i),l,d)}function f7(i,l,d){return l=Jo(l),d===o?(d=l,l=0):d=Jo(d),i=gi(i),Oa(i,l,d)}function d7(i,l,d){if(d&&typeof d!="boolean"&&y(i,l,d)&&(l=d=o),d===o&&(typeof l=="boolean"?(d=l,l=o):typeof i=="boolean"&&(d=i,i=o)),i===o&&l===o?(i=0,l=1):(i=Jo(i),l===o?(l=i,i=0):l=Jo(l)),i>l){var v=i;i=l,l=v}if(d||i%1||l%1){var x=oo();return Pr(i+x*(l-i+ff("1e-"+((x+"").length-1))),l)}return Rl(i,l)}var h7=Ha(function(i,l,d){return l=l.toLowerCase(),i+(d?tp(l):l)});function tp(i){return Jf(Nt(i).toLowerCase())}function rp(i){return i=Nt(i),i&&i.replace(as,uc).replace(Q0,"")}function p7(i,l,d){i=Nt(i),l=Fr(l);var v=i.length;d=d===o?v:Yo(dt(d),0,v);var x=d;return d-=l.length,d>=0&&i.slice(d,x)==l}function g7(i){return i=Nt(i),i&&hn.test(i)?i.replace(xr,yf):i}function v7(i){return i=Nt(i),i&&ni.test(i)?i.replace(Oo,"\\$&"):i}var b7=Ha(function(i,l,d){return i+(d?"-":"")+l.toLowerCase()}),m7=Ha(function(i,l,d){return i+(d?" ":"")+l.toLowerCase()}),y7=Xc("toLowerCase");function C7(i,l,d){i=Nt(i),l=dt(l);var v=l?Ro(i):0;if(!l||v>=l)return i;var x=(l-v)/2;return Ul(_a(x),d)+i+Ul(La(x),d)}function w7(i,l,d){i=Nt(i),l=dt(l);var v=l?Ro(i):0;return l&&v<l?i+Ul(l-v,d):i}function x7(i,l,d){i=Nt(i),l=dt(l);var v=l?Ro(i):0;return l&&v<l?Ul(l-v,d)+i:i}function z7(i,l,d){return d||l==null?l=0:l&&(l=+l),ys(Nt(i).replace(To,""),l||0)}function L7(i,l,d){return(d?y(i,l,d):l===o)?l=1:l=dt(l),Xu(Nt(i),l)}function _7(){var i=arguments,l=Nt(i[0]);return i.length<3?l:l.replace(i[1],i[2])}var S7=Ha(function(i,l,d){return i+(d?"_":"")+l.toLowerCase()});function k7(i,l,d){return d&&typeof d!="number"&&y(i,l,d)&&(l=d=o),d=d===o?Bt:d>>>0,d?(i=Nt(i),i&&(typeof l=="string"||l!=null&&!Kf(l))&&(l=Fr(l),!l&&Zn(i))?vo(_n(i),0,d):i.split(l,d)):[]}var M7=Ha(function(i,l,d){return i+(d?" ":"")+Jf(l)});function O7(i,l,d){return i=Nt(i),d=d==null?0:Yo(dt(d),0,i.length),l=Fr(l),i.slice(d,d+l.length)==l}function T7(i,l,d){var v=z.templateSettings;d&&y(i,l,d)&&(l=o),i=Nt(i),l=d1({},l,v,Yl);var x=d1({},l.imports,v.imports,Yl),L=Gr(x),A=hl(x,L),D,H,te=0,re=l.interpolate||Wt,se="__p += '",Le=Ji((l.escape||Wt).source+"|"+re.source+"|"+(re===rs?Li:Wt).source+"|"+(l.evaluate||Wt).source+"|$","g"),Ne="//# sourceURL="+(rt.call(l,"sourceURL")?(l.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++zu+"]")+`
2367
- `;i.replace(Le,function(Ke,Ct,xt,Kn,xn,Xn){return xt||(xt=Kn),se+=i.slice(te,Xn).replace(Me,cc),Ct&&(D=!0,se+=`' +
2388
+ `)}function g(i){return ct(i)||$s(i)||!!(Ho&&i&&i[Ho])}function m(i,l){var d=typeof i;return l=l==null?ot:l,!!l&&(d=="number"||d!="symbol"&&os.test(i))&&i>-1&&i%1==0&&i<l}function y(i,l,d){if(!ar(d))return!1;var v=typeof l;return(v=="number"?Pn(d)&&m(l,d.length):v=="string"&&l in d)?Ii(d[l],i):!1}function C(i,l){if(ct(i))return!1;var d=typeof i;return d=="number"||d=="symbol"||d=="boolean"||i==null||jn(i)?!0:Kr.test(i)||!ns.test(i)||l!=null&&i in wt(l)}function _(i){var l=typeof i;return l=="string"||l=="number"||l=="symbol"||l=="boolean"?i!=="__proto__":i===null}function M(i){var l=Ns(i),d=z[l];if(typeof d!="function"||!(l in bt.prototype))return!1;if(i===d)return!0;var v=_t(d);return!!v&&i===v[0]}function N(i){return!!Mi&&Mi in i}var R=si?Qo:ad;function Z(i){var l=i&&i.constructor,d=typeof l=="function"&&l.prototype||eo;return i===d}function J(i){return i===i&&!ar(i)}function le(i,l){return function(d){return d==null?!1:d[i]===l&&(l!==o||i in wt(d))}}function fe(i){var l=l1(i,function(v){return d.size===O&&d.clear(),v}),d=l.cache;return l}function we(i,l){var d=i[1],v=l[1],x=d|v,L=x<(ye|Ae|Ye),A=v==Ye&&d==pe||v==Ye&&d==et&&i[7].length<=l[8]||v==(Ye|et)&&l[7].length<=l[8]&&d==pe;if(!(L||A))return i;v&ye&&(i[2]=l[2],x|=d&ye?0:Ie);var D=l[3];if(D){var H=i[3];i[3]=H?Vc(H,D,l[4]):D,i[4]=H?Xi(i[3],I):l[4]}return D=l[5],D&&(H=i[5],i[5]=H?Fl(H,D,l[6]):D,i[6]=H?Xi(i[5],I):l[6]),D=l[7],D&&(i[7]=D),v&Ye&&(i[8]=i[8]==null?l[8]:Pr(i[8],l[8])),i[9]==null&&(i[9]=l[9]),i[0]=l[0],i[1]=x,i}function de(i){var l=[];if(i!=null)for(var d in wt(i))l.push(d);return l}function ze(i){return No.call(i)}function Re(i,l,d){return l=jt(l===o?i.length-1:l,0),function(){for(var v=arguments,x=-1,L=jt(v.length-l,0),A=Y(L);++x<L;)A[x]=v[l+x];x=-1;for(var D=Y(l+1);++x<l;)D[x]=v[x];return D[l]=d(A),bn(i,this,D)}}function Pe(i,l){return l.length<2?i:fo(i,kn(l,0,-1))}function lt(i,l){for(var d=i.length,v=Pr(l.length,d),x=_r(i);v--;){var L=l[v];i[v]=m(L,d)?x[L]:o}return i}function Ot(i,l){if(!(l==="constructor"&&typeof i[l]=="function")&&l!="__proto__")return i[l]}var ur=rr(Os),Rt=Lf||function(i,l){return Gt.setTimeout(i,l)},Ur=rr(Ts);function Yr(i,l,d){var v=l+"";return Ur(i,h(v,Xt(e(v),d)))}function rr(i){var l=0,d=0;return function(){var v=Fo(),x=W-(v-d);if(d=v,x>0){if(++l>=it)return arguments[0]}else l=0;return i.apply(o,arguments)}}function Sr(i,l){var d=-1,v=i.length,x=v-1;for(l=l===o?v:l;++d<l;){var L=Rl(d,x),A=i[L];i[L]=i[d],i[d]=A}return i.length=l,i}var gr=fe(function(i){var l=[];return i.charCodeAt(0)===46&&l.push(""),i.replace(Js,function(d,v,x,L){l.push(x?L.replace(rl,"$1"):v||d)}),l});function It(i){if(typeof i=="string"||jn(i))return i;var l=i+"";return l=="0"&&1/i==-be?"-0":l}function Ht(i){if(i!=null){try{return li.call(i)}catch{}try{return i+""}catch{}}return""}function Xt(i,l){return _n(Ft,function(d){var v="_."+d[0];l&d[1]&&!hs(i,v)&&i.push(v)}),i.sort()}function Zr(i){if(i instanceof bt)return i.clone();var l=new Jr(i.__wrapped__,i.__chain__);return l.__actions__=_r(i.__actions__),l.__index__=i.__index__,l.__values__=i.__values__,l}function Ya(i,l,d){(d?y(i,l,d):l===o)?l=1:l=jt(dt(l),0);var v=i==null?0:i.length;if(!v||l<1)return[];for(var x=0,L=0,A=Y(La(v/l));x<v;)A[L++]=kn(i,x,x+=l);return A}function bo(i){for(var l=-1,d=i==null?0:i.length,v=0,x=[];++l<d;){var L=i[l];L&&(x[v++]=L)}return x}function Rr(){var i=arguments.length;if(!i)return[];for(var l=Y(i-1),d=arguments[0],v=i;v--;)l[v-1]=arguments[v];return ji(ct(d)?_r(d):[d],Dr(l,1))}var hi=ft(function(i,l){return br(i)?ka(i,Dr(l,1,br,!0)):[]}),vr=ft(function(i,l){var d=pi(l);return br(d)&&(d=o),br(i)?ka(i,Dr(l,1,br,!0),Be(d,2)):[]}),c0=ft(function(i,l){var d=pi(l);return br(d)&&(d=o),br(i)?ka(i,Dr(l,1,br,!0),o,d):[]});function Ei(i,l,d){var v=i==null?0:i.length;return v?(l=d||l===o?1:dt(l),kn(i,l<0?0:l,v)):[]}function Ko(i,l,d){var v=i==null?0:i.length;return v?(l=d||l===o?1:dt(l),l=v-l,kn(i,0,l<0?0:l)):[]}function Xo(i,l){return i&&i.length?Ra(i,Be(l,3),!0,!0):[]}function Vr(i,l){return i&&i.length?Ra(i,Be(l,3),!0):[]}function Za(i,l,d,v){var x=i==null?0:i.length;return x?(d&&typeof d!="number"&&y(i,l,d)&&(d=0,v=x),Vu(i,l,d,v)):[]}function ql(i,l,d){var v=i==null?0:i.length;if(!v)return-1;var x=d==null?0:dt(d);return x<0&&(x=jt(v+x,0)),fl(i,Be(l,3),x)}function kh(i,l,d){var v=i==null?0:i.length;if(!v)return-1;var x=v-1;return d!==o&&(x=dt(d),x=d<0?jt(v+x,0):Pr(x,v-1)),fl(i,Be(l,3),x,!0)}function Oh(i){var l=i==null?0:i.length;return l?Dr(i,1):[]}function z5(i){var l=i==null?0:i.length;return l?Dr(i,be):[]}function L5(i,l){var d=i==null?0:i.length;return d?(l=l===o?1:dt(l),Dr(i,l)):[]}function _5(i){for(var l=-1,d=i==null?0:i.length,v={};++l<d;){var x=i[l];v[x[0]]=x[1]}return v}function Th(i){return i&&i.length?i[0]:o}function S5(i,l,d){var v=i==null?0:i.length;if(!v)return-1;var x=d==null?0:dt(d);return x<0&&(x=jt(v+x,0)),Io(i,l,x)}function M5(i){var l=i==null?0:i.length;return l?kn(i,0,-1):[]}var k5=ft(function(i){var l=Et(i,t0);return l.length&&l[0]===i[0]?Al(l):[]}),O5=ft(function(i){var l=pi(i),d=Et(i,t0);return l===pi(d)?l=o:d.pop(),d.length&&d[0]===i[0]?Al(d,Be(l,2)):[]}),T5=ft(function(i){var l=pi(i),d=Et(i,t0);return l=typeof l=="function"?l:o,l&&d.pop(),d.length&&d[0]===i[0]?Al(d,o,l):[]});function P5(i,l){return i==null?"":wl.call(i,l)}function pi(i){var l=i==null?0:i.length;return l?i[l-1]:o}function A5(i,l,d){var v=i==null?0:i.length;if(!v)return-1;var x=v;return d!==o&&(x=dt(d),x=x<0?jt(v+x,0):Pr(x,v-1)),l===l?gs(i,l,x):fl(i,dl,x,!0)}function E5(i,l){return i&&i.length?$c(i,dt(l)):o}var I5=ft(Ph);function Ph(i,l){return i&&i.length&&l&&l.length?ju(i,l):i}function D5(i,l,d){return i&&i.length&&l&&l.length?ju(i,l,Be(d,2)):i}function R5(i,l,d){return i&&i.length&&l&&l.length?ju(i,l,o,d):i}var N5=Ai(function(i,l){var d=i==null?0:i.length,v=Zu(i,l);return Ku(i,Et(l,function(x){return m(x,d)?+x:x}).sort(i0)),v});function $5(i,l){var d=[];if(!(i&&i.length))return d;var v=-1,x=[],L=i.length;for(l=Be(l,3);++v<L;){var A=i[v];l(A,v,i)&&(d.push(A),x.push(v))}return Ku(i,x),d}function Vf(i){return i==null?i:Cs.call(i)}function H5(i,l,d){var v=i==null?0:i.length;return v?(d&&typeof d!="number"&&y(i,l,d)?(l=0,d=v):(l=l==null?0:dt(l),d=d===o?v:dt(d)),kn(i,l,d)):[]}function B5(i,l){return Pi(i,l)}function F5(i,l,d){return Nl(i,l,Be(d,2))}function W5(i,l){var d=i==null?0:i.length;if(d){var v=Pi(i,l);if(v<d&&Ii(i[v],l))return v}return-1}function U5(i,l){return Pi(i,l,!0)}function Y5(i,l,d){return Nl(i,l,Be(d,2),!0)}function Z5(i,l){var d=i==null?0:i.length;if(d){var v=Pi(i,l,!0)-1;if(Ii(i[v],l))return v}return-1}function V5(i){return i&&i.length?Qu(i):[]}function G5(i,l){return i&&i.length?Qu(i,Be(l,2)):[]}function q5(i){var l=i==null?0:i.length;return l?kn(i,1,l):[]}function j5(i,l,d){return i&&i.length?(l=d||l===o?1:dt(l),kn(i,0,l<0?0:l)):[]}function K5(i,l,d){var v=i==null?0:i.length;return v?(l=d||l===o?1:dt(l),l=v-l,kn(i,l<0?0:l,v)):[]}function X5(i,l){return i&&i.length?Ra(i,Be(l,3),!1,!0):[]}function Q5(i,l){return i&&i.length?Ra(i,Be(l,3)):[]}var J5=ft(function(i){return wn(Dr(i,1,br,!0))}),e6=ft(function(i){var l=pi(i);return br(l)&&(l=o),wn(Dr(i,1,br,!0),Be(l,2))}),t6=ft(function(i){var l=pi(i);return l=typeof l=="function"?l:o,wn(Dr(i,1,br,!0),o,l)});function r6(i){return i&&i.length?wn(i):[]}function n6(i,l){return i&&i.length?wn(i,Be(l,2)):[]}function i6(i,l){return l=typeof l=="function"?l:o,i&&i.length?wn(i,o,l):[]}function Gf(i){if(!(i&&i.length))return[];var l=0;return i=qi(i,function(d){if(br(d))return l=jt(d.length,l),!0}),Do(l,function(d){return Et(i,Ou(d))})}function Ah(i,l){if(!(i&&i.length))return[];var d=Gf(i);return l==null?d:Et(d,function(v){return bn(l,o,v)})}var o6=ft(function(i,l){return br(i)?ka(i,l):[]}),a6=ft(function(i){return Go(qi(i,br))}),s6=ft(function(i){var l=pi(i);return br(l)&&(l=o),Go(qi(i,br),Be(l,2))}),l6=ft(function(i){var l=pi(i);return l=typeof l=="function"?l:o,Go(qi(i,br),o,l)}),u6=ft(Gf);function c6(i,l){return e0(i||[],l||[],Ls)}function f6(i,l){return e0(i||[],l||[],Oi)}var d6=ft(function(i){var l=i.length,d=l>1?i[l-1]:o;return d=typeof d=="function"?(i.pop(),d):o,Ah(i,d)});function Eh(i){var l=z(i);return l.__chain__=!0,l}function h6(i,l){return l(i),i}function o1(i,l){return l(i)}var p6=Ai(function(i){var l=i.length,d=l?i[0]:0,v=this.__wrapped__,x=function(L){return Zu(L,i)};return l>1||this.__actions__.length||!(v instanceof bt)||!m(d)?this.thru(x):(v=v.slice(d,+d+(l?1:0)),v.__actions__.push({func:o1,args:[x],thisArg:o}),new Jr(v,this.__chain__).thru(function(L){return l&&!L.length&&L.push(o),L}))});function g6(){return Eh(this)}function v6(){return new Jr(this.value(),this.__chain__)}function b6(){this.__values__===o&&(this.__values__=Gh(this.value()));var i=this.__index__>=this.__values__.length,l=i?o:this.__values__[this.__index__++];return{done:i,value:l}}function m6(){return this}function y6(i){for(var l,d=this;d instanceof zl;){var v=Zr(d);v.__index__=0,v.__values__=o,l?x.__wrapped__=v:l=v;var x=v;d=d.__wrapped__}return x.__wrapped__=i,l}function C6(){var i=this.__wrapped__;if(i instanceof bt){var l=i;return this.__actions__.length&&(l=new bt(this)),l=l.reverse(),l.__actions__.push({func:o1,args:[Vf],thisArg:o}),new Jr(l,this.__chain__)}return this.thru(Vf)}function w6(){return Wc(this.__wrapped__,this.__actions__)}var x6=Wl(function(i,l,d){rt.call(i,d)?++i[d]:di(i,d,1)});function z6(i,l,d){var v=ct(i)?Su:kl;return d&&y(i,l,d)&&(l=o),v(i,Be(l,3))}function L6(i,l){var d=ct(i)?qi:Gu;return d(i,Be(l,3))}var _6=a0(ql),S6=a0(kh);function M6(i,l){return Dr(a1(i,l),1)}function k6(i,l){return Dr(a1(i,l),be)}function O6(i,l,d){return d=d===o?1:dt(d),Dr(a1(i,l),d)}function Ih(i,l){var d=ct(i)?_n:yn;return d(i,Be(l,3))}function Dh(i,l){var d=ct(i)?gf:Ml;return d(i,Be(l,3))}var T6=Wl(function(i,l,d){rt.call(i,d)?i[d].push(l):di(i,d,[l])});function P6(i,l,d,v){i=Pn(i)?i:Kl(i),d=d&&!v?dt(d):0;var x=i.length;return d<0&&(d=jt(x+d,0)),f1(i)?d<=x&&i.indexOf(l,d)>-1:!!x&&Io(i,l,d)>-1}var A6=ft(function(i,l,d){var v=-1,x=typeof l=="function",L=Pn(i)?Y(i.length):[];return yn(i,function(A){L[++v]=x?bn(l,A,d):Ta(A,l,d)}),L}),E6=Wl(function(i,l,d){di(i,d,l)});function a1(i,l){var d=ct(i)?Et:Da;return d(i,Be(l,3))}function I6(i,l,d,v){return i==null?[]:(ct(l)||(l=l==null?[]:[l]),d=v?o:d,ct(d)||(d=d==null?[]:[d]),Br(i,l,d))}var D6=Wl(function(i,l,d){i[d?0:1].push(l)},function(){return[[],[]]});function R6(i,l,d){var v=ct(i)?Mu:Pu,x=arguments.length<3;return v(i,Be(l,4),d,x,yn)}function N6(i,l,d){var v=ct(i)?vf:Pu,x=arguments.length<3;return v(i,Be(l,4),d,x,Ml)}function $6(i,l){var d=ct(i)?qi:Gu;return d(i,u1(Be(l,3)))}function H6(i){var l=ct(i)?_l:Bf;return l(i)}function B6(i,l,d){(d?y(i,l,d):l===o)?l=1:l=dt(l);var v=ct(i)?co:go;return v(i,l)}function F6(i){var l=ct(i)?Mc:Ti;return l(i)}function W6(i){if(i==null)return 0;if(Pn(i))return f1(i)?Ro(i):i.length;var l=Wr(i);return l==lr||l==tt?i.size:Il(i).length}function U6(i,l,d){var v=ct(i)?Eo:Ff;return d&&y(i,l,d)&&(l=o),v(i,Be(l,3))}var Y6=ft(function(i,l){if(i==null)return[];var d=l.length;return d>1&&y(i,l[0],l[1])?l=[]:d>2&&y(l[0],l[1],l[2])&&(l=[l[0]]),Br(i,Dr(l,1),[])}),s1=zf||function(){return Gt.Date.now()};function Z6(i,l){if(typeof l!="function")throw new sn(b);return i=dt(i),function(){if(--i<1)return l.apply(this,arguments)}}function Rh(i,l,d){return l=d?o:l,l=i&&l==null?i.length:l,Tn(i,Ye,o,o,o,o,l)}function Nh(i,l){var d;if(typeof l!="function")throw new sn(b);return i=dt(i),function(){return--i>0&&(d=l.apply(this,arguments)),i<=1&&(l=o),d}}var qf=ft(function(i,l,d){var v=ye;if(d.length){var x=Xi(d,Wa(qf));v|=Te}return Tn(i,v,l,d,x)}),$h=ft(function(i,l,d){var v=ye|Ae;if(d.length){var x=Xi(d,Wa($h));v|=Te}return Tn(l,v,i,d,x)});function Hh(i,l,d){l=d?o:l;var v=Tn(i,pe,o,o,o,o,o,l);return v.placeholder=Hh.placeholder,v}function Bh(i,l,d){l=d?o:l;var v=Tn(i,he,o,o,o,o,o,l);return v.placeholder=Bh.placeholder,v}function Fh(i,l,d){var v,x,L,A,D,H,te=0,re=!1,se=!1,Le=!0;if(typeof i!="function")throw new sn(b);l=gi(l)||0,ar(d)&&(re=!!d.leading,se="maxWait"in d,L=se?jt(gi(d.maxWait)||0,l):L,Le="trailing"in d?!!d.trailing:Le);function Ne(mr){var Di=v,ea=x;return v=x=o,te=mr,A=i.apply(ea,Di),A}function je(mr){return te=mr,D=Rt(Ct,l),re?Ne(mr):A}function gt(mr){var Di=mr-H,ea=mr-te,ap=l-Di;return se?Pr(ap,L-ea):ap}function Ke(mr){var Di=mr-H,ea=mr-te;return H===o||Di>=l||Di<0||se&&ea>=L}function Ct(){var mr=s1();if(Ke(mr))return xt(mr);D=Rt(Ct,gt(mr))}function xt(mr){return D=o,Le&&v?Ne(mr):(v=x=o,A)}function Kn(){D!==o&&Na(D),te=0,v=H=x=D=o}function xn(){return D===o?A:xt(s1())}function Xn(){var mr=s1(),Di=Ke(mr);if(v=arguments,x=this,H=mr,Di){if(D===o)return je(H);if(se)return Na(D),D=Rt(Ct,l),Ne(H)}return D===o&&(D=Rt(Ct,l)),A}return Xn.cancel=Kn,Xn.flush=xn,Xn}var V6=ft(function(i,l){return Tc(i,1,l)}),G6=ft(function(i,l,d){return Tc(i,gi(l)||0,d)});function q6(i){return Tn(i,nt)}function l1(i,l){if(typeof i!="function"||l!=null&&typeof l!="function")throw new sn(b);var d=function(){var v=arguments,x=l?l.apply(this,v):v[0],L=d.cache;if(L.has(x))return L.get(x);var A=i.apply(this,v);return d.cache=L.set(x,A)||L,A};return d.cache=new(l1.Cache||or),d}l1.Cache=or;function u1(i){if(typeof i!="function")throw new sn(b);return function(){var l=arguments;switch(l.length){case 0:return!i.call(this);case 1:return!i.call(this,l[0]);case 2:return!i.call(this,l[0],l[1]);case 3:return!i.call(this,l[0],l[1],l[2])}return!i.apply(this,l)}}function j6(i){return Nh(2,i)}var K6=Wf(function(i,l){l=l.length==1&&ct(l[0])?Et(l[0],Qr(Be())):Et(Dr(l,1),Qr(Be()));var d=l.length;return ft(function(v){for(var x=-1,L=Pr(v.length,d);++x<L;)v[x]=l[x].call(this,v[x]);return bn(i,this,v)})}),jf=ft(function(i,l){var d=Xi(l,Wa(jf));return Tn(i,Te,o,l,d)}),Wh=ft(function(i,l){var d=Xi(l,Wa(Wh));return Tn(i,He,o,l,d)}),X6=Ai(function(i,l){return Tn(i,et,o,o,o,l)});function Q6(i,l){if(typeof i!="function")throw new sn(b);return l=l===o?l:dt(l),ft(i,l)}function J6(i,l){if(typeof i!="function")throw new sn(b);return l=l==null?0:jt(dt(l),0),ft(function(d){var v=d[l],x=vo(d,0,l);return v&&ji(x,v),bn(i,this,x)})}function e3(i,l,d){var v=!0,x=!0;if(typeof i!="function")throw new sn(b);return ar(d)&&(v="leading"in d?!!d.leading:v,x="trailing"in d?!!d.trailing:x),Fh(i,l,{leading:v,maxWait:l,trailing:x})}function t3(i){return Rh(i,1)}function r3(i,l){return jf(Hl(l),i)}function n3(){if(!arguments.length)return[];var i=arguments[0];return ct(i)?i:[i]}function i3(i){return en(i,X)}function o3(i,l){return l=typeof l=="function"?l:o,en(i,X,l)}function a3(i){return en(i,U|X)}function s3(i,l){return l=typeof l=="function"?l:o,en(i,U|X,l)}function l3(i,l){return l==null||Oc(i,l,Gr(l))}function Ii(i,l){return i===l||i!==i&&l!==l}var u3=Dt(Pl),c3=Dt(function(i,l){return i>=l}),$s=Pa(function(){return arguments}())?Pa:function(i){return cr(i)&&rt.call(i,"callee")&&!Cl.call(i,"callee")},ct=Y.isArray,f3=nc?Qr(nc):Nf;function Pn(i){return i!=null&&c1(i.length)&&!Qo(i)}function br(i){return cr(i)&&Pn(i)}function d3(i){return i===!0||i===!1||cr(i)&&Lr(i)==Ze}var Va=ms||ad,h3=ic?Qr(ic):Aa;function p3(i){return cr(i)&&i.nodeType===1&&!f0(i)}function g3(i){if(i==null)return!0;if(Pn(i)&&(ct(i)||typeof i=="string"||typeof i.splice=="function"||Va(i)||jl(i)||$s(i)))return!i.length;var l=Wr(i);if(l==lr||l==tt)return!i.size;if(Z(i))return!Il(i).length;for(var d in i)if(rt.call(i,d))return!1;return!0}function v3(i,l){return Ea(i,l)}function b3(i,l,d){d=typeof d=="function"?d:o;var v=d?d(i,l):o;return v===o?Ea(i,l,o,d):!!v}function Kf(i){if(!cr(i))return!1;var l=Lr(i);return l==We||l==st||typeof i.message=="string"&&typeof i.name=="string"&&!f0(i)}function m3(i){return typeof i=="number"&&Cc(i)}function Qo(i){if(!ar(i))return!1;var l=Lr(i);return l==Vt||l==qr||l==Fe||l==rn}function Uh(i){return typeof i=="number"&&i==dt(i)}function c1(i){return typeof i=="number"&&i>-1&&i%1==0&&i<=ot}function ar(i){var l=typeof i;return i!=null&&(l=="object"||l=="function")}function cr(i){return i!=null&&typeof i=="object"}var Yh=oc?Qr(oc):Ic;function y3(i,l){return i===l||Vo(i,l,Ua(l))}function C3(i,l,d){return d=typeof d=="function"?d:o,Vo(i,l,Ua(l),d)}function w3(i){return Zh(i)&&i!=+i}function x3(i){if(R(i))throw new Je(p);return Ia(i)}function z3(i){return i===null}function L3(i){return i==null}function Zh(i){return typeof i=="number"||cr(i)&&Lr(i)==Xe}function f0(i){if(!cr(i)||Lr(i)!=kt)return!1;var l=xa(i);if(l===null)return!0;var d=rt.call(l,"constructor")&&l.constructor;return typeof d=="function"&&d instanceof d&&li.call(d)==wf}var Xf=ac?Qr(ac):Ms;function _3(i){return Uh(i)&&i>=-ot&&i<=ot}var Vh=Lu?Qr(Lu):ks;function f1(i){return typeof i=="string"||!ct(i)&&cr(i)&&Lr(i)==B}function jn(i){return typeof i=="symbol"||cr(i)&&Lr(i)==oe}var jl=_u?Qr(_u):Dc;function S3(i){return i===o}function M3(i){return cr(i)&&Wr(i)==Qe}function k3(i){return cr(i)&&Lr(i)==dr}var O3=Dt(po),T3=Dt(function(i,l){return i<=l});function Gh(i){if(!i)return[];if(Pn(i))return f1(i)?Sn(i):_r(i);if(ro&&i[ro])return fc(i[ro]());var l=Wr(i),d=l==lr?gl:l==tt?vl:Kl;return d(i)}function Jo(i){if(!i)return i===0?i:0;if(i=gi(i),i===be||i===-be){var l=i<0?-1:1;return l*At}return i===i?i:0}function dt(i){var l=Jo(i),d=l%1;return l===l?d?l-d:l:0}function qh(i){return i?Yo(dt(i),0,Bt):0}function gi(i){if(typeof i=="number")return i;if(jn(i))return sr;if(ar(i)){var l=typeof i.valueOf=="function"?i.valueOf():i;i=ar(l)?l+"":l}if(typeof i!="string")return i===0?i:+i;i=ps(i);var d=Fn.test(i);return d||gn.test(i)?hf(i.slice(2),d?2:8):ga.test(i)?sr:+i}function jh(i){return ln(i,An(i))}function P3(i){return i?Yo(dt(i),-ot,ot):i===0?i:0}function Nt(i){return i==null?"":Fr(i)}var A3=$a(function(i,l){if(Z(l)||Pn(l)){ln(l,Gr(l),i);return}for(var d in l)rt.call(l,d)&&Ls(i,d,l[d])}),Kh=$a(function(i,l){ln(l,An(l),i)}),d1=$a(function(i,l,d,v){ln(l,An(l),i,v)}),E3=$a(function(i,l,d,v){ln(l,Gr(l),i,v)}),I3=Ai(Zu);function D3(i,l){var d=ci(i);return l==null?d:Yu(d,l)}var R3=ft(function(i,l){i=wt(i);var d=-1,v=l.length,x=v>2?l[2]:o;for(x&&y(l[0],l[1],x)&&(v=1);++d<v;)for(var L=l[d],A=An(L),D=-1,H=A.length;++D<H;){var te=A[D],re=i[te];(re===o||Ii(re,eo[te])&&!rt.call(i,te))&&(i[te]=L[te])}return i}),N3=ft(function(i){return i.push(o,s0),bn(Xh,o,i)});function $3(i,l){return ya(i,Be(l,3),Cn)}function H3(i,l){return ya(i,Be(l,3),Tl)}function B3(i,l){return i==null?i:Ol(i,Be(l,3),An)}function F3(i,l){return i==null?i:zr(i,Be(l,3),An)}function W3(i,l){return i&&Cn(i,Be(l,3))}function U3(i,l){return i&&Tl(i,Be(l,3))}function Y3(i){return i==null?[]:Ss(i,Gr(i))}function Z3(i){return i==null?[]:Ss(i,An(i))}function Qf(i,l,d){var v=i==null?o:fo(i,l);return v===o?d:v}function V3(i,l){return i!=null&&t(i,l,Pc)}function Jf(i,l){return i!=null&&t(i,l,Ac)}var G3=qo(function(i,l,d){l!=null&&typeof l.toString!="function"&&(l=No.call(l)),i[l]=d},td(En)),q3=qo(function(i,l,d){l!=null&&typeof l.toString!="function"&&(l=No.call(l)),rt.call(i,l)?i[l].push(d):i[l]=[d]},Be),j3=ft(Ta);function Gr(i){return Pn(i)?Wu(i):Il(i)}function An(i){return Pn(i)?Wu(i,!0):ho(i)}function K3(i,l){var d={};return l=Be(l,3),Cn(i,function(v,x,L){di(d,l(v,x,L),v)}),d}function X3(i,l){var d={};return l=Be(l,3),Cn(i,function(v,x,L){di(d,x,l(v,x,L))}),d}var Q3=$a(function(i,l,d){Dl(i,l,d)}),Xh=$a(function(i,l,d,v){Dl(i,l,d,v)}),J3=Ai(function(i,l){var d={};if(i==null)return d;var v=!1;l=Et(l,function(L){return L=qn(L,i),v||(v=L.length>1),L}),ln(i,Zl(i),d),v&&(d=en(d,U|q|X,t1));for(var x=l.length;x--;)Ps(d,l[x]);return d});function e7(i,l){return Qh(i,u1(Be(l)))}var t7=Ai(function(i,l){return i==null?{}:Hc(i,l)});function Qh(i,l){if(i==null)return{};var d=Et(Zl(i),function(v){return[v]});return l=Be(l),Bc(i,d,function(v,x){return l(v,x[0])})}function r7(i,l,d){l=qn(l,i);var v=-1,x=l.length;for(x||(x=1,i=o);++v<x;){var L=i==null?o:i[It(l[v])];L===o&&(v=x,L=d),i=Qo(L)?L.call(i):L}return i}function n7(i,l,d){return i==null?i:Oi(i,l,d)}function i7(i,l,d,v){return v=typeof v=="function"?v:o,i==null?i:Oi(i,l,d,v)}var Jh=On(Gr),ep=On(An);function o7(i,l,d){var v=ct(i),x=v||Va(i)||jl(i);if(l=Be(l,4),d==null){var L=i&&i.constructor;x?d=v?new L:[]:ar(i)?d=Qo(L)?ci(xa(i)):{}:d={}}return(x?_n:Cn)(i,function(A,D,H){return l(d,A,D,H)}),d}function a7(i,l){return i==null?!0:Ps(i,l)}function s7(i,l,d){return i==null?i:$l(i,l,Hl(d))}function l7(i,l,d,v){return v=typeof v=="function"?v:o,i==null?i:$l(i,l,Hl(d),v)}function Kl(i){return i==null?[]:hl(i,Gr(i))}function u7(i){return i==null?[]:hl(i,An(i))}function c7(i,l,d){return d===o&&(d=l,l=o),d!==o&&(d=gi(d),d=d===d?d:0),l!==o&&(l=gi(l),l=l===l?l:0),Yo(gi(i),l,d)}function f7(i,l,d){return l=Jo(l),d===o?(d=l,l=0):d=Jo(d),i=gi(i),Oa(i,l,d)}function d7(i,l,d){if(d&&typeof d!="boolean"&&y(i,l,d)&&(l=d=o),d===o&&(typeof l=="boolean"?(d=l,l=o):typeof i=="boolean"&&(d=i,i=o)),i===o&&l===o?(i=0,l=1):(i=Jo(i),l===o?(l=i,i=0):l=Jo(l)),i>l){var v=i;i=l,l=v}if(d||i%1||l%1){var x=oo();return Pr(i+x*(l-i+df("1e-"+((x+"").length-1))),l)}return Rl(i,l)}var h7=Ha(function(i,l,d){return l=l.toLowerCase(),i+(d?tp(l):l)});function tp(i){return ed(Nt(i).toLowerCase())}function rp(i){return i=Nt(i),i&&i.replace(as,uc).replace(Q0,"")}function p7(i,l,d){i=Nt(i),l=Fr(l);var v=i.length;d=d===o?v:Yo(dt(d),0,v);var x=d;return d-=l.length,d>=0&&i.slice(d,x)==l}function g7(i){return i=Nt(i),i&&hn.test(i)?i.replace(xr,Cf):i}function v7(i){return i=Nt(i),i&&ni.test(i)?i.replace(Oo,"\\$&"):i}var b7=Ha(function(i,l,d){return i+(d?"-":"")+l.toLowerCase()}),m7=Ha(function(i,l,d){return i+(d?" ":"")+l.toLowerCase()}),y7=Xc("toLowerCase");function C7(i,l,d){i=Nt(i),l=dt(l);var v=l?Ro(i):0;if(!l||v>=l)return i;var x=(l-v)/2;return Ul(_a(x),d)+i+Ul(La(x),d)}function w7(i,l,d){i=Nt(i),l=dt(l);var v=l?Ro(i):0;return l&&v<l?i+Ul(l-v,d):i}function x7(i,l,d){i=Nt(i),l=dt(l);var v=l?Ro(i):0;return l&&v<l?Ul(l-v,d)+i:i}function z7(i,l,d){return d||l==null?l=0:l&&(l=+l),ys(Nt(i).replace(To,""),l||0)}function L7(i,l,d){return(d?y(i,l,d):l===o)?l=1:l=dt(l),Xu(Nt(i),l)}function _7(){var i=arguments,l=Nt(i[0]);return i.length<3?l:l.replace(i[1],i[2])}var S7=Ha(function(i,l,d){return i+(d?"_":"")+l.toLowerCase()});function M7(i,l,d){return d&&typeof d!="number"&&y(i,l,d)&&(l=d=o),d=d===o?Bt:d>>>0,d?(i=Nt(i),i&&(typeof l=="string"||l!=null&&!Xf(l))&&(l=Fr(l),!l&&Zn(i))?vo(Sn(i),0,d):i.split(l,d)):[]}var k7=Ha(function(i,l,d){return i+(d?" ":"")+ed(l)});function O7(i,l,d){return i=Nt(i),d=d==null?0:Yo(dt(d),0,i.length),l=Fr(l),i.slice(d,d+l.length)==l}function T7(i,l,d){var v=z.templateSettings;d&&y(i,l,d)&&(l=o),i=Nt(i),l=d1({},l,v,Yl);var x=d1({},l.imports,v.imports,Yl),L=Gr(x),A=hl(x,L),D,H,te=0,re=l.interpolate||Wt,se="__p += '",Le=Ji((l.escape||Wt).source+"|"+re.source+"|"+(re===rs?Li:Wt).source+"|"+(l.evaluate||Wt).source+"|$","g"),Ne="//# sourceURL="+(rt.call(l,"sourceURL")?(l.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++zu+"]")+`
2389
+ `;i.replace(Le,function(Ke,Ct,xt,Kn,xn,Xn){return xt||(xt=Kn),se+=i.slice(te,Xn).replace(ke,cc),Ct&&(D=!0,se+=`' +
2368
2390
  __e(`+Ct+`) +
2369
2391
  '`),xn&&(H=!0,se+=`';
2370
2392
  `+xn+`;
@@ -2374,21 +2396,21 @@ __p += '`),xt&&(se+=`' +
2374
2396
  `;var je=rt.call(l,"variable")&&l.variable;if(!je)se=`with (obj) {
2375
2397
  `+se+`
2376
2398
  }
2377
- `;else if(pn.test(je))throw new Je(M);se=(H?se.replace(ir,""):se).replace(ha,"$1").replace(wr,"$1;"),se="function("+(je||"obj")+`) {
2399
+ `;else if(pn.test(je))throw new Je(k);se=(H?se.replace(ir,""):se).replace(ha,"$1").replace(wr,"$1;"),se="function("+(je||"obj")+`) {
2378
2400
  `+(je?"":`obj || (obj = {});
2379
2401
  `)+"var __t, __p = ''"+(D?", __e = _.escape":"")+(H?`, __j = Array.prototype.join;
2380
2402
  function print() { __p += __j.call(arguments, '') }
2381
2403
  `:`;
2382
2404
  `)+se+`return __p
2383
- }`;var gt=ip(function(){return kt(L,Ne+"return "+se).apply(o,A)});if(gt.source=se,jf(gt))throw gt;return gt}function P7(i){return Nt(i).toLowerCase()}function A7(i){return Nt(i).toUpperCase()}function E7(i,l,d){if(i=Nt(i),i&&(d||l===o))return ps(i);if(!i||!(l=Fr(l)))return i;var v=_n(i),x=_n(l),L=Ki(v,x),A=pl(v,x)+1;return vo(v,L,A).join("")}function I7(i,l,d){if(i=Nt(i),i&&(d||l===o))return i.slice(0,bl(i)+1);if(!i||!(l=Fr(l)))return i;var v=_n(i),x=pl(v,_n(l))+1;return vo(v,0,x).join("")}function D7(i,l,d){if(i=Nt(i),i&&(d||l===o))return i.replace(To,"");if(!i||!(l=Fr(l)))return i;var v=_n(i),x=Ki(v,_n(l));return vo(v,x).join("")}function R7(i,l){var d=ve,v=Ce;if(ar(l)){var x="separator"in l?l.separator:x;d="length"in l?dt(l.length):d,v="omission"in l?Fr(l.omission):v}i=Nt(i);var L=i.length;if(Zn(i)){var A=_n(i);L=A.length}if(d>=L)return i;var D=d-Ro(v);if(D<1)return v;var H=A?vo(A,0,D).join(""):i.slice(0,D);if(x===o)return H+v;if(A&&(D+=H.length-D),Kf(x)){if(i.slice(D).search(x)){var te,re=H;for(x.global||(x=Ji(x.source,Nt(Po.exec(x))+"g")),x.lastIndex=0;te=x.exec(re);)var se=te.index;H=H.slice(0,se===o?D:se)}}else if(i.indexOf(Fr(x),D)!=D){var Le=H.lastIndexOf(x);Le>-1&&(H=H.slice(0,Le))}return H+v}function N7(i){return i=Nt(i),i&&pa.test(i)?i.replace(Bn,ml):i}var $7=Ha(function(i,l,d){return i+(d?" ":"")+l.toUpperCase()}),Jf=Xc("toUpperCase");function np(i,l,d){return i=Nt(i),l=d?o:l,l===o?ai(i)?Vn(i):sc(i):i.match(l)||[]}var ip=ft(function(i,l){try{return bn(i,o,l)}catch(d){return jf(d)?d:new Je(d)}}),H7=Ai(function(i,l){return Ln(l,function(d){d=It(d),di(i,d,Gf(i[d],i))}),i});function B7(i){var l=i==null?0:i.length,d=Be();return i=l?Et(i,function(v){if(typeof v[1]!="function")throw new sn(b);return[d(v[0]),v[1]]}):[],ft(function(v){for(var x=-1;++x<l;){var L=i[x];if(bn(L[0],this,v))return bn(L[1],this,v)}})}function F7(i){return Mc(en(i,U))}function ed(i){return function(){return i}}function W7(i,l){return i==null||i!==i?l:i}var U7=Qc(),Y7=Qc(!0);function An(i){return i}function td(i){return Rc(typeof i=="function"?i:en(i,U))}function Z7(i){return Nc(en(i,U))}function V7(i,l){return qu(i,en(l,U))}var G7=ft(function(i,l){return function(d){return Ta(d,i,l)}}),q7=ft(function(i,l){return function(d){return Ta(i,d,l)}});function rd(i,l,d){var v=Gr(l),x=Ss(l,v);d==null&&!(ar(l)&&(x.length||!v.length))&&(d=l,l=i,i=this,x=Ss(l,Gr(l)));var L=!(ar(d)&&"chain"in d)||!!d.chain,A=Qo(i);return Ln(x,function(D){var H=l[D];i[D]=H,A&&(i.prototype[D]=function(){var te=this.__chain__;if(L||te){var re=i(this.__wrapped__),se=re.__actions__=_r(this.__actions__);return se.push({func:H,args:arguments,thisArg:i}),re.__chain__=te,re}return H.apply(i,ji([this.value()],arguments))})}),i}function j7(){return Gt._===this&&(Gt._=mc),this}function nd(){}function K7(i){return i=dt(i),ft(function(l){return $c(l,i)})}var X7=Fa(Et),Q7=Fa(Su),J7=Fa(Eo);function op(i){return C(i)?Ou(It(i)):$f(i)}function eg(i){return function(l){return i==null?o:fo(i,l)}}var tg=Jc(),rg=Jc(!0);function id(){return[]}function od(){return!1}function ng(){return{}}function ig(){return""}function og(){return!0}function ag(i,l){if(i=dt(i),i<1||i>ot)return[];var d=Bt,v=Pr(i,Bt);l=Be(l),i-=Bt;for(var x=Do(v,l);++d<i;)l(d);return x}function sg(i){return ct(i)?Et(i,It):jn(i)?[i]:_r(gr(Nt(i)))}function lg(i){var l=++to;return Nt(i)+l}var ug=Es(function(i,l){return i+l},0),cg=Is("ceil"),fg=Es(function(i,l){return i/l},1),dg=Is("floor");function hg(i){return i&&i.length?_s(i,An,Pl):o}function pg(i,l){return i&&i.length?_s(i,Be(l,2),Pl):o}function gg(i){return Mu(i,An)}function vg(i,l){return Mu(i,Be(l,2))}function bg(i){return i&&i.length?_s(i,An,po):o}function mg(i,l){return i&&i.length?_s(i,Be(l,2),po):o}var yg=Es(function(i,l){return i*l},1),Cg=Is("round"),wg=Es(function(i,l){return i-l},0);function xg(i){return i&&i.length?Au(i,An):0}function zg(i,l){return i&&i.length?Au(i,Be(l,2)):0}return z.after=Z6,z.ary=Rh,z.assign=A3,z.assignIn=Kh,z.assignInWith=d1,z.assignWith=E3,z.at=I3,z.before=Nh,z.bind=Gf,z.bindAll=H7,z.bindKey=$h,z.castArray=n3,z.chain=Eh,z.chunk=Ya,z.compact=bo,z.concat=Rr,z.cond=B7,z.conforms=F7,z.constant=ed,z.countBy=x6,z.create=D3,z.curry=Hh,z.curryRight=Bh,z.debounce=Fh,z.defaults=R3,z.defaultsDeep=N3,z.defer=V6,z.delay=G6,z.difference=hi,z.differenceBy=vr,z.differenceWith=c0,z.drop=Ei,z.dropRight=Ko,z.dropRightWhile=Xo,z.dropWhile=Vr,z.fill=Za,z.filter=L6,z.flatMap=k6,z.flatMapDeep=M6,z.flatMapDepth=O6,z.flatten=Oh,z.flattenDeep=z5,z.flattenDepth=L5,z.flip=q6,z.flow=U7,z.flowRight=Y7,z.fromPairs=_5,z.functions=Y3,z.functionsIn=Z3,z.groupBy=T6,z.initial=k5,z.intersection=M5,z.intersectionBy=O5,z.intersectionWith=T5,z.invert=G3,z.invertBy=q3,z.invokeMap=A6,z.iteratee=td,z.keyBy=E6,z.keys=Gr,z.keysIn=Pn,z.map=a1,z.mapKeys=K3,z.mapValues=X3,z.matches=Z7,z.matchesProperty=V7,z.memoize=l1,z.merge=Q3,z.mergeWith=Xh,z.method=G7,z.methodOf=q7,z.mixin=rd,z.negate=u1,z.nthArg=K7,z.omit=J3,z.omitBy=e7,z.once=j6,z.orderBy=I6,z.over=X7,z.overArgs=K6,z.overEvery=Q7,z.overSome=J7,z.partial=qf,z.partialRight=Wh,z.partition=D6,z.pick=t7,z.pickBy=Qh,z.property=op,z.propertyOf=eg,z.pull=I5,z.pullAll=Ph,z.pullAllBy=D5,z.pullAllWith=R5,z.pullAt=N5,z.range=tg,z.rangeRight=rg,z.rearg=X6,z.reject=$6,z.remove=$5,z.rest=Q6,z.reverse=Zf,z.sampleSize=B6,z.set=n7,z.setWith=i7,z.shuffle=F6,z.slice=H5,z.sortBy=Y6,z.sortedUniq=V5,z.sortedUniqBy=G5,z.split=k7,z.spread=J6,z.tail=q5,z.take=j5,z.takeRight=K5,z.takeRightWhile=X5,z.takeWhile=Q5,z.tap=h6,z.throttle=e3,z.thru=o1,z.toArray=Gh,z.toPairs=Jh,z.toPairsIn=ep,z.toPath=sg,z.toPlainObject=jh,z.transform=o7,z.unary=t3,z.union=J5,z.unionBy=e6,z.unionWith=t6,z.uniq=r6,z.uniqBy=n6,z.uniqWith=i6,z.unset=a7,z.unzip=Vf,z.unzipWith=Ah,z.update=s7,z.updateWith=l7,z.values=Kl,z.valuesIn=u7,z.without=o6,z.words=np,z.wrap=r3,z.xor=a6,z.xorBy=s6,z.xorWith=l6,z.zip=u6,z.zipObject=c6,z.zipObjectDeep=f6,z.zipWith=d6,z.entries=Jh,z.entriesIn=ep,z.extend=Kh,z.extendWith=d1,rd(z,z),z.add=ug,z.attempt=ip,z.camelCase=h7,z.capitalize=tp,z.ceil=cg,z.clamp=c7,z.clone=i3,z.cloneDeep=a3,z.cloneDeepWith=s3,z.cloneWith=o3,z.conformsTo=l3,z.deburr=rp,z.defaultTo=W7,z.divide=fg,z.endsWith=p7,z.eq=Ii,z.escape=g7,z.escapeRegExp=v7,z.every=z6,z.find=_6,z.findIndex=ql,z.findKey=$3,z.findLast=S6,z.findLastIndex=Mh,z.findLastKey=H3,z.floor=dg,z.forEach=Ih,z.forEachRight=Dh,z.forIn=B3,z.forInRight=F3,z.forOwn=W3,z.forOwnRight=U3,z.get=Xf,z.gt=u3,z.gte=c3,z.has=V3,z.hasIn=Qf,z.head=Th,z.identity=An,z.includes=P6,z.indexOf=S5,z.inRange=f7,z.invoke=j3,z.isArguments=$s,z.isArray=ct,z.isArrayBuffer=f3,z.isArrayLike=Tn,z.isArrayLikeObject=br,z.isBoolean=d3,z.isBuffer=Va,z.isDate=h3,z.isElement=p3,z.isEmpty=g3,z.isEqual=v3,z.isEqualWith=b3,z.isError=jf,z.isFinite=m3,z.isFunction=Qo,z.isInteger=Uh,z.isLength=c1,z.isMap=Yh,z.isMatch=y3,z.isMatchWith=C3,z.isNaN=w3,z.isNative=x3,z.isNil=L3,z.isNull=z3,z.isNumber=Zh,z.isObject=ar,z.isObjectLike=cr,z.isPlainObject=f0,z.isRegExp=Kf,z.isSafeInteger=_3,z.isSet=Vh,z.isString=f1,z.isSymbol=jn,z.isTypedArray=jl,z.isUndefined=S3,z.isWeakMap=k3,z.isWeakSet=M3,z.join=P5,z.kebabCase=b7,z.last=pi,z.lastIndexOf=A5,z.lowerCase=m7,z.lowerFirst=y7,z.lt=O3,z.lte=T3,z.max=hg,z.maxBy=pg,z.mean=gg,z.meanBy=vg,z.min=bg,z.minBy=mg,z.stubArray=id,z.stubFalse=od,z.stubObject=ng,z.stubString=ig,z.stubTrue=og,z.multiply=yg,z.nth=E5,z.noConflict=j7,z.noop=nd,z.now=s1,z.pad=C7,z.padEnd=w7,z.padStart=x7,z.parseInt=z7,z.random=d7,z.reduce=R6,z.reduceRight=N6,z.repeat=L7,z.replace=_7,z.result=r7,z.round=Cg,z.runInContext=$,z.sample=H6,z.size=W6,z.snakeCase=S7,z.some=U6,z.sortedIndex=B5,z.sortedIndexBy=F5,z.sortedIndexOf=W5,z.sortedLastIndex=U5,z.sortedLastIndexBy=Y5,z.sortedLastIndexOf=Z5,z.startCase=M7,z.startsWith=O7,z.subtract=wg,z.sum=xg,z.sumBy=zg,z.template=T7,z.times=ag,z.toFinite=Jo,z.toInteger=dt,z.toLength=qh,z.toLower=P7,z.toNumber=gi,z.toSafeInteger=P3,z.toString=Nt,z.toUpper=A7,z.trim=E7,z.trimEnd=I7,z.trimStart=D7,z.truncate=R7,z.unescape=N7,z.uniqueId=lg,z.upperCase=$7,z.upperFirst=Jf,z.each=Ih,z.eachRight=Dh,z.first=Th,rd(z,function(){var i={};return Cn(z,function(l,d){rt.call(z.prototype,d)||(i[d]=l)}),i}(),{chain:!1}),z.VERSION=c,Ln(["bind","bindKey","curry","curryRight","partial","partialRight"],function(i){z[i].placeholder=z}),Ln(["drop","take"],function(i,l){bt.prototype[i]=function(d){d=d===o?1:jt(dt(d),0);var v=this.__filtered__&&!l?new bt(this):this.clone();return v.__filtered__?v.__takeCount__=Pr(d,v.__takeCount__):v.__views__.push({size:Pr(d,Bt),type:i+(v.__dir__<0?"Right":"")}),v},bt.prototype[i+"Right"]=function(d){return this.reverse()[i](d).reverse()}}),Ln(["filter","map","takeWhile"],function(i,l){var d=l+1,v=d==E||d==ne;bt.prototype[i]=function(x){var L=this.clone();return L.__iteratees__.push({iteratee:Be(x,3),type:d}),L.__filtered__=L.__filtered__||v,L}}),Ln(["head","last"],function(i,l){var d="take"+(l?"Right":"");bt.prototype[i]=function(){return this[d](1).value()[0]}}),Ln(["initial","tail"],function(i,l){var d="drop"+(l?"":"Right");bt.prototype[i]=function(){return this.__filtered__?new bt(this):this[d](1)}}),bt.prototype.compact=function(){return this.filter(An)},bt.prototype.find=function(i){return this.filter(i).head()},bt.prototype.findLast=function(i){return this.reverse().find(i)},bt.prototype.invokeMap=ft(function(i,l){return typeof i=="function"?new bt(this):this.map(function(d){return Ta(d,i,l)})}),bt.prototype.reject=function(i){return this.filter(u1(Be(i)))},bt.prototype.slice=function(i,l){i=dt(i);var d=this;return d.__filtered__&&(i>0||l<0)?new bt(d):(i<0?d=d.takeRight(-i):i&&(d=d.drop(i)),l!==o&&(l=dt(l),d=l<0?d.dropRight(-l):d.take(l-i)),d)},bt.prototype.takeRightWhile=function(i){return this.reverse().takeWhile(i).reverse()},bt.prototype.toArray=function(){return this.take(Bt)},Cn(bt.prototype,function(i,l){var d=/^(?:filter|find|map|reject)|While$/.test(l),v=/^(?:head|last)$/.test(l),x=z[v?"take"+(l=="last"?"Right":""):l],L=v||/^find/.test(l);!x||(z.prototype[l]=function(){var A=this.__wrapped__,D=v?[1]:arguments,H=A instanceof bt,te=D[0],re=H||ct(A),se=function(Ct){var xt=x.apply(z,ji([Ct],D));return v&&Le?xt[0]:xt};re&&d&&typeof te=="function"&&te.length!=1&&(H=re=!1);var Le=this.__chain__,Ne=!!this.__actions__.length,je=L&&!Le,gt=H&&!Ne;if(!L&&re){A=gt?A:new bt(this);var Ke=i.apply(A,D);return Ke.__actions__.push({func:o1,args:[se],thisArg:o}),new Jr(Ke,Le)}return je&&gt?i.apply(this,D):(Ke=this.thru(se),je?v?Ke.value()[0]:Ke.value():Ke)})}),Ln(["pop","push","shift","sort","splice","unshift"],function(i){var l=wa[i],d=/^(?:push|sort|unshift)$/.test(i)?"tap":"thru",v=/^(?:pop|shift)$/.test(i);z.prototype[i]=function(){var x=arguments;if(v&&!this.__chain__){var L=this.value();return l.apply(ct(L)?L:[],x)}return this[d](function(A){return l.apply(ct(A)?A:[],x)})}}),Cn(bt.prototype,function(i,l){var d=z[l];if(d){var v=d.name+"";rt.call(ka,v)||(ka[v]=[]),ka[v].push({name:l,func:d})}}),ka[As(o,Ae).name]=[{name:"wrapper",func:o}],bt.prototype.clone=Of,bt.prototype.reverse=Tf,bt.prototype.value=Du,z.prototype.at=p6,z.prototype.chain=g6,z.prototype.commit=v6,z.prototype.next=b6,z.prototype.plant=y6,z.prototype.reverse=C6,z.prototype.toJSON=z.prototype.valueOf=z.prototype.value=w6,z.prototype.first=z.prototype.head,ro&&(z.prototype[ro]=m6),z},Qi=vc();Xr?((Xr.exports=Qi)._=Qi,cs._=Qi):Gt._=Qi}).call(Jl)})(M0,M0.exports);const p8=M0.exports,g8=Lg({__proto__:null,default:p8},[M0.exports]);let v8=(r=21)=>crypto.getRandomValues(new Uint8Array(r)).reduce((n,o)=>(o&=63,o<36?n+=o.toString(36):o<62?n+=(o-26).toString(36).toUpperCase():o>62?n+="-":n+="_",n),"");/**
2405
+ }`;var gt=ip(function(){return Mt(L,Ne+"return "+se).apply(o,A)});if(gt.source=se,Kf(gt))throw gt;return gt}function P7(i){return Nt(i).toLowerCase()}function A7(i){return Nt(i).toUpperCase()}function E7(i,l,d){if(i=Nt(i),i&&(d||l===o))return ps(i);if(!i||!(l=Fr(l)))return i;var v=Sn(i),x=Sn(l),L=Ki(v,x),A=pl(v,x)+1;return vo(v,L,A).join("")}function I7(i,l,d){if(i=Nt(i),i&&(d||l===o))return i.slice(0,bl(i)+1);if(!i||!(l=Fr(l)))return i;var v=Sn(i),x=pl(v,Sn(l))+1;return vo(v,0,x).join("")}function D7(i,l,d){if(i=Nt(i),i&&(d||l===o))return i.replace(To,"");if(!i||!(l=Fr(l)))return i;var v=Sn(i),x=Ki(v,Sn(l));return vo(v,x).join("")}function R7(i,l){var d=ve,v=Ce;if(ar(l)){var x="separator"in l?l.separator:x;d="length"in l?dt(l.length):d,v="omission"in l?Fr(l.omission):v}i=Nt(i);var L=i.length;if(Zn(i)){var A=Sn(i);L=A.length}if(d>=L)return i;var D=d-Ro(v);if(D<1)return v;var H=A?vo(A,0,D).join(""):i.slice(0,D);if(x===o)return H+v;if(A&&(D+=H.length-D),Xf(x)){if(i.slice(D).search(x)){var te,re=H;for(x.global||(x=Ji(x.source,Nt(Po.exec(x))+"g")),x.lastIndex=0;te=x.exec(re);)var se=te.index;H=H.slice(0,se===o?D:se)}}else if(i.indexOf(Fr(x),D)!=D){var Le=H.lastIndexOf(x);Le>-1&&(H=H.slice(0,Le))}return H+v}function N7(i){return i=Nt(i),i&&pa.test(i)?i.replace(Bn,ml):i}var $7=Ha(function(i,l,d){return i+(d?" ":"")+l.toUpperCase()}),ed=Xc("toUpperCase");function np(i,l,d){return i=Nt(i),l=d?o:l,l===o?ai(i)?Vn(i):sc(i):i.match(l)||[]}var ip=ft(function(i,l){try{return bn(i,o,l)}catch(d){return Kf(d)?d:new Je(d)}}),H7=Ai(function(i,l){return _n(l,function(d){d=It(d),di(i,d,qf(i[d],i))}),i});function B7(i){var l=i==null?0:i.length,d=Be();return i=l?Et(i,function(v){if(typeof v[1]!="function")throw new sn(b);return[d(v[0]),v[1]]}):[],ft(function(v){for(var x=-1;++x<l;){var L=i[x];if(bn(L[0],this,v))return bn(L[1],this,v)}})}function F7(i){return kc(en(i,U))}function td(i){return function(){return i}}function W7(i,l){return i==null||i!==i?l:i}var U7=Qc(),Y7=Qc(!0);function En(i){return i}function rd(i){return Rc(typeof i=="function"?i:en(i,U))}function Z7(i){return Nc(en(i,U))}function V7(i,l){return qu(i,en(l,U))}var G7=ft(function(i,l){return function(d){return Ta(d,i,l)}}),q7=ft(function(i,l){return function(d){return Ta(i,d,l)}});function nd(i,l,d){var v=Gr(l),x=Ss(l,v);d==null&&!(ar(l)&&(x.length||!v.length))&&(d=l,l=i,i=this,x=Ss(l,Gr(l)));var L=!(ar(d)&&"chain"in d)||!!d.chain,A=Qo(i);return _n(x,function(D){var H=l[D];i[D]=H,A&&(i.prototype[D]=function(){var te=this.__chain__;if(L||te){var re=i(this.__wrapped__),se=re.__actions__=_r(this.__actions__);return se.push({func:H,args:arguments,thisArg:i}),re.__chain__=te,re}return H.apply(i,ji([this.value()],arguments))})}),i}function j7(){return Gt._===this&&(Gt._=mc),this}function id(){}function K7(i){return i=dt(i),ft(function(l){return $c(l,i)})}var X7=Fa(Et),Q7=Fa(Su),J7=Fa(Eo);function op(i){return C(i)?Ou(It(i)):Hf(i)}function eg(i){return function(l){return i==null?o:fo(i,l)}}var tg=Jc(),rg=Jc(!0);function od(){return[]}function ad(){return!1}function ng(){return{}}function ig(){return""}function og(){return!0}function ag(i,l){if(i=dt(i),i<1||i>ot)return[];var d=Bt,v=Pr(i,Bt);l=Be(l),i-=Bt;for(var x=Do(v,l);++d<i;)l(d);return x}function sg(i){return ct(i)?Et(i,It):jn(i)?[i]:_r(gr(Nt(i)))}function lg(i){var l=++to;return Nt(i)+l}var ug=Es(function(i,l){return i+l},0),cg=Is("ceil"),fg=Es(function(i,l){return i/l},1),dg=Is("floor");function hg(i){return i&&i.length?_s(i,En,Pl):o}function pg(i,l){return i&&i.length?_s(i,Be(l,2),Pl):o}function gg(i){return ku(i,En)}function vg(i,l){return ku(i,Be(l,2))}function bg(i){return i&&i.length?_s(i,En,po):o}function mg(i,l){return i&&i.length?_s(i,Be(l,2),po):o}var yg=Es(function(i,l){return i*l},1),Cg=Is("round"),wg=Es(function(i,l){return i-l},0);function xg(i){return i&&i.length?Au(i,En):0}function zg(i,l){return i&&i.length?Au(i,Be(l,2)):0}return z.after=Z6,z.ary=Rh,z.assign=A3,z.assignIn=Kh,z.assignInWith=d1,z.assignWith=E3,z.at=I3,z.before=Nh,z.bind=qf,z.bindAll=H7,z.bindKey=$h,z.castArray=n3,z.chain=Eh,z.chunk=Ya,z.compact=bo,z.concat=Rr,z.cond=B7,z.conforms=F7,z.constant=td,z.countBy=x6,z.create=D3,z.curry=Hh,z.curryRight=Bh,z.debounce=Fh,z.defaults=R3,z.defaultsDeep=N3,z.defer=V6,z.delay=G6,z.difference=hi,z.differenceBy=vr,z.differenceWith=c0,z.drop=Ei,z.dropRight=Ko,z.dropRightWhile=Xo,z.dropWhile=Vr,z.fill=Za,z.filter=L6,z.flatMap=M6,z.flatMapDeep=k6,z.flatMapDepth=O6,z.flatten=Oh,z.flattenDeep=z5,z.flattenDepth=L5,z.flip=q6,z.flow=U7,z.flowRight=Y7,z.fromPairs=_5,z.functions=Y3,z.functionsIn=Z3,z.groupBy=T6,z.initial=M5,z.intersection=k5,z.intersectionBy=O5,z.intersectionWith=T5,z.invert=G3,z.invertBy=q3,z.invokeMap=A6,z.iteratee=rd,z.keyBy=E6,z.keys=Gr,z.keysIn=An,z.map=a1,z.mapKeys=K3,z.mapValues=X3,z.matches=Z7,z.matchesProperty=V7,z.memoize=l1,z.merge=Q3,z.mergeWith=Xh,z.method=G7,z.methodOf=q7,z.mixin=nd,z.negate=u1,z.nthArg=K7,z.omit=J3,z.omitBy=e7,z.once=j6,z.orderBy=I6,z.over=X7,z.overArgs=K6,z.overEvery=Q7,z.overSome=J7,z.partial=jf,z.partialRight=Wh,z.partition=D6,z.pick=t7,z.pickBy=Qh,z.property=op,z.propertyOf=eg,z.pull=I5,z.pullAll=Ph,z.pullAllBy=D5,z.pullAllWith=R5,z.pullAt=N5,z.range=tg,z.rangeRight=rg,z.rearg=X6,z.reject=$6,z.remove=$5,z.rest=Q6,z.reverse=Vf,z.sampleSize=B6,z.set=n7,z.setWith=i7,z.shuffle=F6,z.slice=H5,z.sortBy=Y6,z.sortedUniq=V5,z.sortedUniqBy=G5,z.split=M7,z.spread=J6,z.tail=q5,z.take=j5,z.takeRight=K5,z.takeRightWhile=X5,z.takeWhile=Q5,z.tap=h6,z.throttle=e3,z.thru=o1,z.toArray=Gh,z.toPairs=Jh,z.toPairsIn=ep,z.toPath=sg,z.toPlainObject=jh,z.transform=o7,z.unary=t3,z.union=J5,z.unionBy=e6,z.unionWith=t6,z.uniq=r6,z.uniqBy=n6,z.uniqWith=i6,z.unset=a7,z.unzip=Gf,z.unzipWith=Ah,z.update=s7,z.updateWith=l7,z.values=Kl,z.valuesIn=u7,z.without=o6,z.words=np,z.wrap=r3,z.xor=a6,z.xorBy=s6,z.xorWith=l6,z.zip=u6,z.zipObject=c6,z.zipObjectDeep=f6,z.zipWith=d6,z.entries=Jh,z.entriesIn=ep,z.extend=Kh,z.extendWith=d1,nd(z,z),z.add=ug,z.attempt=ip,z.camelCase=h7,z.capitalize=tp,z.ceil=cg,z.clamp=c7,z.clone=i3,z.cloneDeep=a3,z.cloneDeepWith=s3,z.cloneWith=o3,z.conformsTo=l3,z.deburr=rp,z.defaultTo=W7,z.divide=fg,z.endsWith=p7,z.eq=Ii,z.escape=g7,z.escapeRegExp=v7,z.every=z6,z.find=_6,z.findIndex=ql,z.findKey=$3,z.findLast=S6,z.findLastIndex=kh,z.findLastKey=H3,z.floor=dg,z.forEach=Ih,z.forEachRight=Dh,z.forIn=B3,z.forInRight=F3,z.forOwn=W3,z.forOwnRight=U3,z.get=Qf,z.gt=u3,z.gte=c3,z.has=V3,z.hasIn=Jf,z.head=Th,z.identity=En,z.includes=P6,z.indexOf=S5,z.inRange=f7,z.invoke=j3,z.isArguments=$s,z.isArray=ct,z.isArrayBuffer=f3,z.isArrayLike=Pn,z.isArrayLikeObject=br,z.isBoolean=d3,z.isBuffer=Va,z.isDate=h3,z.isElement=p3,z.isEmpty=g3,z.isEqual=v3,z.isEqualWith=b3,z.isError=Kf,z.isFinite=m3,z.isFunction=Qo,z.isInteger=Uh,z.isLength=c1,z.isMap=Yh,z.isMatch=y3,z.isMatchWith=C3,z.isNaN=w3,z.isNative=x3,z.isNil=L3,z.isNull=z3,z.isNumber=Zh,z.isObject=ar,z.isObjectLike=cr,z.isPlainObject=f0,z.isRegExp=Xf,z.isSafeInteger=_3,z.isSet=Vh,z.isString=f1,z.isSymbol=jn,z.isTypedArray=jl,z.isUndefined=S3,z.isWeakMap=M3,z.isWeakSet=k3,z.join=P5,z.kebabCase=b7,z.last=pi,z.lastIndexOf=A5,z.lowerCase=m7,z.lowerFirst=y7,z.lt=O3,z.lte=T3,z.max=hg,z.maxBy=pg,z.mean=gg,z.meanBy=vg,z.min=bg,z.minBy=mg,z.stubArray=od,z.stubFalse=ad,z.stubObject=ng,z.stubString=ig,z.stubTrue=og,z.multiply=yg,z.nth=E5,z.noConflict=j7,z.noop=id,z.now=s1,z.pad=C7,z.padEnd=w7,z.padStart=x7,z.parseInt=z7,z.random=d7,z.reduce=R6,z.reduceRight=N6,z.repeat=L7,z.replace=_7,z.result=r7,z.round=Cg,z.runInContext=$,z.sample=H6,z.size=W6,z.snakeCase=S7,z.some=U6,z.sortedIndex=B5,z.sortedIndexBy=F5,z.sortedIndexOf=W5,z.sortedLastIndex=U5,z.sortedLastIndexBy=Y5,z.sortedLastIndexOf=Z5,z.startCase=k7,z.startsWith=O7,z.subtract=wg,z.sum=xg,z.sumBy=zg,z.template=T7,z.times=ag,z.toFinite=Jo,z.toInteger=dt,z.toLength=qh,z.toLower=P7,z.toNumber=gi,z.toSafeInteger=P3,z.toString=Nt,z.toUpper=A7,z.trim=E7,z.trimEnd=I7,z.trimStart=D7,z.truncate=R7,z.unescape=N7,z.uniqueId=lg,z.upperCase=$7,z.upperFirst=ed,z.each=Ih,z.eachRight=Dh,z.first=Th,nd(z,function(){var i={};return Cn(z,function(l,d){rt.call(z.prototype,d)||(i[d]=l)}),i}(),{chain:!1}),z.VERSION=c,_n(["bind","bindKey","curry","curryRight","partial","partialRight"],function(i){z[i].placeholder=z}),_n(["drop","take"],function(i,l){bt.prototype[i]=function(d){d=d===o?1:jt(dt(d),0);var v=this.__filtered__&&!l?new bt(this):this.clone();return v.__filtered__?v.__takeCount__=Pr(d,v.__takeCount__):v.__views__.push({size:Pr(d,Bt),type:i+(v.__dir__<0?"Right":"")}),v},bt.prototype[i+"Right"]=function(d){return this.reverse()[i](d).reverse()}}),_n(["filter","map","takeWhile"],function(i,l){var d=l+1,v=d==E||d==ne;bt.prototype[i]=function(x){var L=this.clone();return L.__iteratees__.push({iteratee:Be(x,3),type:d}),L.__filtered__=L.__filtered__||v,L}}),_n(["head","last"],function(i,l){var d="take"+(l?"Right":"");bt.prototype[i]=function(){return this[d](1).value()[0]}}),_n(["initial","tail"],function(i,l){var d="drop"+(l?"":"Right");bt.prototype[i]=function(){return this.__filtered__?new bt(this):this[d](1)}}),bt.prototype.compact=function(){return this.filter(En)},bt.prototype.find=function(i){return this.filter(i).head()},bt.prototype.findLast=function(i){return this.reverse().find(i)},bt.prototype.invokeMap=ft(function(i,l){return typeof i=="function"?new bt(this):this.map(function(d){return Ta(d,i,l)})}),bt.prototype.reject=function(i){return this.filter(u1(Be(i)))},bt.prototype.slice=function(i,l){i=dt(i);var d=this;return d.__filtered__&&(i>0||l<0)?new bt(d):(i<0?d=d.takeRight(-i):i&&(d=d.drop(i)),l!==o&&(l=dt(l),d=l<0?d.dropRight(-l):d.take(l-i)),d)},bt.prototype.takeRightWhile=function(i){return this.reverse().takeWhile(i).reverse()},bt.prototype.toArray=function(){return this.take(Bt)},Cn(bt.prototype,function(i,l){var d=/^(?:filter|find|map|reject)|While$/.test(l),v=/^(?:head|last)$/.test(l),x=z[v?"take"+(l=="last"?"Right":""):l],L=v||/^find/.test(l);!x||(z.prototype[l]=function(){var A=this.__wrapped__,D=v?[1]:arguments,H=A instanceof bt,te=D[0],re=H||ct(A),se=function(Ct){var xt=x.apply(z,ji([Ct],D));return v&&Le?xt[0]:xt};re&&d&&typeof te=="function"&&te.length!=1&&(H=re=!1);var Le=this.__chain__,Ne=!!this.__actions__.length,je=L&&!Le,gt=H&&!Ne;if(!L&&re){A=gt?A:new bt(this);var Ke=i.apply(A,D);return Ke.__actions__.push({func:o1,args:[se],thisArg:o}),new Jr(Ke,Le)}return je&&gt?i.apply(this,D):(Ke=this.thru(se),je?v?Ke.value()[0]:Ke.value():Ke)})}),_n(["pop","push","shift","sort","splice","unshift"],function(i){var l=wa[i],d=/^(?:push|sort|unshift)$/.test(i)?"tap":"thru",v=/^(?:pop|shift)$/.test(i);z.prototype[i]=function(){var x=arguments;if(v&&!this.__chain__){var L=this.value();return l.apply(ct(L)?L:[],x)}return this[d](function(A){return l.apply(ct(A)?A:[],x)})}}),Cn(bt.prototype,function(i,l){var d=z[l];if(d){var v=d.name+"";rt.call(Ma,v)||(Ma[v]=[]),Ma[v].push({name:l,func:d})}}),Ma[As(o,Ae).name]=[{name:"wrapper",func:o}],bt.prototype.clone=Tf,bt.prototype.reverse=Pf,bt.prototype.value=Du,z.prototype.at=p6,z.prototype.chain=g6,z.prototype.commit=v6,z.prototype.next=b6,z.prototype.plant=y6,z.prototype.reverse=C6,z.prototype.toJSON=z.prototype.valueOf=z.prototype.value=w6,z.prototype.first=z.prototype.head,ro&&(z.prototype[ro]=m6),z},Qi=vc();Xr?((Xr.exports=Qi)._=Qi,cs._=Qi):Gt._=Qi}).call(Jl)})(k0,k0.exports);const p8=k0.exports,g8=Lg({__proto__:null,default:p8},[k0.exports]);let v8=(r=21)=>crypto.getRandomValues(new Uint8Array(r)).reduce((n,o)=>(o&=63,o<36?n+=o.toString(36):o<62?n+=(o-26).toString(36).toUpperCase():o>62?n+="-":n+="_",n),"");/**
2384
2406
  * @license
2385
2407
  * Copyright 2020 Google LLC
2386
2408
  * SPDX-License-Identifier: BSD-3-Clause
2387
- */const{I:b8}=Og,Dp=()=>document.createComment(""),p0=(r,n,o)=>{var c;const f=r._$AA.parentNode,p=n===void 0?r._$AB:n._$AA;if(o===void 0){const b=f.insertBefore(Dp(),p),M=f.insertBefore(Dp(),p);o=new b8(b,M,r,r.options)}else{const b=o._$AB.nextSibling,M=o._$AM,S=M!==r;if(S){let O;(c=o._$AQ)===null||c===void 0||c.call(o,r),o._$AM=r,o._$AP!==void 0&&(O=r._$AU)!==M._$AU&&o._$AP(O)}if(b!==p||S){let O=o._$AA;for(;O!==b;){const I=O.nextSibling;f.insertBefore(O,p),O=I}}}return o},Fs=(r,n,o=r)=>(r._$AI(n,o),r),m8={},y8=(r,n=m8)=>r._$AH=n,C8=r=>r._$AH,pd=r=>{var n;(n=r._$AP)===null||n===void 0||n.call(r,!1,!0);let o=r._$AA;const c=r._$AB.nextSibling;for(;o!==c;){const f=o.nextSibling;o.remove(),o=f}};/**
2409
+ */const{I:b8}=Og,Dp=()=>document.createComment(""),p0=(r,n,o)=>{var c;const f=r._$AA.parentNode,p=n===void 0?r._$AB:n._$AA;if(o===void 0){const b=f.insertBefore(Dp(),p),k=f.insertBefore(Dp(),p);o=new b8(b,k,r,r.options)}else{const b=o._$AB.nextSibling,k=o._$AM,S=k!==r;if(S){let O;(c=o._$AQ)===null||c===void 0||c.call(o,r),o._$AM=r,o._$AP!==void 0&&(O=r._$AU)!==k._$AU&&o._$AP(O)}if(b!==p||S){let O=o._$AA;for(;O!==b;){const I=O.nextSibling;f.insertBefore(O,p),O=I}}}return o},Fs=(r,n,o=r)=>(r._$AI(n,o),r),m8={},y8=(r,n=m8)=>r._$AH=n,C8=r=>r._$AH,gd=r=>{var n;(n=r._$AP)===null||n===void 0||n.call(r,!1,!0);let o=r._$AA;const c=r._$AB.nextSibling;for(;o!==c;){const f=o.nextSibling;o.remove(),o=f}};/**
2388
2410
  * @license
2389
2411
  * Copyright 2017 Google LLC
2390
2412
  * SPDX-License-Identifier: BSD-3-Clause
2391
- */const Rp=(r,n,o)=>{const c=new Map;for(let f=n;f<=o;f++)c.set(r[f],f);return c},w8=I1(class extends D1{constructor(r){if(super(r),r.type!==E1.CHILD)throw Error("repeat() can only be used in text expressions")}ht(r,n,o){let c;o===void 0?o=n:n!==void 0&&(c=n);const f=[],p=[];let b=0;for(const M of r)f[b]=c?c(M,b):b,p[b]=o(M,b),b++;return{values:p,keys:f}}render(r,n,o){return this.ht(r,n,o).values}update(r,[n,o,c]){var f;const p=C8(r),{values:b,keys:M}=this.ht(n,o,c);if(!Array.isArray(p))return this.ut=M,b;const S=(f=this.ut)!==null&&f!==void 0?f:this.ut=[],O=[];let I,U,q=0,X=p.length-1,ce=0,xe=b.length-1;for(;q<=X&&ce<=xe;)if(p[q]===null)q++;else if(p[X]===null)X--;else if(S[q]===M[ce])O[ce]=Fs(p[q],b[ce]),q++,ce++;else if(S[X]===M[xe])O[xe]=Fs(p[X],b[xe]),X--,xe--;else if(S[q]===M[xe])O[xe]=Fs(p[q],b[xe]),p0(r,O[xe+1],p[q]),q++,xe--;else if(S[X]===M[ce])O[ce]=Fs(p[X],b[ce]),p0(r,p[q],p[X]),X--,ce++;else if(I===void 0&&(I=Rp(M,ce,xe),U=Rp(S,q,X)),I.has(S[q]))if(I.has(S[X])){const ye=U.get(M[ce]),Ae=ye!==void 0?p[ye]:null;if(Ae===null){const Ie=p0(r,p[q]);Fs(Ie,b[ce]),O[ce]=Ie}else O[ce]=Fs(Ae,b[ce]),p0(r,p[q],Ae),p[ye]=null;ce++}else pd(p[X]),X--;else pd(p[q]),q++;for(;ce<=xe;){const ye=p0(r,O[xe+1]);Fs(ye,b[ce]),O[ce++]=ye}for(;q<=X;){const ye=p[q++];ye!==null&&pd(ye)}return this.ut=M,y8(r,O),yo}});/**
2413
+ */const Rp=(r,n,o)=>{const c=new Map;for(let f=n;f<=o;f++)c.set(r[f],f);return c},w8=I1(class extends D1{constructor(r){if(super(r),r.type!==E1.CHILD)throw Error("repeat() can only be used in text expressions")}ht(r,n,o){let c;o===void 0?o=n:n!==void 0&&(c=n);const f=[],p=[];let b=0;for(const k of r)f[b]=c?c(k,b):b,p[b]=o(k,b),b++;return{values:p,keys:f}}render(r,n,o){return this.ht(r,n,o).values}update(r,[n,o,c]){var f;const p=C8(r),{values:b,keys:k}=this.ht(n,o,c);if(!Array.isArray(p))return this.ut=k,b;const S=(f=this.ut)!==null&&f!==void 0?f:this.ut=[],O=[];let I,U,q=0,X=p.length-1,ce=0,xe=b.length-1;for(;q<=X&&ce<=xe;)if(p[q]===null)q++;else if(p[X]===null)X--;else if(S[q]===k[ce])O[ce]=Fs(p[q],b[ce]),q++,ce++;else if(S[X]===k[xe])O[xe]=Fs(p[X],b[xe]),X--,xe--;else if(S[q]===k[xe])O[xe]=Fs(p[q],b[xe]),p0(r,O[xe+1],p[q]),q++,xe--;else if(S[X]===k[ce])O[ce]=Fs(p[X],b[ce]),p0(r,p[q],p[X]),X--,ce++;else if(I===void 0&&(I=Rp(k,ce,xe),U=Rp(S,q,X)),I.has(S[q]))if(I.has(S[X])){const ye=U.get(k[ce]),Ae=ye!==void 0?p[ye]:null;if(Ae===null){const Ie=p0(r,p[q]);Fs(Ie,b[ce]),O[ce]=Ie}else O[ce]=Fs(Ae,b[ce]),p0(r,p[q],Ae),p[ye]=null;ce++}else gd(p[X]),X--;else gd(p[q]),q++;for(;ce<=xe;){const ye=p0(r,O[xe+1]);Fs(ye,b[ce]),O[ce++]=ye}for(;q<=X;){const ye=p[q++];ye!==null&&gd(ye)}return this.ut=k,y8(r,O),yo}});/**
2392
2414
  * @license
2393
2415
  * Copyright 2018 Google LLC
2394
2416
  * SPDX-License-Identifier: BSD-3-Clause
@@ -2399,7 +2421,7 @@ function print() { __p += __j.call(arguments, '') }
2399
2421
  >
2400
2422
  Item ${n}: ${JSON.stringify(r)}
2401
2423
  </div>
2402
- `,this.currentScrollTop=0,this.endIndex=0,this.innerHeight=0,this.itemHeights=[],this.itemIdentifier="",this.originalItemsCount=0,this.currentItemsCount=0,this.visibleItems=[]}async connectedCallback(){super.connectedCallback(),this.originalItemsCount=this.items.length,this.itemHeights=Array(this.originalItemsCount).fill(this.itemMinHeight),await this.updateComplete,this.syncVisibleItems()}updated(r){super.updated(r),this.canSync(r)&&this.syncVisibleItems()}get estimatedInnerHeight(){return this.estimatedItemMinHeight*this.currentItemsCount}get estimatedItemMinHeight(){return Math.max(this.itemHeightMean,this.slicedItemHeightMode,this.itemMinHeight)}get itemHeightMean(){return this.itemHeights.reduce((r,n)=>r+n,0)/this.originalItemsCount}get slicedItemHeightMode(){const r={};let n=0,o=0;return this.itemHeights.slice(0,this.overscan).forEach(c=>{r[c]?r[c]++:r[c]=1,r[c]>o&&(n=c,o=r[c])}),n}resetItems(){this.visibleItems=[],this.currentItemsCount=this.items.length,this.endIndex=this.currentItemsCount-1,this.innerHeight=this.estimatedInnerHeight}canSync(r){return["items","renderItem"].reduce((n,o)=>n||r.has(o),!1)}syncVisibleItems(){this.resetItems();for(let r=this.rollingStartIndex;r<=this.rollingEndIndex;r++){const n={position:"absolute",top:`${r*this.itemHeights[r]}px`,width:"100%"},o=this.renderItem(this.items[r],r);if(!this.itemIdentifier){const p=e2(o,new DocumentFragment).parentNode.firstElementChild,b=p==null?void 0:p.tagName.toLowerCase(),M=p==null?void 0:p.className;this.itemIdentifier=`${b}${M?`.${M}`:""}`}const c=ee`
2424
+ `,this.currentScrollTop=0,this.endIndex=0,this.innerHeight=0,this.itemHeights=[],this.itemIdentifier="",this.originalItemsCount=0,this.currentItemsCount=0,this.visibleItems=[]}async connectedCallback(){super.connectedCallback(),this.originalItemsCount=this.items.length,this.itemHeights=Array(this.originalItemsCount).fill(this.itemMinHeight),await this.updateComplete,this.syncVisibleItems()}updated(r){super.updated(r),this.canSync(r)&&this.syncVisibleItems()}get estimatedInnerHeight(){return this.estimatedItemMinHeight*this.currentItemsCount}get estimatedItemMinHeight(){return Math.max(this.itemHeightMean,this.slicedItemHeightMode,this.itemMinHeight)}get itemHeightMean(){return this.itemHeights.reduce((r,n)=>r+n,0)/this.originalItemsCount}get slicedItemHeightMode(){const r={};let n=0,o=0;return this.itemHeights.slice(0,this.overscan).forEach(c=>{r[c]?r[c]++:r[c]=1,r[c]>o&&(n=c,o=r[c])}),n}resetItems(){this.visibleItems=[],this.currentItemsCount=this.items.length,this.endIndex=this.currentItemsCount-1,this.innerHeight=this.estimatedInnerHeight}canSync(r){return["items","renderItem"].reduce((n,o)=>n||r.has(o),!1)}syncVisibleItems(){this.resetItems();for(let r=this.rollingStartIndex;r<=this.rollingEndIndex;r++){const n={position:"absolute",top:`${r*this.itemHeights[r]}px`,width:"100%"},o=this.renderItem(this.items[r],r);if(!this.itemIdentifier){const p=e2(o,new DocumentFragment).parentNode.firstElementChild,b=p==null?void 0:p.tagName.toLowerCase(),k=p==null?void 0:p.className;this.itemIdentifier=`${b}${k?`.${k}`:""}`}const c=ee`
2403
2425
  <div class="item-wrapper" style=${x8(n)}>
2404
2426
  ${o}
2405
2427
  </div>
@@ -2423,7 +2445,7 @@ function print() { __p += __j.call(arguments, '') }
2423
2445
  .list {
2424
2446
  position: relative;
2425
2447
  }
2426
- `];ei([F({type:Array})],exports.VirtualList.prototype,"items",2);ei([F({attribute:"item-min-height",type:Number})],exports.VirtualList.prototype,"itemMinHeight",2);ei([F({type:Number,attribute:"overscan"})],exports.VirtualList.prototype,"overscan",2);ei([F({attribute:!1})],exports.VirtualList.prototype,"renderItem",2);ei([pt()],exports.VirtualList.prototype,"currentScrollTop",2);ei([pt()],exports.VirtualList.prototype,"endIndex",2);ei([pt()],exports.VirtualList.prototype,"innerHeight",2);ei([pt()],exports.VirtualList.prototype,"itemHeights",2);ei([pt()],exports.VirtualList.prototype,"itemIdentifier",2);ei([pt()],exports.VirtualList.prototype,"originalItemsCount",2);ei([pt()],exports.VirtualList.prototype,"currentItemsCount",2);ei([pt()],exports.VirtualList.prototype,"visibleItems",2);exports.VirtualList=ei([Q(Jd)],exports.VirtualList);var _8=Object.defineProperty,S8=Object.getOwnPropertyDescriptor,Nn=(r,n,o,c)=>{for(var f=c>1?void 0:c?S8(n,o):n,p=r.length-1,b;p>=0;p--)(b=r[p])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&_8(n,o,f),f};const K2=Ee("menu"),C0=Ee("menu-item"),eh="noResults";class ti extends Rn{constructor(){super(...arguments),this.trailingIcon="chevronDown",this.selectedIndex=-1,this.innerOptions=[],this.options=[],this.keyBindings={Tab:this.handleTab.bind(this),Enter:this.handleEnterKey.bind(this),ArrowUp:this.handleUpDownKey.bind(this),ArrowDown:this.handleUpDownKey.bind(this)}}setInnerOptions(){this.innerOptions=this.isDataDriven?[...this.options.map(n=>({...n,id:`option-${v8()}`,toggleable:this.isMulti}))]:[]}firstUpdated(){this.setInnerOptions(),this.value&&this.updateComplete.then(()=>{this.handleValueChange()})}updated(n){n.has("value")&&this.handleValueChange(),super.updated()}handleUpDownKey(n){n.preventDefault();const{key:o}=n;this.openDropdown();const c=({before:p,after:b})=>(M,S)=>M.hidden?!1:p===void 0&&b===void 0||p!==void 0&&S<p||b!==void 0&&S>b;this.clearKeySelectedItem();const f=this.getItems();if(this.selectedIndex===-1){this.selectedIndex=0,f[this.selectedIndex].selected=!0;return}o==="ArrowUp"&&(this.selectedIndex=M0.exports.findLastIndex(f,c({before:this.selectedIndex})),this.selectedIndex===-1&&(this.selectedIndex=f.length-1)),o==="ArrowDown"&&(this.selectedIndex=f.findIndex(c({after:this.selectedIndex})),this.selectedIndex===-1&&(this.selectedIndex=0)),f[this.selectedIndex].selected=!0}handleEnterKey(){if(!this.isDropdownOpen()){this.openDropdown();return}const n=this.getItems()[this.selectedIndex];n&&n.value&&!n.disabled&&this.setValue(n.value),!(n&&n.disabled)&&this.closeDropdown()}handleTab(){this.isDropdownOpen()&&this.closeDropdown()}clearKeySelectedItem(){if(this.selectedIndex===-1)return;const n=this.getItems()[this.selectedIndex];if(!n){this.selectedIndex=-1;return}n.selected=!1}closeDropdown(){const n=this.getDropdown();n&&n.close()}getDropdown(){var n,o;return((n=this.renderRoot)==null?void 0:n.querySelector("brz-popover"))||((o=this.renderRoot)==null?void 0:o.querySelector("sp-popover"))}getItemLabel(n){var o,c;return n?n instanceof exports.MenuItem?(c=(o=n.textContent)==null?void 0:o.trim())!=null?c:"":n.label:""}get keyboardFocusedItem(){var n,o;return((n=this.optionElementsRenderRoot)==null?void 0:n.querySelector(`${C0}[selected]`))||((o=this.optionElementsRenderRoot)==null?void 0:o.querySelector("sp-menu-item[selected]"))}handleKeydown(n){if(this.readonly)return;const o=this.keyBindings[n.key];o&&o(n)}get defaultSlot(){var n,o;return(o=(n=this.renderRoot)==null?void 0:n.querySelector("slot:not([name])"))==null?void 0:o.assignedSlot}getItems(){return this.isDataDriven?this.innerOptions:this.optionElements}get optionElementsRenderRoot(){var n;return this.isDataDriven?(n=this.virtualListElement)==null?void 0:n.renderRoot:this}get virtualListElement(){return this.renderRoot.querySelector(Jd)}getOptionElement(n){return this.optionElements.find(o=>o.id===n)}get optionElements(){var o,c,f;const n=(o=this.optionElementsRenderRoot)!=null&&o.querySelectorAll(C0).length?(c=this.optionElementsRenderRoot)==null?void 0:c.querySelectorAll(C0):(f=this.optionElementsRenderRoot)==null?void 0:f.querySelectorAll("sp-menu-item");return Array.from(n!=null?n:[])}isDropdownOpen(){const n=this.getDropdown();return n==null?void 0:n.isOpen}openDropdown(){const n=this.getDropdown();n&&n.open()}setValue(n){this.value=n,this.handleValueChange(),this.dispatchChange()}renderInput(){return this.updateComplete.then(()=>{var n,o;(n=this.keyboardFocusedItem)==null||n.scrollIntoView({block:"center"}),(o=this.getDropdown())==null||o.updatePosition()}),this.readonly?this.renderReferenceElement():ee`
2448
+ `];ei([F({type:Array})],exports.VirtualList.prototype,"items",2);ei([F({attribute:"item-min-height",type:Number})],exports.VirtualList.prototype,"itemMinHeight",2);ei([F({type:Number,attribute:"overscan"})],exports.VirtualList.prototype,"overscan",2);ei([F({attribute:!1})],exports.VirtualList.prototype,"renderItem",2);ei([pt()],exports.VirtualList.prototype,"currentScrollTop",2);ei([pt()],exports.VirtualList.prototype,"endIndex",2);ei([pt()],exports.VirtualList.prototype,"innerHeight",2);ei([pt()],exports.VirtualList.prototype,"itemHeights",2);ei([pt()],exports.VirtualList.prototype,"itemIdentifier",2);ei([pt()],exports.VirtualList.prototype,"originalItemsCount",2);ei([pt()],exports.VirtualList.prototype,"currentItemsCount",2);ei([pt()],exports.VirtualList.prototype,"visibleItems",2);exports.VirtualList=ei([Q(Jd)],exports.VirtualList);var _8=Object.defineProperty,S8=Object.getOwnPropertyDescriptor,Nn=(r,n,o,c)=>{for(var f=c>1?void 0:c?S8(n,o):n,p=r.length-1,b;p>=0;p--)(b=r[p])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&_8(n,o,f),f};const K2=Ee("menu"),C0=Ee("menu-item"),eh="noResults";class ti extends zn{constructor(){super(...arguments),this.trailingIcon="chevronDown",this.selectedIndex=-1,this.innerOptions=[],this.options=[],this.keyBindings={Tab:this.handleTab.bind(this),Enter:this.handleEnterKey.bind(this),ArrowUp:this.handleUpDownKey.bind(this),ArrowDown:this.handleUpDownKey.bind(this)}}setInnerOptions(){this.innerOptions=this.isDataDriven?[...this.options.map(n=>({...n,id:`option-${v8()}`,toggleable:this.isMulti}))]:[]}firstUpdated(){this.setInnerOptions(),this.value&&this.updateComplete.then(()=>{this.handleValueChange()})}updated(n){n.has("value")&&this.handleValueChange(),super.updated()}handleUpDownKey(n){n.preventDefault();const{key:o}=n;this.openDropdown();const c=({before:p,after:b})=>(k,S)=>k.hidden?!1:p===void 0&&b===void 0||p!==void 0&&S<p||b!==void 0&&S>b;this.clearKeySelectedItem();const f=this.getItems();if(this.selectedIndex===-1){this.selectedIndex=0,f[this.selectedIndex].selected=!0;return}o==="ArrowUp"&&(this.selectedIndex=k0.exports.findLastIndex(f,c({before:this.selectedIndex})),this.selectedIndex===-1&&(this.selectedIndex=f.length-1)),o==="ArrowDown"&&(this.selectedIndex=f.findIndex(c({after:this.selectedIndex})),this.selectedIndex===-1&&(this.selectedIndex=0)),f[this.selectedIndex].selected=!0}handleEnterKey(){if(!this.isDropdownOpen()){this.openDropdown();return}const n=this.getItems()[this.selectedIndex];n&&n.value&&!n.disabled&&this.setValue(n.value),!(n&&n.disabled)&&this.closeDropdown()}handleTab(){this.isDropdownOpen()&&this.closeDropdown()}clearKeySelectedItem(){if(this.selectedIndex===-1)return;const n=this.getItems()[this.selectedIndex];if(!n){this.selectedIndex=-1;return}n.selected=!1}closeDropdown(){const n=this.getDropdown();n&&n.close()}getDropdown(){var n,o;return((n=this.renderRoot)==null?void 0:n.querySelector("brz-popover"))||((o=this.renderRoot)==null?void 0:o.querySelector("sp-popover"))}getItemLabel(n){var o,c;return n?n instanceof exports.MenuItem?(c=(o=n.textContent)==null?void 0:o.trim())!=null?c:"":n.label:""}get keyboardFocusedItem(){var n,o;return((n=this.optionElementsRenderRoot)==null?void 0:n.querySelector(`${C0}[selected]`))||((o=this.optionElementsRenderRoot)==null?void 0:o.querySelector("sp-menu-item[selected]"))}handleKeydown(n){if(this.isReadonlyOrDisabled)return;const o=this.keyBindings[n.key];o&&o(n)}get defaultSlot(){var n,o;return(o=(n=this.renderRoot)==null?void 0:n.querySelector("slot:not([name])"))==null?void 0:o.assignedSlot}getItems(){return this.isDataDriven?this.innerOptions:this.optionElements}get optionElementsRenderRoot(){var n;return this.isDataDriven?(n=this.virtualListElement)==null?void 0:n.renderRoot:this}get virtualListElement(){return this.renderRoot.querySelector(Jd)}getOptionElement(n){return this.optionElements.find(o=>o.id===n)}get optionElements(){var o,c,f;const n=(o=this.optionElementsRenderRoot)!=null&&o.querySelectorAll(C0).length?(c=this.optionElementsRenderRoot)==null?void 0:c.querySelectorAll(C0):(f=this.optionElementsRenderRoot)==null?void 0:f.querySelectorAll("sp-menu-item");return Array.from(n!=null?n:[])}isDropdownOpen(){const n=this.getDropdown();return n==null?void 0:n.isOpen}openDropdown(){const n=this.getDropdown();n&&n.open()}setValue(n){this.value=n,this.handleValueChange(),this.dispatchChange()}renderInput(){return this.updateComplete.then(()=>{var n,o;(n=this.keyboardFocusedItem)==null||n.scrollIntoView({block:"center"}),(o=this.getDropdown())==null||o.updatePosition()}),this.isReadonlyOrDisabled?this.renderReferenceElement():ee`
2427
2449
  <brz-popover
2428
2450
  role="menu"
2429
2451
  trigger="click"
@@ -2442,25 +2464,27 @@ function print() { __p += __j.call(arguments, '') }
2442
2464
  ${this.renderDropdownContent()}
2443
2465
  </brz-menu>
2444
2466
  </brz-popover>
2445
- `}renderNoResultsMessage(){return ee`<brz-menu-item id=${eh} disabled
2446
- >No results found</brz-menu-item
2447
- >`}renderReferenceElement(){return ee``}renderDropdownContent(){return ee``}renderOptionsData(n=this.innerOptions){return n!=null&&n.length?ee`
2467
+ `}renderNoResultsMessage(){return ee`
2468
+ <brz-menu-item id=${eh} disabled>
2469
+ No results found
2470
+ </brz-menu-item>
2471
+ `}renderReferenceElement(){return ee``}renderDropdownContent(){return ee``}renderOptionsData(n=this.innerOptions){return n!=null&&n.length?ee`
2448
2472
  <brz-virtual-list
2449
2473
  .items=${n.filter(({hidden:o})=>!o)}
2450
- .renderItem=${({id:o,label:c,value:f,disabled:p,selected:b,toggleable:M,toggled:S})=>ee`
2474
+ .renderItem=${({id:o,label:c,value:f,disabled:p,selected:b,toggleable:k,toggled:S})=>ee`
2451
2475
  <brz-menu-item
2452
2476
  id=${o}
2453
2477
  value=${f}
2454
2478
  ?disabled=${p}
2455
2479
  ?selected=${b}
2456
- ?toggleable=${M}
2480
+ ?toggleable=${k}
2457
2481
  ?toggled=${S}
2458
2482
  >
2459
2483
  ${c}
2460
2484
  </brz-menu-item>
2461
2485
  `}
2462
2486
  ></brz-virtual-list>
2463
- `:null}isQueryMatch(n){return this.query?this.getItemLabel(n).toLowerCase().includes(this.query.toLowerCase())||this.isCustomQueryMatch(n):!1}isCustomQueryMatch(n){return!1}handleCloseDropdown(){}handleSelect(n){}handleValueChange(){}get hasQueryResults(){return!!(!this.query||this.hasResults)}get isDataDriven(){var n;return!!((n=this.options)!=null&&n.length)}get isMulti(){return Array.isArray(this.value)}}ti.styles=[...Rn.styles,ge`
2487
+ `:null}isQueryMatch(n){return this.query?this.getItemLabel(n).toLowerCase().includes(this.query.toLowerCase())||this.isCustomQueryMatch(n):!1}isCustomQueryMatch(n){return!1}handleCloseDropdown(){}handleSelect(n){}handleValueChange(){}get hasQueryResults(){return!!(!this.query||this.hasResults)}get isDataDriven(){var n;return!!((n=this.options)!=null&&n.length)}get isMulti(){return Array.isArray(this.value)}get isReadonlyOrDisabled(){return this.disabled||this.readonly}}ti.styles=[...zn.styles,ge`
2464
2488
  :host {
2465
2489
  /** 18px for icon, 10px for icon inset, spacing-2 for standard input padding **/
2466
2490
  --dropdown-decorator-offset: calc(18px + 10px + var(--input-padding));
@@ -2468,7 +2492,10 @@ function print() { __p += __j.call(arguments, '') }
2468
2492
 
2469
2493
  :host([readonly]) input,
2470
2494
  :host([readonly]) .wrapper,
2471
- :host([readonly]) brz-icon {
2495
+ :host([readonly]) brz-icon,
2496
+ :host([disabled]) input,
2497
+ :host([disabled]) .wrapper,
2498
+ :host([disabled]) brz-icon {
2472
2499
  cursor: default;
2473
2500
  }
2474
2501
 
@@ -2505,6 +2532,7 @@ function print() { __p += __j.call(arguments, '') }
2505
2532
  border-color: var(--input-hover-border-color);
2506
2533
  }
2507
2534
 
2535
+ :host([disabled]) .wrapper,
2508
2536
  :host([readonly]) .wrapper {
2509
2537
  background-color: var(--input-readonly-background-color);
2510
2538
  border-color: var(--input-readonly-border-color);
@@ -2544,7 +2572,7 @@ function print() { __p += __j.call(arguments, '') }
2544
2572
  ${this.toggleable?ee`
2545
2573
  <brz-input-checkbox
2546
2574
  @brz-input-change=${this.handleSelected}
2547
- ?readonly=${this.disabled}
2575
+ ?disabled=${this.disabled}
2548
2576
  ?checked=${this.toggled}
2549
2577
  >
2550
2578
  ${this.labelTemplate}
@@ -2584,20 +2612,25 @@ function print() { __p += __j.call(arguments, '') }
2584
2612
  flex-basis: 100%;
2585
2613
  padding: var(--menu-item-padding-y) 0;
2586
2614
  }
2587
- `];Nn([F({type:Boolean,reflect:!0})],exports.MenuItem.prototype,"disabled",2);Nn([F({type:Boolean,reflect:!0})],exports.MenuItem.prototype,"selected",2);Nn([F({type:String})],exports.MenuItem.prototype,"value",2);Nn([F({type:Boolean,reflect:!0})],exports.MenuItem.prototype,"toggleable",2);Nn([F({type:Boolean,reflect:!0})],exports.MenuItem.prototype,"toggled",2);exports.MenuItem=Nn([Q(C0)],exports.MenuItem);const X2=(r,n,o)=>{const c=new CustomEvent(n,Object.assign({bubbles:!0,cancelable:!1,composed:!0,detail:{}},o));return r.dispatchEvent(c),c};var k8=Object.defineProperty,M8=Object.getOwnPropertyDescriptor,$0=(r,n,o,c)=>{for(var f=c>1?void 0:c?M8(n,o):n,p=r.length-1,b;p>=0;p--)(b=r[p])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&k8(n,o,f),f};const Q2=Ee("input-select");exports.InputSelect=class extends ti{constructor(){super(...arguments),this.query="",this.hasResults=!1}handleChangeSearch(r){const n=r.target;this.query&&n.value===this.query||(this.isDropdownOpen()||this.openDropdown(),this.selectedIndex=0,this.query=n==null?void 0:n.value)}handleCloseDropdown(){window.setTimeout(()=>{this.resetSearch(),this.setQueryInputValue(),this.clearKeySelectedItem(),this.selectedIndex=-1},200)}handleValueChange(){this.updateComplete.then(()=>{this.syncValueLabel(this.value),this.resetSearch()})}handleSelect(r){this.setValue(r.detail.item.value),this.closeDropdown()}get queryInput(){var r;return(r=this.shadowRoot)==null?void 0:r.querySelector("input#selectSearch")}setQueryInputValue(){!this.queryInput||(this.queryInput.value=this.query||this.valueLabel||"")}renderReferenceElement(){var r;return this.search(),ee`
2588
- <div class="wrapper" @keydown="${this.handleKeydown}" tabindex="0">
2615
+ `];Nn([F({type:Boolean,reflect:!0})],exports.MenuItem.prototype,"disabled",2);Nn([F({type:Boolean,reflect:!0})],exports.MenuItem.prototype,"selected",2);Nn([F({type:String})],exports.MenuItem.prototype,"value",2);Nn([F({type:Boolean,reflect:!0})],exports.MenuItem.prototype,"toggleable",2);Nn([F({type:Boolean,reflect:!0})],exports.MenuItem.prototype,"toggled",2);exports.MenuItem=Nn([Q(C0)],exports.MenuItem);const X2=(r,n,o)=>{const c=new CustomEvent(n,Object.assign({bubbles:!0,cancelable:!1,composed:!0,detail:{}},o));return r.dispatchEvent(c),c};var M8=Object.defineProperty,k8=Object.getOwnPropertyDescriptor,$0=(r,n,o,c)=>{for(var f=c>1?void 0:c?k8(n,o):n,p=r.length-1,b;p>=0;p--)(b=r[p])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&M8(n,o,f),f};const Q2=Ee("input-select");exports.InputSelect=class extends ti{constructor(){super(...arguments),this.query="",this.hasResults=!1}handleChangeSearch(r){const n=r.target;this.query&&n.value===this.query||(this.isDropdownOpen()||this.openDropdown(),this.selectedIndex=0,this.query=n==null?void 0:n.value)}handleCloseDropdown(){window.setTimeout(()=>{this.resetSearch(),this.setQueryInputValue(),this.clearKeySelectedItem(),this.selectedIndex=-1},200)}handleValueChange(){this.updateComplete.then(()=>{this.syncValueLabel(this.value),this.resetSearch()})}handleSelect(r){this.setValue(r.detail.item.value),this.closeDropdown()}get queryInput(){var r;return(r=this.shadowRoot)==null?void 0:r.querySelector("input#selectSearch")}setQueryInputValue(){!this.queryInput||(this.queryInput.value=this.query||this.valueLabel||"")}renderReferenceElement(){var r;return this.search(),ee`
2616
+ <div
2617
+ class="wrapper"
2618
+ @keydown="${this.handleKeydown}"
2619
+ tabindex=${this.disabled?-1:0}
2620
+ >
2589
2621
  ${this.canSearch?null:ee`
2590
2622
  <span class=${this.value?"":"placeholder"}>
2591
2623
  ${this.valueLabel||this.placeholder}
2592
2624
  </span>
2593
2625
  `}
2594
- ${!this.readonly&&this.canSearch?ee`
2626
+ ${!this.isReadonlyOrDisabled&&this.canSearch?ee`
2595
2627
  <input
2596
2628
  id="selectSearch"
2597
2629
  type="search"
2598
2630
  placeholder=${qt(this.placeholder)}
2599
2631
  @input="${this.handleChangeSearch}"
2600
2632
  @keydown="${this.handleKeydown}"
2633
+ ?disabled=${this.disabled}
2601
2634
  ?readonly=${this.readonly}
2602
2635
  value=${(r=this.valueLabel)!=null?r:""}
2603
2636
  aria-invalid=${qt(this.invalid?this.invalid:void 0)}
@@ -2608,7 +2641,7 @@ function print() { __p += __j.call(arguments, '') }
2608
2641
  `}renderDropdownContent(){return ee`
2609
2642
  ${this.hasQueryResults?null:this.renderNoResultsMessage()}
2610
2643
  ${this.isDataDriven?this.renderOptionsData():ee`<slot @slotchange=${this.handleValueChange}></slot>`}
2611
- `}resetSearch(){this.query=""}search(){var n;this.hasResults=!1;const r=(n=this.query)==null?void 0:n.toLowerCase();this.getItems().forEach(o=>{var f;if("id"in o&&o.id===eh)return;if(!r||r===((f=this.valueLabel)==null?void 0:f.toLowerCase())){o.hidden=!1,this.hasResults=!0;return}const c=this.isQueryMatch(o);c&&(this.hasResults=!0),o.hidden=!c})}disconnectedCallback(){var r;(r=this.selectedOptionObserver)==null||r.disconnect(),super.disconnectedCallback()}syncValueLabel(r){var o,c;if((o=this.selectedOptionObserver)==null||o.disconnect(),this.isDataDriven&&this.readonly){this.valueLabel=(c=this.innerOptions.find(f=>f.value===r))==null?void 0:c.label;return}const n=this.optionElements.find(f=>f.value===r);n&&(this.selectedOptionObserver=new MutationObserver(()=>{this.valueLabel=this.getItemLabel(n),this.resetSearch()}),n instanceof Node&&this.selectedOptionObserver.observe(n,{characterData:!1,childList:!0,attributes:!1}),this.valueLabel=this.getItemLabel(n))}};exports.InputSelect.styles=[...ti.styles,ge`
2644
+ `}resetSearch(){this.query=""}search(){var n;this.hasResults=!1;const r=(n=this.query)==null?void 0:n.toLowerCase();this.getItems().forEach(o=>{var f;if("id"in o&&o.id===eh)return;if(!r||r===((f=this.valueLabel)==null?void 0:f.toLowerCase())){o.hidden=!1,this.hasResults=!0;return}const c=this.isQueryMatch(o);c&&(this.hasResults=!0),o.hidden=!c})}disconnectedCallback(){var r;(r=this.selectedOptionObserver)==null||r.disconnect(),super.disconnectedCallback()}syncValueLabel(r){var o,c;if((o=this.selectedOptionObserver)==null||o.disconnect(),this.isDataDriven&&this.isReadonlyOrDisabled){this.valueLabel=(c=this.innerOptions.find(f=>f.value===r))==null?void 0:c.label;return}const n=this.optionElements.find(f=>f.value===r);n&&(this.selectedOptionObserver=new MutationObserver(()=>{this.valueLabel=this.getItemLabel(n),this.resetSearch()}),n instanceof Node&&this.selectedOptionObserver.observe(n,{characterData:!1,childList:!0,attributes:!1}),this.valueLabel=this.getItemLabel(n))}};exports.InputSelect.styles=[...ti.styles,ge`
2612
2645
  input {
2613
2646
  text-overflow: ellipsis;
2614
2647
  }
@@ -2812,25 +2845,29 @@ function print() { __p += __j.call(arguments, '') }
2812
2845
  color: var(--brz-color-neutral-550);
2813
2846
  cursor: unset;
2814
2847
  }
2815
- `;Wi([F({type:String,attribute:"size",reflect:!0})],exports.Lozenge.prototype,"size",2);Wi([F({type:String,attribute:"theme",reflect:!0})],exports.Lozenge.prototype,"theme",2);Wi([F({type:String,attribute:"color",reflect:!0})],exports.Lozenge.prototype,"color",2);Wi([F({type:String,attribute:"leading-icon",reflect:!0})],exports.Lozenge.prototype,"leadingIcon",2);Wi([F({type:Boolean,attribute:"can-delete",reflect:!0})],exports.Lozenge.prototype,"canDelete",2);Wi([F({type:Boolean,attribute:"disabled",reflect:!0})],exports.Lozenge.prototype,"disabled",2);Wi([F({type:Boolean,attribute:"no-truncate",reflect:!0})],exports.Lozenge.prototype,"noTruncate",2);Wi([t2()],exports.Lozenge.prototype,"defaultSlot",2);Wi([Pg(".message")],exports.Lozenge.prototype,"message",2);Wi([pt()],exports.Lozenge.prototype,"isOverflowing",2);exports.Lozenge=Wi([Q(J2)],exports.Lozenge);var I8=Object.defineProperty,D8=Object.getOwnPropertyDescriptor,H0=(r,n,o,c)=>{for(var f=c>1?void 0:c?D8(n,o):n,p=r.length-1,b;p>=0;p--)(b=r[p])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&I8(n,o,f),f};const t4=Ee("input-multiselect"),ta="selectAll";exports.InputMultiselect=class extends ti{constructor(){super(...arguments),this.size="x-large",this.truncateValuesAfter=20,this.value=[],this.valueLabels=[]}connectedCallback(){super.connectedCallback(),this.keyBindings.Backspace=r=>{var n;!((n=r.target)!=null&&n.value)&&!this.readonly&&this.removeLastValue()},this.keyBindings.Enter=()=>{if(!this.isDropdownOpen()){this.openDropdown();return}const r=this.getItems()[this.selectedIndex];if(r.id===ta){this.toggleAllSelected();return}r&&!r.disabled&&this.toggleSelection(r.value),r&&r.disabled}}firstUpdated(){super.firstUpdated(),this.isDataDriven&&this.innerOptions.unshift(this.selectAllOption)}get allSelected(){const{enabled:r,toggled:n}=[...this.getItems()].reduce((o,c)=>c.id===ta?o:{enabled:c.disabled?o.enabled:o.enabled+1,toggled:c.toggled?o.toggled+1:o.toggled},{enabled:0,toggled:0});return r===n}dispatchChange(){this.dispatchEvent(new CustomEvent("brz-input-change",{detail:{value:[...this.value||[]]}}))}handleCloseDropdown(){window.setTimeout(()=>{this.clearKeySelectedItem(),this.resetSearch(),this.selectedIndex=-1},200)}handleValueChange(){this.syncValueLabels()}handleSelect(r){if(r.detail.item.id===ta){this.toggleAllSelected();return}this.toggleSelection(r.detail.item.value)}toggleAllSelected(){const r=[];this.allSelected||this.getItems().forEach(n=>{!n.disabled&&n.id!==ta&&r.push(n.value)}),this.setValue(r)}toggleSelection(r){const n=this.value?[...this.value]:[],o=n.indexOf(r);o>-1&&n.splice(o,1),o===-1&&n.push(r),this.setValue(n)}applyToggleStatusToChildren(){this.getItems().forEach(r=>{r.toggleable=!0;const n=this.value&&this.value.includes(r.value);r.toggled=r.id===ta?this.allSelected:n})}onQueryChange({target:r}){this.isDropdownOpen()||this.openDropdown(),this.query=r==null?void 0:r.value}get truncation(){return this.value&&this.value.length>this.truncateValuesAfter?ee`<span class="truncation"
2848
+ `;Wi([F({type:String,attribute:"size",reflect:!0})],exports.Lozenge.prototype,"size",2);Wi([F({type:String,attribute:"theme",reflect:!0})],exports.Lozenge.prototype,"theme",2);Wi([F({type:String,attribute:"color",reflect:!0})],exports.Lozenge.prototype,"color",2);Wi([F({type:String,attribute:"leading-icon",reflect:!0})],exports.Lozenge.prototype,"leadingIcon",2);Wi([F({type:Boolean,attribute:"can-delete",reflect:!0})],exports.Lozenge.prototype,"canDelete",2);Wi([F({type:Boolean,attribute:"disabled",reflect:!0})],exports.Lozenge.prototype,"disabled",2);Wi([F({type:Boolean,attribute:"no-truncate",reflect:!0})],exports.Lozenge.prototype,"noTruncate",2);Wi([t2()],exports.Lozenge.prototype,"defaultSlot",2);Wi([Pg(".message")],exports.Lozenge.prototype,"message",2);Wi([pt()],exports.Lozenge.prototype,"isOverflowing",2);exports.Lozenge=Wi([Q(J2)],exports.Lozenge);var I8=Object.defineProperty,D8=Object.getOwnPropertyDescriptor,H0=(r,n,o,c)=>{for(var f=c>1?void 0:c?D8(n,o):n,p=r.length-1,b;p>=0;p--)(b=r[p])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&I8(n,o,f),f};const t4=Ee("input-multiselect"),ta="selectAll";exports.InputMultiselect=class extends ti{constructor(){super(...arguments),this.size="x-large",this.truncateValuesAfter=20,this.value=[],this.valueLabels=[]}connectedCallback(){super.connectedCallback(),this.keyBindings.Backspace=r=>{var n;!((n=r.target)!=null&&n.value)&&!this.isReadonlyOrDisabled&&this.removeLastValue()},this.keyBindings.Enter=()=>{if(!this.isDropdownOpen()){this.openDropdown();return}const r=this.getItems()[this.selectedIndex];if(r.id===ta){this.toggleAllSelected();return}r&&!r.disabled&&this.toggleSelection(r.value),r&&r.disabled}}firstUpdated(){super.firstUpdated(),this.isDataDriven&&this.innerOptions.unshift(this.selectAllOption)}get allSelected(){const{enabled:r,toggled:n}=[...this.getItems()].reduce((o,c)=>c.id===ta?o:{enabled:c.disabled?o.enabled:o.enabled+1,toggled:c.toggled?o.toggled+1:o.toggled},{enabled:0,toggled:0});return r===n}dispatchChange(){this.dispatchEvent(new CustomEvent("brz-input-change",{detail:{value:[...this.value||[]]}}))}handleCloseDropdown(){window.setTimeout(()=>{this.clearKeySelectedItem(),this.resetSearch(),this.selectedIndex=-1},200)}handleValueChange(){this.syncValueLabels()}handleSelect(r){if(r.detail.item.id===ta){this.toggleAllSelected();return}this.toggleSelection(r.detail.item.value)}toggleAllSelected(){const r=[];this.allSelected||this.getItems().forEach(n=>{!n.disabled&&n.id!==ta&&r.push(n.value)}),this.setValue(r)}toggleSelection(r){const n=this.value?[...this.value]:[],o=n.indexOf(r);o>-1&&n.splice(o,1),o===-1&&n.push(r),this.setValue(n)}applyToggleStatusToChildren(){this.getItems().forEach(r=>{r.toggleable=!0;const n=this.value&&this.value.includes(r.value);r.toggled=r.id===ta?this.allSelected:n})}onQueryChange({target:r}){this.isDropdownOpen()||this.openDropdown(),this.query=r==null?void 0:r.value}get truncation(){return this.value&&this.value.length>this.truncateValuesAfter?ee`<span class="truncation"
2816
2849
  >+${this.value.length-this.truncateValuesAfter} more</span
2817
2850
  >`:null}renderReferenceElement(){return this.applyToggleStatusToChildren(),this.search(),ee`
2818
- <div class="wrapper" @keydown="${this.handleKeydown}" tabindex="0">
2851
+ <div
2852
+ class="wrapper"
2853
+ @keydown="${this.handleKeydown}"
2854
+ tabindex=${this.disabled?-1:0}
2855
+ >
2819
2856
  ${!this.canSearch&&this.valueLabels.length===0?ee` <div class="placeholder">${this.placeholder}</div> `:void 0}
2820
2857
  ${this.valueLabels.map(({value:r,label:n})=>ee`
2821
2858
  <brz-lozenge
2822
2859
  size="small"
2823
2860
  color="neutral"
2824
2861
  theme="subtle"
2825
- ?disabled=${this.readonly}
2826
- @brz-lozenge-delete="${()=>{this.readonly||this.toggleSelection(r)}}"
2862
+ ?disabled=${this.isReadonlyOrDisabled}
2863
+ @brz-lozenge-delete="${()=>{this.isReadonlyOrDisabled||this.toggleSelection(r)}}"
2827
2864
  can-delete
2828
2865
  >
2829
2866
  ${n}
2830
2867
  </brz-lozenge>
2831
2868
  `)}
2832
2869
  ${this.truncation}
2833
- ${!this.readonly&&this.canSearch?ee`
2870
+ ${!this.isReadonlyOrDisabled&&this.canSearch?ee`
2834
2871
  <input
2835
2872
  type="search"
2836
2873
  value=${this.query}
@@ -2905,11 +2942,11 @@ function print() { __p += __j.call(arguments, '') }
2905
2942
  //! authors : Tim Wood, Iskren Chernev, Moment.js contributors
2906
2943
  //! license : MIT
2907
2944
  //! momentjs.com
2908
- var r4;function Se(){return r4.apply(null,arguments)}function R8(r){r4=r}function Bi(r){return r instanceof Array||Object.prototype.toString.call(r)==="[object Array]"}function Gs(r){return r!=null&&Object.prototype.toString.call(r)==="[object Object]"}function Tt(r,n){return Object.prototype.hasOwnProperty.call(r,n)}function th(r){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(r).length===0;var n;for(n in r)if(Tt(r,n))return!1;return!0}function En(r){return r===void 0}function la(r){return typeof r=="number"||Object.prototype.toString.call(r)==="[object Number]"}function B0(r){return r instanceof Date||Object.prototype.toString.call(r)==="[object Date]"}function n4(r,n){var o=[],c,f=r.length;for(c=0;c<f;++c)o.push(n(r[c],c));return o}function qa(r,n){for(var o in n)Tt(n,o)&&(r[o]=n[o]);return Tt(n,"toString")&&(r.toString=n.toString),Tt(n,"valueOf")&&(r.valueOf=n.valueOf),r}function _o(r,n,o,c){return k4(r,n,o,c,!0).utc()}function N8(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function ht(r){return r._pf==null&&(r._pf=N8()),r._pf}var kd;Array.prototype.some?kd=Array.prototype.some:kd=function(r){var n=Object(this),o=n.length>>>0,c;for(c=0;c<o;c++)if(c in n&&r.call(this,n[c],c,n))return!0;return!1};function rh(r){if(r._isValid==null){var n=ht(r),o=kd.call(n.parsedDateParts,function(f){return f!=null}),c=!isNaN(r._d.getTime())&&n.overflow<0&&!n.empty&&!n.invalidEra&&!n.invalidMonth&&!n.invalidWeekday&&!n.weekdayMismatch&&!n.nullInput&&!n.invalidFormat&&!n.userInvalidated&&(!n.meridiem||n.meridiem&&o);if(r._strict&&(c=c&&n.charsLeftOver===0&&n.unusedTokens.length===0&&n.bigHour===void 0),Object.isFrozen==null||!Object.isFrozen(r))r._isValid=c;else return c}return r._isValid}function W1(r){var n=_o(NaN);return r!=null?qa(ht(n),r):ht(n).userInvalidated=!0,n}var Np=Se.momentProperties=[],gd=!1;function nh(r,n){var o,c,f,p=Np.length;if(En(n._isAMomentObject)||(r._isAMomentObject=n._isAMomentObject),En(n._i)||(r._i=n._i),En(n._f)||(r._f=n._f),En(n._l)||(r._l=n._l),En(n._strict)||(r._strict=n._strict),En(n._tzm)||(r._tzm=n._tzm),En(n._isUTC)||(r._isUTC=n._isUTC),En(n._offset)||(r._offset=n._offset),En(n._pf)||(r._pf=ht(n)),En(n._locale)||(r._locale=n._locale),p>0)for(o=0;o<p;o++)c=Np[o],f=n[c],En(f)||(r[c]=f);return r}function F0(r){nh(this,r),this._d=new Date(r._d!=null?r._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),gd===!1&&(gd=!0,Se.updateOffset(this),gd=!1)}function Fi(r){return r instanceof F0||r!=null&&r._isAMomentObject!=null}function i4(r){Se.suppressDeprecationWarnings===!1&&typeof console!="undefined"&&console.warn&&console.warn("Deprecation warning: "+r)}function wi(r,n){var o=!0;return qa(function(){if(Se.deprecationHandler!=null&&Se.deprecationHandler(null,r),o){var c=[],f,p,b,M=arguments.length;for(p=0;p<M;p++){if(f="",typeof arguments[p]=="object"){f+=`
2945
+ var r4;function Se(){return r4.apply(null,arguments)}function R8(r){r4=r}function Bi(r){return r instanceof Array||Object.prototype.toString.call(r)==="[object Array]"}function Gs(r){return r!=null&&Object.prototype.toString.call(r)==="[object Object]"}function Tt(r,n){return Object.prototype.hasOwnProperty.call(r,n)}function th(r){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(r).length===0;var n;for(n in r)if(Tt(r,n))return!1;return!0}function In(r){return r===void 0}function la(r){return typeof r=="number"||Object.prototype.toString.call(r)==="[object Number]"}function B0(r){return r instanceof Date||Object.prototype.toString.call(r)==="[object Date]"}function n4(r,n){var o=[],c,f=r.length;for(c=0;c<f;++c)o.push(n(r[c],c));return o}function qa(r,n){for(var o in n)Tt(n,o)&&(r[o]=n[o]);return Tt(n,"toString")&&(r.toString=n.toString),Tt(n,"valueOf")&&(r.valueOf=n.valueOf),r}function _o(r,n,o,c){return M4(r,n,o,c,!0).utc()}function N8(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function ht(r){return r._pf==null&&(r._pf=N8()),r._pf}var kd;Array.prototype.some?kd=Array.prototype.some:kd=function(r){var n=Object(this),o=n.length>>>0,c;for(c=0;c<o;c++)if(c in n&&r.call(this,n[c],c,n))return!0;return!1};function rh(r){if(r._isValid==null){var n=ht(r),o=kd.call(n.parsedDateParts,function(f){return f!=null}),c=!isNaN(r._d.getTime())&&n.overflow<0&&!n.empty&&!n.invalidEra&&!n.invalidMonth&&!n.invalidWeekday&&!n.weekdayMismatch&&!n.nullInput&&!n.invalidFormat&&!n.userInvalidated&&(!n.meridiem||n.meridiem&&o);if(r._strict&&(c=c&&n.charsLeftOver===0&&n.unusedTokens.length===0&&n.bigHour===void 0),Object.isFrozen==null||!Object.isFrozen(r))r._isValid=c;else return c}return r._isValid}function U1(r){var n=_o(NaN);return r!=null?qa(ht(n),r):ht(n).userInvalidated=!0,n}var Np=Se.momentProperties=[],vd=!1;function nh(r,n){var o,c,f,p=Np.length;if(In(n._isAMomentObject)||(r._isAMomentObject=n._isAMomentObject),In(n._i)||(r._i=n._i),In(n._f)||(r._f=n._f),In(n._l)||(r._l=n._l),In(n._strict)||(r._strict=n._strict),In(n._tzm)||(r._tzm=n._tzm),In(n._isUTC)||(r._isUTC=n._isUTC),In(n._offset)||(r._offset=n._offset),In(n._pf)||(r._pf=ht(n)),In(n._locale)||(r._locale=n._locale),p>0)for(o=0;o<p;o++)c=Np[o],f=n[c],In(f)||(r[c]=f);return r}function F0(r){nh(this,r),this._d=new Date(r._d!=null?r._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),vd===!1&&(vd=!0,Se.updateOffset(this),vd=!1)}function Fi(r){return r instanceof F0||r!=null&&r._isAMomentObject!=null}function i4(r){Se.suppressDeprecationWarnings===!1&&typeof console!="undefined"&&console.warn&&console.warn("Deprecation warning: "+r)}function wi(r,n){var o=!0;return qa(function(){if(Se.deprecationHandler!=null&&Se.deprecationHandler(null,r),o){var c=[],f,p,b,k=arguments.length;for(p=0;p<k;p++){if(f="",typeof arguments[p]=="object"){f+=`
2909
2946
  [`+p+"] ";for(b in arguments[0])Tt(arguments[0],b)&&(f+=b+": "+arguments[0][b]+", ");f=f.slice(0,-2)}else f=arguments[p];c.push(f)}i4(r+`
2910
2947
  Arguments: `+Array.prototype.slice.call(c).join("")+`
2911
- `+new Error().stack),o=!1}return n.apply(this,arguments)},n)}var $p={};function o4(r,n){Se.deprecationHandler!=null&&Se.deprecationHandler(r,n),$p[r]||(i4(n),$p[r]=!0)}Se.suppressDeprecationWarnings=!1;Se.deprecationHandler=null;function So(r){return typeof Function!="undefined"&&r instanceof Function||Object.prototype.toString.call(r)==="[object Function]"}function $8(r){var n,o;for(o in r)Tt(r,o)&&(n=r[o],So(n)?this[o]=n:this["_"+o]=n);this._config=r,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function Md(r,n){var o=qa({},r),c;for(c in n)Tt(n,c)&&(Gs(r[c])&&Gs(n[c])?(o[c]={},qa(o[c],r[c]),qa(o[c],n[c])):n[c]!=null?o[c]=n[c]:delete o[c]);for(c in r)Tt(r,c)&&!Tt(n,c)&&Gs(r[c])&&(o[c]=qa({},o[c]));return o}function ih(r){r!=null&&this.set(r)}var Od;Object.keys?Od=Object.keys:Od=function(r){var n,o=[];for(n in r)Tt(r,n)&&o.push(n);return o};var H8={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function B8(r,n,o){var c=this._calendar[r]||this._calendar.sameElse;return So(c)?c.call(n,o):c}function wo(r,n,o){var c=""+Math.abs(r),f=n-c.length,p=r>=0;return(p?o?"+":"":"-")+Math.pow(10,Math.max(0,f)).toString().substr(1)+c}var oh=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,p1=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,vd={},nu={};function Ve(r,n,o,c){var f=c;typeof c=="string"&&(f=function(){return this[c]()}),r&&(nu[r]=f),n&&(nu[n[0]]=function(){return wo(f.apply(this,arguments),n[1],n[2])}),o&&(nu[o]=function(){return this.localeData().ordinal(f.apply(this,arguments),r)})}function F8(r){return r.match(/\[[\s\S]/)?r.replace(/^\[|\]$/g,""):r.replace(/\\/g,"")}function W8(r){var n=r.match(oh),o,c;for(o=0,c=n.length;o<c;o++)nu[n[o]]?n[o]=nu[n[o]]:n[o]=F8(n[o]);return function(f){var p="",b;for(b=0;b<c;b++)p+=So(n[b])?n[b].call(f,r):n[b];return p}}function m1(r,n){return r.isValid()?(n=a4(n,r.localeData()),vd[n]=vd[n]||W8(n),vd[n](r)):r.localeData().invalidDate()}function a4(r,n){var o=5;function c(f){return n.longDateFormat(f)||f}for(p1.lastIndex=0;o>=0&&p1.test(r);)r=r.replace(p1,c),p1.lastIndex=0,o-=1;return r}var U8={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function Y8(r){var n=this._longDateFormat[r],o=this._longDateFormat[r.toUpperCase()];return n||!o?n:(this._longDateFormat[r]=o.match(oh).map(function(c){return c==="MMMM"||c==="MM"||c==="DD"||c==="dddd"?c.slice(1):c}).join(""),this._longDateFormat[r])}var Z8="Invalid date";function V8(){return this._invalidDate}var G8="%d",q8=/\d{1,2}/;function j8(r){return this._ordinal.replace("%d",r)}var K8={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function X8(r,n,o,c){var f=this._relativeTime[o];return So(f)?f(r,n,o,c):f.replace(/%d/i,r)}function Q8(r,n){var o=this._relativeTime[r>0?"future":"past"];return So(o)?o(n):o.replace(/%s/i,n)}var w0={};function cn(r,n){var o=r.toLowerCase();w0[o]=w0[o+"s"]=w0[n]=r}function xi(r){return typeof r=="string"?w0[r]||w0[r.toLowerCase()]:void 0}function ah(r){var n={},o,c;for(c in r)Tt(r,c)&&(o=xi(c),o&&(n[o]=r[c]));return n}var s4={};function fn(r,n){s4[r]=n}function J8(r){var n=[],o;for(o in r)Tt(r,o)&&n.push({unit:o,priority:s4[o]});return n.sort(function(c,f){return c.priority-f.priority}),n}function U1(r){return r%4===0&&r%100!==0||r%400===0}function vi(r){return r<0?Math.ceil(r)||0:Math.floor(r)}function mt(r){var n=+r,o=0;return n!==0&&isFinite(n)&&(o=vi(n)),o}function gu(r,n){return function(o){return o!=null?(l4(this,r,o),Se.updateOffset(this,n),this):k1(this,r)}}function k1(r,n){return r.isValid()?r._d["get"+(r._isUTC?"UTC":"")+n]():NaN}function l4(r,n,o){r.isValid()&&!isNaN(o)&&(n==="FullYear"&&U1(r.year())&&r.month()===1&&r.date()===29?(o=mt(o),r._d["set"+(r._isUTC?"UTC":"")+n](o,r.month(),j1(o,r.month()))):r._d["set"+(r._isUTC?"UTC":"")+n](o))}function eb(r){return r=xi(r),So(this[r])?this[r]():this}function tb(r,n){if(typeof r=="object"){r=ah(r);var o=J8(r),c,f=o.length;for(c=0;c<f;c++)this[o[c].unit](r[o[c].unit])}else if(r=xi(r),So(this[r]))return this[r](n);return this}var u4=/\d/,ri=/\d\d/,c4=/\d{3}/,sh=/\d{4}/,Y1=/[+-]?\d{6}/,Jt=/\d\d?/,f4=/\d\d\d\d?/,d4=/\d\d\d\d\d\d?/,Z1=/\d{1,3}/,lh=/\d{1,4}/,V1=/[+-]?\d{1,6}/,vu=/\d+/,G1=/[+-]?\d+/,rb=/Z|[+-]\d\d:?\d\d/gi,q1=/Z|[+-]\d\d(?::?\d\d)?/gi,nb=/[+-]?\d+(\.\d{1,3})?/,W0=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,M1;M1={};function Oe(r,n,o){M1[r]=So(n)?n:function(c,f){return c&&o?o:n}}function ib(r,n){return Tt(M1,r)?M1[r](n._strict,n._locale):new RegExp(ob(r))}function ob(r){return Qn(r.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(n,o,c,f,p){return o||c||f||p}))}function Qn(r){return r.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var Td={};function Yt(r,n){var o,c=n,f;for(typeof r=="string"&&(r=[r]),la(n)&&(c=function(p,b){b[n]=mt(p)}),f=r.length,o=0;o<f;o++)Td[r[o]]=c}function U0(r,n){Yt(r,function(o,c,f,p){f._w=f._w||{},n(o,f._w,f,p)})}function ab(r,n,o){n!=null&&Tt(Td,r)&&Td[r](n,o._a,o,r)}var un=0,oa=1,mo=2,Nr=3,Ni=4,aa=5,Ys=6,sb=7,lb=8;function ub(r,n){return(r%n+n)%n}var yr;Array.prototype.indexOf?yr=Array.prototype.indexOf:yr=function(r){var n;for(n=0;n<this.length;++n)if(this[n]===r)return n;return-1};function j1(r,n){if(isNaN(r)||isNaN(n))return NaN;var o=ub(n,12);return r+=(n-o)/12,o===1?U1(r)?29:28:31-o%7%2}Ve("M",["MM",2],"Mo",function(){return this.month()+1});Ve("MMM",0,0,function(r){return this.localeData().monthsShort(this,r)});Ve("MMMM",0,0,function(r){return this.localeData().months(this,r)});cn("month","M");fn("month",8);Oe("M",Jt);Oe("MM",Jt,ri);Oe("MMM",function(r,n){return n.monthsShortRegex(r)});Oe("MMMM",function(r,n){return n.monthsRegex(r)});Yt(["M","MM"],function(r,n){n[oa]=mt(r)-1});Yt(["MMM","MMMM"],function(r,n,o,c){var f=o._locale.monthsParse(r,c,o._strict);f!=null?n[oa]=f:ht(o).invalidMonth=r});var cb="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),h4="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),p4=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,fb=W0,db=W0;function hb(r,n){return r?Bi(this._months)?this._months[r.month()]:this._months[(this._months.isFormat||p4).test(n)?"format":"standalone"][r.month()]:Bi(this._months)?this._months:this._months.standalone}function pb(r,n){return r?Bi(this._monthsShort)?this._monthsShort[r.month()]:this._monthsShort[p4.test(n)?"format":"standalone"][r.month()]:Bi(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function gb(r,n,o){var c,f,p,b=r.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],c=0;c<12;++c)p=_o([2e3,c]),this._shortMonthsParse[c]=this.monthsShort(p,"").toLocaleLowerCase(),this._longMonthsParse[c]=this.months(p,"").toLocaleLowerCase();return o?n==="MMM"?(f=yr.call(this._shortMonthsParse,b),f!==-1?f:null):(f=yr.call(this._longMonthsParse,b),f!==-1?f:null):n==="MMM"?(f=yr.call(this._shortMonthsParse,b),f!==-1?f:(f=yr.call(this._longMonthsParse,b),f!==-1?f:null)):(f=yr.call(this._longMonthsParse,b),f!==-1?f:(f=yr.call(this._shortMonthsParse,b),f!==-1?f:null))}function vb(r,n,o){var c,f,p;if(this._monthsParseExact)return gb.call(this,r,n,o);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),c=0;c<12;c++){if(f=_o([2e3,c]),o&&!this._longMonthsParse[c]&&(this._longMonthsParse[c]=new RegExp("^"+this.months(f,"").replace(".","")+"$","i"),this._shortMonthsParse[c]=new RegExp("^"+this.monthsShort(f,"").replace(".","")+"$","i")),!o&&!this._monthsParse[c]&&(p="^"+this.months(f,"")+"|^"+this.monthsShort(f,""),this._monthsParse[c]=new RegExp(p.replace(".",""),"i")),o&&n==="MMMM"&&this._longMonthsParse[c].test(r))return c;if(o&&n==="MMM"&&this._shortMonthsParse[c].test(r))return c;if(!o&&this._monthsParse[c].test(r))return c}}function g4(r,n){var o;if(!r.isValid())return r;if(typeof n=="string"){if(/^\d+$/.test(n))n=mt(n);else if(n=r.localeData().monthsParse(n),!la(n))return r}return o=Math.min(r.date(),j1(r.year(),n)),r._d["set"+(r._isUTC?"UTC":"")+"Month"](n,o),r}function v4(r){return r!=null?(g4(this,r),Se.updateOffset(this,!0),this):k1(this,"Month")}function bb(){return j1(this.year(),this.month())}function mb(r){return this._monthsParseExact?(Tt(this,"_monthsRegex")||b4.call(this),r?this._monthsShortStrictRegex:this._monthsShortRegex):(Tt(this,"_monthsShortRegex")||(this._monthsShortRegex=fb),this._monthsShortStrictRegex&&r?this._monthsShortStrictRegex:this._monthsShortRegex)}function yb(r){return this._monthsParseExact?(Tt(this,"_monthsRegex")||b4.call(this),r?this._monthsStrictRegex:this._monthsRegex):(Tt(this,"_monthsRegex")||(this._monthsRegex=db),this._monthsStrictRegex&&r?this._monthsStrictRegex:this._monthsRegex)}function b4(){function r(b,M){return M.length-b.length}var n=[],o=[],c=[],f,p;for(f=0;f<12;f++)p=_o([2e3,f]),n.push(this.monthsShort(p,"")),o.push(this.months(p,"")),c.push(this.months(p,"")),c.push(this.monthsShort(p,""));for(n.sort(r),o.sort(r),c.sort(r),f=0;f<12;f++)n[f]=Qn(n[f]),o[f]=Qn(o[f]);for(f=0;f<24;f++)c[f]=Qn(c[f]);this._monthsRegex=new RegExp("^("+c.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+n.join("|")+")","i")}Ve("Y",0,0,function(){var r=this.year();return r<=9999?wo(r,4):"+"+r});Ve(0,["YY",2],0,function(){return this.year()%100});Ve(0,["YYYY",4],0,"year");Ve(0,["YYYYY",5],0,"year");Ve(0,["YYYYYY",6,!0],0,"year");cn("year","y");fn("year",1);Oe("Y",G1);Oe("YY",Jt,ri);Oe("YYYY",lh,sh);Oe("YYYYY",V1,Y1);Oe("YYYYYY",V1,Y1);Yt(["YYYYY","YYYYYY"],un);Yt("YYYY",function(r,n){n[un]=r.length===2?Se.parseTwoDigitYear(r):mt(r)});Yt("YY",function(r,n){n[un]=Se.parseTwoDigitYear(r)});Yt("Y",function(r,n){n[un]=parseInt(r,10)});function x0(r){return U1(r)?366:365}Se.parseTwoDigitYear=function(r){return mt(r)+(mt(r)>68?1900:2e3)};var m4=gu("FullYear",!0);function Cb(){return U1(this.year())}function wb(r,n,o,c,f,p,b){var M;return r<100&&r>=0?(M=new Date(r+400,n,o,c,f,p,b),isFinite(M.getFullYear())&&M.setFullYear(r)):M=new Date(r,n,o,c,f,p,b),M}function O0(r){var n,o;return r<100&&r>=0?(o=Array.prototype.slice.call(arguments),o[0]=r+400,n=new Date(Date.UTC.apply(null,o)),isFinite(n.getUTCFullYear())&&n.setUTCFullYear(r)):n=new Date(Date.UTC.apply(null,arguments)),n}function O1(r,n,o){var c=7+n-o,f=(7+O0(r,0,c).getUTCDay()-n)%7;return-f+c-1}function y4(r,n,o,c,f){var p=(7+o-c)%7,b=O1(r,c,f),M=1+7*(n-1)+p+b,S,O;return M<=0?(S=r-1,O=x0(S)+M):M>x0(r)?(S=r+1,O=M-x0(r)):(S=r,O=M),{year:S,dayOfYear:O}}function T0(r,n,o){var c=O1(r.year(),n,o),f=Math.floor((r.dayOfYear()-c-1)/7)+1,p,b;return f<1?(b=r.year()-1,p=f+sa(b,n,o)):f>sa(r.year(),n,o)?(p=f-sa(r.year(),n,o),b=r.year()+1):(b=r.year(),p=f),{week:p,year:b}}function sa(r,n,o){var c=O1(r,n,o),f=O1(r+1,n,o);return(x0(r)-c+f)/7}Ve("w",["ww",2],"wo","week");Ve("W",["WW",2],"Wo","isoWeek");cn("week","w");cn("isoWeek","W");fn("week",5);fn("isoWeek",5);Oe("w",Jt);Oe("ww",Jt,ri);Oe("W",Jt);Oe("WW",Jt,ri);U0(["w","ww","W","WW"],function(r,n,o,c){n[c.substr(0,1)]=mt(r)});function xb(r){return T0(r,this._week.dow,this._week.doy).week}var zb={dow:0,doy:6};function Lb(){return this._week.dow}function _b(){return this._week.doy}function Sb(r){var n=this.localeData().week(this);return r==null?n:this.add((r-n)*7,"d")}function kb(r){var n=T0(this,1,4).week;return r==null?n:this.add((r-n)*7,"d")}Ve("d",0,"do","day");Ve("dd",0,0,function(r){return this.localeData().weekdaysMin(this,r)});Ve("ddd",0,0,function(r){return this.localeData().weekdaysShort(this,r)});Ve("dddd",0,0,function(r){return this.localeData().weekdays(this,r)});Ve("e",0,0,"weekday");Ve("E",0,0,"isoWeekday");cn("day","d");cn("weekday","e");cn("isoWeekday","E");fn("day",11);fn("weekday",11);fn("isoWeekday",11);Oe("d",Jt);Oe("e",Jt);Oe("E",Jt);Oe("dd",function(r,n){return n.weekdaysMinRegex(r)});Oe("ddd",function(r,n){return n.weekdaysShortRegex(r)});Oe("dddd",function(r,n){return n.weekdaysRegex(r)});U0(["dd","ddd","dddd"],function(r,n,o,c){var f=o._locale.weekdaysParse(r,c,o._strict);f!=null?n.d=f:ht(o).invalidWeekday=r});U0(["d","e","E"],function(r,n,o,c){n[c]=mt(r)});function Mb(r,n){return typeof r!="string"?r:isNaN(r)?(r=n.weekdaysParse(r),typeof r=="number"?r:null):parseInt(r,10)}function Ob(r,n){return typeof r=="string"?n.weekdaysParse(r)%7||7:isNaN(r)?null:r}function uh(r,n){return r.slice(n,7).concat(r.slice(0,n))}var Tb="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),C4="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Pb="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Ab=W0,Eb=W0,Ib=W0;function Db(r,n){var o=Bi(this._weekdays)?this._weekdays:this._weekdays[r&&r!==!0&&this._weekdays.isFormat.test(n)?"format":"standalone"];return r===!0?uh(o,this._week.dow):r?o[r.day()]:o}function Rb(r){return r===!0?uh(this._weekdaysShort,this._week.dow):r?this._weekdaysShort[r.day()]:this._weekdaysShort}function Nb(r){return r===!0?uh(this._weekdaysMin,this._week.dow):r?this._weekdaysMin[r.day()]:this._weekdaysMin}function $b(r,n,o){var c,f,p,b=r.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],c=0;c<7;++c)p=_o([2e3,1]).day(c),this._minWeekdaysParse[c]=this.weekdaysMin(p,"").toLocaleLowerCase(),this._shortWeekdaysParse[c]=this.weekdaysShort(p,"").toLocaleLowerCase(),this._weekdaysParse[c]=this.weekdays(p,"").toLocaleLowerCase();return o?n==="dddd"?(f=yr.call(this._weekdaysParse,b),f!==-1?f:null):n==="ddd"?(f=yr.call(this._shortWeekdaysParse,b),f!==-1?f:null):(f=yr.call(this._minWeekdaysParse,b),f!==-1?f:null):n==="dddd"?(f=yr.call(this._weekdaysParse,b),f!==-1||(f=yr.call(this._shortWeekdaysParse,b),f!==-1)?f:(f=yr.call(this._minWeekdaysParse,b),f!==-1?f:null)):n==="ddd"?(f=yr.call(this._shortWeekdaysParse,b),f!==-1||(f=yr.call(this._weekdaysParse,b),f!==-1)?f:(f=yr.call(this._minWeekdaysParse,b),f!==-1?f:null)):(f=yr.call(this._minWeekdaysParse,b),f!==-1||(f=yr.call(this._weekdaysParse,b),f!==-1)?f:(f=yr.call(this._shortWeekdaysParse,b),f!==-1?f:null))}function Hb(r,n,o){var c,f,p;if(this._weekdaysParseExact)return $b.call(this,r,n,o);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),c=0;c<7;c++){if(f=_o([2e3,1]).day(c),o&&!this._fullWeekdaysParse[c]&&(this._fullWeekdaysParse[c]=new RegExp("^"+this.weekdays(f,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[c]=new RegExp("^"+this.weekdaysShort(f,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[c]=new RegExp("^"+this.weekdaysMin(f,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[c]||(p="^"+this.weekdays(f,"")+"|^"+this.weekdaysShort(f,"")+"|^"+this.weekdaysMin(f,""),this._weekdaysParse[c]=new RegExp(p.replace(".",""),"i")),o&&n==="dddd"&&this._fullWeekdaysParse[c].test(r))return c;if(o&&n==="ddd"&&this._shortWeekdaysParse[c].test(r))return c;if(o&&n==="dd"&&this._minWeekdaysParse[c].test(r))return c;if(!o&&this._weekdaysParse[c].test(r))return c}}function Bb(r){if(!this.isValid())return r!=null?this:NaN;var n=this._isUTC?this._d.getUTCDay():this._d.getDay();return r!=null?(r=Mb(r,this.localeData()),this.add(r-n,"d")):n}function Fb(r){if(!this.isValid())return r!=null?this:NaN;var n=(this.day()+7-this.localeData()._week.dow)%7;return r==null?n:this.add(r-n,"d")}function Wb(r){if(!this.isValid())return r!=null?this:NaN;if(r!=null){var n=Ob(r,this.localeData());return this.day(this.day()%7?n:n-7)}else return this.day()||7}function Ub(r){return this._weekdaysParseExact?(Tt(this,"_weekdaysRegex")||ch.call(this),r?this._weekdaysStrictRegex:this._weekdaysRegex):(Tt(this,"_weekdaysRegex")||(this._weekdaysRegex=Ab),this._weekdaysStrictRegex&&r?this._weekdaysStrictRegex:this._weekdaysRegex)}function Yb(r){return this._weekdaysParseExact?(Tt(this,"_weekdaysRegex")||ch.call(this),r?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(Tt(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Eb),this._weekdaysShortStrictRegex&&r?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Zb(r){return this._weekdaysParseExact?(Tt(this,"_weekdaysRegex")||ch.call(this),r?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(Tt(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Ib),this._weekdaysMinStrictRegex&&r?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function ch(){function r(I,U){return U.length-I.length}var n=[],o=[],c=[],f=[],p,b,M,S,O;for(p=0;p<7;p++)b=_o([2e3,1]).day(p),M=Qn(this.weekdaysMin(b,"")),S=Qn(this.weekdaysShort(b,"")),O=Qn(this.weekdays(b,"")),n.push(M),o.push(S),c.push(O),f.push(M),f.push(S),f.push(O);n.sort(r),o.sort(r),c.sort(r),f.sort(r),this._weekdaysRegex=new RegExp("^("+f.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+c.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+n.join("|")+")","i")}function fh(){return this.hours()%12||12}function Vb(){return this.hours()||24}Ve("H",["HH",2],0,"hour");Ve("h",["hh",2],0,fh);Ve("k",["kk",2],0,Vb);Ve("hmm",0,0,function(){return""+fh.apply(this)+wo(this.minutes(),2)});Ve("hmmss",0,0,function(){return""+fh.apply(this)+wo(this.minutes(),2)+wo(this.seconds(),2)});Ve("Hmm",0,0,function(){return""+this.hours()+wo(this.minutes(),2)});Ve("Hmmss",0,0,function(){return""+this.hours()+wo(this.minutes(),2)+wo(this.seconds(),2)});function w4(r,n){Ve(r,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),n)})}w4("a",!0);w4("A",!1);cn("hour","h");fn("hour",13);function x4(r,n){return n._meridiemParse}Oe("a",x4);Oe("A",x4);Oe("H",Jt);Oe("h",Jt);Oe("k",Jt);Oe("HH",Jt,ri);Oe("hh",Jt,ri);Oe("kk",Jt,ri);Oe("hmm",f4);Oe("hmmss",d4);Oe("Hmm",f4);Oe("Hmmss",d4);Yt(["H","HH"],Nr);Yt(["k","kk"],function(r,n,o){var c=mt(r);n[Nr]=c===24?0:c});Yt(["a","A"],function(r,n,o){o._isPm=o._locale.isPM(r),o._meridiem=r});Yt(["h","hh"],function(r,n,o){n[Nr]=mt(r),ht(o).bigHour=!0});Yt("hmm",function(r,n,o){var c=r.length-2;n[Nr]=mt(r.substr(0,c)),n[Ni]=mt(r.substr(c)),ht(o).bigHour=!0});Yt("hmmss",function(r,n,o){var c=r.length-4,f=r.length-2;n[Nr]=mt(r.substr(0,c)),n[Ni]=mt(r.substr(c,2)),n[aa]=mt(r.substr(f)),ht(o).bigHour=!0});Yt("Hmm",function(r,n,o){var c=r.length-2;n[Nr]=mt(r.substr(0,c)),n[Ni]=mt(r.substr(c))});Yt("Hmmss",function(r,n,o){var c=r.length-4,f=r.length-2;n[Nr]=mt(r.substr(0,c)),n[Ni]=mt(r.substr(c,2)),n[aa]=mt(r.substr(f))});function Gb(r){return(r+"").toLowerCase().charAt(0)==="p"}var qb=/[ap]\.?m?\.?/i,jb=gu("Hours",!0);function Kb(r,n,o){return r>11?o?"pm":"PM":o?"am":"AM"}var z4={calendar:H8,longDateFormat:U8,invalidDate:Z8,ordinal:G8,dayOfMonthOrdinalParse:q8,relativeTime:K8,months:cb,monthsShort:h4,week:zb,weekdays:Tb,weekdaysMin:Pb,weekdaysShort:C4,meridiemParse:qb},nr={},g0={},P0;function Xb(r,n){var o,c=Math.min(r.length,n.length);for(o=0;o<c;o+=1)if(r[o]!==n[o])return o;return c}function Hp(r){return r&&r.toLowerCase().replace("_","-")}function Qb(r){for(var n=0,o,c,f,p;n<r.length;){for(p=Hp(r[n]).split("-"),o=p.length,c=Hp(r[n+1]),c=c?c.split("-"):null;o>0;){if(f=K1(p.slice(0,o).join("-")),f)return f;if(c&&c.length>=o&&Xb(p,c)>=o-1)break;o--}n++}return P0}function Jb(r){return r.match("^[^/\\\\]*$")!=null}function K1(r){var n=null,o;if(nr[r]===void 0&&typeof module!="undefined"&&module&&module.exports&&Jb(r))try{n=P0._abbr,o=require,o("./locale/"+r),Ka(n)}catch{nr[r]=null}return nr[r]}function Ka(r,n){var o;return r&&(En(n)?o=ca(r):o=dh(r,n),o?P0=o:typeof console!="undefined"&&console.warn&&console.warn("Locale "+r+" not found. Did you forget to load it?")),P0._abbr}function dh(r,n){if(n!==null){var o,c=z4;if(n.abbr=r,nr[r]!=null)o4("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),c=nr[r]._config;else if(n.parentLocale!=null)if(nr[n.parentLocale]!=null)c=nr[n.parentLocale]._config;else if(o=K1(n.parentLocale),o!=null)c=o._config;else return g0[n.parentLocale]||(g0[n.parentLocale]=[]),g0[n.parentLocale].push({name:r,config:n}),null;return nr[r]=new ih(Md(c,n)),g0[r]&&g0[r].forEach(function(f){dh(f.name,f.config)}),Ka(r),nr[r]}else return delete nr[r],null}function em(r,n){if(n!=null){var o,c,f=z4;nr[r]!=null&&nr[r].parentLocale!=null?nr[r].set(Md(nr[r]._config,n)):(c=K1(r),c!=null&&(f=c._config),n=Md(f,n),c==null&&(n.abbr=r),o=new ih(n),o.parentLocale=nr[r],nr[r]=o),Ka(r)}else nr[r]!=null&&(nr[r].parentLocale!=null?(nr[r]=nr[r].parentLocale,r===Ka()&&Ka(r)):nr[r]!=null&&delete nr[r]);return nr[r]}function ca(r){var n;if(r&&r._locale&&r._locale._abbr&&(r=r._locale._abbr),!r)return P0;if(!Bi(r)){if(n=K1(r),n)return n;r=[r]}return Qb(r)}function tm(){return Od(nr)}function hh(r){var n,o=r._a;return o&&ht(r).overflow===-2&&(n=o[oa]<0||o[oa]>11?oa:o[mo]<1||o[mo]>j1(o[un],o[oa])?mo:o[Nr]<0||o[Nr]>24||o[Nr]===24&&(o[Ni]!==0||o[aa]!==0||o[Ys]!==0)?Nr:o[Ni]<0||o[Ni]>59?Ni:o[aa]<0||o[aa]>59?aa:o[Ys]<0||o[Ys]>999?Ys:-1,ht(r)._overflowDayOfYear&&(n<un||n>mo)&&(n=mo),ht(r)._overflowWeeks&&n===-1&&(n=sb),ht(r)._overflowWeekday&&n===-1&&(n=lb),ht(r).overflow=n),r}var rm=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,nm=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,im=/Z|[+-]\d\d(?::?\d\d)?/,g1=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],bd=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],om=/^\/?Date\((-?\d+)/i,am=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,sm={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function L4(r){var n,o,c=r._i,f=rm.exec(c)||nm.exec(c),p,b,M,S,O=g1.length,I=bd.length;if(f){for(ht(r).iso=!0,n=0,o=O;n<o;n++)if(g1[n][1].exec(f[1])){b=g1[n][0],p=g1[n][2]!==!1;break}if(b==null){r._isValid=!1;return}if(f[3]){for(n=0,o=I;n<o;n++)if(bd[n][1].exec(f[3])){M=(f[2]||" ")+bd[n][0];break}if(M==null){r._isValid=!1;return}}if(!p&&M!=null){r._isValid=!1;return}if(f[4])if(im.exec(f[4]))S="Z";else{r._isValid=!1;return}r._f=b+(M||"")+(S||""),gh(r)}else r._isValid=!1}function lm(r,n,o,c,f,p){var b=[um(r),h4.indexOf(n),parseInt(o,10),parseInt(c,10),parseInt(f,10)];return p&&b.push(parseInt(p,10)),b}function um(r){var n=parseInt(r,10);return n<=49?2e3+n:n<=999?1900+n:n}function cm(r){return r.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function fm(r,n,o){if(r){var c=C4.indexOf(r),f=new Date(n[0],n[1],n[2]).getDay();if(c!==f)return ht(o).weekdayMismatch=!0,o._isValid=!1,!1}return!0}function dm(r,n,o){if(r)return sm[r];if(n)return 0;var c=parseInt(o,10),f=c%100,p=(c-f)/100;return p*60+f}function _4(r){var n=am.exec(cm(r._i)),o;if(n){if(o=lm(n[4],n[3],n[2],n[5],n[6],n[7]),!fm(n[1],o,r))return;r._a=o,r._tzm=dm(n[8],n[9],n[10]),r._d=O0.apply(null,r._a),r._d.setUTCMinutes(r._d.getUTCMinutes()-r._tzm),ht(r).rfc2822=!0}else r._isValid=!1}function hm(r){var n=om.exec(r._i);if(n!==null){r._d=new Date(+n[1]);return}if(L4(r),r._isValid===!1)delete r._isValid;else return;if(_4(r),r._isValid===!1)delete r._isValid;else return;r._strict?r._isValid=!1:Se.createFromInputFallback(r)}Se.createFromInputFallback=wi("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(r){r._d=new Date(r._i+(r._useUTC?" UTC":""))});function eu(r,n,o){return r!=null?r:n!=null?n:o}function pm(r){var n=new Date(Se.now());return r._useUTC?[n.getUTCFullYear(),n.getUTCMonth(),n.getUTCDate()]:[n.getFullYear(),n.getMonth(),n.getDate()]}function ph(r){var n,o,c=[],f,p,b;if(!r._d){for(f=pm(r),r._w&&r._a[mo]==null&&r._a[oa]==null&&gm(r),r._dayOfYear!=null&&(b=eu(r._a[un],f[un]),(r._dayOfYear>x0(b)||r._dayOfYear===0)&&(ht(r)._overflowDayOfYear=!0),o=O0(b,0,r._dayOfYear),r._a[oa]=o.getUTCMonth(),r._a[mo]=o.getUTCDate()),n=0;n<3&&r._a[n]==null;++n)r._a[n]=c[n]=f[n];for(;n<7;n++)r._a[n]=c[n]=r._a[n]==null?n===2?1:0:r._a[n];r._a[Nr]===24&&r._a[Ni]===0&&r._a[aa]===0&&r._a[Ys]===0&&(r._nextDay=!0,r._a[Nr]=0),r._d=(r._useUTC?O0:wb).apply(null,c),p=r._useUTC?r._d.getUTCDay():r._d.getDay(),r._tzm!=null&&r._d.setUTCMinutes(r._d.getUTCMinutes()-r._tzm),r._nextDay&&(r._a[Nr]=24),r._w&&typeof r._w.d!="undefined"&&r._w.d!==p&&(ht(r).weekdayMismatch=!0)}}function gm(r){var n,o,c,f,p,b,M,S,O;n=r._w,n.GG!=null||n.W!=null||n.E!=null?(p=1,b=4,o=eu(n.GG,r._a[un],T0(Qt(),1,4).year),c=eu(n.W,1),f=eu(n.E,1),(f<1||f>7)&&(S=!0)):(p=r._locale._week.dow,b=r._locale._week.doy,O=T0(Qt(),p,b),o=eu(n.gg,r._a[un],O.year),c=eu(n.w,O.week),n.d!=null?(f=n.d,(f<0||f>6)&&(S=!0)):n.e!=null?(f=n.e+p,(n.e<0||n.e>6)&&(S=!0)):f=p),c<1||c>sa(o,p,b)?ht(r)._overflowWeeks=!0:S!=null?ht(r)._overflowWeekday=!0:(M=y4(o,c,f,p,b),r._a[un]=M.year,r._dayOfYear=M.dayOfYear)}Se.ISO_8601=function(){};Se.RFC_2822=function(){};function gh(r){if(r._f===Se.ISO_8601){L4(r);return}if(r._f===Se.RFC_2822){_4(r);return}r._a=[],ht(r).empty=!0;var n=""+r._i,o,c,f,p,b,M=n.length,S=0,O,I;for(f=a4(r._f,r._locale).match(oh)||[],I=f.length,o=0;o<I;o++)p=f[o],c=(n.match(ib(p,r))||[])[0],c&&(b=n.substr(0,n.indexOf(c)),b.length>0&&ht(r).unusedInput.push(b),n=n.slice(n.indexOf(c)+c.length),S+=c.length),nu[p]?(c?ht(r).empty=!1:ht(r).unusedTokens.push(p),ab(p,c,r)):r._strict&&!c&&ht(r).unusedTokens.push(p);ht(r).charsLeftOver=M-S,n.length>0&&ht(r).unusedInput.push(n),r._a[Nr]<=12&&ht(r).bigHour===!0&&r._a[Nr]>0&&(ht(r).bigHour=void 0),ht(r).parsedDateParts=r._a.slice(0),ht(r).meridiem=r._meridiem,r._a[Nr]=vm(r._locale,r._a[Nr],r._meridiem),O=ht(r).era,O!==null&&(r._a[un]=r._locale.erasConvertYear(O,r._a[un])),ph(r),hh(r)}function vm(r,n,o){var c;return o==null?n:r.meridiemHour!=null?r.meridiemHour(n,o):(r.isPM!=null&&(c=r.isPM(o),c&&n<12&&(n+=12),!c&&n===12&&(n=0)),n)}function bm(r){var n,o,c,f,p,b,M=!1,S=r._f.length;if(S===0){ht(r).invalidFormat=!0,r._d=new Date(NaN);return}for(f=0;f<S;f++)p=0,b=!1,n=nh({},r),r._useUTC!=null&&(n._useUTC=r._useUTC),n._f=r._f[f],gh(n),rh(n)&&(b=!0),p+=ht(n).charsLeftOver,p+=ht(n).unusedTokens.length*10,ht(n).score=p,M?p<c&&(c=p,o=n):(c==null||p<c||b)&&(c=p,o=n,b&&(M=!0));qa(r,o||n)}function mm(r){if(!r._d){var n=ah(r._i),o=n.day===void 0?n.date:n.day;r._a=n4([n.year,n.month,o,n.hour,n.minute,n.second,n.millisecond],function(c){return c&&parseInt(c,10)}),ph(r)}}function ym(r){var n=new F0(hh(S4(r)));return n._nextDay&&(n.add(1,"d"),n._nextDay=void 0),n}function S4(r){var n=r._i,o=r._f;return r._locale=r._locale||ca(r._l),n===null||o===void 0&&n===""?W1({nullInput:!0}):(typeof n=="string"&&(r._i=n=r._locale.preparse(n)),Fi(n)?new F0(hh(n)):(B0(n)?r._d=n:Bi(o)?bm(r):o?gh(r):Cm(r),rh(r)||(r._d=null),r))}function Cm(r){var n=r._i;En(n)?r._d=new Date(Se.now()):B0(n)?r._d=new Date(n.valueOf()):typeof n=="string"?hm(r):Bi(n)?(r._a=n4(n.slice(0),function(o){return parseInt(o,10)}),ph(r)):Gs(n)?mm(r):la(n)?r._d=new Date(n):Se.createFromInputFallback(r)}function k4(r,n,o,c,f){var p={};return(n===!0||n===!1)&&(c=n,n=void 0),(o===!0||o===!1)&&(c=o,o=void 0),(Gs(r)&&th(r)||Bi(r)&&r.length===0)&&(r=void 0),p._isAMomentObject=!0,p._useUTC=p._isUTC=f,p._l=o,p._i=r,p._f=n,p._strict=c,ym(p)}function Qt(r,n,o,c){return k4(r,n,o,c,!1)}var wm=wi("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var r=Qt.apply(null,arguments);return this.isValid()&&r.isValid()?r<this?this:r:W1()}),xm=wi("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var r=Qt.apply(null,arguments);return this.isValid()&&r.isValid()?r>this?this:r:W1()});function M4(r,n){var o,c;if(n.length===1&&Bi(n[0])&&(n=n[0]),!n.length)return Qt();for(o=n[0],c=1;c<n.length;++c)(!n[c].isValid()||n[c][r](o))&&(o=n[c]);return o}function zm(){var r=[].slice.call(arguments,0);return M4("isBefore",r)}function Lm(){var r=[].slice.call(arguments,0);return M4("isAfter",r)}var _m=function(){return Date.now?Date.now():+new Date},v0=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Sm(r){var n,o=!1,c,f=v0.length;for(n in r)if(Tt(r,n)&&!(yr.call(v0,n)!==-1&&(r[n]==null||!isNaN(r[n]))))return!1;for(c=0;c<f;++c)if(r[v0[c]]){if(o)return!1;parseFloat(r[v0[c]])!==mt(r[v0[c]])&&(o=!0)}return!0}function km(){return this._isValid}function Mm(){return Ui(NaN)}function X1(r){var n=ah(r),o=n.year||0,c=n.quarter||0,f=n.month||0,p=n.week||n.isoWeek||0,b=n.day||0,M=n.hour||0,S=n.minute||0,O=n.second||0,I=n.millisecond||0;this._isValid=Sm(n),this._milliseconds=+I+O*1e3+S*6e4+M*1e3*60*60,this._days=+b+p*7,this._months=+f+c*3+o*12,this._data={},this._locale=ca(),this._bubble()}function y1(r){return r instanceof X1}function Pd(r){return r<0?Math.round(-1*r)*-1:Math.round(r)}function Om(r,n,o){var c=Math.min(r.length,n.length),f=Math.abs(r.length-n.length),p=0,b;for(b=0;b<c;b++)(o&&r[b]!==n[b]||!o&&mt(r[b])!==mt(n[b]))&&p++;return p+f}function O4(r,n){Ve(r,0,0,function(){var o=this.utcOffset(),c="+";return o<0&&(o=-o,c="-"),c+wo(~~(o/60),2)+n+wo(~~o%60,2)})}O4("Z",":");O4("ZZ","");Oe("Z",q1);Oe("ZZ",q1);Yt(["Z","ZZ"],function(r,n,o){o._useUTC=!0,o._tzm=vh(q1,r)});var Tm=/([\+\-]|\d\d)/gi;function vh(r,n){var o=(n||"").match(r),c,f,p;return o===null?null:(c=o[o.length-1]||[],f=(c+"").match(Tm)||["-",0,0],p=+(f[1]*60)+mt(f[2]),p===0?0:f[0]==="+"?p:-p)}function bh(r,n){var o,c;return n._isUTC?(o=n.clone(),c=(Fi(r)||B0(r)?r.valueOf():Qt(r).valueOf())-o.valueOf(),o._d.setTime(o._d.valueOf()+c),Se.updateOffset(o,!1),o):Qt(r).local()}function Ad(r){return-Math.round(r._d.getTimezoneOffset())}Se.updateOffset=function(){};function Pm(r,n,o){var c=this._offset||0,f;if(!this.isValid())return r!=null?this:NaN;if(r!=null){if(typeof r=="string"){if(r=vh(q1,r),r===null)return this}else Math.abs(r)<16&&!o&&(r=r*60);return!this._isUTC&&n&&(f=Ad(this)),this._offset=r,this._isUTC=!0,f!=null&&this.add(f,"m"),c!==r&&(!n||this._changeInProgress?A4(this,Ui(r-c,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,Se.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?c:Ad(this)}function Am(r,n){return r!=null?(typeof r!="string"&&(r=-r),this.utcOffset(r,n),this):-this.utcOffset()}function Em(r){return this.utcOffset(0,r)}function Im(r){return this._isUTC&&(this.utcOffset(0,r),this._isUTC=!1,r&&this.subtract(Ad(this),"m")),this}function Dm(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var r=vh(rb,this._i);r!=null?this.utcOffset(r):this.utcOffset(0,!0)}return this}function Rm(r){return this.isValid()?(r=r?Qt(r).utcOffset():0,(this.utcOffset()-r)%60===0):!1}function Nm(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function $m(){if(!En(this._isDSTShifted))return this._isDSTShifted;var r={},n;return nh(r,this),r=S4(r),r._a?(n=r._isUTC?_o(r._a):Qt(r._a),this._isDSTShifted=this.isValid()&&Om(r._a,n.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function Hm(){return this.isValid()?!this._isUTC:!1}function Bm(){return this.isValid()?this._isUTC:!1}function T4(){return this.isValid()?this._isUTC&&this._offset===0:!1}var Fm=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Wm=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Ui(r,n){var o=r,c=null,f,p,b;return y1(r)?o={ms:r._milliseconds,d:r._days,M:r._months}:la(r)||!isNaN(+r)?(o={},n?o[n]=+r:o.milliseconds=+r):(c=Fm.exec(r))?(f=c[1]==="-"?-1:1,o={y:0,d:mt(c[mo])*f,h:mt(c[Nr])*f,m:mt(c[Ni])*f,s:mt(c[aa])*f,ms:mt(Pd(c[Ys]*1e3))*f}):(c=Wm.exec(r))?(f=c[1]==="-"?-1:1,o={y:Ws(c[2],f),M:Ws(c[3],f),w:Ws(c[4],f),d:Ws(c[5],f),h:Ws(c[6],f),m:Ws(c[7],f),s:Ws(c[8],f)}):o==null?o={}:typeof o=="object"&&("from"in o||"to"in o)&&(b=Um(Qt(o.from),Qt(o.to)),o={},o.ms=b.milliseconds,o.M=b.months),p=new X1(o),y1(r)&&Tt(r,"_locale")&&(p._locale=r._locale),y1(r)&&Tt(r,"_isValid")&&(p._isValid=r._isValid),p}Ui.fn=X1.prototype;Ui.invalid=Mm;function Ws(r,n){var o=r&&parseFloat(r.replace(",","."));return(isNaN(o)?0:o)*n}function Bp(r,n){var o={};return o.months=n.month()-r.month()+(n.year()-r.year())*12,r.clone().add(o.months,"M").isAfter(n)&&--o.months,o.milliseconds=+n-+r.clone().add(o.months,"M"),o}function Um(r,n){var o;return r.isValid()&&n.isValid()?(n=bh(n,r),r.isBefore(n)?o=Bp(r,n):(o=Bp(n,r),o.milliseconds=-o.milliseconds,o.months=-o.months),o):{milliseconds:0,months:0}}function P4(r,n){return function(o,c){var f,p;return c!==null&&!isNaN(+c)&&(o4(n,"moment()."+n+"(period, number) is deprecated. Please use moment()."+n+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),p=o,o=c,c=p),f=Ui(o,c),A4(this,f,r),this}}function A4(r,n,o,c){var f=n._milliseconds,p=Pd(n._days),b=Pd(n._months);!r.isValid()||(c=c==null?!0:c,b&&g4(r,k1(r,"Month")+b*o),p&&l4(r,"Date",k1(r,"Date")+p*o),f&&r._d.setTime(r._d.valueOf()+f*o),c&&Se.updateOffset(r,p||b))}var Ym=P4(1,"add"),Zm=P4(-1,"subtract");function E4(r){return typeof r=="string"||r instanceof String}function Vm(r){return Fi(r)||B0(r)||E4(r)||la(r)||qm(r)||Gm(r)||r===null||r===void 0}function Gm(r){var n=Gs(r)&&!th(r),o=!1,c=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],f,p,b=c.length;for(f=0;f<b;f+=1)p=c[f],o=o||Tt(r,p);return n&&o}function qm(r){var n=Bi(r),o=!1;return n&&(o=r.filter(function(c){return!la(c)&&E4(r)}).length===0),n&&o}function jm(r){var n=Gs(r)&&!th(r),o=!1,c=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],f,p;for(f=0;f<c.length;f+=1)p=c[f],o=o||Tt(r,p);return n&&o}function Km(r,n){var o=r.diff(n,"days",!0);return o<-6?"sameElse":o<-1?"lastWeek":o<0?"lastDay":o<1?"sameDay":o<2?"nextDay":o<7?"nextWeek":"sameElse"}function Xm(r,n){arguments.length===1&&(arguments[0]?Vm(arguments[0])?(r=arguments[0],n=void 0):jm(arguments[0])&&(n=arguments[0],r=void 0):(r=void 0,n=void 0));var o=r||Qt(),c=bh(o,this).startOf("day"),f=Se.calendarFormat(this,c)||"sameElse",p=n&&(So(n[f])?n[f].call(this,o):n[f]);return this.format(p||this.localeData().calendar(f,this,Qt(o)))}function Qm(){return new F0(this)}function Jm(r,n){var o=Fi(r)?r:Qt(r);return this.isValid()&&o.isValid()?(n=xi(n)||"millisecond",n==="millisecond"?this.valueOf()>o.valueOf():o.valueOf()<this.clone().startOf(n).valueOf()):!1}function ey(r,n){var o=Fi(r)?r:Qt(r);return this.isValid()&&o.isValid()?(n=xi(n)||"millisecond",n==="millisecond"?this.valueOf()<o.valueOf():this.clone().endOf(n).valueOf()<o.valueOf()):!1}function ty(r,n,o,c){var f=Fi(r)?r:Qt(r),p=Fi(n)?n:Qt(n);return this.isValid()&&f.isValid()&&p.isValid()?(c=c||"()",(c[0]==="("?this.isAfter(f,o):!this.isBefore(f,o))&&(c[1]===")"?this.isBefore(p,o):!this.isAfter(p,o))):!1}function ry(r,n){var o=Fi(r)?r:Qt(r),c;return this.isValid()&&o.isValid()?(n=xi(n)||"millisecond",n==="millisecond"?this.valueOf()===o.valueOf():(c=o.valueOf(),this.clone().startOf(n).valueOf()<=c&&c<=this.clone().endOf(n).valueOf())):!1}function ny(r,n){return this.isSame(r,n)||this.isAfter(r,n)}function iy(r,n){return this.isSame(r,n)||this.isBefore(r,n)}function oy(r,n,o){var c,f,p;if(!this.isValid())return NaN;if(c=bh(r,this),!c.isValid())return NaN;switch(f=(c.utcOffset()-this.utcOffset())*6e4,n=xi(n),n){case"year":p=C1(this,c)/12;break;case"month":p=C1(this,c);break;case"quarter":p=C1(this,c)/3;break;case"second":p=(this-c)/1e3;break;case"minute":p=(this-c)/6e4;break;case"hour":p=(this-c)/36e5;break;case"day":p=(this-c-f)/864e5;break;case"week":p=(this-c-f)/6048e5;break;default:p=this-c}return o?p:vi(p)}function C1(r,n){if(r.date()<n.date())return-C1(n,r);var o=(n.year()-r.year())*12+(n.month()-r.month()),c=r.clone().add(o,"months"),f,p;return n-c<0?(f=r.clone().add(o-1,"months"),p=(n-c)/(c-f)):(f=r.clone().add(o+1,"months"),p=(n-c)/(f-c)),-(o+p)||0}Se.defaultFormat="YYYY-MM-DDTHH:mm:ssZ";Se.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function ay(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function sy(r){if(!this.isValid())return null;var n=r!==!0,o=n?this.clone().utc():this;return o.year()<0||o.year()>9999?m1(o,n?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):So(Date.prototype.toISOString)?n?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",m1(o,"Z")):m1(o,n?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function ly(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var r="moment",n="",o,c,f,p;return this.isLocal()||(r=this.utcOffset()===0?"moment.utc":"moment.parseZone",n="Z"),o="["+r+'("]',c=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",f="-MM-DD[T]HH:mm:ss.SSS",p=n+'[")]',this.format(o+c+f+p)}function uy(r){r||(r=this.isUtc()?Se.defaultFormatUtc:Se.defaultFormat);var n=m1(this,r);return this.localeData().postformat(n)}function cy(r,n){return this.isValid()&&(Fi(r)&&r.isValid()||Qt(r).isValid())?Ui({to:this,from:r}).locale(this.locale()).humanize(!n):this.localeData().invalidDate()}function fy(r){return this.from(Qt(),r)}function dy(r,n){return this.isValid()&&(Fi(r)&&r.isValid()||Qt(r).isValid())?Ui({from:this,to:r}).locale(this.locale()).humanize(!n):this.localeData().invalidDate()}function hy(r){return this.to(Qt(),r)}function I4(r){var n;return r===void 0?this._locale._abbr:(n=ca(r),n!=null&&(this._locale=n),this)}var D4=wi("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(r){return r===void 0?this.localeData():this.locale(r)});function R4(){return this._locale}var T1=1e3,iu=60*T1,P1=60*iu,N4=(365*400+97)*24*P1;function ou(r,n){return(r%n+n)%n}function $4(r,n,o){return r<100&&r>=0?new Date(r+400,n,o)-N4:new Date(r,n,o).valueOf()}function H4(r,n,o){return r<100&&r>=0?Date.UTC(r+400,n,o)-N4:Date.UTC(r,n,o)}function py(r){var n,o;if(r=xi(r),r===void 0||r==="millisecond"||!this.isValid())return this;switch(o=this._isUTC?H4:$4,r){case"year":n=o(this.year(),0,1);break;case"quarter":n=o(this.year(),this.month()-this.month()%3,1);break;case"month":n=o(this.year(),this.month(),1);break;case"week":n=o(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":n=o(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":n=o(this.year(),this.month(),this.date());break;case"hour":n=this._d.valueOf(),n-=ou(n+(this._isUTC?0:this.utcOffset()*iu),P1);break;case"minute":n=this._d.valueOf(),n-=ou(n,iu);break;case"second":n=this._d.valueOf(),n-=ou(n,T1);break}return this._d.setTime(n),Se.updateOffset(this,!0),this}function gy(r){var n,o;if(r=xi(r),r===void 0||r==="millisecond"||!this.isValid())return this;switch(o=this._isUTC?H4:$4,r){case"year":n=o(this.year()+1,0,1)-1;break;case"quarter":n=o(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":n=o(this.year(),this.month()+1,1)-1;break;case"week":n=o(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":n=o(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":n=o(this.year(),this.month(),this.date()+1)-1;break;case"hour":n=this._d.valueOf(),n+=P1-ou(n+(this._isUTC?0:this.utcOffset()*iu),P1)-1;break;case"minute":n=this._d.valueOf(),n+=iu-ou(n,iu)-1;break;case"second":n=this._d.valueOf(),n+=T1-ou(n,T1)-1;break}return this._d.setTime(n),Se.updateOffset(this,!0),this}function vy(){return this._d.valueOf()-(this._offset||0)*6e4}function by(){return Math.floor(this.valueOf()/1e3)}function my(){return new Date(this.valueOf())}function yy(){var r=this;return[r.year(),r.month(),r.date(),r.hour(),r.minute(),r.second(),r.millisecond()]}function Cy(){var r=this;return{years:r.year(),months:r.month(),date:r.date(),hours:r.hours(),minutes:r.minutes(),seconds:r.seconds(),milliseconds:r.milliseconds()}}function wy(){return this.isValid()?this.toISOString():null}function xy(){return rh(this)}function zy(){return qa({},ht(this))}function Ly(){return ht(this).overflow}function _y(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}Ve("N",0,0,"eraAbbr");Ve("NN",0,0,"eraAbbr");Ve("NNN",0,0,"eraAbbr");Ve("NNNN",0,0,"eraName");Ve("NNNNN",0,0,"eraNarrow");Ve("y",["y",1],"yo","eraYear");Ve("y",["yy",2],0,"eraYear");Ve("y",["yyy",3],0,"eraYear");Ve("y",["yyyy",4],0,"eraYear");Oe("N",mh);Oe("NN",mh);Oe("NNN",mh);Oe("NNNN",Ry);Oe("NNNNN",Ny);Yt(["N","NN","NNN","NNNN","NNNNN"],function(r,n,o,c){var f=o._locale.erasParse(r,c,o._strict);f?ht(o).era=f:ht(o).invalidEra=r});Oe("y",vu);Oe("yy",vu);Oe("yyy",vu);Oe("yyyy",vu);Oe("yo",$y);Yt(["y","yy","yyy","yyyy"],un);Yt(["yo"],function(r,n,o,c){var f;o._locale._eraYearOrdinalRegex&&(f=r.match(o._locale._eraYearOrdinalRegex)),o._locale.eraYearOrdinalParse?n[un]=o._locale.eraYearOrdinalParse(r,f):n[un]=parseInt(r,10)});function Sy(r,n){var o,c,f,p=this._eras||ca("en")._eras;for(o=0,c=p.length;o<c;++o){switch(typeof p[o].since){case"string":f=Se(p[o].since).startOf("day"),p[o].since=f.valueOf();break}switch(typeof p[o].until){case"undefined":p[o].until=1/0;break;case"string":f=Se(p[o].until).startOf("day").valueOf(),p[o].until=f.valueOf();break}}return p}function ky(r,n,o){var c,f,p=this.eras(),b,M,S;for(r=r.toUpperCase(),c=0,f=p.length;c<f;++c)if(b=p[c].name.toUpperCase(),M=p[c].abbr.toUpperCase(),S=p[c].narrow.toUpperCase(),o)switch(n){case"N":case"NN":case"NNN":if(M===r)return p[c];break;case"NNNN":if(b===r)return p[c];break;case"NNNNN":if(S===r)return p[c];break}else if([b,M,S].indexOf(r)>=0)return p[c]}function My(r,n){var o=r.since<=r.until?1:-1;return n===void 0?Se(r.since).year():Se(r.since).year()+(n-r.offset)*o}function Oy(){var r,n,o,c=this.localeData().eras();for(r=0,n=c.length;r<n;++r)if(o=this.clone().startOf("day").valueOf(),c[r].since<=o&&o<=c[r].until||c[r].until<=o&&o<=c[r].since)return c[r].name;return""}function Ty(){var r,n,o,c=this.localeData().eras();for(r=0,n=c.length;r<n;++r)if(o=this.clone().startOf("day").valueOf(),c[r].since<=o&&o<=c[r].until||c[r].until<=o&&o<=c[r].since)return c[r].narrow;return""}function Py(){var r,n,o,c=this.localeData().eras();for(r=0,n=c.length;r<n;++r)if(o=this.clone().startOf("day").valueOf(),c[r].since<=o&&o<=c[r].until||c[r].until<=o&&o<=c[r].since)return c[r].abbr;return""}function Ay(){var r,n,o,c,f=this.localeData().eras();for(r=0,n=f.length;r<n;++r)if(o=f[r].since<=f[r].until?1:-1,c=this.clone().startOf("day").valueOf(),f[r].since<=c&&c<=f[r].until||f[r].until<=c&&c<=f[r].since)return(this.year()-Se(f[r].since).year())*o+f[r].offset;return this.year()}function Ey(r){return Tt(this,"_erasNameRegex")||yh.call(this),r?this._erasNameRegex:this._erasRegex}function Iy(r){return Tt(this,"_erasAbbrRegex")||yh.call(this),r?this._erasAbbrRegex:this._erasRegex}function Dy(r){return Tt(this,"_erasNarrowRegex")||yh.call(this),r?this._erasNarrowRegex:this._erasRegex}function mh(r,n){return n.erasAbbrRegex(r)}function Ry(r,n){return n.erasNameRegex(r)}function Ny(r,n){return n.erasNarrowRegex(r)}function $y(r,n){return n._eraYearOrdinalRegex||vu}function yh(){var r=[],n=[],o=[],c=[],f,p,b=this.eras();for(f=0,p=b.length;f<p;++f)n.push(Qn(b[f].name)),r.push(Qn(b[f].abbr)),o.push(Qn(b[f].narrow)),c.push(Qn(b[f].name)),c.push(Qn(b[f].abbr)),c.push(Qn(b[f].narrow));this._erasRegex=new RegExp("^("+c.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+n.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+r.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+o.join("|")+")","i")}Ve(0,["gg",2],0,function(){return this.weekYear()%100});Ve(0,["GG",2],0,function(){return this.isoWeekYear()%100});function Q1(r,n){Ve(0,[r,r.length],0,n)}Q1("gggg","weekYear");Q1("ggggg","weekYear");Q1("GGGG","isoWeekYear");Q1("GGGGG","isoWeekYear");cn("weekYear","gg");cn("isoWeekYear","GG");fn("weekYear",1);fn("isoWeekYear",1);Oe("G",G1);Oe("g",G1);Oe("GG",Jt,ri);Oe("gg",Jt,ri);Oe("GGGG",lh,sh);Oe("gggg",lh,sh);Oe("GGGGG",V1,Y1);Oe("ggggg",V1,Y1);U0(["gggg","ggggg","GGGG","GGGGG"],function(r,n,o,c){n[c.substr(0,2)]=mt(r)});U0(["gg","GG"],function(r,n,o,c){n[c]=Se.parseTwoDigitYear(r)});function Hy(r){return B4.call(this,r,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function By(r){return B4.call(this,r,this.isoWeek(),this.isoWeekday(),1,4)}function Fy(){return sa(this.year(),1,4)}function Wy(){return sa(this.isoWeekYear(),1,4)}function Uy(){var r=this.localeData()._week;return sa(this.year(),r.dow,r.doy)}function Yy(){var r=this.localeData()._week;return sa(this.weekYear(),r.dow,r.doy)}function B4(r,n,o,c,f){var p;return r==null?T0(this,c,f).year:(p=sa(r,c,f),n>p&&(n=p),Zy.call(this,r,n,o,c,f))}function Zy(r,n,o,c,f){var p=y4(r,n,o,c,f),b=O0(p.year,0,p.dayOfYear);return this.year(b.getUTCFullYear()),this.month(b.getUTCMonth()),this.date(b.getUTCDate()),this}Ve("Q",0,"Qo","quarter");cn("quarter","Q");fn("quarter",7);Oe("Q",u4);Yt("Q",function(r,n){n[oa]=(mt(r)-1)*3});function Vy(r){return r==null?Math.ceil((this.month()+1)/3):this.month((r-1)*3+this.month()%3)}Ve("D",["DD",2],"Do","date");cn("date","D");fn("date",9);Oe("D",Jt);Oe("DD",Jt,ri);Oe("Do",function(r,n){return r?n._dayOfMonthOrdinalParse||n._ordinalParse:n._dayOfMonthOrdinalParseLenient});Yt(["D","DD"],mo);Yt("Do",function(r,n){n[mo]=mt(r.match(Jt)[0])});var F4=gu("Date",!0);Ve("DDD",["DDDD",3],"DDDo","dayOfYear");cn("dayOfYear","DDD");fn("dayOfYear",4);Oe("DDD",Z1);Oe("DDDD",c4);Yt(["DDD","DDDD"],function(r,n,o){o._dayOfYear=mt(r)});function Gy(r){var n=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return r==null?n:this.add(r-n,"d")}Ve("m",["mm",2],0,"minute");cn("minute","m");fn("minute",14);Oe("m",Jt);Oe("mm",Jt,ri);Yt(["m","mm"],Ni);var qy=gu("Minutes",!1);Ve("s",["ss",2],0,"second");cn("second","s");fn("second",15);Oe("s",Jt);Oe("ss",Jt,ri);Yt(["s","ss"],aa);var jy=gu("Seconds",!1);Ve("S",0,0,function(){return~~(this.millisecond()/100)});Ve(0,["SS",2],0,function(){return~~(this.millisecond()/10)});Ve(0,["SSS",3],0,"millisecond");Ve(0,["SSSS",4],0,function(){return this.millisecond()*10});Ve(0,["SSSSS",5],0,function(){return this.millisecond()*100});Ve(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3});Ve(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4});Ve(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5});Ve(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6});cn("millisecond","ms");fn("millisecond",16);Oe("S",Z1,u4);Oe("SS",Z1,ri);Oe("SSS",Z1,c4);var ja,W4;for(ja="SSSS";ja.length<=9;ja+="S")Oe(ja,vu);function Ky(r,n){n[Ys]=mt(("0."+r)*1e3)}for(ja="S";ja.length<=9;ja+="S")Yt(ja,Ky);W4=gu("Milliseconds",!1);Ve("z",0,0,"zoneAbbr");Ve("zz",0,0,"zoneName");function Xy(){return this._isUTC?"UTC":""}function Qy(){return this._isUTC?"Coordinated Universal Time":""}var ue=F0.prototype;ue.add=Ym;ue.calendar=Xm;ue.clone=Qm;ue.diff=oy;ue.endOf=gy;ue.format=uy;ue.from=cy;ue.fromNow=fy;ue.to=dy;ue.toNow=hy;ue.get=eb;ue.invalidAt=Ly;ue.isAfter=Jm;ue.isBefore=ey;ue.isBetween=ty;ue.isSame=ry;ue.isSameOrAfter=ny;ue.isSameOrBefore=iy;ue.isValid=xy;ue.lang=D4;ue.locale=I4;ue.localeData=R4;ue.max=xm;ue.min=wm;ue.parsingFlags=zy;ue.set=tb;ue.startOf=py;ue.subtract=Zm;ue.toArray=yy;ue.toObject=Cy;ue.toDate=my;ue.toISOString=sy;ue.inspect=ly;typeof Symbol!="undefined"&&Symbol.for!=null&&(ue[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"});ue.toJSON=wy;ue.toString=ay;ue.unix=by;ue.valueOf=vy;ue.creationData=_y;ue.eraName=Oy;ue.eraNarrow=Ty;ue.eraAbbr=Py;ue.eraYear=Ay;ue.year=m4;ue.isLeapYear=Cb;ue.weekYear=Hy;ue.isoWeekYear=By;ue.quarter=ue.quarters=Vy;ue.month=v4;ue.daysInMonth=bb;ue.week=ue.weeks=Sb;ue.isoWeek=ue.isoWeeks=kb;ue.weeksInYear=Uy;ue.weeksInWeekYear=Yy;ue.isoWeeksInYear=Fy;ue.isoWeeksInISOWeekYear=Wy;ue.date=F4;ue.day=ue.days=Bb;ue.weekday=Fb;ue.isoWeekday=Wb;ue.dayOfYear=Gy;ue.hour=ue.hours=jb;ue.minute=ue.minutes=qy;ue.second=ue.seconds=jy;ue.millisecond=ue.milliseconds=W4;ue.utcOffset=Pm;ue.utc=Em;ue.local=Im;ue.parseZone=Dm;ue.hasAlignedHourOffset=Rm;ue.isDST=Nm;ue.isLocal=Hm;ue.isUtcOffset=Bm;ue.isUtc=T4;ue.isUTC=T4;ue.zoneAbbr=Xy;ue.zoneName=Qy;ue.dates=wi("dates accessor is deprecated. Use date instead.",F4);ue.months=wi("months accessor is deprecated. Use month instead",v4);ue.years=wi("years accessor is deprecated. Use year instead",m4);ue.zone=wi("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",Am);ue.isDSTShifted=wi("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",$m);function Jy(r){return Qt(r*1e3)}function eC(){return Qt.apply(null,arguments).parseZone()}function U4(r){return r}var Pt=ih.prototype;Pt.calendar=B8;Pt.longDateFormat=Y8;Pt.invalidDate=V8;Pt.ordinal=j8;Pt.preparse=U4;Pt.postformat=U4;Pt.relativeTime=X8;Pt.pastFuture=Q8;Pt.set=$8;Pt.eras=Sy;Pt.erasParse=ky;Pt.erasConvertYear=My;Pt.erasAbbrRegex=Iy;Pt.erasNameRegex=Ey;Pt.erasNarrowRegex=Dy;Pt.months=hb;Pt.monthsShort=pb;Pt.monthsParse=vb;Pt.monthsRegex=yb;Pt.monthsShortRegex=mb;Pt.week=xb;Pt.firstDayOfYear=_b;Pt.firstDayOfWeek=Lb;Pt.weekdays=Db;Pt.weekdaysMin=Nb;Pt.weekdaysShort=Rb;Pt.weekdaysParse=Hb;Pt.weekdaysRegex=Ub;Pt.weekdaysShortRegex=Yb;Pt.weekdaysMinRegex=Zb;Pt.isPM=Gb;Pt.meridiem=Kb;function A1(r,n,o,c){var f=ca(),p=_o().set(c,n);return f[o](p,r)}function Y4(r,n,o){if(la(r)&&(n=r,r=void 0),r=r||"",n!=null)return A1(r,n,o,"month");var c,f=[];for(c=0;c<12;c++)f[c]=A1(r,c,o,"month");return f}function Ch(r,n,o,c){typeof r=="boolean"?(la(n)&&(o=n,n=void 0),n=n||""):(n=r,o=n,r=!1,la(n)&&(o=n,n=void 0),n=n||"");var f=ca(),p=r?f._week.dow:0,b,M=[];if(o!=null)return A1(n,(o+p)%7,c,"day");for(b=0;b<7;b++)M[b]=A1(n,(b+p)%7,c,"day");return M}function tC(r,n){return Y4(r,n,"months")}function rC(r,n){return Y4(r,n,"monthsShort")}function nC(r,n,o){return Ch(r,n,o,"weekdays")}function iC(r,n,o){return Ch(r,n,o,"weekdaysShort")}function oC(r,n,o){return Ch(r,n,o,"weekdaysMin")}Ka("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(r){var n=r%10,o=mt(r%100/10)===1?"th":n===1?"st":n===2?"nd":n===3?"rd":"th";return r+o}});Se.lang=wi("moment.lang is deprecated. Use moment.locale instead.",Ka);Se.langData=wi("moment.langData is deprecated. Use moment.localeData instead.",ca);var ra=Math.abs;function aC(){var r=this._data;return this._milliseconds=ra(this._milliseconds),this._days=ra(this._days),this._months=ra(this._months),r.milliseconds=ra(r.milliseconds),r.seconds=ra(r.seconds),r.minutes=ra(r.minutes),r.hours=ra(r.hours),r.months=ra(r.months),r.years=ra(r.years),this}function Z4(r,n,o,c){var f=Ui(n,o);return r._milliseconds+=c*f._milliseconds,r._days+=c*f._days,r._months+=c*f._months,r._bubble()}function sC(r,n){return Z4(this,r,n,1)}function lC(r,n){return Z4(this,r,n,-1)}function Fp(r){return r<0?Math.floor(r):Math.ceil(r)}function uC(){var r=this._milliseconds,n=this._days,o=this._months,c=this._data,f,p,b,M,S;return r>=0&&n>=0&&o>=0||r<=0&&n<=0&&o<=0||(r+=Fp(Ed(o)+n)*864e5,n=0,o=0),c.milliseconds=r%1e3,f=vi(r/1e3),c.seconds=f%60,p=vi(f/60),c.minutes=p%60,b=vi(p/60),c.hours=b%24,n+=vi(b/24),S=vi(V4(n)),o+=S,n-=Fp(Ed(S)),M=vi(o/12),o%=12,c.days=n,c.months=o,c.years=M,this}function V4(r){return r*4800/146097}function Ed(r){return r*146097/4800}function cC(r){if(!this.isValid())return NaN;var n,o,c=this._milliseconds;if(r=xi(r),r==="month"||r==="quarter"||r==="year")switch(n=this._days+c/864e5,o=this._months+V4(n),r){case"month":return o;case"quarter":return o/3;case"year":return o/12}else switch(n=this._days+Math.round(Ed(this._months)),r){case"week":return n/7+c/6048e5;case"day":return n+c/864e5;case"hour":return n*24+c/36e5;case"minute":return n*1440+c/6e4;case"second":return n*86400+c/1e3;case"millisecond":return Math.floor(n*864e5)+c;default:throw new Error("Unknown unit "+r)}}function fC(){return this.isValid()?this._milliseconds+this._days*864e5+this._months%12*2592e6+mt(this._months/12)*31536e6:NaN}function fa(r){return function(){return this.as(r)}}var dC=fa("ms"),hC=fa("s"),pC=fa("m"),gC=fa("h"),vC=fa("d"),bC=fa("w"),mC=fa("M"),yC=fa("Q"),CC=fa("y");function wC(){return Ui(this)}function xC(r){return r=xi(r),this.isValid()?this[r+"s"]():NaN}function Qs(r){return function(){return this.isValid()?this._data[r]:NaN}}var zC=Qs("milliseconds"),LC=Qs("seconds"),_C=Qs("minutes"),SC=Qs("hours"),kC=Qs("days"),MC=Qs("months"),OC=Qs("years");function TC(){return vi(this.days()/7)}var na=Math.round,tu={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function PC(r,n,o,c,f){return f.relativeTime(n||1,!!o,r,c)}function AC(r,n,o,c){var f=Ui(r).abs(),p=na(f.as("s")),b=na(f.as("m")),M=na(f.as("h")),S=na(f.as("d")),O=na(f.as("M")),I=na(f.as("w")),U=na(f.as("y")),q=p<=o.ss&&["s",p]||p<o.s&&["ss",p]||b<=1&&["m"]||b<o.m&&["mm",b]||M<=1&&["h"]||M<o.h&&["hh",M]||S<=1&&["d"]||S<o.d&&["dd",S];return o.w!=null&&(q=q||I<=1&&["w"]||I<o.w&&["ww",I]),q=q||O<=1&&["M"]||O<o.M&&["MM",O]||U<=1&&["y"]||["yy",U],q[2]=n,q[3]=+r>0,q[4]=c,PC.apply(null,q)}function EC(r){return r===void 0?na:typeof r=="function"?(na=r,!0):!1}function IC(r,n){return tu[r]===void 0?!1:n===void 0?tu[r]:(tu[r]=n,r==="s"&&(tu.ss=n-1),!0)}function DC(r,n){if(!this.isValid())return this.localeData().invalidDate();var o=!1,c=tu,f,p;return typeof r=="object"&&(n=r,r=!1),typeof r=="boolean"&&(o=r),typeof n=="object"&&(c=Object.assign({},tu,n),n.s!=null&&n.ss==null&&(c.ss=n.s-1)),f=this.localeData(),p=AC(this,!o,c,f),o&&(p=f.pastFuture(+this,p)),f.postformat(p)}var md=Math.abs;function Xl(r){return(r>0)-(r<0)||+r}function J1(){if(!this.isValid())return this.localeData().invalidDate();var r=md(this._milliseconds)/1e3,n=md(this._days),o=md(this._months),c,f,p,b,M=this.asSeconds(),S,O,I,U;return M?(c=vi(r/60),f=vi(c/60),r%=60,c%=60,p=vi(o/12),o%=12,b=r?r.toFixed(3).replace(/\.?0+$/,""):"",S=M<0?"-":"",O=Xl(this._months)!==Xl(M)?"-":"",I=Xl(this._days)!==Xl(M)?"-":"",U=Xl(this._milliseconds)!==Xl(M)?"-":"",S+"P"+(p?O+p+"Y":"")+(o?O+o+"M":"")+(n?I+n+"D":"")+(f||c||r?"T":"")+(f?U+f+"H":"")+(c?U+c+"M":"")+(r?U+b+"S":"")):"P0D"}var St=X1.prototype;St.isValid=km;St.abs=aC;St.add=sC;St.subtract=lC;St.as=cC;St.asMilliseconds=dC;St.asSeconds=hC;St.asMinutes=pC;St.asHours=gC;St.asDays=vC;St.asWeeks=bC;St.asMonths=mC;St.asQuarters=yC;St.asYears=CC;St.valueOf=fC;St._bubble=uC;St.clone=wC;St.get=xC;St.milliseconds=zC;St.seconds=LC;St.minutes=_C;St.hours=SC;St.days=kC;St.weeks=TC;St.months=MC;St.years=OC;St.humanize=DC;St.toISOString=J1;St.toString=J1;St.toJSON=J1;St.locale=I4;St.localeData=R4;St.toIsoString=wi("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",J1);St.lang=D4;Ve("X",0,0,"unix");Ve("x",0,0,"valueOf");Oe("x",G1);Oe("X",nb);Yt("X",function(r,n,o){o._d=new Date(parseFloat(r)*1e3)});Yt("x",function(r,n,o){o._d=new Date(mt(r))});//! moment.js
2912
- Se.version="2.29.4";R8(Qt);Se.fn=ue;Se.min=zm;Se.max=Lm;Se.now=_m;Se.utc=_o;Se.unix=Jy;Se.months=tC;Se.isDate=B0;Se.locale=Ka;Se.invalid=W1;Se.duration=Ui;Se.isMoment=Fi;Se.weekdays=nC;Se.parseZone=eC;Se.localeData=ca;Se.isDuration=y1;Se.monthsShort=rC;Se.weekdaysMin=oC;Se.defineLocale=dh;Se.updateLocale=em;Se.locales=tm;Se.weekdaysShort=iC;Se.normalizeUnits=xi;Se.relativeTimeRounding=EC;Se.relativeTimeThreshold=IC;Se.calendarFormat=Km;Se.prototype=ue;Se.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};var RC=Object.defineProperty,NC=Object.getOwnPropertyDescriptor,ts=(r,n,o,c)=>{for(var f=c>1?void 0:c?NC(n,o):n,p=r.length-1,b;p>=0;p--)(b=r[p])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&RC(n,o,f),f};const G4=Ee("input-time"),q4="h:mma",j4=/^([1-9]|1[0-9]|2[0-3]):([0-5])([0-9])?(am?|pm?)?$/,K4=/^(1[3-9]|2[0-3]).*/,X4=/^(\d\d?)(am?|pm?)/,Q4=(r,n)=>({label:`${r}${n?` (${n})`:""}`,value:r}),$C=(r,n)=>{const c=Math.ceil(1440/r),f=Se().startOf("day");return Array(c).fill(null).map((p,b)=>{const S=(b>0?f.add(r,"minutes"):f).format(q4);return Q4(S,n)})},HC=(r,n)=>{const o=r.trim(),c=r.match(j4);if(!o||!c)return[];const[,f,p,b]=c,M=parseInt(f,10),S=M>12?`${M-12}`:`${M}`,O=`${p}${b||0}`,I=`${S}:${O}`;return["am","pm"].map(U=>Q4(`${I}${U}`,n))},BC=(r,{value:n})=>{const o=r.match(K4);if(!o||!n)return!1;const[,c]=o,f=`${parseInt(c,10)-12}`,p=r.substring(c.length).replace(":",""),b=`${f}:${p}`;return n.startsWith(b)&&n.endsWith("pm")},FC=(r,{value:n})=>{const o=r.match(X4);if(!o)return!1;const[,c,f]=o;return!!(n!=null&&n.replace(":00","").startsWith(`${c}${f}`))},WC=(...r)=>FC(...r)||BC(...r);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=$C(this.increment,this.suffix)}resetFreeformOptions(){this.freeformOptions=[]}handleCloseDropdown(){super.handleCloseDropdown(),this.resetFreeformOptions()}getItems(){return[...this.freeformOptions,...super.getItems()]}handleValueChange(){var r;this.valueLabel=(r=this.getItems().find(({value:n})=>n===this.value))==null?void 0:r.label,this.resetSearch()}isCustomQueryMatch(r){return this.query?WC(this.query,r):!1}handleNoResults(){if(this.hasQueryResults)return null;if(!this.isFreeform)return this.renderNoResultsMessage();this.freeformOptions=HC(this.query,this.suffix),this.hasResults=!!this.freeformOptions.length}renderFreeformOptions(){return this.isFreeform?this.hasQueryResults?this.renderOptionsData(this.freeformOptions):this.renderNoResultsMessage():null}renderDropdownContent(){return ee`
2948
+ `+new Error().stack),o=!1}return n.apply(this,arguments)},n)}var $p={};function o4(r,n){Se.deprecationHandler!=null&&Se.deprecationHandler(r,n),$p[r]||(i4(n),$p[r]=!0)}Se.suppressDeprecationWarnings=!1;Se.deprecationHandler=null;function So(r){return typeof Function!="undefined"&&r instanceof Function||Object.prototype.toString.call(r)==="[object Function]"}function $8(r){var n,o;for(o in r)Tt(r,o)&&(n=r[o],So(n)?this[o]=n:this["_"+o]=n);this._config=r,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function Od(r,n){var o=qa({},r),c;for(c in n)Tt(n,c)&&(Gs(r[c])&&Gs(n[c])?(o[c]={},qa(o[c],r[c]),qa(o[c],n[c])):n[c]!=null?o[c]=n[c]:delete o[c]);for(c in r)Tt(r,c)&&!Tt(n,c)&&Gs(r[c])&&(o[c]=qa({},o[c]));return o}function ih(r){r!=null&&this.set(r)}var Td;Object.keys?Td=Object.keys:Td=function(r){var n,o=[];for(n in r)Tt(r,n)&&o.push(n);return o};var H8={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function B8(r,n,o){var c=this._calendar[r]||this._calendar.sameElse;return So(c)?c.call(n,o):c}function wo(r,n,o){var c=""+Math.abs(r),f=n-c.length,p=r>=0;return(p?o?"+":"":"-")+Math.pow(10,Math.max(0,f)).toString().substr(1)+c}var oh=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,p1=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,bd={},nu={};function Ve(r,n,o,c){var f=c;typeof c=="string"&&(f=function(){return this[c]()}),r&&(nu[r]=f),n&&(nu[n[0]]=function(){return wo(f.apply(this,arguments),n[1],n[2])}),o&&(nu[o]=function(){return this.localeData().ordinal(f.apply(this,arguments),r)})}function F8(r){return r.match(/\[[\s\S]/)?r.replace(/^\[|\]$/g,""):r.replace(/\\/g,"")}function W8(r){var n=r.match(oh),o,c;for(o=0,c=n.length;o<c;o++)nu[n[o]]?n[o]=nu[n[o]]:n[o]=F8(n[o]);return function(f){var p="",b;for(b=0;b<c;b++)p+=So(n[b])?n[b].call(f,r):n[b];return p}}function m1(r,n){return r.isValid()?(n=a4(n,r.localeData()),bd[n]=bd[n]||W8(n),bd[n](r)):r.localeData().invalidDate()}function a4(r,n){var o=5;function c(f){return n.longDateFormat(f)||f}for(p1.lastIndex=0;o>=0&&p1.test(r);)r=r.replace(p1,c),p1.lastIndex=0,o-=1;return r}var U8={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function Y8(r){var n=this._longDateFormat[r],o=this._longDateFormat[r.toUpperCase()];return n||!o?n:(this._longDateFormat[r]=o.match(oh).map(function(c){return c==="MMMM"||c==="MM"||c==="DD"||c==="dddd"?c.slice(1):c}).join(""),this._longDateFormat[r])}var Z8="Invalid date";function V8(){return this._invalidDate}var G8="%d",q8=/\d{1,2}/;function j8(r){return this._ordinal.replace("%d",r)}var K8={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function X8(r,n,o,c){var f=this._relativeTime[o];return So(f)?f(r,n,o,c):f.replace(/%d/i,r)}function Q8(r,n){var o=this._relativeTime[r>0?"future":"past"];return So(o)?o(n):o.replace(/%s/i,n)}var w0={};function cn(r,n){var o=r.toLowerCase();w0[o]=w0[o+"s"]=w0[n]=r}function xi(r){return typeof r=="string"?w0[r]||w0[r.toLowerCase()]:void 0}function ah(r){var n={},o,c;for(c in r)Tt(r,c)&&(o=xi(c),o&&(n[o]=r[c]));return n}var s4={};function fn(r,n){s4[r]=n}function J8(r){var n=[],o;for(o in r)Tt(r,o)&&n.push({unit:o,priority:s4[o]});return n.sort(function(c,f){return c.priority-f.priority}),n}function Y1(r){return r%4===0&&r%100!==0||r%400===0}function vi(r){return r<0?Math.ceil(r)||0:Math.floor(r)}function mt(r){var n=+r,o=0;return n!==0&&isFinite(n)&&(o=vi(n)),o}function gu(r,n){return function(o){return o!=null?(l4(this,r,o),Se.updateOffset(this,n),this):M1(this,r)}}function M1(r,n){return r.isValid()?r._d["get"+(r._isUTC?"UTC":"")+n]():NaN}function l4(r,n,o){r.isValid()&&!isNaN(o)&&(n==="FullYear"&&Y1(r.year())&&r.month()===1&&r.date()===29?(o=mt(o),r._d["set"+(r._isUTC?"UTC":"")+n](o,r.month(),K1(o,r.month()))):r._d["set"+(r._isUTC?"UTC":"")+n](o))}function eb(r){return r=xi(r),So(this[r])?this[r]():this}function tb(r,n){if(typeof r=="object"){r=ah(r);var o=J8(r),c,f=o.length;for(c=0;c<f;c++)this[o[c].unit](r[o[c].unit])}else if(r=xi(r),So(this[r]))return this[r](n);return this}var u4=/\d/,ri=/\d\d/,c4=/\d{3}/,sh=/\d{4}/,Z1=/[+-]?\d{6}/,Jt=/\d\d?/,f4=/\d\d\d\d?/,d4=/\d\d\d\d\d\d?/,V1=/\d{1,3}/,lh=/\d{1,4}/,G1=/[+-]?\d{1,6}/,vu=/\d+/,q1=/[+-]?\d+/,rb=/Z|[+-]\d\d:?\d\d/gi,j1=/Z|[+-]\d\d(?::?\d\d)?/gi,nb=/[+-]?\d+(\.\d{1,3})?/,W0=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,k1;k1={};function Oe(r,n,o){k1[r]=So(n)?n:function(c,f){return c&&o?o:n}}function ib(r,n){return Tt(k1,r)?k1[r](n._strict,n._locale):new RegExp(ob(r))}function ob(r){return Qn(r.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(n,o,c,f,p){return o||c||f||p}))}function Qn(r){return r.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var Pd={};function Yt(r,n){var o,c=n,f;for(typeof r=="string"&&(r=[r]),la(n)&&(c=function(p,b){b[n]=mt(p)}),f=r.length,o=0;o<f;o++)Pd[r[o]]=c}function U0(r,n){Yt(r,function(o,c,f,p){f._w=f._w||{},n(o,f._w,f,p)})}function ab(r,n,o){n!=null&&Tt(Pd,r)&&Pd[r](n,o._a,o,r)}var un=0,oa=1,mo=2,Nr=3,Ni=4,aa=5,Ys=6,sb=7,lb=8;function ub(r,n){return(r%n+n)%n}var yr;Array.prototype.indexOf?yr=Array.prototype.indexOf:yr=function(r){var n;for(n=0;n<this.length;++n)if(this[n]===r)return n;return-1};function K1(r,n){if(isNaN(r)||isNaN(n))return NaN;var o=ub(n,12);return r+=(n-o)/12,o===1?Y1(r)?29:28:31-o%7%2}Ve("M",["MM",2],"Mo",function(){return this.month()+1});Ve("MMM",0,0,function(r){return this.localeData().monthsShort(this,r)});Ve("MMMM",0,0,function(r){return this.localeData().months(this,r)});cn("month","M");fn("month",8);Oe("M",Jt);Oe("MM",Jt,ri);Oe("MMM",function(r,n){return n.monthsShortRegex(r)});Oe("MMMM",function(r,n){return n.monthsRegex(r)});Yt(["M","MM"],function(r,n){n[oa]=mt(r)-1});Yt(["MMM","MMMM"],function(r,n,o,c){var f=o._locale.monthsParse(r,c,o._strict);f!=null?n[oa]=f:ht(o).invalidMonth=r});var cb="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),h4="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),p4=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,fb=W0,db=W0;function hb(r,n){return r?Bi(this._months)?this._months[r.month()]:this._months[(this._months.isFormat||p4).test(n)?"format":"standalone"][r.month()]:Bi(this._months)?this._months:this._months.standalone}function pb(r,n){return r?Bi(this._monthsShort)?this._monthsShort[r.month()]:this._monthsShort[p4.test(n)?"format":"standalone"][r.month()]:Bi(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function gb(r,n,o){var c,f,p,b=r.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],c=0;c<12;++c)p=_o([2e3,c]),this._shortMonthsParse[c]=this.monthsShort(p,"").toLocaleLowerCase(),this._longMonthsParse[c]=this.months(p,"").toLocaleLowerCase();return o?n==="MMM"?(f=yr.call(this._shortMonthsParse,b),f!==-1?f:null):(f=yr.call(this._longMonthsParse,b),f!==-1?f:null):n==="MMM"?(f=yr.call(this._shortMonthsParse,b),f!==-1?f:(f=yr.call(this._longMonthsParse,b),f!==-1?f:null)):(f=yr.call(this._longMonthsParse,b),f!==-1?f:(f=yr.call(this._shortMonthsParse,b),f!==-1?f:null))}function vb(r,n,o){var c,f,p;if(this._monthsParseExact)return gb.call(this,r,n,o);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),c=0;c<12;c++){if(f=_o([2e3,c]),o&&!this._longMonthsParse[c]&&(this._longMonthsParse[c]=new RegExp("^"+this.months(f,"").replace(".","")+"$","i"),this._shortMonthsParse[c]=new RegExp("^"+this.monthsShort(f,"").replace(".","")+"$","i")),!o&&!this._monthsParse[c]&&(p="^"+this.months(f,"")+"|^"+this.monthsShort(f,""),this._monthsParse[c]=new RegExp(p.replace(".",""),"i")),o&&n==="MMMM"&&this._longMonthsParse[c].test(r))return c;if(o&&n==="MMM"&&this._shortMonthsParse[c].test(r))return c;if(!o&&this._monthsParse[c].test(r))return c}}function g4(r,n){var o;if(!r.isValid())return r;if(typeof n=="string"){if(/^\d+$/.test(n))n=mt(n);else if(n=r.localeData().monthsParse(n),!la(n))return r}return o=Math.min(r.date(),K1(r.year(),n)),r._d["set"+(r._isUTC?"UTC":"")+"Month"](n,o),r}function v4(r){return r!=null?(g4(this,r),Se.updateOffset(this,!0),this):M1(this,"Month")}function bb(){return K1(this.year(),this.month())}function mb(r){return this._monthsParseExact?(Tt(this,"_monthsRegex")||b4.call(this),r?this._monthsShortStrictRegex:this._monthsShortRegex):(Tt(this,"_monthsShortRegex")||(this._monthsShortRegex=fb),this._monthsShortStrictRegex&&r?this._monthsShortStrictRegex:this._monthsShortRegex)}function yb(r){return this._monthsParseExact?(Tt(this,"_monthsRegex")||b4.call(this),r?this._monthsStrictRegex:this._monthsRegex):(Tt(this,"_monthsRegex")||(this._monthsRegex=db),this._monthsStrictRegex&&r?this._monthsStrictRegex:this._monthsRegex)}function b4(){function r(b,k){return k.length-b.length}var n=[],o=[],c=[],f,p;for(f=0;f<12;f++)p=_o([2e3,f]),n.push(this.monthsShort(p,"")),o.push(this.months(p,"")),c.push(this.months(p,"")),c.push(this.monthsShort(p,""));for(n.sort(r),o.sort(r),c.sort(r),f=0;f<12;f++)n[f]=Qn(n[f]),o[f]=Qn(o[f]);for(f=0;f<24;f++)c[f]=Qn(c[f]);this._monthsRegex=new RegExp("^("+c.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+n.join("|")+")","i")}Ve("Y",0,0,function(){var r=this.year();return r<=9999?wo(r,4):"+"+r});Ve(0,["YY",2],0,function(){return this.year()%100});Ve(0,["YYYY",4],0,"year");Ve(0,["YYYYY",5],0,"year");Ve(0,["YYYYYY",6,!0],0,"year");cn("year","y");fn("year",1);Oe("Y",q1);Oe("YY",Jt,ri);Oe("YYYY",lh,sh);Oe("YYYYY",G1,Z1);Oe("YYYYYY",G1,Z1);Yt(["YYYYY","YYYYYY"],un);Yt("YYYY",function(r,n){n[un]=r.length===2?Se.parseTwoDigitYear(r):mt(r)});Yt("YY",function(r,n){n[un]=Se.parseTwoDigitYear(r)});Yt("Y",function(r,n){n[un]=parseInt(r,10)});function x0(r){return Y1(r)?366:365}Se.parseTwoDigitYear=function(r){return mt(r)+(mt(r)>68?1900:2e3)};var m4=gu("FullYear",!0);function Cb(){return Y1(this.year())}function wb(r,n,o,c,f,p,b){var k;return r<100&&r>=0?(k=new Date(r+400,n,o,c,f,p,b),isFinite(k.getFullYear())&&k.setFullYear(r)):k=new Date(r,n,o,c,f,p,b),k}function O0(r){var n,o;return r<100&&r>=0?(o=Array.prototype.slice.call(arguments),o[0]=r+400,n=new Date(Date.UTC.apply(null,o)),isFinite(n.getUTCFullYear())&&n.setUTCFullYear(r)):n=new Date(Date.UTC.apply(null,arguments)),n}function O1(r,n,o){var c=7+n-o,f=(7+O0(r,0,c).getUTCDay()-n)%7;return-f+c-1}function y4(r,n,o,c,f){var p=(7+o-c)%7,b=O1(r,c,f),k=1+7*(n-1)+p+b,S,O;return k<=0?(S=r-1,O=x0(S)+k):k>x0(r)?(S=r+1,O=k-x0(r)):(S=r,O=k),{year:S,dayOfYear:O}}function T0(r,n,o){var c=O1(r.year(),n,o),f=Math.floor((r.dayOfYear()-c-1)/7)+1,p,b;return f<1?(b=r.year()-1,p=f+sa(b,n,o)):f>sa(r.year(),n,o)?(p=f-sa(r.year(),n,o),b=r.year()+1):(b=r.year(),p=f),{week:p,year:b}}function sa(r,n,o){var c=O1(r,n,o),f=O1(r+1,n,o);return(x0(r)-c+f)/7}Ve("w",["ww",2],"wo","week");Ve("W",["WW",2],"Wo","isoWeek");cn("week","w");cn("isoWeek","W");fn("week",5);fn("isoWeek",5);Oe("w",Jt);Oe("ww",Jt,ri);Oe("W",Jt);Oe("WW",Jt,ri);U0(["w","ww","W","WW"],function(r,n,o,c){n[c.substr(0,1)]=mt(r)});function xb(r){return T0(r,this._week.dow,this._week.doy).week}var zb={dow:0,doy:6};function Lb(){return this._week.dow}function _b(){return this._week.doy}function Sb(r){var n=this.localeData().week(this);return r==null?n:this.add((r-n)*7,"d")}function Mb(r){var n=T0(this,1,4).week;return r==null?n:this.add((r-n)*7,"d")}Ve("d",0,"do","day");Ve("dd",0,0,function(r){return this.localeData().weekdaysMin(this,r)});Ve("ddd",0,0,function(r){return this.localeData().weekdaysShort(this,r)});Ve("dddd",0,0,function(r){return this.localeData().weekdays(this,r)});Ve("e",0,0,"weekday");Ve("E",0,0,"isoWeekday");cn("day","d");cn("weekday","e");cn("isoWeekday","E");fn("day",11);fn("weekday",11);fn("isoWeekday",11);Oe("d",Jt);Oe("e",Jt);Oe("E",Jt);Oe("dd",function(r,n){return n.weekdaysMinRegex(r)});Oe("ddd",function(r,n){return n.weekdaysShortRegex(r)});Oe("dddd",function(r,n){return n.weekdaysRegex(r)});U0(["dd","ddd","dddd"],function(r,n,o,c){var f=o._locale.weekdaysParse(r,c,o._strict);f!=null?n.d=f:ht(o).invalidWeekday=r});U0(["d","e","E"],function(r,n,o,c){n[c]=mt(r)});function kb(r,n){return typeof r!="string"?r:isNaN(r)?(r=n.weekdaysParse(r),typeof r=="number"?r:null):parseInt(r,10)}function Ob(r,n){return typeof r=="string"?n.weekdaysParse(r)%7||7:isNaN(r)?null:r}function uh(r,n){return r.slice(n,7).concat(r.slice(0,n))}var Tb="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),C4="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Pb="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Ab=W0,Eb=W0,Ib=W0;function Db(r,n){var o=Bi(this._weekdays)?this._weekdays:this._weekdays[r&&r!==!0&&this._weekdays.isFormat.test(n)?"format":"standalone"];return r===!0?uh(o,this._week.dow):r?o[r.day()]:o}function Rb(r){return r===!0?uh(this._weekdaysShort,this._week.dow):r?this._weekdaysShort[r.day()]:this._weekdaysShort}function Nb(r){return r===!0?uh(this._weekdaysMin,this._week.dow):r?this._weekdaysMin[r.day()]:this._weekdaysMin}function $b(r,n,o){var c,f,p,b=r.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],c=0;c<7;++c)p=_o([2e3,1]).day(c),this._minWeekdaysParse[c]=this.weekdaysMin(p,"").toLocaleLowerCase(),this._shortWeekdaysParse[c]=this.weekdaysShort(p,"").toLocaleLowerCase(),this._weekdaysParse[c]=this.weekdays(p,"").toLocaleLowerCase();return o?n==="dddd"?(f=yr.call(this._weekdaysParse,b),f!==-1?f:null):n==="ddd"?(f=yr.call(this._shortWeekdaysParse,b),f!==-1?f:null):(f=yr.call(this._minWeekdaysParse,b),f!==-1?f:null):n==="dddd"?(f=yr.call(this._weekdaysParse,b),f!==-1||(f=yr.call(this._shortWeekdaysParse,b),f!==-1)?f:(f=yr.call(this._minWeekdaysParse,b),f!==-1?f:null)):n==="ddd"?(f=yr.call(this._shortWeekdaysParse,b),f!==-1||(f=yr.call(this._weekdaysParse,b),f!==-1)?f:(f=yr.call(this._minWeekdaysParse,b),f!==-1?f:null)):(f=yr.call(this._minWeekdaysParse,b),f!==-1||(f=yr.call(this._weekdaysParse,b),f!==-1)?f:(f=yr.call(this._shortWeekdaysParse,b),f!==-1?f:null))}function Hb(r,n,o){var c,f,p;if(this._weekdaysParseExact)return $b.call(this,r,n,o);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),c=0;c<7;c++){if(f=_o([2e3,1]).day(c),o&&!this._fullWeekdaysParse[c]&&(this._fullWeekdaysParse[c]=new RegExp("^"+this.weekdays(f,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[c]=new RegExp("^"+this.weekdaysShort(f,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[c]=new RegExp("^"+this.weekdaysMin(f,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[c]||(p="^"+this.weekdays(f,"")+"|^"+this.weekdaysShort(f,"")+"|^"+this.weekdaysMin(f,""),this._weekdaysParse[c]=new RegExp(p.replace(".",""),"i")),o&&n==="dddd"&&this._fullWeekdaysParse[c].test(r))return c;if(o&&n==="ddd"&&this._shortWeekdaysParse[c].test(r))return c;if(o&&n==="dd"&&this._minWeekdaysParse[c].test(r))return c;if(!o&&this._weekdaysParse[c].test(r))return c}}function Bb(r){if(!this.isValid())return r!=null?this:NaN;var n=this._isUTC?this._d.getUTCDay():this._d.getDay();return r!=null?(r=kb(r,this.localeData()),this.add(r-n,"d")):n}function Fb(r){if(!this.isValid())return r!=null?this:NaN;var n=(this.day()+7-this.localeData()._week.dow)%7;return r==null?n:this.add(r-n,"d")}function Wb(r){if(!this.isValid())return r!=null?this:NaN;if(r!=null){var n=Ob(r,this.localeData());return this.day(this.day()%7?n:n-7)}else return this.day()||7}function Ub(r){return this._weekdaysParseExact?(Tt(this,"_weekdaysRegex")||ch.call(this),r?this._weekdaysStrictRegex:this._weekdaysRegex):(Tt(this,"_weekdaysRegex")||(this._weekdaysRegex=Ab),this._weekdaysStrictRegex&&r?this._weekdaysStrictRegex:this._weekdaysRegex)}function Yb(r){return this._weekdaysParseExact?(Tt(this,"_weekdaysRegex")||ch.call(this),r?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(Tt(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Eb),this._weekdaysShortStrictRegex&&r?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Zb(r){return this._weekdaysParseExact?(Tt(this,"_weekdaysRegex")||ch.call(this),r?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(Tt(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Ib),this._weekdaysMinStrictRegex&&r?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function ch(){function r(I,U){return U.length-I.length}var n=[],o=[],c=[],f=[],p,b,k,S,O;for(p=0;p<7;p++)b=_o([2e3,1]).day(p),k=Qn(this.weekdaysMin(b,"")),S=Qn(this.weekdaysShort(b,"")),O=Qn(this.weekdays(b,"")),n.push(k),o.push(S),c.push(O),f.push(k),f.push(S),f.push(O);n.sort(r),o.sort(r),c.sort(r),f.sort(r),this._weekdaysRegex=new RegExp("^("+f.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+c.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+n.join("|")+")","i")}function fh(){return this.hours()%12||12}function Vb(){return this.hours()||24}Ve("H",["HH",2],0,"hour");Ve("h",["hh",2],0,fh);Ve("k",["kk",2],0,Vb);Ve("hmm",0,0,function(){return""+fh.apply(this)+wo(this.minutes(),2)});Ve("hmmss",0,0,function(){return""+fh.apply(this)+wo(this.minutes(),2)+wo(this.seconds(),2)});Ve("Hmm",0,0,function(){return""+this.hours()+wo(this.minutes(),2)});Ve("Hmmss",0,0,function(){return""+this.hours()+wo(this.minutes(),2)+wo(this.seconds(),2)});function w4(r,n){Ve(r,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),n)})}w4("a",!0);w4("A",!1);cn("hour","h");fn("hour",13);function x4(r,n){return n._meridiemParse}Oe("a",x4);Oe("A",x4);Oe("H",Jt);Oe("h",Jt);Oe("k",Jt);Oe("HH",Jt,ri);Oe("hh",Jt,ri);Oe("kk",Jt,ri);Oe("hmm",f4);Oe("hmmss",d4);Oe("Hmm",f4);Oe("Hmmss",d4);Yt(["H","HH"],Nr);Yt(["k","kk"],function(r,n,o){var c=mt(r);n[Nr]=c===24?0:c});Yt(["a","A"],function(r,n,o){o._isPm=o._locale.isPM(r),o._meridiem=r});Yt(["h","hh"],function(r,n,o){n[Nr]=mt(r),ht(o).bigHour=!0});Yt("hmm",function(r,n,o){var c=r.length-2;n[Nr]=mt(r.substr(0,c)),n[Ni]=mt(r.substr(c)),ht(o).bigHour=!0});Yt("hmmss",function(r,n,o){var c=r.length-4,f=r.length-2;n[Nr]=mt(r.substr(0,c)),n[Ni]=mt(r.substr(c,2)),n[aa]=mt(r.substr(f)),ht(o).bigHour=!0});Yt("Hmm",function(r,n,o){var c=r.length-2;n[Nr]=mt(r.substr(0,c)),n[Ni]=mt(r.substr(c))});Yt("Hmmss",function(r,n,o){var c=r.length-4,f=r.length-2;n[Nr]=mt(r.substr(0,c)),n[Ni]=mt(r.substr(c,2)),n[aa]=mt(r.substr(f))});function Gb(r){return(r+"").toLowerCase().charAt(0)==="p"}var qb=/[ap]\.?m?\.?/i,jb=gu("Hours",!0);function Kb(r,n,o){return r>11?o?"pm":"PM":o?"am":"AM"}var z4={calendar:H8,longDateFormat:U8,invalidDate:Z8,ordinal:G8,dayOfMonthOrdinalParse:q8,relativeTime:K8,months:cb,monthsShort:h4,week:zb,weekdays:Tb,weekdaysMin:Pb,weekdaysShort:C4,meridiemParse:qb},nr={},g0={},P0;function Xb(r,n){var o,c=Math.min(r.length,n.length);for(o=0;o<c;o+=1)if(r[o]!==n[o])return o;return c}function Hp(r){return r&&r.toLowerCase().replace("_","-")}function Qb(r){for(var n=0,o,c,f,p;n<r.length;){for(p=Hp(r[n]).split("-"),o=p.length,c=Hp(r[n+1]),c=c?c.split("-"):null;o>0;){if(f=X1(p.slice(0,o).join("-")),f)return f;if(c&&c.length>=o&&Xb(p,c)>=o-1)break;o--}n++}return P0}function Jb(r){return r.match("^[^/\\\\]*$")!=null}function X1(r){var n=null,o;if(nr[r]===void 0&&typeof module!="undefined"&&module&&module.exports&&Jb(r))try{n=P0._abbr,o=require,o("./locale/"+r),Ka(n)}catch{nr[r]=null}return nr[r]}function Ka(r,n){var o;return r&&(In(n)?o=ca(r):o=dh(r,n),o?P0=o:typeof console!="undefined"&&console.warn&&console.warn("Locale "+r+" not found. Did you forget to load it?")),P0._abbr}function dh(r,n){if(n!==null){var o,c=z4;if(n.abbr=r,nr[r]!=null)o4("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),c=nr[r]._config;else if(n.parentLocale!=null)if(nr[n.parentLocale]!=null)c=nr[n.parentLocale]._config;else if(o=X1(n.parentLocale),o!=null)c=o._config;else return g0[n.parentLocale]||(g0[n.parentLocale]=[]),g0[n.parentLocale].push({name:r,config:n}),null;return nr[r]=new ih(Od(c,n)),g0[r]&&g0[r].forEach(function(f){dh(f.name,f.config)}),Ka(r),nr[r]}else return delete nr[r],null}function em(r,n){if(n!=null){var o,c,f=z4;nr[r]!=null&&nr[r].parentLocale!=null?nr[r].set(Od(nr[r]._config,n)):(c=X1(r),c!=null&&(f=c._config),n=Od(f,n),c==null&&(n.abbr=r),o=new ih(n),o.parentLocale=nr[r],nr[r]=o),Ka(r)}else nr[r]!=null&&(nr[r].parentLocale!=null?(nr[r]=nr[r].parentLocale,r===Ka()&&Ka(r)):nr[r]!=null&&delete nr[r]);return nr[r]}function ca(r){var n;if(r&&r._locale&&r._locale._abbr&&(r=r._locale._abbr),!r)return P0;if(!Bi(r)){if(n=X1(r),n)return n;r=[r]}return Qb(r)}function tm(){return Td(nr)}function hh(r){var n,o=r._a;return o&&ht(r).overflow===-2&&(n=o[oa]<0||o[oa]>11?oa:o[mo]<1||o[mo]>K1(o[un],o[oa])?mo:o[Nr]<0||o[Nr]>24||o[Nr]===24&&(o[Ni]!==0||o[aa]!==0||o[Ys]!==0)?Nr:o[Ni]<0||o[Ni]>59?Ni:o[aa]<0||o[aa]>59?aa:o[Ys]<0||o[Ys]>999?Ys:-1,ht(r)._overflowDayOfYear&&(n<un||n>mo)&&(n=mo),ht(r)._overflowWeeks&&n===-1&&(n=sb),ht(r)._overflowWeekday&&n===-1&&(n=lb),ht(r).overflow=n),r}var rm=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,nm=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,im=/Z|[+-]\d\d(?::?\d\d)?/,g1=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],md=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],om=/^\/?Date\((-?\d+)/i,am=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,sm={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function L4(r){var n,o,c=r._i,f=rm.exec(c)||nm.exec(c),p,b,k,S,O=g1.length,I=md.length;if(f){for(ht(r).iso=!0,n=0,o=O;n<o;n++)if(g1[n][1].exec(f[1])){b=g1[n][0],p=g1[n][2]!==!1;break}if(b==null){r._isValid=!1;return}if(f[3]){for(n=0,o=I;n<o;n++)if(md[n][1].exec(f[3])){k=(f[2]||" ")+md[n][0];break}if(k==null){r._isValid=!1;return}}if(!p&&k!=null){r._isValid=!1;return}if(f[4])if(im.exec(f[4]))S="Z";else{r._isValid=!1;return}r._f=b+(k||"")+(S||""),gh(r)}else r._isValid=!1}function lm(r,n,o,c,f,p){var b=[um(r),h4.indexOf(n),parseInt(o,10),parseInt(c,10),parseInt(f,10)];return p&&b.push(parseInt(p,10)),b}function um(r){var n=parseInt(r,10);return n<=49?2e3+n:n<=999?1900+n:n}function cm(r){return r.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function fm(r,n,o){if(r){var c=C4.indexOf(r),f=new Date(n[0],n[1],n[2]).getDay();if(c!==f)return ht(o).weekdayMismatch=!0,o._isValid=!1,!1}return!0}function dm(r,n,o){if(r)return sm[r];if(n)return 0;var c=parseInt(o,10),f=c%100,p=(c-f)/100;return p*60+f}function _4(r){var n=am.exec(cm(r._i)),o;if(n){if(o=lm(n[4],n[3],n[2],n[5],n[6],n[7]),!fm(n[1],o,r))return;r._a=o,r._tzm=dm(n[8],n[9],n[10]),r._d=O0.apply(null,r._a),r._d.setUTCMinutes(r._d.getUTCMinutes()-r._tzm),ht(r).rfc2822=!0}else r._isValid=!1}function hm(r){var n=om.exec(r._i);if(n!==null){r._d=new Date(+n[1]);return}if(L4(r),r._isValid===!1)delete r._isValid;else return;if(_4(r),r._isValid===!1)delete r._isValid;else return;r._strict?r._isValid=!1:Se.createFromInputFallback(r)}Se.createFromInputFallback=wi("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(r){r._d=new Date(r._i+(r._useUTC?" UTC":""))});function eu(r,n,o){return r!=null?r:n!=null?n:o}function pm(r){var n=new Date(Se.now());return r._useUTC?[n.getUTCFullYear(),n.getUTCMonth(),n.getUTCDate()]:[n.getFullYear(),n.getMonth(),n.getDate()]}function ph(r){var n,o,c=[],f,p,b;if(!r._d){for(f=pm(r),r._w&&r._a[mo]==null&&r._a[oa]==null&&gm(r),r._dayOfYear!=null&&(b=eu(r._a[un],f[un]),(r._dayOfYear>x0(b)||r._dayOfYear===0)&&(ht(r)._overflowDayOfYear=!0),o=O0(b,0,r._dayOfYear),r._a[oa]=o.getUTCMonth(),r._a[mo]=o.getUTCDate()),n=0;n<3&&r._a[n]==null;++n)r._a[n]=c[n]=f[n];for(;n<7;n++)r._a[n]=c[n]=r._a[n]==null?n===2?1:0:r._a[n];r._a[Nr]===24&&r._a[Ni]===0&&r._a[aa]===0&&r._a[Ys]===0&&(r._nextDay=!0,r._a[Nr]=0),r._d=(r._useUTC?O0:wb).apply(null,c),p=r._useUTC?r._d.getUTCDay():r._d.getDay(),r._tzm!=null&&r._d.setUTCMinutes(r._d.getUTCMinutes()-r._tzm),r._nextDay&&(r._a[Nr]=24),r._w&&typeof r._w.d!="undefined"&&r._w.d!==p&&(ht(r).weekdayMismatch=!0)}}function gm(r){var n,o,c,f,p,b,k,S,O;n=r._w,n.GG!=null||n.W!=null||n.E!=null?(p=1,b=4,o=eu(n.GG,r._a[un],T0(Qt(),1,4).year),c=eu(n.W,1),f=eu(n.E,1),(f<1||f>7)&&(S=!0)):(p=r._locale._week.dow,b=r._locale._week.doy,O=T0(Qt(),p,b),o=eu(n.gg,r._a[un],O.year),c=eu(n.w,O.week),n.d!=null?(f=n.d,(f<0||f>6)&&(S=!0)):n.e!=null?(f=n.e+p,(n.e<0||n.e>6)&&(S=!0)):f=p),c<1||c>sa(o,p,b)?ht(r)._overflowWeeks=!0:S!=null?ht(r)._overflowWeekday=!0:(k=y4(o,c,f,p,b),r._a[un]=k.year,r._dayOfYear=k.dayOfYear)}Se.ISO_8601=function(){};Se.RFC_2822=function(){};function gh(r){if(r._f===Se.ISO_8601){L4(r);return}if(r._f===Se.RFC_2822){_4(r);return}r._a=[],ht(r).empty=!0;var n=""+r._i,o,c,f,p,b,k=n.length,S=0,O,I;for(f=a4(r._f,r._locale).match(oh)||[],I=f.length,o=0;o<I;o++)p=f[o],c=(n.match(ib(p,r))||[])[0],c&&(b=n.substr(0,n.indexOf(c)),b.length>0&&ht(r).unusedInput.push(b),n=n.slice(n.indexOf(c)+c.length),S+=c.length),nu[p]?(c?ht(r).empty=!1:ht(r).unusedTokens.push(p),ab(p,c,r)):r._strict&&!c&&ht(r).unusedTokens.push(p);ht(r).charsLeftOver=k-S,n.length>0&&ht(r).unusedInput.push(n),r._a[Nr]<=12&&ht(r).bigHour===!0&&r._a[Nr]>0&&(ht(r).bigHour=void 0),ht(r).parsedDateParts=r._a.slice(0),ht(r).meridiem=r._meridiem,r._a[Nr]=vm(r._locale,r._a[Nr],r._meridiem),O=ht(r).era,O!==null&&(r._a[un]=r._locale.erasConvertYear(O,r._a[un])),ph(r),hh(r)}function vm(r,n,o){var c;return o==null?n:r.meridiemHour!=null?r.meridiemHour(n,o):(r.isPM!=null&&(c=r.isPM(o),c&&n<12&&(n+=12),!c&&n===12&&(n=0)),n)}function bm(r){var n,o,c,f,p,b,k=!1,S=r._f.length;if(S===0){ht(r).invalidFormat=!0,r._d=new Date(NaN);return}for(f=0;f<S;f++)p=0,b=!1,n=nh({},r),r._useUTC!=null&&(n._useUTC=r._useUTC),n._f=r._f[f],gh(n),rh(n)&&(b=!0),p+=ht(n).charsLeftOver,p+=ht(n).unusedTokens.length*10,ht(n).score=p,k?p<c&&(c=p,o=n):(c==null||p<c||b)&&(c=p,o=n,b&&(k=!0));qa(r,o||n)}function mm(r){if(!r._d){var n=ah(r._i),o=n.day===void 0?n.date:n.day;r._a=n4([n.year,n.month,o,n.hour,n.minute,n.second,n.millisecond],function(c){return c&&parseInt(c,10)}),ph(r)}}function ym(r){var n=new F0(hh(S4(r)));return n._nextDay&&(n.add(1,"d"),n._nextDay=void 0),n}function S4(r){var n=r._i,o=r._f;return r._locale=r._locale||ca(r._l),n===null||o===void 0&&n===""?U1({nullInput:!0}):(typeof n=="string"&&(r._i=n=r._locale.preparse(n)),Fi(n)?new F0(hh(n)):(B0(n)?r._d=n:Bi(o)?bm(r):o?gh(r):Cm(r),rh(r)||(r._d=null),r))}function Cm(r){var n=r._i;In(n)?r._d=new Date(Se.now()):B0(n)?r._d=new Date(n.valueOf()):typeof n=="string"?hm(r):Bi(n)?(r._a=n4(n.slice(0),function(o){return parseInt(o,10)}),ph(r)):Gs(n)?mm(r):la(n)?r._d=new Date(n):Se.createFromInputFallback(r)}function M4(r,n,o,c,f){var p={};return(n===!0||n===!1)&&(c=n,n=void 0),(o===!0||o===!1)&&(c=o,o=void 0),(Gs(r)&&th(r)||Bi(r)&&r.length===0)&&(r=void 0),p._isAMomentObject=!0,p._useUTC=p._isUTC=f,p._l=o,p._i=r,p._f=n,p._strict=c,ym(p)}function Qt(r,n,o,c){return M4(r,n,o,c,!1)}var wm=wi("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var r=Qt.apply(null,arguments);return this.isValid()&&r.isValid()?r<this?this:r:U1()}),xm=wi("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var r=Qt.apply(null,arguments);return this.isValid()&&r.isValid()?r>this?this:r:U1()});function k4(r,n){var o,c;if(n.length===1&&Bi(n[0])&&(n=n[0]),!n.length)return Qt();for(o=n[0],c=1;c<n.length;++c)(!n[c].isValid()||n[c][r](o))&&(o=n[c]);return o}function zm(){var r=[].slice.call(arguments,0);return k4("isBefore",r)}function Lm(){var r=[].slice.call(arguments,0);return k4("isAfter",r)}var _m=function(){return Date.now?Date.now():+new Date},v0=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Sm(r){var n,o=!1,c,f=v0.length;for(n in r)if(Tt(r,n)&&!(yr.call(v0,n)!==-1&&(r[n]==null||!isNaN(r[n]))))return!1;for(c=0;c<f;++c)if(r[v0[c]]){if(o)return!1;parseFloat(r[v0[c]])!==mt(r[v0[c]])&&(o=!0)}return!0}function Mm(){return this._isValid}function km(){return Ui(NaN)}function Q1(r){var n=ah(r),o=n.year||0,c=n.quarter||0,f=n.month||0,p=n.week||n.isoWeek||0,b=n.day||0,k=n.hour||0,S=n.minute||0,O=n.second||0,I=n.millisecond||0;this._isValid=Sm(n),this._milliseconds=+I+O*1e3+S*6e4+k*1e3*60*60,this._days=+b+p*7,this._months=+f+c*3+o*12,this._data={},this._locale=ca(),this._bubble()}function y1(r){return r instanceof Q1}function Ad(r){return r<0?Math.round(-1*r)*-1:Math.round(r)}function Om(r,n,o){var c=Math.min(r.length,n.length),f=Math.abs(r.length-n.length),p=0,b;for(b=0;b<c;b++)(o&&r[b]!==n[b]||!o&&mt(r[b])!==mt(n[b]))&&p++;return p+f}function O4(r,n){Ve(r,0,0,function(){var o=this.utcOffset(),c="+";return o<0&&(o=-o,c="-"),c+wo(~~(o/60),2)+n+wo(~~o%60,2)})}O4("Z",":");O4("ZZ","");Oe("Z",j1);Oe("ZZ",j1);Yt(["Z","ZZ"],function(r,n,o){o._useUTC=!0,o._tzm=vh(j1,r)});var Tm=/([\+\-]|\d\d)/gi;function vh(r,n){var o=(n||"").match(r),c,f,p;return o===null?null:(c=o[o.length-1]||[],f=(c+"").match(Tm)||["-",0,0],p=+(f[1]*60)+mt(f[2]),p===0?0:f[0]==="+"?p:-p)}function bh(r,n){var o,c;return n._isUTC?(o=n.clone(),c=(Fi(r)||B0(r)?r.valueOf():Qt(r).valueOf())-o.valueOf(),o._d.setTime(o._d.valueOf()+c),Se.updateOffset(o,!1),o):Qt(r).local()}function Ed(r){return-Math.round(r._d.getTimezoneOffset())}Se.updateOffset=function(){};function Pm(r,n,o){var c=this._offset||0,f;if(!this.isValid())return r!=null?this:NaN;if(r!=null){if(typeof r=="string"){if(r=vh(j1,r),r===null)return this}else Math.abs(r)<16&&!o&&(r=r*60);return!this._isUTC&&n&&(f=Ed(this)),this._offset=r,this._isUTC=!0,f!=null&&this.add(f,"m"),c!==r&&(!n||this._changeInProgress?A4(this,Ui(r-c,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,Se.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?c:Ed(this)}function Am(r,n){return r!=null?(typeof r!="string"&&(r=-r),this.utcOffset(r,n),this):-this.utcOffset()}function Em(r){return this.utcOffset(0,r)}function Im(r){return this._isUTC&&(this.utcOffset(0,r),this._isUTC=!1,r&&this.subtract(Ed(this),"m")),this}function Dm(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var r=vh(rb,this._i);r!=null?this.utcOffset(r):this.utcOffset(0,!0)}return this}function Rm(r){return this.isValid()?(r=r?Qt(r).utcOffset():0,(this.utcOffset()-r)%60===0):!1}function Nm(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function $m(){if(!In(this._isDSTShifted))return this._isDSTShifted;var r={},n;return nh(r,this),r=S4(r),r._a?(n=r._isUTC?_o(r._a):Qt(r._a),this._isDSTShifted=this.isValid()&&Om(r._a,n.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function Hm(){return this.isValid()?!this._isUTC:!1}function Bm(){return this.isValid()?this._isUTC:!1}function T4(){return this.isValid()?this._isUTC&&this._offset===0:!1}var Fm=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Wm=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Ui(r,n){var o=r,c=null,f,p,b;return y1(r)?o={ms:r._milliseconds,d:r._days,M:r._months}:la(r)||!isNaN(+r)?(o={},n?o[n]=+r:o.milliseconds=+r):(c=Fm.exec(r))?(f=c[1]==="-"?-1:1,o={y:0,d:mt(c[mo])*f,h:mt(c[Nr])*f,m:mt(c[Ni])*f,s:mt(c[aa])*f,ms:mt(Ad(c[Ys]*1e3))*f}):(c=Wm.exec(r))?(f=c[1]==="-"?-1:1,o={y:Ws(c[2],f),M:Ws(c[3],f),w:Ws(c[4],f),d:Ws(c[5],f),h:Ws(c[6],f),m:Ws(c[7],f),s:Ws(c[8],f)}):o==null?o={}:typeof o=="object"&&("from"in o||"to"in o)&&(b=Um(Qt(o.from),Qt(o.to)),o={},o.ms=b.milliseconds,o.M=b.months),p=new Q1(o),y1(r)&&Tt(r,"_locale")&&(p._locale=r._locale),y1(r)&&Tt(r,"_isValid")&&(p._isValid=r._isValid),p}Ui.fn=Q1.prototype;Ui.invalid=km;function Ws(r,n){var o=r&&parseFloat(r.replace(",","."));return(isNaN(o)?0:o)*n}function Bp(r,n){var o={};return o.months=n.month()-r.month()+(n.year()-r.year())*12,r.clone().add(o.months,"M").isAfter(n)&&--o.months,o.milliseconds=+n-+r.clone().add(o.months,"M"),o}function Um(r,n){var o;return r.isValid()&&n.isValid()?(n=bh(n,r),r.isBefore(n)?o=Bp(r,n):(o=Bp(n,r),o.milliseconds=-o.milliseconds,o.months=-o.months),o):{milliseconds:0,months:0}}function P4(r,n){return function(o,c){var f,p;return c!==null&&!isNaN(+c)&&(o4(n,"moment()."+n+"(period, number) is deprecated. Please use moment()."+n+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),p=o,o=c,c=p),f=Ui(o,c),A4(this,f,r),this}}function A4(r,n,o,c){var f=n._milliseconds,p=Ad(n._days),b=Ad(n._months);!r.isValid()||(c=c==null?!0:c,b&&g4(r,M1(r,"Month")+b*o),p&&l4(r,"Date",M1(r,"Date")+p*o),f&&r._d.setTime(r._d.valueOf()+f*o),c&&Se.updateOffset(r,p||b))}var Ym=P4(1,"add"),Zm=P4(-1,"subtract");function E4(r){return typeof r=="string"||r instanceof String}function Vm(r){return Fi(r)||B0(r)||E4(r)||la(r)||qm(r)||Gm(r)||r===null||r===void 0}function Gm(r){var n=Gs(r)&&!th(r),o=!1,c=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],f,p,b=c.length;for(f=0;f<b;f+=1)p=c[f],o=o||Tt(r,p);return n&&o}function qm(r){var n=Bi(r),o=!1;return n&&(o=r.filter(function(c){return!la(c)&&E4(r)}).length===0),n&&o}function jm(r){var n=Gs(r)&&!th(r),o=!1,c=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],f,p;for(f=0;f<c.length;f+=1)p=c[f],o=o||Tt(r,p);return n&&o}function Km(r,n){var o=r.diff(n,"days",!0);return o<-6?"sameElse":o<-1?"lastWeek":o<0?"lastDay":o<1?"sameDay":o<2?"nextDay":o<7?"nextWeek":"sameElse"}function Xm(r,n){arguments.length===1&&(arguments[0]?Vm(arguments[0])?(r=arguments[0],n=void 0):jm(arguments[0])&&(n=arguments[0],r=void 0):(r=void 0,n=void 0));var o=r||Qt(),c=bh(o,this).startOf("day"),f=Se.calendarFormat(this,c)||"sameElse",p=n&&(So(n[f])?n[f].call(this,o):n[f]);return this.format(p||this.localeData().calendar(f,this,Qt(o)))}function Qm(){return new F0(this)}function Jm(r,n){var o=Fi(r)?r:Qt(r);return this.isValid()&&o.isValid()?(n=xi(n)||"millisecond",n==="millisecond"?this.valueOf()>o.valueOf():o.valueOf()<this.clone().startOf(n).valueOf()):!1}function ey(r,n){var o=Fi(r)?r:Qt(r);return this.isValid()&&o.isValid()?(n=xi(n)||"millisecond",n==="millisecond"?this.valueOf()<o.valueOf():this.clone().endOf(n).valueOf()<o.valueOf()):!1}function ty(r,n,o,c){var f=Fi(r)?r:Qt(r),p=Fi(n)?n:Qt(n);return this.isValid()&&f.isValid()&&p.isValid()?(c=c||"()",(c[0]==="("?this.isAfter(f,o):!this.isBefore(f,o))&&(c[1]===")"?this.isBefore(p,o):!this.isAfter(p,o))):!1}function ry(r,n){var o=Fi(r)?r:Qt(r),c;return this.isValid()&&o.isValid()?(n=xi(n)||"millisecond",n==="millisecond"?this.valueOf()===o.valueOf():(c=o.valueOf(),this.clone().startOf(n).valueOf()<=c&&c<=this.clone().endOf(n).valueOf())):!1}function ny(r,n){return this.isSame(r,n)||this.isAfter(r,n)}function iy(r,n){return this.isSame(r,n)||this.isBefore(r,n)}function oy(r,n,o){var c,f,p;if(!this.isValid())return NaN;if(c=bh(r,this),!c.isValid())return NaN;switch(f=(c.utcOffset()-this.utcOffset())*6e4,n=xi(n),n){case"year":p=C1(this,c)/12;break;case"month":p=C1(this,c);break;case"quarter":p=C1(this,c)/3;break;case"second":p=(this-c)/1e3;break;case"minute":p=(this-c)/6e4;break;case"hour":p=(this-c)/36e5;break;case"day":p=(this-c-f)/864e5;break;case"week":p=(this-c-f)/6048e5;break;default:p=this-c}return o?p:vi(p)}function C1(r,n){if(r.date()<n.date())return-C1(n,r);var o=(n.year()-r.year())*12+(n.month()-r.month()),c=r.clone().add(o,"months"),f,p;return n-c<0?(f=r.clone().add(o-1,"months"),p=(n-c)/(c-f)):(f=r.clone().add(o+1,"months"),p=(n-c)/(f-c)),-(o+p)||0}Se.defaultFormat="YYYY-MM-DDTHH:mm:ssZ";Se.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function ay(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function sy(r){if(!this.isValid())return null;var n=r!==!0,o=n?this.clone().utc():this;return o.year()<0||o.year()>9999?m1(o,n?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):So(Date.prototype.toISOString)?n?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",m1(o,"Z")):m1(o,n?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function ly(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var r="moment",n="",o,c,f,p;return this.isLocal()||(r=this.utcOffset()===0?"moment.utc":"moment.parseZone",n="Z"),o="["+r+'("]',c=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",f="-MM-DD[T]HH:mm:ss.SSS",p=n+'[")]',this.format(o+c+f+p)}function uy(r){r||(r=this.isUtc()?Se.defaultFormatUtc:Se.defaultFormat);var n=m1(this,r);return this.localeData().postformat(n)}function cy(r,n){return this.isValid()&&(Fi(r)&&r.isValid()||Qt(r).isValid())?Ui({to:this,from:r}).locale(this.locale()).humanize(!n):this.localeData().invalidDate()}function fy(r){return this.from(Qt(),r)}function dy(r,n){return this.isValid()&&(Fi(r)&&r.isValid()||Qt(r).isValid())?Ui({from:this,to:r}).locale(this.locale()).humanize(!n):this.localeData().invalidDate()}function hy(r){return this.to(Qt(),r)}function I4(r){var n;return r===void 0?this._locale._abbr:(n=ca(r),n!=null&&(this._locale=n),this)}var D4=wi("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(r){return r===void 0?this.localeData():this.locale(r)});function R4(){return this._locale}var T1=1e3,iu=60*T1,P1=60*iu,N4=(365*400+97)*24*P1;function ou(r,n){return(r%n+n)%n}function $4(r,n,o){return r<100&&r>=0?new Date(r+400,n,o)-N4:new Date(r,n,o).valueOf()}function H4(r,n,o){return r<100&&r>=0?Date.UTC(r+400,n,o)-N4:Date.UTC(r,n,o)}function py(r){var n,o;if(r=xi(r),r===void 0||r==="millisecond"||!this.isValid())return this;switch(o=this._isUTC?H4:$4,r){case"year":n=o(this.year(),0,1);break;case"quarter":n=o(this.year(),this.month()-this.month()%3,1);break;case"month":n=o(this.year(),this.month(),1);break;case"week":n=o(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":n=o(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":n=o(this.year(),this.month(),this.date());break;case"hour":n=this._d.valueOf(),n-=ou(n+(this._isUTC?0:this.utcOffset()*iu),P1);break;case"minute":n=this._d.valueOf(),n-=ou(n,iu);break;case"second":n=this._d.valueOf(),n-=ou(n,T1);break}return this._d.setTime(n),Se.updateOffset(this,!0),this}function gy(r){var n,o;if(r=xi(r),r===void 0||r==="millisecond"||!this.isValid())return this;switch(o=this._isUTC?H4:$4,r){case"year":n=o(this.year()+1,0,1)-1;break;case"quarter":n=o(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":n=o(this.year(),this.month()+1,1)-1;break;case"week":n=o(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":n=o(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":n=o(this.year(),this.month(),this.date()+1)-1;break;case"hour":n=this._d.valueOf(),n+=P1-ou(n+(this._isUTC?0:this.utcOffset()*iu),P1)-1;break;case"minute":n=this._d.valueOf(),n+=iu-ou(n,iu)-1;break;case"second":n=this._d.valueOf(),n+=T1-ou(n,T1)-1;break}return this._d.setTime(n),Se.updateOffset(this,!0),this}function vy(){return this._d.valueOf()-(this._offset||0)*6e4}function by(){return Math.floor(this.valueOf()/1e3)}function my(){return new Date(this.valueOf())}function yy(){var r=this;return[r.year(),r.month(),r.date(),r.hour(),r.minute(),r.second(),r.millisecond()]}function Cy(){var r=this;return{years:r.year(),months:r.month(),date:r.date(),hours:r.hours(),minutes:r.minutes(),seconds:r.seconds(),milliseconds:r.milliseconds()}}function wy(){return this.isValid()?this.toISOString():null}function xy(){return rh(this)}function zy(){return qa({},ht(this))}function Ly(){return ht(this).overflow}function _y(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}Ve("N",0,0,"eraAbbr");Ve("NN",0,0,"eraAbbr");Ve("NNN",0,0,"eraAbbr");Ve("NNNN",0,0,"eraName");Ve("NNNNN",0,0,"eraNarrow");Ve("y",["y",1],"yo","eraYear");Ve("y",["yy",2],0,"eraYear");Ve("y",["yyy",3],0,"eraYear");Ve("y",["yyyy",4],0,"eraYear");Oe("N",mh);Oe("NN",mh);Oe("NNN",mh);Oe("NNNN",Ry);Oe("NNNNN",Ny);Yt(["N","NN","NNN","NNNN","NNNNN"],function(r,n,o,c){var f=o._locale.erasParse(r,c,o._strict);f?ht(o).era=f:ht(o).invalidEra=r});Oe("y",vu);Oe("yy",vu);Oe("yyy",vu);Oe("yyyy",vu);Oe("yo",$y);Yt(["y","yy","yyy","yyyy"],un);Yt(["yo"],function(r,n,o,c){var f;o._locale._eraYearOrdinalRegex&&(f=r.match(o._locale._eraYearOrdinalRegex)),o._locale.eraYearOrdinalParse?n[un]=o._locale.eraYearOrdinalParse(r,f):n[un]=parseInt(r,10)});function Sy(r,n){var o,c,f,p=this._eras||ca("en")._eras;for(o=0,c=p.length;o<c;++o){switch(typeof p[o].since){case"string":f=Se(p[o].since).startOf("day"),p[o].since=f.valueOf();break}switch(typeof p[o].until){case"undefined":p[o].until=1/0;break;case"string":f=Se(p[o].until).startOf("day").valueOf(),p[o].until=f.valueOf();break}}return p}function My(r,n,o){var c,f,p=this.eras(),b,k,S;for(r=r.toUpperCase(),c=0,f=p.length;c<f;++c)if(b=p[c].name.toUpperCase(),k=p[c].abbr.toUpperCase(),S=p[c].narrow.toUpperCase(),o)switch(n){case"N":case"NN":case"NNN":if(k===r)return p[c];break;case"NNNN":if(b===r)return p[c];break;case"NNNNN":if(S===r)return p[c];break}else if([b,k,S].indexOf(r)>=0)return p[c]}function ky(r,n){var o=r.since<=r.until?1:-1;return n===void 0?Se(r.since).year():Se(r.since).year()+(n-r.offset)*o}function Oy(){var r,n,o,c=this.localeData().eras();for(r=0,n=c.length;r<n;++r)if(o=this.clone().startOf("day").valueOf(),c[r].since<=o&&o<=c[r].until||c[r].until<=o&&o<=c[r].since)return c[r].name;return""}function Ty(){var r,n,o,c=this.localeData().eras();for(r=0,n=c.length;r<n;++r)if(o=this.clone().startOf("day").valueOf(),c[r].since<=o&&o<=c[r].until||c[r].until<=o&&o<=c[r].since)return c[r].narrow;return""}function Py(){var r,n,o,c=this.localeData().eras();for(r=0,n=c.length;r<n;++r)if(o=this.clone().startOf("day").valueOf(),c[r].since<=o&&o<=c[r].until||c[r].until<=o&&o<=c[r].since)return c[r].abbr;return""}function Ay(){var r,n,o,c,f=this.localeData().eras();for(r=0,n=f.length;r<n;++r)if(o=f[r].since<=f[r].until?1:-1,c=this.clone().startOf("day").valueOf(),f[r].since<=c&&c<=f[r].until||f[r].until<=c&&c<=f[r].since)return(this.year()-Se(f[r].since).year())*o+f[r].offset;return this.year()}function Ey(r){return Tt(this,"_erasNameRegex")||yh.call(this),r?this._erasNameRegex:this._erasRegex}function Iy(r){return Tt(this,"_erasAbbrRegex")||yh.call(this),r?this._erasAbbrRegex:this._erasRegex}function Dy(r){return Tt(this,"_erasNarrowRegex")||yh.call(this),r?this._erasNarrowRegex:this._erasRegex}function mh(r,n){return n.erasAbbrRegex(r)}function Ry(r,n){return n.erasNameRegex(r)}function Ny(r,n){return n.erasNarrowRegex(r)}function $y(r,n){return n._eraYearOrdinalRegex||vu}function yh(){var r=[],n=[],o=[],c=[],f,p,b=this.eras();for(f=0,p=b.length;f<p;++f)n.push(Qn(b[f].name)),r.push(Qn(b[f].abbr)),o.push(Qn(b[f].narrow)),c.push(Qn(b[f].name)),c.push(Qn(b[f].abbr)),c.push(Qn(b[f].narrow));this._erasRegex=new RegExp("^("+c.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+n.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+r.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+o.join("|")+")","i")}Ve(0,["gg",2],0,function(){return this.weekYear()%100});Ve(0,["GG",2],0,function(){return this.isoWeekYear()%100});function J1(r,n){Ve(0,[r,r.length],0,n)}J1("gggg","weekYear");J1("ggggg","weekYear");J1("GGGG","isoWeekYear");J1("GGGGG","isoWeekYear");cn("weekYear","gg");cn("isoWeekYear","GG");fn("weekYear",1);fn("isoWeekYear",1);Oe("G",q1);Oe("g",q1);Oe("GG",Jt,ri);Oe("gg",Jt,ri);Oe("GGGG",lh,sh);Oe("gggg",lh,sh);Oe("GGGGG",G1,Z1);Oe("ggggg",G1,Z1);U0(["gggg","ggggg","GGGG","GGGGG"],function(r,n,o,c){n[c.substr(0,2)]=mt(r)});U0(["gg","GG"],function(r,n,o,c){n[c]=Se.parseTwoDigitYear(r)});function Hy(r){return B4.call(this,r,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function By(r){return B4.call(this,r,this.isoWeek(),this.isoWeekday(),1,4)}function Fy(){return sa(this.year(),1,4)}function Wy(){return sa(this.isoWeekYear(),1,4)}function Uy(){var r=this.localeData()._week;return sa(this.year(),r.dow,r.doy)}function Yy(){var r=this.localeData()._week;return sa(this.weekYear(),r.dow,r.doy)}function B4(r,n,o,c,f){var p;return r==null?T0(this,c,f).year:(p=sa(r,c,f),n>p&&(n=p),Zy.call(this,r,n,o,c,f))}function Zy(r,n,o,c,f){var p=y4(r,n,o,c,f),b=O0(p.year,0,p.dayOfYear);return this.year(b.getUTCFullYear()),this.month(b.getUTCMonth()),this.date(b.getUTCDate()),this}Ve("Q",0,"Qo","quarter");cn("quarter","Q");fn("quarter",7);Oe("Q",u4);Yt("Q",function(r,n){n[oa]=(mt(r)-1)*3});function Vy(r){return r==null?Math.ceil((this.month()+1)/3):this.month((r-1)*3+this.month()%3)}Ve("D",["DD",2],"Do","date");cn("date","D");fn("date",9);Oe("D",Jt);Oe("DD",Jt,ri);Oe("Do",function(r,n){return r?n._dayOfMonthOrdinalParse||n._ordinalParse:n._dayOfMonthOrdinalParseLenient});Yt(["D","DD"],mo);Yt("Do",function(r,n){n[mo]=mt(r.match(Jt)[0])});var F4=gu("Date",!0);Ve("DDD",["DDDD",3],"DDDo","dayOfYear");cn("dayOfYear","DDD");fn("dayOfYear",4);Oe("DDD",V1);Oe("DDDD",c4);Yt(["DDD","DDDD"],function(r,n,o){o._dayOfYear=mt(r)});function Gy(r){var n=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return r==null?n:this.add(r-n,"d")}Ve("m",["mm",2],0,"minute");cn("minute","m");fn("minute",14);Oe("m",Jt);Oe("mm",Jt,ri);Yt(["m","mm"],Ni);var qy=gu("Minutes",!1);Ve("s",["ss",2],0,"second");cn("second","s");fn("second",15);Oe("s",Jt);Oe("ss",Jt,ri);Yt(["s","ss"],aa);var jy=gu("Seconds",!1);Ve("S",0,0,function(){return~~(this.millisecond()/100)});Ve(0,["SS",2],0,function(){return~~(this.millisecond()/10)});Ve(0,["SSS",3],0,"millisecond");Ve(0,["SSSS",4],0,function(){return this.millisecond()*10});Ve(0,["SSSSS",5],0,function(){return this.millisecond()*100});Ve(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3});Ve(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4});Ve(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5});Ve(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6});cn("millisecond","ms");fn("millisecond",16);Oe("S",V1,u4);Oe("SS",V1,ri);Oe("SSS",V1,c4);var ja,W4;for(ja="SSSS";ja.length<=9;ja+="S")Oe(ja,vu);function Ky(r,n){n[Ys]=mt(("0."+r)*1e3)}for(ja="S";ja.length<=9;ja+="S")Yt(ja,Ky);W4=gu("Milliseconds",!1);Ve("z",0,0,"zoneAbbr");Ve("zz",0,0,"zoneName");function Xy(){return this._isUTC?"UTC":""}function Qy(){return this._isUTC?"Coordinated Universal Time":""}var ue=F0.prototype;ue.add=Ym;ue.calendar=Xm;ue.clone=Qm;ue.diff=oy;ue.endOf=gy;ue.format=uy;ue.from=cy;ue.fromNow=fy;ue.to=dy;ue.toNow=hy;ue.get=eb;ue.invalidAt=Ly;ue.isAfter=Jm;ue.isBefore=ey;ue.isBetween=ty;ue.isSame=ry;ue.isSameOrAfter=ny;ue.isSameOrBefore=iy;ue.isValid=xy;ue.lang=D4;ue.locale=I4;ue.localeData=R4;ue.max=xm;ue.min=wm;ue.parsingFlags=zy;ue.set=tb;ue.startOf=py;ue.subtract=Zm;ue.toArray=yy;ue.toObject=Cy;ue.toDate=my;ue.toISOString=sy;ue.inspect=ly;typeof Symbol!="undefined"&&Symbol.for!=null&&(ue[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"});ue.toJSON=wy;ue.toString=ay;ue.unix=by;ue.valueOf=vy;ue.creationData=_y;ue.eraName=Oy;ue.eraNarrow=Ty;ue.eraAbbr=Py;ue.eraYear=Ay;ue.year=m4;ue.isLeapYear=Cb;ue.weekYear=Hy;ue.isoWeekYear=By;ue.quarter=ue.quarters=Vy;ue.month=v4;ue.daysInMonth=bb;ue.week=ue.weeks=Sb;ue.isoWeek=ue.isoWeeks=Mb;ue.weeksInYear=Uy;ue.weeksInWeekYear=Yy;ue.isoWeeksInYear=Fy;ue.isoWeeksInISOWeekYear=Wy;ue.date=F4;ue.day=ue.days=Bb;ue.weekday=Fb;ue.isoWeekday=Wb;ue.dayOfYear=Gy;ue.hour=ue.hours=jb;ue.minute=ue.minutes=qy;ue.second=ue.seconds=jy;ue.millisecond=ue.milliseconds=W4;ue.utcOffset=Pm;ue.utc=Em;ue.local=Im;ue.parseZone=Dm;ue.hasAlignedHourOffset=Rm;ue.isDST=Nm;ue.isLocal=Hm;ue.isUtcOffset=Bm;ue.isUtc=T4;ue.isUTC=T4;ue.zoneAbbr=Xy;ue.zoneName=Qy;ue.dates=wi("dates accessor is deprecated. Use date instead.",F4);ue.months=wi("months accessor is deprecated. Use month instead",v4);ue.years=wi("years accessor is deprecated. Use year instead",m4);ue.zone=wi("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",Am);ue.isDSTShifted=wi("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",$m);function Jy(r){return Qt(r*1e3)}function eC(){return Qt.apply(null,arguments).parseZone()}function U4(r){return r}var Pt=ih.prototype;Pt.calendar=B8;Pt.longDateFormat=Y8;Pt.invalidDate=V8;Pt.ordinal=j8;Pt.preparse=U4;Pt.postformat=U4;Pt.relativeTime=X8;Pt.pastFuture=Q8;Pt.set=$8;Pt.eras=Sy;Pt.erasParse=My;Pt.erasConvertYear=ky;Pt.erasAbbrRegex=Iy;Pt.erasNameRegex=Ey;Pt.erasNarrowRegex=Dy;Pt.months=hb;Pt.monthsShort=pb;Pt.monthsParse=vb;Pt.monthsRegex=yb;Pt.monthsShortRegex=mb;Pt.week=xb;Pt.firstDayOfYear=_b;Pt.firstDayOfWeek=Lb;Pt.weekdays=Db;Pt.weekdaysMin=Nb;Pt.weekdaysShort=Rb;Pt.weekdaysParse=Hb;Pt.weekdaysRegex=Ub;Pt.weekdaysShortRegex=Yb;Pt.weekdaysMinRegex=Zb;Pt.isPM=Gb;Pt.meridiem=Kb;function A1(r,n,o,c){var f=ca(),p=_o().set(c,n);return f[o](p,r)}function Y4(r,n,o){if(la(r)&&(n=r,r=void 0),r=r||"",n!=null)return A1(r,n,o,"month");var c,f=[];for(c=0;c<12;c++)f[c]=A1(r,c,o,"month");return f}function Ch(r,n,o,c){typeof r=="boolean"?(la(n)&&(o=n,n=void 0),n=n||""):(n=r,o=n,r=!1,la(n)&&(o=n,n=void 0),n=n||"");var f=ca(),p=r?f._week.dow:0,b,k=[];if(o!=null)return A1(n,(o+p)%7,c,"day");for(b=0;b<7;b++)k[b]=A1(n,(b+p)%7,c,"day");return k}function tC(r,n){return Y4(r,n,"months")}function rC(r,n){return Y4(r,n,"monthsShort")}function nC(r,n,o){return Ch(r,n,o,"weekdays")}function iC(r,n,o){return Ch(r,n,o,"weekdaysShort")}function oC(r,n,o){return Ch(r,n,o,"weekdaysMin")}Ka("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(r){var n=r%10,o=mt(r%100/10)===1?"th":n===1?"st":n===2?"nd":n===3?"rd":"th";return r+o}});Se.lang=wi("moment.lang is deprecated. Use moment.locale instead.",Ka);Se.langData=wi("moment.langData is deprecated. Use moment.localeData instead.",ca);var ra=Math.abs;function aC(){var r=this._data;return this._milliseconds=ra(this._milliseconds),this._days=ra(this._days),this._months=ra(this._months),r.milliseconds=ra(r.milliseconds),r.seconds=ra(r.seconds),r.minutes=ra(r.minutes),r.hours=ra(r.hours),r.months=ra(r.months),r.years=ra(r.years),this}function Z4(r,n,o,c){var f=Ui(n,o);return r._milliseconds+=c*f._milliseconds,r._days+=c*f._days,r._months+=c*f._months,r._bubble()}function sC(r,n){return Z4(this,r,n,1)}function lC(r,n){return Z4(this,r,n,-1)}function Fp(r){return r<0?Math.floor(r):Math.ceil(r)}function uC(){var r=this._milliseconds,n=this._days,o=this._months,c=this._data,f,p,b,k,S;return r>=0&&n>=0&&o>=0||r<=0&&n<=0&&o<=0||(r+=Fp(Id(o)+n)*864e5,n=0,o=0),c.milliseconds=r%1e3,f=vi(r/1e3),c.seconds=f%60,p=vi(f/60),c.minutes=p%60,b=vi(p/60),c.hours=b%24,n+=vi(b/24),S=vi(V4(n)),o+=S,n-=Fp(Id(S)),k=vi(o/12),o%=12,c.days=n,c.months=o,c.years=k,this}function V4(r){return r*4800/146097}function Id(r){return r*146097/4800}function cC(r){if(!this.isValid())return NaN;var n,o,c=this._milliseconds;if(r=xi(r),r==="month"||r==="quarter"||r==="year")switch(n=this._days+c/864e5,o=this._months+V4(n),r){case"month":return o;case"quarter":return o/3;case"year":return o/12}else switch(n=this._days+Math.round(Id(this._months)),r){case"week":return n/7+c/6048e5;case"day":return n+c/864e5;case"hour":return n*24+c/36e5;case"minute":return n*1440+c/6e4;case"second":return n*86400+c/1e3;case"millisecond":return Math.floor(n*864e5)+c;default:throw new Error("Unknown unit "+r)}}function fC(){return this.isValid()?this._milliseconds+this._days*864e5+this._months%12*2592e6+mt(this._months/12)*31536e6:NaN}function fa(r){return function(){return this.as(r)}}var dC=fa("ms"),hC=fa("s"),pC=fa("m"),gC=fa("h"),vC=fa("d"),bC=fa("w"),mC=fa("M"),yC=fa("Q"),CC=fa("y");function wC(){return Ui(this)}function xC(r){return r=xi(r),this.isValid()?this[r+"s"]():NaN}function Qs(r){return function(){return this.isValid()?this._data[r]:NaN}}var zC=Qs("milliseconds"),LC=Qs("seconds"),_C=Qs("minutes"),SC=Qs("hours"),MC=Qs("days"),kC=Qs("months"),OC=Qs("years");function TC(){return vi(this.days()/7)}var na=Math.round,tu={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function PC(r,n,o,c,f){return f.relativeTime(n||1,!!o,r,c)}function AC(r,n,o,c){var f=Ui(r).abs(),p=na(f.as("s")),b=na(f.as("m")),k=na(f.as("h")),S=na(f.as("d")),O=na(f.as("M")),I=na(f.as("w")),U=na(f.as("y")),q=p<=o.ss&&["s",p]||p<o.s&&["ss",p]||b<=1&&["m"]||b<o.m&&["mm",b]||k<=1&&["h"]||k<o.h&&["hh",k]||S<=1&&["d"]||S<o.d&&["dd",S];return o.w!=null&&(q=q||I<=1&&["w"]||I<o.w&&["ww",I]),q=q||O<=1&&["M"]||O<o.M&&["MM",O]||U<=1&&["y"]||["yy",U],q[2]=n,q[3]=+r>0,q[4]=c,PC.apply(null,q)}function EC(r){return r===void 0?na:typeof r=="function"?(na=r,!0):!1}function IC(r,n){return tu[r]===void 0?!1:n===void 0?tu[r]:(tu[r]=n,r==="s"&&(tu.ss=n-1),!0)}function DC(r,n){if(!this.isValid())return this.localeData().invalidDate();var o=!1,c=tu,f,p;return typeof r=="object"&&(n=r,r=!1),typeof r=="boolean"&&(o=r),typeof n=="object"&&(c=Object.assign({},tu,n),n.s!=null&&n.ss==null&&(c.ss=n.s-1)),f=this.localeData(),p=AC(this,!o,c,f),o&&(p=f.pastFuture(+this,p)),f.postformat(p)}var yd=Math.abs;function Xl(r){return(r>0)-(r<0)||+r}function ef(){if(!this.isValid())return this.localeData().invalidDate();var r=yd(this._milliseconds)/1e3,n=yd(this._days),o=yd(this._months),c,f,p,b,k=this.asSeconds(),S,O,I,U;return k?(c=vi(r/60),f=vi(c/60),r%=60,c%=60,p=vi(o/12),o%=12,b=r?r.toFixed(3).replace(/\.?0+$/,""):"",S=k<0?"-":"",O=Xl(this._months)!==Xl(k)?"-":"",I=Xl(this._days)!==Xl(k)?"-":"",U=Xl(this._milliseconds)!==Xl(k)?"-":"",S+"P"+(p?O+p+"Y":"")+(o?O+o+"M":"")+(n?I+n+"D":"")+(f||c||r?"T":"")+(f?U+f+"H":"")+(c?U+c+"M":"")+(r?U+b+"S":"")):"P0D"}var St=Q1.prototype;St.isValid=Mm;St.abs=aC;St.add=sC;St.subtract=lC;St.as=cC;St.asMilliseconds=dC;St.asSeconds=hC;St.asMinutes=pC;St.asHours=gC;St.asDays=vC;St.asWeeks=bC;St.asMonths=mC;St.asQuarters=yC;St.asYears=CC;St.valueOf=fC;St._bubble=uC;St.clone=wC;St.get=xC;St.milliseconds=zC;St.seconds=LC;St.minutes=_C;St.hours=SC;St.days=MC;St.weeks=TC;St.months=kC;St.years=OC;St.humanize=DC;St.toISOString=ef;St.toString=ef;St.toJSON=ef;St.locale=I4;St.localeData=R4;St.toIsoString=wi("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",ef);St.lang=D4;Ve("X",0,0,"unix");Ve("x",0,0,"valueOf");Oe("x",q1);Oe("X",nb);Yt("X",function(r,n,o){o._d=new Date(parseFloat(r)*1e3)});Yt("x",function(r,n,o){o._d=new Date(mt(r))});//! moment.js
2949
+ Se.version="2.29.4";R8(Qt);Se.fn=ue;Se.min=zm;Se.max=Lm;Se.now=_m;Se.utc=_o;Se.unix=Jy;Se.months=tC;Se.isDate=B0;Se.locale=Ka;Se.invalid=U1;Se.duration=Ui;Se.isMoment=Fi;Se.weekdays=nC;Se.parseZone=eC;Se.localeData=ca;Se.isDuration=y1;Se.monthsShort=rC;Se.weekdaysMin=oC;Se.defineLocale=dh;Se.updateLocale=em;Se.locales=tm;Se.weekdaysShort=iC;Se.normalizeUnits=xi;Se.relativeTimeRounding=EC;Se.relativeTimeThreshold=IC;Se.calendarFormat=Km;Se.prototype=ue;Se.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};var RC=Object.defineProperty,NC=Object.getOwnPropertyDescriptor,ts=(r,n,o,c)=>{for(var f=c>1?void 0:c?NC(n,o):n,p=r.length-1,b;p>=0;p--)(b=r[p])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&RC(n,o,f),f};const G4=Ee("input-time"),q4="h:mma",j4=/^([1-9]|1[0-9]|2[0-3]):([0-5])([0-9])?(am?|pm?)?$/,K4=/^(1[3-9]|2[0-3]).*/,X4=/^(\d\d?)(am?|pm?)/,Q4=(r,n)=>({label:`${r}${n?` (${n})`:""}`,value:r}),$C=(r,n)=>{const c=Math.ceil(1440/r),f=Se().startOf("day");return Array(c).fill(null).map((p,b)=>{const S=(b>0?f.add(r,"minutes"):f).format(q4);return Q4(S,n)})},HC=(r,n)=>{const o=r.trim(),c=r.match(j4);if(!o||!c)return[];const[,f,p,b]=c,k=parseInt(f,10),S=k>12?`${k-12}`:`${k}`,O=`${p}${b||0}`,I=`${S}:${O}`;return["am","pm"].map(U=>Q4(`${I}${U}`,n))},BC=(r,{value:n})=>{const o=r.match(K4);if(!o||!n)return!1;const[,c]=o,f=`${parseInt(c,10)-12}`,p=r.substring(c.length).replace(":",""),b=`${f}:${p}`;return n.startsWith(b)&&n.endsWith("pm")},FC=(r,{value:n})=>{const o=r.match(X4);if(!o)return!1;const[,c,f]=o;return!!(n!=null&&n.replace(":00","").startsWith(`${c}${f}`))},WC=(...r)=>FC(...r)||BC(...r);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=$C(this.increment,this.suffix)}resetFreeformOptions(){this.freeformOptions=[]}handleCloseDropdown(){super.handleCloseDropdown(),this.resetFreeformOptions()}getItems(){return[...this.freeformOptions,...super.getItems()]}handleValueChange(){var r;this.valueLabel=(r=this.getItems().find(({value:n})=>n===this.value))==null?void 0:r.label,this.resetSearch()}isCustomQueryMatch(r){return this.query?WC(this.query,r):!1}handleNoResults(){if(this.hasQueryResults)return null;if(!this.isFreeform)return this.renderNoResultsMessage();this.freeformOptions=HC(this.query,this.suffix),this.hasResults=!!this.freeformOptions.length}renderFreeformOptions(){return this.isFreeform?this.hasQueryResults?this.renderOptionsData(this.freeformOptions):this.renderNoResultsMessage():null}renderDropdownContent(){return ee`
2913
2950
  ${this.handleNoResults()} ${this.renderOptionsData()}
2914
2951
  ${this.renderFreeformOptions()}
2915
2952
  `}};ts([F({attribute:"can-search",type:Boolean,reflect:!0})],exports.InputTime.prototype,"canSearch",2);ts([F({type:Number,reflect:!0})],exports.InputTime.prototype,"increment",2);ts([F({type:String,reflect:!0})],exports.InputTime.prototype,"suffix",2);ts([F({type:Boolean,attribute:"is-freeform",reflect:!0})],exports.InputTime.prototype,"isFreeform",2);ts([F({type:String})],exports.InputTime.prototype,"placeholder",2);ts([F({type:String,reflect:!0,attribute:"trailing-icon"})],exports.InputTime.prototype,"trailingIcon",2);ts([pt()],exports.InputTime.prototype,"freeformOptions",2);exports.InputTime=ts([Q(G4)],exports.InputTime);var UC=Object.defineProperty,YC=Object.getOwnPropertyDescriptor,wh=(r,n,o,c)=>{for(var f=c>1?void 0:c?YC(n,o):n,p=r.length-1,b;p>=0;p--)(b=r[p])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&UC(n,o,f),f};const J4=Ee("heading");exports.Heading=class extends Ue{constructor(){super(...arguments),this.size="base"}getLevel(){if(this.level)return this.level;switch(this.size){case"3xl":return 1;case"2xl":case"xl":case"lg":return 2;case"sm":return 4;default:return 3}}render(){var n;const r=`size-${(n=this.size)!=null?n:"base"}`;switch(this.getLevel()){case 1:return ee`<h1 class=${r}><slot></slot></h1>`;case 2:return ee`<h2 class=${r}><slot></slot></h2>`;case 3:return ee`<h3 class=${r}><slot></slot></h3>`;case 4:return ee`<h4 class=${r}><slot></slot></h4>`;case 5:return ee`<h5 class=${r}><slot></slot></h5>`;case 6:return ee`<h6 class=${r}><slot></slot></h6>`}}};exports.Heading.styles=ge`
@@ -3100,7 +3137,7 @@ Se.version="2.29.4";R8(Qt);Se.fn=ue;Se.min=zm;Se.max=Lm;Se.now=_m;Se.utc=_o;Se.u
3100
3137
  :host(:not([shown])) #panel {
3101
3138
  display: none;
3102
3139
  }
3103
- `;xh([F({type:String,reflect:!0})],exports.TabPanel.prototype,"name",2);xh([F({type:Boolean,reflect:!0})],exports.TabPanel.prototype,"shown",2);exports.TabPanel=xh([Q(l5)],exports.TabPanel);class ef extends CustomEvent{constructor(n){super("brz-tab-selected",{bubbles:!0,detail:{name:n}})}}class aw extends CustomEvent{constructor(n){super("brz-tab-deselected",{bubbles:!0,detail:{name:n}})}}var sw=Object.defineProperty,lw=Object.getOwnPropertyDescriptor,tf=(r,n,o,c)=>{for(var f=c>1?void 0:c?lw(n,o):n,p=r.length-1,b;p>=0;p--)(b=r[p])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&sw(n,o,f),f};const u5=Ee("tab");exports.Tab=class extends Ue{constructor(){super(...arguments),this.selected=!1,this.name="",this.link=""}updated(r){const n=r.get("selected");n===!1&&this.selected===!0?this.dispatchEvent(new ef(this.name)):n===!0&&this.selected===!1&&this.dispatchEvent(new aw(this.name)),super.updated(r)}render(){return this.link?ee`<a href=${this.link} id="tab"><slot></slot></a>`:ee`<div
3140
+ `;xh([F({type:String,reflect:!0})],exports.TabPanel.prototype,"name",2);xh([F({type:Boolean,reflect:!0})],exports.TabPanel.prototype,"shown",2);exports.TabPanel=xh([Q(l5)],exports.TabPanel);class tf extends CustomEvent{constructor(n){super("brz-tab-selected",{bubbles:!0,detail:{name:n}})}}class aw extends CustomEvent{constructor(n){super("brz-tab-deselected",{bubbles:!0,detail:{name:n}})}}var sw=Object.defineProperty,lw=Object.getOwnPropertyDescriptor,rf=(r,n,o,c)=>{for(var f=c>1?void 0:c?lw(n,o):n,p=r.length-1,b;p>=0;p--)(b=r[p])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&sw(n,o,f),f};const u5=Ee("tab");exports.Tab=class extends Ue{constructor(){super(...arguments),this.selected=!1,this.name="",this.link=""}updated(r){const n=r.get("selected");n===!1&&this.selected===!0?this.dispatchEvent(new tf(this.name)):n===!0&&this.selected===!1&&this.dispatchEvent(new aw(this.name)),super.updated(r)}render(){return this.link?ee`<a href=${this.link} id="tab"><slot></slot></a>`:ee`<div
3104
3141
  tabindex="0"
3105
3142
  role="tab"
3106
3143
  aria-selected=${this.selected}
@@ -3128,7 +3165,7 @@ Se.version="2.29.4";R8(Qt);Se.fn=ue;Se.min=zm;Se.max=Lm;Se.now=_m;Se.utc=_o;Se.u
3128
3165
  #tab:hover {
3129
3166
  color: var(--brz-color-neutral-850);
3130
3167
  }
3131
- `;tf([F({type:Boolean,reflect:!0})],exports.Tab.prototype,"selected",2);tf([F({type:String,reflect:!0})],exports.Tab.prototype,"name",2);tf([F({type:String,reflect:!0})],exports.Tab.prototype,"link",2);exports.Tab=tf([Q(u5)],exports.Tab);var uw=Object.defineProperty,cw=Object.getOwnPropertyDescriptor,rf=(r,n,o,c)=>{for(var f=c>1?void 0:c?cw(n,o):n,p=r.length-1,b;p>=0;p--)(b=r[p])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&uw(n,o,f),f};const c5=Ee("tab-bar");exports.TabBar=class extends Ue{constructor(){super(...arguments),this.controlled=!1,this.selected="",this.tabs=[]}handleSlotChange(){var o,c,f;const r=(o=this.shadowRoot)==null?void 0:o.querySelector("slot");if(!r){this.tabs=[];return}let n=Array.from(r.assignedElements());for(;n[0]instanceof HTMLSlotElement;)n=Array.from(n[0].assignedElements());this.tabs=n.filter(p=>p instanceof exports.Tab&&!!p.name),this.controlled||(this.selected||(this.selected=(f=(c=this.tabs.find(p=>p.selected))==null?void 0:c.name)!=null?f:""),!this.selected&&this.tabs.length&&(this.selected=this.tabs[0].name,this.tabs[0].selected=!0)),this.updateSelectedTab()}handleClick(r){if(r.target instanceof exports.Tab){const{name:n}=r.target;n&&(this.controlled||(this.selected=n),this.dispatchEvent(new ef(n)))}}updated(r){r.has("selected")&&this.updateSelectedTab()}updateSelectedTab(){this.tabs.forEach(r=>{const n=r.name===this.selected;n!==r.selected&&(r.selected=n)})}render(){return ee`
3168
+ `;rf([F({type:Boolean,reflect:!0})],exports.Tab.prototype,"selected",2);rf([F({type:String,reflect:!0})],exports.Tab.prototype,"name",2);rf([F({type:String,reflect:!0})],exports.Tab.prototype,"link",2);exports.Tab=rf([Q(u5)],exports.Tab);var uw=Object.defineProperty,cw=Object.getOwnPropertyDescriptor,nf=(r,n,o,c)=>{for(var f=c>1?void 0:c?cw(n,o):n,p=r.length-1,b;p>=0;p--)(b=r[p])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&uw(n,o,f),f};const c5=Ee("tab-bar");exports.TabBar=class extends Ue{constructor(){super(...arguments),this.controlled=!1,this.selected="",this.tabs=[]}handleSlotChange(){var o,c,f;const r=(o=this.shadowRoot)==null?void 0:o.querySelector("slot");if(!r){this.tabs=[];return}let n=Array.from(r.assignedElements());for(;n[0]instanceof HTMLSlotElement;)n=Array.from(n[0].assignedElements());this.tabs=n.filter(p=>p instanceof exports.Tab&&!!p.name),this.controlled||(this.selected||(this.selected=(f=(c=this.tabs.find(p=>p.selected))==null?void 0:c.name)!=null?f:""),!this.selected&&this.tabs.length&&(this.selected=this.tabs[0].name,this.tabs[0].selected=!0)),this.updateSelectedTab()}handleClick(r){if(r.target instanceof exports.Tab){const{name:n}=r.target;n&&(this.controlled||(this.selected=n),this.dispatchEvent(new tf(n)))}}updated(r){r.has("selected")&&this.updateSelectedTab()}updateSelectedTab(){this.tabs.forEach(r=>{const n=r.name===this.selected;n!==r.selected&&(r.selected=n)})}render(){return ee`
3132
3169
  <brz-row id="tabbar" @click=${this.handleClick}>
3133
3170
  <slot @slotchange=${this.handleSlotChange}></slot>
3134
3171
  </brz-row>
@@ -3150,7 +3187,7 @@ Se.version="2.29.4";R8(Qt);Se.fn=ue;Se.min=zm;Se.max=Lm;Se.now=_m;Se.utc=_o;Se.u
3150
3187
  top: 0;
3151
3188
  z-index: 1;
3152
3189
  }
3153
- `;rf([F({type:Boolean})],exports.TabBar.prototype,"controlled",2);rf([F({type:String})],exports.TabBar.prototype,"selected",2);rf([pt()],exports.TabBar.prototype,"tabs",2);exports.TabBar=rf([Q(c5)],exports.TabBar);var fw=Object.defineProperty,dw=Object.getOwnPropertyDescriptor,zh=(r,n,o,c)=>{for(var f=c>1?void 0:c?dw(n,o):n,p=r.length-1,b;p>=0;p--)(b=r[p])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&fw(n,o,f),f};const f5=Ee("tabs");exports.Tabs=class extends Ue{constructor(){super(...arguments),this.selected="",this.panels=[]}handleSlotChange(){var n,o,c;const r=(n=this.shadowRoot)==null?void 0:n.querySelector("slot:not([name])");if(this.panels=[],!!r){for(const f of r.assignedElements())if(f instanceof exports.TabPanel)this.panels.push(f);else{const p=f.querySelectorAll("brz-tab-panel"),b=f.querySelectorAll("sp-tab-panel");this.panels.push(...Array.from(p.length?p:b))}this.selected||(this.selected=(c=(o=this.panels.find(f=>f.shown))==null?void 0:o.name)!=null?c:""),!this.selected&&this.panels.length&&(this.selected=this.panels[0].name),this.updatePanelVisibility()}}updatePanelVisibility(){this.panels.forEach(r=>{const n=r.name===this.selected;n!==r.shown&&(r.shown=n)})}handleTabSelected(r){this.selected=r.detail.name,this.updatePanelVisibility(),r.stopPropagation(),this.dispatchEvent(new ef(this.selected))}render(){return ee`
3190
+ `;nf([F({type:Boolean})],exports.TabBar.prototype,"controlled",2);nf([F({type:String})],exports.TabBar.prototype,"selected",2);nf([pt()],exports.TabBar.prototype,"tabs",2);exports.TabBar=nf([Q(c5)],exports.TabBar);var fw=Object.defineProperty,dw=Object.getOwnPropertyDescriptor,zh=(r,n,o,c)=>{for(var f=c>1?void 0:c?dw(n,o):n,p=r.length-1,b;p>=0;p--)(b=r[p])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&fw(n,o,f),f};const f5=Ee("tabs");exports.Tabs=class extends Ue{constructor(){super(...arguments),this.selected="",this.panels=[]}handleSlotChange(){var n,o,c;const r=(n=this.shadowRoot)==null?void 0:n.querySelector("slot:not([name])");if(this.panels=[],!!r){for(const f of r.assignedElements())if(f instanceof exports.TabPanel)this.panels.push(f);else{const p=f.querySelectorAll("brz-tab-panel"),b=f.querySelectorAll("sp-tab-panel");this.panels.push(...Array.from(p.length?p:b))}this.selected||(this.selected=(c=(o=this.panels.find(f=>f.shown))==null?void 0:o.name)!=null?c:""),!this.selected&&this.panels.length&&(this.selected=this.panels[0].name),this.updatePanelVisibility()}}updatePanelVisibility(){this.panels.forEach(r=>{const n=r.name===this.selected;n!==r.shown&&(r.shown=n)})}handleTabSelected(r){this.selected=r.detail.name,this.updatePanelVisibility(),r.stopPropagation(),this.dispatchEvent(new tf(this.selected))}render(){return ee`
3154
3191
  <brz-tab-bar
3155
3192
  controlled
3156
3193
  selected=${this.selected}
@@ -3199,7 +3236,7 @@ Se.version="2.29.4";R8(Qt);Se.fn=ue;Se.min=zm;Se.max=Lm;Se.now=_m;Se.utc=_o;Se.u
3199
3236
  .extra-wide {
3200
3237
  padding: 0 6px;
3201
3238
  }
3202
- `;bu([F({type:String,reflect:!0})],exports.Badge.prototype,"theme",2);bu([F({type:Number,reflect:!0})],exports.Badge.prototype,"limit",2);bu([F({type:String||Number,reflect:!0})],exports.Badge.prototype,"content",2);bu([pt()],exports.Badge.prototype,"deafultCharacterLimit",2);bu([pt()],exports.Badge.prototype,"deafultNumberLimit",2);exports.Badge=bu([Q(d5)],exports.Badge);const{range:nf}=g8;function gw(r,n,o){return[1,null,...nf(r-n,r+n+1),null,o]}function vw(r,n){return[1,null,...nf(r-(n-3),r+1)]}function bw(r,n){return[...nf(1,n-1),null,r]}function mw(r,n,o){return r>1+1+n*2&&r<o-1-n*2}function yw(r,n=1,o=1){const c=5+o*2;if(r<=c)return nf(1,r+1);if(mw(n,o,r))return gw(n,o,r);if(n+(c-3)>=r)return vw(r,c);if(n<c)return bw(r,c)}var Cw=Object.defineProperty,ww=Object.getOwnPropertyDescriptor,ko=(r,n,o,c)=>{for(var f=c>1?void 0:c?ww(n,o):n,p=r.length-1,b;p>=0;p--)(b=r[p])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&Cw(n,o,f),f};const Lh=Ee("basic-pagination"),_h=Ee("pagination");class xw extends CustomEvent{constructor(n){super(`${Lh}-${n}`,{bubbles:!0,composed:!0})}}exports.BasicPagination=class extends Ue{constructor(){super(...arguments),this.hasPreviousPage=!1,this.hasNextPage=!1}emit(r){this.dispatchEvent(new xw(r))}handlePageChange(r){this.emit(`${r}-page`)}render(){return ee`
3239
+ `;bu([F({type:String,reflect:!0})],exports.Badge.prototype,"theme",2);bu([F({type:Number,reflect:!0})],exports.Badge.prototype,"limit",2);bu([F({type:String||Number,reflect:!0})],exports.Badge.prototype,"content",2);bu([pt()],exports.Badge.prototype,"deafultCharacterLimit",2);bu([pt()],exports.Badge.prototype,"deafultNumberLimit",2);exports.Badge=bu([Q(d5)],exports.Badge);const{range:of}=g8;function gw(r,n,o){return[1,null,...of(r-n,r+n+1),null,o]}function vw(r,n){return[1,null,...of(r-(n-3),r+1)]}function bw(r,n){return[...of(1,n-1),null,r]}function mw(r,n,o){return r>1+1+n*2&&r<o-1-n*2}function yw(r,n=1,o=1){const c=5+o*2;if(r<=c)return of(1,r+1);if(mw(n,o,r))return gw(n,o,r);if(n+(c-3)>=r)return vw(r,c);if(n<c)return bw(r,c)}var Cw=Object.defineProperty,ww=Object.getOwnPropertyDescriptor,Mo=(r,n,o,c)=>{for(var f=c>1?void 0:c?ww(n,o):n,p=r.length-1,b;p>=0;p--)(b=r[p])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&Cw(n,o,f),f};const Lh=Ee("basic-pagination"),_h=Ee("pagination");class xw extends CustomEvent{constructor(n){super(`${Lh}-${n}`,{bubbles:!0,composed:!0})}}exports.BasicPagination=class extends Ue{constructor(){super(...arguments),this.hasPreviousPage=!1,this.hasNextPage=!1}emit(r){this.dispatchEvent(new xw(r))}handlePageChange(r){this.emit(`${r}-page`)}render(){return ee`
3203
3240
  <brz-button-group role="navigation" aria-label="Pagination Navigation">
3204
3241
  <brz-button
3205
3242
  compact
@@ -3225,7 +3262,7 @@ Se.version="2.29.4";R8(Qt);Se.fn=ue;Se.min=zm;Se.max=Lm;Se.now=_m;Se.utc=_o;Se.u
3225
3262
  brz-button-group {
3226
3263
  --brz-spacing-2: var(--brz-spacing-1);
3227
3264
  }
3228
- `;ko([F({type:Boolean,attribute:"has-previous-page",reflect:!0})],exports.BasicPagination.prototype,"hasPreviousPage",2);ko([F({type:Boolean,attribute:"has-next-page",reflect:!0})],exports.BasicPagination.prototype,"hasNextPage",2);exports.BasicPagination=ko([Q(Lh)],exports.BasicPagination);class zw extends CustomEvent{constructor(n,o){super(`${_h}-${n}`,{bubbles:!0,composed:!0,detail:{page:o}})}}exports.Pagination=class extends Ue{constructor(){super(...arguments),this.currentPageSiblings=1}emit(r,n){this.dispatchEvent(new zw(r,n))}onPageChange(r){this.emit("page-change",r)}isCurrentPage(r){return r===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 r;return this.totalPages=Math.max(1,Math.ceil(this.totalItems/this.pageSize)),this.pages=yw(this.totalPages,this.currentPage,this.currentPageSiblings),ee`
3265
+ `;Mo([F({type:Boolean,attribute:"has-previous-page",reflect:!0})],exports.BasicPagination.prototype,"hasPreviousPage",2);Mo([F({type:Boolean,attribute:"has-next-page",reflect:!0})],exports.BasicPagination.prototype,"hasNextPage",2);exports.BasicPagination=Mo([Q(Lh)],exports.BasicPagination);class zw extends CustomEvent{constructor(n,o){super(`${_h}-${n}`,{bubbles:!0,composed:!0,detail:{page:o}})}}exports.Pagination=class extends Ue{constructor(){super(...arguments),this.currentPageSiblings=1}emit(r,n){this.dispatchEvent(new zw(r,n))}onPageChange(r){this.emit("page-change",r)}isCurrentPage(r){return r===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 r;return this.totalPages=Math.max(1,Math.ceil(this.totalItems/this.pageSize)),this.pages=yw(this.totalPages,this.currentPage,this.currentPageSiblings),ee`
3229
3266
  <brz-row role="navigation" aria-label="Pagination Navigation">
3230
3267
  <button
3231
3268
  role="link"
@@ -3326,7 +3363,7 @@ Se.version="2.29.4";R8(Qt);Se.fn=ue;Se.min=zm;Se.max=Lm;Se.now=_m;Se.utc=_o;Se.u
3326
3363
  .page {
3327
3364
  padding: 0 var(--brz-spacing-2);
3328
3365
  }
3329
- `;ko([F({type:Number,attribute:"total-items",reflect:!0})],exports.Pagination.prototype,"totalItems",2);ko([F({type:Number,attribute:"page-size",reflect:!0})],exports.Pagination.prototype,"pageSize",2);ko([F({type:Number,attribute:"current-page",reflect:!0})],exports.Pagination.prototype,"currentPage",2);ko([pt()],exports.Pagination.prototype,"currentPageSiblings",2);ko([pt()],exports.Pagination.prototype,"totalPages",2);ko([pt()],exports.Pagination.prototype,"pages",2);exports.Pagination=ko([Q(_h)],exports.Pagination);var Lw=Object.defineProperty,_w=Object.getOwnPropertyDescriptor,Z0=(r,n,o,c)=>{for(var f=c>1?void 0:c?_w(n,o):n,p=r.length-1,b;p>=0;p--)(b=r[p])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&Lw(n,o,f),f};const Sw=["info","success","warning","error"],h5=Ee("alert");class kw extends CustomEvent{constructor(n){super(n,{bubbles:!0,composed:!0})}}exports.Alert=class extends Ue{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 kw("brz-alert-cleared"))}render(){return this.cleared?null:ee`<div class="alert-container">
3366
+ `;Mo([F({type:Number,attribute:"total-items",reflect:!0})],exports.Pagination.prototype,"totalItems",2);Mo([F({type:Number,attribute:"page-size",reflect:!0})],exports.Pagination.prototype,"pageSize",2);Mo([F({type:Number,attribute:"current-page",reflect:!0})],exports.Pagination.prototype,"currentPage",2);Mo([pt()],exports.Pagination.prototype,"currentPageSiblings",2);Mo([pt()],exports.Pagination.prototype,"totalPages",2);Mo([pt()],exports.Pagination.prototype,"pages",2);exports.Pagination=Mo([Q(_h)],exports.Pagination);var Lw=Object.defineProperty,_w=Object.getOwnPropertyDescriptor,Z0=(r,n,o,c)=>{for(var f=c>1?void 0:c?_w(n,o):n,p=r.length-1,b;p>=0;p--)(b=r[p])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&Lw(n,o,f),f};const Sw=["info","success","warning","error"],h5=Ee("alert");class Mw extends CustomEvent{constructor(n){super(n,{bubbles:!0,composed:!0})}}exports.Alert=class extends Ue{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 Mw("brz-alert-cleared"))}render(){return this.cleared?null:ee`<div class="alert-container">
3330
3367
  <brz-icon class="type-icon" icon="${this.getIcon()}"></brz-icon>
3331
3368
  <div role="alert">
3332
3369
  ${this.title?ee`<div><brz-heading>${this.title}</brz-heading></div>`:ee``}
@@ -3505,7 +3542,7 @@ Se.version="2.29.4";R8(Qt);Se.fn=ue;Se.min=zm;Se.max=Lm;Se.now=_m;Se.utc=_o;Se.u
3505
3542
  <circle cx="35.1426" cy="45.4286" r="4.28571" fill="white"/>
3506
3543
  <circle cx="22.1426" cy="73.5714" r="19.2857" fill="#CACFD9" stroke="white" stroke-width="3"/>
3507
3544
  <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"/>
3508
- <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"/>`},Mw=Object.keys(Sh);var Ow=Object.defineProperty,Tw=Object.getOwnPropertyDescriptor,of=(r,n,o,c)=>{for(var f=c>1?void 0:c?Tw(n,o):n,p=r.length-1,b;p>=0;p--)(b=r[p])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&Ow(n,o,f),f};const p5=Ee("illustration");exports.Illustration=class extends Ue{constructor(){super(...arguments),this.illustration="",this.altTitle="",this.altDescription=""}render(){const r=Sh[this.illustration],n=Math.floor(Math.random()*100),o=`${this.illustration}Title${n}`,c=`${this.illustration}Desc${n}`;if(!r){console.warn(`Can't find illustration ${this.illustration}`);return}return ee`<svg
3545
+ <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"/>`},kw=Object.keys(Sh);var Ow=Object.defineProperty,Tw=Object.getOwnPropertyDescriptor,af=(r,n,o,c)=>{for(var f=c>1?void 0:c?Tw(n,o):n,p=r.length-1,b;p>=0;p--)(b=r[p])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&Ow(n,o,f),f};const p5=Ee("illustration");exports.Illustration=class extends Ue{constructor(){super(...arguments),this.illustration="",this.altTitle="",this.altDescription=""}render(){const r=Sh[this.illustration],n=Math.floor(Math.random()*100),o=`${this.illustration}Title${n}`,c=`${this.illustration}Desc${n}`;if(!r){console.warn(`Can't find illustration ${this.illustration}`);return}return ee`<svg
3509
3546
  aria-hidden=${!this.altTitle.length||!this.altDescription.length}
3510
3547
  role="img"
3511
3548
  aria-labelledby=${`${o} ${c}`}
@@ -3521,7 +3558,7 @@ Se.version="2.29.4";R8(Qt);Se.fn=ue;Se.min=zm;Se.max=Lm;Se.now=_m;Se.utc=_o;Se.u
3521
3558
  /* to get rid of extra height caused by white space */
3522
3559
  line-height: 0;
3523
3560
  }
3524
- `;of([F({type:String})],exports.Illustration.prototype,"illustration",2);of([F({type:String,attribute:"alt-title"})],exports.Illustration.prototype,"altTitle",2);of([F({type:String,attribute:"alt-description"})],exports.Illustration.prototype,"altDescription",2);exports.Illustration=of([Q(p5)],exports.Illustration);var Pw=Object.defineProperty,Aw=Object.getOwnPropertyDescriptor,Ew=(r,n,o,c)=>{for(var f=c>1?void 0:c?Aw(n,o):n,p=r.length-1,b;p>=0;p--)(b=r[p])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&Pw(n,o,f),f};const g5=Ee("header");exports.Header=class extends Ue{render(){return ee`<slot></slot>`}};exports.Header.styles=ge`
3561
+ `;af([F({type:String})],exports.Illustration.prototype,"illustration",2);af([F({type:String,attribute:"alt-title"})],exports.Illustration.prototype,"altTitle",2);af([F({type:String,attribute:"alt-description"})],exports.Illustration.prototype,"altDescription",2);exports.Illustration=af([Q(p5)],exports.Illustration);var Pw=Object.defineProperty,Aw=Object.getOwnPropertyDescriptor,Ew=(r,n,o,c)=>{for(var f=c>1?void 0:c?Aw(n,o):n,p=r.length-1,b;p>=0;p--)(b=r[p])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&Pw(n,o,f),f};const g5=Ee("header");exports.Header=class extends Ue{render(){return ee`<slot></slot>`}};exports.Header.styles=ge`
3525
3562
  :host {
3526
3563
  display: block;
3527
3564
  padding: var(--brz-spacing-5);
@@ -4205,7 +4242,7 @@ Se.version="2.29.4";R8(Qt);Se.fn=ue;Se.min=zm;Se.max=Lm;Se.now=_m;Se.utc=_o;Se.u
4205
4242
  font-weight: var(--brz-font-weight-normal);
4206
4243
  color: var(--brz-color-text);
4207
4244
  }
4208
- `];exports.GlobalStyles=ex([Q(w5)],exports.GlobalStyles);var tx=Object.defineProperty,rx=Object.getOwnPropertyDescriptor,kh=(r,n,o,c)=>{for(var f=c>1?void 0:c?rx(n,o):n,p=r.length-1,b;p>=0;p--)(b=r[p])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&tx(n,o,f),f};const x5=Ee("paper");exports.Paper=class extends Ue{constructor(){super(...arguments),this.hasBorder=!1,this.level=1}render(){return ee` <div class="container"><slot></slot></div> `}};exports.Paper.styles=ge`
4245
+ `];exports.GlobalStyles=ex([Q(w5)],exports.GlobalStyles);var tx=Object.defineProperty,rx=Object.getOwnPropertyDescriptor,Mh=(r,n,o,c)=>{for(var f=c>1?void 0:c?rx(n,o):n,p=r.length-1,b;p>=0;p--)(b=r[p])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&tx(n,o,f),f};const x5=Ee("paper");exports.Paper=class extends Ue{constructor(){super(...arguments),this.hasBorder=!1,this.level=1}render(){return ee` <div class="container"><slot></slot></div> `}};exports.Paper.styles=ge`
4209
4246
  :host {
4210
4247
  display: block;
4211
4248
  position: relative;
@@ -4229,4 +4266,4 @@ Se.version="2.29.4";R8(Qt);Se.fn=ue;Se.min=zm;Se.max=Lm;Se.now=_m;Se.utc=_o;Se.u
4229
4266
  :host([has-border]) .container {
4230
4267
  border: 1px solid var(--brz-color-neutral-300);
4231
4268
  }
4232
- `;kh([F({type:Boolean,attribute:"has-border",reflect:!0})],exports.Paper.prototype,"hasBorder",2);kh([F({type:Number,reflect:!0})],exports.Paper.prototype,"level",2);exports.Paper=kh([Q(x5)],exports.Paper);var nx=Object.defineProperty,ix=Object.getOwnPropertyDescriptor,De=(r,n,o,c)=>{for(var f=c>1?void 0:c?ix(n,o):n,p=r.length-1,b;p>=0;p--)(b=r[p])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&nx(n,o,f),f};exports.LegacyGlobalStyles=class extends exports.GlobalStyles{};exports.LegacyGlobalStyles=De([Q("sp-global-styles")],exports.LegacyGlobalStyles);exports.LegacyAlert=class extends exports.Alert{};exports.LegacyAlert=De([Q("sp-alert")],exports.LegacyAlert);exports.LegacyAvatar=class extends exports.Avatar{};exports.LegacyAvatar=De([Q("sp-avatar")],exports.LegacyAvatar);exports.LegacyAvatarGroup=class extends exports.AvatarGroup{};exports.LegacyAvatarGroup=De([Q("sp-avatar-group")],exports.LegacyAvatarGroup);exports.LegacyButton=class extends exports.Button{};exports.LegacyButton=De([Q("sp-button")],exports.LegacyButton);exports.LegacyButtonGroup=class extends exports.ButtonGroup{};exports.LegacyButtonGroup=De([Q("sp-button-group")],exports.LegacyButtonGroup);exports.LegacyBadge=class extends exports.Badge{};exports.LegacyBadge=De([Q("sp-badge")],exports.LegacyBadge);exports.LegacyComboBox=class extends exports.ComboBox{};exports.LegacyComboBox=De([Q("sp-combo-box")],exports.LegacyComboBox);exports.LegacyComboBoxOption=class extends exports.ComboBoxOption{};exports.LegacyComboBoxOption=De([Q("sp-combo-box-option")],exports.LegacyComboBoxOption);exports.LegacyConfirmationDialog=class extends exports.ConfirmationDialog{};exports.LegacyConfirmationDialog=De([Q("sp-confirmation-dialog")],exports.LegacyConfirmationDialog);exports.LegacyHeading=class extends exports.Heading{};exports.LegacyHeading=De([Q("sp-heading")],exports.LegacyHeading);exports.LegacyLink=class extends exports.Link{};exports.LegacyLink=De([Q("sp-link")],exports.LegacyLink);exports.LegacyLinkButton=class extends exports.LinkButton{};exports.LegacyLinkButton=De([Q("sp-link-button")],exports.LegacyLinkButton);exports.LegacyLoadingSpinner=class extends exports.LoadingSpinner{};exports.LegacyLoadingSpinner=De([Q("sp-loading-spinner")],exports.LegacyLoadingSpinner);exports.LegacyLozenge=class extends exports.Lozenge{};exports.LegacyLozenge=De([Q("sp-lozenge")],exports.LegacyLozenge);exports.LegacyBasicPagination=class extends exports.BasicPagination{};exports.LegacyBasicPagination=De([Q("sp-basic-pagination")],exports.LegacyBasicPagination);exports.LegacyPagination=class extends exports.Pagination{};exports.LegacyPagination=De([Q("sp-pagination")],exports.LegacyPagination);exports.LegacyPopover=class extends exports.Popover{};exports.LegacyPopover=De([Q("sp-popover")],exports.LegacyPopover);exports.LegacyPurePopover=class extends exports.PurePopover{};exports.LegacyPurePopover=De([Q("sp-pure-popover")],exports.LegacyPurePopover);exports.LegacyRecordRow=class extends exports.RecordRow{};exports.LegacyRecordRow=De([Q("sp-record-row")],exports.LegacyRecordRow);exports.LegacyRecordRowLabel=class extends exports.RecordRowLabel{};exports.LegacyRecordRowLabel=De([Q("sp-record-row-label")],exports.LegacyRecordRowLabel);exports.LegacyTooltip=class extends exports.Tooltip{};exports.LegacyTooltip=De([Q("sp-tooltip")],exports.LegacyTooltip);exports.LegacyVirtualList=class extends exports.VirtualList{};exports.LegacyVirtualList=De([Q("sp-virtual-list")],exports.LegacyVirtualList);exports.LegacyFadeInOut=class extends exports.FadeInOut{};exports.LegacyFadeInOut=De([Q("sp-fade-in-out")],exports.LegacyFadeInOut);exports.LegacyPaper=class extends exports.Paper{};exports.LegacyPaper=De([Q("sp-paper")],exports.LegacyPaper);exports.LegacyRow=class extends exports.Row{};exports.LegacyRow=De([Q("sp-row")],exports.LegacyRow);exports.LegacyColumn=class extends exports.Column{};exports.LegacyColumn=De([Q("sp-column")],exports.LegacyColumn);exports.LegacyFooter=class extends exports.Footer{};exports.LegacyFooter=De([Q("sp-footer")],exports.LegacyFooter);exports.LegacyHeaderFooterPage=class extends exports.HeaderFooterPage{};exports.LegacyHeaderFooterPage=De([Q("sp-header-footer-page")],exports.LegacyHeaderFooterPage);exports.LegacyHeader=class extends exports.Header{};exports.LegacyHeader=De([Q("sp-header")],exports.LegacyHeader);exports.LegacyResponsiveColumns=class extends exports.ResponsiveColumns{};exports.LegacyResponsiveColumns=De([Q("sp-responsive-columns")],exports.LegacyResponsiveColumns);exports.LegacySplitRow=class extends exports.SplitRow{};exports.LegacySplitRow=De([Q("sp-split-row")],exports.LegacySplitRow);exports.LegacyActionBar=class extends exports.ActionBar{};exports.LegacyActionBar=De([Q("sp-action-bar")],exports.LegacyActionBar);exports.LegacyIllustration=class extends exports.Illustration{};exports.LegacyIllustration=De([Q("sp-illustration")],exports.LegacyIllustration);exports.LegacyIcon=class extends exports.Icon{};exports.LegacyIcon=De([Q("sp-icon")],exports.LegacyIcon);exports.LegacyModalHeader=class extends exports.ModalHeader{};exports.LegacyModalHeader=De([Q("sp-modal-header")],exports.LegacyModalHeader);exports.LegacyModalBody=class extends exports.ModalBody{};exports.LegacyModalBody=De([Q("sp-modal-body")],exports.LegacyModalBody);exports.LegacyModalFooter=class extends exports.ModalFooter{};exports.LegacyModalFooter=De([Q("sp-modal-footer")],exports.LegacyModalFooter);exports.LegacyModal=class extends exports.Modal{};exports.LegacyModal=De([Q("sp-modal")],exports.LegacyModal);exports.LegacySideNavigationItem=class extends exports.SideNavigationItem{};exports.LegacySideNavigationItem=De([Q("sp-side-navigation-item")],exports.LegacySideNavigationItem);exports.LegacySideNavigation=class extends exports.SideNavigation{};exports.LegacySideNavigation=De([Q("sp-side-navigation")],exports.LegacySideNavigation);exports.LegacyTabs=class extends exports.Tabs{};exports.LegacyTabs=De([Q("sp-tabs")],exports.LegacyTabs);exports.LegacyTabPanel=class extends exports.TabPanel{};exports.LegacyTabPanel=De([Q("sp-tab-panel")],exports.LegacyTabPanel);exports.LegacyTabBar=class extends exports.TabBar{};exports.LegacyTabBar=De([Q("sp-tab-bar")],exports.LegacyTabBar);exports.LegacyTab=class extends exports.Tab{};exports.LegacyTab=De([Q("sp-tab")],exports.LegacyTab);exports.LegacyInputCheckbox=class extends exports.InputCheckbox{};exports.LegacyInputCheckbox=De([Q("sp-input-checkbox")],exports.LegacyInputCheckbox);exports.LegacyInputCode=class extends exports.InputCode{};exports.LegacyInputCode=De([Q("sp-input-code")],exports.LegacyInputCode);exports.LegacyInputError=class extends exports.InputError{};exports.LegacyInputError=De([Q("sp-input-error")],exports.LegacyInputError);exports.LegacyInputGuide=class extends S1{};exports.LegacyInputGuide=De([Q("sp-input-guide")],exports.LegacyInputGuide);exports.LegacyInputMultiselect=class extends exports.InputMultiselect{};exports.LegacyInputMultiselect=De([Q("sp-input-multiselect")],exports.LegacyInputMultiselect);exports.LegacyInputNumber=class extends exports.InputNumber{};exports.LegacyInputNumber=De([Q("sp-input-number")],exports.LegacyInputNumber);exports.LegacyInputRadio=class extends exports.InputRadio{};exports.LegacyInputRadio=De([Q("sp-input-radio-group")],exports.LegacyInputRadio);exports.LegacyInputRadioOption=class extends exports.InputRadioOption{};exports.LegacyInputRadioOption=De([Q("sp-input-radio-option")],exports.LegacyInputRadioOption);exports.LegacyMenu=class extends exports.Menu{};exports.LegacyMenu=De([Q("sp-menu")],exports.LegacyMenu);exports.LegacyMenuItem=class extends exports.MenuItem{};exports.LegacyMenuItem=De([Q("sp-menu-item")],exports.LegacyMenuItem);exports.LegacyInputSelect=class extends exports.InputSelect{};exports.LegacyInputSelect=De([Q("sp-input-select")],exports.LegacyInputSelect);exports.LegacyInputText=class extends exports.InputText{};exports.LegacyInputText=De([Q("sp-input-text")],exports.LegacyInputText);exports.LegacyInputTextarea=class extends exports.InputTextarea{};exports.LegacyInputTextarea=De([Q("sp-input-textarea")],exports.LegacyInputTextarea);exports.LegacyInputTime=class extends exports.InputTime{};exports.LegacyInputTime=De([Q("sp-input-time")],exports.LegacyInputTime);exports.LegacyInputLabel=class extends exports.InputLabel{};exports.LegacyInputLabel=De([Q("sp-input-label")],exports.LegacyInputLabel);exports.LegacyLabeledInput=class extends exports.LabeledInput{};exports.LegacyLabeledInput=De([Q("sp-labeled-input")],exports.LegacyLabeledInput);exports.ACTION_BAR=k2;exports.ALERT=h5;exports.AVATAR=v2;exports.AVATAR_GROUP=b2;exports.BADGE=d5;exports.BASIC_PAGINATION=Lh;exports.BUTTON=Gd;exports.BUTTON_GROUP=x2;exports.COLUMN=y2;exports.COMBO_BOX=z2;exports.COMBO_BOX_OPTION=L2;exports.CONFIRMATION_DIALOG=I2;exports.ConfirmationDialogCancel=D2;exports.ConfirmationDialogConfirm=R2;exports.DeleteLozengeEvent=e4;exports.FADE_IN_OUT=r2;exports.FOOTER=m5;exports.GLOBAL_STYLES=w5;exports.HEADER=g5;exports.HEADER_FOOTER_PAGE=v5;exports.HEADING=J4;exports.ICON=O2;exports.ILLUSTRATION=p5;exports.INPUT_CHECKBOX=N2;exports.INPUT_CODE=j2;exports.INPUT_ERROR=$2;exports.INPUT_LABEL=B2;exports.INPUT_MULTISELECT=t4;exports.INPUT_NUMBER=U2;exports.INPUT_RADIO_GROUP=V2;exports.INPUT_RADIO_OPTION=G2;exports.INPUT_SELECT=Q2;exports.INPUT_TEXT=F2;exports.INPUT_TEXTAREA=W2;exports.INPUT_TIME=G4;exports.InputBase=Lo;exports.InputSelectBase=ti;exports.LABELED_INPUT=H2;exports.LINK=e5;exports.LINK_BUTTON=t5;exports.LOADING_SPINNER=w2;exports.LOZENGE=J2;exports.MENU=K2;exports.MENU_ITEM=C0;exports.MODAL=_2;exports.MODAL_BODY=P2;exports.MODAL_FOOTER=A2;exports.MODAL_HEADER=T2;exports.ModalCloseEvent=jd;exports.NO_RESULTS_ID=eh;exports.PAGE_HEADER=C5;exports.PAGINATION=_h;exports.PAPER=x5;exports.POPOVER=Zd;exports.POPOVER_LISTENABLE_EVENT_TYPES=_1;exports.POPOVER_ROLES=Vd;exports.POPOVER_TRIGGERS=p2;exports.PURE_POPOVER=h2;exports.RECORD_ROW=a5;exports.RECORD_ROW_LABEL=s5;exports.RESPONSIVE_COLUMNS=b5;exports.ROW=m2;exports.SIDE_NAVIGATION=i5;exports.SIDE_NAVIGATION_ITEM=n5;exports.SPLIT_ROW=S2;exports.TAB=u5;exports.TABS=f5;exports.TAB_BAR=c5;exports.TAB_PANEL=l5;exports.TIME_FORMAT=q4;exports.TIME_REGEX_12H=X4;exports.TIME_REGEX_24H=K4;exports.TIME_REGEX_LOOSE=j4;exports.TOOLTIP=g2;exports.TabSelectedEvent=ef;exports.VIRTUAL_LIST=Jd;exports.alertTypes=Sw;exports.buttonTypes=d9;exports.click=L1;exports.emit=X2;exports.focus=Us;exports.hover=zd;exports.iconNames=x9;exports.icons=Kd;exports.illustrationNames=Mw;exports.illustrations=Sh;exports.lozengeColors=P8;exports.lozengeSizes=E8;exports.lozengeThemes=A8;exports.transformIcon=M2;
4269
+ `;Mh([F({type:Boolean,attribute:"has-border",reflect:!0})],exports.Paper.prototype,"hasBorder",2);Mh([F({type:Number,reflect:!0})],exports.Paper.prototype,"level",2);exports.Paper=Mh([Q(x5)],exports.Paper);var nx=Object.defineProperty,ix=Object.getOwnPropertyDescriptor,De=(r,n,o,c)=>{for(var f=c>1?void 0:c?ix(n,o):n,p=r.length-1,b;p>=0;p--)(b=r[p])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&nx(n,o,f),f};exports.LegacyGlobalStyles=class extends exports.GlobalStyles{};exports.LegacyGlobalStyles=De([Q("sp-global-styles")],exports.LegacyGlobalStyles);exports.LegacyAlert=class extends exports.Alert{};exports.LegacyAlert=De([Q("sp-alert")],exports.LegacyAlert);exports.LegacyAvatar=class extends exports.Avatar{};exports.LegacyAvatar=De([Q("sp-avatar")],exports.LegacyAvatar);exports.LegacyAvatarGroup=class extends exports.AvatarGroup{};exports.LegacyAvatarGroup=De([Q("sp-avatar-group")],exports.LegacyAvatarGroup);exports.LegacyButton=class extends exports.Button{};exports.LegacyButton=De([Q("sp-button")],exports.LegacyButton);exports.LegacyButtonGroup=class extends exports.ButtonGroup{};exports.LegacyButtonGroup=De([Q("sp-button-group")],exports.LegacyButtonGroup);exports.LegacyBadge=class extends exports.Badge{};exports.LegacyBadge=De([Q("sp-badge")],exports.LegacyBadge);exports.LegacyComboBox=class extends exports.ComboBox{};exports.LegacyComboBox=De([Q("sp-combo-box")],exports.LegacyComboBox);exports.LegacyComboBoxOption=class extends exports.ComboBoxOption{};exports.LegacyComboBoxOption=De([Q("sp-combo-box-option")],exports.LegacyComboBoxOption);exports.LegacyConfirmationDialog=class extends exports.ConfirmationDialog{};exports.LegacyConfirmationDialog=De([Q("sp-confirmation-dialog")],exports.LegacyConfirmationDialog);exports.LegacyHeading=class extends exports.Heading{};exports.LegacyHeading=De([Q("sp-heading")],exports.LegacyHeading);exports.LegacyLink=class extends exports.Link{};exports.LegacyLink=De([Q("sp-link")],exports.LegacyLink);exports.LegacyLinkButton=class extends exports.LinkButton{};exports.LegacyLinkButton=De([Q("sp-link-button")],exports.LegacyLinkButton);exports.LegacyLoadingSpinner=class extends exports.LoadingSpinner{};exports.LegacyLoadingSpinner=De([Q("sp-loading-spinner")],exports.LegacyLoadingSpinner);exports.LegacyLozenge=class extends exports.Lozenge{};exports.LegacyLozenge=De([Q("sp-lozenge")],exports.LegacyLozenge);exports.LegacyBasicPagination=class extends exports.BasicPagination{};exports.LegacyBasicPagination=De([Q("sp-basic-pagination")],exports.LegacyBasicPagination);exports.LegacyPagination=class extends exports.Pagination{};exports.LegacyPagination=De([Q("sp-pagination")],exports.LegacyPagination);exports.LegacyPopover=class extends exports.Popover{};exports.LegacyPopover=De([Q("sp-popover")],exports.LegacyPopover);exports.LegacyPurePopover=class extends exports.PurePopover{};exports.LegacyPurePopover=De([Q("sp-pure-popover")],exports.LegacyPurePopover);exports.LegacyRecordRow=class extends exports.RecordRow{};exports.LegacyRecordRow=De([Q("sp-record-row")],exports.LegacyRecordRow);exports.LegacyRecordRowLabel=class extends exports.RecordRowLabel{};exports.LegacyRecordRowLabel=De([Q("sp-record-row-label")],exports.LegacyRecordRowLabel);exports.LegacyTooltip=class extends exports.Tooltip{};exports.LegacyTooltip=De([Q("sp-tooltip")],exports.LegacyTooltip);exports.LegacyVirtualList=class extends exports.VirtualList{};exports.LegacyVirtualList=De([Q("sp-virtual-list")],exports.LegacyVirtualList);exports.LegacyFadeInOut=class extends exports.FadeInOut{};exports.LegacyFadeInOut=De([Q("sp-fade-in-out")],exports.LegacyFadeInOut);exports.LegacyPaper=class extends exports.Paper{};exports.LegacyPaper=De([Q("sp-paper")],exports.LegacyPaper);exports.LegacyRow=class extends exports.Row{};exports.LegacyRow=De([Q("sp-row")],exports.LegacyRow);exports.LegacyColumn=class extends exports.Column{};exports.LegacyColumn=De([Q("sp-column")],exports.LegacyColumn);exports.LegacyFooter=class extends exports.Footer{};exports.LegacyFooter=De([Q("sp-footer")],exports.LegacyFooter);exports.LegacyHeaderFooterPage=class extends exports.HeaderFooterPage{};exports.LegacyHeaderFooterPage=De([Q("sp-header-footer-page")],exports.LegacyHeaderFooterPage);exports.LegacyHeader=class extends exports.Header{};exports.LegacyHeader=De([Q("sp-header")],exports.LegacyHeader);exports.LegacyResponsiveColumns=class extends exports.ResponsiveColumns{};exports.LegacyResponsiveColumns=De([Q("sp-responsive-columns")],exports.LegacyResponsiveColumns);exports.LegacySplitRow=class extends exports.SplitRow{};exports.LegacySplitRow=De([Q("sp-split-row")],exports.LegacySplitRow);exports.LegacyActionBar=class extends exports.ActionBar{};exports.LegacyActionBar=De([Q("sp-action-bar")],exports.LegacyActionBar);exports.LegacyIllustration=class extends exports.Illustration{};exports.LegacyIllustration=De([Q("sp-illustration")],exports.LegacyIllustration);exports.LegacyIcon=class extends exports.Icon{};exports.LegacyIcon=De([Q("sp-icon")],exports.LegacyIcon);exports.LegacyModalHeader=class extends exports.ModalHeader{};exports.LegacyModalHeader=De([Q("sp-modal-header")],exports.LegacyModalHeader);exports.LegacyModalBody=class extends exports.ModalBody{};exports.LegacyModalBody=De([Q("sp-modal-body")],exports.LegacyModalBody);exports.LegacyModalFooter=class extends exports.ModalFooter{};exports.LegacyModalFooter=De([Q("sp-modal-footer")],exports.LegacyModalFooter);exports.LegacyModal=class extends exports.Modal{};exports.LegacyModal=De([Q("sp-modal")],exports.LegacyModal);exports.LegacySideNavigationItem=class extends exports.SideNavigationItem{};exports.LegacySideNavigationItem=De([Q("sp-side-navigation-item")],exports.LegacySideNavigationItem);exports.LegacySideNavigation=class extends exports.SideNavigation{};exports.LegacySideNavigation=De([Q("sp-side-navigation")],exports.LegacySideNavigation);exports.LegacyTabs=class extends exports.Tabs{};exports.LegacyTabs=De([Q("sp-tabs")],exports.LegacyTabs);exports.LegacyTabPanel=class extends exports.TabPanel{};exports.LegacyTabPanel=De([Q("sp-tab-panel")],exports.LegacyTabPanel);exports.LegacyTabBar=class extends exports.TabBar{};exports.LegacyTabBar=De([Q("sp-tab-bar")],exports.LegacyTabBar);exports.LegacyTab=class extends exports.Tab{};exports.LegacyTab=De([Q("sp-tab")],exports.LegacyTab);exports.LegacyInputCheckbox=class extends exports.InputCheckbox{};exports.LegacyInputCheckbox=De([Q("sp-input-checkbox")],exports.LegacyInputCheckbox);exports.LegacyInputCode=class extends exports.InputCode{};exports.LegacyInputCode=De([Q("sp-input-code")],exports.LegacyInputCode);exports.LegacyInputError=class extends exports.InputError{};exports.LegacyInputError=De([Q("sp-input-error")],exports.LegacyInputError);exports.LegacyInputGuide=class extends S1{};exports.LegacyInputGuide=De([Q("sp-input-guide")],exports.LegacyInputGuide);exports.LegacyInputMultiselect=class extends exports.InputMultiselect{};exports.LegacyInputMultiselect=De([Q("sp-input-multiselect")],exports.LegacyInputMultiselect);exports.LegacyInputNumber=class extends exports.InputNumber{};exports.LegacyInputNumber=De([Q("sp-input-number")],exports.LegacyInputNumber);exports.LegacyInputRadio=class extends exports.InputRadio{};exports.LegacyInputRadio=De([Q("sp-input-radio-group")],exports.LegacyInputRadio);exports.LegacyInputRadioOption=class extends exports.InputRadioOption{};exports.LegacyInputRadioOption=De([Q("sp-input-radio-option")],exports.LegacyInputRadioOption);exports.LegacyMenu=class extends exports.Menu{};exports.LegacyMenu=De([Q("sp-menu")],exports.LegacyMenu);exports.LegacyMenuItem=class extends exports.MenuItem{};exports.LegacyMenuItem=De([Q("sp-menu-item")],exports.LegacyMenuItem);exports.LegacyInputSelect=class extends exports.InputSelect{};exports.LegacyInputSelect=De([Q("sp-input-select")],exports.LegacyInputSelect);exports.LegacyInputText=class extends exports.InputText{};exports.LegacyInputText=De([Q("sp-input-text")],exports.LegacyInputText);exports.LegacyInputTextarea=class extends exports.InputTextarea{};exports.LegacyInputTextarea=De([Q("sp-input-textarea")],exports.LegacyInputTextarea);exports.LegacyInputTime=class extends exports.InputTime{};exports.LegacyInputTime=De([Q("sp-input-time")],exports.LegacyInputTime);exports.LegacyInputLabel=class extends exports.InputLabel{};exports.LegacyInputLabel=De([Q("sp-input-label")],exports.LegacyInputLabel);exports.LegacyLabeledInput=class extends exports.LabeledInput{};exports.LegacyLabeledInput=De([Q("sp-labeled-input")],exports.LegacyLabeledInput);exports.ACTION_BAR=M2;exports.ALERT=h5;exports.AVATAR=v2;exports.AVATAR_GROUP=b2;exports.BADGE=d5;exports.BASIC_PAGINATION=Lh;exports.BUTTON=qd;exports.BUTTON_GROUP=x2;exports.COLUMN=y2;exports.COMBO_BOX=z2;exports.COMBO_BOX_OPTION=L2;exports.CONFIRMATION_DIALOG=I2;exports.ConfirmationDialogCancel=D2;exports.ConfirmationDialogConfirm=R2;exports.DeleteLozengeEvent=e4;exports.FADE_IN_OUT=r2;exports.FOOTER=m5;exports.GLOBAL_STYLES=w5;exports.HEADER=g5;exports.HEADER_FOOTER_PAGE=v5;exports.HEADING=J4;exports.ICON=O2;exports.ILLUSTRATION=p5;exports.INPUT_CHECKBOX=N2;exports.INPUT_CODE=j2;exports.INPUT_ERROR=$2;exports.INPUT_LABEL=B2;exports.INPUT_MULTISELECT=t4;exports.INPUT_NUMBER=U2;exports.INPUT_RADIO_GROUP=V2;exports.INPUT_RADIO_OPTION=G2;exports.INPUT_SELECT=Q2;exports.INPUT_TEXT=F2;exports.INPUT_TEXTAREA=W2;exports.INPUT_TIME=G4;exports.InputBase=Lo;exports.InputSelectBase=ti;exports.LABELED_INPUT=H2;exports.LINK=e5;exports.LINK_BUTTON=t5;exports.LOADING_SPINNER=w2;exports.LOZENGE=J2;exports.MENU=K2;exports.MENU_ITEM=C0;exports.MODAL=_2;exports.MODAL_BODY=P2;exports.MODAL_FOOTER=A2;exports.MODAL_HEADER=T2;exports.ModalCloseEvent=Kd;exports.NO_RESULTS_ID=eh;exports.PAGE_HEADER=C5;exports.PAGINATION=_h;exports.PAPER=x5;exports.POPOVER=Vd;exports.POPOVER_LISTENABLE_EVENT_TYPES=_1;exports.POPOVER_ROLES=Gd;exports.POPOVER_TRIGGERS=p2;exports.PURE_POPOVER=h2;exports.RECORD_ROW=a5;exports.RECORD_ROW_LABEL=s5;exports.RESPONSIVE_COLUMNS=b5;exports.ROW=m2;exports.SIDE_NAVIGATION=i5;exports.SIDE_NAVIGATION_ITEM=n5;exports.SPLIT_ROW=S2;exports.TAB=u5;exports.TABS=f5;exports.TAB_BAR=c5;exports.TAB_PANEL=l5;exports.TIME_FORMAT=q4;exports.TIME_REGEX_12H=X4;exports.TIME_REGEX_24H=K4;exports.TIME_REGEX_LOOSE=j4;exports.TOOLTIP=g2;exports.TabSelectedEvent=tf;exports.VIRTUAL_LIST=Jd;exports.alertTypes=Sw;exports.buttonTypes=d9;exports.click=L1;exports.emit=X2;exports.focus=Us;exports.hover=Ld;exports.iconNames=x9;exports.icons=Xd;exports.illustrationNames=kw;exports.illustrations=Sh;exports.lozengeColors=P8;exports.lozengeSizes=E8;exports.lozengeThemes=A8;exports.transformIcon=k2;