@skedulo/breeze-ui 0.1.8 → 0.1.10

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
@@ -1,24 +1,24 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});function M7(r,n){for(var o=0;o<n.length;o++){const c=n[o];if(typeof c!="string"&&!Array.isArray(c)){for(const f in c)if(f!=="default"&&!(f in r)){const v=Object.getOwnPropertyDescriptor(c,f);v&&Object.defineProperty(r,f,v.get?v:{enumerable:!0,get:()=>c[f]})}}}return Object.freeze(Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}))}/**
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});function T7(r,n){for(var o=0;o<n.length;o++){const c=n[o];if(typeof c!="string"&&!Array.isArray(c)){for(const f in c)if(f!=="default"&&!(f in r)){const v=Object.getOwnPropertyDescriptor(c,f);v&&Object.defineProperty(r,f,v.get?v:{enumerable:!0,get:()=>c[f]})}}}return Object.freeze(Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}))}/**
2
2
  * @license
3
3
  * Copyright 2019 Google LLC
4
4
  * SPDX-License-Identifier: BSD-3-Clause
5
- */const dc=window,Pd=dc.ShadowRoot&&(dc.ShadyCSS===void 0||dc.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Ed=Symbol(),rp=new WeakMap;class Np{constructor(n,o,c){if(this._$cssResult$=!0,c!==Ed)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(Pd&&n===void 0){const c=o!==void 0&&o.length===1;c&&(n=rp.get(o)),n===void 0&&((this.o=n=new CSSStyleSheet).replaceSync(this.cssText),c&&rp.set(o,n))}return n}toString(){return this.cssText}}const $p=r=>new Np(typeof r=="string"?r:r+"",void 0,Ed),ke=(r,...n)=>{const o=r.length===1?r[0]:n.reduce((c,f,v)=>c+(y=>{if(y._$cssResult$===!0)return y.cssText;if(typeof y=="number")return y;throw Error("Value passed to 'css' function must be a 'css' function result: "+y+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(f)+r[v+1],r[0]);return new Np(o,r,Ed)},O7=(r,n)=>{Pd?r.adoptedStyleSheets=n.map(o=>o instanceof CSSStyleSheet?o:o.styleSheet):n.forEach(o=>{const c=document.createElement("style"),f=dc.litNonce;f!==void 0&&c.setAttribute("nonce",f),c.textContent=o.cssText,r.appendChild(c)})},np=Pd?r=>r:r=>r instanceof CSSStyleSheet?(n=>{let o="";for(const c of n.cssRules)o+=c.cssText;return $p(o)})(r):r;/**
5
+ */const dc=window,Ed=dc.ShadowRoot&&(dc.ShadyCSS===void 0||dc.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Ad=Symbol(),np=new WeakMap;class Rp{constructor(n,o,c){if(this._$cssResult$=!0,c!==Ad)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(Ed&&n===void 0){const c=o!==void 0&&o.length===1;c&&(n=np.get(o)),n===void 0&&((this.o=n=new CSSStyleSheet).replaceSync(this.cssText),c&&np.set(o,n))}return n}toString(){return this.cssText}}const Hp=r=>new Rp(typeof r=="string"?r:r+"",void 0,Ad),ke=(r,...n)=>{const o=r.length===1?r[0]:n.reduce((c,f,v)=>c+(y=>{if(y._$cssResult$===!0)return y.cssText;if(typeof y=="number")return y;throw Error("Value passed to 'css' function must be a 'css' function result: "+y+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(f)+r[v+1],r[0]);return new Rp(o,r,Ad)},P7=(r,n)=>{Ed?r.adoptedStyleSheets=n.map(o=>o instanceof CSSStyleSheet?o:o.styleSheet):n.forEach(o=>{const c=document.createElement("style"),f=dc.litNonce;f!==void 0&&c.setAttribute("nonce",f),c.textContent=o.cssText,r.appendChild(c)})},ip=Ed?r=>r:r=>r instanceof CSSStyleSheet?(n=>{let o="";for(const c of n.cssRules)o+=c.cssText;return Hp(o)})(r):r;/**
6
6
  * @license
7
7
  * Copyright 2017 Google LLC
8
8
  * SPDX-License-Identifier: BSD-3-Clause
9
- */var rd;const mc=window,ip=mc.trustedTypes,T7=ip?ip.emptyScript:"",op=mc.reactiveElementPolyfillSupport,pd={toAttribute(r,n){switch(n){case Boolean:r=r?T7: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}},Rp=(r,n)=>n!==r&&(n==n||r==r),nd={attribute:!0,type:String,converter:pd,reflect:!1,hasChanged:Rp};class Kl 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=nd){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 v=this[n];this[o]=f,this.requestUpdate(n,v,c)},configurable:!0,enumerable:!0}}static getPropertyOptions(n){return this.elementProperties.get(n)||nd}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(np(f))}else n!==void 0&&o.push(np(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 O7(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=nd){var f;const v=this.constructor._$Ep(n,c);if(v!==void 0&&c.reflect===!0){const y=(((f=c.converter)===null||f===void 0?void 0:f.toAttribute)!==void 0?c.converter:pd).toAttribute(o,c.type);this._$El=n,y==null?this.removeAttribute(v):this.setAttribute(v,y),this._$El=null}}_$AK(n,o){var c;const f=this.constructor,v=f._$Ev.get(n);if(v!==void 0&&this._$El!==v){const y=f.getPropertyOptions(v),E=typeof y.converter=="function"?{fromAttribute:y.converter}:((c=y.converter)===null||c===void 0?void 0:c.fromAttribute)!==void 0?y.converter:pd;this._$El=v,this[v]=E.fromAttribute(o,y.type),this._$El=null}}requestUpdate(n,o,c){let f=!0;n!==void 0&&(((c=c||this.constructor.getPropertyOptions(n)).hasChanged||Rp)(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,v)=>this[v]=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 v;return(v=f.hostUpdate)===null||v===void 0?void 0:v.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){}}Kl.finalized=!0,Kl.elementProperties=new Map,Kl.elementStyles=[],Kl.shadowRootOptions={mode:"open"},op==null||op({ReactiveElement:Kl}),((rd=mc.reactiveElementVersions)!==null&&rd!==void 0?rd:mc.reactiveElementVersions=[]).push("1.4.2");/**
9
+ */var rd;const mc=window,op=mc.trustedTypes,E7=op?op.emptyScript:"",sp=mc.reactiveElementPolyfillSupport,vd={toAttribute(r,n){switch(n){case Boolean:r=r?E7: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}},Fp=(r,n)=>n!==r&&(n==n||r==r),nd={attribute:!0,type:String,converter:vd,reflect:!1,hasChanged:Fp};class Kl 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=nd){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 v=this[n];this[o]=f,this.requestUpdate(n,v,c)},configurable:!0,enumerable:!0}}static getPropertyOptions(n){return this.elementProperties.get(n)||nd}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(ip(f))}else n!==void 0&&o.push(ip(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 P7(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=nd){var f;const v=this.constructor._$Ep(n,c);if(v!==void 0&&c.reflect===!0){const y=(((f=c.converter)===null||f===void 0?void 0:f.toAttribute)!==void 0?c.converter:vd).toAttribute(o,c.type);this._$El=n,y==null?this.removeAttribute(v):this.setAttribute(v,y),this._$El=null}}_$AK(n,o){var c;const f=this.constructor,v=f._$Ev.get(n);if(v!==void 0&&this._$El!==v){const y=f.getPropertyOptions(v),E=typeof y.converter=="function"?{fromAttribute:y.converter}:((c=y.converter)===null||c===void 0?void 0:c.fromAttribute)!==void 0?y.converter:vd;this._$El=v,this[v]=E.fromAttribute(o,y.type),this._$El=null}}requestUpdate(n,o,c){let f=!0;n!==void 0&&(((c=c||this.constructor.getPropertyOptions(n)).hasChanged||Fp)(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,v)=>this[v]=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 v;return(v=f.hostUpdate)===null||v===void 0?void 0:v.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){}}Kl.finalized=!0,Kl.elementProperties=new Map,Kl.elementStyles=[],Kl.shadowRootOptions={mode:"open"},sp==null||sp({ReactiveElement:Kl}),((rd=mc.reactiveElementVersions)!==null&&rd!==void 0?rd:mc.reactiveElementVersions=[]).push("1.4.2");/**
10
10
  * @license
11
11
  * Copyright 2017 Google LLC
12
12
  * SPDX-License-Identifier: BSD-3-Clause
13
- */var id;const yc=window,iu=yc.trustedTypes,sp=iu?iu.createPolicy("lit-html",{createHTML:r=>r}):void 0,ts=`lit$${(Math.random()+"").slice(9)}$`,Ad="?"+ts,P7=`<${Ad}>`,ou=document,C0=(r="")=>ou.createComment(r),w0=r=>r===null||typeof r!="object"&&typeof r!="function",Hp=Array.isArray,Fp=r=>Hp(r)||typeof(r==null?void 0:r[Symbol.iterator])=="function",c0=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,ap=/-->/g,lp=/>/g,$a=RegExp(`>|[
13
+ */var id;const yc=window,iu=yc.trustedTypes,ap=iu?iu.createPolicy("lit-html",{createHTML:r=>r}):void 0,ts=`lit$${(Math.random()+"").slice(9)}$`,Dd="?"+ts,A7=`<${Dd}>`,ou=document,C0=(r="")=>ou.createComment(r),w0=r=>r===null||typeof r!="object"&&typeof r!="function",Wp=Array.isArray,Bp=r=>Wp(r)||typeof(r==null?void 0:r[Symbol.iterator])=="function",c0=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,lp=/-->/g,up=/>/g,$a=RegExp(`>|[
14
14
  \f\r](?:([^\\s"'>=/]+)([
15
15
  \f\r]*=[
16
16
  \f\r]*(?:[^
17
- \f\r"'\`<>=]|("|')|))|$)`,"g"),up=/'/g,cp=/"/g,Wp=/^(?:script|style|textarea|title)$/i,Bp=r=>(n,...o)=>({_$litType$:r,strings:n,values:o}),J=Bp(1),G=Bp(2),go=Symbol.for("lit-noChange"),yr=Symbol.for("lit-nothing"),fp=new WeakMap,eu=ou.createTreeWalker(ou,129,null,!1),Up=(r,n)=>{const o=r.length-1,c=[];let f,v=n===2?"<svg>":"",y=c0;for(let k=0;k<o;k++){const O=r[k];let I,U,q=-1,X=0;for(;X<O.length&&(y.lastIndex=X,U=y.exec(O),U!==null);)X=y.lastIndex,y===c0?U[1]==="!--"?y=ap:U[1]!==void 0?y=lp:U[2]!==void 0?(Wp.test(U[2])&&(f=RegExp("</"+U[2],"g")),y=$a):U[3]!==void 0&&(y=$a):y===$a?U[0]===">"?(y=f!=null?f:c0,q=-1):U[1]===void 0?q=-2:(q=y.lastIndex-U[2].length,I=U[1],y=U[3]===void 0?$a:U[3]==='"'?cp:up):y===cp||y===up?y=$a:y===ap||y===lp?y=c0:(y=$a,f=void 0);const ue=y===$a&&r[k+1].startsWith("/>")?" ":"";v+=y===c0?O+P7:q>=0?(c.push(I),O.slice(0,q)+"$lit$"+O.slice(q)+ts+ue):O+ts+(q===-2?(c.push(void 0),k):ue)}const E=v+(r[o]||"<?>")+(n===2?"</svg>":"");if(!Array.isArray(r)||!r.hasOwnProperty("raw"))throw Error("invalid template strings array");return[sp!==void 0?sp.createHTML(E):E,c]};class x0{constructor({strings:n,_$litType$:o},c){let f;this.parts=[];let v=0,y=0;const E=n.length-1,k=this.parts,[O,I]=Up(n,o);if(this.el=x0.createElement(O,c),eu.currentNode=this.el.content,o===2){const U=this.el.content,q=U.firstChild;q.remove(),U.append(...q.childNodes)}for(;(f=eu.nextNode())!==null&&k.length<E;){if(f.nodeType===1){if(f.hasAttributes()){const U=[];for(const q of f.getAttributeNames())if(q.endsWith("$lit$")||q.startsWith(ts)){const X=I[y++];if(U.push(q),X!==void 0){const ue=f.getAttribute(X.toLowerCase()+"$lit$").split(ts),Ce=/([.?@])?(.*)/.exec(X);k.push({type:1,index:v,name:Ce[2],strings:ue,ctor:Ce[1]==="."?Zp:Ce[1]==="?"?Vp:Ce[1]==="@"?Gp:T0})}else k.push({type:6,index:v})}for(const q of U)f.removeAttribute(q)}if(Wp.test(f.tagName)){const U=f.textContent.split(ts),q=U.length-1;if(q>0){f.textContent=iu?iu.emptyScript:"";for(let X=0;X<q;X++)f.append(U[X],C0()),eu.nextNode(),k.push({type:2,index:++v});f.append(U[q],C0())}}}else if(f.nodeType===8)if(f.data===Ad)k.push({type:2,index:v});else{let U=-1;for(;(U=f.data.indexOf(ts,U+1))!==-1;)k.push({type:7,index:v}),U+=ts.length-1}v++}}static createElement(n,o){const c=ou.createElement("template");return c.innerHTML=n,c}}function Za(r,n,o=r,c){var f,v,y,E;if(n===go)return n;let k=c!==void 0?(f=o._$Co)===null||f===void 0?void 0:f[c]:o._$Cl;const O=w0(n)?void 0:n._$litDirective$;return(k==null?void 0:k.constructor)!==O&&((v=k==null?void 0:k._$AO)===null||v===void 0||v.call(k,!1),O===void 0?k=void 0:(k=new O(r),k._$AT(r,o,c)),c!==void 0?((y=(E=o)._$Co)!==null&&y!==void 0?y:E._$Co=[])[c]=k:o._$Cl=k),k!==void 0&&(n=Za(r,k._$AS(r,n.values),k,c)),n}class Yp{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,v=((o=n==null?void 0:n.creationScope)!==null&&o!==void 0?o:ou).importNode(c,!0);eu.currentNode=v;let y=eu.nextNode(),E=0,k=0,O=f[0];for(;O!==void 0;){if(E===O.index){let I;O.type===2?I=new cu(y,y.nextSibling,this,n):O.type===1?I=new O.ctor(y,O.name,O.strings,this,n):O.type===6&&(I=new qp(y,this,n)),this.u.push(I),O=f[++k]}E!==(O==null?void 0:O.index)&&(y=eu.nextNode(),E++)}return v}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 cu{constructor(n,o,c,f){var v;this.type=2,this._$AH=yr,this._$AN=void 0,this._$AA=n,this._$AB=o,this._$AM=c,this.options=f,this._$Cm=(v=f==null?void 0:f.isConnected)===null||v===void 0||v}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=Za(this,n,o),w0(n)?n===yr||n==null||n===""?(this._$AH!==yr&&this._$AR(),this._$AH=yr):n!==this._$AH&&n!==go&&this.g(n):n._$litType$!==void 0?this.$(n):n.nodeType!==void 0?this.T(n):Fp(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!==yr&&w0(this._$AH)?this._$AA.nextSibling.data=n:this.T(ou.createTextNode(n)),this._$AH=n}$(n){var o;const{values:c,_$litType$:f}=n,v=typeof f=="number"?this._$AC(n):(f.el===void 0&&(f.el=x0.createElement(f.h,this.options)),f);if(((o=this._$AH)===null||o===void 0?void 0:o._$AD)===v)this._$AH.p(c);else{const y=new Yp(v,this),E=y.v(this.options);y.p(c),this.T(E),this._$AH=y}}_$AC(n){let o=fp.get(n.strings);return o===void 0&&fp.set(n.strings,o=new x0(n)),o}k(n){Hp(this._$AH)||(this._$AH=[],this._$AR());const o=this._$AH;let c,f=0;for(const v of n)f===o.length?o.push(c=new cu(this.O(C0()),this.O(C0()),this,this.options)):c=o[f],c._$AI(v),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 T0{constructor(n,o,c,f,v){this.type=1,this._$AH=yr,this._$AN=void 0,this.element=n,this.name=o,this._$AM=f,this.options=v,c.length>2||c[0]!==""||c[1]!==""?(this._$AH=Array(c.length-1).fill(new String),this.strings=c):this._$AH=yr}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(n,o=this,c,f){const v=this.strings;let y=!1;if(v===void 0)n=Za(this,n,o,0),y=!w0(n)||n!==this._$AH&&n!==go,y&&(this._$AH=n);else{const E=n;let k,O;for(n=v[0],k=0;k<v.length-1;k++)O=Za(this,E[c+k],o,k),O===go&&(O=this._$AH[k]),y||(y=!w0(O)||O!==this._$AH[k]),O===yr?n=yr:n!==yr&&(n+=(O!=null?O:"")+v[k+1]),this._$AH[k]=O}y&&!f&&this.j(n)}j(n){n===yr?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,n!=null?n:"")}}class Zp extends T0{constructor(){super(...arguments),this.type=3}j(n){this.element[this.name]=n===yr?void 0:n}}const E7=iu?iu.emptyScript:"";class Vp extends T0{constructor(){super(...arguments),this.type=4}j(n){n&&n!==yr?this.element.setAttribute(this.name,E7):this.element.removeAttribute(this.name)}}class Gp extends T0{constructor(n,o,c,f,v){super(n,o,c,f,v),this.type=5}_$AI(n,o=this){var c;if((n=(c=Za(this,n,o,0))!==null&&c!==void 0?c:yr)===go)return;const f=this._$AH,v=n===yr&&f!==yr||n.capture!==f.capture||n.once!==f.once||n.passive!==f.passive,y=n!==yr&&(f===yr||v);v&&this.element.removeEventListener(this.name,this,f),y&&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 qp{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){Za(this,n)}}const A7={P:"$lit$",A:ts,M:Ad,C:1,L:Up,R:Yp,D:Fp,V:Za,I:cu,H:T0,N:Vp,U:Gp,B:Zp,F:qp},dp=yc.litHtmlPolyfillSupport;dp==null||dp(x0,cu),((id=yc.litHtmlVersions)!==null&&id!==void 0?id:yc.litHtmlVersions=[]).push("2.4.0");const jp=(r,n,o)=>{var c,f;const v=(c=o==null?void 0:o.renderBefore)!==null&&c!==void 0?c:n;let y=v._$litPart$;if(y===void 0){const E=(f=o==null?void 0:o.renderBefore)!==null&&f!==void 0?f:null;v._$litPart$=y=new cu(n.insertBefore(C0(),E),E,void 0,o!=null?o:{})}return y._$AI(r),y};/**
17
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),cp=/'/g,fp=/"/g,Up=/^(?:script|style|textarea|title)$/i,Yp=r=>(n,...o)=>({_$litType$:r,strings:n,values:o}),J=Yp(1),G=Yp(2),go=Symbol.for("lit-noChange"),yr=Symbol.for("lit-nothing"),dp=new WeakMap,eu=ou.createTreeWalker(ou,129,null,!1),Zp=(r,n)=>{const o=r.length-1,c=[];let f,v=n===2?"<svg>":"",y=c0;for(let k=0;k<o;k++){const O=r[k];let I,U,q=-1,X=0;for(;X<O.length&&(y.lastIndex=X,U=y.exec(O),U!==null);)X=y.lastIndex,y===c0?U[1]==="!--"?y=lp:U[1]!==void 0?y=up:U[2]!==void 0?(Up.test(U[2])&&(f=RegExp("</"+U[2],"g")),y=$a):U[3]!==void 0&&(y=$a):y===$a?U[0]===">"?(y=f!=null?f:c0,q=-1):U[1]===void 0?q=-2:(q=y.lastIndex-U[2].length,I=U[1],y=U[3]===void 0?$a:U[3]==='"'?fp:cp):y===fp||y===cp?y=$a:y===lp||y===up?y=c0:(y=$a,f=void 0);const ue=y===$a&&r[k+1].startsWith("/>")?" ":"";v+=y===c0?O+A7:q>=0?(c.push(I),O.slice(0,q)+"$lit$"+O.slice(q)+ts+ue):O+ts+(q===-2?(c.push(void 0),k):ue)}const E=v+(r[o]||"<?>")+(n===2?"</svg>":"");if(!Array.isArray(r)||!r.hasOwnProperty("raw"))throw Error("invalid template strings array");return[ap!==void 0?ap.createHTML(E):E,c]};class x0{constructor({strings:n,_$litType$:o},c){let f;this.parts=[];let v=0,y=0;const E=n.length-1,k=this.parts,[O,I]=Zp(n,o);if(this.el=x0.createElement(O,c),eu.currentNode=this.el.content,o===2){const U=this.el.content,q=U.firstChild;q.remove(),U.append(...q.childNodes)}for(;(f=eu.nextNode())!==null&&k.length<E;){if(f.nodeType===1){if(f.hasAttributes()){const U=[];for(const q of f.getAttributeNames())if(q.endsWith("$lit$")||q.startsWith(ts)){const X=I[y++];if(U.push(q),X!==void 0){const ue=f.getAttribute(X.toLowerCase()+"$lit$").split(ts),Ce=/([.?@])?(.*)/.exec(X);k.push({type:1,index:v,name:Ce[2],strings:ue,ctor:Ce[1]==="."?Gp:Ce[1]==="?"?qp:Ce[1]==="@"?jp:T0})}else k.push({type:6,index:v})}for(const q of U)f.removeAttribute(q)}if(Up.test(f.tagName)){const U=f.textContent.split(ts),q=U.length-1;if(q>0){f.textContent=iu?iu.emptyScript:"";for(let X=0;X<q;X++)f.append(U[X],C0()),eu.nextNode(),k.push({type:2,index:++v});f.append(U[q],C0())}}}else if(f.nodeType===8)if(f.data===Dd)k.push({type:2,index:v});else{let U=-1;for(;(U=f.data.indexOf(ts,U+1))!==-1;)k.push({type:7,index:v}),U+=ts.length-1}v++}}static createElement(n,o){const c=ou.createElement("template");return c.innerHTML=n,c}}function Za(r,n,o=r,c){var f,v,y,E;if(n===go)return n;let k=c!==void 0?(f=o._$Co)===null||f===void 0?void 0:f[c]:o._$Cl;const O=w0(n)?void 0:n._$litDirective$;return(k==null?void 0:k.constructor)!==O&&((v=k==null?void 0:k._$AO)===null||v===void 0||v.call(k,!1),O===void 0?k=void 0:(k=new O(r),k._$AT(r,o,c)),c!==void 0?((y=(E=o)._$Co)!==null&&y!==void 0?y:E._$Co=[])[c]=k:o._$Cl=k),k!==void 0&&(n=Za(r,k._$AS(r,n.values),k,c)),n}class Vp{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,v=((o=n==null?void 0:n.creationScope)!==null&&o!==void 0?o:ou).importNode(c,!0);eu.currentNode=v;let y=eu.nextNode(),E=0,k=0,O=f[0];for(;O!==void 0;){if(E===O.index){let I;O.type===2?I=new cu(y,y.nextSibling,this,n):O.type===1?I=new O.ctor(y,O.name,O.strings,this,n):O.type===6&&(I=new Kp(y,this,n)),this.u.push(I),O=f[++k]}E!==(O==null?void 0:O.index)&&(y=eu.nextNode(),E++)}return v}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 cu{constructor(n,o,c,f){var v;this.type=2,this._$AH=yr,this._$AN=void 0,this._$AA=n,this._$AB=o,this._$AM=c,this.options=f,this._$Cm=(v=f==null?void 0:f.isConnected)===null||v===void 0||v}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=Za(this,n,o),w0(n)?n===yr||n==null||n===""?(this._$AH!==yr&&this._$AR(),this._$AH=yr):n!==this._$AH&&n!==go&&this.g(n):n._$litType$!==void 0?this.$(n):n.nodeType!==void 0?this.T(n):Bp(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!==yr&&w0(this._$AH)?this._$AA.nextSibling.data=n:this.T(ou.createTextNode(n)),this._$AH=n}$(n){var o;const{values:c,_$litType$:f}=n,v=typeof f=="number"?this._$AC(n):(f.el===void 0&&(f.el=x0.createElement(f.h,this.options)),f);if(((o=this._$AH)===null||o===void 0?void 0:o._$AD)===v)this._$AH.p(c);else{const y=new Vp(v,this),E=y.v(this.options);y.p(c),this.T(E),this._$AH=y}}_$AC(n){let o=dp.get(n.strings);return o===void 0&&dp.set(n.strings,o=new x0(n)),o}k(n){Wp(this._$AH)||(this._$AH=[],this._$AR());const o=this._$AH;let c,f=0;for(const v of n)f===o.length?o.push(c=new cu(this.O(C0()),this.O(C0()),this,this.options)):c=o[f],c._$AI(v),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 T0{constructor(n,o,c,f,v){this.type=1,this._$AH=yr,this._$AN=void 0,this.element=n,this.name=o,this._$AM=f,this.options=v,c.length>2||c[0]!==""||c[1]!==""?(this._$AH=Array(c.length-1).fill(new String),this.strings=c):this._$AH=yr}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(n,o=this,c,f){const v=this.strings;let y=!1;if(v===void 0)n=Za(this,n,o,0),y=!w0(n)||n!==this._$AH&&n!==go,y&&(this._$AH=n);else{const E=n;let k,O;for(n=v[0],k=0;k<v.length-1;k++)O=Za(this,E[c+k],o,k),O===go&&(O=this._$AH[k]),y||(y=!w0(O)||O!==this._$AH[k]),O===yr?n=yr:n!==yr&&(n+=(O!=null?O:"")+v[k+1]),this._$AH[k]=O}y&&!f&&this.j(n)}j(n){n===yr?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,n!=null?n:"")}}class Gp extends T0{constructor(){super(...arguments),this.type=3}j(n){this.element[this.name]=n===yr?void 0:n}}const D7=iu?iu.emptyScript:"";class qp extends T0{constructor(){super(...arguments),this.type=4}j(n){n&&n!==yr?this.element.setAttribute(this.name,D7):this.element.removeAttribute(this.name)}}class jp extends T0{constructor(n,o,c,f,v){super(n,o,c,f,v),this.type=5}_$AI(n,o=this){var c;if((n=(c=Za(this,n,o,0))!==null&&c!==void 0?c:yr)===go)return;const f=this._$AH,v=n===yr&&f!==yr||n.capture!==f.capture||n.once!==f.once||n.passive!==f.passive,y=n!==yr&&(f===yr||v);v&&this.element.removeEventListener(this.name,this,f),y&&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 Kp{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){Za(this,n)}}const I7={P:"$lit$",A:ts,M:Dd,C:1,L:Zp,R:Vp,D:Bp,V:Za,I:cu,H:T0,N:qp,U:jp,B:Gp,F:Kp},hp=yc.litHtmlPolyfillSupport;hp==null||hp(x0,cu),((id=yc.litHtmlVersions)!==null&&id!==void 0?id:yc.litHtmlVersions=[]).push("2.4.0");const Xp=(r,n,o)=>{var c,f;const v=(c=o==null?void 0:o.renderBefore)!==null&&c!==void 0?c:n;let y=v._$litPart$;if(y===void 0){const E=(f=o==null?void 0:o.renderBefore)!==null&&f!==void 0?f:null;v._$litPart$=y=new cu(n.insertBefore(C0(),E),E,void 0,o!=null?o:{})}return y._$AI(r),y};/**
18
18
  * @license
19
19
  * Copyright 2017 Google LLC
20
20
  * SPDX-License-Identifier: BSD-3-Clause
21
- */var od,sd;class Ue extends Kl{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=jp(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 go}}Ue.finalized=!0,Ue._$litElement$=!0,(od=globalThis.litElementHydrateSupport)===null||od===void 0||od.call(globalThis,{LitElement:Ue});const hp=globalThis.litElementPolyfillSupport;hp==null||hp({LitElement:Ue});((sd=globalThis.litElementVersions)!==null&&sd!==void 0?sd:globalThis.litElementVersions=[]).push("3.2.2");/**
21
+ */var od,sd;class Ue extends Kl{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=Xp(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 go}}Ue.finalized=!0,Ue._$litElement$=!0,(od=globalThis.litElementHydrateSupport)===null||od===void 0||od.call(globalThis,{LitElement:Ue});const pp=globalThis.litElementPolyfillSupport;pp==null||pp({LitElement:Ue});((sd=globalThis.litElementVersions)!==null&&sd!==void 0?sd:globalThis.litElementVersions=[]).push("3.2.2");/**
22
22
  * @license
23
23
  * Copyright 2017 Google LLC
24
24
  * SPDX-License-Identifier: BSD-3-Clause
@@ -26,7 +26,7 @@
26
26
  * @license
27
27
  * Copyright 2017 Google LLC
28
28
  * SPDX-License-Identifier: BSD-3-Clause
29
- */const D7=(r,n)=>n.kind==="method"&&n.descriptor&&!("value"in n.descriptor)?{...n,finisher(o){o.createProperty(n.key,r)}}:{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:n.key,initializer(){typeof n.initializer=="function"&&(this[n.key]=n.initializer.call(this))},finisher(o){o.createProperty(n.key,r)}};function W(r){return(n,o)=>o!==void 0?((c,f,v)=>{f.constructor.createProperty(v,c)})(r,n,o):D7(r,n)}/**
29
+ */const z7=(r,n)=>n.kind==="method"&&n.descriptor&&!("value"in n.descriptor)?{...n,finisher(o){o.createProperty(n.key,r)}}:{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:n.key,initializer(){typeof n.initializer=="function"&&(this[n.key]=n.initializer.call(this))},finisher(o){o.createProperty(n.key,r)}};function W(r){return(n,o)=>o!==void 0?((c,f,v)=>{f.constructor.createProperty(v,c)})(r,n,o):z7(r,n)}/**
30
30
  * @license
31
31
  * Copyright 2017 Google LLC
32
32
  * SPDX-License-Identifier: BSD-3-Clause
@@ -34,7 +34,7 @@
34
34
  * @license
35
35
  * Copyright 2021 Google LLC
36
36
  * SPDX-License-Identifier: BSD-3-Clause
37
- */var ad;((ad=window.HTMLSlotElement)===null||ad===void 0?void 0:ad.prototype.assignedElements)!=null;var I7=Object.defineProperty,z7=Object.getOwnPropertyDescriptor,Dd=(r,n,o,c)=>{for(var f=c>1?void 0:c?z7(n,o):n,v=r.length-1,y;v>=0;v--)(y=r[v])&&(f=(c?y(n,o,f):y(f))||f);return c&&f&&I7(n,o,f),f};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?J``:J`<slot></slot>`}};exports.FadeInOut.styles=ke`
37
+ */var ad;((ad=window.HTMLSlotElement)===null||ad===void 0?void 0:ad.prototype.assignedElements)!=null;var N7=Object.defineProperty,$7=Object.getOwnPropertyDescriptor,Id=(r,n,o,c)=>{for(var f=c>1?void 0:c?$7(n,o):n,v=r.length-1,y;v>=0;v--)(y=r[v])&&(f=(c?y(n,o,f):y(f))||f);return c&&f&&N7(n,o,f),f};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?J``:J`<slot></slot>`}};exports.FadeInOut.styles=ke`
38
38
  :host {
39
39
  opacity: 0;
40
40
  animation: fade-in 0.3s ease;
@@ -51,7 +51,7 @@
51
51
  opacity: 1;
52
52
  }
53
53
  }
54
- `;Dd([W({type:Boolean})],exports.FadeInOut.prototype,"shown",2);Dd([W({attribute:!1})],exports.FadeInOut.prototype,"removed",2);exports.FadeInOut=Dd([De("sp-fade-in-out")],exports.FadeInOut);/**
54
+ `;Id([W({type:Boolean})],exports.FadeInOut.prototype,"shown",2);Id([W({attribute:!1})],exports.FadeInOut.prototype,"removed",2);exports.FadeInOut=Id([De("sp-fade-in-out")],exports.FadeInOut);/**
55
55
  * @license
56
56
  * Copyright 2017 Google LLC
57
57
  * SPDX-License-Identifier: BSD-3-Clause
@@ -59,15 +59,15 @@
59
59
  * @license
60
60
  * Copyright 2018 Google LLC
61
61
  * SPDX-License-Identifier: BSD-3-Clause
62
- */const js=Pc(class extends Ec{constructor(r){var n;if(super(r),r.type!==Tc.ATTRIBUTE||r.name!=="class"||((n=r.strings)===null||n===void 0?void 0:n.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(r){return" "+Object.keys(r).filter(n=>r[n]).join(" ")+" "}update(r,[n]){var o,c;if(this.nt===void 0){this.nt=new Set,r.strings!==void 0&&(this.st=new Set(r.strings.join(" ").split(/\s/).filter(v=>v!=="")));for(const v in n)n[v]&&!(!((o=this.st)===null||o===void 0)&&o.has(v))&&this.nt.add(v);return this.render(n)}const f=r.element.classList;this.nt.forEach(v=>{v in n||(f.remove(v),this.nt.delete(v))});for(const v in n){const y=!!n[v];y===this.nt.has(v)||((c=this.st)===null||c===void 0?void 0:c.has(v))||(y?(f.add(v),this.nt.add(v)):(f.remove(v),this.nt.delete(v)))}return go}});/**
62
+ */const qs=Pc(class extends Ec{constructor(r){var n;if(super(r),r.type!==Tc.ATTRIBUTE||r.name!=="class"||((n=r.strings)===null||n===void 0?void 0:n.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(r){return" "+Object.keys(r).filter(n=>r[n]).join(" ")+" "}update(r,[n]){var o,c;if(this.nt===void 0){this.nt=new Set,r.strings!==void 0&&(this.st=new Set(r.strings.join(" ").split(/\s/).filter(v=>v!=="")));for(const v in n)n[v]&&!(!((o=this.st)===null||o===void 0)&&o.has(v))&&this.nt.add(v);return this.render(n)}const f=r.element.classList;this.nt.forEach(v=>{v in n||(f.remove(v),this.nt.delete(v))});for(const v in n){const y=!!n[v];y===this.nt.has(v)||((c=this.st)===null||c===void 0?void 0:c.has(v))||(y?(f.add(v),this.nt.add(v)):(f.remove(v),this.nt.delete(v)))}return go}});/**
63
63
  * @license
64
64
  * Copyright 2018 Google LLC
65
65
  * SPDX-License-Identifier: BSD-3-Clause
66
- */const Yt=r=>r!=null?r:yr,Sr=r=>`sp-${r.toLowerCase()}`;var Dn="top",gi="bottom",mi="right",In="left",Ac="auto",P0=[Dn,gi,mi,In],su="start",_0="end",N7="clippingParents",Kp="viewport",f0="popper",$7="reference",pp=P0.reduce(function(r,n){return r.concat([n+"-"+su,n+"-"+_0])},[]),Xp=[].concat(P0,[Ac]).reduce(function(r,n){return r.concat([n,n+"-"+su,n+"-"+_0])},[]),R7="beforeRead",H7="read",F7="afterRead",W7="beforeMain",B7="main",U7="afterMain",Y7="beforeWrite",Z7="write",V7="afterWrite",vd=[R7,H7,F7,W7,B7,U7,Y7,Z7,V7];function mo(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 Va(r){var n=yi(r).Element;return r instanceof n||r instanceof Element}function Qn(r){var n=yi(r).HTMLElement;return r instanceof n||r instanceof HTMLElement}function Id(r){if(typeof ShadowRoot=="undefined")return!1;var n=yi(r).ShadowRoot;return r instanceof n||r instanceof ShadowRoot}function G7(r){var n=r.state;Object.keys(n.elements).forEach(function(o){var c=n.styles[o]||{},f=n.attributes[o]||{},v=n.elements[o];!Qn(v)||!mo(v)||(Object.assign(v.style,c),Object.keys(f).forEach(function(y){var E=f[y];E===!1?v.removeAttribute(y):v.setAttribute(y,E===!0?"":E)}))})}function q7(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],v=n.attributes[c]||{},y=Object.keys(n.styles.hasOwnProperty(c)?n.styles[c]:o[c]),E=y.reduce(function(k,O){return k[O]="",k},{});!Qn(f)||!mo(f)||(Object.assign(f.style,E),Object.keys(v).forEach(function(k){f.removeAttribute(k)}))})}}const j7={name:"applyStyles",enabled:!0,phase:"write",fn:G7,effect:q7,requires:["computeStyles"]};function Ni(r){return r.split("-")[0]}var Ua=Math.max,bc=Math.min,au=Math.round;function gd(){var r=navigator.userAgentData;return r!=null&&r.brands?r.brands.map(function(n){return n.brand+"/"+n.version}).join(" "):navigator.userAgent}function Qp(){return!/^((?!chrome|android).)*safari/i.test(gd())}function lu(r,n,o){n===void 0&&(n=!1),o===void 0&&(o=!1);var c=r.getBoundingClientRect(),f=1,v=1;n&&Qn(r)&&(f=r.offsetWidth>0&&au(c.width)/r.offsetWidth||1,v=r.offsetHeight>0&&au(c.height)/r.offsetHeight||1);var y=Va(r)?yi(r):window,E=y.visualViewport,k=!Qp()&&o,O=(c.left+(k&&E?E.offsetLeft:0))/f,I=(c.top+(k&&E?E.offsetTop:0))/v,U=c.width/f,q=c.height/v;return{width:U,height:q,top:I,right:O+U,bottom:I+q,left:O,x:O,y:I}}function zd(r){var n=lu(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 Jp(r,n){var o=n.getRootNode&&n.getRootNode();if(r.contains(n))return!0;if(o&&Id(o)){var c=n;do{if(c&&r.isSameNode(c))return!0;c=c.parentNode||c.host}while(c)}return!1}function $i(r){return yi(r).getComputedStyle(r)}function K7(r){return["table","td","th"].indexOf(mo(r))>=0}function Ks(r){return((Va(r)?r.ownerDocument:r.document)||window.document).documentElement}function Dc(r){return mo(r)==="html"?r:r.assignedSlot||r.parentNode||(Id(r)?r.host:null)||Ks(r)}function vp(r){return!Qn(r)||$i(r).position==="fixed"?null:r.offsetParent}function X7(r){var n=/firefox/i.test(gd()),o=/Trident/i.test(gd());if(o&&Qn(r)){var c=$i(r);if(c.position==="fixed")return null}var f=Dc(r);for(Id(f)&&(f=f.host);Qn(f)&&["html","body"].indexOf(mo(f))<0;){var v=$i(f);if(v.transform!=="none"||v.perspective!=="none"||v.contain==="paint"||["transform","perspective"].indexOf(v.willChange)!==-1||n&&v.willChange==="filter"||n&&v.filter&&v.filter!=="none")return f;f=f.parentNode}return null}function E0(r){for(var n=yi(r),o=vp(r);o&&K7(o)&&$i(o).position==="static";)o=vp(o);return o&&(mo(o)==="html"||mo(o)==="body"&&$i(o).position==="static")?n:o||X7(r)||n}function Nd(r){return["top","bottom"].indexOf(r)>=0?"x":"y"}function g0(r,n,o){return Ua(r,bc(n,o))}function Q7(r,n,o){var c=g0(r,n,o);return c>o?o:c}function e2(){return{top:0,right:0,bottom:0,left:0}}function t2(r){return Object.assign({},e2(),r)}function r2(r,n){return n.reduce(function(o,c){return o[c]=r,o},{})}var J7=function(n,o){return n=typeof n=="function"?n(Object.assign({},o.rects,{placement:o.placement})):n,t2(typeof n!="number"?n:r2(n,P0))};function e9(r){var n,o=r.state,c=r.name,f=r.options,v=o.elements.arrow,y=o.modifiersData.popperOffsets,E=Ni(o.placement),k=Nd(E),O=[In,mi].indexOf(E)>=0,I=O?"height":"width";if(!(!v||!y)){var U=J7(f.padding,o),q=zd(v),X=k==="y"?Dn:In,ue=k==="y"?gi:mi,Ce=o.rects.reference[I]+o.rects.reference[k]-y[k]-o.rects.popper[I],me=y[k]-o.rects.reference[k],Ee=E0(v),Ae=Ee?k==="y"?Ee.clientHeight||0:Ee.clientWidth||0:0,he=Ce/2-me/2,de=U[X],Te=Ae-q[I]-U[ue],$e=Ae/2-q[I]/2+he,We=g0(de,$e,Te),Qe=k;o.modifiersData[c]=(n={},n[Qe]=We,n.centerOffset=We-$e,n)}}function t9(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"&&(Qn(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(" "))),!Jp(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 r9={name:"arrow",enabled:!0,phase:"main",fn:e9,effect:t9,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function uu(r){return r.split("-")[1]}var n9={top:"auto",right:"auto",bottom:"auto",left:"auto"};function i9(r){var n=r.x,o=r.y,c=window,f=c.devicePixelRatio||1;return{x:au(n*f)/f||0,y:au(o*f)/f||0}}function gp(r){var n,o=r.popper,c=r.popperRect,f=r.placement,v=r.variation,y=r.offsets,E=r.position,k=r.gpuAcceleration,O=r.adaptive,I=r.roundOffsets,U=r.isFixed,q=y.x,X=q===void 0?0:q,ue=y.y,Ce=ue===void 0?0:ue,me=typeof I=="function"?I({x:X,y:Ce}):{x:X,y:Ce};X=me.x,Ce=me.y;var Ee=y.hasOwnProperty("x"),Ae=y.hasOwnProperty("y"),he=In,de=Dn,Te=window;if(O){var $e=E0(o),We="clientHeight",Qe="clientWidth";if($e===yi(o)&&($e=Ks(o),$i($e).position!=="static"&&E==="absolute"&&(We="scrollHeight",Qe="scrollWidth")),$e=$e,f===Dn||(f===In||f===mi)&&v===_0){de=gi;var tt=U&&$e===Te&&Te.visualViewport?Te.visualViewport.height:$e[We];Ce-=tt-c.height,Ce*=k?1:-1}if(f===In||(f===Dn||f===gi)&&v===_0){he=mi;var pe=U&&$e===Te&&Te.visualViewport?Te.visualViewport.width:$e[Qe];X-=pe-c.width,X*=k?1:-1}}var ye=Object.assign({position:E},O&&n9),rt=I===!0?i9({x:X,y:Ce}):{x:X,y:Ce};if(X=rt.x,Ce=rt.y,k){var B;return Object.assign({},ye,(B={},B[de]=Ae?"0":"",B[he]=Ee?"0":"",B.transform=(Te.devicePixelRatio||1)<=1?"translate("+X+"px, "+Ce+"px)":"translate3d("+X+"px, "+Ce+"px, 0)",B))}return Object.assign({},ye,(n={},n[de]=Ae?Ce+"px":"",n[he]=Ee?X+"px":"",n.transform="",n))}function o9(r){var n=r.state,o=r.options,c=o.gpuAcceleration,f=c===void 0?!0:c,v=o.adaptive,y=v===void 0?!0:v,E=o.roundOffsets,k=E===void 0?!0:E;if({}.NODE_ENV!=="production"){var O=$i(n.elements.popper).transitionProperty||"";y&&["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".',`
66
+ */const Yt=r=>r!=null?r:yr,Sr=r=>`sp-${r.toLowerCase()}`;var Dn="top",gi="bottom",mi="right",In="left",Ac="auto",P0=[Dn,gi,mi,In],su="start",_0="end",R7="clippingParents",Qp="viewport",f0="popper",H7="reference",vp=P0.reduce(function(r,n){return r.concat([n+"-"+su,n+"-"+_0])},[]),Jp=[].concat(P0,[Ac]).reduce(function(r,n){return r.concat([n,n+"-"+su,n+"-"+_0])},[]),F7="beforeRead",W7="read",B7="afterRead",U7="beforeMain",Y7="main",Z7="afterMain",V7="beforeWrite",G7="write",q7="afterWrite",gd=[F7,W7,B7,U7,Y7,Z7,V7,G7,q7];function mo(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 Va(r){var n=yi(r).Element;return r instanceof n||r instanceof Element}function Qn(r){var n=yi(r).HTMLElement;return r instanceof n||r instanceof HTMLElement}function zd(r){if(typeof ShadowRoot=="undefined")return!1;var n=yi(r).ShadowRoot;return r instanceof n||r instanceof ShadowRoot}function j7(r){var n=r.state;Object.keys(n.elements).forEach(function(o){var c=n.styles[o]||{},f=n.attributes[o]||{},v=n.elements[o];!Qn(v)||!mo(v)||(Object.assign(v.style,c),Object.keys(f).forEach(function(y){var E=f[y];E===!1?v.removeAttribute(y):v.setAttribute(y,E===!0?"":E)}))})}function K7(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],v=n.attributes[c]||{},y=Object.keys(n.styles.hasOwnProperty(c)?n.styles[c]:o[c]),E=y.reduce(function(k,O){return k[O]="",k},{});!Qn(f)||!mo(f)||(Object.assign(f.style,E),Object.keys(v).forEach(function(k){f.removeAttribute(k)}))})}}const X7={name:"applyStyles",enabled:!0,phase:"write",fn:j7,effect:K7,requires:["computeStyles"]};function Ni(r){return r.split("-")[0]}var Ua=Math.max,bc=Math.min,au=Math.round;function md(){var r=navigator.userAgentData;return r!=null&&r.brands?r.brands.map(function(n){return n.brand+"/"+n.version}).join(" "):navigator.userAgent}function e2(){return!/^((?!chrome|android).)*safari/i.test(md())}function lu(r,n,o){n===void 0&&(n=!1),o===void 0&&(o=!1);var c=r.getBoundingClientRect(),f=1,v=1;n&&Qn(r)&&(f=r.offsetWidth>0&&au(c.width)/r.offsetWidth||1,v=r.offsetHeight>0&&au(c.height)/r.offsetHeight||1);var y=Va(r)?yi(r):window,E=y.visualViewport,k=!e2()&&o,O=(c.left+(k&&E?E.offsetLeft:0))/f,I=(c.top+(k&&E?E.offsetTop:0))/v,U=c.width/f,q=c.height/v;return{width:U,height:q,top:I,right:O+U,bottom:I+q,left:O,x:O,y:I}}function Nd(r){var n=lu(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 t2(r,n){var o=n.getRootNode&&n.getRootNode();if(r.contains(n))return!0;if(o&&zd(o)){var c=n;do{if(c&&r.isSameNode(c))return!0;c=c.parentNode||c.host}while(c)}return!1}function $i(r){return yi(r).getComputedStyle(r)}function Q7(r){return["table","td","th"].indexOf(mo(r))>=0}function js(r){return((Va(r)?r.ownerDocument:r.document)||window.document).documentElement}function Dc(r){return mo(r)==="html"?r:r.assignedSlot||r.parentNode||(zd(r)?r.host:null)||js(r)}function gp(r){return!Qn(r)||$i(r).position==="fixed"?null:r.offsetParent}function J7(r){var n=/firefox/i.test(md()),o=/Trident/i.test(md());if(o&&Qn(r)){var c=$i(r);if(c.position==="fixed")return null}var f=Dc(r);for(zd(f)&&(f=f.host);Qn(f)&&["html","body"].indexOf(mo(f))<0;){var v=$i(f);if(v.transform!=="none"||v.perspective!=="none"||v.contain==="paint"||["transform","perspective"].indexOf(v.willChange)!==-1||n&&v.willChange==="filter"||n&&v.filter&&v.filter!=="none")return f;f=f.parentNode}return null}function E0(r){for(var n=yi(r),o=gp(r);o&&Q7(o)&&$i(o).position==="static";)o=gp(o);return o&&(mo(o)==="html"||mo(o)==="body"&&$i(o).position==="static")?n:o||J7(r)||n}function $d(r){return["top","bottom"].indexOf(r)>=0?"x":"y"}function g0(r,n,o){return Ua(r,bc(n,o))}function e9(r,n,o){var c=g0(r,n,o);return c>o?o:c}function r2(){return{top:0,right:0,bottom:0,left:0}}function n2(r){return Object.assign({},r2(),r)}function i2(r,n){return n.reduce(function(o,c){return o[c]=r,o},{})}var t9=function(n,o){return n=typeof n=="function"?n(Object.assign({},o.rects,{placement:o.placement})):n,n2(typeof n!="number"?n:i2(n,P0))};function r9(r){var n,o=r.state,c=r.name,f=r.options,v=o.elements.arrow,y=o.modifiersData.popperOffsets,E=Ni(o.placement),k=$d(E),O=[In,mi].indexOf(E)>=0,I=O?"height":"width";if(!(!v||!y)){var U=t9(f.padding,o),q=Nd(v),X=k==="y"?Dn:In,ue=k==="y"?gi:mi,Ce=o.rects.reference[I]+o.rects.reference[k]-y[k]-o.rects.popper[I],me=y[k]-o.rects.reference[k],Ee=E0(v),Ae=Ee?k==="y"?Ee.clientHeight||0:Ee.clientWidth||0:0,he=Ce/2-me/2,de=U[X],Te=Ae-q[I]-U[ue],$e=Ae/2-q[I]/2+he,We=g0(de,$e,Te),Qe=k;o.modifiersData[c]=(n={},n[Qe]=We,n.centerOffset=We-$e,n)}}function n9(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"&&(Qn(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(" "))),!t2(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 i9={name:"arrow",enabled:!0,phase:"main",fn:r9,effect:n9,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function uu(r){return r.split("-")[1]}var o9={top:"auto",right:"auto",bottom:"auto",left:"auto"};function s9(r){var n=r.x,o=r.y,c=window,f=c.devicePixelRatio||1;return{x:au(n*f)/f||0,y:au(o*f)/f||0}}function mp(r){var n,o=r.popper,c=r.popperRect,f=r.placement,v=r.variation,y=r.offsets,E=r.position,k=r.gpuAcceleration,O=r.adaptive,I=r.roundOffsets,U=r.isFixed,q=y.x,X=q===void 0?0:q,ue=y.y,Ce=ue===void 0?0:ue,me=typeof I=="function"?I({x:X,y:Ce}):{x:X,y:Ce};X=me.x,Ce=me.y;var Ee=y.hasOwnProperty("x"),Ae=y.hasOwnProperty("y"),he=In,de=Dn,Te=window;if(O){var $e=E0(o),We="clientHeight",Qe="clientWidth";if($e===yi(o)&&($e=js(o),$i($e).position!=="static"&&E==="absolute"&&(We="scrollHeight",Qe="scrollWidth")),$e=$e,f===Dn||(f===In||f===mi)&&v===_0){de=gi;var tt=U&&$e===Te&&Te.visualViewport?Te.visualViewport.height:$e[We];Ce-=tt-c.height,Ce*=k?1:-1}if(f===In||(f===Dn||f===gi)&&v===_0){he=mi;var pe=U&&$e===Te&&Te.visualViewport?Te.visualViewport.width:$e[Qe];X-=pe-c.width,X*=k?1:-1}}var ye=Object.assign({position:E},O&&o9),rt=I===!0?s9({x:X,y:Ce}):{x:X,y:Ce};if(X=rt.x,Ce=rt.y,k){var B;return Object.assign({},ye,(B={},B[de]=Ae?"0":"",B[he]=Ee?"0":"",B.transform=(Te.devicePixelRatio||1)<=1?"translate("+X+"px, "+Ce+"px)":"translate3d("+X+"px, "+Ce+"px, 0)",B))}return Object.assign({},ye,(n={},n[de]=Ae?Ce+"px":"",n[he]=Ee?X+"px":"",n.transform="",n))}function a9(r){var n=r.state,o=r.options,c=o.gpuAcceleration,f=c===void 0?!0:c,v=o.adaptive,y=v===void 0?!0:v,E=o.roundOffsets,k=E===void 0?!0:E;if({}.NODE_ENV!=="production"){var O=$i(n.elements.popper).transitionProperty||"";y&&["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".',`
67
67
 
68
68
  `,'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.",`
69
69
 
70
- `,"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:Ni(n.placement),variation:uu(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,gp(Object.assign({},I,{offsets:n.modifiersData.popperOffsets,position:n.options.strategy,adaptive:y,roundOffsets:k})))),n.modifiersData.arrow!=null&&(n.styles.arrow=Object.assign({},n.styles.arrow,gp(Object.assign({},I,{offsets:n.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:k})))),n.attributes.popper=Object.assign({},n.attributes.popper,{"data-popper-placement":n.placement})}const s9={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:o9,data:{}};var uc={passive:!0};function a9(r){var n=r.state,o=r.instance,c=r.options,f=c.scroll,v=f===void 0?!0:f,y=c.resize,E=y===void 0?!0:y,k=yi(n.elements.popper),O=[].concat(n.scrollParents.reference,n.scrollParents.popper);return v&&O.forEach(function(I){I.addEventListener("scroll",o.update,uc)}),E&&k.addEventListener("resize",o.update,uc),function(){v&&O.forEach(function(I){I.removeEventListener("scroll",o.update,uc)}),E&&k.removeEventListener("resize",o.update,uc)}}const l9={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:a9,data:{}};var u9={left:"right",right:"left",bottom:"top",top:"bottom"};function hc(r){return r.replace(/left|right|bottom|top/g,function(n){return u9[n]})}var c9={start:"end",end:"start"};function mp(r){return r.replace(/start|end/g,function(n){return c9[n]})}function $d(r){var n=yi(r),o=n.pageXOffset,c=n.pageYOffset;return{scrollLeft:o,scrollTop:c}}function Rd(r){return lu(Ks(r)).left+$d(r).scrollLeft}function f9(r,n){var o=yi(r),c=Ks(r),f=o.visualViewport,v=c.clientWidth,y=c.clientHeight,E=0,k=0;if(f){v=f.width,y=f.height;var O=Qp();(O||!O&&n==="fixed")&&(E=f.offsetLeft,k=f.offsetTop)}return{width:v,height:y,x:E+Rd(r),y:k}}function d9(r){var n,o=Ks(r),c=$d(r),f=(n=r.ownerDocument)==null?void 0:n.body,v=Ua(o.scrollWidth,o.clientWidth,f?f.scrollWidth:0,f?f.clientWidth:0),y=Ua(o.scrollHeight,o.clientHeight,f?f.scrollHeight:0,f?f.clientHeight:0),E=-c.scrollLeft+Rd(r),k=-c.scrollTop;return $i(f||o).direction==="rtl"&&(E+=Ua(o.clientWidth,f?f.clientWidth:0)-v),{width:v,height:y,x:E,y:k}}function Hd(r){var n=$i(r),o=n.overflow,c=n.overflowX,f=n.overflowY;return/auto|scroll|overlay|hidden/.test(o+f+c)}function n2(r){return["html","body","#document"].indexOf(mo(r))>=0?r.ownerDocument.body:Qn(r)&&Hd(r)?r:n2(Dc(r))}function m0(r,n){var o;n===void 0&&(n=[]);var c=n2(r),f=c===((o=r.ownerDocument)==null?void 0:o.body),v=yi(c),y=f?[v].concat(v.visualViewport||[],Hd(c)?c:[]):c,E=n.concat(y);return f?E:E.concat(m0(Dc(y)))}function md(r){return Object.assign({},r,{left:r.x,top:r.y,right:r.x+r.width,bottom:r.y+r.height})}function h9(r,n){var o=lu(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 yp(r,n,o){return n===Kp?md(f9(r,o)):Va(n)?h9(n,o):md(d9(Ks(r)))}function p9(r){var n=m0(Dc(r)),o=["absolute","fixed"].indexOf($i(r).position)>=0,c=o&&Qn(r)?E0(r):r;return Va(c)?n.filter(function(f){return Va(f)&&Jp(f,c)&&mo(f)!=="body"}):[]}function v9(r,n,o,c){var f=n==="clippingParents"?p9(r):[].concat(n),v=[].concat(f,[o]),y=v[0],E=v.reduce(function(k,O){var I=yp(r,O,c);return k.top=Ua(I.top,k.top),k.right=bc(I.right,k.right),k.bottom=bc(I.bottom,k.bottom),k.left=Ua(I.left,k.left),k},yp(r,y,c));return E.width=E.right-E.left,E.height=E.bottom-E.top,E.x=E.left,E.y=E.top,E}function i2(r){var n=r.reference,o=r.element,c=r.placement,f=c?Ni(c):null,v=c?uu(c):null,y=n.x+n.width/2-o.width/2,E=n.y+n.height/2-o.height/2,k;switch(f){case Dn:k={x:y,y:n.y-o.height};break;case gi:k={x:y,y:n.y+n.height};break;case mi:k={x:n.x+n.width,y:E};break;case In:k={x:n.x-o.width,y:E};break;default:k={x:n.x,y:n.y}}var O=f?Nd(f):null;if(O!=null){var I=O==="y"?"height":"width";switch(v){case su:k[O]=k[O]-(n[I]/2-o[I]/2);break;case _0:k[O]=k[O]+(n[I]/2-o[I]/2);break}}return k}function L0(r,n){n===void 0&&(n={});var o=n,c=o.placement,f=c===void 0?r.placement:c,v=o.strategy,y=v===void 0?r.strategy:v,E=o.boundary,k=E===void 0?N7:E,O=o.rootBoundary,I=O===void 0?Kp:O,U=o.elementContext,q=U===void 0?f0:U,X=o.altBoundary,ue=X===void 0?!1:X,Ce=o.padding,me=Ce===void 0?0:Ce,Ee=t2(typeof me!="number"?me:r2(me,P0)),Ae=q===f0?$7:f0,he=r.rects.popper,de=r.elements[ue?Ae:q],Te=v9(Va(de)?de:de.contextElement||Ks(r.elements.popper),k,I,y),$e=lu(r.elements.reference),We=i2({reference:$e,element:he,strategy:"absolute",placement:f}),Qe=md(Object.assign({},he,We)),tt=q===f0?Qe:$e,pe={top:Te.top-tt.top+Ee.top,bottom:tt.bottom-Te.bottom+Ee.bottom,left:Te.left-tt.left+Ee.left,right:tt.right-Te.right+Ee.right},ye=r.modifiersData.offset;if(q===f0&&ye){var rt=ye[f];Object.keys(pe).forEach(function(B){var D=[mi,gi].indexOf(B)>=0?1:-1,T=[Dn,gi].indexOf(B)>=0?"y":"x";pe[B]+=rt[T]*D})}return pe}function g9(r,n){n===void 0&&(n={});var o=n,c=o.placement,f=o.boundary,v=o.rootBoundary,y=o.padding,E=o.flipVariations,k=o.allowedAutoPlacements,O=k===void 0?Xp:k,I=uu(c),U=I?E?pp:pp.filter(function(ue){return uu(ue)===I}):P0,q=U.filter(function(ue){return O.indexOf(ue)>=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(ue,Ce){return ue[Ce]=L0(r,{placement:Ce,boundary:f,rootBoundary:v,padding:y})[Ni(Ce)],ue},{});return Object.keys(X).sort(function(ue,Ce){return X[ue]-X[Ce]})}function m9(r){if(Ni(r)===Ac)return[];var n=hc(r);return[mp(r),n,mp(n)]}function y9(r){var n=r.state,o=r.options,c=r.name;if(!n.modifiersData[c]._skip){for(var f=o.mainAxis,v=f===void 0?!0:f,y=o.altAxis,E=y===void 0?!0:y,k=o.fallbackPlacements,O=o.padding,I=o.boundary,U=o.rootBoundary,q=o.altBoundary,X=o.flipVariations,ue=X===void 0?!0:X,Ce=o.allowedAutoPlacements,me=n.options.placement,Ee=Ni(me),Ae=Ee===me,he=k||(Ae||!ue?[hc(me)]:m9(me)),de=[me].concat(he).reduce(function(Ht,at){return Ht.concat(Ni(at)===Ac?g9(n,{placement:at,boundary:I,rootBoundary:U,padding:O,flipVariations:ue,allowedAutoPlacements:Ce}):at)},[]),Te=n.rects.reference,$e=n.rects.popper,We=new Map,Qe=!0,tt=de[0],pe=0;pe<de.length;pe++){var ye=de[pe],rt=Ni(ye),B=uu(ye)===su,D=[Dn,gi].indexOf(rt)>=0,T=D?"width":"height",re=L0(n,{placement:ye,boundary:I,rootBoundary:U,altBoundary:q,padding:O}),ve=D?B?mi:In:B?gi:Dn;Te[T]>$e[T]&&(ve=hc(ve));var nt=hc(ve),Pt=[];if(v&&Pt.push(re[rt]<=0),E&&Pt.push(re[ve]<=0,re[nt]<=0),Pt.every(function(Ht){return Ht})){tt=ye,Qe=!1;break}We.set(ye,Pt)}if(Qe)for(var or=ue?3:1,Rt=function(at){var _e=de.find(function(He){var Be=We.get(He);if(Be)return Be.slice(0,at).every(function(it){return it})});if(_e)return tt=_e,"break"},fn=or;fn>0;fn--){var Qt=Rt(fn);if(Qt==="break")break}n.placement!==tt&&(n.modifiersData[c]._skip=!0,n.placement=tt,n.reset=!0)}}const b9={name:"flip",enabled:!0,phase:"main",fn:y9,requiresIfExists:["offset"],data:{_skip:!1}};function bp(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 Cp(r){return[Dn,mi,gi,In].some(function(n){return r[n]>=0})}function C9(r){var n=r.state,o=r.name,c=n.rects.reference,f=n.rects.popper,v=n.modifiersData.preventOverflow,y=L0(n,{elementContext:"reference"}),E=L0(n,{altBoundary:!0}),k=bp(y,c),O=bp(E,f,v),I=Cp(k),U=Cp(O);n.modifiersData[o]={referenceClippingOffsets:k,popperEscapeOffsets:O,isReferenceHidden:I,hasPopperEscaped:U},n.attributes.popper=Object.assign({},n.attributes.popper,{"data-popper-reference-hidden":I,"data-popper-escaped":U})}const w9={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:C9};function x9(r,n,o){var c=Ni(r),f=[In,Dn].indexOf(c)>=0?-1:1,v=typeof o=="function"?o(Object.assign({},n,{placement:r})):o,y=v[0],E=v[1];return y=y||0,E=(E||0)*f,[In,mi].indexOf(c)>=0?{x:E,y}:{x:y,y:E}}function _9(r){var n=r.state,o=r.options,c=r.name,f=o.offset,v=f===void 0?[0,0]:f,y=Xp.reduce(function(I,U){return I[U]=x9(U,n.rects,v),I},{}),E=y[n.placement],k=E.x,O=E.y;n.modifiersData.popperOffsets!=null&&(n.modifiersData.popperOffsets.x+=k,n.modifiersData.popperOffsets.y+=O),n.modifiersData[c]=y}const L9={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:_9};function S9(r){var n=r.state,o=r.name;n.modifiersData[o]=i2({reference:n.rects.reference,element:n.rects.popper,strategy:"absolute",placement:n.placement})}const k9={name:"popperOffsets",enabled:!0,phase:"read",fn:S9,data:{}};function M9(r){return r==="x"?"y":"x"}function O9(r){var n=r.state,o=r.options,c=r.name,f=o.mainAxis,v=f===void 0?!0:f,y=o.altAxis,E=y===void 0?!1:y,k=o.boundary,O=o.rootBoundary,I=o.altBoundary,U=o.padding,q=o.tether,X=q===void 0?!0:q,ue=o.tetherOffset,Ce=ue===void 0?0:ue,me=L0(n,{boundary:k,rootBoundary:O,padding:U,altBoundary:I}),Ee=Ni(n.placement),Ae=uu(n.placement),he=!Ae,de=Nd(Ee),Te=M9(de),$e=n.modifiersData.popperOffsets,We=n.rects.reference,Qe=n.rects.popper,tt=typeof Ce=="function"?Ce(Object.assign({},n.rects,{placement:n.placement})):Ce,pe=typeof tt=="number"?{mainAxis:tt,altAxis:tt}:Object.assign({mainAxis:0,altAxis:0},tt),ye=n.modifiersData.offset?n.modifiersData.offset[n.placement]:null,rt={x:0,y:0};if(!!$e){if(v){var B,D=de==="y"?Dn:In,T=de==="y"?gi:mi,re=de==="y"?"height":"width",ve=$e[de],nt=ve+me[D],Pt=ve-me[T],or=X?-Qe[re]/2:0,Rt=Ae===su?We[re]:Qe[re],fn=Ae===su?-Qe[re]:-We[re],Qt=n.elements.arrow,Ht=X&&Qt?zd(Qt):{width:0,height:0},at=n.modifiersData["arrow#persistent"]?n.modifiersData["arrow#persistent"].padding:e2(),_e=at[D],He=at[T],Be=g0(0,We[re],Ht[re]),it=he?We[re]/2-or-Be-_e-pe.mainAxis:Rt-Be-_e-pe.mainAxis,ot=he?-We[re]/2+or+Be+He+pe.mainAxis:fn+Be+He+pe.mainAxis,Fe=n.elements.arrow&&E0(n.elements.arrow),Zt=Fe?de==="y"?Fe.clientTop||0:Fe.clientLeft||0:0,Gr=(B=ye==null?void 0:ye[de])!=null?B:0,sr=ve+it-Gr-Zt,je=ve+ot-Gr,mt=g0(X?bc(nt,sr):nt,ve,X?Ua(Pt,je):Pt);$e[de]=mt,rt[de]=mt-ve}if(E){var kt,$r=de==="x"?Dn:In,en=de==="x"?gi:mi,ur=$e[Te],Je=Te==="y"?"height":"width",F=ur+me[$r],ie=ur-me[en],V=[Dn,In].indexOf(Ee)!==-1,Ke=(kt=ye==null?void 0:ye[Te])!=null?kt:0,cr=V?F:ur-We[Je]-Qe[Je]-Ke+pe.altAxis,kr=V?ur+We[Je]+Qe[Je]-Ke-pe.altAxis:ie,$n=X&&V?Q7(cr,ur,kr):g0(X?cr:F,ur,X?kr:ie);$e[Te]=$n,rt[Te]=$n-ur}n.modifiersData[c]=rt}}const T9={name:"preventOverflow",enabled:!0,phase:"main",fn:O9,requiresIfExists:["offset"]};function P9(r){return{scrollLeft:r.scrollLeft,scrollTop:r.scrollTop}}function E9(r){return r===yi(r)||!Qn(r)?$d(r):P9(r)}function A9(r){var n=r.getBoundingClientRect(),o=au(n.width)/r.offsetWidth||1,c=au(n.height)/r.offsetHeight||1;return o!==1||c!==1}function D9(r,n,o){o===void 0&&(o=!1);var c=Qn(n),f=Qn(n)&&A9(n),v=Ks(n),y=lu(r,f,o),E={scrollLeft:0,scrollTop:0},k={x:0,y:0};return(c||!c&&!o)&&((mo(n)!=="body"||Hd(v))&&(E=E9(n)),Qn(n)?(k=lu(n,!0),k.x+=n.clientLeft,k.y+=n.clientTop):v&&(k.x=Rd(v))),{x:y.left+E.scrollLeft-k.x,y:y.top+E.scrollTop-k.y,width:y.width,height:y.height}}function I9(r){var n=new Map,o=new Set,c=[];r.forEach(function(v){n.set(v.name,v)});function f(v){o.add(v.name);var y=[].concat(v.requires||[],v.requiresIfExists||[]);y.forEach(function(E){if(!o.has(E)){var k=n.get(E);k&&f(k)}}),c.push(v)}return r.forEach(function(v){o.has(v.name)||f(v)}),c}function z9(r){var n=I9(r);return vd.reduce(function(o,c){return o.concat(n.filter(function(f){return f.phase===c}))},[])}function N9(r){var n;return function(){return n||(n=new Promise(function(o){Promise.resolve().then(function(){n=void 0,o(r())})})),n}}function Ys(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,v){return f.replace(/%s/,v)},r)}var Ra='Popper: modifier "%s" provided an invalid %s property, expected %s but got %s',$9='Popper: modifier "%s" requires "%s", but "%s" modifier is not available',wp=["name","enabled","phase","fn","effect","requires","options"];function R9(r){r.forEach(function(n){[].concat(Object.keys(n),wp).filter(function(o,c,f){return f.indexOf(o)===c}).forEach(function(o){switch(o){case"name":typeof n.name!="string"&&console.error(Ys(Ra,String(n.name),'"name"','"string"','"'+String(n.name)+'"'));break;case"enabled":typeof n.enabled!="boolean"&&console.error(Ys(Ra,n.name,'"enabled"','"boolean"','"'+String(n.enabled)+'"'));break;case"phase":vd.indexOf(n.phase)<0&&console.error(Ys(Ra,n.name,'"phase"',"either "+vd.join(", "),'"'+String(n.phase)+'"'));break;case"fn":typeof n.fn!="function"&&console.error(Ys(Ra,n.name,'"fn"','"function"','"'+String(n.fn)+'"'));break;case"effect":n.effect!=null&&typeof n.effect!="function"&&console.error(Ys(Ra,n.name,'"effect"','"function"','"'+String(n.fn)+'"'));break;case"requires":n.requires!=null&&!Array.isArray(n.requires)&&console.error(Ys(Ra,n.name,'"requires"','"array"','"'+String(n.requires)+'"'));break;case"requiresIfExists":Array.isArray(n.requiresIfExists)||console.error(Ys(Ra,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 '+wp.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(Ys($9,String(n.name),c,c))})})})}function H9(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 F9(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 xp="Popper: Invalid reference or popper argument provided. They must be either a DOM element or virtual element.",W9="Popper: An infinite loop in the modifiers cycle has been detected! The cycle has been interrupted to prevent a browser crash.",_p={placement:"bottom",modifiers:[],strategy:"absolute"};function Lp(){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 B9(r){r===void 0&&(r={});var n=r,o=n.defaultModifiers,c=o===void 0?[]:o,f=n.defaultOptions,v=f===void 0?_p:f;return function(E,k,O){O===void 0&&(O=v);var I={placement:"bottom",orderedModifiers:[],options:Object.assign({},_p,v),modifiersData:{},elements:{reference:E,popper:k},attributes:{},styles:{}},U=[],q=!1,X={state:I,setOptions:function(Ee){var Ae=typeof Ee=="function"?Ee(I.options):Ee;Ce(),I.options=Object.assign({},v,I.options,Ae),I.scrollParents={reference:Va(E)?m0(E):E.contextElement?m0(E.contextElement):[],popper:m0(k)};var he=z9(F9([].concat(c,I.options.modifiers)));if(I.orderedModifiers=he.filter(function(ye){return ye.enabled}),{}.NODE_ENV!=="production"){var de=H9([].concat(he,I.options.modifiers),function(ye){var rt=ye.name;return rt});if(R9(de),Ni(I.options.placement)===Ac){var Te=I.orderedModifiers.find(function(ye){var rt=ye.name;return rt==="flip"});Te||console.error(['Popper: "auto" placements require the "flip" modifier be',"present and enabled to work."].join(" "))}var $e=$i(k),We=$e.marginTop,Qe=$e.marginRight,tt=$e.marginBottom,pe=$e.marginLeft;[We,Qe,tt,pe].some(function(ye){return parseFloat(ye)})&&console.warn(['Popper: CSS "margin" styles cannot be used to apply padding',"between the popper and its reference element or boundary.","To replicate margin, use the `offset` modifier, as well as","the `padding` option in the `preventOverflow` and `flip`","modifiers."].join(" "))}return ue(),X.update()},forceUpdate:function(){if(!q){var Ee=I.elements,Ae=Ee.reference,he=Ee.popper;if(!Lp(Ae,he)){({}).NODE_ENV!=="production"&&console.error(xp);return}I.rects={reference:D9(Ae,E0(he),I.options.strategy==="fixed"),popper:zd(he)},I.reset=!1,I.placement=I.options.placement,I.orderedModifiers.forEach(function(ye){return I.modifiersData[ye.name]=Object.assign({},ye.data)});for(var de=0,Te=0;Te<I.orderedModifiers.length;Te++){if({}.NODE_ENV!=="production"&&(de+=1,de>100)){console.error(W9);break}if(I.reset===!0){I.reset=!1,Te=-1;continue}var $e=I.orderedModifiers[Te],We=$e.fn,Qe=$e.options,tt=Qe===void 0?{}:Qe,pe=$e.name;typeof We=="function"&&(I=We({state:I,options:tt,name:pe,instance:X})||I)}}},update:N9(function(){return new Promise(function(me){X.forceUpdate(),me(I)})}),destroy:function(){Ce(),q=!0}};if(!Lp(E,k))return{}.NODE_ENV!=="production"&&console.error(xp),X;X.setOptions(O).then(function(me){!q&&O.onFirstUpdate&&O.onFirstUpdate(me)});function ue(){I.orderedModifiers.forEach(function(me){var Ee=me.name,Ae=me.options,he=Ae===void 0?{}:Ae,de=me.effect;if(typeof de=="function"){var Te=de({state:I,name:Ee,instance:X,options:he}),$e=function(){};U.push(Te||$e)}})}function Ce(){U.forEach(function(me){return me()}),U=[]}return X}}var U9=[l9,k9,s9,j7,L9,b9,T9,r9,w9],Y9=B9({defaultModifiers:U9}),Z9=Object.defineProperty,V9=Object.getOwnPropertyDescriptor,ln=(r,n,o,c)=>{for(var f=c>1?void 0:c?V9(n,o):n,v=r.length-1,y;v>=0;v--)(y=r[v])&&(f=(c?y(n,o,f):y(f))||f);return c&&f&&Z9(n,o,f),f};let G9=0;const Fd=Sr("popover"),o2=Sr("pure-popover"),s2=["click","hover","focus"],[Cc,yd,Wa]=s2,Wd=["dialog","tooltip","menu"],[q9]=Wd;class j9 extends CustomEvent{constructor(n){super(`${Fd}-${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=q9,this.popoverId=`popover-${++G9}`,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||Y9(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 j9(r))}async open(){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.emit("close"),clearTimeout(this.delayTimeout),this.delayTimeout=window.setTimeout(async()=>{this.isOpen=!1,await this.updateComplete,this.emit("after-close")},this.delayOnClose)}async toggleIsOpen(){this.isOpen?await this.close():await this.open()}render(){return J`
70
+ `,"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:Ni(n.placement),variation:uu(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,mp(Object.assign({},I,{offsets:n.modifiersData.popperOffsets,position:n.options.strategy,adaptive:y,roundOffsets:k})))),n.modifiersData.arrow!=null&&(n.styles.arrow=Object.assign({},n.styles.arrow,mp(Object.assign({},I,{offsets:n.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:k})))),n.attributes.popper=Object.assign({},n.attributes.popper,{"data-popper-placement":n.placement})}const l9={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:a9,data:{}};var uc={passive:!0};function u9(r){var n=r.state,o=r.instance,c=r.options,f=c.scroll,v=f===void 0?!0:f,y=c.resize,E=y===void 0?!0:y,k=yi(n.elements.popper),O=[].concat(n.scrollParents.reference,n.scrollParents.popper);return v&&O.forEach(function(I){I.addEventListener("scroll",o.update,uc)}),E&&k.addEventListener("resize",o.update,uc),function(){v&&O.forEach(function(I){I.removeEventListener("scroll",o.update,uc)}),E&&k.removeEventListener("resize",o.update,uc)}}const c9={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:u9,data:{}};var f9={left:"right",right:"left",bottom:"top",top:"bottom"};function hc(r){return r.replace(/left|right|bottom|top/g,function(n){return f9[n]})}var d9={start:"end",end:"start"};function yp(r){return r.replace(/start|end/g,function(n){return d9[n]})}function Rd(r){var n=yi(r),o=n.pageXOffset,c=n.pageYOffset;return{scrollLeft:o,scrollTop:c}}function Hd(r){return lu(js(r)).left+Rd(r).scrollLeft}function h9(r,n){var o=yi(r),c=js(r),f=o.visualViewport,v=c.clientWidth,y=c.clientHeight,E=0,k=0;if(f){v=f.width,y=f.height;var O=e2();(O||!O&&n==="fixed")&&(E=f.offsetLeft,k=f.offsetTop)}return{width:v,height:y,x:E+Hd(r),y:k}}function p9(r){var n,o=js(r),c=Rd(r),f=(n=r.ownerDocument)==null?void 0:n.body,v=Ua(o.scrollWidth,o.clientWidth,f?f.scrollWidth:0,f?f.clientWidth:0),y=Ua(o.scrollHeight,o.clientHeight,f?f.scrollHeight:0,f?f.clientHeight:0),E=-c.scrollLeft+Hd(r),k=-c.scrollTop;return $i(f||o).direction==="rtl"&&(E+=Ua(o.clientWidth,f?f.clientWidth:0)-v),{width:v,height:y,x:E,y:k}}function Fd(r){var n=$i(r),o=n.overflow,c=n.overflowX,f=n.overflowY;return/auto|scroll|overlay|hidden/.test(o+f+c)}function o2(r){return["html","body","#document"].indexOf(mo(r))>=0?r.ownerDocument.body:Qn(r)&&Fd(r)?r:o2(Dc(r))}function m0(r,n){var o;n===void 0&&(n=[]);var c=o2(r),f=c===((o=r.ownerDocument)==null?void 0:o.body),v=yi(c),y=f?[v].concat(v.visualViewport||[],Fd(c)?c:[]):c,E=n.concat(y);return f?E:E.concat(m0(Dc(y)))}function yd(r){return Object.assign({},r,{left:r.x,top:r.y,right:r.x+r.width,bottom:r.y+r.height})}function v9(r,n){var o=lu(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 bp(r,n,o){return n===Qp?yd(h9(r,o)):Va(n)?v9(n,o):yd(p9(js(r)))}function g9(r){var n=m0(Dc(r)),o=["absolute","fixed"].indexOf($i(r).position)>=0,c=o&&Qn(r)?E0(r):r;return Va(c)?n.filter(function(f){return Va(f)&&t2(f,c)&&mo(f)!=="body"}):[]}function m9(r,n,o,c){var f=n==="clippingParents"?g9(r):[].concat(n),v=[].concat(f,[o]),y=v[0],E=v.reduce(function(k,O){var I=bp(r,O,c);return k.top=Ua(I.top,k.top),k.right=bc(I.right,k.right),k.bottom=bc(I.bottom,k.bottom),k.left=Ua(I.left,k.left),k},bp(r,y,c));return E.width=E.right-E.left,E.height=E.bottom-E.top,E.x=E.left,E.y=E.top,E}function s2(r){var n=r.reference,o=r.element,c=r.placement,f=c?Ni(c):null,v=c?uu(c):null,y=n.x+n.width/2-o.width/2,E=n.y+n.height/2-o.height/2,k;switch(f){case Dn:k={x:y,y:n.y-o.height};break;case gi:k={x:y,y:n.y+n.height};break;case mi:k={x:n.x+n.width,y:E};break;case In:k={x:n.x-o.width,y:E};break;default:k={x:n.x,y:n.y}}var O=f?$d(f):null;if(O!=null){var I=O==="y"?"height":"width";switch(v){case su:k[O]=k[O]-(n[I]/2-o[I]/2);break;case _0:k[O]=k[O]+(n[I]/2-o[I]/2);break}}return k}function L0(r,n){n===void 0&&(n={});var o=n,c=o.placement,f=c===void 0?r.placement:c,v=o.strategy,y=v===void 0?r.strategy:v,E=o.boundary,k=E===void 0?R7:E,O=o.rootBoundary,I=O===void 0?Qp:O,U=o.elementContext,q=U===void 0?f0:U,X=o.altBoundary,ue=X===void 0?!1:X,Ce=o.padding,me=Ce===void 0?0:Ce,Ee=n2(typeof me!="number"?me:i2(me,P0)),Ae=q===f0?H7:f0,he=r.rects.popper,de=r.elements[ue?Ae:q],Te=m9(Va(de)?de:de.contextElement||js(r.elements.popper),k,I,y),$e=lu(r.elements.reference),We=s2({reference:$e,element:he,strategy:"absolute",placement:f}),Qe=yd(Object.assign({},he,We)),tt=q===f0?Qe:$e,pe={top:Te.top-tt.top+Ee.top,bottom:tt.bottom-Te.bottom+Ee.bottom,left:Te.left-tt.left+Ee.left,right:tt.right-Te.right+Ee.right},ye=r.modifiersData.offset;if(q===f0&&ye){var rt=ye[f];Object.keys(pe).forEach(function(B){var D=[mi,gi].indexOf(B)>=0?1:-1,T=[Dn,gi].indexOf(B)>=0?"y":"x";pe[B]+=rt[T]*D})}return pe}function y9(r,n){n===void 0&&(n={});var o=n,c=o.placement,f=o.boundary,v=o.rootBoundary,y=o.padding,E=o.flipVariations,k=o.allowedAutoPlacements,O=k===void 0?Jp:k,I=uu(c),U=I?E?vp:vp.filter(function(ue){return uu(ue)===I}):P0,q=U.filter(function(ue){return O.indexOf(ue)>=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(ue,Ce){return ue[Ce]=L0(r,{placement:Ce,boundary:f,rootBoundary:v,padding:y})[Ni(Ce)],ue},{});return Object.keys(X).sort(function(ue,Ce){return X[ue]-X[Ce]})}function b9(r){if(Ni(r)===Ac)return[];var n=hc(r);return[yp(r),n,yp(n)]}function C9(r){var n=r.state,o=r.options,c=r.name;if(!n.modifiersData[c]._skip){for(var f=o.mainAxis,v=f===void 0?!0:f,y=o.altAxis,E=y===void 0?!0:y,k=o.fallbackPlacements,O=o.padding,I=o.boundary,U=o.rootBoundary,q=o.altBoundary,X=o.flipVariations,ue=X===void 0?!0:X,Ce=o.allowedAutoPlacements,me=n.options.placement,Ee=Ni(me),Ae=Ee===me,he=k||(Ae||!ue?[hc(me)]:b9(me)),de=[me].concat(he).reduce(function(Ht,at){return Ht.concat(Ni(at)===Ac?y9(n,{placement:at,boundary:I,rootBoundary:U,padding:O,flipVariations:ue,allowedAutoPlacements:Ce}):at)},[]),Te=n.rects.reference,$e=n.rects.popper,We=new Map,Qe=!0,tt=de[0],pe=0;pe<de.length;pe++){var ye=de[pe],rt=Ni(ye),B=uu(ye)===su,D=[Dn,gi].indexOf(rt)>=0,T=D?"width":"height",re=L0(n,{placement:ye,boundary:I,rootBoundary:U,altBoundary:q,padding:O}),ve=D?B?mi:In:B?gi:Dn;Te[T]>$e[T]&&(ve=hc(ve));var nt=hc(ve),Pt=[];if(v&&Pt.push(re[rt]<=0),E&&Pt.push(re[ve]<=0,re[nt]<=0),Pt.every(function(Ht){return Ht})){tt=ye,Qe=!1;break}We.set(ye,Pt)}if(Qe)for(var or=ue?3:1,Rt=function(at){var _e=de.find(function(He){var Be=We.get(He);if(Be)return Be.slice(0,at).every(function(it){return it})});if(_e)return tt=_e,"break"},fn=or;fn>0;fn--){var Qt=Rt(fn);if(Qt==="break")break}n.placement!==tt&&(n.modifiersData[c]._skip=!0,n.placement=tt,n.reset=!0)}}const w9={name:"flip",enabled:!0,phase:"main",fn:C9,requiresIfExists:["offset"],data:{_skip:!1}};function Cp(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 wp(r){return[Dn,mi,gi,In].some(function(n){return r[n]>=0})}function x9(r){var n=r.state,o=r.name,c=n.rects.reference,f=n.rects.popper,v=n.modifiersData.preventOverflow,y=L0(n,{elementContext:"reference"}),E=L0(n,{altBoundary:!0}),k=Cp(y,c),O=Cp(E,f,v),I=wp(k),U=wp(O);n.modifiersData[o]={referenceClippingOffsets:k,popperEscapeOffsets:O,isReferenceHidden:I,hasPopperEscaped:U},n.attributes.popper=Object.assign({},n.attributes.popper,{"data-popper-reference-hidden":I,"data-popper-escaped":U})}const _9={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:x9};function L9(r,n,o){var c=Ni(r),f=[In,Dn].indexOf(c)>=0?-1:1,v=typeof o=="function"?o(Object.assign({},n,{placement:r})):o,y=v[0],E=v[1];return y=y||0,E=(E||0)*f,[In,mi].indexOf(c)>=0?{x:E,y}:{x:y,y:E}}function S9(r){var n=r.state,o=r.options,c=r.name,f=o.offset,v=f===void 0?[0,0]:f,y=Jp.reduce(function(I,U){return I[U]=L9(U,n.rects,v),I},{}),E=y[n.placement],k=E.x,O=E.y;n.modifiersData.popperOffsets!=null&&(n.modifiersData.popperOffsets.x+=k,n.modifiersData.popperOffsets.y+=O),n.modifiersData[c]=y}const k9={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:S9};function M9(r){var n=r.state,o=r.name;n.modifiersData[o]=s2({reference:n.rects.reference,element:n.rects.popper,strategy:"absolute",placement:n.placement})}const O9={name:"popperOffsets",enabled:!0,phase:"read",fn:M9,data:{}};function T9(r){return r==="x"?"y":"x"}function P9(r){var n=r.state,o=r.options,c=r.name,f=o.mainAxis,v=f===void 0?!0:f,y=o.altAxis,E=y===void 0?!1:y,k=o.boundary,O=o.rootBoundary,I=o.altBoundary,U=o.padding,q=o.tether,X=q===void 0?!0:q,ue=o.tetherOffset,Ce=ue===void 0?0:ue,me=L0(n,{boundary:k,rootBoundary:O,padding:U,altBoundary:I}),Ee=Ni(n.placement),Ae=uu(n.placement),he=!Ae,de=$d(Ee),Te=T9(de),$e=n.modifiersData.popperOffsets,We=n.rects.reference,Qe=n.rects.popper,tt=typeof Ce=="function"?Ce(Object.assign({},n.rects,{placement:n.placement})):Ce,pe=typeof tt=="number"?{mainAxis:tt,altAxis:tt}:Object.assign({mainAxis:0,altAxis:0},tt),ye=n.modifiersData.offset?n.modifiersData.offset[n.placement]:null,rt={x:0,y:0};if(!!$e){if(v){var B,D=de==="y"?Dn:In,T=de==="y"?gi:mi,re=de==="y"?"height":"width",ve=$e[de],nt=ve+me[D],Pt=ve-me[T],or=X?-Qe[re]/2:0,Rt=Ae===su?We[re]:Qe[re],fn=Ae===su?-Qe[re]:-We[re],Qt=n.elements.arrow,Ht=X&&Qt?Nd(Qt):{width:0,height:0},at=n.modifiersData["arrow#persistent"]?n.modifiersData["arrow#persistent"].padding:r2(),_e=at[D],He=at[T],Be=g0(0,We[re],Ht[re]),it=he?We[re]/2-or-Be-_e-pe.mainAxis:Rt-Be-_e-pe.mainAxis,ot=he?-We[re]/2+or+Be+He+pe.mainAxis:fn+Be+He+pe.mainAxis,Fe=n.elements.arrow&&E0(n.elements.arrow),Zt=Fe?de==="y"?Fe.clientTop||0:Fe.clientLeft||0:0,Gr=(B=ye==null?void 0:ye[de])!=null?B:0,sr=ve+it-Gr-Zt,je=ve+ot-Gr,mt=g0(X?bc(nt,sr):nt,ve,X?Ua(Pt,je):Pt);$e[de]=mt,rt[de]=mt-ve}if(E){var kt,$r=de==="x"?Dn:In,en=de==="x"?gi:mi,ur=$e[Te],Je=Te==="y"?"height":"width",F=ur+me[$r],ie=ur-me[en],V=[Dn,In].indexOf(Ee)!==-1,Ke=(kt=ye==null?void 0:ye[Te])!=null?kt:0,cr=V?F:ur-We[Je]-Qe[Je]-Ke+pe.altAxis,kr=V?ur+We[Je]+Qe[Je]-Ke-pe.altAxis:ie,$n=X&&V?e9(cr,ur,kr):g0(X?cr:F,ur,X?kr:ie);$e[Te]=$n,rt[Te]=$n-ur}n.modifiersData[c]=rt}}const E9={name:"preventOverflow",enabled:!0,phase:"main",fn:P9,requiresIfExists:["offset"]};function A9(r){return{scrollLeft:r.scrollLeft,scrollTop:r.scrollTop}}function D9(r){return r===yi(r)||!Qn(r)?Rd(r):A9(r)}function I9(r){var n=r.getBoundingClientRect(),o=au(n.width)/r.offsetWidth||1,c=au(n.height)/r.offsetHeight||1;return o!==1||c!==1}function z9(r,n,o){o===void 0&&(o=!1);var c=Qn(n),f=Qn(n)&&I9(n),v=js(n),y=lu(r,f,o),E={scrollLeft:0,scrollTop:0},k={x:0,y:0};return(c||!c&&!o)&&((mo(n)!=="body"||Fd(v))&&(E=D9(n)),Qn(n)?(k=lu(n,!0),k.x+=n.clientLeft,k.y+=n.clientTop):v&&(k.x=Hd(v))),{x:y.left+E.scrollLeft-k.x,y:y.top+E.scrollTop-k.y,width:y.width,height:y.height}}function N9(r){var n=new Map,o=new Set,c=[];r.forEach(function(v){n.set(v.name,v)});function f(v){o.add(v.name);var y=[].concat(v.requires||[],v.requiresIfExists||[]);y.forEach(function(E){if(!o.has(E)){var k=n.get(E);k&&f(k)}}),c.push(v)}return r.forEach(function(v){o.has(v.name)||f(v)}),c}function $9(r){var n=N9(r);return gd.reduce(function(o,c){return o.concat(n.filter(function(f){return f.phase===c}))},[])}function R9(r){var n;return function(){return n||(n=new Promise(function(o){Promise.resolve().then(function(){n=void 0,o(r())})})),n}}function Us(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,v){return f.replace(/%s/,v)},r)}var Ra='Popper: modifier "%s" provided an invalid %s property, expected %s but got %s',H9='Popper: modifier "%s" requires "%s", but "%s" modifier is not available',xp=["name","enabled","phase","fn","effect","requires","options"];function F9(r){r.forEach(function(n){[].concat(Object.keys(n),xp).filter(function(o,c,f){return f.indexOf(o)===c}).forEach(function(o){switch(o){case"name":typeof n.name!="string"&&console.error(Us(Ra,String(n.name),'"name"','"string"','"'+String(n.name)+'"'));break;case"enabled":typeof n.enabled!="boolean"&&console.error(Us(Ra,n.name,'"enabled"','"boolean"','"'+String(n.enabled)+'"'));break;case"phase":gd.indexOf(n.phase)<0&&console.error(Us(Ra,n.name,'"phase"',"either "+gd.join(", "),'"'+String(n.phase)+'"'));break;case"fn":typeof n.fn!="function"&&console.error(Us(Ra,n.name,'"fn"','"function"','"'+String(n.fn)+'"'));break;case"effect":n.effect!=null&&typeof n.effect!="function"&&console.error(Us(Ra,n.name,'"effect"','"function"','"'+String(n.fn)+'"'));break;case"requires":n.requires!=null&&!Array.isArray(n.requires)&&console.error(Us(Ra,n.name,'"requires"','"array"','"'+String(n.requires)+'"'));break;case"requiresIfExists":Array.isArray(n.requiresIfExists)||console.error(Us(Ra,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 '+xp.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(Us(H9,String(n.name),c,c))})})})}function W9(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 B9(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 _p="Popper: Invalid reference or popper argument provided. They must be either a DOM element or virtual element.",U9="Popper: An infinite loop in the modifiers cycle has been detected! The cycle has been interrupted to prevent a browser crash.",Lp={placement:"bottom",modifiers:[],strategy:"absolute"};function Sp(){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 Y9(r){r===void 0&&(r={});var n=r,o=n.defaultModifiers,c=o===void 0?[]:o,f=n.defaultOptions,v=f===void 0?Lp:f;return function(E,k,O){O===void 0&&(O=v);var I={placement:"bottom",orderedModifiers:[],options:Object.assign({},Lp,v),modifiersData:{},elements:{reference:E,popper:k},attributes:{},styles:{}},U=[],q=!1,X={state:I,setOptions:function(Ee){var Ae=typeof Ee=="function"?Ee(I.options):Ee;Ce(),I.options=Object.assign({},v,I.options,Ae),I.scrollParents={reference:Va(E)?m0(E):E.contextElement?m0(E.contextElement):[],popper:m0(k)};var he=$9(B9([].concat(c,I.options.modifiers)));if(I.orderedModifiers=he.filter(function(ye){return ye.enabled}),{}.NODE_ENV!=="production"){var de=W9([].concat(he,I.options.modifiers),function(ye){var rt=ye.name;return rt});if(F9(de),Ni(I.options.placement)===Ac){var Te=I.orderedModifiers.find(function(ye){var rt=ye.name;return rt==="flip"});Te||console.error(['Popper: "auto" placements require the "flip" modifier be',"present and enabled to work."].join(" "))}var $e=$i(k),We=$e.marginTop,Qe=$e.marginRight,tt=$e.marginBottom,pe=$e.marginLeft;[We,Qe,tt,pe].some(function(ye){return parseFloat(ye)})&&console.warn(['Popper: CSS "margin" styles cannot be used to apply padding',"between the popper and its reference element or boundary.","To replicate margin, use the `offset` modifier, as well as","the `padding` option in the `preventOverflow` and `flip`","modifiers."].join(" "))}return ue(),X.update()},forceUpdate:function(){if(!q){var Ee=I.elements,Ae=Ee.reference,he=Ee.popper;if(!Sp(Ae,he)){({}).NODE_ENV!=="production"&&console.error(_p);return}I.rects={reference:z9(Ae,E0(he),I.options.strategy==="fixed"),popper:Nd(he)},I.reset=!1,I.placement=I.options.placement,I.orderedModifiers.forEach(function(ye){return I.modifiersData[ye.name]=Object.assign({},ye.data)});for(var de=0,Te=0;Te<I.orderedModifiers.length;Te++){if({}.NODE_ENV!=="production"&&(de+=1,de>100)){console.error(U9);break}if(I.reset===!0){I.reset=!1,Te=-1;continue}var $e=I.orderedModifiers[Te],We=$e.fn,Qe=$e.options,tt=Qe===void 0?{}:Qe,pe=$e.name;typeof We=="function"&&(I=We({state:I,options:tt,name:pe,instance:X})||I)}}},update:R9(function(){return new Promise(function(me){X.forceUpdate(),me(I)})}),destroy:function(){Ce(),q=!0}};if(!Sp(E,k))return{}.NODE_ENV!=="production"&&console.error(_p),X;X.setOptions(O).then(function(me){!q&&O.onFirstUpdate&&O.onFirstUpdate(me)});function ue(){I.orderedModifiers.forEach(function(me){var Ee=me.name,Ae=me.options,he=Ae===void 0?{}:Ae,de=me.effect;if(typeof de=="function"){var Te=de({state:I,name:Ee,instance:X,options:he}),$e=function(){};U.push(Te||$e)}})}function Ce(){U.forEach(function(me){return me()}),U=[]}return X}}var Z9=[c9,O9,l9,X7,k9,w9,E9,i9,_9],V9=Y9({defaultModifiers:Z9}),G9=Object.defineProperty,q9=Object.getOwnPropertyDescriptor,ln=(r,n,o,c)=>{for(var f=c>1?void 0:c?q9(n,o):n,v=r.length-1,y;v>=0;v--)(y=r[v])&&(f=(c?y(n,o,f):y(f))||f);return c&&f&&G9(n,o,f),f};let j9=0;const Wd=Sr("popover"),a2=Sr("pure-popover"),l2=["click","hover","focus"],[Cc,bd,Wa]=l2,Bd=["dialog","tooltip","menu"],[K9]=Bd;class X9 extends CustomEvent{constructor(n){super(`${Wd}-${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=K9,this.popoverId=`popover-${++j9}`,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||V9(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 X9(r))}async open(){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.emit("close"),clearTimeout(this.delayTimeout),this.delayTimeout=window.setTimeout(async()=>{this.isOpen=!1,await this.updateComplete,this.emit("after-close")},this.delayOnClose)}async toggleIsOpen(){this.isOpen?await this.close():await this.open()}render(){return J`
71
71
  <slot></slot>
72
72
 
73
73
  <sp-fade-in-out ?shown=${this.isOpen} class="popover-container">
@@ -86,9 +86,9 @@
86
86
  .popover-container {
87
87
  z-index: var(--sp-z-index-dialog);
88
88
  }
89
- `;ln([W({type:Number})],exports.PurePopover.prototype,"distance",2);ln([W({type:Number})],exports.PurePopover.prototype,"skidding",2);ln([W({type:Number,attribute:"delay-on-close"})],exports.PurePopover.prototype,"delayOnClose",2);ln([W({type:Number,attribute:"delay-on-open"})],exports.PurePopover.prototype,"delayOnOpen",2);ln([W({type:Boolean,attribute:"is-fixed"})],exports.PurePopover.prototype,"isFixed",2);ln([W({type:Boolean,attribute:"is-open",reflect:!0})],exports.PurePopover.prototype,"isOpen",2);ln([W({type:String})],exports.PurePopover.prototype,"placement",2);ln([W({type:String,attribute:"popover-role"})],exports.PurePopover.prototype,"popoverRole",2);ln([ht()],exports.PurePopover.prototype,"popoverId",2);ln([ht()],exports.PurePopover.prototype,"popperInstance",2);ln([ht()],exports.PurePopover.prototype,"delayTimeout",2);exports.PurePopover=ln([De(o2)],exports.PurePopover);const wc=["blur","mouseenter","mouseleave","keydown",Cc,Wa],[ld,K9,X9,Q9]=wc;exports.Popover=class extends exports.PurePopover{constructor(){super(),this.trigger="hover focus",this.hasFocus=!1,this.hasPointer=!1,this.listenableEventHandlers={[Cc]:this.handleClick,[Wa]:this.handleFocus,[ld]:this.handleBlur,[K9]:this.handleMouseEnter,[X9]:this.handleMouseLeave,[Q9]: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(){wc.forEach(r=>this.addEventListener(r,this.listenableEventHandlers[r],{capture:[Wa,ld].includes(r)})),document.addEventListener("click",this.handleOutsideClick)}teardownListeners(){wc.forEach(r=>this.removeEventListener(r,this.listenableEventHandlers[r],{capture:[Wa,ld].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(Cc))return this.removeFocus();await this.toggleIsOpen()}}async handleFocus(){!this.hasTrigger(Wa)||(this.setFocus(),await this.open())}async handleBlur(){!this.hasTrigger(Wa)||this.hasPointer||(this.removeFocus(),await this.close())}async handleMouseEnter(){this.setPointer(),!(!this.hasTrigger(yd)||this.hasFocus)&&await this.open()}async handleMouseLeave(){this.removePointer(),!(!this.hasTrigger(yd)||this.hasFocus)&&await this.close()}async handleKeyDown(r){r.stopPropagation(),["Escape","Esc"].includes(r.key)&&await this.close()}};ln([W({type:String})],exports.Popover.prototype,"trigger",2);ln([ht()],exports.Popover.prototype,"hasFocus",2);ln([ht()],exports.Popover.prototype,"hasPointer",2);exports.Popover=ln([De(Fd)],exports.Popover);var J9=Object.defineProperty,ev=Object.getOwnPropertyDescriptor,Xs=(r,n,o,c)=>{for(var f=c>1?void 0:c?ev(n,o):n,v=r.length-1,y;v>=0;v--)(y=r[v])&&(f=(c?y(n,o,f):y(f))||f);return c&&f&&J9(n,o,f),f};const a2=Sr("tooltip"),[,tv]=Wd;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.content="",this.theme="dark"}render(){return J`
89
+ `;ln([W({type:Number})],exports.PurePopover.prototype,"distance",2);ln([W({type:Number})],exports.PurePopover.prototype,"skidding",2);ln([W({type:Number,attribute:"delay-on-close"})],exports.PurePopover.prototype,"delayOnClose",2);ln([W({type:Number,attribute:"delay-on-open"})],exports.PurePopover.prototype,"delayOnOpen",2);ln([W({type:Boolean,attribute:"is-fixed"})],exports.PurePopover.prototype,"isFixed",2);ln([W({type:Boolean,attribute:"is-open",reflect:!0})],exports.PurePopover.prototype,"isOpen",2);ln([W({type:String})],exports.PurePopover.prototype,"placement",2);ln([W({type:String,attribute:"popover-role"})],exports.PurePopover.prototype,"popoverRole",2);ln([ht()],exports.PurePopover.prototype,"popoverId",2);ln([ht()],exports.PurePopover.prototype,"popperInstance",2);ln([ht()],exports.PurePopover.prototype,"delayTimeout",2);exports.PurePopover=ln([De(a2)],exports.PurePopover);const wc=["blur","mouseenter","mouseleave","keydown",Cc,Wa],[ld,Q9,J9,ev]=wc;exports.Popover=class extends exports.PurePopover{constructor(){super(),this.trigger="hover focus",this.hasFocus=!1,this.hasPointer=!1,this.listenableEventHandlers={[Cc]:this.handleClick,[Wa]:this.handleFocus,[ld]:this.handleBlur,[Q9]:this.handleMouseEnter,[J9]:this.handleMouseLeave,[ev]: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(){wc.forEach(r=>this.addEventListener(r,this.listenableEventHandlers[r],{capture:[Wa,ld].includes(r)})),document.addEventListener("click",this.handleOutsideClick)}teardownListeners(){wc.forEach(r=>this.removeEventListener(r,this.listenableEventHandlers[r],{capture:[Wa,ld].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(Cc))return this.removeFocus();await this.toggleIsOpen()}}async handleFocus(){!this.hasTrigger(Wa)||(this.setFocus(),await this.open())}async handleBlur(){!this.hasTrigger(Wa)||this.hasPointer||(this.removeFocus(),await this.close())}async handleMouseEnter(){this.setPointer(),!(!this.hasTrigger(bd)||this.hasFocus)&&await this.open()}async handleMouseLeave(){this.removePointer(),!(!this.hasTrigger(bd)||this.hasFocus)&&await this.close()}async handleKeyDown(r){r.stopPropagation(),["Escape","Esc"].includes(r.key)&&await this.close()}};ln([W({type:String})],exports.Popover.prototype,"trigger",2);ln([ht()],exports.Popover.prototype,"hasFocus",2);ln([ht()],exports.Popover.prototype,"hasPointer",2);exports.Popover=ln([De(Wd)],exports.Popover);var tv=Object.defineProperty,rv=Object.getOwnPropertyDescriptor,Ks=(r,n,o,c)=>{for(var f=c>1?void 0:c?rv(n,o):n,v=r.length-1,y;v>=0;v--)(y=r[v])&&(f=(c?y(n,o,f):y(f))||f);return c&&f&&tv(n,o,f),f};const u2=Sr("tooltip"),[,nv]=Bd;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.content="",this.theme="dark"}render(){return J`
90
90
  <sp-popover
91
- .popoverRole=${tv}
91
+ .popoverRole=${nv}
92
92
  .distance=${8}
93
93
  .delayOnClose=${this.delayOnClose}
94
94
  .delayOnOpen=${this.delayOnOpen}
@@ -119,7 +119,7 @@
119
119
  background-color: var(--sp-color-white);
120
120
  color: var(--sp-color-text);
121
121
  }
122
- `;Xs([W({type:Number,attribute:"delay-on-close"})],exports.Tooltip.prototype,"delayOnClose",2);Xs([W({type:Number,attribute:"delay-on-open"})],exports.Tooltip.prototype,"delayOnOpen",2);Xs([W({type:Boolean,attribute:"is-fixed"})],exports.Tooltip.prototype,"isFixed",2);Xs([W({type:String})],exports.Tooltip.prototype,"placement",2);Xs([W({type:String})],exports.Tooltip.prototype,"trigger",2);Xs([W({type:String})],exports.Tooltip.prototype,"content",2);Xs([W({type:String,reflect:!0})],exports.Tooltip.prototype,"theme",2);exports.Tooltip=Xs([De(a2)],exports.Tooltip);var rv=Object.defineProperty,nv=Object.getOwnPropertyDescriptor,bo=(r,n,o,c)=>{for(var f=c>1?void 0:c?nv(n,o):n,v=r.length-1,y;v>=0;v--)(y=r[v])&&(f=(c?y(n,o,f):y(f))||f);return c&&f&&rv(n,o,f),f};const l2=Sr("avatar"),u2=Sr("avatar-group");var bd=(r=>(r[r.tiny=0]="tiny",r[r.small=1]="small",r[r.medium=2]="medium",r[r.large=3]="large",r))(bd||{});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=bd[this.size]<2?1:2;return this.label.split(" ").slice(0,n).map(o=>o.charAt(0)).join("").toUpperCase()}get iconTemplate(){const r=bd[this.size],n=()=>{switch(r){case 3:return 20;case 2:case 1:return 10;case 0:return 6.5}};return J`
122
+ `;Ks([W({type:Number,attribute:"delay-on-close"})],exports.Tooltip.prototype,"delayOnClose",2);Ks([W({type:Number,attribute:"delay-on-open"})],exports.Tooltip.prototype,"delayOnOpen",2);Ks([W({type:Boolean,attribute:"is-fixed"})],exports.Tooltip.prototype,"isFixed",2);Ks([W({type:String})],exports.Tooltip.prototype,"placement",2);Ks([W({type:String})],exports.Tooltip.prototype,"trigger",2);Ks([W({type:String})],exports.Tooltip.prototype,"content",2);Ks([W({type:String,reflect:!0})],exports.Tooltip.prototype,"theme",2);exports.Tooltip=Ks([De(u2)],exports.Tooltip);var iv=Object.defineProperty,ov=Object.getOwnPropertyDescriptor,bo=(r,n,o,c)=>{for(var f=c>1?void 0:c?ov(n,o):n,v=r.length-1,y;v>=0;v--)(y=r[v])&&(f=(c?y(n,o,f):y(f))||f);return c&&f&&iv(n,o,f),f};const c2=Sr("avatar"),f2=Sr("avatar-group");var Cd=(r=>(r[r.tiny=0]="tiny",r[r.small=1]="small",r[r.medium=2]="medium",r[r.large=3]="large",r))(Cd||{});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=Cd[this.size]<2?1:2;return this.label.split(" ").slice(0,n).map(o=>o.charAt(0)).join("").toUpperCase()}get iconTemplate(){const r=Cd[this.size],n=()=>{switch(r){case 3:return 20;case 2:case 1:return 10;case 0:return 6.5}};return J`
123
123
  <span class="icon" aria-label=${this.label}>
124
124
  <sp-icon size=${n()} icon=${Yt(this.icon)}></sp-icon>
125
125
  </span>
@@ -129,7 +129,7 @@
129
129
  </span>
130
130
  `}get imageTemplate(){return J`<img src=${Yt(this.imageSrc)} alt=${this.label} />`}get slotTemplate(){return J`
131
131
  <div
132
- class=${js({overflow:!0,hidden:!0})}
132
+ class=${qs({overflow:!0,hidden:!0})}
133
133
  >
134
134
  <slot @slotchange=${this.handleSlotChange} />
135
135
  </div>
@@ -266,7 +266,7 @@
266
266
  :host .hidden {
267
267
  display: none;
268
268
  }
269
- `;bo([W({type:Boolean,attribute:"has-outer-border",reflect:!0})],exports.Avatar.prototype,"hasOuterBorder",2);bo([W({type:String,attribute:"icon",reflect:!0})],exports.Avatar.prototype,"icon",2);bo([W({type:String,attribute:"image-src",reflect:!0})],exports.Avatar.prototype,"imageSrc",2);bo([W({type:Boolean,attribute:"is-placeholder-hidden",reflect:!0})],exports.Avatar.prototype,"isPlaceholderHidden",2);bo([W({type:String,attribute:"label",reflect:!0})],exports.Avatar.prototype,"label",2);bo([W({type:String,attribute:"size",reflect:!0})],exports.Avatar.prototype,"size",2);bo([W({type:String,attribute:"theme",reflect:!0})],exports.Avatar.prototype,"theme",2);bo([ht()],exports.Avatar.prototype,"slottedElementsCount",2);exports.Avatar=bo([De(l2)],exports.Avatar);exports.AvatarGroup=class extends Ue{render(){return J` <div class="container"><slot></slot></div> `}};exports.AvatarGroup.styles=ke`
269
+ `;bo([W({type:Boolean,attribute:"has-outer-border",reflect:!0})],exports.Avatar.prototype,"hasOuterBorder",2);bo([W({type:String,attribute:"icon",reflect:!0})],exports.Avatar.prototype,"icon",2);bo([W({type:String,attribute:"image-src",reflect:!0})],exports.Avatar.prototype,"imageSrc",2);bo([W({type:Boolean,attribute:"is-placeholder-hidden",reflect:!0})],exports.Avatar.prototype,"isPlaceholderHidden",2);bo([W({type:String,attribute:"label",reflect:!0})],exports.Avatar.prototype,"label",2);bo([W({type:String,attribute:"size",reflect:!0})],exports.Avatar.prototype,"size",2);bo([W({type:String,attribute:"theme",reflect:!0})],exports.Avatar.prototype,"theme",2);bo([ht()],exports.Avatar.prototype,"slottedElementsCount",2);exports.Avatar=bo([De(c2)],exports.Avatar);exports.AvatarGroup=class extends Ue{render(){return J` <div class="container"><slot></slot></div> `}};exports.AvatarGroup.styles=ke`
270
270
  :host .container {
271
271
  align-items: center;
272
272
  display: inline-flex;
@@ -276,7 +276,7 @@
276
276
  ::slotted(sp-avatar:not(:first-child)) {
277
277
  margin-left: -0.6em;
278
278
  }
279
- `;exports.AvatarGroup=bo([De(u2)],exports.AvatarGroup);var iv=Object.defineProperty,ov=Object.getOwnPropertyDescriptor,Ic=(r,n,o,c)=>{for(var f=c>1?void 0:c?ov(n,o):n,v=r.length-1,y;v>=0;v--)(y=r[v])&&(f=(c?y(n,o,f):y(f))||f);return c&&f&&iv(n,o,f),f};exports.Row=class extends Ue{constructor(){super(...arguments),this.verticalAlign="top"}render(){return J`<slot></slot>`}};exports.Row.styles=ke`
279
+ `;exports.AvatarGroup=bo([De(f2)],exports.AvatarGroup);var sv=Object.defineProperty,av=Object.getOwnPropertyDescriptor,Ic=(r,n,o,c)=>{for(var f=c>1?void 0:c?av(n,o):n,v=r.length-1,y;v>=0;v--)(y=r[v])&&(f=(c?y(n,o,f):y(f))||f);return c&&f&&sv(n,o,f),f};exports.Row=class extends Ue{constructor(){super(...arguments),this.verticalAlign="top"}render(){return J`<slot></slot>`}};exports.Row.styles=ke`
280
280
  :host {
281
281
  display: flex;
282
282
  flex-direction: row;
@@ -314,7 +314,7 @@
314
314
  :host([align='right']) {
315
315
  align-items: flex-end;
316
316
  }
317
- `;Ic([W({type:String})],exports.Column.prototype,"align",2);exports.Column=Ic([De("sp-column")],exports.Column);var sv=Object.defineProperty,av=Object.getOwnPropertyDescriptor,c2=(r,n,o,c)=>{for(var f=c>1?void 0:c?av(n,o):n,v=r.length-1,y;v>=0;v--)(y=r[v])&&(f=(c?y(n,o,f):y(f))||f);return c&&f&&sv(n,o,f),f};exports.LoadingSpinner=class extends Ue{constructor(){super(...arguments),this.size=24}render(){return J`
317
+ `;Ic([W({type:String})],exports.Column.prototype,"align",2);exports.Column=Ic([De("sp-column")],exports.Column);var lv=Object.defineProperty,uv=Object.getOwnPropertyDescriptor,d2=(r,n,o,c)=>{for(var f=c>1?void 0:c?uv(n,o):n,v=r.length-1,y;v>=0;v--)(y=r[v])&&(f=(c?y(n,o,f):y(f))||f);return c&&f&&lv(n,o,f),f};exports.LoadingSpinner=class extends Ue{constructor(){super(...arguments),this.size=24}render(){return J`
318
318
  <div class="loading-spinner">
319
319
  <svg
320
320
  class="loading-spinner--circular"
@@ -369,12 +369,12 @@
369
369
  stroke-dashoffset: -124px;
370
370
  }
371
371
  }
372
- `;c2([W({type:Number})],exports.LoadingSpinner.prototype,"size",2);exports.LoadingSpinner=c2([De("sp-loading-spinner")],exports.LoadingSpinner);var lv=Object.defineProperty,uv=Object.getOwnPropertyDescriptor,Co=(r,n,o,c)=>{for(var f=c>1?void 0:c?uv(n,o):n,v=r.length-1,y;v>=0;v--)(y=r[v])&&(f=(c?y(n,o,f):y(f))||f);return c&&f&&lv(n,o,f),f};const Bd=Sr("button");class cv extends CustomEvent{constructor(n){super(`${Bd}-${n}`,{bubbles:!0,composed:!0})}}exports.Button=class extends Ue{constructor(){super(...arguments),this.buttonType="primary",this.iconSize=18,this.loading=!1,this.compact=!1,this.disabled=!1}emit(r){this.dispatchEvent(new cv(r))}render(){return J`
372
+ `;d2([W({type:Number})],exports.LoadingSpinner.prototype,"size",2);exports.LoadingSpinner=d2([De("sp-loading-spinner")],exports.LoadingSpinner);var cv=Object.defineProperty,fv=Object.getOwnPropertyDescriptor,Co=(r,n,o,c)=>{for(var f=c>1?void 0:c?fv(n,o):n,v=r.length-1,y;v>=0;v--)(y=r[v])&&(f=(c?y(n,o,f):y(f))||f);return c&&f&&cv(n,o,f),f};const Ud=Sr("button");class dv extends CustomEvent{constructor(n){super(`${Ud}-${n}`,{bubbles:!0,composed:!0})}}exports.Button=class extends Ue{constructor(){super(...arguments),this.buttonType="primary",this.iconSize=18,this.loading=!1,this.compact=!1,this.disabled=!1}emit(r){this.dispatchEvent(new dv(r))}render(){return J`
373
373
  <button
374
374
  @click=${()=>{this.disabled||this.emit("click")}}
375
375
  type="button"
376
376
  ?disabled=${this.disabled}
377
- class=${js({primary:this.buttonType==="primary"&&!this.disabled,secondary:this.buttonType==="secondary"&&!this.disabled,transparent:this.buttonType==="transparent"||this.buttonType==="transparent-primary",transparentPrimary:this.buttonType==="transparent-primary",compact:this.compact,loading:this.loading})}
377
+ class=${qs({primary:this.buttonType==="primary"&&!this.disabled,secondary:this.buttonType==="secondary"&&!this.disabled,transparent:this.buttonType==="transparent"||this.buttonType==="transparent-primary",transparentPrimary:this.buttonType==="transparent-primary",compact:this.compact,loading:this.loading})}
378
378
  >
379
379
  <div class="contents">
380
380
  ${this.leadingIcon?J`<sp-icon
@@ -567,7 +567,7 @@
567
567
  sp-icon {
568
568
  padding: var(--sp-spacing-px);
569
569
  }
570
- `;Co([W({type:String,reflect:!0,attribute:"button-type",noAccessor:!0})],exports.Button.prototype,"buttonType",2);Co([W({type:String,reflect:!0,attribute:"leading-icon"})],exports.Button.prototype,"leadingIcon",2);Co([W({type:String,reflect:!0,attribute:"trailing-icon"})],exports.Button.prototype,"trailingIcon",2);Co([W({type:String,attribute:"icon-size"})],exports.Button.prototype,"iconSize",2);Co([W({type:Boolean,reflect:!0})],exports.Button.prototype,"loading",2);Co([W({type:Boolean,reflect:!0})],exports.Button.prototype,"compact",2);Co([W({type:Boolean,reflect:!0})],exports.Button.prototype,"disabled",2);exports.Button=Co([De(Bd)],exports.Button);exports.ButtonGroup=class extends Ue{constructor(){super(...arguments),this.compact=!1}render(){return J`<sp-row class=${js({compact:this.compact})}
570
+ `;Co([W({type:String,reflect:!0,attribute:"button-type",noAccessor:!0})],exports.Button.prototype,"buttonType",2);Co([W({type:String,reflect:!0,attribute:"leading-icon"})],exports.Button.prototype,"leadingIcon",2);Co([W({type:String,reflect:!0,attribute:"trailing-icon"})],exports.Button.prototype,"trailingIcon",2);Co([W({type:String,attribute:"icon-size"})],exports.Button.prototype,"iconSize",2);Co([W({type:Boolean,reflect:!0})],exports.Button.prototype,"loading",2);Co([W({type:Boolean,reflect:!0})],exports.Button.prototype,"compact",2);Co([W({type:Boolean,reflect:!0})],exports.Button.prototype,"disabled",2);exports.Button=Co([De(Ud)],exports.Button);exports.ButtonGroup=class extends Ue{constructor(){super(...arguments),this.compact=!1}render(){return J`<sp-row class=${qs({compact:this.compact})}
571
571
  ><slot></slot
572
572
  ></sp-row>`}};exports.ButtonGroup.styles=ke`
573
573
  sp-row {
@@ -586,7 +586,7 @@
586
586
  --sp-button-r-radius: 0;
587
587
  --sp-border-r-width: 0;
588
588
  }
589
- `;Co([W({type:Boolean})],exports.ButtonGroup.prototype,"compact",2);exports.ButtonGroup=Co([De("sp-button-group")],exports.ButtonGroup);var fv=Object.defineProperty,dv=Object.getOwnPropertyDescriptor,Ud=(r,n,o,c)=>{for(var f=c>1?void 0:c?dv(n,o):n,v=r.length-1,y;v>=0;v--)(y=r[v])&&(f=(c?y(n,o,f):y(f))||f);return c&&f&&fv(n,o,f),f};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 J`
589
+ `;Co([W({type:Boolean})],exports.ButtonGroup.prototype,"compact",2);exports.ButtonGroup=Co([De("sp-button-group")],exports.ButtonGroup);var hv=Object.defineProperty,pv=Object.getOwnPropertyDescriptor,Yd=(r,n,o,c)=>{for(var f=c>1?void 0:c?pv(n,o):n,v=r.length-1,y;v>=0;v--)(y=r[v])&&(f=(c?y(n,o,f):y(f))||f);return c&&f&&hv(n,o,f),f};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 J`
590
590
  <div class="container ${this.isOpen?"open":""}">
591
591
  <div @click="${this.toggleMenu}"><slot></slot></div>
592
592
  <div class="dropdown"><slot name="options"></slot></div>
@@ -614,7 +614,7 @@
614
614
  .container.open .dropdown {
615
615
  display: block;
616
616
  }
617
- `;Ud([W({type:Boolean,attribute:"is-open",reflect:!0})],exports.ComboBox.prototype,"isOpen",2);exports.ComboBox=Ud([De("sp-combo-box")],exports.ComboBox);exports.ComboBoxOption=class extends Ue{render(){return J` <div class="item"><slot></slot></div> `}};exports.ComboBoxOption.styles=ke`
617
+ `;Yd([W({type:Boolean,attribute:"is-open",reflect:!0})],exports.ComboBox.prototype,"isOpen",2);exports.ComboBox=Yd([De("sp-combo-box")],exports.ComboBox);exports.ComboBoxOption=class extends Ue{render(){return J` <div class="item"><slot></slot></div> `}};exports.ComboBoxOption.styles=ke`
618
618
  .item {
619
619
  height: 20px;
620
620
  cursor: pointer;
@@ -629,11 +629,11 @@
629
629
  .item:hover {
630
630
  background-color: var(--sp-color-neutral-250);
631
631
  }
632
- `;exports.ComboBoxOption=Ud([De("sp-combo-box-option")],exports.ComboBoxOption);var hv=Object.defineProperty,pv=Object.getOwnPropertyDescriptor,A0=(r,n,o,c)=>{for(var f=c>1?void 0:c?pv(n,o):n,v=r.length-1,y;v>=0;v--)(y=r[v])&&(f=(c?y(n,o,f):y(f))||f);return c&&f&&hv(n,o,f),f};class Yd extends CustomEvent{constructor(){super("sp-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 Yd))}}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 J`
632
+ `;exports.ComboBoxOption=Yd([De("sp-combo-box-option")],exports.ComboBoxOption);var vv=Object.defineProperty,gv=Object.getOwnPropertyDescriptor,A0=(r,n,o,c)=>{for(var f=c>1?void 0:c?gv(n,o):n,v=r.length-1,y;v>=0;v--)(y=r[v])&&(f=(c?y(n,o,f):y(f))||f);return c&&f&&vv(n,o,f),f};class Zd extends CustomEvent{constructor(){super("sp-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 Zd))}}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 J`
633
633
  <sp-fade-in-out ?shown=${this.open}>
634
634
  <div
635
635
  id="overlay"
636
- class="${js({overlay:!0,medium:this.size==="medium",large:this.size==="large","x-large":this.size==="x-large"})}"
636
+ class="${qs({overlay:!0,medium:this.size==="medium",large:this.size==="large","x-large":this.size==="x-large"})}"
637
637
  @mousedown=${this.handleClose}
638
638
  @keyup=${()=>{}}
639
639
  @transitionend=${this.handleTransitionEnd}
@@ -702,7 +702,7 @@
702
702
  ::slotted(sp-modal-body:first-child) {
703
703
  padding-top: var(--sp-spacing-10);
704
704
  }
705
- `;A0([W({type:String})],exports.Modal.prototype,"size",2);A0([W({type:Boolean})],exports.Modal.prototype,"open",2);A0([W({type:Boolean,attribute:"no-close"})],exports.Modal.prototype,"noClose",2);A0([W({attribute:!1})],exports.Modal.prototype,"shown",2);exports.Modal=A0([De("sp-modal")],exports.Modal);function Cd(r,n){if(r){if(r instanceof n)return r;if(r instanceof ShadowRoot)return Cd(r.host,n);if("parentNode"in r)return Cd(r.parentElement||r.parentNode,n)}return null}var vv=Object.defineProperty,gv=Object.getOwnPropertyDescriptor,wo=(r,n,o,c)=>{for(var f=c>1?void 0:c?gv(n,o):n,v=r.length-1,y;v>=0;v--)(y=r[v])&&(f=(c?y(n,o,f):y(f))||f);return c&&f&&vv(n,o,f),f};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 J`
705
+ `;A0([W({type:String})],exports.Modal.prototype,"size",2);A0([W({type:Boolean})],exports.Modal.prototype,"open",2);A0([W({type:Boolean,attribute:"no-close"})],exports.Modal.prototype,"noClose",2);A0([W({attribute:!1})],exports.Modal.prototype,"shown",2);exports.Modal=A0([De("sp-modal")],exports.Modal);function wd(r,n){if(r){if(r instanceof n)return r;if(r instanceof ShadowRoot)return wd(r.host,n);if("parentNode"in r)return wd(r.parentElement||r.parentNode,n)}return null}var mv=Object.defineProperty,yv=Object.getOwnPropertyDescriptor,wo=(r,n,o,c)=>{for(var f=c>1?void 0:c?yv(n,o):n,v=r.length-1,y;v>=0;v--)(y=r[v])&&(f=(c?y(n,o,f):y(f))||f);return c&&f&&mv(n,o,f),f};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 J`
706
706
  <sp-row vertical-align=${this.verticalAlign}>
707
707
  <div class="left">
708
708
  <slot name="left"></slot>
@@ -758,7 +758,7 @@
758
758
  :host([no-border]) sp-split-row {
759
759
  box-shadow: none;
760
760
  }
761
- `;wo([W({type:Boolean,attribute:"no-border",reflect:!0})],exports.ActionBar.prototype,"noBorder",2);wo([W({type:Boolean,attribute:"left-expand",reflect:!0})],exports.ActionBar.prototype,"leftExpand",2);wo([W({type:Boolean,attribute:"right-expand",reflect:!0})],exports.ActionBar.prototype,"rightExpand",2);exports.ActionBar=wo([De("sp-action-bar")],exports.ActionBar);const mv=r=>r.viewBox!==void 0,yv={arrowDown:{svg:G`
761
+ `;wo([W({type:Boolean,attribute:"no-border",reflect:!0})],exports.ActionBar.prototype,"noBorder",2);wo([W({type:Boolean,attribute:"left-expand",reflect:!0})],exports.ActionBar.prototype,"leftExpand",2);wo([W({type:Boolean,attribute:"right-expand",reflect:!0})],exports.ActionBar.prototype,"rightExpand",2);exports.ActionBar=wo([De("sp-action-bar")],exports.ActionBar);const bv=r=>r.viewBox!==void 0,Cv={arrowDown:{svg:G`
762
762
  <title>Asset 36</title>
763
763
  <g data-name="Layer 2">
764
764
  <g data-name="Layer 1">
@@ -1032,7 +1032,7 @@
1032
1032
  C7,14.1,7,14.1,7,14.1z"/>
1033
1033
  <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
1034
1034
  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
1035
- 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)"/>`}},bv="0 0 18 18",f2=r=>mv(r)?r:{svg:r,viewBox:bv},Zd={actions:G`
1035
+ 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)"/>`}},wv="0 0 18 18",h2=r=>bv(r)?r:{svg:r,viewBox:wv},Vd={actions:G`
1036
1036
  <g stroke="none" stroke-width="1" fill-rule="evenodd">
1037
1037
  <g transform="translate(-0.002970, 0.000000)">
1038
1038
  <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>
@@ -1496,7 +1496,7 @@
1496
1496
  <circle class="st0" cx="9" cy="13" r="1"/>
1497
1497
  <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"/>
1498
1498
  </g>
1499
- <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"/>`,...yv},Cv=Object.keys(Zd);var wv=Object.defineProperty,xv=Object.getOwnPropertyDescriptor,Vd=(r,n,o,c)=>{for(var f=c>1?void 0:c?xv(n,o):n,v=r.length-1,y;v>=0;v--)(y=r[v])&&(f=(c?y(n,o,f):y(f))||f);return c&&f&&wv(n,o,f),f};exports.Icon=class extends Ue{constructor(){super(...arguments),this.size=18,this.icon="close"}render(){const{svg:r,viewBox:n}=f2(Zd[this.icon]);return J`<svg width=${this.size} height=${this.size} viewBox=${n}>
1499
+ <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"/>`,...Cv},xv=Object.keys(Vd);var _v=Object.defineProperty,Lv=Object.getOwnPropertyDescriptor,Gd=(r,n,o,c)=>{for(var f=c>1?void 0:c?Lv(n,o):n,v=r.length-1,y;v>=0;v--)(y=r[v])&&(f=(c?y(n,o,f):y(f))||f);return c&&f&&_v(n,o,f),f};exports.Icon=class extends Ue{constructor(){super(...arguments),this.size=18,this.icon="close"}render(){const{svg:r,viewBox:n}=h2(Vd[this.icon]);return J`<svg width=${this.size} height=${this.size} viewBox=${n}>
1500
1500
  ${r}
1501
1501
  </svg>`}};exports.Icon.styles=ke`
1502
1502
  :host {
@@ -1507,7 +1507,7 @@
1507
1507
  svg {
1508
1508
  fill: currentColor;
1509
1509
  }
1510
- `;Vd([W({type:Number,reflect:!0})],exports.Icon.prototype,"size",2);Vd([W({type:String})],exports.Icon.prototype,"icon",2);exports.Icon=Vd([De("sp-icon")],exports.Icon);var _v=Object.defineProperty,Lv=Object.getOwnPropertyDescriptor,zc=(r,n,o,c)=>{for(var f=c>1?void 0:c?Lv(n,o):n,v=r.length-1,y;v>=0;v--)(y=r[v])&&(f=(c?y(n,o,f):y(f))||f);return c&&f&&_v(n,o,f),f};exports.ModalHeader=class extends Ue{get _noClose(){var r;return(r=Cd(this.parentElement,exports.Modal))==null?void 0:r.noClose}_handleClickClose(){this.dispatchEvent(new Yd)}render(){return J`
1510
+ `;Gd([W({type:Number,reflect:!0})],exports.Icon.prototype,"size",2);Gd([W({type:String})],exports.Icon.prototype,"icon",2);exports.Icon=Gd([De("sp-icon")],exports.Icon);var Sv=Object.defineProperty,kv=Object.getOwnPropertyDescriptor,zc=(r,n,o,c)=>{for(var f=c>1?void 0:c?kv(n,o):n,v=r.length-1,y;v>=0;v--)(y=r[v])&&(f=(c?y(n,o,f):y(f))||f);return c&&f&&Sv(n,o,f),f};exports.ModalHeader=class extends Ue{get _noClose(){var r;return(r=wd(this.parentElement,exports.Modal))==null?void 0:r.noClose}_handleClickClose(){this.dispatchEvent(new Zd)}render(){return J`
1511
1511
  <sp-heading size="xl"><slot></slot></sp-heading>
1512
1512
  ${this._noClose?void 0:J`<sp-icon
1513
1513
  id="close-button"
@@ -1547,7 +1547,7 @@
1547
1547
  :host {
1548
1548
  padding: var(--sp-spacing-5) var(--sp-spacing-6);
1549
1549
  }
1550
- `;exports.ModalFooter=zc([De("sp-modal-footer")],exports.ModalFooter);var Sv=Object.defineProperty,kv=Object.getOwnPropertyDescriptor,d2=(r,n,o,c)=>{for(var f=c>1?void 0:c?kv(n,o):n,v=r.length-1,y;v>=0;v--)(y=r[v])&&(f=(c?y(n,o,f):y(f))||f);return c&&f&&Sv(n,o,f),f};class h2 extends CustomEvent{constructor(){super("sp-dialog-cancel",{bubbles:!0})}}class p2 extends CustomEvent{constructor(){super("sp-dialog-confirm",{bubbles:!0})}}exports.ConfirmationDialog=class extends Ue{constructor(){super(...arguments),this.open=!1}handleCancel(){this.dispatchEvent(new h2)}handleConfirm(){this.dispatchEvent(new p2)}render(){return J`<sp-modal size="small" ?open=${this.open} noClose>
1550
+ `;exports.ModalFooter=zc([De("sp-modal-footer")],exports.ModalFooter);var Mv=Object.defineProperty,Ov=Object.getOwnPropertyDescriptor,p2=(r,n,o,c)=>{for(var f=c>1?void 0:c?Ov(n,o):n,v=r.length-1,y;v>=0;v--)(y=r[v])&&(f=(c?y(n,o,f):y(f))||f);return c&&f&&Mv(n,o,f),f};class v2 extends CustomEvent{constructor(){super("sp-dialog-cancel",{bubbles:!0})}}class g2 extends CustomEvent{constructor(){super("sp-dialog-confirm",{bubbles:!0})}}exports.ConfirmationDialog=class extends Ue{constructor(){super(...arguments),this.open=!1}handleCancel(){this.dispatchEvent(new v2)}handleConfirm(){this.dispatchEvent(new g2)}render(){return J`<sp-modal size="small" ?open=${this.open} noClose>
1551
1551
  <sp-modal-body>
1552
1552
  <slot name="body"></slot>
1553
1553
  </sp-modal-body>
@@ -1561,7 +1561,7 @@
1561
1561
  </sp-button>
1562
1562
  </sp-button-group>
1563
1563
  </sp-modal-footer>
1564
- </sp-modal>`}};d2([W({type:Boolean})],exports.ConfirmationDialog.prototype,"open",2);exports.ConfirmationDialog=d2([De("sp-confirmation-dialog")],exports.ConfirmationDialog);var Mv=Object.defineProperty,Ov=Object.getOwnPropertyDescriptor,Ga=(r,n,o,c)=>{for(var f=c>1?void 0:c?Ov(n,o):n,v=r.length-1,y;v>=0;v--)(y=r[v])&&(f=(c?y(n,o,f):y(f))||f);return c&&f&&Mv(n,o,f),f};class xo 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("sp-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()}}Ga([W({type:Boolean,reflect:!0})],xo.prototype,"readonly",2);Ga([W({type:Boolean,reflect:!0})],xo.prototype,"invalid",2);Ga([W({type:String})],xo.prototype,"name",2);Ga([W({type:String})],xo.prototype,"id",2);Ga([W({type:String})],xo.prototype,"value",2);Ga([ht()],xo.prototype,"proxyInput",2);Ga([ht()],xo.prototype,"useProxy",2);var Tv=Object.defineProperty,Pv=Object.getOwnPropertyDescriptor,fu=(r,n,o,c)=>{for(var f=c>1?void 0:c?Pv(n,o):n,v=r.length-1,y;v>=0;v--)(y=r[v])&&(f=(c?y(n,o,f):y(f))||f);return c&&f&&Tv(n,o,f),f};const Ii={Checked:"Checked",Indeterminate:"Indeterminate",Empty:"Empty"};exports.InputCheckbox=class extends xo{constructor(){super(...arguments),this.checked=!1,this.disabled=!1,this.indeterminate=!1,this.checkboxState=Ii.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 Ii.Checked:this.checked=!1;break;case Ii.Empty:this.checked=!0;break;case Ii.Indeterminate:this.checked=!0,this.indeterminate=!1,this.inputElement&&(this.inputElement.indeterminate=!1);break}this.dispatchEvent(new CustomEvent("sp-input-change",{detail:{checked:this.checked,indeterminate:this.indeterminate}}))}}getIcon(){switch(this.checkboxState){case Ii.Checked:return J`<sp-icon icon="checkBoxTick" size="16"></sp-icon>`;case Ii.Indeterminate:return J`<sp-icon icon="zoomOut" size="16"></sp-icon>`;case Ii.Empty:default:return}}firstUpdated(){this.inputElement=this.renderRoot.querySelector("input"),this.indeterminate&&this.inputElement&&(this.inputElement.indeterminate=!0)}render(){return this.checkboxState=this.checked?Ii.Checked:this.indeterminate?Ii.Indeterminate:Ii.Empty,J` <label>
1564
+ </sp-modal>`}};p2([W({type:Boolean})],exports.ConfirmationDialog.prototype,"open",2);exports.ConfirmationDialog=p2([De("sp-confirmation-dialog")],exports.ConfirmationDialog);var Tv=Object.defineProperty,Pv=Object.getOwnPropertyDescriptor,Ga=(r,n,o,c)=>{for(var f=c>1?void 0:c?Pv(n,o):n,v=r.length-1,y;v>=0;v--)(y=r[v])&&(f=(c?y(n,o,f):y(f))||f);return c&&f&&Tv(n,o,f),f};class xo 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("sp-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()}}Ga([W({type:Boolean,reflect:!0})],xo.prototype,"readonly",2);Ga([W({type:Boolean,reflect:!0})],xo.prototype,"invalid",2);Ga([W({type:String})],xo.prototype,"name",2);Ga([W({type:String})],xo.prototype,"id",2);Ga([W({type:String})],xo.prototype,"value",2);Ga([ht()],xo.prototype,"proxyInput",2);Ga([ht()],xo.prototype,"useProxy",2);var Ev=Object.defineProperty,Av=Object.getOwnPropertyDescriptor,fu=(r,n,o,c)=>{for(var f=c>1?void 0:c?Av(n,o):n,v=r.length-1,y;v>=0;v--)(y=r[v])&&(f=(c?y(n,o,f):y(f))||f);return c&&f&&Ev(n,o,f),f};const Ii={Checked:"Checked",Indeterminate:"Indeterminate",Empty:"Empty"};exports.InputCheckbox=class extends xo{constructor(){super(...arguments),this.checked=!1,this.disabled=!1,this.indeterminate=!1,this.checkboxState=Ii.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 Ii.Checked:this.checked=!1;break;case Ii.Empty:this.checked=!0;break;case Ii.Indeterminate:this.checked=!0,this.indeterminate=!1,this.inputElement&&(this.inputElement.indeterminate=!1);break}this.dispatchEvent(new CustomEvent("sp-input-change",{detail:{checked:this.checked,indeterminate:this.indeterminate}}))}}getIcon(){switch(this.checkboxState){case Ii.Checked:return J`<sp-icon icon="checkBoxTick" size="16"></sp-icon>`;case Ii.Indeterminate:return J`<sp-icon icon="zoomOut" size="16"></sp-icon>`;case Ii.Empty:default:return}}firstUpdated(){this.inputElement=this.renderRoot.querySelector("input"),this.indeterminate&&this.inputElement&&(this.inputElement.indeterminate=!0)}render(){return this.checkboxState=this.checked?Ii.Checked:this.indeterminate?Ii.Indeterminate:Ii.Empty,J` <label>
1565
1565
  <div
1566
1566
  class="checkbox"
1567
1567
  tabindex=${this.disabled?"-1":"0"}
@@ -1629,16 +1629,16 @@
1629
1629
  position: absolute;
1630
1630
  left: 0;
1631
1631
  }
1632
- `];fu([W({type:Boolean,reflect:!0})],exports.InputCheckbox.prototype,"checked",2);fu([W({type:Boolean,reflect:!0})],exports.InputCheckbox.prototype,"disabled",2);fu([W({type:Boolean,reflect:!0})],exports.InputCheckbox.prototype,"indeterminate",2);fu([ht()],exports.InputCheckbox.prototype,"checkboxState",2);fu([ht()],exports.InputCheckbox.prototype,"inputElement",2);exports.InputCheckbox=fu([De("sp-input-checkbox")],exports.InputCheckbox);var Ev=Object.defineProperty,Av=Object.getOwnPropertyDescriptor,Dv=(r,n,o,c)=>{for(var f=c>1?void 0:c?Av(n,o):n,v=r.length-1,y;v>=0;v--)(y=r[v])&&(f=(c?y(n,o,f):y(f))||f);return c&&f&&Ev(n,o,f),f};let wd=class extends Ue{render(){return J` <slot></slot> `}};wd.styles=ke`
1632
+ `];fu([W({type:Boolean,reflect:!0})],exports.InputCheckbox.prototype,"checked",2);fu([W({type:Boolean,reflect:!0})],exports.InputCheckbox.prototype,"disabled",2);fu([W({type:Boolean,reflect:!0})],exports.InputCheckbox.prototype,"indeterminate",2);fu([ht()],exports.InputCheckbox.prototype,"checkboxState",2);fu([ht()],exports.InputCheckbox.prototype,"inputElement",2);exports.InputCheckbox=fu([De("sp-input-checkbox")],exports.InputCheckbox);var Dv=Object.defineProperty,Iv=Object.getOwnPropertyDescriptor,zv=(r,n,o,c)=>{for(var f=c>1?void 0:c?Iv(n,o):n,v=r.length-1,y;v>=0;v--)(y=r[v])&&(f=(c?y(n,o,f):y(f))||f);return c&&f&&Dv(n,o,f),f};let xd=class extends Ue{render(){return J` <slot></slot> `}};xd.styles=ke`
1633
1633
  :host {
1634
1634
  font-size: var(--sp-font-size-xs);
1635
1635
  }
1636
- `;wd=Dv([De("sp-input-guide")],wd);var Iv=Object.defineProperty,zv=Object.getOwnPropertyDescriptor,Nv=(r,n,o,c)=>{for(var f=c>1?void 0:c?zv(n,o):n,v=r.length-1,y;v>=0;v--)(y=r[v])&&(f=(c?y(n,o,f):y(f))||f);return c&&f&&Iv(n,o,f),f};exports.InputError=class extends Ue{render(){return J` <slot></slot> `}};exports.InputError.styles=ke`
1636
+ `;xd=zv([De("sp-input-guide")],xd);var Nv=Object.defineProperty,$v=Object.getOwnPropertyDescriptor,Rv=(r,n,o,c)=>{for(var f=c>1?void 0:c?$v(n,o):n,v=r.length-1,y;v>=0;v--)(y=r[v])&&(f=(c?y(n,o,f):y(f))||f);return c&&f&&Nv(n,o,f),f};exports.InputError=class extends Ue{render(){return J` <slot></slot> `}};exports.InputError.styles=ke`
1637
1637
  :host {
1638
1638
  font-size: var(--sp-font-size-sm);
1639
1639
  color: var(--sp-color-error);
1640
1640
  }
1641
- `;exports.InputError=Nv([De("sp-input-error")],exports.InputError);var $v=Object.defineProperty,Rv=Object.getOwnPropertyDescriptor,Qs=(r,n,o,c)=>{for(var f=c>1?void 0:c?Rv(n,o):n,v=r.length-1,y;v>=0;v--)(y=r[v])&&(f=(c?y(n,o,f):y(f))||f);return c&&f&&$v(n,o,f),f};const v2=Sr("labeled-input"),g2=Sr("input-label"),Hv=ke`
1641
+ `;exports.InputError=Rv([De("sp-input-error")],exports.InputError);var Hv=Object.defineProperty,Fv=Object.getOwnPropertyDescriptor,Xs=(r,n,o,c)=>{for(var f=c>1?void 0:c?Fv(n,o):n,v=r.length-1,y;v>=0;v--)(y=r[v])&&(f=(c?y(n,o,f):y(f))||f);return c&&f&&Hv(n,o,f),f};const m2=Sr("labeled-input"),y2=Sr("input-label"),Wv=ke`
1642
1642
  .size-x-small {
1643
1643
  width: 80px;
1644
1644
  }
@@ -1662,7 +1662,7 @@
1662
1662
  .size-full {
1663
1663
  width: 100%;
1664
1664
  }
1665
- `,Fv=ke`
1665
+ `,Bv=ke`
1666
1666
  .container {
1667
1667
  display: flex;
1668
1668
  }
@@ -1692,6 +1692,7 @@
1692
1692
 
1693
1693
  .has-label label.field-label {
1694
1694
  display: inline-block;
1695
+ text-align: left;
1695
1696
  }
1696
1697
 
1697
1698
  .has-error sp-input-error {
@@ -1702,7 +1703,11 @@
1702
1703
  margin-left: auto;
1703
1704
  white-space: nowrap;
1704
1705
  }
1705
- `,Wv=ke`
1706
+
1707
+ sp-split-row {
1708
+ text-align: right;
1709
+ }
1710
+ `,Uv=ke`
1706
1711
  .guide {
1707
1712
  display: flex;
1708
1713
  }
@@ -1713,13 +1718,15 @@
1713
1718
  }
1714
1719
  `;exports.LabeledInput=class extends xo{constructor(){super(...arguments),this.required=!1,this.labelPosition="top",this.size="medium",this.hasLabel=!1,this.hasPrompt=!1,this.hasError=!1}handleLabelChange(){var n;const r=(n=this.shadowRoot)==null?void 0:n.querySelector('slot[name="label"]');this.hasLabel=r.assignedNodes().length>0}handlePromptChange(){var n;const r=(n=this.shadowRoot)==null?void 0:n.querySelector('slot[name="prompt"]');this.hasPrompt=r.assignedNodes().length>0}handleErrorChange(){var n;const r=(n=this.shadowRoot)==null?void 0:n.querySelector('slot[name="error"]');this.hasError=r.assignedNodes().length>0}renderInput(){return J`<slot></slot>`}renderInputContainer(){return this.renderInput()}renderGuide(){return null}render(){const r=`size-${this.size}`;return J`
1715
1720
  ${this.labelPosition==="side"?J`<sp-split-row
1721
+ class=${r}
1722
+ style=${r==="size-full"?"":"margin-left: 180px"}
1716
1723
  ><span slot="right"><slot name="prompt"></slot></span
1717
1724
  ></sp-split-row>`:""}
1718
1725
 
1719
- <div class="container">
1726
+ <div class=${this.labelPosition==="top"?r:"container"}>
1720
1727
  <sp-split-row
1721
1728
  no-gap
1722
- class=${js({"has-label":this.hasLabel,[r]:this.hasPrompt})}
1729
+ class=${qs({"has-label":this.hasLabel,[r]:this.hasPrompt})}
1723
1730
  >
1724
1731
  <label slot="left" for=${this.id} class="field-label">
1725
1732
  <sp-input-label>
@@ -1734,7 +1741,7 @@
1734
1741
  ${this.renderInputContainer()}
1735
1742
 
1736
1743
  <div
1737
- class=${js({guide:!0,"has-error":this.hasError})}
1744
+ class=${qs({guide:!0,"has-error":this.hasError})}
1738
1745
  >
1739
1746
  <sp-input-error>
1740
1747
  <slot @slotchange=${this.handleErrorChange} name="error"></slot>
@@ -1744,14 +1751,14 @@
1744
1751
  </div>
1745
1752
  </div>
1746
1753
  </div>
1747
- `}};exports.LabeledInput.styles=[Hv,Fv,Wv];Qs([W({type:Boolean,attribute:"required",reflect:!0})],exports.LabeledInput.prototype,"required",2);Qs([W({type:String,attribute:"label-position",reflect:!0})],exports.LabeledInput.prototype,"labelPosition",2);Qs([W({type:String,reflect:!0})],exports.LabeledInput.prototype,"size",2);Qs([ht()],exports.LabeledInput.prototype,"hasLabel",2);Qs([ht()],exports.LabeledInput.prototype,"hasPrompt",2);Qs([ht()],exports.LabeledInput.prototype,"hasError",2);exports.LabeledInput=Qs([De(v2)],exports.LabeledInput);exports.InputLabel=class extends Ue{render(){return J`<slot></slot>`}};exports.InputLabel.styles=ke`
1754
+ `}};exports.LabeledInput.styles=[Wv,Bv,Uv];Xs([W({type:Boolean,attribute:"required",reflect:!0})],exports.LabeledInput.prototype,"required",2);Xs([W({type:String,attribute:"label-position",reflect:!0})],exports.LabeledInput.prototype,"labelPosition",2);Xs([W({type:String,reflect:!0})],exports.LabeledInput.prototype,"size",2);Xs([ht()],exports.LabeledInput.prototype,"hasLabel",2);Xs([ht()],exports.LabeledInput.prototype,"hasPrompt",2);Xs([ht()],exports.LabeledInput.prototype,"hasError",2);exports.LabeledInput=Xs([De(m2)],exports.LabeledInput);exports.InputLabel=class extends Ue{render(){return J`<slot></slot>`}};exports.InputLabel.styles=ke`
1748
1755
  :host {
1749
1756
  display: inline-block;
1750
1757
  color: var(--sp-color-label-text);
1751
1758
  font-weight: var(--sp-font-weight-medium);
1752
1759
  line-height: var(-sp-line-height);
1753
1760
  }
1754
- `;exports.InputLabel=Qs([De(g2)],exports.InputLabel);var Bv=Object.defineProperty,Uv=Object.getOwnPropertyDescriptor,Gd=(r,n,o,c)=>{for(var f=c>1?void 0:c?Uv(n,o):n,v=r.length-1,y;v>=0;v--)(y=r[v])&&(f=(c?y(n,o,f):y(f))||f);return c&&f&&Bv(n,o,f),f};const Yv=ke`
1761
+ `;exports.InputLabel=Xs([De(y2)],exports.InputLabel);var Yv=Object.defineProperty,Zv=Object.getOwnPropertyDescriptor,qd=(r,n,o,c)=>{for(var f=c>1?void 0:c?Zv(n,o):n,v=r.length-1,y;v>=0;v--)(y=r[v])&&(f=(c?y(n,o,f):y(f))||f);return c&&f&&Yv(n,o,f),f};const Vv=ke`
1755
1762
  :host {
1756
1763
  --input-text-color: var(--sp-color-neutral-850);
1757
1764
  --input-font: var(--sp-font-family);
@@ -1847,7 +1854,7 @@
1847
1854
  ${this.renderInput()}
1848
1855
  ${this.trailingIcon?J`<sp-icon icon=${this.trailingIcon} class="trailing"></sp-icon>`:null}
1849
1856
  </div>
1850
- `}}zn.styles=[...exports.LabeledInput.styles,Yv];Gd([W({type:String})],zn.prototype,"placeholder",2);Gd([W({type:String,reflect:!0,attribute:"leading-icon"})],zn.prototype,"leadingIcon",2);Gd([W({type:String,reflect:!0,attribute:"trailing-icon"})],zn.prototype,"trailingIcon",2);var Zv=Object.defineProperty,Vv=Object.getOwnPropertyDescriptor,Nc=(r,n,o,c)=>{for(var f=c>1?void 0:c?Vv(n,o):n,v=r.length-1,y;v>=0;v--)(y=r[v])&&(f=(c?y(n,o,f):y(f))||f);return c&&f&&Zv(n,o,f),f};exports.InputText=class extends zn{constructor(){super(...arguments),this.size="medium"}renderInput(){return J`
1857
+ `}}zn.styles=[...exports.LabeledInput.styles,Vv];qd([W({type:String})],zn.prototype,"placeholder",2);qd([W({type:String,reflect:!0,attribute:"leading-icon"})],zn.prototype,"leadingIcon",2);qd([W({type:String,reflect:!0,attribute:"trailing-icon"})],zn.prototype,"trailingIcon",2);var Gv=Object.defineProperty,qv=Object.getOwnPropertyDescriptor,Nc=(r,n,o,c)=>{for(var f=c>1?void 0:c?qv(n,o):n,v=r.length-1,y;v>=0;v--)(y=r[v])&&(f=(c?y(n,o,f):y(f))||f);return c&&f&&Gv(n,o,f),f};exports.InputText=class extends zn{constructor(){super(...arguments),this.size="medium"}renderInput(){return J`
1851
1858
  <input
1852
1859
  @input=${this.onInput}
1853
1860
  .value=${Yt(this.value)}
@@ -1862,7 +1869,7 @@
1862
1869
  input {
1863
1870
  height: 36px;
1864
1871
  }
1865
- `];Nc([W({type:String})],exports.InputText.prototype,"value",2);Nc([W({type:String,reflect:!0})],exports.InputText.prototype,"size",2);Nc([W({type:Number,reflect:!0})],exports.InputText.prototype,"maxlength",2);exports.InputText=Nc([De("sp-input-text")],exports.InputText);var Gv=Object.defineProperty,qv=Object.getOwnPropertyDescriptor,$c=(r,n,o,c)=>{for(var f=c>1?void 0:c?qv(n,o):n,v=r.length-1,y;v>=0;v--)(y=r[v])&&(f=(c?y(n,o,f):y(f))||f);return c&&f&&Gv(n,o,f),f};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=J`${r} of ${this.maxlength}`;return r>=this.maxlength?J`<sp-input-error>${n}</sp-input-error>`:J`<sp-input-guide>${n}</sp-input-guide>`}renderInput(){var r;return J`
1872
+ `];Nc([W({type:String})],exports.InputText.prototype,"value",2);Nc([W({type:String,reflect:!0})],exports.InputText.prototype,"size",2);Nc([W({type:Number,reflect:!0})],exports.InputText.prototype,"maxlength",2);exports.InputText=Nc([De("sp-input-text")],exports.InputText);var jv=Object.defineProperty,Kv=Object.getOwnPropertyDescriptor,$c=(r,n,o,c)=>{for(var f=c>1?void 0:c?Kv(n,o):n,v=r.length-1,y;v>=0;v--)(y=r[v])&&(f=(c?y(n,o,f):y(f))||f);return c&&f&&jv(n,o,f),f};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=J`${r} of ${this.maxlength}`;return r>=this.maxlength?J`<sp-input-error>${n}</sp-input-error>`:J`<sp-input-guide>${n}</sp-input-guide>`}renderInput(){var r;return J`
1866
1873
  <textarea
1867
1874
  @input=${this.onInput}
1868
1875
  .value=${(r=this.value)!=null?r:""}
@@ -1878,7 +1885,7 @@
1878
1885
  height: 100px;
1879
1886
  resize: none;
1880
1887
  }
1881
- `];$c([W({type:String})],exports.InputTextarea.prototype,"value",2);$c([W({type:String,reflect:!0})],exports.InputTextarea.prototype,"size",2);$c([W({type:Number,reflect:!0,attribute:"maxlength"})],exports.InputTextarea.prototype,"maxlength",2);exports.InputTextarea=$c([De("sp-input-textarea")],exports.InputTextarea);var jv=Object.defineProperty,Kv=Object.getOwnPropertyDescriptor,D0=(r,n,o,c)=>{for(var f=c>1?void 0:c?Kv(n,o):n,v=r.length-1,y;v>=0;v--)(y=r[v])&&(f=(c?y(n,o,f):y(f))||f);return c&&f&&jv(n,o,f),f};const Xv=ke`
1888
+ `];$c([W({type:String})],exports.InputTextarea.prototype,"value",2);$c([W({type:String,reflect:!0})],exports.InputTextarea.prototype,"size",2);$c([W({type:Number,reflect:!0,attribute:"maxlength"})],exports.InputTextarea.prototype,"maxlength",2);exports.InputTextarea=$c([De("sp-input-textarea")],exports.InputTextarea);var Xv=Object.defineProperty,Qv=Object.getOwnPropertyDescriptor,D0=(r,n,o,c)=>{for(var f=c>1?void 0:c?Qv(n,o):n,v=r.length-1,y;v>=0;v--)(y=r[v])&&(f=(c?y(n,o,f):y(f))||f);return c&&f&&Xv(n,o,f),f};const Jv=ke`
1882
1889
  /* Chrome, Safari, Edge, Opera */
1883
1890
  input::-webkit-outer-spin-button,
1884
1891
  input::-webkit-inner-spin-button {
@@ -1890,7 +1897,7 @@
1890
1897
  input[type='number'] {
1891
1898
  -moz-appearance: textfield;
1892
1899
  }
1893
- `,m2=["e"],y2=r=>m2.includes(r.toLowerCase()),Qv=r=>!!m2.find(n=>r.toLowerCase().includes(n)),Jv=r=>{y2(r.key)&&r.preventDefault()},eg=r=>{var c;const{clipboardData:n}=r||window,o=(c=n==null?void 0:n.getData("text"))==null?void 0:c.toLowerCase();!o||(y2(o)||Qv(o))&&(r.stopPropagation(),r.preventDefault())};exports.InputNumber=class extends zn{constructor(){super(...arguments),this.hasNoStepper=!1,this.step="1"}getInput(){var r;return(r=this.shadowRoot)==null?void 0:r.querySelector("input")}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:J`
1900
+ `,b2=["e"],C2=r=>b2.includes(r.toLowerCase()),eg=r=>!!b2.find(n=>r.toLowerCase().includes(n)),tg=r=>{C2(r.key)&&r.preventDefault()},rg=r=>{var c;const{clipboardData:n}=r||window,o=(c=n==null?void 0:n.getData("text"))==null?void 0:c.toLowerCase();!o||(C2(o)||eg(o))&&(r.stopPropagation(),r.preventDefault())};exports.InputNumber=class extends zn{constructor(){super(...arguments),this.hasNoStepper=!1,this.step="1"}getInput(){var r;return(r=this.shadowRoot)==null?void 0:r.querySelector("input")}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:J`
1894
1901
  <div class="stepper-container">
1895
1902
  <button
1896
1903
  @click=${this.handleDecrease}
@@ -1913,8 +1920,8 @@
1913
1920
  </div>
1914
1921
  `}renderInput(){return J`<div class="container">
1915
1922
  <input
1916
- @keydown=${Jv}
1917
- @paste=${eg}
1923
+ @keydown=${tg}
1924
+ @paste=${rg}
1918
1925
  @input=${this.onInput}
1919
1926
  @change=${this.onInput}
1920
1927
  .value=${this.value}
@@ -1929,7 +1936,7 @@
1929
1936
  />
1930
1937
 
1931
1938
  ${this.stepperLayout}
1932
- </div>`}};exports.InputNumber.styles=[...zn.styles,Xv,ke`
1939
+ </div>`}};exports.InputNumber.styles=[...zn.styles,Jv,ke`
1933
1940
  .container {
1934
1941
  display: flex;
1935
1942
  position: relative;
@@ -1973,7 +1980,7 @@
1973
1980
  * @license
1974
1981
  * Copyright 2017 Google LLC
1975
1982
  * SPDX-License-Identifier: BSD-3-Clause
1976
- */class xd extends Ec{constructor(n){if(super(n),this.it=yr,n.type!==Tc.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(n){if(n===yr||n==null)return this._t=void 0,this.it=n;if(n===go)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:[]}}}xd.directiveName="unsafeHTML",xd.resultType=1;const tg=Pc(xd);var rg=Object.defineProperty,ng=Object.getOwnPropertyDescriptor,qa=(r,n,o,c)=>{for(var f=c>1?void 0:c?ng(n,o):n,v=r.length-1,y;v>=0;v--)(y=r[v])&&(f=(c?y(n,o,f):y(f))||f);return c&&f&&rg(n,o,f),f};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 J`
1983
+ */class _d extends Ec{constructor(n){if(super(n),this.it=yr,n.type!==Tc.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(n){if(n===yr||n==null)return this._t=void 0,this.it=n;if(n===go)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:[]}}}_d.directiveName="unsafeHTML",_d.resultType=1;const ng=Pc(_d);var ig=Object.defineProperty,og=Object.getOwnPropertyDescriptor,qa=(r,n,o,c)=>{for(var f=c>1?void 0:c?og(n,o):n,v=r.length-1,y;v>=0;v--)(y=r[v])&&(f=(c?y(n,o,f):y(f))||f);return c&&f&&ig(n,o,f),f};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 J`
1977
1984
  <slot
1978
1985
  id="options"
1979
1986
  style="display: none;"
@@ -1990,7 +1997,7 @@
1990
1997
  ?checked=${n}
1991
1998
  ?disabled=${r.disabled||this.readonly}
1992
1999
  />
1993
- <label for=${r.value}>${tg(r.innerHTML)}</label>
2000
+ <label for=${r.value}>${ng(r.innerHTML)}</label>
1994
2001
  </div>`})}
1995
2002
  </fieldset>
1996
2003
  `}};exports.InputRadio.styles=[...exports.LabeledInput.styles,ke`
@@ -2084,31 +2091,31 @@
2084
2091
  input[type='radio']:checked:disabled + label::after {
2085
2092
  background-color: var(--sp-color-neutral-450);
2086
2093
  }
2087
- `];qa([W({type:String,reflect:!0})],exports.InputRadio.prototype,"layout",2);qa([W({type:String,reflect:!0})],exports.InputRadio.prototype,"size",2);qa([ht()],exports.InputRadio.prototype,"_radioElements",2);exports.InputRadio=qa([De("sp-input-radio-group")],exports.InputRadio);exports.InputRadioOption=class extends Ue{render(){}};qa([W({type:String})],exports.InputRadioOption.prototype,"value",2);qa([W({type:Boolean})],exports.InputRadioOption.prototype,"disabled",2);exports.InputRadioOption=qa([De("sp-input-radio-option")],exports.InputRadioOption);var Xl=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},ss={exports:{}};(function(r,n){(function(o,c){r.exports=c()})(Xl,function(){var o=navigator.userAgent,c=navigator.platform,f=/gecko\/\d/i.test(o),v=/MSIE \d/.test(o),y=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(o),E=/Edge\/(\d+)/.exec(o),k=v||y||E,O=k&&(v?document.documentMode||6:+(E||y)[1]),I=!E&&/WebKit\//.test(o),U=I&&/Qt\/\d+\.\d+/.test(o),q=!E&&/Chrome\//.test(o),X=/Opera\//.test(o),ue=/Apple Computer/.test(navigator.vendor),Ce=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(o),me=/PhantomJS/.test(o),Ee=ue&&(/Mobile\/\w+/.test(o)||navigator.maxTouchPoints>2),Ae=/Android/.test(o),he=Ee||Ae||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(o),de=Ee||/Mac/.test(c),Te=/\bCrOS\b/.test(o),$e=/win/i.test(c),We=X&&o.match(/Version\/(\d*\.\d*)/);We&&(We=Number(We[1])),We&&We>=15&&(X=!1,I=!0);var Qe=de&&(U||X&&(We==null||We<12.11)),tt=f||k&&O>=9;function pe(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var ye=function(e,t){var a=e.className,s=pe(t).exec(a);if(s){var u=a.slice(s.index+s[0].length);e.className=a.slice(0,s.index)+(u?s[1]+u:"")}};function rt(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild);return e}function B(e,t){return rt(e).appendChild(t)}function D(e,t,a,s){var u=document.createElement(e);if(a&&(u.className=a),s&&(u.style.cssText=s),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,a,s){var u=D(e,t,a,s);return u.setAttribute("role","presentation"),u}var re;document.createRange?re=function(e,t,a,s){var u=document.createRange();return u.setEnd(s||e,a),u.setStart(e,t),u}:re=function(e,t,a){var s=document.body.createTextRange();try{s.moveToElementText(e.parentNode)}catch{return s}return s.collapse(!0),s.moveEnd("character",a),s.moveStart("character",t),s};function ve(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 nt(){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 Pt(e,t){var a=e.className;pe(t).test(a)||(e.className+=(a?" ":"")+t)}function or(e,t){for(var a=e.split(" "),s=0;s<a.length;s++)a[s]&&!pe(a[s]).test(t)&&(t+=" "+a[s]);return t}var Rt=function(e){e.select()};Ee?Rt=function(e){e.selectionStart=0,e.selectionEnd=e.value.length}:k&&(Rt=function(e){try{e.select()}catch{}});function fn(e){var t=Array.prototype.slice.call(arguments,1);return function(){return e.apply(null,t)}}function Qt(e,t,a){t||(t={});for(var s in e)e.hasOwnProperty(s)&&(a!==!1||!t.hasOwnProperty(s))&&(t[s]=e[s]);return t}function Ht(e,t,a,s,u){t==null&&(t=e.search(/[^\s\u00a0]/),t==-1&&(t=e.length));for(var h=s||0,p=u||0;;){var m=e.indexOf(" ",h);if(m<0||m>=t)return p+(t-h);p+=m-h,p+=a-p%a,h=m+1}}var at=function(){this.id=null,this.f=null,this.time=0,this.handler=fn(this.onTimeout,this)};at.prototype.onTimeout=function(e){e.id=0,e.time<=+new Date?e.f():setTimeout(e.handler,e.time-+new Date)},at.prototype.set=function(e,t){this.f=t;var a=+new Date+e;(!this.id||a<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,e),this.time=a)};function _e(e,t){for(var a=0;a<e.length;++a)if(e[a]==t)return a;return-1}var He=50,Be={toString:function(){return"CodeMirror.Pass"}},it={scroll:!1},ot={origin:"*mouse"},Fe={origin:"+move"};function Zt(e,t,a){for(var s=0,u=0;;){var h=e.indexOf(" ",s);h==-1&&(h=e.length);var p=h-s;if(h==e.length||u+p>=t)return s+Math.min(p,t-u);if(u+=h-s,u+=a-u%a,s=h+1,u>=t)return s}}var Gr=[""];function sr(e){for(;Gr.length<=e;)Gr.push(je(Gr)+" ");return Gr[e]}function je(e){return e[e.length-1]}function mt(e,t){for(var a=[],s=0;s<e.length;s++)a[s]=t(e[s],s);return a}function kt(e,t,a){for(var s=0,u=a(t);s<e.length&&a(e[s])<=u;)s++;e.splice(s,0,t)}function $r(){}function en(e,t){var a;return Object.create?a=Object.create(e):($r.prototype=e,a=new $r),t&&Qt(t,a),a}var ur=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function Je(e){return/\w/.test(e)||e>"\x80"&&(e.toUpperCase()!=e.toLowerCase()||ur.test(e))}function F(e,t){return t?t.source.indexOf("\\w")>-1&&Je(e)?!0:t.test(e):Je(e)}function ie(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 Ke(e){return e.charCodeAt(0)>=768&&V.test(e)}function cr(e,t,a){for(;(a<0?t>0:t<e.length)&&Ke(e.charAt(t));)t+=a;return t}function kr(e,t,a){for(var s=t>a?-1:1;;){if(t==a)return t;var u=(t+a)/2,h=s<0?Math.ceil(u):Math.floor(u);if(h==t)return e(h)?t:a;e(h)?a=h:t=h+s}}function $n(e,t,a,s){if(!e)return s(t,a,"ltr",0);for(var u=!1,h=0;h<e.length;++h){var p=e[h];(p.from<a&&p.to>t||t==a&&p.to==t)&&(s(Math.max(p.from,t),Math.min(p.to,a),p.level==1?"rtl":"ltr",h),u=!0)}u||s(t,a,"ltr")}var qr=null;function Ut(e,t,a){var s;qr=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&&a=="before"?s=u:qr=u),h.from==t&&(h.from!=h.to&&a!="before"?s=u:qr=u)}return s!=null?s:qr}var wi=function(){var e="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",t="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function a(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 s=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,u=/[stwN]/,h=/[LRr]/,p=/[Lb1n]/,m=/[1n]/;function b(C,S,M){this.level=C,this.from=S,this.to=M}return function(C,S){var M=S=="ltr"?"L":"R";if(C.length==0||S=="ltr"&&!s.test(C))return!1;for(var $=C.length,N=[],Z=0;Z<$;++Z)N.push(a(C.charCodeAt(Z)));for(var Q=0,ae=M;Q<$;++Q){var ce=N[Q];ce=="m"?N[Q]=ae:ae=ce}for(var be=0,fe=M;be<$;++be){var we=N[be];we=="1"&&fe=="r"?N[be]="n":h.test(we)&&(fe=we,we=="r"&&(N[be]="R"))}for(var Ie=1,Pe=N[0];Ie<$-1;++Ie){var st=N[Ie];st=="+"&&Pe=="1"&&N[Ie+1]=="1"?N[Ie]="1":st==","&&Pe==N[Ie+1]&&(Pe=="1"||Pe=="n")&&(N[Ie]=Pe),Pe=st}for(var Mt=0;Mt<$;++Mt){var ar=N[Mt];if(ar==",")N[Mt]="N";else if(ar=="%"){var It=void 0;for(It=Mt+1;It<$&&N[It]=="%";++It);for(var Br=Mt&&N[Mt-1]=="!"||It<$&&N[It]=="1"?"1":"N",Ur=Mt;Ur<It;++Ur)N[Ur]=Br;Mt=It-1}}for(var er=0,Lr=M;er<$;++er){var hr=N[er];Lr=="L"&&hr=="1"?N[er]="L":h.test(hr)&&(Lr=hr)}for(var At=0;At<$;++At)if(u.test(N[At])){var $t=void 0;for($t=At+1;$t<$&&u.test(N[$t]);++$t);for(var jt=(At?N[At-1]:M)=="L",Yr=($t<$?N[$t]:M)=="L",Ws=jt==Yr?jt?"L":"R":M,po=At;po<$t;++po)N[po]=Ws;At=$t-1}for(var zr=[],di,pr=0;pr<$;)if(p.test(N[pr])){var l0=pr;for(++pr;pr<$&&p.test(N[pr]);++pr);zr.push(new b(0,l0,pr))}else{var Ei=pr,qo=zr.length,jo=S=="rtl"?1:0;for(++pr;pr<$&&N[pr]!="L";++pr);for(var Zr=Ei;Zr<pr;)if(m.test(N[Zr])){Ei<Zr&&(zr.splice(qo,0,new b(1,Ei,Zr)),qo+=jo);var Bs=Zr;for(++Zr;Zr<pr&&m.test(N[Zr]);++Zr);zr.splice(qo,0,new b(2,Bs,Zr)),qo+=jo,Ei=Zr}else++Zr;Ei<pr&&zr.splice(qo,0,new b(1,Ei,pr))}return S=="ltr"&&(zr[0].level==1&&(di=C.match(/^\s+/))&&(zr[0].from=di[0].length,zr.unshift(new b(0,0,di[0].length))),je(zr).level==1&&(di=C.match(/\s+$/))&&(je(zr).to-=di[0].length,zr.push(new b(0,$-di[0].length,$)))),S=="rtl"?zr.reverse():zr}}();function Rr(e,t){var a=e.order;return a==null&&(a=e.order=wi(e.text,t)),a}var Rn=[],Ne=function(e,t,a){if(e.addEventListener)e.addEventListener(t,a,!1);else if(e.attachEvent)e.attachEvent("on"+t,a);else{var s=e._handlers||(e._handlers={});s[t]=(s[t]||Rn).concat(a)}};function Wi(e,t){return e._handlers&&e._handlers[t]||Rn}function Mr(e,t,a){if(e.removeEventListener)e.removeEventListener(t,a,!1);else if(e.detachEvent)e.detachEvent("on"+t,a);else{var s=e._handlers,u=s&&s[t];if(u){var h=_e(u,a);h>-1&&(s[t]=u.slice(0,h).concat(u.slice(h+1)))}}}function Ze(e,t){var a=Wi(e,t);if(!!a.length)for(var s=Array.prototype.slice.call(arguments,2),u=0;u<a.length;++u)a[u].apply(null,s)}function rr(e,t,a){return typeof t=="string"&&(t={type:t,preventDefault:function(){this.defaultPrevented=!0}}),Ze(e,a||t.type,e,t),dn(t)||t.codemirrorIgnore}function cs(e){var t=e._handlers&&e._handlers.cursorActivity;if(!!t)for(var a=e.curOp.cursorActivityHandlers||(e.curOp.cursorActivityHandlers=[]),s=0;s<t.length;++s)_e(a,t[s])==-1&&a.push(t[s])}function br(e,t){return Wi(e,t).length>0}function Hn(e){e.prototype.on=function(t,a){Ne(this,t,a)},e.prototype.off=function(t,a){Mr(this,t,a)}}function Cr(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function fs(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function dn(e){return e.defaultPrevented!=null?e.defaultPrevented:e.returnValue==!1}function ko(e){Cr(e),fs(e)}function Bi(e){return e.target||e.srcElement}function ea(e){var t=e.which;return t==null&&(e.button&1?t=1:e.button&2?t=3:e.button&4&&(t=2)),de&&e.ctrlKey&&t==1&&(t=3),t}var ta=function(){if(k&&O<9)return!1;var e=D("div");return"draggable"in e||"dragDrop"in e}(),jr;function Xa(e){if(jr==null){var t=D("span","\u200B");B(e,D("span",[t,document.createTextNode("x")])),e.firstChild.offsetHeight!=0&&(jr=t.offsetWidth<=1&&t.offsetHeight>2&&!(k&&O<8))}var a=jr?D("span","\u200B"):D("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return a.setAttribute("cm-text",""),a}var Mo;function ri(e){if(Mo!=null)return Mo;var t=B(e,document.createTextNode("A\u062EA")),a=re(t,0,1).getBoundingClientRect(),s=re(t,1,2).getBoundingClientRect();return rt(e),!a||a.left==a.right?!1:Mo=s.right-a.right<3}var Oo=`
2094
+ `];qa([W({type:String,reflect:!0})],exports.InputRadio.prototype,"layout",2);qa([W({type:String,reflect:!0})],exports.InputRadio.prototype,"size",2);qa([ht()],exports.InputRadio.prototype,"_radioElements",2);exports.InputRadio=qa([De("sp-input-radio-group")],exports.InputRadio);exports.InputRadioOption=class extends Ue{render(){}};qa([W({type:String})],exports.InputRadioOption.prototype,"value",2);qa([W({type:Boolean})],exports.InputRadioOption.prototype,"disabled",2);exports.InputRadioOption=qa([De("sp-input-radio-option")],exports.InputRadioOption);var Xl=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},ud={exports:{}},kp;function Qs(){return kp||(kp=1,function(r,n){(function(o,c){r.exports=c()})(Xl,function(){var o=navigator.userAgent,c=navigator.platform,f=/gecko\/\d/i.test(o),v=/MSIE \d/.test(o),y=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(o),E=/Edge\/(\d+)/.exec(o),k=v||y||E,O=k&&(v?document.documentMode||6:+(E||y)[1]),I=!E&&/WebKit\//.test(o),U=I&&/Qt\/\d+\.\d+/.test(o),q=!E&&/Chrome\//.test(o),X=/Opera\//.test(o),ue=/Apple Computer/.test(navigator.vendor),Ce=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(o),me=/PhantomJS/.test(o),Ee=ue&&(/Mobile\/\w+/.test(o)||navigator.maxTouchPoints>2),Ae=/Android/.test(o),he=Ee||Ae||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(o),de=Ee||/Mac/.test(c),Te=/\bCrOS\b/.test(o),$e=/win/i.test(c),We=X&&o.match(/Version\/(\d*\.\d*)/);We&&(We=Number(We[1])),We&&We>=15&&(X=!1,I=!0);var Qe=de&&(U||X&&(We==null||We<12.11)),tt=f||k&&O>=9;function pe(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var ye=function(e,t){var a=e.className,s=pe(t).exec(a);if(s){var u=a.slice(s.index+s[0].length);e.className=a.slice(0,s.index)+(u?s[1]+u:"")}};function rt(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild);return e}function B(e,t){return rt(e).appendChild(t)}function D(e,t,a,s){var u=document.createElement(e);if(a&&(u.className=a),s&&(u.style.cssText=s),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,a,s){var u=D(e,t,a,s);return u.setAttribute("role","presentation"),u}var re;document.createRange?re=function(e,t,a,s){var u=document.createRange();return u.setEnd(s||e,a),u.setStart(e,t),u}:re=function(e,t,a){var s=document.body.createTextRange();try{s.moveToElementText(e.parentNode)}catch{return s}return s.collapse(!0),s.moveEnd("character",a),s.moveStart("character",t),s};function ve(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 nt(){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 Pt(e,t){var a=e.className;pe(t).test(a)||(e.className+=(a?" ":"")+t)}function or(e,t){for(var a=e.split(" "),s=0;s<a.length;s++)a[s]&&!pe(a[s]).test(t)&&(t+=" "+a[s]);return t}var Rt=function(e){e.select()};Ee?Rt=function(e){e.selectionStart=0,e.selectionEnd=e.value.length}:k&&(Rt=function(e){try{e.select()}catch{}});function fn(e){var t=Array.prototype.slice.call(arguments,1);return function(){return e.apply(null,t)}}function Qt(e,t,a){t||(t={});for(var s in e)e.hasOwnProperty(s)&&(a!==!1||!t.hasOwnProperty(s))&&(t[s]=e[s]);return t}function Ht(e,t,a,s,u){t==null&&(t=e.search(/[^\s\u00a0]/),t==-1&&(t=e.length));for(var h=s||0,p=u||0;;){var m=e.indexOf(" ",h);if(m<0||m>=t)return p+(t-h);p+=m-h,p+=a-p%a,h=m+1}}var at=function(){this.id=null,this.f=null,this.time=0,this.handler=fn(this.onTimeout,this)};at.prototype.onTimeout=function(e){e.id=0,e.time<=+new Date?e.f():setTimeout(e.handler,e.time-+new Date)},at.prototype.set=function(e,t){this.f=t;var a=+new Date+e;(!this.id||a<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,e),this.time=a)};function _e(e,t){for(var a=0;a<e.length;++a)if(e[a]==t)return a;return-1}var He=50,Be={toString:function(){return"CodeMirror.Pass"}},it={scroll:!1},ot={origin:"*mouse"},Fe={origin:"+move"};function Zt(e,t,a){for(var s=0,u=0;;){var h=e.indexOf(" ",s);h==-1&&(h=e.length);var p=h-s;if(h==e.length||u+p>=t)return s+Math.min(p,t-u);if(u+=h-s,u+=a-u%a,s=h+1,u>=t)return s}}var Gr=[""];function sr(e){for(;Gr.length<=e;)Gr.push(je(Gr)+" ");return Gr[e]}function je(e){return e[e.length-1]}function mt(e,t){for(var a=[],s=0;s<e.length;s++)a[s]=t(e[s],s);return a}function kt(e,t,a){for(var s=0,u=a(t);s<e.length&&a(e[s])<=u;)s++;e.splice(s,0,t)}function $r(){}function en(e,t){var a;return Object.create?a=Object.create(e):($r.prototype=e,a=new $r),t&&Qt(t,a),a}var ur=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function Je(e){return/\w/.test(e)||e>"\x80"&&(e.toUpperCase()!=e.toLowerCase()||ur.test(e))}function F(e,t){return t?t.source.indexOf("\\w")>-1&&Je(e)?!0:t.test(e):Je(e)}function ie(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 Ke(e){return e.charCodeAt(0)>=768&&V.test(e)}function cr(e,t,a){for(;(a<0?t>0:t<e.length)&&Ke(e.charAt(t));)t+=a;return t}function kr(e,t,a){for(var s=t>a?-1:1;;){if(t==a)return t;var u=(t+a)/2,h=s<0?Math.ceil(u):Math.floor(u);if(h==t)return e(h)?t:a;e(h)?a=h:t=h+s}}function $n(e,t,a,s){if(!e)return s(t,a,"ltr",0);for(var u=!1,h=0;h<e.length;++h){var p=e[h];(p.from<a&&p.to>t||t==a&&p.to==t)&&(s(Math.max(p.from,t),Math.min(p.to,a),p.level==1?"rtl":"ltr",h),u=!0)}u||s(t,a,"ltr")}var qr=null;function Ut(e,t,a){var s;qr=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&&a=="before"?s=u:qr=u),h.from==t&&(h.from!=h.to&&a!="before"?s=u:qr=u)}return s!=null?s:qr}var wi=function(){var e="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",t="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function a(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 s=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,u=/[stwN]/,h=/[LRr]/,p=/[Lb1n]/,m=/[1n]/;function b(C,S,M){this.level=C,this.from=S,this.to=M}return function(C,S){var M=S=="ltr"?"L":"R";if(C.length==0||S=="ltr"&&!s.test(C))return!1;for(var $=C.length,N=[],Z=0;Z<$;++Z)N.push(a(C.charCodeAt(Z)));for(var Q=0,ae=M;Q<$;++Q){var ce=N[Q];ce=="m"?N[Q]=ae:ae=ce}for(var be=0,fe=M;be<$;++be){var we=N[be];we=="1"&&fe=="r"?N[be]="n":h.test(we)&&(fe=we,we=="r"&&(N[be]="R"))}for(var Ie=1,Pe=N[0];Ie<$-1;++Ie){var st=N[Ie];st=="+"&&Pe=="1"&&N[Ie+1]=="1"?N[Ie]="1":st==","&&Pe==N[Ie+1]&&(Pe=="1"||Pe=="n")&&(N[Ie]=Pe),Pe=st}for(var Mt=0;Mt<$;++Mt){var ar=N[Mt];if(ar==",")N[Mt]="N";else if(ar=="%"){var It=void 0;for(It=Mt+1;It<$&&N[It]=="%";++It);for(var Br=Mt&&N[Mt-1]=="!"||It<$&&N[It]=="1"?"1":"N",Ur=Mt;Ur<It;++Ur)N[Ur]=Br;Mt=It-1}}for(var er=0,Lr=M;er<$;++er){var hr=N[er];Lr=="L"&&hr=="1"?N[er]="L":h.test(hr)&&(Lr=hr)}for(var At=0;At<$;++At)if(u.test(N[At])){var $t=void 0;for($t=At+1;$t<$&&u.test(N[$t]);++$t);for(var jt=(At?N[At-1]:M)=="L",Yr=($t<$?N[$t]:M)=="L",Fs=jt==Yr?jt?"L":"R":M,po=At;po<$t;++po)N[po]=Fs;At=$t-1}for(var zr=[],di,pr=0;pr<$;)if(p.test(N[pr])){var l0=pr;for(++pr;pr<$&&p.test(N[pr]);++pr);zr.push(new b(0,l0,pr))}else{var Ei=pr,qo=zr.length,jo=S=="rtl"?1:0;for(++pr;pr<$&&N[pr]!="L";++pr);for(var Zr=Ei;Zr<pr;)if(m.test(N[Zr])){Ei<Zr&&(zr.splice(qo,0,new b(1,Ei,Zr)),qo+=jo);var Ws=Zr;for(++Zr;Zr<pr&&m.test(N[Zr]);++Zr);zr.splice(qo,0,new b(2,Ws,Zr)),qo+=jo,Ei=Zr}else++Zr;Ei<pr&&zr.splice(qo,0,new b(1,Ei,pr))}return S=="ltr"&&(zr[0].level==1&&(di=C.match(/^\s+/))&&(zr[0].from=di[0].length,zr.unshift(new b(0,0,di[0].length))),je(zr).level==1&&(di=C.match(/\s+$/))&&(je(zr).to-=di[0].length,zr.push(new b(0,$-di[0].length,$)))),S=="rtl"?zr.reverse():zr}}();function Rr(e,t){var a=e.order;return a==null&&(a=e.order=wi(e.text,t)),a}var Rn=[],Ne=function(e,t,a){if(e.addEventListener)e.addEventListener(t,a,!1);else if(e.attachEvent)e.attachEvent("on"+t,a);else{var s=e._handlers||(e._handlers={});s[t]=(s[t]||Rn).concat(a)}};function Wi(e,t){return e._handlers&&e._handlers[t]||Rn}function Mr(e,t,a){if(e.removeEventListener)e.removeEventListener(t,a,!1);else if(e.detachEvent)e.detachEvent("on"+t,a);else{var s=e._handlers,u=s&&s[t];if(u){var h=_e(u,a);h>-1&&(s[t]=u.slice(0,h).concat(u.slice(h+1)))}}}function Ze(e,t){var a=Wi(e,t);if(!!a.length)for(var s=Array.prototype.slice.call(arguments,2),u=0;u<a.length;++u)a[u].apply(null,s)}function rr(e,t,a){return typeof t=="string"&&(t={type:t,preventDefault:function(){this.defaultPrevented=!0}}),Ze(e,a||t.type,e,t),dn(t)||t.codemirrorIgnore}function us(e){var t=e._handlers&&e._handlers.cursorActivity;if(!!t)for(var a=e.curOp.cursorActivityHandlers||(e.curOp.cursorActivityHandlers=[]),s=0;s<t.length;++s)_e(a,t[s])==-1&&a.push(t[s])}function br(e,t){return Wi(e,t).length>0}function Hn(e){e.prototype.on=function(t,a){Ne(this,t,a)},e.prototype.off=function(t,a){Mr(this,t,a)}}function Cr(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function cs(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function dn(e){return e.defaultPrevented!=null?e.defaultPrevented:e.returnValue==!1}function ko(e){Cr(e),cs(e)}function Bi(e){return e.target||e.srcElement}function ea(e){var t=e.which;return t==null&&(e.button&1?t=1:e.button&2?t=3:e.button&4&&(t=2)),de&&e.ctrlKey&&t==1&&(t=3),t}var ta=function(){if(k&&O<9)return!1;var e=D("div");return"draggable"in e||"dragDrop"in e}(),jr;function Xa(e){if(jr==null){var t=D("span","\u200B");B(e,D("span",[t,document.createTextNode("x")])),e.firstChild.offsetHeight!=0&&(jr=t.offsetWidth<=1&&t.offsetHeight>2&&!(k&&O<8))}var a=jr?D("span","\u200B"):D("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return a.setAttribute("cm-text",""),a}var Mo;function ri(e){if(Mo!=null)return Mo;var t=B(e,document.createTextNode("A\u062EA")),a=re(t,0,1).getBoundingClientRect(),s=re(t,1,2).getBoundingClientRect();return rt(e),!a||a.left==a.right?!1:Mo=s.right-a.right<3}var Oo=`
2088
2095
 
2089
2096
  b`.split(/\n/).length!=3?function(e){for(var t=0,a=[],s=e.length;t<=s;){var u=e.indexOf(`
2090
- `,t);u==-1&&(u=e.length);var h=e.slice(t,e.charAt(u-1)=="\r"?u-1:u),p=h.indexOf("\r");p!=-1?(a.push(h.slice(0,p)),t+=p+1):(a.push(h),t=u+1)}return a}:function(e){return e.split(/\r\n?|\n/)},Qa=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},Ja=function(){var e=D("div");return"oncopy"in e?!0:(e.setAttribute("oncopy","return;"),typeof e.oncopy=="function")}(),ra=null;function Ui(e){if(ra!=null)return ra;var t=B(e,D("span","x")),a=t.getBoundingClientRect(),s=re(t,0,1).getBoundingClientRect();return ra=Math.abs(a.left-s.left)>1}var xn={},hn={};function el(e,t){arguments.length>2&&(t.dependencies=Array.prototype.slice.call(arguments,2)),xn[e]=t}function xi(e,t){hn[e]=t}function To(e){if(typeof e=="string"&&hn.hasOwnProperty(e))e=hn[e];else if(e&&typeof e.name=="string"&&hn.hasOwnProperty(e.name)){var t=hn[e.name];typeof t=="string"&&(t={name:t}),e=en(t,e),e.name=t.name}else{if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return To("application/xml");if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return To("application/json")}return typeof e=="string"?{name:e}:e||{name:"null"}}function ds(e,t){t=To(t);var a=xn[t.name];if(!a)return ds(e,"text/plain");var s=a(e,t);if(Fn.hasOwnProperty(t.name)){var u=Fn[t.name];for(var h in u)!u.hasOwnProperty(h)||(s.hasOwnProperty(h)&&(s["_"+h]=s[h]),s[h]=u[h])}if(s.name=t.name,t.helperType&&(s.helperType=t.helperType),t.modeProps)for(var p in t.modeProps)s[p]=t.modeProps[p];return s}var Fn={};function Wn(e,t){var a=Fn.hasOwnProperty(e)?Fn[e]:Fn[e]={};Qt(t,a)}function pn(e,t){if(t===!0)return t;if(e.copyState)return e.copyState(t);var a={};for(var s in t){var u=t[s];u instanceof Array&&(u=u.concat([])),a[s]=u}return a}function na(e,t){for(var a;e.innerMode&&(a=e.innerMode(t),!(!a||a.mode==e));)t=a.state,e=a.mode;return a||{mode:e,state:t}}function ia(e,t,a){return e.startState?e.startState(t,a):!0}var Ft=function(e,t,a){this.pos=this.start=0,this.string=e,this.tabSize=t||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=a};Ft.prototype.eol=function(){return this.pos>=this.string.length},Ft.prototype.sol=function(){return this.pos==this.lineStart},Ft.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Ft.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},Ft.prototype.eat=function(e){var t=this.string.charAt(this.pos),a;if(typeof e=="string"?a=t==e:a=t&&(e.test?e.test(t):e(t)),a)return++this.pos,t},Ft.prototype.eatWhile=function(e){for(var t=this.pos;this.eat(e););return this.pos>t},Ft.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},Ft.prototype.skipToEnd=function(){this.pos=this.string.length},Ft.prototype.skipTo=function(e){var t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0},Ft.prototype.backUp=function(e){this.pos-=e},Ft.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=Ht(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?Ht(this.string,this.lineStart,this.tabSize):0)},Ft.prototype.indentation=function(){return Ht(this.string,null,this.tabSize)-(this.lineStart?Ht(this.string,this.lineStart,this.tabSize):0)},Ft.prototype.match=function(e,t,a){if(typeof e=="string"){var s=function(p){return a?p.toLowerCase():p},u=this.string.substr(this.pos,e.length);if(s(u)==s(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)}},Ft.prototype.current=function(){return this.string.slice(this.start,this.pos)},Ft.prototype.hideFirstChars=function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}},Ft.prototype.lookAhead=function(e){var t=this.lineOracle;return t&&t.lookAhead(e)},Ft.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 a=e;!a.lines;)for(var s=0;;++s){var u=a.children[s],h=u.chunkSize();if(t<h){a=u;break}t-=h}return a.lines[t]}function vn(e,t,a){var s=[],u=t.line;return e.iter(t.line,a.line+1,function(h){var p=h.text;u==a.line&&(p=p.slice(0,a.ch)),u==t.line&&(p=p.slice(t.ch)),s.push(p),++u}),s}function oa(e,t,a){var s=[];return e.iter(t,a,function(u){s.push(u.text)}),s}function tn(e,t){var a=t-e.height;if(a)for(var s=e;s;s=s.parent)s.height+=a}function wt(e){if(e.parent==null)return null;for(var t=e.parent,a=_e(t.lines,e),s=t.parent;s;t=s,s=s.parent)for(var u=0;s.children[u]!=t;++u)a+=s.children[u].chunkSize();return a+t.first}function Bn(e,t){var a=e.first;e:do{for(var s=0;s<e.children.length;++s){var u=e.children[s],h=u.height;if(t<h){e=u;continue e}t-=h,a+=u.chunkSize()}return a}while(!e.lines);for(var p=0;p<e.lines.length;++p){var m=e.lines[p],b=m.height;if(t<b)break;t-=b}return a+p}function Yi(e,t){return t>=e.first&&t<e.first+e.size}function hs(e,t){return String(e.lineNumberFormatter(t+e.firstLineNumber))}function ne(e,t,a){if(a===void 0&&(a=null),!(this instanceof ne))return new ne(e,t,a);this.line=e,this.ch=t,this.sticky=a}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 ne(e.line,e.ch)}function oe(e,t){return w(e,t)<0?t:e}function Ve(e,t){return w(e,t)<0?e:t}function pt(e,t){return Math.max(e.first,Math.min(t,e.first+e.size-1))}function ge(e,t){if(t.line<e.first)return ne(e.first,0);var a=e.first+e.size-1;return t.line>a?ne(a,Me(e,a).text.length):Or(t,Me(e,t.line).text.length)}function Or(e,t){var a=e.ch;return a==null||a>t?ne(e.line,t):a<0?ne(e.line,0):e}function rn(e,t){for(var a=[],s=0;s<t.length;s++)a[s]=ge(e,t[s]);return a}var _i=function(e,t){this.state=e,this.lookAhead=t},Un=function(e,t,a,s){this.state=t,this.doc=e,this.line=a,this.maxLookAhead=s||0,this.baseTokens=null,this.baseTokenPos=1};Un.prototype.lookAhead=function(e){var t=this.doc.getLine(this.line+e);return t!=null&&e>this.maxLookAhead&&(this.maxLookAhead=e),t},Un.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}},Un.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Un.fromSaved=function(e,t,a){return t instanceof _i?new Un(e,pn(e.mode,t.state),a,t.lookAhead):new Un(e,pn(e.mode,t),a)},Un.prototype.save=function(e){var t=e!==!1?pn(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new _i(t,this.maxLookAhead):t};function B0(e,t,a,s){var u=[e.state.modeGen],h={};mu(e,t.text,e.doc.mode,a,function(C,S){return u.push(C,S)},h,s);for(var p=a.state,m=function(C){a.baseTokens=u;var S=e.state.overlays[C],M=1,$=0;a.state=!0,mu(e,t.text,S.mode,a,function(N,Z){for(var Q=M;$<N;){var ae=u[M];ae>N&&u.splice(M,1,N,u[M+1],ae),M+=2,$=Math.min(N,ae)}if(!!Z)if(S.opaque)u.splice(Q,M-Q,N,"overlay "+Z),M=Q+2;else for(;Q<M;Q+=2){var ce=u[Q+1];u[Q+1]=(ce?ce+" ":"")+"overlay "+Z}},h),a.state=p,a.baseTokens=null,a.baseTokenPos=1},b=0;b<e.state.overlays.length;++b)m(b);return{styles:u,classes:h.bgClass||h.textClass?h:null}}function gu(e,t,a){if(!t.styles||t.styles[0]!=e.state.modeGen){var s=ps(e,wt(t)),u=t.text.length>e.options.maxHighlightLength&&pn(e.doc.mode,s.state),h=B0(e,t,s);u&&(s.state=u),t.stateAfter=s.save(!u),t.styles=h.styles,h.classes?t.styleClasses=h.classes:t.styleClasses&&(t.styleClasses=null),a===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return t.styles}function ps(e,t,a){var s=e.doc,u=e.display;if(!s.mode.startState)return new Un(s,!0,t);var h=Y0(e,t,a),p=h>s.first&&Me(s,h-1).stateAfter,m=p?Un.fromSaved(s,p,h):new Un(s,ia(s.mode),h);return s.iter(h,t,function(b){sa(e,b.text,m);var C=m.line;b.stateAfter=C==t-1||C%5==0||C>=u.viewFrom&&C<u.viewTo?m.save():null,m.nextLine()}),a&&(s.modeFrontier=m.line),m}function sa(e,t,a,s){var u=e.doc.mode,h=new Ft(t,e.options.tabSize,a);for(h.start=h.pos=s||0,t==""&&U0(u,a.state);!h.eol();)tl(u,h,a.state),h.start=h.pos}function U0(e,t){if(e.blankLine)return e.blankLine(t);if(!!e.innerMode){var a=na(e,t);if(a.mode.blankLine)return a.mode.blankLine(a.state)}}function tl(e,t,a,s){for(var u=0;u<10;u++){s&&(s[0]=na(e,a).mode);var h=e.token(t,a);if(t.pos>t.start)return h}throw new Error("Mode "+e.name+" failed to advance stream.")}var rl=function(e,t,a){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=t||null,this.state=a};function nl(e,t,a,s){var u=e.doc,h=u.mode,p;t=ge(u,t);var m=Me(u,t.line),b=ps(e,t.line,a),C=new Ft(m.text,e.options.tabSize,b),S;for(s&&(S=[]);(s||C.pos<t.ch)&&!C.eol();)C.start=C.pos,p=tl(h,C,b.state),s&&S.push(new rl(C,p,pn(u.mode,b.state)));return s?S:new rl(C,p,b.state)}function Po(e,t){if(e)for(;;){var a=e.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!a)break;e=e.slice(0,a.index)+e.slice(a.index+a[0].length);var s=a[1]?"bgClass":"textClass";t[s]==null?t[s]=a[2]:new RegExp("(?:^|\\s)"+a[2]+"(?:$|\\s)").test(t[s])||(t[s]+=" "+a[2])}return e}function mu(e,t,a,s,u,h,p){var m=a.flattenSpans;m==null&&(m=e.options.flattenSpans);var b=0,C=null,S=new Ft(t,e.options.tabSize,s),M,$=e.options.addModeClass&&[null];for(t==""&&Po(U0(a,s.state),h);!S.eol();){if(S.pos>e.options.maxHighlightLength?(m=!1,p&&sa(e,t,s,S.pos),S.pos=t.length,M=null):M=Po(tl(a,S,s.state,$),h),$){var N=$[0].name;N&&(M="m-"+(M?N+" "+M:N))}if(!m||C!=M){for(;b<S.start;)b=Math.min(S.start,b+5e3),u(b,C);C=M}S.start=S.pos}for(;b<S.pos;){var Z=Math.min(S.pos,b+5e3);u(Z,C),b=Z}}function Y0(e,t,a){for(var s,u,h=e.doc,p=a?-1:t-(e.doc.mode.innerMode?1e3:100),m=t;m>p;--m){if(m<=h.first)return h.first;var b=Me(h,m-1),C=b.stateAfter;if(C&&(!a||m+(C instanceof _i?C.lookAhead:0)<=h.modeFrontier))return m;var S=Ht(b.text,null,e.options.tabSize);(u==null||s>S)&&(u=m-1,s=S)}return u}function tf(e,t){if(e.modeFrontier=Math.min(e.modeFrontier,t),!(e.highlightFrontier<t-10)){for(var a=e.first,s=t-1;s>a;s--){var u=Me(e,s).stateAfter;if(u&&(!(u instanceof _i)||s+u.lookAhead<t)){a=s+1;break}}e.highlightFrontier=Math.min(e.highlightFrontier,a)}}var yu=!1,ni=!1;function Z0(){yu=!0}function V0(){ni=!0}function il(e,t,a){this.marker=e,this.from=t,this.to=a}function aa(e,t){if(e)for(var a=0;a<e.length;++a){var s=e[a];if(s.marker==t)return s}}function rf(e,t){for(var a,s=0;s<e.length;++s)e[s]!=t&&(a||(a=[])).push(e[s]);return a}function G0(e,t,a){var s=a&&window.WeakSet&&(a.markedSpans||(a.markedSpans=new WeakSet));s&&s.has(e.markedSpans)?e.markedSpans.push(t):(e.markedSpans=e.markedSpans?e.markedSpans.concat([t]):[t],s&&s.add(e.markedSpans)),t.marker.attachLine(e)}function nf(e,t,a){var s;if(e)for(var u=0;u<e.length;++u){var h=e[u],p=h.marker,m=h.from==null||(p.inclusiveLeft?h.from<=t:h.from<t);if(m||h.from==t&&p.type=="bookmark"&&(!a||!h.marker.insertLeft)){var b=h.to==null||(p.inclusiveRight?h.to>=t:h.to>t);(s||(s=[])).push(new il(p,h.from,b?null:h.to))}}return s}function of(e,t,a){var s;if(e)for(var u=0;u<e.length;++u){var h=e[u],p=h.marker,m=h.to==null||(p.inclusiveRight?h.to>=t:h.to>t);if(m||h.from==t&&p.type=="bookmark"&&(!a||h.marker.insertLeft)){var b=h.from==null||(p.inclusiveLeft?h.from<=t:h.from<t);(s||(s=[])).push(new il(p,b?null:h.from-t,h.to==null?null:h.to-t))}}return s}function bu(e,t){if(t.full)return null;var a=Yi(e,t.from.line)&&Me(e,t.from.line).markedSpans,s=Yi(e,t.to.line)&&Me(e,t.to.line).markedSpans;if(!a&&!s)return null;var u=t.from.ch,h=t.to.ch,p=w(t.from,t.to)==0,m=nf(a,u,p),b=of(s,h,p),C=t.text.length==1,S=je(t.text).length+(C?u:0);if(m)for(var M=0;M<m.length;++M){var $=m[M];if($.to==null){var N=aa(b,$.marker);N?C&&($.to=N.to==null?null:N.to+S):$.to=u}}if(b)for(var Z=0;Z<b.length;++Z){var Q=b[Z];if(Q.to!=null&&(Q.to+=S),Q.from==null){var ae=aa(m,Q.marker);ae||(Q.from=S,C&&(m||(m=[])).push(Q))}else Q.from+=S,C&&(m||(m=[])).push(Q)}m&&(m=q0(m)),b&&b!=m&&(b=q0(b));var ce=[m];if(!C){var be=t.text.length-2,fe;if(be>0&&m)for(var we=0;we<m.length;++we)m[we].to==null&&(fe||(fe=[])).push(new il(m[we].marker,null,null));for(var Ie=0;Ie<be;++Ie)ce.push(fe);ce.push(b)}return ce}function q0(e){for(var t=0;t<e.length;++t){var a=e[t];a.from!=null&&a.from==a.to&&a.marker.clearWhenEmpty!==!1&&e.splice(t--,1)}return e.length?e:null}function Cu(e,t,a){var s=null;if(e.iter(t.line,a.line+1,function(N){if(N.markedSpans)for(var Z=0;Z<N.markedSpans.length;++Z){var Q=N.markedSpans[Z].marker;Q.readOnly&&(!s||_e(s,Q)==-1)&&(s||(s=[])).push(Q)}}),!s)return null;for(var u=[{from:t,to:a}],h=0;h<s.length;++h)for(var p=s[h],m=p.find(0),b=0;b<u.length;++b){var C=u[b];if(!(w(C.to,m.from)<0||w(C.from,m.to)>0)){var S=[b,1],M=w(C.from,m.from),$=w(C.to,m.to);(M<0||!p.inclusiveLeft&&!M)&&S.push({from:C.from,to:m.from}),($>0||!p.inclusiveRight&&!$)&&S.push({from:m.to,to:C.to}),u.splice.apply(u,S),b+=S.length-3}}return u}function j0(e){var t=e.markedSpans;if(!!t){for(var a=0;a<t.length;++a)t[a].marker.detachLine(e);e.markedSpans=null}}function K0(e,t){if(!!t){for(var a=0;a<t.length;++a)t[a].marker.attachLine(e);e.markedSpans=t}}function ol(e){return e.inclusiveLeft?-1:0}function sl(e){return e.inclusiveRight?1:0}function wu(e,t){var a=e.lines.length-t.lines.length;if(a!=0)return a;var s=e.find(),u=t.find(),h=w(s.from,u.from)||ol(e)-ol(t);if(h)return-h;var p=w(s.to,u.to)||sl(e)-sl(t);return p||t.id-e.id}function Wt(e,t){var a=ni&&e.markedSpans,s;if(a)for(var u=void 0,h=0;h<a.length;++h)u=a[h],u.marker.collapsed&&(t?u.from:u.to)==null&&(!s||wu(s,u.marker)<0)&&(s=u.marker);return s}function Nt(e){return Wt(e,!0)}function al(e){return Wt(e,!1)}function sf(e,t){var a=ni&&e.markedSpans,s;if(a)for(var u=0;u<a.length;++u){var h=a[u];h.marker.collapsed&&(h.from==null||h.from<t)&&(h.to==null||h.to>t)&&(!s||wu(s,h.marker)<0)&&(s=h.marker)}return s}function X0(e,t,a,s,u){var h=Me(e,t),p=ni&&h.markedSpans;if(p)for(var m=0;m<p.length;++m){var b=p[m];if(!!b.marker.collapsed){var C=b.marker.find(0),S=w(C.from,a)||ol(b.marker)-ol(u),M=w(C.to,s)||sl(b.marker)-sl(u);if(!(S>=0&&M<=0||S<=0&&M>=0)&&(S<=0&&(b.marker.inclusiveRight&&u.inclusiveLeft?w(C.to,a)>=0:w(C.to,a)>0)||S>=0&&(b.marker.inclusiveRight&&u.inclusiveLeft?w(C.from,s)<=0:w(C.from,s)<0)))return!0}}}function ii(e){for(var t;t=Nt(e);)e=t.find(-1,!0).line;return e}function af(e){for(var t;t=al(e);)e=t.find(1,!0).line;return e}function lf(e){for(var t,a;t=al(e);)e=t.find(1,!0).line,(a||(a=[])).push(e);return a}function ll(e,t){var a=Me(e,t),s=ii(a);return a==s?t:wt(s)}function Q0(e,t){if(t>e.lastLine())return t;var a=Me(e,t),s;if(!Vt(e,a))return t;for(;s=al(a);)a=s.find(1,!0).line;return wt(a)+1}function Vt(e,t){var a=ni&&t.markedSpans;if(a){for(var s=void 0,u=0;u<a.length;++u)if(s=a[u],!!s.marker.collapsed){if(s.from==null)return!0;if(!s.marker.widgetNode&&s.from==0&&s.marker.inclusiveLeft&&la(e,t,s))return!0}}}function la(e,t,a){if(a.to==null){var s=a.marker.find(1,!0);return la(e,s.line,aa(s.line.markedSpans,a.marker))}if(a.marker.inclusiveRight&&a.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==a.to&&(u.to==null||u.to!=a.from)&&(u.marker.inclusiveLeft||a.marker.inclusiveRight)&&la(e,t,u))return!0}function Kr(e){e=ii(e);for(var t=0,a=e.parent,s=0;s<a.lines.length;++s){var u=a.lines[s];if(u==e)break;t+=u.height}for(var h=a.parent;h;a=h,h=a.parent)for(var p=0;p<h.children.length;++p){var m=h.children[p];if(m==a)break;t+=m.height}return t}function ua(e){if(e.height==0)return 0;for(var t=e.text.length,a,s=e;a=Nt(s);){var u=a.find(0,!0);s=u.from.line,t+=u.from.ch-u.to.ch}for(s=e;a=al(s);){var h=a.find(0,!0);t-=s.text.length-h.from.ch,s=h.to.line,t+=s.text.length-h.to.ch}return t}function ca(e){var t=e.display,a=e.doc;t.maxLine=Me(a,a.first),t.maxLineLength=ua(t.maxLine),t.maxLineChanged=!0,a.iter(function(s){var u=ua(s);u>t.maxLineLength&&(t.maxLineLength=u,t.maxLine=s)})}var Tr=function(e,t,a){this.text=e,K0(this,t),this.height=a?a(this):1};Tr.prototype.lineNo=function(){return wt(this)},Hn(Tr);function J0(e,t,a,s){e.text=t,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),e.order!=null&&(e.order=null),j0(e),K0(e,a);var u=s?s(e):1;u!=e.height&&tn(e,u)}function e1(e){e.parent=null,j0(e)}var t1={},r1={};function xu(e,t){if(!e||/^\s*$/.test(e))return null;var a=t.addModeClass?r1:t1;return a[e]||(a[e]=e.replace(/\S+/g,"cm-$&"))}function _u(e,t){var a=T("span",null,null,I?"padding-right: .1px":null),s={pre:T("pre",[a],"CodeMirror-line"),content:a,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:e.getOption("lineWrapping")};t.measure={};for(var u=0;u<=(t.rest?t.rest.length:0);u++){var h=u?t.rest[u-1]:t.line,p=void 0;s.pos=0,s.addToken=uf,ri(e.display.measure)&&(p=Rr(h,e.doc.direction))&&(s.addToken=cf(s.addToken,p)),s.map=[];var m=t!=e.display.externalMeasured&&wt(h);Zi(h,s,gu(e,h,m)),h.styleClasses&&(h.styleClasses.bgClass&&(s.bgClass=or(h.styleClasses.bgClass,s.bgClass||"")),h.styleClasses.textClass&&(s.textClass=or(h.styleClasses.textClass,s.textClass||""))),s.map.length==0&&s.map.push(0,0,s.content.appendChild(Xa(e.display.measure))),u==0?(t.measure.map=s.map,t.measure.cache={}):((t.measure.maps||(t.measure.maps=[])).push(s.map),(t.measure.caches||(t.measure.caches=[])).push({}))}if(I){var b=s.content.lastChild;(/\bcm-tab\b/.test(b.className)||b.querySelector&&b.querySelector(".cm-tab"))&&(s.content.className="cm-tab-wrap-hack")}return Ze(e,"renderLine",e,t.line,s.pre),s.pre.className&&(s.textClass=or(s.pre.className,s.textClass||"")),s}function gn(e){var t=D("span","\u2022","cm-invalidchar");return t.title="\\u"+e.charCodeAt(0).toString(16),t.setAttribute("aria-label",t.title),t}function uf(e,t,a,s,u,h,p){if(!!t){var m=e.splitSpaces?_n(t,e.trailingSpace):t,b=e.cm.state.specialChars,C=!1,S;if(!b.test(t))e.col+=t.length,S=document.createTextNode(m),e.map.push(e.pos,e.pos+t.length,S),k&&O<9&&(C=!0),e.pos+=t.length;else{S=document.createDocumentFragment();for(var M=0;;){b.lastIndex=M;var $=b.exec(t),N=$?$.index-M:t.length-M;if(N){var Z=document.createTextNode(m.slice(M,M+N));k&&O<9?S.appendChild(D("span",[Z])):S.appendChild(Z),e.map.push(e.pos,e.pos+N,Z),e.col+=N,e.pos+=N}if(!$)break;M+=N+1;var Q=void 0;if($[0]==" "){var ae=e.cm.options.tabSize,ce=ae-e.col%ae;Q=S.appendChild(D("span",sr(ce),"cm-tab")),Q.setAttribute("role","presentation"),Q.setAttribute("cm-text"," "),e.col+=ce}else $[0]=="\r"||$[0]==`
2091
- `?(Q=S.appendChild(D("span",$[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),Q.setAttribute("cm-text",$[0]),e.col+=1):(Q=e.cm.options.specialCharPlaceholder($[0]),Q.setAttribute("cm-text",$[0]),k&&O<9?S.appendChild(D("span",[Q])):S.appendChild(Q),e.col+=1);e.map.push(e.pos,e.pos+1,Q),e.pos++}}if(e.trailingSpace=m.charCodeAt(t.length-1)==32,a||s||u||C||h||p){var be=a||"";s&&(be+=s),u&&(be+=u);var fe=D("span",[S],be,h);if(p)for(var we in p)p.hasOwnProperty(we)&&we!="style"&&we!="class"&&fe.setAttribute(we,p[we]);return e.content.appendChild(fe)}e.content.appendChild(S)}}function _n(e,t){if(e.length>1&&!/ /.test(e))return e;for(var a=t,s="",u=0;u<e.length;u++){var h=e.charAt(u);h==" "&&a&&(u==e.length-1||e.charCodeAt(u+1)==32)&&(h="\xA0"),s+=h,a=h==" "}return s}function cf(e,t){return function(a,s,u,h,p,m,b){u=u?u+" cm-force-border":"cm-force-border";for(var C=a.pos,S=C+s.length;;){for(var M=void 0,$=0;$<t.length&&(M=t[$],!(M.to>C&&M.from<=C));$++);if(M.to>=S)return e(a,s,u,h,p,m,b);e(a,s.slice(0,M.to-C),u,h,null,m,b),h=null,s=s.slice(M.to-C),C=M.to}}}function Lu(e,t,a,s){var u=!s&&a.widgetNode;u&&e.map.push(e.pos,e.pos+t,u),!s&&e.cm.display.input.needsContentAttribute&&(u||(u=e.content.appendChild(document.createElement("span"))),u.setAttribute("cm-marker",a.id)),u&&(e.cm.display.input.setUneditable(u),e.content.appendChild(u)),e.pos+=t,e.trailingSpace=!1}function Zi(e,t,a){var s=e.markedSpans,u=e.text,h=0;if(!s){for(var p=1;p<a.length;p+=2)t.addToken(t,u.slice(h,h=a[p]),xu(a[p+1],t.cm.options));return}for(var m=u.length,b=0,C=1,S="",M,$,N=0,Z,Q,ae,ce,be;;){if(N==b){Z=Q=ae=$="",be=null,ce=null,N=1/0;for(var fe=[],we=void 0,Ie=0;Ie<s.length;++Ie){var Pe=s[Ie],st=Pe.marker;if(st.type=="bookmark"&&Pe.from==b&&st.widgetNode)fe.push(st);else if(Pe.from<=b&&(Pe.to==null||Pe.to>b||st.collapsed&&Pe.to==b&&Pe.from==b)){if(Pe.to!=null&&Pe.to!=b&&N>Pe.to&&(N=Pe.to,Q=""),st.className&&(Z+=" "+st.className),st.css&&($=($?$+";":"")+st.css),st.startStyle&&Pe.from==b&&(ae+=" "+st.startStyle),st.endStyle&&Pe.to==N&&(we||(we=[])).push(st.endStyle,Pe.to),st.title&&((be||(be={})).title=st.title),st.attributes)for(var Mt in st.attributes)(be||(be={}))[Mt]=st.attributes[Mt];st.collapsed&&(!ce||wu(ce.marker,st)<0)&&(ce=Pe)}else Pe.from>b&&N>Pe.from&&(N=Pe.from)}if(we)for(var ar=0;ar<we.length;ar+=2)we[ar+1]==N&&(Q+=" "+we[ar]);if(!ce||ce.from==b)for(var It=0;It<fe.length;++It)Lu(t,0,fe[It]);if(ce&&(ce.from||0)==b){if(Lu(t,(ce.to==null?m+1:ce.to)-b,ce.marker,ce.from==null),ce.to==null)return;ce.to==b&&(ce=!1)}}if(b>=m)break;for(var Br=Math.min(m,N);;){if(S){var Ur=b+S.length;if(!ce){var er=Ur>Br?S.slice(0,Br-b):S;t.addToken(t,er,M?M+Z:Z,ae,b+er.length==N?Q:"",$,be)}if(Ur>=Br){S=S.slice(Br-b),b=Br;break}b=Ur,ae=""}S=u.slice(h,h=a[C++]),M=xu(a[C++],t.cm.options)}}}function fa(e,t,a){this.line=t,this.rest=lf(t),this.size=this.rest?wt(je(this.rest))-a+1:1,this.node=this.text=null,this.hidden=Vt(e,t)}function vs(e,t,a){for(var s=[],u,h=t;h<a;h=u){var p=new fa(e.doc,Me(e.doc,h),h);u=h+p.size,s.push(p)}return s}var Et=null;function Vi(e){Et?Et.ops.push(e):e.ownsGroup=Et={ops:[e],delayedCallbacks:[]}}function Su(e){var t=e.delayedCallbacks,a=0;do{for(;a<t.length;a++)t[a].call(null);for(var s=0;s<e.ops.length;s++){var u=e.ops[s];if(u.cursorActivityHandlers)for(;u.cursorActivityCalled<u.cursorActivityHandlers.length;)u.cursorActivityHandlers[u.cursorActivityCalled++].call(null,u.cm)}}while(a<t.length)}function ff(e,t){var a=e.ownsGroup;if(!!a)try{Su(a)}finally{Et=null,t(a)}}var Eo=null;function fr(e,t){var a=Wi(e,t);if(!!a.length){var s=Array.prototype.slice.call(arguments,2),u;Et?u=Et.delayedCallbacks:Eo?u=Eo:(u=Eo=[],setTimeout(df,0));for(var h=function(m){u.push(function(){return a[m].apply(null,s)})},p=0;p<a.length;++p)h(p)}}function df(){var e=Eo;Eo=null;for(var t=0;t<e.length;++t)e[t]()}function n1(e,t,a,s){for(var u=0;u<t.changes.length;u++){var h=t.changes[u];h=="text"?hf(e,t):h=="gutter"?ku(e,t,a,s):h=="class"?cl(e,t):h=="widget"&&Mu(e,t,s)}t.changes=null}function gs(e){return e.node==e.text&&(e.node=D("div",null,null,"position: relative"),e.text.parentNode&&e.text.parentNode.replaceChild(e.node,e.text),e.node.appendChild(e.text),k&&O<8&&(e.node.style.zIndex=2)),e.node}function ul(e,t){var a=t.bgClass?t.bgClass+" "+(t.line.bgClass||""):t.line.bgClass;if(a&&(a+=" CodeMirror-linebackground"),t.background)a?t.background.className=a:(t.background.parentNode.removeChild(t.background),t.background=null);else if(a){var s=gs(t);t.background=s.insertBefore(D("div",null,a),s.firstChild),e.display.input.setUneditable(t.background)}}function Ao(e,t){var a=e.display.externalMeasured;return a&&a.line==t.line?(e.display.externalMeasured=null,t.measure=a.measure,a.built):_u(e,t)}function hf(e,t){var a=t.text.className,s=Ao(e,t);t.text==t.node&&(t.node=s.pre),t.text.parentNode.replaceChild(s.pre,t.text),t.text=s.pre,s.bgClass!=t.bgClass||s.textClass!=t.textClass?(t.bgClass=s.bgClass,t.textClass=s.textClass,cl(e,t)):a&&(t.text.className=a)}function cl(e,t){ul(e,t),t.line.wrapClass?gs(t).className=t.line.wrapClass:t.node!=t.text&&(t.node.className="");var a=t.textClass?t.textClass+" "+(t.line.textClass||""):t.line.textClass;t.text.className=a||""}function ku(e,t,a,s){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=gs(t);t.gutterBackground=D("div",null,"CodeMirror-gutter-background "+t.line.gutterClass,"left: "+(e.options.fixedGutter?s.fixedPos:-s.gutterTotalWidth)+"px; width: "+s.gutterTotalWidth+"px"),e.display.input.setUneditable(t.gutterBackground),u.insertBefore(t.gutterBackground,t.text)}var h=t.line.gutterMarkers;if(e.options.lineNumbers||h){var p=gs(t),m=t.gutter=D("div",null,"CodeMirror-gutter-wrapper","left: "+(e.options.fixedGutter?s.fixedPos:-s.gutterTotalWidth)+"px");if(m.setAttribute("aria-hidden","true"),e.display.input.setUneditable(m),p.insertBefore(m,t.text),t.line.gutterClass&&(m.className+=" "+t.line.gutterClass),e.options.lineNumbers&&(!h||!h["CodeMirror-linenumbers"])&&(t.lineNumber=m.appendChild(D("div",hs(e.options,a),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+s.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+e.display.lineNumInnerWidth+"px"))),h)for(var b=0;b<e.display.gutterSpecs.length;++b){var C=e.display.gutterSpecs[b].className,S=h.hasOwnProperty(C)&&h[C];S&&m.appendChild(D("div",[S],"CodeMirror-gutter-elt","left: "+s.gutterLeft[C]+"px; width: "+s.gutterWidth[C]+"px"))}}}function Mu(e,t,a){t.alignable&&(t.alignable=null);for(var s=pe("CodeMirror-linewidget"),u=t.node.firstChild,h=void 0;u;u=h)h=u.nextSibling,s.test(u.className)&&t.node.removeChild(u);Tu(e,t,a)}function Ou(e,t,a,s){var u=Ao(e,t);return t.text=t.node=u.pre,u.bgClass&&(t.bgClass=u.bgClass),u.textClass&&(t.textClass=u.textClass),cl(e,t),ku(e,t,a,s),Tu(e,t,s),t.node}function Tu(e,t,a){if(i1(e,t.line,t,a,!0),t.rest)for(var s=0;s<t.rest.length;s++)i1(e,t.rest[s],t,a,!1)}function i1(e,t,a,s,u){if(!!t.widgets)for(var h=gs(a),p=0,m=t.widgets;p<m.length;++p){var b=m[p],C=D("div",[b.node],"CodeMirror-linewidget"+(b.className?" "+b.className:""));b.handleMouseEvents||C.setAttribute("cm-ignore-events","true"),Pu(b,C,a,s),e.display.input.setUneditable(C),u&&b.above?h.insertBefore(C,a.gutter||a.text):h.appendChild(C),fr(b,"redraw")}}function Pu(e,t,a,s){if(e.noHScroll){(a.alignable||(a.alignable=[])).push(t);var u=s.wrapperWidth;t.style.left=s.fixedPos+"px",e.coverGutter||(u-=s.gutterTotalWidth,t.style.paddingLeft=s.gutterTotalWidth+"px"),t.style.width=u+"px"}e.coverGutter&&(t.style.zIndex=5,t.style.position="relative",e.noHScroll||(t.style.marginLeft=-s.gutterTotalWidth+"px"))}function Do(e){if(e.height!=null)return e.height;var t=e.doc.cm;if(!t)return 0;if(!ve(document.body,e.node)){var a="position: relative;";e.coverGutter&&(a+="margin-left: -"+t.display.gutters.offsetWidth+"px;"),e.noHScroll&&(a+="width: "+t.display.wrapper.clientWidth+"px;"),B(t.display.measure,D("div",[e.node],null,a))}return e.height=e.node.parentNode.offsetHeight}function Li(e,t){for(var a=Bi(t);a!=e.wrapper;a=a.parentNode)if(!a||a.nodeType==1&&a.getAttribute("cm-ignore-events")=="true"||a.parentNode==e.sizer&&a!=e.mover)return!0}function da(e){return e.lineSpace.offsetTop}function Xr(e){return e.mover.offsetHeight-e.lineSpace.offsetHeight}function fl(e){if(e.cachedPaddingH)return e.cachedPaddingH;var t=B(e.measure,D("pre","x","CodeMirror-line-like")),a=window.getComputedStyle?window.getComputedStyle(t):t.currentStyle,s={left:parseInt(a.paddingLeft),right:parseInt(a.paddingRight)};return!isNaN(s.left)&&!isNaN(s.right)&&(e.cachedPaddingH=s),s}function nn(e){return He-e.display.nativeBarWidth}function Gi(e){return e.display.scroller.clientWidth-nn(e)-e.display.barWidth}function dl(e){return e.display.scroller.clientHeight-nn(e)-e.display.barHeight}function pf(e,t,a){var s=e.options.lineWrapping,u=s&&Gi(e);if(!t.measure.heights||s&&t.measure.width!=u){var h=t.measure.heights=[];if(s){t.measure.width=u;for(var p=t.text.firstChild.getClientRects(),m=0;m<p.length-1;m++){var b=p[m],C=p[m+1];Math.abs(b.bottom-C.bottom)>2&&h.push((b.bottom+C.top)/2-a.top)}}h.push(a.bottom-a.top)}}function o1(e,t,a){if(e.line==t)return{map:e.measure.map,cache:e.measure.cache};for(var s=0;s<e.rest.length;s++)if(e.rest[s]==t)return{map:e.measure.maps[s],cache:e.measure.caches[s]};for(var u=0;u<e.rest.length;u++)if(wt(e.rest[u])>a)return{map:e.measure.maps[u],cache:e.measure.caches[u],before:!0}}function vf(e,t){t=ii(t);var a=wt(t),s=e.display.externalMeasured=new fa(e.doc,t,a);s.lineN=a;var u=s.built=_u(e,s);return s.text=u.pre,B(e.display.lineMeasure,u.pre),s}function s1(e,t,a,s){return oi(e,Yn(e,t),a,s)}function Eu(e,t){if(t>=e.display.viewFrom&&t<e.display.viewTo)return e.display.view[ai(e,t)];var a=e.display.externalMeasured;if(a&&t>=a.lineN&&t<a.lineN+a.size)return a}function Yn(e,t){var a=wt(t),s=Eu(e,a);s&&!s.text?s=null:s&&s.changes&&(n1(e,s,a,on(e)),e.curOp.forceUpdate=!0),s||(s=vf(e,t));var u=o1(s,t,a);return{line:t,view:s,rect:null,map:u.map,cache:u.cache,before:u.before,hasHeights:!1}}function oi(e,t,a,s,u){t.before&&(a=-1);var h=a+(s||""),p;return t.cache.hasOwnProperty(h)?p=t.cache[h]:(t.rect||(t.rect=t.view.text.getBoundingClientRect()),t.hasHeights||(pf(e,t.view,t.rect),t.hasHeights=!0),p=qi(e,t,a,s),p.bogus||(t.cache[h]=p)),{left:p.left,right:p.right,top:u?p.rtop:p.top,bottom:u?p.rbottom:p.bottom}}var a1={left:0,right:0,top:0,bottom:0};function hl(e,t,a){for(var s,u,h,p,m,b,C=0;C<e.length;C+=3)if(m=e[C],b=e[C+1],t<m?(u=0,h=1,p="left"):t<b?(u=t-m,h=u+1):(C==e.length-3||t==b&&e[C+3]>t)&&(h=b-m,u=h-1,t>=b&&(p="right")),u!=null){if(s=e[C+2],m==b&&a==(s.insertLeft?"left":"right")&&(p=a),a=="left"&&u==0)for(;C&&e[C-2]==e[C-3]&&e[C-1].insertLeft;)s=e[(C-=3)+2],p="left";if(a=="right"&&u==b-m)for(;C<e.length-3&&e[C+3]==e[C+4]&&!e[C+5].insertLeft;)s=e[(C+=3)+2],p="right";break}return{node:s,start:u,end:h,collapse:p,coverStart:m,coverEnd:b}}function l1(e,t){var a=a1;if(t=="left")for(var s=0;s<e.length&&(a=e[s]).left==a.right;s++);else for(var u=e.length-1;u>=0&&(a=e[u]).left==a.right;u--);return a}function qi(e,t,a,s){var u=hl(t.map,a,s),h=u.node,p=u.start,m=u.end,b=u.collapse,C;if(h.nodeType==3){for(var S=0;S<4;S++){for(;p&&Ke(t.line.text.charAt(u.coverStart+p));)--p;for(;u.coverStart+m<u.coverEnd&&Ke(t.line.text.charAt(u.coverStart+m));)++m;if(k&&O<9&&p==0&&m==u.coverEnd-u.coverStart?C=h.parentNode.getBoundingClientRect():C=l1(re(h,p,m).getClientRects(),s),C.left||C.right||p==0)break;m=p,p=p-1,b="right"}k&&O<11&&(C=pl(e.display.measure,C))}else{p>0&&(b=s="right");var M;e.options.lineWrapping&&(M=h.getClientRects()).length>1?C=M[s=="right"?M.length-1:0]:C=h.getBoundingClientRect()}if(k&&O<9&&!p&&(!C||!C.left&&!C.right)){var $=h.parentNode.getClientRects()[0];$?C={left:$.left,right:$.left+ms(e.display),top:$.top,bottom:$.bottom}:C=a1}for(var N=C.top-t.rect.top,Z=C.bottom-t.rect.top,Q=(N+Z)/2,ae=t.view.measure.heights,ce=0;ce<ae.length-1&&!(Q<ae[ce]);ce++);var be=ce?ae[ce-1]:0,fe=ae[ce],we={left:(b=="right"?C.right:C.left)-t.rect.left,right:(b=="left"?C.left:C.right)-t.rect.left,top:be,bottom:fe};return!C.left&&!C.right&&(we.bogus=!0),e.options.singleCursorHeightPerLine||(we.rtop=N,we.rbottom=Z),we}function pl(e,t){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!Ui(e))return t;var a=screen.logicalXDPI/screen.deviceXDPI,s=screen.logicalYDPI/screen.deviceYDPI;return{left:t.left*a,right:t.right*a,top:t.top*s,bottom:t.bottom*s}}function u1(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 c1(e){e.display.externalMeasure=null,rt(e.display.lineMeasure);for(var t=0;t<e.display.view.length;t++)u1(e.display.view[t])}function ha(e){c1(e),e.display.cachedCharWidth=e.display.cachedTextHeight=e.display.cachedPaddingH=null,e.options.lineWrapping||(e.display.maxLineChanged=!0),e.display.lineNumChars=null}function Io(){return q&&Ae?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function Ln(){return q&&Ae?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function vl(e){var t=0;if(e.widgets)for(var a=0;a<e.widgets.length;++a)e.widgets[a].above&&(t+=Do(e.widgets[a]));return t}function gl(e,t,a,s,u){if(!u){var h=vl(t);a.top+=h,a.bottom+=h}if(s=="line")return a;s||(s="local");var p=Kr(t);if(s=="local"?p+=da(e.display):p-=e.display.viewOffset,s=="page"||s=="window"){var m=e.display.lineSpace.getBoundingClientRect();p+=m.top+(s=="window"?0:Ln());var b=m.left+(s=="window"?0:Io());a.left+=b,a.right+=b}return a.top+=p,a.bottom+=p,a}function f1(e,t,a){if(a=="div")return t;var s=t.left,u=t.top;if(a=="page")s-=Io(),u-=Ln();else if(a=="local"||!a){var h=e.display.sizer.getBoundingClientRect();s+=h.left,u+=h.top}var p=e.display.lineSpace.getBoundingClientRect();return{left:s-p.left,top:u-p.top}}function ml(e,t,a,s,u){return s||(s=Me(e.doc,t.line)),gl(e,s,s1(e,s,t.ch,u),a)}function Zn(e,t,a,s,u,h){s=s||Me(e.doc,t.line),u||(u=Yn(e,s));function p(Z,Q){var ae=oi(e,u,Z,Q?"right":"left",h);return Q?ae.left=ae.right:ae.right=ae.left,gl(e,s,ae,a)}var m=Rr(s,e.doc.direction),b=t.ch,C=t.sticky;if(b>=s.text.length?(b=s.text.length,C="before"):b<=0&&(b=0,C="after"),!m)return p(C=="before"?b-1:b,C=="before");function S(Z,Q,ae){var ce=m[Q],be=ce.level==1;return p(ae?Z-1:Z,be!=ae)}var M=Ut(m,b,C),$=qr,N=S(b,M,C=="before");return $!=null&&(N.other=S(b,$,C!="before")),N}function d1(e,t){var a=0;t=ge(e.doc,t),e.options.lineWrapping||(a=ms(e.display)*t.ch);var s=Me(e.doc,t.line),u=Kr(s)+da(e.display);return{left:a,right:a,top:u,bottom:u+s.height}}function ji(e,t,a,s,u){var h=ne(e,t,a);return h.xRel=u,s&&(h.outside=s),h}function R(e,t,a){var s=e.doc;if(a+=e.display.viewOffset,a<0)return ji(s.first,0,null,-1,-1);var u=Bn(s,a),h=s.first+s.size-1;if(u>h)return ji(s.first+s.size-1,Me(s,h).text.length,null,1,1);t<0&&(t=0);for(var p=Me(s,u);;){var m=Xe(e,p,u,t,a),b=sf(p,m.ch+(m.xRel>0||m.outside>0?1:0));if(!b)return m;var C=b.find(1);if(C.line==u)return C;p=Me(s,u=C.line)}}function K(e,t,a,s){s-=vl(t);var u=t.text.length,h=kr(function(p){return oi(e,a,p-1).bottom<=s},u,0);return u=kr(function(p){return oi(e,a,p).top>s},h,u),{begin:h,end:u}}function Y(e,t,a,s){a||(a=Yn(e,t));var u=gl(e,t,oi(e,a,s),"line").top;return K(e,t,a,u)}function Se(e,t,a,s){return e.bottom<=a?!1:e.top>a?!0:(s?e.left:e.right)>t}function Xe(e,t,a,s,u){u-=Kr(t);var h=Yn(e,t),p=vl(t),m=0,b=t.text.length,C=!0,S=Rr(t,e.doc.direction);if(S){var M=(e.options.lineWrapping?dr:St)(e,t,a,h,S,s,u);C=M.level!=1,m=C?M.from:M.to-1,b=C?M.to:M.from-1}var $=null,N=null,Z=kr(function(Ie){var Pe=oi(e,h,Ie);return Pe.top+=p,Pe.bottom+=p,Se(Pe,s,u,!1)?(Pe.top<=u&&Pe.left<=s&&($=Ie,N=Pe),!0):!1},m,b),Q,ae,ce=!1;if(N){var be=s-N.left<N.right-s,fe=be==C;Z=$+(fe?0:1),ae=fe?"after":"before",Q=be?N.left:N.right}else{!C&&(Z==b||Z==m)&&Z++,ae=Z==0?"after":Z==t.text.length?"before":oi(e,h,Z-(C?1:0)).bottom+p<=u==C?"after":"before";var we=Zn(e,ne(a,Z,ae),"line",t,h);Q=we.left,ce=u<we.top?-1:u>=we.bottom?1:0}return Z=cr(t.text,Z,1),ji(a,Z,ae,ce,s-Q)}function St(e,t,a,s,u,h,p){var m=kr(function(M){var $=u[M],N=$.level!=1;return Se(Zn(e,ne(a,N?$.to:$.from,N?"before":"after"),"line",t,s),h,p,!0)},0,u.length-1),b=u[m];if(m>0){var C=b.level!=1,S=Zn(e,ne(a,C?b.from:b.to,C?"after":"before"),"line",t,s);Se(S,h,p,!0)&&S.top>p&&(b=u[m-1])}return b}function dr(e,t,a,s,u,h,p){var m=K(e,t,s,p),b=m.begin,C=m.end;/\s/.test(t.text.charAt(C-1))&&C--;for(var S=null,M=null,$=0;$<u.length;$++){var N=u[$];if(!(N.from>=C||N.to<=b)){var Z=N.level!=1,Q=oi(e,s,Z?Math.min(C,N.to)-1:Math.max(b,N.from)).right,ae=Q<h?h-Q+1e9:Q-h;(!S||M>ae)&&(S=N,M=ae)}}return S||(S=u[u.length-1]),S.from<b&&(S={from:b,to:S.to,level:S.level}),S.to>C&&(S={from:S.from,to:C,level:S.level}),S}var bt;function Ki(e){if(e.cachedTextHeight!=null)return e.cachedTextHeight;if(bt==null){bt=D("pre",null,"CodeMirror-line-like");for(var t=0;t<49;++t)bt.appendChild(document.createTextNode("x")),bt.appendChild(D("br"));bt.appendChild(document.createTextNode("x"))}B(e.measure,bt);var a=bt.offsetHeight/50;return a>3&&(e.cachedTextHeight=a),rt(e.measure),a||1}function ms(e){if(e.cachedCharWidth!=null)return e.cachedCharWidth;var t=D("span","xxxxxxxxxx"),a=D("pre",[t],"CodeMirror-line-like");B(e.measure,a);var s=t.getBoundingClientRect(),u=(s.right-s.left)/10;return u>2&&(e.cachedCharWidth=u),u||10}function on(e){for(var t=e.display,a={},s={},u=t.gutters.clientLeft,h=t.gutters.firstChild,p=0;h;h=h.nextSibling,++p){var m=e.display.gutterSpecs[p].className;a[m]=h.offsetLeft+h.clientLeft+u,s[m]=h.clientWidth}return{fixedPos:ys(t),gutterTotalWidth:t.gutters.offsetWidth,gutterLeft:a,gutterWidth:s,wrapperWidth:t.wrapper.clientWidth}}function ys(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function h1(e){var t=Ki(e.display),a=e.options.lineWrapping,s=a&&Math.max(5,e.display.scroller.clientWidth/ms(e.display)-3);return function(u){if(Vt(e.doc,u))return 0;var h=0;if(u.widgets)for(var p=0;p<u.widgets.length;p++)u.widgets[p].height&&(h+=u.widgets[p].height);return a?h+(Math.ceil(u.text.length/s)||1)*t:h+t}}function Xi(e){var t=e.doc,a=h1(e);t.iter(function(s){var u=a(s);u!=s.height&&tn(s,u)})}function si(e,t,a,s){var u=e.display;if(!a&&Bi(t).getAttribute("cm-not-content")=="true")return null;var h,p,m=u.lineSpace.getBoundingClientRect();try{h=t.clientX-m.left,p=t.clientY-m.top}catch{return null}var b=R(e,h,p),C;if(s&&b.xRel>0&&(C=Me(e.doc,b.line).text).length==b.ch){var S=Ht(C,C.length,e.options.tabSize)-C.length;b=ne(b.line,Math.max(0,Math.round((h-fl(e.display).left)/ms(e.display))-S))}return b}function ai(e,t){if(t>=e.display.viewTo||(t-=e.display.viewFrom,t<0))return null;for(var a=e.display.view,s=0;s<a.length;s++)if(t-=a[s].size,t<0)return s}function et(e,t,a,s){t==null&&(t=e.doc.first),a==null&&(a=e.doc.first+e.doc.size),s||(s=0);var u=e.display;if(s&&a<u.viewTo&&(u.updateLineNumbers==null||u.updateLineNumbers>t)&&(u.updateLineNumbers=t),e.curOp.viewChanged=!0,t>=u.viewTo)ni&&ll(e.doc,t)<u.viewTo&&Si(e);else if(a<=u.viewFrom)ni&&Q0(e.doc,a+s)>u.viewFrom?Si(e):(u.viewFrom+=s,u.viewTo+=s);else if(t<=u.viewFrom&&a>=u.viewTo)Si(e);else if(t<=u.viewFrom){var h=zo(e,a,a+s,1);h?(u.view=u.view.slice(h.index),u.viewFrom=h.lineN,u.viewTo+=s):Si(e)}else if(a>=u.viewTo){var p=zo(e,t,t,-1);p?(u.view=u.view.slice(0,p.index),u.viewTo=p.lineN):Si(e)}else{var m=zo(e,t,t,-1),b=zo(e,a,a+s,1);m&&b?(u.view=u.view.slice(0,m.index).concat(vs(e,m.lineN,b.lineN)).concat(u.view.slice(b.index)),u.viewTo+=s):Si(e)}var C=u.externalMeasured;C&&(a<C.lineN?C.lineN+=s:t<C.lineN+C.size&&(u.externalMeasured=null))}function Qi(e,t,a){e.curOp.viewChanged=!0;var s=e.display,u=e.display.externalMeasured;if(u&&t>=u.lineN&&t<u.lineN+u.size&&(s.externalMeasured=null),!(t<s.viewFrom||t>=s.viewTo)){var h=s.view[ai(e,t)];if(h.node!=null){var p=h.changes||(h.changes=[]);_e(p,a)==-1&&p.push(a)}}}function Si(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function zo(e,t,a,s){var u=ai(e,t),h,p=e.display.view;if(!ni||a==e.doc.first+e.doc.size)return{index:u,lineN:a};for(var m=e.display.viewFrom,b=0;b<u;b++)m+=p[b].size;if(m!=t){if(s>0){if(u==p.length-1)return null;h=m+p[u].size-t,u++}else h=m-t;t+=h,a+=h}for(;ll(e.doc,a)!=a;){if(u==(s<0?0:p.length-1))return null;a+=s*p[u-(s<0?1:0)].size,u+=s}return{index:u,lineN:a}}function gf(e,t,a){var s=e.display,u=s.view;u.length==0||t>=s.viewTo||a<=s.viewFrom?(s.view=vs(e,t,a),s.viewFrom=t):(s.viewFrom>t?s.view=vs(e,t,s.viewFrom).concat(s.view):s.viewFrom<t&&(s.view=s.view.slice(ai(e,t))),s.viewFrom=t,s.viewTo<a?s.view=s.view.concat(vs(e,s.viewTo,a)):s.viewTo>a&&(s.view=s.view.slice(0,ai(e,a)))),s.viewTo=a}function p1(e){for(var t=e.display.view,a=0,s=0;s<t.length;s++){var u=t[s];!u.hidden&&(!u.node||u.changes)&&++a}return a}function pa(e){e.display.input.showSelection(e.display.input.prepareSelection())}function va(e,t){t===void 0&&(t=!0);for(var a=e.doc,s={},u=s.cursors=document.createDocumentFragment(),h=s.selection=document.createDocumentFragment(),p=0;p<a.sel.ranges.length;p++)if(!(!t&&p==a.sel.primIndex)){var m=a.sel.ranges[p];if(!(m.from().line>=e.display.viewTo||m.to().line<e.display.viewFrom)){var b=m.empty();(b||e.options.showCursorWhenSelecting)&&ki(e,m.head,u),b||v1(e,m,h)}}return s}function ki(e,t,a){var s=Zn(e,t,"div",null,null,!e.options.singleCursorHeightPerLine),u=a.appendChild(D("div","\xA0","CodeMirror-cursor"));if(u.style.left=s.left+"px",u.style.top=s.top+"px",u.style.height=Math.max(0,s.bottom-s.top)*e.options.cursorHeight+"px",/\bcm-fat-cursor\b/.test(e.getWrapperElement().className)){var h=ml(e,t,"div",null,null);u.style.width=Math.max(0,h.right-h.left)+"px"}if(s.other){var p=a.appendChild(D("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));p.style.display="",p.style.left=s.other.left+"px",p.style.top=s.other.top+"px",p.style.height=(s.other.bottom-s.other.top)*.85+"px"}}function No(e,t){return e.top-t.top||e.left-t.left}function v1(e,t,a){var s=e.display,u=e.doc,h=document.createDocumentFragment(),p=fl(e.display),m=p.left,b=Math.max(s.sizerWidth,Gi(e)-s.sizer.offsetLeft)-p.right,C=u.direction=="ltr";function S(fe,we,Ie,Pe){we<0&&(we=0),we=Math.round(we),Pe=Math.round(Pe),h.appendChild(D("div",null,"CodeMirror-selected","position: absolute; left: "+fe+`px;
2097
+ `,t);u==-1&&(u=e.length);var h=e.slice(t,e.charAt(u-1)=="\r"?u-1:u),p=h.indexOf("\r");p!=-1?(a.push(h.slice(0,p)),t+=p+1):(a.push(h),t=u+1)}return a}:function(e){return e.split(/\r\n?|\n/)},Qa=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},Ja=function(){var e=D("div");return"oncopy"in e?!0:(e.setAttribute("oncopy","return;"),typeof e.oncopy=="function")}(),ra=null;function Ui(e){if(ra!=null)return ra;var t=B(e,D("span","x")),a=t.getBoundingClientRect(),s=re(t,0,1).getBoundingClientRect();return ra=Math.abs(a.left-s.left)>1}var xn={},hn={};function el(e,t){arguments.length>2&&(t.dependencies=Array.prototype.slice.call(arguments,2)),xn[e]=t}function xi(e,t){hn[e]=t}function To(e){if(typeof e=="string"&&hn.hasOwnProperty(e))e=hn[e];else if(e&&typeof e.name=="string"&&hn.hasOwnProperty(e.name)){var t=hn[e.name];typeof t=="string"&&(t={name:t}),e=en(t,e),e.name=t.name}else{if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return To("application/xml");if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return To("application/json")}return typeof e=="string"?{name:e}:e||{name:"null"}}function fs(e,t){t=To(t);var a=xn[t.name];if(!a)return fs(e,"text/plain");var s=a(e,t);if(Fn.hasOwnProperty(t.name)){var u=Fn[t.name];for(var h in u)!u.hasOwnProperty(h)||(s.hasOwnProperty(h)&&(s["_"+h]=s[h]),s[h]=u[h])}if(s.name=t.name,t.helperType&&(s.helperType=t.helperType),t.modeProps)for(var p in t.modeProps)s[p]=t.modeProps[p];return s}var Fn={};function Wn(e,t){var a=Fn.hasOwnProperty(e)?Fn[e]:Fn[e]={};Qt(t,a)}function pn(e,t){if(t===!0)return t;if(e.copyState)return e.copyState(t);var a={};for(var s in t){var u=t[s];u instanceof Array&&(u=u.concat([])),a[s]=u}return a}function na(e,t){for(var a;e.innerMode&&(a=e.innerMode(t),!(!a||a.mode==e));)t=a.state,e=a.mode;return a||{mode:e,state:t}}function ia(e,t,a){return e.startState?e.startState(t,a):!0}var Ft=function(e,t,a){this.pos=this.start=0,this.string=e,this.tabSize=t||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=a};Ft.prototype.eol=function(){return this.pos>=this.string.length},Ft.prototype.sol=function(){return this.pos==this.lineStart},Ft.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Ft.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},Ft.prototype.eat=function(e){var t=this.string.charAt(this.pos),a;if(typeof e=="string"?a=t==e:a=t&&(e.test?e.test(t):e(t)),a)return++this.pos,t},Ft.prototype.eatWhile=function(e){for(var t=this.pos;this.eat(e););return this.pos>t},Ft.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},Ft.prototype.skipToEnd=function(){this.pos=this.string.length},Ft.prototype.skipTo=function(e){var t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0},Ft.prototype.backUp=function(e){this.pos-=e},Ft.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=Ht(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?Ht(this.string,this.lineStart,this.tabSize):0)},Ft.prototype.indentation=function(){return Ht(this.string,null,this.tabSize)-(this.lineStart?Ht(this.string,this.lineStart,this.tabSize):0)},Ft.prototype.match=function(e,t,a){if(typeof e=="string"){var s=function(p){return a?p.toLowerCase():p},u=this.string.substr(this.pos,e.length);if(s(u)==s(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)}},Ft.prototype.current=function(){return this.string.slice(this.start,this.pos)},Ft.prototype.hideFirstChars=function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}},Ft.prototype.lookAhead=function(e){var t=this.lineOracle;return t&&t.lookAhead(e)},Ft.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 a=e;!a.lines;)for(var s=0;;++s){var u=a.children[s],h=u.chunkSize();if(t<h){a=u;break}t-=h}return a.lines[t]}function vn(e,t,a){var s=[],u=t.line;return e.iter(t.line,a.line+1,function(h){var p=h.text;u==a.line&&(p=p.slice(0,a.ch)),u==t.line&&(p=p.slice(t.ch)),s.push(p),++u}),s}function oa(e,t,a){var s=[];return e.iter(t,a,function(u){s.push(u.text)}),s}function tn(e,t){var a=t-e.height;if(a)for(var s=e;s;s=s.parent)s.height+=a}function wt(e){if(e.parent==null)return null;for(var t=e.parent,a=_e(t.lines,e),s=t.parent;s;t=s,s=s.parent)for(var u=0;s.children[u]!=t;++u)a+=s.children[u].chunkSize();return a+t.first}function Bn(e,t){var a=e.first;e:do{for(var s=0;s<e.children.length;++s){var u=e.children[s],h=u.height;if(t<h){e=u;continue e}t-=h,a+=u.chunkSize()}return a}while(!e.lines);for(var p=0;p<e.lines.length;++p){var m=e.lines[p],b=m.height;if(t<b)break;t-=b}return a+p}function Yi(e,t){return t>=e.first&&t<e.first+e.size}function ds(e,t){return String(e.lineNumberFormatter(t+e.firstLineNumber))}function ne(e,t,a){if(a===void 0&&(a=null),!(this instanceof ne))return new ne(e,t,a);this.line=e,this.ch=t,this.sticky=a}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 ne(e.line,e.ch)}function oe(e,t){return w(e,t)<0?t:e}function Ve(e,t){return w(e,t)<0?e:t}function pt(e,t){return Math.max(e.first,Math.min(t,e.first+e.size-1))}function ge(e,t){if(t.line<e.first)return ne(e.first,0);var a=e.first+e.size-1;return t.line>a?ne(a,Me(e,a).text.length):Or(t,Me(e,t.line).text.length)}function Or(e,t){var a=e.ch;return a==null||a>t?ne(e.line,t):a<0?ne(e.line,0):e}function rn(e,t){for(var a=[],s=0;s<t.length;s++)a[s]=ge(e,t[s]);return a}var _i=function(e,t){this.state=e,this.lookAhead=t},Un=function(e,t,a,s){this.state=t,this.doc=e,this.line=a,this.maxLookAhead=s||0,this.baseTokens=null,this.baseTokenPos=1};Un.prototype.lookAhead=function(e){var t=this.doc.getLine(this.line+e);return t!=null&&e>this.maxLookAhead&&(this.maxLookAhead=e),t},Un.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}},Un.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Un.fromSaved=function(e,t,a){return t instanceof _i?new Un(e,pn(e.mode,t.state),a,t.lookAhead):new Un(e,pn(e.mode,t),a)},Un.prototype.save=function(e){var t=e!==!1?pn(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new _i(t,this.maxLookAhead):t};function B0(e,t,a,s){var u=[e.state.modeGen],h={};mu(e,t.text,e.doc.mode,a,function(C,S){return u.push(C,S)},h,s);for(var p=a.state,m=function(C){a.baseTokens=u;var S=e.state.overlays[C],M=1,$=0;a.state=!0,mu(e,t.text,S.mode,a,function(N,Z){for(var Q=M;$<N;){var ae=u[M];ae>N&&u.splice(M,1,N,u[M+1],ae),M+=2,$=Math.min(N,ae)}if(!!Z)if(S.opaque)u.splice(Q,M-Q,N,"overlay "+Z),M=Q+2;else for(;Q<M;Q+=2){var ce=u[Q+1];u[Q+1]=(ce?ce+" ":"")+"overlay "+Z}},h),a.state=p,a.baseTokens=null,a.baseTokenPos=1},b=0;b<e.state.overlays.length;++b)m(b);return{styles:u,classes:h.bgClass||h.textClass?h:null}}function gu(e,t,a){if(!t.styles||t.styles[0]!=e.state.modeGen){var s=hs(e,wt(t)),u=t.text.length>e.options.maxHighlightLength&&pn(e.doc.mode,s.state),h=B0(e,t,s);u&&(s.state=u),t.stateAfter=s.save(!u),t.styles=h.styles,h.classes?t.styleClasses=h.classes:t.styleClasses&&(t.styleClasses=null),a===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return t.styles}function hs(e,t,a){var s=e.doc,u=e.display;if(!s.mode.startState)return new Un(s,!0,t);var h=Y0(e,t,a),p=h>s.first&&Me(s,h-1).stateAfter,m=p?Un.fromSaved(s,p,h):new Un(s,ia(s.mode),h);return s.iter(h,t,function(b){sa(e,b.text,m);var C=m.line;b.stateAfter=C==t-1||C%5==0||C>=u.viewFrom&&C<u.viewTo?m.save():null,m.nextLine()}),a&&(s.modeFrontier=m.line),m}function sa(e,t,a,s){var u=e.doc.mode,h=new Ft(t,e.options.tabSize,a);for(h.start=h.pos=s||0,t==""&&U0(u,a.state);!h.eol();)tl(u,h,a.state),h.start=h.pos}function U0(e,t){if(e.blankLine)return e.blankLine(t);if(!!e.innerMode){var a=na(e,t);if(a.mode.blankLine)return a.mode.blankLine(a.state)}}function tl(e,t,a,s){for(var u=0;u<10;u++){s&&(s[0]=na(e,a).mode);var h=e.token(t,a);if(t.pos>t.start)return h}throw new Error("Mode "+e.name+" failed to advance stream.")}var rl=function(e,t,a){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=t||null,this.state=a};function nl(e,t,a,s){var u=e.doc,h=u.mode,p;t=ge(u,t);var m=Me(u,t.line),b=hs(e,t.line,a),C=new Ft(m.text,e.options.tabSize,b),S;for(s&&(S=[]);(s||C.pos<t.ch)&&!C.eol();)C.start=C.pos,p=tl(h,C,b.state),s&&S.push(new rl(C,p,pn(u.mode,b.state)));return s?S:new rl(C,p,b.state)}function Po(e,t){if(e)for(;;){var a=e.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!a)break;e=e.slice(0,a.index)+e.slice(a.index+a[0].length);var s=a[1]?"bgClass":"textClass";t[s]==null?t[s]=a[2]:new RegExp("(?:^|\\s)"+a[2]+"(?:$|\\s)").test(t[s])||(t[s]+=" "+a[2])}return e}function mu(e,t,a,s,u,h,p){var m=a.flattenSpans;m==null&&(m=e.options.flattenSpans);var b=0,C=null,S=new Ft(t,e.options.tabSize,s),M,$=e.options.addModeClass&&[null];for(t==""&&Po(U0(a,s.state),h);!S.eol();){if(S.pos>e.options.maxHighlightLength?(m=!1,p&&sa(e,t,s,S.pos),S.pos=t.length,M=null):M=Po(tl(a,S,s.state,$),h),$){var N=$[0].name;N&&(M="m-"+(M?N+" "+M:N))}if(!m||C!=M){for(;b<S.start;)b=Math.min(S.start,b+5e3),u(b,C);C=M}S.start=S.pos}for(;b<S.pos;){var Z=Math.min(S.pos,b+5e3);u(Z,C),b=Z}}function Y0(e,t,a){for(var s,u,h=e.doc,p=a?-1:t-(e.doc.mode.innerMode?1e3:100),m=t;m>p;--m){if(m<=h.first)return h.first;var b=Me(h,m-1),C=b.stateAfter;if(C&&(!a||m+(C instanceof _i?C.lookAhead:0)<=h.modeFrontier))return m;var S=Ht(b.text,null,e.options.tabSize);(u==null||s>S)&&(u=m-1,s=S)}return u}function tf(e,t){if(e.modeFrontier=Math.min(e.modeFrontier,t),!(e.highlightFrontier<t-10)){for(var a=e.first,s=t-1;s>a;s--){var u=Me(e,s).stateAfter;if(u&&(!(u instanceof _i)||s+u.lookAhead<t)){a=s+1;break}}e.highlightFrontier=Math.min(e.highlightFrontier,a)}}var yu=!1,ni=!1;function Z0(){yu=!0}function V0(){ni=!0}function il(e,t,a){this.marker=e,this.from=t,this.to=a}function aa(e,t){if(e)for(var a=0;a<e.length;++a){var s=e[a];if(s.marker==t)return s}}function rf(e,t){for(var a,s=0;s<e.length;++s)e[s]!=t&&(a||(a=[])).push(e[s]);return a}function G0(e,t,a){var s=a&&window.WeakSet&&(a.markedSpans||(a.markedSpans=new WeakSet));s&&s.has(e.markedSpans)?e.markedSpans.push(t):(e.markedSpans=e.markedSpans?e.markedSpans.concat([t]):[t],s&&s.add(e.markedSpans)),t.marker.attachLine(e)}function nf(e,t,a){var s;if(e)for(var u=0;u<e.length;++u){var h=e[u],p=h.marker,m=h.from==null||(p.inclusiveLeft?h.from<=t:h.from<t);if(m||h.from==t&&p.type=="bookmark"&&(!a||!h.marker.insertLeft)){var b=h.to==null||(p.inclusiveRight?h.to>=t:h.to>t);(s||(s=[])).push(new il(p,h.from,b?null:h.to))}}return s}function of(e,t,a){var s;if(e)for(var u=0;u<e.length;++u){var h=e[u],p=h.marker,m=h.to==null||(p.inclusiveRight?h.to>=t:h.to>t);if(m||h.from==t&&p.type=="bookmark"&&(!a||h.marker.insertLeft)){var b=h.from==null||(p.inclusiveLeft?h.from<=t:h.from<t);(s||(s=[])).push(new il(p,b?null:h.from-t,h.to==null?null:h.to-t))}}return s}function bu(e,t){if(t.full)return null;var a=Yi(e,t.from.line)&&Me(e,t.from.line).markedSpans,s=Yi(e,t.to.line)&&Me(e,t.to.line).markedSpans;if(!a&&!s)return null;var u=t.from.ch,h=t.to.ch,p=w(t.from,t.to)==0,m=nf(a,u,p),b=of(s,h,p),C=t.text.length==1,S=je(t.text).length+(C?u:0);if(m)for(var M=0;M<m.length;++M){var $=m[M];if($.to==null){var N=aa(b,$.marker);N?C&&($.to=N.to==null?null:N.to+S):$.to=u}}if(b)for(var Z=0;Z<b.length;++Z){var Q=b[Z];if(Q.to!=null&&(Q.to+=S),Q.from==null){var ae=aa(m,Q.marker);ae||(Q.from=S,C&&(m||(m=[])).push(Q))}else Q.from+=S,C&&(m||(m=[])).push(Q)}m&&(m=q0(m)),b&&b!=m&&(b=q0(b));var ce=[m];if(!C){var be=t.text.length-2,fe;if(be>0&&m)for(var we=0;we<m.length;++we)m[we].to==null&&(fe||(fe=[])).push(new il(m[we].marker,null,null));for(var Ie=0;Ie<be;++Ie)ce.push(fe);ce.push(b)}return ce}function q0(e){for(var t=0;t<e.length;++t){var a=e[t];a.from!=null&&a.from==a.to&&a.marker.clearWhenEmpty!==!1&&e.splice(t--,1)}return e.length?e:null}function Cu(e,t,a){var s=null;if(e.iter(t.line,a.line+1,function(N){if(N.markedSpans)for(var Z=0;Z<N.markedSpans.length;++Z){var Q=N.markedSpans[Z].marker;Q.readOnly&&(!s||_e(s,Q)==-1)&&(s||(s=[])).push(Q)}}),!s)return null;for(var u=[{from:t,to:a}],h=0;h<s.length;++h)for(var p=s[h],m=p.find(0),b=0;b<u.length;++b){var C=u[b];if(!(w(C.to,m.from)<0||w(C.from,m.to)>0)){var S=[b,1],M=w(C.from,m.from),$=w(C.to,m.to);(M<0||!p.inclusiveLeft&&!M)&&S.push({from:C.from,to:m.from}),($>0||!p.inclusiveRight&&!$)&&S.push({from:m.to,to:C.to}),u.splice.apply(u,S),b+=S.length-3}}return u}function j0(e){var t=e.markedSpans;if(!!t){for(var a=0;a<t.length;++a)t[a].marker.detachLine(e);e.markedSpans=null}}function K0(e,t){if(!!t){for(var a=0;a<t.length;++a)t[a].marker.attachLine(e);e.markedSpans=t}}function ol(e){return e.inclusiveLeft?-1:0}function sl(e){return e.inclusiveRight?1:0}function wu(e,t){var a=e.lines.length-t.lines.length;if(a!=0)return a;var s=e.find(),u=t.find(),h=w(s.from,u.from)||ol(e)-ol(t);if(h)return-h;var p=w(s.to,u.to)||sl(e)-sl(t);return p||t.id-e.id}function Wt(e,t){var a=ni&&e.markedSpans,s;if(a)for(var u=void 0,h=0;h<a.length;++h)u=a[h],u.marker.collapsed&&(t?u.from:u.to)==null&&(!s||wu(s,u.marker)<0)&&(s=u.marker);return s}function Nt(e){return Wt(e,!0)}function al(e){return Wt(e,!1)}function sf(e,t){var a=ni&&e.markedSpans,s;if(a)for(var u=0;u<a.length;++u){var h=a[u];h.marker.collapsed&&(h.from==null||h.from<t)&&(h.to==null||h.to>t)&&(!s||wu(s,h.marker)<0)&&(s=h.marker)}return s}function X0(e,t,a,s,u){var h=Me(e,t),p=ni&&h.markedSpans;if(p)for(var m=0;m<p.length;++m){var b=p[m];if(!!b.marker.collapsed){var C=b.marker.find(0),S=w(C.from,a)||ol(b.marker)-ol(u),M=w(C.to,s)||sl(b.marker)-sl(u);if(!(S>=0&&M<=0||S<=0&&M>=0)&&(S<=0&&(b.marker.inclusiveRight&&u.inclusiveLeft?w(C.to,a)>=0:w(C.to,a)>0)||S>=0&&(b.marker.inclusiveRight&&u.inclusiveLeft?w(C.from,s)<=0:w(C.from,s)<0)))return!0}}}function ii(e){for(var t;t=Nt(e);)e=t.find(-1,!0).line;return e}function af(e){for(var t;t=al(e);)e=t.find(1,!0).line;return e}function lf(e){for(var t,a;t=al(e);)e=t.find(1,!0).line,(a||(a=[])).push(e);return a}function ll(e,t){var a=Me(e,t),s=ii(a);return a==s?t:wt(s)}function Q0(e,t){if(t>e.lastLine())return t;var a=Me(e,t),s;if(!Vt(e,a))return t;for(;s=al(a);)a=s.find(1,!0).line;return wt(a)+1}function Vt(e,t){var a=ni&&t.markedSpans;if(a){for(var s=void 0,u=0;u<a.length;++u)if(s=a[u],!!s.marker.collapsed){if(s.from==null)return!0;if(!s.marker.widgetNode&&s.from==0&&s.marker.inclusiveLeft&&la(e,t,s))return!0}}}function la(e,t,a){if(a.to==null){var s=a.marker.find(1,!0);return la(e,s.line,aa(s.line.markedSpans,a.marker))}if(a.marker.inclusiveRight&&a.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==a.to&&(u.to==null||u.to!=a.from)&&(u.marker.inclusiveLeft||a.marker.inclusiveRight)&&la(e,t,u))return!0}function Kr(e){e=ii(e);for(var t=0,a=e.parent,s=0;s<a.lines.length;++s){var u=a.lines[s];if(u==e)break;t+=u.height}for(var h=a.parent;h;a=h,h=a.parent)for(var p=0;p<h.children.length;++p){var m=h.children[p];if(m==a)break;t+=m.height}return t}function ua(e){if(e.height==0)return 0;for(var t=e.text.length,a,s=e;a=Nt(s);){var u=a.find(0,!0);s=u.from.line,t+=u.from.ch-u.to.ch}for(s=e;a=al(s);){var h=a.find(0,!0);t-=s.text.length-h.from.ch,s=h.to.line,t+=s.text.length-h.to.ch}return t}function ca(e){var t=e.display,a=e.doc;t.maxLine=Me(a,a.first),t.maxLineLength=ua(t.maxLine),t.maxLineChanged=!0,a.iter(function(s){var u=ua(s);u>t.maxLineLength&&(t.maxLineLength=u,t.maxLine=s)})}var Tr=function(e,t,a){this.text=e,K0(this,t),this.height=a?a(this):1};Tr.prototype.lineNo=function(){return wt(this)},Hn(Tr);function J0(e,t,a,s){e.text=t,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),e.order!=null&&(e.order=null),j0(e),K0(e,a);var u=s?s(e):1;u!=e.height&&tn(e,u)}function e1(e){e.parent=null,j0(e)}var t1={},r1={};function xu(e,t){if(!e||/^\s*$/.test(e))return null;var a=t.addModeClass?r1:t1;return a[e]||(a[e]=e.replace(/\S+/g,"cm-$&"))}function _u(e,t){var a=T("span",null,null,I?"padding-right: .1px":null),s={pre:T("pre",[a],"CodeMirror-line"),content:a,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:e.getOption("lineWrapping")};t.measure={};for(var u=0;u<=(t.rest?t.rest.length:0);u++){var h=u?t.rest[u-1]:t.line,p=void 0;s.pos=0,s.addToken=uf,ri(e.display.measure)&&(p=Rr(h,e.doc.direction))&&(s.addToken=cf(s.addToken,p)),s.map=[];var m=t!=e.display.externalMeasured&&wt(h);Zi(h,s,gu(e,h,m)),h.styleClasses&&(h.styleClasses.bgClass&&(s.bgClass=or(h.styleClasses.bgClass,s.bgClass||"")),h.styleClasses.textClass&&(s.textClass=or(h.styleClasses.textClass,s.textClass||""))),s.map.length==0&&s.map.push(0,0,s.content.appendChild(Xa(e.display.measure))),u==0?(t.measure.map=s.map,t.measure.cache={}):((t.measure.maps||(t.measure.maps=[])).push(s.map),(t.measure.caches||(t.measure.caches=[])).push({}))}if(I){var b=s.content.lastChild;(/\bcm-tab\b/.test(b.className)||b.querySelector&&b.querySelector(".cm-tab"))&&(s.content.className="cm-tab-wrap-hack")}return Ze(e,"renderLine",e,t.line,s.pre),s.pre.className&&(s.textClass=or(s.pre.className,s.textClass||"")),s}function gn(e){var t=D("span","\u2022","cm-invalidchar");return t.title="\\u"+e.charCodeAt(0).toString(16),t.setAttribute("aria-label",t.title),t}function uf(e,t,a,s,u,h,p){if(!!t){var m=e.splitSpaces?_n(t,e.trailingSpace):t,b=e.cm.state.specialChars,C=!1,S;if(!b.test(t))e.col+=t.length,S=document.createTextNode(m),e.map.push(e.pos,e.pos+t.length,S),k&&O<9&&(C=!0),e.pos+=t.length;else{S=document.createDocumentFragment();for(var M=0;;){b.lastIndex=M;var $=b.exec(t),N=$?$.index-M:t.length-M;if(N){var Z=document.createTextNode(m.slice(M,M+N));k&&O<9?S.appendChild(D("span",[Z])):S.appendChild(Z),e.map.push(e.pos,e.pos+N,Z),e.col+=N,e.pos+=N}if(!$)break;M+=N+1;var Q=void 0;if($[0]==" "){var ae=e.cm.options.tabSize,ce=ae-e.col%ae;Q=S.appendChild(D("span",sr(ce),"cm-tab")),Q.setAttribute("role","presentation"),Q.setAttribute("cm-text"," "),e.col+=ce}else $[0]=="\r"||$[0]==`
2098
+ `?(Q=S.appendChild(D("span",$[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),Q.setAttribute("cm-text",$[0]),e.col+=1):(Q=e.cm.options.specialCharPlaceholder($[0]),Q.setAttribute("cm-text",$[0]),k&&O<9?S.appendChild(D("span",[Q])):S.appendChild(Q),e.col+=1);e.map.push(e.pos,e.pos+1,Q),e.pos++}}if(e.trailingSpace=m.charCodeAt(t.length-1)==32,a||s||u||C||h||p){var be=a||"";s&&(be+=s),u&&(be+=u);var fe=D("span",[S],be,h);if(p)for(var we in p)p.hasOwnProperty(we)&&we!="style"&&we!="class"&&fe.setAttribute(we,p[we]);return e.content.appendChild(fe)}e.content.appendChild(S)}}function _n(e,t){if(e.length>1&&!/ /.test(e))return e;for(var a=t,s="",u=0;u<e.length;u++){var h=e.charAt(u);h==" "&&a&&(u==e.length-1||e.charCodeAt(u+1)==32)&&(h="\xA0"),s+=h,a=h==" "}return s}function cf(e,t){return function(a,s,u,h,p,m,b){u=u?u+" cm-force-border":"cm-force-border";for(var C=a.pos,S=C+s.length;;){for(var M=void 0,$=0;$<t.length&&(M=t[$],!(M.to>C&&M.from<=C));$++);if(M.to>=S)return e(a,s,u,h,p,m,b);e(a,s.slice(0,M.to-C),u,h,null,m,b),h=null,s=s.slice(M.to-C),C=M.to}}}function Lu(e,t,a,s){var u=!s&&a.widgetNode;u&&e.map.push(e.pos,e.pos+t,u),!s&&e.cm.display.input.needsContentAttribute&&(u||(u=e.content.appendChild(document.createElement("span"))),u.setAttribute("cm-marker",a.id)),u&&(e.cm.display.input.setUneditable(u),e.content.appendChild(u)),e.pos+=t,e.trailingSpace=!1}function Zi(e,t,a){var s=e.markedSpans,u=e.text,h=0;if(!s){for(var p=1;p<a.length;p+=2)t.addToken(t,u.slice(h,h=a[p]),xu(a[p+1],t.cm.options));return}for(var m=u.length,b=0,C=1,S="",M,$,N=0,Z,Q,ae,ce,be;;){if(N==b){Z=Q=ae=$="",be=null,ce=null,N=1/0;for(var fe=[],we=void 0,Ie=0;Ie<s.length;++Ie){var Pe=s[Ie],st=Pe.marker;if(st.type=="bookmark"&&Pe.from==b&&st.widgetNode)fe.push(st);else if(Pe.from<=b&&(Pe.to==null||Pe.to>b||st.collapsed&&Pe.to==b&&Pe.from==b)){if(Pe.to!=null&&Pe.to!=b&&N>Pe.to&&(N=Pe.to,Q=""),st.className&&(Z+=" "+st.className),st.css&&($=($?$+";":"")+st.css),st.startStyle&&Pe.from==b&&(ae+=" "+st.startStyle),st.endStyle&&Pe.to==N&&(we||(we=[])).push(st.endStyle,Pe.to),st.title&&((be||(be={})).title=st.title),st.attributes)for(var Mt in st.attributes)(be||(be={}))[Mt]=st.attributes[Mt];st.collapsed&&(!ce||wu(ce.marker,st)<0)&&(ce=Pe)}else Pe.from>b&&N>Pe.from&&(N=Pe.from)}if(we)for(var ar=0;ar<we.length;ar+=2)we[ar+1]==N&&(Q+=" "+we[ar]);if(!ce||ce.from==b)for(var It=0;It<fe.length;++It)Lu(t,0,fe[It]);if(ce&&(ce.from||0)==b){if(Lu(t,(ce.to==null?m+1:ce.to)-b,ce.marker,ce.from==null),ce.to==null)return;ce.to==b&&(ce=!1)}}if(b>=m)break;for(var Br=Math.min(m,N);;){if(S){var Ur=b+S.length;if(!ce){var er=Ur>Br?S.slice(0,Br-b):S;t.addToken(t,er,M?M+Z:Z,ae,b+er.length==N?Q:"",$,be)}if(Ur>=Br){S=S.slice(Br-b),b=Br;break}b=Ur,ae=""}S=u.slice(h,h=a[C++]),M=xu(a[C++],t.cm.options)}}}function fa(e,t,a){this.line=t,this.rest=lf(t),this.size=this.rest?wt(je(this.rest))-a+1:1,this.node=this.text=null,this.hidden=Vt(e,t)}function ps(e,t,a){for(var s=[],u,h=t;h<a;h=u){var p=new fa(e.doc,Me(e.doc,h),h);u=h+p.size,s.push(p)}return s}var Et=null;function Vi(e){Et?Et.ops.push(e):e.ownsGroup=Et={ops:[e],delayedCallbacks:[]}}function Su(e){var t=e.delayedCallbacks,a=0;do{for(;a<t.length;a++)t[a].call(null);for(var s=0;s<e.ops.length;s++){var u=e.ops[s];if(u.cursorActivityHandlers)for(;u.cursorActivityCalled<u.cursorActivityHandlers.length;)u.cursorActivityHandlers[u.cursorActivityCalled++].call(null,u.cm)}}while(a<t.length)}function ff(e,t){var a=e.ownsGroup;if(!!a)try{Su(a)}finally{Et=null,t(a)}}var Eo=null;function fr(e,t){var a=Wi(e,t);if(!!a.length){var s=Array.prototype.slice.call(arguments,2),u;Et?u=Et.delayedCallbacks:Eo?u=Eo:(u=Eo=[],setTimeout(df,0));for(var h=function(m){u.push(function(){return a[m].apply(null,s)})},p=0;p<a.length;++p)h(p)}}function df(){var e=Eo;Eo=null;for(var t=0;t<e.length;++t)e[t]()}function n1(e,t,a,s){for(var u=0;u<t.changes.length;u++){var h=t.changes[u];h=="text"?hf(e,t):h=="gutter"?ku(e,t,a,s):h=="class"?cl(e,t):h=="widget"&&Mu(e,t,s)}t.changes=null}function vs(e){return e.node==e.text&&(e.node=D("div",null,null,"position: relative"),e.text.parentNode&&e.text.parentNode.replaceChild(e.node,e.text),e.node.appendChild(e.text),k&&O<8&&(e.node.style.zIndex=2)),e.node}function ul(e,t){var a=t.bgClass?t.bgClass+" "+(t.line.bgClass||""):t.line.bgClass;if(a&&(a+=" CodeMirror-linebackground"),t.background)a?t.background.className=a:(t.background.parentNode.removeChild(t.background),t.background=null);else if(a){var s=vs(t);t.background=s.insertBefore(D("div",null,a),s.firstChild),e.display.input.setUneditable(t.background)}}function Ao(e,t){var a=e.display.externalMeasured;return a&&a.line==t.line?(e.display.externalMeasured=null,t.measure=a.measure,a.built):_u(e,t)}function hf(e,t){var a=t.text.className,s=Ao(e,t);t.text==t.node&&(t.node=s.pre),t.text.parentNode.replaceChild(s.pre,t.text),t.text=s.pre,s.bgClass!=t.bgClass||s.textClass!=t.textClass?(t.bgClass=s.bgClass,t.textClass=s.textClass,cl(e,t)):a&&(t.text.className=a)}function cl(e,t){ul(e,t),t.line.wrapClass?vs(t).className=t.line.wrapClass:t.node!=t.text&&(t.node.className="");var a=t.textClass?t.textClass+" "+(t.line.textClass||""):t.line.textClass;t.text.className=a||""}function ku(e,t,a,s){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=vs(t);t.gutterBackground=D("div",null,"CodeMirror-gutter-background "+t.line.gutterClass,"left: "+(e.options.fixedGutter?s.fixedPos:-s.gutterTotalWidth)+"px; width: "+s.gutterTotalWidth+"px"),e.display.input.setUneditable(t.gutterBackground),u.insertBefore(t.gutterBackground,t.text)}var h=t.line.gutterMarkers;if(e.options.lineNumbers||h){var p=vs(t),m=t.gutter=D("div",null,"CodeMirror-gutter-wrapper","left: "+(e.options.fixedGutter?s.fixedPos:-s.gutterTotalWidth)+"px");if(m.setAttribute("aria-hidden","true"),e.display.input.setUneditable(m),p.insertBefore(m,t.text),t.line.gutterClass&&(m.className+=" "+t.line.gutterClass),e.options.lineNumbers&&(!h||!h["CodeMirror-linenumbers"])&&(t.lineNumber=m.appendChild(D("div",ds(e.options,a),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+s.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+e.display.lineNumInnerWidth+"px"))),h)for(var b=0;b<e.display.gutterSpecs.length;++b){var C=e.display.gutterSpecs[b].className,S=h.hasOwnProperty(C)&&h[C];S&&m.appendChild(D("div",[S],"CodeMirror-gutter-elt","left: "+s.gutterLeft[C]+"px; width: "+s.gutterWidth[C]+"px"))}}}function Mu(e,t,a){t.alignable&&(t.alignable=null);for(var s=pe("CodeMirror-linewidget"),u=t.node.firstChild,h=void 0;u;u=h)h=u.nextSibling,s.test(u.className)&&t.node.removeChild(u);Tu(e,t,a)}function Ou(e,t,a,s){var u=Ao(e,t);return t.text=t.node=u.pre,u.bgClass&&(t.bgClass=u.bgClass),u.textClass&&(t.textClass=u.textClass),cl(e,t),ku(e,t,a,s),Tu(e,t,s),t.node}function Tu(e,t,a){if(i1(e,t.line,t,a,!0),t.rest)for(var s=0;s<t.rest.length;s++)i1(e,t.rest[s],t,a,!1)}function i1(e,t,a,s,u){if(!!t.widgets)for(var h=vs(a),p=0,m=t.widgets;p<m.length;++p){var b=m[p],C=D("div",[b.node],"CodeMirror-linewidget"+(b.className?" "+b.className:""));b.handleMouseEvents||C.setAttribute("cm-ignore-events","true"),Pu(b,C,a,s),e.display.input.setUneditable(C),u&&b.above?h.insertBefore(C,a.gutter||a.text):h.appendChild(C),fr(b,"redraw")}}function Pu(e,t,a,s){if(e.noHScroll){(a.alignable||(a.alignable=[])).push(t);var u=s.wrapperWidth;t.style.left=s.fixedPos+"px",e.coverGutter||(u-=s.gutterTotalWidth,t.style.paddingLeft=s.gutterTotalWidth+"px"),t.style.width=u+"px"}e.coverGutter&&(t.style.zIndex=5,t.style.position="relative",e.noHScroll||(t.style.marginLeft=-s.gutterTotalWidth+"px"))}function Do(e){if(e.height!=null)return e.height;var t=e.doc.cm;if(!t)return 0;if(!ve(document.body,e.node)){var a="position: relative;";e.coverGutter&&(a+="margin-left: -"+t.display.gutters.offsetWidth+"px;"),e.noHScroll&&(a+="width: "+t.display.wrapper.clientWidth+"px;"),B(t.display.measure,D("div",[e.node],null,a))}return e.height=e.node.parentNode.offsetHeight}function Li(e,t){for(var a=Bi(t);a!=e.wrapper;a=a.parentNode)if(!a||a.nodeType==1&&a.getAttribute("cm-ignore-events")=="true"||a.parentNode==e.sizer&&a!=e.mover)return!0}function da(e){return e.lineSpace.offsetTop}function Xr(e){return e.mover.offsetHeight-e.lineSpace.offsetHeight}function fl(e){if(e.cachedPaddingH)return e.cachedPaddingH;var t=B(e.measure,D("pre","x","CodeMirror-line-like")),a=window.getComputedStyle?window.getComputedStyle(t):t.currentStyle,s={left:parseInt(a.paddingLeft),right:parseInt(a.paddingRight)};return!isNaN(s.left)&&!isNaN(s.right)&&(e.cachedPaddingH=s),s}function nn(e){return He-e.display.nativeBarWidth}function Gi(e){return e.display.scroller.clientWidth-nn(e)-e.display.barWidth}function dl(e){return e.display.scroller.clientHeight-nn(e)-e.display.barHeight}function pf(e,t,a){var s=e.options.lineWrapping,u=s&&Gi(e);if(!t.measure.heights||s&&t.measure.width!=u){var h=t.measure.heights=[];if(s){t.measure.width=u;for(var p=t.text.firstChild.getClientRects(),m=0;m<p.length-1;m++){var b=p[m],C=p[m+1];Math.abs(b.bottom-C.bottom)>2&&h.push((b.bottom+C.top)/2-a.top)}}h.push(a.bottom-a.top)}}function o1(e,t,a){if(e.line==t)return{map:e.measure.map,cache:e.measure.cache};for(var s=0;s<e.rest.length;s++)if(e.rest[s]==t)return{map:e.measure.maps[s],cache:e.measure.caches[s]};for(var u=0;u<e.rest.length;u++)if(wt(e.rest[u])>a)return{map:e.measure.maps[u],cache:e.measure.caches[u],before:!0}}function vf(e,t){t=ii(t);var a=wt(t),s=e.display.externalMeasured=new fa(e.doc,t,a);s.lineN=a;var u=s.built=_u(e,s);return s.text=u.pre,B(e.display.lineMeasure,u.pre),s}function s1(e,t,a,s){return oi(e,Yn(e,t),a,s)}function Eu(e,t){if(t>=e.display.viewFrom&&t<e.display.viewTo)return e.display.view[ai(e,t)];var a=e.display.externalMeasured;if(a&&t>=a.lineN&&t<a.lineN+a.size)return a}function Yn(e,t){var a=wt(t),s=Eu(e,a);s&&!s.text?s=null:s&&s.changes&&(n1(e,s,a,on(e)),e.curOp.forceUpdate=!0),s||(s=vf(e,t));var u=o1(s,t,a);return{line:t,view:s,rect:null,map:u.map,cache:u.cache,before:u.before,hasHeights:!1}}function oi(e,t,a,s,u){t.before&&(a=-1);var h=a+(s||""),p;return t.cache.hasOwnProperty(h)?p=t.cache[h]:(t.rect||(t.rect=t.view.text.getBoundingClientRect()),t.hasHeights||(pf(e,t.view,t.rect),t.hasHeights=!0),p=qi(e,t,a,s),p.bogus||(t.cache[h]=p)),{left:p.left,right:p.right,top:u?p.rtop:p.top,bottom:u?p.rbottom:p.bottom}}var a1={left:0,right:0,top:0,bottom:0};function hl(e,t,a){for(var s,u,h,p,m,b,C=0;C<e.length;C+=3)if(m=e[C],b=e[C+1],t<m?(u=0,h=1,p="left"):t<b?(u=t-m,h=u+1):(C==e.length-3||t==b&&e[C+3]>t)&&(h=b-m,u=h-1,t>=b&&(p="right")),u!=null){if(s=e[C+2],m==b&&a==(s.insertLeft?"left":"right")&&(p=a),a=="left"&&u==0)for(;C&&e[C-2]==e[C-3]&&e[C-1].insertLeft;)s=e[(C-=3)+2],p="left";if(a=="right"&&u==b-m)for(;C<e.length-3&&e[C+3]==e[C+4]&&!e[C+5].insertLeft;)s=e[(C+=3)+2],p="right";break}return{node:s,start:u,end:h,collapse:p,coverStart:m,coverEnd:b}}function l1(e,t){var a=a1;if(t=="left")for(var s=0;s<e.length&&(a=e[s]).left==a.right;s++);else for(var u=e.length-1;u>=0&&(a=e[u]).left==a.right;u--);return a}function qi(e,t,a,s){var u=hl(t.map,a,s),h=u.node,p=u.start,m=u.end,b=u.collapse,C;if(h.nodeType==3){for(var S=0;S<4;S++){for(;p&&Ke(t.line.text.charAt(u.coverStart+p));)--p;for(;u.coverStart+m<u.coverEnd&&Ke(t.line.text.charAt(u.coverStart+m));)++m;if(k&&O<9&&p==0&&m==u.coverEnd-u.coverStart?C=h.parentNode.getBoundingClientRect():C=l1(re(h,p,m).getClientRects(),s),C.left||C.right||p==0)break;m=p,p=p-1,b="right"}k&&O<11&&(C=pl(e.display.measure,C))}else{p>0&&(b=s="right");var M;e.options.lineWrapping&&(M=h.getClientRects()).length>1?C=M[s=="right"?M.length-1:0]:C=h.getBoundingClientRect()}if(k&&O<9&&!p&&(!C||!C.left&&!C.right)){var $=h.parentNode.getClientRects()[0];$?C={left:$.left,right:$.left+gs(e.display),top:$.top,bottom:$.bottom}:C=a1}for(var N=C.top-t.rect.top,Z=C.bottom-t.rect.top,Q=(N+Z)/2,ae=t.view.measure.heights,ce=0;ce<ae.length-1&&!(Q<ae[ce]);ce++);var be=ce?ae[ce-1]:0,fe=ae[ce],we={left:(b=="right"?C.right:C.left)-t.rect.left,right:(b=="left"?C.left:C.right)-t.rect.left,top:be,bottom:fe};return!C.left&&!C.right&&(we.bogus=!0),e.options.singleCursorHeightPerLine||(we.rtop=N,we.rbottom=Z),we}function pl(e,t){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!Ui(e))return t;var a=screen.logicalXDPI/screen.deviceXDPI,s=screen.logicalYDPI/screen.deviceYDPI;return{left:t.left*a,right:t.right*a,top:t.top*s,bottom:t.bottom*s}}function u1(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 c1(e){e.display.externalMeasure=null,rt(e.display.lineMeasure);for(var t=0;t<e.display.view.length;t++)u1(e.display.view[t])}function ha(e){c1(e),e.display.cachedCharWidth=e.display.cachedTextHeight=e.display.cachedPaddingH=null,e.options.lineWrapping||(e.display.maxLineChanged=!0),e.display.lineNumChars=null}function Io(){return q&&Ae?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function Ln(){return q&&Ae?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function vl(e){var t=0;if(e.widgets)for(var a=0;a<e.widgets.length;++a)e.widgets[a].above&&(t+=Do(e.widgets[a]));return t}function gl(e,t,a,s,u){if(!u){var h=vl(t);a.top+=h,a.bottom+=h}if(s=="line")return a;s||(s="local");var p=Kr(t);if(s=="local"?p+=da(e.display):p-=e.display.viewOffset,s=="page"||s=="window"){var m=e.display.lineSpace.getBoundingClientRect();p+=m.top+(s=="window"?0:Ln());var b=m.left+(s=="window"?0:Io());a.left+=b,a.right+=b}return a.top+=p,a.bottom+=p,a}function f1(e,t,a){if(a=="div")return t;var s=t.left,u=t.top;if(a=="page")s-=Io(),u-=Ln();else if(a=="local"||!a){var h=e.display.sizer.getBoundingClientRect();s+=h.left,u+=h.top}var p=e.display.lineSpace.getBoundingClientRect();return{left:s-p.left,top:u-p.top}}function ml(e,t,a,s,u){return s||(s=Me(e.doc,t.line)),gl(e,s,s1(e,s,t.ch,u),a)}function Zn(e,t,a,s,u,h){s=s||Me(e.doc,t.line),u||(u=Yn(e,s));function p(Z,Q){var ae=oi(e,u,Z,Q?"right":"left",h);return Q?ae.left=ae.right:ae.right=ae.left,gl(e,s,ae,a)}var m=Rr(s,e.doc.direction),b=t.ch,C=t.sticky;if(b>=s.text.length?(b=s.text.length,C="before"):b<=0&&(b=0,C="after"),!m)return p(C=="before"?b-1:b,C=="before");function S(Z,Q,ae){var ce=m[Q],be=ce.level==1;return p(ae?Z-1:Z,be!=ae)}var M=Ut(m,b,C),$=qr,N=S(b,M,C=="before");return $!=null&&(N.other=S(b,$,C!="before")),N}function d1(e,t){var a=0;t=ge(e.doc,t),e.options.lineWrapping||(a=gs(e.display)*t.ch);var s=Me(e.doc,t.line),u=Kr(s)+da(e.display);return{left:a,right:a,top:u,bottom:u+s.height}}function ji(e,t,a,s,u){var h=ne(e,t,a);return h.xRel=u,s&&(h.outside=s),h}function R(e,t,a){var s=e.doc;if(a+=e.display.viewOffset,a<0)return ji(s.first,0,null,-1,-1);var u=Bn(s,a),h=s.first+s.size-1;if(u>h)return ji(s.first+s.size-1,Me(s,h).text.length,null,1,1);t<0&&(t=0);for(var p=Me(s,u);;){var m=Xe(e,p,u,t,a),b=sf(p,m.ch+(m.xRel>0||m.outside>0?1:0));if(!b)return m;var C=b.find(1);if(C.line==u)return C;p=Me(s,u=C.line)}}function K(e,t,a,s){s-=vl(t);var u=t.text.length,h=kr(function(p){return oi(e,a,p-1).bottom<=s},u,0);return u=kr(function(p){return oi(e,a,p).top>s},h,u),{begin:h,end:u}}function Y(e,t,a,s){a||(a=Yn(e,t));var u=gl(e,t,oi(e,a,s),"line").top;return K(e,t,a,u)}function Se(e,t,a,s){return e.bottom<=a?!1:e.top>a?!0:(s?e.left:e.right)>t}function Xe(e,t,a,s,u){u-=Kr(t);var h=Yn(e,t),p=vl(t),m=0,b=t.text.length,C=!0,S=Rr(t,e.doc.direction);if(S){var M=(e.options.lineWrapping?dr:St)(e,t,a,h,S,s,u);C=M.level!=1,m=C?M.from:M.to-1,b=C?M.to:M.from-1}var $=null,N=null,Z=kr(function(Ie){var Pe=oi(e,h,Ie);return Pe.top+=p,Pe.bottom+=p,Se(Pe,s,u,!1)?(Pe.top<=u&&Pe.left<=s&&($=Ie,N=Pe),!0):!1},m,b),Q,ae,ce=!1;if(N){var be=s-N.left<N.right-s,fe=be==C;Z=$+(fe?0:1),ae=fe?"after":"before",Q=be?N.left:N.right}else{!C&&(Z==b||Z==m)&&Z++,ae=Z==0?"after":Z==t.text.length?"before":oi(e,h,Z-(C?1:0)).bottom+p<=u==C?"after":"before";var we=Zn(e,ne(a,Z,ae),"line",t,h);Q=we.left,ce=u<we.top?-1:u>=we.bottom?1:0}return Z=cr(t.text,Z,1),ji(a,Z,ae,ce,s-Q)}function St(e,t,a,s,u,h,p){var m=kr(function(M){var $=u[M],N=$.level!=1;return Se(Zn(e,ne(a,N?$.to:$.from,N?"before":"after"),"line",t,s),h,p,!0)},0,u.length-1),b=u[m];if(m>0){var C=b.level!=1,S=Zn(e,ne(a,C?b.from:b.to,C?"after":"before"),"line",t,s);Se(S,h,p,!0)&&S.top>p&&(b=u[m-1])}return b}function dr(e,t,a,s,u,h,p){var m=K(e,t,s,p),b=m.begin,C=m.end;/\s/.test(t.text.charAt(C-1))&&C--;for(var S=null,M=null,$=0;$<u.length;$++){var N=u[$];if(!(N.from>=C||N.to<=b)){var Z=N.level!=1,Q=oi(e,s,Z?Math.min(C,N.to)-1:Math.max(b,N.from)).right,ae=Q<h?h-Q+1e9:Q-h;(!S||M>ae)&&(S=N,M=ae)}}return S||(S=u[u.length-1]),S.from<b&&(S={from:b,to:S.to,level:S.level}),S.to>C&&(S={from:S.from,to:C,level:S.level}),S}var bt;function Ki(e){if(e.cachedTextHeight!=null)return e.cachedTextHeight;if(bt==null){bt=D("pre",null,"CodeMirror-line-like");for(var t=0;t<49;++t)bt.appendChild(document.createTextNode("x")),bt.appendChild(D("br"));bt.appendChild(document.createTextNode("x"))}B(e.measure,bt);var a=bt.offsetHeight/50;return a>3&&(e.cachedTextHeight=a),rt(e.measure),a||1}function gs(e){if(e.cachedCharWidth!=null)return e.cachedCharWidth;var t=D("span","xxxxxxxxxx"),a=D("pre",[t],"CodeMirror-line-like");B(e.measure,a);var s=t.getBoundingClientRect(),u=(s.right-s.left)/10;return u>2&&(e.cachedCharWidth=u),u||10}function on(e){for(var t=e.display,a={},s={},u=t.gutters.clientLeft,h=t.gutters.firstChild,p=0;h;h=h.nextSibling,++p){var m=e.display.gutterSpecs[p].className;a[m]=h.offsetLeft+h.clientLeft+u,s[m]=h.clientWidth}return{fixedPos:ms(t),gutterTotalWidth:t.gutters.offsetWidth,gutterLeft:a,gutterWidth:s,wrapperWidth:t.wrapper.clientWidth}}function ms(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function h1(e){var t=Ki(e.display),a=e.options.lineWrapping,s=a&&Math.max(5,e.display.scroller.clientWidth/gs(e.display)-3);return function(u){if(Vt(e.doc,u))return 0;var h=0;if(u.widgets)for(var p=0;p<u.widgets.length;p++)u.widgets[p].height&&(h+=u.widgets[p].height);return a?h+(Math.ceil(u.text.length/s)||1)*t:h+t}}function Xi(e){var t=e.doc,a=h1(e);t.iter(function(s){var u=a(s);u!=s.height&&tn(s,u)})}function si(e,t,a,s){var u=e.display;if(!a&&Bi(t).getAttribute("cm-not-content")=="true")return null;var h,p,m=u.lineSpace.getBoundingClientRect();try{h=t.clientX-m.left,p=t.clientY-m.top}catch{return null}var b=R(e,h,p),C;if(s&&b.xRel>0&&(C=Me(e.doc,b.line).text).length==b.ch){var S=Ht(C,C.length,e.options.tabSize)-C.length;b=ne(b.line,Math.max(0,Math.round((h-fl(e.display).left)/gs(e.display))-S))}return b}function ai(e,t){if(t>=e.display.viewTo||(t-=e.display.viewFrom,t<0))return null;for(var a=e.display.view,s=0;s<a.length;s++)if(t-=a[s].size,t<0)return s}function et(e,t,a,s){t==null&&(t=e.doc.first),a==null&&(a=e.doc.first+e.doc.size),s||(s=0);var u=e.display;if(s&&a<u.viewTo&&(u.updateLineNumbers==null||u.updateLineNumbers>t)&&(u.updateLineNumbers=t),e.curOp.viewChanged=!0,t>=u.viewTo)ni&&ll(e.doc,t)<u.viewTo&&Si(e);else if(a<=u.viewFrom)ni&&Q0(e.doc,a+s)>u.viewFrom?Si(e):(u.viewFrom+=s,u.viewTo+=s);else if(t<=u.viewFrom&&a>=u.viewTo)Si(e);else if(t<=u.viewFrom){var h=zo(e,a,a+s,1);h?(u.view=u.view.slice(h.index),u.viewFrom=h.lineN,u.viewTo+=s):Si(e)}else if(a>=u.viewTo){var p=zo(e,t,t,-1);p?(u.view=u.view.slice(0,p.index),u.viewTo=p.lineN):Si(e)}else{var m=zo(e,t,t,-1),b=zo(e,a,a+s,1);m&&b?(u.view=u.view.slice(0,m.index).concat(ps(e,m.lineN,b.lineN)).concat(u.view.slice(b.index)),u.viewTo+=s):Si(e)}var C=u.externalMeasured;C&&(a<C.lineN?C.lineN+=s:t<C.lineN+C.size&&(u.externalMeasured=null))}function Qi(e,t,a){e.curOp.viewChanged=!0;var s=e.display,u=e.display.externalMeasured;if(u&&t>=u.lineN&&t<u.lineN+u.size&&(s.externalMeasured=null),!(t<s.viewFrom||t>=s.viewTo)){var h=s.view[ai(e,t)];if(h.node!=null){var p=h.changes||(h.changes=[]);_e(p,a)==-1&&p.push(a)}}}function Si(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function zo(e,t,a,s){var u=ai(e,t),h,p=e.display.view;if(!ni||a==e.doc.first+e.doc.size)return{index:u,lineN:a};for(var m=e.display.viewFrom,b=0;b<u;b++)m+=p[b].size;if(m!=t){if(s>0){if(u==p.length-1)return null;h=m+p[u].size-t,u++}else h=m-t;t+=h,a+=h}for(;ll(e.doc,a)!=a;){if(u==(s<0?0:p.length-1))return null;a+=s*p[u-(s<0?1:0)].size,u+=s}return{index:u,lineN:a}}function gf(e,t,a){var s=e.display,u=s.view;u.length==0||t>=s.viewTo||a<=s.viewFrom?(s.view=ps(e,t,a),s.viewFrom=t):(s.viewFrom>t?s.view=ps(e,t,s.viewFrom).concat(s.view):s.viewFrom<t&&(s.view=s.view.slice(ai(e,t))),s.viewFrom=t,s.viewTo<a?s.view=s.view.concat(ps(e,s.viewTo,a)):s.viewTo>a&&(s.view=s.view.slice(0,ai(e,a)))),s.viewTo=a}function p1(e){for(var t=e.display.view,a=0,s=0;s<t.length;s++){var u=t[s];!u.hidden&&(!u.node||u.changes)&&++a}return a}function pa(e){e.display.input.showSelection(e.display.input.prepareSelection())}function va(e,t){t===void 0&&(t=!0);for(var a=e.doc,s={},u=s.cursors=document.createDocumentFragment(),h=s.selection=document.createDocumentFragment(),p=0;p<a.sel.ranges.length;p++)if(!(!t&&p==a.sel.primIndex)){var m=a.sel.ranges[p];if(!(m.from().line>=e.display.viewTo||m.to().line<e.display.viewFrom)){var b=m.empty();(b||e.options.showCursorWhenSelecting)&&ki(e,m.head,u),b||v1(e,m,h)}}return s}function ki(e,t,a){var s=Zn(e,t,"div",null,null,!e.options.singleCursorHeightPerLine),u=a.appendChild(D("div","\xA0","CodeMirror-cursor"));if(u.style.left=s.left+"px",u.style.top=s.top+"px",u.style.height=Math.max(0,s.bottom-s.top)*e.options.cursorHeight+"px",/\bcm-fat-cursor\b/.test(e.getWrapperElement().className)){var h=ml(e,t,"div",null,null);u.style.width=Math.max(0,h.right-h.left)+"px"}if(s.other){var p=a.appendChild(D("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));p.style.display="",p.style.left=s.other.left+"px",p.style.top=s.other.top+"px",p.style.height=(s.other.bottom-s.other.top)*.85+"px"}}function No(e,t){return e.top-t.top||e.left-t.left}function v1(e,t,a){var s=e.display,u=e.doc,h=document.createDocumentFragment(),p=fl(e.display),m=p.left,b=Math.max(s.sizerWidth,Gi(e)-s.sizer.offsetLeft)-p.right,C=u.direction=="ltr";function S(fe,we,Ie,Pe){we<0&&(we=0),we=Math.round(we),Pe=Math.round(Pe),h.appendChild(D("div",null,"CodeMirror-selected","position: absolute; left: "+fe+`px;
2092
2099
  top: `+we+"px; width: "+(Ie==null?b-fe:Ie)+`px;
2093
- height: `+(Pe-we)+"px"))}function M(fe,we,Ie){var Pe=Me(u,fe),st=Pe.text.length,Mt,ar;function It(er,Lr){return ml(e,ne(fe,er),"div",Pe,Lr)}function Br(er,Lr,hr){var At=Y(e,Pe,null,er),$t=Lr=="ltr"==(hr=="after")?"left":"right",jt=hr=="after"?At.begin:At.end-(/\s/.test(Pe.text.charAt(At.end-1))?2:1);return It(jt,$t)[$t]}var Ur=Rr(Pe,u.direction);return $n(Ur,we||0,Ie==null?st:Ie,function(er,Lr,hr,At){var $t=hr=="ltr",jt=It(er,$t?"left":"right"),Yr=It(Lr-1,$t?"right":"left"),Ws=we==null&&er==0,po=Ie==null&&Lr==st,zr=At==0,di=!Ur||At==Ur.length-1;if(Yr.top-jt.top<=3){var pr=(C?Ws:po)&&zr,l0=(C?po:Ws)&&di,Ei=pr?m:($t?jt:Yr).left,qo=l0?b:($t?Yr:jt).right;S(Ei,jt.top,qo-Ei,jt.bottom)}else{var jo,Zr,Bs,Vl;$t?(jo=C&&Ws&&zr?m:jt.left,Zr=C?b:Br(er,hr,"before"),Bs=C?m:Br(Lr,hr,"after"),Vl=C&&po&&di?b:Yr.right):(jo=C?Br(er,hr,"before"):m,Zr=!C&&Ws&&zr?b:jt.right,Bs=!C&&po&&di?m:Yr.left,Vl=C?Br(Lr,hr,"after"):b),S(jo,jt.top,Zr-jo,jt.bottom),jt.bottom<Yr.top&&S(m,jt.bottom,null,Yr.top),S(Bs,Yr.top,Vl-Bs,Yr.bottom)}(!Mt||No(jt,Mt)<0)&&(Mt=jt),No(Yr,Mt)<0&&(Mt=Yr),(!ar||No(jt,ar)<0)&&(ar=jt),No(Yr,ar)<0&&(ar=Yr)}),{start:Mt,end:ar}}var $=t.from(),N=t.to();if($.line==N.line)M($.line,$.ch,N.ch);else{var Z=Me(u,$.line),Q=Me(u,N.line),ae=ii(Z)==ii(Q),ce=M($.line,$.ch,ae?Z.text.length+1:null).end,be=M(N.line,ae?0:null,N.ch).start;ae&&(ce.top<be.top-2?(S(ce.right,ce.top,null,ce.bottom),S(m,be.top,be.left,be.bottom)):S(ce.right,ce.top,be.left-ce.right,ce.bottom)),ce.bottom<be.top&&S(m,ce.bottom,null,be.top)}a.appendChild(h)}function bs(e){if(!!e.state.focused){var t=e.display;clearInterval(t.blinker);var a=!0;t.cursorDiv.style.visibility="",e.options.cursorBlinkRate>0?t.blinker=setInterval(function(){e.hasFocus()||$o(e),t.cursorDiv.style.visibility=(a=!a)?"":"hidden"},e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(t.cursorDiv.style.visibility="hidden")}}function Au(e){e.hasFocus()||(e.display.input.focus(),e.state.focused||Cs(e))}function yl(e){e.state.delayingBlurEvent=!0,setTimeout(function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,e.state.focused&&$o(e))},100)}function Cs(e,t){e.state.delayingBlurEvent&&!e.state.draggingText&&(e.state.delayingBlurEvent=!1),e.options.readOnly!="nocursor"&&(e.state.focused||(Ze(e,"focus",e,t),e.state.focused=!0,Pt(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()),bs(e))}function $o(e,t){e.state.delayingBlurEvent||(e.state.focused&&(Ze(e,"blur",e,t),e.state.focused=!1,ye(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout(function(){e.state.focused||(e.display.shift=!1)},150))}function Ji(e){for(var t=e.display,a=t.lineDiv.offsetTop,s=0;s<t.view.length;s++){var u=t.view[s],h=e.options.lineWrapping,p=void 0,m=0;if(!u.hidden){if(k&&O<8){var b=u.node.offsetTop+u.node.offsetHeight;p=b-a,a=b}else{var C=u.node.getBoundingClientRect();p=C.bottom-C.top,!h&&u.text.firstChild&&(m=u.text.firstChild.getBoundingClientRect().right-C.left-1)}var S=u.line.height-p;if((S>.005||S<-.005)&&(tn(u.line,p),eo(u.line),u.rest))for(var M=0;M<u.rest.length;M++)eo(u.rest[M]);if(m>e.display.sizerWidth){var $=Math.ceil(m/ms(e.display));$>e.display.maxLineLength&&(e.display.maxLineLength=$,e.display.maxLine=u.line,e.display.maxLineChanged=!0)}}}}function eo(e){if(e.widgets)for(var t=0;t<e.widgets.length;++t){var a=e.widgets[t],s=a.node.parentNode;s&&(a.height=s.offsetHeight)}}function Ro(e,t,a){var s=a&&a.top!=null?Math.max(0,a.top):e.scroller.scrollTop;s=Math.floor(s-da(e));var u=a&&a.bottom!=null?a.bottom:s+e.wrapper.clientHeight,h=Bn(t,s),p=Bn(t,u);if(a&&a.ensure){var m=a.ensure.from.line,b=a.ensure.to.line;m<h?(h=m,p=Bn(t,Kr(Me(t,m))+e.wrapper.clientHeight)):Math.min(b,t.lastLine())>=p&&(h=Bn(t,Kr(Me(t,b))-e.wrapper.clientHeight),p=b)}return{from:h,to:Math.max(p,h+1)}}function mf(e,t){if(!rr(e,"scrollCursorIntoView")){var a=e.display,s=a.sizer.getBoundingClientRect(),u=null;if(t.top+s.top<0?u=!0:t.bottom+s.top>(window.innerHeight||document.documentElement.clientHeight)&&(u=!1),u!=null&&!me){var h=D("div","\u200B",null,`position: absolute;
2100
+ height: `+(Pe-we)+"px"))}function M(fe,we,Ie){var Pe=Me(u,fe),st=Pe.text.length,Mt,ar;function It(er,Lr){return ml(e,ne(fe,er),"div",Pe,Lr)}function Br(er,Lr,hr){var At=Y(e,Pe,null,er),$t=Lr=="ltr"==(hr=="after")?"left":"right",jt=hr=="after"?At.begin:At.end-(/\s/.test(Pe.text.charAt(At.end-1))?2:1);return It(jt,$t)[$t]}var Ur=Rr(Pe,u.direction);return $n(Ur,we||0,Ie==null?st:Ie,function(er,Lr,hr,At){var $t=hr=="ltr",jt=It(er,$t?"left":"right"),Yr=It(Lr-1,$t?"right":"left"),Fs=we==null&&er==0,po=Ie==null&&Lr==st,zr=At==0,di=!Ur||At==Ur.length-1;if(Yr.top-jt.top<=3){var pr=(C?Fs:po)&&zr,l0=(C?po:Fs)&&di,Ei=pr?m:($t?jt:Yr).left,qo=l0?b:($t?Yr:jt).right;S(Ei,jt.top,qo-Ei,jt.bottom)}else{var jo,Zr,Ws,Vl;$t?(jo=C&&Fs&&zr?m:jt.left,Zr=C?b:Br(er,hr,"before"),Ws=C?m:Br(Lr,hr,"after"),Vl=C&&po&&di?b:Yr.right):(jo=C?Br(er,hr,"before"):m,Zr=!C&&Fs&&zr?b:jt.right,Ws=!C&&po&&di?m:Yr.left,Vl=C?Br(Lr,hr,"after"):b),S(jo,jt.top,Zr-jo,jt.bottom),jt.bottom<Yr.top&&S(m,jt.bottom,null,Yr.top),S(Ws,Yr.top,Vl-Ws,Yr.bottom)}(!Mt||No(jt,Mt)<0)&&(Mt=jt),No(Yr,Mt)<0&&(Mt=Yr),(!ar||No(jt,ar)<0)&&(ar=jt),No(Yr,ar)<0&&(ar=Yr)}),{start:Mt,end:ar}}var $=t.from(),N=t.to();if($.line==N.line)M($.line,$.ch,N.ch);else{var Z=Me(u,$.line),Q=Me(u,N.line),ae=ii(Z)==ii(Q),ce=M($.line,$.ch,ae?Z.text.length+1:null).end,be=M(N.line,ae?0:null,N.ch).start;ae&&(ce.top<be.top-2?(S(ce.right,ce.top,null,ce.bottom),S(m,be.top,be.left,be.bottom)):S(ce.right,ce.top,be.left-ce.right,ce.bottom)),ce.bottom<be.top&&S(m,ce.bottom,null,be.top)}a.appendChild(h)}function ys(e){if(!!e.state.focused){var t=e.display;clearInterval(t.blinker);var a=!0;t.cursorDiv.style.visibility="",e.options.cursorBlinkRate>0?t.blinker=setInterval(function(){e.hasFocus()||$o(e),t.cursorDiv.style.visibility=(a=!a)?"":"hidden"},e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(t.cursorDiv.style.visibility="hidden")}}function Au(e){e.hasFocus()||(e.display.input.focus(),e.state.focused||bs(e))}function yl(e){e.state.delayingBlurEvent=!0,setTimeout(function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,e.state.focused&&$o(e))},100)}function bs(e,t){e.state.delayingBlurEvent&&!e.state.draggingText&&(e.state.delayingBlurEvent=!1),e.options.readOnly!="nocursor"&&(e.state.focused||(Ze(e,"focus",e,t),e.state.focused=!0,Pt(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()),ys(e))}function $o(e,t){e.state.delayingBlurEvent||(e.state.focused&&(Ze(e,"blur",e,t),e.state.focused=!1,ye(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout(function(){e.state.focused||(e.display.shift=!1)},150))}function Ji(e){for(var t=e.display,a=t.lineDiv.offsetTop,s=0;s<t.view.length;s++){var u=t.view[s],h=e.options.lineWrapping,p=void 0,m=0;if(!u.hidden){if(k&&O<8){var b=u.node.offsetTop+u.node.offsetHeight;p=b-a,a=b}else{var C=u.node.getBoundingClientRect();p=C.bottom-C.top,!h&&u.text.firstChild&&(m=u.text.firstChild.getBoundingClientRect().right-C.left-1)}var S=u.line.height-p;if((S>.005||S<-.005)&&(tn(u.line,p),eo(u.line),u.rest))for(var M=0;M<u.rest.length;M++)eo(u.rest[M]);if(m>e.display.sizerWidth){var $=Math.ceil(m/gs(e.display));$>e.display.maxLineLength&&(e.display.maxLineLength=$,e.display.maxLine=u.line,e.display.maxLineChanged=!0)}}}}function eo(e){if(e.widgets)for(var t=0;t<e.widgets.length;++t){var a=e.widgets[t],s=a.node.parentNode;s&&(a.height=s.offsetHeight)}}function Ro(e,t,a){var s=a&&a.top!=null?Math.max(0,a.top):e.scroller.scrollTop;s=Math.floor(s-da(e));var u=a&&a.bottom!=null?a.bottom:s+e.wrapper.clientHeight,h=Bn(t,s),p=Bn(t,u);if(a&&a.ensure){var m=a.ensure.from.line,b=a.ensure.to.line;m<h?(h=m,p=Bn(t,Kr(Me(t,m))+e.wrapper.clientHeight)):Math.min(b,t.lastLine())>=p&&(h=Bn(t,Kr(Me(t,b))-e.wrapper.clientHeight),p=b)}return{from:h,to:Math.max(p,h+1)}}function mf(e,t){if(!rr(e,"scrollCursorIntoView")){var a=e.display,s=a.sizer.getBoundingClientRect(),u=null;if(t.top+s.top<0?u=!0:t.bottom+s.top>(window.innerHeight||document.documentElement.clientHeight)&&(u=!1),u!=null&&!me){var h=D("div","\u200B",null,`position: absolute;
2094
2101
  top: `+(t.top-a.viewOffset-da(e.display))+`px;
2095
2102
  height: `+(t.bottom-t.top+nn(e)+a.barHeight)+`px;
2096
- 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 yf(e,t,a,s){s==null&&(s=0);var u;!e.options.lineWrapping&&t==a&&(a=t.sticky=="before"?ne(t.line,t.ch+1,"before"):t,t=t.ch?ne(t.line,t.sticky=="before"?t.ch-1:t.ch,"after"):t);for(var h=0;h<5;h++){var p=!1,m=Zn(e,t),b=!a||a==t?m:Zn(e,a);u={left:Math.min(m.left,b.left),top:Math.min(m.top,b.top)-s,right:Math.max(m.left,b.left),bottom:Math.max(m.bottom,b.bottom)+s};var C=ws(e,u),S=e.doc.scrollTop,M=e.doc.scrollLeft;if(C.scrollTop!=null&&(Gt(e,C.scrollTop),Math.abs(e.doc.scrollTop-S)>1&&(p=!0)),C.scrollLeft!=null&&(Ho(e,C.scrollLeft),Math.abs(e.doc.scrollLeft-M)>1&&(p=!0)),!p)break}return u}function bf(e,t){var a=ws(e,t);a.scrollTop!=null&&Gt(e,a.scrollTop),a.scrollLeft!=null&&Ho(e,a.scrollLeft)}function ws(e,t){var a=e.display,s=Ki(e.display);t.top<0&&(t.top=0);var u=e.curOp&&e.curOp.scrollTop!=null?e.curOp.scrollTop:a.scroller.scrollTop,h=dl(e),p={};t.bottom-t.top>h&&(t.bottom=t.top+h);var m=e.doc.height+Xr(a),b=t.top<s,C=t.bottom>m-s;if(t.top<u)p.scrollTop=b?0:t.top;else if(t.bottom>u+h){var S=Math.min(t.top,(C?m:t.bottom)-h);S!=u&&(p.scrollTop=S)}var M=e.options.fixedGutter?0:a.gutters.offsetWidth,$=e.curOp&&e.curOp.scrollLeft!=null?e.curOp.scrollLeft:a.scroller.scrollLeft-M,N=Gi(e)-a.gutters.offsetWidth,Z=t.right-t.left>N;return Z&&(t.right=t.left+N),t.left<10?p.scrollLeft=0:t.left<$?p.scrollLeft=Math.max(0,t.left+M-(Z?0:10)):t.right>N+$-3&&(p.scrollLeft=t.right+(Z?0:10)-N),p}function xs(e,t){t!=null&&(bl(e),e.curOp.scrollTop=(e.curOp.scrollTop==null?e.doc.scrollTop:e.curOp.scrollTop)+t)}function to(e){bl(e);var t=e.getCursor();e.curOp.scrollToPos={from:t,to:t,margin:e.options.cursorScrollMargin}}function ga(e,t,a){(t!=null||a!=null)&&bl(e),t!=null&&(e.curOp.scrollLeft=t),a!=null&&(e.curOp.scrollTop=a)}function g1(e,t){bl(e),e.curOp.scrollToPos=t}function bl(e){var t=e.curOp.scrollToPos;if(t){e.curOp.scrollToPos=null;var a=d1(e,t.from),s=d1(e,t.to);m1(e,a,s,t.margin)}}function m1(e,t,a,s){var u=ws(e,{left:Math.min(t.left,a.left),top:Math.min(t.top,a.top)-s,right:Math.max(t.right,a.right),bottom:Math.max(t.bottom,a.bottom)+s});ga(e,u.scrollLeft,u.scrollTop)}function Gt(e,t){Math.abs(e.doc.scrollTop-t)<2||(f||Iu(e,{top:t}),Pr(e,t,!0),f&&Iu(e),ui(e,100))}function Pr(e,t,a){t=Math.max(0,Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,t)),!(e.display.scroller.scrollTop==t&&!a)&&(e.doc.scrollTop=t,e.display.scrollbars.setScrollTop(t),e.display.scroller.scrollTop!=t&&(e.display.scroller.scrollTop=t))}function Ho(e,t,a,s){t=Math.max(0,Math.min(t,e.display.scroller.scrollWidth-e.display.scroller.clientWidth)),!((a?t==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-t)<2)&&!s)&&(e.doc.scrollLeft=t,y1(e),e.display.scroller.scrollLeft!=t&&(e.display.scroller.scrollLeft=t),e.display.scrollbars.setScrollLeft(t))}function ma(e){var t=e.display,a=t.gutters.offsetWidth,s=Math.round(e.doc.height+Xr(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?a:0,docHeight:s,scrollHeight:s+nn(e)+t.barHeight,nativeBarWidth:t.nativeBarWidth,gutterWidth:a}}var ro=function(e,t,a){this.cm=a;var s=this.vert=D("div",[D("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),u=this.horiz=D("div",[D("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");s.tabIndex=u.tabIndex=-1,e(s),e(u),Ne(s,"scroll",function(){s.clientHeight&&t(s.scrollTop,"vertical")}),Ne(u,"scroll",function(){u.clientWidth&&t(u.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,k&&O<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};ro.prototype.update=function(e){var t=e.scrollWidth>e.clientWidth+1,a=e.scrollHeight>e.clientHeight+1,s=e.nativeBarWidth;if(a){this.vert.style.display="block",this.vert.style.bottom=t?s+"px":"0";var u=e.viewHeight-(t?s: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=a?s+"px":"0",this.horiz.style.left=e.barLeft+"px";var h=e.viewWidth-e.barLeft-(a?s: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&&(s==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:a?s:0,bottom:t?s:0}},ro.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},ro.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},ro.prototype.zeroWidthHack=function(){var e=de&&!Ce?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new at,this.disableVert=new at},ro.prototype.enableZeroWidthBar=function(e,t,a){e.style.pointerEvents="auto";function s(){var u=e.getBoundingClientRect(),h=a=="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,s)}t.set(1e3,s)},ro.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var ya=function(){};ya.prototype.update=function(){return{bottom:0,right:0}},ya.prototype.setScrollLeft=function(){},ya.prototype.setScrollTop=function(){},ya.prototype.clear=function(){};function no(e,t){t||(t=ma(e));var a=e.display.barWidth,s=e.display.barHeight;_s(e,t);for(var u=0;u<4&&a!=e.display.barWidth||s!=e.display.barHeight;u++)a!=e.display.barWidth&&e.options.lineWrapping&&Ji(e),_s(e,ma(e)),a=e.display.barWidth,s=e.display.barHeight}function _s(e,t){var a=e.display,s=a.scrollbars.update(t);a.sizer.style.paddingRight=(a.barWidth=s.right)+"px",a.sizer.style.paddingBottom=(a.barHeight=s.bottom)+"px",a.heightForcer.style.borderBottom=s.bottom+"px solid transparent",s.right&&s.bottom?(a.scrollbarFiller.style.display="block",a.scrollbarFiller.style.height=s.bottom+"px",a.scrollbarFiller.style.width=s.right+"px"):a.scrollbarFiller.style.display="",s.bottom&&e.options.coverGutterNextToScrollbar&&e.options.fixedGutter?(a.gutterFiller.style.display="block",a.gutterFiller.style.height=s.bottom+"px",a.gutterFiller.style.width=t.gutterWidth+"px"):a.gutterFiller.style.display=""}var Cl={native:ro,null:ya};function Fo(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&ye(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new Cl[e.options.scrollbarStyle](function(t){e.display.wrapper.insertBefore(t,e.display.scrollbarFiller),Ne(t,"mousedown",function(){e.state.focused&&setTimeout(function(){return e.display.input.focus()},0)}),t.setAttribute("cm-not-content","true")},function(t,a){a=="horizontal"?Ho(e,t):Gt(e,t)},e),e.display.scrollbars.addClass&&Pt(e.display.wrapper,e.display.scrollbars.addClass)}var ba=0;function Vn(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:++ba,markArrays:null},Vi(e.curOp)}function li(e){var t=e.curOp;t&&ff(t,function(a){for(var s=0;s<a.ops.length;s++)a.ops[s].cm.curOp=null;Ls(a)})}function Ls(e){for(var t=e.ops,a=0;a<t.length;a++)Cf(t[a]);for(var s=0;s<t.length;s++)wf(t[s]);for(var u=0;u<t.length;u++)xf(t[u]);for(var h=0;h<t.length;h++)_f(t[h]);for(var p=0;p<t.length;p++)Lf(t[p])}function Cf(e){var t=e.cm,a=t.display;vt(t),e.updateMaxLine&&ca(t),e.mustUpdate=e.viewChanged||e.forceUpdate||e.scrollTop!=null||e.scrollToPos&&(e.scrollToPos.from.line<a.viewFrom||e.scrollToPos.to.line>=a.viewTo)||a.maxLineChanged&&t.options.lineWrapping,e.update=e.mustUpdate&&new Qr(t,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function wf(e){e.updatedDisplay=e.mustUpdate&&Du(e.cm,e.update)}function xf(e){var t=e.cm,a=t.display;e.updatedDisplay&&Ji(t),e.barMeasure=ma(t),a.maxLineChanged&&!t.options.lineWrapping&&(e.adjustWidthTo=s1(t,a.maxLine,a.maxLine.text.length).left+3,t.display.sizerWidth=e.adjustWidthTo,e.barMeasure.scrollWidth=Math.max(a.scroller.clientWidth,a.sizer.offsetLeft+e.adjustWidthTo+nn(t)+t.display.barWidth),e.maxScrollLeft=Math.max(0,a.sizer.offsetLeft+e.adjustWidthTo-Gi(t))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=a.input.prepareSelection())}function _f(e){var t=e.cm;e.adjustWidthTo!=null&&(t.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft<t.doc.scrollLeft&&Ho(t,Math.min(t.display.scroller.scrollLeft,e.maxScrollLeft),!0),t.display.maxLineChanged=!1);var a=e.focus&&e.focus==nt();e.preparedSelection&&t.display.input.showSelection(e.preparedSelection,a),(e.updatedDisplay||e.startHeight!=t.doc.height)&&no(t,e.barMeasure),e.updatedDisplay&&Nu(t,e.barMeasure),e.selectionChanged&&bs(t),t.state.focused&&e.updateInput&&t.display.input.reset(e.typing),a&&Au(e.cm)}function Lf(e){var t=e.cm,a=t.display,s=t.doc;if(e.updatedDisplay&&io(t,e.update),a.wheelStartX!=null&&(e.scrollTop!=null||e.scrollLeft!=null||e.scrollToPos)&&(a.wheelStartX=a.wheelStartY=null),e.scrollTop!=null&&Pr(t,e.scrollTop,e.forceScroll),e.scrollLeft!=null&&Ho(t,e.scrollLeft,!0,!0),e.scrollToPos){var u=yf(t,ge(s,e.scrollToPos.from),ge(s,e.scrollToPos.to),e.scrollToPos.margin);mf(t,u)}var h=e.maybeHiddenMarkers,p=e.maybeUnhiddenMarkers;if(h)for(var m=0;m<h.length;++m)h[m].lines.length||Ze(h[m],"hide");if(p)for(var b=0;b<p.length;++b)p[b].lines.length&&Ze(p[b],"unhide");a.wrapper.offsetHeight&&(s.scrollTop=t.display.scroller.scrollTop),e.changeObjs&&Ze(t,"changes",t,e.changeObjs),e.update&&e.update.finish()}function Er(e,t){if(e.curOp)return t();Vn(e);try{return t()}finally{li(e)}}function qt(e,t){return function(){if(e.curOp)return t.apply(e,arguments);Vn(e);try{return t.apply(e,arguments)}finally{li(e)}}}function Ar(e){return function(){if(this.curOp)return e.apply(this,arguments);Vn(this);try{return e.apply(this,arguments)}finally{li(this)}}}function _(e){return function(){var t=this.cm;if(!t||t.curOp)return e.apply(this,arguments);Vn(t);try{return e.apply(this,arguments)}finally{li(t)}}}function ui(e,t){e.doc.highlightFrontier<e.display.viewTo&&e.state.highlight.set(t,fn(wl,e))}function wl(e){var t=e.doc;if(!(t.highlightFrontier>=e.display.viewTo)){var a=+new Date+e.options.workTime,s=ps(e,t.highlightFrontier),u=[];t.iter(s.line,Math.min(t.first+t.size,e.display.viewTo+500),function(h){if(s.line>=e.display.viewFrom){var p=h.styles,m=h.text.length>e.options.maxHighlightLength?pn(t.mode,s.state):null,b=B0(e,h,s,!0);m&&(s.state=m),h.styles=b.styles;var C=h.styleClasses,S=b.classes;S?h.styleClasses=S:C&&(h.styleClasses=null);for(var M=!p||p.length!=h.styles.length||C!=S&&(!C||!S||C.bgClass!=S.bgClass||C.textClass!=S.textClass),$=0;!M&&$<p.length;++$)M=p[$]!=h.styles[$];M&&u.push(s.line),h.stateAfter=s.save(),s.nextLine()}else h.text.length<=e.options.maxHighlightLength&&sa(e,h.text,s),h.stateAfter=s.line%5==0?s.save():null,s.nextLine();if(+new Date>a)return ui(e,e.options.workDelay),!0}),t.highlightFrontier=s.line,t.modeFrontier=Math.max(t.modeFrontier,s.line),u.length&&Er(e,function(){for(var h=0;h<u.length;h++)Qi(e,u[h],"text")})}}var Qr=function(e,t,a){var s=e.display;this.viewport=t,this.visible=Ro(s,e.doc,t),this.editorIsHidden=!s.wrapper.offsetWidth,this.wrapperHeight=s.wrapper.clientHeight,this.wrapperWidth=s.wrapper.clientWidth,this.oldDisplayWidth=Gi(e),this.force=a,this.dims=on(e),this.events=[]};Qr.prototype.signal=function(e,t){br(e,t)&&this.events.push(arguments)},Qr.prototype.finish=function(){for(var e=0;e<this.events.length;e++)Ze.apply(null,this.events[e])};function vt(e){var t=e.display;!t.scrollbarsClipped&&t.scroller.offsetWidth&&(t.nativeBarWidth=t.scroller.offsetWidth-t.scroller.clientWidth,t.heightForcer.style.height=nn(e)+"px",t.sizer.style.marginBottom=-t.nativeBarWidth+"px",t.sizer.style.borderRightWidth=nn(e)+"px",t.scrollbarsClipped=!0)}function Sf(e){if(e.hasFocus())return null;var t=nt();if(!t||!ve(e.display.lineDiv,t))return null;var a={activeElt:t};if(window.getSelection){var s=window.getSelection();s.anchorNode&&s.extend&&ve(e.display.lineDiv,s.anchorNode)&&(a.anchorNode=s.anchorNode,a.anchorOffset=s.anchorOffset,a.focusNode=s.focusNode,a.focusOffset=s.focusOffset)}return a}function kf(e){if(!(!e||!e.activeElt||e.activeElt==nt())&&(e.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(e.activeElt.nodeName)&&e.anchorNode&&ve(document.body,e.anchorNode)&&ve(document.body,e.focusNode))){var t=window.getSelection(),a=document.createRange();a.setEnd(e.anchorNode,e.anchorOffset),a.collapse(!1),t.removeAllRanges(),t.addRange(a),t.extend(e.focusNode,e.focusOffset)}}function Du(e,t){var a=e.display,s=e.doc;if(t.editorIsHidden)return Si(e),!1;if(!t.force&&t.visible.from>=a.viewFrom&&t.visible.to<=a.viewTo&&(a.updateLineNumbers==null||a.updateLineNumbers>=a.viewTo)&&a.renderedView==a.view&&p1(e)==0)return!1;ci(e)&&(Si(e),t.dims=on(e));var u=s.first+s.size,h=Math.max(t.visible.from-e.options.viewportMargin,s.first),p=Math.min(u,t.visible.to+e.options.viewportMargin);a.viewFrom<h&&h-a.viewFrom<20&&(h=Math.max(s.first,a.viewFrom)),a.viewTo>p&&a.viewTo-p<20&&(p=Math.min(u,a.viewTo)),ni&&(h=ll(e.doc,h),p=Q0(e.doc,p));var m=h!=a.viewFrom||p!=a.viewTo||a.lastWrapHeight!=t.wrapperHeight||a.lastWrapWidth!=t.wrapperWidth;gf(e,h,p),a.viewOffset=Kr(Me(e.doc,a.viewFrom)),e.display.mover.style.top=a.viewOffset+"px";var b=p1(e);if(!m&&b==0&&!t.force&&a.renderedView==a.view&&(a.updateLineNumbers==null||a.updateLineNumbers>=a.viewTo))return!1;var C=Sf(e);return b>4&&(a.lineDiv.style.display="none"),Mf(e,a.updateLineNumbers,t.dims),b>4&&(a.lineDiv.style.display=""),a.renderedView=a.view,kf(C),rt(a.cursorDiv),rt(a.selectionDiv),a.gutters.style.height=a.sizer.style.minHeight=0,m&&(a.lastWrapHeight=t.wrapperHeight,a.lastWrapWidth=t.wrapperWidth,ui(e,400)),a.updateLineNumbers=null,!0}function io(e,t){for(var a=t.viewport,s=!0;;s=!1){if(!s||!e.options.lineWrapping||t.oldDisplayWidth==Gi(e)){if(a&&a.top!=null&&(a={top:Math.min(e.doc.height+Xr(e.display)-dl(e),a.top)}),t.visible=Ro(e.display,e.doc,a),t.visible.from>=e.display.viewFrom&&t.visible.to<=e.display.viewTo)break}else s&&(t.visible=Ro(e.display,e.doc,a));if(!Du(e,t))break;Ji(e);var u=ma(e);pa(e),no(e,u),Nu(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 Iu(e,t){var a=new Qr(e,t);if(Du(e,a)){Ji(e),io(e,a);var s=ma(e);pa(e),no(e,s),Nu(e,s),a.finish()}}function Mf(e,t,a){var s=e.display,u=e.options.lineNumbers,h=s.lineDiv,p=h.firstChild;function m(Z){var Q=Z.nextSibling;return I&&de&&e.display.currentWheelTarget==Z?Z.style.display="none":Z.parentNode.removeChild(Z),Q}for(var b=s.view,C=s.viewFrom,S=0;S<b.length;S++){var M=b[S];if(!M.hidden)if(!M.node||M.node.parentNode!=h){var $=Ou(e,M,C,a);h.insertBefore($,p)}else{for(;p!=M.node;)p=m(p);var N=u&&t!=null&&t<=C&&M.lineNumber;M.changes&&(_e(M.changes,"gutter")>-1&&(N=!1),n1(e,M,C,a)),N&&(rt(M.lineNumber),M.lineNumber.appendChild(document.createTextNode(hs(e.options,C)))),p=M.node.nextSibling}C+=M.size}for(;p;)p=m(p)}function zu(e){var t=e.gutters.offsetWidth;e.sizer.style.marginLeft=t+"px",fr(e,"gutterChanged",e)}function Nu(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+nn(e)+"px"}function y1(e){var t=e.display,a=t.view;if(!(!t.alignWidgets&&(!t.gutters.firstChild||!e.options.fixedGutter))){for(var s=ys(t)-t.scroller.scrollLeft+e.doc.scrollLeft,u=t.gutters.offsetWidth,h=s+"px",p=0;p<a.length;p++)if(!a[p].hidden){e.options.fixedGutter&&(a[p].gutter&&(a[p].gutter.style.left=h),a[p].gutterBackground&&(a[p].gutterBackground.style.left=h));var m=a[p].alignable;if(m)for(var b=0;b<m.length;b++)m[b].style.left=h}e.options.fixedGutter&&(t.gutters.style.left=s+u+"px")}}function ci(e){if(!e.options.lineNumbers)return!1;var t=e.doc,a=hs(e.options,t.first+t.size-1),s=e.display;if(a.length!=s.lineNumChars){var u=s.measure.appendChild(D("div",[D("div",a)],"CodeMirror-linenumber CodeMirror-gutter-elt")),h=u.firstChild.offsetWidth,p=u.offsetWidth-h;return s.lineGutter.style.width="",s.lineNumInnerWidth=Math.max(h,s.lineGutter.offsetWidth-p)+1,s.lineNumWidth=s.lineNumInnerWidth+p,s.lineNumChars=s.lineNumInnerWidth?a.length:-1,s.lineGutter.style.width=s.lineNumWidth+"px",zu(e.display),!0}return!1}function $u(e,t){for(var a=[],s=!1,u=0;u<e.length;u++){var h=e[u],p=null;if(typeof h!="string"&&(p=h.style,h=h.className),h=="CodeMirror-linenumbers")if(t)s=!0;else continue;a.push({className:h,style:p})}return t&&!s&&a.push({className:"CodeMirror-linenumbers",style:null}),a}function b1(e){var t=e.gutters,a=e.gutterSpecs;rt(t),e.lineGutter=null;for(var s=0;s<a.length;++s){var u=a[s],h=u.className,p=u.style,m=t.appendChild(D("div",null,"CodeMirror-gutter "+h));p&&(m.style.cssText=p),h=="CodeMirror-linenumbers"&&(e.lineGutter=m,m.style.width=(e.lineNumWidth||1)+"px")}t.style.display=a.length?"":"none",zu(e)}function Ca(e){b1(e.display),et(e),y1(e)}function Of(e,t,a,s){var u=this;this.input=a,u.scrollbarFiller=D("div",null,"CodeMirror-scrollbar-filler"),u.scrollbarFiller.setAttribute("cm-not-content","true"),u.gutterFiller=D("div",null,"CodeMirror-gutter-filler"),u.gutterFiller.setAttribute("cm-not-content","true"),u.lineDiv=T("div",null,"CodeMirror-code"),u.selectionDiv=D("div",null,null,"position: relative; z-index: 1"),u.cursorDiv=D("div",null,"CodeMirror-cursors"),u.measure=D("div",null,"CodeMirror-measure"),u.lineMeasure=D("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=D("div",[h],null,"position: relative"),u.sizer=D("div",[u.mover],"CodeMirror-sizer"),u.sizerWidth=null,u.heightForcer=D("div",null,null,"position: absolute; height: "+He+"px; width: 1px;"),u.gutters=D("div",null,"CodeMirror-gutters"),u.lineGutter=null,u.scroller=D("div",[u.sizer,u.heightForcer,u.gutters],"CodeMirror-scroll"),u.scroller.setAttribute("tabIndex","-1"),u.wrapper=D("div",[u.scrollbarFiller,u.gutterFiller,u.scroller],"CodeMirror"),u.wrapper.setAttribute("translate","no"),k&&O<8&&(u.gutters.style.zIndex=-1,u.scroller.style.paddingRight=0),!I&&!(f&&he)&&(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=$u(s.gutters,s.lineNumbers),b1(u),a.init(u)}var xl=0,nr=null;k?nr=-.53:f?nr=15:q?nr=-.7:ue&&(nr=-1/3);function C1(e){var t=e.wheelDeltaX,a=e.wheelDeltaY;return t==null&&e.detail&&e.axis==e.HORIZONTAL_AXIS&&(t=e.detail),a==null&&e.detail&&e.axis==e.VERTICAL_AXIS?a=e.detail:a==null&&(a=e.wheelDelta),{x:t,y:a}}function Tf(e){var t=C1(e);return t.x*=nr,t.y*=nr,t}function w1(e,t){var a=C1(t),s=a.x,u=a.y,h=e.display,p=h.scroller,m=p.scrollWidth>p.clientWidth,b=p.scrollHeight>p.clientHeight;if(!!(s&&m||u&&b)){if(u&&de&&I){e:for(var C=t.target,S=h.view;C!=p;C=C.parentNode)for(var M=0;M<S.length;M++)if(S[M].node==C){e.display.currentWheelTarget=C;break e}}if(s&&!f&&!X&&nr!=null){u&&b&&Gt(e,Math.max(0,p.scrollTop+u*nr)),Ho(e,Math.max(0,p.scrollLeft+s*nr)),(!u||u&&b)&&Cr(t),h.wheelStartX=null;return}if(u&&nr!=null){var $=u*nr,N=e.doc.scrollTop,Z=N+h.wrapper.clientHeight;$<0?N=Math.max(0,N+$-50):Z=Math.min(e.doc.height,Z+$+50),Iu(e,{top:N,bottom:Z})}xl<20&&(h.wheelStartX==null?(h.wheelStartX=p.scrollLeft,h.wheelStartY=p.scrollTop,h.wheelDX=s,h.wheelDY=u,setTimeout(function(){if(h.wheelStartX!=null){var Q=p.scrollLeft-h.wheelStartX,ae=p.scrollTop-h.wheelStartY,ce=ae&&h.wheelDY&&ae/h.wheelDY||Q&&h.wheelDX&&Q/h.wheelDX;h.wheelStartX=h.wheelStartY=null,ce&&(nr=(nr*xl+ce)/(xl+1),++xl)}},200)):(h.wheelDX+=s,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 a=this.ranges[t],s=e.ranges[t];if(!P(a.anchor,s.anchor)||!P(a.head,s.head))return!1}return!0},mn.prototype.deepCopy=function(){for(var e=[],t=0;t<this.ranges.length;t++)e[t]=new xt(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 a=0;a<this.ranges.length;a++){var s=this.ranges[a];if(w(t,s.from())>=0&&w(e,s.to())<=0)return a}return-1};var xt=function(e,t){this.anchor=e,this.head=t};xt.prototype.from=function(){return Ve(this.anchor,this.head)},xt.prototype.to=function(){return oe(this.anchor,this.head)},xt.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function Dr(e,t,a){var s=e&&e.options.selectionsMayTouch,u=t[a];t.sort(function($,N){return w($.from(),N.from())}),a=_e(t,u);for(var h=1;h<t.length;h++){var p=t[h],m=t[h-1],b=w(m.to(),p.from());if(s&&!p.empty()?b>0:b>=0){var C=Ve(m.from(),p.from()),S=oe(m.to(),p.to()),M=m.empty()?p.from()==p.head:m.from()==m.head;h<=a&&--a,t.splice(--h,2,new xt(M?S:C,M?C:S))}}return new mn(t,a)}function oo(e,t){return new mn([new xt(e,t||e)],0)}function so(e){return e.text?ne(e.from.line+e.text.length-1,je(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 so(t);var a=e.line+t.text.length-(t.to.line-t.from.line)-1,s=e.ch;return e.line==t.to.line&&(s+=so(t).ch-t.to.ch),ne(a,s)}function Ru(e,t){for(var a=[],s=0;s<e.sel.ranges.length;s++){var u=e.sel.ranges[s];a.push(new xt(Sn(u.anchor,t),Sn(u.head,t)))}return Dr(e.cm,a,e.sel.primIndex)}function x1(e,t,a){return e.line==t.line?ne(a.line,e.ch-t.ch+a.ch):ne(a.line+(e.line-t.line),e.ch)}function Pf(e,t,a){for(var s=[],u=ne(e.first,0),h=u,p=0;p<t.length;p++){var m=t[p],b=x1(m.from,u,h),C=x1(so(m),u,h);if(u=m.to,h=C,a=="around"){var S=e.sel.ranges[p],M=w(S.head,S.anchor)<0;s[p]=new xt(M?C:b,M?b:C)}else s[p]=new xt(b,b)}return new mn(s,e.sel.primIndex)}function Hu(e){e.doc.mode=ds(e.options,e.doc.modeOption),wa(e)}function wa(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,ui(e,100),e.state.modeGen++,e.curOp&&et(e)}function Fu(e,t){return t.from.ch==0&&t.to.ch==0&&je(t.text)==""&&(!e.cm||e.cm.options.wholeLineUpdateBefore)}function _l(e,t,a,s){function u(be){return a?a[be]:null}function h(be,fe,we){J0(be,fe,we,s),fr(be,"change",be,t)}function p(be,fe){for(var we=[],Ie=be;Ie<fe;++Ie)we.push(new Tr(C[Ie],u(Ie),s));return we}var m=t.from,b=t.to,C=t.text,S=Me(e,m.line),M=Me(e,b.line),$=je(C),N=u(C.length-1),Z=b.line-m.line;if(t.full)e.insert(0,p(0,C.length)),e.remove(C.length,e.size-C.length);else if(Fu(e,t)){var Q=p(0,C.length-1);h(M,M.text,N),Z&&e.remove(m.line,Z),Q.length&&e.insert(m.line,Q)}else if(S==M)if(C.length==1)h(S,S.text.slice(0,m.ch)+$+S.text.slice(b.ch),N);else{var ae=p(1,C.length-1);ae.push(new Tr($+S.text.slice(b.ch),N,s)),h(S,S.text.slice(0,m.ch)+C[0],u(0)),e.insert(m.line+1,ae)}else if(C.length==1)h(S,S.text.slice(0,m.ch)+C[0]+M.text.slice(b.ch),u(0)),e.remove(m.line+1,Z);else{h(S,S.text.slice(0,m.ch)+C[0],u(0)),h(M,$+M.text.slice(b.ch),N);var ce=p(1,C.length-1);Z>1&&e.remove(m.line+1,Z-1),e.insert(m.line+1,ce)}fr(e,"change",e,t)}function ao(e,t,a){function s(u,h,p){if(u.linked)for(var m=0;m<u.linked.length;++m){var b=u.linked[m];if(b.doc!=h){var C=p&&b.sharedHist;a&&!C||(t(b.doc,C),s(b.doc,u,C))}}}s(e,null,!0)}function _1(e,t){if(t.cm)throw new Error("This document is already in use.");e.doc=t,t.cm=e,Xi(e),Hu(e),Ll(e),e.options.direction=t.direction,e.options.lineWrapping||ca(e),e.options.mode=t.modeOption,et(e)}function Ll(e){(e.doc.direction=="rtl"?Pt:ye)(e.display.lineDiv,"CodeMirror-rtl")}function xa(e){Er(e,function(){Ll(e),et(e)})}function Wo(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 Wu(e,t){var a={from:j(t.from),to:so(t),text:vn(e,t.from,t.to)};return L1(e,a,t.from.line,t.to.line+1),ao(e,function(s){return L1(s,a,t.from.line,t.to.line+1)},!0),a}function Bu(e){for(;e.length;){var t=je(e);if(t.ranges)e.pop();else break}}function Ef(e,t){if(t)return Bu(e.done),je(e.done);if(e.done.length&&!je(e.done).ranges)return je(e.done);if(e.done.length>1&&!e.done[e.done.length-2].ranges)return e.done.pop(),je(e.done)}function fi(e,t,a,s){var u=e.history;u.undone.length=0;var h=+new Date,p,m;if((u.lastOp==s||u.lastOrigin==t.origin&&t.origin&&(t.origin.charAt(0)=="+"&&u.lastModTime>h-(e.cm?e.cm.options.historyEventDelay:500)||t.origin.charAt(0)=="*"))&&(p=Ef(u,u.lastOp==s)))m=je(p.changes),w(t.from,t.to)==0&&w(t.from,m.to)==0?m.to=so(t):p.changes.push(Wu(e,t));else{var b=je(u.done);for((!b||!b.ranges)&&Jr(e.sel,u.done),p={changes:[Wu(e,t)],generation:u.generation},u.done.push(p);u.done.length>u.undoDepth;)u.done.shift(),u.done[0].ranges||u.done.shift()}u.done.push(a),u.generation=++u.maxGeneration,u.lastModTime=u.lastSelTime=h,u.lastOp=u.lastSelOp=s,u.lastOrigin=u.lastSelOrigin=t.origin,m||Ze(e,"historyAdded")}function Uu(e,t,a,s){var u=t.charAt(0);return u=="*"||u=="+"&&a.ranges.length==s.ranges.length&&a.somethingSelected()==s.somethingSelected()&&new Date-e.history.lastSelTime<=(e.cm?e.cm.options.historyEventDelay:500)}function Bo(e,t,a,s){var u=e.history,h=s&&s.origin;a==u.lastSelOp||h&&u.lastSelOrigin==h&&(u.lastModTime==u.lastSelTime&&u.lastOrigin==h||Uu(e,h,je(u.done),t))?u.done[u.done.length-1]=t:Jr(t,u.done),u.lastSelTime=+new Date,u.lastSelOrigin=h,u.lastSelOp=a,s&&s.clearRedo!==!1&&Bu(u.undone)}function Jr(e,t){var a=je(t);a&&a.ranges&&a.equals(e)||t.push(e)}function L1(e,t,a,s){var u=t["spans_"+e.id],h=0;e.iter(Math.max(e.first,a),Math.min(e.first+e.size,s),function(p){p.markedSpans&&((u||(u=t["spans_"+e.id]={}))[h]=p.markedSpans),++h})}function S1(e){if(!e)return null;for(var t,a=0;a<e.length;++a)e[a].marker.explicitlyCleared?t||(t=e.slice(0,a)):t&&t.push(e[a]);return t?t.length?t:null:e}function k1(e,t){var a=t["spans_"+e.id];if(!a)return null;for(var s=[],u=0;u<t.text.length;++u)s.push(S1(a[u]));return s}function Ss(e,t){var a=k1(e,t),s=bu(e,t);if(!a)return s;if(!s)return a;for(var u=0;u<a.length;++u){var h=a[u],p=s[u];if(h&&p){e:for(var m=0;m<p.length;++m){for(var b=p[m],C=0;C<h.length;++C)if(h[C].marker==b.marker)continue e;h.push(b)}}else p&&(a[u]=p)}return a}function yn(e,t,a){for(var s=[],u=0;u<e.length;++u){var h=e[u];if(h.ranges){s.push(a?mn.prototype.deepCopy.call(h):h);continue}var p=h.changes,m=[];s.push({changes:m});for(var b=0;b<p.length;++b){var C=p[b],S=void 0;if(m.push({from:C.from,to:C.to,text:C.text}),t)for(var M in C)(S=M.match(/^spans_(\d+)$/))&&_e(t,Number(S[1]))>-1&&(je(m)[M]=C[M],delete C[M])}}return s}function Sl(e,t,a,s){if(s){var u=e.anchor;if(a){var h=w(t,u)<0;h!=w(a,u)<0?(u=t,t=a):h!=w(t,a)<0&&(t=a)}return new xt(u,t)}else return new xt(a||t,t)}function kl(e,t,a,s,u){u==null&&(u=e.cm&&(e.cm.display.shift||e.extend)),wr(e,new mn([Sl(e.sel.primary(),t,a,u)],0),s)}function _a(e,t,a){for(var s=[],u=e.cm&&(e.cm.display.shift||e.extend),h=0;h<e.sel.ranges.length;h++)s[h]=Sl(e.sel.ranges[h],t[h],null,u);var p=Dr(e.cm,s,e.sel.primIndex);wr(e,p,a)}function Yu(e,t,a,s){var u=e.sel.ranges.slice(0);u[t]=a,wr(e,Dr(e.cm,u,e.sel.primIndex),s)}function Zu(e,t,a,s){wr(e,oo(t,a),s)}function Ir(e,t,a){var s={ranges:t.ranges,update:function(u){this.ranges=[];for(var h=0;h<u.length;h++)this.ranges[h]=new xt(ge(e,u[h].anchor),ge(e,u[h].head))},origin:a&&a.origin};return Ze(e,"beforeSelectionChange",e,s),e.cm&&Ze(e.cm,"beforeSelectionChange",e.cm,s),s.ranges!=t.ranges?Dr(e.cm,s.ranges,s.ranges.length-1):t}function Ml(e,t,a){var s=e.history.done,u=je(s);u&&u.ranges?(s[s.length-1]=t,bn(e,t,a)):wr(e,t,a)}function wr(e,t,a){bn(e,t,a),Bo(e,e.sel,e.cm?e.cm.curOp.id:NaN,a)}function bn(e,t,a){(br(e,"beforeSelectionChange")||e.cm&&br(e.cm,"beforeSelectionChange"))&&(t=Ir(e,t,a));var s=a&&a.bias||(w(t.primary().head,e.sel.primary().head)<0?-1:1);Ol(e,lo(e,t,s,!0)),!(a&&a.scroll===!1)&&e.cm&&e.cm.getOption("readOnly")!="nocursor"&&to(e.cm)}function Ol(e,t){t.equals(e.sel)||(e.sel=t,e.cm&&(e.cm.curOp.updateInput=1,e.cm.curOp.selectionChanged=!0,cs(e.cm)),fr(e,"cursorActivity",e))}function La(e){Ol(e,lo(e,e.sel,null,!1))}function lo(e,t,a,s){for(var u,h=0;h<t.ranges.length;h++){var p=t.ranges[h],m=t.ranges.length==e.sel.ranges.length&&e.sel.ranges[h],b=xr(e,p.anchor,m&&m.anchor,a,s),C=xr(e,p.head,m&&m.head,a,s);(u||b!=p.anchor||C!=p.head)&&(u||(u=t.ranges.slice(0,h)),u[h]=new xt(b,C))}return u?Dr(e.cm,u,t.primIndex):t}function Uo(e,t,a,s,u){var h=Me(e,t.line);if(h.markedSpans)for(var p=0;p<h.markedSpans.length;++p){var m=h.markedSpans[p],b=m.marker,C="selectLeft"in b?!b.selectLeft:b.inclusiveLeft,S="selectRight"in b?!b.selectRight:b.inclusiveRight;if((m.from==null||(C?m.from<=t.ch:m.from<t.ch))&&(m.to==null||(S?m.to>=t.ch:m.to>t.ch))){if(u&&(Ze(b,"beforeCursorEnter"),b.explicitlyCleared))if(h.markedSpans){--p;continue}else break;if(!b.atomic)continue;if(a){var M=b.find(s<0?1:-1),$=void 0;if((s<0?S:C)&&(M=Tl(e,M,-s,M&&M.line==t.line?h:null)),M&&M.line==t.line&&($=w(M,a))&&(s<0?$<0:$>0))return Uo(e,M,t,s,u)}var N=b.find(s<0?-1:1);return(s<0?C:S)&&(N=Tl(e,N,s,N.line==t.line?h:null)),N?Uo(e,N,t,s,u):null}}return t}function xr(e,t,a,s,u){var h=s||1,p=Uo(e,t,a,h,u)||!u&&Uo(e,t,a,h,!0)||Uo(e,t,a,-h,u)||!u&&Uo(e,t,a,-h,!0);return p||(e.cantEdit=!0,ne(e.first,0))}function Tl(e,t,a,s){return a<0&&t.ch==0?t.line>e.first?ge(e,ne(t.line-1)):null:a>0&&t.ch==(s||Me(e,t.line)).text.length?t.line<e.first+e.size-1?ne(t.line+1,0):null:new ne(t.line,t.ch+a)}function M1(e){e.setSelection(ne(e.firstLine(),0),ne(e.lastLine()),it)}function O1(e,t,a){var s={canceled:!1,from:t.from,to:t.to,text:t.text,origin:t.origin,cancel:function(){return s.canceled=!0}};return a&&(s.update=function(u,h,p,m){u&&(s.from=ge(e,u)),h&&(s.to=ge(e,h)),p&&(s.text=p),m!==void 0&&(s.origin=m)}),Ze(e,"beforeChange",e,s),e.cm&&Ze(e.cm,"beforeChange",e.cm,s),s.canceled?(e.cm&&(e.cm.curOp.updateInput=2),null):{from:s.from,to:s.to,text:s.text,origin:s.origin}}function ks(e,t,a){if(e.cm){if(!e.cm.curOp)return qt(e.cm,ks)(e,t,a);if(e.cm.state.suppressEdits)return}if(!((br(e,"beforeChange")||e.cm&&br(e.cm,"beforeChange"))&&(t=O1(e,t,!0),!t))){var s=yu&&!a&&Cu(e,t.from,t.to);if(s)for(var u=s.length-1;u>=0;--u)Pl(e,{from:s[u].from,to:s[u].to,text:u?[""]:t.text,origin:t.origin});else Pl(e,t)}}function Pl(e,t){if(!(t.text.length==1&&t.text[0]==""&&w(t.from,t.to)==0)){var a=Ru(e,t);fi(e,t,a,e.cm?e.cm.curOp.id:NaN),Os(e,t,a,bu(e,t));var s=[];ao(e,function(u,h){!h&&_e(s,u.history)==-1&&(P1(u.history,t),s.push(u.history)),Os(u,t,null,bu(u,t))})}}function El(e,t,a){var s=e.cm&&e.cm.state.suppressEdits;if(!(s&&!a)){for(var u=e.history,h,p=e.sel,m=t=="undo"?u.done:u.undone,b=t=="undo"?u.undone:u.done,C=0;C<m.length&&(h=m[C],!(a?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(Jr(h,b),a&&!h.equals(e.sel)){wr(e,h,{clearRedo:!1});return}p=h}else if(s){m.push(h);return}else break;var S=[];Jr(p,b),b.push({changes:S,generation:u.generation}),u.generation=h.generation||++u.maxGeneration;for(var M=br(e,"beforeChange")||e.cm&&br(e.cm,"beforeChange"),$=function(Q){var ae=h.changes[Q];if(ae.origin=t,M&&!O1(e,ae,!1))return m.length=0,{};S.push(Wu(e,ae));var ce=Q?Ru(e,ae):je(m);Os(e,ae,ce,Ss(e,ae)),!Q&&e.cm&&e.cm.scrollIntoView({from:ae.from,to:so(ae)});var be=[];ao(e,function(fe,we){!we&&_e(be,fe.history)==-1&&(P1(fe.history,ae),be.push(fe.history)),Os(fe,ae,null,Ss(fe,ae))})},N=h.changes.length-1;N>=0;--N){var Z=$(N);if(Z)return Z.v}}}}function Ms(e,t){if(t!=0&&(e.first+=t,e.sel=new mn(mt(e.sel.ranges,function(u){return new xt(ne(u.anchor.line+t,u.anchor.ch),ne(u.head.line+t,u.head.ch))}),e.sel.primIndex),e.cm)){et(e.cm,e.first,e.first-t,t);for(var a=e.cm.display,s=a.viewFrom;s<a.viewTo;s++)Qi(e.cm,s,"gutter")}}function Os(e,t,a,s){if(e.cm&&!e.cm.curOp)return qt(e.cm,Os)(e,t,a,s);if(t.to.line<e.first){Ms(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);Ms(e,u),t={from:ne(e.first,0),to:ne(t.to.line+u,t.to.ch),text:[je(t.text)],origin:t.origin}}var h=e.lastLine();t.to.line>h&&(t={from:t.from,to:ne(h,Me(e,h).text.length),text:[t.text[0]],origin:t.origin}),t.removed=vn(e,t.from,t.to),a||(a=Ru(e,t)),e.cm?Af(e.cm,t,s):_l(e,t,s),bn(e,a,it),e.cantEdit&&xr(e,ne(e.firstLine(),0))&&(e.cantEdit=!1)}}function Af(e,t,a){var s=e.doc,u=e.display,h=t.from,p=t.to,m=!1,b=h.line;e.options.lineWrapping||(b=wt(ii(Me(s,h.line))),s.iter(b,p.line+1,function(N){if(N==u.maxLine)return m=!0,!0})),s.sel.contains(t.from,t.to)>-1&&cs(e),_l(s,t,a,h1(e)),e.options.lineWrapping||(s.iter(b,h.line+t.text.length,function(N){var Z=ua(N);Z>u.maxLineLength&&(u.maxLine=N,u.maxLineLength=Z,u.maxLineChanged=!0,m=!1)}),m&&(e.curOp.updateMaxLine=!0)),tf(s,h.line),ui(e,400);var C=t.text.length-(p.line-h.line)-1;t.full?et(e):h.line==p.line&&t.text.length==1&&!Fu(e.doc,t)?Qi(e,h.line,"text"):et(e,h.line,p.line+1,C);var S=br(e,"changes"),M=br(e,"change");if(M||S){var $={from:h,to:p,text:t.text,removed:t.removed,origin:t.origin};M&&fr(e,"change",e,$),S&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push($)}e.display.selForContextMenu=null}function Ts(e,t,a,s,u){var h;s||(s=a),w(s,a)<0&&(h=[s,a],a=h[0],s=h[1]),typeof t=="string"&&(t=e.splitLines(t)),ks(e,{from:a,to:s,text:t,origin:u})}function Ps(e,t,a,s){a<e.line?e.line+=s:t<e.line&&(e.line=t,e.ch=0)}function T1(e,t,a,s){for(var u=0;u<e.length;++u){var h=e[u],p=!0;if(h.ranges){h.copied||(h=e[u]=h.deepCopy(),h.copied=!0);for(var m=0;m<h.ranges.length;m++)Ps(h.ranges[m].anchor,t,a,s),Ps(h.ranges[m].head,t,a,s);continue}for(var b=0;b<h.changes.length;++b){var C=h.changes[b];if(a<C.from.line)C.from=ne(C.from.line+s,C.from.ch),C.to=ne(C.to.line+s,C.to.ch);else if(t<=C.to.line){p=!1;break}}p||(e.splice(0,u+1),u=0)}}function P1(e,t){var a=t.from.line,s=t.to.line,u=t.text.length-(s-a)-1;T1(e.done,a,s,u),T1(e.undone,a,s,u)}function Yo(e,t,a,s){var u=t,h=t;return typeof t=="number"?h=Me(e,pt(e,t)):u=wt(t),u==null?null:(s(h,u)&&e.cm&&Qi(e.cm,u,a),h)}function Es(e){this.lines=e,this.parent=null;for(var t=0,a=0;a<e.length;++a)e[a].parent=this,t+=e[a].height;this.height=t}Es.prototype={chunkSize:function(){return this.lines.length},removeInner:function(e,t){for(var a=e,s=e+t;a<s;++a){var u=this.lines[a];this.height-=u.height,e1(u),fr(u,"delete")}this.lines.splice(e,t)},collapse:function(e){e.push.apply(e,this.lines)},insertInner:function(e,t,a){this.height+=a,this.lines=this.lines.slice(0,e).concat(t).concat(this.lines.slice(e));for(var s=0;s<t.length;++s)t[s].parent=this},iterN:function(e,t,a){for(var s=e+t;e<s;++e)if(a(this.lines[e]))return!0}};function Sa(e){this.children=e;for(var t=0,a=0,s=0;s<e.length;++s){var u=e[s];t+=u.chunkSize(),a+=u.height,u.parent=this}this.size=t,this.height=a,this.parent=null}Sa.prototype={chunkSize:function(){return this.size},removeInner:function(e,t){this.size-=t;for(var a=0;a<this.children.length;++a){var s=this.children[a],u=s.chunkSize();if(e<u){var h=Math.min(t,u-e),p=s.height;if(s.removeInner(e,h),this.height-=p-s.height,u==h&&(this.children.splice(a--,1),s.parent=null),(t-=h)==0)break;e=0}else e-=u}if(this.size-t<25&&(this.children.length>1||!(this.children[0]instanceof Es))){var m=[];this.collapse(m),this.children=[new Es(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,a){this.size+=t.length,this.height+=a;for(var s=0;s<this.children.length;++s){var u=this.children[s],h=u.chunkSize();if(e<=h){if(u.insertInner(e,t,a),u.lines&&u.lines.length>50){for(var p=u.lines.length%25+25,m=p;m<u.lines.length;){var b=new Es(u.lines.slice(m,m+=25));u.height-=b.height,this.children.splice(++s,0,b),b.parent=this}u.lines=u.lines.slice(0,p),this.maybeSpill()}break}e-=h}},maybeSpill:function(){if(!(this.children.length<=10)){var e=this;do{var t=e.children.splice(e.children.length-5,5),a=new Sa(t);if(e.parent){e.size-=a.size,e.height-=a.height;var u=_e(e.parent.children,e);e.parent.children.splice(u+1,0,a)}else{var s=new Sa(e.children);s.parent=e,e.children=[s,a],e=s}a.parent=e.parent}while(e.children.length>10);e.parent.maybeSpill()}},iterN:function(e,t,a){for(var s=0;s<this.children.length;++s){var u=this.children[s],h=u.chunkSize();if(e<h){var p=Math.min(t,h-e);if(u.iterN(e,p,a))return!0;if((t-=p)==0)break;e=0}else e-=h}}};var ka=function(e,t,a){if(a)for(var s in a)a.hasOwnProperty(s)&&(this[s]=a[s]);this.doc=e,this.node=t};ka.prototype.clear=function(){var e=this.doc.cm,t=this.line.widgets,a=this.line,s=wt(a);if(!(s==null||!t)){for(var u=0;u<t.length;++u)t[u]==this&&t.splice(u--,1);t.length||(a.widgets=null);var h=Do(this);tn(a,Math.max(0,a.height-h)),e&&(Er(e,function(){E1(e,a,-h),Qi(e,s,"widget")}),fr(e,"lineWidgetCleared",e,this,s))}},ka.prototype.changed=function(){var e=this,t=this.height,a=this.doc.cm,s=this.line;this.height=null;var u=Do(this)-t;!u||(Vt(this.doc,s)||tn(s,s.height+u),a&&Er(a,function(){a.curOp.forceUpdate=!0,E1(a,s,u),fr(a,"lineWidgetChanged",a,e,wt(s))}))},Hn(ka);function E1(e,t,a){Kr(t)<(e.curOp&&e.curOp.scrollTop||e.doc.scrollTop)&&xs(e,a)}function A1(e,t,a,s){var u=new ka(e,a,s),h=e.cm;return h&&u.noHScroll&&(h.display.alignWidgets=!0),Yo(e,t,"widget",function(p){var m=p.widgets||(p.widgets=[]);if(u.insertAt==null?m.push(u):m.splice(Math.min(m.length,Math.max(0,u.insertAt)),0,u),u.line=p,h&&!Vt(e,p)){var b=Kr(p)<e.scrollTop;tn(p,p.height+Do(u)),b&&xs(h,u.height),h.curOp.forceUpdate=!0}return!0}),h&&fr(h,"lineWidgetAdded",h,u,typeof t=="number"?t:wt(t)),u}var Al=0,uo=function(e,t){this.lines=[],this.type=t,this.doc=e,this.id=++Al};uo.prototype.clear=function(){if(!this.explicitlyCleared){var e=this.doc.cm,t=e&&!e.curOp;if(t&&Vn(e),br(this,"clear")){var a=this.find();a&&fr(this,"clear",a.from,a.to)}for(var s=null,u=null,h=0;h<this.lines.length;++h){var p=this.lines[h],m=aa(p.markedSpans,this);e&&!this.collapsed?Qi(e,wt(p),"text"):e&&(m.to!=null&&(u=wt(p)),m.from!=null&&(s=wt(p))),p.markedSpans=rf(p.markedSpans,m),m.from==null&&this.collapsed&&!Vt(this.doc,p)&&e&&tn(p,Ki(e.display))}if(e&&this.collapsed&&!e.options.lineWrapping)for(var b=0;b<this.lines.length;++b){var C=ii(this.lines[b]),S=ua(C);S>e.display.maxLineLength&&(e.display.maxLine=C,e.display.maxLineLength=S,e.display.maxLineChanged=!0)}s!=null&&e&&this.collapsed&&et(e,s,u+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&La(e.doc)),e&&fr(e,"markerCleared",e,this,s,u),t&&li(e),this.parent&&this.parent.clear()}},uo.prototype.find=function(e,t){e==null&&this.type=="bookmark"&&(e=1);for(var a,s,u=0;u<this.lines.length;++u){var h=this.lines[u],p=aa(h.markedSpans,this);if(p.from!=null&&(a=ne(t?h:wt(h),p.from),e==-1))return a;if(p.to!=null&&(s=ne(t?h:wt(h),p.to),e==1))return s}return a&&{from:a,to:s}},uo.prototype.changed=function(){var e=this,t=this.find(-1,!0),a=this,s=this.doc.cm;!t||!s||Er(s,function(){var u=t.line,h=wt(t.line),p=Eu(s,h);if(p&&(u1(p),s.curOp.selectionChanged=s.curOp.forceUpdate=!0),s.curOp.updateMaxLine=!0,!Vt(a.doc,u)&&a.height!=null){var m=a.height;a.height=null;var b=Do(a)-m;b&&tn(u,u.height+b)}fr(s,"markerChanged",s,e)})},uo.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)},uo.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)}},Hn(uo);function co(e,t,a,s,u){if(s&&s.shared)return D1(e,t,a,s,u);if(e.cm&&!e.cm.curOp)return qt(e.cm,co)(e,t,a,s,u);var h=new uo(e,u),p=w(t,a);if(s&&Qt(s,h,!1),p>0||p==0&&h.clearWhenEmpty!==!1)return h;if(h.replacedWith&&(h.collapsed=!0,h.widgetNode=T("span",[h.replacedWith],"CodeMirror-widget"),s.handleMouseEvents||h.widgetNode.setAttribute("cm-ignore-events","true"),s.insertLeft&&(h.widgetNode.insertLeft=!0)),h.collapsed){if(X0(e,t.line,t,a,h)||t.line!=a.line&&X0(e,a.line,t,a,h))throw new Error("Inserting collapsed marker partially overlapping an existing one");V0()}h.addToHistory&&fi(e,{from:t,to:a,origin:"markText"},e.sel,NaN);var m=t.line,b=e.cm,C;if(e.iter(m,a.line+1,function(M){b&&h.collapsed&&!b.options.lineWrapping&&ii(M)==b.display.maxLine&&(C=!0),h.collapsed&&m!=t.line&&tn(M,0),G0(M,new il(h,m==t.line?t.ch:null,m==a.line?a.ch:null),e.cm&&e.cm.curOp),++m}),h.collapsed&&e.iter(t.line,a.line+1,function(M){Vt(e,M)&&tn(M,0)}),h.clearOnEnter&&Ne(h,"beforeCursorEnter",function(){return h.clear()}),h.readOnly&&(Z0(),(e.history.done.length||e.history.undone.length)&&e.clearHistory()),h.collapsed&&(h.id=++Al,h.atomic=!0),b){if(C&&(b.curOp.updateMaxLine=!0),h.collapsed)et(b,t.line,a.line+1);else if(h.className||h.startStyle||h.endStyle||h.css||h.attributes||h.title)for(var S=t.line;S<=a.line;S++)Qi(b,S,"text");h.atomic&&La(b.doc),fr(b,"markerAdded",b,h)}return h}var As=function(e,t){this.markers=e,this.primary=t;for(var a=0;a<e.length;++a)e[a].parent=this};As.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var e=0;e<this.markers.length;++e)this.markers[e].clear();fr(this,"clear")}},As.prototype.find=function(e,t){return this.primary.find(e,t)},Hn(As);function D1(e,t,a,s,u){s=Qt(s),s.shared=!1;var h=[co(e,t,a,s,u)],p=h[0],m=s.widgetNode;return ao(e,function(b){m&&(s.widgetNode=m.cloneNode(!0)),h.push(co(b,ge(b,t),ge(b,a),s,u));for(var C=0;C<b.linked.length;++C)if(b.linked[C].isParent)return;p=je(h)}),new As(h,p)}function Vu(e){return e.findMarks(ne(e.first,0),e.clipPos(ne(e.lastLine())),function(t){return t.parent})}function Dl(e,t){for(var a=0;a<t.length;a++){var s=t[a],u=s.find(),h=e.clipPos(u.from),p=e.clipPos(u.to);if(w(h,p)){var m=co(e,h,p,s.primary,s.primary.type);s.markers.push(m),m.parent=s}}}function Df(e){for(var t=function(s){var u=e[s],h=[u.primary.doc];ao(u.primary.doc,function(b){return h.push(b)});for(var p=0;p<u.markers.length;p++){var m=u.markers[p];_e(h,m.doc)==-1&&(m.parent=null,u.markers.splice(p--,1))}},a=0;a<e.length;a++)t(a)}var I1=0,Hr=function(e,t,a,s,u){if(!(this instanceof Hr))return new Hr(e,t,a,s,u);a==null&&(a=0),Sa.call(this,[new Es([new Tr("",null)])]),this.first=a,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=a;var h=ne(a,0);this.sel=oo(h),this.history=new Wo(null),this.id=++I1,this.modeOption=t,this.lineSep=s,this.direction=u=="rtl"?"rtl":"ltr",this.extend=!1,typeof e=="string"&&(e=this.splitLines(e)),_l(this,{from:h,to:h,text:e}),wr(this,oo(h),it)};Hr.prototype=en(Sa.prototype,{constructor:Hr,iter:function(e,t,a){a?this.iterN(e-this.first,t-e,a):this.iterN(this.first,this.first+this.size,e)},insert:function(e,t){for(var a=0,s=0;s<t.length;++s)a+=t[s].height;this.insertInner(e-this.first,t,a)},remove:function(e,t){this.removeInner(e-this.first,t)},getValue:function(e){var t=oa(this,this.first,this.first+this.size);return e===!1?t:t.join(e||this.lineSeparator())},setValue:_(function(e){var t=ne(this.first,0),a=this.first+this.size-1;ks(this,{from:t,to:ne(a,Me(this,a).text.length),text:this.splitLines(e),origin:"setValue",full:!0},!0),this.cm&&ga(this.cm,0,0),wr(this,oo(t),it)}),replaceRange:function(e,t,a,s){t=ge(this,t),a=a?ge(this,a):t,Ts(this,e,t,a,s)},getRange:function(e,t,a){var s=vn(this,ge(this,e),ge(this,t));return a===!1?s:a===""?s.join(""):s.join(a||this.lineSeparator())},getLine:function(e){var t=this.getLineHandle(e);return t&&t.text},getLineHandle:function(e){if(Yi(this,e))return Me(this,e)},getLineNumber:function(e){return wt(e)},getLineHandleVisualStart:function(e){return typeof e=="number"&&(e=Me(this,e)),ii(e)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(e){return ge(this,e)},getCursor:function(e){var t=this.sel.primary(),a;return e==null||e=="head"?a=t.head:e=="anchor"?a=t.anchor:e=="end"||e=="to"||e===!1?a=t.to():a=t.from(),a},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:_(function(e,t,a){Zu(this,ge(this,typeof e=="number"?ne(e,t||0):e),null,a)}),setSelection:_(function(e,t,a){Zu(this,ge(this,e),ge(this,t||e),a)}),extendSelection:_(function(e,t,a){kl(this,ge(this,e),t&&ge(this,t),a)}),extendSelections:_(function(e,t){_a(this,rn(this,e),t)}),extendSelectionsBy:_(function(e,t){var a=mt(this.sel.ranges,e);_a(this,rn(this,a),t)}),setSelections:_(function(e,t,a){if(!!e.length){for(var s=[],u=0;u<e.length;u++)s[u]=new xt(ge(this,e[u].anchor),ge(this,e[u].head||e[u].anchor));t==null&&(t=Math.min(e.length-1,this.sel.primIndex)),wr(this,Dr(this.cm,s,t),a)}}),addSelection:_(function(e,t,a){var s=this.sel.ranges.slice(0);s.push(new xt(ge(this,e),ge(this,t||e))),wr(this,Dr(this.cm,s,s.length-1),a)}),getSelection:function(e){for(var t=this.sel.ranges,a,s=0;s<t.length;s++){var u=vn(this,t[s].from(),t[s].to());a=a?a.concat(u):u}return e===!1?a:a.join(e||this.lineSeparator())},getSelections:function(e){for(var t=[],a=this.sel.ranges,s=0;s<a.length;s++){var u=vn(this,a[s].from(),a[s].to());e!==!1&&(u=u.join(e||this.lineSeparator())),t[s]=u}return t},replaceSelection:function(e,t,a){for(var s=[],u=0;u<this.sel.ranges.length;u++)s[u]=e;this.replaceSelections(s,t,a||"+input")},replaceSelections:_(function(e,t,a){for(var s=[],u=this.sel,h=0;h<u.ranges.length;h++){var p=u.ranges[h];s[h]={from:p.from(),to:p.to(),text:this.splitLines(e[h]),origin:a}}for(var m=t&&t!="end"&&Pf(this,s,t),b=s.length-1;b>=0;b--)ks(this,s[b]);m?Ml(this,m):this.cm&&to(this.cm)}),undo:_(function(){El(this,"undo")}),redo:_(function(){El(this,"redo")}),undoSelection:_(function(){El(this,"undo",!0)}),redoSelection:_(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,a=0,s=0;s<e.done.length;s++)e.done[s].ranges||++t;for(var u=0;u<e.undone.length;u++)e.undone[u].ranges||++a;return{undo:t,redo:a}},clearHistory:function(){var e=this;this.history=new Wo(this.history),ao(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 Wo(this.history);t.done=yn(e.done.slice(0),null,!0),t.undone=yn(e.undone.slice(0),null,!0)},setGutterMarker:_(function(e,t,a){return Yo(this,e,"gutter",function(s){var u=s.gutterMarkers||(s.gutterMarkers={});return u[t]=a,!a&&ie(u)&&(s.gutterMarkers=null),!0})}),clearGutter:_(function(e){var t=this;this.iter(function(a){a.gutterMarkers&&a.gutterMarkers[e]&&Yo(t,a,"gutter",function(){return a.gutterMarkers[e]=null,ie(a.gutterMarkers)&&(a.gutterMarkers=null),!0})})}),lineInfo:function(e){var t;if(typeof e=="number"){if(!Yi(this,e)||(t=e,e=Me(this,e),!e))return null}else if(t=wt(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:_(function(e,t,a){return Yo(this,e,t=="gutter"?"gutter":"class",function(s){var u=t=="text"?"textClass":t=="background"?"bgClass":t=="gutter"?"gutterClass":"wrapClass";if(!s[u])s[u]=a;else{if(pe(a).test(s[u]))return!1;s[u]+=" "+a}return!0})}),removeLineClass:_(function(e,t,a){return Yo(this,e,t=="gutter"?"gutter":"class",function(s){var u=t=="text"?"textClass":t=="background"?"bgClass":t=="gutter"?"gutterClass":"wrapClass",h=s[u];if(h)if(a==null)s[u]=null;else{var p=h.match(pe(a));if(!p)return!1;var m=p.index+p[0].length;s[u]=h.slice(0,p.index)+(!p.index||m==h.length?"":" ")+h.slice(m)||null}else return!1;return!0})}),addLineWidget:_(function(e,t,a){return A1(this,e,t,a)}),removeLineWidget:function(e){e.clear()},markText:function(e,t,a){return co(this,ge(this,e),ge(this,t),a,a&&a.type||"range")},setBookmark:function(e,t){var a={replacedWith:t&&(t.nodeType==null?t.widget:t),insertLeft:t&&t.insertLeft,clearWhenEmpty:!1,shared:t&&t.shared,handleMouseEvents:t&&t.handleMouseEvents};return e=ge(this,e),co(this,e,e,a,"bookmark")},findMarksAt:function(e){e=ge(this,e);var t=[],a=Me(this,e.line).markedSpans;if(a)for(var s=0;s<a.length;++s){var u=a[s];(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,a){e=ge(this,e),t=ge(this,t);var s=[],u=e.line;return this.iter(e.line,t.line+1,function(h){var p=h.markedSpans;if(p)for(var m=0;m<p.length;m++){var b=p[m];!(b.to!=null&&u==e.line&&e.ch>=b.to||b.from==null&&u!=e.line||b.from!=null&&u==t.line&&b.from>=t.ch)&&(!a||a(b.marker))&&s.push(b.marker.parent||b.marker)}++u}),s},getAllMarks:function(){var e=[];return this.iter(function(t){var a=t.markedSpans;if(a)for(var s=0;s<a.length;++s)a[s].from!=null&&e.push(a[s].marker)}),e},posFromIndex:function(e){var t,a=this.first,s=this.lineSeparator().length;return this.iter(function(u){var h=u.text.length+s;if(h>e)return t=e,!0;e-=h,++a}),ge(this,ne(a,t))},indexFromPos:function(e){e=ge(this,e);var t=e.ch;if(e.line<this.first||e.ch<0)return 0;var a=this.lineSeparator().length;return this.iter(this.first,e.line,function(s){t+=s.text.length+a}),t},copy:function(e){var t=new Hr(oa(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,a=this.first+this.size;e.from!=null&&e.from>t&&(t=e.from),e.to!=null&&e.to<a&&(a=e.to);var s=new Hr(oa(this,t,a),e.mode||this.modeOption,t,this.lineSep,this.direction);return e.sharedHist&&(s.history=this.history),(this.linked||(this.linked=[])).push({doc:s,sharedHist:e.sharedHist}),s.linked=[{doc:this,isParent:!0,sharedHist:e.sharedHist}],Dl(s,Vu(this)),s},unlinkDoc:function(e){if(e instanceof Dt&&(e=e.doc),this.linked)for(var t=0;t<this.linked.length;++t){var a=this.linked[t];if(a.doc==e){this.linked.splice(t,1),e.unlinkDoc(this),Df(Vu(this));break}}if(e.history==this.history){var s=[e.id];ao(e,function(u){return s.push(u.id)},!0),e.history=new Wo(null),e.history.done=yn(this.history.done,s),e.history.undone=yn(this.history.undone,s)}},iterLinkedDocs:function(e){ao(this,e)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(e){return this.lineSep?e.split(this.lineSep):Oo(e)},lineSeparator:function(){return this.lineSep||`
2097
- `},setDirection:_(function(e){e!="rtl"&&(e="ltr"),e!=this.direction&&(this.direction=e,this.iter(function(t){return t.order=null}),this.cm&&xa(this.cm))})}),Hr.prototype.eachLine=Hr.prototype.iter;var z1=0;function N1(e){var t=this;if(qu(t),!(rr(t,e)||Li(t.display,e))){Cr(e),k&&(z1=+new Date);var a=si(t,e,!0),s=e.dataTransfer.files;if(!(!a||t.isReadOnly()))if(s&&s.length&&window.FileReader&&window.File)for(var u=s.length,h=Array(u),p=0,m=function(){++p==u&&qt(t,function(){a=ge(t.doc,a);var N={from:a,to:a,text:t.doc.splitLines(h.filter(function(Z){return Z!=null}).join(t.doc.lineSeparator())),origin:"paste"};ks(t.doc,N),Ml(t.doc,oo(ge(t.doc,a),ge(t.doc,so(N))))})()},b=function(N,Z){if(t.options.allowDropFileTypes&&_e(t.options.allowDropFileTypes,N.type)==-1){m();return}var Q=new FileReader;Q.onerror=function(){return m()},Q.onload=function(){var ae=Q.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(ae)){m();return}h[Z]=ae,m()},Q.readAsText(N)},C=0;C<s.length;C++)b(s[C],C);else{if(t.state.draggingText&&t.doc.sel.contains(a)>-1){t.state.draggingText(e),setTimeout(function(){return t.display.input.focus()},20);return}try{var S=e.dataTransfer.getData("Text");if(S){var M;if(t.state.draggingText&&!t.state.draggingText.copy&&(M=t.listSelections()),bn(t.doc,oo(a,a)),M)for(var $=0;$<M.length;++$)Ts(t.doc,"",M[$].anchor,M[$].head,"drag");t.replaceSelection(S,"around","paste"),t.display.input.focus()}}catch{}}}}function If(e,t){if(k&&(!e.state.draggingText||+new Date-z1<100)){ko(t);return}if(!(rr(e,t)||Li(e.display,t))&&(t.dataTransfer.setData("Text",e.getSelection()),t.dataTransfer.effectAllowed="copyMove",t.dataTransfer.setDragImage&&!ue)){var a=D("img",null,null,"position: fixed; left: 0; top: 0;");a.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",X&&(a.width=a.height=1,e.display.wrapper.appendChild(a),a._top=a.offsetTop),t.dataTransfer.setDragImage(a,0,0),X&&a.parentNode.removeChild(a)}}function Gu(e,t){var a=si(e,t);if(!!a){var s=document.createDocumentFragment();ki(e,a,s),e.display.dragCursor||(e.display.dragCursor=D("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),e.display.lineSpace.insertBefore(e.display.dragCursor,e.display.cursorDiv)),B(e.display.dragCursor,s)}}function qu(e){e.display.dragCursor&&(e.display.lineSpace.removeChild(e.display.dragCursor),e.display.dragCursor=null)}function Il(e){if(!!document.getElementsByClassName){for(var t=document.getElementsByClassName("CodeMirror"),a=[],s=0;s<t.length;s++){var u=t[s].CodeMirror;u&&a.push(u)}a.length&&a[0].operation(function(){for(var h=0;h<a.length;h++)e(a[h])})}}var $1=!1;function ju(){$1||(ut(),$1=!0)}function ut(){var e;Ne(window,"resize",function(){e==null&&(e=setTimeout(function(){e=null,Il(zf)},100))}),Ne(window,"blur",function(){return Il($o)})}function zf(e){var t=e.display;t.cachedCharWidth=t.cachedTextHeight=t.cachedPaddingH=null,t.scrollbarsClipped=!1,e.setSize()}for(var fo={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"},Mi=0;Mi<10;Mi++)fo[Mi+48]=fo[Mi+96]=String(Mi);for(var Ma=65;Ma<=90;Ma++)fo[Ma]=String.fromCharCode(Ma);for(var Oa=1;Oa<=12;Oa++)fo[Oa+111]=fo[Oa+63235]="F"+Oa;var Oi={};Oi.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"},Oi.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"},Oi.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"},Oi.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"]},Oi.default=de?Oi.macDefault:Oi.pcDefault;function kn(e){var t=e.split(/-(?!$)/);e=t[t.length-1];for(var a,s,u,h,p=0;p<t.length-1;p++){var m=t[p];if(/^(cmd|meta|m)$/i.test(m))h=!0;else if(/^a(lt)?$/i.test(m))a=!0;else if(/^(c|ctrl|control)$/i.test(m))s=!0;else if(/^s(hift)?$/i.test(m))u=!0;else throw new Error("Unrecognized modifier name: "+m)}return a&&(e="Alt-"+e),s&&(e="Ctrl-"+e),h&&(e="Cmd-"+e),u&&(e="Shift-"+e),e}function Nf(e){var t={};for(var a in e)if(e.hasOwnProperty(a)){var s=e[a];if(/^(name|fallthrough|(de|at)tach)$/.test(a))continue;if(s=="..."){delete e[a];continue}for(var u=mt(a.split(" "),kn),h=0;h<u.length;h++){var p=void 0,m=void 0;h==u.length-1?(m=u.join(" "),p=s):(m=u.slice(0,h+1).join(" "),p="...");var b=t[m];if(!b)t[m]=p;else if(b!=p)throw new Error("Inconsistent bindings for "+m)}delete e[a]}for(var C in t)e[C]=t[C];return e}function Ti(e,t,a,s){t=Fr(t);var u=t.call?t.call(e,s):t[e];if(u===!1)return"nothing";if(u==="...")return"multi";if(u!=null&&a(u))return"handled";if(t.fallthrough){if(Object.prototype.toString.call(t.fallthrough)!="[object Array]")return Ti(e,t.fallthrough,a,s);for(var h=0;h<t.fallthrough.length;h++){var p=Ti(e,t.fallthrough[h],a,s);if(p)return p}}}function zl(e){var t=typeof e=="string"?e:fo[e.keyCode];return t=="Ctrl"||t=="Alt"||t=="Shift"||t=="Mod"}function Ku(e,t,a){var s=e;return t.altKey&&s!="Alt"&&(e="Alt-"+e),(Qe?t.metaKey:t.ctrlKey)&&s!="Ctrl"&&(e="Ctrl-"+e),(Qe?t.ctrlKey:t.metaKey)&&s!="Mod"&&(e="Cmd-"+e),!a&&t.shiftKey&&s!="Shift"&&(e="Shift-"+e),e}function Xu(e,t){if(X&&e.keyCode==34&&e.char)return!1;var a=fo[e.keyCode];return a==null||e.altGraphKey?!1:(e.keyCode==3&&e.code&&(a=e.code),Ku(a,e,t))}function Fr(e){return typeof e=="string"?Oi[e]:e}function Cn(e,t){for(var a=e.doc.sel.ranges,s=[],u=0;u<a.length;u++){for(var h=t(a[u]);s.length&&w(h.from,je(s).to)<=0;){var p=s.pop();if(w(p.from,h.from)<0){h.from=p.from;break}}s.push(h)}Er(e,function(){for(var m=s.length-1;m>=0;m--)Ts(e.doc,"",s[m].from,s[m].to,"+delete");to(e)})}function Ta(e,t,a){var s=cr(e.text,t+a,a);return s<0||s>e.text.length?null:s}function Nl(e,t,a){var s=Ta(e,t.ch,a);return s==null?null:new ne(t.line,s,a<0?"after":"before")}function Ds(e,t,a,s,u){if(e){t.doc.direction=="rtl"&&(u=-u);var h=Rr(a,t.doc.direction);if(h){var p=u<0?je(h):h[0],m=u<0==(p.level==1),b=m?"after":"before",C;if(p.level>0||t.doc.direction=="rtl"){var S=Yn(t,a);C=u<0?a.text.length-1:0;var M=oi(t,S,C).top;C=kr(function($){return oi(t,S,$).top==M},u<0==(p.level==1)?p.from:p.to-1,C),b=="before"&&(C=Ta(a,C,1))}else C=u<0?p.to:p.from;return new ne(s,C,b)}}return new ne(s,u<0?a.text.length:0,u<0?"before":"after")}function R1(e,t,a,s){var u=Rr(t,e.doc.direction);if(!u)return Nl(t,a,s);a.ch>=t.text.length?(a.ch=t.text.length,a.sticky="before"):a.ch<=0&&(a.ch=0,a.sticky="after");var h=Ut(u,a.ch,a.sticky),p=u[h];if(e.doc.direction=="ltr"&&p.level%2==0&&(s>0?p.to>a.ch:p.from<a.ch))return Nl(t,a,s);var m=function(ce,be){return Ta(t,ce instanceof ne?ce.ch:ce,be)},b,C=function(ce){return e.options.lineWrapping?(b=b||Yn(e,t),Y(e,t,b,ce)):{begin:0,end:t.text.length}},S=C(a.sticky=="before"?m(a,-1):a.ch);if(e.doc.direction=="rtl"||p.level==1){var M=p.level==1==s<0,$=m(a,M?1:-1);if($!=null&&(M?$<=p.to&&$<=S.end:$>=p.from&&$>=S.begin)){var N=M?"before":"after";return new ne(a.line,$,N)}}var Z=function(ce,be,fe){for(var we=function(Mt,ar){return ar?new ne(a.line,m(Mt,1),"before"):new ne(a.line,Mt,"after")};ce>=0&&ce<u.length;ce+=be){var Ie=u[ce],Pe=be>0==(Ie.level!=1),st=Pe?fe.begin:m(fe.end,-1);if(Ie.from<=st&&st<Ie.to||(st=Pe?Ie.from:m(Ie.to,-1),fe.begin<=st&&st<fe.end))return we(st,Pe)}},Q=Z(h+s,s,S);if(Q)return Q;var ae=s>0?S.end:m(S.begin,-1);return ae!=null&&!(s>0&&ae==t.text.length)&&(Q=Z(s>0?0:u.length-1,s,C(ae)),Q)?Q:null}var Zo={selectAll:M1,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),it)},killLine:function(e){return Cn(e,function(t){if(t.empty()){var a=Me(e.doc,t.head.line).text.length;return t.head.ch==a&&t.head.line<e.lastLine()?{from:t.head,to:ne(t.head.line+1,0)}:{from:t.head,to:ne(t.head.line,a)}}else return{from:t.from(),to:t.to()}})},deleteLine:function(e){return Cn(e,function(t){return{from:ne(t.from().line,0),to:ge(e.doc,ne(t.to().line+1,0))}})},delLineLeft:function(e){return Cn(e,function(t){return{from:ne(t.from().line,0),to:t.from()}})},delWrappedLineLeft:function(e){return Cn(e,function(t){var a=e.charCoords(t.head,"div").top+5,s=e.coordsChar({left:0,top:a},"div");return{from:s,to:t.from()}})},delWrappedLineRight:function(e){return Cn(e,function(t){var a=e.charCoords(t.head,"div").top+5,s=e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:a},"div");return{from:t.from(),to:s}})},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(ne(e.firstLine(),0))},goDocEnd:function(e){return e.extendSelection(ne(e.lastLine()))},goLineStart:function(e){return e.extendSelectionsBy(function(t){return Qu(e,t.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(e){return e.extendSelectionsBy(function(t){return $l(e,t.head)},{origin:"+move",bias:1})},goLineEnd:function(e){return e.extendSelectionsBy(function(t){return Ju(e,t.head.line)},{origin:"+move",bias:-1})},goLineRight:function(e){return e.extendSelectionsBy(function(t){var a=e.cursorCoords(t.head,"div").top+5;return e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:a},"div")},Fe)},goLineLeft:function(e){return e.extendSelectionsBy(function(t){var a=e.cursorCoords(t.head,"div").top+5;return e.coordsChar({left:0,top:a},"div")},Fe)},goLineLeftSmart:function(e){return e.extendSelectionsBy(function(t){var a=e.cursorCoords(t.head,"div").top+5,s=e.coordsChar({left:0,top:a},"div");return s.ch<e.getLine(s.line).search(/\S/)?$l(e,t.head):s},Fe)},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=[],a=e.listSelections(),s=e.options.tabSize,u=0;u<a.length;u++){var h=a[u].from(),p=Ht(e.getLine(h.line),h.ch,s);t.push(sr(s-p%s))}e.replaceSelections(t)},defaultTab:function(e){e.somethingSelected()?e.indentSelection("add"):e.execCommand("insertTab")},transposeChars:function(e){return Er(e,function(){for(var t=e.listSelections(),a=[],s=0;s<t.length;s++)if(!!t[s].empty()){var u=t[s].head,h=Me(e.doc,u.line).text;if(h){if(u.ch==h.length&&(u=new ne(u.line,u.ch-1)),u.ch>0)u=new ne(u.line,u.ch+1),e.replaceRange(h.charAt(u.ch-1)+h.charAt(u.ch-2),ne(u.line,u.ch-2),u,"+transpose");else if(u.line>e.doc.first){var p=Me(e.doc,u.line-1).text;p&&(u=new ne(u.line,1),e.replaceRange(h.charAt(0)+e.doc.lineSeparator()+p.charAt(p.length-1),ne(u.line-1,p.length-1),u,"+transpose"))}}a.push(new xt(u,u))}e.setSelections(a)})},newlineAndIndent:function(e){return Er(e,function(){for(var t=e.listSelections(),a=t.length-1;a>=0;a--)e.replaceRange(e.doc.lineSeparator(),t[a].anchor,t[a].head,"+input");t=e.listSelections();for(var s=0;s<t.length;s++)e.indentLine(t[s].from().line,null,!0);to(e)})},openLine:function(e){return e.replaceSelection(`
2098
- `,"start")},toggleOverwrite:function(e){return e.toggleOverwrite()}};function Qu(e,t){var a=Me(e.doc,t),s=ii(a);return s!=a&&(t=wt(s)),Ds(!0,e,s,t,1)}function Ju(e,t){var a=Me(e.doc,t),s=af(a);return s!=a&&(t=wt(s)),Ds(!0,e,a,t,-1)}function $l(e,t){var a=Qu(e,t.line),s=Me(e.doc,a.line),u=Rr(s,e.doc.direction);if(!u||u[0].level==0){var h=Math.max(a.ch,s.text.search(/\S/)),p=t.line==a.line&&t.ch<=h&&t.ch;return ne(a.line,p?0:h,a.sticky)}return a}function Gn(e,t,a){if(typeof t=="string"&&(t=Zo[t],!t))return!1;e.display.input.ensurePolled();var s=e.display.shift,u=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),a&&(e.display.shift=!1),u=t(e)!=Be}finally{e.display.shift=s,e.state.suppressEdits=!1}return u}function $f(e,t,a){for(var s=0;s<e.state.keyMaps.length;s++){var u=Ti(t,e.state.keyMaps[s],a,e);if(u)return u}return e.options.extraKeys&&Ti(t,e.options.extraKeys,a,e)||Ti(t,e.options.keyMap,a,e)}var ho=new at;function Is(e,t,a,s){var u=e.state.keySeq;if(u){if(zl(t))return"handled";if(/\'$/.test(t)?e.state.keySeq=null:ho.set(50,function(){e.state.keySeq==u&&(e.state.keySeq=null,e.display.input.reset())}),e0(e,u+" "+t,a,s))return!0}return e0(e,t,a,s)}function e0(e,t,a,s){var u=$f(e,t,s);return u=="multi"&&(e.state.keySeq=t),u=="handled"&&fr(e,"keyHandled",e,t,a),(u=="handled"||u=="multi")&&(Cr(a),bs(e)),!!u}function Rl(e,t){var a=Xu(t,!0);return a?t.shiftKey&&!e.state.keySeq?Is(e,"Shift-"+a,t,function(s){return Gn(e,s,!0)})||Is(e,a,t,function(s){if(typeof s=="string"?/^go[A-Z]/.test(s):s.motion)return Gn(e,s)}):Is(e,a,t,function(s){return Gn(e,s)}):!1}function Rf(e,t,a){return Is(e,"'"+a+"'",t,function(s){return Gn(e,s,!0)})}var t0=null;function H1(e){var t=this;if(!(e.target&&e.target!=t.display.input.getField())&&(t.curOp.focus=nt(),!rr(t,e))){k&&O<11&&e.keyCode==27&&(e.returnValue=!1);var a=e.keyCode;t.display.shift=a==16||e.shiftKey;var s=Rl(t,e);X&&(t0=s?a:null,!s&&a==88&&!Ja&&(de?e.metaKey:e.ctrlKey)&&t.replaceSelection("",null,"cut")),f&&!de&&!s&&a==46&&e.shiftKey&&!e.ctrlKey&&document.execCommand&&document.execCommand("cut"),a==18&&!/\bCodeMirror-crosshair\b/.test(t.display.lineDiv.className)&&F1(t)}}function F1(e){var t=e.display.lineDiv;Pt(t,"CodeMirror-crosshair");function a(s){(s.keyCode==18||!s.altKey)&&(ye(t,"CodeMirror-crosshair"),Mr(document,"keyup",a),Mr(document,"mouseover",a))}Ne(document,"keyup",a),Ne(document,"mouseover",a)}function r0(e){e.keyCode==16&&(this.doc.sel.shift=!1),rr(this,e)}function W1(e){var t=this;if(!(e.target&&e.target!=t.display.input.getField())&&!(Li(t.display,e)||rr(t,e)||e.ctrlKey&&!e.altKey||de&&e.metaKey)){var a=e.keyCode,s=e.charCode;if(X&&a==t0){t0=null,Cr(e);return}if(!(X&&(!e.which||e.which<10)&&Rl(t,e))){var u=String.fromCharCode(s==null?a:s);u!="\b"&&(Rf(t,e,u)||t.display.input.onKeyPress(e))}}}var B1=400,Hl=function(e,t,a){this.time=e,this.pos=t,this.button=a};Hl.prototype.compare=function(e,t,a){return this.time+B1>e&&w(t,this.pos)==0&&a==this.button};var _r,sn;function Hf(e,t){var a=+new Date;return sn&&sn.compare(a,e,t)?(_r=sn=null,"triple"):_r&&_r.compare(a,e,t)?(sn=new Hl(a,e,t),_r=null,"double"):(_r=new Hl(a,e,t),sn=null,"single")}function U1(e){var t=this,a=t.display;if(!(rr(t,e)||a.activeTouch&&a.input.supportsTouch())){if(a.input.ensurePolled(),a.shift=e.shiftKey,Li(a,e)){I||(a.scroller.draggable=!1,setTimeout(function(){return a.scroller.draggable=!0},100));return}if(!n0(t,e)){var s=si(t,e),u=ea(e),h=s?Hf(s,u):"single";window.focus(),u==1&&t.state.selectingText&&t.state.selectingText(e),!(s&&Fl(t,u,s,h,e))&&(u==1?s?Y1(t,s,h,e):Bi(e)==a.scroller&&Cr(e):u==2?(s&&kl(t.doc,s),setTimeout(function(){return a.input.focus()},20)):u==3&&(tt?t.display.input.onContextMenu(e):yl(t)))}}}function Fl(e,t,a,s,u){var h="Click";return s=="double"?h="Double"+h:s=="triple"&&(h="Triple"+h),h=(t==1?"Left":t==2?"Middle":"Right")+h,Is(e,Ku(h,u),u,function(p){if(typeof p=="string"&&(p=Zo[p]),!p)return!1;var m=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),m=p(e,a)!=Be}finally{e.state.suppressEdits=!1}return m})}function zs(e,t,a){var s=e.getOption("configureMouse"),u=s?s(e,t,a):{};if(u.unit==null){var h=Te?a.shiftKey&&a.metaKey:a.altKey;u.unit=h?"rectangle":t=="single"?"char":t=="double"?"word":"line"}return(u.extend==null||e.doc.extend)&&(u.extend=e.doc.extend||a.shiftKey),u.addNew==null&&(u.addNew=de?a.metaKey:a.ctrlKey),u.moveOnDrag==null&&(u.moveOnDrag=!(de?a.altKey:a.ctrlKey)),u}function Y1(e,t,a,s){k?setTimeout(fn(Au,e),0):e.curOp.focus=nt();var u=zs(e,a,s),h=e.doc.sel,p;e.options.dragDrop&&ta&&!e.isReadOnly()&&a=="single"&&(p=h.contains(t))>-1&&(w((p=h.ranges[p]).from(),t)<0||t.xRel>0)&&(w(p.to(),t)>0||t.xRel<0)?Z1(e,s,t,u):G1(e,s,t,u)}function Z1(e,t,a,s){var u=e.display,h=!1,p=qt(e,function(C){I&&(u.scroller.draggable=!1),e.state.draggingText=!1,e.state.delayingBlurEvent&&(e.hasFocus()?e.state.delayingBlurEvent=!1:yl(e)),Mr(u.wrapper.ownerDocument,"mouseup",p),Mr(u.wrapper.ownerDocument,"mousemove",m),Mr(u.scroller,"dragstart",b),Mr(u.scroller,"drop",p),h||(Cr(C),s.addNew||kl(e.doc,a,null,null,s.extend),I&&!ue||k&&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},b=function(){return h=!0};I&&(u.scroller.draggable=!0),e.state.draggingText=p,p.copy=!s.moveOnDrag,Ne(u.wrapper.ownerDocument,"mouseup",p),Ne(u.wrapper.ownerDocument,"mousemove",m),Ne(u.scroller,"dragstart",b),Ne(u.scroller,"drop",p),e.state.delayingBlurEvent=!0,setTimeout(function(){return u.input.focus()},20),u.scroller.dragDrop&&u.scroller.dragDrop()}function V1(e,t,a){if(a=="char")return new xt(t,t);if(a=="word")return e.findWordAt(t);if(a=="line")return new xt(ne(t.line,0),ge(e.doc,ne(t.line+1,0)));var s=a(e,t);return new xt(s.from,s.to)}function G1(e,t,a,s){k&&yl(e);var u=e.display,h=e.doc;Cr(t);var p,m,b=h.sel,C=b.ranges;if(s.addNew&&!s.extend?(m=h.sel.contains(a),m>-1?p=C[m]:p=new xt(a,a)):(p=h.sel.primary(),m=h.sel.primIndex),s.unit=="rectangle")s.addNew||(p=new xt(a,a)),a=si(e,t,!0,!0),m=-1;else{var S=V1(e,a,s.unit);s.extend?p=Sl(p,S.anchor,S.head,s.extend):p=S}s.addNew?m==-1?(m=C.length,wr(h,Dr(e,C.concat([p]),m),{scroll:!1,origin:"*mouse"})):C.length>1&&C[m].empty()&&s.unit=="char"&&!s.extend?(wr(h,Dr(e,C.slice(0,m).concat(C.slice(m+1)),0),{scroll:!1,origin:"*mouse"}),b=h.sel):Yu(h,m,p,ot):(m=0,wr(h,new mn([p],0),ot),b=h.sel);var M=a;function $(fe){if(w(M,fe)!=0)if(M=fe,s.unit=="rectangle"){for(var we=[],Ie=e.options.tabSize,Pe=Ht(Me(h,a.line).text,a.ch,Ie),st=Ht(Me(h,fe.line).text,fe.ch,Ie),Mt=Math.min(Pe,st),ar=Math.max(Pe,st),It=Math.min(a.line,fe.line),Br=Math.min(e.lastLine(),Math.max(a.line,fe.line));It<=Br;It++){var Ur=Me(h,It).text,er=Zt(Ur,Mt,Ie);Mt==ar?we.push(new xt(ne(It,er),ne(It,er))):Ur.length>er&&we.push(new xt(ne(It,er),ne(It,Zt(Ur,ar,Ie))))}we.length||we.push(new xt(a,a)),wr(h,Dr(e,b.ranges.slice(0,m).concat(we),m),{origin:"*mouse",scroll:!1}),e.scrollIntoView(fe)}else{var Lr=p,hr=V1(e,fe,s.unit),At=Lr.anchor,$t;w(hr.anchor,At)>0?($t=hr.head,At=Ve(Lr.from(),hr.anchor)):($t=hr.anchor,At=oe(Lr.to(),hr.head));var jt=b.ranges.slice(0);jt[m]=Ns(e,new xt(ge(h,At),$t)),wr(h,Dr(e,jt,m),ot)}}var N=u.wrapper.getBoundingClientRect(),Z=0;function Q(fe){var we=++Z,Ie=si(e,fe,!0,s.unit=="rectangle");if(!!Ie)if(w(Ie,M)!=0){e.curOp.focus=nt(),$(Ie);var Pe=Ro(u,h);(Ie.line>=Pe.to||Ie.line<Pe.from)&&setTimeout(qt(e,function(){Z==we&&Q(fe)}),150)}else{var st=fe.clientY<N.top?-20:fe.clientY>N.bottom?20:0;st&&setTimeout(qt(e,function(){Z==we&&(u.scroller.scrollTop+=st,Q(fe))}),50)}}function ae(fe){e.state.selectingText=!1,Z=1/0,fe&&(Cr(fe),u.input.focus()),Mr(u.wrapper.ownerDocument,"mousemove",ce),Mr(u.wrapper.ownerDocument,"mouseup",be),h.history.lastSelOrigin=null}var ce=qt(e,function(fe){fe.buttons===0||!ea(fe)?ae(fe):Q(fe)}),be=qt(e,ae);e.state.selectingText=be,Ne(u.wrapper.ownerDocument,"mousemove",ce),Ne(u.wrapper.ownerDocument,"mouseup",be)}function Ns(e,t){var a=t.anchor,s=t.head,u=Me(e.doc,a.line);if(w(a,s)==0&&a.sticky==s.sticky)return t;var h=Rr(u);if(!h)return t;var p=Ut(h,a.ch,a.sticky),m=h[p];if(m.from!=a.ch&&m.to!=a.ch)return t;var b=p+(m.from==a.ch==(m.level!=1)?0:1);if(b==0||b==h.length)return t;var C;if(s.line!=a.line)C=(s.line-a.line)*(e.doc.direction=="ltr"?1:-1)>0;else{var S=Ut(h,s.ch,s.sticky),M=S-p||(s.ch-a.ch)*(m.level==1?-1:1);S==b-1||S==b?C=M<0:C=M>0}var $=h[b+(C?-1:0)],N=C==($.level==1),Z=N?$.from:$.to,Q=N?"after":"before";return a.ch==Z&&a.sticky==Q?t:new xt(new ne(a.line,Z,Q),s)}function $s(e,t,a,s){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;s&&Cr(t);var p=e.display,m=p.lineDiv.getBoundingClientRect();if(h>m.bottom||!br(e,a))return dn(t);h-=m.top-p.viewOffset;for(var b=0;b<e.display.gutterSpecs.length;++b){var C=p.gutters.childNodes[b];if(C&&C.getBoundingClientRect().right>=u){var S=Bn(e.doc,h),M=e.display.gutterSpecs[b];return Ze(e,a,e,S,M.className,t),dn(t)}}}function n0(e,t){return $s(e,t,"gutterClick",!0)}function i0(e,t){Li(e.display,t)||q1(e,t)||rr(e,t,"contextmenu")||tt||e.display.input.onContextMenu(t)}function q1(e,t){return br(e,"gutterContextMenu")?$s(e,t,"gutterContextMenu",!1):!1}function Pa(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),ha(e)}var Vo={toString:function(){return"CodeMirror.Init"}},Ea={},Rs={};function Wl(e){var t=e.optionHandlers;function a(s,u,h,p){e.defaults[s]=u,h&&(t[s]=p?function(m,b,C){C!=Vo&&h(m,b,C)}:h)}e.defineOption=a,e.Init=Vo,a("value","",function(s,u){return s.setValue(u)},!0),a("mode",null,function(s,u){s.doc.modeOption=u,Hu(s)},!0),a("indentUnit",2,Hu,!0),a("indentWithTabs",!1),a("smartIndent",!0),a("tabSize",4,function(s){wa(s),ha(s),et(s)},!0),a("lineSeparator",null,function(s,u){if(s.doc.lineSep=u,!!u){var h=[],p=s.doc.first;s.doc.iter(function(b){for(var C=0;;){var S=b.text.indexOf(u,C);if(S==-1)break;C=S+u.length,h.push(ne(p,S))}p++});for(var m=h.length-1;m>=0;m--)Ts(s.doc,u,h[m],ne(h[m].line,h[m].ch+u.length))}}),a("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(s,u,h){s.state.specialChars=new RegExp(u.source+(u.test(" ")?"":"| "),"g"),h!=Vo&&s.refresh()}),a("specialCharPlaceholder",gn,function(s){return s.refresh()},!0),a("electricChars",!0),a("inputStyle",he?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),a("spellcheck",!1,function(s,u){return s.getInputField().spellcheck=u},!0),a("autocorrect",!1,function(s,u){return s.getInputField().autocorrect=u},!0),a("autocapitalize",!1,function(s,u){return s.getInputField().autocapitalize=u},!0),a("rtlMoveVisually",!$e),a("wholeLineUpdateBefore",!0),a("theme","default",function(s){Pa(s),Ca(s)},!0),a("keyMap","default",function(s,u,h){var p=Fr(u),m=h!=Vo&&Fr(h);m&&m.detach&&m.detach(s,p),p.attach&&p.attach(s,m||null)}),a("extraKeys",null),a("configureMouse",null),a("lineWrapping",!1,j1,!0),a("gutters",[],function(s,u){s.display.gutterSpecs=$u(u,s.options.lineNumbers),Ca(s)},!0),a("fixedGutter",!0,function(s,u){s.display.gutters.style.left=u?ys(s.display)+"px":"0",s.refresh()},!0),a("coverGutterNextToScrollbar",!1,function(s){return no(s)},!0),a("scrollbarStyle","native",function(s){Fo(s),no(s),s.display.scrollbars.setScrollTop(s.doc.scrollTop),s.display.scrollbars.setScrollLeft(s.doc.scrollLeft)},!0),a("lineNumbers",!1,function(s,u){s.display.gutterSpecs=$u(s.options.gutters,u),Ca(s)},!0),a("firstLineNumber",1,Ca,!0),a("lineNumberFormatter",function(s){return s},Ca,!0),a("showCursorWhenSelecting",!1,pa,!0),a("resetSelectionOnContextMenu",!0),a("lineWiseCopyCut",!0),a("pasteLinesPerSelection",!0),a("selectionsMayTouch",!1),a("readOnly",!1,function(s,u){u=="nocursor"&&($o(s),s.display.input.blur()),s.display.input.readOnlyChanged(u)}),a("screenReaderLabel",null,function(s,u){u=u===""?null:u,s.display.input.screenReaderLabelChanged(u)}),a("disableInput",!1,function(s,u){u||s.display.input.reset()},!0),a("dragDrop",!0,Ff),a("allowDropFileTypes",null),a("cursorBlinkRate",530),a("cursorScrollMargin",0),a("cursorHeight",1,pa,!0),a("singleCursorHeightPerLine",!0,pa,!0),a("workTime",100),a("workDelay",100),a("flattenSpans",!0,wa,!0),a("addModeClass",!1,wa,!0),a("pollInterval",100),a("undoDepth",200,function(s,u){return s.doc.history.undoDepth=u}),a("historyEventDelay",1250),a("viewportMargin",10,function(s){return s.refresh()},!0),a("maxHighlightLength",1e4,wa,!0),a("moveInputWithCursor",!0,function(s,u){u||s.display.input.resetPosition()}),a("tabindex",null,function(s,u){return s.display.input.getField().tabIndex=u||""}),a("autofocus",null),a("direction","ltr",function(s,u){return s.doc.setDirection(u)},!0),a("phrases",null)}function Ff(e,t,a){var s=a&&a!=Vo;if(!t!=!s){var u=e.display.dragFunctions,h=t?Ne: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 j1(e){e.options.lineWrapping?(Pt(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(ye(e.display.wrapper,"CodeMirror-wrap"),ca(e)),Xi(e),et(e),ha(e),setTimeout(function(){return no(e)},100)}function Dt(e,t){var a=this;if(!(this instanceof Dt))return new Dt(e,t);this.options=t=t?Qt(t):{},Qt(Ea,t,!1);var s=t.value;typeof s=="string"?s=new Hr(s,t.mode,null,t.lineSeparator,t.direction):t.mode&&(s.modeOption=t.mode),this.doc=s;var u=new Dt.inputStyles[t.inputStyle](this),h=this.display=new Of(e,s,u,t);h.wrapper.CodeMirror=this,Pa(this),t.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Fo(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new at,keySeq:null,specialChars:null},t.autofocus&&!he&&h.input.focus(),k&&O<11&&setTimeout(function(){return a.display.input.reset(!0)},20),K1(this),ju(),Vn(this),this.curOp.forceUpdate=!0,_1(this,s),t.autofocus&&!he||this.hasFocus()?setTimeout(function(){a.hasFocus()&&!a.state.focused&&Cs(a)},20):$o(this);for(var p in Rs)Rs.hasOwnProperty(p)&&Rs[p](this,t[p],Vo);ci(this),t.finishInit&&t.finishInit(this);for(var m=0;m<Aa.length;++m)Aa[m](this);li(this),I&&t.lineWrapping&&getComputedStyle(h.lineDiv).textRendering=="optimizelegibility"&&(h.lineDiv.style.textRendering="auto")}Dt.defaults=Ea,Dt.optionHandlers=Rs;function K1(e){var t=e.display;Ne(t.scroller,"mousedown",qt(e,U1)),k&&O<11?Ne(t.scroller,"dblclick",qt(e,function(b){if(!rr(e,b)){var C=si(e,b);if(!(!C||n0(e,b)||Li(e.display,b))){Cr(b);var S=e.findWordAt(C);kl(e.doc,S.anchor,S.head)}}})):Ne(t.scroller,"dblclick",function(b){return rr(e,b)||Cr(b)}),Ne(t.scroller,"contextmenu",function(b){return i0(e,b)}),Ne(t.input.getField(),"contextmenu",function(b){t.scroller.contains(b.target)||i0(e,b)});var a,s={end:0};function u(){t.activeTouch&&(a=setTimeout(function(){return t.activeTouch=null},1e3),s=t.activeTouch,s.end=+new Date)}function h(b){if(b.touches.length!=1)return!1;var C=b.touches[0];return C.radiusX<=1&&C.radiusY<=1}function p(b,C){if(C.left==null)return!0;var S=C.left-b.left,M=C.top-b.top;return S*S+M*M>20*20}Ne(t.scroller,"touchstart",function(b){if(!rr(e,b)&&!h(b)&&!n0(e,b)){t.input.ensurePolled(),clearTimeout(a);var C=+new Date;t.activeTouch={start:C,moved:!1,prev:C-s.end<=300?s:null},b.touches.length==1&&(t.activeTouch.left=b.touches[0].pageX,t.activeTouch.top=b.touches[0].pageY)}}),Ne(t.scroller,"touchmove",function(){t.activeTouch&&(t.activeTouch.moved=!0)}),Ne(t.scroller,"touchend",function(b){var C=t.activeTouch;if(C&&!Li(t,b)&&C.left!=null&&!C.moved&&new Date-C.start<300){var S=e.coordsChar(t.activeTouch,"page"),M;!C.prev||p(C,C.prev)?M=new xt(S,S):!C.prev.prev||p(C,C.prev.prev)?M=e.findWordAt(S):M=new xt(ne(S.line,0),ge(e.doc,ne(S.line+1,0))),e.setSelection(M.anchor,M.head),e.focus(),Cr(b)}u()}),Ne(t.scroller,"touchcancel",u),Ne(t.scroller,"scroll",function(){t.scroller.clientHeight&&(Gt(e,t.scroller.scrollTop),Ho(e,t.scroller.scrollLeft,!0),Ze(e,"scroll",e))}),Ne(t.scroller,"mousewheel",function(b){return w1(e,b)}),Ne(t.scroller,"DOMMouseScroll",function(b){return w1(e,b)}),Ne(t.wrapper,"scroll",function(){return t.wrapper.scrollTop=t.wrapper.scrollLeft=0}),t.dragFunctions={enter:function(b){rr(e,b)||ko(b)},over:function(b){rr(e,b)||(Gu(e,b),ko(b))},start:function(b){return If(e,b)},drop:qt(e,N1),leave:function(b){rr(e,b)||qu(e)}};var m=t.input.getField();Ne(m,"keyup",function(b){return r0.call(e,b)}),Ne(m,"keydown",qt(e,H1)),Ne(m,"keypress",qt(e,W1)),Ne(m,"focus",function(b){return Cs(e,b)}),Ne(m,"blur",function(b){return $o(e,b)})}var Aa=[];Dt.defineInitHook=function(e){return Aa.push(e)};function Da(e,t,a,s){var u=e.doc,h;a==null&&(a="add"),a=="smart"&&(u.mode.indent?h=ps(e,t).state:a="prev");var p=e.options.tabSize,m=Me(u,t),b=Ht(m.text,null,p);m.stateAfter&&(m.stateAfter=null);var C=m.text.match(/^\s*/)[0],S;if(!s&&!/\S/.test(m.text))S=0,a="not";else if(a=="smart"&&(S=u.mode.indent(h,m.text.slice(C.length),m.text),S==Be||S>150)){if(!s)return;a="prev"}a=="prev"?t>u.first?S=Ht(Me(u,t-1).text,null,p):S=0:a=="add"?S=b+e.options.indentUnit:a=="subtract"?S=b-e.options.indentUnit:typeof a=="number"&&(S=b+a),S=Math.max(0,S);var M="",$=0;if(e.options.indentWithTabs)for(var N=Math.floor(S/p);N;--N)$+=p,M+=" ";if($<S&&(M+=sr(S-$)),M!=C)return Ts(u,M,ne(t,0),ne(t,C.length),"+input"),m.stateAfter=null,!0;for(var Z=0;Z<u.sel.ranges.length;Z++){var Q=u.sel.ranges[Z];if(Q.head.line==t&&Q.head.ch<C.length){var ae=ne(t,C.length);Yu(u,Z,new xt(ae,ae));break}}}var Mn=null;function On(e){Mn=e}function Bl(e,t,a,s,u){var h=e.doc;e.display.shift=!1,s||(s=h.sel);var p=+new Date-200,m=u=="paste"||e.state.pasteIncoming>p,b=Oo(t),C=null;if(m&&s.ranges.length>1)if(Mn&&Mn.text.join(`
2103
+ 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 yf(e,t,a,s){s==null&&(s=0);var u;!e.options.lineWrapping&&t==a&&(a=t.sticky=="before"?ne(t.line,t.ch+1,"before"):t,t=t.ch?ne(t.line,t.sticky=="before"?t.ch-1:t.ch,"after"):t);for(var h=0;h<5;h++){var p=!1,m=Zn(e,t),b=!a||a==t?m:Zn(e,a);u={left:Math.min(m.left,b.left),top:Math.min(m.top,b.top)-s,right:Math.max(m.left,b.left),bottom:Math.max(m.bottom,b.bottom)+s};var C=Cs(e,u),S=e.doc.scrollTop,M=e.doc.scrollLeft;if(C.scrollTop!=null&&(Gt(e,C.scrollTop),Math.abs(e.doc.scrollTop-S)>1&&(p=!0)),C.scrollLeft!=null&&(Ho(e,C.scrollLeft),Math.abs(e.doc.scrollLeft-M)>1&&(p=!0)),!p)break}return u}function bf(e,t){var a=Cs(e,t);a.scrollTop!=null&&Gt(e,a.scrollTop),a.scrollLeft!=null&&Ho(e,a.scrollLeft)}function Cs(e,t){var a=e.display,s=Ki(e.display);t.top<0&&(t.top=0);var u=e.curOp&&e.curOp.scrollTop!=null?e.curOp.scrollTop:a.scroller.scrollTop,h=dl(e),p={};t.bottom-t.top>h&&(t.bottom=t.top+h);var m=e.doc.height+Xr(a),b=t.top<s,C=t.bottom>m-s;if(t.top<u)p.scrollTop=b?0:t.top;else if(t.bottom>u+h){var S=Math.min(t.top,(C?m:t.bottom)-h);S!=u&&(p.scrollTop=S)}var M=e.options.fixedGutter?0:a.gutters.offsetWidth,$=e.curOp&&e.curOp.scrollLeft!=null?e.curOp.scrollLeft:a.scroller.scrollLeft-M,N=Gi(e)-a.gutters.offsetWidth,Z=t.right-t.left>N;return Z&&(t.right=t.left+N),t.left<10?p.scrollLeft=0:t.left<$?p.scrollLeft=Math.max(0,t.left+M-(Z?0:10)):t.right>N+$-3&&(p.scrollLeft=t.right+(Z?0:10)-N),p}function ws(e,t){t!=null&&(bl(e),e.curOp.scrollTop=(e.curOp.scrollTop==null?e.doc.scrollTop:e.curOp.scrollTop)+t)}function to(e){bl(e);var t=e.getCursor();e.curOp.scrollToPos={from:t,to:t,margin:e.options.cursorScrollMargin}}function ga(e,t,a){(t!=null||a!=null)&&bl(e),t!=null&&(e.curOp.scrollLeft=t),a!=null&&(e.curOp.scrollTop=a)}function g1(e,t){bl(e),e.curOp.scrollToPos=t}function bl(e){var t=e.curOp.scrollToPos;if(t){e.curOp.scrollToPos=null;var a=d1(e,t.from),s=d1(e,t.to);m1(e,a,s,t.margin)}}function m1(e,t,a,s){var u=Cs(e,{left:Math.min(t.left,a.left),top:Math.min(t.top,a.top)-s,right:Math.max(t.right,a.right),bottom:Math.max(t.bottom,a.bottom)+s});ga(e,u.scrollLeft,u.scrollTop)}function Gt(e,t){Math.abs(e.doc.scrollTop-t)<2||(f||Iu(e,{top:t}),Pr(e,t,!0),f&&Iu(e),ui(e,100))}function Pr(e,t,a){t=Math.max(0,Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,t)),!(e.display.scroller.scrollTop==t&&!a)&&(e.doc.scrollTop=t,e.display.scrollbars.setScrollTop(t),e.display.scroller.scrollTop!=t&&(e.display.scroller.scrollTop=t))}function Ho(e,t,a,s){t=Math.max(0,Math.min(t,e.display.scroller.scrollWidth-e.display.scroller.clientWidth)),!((a?t==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-t)<2)&&!s)&&(e.doc.scrollLeft=t,y1(e),e.display.scroller.scrollLeft!=t&&(e.display.scroller.scrollLeft=t),e.display.scrollbars.setScrollLeft(t))}function ma(e){var t=e.display,a=t.gutters.offsetWidth,s=Math.round(e.doc.height+Xr(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?a:0,docHeight:s,scrollHeight:s+nn(e)+t.barHeight,nativeBarWidth:t.nativeBarWidth,gutterWidth:a}}var ro=function(e,t,a){this.cm=a;var s=this.vert=D("div",[D("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),u=this.horiz=D("div",[D("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");s.tabIndex=u.tabIndex=-1,e(s),e(u),Ne(s,"scroll",function(){s.clientHeight&&t(s.scrollTop,"vertical")}),Ne(u,"scroll",function(){u.clientWidth&&t(u.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,k&&O<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};ro.prototype.update=function(e){var t=e.scrollWidth>e.clientWidth+1,a=e.scrollHeight>e.clientHeight+1,s=e.nativeBarWidth;if(a){this.vert.style.display="block",this.vert.style.bottom=t?s+"px":"0";var u=e.viewHeight-(t?s: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=a?s+"px":"0",this.horiz.style.left=e.barLeft+"px";var h=e.viewWidth-e.barLeft-(a?s: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&&(s==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:a?s:0,bottom:t?s:0}},ro.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},ro.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},ro.prototype.zeroWidthHack=function(){var e=de&&!Ce?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new at,this.disableVert=new at},ro.prototype.enableZeroWidthBar=function(e,t,a){e.style.pointerEvents="auto";function s(){var u=e.getBoundingClientRect(),h=a=="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,s)}t.set(1e3,s)},ro.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var ya=function(){};ya.prototype.update=function(){return{bottom:0,right:0}},ya.prototype.setScrollLeft=function(){},ya.prototype.setScrollTop=function(){},ya.prototype.clear=function(){};function no(e,t){t||(t=ma(e));var a=e.display.barWidth,s=e.display.barHeight;xs(e,t);for(var u=0;u<4&&a!=e.display.barWidth||s!=e.display.barHeight;u++)a!=e.display.barWidth&&e.options.lineWrapping&&Ji(e),xs(e,ma(e)),a=e.display.barWidth,s=e.display.barHeight}function xs(e,t){var a=e.display,s=a.scrollbars.update(t);a.sizer.style.paddingRight=(a.barWidth=s.right)+"px",a.sizer.style.paddingBottom=(a.barHeight=s.bottom)+"px",a.heightForcer.style.borderBottom=s.bottom+"px solid transparent",s.right&&s.bottom?(a.scrollbarFiller.style.display="block",a.scrollbarFiller.style.height=s.bottom+"px",a.scrollbarFiller.style.width=s.right+"px"):a.scrollbarFiller.style.display="",s.bottom&&e.options.coverGutterNextToScrollbar&&e.options.fixedGutter?(a.gutterFiller.style.display="block",a.gutterFiller.style.height=s.bottom+"px",a.gutterFiller.style.width=t.gutterWidth+"px"):a.gutterFiller.style.display=""}var Cl={native:ro,null:ya};function Fo(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&ye(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new Cl[e.options.scrollbarStyle](function(t){e.display.wrapper.insertBefore(t,e.display.scrollbarFiller),Ne(t,"mousedown",function(){e.state.focused&&setTimeout(function(){return e.display.input.focus()},0)}),t.setAttribute("cm-not-content","true")},function(t,a){a=="horizontal"?Ho(e,t):Gt(e,t)},e),e.display.scrollbars.addClass&&Pt(e.display.wrapper,e.display.scrollbars.addClass)}var ba=0;function Vn(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:++ba,markArrays:null},Vi(e.curOp)}function li(e){var t=e.curOp;t&&ff(t,function(a){for(var s=0;s<a.ops.length;s++)a.ops[s].cm.curOp=null;_s(a)})}function _s(e){for(var t=e.ops,a=0;a<t.length;a++)Cf(t[a]);for(var s=0;s<t.length;s++)wf(t[s]);for(var u=0;u<t.length;u++)xf(t[u]);for(var h=0;h<t.length;h++)_f(t[h]);for(var p=0;p<t.length;p++)Lf(t[p])}function Cf(e){var t=e.cm,a=t.display;vt(t),e.updateMaxLine&&ca(t),e.mustUpdate=e.viewChanged||e.forceUpdate||e.scrollTop!=null||e.scrollToPos&&(e.scrollToPos.from.line<a.viewFrom||e.scrollToPos.to.line>=a.viewTo)||a.maxLineChanged&&t.options.lineWrapping,e.update=e.mustUpdate&&new Qr(t,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function wf(e){e.updatedDisplay=e.mustUpdate&&Du(e.cm,e.update)}function xf(e){var t=e.cm,a=t.display;e.updatedDisplay&&Ji(t),e.barMeasure=ma(t),a.maxLineChanged&&!t.options.lineWrapping&&(e.adjustWidthTo=s1(t,a.maxLine,a.maxLine.text.length).left+3,t.display.sizerWidth=e.adjustWidthTo,e.barMeasure.scrollWidth=Math.max(a.scroller.clientWidth,a.sizer.offsetLeft+e.adjustWidthTo+nn(t)+t.display.barWidth),e.maxScrollLeft=Math.max(0,a.sizer.offsetLeft+e.adjustWidthTo-Gi(t))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=a.input.prepareSelection())}function _f(e){var t=e.cm;e.adjustWidthTo!=null&&(t.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft<t.doc.scrollLeft&&Ho(t,Math.min(t.display.scroller.scrollLeft,e.maxScrollLeft),!0),t.display.maxLineChanged=!1);var a=e.focus&&e.focus==nt();e.preparedSelection&&t.display.input.showSelection(e.preparedSelection,a),(e.updatedDisplay||e.startHeight!=t.doc.height)&&no(t,e.barMeasure),e.updatedDisplay&&Nu(t,e.barMeasure),e.selectionChanged&&ys(t),t.state.focused&&e.updateInput&&t.display.input.reset(e.typing),a&&Au(e.cm)}function Lf(e){var t=e.cm,a=t.display,s=t.doc;if(e.updatedDisplay&&io(t,e.update),a.wheelStartX!=null&&(e.scrollTop!=null||e.scrollLeft!=null||e.scrollToPos)&&(a.wheelStartX=a.wheelStartY=null),e.scrollTop!=null&&Pr(t,e.scrollTop,e.forceScroll),e.scrollLeft!=null&&Ho(t,e.scrollLeft,!0,!0),e.scrollToPos){var u=yf(t,ge(s,e.scrollToPos.from),ge(s,e.scrollToPos.to),e.scrollToPos.margin);mf(t,u)}var h=e.maybeHiddenMarkers,p=e.maybeUnhiddenMarkers;if(h)for(var m=0;m<h.length;++m)h[m].lines.length||Ze(h[m],"hide");if(p)for(var b=0;b<p.length;++b)p[b].lines.length&&Ze(p[b],"unhide");a.wrapper.offsetHeight&&(s.scrollTop=t.display.scroller.scrollTop),e.changeObjs&&Ze(t,"changes",t,e.changeObjs),e.update&&e.update.finish()}function Er(e,t){if(e.curOp)return t();Vn(e);try{return t()}finally{li(e)}}function qt(e,t){return function(){if(e.curOp)return t.apply(e,arguments);Vn(e);try{return t.apply(e,arguments)}finally{li(e)}}}function Ar(e){return function(){if(this.curOp)return e.apply(this,arguments);Vn(this);try{return e.apply(this,arguments)}finally{li(this)}}}function _(e){return function(){var t=this.cm;if(!t||t.curOp)return e.apply(this,arguments);Vn(t);try{return e.apply(this,arguments)}finally{li(t)}}}function ui(e,t){e.doc.highlightFrontier<e.display.viewTo&&e.state.highlight.set(t,fn(wl,e))}function wl(e){var t=e.doc;if(!(t.highlightFrontier>=e.display.viewTo)){var a=+new Date+e.options.workTime,s=hs(e,t.highlightFrontier),u=[];t.iter(s.line,Math.min(t.first+t.size,e.display.viewTo+500),function(h){if(s.line>=e.display.viewFrom){var p=h.styles,m=h.text.length>e.options.maxHighlightLength?pn(t.mode,s.state):null,b=B0(e,h,s,!0);m&&(s.state=m),h.styles=b.styles;var C=h.styleClasses,S=b.classes;S?h.styleClasses=S:C&&(h.styleClasses=null);for(var M=!p||p.length!=h.styles.length||C!=S&&(!C||!S||C.bgClass!=S.bgClass||C.textClass!=S.textClass),$=0;!M&&$<p.length;++$)M=p[$]!=h.styles[$];M&&u.push(s.line),h.stateAfter=s.save(),s.nextLine()}else h.text.length<=e.options.maxHighlightLength&&sa(e,h.text,s),h.stateAfter=s.line%5==0?s.save():null,s.nextLine();if(+new Date>a)return ui(e,e.options.workDelay),!0}),t.highlightFrontier=s.line,t.modeFrontier=Math.max(t.modeFrontier,s.line),u.length&&Er(e,function(){for(var h=0;h<u.length;h++)Qi(e,u[h],"text")})}}var Qr=function(e,t,a){var s=e.display;this.viewport=t,this.visible=Ro(s,e.doc,t),this.editorIsHidden=!s.wrapper.offsetWidth,this.wrapperHeight=s.wrapper.clientHeight,this.wrapperWidth=s.wrapper.clientWidth,this.oldDisplayWidth=Gi(e),this.force=a,this.dims=on(e),this.events=[]};Qr.prototype.signal=function(e,t){br(e,t)&&this.events.push(arguments)},Qr.prototype.finish=function(){for(var e=0;e<this.events.length;e++)Ze.apply(null,this.events[e])};function vt(e){var t=e.display;!t.scrollbarsClipped&&t.scroller.offsetWidth&&(t.nativeBarWidth=t.scroller.offsetWidth-t.scroller.clientWidth,t.heightForcer.style.height=nn(e)+"px",t.sizer.style.marginBottom=-t.nativeBarWidth+"px",t.sizer.style.borderRightWidth=nn(e)+"px",t.scrollbarsClipped=!0)}function Sf(e){if(e.hasFocus())return null;var t=nt();if(!t||!ve(e.display.lineDiv,t))return null;var a={activeElt:t};if(window.getSelection){var s=window.getSelection();s.anchorNode&&s.extend&&ve(e.display.lineDiv,s.anchorNode)&&(a.anchorNode=s.anchorNode,a.anchorOffset=s.anchorOffset,a.focusNode=s.focusNode,a.focusOffset=s.focusOffset)}return a}function kf(e){if(!(!e||!e.activeElt||e.activeElt==nt())&&(e.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(e.activeElt.nodeName)&&e.anchorNode&&ve(document.body,e.anchorNode)&&ve(document.body,e.focusNode))){var t=window.getSelection(),a=document.createRange();a.setEnd(e.anchorNode,e.anchorOffset),a.collapse(!1),t.removeAllRanges(),t.addRange(a),t.extend(e.focusNode,e.focusOffset)}}function Du(e,t){var a=e.display,s=e.doc;if(t.editorIsHidden)return Si(e),!1;if(!t.force&&t.visible.from>=a.viewFrom&&t.visible.to<=a.viewTo&&(a.updateLineNumbers==null||a.updateLineNumbers>=a.viewTo)&&a.renderedView==a.view&&p1(e)==0)return!1;ci(e)&&(Si(e),t.dims=on(e));var u=s.first+s.size,h=Math.max(t.visible.from-e.options.viewportMargin,s.first),p=Math.min(u,t.visible.to+e.options.viewportMargin);a.viewFrom<h&&h-a.viewFrom<20&&(h=Math.max(s.first,a.viewFrom)),a.viewTo>p&&a.viewTo-p<20&&(p=Math.min(u,a.viewTo)),ni&&(h=ll(e.doc,h),p=Q0(e.doc,p));var m=h!=a.viewFrom||p!=a.viewTo||a.lastWrapHeight!=t.wrapperHeight||a.lastWrapWidth!=t.wrapperWidth;gf(e,h,p),a.viewOffset=Kr(Me(e.doc,a.viewFrom)),e.display.mover.style.top=a.viewOffset+"px";var b=p1(e);if(!m&&b==0&&!t.force&&a.renderedView==a.view&&(a.updateLineNumbers==null||a.updateLineNumbers>=a.viewTo))return!1;var C=Sf(e);return b>4&&(a.lineDiv.style.display="none"),Mf(e,a.updateLineNumbers,t.dims),b>4&&(a.lineDiv.style.display=""),a.renderedView=a.view,kf(C),rt(a.cursorDiv),rt(a.selectionDiv),a.gutters.style.height=a.sizer.style.minHeight=0,m&&(a.lastWrapHeight=t.wrapperHeight,a.lastWrapWidth=t.wrapperWidth,ui(e,400)),a.updateLineNumbers=null,!0}function io(e,t){for(var a=t.viewport,s=!0;;s=!1){if(!s||!e.options.lineWrapping||t.oldDisplayWidth==Gi(e)){if(a&&a.top!=null&&(a={top:Math.min(e.doc.height+Xr(e.display)-dl(e),a.top)}),t.visible=Ro(e.display,e.doc,a),t.visible.from>=e.display.viewFrom&&t.visible.to<=e.display.viewTo)break}else s&&(t.visible=Ro(e.display,e.doc,a));if(!Du(e,t))break;Ji(e);var u=ma(e);pa(e),no(e,u),Nu(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 Iu(e,t){var a=new Qr(e,t);if(Du(e,a)){Ji(e),io(e,a);var s=ma(e);pa(e),no(e,s),Nu(e,s),a.finish()}}function Mf(e,t,a){var s=e.display,u=e.options.lineNumbers,h=s.lineDiv,p=h.firstChild;function m(Z){var Q=Z.nextSibling;return I&&de&&e.display.currentWheelTarget==Z?Z.style.display="none":Z.parentNode.removeChild(Z),Q}for(var b=s.view,C=s.viewFrom,S=0;S<b.length;S++){var M=b[S];if(!M.hidden)if(!M.node||M.node.parentNode!=h){var $=Ou(e,M,C,a);h.insertBefore($,p)}else{for(;p!=M.node;)p=m(p);var N=u&&t!=null&&t<=C&&M.lineNumber;M.changes&&(_e(M.changes,"gutter")>-1&&(N=!1),n1(e,M,C,a)),N&&(rt(M.lineNumber),M.lineNumber.appendChild(document.createTextNode(ds(e.options,C)))),p=M.node.nextSibling}C+=M.size}for(;p;)p=m(p)}function zu(e){var t=e.gutters.offsetWidth;e.sizer.style.marginLeft=t+"px",fr(e,"gutterChanged",e)}function Nu(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+nn(e)+"px"}function y1(e){var t=e.display,a=t.view;if(!(!t.alignWidgets&&(!t.gutters.firstChild||!e.options.fixedGutter))){for(var s=ms(t)-t.scroller.scrollLeft+e.doc.scrollLeft,u=t.gutters.offsetWidth,h=s+"px",p=0;p<a.length;p++)if(!a[p].hidden){e.options.fixedGutter&&(a[p].gutter&&(a[p].gutter.style.left=h),a[p].gutterBackground&&(a[p].gutterBackground.style.left=h));var m=a[p].alignable;if(m)for(var b=0;b<m.length;b++)m[b].style.left=h}e.options.fixedGutter&&(t.gutters.style.left=s+u+"px")}}function ci(e){if(!e.options.lineNumbers)return!1;var t=e.doc,a=ds(e.options,t.first+t.size-1),s=e.display;if(a.length!=s.lineNumChars){var u=s.measure.appendChild(D("div",[D("div",a)],"CodeMirror-linenumber CodeMirror-gutter-elt")),h=u.firstChild.offsetWidth,p=u.offsetWidth-h;return s.lineGutter.style.width="",s.lineNumInnerWidth=Math.max(h,s.lineGutter.offsetWidth-p)+1,s.lineNumWidth=s.lineNumInnerWidth+p,s.lineNumChars=s.lineNumInnerWidth?a.length:-1,s.lineGutter.style.width=s.lineNumWidth+"px",zu(e.display),!0}return!1}function $u(e,t){for(var a=[],s=!1,u=0;u<e.length;u++){var h=e[u],p=null;if(typeof h!="string"&&(p=h.style,h=h.className),h=="CodeMirror-linenumbers")if(t)s=!0;else continue;a.push({className:h,style:p})}return t&&!s&&a.push({className:"CodeMirror-linenumbers",style:null}),a}function b1(e){var t=e.gutters,a=e.gutterSpecs;rt(t),e.lineGutter=null;for(var s=0;s<a.length;++s){var u=a[s],h=u.className,p=u.style,m=t.appendChild(D("div",null,"CodeMirror-gutter "+h));p&&(m.style.cssText=p),h=="CodeMirror-linenumbers"&&(e.lineGutter=m,m.style.width=(e.lineNumWidth||1)+"px")}t.style.display=a.length?"":"none",zu(e)}function Ca(e){b1(e.display),et(e),y1(e)}function Of(e,t,a,s){var u=this;this.input=a,u.scrollbarFiller=D("div",null,"CodeMirror-scrollbar-filler"),u.scrollbarFiller.setAttribute("cm-not-content","true"),u.gutterFiller=D("div",null,"CodeMirror-gutter-filler"),u.gutterFiller.setAttribute("cm-not-content","true"),u.lineDiv=T("div",null,"CodeMirror-code"),u.selectionDiv=D("div",null,null,"position: relative; z-index: 1"),u.cursorDiv=D("div",null,"CodeMirror-cursors"),u.measure=D("div",null,"CodeMirror-measure"),u.lineMeasure=D("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=D("div",[h],null,"position: relative"),u.sizer=D("div",[u.mover],"CodeMirror-sizer"),u.sizerWidth=null,u.heightForcer=D("div",null,null,"position: absolute; height: "+He+"px; width: 1px;"),u.gutters=D("div",null,"CodeMirror-gutters"),u.lineGutter=null,u.scroller=D("div",[u.sizer,u.heightForcer,u.gutters],"CodeMirror-scroll"),u.scroller.setAttribute("tabIndex","-1"),u.wrapper=D("div",[u.scrollbarFiller,u.gutterFiller,u.scroller],"CodeMirror"),u.wrapper.setAttribute("translate","no"),k&&O<8&&(u.gutters.style.zIndex=-1,u.scroller.style.paddingRight=0),!I&&!(f&&he)&&(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=$u(s.gutters,s.lineNumbers),b1(u),a.init(u)}var xl=0,nr=null;k?nr=-.53:f?nr=15:q?nr=-.7:ue&&(nr=-1/3);function C1(e){var t=e.wheelDeltaX,a=e.wheelDeltaY;return t==null&&e.detail&&e.axis==e.HORIZONTAL_AXIS&&(t=e.detail),a==null&&e.detail&&e.axis==e.VERTICAL_AXIS?a=e.detail:a==null&&(a=e.wheelDelta),{x:t,y:a}}function Tf(e){var t=C1(e);return t.x*=nr,t.y*=nr,t}function w1(e,t){var a=C1(t),s=a.x,u=a.y,h=e.display,p=h.scroller,m=p.scrollWidth>p.clientWidth,b=p.scrollHeight>p.clientHeight;if(!!(s&&m||u&&b)){if(u&&de&&I){e:for(var C=t.target,S=h.view;C!=p;C=C.parentNode)for(var M=0;M<S.length;M++)if(S[M].node==C){e.display.currentWheelTarget=C;break e}}if(s&&!f&&!X&&nr!=null){u&&b&&Gt(e,Math.max(0,p.scrollTop+u*nr)),Ho(e,Math.max(0,p.scrollLeft+s*nr)),(!u||u&&b)&&Cr(t),h.wheelStartX=null;return}if(u&&nr!=null){var $=u*nr,N=e.doc.scrollTop,Z=N+h.wrapper.clientHeight;$<0?N=Math.max(0,N+$-50):Z=Math.min(e.doc.height,Z+$+50),Iu(e,{top:N,bottom:Z})}xl<20&&(h.wheelStartX==null?(h.wheelStartX=p.scrollLeft,h.wheelStartY=p.scrollTop,h.wheelDX=s,h.wheelDY=u,setTimeout(function(){if(h.wheelStartX!=null){var Q=p.scrollLeft-h.wheelStartX,ae=p.scrollTop-h.wheelStartY,ce=ae&&h.wheelDY&&ae/h.wheelDY||Q&&h.wheelDX&&Q/h.wheelDX;h.wheelStartX=h.wheelStartY=null,ce&&(nr=(nr*xl+ce)/(xl+1),++xl)}},200)):(h.wheelDX+=s,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 a=this.ranges[t],s=e.ranges[t];if(!P(a.anchor,s.anchor)||!P(a.head,s.head))return!1}return!0},mn.prototype.deepCopy=function(){for(var e=[],t=0;t<this.ranges.length;t++)e[t]=new xt(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 a=0;a<this.ranges.length;a++){var s=this.ranges[a];if(w(t,s.from())>=0&&w(e,s.to())<=0)return a}return-1};var xt=function(e,t){this.anchor=e,this.head=t};xt.prototype.from=function(){return Ve(this.anchor,this.head)},xt.prototype.to=function(){return oe(this.anchor,this.head)},xt.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function Dr(e,t,a){var s=e&&e.options.selectionsMayTouch,u=t[a];t.sort(function($,N){return w($.from(),N.from())}),a=_e(t,u);for(var h=1;h<t.length;h++){var p=t[h],m=t[h-1],b=w(m.to(),p.from());if(s&&!p.empty()?b>0:b>=0){var C=Ve(m.from(),p.from()),S=oe(m.to(),p.to()),M=m.empty()?p.from()==p.head:m.from()==m.head;h<=a&&--a,t.splice(--h,2,new xt(M?S:C,M?C:S))}}return new mn(t,a)}function oo(e,t){return new mn([new xt(e,t||e)],0)}function so(e){return e.text?ne(e.from.line+e.text.length-1,je(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 so(t);var a=e.line+t.text.length-(t.to.line-t.from.line)-1,s=e.ch;return e.line==t.to.line&&(s+=so(t).ch-t.to.ch),ne(a,s)}function Ru(e,t){for(var a=[],s=0;s<e.sel.ranges.length;s++){var u=e.sel.ranges[s];a.push(new xt(Sn(u.anchor,t),Sn(u.head,t)))}return Dr(e.cm,a,e.sel.primIndex)}function x1(e,t,a){return e.line==t.line?ne(a.line,e.ch-t.ch+a.ch):ne(a.line+(e.line-t.line),e.ch)}function Pf(e,t,a){for(var s=[],u=ne(e.first,0),h=u,p=0;p<t.length;p++){var m=t[p],b=x1(m.from,u,h),C=x1(so(m),u,h);if(u=m.to,h=C,a=="around"){var S=e.sel.ranges[p],M=w(S.head,S.anchor)<0;s[p]=new xt(M?C:b,M?b:C)}else s[p]=new xt(b,b)}return new mn(s,e.sel.primIndex)}function Hu(e){e.doc.mode=fs(e.options,e.doc.modeOption),wa(e)}function wa(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,ui(e,100),e.state.modeGen++,e.curOp&&et(e)}function Fu(e,t){return t.from.ch==0&&t.to.ch==0&&je(t.text)==""&&(!e.cm||e.cm.options.wholeLineUpdateBefore)}function _l(e,t,a,s){function u(be){return a?a[be]:null}function h(be,fe,we){J0(be,fe,we,s),fr(be,"change",be,t)}function p(be,fe){for(var we=[],Ie=be;Ie<fe;++Ie)we.push(new Tr(C[Ie],u(Ie),s));return we}var m=t.from,b=t.to,C=t.text,S=Me(e,m.line),M=Me(e,b.line),$=je(C),N=u(C.length-1),Z=b.line-m.line;if(t.full)e.insert(0,p(0,C.length)),e.remove(C.length,e.size-C.length);else if(Fu(e,t)){var Q=p(0,C.length-1);h(M,M.text,N),Z&&e.remove(m.line,Z),Q.length&&e.insert(m.line,Q)}else if(S==M)if(C.length==1)h(S,S.text.slice(0,m.ch)+$+S.text.slice(b.ch),N);else{var ae=p(1,C.length-1);ae.push(new Tr($+S.text.slice(b.ch),N,s)),h(S,S.text.slice(0,m.ch)+C[0],u(0)),e.insert(m.line+1,ae)}else if(C.length==1)h(S,S.text.slice(0,m.ch)+C[0]+M.text.slice(b.ch),u(0)),e.remove(m.line+1,Z);else{h(S,S.text.slice(0,m.ch)+C[0],u(0)),h(M,$+M.text.slice(b.ch),N);var ce=p(1,C.length-1);Z>1&&e.remove(m.line+1,Z-1),e.insert(m.line+1,ce)}fr(e,"change",e,t)}function ao(e,t,a){function s(u,h,p){if(u.linked)for(var m=0;m<u.linked.length;++m){var b=u.linked[m];if(b.doc!=h){var C=p&&b.sharedHist;a&&!C||(t(b.doc,C),s(b.doc,u,C))}}}s(e,null,!0)}function _1(e,t){if(t.cm)throw new Error("This document is already in use.");e.doc=t,t.cm=e,Xi(e),Hu(e),Ll(e),e.options.direction=t.direction,e.options.lineWrapping||ca(e),e.options.mode=t.modeOption,et(e)}function Ll(e){(e.doc.direction=="rtl"?Pt:ye)(e.display.lineDiv,"CodeMirror-rtl")}function xa(e){Er(e,function(){Ll(e),et(e)})}function Wo(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 Wu(e,t){var a={from:j(t.from),to:so(t),text:vn(e,t.from,t.to)};return L1(e,a,t.from.line,t.to.line+1),ao(e,function(s){return L1(s,a,t.from.line,t.to.line+1)},!0),a}function Bu(e){for(;e.length;){var t=je(e);if(t.ranges)e.pop();else break}}function Ef(e,t){if(t)return Bu(e.done),je(e.done);if(e.done.length&&!je(e.done).ranges)return je(e.done);if(e.done.length>1&&!e.done[e.done.length-2].ranges)return e.done.pop(),je(e.done)}function fi(e,t,a,s){var u=e.history;u.undone.length=0;var h=+new Date,p,m;if((u.lastOp==s||u.lastOrigin==t.origin&&t.origin&&(t.origin.charAt(0)=="+"&&u.lastModTime>h-(e.cm?e.cm.options.historyEventDelay:500)||t.origin.charAt(0)=="*"))&&(p=Ef(u,u.lastOp==s)))m=je(p.changes),w(t.from,t.to)==0&&w(t.from,m.to)==0?m.to=so(t):p.changes.push(Wu(e,t));else{var b=je(u.done);for((!b||!b.ranges)&&Jr(e.sel,u.done),p={changes:[Wu(e,t)],generation:u.generation},u.done.push(p);u.done.length>u.undoDepth;)u.done.shift(),u.done[0].ranges||u.done.shift()}u.done.push(a),u.generation=++u.maxGeneration,u.lastModTime=u.lastSelTime=h,u.lastOp=u.lastSelOp=s,u.lastOrigin=u.lastSelOrigin=t.origin,m||Ze(e,"historyAdded")}function Uu(e,t,a,s){var u=t.charAt(0);return u=="*"||u=="+"&&a.ranges.length==s.ranges.length&&a.somethingSelected()==s.somethingSelected()&&new Date-e.history.lastSelTime<=(e.cm?e.cm.options.historyEventDelay:500)}function Bo(e,t,a,s){var u=e.history,h=s&&s.origin;a==u.lastSelOp||h&&u.lastSelOrigin==h&&(u.lastModTime==u.lastSelTime&&u.lastOrigin==h||Uu(e,h,je(u.done),t))?u.done[u.done.length-1]=t:Jr(t,u.done),u.lastSelTime=+new Date,u.lastSelOrigin=h,u.lastSelOp=a,s&&s.clearRedo!==!1&&Bu(u.undone)}function Jr(e,t){var a=je(t);a&&a.ranges&&a.equals(e)||t.push(e)}function L1(e,t,a,s){var u=t["spans_"+e.id],h=0;e.iter(Math.max(e.first,a),Math.min(e.first+e.size,s),function(p){p.markedSpans&&((u||(u=t["spans_"+e.id]={}))[h]=p.markedSpans),++h})}function S1(e){if(!e)return null;for(var t,a=0;a<e.length;++a)e[a].marker.explicitlyCleared?t||(t=e.slice(0,a)):t&&t.push(e[a]);return t?t.length?t:null:e}function k1(e,t){var a=t["spans_"+e.id];if(!a)return null;for(var s=[],u=0;u<t.text.length;++u)s.push(S1(a[u]));return s}function Ls(e,t){var a=k1(e,t),s=bu(e,t);if(!a)return s;if(!s)return a;for(var u=0;u<a.length;++u){var h=a[u],p=s[u];if(h&&p){e:for(var m=0;m<p.length;++m){for(var b=p[m],C=0;C<h.length;++C)if(h[C].marker==b.marker)continue e;h.push(b)}}else p&&(a[u]=p)}return a}function yn(e,t,a){for(var s=[],u=0;u<e.length;++u){var h=e[u];if(h.ranges){s.push(a?mn.prototype.deepCopy.call(h):h);continue}var p=h.changes,m=[];s.push({changes:m});for(var b=0;b<p.length;++b){var C=p[b],S=void 0;if(m.push({from:C.from,to:C.to,text:C.text}),t)for(var M in C)(S=M.match(/^spans_(\d+)$/))&&_e(t,Number(S[1]))>-1&&(je(m)[M]=C[M],delete C[M])}}return s}function Sl(e,t,a,s){if(s){var u=e.anchor;if(a){var h=w(t,u)<0;h!=w(a,u)<0?(u=t,t=a):h!=w(t,a)<0&&(t=a)}return new xt(u,t)}else return new xt(a||t,t)}function kl(e,t,a,s,u){u==null&&(u=e.cm&&(e.cm.display.shift||e.extend)),wr(e,new mn([Sl(e.sel.primary(),t,a,u)],0),s)}function _a(e,t,a){for(var s=[],u=e.cm&&(e.cm.display.shift||e.extend),h=0;h<e.sel.ranges.length;h++)s[h]=Sl(e.sel.ranges[h],t[h],null,u);var p=Dr(e.cm,s,e.sel.primIndex);wr(e,p,a)}function Yu(e,t,a,s){var u=e.sel.ranges.slice(0);u[t]=a,wr(e,Dr(e.cm,u,e.sel.primIndex),s)}function Zu(e,t,a,s){wr(e,oo(t,a),s)}function Ir(e,t,a){var s={ranges:t.ranges,update:function(u){this.ranges=[];for(var h=0;h<u.length;h++)this.ranges[h]=new xt(ge(e,u[h].anchor),ge(e,u[h].head))},origin:a&&a.origin};return Ze(e,"beforeSelectionChange",e,s),e.cm&&Ze(e.cm,"beforeSelectionChange",e.cm,s),s.ranges!=t.ranges?Dr(e.cm,s.ranges,s.ranges.length-1):t}function Ml(e,t,a){var s=e.history.done,u=je(s);u&&u.ranges?(s[s.length-1]=t,bn(e,t,a)):wr(e,t,a)}function wr(e,t,a){bn(e,t,a),Bo(e,e.sel,e.cm?e.cm.curOp.id:NaN,a)}function bn(e,t,a){(br(e,"beforeSelectionChange")||e.cm&&br(e.cm,"beforeSelectionChange"))&&(t=Ir(e,t,a));var s=a&&a.bias||(w(t.primary().head,e.sel.primary().head)<0?-1:1);Ol(e,lo(e,t,s,!0)),!(a&&a.scroll===!1)&&e.cm&&e.cm.getOption("readOnly")!="nocursor"&&to(e.cm)}function Ol(e,t){t.equals(e.sel)||(e.sel=t,e.cm&&(e.cm.curOp.updateInput=1,e.cm.curOp.selectionChanged=!0,us(e.cm)),fr(e,"cursorActivity",e))}function La(e){Ol(e,lo(e,e.sel,null,!1))}function lo(e,t,a,s){for(var u,h=0;h<t.ranges.length;h++){var p=t.ranges[h],m=t.ranges.length==e.sel.ranges.length&&e.sel.ranges[h],b=xr(e,p.anchor,m&&m.anchor,a,s),C=xr(e,p.head,m&&m.head,a,s);(u||b!=p.anchor||C!=p.head)&&(u||(u=t.ranges.slice(0,h)),u[h]=new xt(b,C))}return u?Dr(e.cm,u,t.primIndex):t}function Uo(e,t,a,s,u){var h=Me(e,t.line);if(h.markedSpans)for(var p=0;p<h.markedSpans.length;++p){var m=h.markedSpans[p],b=m.marker,C="selectLeft"in b?!b.selectLeft:b.inclusiveLeft,S="selectRight"in b?!b.selectRight:b.inclusiveRight;if((m.from==null||(C?m.from<=t.ch:m.from<t.ch))&&(m.to==null||(S?m.to>=t.ch:m.to>t.ch))){if(u&&(Ze(b,"beforeCursorEnter"),b.explicitlyCleared))if(h.markedSpans){--p;continue}else break;if(!b.atomic)continue;if(a){var M=b.find(s<0?1:-1),$=void 0;if((s<0?S:C)&&(M=Tl(e,M,-s,M&&M.line==t.line?h:null)),M&&M.line==t.line&&($=w(M,a))&&(s<0?$<0:$>0))return Uo(e,M,t,s,u)}var N=b.find(s<0?-1:1);return(s<0?C:S)&&(N=Tl(e,N,s,N.line==t.line?h:null)),N?Uo(e,N,t,s,u):null}}return t}function xr(e,t,a,s,u){var h=s||1,p=Uo(e,t,a,h,u)||!u&&Uo(e,t,a,h,!0)||Uo(e,t,a,-h,u)||!u&&Uo(e,t,a,-h,!0);return p||(e.cantEdit=!0,ne(e.first,0))}function Tl(e,t,a,s){return a<0&&t.ch==0?t.line>e.first?ge(e,ne(t.line-1)):null:a>0&&t.ch==(s||Me(e,t.line)).text.length?t.line<e.first+e.size-1?ne(t.line+1,0):null:new ne(t.line,t.ch+a)}function M1(e){e.setSelection(ne(e.firstLine(),0),ne(e.lastLine()),it)}function O1(e,t,a){var s={canceled:!1,from:t.from,to:t.to,text:t.text,origin:t.origin,cancel:function(){return s.canceled=!0}};return a&&(s.update=function(u,h,p,m){u&&(s.from=ge(e,u)),h&&(s.to=ge(e,h)),p&&(s.text=p),m!==void 0&&(s.origin=m)}),Ze(e,"beforeChange",e,s),e.cm&&Ze(e.cm,"beforeChange",e.cm,s),s.canceled?(e.cm&&(e.cm.curOp.updateInput=2),null):{from:s.from,to:s.to,text:s.text,origin:s.origin}}function Ss(e,t,a){if(e.cm){if(!e.cm.curOp)return qt(e.cm,Ss)(e,t,a);if(e.cm.state.suppressEdits)return}if(!((br(e,"beforeChange")||e.cm&&br(e.cm,"beforeChange"))&&(t=O1(e,t,!0),!t))){var s=yu&&!a&&Cu(e,t.from,t.to);if(s)for(var u=s.length-1;u>=0;--u)Pl(e,{from:s[u].from,to:s[u].to,text:u?[""]:t.text,origin:t.origin});else Pl(e,t)}}function Pl(e,t){if(!(t.text.length==1&&t.text[0]==""&&w(t.from,t.to)==0)){var a=Ru(e,t);fi(e,t,a,e.cm?e.cm.curOp.id:NaN),Ms(e,t,a,bu(e,t));var s=[];ao(e,function(u,h){!h&&_e(s,u.history)==-1&&(P1(u.history,t),s.push(u.history)),Ms(u,t,null,bu(u,t))})}}function El(e,t,a){var s=e.cm&&e.cm.state.suppressEdits;if(!(s&&!a)){for(var u=e.history,h,p=e.sel,m=t=="undo"?u.done:u.undone,b=t=="undo"?u.undone:u.done,C=0;C<m.length&&(h=m[C],!(a?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(Jr(h,b),a&&!h.equals(e.sel)){wr(e,h,{clearRedo:!1});return}p=h}else if(s){m.push(h);return}else break;var S=[];Jr(p,b),b.push({changes:S,generation:u.generation}),u.generation=h.generation||++u.maxGeneration;for(var M=br(e,"beforeChange")||e.cm&&br(e.cm,"beforeChange"),$=function(Q){var ae=h.changes[Q];if(ae.origin=t,M&&!O1(e,ae,!1))return m.length=0,{};S.push(Wu(e,ae));var ce=Q?Ru(e,ae):je(m);Ms(e,ae,ce,Ls(e,ae)),!Q&&e.cm&&e.cm.scrollIntoView({from:ae.from,to:so(ae)});var be=[];ao(e,function(fe,we){!we&&_e(be,fe.history)==-1&&(P1(fe.history,ae),be.push(fe.history)),Ms(fe,ae,null,Ls(fe,ae))})},N=h.changes.length-1;N>=0;--N){var Z=$(N);if(Z)return Z.v}}}}function ks(e,t){if(t!=0&&(e.first+=t,e.sel=new mn(mt(e.sel.ranges,function(u){return new xt(ne(u.anchor.line+t,u.anchor.ch),ne(u.head.line+t,u.head.ch))}),e.sel.primIndex),e.cm)){et(e.cm,e.first,e.first-t,t);for(var a=e.cm.display,s=a.viewFrom;s<a.viewTo;s++)Qi(e.cm,s,"gutter")}}function Ms(e,t,a,s){if(e.cm&&!e.cm.curOp)return qt(e.cm,Ms)(e,t,a,s);if(t.to.line<e.first){ks(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);ks(e,u),t={from:ne(e.first,0),to:ne(t.to.line+u,t.to.ch),text:[je(t.text)],origin:t.origin}}var h=e.lastLine();t.to.line>h&&(t={from:t.from,to:ne(h,Me(e,h).text.length),text:[t.text[0]],origin:t.origin}),t.removed=vn(e,t.from,t.to),a||(a=Ru(e,t)),e.cm?Af(e.cm,t,s):_l(e,t,s),bn(e,a,it),e.cantEdit&&xr(e,ne(e.firstLine(),0))&&(e.cantEdit=!1)}}function Af(e,t,a){var s=e.doc,u=e.display,h=t.from,p=t.to,m=!1,b=h.line;e.options.lineWrapping||(b=wt(ii(Me(s,h.line))),s.iter(b,p.line+1,function(N){if(N==u.maxLine)return m=!0,!0})),s.sel.contains(t.from,t.to)>-1&&us(e),_l(s,t,a,h1(e)),e.options.lineWrapping||(s.iter(b,h.line+t.text.length,function(N){var Z=ua(N);Z>u.maxLineLength&&(u.maxLine=N,u.maxLineLength=Z,u.maxLineChanged=!0,m=!1)}),m&&(e.curOp.updateMaxLine=!0)),tf(s,h.line),ui(e,400);var C=t.text.length-(p.line-h.line)-1;t.full?et(e):h.line==p.line&&t.text.length==1&&!Fu(e.doc,t)?Qi(e,h.line,"text"):et(e,h.line,p.line+1,C);var S=br(e,"changes"),M=br(e,"change");if(M||S){var $={from:h,to:p,text:t.text,removed:t.removed,origin:t.origin};M&&fr(e,"change",e,$),S&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push($)}e.display.selForContextMenu=null}function Os(e,t,a,s,u){var h;s||(s=a),w(s,a)<0&&(h=[s,a],a=h[0],s=h[1]),typeof t=="string"&&(t=e.splitLines(t)),Ss(e,{from:a,to:s,text:t,origin:u})}function Ts(e,t,a,s){a<e.line?e.line+=s:t<e.line&&(e.line=t,e.ch=0)}function T1(e,t,a,s){for(var u=0;u<e.length;++u){var h=e[u],p=!0;if(h.ranges){h.copied||(h=e[u]=h.deepCopy(),h.copied=!0);for(var m=0;m<h.ranges.length;m++)Ts(h.ranges[m].anchor,t,a,s),Ts(h.ranges[m].head,t,a,s);continue}for(var b=0;b<h.changes.length;++b){var C=h.changes[b];if(a<C.from.line)C.from=ne(C.from.line+s,C.from.ch),C.to=ne(C.to.line+s,C.to.ch);else if(t<=C.to.line){p=!1;break}}p||(e.splice(0,u+1),u=0)}}function P1(e,t){var a=t.from.line,s=t.to.line,u=t.text.length-(s-a)-1;T1(e.done,a,s,u),T1(e.undone,a,s,u)}function Yo(e,t,a,s){var u=t,h=t;return typeof t=="number"?h=Me(e,pt(e,t)):u=wt(t),u==null?null:(s(h,u)&&e.cm&&Qi(e.cm,u,a),h)}function Ps(e){this.lines=e,this.parent=null;for(var t=0,a=0;a<e.length;++a)e[a].parent=this,t+=e[a].height;this.height=t}Ps.prototype={chunkSize:function(){return this.lines.length},removeInner:function(e,t){for(var a=e,s=e+t;a<s;++a){var u=this.lines[a];this.height-=u.height,e1(u),fr(u,"delete")}this.lines.splice(e,t)},collapse:function(e){e.push.apply(e,this.lines)},insertInner:function(e,t,a){this.height+=a,this.lines=this.lines.slice(0,e).concat(t).concat(this.lines.slice(e));for(var s=0;s<t.length;++s)t[s].parent=this},iterN:function(e,t,a){for(var s=e+t;e<s;++e)if(a(this.lines[e]))return!0}};function Sa(e){this.children=e;for(var t=0,a=0,s=0;s<e.length;++s){var u=e[s];t+=u.chunkSize(),a+=u.height,u.parent=this}this.size=t,this.height=a,this.parent=null}Sa.prototype={chunkSize:function(){return this.size},removeInner:function(e,t){this.size-=t;for(var a=0;a<this.children.length;++a){var s=this.children[a],u=s.chunkSize();if(e<u){var h=Math.min(t,u-e),p=s.height;if(s.removeInner(e,h),this.height-=p-s.height,u==h&&(this.children.splice(a--,1),s.parent=null),(t-=h)==0)break;e=0}else e-=u}if(this.size-t<25&&(this.children.length>1||!(this.children[0]instanceof Ps))){var m=[];this.collapse(m),this.children=[new Ps(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,a){this.size+=t.length,this.height+=a;for(var s=0;s<this.children.length;++s){var u=this.children[s],h=u.chunkSize();if(e<=h){if(u.insertInner(e,t,a),u.lines&&u.lines.length>50){for(var p=u.lines.length%25+25,m=p;m<u.lines.length;){var b=new Ps(u.lines.slice(m,m+=25));u.height-=b.height,this.children.splice(++s,0,b),b.parent=this}u.lines=u.lines.slice(0,p),this.maybeSpill()}break}e-=h}},maybeSpill:function(){if(!(this.children.length<=10)){var e=this;do{var t=e.children.splice(e.children.length-5,5),a=new Sa(t);if(e.parent){e.size-=a.size,e.height-=a.height;var u=_e(e.parent.children,e);e.parent.children.splice(u+1,0,a)}else{var s=new Sa(e.children);s.parent=e,e.children=[s,a],e=s}a.parent=e.parent}while(e.children.length>10);e.parent.maybeSpill()}},iterN:function(e,t,a){for(var s=0;s<this.children.length;++s){var u=this.children[s],h=u.chunkSize();if(e<h){var p=Math.min(t,h-e);if(u.iterN(e,p,a))return!0;if((t-=p)==0)break;e=0}else e-=h}}};var ka=function(e,t,a){if(a)for(var s in a)a.hasOwnProperty(s)&&(this[s]=a[s]);this.doc=e,this.node=t};ka.prototype.clear=function(){var e=this.doc.cm,t=this.line.widgets,a=this.line,s=wt(a);if(!(s==null||!t)){for(var u=0;u<t.length;++u)t[u]==this&&t.splice(u--,1);t.length||(a.widgets=null);var h=Do(this);tn(a,Math.max(0,a.height-h)),e&&(Er(e,function(){E1(e,a,-h),Qi(e,s,"widget")}),fr(e,"lineWidgetCleared",e,this,s))}},ka.prototype.changed=function(){var e=this,t=this.height,a=this.doc.cm,s=this.line;this.height=null;var u=Do(this)-t;!u||(Vt(this.doc,s)||tn(s,s.height+u),a&&Er(a,function(){a.curOp.forceUpdate=!0,E1(a,s,u),fr(a,"lineWidgetChanged",a,e,wt(s))}))},Hn(ka);function E1(e,t,a){Kr(t)<(e.curOp&&e.curOp.scrollTop||e.doc.scrollTop)&&ws(e,a)}function A1(e,t,a,s){var u=new ka(e,a,s),h=e.cm;return h&&u.noHScroll&&(h.display.alignWidgets=!0),Yo(e,t,"widget",function(p){var m=p.widgets||(p.widgets=[]);if(u.insertAt==null?m.push(u):m.splice(Math.min(m.length,Math.max(0,u.insertAt)),0,u),u.line=p,h&&!Vt(e,p)){var b=Kr(p)<e.scrollTop;tn(p,p.height+Do(u)),b&&ws(h,u.height),h.curOp.forceUpdate=!0}return!0}),h&&fr(h,"lineWidgetAdded",h,u,typeof t=="number"?t:wt(t)),u}var Al=0,uo=function(e,t){this.lines=[],this.type=t,this.doc=e,this.id=++Al};uo.prototype.clear=function(){if(!this.explicitlyCleared){var e=this.doc.cm,t=e&&!e.curOp;if(t&&Vn(e),br(this,"clear")){var a=this.find();a&&fr(this,"clear",a.from,a.to)}for(var s=null,u=null,h=0;h<this.lines.length;++h){var p=this.lines[h],m=aa(p.markedSpans,this);e&&!this.collapsed?Qi(e,wt(p),"text"):e&&(m.to!=null&&(u=wt(p)),m.from!=null&&(s=wt(p))),p.markedSpans=rf(p.markedSpans,m),m.from==null&&this.collapsed&&!Vt(this.doc,p)&&e&&tn(p,Ki(e.display))}if(e&&this.collapsed&&!e.options.lineWrapping)for(var b=0;b<this.lines.length;++b){var C=ii(this.lines[b]),S=ua(C);S>e.display.maxLineLength&&(e.display.maxLine=C,e.display.maxLineLength=S,e.display.maxLineChanged=!0)}s!=null&&e&&this.collapsed&&et(e,s,u+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&La(e.doc)),e&&fr(e,"markerCleared",e,this,s,u),t&&li(e),this.parent&&this.parent.clear()}},uo.prototype.find=function(e,t){e==null&&this.type=="bookmark"&&(e=1);for(var a,s,u=0;u<this.lines.length;++u){var h=this.lines[u],p=aa(h.markedSpans,this);if(p.from!=null&&(a=ne(t?h:wt(h),p.from),e==-1))return a;if(p.to!=null&&(s=ne(t?h:wt(h),p.to),e==1))return s}return a&&{from:a,to:s}},uo.prototype.changed=function(){var e=this,t=this.find(-1,!0),a=this,s=this.doc.cm;!t||!s||Er(s,function(){var u=t.line,h=wt(t.line),p=Eu(s,h);if(p&&(u1(p),s.curOp.selectionChanged=s.curOp.forceUpdate=!0),s.curOp.updateMaxLine=!0,!Vt(a.doc,u)&&a.height!=null){var m=a.height;a.height=null;var b=Do(a)-m;b&&tn(u,u.height+b)}fr(s,"markerChanged",s,e)})},uo.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)},uo.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)}},Hn(uo);function co(e,t,a,s,u){if(s&&s.shared)return D1(e,t,a,s,u);if(e.cm&&!e.cm.curOp)return qt(e.cm,co)(e,t,a,s,u);var h=new uo(e,u),p=w(t,a);if(s&&Qt(s,h,!1),p>0||p==0&&h.clearWhenEmpty!==!1)return h;if(h.replacedWith&&(h.collapsed=!0,h.widgetNode=T("span",[h.replacedWith],"CodeMirror-widget"),s.handleMouseEvents||h.widgetNode.setAttribute("cm-ignore-events","true"),s.insertLeft&&(h.widgetNode.insertLeft=!0)),h.collapsed){if(X0(e,t.line,t,a,h)||t.line!=a.line&&X0(e,a.line,t,a,h))throw new Error("Inserting collapsed marker partially overlapping an existing one");V0()}h.addToHistory&&fi(e,{from:t,to:a,origin:"markText"},e.sel,NaN);var m=t.line,b=e.cm,C;if(e.iter(m,a.line+1,function(M){b&&h.collapsed&&!b.options.lineWrapping&&ii(M)==b.display.maxLine&&(C=!0),h.collapsed&&m!=t.line&&tn(M,0),G0(M,new il(h,m==t.line?t.ch:null,m==a.line?a.ch:null),e.cm&&e.cm.curOp),++m}),h.collapsed&&e.iter(t.line,a.line+1,function(M){Vt(e,M)&&tn(M,0)}),h.clearOnEnter&&Ne(h,"beforeCursorEnter",function(){return h.clear()}),h.readOnly&&(Z0(),(e.history.done.length||e.history.undone.length)&&e.clearHistory()),h.collapsed&&(h.id=++Al,h.atomic=!0),b){if(C&&(b.curOp.updateMaxLine=!0),h.collapsed)et(b,t.line,a.line+1);else if(h.className||h.startStyle||h.endStyle||h.css||h.attributes||h.title)for(var S=t.line;S<=a.line;S++)Qi(b,S,"text");h.atomic&&La(b.doc),fr(b,"markerAdded",b,h)}return h}var Es=function(e,t){this.markers=e,this.primary=t;for(var a=0;a<e.length;++a)e[a].parent=this};Es.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var e=0;e<this.markers.length;++e)this.markers[e].clear();fr(this,"clear")}},Es.prototype.find=function(e,t){return this.primary.find(e,t)},Hn(Es);function D1(e,t,a,s,u){s=Qt(s),s.shared=!1;var h=[co(e,t,a,s,u)],p=h[0],m=s.widgetNode;return ao(e,function(b){m&&(s.widgetNode=m.cloneNode(!0)),h.push(co(b,ge(b,t),ge(b,a),s,u));for(var C=0;C<b.linked.length;++C)if(b.linked[C].isParent)return;p=je(h)}),new Es(h,p)}function Vu(e){return e.findMarks(ne(e.first,0),e.clipPos(ne(e.lastLine())),function(t){return t.parent})}function Dl(e,t){for(var a=0;a<t.length;a++){var s=t[a],u=s.find(),h=e.clipPos(u.from),p=e.clipPos(u.to);if(w(h,p)){var m=co(e,h,p,s.primary,s.primary.type);s.markers.push(m),m.parent=s}}}function Df(e){for(var t=function(s){var u=e[s],h=[u.primary.doc];ao(u.primary.doc,function(b){return h.push(b)});for(var p=0;p<u.markers.length;p++){var m=u.markers[p];_e(h,m.doc)==-1&&(m.parent=null,u.markers.splice(p--,1))}},a=0;a<e.length;a++)t(a)}var I1=0,Hr=function(e,t,a,s,u){if(!(this instanceof Hr))return new Hr(e,t,a,s,u);a==null&&(a=0),Sa.call(this,[new Ps([new Tr("",null)])]),this.first=a,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=a;var h=ne(a,0);this.sel=oo(h),this.history=new Wo(null),this.id=++I1,this.modeOption=t,this.lineSep=s,this.direction=u=="rtl"?"rtl":"ltr",this.extend=!1,typeof e=="string"&&(e=this.splitLines(e)),_l(this,{from:h,to:h,text:e}),wr(this,oo(h),it)};Hr.prototype=en(Sa.prototype,{constructor:Hr,iter:function(e,t,a){a?this.iterN(e-this.first,t-e,a):this.iterN(this.first,this.first+this.size,e)},insert:function(e,t){for(var a=0,s=0;s<t.length;++s)a+=t[s].height;this.insertInner(e-this.first,t,a)},remove:function(e,t){this.removeInner(e-this.first,t)},getValue:function(e){var t=oa(this,this.first,this.first+this.size);return e===!1?t:t.join(e||this.lineSeparator())},setValue:_(function(e){var t=ne(this.first,0),a=this.first+this.size-1;Ss(this,{from:t,to:ne(a,Me(this,a).text.length),text:this.splitLines(e),origin:"setValue",full:!0},!0),this.cm&&ga(this.cm,0,0),wr(this,oo(t),it)}),replaceRange:function(e,t,a,s){t=ge(this,t),a=a?ge(this,a):t,Os(this,e,t,a,s)},getRange:function(e,t,a){var s=vn(this,ge(this,e),ge(this,t));return a===!1?s:a===""?s.join(""):s.join(a||this.lineSeparator())},getLine:function(e){var t=this.getLineHandle(e);return t&&t.text},getLineHandle:function(e){if(Yi(this,e))return Me(this,e)},getLineNumber:function(e){return wt(e)},getLineHandleVisualStart:function(e){return typeof e=="number"&&(e=Me(this,e)),ii(e)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(e){return ge(this,e)},getCursor:function(e){var t=this.sel.primary(),a;return e==null||e=="head"?a=t.head:e=="anchor"?a=t.anchor:e=="end"||e=="to"||e===!1?a=t.to():a=t.from(),a},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:_(function(e,t,a){Zu(this,ge(this,typeof e=="number"?ne(e,t||0):e),null,a)}),setSelection:_(function(e,t,a){Zu(this,ge(this,e),ge(this,t||e),a)}),extendSelection:_(function(e,t,a){kl(this,ge(this,e),t&&ge(this,t),a)}),extendSelections:_(function(e,t){_a(this,rn(this,e),t)}),extendSelectionsBy:_(function(e,t){var a=mt(this.sel.ranges,e);_a(this,rn(this,a),t)}),setSelections:_(function(e,t,a){if(!!e.length){for(var s=[],u=0;u<e.length;u++)s[u]=new xt(ge(this,e[u].anchor),ge(this,e[u].head||e[u].anchor));t==null&&(t=Math.min(e.length-1,this.sel.primIndex)),wr(this,Dr(this.cm,s,t),a)}}),addSelection:_(function(e,t,a){var s=this.sel.ranges.slice(0);s.push(new xt(ge(this,e),ge(this,t||e))),wr(this,Dr(this.cm,s,s.length-1),a)}),getSelection:function(e){for(var t=this.sel.ranges,a,s=0;s<t.length;s++){var u=vn(this,t[s].from(),t[s].to());a=a?a.concat(u):u}return e===!1?a:a.join(e||this.lineSeparator())},getSelections:function(e){for(var t=[],a=this.sel.ranges,s=0;s<a.length;s++){var u=vn(this,a[s].from(),a[s].to());e!==!1&&(u=u.join(e||this.lineSeparator())),t[s]=u}return t},replaceSelection:function(e,t,a){for(var s=[],u=0;u<this.sel.ranges.length;u++)s[u]=e;this.replaceSelections(s,t,a||"+input")},replaceSelections:_(function(e,t,a){for(var s=[],u=this.sel,h=0;h<u.ranges.length;h++){var p=u.ranges[h];s[h]={from:p.from(),to:p.to(),text:this.splitLines(e[h]),origin:a}}for(var m=t&&t!="end"&&Pf(this,s,t),b=s.length-1;b>=0;b--)Ss(this,s[b]);m?Ml(this,m):this.cm&&to(this.cm)}),undo:_(function(){El(this,"undo")}),redo:_(function(){El(this,"redo")}),undoSelection:_(function(){El(this,"undo",!0)}),redoSelection:_(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,a=0,s=0;s<e.done.length;s++)e.done[s].ranges||++t;for(var u=0;u<e.undone.length;u++)e.undone[u].ranges||++a;return{undo:t,redo:a}},clearHistory:function(){var e=this;this.history=new Wo(this.history),ao(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 Wo(this.history);t.done=yn(e.done.slice(0),null,!0),t.undone=yn(e.undone.slice(0),null,!0)},setGutterMarker:_(function(e,t,a){return Yo(this,e,"gutter",function(s){var u=s.gutterMarkers||(s.gutterMarkers={});return u[t]=a,!a&&ie(u)&&(s.gutterMarkers=null),!0})}),clearGutter:_(function(e){var t=this;this.iter(function(a){a.gutterMarkers&&a.gutterMarkers[e]&&Yo(t,a,"gutter",function(){return a.gutterMarkers[e]=null,ie(a.gutterMarkers)&&(a.gutterMarkers=null),!0})})}),lineInfo:function(e){var t;if(typeof e=="number"){if(!Yi(this,e)||(t=e,e=Me(this,e),!e))return null}else if(t=wt(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:_(function(e,t,a){return Yo(this,e,t=="gutter"?"gutter":"class",function(s){var u=t=="text"?"textClass":t=="background"?"bgClass":t=="gutter"?"gutterClass":"wrapClass";if(!s[u])s[u]=a;else{if(pe(a).test(s[u]))return!1;s[u]+=" "+a}return!0})}),removeLineClass:_(function(e,t,a){return Yo(this,e,t=="gutter"?"gutter":"class",function(s){var u=t=="text"?"textClass":t=="background"?"bgClass":t=="gutter"?"gutterClass":"wrapClass",h=s[u];if(h)if(a==null)s[u]=null;else{var p=h.match(pe(a));if(!p)return!1;var m=p.index+p[0].length;s[u]=h.slice(0,p.index)+(!p.index||m==h.length?"":" ")+h.slice(m)||null}else return!1;return!0})}),addLineWidget:_(function(e,t,a){return A1(this,e,t,a)}),removeLineWidget:function(e){e.clear()},markText:function(e,t,a){return co(this,ge(this,e),ge(this,t),a,a&&a.type||"range")},setBookmark:function(e,t){var a={replacedWith:t&&(t.nodeType==null?t.widget:t),insertLeft:t&&t.insertLeft,clearWhenEmpty:!1,shared:t&&t.shared,handleMouseEvents:t&&t.handleMouseEvents};return e=ge(this,e),co(this,e,e,a,"bookmark")},findMarksAt:function(e){e=ge(this,e);var t=[],a=Me(this,e.line).markedSpans;if(a)for(var s=0;s<a.length;++s){var u=a[s];(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,a){e=ge(this,e),t=ge(this,t);var s=[],u=e.line;return this.iter(e.line,t.line+1,function(h){var p=h.markedSpans;if(p)for(var m=0;m<p.length;m++){var b=p[m];!(b.to!=null&&u==e.line&&e.ch>=b.to||b.from==null&&u!=e.line||b.from!=null&&u==t.line&&b.from>=t.ch)&&(!a||a(b.marker))&&s.push(b.marker.parent||b.marker)}++u}),s},getAllMarks:function(){var e=[];return this.iter(function(t){var a=t.markedSpans;if(a)for(var s=0;s<a.length;++s)a[s].from!=null&&e.push(a[s].marker)}),e},posFromIndex:function(e){var t,a=this.first,s=this.lineSeparator().length;return this.iter(function(u){var h=u.text.length+s;if(h>e)return t=e,!0;e-=h,++a}),ge(this,ne(a,t))},indexFromPos:function(e){e=ge(this,e);var t=e.ch;if(e.line<this.first||e.ch<0)return 0;var a=this.lineSeparator().length;return this.iter(this.first,e.line,function(s){t+=s.text.length+a}),t},copy:function(e){var t=new Hr(oa(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,a=this.first+this.size;e.from!=null&&e.from>t&&(t=e.from),e.to!=null&&e.to<a&&(a=e.to);var s=new Hr(oa(this,t,a),e.mode||this.modeOption,t,this.lineSep,this.direction);return e.sharedHist&&(s.history=this.history),(this.linked||(this.linked=[])).push({doc:s,sharedHist:e.sharedHist}),s.linked=[{doc:this,isParent:!0,sharedHist:e.sharedHist}],Dl(s,Vu(this)),s},unlinkDoc:function(e){if(e instanceof Dt&&(e=e.doc),this.linked)for(var t=0;t<this.linked.length;++t){var a=this.linked[t];if(a.doc==e){this.linked.splice(t,1),e.unlinkDoc(this),Df(Vu(this));break}}if(e.history==this.history){var s=[e.id];ao(e,function(u){return s.push(u.id)},!0),e.history=new Wo(null),e.history.done=yn(this.history.done,s),e.history.undone=yn(this.history.undone,s)}},iterLinkedDocs:function(e){ao(this,e)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(e){return this.lineSep?e.split(this.lineSep):Oo(e)},lineSeparator:function(){return this.lineSep||`
2104
+ `},setDirection:_(function(e){e!="rtl"&&(e="ltr"),e!=this.direction&&(this.direction=e,this.iter(function(t){return t.order=null}),this.cm&&xa(this.cm))})}),Hr.prototype.eachLine=Hr.prototype.iter;var z1=0;function N1(e){var t=this;if(qu(t),!(rr(t,e)||Li(t.display,e))){Cr(e),k&&(z1=+new Date);var a=si(t,e,!0),s=e.dataTransfer.files;if(!(!a||t.isReadOnly()))if(s&&s.length&&window.FileReader&&window.File)for(var u=s.length,h=Array(u),p=0,m=function(){++p==u&&qt(t,function(){a=ge(t.doc,a);var N={from:a,to:a,text:t.doc.splitLines(h.filter(function(Z){return Z!=null}).join(t.doc.lineSeparator())),origin:"paste"};Ss(t.doc,N),Ml(t.doc,oo(ge(t.doc,a),ge(t.doc,so(N))))})()},b=function(N,Z){if(t.options.allowDropFileTypes&&_e(t.options.allowDropFileTypes,N.type)==-1){m();return}var Q=new FileReader;Q.onerror=function(){return m()},Q.onload=function(){var ae=Q.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(ae)){m();return}h[Z]=ae,m()},Q.readAsText(N)},C=0;C<s.length;C++)b(s[C],C);else{if(t.state.draggingText&&t.doc.sel.contains(a)>-1){t.state.draggingText(e),setTimeout(function(){return t.display.input.focus()},20);return}try{var S=e.dataTransfer.getData("Text");if(S){var M;if(t.state.draggingText&&!t.state.draggingText.copy&&(M=t.listSelections()),bn(t.doc,oo(a,a)),M)for(var $=0;$<M.length;++$)Os(t.doc,"",M[$].anchor,M[$].head,"drag");t.replaceSelection(S,"around","paste"),t.display.input.focus()}}catch{}}}}function If(e,t){if(k&&(!e.state.draggingText||+new Date-z1<100)){ko(t);return}if(!(rr(e,t)||Li(e.display,t))&&(t.dataTransfer.setData("Text",e.getSelection()),t.dataTransfer.effectAllowed="copyMove",t.dataTransfer.setDragImage&&!ue)){var a=D("img",null,null,"position: fixed; left: 0; top: 0;");a.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",X&&(a.width=a.height=1,e.display.wrapper.appendChild(a),a._top=a.offsetTop),t.dataTransfer.setDragImage(a,0,0),X&&a.parentNode.removeChild(a)}}function Gu(e,t){var a=si(e,t);if(!!a){var s=document.createDocumentFragment();ki(e,a,s),e.display.dragCursor||(e.display.dragCursor=D("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),e.display.lineSpace.insertBefore(e.display.dragCursor,e.display.cursorDiv)),B(e.display.dragCursor,s)}}function qu(e){e.display.dragCursor&&(e.display.lineSpace.removeChild(e.display.dragCursor),e.display.dragCursor=null)}function Il(e){if(!!document.getElementsByClassName){for(var t=document.getElementsByClassName("CodeMirror"),a=[],s=0;s<t.length;s++){var u=t[s].CodeMirror;u&&a.push(u)}a.length&&a[0].operation(function(){for(var h=0;h<a.length;h++)e(a[h])})}}var $1=!1;function ju(){$1||(ut(),$1=!0)}function ut(){var e;Ne(window,"resize",function(){e==null&&(e=setTimeout(function(){e=null,Il(zf)},100))}),Ne(window,"blur",function(){return Il($o)})}function zf(e){var t=e.display;t.cachedCharWidth=t.cachedTextHeight=t.cachedPaddingH=null,t.scrollbarsClipped=!1,e.setSize()}for(var fo={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"},Mi=0;Mi<10;Mi++)fo[Mi+48]=fo[Mi+96]=String(Mi);for(var Ma=65;Ma<=90;Ma++)fo[Ma]=String.fromCharCode(Ma);for(var Oa=1;Oa<=12;Oa++)fo[Oa+111]=fo[Oa+63235]="F"+Oa;var Oi={};Oi.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"},Oi.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"},Oi.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"},Oi.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"]},Oi.default=de?Oi.macDefault:Oi.pcDefault;function kn(e){var t=e.split(/-(?!$)/);e=t[t.length-1];for(var a,s,u,h,p=0;p<t.length-1;p++){var m=t[p];if(/^(cmd|meta|m)$/i.test(m))h=!0;else if(/^a(lt)?$/i.test(m))a=!0;else if(/^(c|ctrl|control)$/i.test(m))s=!0;else if(/^s(hift)?$/i.test(m))u=!0;else throw new Error("Unrecognized modifier name: "+m)}return a&&(e="Alt-"+e),s&&(e="Ctrl-"+e),h&&(e="Cmd-"+e),u&&(e="Shift-"+e),e}function Nf(e){var t={};for(var a in e)if(e.hasOwnProperty(a)){var s=e[a];if(/^(name|fallthrough|(de|at)tach)$/.test(a))continue;if(s=="..."){delete e[a];continue}for(var u=mt(a.split(" "),kn),h=0;h<u.length;h++){var p=void 0,m=void 0;h==u.length-1?(m=u.join(" "),p=s):(m=u.slice(0,h+1).join(" "),p="...");var b=t[m];if(!b)t[m]=p;else if(b!=p)throw new Error("Inconsistent bindings for "+m)}delete e[a]}for(var C in t)e[C]=t[C];return e}function Ti(e,t,a,s){t=Fr(t);var u=t.call?t.call(e,s):t[e];if(u===!1)return"nothing";if(u==="...")return"multi";if(u!=null&&a(u))return"handled";if(t.fallthrough){if(Object.prototype.toString.call(t.fallthrough)!="[object Array]")return Ti(e,t.fallthrough,a,s);for(var h=0;h<t.fallthrough.length;h++){var p=Ti(e,t.fallthrough[h],a,s);if(p)return p}}}function zl(e){var t=typeof e=="string"?e:fo[e.keyCode];return t=="Ctrl"||t=="Alt"||t=="Shift"||t=="Mod"}function Ku(e,t,a){var s=e;return t.altKey&&s!="Alt"&&(e="Alt-"+e),(Qe?t.metaKey:t.ctrlKey)&&s!="Ctrl"&&(e="Ctrl-"+e),(Qe?t.ctrlKey:t.metaKey)&&s!="Mod"&&(e="Cmd-"+e),!a&&t.shiftKey&&s!="Shift"&&(e="Shift-"+e),e}function Xu(e,t){if(X&&e.keyCode==34&&e.char)return!1;var a=fo[e.keyCode];return a==null||e.altGraphKey?!1:(e.keyCode==3&&e.code&&(a=e.code),Ku(a,e,t))}function Fr(e){return typeof e=="string"?Oi[e]:e}function Cn(e,t){for(var a=e.doc.sel.ranges,s=[],u=0;u<a.length;u++){for(var h=t(a[u]);s.length&&w(h.from,je(s).to)<=0;){var p=s.pop();if(w(p.from,h.from)<0){h.from=p.from;break}}s.push(h)}Er(e,function(){for(var m=s.length-1;m>=0;m--)Os(e.doc,"",s[m].from,s[m].to,"+delete");to(e)})}function Ta(e,t,a){var s=cr(e.text,t+a,a);return s<0||s>e.text.length?null:s}function Nl(e,t,a){var s=Ta(e,t.ch,a);return s==null?null:new ne(t.line,s,a<0?"after":"before")}function As(e,t,a,s,u){if(e){t.doc.direction=="rtl"&&(u=-u);var h=Rr(a,t.doc.direction);if(h){var p=u<0?je(h):h[0],m=u<0==(p.level==1),b=m?"after":"before",C;if(p.level>0||t.doc.direction=="rtl"){var S=Yn(t,a);C=u<0?a.text.length-1:0;var M=oi(t,S,C).top;C=kr(function($){return oi(t,S,$).top==M},u<0==(p.level==1)?p.from:p.to-1,C),b=="before"&&(C=Ta(a,C,1))}else C=u<0?p.to:p.from;return new ne(s,C,b)}}return new ne(s,u<0?a.text.length:0,u<0?"before":"after")}function R1(e,t,a,s){var u=Rr(t,e.doc.direction);if(!u)return Nl(t,a,s);a.ch>=t.text.length?(a.ch=t.text.length,a.sticky="before"):a.ch<=0&&(a.ch=0,a.sticky="after");var h=Ut(u,a.ch,a.sticky),p=u[h];if(e.doc.direction=="ltr"&&p.level%2==0&&(s>0?p.to>a.ch:p.from<a.ch))return Nl(t,a,s);var m=function(ce,be){return Ta(t,ce instanceof ne?ce.ch:ce,be)},b,C=function(ce){return e.options.lineWrapping?(b=b||Yn(e,t),Y(e,t,b,ce)):{begin:0,end:t.text.length}},S=C(a.sticky=="before"?m(a,-1):a.ch);if(e.doc.direction=="rtl"||p.level==1){var M=p.level==1==s<0,$=m(a,M?1:-1);if($!=null&&(M?$<=p.to&&$<=S.end:$>=p.from&&$>=S.begin)){var N=M?"before":"after";return new ne(a.line,$,N)}}var Z=function(ce,be,fe){for(var we=function(Mt,ar){return ar?new ne(a.line,m(Mt,1),"before"):new ne(a.line,Mt,"after")};ce>=0&&ce<u.length;ce+=be){var Ie=u[ce],Pe=be>0==(Ie.level!=1),st=Pe?fe.begin:m(fe.end,-1);if(Ie.from<=st&&st<Ie.to||(st=Pe?Ie.from:m(Ie.to,-1),fe.begin<=st&&st<fe.end))return we(st,Pe)}},Q=Z(h+s,s,S);if(Q)return Q;var ae=s>0?S.end:m(S.begin,-1);return ae!=null&&!(s>0&&ae==t.text.length)&&(Q=Z(s>0?0:u.length-1,s,C(ae)),Q)?Q:null}var Zo={selectAll:M1,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),it)},killLine:function(e){return Cn(e,function(t){if(t.empty()){var a=Me(e.doc,t.head.line).text.length;return t.head.ch==a&&t.head.line<e.lastLine()?{from:t.head,to:ne(t.head.line+1,0)}:{from:t.head,to:ne(t.head.line,a)}}else return{from:t.from(),to:t.to()}})},deleteLine:function(e){return Cn(e,function(t){return{from:ne(t.from().line,0),to:ge(e.doc,ne(t.to().line+1,0))}})},delLineLeft:function(e){return Cn(e,function(t){return{from:ne(t.from().line,0),to:t.from()}})},delWrappedLineLeft:function(e){return Cn(e,function(t){var a=e.charCoords(t.head,"div").top+5,s=e.coordsChar({left:0,top:a},"div");return{from:s,to:t.from()}})},delWrappedLineRight:function(e){return Cn(e,function(t){var a=e.charCoords(t.head,"div").top+5,s=e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:a},"div");return{from:t.from(),to:s}})},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(ne(e.firstLine(),0))},goDocEnd:function(e){return e.extendSelection(ne(e.lastLine()))},goLineStart:function(e){return e.extendSelectionsBy(function(t){return Qu(e,t.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(e){return e.extendSelectionsBy(function(t){return $l(e,t.head)},{origin:"+move",bias:1})},goLineEnd:function(e){return e.extendSelectionsBy(function(t){return Ju(e,t.head.line)},{origin:"+move",bias:-1})},goLineRight:function(e){return e.extendSelectionsBy(function(t){var a=e.cursorCoords(t.head,"div").top+5;return e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:a},"div")},Fe)},goLineLeft:function(e){return e.extendSelectionsBy(function(t){var a=e.cursorCoords(t.head,"div").top+5;return e.coordsChar({left:0,top:a},"div")},Fe)},goLineLeftSmart:function(e){return e.extendSelectionsBy(function(t){var a=e.cursorCoords(t.head,"div").top+5,s=e.coordsChar({left:0,top:a},"div");return s.ch<e.getLine(s.line).search(/\S/)?$l(e,t.head):s},Fe)},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=[],a=e.listSelections(),s=e.options.tabSize,u=0;u<a.length;u++){var h=a[u].from(),p=Ht(e.getLine(h.line),h.ch,s);t.push(sr(s-p%s))}e.replaceSelections(t)},defaultTab:function(e){e.somethingSelected()?e.indentSelection("add"):e.execCommand("insertTab")},transposeChars:function(e){return Er(e,function(){for(var t=e.listSelections(),a=[],s=0;s<t.length;s++)if(!!t[s].empty()){var u=t[s].head,h=Me(e.doc,u.line).text;if(h){if(u.ch==h.length&&(u=new ne(u.line,u.ch-1)),u.ch>0)u=new ne(u.line,u.ch+1),e.replaceRange(h.charAt(u.ch-1)+h.charAt(u.ch-2),ne(u.line,u.ch-2),u,"+transpose");else if(u.line>e.doc.first){var p=Me(e.doc,u.line-1).text;p&&(u=new ne(u.line,1),e.replaceRange(h.charAt(0)+e.doc.lineSeparator()+p.charAt(p.length-1),ne(u.line-1,p.length-1),u,"+transpose"))}}a.push(new xt(u,u))}e.setSelections(a)})},newlineAndIndent:function(e){return Er(e,function(){for(var t=e.listSelections(),a=t.length-1;a>=0;a--)e.replaceRange(e.doc.lineSeparator(),t[a].anchor,t[a].head,"+input");t=e.listSelections();for(var s=0;s<t.length;s++)e.indentLine(t[s].from().line,null,!0);to(e)})},openLine:function(e){return e.replaceSelection(`
2105
+ `,"start")},toggleOverwrite:function(e){return e.toggleOverwrite()}};function Qu(e,t){var a=Me(e.doc,t),s=ii(a);return s!=a&&(t=wt(s)),As(!0,e,s,t,1)}function Ju(e,t){var a=Me(e.doc,t),s=af(a);return s!=a&&(t=wt(s)),As(!0,e,a,t,-1)}function $l(e,t){var a=Qu(e,t.line),s=Me(e.doc,a.line),u=Rr(s,e.doc.direction);if(!u||u[0].level==0){var h=Math.max(a.ch,s.text.search(/\S/)),p=t.line==a.line&&t.ch<=h&&t.ch;return ne(a.line,p?0:h,a.sticky)}return a}function Gn(e,t,a){if(typeof t=="string"&&(t=Zo[t],!t))return!1;e.display.input.ensurePolled();var s=e.display.shift,u=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),a&&(e.display.shift=!1),u=t(e)!=Be}finally{e.display.shift=s,e.state.suppressEdits=!1}return u}function $f(e,t,a){for(var s=0;s<e.state.keyMaps.length;s++){var u=Ti(t,e.state.keyMaps[s],a,e);if(u)return u}return e.options.extraKeys&&Ti(t,e.options.extraKeys,a,e)||Ti(t,e.options.keyMap,a,e)}var ho=new at;function Ds(e,t,a,s){var u=e.state.keySeq;if(u){if(zl(t))return"handled";if(/\'$/.test(t)?e.state.keySeq=null:ho.set(50,function(){e.state.keySeq==u&&(e.state.keySeq=null,e.display.input.reset())}),e0(e,u+" "+t,a,s))return!0}return e0(e,t,a,s)}function e0(e,t,a,s){var u=$f(e,t,s);return u=="multi"&&(e.state.keySeq=t),u=="handled"&&fr(e,"keyHandled",e,t,a),(u=="handled"||u=="multi")&&(Cr(a),ys(e)),!!u}function Rl(e,t){var a=Xu(t,!0);return a?t.shiftKey&&!e.state.keySeq?Ds(e,"Shift-"+a,t,function(s){return Gn(e,s,!0)})||Ds(e,a,t,function(s){if(typeof s=="string"?/^go[A-Z]/.test(s):s.motion)return Gn(e,s)}):Ds(e,a,t,function(s){return Gn(e,s)}):!1}function Rf(e,t,a){return Ds(e,"'"+a+"'",t,function(s){return Gn(e,s,!0)})}var t0=null;function H1(e){var t=this;if(!(e.target&&e.target!=t.display.input.getField())&&(t.curOp.focus=nt(),!rr(t,e))){k&&O<11&&e.keyCode==27&&(e.returnValue=!1);var a=e.keyCode;t.display.shift=a==16||e.shiftKey;var s=Rl(t,e);X&&(t0=s?a:null,!s&&a==88&&!Ja&&(de?e.metaKey:e.ctrlKey)&&t.replaceSelection("",null,"cut")),f&&!de&&!s&&a==46&&e.shiftKey&&!e.ctrlKey&&document.execCommand&&document.execCommand("cut"),a==18&&!/\bCodeMirror-crosshair\b/.test(t.display.lineDiv.className)&&F1(t)}}function F1(e){var t=e.display.lineDiv;Pt(t,"CodeMirror-crosshair");function a(s){(s.keyCode==18||!s.altKey)&&(ye(t,"CodeMirror-crosshair"),Mr(document,"keyup",a),Mr(document,"mouseover",a))}Ne(document,"keyup",a),Ne(document,"mouseover",a)}function r0(e){e.keyCode==16&&(this.doc.sel.shift=!1),rr(this,e)}function W1(e){var t=this;if(!(e.target&&e.target!=t.display.input.getField())&&!(Li(t.display,e)||rr(t,e)||e.ctrlKey&&!e.altKey||de&&e.metaKey)){var a=e.keyCode,s=e.charCode;if(X&&a==t0){t0=null,Cr(e);return}if(!(X&&(!e.which||e.which<10)&&Rl(t,e))){var u=String.fromCharCode(s==null?a:s);u!="\b"&&(Rf(t,e,u)||t.display.input.onKeyPress(e))}}}var B1=400,Hl=function(e,t,a){this.time=e,this.pos=t,this.button=a};Hl.prototype.compare=function(e,t,a){return this.time+B1>e&&w(t,this.pos)==0&&a==this.button};var _r,sn;function Hf(e,t){var a=+new Date;return sn&&sn.compare(a,e,t)?(_r=sn=null,"triple"):_r&&_r.compare(a,e,t)?(sn=new Hl(a,e,t),_r=null,"double"):(_r=new Hl(a,e,t),sn=null,"single")}function U1(e){var t=this,a=t.display;if(!(rr(t,e)||a.activeTouch&&a.input.supportsTouch())){if(a.input.ensurePolled(),a.shift=e.shiftKey,Li(a,e)){I||(a.scroller.draggable=!1,setTimeout(function(){return a.scroller.draggable=!0},100));return}if(!n0(t,e)){var s=si(t,e),u=ea(e),h=s?Hf(s,u):"single";window.focus(),u==1&&t.state.selectingText&&t.state.selectingText(e),!(s&&Fl(t,u,s,h,e))&&(u==1?s?Y1(t,s,h,e):Bi(e)==a.scroller&&Cr(e):u==2?(s&&kl(t.doc,s),setTimeout(function(){return a.input.focus()},20)):u==3&&(tt?t.display.input.onContextMenu(e):yl(t)))}}}function Fl(e,t,a,s,u){var h="Click";return s=="double"?h="Double"+h:s=="triple"&&(h="Triple"+h),h=(t==1?"Left":t==2?"Middle":"Right")+h,Ds(e,Ku(h,u),u,function(p){if(typeof p=="string"&&(p=Zo[p]),!p)return!1;var m=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),m=p(e,a)!=Be}finally{e.state.suppressEdits=!1}return m})}function Is(e,t,a){var s=e.getOption("configureMouse"),u=s?s(e,t,a):{};if(u.unit==null){var h=Te?a.shiftKey&&a.metaKey:a.altKey;u.unit=h?"rectangle":t=="single"?"char":t=="double"?"word":"line"}return(u.extend==null||e.doc.extend)&&(u.extend=e.doc.extend||a.shiftKey),u.addNew==null&&(u.addNew=de?a.metaKey:a.ctrlKey),u.moveOnDrag==null&&(u.moveOnDrag=!(de?a.altKey:a.ctrlKey)),u}function Y1(e,t,a,s){k?setTimeout(fn(Au,e),0):e.curOp.focus=nt();var u=Is(e,a,s),h=e.doc.sel,p;e.options.dragDrop&&ta&&!e.isReadOnly()&&a=="single"&&(p=h.contains(t))>-1&&(w((p=h.ranges[p]).from(),t)<0||t.xRel>0)&&(w(p.to(),t)>0||t.xRel<0)?Z1(e,s,t,u):G1(e,s,t,u)}function Z1(e,t,a,s){var u=e.display,h=!1,p=qt(e,function(C){I&&(u.scroller.draggable=!1),e.state.draggingText=!1,e.state.delayingBlurEvent&&(e.hasFocus()?e.state.delayingBlurEvent=!1:yl(e)),Mr(u.wrapper.ownerDocument,"mouseup",p),Mr(u.wrapper.ownerDocument,"mousemove",m),Mr(u.scroller,"dragstart",b),Mr(u.scroller,"drop",p),h||(Cr(C),s.addNew||kl(e.doc,a,null,null,s.extend),I&&!ue||k&&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},b=function(){return h=!0};I&&(u.scroller.draggable=!0),e.state.draggingText=p,p.copy=!s.moveOnDrag,Ne(u.wrapper.ownerDocument,"mouseup",p),Ne(u.wrapper.ownerDocument,"mousemove",m),Ne(u.scroller,"dragstart",b),Ne(u.scroller,"drop",p),e.state.delayingBlurEvent=!0,setTimeout(function(){return u.input.focus()},20),u.scroller.dragDrop&&u.scroller.dragDrop()}function V1(e,t,a){if(a=="char")return new xt(t,t);if(a=="word")return e.findWordAt(t);if(a=="line")return new xt(ne(t.line,0),ge(e.doc,ne(t.line+1,0)));var s=a(e,t);return new xt(s.from,s.to)}function G1(e,t,a,s){k&&yl(e);var u=e.display,h=e.doc;Cr(t);var p,m,b=h.sel,C=b.ranges;if(s.addNew&&!s.extend?(m=h.sel.contains(a),m>-1?p=C[m]:p=new xt(a,a)):(p=h.sel.primary(),m=h.sel.primIndex),s.unit=="rectangle")s.addNew||(p=new xt(a,a)),a=si(e,t,!0,!0),m=-1;else{var S=V1(e,a,s.unit);s.extend?p=Sl(p,S.anchor,S.head,s.extend):p=S}s.addNew?m==-1?(m=C.length,wr(h,Dr(e,C.concat([p]),m),{scroll:!1,origin:"*mouse"})):C.length>1&&C[m].empty()&&s.unit=="char"&&!s.extend?(wr(h,Dr(e,C.slice(0,m).concat(C.slice(m+1)),0),{scroll:!1,origin:"*mouse"}),b=h.sel):Yu(h,m,p,ot):(m=0,wr(h,new mn([p],0),ot),b=h.sel);var M=a;function $(fe){if(w(M,fe)!=0)if(M=fe,s.unit=="rectangle"){for(var we=[],Ie=e.options.tabSize,Pe=Ht(Me(h,a.line).text,a.ch,Ie),st=Ht(Me(h,fe.line).text,fe.ch,Ie),Mt=Math.min(Pe,st),ar=Math.max(Pe,st),It=Math.min(a.line,fe.line),Br=Math.min(e.lastLine(),Math.max(a.line,fe.line));It<=Br;It++){var Ur=Me(h,It).text,er=Zt(Ur,Mt,Ie);Mt==ar?we.push(new xt(ne(It,er),ne(It,er))):Ur.length>er&&we.push(new xt(ne(It,er),ne(It,Zt(Ur,ar,Ie))))}we.length||we.push(new xt(a,a)),wr(h,Dr(e,b.ranges.slice(0,m).concat(we),m),{origin:"*mouse",scroll:!1}),e.scrollIntoView(fe)}else{var Lr=p,hr=V1(e,fe,s.unit),At=Lr.anchor,$t;w(hr.anchor,At)>0?($t=hr.head,At=Ve(Lr.from(),hr.anchor)):($t=hr.anchor,At=oe(Lr.to(),hr.head));var jt=b.ranges.slice(0);jt[m]=zs(e,new xt(ge(h,At),$t)),wr(h,Dr(e,jt,m),ot)}}var N=u.wrapper.getBoundingClientRect(),Z=0;function Q(fe){var we=++Z,Ie=si(e,fe,!0,s.unit=="rectangle");if(!!Ie)if(w(Ie,M)!=0){e.curOp.focus=nt(),$(Ie);var Pe=Ro(u,h);(Ie.line>=Pe.to||Ie.line<Pe.from)&&setTimeout(qt(e,function(){Z==we&&Q(fe)}),150)}else{var st=fe.clientY<N.top?-20:fe.clientY>N.bottom?20:0;st&&setTimeout(qt(e,function(){Z==we&&(u.scroller.scrollTop+=st,Q(fe))}),50)}}function ae(fe){e.state.selectingText=!1,Z=1/0,fe&&(Cr(fe),u.input.focus()),Mr(u.wrapper.ownerDocument,"mousemove",ce),Mr(u.wrapper.ownerDocument,"mouseup",be),h.history.lastSelOrigin=null}var ce=qt(e,function(fe){fe.buttons===0||!ea(fe)?ae(fe):Q(fe)}),be=qt(e,ae);e.state.selectingText=be,Ne(u.wrapper.ownerDocument,"mousemove",ce),Ne(u.wrapper.ownerDocument,"mouseup",be)}function zs(e,t){var a=t.anchor,s=t.head,u=Me(e.doc,a.line);if(w(a,s)==0&&a.sticky==s.sticky)return t;var h=Rr(u);if(!h)return t;var p=Ut(h,a.ch,a.sticky),m=h[p];if(m.from!=a.ch&&m.to!=a.ch)return t;var b=p+(m.from==a.ch==(m.level!=1)?0:1);if(b==0||b==h.length)return t;var C;if(s.line!=a.line)C=(s.line-a.line)*(e.doc.direction=="ltr"?1:-1)>0;else{var S=Ut(h,s.ch,s.sticky),M=S-p||(s.ch-a.ch)*(m.level==1?-1:1);S==b-1||S==b?C=M<0:C=M>0}var $=h[b+(C?-1:0)],N=C==($.level==1),Z=N?$.from:$.to,Q=N?"after":"before";return a.ch==Z&&a.sticky==Q?t:new xt(new ne(a.line,Z,Q),s)}function Ns(e,t,a,s){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;s&&Cr(t);var p=e.display,m=p.lineDiv.getBoundingClientRect();if(h>m.bottom||!br(e,a))return dn(t);h-=m.top-p.viewOffset;for(var b=0;b<e.display.gutterSpecs.length;++b){var C=p.gutters.childNodes[b];if(C&&C.getBoundingClientRect().right>=u){var S=Bn(e.doc,h),M=e.display.gutterSpecs[b];return Ze(e,a,e,S,M.className,t),dn(t)}}}function n0(e,t){return Ns(e,t,"gutterClick",!0)}function i0(e,t){Li(e.display,t)||q1(e,t)||rr(e,t,"contextmenu")||tt||e.display.input.onContextMenu(t)}function q1(e,t){return br(e,"gutterContextMenu")?Ns(e,t,"gutterContextMenu",!1):!1}function Pa(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),ha(e)}var Vo={toString:function(){return"CodeMirror.Init"}},Ea={},$s={};function Wl(e){var t=e.optionHandlers;function a(s,u,h,p){e.defaults[s]=u,h&&(t[s]=p?function(m,b,C){C!=Vo&&h(m,b,C)}:h)}e.defineOption=a,e.Init=Vo,a("value","",function(s,u){return s.setValue(u)},!0),a("mode",null,function(s,u){s.doc.modeOption=u,Hu(s)},!0),a("indentUnit",2,Hu,!0),a("indentWithTabs",!1),a("smartIndent",!0),a("tabSize",4,function(s){wa(s),ha(s),et(s)},!0),a("lineSeparator",null,function(s,u){if(s.doc.lineSep=u,!!u){var h=[],p=s.doc.first;s.doc.iter(function(b){for(var C=0;;){var S=b.text.indexOf(u,C);if(S==-1)break;C=S+u.length,h.push(ne(p,S))}p++});for(var m=h.length-1;m>=0;m--)Os(s.doc,u,h[m],ne(h[m].line,h[m].ch+u.length))}}),a("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(s,u,h){s.state.specialChars=new RegExp(u.source+(u.test(" ")?"":"| "),"g"),h!=Vo&&s.refresh()}),a("specialCharPlaceholder",gn,function(s){return s.refresh()},!0),a("electricChars",!0),a("inputStyle",he?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),a("spellcheck",!1,function(s,u){return s.getInputField().spellcheck=u},!0),a("autocorrect",!1,function(s,u){return s.getInputField().autocorrect=u},!0),a("autocapitalize",!1,function(s,u){return s.getInputField().autocapitalize=u},!0),a("rtlMoveVisually",!$e),a("wholeLineUpdateBefore",!0),a("theme","default",function(s){Pa(s),Ca(s)},!0),a("keyMap","default",function(s,u,h){var p=Fr(u),m=h!=Vo&&Fr(h);m&&m.detach&&m.detach(s,p),p.attach&&p.attach(s,m||null)}),a("extraKeys",null),a("configureMouse",null),a("lineWrapping",!1,j1,!0),a("gutters",[],function(s,u){s.display.gutterSpecs=$u(u,s.options.lineNumbers),Ca(s)},!0),a("fixedGutter",!0,function(s,u){s.display.gutters.style.left=u?ms(s.display)+"px":"0",s.refresh()},!0),a("coverGutterNextToScrollbar",!1,function(s){return no(s)},!0),a("scrollbarStyle","native",function(s){Fo(s),no(s),s.display.scrollbars.setScrollTop(s.doc.scrollTop),s.display.scrollbars.setScrollLeft(s.doc.scrollLeft)},!0),a("lineNumbers",!1,function(s,u){s.display.gutterSpecs=$u(s.options.gutters,u),Ca(s)},!0),a("firstLineNumber",1,Ca,!0),a("lineNumberFormatter",function(s){return s},Ca,!0),a("showCursorWhenSelecting",!1,pa,!0),a("resetSelectionOnContextMenu",!0),a("lineWiseCopyCut",!0),a("pasteLinesPerSelection",!0),a("selectionsMayTouch",!1),a("readOnly",!1,function(s,u){u=="nocursor"&&($o(s),s.display.input.blur()),s.display.input.readOnlyChanged(u)}),a("screenReaderLabel",null,function(s,u){u=u===""?null:u,s.display.input.screenReaderLabelChanged(u)}),a("disableInput",!1,function(s,u){u||s.display.input.reset()},!0),a("dragDrop",!0,Ff),a("allowDropFileTypes",null),a("cursorBlinkRate",530),a("cursorScrollMargin",0),a("cursorHeight",1,pa,!0),a("singleCursorHeightPerLine",!0,pa,!0),a("workTime",100),a("workDelay",100),a("flattenSpans",!0,wa,!0),a("addModeClass",!1,wa,!0),a("pollInterval",100),a("undoDepth",200,function(s,u){return s.doc.history.undoDepth=u}),a("historyEventDelay",1250),a("viewportMargin",10,function(s){return s.refresh()},!0),a("maxHighlightLength",1e4,wa,!0),a("moveInputWithCursor",!0,function(s,u){u||s.display.input.resetPosition()}),a("tabindex",null,function(s,u){return s.display.input.getField().tabIndex=u||""}),a("autofocus",null),a("direction","ltr",function(s,u){return s.doc.setDirection(u)},!0),a("phrases",null)}function Ff(e,t,a){var s=a&&a!=Vo;if(!t!=!s){var u=e.display.dragFunctions,h=t?Ne: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 j1(e){e.options.lineWrapping?(Pt(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(ye(e.display.wrapper,"CodeMirror-wrap"),ca(e)),Xi(e),et(e),ha(e),setTimeout(function(){return no(e)},100)}function Dt(e,t){var a=this;if(!(this instanceof Dt))return new Dt(e,t);this.options=t=t?Qt(t):{},Qt(Ea,t,!1);var s=t.value;typeof s=="string"?s=new Hr(s,t.mode,null,t.lineSeparator,t.direction):t.mode&&(s.modeOption=t.mode),this.doc=s;var u=new Dt.inputStyles[t.inputStyle](this),h=this.display=new Of(e,s,u,t);h.wrapper.CodeMirror=this,Pa(this),t.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Fo(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new at,keySeq:null,specialChars:null},t.autofocus&&!he&&h.input.focus(),k&&O<11&&setTimeout(function(){return a.display.input.reset(!0)},20),K1(this),ju(),Vn(this),this.curOp.forceUpdate=!0,_1(this,s),t.autofocus&&!he||this.hasFocus()?setTimeout(function(){a.hasFocus()&&!a.state.focused&&bs(a)},20):$o(this);for(var p in $s)$s.hasOwnProperty(p)&&$s[p](this,t[p],Vo);ci(this),t.finishInit&&t.finishInit(this);for(var m=0;m<Aa.length;++m)Aa[m](this);li(this),I&&t.lineWrapping&&getComputedStyle(h.lineDiv).textRendering=="optimizelegibility"&&(h.lineDiv.style.textRendering="auto")}Dt.defaults=Ea,Dt.optionHandlers=$s;function K1(e){var t=e.display;Ne(t.scroller,"mousedown",qt(e,U1)),k&&O<11?Ne(t.scroller,"dblclick",qt(e,function(b){if(!rr(e,b)){var C=si(e,b);if(!(!C||n0(e,b)||Li(e.display,b))){Cr(b);var S=e.findWordAt(C);kl(e.doc,S.anchor,S.head)}}})):Ne(t.scroller,"dblclick",function(b){return rr(e,b)||Cr(b)}),Ne(t.scroller,"contextmenu",function(b){return i0(e,b)}),Ne(t.input.getField(),"contextmenu",function(b){t.scroller.contains(b.target)||i0(e,b)});var a,s={end:0};function u(){t.activeTouch&&(a=setTimeout(function(){return t.activeTouch=null},1e3),s=t.activeTouch,s.end=+new Date)}function h(b){if(b.touches.length!=1)return!1;var C=b.touches[0];return C.radiusX<=1&&C.radiusY<=1}function p(b,C){if(C.left==null)return!0;var S=C.left-b.left,M=C.top-b.top;return S*S+M*M>20*20}Ne(t.scroller,"touchstart",function(b){if(!rr(e,b)&&!h(b)&&!n0(e,b)){t.input.ensurePolled(),clearTimeout(a);var C=+new Date;t.activeTouch={start:C,moved:!1,prev:C-s.end<=300?s:null},b.touches.length==1&&(t.activeTouch.left=b.touches[0].pageX,t.activeTouch.top=b.touches[0].pageY)}}),Ne(t.scroller,"touchmove",function(){t.activeTouch&&(t.activeTouch.moved=!0)}),Ne(t.scroller,"touchend",function(b){var C=t.activeTouch;if(C&&!Li(t,b)&&C.left!=null&&!C.moved&&new Date-C.start<300){var S=e.coordsChar(t.activeTouch,"page"),M;!C.prev||p(C,C.prev)?M=new xt(S,S):!C.prev.prev||p(C,C.prev.prev)?M=e.findWordAt(S):M=new xt(ne(S.line,0),ge(e.doc,ne(S.line+1,0))),e.setSelection(M.anchor,M.head),e.focus(),Cr(b)}u()}),Ne(t.scroller,"touchcancel",u),Ne(t.scroller,"scroll",function(){t.scroller.clientHeight&&(Gt(e,t.scroller.scrollTop),Ho(e,t.scroller.scrollLeft,!0),Ze(e,"scroll",e))}),Ne(t.scroller,"mousewheel",function(b){return w1(e,b)}),Ne(t.scroller,"DOMMouseScroll",function(b){return w1(e,b)}),Ne(t.wrapper,"scroll",function(){return t.wrapper.scrollTop=t.wrapper.scrollLeft=0}),t.dragFunctions={enter:function(b){rr(e,b)||ko(b)},over:function(b){rr(e,b)||(Gu(e,b),ko(b))},start:function(b){return If(e,b)},drop:qt(e,N1),leave:function(b){rr(e,b)||qu(e)}};var m=t.input.getField();Ne(m,"keyup",function(b){return r0.call(e,b)}),Ne(m,"keydown",qt(e,H1)),Ne(m,"keypress",qt(e,W1)),Ne(m,"focus",function(b){return bs(e,b)}),Ne(m,"blur",function(b){return $o(e,b)})}var Aa=[];Dt.defineInitHook=function(e){return Aa.push(e)};function Da(e,t,a,s){var u=e.doc,h;a==null&&(a="add"),a=="smart"&&(u.mode.indent?h=hs(e,t).state:a="prev");var p=e.options.tabSize,m=Me(u,t),b=Ht(m.text,null,p);m.stateAfter&&(m.stateAfter=null);var C=m.text.match(/^\s*/)[0],S;if(!s&&!/\S/.test(m.text))S=0,a="not";else if(a=="smart"&&(S=u.mode.indent(h,m.text.slice(C.length),m.text),S==Be||S>150)){if(!s)return;a="prev"}a=="prev"?t>u.first?S=Ht(Me(u,t-1).text,null,p):S=0:a=="add"?S=b+e.options.indentUnit:a=="subtract"?S=b-e.options.indentUnit:typeof a=="number"&&(S=b+a),S=Math.max(0,S);var M="",$=0;if(e.options.indentWithTabs)for(var N=Math.floor(S/p);N;--N)$+=p,M+=" ";if($<S&&(M+=sr(S-$)),M!=C)return Os(u,M,ne(t,0),ne(t,C.length),"+input"),m.stateAfter=null,!0;for(var Z=0;Z<u.sel.ranges.length;Z++){var Q=u.sel.ranges[Z];if(Q.head.line==t&&Q.head.ch<C.length){var ae=ne(t,C.length);Yu(u,Z,new xt(ae,ae));break}}}var Mn=null;function On(e){Mn=e}function Bl(e,t,a,s,u){var h=e.doc;e.display.shift=!1,s||(s=h.sel);var p=+new Date-200,m=u=="paste"||e.state.pasteIncoming>p,b=Oo(t),C=null;if(m&&s.ranges.length>1)if(Mn&&Mn.text.join(`
2099
2106
  `)==t){if(s.ranges.length%Mn.text.length==0){C=[];for(var S=0;S<Mn.text.length;S++)C.push(h.splitLines(Mn.text[S]))}}else b.length==s.ranges.length&&e.options.pasteLinesPerSelection&&(C=mt(b,function(ce){return[ce]}));for(var M=e.curOp.updateInput,$=s.ranges.length-1;$>=0;$--){var N=s.ranges[$],Z=N.from(),Q=N.to();N.empty()&&(a&&a>0?Z=ne(Z.line,Z.ch-a):e.state.overwrite&&!m?Q=ne(Q.line,Math.min(Me(h,Q.line).text.length,Q.ch+je(b).length)):m&&Mn&&Mn.lineWise&&Mn.text.join(`
2100
2107
  `)==b.join(`
2101
- `)&&(Z=Q=ne(Z.line,0)));var ae={from:Z,to:Q,text:C?C[$%C.length]:b,origin:u||(m?"paste":e.state.cutIncoming>p?"cut":"+input")};ks(e.doc,ae),fr(e,"inputRead",e,ae)}t&&!m&&X1(e,t),to(e),e.curOp.updateInput<2&&(e.curOp.updateInput=M),e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=-1}function o0(e,t){var a=e.clipboardData&&e.clipboardData.getData("Text");if(a)return e.preventDefault(),!t.isReadOnly()&&!t.options.disableInput&&Er(t,function(){return Bl(t,a,0,null,"paste")}),!0}function X1(e,t){if(!(!e.options.electricChars||!e.options.smartIndent))for(var a=e.doc.sel,s=a.ranges.length-1;s>=0;s--){var u=a.ranges[s];if(!(u.head.ch>100||s&&a.ranges[s-1].head.line==u.head.line)){var h=e.getModeAt(u.head),p=!1;if(h.electricChars){for(var m=0;m<h.electricChars.length;m++)if(t.indexOf(h.electricChars.charAt(m))>-1){p=Da(e,u.head.line,"smart");break}}else h.electricInput&&h.electricInput.test(Me(e.doc,u.head.line).text.slice(0,u.head.ch))&&(p=Da(e,u.head.line,"smart"));p&&fr(e,"electricInput",e,u.head.line)}}}function s0(e){for(var t=[],a=[],s=0;s<e.doc.sel.ranges.length;s++){var u=e.doc.sel.ranges[s].head.line,h={anchor:ne(u,0),head:ne(u+1,0)};a.push(h),t.push(e.getRange(h.anchor,h.head))}return{text:t,ranges:a}}function Q1(e,t,a,s){e.setAttribute("autocorrect",a?"":"off"),e.setAttribute("autocapitalize",s?"":"off"),e.setAttribute("spellcheck",!!t)}function J1(){var e=D("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),t=D("div",[e],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return I?e.style.width="1000px":e.setAttribute("wrap","off"),Ee&&(e.style.border="1px solid black"),Q1(e),t}function Pi(e){var t=e.optionHandlers,a=e.helpers={};e.prototype={constructor:e,focus:function(){window.focus(),this.display.input.focus()},setOption:function(s,u){var h=this.options,p=h[s];h[s]==u&&s!="mode"||(h[s]=u,t.hasOwnProperty(s)&&qt(this,t[s])(this,u,p),Ze(this,"optionChange",this,s))},getOption:function(s){return this.options[s]},getDoc:function(){return this.doc},addKeyMap:function(s,u){this.state.keyMaps[u?"push":"unshift"](Fr(s))},removeKeyMap:function(s){for(var u=this.state.keyMaps,h=0;h<u.length;++h)if(u[h]==s||u[h].name==s)return u.splice(h,1),!0},addOverlay:Ar(function(s,u){var h=s.token?s:e.getMode(this.options,s);if(h.startState)throw new Error("Overlays may not be stateful.");kt(this.state.overlays,{mode:h,modeSpec:s,opaque:u&&u.opaque,priority:u&&u.priority||0},function(p){return p.priority}),this.state.modeGen++,et(this)}),removeOverlay:Ar(function(s){for(var u=this.state.overlays,h=0;h<u.length;++h){var p=u[h].modeSpec;if(p==s||typeof s=="string"&&p.name==s){u.splice(h,1),this.state.modeGen++,et(this);return}}}),indentLine:Ar(function(s,u,h){typeof u!="string"&&typeof u!="number"&&(u==null?u=this.options.smartIndent?"smart":"prev":u=u?"add":"subtract"),Yi(this.doc,s)&&Da(this,s,u,h)}),indentSelection:Ar(function(s){for(var u=this.doc.sel.ranges,h=-1,p=0;p<u.length;p++){var m=u[p];if(m.empty())m.head.line>h&&(Da(this,m.head.line,s,!0),h=m.head.line,p==this.doc.sel.primIndex&&to(this));else{var b=m.from(),C=m.to(),S=Math.max(h,b.line);h=Math.min(this.lastLine(),C.line-(C.ch?0:1))+1;for(var M=S;M<h;++M)Da(this,M,s);var $=this.doc.sel.ranges;b.ch==0&&u.length==$.length&&$[p].from().ch>0&&Yu(this.doc,p,new xt(b,$[p].to()),it)}}}),getTokenAt:function(s,u){return nl(this,s,u)},getLineTokens:function(s,u){return nl(this,ne(s),u,!0)},getTokenTypeAt:function(s){s=ge(this.doc,s);var u=gu(this,Me(this.doc,s.line)),h=0,p=(u.length-1)/2,m=s.ch,b;if(m==0)b=u[2];else for(;;){var C=h+p>>1;if((C?u[C*2-1]:0)>=m)p=C;else if(u[C*2+1]<m)h=C+1;else{b=u[C*2+2];break}}var S=b?b.indexOf("overlay "):-1;return S<0?b:S==0?null:b.slice(0,S-1)},getModeAt:function(s){var u=this.doc.mode;return u.innerMode?e.innerMode(u,this.getTokenAt(s).state).mode:u},getHelper:function(s,u){return this.getHelpers(s,u)[0]},getHelpers:function(s,u){var h=[];if(!a.hasOwnProperty(u))return h;var p=a[u],m=this.getModeAt(s);if(typeof m[u]=="string")p[m[u]]&&h.push(p[m[u]]);else if(m[u])for(var b=0;b<m[u].length;b++){var C=p[m[u][b]];C&&h.push(C)}else m.helperType&&p[m.helperType]?h.push(p[m.helperType]):p[m.name]&&h.push(p[m.name]);for(var S=0;S<p._global.length;S++){var M=p._global[S];M.pred(m,this)&&_e(h,M.val)==-1&&h.push(M.val)}return h},getStateAfter:function(s,u){var h=this.doc;return s=pt(h,s==null?h.first+h.size-1:s),ps(this,s+1,u).state},cursorCoords:function(s,u){var h,p=this.doc.sel.primary();return s==null?h=p.head:typeof s=="object"?h=ge(this.doc,s):h=s?p.from():p.to(),Zn(this,h,u||"page")},charCoords:function(s,u){return ml(this,ge(this.doc,s),u||"page")},coordsChar:function(s,u){return s=f1(this,s,u||"page"),R(this,s.left,s.top)},lineAtHeight:function(s,u){return s=f1(this,{top:s,left:0},u||"page").top,Bn(this.doc,s+this.display.viewOffset)},heightAtLine:function(s,u,h){var p=!1,m;if(typeof s=="number"){var b=this.doc.first+this.doc.size-1;s<this.doc.first?s=this.doc.first:s>b&&(s=b,p=!0),m=Me(this.doc,s)}else m=s;return gl(this,m,{top:0,left:0},u||"page",h||p).top+(p?this.doc.height-Kr(m):0)},defaultTextHeight:function(){return Ki(this.display)},defaultCharWidth:function(){return ms(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(s,u,h,p,m){var b=this.display;s=Zn(this,ge(this.doc,s));var C=s.bottom,S=s.left;if(u.style.position="absolute",u.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(u),b.sizer.appendChild(u),p=="over")C=s.top;else if(p=="above"||p=="near"){var M=Math.max(b.wrapper.clientHeight,this.doc.height),$=Math.max(b.sizer.clientWidth,b.lineSpace.clientWidth);(p=="above"||s.bottom+u.offsetHeight>M)&&s.top>u.offsetHeight?C=s.top-u.offsetHeight:s.bottom+u.offsetHeight<=M&&(C=s.bottom),S+u.offsetWidth>$&&(S=$-u.offsetWidth)}u.style.top=C+"px",u.style.left=u.style.right="",m=="right"?(S=b.sizer.clientWidth-u.offsetWidth,u.style.right="0px"):(m=="left"?S=0:m=="middle"&&(S=(b.sizer.clientWidth-u.offsetWidth)/2),u.style.left=S+"px"),h&&bf(this,{left:S,top:C,right:S+u.offsetWidth,bottom:C+u.offsetHeight})},triggerOnKeyDown:Ar(H1),triggerOnKeyPress:Ar(W1),triggerOnKeyUp:r0,triggerOnMouseDown:Ar(U1),execCommand:function(s){if(Zo.hasOwnProperty(s))return Zo[s].call(null,this)},triggerElectric:Ar(function(s){X1(this,s)}),findPosH:function(s,u,h,p){var m=1;u<0&&(m=-1,u=-u);for(var b=ge(this.doc,s),C=0;C<u&&(b=Ia(this.doc,b,m,h,p),!b.hitSide);++C);return b},moveH:Ar(function(s,u){var h=this;this.extendSelectionsBy(function(p){return h.display.shift||h.doc.extend||p.empty()?Ia(h.doc,p.head,s,u,h.options.rtlMoveVisually):s<0?p.from():p.to()},Fe)}),deleteH:Ar(function(s,u){var h=this.doc.sel,p=this.doc;h.somethingSelected()?p.replaceSelection("",null,"+delete"):Cn(this,function(m){var b=Ia(p,m.head,s,u,!1);return s<0?{from:b,to:m.head}:{from:m.head,to:b}})}),findPosV:function(s,u,h,p){var m=1,b=p;u<0&&(m=-1,u=-u);for(var C=ge(this.doc,s),S=0;S<u;++S){var M=Zn(this,C,"div");if(b==null?b=M.left:M.left=b,C=Ul(this,M,m,h),C.hitSide)break}return C},moveV:Ar(function(s,u){var h=this,p=this.doc,m=[],b=!this.display.shift&&!p.extend&&p.sel.somethingSelected();if(p.extendSelectionsBy(function(S){if(b)return s<0?S.from():S.to();var M=Zn(h,S.head,"div");S.goalColumn!=null&&(M.left=S.goalColumn),m.push(M.left);var $=Ul(h,M,s,u);return u=="page"&&S==p.sel.primary()&&xs(h,ml(h,$,"div").top-M.top),$},Fe),m.length)for(var C=0;C<p.sel.ranges.length;C++)p.sel.ranges[C].goalColumn=m[C]}),findWordAt:function(s){var u=this.doc,h=Me(u,s.line).text,p=s.ch,m=s.ch;if(h){var b=this.getHelper(s,"wordChars");(s.sticky=="before"||m==h.length)&&p?--p:++m;for(var C=h.charAt(p),S=F(C,b)?function(M){return F(M,b)}:/\s/.test(C)?function(M){return/\s/.test(M)}:function(M){return!/\s/.test(M)&&!F(M)};p>0&&S(h.charAt(p-1));)--p;for(;m<h.length&&S(h.charAt(m));)++m}return new xt(ne(s.line,p),ne(s.line,m))},toggleOverwrite:function(s){s!=null&&s==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?Pt(this.display.cursorDiv,"CodeMirror-overwrite"):ye(this.display.cursorDiv,"CodeMirror-overwrite"),Ze(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==nt()},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:Ar(function(s,u){ga(this,s,u)}),getScrollInfo:function(){var s=this.display.scroller;return{left:s.scrollLeft,top:s.scrollTop,height:s.scrollHeight-nn(this)-this.display.barHeight,width:s.scrollWidth-nn(this)-this.display.barWidth,clientHeight:dl(this),clientWidth:Gi(this)}},scrollIntoView:Ar(function(s,u){s==null?(s={from:this.doc.sel.primary().head,to:null},u==null&&(u=this.options.cursorScrollMargin)):typeof s=="number"?s={from:ne(s,0),to:null}:s.from==null&&(s={from:s,to:null}),s.to||(s.to=s.from),s.margin=u||0,s.from.line!=null?g1(this,s):m1(this,s.from,s.to,s.margin)}),setSize:Ar(function(s,u){var h=this,p=function(b){return typeof b=="number"||/^\d+$/.test(String(b))?b+"px":b};s!=null&&(this.display.wrapper.style.width=p(s)),u!=null&&(this.display.wrapper.style.height=p(u)),this.options.lineWrapping&&c1(this);var m=this.display.viewFrom;this.doc.iter(m,this.display.viewTo,function(b){if(b.widgets){for(var C=0;C<b.widgets.length;C++)if(b.widgets[C].noHScroll){Qi(h,m,"widget");break}}++m}),this.curOp.forceUpdate=!0,Ze(this,"refresh",this)}),operation:function(s){return Er(this,s)},startOperation:function(){return Vn(this)},endOperation:function(){return li(this)},refresh:Ar(function(){var s=this.display.cachedTextHeight;et(this),this.curOp.forceUpdate=!0,ha(this),ga(this,this.doc.scrollLeft,this.doc.scrollTop),zu(this.display),(s==null||Math.abs(s-Ki(this.display))>.5||this.options.lineWrapping)&&Xi(this),Ze(this,"refresh",this)}),swapDoc:Ar(function(s){var u=this.doc;return u.cm=null,this.state.selectingText&&this.state.selectingText(),_1(this,s),ha(this),this.display.input.reset(),ga(this,s.scrollLeft,s.scrollTop),this.curOp.forceScroll=!0,fr(this,"swapDoc",this,u),u}),phrase:function(s){var u=this.options.phrases;return u&&Object.prototype.hasOwnProperty.call(u,s)?u[s]:s},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},Hn(e),e.registerHelper=function(s,u,h){a.hasOwnProperty(s)||(a[s]=e[s]={_global:[]}),a[s][u]=h},e.registerGlobalHelper=function(s,u,h,p){e.registerHelper(s,u,p),a[s]._global.push({pred:h,val:p})}}function Ia(e,t,a,s,u){var h=t,p=a,m=Me(e,t.line),b=u&&e.direction=="rtl"?-a:a;function C(){var be=t.line+b;return be<e.first||be>=e.first+e.size?!1:(t=new ne(be,t.ch,t.sticky),m=Me(e,be))}function S(be){var fe;if(s=="codepoint"){var we=m.text.charCodeAt(t.ch+(a>0?0:-1));if(isNaN(we))fe=null;else{var Ie=a>0?we>=55296&&we<56320:we>=56320&&we<57343;fe=new ne(t.line,Math.max(0,Math.min(m.text.length,t.ch+a*(Ie?2:1))),-a)}}else u?fe=R1(e.cm,m,t,a):fe=Nl(m,t,a);if(fe==null)if(!be&&C())t=Ds(u,e.cm,m,t.line,b);else return!1;else t=fe;return!0}if(s=="char"||s=="codepoint")S();else if(s=="column")S(!0);else if(s=="word"||s=="group")for(var M=null,$=s=="group",N=e.cm&&e.cm.getHelper(t,"wordChars"),Z=!0;!(a<0&&!S(!Z));Z=!1){var Q=m.text.charAt(t.ch)||`
2108
+ `)&&(Z=Q=ne(Z.line,0)));var ae={from:Z,to:Q,text:C?C[$%C.length]:b,origin:u||(m?"paste":e.state.cutIncoming>p?"cut":"+input")};Ss(e.doc,ae),fr(e,"inputRead",e,ae)}t&&!m&&X1(e,t),to(e),e.curOp.updateInput<2&&(e.curOp.updateInput=M),e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=-1}function o0(e,t){var a=e.clipboardData&&e.clipboardData.getData("Text");if(a)return e.preventDefault(),!t.isReadOnly()&&!t.options.disableInput&&Er(t,function(){return Bl(t,a,0,null,"paste")}),!0}function X1(e,t){if(!(!e.options.electricChars||!e.options.smartIndent))for(var a=e.doc.sel,s=a.ranges.length-1;s>=0;s--){var u=a.ranges[s];if(!(u.head.ch>100||s&&a.ranges[s-1].head.line==u.head.line)){var h=e.getModeAt(u.head),p=!1;if(h.electricChars){for(var m=0;m<h.electricChars.length;m++)if(t.indexOf(h.electricChars.charAt(m))>-1){p=Da(e,u.head.line,"smart");break}}else h.electricInput&&h.electricInput.test(Me(e.doc,u.head.line).text.slice(0,u.head.ch))&&(p=Da(e,u.head.line,"smart"));p&&fr(e,"electricInput",e,u.head.line)}}}function s0(e){for(var t=[],a=[],s=0;s<e.doc.sel.ranges.length;s++){var u=e.doc.sel.ranges[s].head.line,h={anchor:ne(u,0),head:ne(u+1,0)};a.push(h),t.push(e.getRange(h.anchor,h.head))}return{text:t,ranges:a}}function Q1(e,t,a,s){e.setAttribute("autocorrect",a?"":"off"),e.setAttribute("autocapitalize",s?"":"off"),e.setAttribute("spellcheck",!!t)}function J1(){var e=D("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),t=D("div",[e],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return I?e.style.width="1000px":e.setAttribute("wrap","off"),Ee&&(e.style.border="1px solid black"),Q1(e),t}function Pi(e){var t=e.optionHandlers,a=e.helpers={};e.prototype={constructor:e,focus:function(){window.focus(),this.display.input.focus()},setOption:function(s,u){var h=this.options,p=h[s];h[s]==u&&s!="mode"||(h[s]=u,t.hasOwnProperty(s)&&qt(this,t[s])(this,u,p),Ze(this,"optionChange",this,s))},getOption:function(s){return this.options[s]},getDoc:function(){return this.doc},addKeyMap:function(s,u){this.state.keyMaps[u?"push":"unshift"](Fr(s))},removeKeyMap:function(s){for(var u=this.state.keyMaps,h=0;h<u.length;++h)if(u[h]==s||u[h].name==s)return u.splice(h,1),!0},addOverlay:Ar(function(s,u){var h=s.token?s:e.getMode(this.options,s);if(h.startState)throw new Error("Overlays may not be stateful.");kt(this.state.overlays,{mode:h,modeSpec:s,opaque:u&&u.opaque,priority:u&&u.priority||0},function(p){return p.priority}),this.state.modeGen++,et(this)}),removeOverlay:Ar(function(s){for(var u=this.state.overlays,h=0;h<u.length;++h){var p=u[h].modeSpec;if(p==s||typeof s=="string"&&p.name==s){u.splice(h,1),this.state.modeGen++,et(this);return}}}),indentLine:Ar(function(s,u,h){typeof u!="string"&&typeof u!="number"&&(u==null?u=this.options.smartIndent?"smart":"prev":u=u?"add":"subtract"),Yi(this.doc,s)&&Da(this,s,u,h)}),indentSelection:Ar(function(s){for(var u=this.doc.sel.ranges,h=-1,p=0;p<u.length;p++){var m=u[p];if(m.empty())m.head.line>h&&(Da(this,m.head.line,s,!0),h=m.head.line,p==this.doc.sel.primIndex&&to(this));else{var b=m.from(),C=m.to(),S=Math.max(h,b.line);h=Math.min(this.lastLine(),C.line-(C.ch?0:1))+1;for(var M=S;M<h;++M)Da(this,M,s);var $=this.doc.sel.ranges;b.ch==0&&u.length==$.length&&$[p].from().ch>0&&Yu(this.doc,p,new xt(b,$[p].to()),it)}}}),getTokenAt:function(s,u){return nl(this,s,u)},getLineTokens:function(s,u){return nl(this,ne(s),u,!0)},getTokenTypeAt:function(s){s=ge(this.doc,s);var u=gu(this,Me(this.doc,s.line)),h=0,p=(u.length-1)/2,m=s.ch,b;if(m==0)b=u[2];else for(;;){var C=h+p>>1;if((C?u[C*2-1]:0)>=m)p=C;else if(u[C*2+1]<m)h=C+1;else{b=u[C*2+2];break}}var S=b?b.indexOf("overlay "):-1;return S<0?b:S==0?null:b.slice(0,S-1)},getModeAt:function(s){var u=this.doc.mode;return u.innerMode?e.innerMode(u,this.getTokenAt(s).state).mode:u},getHelper:function(s,u){return this.getHelpers(s,u)[0]},getHelpers:function(s,u){var h=[];if(!a.hasOwnProperty(u))return h;var p=a[u],m=this.getModeAt(s);if(typeof m[u]=="string")p[m[u]]&&h.push(p[m[u]]);else if(m[u])for(var b=0;b<m[u].length;b++){var C=p[m[u][b]];C&&h.push(C)}else m.helperType&&p[m.helperType]?h.push(p[m.helperType]):p[m.name]&&h.push(p[m.name]);for(var S=0;S<p._global.length;S++){var M=p._global[S];M.pred(m,this)&&_e(h,M.val)==-1&&h.push(M.val)}return h},getStateAfter:function(s,u){var h=this.doc;return s=pt(h,s==null?h.first+h.size-1:s),hs(this,s+1,u).state},cursorCoords:function(s,u){var h,p=this.doc.sel.primary();return s==null?h=p.head:typeof s=="object"?h=ge(this.doc,s):h=s?p.from():p.to(),Zn(this,h,u||"page")},charCoords:function(s,u){return ml(this,ge(this.doc,s),u||"page")},coordsChar:function(s,u){return s=f1(this,s,u||"page"),R(this,s.left,s.top)},lineAtHeight:function(s,u){return s=f1(this,{top:s,left:0},u||"page").top,Bn(this.doc,s+this.display.viewOffset)},heightAtLine:function(s,u,h){var p=!1,m;if(typeof s=="number"){var b=this.doc.first+this.doc.size-1;s<this.doc.first?s=this.doc.first:s>b&&(s=b,p=!0),m=Me(this.doc,s)}else m=s;return gl(this,m,{top:0,left:0},u||"page",h||p).top+(p?this.doc.height-Kr(m):0)},defaultTextHeight:function(){return Ki(this.display)},defaultCharWidth:function(){return gs(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(s,u,h,p,m){var b=this.display;s=Zn(this,ge(this.doc,s));var C=s.bottom,S=s.left;if(u.style.position="absolute",u.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(u),b.sizer.appendChild(u),p=="over")C=s.top;else if(p=="above"||p=="near"){var M=Math.max(b.wrapper.clientHeight,this.doc.height),$=Math.max(b.sizer.clientWidth,b.lineSpace.clientWidth);(p=="above"||s.bottom+u.offsetHeight>M)&&s.top>u.offsetHeight?C=s.top-u.offsetHeight:s.bottom+u.offsetHeight<=M&&(C=s.bottom),S+u.offsetWidth>$&&(S=$-u.offsetWidth)}u.style.top=C+"px",u.style.left=u.style.right="",m=="right"?(S=b.sizer.clientWidth-u.offsetWidth,u.style.right="0px"):(m=="left"?S=0:m=="middle"&&(S=(b.sizer.clientWidth-u.offsetWidth)/2),u.style.left=S+"px"),h&&bf(this,{left:S,top:C,right:S+u.offsetWidth,bottom:C+u.offsetHeight})},triggerOnKeyDown:Ar(H1),triggerOnKeyPress:Ar(W1),triggerOnKeyUp:r0,triggerOnMouseDown:Ar(U1),execCommand:function(s){if(Zo.hasOwnProperty(s))return Zo[s].call(null,this)},triggerElectric:Ar(function(s){X1(this,s)}),findPosH:function(s,u,h,p){var m=1;u<0&&(m=-1,u=-u);for(var b=ge(this.doc,s),C=0;C<u&&(b=Ia(this.doc,b,m,h,p),!b.hitSide);++C);return b},moveH:Ar(function(s,u){var h=this;this.extendSelectionsBy(function(p){return h.display.shift||h.doc.extend||p.empty()?Ia(h.doc,p.head,s,u,h.options.rtlMoveVisually):s<0?p.from():p.to()},Fe)}),deleteH:Ar(function(s,u){var h=this.doc.sel,p=this.doc;h.somethingSelected()?p.replaceSelection("",null,"+delete"):Cn(this,function(m){var b=Ia(p,m.head,s,u,!1);return s<0?{from:b,to:m.head}:{from:m.head,to:b}})}),findPosV:function(s,u,h,p){var m=1,b=p;u<0&&(m=-1,u=-u);for(var C=ge(this.doc,s),S=0;S<u;++S){var M=Zn(this,C,"div");if(b==null?b=M.left:M.left=b,C=Ul(this,M,m,h),C.hitSide)break}return C},moveV:Ar(function(s,u){var h=this,p=this.doc,m=[],b=!this.display.shift&&!p.extend&&p.sel.somethingSelected();if(p.extendSelectionsBy(function(S){if(b)return s<0?S.from():S.to();var M=Zn(h,S.head,"div");S.goalColumn!=null&&(M.left=S.goalColumn),m.push(M.left);var $=Ul(h,M,s,u);return u=="page"&&S==p.sel.primary()&&ws(h,ml(h,$,"div").top-M.top),$},Fe),m.length)for(var C=0;C<p.sel.ranges.length;C++)p.sel.ranges[C].goalColumn=m[C]}),findWordAt:function(s){var u=this.doc,h=Me(u,s.line).text,p=s.ch,m=s.ch;if(h){var b=this.getHelper(s,"wordChars");(s.sticky=="before"||m==h.length)&&p?--p:++m;for(var C=h.charAt(p),S=F(C,b)?function(M){return F(M,b)}:/\s/.test(C)?function(M){return/\s/.test(M)}:function(M){return!/\s/.test(M)&&!F(M)};p>0&&S(h.charAt(p-1));)--p;for(;m<h.length&&S(h.charAt(m));)++m}return new xt(ne(s.line,p),ne(s.line,m))},toggleOverwrite:function(s){s!=null&&s==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?Pt(this.display.cursorDiv,"CodeMirror-overwrite"):ye(this.display.cursorDiv,"CodeMirror-overwrite"),Ze(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==nt()},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:Ar(function(s,u){ga(this,s,u)}),getScrollInfo:function(){var s=this.display.scroller;return{left:s.scrollLeft,top:s.scrollTop,height:s.scrollHeight-nn(this)-this.display.barHeight,width:s.scrollWidth-nn(this)-this.display.barWidth,clientHeight:dl(this),clientWidth:Gi(this)}},scrollIntoView:Ar(function(s,u){s==null?(s={from:this.doc.sel.primary().head,to:null},u==null&&(u=this.options.cursorScrollMargin)):typeof s=="number"?s={from:ne(s,0),to:null}:s.from==null&&(s={from:s,to:null}),s.to||(s.to=s.from),s.margin=u||0,s.from.line!=null?g1(this,s):m1(this,s.from,s.to,s.margin)}),setSize:Ar(function(s,u){var h=this,p=function(b){return typeof b=="number"||/^\d+$/.test(String(b))?b+"px":b};s!=null&&(this.display.wrapper.style.width=p(s)),u!=null&&(this.display.wrapper.style.height=p(u)),this.options.lineWrapping&&c1(this);var m=this.display.viewFrom;this.doc.iter(m,this.display.viewTo,function(b){if(b.widgets){for(var C=0;C<b.widgets.length;C++)if(b.widgets[C].noHScroll){Qi(h,m,"widget");break}}++m}),this.curOp.forceUpdate=!0,Ze(this,"refresh",this)}),operation:function(s){return Er(this,s)},startOperation:function(){return Vn(this)},endOperation:function(){return li(this)},refresh:Ar(function(){var s=this.display.cachedTextHeight;et(this),this.curOp.forceUpdate=!0,ha(this),ga(this,this.doc.scrollLeft,this.doc.scrollTop),zu(this.display),(s==null||Math.abs(s-Ki(this.display))>.5||this.options.lineWrapping)&&Xi(this),Ze(this,"refresh",this)}),swapDoc:Ar(function(s){var u=this.doc;return u.cm=null,this.state.selectingText&&this.state.selectingText(),_1(this,s),ha(this),this.display.input.reset(),ga(this,s.scrollLeft,s.scrollTop),this.curOp.forceScroll=!0,fr(this,"swapDoc",this,u),u}),phrase:function(s){var u=this.options.phrases;return u&&Object.prototype.hasOwnProperty.call(u,s)?u[s]:s},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},Hn(e),e.registerHelper=function(s,u,h){a.hasOwnProperty(s)||(a[s]=e[s]={_global:[]}),a[s][u]=h},e.registerGlobalHelper=function(s,u,h,p){e.registerHelper(s,u,p),a[s]._global.push({pred:h,val:p})}}function Ia(e,t,a,s,u){var h=t,p=a,m=Me(e,t.line),b=u&&e.direction=="rtl"?-a:a;function C(){var be=t.line+b;return be<e.first||be>=e.first+e.size?!1:(t=new ne(be,t.ch,t.sticky),m=Me(e,be))}function S(be){var fe;if(s=="codepoint"){var we=m.text.charCodeAt(t.ch+(a>0?0:-1));if(isNaN(we))fe=null;else{var Ie=a>0?we>=55296&&we<56320:we>=56320&&we<57343;fe=new ne(t.line,Math.max(0,Math.min(m.text.length,t.ch+a*(Ie?2:1))),-a)}}else u?fe=R1(e.cm,m,t,a):fe=Nl(m,t,a);if(fe==null)if(!be&&C())t=As(u,e.cm,m,t.line,b);else return!1;else t=fe;return!0}if(s=="char"||s=="codepoint")S();else if(s=="column")S(!0);else if(s=="word"||s=="group")for(var M=null,$=s=="group",N=e.cm&&e.cm.getHelper(t,"wordChars"),Z=!0;!(a<0&&!S(!Z));Z=!1){var Q=m.text.charAt(t.ch)||`
2102
2109
  `,ae=F(Q,N)?"w":$&&Q==`
2103
2110
  `?"n":!$||/\s/.test(Q)?null:"p";if($&&!Z&&!ae&&(ae="s"),M&&M!=ae){a<0&&(a=1,S(),t.sticky="after");break}if(ae&&(M=ae),a>0&&!S(!Z))break}var ce=xr(e,t,h,p,!0);return P(h,ce)&&(ce.hitSide=!0),ce}function Ul(e,t,a,s){var u=e.doc,h=t.left,p;if(s=="page"){var m=Math.min(e.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),b=Math.max(m-.5*Ki(e.display),3);p=(a>0?t.bottom:t.top)+a*b}else s=="line"&&(p=a>0?t.bottom+3:t.top-3);for(var C;C=R(e,h,p),!!C.outside;){if(a<0?p<=0:p>=u.height){C.hitSide=!0;break}p+=a*5}return C}var _t=function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new at,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};_t.prototype.init=function(e){var t=this,a=this,s=a.cm,u=a.div=e.lineDiv;u.contentEditable=!0,Q1(u,s.options.spellcheck,s.options.autocorrect,s.options.autocapitalize);function h(m){for(var b=m.target;b;b=b.parentNode){if(b==u)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(b.className))break}return!1}Ne(u,"paste",function(m){!h(m)||rr(s,m)||o0(m,s)||O<=11&&setTimeout(qt(s,function(){return t.updateFromDOM()}),20)}),Ne(u,"compositionstart",function(m){t.composing={data:m.data,done:!1}}),Ne(u,"compositionupdate",function(m){t.composing||(t.composing={data:m.data,done:!1})}),Ne(u,"compositionend",function(m){t.composing&&(m.data!=t.composing.data&&t.readFromDOMSoon(),t.composing.done=!0)}),Ne(u,"touchstart",function(){return a.forceCompositionEnd()}),Ne(u,"input",function(){t.composing||t.readFromDOMSoon()});function p(m){if(!(!h(m)||rr(s,m))){if(s.somethingSelected())On({lineWise:!1,text:s.getSelections()}),m.type=="cut"&&s.replaceSelection("",null,"cut");else if(s.options.lineWiseCopyCut){var b=s0(s);On({lineWise:!0,text:b.text}),m.type=="cut"&&s.operation(function(){s.setSelections(b.ranges,0,it),s.replaceSelection("",null,"cut")})}else return;if(m.clipboardData){m.clipboardData.clearData();var C=Mn.text.join(`
2104
2111
  `);if(m.clipboardData.setData("Text",C),m.clipboardData.getData("Text")==C){m.preventDefault();return}}var S=J1(),M=S.firstChild;s.display.lineSpace.insertBefore(S,s.display.lineSpace.firstChild),M.value=Mn.text.join(`
2105
- `);var $=nt();Rt(M),setTimeout(function(){s.display.lineSpace.removeChild(S),$.focus(),$==u&&a.showPrimarySelection()},50)}}Ne(u,"copy",p),Ne(u,"cut",p)},_t.prototype.screenReaderLabelChanged=function(e){e?this.div.setAttribute("aria-label",e):this.div.removeAttribute("aria-label")},_t.prototype.prepareSelection=function(){var e=va(this.cm,!1);return e.focus=nt()==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,a=t.doc.sel.primary(),s=a.from(),u=a.to();if(t.display.viewTo==t.display.viewFrom||s.line>=t.display.viewTo||u.line<t.display.viewFrom){e.removeAllRanges();return}var h=Fs(t,e.anchorNode,e.anchorOffset),p=Fs(t,e.focusNode,e.focusOffset);if(!(h&&!h.bad&&p&&!p.bad&&w(Ve(h,p),s)==0&&w(oe(h,p),u)==0)){var m=t.display.view,b=s.line>=t.display.viewFrom&&za(t,s)||{node:m[0].measure.map[2],offset:0},C=u.line<t.display.viewTo&&za(t,u);if(!C){var S=m[m.length-1].measure,M=S.maps?S.maps[S.maps.length-1]:S.map;C={node:M[M.length-1],offset:M[M.length-2]-M[M.length-3]}}if(!b||!C){e.removeAllRanges();return}var $=e.rangeCount&&e.getRangeAt(0),N;try{N=re(b.node,b.offset,C.offset,C.node)}catch{}N&&(!f&&t.state.focused?(e.collapse(b.node,b.offset),N.collapsed||(e.removeAllRanges(),e.addRange(N))):(e.removeAllRanges(),e.addRange(N)),$&&e.anchorNode==null?e.addRange($):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){B(this.cm.display.cursorDiv,e.cursors),B(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 ve(this.div,t)},_t.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||nt()!=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():Er(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(Ae&&q&&this.cm.display.gutterSpecs.length&&Hs(e.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var a=Fs(t,e.anchorNode,e.anchorOffset),s=Fs(t,e.focusNode,e.focusOffset);a&&s&&Er(t,function(){wr(t.doc,oo(a,s),it),(a.bad||s.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,a=e.doc.sel.primary(),s=a.from(),u=a.to();if(s.ch==0&&s.line>e.firstLine()&&(s=ne(s.line-1,Me(e.doc,s.line-1).length)),u.ch==Me(e.doc,u.line).text.length&&u.line<e.lastLine()&&(u=ne(u.line+1,0)),s.line<t.viewFrom||u.line>t.viewTo-1)return!1;var h,p,m;s.line==t.viewFrom||(h=ai(e,s.line))==0?(p=wt(t.view[0].line),m=t.view[0].node):(p=wt(t.view[h].line),m=t.view[h-1].node.nextSibling);var b=ai(e,u.line),C,S;if(b==t.view.length-1?(C=t.viewTo-1,S=t.lineDiv.lastChild):(C=wt(t.view[b+1].line)-1,S=t.view[b+1].node.previousSibling),!m)return!1;for(var M=e.doc.splitLines(Yl(e,m,S,p,C)),$=vn(e.doc,ne(p,0),ne(C,Me(e.doc,C).text.length));M.length>1&&$.length>1;)if(je(M)==je($))M.pop(),$.pop(),C--;else if(M[0]==$[0])M.shift(),$.shift(),p++;else break;for(var N=0,Z=0,Q=M[0],ae=$[0],ce=Math.min(Q.length,ae.length);N<ce&&Q.charCodeAt(N)==ae.charCodeAt(N);)++N;for(var be=je(M),fe=je($),we=Math.min(be.length-(M.length==1?N:0),fe.length-($.length==1?N:0));Z<we&&be.charCodeAt(be.length-Z-1)==fe.charCodeAt(fe.length-Z-1);)++Z;if(M.length==1&&$.length==1&&p==s.line)for(;N&&N>s.ch&&be.charCodeAt(be.length-Z-1)==fe.charCodeAt(fe.length-Z-1);)N--,Z++;M[M.length-1]=be.slice(0,be.length-Z).replace(/^\u200b+/,""),M[0]=M[0].slice(N).replace(/\u200b+$/,"");var Ie=ne(p,N),Pe=ne(C,$.length?je($).length-Z:0);if(M.length>1||M[0]||w(Ie,Pe))return Ts(e.doc,M,Ie,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())&&Er(this.cm,function(){return et(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()||qt(this.cm,Bl)(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 za(e,t){var a=Eu(e,t.line);if(!a||a.hidden)return null;var s=Me(e.doc,t.line),u=o1(a,s,t.line),h=Rr(s,e.doc.direction),p="left";if(h){var m=Ut(h,t.ch);p=m%2?"right":"left"}var b=hl(u.map,t.ch,p);return b.offset=b.collapse=="right"?b.end:b.start,b}function Hs(e){for(var t=e;t;t=t.parentNode)if(/CodeMirror-gutter-wrapper/.test(t.className))return!0;return!1}function Re(e,t){return t&&(e.bad=!0),e}function Yl(e,t,a,s,u){var h="",p=!1,m=e.doc.lineSeparator(),b=!1;function C(N){return function(Z){return Z.id==N}}function S(){p&&(h+=m,b&&(h+=m),p=b=!1)}function M(N){N&&(S(),h+=N)}function $(N){if(N.nodeType==1){var Z=N.getAttribute("cm-text");if(Z){M(Z);return}var Q=N.getAttribute("cm-marker"),ae;if(Q){var ce=e.findMarks(ne(s,0),ne(u+1,0),C(+Q));ce.length&&(ae=ce[0].find(0))&&M(vn(e.doc,ae.from,ae.to).join(m));return}if(N.getAttribute("contenteditable")=="false")return;var be=/^(pre|div|p|li|table|br)$/i.test(N.nodeName);if(!/^br$/i.test(N.nodeName)&&N.textContent.length==0)return;be&&S();for(var fe=0;fe<N.childNodes.length;fe++)$(N.childNodes[fe]);/^(pre|p)$/i.test(N.nodeName)&&(b=!0),be&&(p=!0)}else N.nodeType==3&&M(N.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;$(t),t!=a;)t=t.nextSibling,b=!1;return h}function Fs(e,t,a){var s;if(t==e.display.lineDiv){if(s=e.display.lineDiv.childNodes[a],!s)return Re(e.clipPos(ne(e.display.viewTo-1)),!0);t=null,a=0}else for(s=t;;s=s.parentNode){if(!s||s==e.display.lineDiv)return null;if(s.parentNode&&s.parentNode==e.display.lineDiv)break}for(var u=0;u<e.display.view.length;u++){var h=e.display.view[u];if(h.node==s)return Go(h,t,a)}}function Go(e,t,a){var s=e.text.firstChild,u=!1;if(!t||!ve(s,t))return Re(ne(wt(e.line),0),!0);if(t==s&&(u=!0,t=s.childNodes[a],a=0,!t)){var h=e.rest?je(e.rest):e.line;return Re(ne(wt(h),h.text.length),u)}var p=t.nodeType==3?t:null,m=t;for(!p&&t.childNodes.length==1&&t.firstChild.nodeType==3&&(p=t.firstChild,a&&(a=p.nodeValue.length));m.parentNode!=s;)m=m.parentNode;var b=e.measure,C=b.maps;function S(ae,ce,be){for(var fe=-1;fe<(C?C.length:0);fe++)for(var we=fe<0?b.map:C[fe],Ie=0;Ie<we.length;Ie+=3){var Pe=we[Ie+2];if(Pe==ae||Pe==ce){var st=wt(fe<0?e.line:e.rest[fe]),Mt=we[Ie]+be;return(be<0||Pe!=ae)&&(Mt=we[Ie+(be?1:0)]),ne(st,Mt)}}}var M=S(p,m,a);if(M)return Re(M,u);for(var $=m.nextSibling,N=p?p.nodeValue.length-a:0;$;$=$.nextSibling){if(M=S($,$.firstChild,0),M)return Re(ne(M.line,M.ch-N),u);N+=$.textContent.length}for(var Z=m.previousSibling,Q=a;Z;Z=Z.previousSibling){if(M=S(Z,Z.firstChild,-1),M)return Re(ne(M.line,M.ch+Q),u);Q+=Z.textContent.length}}var Jt=function(e){this.cm=e,this.prevInput="",this.pollingFast=!1,this.polling=new at,this.hasSelection=!1,this.composing=null};Jt.prototype.init=function(e){var t=this,a=this,s=this.cm;this.createField(e);var u=this.textarea;e.wrapper.insertBefore(this.wrapper,e.wrapper.firstChild),Ee&&(u.style.width="0px"),Ne(u,"input",function(){k&&O>=9&&t.hasSelection&&(t.hasSelection=null),a.poll()}),Ne(u,"paste",function(p){rr(s,p)||o0(p,s)||(s.state.pasteIncoming=+new Date,a.fastPoll())});function h(p){if(!rr(s,p)){if(s.somethingSelected())On({lineWise:!1,text:s.getSelections()});else if(s.options.lineWiseCopyCut){var m=s0(s);On({lineWise:!0,text:m.text}),p.type=="cut"?s.setSelections(m.ranges,null,it):(a.prevInput="",u.value=m.text.join(`
2112
+ `);var $=nt();Rt(M),setTimeout(function(){s.display.lineSpace.removeChild(S),$.focus(),$==u&&a.showPrimarySelection()},50)}}Ne(u,"copy",p),Ne(u,"cut",p)},_t.prototype.screenReaderLabelChanged=function(e){e?this.div.setAttribute("aria-label",e):this.div.removeAttribute("aria-label")},_t.prototype.prepareSelection=function(){var e=va(this.cm,!1);return e.focus=nt()==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,a=t.doc.sel.primary(),s=a.from(),u=a.to();if(t.display.viewTo==t.display.viewFrom||s.line>=t.display.viewTo||u.line<t.display.viewFrom){e.removeAllRanges();return}var h=Hs(t,e.anchorNode,e.anchorOffset),p=Hs(t,e.focusNode,e.focusOffset);if(!(h&&!h.bad&&p&&!p.bad&&w(Ve(h,p),s)==0&&w(oe(h,p),u)==0)){var m=t.display.view,b=s.line>=t.display.viewFrom&&za(t,s)||{node:m[0].measure.map[2],offset:0},C=u.line<t.display.viewTo&&za(t,u);if(!C){var S=m[m.length-1].measure,M=S.maps?S.maps[S.maps.length-1]:S.map;C={node:M[M.length-1],offset:M[M.length-2]-M[M.length-3]}}if(!b||!C){e.removeAllRanges();return}var $=e.rangeCount&&e.getRangeAt(0),N;try{N=re(b.node,b.offset,C.offset,C.node)}catch{}N&&(!f&&t.state.focused?(e.collapse(b.node,b.offset),N.collapsed||(e.removeAllRanges(),e.addRange(N))):(e.removeAllRanges(),e.addRange(N)),$&&e.anchorNode==null?e.addRange($):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){B(this.cm.display.cursorDiv,e.cursors),B(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 ve(this.div,t)},_t.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||nt()!=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():Er(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(Ae&&q&&this.cm.display.gutterSpecs.length&&Rs(e.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var a=Hs(t,e.anchorNode,e.anchorOffset),s=Hs(t,e.focusNode,e.focusOffset);a&&s&&Er(t,function(){wr(t.doc,oo(a,s),it),(a.bad||s.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,a=e.doc.sel.primary(),s=a.from(),u=a.to();if(s.ch==0&&s.line>e.firstLine()&&(s=ne(s.line-1,Me(e.doc,s.line-1).length)),u.ch==Me(e.doc,u.line).text.length&&u.line<e.lastLine()&&(u=ne(u.line+1,0)),s.line<t.viewFrom||u.line>t.viewTo-1)return!1;var h,p,m;s.line==t.viewFrom||(h=ai(e,s.line))==0?(p=wt(t.view[0].line),m=t.view[0].node):(p=wt(t.view[h].line),m=t.view[h-1].node.nextSibling);var b=ai(e,u.line),C,S;if(b==t.view.length-1?(C=t.viewTo-1,S=t.lineDiv.lastChild):(C=wt(t.view[b+1].line)-1,S=t.view[b+1].node.previousSibling),!m)return!1;for(var M=e.doc.splitLines(Yl(e,m,S,p,C)),$=vn(e.doc,ne(p,0),ne(C,Me(e.doc,C).text.length));M.length>1&&$.length>1;)if(je(M)==je($))M.pop(),$.pop(),C--;else if(M[0]==$[0])M.shift(),$.shift(),p++;else break;for(var N=0,Z=0,Q=M[0],ae=$[0],ce=Math.min(Q.length,ae.length);N<ce&&Q.charCodeAt(N)==ae.charCodeAt(N);)++N;for(var be=je(M),fe=je($),we=Math.min(be.length-(M.length==1?N:0),fe.length-($.length==1?N:0));Z<we&&be.charCodeAt(be.length-Z-1)==fe.charCodeAt(fe.length-Z-1);)++Z;if(M.length==1&&$.length==1&&p==s.line)for(;N&&N>s.ch&&be.charCodeAt(be.length-Z-1)==fe.charCodeAt(fe.length-Z-1);)N--,Z++;M[M.length-1]=be.slice(0,be.length-Z).replace(/^\u200b+/,""),M[0]=M[0].slice(N).replace(/\u200b+$/,"");var Ie=ne(p,N),Pe=ne(C,$.length?je($).length-Z:0);if(M.length>1||M[0]||w(Ie,Pe))return Os(e.doc,M,Ie,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())&&Er(this.cm,function(){return et(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()||qt(this.cm,Bl)(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 za(e,t){var a=Eu(e,t.line);if(!a||a.hidden)return null;var s=Me(e.doc,t.line),u=o1(a,s,t.line),h=Rr(s,e.doc.direction),p="left";if(h){var m=Ut(h,t.ch);p=m%2?"right":"left"}var b=hl(u.map,t.ch,p);return b.offset=b.collapse=="right"?b.end:b.start,b}function Rs(e){for(var t=e;t;t=t.parentNode)if(/CodeMirror-gutter-wrapper/.test(t.className))return!0;return!1}function Re(e,t){return t&&(e.bad=!0),e}function Yl(e,t,a,s,u){var h="",p=!1,m=e.doc.lineSeparator(),b=!1;function C(N){return function(Z){return Z.id==N}}function S(){p&&(h+=m,b&&(h+=m),p=b=!1)}function M(N){N&&(S(),h+=N)}function $(N){if(N.nodeType==1){var Z=N.getAttribute("cm-text");if(Z){M(Z);return}var Q=N.getAttribute("cm-marker"),ae;if(Q){var ce=e.findMarks(ne(s,0),ne(u+1,0),C(+Q));ce.length&&(ae=ce[0].find(0))&&M(vn(e.doc,ae.from,ae.to).join(m));return}if(N.getAttribute("contenteditable")=="false")return;var be=/^(pre|div|p|li|table|br)$/i.test(N.nodeName);if(!/^br$/i.test(N.nodeName)&&N.textContent.length==0)return;be&&S();for(var fe=0;fe<N.childNodes.length;fe++)$(N.childNodes[fe]);/^(pre|p)$/i.test(N.nodeName)&&(b=!0),be&&(p=!0)}else N.nodeType==3&&M(N.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;$(t),t!=a;)t=t.nextSibling,b=!1;return h}function Hs(e,t,a){var s;if(t==e.display.lineDiv){if(s=e.display.lineDiv.childNodes[a],!s)return Re(e.clipPos(ne(e.display.viewTo-1)),!0);t=null,a=0}else for(s=t;;s=s.parentNode){if(!s||s==e.display.lineDiv)return null;if(s.parentNode&&s.parentNode==e.display.lineDiv)break}for(var u=0;u<e.display.view.length;u++){var h=e.display.view[u];if(h.node==s)return Go(h,t,a)}}function Go(e,t,a){var s=e.text.firstChild,u=!1;if(!t||!ve(s,t))return Re(ne(wt(e.line),0),!0);if(t==s&&(u=!0,t=s.childNodes[a],a=0,!t)){var h=e.rest?je(e.rest):e.line;return Re(ne(wt(h),h.text.length),u)}var p=t.nodeType==3?t:null,m=t;for(!p&&t.childNodes.length==1&&t.firstChild.nodeType==3&&(p=t.firstChild,a&&(a=p.nodeValue.length));m.parentNode!=s;)m=m.parentNode;var b=e.measure,C=b.maps;function S(ae,ce,be){for(var fe=-1;fe<(C?C.length:0);fe++)for(var we=fe<0?b.map:C[fe],Ie=0;Ie<we.length;Ie+=3){var Pe=we[Ie+2];if(Pe==ae||Pe==ce){var st=wt(fe<0?e.line:e.rest[fe]),Mt=we[Ie]+be;return(be<0||Pe!=ae)&&(Mt=we[Ie+(be?1:0)]),ne(st,Mt)}}}var M=S(p,m,a);if(M)return Re(M,u);for(var $=m.nextSibling,N=p?p.nodeValue.length-a:0;$;$=$.nextSibling){if(M=S($,$.firstChild,0),M)return Re(ne(M.line,M.ch-N),u);N+=$.textContent.length}for(var Z=m.previousSibling,Q=a;Z;Z=Z.previousSibling){if(M=S(Z,Z.firstChild,-1),M)return Re(ne(M.line,M.ch+Q),u);Q+=Z.textContent.length}}var Jt=function(e){this.cm=e,this.prevInput="",this.pollingFast=!1,this.polling=new at,this.hasSelection=!1,this.composing=null};Jt.prototype.init=function(e){var t=this,a=this,s=this.cm;this.createField(e);var u=this.textarea;e.wrapper.insertBefore(this.wrapper,e.wrapper.firstChild),Ee&&(u.style.width="0px"),Ne(u,"input",function(){k&&O>=9&&t.hasSelection&&(t.hasSelection=null),a.poll()}),Ne(u,"paste",function(p){rr(s,p)||o0(p,s)||(s.state.pasteIncoming=+new Date,a.fastPoll())});function h(p){if(!rr(s,p)){if(s.somethingSelected())On({lineWise:!1,text:s.getSelections()});else if(s.options.lineWiseCopyCut){var m=s0(s);On({lineWise:!0,text:m.text}),p.type=="cut"?s.setSelections(m.ranges,null,it):(a.prevInput="",u.value=m.text.join(`
2106
2113
  `),Rt(u))}else return;p.type=="cut"&&(s.state.cutIncoming=+new Date)}}Ne(u,"cut",h),Ne(u,"copy",h),Ne(e.scroller,"paste",function(p){if(!(Li(e,p)||rr(s,p))){if(!u.dispatchEvent){s.state.pasteIncoming=+new Date,a.focus();return}var m=new Event("paste");m.clipboardData=p.clipboardData,u.dispatchEvent(m)}}),Ne(e.lineSpace,"selectstart",function(p){Li(e,p)||Cr(p)}),Ne(u,"compositionstart",function(){var p=s.getCursor("from");a.composing&&a.composing.range.clear(),a.composing={start:p,range:s.markText(p,s.getCursor("to"),{className:"CodeMirror-composing"})}}),Ne(u,"compositionend",function(){a.composing&&(a.poll(),a.composing.range.clear(),a.composing=null)})},Jt.prototype.createField=function(e){this.wrapper=J1(),this.textarea=this.wrapper.firstChild},Jt.prototype.screenReaderLabelChanged=function(e){e?this.textarea.setAttribute("aria-label",e):this.textarea.removeAttribute("aria-label")},Jt.prototype.prepareSelection=function(){var e=this.cm,t=e.display,a=e.doc,s=va(e);if(e.options.moveInputWithCursor){var u=Zn(e,a.sel.primary().head,"div"),h=t.wrapper.getBoundingClientRect(),p=t.lineDiv.getBoundingClientRect();s.teTop=Math.max(0,Math.min(t.wrapper.clientHeight-10,u.top+p.top-h.top)),s.teLeft=Math.max(0,Math.min(t.wrapper.clientWidth-10,u.left+p.left-h.left))}return s},Jt.prototype.showSelection=function(e){var t=this.cm,a=t.display;B(a.cursorDiv,e.cursors),B(a.selectionDiv,e.selection),e.teTop!=null&&(this.wrapper.style.top=e.teTop+"px",this.wrapper.style.left=e.teLeft+"px")},Jt.prototype.reset=function(e){if(!(this.contextMenuPending||this.composing)){var t=this.cm;if(t.somethingSelected()){this.prevInput="";var a=t.getSelection();this.textarea.value=a,t.state.focused&&Rt(this.textarea),k&&O>=9&&(this.hasSelection=a)}else e||(this.prevInput=this.textarea.value="",k&&O>=9&&(this.hasSelection=null))}},Jt.prototype.getField=function(){return this.textarea},Jt.prototype.supportsTouch=function(){return!1},Jt.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!he||nt()!=this.textarea))try{this.textarea.focus()}catch{}},Jt.prototype.blur=function(){this.textarea.blur()},Jt.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Jt.prototype.receivedFocus=function(){this.slowPoll()},Jt.prototype.slowPoll=function(){var e=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){e.poll(),e.cm.state.focused&&e.slowPoll()})},Jt.prototype.fastPoll=function(){var e=!1,t=this;t.pollingFast=!0;function a(){var s=t.poll();!s&&!e?(e=!0,t.polling.set(60,a)):(t.pollingFast=!1,t.slowPoll())}t.polling.set(20,a)},Jt.prototype.poll=function(){var e=this,t=this.cm,a=this.textarea,s=this.prevInput;if(this.contextMenuPending||!t.state.focused||Qa(a)&&!s&&!this.composing||t.isReadOnly()||t.options.disableInput||t.state.keySeq)return!1;var u=a.value;if(u==s&&!t.somethingSelected())return!1;if(k&&O>=9&&this.hasSelection===u||de&&/[\uf700-\uf7ff]/.test(u))return t.display.input.reset(),!1;if(t.doc.sel==t.display.selForContextMenu){var h=u.charCodeAt(0);if(h==8203&&!s&&(s="\u200B"),h==8666)return this.reset(),this.cm.execCommand("undo")}for(var p=0,m=Math.min(s.length,u.length);p<m&&s.charCodeAt(p)==u.charCodeAt(p);)++p;return Er(t,function(){Bl(t,u.slice(p),s.length-p,null,e.composing?"*compose":null),u.length>1e3||u.indexOf(`
2107
2114
  `)>-1?a.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},Jt.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Jt.prototype.onKeyPress=function(){k&&O>=9&&(this.hasSelection=null),this.fastPoll()},Jt.prototype.onContextMenu=function(e){var t=this,a=t.cm,s=a.display,u=t.textarea;t.contextMenuPending&&t.contextMenuPending();var h=si(a,e),p=s.scroller.scrollTop;if(!h||X)return;var m=a.options.resetSelectionOnContextMenu;m&&a.doc.sel.contains(h)==-1&&qt(a,wr)(a.doc,oo(h),it);var b=u.style.cssText,C=t.wrapper.style.cssText,S=t.wrapper.offsetParent.getBoundingClientRect();t.wrapper.style.cssText="position: static",u.style.cssText=`position: absolute; width: 30px; height: 30px;
2108
2115
  top: `+(e.clientY-S.top-5)+"px; left: "+(e.clientX-S.left-5)+`px;
2109
2116
  z-index: 1000; background: `+(k?"rgba(255, 255, 255, .05)":"transparent")+`;
2110
- outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var M;I&&(M=window.scrollY),s.input.focus(),I&&window.scrollTo(null,M),s.input.reset(),a.somethingSelected()||(u.value=t.prevInput=" "),t.contextMenuPending=N,s.selForContextMenu=a.doc.sel,clearTimeout(s.detectingSelectAll);function $(){if(u.selectionStart!=null){var Q=a.somethingSelected(),ae="\u200B"+(Q?u.value:"");u.value="\u21DA",u.value=ae,t.prevInput=Q?"":"\u200B",u.selectionStart=1,u.selectionEnd=ae.length,s.selForContextMenu=a.doc.sel}}function N(){if(t.contextMenuPending==N&&(t.contextMenuPending=!1,t.wrapper.style.cssText=C,u.style.cssText=b,k&&O<9&&s.scrollbars.setScrollTop(s.scroller.scrollTop=p),u.selectionStart!=null)){(!k||k&&O<9)&&$();var Q=0,ae=function(){s.selForContextMenu==a.doc.sel&&u.selectionStart==0&&u.selectionEnd>0&&t.prevInput=="\u200B"?qt(a,M1)(a):Q++<10?s.detectingSelectAll=setTimeout(ae,500):(s.selForContextMenu=null,s.input.reset())};s.detectingSelectAll=setTimeout(ae,200)}}if(k&&O>=9&&$(),tt){ko(e);var Z=function(){Mr(window,"mouseup",Z),setTimeout(N,20)};Ne(window,"mouseup",Z)}else setTimeout(N,50)},Jt.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled=e=="nocursor",this.textarea.readOnly=!!e},Jt.prototype.setUneditable=function(){},Jt.prototype.needsContentAttribute=!1;function a0(e,t){if(t=t?Qt(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 a=nt();t.autofocus=a==e||e.getAttribute("autofocus")!=null&&a==document.body}function s(){e.value=m.getValue()}var u;if(e.form&&(Ne(e.form,"submit",s),!t.leaveSubmitMethodAlone)){var h=e.form;u=h.submit;try{var p=h.submit=function(){s(),h.submit=u,h.submit(),h.submit=p}}catch{}}t.finishInit=function(b){b.save=s,b.getTextArea=function(){return e},b.toTextArea=function(){b.toTextArea=isNaN,s(),e.parentNode.removeChild(b.getWrapperElement()),e.style.display="",e.form&&(Mr(e.form,"submit",s),!t.leaveSubmitMethodAlone&&typeof e.form.submit=="function"&&(e.form.submit=u))}},e.style.display="none";var m=Dt(function(b){return e.parentNode.insertBefore(b,e.nextSibling)},t);return m}function ec(e){e.off=Mr,e.on=Ne,e.wheelEventPixels=Tf,e.Doc=Hr,e.splitLines=Oo,e.countColumn=Ht,e.findColumn=Zt,e.isWordChar=Je,e.Pass=Be,e.signal=Ze,e.Line=Tr,e.changeEnd=so,e.scrollbarModel=Cl,e.Pos=ne,e.cmpPos=w,e.modes=xn,e.mimeModes=hn,e.resolveMode=To,e.getMode=ds,e.modeExtensions=Fn,e.extendMode=Wn,e.copyState=pn,e.startState=ia,e.innerMode=na,e.commands=Zo,e.keyMap=Oi,e.keyName=Xu,e.isModifierKey=zl,e.lookupKey=Ti,e.normalizeKeyMap=Nf,e.StringStream=Ft,e.SharedTextMarker=As,e.TextMarker=uo,e.LineWidget=ka,e.e_preventDefault=Cr,e.e_stopPropagation=fs,e.e_stop=ko,e.addClass=Pt,e.contains=ve,e.rmClass=ye,e.keyNames=fo}Wl(Dt),Pi(Dt);var Wr="iter insert remove copy getEditor constructor".split(" ");for(var Zl in Hr.prototype)Hr.prototype.hasOwnProperty(Zl)&&_e(Wr,Zl)<0&&(Dt.prototype[Zl]=function(e){return function(){return e.apply(this.doc,arguments)}}(Hr.prototype[Zl]));return Hn(Hr),Dt.inputStyles={textarea:Jt,contenteditable:_t},Dt.defineMode=function(e){!Dt.defaults.mode&&e!="null"&&(Dt.defaults.mode=e),el.apply(this,arguments)},Dt.defineMIME=xi,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){Hr.prototype[e]=t},Dt.fromTextArea=a0,ec(Dt),Dt.version="5.62.3",Dt})})(ss);const v0=ss.exports,ig=`.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}
2111
- `,og=ke`
2117
+ outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var M;I&&(M=window.scrollY),s.input.focus(),I&&window.scrollTo(null,M),s.input.reset(),a.somethingSelected()||(u.value=t.prevInput=" "),t.contextMenuPending=N,s.selForContextMenu=a.doc.sel,clearTimeout(s.detectingSelectAll);function $(){if(u.selectionStart!=null){var Q=a.somethingSelected(),ae="\u200B"+(Q?u.value:"");u.value="\u21DA",u.value=ae,t.prevInput=Q?"":"\u200B",u.selectionStart=1,u.selectionEnd=ae.length,s.selForContextMenu=a.doc.sel}}function N(){if(t.contextMenuPending==N&&(t.contextMenuPending=!1,t.wrapper.style.cssText=C,u.style.cssText=b,k&&O<9&&s.scrollbars.setScrollTop(s.scroller.scrollTop=p),u.selectionStart!=null)){(!k||k&&O<9)&&$();var Q=0,ae=function(){s.selForContextMenu==a.doc.sel&&u.selectionStart==0&&u.selectionEnd>0&&t.prevInput=="\u200B"?qt(a,M1)(a):Q++<10?s.detectingSelectAll=setTimeout(ae,500):(s.selForContextMenu=null,s.input.reset())};s.detectingSelectAll=setTimeout(ae,200)}}if(k&&O>=9&&$(),tt){ko(e);var Z=function(){Mr(window,"mouseup",Z),setTimeout(N,20)};Ne(window,"mouseup",Z)}else setTimeout(N,50)},Jt.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled=e=="nocursor",this.textarea.readOnly=!!e},Jt.prototype.setUneditable=function(){},Jt.prototype.needsContentAttribute=!1;function a0(e,t){if(t=t?Qt(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 a=nt();t.autofocus=a==e||e.getAttribute("autofocus")!=null&&a==document.body}function s(){e.value=m.getValue()}var u;if(e.form&&(Ne(e.form,"submit",s),!t.leaveSubmitMethodAlone)){var h=e.form;u=h.submit;try{var p=h.submit=function(){s(),h.submit=u,h.submit(),h.submit=p}}catch{}}t.finishInit=function(b){b.save=s,b.getTextArea=function(){return e},b.toTextArea=function(){b.toTextArea=isNaN,s(),e.parentNode.removeChild(b.getWrapperElement()),e.style.display="",e.form&&(Mr(e.form,"submit",s),!t.leaveSubmitMethodAlone&&typeof e.form.submit=="function"&&(e.form.submit=u))}},e.style.display="none";var m=Dt(function(b){return e.parentNode.insertBefore(b,e.nextSibling)},t);return m}function ec(e){e.off=Mr,e.on=Ne,e.wheelEventPixels=Tf,e.Doc=Hr,e.splitLines=Oo,e.countColumn=Ht,e.findColumn=Zt,e.isWordChar=Je,e.Pass=Be,e.signal=Ze,e.Line=Tr,e.changeEnd=so,e.scrollbarModel=Cl,e.Pos=ne,e.cmpPos=w,e.modes=xn,e.mimeModes=hn,e.resolveMode=To,e.getMode=fs,e.modeExtensions=Fn,e.extendMode=Wn,e.copyState=pn,e.startState=ia,e.innerMode=na,e.commands=Zo,e.keyMap=Oi,e.keyName=Xu,e.isModifierKey=zl,e.lookupKey=Ti,e.normalizeKeyMap=Nf,e.StringStream=Ft,e.SharedTextMarker=Es,e.TextMarker=uo,e.LineWidget=ka,e.e_preventDefault=Cr,e.e_stopPropagation=cs,e.e_stop=ko,e.addClass=Pt,e.contains=ve,e.rmClass=ye,e.keyNames=fo}Wl(Dt),Pi(Dt);var Wr="iter insert remove copy getEditor constructor".split(" ");for(var Zl in Hr.prototype)Hr.prototype.hasOwnProperty(Zl)&&_e(Wr,Zl)<0&&(Dt.prototype[Zl]=function(e){return function(){return e.apply(this.doc,arguments)}}(Hr.prototype[Zl]));return Hn(Hr),Dt.inputStyles={textarea:Jt,contenteditable:_t},Dt.defineMode=function(e){!Dt.defaults.mode&&e!="null"&&(Dt.defaults.mode=e),el.apply(this,arguments)},Dt.defineMIME=xi,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){Hr.prototype[e]=t},Dt.fromTextArea=a0,ec(Dt),Dt.version="5.62.3",Dt})}(ud)),ud.exports}var v0=Qs();const sg=`.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}
2118
+ `,ag=ke`
2112
2119
  .cm-s-skedulo .cm-header {
2113
2120
  color: blue;
2114
2121
  }
@@ -2186,12 +2193,12 @@ b`.split(/\n/).length!=3?function(e){for(var t=0,a=[],s=e.length;t<=s;){var u=e.
2186
2193
  .cm-invalidchar {
2187
2194
  color: #f00;
2188
2195
  }
2189
- `;(function(r,n){(function(o){o(ss.exports)})(function(o){o.overlayMode=function(c,f,v){return{startState:function(){return{base:o.startState(c),overlay:o.startState(f),basePos:0,baseCur:null,overlayPos:0,overlayCur:null,streamSeen:null}},copyState:function(y){return{base:o.copyState(c,y.base),overlay:o.copyState(f,y.overlay),basePos:y.basePos,baseCur:null,overlayPos:y.overlayPos,overlayCur:null}},token:function(y,E){return(y!=E.streamSeen||Math.min(E.basePos,E.overlayPos)<y.start)&&(E.streamSeen=y,E.basePos=E.overlayPos=y.start),y.start==E.basePos&&(E.baseCur=c.token(y,E.base),E.basePos=y.pos),y.start==E.overlayPos&&(y.pos=y.start,E.overlayCur=f.token(y,E.overlay),E.overlayPos=y.pos),y.pos=Math.min(E.basePos,E.overlayPos),E.overlayCur==null?E.baseCur:E.baseCur!=null&&E.overlay.combineTokens||v&&E.overlay.combineTokens==null?E.baseCur+" "+E.overlayCur:E.overlayCur},indent:c.indent&&function(y,E,k){return c.indent(y.base,E,k)},electricChars:c.electricChars,innerMode:function(y){return{state:y.base,mode:c}},blankLine:function(y){var E,k;return c.blankLine&&(E=c.blankLine(y.base)),f.blankLine&&(k=f.blankLine(y.overlay)),k==null?E:v&&E!=null?E+" "+k:k}}}})})();(function(r,n){(function(o){o(ss.exports)})(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=/^[+\-*&%=<>!?|~^]/,v=/^[:\[\(\{]/,y=["true","false"],E=/^(\d[+\-\*\/])?\d+(\.\d+)?/;c=new RegExp("(("+c.join(")|(")+"))\\b"),y=new RegExp("(("+y.join(")|(")+"))\\b");function k(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(y))return"atom";if(O.match(E))return"number"}if(I.sign){if(I.sign=!1,O.match(y))return"atom";if(O.match(E))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(v))I.sign=!0;else if(O.eat(" ")||O.sol()){if(O.match(c))return"keyword";if(O.match(y))return"atom";if(O.match(E))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:k}},token:function(O,I){return I.tokenize(O,I)},blockCommentStart:"{#",blockCommentEnd:"#}"}}),o.defineMIME("text/jinja2","jinja2")})})();var sg={exports:{}};(function(r,n){(function(o){o(ss.exports)})(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(v,y){var E=v.indentUnit,k={},O=y.htmlMode?c:f;for(var I in O)k[I]=O[I];for(var I in y)k[I]=y[I];var U,q;function X(D,T){function re(Pt){return T.tokenize=Pt,Pt(D,T)}var ve=D.next();if(ve=="<")return D.eat("!")?D.eat("[")?D.match("CDATA[")?re(me("atom","]]>")):null:D.match("--")?re(me("comment","-->")):D.match("DOCTYPE",!0,!0)?(D.eatWhile(/[\w\._\-]/),re(Ee(1))):null:D.eat("?")?(D.eatWhile(/[\w\._\-]/),T.tokenize=me("meta","?>"),"meta"):(U=D.eat("/")?"closeTag":"openTag",T.tokenize=ue,"tag bracket");if(ve=="&"){var nt;return D.eat("#")?D.eat("x")?nt=D.eatWhile(/[a-fA-F\d]/)&&D.eat(";"):nt=D.eatWhile(/[\d]/)&&D.eat(";"):nt=D.eatWhile(/[\w\.\-:]/)&&D.eat(";"),nt?"atom":"error"}else return D.eatWhile(/[^&<]/),null}X.isInText=!0;function ue(D,T){var re=D.next();if(re==">"||re=="/"&&D.eat(">"))return T.tokenize=X,U=re==">"?"endTag":"selfcloseTag","tag bracket";if(re=="=")return U="equals",null;if(re=="<"){T.tokenize=X,T.state=Te,T.tagName=T.tagStart=null;var ve=T.tokenize(D,T);return ve?ve+" tag error":"tag error"}else return/[\'\"]/.test(re)?(T.tokenize=Ce(re),T.stringStartCol=D.column(),T.tokenize(D,T)):(D.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function Ce(D){var T=function(re,ve){for(;!re.eol();)if(re.next()==D){ve.tokenize=ue;break}return"string"};return T.isInAttribute=!0,T}function me(D,T){return function(re,ve){for(;!re.eol();){if(re.match(T)){ve.tokenize=X;break}re.next()}return D}}function Ee(D){return function(T,re){for(var ve;(ve=T.next())!=null;){if(ve=="<")return re.tokenize=Ee(D+1),re.tokenize(T,re);if(ve==">")if(D==1){re.tokenize=X;break}else return re.tokenize=Ee(D-1),re.tokenize(T,re)}return"meta"}}function Ae(D,T,re){this.prev=D.context,this.tagName=T||"",this.indent=D.indented,this.startOfLine=re,(k.doNotIndent.hasOwnProperty(T)||D.context&&D.context.noIndent)&&(this.noIndent=!0)}function he(D){D.context&&(D.context=D.context.prev)}function de(D,T){for(var re;;){if(!D.context||(re=D.context.tagName,!k.contextGrabbers.hasOwnProperty(re)||!k.contextGrabbers[re].hasOwnProperty(T)))return;he(D)}}function Te(D,T,re){return D=="openTag"?(re.tagStart=T.column(),$e):D=="closeTag"?We:Te}function $e(D,T,re){return D=="word"?(re.tagName=T.current(),q="tag",pe):k.allowMissingTagName&&D=="endTag"?(q="tag bracket",pe(D,T,re)):(q="error",$e)}function We(D,T,re){if(D=="word"){var ve=T.current();return re.context&&re.context.tagName!=ve&&k.implicitlyClosed.hasOwnProperty(re.context.tagName)&&he(re),re.context&&re.context.tagName==ve||k.matchClosing===!1?(q="tag",Qe):(q="tag error",tt)}else return k.allowMissingTagName&&D=="endTag"?(q="tag bracket",Qe(D,T,re)):(q="error",tt)}function Qe(D,T,re){return D!="endTag"?(q="error",Qe):(he(re),Te)}function tt(D,T,re){return q="error",Qe(D,T,re)}function pe(D,T,re){if(D=="word")return q="attribute",ye;if(D=="endTag"||D=="selfcloseTag"){var ve=re.tagName,nt=re.tagStart;return re.tagName=re.tagStart=null,D=="selfcloseTag"||k.autoSelfClosers.hasOwnProperty(ve)?de(re,ve):(de(re,ve),re.context=new Ae(re,ve,nt==re.indented)),Te}return q="error",pe}function ye(D,T,re){return D=="equals"?rt:(k.allowMissing||(q="error"),pe(D,T,re))}function rt(D,T,re){return D=="string"?B:D=="word"&&k.allowUnquoted?(q="string",pe):(q="error",pe(D,T,re))}function B(D,T,re){return D=="string"?B:pe(D,T,re)}return{startState:function(D){var T={tokenize:X,state:Te,indented:D||0,tagName:null,tagStart:null,context:null};return D!=null&&(T.baseIndent=D),T},token:function(D,T){if(!T.tagName&&D.sol()&&(T.indented=D.indentation()),D.eatSpace())return null;U=null;var re=T.tokenize(D,T);return(re||U)&&re!="comment"&&(q=null,T.state=T.state(U||re,D,T),q&&(re=q=="error"?re+" error":q)),re},indent:function(D,T,re){var ve=D.context;if(D.tokenize.isInAttribute)return D.tagStart==D.indented?D.stringStartCol+1:D.indented+E;if(ve&&ve.noIndent)return o.Pass;if(D.tokenize!=ue&&D.tokenize!=X)return re?re.match(/^(\s*)/)[0].length:0;if(D.tagName)return k.multilineTagIndentPastTag!==!1?D.tagStart+D.tagName.length+2:D.tagStart+E*(k.multilineTagIndentFactor||1);if(k.alignCDATA&&/<!\[CDATA\[/.test(T))return 0;var nt=T&&/^<(\/)?([\w_:\.-]*)/.exec(T);if(nt&&nt[1])for(;ve;)if(ve.tagName==nt[2]){ve=ve.prev;break}else if(k.implicitlyClosed.hasOwnProperty(ve.tagName))ve=ve.prev;else break;else if(nt)for(;ve;){var Pt=k.contextGrabbers[ve.tagName];if(Pt&&Pt.hasOwnProperty(nt[2]))ve=ve.prev;else break}for(;ve&&ve.prev&&!ve.startOfLine;)ve=ve.prev;return ve?ve.indent+E:D.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:k.htmlMode?"html":"xml",helperType:k.htmlMode?"html":"xml",skipAttribute:function(D){D.state==rt&&(D.state=pe)},xmlCurrentTag:function(D){return D.tagName?{name:D.tagName,close:D.type=="closeTag"}:null},xmlCurrentContext:function(D){for(var T=[],re=D.context;re;re=re.prev)T.push(re.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 Sp={exports:{}},kp;function b2(){return kp||(kp=1,function(r,n){(function(o){o(ss.exports)})(function(o){o.defineMode("javascript",function(c,f){var v=c.indentUnit,y=f.statementIndent,E=f.jsonld,k=f.json||E,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"),oe=w("keyword c"),Ve=w("keyword d"),pt=w("operator"),ge={type:"atom",style:"atom"};return{if:w("if"),while:P,with:P,else:j,do:j,try:j,finally:j,return:Ve,break:Ve,continue:Ve,new:w("new"),delete:oe,void:oe,throw:oe,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:pt,typeof:pt,instanceof:pt,true:ge,false:ge,null:ge,undefined:ge,NaN:ge,Infinity:ge,this:w("this"),class:w("class"),super:w("atom"),yield:oe,export:w("export"),import:w("import"),extends:oe,await:oe}}(),X=/[+\-*&%=<>!?|~^@]/,ue=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function Ce(w){for(var P=!1,j,oe=!1;(j=w.next())!=null;){if(!P){if(j=="/"&&!oe)return;j=="["?oe=!0:oe&&j=="]"&&(oe=!1)}P=!P&&j=="\\"}}var me,Ee;function Ae(w,P,j){return me=w,Ee=j,P}function he(w,P){var j=w.next();if(j=='"'||j=="'")return P.tokenize=de(j),P.tokenize(w,P);if(j=="."&&w.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return Ae("number","number");if(j=="."&&w.match(".."))return Ae("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(j))return Ae(j);if(j=="="&&w.eat(">"))return Ae("=>","operator");if(j=="0"&&w.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return Ae("number","number");if(/\d/.test(j))return w.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),Ae("number","number");if(j=="/")return w.eat("*")?(P.tokenize=Te,Te(w,P)):w.eat("/")?(w.skipToEnd(),Ae("comment","comment")):ne(w,P,1)?(Ce(w),w.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),Ae("regexp","string-2")):(w.eat("="),Ae("operator","operator",w.current()));if(j=="`")return P.tokenize=$e,$e(w,P);if(j=="#"&&w.peek()=="!")return w.skipToEnd(),Ae("meta","meta");if(j=="#"&&w.eatWhile(U))return Ae("variable","property");if(j=="<"&&w.match("!--")||j=="-"&&w.match("->")&&!/\S/.test(w.string.slice(0,w.start)))return w.skipToEnd(),Ae("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(".")?Ae("."):Ae("operator","operator",w.current());if(U.test(j)){w.eatWhile(U);var oe=w.current();if(P.lastType!="."){if(q.propertyIsEnumerable(oe)){var Ve=q[oe];return Ae(Ve.type,Ve.style,oe)}if(oe=="async"&&w.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return Ae("async","keyword",oe)}return Ae("variable","variable",oe)}}function de(w){return function(P,j){var oe=!1,Ve;if(E&&P.peek()=="@"&&P.match(ue))return j.tokenize=he,Ae("jsonld-keyword","meta");for(;(Ve=P.next())!=null&&!(Ve==w&&!oe);)oe=!oe&&Ve=="\\";return oe||(j.tokenize=he),Ae("string","string")}}function Te(w,P){for(var j=!1,oe;oe=w.next();){if(oe=="/"&&j){P.tokenize=he;break}j=oe=="*"}return Ae("comment","comment")}function $e(w,P){for(var j=!1,oe;(oe=w.next())!=null;){if(!j&&(oe=="`"||oe=="$"&&w.eat("{"))){P.tokenize=he;break}j=!j&&oe=="\\"}return Ae("quasi","string-2",w.current())}var We="([{}])";function Qe(w,P){P.fatArrowAt&&(P.fatArrowAt=null);var j=w.string.indexOf("=>",w.start);if(!(j<0)){if(I){var oe=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(w.string.slice(w.start,j));oe&&(j=oe.index)}for(var Ve=0,pt=!1,ge=j-1;ge>=0;--ge){var Or=w.string.charAt(ge),rn=We.indexOf(Or);if(rn>=0&&rn<3){if(!Ve){++ge;break}if(--Ve==0){Or=="("&&(pt=!0);break}}else if(rn>=3&&rn<6)++Ve;else if(U.test(Or))pt=!0;else if(/["'\/`]/.test(Or))for(;;--ge){if(ge==0)return;var _i=w.string.charAt(ge-1);if(_i==Or&&w.string.charAt(ge-2)!="\\"){ge--;break}}else if(pt&&!Ve){++ge;break}}pt&&!Ve&&(P.fatArrowAt=ge)}}var tt={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function pe(w,P,j,oe,Ve,pt){this.indented=w,this.column=P,this.type=j,this.prev=Ve,this.info=pt,oe!=null&&(this.align=oe)}function ye(w,P){if(!O)return!1;for(var j=w.localVars;j;j=j.next)if(j.name==P)return!0;for(var oe=w.context;oe;oe=oe.prev)for(var j=oe.vars;j;j=j.next)if(j.name==P)return!0}function rt(w,P,j,oe,Ve){var pt=w.cc;for(B.state=w,B.stream=Ve,B.marked=null,B.cc=pt,B.style=P,w.lexical.hasOwnProperty("align")||(w.lexical.align=!0);;){var ge=pt.length?pt.pop():k?Fe:it;if(ge(j,oe)){for(;pt.length&&pt[pt.length-1].lex;)pt.pop()();return B.marked?B.marked:j=="variable"&&ye(w,oe)?"variable-2":P}}}var B={state:null,column:null,marked:null,cc:null};function D(){for(var w=arguments.length-1;w>=0;w--)B.cc.push(arguments[w])}function T(){return D.apply(null,arguments),!0}function re(w,P){for(var j=P;j;j=j.next)if(j.name==w)return!0;return!1}function ve(w){var P=B.state;if(B.marked="def",!!O){if(P.context){if(P.lexical.info=="var"&&P.context&&P.context.block){var j=nt(w,P.context);if(j!=null){P.context=j;return}}else if(!re(w,P.localVars)){P.localVars=new Rt(w,P.localVars);return}}f.globalVars&&!re(w,P.globalVars)&&(P.globalVars=new Rt(w,P.globalVars))}}function nt(w,P){if(P)if(P.block){var j=nt(w,P.prev);return j?j==P.prev?P:new or(j,P.vars,!0):null}else return re(w,P.vars)?P:new or(P.prev,new Rt(w,P.vars),!1);else return null}function Pt(w){return w=="public"||w=="private"||w=="protected"||w=="abstract"||w=="readonly"}function or(w,P,j){this.prev=w,this.vars=P,this.block=j}function Rt(w,P){this.name=w,this.next=P}var fn=new Rt("this",new Rt("arguments",null));function Qt(){B.state.context=new or(B.state.context,B.state.localVars,!1),B.state.localVars=fn}function Ht(){B.state.context=new or(B.state.context,B.state.localVars,!0),B.state.localVars=null}function at(){B.state.localVars=B.state.context.vars,B.state.context=B.state.context.prev}at.lex=!0;function _e(w,P){var j=function(){var oe=B.state,Ve=oe.indented;if(oe.lexical.type=="stat")Ve=oe.lexical.indented;else for(var pt=oe.lexical;pt&&pt.type==")"&&pt.align;pt=pt.prev)Ve=pt.indented;oe.lexical=new pe(Ve,B.stream.column(),w,null,oe.lexical,P)};return j.lex=!0,j}function He(){var w=B.state;w.lexical.prev&&(w.lexical.type==")"&&(w.indented=w.lexical.indented),w.lexical=w.lexical.prev)}He.lex=!0;function Be(w){function P(j){return j==w?T():w==";"||j=="}"||j==")"||j=="]"?D():T(P)}return P}function it(w,P){return w=="var"?T(_e("vardef",P),ta,Be(";"),He):w=="keyword a"?T(_e("form"),Gr,it,He):w=="keyword b"?T(_e("form"),it,He):w=="keyword d"?B.stream.match(/^\s*$/,!1)?T():T(_e("stat"),je,Be(";"),He):w=="debugger"?T(Be(";")):w=="{"?T(_e("}"),Ht,Rr,He,at):w==";"?T():w=="if"?(B.state.lexical.info=="else"&&B.state.cc[B.state.cc.length-1]==He&&B.state.cc.pop()(),T(_e("form"),Gr,it,He,Qa)):w=="function"?T(xn):w=="for"?T(_e("form"),Ht,Ja,it,at,He):w=="class"||I&&P=="interface"?(B.marked="keyword",T(_e("form",w=="class"?w:P),ds,He)):w=="variable"?I&&P=="declare"?(B.marked="keyword",T(it)):I&&(P=="module"||P=="enum"||P=="type")&&B.stream.match(/^\s*\w/,!1)?(B.marked="keyword",P=="enum"?T(Bn):P=="type"?T(el,Be("operator"),Ze,Be(";")):T(_e("form"),jr,Be("{"),_e("}"),Rr,He,He)):I&&P=="namespace"?(B.marked="keyword",T(_e("form"),Fe,it,He)):I&&P=="abstract"?(B.marked="keyword",T(it)):T(_e("stat"),Ke):w=="switch"?T(_e("form"),Gr,Be("{"),_e("}","switch"),Ht,Rr,He,He,at):w=="case"?T(Fe,Be(":")):w=="default"?T(Be(":")):w=="catch"?T(_e("form"),Qt,ot,it,He,at):w=="export"?T(_e("stat"),na,He):w=="import"?T(_e("stat"),Ft,He):w=="async"?T(it):P=="@"?T(Fe,it):D(_e("stat"),Fe,Be(";"),He)}function ot(w){if(w=="(")return T(xi,Be(")"))}function Fe(w,P){return sr(w,P,!1)}function Zt(w,P){return sr(w,P,!0)}function Gr(w){return w!="("?D():T(_e(")"),je,Be(")"),He)}function sr(w,P,j){if(B.state.fatArrowAt==B.stream.start){var oe=j?Je:ur;if(w=="(")return T(Qt,_e(")"),Ut(xi,")"),He,Be("=>"),oe,at);if(w=="variable")return D(Qt,jr,Be("=>"),oe,at)}var Ve=j?kt:mt;return tt.hasOwnProperty(w)?T(Ve):w=="function"?T(xn,Ve):w=="class"||I&&P=="interface"?(B.marked="keyword",T(_e("form"),To,He)):w=="keyword c"||w=="async"?T(j?Zt:Fe):w=="("?T(_e(")"),je,Be(")"),He,Ve):w=="operator"||w=="spread"?T(j?Zt:Fe):w=="["?T(_e("]"),wt,He,Ve):w=="{"?wi(kr,"}",null,Ve):w=="quasi"?D($r,Ve):w=="new"?T(F(j)):T()}function je(w){return w.match(/[;\}\)\],]/)?D():D(Fe)}function mt(w,P){return w==","?T(je):kt(w,P,!1)}function kt(w,P,j){var oe=j==!1?mt:kt,Ve=j==!1?Fe:Zt;if(w=="=>")return T(Qt,j?Je:ur,at);if(w=="operator")return/\+\+|--/.test(P)||I&&P=="!"?T(oe):I&&P=="<"&&B.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?T(_e(">"),Ut(Ze,">"),He,oe):P=="?"?T(Fe,Be(":"),Ve):T(Ve);if(w=="quasi")return D($r,oe);if(w!=";"){if(w=="(")return wi(Zt,")","call",oe);if(w==".")return T(cr,oe);if(w=="[")return T(_e("]"),je,Be("]"),He,oe);if(I&&P=="as")return B.marked="keyword",T(Ze,oe);if(w=="regexp")return B.state.lastType=B.marked="operator",B.stream.backUp(B.stream.pos-B.stream.start-1),T(Ve)}}function $r(w,P){return w!="quasi"?D():P.slice(P.length-2)!="${"?T($r):T(je,en)}function en(w){if(w=="}")return B.marked="string-2",B.state.tokenize=$e,T($r)}function ur(w){return Qe(B.stream,B.state),D(w=="{"?it:Fe)}function Je(w){return Qe(B.stream,B.state),D(w=="{"?it:Zt)}function F(w){return function(P){return P=="."?T(w?V:ie):P=="variable"&&I?T(ko,w?kt:mt):D(w?Zt:Fe)}}function ie(w,P){if(P=="target")return B.marked="keyword",T(mt)}function V(w,P){if(P=="target")return B.marked="keyword",T(kt)}function Ke(w){return w==":"?T(He,it):D(mt,Be(";"),He)}function cr(w){if(w=="variable")return B.marked="property",T()}function kr(w,P){if(w=="async")return B.marked="property",T(kr);if(w=="variable"||B.style=="keyword"){if(B.marked="property",P=="get"||P=="set")return T($n);var j;return I&&B.state.fatArrowAt==B.stream.start&&(j=B.stream.match(/^\s*:\s*/,!1))&&(B.state.fatArrowAt=B.stream.pos+j[0].length),T(qr)}else{if(w=="number"||w=="string")return B.marked=E?"property":B.style+" property",T(qr);if(w=="jsonld-keyword")return T(qr);if(I&&Pt(P))return B.marked="keyword",T(kr);if(w=="[")return T(Fe,Rn,Be("]"),qr);if(w=="spread")return T(Zt,qr);if(P=="*")return B.marked="keyword",T(kr);if(w==":")return D(qr)}}function $n(w){return w!="variable"?D(qr):(B.marked="property",T(xn))}function qr(w){if(w==":")return T(Zt);if(w=="(")return D(xn)}function Ut(w,P,j){function oe(Ve,pt){if(j?j.indexOf(Ve)>-1:Ve==","){var ge=B.state.lexical;return ge.info=="call"&&(ge.pos=(ge.pos||0)+1),T(function(Or,rn){return Or==P||rn==P?D():D(w)},oe)}return Ve==P||pt==P?T():j&&j.indexOf(";")>-1?D(w):T(Be(P))}return function(Ve,pt){return Ve==P||pt==P?T():D(w,oe)}}function wi(w,P,j){for(var oe=3;oe<arguments.length;oe++)B.cc.push(arguments[oe]);return T(_e(P,j),Ut(w,P),He)}function Rr(w){return w=="}"?T():D(it,Rr)}function Rn(w,P){if(I){if(w==":")return T(Ze);if(P=="?")return T(Rn)}}function Ne(w,P){if(I&&(w==":"||P=="in"))return T(Ze)}function Wi(w){if(I&&w==":")return B.stream.match(/^\s*\w+\s+is\b/,!1)?T(Fe,Mr,Ze):T(Ze)}function Mr(w,P){if(P=="is")return B.marked="keyword",T()}function Ze(w,P){if(P=="keyof"||P=="typeof"||P=="infer"||P=="readonly")return B.marked="keyword",T(P=="typeof"?Zt:Ze);if(w=="variable"||P=="void")return B.marked="type",T(dn);if(P=="|"||P=="&")return T(Ze);if(w=="string"||w=="number"||w=="atom")return T(dn);if(w=="[")return T(_e("]"),Ut(Ze,"]",","),He,dn);if(w=="{")return T(_e("}"),cs,He,dn);if(w=="(")return T(Ut(fs,")"),rr,dn);if(w=="<")return T(Ut(Ze,">"),Ze);if(w=="quasi")return D(Hn,dn)}function rr(w){if(w=="=>")return T(Ze)}function cs(w){return w.match(/[\}\)\]]/)?T():w==","||w==";"?T(cs):D(br,cs)}function br(w,P){if(w=="variable"||B.style=="keyword")return B.marked="property",T(br);if(P=="?"||w=="number"||w=="string")return T(br);if(w==":")return T(Ze);if(w=="[")return T(Be("variable"),Ne,Be("]"),br);if(w=="(")return D(hn,br);if(!w.match(/[;\}\)\],]/))return T()}function Hn(w,P){return w!="quasi"?D():P.slice(P.length-2)!="${"?T(Hn):T(Ze,Cr)}function Cr(w){if(w=="}")return B.marked="string-2",B.state.tokenize=$e,T(Hn)}function fs(w,P){return w=="variable"&&B.stream.match(/^\s*[?:]/,!1)||P=="?"?T(fs):w==":"?T(Ze):w=="spread"?T(fs):D(Ze)}function dn(w,P){if(P=="<")return T(_e(">"),Ut(Ze,">"),He,dn);if(P=="|"||w=="."||P=="&")return T(Ze);if(w=="[")return T(Ze,Be("]"),dn);if(P=="extends"||P=="implements")return B.marked="keyword",T(Ze);if(P=="?")return T(Ze,Be(":"),Ze)}function ko(w,P){if(P=="<")return T(_e(">"),Ut(Ze,">"),He,dn)}function Bi(){return D(Ze,ea)}function ea(w,P){if(P=="=")return T(Ze)}function ta(w,P){return P=="enum"?(B.marked="keyword",T(Bn)):D(jr,Rn,ri,Oo)}function jr(w,P){if(I&&Pt(P))return B.marked="keyword",T(jr);if(w=="variable")return ve(P),T();if(w=="spread")return T(jr);if(w=="[")return wi(Mo,"]");if(w=="{")return wi(Xa,"}")}function Xa(w,P){return w=="variable"&&!B.stream.match(/^\s*:/,!1)?(ve(P),T(ri)):(w=="variable"&&(B.marked="property"),w=="spread"?T(jr):w=="}"?D():w=="["?T(Fe,Be("]"),Be(":"),Xa):T(Be(":"),jr,ri))}function Mo(){return D(jr,ri)}function ri(w,P){if(P=="=")return T(Zt)}function Oo(w){if(w==",")return T(ta)}function Qa(w,P){if(w=="keyword b"&&P=="else")return T(_e("form","else"),it,He)}function Ja(w,P){if(P=="await")return T(Ja);if(w=="(")return T(_e(")"),ra,He)}function ra(w){return w=="var"?T(ta,Ui):w=="variable"?T(Ui):D(Ui)}function Ui(w,P){return w==")"?T():w==";"?T(Ui):P=="in"||P=="of"?(B.marked="keyword",T(Fe,Ui)):D(Fe,Ui)}function xn(w,P){if(P=="*")return B.marked="keyword",T(xn);if(w=="variable")return ve(P),T(xn);if(w=="(")return T(Qt,_e(")"),Ut(xi,")"),He,Wi,it,at);if(I&&P=="<")return T(_e(">"),Ut(Bi,">"),He,xn)}function hn(w,P){if(P=="*")return B.marked="keyword",T(hn);if(w=="variable")return ve(P),T(hn);if(w=="(")return T(Qt,_e(")"),Ut(xi,")"),He,Wi,at);if(I&&P=="<")return T(_e(">"),Ut(Bi,">"),He,hn)}function el(w,P){if(w=="keyword"||w=="variable")return B.marked="type",T(el);if(P=="<")return T(_e(">"),Ut(Bi,">"),He)}function xi(w,P){return P=="@"&&T(Fe,xi),w=="spread"?T(xi):I&&Pt(P)?(B.marked="keyword",T(xi)):I&&w=="this"?T(Rn,ri):D(jr,Rn,ri)}function To(w,P){return w=="variable"?ds(w,P):Fn(w,P)}function ds(w,P){if(w=="variable")return ve(P),T(Fn)}function Fn(w,P){if(P=="<")return T(_e(">"),Ut(Bi,">"),He,Fn);if(P=="extends"||P=="implements"||I&&w==",")return P=="implements"&&(B.marked="keyword"),T(I?Ze:Fe,Fn);if(w=="{")return T(_e("}"),Wn,He)}function Wn(w,P){if(w=="async"||w=="variable"&&(P=="static"||P=="get"||P=="set"||I&&Pt(P))&&B.stream.match(/^\s+[\w$\xa1-\uffff]/,!1))return B.marked="keyword",T(Wn);if(w=="variable"||B.style=="keyword")return B.marked="property",T(pn,Wn);if(w=="number"||w=="string")return T(pn,Wn);if(w=="[")return T(Fe,Rn,Be("]"),pn,Wn);if(P=="*")return B.marked="keyword",T(Wn);if(I&&w=="(")return D(hn,Wn);if(w==";"||w==",")return T(Wn);if(w=="}")return T();if(P=="@")return T(Fe,Wn)}function pn(w,P){if(P=="!"||P=="?")return T(pn);if(w==":")return T(Ze,ri);if(P=="=")return T(Zt);var j=B.state.lexical.prev,oe=j&&j.info=="interface";return D(oe?hn:xn)}function na(w,P){return P=="*"?(B.marked="keyword",T(tn,Be(";"))):P=="default"?(B.marked="keyword",T(Fe,Be(";"))):w=="{"?T(Ut(ia,"}"),tn,Be(";")):D(it)}function ia(w,P){if(P=="as")return B.marked="keyword",T(Be("variable"));if(w=="variable")return D(Zt,ia)}function Ft(w){return w=="string"?T():w=="("?D(Fe):w=="."?D(mt):D(Me,vn,tn)}function Me(w,P){return w=="{"?wi(Me,"}"):(w=="variable"&&ve(P),P=="*"&&(B.marked="keyword"),T(oa))}function vn(w){if(w==",")return T(Me,vn)}function oa(w,P){if(P=="as")return B.marked="keyword",T(Me)}function tn(w,P){if(P=="from")return B.marked="keyword",T(Fe)}function wt(w){return w=="]"?T():D(Ut(Zt,"]"))}function Bn(){return D(_e("form"),jr,Be("{"),_e("}"),Ut(Yi,"}"),He,He)}function Yi(){return D(jr,ri)}function hs(w,P){return w.lastType=="operator"||w.lastType==","||X.test(P.charAt(0))||/[,.]/.test(P.charAt(0))}function ne(w,P,j){return P.tokenize==he&&/^(?: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:he,lastType:"sof",cc:[],lexical:new pe((w||0)-v,0,"block",!1),localVars:f.localVars,context:f.localVars&&new or(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(),Qe(w,P)),P.tokenize!=Te&&w.eatSpace())return null;var j=P.tokenize(w,P);return me=="comment"?j:(P.lastType=me=="operator"&&(Ee=="++"||Ee=="--")?"incdec":me,rt(P,j,me,Ee,w))},indent:function(w,P){if(w.tokenize==Te||w.tokenize==$e)return o.Pass;if(w.tokenize!=he)return 0;var j=P&&P.charAt(0),oe=w.lexical,Ve;if(!/^\s*else\b/.test(P))for(var pt=w.cc.length-1;pt>=0;--pt){var ge=w.cc[pt];if(ge==He)oe=oe.prev;else if(ge!=Qa&&ge!=at)break}for(;(oe.type=="stat"||oe.type=="form")&&(j=="}"||(Ve=w.cc[w.cc.length-1])&&(Ve==mt||Ve==kt)&&!/^[,\.=+\-*:?[\(]/.test(P));)oe=oe.prev;y&&oe.type==")"&&oe.prev.type=="stat"&&(oe=oe.prev);var Or=oe.type,rn=j==Or;return Or=="vardef"?oe.indented+(w.lastType=="operator"||w.lastType==","?oe.info.length+1:0):Or=="form"&&j=="{"?oe.indented:Or=="form"?oe.indented+v:Or=="stat"?oe.indented+(hs(w,P)?y||v:0):oe.info=="switch"&&!rn&&f.doubleIndentSwitch!=!1?oe.indented+(/^(?:case|default)\b/.test(P)?v:2*v):oe.align?oe.column+(rn?0:1):oe.indented+(rn?0:v)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:k?null:"/*",blockCommentEnd:k?null:"*/",blockCommentContinue:k?null:" * ",lineComment:k?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:k?"json":"javascript",jsonldMode:E,jsonMode:k,expressionAllowed:ne,skipExpression:function(w){rt(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})})}()),Sp.exports}b2();var Mp={exports:{}},Op;function ag(){return Op||(Op=1,function(r,n){(function(o){o(ss.exports)})(function(o){o.defineMode("css",function(pe,ye){var rt=ye.inline;ye.propertyKeywords||(ye=o.resolveMode("text/css"));var B=pe.indentUnit,D=ye.tokenHooks,T=ye.documentTypes||{},re=ye.mediaTypes||{},ve=ye.mediaFeatures||{},nt=ye.mediaValueKeywords||{},Pt=ye.propertyKeywords||{},or=ye.nonStandardPropertyKeywords||{},Rt=ye.fontProperties||{},fn=ye.counterDescriptors||{},Qt=ye.colorKeywords||{},Ht=ye.valueKeywords||{},at=ye.allowNested,_e=ye.lineComment,He=ye.supportsAtComponent===!0,Be=pe.highlightNonStandardPropertyKeywords!==!1,it,ot;function Fe(F,ie){return it=ie,F}function Zt(F,ie){var V=F.next();if(D[V]){var Ke=D[V](F,ie);if(Ke!==!1)return Ke}if(V=="@")return F.eatWhile(/[\w\\\-]/),Fe("def",F.current());if(V=="="||(V=="~"||V=="|")&&F.eat("="))return Fe(null,"compare");if(V=='"'||V=="'")return ie.tokenize=Gr(V),ie.tokenize(F,ie);if(V=="#")return F.eatWhile(/[\w\\\-]/),Fe("atom","hash");if(V=="!")return F.match(/^\s*\w*/),Fe("keyword","important");if(/\d/.test(V)||V=="."&&F.eat(/\d/))return F.eatWhile(/[\w.%]/),Fe("number","unit");if(V==="-"){if(/[\d.]/.test(F.peek()))return F.eatWhile(/[\w.%]/),Fe("number","unit");if(F.match(/^-[\w\\\-]*/))return F.eatWhile(/[\w\\\-]/),F.match(/^\s*:/,!1)?Fe("variable-2","variable-definition"):Fe("variable-2","variable");if(F.match(/^\w+-/))return Fe("meta","meta")}else return/[,+>*\/]/.test(V)?Fe(null,"select-op"):V=="."&&F.match(/^-?[_a-z][_a-z0-9-]*/i)?Fe("qualifier","qualifier"):/[:;{}\[\]\(\)]/.test(V)?Fe(null,V):F.match(/^[\w-.]+(?=\()/)?(/^(url(-prefix)?|domain|regexp)$/i.test(F.current())&&(ie.tokenize=sr),Fe("variable callee","variable")):/[\w\\\-]/.test(V)?(F.eatWhile(/[\w\\\-]/),Fe("property","word")):Fe(null,null)}function Gr(F){return function(ie,V){for(var Ke=!1,cr;(cr=ie.next())!=null;){if(cr==F&&!Ke){F==")"&&ie.backUp(1);break}Ke=!Ke&&cr=="\\"}return(cr==F||!Ke&&F!=")")&&(V.tokenize=null),Fe("string","string")}}function sr(F,ie){return F.next(),F.match(/^\s*[\"\')]/,!1)?ie.tokenize=null:ie.tokenize=Gr(")"),Fe(null,"(")}function je(F,ie,V){this.type=F,this.indent=ie,this.prev=V}function mt(F,ie,V,Ke){return F.context=new je(V,ie.indentation()+(Ke===!1?0:B),F.context),V}function kt(F){return F.context.prev&&(F.context=F.context.prev),F.context.type}function $r(F,ie,V){return Je[V.context.type](F,ie,V)}function en(F,ie,V,Ke){for(var cr=Ke||1;cr>0;cr--)V.context=V.context.prev;return $r(F,ie,V)}function ur(F){var ie=F.current().toLowerCase();Ht.hasOwnProperty(ie)?ot="atom":Qt.hasOwnProperty(ie)?ot="keyword":ot="variable"}var Je={};return Je.top=function(F,ie,V){if(F=="{")return mt(V,ie,"block");if(F=="}"&&V.context.prev)return kt(V);if(He&&/@component/i.test(F))return mt(V,ie,"atComponentBlock");if(/^@(-moz-)?document$/i.test(F))return mt(V,ie,"documentTypes");if(/^@(media|supports|(-moz-)?document|import)$/i.test(F))return mt(V,ie,"atBlock");if(/^@(font-face|counter-style)/i.test(F))return V.stateArg=F,"restricted_atBlock_before";if(/^@(-(moz|ms|o|webkit)-)?keyframes$/i.test(F))return"keyframes";if(F&&F.charAt(0)=="@")return mt(V,ie,"at");if(F=="hash")ot="builtin";else if(F=="word")ot="tag";else{if(F=="variable-definition")return"maybeprop";if(F=="interpolation")return mt(V,ie,"interpolation");if(F==":")return"pseudo";if(at&&F=="(")return mt(V,ie,"parens")}return V.context.type},Je.block=function(F,ie,V){if(F=="word"){var Ke=ie.current().toLowerCase();return Pt.hasOwnProperty(Ke)?(ot="property","maybeprop"):or.hasOwnProperty(Ke)?(ot=Be?"string-2":"property","maybeprop"):at?(ot=ie.match(/^\s*:(?:\s|$)/,!1)?"property":"tag","block"):(ot+=" error","maybeprop")}else return F=="meta"?"block":!at&&(F=="hash"||F=="qualifier")?(ot="error","block"):Je.top(F,ie,V)},Je.maybeprop=function(F,ie,V){return F==":"?mt(V,ie,"prop"):$r(F,ie,V)},Je.prop=function(F,ie,V){if(F==";")return kt(V);if(F=="{"&&at)return mt(V,ie,"propBlock");if(F=="}"||F=="{")return en(F,ie,V);if(F=="(")return mt(V,ie,"parens");if(F=="hash"&&!/^#([0-9a-fA-f]{3,4}|[0-9a-fA-f]{6}|[0-9a-fA-f]{8})$/.test(ie.current()))ot+=" error";else if(F=="word")ur(ie);else if(F=="interpolation")return mt(V,ie,"interpolation");return"prop"},Je.propBlock=function(F,ie,V){return F=="}"?kt(V):F=="word"?(ot="property","maybeprop"):V.context.type},Je.parens=function(F,ie,V){return F=="{"||F=="}"?en(F,ie,V):F==")"?kt(V):F=="("?mt(V,ie,"parens"):F=="interpolation"?mt(V,ie,"interpolation"):(F=="word"&&ur(ie),"parens")},Je.pseudo=function(F,ie,V){return F=="meta"?"pseudo":F=="word"?(ot="variable-3",V.context.type):$r(F,ie,V)},Je.documentTypes=function(F,ie,V){return F=="word"&&T.hasOwnProperty(ie.current())?(ot="tag",V.context.type):Je.atBlock(F,ie,V)},Je.atBlock=function(F,ie,V){if(F=="(")return mt(V,ie,"atBlock_parens");if(F=="}"||F==";")return en(F,ie,V);if(F=="{")return kt(V)&&mt(V,ie,at?"block":"top");if(F=="interpolation")return mt(V,ie,"interpolation");if(F=="word"){var Ke=ie.current().toLowerCase();Ke=="only"||Ke=="not"||Ke=="and"||Ke=="or"?ot="keyword":re.hasOwnProperty(Ke)?ot="attribute":ve.hasOwnProperty(Ke)?ot="property":nt.hasOwnProperty(Ke)?ot="keyword":Pt.hasOwnProperty(Ke)?ot="property":or.hasOwnProperty(Ke)?ot=Be?"string-2":"property":Ht.hasOwnProperty(Ke)?ot="atom":Qt.hasOwnProperty(Ke)?ot="keyword":ot="error"}return V.context.type},Je.atComponentBlock=function(F,ie,V){return F=="}"?en(F,ie,V):F=="{"?kt(V)&&mt(V,ie,at?"block":"top",!1):(F=="word"&&(ot="error"),V.context.type)},Je.atBlock_parens=function(F,ie,V){return F==")"?kt(V):F=="{"||F=="}"?en(F,ie,V,2):Je.atBlock(F,ie,V)},Je.restricted_atBlock_before=function(F,ie,V){return F=="{"?mt(V,ie,"restricted_atBlock"):F=="word"&&V.stateArg=="@counter-style"?(ot="variable","restricted_atBlock_before"):$r(F,ie,V)},Je.restricted_atBlock=function(F,ie,V){return F=="}"?(V.stateArg=null,kt(V)):F=="word"?(V.stateArg=="@font-face"&&!Rt.hasOwnProperty(ie.current().toLowerCase())||V.stateArg=="@counter-style"&&!fn.hasOwnProperty(ie.current().toLowerCase())?ot="error":ot="property","maybeprop"):"restricted_atBlock"},Je.keyframes=function(F,ie,V){return F=="word"?(ot="variable","keyframes"):F=="{"?mt(V,ie,"top"):$r(F,ie,V)},Je.at=function(F,ie,V){return F==";"?kt(V):F=="{"||F=="}"?en(F,ie,V):(F=="word"?ot="tag":F=="hash"&&(ot="builtin"),"at")},Je.interpolation=function(F,ie,V){return F=="}"?kt(V):F=="{"||F==";"?en(F,ie,V):(F=="word"?ot="variable":F!="variable"&&F!="("&&F!=")"&&(ot="error"),"interpolation")},{startState:function(F){return{tokenize:null,state:rt?"block":"top",stateArg:null,context:new je(rt?"block":"top",F||0,null)}},token:function(F,ie){if(!ie.tokenize&&F.eatSpace())return null;var V=(ie.tokenize||Zt)(F,ie);return V&&typeof V=="object"&&(it=V[1],V=V[0]),ot=V,it!="comment"&&(ie.state=Je[ie.state](it,F,ie)),ot},indent:function(F,ie){var V=F.context,Ke=ie&&ie.charAt(0),cr=V.indent;return V.type=="prop"&&(Ke=="}"||Ke==")")&&(V=V.prev),V.prev&&(Ke=="}"&&(V.type=="block"||V.type=="top"||V.type=="interpolation"||V.type=="restricted_atBlock")?(V=V.prev,cr=V.indent):(Ke==")"&&(V.type=="parens"||V.type=="atBlock_parens")||Ke=="{"&&(V.type=="at"||V.type=="atBlock"))&&(cr=Math.max(0,V.indent-B))),cr},electricChars:"}",blockCommentStart:"/*",blockCommentEnd:"*/",blockCommentContinue:" * ",lineComment:_e,fold:"brace"}});function c(pe){for(var ye={},rt=0;rt<pe.length;++rt)ye[pe[rt].toLowerCase()]=!0;return ye}var f=["domain","regexp","url","url-prefix"],v=c(f),y=["all","aural","braille","handheld","print","projection","screen","tty","tv","embossed"],E=c(y),k=["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(k),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),ue=["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"],Ce=c(ue),me=["font-display","font-family","src","unicode-range","font-variant","font-feature-settings","font-stretch","font-weight","font-style"],Ee=c(me),Ae=["additive-symbols","fallback","negative","pad","prefix","range","speak-as","suffix","symbols","system"],he=c(Ae),de=["aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkgrey","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkslategrey","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dimgrey","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray","grey","green","greenyellow","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightgrey","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightslategrey","lightsteelblue","lightyellow","lime","limegreen","linen","magenta","maroon","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","oldlace","olive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","purple","rebeccapurple","red","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","slategrey","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen"],Te=c(de),$e=["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"],We=c($e),Qe=f.concat(y).concat(k).concat(I).concat(q).concat(ue).concat(de).concat($e);o.registerHelper("hintWords","css",Qe);function tt(pe,ye){for(var rt=!1,B;(B=pe.next())!=null;){if(rt&&B=="/"){ye.tokenize=null;break}rt=B=="*"}return["comment","comment"]}o.defineMIME("text/css",{documentTypes:v,mediaTypes:E,mediaFeatures:O,mediaValueKeywords:U,propertyKeywords:X,nonStandardPropertyKeywords:Ce,fontProperties:Ee,counterDescriptors:he,colorKeywords:Te,valueKeywords:We,tokenHooks:{"/":function(pe,ye){return pe.eat("*")?(ye.tokenize=tt,tt(pe,ye)):!1}},name:"css"}),o.defineMIME("text/x-scss",{mediaTypes:E,mediaFeatures:O,mediaValueKeywords:U,propertyKeywords:X,nonStandardPropertyKeywords:Ce,colorKeywords:Te,valueKeywords:We,fontProperties:Ee,allowNested:!0,lineComment:"//",tokenHooks:{"/":function(pe,ye){return pe.eat("/")?(pe.skipToEnd(),["comment","comment"]):pe.eat("*")?(ye.tokenize=tt,tt(pe,ye)):["operator","operator"]},":":function(pe){return pe.match(/^\s*\{/,!1)?[null,null]:!1},$:function(pe){return pe.match(/^[\w-]+/),pe.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2","variable"]},"#":function(pe){return pe.eat("{")?[null,"interpolation"]:!1}},name:"css",helperType:"scss"}),o.defineMIME("text/x-less",{mediaTypes:E,mediaFeatures:O,mediaValueKeywords:U,propertyKeywords:X,nonStandardPropertyKeywords:Ce,colorKeywords:Te,valueKeywords:We,fontProperties:Ee,allowNested:!0,lineComment:"//",tokenHooks:{"/":function(pe,ye){return pe.eat("/")?(pe.skipToEnd(),["comment","comment"]):pe.eat("*")?(ye.tokenize=tt,tt(pe,ye)):["operator","operator"]},"@":function(pe){return pe.eat("{")?[null,"interpolation"]:pe.match(/^(charset|document|font-face|import|(-(moz|ms|o|webkit)-)?keyframes|media|namespace|page|supports)\b/i,!1)?!1:(pe.eatWhile(/[\w\\\-]/),pe.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2","variable"])},"&":function(){return["atom","atom"]}},name:"css",helperType:"less"}),o.defineMIME("text/x-gss",{documentTypes:v,mediaTypes:E,mediaFeatures:O,propertyKeywords:X,nonStandardPropertyKeywords:Ce,fontProperties:Ee,counterDescriptors:he,colorKeywords:Te,valueKeywords:We,supportsAtComponent:!0,tokenHooks:{"/":function(pe,ye){return pe.eat("*")?(ye.tokenize=tt,tt(pe,ye)):!1}},name:"css",helperType:"gss"})})}()),Mp.exports}(function(r,n){(function(o){o(ss.exports,sg.exports,b2(),ag())})(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 ue=U.current(),Ce=ue.search(q);return Ce>-1?U.backUp(ue.length-Ce):ue.match(/<\/?$/)&&(U.backUp(ue.length),U.match(q,!1)||U.match(ue)),X}var v={};function y(U){var q=v[U];return q||(v[U]=new RegExp("\\s+"+U+`\\s*=\\s*('|")?([^'"]+)('|")?\\s*`))}function E(U,q){var X=U.match(y(q));return X?/^\s*(.*?)\s*$/.exec(X[2])[1]:""}function k(U,q){return new RegExp((q?"^":"")+"</s*"+U+"s*>","i")}function O(U,q){for(var X in U)for(var ue=q[X]||(q[X]=[]),Ce=U[X],me=Ce.length-1;me>=0;me--)ue.unshift(Ce[me])}function I(U,q){for(var X=0;X<U.length;X++){var ue=U[X];if(!ue[0]||ue[1].test(E(q,ue[0])))return ue[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}),ue={},Ce=q&&q.tags,me=q&&q.scriptTypes;if(O(c,ue),Ce&&O(Ce,ue),me)for(var Ee=me.length-1;Ee>=0;Ee--)ue.script.unshift(["type",me[Ee].matches,me[Ee].mode]);function Ae(he,de){var Te=X.token(he,de.htmlState),$e=/\btag\b/.test(Te),We;if($e&&!/[<>\s\/]/.test(he.current())&&(We=de.htmlState.tagName&&de.htmlState.tagName.toLowerCase())&&ue.hasOwnProperty(We))de.inTag=We+" ";else if(de.inTag&&$e&&/>$/.test(he.current())){var Qe=/^([\S]+) (.*)/.exec(de.inTag);de.inTag=null;var tt=he.current()==">"&&I(ue[Qe[1]],Qe[2]),pe=o.getMode(U,tt),ye=k(Qe[1],!0),rt=k(Qe[1],!1);de.token=function(B,D){return B.match(ye,!1)?(D.token=Ae,D.localState=D.localMode=null,null):f(B,rt,D.localMode.token(B,D.localState))},de.localMode=pe,de.localState=o.startState(pe,X.indent(de.htmlState,"",""))}else de.inTag&&(de.inTag+=he.current(),he.eol()&&(de.inTag+=" "));return Te}return{startState:function(){var he=o.startState(X);return{token:Ae,inTag:null,localMode:null,localState:null,htmlState:he}},copyState:function(he){var de;return he.localState&&(de=o.copyState(he.localMode,he.localState)),{token:he.token,inTag:he.inTag,localMode:he.localMode,localState:de,htmlState:o.copyState(X,he.htmlState)}},token:function(he,de){return de.token(he,de)},indent:function(he,de,Te){return!he.localMode||/^\s*<\//.test(de)?X.indent(he.htmlState,de,Te):he.localMode.indent?he.localMode.indent(he.localState,de,Te):o.Pass},innerMode:function(he){return{state:he.localState||he.htmlState,mode:he.localMode||X}}}},"xml","javascript","css"),o.defineMIME("text/html","htmlmixed")})})();(function(r,n){(function(o){o(ss.exports)})(function(o){o.defineOption("placeholder","",function(O,I,U){var q=U&&U!=o.Init;if(I&&!q)O.on("blur",y),O.on("change",E),O.on("swapDoc",E),o.on(O.getInputField(),"compositionupdate",O.state.placeholderCompose=function(){v(O)}),E(O);else if(!I&&q){O.off("blur",y),O.off("change",E),O.off("swapDoc",E),o.off(O.getInputField(),"compositionupdate",O.state.placeholderCompose),c(O);var X=O.getWrapperElement();X.className=X.className.replace(" CodeMirror-empty","")}I&&!O.hasFocus()&&y(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 v(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 y(O){k(O)&&f(O)}function E(O){var I=O.getWrapperElement(),U=k(O);I.className=I.className.replace(" CodeMirror-empty","")+(U?" CodeMirror-empty":""),U?f(O):c(O)}function k(O){return O.lineCount()===1&&O.getLine(0)===""}})})();var lg=Object.defineProperty,ug=Object.getOwnPropertyDescriptor,du=(r,n,o,c)=>{for(var f=c>1?void 0:c?ug(n,o):n,v=r.length-1,y;v>=0;v--)(y=r[v])&&(f=(c?y(n,o,f):y(f))||f);return c&&f&&lg(n,o,f),f};v0.defineMode("nunjucks",(r,n)=>v0.overlayMode(v0.getMode(r,n.backdrop||"text/html"),v0.getMode(r,"jinja2")));const cg={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 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=v0.fromTextArea(r,{mode:cg[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 J`
2196
+ `;(function(r,n){(function(o){o(Qs())})(function(o){o.overlayMode=function(c,f,v){return{startState:function(){return{base:o.startState(c),overlay:o.startState(f),basePos:0,baseCur:null,overlayPos:0,overlayCur:null,streamSeen:null}},copyState:function(y){return{base:o.copyState(c,y.base),overlay:o.copyState(f,y.overlay),basePos:y.basePos,baseCur:null,overlayPos:y.overlayPos,overlayCur:null}},token:function(y,E){return(y!=E.streamSeen||Math.min(E.basePos,E.overlayPos)<y.start)&&(E.streamSeen=y,E.basePos=E.overlayPos=y.start),y.start==E.basePos&&(E.baseCur=c.token(y,E.base),E.basePos=y.pos),y.start==E.overlayPos&&(y.pos=y.start,E.overlayCur=f.token(y,E.overlay),E.overlayPos=y.pos),y.pos=Math.min(E.basePos,E.overlayPos),E.overlayCur==null?E.baseCur:E.baseCur!=null&&E.overlay.combineTokens||v&&E.overlay.combineTokens==null?E.baseCur+" "+E.overlayCur:E.overlayCur},indent:c.indent&&function(y,E,k){return c.indent(y.base,E,k)},electricChars:c.electricChars,innerMode:function(y){return{state:y.base,mode:c}},blankLine:function(y){var E,k;return c.blankLine&&(E=c.blankLine(y.base)),f.blankLine&&(k=f.blankLine(y.overlay)),k==null?E:v&&E!=null?E+" "+k:k}}}})})();(function(r,n){(function(o){o(Qs())})(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=/^[+\-*&%=<>!?|~^]/,v=/^[:\[\(\{]/,y=["true","false"],E=/^(\d[+\-\*\/])?\d+(\.\d+)?/;c=new RegExp("(("+c.join(")|(")+"))\\b"),y=new RegExp("(("+y.join(")|(")+"))\\b");function k(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(y))return"atom";if(O.match(E))return"number"}if(I.sign){if(I.sign=!1,O.match(y))return"atom";if(O.match(E))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(v))I.sign=!0;else if(O.eat(" ")||O.sol()){if(O.match(c))return"keyword";if(O.match(y))return"atom";if(O.match(E))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:k}},token:function(O,I){return I.tokenize(O,I)},blockCommentStart:"{#",blockCommentEnd:"#}"}}),o.defineMIME("text/jinja2","jinja2")})})();var lg={exports:{}};(function(r,n){(function(o){o(Qs())})(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(v,y){var E=v.indentUnit,k={},O=y.htmlMode?c:f;for(var I in O)k[I]=O[I];for(var I in y)k[I]=y[I];var U,q;function X(D,T){function re(Pt){return T.tokenize=Pt,Pt(D,T)}var ve=D.next();if(ve=="<")return D.eat("!")?D.eat("[")?D.match("CDATA[")?re(me("atom","]]>")):null:D.match("--")?re(me("comment","-->")):D.match("DOCTYPE",!0,!0)?(D.eatWhile(/[\w\._\-]/),re(Ee(1))):null:D.eat("?")?(D.eatWhile(/[\w\._\-]/),T.tokenize=me("meta","?>"),"meta"):(U=D.eat("/")?"closeTag":"openTag",T.tokenize=ue,"tag bracket");if(ve=="&"){var nt;return D.eat("#")?D.eat("x")?nt=D.eatWhile(/[a-fA-F\d]/)&&D.eat(";"):nt=D.eatWhile(/[\d]/)&&D.eat(";"):nt=D.eatWhile(/[\w\.\-:]/)&&D.eat(";"),nt?"atom":"error"}else return D.eatWhile(/[^&<]/),null}X.isInText=!0;function ue(D,T){var re=D.next();if(re==">"||re=="/"&&D.eat(">"))return T.tokenize=X,U=re==">"?"endTag":"selfcloseTag","tag bracket";if(re=="=")return U="equals",null;if(re=="<"){T.tokenize=X,T.state=Te,T.tagName=T.tagStart=null;var ve=T.tokenize(D,T);return ve?ve+" tag error":"tag error"}else return/[\'\"]/.test(re)?(T.tokenize=Ce(re),T.stringStartCol=D.column(),T.tokenize(D,T)):(D.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function Ce(D){var T=function(re,ve){for(;!re.eol();)if(re.next()==D){ve.tokenize=ue;break}return"string"};return T.isInAttribute=!0,T}function me(D,T){return function(re,ve){for(;!re.eol();){if(re.match(T)){ve.tokenize=X;break}re.next()}return D}}function Ee(D){return function(T,re){for(var ve;(ve=T.next())!=null;){if(ve=="<")return re.tokenize=Ee(D+1),re.tokenize(T,re);if(ve==">")if(D==1){re.tokenize=X;break}else return re.tokenize=Ee(D-1),re.tokenize(T,re)}return"meta"}}function Ae(D,T,re){this.prev=D.context,this.tagName=T||"",this.indent=D.indented,this.startOfLine=re,(k.doNotIndent.hasOwnProperty(T)||D.context&&D.context.noIndent)&&(this.noIndent=!0)}function he(D){D.context&&(D.context=D.context.prev)}function de(D,T){for(var re;;){if(!D.context||(re=D.context.tagName,!k.contextGrabbers.hasOwnProperty(re)||!k.contextGrabbers[re].hasOwnProperty(T)))return;he(D)}}function Te(D,T,re){return D=="openTag"?(re.tagStart=T.column(),$e):D=="closeTag"?We:Te}function $e(D,T,re){return D=="word"?(re.tagName=T.current(),q="tag",pe):k.allowMissingTagName&&D=="endTag"?(q="tag bracket",pe(D,T,re)):(q="error",$e)}function We(D,T,re){if(D=="word"){var ve=T.current();return re.context&&re.context.tagName!=ve&&k.implicitlyClosed.hasOwnProperty(re.context.tagName)&&he(re),re.context&&re.context.tagName==ve||k.matchClosing===!1?(q="tag",Qe):(q="tag error",tt)}else return k.allowMissingTagName&&D=="endTag"?(q="tag bracket",Qe(D,T,re)):(q="error",tt)}function Qe(D,T,re){return D!="endTag"?(q="error",Qe):(he(re),Te)}function tt(D,T,re){return q="error",Qe(D,T,re)}function pe(D,T,re){if(D=="word")return q="attribute",ye;if(D=="endTag"||D=="selfcloseTag"){var ve=re.tagName,nt=re.tagStart;return re.tagName=re.tagStart=null,D=="selfcloseTag"||k.autoSelfClosers.hasOwnProperty(ve)?de(re,ve):(de(re,ve),re.context=new Ae(re,ve,nt==re.indented)),Te}return q="error",pe}function ye(D,T,re){return D=="equals"?rt:(k.allowMissing||(q="error"),pe(D,T,re))}function rt(D,T,re){return D=="string"?B:D=="word"&&k.allowUnquoted?(q="string",pe):(q="error",pe(D,T,re))}function B(D,T,re){return D=="string"?B:pe(D,T,re)}return{startState:function(D){var T={tokenize:X,state:Te,indented:D||0,tagName:null,tagStart:null,context:null};return D!=null&&(T.baseIndent=D),T},token:function(D,T){if(!T.tagName&&D.sol()&&(T.indented=D.indentation()),D.eatSpace())return null;U=null;var re=T.tokenize(D,T);return(re||U)&&re!="comment"&&(q=null,T.state=T.state(U||re,D,T),q&&(re=q=="error"?re+" error":q)),re},indent:function(D,T,re){var ve=D.context;if(D.tokenize.isInAttribute)return D.tagStart==D.indented?D.stringStartCol+1:D.indented+E;if(ve&&ve.noIndent)return o.Pass;if(D.tokenize!=ue&&D.tokenize!=X)return re?re.match(/^(\s*)/)[0].length:0;if(D.tagName)return k.multilineTagIndentPastTag!==!1?D.tagStart+D.tagName.length+2:D.tagStart+E*(k.multilineTagIndentFactor||1);if(k.alignCDATA&&/<!\[CDATA\[/.test(T))return 0;var nt=T&&/^<(\/)?([\w_:\.-]*)/.exec(T);if(nt&&nt[1])for(;ve;)if(ve.tagName==nt[2]){ve=ve.prev;break}else if(k.implicitlyClosed.hasOwnProperty(ve.tagName))ve=ve.prev;else break;else if(nt)for(;ve;){var Pt=k.contextGrabbers[ve.tagName];if(Pt&&Pt.hasOwnProperty(nt[2]))ve=ve.prev;else break}for(;ve&&ve.prev&&!ve.startOfLine;)ve=ve.prev;return ve?ve.indent+E:D.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:k.htmlMode?"html":"xml",helperType:k.htmlMode?"html":"xml",skipAttribute:function(D){D.state==rt&&(D.state=pe)},xmlCurrentTag:function(D){return D.tagName?{name:D.tagName,close:D.type=="closeTag"}:null},xmlCurrentContext:function(D){for(var T=[],re=D.context;re;re=re.prev)T.push(re.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 Mp={exports:{}},Op;function w2(){return Op||(Op=1,function(r,n){(function(o){o(Qs())})(function(o){o.defineMode("javascript",function(c,f){var v=c.indentUnit,y=f.statementIndent,E=f.jsonld,k=f.json||E,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"),oe=w("keyword c"),Ve=w("keyword d"),pt=w("operator"),ge={type:"atom",style:"atom"};return{if:w("if"),while:P,with:P,else:j,do:j,try:j,finally:j,return:Ve,break:Ve,continue:Ve,new:w("new"),delete:oe,void:oe,throw:oe,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:pt,typeof:pt,instanceof:pt,true:ge,false:ge,null:ge,undefined:ge,NaN:ge,Infinity:ge,this:w("this"),class:w("class"),super:w("atom"),yield:oe,export:w("export"),import:w("import"),extends:oe,await:oe}}(),X=/[+\-*&%=<>!?|~^@]/,ue=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function Ce(w){for(var P=!1,j,oe=!1;(j=w.next())!=null;){if(!P){if(j=="/"&&!oe)return;j=="["?oe=!0:oe&&j=="]"&&(oe=!1)}P=!P&&j=="\\"}}var me,Ee;function Ae(w,P,j){return me=w,Ee=j,P}function he(w,P){var j=w.next();if(j=='"'||j=="'")return P.tokenize=de(j),P.tokenize(w,P);if(j=="."&&w.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return Ae("number","number");if(j=="."&&w.match(".."))return Ae("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(j))return Ae(j);if(j=="="&&w.eat(">"))return Ae("=>","operator");if(j=="0"&&w.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return Ae("number","number");if(/\d/.test(j))return w.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),Ae("number","number");if(j=="/")return w.eat("*")?(P.tokenize=Te,Te(w,P)):w.eat("/")?(w.skipToEnd(),Ae("comment","comment")):ne(w,P,1)?(Ce(w),w.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),Ae("regexp","string-2")):(w.eat("="),Ae("operator","operator",w.current()));if(j=="`")return P.tokenize=$e,$e(w,P);if(j=="#"&&w.peek()=="!")return w.skipToEnd(),Ae("meta","meta");if(j=="#"&&w.eatWhile(U))return Ae("variable","property");if(j=="<"&&w.match("!--")||j=="-"&&w.match("->")&&!/\S/.test(w.string.slice(0,w.start)))return w.skipToEnd(),Ae("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(".")?Ae("."):Ae("operator","operator",w.current());if(U.test(j)){w.eatWhile(U);var oe=w.current();if(P.lastType!="."){if(q.propertyIsEnumerable(oe)){var Ve=q[oe];return Ae(Ve.type,Ve.style,oe)}if(oe=="async"&&w.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return Ae("async","keyword",oe)}return Ae("variable","variable",oe)}}function de(w){return function(P,j){var oe=!1,Ve;if(E&&P.peek()=="@"&&P.match(ue))return j.tokenize=he,Ae("jsonld-keyword","meta");for(;(Ve=P.next())!=null&&!(Ve==w&&!oe);)oe=!oe&&Ve=="\\";return oe||(j.tokenize=he),Ae("string","string")}}function Te(w,P){for(var j=!1,oe;oe=w.next();){if(oe=="/"&&j){P.tokenize=he;break}j=oe=="*"}return Ae("comment","comment")}function $e(w,P){for(var j=!1,oe;(oe=w.next())!=null;){if(!j&&(oe=="`"||oe=="$"&&w.eat("{"))){P.tokenize=he;break}j=!j&&oe=="\\"}return Ae("quasi","string-2",w.current())}var We="([{}])";function Qe(w,P){P.fatArrowAt&&(P.fatArrowAt=null);var j=w.string.indexOf("=>",w.start);if(!(j<0)){if(I){var oe=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(w.string.slice(w.start,j));oe&&(j=oe.index)}for(var Ve=0,pt=!1,ge=j-1;ge>=0;--ge){var Or=w.string.charAt(ge),rn=We.indexOf(Or);if(rn>=0&&rn<3){if(!Ve){++ge;break}if(--Ve==0){Or=="("&&(pt=!0);break}}else if(rn>=3&&rn<6)++Ve;else if(U.test(Or))pt=!0;else if(/["'\/`]/.test(Or))for(;;--ge){if(ge==0)return;var _i=w.string.charAt(ge-1);if(_i==Or&&w.string.charAt(ge-2)!="\\"){ge--;break}}else if(pt&&!Ve){++ge;break}}pt&&!Ve&&(P.fatArrowAt=ge)}}var tt={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function pe(w,P,j,oe,Ve,pt){this.indented=w,this.column=P,this.type=j,this.prev=Ve,this.info=pt,oe!=null&&(this.align=oe)}function ye(w,P){if(!O)return!1;for(var j=w.localVars;j;j=j.next)if(j.name==P)return!0;for(var oe=w.context;oe;oe=oe.prev)for(var j=oe.vars;j;j=j.next)if(j.name==P)return!0}function rt(w,P,j,oe,Ve){var pt=w.cc;for(B.state=w,B.stream=Ve,B.marked=null,B.cc=pt,B.style=P,w.lexical.hasOwnProperty("align")||(w.lexical.align=!0);;){var ge=pt.length?pt.pop():k?Fe:it;if(ge(j,oe)){for(;pt.length&&pt[pt.length-1].lex;)pt.pop()();return B.marked?B.marked:j=="variable"&&ye(w,oe)?"variable-2":P}}}var B={state:null,column:null,marked:null,cc:null};function D(){for(var w=arguments.length-1;w>=0;w--)B.cc.push(arguments[w])}function T(){return D.apply(null,arguments),!0}function re(w,P){for(var j=P;j;j=j.next)if(j.name==w)return!0;return!1}function ve(w){var P=B.state;if(B.marked="def",!!O){if(P.context){if(P.lexical.info=="var"&&P.context&&P.context.block){var j=nt(w,P.context);if(j!=null){P.context=j;return}}else if(!re(w,P.localVars)){P.localVars=new Rt(w,P.localVars);return}}f.globalVars&&!re(w,P.globalVars)&&(P.globalVars=new Rt(w,P.globalVars))}}function nt(w,P){if(P)if(P.block){var j=nt(w,P.prev);return j?j==P.prev?P:new or(j,P.vars,!0):null}else return re(w,P.vars)?P:new or(P.prev,new Rt(w,P.vars),!1);else return null}function Pt(w){return w=="public"||w=="private"||w=="protected"||w=="abstract"||w=="readonly"}function or(w,P,j){this.prev=w,this.vars=P,this.block=j}function Rt(w,P){this.name=w,this.next=P}var fn=new Rt("this",new Rt("arguments",null));function Qt(){B.state.context=new or(B.state.context,B.state.localVars,!1),B.state.localVars=fn}function Ht(){B.state.context=new or(B.state.context,B.state.localVars,!0),B.state.localVars=null}function at(){B.state.localVars=B.state.context.vars,B.state.context=B.state.context.prev}at.lex=!0;function _e(w,P){var j=function(){var oe=B.state,Ve=oe.indented;if(oe.lexical.type=="stat")Ve=oe.lexical.indented;else for(var pt=oe.lexical;pt&&pt.type==")"&&pt.align;pt=pt.prev)Ve=pt.indented;oe.lexical=new pe(Ve,B.stream.column(),w,null,oe.lexical,P)};return j.lex=!0,j}function He(){var w=B.state;w.lexical.prev&&(w.lexical.type==")"&&(w.indented=w.lexical.indented),w.lexical=w.lexical.prev)}He.lex=!0;function Be(w){function P(j){return j==w?T():w==";"||j=="}"||j==")"||j=="]"?D():T(P)}return P}function it(w,P){return w=="var"?T(_e("vardef",P),ta,Be(";"),He):w=="keyword a"?T(_e("form"),Gr,it,He):w=="keyword b"?T(_e("form"),it,He):w=="keyword d"?B.stream.match(/^\s*$/,!1)?T():T(_e("stat"),je,Be(";"),He):w=="debugger"?T(Be(";")):w=="{"?T(_e("}"),Ht,Rr,He,at):w==";"?T():w=="if"?(B.state.lexical.info=="else"&&B.state.cc[B.state.cc.length-1]==He&&B.state.cc.pop()(),T(_e("form"),Gr,it,He,Qa)):w=="function"?T(xn):w=="for"?T(_e("form"),Ht,Ja,it,at,He):w=="class"||I&&P=="interface"?(B.marked="keyword",T(_e("form",w=="class"?w:P),fs,He)):w=="variable"?I&&P=="declare"?(B.marked="keyword",T(it)):I&&(P=="module"||P=="enum"||P=="type")&&B.stream.match(/^\s*\w/,!1)?(B.marked="keyword",P=="enum"?T(Bn):P=="type"?T(el,Be("operator"),Ze,Be(";")):T(_e("form"),jr,Be("{"),_e("}"),Rr,He,He)):I&&P=="namespace"?(B.marked="keyword",T(_e("form"),Fe,it,He)):I&&P=="abstract"?(B.marked="keyword",T(it)):T(_e("stat"),Ke):w=="switch"?T(_e("form"),Gr,Be("{"),_e("}","switch"),Ht,Rr,He,He,at):w=="case"?T(Fe,Be(":")):w=="default"?T(Be(":")):w=="catch"?T(_e("form"),Qt,ot,it,He,at):w=="export"?T(_e("stat"),na,He):w=="import"?T(_e("stat"),Ft,He):w=="async"?T(it):P=="@"?T(Fe,it):D(_e("stat"),Fe,Be(";"),He)}function ot(w){if(w=="(")return T(xi,Be(")"))}function Fe(w,P){return sr(w,P,!1)}function Zt(w,P){return sr(w,P,!0)}function Gr(w){return w!="("?D():T(_e(")"),je,Be(")"),He)}function sr(w,P,j){if(B.state.fatArrowAt==B.stream.start){var oe=j?Je:ur;if(w=="(")return T(Qt,_e(")"),Ut(xi,")"),He,Be("=>"),oe,at);if(w=="variable")return D(Qt,jr,Be("=>"),oe,at)}var Ve=j?kt:mt;return tt.hasOwnProperty(w)?T(Ve):w=="function"?T(xn,Ve):w=="class"||I&&P=="interface"?(B.marked="keyword",T(_e("form"),To,He)):w=="keyword c"||w=="async"?T(j?Zt:Fe):w=="("?T(_e(")"),je,Be(")"),He,Ve):w=="operator"||w=="spread"?T(j?Zt:Fe):w=="["?T(_e("]"),wt,He,Ve):w=="{"?wi(kr,"}",null,Ve):w=="quasi"?D($r,Ve):w=="new"?T(F(j)):T()}function je(w){return w.match(/[;\}\)\],]/)?D():D(Fe)}function mt(w,P){return w==","?T(je):kt(w,P,!1)}function kt(w,P,j){var oe=j==!1?mt:kt,Ve=j==!1?Fe:Zt;if(w=="=>")return T(Qt,j?Je:ur,at);if(w=="operator")return/\+\+|--/.test(P)||I&&P=="!"?T(oe):I&&P=="<"&&B.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?T(_e(">"),Ut(Ze,">"),He,oe):P=="?"?T(Fe,Be(":"),Ve):T(Ve);if(w=="quasi")return D($r,oe);if(w!=";"){if(w=="(")return wi(Zt,")","call",oe);if(w==".")return T(cr,oe);if(w=="[")return T(_e("]"),je,Be("]"),He,oe);if(I&&P=="as")return B.marked="keyword",T(Ze,oe);if(w=="regexp")return B.state.lastType=B.marked="operator",B.stream.backUp(B.stream.pos-B.stream.start-1),T(Ve)}}function $r(w,P){return w!="quasi"?D():P.slice(P.length-2)!="${"?T($r):T(je,en)}function en(w){if(w=="}")return B.marked="string-2",B.state.tokenize=$e,T($r)}function ur(w){return Qe(B.stream,B.state),D(w=="{"?it:Fe)}function Je(w){return Qe(B.stream,B.state),D(w=="{"?it:Zt)}function F(w){return function(P){return P=="."?T(w?V:ie):P=="variable"&&I?T(ko,w?kt:mt):D(w?Zt:Fe)}}function ie(w,P){if(P=="target")return B.marked="keyword",T(mt)}function V(w,P){if(P=="target")return B.marked="keyword",T(kt)}function Ke(w){return w==":"?T(He,it):D(mt,Be(";"),He)}function cr(w){if(w=="variable")return B.marked="property",T()}function kr(w,P){if(w=="async")return B.marked="property",T(kr);if(w=="variable"||B.style=="keyword"){if(B.marked="property",P=="get"||P=="set")return T($n);var j;return I&&B.state.fatArrowAt==B.stream.start&&(j=B.stream.match(/^\s*:\s*/,!1))&&(B.state.fatArrowAt=B.stream.pos+j[0].length),T(qr)}else{if(w=="number"||w=="string")return B.marked=E?"property":B.style+" property",T(qr);if(w=="jsonld-keyword")return T(qr);if(I&&Pt(P))return B.marked="keyword",T(kr);if(w=="[")return T(Fe,Rn,Be("]"),qr);if(w=="spread")return T(Zt,qr);if(P=="*")return B.marked="keyword",T(kr);if(w==":")return D(qr)}}function $n(w){return w!="variable"?D(qr):(B.marked="property",T(xn))}function qr(w){if(w==":")return T(Zt);if(w=="(")return D(xn)}function Ut(w,P,j){function oe(Ve,pt){if(j?j.indexOf(Ve)>-1:Ve==","){var ge=B.state.lexical;return ge.info=="call"&&(ge.pos=(ge.pos||0)+1),T(function(Or,rn){return Or==P||rn==P?D():D(w)},oe)}return Ve==P||pt==P?T():j&&j.indexOf(";")>-1?D(w):T(Be(P))}return function(Ve,pt){return Ve==P||pt==P?T():D(w,oe)}}function wi(w,P,j){for(var oe=3;oe<arguments.length;oe++)B.cc.push(arguments[oe]);return T(_e(P,j),Ut(w,P),He)}function Rr(w){return w=="}"?T():D(it,Rr)}function Rn(w,P){if(I){if(w==":")return T(Ze);if(P=="?")return T(Rn)}}function Ne(w,P){if(I&&(w==":"||P=="in"))return T(Ze)}function Wi(w){if(I&&w==":")return B.stream.match(/^\s*\w+\s+is\b/,!1)?T(Fe,Mr,Ze):T(Ze)}function Mr(w,P){if(P=="is")return B.marked="keyword",T()}function Ze(w,P){if(P=="keyof"||P=="typeof"||P=="infer"||P=="readonly")return B.marked="keyword",T(P=="typeof"?Zt:Ze);if(w=="variable"||P=="void")return B.marked="type",T(dn);if(P=="|"||P=="&")return T(Ze);if(w=="string"||w=="number"||w=="atom")return T(dn);if(w=="[")return T(_e("]"),Ut(Ze,"]",","),He,dn);if(w=="{")return T(_e("}"),us,He,dn);if(w=="(")return T(Ut(cs,")"),rr,dn);if(w=="<")return T(Ut(Ze,">"),Ze);if(w=="quasi")return D(Hn,dn)}function rr(w){if(w=="=>")return T(Ze)}function us(w){return w.match(/[\}\)\]]/)?T():w==","||w==";"?T(us):D(br,us)}function br(w,P){if(w=="variable"||B.style=="keyword")return B.marked="property",T(br);if(P=="?"||w=="number"||w=="string")return T(br);if(w==":")return T(Ze);if(w=="[")return T(Be("variable"),Ne,Be("]"),br);if(w=="(")return D(hn,br);if(!w.match(/[;\}\)\],]/))return T()}function Hn(w,P){return w!="quasi"?D():P.slice(P.length-2)!="${"?T(Hn):T(Ze,Cr)}function Cr(w){if(w=="}")return B.marked="string-2",B.state.tokenize=$e,T(Hn)}function cs(w,P){return w=="variable"&&B.stream.match(/^\s*[?:]/,!1)||P=="?"?T(cs):w==":"?T(Ze):w=="spread"?T(cs):D(Ze)}function dn(w,P){if(P=="<")return T(_e(">"),Ut(Ze,">"),He,dn);if(P=="|"||w=="."||P=="&")return T(Ze);if(w=="[")return T(Ze,Be("]"),dn);if(P=="extends"||P=="implements")return B.marked="keyword",T(Ze);if(P=="?")return T(Ze,Be(":"),Ze)}function ko(w,P){if(P=="<")return T(_e(">"),Ut(Ze,">"),He,dn)}function Bi(){return D(Ze,ea)}function ea(w,P){if(P=="=")return T(Ze)}function ta(w,P){return P=="enum"?(B.marked="keyword",T(Bn)):D(jr,Rn,ri,Oo)}function jr(w,P){if(I&&Pt(P))return B.marked="keyword",T(jr);if(w=="variable")return ve(P),T();if(w=="spread")return T(jr);if(w=="[")return wi(Mo,"]");if(w=="{")return wi(Xa,"}")}function Xa(w,P){return w=="variable"&&!B.stream.match(/^\s*:/,!1)?(ve(P),T(ri)):(w=="variable"&&(B.marked="property"),w=="spread"?T(jr):w=="}"?D():w=="["?T(Fe,Be("]"),Be(":"),Xa):T(Be(":"),jr,ri))}function Mo(){return D(jr,ri)}function ri(w,P){if(P=="=")return T(Zt)}function Oo(w){if(w==",")return T(ta)}function Qa(w,P){if(w=="keyword b"&&P=="else")return T(_e("form","else"),it,He)}function Ja(w,P){if(P=="await")return T(Ja);if(w=="(")return T(_e(")"),ra,He)}function ra(w){return w=="var"?T(ta,Ui):w=="variable"?T(Ui):D(Ui)}function Ui(w,P){return w==")"?T():w==";"?T(Ui):P=="in"||P=="of"?(B.marked="keyword",T(Fe,Ui)):D(Fe,Ui)}function xn(w,P){if(P=="*")return B.marked="keyword",T(xn);if(w=="variable")return ve(P),T(xn);if(w=="(")return T(Qt,_e(")"),Ut(xi,")"),He,Wi,it,at);if(I&&P=="<")return T(_e(">"),Ut(Bi,">"),He,xn)}function hn(w,P){if(P=="*")return B.marked="keyword",T(hn);if(w=="variable")return ve(P),T(hn);if(w=="(")return T(Qt,_e(")"),Ut(xi,")"),He,Wi,at);if(I&&P=="<")return T(_e(">"),Ut(Bi,">"),He,hn)}function el(w,P){if(w=="keyword"||w=="variable")return B.marked="type",T(el);if(P=="<")return T(_e(">"),Ut(Bi,">"),He)}function xi(w,P){return P=="@"&&T(Fe,xi),w=="spread"?T(xi):I&&Pt(P)?(B.marked="keyword",T(xi)):I&&w=="this"?T(Rn,ri):D(jr,Rn,ri)}function To(w,P){return w=="variable"?fs(w,P):Fn(w,P)}function fs(w,P){if(w=="variable")return ve(P),T(Fn)}function Fn(w,P){if(P=="<")return T(_e(">"),Ut(Bi,">"),He,Fn);if(P=="extends"||P=="implements"||I&&w==",")return P=="implements"&&(B.marked="keyword"),T(I?Ze:Fe,Fn);if(w=="{")return T(_e("}"),Wn,He)}function Wn(w,P){if(w=="async"||w=="variable"&&(P=="static"||P=="get"||P=="set"||I&&Pt(P))&&B.stream.match(/^\s+[\w$\xa1-\uffff]/,!1))return B.marked="keyword",T(Wn);if(w=="variable"||B.style=="keyword")return B.marked="property",T(pn,Wn);if(w=="number"||w=="string")return T(pn,Wn);if(w=="[")return T(Fe,Rn,Be("]"),pn,Wn);if(P=="*")return B.marked="keyword",T(Wn);if(I&&w=="(")return D(hn,Wn);if(w==";"||w==",")return T(Wn);if(w=="}")return T();if(P=="@")return T(Fe,Wn)}function pn(w,P){if(P=="!"||P=="?")return T(pn);if(w==":")return T(Ze,ri);if(P=="=")return T(Zt);var j=B.state.lexical.prev,oe=j&&j.info=="interface";return D(oe?hn:xn)}function na(w,P){return P=="*"?(B.marked="keyword",T(tn,Be(";"))):P=="default"?(B.marked="keyword",T(Fe,Be(";"))):w=="{"?T(Ut(ia,"}"),tn,Be(";")):D(it)}function ia(w,P){if(P=="as")return B.marked="keyword",T(Be("variable"));if(w=="variable")return D(Zt,ia)}function Ft(w){return w=="string"?T():w=="("?D(Fe):w=="."?D(mt):D(Me,vn,tn)}function Me(w,P){return w=="{"?wi(Me,"}"):(w=="variable"&&ve(P),P=="*"&&(B.marked="keyword"),T(oa))}function vn(w){if(w==",")return T(Me,vn)}function oa(w,P){if(P=="as")return B.marked="keyword",T(Me)}function tn(w,P){if(P=="from")return B.marked="keyword",T(Fe)}function wt(w){return w=="]"?T():D(Ut(Zt,"]"))}function Bn(){return D(_e("form"),jr,Be("{"),_e("}"),Ut(Yi,"}"),He,He)}function Yi(){return D(jr,ri)}function ds(w,P){return w.lastType=="operator"||w.lastType==","||X.test(P.charAt(0))||/[,.]/.test(P.charAt(0))}function ne(w,P,j){return P.tokenize==he&&/^(?: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:he,lastType:"sof",cc:[],lexical:new pe((w||0)-v,0,"block",!1),localVars:f.localVars,context:f.localVars&&new or(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(),Qe(w,P)),P.tokenize!=Te&&w.eatSpace())return null;var j=P.tokenize(w,P);return me=="comment"?j:(P.lastType=me=="operator"&&(Ee=="++"||Ee=="--")?"incdec":me,rt(P,j,me,Ee,w))},indent:function(w,P){if(w.tokenize==Te||w.tokenize==$e)return o.Pass;if(w.tokenize!=he)return 0;var j=P&&P.charAt(0),oe=w.lexical,Ve;if(!/^\s*else\b/.test(P))for(var pt=w.cc.length-1;pt>=0;--pt){var ge=w.cc[pt];if(ge==He)oe=oe.prev;else if(ge!=Qa&&ge!=at)break}for(;(oe.type=="stat"||oe.type=="form")&&(j=="}"||(Ve=w.cc[w.cc.length-1])&&(Ve==mt||Ve==kt)&&!/^[,\.=+\-*:?[\(]/.test(P));)oe=oe.prev;y&&oe.type==")"&&oe.prev.type=="stat"&&(oe=oe.prev);var Or=oe.type,rn=j==Or;return Or=="vardef"?oe.indented+(w.lastType=="operator"||w.lastType==","?oe.info.length+1:0):Or=="form"&&j=="{"?oe.indented:Or=="form"?oe.indented+v:Or=="stat"?oe.indented+(ds(w,P)?y||v:0):oe.info=="switch"&&!rn&&f.doubleIndentSwitch!=!1?oe.indented+(/^(?:case|default)\b/.test(P)?v:2*v):oe.align?oe.column+(rn?0:1):oe.indented+(rn?0:v)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:k?null:"/*",blockCommentEnd:k?null:"*/",blockCommentContinue:k?null:" * ",lineComment:k?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:k?"json":"javascript",jsonldMode:E,jsonMode:k,expressionAllowed:ne,skipExpression:function(w){rt(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})})}()),Mp.exports}w2();var Tp={exports:{}},Pp;function ug(){return Pp||(Pp=1,function(r,n){(function(o){o(Qs())})(function(o){o.defineMode("css",function(pe,ye){var rt=ye.inline;ye.propertyKeywords||(ye=o.resolveMode("text/css"));var B=pe.indentUnit,D=ye.tokenHooks,T=ye.documentTypes||{},re=ye.mediaTypes||{},ve=ye.mediaFeatures||{},nt=ye.mediaValueKeywords||{},Pt=ye.propertyKeywords||{},or=ye.nonStandardPropertyKeywords||{},Rt=ye.fontProperties||{},fn=ye.counterDescriptors||{},Qt=ye.colorKeywords||{},Ht=ye.valueKeywords||{},at=ye.allowNested,_e=ye.lineComment,He=ye.supportsAtComponent===!0,Be=pe.highlightNonStandardPropertyKeywords!==!1,it,ot;function Fe(F,ie){return it=ie,F}function Zt(F,ie){var V=F.next();if(D[V]){var Ke=D[V](F,ie);if(Ke!==!1)return Ke}if(V=="@")return F.eatWhile(/[\w\\\-]/),Fe("def",F.current());if(V=="="||(V=="~"||V=="|")&&F.eat("="))return Fe(null,"compare");if(V=='"'||V=="'")return ie.tokenize=Gr(V),ie.tokenize(F,ie);if(V=="#")return F.eatWhile(/[\w\\\-]/),Fe("atom","hash");if(V=="!")return F.match(/^\s*\w*/),Fe("keyword","important");if(/\d/.test(V)||V=="."&&F.eat(/\d/))return F.eatWhile(/[\w.%]/),Fe("number","unit");if(V==="-"){if(/[\d.]/.test(F.peek()))return F.eatWhile(/[\w.%]/),Fe("number","unit");if(F.match(/^-[\w\\\-]*/))return F.eatWhile(/[\w\\\-]/),F.match(/^\s*:/,!1)?Fe("variable-2","variable-definition"):Fe("variable-2","variable");if(F.match(/^\w+-/))return Fe("meta","meta")}else return/[,+>*\/]/.test(V)?Fe(null,"select-op"):V=="."&&F.match(/^-?[_a-z][_a-z0-9-]*/i)?Fe("qualifier","qualifier"):/[:;{}\[\]\(\)]/.test(V)?Fe(null,V):F.match(/^[\w-.]+(?=\()/)?(/^(url(-prefix)?|domain|regexp)$/i.test(F.current())&&(ie.tokenize=sr),Fe("variable callee","variable")):/[\w\\\-]/.test(V)?(F.eatWhile(/[\w\\\-]/),Fe("property","word")):Fe(null,null)}function Gr(F){return function(ie,V){for(var Ke=!1,cr;(cr=ie.next())!=null;){if(cr==F&&!Ke){F==")"&&ie.backUp(1);break}Ke=!Ke&&cr=="\\"}return(cr==F||!Ke&&F!=")")&&(V.tokenize=null),Fe("string","string")}}function sr(F,ie){return F.next(),F.match(/^\s*[\"\')]/,!1)?ie.tokenize=null:ie.tokenize=Gr(")"),Fe(null,"(")}function je(F,ie,V){this.type=F,this.indent=ie,this.prev=V}function mt(F,ie,V,Ke){return F.context=new je(V,ie.indentation()+(Ke===!1?0:B),F.context),V}function kt(F){return F.context.prev&&(F.context=F.context.prev),F.context.type}function $r(F,ie,V){return Je[V.context.type](F,ie,V)}function en(F,ie,V,Ke){for(var cr=Ke||1;cr>0;cr--)V.context=V.context.prev;return $r(F,ie,V)}function ur(F){var ie=F.current().toLowerCase();Ht.hasOwnProperty(ie)?ot="atom":Qt.hasOwnProperty(ie)?ot="keyword":ot="variable"}var Je={};return Je.top=function(F,ie,V){if(F=="{")return mt(V,ie,"block");if(F=="}"&&V.context.prev)return kt(V);if(He&&/@component/i.test(F))return mt(V,ie,"atComponentBlock");if(/^@(-moz-)?document$/i.test(F))return mt(V,ie,"documentTypes");if(/^@(media|supports|(-moz-)?document|import)$/i.test(F))return mt(V,ie,"atBlock");if(/^@(font-face|counter-style)/i.test(F))return V.stateArg=F,"restricted_atBlock_before";if(/^@(-(moz|ms|o|webkit)-)?keyframes$/i.test(F))return"keyframes";if(F&&F.charAt(0)=="@")return mt(V,ie,"at");if(F=="hash")ot="builtin";else if(F=="word")ot="tag";else{if(F=="variable-definition")return"maybeprop";if(F=="interpolation")return mt(V,ie,"interpolation");if(F==":")return"pseudo";if(at&&F=="(")return mt(V,ie,"parens")}return V.context.type},Je.block=function(F,ie,V){if(F=="word"){var Ke=ie.current().toLowerCase();return Pt.hasOwnProperty(Ke)?(ot="property","maybeprop"):or.hasOwnProperty(Ke)?(ot=Be?"string-2":"property","maybeprop"):at?(ot=ie.match(/^\s*:(?:\s|$)/,!1)?"property":"tag","block"):(ot+=" error","maybeprop")}else return F=="meta"?"block":!at&&(F=="hash"||F=="qualifier")?(ot="error","block"):Je.top(F,ie,V)},Je.maybeprop=function(F,ie,V){return F==":"?mt(V,ie,"prop"):$r(F,ie,V)},Je.prop=function(F,ie,V){if(F==";")return kt(V);if(F=="{"&&at)return mt(V,ie,"propBlock");if(F=="}"||F=="{")return en(F,ie,V);if(F=="(")return mt(V,ie,"parens");if(F=="hash"&&!/^#([0-9a-fA-f]{3,4}|[0-9a-fA-f]{6}|[0-9a-fA-f]{8})$/.test(ie.current()))ot+=" error";else if(F=="word")ur(ie);else if(F=="interpolation")return mt(V,ie,"interpolation");return"prop"},Je.propBlock=function(F,ie,V){return F=="}"?kt(V):F=="word"?(ot="property","maybeprop"):V.context.type},Je.parens=function(F,ie,V){return F=="{"||F=="}"?en(F,ie,V):F==")"?kt(V):F=="("?mt(V,ie,"parens"):F=="interpolation"?mt(V,ie,"interpolation"):(F=="word"&&ur(ie),"parens")},Je.pseudo=function(F,ie,V){return F=="meta"?"pseudo":F=="word"?(ot="variable-3",V.context.type):$r(F,ie,V)},Je.documentTypes=function(F,ie,V){return F=="word"&&T.hasOwnProperty(ie.current())?(ot="tag",V.context.type):Je.atBlock(F,ie,V)},Je.atBlock=function(F,ie,V){if(F=="(")return mt(V,ie,"atBlock_parens");if(F=="}"||F==";")return en(F,ie,V);if(F=="{")return kt(V)&&mt(V,ie,at?"block":"top");if(F=="interpolation")return mt(V,ie,"interpolation");if(F=="word"){var Ke=ie.current().toLowerCase();Ke=="only"||Ke=="not"||Ke=="and"||Ke=="or"?ot="keyword":re.hasOwnProperty(Ke)?ot="attribute":ve.hasOwnProperty(Ke)?ot="property":nt.hasOwnProperty(Ke)?ot="keyword":Pt.hasOwnProperty(Ke)?ot="property":or.hasOwnProperty(Ke)?ot=Be?"string-2":"property":Ht.hasOwnProperty(Ke)?ot="atom":Qt.hasOwnProperty(Ke)?ot="keyword":ot="error"}return V.context.type},Je.atComponentBlock=function(F,ie,V){return F=="}"?en(F,ie,V):F=="{"?kt(V)&&mt(V,ie,at?"block":"top",!1):(F=="word"&&(ot="error"),V.context.type)},Je.atBlock_parens=function(F,ie,V){return F==")"?kt(V):F=="{"||F=="}"?en(F,ie,V,2):Je.atBlock(F,ie,V)},Je.restricted_atBlock_before=function(F,ie,V){return F=="{"?mt(V,ie,"restricted_atBlock"):F=="word"&&V.stateArg=="@counter-style"?(ot="variable","restricted_atBlock_before"):$r(F,ie,V)},Je.restricted_atBlock=function(F,ie,V){return F=="}"?(V.stateArg=null,kt(V)):F=="word"?(V.stateArg=="@font-face"&&!Rt.hasOwnProperty(ie.current().toLowerCase())||V.stateArg=="@counter-style"&&!fn.hasOwnProperty(ie.current().toLowerCase())?ot="error":ot="property","maybeprop"):"restricted_atBlock"},Je.keyframes=function(F,ie,V){return F=="word"?(ot="variable","keyframes"):F=="{"?mt(V,ie,"top"):$r(F,ie,V)},Je.at=function(F,ie,V){return F==";"?kt(V):F=="{"||F=="}"?en(F,ie,V):(F=="word"?ot="tag":F=="hash"&&(ot="builtin"),"at")},Je.interpolation=function(F,ie,V){return F=="}"?kt(V):F=="{"||F==";"?en(F,ie,V):(F=="word"?ot="variable":F!="variable"&&F!="("&&F!=")"&&(ot="error"),"interpolation")},{startState:function(F){return{tokenize:null,state:rt?"block":"top",stateArg:null,context:new je(rt?"block":"top",F||0,null)}},token:function(F,ie){if(!ie.tokenize&&F.eatSpace())return null;var V=(ie.tokenize||Zt)(F,ie);return V&&typeof V=="object"&&(it=V[1],V=V[0]),ot=V,it!="comment"&&(ie.state=Je[ie.state](it,F,ie)),ot},indent:function(F,ie){var V=F.context,Ke=ie&&ie.charAt(0),cr=V.indent;return V.type=="prop"&&(Ke=="}"||Ke==")")&&(V=V.prev),V.prev&&(Ke=="}"&&(V.type=="block"||V.type=="top"||V.type=="interpolation"||V.type=="restricted_atBlock")?(V=V.prev,cr=V.indent):(Ke==")"&&(V.type=="parens"||V.type=="atBlock_parens")||Ke=="{"&&(V.type=="at"||V.type=="atBlock"))&&(cr=Math.max(0,V.indent-B))),cr},electricChars:"}",blockCommentStart:"/*",blockCommentEnd:"*/",blockCommentContinue:" * ",lineComment:_e,fold:"brace"}});function c(pe){for(var ye={},rt=0;rt<pe.length;++rt)ye[pe[rt].toLowerCase()]=!0;return ye}var f=["domain","regexp","url","url-prefix"],v=c(f),y=["all","aural","braille","handheld","print","projection","screen","tty","tv","embossed"],E=c(y),k=["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(k),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),ue=["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"],Ce=c(ue),me=["font-display","font-family","src","unicode-range","font-variant","font-feature-settings","font-stretch","font-weight","font-style"],Ee=c(me),Ae=["additive-symbols","fallback","negative","pad","prefix","range","speak-as","suffix","symbols","system"],he=c(Ae),de=["aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkgrey","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkslategrey","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dimgrey","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray","grey","green","greenyellow","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightgrey","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightslategrey","lightsteelblue","lightyellow","lime","limegreen","linen","magenta","maroon","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","oldlace","olive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","purple","rebeccapurple","red","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","slategrey","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen"],Te=c(de),$e=["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"],We=c($e),Qe=f.concat(y).concat(k).concat(I).concat(q).concat(ue).concat(de).concat($e);o.registerHelper("hintWords","css",Qe);function tt(pe,ye){for(var rt=!1,B;(B=pe.next())!=null;){if(rt&&B=="/"){ye.tokenize=null;break}rt=B=="*"}return["comment","comment"]}o.defineMIME("text/css",{documentTypes:v,mediaTypes:E,mediaFeatures:O,mediaValueKeywords:U,propertyKeywords:X,nonStandardPropertyKeywords:Ce,fontProperties:Ee,counterDescriptors:he,colorKeywords:Te,valueKeywords:We,tokenHooks:{"/":function(pe,ye){return pe.eat("*")?(ye.tokenize=tt,tt(pe,ye)):!1}},name:"css"}),o.defineMIME("text/x-scss",{mediaTypes:E,mediaFeatures:O,mediaValueKeywords:U,propertyKeywords:X,nonStandardPropertyKeywords:Ce,colorKeywords:Te,valueKeywords:We,fontProperties:Ee,allowNested:!0,lineComment:"//",tokenHooks:{"/":function(pe,ye){return pe.eat("/")?(pe.skipToEnd(),["comment","comment"]):pe.eat("*")?(ye.tokenize=tt,tt(pe,ye)):["operator","operator"]},":":function(pe){return pe.match(/^\s*\{/,!1)?[null,null]:!1},$:function(pe){return pe.match(/^[\w-]+/),pe.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2","variable"]},"#":function(pe){return pe.eat("{")?[null,"interpolation"]:!1}},name:"css",helperType:"scss"}),o.defineMIME("text/x-less",{mediaTypes:E,mediaFeatures:O,mediaValueKeywords:U,propertyKeywords:X,nonStandardPropertyKeywords:Ce,colorKeywords:Te,valueKeywords:We,fontProperties:Ee,allowNested:!0,lineComment:"//",tokenHooks:{"/":function(pe,ye){return pe.eat("/")?(pe.skipToEnd(),["comment","comment"]):pe.eat("*")?(ye.tokenize=tt,tt(pe,ye)):["operator","operator"]},"@":function(pe){return pe.eat("{")?[null,"interpolation"]:pe.match(/^(charset|document|font-face|import|(-(moz|ms|o|webkit)-)?keyframes|media|namespace|page|supports)\b/i,!1)?!1:(pe.eatWhile(/[\w\\\-]/),pe.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2","variable"])},"&":function(){return["atom","atom"]}},name:"css",helperType:"less"}),o.defineMIME("text/x-gss",{documentTypes:v,mediaTypes:E,mediaFeatures:O,propertyKeywords:X,nonStandardPropertyKeywords:Ce,fontProperties:Ee,counterDescriptors:he,colorKeywords:Te,valueKeywords:We,supportsAtComponent:!0,tokenHooks:{"/":function(pe,ye){return pe.eat("*")?(ye.tokenize=tt,tt(pe,ye)):!1}},name:"css",helperType:"gss"})})}()),Tp.exports}(function(r,n){(function(o){o(Qs(),lg.exports,w2(),ug())})(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 ue=U.current(),Ce=ue.search(q);return Ce>-1?U.backUp(ue.length-Ce):ue.match(/<\/?$/)&&(U.backUp(ue.length),U.match(q,!1)||U.match(ue)),X}var v={};function y(U){var q=v[U];return q||(v[U]=new RegExp("\\s+"+U+`\\s*=\\s*('|")?([^'"]+)('|")?\\s*`))}function E(U,q){var X=U.match(y(q));return X?/^\s*(.*?)\s*$/.exec(X[2])[1]:""}function k(U,q){return new RegExp((q?"^":"")+"</s*"+U+"s*>","i")}function O(U,q){for(var X in U)for(var ue=q[X]||(q[X]=[]),Ce=U[X],me=Ce.length-1;me>=0;me--)ue.unshift(Ce[me])}function I(U,q){for(var X=0;X<U.length;X++){var ue=U[X];if(!ue[0]||ue[1].test(E(q,ue[0])))return ue[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}),ue={},Ce=q&&q.tags,me=q&&q.scriptTypes;if(O(c,ue),Ce&&O(Ce,ue),me)for(var Ee=me.length-1;Ee>=0;Ee--)ue.script.unshift(["type",me[Ee].matches,me[Ee].mode]);function Ae(he,de){var Te=X.token(he,de.htmlState),$e=/\btag\b/.test(Te),We;if($e&&!/[<>\s\/]/.test(he.current())&&(We=de.htmlState.tagName&&de.htmlState.tagName.toLowerCase())&&ue.hasOwnProperty(We))de.inTag=We+" ";else if(de.inTag&&$e&&/>$/.test(he.current())){var Qe=/^([\S]+) (.*)/.exec(de.inTag);de.inTag=null;var tt=he.current()==">"&&I(ue[Qe[1]],Qe[2]),pe=o.getMode(U,tt),ye=k(Qe[1],!0),rt=k(Qe[1],!1);de.token=function(B,D){return B.match(ye,!1)?(D.token=Ae,D.localState=D.localMode=null,null):f(B,rt,D.localMode.token(B,D.localState))},de.localMode=pe,de.localState=o.startState(pe,X.indent(de.htmlState,"",""))}else de.inTag&&(de.inTag+=he.current(),he.eol()&&(de.inTag+=" "));return Te}return{startState:function(){var he=o.startState(X);return{token:Ae,inTag:null,localMode:null,localState:null,htmlState:he}},copyState:function(he){var de;return he.localState&&(de=o.copyState(he.localMode,he.localState)),{token:he.token,inTag:he.inTag,localMode:he.localMode,localState:de,htmlState:o.copyState(X,he.htmlState)}},token:function(he,de){return de.token(he,de)},indent:function(he,de,Te){return!he.localMode||/^\s*<\//.test(de)?X.indent(he.htmlState,de,Te):he.localMode.indent?he.localMode.indent(he.localState,de,Te):o.Pass},innerMode:function(he){return{state:he.localState||he.htmlState,mode:he.localMode||X}}}},"xml","javascript","css"),o.defineMIME("text/html","htmlmixed")})})();(function(r,n){(function(o){o(Qs())})(function(o){o.defineOption("placeholder","",function(O,I,U){var q=U&&U!=o.Init;if(I&&!q)O.on("blur",y),O.on("change",E),O.on("swapDoc",E),o.on(O.getInputField(),"compositionupdate",O.state.placeholderCompose=function(){v(O)}),E(O);else if(!I&&q){O.off("blur",y),O.off("change",E),O.off("swapDoc",E),o.off(O.getInputField(),"compositionupdate",O.state.placeholderCompose),c(O);var X=O.getWrapperElement();X.className=X.className.replace(" CodeMirror-empty","")}I&&!O.hasFocus()&&y(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 v(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 y(O){k(O)&&f(O)}function E(O){var I=O.getWrapperElement(),U=k(O);I.className=I.className.replace(" CodeMirror-empty","")+(U?" CodeMirror-empty":""),U?f(O):c(O)}function k(O){return O.lineCount()===1&&O.getLine(0)===""}})})();var cg=Object.defineProperty,fg=Object.getOwnPropertyDescriptor,du=(r,n,o,c)=>{for(var f=c>1?void 0:c?fg(n,o):n,v=r.length-1,y;v>=0;v--)(y=r[v])&&(f=(c?y(n,o,f):y(f))||f);return c&&f&&cg(n,o,f),f};v0.defineMode("nunjucks",(r,n)=>v0.overlayMode(v0.getMode(r,n.backdrop||"text/html"),v0.getMode(r,"jinja2")));const dg={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 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=v0.fromTextArea(r,{mode:dg[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 J`
2190
2197
  <textarea class="editor" placeholder="${Yt(this.placeholder)}">
2191
2198
  ${this.value}</textarea
2192
2199
  >
2193
2200
  `}};exports.InputCode.styles=[...zn.styles,ke`
2194
- ${$p(ig)}
2201
+ ${Hp(sg)}
2195
2202
 
2196
2203
  :host([size="full"]) {
2197
2204
  width: 100%;
@@ -2241,16 +2248,16 @@ ${this.value}</textarea
2241
2248
  .CodeMirror pre.CodeMirror-placeholder {
2242
2249
  color: var(--sp-color-neutral-500);
2243
2250
  }
2244
- `,og];du([W()],exports.InputCode.prototype,"mode",2);du([W({reflect:!0})],exports.InputCode.prototype,"size",2);du([W({type:Number})],exports.InputCode.prototype,"height",2);du([W({type:Boolean,attribute:"hide-line-numbers"})],exports.InputCode.prototype,"hideLineNumbers",2);du([ht()],exports.InputCode.prototype,"editor",2);exports.InputCode=du([De("sp-input-code")],exports.InputCode);var S0={exports:{}};/**
2251
+ `,ag];du([W()],exports.InputCode.prototype,"mode",2);du([W({reflect:!0})],exports.InputCode.prototype,"size",2);du([W({type:Number})],exports.InputCode.prototype,"height",2);du([W({type:Boolean,attribute:"hide-line-numbers"})],exports.InputCode.prototype,"hideLineNumbers",2);du([ht()],exports.InputCode.prototype,"editor",2);exports.InputCode=du([De("sp-input-code")],exports.InputCode);var S0={exports:{}};/**
2245
2252
  * @license
2246
2253
  * Lodash <https://lodash.com/>
2247
2254
  * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
2248
2255
  * Released under MIT license <https://lodash.com/license>
2249
2256
  * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
2250
2257
  * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
2251
- */(function(r,n){(function(){var o,c="4.17.21",f=200,v="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",y="Expected a function",E="Invalid `variable` option passed into `_.template`",k="__lodash_hash_undefined__",O=500,I="__lodash_placeholder__",U=1,q=2,X=4,ue=1,Ce=2,me=1,Ee=2,Ae=4,he=8,de=16,Te=32,$e=64,We=128,Qe=256,tt=512,pe=30,ye="...",rt=800,B=16,D=1,T=2,re=3,ve=1/0,nt=9007199254740991,Pt=17976931348623157e292,or=0/0,Rt=4294967295,fn=Rt-1,Qt=Rt>>>1,Ht=[["ary",We],["bind",me],["bindKey",Ee],["curry",he],["curryRight",de],["flip",tt],["partial",Te],["partialRight",$e],["rearg",Qe]],at="[object Arguments]",_e="[object Array]",He="[object AsyncFunction]",Be="[object Boolean]",it="[object Date]",ot="[object DOMException]",Fe="[object Error]",Zt="[object Function]",Gr="[object GeneratorFunction]",sr="[object Map]",je="[object Number]",mt="[object Null]",kt="[object Object]",$r="[object Promise]",en="[object Proxy]",ur="[object RegExp]",Je="[object Set]",F="[object String]",ie="[object Symbol]",V="[object Undefined]",Ke="[object WeakMap]",cr="[object WeakSet]",kr="[object ArrayBuffer]",$n="[object DataView]",qr="[object Float32Array]",Ut="[object Float64Array]",wi="[object Int8Array]",Rr="[object Int16Array]",Rn="[object Int32Array]",Ne="[object Uint8Array]",Wi="[object Uint8ClampedArray]",Mr="[object Uint16Array]",Ze="[object Uint32Array]",rr=/\b__p \+= '';/g,cs=/\b(__p \+=) '' \+/g,br=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Hn=/&(?:amp|lt|gt|quot|#39);/g,Cr=/[&<>"']/g,fs=RegExp(Hn.source),dn=RegExp(Cr.source),ko=/<%-([\s\S]+?)%>/g,Bi=/<%([\s\S]+?)%>/g,ea=/<%=([\s\S]+?)%>/g,ta=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,jr=/^\w*$/,Xa=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Mo=/[\\^$.*+?()[\]{}|]/g,ri=RegExp(Mo.source),Oo=/^\s+/,Qa=/\s/,Ja=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ra=/\{\n\/\* \[wrapped with (.+)\] \*/,Ui=/,? & /,xn=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,hn=/[()=,{}\[\]\/\s]/,el=/\\(\\)?/g,xi=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,To=/\w*$/,ds=/^[-+]0x[0-9a-f]+$/i,Fn=/^0b[01]+$/i,Wn=/^\[object .+?Constructor\]$/,pn=/^0o[0-7]+$/i,na=/^(?:0|[1-9]\d*)$/,ia=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Ft=/($^)/,Me=/['\n\r\u2028\u2029\\]/g,vn="\\ud800-\\udfff",oa="\\u0300-\\u036f",tn="\\ufe20-\\ufe2f",wt="\\u20d0-\\u20ff",Bn=oa+tn+wt,Yi="\\u2700-\\u27bf",hs="a-z\\xdf-\\xf6\\xf8-\\xff",ne="\\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",oe="A-Z\\xc0-\\xd6\\xd8-\\xde",Ve="\\ufe0e\\ufe0f",pt=ne+w+P+j,ge="['\u2019]",Or="["+vn+"]",rn="["+pt+"]",_i="["+Bn+"]",Un="\\d+",B0="["+Yi+"]",gu="["+hs+"]",ps="[^"+vn+pt+Un+Yi+hs+oe+"]",sa="\\ud83c[\\udffb-\\udfff]",U0="(?:"+_i+"|"+sa+")",tl="[^"+vn+"]",rl="(?:\\ud83c[\\udde6-\\uddff]){2}",nl="[\\ud800-\\udbff][\\udc00-\\udfff]",Po="["+oe+"]",mu="\\u200d",Y0="(?:"+gu+"|"+ps+")",tf="(?:"+Po+"|"+ps+")",yu="(?:"+ge+"(?:d|ll|m|re|s|t|ve))?",ni="(?:"+ge+"(?:D|LL|M|RE|S|T|VE))?",Z0=U0+"?",V0="["+Ve+"]?",il="(?:"+mu+"(?:"+[tl,rl,nl].join("|")+")"+V0+Z0+")*",aa="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",rf="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",G0=V0+Z0+il,nf="(?:"+[B0,rl,nl].join("|")+")"+G0,of="(?:"+[tl+_i+"?",_i,rl,nl,Or].join("|")+")",bu=RegExp(ge,"g"),q0=RegExp(_i,"g"),Cu=RegExp(sa+"(?="+sa+")|"+of+G0,"g"),j0=RegExp([Po+"?"+gu+"+"+yu+"(?="+[rn,Po,"$"].join("|")+")",tf+"+"+ni+"(?="+[rn,Po+Y0,"$"].join("|")+")",Po+"?"+Y0+"+"+yu,Po+"+"+ni,rf,aa,Un,nf].join("|"),"g"),K0=RegExp("["+mu+vn+Bn+Ve+"]"),ol=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,sl=["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"],wu=-1,Wt={};Wt[qr]=Wt[Ut]=Wt[wi]=Wt[Rr]=Wt[Rn]=Wt[Ne]=Wt[Wi]=Wt[Mr]=Wt[Ze]=!0,Wt[at]=Wt[_e]=Wt[kr]=Wt[Be]=Wt[$n]=Wt[it]=Wt[Fe]=Wt[Zt]=Wt[sr]=Wt[je]=Wt[kt]=Wt[ur]=Wt[Je]=Wt[F]=Wt[Ke]=!1;var Nt={};Nt[at]=Nt[_e]=Nt[kr]=Nt[$n]=Nt[Be]=Nt[it]=Nt[qr]=Nt[Ut]=Nt[wi]=Nt[Rr]=Nt[Rn]=Nt[sr]=Nt[je]=Nt[kt]=Nt[ur]=Nt[Je]=Nt[F]=Nt[ie]=Nt[Ne]=Nt[Wi]=Nt[Mr]=Nt[Ze]=!0,Nt[Fe]=Nt[Zt]=Nt[Ke]=!1;var al={\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"},sf={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},X0={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},ii={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},af=parseFloat,lf=parseInt,ll=typeof Xl=="object"&&Xl&&Xl.Object===Object&&Xl,Q0=typeof self=="object"&&self&&self.Object===Object&&self,Vt=ll||Q0||Function("return this")(),la=n&&!n.nodeType&&n,Kr=la&&!0&&r&&!r.nodeType&&r,ua=Kr&&Kr.exports===la,ca=ua&&ll.process,Tr=function(){try{var R=Kr&&Kr.require&&Kr.require("util").types;return R||ca&&ca.binding&&ca.binding("util")}catch{}}(),J0=Tr&&Tr.isArrayBuffer,e1=Tr&&Tr.isDate,t1=Tr&&Tr.isMap,r1=Tr&&Tr.isRegExp,xu=Tr&&Tr.isSet,_u=Tr&&Tr.isTypedArray;function gn(R,K,Y){switch(Y.length){case 0:return R.call(K);case 1:return R.call(K,Y[0]);case 2:return R.call(K,Y[0],Y[1]);case 3:return R.call(K,Y[0],Y[1],Y[2])}return R.apply(K,Y)}function uf(R,K,Y,Se){for(var Xe=-1,St=R==null?0:R.length;++Xe<St;){var dr=R[Xe];K(Se,dr,Y(dr),R)}return Se}function _n(R,K){for(var Y=-1,Se=R==null?0:R.length;++Y<Se&&K(R[Y],Y,R)!==!1;);return R}function cf(R,K){for(var Y=R==null?0:R.length;Y--&&K(R[Y],Y,R)!==!1;);return R}function Lu(R,K){for(var Y=-1,Se=R==null?0:R.length;++Y<Se;)if(!K(R[Y],Y,R))return!1;return!0}function Zi(R,K){for(var Y=-1,Se=R==null?0:R.length,Xe=0,St=[];++Y<Se;){var dr=R[Y];K(dr,Y,R)&&(St[Xe++]=dr)}return St}function fa(R,K){var Y=R==null?0:R.length;return!!Y&&Ao(R,K,0)>-1}function vs(R,K,Y){for(var Se=-1,Xe=R==null?0:R.length;++Se<Xe;)if(Y(K,R[Se]))return!0;return!1}function Et(R,K){for(var Y=-1,Se=R==null?0:R.length,Xe=Array(Se);++Y<Se;)Xe[Y]=K(R[Y],Y,R);return Xe}function Vi(R,K){for(var Y=-1,Se=K.length,Xe=R.length;++Y<Se;)R[Xe+Y]=K[Y];return R}function Su(R,K,Y,Se){var Xe=-1,St=R==null?0:R.length;for(Se&&St&&(Y=R[++Xe]);++Xe<St;)Y=K(Y,R[Xe],Xe,R);return Y}function ff(R,K,Y,Se){var Xe=R==null?0:R.length;for(Se&&Xe&&(Y=R[--Xe]);Xe--;)Y=K(Y,R[Xe],Xe,R);return Y}function Eo(R,K){for(var Y=-1,Se=R==null?0:R.length;++Y<Se;)if(K(R[Y],Y,R))return!0;return!1}var fr=Mu("length");function df(R){return R.split("")}function n1(R){return R.match(xn)||[]}function gs(R,K,Y){var Se;return Y(R,function(Xe,St,dr){if(K(Xe,St,dr))return Se=St,!1}),Se}function ul(R,K,Y,Se){for(var Xe=R.length,St=Y+(Se?1:-1);Se?St--:++St<Xe;)if(K(R[St],St,R))return St;return-1}function Ao(R,K,Y){return K===K?c1(R,K,Y):ul(R,cl,Y)}function hf(R,K,Y,Se){for(var Xe=Y-1,St=R.length;++Xe<St;)if(Se(R[Xe],K))return Xe;return-1}function cl(R){return R!==R}function ku(R,K){var Y=R==null?0:R.length;return Y?Pu(R,K)/Y:or}function Mu(R){return function(K){return K==null?o:K[R]}}function Ou(R){return function(K){return R==null?o:R[K]}}function Tu(R,K,Y,Se,Xe){return Xe(R,function(St,dr,bt){Y=Se?(Se=!1,St):K(Y,St,dr,bt)}),Y}function i1(R,K){var Y=R.length;for(R.sort(K);Y--;)R[Y]=R[Y].value;return R}function Pu(R,K){for(var Y,Se=-1,Xe=R.length;++Se<Xe;){var St=K(R[Se]);St!==o&&(Y=Y===o?St:Y+St)}return Y}function Do(R,K){for(var Y=-1,Se=Array(R);++Y<R;)Se[Y]=K(Y);return Se}function Li(R,K){return Et(K,function(Y){return[Y,R[Y]]})}function da(R){return R&&R.slice(0,vl(R)+1).replace(Oo,"")}function Xr(R){return function(K){return R(K)}}function fl(R,K){return Et(K,function(Y){return R[Y]})}function nn(R,K){return R.has(K)}function Gi(R,K){for(var Y=-1,Se=R.length;++Y<Se&&Ao(K,R[Y],0)>-1;);return Y}function dl(R,K){for(var Y=R.length;Y--&&Ao(K,R[Y],0)>-1;);return Y}function pf(R,K){for(var Y=R.length,Se=0;Y--;)R[Y]===K&&++Se;return Se}var o1=Ou(al),vf=Ou(sf);function s1(R){return"\\"+ii[R]}function Eu(R,K){return R==null?o:R[K]}function Yn(R){return K0.test(R)}function oi(R){return ol.test(R)}function a1(R){for(var K,Y=[];!(K=R.next()).done;)Y.push(K.value);return Y}function hl(R){var K=-1,Y=Array(R.size);return R.forEach(function(Se,Xe){Y[++K]=[Xe,Se]}),Y}function l1(R,K){return function(Y){return R(K(Y))}}function qi(R,K){for(var Y=-1,Se=R.length,Xe=0,St=[];++Y<Se;){var dr=R[Y];(dr===K||dr===I)&&(R[Y]=I,St[Xe++]=Y)}return St}function pl(R){var K=-1,Y=Array(R.size);return R.forEach(function(Se){Y[++K]=Se}),Y}function u1(R){var K=-1,Y=Array(R.size);return R.forEach(function(Se){Y[++K]=[Se,Se]}),Y}function c1(R,K,Y){for(var Se=Y-1,Xe=R.length;++Se<Xe;)if(R[Se]===K)return Se;return-1}function ha(R,K,Y){for(var Se=Y+1;Se--;)if(R[Se]===K)return Se;return Se}function Io(R){return Yn(R)?f1(R):fr(R)}function Ln(R){return Yn(R)?ml(R):df(R)}function vl(R){for(var K=R.length;K--&&Qa.test(R.charAt(K)););return K}var gl=Ou(X0);function f1(R){for(var K=Cu.lastIndex=0;Cu.test(R);)++K;return K}function ml(R){return R.match(Cu)||[]}function Zn(R){return R.match(j0)||[]}var d1=function R(K){K=K==null?Vt:ji.defaults(Vt.Object(),K,ji.pick(Vt,sl));var Y=K.Array,Se=K.Date,Xe=K.Error,St=K.Function,dr=K.Math,bt=K.Object,Ki=K.RegExp,ms=K.String,on=K.TypeError,ys=Y.prototype,h1=St.prototype,Xi=bt.prototype,si=K["__core-js_shared__"],ai=h1.toString,et=Xi.hasOwnProperty,Qi=0,Si=function(){var i=/[^.]+$/.exec(si&&si.keys&&si.keys.IE_PROTO||"");return i?"Symbol(src)_1."+i:""}(),zo=Xi.toString,gf=ai.call(bt),p1=Vt._,pa=Ki("^"+ai.call(et).replace(Mo,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),va=ua?K.Buffer:o,ki=K.Symbol,No=K.Uint8Array,v1=va?va.allocUnsafe:o,bs=l1(bt.getPrototypeOf,bt),Au=bt.create,yl=Xi.propertyIsEnumerable,Cs=ys.splice,$o=ki?ki.isConcatSpreadable:o,Ji=ki?ki.iterator:o,eo=ki?ki.toStringTag:o,Ro=function(){try{var i=Go(bt,"defineProperty");return i({},"",{}),i}catch{}}(),mf=K.clearTimeout!==Vt.clearTimeout&&K.clearTimeout,yf=Se&&Se.now!==Vt.Date.now&&Se.now,bf=K.setTimeout!==Vt.setTimeout&&K.setTimeout,ws=dr.ceil,xs=dr.floor,to=bt.getOwnPropertySymbols,ga=va?va.isBuffer:o,g1=K.isFinite,bl=ys.join,m1=l1(bt.keys,bt),Gt=dr.max,Pr=dr.min,Ho=Se.now,ma=K.parseInt,ro=dr.random,ya=ys.reverse,no=Go(K,"DataView"),_s=Go(K,"Map"),Cl=Go(K,"Promise"),Fo=Go(K,"Set"),ba=Go(K,"WeakMap"),Vn=Go(bt,"create"),li=ba&&new ba,Ls={},Cf=$t(no),wf=$t(_s),xf=$t(Cl),_f=$t(Fo),Lf=$t(ba),Er=ki?ki.prototype:o,qt=Er?Er.valueOf:o,Ar=Er?Er.toString:o;function _(i){if(lr(i)&&!lt(i)&&!(i instanceof vt)){if(i instanceof Qr)return i;if(et.call(i,"__wrapped__"))return Yr(i)}return new Qr(i)}var ui=function(){function i(){}return function(l){if(!ir(l))return{};if(Au)return Au(l);i.prototype=l;var d=new i;return i.prototype=o,d}}();function wl(){}function Qr(i,l){this.__wrapped__=i,this.__actions__=[],this.__chain__=!!l,this.__index__=0,this.__values__=o}_.templateSettings={escape:ko,evaluate:Bi,interpolate:ea,variable:"",imports:{_}},_.prototype=wl.prototype,_.prototype.constructor=_,Qr.prototype=ui(wl.prototype),Qr.prototype.constructor=Qr;function vt(i){this.__wrapped__=i,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Rt,this.__views__=[]}function Sf(){var i=new vt(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 kf(){if(this.__filtered__){var i=new vt(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=lt(i),g=l<0,x=d?i.length:0,L=Zl(0,x,this.__views__),A=L.start,z=L.end,H=z-A,ee=g?z:A-1,te=this.__iteratees__,se=te.length,xe=0,ze=Pr(H,this.__takeCount__);if(!d||!g&&x==H&&ze==H)return R1(i,this.__actions__);var Ge=[];e:for(;H--&&xe<ze;){ee+=l;for(var dt=-1,qe=i[ee];++dt<se;){var yt=te[dt],Ct=yt.iteratee,jn=yt.type,wn=Ct(qe);if(jn==T)qe=wn;else if(!wn){if(jn==D)continue e;break e}}Ge[xe++]=qe}return Ge}vt.prototype=ui(wl.prototype),vt.prototype.constructor=vt;function io(i){var l=-1,d=i==null?0:i.length;for(this.clear();++l<d;){var g=i[l];this.set(g[0],g[1])}}function Iu(){this.__data__=Vn?Vn(null):{},this.size=0}function Mf(i){var l=this.has(i)&&delete this.__data__[i];return this.size-=l?1:0,l}function zu(i){var l=this.__data__;if(Vn){var d=l[i];return d===k?o:d}return et.call(l,i)?l[i]:o}function Nu(i){var l=this.__data__;return Vn?l[i]!==o:et.call(l,i)}function y1(i,l){var d=this.__data__;return this.size+=this.has(i)?0:1,d[i]=Vn&&l===o?k:l,this}io.prototype.clear=Iu,io.prototype.delete=Mf,io.prototype.get=zu,io.prototype.has=Nu,io.prototype.set=y1;function ci(i){var l=-1,d=i==null?0:i.length;for(this.clear();++l<d;){var g=i[l];this.set(g[0],g[1])}}function $u(){this.__data__=[],this.size=0}function b1(i){var l=this.__data__,d=Wo(l,i);if(d<0)return!1;var g=l.length-1;return d==g?l.pop():Cs.call(l,d,1),--this.size,!0}function Ca(i){var l=this.__data__,d=Wo(l,i);return d<0?o:l[d][1]}function Of(i){return Wo(this.__data__,i)>-1}function xl(i,l){var d=this.__data__,g=Wo(d,i);return g<0?(++this.size,d.push([i,l])):d[g][1]=l,this}ci.prototype.clear=$u,ci.prototype.delete=b1,ci.prototype.get=Ca,ci.prototype.has=Of,ci.prototype.set=xl;function nr(i){var l=-1,d=i==null?0:i.length;for(this.clear();++l<d;){var g=i[l];this.set(g[0],g[1])}}function C1(){this.size=0,this.__data__={hash:new io,map:new(_s||ci),string:new io}}function Tf(i){var l=Yl(this,i).delete(i);return this.size-=l?1:0,l}function w1(i){return Yl(this,i).get(i)}function mn(i){return Yl(this,i).has(i)}function xt(i,l){var d=Yl(this,i),g=d.size;return d.set(i,l),this.size+=d.size==g?0:1,this}nr.prototype.clear=C1,nr.prototype.delete=Tf,nr.prototype.get=w1,nr.prototype.has=mn,nr.prototype.set=xt;function Dr(i){var l=-1,d=i==null?0:i.length;for(this.__data__=new nr;++l<d;)this.add(i[l])}function oo(i){return this.__data__.set(i,k),this}function so(i){return this.__data__.has(i)}Dr.prototype.add=Dr.prototype.push=oo,Dr.prototype.has=so;function Sn(i){var l=this.__data__=new ci(i);this.size=l.size}function Ru(){this.__data__=new ci,this.size=0}function x1(i){var l=this.__data__,d=l.delete(i);return this.size=l.size,d}function Pf(i){return this.__data__.get(i)}function Hu(i){return this.__data__.has(i)}function wa(i,l){var d=this.__data__;if(d instanceof ci){var g=d.__data__;if(!_s||g.length<f-1)return g.push([i,l]),this.size=++d.size,this;d=this.__data__=new nr(g)}return d.set(i,l),this.size=d.size,this}Sn.prototype.clear=Ru,Sn.prototype.delete=x1,Sn.prototype.get=Pf,Sn.prototype.has=Hu,Sn.prototype.set=wa;function Fu(i,l){var d=lt(i),g=!d&&Na(i),x=!d&&!g&&Us(i),L=!d&&!g&&!x&&Gl(i),A=d||g||x||L,z=A?Do(i.length,ms):[],H=z.length;for(var ee in i)(l||et.call(i,ee))&&!(A&&(ee=="length"||x&&(ee=="offset"||ee=="parent")||L&&(ee=="buffer"||ee=="byteLength"||ee=="byteOffset")||m(ee,H)))&&z.push(ee);return z}function _l(i){var l=i.length;return l?i[Il(0,l-1)]:o}function ao(i,l){return Lr(_r(i),Bo(l,0,i.length))}function _1(i){return Lr(_r(i))}function Ll(i,l,d){(d!==o&&!Ai(i[l],d)||d===o&&!(l in i))&&fi(i,l,d)}function xa(i,l,d){var g=i[l];(!(et.call(i,l)&&Ai(g,d))||d===o&&!(l in i))&&fi(i,l,d)}function Wo(i,l){for(var d=i.length;d--;)if(Ai(i[d][0],l))return d;return-1}function Wu(i,l,d,g){return yn(i,function(x,L,A){l(g,x,d(x),A)}),g}function Bu(i,l){return i&&sn(l,Vr(l),i)}function Ef(i,l){return i&&sn(l,Pn(l),i)}function fi(i,l,d){l=="__proto__"&&Ro?Ro(i,l,{configurable:!0,enumerable:!0,value:d,writable:!0}):i[l]=d}function Uu(i,l){for(var d=-1,g=l.length,x=Y(g),L=i==null;++d<g;)x[d]=L?o:Gf(i,l[d]);return x}function Bo(i,l,d){return i===i&&(d!==o&&(i=i<=d?i:d),l!==o&&(i=i>=l?i:l)),i}function Jr(i,l,d,g,x,L){var A,z=l&U,H=l&q,ee=l&X;if(d&&(A=x?d(i,g,x,L):d(i)),A!==o)return A;if(!ir(i))return i;var te=lt(i);if(te){if(A=a(i),!z)return _r(i,A)}else{var se=Wr(i),xe=se==Zt||se==Gr;if(Us(i))return e0(i,z);if(se==kt||se==at||xe&&!x){if(A=H||xe?{}:s(i),!z)return H?U1(i,Ef(A,i)):Hf(i,Bu(A,i))}else{if(!Nt[se])return x?i:{};A=u(i,se,z)}}L||(L=new Sn);var ze=L.get(i);if(ze)return ze;L.set(i,A),Wh(i)?i.forEach(function(qe){A.add(Jr(qe,l,d,qe,i,L))}):Hh(i)&&i.forEach(function(qe,yt){A.set(yt,Jr(qe,l,d,yt,i,L))});var Ge=ee?H?Ul:Ia:H?Pn:Vr,dt=te?o:Ge(i);return _n(dt||i,function(qe,yt){dt&&(yt=qe,qe=i[yt]),xa(A,yt,Jr(qe,l,d,yt,i,L))}),A}function L1(i){var l=Vr(i);return function(d){return S1(d,i,l)}}function S1(i,l,d){var g=d.length;if(i==null)return!g;for(i=bt(i);g--;){var x=d[g],L=l[x],A=i[x];if(A===o&&!(x in i)||!L(A))return!1}return!0}function k1(i,l,d){if(typeof i!="function")throw new on(y);return It(function(){i.apply(o,d)},l)}function Ss(i,l,d,g){var x=-1,L=fa,A=!0,z=i.length,H=[],ee=l.length;if(!z)return H;d&&(l=Et(l,Xr(d))),g?(L=vs,A=!1):l.length>=f&&(L=nn,A=!1,l=new Dr(l));e:for(;++x<z;){var te=i[x],se=d==null?te:d(te);if(te=g||te!==0?te:0,A&&se===se){for(var xe=ee;xe--;)if(l[xe]===se)continue e;H.push(te)}else L(l,se,g)||H.push(te)}return H}var yn=Y1(bn),Sl=Y1(Ol,!0);function kl(i,l){var d=!0;return yn(i,function(g,x,L){return d=!!l(g,x,L),d}),d}function _a(i,l,d){for(var g=-1,x=i.length;++g<x;){var L=i[g],A=l(L);if(A!=null&&(z===o?A===A&&!qn(A):d(A,z)))var z=A,H=L}return H}function Yu(i,l,d,g){var x=i.length;for(d=ct(d),d<0&&(d=-d>x?0:x+d),g=g===o||g>x?x:ct(g),g<0&&(g+=x),g=d>g?0:Uh(g);d<g;)i[d++]=l;return i}function Zu(i,l){var d=[];return yn(i,function(g,x,L){l(g,x,L)&&d.push(g)}),d}function Ir(i,l,d,g,x){var L=-1,A=i.length;for(d||(d=p),x||(x=[]);++L<A;){var z=i[L];l>0&&d(z)?l>1?Ir(z,l-1,d,g,x):Vi(x,z):g||(x[x.length]=z)}return x}var Ml=Z1(),wr=Z1(!0);function bn(i,l){return i&&Ml(i,l,Vr)}function Ol(i,l){return i&&wr(i,l,Vr)}function La(i,l){return Zi(l,function(d){return Ko(i[d])})}function lo(i,l){l=Gn(l,i);for(var d=0,g=l.length;i!=null&&d<g;)i=i[At(l[d++])];return d&&d==g?i:o}function Uo(i,l,d){var g=l(i);return lt(i)?g:Vi(g,d(i))}function xr(i){return i==null?i===o?V:mt:eo&&eo in bt(i)?Jt(i):we(i)}function Tl(i,l){return i>l}function M1(i,l){return i!=null&&et.call(i,l)}function O1(i,l){return i!=null&&l in bt(i)}function ks(i,l,d){return i>=Pr(l,d)&&i<Gt(l,d)}function Pl(i,l,d){for(var g=d?vs:fa,x=i[0].length,L=i.length,A=L,z=Y(L),H=1/0,ee=[];A--;){var te=i[A];A&&l&&(te=Et(te,Xr(l))),H=Pr(te.length,H),z[A]=!d&&(l||x>=120&&te.length>=120)?new Dr(A&&te):o}te=i[0];var se=-1,xe=z[0];e:for(;++se<x&&ee.length<H;){var ze=te[se],Ge=l?l(ze):ze;if(ze=d||ze!==0?ze:0,!(xe?nn(xe,Ge):g(ee,Ge,d))){for(A=L;--A;){var dt=z[A];if(!(dt?nn(dt,Ge):g(i[A],Ge,d)))continue e}xe&&xe.push(Ge),ee.push(ze)}}return ee}function El(i,l,d,g){return bn(i,function(x,L,A){l(g,d(x),L,A)}),g}function Ms(i,l,d){l=Gn(l,i),i=Pe(i,l);var g=i==null?i:i[At(hi(l))];return g==null?o:gn(g,i,d)}function Os(i){return lr(i)&&xr(i)==at}function Af(i){return lr(i)&&xr(i)==kr}function Ts(i){return lr(i)&&xr(i)==it}function Ps(i,l,d,g,x){return i===l?!0:i==null||l==null||!lr(i)&&!lr(l)?i!==i&&l!==l:T1(i,l,d,g,Ps,x)}function T1(i,l,d,g,x,L){var A=lt(i),z=lt(l),H=A?_e:Wr(i),ee=z?_e:Wr(l);H=H==at?kt:H,ee=ee==at?kt:ee;var te=H==kt,se=ee==kt,xe=H==ee;if(xe&&Us(i)){if(!Us(l))return!1;A=!0,te=!1}if(xe&&!te)return L||(L=new Sn),A||Gl(i)?s0(i,l,d,g,x,L):Q1(i,l,H,d,g,x,L);if(!(d&ue)){var ze=te&&et.call(i,"__wrapped__"),Ge=se&&et.call(l,"__wrapped__");if(ze||Ge){var dt=ze?i.value():i,qe=Ge?l.value():l;return L||(L=new Sn),x(dt,qe,d,g,L)}}return xe?(L||(L=new Sn),J1(i,l,d,g,x,L)):!1}function P1(i){return lr(i)&&Wr(i)==sr}function Yo(i,l,d,g){var x=d.length,L=x,A=!g;if(i==null)return!L;for(i=bt(i);x--;){var z=d[x];if(A&&z[2]?z[1]!==i[z[0]]:!(z[0]in i))return!1}for(;++x<L;){z=d[x];var H=z[0],ee=i[H],te=z[1];if(A&&z[2]){if(ee===o&&!(H in i))return!1}else{var se=new Sn;if(g)var xe=g(ee,te,H,i,l,se);if(!(xe===o?Ps(te,ee,ue|Ce,g,se):xe))return!1}}return!0}function Es(i){if(!ir(i)||$(i))return!1;var l=Ko(i)?pa:Wn;return l.test($t(i))}function Sa(i){return lr(i)&&xr(i)==ur}function ka(i){return lr(i)&&Wr(i)==Je}function E1(i){return lr(i)&&sc(i.length)&&!!Wt[xr(i)]}function A1(i){return typeof i=="function"?i:i==null?En:typeof i=="object"?lt(i)?Vu(i[0],i[1]):D1(i):ep(i)}function Al(i){if(!Z(i))return m1(i);var l=[];for(var d in bt(i))et.call(i,d)&&d!="constructor"&&l.push(d);return l}function uo(i){if(!ir(i))return fe(i);var l=Z(i),d=[];for(var g in i)g=="constructor"&&(l||!et.call(i,g))||d.push(g);return d}function co(i,l){return i<l}function As(i,l){var d=-1,g=Tn(i)?Y(i.length):[];return yn(i,function(x,L,A){g[++d]=l(x,L,A)}),g}function D1(i){var l=Fs(i);return l.length==1&&l[0][2]?ae(l[0][0],l[0][1]):function(d){return d===i||Yo(d,i,l)}}function Vu(i,l){return C(i)&&Q(l)?ae(At(i),l):function(d){var g=Gf(d,i);return g===o&&g===l?qf(d,i):Ps(l,g,ue|Ce)}}function Dl(i,l,d,g,x){i!==l&&Ml(l,function(L,A){if(x||(x=new Sn),ir(L))Df(i,l,A,d,Dl,g,x);else{var z=g?g(Mt(i,A),L,A+"",i,l,x):o;z===o&&(z=L),Ll(i,A,z)}},Pn)}function Df(i,l,d,g,x,L,A){var z=Mt(i,d),H=Mt(l,d),ee=A.get(H);if(ee){Ll(i,d,ee);return}var te=L?L(z,H,d+"",i,l,A):o,se=te===o;if(se){var xe=lt(H),ze=!xe&&Us(H),Ge=!xe&&!ze&&Gl(H);te=H,xe||ze||Ge?lt(z)?te=z:vr(z)?te=_r(z):ze?(se=!1,te=e0(H,!0)):Ge?(se=!1,te=F1(H,!0)):te=[]:u0(H)||Na(H)?(te=z,Na(z)?te=Yh(z):(!ir(z)||Ko(z))&&(te=s(H))):se=!1}se&&(A.set(H,te),x(te,H,g,L,A),A.delete(H)),Ll(i,d,te)}function I1(i,l){var d=i.length;if(!!d)return l+=l<0?d:0,m(l,d)?i[l]:o}function Hr(i,l,d){l.length?l=Et(l,function(L){return lt(L)?function(A){return lo(A,L.length===1?L[0]:L)}:L}):l=[En];var g=-1;l=Et(l,Xr(Re()));var x=As(i,function(L,A,z){var H=Et(l,function(ee){return ee(L)});return{criteria:H,index:++g,value:L}});return i1(x,function(L,A){return W1(L,A,d)})}function z1(i,l){return N1(i,l,function(d,g){return qf(i,g)})}function N1(i,l,d){for(var g=-1,x=l.length,L={};++g<x;){var A=l[g],z=lo(i,A);d(z,A)&&Mi(L,Gn(A,i),z)}return L}function If(i){return function(l){return lo(l,i)}}function Gu(i,l,d,g){var x=g?hf:Ao,L=-1,A=l.length,z=i;for(i===l&&(l=_r(l)),d&&(z=Et(i,Xr(d)));++L<A;)for(var H=0,ee=l[L],te=d?d(ee):ee;(H=x(z,te,H,g))>-1;)z!==i&&Cs.call(z,H,1),Cs.call(i,H,1);return i}function qu(i,l){for(var d=i?l.length:0,g=d-1;d--;){var x=l[d];if(d==g||x!==L){var L=x;m(x)?Cs.call(i,x,1):Ta(i,x)}}return i}function Il(i,l){return i+xs(ro()*(l-i+1))}function $1(i,l,d,g){for(var x=-1,L=Gt(ws((l-i)/(d||1)),0),A=Y(L);L--;)A[g?L:++x]=i,i+=d;return A}function ju(i,l){var d="";if(!i||l<1||l>nt)return d;do l%2&&(d+=i),l=xs(l/2),l&&(i+=i);while(l);return d}function ut(i,l){return Br(Ie(i,l,En),i+"")}function zf(i){return _l(ql(i))}function fo(i,l){var d=ql(i);return Lr(d,Bo(l,0,d.length))}function Mi(i,l,d,g){if(!ir(i))return i;l=Gn(l,i);for(var x=-1,L=l.length,A=L-1,z=i;z!=null&&++x<L;){var H=At(l[x]),ee=d;if(H==="__proto__"||H==="constructor"||H==="prototype")return i;if(x!=A){var te=z[H];ee=g?g(te,H,z):o,ee===o&&(ee=ir(te)?te:m(l[x+1])?[]:{})}xa(z,H,ee),z=z[H]}return i}var Ma=li?function(i,l){return li.set(i,l),i}:En,Oa=Ro?function(i,l){return Ro(i,"toString",{configurable:!0,enumerable:!1,value:Kf(l),writable:!0})}:En;function Oi(i){return Lr(ql(i))}function kn(i,l,d){var g=-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);++g<x;)L[g]=i[g+l];return L}function Nf(i,l){var d;return yn(i,function(g,x,L){return d=l(g,x,L),!d}),!!d}function Ti(i,l,d){var g=0,x=i==null?g:i.length;if(typeof l=="number"&&l===l&&x<=Qt){for(;g<x;){var L=g+x>>>1,A=i[L];A!==null&&!qn(A)&&(d?A<=l:A<l)?g=L+1:x=L}return x}return zl(i,l,En,d)}function zl(i,l,d,g){var x=0,L=i==null?0:i.length;if(L===0)return 0;l=d(l);for(var A=l!==l,z=l===null,H=qn(l),ee=l===o;x<L;){var te=xs((x+L)/2),se=d(i[te]),xe=se!==o,ze=se===null,Ge=se===se,dt=qn(se);if(A)var qe=g||Ge;else ee?qe=Ge&&(g||xe):z?qe=Ge&&xe&&(g||!ze):H?qe=Ge&&xe&&!ze&&(g||!dt):ze||dt?qe=!1:qe=g?se<=l:se<l;qe?x=te+1:L=te}return Pr(L,fn)}function Ku(i,l){for(var d=-1,g=i.length,x=0,L=[];++d<g;){var A=i[d],z=l?l(A):A;if(!d||!Ai(z,H)){var H=z;L[x++]=A===0?0:A}}return L}function Xu(i){return typeof i=="number"?i:qn(i)?or:+i}function Fr(i){if(typeof i=="string")return i;if(lt(i))return Et(i,Fr)+"";if(qn(i))return Ar?Ar.call(i):"";var l=i+"";return l=="0"&&1/i==-ve?"-0":l}function Cn(i,l,d){var g=-1,x=fa,L=i.length,A=!0,z=[],H=z;if(d)A=!1,x=vs;else if(L>=f){var ee=l?null:Da(i);if(ee)return pl(ee);A=!1,x=nn,H=new Dr}else H=l?[]:z;e:for(;++g<L;){var te=i[g],se=l?l(te):te;if(te=d||te!==0?te:0,A&&se===se){for(var xe=H.length;xe--;)if(H[xe]===se)continue e;l&&H.push(se),z.push(te)}else x(H,se,d)||(H!==z&&H.push(se),z.push(te))}return z}function Ta(i,l){return l=Gn(l,i),i=Pe(i,l),i==null||delete i[At(hi(l))]}function Nl(i,l,d,g){return Mi(i,l,d(lo(i,l)),g)}function Ds(i,l,d,g){for(var x=i.length,L=g?x:-1;(g?L--:++L<x)&&l(i[L],L,i););return d?kn(i,g?0:L,g?L+1:x):kn(i,g?L+1:0,g?x:L)}function R1(i,l){var d=i;return d instanceof vt&&(d=d.value()),Su(l,function(g,x){return x.func.apply(x.thisArg,Vi([g],x.args))},d)}function Zo(i,l,d){var g=i.length;if(g<2)return g?Cn(i[0]):[];for(var x=-1,L=Y(g);++x<g;)for(var A=i[x],z=-1;++z<g;)z!=x&&(L[x]=Ss(L[x]||A,i[z],l,d));return Cn(Ir(L,1),l,d)}function Qu(i,l,d){for(var g=-1,x=i.length,L=l.length,A={};++g<x;){var z=g<L?l[g]:o;d(A,i[g],z)}return A}function Ju(i){return vr(i)?i:[]}function $l(i){return typeof i=="function"?i:En}function Gn(i,l){return lt(i)?i:C(i,l)?[i]:hr(zt(i))}var $f=ut;function ho(i,l,d){var g=i.length;return d=d===o?g:d,!l&&d>=g?i:kn(i,l,d)}var Is=mf||function(i){return Vt.clearTimeout(i)};function e0(i,l){if(l)return i.slice();var d=i.length,g=v1?v1(d):new i.constructor(d);return i.copy(g),g}function Rl(i){var l=new i.constructor(i.byteLength);return new No(l).set(new No(i)),l}function Rf(i,l){var d=l?Rl(i.buffer):i.buffer;return new i.constructor(d,i.byteOffset,i.byteLength)}function t0(i){var l=new i.constructor(i.source,To.exec(i));return l.lastIndex=i.lastIndex,l}function H1(i){return qt?bt(qt.call(i)):{}}function F1(i,l){var d=l?Rl(i.buffer):i.buffer;return new i.constructor(d,i.byteOffset,i.length)}function r0(i,l){if(i!==l){var d=i!==o,g=i===null,x=i===i,L=qn(i),A=l!==o,z=l===null,H=l===l,ee=qn(l);if(!z&&!ee&&!L&&i>l||L&&A&&H&&!z&&!ee||g&&A&&H||!d&&H||!x)return 1;if(!g&&!L&&!ee&&i<l||ee&&d&&x&&!g&&!L||z&&d&&x||!A&&x||!H)return-1}return 0}function W1(i,l,d){for(var g=-1,x=i.criteria,L=l.criteria,A=x.length,z=d.length;++g<A;){var H=r0(x[g],L[g]);if(H){if(g>=z)return H;var ee=d[g];return H*(ee=="desc"?-1:1)}}return i.index-l.index}function B1(i,l,d,g){for(var x=-1,L=i.length,A=d.length,z=-1,H=l.length,ee=Gt(L-A,0),te=Y(H+ee),se=!g;++z<H;)te[z]=l[z];for(;++x<A;)(se||x<L)&&(te[d[x]]=i[x]);for(;ee--;)te[z++]=i[x++];return te}function Hl(i,l,d,g){for(var x=-1,L=i.length,A=-1,z=d.length,H=-1,ee=l.length,te=Gt(L-z,0),se=Y(te+ee),xe=!g;++x<te;)se[x]=i[x];for(var ze=x;++H<ee;)se[ze+H]=l[H];for(;++A<z;)(xe||x<L)&&(se[ze+d[A]]=i[x++]);return se}function _r(i,l){var d=-1,g=i.length;for(l||(l=Y(g));++d<g;)l[d]=i[d];return l}function sn(i,l,d,g){var x=!d;d||(d={});for(var L=-1,A=l.length;++L<A;){var z=l[L],H=g?g(d[z],i[z],z,d,i):o;H===o&&(H=i[z]),x?fi(d,z,H):xa(d,z,H)}return d}function Hf(i,l){return sn(i,a0(i),l)}function U1(i,l){return sn(i,ec(i),l)}function Fl(i,l){return function(d,g){var x=lt(d)?uf:Wu,L=l?l():{};return x(d,i,Re(g,2),L)}}function zs(i){return ut(function(l,d){var g=-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&&b(d[0],d[1],A)&&(L=x<3?o:L,x=1),l=bt(l);++g<x;){var z=d[g];z&&i(l,z,g,L)}return l})}function Y1(i,l){return function(d,g){if(d==null)return d;if(!Tn(d))return i(d,g);for(var x=d.length,L=l?x:-1,A=bt(d);(l?L--:++L<x)&&g(A[L],L,A)!==!1;);return d}}function Z1(i){return function(l,d,g){for(var x=-1,L=bt(l),A=g(l),z=A.length;z--;){var H=A[i?z:++x];if(d(L[H],H,L)===!1)break}return l}}function V1(i,l,d){var g=l&me,x=$s(i);function L(){var A=this&&this!==Vt&&this instanceof L?x:i;return A.apply(g?d:this,arguments)}return L}function G1(i){return function(l){l=zt(l);var d=Yn(l)?Ln(l):o,g=d?d[0]:l.charAt(0),x=d?ho(d,1).join(""):l.slice(1);return g[i]()+x}}function Ns(i){return function(l){return Su(Qh(Xh(l).replace(bu,"")),i,"")}}function $s(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=ui(i.prototype),g=i.apply(d,l);return ir(g)?g:d}}function n0(i,l,d){var g=$s(i);function x(){for(var L=arguments.length,A=Y(L),z=L,H=Hs(x);z--;)A[z]=arguments[z];var ee=L<3&&A[0]!==H&&A[L-1]!==H?[]:qi(A,H);if(L-=ee.length,L<d)return K1(i,l,Pa,x.placeholder,o,A,ee,o,o,d-L);var te=this&&this!==Vt&&this instanceof x?g:i;return gn(te,this,A)}return x}function i0(i){return function(l,d,g){var x=bt(l);if(!Tn(l)){var L=Re(d,3);l=Vr(l),d=function(z){return L(x[z],z,x)}}var A=i(l,d,g);return A>-1?x[L?l[A]:A]:o}}function q1(i){return Pi(function(l){var d=l.length,g=d,x=Qr.prototype.thru;for(i&&l.reverse();g--;){var L=l[g];if(typeof L!="function")throw new on(y);if(x&&!A&&za(L)=="wrapper")var A=new Qr([],!0)}for(g=A?g:d;++g<d;){L=l[g];var z=za(L),H=z=="wrapper"?_t(L):o;H&&M(H[0])&&H[1]==(We|he|Te|Qe)&&!H[4].length&&H[9]==1?A=A[za(H[0])].apply(A,H[3]):A=L.length==1&&M(L)?A[z]():A.thru(L)}return function(){var ee=arguments,te=ee[0];if(A&&ee.length==1&&lt(te))return A.plant(te).value();for(var se=0,xe=d?l[se].apply(this,ee):te;++se<d;)xe=l[se].call(this,xe);return xe}})}function Pa(i,l,d,g,x,L,A,z,H,ee){var te=l&We,se=l&me,xe=l&Ee,ze=l&(he|de),Ge=l&tt,dt=xe?o:$s(i);function qe(){for(var yt=arguments.length,Ct=Y(yt),jn=yt;jn--;)Ct[jn]=arguments[jn];if(ze)var wn=Hs(qe),Kn=pf(Ct,wn);if(g&&(Ct=B1(Ct,g,x,ze)),L&&(Ct=Hl(Ct,L,A,ze)),yt-=Kn,ze&&yt<ee){var gr=qi(Ct,wn);return K1(i,l,Pa,qe.placeholder,d,Ct,gr,z,H,ee-yt)}var Di=se?d:this,Qo=xe?Di[i]:i;return yt=Ct.length,z?Ct=st(Ct,z):Ge&&yt>1&&Ct.reverse(),te&&H<yt&&(Ct.length=H),this&&this!==Vt&&this instanceof qe&&(Qo=dt||$s(Qo)),Qo.apply(Di,Ct)}return qe}function Vo(i,l){return function(d,g){return El(d,i,l(g),{})}}function Ea(i,l){return function(d,g){var x;if(d===o&&g===o)return l;if(d!==o&&(x=d),g!==o){if(x===o)return g;typeof d=="string"||typeof g=="string"?(d=Fr(d),g=Fr(g)):(d=Xu(d),g=Xu(g)),x=i(d,g)}return x}}function Rs(i){return Pi(function(l){return l=Et(l,Xr(Re())),ut(function(d){var g=this;return i(l,function(x){return gn(x,g,d)})})})}function Wl(i,l){l=l===o?" ":Fr(l);var d=l.length;if(d<2)return d?ju(l,i):l;var g=ju(l,ws(i/Io(l)));return Yn(l)?ho(Ln(g),0,i).join(""):g.slice(0,i)}function Ff(i,l,d,g){var x=l&me,L=$s(i);function A(){for(var z=-1,H=arguments.length,ee=-1,te=g.length,se=Y(te+H),xe=this&&this!==Vt&&this instanceof A?L:i;++ee<te;)se[ee]=g[ee];for(;H--;)se[ee++]=arguments[++z];return gn(xe,x?d:this,se)}return A}function j1(i){return function(l,d,g){return g&&typeof g!="number"&&b(l,d,g)&&(d=g=o),l=Xo(l),d===o?(d=l,l=0):d=Xo(d),g=g===o?l<d?1:-1:Xo(g),$1(l,d,g,i)}}function Dt(i){return function(l,d){return typeof l=="string"&&typeof d=="string"||(l=pi(l),d=pi(d)),i(l,d)}}function K1(i,l,d,g,x,L,A,z,H,ee){var te=l&he,se=te?A:o,xe=te?o:A,ze=te?L:o,Ge=te?o:L;l|=te?Te:$e,l&=~(te?$e:Te),l&Ae||(l&=~(me|Ee));var dt=[i,l,x,ze,se,Ge,xe,z,H,ee],qe=d.apply(o,dt);return M(i)&&ar(qe,dt),qe.placeholder=g,Ur(qe,i,l)}function Aa(i){var l=dr[i];return function(d,g){if(d=pi(d),g=g==null?0:Pr(ct(g),292),g&&g1(d)){var x=(zt(d)+"e").split("e"),L=l(x[0]+"e"+(+x[1]+g));return x=(zt(L)+"e").split("e"),+(x[0]+"e"+(+x[1]-g))}return l(d)}}var Da=Fo&&1/pl(new Fo([,-0]))[1]==ve?function(i){return new Fo(i)}:Jf;function Mn(i){return function(l){var d=Wr(l);return d==sr?hl(l):d==Je?u1(l):Li(l,i(l))}}function On(i,l,d,g,x,L,A,z){var H=l&Ee;if(!H&&typeof i!="function")throw new on(y);var ee=g?g.length:0;if(ee||(l&=~(Te|$e),g=x=o),A=A===o?A:Gt(ct(A),0),z=z===o?z:ct(z),ee-=x?x.length:0,l&$e){var te=g,se=x;g=x=o}var xe=H?o:_t(i),ze=[i,l,d,g,x,te,se,L,A,z];if(xe&&be(ze,xe),i=ze[0],l=ze[1],d=ze[2],g=ze[3],x=ze[4],z=ze[9]=ze[9]===o?H?0:i.length:Gt(ze[9]-ee,0),!z&&l&(he|de)&&(l&=~(he|de)),!l||l==me)var Ge=V1(i,l,d);else l==he||l==de?Ge=n0(i,l,z):(l==Te||l==(me|Te))&&!x.length?Ge=Ff(i,l,d,g):Ge=Pa.apply(o,ze);var dt=xe?Ma:ar;return Ur(dt(Ge,ze),i,l)}function Bl(i,l,d,g){return i===o||Ai(i,Xi[d])&&!et.call(g,d)?l:i}function o0(i,l,d,g,x,L){return ir(i)&&ir(l)&&(L.set(l,i),Dl(i,l,o,o0,L),L.delete(l)),i}function X1(i){return u0(i)?o:i}function s0(i,l,d,g,x,L){var A=d&ue,z=i.length,H=l.length;if(z!=H&&!(A&&H>z))return!1;var ee=L.get(i),te=L.get(l);if(ee&&te)return ee==l&&te==i;var se=-1,xe=!0,ze=d&Ce?new Dr:o;for(L.set(i,l),L.set(l,i);++se<z;){var Ge=i[se],dt=l[se];if(g)var qe=A?g(dt,Ge,se,l,i,L):g(Ge,dt,se,i,l,L);if(qe!==o){if(qe)continue;xe=!1;break}if(ze){if(!Eo(l,function(yt,Ct){if(!nn(ze,Ct)&&(Ge===yt||x(Ge,yt,d,g,L)))return ze.push(Ct)})){xe=!1;break}}else if(!(Ge===dt||x(Ge,dt,d,g,L))){xe=!1;break}}return L.delete(i),L.delete(l),xe}function Q1(i,l,d,g,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 No(i),new No(l)));case Be:case it:case je:return Ai(+i,+l);case Fe:return i.name==l.name&&i.message==l.message;case ur:case F:return i==l+"";case sr:var z=hl;case Je:var H=g&ue;if(z||(z=pl),i.size!=l.size&&!H)return!1;var ee=A.get(i);if(ee)return ee==l;g|=Ce,A.set(i,l);var te=s0(z(i),z(l),g,x,L,A);return A.delete(i),te;case ie:if(qt)return qt.call(i)==qt.call(l)}return!1}function J1(i,l,d,g,x,L){var A=d&ue,z=Ia(i),H=z.length,ee=Ia(l),te=ee.length;if(H!=te&&!A)return!1;for(var se=H;se--;){var xe=z[se];if(!(A?xe in l:et.call(l,xe)))return!1}var ze=L.get(i),Ge=L.get(l);if(ze&&Ge)return ze==l&&Ge==i;var dt=!0;L.set(i,l),L.set(l,i);for(var qe=A;++se<H;){xe=z[se];var yt=i[xe],Ct=l[xe];if(g)var jn=A?g(Ct,yt,xe,l,i,L):g(yt,Ct,xe,i,l,L);if(!(jn===o?yt===Ct||x(yt,Ct,d,g,L):jn)){dt=!1;break}qe||(qe=xe=="constructor")}if(dt&&!qe){var wn=i.constructor,Kn=l.constructor;wn!=Kn&&"constructor"in i&&"constructor"in l&&!(typeof wn=="function"&&wn instanceof wn&&typeof Kn=="function"&&Kn instanceof Kn)&&(dt=!1)}return L.delete(i),L.delete(l),dt}function Pi(i){return Br(Ie(i,o,Lh),i+"")}function Ia(i){return Uo(i,Vr,a0)}function Ul(i){return Uo(i,Pn,ec)}var _t=li?function(i){return li.get(i)}:Jf;function za(i){for(var l=i.name+"",d=Ls[l],g=et.call(Ls,l)?d.length:0;g--;){var x=d[g],L=x.func;if(L==null||L==i)return x.name}return l}function Hs(i){var l=et.call(_,"placeholder")?_:i;return l.placeholder}function Re(){var i=_.iteratee||Xf;return i=i===Xf?A1:i,arguments.length?i(arguments[0],arguments[1]):i}function Yl(i,l){var d=i.__data__;return S(l)?d[typeof l=="string"?"string":"hash"]:d.map}function Fs(i){for(var l=Vr(i),d=l.length;d--;){var g=l[d],x=i[g];l[d]=[g,x,Q(x)]}return l}function Go(i,l){var d=Eu(i,l);return Es(d)?d:o}function Jt(i){var l=et.call(i,eo),d=i[eo];try{i[eo]=o;var g=!0}catch{}var x=zo.call(i);return g&&(l?i[eo]=d:delete i[eo]),x}var a0=to?function(i){return i==null?[]:(i=bt(i),Zi(to(i),function(l){return yl.call(i,l)}))}:ed,ec=to?function(i){for(var l=[];i;)Vi(l,a0(i)),i=bs(i);return l}:ed,Wr=xr;(no&&Wr(new no(new ArrayBuffer(1)))!=$n||_s&&Wr(new _s)!=sr||Cl&&Wr(Cl.resolve())!=$r||Fo&&Wr(new Fo)!=Je||ba&&Wr(new ba)!=Ke)&&(Wr=function(i){var l=xr(i),d=l==kt?i.constructor:o,g=d?$t(d):"";if(g)switch(g){case Cf:return $n;case wf:return sr;case xf:return $r;case _f:return Je;case Lf:return Ke}return l});function Zl(i,l,d){for(var g=-1,x=d.length;++g<x;){var L=d[g],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=Gt(i,l-A);break}}return{start:i,end:l}}function e(i){var l=i.match(ra);return l?l[1].split(Ui):[]}function t(i,l,d){l=Gn(l,i);for(var g=-1,x=l.length,L=!1;++g<x;){var A=At(l[g]);if(!(L=i!=null&&d(i,A)))break;i=i[A]}return L||++g!=x?L:(x=i==null?0:i.length,!!x&&sc(x)&&m(A,x)&&(lt(i)||Na(i)))}function a(i){var l=i.length,d=new i.constructor(l);return l&&typeof i[0]=="string"&&et.call(i,"index")&&(d.index=i.index,d.input=i.input),d}function s(i){return typeof i.constructor=="function"&&!Z(i)?ui(bs(i)):{}}function u(i,l,d){var g=i.constructor;switch(l){case kr:return Rl(i);case Be:case it:return new g(+i);case $n:return Rf(i,d);case qr:case Ut:case wi:case Rr:case Rn:case Ne:case Wi:case Mr:case Ze:return F1(i,d);case sr:return new g;case je:case F:return new g(i);case ur:return t0(i);case Je:return new g;case ie:return H1(i)}}function h(i,l){var d=l.length;if(!d)return i;var g=d-1;return l[g]=(d>1?"& ":"")+l[g],l=l.join(d>2?", ":" "),i.replace(Ja,`{
2258
+ */(function(r,n){(function(){var o,c="4.17.21",f=200,v="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",y="Expected a function",E="Invalid `variable` option passed into `_.template`",k="__lodash_hash_undefined__",O=500,I="__lodash_placeholder__",U=1,q=2,X=4,ue=1,Ce=2,me=1,Ee=2,Ae=4,he=8,de=16,Te=32,$e=64,We=128,Qe=256,tt=512,pe=30,ye="...",rt=800,B=16,D=1,T=2,re=3,ve=1/0,nt=9007199254740991,Pt=17976931348623157e292,or=0/0,Rt=4294967295,fn=Rt-1,Qt=Rt>>>1,Ht=[["ary",We],["bind",me],["bindKey",Ee],["curry",he],["curryRight",de],["flip",tt],["partial",Te],["partialRight",$e],["rearg",Qe]],at="[object Arguments]",_e="[object Array]",He="[object AsyncFunction]",Be="[object Boolean]",it="[object Date]",ot="[object DOMException]",Fe="[object Error]",Zt="[object Function]",Gr="[object GeneratorFunction]",sr="[object Map]",je="[object Number]",mt="[object Null]",kt="[object Object]",$r="[object Promise]",en="[object Proxy]",ur="[object RegExp]",Je="[object Set]",F="[object String]",ie="[object Symbol]",V="[object Undefined]",Ke="[object WeakMap]",cr="[object WeakSet]",kr="[object ArrayBuffer]",$n="[object DataView]",qr="[object Float32Array]",Ut="[object Float64Array]",wi="[object Int8Array]",Rr="[object Int16Array]",Rn="[object Int32Array]",Ne="[object Uint8Array]",Wi="[object Uint8ClampedArray]",Mr="[object Uint16Array]",Ze="[object Uint32Array]",rr=/\b__p \+= '';/g,us=/\b(__p \+=) '' \+/g,br=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Hn=/&(?:amp|lt|gt|quot|#39);/g,Cr=/[&<>"']/g,cs=RegExp(Hn.source),dn=RegExp(Cr.source),ko=/<%-([\s\S]+?)%>/g,Bi=/<%([\s\S]+?)%>/g,ea=/<%=([\s\S]+?)%>/g,ta=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,jr=/^\w*$/,Xa=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Mo=/[\\^$.*+?()[\]{}|]/g,ri=RegExp(Mo.source),Oo=/^\s+/,Qa=/\s/,Ja=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ra=/\{\n\/\* \[wrapped with (.+)\] \*/,Ui=/,? & /,xn=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,hn=/[()=,{}\[\]\/\s]/,el=/\\(\\)?/g,xi=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,To=/\w*$/,fs=/^[-+]0x[0-9a-f]+$/i,Fn=/^0b[01]+$/i,Wn=/^\[object .+?Constructor\]$/,pn=/^0o[0-7]+$/i,na=/^(?:0|[1-9]\d*)$/,ia=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Ft=/($^)/,Me=/['\n\r\u2028\u2029\\]/g,vn="\\ud800-\\udfff",oa="\\u0300-\\u036f",tn="\\ufe20-\\ufe2f",wt="\\u20d0-\\u20ff",Bn=oa+tn+wt,Yi="\\u2700-\\u27bf",ds="a-z\\xdf-\\xf6\\xf8-\\xff",ne="\\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",oe="A-Z\\xc0-\\xd6\\xd8-\\xde",Ve="\\ufe0e\\ufe0f",pt=ne+w+P+j,ge="['\u2019]",Or="["+vn+"]",rn="["+pt+"]",_i="["+Bn+"]",Un="\\d+",B0="["+Yi+"]",gu="["+ds+"]",hs="[^"+vn+pt+Un+Yi+ds+oe+"]",sa="\\ud83c[\\udffb-\\udfff]",U0="(?:"+_i+"|"+sa+")",tl="[^"+vn+"]",rl="(?:\\ud83c[\\udde6-\\uddff]){2}",nl="[\\ud800-\\udbff][\\udc00-\\udfff]",Po="["+oe+"]",mu="\\u200d",Y0="(?:"+gu+"|"+hs+")",tf="(?:"+Po+"|"+hs+")",yu="(?:"+ge+"(?:d|ll|m|re|s|t|ve))?",ni="(?:"+ge+"(?:D|LL|M|RE|S|T|VE))?",Z0=U0+"?",V0="["+Ve+"]?",il="(?:"+mu+"(?:"+[tl,rl,nl].join("|")+")"+V0+Z0+")*",aa="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",rf="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",G0=V0+Z0+il,nf="(?:"+[B0,rl,nl].join("|")+")"+G0,of="(?:"+[tl+_i+"?",_i,rl,nl,Or].join("|")+")",bu=RegExp(ge,"g"),q0=RegExp(_i,"g"),Cu=RegExp(sa+"(?="+sa+")|"+of+G0,"g"),j0=RegExp([Po+"?"+gu+"+"+yu+"(?="+[rn,Po,"$"].join("|")+")",tf+"+"+ni+"(?="+[rn,Po+Y0,"$"].join("|")+")",Po+"?"+Y0+"+"+yu,Po+"+"+ni,rf,aa,Un,nf].join("|"),"g"),K0=RegExp("["+mu+vn+Bn+Ve+"]"),ol=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,sl=["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"],wu=-1,Wt={};Wt[qr]=Wt[Ut]=Wt[wi]=Wt[Rr]=Wt[Rn]=Wt[Ne]=Wt[Wi]=Wt[Mr]=Wt[Ze]=!0,Wt[at]=Wt[_e]=Wt[kr]=Wt[Be]=Wt[$n]=Wt[it]=Wt[Fe]=Wt[Zt]=Wt[sr]=Wt[je]=Wt[kt]=Wt[ur]=Wt[Je]=Wt[F]=Wt[Ke]=!1;var Nt={};Nt[at]=Nt[_e]=Nt[kr]=Nt[$n]=Nt[Be]=Nt[it]=Nt[qr]=Nt[Ut]=Nt[wi]=Nt[Rr]=Nt[Rn]=Nt[sr]=Nt[je]=Nt[kt]=Nt[ur]=Nt[Je]=Nt[F]=Nt[ie]=Nt[Ne]=Nt[Wi]=Nt[Mr]=Nt[Ze]=!0,Nt[Fe]=Nt[Zt]=Nt[Ke]=!1;var al={\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"},sf={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},X0={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},ii={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},af=parseFloat,lf=parseInt,ll=typeof Xl=="object"&&Xl&&Xl.Object===Object&&Xl,Q0=typeof self=="object"&&self&&self.Object===Object&&self,Vt=ll||Q0||Function("return this")(),la=n&&!n.nodeType&&n,Kr=la&&!0&&r&&!r.nodeType&&r,ua=Kr&&Kr.exports===la,ca=ua&&ll.process,Tr=function(){try{var R=Kr&&Kr.require&&Kr.require("util").types;return R||ca&&ca.binding&&ca.binding("util")}catch{}}(),J0=Tr&&Tr.isArrayBuffer,e1=Tr&&Tr.isDate,t1=Tr&&Tr.isMap,r1=Tr&&Tr.isRegExp,xu=Tr&&Tr.isSet,_u=Tr&&Tr.isTypedArray;function gn(R,K,Y){switch(Y.length){case 0:return R.call(K);case 1:return R.call(K,Y[0]);case 2:return R.call(K,Y[0],Y[1]);case 3:return R.call(K,Y[0],Y[1],Y[2])}return R.apply(K,Y)}function uf(R,K,Y,Se){for(var Xe=-1,St=R==null?0:R.length;++Xe<St;){var dr=R[Xe];K(Se,dr,Y(dr),R)}return Se}function _n(R,K){for(var Y=-1,Se=R==null?0:R.length;++Y<Se&&K(R[Y],Y,R)!==!1;);return R}function cf(R,K){for(var Y=R==null?0:R.length;Y--&&K(R[Y],Y,R)!==!1;);return R}function Lu(R,K){for(var Y=-1,Se=R==null?0:R.length;++Y<Se;)if(!K(R[Y],Y,R))return!1;return!0}function Zi(R,K){for(var Y=-1,Se=R==null?0:R.length,Xe=0,St=[];++Y<Se;){var dr=R[Y];K(dr,Y,R)&&(St[Xe++]=dr)}return St}function fa(R,K){var Y=R==null?0:R.length;return!!Y&&Ao(R,K,0)>-1}function ps(R,K,Y){for(var Se=-1,Xe=R==null?0:R.length;++Se<Xe;)if(Y(K,R[Se]))return!0;return!1}function Et(R,K){for(var Y=-1,Se=R==null?0:R.length,Xe=Array(Se);++Y<Se;)Xe[Y]=K(R[Y],Y,R);return Xe}function Vi(R,K){for(var Y=-1,Se=K.length,Xe=R.length;++Y<Se;)R[Xe+Y]=K[Y];return R}function Su(R,K,Y,Se){var Xe=-1,St=R==null?0:R.length;for(Se&&St&&(Y=R[++Xe]);++Xe<St;)Y=K(Y,R[Xe],Xe,R);return Y}function ff(R,K,Y,Se){var Xe=R==null?0:R.length;for(Se&&Xe&&(Y=R[--Xe]);Xe--;)Y=K(Y,R[Xe],Xe,R);return Y}function Eo(R,K){for(var Y=-1,Se=R==null?0:R.length;++Y<Se;)if(K(R[Y],Y,R))return!0;return!1}var fr=Mu("length");function df(R){return R.split("")}function n1(R){return R.match(xn)||[]}function vs(R,K,Y){var Se;return Y(R,function(Xe,St,dr){if(K(Xe,St,dr))return Se=St,!1}),Se}function ul(R,K,Y,Se){for(var Xe=R.length,St=Y+(Se?1:-1);Se?St--:++St<Xe;)if(K(R[St],St,R))return St;return-1}function Ao(R,K,Y){return K===K?c1(R,K,Y):ul(R,cl,Y)}function hf(R,K,Y,Se){for(var Xe=Y-1,St=R.length;++Xe<St;)if(Se(R[Xe],K))return Xe;return-1}function cl(R){return R!==R}function ku(R,K){var Y=R==null?0:R.length;return Y?Pu(R,K)/Y:or}function Mu(R){return function(K){return K==null?o:K[R]}}function Ou(R){return function(K){return R==null?o:R[K]}}function Tu(R,K,Y,Se,Xe){return Xe(R,function(St,dr,bt){Y=Se?(Se=!1,St):K(Y,St,dr,bt)}),Y}function i1(R,K){var Y=R.length;for(R.sort(K);Y--;)R[Y]=R[Y].value;return R}function Pu(R,K){for(var Y,Se=-1,Xe=R.length;++Se<Xe;){var St=K(R[Se]);St!==o&&(Y=Y===o?St:Y+St)}return Y}function Do(R,K){for(var Y=-1,Se=Array(R);++Y<R;)Se[Y]=K(Y);return Se}function Li(R,K){return Et(K,function(Y){return[Y,R[Y]]})}function da(R){return R&&R.slice(0,vl(R)+1).replace(Oo,"")}function Xr(R){return function(K){return R(K)}}function fl(R,K){return Et(K,function(Y){return R[Y]})}function nn(R,K){return R.has(K)}function Gi(R,K){for(var Y=-1,Se=R.length;++Y<Se&&Ao(K,R[Y],0)>-1;);return Y}function dl(R,K){for(var Y=R.length;Y--&&Ao(K,R[Y],0)>-1;);return Y}function pf(R,K){for(var Y=R.length,Se=0;Y--;)R[Y]===K&&++Se;return Se}var o1=Ou(al),vf=Ou(sf);function s1(R){return"\\"+ii[R]}function Eu(R,K){return R==null?o:R[K]}function Yn(R){return K0.test(R)}function oi(R){return ol.test(R)}function a1(R){for(var K,Y=[];!(K=R.next()).done;)Y.push(K.value);return Y}function hl(R){var K=-1,Y=Array(R.size);return R.forEach(function(Se,Xe){Y[++K]=[Xe,Se]}),Y}function l1(R,K){return function(Y){return R(K(Y))}}function qi(R,K){for(var Y=-1,Se=R.length,Xe=0,St=[];++Y<Se;){var dr=R[Y];(dr===K||dr===I)&&(R[Y]=I,St[Xe++]=Y)}return St}function pl(R){var K=-1,Y=Array(R.size);return R.forEach(function(Se){Y[++K]=Se}),Y}function u1(R){var K=-1,Y=Array(R.size);return R.forEach(function(Se){Y[++K]=[Se,Se]}),Y}function c1(R,K,Y){for(var Se=Y-1,Xe=R.length;++Se<Xe;)if(R[Se]===K)return Se;return-1}function ha(R,K,Y){for(var Se=Y+1;Se--;)if(R[Se]===K)return Se;return Se}function Io(R){return Yn(R)?f1(R):fr(R)}function Ln(R){return Yn(R)?ml(R):df(R)}function vl(R){for(var K=R.length;K--&&Qa.test(R.charAt(K)););return K}var gl=Ou(X0);function f1(R){for(var K=Cu.lastIndex=0;Cu.test(R);)++K;return K}function ml(R){return R.match(Cu)||[]}function Zn(R){return R.match(j0)||[]}var d1=function R(K){K=K==null?Vt:ji.defaults(Vt.Object(),K,ji.pick(Vt,sl));var Y=K.Array,Se=K.Date,Xe=K.Error,St=K.Function,dr=K.Math,bt=K.Object,Ki=K.RegExp,gs=K.String,on=K.TypeError,ms=Y.prototype,h1=St.prototype,Xi=bt.prototype,si=K["__core-js_shared__"],ai=h1.toString,et=Xi.hasOwnProperty,Qi=0,Si=function(){var i=/[^.]+$/.exec(si&&si.keys&&si.keys.IE_PROTO||"");return i?"Symbol(src)_1."+i:""}(),zo=Xi.toString,gf=ai.call(bt),p1=Vt._,pa=Ki("^"+ai.call(et).replace(Mo,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),va=ua?K.Buffer:o,ki=K.Symbol,No=K.Uint8Array,v1=va?va.allocUnsafe:o,ys=l1(bt.getPrototypeOf,bt),Au=bt.create,yl=Xi.propertyIsEnumerable,bs=ms.splice,$o=ki?ki.isConcatSpreadable:o,Ji=ki?ki.iterator:o,eo=ki?ki.toStringTag:o,Ro=function(){try{var i=Go(bt,"defineProperty");return i({},"",{}),i}catch{}}(),mf=K.clearTimeout!==Vt.clearTimeout&&K.clearTimeout,yf=Se&&Se.now!==Vt.Date.now&&Se.now,bf=K.setTimeout!==Vt.setTimeout&&K.setTimeout,Cs=dr.ceil,ws=dr.floor,to=bt.getOwnPropertySymbols,ga=va?va.isBuffer:o,g1=K.isFinite,bl=ms.join,m1=l1(bt.keys,bt),Gt=dr.max,Pr=dr.min,Ho=Se.now,ma=K.parseInt,ro=dr.random,ya=ms.reverse,no=Go(K,"DataView"),xs=Go(K,"Map"),Cl=Go(K,"Promise"),Fo=Go(K,"Set"),ba=Go(K,"WeakMap"),Vn=Go(bt,"create"),li=ba&&new ba,_s={},Cf=$t(no),wf=$t(xs),xf=$t(Cl),_f=$t(Fo),Lf=$t(ba),Er=ki?ki.prototype:o,qt=Er?Er.valueOf:o,Ar=Er?Er.toString:o;function _(i){if(lr(i)&&!lt(i)&&!(i instanceof vt)){if(i instanceof Qr)return i;if(et.call(i,"__wrapped__"))return Yr(i)}return new Qr(i)}var ui=function(){function i(){}return function(l){if(!ir(l))return{};if(Au)return Au(l);i.prototype=l;var d=new i;return i.prototype=o,d}}();function wl(){}function Qr(i,l){this.__wrapped__=i,this.__actions__=[],this.__chain__=!!l,this.__index__=0,this.__values__=o}_.templateSettings={escape:ko,evaluate:Bi,interpolate:ea,variable:"",imports:{_}},_.prototype=wl.prototype,_.prototype.constructor=_,Qr.prototype=ui(wl.prototype),Qr.prototype.constructor=Qr;function vt(i){this.__wrapped__=i,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Rt,this.__views__=[]}function Sf(){var i=new vt(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 kf(){if(this.__filtered__){var i=new vt(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=lt(i),g=l<0,x=d?i.length:0,L=Zl(0,x,this.__views__),A=L.start,z=L.end,H=z-A,ee=g?z:A-1,te=this.__iteratees__,se=te.length,xe=0,ze=Pr(H,this.__takeCount__);if(!d||!g&&x==H&&ze==H)return R1(i,this.__actions__);var Ge=[];e:for(;H--&&xe<ze;){ee+=l;for(var dt=-1,qe=i[ee];++dt<se;){var yt=te[dt],Ct=yt.iteratee,jn=yt.type,wn=Ct(qe);if(jn==T)qe=wn;else if(!wn){if(jn==D)continue e;break e}}Ge[xe++]=qe}return Ge}vt.prototype=ui(wl.prototype),vt.prototype.constructor=vt;function io(i){var l=-1,d=i==null?0:i.length;for(this.clear();++l<d;){var g=i[l];this.set(g[0],g[1])}}function Iu(){this.__data__=Vn?Vn(null):{},this.size=0}function Mf(i){var l=this.has(i)&&delete this.__data__[i];return this.size-=l?1:0,l}function zu(i){var l=this.__data__;if(Vn){var d=l[i];return d===k?o:d}return et.call(l,i)?l[i]:o}function Nu(i){var l=this.__data__;return Vn?l[i]!==o:et.call(l,i)}function y1(i,l){var d=this.__data__;return this.size+=this.has(i)?0:1,d[i]=Vn&&l===o?k:l,this}io.prototype.clear=Iu,io.prototype.delete=Mf,io.prototype.get=zu,io.prototype.has=Nu,io.prototype.set=y1;function ci(i){var l=-1,d=i==null?0:i.length;for(this.clear();++l<d;){var g=i[l];this.set(g[0],g[1])}}function $u(){this.__data__=[],this.size=0}function b1(i){var l=this.__data__,d=Wo(l,i);if(d<0)return!1;var g=l.length-1;return d==g?l.pop():bs.call(l,d,1),--this.size,!0}function Ca(i){var l=this.__data__,d=Wo(l,i);return d<0?o:l[d][1]}function Of(i){return Wo(this.__data__,i)>-1}function xl(i,l){var d=this.__data__,g=Wo(d,i);return g<0?(++this.size,d.push([i,l])):d[g][1]=l,this}ci.prototype.clear=$u,ci.prototype.delete=b1,ci.prototype.get=Ca,ci.prototype.has=Of,ci.prototype.set=xl;function nr(i){var l=-1,d=i==null?0:i.length;for(this.clear();++l<d;){var g=i[l];this.set(g[0],g[1])}}function C1(){this.size=0,this.__data__={hash:new io,map:new(xs||ci),string:new io}}function Tf(i){var l=Yl(this,i).delete(i);return this.size-=l?1:0,l}function w1(i){return Yl(this,i).get(i)}function mn(i){return Yl(this,i).has(i)}function xt(i,l){var d=Yl(this,i),g=d.size;return d.set(i,l),this.size+=d.size==g?0:1,this}nr.prototype.clear=C1,nr.prototype.delete=Tf,nr.prototype.get=w1,nr.prototype.has=mn,nr.prototype.set=xt;function Dr(i){var l=-1,d=i==null?0:i.length;for(this.__data__=new nr;++l<d;)this.add(i[l])}function oo(i){return this.__data__.set(i,k),this}function so(i){return this.__data__.has(i)}Dr.prototype.add=Dr.prototype.push=oo,Dr.prototype.has=so;function Sn(i){var l=this.__data__=new ci(i);this.size=l.size}function Ru(){this.__data__=new ci,this.size=0}function x1(i){var l=this.__data__,d=l.delete(i);return this.size=l.size,d}function Pf(i){return this.__data__.get(i)}function Hu(i){return this.__data__.has(i)}function wa(i,l){var d=this.__data__;if(d instanceof ci){var g=d.__data__;if(!xs||g.length<f-1)return g.push([i,l]),this.size=++d.size,this;d=this.__data__=new nr(g)}return d.set(i,l),this.size=d.size,this}Sn.prototype.clear=Ru,Sn.prototype.delete=x1,Sn.prototype.get=Pf,Sn.prototype.has=Hu,Sn.prototype.set=wa;function Fu(i,l){var d=lt(i),g=!d&&Na(i),x=!d&&!g&&Bs(i),L=!d&&!g&&!x&&Gl(i),A=d||g||x||L,z=A?Do(i.length,gs):[],H=z.length;for(var ee in i)(l||et.call(i,ee))&&!(A&&(ee=="length"||x&&(ee=="offset"||ee=="parent")||L&&(ee=="buffer"||ee=="byteLength"||ee=="byteOffset")||m(ee,H)))&&z.push(ee);return z}function _l(i){var l=i.length;return l?i[Il(0,l-1)]:o}function ao(i,l){return Lr(_r(i),Bo(l,0,i.length))}function _1(i){return Lr(_r(i))}function Ll(i,l,d){(d!==o&&!Ai(i[l],d)||d===o&&!(l in i))&&fi(i,l,d)}function xa(i,l,d){var g=i[l];(!(et.call(i,l)&&Ai(g,d))||d===o&&!(l in i))&&fi(i,l,d)}function Wo(i,l){for(var d=i.length;d--;)if(Ai(i[d][0],l))return d;return-1}function Wu(i,l,d,g){return yn(i,function(x,L,A){l(g,x,d(x),A)}),g}function Bu(i,l){return i&&sn(l,Vr(l),i)}function Ef(i,l){return i&&sn(l,Pn(l),i)}function fi(i,l,d){l=="__proto__"&&Ro?Ro(i,l,{configurable:!0,enumerable:!0,value:d,writable:!0}):i[l]=d}function Uu(i,l){for(var d=-1,g=l.length,x=Y(g),L=i==null;++d<g;)x[d]=L?o:Gf(i,l[d]);return x}function Bo(i,l,d){return i===i&&(d!==o&&(i=i<=d?i:d),l!==o&&(i=i>=l?i:l)),i}function Jr(i,l,d,g,x,L){var A,z=l&U,H=l&q,ee=l&X;if(d&&(A=x?d(i,g,x,L):d(i)),A!==o)return A;if(!ir(i))return i;var te=lt(i);if(te){if(A=a(i),!z)return _r(i,A)}else{var se=Wr(i),xe=se==Zt||se==Gr;if(Bs(i))return e0(i,z);if(se==kt||se==at||xe&&!x){if(A=H||xe?{}:s(i),!z)return H?U1(i,Ef(A,i)):Hf(i,Bu(A,i))}else{if(!Nt[se])return x?i:{};A=u(i,se,z)}}L||(L=new Sn);var ze=L.get(i);if(ze)return ze;L.set(i,A),Bh(i)?i.forEach(function(qe){A.add(Jr(qe,l,d,qe,i,L))}):Fh(i)&&i.forEach(function(qe,yt){A.set(yt,Jr(qe,l,d,yt,i,L))});var Ge=ee?H?Ul:Ia:H?Pn:Vr,dt=te?o:Ge(i);return _n(dt||i,function(qe,yt){dt&&(yt=qe,qe=i[yt]),xa(A,yt,Jr(qe,l,d,yt,i,L))}),A}function L1(i){var l=Vr(i);return function(d){return S1(d,i,l)}}function S1(i,l,d){var g=d.length;if(i==null)return!g;for(i=bt(i);g--;){var x=d[g],L=l[x],A=i[x];if(A===o&&!(x in i)||!L(A))return!1}return!0}function k1(i,l,d){if(typeof i!="function")throw new on(y);return It(function(){i.apply(o,d)},l)}function Ls(i,l,d,g){var x=-1,L=fa,A=!0,z=i.length,H=[],ee=l.length;if(!z)return H;d&&(l=Et(l,Xr(d))),g?(L=ps,A=!1):l.length>=f&&(L=nn,A=!1,l=new Dr(l));e:for(;++x<z;){var te=i[x],se=d==null?te:d(te);if(te=g||te!==0?te:0,A&&se===se){for(var xe=ee;xe--;)if(l[xe]===se)continue e;H.push(te)}else L(l,se,g)||H.push(te)}return H}var yn=Y1(bn),Sl=Y1(Ol,!0);function kl(i,l){var d=!0;return yn(i,function(g,x,L){return d=!!l(g,x,L),d}),d}function _a(i,l,d){for(var g=-1,x=i.length;++g<x;){var L=i[g],A=l(L);if(A!=null&&(z===o?A===A&&!qn(A):d(A,z)))var z=A,H=L}return H}function Yu(i,l,d,g){var x=i.length;for(d=ct(d),d<0&&(d=-d>x?0:x+d),g=g===o||g>x?x:ct(g),g<0&&(g+=x),g=d>g?0:Yh(g);d<g;)i[d++]=l;return i}function Zu(i,l){var d=[];return yn(i,function(g,x,L){l(g,x,L)&&d.push(g)}),d}function Ir(i,l,d,g,x){var L=-1,A=i.length;for(d||(d=p),x||(x=[]);++L<A;){var z=i[L];l>0&&d(z)?l>1?Ir(z,l-1,d,g,x):Vi(x,z):g||(x[x.length]=z)}return x}var Ml=Z1(),wr=Z1(!0);function bn(i,l){return i&&Ml(i,l,Vr)}function Ol(i,l){return i&&wr(i,l,Vr)}function La(i,l){return Zi(l,function(d){return Ko(i[d])})}function lo(i,l){l=Gn(l,i);for(var d=0,g=l.length;i!=null&&d<g;)i=i[At(l[d++])];return d&&d==g?i:o}function Uo(i,l,d){var g=l(i);return lt(i)?g:Vi(g,d(i))}function xr(i){return i==null?i===o?V:mt:eo&&eo in bt(i)?Jt(i):we(i)}function Tl(i,l){return i>l}function M1(i,l){return i!=null&&et.call(i,l)}function O1(i,l){return i!=null&&l in bt(i)}function Ss(i,l,d){return i>=Pr(l,d)&&i<Gt(l,d)}function Pl(i,l,d){for(var g=d?ps:fa,x=i[0].length,L=i.length,A=L,z=Y(L),H=1/0,ee=[];A--;){var te=i[A];A&&l&&(te=Et(te,Xr(l))),H=Pr(te.length,H),z[A]=!d&&(l||x>=120&&te.length>=120)?new Dr(A&&te):o}te=i[0];var se=-1,xe=z[0];e:for(;++se<x&&ee.length<H;){var ze=te[se],Ge=l?l(ze):ze;if(ze=d||ze!==0?ze:0,!(xe?nn(xe,Ge):g(ee,Ge,d))){for(A=L;--A;){var dt=z[A];if(!(dt?nn(dt,Ge):g(i[A],Ge,d)))continue e}xe&&xe.push(Ge),ee.push(ze)}}return ee}function El(i,l,d,g){return bn(i,function(x,L,A){l(g,d(x),L,A)}),g}function ks(i,l,d){l=Gn(l,i),i=Pe(i,l);var g=i==null?i:i[At(hi(l))];return g==null?o:gn(g,i,d)}function Ms(i){return lr(i)&&xr(i)==at}function Af(i){return lr(i)&&xr(i)==kr}function Os(i){return lr(i)&&xr(i)==it}function Ts(i,l,d,g,x){return i===l?!0:i==null||l==null||!lr(i)&&!lr(l)?i!==i&&l!==l:T1(i,l,d,g,Ts,x)}function T1(i,l,d,g,x,L){var A=lt(i),z=lt(l),H=A?_e:Wr(i),ee=z?_e:Wr(l);H=H==at?kt:H,ee=ee==at?kt:ee;var te=H==kt,se=ee==kt,xe=H==ee;if(xe&&Bs(i)){if(!Bs(l))return!1;A=!0,te=!1}if(xe&&!te)return L||(L=new Sn),A||Gl(i)?s0(i,l,d,g,x,L):Q1(i,l,H,d,g,x,L);if(!(d&ue)){var ze=te&&et.call(i,"__wrapped__"),Ge=se&&et.call(l,"__wrapped__");if(ze||Ge){var dt=ze?i.value():i,qe=Ge?l.value():l;return L||(L=new Sn),x(dt,qe,d,g,L)}}return xe?(L||(L=new Sn),J1(i,l,d,g,x,L)):!1}function P1(i){return lr(i)&&Wr(i)==sr}function Yo(i,l,d,g){var x=d.length,L=x,A=!g;if(i==null)return!L;for(i=bt(i);x--;){var z=d[x];if(A&&z[2]?z[1]!==i[z[0]]:!(z[0]in i))return!1}for(;++x<L;){z=d[x];var H=z[0],ee=i[H],te=z[1];if(A&&z[2]){if(ee===o&&!(H in i))return!1}else{var se=new Sn;if(g)var xe=g(ee,te,H,i,l,se);if(!(xe===o?Ts(te,ee,ue|Ce,g,se):xe))return!1}}return!0}function Ps(i){if(!ir(i)||$(i))return!1;var l=Ko(i)?pa:Wn;return l.test($t(i))}function Sa(i){return lr(i)&&xr(i)==ur}function ka(i){return lr(i)&&Wr(i)==Je}function E1(i){return lr(i)&&sc(i.length)&&!!Wt[xr(i)]}function A1(i){return typeof i=="function"?i:i==null?En:typeof i=="object"?lt(i)?Vu(i[0],i[1]):D1(i):tp(i)}function Al(i){if(!Z(i))return m1(i);var l=[];for(var d in bt(i))et.call(i,d)&&d!="constructor"&&l.push(d);return l}function uo(i){if(!ir(i))return fe(i);var l=Z(i),d=[];for(var g in i)g=="constructor"&&(l||!et.call(i,g))||d.push(g);return d}function co(i,l){return i<l}function Es(i,l){var d=-1,g=Tn(i)?Y(i.length):[];return yn(i,function(x,L,A){g[++d]=l(x,L,A)}),g}function D1(i){var l=Hs(i);return l.length==1&&l[0][2]?ae(l[0][0],l[0][1]):function(d){return d===i||Yo(d,i,l)}}function Vu(i,l){return C(i)&&Q(l)?ae(At(i),l):function(d){var g=Gf(d,i);return g===o&&g===l?qf(d,i):Ts(l,g,ue|Ce)}}function Dl(i,l,d,g,x){i!==l&&Ml(l,function(L,A){if(x||(x=new Sn),ir(L))Df(i,l,A,d,Dl,g,x);else{var z=g?g(Mt(i,A),L,A+"",i,l,x):o;z===o&&(z=L),Ll(i,A,z)}},Pn)}function Df(i,l,d,g,x,L,A){var z=Mt(i,d),H=Mt(l,d),ee=A.get(H);if(ee){Ll(i,d,ee);return}var te=L?L(z,H,d+"",i,l,A):o,se=te===o;if(se){var xe=lt(H),ze=!xe&&Bs(H),Ge=!xe&&!ze&&Gl(H);te=H,xe||ze||Ge?lt(z)?te=z:vr(z)?te=_r(z):ze?(se=!1,te=e0(H,!0)):Ge?(se=!1,te=F1(H,!0)):te=[]:u0(H)||Na(H)?(te=z,Na(z)?te=Zh(z):(!ir(z)||Ko(z))&&(te=s(H))):se=!1}se&&(A.set(H,te),x(te,H,g,L,A),A.delete(H)),Ll(i,d,te)}function I1(i,l){var d=i.length;if(!!d)return l+=l<0?d:0,m(l,d)?i[l]:o}function Hr(i,l,d){l.length?l=Et(l,function(L){return lt(L)?function(A){return lo(A,L.length===1?L[0]:L)}:L}):l=[En];var g=-1;l=Et(l,Xr(Re()));var x=Es(i,function(L,A,z){var H=Et(l,function(ee){return ee(L)});return{criteria:H,index:++g,value:L}});return i1(x,function(L,A){return W1(L,A,d)})}function z1(i,l){return N1(i,l,function(d,g){return qf(i,g)})}function N1(i,l,d){for(var g=-1,x=l.length,L={};++g<x;){var A=l[g],z=lo(i,A);d(z,A)&&Mi(L,Gn(A,i),z)}return L}function If(i){return function(l){return lo(l,i)}}function Gu(i,l,d,g){var x=g?hf:Ao,L=-1,A=l.length,z=i;for(i===l&&(l=_r(l)),d&&(z=Et(i,Xr(d)));++L<A;)for(var H=0,ee=l[L],te=d?d(ee):ee;(H=x(z,te,H,g))>-1;)z!==i&&bs.call(z,H,1),bs.call(i,H,1);return i}function qu(i,l){for(var d=i?l.length:0,g=d-1;d--;){var x=l[d];if(d==g||x!==L){var L=x;m(x)?bs.call(i,x,1):Ta(i,x)}}return i}function Il(i,l){return i+ws(ro()*(l-i+1))}function $1(i,l,d,g){for(var x=-1,L=Gt(Cs((l-i)/(d||1)),0),A=Y(L);L--;)A[g?L:++x]=i,i+=d;return A}function ju(i,l){var d="";if(!i||l<1||l>nt)return d;do l%2&&(d+=i),l=ws(l/2),l&&(i+=i);while(l);return d}function ut(i,l){return Br(Ie(i,l,En),i+"")}function zf(i){return _l(ql(i))}function fo(i,l){var d=ql(i);return Lr(d,Bo(l,0,d.length))}function Mi(i,l,d,g){if(!ir(i))return i;l=Gn(l,i);for(var x=-1,L=l.length,A=L-1,z=i;z!=null&&++x<L;){var H=At(l[x]),ee=d;if(H==="__proto__"||H==="constructor"||H==="prototype")return i;if(x!=A){var te=z[H];ee=g?g(te,H,z):o,ee===o&&(ee=ir(te)?te:m(l[x+1])?[]:{})}xa(z,H,ee),z=z[H]}return i}var Ma=li?function(i,l){return li.set(i,l),i}:En,Oa=Ro?function(i,l){return Ro(i,"toString",{configurable:!0,enumerable:!1,value:Kf(l),writable:!0})}:En;function Oi(i){return Lr(ql(i))}function kn(i,l,d){var g=-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);++g<x;)L[g]=i[g+l];return L}function Nf(i,l){var d;return yn(i,function(g,x,L){return d=l(g,x,L),!d}),!!d}function Ti(i,l,d){var g=0,x=i==null?g:i.length;if(typeof l=="number"&&l===l&&x<=Qt){for(;g<x;){var L=g+x>>>1,A=i[L];A!==null&&!qn(A)&&(d?A<=l:A<l)?g=L+1:x=L}return x}return zl(i,l,En,d)}function zl(i,l,d,g){var x=0,L=i==null?0:i.length;if(L===0)return 0;l=d(l);for(var A=l!==l,z=l===null,H=qn(l),ee=l===o;x<L;){var te=ws((x+L)/2),se=d(i[te]),xe=se!==o,ze=se===null,Ge=se===se,dt=qn(se);if(A)var qe=g||Ge;else ee?qe=Ge&&(g||xe):z?qe=Ge&&xe&&(g||!ze):H?qe=Ge&&xe&&!ze&&(g||!dt):ze||dt?qe=!1:qe=g?se<=l:se<l;qe?x=te+1:L=te}return Pr(L,fn)}function Ku(i,l){for(var d=-1,g=i.length,x=0,L=[];++d<g;){var A=i[d],z=l?l(A):A;if(!d||!Ai(z,H)){var H=z;L[x++]=A===0?0:A}}return L}function Xu(i){return typeof i=="number"?i:qn(i)?or:+i}function Fr(i){if(typeof i=="string")return i;if(lt(i))return Et(i,Fr)+"";if(qn(i))return Ar?Ar.call(i):"";var l=i+"";return l=="0"&&1/i==-ve?"-0":l}function Cn(i,l,d){var g=-1,x=fa,L=i.length,A=!0,z=[],H=z;if(d)A=!1,x=ps;else if(L>=f){var ee=l?null:Da(i);if(ee)return pl(ee);A=!1,x=nn,H=new Dr}else H=l?[]:z;e:for(;++g<L;){var te=i[g],se=l?l(te):te;if(te=d||te!==0?te:0,A&&se===se){for(var xe=H.length;xe--;)if(H[xe]===se)continue e;l&&H.push(se),z.push(te)}else x(H,se,d)||(H!==z&&H.push(se),z.push(te))}return z}function Ta(i,l){return l=Gn(l,i),i=Pe(i,l),i==null||delete i[At(hi(l))]}function Nl(i,l,d,g){return Mi(i,l,d(lo(i,l)),g)}function As(i,l,d,g){for(var x=i.length,L=g?x:-1;(g?L--:++L<x)&&l(i[L],L,i););return d?kn(i,g?0:L,g?L+1:x):kn(i,g?L+1:0,g?x:L)}function R1(i,l){var d=i;return d instanceof vt&&(d=d.value()),Su(l,function(g,x){return x.func.apply(x.thisArg,Vi([g],x.args))},d)}function Zo(i,l,d){var g=i.length;if(g<2)return g?Cn(i[0]):[];for(var x=-1,L=Y(g);++x<g;)for(var A=i[x],z=-1;++z<g;)z!=x&&(L[x]=Ls(L[x]||A,i[z],l,d));return Cn(Ir(L,1),l,d)}function Qu(i,l,d){for(var g=-1,x=i.length,L=l.length,A={};++g<x;){var z=g<L?l[g]:o;d(A,i[g],z)}return A}function Ju(i){return vr(i)?i:[]}function $l(i){return typeof i=="function"?i:En}function Gn(i,l){return lt(i)?i:C(i,l)?[i]:hr(zt(i))}var $f=ut;function ho(i,l,d){var g=i.length;return d=d===o?g:d,!l&&d>=g?i:kn(i,l,d)}var Ds=mf||function(i){return Vt.clearTimeout(i)};function e0(i,l){if(l)return i.slice();var d=i.length,g=v1?v1(d):new i.constructor(d);return i.copy(g),g}function Rl(i){var l=new i.constructor(i.byteLength);return new No(l).set(new No(i)),l}function Rf(i,l){var d=l?Rl(i.buffer):i.buffer;return new i.constructor(d,i.byteOffset,i.byteLength)}function t0(i){var l=new i.constructor(i.source,To.exec(i));return l.lastIndex=i.lastIndex,l}function H1(i){return qt?bt(qt.call(i)):{}}function F1(i,l){var d=l?Rl(i.buffer):i.buffer;return new i.constructor(d,i.byteOffset,i.length)}function r0(i,l){if(i!==l){var d=i!==o,g=i===null,x=i===i,L=qn(i),A=l!==o,z=l===null,H=l===l,ee=qn(l);if(!z&&!ee&&!L&&i>l||L&&A&&H&&!z&&!ee||g&&A&&H||!d&&H||!x)return 1;if(!g&&!L&&!ee&&i<l||ee&&d&&x&&!g&&!L||z&&d&&x||!A&&x||!H)return-1}return 0}function W1(i,l,d){for(var g=-1,x=i.criteria,L=l.criteria,A=x.length,z=d.length;++g<A;){var H=r0(x[g],L[g]);if(H){if(g>=z)return H;var ee=d[g];return H*(ee=="desc"?-1:1)}}return i.index-l.index}function B1(i,l,d,g){for(var x=-1,L=i.length,A=d.length,z=-1,H=l.length,ee=Gt(L-A,0),te=Y(H+ee),se=!g;++z<H;)te[z]=l[z];for(;++x<A;)(se||x<L)&&(te[d[x]]=i[x]);for(;ee--;)te[z++]=i[x++];return te}function Hl(i,l,d,g){for(var x=-1,L=i.length,A=-1,z=d.length,H=-1,ee=l.length,te=Gt(L-z,0),se=Y(te+ee),xe=!g;++x<te;)se[x]=i[x];for(var ze=x;++H<ee;)se[ze+H]=l[H];for(;++A<z;)(xe||x<L)&&(se[ze+d[A]]=i[x++]);return se}function _r(i,l){var d=-1,g=i.length;for(l||(l=Y(g));++d<g;)l[d]=i[d];return l}function sn(i,l,d,g){var x=!d;d||(d={});for(var L=-1,A=l.length;++L<A;){var z=l[L],H=g?g(d[z],i[z],z,d,i):o;H===o&&(H=i[z]),x?fi(d,z,H):xa(d,z,H)}return d}function Hf(i,l){return sn(i,a0(i),l)}function U1(i,l){return sn(i,ec(i),l)}function Fl(i,l){return function(d,g){var x=lt(d)?uf:Wu,L=l?l():{};return x(d,i,Re(g,2),L)}}function Is(i){return ut(function(l,d){var g=-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&&b(d[0],d[1],A)&&(L=x<3?o:L,x=1),l=bt(l);++g<x;){var z=d[g];z&&i(l,z,g,L)}return l})}function Y1(i,l){return function(d,g){if(d==null)return d;if(!Tn(d))return i(d,g);for(var x=d.length,L=l?x:-1,A=bt(d);(l?L--:++L<x)&&g(A[L],L,A)!==!1;);return d}}function Z1(i){return function(l,d,g){for(var x=-1,L=bt(l),A=g(l),z=A.length;z--;){var H=A[i?z:++x];if(d(L[H],H,L)===!1)break}return l}}function V1(i,l,d){var g=l&me,x=Ns(i);function L(){var A=this&&this!==Vt&&this instanceof L?x:i;return A.apply(g?d:this,arguments)}return L}function G1(i){return function(l){l=zt(l);var d=Yn(l)?Ln(l):o,g=d?d[0]:l.charAt(0),x=d?ho(d,1).join(""):l.slice(1);return g[i]()+x}}function zs(i){return function(l){return Su(Jh(Qh(l).replace(bu,"")),i,"")}}function Ns(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=ui(i.prototype),g=i.apply(d,l);return ir(g)?g:d}}function n0(i,l,d){var g=Ns(i);function x(){for(var L=arguments.length,A=Y(L),z=L,H=Rs(x);z--;)A[z]=arguments[z];var ee=L<3&&A[0]!==H&&A[L-1]!==H?[]:qi(A,H);if(L-=ee.length,L<d)return K1(i,l,Pa,x.placeholder,o,A,ee,o,o,d-L);var te=this&&this!==Vt&&this instanceof x?g:i;return gn(te,this,A)}return x}function i0(i){return function(l,d,g){var x=bt(l);if(!Tn(l)){var L=Re(d,3);l=Vr(l),d=function(z){return L(x[z],z,x)}}var A=i(l,d,g);return A>-1?x[L?l[A]:A]:o}}function q1(i){return Pi(function(l){var d=l.length,g=d,x=Qr.prototype.thru;for(i&&l.reverse();g--;){var L=l[g];if(typeof L!="function")throw new on(y);if(x&&!A&&za(L)=="wrapper")var A=new Qr([],!0)}for(g=A?g:d;++g<d;){L=l[g];var z=za(L),H=z=="wrapper"?_t(L):o;H&&M(H[0])&&H[1]==(We|he|Te|Qe)&&!H[4].length&&H[9]==1?A=A[za(H[0])].apply(A,H[3]):A=L.length==1&&M(L)?A[z]():A.thru(L)}return function(){var ee=arguments,te=ee[0];if(A&&ee.length==1&&lt(te))return A.plant(te).value();for(var se=0,xe=d?l[se].apply(this,ee):te;++se<d;)xe=l[se].call(this,xe);return xe}})}function Pa(i,l,d,g,x,L,A,z,H,ee){var te=l&We,se=l&me,xe=l&Ee,ze=l&(he|de),Ge=l&tt,dt=xe?o:Ns(i);function qe(){for(var yt=arguments.length,Ct=Y(yt),jn=yt;jn--;)Ct[jn]=arguments[jn];if(ze)var wn=Rs(qe),Kn=pf(Ct,wn);if(g&&(Ct=B1(Ct,g,x,ze)),L&&(Ct=Hl(Ct,L,A,ze)),yt-=Kn,ze&&yt<ee){var gr=qi(Ct,wn);return K1(i,l,Pa,qe.placeholder,d,Ct,gr,z,H,ee-yt)}var Di=se?d:this,Qo=xe?Di[i]:i;return yt=Ct.length,z?Ct=st(Ct,z):Ge&&yt>1&&Ct.reverse(),te&&H<yt&&(Ct.length=H),this&&this!==Vt&&this instanceof qe&&(Qo=dt||Ns(Qo)),Qo.apply(Di,Ct)}return qe}function Vo(i,l){return function(d,g){return El(d,i,l(g),{})}}function Ea(i,l){return function(d,g){var x;if(d===o&&g===o)return l;if(d!==o&&(x=d),g!==o){if(x===o)return g;typeof d=="string"||typeof g=="string"?(d=Fr(d),g=Fr(g)):(d=Xu(d),g=Xu(g)),x=i(d,g)}return x}}function $s(i){return Pi(function(l){return l=Et(l,Xr(Re())),ut(function(d){var g=this;return i(l,function(x){return gn(x,g,d)})})})}function Wl(i,l){l=l===o?" ":Fr(l);var d=l.length;if(d<2)return d?ju(l,i):l;var g=ju(l,Cs(i/Io(l)));return Yn(l)?ho(Ln(g),0,i).join(""):g.slice(0,i)}function Ff(i,l,d,g){var x=l&me,L=Ns(i);function A(){for(var z=-1,H=arguments.length,ee=-1,te=g.length,se=Y(te+H),xe=this&&this!==Vt&&this instanceof A?L:i;++ee<te;)se[ee]=g[ee];for(;H--;)se[ee++]=arguments[++z];return gn(xe,x?d:this,se)}return A}function j1(i){return function(l,d,g){return g&&typeof g!="number"&&b(l,d,g)&&(d=g=o),l=Xo(l),d===o?(d=l,l=0):d=Xo(d),g=g===o?l<d?1:-1:Xo(g),$1(l,d,g,i)}}function Dt(i){return function(l,d){return typeof l=="string"&&typeof d=="string"||(l=pi(l),d=pi(d)),i(l,d)}}function K1(i,l,d,g,x,L,A,z,H,ee){var te=l&he,se=te?A:o,xe=te?o:A,ze=te?L:o,Ge=te?o:L;l|=te?Te:$e,l&=~(te?$e:Te),l&Ae||(l&=~(me|Ee));var dt=[i,l,x,ze,se,Ge,xe,z,H,ee],qe=d.apply(o,dt);return M(i)&&ar(qe,dt),qe.placeholder=g,Ur(qe,i,l)}function Aa(i){var l=dr[i];return function(d,g){if(d=pi(d),g=g==null?0:Pr(ct(g),292),g&&g1(d)){var x=(zt(d)+"e").split("e"),L=l(x[0]+"e"+(+x[1]+g));return x=(zt(L)+"e").split("e"),+(x[0]+"e"+(+x[1]-g))}return l(d)}}var Da=Fo&&1/pl(new Fo([,-0]))[1]==ve?function(i){return new Fo(i)}:Jf;function Mn(i){return function(l){var d=Wr(l);return d==sr?hl(l):d==Je?u1(l):Li(l,i(l))}}function On(i,l,d,g,x,L,A,z){var H=l&Ee;if(!H&&typeof i!="function")throw new on(y);var ee=g?g.length:0;if(ee||(l&=~(Te|$e),g=x=o),A=A===o?A:Gt(ct(A),0),z=z===o?z:ct(z),ee-=x?x.length:0,l&$e){var te=g,se=x;g=x=o}var xe=H?o:_t(i),ze=[i,l,d,g,x,te,se,L,A,z];if(xe&&be(ze,xe),i=ze[0],l=ze[1],d=ze[2],g=ze[3],x=ze[4],z=ze[9]=ze[9]===o?H?0:i.length:Gt(ze[9]-ee,0),!z&&l&(he|de)&&(l&=~(he|de)),!l||l==me)var Ge=V1(i,l,d);else l==he||l==de?Ge=n0(i,l,z):(l==Te||l==(me|Te))&&!x.length?Ge=Ff(i,l,d,g):Ge=Pa.apply(o,ze);var dt=xe?Ma:ar;return Ur(dt(Ge,ze),i,l)}function Bl(i,l,d,g){return i===o||Ai(i,Xi[d])&&!et.call(g,d)?l:i}function o0(i,l,d,g,x,L){return ir(i)&&ir(l)&&(L.set(l,i),Dl(i,l,o,o0,L),L.delete(l)),i}function X1(i){return u0(i)?o:i}function s0(i,l,d,g,x,L){var A=d&ue,z=i.length,H=l.length;if(z!=H&&!(A&&H>z))return!1;var ee=L.get(i),te=L.get(l);if(ee&&te)return ee==l&&te==i;var se=-1,xe=!0,ze=d&Ce?new Dr:o;for(L.set(i,l),L.set(l,i);++se<z;){var Ge=i[se],dt=l[se];if(g)var qe=A?g(dt,Ge,se,l,i,L):g(Ge,dt,se,i,l,L);if(qe!==o){if(qe)continue;xe=!1;break}if(ze){if(!Eo(l,function(yt,Ct){if(!nn(ze,Ct)&&(Ge===yt||x(Ge,yt,d,g,L)))return ze.push(Ct)})){xe=!1;break}}else if(!(Ge===dt||x(Ge,dt,d,g,L))){xe=!1;break}}return L.delete(i),L.delete(l),xe}function Q1(i,l,d,g,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 No(i),new No(l)));case Be:case it:case je:return Ai(+i,+l);case Fe:return i.name==l.name&&i.message==l.message;case ur:case F:return i==l+"";case sr:var z=hl;case Je:var H=g&ue;if(z||(z=pl),i.size!=l.size&&!H)return!1;var ee=A.get(i);if(ee)return ee==l;g|=Ce,A.set(i,l);var te=s0(z(i),z(l),g,x,L,A);return A.delete(i),te;case ie:if(qt)return qt.call(i)==qt.call(l)}return!1}function J1(i,l,d,g,x,L){var A=d&ue,z=Ia(i),H=z.length,ee=Ia(l),te=ee.length;if(H!=te&&!A)return!1;for(var se=H;se--;){var xe=z[se];if(!(A?xe in l:et.call(l,xe)))return!1}var ze=L.get(i),Ge=L.get(l);if(ze&&Ge)return ze==l&&Ge==i;var dt=!0;L.set(i,l),L.set(l,i);for(var qe=A;++se<H;){xe=z[se];var yt=i[xe],Ct=l[xe];if(g)var jn=A?g(Ct,yt,xe,l,i,L):g(yt,Ct,xe,i,l,L);if(!(jn===o?yt===Ct||x(yt,Ct,d,g,L):jn)){dt=!1;break}qe||(qe=xe=="constructor")}if(dt&&!qe){var wn=i.constructor,Kn=l.constructor;wn!=Kn&&"constructor"in i&&"constructor"in l&&!(typeof wn=="function"&&wn instanceof wn&&typeof Kn=="function"&&Kn instanceof Kn)&&(dt=!1)}return L.delete(i),L.delete(l),dt}function Pi(i){return Br(Ie(i,o,Sh),i+"")}function Ia(i){return Uo(i,Vr,a0)}function Ul(i){return Uo(i,Pn,ec)}var _t=li?function(i){return li.get(i)}:Jf;function za(i){for(var l=i.name+"",d=_s[l],g=et.call(_s,l)?d.length:0;g--;){var x=d[g],L=x.func;if(L==null||L==i)return x.name}return l}function Rs(i){var l=et.call(_,"placeholder")?_:i;return l.placeholder}function Re(){var i=_.iteratee||Xf;return i=i===Xf?A1:i,arguments.length?i(arguments[0],arguments[1]):i}function Yl(i,l){var d=i.__data__;return S(l)?d[typeof l=="string"?"string":"hash"]:d.map}function Hs(i){for(var l=Vr(i),d=l.length;d--;){var g=l[d],x=i[g];l[d]=[g,x,Q(x)]}return l}function Go(i,l){var d=Eu(i,l);return Ps(d)?d:o}function Jt(i){var l=et.call(i,eo),d=i[eo];try{i[eo]=o;var g=!0}catch{}var x=zo.call(i);return g&&(l?i[eo]=d:delete i[eo]),x}var a0=to?function(i){return i==null?[]:(i=bt(i),Zi(to(i),function(l){return yl.call(i,l)}))}:ed,ec=to?function(i){for(var l=[];i;)Vi(l,a0(i)),i=ys(i);return l}:ed,Wr=xr;(no&&Wr(new no(new ArrayBuffer(1)))!=$n||xs&&Wr(new xs)!=sr||Cl&&Wr(Cl.resolve())!=$r||Fo&&Wr(new Fo)!=Je||ba&&Wr(new ba)!=Ke)&&(Wr=function(i){var l=xr(i),d=l==kt?i.constructor:o,g=d?$t(d):"";if(g)switch(g){case Cf:return $n;case wf:return sr;case xf:return $r;case _f:return Je;case Lf:return Ke}return l});function Zl(i,l,d){for(var g=-1,x=d.length;++g<x;){var L=d[g],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=Gt(i,l-A);break}}return{start:i,end:l}}function e(i){var l=i.match(ra);return l?l[1].split(Ui):[]}function t(i,l,d){l=Gn(l,i);for(var g=-1,x=l.length,L=!1;++g<x;){var A=At(l[g]);if(!(L=i!=null&&d(i,A)))break;i=i[A]}return L||++g!=x?L:(x=i==null?0:i.length,!!x&&sc(x)&&m(A,x)&&(lt(i)||Na(i)))}function a(i){var l=i.length,d=new i.constructor(l);return l&&typeof i[0]=="string"&&et.call(i,"index")&&(d.index=i.index,d.input=i.input),d}function s(i){return typeof i.constructor=="function"&&!Z(i)?ui(ys(i)):{}}function u(i,l,d){var g=i.constructor;switch(l){case kr:return Rl(i);case Be:case it:return new g(+i);case $n:return Rf(i,d);case qr:case Ut:case wi:case Rr:case Rn:case Ne:case Wi:case Mr:case Ze:return F1(i,d);case sr:return new g;case je:case F:return new g(i);case ur:return t0(i);case Je:return new g;case ie:return H1(i)}}function h(i,l){var d=l.length;if(!d)return i;var g=d-1;return l[g]=(d>1?"& ":"")+l[g],l=l.join(d>2?", ":" "),i.replace(Ja,`{
2252
2259
  /* [wrapped with `+l+`] */
2253
- `)}function p(i){return lt(i)||Na(i)||!!($o&&i&&i[$o])}function m(i,l){var d=typeof i;return l=l==null?nt:l,!!l&&(d=="number"||d!="symbol"&&na.test(i))&&i>-1&&i%1==0&&i<l}function b(i,l,d){if(!ir(d))return!1;var g=typeof l;return(g=="number"?Tn(d)&&m(l,d.length):g=="string"&&l in d)?Ai(d[l],i):!1}function C(i,l){if(lt(i))return!1;var d=typeof i;return d=="number"||d=="symbol"||d=="boolean"||i==null||qn(i)?!0:jr.test(i)||!ta.test(i)||l!=null&&i in bt(l)}function S(i){var l=typeof i;return l=="string"||l=="number"||l=="symbol"||l=="boolean"?i!=="__proto__":i===null}function M(i){var l=za(i),d=_[l];if(typeof d!="function"||!(l in vt.prototype))return!1;if(i===d)return!0;var g=_t(d);return!!g&&i===g[0]}function $(i){return!!Si&&Si in i}var N=si?Ko:td;function Z(i){var l=i&&i.constructor,d=typeof l=="function"&&l.prototype||Xi;return i===d}function Q(i){return i===i&&!ir(i)}function ae(i,l){return function(d){return d==null?!1:d[i]===l&&(l!==o||i in bt(d))}}function ce(i){var l=ic(i,function(g){return d.size===O&&d.clear(),g}),d=l.cache;return l}function be(i,l){var d=i[1],g=l[1],x=d|g,L=x<(me|Ee|We),A=g==We&&d==he||g==We&&d==Qe&&i[7].length<=l[8]||g==(We|Qe)&&l[7].length<=l[8]&&d==he;if(!(L||A))return i;g&me&&(i[2]=l[2],x|=d&me?0:Ae);var z=l[3];if(z){var H=i[3];i[3]=H?B1(H,z,l[4]):z,i[4]=H?qi(i[3],I):l[4]}return z=l[5],z&&(H=i[5],i[5]=H?Hl(H,z,l[6]):z,i[6]=H?qi(i[5],I):l[6]),z=l[7],z&&(i[7]=z),g&We&&(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 fe(i){var l=[];if(i!=null)for(var d in bt(i))l.push(d);return l}function we(i){return zo.call(i)}function Ie(i,l,d){return l=Gt(l===o?i.length-1:l,0),function(){for(var g=arguments,x=-1,L=Gt(g.length-l,0),A=Y(L);++x<L;)A[x]=g[l+x];x=-1;for(var z=Y(l+1);++x<l;)z[x]=g[x];return z[l]=d(A),gn(i,this,z)}}function Pe(i,l){return l.length<2?i:lo(i,kn(l,0,-1))}function st(i,l){for(var d=i.length,g=Pr(l.length,d),x=_r(i);g--;){var L=l[g];i[g]=m(L,d)?x[L]:o}return i}function Mt(i,l){if(!(l==="constructor"&&typeof i[l]=="function")&&l!="__proto__")return i[l]}var ar=er(Ma),It=bf||function(i,l){return Vt.setTimeout(i,l)},Br=er(Oa);function Ur(i,l,d){var g=l+"";return Br(i,h(g,jt(e(g),d)))}function er(i){var l=0,d=0;return function(){var g=Ho(),x=B-(g-d);if(d=g,x>0){if(++l>=rt)return arguments[0]}else l=0;return i.apply(o,arguments)}}function Lr(i,l){var d=-1,g=i.length,x=g-1;for(l=l===o?g:l;++d<l;){var L=Il(d,x),A=i[L];i[L]=i[d],i[d]=A}return i.length=l,i}var hr=ce(function(i){var l=[];return i.charCodeAt(0)===46&&l.push(""),i.replace(Xa,function(d,g,x,L){l.push(x?L.replace(el,"$1"):g||d)}),l});function At(i){if(typeof i=="string"||qn(i))return i;var l=i+"";return l=="0"&&1/i==-ve?"-0":l}function $t(i){if(i!=null){try{return ai.call(i)}catch{}try{return i+""}catch{}}return""}function jt(i,l){return _n(Ht,function(d){var g="_."+d[0];l&d[1]&&!fa(i,g)&&i.push(g)}),i.sort()}function Yr(i){if(i instanceof vt)return i.clone();var l=new Qr(i.__wrapped__,i.__chain__);return l.__actions__=_r(i.__actions__),l.__index__=i.__index__,l.__values__=i.__values__,l}function Ws(i,l,d){(d?b(i,l,d):l===o)?l=1:l=Gt(ct(l),0);var g=i==null?0:i.length;if(!g||l<1)return[];for(var x=0,L=0,A=Y(ws(g/l));x<g;)A[L++]=kn(i,x,x+=l);return A}function po(i){for(var l=-1,d=i==null?0:i.length,g=0,x=[];++l<d;){var L=i[l];L&&(x[g++]=L)}return x}function zr(){var i=arguments.length;if(!i)return[];for(var l=Y(i-1),d=arguments[0],g=i;g--;)l[g-1]=arguments[g];return Vi(lt(d)?_r(d):[d],Ir(l,1))}var di=ut(function(i,l){return vr(i)?Ss(i,Ir(l,1,vr,!0)):[]}),pr=ut(function(i,l){var d=hi(l);return vr(d)&&(d=o),vr(i)?Ss(i,Ir(l,1,vr,!0),Re(d,2)):[]}),l0=ut(function(i,l){var d=hi(l);return vr(d)&&(d=o),vr(i)?Ss(i,Ir(l,1,vr,!0),o,d):[]});function Ei(i,l,d){var g=i==null?0:i.length;return g?(l=d||l===o?1:ct(l),kn(i,l<0?0:l,g)):[]}function qo(i,l,d){var g=i==null?0:i.length;return g?(l=d||l===o?1:ct(l),l=g-l,kn(i,0,l<0?0:l)):[]}function jo(i,l){return i&&i.length?Ds(i,Re(l,3),!0,!0):[]}function Zr(i,l){return i&&i.length?Ds(i,Re(l,3),!0):[]}function Bs(i,l,d,g){var x=i==null?0:i.length;return x?(d&&typeof d!="number"&&b(i,l,d)&&(d=0,g=x),Yu(i,l,d,g)):[]}function Vl(i,l,d){var g=i==null?0:i.length;if(!g)return-1;var x=d==null?0:ct(d);return x<0&&(x=Gt(g+x,0)),ul(i,Re(l,3),x)}function _h(i,l,d){var g=i==null?0:i.length;if(!g)return-1;var x=g-1;return d!==o&&(x=ct(d),x=d<0?Gt(g+x,0):Pr(x,g-1)),ul(i,Re(l,3),x,!0)}function Lh(i){var l=i==null?0:i.length;return l?Ir(i,1):[]}function k4(i){var l=i==null?0:i.length;return l?Ir(i,ve):[]}function M4(i,l){var d=i==null?0:i.length;return d?(l=l===o?1:ct(l),Ir(i,l)):[]}function O4(i){for(var l=-1,d=i==null?0:i.length,g={};++l<d;){var x=i[l];g[x[0]]=x[1]}return g}function Sh(i){return i&&i.length?i[0]:o}function T4(i,l,d){var g=i==null?0:i.length;if(!g)return-1;var x=d==null?0:ct(d);return x<0&&(x=Gt(g+x,0)),Ao(i,l,x)}function P4(i){var l=i==null?0:i.length;return l?kn(i,0,-1):[]}var E4=ut(function(i){var l=Et(i,Ju);return l.length&&l[0]===i[0]?Pl(l):[]}),A4=ut(function(i){var l=hi(i),d=Et(i,Ju);return l===hi(d)?l=o:d.pop(),d.length&&d[0]===i[0]?Pl(d,Re(l,2)):[]}),D4=ut(function(i){var l=hi(i),d=Et(i,Ju);return l=typeof l=="function"?l:o,l&&d.pop(),d.length&&d[0]===i[0]?Pl(d,o,l):[]});function I4(i,l){return i==null?"":bl.call(i,l)}function hi(i){var l=i==null?0:i.length;return l?i[l-1]:o}function z4(i,l,d){var g=i==null?0:i.length;if(!g)return-1;var x=g;return d!==o&&(x=ct(d),x=x<0?Gt(g+x,0):Pr(x,g-1)),l===l?ha(i,l,x):ul(i,cl,x,!0)}function N4(i,l){return i&&i.length?I1(i,ct(l)):o}var $4=ut(kh);function kh(i,l){return i&&i.length&&l&&l.length?Gu(i,l):i}function R4(i,l,d){return i&&i.length&&l&&l.length?Gu(i,l,Re(d,2)):i}function H4(i,l,d){return i&&i.length&&l&&l.length?Gu(i,l,o,d):i}var F4=Pi(function(i,l){var d=i==null?0:i.length,g=Uu(i,l);return qu(i,Et(l,function(x){return m(x,d)?+x:x}).sort(r0)),g});function W4(i,l){var d=[];if(!(i&&i.length))return d;var g=-1,x=[],L=i.length;for(l=Re(l,3);++g<L;){var A=i[g];l(A,g,i)&&(d.push(A),x.push(g))}return qu(i,x),d}function Wf(i){return i==null?i:ya.call(i)}function B4(i,l,d){var g=i==null?0:i.length;return g?(d&&typeof d!="number"&&b(i,l,d)?(l=0,d=g):(l=l==null?0:ct(l),d=d===o?g:ct(d)),kn(i,l,d)):[]}function U4(i,l){return Ti(i,l)}function Y4(i,l,d){return zl(i,l,Re(d,2))}function Z4(i,l){var d=i==null?0:i.length;if(d){var g=Ti(i,l);if(g<d&&Ai(i[g],l))return g}return-1}function V4(i,l){return Ti(i,l,!0)}function G4(i,l,d){return zl(i,l,Re(d,2),!0)}function q4(i,l){var d=i==null?0:i.length;if(d){var g=Ti(i,l,!0)-1;if(Ai(i[g],l))return g}return-1}function j4(i){return i&&i.length?Ku(i):[]}function K4(i,l){return i&&i.length?Ku(i,Re(l,2)):[]}function X4(i){var l=i==null?0:i.length;return l?kn(i,1,l):[]}function Q4(i,l,d){return i&&i.length?(l=d||l===o?1:ct(l),kn(i,0,l<0?0:l)):[]}function J4(i,l,d){var g=i==null?0:i.length;return g?(l=d||l===o?1:ct(l),l=g-l,kn(i,l<0?0:l,g)):[]}function e5(i,l){return i&&i.length?Ds(i,Re(l,3),!1,!0):[]}function t5(i,l){return i&&i.length?Ds(i,Re(l,3)):[]}var r5=ut(function(i){return Cn(Ir(i,1,vr,!0))}),n5=ut(function(i){var l=hi(i);return vr(l)&&(l=o),Cn(Ir(i,1,vr,!0),Re(l,2))}),i5=ut(function(i){var l=hi(i);return l=typeof l=="function"?l:o,Cn(Ir(i,1,vr,!0),o,l)});function o5(i){return i&&i.length?Cn(i):[]}function s5(i,l){return i&&i.length?Cn(i,Re(l,2)):[]}function a5(i,l){return l=typeof l=="function"?l:o,i&&i.length?Cn(i,o,l):[]}function Bf(i){if(!(i&&i.length))return[];var l=0;return i=Zi(i,function(d){if(vr(d))return l=Gt(d.length,l),!0}),Do(l,function(d){return Et(i,Mu(d))})}function Mh(i,l){if(!(i&&i.length))return[];var d=Bf(i);return l==null?d:Et(d,function(g){return gn(l,o,g)})}var l5=ut(function(i,l){return vr(i)?Ss(i,l):[]}),u5=ut(function(i){return Zo(Zi(i,vr))}),c5=ut(function(i){var l=hi(i);return vr(l)&&(l=o),Zo(Zi(i,vr),Re(l,2))}),f5=ut(function(i){var l=hi(i);return l=typeof l=="function"?l:o,Zo(Zi(i,vr),o,l)}),d5=ut(Bf);function h5(i,l){return Qu(i||[],l||[],xa)}function p5(i,l){return Qu(i||[],l||[],Mi)}var v5=ut(function(i){var l=i.length,d=l>1?i[l-1]:o;return d=typeof d=="function"?(i.pop(),d):o,Mh(i,d)});function Oh(i){var l=_(i);return l.__chain__=!0,l}function g5(i,l){return l(i),i}function tc(i,l){return l(i)}var m5=Pi(function(i){var l=i.length,d=l?i[0]:0,g=this.__wrapped__,x=function(L){return Uu(L,i)};return l>1||this.__actions__.length||!(g instanceof vt)||!m(d)?this.thru(x):(g=g.slice(d,+d+(l?1:0)),g.__actions__.push({func:tc,args:[x],thisArg:o}),new Qr(g,this.__chain__).thru(function(L){return l&&!L.length&&L.push(o),L}))});function y5(){return Oh(this)}function b5(){return new Qr(this.value(),this.__chain__)}function C5(){this.__values__===o&&(this.__values__=Bh(this.value()));var i=this.__index__>=this.__values__.length,l=i?o:this.__values__[this.__index__++];return{done:i,value:l}}function w5(){return this}function x5(i){for(var l,d=this;d instanceof wl;){var g=Yr(d);g.__index__=0,g.__values__=o,l?x.__wrapped__=g:l=g;var x=g;d=d.__wrapped__}return x.__wrapped__=i,l}function _5(){var i=this.__wrapped__;if(i instanceof vt){var l=i;return this.__actions__.length&&(l=new vt(this)),l=l.reverse(),l.__actions__.push({func:tc,args:[Wf],thisArg:o}),new Qr(l,this.__chain__)}return this.thru(Wf)}function L5(){return R1(this.__wrapped__,this.__actions__)}var S5=Fl(function(i,l,d){et.call(i,d)?++i[d]:fi(i,d,1)});function k5(i,l,d){var g=lt(i)?Lu:kl;return d&&b(i,l,d)&&(l=o),g(i,Re(l,3))}function M5(i,l){var d=lt(i)?Zi:Zu;return d(i,Re(l,3))}var O5=i0(Vl),T5=i0(_h);function P5(i,l){return Ir(rc(i,l),1)}function E5(i,l){return Ir(rc(i,l),ve)}function A5(i,l,d){return d=d===o?1:ct(d),Ir(rc(i,l),d)}function Th(i,l){var d=lt(i)?_n:yn;return d(i,Re(l,3))}function Ph(i,l){var d=lt(i)?cf:Sl;return d(i,Re(l,3))}var D5=Fl(function(i,l,d){et.call(i,d)?i[d].push(l):fi(i,d,[l])});function I5(i,l,d,g){i=Tn(i)?i:ql(i),d=d&&!g?ct(d):0;var x=i.length;return d<0&&(d=Gt(x+d,0)),ac(i)?d<=x&&i.indexOf(l,d)>-1:!!x&&Ao(i,l,d)>-1}var z5=ut(function(i,l,d){var g=-1,x=typeof l=="function",L=Tn(i)?Y(i.length):[];return yn(i,function(A){L[++g]=x?gn(l,A,d):Ms(A,l,d)}),L}),N5=Fl(function(i,l,d){fi(i,d,l)});function rc(i,l){var d=lt(i)?Et:As;return d(i,Re(l,3))}function $5(i,l,d,g){return i==null?[]:(lt(l)||(l=l==null?[]:[l]),d=g?o:d,lt(d)||(d=d==null?[]:[d]),Hr(i,l,d))}var R5=Fl(function(i,l,d){i[d?0:1].push(l)},function(){return[[],[]]});function H5(i,l,d){var g=lt(i)?Su:Tu,x=arguments.length<3;return g(i,Re(l,4),d,x,yn)}function F5(i,l,d){var g=lt(i)?ff:Tu,x=arguments.length<3;return g(i,Re(l,4),d,x,Sl)}function W5(i,l){var d=lt(i)?Zi:Zu;return d(i,oc(Re(l,3)))}function B5(i){var l=lt(i)?_l:zf;return l(i)}function U5(i,l,d){(d?b(i,l,d):l===o)?l=1:l=ct(l);var g=lt(i)?ao:fo;return g(i,l)}function Y5(i){var l=lt(i)?_1:Oi;return l(i)}function Z5(i){if(i==null)return 0;if(Tn(i))return ac(i)?Io(i):i.length;var l=Wr(i);return l==sr||l==Je?i.size:Al(i).length}function V5(i,l,d){var g=lt(i)?Eo:Nf;return d&&b(i,l,d)&&(l=o),g(i,Re(l,3))}var G5=ut(function(i,l){if(i==null)return[];var d=l.length;return d>1&&b(i,l[0],l[1])?l=[]:d>2&&b(l[0],l[1],l[2])&&(l=[l[0]]),Hr(i,Ir(l,1),[])}),nc=yf||function(){return Vt.Date.now()};function q5(i,l){if(typeof l!="function")throw new on(y);return i=ct(i),function(){if(--i<1)return l.apply(this,arguments)}}function Eh(i,l,d){return l=d?o:l,l=i&&l==null?i.length:l,On(i,We,o,o,o,o,l)}function Ah(i,l){var d;if(typeof l!="function")throw new on(y);return i=ct(i),function(){return--i>0&&(d=l.apply(this,arguments)),i<=1&&(l=o),d}}var Uf=ut(function(i,l,d){var g=me;if(d.length){var x=qi(d,Hs(Uf));g|=Te}return On(i,g,l,d,x)}),Dh=ut(function(i,l,d){var g=me|Ee;if(d.length){var x=qi(d,Hs(Dh));g|=Te}return On(l,g,i,d,x)});function Ih(i,l,d){l=d?o:l;var g=On(i,he,o,o,o,o,o,l);return g.placeholder=Ih.placeholder,g}function zh(i,l,d){l=d?o:l;var g=On(i,de,o,o,o,o,o,l);return g.placeholder=zh.placeholder,g}function Nh(i,l,d){var g,x,L,A,z,H,ee=0,te=!1,se=!1,xe=!0;if(typeof i!="function")throw new on(y);l=pi(l)||0,ir(d)&&(te=!!d.leading,se="maxWait"in d,L=se?Gt(pi(d.maxWait)||0,l):L,xe="trailing"in d?!!d.trailing:xe);function ze(gr){var Di=g,Qo=x;return g=x=o,ee=gr,A=i.apply(Qo,Di),A}function Ge(gr){return ee=gr,z=It(yt,l),te?ze(gr):A}function dt(gr){var Di=gr-H,Qo=gr-ee,tp=l-Di;return se?Pr(tp,L-Qo):tp}function qe(gr){var Di=gr-H,Qo=gr-ee;return H===o||Di>=l||Di<0||se&&Qo>=L}function yt(){var gr=nc();if(qe(gr))return Ct(gr);z=It(yt,dt(gr))}function Ct(gr){return z=o,xe&&g?ze(gr):(g=x=o,A)}function jn(){z!==o&&Is(z),ee=0,g=H=x=z=o}function wn(){return z===o?A:Ct(nc())}function Kn(){var gr=nc(),Di=qe(gr);if(g=arguments,x=this,H=gr,Di){if(z===o)return Ge(H);if(se)return Is(z),z=It(yt,l),ze(H)}return z===o&&(z=It(yt,l)),A}return Kn.cancel=jn,Kn.flush=wn,Kn}var j5=ut(function(i,l){return k1(i,1,l)}),K5=ut(function(i,l,d){return k1(i,pi(l)||0,d)});function X5(i){return On(i,tt)}function ic(i,l){if(typeof i!="function"||l!=null&&typeof l!="function")throw new on(y);var d=function(){var g=arguments,x=l?l.apply(this,g):g[0],L=d.cache;if(L.has(x))return L.get(x);var A=i.apply(this,g);return d.cache=L.set(x,A)||L,A};return d.cache=new(ic.Cache||nr),d}ic.Cache=nr;function oc(i){if(typeof i!="function")throw new on(y);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 Q5(i){return Ah(2,i)}var J5=$f(function(i,l){l=l.length==1&&lt(l[0])?Et(l[0],Xr(Re())):Et(Ir(l,1),Xr(Re()));var d=l.length;return ut(function(g){for(var x=-1,L=Pr(g.length,d);++x<L;)g[x]=l[x].call(this,g[x]);return gn(i,this,g)})}),Yf=ut(function(i,l){var d=qi(l,Hs(Yf));return On(i,Te,o,l,d)}),$h=ut(function(i,l){var d=qi(l,Hs($h));return On(i,$e,o,l,d)}),e6=Pi(function(i,l){return On(i,Qe,o,o,o,l)});function t6(i,l){if(typeof i!="function")throw new on(y);return l=l===o?l:ct(l),ut(i,l)}function r6(i,l){if(typeof i!="function")throw new on(y);return l=l==null?0:Gt(ct(l),0),ut(function(d){var g=d[l],x=ho(d,0,l);return g&&Vi(x,g),gn(i,this,x)})}function n6(i,l,d){var g=!0,x=!0;if(typeof i!="function")throw new on(y);return ir(d)&&(g="leading"in d?!!d.leading:g,x="trailing"in d?!!d.trailing:x),Nh(i,l,{leading:g,maxWait:l,trailing:x})}function i6(i){return Eh(i,1)}function o6(i,l){return Yf($l(l),i)}function s6(){if(!arguments.length)return[];var i=arguments[0];return lt(i)?i:[i]}function a6(i){return Jr(i,X)}function l6(i,l){return l=typeof l=="function"?l:o,Jr(i,X,l)}function u6(i){return Jr(i,U|X)}function c6(i,l){return l=typeof l=="function"?l:o,Jr(i,U|X,l)}function f6(i,l){return l==null||S1(i,l,Vr(l))}function Ai(i,l){return i===l||i!==i&&l!==l}var d6=Dt(Tl),h6=Dt(function(i,l){return i>=l}),Na=Os(function(){return arguments}())?Os:function(i){return lr(i)&&et.call(i,"callee")&&!yl.call(i,"callee")},lt=Y.isArray,p6=J0?Xr(J0):Af;function Tn(i){return i!=null&&sc(i.length)&&!Ko(i)}function vr(i){return lr(i)&&Tn(i)}function v6(i){return i===!0||i===!1||lr(i)&&xr(i)==Be}var Us=ga||td,g6=e1?Xr(e1):Ts;function m6(i){return lr(i)&&i.nodeType===1&&!u0(i)}function y6(i){if(i==null)return!0;if(Tn(i)&&(lt(i)||typeof i=="string"||typeof i.splice=="function"||Us(i)||Gl(i)||Na(i)))return!i.length;var l=Wr(i);if(l==sr||l==Je)return!i.size;if(Z(i))return!Al(i).length;for(var d in i)if(et.call(i,d))return!1;return!0}function b6(i,l){return Ps(i,l)}function C6(i,l,d){d=typeof d=="function"?d:o;var g=d?d(i,l):o;return g===o?Ps(i,l,o,d):!!g}function Zf(i){if(!lr(i))return!1;var l=xr(i);return l==Fe||l==ot||typeof i.message=="string"&&typeof i.name=="string"&&!u0(i)}function w6(i){return typeof i=="number"&&g1(i)}function Ko(i){if(!ir(i))return!1;var l=xr(i);return l==Zt||l==Gr||l==He||l==en}function Rh(i){return typeof i=="number"&&i==ct(i)}function sc(i){return typeof i=="number"&&i>-1&&i%1==0&&i<=nt}function ir(i){var l=typeof i;return i!=null&&(l=="object"||l=="function")}function lr(i){return i!=null&&typeof i=="object"}var Hh=t1?Xr(t1):P1;function x6(i,l){return i===l||Yo(i,l,Fs(l))}function _6(i,l,d){return d=typeof d=="function"?d:o,Yo(i,l,Fs(l),d)}function L6(i){return Fh(i)&&i!=+i}function S6(i){if(N(i))throw new Xe(v);return Es(i)}function k6(i){return i===null}function M6(i){return i==null}function Fh(i){return typeof i=="number"||lr(i)&&xr(i)==je}function u0(i){if(!lr(i)||xr(i)!=kt)return!1;var l=bs(i);if(l===null)return!0;var d=et.call(l,"constructor")&&l.constructor;return typeof d=="function"&&d instanceof d&&ai.call(d)==gf}var Vf=r1?Xr(r1):Sa;function O6(i){return Rh(i)&&i>=-nt&&i<=nt}var Wh=xu?Xr(xu):ka;function ac(i){return typeof i=="string"||!lt(i)&&lr(i)&&xr(i)==F}function qn(i){return typeof i=="symbol"||lr(i)&&xr(i)==ie}var Gl=_u?Xr(_u):E1;function T6(i){return i===o}function P6(i){return lr(i)&&Wr(i)==Ke}function E6(i){return lr(i)&&xr(i)==cr}var A6=Dt(co),D6=Dt(function(i,l){return i<=l});function Bh(i){if(!i)return[];if(Tn(i))return ac(i)?Ln(i):_r(i);if(Ji&&i[Ji])return a1(i[Ji]());var l=Wr(i),d=l==sr?hl:l==Je?pl:ql;return d(i)}function Xo(i){if(!i)return i===0?i:0;if(i=pi(i),i===ve||i===-ve){var l=i<0?-1:1;return l*Pt}return i===i?i:0}function ct(i){var l=Xo(i),d=l%1;return l===l?d?l-d:l:0}function Uh(i){return i?Bo(ct(i),0,Rt):0}function pi(i){if(typeof i=="number")return i;if(qn(i))return or;if(ir(i)){var l=typeof i.valueOf=="function"?i.valueOf():i;i=ir(l)?l+"":l}if(typeof i!="string")return i===0?i:+i;i=da(i);var d=Fn.test(i);return d||pn.test(i)?lf(i.slice(2),d?2:8):ds.test(i)?or:+i}function Yh(i){return sn(i,Pn(i))}function I6(i){return i?Bo(ct(i),-nt,nt):i===0?i:0}function zt(i){return i==null?"":Fr(i)}var z6=zs(function(i,l){if(Z(l)||Tn(l)){sn(l,Vr(l),i);return}for(var d in l)et.call(l,d)&&xa(i,d,l[d])}),Zh=zs(function(i,l){sn(l,Pn(l),i)}),lc=zs(function(i,l,d,g){sn(l,Pn(l),i,g)}),N6=zs(function(i,l,d,g){sn(l,Vr(l),i,g)}),$6=Pi(Uu);function R6(i,l){var d=ui(i);return l==null?d:Bu(d,l)}var H6=ut(function(i,l){i=bt(i);var d=-1,g=l.length,x=g>2?l[2]:o;for(x&&b(l[0],l[1],x)&&(g=1);++d<g;)for(var L=l[d],A=Pn(L),z=-1,H=A.length;++z<H;){var ee=A[z],te=i[ee];(te===o||Ai(te,Xi[ee])&&!et.call(i,ee))&&(i[ee]=L[ee])}return i}),F6=ut(function(i){return i.push(o,o0),gn(Vh,o,i)});function W6(i,l){return gs(i,Re(l,3),bn)}function B6(i,l){return gs(i,Re(l,3),Ol)}function U6(i,l){return i==null?i:Ml(i,Re(l,3),Pn)}function Y6(i,l){return i==null?i:wr(i,Re(l,3),Pn)}function Z6(i,l){return i&&bn(i,Re(l,3))}function V6(i,l){return i&&Ol(i,Re(l,3))}function G6(i){return i==null?[]:La(i,Vr(i))}function q6(i){return i==null?[]:La(i,Pn(i))}function Gf(i,l,d){var g=i==null?o:lo(i,l);return g===o?d:g}function j6(i,l){return i!=null&&t(i,l,M1)}function qf(i,l){return i!=null&&t(i,l,O1)}var K6=Vo(function(i,l,d){l!=null&&typeof l.toString!="function"&&(l=zo.call(l)),i[l]=d},Kf(En)),X6=Vo(function(i,l,d){l!=null&&typeof l.toString!="function"&&(l=zo.call(l)),et.call(i,l)?i[l].push(d):i[l]=[d]},Re),Q6=ut(Ms);function Vr(i){return Tn(i)?Fu(i):Al(i)}function Pn(i){return Tn(i)?Fu(i,!0):uo(i)}function J6(i,l){var d={};return l=Re(l,3),bn(i,function(g,x,L){fi(d,l(g,x,L),g)}),d}function e3(i,l){var d={};return l=Re(l,3),bn(i,function(g,x,L){fi(d,x,l(g,x,L))}),d}var t3=zs(function(i,l,d){Dl(i,l,d)}),Vh=zs(function(i,l,d,g){Dl(i,l,d,g)}),r3=Pi(function(i,l){var d={};if(i==null)return d;var g=!1;l=Et(l,function(L){return L=Gn(L,i),g||(g=L.length>1),L}),sn(i,Ul(i),d),g&&(d=Jr(d,U|q|X,X1));for(var x=l.length;x--;)Ta(d,l[x]);return d});function n3(i,l){return Gh(i,oc(Re(l)))}var i3=Pi(function(i,l){return i==null?{}:z1(i,l)});function Gh(i,l){if(i==null)return{};var d=Et(Ul(i),function(g){return[g]});return l=Re(l),N1(i,d,function(g,x){return l(g,x[0])})}function o3(i,l,d){l=Gn(l,i);var g=-1,x=l.length;for(x||(x=1,i=o);++g<x;){var L=i==null?o:i[At(l[g])];L===o&&(g=x,L=d),i=Ko(L)?L.call(i):L}return i}function s3(i,l,d){return i==null?i:Mi(i,l,d)}function a3(i,l,d,g){return g=typeof g=="function"?g:o,i==null?i:Mi(i,l,d,g)}var qh=Mn(Vr),jh=Mn(Pn);function l3(i,l,d){var g=lt(i),x=g||Us(i)||Gl(i);if(l=Re(l,4),d==null){var L=i&&i.constructor;x?d=g?new L:[]:ir(i)?d=Ko(L)?ui(bs(i)):{}:d={}}return(x?_n:bn)(i,function(A,z,H){return l(d,A,z,H)}),d}function u3(i,l){return i==null?!0:Ta(i,l)}function c3(i,l,d){return i==null?i:Nl(i,l,$l(d))}function f3(i,l,d,g){return g=typeof g=="function"?g:o,i==null?i:Nl(i,l,$l(d),g)}function ql(i){return i==null?[]:fl(i,Vr(i))}function d3(i){return i==null?[]:fl(i,Pn(i))}function h3(i,l,d){return d===o&&(d=l,l=o),d!==o&&(d=pi(d),d=d===d?d:0),l!==o&&(l=pi(l),l=l===l?l:0),Bo(pi(i),l,d)}function p3(i,l,d){return l=Xo(l),d===o?(d=l,l=0):d=Xo(d),i=pi(i),ks(i,l,d)}function v3(i,l,d){if(d&&typeof d!="boolean"&&b(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=Xo(i),l===o?(l=i,i=0):l=Xo(l)),i>l){var g=i;i=l,l=g}if(d||i%1||l%1){var x=ro();return Pr(i+x*(l-i+af("1e-"+((x+"").length-1))),l)}return Il(i,l)}var g3=Ns(function(i,l,d){return l=l.toLowerCase(),i+(d?Kh(l):l)});function Kh(i){return jf(zt(i).toLowerCase())}function Xh(i){return i=zt(i),i&&i.replace(ia,o1).replace(q0,"")}function m3(i,l,d){i=zt(i),l=Fr(l);var g=i.length;d=d===o?g:Bo(ct(d),0,g);var x=d;return d-=l.length,d>=0&&i.slice(d,x)==l}function y3(i){return i=zt(i),i&&dn.test(i)?i.replace(Cr,vf):i}function b3(i){return i=zt(i),i&&ri.test(i)?i.replace(Mo,"\\$&"):i}var C3=Ns(function(i,l,d){return i+(d?"-":"")+l.toLowerCase()}),w3=Ns(function(i,l,d){return i+(d?" ":"")+l.toLowerCase()}),x3=G1("toLowerCase");function _3(i,l,d){i=zt(i),l=ct(l);var g=l?Io(i):0;if(!l||g>=l)return i;var x=(l-g)/2;return Wl(xs(x),d)+i+Wl(ws(x),d)}function L3(i,l,d){i=zt(i),l=ct(l);var g=l?Io(i):0;return l&&g<l?i+Wl(l-g,d):i}function S3(i,l,d){i=zt(i),l=ct(l);var g=l?Io(i):0;return l&&g<l?Wl(l-g,d)+i:i}function k3(i,l,d){return d||l==null?l=0:l&&(l=+l),ma(zt(i).replace(Oo,""),l||0)}function M3(i,l,d){return(d?b(i,l,d):l===o)?l=1:l=ct(l),ju(zt(i),l)}function O3(){var i=arguments,l=zt(i[0]);return i.length<3?l:l.replace(i[1],i[2])}var T3=Ns(function(i,l,d){return i+(d?"_":"")+l.toLowerCase()});function P3(i,l,d){return d&&typeof d!="number"&&b(i,l,d)&&(l=d=o),d=d===o?Rt:d>>>0,d?(i=zt(i),i&&(typeof l=="string"||l!=null&&!Vf(l))&&(l=Fr(l),!l&&Yn(i))?ho(Ln(i),0,d):i.split(l,d)):[]}var E3=Ns(function(i,l,d){return i+(d?" ":"")+jf(l)});function A3(i,l,d){return i=zt(i),d=d==null?0:Bo(ct(d),0,i.length),l=Fr(l),i.slice(d,d+l.length)==l}function D3(i,l,d){var g=_.templateSettings;d&&b(i,l,d)&&(l=o),i=zt(i),l=lc({},l,g,Bl);var x=lc({},l.imports,g.imports,Bl),L=Vr(x),A=fl(x,L),z,H,ee=0,te=l.interpolate||Ft,se="__p += '",xe=Ki((l.escape||Ft).source+"|"+te.source+"|"+(te===ea?xi:Ft).source+"|"+(l.evaluate||Ft).source+"|$","g"),ze="//# sourceURL="+(et.call(l,"sourceURL")?(l.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++wu+"]")+`
2260
+ `)}function p(i){return lt(i)||Na(i)||!!($o&&i&&i[$o])}function m(i,l){var d=typeof i;return l=l==null?nt:l,!!l&&(d=="number"||d!="symbol"&&na.test(i))&&i>-1&&i%1==0&&i<l}function b(i,l,d){if(!ir(d))return!1;var g=typeof l;return(g=="number"?Tn(d)&&m(l,d.length):g=="string"&&l in d)?Ai(d[l],i):!1}function C(i,l){if(lt(i))return!1;var d=typeof i;return d=="number"||d=="symbol"||d=="boolean"||i==null||qn(i)?!0:jr.test(i)||!ta.test(i)||l!=null&&i in bt(l)}function S(i){var l=typeof i;return l=="string"||l=="number"||l=="symbol"||l=="boolean"?i!=="__proto__":i===null}function M(i){var l=za(i),d=_[l];if(typeof d!="function"||!(l in vt.prototype))return!1;if(i===d)return!0;var g=_t(d);return!!g&&i===g[0]}function $(i){return!!Si&&Si in i}var N=si?Ko:td;function Z(i){var l=i&&i.constructor,d=typeof l=="function"&&l.prototype||Xi;return i===d}function Q(i){return i===i&&!ir(i)}function ae(i,l){return function(d){return d==null?!1:d[i]===l&&(l!==o||i in bt(d))}}function ce(i){var l=ic(i,function(g){return d.size===O&&d.clear(),g}),d=l.cache;return l}function be(i,l){var d=i[1],g=l[1],x=d|g,L=x<(me|Ee|We),A=g==We&&d==he||g==We&&d==Qe&&i[7].length<=l[8]||g==(We|Qe)&&l[7].length<=l[8]&&d==he;if(!(L||A))return i;g&me&&(i[2]=l[2],x|=d&me?0:Ae);var z=l[3];if(z){var H=i[3];i[3]=H?B1(H,z,l[4]):z,i[4]=H?qi(i[3],I):l[4]}return z=l[5],z&&(H=i[5],i[5]=H?Hl(H,z,l[6]):z,i[6]=H?qi(i[5],I):l[6]),z=l[7],z&&(i[7]=z),g&We&&(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 fe(i){var l=[];if(i!=null)for(var d in bt(i))l.push(d);return l}function we(i){return zo.call(i)}function Ie(i,l,d){return l=Gt(l===o?i.length-1:l,0),function(){for(var g=arguments,x=-1,L=Gt(g.length-l,0),A=Y(L);++x<L;)A[x]=g[l+x];x=-1;for(var z=Y(l+1);++x<l;)z[x]=g[x];return z[l]=d(A),gn(i,this,z)}}function Pe(i,l){return l.length<2?i:lo(i,kn(l,0,-1))}function st(i,l){for(var d=i.length,g=Pr(l.length,d),x=_r(i);g--;){var L=l[g];i[g]=m(L,d)?x[L]:o}return i}function Mt(i,l){if(!(l==="constructor"&&typeof i[l]=="function")&&l!="__proto__")return i[l]}var ar=er(Ma),It=bf||function(i,l){return Vt.setTimeout(i,l)},Br=er(Oa);function Ur(i,l,d){var g=l+"";return Br(i,h(g,jt(e(g),d)))}function er(i){var l=0,d=0;return function(){var g=Ho(),x=B-(g-d);if(d=g,x>0){if(++l>=rt)return arguments[0]}else l=0;return i.apply(o,arguments)}}function Lr(i,l){var d=-1,g=i.length,x=g-1;for(l=l===o?g:l;++d<l;){var L=Il(d,x),A=i[L];i[L]=i[d],i[d]=A}return i.length=l,i}var hr=ce(function(i){var l=[];return i.charCodeAt(0)===46&&l.push(""),i.replace(Xa,function(d,g,x,L){l.push(x?L.replace(el,"$1"):g||d)}),l});function At(i){if(typeof i=="string"||qn(i))return i;var l=i+"";return l=="0"&&1/i==-ve?"-0":l}function $t(i){if(i!=null){try{return ai.call(i)}catch{}try{return i+""}catch{}}return""}function jt(i,l){return _n(Ht,function(d){var g="_."+d[0];l&d[1]&&!fa(i,g)&&i.push(g)}),i.sort()}function Yr(i){if(i instanceof vt)return i.clone();var l=new Qr(i.__wrapped__,i.__chain__);return l.__actions__=_r(i.__actions__),l.__index__=i.__index__,l.__values__=i.__values__,l}function Fs(i,l,d){(d?b(i,l,d):l===o)?l=1:l=Gt(ct(l),0);var g=i==null?0:i.length;if(!g||l<1)return[];for(var x=0,L=0,A=Y(Cs(g/l));x<g;)A[L++]=kn(i,x,x+=l);return A}function po(i){for(var l=-1,d=i==null?0:i.length,g=0,x=[];++l<d;){var L=i[l];L&&(x[g++]=L)}return x}function zr(){var i=arguments.length;if(!i)return[];for(var l=Y(i-1),d=arguments[0],g=i;g--;)l[g-1]=arguments[g];return Vi(lt(d)?_r(d):[d],Ir(l,1))}var di=ut(function(i,l){return vr(i)?Ls(i,Ir(l,1,vr,!0)):[]}),pr=ut(function(i,l){var d=hi(l);return vr(d)&&(d=o),vr(i)?Ls(i,Ir(l,1,vr,!0),Re(d,2)):[]}),l0=ut(function(i,l){var d=hi(l);return vr(d)&&(d=o),vr(i)?Ls(i,Ir(l,1,vr,!0),o,d):[]});function Ei(i,l,d){var g=i==null?0:i.length;return g?(l=d||l===o?1:ct(l),kn(i,l<0?0:l,g)):[]}function qo(i,l,d){var g=i==null?0:i.length;return g?(l=d||l===o?1:ct(l),l=g-l,kn(i,0,l<0?0:l)):[]}function jo(i,l){return i&&i.length?As(i,Re(l,3),!0,!0):[]}function Zr(i,l){return i&&i.length?As(i,Re(l,3),!0):[]}function Ws(i,l,d,g){var x=i==null?0:i.length;return x?(d&&typeof d!="number"&&b(i,l,d)&&(d=0,g=x),Yu(i,l,d,g)):[]}function Vl(i,l,d){var g=i==null?0:i.length;if(!g)return-1;var x=d==null?0:ct(d);return x<0&&(x=Gt(g+x,0)),ul(i,Re(l,3),x)}function Lh(i,l,d){var g=i==null?0:i.length;if(!g)return-1;var x=g-1;return d!==o&&(x=ct(d),x=d<0?Gt(g+x,0):Pr(x,g-1)),ul(i,Re(l,3),x,!0)}function Sh(i){var l=i==null?0:i.length;return l?Ir(i,1):[]}function O4(i){var l=i==null?0:i.length;return l?Ir(i,ve):[]}function T4(i,l){var d=i==null?0:i.length;return d?(l=l===o?1:ct(l),Ir(i,l)):[]}function P4(i){for(var l=-1,d=i==null?0:i.length,g={};++l<d;){var x=i[l];g[x[0]]=x[1]}return g}function kh(i){return i&&i.length?i[0]:o}function E4(i,l,d){var g=i==null?0:i.length;if(!g)return-1;var x=d==null?0:ct(d);return x<0&&(x=Gt(g+x,0)),Ao(i,l,x)}function A4(i){var l=i==null?0:i.length;return l?kn(i,0,-1):[]}var D4=ut(function(i){var l=Et(i,Ju);return l.length&&l[0]===i[0]?Pl(l):[]}),I4=ut(function(i){var l=hi(i),d=Et(i,Ju);return l===hi(d)?l=o:d.pop(),d.length&&d[0]===i[0]?Pl(d,Re(l,2)):[]}),z4=ut(function(i){var l=hi(i),d=Et(i,Ju);return l=typeof l=="function"?l:o,l&&d.pop(),d.length&&d[0]===i[0]?Pl(d,o,l):[]});function N4(i,l){return i==null?"":bl.call(i,l)}function hi(i){var l=i==null?0:i.length;return l?i[l-1]:o}function $4(i,l,d){var g=i==null?0:i.length;if(!g)return-1;var x=g;return d!==o&&(x=ct(d),x=x<0?Gt(g+x,0):Pr(x,g-1)),l===l?ha(i,l,x):ul(i,cl,x,!0)}function R4(i,l){return i&&i.length?I1(i,ct(l)):o}var H4=ut(Mh);function Mh(i,l){return i&&i.length&&l&&l.length?Gu(i,l):i}function F4(i,l,d){return i&&i.length&&l&&l.length?Gu(i,l,Re(d,2)):i}function W4(i,l,d){return i&&i.length&&l&&l.length?Gu(i,l,o,d):i}var B4=Pi(function(i,l){var d=i==null?0:i.length,g=Uu(i,l);return qu(i,Et(l,function(x){return m(x,d)?+x:x}).sort(r0)),g});function U4(i,l){var d=[];if(!(i&&i.length))return d;var g=-1,x=[],L=i.length;for(l=Re(l,3);++g<L;){var A=i[g];l(A,g,i)&&(d.push(A),x.push(g))}return qu(i,x),d}function Wf(i){return i==null?i:ya.call(i)}function Y4(i,l,d){var g=i==null?0:i.length;return g?(d&&typeof d!="number"&&b(i,l,d)?(l=0,d=g):(l=l==null?0:ct(l),d=d===o?g:ct(d)),kn(i,l,d)):[]}function Z4(i,l){return Ti(i,l)}function V4(i,l,d){return zl(i,l,Re(d,2))}function G4(i,l){var d=i==null?0:i.length;if(d){var g=Ti(i,l);if(g<d&&Ai(i[g],l))return g}return-1}function q4(i,l){return Ti(i,l,!0)}function j4(i,l,d){return zl(i,l,Re(d,2),!0)}function K4(i,l){var d=i==null?0:i.length;if(d){var g=Ti(i,l,!0)-1;if(Ai(i[g],l))return g}return-1}function X4(i){return i&&i.length?Ku(i):[]}function Q4(i,l){return i&&i.length?Ku(i,Re(l,2)):[]}function J4(i){var l=i==null?0:i.length;return l?kn(i,1,l):[]}function e5(i,l,d){return i&&i.length?(l=d||l===o?1:ct(l),kn(i,0,l<0?0:l)):[]}function t5(i,l,d){var g=i==null?0:i.length;return g?(l=d||l===o?1:ct(l),l=g-l,kn(i,l<0?0:l,g)):[]}function r5(i,l){return i&&i.length?As(i,Re(l,3),!1,!0):[]}function n5(i,l){return i&&i.length?As(i,Re(l,3)):[]}var i5=ut(function(i){return Cn(Ir(i,1,vr,!0))}),o5=ut(function(i){var l=hi(i);return vr(l)&&(l=o),Cn(Ir(i,1,vr,!0),Re(l,2))}),s5=ut(function(i){var l=hi(i);return l=typeof l=="function"?l:o,Cn(Ir(i,1,vr,!0),o,l)});function a5(i){return i&&i.length?Cn(i):[]}function l5(i,l){return i&&i.length?Cn(i,Re(l,2)):[]}function u5(i,l){return l=typeof l=="function"?l:o,i&&i.length?Cn(i,o,l):[]}function Bf(i){if(!(i&&i.length))return[];var l=0;return i=Zi(i,function(d){if(vr(d))return l=Gt(d.length,l),!0}),Do(l,function(d){return Et(i,Mu(d))})}function Oh(i,l){if(!(i&&i.length))return[];var d=Bf(i);return l==null?d:Et(d,function(g){return gn(l,o,g)})}var c5=ut(function(i,l){return vr(i)?Ls(i,l):[]}),f5=ut(function(i){return Zo(Zi(i,vr))}),d5=ut(function(i){var l=hi(i);return vr(l)&&(l=o),Zo(Zi(i,vr),Re(l,2))}),h5=ut(function(i){var l=hi(i);return l=typeof l=="function"?l:o,Zo(Zi(i,vr),o,l)}),p5=ut(Bf);function v5(i,l){return Qu(i||[],l||[],xa)}function g5(i,l){return Qu(i||[],l||[],Mi)}var m5=ut(function(i){var l=i.length,d=l>1?i[l-1]:o;return d=typeof d=="function"?(i.pop(),d):o,Oh(i,d)});function Th(i){var l=_(i);return l.__chain__=!0,l}function y5(i,l){return l(i),i}function tc(i,l){return l(i)}var b5=Pi(function(i){var l=i.length,d=l?i[0]:0,g=this.__wrapped__,x=function(L){return Uu(L,i)};return l>1||this.__actions__.length||!(g instanceof vt)||!m(d)?this.thru(x):(g=g.slice(d,+d+(l?1:0)),g.__actions__.push({func:tc,args:[x],thisArg:o}),new Qr(g,this.__chain__).thru(function(L){return l&&!L.length&&L.push(o),L}))});function C5(){return Th(this)}function w5(){return new Qr(this.value(),this.__chain__)}function x5(){this.__values__===o&&(this.__values__=Uh(this.value()));var i=this.__index__>=this.__values__.length,l=i?o:this.__values__[this.__index__++];return{done:i,value:l}}function _5(){return this}function L5(i){for(var l,d=this;d instanceof wl;){var g=Yr(d);g.__index__=0,g.__values__=o,l?x.__wrapped__=g:l=g;var x=g;d=d.__wrapped__}return x.__wrapped__=i,l}function S5(){var i=this.__wrapped__;if(i instanceof vt){var l=i;return this.__actions__.length&&(l=new vt(this)),l=l.reverse(),l.__actions__.push({func:tc,args:[Wf],thisArg:o}),new Qr(l,this.__chain__)}return this.thru(Wf)}function k5(){return R1(this.__wrapped__,this.__actions__)}var M5=Fl(function(i,l,d){et.call(i,d)?++i[d]:fi(i,d,1)});function O5(i,l,d){var g=lt(i)?Lu:kl;return d&&b(i,l,d)&&(l=o),g(i,Re(l,3))}function T5(i,l){var d=lt(i)?Zi:Zu;return d(i,Re(l,3))}var P5=i0(Vl),E5=i0(Lh);function A5(i,l){return Ir(rc(i,l),1)}function D5(i,l){return Ir(rc(i,l),ve)}function I5(i,l,d){return d=d===o?1:ct(d),Ir(rc(i,l),d)}function Ph(i,l){var d=lt(i)?_n:yn;return d(i,Re(l,3))}function Eh(i,l){var d=lt(i)?cf:Sl;return d(i,Re(l,3))}var z5=Fl(function(i,l,d){et.call(i,d)?i[d].push(l):fi(i,d,[l])});function N5(i,l,d,g){i=Tn(i)?i:ql(i),d=d&&!g?ct(d):0;var x=i.length;return d<0&&(d=Gt(x+d,0)),ac(i)?d<=x&&i.indexOf(l,d)>-1:!!x&&Ao(i,l,d)>-1}var $5=ut(function(i,l,d){var g=-1,x=typeof l=="function",L=Tn(i)?Y(i.length):[];return yn(i,function(A){L[++g]=x?gn(l,A,d):ks(A,l,d)}),L}),R5=Fl(function(i,l,d){fi(i,d,l)});function rc(i,l){var d=lt(i)?Et:Es;return d(i,Re(l,3))}function H5(i,l,d,g){return i==null?[]:(lt(l)||(l=l==null?[]:[l]),d=g?o:d,lt(d)||(d=d==null?[]:[d]),Hr(i,l,d))}var F5=Fl(function(i,l,d){i[d?0:1].push(l)},function(){return[[],[]]});function W5(i,l,d){var g=lt(i)?Su:Tu,x=arguments.length<3;return g(i,Re(l,4),d,x,yn)}function B5(i,l,d){var g=lt(i)?ff:Tu,x=arguments.length<3;return g(i,Re(l,4),d,x,Sl)}function U5(i,l){var d=lt(i)?Zi:Zu;return d(i,oc(Re(l,3)))}function Y5(i){var l=lt(i)?_l:zf;return l(i)}function Z5(i,l,d){(d?b(i,l,d):l===o)?l=1:l=ct(l);var g=lt(i)?ao:fo;return g(i,l)}function V5(i){var l=lt(i)?_1:Oi;return l(i)}function G5(i){if(i==null)return 0;if(Tn(i))return ac(i)?Io(i):i.length;var l=Wr(i);return l==sr||l==Je?i.size:Al(i).length}function q5(i,l,d){var g=lt(i)?Eo:Nf;return d&&b(i,l,d)&&(l=o),g(i,Re(l,3))}var j5=ut(function(i,l){if(i==null)return[];var d=l.length;return d>1&&b(i,l[0],l[1])?l=[]:d>2&&b(l[0],l[1],l[2])&&(l=[l[0]]),Hr(i,Ir(l,1),[])}),nc=yf||function(){return Vt.Date.now()};function K5(i,l){if(typeof l!="function")throw new on(y);return i=ct(i),function(){if(--i<1)return l.apply(this,arguments)}}function Ah(i,l,d){return l=d?o:l,l=i&&l==null?i.length:l,On(i,We,o,o,o,o,l)}function Dh(i,l){var d;if(typeof l!="function")throw new on(y);return i=ct(i),function(){return--i>0&&(d=l.apply(this,arguments)),i<=1&&(l=o),d}}var Uf=ut(function(i,l,d){var g=me;if(d.length){var x=qi(d,Rs(Uf));g|=Te}return On(i,g,l,d,x)}),Ih=ut(function(i,l,d){var g=me|Ee;if(d.length){var x=qi(d,Rs(Ih));g|=Te}return On(l,g,i,d,x)});function zh(i,l,d){l=d?o:l;var g=On(i,he,o,o,o,o,o,l);return g.placeholder=zh.placeholder,g}function Nh(i,l,d){l=d?o:l;var g=On(i,de,o,o,o,o,o,l);return g.placeholder=Nh.placeholder,g}function $h(i,l,d){var g,x,L,A,z,H,ee=0,te=!1,se=!1,xe=!0;if(typeof i!="function")throw new on(y);l=pi(l)||0,ir(d)&&(te=!!d.leading,se="maxWait"in d,L=se?Gt(pi(d.maxWait)||0,l):L,xe="trailing"in d?!!d.trailing:xe);function ze(gr){var Di=g,Qo=x;return g=x=o,ee=gr,A=i.apply(Qo,Di),A}function Ge(gr){return ee=gr,z=It(yt,l),te?ze(gr):A}function dt(gr){var Di=gr-H,Qo=gr-ee,rp=l-Di;return se?Pr(rp,L-Qo):rp}function qe(gr){var Di=gr-H,Qo=gr-ee;return H===o||Di>=l||Di<0||se&&Qo>=L}function yt(){var gr=nc();if(qe(gr))return Ct(gr);z=It(yt,dt(gr))}function Ct(gr){return z=o,xe&&g?ze(gr):(g=x=o,A)}function jn(){z!==o&&Ds(z),ee=0,g=H=x=z=o}function wn(){return z===o?A:Ct(nc())}function Kn(){var gr=nc(),Di=qe(gr);if(g=arguments,x=this,H=gr,Di){if(z===o)return Ge(H);if(se)return Ds(z),z=It(yt,l),ze(H)}return z===o&&(z=It(yt,l)),A}return Kn.cancel=jn,Kn.flush=wn,Kn}var X5=ut(function(i,l){return k1(i,1,l)}),Q5=ut(function(i,l,d){return k1(i,pi(l)||0,d)});function J5(i){return On(i,tt)}function ic(i,l){if(typeof i!="function"||l!=null&&typeof l!="function")throw new on(y);var d=function(){var g=arguments,x=l?l.apply(this,g):g[0],L=d.cache;if(L.has(x))return L.get(x);var A=i.apply(this,g);return d.cache=L.set(x,A)||L,A};return d.cache=new(ic.Cache||nr),d}ic.Cache=nr;function oc(i){if(typeof i!="function")throw new on(y);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 e6(i){return Dh(2,i)}var t6=$f(function(i,l){l=l.length==1&&lt(l[0])?Et(l[0],Xr(Re())):Et(Ir(l,1),Xr(Re()));var d=l.length;return ut(function(g){for(var x=-1,L=Pr(g.length,d);++x<L;)g[x]=l[x].call(this,g[x]);return gn(i,this,g)})}),Yf=ut(function(i,l){var d=qi(l,Rs(Yf));return On(i,Te,o,l,d)}),Rh=ut(function(i,l){var d=qi(l,Rs(Rh));return On(i,$e,o,l,d)}),r6=Pi(function(i,l){return On(i,Qe,o,o,o,l)});function n6(i,l){if(typeof i!="function")throw new on(y);return l=l===o?l:ct(l),ut(i,l)}function i6(i,l){if(typeof i!="function")throw new on(y);return l=l==null?0:Gt(ct(l),0),ut(function(d){var g=d[l],x=ho(d,0,l);return g&&Vi(x,g),gn(i,this,x)})}function o6(i,l,d){var g=!0,x=!0;if(typeof i!="function")throw new on(y);return ir(d)&&(g="leading"in d?!!d.leading:g,x="trailing"in d?!!d.trailing:x),$h(i,l,{leading:g,maxWait:l,trailing:x})}function s6(i){return Ah(i,1)}function a6(i,l){return Yf($l(l),i)}function l6(){if(!arguments.length)return[];var i=arguments[0];return lt(i)?i:[i]}function u6(i){return Jr(i,X)}function c6(i,l){return l=typeof l=="function"?l:o,Jr(i,X,l)}function f6(i){return Jr(i,U|X)}function d6(i,l){return l=typeof l=="function"?l:o,Jr(i,U|X,l)}function h6(i,l){return l==null||S1(i,l,Vr(l))}function Ai(i,l){return i===l||i!==i&&l!==l}var p6=Dt(Tl),v6=Dt(function(i,l){return i>=l}),Na=Ms(function(){return arguments}())?Ms:function(i){return lr(i)&&et.call(i,"callee")&&!yl.call(i,"callee")},lt=Y.isArray,g6=J0?Xr(J0):Af;function Tn(i){return i!=null&&sc(i.length)&&!Ko(i)}function vr(i){return lr(i)&&Tn(i)}function m6(i){return i===!0||i===!1||lr(i)&&xr(i)==Be}var Bs=ga||td,y6=e1?Xr(e1):Os;function b6(i){return lr(i)&&i.nodeType===1&&!u0(i)}function C6(i){if(i==null)return!0;if(Tn(i)&&(lt(i)||typeof i=="string"||typeof i.splice=="function"||Bs(i)||Gl(i)||Na(i)))return!i.length;var l=Wr(i);if(l==sr||l==Je)return!i.size;if(Z(i))return!Al(i).length;for(var d in i)if(et.call(i,d))return!1;return!0}function w6(i,l){return Ts(i,l)}function x6(i,l,d){d=typeof d=="function"?d:o;var g=d?d(i,l):o;return g===o?Ts(i,l,o,d):!!g}function Zf(i){if(!lr(i))return!1;var l=xr(i);return l==Fe||l==ot||typeof i.message=="string"&&typeof i.name=="string"&&!u0(i)}function _6(i){return typeof i=="number"&&g1(i)}function Ko(i){if(!ir(i))return!1;var l=xr(i);return l==Zt||l==Gr||l==He||l==en}function Hh(i){return typeof i=="number"&&i==ct(i)}function sc(i){return typeof i=="number"&&i>-1&&i%1==0&&i<=nt}function ir(i){var l=typeof i;return i!=null&&(l=="object"||l=="function")}function lr(i){return i!=null&&typeof i=="object"}var Fh=t1?Xr(t1):P1;function L6(i,l){return i===l||Yo(i,l,Hs(l))}function S6(i,l,d){return d=typeof d=="function"?d:o,Yo(i,l,Hs(l),d)}function k6(i){return Wh(i)&&i!=+i}function M6(i){if(N(i))throw new Xe(v);return Ps(i)}function O6(i){return i===null}function T6(i){return i==null}function Wh(i){return typeof i=="number"||lr(i)&&xr(i)==je}function u0(i){if(!lr(i)||xr(i)!=kt)return!1;var l=ys(i);if(l===null)return!0;var d=et.call(l,"constructor")&&l.constructor;return typeof d=="function"&&d instanceof d&&ai.call(d)==gf}var Vf=r1?Xr(r1):Sa;function P6(i){return Hh(i)&&i>=-nt&&i<=nt}var Bh=xu?Xr(xu):ka;function ac(i){return typeof i=="string"||!lt(i)&&lr(i)&&xr(i)==F}function qn(i){return typeof i=="symbol"||lr(i)&&xr(i)==ie}var Gl=_u?Xr(_u):E1;function E6(i){return i===o}function A6(i){return lr(i)&&Wr(i)==Ke}function D6(i){return lr(i)&&xr(i)==cr}var I6=Dt(co),z6=Dt(function(i,l){return i<=l});function Uh(i){if(!i)return[];if(Tn(i))return ac(i)?Ln(i):_r(i);if(Ji&&i[Ji])return a1(i[Ji]());var l=Wr(i),d=l==sr?hl:l==Je?pl:ql;return d(i)}function Xo(i){if(!i)return i===0?i:0;if(i=pi(i),i===ve||i===-ve){var l=i<0?-1:1;return l*Pt}return i===i?i:0}function ct(i){var l=Xo(i),d=l%1;return l===l?d?l-d:l:0}function Yh(i){return i?Bo(ct(i),0,Rt):0}function pi(i){if(typeof i=="number")return i;if(qn(i))return or;if(ir(i)){var l=typeof i.valueOf=="function"?i.valueOf():i;i=ir(l)?l+"":l}if(typeof i!="string")return i===0?i:+i;i=da(i);var d=Fn.test(i);return d||pn.test(i)?lf(i.slice(2),d?2:8):fs.test(i)?or:+i}function Zh(i){return sn(i,Pn(i))}function N6(i){return i?Bo(ct(i),-nt,nt):i===0?i:0}function zt(i){return i==null?"":Fr(i)}var $6=Is(function(i,l){if(Z(l)||Tn(l)){sn(l,Vr(l),i);return}for(var d in l)et.call(l,d)&&xa(i,d,l[d])}),Vh=Is(function(i,l){sn(l,Pn(l),i)}),lc=Is(function(i,l,d,g){sn(l,Pn(l),i,g)}),R6=Is(function(i,l,d,g){sn(l,Vr(l),i,g)}),H6=Pi(Uu);function F6(i,l){var d=ui(i);return l==null?d:Bu(d,l)}var W6=ut(function(i,l){i=bt(i);var d=-1,g=l.length,x=g>2?l[2]:o;for(x&&b(l[0],l[1],x)&&(g=1);++d<g;)for(var L=l[d],A=Pn(L),z=-1,H=A.length;++z<H;){var ee=A[z],te=i[ee];(te===o||Ai(te,Xi[ee])&&!et.call(i,ee))&&(i[ee]=L[ee])}return i}),B6=ut(function(i){return i.push(o,o0),gn(Gh,o,i)});function U6(i,l){return vs(i,Re(l,3),bn)}function Y6(i,l){return vs(i,Re(l,3),Ol)}function Z6(i,l){return i==null?i:Ml(i,Re(l,3),Pn)}function V6(i,l){return i==null?i:wr(i,Re(l,3),Pn)}function G6(i,l){return i&&bn(i,Re(l,3))}function q6(i,l){return i&&Ol(i,Re(l,3))}function j6(i){return i==null?[]:La(i,Vr(i))}function K6(i){return i==null?[]:La(i,Pn(i))}function Gf(i,l,d){var g=i==null?o:lo(i,l);return g===o?d:g}function X6(i,l){return i!=null&&t(i,l,M1)}function qf(i,l){return i!=null&&t(i,l,O1)}var Q6=Vo(function(i,l,d){l!=null&&typeof l.toString!="function"&&(l=zo.call(l)),i[l]=d},Kf(En)),J6=Vo(function(i,l,d){l!=null&&typeof l.toString!="function"&&(l=zo.call(l)),et.call(i,l)?i[l].push(d):i[l]=[d]},Re),e3=ut(ks);function Vr(i){return Tn(i)?Fu(i):Al(i)}function Pn(i){return Tn(i)?Fu(i,!0):uo(i)}function t3(i,l){var d={};return l=Re(l,3),bn(i,function(g,x,L){fi(d,l(g,x,L),g)}),d}function r3(i,l){var d={};return l=Re(l,3),bn(i,function(g,x,L){fi(d,x,l(g,x,L))}),d}var n3=Is(function(i,l,d){Dl(i,l,d)}),Gh=Is(function(i,l,d,g){Dl(i,l,d,g)}),i3=Pi(function(i,l){var d={};if(i==null)return d;var g=!1;l=Et(l,function(L){return L=Gn(L,i),g||(g=L.length>1),L}),sn(i,Ul(i),d),g&&(d=Jr(d,U|q|X,X1));for(var x=l.length;x--;)Ta(d,l[x]);return d});function o3(i,l){return qh(i,oc(Re(l)))}var s3=Pi(function(i,l){return i==null?{}:z1(i,l)});function qh(i,l){if(i==null)return{};var d=Et(Ul(i),function(g){return[g]});return l=Re(l),N1(i,d,function(g,x){return l(g,x[0])})}function a3(i,l,d){l=Gn(l,i);var g=-1,x=l.length;for(x||(x=1,i=o);++g<x;){var L=i==null?o:i[At(l[g])];L===o&&(g=x,L=d),i=Ko(L)?L.call(i):L}return i}function l3(i,l,d){return i==null?i:Mi(i,l,d)}function u3(i,l,d,g){return g=typeof g=="function"?g:o,i==null?i:Mi(i,l,d,g)}var jh=Mn(Vr),Kh=Mn(Pn);function c3(i,l,d){var g=lt(i),x=g||Bs(i)||Gl(i);if(l=Re(l,4),d==null){var L=i&&i.constructor;x?d=g?new L:[]:ir(i)?d=Ko(L)?ui(ys(i)):{}:d={}}return(x?_n:bn)(i,function(A,z,H){return l(d,A,z,H)}),d}function f3(i,l){return i==null?!0:Ta(i,l)}function d3(i,l,d){return i==null?i:Nl(i,l,$l(d))}function h3(i,l,d,g){return g=typeof g=="function"?g:o,i==null?i:Nl(i,l,$l(d),g)}function ql(i){return i==null?[]:fl(i,Vr(i))}function p3(i){return i==null?[]:fl(i,Pn(i))}function v3(i,l,d){return d===o&&(d=l,l=o),d!==o&&(d=pi(d),d=d===d?d:0),l!==o&&(l=pi(l),l=l===l?l:0),Bo(pi(i),l,d)}function g3(i,l,d){return l=Xo(l),d===o?(d=l,l=0):d=Xo(d),i=pi(i),Ss(i,l,d)}function m3(i,l,d){if(d&&typeof d!="boolean"&&b(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=Xo(i),l===o?(l=i,i=0):l=Xo(l)),i>l){var g=i;i=l,l=g}if(d||i%1||l%1){var x=ro();return Pr(i+x*(l-i+af("1e-"+((x+"").length-1))),l)}return Il(i,l)}var y3=zs(function(i,l,d){return l=l.toLowerCase(),i+(d?Xh(l):l)});function Xh(i){return jf(zt(i).toLowerCase())}function Qh(i){return i=zt(i),i&&i.replace(ia,o1).replace(q0,"")}function b3(i,l,d){i=zt(i),l=Fr(l);var g=i.length;d=d===o?g:Bo(ct(d),0,g);var x=d;return d-=l.length,d>=0&&i.slice(d,x)==l}function C3(i){return i=zt(i),i&&dn.test(i)?i.replace(Cr,vf):i}function w3(i){return i=zt(i),i&&ri.test(i)?i.replace(Mo,"\\$&"):i}var x3=zs(function(i,l,d){return i+(d?"-":"")+l.toLowerCase()}),_3=zs(function(i,l,d){return i+(d?" ":"")+l.toLowerCase()}),L3=G1("toLowerCase");function S3(i,l,d){i=zt(i),l=ct(l);var g=l?Io(i):0;if(!l||g>=l)return i;var x=(l-g)/2;return Wl(ws(x),d)+i+Wl(Cs(x),d)}function k3(i,l,d){i=zt(i),l=ct(l);var g=l?Io(i):0;return l&&g<l?i+Wl(l-g,d):i}function M3(i,l,d){i=zt(i),l=ct(l);var g=l?Io(i):0;return l&&g<l?Wl(l-g,d)+i:i}function O3(i,l,d){return d||l==null?l=0:l&&(l=+l),ma(zt(i).replace(Oo,""),l||0)}function T3(i,l,d){return(d?b(i,l,d):l===o)?l=1:l=ct(l),ju(zt(i),l)}function P3(){var i=arguments,l=zt(i[0]);return i.length<3?l:l.replace(i[1],i[2])}var E3=zs(function(i,l,d){return i+(d?"_":"")+l.toLowerCase()});function A3(i,l,d){return d&&typeof d!="number"&&b(i,l,d)&&(l=d=o),d=d===o?Rt:d>>>0,d?(i=zt(i),i&&(typeof l=="string"||l!=null&&!Vf(l))&&(l=Fr(l),!l&&Yn(i))?ho(Ln(i),0,d):i.split(l,d)):[]}var D3=zs(function(i,l,d){return i+(d?" ":"")+jf(l)});function I3(i,l,d){return i=zt(i),d=d==null?0:Bo(ct(d),0,i.length),l=Fr(l),i.slice(d,d+l.length)==l}function z3(i,l,d){var g=_.templateSettings;d&&b(i,l,d)&&(l=o),i=zt(i),l=lc({},l,g,Bl);var x=lc({},l.imports,g.imports,Bl),L=Vr(x),A=fl(x,L),z,H,ee=0,te=l.interpolate||Ft,se="__p += '",xe=Ki((l.escape||Ft).source+"|"+te.source+"|"+(te===ea?xi:Ft).source+"|"+(l.evaluate||Ft).source+"|$","g"),ze="//# sourceURL="+(et.call(l,"sourceURL")?(l.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++wu+"]")+`
2254
2261
  `;i.replace(xe,function(qe,yt,Ct,jn,wn,Kn){return Ct||(Ct=jn),se+=i.slice(ee,Kn).replace(Me,s1),yt&&(z=!0,se+=`' +
2255
2262
  __e(`+yt+`) +
2256
2263
  '`),wn&&(H=!0,se+=`';
@@ -2261,39 +2268,39 @@ __p += '`),Ct&&(se+=`' +
2261
2268
  `;var Ge=et.call(l,"variable")&&l.variable;if(!Ge)se=`with (obj) {
2262
2269
  `+se+`
2263
2270
  }
2264
- `;else if(hn.test(Ge))throw new Xe(E);se=(H?se.replace(rr,""):se).replace(cs,"$1").replace(br,"$1;"),se="function("+(Ge||"obj")+`) {
2271
+ `;else if(hn.test(Ge))throw new Xe(E);se=(H?se.replace(rr,""):se).replace(us,"$1").replace(br,"$1;"),se="function("+(Ge||"obj")+`) {
2265
2272
  `+(Ge?"":`obj || (obj = {});
2266
2273
  `)+"var __t, __p = ''"+(z?", __e = _.escape":"")+(H?`, __j = Array.prototype.join;
2267
2274
  function print() { __p += __j.call(arguments, '') }
2268
2275
  `:`;
2269
2276
  `)+se+`return __p
2270
- }`;var dt=Jh(function(){return St(L,ze+"return "+se).apply(o,A)});if(dt.source=se,Zf(dt))throw dt;return dt}function I3(i){return zt(i).toLowerCase()}function z3(i){return zt(i).toUpperCase()}function N3(i,l,d){if(i=zt(i),i&&(d||l===o))return da(i);if(!i||!(l=Fr(l)))return i;var g=Ln(i),x=Ln(l),L=Gi(g,x),A=dl(g,x)+1;return ho(g,L,A).join("")}function $3(i,l,d){if(i=zt(i),i&&(d||l===o))return i.slice(0,vl(i)+1);if(!i||!(l=Fr(l)))return i;var g=Ln(i),x=dl(g,Ln(l))+1;return ho(g,0,x).join("")}function R3(i,l,d){if(i=zt(i),i&&(d||l===o))return i.replace(Oo,"");if(!i||!(l=Fr(l)))return i;var g=Ln(i),x=Gi(g,Ln(l));return ho(g,x).join("")}function H3(i,l){var d=pe,g=ye;if(ir(l)){var x="separator"in l?l.separator:x;d="length"in l?ct(l.length):d,g="omission"in l?Fr(l.omission):g}i=zt(i);var L=i.length;if(Yn(i)){var A=Ln(i);L=A.length}if(d>=L)return i;var z=d-Io(g);if(z<1)return g;var H=A?ho(A,0,z).join(""):i.slice(0,z);if(x===o)return H+g;if(A&&(z+=H.length-z),Vf(x)){if(i.slice(z).search(x)){var ee,te=H;for(x.global||(x=Ki(x.source,zt(To.exec(x))+"g")),x.lastIndex=0;ee=x.exec(te);)var se=ee.index;H=H.slice(0,se===o?z:se)}}else if(i.indexOf(Fr(x),z)!=z){var xe=H.lastIndexOf(x);xe>-1&&(H=H.slice(0,xe))}return H+g}function F3(i){return i=zt(i),i&&fs.test(i)?i.replace(Hn,gl):i}var W3=Ns(function(i,l,d){return i+(d?" ":"")+l.toUpperCase()}),jf=G1("toUpperCase");function Qh(i,l,d){return i=zt(i),l=d?o:l,l===o?oi(i)?Zn(i):n1(i):i.match(l)||[]}var Jh=ut(function(i,l){try{return gn(i,o,l)}catch(d){return Zf(d)?d:new Xe(d)}}),B3=Pi(function(i,l){return _n(l,function(d){d=At(d),fi(i,d,Uf(i[d],i))}),i});function U3(i){var l=i==null?0:i.length,d=Re();return i=l?Et(i,function(g){if(typeof g[1]!="function")throw new on(y);return[d(g[0]),g[1]]}):[],ut(function(g){for(var x=-1;++x<l;){var L=i[x];if(gn(L[0],this,g))return gn(L[1],this,g)}})}function Y3(i){return L1(Jr(i,U))}function Kf(i){return function(){return i}}function Z3(i,l){return i==null||i!==i?l:i}var V3=q1(),G3=q1(!0);function En(i){return i}function Xf(i){return A1(typeof i=="function"?i:Jr(i,U))}function q3(i){return D1(Jr(i,U))}function j3(i,l){return Vu(i,Jr(l,U))}var K3=ut(function(i,l){return function(d){return Ms(d,i,l)}}),X3=ut(function(i,l){return function(d){return Ms(i,d,l)}});function Qf(i,l,d){var g=Vr(l),x=La(l,g);d==null&&!(ir(l)&&(x.length||!g.length))&&(d=l,l=i,i=this,x=La(l,Vr(l)));var L=!(ir(d)&&"chain"in d)||!!d.chain,A=Ko(i);return _n(x,function(z){var H=l[z];i[z]=H,A&&(i.prototype[z]=function(){var ee=this.__chain__;if(L||ee){var te=i(this.__wrapped__),se=te.__actions__=_r(this.__actions__);return se.push({func:H,args:arguments,thisArg:i}),te.__chain__=ee,te}return H.apply(i,Vi([this.value()],arguments))})}),i}function Q3(){return Vt._===this&&(Vt._=p1),this}function Jf(){}function J3(i){return i=ct(i),ut(function(l){return I1(l,i)})}var e7=Rs(Et),t7=Rs(Lu),r7=Rs(Eo);function ep(i){return C(i)?Mu(At(i)):If(i)}function n7(i){return function(l){return i==null?o:lo(i,l)}}var i7=j1(),o7=j1(!0);function ed(){return[]}function td(){return!1}function s7(){return{}}function a7(){return""}function l7(){return!0}function u7(i,l){if(i=ct(i),i<1||i>nt)return[];var d=Rt,g=Pr(i,Rt);l=Re(l),i-=Rt;for(var x=Do(g,l);++d<i;)l(d);return x}function c7(i){return lt(i)?Et(i,At):qn(i)?[i]:_r(hr(zt(i)))}function f7(i){var l=++Qi;return zt(i)+l}var d7=Ea(function(i,l){return i+l},0),h7=Aa("ceil"),p7=Ea(function(i,l){return i/l},1),v7=Aa("floor");function g7(i){return i&&i.length?_a(i,En,Tl):o}function m7(i,l){return i&&i.length?_a(i,Re(l,2),Tl):o}function y7(i){return ku(i,En)}function b7(i,l){return ku(i,Re(l,2))}function C7(i){return i&&i.length?_a(i,En,co):o}function w7(i,l){return i&&i.length?_a(i,Re(l,2),co):o}var x7=Ea(function(i,l){return i*l},1),_7=Aa("round"),L7=Ea(function(i,l){return i-l},0);function S7(i){return i&&i.length?Pu(i,En):0}function k7(i,l){return i&&i.length?Pu(i,Re(l,2)):0}return _.after=q5,_.ary=Eh,_.assign=z6,_.assignIn=Zh,_.assignInWith=lc,_.assignWith=N6,_.at=$6,_.before=Ah,_.bind=Uf,_.bindAll=B3,_.bindKey=Dh,_.castArray=s6,_.chain=Oh,_.chunk=Ws,_.compact=po,_.concat=zr,_.cond=U3,_.conforms=Y3,_.constant=Kf,_.countBy=S5,_.create=R6,_.curry=Ih,_.curryRight=zh,_.debounce=Nh,_.defaults=H6,_.defaultsDeep=F6,_.defer=j5,_.delay=K5,_.difference=di,_.differenceBy=pr,_.differenceWith=l0,_.drop=Ei,_.dropRight=qo,_.dropRightWhile=jo,_.dropWhile=Zr,_.fill=Bs,_.filter=M5,_.flatMap=P5,_.flatMapDeep=E5,_.flatMapDepth=A5,_.flatten=Lh,_.flattenDeep=k4,_.flattenDepth=M4,_.flip=X5,_.flow=V3,_.flowRight=G3,_.fromPairs=O4,_.functions=G6,_.functionsIn=q6,_.groupBy=D5,_.initial=P4,_.intersection=E4,_.intersectionBy=A4,_.intersectionWith=D4,_.invert=K6,_.invertBy=X6,_.invokeMap=z5,_.iteratee=Xf,_.keyBy=N5,_.keys=Vr,_.keysIn=Pn,_.map=rc,_.mapKeys=J6,_.mapValues=e3,_.matches=q3,_.matchesProperty=j3,_.memoize=ic,_.merge=t3,_.mergeWith=Vh,_.method=K3,_.methodOf=X3,_.mixin=Qf,_.negate=oc,_.nthArg=J3,_.omit=r3,_.omitBy=n3,_.once=Q5,_.orderBy=$5,_.over=e7,_.overArgs=J5,_.overEvery=t7,_.overSome=r7,_.partial=Yf,_.partialRight=$h,_.partition=R5,_.pick=i3,_.pickBy=Gh,_.property=ep,_.propertyOf=n7,_.pull=$4,_.pullAll=kh,_.pullAllBy=R4,_.pullAllWith=H4,_.pullAt=F4,_.range=i7,_.rangeRight=o7,_.rearg=e6,_.reject=W5,_.remove=W4,_.rest=t6,_.reverse=Wf,_.sampleSize=U5,_.set=s3,_.setWith=a3,_.shuffle=Y5,_.slice=B4,_.sortBy=G5,_.sortedUniq=j4,_.sortedUniqBy=K4,_.split=P3,_.spread=r6,_.tail=X4,_.take=Q4,_.takeRight=J4,_.takeRightWhile=e5,_.takeWhile=t5,_.tap=g5,_.throttle=n6,_.thru=tc,_.toArray=Bh,_.toPairs=qh,_.toPairsIn=jh,_.toPath=c7,_.toPlainObject=Yh,_.transform=l3,_.unary=i6,_.union=r5,_.unionBy=n5,_.unionWith=i5,_.uniq=o5,_.uniqBy=s5,_.uniqWith=a5,_.unset=u3,_.unzip=Bf,_.unzipWith=Mh,_.update=c3,_.updateWith=f3,_.values=ql,_.valuesIn=d3,_.without=l5,_.words=Qh,_.wrap=o6,_.xor=u5,_.xorBy=c5,_.xorWith=f5,_.zip=d5,_.zipObject=h5,_.zipObjectDeep=p5,_.zipWith=v5,_.entries=qh,_.entriesIn=jh,_.extend=Zh,_.extendWith=lc,Qf(_,_),_.add=d7,_.attempt=Jh,_.camelCase=g3,_.capitalize=Kh,_.ceil=h7,_.clamp=h3,_.clone=a6,_.cloneDeep=u6,_.cloneDeepWith=c6,_.cloneWith=l6,_.conformsTo=f6,_.deburr=Xh,_.defaultTo=Z3,_.divide=p7,_.endsWith=m3,_.eq=Ai,_.escape=y3,_.escapeRegExp=b3,_.every=k5,_.find=O5,_.findIndex=Vl,_.findKey=W6,_.findLast=T5,_.findLastIndex=_h,_.findLastKey=B6,_.floor=v7,_.forEach=Th,_.forEachRight=Ph,_.forIn=U6,_.forInRight=Y6,_.forOwn=Z6,_.forOwnRight=V6,_.get=Gf,_.gt=d6,_.gte=h6,_.has=j6,_.hasIn=qf,_.head=Sh,_.identity=En,_.includes=I5,_.indexOf=T4,_.inRange=p3,_.invoke=Q6,_.isArguments=Na,_.isArray=lt,_.isArrayBuffer=p6,_.isArrayLike=Tn,_.isArrayLikeObject=vr,_.isBoolean=v6,_.isBuffer=Us,_.isDate=g6,_.isElement=m6,_.isEmpty=y6,_.isEqual=b6,_.isEqualWith=C6,_.isError=Zf,_.isFinite=w6,_.isFunction=Ko,_.isInteger=Rh,_.isLength=sc,_.isMap=Hh,_.isMatch=x6,_.isMatchWith=_6,_.isNaN=L6,_.isNative=S6,_.isNil=M6,_.isNull=k6,_.isNumber=Fh,_.isObject=ir,_.isObjectLike=lr,_.isPlainObject=u0,_.isRegExp=Vf,_.isSafeInteger=O6,_.isSet=Wh,_.isString=ac,_.isSymbol=qn,_.isTypedArray=Gl,_.isUndefined=T6,_.isWeakMap=P6,_.isWeakSet=E6,_.join=I4,_.kebabCase=C3,_.last=hi,_.lastIndexOf=z4,_.lowerCase=w3,_.lowerFirst=x3,_.lt=A6,_.lte=D6,_.max=g7,_.maxBy=m7,_.mean=y7,_.meanBy=b7,_.min=C7,_.minBy=w7,_.stubArray=ed,_.stubFalse=td,_.stubObject=s7,_.stubString=a7,_.stubTrue=l7,_.multiply=x7,_.nth=N4,_.noConflict=Q3,_.noop=Jf,_.now=nc,_.pad=_3,_.padEnd=L3,_.padStart=S3,_.parseInt=k3,_.random=v3,_.reduce=H5,_.reduceRight=F5,_.repeat=M3,_.replace=O3,_.result=o3,_.round=_7,_.runInContext=R,_.sample=B5,_.size=Z5,_.snakeCase=T3,_.some=V5,_.sortedIndex=U4,_.sortedIndexBy=Y4,_.sortedIndexOf=Z4,_.sortedLastIndex=V4,_.sortedLastIndexBy=G4,_.sortedLastIndexOf=q4,_.startCase=E3,_.startsWith=A3,_.subtract=L7,_.sum=S7,_.sumBy=k7,_.template=D3,_.times=u7,_.toFinite=Xo,_.toInteger=ct,_.toLength=Uh,_.toLower=I3,_.toNumber=pi,_.toSafeInteger=I6,_.toString=zt,_.toUpper=z3,_.trim=N3,_.trimEnd=$3,_.trimStart=R3,_.truncate=H3,_.unescape=F3,_.uniqueId=f7,_.upperCase=W3,_.upperFirst=jf,_.each=Th,_.eachRight=Ph,_.first=Sh,Qf(_,function(){var i={};return bn(_,function(l,d){et.call(_.prototype,d)||(i[d]=l)}),i}(),{chain:!1}),_.VERSION=c,_n(["bind","bindKey","curry","curryRight","partial","partialRight"],function(i){_[i].placeholder=_}),_n(["drop","take"],function(i,l){vt.prototype[i]=function(d){d=d===o?1:Gt(ct(d),0);var g=this.__filtered__&&!l?new vt(this):this.clone();return g.__filtered__?g.__takeCount__=Pr(d,g.__takeCount__):g.__views__.push({size:Pr(d,Rt),type:i+(g.__dir__<0?"Right":"")}),g},vt.prototype[i+"Right"]=function(d){return this.reverse()[i](d).reverse()}}),_n(["filter","map","takeWhile"],function(i,l){var d=l+1,g=d==D||d==re;vt.prototype[i]=function(x){var L=this.clone();return L.__iteratees__.push({iteratee:Re(x,3),type:d}),L.__filtered__=L.__filtered__||g,L}}),_n(["head","last"],function(i,l){var d="take"+(l?"Right":"");vt.prototype[i]=function(){return this[d](1).value()[0]}}),_n(["initial","tail"],function(i,l){var d="drop"+(l?"":"Right");vt.prototype[i]=function(){return this.__filtered__?new vt(this):this[d](1)}}),vt.prototype.compact=function(){return this.filter(En)},vt.prototype.find=function(i){return this.filter(i).head()},vt.prototype.findLast=function(i){return this.reverse().find(i)},vt.prototype.invokeMap=ut(function(i,l){return typeof i=="function"?new vt(this):this.map(function(d){return Ms(d,i,l)})}),vt.prototype.reject=function(i){return this.filter(oc(Re(i)))},vt.prototype.slice=function(i,l){i=ct(i);var d=this;return d.__filtered__&&(i>0||l<0)?new vt(d):(i<0?d=d.takeRight(-i):i&&(d=d.drop(i)),l!==o&&(l=ct(l),d=l<0?d.dropRight(-l):d.take(l-i)),d)},vt.prototype.takeRightWhile=function(i){return this.reverse().takeWhile(i).reverse()},vt.prototype.toArray=function(){return this.take(Rt)},bn(vt.prototype,function(i,l){var d=/^(?:filter|find|map|reject)|While$/.test(l),g=/^(?:head|last)$/.test(l),x=_[g?"take"+(l=="last"?"Right":""):l],L=g||/^find/.test(l);!x||(_.prototype[l]=function(){var A=this.__wrapped__,z=g?[1]:arguments,H=A instanceof vt,ee=z[0],te=H||lt(A),se=function(yt){var Ct=x.apply(_,Vi([yt],z));return g&&xe?Ct[0]:Ct};te&&d&&typeof ee=="function"&&ee.length!=1&&(H=te=!1);var xe=this.__chain__,ze=!!this.__actions__.length,Ge=L&&!xe,dt=H&&!ze;if(!L&&te){A=dt?A:new vt(this);var qe=i.apply(A,z);return qe.__actions__.push({func:tc,args:[se],thisArg:o}),new Qr(qe,xe)}return Ge&&dt?i.apply(this,z):(qe=this.thru(se),Ge?g?qe.value()[0]:qe.value():qe)})}),_n(["pop","push","shift","sort","splice","unshift"],function(i){var l=ys[i],d=/^(?:push|sort|unshift)$/.test(i)?"tap":"thru",g=/^(?:pop|shift)$/.test(i);_.prototype[i]=function(){var x=arguments;if(g&&!this.__chain__){var L=this.value();return l.apply(lt(L)?L:[],x)}return this[d](function(A){return l.apply(lt(A)?A:[],x)})}}),bn(vt.prototype,function(i,l){var d=_[l];if(d){var g=d.name+"";et.call(Ls,g)||(Ls[g]=[]),Ls[g].push({name:l,func:d})}}),Ls[Pa(o,Ee).name]=[{name:"wrapper",func:o}],vt.prototype.clone=Sf,vt.prototype.reverse=kf,vt.prototype.value=Du,_.prototype.at=m5,_.prototype.chain=y5,_.prototype.commit=b5,_.prototype.next=C5,_.prototype.plant=x5,_.prototype.reverse=_5,_.prototype.toJSON=_.prototype.valueOf=_.prototype.value=L5,_.prototype.first=_.prototype.head,Ji&&(_.prototype[Ji]=w5),_},ji=d1();Kr?((Kr.exports=ji)._=ji,la._=ji):Vt._=ji}).call(Xl)})(S0,S0.exports);const fg=S0.exports,dg=M7({__proto__:null,default:fg},[S0.exports]);let hg=(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),"");/**
2277
+ }`;var dt=ep(function(){return St(L,ze+"return "+se).apply(o,A)});if(dt.source=se,Zf(dt))throw dt;return dt}function N3(i){return zt(i).toLowerCase()}function $3(i){return zt(i).toUpperCase()}function R3(i,l,d){if(i=zt(i),i&&(d||l===o))return da(i);if(!i||!(l=Fr(l)))return i;var g=Ln(i),x=Ln(l),L=Gi(g,x),A=dl(g,x)+1;return ho(g,L,A).join("")}function H3(i,l,d){if(i=zt(i),i&&(d||l===o))return i.slice(0,vl(i)+1);if(!i||!(l=Fr(l)))return i;var g=Ln(i),x=dl(g,Ln(l))+1;return ho(g,0,x).join("")}function F3(i,l,d){if(i=zt(i),i&&(d||l===o))return i.replace(Oo,"");if(!i||!(l=Fr(l)))return i;var g=Ln(i),x=Gi(g,Ln(l));return ho(g,x).join("")}function W3(i,l){var d=pe,g=ye;if(ir(l)){var x="separator"in l?l.separator:x;d="length"in l?ct(l.length):d,g="omission"in l?Fr(l.omission):g}i=zt(i);var L=i.length;if(Yn(i)){var A=Ln(i);L=A.length}if(d>=L)return i;var z=d-Io(g);if(z<1)return g;var H=A?ho(A,0,z).join(""):i.slice(0,z);if(x===o)return H+g;if(A&&(z+=H.length-z),Vf(x)){if(i.slice(z).search(x)){var ee,te=H;for(x.global||(x=Ki(x.source,zt(To.exec(x))+"g")),x.lastIndex=0;ee=x.exec(te);)var se=ee.index;H=H.slice(0,se===o?z:se)}}else if(i.indexOf(Fr(x),z)!=z){var xe=H.lastIndexOf(x);xe>-1&&(H=H.slice(0,xe))}return H+g}function B3(i){return i=zt(i),i&&cs.test(i)?i.replace(Hn,gl):i}var U3=zs(function(i,l,d){return i+(d?" ":"")+l.toUpperCase()}),jf=G1("toUpperCase");function Jh(i,l,d){return i=zt(i),l=d?o:l,l===o?oi(i)?Zn(i):n1(i):i.match(l)||[]}var ep=ut(function(i,l){try{return gn(i,o,l)}catch(d){return Zf(d)?d:new Xe(d)}}),Y3=Pi(function(i,l){return _n(l,function(d){d=At(d),fi(i,d,Uf(i[d],i))}),i});function Z3(i){var l=i==null?0:i.length,d=Re();return i=l?Et(i,function(g){if(typeof g[1]!="function")throw new on(y);return[d(g[0]),g[1]]}):[],ut(function(g){for(var x=-1;++x<l;){var L=i[x];if(gn(L[0],this,g))return gn(L[1],this,g)}})}function V3(i){return L1(Jr(i,U))}function Kf(i){return function(){return i}}function G3(i,l){return i==null||i!==i?l:i}var q3=q1(),j3=q1(!0);function En(i){return i}function Xf(i){return A1(typeof i=="function"?i:Jr(i,U))}function K3(i){return D1(Jr(i,U))}function X3(i,l){return Vu(i,Jr(l,U))}var Q3=ut(function(i,l){return function(d){return ks(d,i,l)}}),J3=ut(function(i,l){return function(d){return ks(i,d,l)}});function Qf(i,l,d){var g=Vr(l),x=La(l,g);d==null&&!(ir(l)&&(x.length||!g.length))&&(d=l,l=i,i=this,x=La(l,Vr(l)));var L=!(ir(d)&&"chain"in d)||!!d.chain,A=Ko(i);return _n(x,function(z){var H=l[z];i[z]=H,A&&(i.prototype[z]=function(){var ee=this.__chain__;if(L||ee){var te=i(this.__wrapped__),se=te.__actions__=_r(this.__actions__);return se.push({func:H,args:arguments,thisArg:i}),te.__chain__=ee,te}return H.apply(i,Vi([this.value()],arguments))})}),i}function e7(){return Vt._===this&&(Vt._=p1),this}function Jf(){}function t7(i){return i=ct(i),ut(function(l){return I1(l,i)})}var r7=$s(Et),n7=$s(Lu),i7=$s(Eo);function tp(i){return C(i)?Mu(At(i)):If(i)}function o7(i){return function(l){return i==null?o:lo(i,l)}}var s7=j1(),a7=j1(!0);function ed(){return[]}function td(){return!1}function l7(){return{}}function u7(){return""}function c7(){return!0}function f7(i,l){if(i=ct(i),i<1||i>nt)return[];var d=Rt,g=Pr(i,Rt);l=Re(l),i-=Rt;for(var x=Do(g,l);++d<i;)l(d);return x}function d7(i){return lt(i)?Et(i,At):qn(i)?[i]:_r(hr(zt(i)))}function h7(i){var l=++Qi;return zt(i)+l}var p7=Ea(function(i,l){return i+l},0),v7=Aa("ceil"),g7=Ea(function(i,l){return i/l},1),m7=Aa("floor");function y7(i){return i&&i.length?_a(i,En,Tl):o}function b7(i,l){return i&&i.length?_a(i,Re(l,2),Tl):o}function C7(i){return ku(i,En)}function w7(i,l){return ku(i,Re(l,2))}function x7(i){return i&&i.length?_a(i,En,co):o}function _7(i,l){return i&&i.length?_a(i,Re(l,2),co):o}var L7=Ea(function(i,l){return i*l},1),S7=Aa("round"),k7=Ea(function(i,l){return i-l},0);function M7(i){return i&&i.length?Pu(i,En):0}function O7(i,l){return i&&i.length?Pu(i,Re(l,2)):0}return _.after=K5,_.ary=Ah,_.assign=$6,_.assignIn=Vh,_.assignInWith=lc,_.assignWith=R6,_.at=H6,_.before=Dh,_.bind=Uf,_.bindAll=Y3,_.bindKey=Ih,_.castArray=l6,_.chain=Th,_.chunk=Fs,_.compact=po,_.concat=zr,_.cond=Z3,_.conforms=V3,_.constant=Kf,_.countBy=M5,_.create=F6,_.curry=zh,_.curryRight=Nh,_.debounce=$h,_.defaults=W6,_.defaultsDeep=B6,_.defer=X5,_.delay=Q5,_.difference=di,_.differenceBy=pr,_.differenceWith=l0,_.drop=Ei,_.dropRight=qo,_.dropRightWhile=jo,_.dropWhile=Zr,_.fill=Ws,_.filter=T5,_.flatMap=A5,_.flatMapDeep=D5,_.flatMapDepth=I5,_.flatten=Sh,_.flattenDeep=O4,_.flattenDepth=T4,_.flip=J5,_.flow=q3,_.flowRight=j3,_.fromPairs=P4,_.functions=j6,_.functionsIn=K6,_.groupBy=z5,_.initial=A4,_.intersection=D4,_.intersectionBy=I4,_.intersectionWith=z4,_.invert=Q6,_.invertBy=J6,_.invokeMap=$5,_.iteratee=Xf,_.keyBy=R5,_.keys=Vr,_.keysIn=Pn,_.map=rc,_.mapKeys=t3,_.mapValues=r3,_.matches=K3,_.matchesProperty=X3,_.memoize=ic,_.merge=n3,_.mergeWith=Gh,_.method=Q3,_.methodOf=J3,_.mixin=Qf,_.negate=oc,_.nthArg=t7,_.omit=i3,_.omitBy=o3,_.once=e6,_.orderBy=H5,_.over=r7,_.overArgs=t6,_.overEvery=n7,_.overSome=i7,_.partial=Yf,_.partialRight=Rh,_.partition=F5,_.pick=s3,_.pickBy=qh,_.property=tp,_.propertyOf=o7,_.pull=H4,_.pullAll=Mh,_.pullAllBy=F4,_.pullAllWith=W4,_.pullAt=B4,_.range=s7,_.rangeRight=a7,_.rearg=r6,_.reject=U5,_.remove=U4,_.rest=n6,_.reverse=Wf,_.sampleSize=Z5,_.set=l3,_.setWith=u3,_.shuffle=V5,_.slice=Y4,_.sortBy=j5,_.sortedUniq=X4,_.sortedUniqBy=Q4,_.split=A3,_.spread=i6,_.tail=J4,_.take=e5,_.takeRight=t5,_.takeRightWhile=r5,_.takeWhile=n5,_.tap=y5,_.throttle=o6,_.thru=tc,_.toArray=Uh,_.toPairs=jh,_.toPairsIn=Kh,_.toPath=d7,_.toPlainObject=Zh,_.transform=c3,_.unary=s6,_.union=i5,_.unionBy=o5,_.unionWith=s5,_.uniq=a5,_.uniqBy=l5,_.uniqWith=u5,_.unset=f3,_.unzip=Bf,_.unzipWith=Oh,_.update=d3,_.updateWith=h3,_.values=ql,_.valuesIn=p3,_.without=c5,_.words=Jh,_.wrap=a6,_.xor=f5,_.xorBy=d5,_.xorWith=h5,_.zip=p5,_.zipObject=v5,_.zipObjectDeep=g5,_.zipWith=m5,_.entries=jh,_.entriesIn=Kh,_.extend=Vh,_.extendWith=lc,Qf(_,_),_.add=p7,_.attempt=ep,_.camelCase=y3,_.capitalize=Xh,_.ceil=v7,_.clamp=v3,_.clone=u6,_.cloneDeep=f6,_.cloneDeepWith=d6,_.cloneWith=c6,_.conformsTo=h6,_.deburr=Qh,_.defaultTo=G3,_.divide=g7,_.endsWith=b3,_.eq=Ai,_.escape=C3,_.escapeRegExp=w3,_.every=O5,_.find=P5,_.findIndex=Vl,_.findKey=U6,_.findLast=E5,_.findLastIndex=Lh,_.findLastKey=Y6,_.floor=m7,_.forEach=Ph,_.forEachRight=Eh,_.forIn=Z6,_.forInRight=V6,_.forOwn=G6,_.forOwnRight=q6,_.get=Gf,_.gt=p6,_.gte=v6,_.has=X6,_.hasIn=qf,_.head=kh,_.identity=En,_.includes=N5,_.indexOf=E4,_.inRange=g3,_.invoke=e3,_.isArguments=Na,_.isArray=lt,_.isArrayBuffer=g6,_.isArrayLike=Tn,_.isArrayLikeObject=vr,_.isBoolean=m6,_.isBuffer=Bs,_.isDate=y6,_.isElement=b6,_.isEmpty=C6,_.isEqual=w6,_.isEqualWith=x6,_.isError=Zf,_.isFinite=_6,_.isFunction=Ko,_.isInteger=Hh,_.isLength=sc,_.isMap=Fh,_.isMatch=L6,_.isMatchWith=S6,_.isNaN=k6,_.isNative=M6,_.isNil=T6,_.isNull=O6,_.isNumber=Wh,_.isObject=ir,_.isObjectLike=lr,_.isPlainObject=u0,_.isRegExp=Vf,_.isSafeInteger=P6,_.isSet=Bh,_.isString=ac,_.isSymbol=qn,_.isTypedArray=Gl,_.isUndefined=E6,_.isWeakMap=A6,_.isWeakSet=D6,_.join=N4,_.kebabCase=x3,_.last=hi,_.lastIndexOf=$4,_.lowerCase=_3,_.lowerFirst=L3,_.lt=I6,_.lte=z6,_.max=y7,_.maxBy=b7,_.mean=C7,_.meanBy=w7,_.min=x7,_.minBy=_7,_.stubArray=ed,_.stubFalse=td,_.stubObject=l7,_.stubString=u7,_.stubTrue=c7,_.multiply=L7,_.nth=R4,_.noConflict=e7,_.noop=Jf,_.now=nc,_.pad=S3,_.padEnd=k3,_.padStart=M3,_.parseInt=O3,_.random=m3,_.reduce=W5,_.reduceRight=B5,_.repeat=T3,_.replace=P3,_.result=a3,_.round=S7,_.runInContext=R,_.sample=Y5,_.size=G5,_.snakeCase=E3,_.some=q5,_.sortedIndex=Z4,_.sortedIndexBy=V4,_.sortedIndexOf=G4,_.sortedLastIndex=q4,_.sortedLastIndexBy=j4,_.sortedLastIndexOf=K4,_.startCase=D3,_.startsWith=I3,_.subtract=k7,_.sum=M7,_.sumBy=O7,_.template=z3,_.times=f7,_.toFinite=Xo,_.toInteger=ct,_.toLength=Yh,_.toLower=N3,_.toNumber=pi,_.toSafeInteger=N6,_.toString=zt,_.toUpper=$3,_.trim=R3,_.trimEnd=H3,_.trimStart=F3,_.truncate=W3,_.unescape=B3,_.uniqueId=h7,_.upperCase=U3,_.upperFirst=jf,_.each=Ph,_.eachRight=Eh,_.first=kh,Qf(_,function(){var i={};return bn(_,function(l,d){et.call(_.prototype,d)||(i[d]=l)}),i}(),{chain:!1}),_.VERSION=c,_n(["bind","bindKey","curry","curryRight","partial","partialRight"],function(i){_[i].placeholder=_}),_n(["drop","take"],function(i,l){vt.prototype[i]=function(d){d=d===o?1:Gt(ct(d),0);var g=this.__filtered__&&!l?new vt(this):this.clone();return g.__filtered__?g.__takeCount__=Pr(d,g.__takeCount__):g.__views__.push({size:Pr(d,Rt),type:i+(g.__dir__<0?"Right":"")}),g},vt.prototype[i+"Right"]=function(d){return this.reverse()[i](d).reverse()}}),_n(["filter","map","takeWhile"],function(i,l){var d=l+1,g=d==D||d==re;vt.prototype[i]=function(x){var L=this.clone();return L.__iteratees__.push({iteratee:Re(x,3),type:d}),L.__filtered__=L.__filtered__||g,L}}),_n(["head","last"],function(i,l){var d="take"+(l?"Right":"");vt.prototype[i]=function(){return this[d](1).value()[0]}}),_n(["initial","tail"],function(i,l){var d="drop"+(l?"":"Right");vt.prototype[i]=function(){return this.__filtered__?new vt(this):this[d](1)}}),vt.prototype.compact=function(){return this.filter(En)},vt.prototype.find=function(i){return this.filter(i).head()},vt.prototype.findLast=function(i){return this.reverse().find(i)},vt.prototype.invokeMap=ut(function(i,l){return typeof i=="function"?new vt(this):this.map(function(d){return ks(d,i,l)})}),vt.prototype.reject=function(i){return this.filter(oc(Re(i)))},vt.prototype.slice=function(i,l){i=ct(i);var d=this;return d.__filtered__&&(i>0||l<0)?new vt(d):(i<0?d=d.takeRight(-i):i&&(d=d.drop(i)),l!==o&&(l=ct(l),d=l<0?d.dropRight(-l):d.take(l-i)),d)},vt.prototype.takeRightWhile=function(i){return this.reverse().takeWhile(i).reverse()},vt.prototype.toArray=function(){return this.take(Rt)},bn(vt.prototype,function(i,l){var d=/^(?:filter|find|map|reject)|While$/.test(l),g=/^(?:head|last)$/.test(l),x=_[g?"take"+(l=="last"?"Right":""):l],L=g||/^find/.test(l);!x||(_.prototype[l]=function(){var A=this.__wrapped__,z=g?[1]:arguments,H=A instanceof vt,ee=z[0],te=H||lt(A),se=function(yt){var Ct=x.apply(_,Vi([yt],z));return g&&xe?Ct[0]:Ct};te&&d&&typeof ee=="function"&&ee.length!=1&&(H=te=!1);var xe=this.__chain__,ze=!!this.__actions__.length,Ge=L&&!xe,dt=H&&!ze;if(!L&&te){A=dt?A:new vt(this);var qe=i.apply(A,z);return qe.__actions__.push({func:tc,args:[se],thisArg:o}),new Qr(qe,xe)}return Ge&&dt?i.apply(this,z):(qe=this.thru(se),Ge?g?qe.value()[0]:qe.value():qe)})}),_n(["pop","push","shift","sort","splice","unshift"],function(i){var l=ms[i],d=/^(?:push|sort|unshift)$/.test(i)?"tap":"thru",g=/^(?:pop|shift)$/.test(i);_.prototype[i]=function(){var x=arguments;if(g&&!this.__chain__){var L=this.value();return l.apply(lt(L)?L:[],x)}return this[d](function(A){return l.apply(lt(A)?A:[],x)})}}),bn(vt.prototype,function(i,l){var d=_[l];if(d){var g=d.name+"";et.call(_s,g)||(_s[g]=[]),_s[g].push({name:l,func:d})}}),_s[Pa(o,Ee).name]=[{name:"wrapper",func:o}],vt.prototype.clone=Sf,vt.prototype.reverse=kf,vt.prototype.value=Du,_.prototype.at=b5,_.prototype.chain=C5,_.prototype.commit=w5,_.prototype.next=x5,_.prototype.plant=L5,_.prototype.reverse=S5,_.prototype.toJSON=_.prototype.valueOf=_.prototype.value=k5,_.prototype.first=_.prototype.head,Ji&&(_.prototype[Ji]=_5),_},ji=d1();Kr?((Kr.exports=ji)._=ji,la._=ji):Vt._=ji}).call(Xl)})(S0,S0.exports);const hg=S0.exports,pg=T7({__proto__:null,default:hg},[S0.exports]);let vg=(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),"");/**
2271
2278
  * @license
2272
2279
  * Copyright 2020 Google LLC
2273
2280
  * SPDX-License-Identifier: BSD-3-Clause
2274
- */const{I:pg}=A7,Tp=()=>document.createComment(""),d0=(r,n,o)=>{var c;const f=r._$AA.parentNode,v=n===void 0?r._$AB:n._$AA;if(o===void 0){const y=f.insertBefore(Tp(),v),E=f.insertBefore(Tp(),v);o=new pg(y,E,r,r.options)}else{const y=o._$AB.nextSibling,E=o._$AM,k=E!==r;if(k){let O;(c=o._$AQ)===null||c===void 0||c.call(o,r),o._$AM=r,o._$AP!==void 0&&(O=r._$AU)!==E._$AU&&o._$AP(O)}if(y!==v||k){let O=o._$AA;for(;O!==y;){const I=O.nextSibling;f.insertBefore(O,v),O=I}}}return o},Ha=(r,n,o=r)=>(r._$AI(n,o),r),vg={},gg=(r,n=vg)=>r._$AH=n,mg=r=>r._$AH,ud=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}};/**
2281
+ */const{I:gg}=I7,Ep=()=>document.createComment(""),d0=(r,n,o)=>{var c;const f=r._$AA.parentNode,v=n===void 0?r._$AB:n._$AA;if(o===void 0){const y=f.insertBefore(Ep(),v),E=f.insertBefore(Ep(),v);o=new gg(y,E,r,r.options)}else{const y=o._$AB.nextSibling,E=o._$AM,k=E!==r;if(k){let O;(c=o._$AQ)===null||c===void 0||c.call(o,r),o._$AM=r,o._$AP!==void 0&&(O=r._$AU)!==E._$AU&&o._$AP(O)}if(y!==v||k){let O=o._$AA;for(;O!==y;){const I=O.nextSibling;f.insertBefore(O,v),O=I}}}return o},Ha=(r,n,o=r)=>(r._$AI(n,o),r),mg={},yg=(r,n=mg)=>r._$AH=n,bg=r=>r._$AH,cd=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}};/**
2275
2282
  * @license
2276
2283
  * Copyright 2017 Google LLC
2277
2284
  * SPDX-License-Identifier: BSD-3-Clause
2278
- */const Pp=(r,n,o)=>{const c=new Map;for(let f=n;f<=o;f++)c.set(r[f],f);return c},yg=Pc(class extends Ec{constructor(r){if(super(r),r.type!==Tc.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=[],v=[];let y=0;for(const E of r)f[y]=c?c(E,y):y,v[y]=o(E,y),y++;return{values:v,keys:f}}render(r,n,o){return this.ht(r,n,o).values}update(r,[n,o,c]){var f;const v=mg(r),{values:y,keys:E}=this.ht(n,o,c);if(!Array.isArray(v))return this.ut=E,y;const k=(f=this.ut)!==null&&f!==void 0?f:this.ut=[],O=[];let I,U,q=0,X=v.length-1,ue=0,Ce=y.length-1;for(;q<=X&&ue<=Ce;)if(v[q]===null)q++;else if(v[X]===null)X--;else if(k[q]===E[ue])O[ue]=Ha(v[q],y[ue]),q++,ue++;else if(k[X]===E[Ce])O[Ce]=Ha(v[X],y[Ce]),X--,Ce--;else if(k[q]===E[Ce])O[Ce]=Ha(v[q],y[Ce]),d0(r,O[Ce+1],v[q]),q++,Ce--;else if(k[X]===E[ue])O[ue]=Ha(v[X],y[ue]),d0(r,v[q],v[X]),X--,ue++;else if(I===void 0&&(I=Pp(E,ue,Ce),U=Pp(k,q,X)),I.has(k[q]))if(I.has(k[X])){const me=U.get(E[ue]),Ee=me!==void 0?v[me]:null;if(Ee===null){const Ae=d0(r,v[q]);Ha(Ae,y[ue]),O[ue]=Ae}else O[ue]=Ha(Ee,y[ue]),d0(r,v[q],Ee),v[me]=null;ue++}else ud(v[X]),X--;else ud(v[q]),q++;for(;ue<=Ce;){const me=d0(r,O[Ce+1]);Ha(me,y[ue]),O[ue++]=me}for(;q<=X;){const me=v[q++];me!==null&&ud(me)}return this.ut=E,gg(r,O),go}});/**
2285
+ */const Ap=(r,n,o)=>{const c=new Map;for(let f=n;f<=o;f++)c.set(r[f],f);return c},Cg=Pc(class extends Ec{constructor(r){if(super(r),r.type!==Tc.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=[],v=[];let y=0;for(const E of r)f[y]=c?c(E,y):y,v[y]=o(E,y),y++;return{values:v,keys:f}}render(r,n,o){return this.ht(r,n,o).values}update(r,[n,o,c]){var f;const v=bg(r),{values:y,keys:E}=this.ht(n,o,c);if(!Array.isArray(v))return this.ut=E,y;const k=(f=this.ut)!==null&&f!==void 0?f:this.ut=[],O=[];let I,U,q=0,X=v.length-1,ue=0,Ce=y.length-1;for(;q<=X&&ue<=Ce;)if(v[q]===null)q++;else if(v[X]===null)X--;else if(k[q]===E[ue])O[ue]=Ha(v[q],y[ue]),q++,ue++;else if(k[X]===E[Ce])O[Ce]=Ha(v[X],y[Ce]),X--,Ce--;else if(k[q]===E[Ce])O[Ce]=Ha(v[q],y[Ce]),d0(r,O[Ce+1],v[q]),q++,Ce--;else if(k[X]===E[ue])O[ue]=Ha(v[X],y[ue]),d0(r,v[q],v[X]),X--,ue++;else if(I===void 0&&(I=Ap(E,ue,Ce),U=Ap(k,q,X)),I.has(k[q]))if(I.has(k[X])){const me=U.get(E[ue]),Ee=me!==void 0?v[me]:null;if(Ee===null){const Ae=d0(r,v[q]);Ha(Ae,y[ue]),O[ue]=Ae}else O[ue]=Ha(Ee,y[ue]),d0(r,v[q],Ee),v[me]=null;ue++}else cd(v[X]),X--;else cd(v[q]),q++;for(;ue<=Ce;){const me=d0(r,O[Ce+1]);Ha(me,y[ue]),O[ue++]=me}for(;q<=X;){const me=v[q++];me!==null&&cd(me)}return this.ut=E,yg(r,O),go}});/**
2279
2286
  * @license
2280
2287
  * Copyright 2018 Google LLC
2281
2288
  * SPDX-License-Identifier: BSD-3-Clause
2282
- */const bg=Pc(class extends Ec{constructor(r){var n;if(super(r),r.type!==Tc.ATTRIBUTE||r.name!=="style"||((n=r.strings)===null||n===void 0?void 0:n.length)>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(r){return Object.keys(r).reduce((n,o)=>{const c=r[o];return c==null?n:n+`${o=o.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${c};`},"")}update(r,[n]){const{style:o}=r.element;if(this.vt===void 0){this.vt=new Set;for(const c in n)this.vt.add(c);return this.render(n)}this.vt.forEach(c=>{n[c]==null&&(this.vt.delete(c),c.includes("-")?o.removeProperty(c):o[c]="")});for(const c in n){const f=n[c];f!=null&&(this.vt.add(c),c.includes("-")?o.setProperty(c,f):o[c]=f)}return go}});var Cg=Object.defineProperty,wg=Object.getOwnPropertyDescriptor,Jn=(r,n,o,c)=>{for(var f=c>1?void 0:c?wg(n,o):n,v=r.length-1,y;v>=0;v--)(y=r[v])&&(f=(c?y(n,o,f):y(f))||f);return c&&f&&Cg(n,o,f),f};const qd=Sr("virtual-list");exports.VirtualList=class extends Ue{constructor(){super(...arguments),this.items=[],this.itemMinHeight=32,this.overscan=50,this.renderItem=(r,n)=>J`
2289
+ */const wg=Pc(class extends Ec{constructor(r){var n;if(super(r),r.type!==Tc.ATTRIBUTE||r.name!=="style"||((n=r.strings)===null||n===void 0?void 0:n.length)>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(r){return Object.keys(r).reduce((n,o)=>{const c=r[o];return c==null?n:n+`${o=o.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${c};`},"")}update(r,[n]){const{style:o}=r.element;if(this.vt===void 0){this.vt=new Set;for(const c in n)this.vt.add(c);return this.render(n)}this.vt.forEach(c=>{n[c]==null&&(this.vt.delete(c),c.includes("-")?o.removeProperty(c):o[c]="")});for(const c in n){const f=n[c];f!=null&&(this.vt.add(c),c.includes("-")?o.setProperty(c,f):o[c]=f)}return go}});var xg=Object.defineProperty,_g=Object.getOwnPropertyDescriptor,Jn=(r,n,o,c)=>{for(var f=c>1?void 0:c?_g(n,o):n,v=r.length-1,y;v>=0;v--)(y=r[v])&&(f=(c?y(n,o,f):y(f))||f);return c&&f&&xg(n,o,f),f};const jd=Sr("virtual-list");exports.VirtualList=class extends Ue{constructor(){super(...arguments),this.items=[],this.itemMinHeight=32,this.overscan=50,this.renderItem=(r,n)=>J`
2283
2290
  <div
2284
2291
  class="default-render-item"
2285
2292
  style="min-height: ${this.itemMinHeight}px"
2286
2293
  >
2287
2294
  Item ${n}: ${JSON.stringify(r)}
2288
2295
  </div>
2289
- `,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 v=jp(o,new DocumentFragment).parentNode.firstElementChild,y=v==null?void 0:v.tagName.toLowerCase(),E=v==null?void 0:v.className;this.itemIdentifier=`${y}${E?`.${E}`:""}`}const c=J`
2290
- <div class="item-wrapper" style=${bg(n)}>
2296
+ `,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 v=Xp(o,new DocumentFragment).parentNode.firstElementChild,y=v==null?void 0:v.tagName.toLowerCase(),E=v==null?void 0:v.className;this.itemIdentifier=`${y}${E?`.${E}`:""}`}const c=J`
2297
+ <div class="item-wrapper" style=${wg(n)}>
2291
2298
  ${o}
2292
2299
  </div>
2293
2300
  `;this.visibleItems.push({index:r,item:c})}this.updateItemHeights()}async updateItemHeights(){await this.updateComplete,this.visibleItems.forEach(({index:r},n)=>{var o,c;this.itemHeights[r]=((c=(o=this.visibleItemElements)==null?void 0:o[n])==null?void 0:c.getBoundingClientRect().height)||this.itemHeights[r]})}get visibleItemElements(){var r;if(!this.itemIdentifier)throw new Error("Each list item should be wrapped in a single layout element. Check your renderItem template.");return(r=this.shadowRoot)==null?void 0:r.querySelectorAll(this.itemIdentifier)}handleScroll(r){var n;this.currentScrollTop=(n=r.currentTarget)==null?void 0:n.scrollTop,this.syncVisibleItems()}get rollingStartIndex(){const r=Math.floor(this.currentScrollTop/this.estimatedItemMinHeight),n=Math.min(this.overscan,r);return r-n}get rollingEndIndex(){const r=Math.min(this.endIndex,Math.floor((this.currentScrollTop+this.containerHeight)/this.estimatedItemMinHeight)),n=Math.min(this.overscan,this.endIndex-r);return r+n}get containerHeight(){return this.getBoundingClientRect().height}render(){return J`
2294
2301
  <div class="container" @scroll=${this.handleScroll}>
2295
2302
  <div class="list" style="height: ${this.innerHeight}px">
2296
- ${yg(this.visibleItems,({index:r})=>r,({item:r})=>r)}
2303
+ ${Cg(this.visibleItems,({index:r})=>r,({item:r})=>r)}
2297
2304
  </div>
2298
2305
  </div>
2299
2306
  `}};exports.VirtualList.styles=[ke`
@@ -2310,7 +2317,7 @@ function print() { __p += __j.call(arguments, '') }
2310
2317
  .list {
2311
2318
  position: relative;
2312
2319
  }
2313
- `];Jn([W({type:Array})],exports.VirtualList.prototype,"items",2);Jn([W({attribute:"item-min-height",type:Number})],exports.VirtualList.prototype,"itemMinHeight",2);Jn([W({type:Number,attribute:"overscan"})],exports.VirtualList.prototype,"overscan",2);Jn([W({attribute:!1})],exports.VirtualList.prototype,"renderItem",2);Jn([ht()],exports.VirtualList.prototype,"currentScrollTop",2);Jn([ht()],exports.VirtualList.prototype,"endIndex",2);Jn([ht()],exports.VirtualList.prototype,"innerHeight",2);Jn([ht()],exports.VirtualList.prototype,"itemHeights",2);Jn([ht()],exports.VirtualList.prototype,"itemIdentifier",2);Jn([ht()],exports.VirtualList.prototype,"originalItemsCount",2);Jn([ht()],exports.VirtualList.prototype,"currentItemsCount",2);Jn([ht()],exports.VirtualList.prototype,"visibleItems",2);exports.VirtualList=Jn([De(qd)],exports.VirtualList);var xg=Object.defineProperty,_g=Object.getOwnPropertyDescriptor,Nn=(r,n,o,c)=>{for(var f=c>1?void 0:c?_g(n,o):n,v=r.length-1,y;v>=0;v--)(y=r[v])&&(f=(c?y(n,o,f):y(f))||f);return c&&f&&xg(n,o,f),f};const C2=Sr("menu"),xc=Sr("menu-item"),jd="noResults";class ei 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-${hg()}`,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:v,after:y})=>(E,k)=>E.hidden?!1:v===void 0&&y===void 0||v!==void 0&&k<v||y!==void 0&&k>y;this.clearKeySelectedItem();const f=this.getItems();if(this.selectedIndex===-1){this.selectedIndex=0,f[this.selectedIndex].selected=!0;return}o==="ArrowUp"&&(this.selectedIndex=S0.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;return(n=this.renderRoot)==null?void 0:n.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;return(n=this.optionElementsRenderRoot)==null?void 0:n.querySelector(`${xc}[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(qd)}getOptionElement(n){return this.optionElements.find(o=>o.id===n)}get optionElements(){var n,o;return Array.from((o=(n=this.optionElementsRenderRoot)==null?void 0:n.querySelectorAll(xc))!=null?o:[])}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():J`
2320
+ `];Jn([W({type:Array})],exports.VirtualList.prototype,"items",2);Jn([W({attribute:"item-min-height",type:Number})],exports.VirtualList.prototype,"itemMinHeight",2);Jn([W({type:Number,attribute:"overscan"})],exports.VirtualList.prototype,"overscan",2);Jn([W({attribute:!1})],exports.VirtualList.prototype,"renderItem",2);Jn([ht()],exports.VirtualList.prototype,"currentScrollTop",2);Jn([ht()],exports.VirtualList.prototype,"endIndex",2);Jn([ht()],exports.VirtualList.prototype,"innerHeight",2);Jn([ht()],exports.VirtualList.prototype,"itemHeights",2);Jn([ht()],exports.VirtualList.prototype,"itemIdentifier",2);Jn([ht()],exports.VirtualList.prototype,"originalItemsCount",2);Jn([ht()],exports.VirtualList.prototype,"currentItemsCount",2);Jn([ht()],exports.VirtualList.prototype,"visibleItems",2);exports.VirtualList=Jn([De(jd)],exports.VirtualList);var Lg=Object.defineProperty,Sg=Object.getOwnPropertyDescriptor,Nn=(r,n,o,c)=>{for(var f=c>1?void 0:c?Sg(n,o):n,v=r.length-1,y;v>=0;v--)(y=r[v])&&(f=(c?y(n,o,f):y(f))||f);return c&&f&&Lg(n,o,f),f};const x2=Sr("menu"),xc=Sr("menu-item"),Kd="noResults";class ei 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-${vg()}`,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:v,after:y})=>(E,k)=>E.hidden?!1:v===void 0&&y===void 0||v!==void 0&&k<v||y!==void 0&&k>y;this.clearKeySelectedItem();const f=this.getItems();if(this.selectedIndex===-1){this.selectedIndex=0,f[this.selectedIndex].selected=!0;return}o==="ArrowUp"&&(this.selectedIndex=S0.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;return(n=this.renderRoot)==null?void 0:n.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;return(n=this.optionElementsRenderRoot)==null?void 0:n.querySelector(`${xc}[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 n,o;return Array.from((o=(n=this.optionElementsRenderRoot)==null?void 0:n.querySelectorAll(xc))!=null?o:[])}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():J`
2314
2321
  <sp-popover
2315
2322
  role="menu"
2316
2323
  trigger="click"
@@ -2329,7 +2336,7 @@ function print() { __p += __j.call(arguments, '') }
2329
2336
  ${this.renderDropdownContent()}
2330
2337
  </sp-menu>
2331
2338
  </sp-popover>
2332
- `}renderNoResultsMessage(){return J`<sp-menu-item id=${jd} disabled
2339
+ `}renderNoResultsMessage(){return J`<sp-menu-item id=${Kd} disabled
2333
2340
  >No results found</sp-menu-item
2334
2341
  >`}renderReferenceElement(){return J``}renderDropdownContent(){return J``}renderOptionsData(n=this.innerOptions){return n!=null&&n.length?J`
2335
2342
  <sp-virtual-list
@@ -2383,7 +2390,7 @@ function print() { __p += __j.call(arguments, '') }
2383
2390
  overflow: hidden;
2384
2391
  overflow-y: auto;
2385
2392
  }
2386
- `];exports.Menu=Nn([De(C2)],exports.Menu);exports.MenuItem=class extends Ue{constructor(){super(),this.disabled=!1,this.selected=!1,this.handleSelected=this.handleSelected.bind(this)}connectedCallback(){super.connectedCallback(),this.addEventListener("click",this.handleSelected)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",this.handleSelected)}handleSelected(r){this.disabled||(w2(this,"sp-select",{detail:{item:this}}),this.toggleable&&r.stopPropagation())}get labelTemplate(){return J` <div class="label"><slot></slot></div> `}render(){return J`
2393
+ `];exports.Menu=Nn([De(x2)],exports.Menu);exports.MenuItem=class extends Ue{constructor(){super(),this.disabled=!1,this.selected=!1,this.handleSelected=this.handleSelected.bind(this)}connectedCallback(){super.connectedCallback(),this.addEventListener("click",this.handleSelected)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",this.handleSelected)}handleSelected(r){this.disabled||(_2(this,"sp-select",{detail:{item:this}}),this.toggleable&&r.stopPropagation())}get labelTemplate(){return J` <div class="label"><slot></slot></div> `}render(){return J`
2387
2394
  <div class="wrapper">
2388
2395
  ${this.toggleable?J`
2389
2396
  <sp-input-checkbox
@@ -2428,7 +2435,7 @@ function print() { __p += __j.call(arguments, '') }
2428
2435
  flex-basis: 100%;
2429
2436
  padding: var(--menu-item-padding-y) 0;
2430
2437
  }
2431
- `];Nn([W({type:Boolean,reflect:!0})],exports.MenuItem.prototype,"disabled",2);Nn([W({type:Boolean,reflect:!0})],exports.MenuItem.prototype,"selected",2);Nn([W({type:String})],exports.MenuItem.prototype,"value",2);Nn([W({type:Boolean,reflect:!0})],exports.MenuItem.prototype,"toggleable",2);Nn([W({type:Boolean,reflect:!0})],exports.MenuItem.prototype,"toggled",2);exports.MenuItem=Nn([De(xc)],exports.MenuItem);const w2=(r,n,o)=>{const c=new CustomEvent(n,Object.assign({bubbles:!0,cancelable:!1,composed:!0,detail:{}},o));return r.dispatchEvent(c),c};var Lg=Object.defineProperty,Sg=Object.getOwnPropertyDescriptor,I0=(r,n,o,c)=>{for(var f=c>1?void 0:c?Sg(n,o):n,v=r.length-1,y;v>=0;v--)(y=r[v])&&(f=(c?y(n,o,f):y(f))||f);return c&&f&&Lg(n,o,f),f};const kg=Sr("input-select");exports.InputSelect=class extends ei{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(),this.canSearch?J`<input
2438
+ `];Nn([W({type:Boolean,reflect:!0})],exports.MenuItem.prototype,"disabled",2);Nn([W({type:Boolean,reflect:!0})],exports.MenuItem.prototype,"selected",2);Nn([W({type:String})],exports.MenuItem.prototype,"value",2);Nn([W({type:Boolean,reflect:!0})],exports.MenuItem.prototype,"toggleable",2);Nn([W({type:Boolean,reflect:!0})],exports.MenuItem.prototype,"toggled",2);exports.MenuItem=Nn([De(xc)],exports.MenuItem);const _2=(r,n,o)=>{const c=new CustomEvent(n,Object.assign({bubbles:!0,cancelable:!1,composed:!0,detail:{}},o));return r.dispatchEvent(c),c};var kg=Object.defineProperty,Mg=Object.getOwnPropertyDescriptor,I0=(r,n,o,c)=>{for(var f=c>1?void 0:c?Mg(n,o):n,v=r.length-1,y;v>=0;v--)(y=r[v])&&(f=(c?y(n,o,f):y(f))||f);return c&&f&&kg(n,o,f),f};const Og=Sr("input-select");exports.InputSelect=class extends ei{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(),this.canSearch?J`<input
2432
2439
  id="selectSearch"
2433
2440
  type="text"
2434
2441
  placeholder=${Yt(this.placeholder)}
@@ -2447,7 +2454,7 @@ function print() { __p += __j.call(arguments, '') }
2447
2454
  </div>`}renderDropdownContent(){return J`
2448
2455
  ${this.hasQueryResults?null:this.renderNoResultsMessage()}
2449
2456
  ${this.isDataDriven?this.renderOptionsData():J`<slot @slotchange=${this.handleValueChange}></slot>`}
2450
- `}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===jd)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=[...ei.styles,ke`
2457
+ `}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===Kd)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=[...ei.styles,ke`
2451
2458
  input {
2452
2459
  text-overflow: ellipsis;
2453
2460
  }
@@ -2496,7 +2503,7 @@ function print() { __p += __j.call(arguments, '') }
2496
2503
  .placeholder {
2497
2504
  color: var(--input-placeholder-font-color);
2498
2505
  }
2499
- `];I0([W({type:String})],exports.InputSelect.prototype,"value",2);I0([ht()],exports.InputSelect.prototype,"query",2);I0([ht()],exports.InputSelect.prototype,"valueLabel",2);I0([ht()],exports.InputSelect.prototype,"hasResults",2);exports.InputSelect=I0([De(kg)],exports.InputSelect);var Mg=Object.defineProperty,Og=Object.getOwnPropertyDescriptor,ja=(r,n,o,c)=>{for(var f=c>1?void 0:c?Og(n,o):n,v=r.length-1,y;v>=0;v--)(y=r[v])&&(f=(c?y(n,o,f):y(f))||f);return c&&f&&Mg(n,o,f),f};class x2 extends CustomEvent{constructor(){super("sp-lozenge-delete",{bubbles:!0})}}exports.Lozenge=class extends Ue{constructor(){super(...arguments),this.size="medium",this.theme="solid",this.color="neutral",this.canDelete=!1,this.disabled=!1}_handleDeleteClick(r){r.stopPropagation(),this.dispatchEvent(new x2)}render(){return J`<span class="lozenge"
2506
+ `];I0([W({type:String})],exports.InputSelect.prototype,"value",2);I0([ht()],exports.InputSelect.prototype,"query",2);I0([ht()],exports.InputSelect.prototype,"valueLabel",2);I0([ht()],exports.InputSelect.prototype,"hasResults",2);exports.InputSelect=I0([De(Og)],exports.InputSelect);var Tg=Object.defineProperty,Pg=Object.getOwnPropertyDescriptor,ja=(r,n,o,c)=>{for(var f=c>1?void 0:c?Pg(n,o):n,v=r.length-1,y;v>=0;v--)(y=r[v])&&(f=(c?y(n,o,f):y(f))||f);return c&&f&&Tg(n,o,f),f};class L2 extends CustomEvent{constructor(){super("sp-lozenge-delete",{bubbles:!0})}}exports.Lozenge=class extends Ue{constructor(){super(...arguments),this.size="medium",this.theme="solid",this.color="neutral",this.canDelete=!1,this.disabled=!1}_handleDeleteClick(r){r.stopPropagation(),this.dispatchEvent(new L2)}render(){return J`<span class="lozenge"
2500
2507
  >${this.leadingIcon&&J`<sp-icon
2501
2508
  class="leading"
2502
2509
  size="12"
@@ -2648,7 +2655,7 @@ function print() { __p += __j.call(arguments, '') }
2648
2655
  :host(:not([disabled])).close:hover {
2649
2656
  color: var(--sp-color-white);
2650
2657
  }
2651
- `;ja([W({type:String,attribute:"size",reflect:!0})],exports.Lozenge.prototype,"size",2);ja([W({type:String,attribute:"theme",reflect:!0})],exports.Lozenge.prototype,"theme",2);ja([W({type:String,attribute:"color",reflect:!0})],exports.Lozenge.prototype,"color",2);ja([W({type:String,attribute:"leading-icon",reflect:!0})],exports.Lozenge.prototype,"leadingIcon",2);ja([W({type:Boolean,attribute:"can-delete",reflect:!0})],exports.Lozenge.prototype,"canDelete",2);ja([W({type:Boolean,attribute:"disabled",reflect:!0})],exports.Lozenge.prototype,"disabled",2);exports.Lozenge=ja([De("sp-lozenge")],exports.Lozenge);var Tg=Object.defineProperty,Pg=Object.getOwnPropertyDescriptor,z0=(r,n,o,c)=>{for(var f=c>1?void 0:c?Pg(n,o):n,v=r.length-1,y;v>=0;v--)(y=r[v])&&(f=(c?y(n,o,f):y(f))||f);return c&&f&&Tg(n,o,f),f};const Eg=Sr("input-multiselect"),Zs="selectAll";exports.InputMultiselect=class extends ei{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===Zs){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===Zs?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("sp-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===Zs){this.toggleAllSelected();return}this.toggleSelection(r.detail.item.value)}toggleAllSelected(){const r=[];this.allSelected||this.getItems().forEach(n=>{!n.disabled&&n.id!==Zs&&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===Zs?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?J`<span class="truncation"
2658
+ `;ja([W({type:String,attribute:"size",reflect:!0})],exports.Lozenge.prototype,"size",2);ja([W({type:String,attribute:"theme",reflect:!0})],exports.Lozenge.prototype,"theme",2);ja([W({type:String,attribute:"color",reflect:!0})],exports.Lozenge.prototype,"color",2);ja([W({type:String,attribute:"leading-icon",reflect:!0})],exports.Lozenge.prototype,"leadingIcon",2);ja([W({type:Boolean,attribute:"can-delete",reflect:!0})],exports.Lozenge.prototype,"canDelete",2);ja([W({type:Boolean,attribute:"disabled",reflect:!0})],exports.Lozenge.prototype,"disabled",2);exports.Lozenge=ja([De("sp-lozenge")],exports.Lozenge);var Eg=Object.defineProperty,Ag=Object.getOwnPropertyDescriptor,z0=(r,n,o,c)=>{for(var f=c>1?void 0:c?Ag(n,o):n,v=r.length-1,y;v>=0;v--)(y=r[v])&&(f=(c?y(n,o,f):y(f))||f);return c&&f&&Eg(n,o,f),f};const Dg=Sr("input-multiselect"),Ys="selectAll";exports.InputMultiselect=class extends ei{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===Ys){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===Ys?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("sp-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===Ys){this.toggleAllSelected();return}this.toggleSelection(r.detail.item.value)}toggleAllSelected(){const r=[];this.allSelected||this.getItems().forEach(n=>{!n.disabled&&n.id!==Ys&&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===Ys?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?J`<span class="truncation"
2652
2659
  >+${this.value.length-this.truncateValuesAfter} more</span
2653
2660
  >`:null}renderReferenceElement(){return this.applyToggleStatusToChildren(),this.search(),J` <div
2654
2661
  class="wrapper"
@@ -2671,7 +2678,7 @@ function print() { __p += __j.call(arguments, '') }
2671
2678
  placeholder="${Yt(this.placeholder)}"
2672
2679
  class="search-area"
2673
2680
  />`:null}
2674
- </div>`}get selectAllOption(){return{id:Zs,value:Zs,label:"Select all",toggleable:!0,toggled:this.allSelected}}get selectAllOptionElement(){const{id:r,value:n,label:o,toggleable:c,toggled:f}=this.selectAllOption;return J`
2681
+ </div>`}get selectAllOption(){return{id:Ys,value:Ys,label:"Select all",toggleable:!0,toggled:this.allSelected}}get selectAllOptionElement(){const{id:r,value:n,label:o,toggleable:c,toggled:f}=this.selectAllOption;return J`
2675
2682
  <sp-menu-item
2676
2683
  id=${r}
2677
2684
  ?toggleable=${c}
@@ -2683,7 +2690,7 @@ function print() { __p += __j.call(arguments, '') }
2683
2690
  `}renderDropdownContent(){return J`
2684
2691
  ${this.hasQueryResults?null:this.renderNoResultsMessage()}
2685
2692
  ${this.isDataDriven?this.renderOptionsData():J` ${this.selectAllOptionElement} <slot></slot> `}
2686
- `}removeLastValue(){var r;(r=this.value)==null||r.pop(),this.handleValueChange()}resetSearch(){this.query=""}search(){var n;this.hasResults=!1;const r=(n=this.query)==null?void 0:n.toLowerCase();this.getItems().forEach(o=>{if(!r){o.hidden=!1,this.hasResults=!0;return}const c=this.isQueryMatch(o);c&&(this.hasResults=!0),o.hidden=!c})}getItems(){var n;const r=super.getItems();return this.isDataDriven?r:[((n=this.renderRoot)==null?void 0:n.querySelector(`sp-menu-item#${Zs}`))||{},...r]}syncValueLabels(){const r=[...this.getItems()];this.valueLabels=this.value?this.value.slice(0,this.truncateValuesAfter).map(n=>({label:this.getItemLabel(r.find(o=>o.value===n)),value:n})):[],this.render()}};exports.InputMultiselect.styles=[...ei.styles,ke`
2693
+ `}removeLastValue(){var r;(r=this.value)==null||r.pop(),this.handleValueChange()}resetSearch(){this.query=""}search(){var n;this.hasResults=!1;const r=(n=this.query)==null?void 0:n.toLowerCase();this.getItems().forEach(o=>{if(!r){o.hidden=!1,this.hasResults=!0;return}const c=this.isQueryMatch(o);c&&(this.hasResults=!0),o.hidden=!c})}getItems(){var n;const r=super.getItems();return this.isDataDriven?r:[((n=this.renderRoot)==null?void 0:n.querySelector(`sp-menu-item#${Ys}`))||{},...r]}syncValueLabels(){const r=[...this.getItems()];this.valueLabels=this.value?this.value.slice(0,this.truncateValuesAfter).map(n=>({label:this.getItemLabel(r.find(o=>o.value===n)),value:n})):[],this.render()}};exports.InputMultiselect.styles=[...ei.styles,ke`
2687
2694
  .wrapper {
2688
2695
  position: relative;
2689
2696
  min-height: 36px;
@@ -2738,19 +2745,19 @@ function print() { __p += __j.call(arguments, '') }
2738
2745
  padding: var(--sp-spacing-1);
2739
2746
  color: var(--input-placeholder-font-color);
2740
2747
  }
2741
- `];z0([W({type:String,reflect:!0})],exports.InputMultiselect.prototype,"size",2);z0([W({attribute:"truncate-values-after",type:Number})],exports.InputMultiselect.prototype,"truncateValuesAfter",2);z0([W({type:Array})],exports.InputMultiselect.prototype,"value",2);z0([ht()],exports.InputMultiselect.prototype,"valueLabels",2);exports.InputMultiselect=z0([De(Eg)],exports.InputMultiselect);//! moment.js
2748
+ `];z0([W({type:String,reflect:!0})],exports.InputMultiselect.prototype,"size",2);z0([W({attribute:"truncate-values-after",type:Number})],exports.InputMultiselect.prototype,"truncateValuesAfter",2);z0([W({type:Array})],exports.InputMultiselect.prototype,"value",2);z0([ht()],exports.InputMultiselect.prototype,"valueLabels",2);exports.InputMultiselect=z0([De(Dg)],exports.InputMultiselect);//! moment.js
2742
2749
  //! version : 2.29.4
2743
2750
  //! authors : Tim Wood, Iskren Chernev, Moment.js contributors
2744
2751
  //! license : MIT
2745
2752
  //! momentjs.com
2746
- var _2;function Le(){return _2.apply(null,arguments)}function Ag(r){_2=r}function Ri(r){return r instanceof Array||Object.prototype.toString.call(r)==="[object Array]"}function Ya(r){return r!=null&&Object.prototype.toString.call(r)==="[object Object]"}function Ot(r,n){return Object.prototype.hasOwnProperty.call(r,n)}function Kd(r){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(r).length===0;var n;for(n in r)if(Ot(r,n))return!1;return!0}function An(r){return r===void 0}function os(r){return typeof r=="number"||Object.prototype.toString.call(r)==="[object Number]"}function N0(r){return r instanceof Date||Object.prototype.toString.call(r)==="[object Date]"}function L2(r,n){var o=[],c,f=r.length;for(c=0;c<f;++c)o.push(n(r[c],c));return o}function Vs(r,n){for(var o in n)Ot(n,o)&&(r[o]=n[o]);return Ot(n,"toString")&&(r.toString=n.toString),Ot(n,"valueOf")&&(r.valueOf=n.valueOf),r}function _o(r,n,o,c){return q2(r,n,o,c,!0).utc()}function Dg(){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 ft(r){return r._pf==null&&(r._pf=Dg()),r._pf}var _d;Array.prototype.some?_d=Array.prototype.some:_d=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 Xd(r){if(r._isValid==null){var n=ft(r),o=_d.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 Rc(r){var n=_o(NaN);return r!=null?Vs(ft(n),r):ft(n).userInvalidated=!0,n}var Ep=Le.momentProperties=[],cd=!1;function Qd(r,n){var o,c,f,v=Ep.length;if(An(n._isAMomentObject)||(r._isAMomentObject=n._isAMomentObject),An(n._i)||(r._i=n._i),An(n._f)||(r._f=n._f),An(n._l)||(r._l=n._l),An(n._strict)||(r._strict=n._strict),An(n._tzm)||(r._tzm=n._tzm),An(n._isUTC)||(r._isUTC=n._isUTC),An(n._offset)||(r._offset=n._offset),An(n._pf)||(r._pf=ft(n)),An(n._locale)||(r._locale=n._locale),v>0)for(o=0;o<v;o++)c=Ep[o],f=n[c],An(f)||(r[c]=f);return r}function $0(r){Qd(this,r),this._d=new Date(r._d!=null?r._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),cd===!1&&(cd=!0,Le.updateOffset(this),cd=!1)}function Hi(r){return r instanceof $0||r!=null&&r._isAMomentObject!=null}function S2(r){Le.suppressDeprecationWarnings===!1&&typeof console!="undefined"&&console.warn&&console.warn("Deprecation warning: "+r)}function bi(r,n){var o=!0;return Vs(function(){if(Le.deprecationHandler!=null&&Le.deprecationHandler(null,r),o){var c=[],f,v,y,E=arguments.length;for(v=0;v<E;v++){if(f="",typeof arguments[v]=="object"){f+=`
2747
- [`+v+"] ";for(y in arguments[0])Ot(arguments[0],y)&&(f+=y+": "+arguments[0][y]+", ");f=f.slice(0,-2)}else f=arguments[v];c.push(f)}S2(r+`
2753
+ var S2;function Le(){return S2.apply(null,arguments)}function Ig(r){S2=r}function Ri(r){return r instanceof Array||Object.prototype.toString.call(r)==="[object Array]"}function Ya(r){return r!=null&&Object.prototype.toString.call(r)==="[object Object]"}function Ot(r,n){return Object.prototype.hasOwnProperty.call(r,n)}function Xd(r){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(r).length===0;var n;for(n in r)if(Ot(r,n))return!1;return!0}function An(r){return r===void 0}function os(r){return typeof r=="number"||Object.prototype.toString.call(r)==="[object Number]"}function N0(r){return r instanceof Date||Object.prototype.toString.call(r)==="[object Date]"}function k2(r,n){var o=[],c,f=r.length;for(c=0;c<f;++c)o.push(n(r[c],c));return o}function Zs(r,n){for(var o in n)Ot(n,o)&&(r[o]=n[o]);return Ot(n,"toString")&&(r.toString=n.toString),Ot(n,"valueOf")&&(r.valueOf=n.valueOf),r}function _o(r,n,o,c){return K2(r,n,o,c,!0).utc()}function zg(){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 ft(r){return r._pf==null&&(r._pf=zg()),r._pf}var Ld;Array.prototype.some?Ld=Array.prototype.some:Ld=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 Qd(r){if(r._isValid==null){var n=ft(r),o=Ld.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 Rc(r){var n=_o(NaN);return r!=null?Zs(ft(n),r):ft(n).userInvalidated=!0,n}var Dp=Le.momentProperties=[],fd=!1;function Jd(r,n){var o,c,f,v=Dp.length;if(An(n._isAMomentObject)||(r._isAMomentObject=n._isAMomentObject),An(n._i)||(r._i=n._i),An(n._f)||(r._f=n._f),An(n._l)||(r._l=n._l),An(n._strict)||(r._strict=n._strict),An(n._tzm)||(r._tzm=n._tzm),An(n._isUTC)||(r._isUTC=n._isUTC),An(n._offset)||(r._offset=n._offset),An(n._pf)||(r._pf=ft(n)),An(n._locale)||(r._locale=n._locale),v>0)for(o=0;o<v;o++)c=Dp[o],f=n[c],An(f)||(r[c]=f);return r}function $0(r){Jd(this,r),this._d=new Date(r._d!=null?r._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),fd===!1&&(fd=!0,Le.updateOffset(this),fd=!1)}function Hi(r){return r instanceof $0||r!=null&&r._isAMomentObject!=null}function M2(r){Le.suppressDeprecationWarnings===!1&&typeof console!="undefined"&&console.warn&&console.warn("Deprecation warning: "+r)}function bi(r,n){var o=!0;return Zs(function(){if(Le.deprecationHandler!=null&&Le.deprecationHandler(null,r),o){var c=[],f,v,y,E=arguments.length;for(v=0;v<E;v++){if(f="",typeof arguments[v]=="object"){f+=`
2754
+ [`+v+"] ";for(y in arguments[0])Ot(arguments[0],y)&&(f+=y+": "+arguments[0][y]+", ");f=f.slice(0,-2)}else f=arguments[v];c.push(f)}M2(r+`
2748
2755
  Arguments: `+Array.prototype.slice.call(c).join("")+`
2749
- `+new Error().stack),o=!1}return n.apply(this,arguments)},n)}var Ap={};function k2(r,n){Le.deprecationHandler!=null&&Le.deprecationHandler(r,n),Ap[r]||(S2(n),Ap[r]=!0)}Le.suppressDeprecationWarnings=!1;Le.deprecationHandler=null;function Lo(r){return typeof Function!="undefined"&&r instanceof Function||Object.prototype.toString.call(r)==="[object Function]"}function Ig(r){var n,o;for(o in r)Ot(r,o)&&(n=r[o],Lo(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 Ld(r,n){var o=Vs({},r),c;for(c in n)Ot(n,c)&&(Ya(r[c])&&Ya(n[c])?(o[c]={},Vs(o[c],r[c]),Vs(o[c],n[c])):n[c]!=null?o[c]=n[c]:delete o[c]);for(c in r)Ot(r,c)&&!Ot(n,c)&&Ya(r[c])&&(o[c]=Vs({},o[c]));return o}function Jd(r){r!=null&&this.set(r)}var Sd;Object.keys?Sd=Object.keys:Sd=function(r){var n,o=[];for(n in r)Ot(r,n)&&o.push(n);return o};var zg={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function Ng(r,n,o){var c=this._calendar[r]||this._calendar.sameElse;return Lo(c)?c.call(n,o):c}function yo(r,n,o){var c=""+Math.abs(r),f=n-c.length,v=r>=0;return(v?o?"+":"":"-")+Math.pow(10,Math.max(0,f)).toString().substr(1)+c}var eh=/(\[[^\[]*\])|(\\)?([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,cc=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,fd={},tu={};function Ye(r,n,o,c){var f=c;typeof c=="string"&&(f=function(){return this[c]()}),r&&(tu[r]=f),n&&(tu[n[0]]=function(){return yo(f.apply(this,arguments),n[1],n[2])}),o&&(tu[o]=function(){return this.localeData().ordinal(f.apply(this,arguments),r)})}function $g(r){return r.match(/\[[\s\S]/)?r.replace(/^\[|\]$/g,""):r.replace(/\\/g,"")}function Rg(r){var n=r.match(eh),o,c;for(o=0,c=n.length;o<c;o++)tu[n[o]]?n[o]=tu[n[o]]:n[o]=$g(n[o]);return function(f){var v="",y;for(y=0;y<c;y++)v+=Lo(n[y])?n[y].call(f,r):n[y];return v}}function pc(r,n){return r.isValid()?(n=M2(n,r.localeData()),fd[n]=fd[n]||Rg(n),fd[n](r)):r.localeData().invalidDate()}function M2(r,n){var o=5;function c(f){return n.longDateFormat(f)||f}for(cc.lastIndex=0;o>=0&&cc.test(r);)r=r.replace(cc,c),cc.lastIndex=0,o-=1;return r}var Hg={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 Fg(r){var n=this._longDateFormat[r],o=this._longDateFormat[r.toUpperCase()];return n||!o?n:(this._longDateFormat[r]=o.match(eh).map(function(c){return c==="MMMM"||c==="MM"||c==="DD"||c==="dddd"?c.slice(1):c}).join(""),this._longDateFormat[r])}var Wg="Invalid date";function Bg(){return this._invalidDate}var Ug="%d",Yg=/\d{1,2}/;function Zg(r){return this._ordinal.replace("%d",r)}var Vg={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 Gg(r,n,o,c){var f=this._relativeTime[o];return Lo(f)?f(r,n,o,c):f.replace(/%d/i,r)}function qg(r,n){var o=this._relativeTime[r>0?"future":"past"];return Lo(o)?o(n):o.replace(/%s/i,n)}var y0={};function un(r,n){var o=r.toLowerCase();y0[o]=y0[o+"s"]=y0[n]=r}function Ci(r){return typeof r=="string"?y0[r]||y0[r.toLowerCase()]:void 0}function th(r){var n={},o,c;for(c in r)Ot(r,c)&&(o=Ci(c),o&&(n[o]=r[c]));return n}var O2={};function cn(r,n){O2[r]=n}function jg(r){var n=[],o;for(o in r)Ot(r,o)&&n.push({unit:o,priority:O2[o]});return n.sort(function(c,f){return c.priority-f.priority}),n}function Hc(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 gt(r){var n=+r,o=0;return n!==0&&isFinite(n)&&(o=vi(n)),o}function hu(r,n){return function(o){return o!=null?(T2(this,r,o),Le.updateOffset(this,n),this):_c(this,r)}}function _c(r,n){return r.isValid()?r._d["get"+(r._isUTC?"UTC":"")+n]():NaN}function T2(r,n,o){r.isValid()&&!isNaN(o)&&(n==="FullYear"&&Hc(r.year())&&r.month()===1&&r.date()===29?(o=gt(o),r._d["set"+(r._isUTC?"UTC":"")+n](o,r.month(),Zc(o,r.month()))):r._d["set"+(r._isUTC?"UTC":"")+n](o))}function Kg(r){return r=Ci(r),Lo(this[r])?this[r]():this}function Xg(r,n){if(typeof r=="object"){r=th(r);var o=jg(r),c,f=o.length;for(c=0;c<f;c++)this[o[c].unit](r[o[c].unit])}else if(r=Ci(r),Lo(this[r]))return this[r](n);return this}var P2=/\d/,ti=/\d\d/,E2=/\d{3}/,rh=/\d{4}/,Fc=/[+-]?\d{6}/,Xt=/\d\d?/,A2=/\d\d\d\d?/,D2=/\d\d\d\d\d\d?/,Wc=/\d{1,3}/,nh=/\d{1,4}/,Bc=/[+-]?\d{1,6}/,pu=/\d+/,Uc=/[+-]?\d+/,Qg=/Z|[+-]\d\d:?\d\d/gi,Yc=/Z|[+-]\d\d(?::?\d\d)?/gi,Jg=/[+-]?\d+(\.\d{1,3})?/,R0=/[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,Lc;Lc={};function Oe(r,n,o){Lc[r]=Lo(n)?n:function(c,f){return c&&o?o:n}}function e8(r,n){return Ot(Lc,r)?Lc[r](n._strict,n._locale):new RegExp(t8(r))}function t8(r){return Xn(r.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(n,o,c,f,v){return o||c||f||v}))}function Xn(r){return r.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var kd={};function Bt(r,n){var o,c=n,f;for(typeof r=="string"&&(r=[r]),os(n)&&(c=function(v,y){y[n]=gt(v)}),f=r.length,o=0;o<f;o++)kd[r[o]]=c}function H0(r,n){Bt(r,function(o,c,f,v){f._w=f._w||{},n(o,f._w,f,v)})}function r8(r,n,o){n!=null&&Ot(kd,r)&&kd[r](n,o._a,o,r)}var an=0,rs=1,vo=2,Nr=3,zi=4,ns=5,Ba=6,n8=7,i8=8;function o8(r,n){return(r%n+n)%n}var mr;Array.prototype.indexOf?mr=Array.prototype.indexOf:mr=function(r){var n;for(n=0;n<this.length;++n)if(this[n]===r)return n;return-1};function Zc(r,n){if(isNaN(r)||isNaN(n))return NaN;var o=o8(n,12);return r+=(n-o)/12,o===1?Hc(r)?29:28:31-o%7%2}Ye("M",["MM",2],"Mo",function(){return this.month()+1});Ye("MMM",0,0,function(r){return this.localeData().monthsShort(this,r)});Ye("MMMM",0,0,function(r){return this.localeData().months(this,r)});un("month","M");cn("month",8);Oe("M",Xt);Oe("MM",Xt,ti);Oe("MMM",function(r,n){return n.monthsShortRegex(r)});Oe("MMMM",function(r,n){return n.monthsRegex(r)});Bt(["M","MM"],function(r,n){n[rs]=gt(r)-1});Bt(["MMM","MMMM"],function(r,n,o,c){var f=o._locale.monthsParse(r,c,o._strict);f!=null?n[rs]=f:ft(o).invalidMonth=r});var s8="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),I2="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),z2=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,a8=R0,l8=R0;function u8(r,n){return r?Ri(this._months)?this._months[r.month()]:this._months[(this._months.isFormat||z2).test(n)?"format":"standalone"][r.month()]:Ri(this._months)?this._months:this._months.standalone}function c8(r,n){return r?Ri(this._monthsShort)?this._monthsShort[r.month()]:this._monthsShort[z2.test(n)?"format":"standalone"][r.month()]:Ri(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function f8(r,n,o){var c,f,v,y=r.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],c=0;c<12;++c)v=_o([2e3,c]),this._shortMonthsParse[c]=this.monthsShort(v,"").toLocaleLowerCase(),this._longMonthsParse[c]=this.months(v,"").toLocaleLowerCase();return o?n==="MMM"?(f=mr.call(this._shortMonthsParse,y),f!==-1?f:null):(f=mr.call(this._longMonthsParse,y),f!==-1?f:null):n==="MMM"?(f=mr.call(this._shortMonthsParse,y),f!==-1?f:(f=mr.call(this._longMonthsParse,y),f!==-1?f:null)):(f=mr.call(this._longMonthsParse,y),f!==-1?f:(f=mr.call(this._shortMonthsParse,y),f!==-1?f:null))}function d8(r,n,o){var c,f,v;if(this._monthsParseExact)return f8.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]&&(v="^"+this.months(f,"")+"|^"+this.monthsShort(f,""),this._monthsParse[c]=new RegExp(v.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 N2(r,n){var o;if(!r.isValid())return r;if(typeof n=="string"){if(/^\d+$/.test(n))n=gt(n);else if(n=r.localeData().monthsParse(n),!os(n))return r}return o=Math.min(r.date(),Zc(r.year(),n)),r._d["set"+(r._isUTC?"UTC":"")+"Month"](n,o),r}function $2(r){return r!=null?(N2(this,r),Le.updateOffset(this,!0),this):_c(this,"Month")}function h8(){return Zc(this.year(),this.month())}function p8(r){return this._monthsParseExact?(Ot(this,"_monthsRegex")||R2.call(this),r?this._monthsShortStrictRegex:this._monthsShortRegex):(Ot(this,"_monthsShortRegex")||(this._monthsShortRegex=a8),this._monthsShortStrictRegex&&r?this._monthsShortStrictRegex:this._monthsShortRegex)}function v8(r){return this._monthsParseExact?(Ot(this,"_monthsRegex")||R2.call(this),r?this._monthsStrictRegex:this._monthsRegex):(Ot(this,"_monthsRegex")||(this._monthsRegex=l8),this._monthsStrictRegex&&r?this._monthsStrictRegex:this._monthsRegex)}function R2(){function r(y,E){return E.length-y.length}var n=[],o=[],c=[],f,v;for(f=0;f<12;f++)v=_o([2e3,f]),n.push(this.monthsShort(v,"")),o.push(this.months(v,"")),c.push(this.months(v,"")),c.push(this.monthsShort(v,""));for(n.sort(r),o.sort(r),c.sort(r),f=0;f<12;f++)n[f]=Xn(n[f]),o[f]=Xn(o[f]);for(f=0;f<24;f++)c[f]=Xn(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")}Ye("Y",0,0,function(){var r=this.year();return r<=9999?yo(r,4):"+"+r});Ye(0,["YY",2],0,function(){return this.year()%100});Ye(0,["YYYY",4],0,"year");Ye(0,["YYYYY",5],0,"year");Ye(0,["YYYYYY",6,!0],0,"year");un("year","y");cn("year",1);Oe("Y",Uc);Oe("YY",Xt,ti);Oe("YYYY",nh,rh);Oe("YYYYY",Bc,Fc);Oe("YYYYYY",Bc,Fc);Bt(["YYYYY","YYYYYY"],an);Bt("YYYY",function(r,n){n[an]=r.length===2?Le.parseTwoDigitYear(r):gt(r)});Bt("YY",function(r,n){n[an]=Le.parseTwoDigitYear(r)});Bt("Y",function(r,n){n[an]=parseInt(r,10)});function b0(r){return Hc(r)?366:365}Le.parseTwoDigitYear=function(r){return gt(r)+(gt(r)>68?1900:2e3)};var H2=hu("FullYear",!0);function g8(){return Hc(this.year())}function m8(r,n,o,c,f,v,y){var E;return r<100&&r>=0?(E=new Date(r+400,n,o,c,f,v,y),isFinite(E.getFullYear())&&E.setFullYear(r)):E=new Date(r,n,o,c,f,v,y),E}function k0(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 Sc(r,n,o){var c=7+n-o,f=(7+k0(r,0,c).getUTCDay()-n)%7;return-f+c-1}function F2(r,n,o,c,f){var v=(7+o-c)%7,y=Sc(r,c,f),E=1+7*(n-1)+v+y,k,O;return E<=0?(k=r-1,O=b0(k)+E):E>b0(r)?(k=r+1,O=E-b0(r)):(k=r,O=E),{year:k,dayOfYear:O}}function M0(r,n,o){var c=Sc(r.year(),n,o),f=Math.floor((r.dayOfYear()-c-1)/7)+1,v,y;return f<1?(y=r.year()-1,v=f+is(y,n,o)):f>is(r.year(),n,o)?(v=f-is(r.year(),n,o),y=r.year()+1):(y=r.year(),v=f),{week:v,year:y}}function is(r,n,o){var c=Sc(r,n,o),f=Sc(r+1,n,o);return(b0(r)-c+f)/7}Ye("w",["ww",2],"wo","week");Ye("W",["WW",2],"Wo","isoWeek");un("week","w");un("isoWeek","W");cn("week",5);cn("isoWeek",5);Oe("w",Xt);Oe("ww",Xt,ti);Oe("W",Xt);Oe("WW",Xt,ti);H0(["w","ww","W","WW"],function(r,n,o,c){n[c.substr(0,1)]=gt(r)});function y8(r){return M0(r,this._week.dow,this._week.doy).week}var b8={dow:0,doy:6};function C8(){return this._week.dow}function w8(){return this._week.doy}function x8(r){var n=this.localeData().week(this);return r==null?n:this.add((r-n)*7,"d")}function _8(r){var n=M0(this,1,4).week;return r==null?n:this.add((r-n)*7,"d")}Ye("d",0,"do","day");Ye("dd",0,0,function(r){return this.localeData().weekdaysMin(this,r)});Ye("ddd",0,0,function(r){return this.localeData().weekdaysShort(this,r)});Ye("dddd",0,0,function(r){return this.localeData().weekdays(this,r)});Ye("e",0,0,"weekday");Ye("E",0,0,"isoWeekday");un("day","d");un("weekday","e");un("isoWeekday","E");cn("day",11);cn("weekday",11);cn("isoWeekday",11);Oe("d",Xt);Oe("e",Xt);Oe("E",Xt);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)});H0(["dd","ddd","dddd"],function(r,n,o,c){var f=o._locale.weekdaysParse(r,c,o._strict);f!=null?n.d=f:ft(o).invalidWeekday=r});H0(["d","e","E"],function(r,n,o,c){n[c]=gt(r)});function L8(r,n){return typeof r!="string"?r:isNaN(r)?(r=n.weekdaysParse(r),typeof r=="number"?r:null):parseInt(r,10)}function S8(r,n){return typeof r=="string"?n.weekdaysParse(r)%7||7:isNaN(r)?null:r}function ih(r,n){return r.slice(n,7).concat(r.slice(0,n))}var k8="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),W2="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),M8="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),O8=R0,T8=R0,P8=R0;function E8(r,n){var o=Ri(this._weekdays)?this._weekdays:this._weekdays[r&&r!==!0&&this._weekdays.isFormat.test(n)?"format":"standalone"];return r===!0?ih(o,this._week.dow):r?o[r.day()]:o}function A8(r){return r===!0?ih(this._weekdaysShort,this._week.dow):r?this._weekdaysShort[r.day()]:this._weekdaysShort}function D8(r){return r===!0?ih(this._weekdaysMin,this._week.dow):r?this._weekdaysMin[r.day()]:this._weekdaysMin}function I8(r,n,o){var c,f,v,y=r.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],c=0;c<7;++c)v=_o([2e3,1]).day(c),this._minWeekdaysParse[c]=this.weekdaysMin(v,"").toLocaleLowerCase(),this._shortWeekdaysParse[c]=this.weekdaysShort(v,"").toLocaleLowerCase(),this._weekdaysParse[c]=this.weekdays(v,"").toLocaleLowerCase();return o?n==="dddd"?(f=mr.call(this._weekdaysParse,y),f!==-1?f:null):n==="ddd"?(f=mr.call(this._shortWeekdaysParse,y),f!==-1?f:null):(f=mr.call(this._minWeekdaysParse,y),f!==-1?f:null):n==="dddd"?(f=mr.call(this._weekdaysParse,y),f!==-1||(f=mr.call(this._shortWeekdaysParse,y),f!==-1)?f:(f=mr.call(this._minWeekdaysParse,y),f!==-1?f:null)):n==="ddd"?(f=mr.call(this._shortWeekdaysParse,y),f!==-1||(f=mr.call(this._weekdaysParse,y),f!==-1)?f:(f=mr.call(this._minWeekdaysParse,y),f!==-1?f:null)):(f=mr.call(this._minWeekdaysParse,y),f!==-1||(f=mr.call(this._weekdaysParse,y),f!==-1)?f:(f=mr.call(this._shortWeekdaysParse,y),f!==-1?f:null))}function z8(r,n,o){var c,f,v;if(this._weekdaysParseExact)return I8.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]||(v="^"+this.weekdays(f,"")+"|^"+this.weekdaysShort(f,"")+"|^"+this.weekdaysMin(f,""),this._weekdaysParse[c]=new RegExp(v.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 N8(r){if(!this.isValid())return r!=null?this:NaN;var n=this._isUTC?this._d.getUTCDay():this._d.getDay();return r!=null?(r=L8(r,this.localeData()),this.add(r-n,"d")):n}function $8(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 R8(r){if(!this.isValid())return r!=null?this:NaN;if(r!=null){var n=S8(r,this.localeData());return this.day(this.day()%7?n:n-7)}else return this.day()||7}function H8(r){return this._weekdaysParseExact?(Ot(this,"_weekdaysRegex")||oh.call(this),r?this._weekdaysStrictRegex:this._weekdaysRegex):(Ot(this,"_weekdaysRegex")||(this._weekdaysRegex=O8),this._weekdaysStrictRegex&&r?this._weekdaysStrictRegex:this._weekdaysRegex)}function F8(r){return this._weekdaysParseExact?(Ot(this,"_weekdaysRegex")||oh.call(this),r?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(Ot(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=T8),this._weekdaysShortStrictRegex&&r?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function W8(r){return this._weekdaysParseExact?(Ot(this,"_weekdaysRegex")||oh.call(this),r?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(Ot(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=P8),this._weekdaysMinStrictRegex&&r?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function oh(){function r(I,U){return U.length-I.length}var n=[],o=[],c=[],f=[],v,y,E,k,O;for(v=0;v<7;v++)y=_o([2e3,1]).day(v),E=Xn(this.weekdaysMin(y,"")),k=Xn(this.weekdaysShort(y,"")),O=Xn(this.weekdays(y,"")),n.push(E),o.push(k),c.push(O),f.push(E),f.push(k),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 sh(){return this.hours()%12||12}function B8(){return this.hours()||24}Ye("H",["HH",2],0,"hour");Ye("h",["hh",2],0,sh);Ye("k",["kk",2],0,B8);Ye("hmm",0,0,function(){return""+sh.apply(this)+yo(this.minutes(),2)});Ye("hmmss",0,0,function(){return""+sh.apply(this)+yo(this.minutes(),2)+yo(this.seconds(),2)});Ye("Hmm",0,0,function(){return""+this.hours()+yo(this.minutes(),2)});Ye("Hmmss",0,0,function(){return""+this.hours()+yo(this.minutes(),2)+yo(this.seconds(),2)});function B2(r,n){Ye(r,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),n)})}B2("a",!0);B2("A",!1);un("hour","h");cn("hour",13);function U2(r,n){return n._meridiemParse}Oe("a",U2);Oe("A",U2);Oe("H",Xt);Oe("h",Xt);Oe("k",Xt);Oe("HH",Xt,ti);Oe("hh",Xt,ti);Oe("kk",Xt,ti);Oe("hmm",A2);Oe("hmmss",D2);Oe("Hmm",A2);Oe("Hmmss",D2);Bt(["H","HH"],Nr);Bt(["k","kk"],function(r,n,o){var c=gt(r);n[Nr]=c===24?0:c});Bt(["a","A"],function(r,n,o){o._isPm=o._locale.isPM(r),o._meridiem=r});Bt(["h","hh"],function(r,n,o){n[Nr]=gt(r),ft(o).bigHour=!0});Bt("hmm",function(r,n,o){var c=r.length-2;n[Nr]=gt(r.substr(0,c)),n[zi]=gt(r.substr(c)),ft(o).bigHour=!0});Bt("hmmss",function(r,n,o){var c=r.length-4,f=r.length-2;n[Nr]=gt(r.substr(0,c)),n[zi]=gt(r.substr(c,2)),n[ns]=gt(r.substr(f)),ft(o).bigHour=!0});Bt("Hmm",function(r,n,o){var c=r.length-2;n[Nr]=gt(r.substr(0,c)),n[zi]=gt(r.substr(c))});Bt("Hmmss",function(r,n,o){var c=r.length-4,f=r.length-2;n[Nr]=gt(r.substr(0,c)),n[zi]=gt(r.substr(c,2)),n[ns]=gt(r.substr(f))});function U8(r){return(r+"").toLowerCase().charAt(0)==="p"}var Y8=/[ap]\.?m?\.?/i,Z8=hu("Hours",!0);function V8(r,n,o){return r>11?o?"pm":"PM":o?"am":"AM"}var Y2={calendar:zg,longDateFormat:Hg,invalidDate:Wg,ordinal:Ug,dayOfMonthOrdinalParse:Yg,relativeTime:Vg,months:s8,monthsShort:I2,week:b8,weekdays:k8,weekdaysMin:M8,weekdaysShort:W2,meridiemParse:Y8},tr={},h0={},O0;function G8(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 Dp(r){return r&&r.toLowerCase().replace("_","-")}function q8(r){for(var n=0,o,c,f,v;n<r.length;){for(v=Dp(r[n]).split("-"),o=v.length,c=Dp(r[n+1]),c=c?c.split("-"):null;o>0;){if(f=Vc(v.slice(0,o).join("-")),f)return f;if(c&&c.length>=o&&G8(v,c)>=o-1)break;o--}n++}return O0}function j8(r){return r.match("^[^/\\\\]*$")!=null}function Vc(r){var n=null,o;if(tr[r]===void 0&&typeof module!="undefined"&&module&&module.exports&&j8(r))try{n=O0._abbr,o=require,o("./locale/"+r),qs(n)}catch{tr[r]=null}return tr[r]}function qs(r,n){var o;return r&&(An(n)?o=as(r):o=ah(r,n),o?O0=o:typeof console!="undefined"&&console.warn&&console.warn("Locale "+r+" not found. Did you forget to load it?")),O0._abbr}function ah(r,n){if(n!==null){var o,c=Y2;if(n.abbr=r,tr[r]!=null)k2("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=tr[r]._config;else if(n.parentLocale!=null)if(tr[n.parentLocale]!=null)c=tr[n.parentLocale]._config;else if(o=Vc(n.parentLocale),o!=null)c=o._config;else return h0[n.parentLocale]||(h0[n.parentLocale]=[]),h0[n.parentLocale].push({name:r,config:n}),null;return tr[r]=new Jd(Ld(c,n)),h0[r]&&h0[r].forEach(function(f){ah(f.name,f.config)}),qs(r),tr[r]}else return delete tr[r],null}function K8(r,n){if(n!=null){var o,c,f=Y2;tr[r]!=null&&tr[r].parentLocale!=null?tr[r].set(Ld(tr[r]._config,n)):(c=Vc(r),c!=null&&(f=c._config),n=Ld(f,n),c==null&&(n.abbr=r),o=new Jd(n),o.parentLocale=tr[r],tr[r]=o),qs(r)}else tr[r]!=null&&(tr[r].parentLocale!=null?(tr[r]=tr[r].parentLocale,r===qs()&&qs(r)):tr[r]!=null&&delete tr[r]);return tr[r]}function as(r){var n;if(r&&r._locale&&r._locale._abbr&&(r=r._locale._abbr),!r)return O0;if(!Ri(r)){if(n=Vc(r),n)return n;r=[r]}return q8(r)}function X8(){return Sd(tr)}function lh(r){var n,o=r._a;return o&&ft(r).overflow===-2&&(n=o[rs]<0||o[rs]>11?rs:o[vo]<1||o[vo]>Zc(o[an],o[rs])?vo:o[Nr]<0||o[Nr]>24||o[Nr]===24&&(o[zi]!==0||o[ns]!==0||o[Ba]!==0)?Nr:o[zi]<0||o[zi]>59?zi:o[ns]<0||o[ns]>59?ns:o[Ba]<0||o[Ba]>999?Ba:-1,ft(r)._overflowDayOfYear&&(n<an||n>vo)&&(n=vo),ft(r)._overflowWeeks&&n===-1&&(n=n8),ft(r)._overflowWeekday&&n===-1&&(n=i8),ft(r).overflow=n),r}var Q8=/^\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)?)?$/,J8=/^\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)?)?$/,em=/Z|[+-]\d\d(?::?\d\d)?/,fc=[["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]],dd=[["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/]],tm=/^\/?Date\((-?\d+)/i,rm=/^(?:(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}))$/,nm={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 Z2(r){var n,o,c=r._i,f=Q8.exec(c)||J8.exec(c),v,y,E,k,O=fc.length,I=dd.length;if(f){for(ft(r).iso=!0,n=0,o=O;n<o;n++)if(fc[n][1].exec(f[1])){y=fc[n][0],v=fc[n][2]!==!1;break}if(y==null){r._isValid=!1;return}if(f[3]){for(n=0,o=I;n<o;n++)if(dd[n][1].exec(f[3])){E=(f[2]||" ")+dd[n][0];break}if(E==null){r._isValid=!1;return}}if(!v&&E!=null){r._isValid=!1;return}if(f[4])if(em.exec(f[4]))k="Z";else{r._isValid=!1;return}r._f=y+(E||"")+(k||""),ch(r)}else r._isValid=!1}function im(r,n,o,c,f,v){var y=[om(r),I2.indexOf(n),parseInt(o,10),parseInt(c,10),parseInt(f,10)];return v&&y.push(parseInt(v,10)),y}function om(r){var n=parseInt(r,10);return n<=49?2e3+n:n<=999?1900+n:n}function sm(r){return r.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function am(r,n,o){if(r){var c=W2.indexOf(r),f=new Date(n[0],n[1],n[2]).getDay();if(c!==f)return ft(o).weekdayMismatch=!0,o._isValid=!1,!1}return!0}function lm(r,n,o){if(r)return nm[r];if(n)return 0;var c=parseInt(o,10),f=c%100,v=(c-f)/100;return v*60+f}function V2(r){var n=rm.exec(sm(r._i)),o;if(n){if(o=im(n[4],n[3],n[2],n[5],n[6],n[7]),!am(n[1],o,r))return;r._a=o,r._tzm=lm(n[8],n[9],n[10]),r._d=k0.apply(null,r._a),r._d.setUTCMinutes(r._d.getUTCMinutes()-r._tzm),ft(r).rfc2822=!0}else r._isValid=!1}function um(r){var n=tm.exec(r._i);if(n!==null){r._d=new Date(+n[1]);return}if(Z2(r),r._isValid===!1)delete r._isValid;else return;if(V2(r),r._isValid===!1)delete r._isValid;else return;r._strict?r._isValid=!1:Le.createFromInputFallback(r)}Le.createFromInputFallback=bi("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 Ql(r,n,o){return r!=null?r:n!=null?n:o}function cm(r){var n=new Date(Le.now());return r._useUTC?[n.getUTCFullYear(),n.getUTCMonth(),n.getUTCDate()]:[n.getFullYear(),n.getMonth(),n.getDate()]}function uh(r){var n,o,c=[],f,v,y;if(!r._d){for(f=cm(r),r._w&&r._a[vo]==null&&r._a[rs]==null&&fm(r),r._dayOfYear!=null&&(y=Ql(r._a[an],f[an]),(r._dayOfYear>b0(y)||r._dayOfYear===0)&&(ft(r)._overflowDayOfYear=!0),o=k0(y,0,r._dayOfYear),r._a[rs]=o.getUTCMonth(),r._a[vo]=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[zi]===0&&r._a[ns]===0&&r._a[Ba]===0&&(r._nextDay=!0,r._a[Nr]=0),r._d=(r._useUTC?k0:m8).apply(null,c),v=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!==v&&(ft(r).weekdayMismatch=!0)}}function fm(r){var n,o,c,f,v,y,E,k,O;n=r._w,n.GG!=null||n.W!=null||n.E!=null?(v=1,y=4,o=Ql(n.GG,r._a[an],M0(Kt(),1,4).year),c=Ql(n.W,1),f=Ql(n.E,1),(f<1||f>7)&&(k=!0)):(v=r._locale._week.dow,y=r._locale._week.doy,O=M0(Kt(),v,y),o=Ql(n.gg,r._a[an],O.year),c=Ql(n.w,O.week),n.d!=null?(f=n.d,(f<0||f>6)&&(k=!0)):n.e!=null?(f=n.e+v,(n.e<0||n.e>6)&&(k=!0)):f=v),c<1||c>is(o,v,y)?ft(r)._overflowWeeks=!0:k!=null?ft(r)._overflowWeekday=!0:(E=F2(o,c,f,v,y),r._a[an]=E.year,r._dayOfYear=E.dayOfYear)}Le.ISO_8601=function(){};Le.RFC_2822=function(){};function ch(r){if(r._f===Le.ISO_8601){Z2(r);return}if(r._f===Le.RFC_2822){V2(r);return}r._a=[],ft(r).empty=!0;var n=""+r._i,o,c,f,v,y,E=n.length,k=0,O,I;for(f=M2(r._f,r._locale).match(eh)||[],I=f.length,o=0;o<I;o++)v=f[o],c=(n.match(e8(v,r))||[])[0],c&&(y=n.substr(0,n.indexOf(c)),y.length>0&&ft(r).unusedInput.push(y),n=n.slice(n.indexOf(c)+c.length),k+=c.length),tu[v]?(c?ft(r).empty=!1:ft(r).unusedTokens.push(v),r8(v,c,r)):r._strict&&!c&&ft(r).unusedTokens.push(v);ft(r).charsLeftOver=E-k,n.length>0&&ft(r).unusedInput.push(n),r._a[Nr]<=12&&ft(r).bigHour===!0&&r._a[Nr]>0&&(ft(r).bigHour=void 0),ft(r).parsedDateParts=r._a.slice(0),ft(r).meridiem=r._meridiem,r._a[Nr]=dm(r._locale,r._a[Nr],r._meridiem),O=ft(r).era,O!==null&&(r._a[an]=r._locale.erasConvertYear(O,r._a[an])),uh(r),lh(r)}function dm(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 hm(r){var n,o,c,f,v,y,E=!1,k=r._f.length;if(k===0){ft(r).invalidFormat=!0,r._d=new Date(NaN);return}for(f=0;f<k;f++)v=0,y=!1,n=Qd({},r),r._useUTC!=null&&(n._useUTC=r._useUTC),n._f=r._f[f],ch(n),Xd(n)&&(y=!0),v+=ft(n).charsLeftOver,v+=ft(n).unusedTokens.length*10,ft(n).score=v,E?v<c&&(c=v,o=n):(c==null||v<c||y)&&(c=v,o=n,y&&(E=!0));Vs(r,o||n)}function pm(r){if(!r._d){var n=th(r._i),o=n.day===void 0?n.date:n.day;r._a=L2([n.year,n.month,o,n.hour,n.minute,n.second,n.millisecond],function(c){return c&&parseInt(c,10)}),uh(r)}}function vm(r){var n=new $0(lh(G2(r)));return n._nextDay&&(n.add(1,"d"),n._nextDay=void 0),n}function G2(r){var n=r._i,o=r._f;return r._locale=r._locale||as(r._l),n===null||o===void 0&&n===""?Rc({nullInput:!0}):(typeof n=="string"&&(r._i=n=r._locale.preparse(n)),Hi(n)?new $0(lh(n)):(N0(n)?r._d=n:Ri(o)?hm(r):o?ch(r):gm(r),Xd(r)||(r._d=null),r))}function gm(r){var n=r._i;An(n)?r._d=new Date(Le.now()):N0(n)?r._d=new Date(n.valueOf()):typeof n=="string"?um(r):Ri(n)?(r._a=L2(n.slice(0),function(o){return parseInt(o,10)}),uh(r)):Ya(n)?pm(r):os(n)?r._d=new Date(n):Le.createFromInputFallback(r)}function q2(r,n,o,c,f){var v={};return(n===!0||n===!1)&&(c=n,n=void 0),(o===!0||o===!1)&&(c=o,o=void 0),(Ya(r)&&Kd(r)||Ri(r)&&r.length===0)&&(r=void 0),v._isAMomentObject=!0,v._useUTC=v._isUTC=f,v._l=o,v._i=r,v._f=n,v._strict=c,vm(v)}function Kt(r,n,o,c){return q2(r,n,o,c,!1)}var mm=bi("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var r=Kt.apply(null,arguments);return this.isValid()&&r.isValid()?r<this?this:r:Rc()}),ym=bi("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var r=Kt.apply(null,arguments);return this.isValid()&&r.isValid()?r>this?this:r:Rc()});function j2(r,n){var o,c;if(n.length===1&&Ri(n[0])&&(n=n[0]),!n.length)return Kt();for(o=n[0],c=1;c<n.length;++c)(!n[c].isValid()||n[c][r](o))&&(o=n[c]);return o}function bm(){var r=[].slice.call(arguments,0);return j2("isBefore",r)}function Cm(){var r=[].slice.call(arguments,0);return j2("isAfter",r)}var wm=function(){return Date.now?Date.now():+new Date},p0=["year","quarter","month","week","day","hour","minute","second","millisecond"];function xm(r){var n,o=!1,c,f=p0.length;for(n in r)if(Ot(r,n)&&!(mr.call(p0,n)!==-1&&(r[n]==null||!isNaN(r[n]))))return!1;for(c=0;c<f;++c)if(r[p0[c]]){if(o)return!1;parseFloat(r[p0[c]])!==gt(r[p0[c]])&&(o=!0)}return!0}function _m(){return this._isValid}function Lm(){return Fi(NaN)}function Gc(r){var n=th(r),o=n.year||0,c=n.quarter||0,f=n.month||0,v=n.week||n.isoWeek||0,y=n.day||0,E=n.hour||0,k=n.minute||0,O=n.second||0,I=n.millisecond||0;this._isValid=xm(n),this._milliseconds=+I+O*1e3+k*6e4+E*1e3*60*60,this._days=+y+v*7,this._months=+f+c*3+o*12,this._data={},this._locale=as(),this._bubble()}function vc(r){return r instanceof Gc}function Md(r){return r<0?Math.round(-1*r)*-1:Math.round(r)}function Sm(r,n,o){var c=Math.min(r.length,n.length),f=Math.abs(r.length-n.length),v=0,y;for(y=0;y<c;y++)(o&&r[y]!==n[y]||!o&&gt(r[y])!==gt(n[y]))&&v++;return v+f}function K2(r,n){Ye(r,0,0,function(){var o=this.utcOffset(),c="+";return o<0&&(o=-o,c="-"),c+yo(~~(o/60),2)+n+yo(~~o%60,2)})}K2("Z",":");K2("ZZ","");Oe("Z",Yc);Oe("ZZ",Yc);Bt(["Z","ZZ"],function(r,n,o){o._useUTC=!0,o._tzm=fh(Yc,r)});var km=/([\+\-]|\d\d)/gi;function fh(r,n){var o=(n||"").match(r),c,f,v;return o===null?null:(c=o[o.length-1]||[],f=(c+"").match(km)||["-",0,0],v=+(f[1]*60)+gt(f[2]),v===0?0:f[0]==="+"?v:-v)}function dh(r,n){var o,c;return n._isUTC?(o=n.clone(),c=(Hi(r)||N0(r)?r.valueOf():Kt(r).valueOf())-o.valueOf(),o._d.setTime(o._d.valueOf()+c),Le.updateOffset(o,!1),o):Kt(r).local()}function Od(r){return-Math.round(r._d.getTimezoneOffset())}Le.updateOffset=function(){};function Mm(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=fh(Yc,r),r===null)return this}else Math.abs(r)<16&&!o&&(r=r*60);return!this._isUTC&&n&&(f=Od(this)),this._offset=r,this._isUTC=!0,f!=null&&this.add(f,"m"),c!==r&&(!n||this._changeInProgress?J2(this,Fi(r-c,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,Le.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?c:Od(this)}function Om(r,n){return r!=null?(typeof r!="string"&&(r=-r),this.utcOffset(r,n),this):-this.utcOffset()}function Tm(r){return this.utcOffset(0,r)}function Pm(r){return this._isUTC&&(this.utcOffset(0,r),this._isUTC=!1,r&&this.subtract(Od(this),"m")),this}function Em(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var r=fh(Qg,this._i);r!=null?this.utcOffset(r):this.utcOffset(0,!0)}return this}function Am(r){return this.isValid()?(r=r?Kt(r).utcOffset():0,(this.utcOffset()-r)%60===0):!1}function Dm(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Im(){if(!An(this._isDSTShifted))return this._isDSTShifted;var r={},n;return Qd(r,this),r=G2(r),r._a?(n=r._isUTC?_o(r._a):Kt(r._a),this._isDSTShifted=this.isValid()&&Sm(r._a,n.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function zm(){return this.isValid()?!this._isUTC:!1}function Nm(){return this.isValid()?this._isUTC:!1}function X2(){return this.isValid()?this._isUTC&&this._offset===0:!1}var $m=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Rm=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Fi(r,n){var o=r,c=null,f,v,y;return vc(r)?o={ms:r._milliseconds,d:r._days,M:r._months}:os(r)||!isNaN(+r)?(o={},n?o[n]=+r:o.milliseconds=+r):(c=$m.exec(r))?(f=c[1]==="-"?-1:1,o={y:0,d:gt(c[vo])*f,h:gt(c[Nr])*f,m:gt(c[zi])*f,s:gt(c[ns])*f,ms:gt(Md(c[Ba]*1e3))*f}):(c=Rm.exec(r))?(f=c[1]==="-"?-1:1,o={y:Fa(c[2],f),M:Fa(c[3],f),w:Fa(c[4],f),d:Fa(c[5],f),h:Fa(c[6],f),m:Fa(c[7],f),s:Fa(c[8],f)}):o==null?o={}:typeof o=="object"&&("from"in o||"to"in o)&&(y=Hm(Kt(o.from),Kt(o.to)),o={},o.ms=y.milliseconds,o.M=y.months),v=new Gc(o),vc(r)&&Ot(r,"_locale")&&(v._locale=r._locale),vc(r)&&Ot(r,"_isValid")&&(v._isValid=r._isValid),v}Fi.fn=Gc.prototype;Fi.invalid=Lm;function Fa(r,n){var o=r&&parseFloat(r.replace(",","."));return(isNaN(o)?0:o)*n}function Ip(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 Hm(r,n){var o;return r.isValid()&&n.isValid()?(n=dh(n,r),r.isBefore(n)?o=Ip(r,n):(o=Ip(n,r),o.milliseconds=-o.milliseconds,o.months=-o.months),o):{milliseconds:0,months:0}}function Q2(r,n){return function(o,c){var f,v;return c!==null&&!isNaN(+c)&&(k2(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."),v=o,o=c,c=v),f=Fi(o,c),J2(this,f,r),this}}function J2(r,n,o,c){var f=n._milliseconds,v=Md(n._days),y=Md(n._months);!r.isValid()||(c=c==null?!0:c,y&&N2(r,_c(r,"Month")+y*o),v&&T2(r,"Date",_c(r,"Date")+v*o),f&&r._d.setTime(r._d.valueOf()+f*o),c&&Le.updateOffset(r,v||y))}var Fm=Q2(1,"add"),Wm=Q2(-1,"subtract");function e4(r){return typeof r=="string"||r instanceof String}function Bm(r){return Hi(r)||N0(r)||e4(r)||os(r)||Ym(r)||Um(r)||r===null||r===void 0}function Um(r){var n=Ya(r)&&!Kd(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,v,y=c.length;for(f=0;f<y;f+=1)v=c[f],o=o||Ot(r,v);return n&&o}function Ym(r){var n=Ri(r),o=!1;return n&&(o=r.filter(function(c){return!os(c)&&e4(r)}).length===0),n&&o}function Zm(r){var n=Ya(r)&&!Kd(r),o=!1,c=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],f,v;for(f=0;f<c.length;f+=1)v=c[f],o=o||Ot(r,v);return n&&o}function Vm(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 Gm(r,n){arguments.length===1&&(arguments[0]?Bm(arguments[0])?(r=arguments[0],n=void 0):Zm(arguments[0])&&(n=arguments[0],r=void 0):(r=void 0,n=void 0));var o=r||Kt(),c=dh(o,this).startOf("day"),f=Le.calendarFormat(this,c)||"sameElse",v=n&&(Lo(n[f])?n[f].call(this,o):n[f]);return this.format(v||this.localeData().calendar(f,this,Kt(o)))}function qm(){return new $0(this)}function jm(r,n){var o=Hi(r)?r:Kt(r);return this.isValid()&&o.isValid()?(n=Ci(n)||"millisecond",n==="millisecond"?this.valueOf()>o.valueOf():o.valueOf()<this.clone().startOf(n).valueOf()):!1}function Km(r,n){var o=Hi(r)?r:Kt(r);return this.isValid()&&o.isValid()?(n=Ci(n)||"millisecond",n==="millisecond"?this.valueOf()<o.valueOf():this.clone().endOf(n).valueOf()<o.valueOf()):!1}function Xm(r,n,o,c){var f=Hi(r)?r:Kt(r),v=Hi(n)?n:Kt(n);return this.isValid()&&f.isValid()&&v.isValid()?(c=c||"()",(c[0]==="("?this.isAfter(f,o):!this.isBefore(f,o))&&(c[1]===")"?this.isBefore(v,o):!this.isAfter(v,o))):!1}function Qm(r,n){var o=Hi(r)?r:Kt(r),c;return this.isValid()&&o.isValid()?(n=Ci(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 Jm(r,n){return this.isSame(r,n)||this.isAfter(r,n)}function ey(r,n){return this.isSame(r,n)||this.isBefore(r,n)}function ty(r,n,o){var c,f,v;if(!this.isValid())return NaN;if(c=dh(r,this),!c.isValid())return NaN;switch(f=(c.utcOffset()-this.utcOffset())*6e4,n=Ci(n),n){case"year":v=gc(this,c)/12;break;case"month":v=gc(this,c);break;case"quarter":v=gc(this,c)/3;break;case"second":v=(this-c)/1e3;break;case"minute":v=(this-c)/6e4;break;case"hour":v=(this-c)/36e5;break;case"day":v=(this-c-f)/864e5;break;case"week":v=(this-c-f)/6048e5;break;default:v=this-c}return o?v:vi(v)}function gc(r,n){if(r.date()<n.date())return-gc(n,r);var o=(n.year()-r.year())*12+(n.month()-r.month()),c=r.clone().add(o,"months"),f,v;return n-c<0?(f=r.clone().add(o-1,"months"),v=(n-c)/(c-f)):(f=r.clone().add(o+1,"months"),v=(n-c)/(f-c)),-(o+v)||0}Le.defaultFormat="YYYY-MM-DDTHH:mm:ssZ";Le.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function ry(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function ny(r){if(!this.isValid())return null;var n=r!==!0,o=n?this.clone().utc():this;return o.year()<0||o.year()>9999?pc(o,n?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):Lo(Date.prototype.toISOString)?n?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",pc(o,"Z")):pc(o,n?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function iy(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var r="moment",n="",o,c,f,v;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",v=n+'[")]',this.format(o+c+f+v)}function oy(r){r||(r=this.isUtc()?Le.defaultFormatUtc:Le.defaultFormat);var n=pc(this,r);return this.localeData().postformat(n)}function sy(r,n){return this.isValid()&&(Hi(r)&&r.isValid()||Kt(r).isValid())?Fi({to:this,from:r}).locale(this.locale()).humanize(!n):this.localeData().invalidDate()}function ay(r){return this.from(Kt(),r)}function ly(r,n){return this.isValid()&&(Hi(r)&&r.isValid()||Kt(r).isValid())?Fi({from:this,to:r}).locale(this.locale()).humanize(!n):this.localeData().invalidDate()}function uy(r){return this.to(Kt(),r)}function t4(r){var n;return r===void 0?this._locale._abbr:(n=as(r),n!=null&&(this._locale=n),this)}var r4=bi("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 n4(){return this._locale}var kc=1e3,ru=60*kc,Mc=60*ru,i4=(365*400+97)*24*Mc;function nu(r,n){return(r%n+n)%n}function o4(r,n,o){return r<100&&r>=0?new Date(r+400,n,o)-i4:new Date(r,n,o).valueOf()}function s4(r,n,o){return r<100&&r>=0?Date.UTC(r+400,n,o)-i4:Date.UTC(r,n,o)}function cy(r){var n,o;if(r=Ci(r),r===void 0||r==="millisecond"||!this.isValid())return this;switch(o=this._isUTC?s4:o4,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-=nu(n+(this._isUTC?0:this.utcOffset()*ru),Mc);break;case"minute":n=this._d.valueOf(),n-=nu(n,ru);break;case"second":n=this._d.valueOf(),n-=nu(n,kc);break}return this._d.setTime(n),Le.updateOffset(this,!0),this}function fy(r){var n,o;if(r=Ci(r),r===void 0||r==="millisecond"||!this.isValid())return this;switch(o=this._isUTC?s4:o4,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+=Mc-nu(n+(this._isUTC?0:this.utcOffset()*ru),Mc)-1;break;case"minute":n=this._d.valueOf(),n+=ru-nu(n,ru)-1;break;case"second":n=this._d.valueOf(),n+=kc-nu(n,kc)-1;break}return this._d.setTime(n),Le.updateOffset(this,!0),this}function dy(){return this._d.valueOf()-(this._offset||0)*6e4}function hy(){return Math.floor(this.valueOf()/1e3)}function py(){return new Date(this.valueOf())}function vy(){var r=this;return[r.year(),r.month(),r.date(),r.hour(),r.minute(),r.second(),r.millisecond()]}function gy(){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 my(){return this.isValid()?this.toISOString():null}function yy(){return Xd(this)}function by(){return Vs({},ft(this))}function Cy(){return ft(this).overflow}function wy(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}Ye("N",0,0,"eraAbbr");Ye("NN",0,0,"eraAbbr");Ye("NNN",0,0,"eraAbbr");Ye("NNNN",0,0,"eraName");Ye("NNNNN",0,0,"eraNarrow");Ye("y",["y",1],"yo","eraYear");Ye("y",["yy",2],0,"eraYear");Ye("y",["yyy",3],0,"eraYear");Ye("y",["yyyy",4],0,"eraYear");Oe("N",hh);Oe("NN",hh);Oe("NNN",hh);Oe("NNNN",Ay);Oe("NNNNN",Dy);Bt(["N","NN","NNN","NNNN","NNNNN"],function(r,n,o,c){var f=o._locale.erasParse(r,c,o._strict);f?ft(o).era=f:ft(o).invalidEra=r});Oe("y",pu);Oe("yy",pu);Oe("yyy",pu);Oe("yyyy",pu);Oe("yo",Iy);Bt(["y","yy","yyy","yyyy"],an);Bt(["yo"],function(r,n,o,c){var f;o._locale._eraYearOrdinalRegex&&(f=r.match(o._locale._eraYearOrdinalRegex)),o._locale.eraYearOrdinalParse?n[an]=o._locale.eraYearOrdinalParse(r,f):n[an]=parseInt(r,10)});function xy(r,n){var o,c,f,v=this._eras||as("en")._eras;for(o=0,c=v.length;o<c;++o){switch(typeof v[o].since){case"string":f=Le(v[o].since).startOf("day"),v[o].since=f.valueOf();break}switch(typeof v[o].until){case"undefined":v[o].until=1/0;break;case"string":f=Le(v[o].until).startOf("day").valueOf(),v[o].until=f.valueOf();break}}return v}function _y(r,n,o){var c,f,v=this.eras(),y,E,k;for(r=r.toUpperCase(),c=0,f=v.length;c<f;++c)if(y=v[c].name.toUpperCase(),E=v[c].abbr.toUpperCase(),k=v[c].narrow.toUpperCase(),o)switch(n){case"N":case"NN":case"NNN":if(E===r)return v[c];break;case"NNNN":if(y===r)return v[c];break;case"NNNNN":if(k===r)return v[c];break}else if([y,E,k].indexOf(r)>=0)return v[c]}function Ly(r,n){var o=r.since<=r.until?1:-1;return n===void 0?Le(r.since).year():Le(r.since).year()+(n-r.offset)*o}function Sy(){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 ky(){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 My(){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 Oy(){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()-Le(f[r].since).year())*o+f[r].offset;return this.year()}function Ty(r){return Ot(this,"_erasNameRegex")||ph.call(this),r?this._erasNameRegex:this._erasRegex}function Py(r){return Ot(this,"_erasAbbrRegex")||ph.call(this),r?this._erasAbbrRegex:this._erasRegex}function Ey(r){return Ot(this,"_erasNarrowRegex")||ph.call(this),r?this._erasNarrowRegex:this._erasRegex}function hh(r,n){return n.erasAbbrRegex(r)}function Ay(r,n){return n.erasNameRegex(r)}function Dy(r,n){return n.erasNarrowRegex(r)}function Iy(r,n){return n._eraYearOrdinalRegex||pu}function ph(){var r=[],n=[],o=[],c=[],f,v,y=this.eras();for(f=0,v=y.length;f<v;++f)n.push(Xn(y[f].name)),r.push(Xn(y[f].abbr)),o.push(Xn(y[f].narrow)),c.push(Xn(y[f].name)),c.push(Xn(y[f].abbr)),c.push(Xn(y[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")}Ye(0,["gg",2],0,function(){return this.weekYear()%100});Ye(0,["GG",2],0,function(){return this.isoWeekYear()%100});function qc(r,n){Ye(0,[r,r.length],0,n)}qc("gggg","weekYear");qc("ggggg","weekYear");qc("GGGG","isoWeekYear");qc("GGGGG","isoWeekYear");un("weekYear","gg");un("isoWeekYear","GG");cn("weekYear",1);cn("isoWeekYear",1);Oe("G",Uc);Oe("g",Uc);Oe("GG",Xt,ti);Oe("gg",Xt,ti);Oe("GGGG",nh,rh);Oe("gggg",nh,rh);Oe("GGGGG",Bc,Fc);Oe("ggggg",Bc,Fc);H0(["gggg","ggggg","GGGG","GGGGG"],function(r,n,o,c){n[c.substr(0,2)]=gt(r)});H0(["gg","GG"],function(r,n,o,c){n[c]=Le.parseTwoDigitYear(r)});function zy(r){return a4.call(this,r,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function Ny(r){return a4.call(this,r,this.isoWeek(),this.isoWeekday(),1,4)}function $y(){return is(this.year(),1,4)}function Ry(){return is(this.isoWeekYear(),1,4)}function Hy(){var r=this.localeData()._week;return is(this.year(),r.dow,r.doy)}function Fy(){var r=this.localeData()._week;return is(this.weekYear(),r.dow,r.doy)}function a4(r,n,o,c,f){var v;return r==null?M0(this,c,f).year:(v=is(r,c,f),n>v&&(n=v),Wy.call(this,r,n,o,c,f))}function Wy(r,n,o,c,f){var v=F2(r,n,o,c,f),y=k0(v.year,0,v.dayOfYear);return this.year(y.getUTCFullYear()),this.month(y.getUTCMonth()),this.date(y.getUTCDate()),this}Ye("Q",0,"Qo","quarter");un("quarter","Q");cn("quarter",7);Oe("Q",P2);Bt("Q",function(r,n){n[rs]=(gt(r)-1)*3});function By(r){return r==null?Math.ceil((this.month()+1)/3):this.month((r-1)*3+this.month()%3)}Ye("D",["DD",2],"Do","date");un("date","D");cn("date",9);Oe("D",Xt);Oe("DD",Xt,ti);Oe("Do",function(r,n){return r?n._dayOfMonthOrdinalParse||n._ordinalParse:n._dayOfMonthOrdinalParseLenient});Bt(["D","DD"],vo);Bt("Do",function(r,n){n[vo]=gt(r.match(Xt)[0])});var l4=hu("Date",!0);Ye("DDD",["DDDD",3],"DDDo","dayOfYear");un("dayOfYear","DDD");cn("dayOfYear",4);Oe("DDD",Wc);Oe("DDDD",E2);Bt(["DDD","DDDD"],function(r,n,o){o._dayOfYear=gt(r)});function Uy(r){var n=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return r==null?n:this.add(r-n,"d")}Ye("m",["mm",2],0,"minute");un("minute","m");cn("minute",14);Oe("m",Xt);Oe("mm",Xt,ti);Bt(["m","mm"],zi);var Yy=hu("Minutes",!1);Ye("s",["ss",2],0,"second");un("second","s");cn("second",15);Oe("s",Xt);Oe("ss",Xt,ti);Bt(["s","ss"],ns);var Zy=hu("Seconds",!1);Ye("S",0,0,function(){return~~(this.millisecond()/100)});Ye(0,["SS",2],0,function(){return~~(this.millisecond()/10)});Ye(0,["SSS",3],0,"millisecond");Ye(0,["SSSS",4],0,function(){return this.millisecond()*10});Ye(0,["SSSSS",5],0,function(){return this.millisecond()*100});Ye(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3});Ye(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4});Ye(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5});Ye(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6});un("millisecond","ms");cn("millisecond",16);Oe("S",Wc,P2);Oe("SS",Wc,ti);Oe("SSS",Wc,E2);var Gs,u4;for(Gs="SSSS";Gs.length<=9;Gs+="S")Oe(Gs,pu);function Vy(r,n){n[Ba]=gt(("0."+r)*1e3)}for(Gs="S";Gs.length<=9;Gs+="S")Bt(Gs,Vy);u4=hu("Milliseconds",!1);Ye("z",0,0,"zoneAbbr");Ye("zz",0,0,"zoneName");function Gy(){return this._isUTC?"UTC":""}function qy(){return this._isUTC?"Coordinated Universal Time":""}var le=$0.prototype;le.add=Fm;le.calendar=Gm;le.clone=qm;le.diff=ty;le.endOf=fy;le.format=oy;le.from=sy;le.fromNow=ay;le.to=ly;le.toNow=uy;le.get=Kg;le.invalidAt=Cy;le.isAfter=jm;le.isBefore=Km;le.isBetween=Xm;le.isSame=Qm;le.isSameOrAfter=Jm;le.isSameOrBefore=ey;le.isValid=yy;le.lang=r4;le.locale=t4;le.localeData=n4;le.max=ym;le.min=mm;le.parsingFlags=by;le.set=Xg;le.startOf=cy;le.subtract=Wm;le.toArray=vy;le.toObject=gy;le.toDate=py;le.toISOString=ny;le.inspect=iy;typeof Symbol!="undefined"&&Symbol.for!=null&&(le[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"});le.toJSON=my;le.toString=ry;le.unix=hy;le.valueOf=dy;le.creationData=wy;le.eraName=Sy;le.eraNarrow=ky;le.eraAbbr=My;le.eraYear=Oy;le.year=H2;le.isLeapYear=g8;le.weekYear=zy;le.isoWeekYear=Ny;le.quarter=le.quarters=By;le.month=$2;le.daysInMonth=h8;le.week=le.weeks=x8;le.isoWeek=le.isoWeeks=_8;le.weeksInYear=Hy;le.weeksInWeekYear=Fy;le.isoWeeksInYear=$y;le.isoWeeksInISOWeekYear=Ry;le.date=l4;le.day=le.days=N8;le.weekday=$8;le.isoWeekday=R8;le.dayOfYear=Uy;le.hour=le.hours=Z8;le.minute=le.minutes=Yy;le.second=le.seconds=Zy;le.millisecond=le.milliseconds=u4;le.utcOffset=Mm;le.utc=Tm;le.local=Pm;le.parseZone=Em;le.hasAlignedHourOffset=Am;le.isDST=Dm;le.isLocal=zm;le.isUtcOffset=Nm;le.isUtc=X2;le.isUTC=X2;le.zoneAbbr=Gy;le.zoneName=qy;le.dates=bi("dates accessor is deprecated. Use date instead.",l4);le.months=bi("months accessor is deprecated. Use month instead",$2);le.years=bi("years accessor is deprecated. Use year instead",H2);le.zone=bi("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",Om);le.isDSTShifted=bi("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",Im);function jy(r){return Kt(r*1e3)}function Ky(){return Kt.apply(null,arguments).parseZone()}function c4(r){return r}var Tt=Jd.prototype;Tt.calendar=Ng;Tt.longDateFormat=Fg;Tt.invalidDate=Bg;Tt.ordinal=Zg;Tt.preparse=c4;Tt.postformat=c4;Tt.relativeTime=Gg;Tt.pastFuture=qg;Tt.set=Ig;Tt.eras=xy;Tt.erasParse=_y;Tt.erasConvertYear=Ly;Tt.erasAbbrRegex=Py;Tt.erasNameRegex=Ty;Tt.erasNarrowRegex=Ey;Tt.months=u8;Tt.monthsShort=c8;Tt.monthsParse=d8;Tt.monthsRegex=v8;Tt.monthsShortRegex=p8;Tt.week=y8;Tt.firstDayOfYear=w8;Tt.firstDayOfWeek=C8;Tt.weekdays=E8;Tt.weekdaysMin=D8;Tt.weekdaysShort=A8;Tt.weekdaysParse=z8;Tt.weekdaysRegex=H8;Tt.weekdaysShortRegex=F8;Tt.weekdaysMinRegex=W8;Tt.isPM=U8;Tt.meridiem=V8;function Oc(r,n,o,c){var f=as(),v=_o().set(c,n);return f[o](v,r)}function f4(r,n,o){if(os(r)&&(n=r,r=void 0),r=r||"",n!=null)return Oc(r,n,o,"month");var c,f=[];for(c=0;c<12;c++)f[c]=Oc(r,c,o,"month");return f}function vh(r,n,o,c){typeof r=="boolean"?(os(n)&&(o=n,n=void 0),n=n||""):(n=r,o=n,r=!1,os(n)&&(o=n,n=void 0),n=n||"");var f=as(),v=r?f._week.dow:0,y,E=[];if(o!=null)return Oc(n,(o+v)%7,c,"day");for(y=0;y<7;y++)E[y]=Oc(n,(y+v)%7,c,"day");return E}function Xy(r,n){return f4(r,n,"months")}function Qy(r,n){return f4(r,n,"monthsShort")}function Jy(r,n,o){return vh(r,n,o,"weekdays")}function eb(r,n,o){return vh(r,n,o,"weekdaysShort")}function tb(r,n,o){return vh(r,n,o,"weekdaysMin")}qs("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=gt(r%100/10)===1?"th":n===1?"st":n===2?"nd":n===3?"rd":"th";return r+o}});Le.lang=bi("moment.lang is deprecated. Use moment.locale instead.",qs);Le.langData=bi("moment.langData is deprecated. Use moment.localeData instead.",as);var Jo=Math.abs;function rb(){var r=this._data;return this._milliseconds=Jo(this._milliseconds),this._days=Jo(this._days),this._months=Jo(this._months),r.milliseconds=Jo(r.milliseconds),r.seconds=Jo(r.seconds),r.minutes=Jo(r.minutes),r.hours=Jo(r.hours),r.months=Jo(r.months),r.years=Jo(r.years),this}function d4(r,n,o,c){var f=Fi(n,o);return r._milliseconds+=c*f._milliseconds,r._days+=c*f._days,r._months+=c*f._months,r._bubble()}function nb(r,n){return d4(this,r,n,1)}function ib(r,n){return d4(this,r,n,-1)}function zp(r){return r<0?Math.floor(r):Math.ceil(r)}function ob(){var r=this._milliseconds,n=this._days,o=this._months,c=this._data,f,v,y,E,k;return r>=0&&n>=0&&o>=0||r<=0&&n<=0&&o<=0||(r+=zp(Td(o)+n)*864e5,n=0,o=0),c.milliseconds=r%1e3,f=vi(r/1e3),c.seconds=f%60,v=vi(f/60),c.minutes=v%60,y=vi(v/60),c.hours=y%24,n+=vi(y/24),k=vi(h4(n)),o+=k,n-=zp(Td(k)),E=vi(o/12),o%=12,c.days=n,c.months=o,c.years=E,this}function h4(r){return r*4800/146097}function Td(r){return r*146097/4800}function sb(r){if(!this.isValid())return NaN;var n,o,c=this._milliseconds;if(r=Ci(r),r==="month"||r==="quarter"||r==="year")switch(n=this._days+c/864e5,o=this._months+h4(n),r){case"month":return o;case"quarter":return o/3;case"year":return o/12}else switch(n=this._days+Math.round(Td(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 ab(){return this.isValid()?this._milliseconds+this._days*864e5+this._months%12*2592e6+gt(this._months/12)*31536e6:NaN}function ls(r){return function(){return this.as(r)}}var lb=ls("ms"),ub=ls("s"),cb=ls("m"),fb=ls("h"),db=ls("d"),hb=ls("w"),pb=ls("M"),vb=ls("Q"),gb=ls("y");function mb(){return Fi(this)}function yb(r){return r=Ci(r),this.isValid()?this[r+"s"]():NaN}function Ka(r){return function(){return this.isValid()?this._data[r]:NaN}}var bb=Ka("milliseconds"),Cb=Ka("seconds"),wb=Ka("minutes"),xb=Ka("hours"),_b=Ka("days"),Lb=Ka("months"),Sb=Ka("years");function kb(){return vi(this.days()/7)}var es=Math.round,Jl={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function Mb(r,n,o,c,f){return f.relativeTime(n||1,!!o,r,c)}function Ob(r,n,o,c){var f=Fi(r).abs(),v=es(f.as("s")),y=es(f.as("m")),E=es(f.as("h")),k=es(f.as("d")),O=es(f.as("M")),I=es(f.as("w")),U=es(f.as("y")),q=v<=o.ss&&["s",v]||v<o.s&&["ss",v]||y<=1&&["m"]||y<o.m&&["mm",y]||E<=1&&["h"]||E<o.h&&["hh",E]||k<=1&&["d"]||k<o.d&&["dd",k];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,Mb.apply(null,q)}function Tb(r){return r===void 0?es:typeof r=="function"?(es=r,!0):!1}function Pb(r,n){return Jl[r]===void 0?!1:n===void 0?Jl[r]:(Jl[r]=n,r==="s"&&(Jl.ss=n-1),!0)}function Eb(r,n){if(!this.isValid())return this.localeData().invalidDate();var o=!1,c=Jl,f,v;return typeof r=="object"&&(n=r,r=!1),typeof r=="boolean"&&(o=r),typeof n=="object"&&(c=Object.assign({},Jl,n),n.s!=null&&n.ss==null&&(c.ss=n.s-1)),f=this.localeData(),v=Ob(this,!o,c,f),o&&(v=f.pastFuture(+this,v)),f.postformat(v)}var hd=Math.abs;function jl(r){return(r>0)-(r<0)||+r}function jc(){if(!this.isValid())return this.localeData().invalidDate();var r=hd(this._milliseconds)/1e3,n=hd(this._days),o=hd(this._months),c,f,v,y,E=this.asSeconds(),k,O,I,U;return E?(c=vi(r/60),f=vi(c/60),r%=60,c%=60,v=vi(o/12),o%=12,y=r?r.toFixed(3).replace(/\.?0+$/,""):"",k=E<0?"-":"",O=jl(this._months)!==jl(E)?"-":"",I=jl(this._days)!==jl(E)?"-":"",U=jl(this._milliseconds)!==jl(E)?"-":"",k+"P"+(v?O+v+"Y":"")+(o?O+o+"M":"")+(n?I+n+"D":"")+(f||c||r?"T":"")+(f?U+f+"H":"")+(c?U+c+"M":"")+(r?U+y+"S":"")):"P0D"}var Lt=Gc.prototype;Lt.isValid=_m;Lt.abs=rb;Lt.add=nb;Lt.subtract=ib;Lt.as=sb;Lt.asMilliseconds=lb;Lt.asSeconds=ub;Lt.asMinutes=cb;Lt.asHours=fb;Lt.asDays=db;Lt.asWeeks=hb;Lt.asMonths=pb;Lt.asQuarters=vb;Lt.asYears=gb;Lt.valueOf=ab;Lt._bubble=ob;Lt.clone=mb;Lt.get=yb;Lt.milliseconds=bb;Lt.seconds=Cb;Lt.minutes=wb;Lt.hours=xb;Lt.days=_b;Lt.weeks=kb;Lt.months=Lb;Lt.years=Sb;Lt.humanize=Eb;Lt.toISOString=jc;Lt.toString=jc;Lt.toJSON=jc;Lt.locale=t4;Lt.localeData=n4;Lt.toIsoString=bi("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",jc);Lt.lang=r4;Ye("X",0,0,"unix");Ye("x",0,0,"valueOf");Oe("x",Uc);Oe("X",Jg);Bt("X",function(r,n,o){o._d=new Date(parseFloat(r)*1e3)});Bt("x",function(r,n,o){o._d=new Date(gt(r))});//! moment.js
2750
- Le.version="2.29.4";Ag(Kt);Le.fn=le;Le.min=bm;Le.max=Cm;Le.now=wm;Le.utc=_o;Le.unix=jy;Le.months=Xy;Le.isDate=N0;Le.locale=qs;Le.invalid=Rc;Le.duration=Fi;Le.isMoment=Hi;Le.weekdays=Jy;Le.parseZone=Ky;Le.localeData=as;Le.isDuration=vc;Le.monthsShort=Qy;Le.weekdaysMin=tb;Le.defineLocale=ah;Le.updateLocale=K8;Le.locales=X8;Le.weekdaysShort=eb;Le.normalizeUnits=Ci;Le.relativeTimeRounding=Tb;Le.relativeTimeThreshold=Pb;Le.calendarFormat=Vm;Le.prototype=le;Le.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 Ab=Object.defineProperty,Db=Object.getOwnPropertyDescriptor,Js=(r,n,o,c)=>{for(var f=c>1?void 0:c?Db(n,o):n,v=r.length-1,y;v>=0;v--)(y=r[v])&&(f=(c?y(n,o,f):y(f))||f);return c&&f&&Ab(n,o,f),f};const p4=Sr("input-time"),v4="h:mma",g4=/^([1-9]|1[0-9]|2[0-3]):([0-5])([0-9])?(am?|pm?)?$/,m4=/^(1[3-9]|2[0-3]).*/,y4=/^(\d\d?)(am?|pm?)/,b4=(r,n)=>({label:`${r}${n?` (${n})`:""}`,value:r}),Ib=(r,n)=>{const c=Math.ceil(1440/r),f=Le().startOf("day");return Array(c).fill(null).map((v,y)=>{const k=(y>0?f.add(r,"minutes"):f).format(v4);return b4(k,n)})},zb=(r,n)=>{const o=r.trim(),c=r.match(g4);if(!o||!c)return[];const[,f,v,y]=c,E=parseInt(f,10),k=E>12?`${E-12}`:`${E}`,O=`${v}${y||0}`,I=`${k}:${O}`;return["am","pm"].map(U=>b4(`${I}${U}`,n))},Nb=(r,{value:n})=>{const o=r.match(m4);if(!o||!n)return!1;const[,c]=o,f=`${parseInt(c,10)-12}`,v=r.substring(c.length).replace(":",""),y=`${f}:${v}`;return n.startsWith(y)&&n.endsWith("pm")},$b=(r,{value:n})=>{const o=r.match(y4);if(!o)return!1;const[,c,f]=o;return!!(n!=null&&n.replace(":00","").startsWith(`${c}${f}`))},Rb=(...r)=>$b(...r)||Nb(...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=Ib(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?Rb(this.query,r):!1}handleNoResults(){if(this.hasQueryResults)return null;if(!this.isFreeform)return this.renderNoResultsMessage();this.freeformOptions=zb(this.query,this.suffix),this.hasResults=!!this.freeformOptions.length}renderFreeformOptions(){return this.isFreeform?this.hasQueryResults?this.renderOptionsData(this.freeformOptions):this.renderNoResultsMessage():null}renderDropdownContent(){return J`
2756
+ `+new Error().stack),o=!1}return n.apply(this,arguments)},n)}var Ip={};function O2(r,n){Le.deprecationHandler!=null&&Le.deprecationHandler(r,n),Ip[r]||(M2(n),Ip[r]=!0)}Le.suppressDeprecationWarnings=!1;Le.deprecationHandler=null;function Lo(r){return typeof Function!="undefined"&&r instanceof Function||Object.prototype.toString.call(r)==="[object Function]"}function Ng(r){var n,o;for(o in r)Ot(r,o)&&(n=r[o],Lo(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 Sd(r,n){var o=Zs({},r),c;for(c in n)Ot(n,c)&&(Ya(r[c])&&Ya(n[c])?(o[c]={},Zs(o[c],r[c]),Zs(o[c],n[c])):n[c]!=null?o[c]=n[c]:delete o[c]);for(c in r)Ot(r,c)&&!Ot(n,c)&&Ya(r[c])&&(o[c]=Zs({},o[c]));return o}function eh(r){r!=null&&this.set(r)}var kd;Object.keys?kd=Object.keys:kd=function(r){var n,o=[];for(n in r)Ot(r,n)&&o.push(n);return o};var $g={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function Rg(r,n,o){var c=this._calendar[r]||this._calendar.sameElse;return Lo(c)?c.call(n,o):c}function yo(r,n,o){var c=""+Math.abs(r),f=n-c.length,v=r>=0;return(v?o?"+":"":"-")+Math.pow(10,Math.max(0,f)).toString().substr(1)+c}var th=/(\[[^\[]*\])|(\\)?([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,cc=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,dd={},tu={};function Ye(r,n,o,c){var f=c;typeof c=="string"&&(f=function(){return this[c]()}),r&&(tu[r]=f),n&&(tu[n[0]]=function(){return yo(f.apply(this,arguments),n[1],n[2])}),o&&(tu[o]=function(){return this.localeData().ordinal(f.apply(this,arguments),r)})}function Hg(r){return r.match(/\[[\s\S]/)?r.replace(/^\[|\]$/g,""):r.replace(/\\/g,"")}function Fg(r){var n=r.match(th),o,c;for(o=0,c=n.length;o<c;o++)tu[n[o]]?n[o]=tu[n[o]]:n[o]=Hg(n[o]);return function(f){var v="",y;for(y=0;y<c;y++)v+=Lo(n[y])?n[y].call(f,r):n[y];return v}}function pc(r,n){return r.isValid()?(n=T2(n,r.localeData()),dd[n]=dd[n]||Fg(n),dd[n](r)):r.localeData().invalidDate()}function T2(r,n){var o=5;function c(f){return n.longDateFormat(f)||f}for(cc.lastIndex=0;o>=0&&cc.test(r);)r=r.replace(cc,c),cc.lastIndex=0,o-=1;return r}var Wg={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 Bg(r){var n=this._longDateFormat[r],o=this._longDateFormat[r.toUpperCase()];return n||!o?n:(this._longDateFormat[r]=o.match(th).map(function(c){return c==="MMMM"||c==="MM"||c==="DD"||c==="dddd"?c.slice(1):c}).join(""),this._longDateFormat[r])}var Ug="Invalid date";function Yg(){return this._invalidDate}var Zg="%d",Vg=/\d{1,2}/;function Gg(r){return this._ordinal.replace("%d",r)}var qg={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 jg(r,n,o,c){var f=this._relativeTime[o];return Lo(f)?f(r,n,o,c):f.replace(/%d/i,r)}function Kg(r,n){var o=this._relativeTime[r>0?"future":"past"];return Lo(o)?o(n):o.replace(/%s/i,n)}var y0={};function un(r,n){var o=r.toLowerCase();y0[o]=y0[o+"s"]=y0[n]=r}function Ci(r){return typeof r=="string"?y0[r]||y0[r.toLowerCase()]:void 0}function rh(r){var n={},o,c;for(c in r)Ot(r,c)&&(o=Ci(c),o&&(n[o]=r[c]));return n}var P2={};function cn(r,n){P2[r]=n}function Xg(r){var n=[],o;for(o in r)Ot(r,o)&&n.push({unit:o,priority:P2[o]});return n.sort(function(c,f){return c.priority-f.priority}),n}function Hc(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 gt(r){var n=+r,o=0;return n!==0&&isFinite(n)&&(o=vi(n)),o}function hu(r,n){return function(o){return o!=null?(E2(this,r,o),Le.updateOffset(this,n),this):_c(this,r)}}function _c(r,n){return r.isValid()?r._d["get"+(r._isUTC?"UTC":"")+n]():NaN}function E2(r,n,o){r.isValid()&&!isNaN(o)&&(n==="FullYear"&&Hc(r.year())&&r.month()===1&&r.date()===29?(o=gt(o),r._d["set"+(r._isUTC?"UTC":"")+n](o,r.month(),Zc(o,r.month()))):r._d["set"+(r._isUTC?"UTC":"")+n](o))}function Qg(r){return r=Ci(r),Lo(this[r])?this[r]():this}function Jg(r,n){if(typeof r=="object"){r=rh(r);var o=Xg(r),c,f=o.length;for(c=0;c<f;c++)this[o[c].unit](r[o[c].unit])}else if(r=Ci(r),Lo(this[r]))return this[r](n);return this}var A2=/\d/,ti=/\d\d/,D2=/\d{3}/,nh=/\d{4}/,Fc=/[+-]?\d{6}/,Xt=/\d\d?/,I2=/\d\d\d\d?/,z2=/\d\d\d\d\d\d?/,Wc=/\d{1,3}/,ih=/\d{1,4}/,Bc=/[+-]?\d{1,6}/,pu=/\d+/,Uc=/[+-]?\d+/,e8=/Z|[+-]\d\d:?\d\d/gi,Yc=/Z|[+-]\d\d(?::?\d\d)?/gi,t8=/[+-]?\d+(\.\d{1,3})?/,R0=/[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,Lc;Lc={};function Oe(r,n,o){Lc[r]=Lo(n)?n:function(c,f){return c&&o?o:n}}function r8(r,n){return Ot(Lc,r)?Lc[r](n._strict,n._locale):new RegExp(n8(r))}function n8(r){return Xn(r.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(n,o,c,f,v){return o||c||f||v}))}function Xn(r){return r.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var Md={};function Bt(r,n){var o,c=n,f;for(typeof r=="string"&&(r=[r]),os(n)&&(c=function(v,y){y[n]=gt(v)}),f=r.length,o=0;o<f;o++)Md[r[o]]=c}function H0(r,n){Bt(r,function(o,c,f,v){f._w=f._w||{},n(o,f._w,f,v)})}function i8(r,n,o){n!=null&&Ot(Md,r)&&Md[r](n,o._a,o,r)}var an=0,rs=1,vo=2,Nr=3,zi=4,ns=5,Ba=6,o8=7,s8=8;function a8(r,n){return(r%n+n)%n}var mr;Array.prototype.indexOf?mr=Array.prototype.indexOf:mr=function(r){var n;for(n=0;n<this.length;++n)if(this[n]===r)return n;return-1};function Zc(r,n){if(isNaN(r)||isNaN(n))return NaN;var o=a8(n,12);return r+=(n-o)/12,o===1?Hc(r)?29:28:31-o%7%2}Ye("M",["MM",2],"Mo",function(){return this.month()+1});Ye("MMM",0,0,function(r){return this.localeData().monthsShort(this,r)});Ye("MMMM",0,0,function(r){return this.localeData().months(this,r)});un("month","M");cn("month",8);Oe("M",Xt);Oe("MM",Xt,ti);Oe("MMM",function(r,n){return n.monthsShortRegex(r)});Oe("MMMM",function(r,n){return n.monthsRegex(r)});Bt(["M","MM"],function(r,n){n[rs]=gt(r)-1});Bt(["MMM","MMMM"],function(r,n,o,c){var f=o._locale.monthsParse(r,c,o._strict);f!=null?n[rs]=f:ft(o).invalidMonth=r});var l8="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),N2="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),$2=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,u8=R0,c8=R0;function f8(r,n){return r?Ri(this._months)?this._months[r.month()]:this._months[(this._months.isFormat||$2).test(n)?"format":"standalone"][r.month()]:Ri(this._months)?this._months:this._months.standalone}function d8(r,n){return r?Ri(this._monthsShort)?this._monthsShort[r.month()]:this._monthsShort[$2.test(n)?"format":"standalone"][r.month()]:Ri(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function h8(r,n,o){var c,f,v,y=r.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],c=0;c<12;++c)v=_o([2e3,c]),this._shortMonthsParse[c]=this.monthsShort(v,"").toLocaleLowerCase(),this._longMonthsParse[c]=this.months(v,"").toLocaleLowerCase();return o?n==="MMM"?(f=mr.call(this._shortMonthsParse,y),f!==-1?f:null):(f=mr.call(this._longMonthsParse,y),f!==-1?f:null):n==="MMM"?(f=mr.call(this._shortMonthsParse,y),f!==-1?f:(f=mr.call(this._longMonthsParse,y),f!==-1?f:null)):(f=mr.call(this._longMonthsParse,y),f!==-1?f:(f=mr.call(this._shortMonthsParse,y),f!==-1?f:null))}function p8(r,n,o){var c,f,v;if(this._monthsParseExact)return h8.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]&&(v="^"+this.months(f,"")+"|^"+this.monthsShort(f,""),this._monthsParse[c]=new RegExp(v.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 R2(r,n){var o;if(!r.isValid())return r;if(typeof n=="string"){if(/^\d+$/.test(n))n=gt(n);else if(n=r.localeData().monthsParse(n),!os(n))return r}return o=Math.min(r.date(),Zc(r.year(),n)),r._d["set"+(r._isUTC?"UTC":"")+"Month"](n,o),r}function H2(r){return r!=null?(R2(this,r),Le.updateOffset(this,!0),this):_c(this,"Month")}function v8(){return Zc(this.year(),this.month())}function g8(r){return this._monthsParseExact?(Ot(this,"_monthsRegex")||F2.call(this),r?this._monthsShortStrictRegex:this._monthsShortRegex):(Ot(this,"_monthsShortRegex")||(this._monthsShortRegex=u8),this._monthsShortStrictRegex&&r?this._monthsShortStrictRegex:this._monthsShortRegex)}function m8(r){return this._monthsParseExact?(Ot(this,"_monthsRegex")||F2.call(this),r?this._monthsStrictRegex:this._monthsRegex):(Ot(this,"_monthsRegex")||(this._monthsRegex=c8),this._monthsStrictRegex&&r?this._monthsStrictRegex:this._monthsRegex)}function F2(){function r(y,E){return E.length-y.length}var n=[],o=[],c=[],f,v;for(f=0;f<12;f++)v=_o([2e3,f]),n.push(this.monthsShort(v,"")),o.push(this.months(v,"")),c.push(this.months(v,"")),c.push(this.monthsShort(v,""));for(n.sort(r),o.sort(r),c.sort(r),f=0;f<12;f++)n[f]=Xn(n[f]),o[f]=Xn(o[f]);for(f=0;f<24;f++)c[f]=Xn(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")}Ye("Y",0,0,function(){var r=this.year();return r<=9999?yo(r,4):"+"+r});Ye(0,["YY",2],0,function(){return this.year()%100});Ye(0,["YYYY",4],0,"year");Ye(0,["YYYYY",5],0,"year");Ye(0,["YYYYYY",6,!0],0,"year");un("year","y");cn("year",1);Oe("Y",Uc);Oe("YY",Xt,ti);Oe("YYYY",ih,nh);Oe("YYYYY",Bc,Fc);Oe("YYYYYY",Bc,Fc);Bt(["YYYYY","YYYYYY"],an);Bt("YYYY",function(r,n){n[an]=r.length===2?Le.parseTwoDigitYear(r):gt(r)});Bt("YY",function(r,n){n[an]=Le.parseTwoDigitYear(r)});Bt("Y",function(r,n){n[an]=parseInt(r,10)});function b0(r){return Hc(r)?366:365}Le.parseTwoDigitYear=function(r){return gt(r)+(gt(r)>68?1900:2e3)};var W2=hu("FullYear",!0);function y8(){return Hc(this.year())}function b8(r,n,o,c,f,v,y){var E;return r<100&&r>=0?(E=new Date(r+400,n,o,c,f,v,y),isFinite(E.getFullYear())&&E.setFullYear(r)):E=new Date(r,n,o,c,f,v,y),E}function k0(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 Sc(r,n,o){var c=7+n-o,f=(7+k0(r,0,c).getUTCDay()-n)%7;return-f+c-1}function B2(r,n,o,c,f){var v=(7+o-c)%7,y=Sc(r,c,f),E=1+7*(n-1)+v+y,k,O;return E<=0?(k=r-1,O=b0(k)+E):E>b0(r)?(k=r+1,O=E-b0(r)):(k=r,O=E),{year:k,dayOfYear:O}}function M0(r,n,o){var c=Sc(r.year(),n,o),f=Math.floor((r.dayOfYear()-c-1)/7)+1,v,y;return f<1?(y=r.year()-1,v=f+is(y,n,o)):f>is(r.year(),n,o)?(v=f-is(r.year(),n,o),y=r.year()+1):(y=r.year(),v=f),{week:v,year:y}}function is(r,n,o){var c=Sc(r,n,o),f=Sc(r+1,n,o);return(b0(r)-c+f)/7}Ye("w",["ww",2],"wo","week");Ye("W",["WW",2],"Wo","isoWeek");un("week","w");un("isoWeek","W");cn("week",5);cn("isoWeek",5);Oe("w",Xt);Oe("ww",Xt,ti);Oe("W",Xt);Oe("WW",Xt,ti);H0(["w","ww","W","WW"],function(r,n,o,c){n[c.substr(0,1)]=gt(r)});function C8(r){return M0(r,this._week.dow,this._week.doy).week}var w8={dow:0,doy:6};function x8(){return this._week.dow}function _8(){return this._week.doy}function L8(r){var n=this.localeData().week(this);return r==null?n:this.add((r-n)*7,"d")}function S8(r){var n=M0(this,1,4).week;return r==null?n:this.add((r-n)*7,"d")}Ye("d",0,"do","day");Ye("dd",0,0,function(r){return this.localeData().weekdaysMin(this,r)});Ye("ddd",0,0,function(r){return this.localeData().weekdaysShort(this,r)});Ye("dddd",0,0,function(r){return this.localeData().weekdays(this,r)});Ye("e",0,0,"weekday");Ye("E",0,0,"isoWeekday");un("day","d");un("weekday","e");un("isoWeekday","E");cn("day",11);cn("weekday",11);cn("isoWeekday",11);Oe("d",Xt);Oe("e",Xt);Oe("E",Xt);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)});H0(["dd","ddd","dddd"],function(r,n,o,c){var f=o._locale.weekdaysParse(r,c,o._strict);f!=null?n.d=f:ft(o).invalidWeekday=r});H0(["d","e","E"],function(r,n,o,c){n[c]=gt(r)});function k8(r,n){return typeof r!="string"?r:isNaN(r)?(r=n.weekdaysParse(r),typeof r=="number"?r:null):parseInt(r,10)}function M8(r,n){return typeof r=="string"?n.weekdaysParse(r)%7||7:isNaN(r)?null:r}function oh(r,n){return r.slice(n,7).concat(r.slice(0,n))}var O8="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),U2="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),T8="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),P8=R0,E8=R0,A8=R0;function D8(r,n){var o=Ri(this._weekdays)?this._weekdays:this._weekdays[r&&r!==!0&&this._weekdays.isFormat.test(n)?"format":"standalone"];return r===!0?oh(o,this._week.dow):r?o[r.day()]:o}function I8(r){return r===!0?oh(this._weekdaysShort,this._week.dow):r?this._weekdaysShort[r.day()]:this._weekdaysShort}function z8(r){return r===!0?oh(this._weekdaysMin,this._week.dow):r?this._weekdaysMin[r.day()]:this._weekdaysMin}function N8(r,n,o){var c,f,v,y=r.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],c=0;c<7;++c)v=_o([2e3,1]).day(c),this._minWeekdaysParse[c]=this.weekdaysMin(v,"").toLocaleLowerCase(),this._shortWeekdaysParse[c]=this.weekdaysShort(v,"").toLocaleLowerCase(),this._weekdaysParse[c]=this.weekdays(v,"").toLocaleLowerCase();return o?n==="dddd"?(f=mr.call(this._weekdaysParse,y),f!==-1?f:null):n==="ddd"?(f=mr.call(this._shortWeekdaysParse,y),f!==-1?f:null):(f=mr.call(this._minWeekdaysParse,y),f!==-1?f:null):n==="dddd"?(f=mr.call(this._weekdaysParse,y),f!==-1||(f=mr.call(this._shortWeekdaysParse,y),f!==-1)?f:(f=mr.call(this._minWeekdaysParse,y),f!==-1?f:null)):n==="ddd"?(f=mr.call(this._shortWeekdaysParse,y),f!==-1||(f=mr.call(this._weekdaysParse,y),f!==-1)?f:(f=mr.call(this._minWeekdaysParse,y),f!==-1?f:null)):(f=mr.call(this._minWeekdaysParse,y),f!==-1||(f=mr.call(this._weekdaysParse,y),f!==-1)?f:(f=mr.call(this._shortWeekdaysParse,y),f!==-1?f:null))}function $8(r,n,o){var c,f,v;if(this._weekdaysParseExact)return N8.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]||(v="^"+this.weekdays(f,"")+"|^"+this.weekdaysShort(f,"")+"|^"+this.weekdaysMin(f,""),this._weekdaysParse[c]=new RegExp(v.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 R8(r){if(!this.isValid())return r!=null?this:NaN;var n=this._isUTC?this._d.getUTCDay():this._d.getDay();return r!=null?(r=k8(r,this.localeData()),this.add(r-n,"d")):n}function H8(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 F8(r){if(!this.isValid())return r!=null?this:NaN;if(r!=null){var n=M8(r,this.localeData());return this.day(this.day()%7?n:n-7)}else return this.day()||7}function W8(r){return this._weekdaysParseExact?(Ot(this,"_weekdaysRegex")||sh.call(this),r?this._weekdaysStrictRegex:this._weekdaysRegex):(Ot(this,"_weekdaysRegex")||(this._weekdaysRegex=P8),this._weekdaysStrictRegex&&r?this._weekdaysStrictRegex:this._weekdaysRegex)}function B8(r){return this._weekdaysParseExact?(Ot(this,"_weekdaysRegex")||sh.call(this),r?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(Ot(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=E8),this._weekdaysShortStrictRegex&&r?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function U8(r){return this._weekdaysParseExact?(Ot(this,"_weekdaysRegex")||sh.call(this),r?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(Ot(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=A8),this._weekdaysMinStrictRegex&&r?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function sh(){function r(I,U){return U.length-I.length}var n=[],o=[],c=[],f=[],v,y,E,k,O;for(v=0;v<7;v++)y=_o([2e3,1]).day(v),E=Xn(this.weekdaysMin(y,"")),k=Xn(this.weekdaysShort(y,"")),O=Xn(this.weekdays(y,"")),n.push(E),o.push(k),c.push(O),f.push(E),f.push(k),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 ah(){return this.hours()%12||12}function Y8(){return this.hours()||24}Ye("H",["HH",2],0,"hour");Ye("h",["hh",2],0,ah);Ye("k",["kk",2],0,Y8);Ye("hmm",0,0,function(){return""+ah.apply(this)+yo(this.minutes(),2)});Ye("hmmss",0,0,function(){return""+ah.apply(this)+yo(this.minutes(),2)+yo(this.seconds(),2)});Ye("Hmm",0,0,function(){return""+this.hours()+yo(this.minutes(),2)});Ye("Hmmss",0,0,function(){return""+this.hours()+yo(this.minutes(),2)+yo(this.seconds(),2)});function Y2(r,n){Ye(r,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),n)})}Y2("a",!0);Y2("A",!1);un("hour","h");cn("hour",13);function Z2(r,n){return n._meridiemParse}Oe("a",Z2);Oe("A",Z2);Oe("H",Xt);Oe("h",Xt);Oe("k",Xt);Oe("HH",Xt,ti);Oe("hh",Xt,ti);Oe("kk",Xt,ti);Oe("hmm",I2);Oe("hmmss",z2);Oe("Hmm",I2);Oe("Hmmss",z2);Bt(["H","HH"],Nr);Bt(["k","kk"],function(r,n,o){var c=gt(r);n[Nr]=c===24?0:c});Bt(["a","A"],function(r,n,o){o._isPm=o._locale.isPM(r),o._meridiem=r});Bt(["h","hh"],function(r,n,o){n[Nr]=gt(r),ft(o).bigHour=!0});Bt("hmm",function(r,n,o){var c=r.length-2;n[Nr]=gt(r.substr(0,c)),n[zi]=gt(r.substr(c)),ft(o).bigHour=!0});Bt("hmmss",function(r,n,o){var c=r.length-4,f=r.length-2;n[Nr]=gt(r.substr(0,c)),n[zi]=gt(r.substr(c,2)),n[ns]=gt(r.substr(f)),ft(o).bigHour=!0});Bt("Hmm",function(r,n,o){var c=r.length-2;n[Nr]=gt(r.substr(0,c)),n[zi]=gt(r.substr(c))});Bt("Hmmss",function(r,n,o){var c=r.length-4,f=r.length-2;n[Nr]=gt(r.substr(0,c)),n[zi]=gt(r.substr(c,2)),n[ns]=gt(r.substr(f))});function Z8(r){return(r+"").toLowerCase().charAt(0)==="p"}var V8=/[ap]\.?m?\.?/i,G8=hu("Hours",!0);function q8(r,n,o){return r>11?o?"pm":"PM":o?"am":"AM"}var V2={calendar:$g,longDateFormat:Wg,invalidDate:Ug,ordinal:Zg,dayOfMonthOrdinalParse:Vg,relativeTime:qg,months:l8,monthsShort:N2,week:w8,weekdays:O8,weekdaysMin:T8,weekdaysShort:U2,meridiemParse:V8},tr={},h0={},O0;function j8(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 zp(r){return r&&r.toLowerCase().replace("_","-")}function K8(r){for(var n=0,o,c,f,v;n<r.length;){for(v=zp(r[n]).split("-"),o=v.length,c=zp(r[n+1]),c=c?c.split("-"):null;o>0;){if(f=Vc(v.slice(0,o).join("-")),f)return f;if(c&&c.length>=o&&j8(v,c)>=o-1)break;o--}n++}return O0}function X8(r){return r.match("^[^/\\\\]*$")!=null}function Vc(r){var n=null,o;if(tr[r]===void 0&&typeof module!="undefined"&&module&&module.exports&&X8(r))try{n=O0._abbr,o=require,o("./locale/"+r),Gs(n)}catch{tr[r]=null}return tr[r]}function Gs(r,n){var o;return r&&(An(n)?o=ss(r):o=lh(r,n),o?O0=o:typeof console!="undefined"&&console.warn&&console.warn("Locale "+r+" not found. Did you forget to load it?")),O0._abbr}function lh(r,n){if(n!==null){var o,c=V2;if(n.abbr=r,tr[r]!=null)O2("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=tr[r]._config;else if(n.parentLocale!=null)if(tr[n.parentLocale]!=null)c=tr[n.parentLocale]._config;else if(o=Vc(n.parentLocale),o!=null)c=o._config;else return h0[n.parentLocale]||(h0[n.parentLocale]=[]),h0[n.parentLocale].push({name:r,config:n}),null;return tr[r]=new eh(Sd(c,n)),h0[r]&&h0[r].forEach(function(f){lh(f.name,f.config)}),Gs(r),tr[r]}else return delete tr[r],null}function Q8(r,n){if(n!=null){var o,c,f=V2;tr[r]!=null&&tr[r].parentLocale!=null?tr[r].set(Sd(tr[r]._config,n)):(c=Vc(r),c!=null&&(f=c._config),n=Sd(f,n),c==null&&(n.abbr=r),o=new eh(n),o.parentLocale=tr[r],tr[r]=o),Gs(r)}else tr[r]!=null&&(tr[r].parentLocale!=null?(tr[r]=tr[r].parentLocale,r===Gs()&&Gs(r)):tr[r]!=null&&delete tr[r]);return tr[r]}function ss(r){var n;if(r&&r._locale&&r._locale._abbr&&(r=r._locale._abbr),!r)return O0;if(!Ri(r)){if(n=Vc(r),n)return n;r=[r]}return K8(r)}function J8(){return kd(tr)}function uh(r){var n,o=r._a;return o&&ft(r).overflow===-2&&(n=o[rs]<0||o[rs]>11?rs:o[vo]<1||o[vo]>Zc(o[an],o[rs])?vo:o[Nr]<0||o[Nr]>24||o[Nr]===24&&(o[zi]!==0||o[ns]!==0||o[Ba]!==0)?Nr:o[zi]<0||o[zi]>59?zi:o[ns]<0||o[ns]>59?ns:o[Ba]<0||o[Ba]>999?Ba:-1,ft(r)._overflowDayOfYear&&(n<an||n>vo)&&(n=vo),ft(r)._overflowWeeks&&n===-1&&(n=o8),ft(r)._overflowWeekday&&n===-1&&(n=s8),ft(r).overflow=n),r}var em=/^\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)?)?$/,tm=/^\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)?)?$/,rm=/Z|[+-]\d\d(?::?\d\d)?/,fc=[["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]],hd=[["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/]],nm=/^\/?Date\((-?\d+)/i,im=/^(?:(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}))$/,om={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 G2(r){var n,o,c=r._i,f=em.exec(c)||tm.exec(c),v,y,E,k,O=fc.length,I=hd.length;if(f){for(ft(r).iso=!0,n=0,o=O;n<o;n++)if(fc[n][1].exec(f[1])){y=fc[n][0],v=fc[n][2]!==!1;break}if(y==null){r._isValid=!1;return}if(f[3]){for(n=0,o=I;n<o;n++)if(hd[n][1].exec(f[3])){E=(f[2]||" ")+hd[n][0];break}if(E==null){r._isValid=!1;return}}if(!v&&E!=null){r._isValid=!1;return}if(f[4])if(rm.exec(f[4]))k="Z";else{r._isValid=!1;return}r._f=y+(E||"")+(k||""),fh(r)}else r._isValid=!1}function sm(r,n,o,c,f,v){var y=[am(r),N2.indexOf(n),parseInt(o,10),parseInt(c,10),parseInt(f,10)];return v&&y.push(parseInt(v,10)),y}function am(r){var n=parseInt(r,10);return n<=49?2e3+n:n<=999?1900+n:n}function lm(r){return r.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function um(r,n,o){if(r){var c=U2.indexOf(r),f=new Date(n[0],n[1],n[2]).getDay();if(c!==f)return ft(o).weekdayMismatch=!0,o._isValid=!1,!1}return!0}function cm(r,n,o){if(r)return om[r];if(n)return 0;var c=parseInt(o,10),f=c%100,v=(c-f)/100;return v*60+f}function q2(r){var n=im.exec(lm(r._i)),o;if(n){if(o=sm(n[4],n[3],n[2],n[5],n[6],n[7]),!um(n[1],o,r))return;r._a=o,r._tzm=cm(n[8],n[9],n[10]),r._d=k0.apply(null,r._a),r._d.setUTCMinutes(r._d.getUTCMinutes()-r._tzm),ft(r).rfc2822=!0}else r._isValid=!1}function fm(r){var n=nm.exec(r._i);if(n!==null){r._d=new Date(+n[1]);return}if(G2(r),r._isValid===!1)delete r._isValid;else return;if(q2(r),r._isValid===!1)delete r._isValid;else return;r._strict?r._isValid=!1:Le.createFromInputFallback(r)}Le.createFromInputFallback=bi("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 Ql(r,n,o){return r!=null?r:n!=null?n:o}function dm(r){var n=new Date(Le.now());return r._useUTC?[n.getUTCFullYear(),n.getUTCMonth(),n.getUTCDate()]:[n.getFullYear(),n.getMonth(),n.getDate()]}function ch(r){var n,o,c=[],f,v,y;if(!r._d){for(f=dm(r),r._w&&r._a[vo]==null&&r._a[rs]==null&&hm(r),r._dayOfYear!=null&&(y=Ql(r._a[an],f[an]),(r._dayOfYear>b0(y)||r._dayOfYear===0)&&(ft(r)._overflowDayOfYear=!0),o=k0(y,0,r._dayOfYear),r._a[rs]=o.getUTCMonth(),r._a[vo]=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[zi]===0&&r._a[ns]===0&&r._a[Ba]===0&&(r._nextDay=!0,r._a[Nr]=0),r._d=(r._useUTC?k0:b8).apply(null,c),v=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!==v&&(ft(r).weekdayMismatch=!0)}}function hm(r){var n,o,c,f,v,y,E,k,O;n=r._w,n.GG!=null||n.W!=null||n.E!=null?(v=1,y=4,o=Ql(n.GG,r._a[an],M0(Kt(),1,4).year),c=Ql(n.W,1),f=Ql(n.E,1),(f<1||f>7)&&(k=!0)):(v=r._locale._week.dow,y=r._locale._week.doy,O=M0(Kt(),v,y),o=Ql(n.gg,r._a[an],O.year),c=Ql(n.w,O.week),n.d!=null?(f=n.d,(f<0||f>6)&&(k=!0)):n.e!=null?(f=n.e+v,(n.e<0||n.e>6)&&(k=!0)):f=v),c<1||c>is(o,v,y)?ft(r)._overflowWeeks=!0:k!=null?ft(r)._overflowWeekday=!0:(E=B2(o,c,f,v,y),r._a[an]=E.year,r._dayOfYear=E.dayOfYear)}Le.ISO_8601=function(){};Le.RFC_2822=function(){};function fh(r){if(r._f===Le.ISO_8601){G2(r);return}if(r._f===Le.RFC_2822){q2(r);return}r._a=[],ft(r).empty=!0;var n=""+r._i,o,c,f,v,y,E=n.length,k=0,O,I;for(f=T2(r._f,r._locale).match(th)||[],I=f.length,o=0;o<I;o++)v=f[o],c=(n.match(r8(v,r))||[])[0],c&&(y=n.substr(0,n.indexOf(c)),y.length>0&&ft(r).unusedInput.push(y),n=n.slice(n.indexOf(c)+c.length),k+=c.length),tu[v]?(c?ft(r).empty=!1:ft(r).unusedTokens.push(v),i8(v,c,r)):r._strict&&!c&&ft(r).unusedTokens.push(v);ft(r).charsLeftOver=E-k,n.length>0&&ft(r).unusedInput.push(n),r._a[Nr]<=12&&ft(r).bigHour===!0&&r._a[Nr]>0&&(ft(r).bigHour=void 0),ft(r).parsedDateParts=r._a.slice(0),ft(r).meridiem=r._meridiem,r._a[Nr]=pm(r._locale,r._a[Nr],r._meridiem),O=ft(r).era,O!==null&&(r._a[an]=r._locale.erasConvertYear(O,r._a[an])),ch(r),uh(r)}function pm(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 vm(r){var n,o,c,f,v,y,E=!1,k=r._f.length;if(k===0){ft(r).invalidFormat=!0,r._d=new Date(NaN);return}for(f=0;f<k;f++)v=0,y=!1,n=Jd({},r),r._useUTC!=null&&(n._useUTC=r._useUTC),n._f=r._f[f],fh(n),Qd(n)&&(y=!0),v+=ft(n).charsLeftOver,v+=ft(n).unusedTokens.length*10,ft(n).score=v,E?v<c&&(c=v,o=n):(c==null||v<c||y)&&(c=v,o=n,y&&(E=!0));Zs(r,o||n)}function gm(r){if(!r._d){var n=rh(r._i),o=n.day===void 0?n.date:n.day;r._a=k2([n.year,n.month,o,n.hour,n.minute,n.second,n.millisecond],function(c){return c&&parseInt(c,10)}),ch(r)}}function mm(r){var n=new $0(uh(j2(r)));return n._nextDay&&(n.add(1,"d"),n._nextDay=void 0),n}function j2(r){var n=r._i,o=r._f;return r._locale=r._locale||ss(r._l),n===null||o===void 0&&n===""?Rc({nullInput:!0}):(typeof n=="string"&&(r._i=n=r._locale.preparse(n)),Hi(n)?new $0(uh(n)):(N0(n)?r._d=n:Ri(o)?vm(r):o?fh(r):ym(r),Qd(r)||(r._d=null),r))}function ym(r){var n=r._i;An(n)?r._d=new Date(Le.now()):N0(n)?r._d=new Date(n.valueOf()):typeof n=="string"?fm(r):Ri(n)?(r._a=k2(n.slice(0),function(o){return parseInt(o,10)}),ch(r)):Ya(n)?gm(r):os(n)?r._d=new Date(n):Le.createFromInputFallback(r)}function K2(r,n,o,c,f){var v={};return(n===!0||n===!1)&&(c=n,n=void 0),(o===!0||o===!1)&&(c=o,o=void 0),(Ya(r)&&Xd(r)||Ri(r)&&r.length===0)&&(r=void 0),v._isAMomentObject=!0,v._useUTC=v._isUTC=f,v._l=o,v._i=r,v._f=n,v._strict=c,mm(v)}function Kt(r,n,o,c){return K2(r,n,o,c,!1)}var bm=bi("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var r=Kt.apply(null,arguments);return this.isValid()&&r.isValid()?r<this?this:r:Rc()}),Cm=bi("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var r=Kt.apply(null,arguments);return this.isValid()&&r.isValid()?r>this?this:r:Rc()});function X2(r,n){var o,c;if(n.length===1&&Ri(n[0])&&(n=n[0]),!n.length)return Kt();for(o=n[0],c=1;c<n.length;++c)(!n[c].isValid()||n[c][r](o))&&(o=n[c]);return o}function wm(){var r=[].slice.call(arguments,0);return X2("isBefore",r)}function xm(){var r=[].slice.call(arguments,0);return X2("isAfter",r)}var _m=function(){return Date.now?Date.now():+new Date},p0=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Lm(r){var n,o=!1,c,f=p0.length;for(n in r)if(Ot(r,n)&&!(mr.call(p0,n)!==-1&&(r[n]==null||!isNaN(r[n]))))return!1;for(c=0;c<f;++c)if(r[p0[c]]){if(o)return!1;parseFloat(r[p0[c]])!==gt(r[p0[c]])&&(o=!0)}return!0}function Sm(){return this._isValid}function km(){return Fi(NaN)}function Gc(r){var n=rh(r),o=n.year||0,c=n.quarter||0,f=n.month||0,v=n.week||n.isoWeek||0,y=n.day||0,E=n.hour||0,k=n.minute||0,O=n.second||0,I=n.millisecond||0;this._isValid=Lm(n),this._milliseconds=+I+O*1e3+k*6e4+E*1e3*60*60,this._days=+y+v*7,this._months=+f+c*3+o*12,this._data={},this._locale=ss(),this._bubble()}function vc(r){return r instanceof Gc}function Od(r){return r<0?Math.round(-1*r)*-1:Math.round(r)}function Mm(r,n,o){var c=Math.min(r.length,n.length),f=Math.abs(r.length-n.length),v=0,y;for(y=0;y<c;y++)(o&&r[y]!==n[y]||!o&&gt(r[y])!==gt(n[y]))&&v++;return v+f}function Q2(r,n){Ye(r,0,0,function(){var o=this.utcOffset(),c="+";return o<0&&(o=-o,c="-"),c+yo(~~(o/60),2)+n+yo(~~o%60,2)})}Q2("Z",":");Q2("ZZ","");Oe("Z",Yc);Oe("ZZ",Yc);Bt(["Z","ZZ"],function(r,n,o){o._useUTC=!0,o._tzm=dh(Yc,r)});var Om=/([\+\-]|\d\d)/gi;function dh(r,n){var o=(n||"").match(r),c,f,v;return o===null?null:(c=o[o.length-1]||[],f=(c+"").match(Om)||["-",0,0],v=+(f[1]*60)+gt(f[2]),v===0?0:f[0]==="+"?v:-v)}function hh(r,n){var o,c;return n._isUTC?(o=n.clone(),c=(Hi(r)||N0(r)?r.valueOf():Kt(r).valueOf())-o.valueOf(),o._d.setTime(o._d.valueOf()+c),Le.updateOffset(o,!1),o):Kt(r).local()}function Td(r){return-Math.round(r._d.getTimezoneOffset())}Le.updateOffset=function(){};function Tm(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=dh(Yc,r),r===null)return this}else Math.abs(r)<16&&!o&&(r=r*60);return!this._isUTC&&n&&(f=Td(this)),this._offset=r,this._isUTC=!0,f!=null&&this.add(f,"m"),c!==r&&(!n||this._changeInProgress?t4(this,Fi(r-c,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,Le.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?c:Td(this)}function Pm(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 Am(r){return this._isUTC&&(this.utcOffset(0,r),this._isUTC=!1,r&&this.subtract(Td(this),"m")),this}function Dm(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var r=dh(e8,this._i);r!=null?this.utcOffset(r):this.utcOffset(0,!0)}return this}function Im(r){return this.isValid()?(r=r?Kt(r).utcOffset():0,(this.utcOffset()-r)%60===0):!1}function zm(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Nm(){if(!An(this._isDSTShifted))return this._isDSTShifted;var r={},n;return Jd(r,this),r=j2(r),r._a?(n=r._isUTC?_o(r._a):Kt(r._a),this._isDSTShifted=this.isValid()&&Mm(r._a,n.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function $m(){return this.isValid()?!this._isUTC:!1}function Rm(){return this.isValid()?this._isUTC:!1}function J2(){return this.isValid()?this._isUTC&&this._offset===0:!1}var Hm=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Fm=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Fi(r,n){var o=r,c=null,f,v,y;return vc(r)?o={ms:r._milliseconds,d:r._days,M:r._months}:os(r)||!isNaN(+r)?(o={},n?o[n]=+r:o.milliseconds=+r):(c=Hm.exec(r))?(f=c[1]==="-"?-1:1,o={y:0,d:gt(c[vo])*f,h:gt(c[Nr])*f,m:gt(c[zi])*f,s:gt(c[ns])*f,ms:gt(Od(c[Ba]*1e3))*f}):(c=Fm.exec(r))?(f=c[1]==="-"?-1:1,o={y:Fa(c[2],f),M:Fa(c[3],f),w:Fa(c[4],f),d:Fa(c[5],f),h:Fa(c[6],f),m:Fa(c[7],f),s:Fa(c[8],f)}):o==null?o={}:typeof o=="object"&&("from"in o||"to"in o)&&(y=Wm(Kt(o.from),Kt(o.to)),o={},o.ms=y.milliseconds,o.M=y.months),v=new Gc(o),vc(r)&&Ot(r,"_locale")&&(v._locale=r._locale),vc(r)&&Ot(r,"_isValid")&&(v._isValid=r._isValid),v}Fi.fn=Gc.prototype;Fi.invalid=km;function Fa(r,n){var o=r&&parseFloat(r.replace(",","."));return(isNaN(o)?0:o)*n}function Np(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 Wm(r,n){var o;return r.isValid()&&n.isValid()?(n=hh(n,r),r.isBefore(n)?o=Np(r,n):(o=Np(n,r),o.milliseconds=-o.milliseconds,o.months=-o.months),o):{milliseconds:0,months:0}}function e4(r,n){return function(o,c){var f,v;return c!==null&&!isNaN(+c)&&(O2(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."),v=o,o=c,c=v),f=Fi(o,c),t4(this,f,r),this}}function t4(r,n,o,c){var f=n._milliseconds,v=Od(n._days),y=Od(n._months);!r.isValid()||(c=c==null?!0:c,y&&R2(r,_c(r,"Month")+y*o),v&&E2(r,"Date",_c(r,"Date")+v*o),f&&r._d.setTime(r._d.valueOf()+f*o),c&&Le.updateOffset(r,v||y))}var Bm=e4(1,"add"),Um=e4(-1,"subtract");function r4(r){return typeof r=="string"||r instanceof String}function Ym(r){return Hi(r)||N0(r)||r4(r)||os(r)||Vm(r)||Zm(r)||r===null||r===void 0}function Zm(r){var n=Ya(r)&&!Xd(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,v,y=c.length;for(f=0;f<y;f+=1)v=c[f],o=o||Ot(r,v);return n&&o}function Vm(r){var n=Ri(r),o=!1;return n&&(o=r.filter(function(c){return!os(c)&&r4(r)}).length===0),n&&o}function Gm(r){var n=Ya(r)&&!Xd(r),o=!1,c=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],f,v;for(f=0;f<c.length;f+=1)v=c[f],o=o||Ot(r,v);return n&&o}function qm(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 jm(r,n){arguments.length===1&&(arguments[0]?Ym(arguments[0])?(r=arguments[0],n=void 0):Gm(arguments[0])&&(n=arguments[0],r=void 0):(r=void 0,n=void 0));var o=r||Kt(),c=hh(o,this).startOf("day"),f=Le.calendarFormat(this,c)||"sameElse",v=n&&(Lo(n[f])?n[f].call(this,o):n[f]);return this.format(v||this.localeData().calendar(f,this,Kt(o)))}function Km(){return new $0(this)}function Xm(r,n){var o=Hi(r)?r:Kt(r);return this.isValid()&&o.isValid()?(n=Ci(n)||"millisecond",n==="millisecond"?this.valueOf()>o.valueOf():o.valueOf()<this.clone().startOf(n).valueOf()):!1}function Qm(r,n){var o=Hi(r)?r:Kt(r);return this.isValid()&&o.isValid()?(n=Ci(n)||"millisecond",n==="millisecond"?this.valueOf()<o.valueOf():this.clone().endOf(n).valueOf()<o.valueOf()):!1}function Jm(r,n,o,c){var f=Hi(r)?r:Kt(r),v=Hi(n)?n:Kt(n);return this.isValid()&&f.isValid()&&v.isValid()?(c=c||"()",(c[0]==="("?this.isAfter(f,o):!this.isBefore(f,o))&&(c[1]===")"?this.isBefore(v,o):!this.isAfter(v,o))):!1}function ey(r,n){var o=Hi(r)?r:Kt(r),c;return this.isValid()&&o.isValid()?(n=Ci(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 ty(r,n){return this.isSame(r,n)||this.isAfter(r,n)}function ry(r,n){return this.isSame(r,n)||this.isBefore(r,n)}function ny(r,n,o){var c,f,v;if(!this.isValid())return NaN;if(c=hh(r,this),!c.isValid())return NaN;switch(f=(c.utcOffset()-this.utcOffset())*6e4,n=Ci(n),n){case"year":v=gc(this,c)/12;break;case"month":v=gc(this,c);break;case"quarter":v=gc(this,c)/3;break;case"second":v=(this-c)/1e3;break;case"minute":v=(this-c)/6e4;break;case"hour":v=(this-c)/36e5;break;case"day":v=(this-c-f)/864e5;break;case"week":v=(this-c-f)/6048e5;break;default:v=this-c}return o?v:vi(v)}function gc(r,n){if(r.date()<n.date())return-gc(n,r);var o=(n.year()-r.year())*12+(n.month()-r.month()),c=r.clone().add(o,"months"),f,v;return n-c<0?(f=r.clone().add(o-1,"months"),v=(n-c)/(c-f)):(f=r.clone().add(o+1,"months"),v=(n-c)/(f-c)),-(o+v)||0}Le.defaultFormat="YYYY-MM-DDTHH:mm:ssZ";Le.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function iy(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function oy(r){if(!this.isValid())return null;var n=r!==!0,o=n?this.clone().utc():this;return o.year()<0||o.year()>9999?pc(o,n?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):Lo(Date.prototype.toISOString)?n?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",pc(o,"Z")):pc(o,n?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function sy(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var r="moment",n="",o,c,f,v;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",v=n+'[")]',this.format(o+c+f+v)}function ay(r){r||(r=this.isUtc()?Le.defaultFormatUtc:Le.defaultFormat);var n=pc(this,r);return this.localeData().postformat(n)}function ly(r,n){return this.isValid()&&(Hi(r)&&r.isValid()||Kt(r).isValid())?Fi({to:this,from:r}).locale(this.locale()).humanize(!n):this.localeData().invalidDate()}function uy(r){return this.from(Kt(),r)}function cy(r,n){return this.isValid()&&(Hi(r)&&r.isValid()||Kt(r).isValid())?Fi({from:this,to:r}).locale(this.locale()).humanize(!n):this.localeData().invalidDate()}function fy(r){return this.to(Kt(),r)}function n4(r){var n;return r===void 0?this._locale._abbr:(n=ss(r),n!=null&&(this._locale=n),this)}var i4=bi("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 o4(){return this._locale}var kc=1e3,ru=60*kc,Mc=60*ru,s4=(365*400+97)*24*Mc;function nu(r,n){return(r%n+n)%n}function a4(r,n,o){return r<100&&r>=0?new Date(r+400,n,o)-s4:new Date(r,n,o).valueOf()}function l4(r,n,o){return r<100&&r>=0?Date.UTC(r+400,n,o)-s4:Date.UTC(r,n,o)}function dy(r){var n,o;if(r=Ci(r),r===void 0||r==="millisecond"||!this.isValid())return this;switch(o=this._isUTC?l4:a4,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-=nu(n+(this._isUTC?0:this.utcOffset()*ru),Mc);break;case"minute":n=this._d.valueOf(),n-=nu(n,ru);break;case"second":n=this._d.valueOf(),n-=nu(n,kc);break}return this._d.setTime(n),Le.updateOffset(this,!0),this}function hy(r){var n,o;if(r=Ci(r),r===void 0||r==="millisecond"||!this.isValid())return this;switch(o=this._isUTC?l4:a4,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+=Mc-nu(n+(this._isUTC?0:this.utcOffset()*ru),Mc)-1;break;case"minute":n=this._d.valueOf(),n+=ru-nu(n,ru)-1;break;case"second":n=this._d.valueOf(),n+=kc-nu(n,kc)-1;break}return this._d.setTime(n),Le.updateOffset(this,!0),this}function py(){return this._d.valueOf()-(this._offset||0)*6e4}function vy(){return Math.floor(this.valueOf()/1e3)}function gy(){return new Date(this.valueOf())}function my(){var r=this;return[r.year(),r.month(),r.date(),r.hour(),r.minute(),r.second(),r.millisecond()]}function yy(){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 by(){return this.isValid()?this.toISOString():null}function Cy(){return Qd(this)}function wy(){return Zs({},ft(this))}function xy(){return ft(this).overflow}function _y(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}Ye("N",0,0,"eraAbbr");Ye("NN",0,0,"eraAbbr");Ye("NNN",0,0,"eraAbbr");Ye("NNNN",0,0,"eraName");Ye("NNNNN",0,0,"eraNarrow");Ye("y",["y",1],"yo","eraYear");Ye("y",["yy",2],0,"eraYear");Ye("y",["yyy",3],0,"eraYear");Ye("y",["yyyy",4],0,"eraYear");Oe("N",ph);Oe("NN",ph);Oe("NNN",ph);Oe("NNNN",Iy);Oe("NNNNN",zy);Bt(["N","NN","NNN","NNNN","NNNNN"],function(r,n,o,c){var f=o._locale.erasParse(r,c,o._strict);f?ft(o).era=f:ft(o).invalidEra=r});Oe("y",pu);Oe("yy",pu);Oe("yyy",pu);Oe("yyyy",pu);Oe("yo",Ny);Bt(["y","yy","yyy","yyyy"],an);Bt(["yo"],function(r,n,o,c){var f;o._locale._eraYearOrdinalRegex&&(f=r.match(o._locale._eraYearOrdinalRegex)),o._locale.eraYearOrdinalParse?n[an]=o._locale.eraYearOrdinalParse(r,f):n[an]=parseInt(r,10)});function Ly(r,n){var o,c,f,v=this._eras||ss("en")._eras;for(o=0,c=v.length;o<c;++o){switch(typeof v[o].since){case"string":f=Le(v[o].since).startOf("day"),v[o].since=f.valueOf();break}switch(typeof v[o].until){case"undefined":v[o].until=1/0;break;case"string":f=Le(v[o].until).startOf("day").valueOf(),v[o].until=f.valueOf();break}}return v}function Sy(r,n,o){var c,f,v=this.eras(),y,E,k;for(r=r.toUpperCase(),c=0,f=v.length;c<f;++c)if(y=v[c].name.toUpperCase(),E=v[c].abbr.toUpperCase(),k=v[c].narrow.toUpperCase(),o)switch(n){case"N":case"NN":case"NNN":if(E===r)return v[c];break;case"NNNN":if(y===r)return v[c];break;case"NNNNN":if(k===r)return v[c];break}else if([y,E,k].indexOf(r)>=0)return v[c]}function ky(r,n){var o=r.since<=r.until?1:-1;return n===void 0?Le(r.since).year():Le(r.since).year()+(n-r.offset)*o}function My(){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 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].narrow;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].abbr;return""}function Py(){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()-Le(f[r].since).year())*o+f[r].offset;return this.year()}function Ey(r){return Ot(this,"_erasNameRegex")||vh.call(this),r?this._erasNameRegex:this._erasRegex}function Ay(r){return Ot(this,"_erasAbbrRegex")||vh.call(this),r?this._erasAbbrRegex:this._erasRegex}function Dy(r){return Ot(this,"_erasNarrowRegex")||vh.call(this),r?this._erasNarrowRegex:this._erasRegex}function ph(r,n){return n.erasAbbrRegex(r)}function Iy(r,n){return n.erasNameRegex(r)}function zy(r,n){return n.erasNarrowRegex(r)}function Ny(r,n){return n._eraYearOrdinalRegex||pu}function vh(){var r=[],n=[],o=[],c=[],f,v,y=this.eras();for(f=0,v=y.length;f<v;++f)n.push(Xn(y[f].name)),r.push(Xn(y[f].abbr)),o.push(Xn(y[f].narrow)),c.push(Xn(y[f].name)),c.push(Xn(y[f].abbr)),c.push(Xn(y[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")}Ye(0,["gg",2],0,function(){return this.weekYear()%100});Ye(0,["GG",2],0,function(){return this.isoWeekYear()%100});function qc(r,n){Ye(0,[r,r.length],0,n)}qc("gggg","weekYear");qc("ggggg","weekYear");qc("GGGG","isoWeekYear");qc("GGGGG","isoWeekYear");un("weekYear","gg");un("isoWeekYear","GG");cn("weekYear",1);cn("isoWeekYear",1);Oe("G",Uc);Oe("g",Uc);Oe("GG",Xt,ti);Oe("gg",Xt,ti);Oe("GGGG",ih,nh);Oe("gggg",ih,nh);Oe("GGGGG",Bc,Fc);Oe("ggggg",Bc,Fc);H0(["gggg","ggggg","GGGG","GGGGG"],function(r,n,o,c){n[c.substr(0,2)]=gt(r)});H0(["gg","GG"],function(r,n,o,c){n[c]=Le.parseTwoDigitYear(r)});function $y(r){return u4.call(this,r,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function Ry(r){return u4.call(this,r,this.isoWeek(),this.isoWeekday(),1,4)}function Hy(){return is(this.year(),1,4)}function Fy(){return is(this.isoWeekYear(),1,4)}function Wy(){var r=this.localeData()._week;return is(this.year(),r.dow,r.doy)}function By(){var r=this.localeData()._week;return is(this.weekYear(),r.dow,r.doy)}function u4(r,n,o,c,f){var v;return r==null?M0(this,c,f).year:(v=is(r,c,f),n>v&&(n=v),Uy.call(this,r,n,o,c,f))}function Uy(r,n,o,c,f){var v=B2(r,n,o,c,f),y=k0(v.year,0,v.dayOfYear);return this.year(y.getUTCFullYear()),this.month(y.getUTCMonth()),this.date(y.getUTCDate()),this}Ye("Q",0,"Qo","quarter");un("quarter","Q");cn("quarter",7);Oe("Q",A2);Bt("Q",function(r,n){n[rs]=(gt(r)-1)*3});function Yy(r){return r==null?Math.ceil((this.month()+1)/3):this.month((r-1)*3+this.month()%3)}Ye("D",["DD",2],"Do","date");un("date","D");cn("date",9);Oe("D",Xt);Oe("DD",Xt,ti);Oe("Do",function(r,n){return r?n._dayOfMonthOrdinalParse||n._ordinalParse:n._dayOfMonthOrdinalParseLenient});Bt(["D","DD"],vo);Bt("Do",function(r,n){n[vo]=gt(r.match(Xt)[0])});var c4=hu("Date",!0);Ye("DDD",["DDDD",3],"DDDo","dayOfYear");un("dayOfYear","DDD");cn("dayOfYear",4);Oe("DDD",Wc);Oe("DDDD",D2);Bt(["DDD","DDDD"],function(r,n,o){o._dayOfYear=gt(r)});function Zy(r){var n=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return r==null?n:this.add(r-n,"d")}Ye("m",["mm",2],0,"minute");un("minute","m");cn("minute",14);Oe("m",Xt);Oe("mm",Xt,ti);Bt(["m","mm"],zi);var Vy=hu("Minutes",!1);Ye("s",["ss",2],0,"second");un("second","s");cn("second",15);Oe("s",Xt);Oe("ss",Xt,ti);Bt(["s","ss"],ns);var Gy=hu("Seconds",!1);Ye("S",0,0,function(){return~~(this.millisecond()/100)});Ye(0,["SS",2],0,function(){return~~(this.millisecond()/10)});Ye(0,["SSS",3],0,"millisecond");Ye(0,["SSSS",4],0,function(){return this.millisecond()*10});Ye(0,["SSSSS",5],0,function(){return this.millisecond()*100});Ye(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3});Ye(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4});Ye(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5});Ye(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6});un("millisecond","ms");cn("millisecond",16);Oe("S",Wc,A2);Oe("SS",Wc,ti);Oe("SSS",Wc,D2);var Vs,f4;for(Vs="SSSS";Vs.length<=9;Vs+="S")Oe(Vs,pu);function qy(r,n){n[Ba]=gt(("0."+r)*1e3)}for(Vs="S";Vs.length<=9;Vs+="S")Bt(Vs,qy);f4=hu("Milliseconds",!1);Ye("z",0,0,"zoneAbbr");Ye("zz",0,0,"zoneName");function jy(){return this._isUTC?"UTC":""}function Ky(){return this._isUTC?"Coordinated Universal Time":""}var le=$0.prototype;le.add=Bm;le.calendar=jm;le.clone=Km;le.diff=ny;le.endOf=hy;le.format=ay;le.from=ly;le.fromNow=uy;le.to=cy;le.toNow=fy;le.get=Qg;le.invalidAt=xy;le.isAfter=Xm;le.isBefore=Qm;le.isBetween=Jm;le.isSame=ey;le.isSameOrAfter=ty;le.isSameOrBefore=ry;le.isValid=Cy;le.lang=i4;le.locale=n4;le.localeData=o4;le.max=Cm;le.min=bm;le.parsingFlags=wy;le.set=Jg;le.startOf=dy;le.subtract=Um;le.toArray=my;le.toObject=yy;le.toDate=gy;le.toISOString=oy;le.inspect=sy;typeof Symbol!="undefined"&&Symbol.for!=null&&(le[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"});le.toJSON=by;le.toString=iy;le.unix=vy;le.valueOf=py;le.creationData=_y;le.eraName=My;le.eraNarrow=Oy;le.eraAbbr=Ty;le.eraYear=Py;le.year=W2;le.isLeapYear=y8;le.weekYear=$y;le.isoWeekYear=Ry;le.quarter=le.quarters=Yy;le.month=H2;le.daysInMonth=v8;le.week=le.weeks=L8;le.isoWeek=le.isoWeeks=S8;le.weeksInYear=Wy;le.weeksInWeekYear=By;le.isoWeeksInYear=Hy;le.isoWeeksInISOWeekYear=Fy;le.date=c4;le.day=le.days=R8;le.weekday=H8;le.isoWeekday=F8;le.dayOfYear=Zy;le.hour=le.hours=G8;le.minute=le.minutes=Vy;le.second=le.seconds=Gy;le.millisecond=le.milliseconds=f4;le.utcOffset=Tm;le.utc=Em;le.local=Am;le.parseZone=Dm;le.hasAlignedHourOffset=Im;le.isDST=zm;le.isLocal=$m;le.isUtcOffset=Rm;le.isUtc=J2;le.isUTC=J2;le.zoneAbbr=jy;le.zoneName=Ky;le.dates=bi("dates accessor is deprecated. Use date instead.",c4);le.months=bi("months accessor is deprecated. Use month instead",H2);le.years=bi("years accessor is deprecated. Use year instead",W2);le.zone=bi("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",Pm);le.isDSTShifted=bi("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",Nm);function Xy(r){return Kt(r*1e3)}function Qy(){return Kt.apply(null,arguments).parseZone()}function d4(r){return r}var Tt=eh.prototype;Tt.calendar=Rg;Tt.longDateFormat=Bg;Tt.invalidDate=Yg;Tt.ordinal=Gg;Tt.preparse=d4;Tt.postformat=d4;Tt.relativeTime=jg;Tt.pastFuture=Kg;Tt.set=Ng;Tt.eras=Ly;Tt.erasParse=Sy;Tt.erasConvertYear=ky;Tt.erasAbbrRegex=Ay;Tt.erasNameRegex=Ey;Tt.erasNarrowRegex=Dy;Tt.months=f8;Tt.monthsShort=d8;Tt.monthsParse=p8;Tt.monthsRegex=m8;Tt.monthsShortRegex=g8;Tt.week=C8;Tt.firstDayOfYear=_8;Tt.firstDayOfWeek=x8;Tt.weekdays=D8;Tt.weekdaysMin=z8;Tt.weekdaysShort=I8;Tt.weekdaysParse=$8;Tt.weekdaysRegex=W8;Tt.weekdaysShortRegex=B8;Tt.weekdaysMinRegex=U8;Tt.isPM=Z8;Tt.meridiem=q8;function Oc(r,n,o,c){var f=ss(),v=_o().set(c,n);return f[o](v,r)}function h4(r,n,o){if(os(r)&&(n=r,r=void 0),r=r||"",n!=null)return Oc(r,n,o,"month");var c,f=[];for(c=0;c<12;c++)f[c]=Oc(r,c,o,"month");return f}function gh(r,n,o,c){typeof r=="boolean"?(os(n)&&(o=n,n=void 0),n=n||""):(n=r,o=n,r=!1,os(n)&&(o=n,n=void 0),n=n||"");var f=ss(),v=r?f._week.dow:0,y,E=[];if(o!=null)return Oc(n,(o+v)%7,c,"day");for(y=0;y<7;y++)E[y]=Oc(n,(y+v)%7,c,"day");return E}function Jy(r,n){return h4(r,n,"months")}function eb(r,n){return h4(r,n,"monthsShort")}function tb(r,n,o){return gh(r,n,o,"weekdays")}function rb(r,n,o){return gh(r,n,o,"weekdaysShort")}function nb(r,n,o){return gh(r,n,o,"weekdaysMin")}Gs("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=gt(r%100/10)===1?"th":n===1?"st":n===2?"nd":n===3?"rd":"th";return r+o}});Le.lang=bi("moment.lang is deprecated. Use moment.locale instead.",Gs);Le.langData=bi("moment.langData is deprecated. Use moment.localeData instead.",ss);var Jo=Math.abs;function ib(){var r=this._data;return this._milliseconds=Jo(this._milliseconds),this._days=Jo(this._days),this._months=Jo(this._months),r.milliseconds=Jo(r.milliseconds),r.seconds=Jo(r.seconds),r.minutes=Jo(r.minutes),r.hours=Jo(r.hours),r.months=Jo(r.months),r.years=Jo(r.years),this}function p4(r,n,o,c){var f=Fi(n,o);return r._milliseconds+=c*f._milliseconds,r._days+=c*f._days,r._months+=c*f._months,r._bubble()}function ob(r,n){return p4(this,r,n,1)}function sb(r,n){return p4(this,r,n,-1)}function $p(r){return r<0?Math.floor(r):Math.ceil(r)}function ab(){var r=this._milliseconds,n=this._days,o=this._months,c=this._data,f,v,y,E,k;return r>=0&&n>=0&&o>=0||r<=0&&n<=0&&o<=0||(r+=$p(Pd(o)+n)*864e5,n=0,o=0),c.milliseconds=r%1e3,f=vi(r/1e3),c.seconds=f%60,v=vi(f/60),c.minutes=v%60,y=vi(v/60),c.hours=y%24,n+=vi(y/24),k=vi(v4(n)),o+=k,n-=$p(Pd(k)),E=vi(o/12),o%=12,c.days=n,c.months=o,c.years=E,this}function v4(r){return r*4800/146097}function Pd(r){return r*146097/4800}function lb(r){if(!this.isValid())return NaN;var n,o,c=this._milliseconds;if(r=Ci(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(Pd(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 ub(){return this.isValid()?this._milliseconds+this._days*864e5+this._months%12*2592e6+gt(this._months/12)*31536e6:NaN}function as(r){return function(){return this.as(r)}}var cb=as("ms"),fb=as("s"),db=as("m"),hb=as("h"),pb=as("d"),vb=as("w"),gb=as("M"),mb=as("Q"),yb=as("y");function bb(){return Fi(this)}function Cb(r){return r=Ci(r),this.isValid()?this[r+"s"]():NaN}function Ka(r){return function(){return this.isValid()?this._data[r]:NaN}}var wb=Ka("milliseconds"),xb=Ka("seconds"),_b=Ka("minutes"),Lb=Ka("hours"),Sb=Ka("days"),kb=Ka("months"),Mb=Ka("years");function Ob(){return vi(this.days()/7)}var es=Math.round,Jl={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function Tb(r,n,o,c,f){return f.relativeTime(n||1,!!o,r,c)}function Pb(r,n,o,c){var f=Fi(r).abs(),v=es(f.as("s")),y=es(f.as("m")),E=es(f.as("h")),k=es(f.as("d")),O=es(f.as("M")),I=es(f.as("w")),U=es(f.as("y")),q=v<=o.ss&&["s",v]||v<o.s&&["ss",v]||y<=1&&["m"]||y<o.m&&["mm",y]||E<=1&&["h"]||E<o.h&&["hh",E]||k<=1&&["d"]||k<o.d&&["dd",k];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,Tb.apply(null,q)}function Eb(r){return r===void 0?es:typeof r=="function"?(es=r,!0):!1}function Ab(r,n){return Jl[r]===void 0?!1:n===void 0?Jl[r]:(Jl[r]=n,r==="s"&&(Jl.ss=n-1),!0)}function Db(r,n){if(!this.isValid())return this.localeData().invalidDate();var o=!1,c=Jl,f,v;return typeof r=="object"&&(n=r,r=!1),typeof r=="boolean"&&(o=r),typeof n=="object"&&(c=Object.assign({},Jl,n),n.s!=null&&n.ss==null&&(c.ss=n.s-1)),f=this.localeData(),v=Pb(this,!o,c,f),o&&(v=f.pastFuture(+this,v)),f.postformat(v)}var pd=Math.abs;function jl(r){return(r>0)-(r<0)||+r}function jc(){if(!this.isValid())return this.localeData().invalidDate();var r=pd(this._milliseconds)/1e3,n=pd(this._days),o=pd(this._months),c,f,v,y,E=this.asSeconds(),k,O,I,U;return E?(c=vi(r/60),f=vi(c/60),r%=60,c%=60,v=vi(o/12),o%=12,y=r?r.toFixed(3).replace(/\.?0+$/,""):"",k=E<0?"-":"",O=jl(this._months)!==jl(E)?"-":"",I=jl(this._days)!==jl(E)?"-":"",U=jl(this._milliseconds)!==jl(E)?"-":"",k+"P"+(v?O+v+"Y":"")+(o?O+o+"M":"")+(n?I+n+"D":"")+(f||c||r?"T":"")+(f?U+f+"H":"")+(c?U+c+"M":"")+(r?U+y+"S":"")):"P0D"}var Lt=Gc.prototype;Lt.isValid=Sm;Lt.abs=ib;Lt.add=ob;Lt.subtract=sb;Lt.as=lb;Lt.asMilliseconds=cb;Lt.asSeconds=fb;Lt.asMinutes=db;Lt.asHours=hb;Lt.asDays=pb;Lt.asWeeks=vb;Lt.asMonths=gb;Lt.asQuarters=mb;Lt.asYears=yb;Lt.valueOf=ub;Lt._bubble=ab;Lt.clone=bb;Lt.get=Cb;Lt.milliseconds=wb;Lt.seconds=xb;Lt.minutes=_b;Lt.hours=Lb;Lt.days=Sb;Lt.weeks=Ob;Lt.months=kb;Lt.years=Mb;Lt.humanize=Db;Lt.toISOString=jc;Lt.toString=jc;Lt.toJSON=jc;Lt.locale=n4;Lt.localeData=o4;Lt.toIsoString=bi("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",jc);Lt.lang=i4;Ye("X",0,0,"unix");Ye("x",0,0,"valueOf");Oe("x",Uc);Oe("X",t8);Bt("X",function(r,n,o){o._d=new Date(parseFloat(r)*1e3)});Bt("x",function(r,n,o){o._d=new Date(gt(r))});//! moment.js
2757
+ Le.version="2.29.4";Ig(Kt);Le.fn=le;Le.min=wm;Le.max=xm;Le.now=_m;Le.utc=_o;Le.unix=Xy;Le.months=Jy;Le.isDate=N0;Le.locale=Gs;Le.invalid=Rc;Le.duration=Fi;Le.isMoment=Hi;Le.weekdays=tb;Le.parseZone=Qy;Le.localeData=ss;Le.isDuration=vc;Le.monthsShort=eb;Le.weekdaysMin=nb;Le.defineLocale=lh;Le.updateLocale=Q8;Le.locales=J8;Le.weekdaysShort=rb;Le.normalizeUnits=Ci;Le.relativeTimeRounding=Eb;Le.relativeTimeThreshold=Ab;Le.calendarFormat=qm;Le.prototype=le;Le.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 Ib=Object.defineProperty,zb=Object.getOwnPropertyDescriptor,Js=(r,n,o,c)=>{for(var f=c>1?void 0:c?zb(n,o):n,v=r.length-1,y;v>=0;v--)(y=r[v])&&(f=(c?y(n,o,f):y(f))||f);return c&&f&&Ib(n,o,f),f};const g4=Sr("input-time"),m4="h:mma",y4=/^([1-9]|1[0-9]|2[0-3]):([0-5])([0-9])?(am?|pm?)?$/,b4=/^(1[3-9]|2[0-3]).*/,C4=/^(\d\d?)(am?|pm?)/,w4=(r,n)=>({label:`${r}${n?` (${n})`:""}`,value:r}),Nb=(r,n)=>{const c=Math.ceil(1440/r),f=Le().startOf("day");return Array(c).fill(null).map((v,y)=>{const k=(y>0?f.add(r,"minutes"):f).format(m4);return w4(k,n)})},$b=(r,n)=>{const o=r.trim(),c=r.match(y4);if(!o||!c)return[];const[,f,v,y]=c,E=parseInt(f,10),k=E>12?`${E-12}`:`${E}`,O=`${v}${y||0}`,I=`${k}:${O}`;return["am","pm"].map(U=>w4(`${I}${U}`,n))},Rb=(r,{value:n})=>{const o=r.match(b4);if(!o||!n)return!1;const[,c]=o,f=`${parseInt(c,10)-12}`,v=r.substring(c.length).replace(":",""),y=`${f}:${v}`;return n.startsWith(y)&&n.endsWith("pm")},Hb=(r,{value:n})=>{const o=r.match(C4);if(!o)return!1;const[,c,f]=o;return!!(n!=null&&n.replace(":00","").startsWith(`${c}${f}`))},Fb=(...r)=>Hb(...r)||Rb(...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=Nb(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?Fb(this.query,r):!1}handleNoResults(){if(this.hasQueryResults)return null;if(!this.isFreeform)return this.renderNoResultsMessage();this.freeformOptions=$b(this.query,this.suffix),this.hasResults=!!this.freeformOptions.length}renderFreeformOptions(){return this.isFreeform?this.hasQueryResults?this.renderOptionsData(this.freeformOptions):this.renderNoResultsMessage():null}renderDropdownContent(){return J`
2751
2758
  ${this.handleNoResults()} ${this.renderOptionsData()}
2752
2759
  ${this.renderFreeformOptions()}
2753
- `}};Js([W({attribute:"can-search",type:Boolean,reflect:!0})],exports.InputTime.prototype,"canSearch",2);Js([W({type:Number,reflect:!0})],exports.InputTime.prototype,"increment",2);Js([W({type:String,reflect:!0})],exports.InputTime.prototype,"suffix",2);Js([W({type:Boolean,attribute:"is-freeform",reflect:!0})],exports.InputTime.prototype,"isFreeform",2);Js([W({type:String})],exports.InputTime.prototype,"placeholder",2);Js([W({type:String,reflect:!0,attribute:"trailing-icon"})],exports.InputTime.prototype,"trailingIcon",2);Js([ht()],exports.InputTime.prototype,"freeformOptions",2);exports.InputTime=Js([De(p4)],exports.InputTime);var Hb=Object.defineProperty,Fb=Object.getOwnPropertyDescriptor,gh=(r,n,o,c)=>{for(var f=c>1?void 0:c?Fb(n,o):n,v=r.length-1,y;v>=0;v--)(y=r[v])&&(f=(c?y(n,o,f):y(f))||f);return c&&f&&Hb(n,o,f),f};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 J`<h1 class=${r}><slot></slot></h1>`;case 2:return J`<h2 class=${r}><slot></slot></h2>`;case 3:return J`<h3 class=${r}><slot></slot></h3>`;case 4:return J`<h4 class=${r}><slot></slot></h4>`;case 5:return J`<h5 class=${r}><slot></slot></h5>`;case 6:return J`<h6 class=${r}><slot></slot></h6>`}}};exports.Heading.styles=ke`
2760
+ `}};Js([W({attribute:"can-search",type:Boolean,reflect:!0})],exports.InputTime.prototype,"canSearch",2);Js([W({type:Number,reflect:!0})],exports.InputTime.prototype,"increment",2);Js([W({type:String,reflect:!0})],exports.InputTime.prototype,"suffix",2);Js([W({type:Boolean,attribute:"is-freeform",reflect:!0})],exports.InputTime.prototype,"isFreeform",2);Js([W({type:String})],exports.InputTime.prototype,"placeholder",2);Js([W({type:String,reflect:!0,attribute:"trailing-icon"})],exports.InputTime.prototype,"trailingIcon",2);Js([ht()],exports.InputTime.prototype,"freeformOptions",2);exports.InputTime=Js([De(g4)],exports.InputTime);var Wb=Object.defineProperty,Bb=Object.getOwnPropertyDescriptor,mh=(r,n,o,c)=>{for(var f=c>1?void 0:c?Bb(n,o):n,v=r.length-1,y;v>=0;v--)(y=r[v])&&(f=(c?y(n,o,f):y(f))||f);return c&&f&&Wb(n,o,f),f};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 J`<h1 class=${r}><slot></slot></h1>`;case 2:return J`<h2 class=${r}><slot></slot></h2>`;case 3:return J`<h3 class=${r}><slot></slot></h3>`;case 4:return J`<h4 class=${r}><slot></slot></h4>`;case 5:return J`<h5 class=${r}><slot></slot></h5>`;case 6:return J`<h6 class=${r}><slot></slot></h6>`}}};exports.Heading.styles=ke`
2754
2761
  h1,
2755
2762
  h2,
2756
2763
  h3,
@@ -2795,12 +2802,12 @@ Le.version="2.29.4";Ag(Kt);Le.fn=le;Le.min=bm;Le.max=Cm;Le.now=wm;Le.utc=_o;Le.u
2795
2802
  :host {
2796
2803
  display: block;
2797
2804
  }
2798
- `;gh([W({type:String})],exports.Heading.prototype,"size",2);gh([W({type:Number})],exports.Heading.prototype,"level",2);exports.Heading=gh([De("sp-heading")],exports.Heading);var Wb=Object.defineProperty,Bb=Object.getOwnPropertyDescriptor,us=(r,n,o,c)=>{for(var f=c>1?void 0:c?Bb(n,o):n,v=r.length-1,y;v>=0;v--)(y=r[v])&&(f=(c?y(n,o,f):y(f))||f);return c&&f&&Wb(n,o,f),f};const C4=ke`
2805
+ `;mh([W({type:String})],exports.Heading.prototype,"size",2);mh([W({type:Number})],exports.Heading.prototype,"level",2);exports.Heading=mh([De("sp-heading")],exports.Heading);var Ub=Object.defineProperty,Yb=Object.getOwnPropertyDescriptor,ls=(r,n,o,c)=>{for(var f=c>1?void 0:c?Yb(n,o):n,v=r.length-1,y;v>=0;v--)(y=r[v])&&(f=(c?y(n,o,f):y(f))||f);return c&&f&&Ub(n,o,f),f};const x4=ke`
2799
2806
  :host {
2800
2807
  display: inline-flex; /* Avoids the custom element wrapper "padding" the link in some cases */
2801
2808
  align-items: center;
2802
- color: var(--sp-color-primary-850);
2803
- font-weight: var(--sp-font-weight-bold);
2809
+ color: var(--sp-color-primary-800);
2810
+ font-weight: var(--sp-font-weight-medium);
2804
2811
  }
2805
2812
 
2806
2813
  :host sp-icon {
@@ -2809,7 +2816,7 @@ Le.version="2.29.4";Ag(Kt);Le.fn=le;Le.min=bm;Le.max=Cm;Le.now=wm;Le.utc=_o;Le.u
2809
2816
 
2810
2817
  :host(:hover) {
2811
2818
  cursor: pointer;
2812
- color: var(--sp-color-primary-600);
2819
+ text-decoration: underline;
2813
2820
  }
2814
2821
 
2815
2822
  :host([link-type='secondary']) {
@@ -2821,12 +2828,12 @@ Le.version="2.29.4";Ag(Kt);Le.fn=le;Le.min=bm;Le.max=Cm;Le.now=wm;Le.utc=_o;Le.u
2821
2828
  :host([link-type='secondary']:hover) {
2822
2829
  text-decoration: none;
2823
2830
  }
2824
- `,Ub=ke`
2831
+ `,Zb=ke`
2825
2832
  a {
2826
2833
  color: inherit;
2827
2834
  text-decoration: inherit;
2828
2835
  }
2829
- `,Yb=ke`
2836
+ `,Vb=ke`
2830
2837
  button {
2831
2838
  font-family: inherit;
2832
2839
  font-size: inherit;
@@ -2848,7 +2855,7 @@ Le.version="2.29.4";Ag(Kt);Le.fn=le;Le.min=bm;Le.max=Cm;Le.now=wm;Le.utc=_o;Le.u
2848
2855
  <slot></slot>
2849
2856
  </a>
2850
2857
  ${this.isExternal?J`<sp-icon icon="openLink" size="12"></sp-icon>`:""}
2851
- `}};exports.Link.styles=[Ub,C4];us([W({type:Boolean,reflect:!0})],exports.Link.prototype,"virtual",2);us([W({type:String,reflect:!0})],exports.Link.prototype,"href",2);us([W({type:String,attribute:"link-type",reflect:!0})],exports.Link.prototype,"linkType",2);us([W({type:String,reflect:!0})],exports.Link.prototype,"target",2);us([W({type:String,reflect:!0})],exports.Link.prototype,"rel",2);us([W({type:Boolean,attribute:"is-external",reflect:!0})],exports.Link.prototype,"isExternal",2);exports.Link=us([De("sp-link")],exports.Link);exports.LinkButton=class extends Ue{constructor(){super(...arguments),this.linkType="primary"}render(){return J` <button><slot></slot></button>`}};exports.LinkButton.styles=[Yb,C4];us([W({type:String,attribute:"link-type",reflect:!0})],exports.LinkButton.prototype,"linkType",2);exports.LinkButton=us([De("sp-link-button")],exports.LinkButton);var Zb=Object.defineProperty,Vb=Object.getOwnPropertyDescriptor,F0=(r,n,o,c)=>{for(var f=c>1?void 0:c?Vb(n,o):n,v=r.length-1,y;v>=0;v--)(y=r[v])&&(f=(c?y(n,o,f):y(f))||f);return c&&f&&Zb(n,o,f),f};const Gb=ke`
2858
+ `}};exports.Link.styles=[Zb,x4];ls([W({type:Boolean,reflect:!0})],exports.Link.prototype,"virtual",2);ls([W({type:String,reflect:!0})],exports.Link.prototype,"href",2);ls([W({type:String,attribute:"link-type",reflect:!0})],exports.Link.prototype,"linkType",2);ls([W({type:String,reflect:!0})],exports.Link.prototype,"target",2);ls([W({type:String,reflect:!0})],exports.Link.prototype,"rel",2);ls([W({type:Boolean,attribute:"is-external",reflect:!0})],exports.Link.prototype,"isExternal",2);exports.Link=ls([De("sp-link")],exports.Link);exports.LinkButton=class extends Ue{constructor(){super(...arguments),this.linkType="primary"}render(){return J` <button><slot></slot></button>`}};exports.LinkButton.styles=[Vb,x4];ls([W({type:String,attribute:"link-type",reflect:!0})],exports.LinkButton.prototype,"linkType",2);exports.LinkButton=ls([De("sp-link-button")],exports.LinkButton);var Gb=Object.defineProperty,qb=Object.getOwnPropertyDescriptor,F0=(r,n,o,c)=>{for(var f=c>1?void 0:c?qb(n,o):n,v=r.length-1,y;v>=0;v--)(y=r[v])&&(f=(c?y(n,o,f):y(f))||f);return c&&f&&Gb(n,o,f),f};const jb=ke`
2852
2859
  :host li {
2853
2860
  list-style: none;
2854
2861
  padding: var(--sp-spacing-2) 0;
@@ -2884,7 +2891,7 @@ Le.version="2.29.4";Ag(Kt);Le.fn=le;Le.min=bm;Le.max=Cm;Le.now=wm;Le.utc=_o;Le.u
2884
2891
  <slot></slot>
2885
2892
  </a>
2886
2893
  </li>
2887
- `}};exports.SideNavigationItem.styles=[Gb];F0([W({type:String,reflect:!0})],exports.SideNavigationItem.prototype,"target",2);F0([W({type:String,reflect:!0})],exports.SideNavigationItem.prototype,"rel",2);F0([W({type:String,reflect:!0})],exports.SideNavigationItem.prototype,"href",2);F0([W({type:Boolean,reflect:!0})],exports.SideNavigationItem.prototype,"active",2);exports.SideNavigationItem=F0([De("sp-side-navigation-item")],exports.SideNavigationItem);var qb=Object.defineProperty,jb=Object.getOwnPropertyDescriptor,Kb=(r,n,o,c)=>{for(var f=c>1?void 0:c?jb(n,o):n,v=r.length-1,y;v>=0;v--)(y=r[v])&&(f=(c?y(n,o,f):y(f))||f);return c&&f&&qb(n,o,f),f};const Xb=ke`
2894
+ `}};exports.SideNavigationItem.styles=[jb];F0([W({type:String,reflect:!0})],exports.SideNavigationItem.prototype,"target",2);F0([W({type:String,reflect:!0})],exports.SideNavigationItem.prototype,"rel",2);F0([W({type:String,reflect:!0})],exports.SideNavigationItem.prototype,"href",2);F0([W({type:Boolean,reflect:!0})],exports.SideNavigationItem.prototype,"active",2);exports.SideNavigationItem=F0([De("sp-side-navigation-item")],exports.SideNavigationItem);var Kb=Object.defineProperty,Xb=Object.getOwnPropertyDescriptor,Qb=(r,n,o,c)=>{for(var f=c>1?void 0:c?Xb(n,o):n,v=r.length-1,y;v>=0;v--)(y=r[v])&&(f=(c?y(n,o,f):y(f))||f);return c&&f&&Kb(n,o,f),f};const Jb=ke`
2888
2895
  :host {
2889
2896
  display: block;
2890
2897
  height: 100%;
@@ -2898,7 +2905,7 @@ Le.version="2.29.4";Ag(Kt);Le.fn=le;Le.min=bm;Le.max=Cm;Le.now=wm;Le.utc=_o;Le.u
2898
2905
  }
2899
2906
  `;exports.SideNavigation=class extends Ue{render(){return J`<ul>
2900
2907
  <slot></slot>
2901
- </ul>`}};exports.SideNavigation.styles=[Xb];exports.SideNavigation=Kb([De("sp-side-navigation")],exports.SideNavigation);var Qb=Object.defineProperty,Jb=Object.getOwnPropertyDescriptor,w4=(r,n,o,c)=>{for(var f=c>1?void 0:c?Jb(n,o):n,v=r.length-1,y;v>=0;v--)(y=r[v])&&(f=(c?y(n,o,f):y(f))||f);return c&&f&&Qb(n,o,f),f};exports.RecordRow=class extends Ue{render(){return J`
2908
+ </ul>`}};exports.SideNavigation.styles=[Jb];exports.SideNavigation=Qb([De("sp-side-navigation")],exports.SideNavigation);var eC=Object.defineProperty,tC=Object.getOwnPropertyDescriptor,_4=(r,n,o,c)=>{for(var f=c>1?void 0:c?tC(n,o):n,v=r.length-1,y;v>=0;v--)(y=r[v])&&(f=(c?y(n,o,f):y(f))||f);return c&&f&&eC(n,o,f),f};exports.RecordRow=class extends Ue{render(){return J`
2902
2909
  <div id="row">
2903
2910
  <sp-record-row-label><slot name="label"></slot></sp-record-row-label>
2904
2911
  <div id="value"><slot></slot></div>
@@ -2922,18 +2929,18 @@ Le.version="2.29.4";Ag(Kt);Le.fn=le;Le.min=bm;Le.max=Cm;Le.now=wm;Le.utc=_o;Le.u
2922
2929
  /* Bit of a hack, but means lozenges nicely align with the label */
2923
2930
  margin-top: -2px;
2924
2931
  }
2925
- `;exports.RecordRow=w4([De("sp-record-row")],exports.RecordRow);exports.RecordRowLabel=class extends Ue{render(){return J`<div id="label"><slot></slot></div>`}};exports.RecordRowLabel.styles=ke`
2932
+ `;exports.RecordRow=_4([De("sp-record-row")],exports.RecordRow);exports.RecordRowLabel=class extends Ue{render(){return J`<div id="label"><slot></slot></div>`}};exports.RecordRowLabel.styles=ke`
2926
2933
  #label {
2927
2934
  width: 10rem;
2928
2935
  color: var(--sp-color-label-text);
2929
2936
  font-size: var(--sp-font-size);
2930
2937
  line-height: var(--sp-line-height);
2931
2938
  }
2932
- `;exports.RecordRowLabel=w4([De("sp-record-row-label")],exports.RecordRowLabel);var eC=Object.defineProperty,tC=Object.getOwnPropertyDescriptor,mh=(r,n,o,c)=>{for(var f=c>1?void 0:c?tC(n,o):n,v=r.length-1,y;v>=0;v--)(y=r[v])&&(f=(c?y(n,o,f):y(f))||f);return c&&f&&eC(n,o,f),f};exports.TabPanel=class extends Ue{constructor(){super(...arguments),this.name="",this.shown=!1}render(){return J`<div id="panel"><slot></slot></div>`}};exports.TabPanel.styles=ke`
2939
+ `;exports.RecordRowLabel=_4([De("sp-record-row-label")],exports.RecordRowLabel);var rC=Object.defineProperty,nC=Object.getOwnPropertyDescriptor,yh=(r,n,o,c)=>{for(var f=c>1?void 0:c?nC(n,o):n,v=r.length-1,y;v>=0;v--)(y=r[v])&&(f=(c?y(n,o,f):y(f))||f);return c&&f&&rC(n,o,f),f};exports.TabPanel=class extends Ue{constructor(){super(...arguments),this.name="",this.shown=!1}render(){return J`<div id="panel"><slot></slot></div>`}};exports.TabPanel.styles=ke`
2933
2940
  :host(:not([shown])) #panel {
2934
2941
  display: none;
2935
2942
  }
2936
- `;mh([W({type:String,reflect:!0})],exports.TabPanel.prototype,"name",2);mh([W({type:Boolean,reflect:!0})],exports.TabPanel.prototype,"shown",2);exports.TabPanel=mh([De("sp-tab-panel")],exports.TabPanel);class Kc extends CustomEvent{constructor(n){super("sp-tab-selected",{bubbles:!0,detail:{name:n}})}}class rC extends CustomEvent{constructor(n){super("sp-tab-deselected",{bubbles:!0,detail:{name:n}})}}var nC=Object.defineProperty,iC=Object.getOwnPropertyDescriptor,Xc=(r,n,o,c)=>{for(var f=c>1?void 0:c?iC(n,o):n,v=r.length-1,y;v>=0;v--)(y=r[v])&&(f=(c?y(n,o,f):y(f))||f);return c&&f&&nC(n,o,f),f};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 Kc(this.name)):n===!0&&this.selected===!1&&this.dispatchEvent(new rC(this.name)),super.updated(r)}render(){return this.link?J`<a href=${this.link} id="tab"><slot></slot></a>`:J`<div
2943
+ `;yh([W({type:String,reflect:!0})],exports.TabPanel.prototype,"name",2);yh([W({type:Boolean,reflect:!0})],exports.TabPanel.prototype,"shown",2);exports.TabPanel=yh([De("sp-tab-panel")],exports.TabPanel);class Kc extends CustomEvent{constructor(n){super("sp-tab-selected",{bubbles:!0,detail:{name:n}})}}class iC extends CustomEvent{constructor(n){super("sp-tab-deselected",{bubbles:!0,detail:{name:n}})}}var oC=Object.defineProperty,sC=Object.getOwnPropertyDescriptor,Xc=(r,n,o,c)=>{for(var f=c>1?void 0:c?sC(n,o):n,v=r.length-1,y;v>=0;v--)(y=r[v])&&(f=(c?y(n,o,f):y(f))||f);return c&&f&&oC(n,o,f),f};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 Kc(this.name)):n===!0&&this.selected===!1&&this.dispatchEvent(new iC(this.name)),super.updated(r)}render(){return this.link?J`<a href=${this.link} id="tab"><slot></slot></a>`:J`<div
2937
2944
  tabindex="0"
2938
2945
  role="tab"
2939
2946
  aria-selected=${this.selected}
@@ -2961,7 +2968,7 @@ Le.version="2.29.4";Ag(Kt);Le.fn=le;Le.min=bm;Le.max=Cm;Le.now=wm;Le.utc=_o;Le.u
2961
2968
  #tab:hover {
2962
2969
  color: var(--sp-color-neutral-850);
2963
2970
  }
2964
- `;Xc([W({type:Boolean,reflect:!0})],exports.Tab.prototype,"selected",2);Xc([W({type:String,reflect:!0})],exports.Tab.prototype,"name",2);Xc([W({type:String,reflect:!0})],exports.Tab.prototype,"link",2);exports.Tab=Xc([De("sp-tab")],exports.Tab);var oC=Object.defineProperty,sC=Object.getOwnPropertyDescriptor,Qc=(r,n,o,c)=>{for(var f=c>1?void 0:c?sC(n,o):n,v=r.length-1,y;v>=0;v--)(y=r[v])&&(f=(c?y(n,o,f):y(f))||f);return c&&f&&oC(n,o,f),f};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(v=>v instanceof exports.Tab&&!!v.name),this.controlled||(this.selected||(this.selected=(f=(c=this.tabs.find(v=>v.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 Kc(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 J`
2971
+ `;Xc([W({type:Boolean,reflect:!0})],exports.Tab.prototype,"selected",2);Xc([W({type:String,reflect:!0})],exports.Tab.prototype,"name",2);Xc([W({type:String,reflect:!0})],exports.Tab.prototype,"link",2);exports.Tab=Xc([De("sp-tab")],exports.Tab);var aC=Object.defineProperty,lC=Object.getOwnPropertyDescriptor,Qc=(r,n,o,c)=>{for(var f=c>1?void 0:c?lC(n,o):n,v=r.length-1,y;v>=0;v--)(y=r[v])&&(f=(c?y(n,o,f):y(f))||f);return c&&f&&aC(n,o,f),f};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(v=>v instanceof exports.Tab&&!!v.name),this.controlled||(this.selected||(this.selected=(f=(c=this.tabs.find(v=>v.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 Kc(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 J`
2965
2972
  <sp-row id="tabbar" @click=${this.handleClick}>
2966
2973
  <slot @slotchange=${this.handleSlotChange}></slot>
2967
2974
  </sp-row>
@@ -2983,7 +2990,7 @@ Le.version="2.29.4";Ag(Kt);Le.fn=le;Le.min=bm;Le.max=Cm;Le.now=wm;Le.utc=_o;Le.u
2983
2990
  top: 0;
2984
2991
  z-index: 1;
2985
2992
  }
2986
- `;Qc([W({type:Boolean})],exports.TabBar.prototype,"controlled",2);Qc([W({type:String})],exports.TabBar.prototype,"selected",2);Qc([ht()],exports.TabBar.prototype,"tabs",2);exports.TabBar=Qc([De("sp-tab-bar")],exports.TabBar);var aC=Object.defineProperty,lC=Object.getOwnPropertyDescriptor,yh=(r,n,o,c)=>{for(var f=c>1?void 0:c?lC(n,o):n,v=r.length-1,y;v>=0;v--)(y=r[v])&&(f=(c?y(n,o,f):y(f))||f);return c&&f&&aC(n,o,f),f};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())f instanceof exports.TabPanel?this.panels.push(f):this.panels.push(...Array.from(f.querySelectorAll("sp-tab-panel")));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 Kc(this.selected))}render(){return J`
2993
+ `;Qc([W({type:Boolean})],exports.TabBar.prototype,"controlled",2);Qc([W({type:String})],exports.TabBar.prototype,"selected",2);Qc([ht()],exports.TabBar.prototype,"tabs",2);exports.TabBar=Qc([De("sp-tab-bar")],exports.TabBar);var uC=Object.defineProperty,cC=Object.getOwnPropertyDescriptor,bh=(r,n,o,c)=>{for(var f=c>1?void 0:c?cC(n,o):n,v=r.length-1,y;v>=0;v--)(y=r[v])&&(f=(c?y(n,o,f):y(f))||f);return c&&f&&uC(n,o,f),f};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())f instanceof exports.TabPanel?this.panels.push(f):this.panels.push(...Array.from(f.querySelectorAll("sp-tab-panel")));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 Kc(this.selected))}render(){return J`
2987
2994
  <sp-tab-bar
2988
2995
  controlled
2989
2996
  selected=${this.selected}
@@ -2996,8 +3003,8 @@ Le.version="2.29.4";Ag(Kt);Le.fn=le;Le.min=bm;Le.max=Cm;Le.now=wm;Le.utc=_o;Le.u
2996
3003
  :host {
2997
3004
  background-color: var(--sp-color-white);
2998
3005
  }
2999
- `;yh([W({type:String,reflect:!0})],exports.Tabs.prototype,"selected",2);yh([ht()],exports.Tabs.prototype,"panels",2);exports.Tabs=yh([De("sp-tabs")],exports.Tabs);var uC=Object.defineProperty,cC=Object.getOwnPropertyDescriptor,vu=(r,n,o,c)=>{for(var f=c>1?void 0:c?cC(n,o):n,v=r.length-1,y;v>=0;v--)(y=r[v])&&(f=(c?y(n,o,f):y(f))||f);return c&&f&&uC(n,o,f),f};const x4=Sr("badge");exports.Badge=class extends Ue{constructor(){super(...arguments),this.limit=0,this.content="",this.deafultCharacterLimit=5,this.deafultNumberLimit=99}connectedCallback(){super.connectedCallback(),!this.limit&&(typeof this.content=="number"||this.isNumeric(this.content)?this.limit=this.deafultNumberLimit:this.limit=this.deafultCharacterLimit)}isNumeric(r){return/^-?\d+$/.test(r)}generateContent(){return typeof this.content=="number"||this.isNumeric(this.content)?parseInt(this.content)>this.limit?`${this.limit}+`:this.content:this.content.length>this.limit?`${this.content.slice(0,this.limit)}...`:this.content}render(){return J`<span
3000
- class=${js({"extra-wide":this.content.length>1})}
3006
+ `;bh([W({type:String,reflect:!0})],exports.Tabs.prototype,"selected",2);bh([ht()],exports.Tabs.prototype,"panels",2);exports.Tabs=bh([De("sp-tabs")],exports.Tabs);var fC=Object.defineProperty,dC=Object.getOwnPropertyDescriptor,vu=(r,n,o,c)=>{for(var f=c>1?void 0:c?dC(n,o):n,v=r.length-1,y;v>=0;v--)(y=r[v])&&(f=(c?y(n,o,f):y(f))||f);return c&&f&&fC(n,o,f),f};const L4=Sr("badge");exports.Badge=class extends Ue{constructor(){super(...arguments),this.limit=0,this.content="",this.deafultCharacterLimit=5,this.deafultNumberLimit=99}connectedCallback(){super.connectedCallback(),!this.limit&&(typeof this.content=="number"||this.isNumeric(this.content)?this.limit=this.deafultNumberLimit:this.limit=this.deafultCharacterLimit)}isNumeric(r){return/^-?\d+$/.test(r)}generateContent(){return typeof this.content=="number"||this.isNumeric(this.content)?parseInt(this.content)>this.limit?`${this.limit}+`:this.content:this.content.length>this.limit?`${this.content.slice(0,this.limit)}...`:this.content}render(){return J`<span
3007
+ class=${qs({"extra-wide":this.content.length>1})}
3001
3008
  >${this.generateContent()}</span
3002
3009
  >`}};exports.Badge.styles=ke`
3003
3010
  :host {
@@ -3032,7 +3039,7 @@ Le.version="2.29.4";Ag(Kt);Le.fn=le;Le.min=bm;Le.max=Cm;Le.now=wm;Le.utc=_o;Le.u
3032
3039
  .extra-wide {
3033
3040
  padding: 0 6px;
3034
3041
  }
3035
- `;vu([W({type:String,reflect:!0})],exports.Badge.prototype,"theme",2);vu([W({type:Number,reflect:!0})],exports.Badge.prototype,"limit",2);vu([W({type:String||Number,reflect:!0})],exports.Badge.prototype,"content",2);vu([ht()],exports.Badge.prototype,"deafultCharacterLimit",2);vu([ht()],exports.Badge.prototype,"deafultNumberLimit",2);exports.Badge=vu([De(x4)],exports.Badge);const{range:Jc}=dg;function fC(r,n,o){return[1,null,...Jc(r-n,r+n+1),null,o]}function dC(r,n){return[1,null,...Jc(r-(n-3),r+1)]}function hC(r,n){return[...Jc(1,n-1),null,r]}function pC(r,n,o){return r>1+1+n*2&&r<o-1-n*2}function vC(r,n=1,o=1){const c=5+o*2;if(r<=c)return Jc(1,r+1);if(pC(n,o,r))return fC(n,o,r);if(n+(c-3)>=r)return dC(r,c);if(n<c)return hC(r,c)}var gC=Object.defineProperty,mC=Object.getOwnPropertyDescriptor,So=(r,n,o,c)=>{for(var f=c>1?void 0:c?mC(n,o):n,v=r.length-1,y;v>=0;v--)(y=r[v])&&(f=(c?y(n,o,f):y(f))||f);return c&&f&&gC(n,o,f),f};const bh=Sr("basic-pagination"),Ch=Sr("pagination");class yC extends CustomEvent{constructor(n){super(`${bh}-${n}`,{bubbles:!0,composed:!0})}}exports.BasicPagination=class extends Ue{constructor(){super(...arguments),this.hasPreviousPage=!1,this.hasNextPage=!1}emit(r){this.dispatchEvent(new yC(r))}handlePageChange(r){this.emit(`${r}-page`)}render(){return J`
3042
+ `;vu([W({type:String,reflect:!0})],exports.Badge.prototype,"theme",2);vu([W({type:Number,reflect:!0})],exports.Badge.prototype,"limit",2);vu([W({type:String||Number,reflect:!0})],exports.Badge.prototype,"content",2);vu([ht()],exports.Badge.prototype,"deafultCharacterLimit",2);vu([ht()],exports.Badge.prototype,"deafultNumberLimit",2);exports.Badge=vu([De(L4)],exports.Badge);const{range:Jc}=pg;function hC(r,n,o){return[1,null,...Jc(r-n,r+n+1),null,o]}function pC(r,n){return[1,null,...Jc(r-(n-3),r+1)]}function vC(r,n){return[...Jc(1,n-1),null,r]}function gC(r,n,o){return r>1+1+n*2&&r<o-1-n*2}function mC(r,n=1,o=1){const c=5+o*2;if(r<=c)return Jc(1,r+1);if(gC(n,o,r))return hC(n,o,r);if(n+(c-3)>=r)return pC(r,c);if(n<c)return vC(r,c)}var yC=Object.defineProperty,bC=Object.getOwnPropertyDescriptor,So=(r,n,o,c)=>{for(var f=c>1?void 0:c?bC(n,o):n,v=r.length-1,y;v>=0;v--)(y=r[v])&&(f=(c?y(n,o,f):y(f))||f);return c&&f&&yC(n,o,f),f};const Ch=Sr("basic-pagination"),wh=Sr("pagination");class CC extends CustomEvent{constructor(n){super(`${Ch}-${n}`,{bubbles:!0,composed:!0})}}exports.BasicPagination=class extends Ue{constructor(){super(...arguments),this.hasPreviousPage=!1,this.hasNextPage=!1}emit(r){this.dispatchEvent(new CC(r))}handlePageChange(r){this.emit(`${r}-page`)}render(){return J`
3036
3043
  <sp-button-group role="navigation" aria-label="Pagination Navigation">
3037
3044
  <sp-button
3038
3045
  compact
@@ -3058,7 +3065,7 @@ Le.version="2.29.4";Ag(Kt);Le.fn=le;Le.min=bm;Le.max=Cm;Le.now=wm;Le.utc=_o;Le.u
3058
3065
  sp-button-group {
3059
3066
  --sp-spacing-2: var(--sp-spacing-1);
3060
3067
  }
3061
- `;So([W({type:Boolean,attribute:"has-previous-page",reflect:!0})],exports.BasicPagination.prototype,"hasPreviousPage",2);So([W({type:Boolean,attribute:"has-next-page",reflect:!0})],exports.BasicPagination.prototype,"hasNextPage",2);exports.BasicPagination=So([De(bh)],exports.BasicPagination);class bC extends CustomEvent{constructor(n,o){super(`${Ch}-${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 bC(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=vC(this.totalPages,this.currentPage,this.currentPageSiblings),J`
3068
+ `;So([W({type:Boolean,attribute:"has-previous-page",reflect:!0})],exports.BasicPagination.prototype,"hasPreviousPage",2);So([W({type:Boolean,attribute:"has-next-page",reflect:!0})],exports.BasicPagination.prototype,"hasNextPage",2);exports.BasicPagination=So([De(Ch)],exports.BasicPagination);class wC extends CustomEvent{constructor(n,o){super(`${wh}-${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 wC(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=mC(this.totalPages,this.currentPage,this.currentPageSiblings),J`
3062
3069
  <sp-row role="navigation" aria-label="Pagination Navigation">
3063
3070
  <button
3064
3071
  role="link"
@@ -3071,7 +3078,7 @@ Le.version="2.29.4";Ag(Kt);Le.fn=le;Le.min=bm;Le.max=Cm;Le.now=wm;Le.utc=_o;Le.u
3071
3078
  </div>
3072
3079
  </button>
3073
3080
  ${(r=this.pages)==null?void 0:r.map(n=>n?J`<button
3074
- class=${js({page:n,selected:this.isCurrentPage(n)})}
3081
+ class=${qs({page:n,selected:this.isCurrentPage(n)})}
3075
3082
  role="link"
3076
3083
  aria-label=${`${this.isCurrentPage(n)?`Current Page, Page ${n}`:`Go to page ${n}`}`}
3077
3084
  aria-current=${`${this.isCurrentPage(n)}`}
@@ -3155,7 +3162,7 @@ Le.version="2.29.4";Ag(Kt);Le.fn=le;Le.min=bm;Le.max=Cm;Le.now=wm;Le.utc=_o;Le.u
3155
3162
  .page {
3156
3163
  padding: 0 var(--sp-spacing-2);
3157
3164
  }
3158
- `;So([W({type:Number,attribute:"total-items",reflect:!0})],exports.Pagination.prototype,"totalItems",2);So([W({type:Number,attribute:"page-size",reflect:!0})],exports.Pagination.prototype,"pageSize",2);So([W({type:Number,attribute:"current-page",reflect:!0})],exports.Pagination.prototype,"currentPage",2);So([ht()],exports.Pagination.prototype,"currentPageSiblings",2);So([ht()],exports.Pagination.prototype,"totalPages",2);So([ht()],exports.Pagination.prototype,"pages",2);exports.Pagination=So([De(Ch)],exports.Pagination);var CC=Object.defineProperty,wC=Object.getOwnPropertyDescriptor,W0=(r,n,o,c)=>{for(var f=c>1?void 0:c?wC(n,o):n,v=r.length-1,y;v>=0;v--)(y=r[v])&&(f=(c?y(n,o,f):y(f))||f);return c&&f&&CC(n,o,f),f};const _4=Sr("alert");class xC 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 xC("sp-alert-cleared"))}render(){return this.cleared?null:J`<div class="alert-container">
3165
+ `;So([W({type:Number,attribute:"total-items",reflect:!0})],exports.Pagination.prototype,"totalItems",2);So([W({type:Number,attribute:"page-size",reflect:!0})],exports.Pagination.prototype,"pageSize",2);So([W({type:Number,attribute:"current-page",reflect:!0})],exports.Pagination.prototype,"currentPage",2);So([ht()],exports.Pagination.prototype,"currentPageSiblings",2);So([ht()],exports.Pagination.prototype,"totalPages",2);So([ht()],exports.Pagination.prototype,"pages",2);exports.Pagination=So([De(wh)],exports.Pagination);var xC=Object.defineProperty,_C=Object.getOwnPropertyDescriptor,W0=(r,n,o,c)=>{for(var f=c>1?void 0:c?_C(n,o):n,v=r.length-1,y;v>=0;v--)(y=r[v])&&(f=(c?y(n,o,f):y(f))||f);return c&&f&&xC(n,o,f),f};const S4=Sr("alert");class LC 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 LC("sp-alert-cleared"))}render(){return this.cleared?null:J`<div class="alert-container">
3159
3166
  <sp-icon class="type-icon" icon="${this.getIcon()}"></sp-icon>
3160
3167
  <div role="alert">
3161
3168
  ${this.title?J`<div><sp-heading>${this.title}</sp-heading></div>`:J``}
@@ -3229,7 +3236,7 @@ Le.version="2.29.4";Ag(Kt);Le.fn=le;Le.min=bm;Le.max=Cm;Le.now=wm;Le.utc=_o;Le.u
3229
3236
  .clear-button sp-icon {
3230
3237
  vertical-align: middle;
3231
3238
  }
3232
- `;W0([W({type:String,reflect:!0})],exports.Alert.prototype,"type",2);W0([W({type:Boolean})],exports.Alert.prototype,"clearable",2);W0([W()],exports.Alert.prototype,"title",2);W0([ht()],exports.Alert.prototype,"cleared",2);exports.Alert=W0([De(_4)],exports.Alert);const wh={resources:G`
3239
+ `;W0([W({type:String,reflect:!0})],exports.Alert.prototype,"type",2);W0([W({type:Boolean})],exports.Alert.prototype,"clearable",2);W0([W()],exports.Alert.prototype,"title",2);W0([ht()],exports.Alert.prototype,"cleared",2);exports.Alert=W0([De(S4)],exports.Alert);const xh={resources:G`
3233
3240
  <path fill-rule="evenodd" clip-rule="evenodd" d="M72.162 23C65.9749 23 60.9331 26.3858 60.9331 35.8357C60.9331 45.2714 65.9608 48.6715 72.162 48.6715C78.3519 48.6715 83.3909 45.2885 83.3909 35.8357C83.3909 26.4029 78.366 23 72.162 23" fill="#ECEEF3"/>
3234
3241
  <path d="M56.4495 56.9434C59.5234 55.7568 64.9414 54.1338 72.1812 54.1338C78.7417 54.1338 84.8193 55.6855 88.0841 56.9434C93.6087 59.077 96.3373 63.076 97.3676 67.212C97.9234 69.4654 97.0055 71.887 95.3408 72.6629C93.7195 73.4199 86.7451 73.8798 78.6699 74.0381C76.8525 68.8754 72.9778 64.0852 65.9467 61.3874C63.1121 60.3023 58.7997 59.0638 53.7502 58.2549C54.565 57.7649 55.4627 57.3244 56.4495 56.9434Z" fill="#ECEEF3"/>
3235
3242
  <path fill-rule="evenodd" clip-rule="evenodd" d="M40.1294 59.3822C29.7418 59.3822 21.9683 61.6959 17.5579 63.3874C9.61917 66.4329 5.70017 72.1418 4.23407 78.0459C3.43657 81.25 4.74559 84.6941 7.11794 85.8082C10.0139 87.1663 25.0495 87.8454 40.1093 87.8454C55.2496 87.8454 70.4222 87.1582 73.3584 85.796C75.7469 84.69 77.0639 81.2378 76.2664 78.0256C74.7883 72.1296 70.8733 66.4289 62.9466 63.3874C58.2624 61.5942 49.5423 59.3822 40.1294 59.3822" fill="#CACFD9"/>
@@ -3323,7 +3330,7 @@ Le.version="2.29.4";Ag(Kt);Le.fn=le;Le.min=bm;Le.max=Cm;Le.now=wm;Le.utc=_o;Le.u
3323
3330
  <circle cx="35.1426" cy="45.4286" r="4.28571" fill="white"/>
3324
3331
  <circle cx="22.1426" cy="73.5714" r="19.2857" fill="#CACFD9" stroke="white" stroke-width="3"/>
3325
3332
  <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"/>
3326
- <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"/>`},_C=Object.keys(wh);var LC=Object.defineProperty,SC=Object.getOwnPropertyDescriptor,ef=(r,n,o,c)=>{for(var f=c>1?void 0:c?SC(n,o):n,v=r.length-1,y;v>=0;v--)(y=r[v])&&(f=(c?y(n,o,f):y(f))||f);return c&&f&&LC(n,o,f),f};const L4=Sr("illustration");exports.Illustration=class extends Ue{constructor(){super(...arguments),this.illustration="",this.altTitle="",this.altDescription=""}render(){const r=wh[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 J`<svg
3333
+ <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"/>`},SC=Object.keys(xh);var kC=Object.defineProperty,MC=Object.getOwnPropertyDescriptor,ef=(r,n,o,c)=>{for(var f=c>1?void 0:c?MC(n,o):n,v=r.length-1,y;v>=0;v--)(y=r[v])&&(f=(c?y(n,o,f):y(f))||f);return c&&f&&kC(n,o,f),f};const k4=Sr("illustration");exports.Illustration=class extends Ue{constructor(){super(...arguments),this.illustration="",this.altTitle="",this.altDescription=""}render(){const r=xh[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 J`<svg
3327
3334
  aria-hidden=${!this.altTitle.length||!this.altDescription.length}
3328
3335
  role="img"
3329
3336
  aria-labelledby=${`${o} ${c}`}
@@ -3339,14 +3346,14 @@ Le.version="2.29.4";Ag(Kt);Le.fn=le;Le.min=bm;Le.max=Cm;Le.now=wm;Le.utc=_o;Le.u
3339
3346
  /* to get rid of extra height caused by white space */
3340
3347
  line-height: 0;
3341
3348
  }
3342
- `;ef([W({type:String})],exports.Illustration.prototype,"illustration",2);ef([W({type:String,attribute:"alt-title"})],exports.Illustration.prototype,"altTitle",2);ef([W({type:String,attribute:"alt-description"})],exports.Illustration.prototype,"altDescription",2);exports.Illustration=ef([De(L4)],exports.Illustration);const kC=ke`
3349
+ `;ef([W({type:String})],exports.Illustration.prototype,"illustration",2);ef([W({type:String,attribute:"alt-title"})],exports.Illustration.prototype,"altTitle",2);ef([W({type:String,attribute:"alt-description"})],exports.Illustration.prototype,"altDescription",2);exports.Illustration=ef([De(k4)],exports.Illustration);const OC=ke`
3343
3350
  :host {
3344
3351
  --sp-border-radius-default: 2px;
3345
3352
  --sp-border-radius-medium: 3px;
3346
3353
 
3347
3354
  --sp-border-divider: 1px solid var(--sp-color-neutral-400);
3348
3355
  }
3349
- `,MC=ke`
3356
+ `,TC=ke`
3350
3357
  :host {
3351
3358
  --sp-color-neutral-900: #1b263a;
3352
3359
  --sp-color-neutral-850: #223049;
@@ -3536,14 +3543,14 @@ Le.version="2.29.4";Ag(Kt);Le.fn=le;Le.min=bm;Le.max=Cm;Le.now=wm;Le.utc=_o;Le.u
3536
3543
 
3537
3544
  --sp-color-text-on-color: var(--sp-color-white);
3538
3545
  }
3539
- `,OC=ke`
3546
+ `,PC=ke`
3540
3547
  :host {
3541
3548
  // TODO: These names currently match the design system but should probably be more generic (based on elevation instead of specific components)
3542
3549
  --sp-box-shadow-info-window: 0px 5px 10px rgba(28, 46, 72, 0.15);
3543
3550
  --sp-box-shadow-menu: 0 3px 5px var(--sp-color-shadow-150);
3544
3551
  --sp-box-shadow-modal: 0 3px 12px var(--sp-color-shadow-100);
3545
3552
  }
3546
- `,TC=ke`
3553
+ `,EC=ke`
3547
3554
  :host {
3548
3555
  --sp-spacing-px: 1px;
3549
3556
  --sp-spacing-0: 0;
@@ -3570,7 +3577,7 @@ Le.version="2.29.4";Ag(Kt);Le.fn=le;Le.min=bm;Le.max=Cm;Le.now=wm;Le.utc=_o;Le.u
3570
3577
  /* 80px */
3571
3578
  --sp-spacing-20: 5rem;
3572
3579
  }
3573
- `,PC=ke`
3580
+ `,AC=ke`
3574
3581
  :host {
3575
3582
  --sp-font-family: Inter, sofiapro;
3576
3583
  --brz-font-family-fallback: system-ui, BlinkMacSystemFont, -apple-system,
@@ -3611,14 +3618,14 @@ Le.version="2.29.4";Ag(Kt);Le.fn=le;Le.min=bm;Le.max=Cm;Le.now=wm;Le.utc=_o;Le.u
3611
3618
  --sp-color-text-light: var(--sp-color-neutral-700);
3612
3619
  --sp-color-text-placeholder: var(--sp-color-neutral-600);
3613
3620
  }
3614
- `,EC=ke`
3621
+ `,DC=ke`
3615
3622
  :host {
3616
3623
  --sp-z-index-navigation: 1000;
3617
3624
  --sp-z-index-dialog: 1100;
3618
3625
  --sp-z-index-dropdown: 1200;
3619
3626
  --sp-z-index-tooltip: 1300;
3620
3627
  }
3621
- `;var AC=Object.defineProperty,DC=Object.getOwnPropertyDescriptor,IC=(r,n,o,c)=>{for(var f=c>1?void 0:c?DC(n,o):n,v=r.length-1,y;v>=0;v--)(y=r[v])&&(f=(c?y(n,o,f):y(f))||f);return c&&f&&AC(n,o,f),f};exports.GlobalStyles=class extends Ue{render(){return J`<slot></slot>`}};exports.GlobalStyles.styles=[MC,TC,PC,kC,OC,EC,ke`
3628
+ `;var IC=Object.defineProperty,zC=Object.getOwnPropertyDescriptor,NC=(r,n,o,c)=>{for(var f=c>1?void 0:c?zC(n,o):n,v=r.length-1,y;v>=0;v--)(y=r[v])&&(f=(c?y(n,o,f):y(f))||f);return c&&f&&IC(n,o,f),f};exports.GlobalStyles=class extends Ue{render(){return J`<slot></slot>`}};exports.GlobalStyles.styles=[TC,EC,AC,OC,PC,DC,ke`
3622
3629
  :host {
3623
3630
  /* --- Global styles --- */
3624
3631
  font-family: var(--sp-font-family), var(--brz-font-family-fallback);
@@ -3627,13 +3634,13 @@ Le.version="2.29.4";Ag(Kt);Le.fn=le;Le.min=bm;Le.max=Cm;Le.now=wm;Le.utc=_o;Le.u
3627
3634
  font-weight: var(--sp-font-weight-normal);
3628
3635
  color: var(--sp-color-text);
3629
3636
  }
3630
- `];exports.GlobalStyles=IC([De("sp-global-styles")],exports.GlobalStyles);var zC=Object.defineProperty,NC=Object.getOwnPropertyDescriptor,$C=(r,n,o,c)=>{for(var f=c>1?void 0:c?NC(n,o):n,v=r.length-1,y;v>=0;v--)(y=r[v])&&(f=(c?y(n,o,f):y(f))||f);return c&&f&&zC(n,o,f),f};exports.Header=class extends Ue{render(){return J`<slot></slot>`}};exports.Header.styles=ke`
3637
+ `];exports.GlobalStyles=NC([De("sp-global-styles")],exports.GlobalStyles);var $C=Object.defineProperty,RC=Object.getOwnPropertyDescriptor,HC=(r,n,o,c)=>{for(var f=c>1?void 0:c?RC(n,o):n,v=r.length-1,y;v>=0;v--)(y=r[v])&&(f=(c?y(n,o,f):y(f))||f);return c&&f&&$C(n,o,f),f};exports.Header=class extends Ue{render(){return J`<slot></slot>`}};exports.Header.styles=ke`
3631
3638
  :host {
3632
3639
  display: block;
3633
3640
  padding: var(--sp-spacing-5);
3634
3641
  margin-bottom: var(--sp-spacing-4);
3635
3642
  }
3636
- `;exports.Header=$C([De("sp-header")],exports.Header);var RC=Object.defineProperty,HC=Object.getOwnPropertyDescriptor,FC=(r,n,o,c)=>{for(var f=c>1?void 0:c?HC(n,o):n,v=r.length-1,y;v>=0;v--)(y=r[v])&&(f=(c?y(n,o,f):y(f))||f);return c&&f&&RC(n,o,f),f};exports.HeaderFooterPage=class extends Ue{render(){return J`
3643
+ `;exports.Header=HC([De("sp-header")],exports.Header);var FC=Object.defineProperty,WC=Object.getOwnPropertyDescriptor,BC=(r,n,o,c)=>{for(var f=c>1?void 0:c?WC(n,o):n,v=r.length-1,y;v>=0;v--)(y=r[v])&&(f=(c?y(n,o,f):y(f))||f);return c&&f&&FC(n,o,f),f};exports.HeaderFooterPage=class extends Ue{render(){return J`
3637
3644
  <div id="container">
3638
3645
  <div id="header"><slot name="header"></slot></div>
3639
3646
  <div id="body"><slot></slot></div>
@@ -3657,7 +3664,7 @@ Le.version="2.29.4";Ag(Kt);Le.fn=le;Le.min=bm;Le.max=Cm;Le.now=wm;Le.utc=_o;Le.u
3657
3664
  flex: 1 1;
3658
3665
  overflow-y: auto;
3659
3666
  }
3660
- `;exports.HeaderFooterPage=FC([De("sp-header-footer-page")],exports.HeaderFooterPage);var WC=Object.defineProperty,BC=Object.getOwnPropertyDescriptor,UC=(r,n,o,c)=>{for(var f=c>1?void 0:c?BC(n,o):n,v=r.length-1,y;v>=0;v--)(y=r[v])&&(f=(c?y(n,o,f):y(f))||f);return c&&f&&WC(n,o,f),f};exports.ResponsiveColumns=class extends Ue{render(){return J`<slot></slot>`}};exports.ResponsiveColumns.styles=ke`
3667
+ `;exports.HeaderFooterPage=BC([De("sp-header-footer-page")],exports.HeaderFooterPage);var UC=Object.defineProperty,YC=Object.getOwnPropertyDescriptor,ZC=(r,n,o,c)=>{for(var f=c>1?void 0:c?YC(n,o):n,v=r.length-1,y;v>=0;v--)(y=r[v])&&(f=(c?y(n,o,f):y(f))||f);return c&&f&&UC(n,o,f),f};exports.ResponsiveColumns=class extends Ue{render(){return J`<slot></slot>`}};exports.ResponsiveColumns.styles=ke`
3661
3668
  :host {
3662
3669
  display: flex;
3663
3670
  flex-direction: row;
@@ -3689,7 +3696,7 @@ Le.version="2.29.4";Ag(Kt);Le.fn=le;Le.min=bm;Le.max=Cm;Le.now=wm;Le.utc=_o;Le.u
3689
3696
  margin-bottom: var(--sp-padding, var(--sp-spacing-8));
3690
3697
  }
3691
3698
  }
3692
- `;exports.ResponsiveColumns=UC([De("sp-responsive-columns")],exports.ResponsiveColumns);var YC=Object.defineProperty,ZC=Object.getOwnPropertyDescriptor,VC=(r,n,o,c)=>{for(var f=c>1?void 0:c?ZC(n,o):n,v=r.length-1,y;v>=0;v--)(y=r[v])&&(f=(c?y(n,o,f):y(f))||f);return c&&f&&YC(n,o,f),f};exports.Footer=class extends Ue{render(){return J`<div class="container">
3699
+ `;exports.ResponsiveColumns=ZC([De("sp-responsive-columns")],exports.ResponsiveColumns);var VC=Object.defineProperty,GC=Object.getOwnPropertyDescriptor,qC=(r,n,o,c)=>{for(var f=c>1?void 0:c?GC(n,o):n,v=r.length-1,y;v>=0;v--)(y=r[v])&&(f=(c?y(n,o,f):y(f))||f);return c&&f&&VC(n,o,f),f};exports.Footer=class extends Ue{render(){return J`<div class="container">
3693
3700
  <slot name="left"></slot>
3694
3701
  <slot name="middle"></slot>
3695
3702
  <slot name="right"></slot>
@@ -3700,7 +3707,7 @@ Le.version="2.29.4";Ag(Kt);Le.fn=le;Le.min=bm;Le.max=Cm;Le.now=wm;Le.utc=_o;Le.u
3700
3707
  justify-content: space-between;
3701
3708
  padding: var(--sp-spacing-3) var(--sp-spacing-4);
3702
3709
  }
3703
- `;exports.Footer=VC([De("sp-footer")],exports.Footer);var GC=Object.defineProperty,qC=Object.getOwnPropertyDescriptor,xh=(r,n,o,c)=>{for(var f=c>1?void 0:c?qC(n,o):n,v=r.length-1,y;v>=0;v--)(y=r[v])&&(f=(c?y(n,o,f):y(f))||f);return c&&f&&GC(n,o,f),f};const S4=Sr("paper");exports.Paper=class extends Ue{constructor(){super(...arguments),this.hasBorder=!1,this.level=1}render(){return J` <div class="container"><slot></slot></div> `}};exports.Paper.styles=ke`
3710
+ `;exports.Footer=qC([De("sp-footer")],exports.Footer);var jC=Object.defineProperty,KC=Object.getOwnPropertyDescriptor,_h=(r,n,o,c)=>{for(var f=c>1?void 0:c?KC(n,o):n,v=r.length-1,y;v>=0;v--)(y=r[v])&&(f=(c?y(n,o,f):y(f))||f);return c&&f&&jC(n,o,f),f};const M4=Sr("paper");exports.Paper=class extends Ue{constructor(){super(...arguments),this.hasBorder=!1,this.level=1}render(){return J` <div class="container"><slot></slot></div> `}};exports.Paper.styles=ke`
3704
3711
  :host {
3705
3712
  display: block;
3706
3713
  position: relative;
@@ -3724,4 +3731,4 @@ Le.version="2.29.4";Ag(Kt);Le.fn=le;Le.min=bm;Le.max=Cm;Le.now=wm;Le.utc=_o;Le.u
3724
3731
  :host([has-border]) .container {
3725
3732
  border: 1px solid var(--sp-color-neutral-300);
3726
3733
  }
3727
- `;xh([W({type:Boolean,attribute:"has-border",reflect:!0})],exports.Paper.prototype,"hasBorder",2);xh([W({type:Number,reflect:!0})],exports.Paper.prototype,"level",2);exports.Paper=xh([De(S4)],exports.Paper);exports.ALERT=_4;exports.BUTTON=Bd;exports.ConfirmationDialogCancel=h2;exports.ConfirmationDialogConfirm=p2;exports.DeleteLozengeEvent=x2;exports.ILLUSTRATION=L4;exports.INPUT_TIME=p4;exports.InputBase=xo;exports.InputSelectBase=ei;exports.MENU=C2;exports.MENU_ITEM=xc;exports.ModalCloseEvent=Yd;exports.NO_RESULTS_ID=jd;exports.PAPER=S4;exports.POPOVER_LISTENABLE_EVENT_TYPES=wc;exports.POPOVER_ROLES=Wd;exports.POPOVER_TRIGGERS=s2;exports.TIME_FORMAT=v4;exports.TIME_REGEX_12H=y4;exports.TIME_REGEX_24H=m4;exports.TIME_REGEX_LOOSE=g4;exports.TabSelectedEvent=Kc;exports.VIRTUAL_LIST=qd;exports.avatar=l2;exports.avatarGroup=u2;exports.badge=x4;exports.basicPagination=bh;exports.click=Cc;exports.emit=w2;exports.focus=Wa;exports.hover=yd;exports.iconNames=Cv;exports.icons=Zd;exports.illustrationNames=_C;exports.illustrations=wh;exports.inputLabel=g2;exports.labeledInput=v2;exports.pagination=Ch;exports.popover=Fd;exports.purePopover=o2;exports.tooltip=a2;exports.transformIcon=f2;
3734
+ `;_h([W({type:Boolean,attribute:"has-border",reflect:!0})],exports.Paper.prototype,"hasBorder",2);_h([W({type:Number,reflect:!0})],exports.Paper.prototype,"level",2);exports.Paper=_h([De(M4)],exports.Paper);exports.ALERT=S4;exports.BUTTON=Ud;exports.ConfirmationDialogCancel=v2;exports.ConfirmationDialogConfirm=g2;exports.DeleteLozengeEvent=L2;exports.ILLUSTRATION=k4;exports.INPUT_TIME=g4;exports.InputBase=xo;exports.InputSelectBase=ei;exports.MENU=x2;exports.MENU_ITEM=xc;exports.ModalCloseEvent=Zd;exports.NO_RESULTS_ID=Kd;exports.PAPER=M4;exports.POPOVER_LISTENABLE_EVENT_TYPES=wc;exports.POPOVER_ROLES=Bd;exports.POPOVER_TRIGGERS=l2;exports.TIME_FORMAT=m4;exports.TIME_REGEX_12H=C4;exports.TIME_REGEX_24H=b4;exports.TIME_REGEX_LOOSE=y4;exports.TabSelectedEvent=Kc;exports.VIRTUAL_LIST=jd;exports.avatar=c2;exports.avatarGroup=f2;exports.badge=L4;exports.basicPagination=Ch;exports.click=Cc;exports.emit=_2;exports.focus=Wa;exports.hover=bd;exports.iconNames=xv;exports.icons=Vd;exports.illustrationNames=SC;exports.illustrations=xh;exports.inputLabel=y2;exports.labeledInput=m2;exports.pagination=wh;exports.popover=Wd;exports.purePopover=a2;exports.tooltip=u2;exports.transformIcon=h2;