@serve.zone/dcrouter 7.4.1 → 7.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist_serve/bundle.js +71 -71
- package/dist_ts/00_commitinfo_data.js +1 -1
- package/dist_ts/monitoring/classes.metricsmanager.js +7 -1
- package/dist_ts/remoteingress/classes.tunnel-manager.js +2 -6
- package/dist_ts_web/00_commitinfo_data.js +1 -1
- package/dist_ts_web/elements/ops-view-network.d.ts +0 -3
- package/dist_ts_web/elements/ops-view-network.js +13 -19
- package/package.json +1 -1
- package/ts/00_commitinfo_data.ts +1 -1
- package/ts/monitoring/classes.metricsmanager.ts +9 -0
- package/ts/remoteingress/classes.tunnel-manager.ts +1 -5
- package/ts_web/00_commitinfo_data.ts +1 -1
- package/ts_web/elements/ops-view-network.ts +13 -18
package/dist_serve/bundle.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
var HU=Object.create,FU=Object.freeze,_o=Object.defineProperty;var qU=Object.getOwnPropertyDescriptor;var SMt=Object.getOwnPropertyNames;var kMt=Object.getPrototypeOf,CMt=Object.prototype.hasOwnProperty;var VU=(t,e)=>(e=Symbol[t])?e:Symbol.for("Symbol."+t),k4=t=>{throw TypeError(t)};var jU=(t,e,a)=>e in t?_o(t,e,{enumerable:!0,configurable:!0,writable:!0,value:a}):t[e]=a;var RU=(t,e)=>_o(t,"name",{value:e,configurable:!0}),wd=(t=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(t,{get:(e,a)=>(typeof require<"u"?require:e)[a]}):t)(function(t){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+t+'" is not supported')});var v=(t,e)=>()=>(t&&(e=t(t=0)),e);var pt=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),Qe=(t,e)=>{for(var a in e)_o(t,a,{get:e[a],enumerable:!0})},TMt=(t,e,a,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of SMt(e))!CMt.call(t,r)&&r!==a&&_o(t,r,{get:()=>e[r],enumerable:!(i=qU(e,r))||i.enumerable});return t};var B1=(t,e,a)=>(a=t!=null?HU(kMt(t)):{},TMt(e||!t||!t.__esModule?_o(a,"default",{value:t,enumerable:!0}):a,t));var Y1=t=>[,,,HU(t?.[VU("metadata")]??null)],UU=["class","method","getter","setter","accessor","field","value","get","set"],uc=t=>t!==void 0&&typeof t!="function"?k4("Function expected"):t,_Mt=(t,e,a,i,r)=>({kind:UU[t],name:e,metadata:i,addInitializer:s=>a._?k4("Already initialized"):r.push(uc(s||null))}),LMt=(t,e)=>jU(e,VU("metadata"),t[3]),Re=(t,e,a,i)=>{for(var r=0,s=t[e>>1],n=s&&s.length;r<n;r++)e&1?s[r].call(a):i=s[r].call(a,i);return i},dt=(t,e,a,i,r,s)=>{var n,o,l,d,u,c=e&7,f=!!(e&8),g=!!(e&16),y=c>3?t.length+1:c?f?1:2:0,b=UU[c+5],m=c>3&&(t[y-1]=[]),x=t[y]||(t[y]=[]),M=c&&(!g&&!f&&(r=r.prototype),c<5&&(c>3||!g)&&qU(c<4?r:{get[a](){return OU(this,s)},set[a](F){return BU(this,s,F)}},a));c?g&&c<4&&RU(s,(c>2?"set ":c>1?"get ":"")+a):RU(r,a);for(var k=i.length-1;k>=0;k--)d=_Mt(c,a,l={},t[3],x),c&&(d.static=f,d.private=g,u=d.access={has:g?F=>$Mt(r,F):F=>a in F},c^3&&(u.get=g?F=>(c^1?OU:AMt)(F,r,c^4?s:M.get):F=>F[a]),c>2&&(u.set=g?(F,T)=>BU(F,r,T,c^4?s:M.set):(F,T)=>F[a]=T)),o=(0,i[k])(c?c<4?g?s:M[b]:c>4?void 0:{get:M.get,set:M.set}:r,d),l._=1,c^4||o===void 0?uc(o)&&(c>4?m.unshift(o):c?g?s=o:M[b]=o:r=o):typeof o!="object"||o===null?k4("Object expected"):(uc(n=o.get)&&(M.get=n),uc(n=o.set)&&(M.set=n),uc(n=o.init)&&m.unshift(n));return c||LMt(t,r),M&&_o(r,a,M),g?c^4?s:M:r},i1=(t,e,a)=>jU(t,typeof e!="symbol"?e+"":e,a),Ow=(t,e,a)=>e.has(t)||k4("Cannot "+a),$Mt=(t,e)=>Object(e)!==e?k4('Cannot use the "in" operator on this value'):t.has(e),OU=(t,e,a)=>(Ow(t,e,"read from private field"),a?a.call(t):e.get(t)),kt=(t,e,a)=>e.has(t)?k4("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,a),BU=(t,e,a,i)=>(Ow(t,e,"write to private field"),i?i.call(t,a):e.set(t,a),a),AMt=(t,e,a)=>(Ow(t,e,"access private method"),a);var C4=(t,e)=>FU(_o(t,"raw",{value:FU(e||t.slice())}));var Md,pc,Bw,WU,T4,Vt,X,zd,hc,Hw=v(()=>{Md=globalThis,pc=Md.ShadowRoot&&(Md.ShadyCSS===void 0||Md.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Bw=Symbol(),WU=new WeakMap,T4=class{constructor(e,a,i){if(this._$cssResult$=!0,i!==Bw)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=a}get styleSheet(){let e=this.o,a=this.t;if(pc&&e===void 0){let i=a!==void 0&&a.length===1;i&&(e=WU.get(a)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),i&&WU.set(a,e))}return e}toString(){return this.cssText}},Vt=t=>new T4(typeof t=="string"?t:t+"",void 0,Bw),X=(t,...e)=>{let a=t.length===1?t[0]:e.reduce((i,r,s)=>i+(n=>{if(n._$cssResult$===!0)return n.cssText;if(typeof n=="number")return n;throw Error("Value passed to 'css' function must be a 'css' function result: "+n+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(r)+t[s+1],t[0]);return new T4(a,t,Bw)},zd=(t,e)=>{if(pc)t.adoptedStyleSheets=e.map(a=>a instanceof CSSStyleSheet?a:a.styleSheet);else for(let a of e){let i=document.createElement("style"),r=Md.litNonce;r!==void 0&&i.setAttribute("nonce",r),i.textContent=a.cssText,t.appendChild(i)}},hc=pc?t=>t:t=>t instanceof CSSStyleSheet?(e=>{let a="";for(let i of e.cssRules)a+=i.cssText;return Vt(a)})(t):t});var DMt,EMt,PMt,NMt,IMt,FMt,Sd,GU,RMt,OMt,fc,_4,mc,YU,ur,gc=v(()=>{Hw();Hw();({is:DMt,defineProperty:EMt,getOwnPropertyDescriptor:PMt,getOwnPropertyNames:NMt,getOwnPropertySymbols:IMt,getPrototypeOf:FMt}=Object),Sd=globalThis,GU=Sd.trustedTypes,RMt=GU?GU.emptyScript:"",OMt=Sd.reactiveElementPolyfillSupport,fc=(t,e)=>t,_4={toAttribute(t,e){switch(e){case Boolean:t=t?RMt:null;break;case Object:case Array:t=t==null?t:JSON.stringify(t)}return t},fromAttribute(t,e){let a=t;switch(e){case Boolean:a=t!==null;break;case Number:a=t===null?null:Number(t);break;case Object:case Array:try{a=JSON.parse(t)}catch{a=null}}return a}},mc=(t,e)=>!DMt(t,e),YU={attribute:!0,type:String,converter:_4,reflect:!1,useDefault:!1,hasChanged:mc};Symbol.metadata??=Symbol("metadata"),Sd.litPropertyMetadata??=new WeakMap;ur=class extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??=[]).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,a=YU){if(a.state&&(a.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(e)&&((a=Object.create(a)).wrapped=!0),this.elementProperties.set(e,a),!a.noAccessor){let i=Symbol(),r=this.getPropertyDescriptor(e,i,a);r!==void 0&&EMt(this.prototype,e,r)}}static getPropertyDescriptor(e,a,i){let{get:r,set:s}=PMt(this.prototype,e)??{get(){return this[a]},set(n){this[a]=n}};return{get:r,set(n){let o=r?.call(this);s?.call(this,n),this.requestUpdate(e,o,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??YU}static _$Ei(){if(this.hasOwnProperty(fc("elementProperties")))return;let e=FMt(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(fc("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(fc("properties"))){let a=this.properties,i=[...NMt(a),...IMt(a)];for(let r of i)this.createProperty(r,a[r])}let e=this[Symbol.metadata];if(e!==null){let a=litPropertyMetadata.get(e);if(a!==void 0)for(let[i,r]of a)this.elementProperties.set(i,r)}this._$Eh=new Map;for(let[a,i]of this.elementProperties){let r=this._$Eu(a,i);r!==void 0&&this._$Eh.set(r,a)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){let a=[];if(Array.isArray(e)){let i=new Set(e.flat(1/0).reverse());for(let r of i)a.unshift(hc(r))}else e!==void 0&&a.push(hc(e));return a}static _$Eu(e,a){let i=a.attribute;return i===!1?void 0:typeof i=="string"?i:typeof e=="string"?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(e=>e(this))}addController(e){(this._$EO??=new Set).add(e),this.renderRoot!==void 0&&this.isConnected&&e.hostConnected?.()}removeController(e){this._$EO?.delete(e)}_$E_(){let e=new Map,a=this.constructor.elementProperties;for(let i of a.keys())this.hasOwnProperty(i)&&(e.set(i,this[i]),delete this[i]);e.size>0&&(this._$Ep=e)}createRenderRoot(){let e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return zd(e,this.constructor.elementStyles),e}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(e=>e.hostConnected?.())}enableUpdating(e){}disconnectedCallback(){this._$EO?.forEach(e=>e.hostDisconnected?.())}attributeChangedCallback(e,a,i){this._$AK(e,i)}_$ET(e,a){let i=this.constructor.elementProperties.get(e),r=this.constructor._$Eu(e,i);if(r!==void 0&&i.reflect===!0){let s=(i.converter?.toAttribute!==void 0?i.converter:_4).toAttribute(a,i.type);this._$Em=e,s==null?this.removeAttribute(r):this.setAttribute(r,s),this._$Em=null}}_$AK(e,a){let i=this.constructor,r=i._$Eh.get(e);if(r!==void 0&&this._$Em!==r){let s=i.getPropertyOptions(r),n=typeof s.converter=="function"?{fromAttribute:s.converter}:s.converter?.fromAttribute!==void 0?s.converter:_4;this._$Em=r;let o=n.fromAttribute(a,s.type);this[r]=o??this._$Ej?.get(r)??o,this._$Em=null}}requestUpdate(e,a,i,r=!1,s){if(e!==void 0){let n=this.constructor;if(r===!1&&(s=this[e]),i??=n.getPropertyOptions(e),!((i.hasChanged??mc)(s,a)||i.useDefault&&i.reflect&&s===this._$Ej?.get(e)&&!this.hasAttribute(n._$Eu(e,i))))return;this.C(e,a,i)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(e,a,{useDefault:i,reflect:r,wrapped:s},n){i&&!(this._$Ej??=new Map).has(e)&&(this._$Ej.set(e,n??a??this[e]),s!==!0||n!==void 0)||(this._$AL.has(e)||(this.hasUpdated||i||(a=void 0),this._$AL.set(e,a)),r===!0&&this._$Em!==e&&(this._$Eq??=new Set).add(e))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(a){Promise.reject(a)}let e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[r,s]of this._$Ep)this[r]=s;this._$Ep=void 0}let i=this.constructor.elementProperties;if(i.size>0)for(let[r,s]of i){let{wrapped:n}=s,o=this[r];n!==!0||this._$AL.has(r)||o===void 0||this.C(r,void 0,s,o)}}let e=!1,a=this._$AL;try{e=this.shouldUpdate(a),e?(this.willUpdate(a),this._$EO?.forEach(i=>i.hostUpdate?.()),this.update(a)):this._$EM()}catch(i){throw e=!1,this._$EM(),i}e&&this._$AE(a)}willUpdate(e){}_$AE(e){this._$EO?.forEach(a=>a.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Eq&&=this._$Eq.forEach(a=>this._$ET(a,this[a])),this._$EM()}updated(e){}firstUpdated(e){}};ur.elementStyles=[],ur.shadowRootOptions={mode:"open"},ur[fc("elementProperties")]=new Map,ur[fc("finalized")]=new Map,OMt?.({ReactiveElement:ur}),(Sd.reactiveElementVersions??=[]).push("2.1.2")});function rW(t,e){if(!Uw(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return XU!==void 0?XU.createHTML(e):e}function Do(t,e,a=t,i){if(e===g1)return e;let r=i!==void 0?a._$Co?.[i]:a._$Cl,s=vc(e)?void 0:e._$litDirective$;return r?.constructor!==s&&(r?._$AO?.(!1),s===void 0?r=void 0:(r=new s(t),r._$AT(t,a,i)),i!==void 0?(a._$Co??=[])[i]=r:a._$Cl=r),r!==void 0&&(e=Do(t,r._$AS(t,e.values),r,i)),e}var qw,ZU,kd,XU,Vw,is,jw,BMt,Lo,bc,vc,Uw,QU,Ww,yc,KU,JU,$o,eW,tW,aW,Gw,w,Yw,Zw,g1,k1,iW,Ao,sW,xc,Cd,L4,Eo,Td,_d,Ld,$d,Xw,HMt,hn,Pi=v(()=>{qw=globalThis,ZU=t=>t,kd=qw.trustedTypes,XU=kd?kd.createPolicy("lit-html",{createHTML:t=>t}):void 0,Vw="$lit$",is=`lit$${Math.random().toFixed(9).slice(2)}$`,jw="?"+is,BMt=`<${jw}>`,Lo=document,bc=()=>Lo.createComment(""),vc=t=>t===null||typeof t!="object"&&typeof t!="function",Uw=Array.isArray,QU=t=>Uw(t)||typeof t?.[Symbol.iterator]=="function",Ww=`[
|
|
1
|
+
var HU=Object.create,FU=Object.freeze,_o=Object.defineProperty;var qU=Object.getOwnPropertyDescriptor;var SMt=Object.getOwnPropertyNames;var kMt=Object.getPrototypeOf,CMt=Object.prototype.hasOwnProperty;var VU=(t,e)=>(e=Symbol[t])?e:Symbol.for("Symbol."+t),k4=t=>{throw TypeError(t)};var jU=(t,e,a)=>e in t?_o(t,e,{enumerable:!0,configurable:!0,writable:!0,value:a}):t[e]=a;var RU=(t,e)=>_o(t,"name",{value:e,configurable:!0}),wd=(t=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(t,{get:(e,a)=>(typeof require<"u"?require:e)[a]}):t)(function(t){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+t+'" is not supported')});var v=(t,e)=>()=>(t&&(e=t(t=0)),e);var pt=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),Qe=(t,e)=>{for(var a in e)_o(t,a,{get:e[a],enumerable:!0})},TMt=(t,e,a,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of SMt(e))!CMt.call(t,r)&&r!==a&&_o(t,r,{get:()=>e[r],enumerable:!(i=qU(e,r))||i.enumerable});return t};var B1=(t,e,a)=>(a=t!=null?HU(kMt(t)):{},TMt(e||!t||!t.__esModule?_o(a,"default",{value:t,enumerable:!0}):a,t));var Y1=t=>[,,,HU(t?.[VU("metadata")]??null)],UU=["class","method","getter","setter","accessor","field","value","get","set"],uc=t=>t!==void 0&&typeof t!="function"?k4("Function expected"):t,_Mt=(t,e,a,i,r)=>({kind:UU[t],name:e,metadata:i,addInitializer:s=>a._?k4("Already initialized"):r.push(uc(s||null))}),LMt=(t,e)=>jU(e,VU("metadata"),t[3]),Re=(t,e,a,i)=>{for(var r=0,s=t[e>>1],n=s&&s.length;r<n;r++)e&1?s[r].call(a):i=s[r].call(a,i);return i},dt=(t,e,a,i,r,s)=>{var n,o,l,d,u,c=e&7,f=!!(e&8),g=!!(e&16),y=c>3?t.length+1:c?f?1:2:0,b=UU[c+5],m=c>3&&(t[y-1]=[]),x=t[y]||(t[y]=[]),M=c&&(!g&&!f&&(r=r.prototype),c<5&&(c>3||!g)&&qU(c<4?r:{get[a](){return OU(this,s)},set[a](F){return BU(this,s,F)}},a));c?g&&c<4&&RU(s,(c>2?"set ":c>1?"get ":"")+a):RU(r,a);for(var k=i.length-1;k>=0;k--)d=_Mt(c,a,l={},t[3],x),c&&(d.static=f,d.private=g,u=d.access={has:g?F=>$Mt(r,F):F=>a in F},c^3&&(u.get=g?F=>(c^1?OU:AMt)(F,r,c^4?s:M.get):F=>F[a]),c>2&&(u.set=g?(F,T)=>BU(F,r,T,c^4?s:M.set):(F,T)=>F[a]=T)),o=(0,i[k])(c?c<4?g?s:M[b]:c>4?void 0:{get:M.get,set:M.set}:r,d),l._=1,c^4||o===void 0?uc(o)&&(c>4?m.unshift(o):c?g?s=o:M[b]=o:r=o):typeof o!="object"||o===null?k4("Object expected"):(uc(n=o.get)&&(M.get=n),uc(n=o.set)&&(M.set=n),uc(n=o.init)&&m.unshift(n));return c||LMt(t,r),M&&_o(r,a,M),g?c^4?s:M:r},h1=(t,e,a)=>jU(t,typeof e!="symbol"?e+"":e,a),Ow=(t,e,a)=>e.has(t)||k4("Cannot "+a),$Mt=(t,e)=>Object(e)!==e?k4('Cannot use the "in" operator on this value'):t.has(e),OU=(t,e,a)=>(Ow(t,e,"read from private field"),a?a.call(t):e.get(t)),kt=(t,e,a)=>e.has(t)?k4("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,a),BU=(t,e,a,i)=>(Ow(t,e,"write to private field"),i?i.call(t,a):e.set(t,a),a),AMt=(t,e,a)=>(Ow(t,e,"access private method"),a);var C4=(t,e)=>FU(_o(t,"raw",{value:FU(e||t.slice())}));var Md,pc,Bw,WU,T4,Vt,X,zd,hc,Hw=v(()=>{Md=globalThis,pc=Md.ShadowRoot&&(Md.ShadyCSS===void 0||Md.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Bw=Symbol(),WU=new WeakMap,T4=class{constructor(e,a,i){if(this._$cssResult$=!0,i!==Bw)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=a}get styleSheet(){let e=this.o,a=this.t;if(pc&&e===void 0){let i=a!==void 0&&a.length===1;i&&(e=WU.get(a)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),i&&WU.set(a,e))}return e}toString(){return this.cssText}},Vt=t=>new T4(typeof t=="string"?t:t+"",void 0,Bw),X=(t,...e)=>{let a=t.length===1?t[0]:e.reduce((i,r,s)=>i+(n=>{if(n._$cssResult$===!0)return n.cssText;if(typeof n=="number")return n;throw Error("Value passed to 'css' function must be a 'css' function result: "+n+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(r)+t[s+1],t[0]);return new T4(a,t,Bw)},zd=(t,e)=>{if(pc)t.adoptedStyleSheets=e.map(a=>a instanceof CSSStyleSheet?a:a.styleSheet);else for(let a of e){let i=document.createElement("style"),r=Md.litNonce;r!==void 0&&i.setAttribute("nonce",r),i.textContent=a.cssText,t.appendChild(i)}},hc=pc?t=>t:t=>t instanceof CSSStyleSheet?(e=>{let a="";for(let i of e.cssRules)a+=i.cssText;return Vt(a)})(t):t});var DMt,EMt,PMt,NMt,IMt,FMt,Sd,GU,RMt,OMt,fc,_4,mc,YU,ur,gc=v(()=>{Hw();Hw();({is:DMt,defineProperty:EMt,getOwnPropertyDescriptor:PMt,getOwnPropertyNames:NMt,getOwnPropertySymbols:IMt,getPrototypeOf:FMt}=Object),Sd=globalThis,GU=Sd.trustedTypes,RMt=GU?GU.emptyScript:"",OMt=Sd.reactiveElementPolyfillSupport,fc=(t,e)=>t,_4={toAttribute(t,e){switch(e){case Boolean:t=t?RMt:null;break;case Object:case Array:t=t==null?t:JSON.stringify(t)}return t},fromAttribute(t,e){let a=t;switch(e){case Boolean:a=t!==null;break;case Number:a=t===null?null:Number(t);break;case Object:case Array:try{a=JSON.parse(t)}catch{a=null}}return a}},mc=(t,e)=>!DMt(t,e),YU={attribute:!0,type:String,converter:_4,reflect:!1,useDefault:!1,hasChanged:mc};Symbol.metadata??=Symbol("metadata"),Sd.litPropertyMetadata??=new WeakMap;ur=class extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??=[]).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,a=YU){if(a.state&&(a.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(e)&&((a=Object.create(a)).wrapped=!0),this.elementProperties.set(e,a),!a.noAccessor){let i=Symbol(),r=this.getPropertyDescriptor(e,i,a);r!==void 0&&EMt(this.prototype,e,r)}}static getPropertyDescriptor(e,a,i){let{get:r,set:s}=PMt(this.prototype,e)??{get(){return this[a]},set(n){this[a]=n}};return{get:r,set(n){let o=r?.call(this);s?.call(this,n),this.requestUpdate(e,o,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??YU}static _$Ei(){if(this.hasOwnProperty(fc("elementProperties")))return;let e=FMt(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(fc("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(fc("properties"))){let a=this.properties,i=[...NMt(a),...IMt(a)];for(let r of i)this.createProperty(r,a[r])}let e=this[Symbol.metadata];if(e!==null){let a=litPropertyMetadata.get(e);if(a!==void 0)for(let[i,r]of a)this.elementProperties.set(i,r)}this._$Eh=new Map;for(let[a,i]of this.elementProperties){let r=this._$Eu(a,i);r!==void 0&&this._$Eh.set(r,a)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){let a=[];if(Array.isArray(e)){let i=new Set(e.flat(1/0).reverse());for(let r of i)a.unshift(hc(r))}else e!==void 0&&a.push(hc(e));return a}static _$Eu(e,a){let i=a.attribute;return i===!1?void 0:typeof i=="string"?i:typeof e=="string"?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(e=>e(this))}addController(e){(this._$EO??=new Set).add(e),this.renderRoot!==void 0&&this.isConnected&&e.hostConnected?.()}removeController(e){this._$EO?.delete(e)}_$E_(){let e=new Map,a=this.constructor.elementProperties;for(let i of a.keys())this.hasOwnProperty(i)&&(e.set(i,this[i]),delete this[i]);e.size>0&&(this._$Ep=e)}createRenderRoot(){let e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return zd(e,this.constructor.elementStyles),e}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(e=>e.hostConnected?.())}enableUpdating(e){}disconnectedCallback(){this._$EO?.forEach(e=>e.hostDisconnected?.())}attributeChangedCallback(e,a,i){this._$AK(e,i)}_$ET(e,a){let i=this.constructor.elementProperties.get(e),r=this.constructor._$Eu(e,i);if(r!==void 0&&i.reflect===!0){let s=(i.converter?.toAttribute!==void 0?i.converter:_4).toAttribute(a,i.type);this._$Em=e,s==null?this.removeAttribute(r):this.setAttribute(r,s),this._$Em=null}}_$AK(e,a){let i=this.constructor,r=i._$Eh.get(e);if(r!==void 0&&this._$Em!==r){let s=i.getPropertyOptions(r),n=typeof s.converter=="function"?{fromAttribute:s.converter}:s.converter?.fromAttribute!==void 0?s.converter:_4;this._$Em=r;let o=n.fromAttribute(a,s.type);this[r]=o??this._$Ej?.get(r)??o,this._$Em=null}}requestUpdate(e,a,i,r=!1,s){if(e!==void 0){let n=this.constructor;if(r===!1&&(s=this[e]),i??=n.getPropertyOptions(e),!((i.hasChanged??mc)(s,a)||i.useDefault&&i.reflect&&s===this._$Ej?.get(e)&&!this.hasAttribute(n._$Eu(e,i))))return;this.C(e,a,i)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(e,a,{useDefault:i,reflect:r,wrapped:s},n){i&&!(this._$Ej??=new Map).has(e)&&(this._$Ej.set(e,n??a??this[e]),s!==!0||n!==void 0)||(this._$AL.has(e)||(this.hasUpdated||i||(a=void 0),this._$AL.set(e,a)),r===!0&&this._$Em!==e&&(this._$Eq??=new Set).add(e))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(a){Promise.reject(a)}let e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[r,s]of this._$Ep)this[r]=s;this._$Ep=void 0}let i=this.constructor.elementProperties;if(i.size>0)for(let[r,s]of i){let{wrapped:n}=s,o=this[r];n!==!0||this._$AL.has(r)||o===void 0||this.C(r,void 0,s,o)}}let e=!1,a=this._$AL;try{e=this.shouldUpdate(a),e?(this.willUpdate(a),this._$EO?.forEach(i=>i.hostUpdate?.()),this.update(a)):this._$EM()}catch(i){throw e=!1,this._$EM(),i}e&&this._$AE(a)}willUpdate(e){}_$AE(e){this._$EO?.forEach(a=>a.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Eq&&=this._$Eq.forEach(a=>this._$ET(a,this[a])),this._$EM()}updated(e){}firstUpdated(e){}};ur.elementStyles=[],ur.shadowRootOptions={mode:"open"},ur[fc("elementProperties")]=new Map,ur[fc("finalized")]=new Map,OMt?.({ReactiveElement:ur}),(Sd.reactiveElementVersions??=[]).push("2.1.2")});function rW(t,e){if(!Uw(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return XU!==void 0?XU.createHTML(e):e}function Do(t,e,a=t,i){if(e===g1)return e;let r=i!==void 0?a._$Co?.[i]:a._$Cl,s=vc(e)?void 0:e._$litDirective$;return r?.constructor!==s&&(r?._$AO?.(!1),s===void 0?r=void 0:(r=new s(t),r._$AT(t,a,i)),i!==void 0?(a._$Co??=[])[i]=r:a._$Cl=r),r!==void 0&&(e=Do(t,r._$AS(t,e.values),r,i)),e}var qw,ZU,kd,XU,Vw,is,jw,BMt,Lo,bc,vc,Uw,QU,Ww,yc,KU,JU,$o,eW,tW,aW,Gw,w,Yw,Zw,g1,k1,iW,Ao,sW,xc,Cd,L4,Eo,Td,_d,Ld,$d,Xw,HMt,hn,Pi=v(()=>{qw=globalThis,ZU=t=>t,kd=qw.trustedTypes,XU=kd?kd.createPolicy("lit-html",{createHTML:t=>t}):void 0,Vw="$lit$",is=`lit$${Math.random().toFixed(9).slice(2)}$`,jw="?"+is,BMt=`<${jw}>`,Lo=document,bc=()=>Lo.createComment(""),vc=t=>t===null||typeof t!="object"&&typeof t!="function",Uw=Array.isArray,QU=t=>Uw(t)||typeof t?.[Symbol.iterator]=="function",Ww=`[
|
|
2
2
|
\f\r]`,yc=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,KU=/-->/g,JU=/>/g,$o=RegExp(`>|${Ww}(?:([^\\s"'>=/]+)(${Ww}*=${Ww}*(?:[^
|
|
3
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),eW=/'/g,tW=/"/g,aW=/^(?:script|style|textarea|title)$/i,Gw=t=>(e,...a)=>({_$litType$:t,strings:e,values:a}),w=Gw(1),Yw=Gw(2),Zw=Gw(3),g1=Symbol.for("lit-noChange"),k1=Symbol.for("lit-nothing"),iW=new WeakMap,Ao=Lo.createTreeWalker(Lo,129);sW=(t,e)=>{let a=t.length-1,i=[],r,s=e===2?"<svg>":e===3?"<math>":"",n=yc;for(let o=0;o<a;o++){let l=t[o],d,u,c=-1,f=0;for(;f<l.length&&(n.lastIndex=f,u=n.exec(l),u!==null);)f=n.lastIndex,n===yc?u[1]==="!--"?n=KU:u[1]!==void 0?n=JU:u[2]!==void 0?(aW.test(u[2])&&(r=RegExp("</"+u[2],"g")),n=$o):u[3]!==void 0&&(n=$o):n===$o?u[0]===">"?(n=r??yc,c=-1):u[1]===void 0?c=-2:(c=n.lastIndex-u[2].length,d=u[1],n=u[3]===void 0?$o:u[3]==='"'?tW:eW):n===tW||n===eW?n=$o:n===KU||n===JU?n=yc:(n=$o,r=void 0);let g=n===$o&&t[o+1].startsWith("/>")?" ":"";s+=n===yc?l+BMt:c>=0?(i.push(d),l.slice(0,c)+Vw+l.slice(c)+is+g):l+is+(c===-2?o:g)}return[rW(t,s+(t[a]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),i]},xc=class t{constructor({strings:e,_$litType$:a},i){let r;this.parts=[];let s=0,n=0,o=e.length-1,l=this.parts,[d,u]=sW(e,a);if(this.el=t.createElement(d,i),Ao.currentNode=this.el.content,a===2||a===3){let c=this.el.content.firstChild;c.replaceWith(...c.childNodes)}for(;(r=Ao.nextNode())!==null&&l.length<o;){if(r.nodeType===1){if(r.hasAttributes())for(let c of r.getAttributeNames())if(c.endsWith(Vw)){let f=u[n++],g=r.getAttribute(c).split(is),y=/([.?@])?(.*)/.exec(f);l.push({type:1,index:s,name:y[2],strings:g,ctor:y[1]==="."?Td:y[1]==="?"?_d:y[1]==="@"?Ld:Eo}),r.removeAttribute(c)}else c.startsWith(is)&&(l.push({type:6,index:s}),r.removeAttribute(c));if(aW.test(r.tagName)){let c=r.textContent.split(is),f=c.length-1;if(f>0){r.textContent=kd?kd.emptyScript:"";for(let g=0;g<f;g++)r.append(c[g],bc()),Ao.nextNode(),l.push({type:2,index:++s});r.append(c[f],bc())}}}else if(r.nodeType===8)if(r.data===jw)l.push({type:2,index:s});else{let c=-1;for(;(c=r.data.indexOf(is,c+1))!==-1;)l.push({type:7,index:s}),c+=is.length-1}s++}}static createElement(e,a){let i=Lo.createElement("template");return i.innerHTML=e,i}};Cd=class{constructor(e,a){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=a}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){let{el:{content:a},parts:i}=this._$AD,r=(e?.creationScope??Lo).importNode(a,!0);Ao.currentNode=r;let s=Ao.nextNode(),n=0,o=0,l=i[0];for(;l!==void 0;){if(n===l.index){let d;l.type===2?d=new L4(s,s.nextSibling,this,e):l.type===1?d=new l.ctor(s,l.name,l.strings,this,e):l.type===6&&(d=new $d(s,this,e)),this._$AV.push(d),l=i[++o]}n!==l?.index&&(s=Ao.nextNode(),n++)}return Ao.currentNode=Lo,r}p(e){let a=0;for(let i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(e,i,a),a+=i.strings.length-2):i._$AI(e[a])),a++}},L4=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,a,i,r){this.type=2,this._$AH=k1,this._$AN=void 0,this._$AA=e,this._$AB=a,this._$AM=i,this.options=r,this._$Cv=r?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode,a=this._$AM;return a!==void 0&&e?.nodeType===11&&(e=a.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,a=this){e=Do(this,e,a),vc(e)?e===k1||e==null||e===""?(this._$AH!==k1&&this._$AR(),this._$AH=k1):e!==this._$AH&&e!==g1&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):QU(e)?this.k(e):this._(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==k1&&vc(this._$AH)?this._$AA.nextSibling.data=e:this.T(Lo.createTextNode(e)),this._$AH=e}$(e){let{values:a,_$litType$:i}=e,r=typeof i=="number"?this._$AC(e):(i.el===void 0&&(i.el=xc.createElement(rW(i.h,i.h[0]),this.options)),i);if(this._$AH?._$AD===r)this._$AH.p(a);else{let s=new Cd(r,this),n=s.u(this.options);s.p(a),this.T(n),this._$AH=s}}_$AC(e){let a=iW.get(e.strings);return a===void 0&&iW.set(e.strings,a=new xc(e)),a}k(e){Uw(this._$AH)||(this._$AH=[],this._$AR());let a=this._$AH,i,r=0;for(let s of e)r===a.length?a.push(i=new t(this.O(bc()),this.O(bc()),this,this.options)):i=a[r],i._$AI(s),r++;r<a.length&&(this._$AR(i&&i._$AB.nextSibling,r),a.length=r)}_$AR(e=this._$AA.nextSibling,a){for(this._$AP?.(!1,!0,a);e!==this._$AB;){let i=ZU(e).nextSibling;ZU(e).remove(),e=i}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},Eo=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,a,i,r,s){this.type=1,this._$AH=k1,this._$AN=void 0,this.element=e,this.name=a,this._$AM=r,this.options=s,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=k1}_$AI(e,a=this,i,r){let s=this.strings,n=!1;if(s===void 0)e=Do(this,e,a,0),n=!vc(e)||e!==this._$AH&&e!==g1,n&&(this._$AH=e);else{let o=e,l,d;for(e=s[0],l=0;l<s.length-1;l++)d=Do(this,o[i+l],a,l),d===g1&&(d=this._$AH[l]),n||=!vc(d)||d!==this._$AH[l],d===k1?e=k1:e!==k1&&(e+=(d??"")+s[l+1]),this._$AH[l]=d}n&&!r&&this.j(e)}j(e){e===k1?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},Td=class extends Eo{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===k1?void 0:e}},_d=class extends Eo{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==k1)}},Ld=class extends Eo{constructor(e,a,i,r,s){super(e,a,i,r,s),this.type=5}_$AI(e,a=this){if((e=Do(this,e,a,0)??k1)===g1)return;let i=this._$AH,r=e===k1&&i!==k1||e.capture!==i.capture||e.once!==i.once||e.passive!==i.passive,s=e!==k1&&(i===k1||r);r&&this.element.removeEventListener(this.name,this,i),s&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}},$d=class{constructor(e,a,i){this.element=e,this.type=6,this._$AN=void 0,this._$AM=a,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(e){Do(this,e)}},Xw={M:Vw,P:is,A:jw,C:1,L:sW,R:Cd,D:QU,V:Do,I:L4,H:Eo,N:_d,U:Ld,B:Td,F:$d},HMt=qw.litHtmlPolyfillSupport;HMt?.(xc,L4),(qw.litHtmlVersions??=[]).push("3.3.2");hn=(t,e,a)=>{let i=a?.renderBefore??e,r=i._$litPart$;if(r===void 0){let s=a?.renderBefore??null;i._$litPart$=r=new L4(e.insertBefore(bc(),s),s,void 0,a??{})}return r._$AI(t),r}});var Qw,rs,qMt,VMt,nW=v(()=>{gc();gc();Pi();Pi();Qw=globalThis,rs=class extends ur{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let e=super.createRenderRoot();return this.renderOptions.renderBefore??=e.firstChild,e}update(e){let a=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=hn(a,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return g1}};rs._$litElement$=!0,rs.finalized=!0,Qw.litElementHydrateSupport?.({LitElement:rs});qMt=Qw.litElementPolyfillSupport;qMt?.({LitElement:rs});VMt={_$AK:(t,e,a)=>{t._$AK(e,a)},_$AL:t=>t._$AL};(Qw.litElementVersions??=[]).push("4.2.2")});var jMt,oW=v(()=>{jMt=!1});var pr=v(()=>{gc();Pi();nW();oW()});var Dd=pt(Ad=>{"use strict";Object.defineProperty(Ad,"__esModule",{value:!0}),Ad.uni=void 0;var UMt=(t="uni")=>`${t}_${"xxxxxxxxxxxxxxxxxxxxxxxx".replace(/[xy]/g,e=>{let a=Math.random()*16|0;return(e==="x"?a:a&3|8).toString(16)})}`;Ad.uni=UMt});var Ed,fn,Pd=v(()=>{Ed=class{claim(){if(this.claimed)throw new Error("Deferred already claimed");this.claimed=!0}get duration(){return this.stoppedAt?this.stoppedAt-this.startedAt:Date.now()-this.startedAt}constructor(){this.claimed=!1,this.promise=new Promise((e,a)=>{this.resolve=i=>{this.status="fulfilled",this.stoppedAt=Date.now(),e(i)},this.reject=i=>{this.status="rejected",this.stoppedAt=Date.now(),a(i)},this.startedAt=Date.now(),this.status="pending"})}},fn=()=>new Ed});var Nd,WMt,lW=v(()=>{Pd();Nd=class{constructor(){this.accumulatedPromises=[],this.deferred=fn(),this.promise=this.deferred.promise,setTimeout(async()=>{for(;this.accumulatedPromises.length>0;)await this.accumulatedPromises.shift();this.deferred.resolve()},0)}subDefer(){let e=fn();return this.addPromise(e.promise),e}addPromise(e){this.accumulatedPromises.push(e)}},WMt=()=>new Nd});var He={};Qe(He,{CumulativeDeferred:()=>Nd,Deferred:()=>Ed,cumulativeDefer:()=>WMt,defer:()=>fn,fromCallback:()=>KMt,getFirstTrueOrFalse:()=>QMt,map:()=>ZMt,rejectedPromise:()=>YMt,resolvedPromise:()=>GMt,timeoutAndContinue:()=>XMt,timeoutWrap:()=>cW});var GMt,YMt,ZMt,cW,XMt,QMt,KMt,a2=v(()=>{Pd();lW();Pd();GMt=t=>Promise.resolve(t),YMt=t=>Promise.reject(t),ZMt=async(t,e)=>{let a=[],i=[];for(let r of t){let s=e(r);a.push(s),s.then(n=>{i.push(n)})}return await Promise.all(a),i},cW=async(t,e,a=!0)=>new Promise((i,r)=>{setTimeout(()=>{a?r(new Error("timeout")):i(null)},e),t.then(i,r)}),XMt=async(t,e=6e4)=>cW(t,e,!1),QMt=async t=>{let e=fn();for(let a of t)a.then(i=>{i===!0&&e.resolve(!0)});return Promise.all(t).then(()=>{e.resolve(!1)}),e.promise},KMt=t=>new Promise((e,a)=>{t((i,r)=>{i?a(i):e(r)})})});var Id=v(()=>{a2()});function Ct(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");Kw(t,e);function a(){this.constructor=t}t.prototype=e===null?Object.create(e):(a.prototype=e.prototype,new a)}function ezt(t,e){var a={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(a[i]=t[i]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,i=Object.getOwnPropertySymbols(t);r<i.length;r++)e.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(t,i[r])&&(a[i[r]]=t[i[r]]);return a}function tzt(t,e,a,i){var r=arguments.length,s=r<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,a):i,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,a,i);else for(var o=t.length-1;o>=0;o--)(n=t[o])&&(s=(r<3?n(s):r>3?n(e,a,s):n(e,a))||s);return r>3&&s&&Object.defineProperty(e,a,s),s}function azt(t,e){return function(a,i){e(a,i,t)}}function izt(t,e,a,i,r,s){function n(x){if(x!==void 0&&typeof x!="function")throw new TypeError("Function expected");return x}for(var o=i.kind,l=o==="getter"?"get":o==="setter"?"set":"value",d=!e&&t?i.static?t:t.prototype:null,u=e||(d?Object.getOwnPropertyDescriptor(d,i.name):{}),c,f=!1,g=a.length-1;g>=0;g--){var y={};for(var b in i)y[b]=b==="access"?{}:i[b];for(var b in i.access)y.access[b]=i.access[b];y.addInitializer=function(x){if(f)throw new TypeError("Cannot add initializers after decoration has completed");s.push(n(x||null))};var m=(0,a[g])(o==="accessor"?{get:u.get,set:u.set}:u[l],y);if(o==="accessor"){if(m===void 0)continue;if(m===null||typeof m!="object")throw new TypeError("Object expected");(c=n(m.get))&&(u.get=c),(c=n(m.set))&&(u.set=c),(c=n(m.init))&&r.unshift(c)}else(c=n(m))&&(o==="field"?r.unshift(c):u[l]=c)}d&&Object.defineProperty(d,i.name,u),f=!0}function rzt(t,e,a){for(var i=arguments.length>2,r=0;r<e.length;r++)a=i?e[r].call(t,a):e[r].call(t);return i?a:void 0}function szt(t){return typeof t=="symbol"?t:"".concat(t)}function nzt(t,e,a){return typeof e=="symbol"&&(e=e.description?"[".concat(e.description,"]"):""),Object.defineProperty(t,"name",{configurable:!0,value:a?"".concat(a," ",e):e})}function ozt(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}function aM(t,e,a,i){function r(s){return s instanceof a?s:new a(function(n){n(s)})}return new(a||(a=Promise))(function(s,n){function o(u){try{d(i.next(u))}catch(c){n(c)}}function l(u){try{d(i.throw(u))}catch(c){n(c)}}function d(u){u.done?s(u.value):r(u.value).then(o,l)}d((i=i.apply(t,e||[])).next())})}function wc(t,e){var a={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},i,r,s,n=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return n.next=o(0),n.throw=o(1),n.return=o(2),typeof Symbol=="function"&&(n[Symbol.iterator]=function(){return this}),n;function o(d){return function(u){return l([d,u])}}function l(d){if(i)throw new TypeError("Generator is already executing.");for(;n&&(n=0,d[0]&&(a=0)),a;)try{if(i=1,r&&(s=d[0]&2?r.return:d[0]?r.throw||((s=r.return)&&s.call(r),0):r.next)&&!(s=s.call(r,d[1])).done)return s;switch(r=0,s&&(d=[d[0]&2,s.value]),d[0]){case 0:case 1:s=d;break;case 4:return a.label++,{value:d[1],done:!1};case 5:a.label++,r=d[1],d=[0];continue;case 7:d=a.ops.pop(),a.trys.pop();continue;default:if(s=a.trys,!(s=s.length>0&&s[s.length-1])&&(d[0]===6||d[0]===2)){a=0;continue}if(d[0]===3&&(!s||d[1]>s[0]&&d[1]<s[3])){a.label=d[1];break}if(d[0]===6&&a.label<s[1]){a.label=s[1],s=d;break}if(s&&a.label<s[2]){a.label=s[2],a.ops.push(d);break}s[2]&&a.ops.pop(),a.trys.pop();continue}d=e.call(t,a)}catch(u){d=[6,u],r=0}finally{i=s=0}if(d[0]&5)throw d[1];return{value:d[0]?d[1]:void 0,done:!0}}}function lzt(t,e){for(var a in t)a!=="default"&&!Object.prototype.hasOwnProperty.call(e,a)&&eM(e,t,a)}function B2(t){var e=typeof Symbol=="function"&&Symbol.iterator,a=e&&t[e],i=0;if(a)return a.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function Z1(t,e){var a=typeof Symbol=="function"&&t[Symbol.iterator];if(!a)return t;var i=a.call(t),r,s=[],n;try{for(;(e===void 0||e-- >0)&&!(r=i.next()).done;)s.push(r.value)}catch(o){n={error:o}}finally{try{r&&!r.done&&(a=i.return)&&a.call(i)}finally{if(n)throw n.error}}return s}function czt(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(Z1(arguments[e]));return t}function dzt(){for(var t=0,e=0,a=arguments.length;e<a;e++)t+=arguments[e].length;for(var i=Array(t),r=0,e=0;e<a;e++)for(var s=arguments[e],n=0,o=s.length;n<o;n++,r++)i[r]=s[n];return i}function k2(t,e,a){if(a||arguments.length===2)for(var i=0,r=e.length,s;i<r;i++)(s||!(i in e))&&(s||(s=Array.prototype.slice.call(e,0,i)),s[i]=e[i]);return t.concat(s||Array.prototype.slice.call(e))}function ss(t){return this instanceof ss?(this.v=t,this):new ss(t)}function iM(t,e,a){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i=a.apply(t,e||[]),r,s=[];return r=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),o("next"),o("throw"),o("return",n),r[Symbol.asyncIterator]=function(){return this},r;function n(g){return function(y){return Promise.resolve(y).then(g,c)}}function o(g,y){i[g]&&(r[g]=function(b){return new Promise(function(m,x){s.push([g,b,m,x])>1||l(g,b)})},y&&(r[g]=y(r[g])))}function l(g,y){try{d(i[g](y))}catch(b){f(s[0][3],b)}}function d(g){g.value instanceof ss?Promise.resolve(g.value.v).then(u,c):f(s[0][2],g)}function u(g){l("next",g)}function c(g){l("throw",g)}function f(g,y){g(y),s.shift(),s.length&&l(s[0][0],s[0][1])}}function uzt(t){var e,a;return e={},i("next"),i("throw",function(r){throw r}),i("return"),e[Symbol.iterator]=function(){return this},e;function i(r,s){e[r]=t[r]?function(n){return(a=!a)?{value:ss(t[r](n)),done:!1}:s?s(n):n}:s}}function rM(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],a;return e?e.call(t):(t=typeof B2=="function"?B2(t):t[Symbol.iterator](),a={},i("next"),i("throw"),i("return"),a[Symbol.asyncIterator]=function(){return this},a);function i(s){a[s]=t[s]&&function(n){return new Promise(function(o,l){n=t[s](n),r(o,l,n.done,n.value)})}}function r(s,n,o,l){Promise.resolve(l).then(function(d){s({value:d,done:o})},n)}}function pzt(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t}function fzt(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var a=tM(t),i=0;i<a.length;i++)a[i]!=="default"&&eM(e,t,a[i]);return hzt(e,t),e}function mzt(t){return t&&t.__esModule?t:{default:t}}function gzt(t,e,a,i){if(a==="a"&&!i)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!i:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return a==="m"?i:a==="a"?i.call(t):i?i.value:e.get(t)}function bzt(t,e,a,i,r){if(i==="m")throw new TypeError("Private method is not writable");if(i==="a"&&!r)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?t!==e||!r:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return i==="a"?r.call(t,a):r?r.value=a:e.set(t,a),a}function vzt(t,e){if(e===null||typeof e!="object"&&typeof e!="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof t=="function"?e===t:t.has(e)}function yzt(t,e,a){if(e!=null){if(typeof e!="object"&&typeof e!="function")throw new TypeError("Object expected.");var i,r;if(a){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");i=e[Symbol.asyncDispose]}if(i===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");i=e[Symbol.dispose],a&&(r=i)}if(typeof i!="function")throw new TypeError("Object not disposable.");r&&(i=function(){try{r.call(this)}catch(s){return Promise.reject(s)}}),t.stack.push({value:e,dispose:i,async:a})}else a&&t.stack.push({async:!0});return e}function wzt(t){function e(s){t.error=t.hasError?new xzt(s,t.error,"An error was suppressed during disposal."):s,t.hasError=!0}var a,i=0;function r(){for(;a=t.stack.pop();)try{if(!a.async&&i===1)return i=0,t.stack.push(a),Promise.resolve().then(r);if(a.dispose){var s=a.dispose.call(a.value);if(a.async)return i|=2,Promise.resolve(s).then(r,function(n){return e(n),r()})}else i|=1}catch(n){e(n)}if(i===1)return t.hasError?Promise.reject(t.error):Promise.resolve();if(t.hasError)throw t.error}return r()}function Mzt(t,e){return typeof t=="string"&&/^\.\.?\//.test(t)?t.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i,function(a,i,r,s,n){return i?e?".jsx":".js":r&&(!s||!n)?a:r+s+"."+n.toLowerCase()+"js"}):t}var Kw,Jw,eM,hzt,tM,xzt,UWt,r1=v(()=>{Kw=function(t,e){return Kw=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,i){a.__proto__=i}||function(a,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(a[r]=i[r])},Kw(t,e)};Jw=function(){return Jw=Object.assign||function(e){for(var a,i=1,r=arguments.length;i<r;i++){a=arguments[i];for(var s in a)Object.prototype.hasOwnProperty.call(a,s)&&(e[s]=a[s])}return e},Jw.apply(this,arguments)};eM=Object.create?(function(t,e,a,i){i===void 0&&(i=a);var r=Object.getOwnPropertyDescriptor(e,a);(!r||("get"in r?!e.__esModule:r.writable||r.configurable))&&(r={enumerable:!0,get:function(){return e[a]}}),Object.defineProperty(t,i,r)}):(function(t,e,a,i){i===void 0&&(i=a),t[i]=e[a]});hzt=Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e},tM=function(t){return tM=Object.getOwnPropertyNames||function(e){var a=[];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(a[a.length]=i);return a},tM(t)};xzt=typeof SuppressedError=="function"?SuppressedError:function(t,e,a){var i=new Error(a);return i.name="SuppressedError",i.error=t,i.suppressed=e,i};UWt={__extends:Ct,__assign:Jw,__rest:ezt,__decorate:tzt,__param:azt,__esDecorate:izt,__runInitializers:rzt,__propKey:szt,__setFunctionName:nzt,__metadata:ozt,__awaiter:aM,__generator:wc,__createBinding:eM,__exportStar:lzt,__values:B2,__read:Z1,__spread:czt,__spreadArrays:dzt,__spreadArray:k2,__await:ss,__asyncGenerator:iM,__asyncDelegator:uzt,__asyncValues:rM,__makeTemplateObject:pzt,__importStar:fzt,__importDefault:mzt,__classPrivateFieldGet:gzt,__classPrivateFieldSet:bzt,__classPrivateFieldIn:vzt,__addDisposableResource:yzt,__disposeResources:wzt,__rewriteRelativeImportExtension:Mzt}});function ht(t){return typeof t=="function"}var g2=v(()=>{});function _a(t){var e=function(i){Error.call(i),i.stack=new Error().stack},a=t(e);return a.prototype=Object.create(Error.prototype),a.prototype.constructor=a,a}var mn=v(()=>{});var Mc,sM=v(()=>{mn();Mc=_a(function(t){return function(a){t(this),this.message=a?a.length+` errors occurred during unsubscription:
|
|
3
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),eW=/'/g,tW=/"/g,aW=/^(?:script|style|textarea|title)$/i,Gw=t=>(e,...a)=>({_$litType$:t,strings:e,values:a}),w=Gw(1),Yw=Gw(2),Zw=Gw(3),g1=Symbol.for("lit-noChange"),k1=Symbol.for("lit-nothing"),iW=new WeakMap,Ao=Lo.createTreeWalker(Lo,129);sW=(t,e)=>{let a=t.length-1,i=[],r,s=e===2?"<svg>":e===3?"<math>":"",n=yc;for(let o=0;o<a;o++){let l=t[o],d,u,c=-1,f=0;for(;f<l.length&&(n.lastIndex=f,u=n.exec(l),u!==null);)f=n.lastIndex,n===yc?u[1]==="!--"?n=KU:u[1]!==void 0?n=JU:u[2]!==void 0?(aW.test(u[2])&&(r=RegExp("</"+u[2],"g")),n=$o):u[3]!==void 0&&(n=$o):n===$o?u[0]===">"?(n=r??yc,c=-1):u[1]===void 0?c=-2:(c=n.lastIndex-u[2].length,d=u[1],n=u[3]===void 0?$o:u[3]==='"'?tW:eW):n===tW||n===eW?n=$o:n===KU||n===JU?n=yc:(n=$o,r=void 0);let g=n===$o&&t[o+1].startsWith("/>")?" ":"";s+=n===yc?l+BMt:c>=0?(i.push(d),l.slice(0,c)+Vw+l.slice(c)+is+g):l+is+(c===-2?o:g)}return[rW(t,s+(t[a]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),i]},xc=class t{constructor({strings:e,_$litType$:a},i){let r;this.parts=[];let s=0,n=0,o=e.length-1,l=this.parts,[d,u]=sW(e,a);if(this.el=t.createElement(d,i),Ao.currentNode=this.el.content,a===2||a===3){let c=this.el.content.firstChild;c.replaceWith(...c.childNodes)}for(;(r=Ao.nextNode())!==null&&l.length<o;){if(r.nodeType===1){if(r.hasAttributes())for(let c of r.getAttributeNames())if(c.endsWith(Vw)){let f=u[n++],g=r.getAttribute(c).split(is),y=/([.?@])?(.*)/.exec(f);l.push({type:1,index:s,name:y[2],strings:g,ctor:y[1]==="."?Td:y[1]==="?"?_d:y[1]==="@"?Ld:Eo}),r.removeAttribute(c)}else c.startsWith(is)&&(l.push({type:6,index:s}),r.removeAttribute(c));if(aW.test(r.tagName)){let c=r.textContent.split(is),f=c.length-1;if(f>0){r.textContent=kd?kd.emptyScript:"";for(let g=0;g<f;g++)r.append(c[g],bc()),Ao.nextNode(),l.push({type:2,index:++s});r.append(c[f],bc())}}}else if(r.nodeType===8)if(r.data===jw)l.push({type:2,index:s});else{let c=-1;for(;(c=r.data.indexOf(is,c+1))!==-1;)l.push({type:7,index:s}),c+=is.length-1}s++}}static createElement(e,a){let i=Lo.createElement("template");return i.innerHTML=e,i}};Cd=class{constructor(e,a){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=a}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){let{el:{content:a},parts:i}=this._$AD,r=(e?.creationScope??Lo).importNode(a,!0);Ao.currentNode=r;let s=Ao.nextNode(),n=0,o=0,l=i[0];for(;l!==void 0;){if(n===l.index){let d;l.type===2?d=new L4(s,s.nextSibling,this,e):l.type===1?d=new l.ctor(s,l.name,l.strings,this,e):l.type===6&&(d=new $d(s,this,e)),this._$AV.push(d),l=i[++o]}n!==l?.index&&(s=Ao.nextNode(),n++)}return Ao.currentNode=Lo,r}p(e){let a=0;for(let i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(e,i,a),a+=i.strings.length-2):i._$AI(e[a])),a++}},L4=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,a,i,r){this.type=2,this._$AH=k1,this._$AN=void 0,this._$AA=e,this._$AB=a,this._$AM=i,this.options=r,this._$Cv=r?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode,a=this._$AM;return a!==void 0&&e?.nodeType===11&&(e=a.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,a=this){e=Do(this,e,a),vc(e)?e===k1||e==null||e===""?(this._$AH!==k1&&this._$AR(),this._$AH=k1):e!==this._$AH&&e!==g1&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):QU(e)?this.k(e):this._(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==k1&&vc(this._$AH)?this._$AA.nextSibling.data=e:this.T(Lo.createTextNode(e)),this._$AH=e}$(e){let{values:a,_$litType$:i}=e,r=typeof i=="number"?this._$AC(e):(i.el===void 0&&(i.el=xc.createElement(rW(i.h,i.h[0]),this.options)),i);if(this._$AH?._$AD===r)this._$AH.p(a);else{let s=new Cd(r,this),n=s.u(this.options);s.p(a),this.T(n),this._$AH=s}}_$AC(e){let a=iW.get(e.strings);return a===void 0&&iW.set(e.strings,a=new xc(e)),a}k(e){Uw(this._$AH)||(this._$AH=[],this._$AR());let a=this._$AH,i,r=0;for(let s of e)r===a.length?a.push(i=new t(this.O(bc()),this.O(bc()),this,this.options)):i=a[r],i._$AI(s),r++;r<a.length&&(this._$AR(i&&i._$AB.nextSibling,r),a.length=r)}_$AR(e=this._$AA.nextSibling,a){for(this._$AP?.(!1,!0,a);e!==this._$AB;){let i=ZU(e).nextSibling;ZU(e).remove(),e=i}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},Eo=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,a,i,r,s){this.type=1,this._$AH=k1,this._$AN=void 0,this.element=e,this.name=a,this._$AM=r,this.options=s,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=k1}_$AI(e,a=this,i,r){let s=this.strings,n=!1;if(s===void 0)e=Do(this,e,a,0),n=!vc(e)||e!==this._$AH&&e!==g1,n&&(this._$AH=e);else{let o=e,l,d;for(e=s[0],l=0;l<s.length-1;l++)d=Do(this,o[i+l],a,l),d===g1&&(d=this._$AH[l]),n||=!vc(d)||d!==this._$AH[l],d===k1?e=k1:e!==k1&&(e+=(d??"")+s[l+1]),this._$AH[l]=d}n&&!r&&this.j(e)}j(e){e===k1?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},Td=class extends Eo{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===k1?void 0:e}},_d=class extends Eo{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==k1)}},Ld=class extends Eo{constructor(e,a,i,r,s){super(e,a,i,r,s),this.type=5}_$AI(e,a=this){if((e=Do(this,e,a,0)??k1)===g1)return;let i=this._$AH,r=e===k1&&i!==k1||e.capture!==i.capture||e.once!==i.once||e.passive!==i.passive,s=e!==k1&&(i===k1||r);r&&this.element.removeEventListener(this.name,this,i),s&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}},$d=class{constructor(e,a,i){this.element=e,this.type=6,this._$AN=void 0,this._$AM=a,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(e){Do(this,e)}},Xw={M:Vw,P:is,A:jw,C:1,L:sW,R:Cd,D:QU,V:Do,I:L4,H:Eo,N:_d,U:Ld,B:Td,F:$d},HMt=qw.litHtmlPolyfillSupport;HMt?.(xc,L4),(qw.litHtmlVersions??=[]).push("3.3.2");hn=(t,e,a)=>{let i=a?.renderBefore??e,r=i._$litPart$;if(r===void 0){let s=a?.renderBefore??null;i._$litPart$=r=new L4(e.insertBefore(bc(),s),s,void 0,a??{})}return r._$AI(t),r}});var Qw,rs,qMt,VMt,nW=v(()=>{gc();gc();Pi();Pi();Qw=globalThis,rs=class extends ur{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let e=super.createRenderRoot();return this.renderOptions.renderBefore??=e.firstChild,e}update(e){let a=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=hn(a,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return g1}};rs._$litElement$=!0,rs.finalized=!0,Qw.litElementHydrateSupport?.({LitElement:rs});qMt=Qw.litElementPolyfillSupport;qMt?.({LitElement:rs});VMt={_$AK:(t,e,a)=>{t._$AK(e,a)},_$AL:t=>t._$AL};(Qw.litElementVersions??=[]).push("4.2.2")});var jMt,oW=v(()=>{jMt=!1});var pr=v(()=>{gc();Pi();nW();oW()});var Dd=pt(Ad=>{"use strict";Object.defineProperty(Ad,"__esModule",{value:!0}),Ad.uni=void 0;var UMt=(t="uni")=>`${t}_${"xxxxxxxxxxxxxxxxxxxxxxxx".replace(/[xy]/g,e=>{let a=Math.random()*16|0;return(e==="x"?a:a&3|8).toString(16)})}`;Ad.uni=UMt});var Ed,fn,Pd=v(()=>{Ed=class{claim(){if(this.claimed)throw new Error("Deferred already claimed");this.claimed=!0}get duration(){return this.stoppedAt?this.stoppedAt-this.startedAt:Date.now()-this.startedAt}constructor(){this.claimed=!1,this.promise=new Promise((e,a)=>{this.resolve=i=>{this.status="fulfilled",this.stoppedAt=Date.now(),e(i)},this.reject=i=>{this.status="rejected",this.stoppedAt=Date.now(),a(i)},this.startedAt=Date.now(),this.status="pending"})}},fn=()=>new Ed});var Nd,WMt,lW=v(()=>{Pd();Nd=class{constructor(){this.accumulatedPromises=[],this.deferred=fn(),this.promise=this.deferred.promise,setTimeout(async()=>{for(;this.accumulatedPromises.length>0;)await this.accumulatedPromises.shift();this.deferred.resolve()},0)}subDefer(){let e=fn();return this.addPromise(e.promise),e}addPromise(e){this.accumulatedPromises.push(e)}},WMt=()=>new Nd});var He={};Qe(He,{CumulativeDeferred:()=>Nd,Deferred:()=>Ed,cumulativeDefer:()=>WMt,defer:()=>fn,fromCallback:()=>KMt,getFirstTrueOrFalse:()=>QMt,map:()=>ZMt,rejectedPromise:()=>YMt,resolvedPromise:()=>GMt,timeoutAndContinue:()=>XMt,timeoutWrap:()=>cW});var GMt,YMt,ZMt,cW,XMt,QMt,KMt,a2=v(()=>{Pd();lW();Pd();GMt=t=>Promise.resolve(t),YMt=t=>Promise.reject(t),ZMt=async(t,e)=>{let a=[],i=[];for(let r of t){let s=e(r);a.push(s),s.then(n=>{i.push(n)})}return await Promise.all(a),i},cW=async(t,e,a=!0)=>new Promise((i,r)=>{setTimeout(()=>{a?r(new Error("timeout")):i(null)},e),t.then(i,r)}),XMt=async(t,e=6e4)=>cW(t,e,!1),QMt=async t=>{let e=fn();for(let a of t)a.then(i=>{i===!0&&e.resolve(!0)});return Promise.all(t).then(()=>{e.resolve(!1)}),e.promise},KMt=t=>new Promise((e,a)=>{t((i,r)=>{i?a(i):e(r)})})});var Id=v(()=>{a2()});function Ct(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");Kw(t,e);function a(){this.constructor=t}t.prototype=e===null?Object.create(e):(a.prototype=e.prototype,new a)}function ezt(t,e){var a={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(a[i]=t[i]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,i=Object.getOwnPropertySymbols(t);r<i.length;r++)e.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(t,i[r])&&(a[i[r]]=t[i[r]]);return a}function tzt(t,e,a,i){var r=arguments.length,s=r<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,a):i,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,a,i);else for(var o=t.length-1;o>=0;o--)(n=t[o])&&(s=(r<3?n(s):r>3?n(e,a,s):n(e,a))||s);return r>3&&s&&Object.defineProperty(e,a,s),s}function azt(t,e){return function(a,i){e(a,i,t)}}function izt(t,e,a,i,r,s){function n(x){if(x!==void 0&&typeof x!="function")throw new TypeError("Function expected");return x}for(var o=i.kind,l=o==="getter"?"get":o==="setter"?"set":"value",d=!e&&t?i.static?t:t.prototype:null,u=e||(d?Object.getOwnPropertyDescriptor(d,i.name):{}),c,f=!1,g=a.length-1;g>=0;g--){var y={};for(var b in i)y[b]=b==="access"?{}:i[b];for(var b in i.access)y.access[b]=i.access[b];y.addInitializer=function(x){if(f)throw new TypeError("Cannot add initializers after decoration has completed");s.push(n(x||null))};var m=(0,a[g])(o==="accessor"?{get:u.get,set:u.set}:u[l],y);if(o==="accessor"){if(m===void 0)continue;if(m===null||typeof m!="object")throw new TypeError("Object expected");(c=n(m.get))&&(u.get=c),(c=n(m.set))&&(u.set=c),(c=n(m.init))&&r.unshift(c)}else(c=n(m))&&(o==="field"?r.unshift(c):u[l]=c)}d&&Object.defineProperty(d,i.name,u),f=!0}function rzt(t,e,a){for(var i=arguments.length>2,r=0;r<e.length;r++)a=i?e[r].call(t,a):e[r].call(t);return i?a:void 0}function szt(t){return typeof t=="symbol"?t:"".concat(t)}function nzt(t,e,a){return typeof e=="symbol"&&(e=e.description?"[".concat(e.description,"]"):""),Object.defineProperty(t,"name",{configurable:!0,value:a?"".concat(a," ",e):e})}function ozt(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}function aM(t,e,a,i){function r(s){return s instanceof a?s:new a(function(n){n(s)})}return new(a||(a=Promise))(function(s,n){function o(u){try{d(i.next(u))}catch(c){n(c)}}function l(u){try{d(i.throw(u))}catch(c){n(c)}}function d(u){u.done?s(u.value):r(u.value).then(o,l)}d((i=i.apply(t,e||[])).next())})}function wc(t,e){var a={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},i,r,s,n=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return n.next=o(0),n.throw=o(1),n.return=o(2),typeof Symbol=="function"&&(n[Symbol.iterator]=function(){return this}),n;function o(d){return function(u){return l([d,u])}}function l(d){if(i)throw new TypeError("Generator is already executing.");for(;n&&(n=0,d[0]&&(a=0)),a;)try{if(i=1,r&&(s=d[0]&2?r.return:d[0]?r.throw||((s=r.return)&&s.call(r),0):r.next)&&!(s=s.call(r,d[1])).done)return s;switch(r=0,s&&(d=[d[0]&2,s.value]),d[0]){case 0:case 1:s=d;break;case 4:return a.label++,{value:d[1],done:!1};case 5:a.label++,r=d[1],d=[0];continue;case 7:d=a.ops.pop(),a.trys.pop();continue;default:if(s=a.trys,!(s=s.length>0&&s[s.length-1])&&(d[0]===6||d[0]===2)){a=0;continue}if(d[0]===3&&(!s||d[1]>s[0]&&d[1]<s[3])){a.label=d[1];break}if(d[0]===6&&a.label<s[1]){a.label=s[1],s=d;break}if(s&&a.label<s[2]){a.label=s[2],a.ops.push(d);break}s[2]&&a.ops.pop(),a.trys.pop();continue}d=e.call(t,a)}catch(u){d=[6,u],r=0}finally{i=s=0}if(d[0]&5)throw d[1];return{value:d[0]?d[1]:void 0,done:!0}}}function lzt(t,e){for(var a in t)a!=="default"&&!Object.prototype.hasOwnProperty.call(e,a)&&eM(e,t,a)}function B2(t){var e=typeof Symbol=="function"&&Symbol.iterator,a=e&&t[e],i=0;if(a)return a.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function Z1(t,e){var a=typeof Symbol=="function"&&t[Symbol.iterator];if(!a)return t;var i=a.call(t),r,s=[],n;try{for(;(e===void 0||e-- >0)&&!(r=i.next()).done;)s.push(r.value)}catch(o){n={error:o}}finally{try{r&&!r.done&&(a=i.return)&&a.call(i)}finally{if(n)throw n.error}}return s}function czt(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(Z1(arguments[e]));return t}function dzt(){for(var t=0,e=0,a=arguments.length;e<a;e++)t+=arguments[e].length;for(var i=Array(t),r=0,e=0;e<a;e++)for(var s=arguments[e],n=0,o=s.length;n<o;n++,r++)i[r]=s[n];return i}function k2(t,e,a){if(a||arguments.length===2)for(var i=0,r=e.length,s;i<r;i++)(s||!(i in e))&&(s||(s=Array.prototype.slice.call(e,0,i)),s[i]=e[i]);return t.concat(s||Array.prototype.slice.call(e))}function ss(t){return this instanceof ss?(this.v=t,this):new ss(t)}function iM(t,e,a){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i=a.apply(t,e||[]),r,s=[];return r=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),o("next"),o("throw"),o("return",n),r[Symbol.asyncIterator]=function(){return this},r;function n(g){return function(y){return Promise.resolve(y).then(g,c)}}function o(g,y){i[g]&&(r[g]=function(b){return new Promise(function(m,x){s.push([g,b,m,x])>1||l(g,b)})},y&&(r[g]=y(r[g])))}function l(g,y){try{d(i[g](y))}catch(b){f(s[0][3],b)}}function d(g){g.value instanceof ss?Promise.resolve(g.value.v).then(u,c):f(s[0][2],g)}function u(g){l("next",g)}function c(g){l("throw",g)}function f(g,y){g(y),s.shift(),s.length&&l(s[0][0],s[0][1])}}function uzt(t){var e,a;return e={},i("next"),i("throw",function(r){throw r}),i("return"),e[Symbol.iterator]=function(){return this},e;function i(r,s){e[r]=t[r]?function(n){return(a=!a)?{value:ss(t[r](n)),done:!1}:s?s(n):n}:s}}function rM(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],a;return e?e.call(t):(t=typeof B2=="function"?B2(t):t[Symbol.iterator](),a={},i("next"),i("throw"),i("return"),a[Symbol.asyncIterator]=function(){return this},a);function i(s){a[s]=t[s]&&function(n){return new Promise(function(o,l){n=t[s](n),r(o,l,n.done,n.value)})}}function r(s,n,o,l){Promise.resolve(l).then(function(d){s({value:d,done:o})},n)}}function pzt(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t}function fzt(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var a=tM(t),i=0;i<a.length;i++)a[i]!=="default"&&eM(e,t,a[i]);return hzt(e,t),e}function mzt(t){return t&&t.__esModule?t:{default:t}}function gzt(t,e,a,i){if(a==="a"&&!i)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!i:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return a==="m"?i:a==="a"?i.call(t):i?i.value:e.get(t)}function bzt(t,e,a,i,r){if(i==="m")throw new TypeError("Private method is not writable");if(i==="a"&&!r)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?t!==e||!r:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return i==="a"?r.call(t,a):r?r.value=a:e.set(t,a),a}function vzt(t,e){if(e===null||typeof e!="object"&&typeof e!="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof t=="function"?e===t:t.has(e)}function yzt(t,e,a){if(e!=null){if(typeof e!="object"&&typeof e!="function")throw new TypeError("Object expected.");var i,r;if(a){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");i=e[Symbol.asyncDispose]}if(i===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");i=e[Symbol.dispose],a&&(r=i)}if(typeof i!="function")throw new TypeError("Object not disposable.");r&&(i=function(){try{r.call(this)}catch(s){return Promise.reject(s)}}),t.stack.push({value:e,dispose:i,async:a})}else a&&t.stack.push({async:!0});return e}function wzt(t){function e(s){t.error=t.hasError?new xzt(s,t.error,"An error was suppressed during disposal."):s,t.hasError=!0}var a,i=0;function r(){for(;a=t.stack.pop();)try{if(!a.async&&i===1)return i=0,t.stack.push(a),Promise.resolve().then(r);if(a.dispose){var s=a.dispose.call(a.value);if(a.async)return i|=2,Promise.resolve(s).then(r,function(n){return e(n),r()})}else i|=1}catch(n){e(n)}if(i===1)return t.hasError?Promise.reject(t.error):Promise.resolve();if(t.hasError)throw t.error}return r()}function Mzt(t,e){return typeof t=="string"&&/^\.\.?\//.test(t)?t.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i,function(a,i,r,s,n){return i?e?".jsx":".js":r&&(!s||!n)?a:r+s+"."+n.toLowerCase()+"js"}):t}var Kw,Jw,eM,hzt,tM,xzt,UWt,i1=v(()=>{Kw=function(t,e){return Kw=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,i){a.__proto__=i}||function(a,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(a[r]=i[r])},Kw(t,e)};Jw=function(){return Jw=Object.assign||function(e){for(var a,i=1,r=arguments.length;i<r;i++){a=arguments[i];for(var s in a)Object.prototype.hasOwnProperty.call(a,s)&&(e[s]=a[s])}return e},Jw.apply(this,arguments)};eM=Object.create?(function(t,e,a,i){i===void 0&&(i=a);var r=Object.getOwnPropertyDescriptor(e,a);(!r||("get"in r?!e.__esModule:r.writable||r.configurable))&&(r={enumerable:!0,get:function(){return e[a]}}),Object.defineProperty(t,i,r)}):(function(t,e,a,i){i===void 0&&(i=a),t[i]=e[a]});hzt=Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e},tM=function(t){return tM=Object.getOwnPropertyNames||function(e){var a=[];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(a[a.length]=i);return a},tM(t)};xzt=typeof SuppressedError=="function"?SuppressedError:function(t,e,a){var i=new Error(a);return i.name="SuppressedError",i.error=t,i.suppressed=e,i};UWt={__extends:Ct,__assign:Jw,__rest:ezt,__decorate:tzt,__param:azt,__esDecorate:izt,__runInitializers:rzt,__propKey:szt,__setFunctionName:nzt,__metadata:ozt,__awaiter:aM,__generator:wc,__createBinding:eM,__exportStar:lzt,__values:B2,__read:Z1,__spread:czt,__spreadArrays:dzt,__spreadArray:k2,__await:ss,__asyncGenerator:iM,__asyncDelegator:uzt,__asyncValues:rM,__makeTemplateObject:pzt,__importStar:fzt,__importDefault:mzt,__classPrivateFieldGet:gzt,__classPrivateFieldSet:bzt,__classPrivateFieldIn:vzt,__addDisposableResource:yzt,__disposeResources:wzt,__rewriteRelativeImportExtension:Mzt}});function ht(t){return typeof t=="function"}var g2=v(()=>{});function _a(t){var e=function(i){Error.call(i),i.stack=new Error().stack},a=t(e);return a.prototype=Object.create(Error.prototype),a.prototype.constructor=a,a}var mn=v(()=>{});var Mc,sM=v(()=>{mn();Mc=_a(function(t){return function(a){t(this),this.message=a?a.length+` errors occurred during unsubscription:
|
|
4
4
|
`+a.map(function(i,r){return r+1+") "+i.toString()}).join(`
|
|
5
|
-
`):"",this.name="UnsubscriptionError",this.errors=a}})});function Ni(t,e){if(t){var a=t.indexOf(e);0<=a&&t.splice(a,1)}}var $4=v(()=>{});function Fd(t){return t instanceof H1||t&&"closed"in t&&ht(t.remove)&&ht(t.add)&&ht(t.unsubscribe)}function dW(t){ht(t)?t():t.unsubscribe()}var H1,nM,hr=v(()=>{r1();g2();sM();$4();H1=(function(){function t(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}return t.prototype.unsubscribe=function(){var e,a,i,r,s;if(!this.closed){this.closed=!0;var n=this._parentage;if(n)if(this._parentage=null,Array.isArray(n))try{for(var o=B2(n),l=o.next();!l.done;l=o.next()){var d=l.value;d.remove(this)}}catch(b){e={error:b}}finally{try{l&&!l.done&&(a=o.return)&&a.call(o)}finally{if(e)throw e.error}}else n.remove(this);var u=this.initialTeardown;if(ht(u))try{u()}catch(b){s=b instanceof Mc?b.errors:[b]}var c=this._finalizers;if(c){this._finalizers=null;try{for(var f=B2(c),g=f.next();!g.done;g=f.next()){var y=g.value;try{dW(y)}catch(b){s=s??[],b instanceof Mc?s=k2(k2([],Z1(s)),Z1(b.errors)):s.push(b)}}}catch(b){i={error:b}}finally{try{g&&!g.done&&(r=f.return)&&r.call(f)}finally{if(i)throw i.error}}}if(s)throw new Mc(s)}},t.prototype.add=function(e){var a;if(e&&e!==this)if(this.closed)dW(e);else{if(e instanceof t){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=(a=this._finalizers)!==null&&a!==void 0?a:[]).push(e)}},t.prototype._hasParent=function(e){var a=this._parentage;return a===e||Array.isArray(a)&&a.includes(e)},t.prototype._addParent=function(e){var a=this._parentage;this._parentage=Array.isArray(a)?(a.push(e),a):a?[a,e]:e},t.prototype._removeParent=function(e){var a=this._parentage;a===e?this._parentage=null:Array.isArray(a)&&Ni(a,e)},t.prototype.remove=function(e){var a=this._finalizers;a&&Ni(a,e),e instanceof t&&e._removeParent(this)},t.EMPTY=(function(){var e=new t;return e.closed=!0,e})(),t})(),nM=H1.EMPTY});var ci,A4=v(()=>{ci={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}});var D4,oM=v(()=>{r1();D4={setTimeout:function(t,e){for(var a=[],i=2;i<arguments.length;i++)a[i-2]=arguments[i];var r=D4.delegate;return r?.setTimeout?r.setTimeout.apply(r,k2([t,e],Z1(a))):setTimeout.apply(void 0,k2([t,e],Z1(a)))},clearTimeout:function(t){var e=D4.delegate;return(e?.clearTimeout||clearTimeout)(t)},delegate:void 0}});function Rd(t){D4.setTimeout(function(){var e=ci.onUnhandledError;if(e)e(t);else throw t})}var lM=v(()=>{A4();oM()});function di(){}var Po=v(()=>{});function pW(t){return cM("E",void 0,t)}function hW(t){return cM("N",t,void 0)}function cM(t,e,a){return{kind:t,value:e,error:a}}var uW,fW=v(()=>{uW=(function(){return cM("C",void 0,void 0)})()});function E4(t){if(ci.useDeprecatedSynchronousErrorHandling){var e=!No;if(e&&(No={errorThrown:!1,error:null}),t(),e){var a=No,i=a.errorThrown,r=a.error;if(No=null,i)throw r}}else t()}function mW(t){ci.useDeprecatedSynchronousErrorHandling&&No&&(No.errorThrown=!0,No.error=t)}var No,Od=v(()=>{A4();No=null});function dM(t,e){return zzt.call(t,e)}function Bd(t){ci.useDeprecatedSynchronousErrorHandling?mW(t):Rd(t)}function kzt(t){throw t}function uM(t,e){var a=ci.onStoppedNotification;a&&D4.setTimeout(function(){return a(t,e)})}var Io,zzt,Szt,zc,Czt,Hd=v(()=>{r1();g2();hr();A4();lM();Po();fW();oM();Od();Io=(function(t){Ct(e,t);function e(a){var i=t.call(this)||this;return i.isStopped=!1,a?(i.destination=a,Fd(a)&&a.add(i)):i.destination=Czt,i}return e.create=function(a,i,r){return new zc(a,i,r)},e.prototype.next=function(a){this.isStopped?uM(hW(a),this):this._next(a)},e.prototype.error=function(a){this.isStopped?uM(pW(a),this):(this.isStopped=!0,this._error(a))},e.prototype.complete=function(){this.isStopped?uM(uW,this):(this.isStopped=!0,this._complete())},e.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,t.prototype.unsubscribe.call(this),this.destination=null)},e.prototype._next=function(a){this.destination.next(a)},e.prototype._error=function(a){try{this.destination.error(a)}finally{this.unsubscribe()}},e.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},e})(H1),zzt=Function.prototype.bind;Szt=(function(){function t(e){this.partialObserver=e}return t.prototype.next=function(e){var a=this.partialObserver;if(a.next)try{a.next(e)}catch(i){Bd(i)}},t.prototype.error=function(e){var a=this.partialObserver;if(a.error)try{a.error(e)}catch(i){Bd(i)}else Bd(e)},t.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(a){Bd(a)}},t})(),zc=(function(t){Ct(e,t);function e(a,i,r){var s=t.call(this)||this,n;if(ht(a)||!a)n={next:a??void 0,error:i??void 0,complete:r??void 0};else{var o;s&&ci.useDeprecatedNextContext?(o=Object.create(a),o.unsubscribe=function(){return s.unsubscribe()},n={next:a.next&&dM(a.next,o),error:a.error&&dM(a.error,o),complete:a.complete&&dM(a.complete,o)}):n=a}return s.destination=new Szt(n),s}return e})(Io);Czt={closed:!0,next:di,error:kzt,complete:di}});var Fo,Sc=v(()=>{Fo=(function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"})()});function kc(t){return t}var qd=v(()=>{});function Tzt(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return pM(t)}function pM(t){return t.length===0?kc:t.length===1?t[0]:function(a){return t.reduce(function(i,r){return r(i)},a)}}var hM=v(()=>{qd()});function gW(t){var e;return(e=t??ci.Promise)!==null&&e!==void 0?e:Promise}function _zt(t){return t&&ht(t.next)&&ht(t.error)&&ht(t.complete)}function Lzt(t){return t&&t instanceof Io||_zt(t)&&Fd(t)}var Mt,La=v(()=>{Hd();hr();Sc();hM();A4();g2();Od();Mt=(function(){function t(e){e&&(this._subscribe=e)}return t.prototype.lift=function(e){var a=new t;return a.source=this,a.operator=e,a},t.prototype.subscribe=function(e,a,i){var r=this,s=Lzt(e)?e:new zc(e,a,i);return E4(function(){var n=r,o=n.operator,l=n.source;s.add(o?o.call(s,l):l?r._subscribe(s):r._trySubscribe(s))}),s},t.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(a){e.error(a)}},t.prototype.forEach=function(e,a){var i=this;return a=gW(a),new a(function(r,s){var n=new zc({next:function(o){try{e(o)}catch(l){s(l),n.unsubscribe()}},error:s,complete:r});i.subscribe(n)})},t.prototype._subscribe=function(e){var a;return(a=this.source)===null||a===void 0?void 0:a.subscribe(e)},t.prototype[Fo]=function(){return this},t.prototype.pipe=function(){for(var e=[],a=0;a<arguments.length;a++)e[a]=arguments[a];return pM(e)(this)},t.prototype.toPromise=function(e){var a=this;return e=gW(e),new e(function(i,r){var s;a.subscribe(function(n){return s=n},function(n){return r(n)},function(){return i(s)})})},t.create=function(e){return new t(e)},t})()});function fM(t){return ht(t?.lift)}function Qt(t){return function(e){if(fM(e))return e.lift(function(a){try{return t(a,this)}catch(i){this.error(i)}});throw new TypeError("Unable to lift unknown Observable type")}}var C2=v(()=>{g2()});function jt(t,e,a,i,r){return new bW(t,e,a,i,r)}var bW,da=v(()=>{r1();Hd();bW=(function(t){Ct(e,t);function e(a,i,r,s,n,o){var l=t.call(this,a)||this;return l.onFinalize=n,l.shouldUnsubscribe=o,l._next=i?function(d){try{i(d)}catch(u){a.error(u)}}:t.prototype._next,l._error=s?function(d){try{s(d)}catch(u){a.error(u)}finally{this.unsubscribe()}}:t.prototype._error,l._complete=r?function(){try{r()}catch(d){a.error(d)}finally{this.unsubscribe()}}:t.prototype._complete,l}return e.prototype.unsubscribe=function(){var a;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var i=this.closed;t.prototype.unsubscribe.call(this),!i&&((a=this.onFinalize)===null||a===void 0||a.call(this))}},e})(Io)});function Vd(){return Qt(function(t,e){var a=null;t._refCount++;var i=jt(e,void 0,void 0,void 0,function(){if(!t||t._refCount<=0||0<--t._refCount){a=null;return}var r=t._connection,s=a;a=null,r&&(!s||r===s)&&r.unsubscribe(),e.unsubscribe()});t.subscribe(i),i.closed||(a=t.connect())})}var jd=v(()=>{C2();da()});var vW,yW=v(()=>{r1();La();hr();jd();da();C2();vW=(function(t){Ct(e,t);function e(a,i){var r=t.call(this)||this;return r.source=a,r.subjectFactory=i,r._subject=null,r._refCount=0,r._connection=null,fM(a)&&(r.lift=a.lift),r}return e.prototype._subscribe=function(a){return this.getSubject().subscribe(a)},e.prototype.getSubject=function(){var a=this._subject;return(!a||a.isStopped)&&(this._subject=this.subjectFactory()),this._subject},e.prototype._teardown=function(){this._refCount=0;var a=this._connection;this._subject=this._connection=null,a?.unsubscribe()},e.prototype.connect=function(){var a=this,i=this._connection;if(!i){i=this._connection=new H1;var r=this.getSubject();i.add(this.source.subscribe(jt(r,void 0,function(){a._teardown(),r.complete()},function(s){a._teardown(),r.error(s)},function(){return a._teardown()}))),i.closed&&(this._connection=null,i=H1.EMPTY)}return i},e.prototype.refCount=function(){return Vd()(this)},e})(Mt)});var mM,xW=v(()=>{mM={now:function(){return(mM.delegate||performance).now()},delegate:void 0}});var ns,gM=v(()=>{r1();hr();ns={schedule:function(t){var e=requestAnimationFrame,a=cancelAnimationFrame,i=ns.delegate;i&&(e=i.requestAnimationFrame,a=i.cancelAnimationFrame);var r=e(function(s){a=void 0,t(s)});return new H1(function(){return a?.(r)})},requestAnimationFrame:function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var a=ns.delegate;return(a?.requestAnimationFrame||requestAnimationFrame).apply(void 0,k2([],Z1(t)))},cancelAnimationFrame:function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var a=ns.delegate;return(a?.cancelAnimationFrame||cancelAnimationFrame).apply(void 0,k2([],Z1(t)))},delegate:void 0}});function $zt(t){return t?wW(t):Azt}function wW(t){return new Mt(function(e){var a=t||mM,i=a.now(),r=0,s=function(){e.closed||(r=ns.requestAnimationFrame(function(n){r=0;var o=a.now();e.next({timestamp:t?o:n,elapsed:o-i}),s()}))};return s(),function(){r&&ns.cancelAnimationFrame(r)}})}var Azt,MW=v(()=>{La();xW();gM();Azt=wW()});var bM,vM=v(()=>{mn();bM=_a(function(t){return function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}})});var $a,yM,Cc=v(()=>{r1();La();hr();vM();$4();Od();$a=(function(t){Ct(e,t);function e(){var a=t.call(this)||this;return a.closed=!1,a.currentObservers=null,a.observers=[],a.isStopped=!1,a.hasError=!1,a.thrownError=null,a}return e.prototype.lift=function(a){var i=new yM(this,this);return i.operator=a,i},e.prototype._throwIfClosed=function(){if(this.closed)throw new bM},e.prototype.next=function(a){var i=this;E4(function(){var r,s;if(i._throwIfClosed(),!i.isStopped){i.currentObservers||(i.currentObservers=Array.from(i.observers));try{for(var n=B2(i.currentObservers),o=n.next();!o.done;o=n.next()){var l=o.value;l.next(a)}}catch(d){r={error:d}}finally{try{o&&!o.done&&(s=n.return)&&s.call(n)}finally{if(r)throw r.error}}}})},e.prototype.error=function(a){var i=this;E4(function(){if(i._throwIfClosed(),!i.isStopped){i.hasError=i.isStopped=!0,i.thrownError=a;for(var r=i.observers;r.length;)r.shift().error(a)}})},e.prototype.complete=function(){var a=this;E4(function(){if(a._throwIfClosed(),!a.isStopped){a.isStopped=!0;for(var i=a.observers;i.length;)i.shift().complete()}})},e.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(e.prototype,"observed",{get:function(){var a;return((a=this.observers)===null||a===void 0?void 0:a.length)>0},enumerable:!1,configurable:!0}),e.prototype._trySubscribe=function(a){return this._throwIfClosed(),t.prototype._trySubscribe.call(this,a)},e.prototype._subscribe=function(a){return this._throwIfClosed(),this._checkFinalizedStatuses(a),this._innerSubscribe(a)},e.prototype._innerSubscribe=function(a){var i=this,r=this,s=r.hasError,n=r.isStopped,o=r.observers;return s||n?nM:(this.currentObservers=null,o.push(a),new H1(function(){i.currentObservers=null,Ni(o,a)}))},e.prototype._checkFinalizedStatuses=function(a){var i=this,r=i.hasError,s=i.thrownError,n=i.isStopped;r?a.error(s):n&&a.complete()},e.prototype.asObservable=function(){var a=new Mt;return a.source=this,a},e.create=function(a,i){return new yM(a,i)},e})(Mt),yM=(function(t){Ct(e,t);function e(a,i){var r=t.call(this)||this;return r.destination=a,r.source=i,r}return e.prototype.next=function(a){var i,r;(r=(i=this.destination)===null||i===void 0?void 0:i.next)===null||r===void 0||r.call(i,a)},e.prototype.error=function(a){var i,r;(r=(i=this.destination)===null||i===void 0?void 0:i.error)===null||r===void 0||r.call(i,a)},e.prototype.complete=function(){var a,i;(i=(a=this.destination)===null||a===void 0?void 0:a.complete)===null||i===void 0||i.call(a)},e.prototype._subscribe=function(a){var i,r;return(r=(i=this.source)===null||i===void 0?void 0:i.subscribe(a))!==null&&r!==void 0?r:nM},e})($a)});var zW,SW=v(()=>{r1();Cc();zW=(function(t){Ct(e,t);function e(a){var i=t.call(this)||this;return i._value=a,i}return Object.defineProperty(e.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),e.prototype._subscribe=function(a){var i=t.prototype._subscribe.call(this,a);return!i.closed&&a.next(this._value),i},e.prototype.getValue=function(){var a=this,i=a.hasError,r=a.thrownError,s=a._value;if(i)throw r;return this._throwIfClosed(),s},e.prototype.next=function(a){t.prototype.next.call(this,this._value=a)},e})($a)});var Tc,xM=v(()=>{Tc={now:function(){return(Tc.delegate||Date).now()},delegate:void 0}});var Ud,kW=v(()=>{r1();Cc();xM();Ud=(function(t){Ct(e,t);function e(a,i,r){a===void 0&&(a=1/0),i===void 0&&(i=1/0),r===void 0&&(r=Tc);var s=t.call(this)||this;return s._bufferSize=a,s._windowTime=i,s._timestampProvider=r,s._buffer=[],s._infiniteTimeWindow=!0,s._infiniteTimeWindow=i===1/0,s._bufferSize=Math.max(1,a),s._windowTime=Math.max(1,i),s}return e.prototype.next=function(a){var i=this,r=i.isStopped,s=i._buffer,n=i._infiniteTimeWindow,o=i._timestampProvider,l=i._windowTime;r||(s.push(a),!n&&s.push(o.now()+l)),this._trimBuffer(),t.prototype.next.call(this,a)},e.prototype._subscribe=function(a){this._throwIfClosed(),this._trimBuffer();for(var i=this._innerSubscribe(a),r=this,s=r._infiniteTimeWindow,n=r._buffer,o=n.slice(),l=0;l<o.length&&!a.closed;l+=s?1:2)a.next(o[l]);return this._checkFinalizedStatuses(a),i},e.prototype._trimBuffer=function(){var a=this,i=a._bufferSize,r=a._timestampProvider,s=a._buffer,n=a._infiniteTimeWindow,o=(n?1:2)*i;if(i<1/0&&o<s.length&&s.splice(0,s.length-o),!n){for(var l=r.now(),d=0,u=1;u<s.length&&s[u]<=l;u+=2)d=u;d&&s.splice(0,d+1)}},e})($a)});var CW,TW=v(()=>{r1();Cc();CW=(function(t){Ct(e,t);function e(){var a=t!==null&&t.apply(this,arguments)||this;return a._value=null,a._hasValue=!1,a._isComplete=!1,a}return e.prototype._checkFinalizedStatuses=function(a){var i=this,r=i.hasError,s=i._hasValue,n=i._value,o=i.thrownError,l=i.isStopped,d=i._isComplete;r?a.error(o):(l||d)&&(s&&a.next(n),a.complete())},e.prototype.next=function(a){this.isStopped||(this._value=a,this._hasValue=!0)},e.prototype.complete=function(){var a=this,i=a._hasValue,r=a._value,s=a._isComplete;s||(this._isComplete=!0,i&&t.prototype.next.call(this,r),t.prototype.complete.call(this))},e})($a)});var wM,_W=v(()=>{r1();hr();wM=(function(t){Ct(e,t);function e(a,i){return t.call(this)||this}return e.prototype.schedule=function(a,i){return i===void 0&&(i=0),this},e})(H1)});var _c,LW=v(()=>{r1();_c={setInterval:function(t,e){for(var a=[],i=2;i<arguments.length;i++)a[i-2]=arguments[i];var r=_c.delegate;return r?.setInterval?r.setInterval.apply(r,k2([t,e],Z1(a))):setInterval.apply(void 0,k2([t,e],Z1(a)))},clearInterval:function(t){var e=_c.delegate;return(e?.clearInterval||clearInterval)(t)},delegate:void 0}});var Ii,P4=v(()=>{r1();_W();LW();$4();Ii=(function(t){Ct(e,t);function e(a,i){var r=t.call(this,a,i)||this;return r.scheduler=a,r.work=i,r.pending=!1,r}return e.prototype.schedule=function(a,i){var r;if(i===void 0&&(i=0),this.closed)return this;this.state=a;var s=this.id,n=this.scheduler;return s!=null&&(this.id=this.recycleAsyncId(n,s,i)),this.pending=!0,this.delay=i,this.id=(r=this.id)!==null&&r!==void 0?r:this.requestAsyncId(n,this.id,i),this},e.prototype.requestAsyncId=function(a,i,r){return r===void 0&&(r=0),_c.setInterval(a.flush.bind(a,this),r)},e.prototype.recycleAsyncId=function(a,i,r){if(r===void 0&&(r=0),r!=null&&this.delay===r&&this.pending===!1)return i;i!=null&&_c.clearInterval(i)},e.prototype.execute=function(a,i){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var r=this._execute(a,i);if(r)return r;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},e.prototype._execute=function(a,i){var r=!1,s;try{this.work(a)}catch(n){r=!0,s=n||new Error("Scheduled action threw falsy error")}if(r)return this.unsubscribe(),s},e.prototype.unsubscribe=function(){if(!this.closed){var a=this,i=a.id,r=a.scheduler,s=r.actions;this.work=this.state=this.scheduler=null,this.pending=!1,Ni(s,this),i!=null&&(this.id=this.recycleAsyncId(r,i,null)),this.delay=null,t.prototype.unsubscribe.call(this)}},e})(wM)});function $W(t){return t in Wd?(delete Wd[t],!0):!1}var Dzt,MM,Wd,zM,PYt,AW=v(()=>{Dzt=1,Wd={};zM={setImmediate:function(t){var e=Dzt++;return Wd[e]=!0,MM||(MM=Promise.resolve()),MM.then(function(){return $W(e)&&t()}),e},clearImmediate:function(t){$W(t)}},PYt={pending:function(){return Object.keys(Wd).length}}});var Ezt,Pzt,Lc,DW=v(()=>{r1();AW();Ezt=zM.setImmediate,Pzt=zM.clearImmediate,Lc={setImmediate:function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var a=Lc.delegate;return(a?.setImmediate||Ezt).apply(void 0,k2([],Z1(t)))},clearImmediate:function(t){var e=Lc.delegate;return(e?.clearImmediate||Pzt)(t)},delegate:void 0}});var SM,EW=v(()=>{r1();P4();DW();SM=(function(t){Ct(e,t);function e(a,i){var r=t.call(this,a,i)||this;return r.scheduler=a,r.work=i,r}return e.prototype.requestAsyncId=function(a,i,r){return r===void 0&&(r=0),r!==null&&r>0?t.prototype.requestAsyncId.call(this,a,i,r):(a.actions.push(this),a._scheduled||(a._scheduled=Lc.setImmediate(a.flush.bind(a,void 0))))},e.prototype.recycleAsyncId=function(a,i,r){var s;if(r===void 0&&(r=0),r!=null?r>0:this.delay>0)return t.prototype.recycleAsyncId.call(this,a,i,r);var n=a.actions;i!=null&&((s=n[n.length-1])===null||s===void 0?void 0:s.id)!==i&&(Lc.clearImmediate(i),a._scheduled===i&&(a._scheduled=void 0))},e})(Ii)});var $c,kM=v(()=>{xM();$c=(function(){function t(e,a){a===void 0&&(a=t.now),this.schedulerActionCtor=e,this.now=a}return t.prototype.schedule=function(e,a,i){return a===void 0&&(a=0),new this.schedulerActionCtor(this,e).schedule(i,a)},t.now=Tc.now,t})()});var Fi,N4=v(()=>{r1();kM();Fi=(function(t){Ct(e,t);function e(a,i){i===void 0&&(i=$c.now);var r=t.call(this,a,i)||this;return r.actions=[],r._active=!1,r}return e.prototype.flush=function(a){var i=this.actions;if(this._active){i.push(a);return}var r;this._active=!0;do if(r=a.execute(a.state,a.delay))break;while(a=i.shift());if(this._active=!1,r){for(;a=i.shift();)a.unsubscribe();throw r}},e})($c)});var CM,PW=v(()=>{r1();N4();CM=(function(t){Ct(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.flush=function(a){this._active=!0;var i=this._scheduled;this._scheduled=void 0;var r=this.actions,s;a=a||r.shift();do if(s=a.execute(a.state,a.delay))break;while((a=r[0])&&a.id===i&&r.shift());if(this._active=!1,s){for(;(a=r[0])&&a.id===i&&r.shift();)a.unsubscribe();throw s}},e})(Fi)});var NW,Nzt,IW=v(()=>{EW();PW();NW=new CM(SM),Nzt=NW});var fr,TM,Ro=v(()=>{P4();N4();fr=new Fi(Ii),TM=fr});var _M,FW=v(()=>{r1();P4();_M=(function(t){Ct(e,t);function e(a,i){var r=t.call(this,a,i)||this;return r.scheduler=a,r.work=i,r}return e.prototype.schedule=function(a,i){return i===void 0&&(i=0),i>0?t.prototype.schedule.call(this,a,i):(this.delay=i,this.state=a,this.scheduler.flush(this),this)},e.prototype.execute=function(a,i){return i>0||this.closed?t.prototype.execute.call(this,a,i):this._execute(a,i)},e.prototype.requestAsyncId=function(a,i,r){return r===void 0&&(r=0),r!=null&&r>0||r==null&&this.delay>0?t.prototype.requestAsyncId.call(this,a,i,r):(a.flush(this),0)},e})(Ii)});var LM,RW=v(()=>{r1();N4();LM=(function(t){Ct(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e})(Fi)});var OW,Izt,BW=v(()=>{FW();RW();OW=new LM(_M),Izt=OW});var $M,HW=v(()=>{r1();P4();gM();$M=(function(t){Ct(e,t);function e(a,i){var r=t.call(this,a,i)||this;return r.scheduler=a,r.work=i,r}return e.prototype.requestAsyncId=function(a,i,r){return r===void 0&&(r=0),r!==null&&r>0?t.prototype.requestAsyncId.call(this,a,i,r):(a.actions.push(this),a._scheduled||(a._scheduled=ns.requestAnimationFrame(function(){return a.flush(void 0)})))},e.prototype.recycleAsyncId=function(a,i,r){var s;if(r===void 0&&(r=0),r!=null?r>0:this.delay>0)return t.prototype.recycleAsyncId.call(this,a,i,r);var n=a.actions;i!=null&&i===a._scheduled&&((s=n[n.length-1])===null||s===void 0?void 0:s.id)!==i&&(ns.cancelAnimationFrame(i),a._scheduled=void 0)},e})(Ii)});var AM,qW=v(()=>{r1();N4();AM=(function(t){Ct(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.flush=function(a){this._active=!0;var i;a?i=a.id:(i=this._scheduled,this._scheduled=void 0);var r=this.actions,s;a=a||r.shift();do if(s=a.execute(a.state,a.delay))break;while((a=r[0])&&a.id===i&&r.shift());if(this._active=!1,s){for(;(a=r[0])&&a.id===i&&r.shift();)a.unsubscribe();throw s}},e})(Fi)});var VW,Fzt,jW=v(()=>{HW();qW();VW=new AM($M),Fzt=VW});var UW,DM,WW=v(()=>{r1();P4();hr();N4();UW=(function(t){Ct(e,t);function e(a,i){a===void 0&&(a=DM),i===void 0&&(i=1/0);var r=t.call(this,a,function(){return r.frame})||this;return r.maxFrames=i,r.frame=0,r.index=-1,r}return e.prototype.flush=function(){for(var a=this,i=a.actions,r=a.maxFrames,s,n;(n=i[0])&&n.delay<=r&&(i.shift(),this.frame=n.delay,!(s=n.execute(n.state,n.delay))););if(s){for(;n=i.shift();)n.unsubscribe();throw s}},e.frameTimeFactor=10,e})(Fi),DM=(function(t){Ct(e,t);function e(a,i,r){r===void 0&&(r=a.index+=1);var s=t.call(this,a,i)||this;return s.scheduler=a,s.work=i,s.index=r,s.active=!0,s.index=a.index=r,s}return e.prototype.schedule=function(a,i){if(i===void 0&&(i=0),Number.isFinite(i)){if(!this.id)return t.prototype.schedule.call(this,a,i);this.active=!1;var r=new e(this.scheduler,this.work);return this.add(r),r.schedule(a,i)}else return H1.EMPTY},e.prototype.requestAsyncId=function(a,i,r){r===void 0&&(r=0),this.delay=a.frame+r;var s=a.actions;return s.push(this),s.sort(e.sortActions),1},e.prototype.recycleAsyncId=function(a,i,r){r===void 0&&(r=0)},e.prototype._execute=function(a,i){if(this.active===!0)return t.prototype._execute.call(this,a,i)},e.sortActions=function(a,i){return a.delay===i.delay?a.index===i.index?0:a.index>i.index?1:-1:a.delay>i.delay?1:-1},e})(Ii)});function Rzt(t){return t?Ozt(t):Gd}function Ozt(t){return new Mt(function(e){return t.schedule(function(){return e.complete()})})}var Gd,Yd=v(()=>{La();Gd=new Mt(function(t){return t.complete()})});function Zd(t){return t&&ht(t.schedule)}var EM=v(()=>{g2()});function PM(t){return t[t.length-1]}function EZt(t){return ht(PM(t))?t.pop():void 0}function gn(t){return Zd(PM(t))?t.pop():void 0}function PZt(t,e){return typeof PM(t)=="number"?t.pop():e}var Ac=v(()=>{g2();EM()});var I4,Xd=v(()=>{I4=(function(t){return t&&typeof t.length=="number"&&typeof t!="function"})});function Qd(t){return ht(t?.then)}var NM=v(()=>{g2()});function Kd(t){return ht(t[Fo])}var IM=v(()=>{Sc();g2()});function Jd(t){return Symbol.asyncIterator&&ht(t?.[Symbol.asyncIterator])}var FM=v(()=>{g2()});function e7(t){return new TypeError("You provided "+(t!==null&&typeof t=="object"?"an invalid object":"'"+t+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}var RM=v(()=>{});function Bzt(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var t7,OM=v(()=>{t7=Bzt()});function a7(t){return ht(t?.[t7])}var BM=v(()=>{OM();g2()});function i7(t){return iM(this,arguments,function(){var a,i,r,s;return wc(this,function(n){switch(n.label){case 0:a=t.getReader(),n.label=1;case 1:n.trys.push([1,,9,10]),n.label=2;case 2:return[4,ss(a.read())];case 3:return i=n.sent(),r=i.value,s=i.done,s?[4,ss(void 0)]:[3,5];case 4:return[2,n.sent()];case 5:return[4,ss(r)];case 6:return[4,n.sent()];case 7:return n.sent(),[3,2];case 8:return[3,10];case 9:return a.releaseLock(),[7];case 10:return[2]}})})}function r7(t){return ht(t?.getReader)}var s7=v(()=>{r1();g2()});function D1(t){if(t instanceof Mt)return t;if(t!=null){if(Kd(t))return Hzt(t);if(I4(t))return qzt(t);if(Qd(t))return Vzt(t);if(Jd(t))return GW(t);if(a7(t))return jzt(t);if(r7(t))return Uzt(t)}throw e7(t)}function Hzt(t){return new Mt(function(e){var a=t[Fo]();if(ht(a.subscribe))return a.subscribe(e);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function qzt(t){return new Mt(function(e){for(var a=0;a<t.length&&!e.closed;a++)e.next(t[a]);e.complete()})}function Vzt(t){return new Mt(function(e){t.then(function(a){e.closed||(e.next(a),e.complete())},function(a){return e.error(a)}).then(null,Rd)})}function jzt(t){return new Mt(function(e){var a,i;try{for(var r=B2(t),s=r.next();!s.done;s=r.next()){var n=s.value;if(e.next(n),e.closed)return}}catch(o){a={error:o}}finally{try{s&&!s.done&&(i=r.return)&&i.call(r)}finally{if(a)throw a.error}}e.complete()})}function GW(t){return new Mt(function(e){Wzt(t,e).catch(function(a){return e.error(a)})})}function Uzt(t){return GW(i7(t))}function Wzt(t,e){var a,i,r,s;return aM(this,void 0,void 0,function(){var n,o;return wc(this,function(l){switch(l.label){case 0:l.trys.push([0,5,6,11]),a=rM(t),l.label=1;case 1:return[4,a.next()];case 2:if(i=l.sent(),!!i.done)return[3,4];if(n=i.value,e.next(n),e.closed)return[2];l.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return o=l.sent(),r={error:o},[3,11];case 6:return l.trys.push([6,,9,10]),i&&!i.done&&(s=a.return)?[4,s.call(a)]:[3,8];case 7:l.sent(),l.label=8;case 8:return[3,10];case 9:if(r)throw r.error;return[7];case 10:return[7];case 11:return e.complete(),[2]}})})}var ui=v(()=>{r1();Xd();NM();La();IM();FM();RM();BM();s7();g2();lM();Sc()});function T2(t,e,a,i,r){i===void 0&&(i=0),r===void 0&&(r=!1);var s=e.schedule(function(){a(),r?t.add(this.schedule(null,i)):this.unsubscribe()},i);if(t.add(s),!r)return s}var Oo=v(()=>{});function F4(t,e){return e===void 0&&(e=0),Qt(function(a,i){a.subscribe(jt(i,function(r){return T2(i,t,function(){return i.next(r)},e)},function(){return T2(i,t,function(){return i.complete()},e)},function(r){return T2(i,t,function(){return i.error(r)},e)}))})}var Dc=v(()=>{Oo();C2();da()});function R4(t,e){return e===void 0&&(e=0),Qt(function(a,i){i.add(t.schedule(function(){return a.subscribe(i)},e))})}var Ec=v(()=>{C2()});function YW(t,e){return D1(t).pipe(R4(e),F4(e))}var ZW=v(()=>{ui();Dc();Ec()});function XW(t,e){return D1(t).pipe(R4(e),F4(e))}var QW=v(()=>{ui();Dc();Ec()});function KW(t,e){return new Mt(function(a){var i=0;return e.schedule(function(){i===t.length?a.complete():(a.next(t[i++]),a.closed||this.schedule())})})}var JW=v(()=>{La()});function eG(t,e){return new Mt(function(a){var i;return T2(a,e,function(){i=t[t7](),T2(a,e,function(){var r,s,n;try{r=i.next(),s=r.value,n=r.done}catch(o){a.error(o);return}n?a.complete():a.next(s)},0,!0)}),function(){return ht(i?.return)&&i.return()}})}var tG=v(()=>{La();OM();g2();Oo()});function n7(t,e){if(!t)throw new Error("Iterable cannot be null");return new Mt(function(a){T2(a,e,function(){var i=t[Symbol.asyncIterator]();T2(a,e,function(){i.next().then(function(r){r.done?a.complete():a.next(r.value)})},0,!0)})})}var HM=v(()=>{La();Oo()});function aG(t,e){return n7(i7(t),e)}var iG=v(()=>{HM();s7()});function qM(t,e){if(t!=null){if(Kd(t))return YW(t,e);if(I4(t))return KW(t,e);if(Qd(t))return XW(t,e);if(Jd(t))return n7(t,e);if(a7(t))return eG(t,e);if(r7(t))return aG(t,e)}throw e7(t)}var VM=v(()=>{ZW();QW();JW();tG();HM();IM();NM();Xd();BM();FM();RM();s7();iG()});function Bo(t,e){return e?qM(t,e):D1(t)}var o7=v(()=>{VM();ui()});function Pc(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var a=gn(t);return Bo(t,a)}var jM=v(()=>{Ac();o7()});function UM(t,e){var a=ht(t)?t:function(){return t},i=function(r){return r.error(a())};return new Mt(e?function(r){return e.schedule(i,0,r)}:i)}var WM=v(()=>{La();g2()});function Gzt(t,e){var a,i,r,s=t,n=s.kind,o=s.value,l=s.error;if(typeof n!="string")throw new TypeError('Invalid notification, missing "kind"');n==="N"?(a=e.next)===null||a===void 0||a.call(e,o):n==="E"?(i=e.error)===null||i===void 0||i.call(e,l):(r=e.complete)===null||r===void 0||r.call(e)}var GM,rG,sG=v(()=>{Yd();jM();WM();g2();(function(t){t.NEXT="N",t.ERROR="E",t.COMPLETE="C"})(GM||(GM={}));rG=(function(){function t(e,a,i){this.kind=e,this.value=a,this.error=i,this.hasValue=e==="N"}return t.prototype.observe=function(e){return Gzt(this,e)},t.prototype.do=function(e,a,i){var r=this,s=r.kind,n=r.value,o=r.error;return s==="N"?e?.(n):s==="E"?a?.(o):i?.()},t.prototype.accept=function(e,a,i){var r;return ht((r=e)===null||r===void 0?void 0:r.next)?this.observe(e):this.do(e,a,i)},t.prototype.toObservable=function(){var e=this,a=e.kind,i=e.value,r=e.error,s=a==="N"?Pc(i):a==="E"?UM(function(){return r}):a==="C"?Gd:0;if(!s)throw new TypeError("Unexpected notification kind "+a);return s},t.createNext=function(e){return new t("N",e)},t.createError=function(e){return new t("E",void 0,e)},t.createComplete=function(){return t.completeNotification},t.completeNotification=new t("C"),t})()});var nG=v(()=>{});var Yzt,oG=v(()=>{mn();Yzt=_a(function(t){return function(){t(this),this.name="EmptyError",this.message="no elements in sequence"}})});var lG=v(()=>{});var cG=v(()=>{});var Zzt,dG=v(()=>{mn();Zzt=_a(function(t){return function(){t(this),this.name="ArgumentOutOfRangeError",this.message="argument out of range"}})});var Xzt,uG=v(()=>{mn();Xzt=_a(function(t){return function(a){t(this),this.name="NotFoundError",this.message=a}})});var Qzt,pG=v(()=>{mn();Qzt=_a(function(t){return function(a){t(this),this.name="SequenceError",this.message=a}})});function l7(t){return t instanceof Date&&!isNaN(t)}var YM=v(()=>{});function fG(t,e){var a=l7(t)?{first:t}:typeof t=="number"?{each:t}:t,i=a.first,r=a.each,s=a.with,n=s===void 0?Kzt:s,o=a.scheduler,l=o===void 0?e??fr:o,d=a.meta,u=d===void 0?null:d;if(i==null&&r==null)throw new TypeError("No timeout provided.");return Qt(function(c,f){var g,y,b=null,m=0,x=function(M){y=T2(f,l,function(){try{g.unsubscribe(),D1(n({meta:u,lastValue:b,seen:m})).subscribe(f)}catch(k){f.error(k)}},M)};g=c.subscribe(jt(f,function(M){y?.unsubscribe(),m++,f.next(b=M),r>0&&x(r)},void 0,void 0,function(){y?.closed||y?.unsubscribe(),b=null})),!m&&x(i!=null?typeof i=="number"?i:+i-l.now():r)})}function Kzt(t){throw new hG(t)}var hG,c7=v(()=>{Ro();YM();C2();ui();mn();da();Oo();hG=_a(function(t){return function(a){a===void 0&&(a=null),t(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=a}})});function bn(t,e){return Qt(function(a,i){var r=0;a.subscribe(jt(i,function(s){i.next(t.call(e,s,r++))}))})}var Nc=v(()=>{C2();da()});function eSt(t,e){return Jzt(e)?t.apply(void 0,k2([],Z1(e))):t(e)}function mG(t){return bn(function(e){return eSt(t,e)})}var Jzt,gG=v(()=>{r1();Nc();Jzt=Array.isArray});var bG=v(()=>{});var vG=v(()=>{});var yG=v(()=>{});function xG(t,e,a,i,r,s,n,o){var l=[],d=0,u=0,c=!1,f=function(){c&&!l.length&&!d&&e.complete()},g=function(b){return d<i?y(b):l.push(b)},y=function(b){s&&e.next(b),d++;var m=!1;D1(a(b,u++)).subscribe(jt(e,function(x){r?.(x),s?g(x):e.next(x)},function(){m=!0},void 0,function(){if(m)try{d--;for(var x=function(){var M=l.shift();n?T2(e,n,function(){return y(M)}):y(M)};l.length&&d<i;)x();f()}catch(M){e.error(M)}}))};return t.subscribe(jt(e,g,function(){c=!0,f()})),function(){o?.()}}var wG=v(()=>{ui();Oo();da()});function Ho(t,e,a){return a===void 0&&(a=1/0),ht(e)?Ho(function(i,r){return bn(function(s,n){return e(i,s,r,n)})(D1(t(i,r)))},a):(typeof e=="number"&&(a=e),Qt(function(i,r){return xG(i,r,t,a)}))}var Ic=v(()=>{Nc();ui();C2();wG();g2()});function d7(t){return t===void 0&&(t=1/0),Ho(kc,t)}var u7=v(()=>{Ic();qd()});function p7(){return d7(1)}var h7=v(()=>{u7()});function f7(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return p7()(Bo(t,gn(t)))}var ZM=v(()=>{h7();Ac();o7()});var MG=v(()=>{});var zG=v(()=>{});var SG=v(()=>{});function qo(t,e,a,i){if(ht(a)&&(i=a,a=void 0),i)return qo(t,e,a).pipe(mG(i));var r=Z1(nSt(t)?aSt.map(function(o){return function(l){return t[o](e,l,a)}}):rSt(t)?tSt.map(kG(t,e)):sSt(t)?iSt.map(kG(t,e)):[],2),s=r[0],n=r[1];if(!s&&I4(t))return Ho(function(o){return qo(o,e,a)})(D1(t));if(!s)throw new TypeError("Invalid event target");return new Mt(function(o){var l=function(){for(var d=[],u=0;u<arguments.length;u++)d[u]=arguments[u];return o.next(1<d.length?d:d[0])};return s(l),function(){return n(l)}})}function kG(t,e){return function(a){return function(i){return t[a](e,i)}}}function rSt(t){return ht(t.addListener)&&ht(t.removeListener)}function sSt(t){return ht(t.on)&&ht(t.off)}function nSt(t){return ht(t.addEventListener)&&ht(t.removeEventListener)}var tSt,aSt,iSt,CG=v(()=>{r1();ui();La();Ic();Xd();g2();gG();tSt=["addListener","removeListener"],aSt=["addEventListener","removeEventListener"],iSt=["on","off"]});var TG=v(()=>{});var _G=v(()=>{});var LG=v(()=>{});function XM(t,e,a){t===void 0&&(t=0),a===void 0&&(a=TM);var i=-1;return e!=null&&(Zd(e)?a=e:i=e),new Mt(function(r){var s=l7(t)?+t-a.now():t;s<0&&(s=0);var n=0;return a.schedule(function(){r.closed||(r.next(n++),0<=i?this.schedule(void 0,i):r.complete())},s)})}var QM=v(()=>{La();Ro();EM();YM()});var $G=v(()=>{});var AG=v(()=>{});function oSt(){return DG}var DG,KM=v(()=>{La();Po();DG=new Mt(di)});var EG=v(()=>{});var PG=v(()=>{});function m7(t,e){return Qt(function(a,i){var r=0;a.subscribe(jt(i,function(s){return t.call(e,s,r++)&&i.next(s)}))})}var JM=v(()=>{C2();da()});var NG=v(()=>{});var IG=v(()=>{});var FG=v(()=>{});var RG=v(()=>{});var OG=v(()=>{});var BG=v(()=>{});var ez=v(()=>{});var tz=v(()=>{});function g7(t){return Qt(function(e,a){var i=[];return e.subscribe(jt(a,function(r){return i.push(r)},function(){a.next(i),a.complete()})),D1(t).subscribe(jt(a,function(){var r=i;i=[],a.next(r)},di)),function(){i=null}})}var az=v(()=>{C2();Po();da();ui()});function b7(t,e){return e===void 0&&(e=null),e=e??t,Qt(function(a,i){var r=[],s=0;a.subscribe(jt(i,function(n){var o,l,d,u,c=null;s++%e===0&&r.push([]);try{for(var f=B2(r),g=f.next();!g.done;g=f.next()){var y=g.value;y.push(n),t<=y.length&&(c=c??[],c.push(y))}}catch(x){o={error:x}}finally{try{g&&!g.done&&(l=f.return)&&l.call(f)}finally{if(o)throw o.error}}if(c)try{for(var b=B2(c),m=b.next();!m.done;m=b.next()){var y=m.value;Ni(r,y),i.next(y)}}catch(x){d={error:x}}finally{try{m&&!m.done&&(u=b.return)&&u.call(b)}finally{if(d)throw d.error}}},function(){var n,o;try{for(var l=B2(r),d=l.next();!d.done;d=l.next()){var u=d.value;i.next(u)}}catch(c){n={error:c}}finally{try{d&&!d.done&&(o=l.return)&&o.call(l)}finally{if(n)throw n.error}}i.complete()},void 0,function(){r=null}))})}var iz=v(()=>{r1();C2();da();$4()});function v7(t){for(var e,a,i=[],r=1;r<arguments.length;r++)i[r-1]=arguments[r];var s=(e=gn(i))!==null&&e!==void 0?e:fr,n=(a=i[0])!==null&&a!==void 0?a:null,o=i[1]||1/0;return Qt(function(l,d){var u=[],c=!1,f=function(b){var m=b.buffer,x=b.subs;x.unsubscribe(),Ni(u,b),d.next(m),c&&g()},g=function(){if(u){var b=new H1;d.add(b);var m=[],x={buffer:m,subs:b};u.push(x),T2(b,s,function(){return f(x)},t)}};n!==null&&n>=0?T2(d,s,g,n,!0):c=!0,g();var y=jt(d,function(b){var m,x,M=u.slice();try{for(var k=B2(M),F=k.next();!F.done;F=k.next()){var T=F.value,S=T.buffer;S.push(b),o<=S.length&&f(T)}}catch(I){m={error:I}}finally{try{F&&!F.done&&(x=k.return)&&x.call(k)}finally{if(m)throw m.error}}},function(){for(;u?.length;)d.next(u.shift().buffer);y?.unsubscribe(),d.complete(),d.unsubscribe()},void 0,function(){return u=null});l.subscribe(y)})}var rz=v(()=>{r1();hr();C2();da();$4();Ro();Ac();Oo()});var sz=v(()=>{});var nz=v(()=>{});var oz=v(()=>{});var lz=v(()=>{});var cz=v(()=>{});var dz=v(()=>{});var uz=v(()=>{});var HG=v(()=>{});var pz=v(()=>{});var hz=v(()=>{});var fz=v(()=>{});var qG=v(()=>{});var mz=v(()=>{});var gz=v(()=>{});var bz=v(()=>{});function y7(t){return Qt(function(e,a){var i=!1,r=null,s=null,n=function(){if(s?.unsubscribe(),s=null,i){i=!1;var o=r;r=null,a.next(o)}};e.subscribe(jt(a,function(o){s?.unsubscribe(),i=!0,r=o,s=jt(a,n,di),D1(t(o)).subscribe(s)},function(){n(),a.complete()},void 0,function(){r=s=null}))})}var vz=v(()=>{C2();Po();da();ui()});function x7(t,e){return e===void 0&&(e=fr),Qt(function(a,i){var r=null,s=null,n=null,o=function(){if(r){r.unsubscribe(),r=null;var d=s;s=null,i.next(d)}};function l(){var d=n+t,u=e.now();if(u<d){r=this.schedule(void 0,d-u),i.add(r);return}o()}a.subscribe(jt(i,function(d){s=d,n=e.now(),r||(r=e.schedule(l,t),i.add(r))},function(){o(),i.complete()},void 0,function(){s=r=null}))})}var yz=v(()=>{Ro();C2();da()});var xz=v(()=>{});var wz=v(()=>{});var Mz=v(()=>{});var zz=v(()=>{});var Sz=v(()=>{});var kz=v(()=>{});var Cz=v(()=>{});var Tz=v(()=>{});var _z=v(()=>{});var Lz=v(()=>{});var $z=v(()=>{});var Az=v(()=>{});var Dz=v(()=>{});var Ez=v(()=>{});var Pz=v(()=>{});var Nz=v(()=>{});var Iz=v(()=>{});var Fz=v(()=>{});var Rz=v(()=>{});var Oz=v(()=>{});var Bz=v(()=>{});var Hz=v(()=>{});var qz=v(()=>{});var Vz=v(()=>{});var jz=v(()=>{});var Uz=v(()=>{});var Wz=v(()=>{});var Gz=v(()=>{});var Yz=v(()=>{});var Zz=v(()=>{});var Xz=v(()=>{});var VG=v(()=>{});var Qz=v(()=>{});var Kz=v(()=>{});var Jz=v(()=>{});var eS=v(()=>{});var tS=v(()=>{});var aS=v(()=>{});var iS=v(()=>{});var rS=v(()=>{});var sS=v(()=>{});var nS=v(()=>{});var oS=v(()=>{});var lS=v(()=>{});var cS=v(()=>{});var dS=v(()=>{});var uS=v(()=>{});var pS=v(()=>{});var hS=v(()=>{});var fS=v(()=>{});var mS=v(()=>{});var gS=v(()=>{});var bS=v(()=>{});var vS=v(()=>{});var yS=v(()=>{});var xS=v(()=>{});var wS=v(()=>{});var MS=v(()=>{});function w7(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var a=gn(t);return Qt(function(i,r){(a?f7(t,i,a):f7(t,i)).subscribe(r)})}var zS=v(()=>{ZM();Ac();C2()});var SS=v(()=>{});var kS=v(()=>{});var CS=v(()=>{});var TS=v(()=>{});function M7(t){return Qt(function(e,a){D1(t).subscribe(jt(a,function(){return a.complete()},di)),!a.closed&&e.subscribe(a)})}var _S=v(()=>{C2();da();ui();Po()});var LS=v(()=>{});var $S=v(()=>{});function z7(t,e){return Qt(function(a,i){var r=e??{},s=r.leading,n=s===void 0?!0:s,o=r.trailing,l=o===void 0?!1:o,d=!1,u=null,c=null,f=!1,g=function(){c?.unsubscribe(),c=null,l&&(m(),f&&i.complete())},y=function(){c=null,f&&i.complete()},b=function(x){return c=D1(t(x)).subscribe(jt(i,g,y))},m=function(){if(d){d=!1;var x=u;u=null,i.next(x),!f&&b(x)}};a.subscribe(jt(i,function(x){d=!0,u=x,!(c&&!c.closed)&&(n?m():b(x))},function(){f=!0,!(l&&d&&c&&!c.closed)&&i.complete()}))})}var S7=v(()=>{C2();da();ui()});function k7(t,e,a){e===void 0&&(e=fr);var i=XM(t,e);return z7(function(){return i},a)}var AS=v(()=>{Ro();S7();QM()});var DS=v(()=>{});var ES=v(()=>{});var PS=v(()=>{});var NS=v(()=>{});var IS=v(()=>{});var FS=v(()=>{});var RS=v(()=>{});var OS=v(()=>{});var BS=v(()=>{});var HS=v(()=>{});var jG=v(()=>{});var qS=v(()=>{});var VS=v(()=>{La();yW();Sc();MW();Cc();SW();kW();TW();IW();Ro();BW();jW();WW();kM();hr();Hd();sG();hM();Po();qd();nG();lG();cG();dG();oG();uG();vM();pG();c7();sM();bG();vG();yG();ZM();zG();MG();Yd();SG();o7();CG();TG();_G();LG();$G();AG();KM();jM();EG();PG();NG();IG();FG();WM();QM();RG();OG();VM();Yd();KM();BG();A4();ez();tz();az();iz();rz();sz();nz();oz();uz();dz();pz();h7();hz();fz();mz();gz();bz();vz();yz();xz();kz();Sz();Cz();Tz();_z();Lz();Az();Dz();Ez();Iz();Nz();Pz();Fz();JM();Rz();Oz();Bz();Hz();qz();Mz();Vz();Uz();Nc();zz();Wz();Gz();u7();Yz();Ic();Zz();Xz();Qz();Kz();Jz();Dc();eS();tS();aS();iS();rS();sS();nS();oS();lz();lS();cS();dS();uS();jd();pS();hS();fS();mS();gS();bS();vS();yS();xS();wS();MS();zS();Ec();kS();SS();CS();TS();wz();jz();_S();LS();$S();S7();AS();$z();DS();c7();ES();PS();cz();NS();IS();FS();RS();OS();BS();HS();qS()});var UG=v(()=>{});var WG=v(()=>{});var GG=v(()=>{ez();tz();az();iz();rz();sz();nz();oz();uz();dz();HG();pz();qG();h7();hz();fz();mz();gz();bz();vz();yz();xz();kz();Sz();Cz();Tz();_z();Lz();Az();Dz();Ez();Iz();Nz();Pz();Fz();JM();Rz();Oz();Bz();Hz();qz();Mz();Vz();Uz();Nc();zz();Wz();Gz();VG();u7();Yz();Ic();Zz();Xz();Qz();Kz();Jz();Dc();eS();tS();UG();aS();iS();rS();sS();nS();WG();oS();lz();lS();cS();dS();uS();jd();pS();hS();fS();mS();gS();bS();vS();yS();xS();wS();MS();zS();Ec();kS();SS();CS();TS();wz();jz();_S();LS();$S();S7();AS();$z();DS();c7();ES();PS();cz();NS();IS();FS();RS();OS();BS();jG();HS();qS()});var O4={};Qe(O4,{Observable:()=>Mt,ReplaySubject:()=>Ud,Subject:()=>$a,Subscription:()=>H1,from:()=>Bo,fromEvent:()=>qo,of:()=>Pc,ops:()=>qkt});var qkt,C7=v(()=>{VS();GG();qkt={buffer:g7,bufferCount:b7,bufferTime:v7,debounce:y7,debounceTime:x7,filter:m7,map:bn,startWith:w7,takeUntil:M7,throttleTime:k7}});var jS,YG=v(()=>{Id();C7();jS=class{constructor(){this.observableEventEmitterBundleArray=new Array,this.observableEventTargetBundleArray=new Array}getSubjectForEmitterEvent(e,a){let i=this.observableEventEmitterBundleArray.find(r=>r.eventRef===e&&r.event===a);if(i)return i.subject;{let r=qo(e,a),s=new $a;r.subscribe(s);let n={subject:s,eventRef:e,event:a};return this.observableEventEmitterBundleArray.push(n),n.subject}}getSubjectForEventTarget(e,a){let i=this.observableEventTargetBundleArray.find(r=>r.eventRef===e&&r.event===a);if(i)return i.subject;{let s={subject:new $a,eventRef:e,event:a};return this.observableEventTargetBundleArray.push(s),s.subject}}}});var US,ZG=v(()=>{Id();C7();US=class{constructor(){this.observableFunctions={next:e=>{},complete:e=>{}},this.generator=null,this.buffered=!1,this.payloadBuffer=[],this.observable=new Mt(e=>{this.observableFunctions.next=(...a)=>e.next(a),this.observableFunctions.complete=()=>(this.completedDeffered.resolve(),e.complete())}),this.completedDeffered=He.defer(),this.completed=this.completedDeffered.promise}setObservable(e){this.observable=e}push(e){this.buffered?this.payloadBuffer.push(e):this.internalPush(e)}pushMany(e){for(let a of e)this.push(a)}setGenerator(e){this.generator=e}makeBuffered(){this.buffered=!0}subscribe(...e){return this.observable.subscribe(...e)}request(e){if(e!==0)for(let a=0;a!==e;a++)if(this.payloadBuffer.length>0)this.internalPush(this.payloadBuffer.shift());else{let i=this.generator.next();this.internalPush(i.value)}}signalComplete(){this.observableFunctions.complete()}internalPush(e){this.observableFunctions.next(e)}}});function Vkt(t){return new Mt(e=>{let a=()=>t.pause(),i=()=>process.nextTick(()=>t.resume()),r=s=>{a(),e.next(s),i()};return t.on("data",r),t.on("error",s=>e.error(s)),t.on("end",()=>e.complete()),t.on("close",()=>e.complete()),()=>{t.removeListener("data",r),t.removeListener("error",e.error),t.removeListener("end",e.complete),t.removeListener("close",e.complete)}})}var XG=v(()=>{VS()});var yt={};Qe(yt,{ObservableIntake:()=>US,Observablemap:()=>jS,fromStreamWithBackpressure:()=>Vkt,rxjs:()=>O4});var pi=v(()=>{Id();YG();ZG();XG();C7()});function N(t){return(e,a)=>typeof a=="object"?QG(t,e,a):((i,r,s)=>{let n=r.hasOwnProperty(s);return r.constructor.createProperty(s,i),n?Object.getOwnPropertyDescriptor(r,s):void 0})(t,e,a)}var jkt,QG,T7=v(()=>{gc();jkt={attribute:!0,type:String,converter:_4,reflect:!1,hasChanged:mc},QG=(t=jkt,e,a)=>{let{kind:i,metadata:r}=a,s=globalThis.litPropertyMetadata.get(r);if(s===void 0&&globalThis.litPropertyMetadata.set(r,s=new Map),i==="setter"&&((t=Object.create(t)).wrapped=!0),s.set(a.name,t),i==="accessor"){let{name:n}=a;return{set(o){let l=e.get.call(this);e.set.call(this,o),this.requestUpdate(n,l,t,!0,o)},init(o){return o!==void 0&&this.C(n,void 0,t,o),o}}}if(i==="setter"){let{name:n}=a;return function(o){let l=this[n];e.call(this,o),this.requestUpdate(n,l,t,!0,o)}}throw Error("Unsupported decorator location: "+i)}});var KG=v(()=>{T7()});var JG=v(()=>{});var rt={};Qe(rt,{Timeout:()=>_7,delayFor:()=>eY,delayForRandom:()=>Ukt});var eY,Ukt,_7,Ri=v(()=>{a2();eY=async(t,e,a=!1)=>(await new _7(t,null,a).promise,e),Ukt=async(t,e,a,i=!1)=>(await eY(Math.random()*(e-t)+t,null,i),a),_7=class{constructor(e,a,i=!1){this._cancelled=!1,this.timeoutInMillis=e,this._deferred=fn(),this.promise=this._deferred.promise,this._timeout=setTimeout(()=>{this._cancelled||this._deferred.resolve(a)},e),this.started=Date.now(),i&&this.makeUnrefed()}makeUnrefed(){this._timeout.unref()}cancel(){this._cancelled=!0,clearTimeout(this._timeout)}getTimeLeft(){let e=this.started+this.timeoutInMillis-Date.now();return e>0?e:0}}});var mr={};var B4=v(()=>{});function Vo(t){if(typeof t!="string")throw new TypeError("Expected a string");return t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}var L7=v(()=>{});var Fc={};Qe(Fc,{isMatch:()=>Ykt,matcher:()=>Gkt});function Gkt(t,e,a){return aY(t,e,a,!1)}function Ykt(t,e,a){return aY(t,e,a,!0).length>0}var WS,tY,Wkt,aY,iY=v(()=>{L7();WS=new Map,tY=(t,e)=>{if(!Array.isArray(t))switch(typeof t){case"string":t=[t];break;case"undefined":t=[];break;default:throw new TypeError(`Expected '${e}' to be a string or an array, but got a type of '${typeof t}'`)}return t.filter(a=>{if(typeof a!="string"){if(typeof a>"u")return!1;throw new TypeError(`Expected '${e}' to be an array of strings, but found a type of '${typeof a}' in the array`)}return!0})},Wkt=(t,e)=>{e={caseSensitive:!1,...e};let a=t+JSON.stringify(e);if(WS.has(a))return WS.get(a);let i=t[0]==="!";i&&(t=t.slice(1)),t=Vo(t).replace(/\\\*/g,"[\\s\\S]*");let r=new RegExp(`^${t}$`,e.caseSensitive?"":"i");return r.negated=i,WS.set(a,r),r},aY=(t,e,a,i)=>{if(t=tY(t,"inputs"),e=tY(e,"patterns"),e.length===0)return[];e=e.map(n=>Wkt(n,a));let{allPatterns:r}=a||{},s=[];for(let n of t){let o,l=[...e].fill(!1);for(let[d,u]of e.entries())if(u.test(n)&&(l[d]=!0,o=!u.negated,!o))break;if(!(o===!1||o===void 0&&e.some(d=>!d.negated)||r&&l.some((d,u)=>!d&&!e[u].negated))&&(s.push(n),i))break}return s}});var rY=v(()=>{iY()});var os={};Qe(os,{SmartMatch:()=>GS});var GS,YS=v(()=>{rY();GS=class{constructor(e){this.wildcard=e}match(e){return Fc.isMatch(e,this.wildcard)}}});var Bc={};Qe(Bc,{Cron:()=>cY,CronDate:()=>Aa,CronPattern:()=>$7,scheduledJobs:()=>H4});function H2(t,e,a,i,r,s,n,o){return H2.fromTZ(H2.tp(t,e,a,i,r,s,n),o)}function ZS(t,e=new Date){let a=e.toLocaleString("en-US",{timeZone:t,timeZoneName:"shortOffset"}).split(" ").slice(-1)[0],i=e.toLocaleString("en-US").replace(/[\u202f]/," ");return Date.parse(`${i} GMT`)-Date.parse(`${i} ${a}`)}function Xkt(t,e){let a=new Date(Date.parse(t));if(isNaN(a))throw new Error("minitz: Invalid ISO8601 passed to parser.");let i=t.substring(9);return t.includes("Z")||i.includes("-")||i.includes("+")?H2.tp(a.getUTCFullYear(),a.getUTCMonth()+1,a.getUTCDate(),a.getUTCHours(),a.getUTCMinutes(),a.getUTCSeconds(),"Etc/UTC"):H2.tp(a.getFullYear(),a.getMonth()+1,a.getDate(),a.getHours(),a.getMinutes(),a.getSeconds(),e)}function Qkt(t){if(t===void 0&&(t={}),delete t.name,t.legacyMode=t.legacyMode===void 0?!0:t.legacyMode,t.paused=t.paused===void 0?!1:t.paused,t.maxRuns=t.maxRuns===void 0?1/0:t.maxRuns,t.catch=t.catch===void 0?!1:t.catch,t.interval=t.interval===void 0?0:parseInt(t.interval.toString(),10),t.utcOffset=t.utcOffset===void 0?void 0:parseInt(t.utcOffset.toString(),10),t.unref=t.unref===void 0?!1:t.unref,t.startAt&&(t.startAt=new Aa(t.startAt,t.timezone)),t.stopAt&&(t.stopAt=new Aa(t.stopAt,t.timezone)),t.interval!==null){if(isNaN(t.interval))throw new Error("CronOptions: Supplied value for interval is not a number");if(t.interval<0)throw new Error("CronOptions: Supplied value for interval can not be negative")}if(t.utcOffset!==void 0){if(isNaN(t.utcOffset))throw new Error("CronOptions: Invalid value passed for utcOffset, should be number representing minutes offset from UTC.");if(t.utcOffset<-870||t.utcOffset>870)throw new Error("CronOptions: utcOffset out of bounds.");if(t.utcOffset!==void 0&&t.timezone)throw new Error("CronOptions: Combining 'utcOffset' with 'timezone' is not allowed.")}if(t.unref!==!0&&t.unref!==!1)throw new Error("CronOptions: Unref should be either true, false or undefined(false).");return t}function Oc(t){return Object.prototype.toString.call(t)==="[object Function]"||typeof t=="function"||t instanceof Function}function Kkt(t){return Oc(t)}function Jkt(t){typeof Deno<"u"&&typeof Deno.unrefTimer<"u"?Deno.unrefTimer(t):t&&typeof t.unref<"u"&&t.unref()}var XS,Rc,sY,$7,nY,ls,Aa,oY,H4,cY,dY=v(()=>{H2.fromTZISO=(t,e,a)=>H2.fromTZ(Xkt(t,e),a),H2.fromTZ=function(t,e){let a=new Date(Date.UTC(t.y,t.m-1,t.d,t.h,t.i,t.s)),i=ZS(t.tz,a),r=new Date(a.getTime()-i),s=ZS(t.tz,r);if(s-i===0)return r;{let n=new Date(a.getTime()-s),o=ZS(t.tz,n);if(o-s===0||!e&&o-s>0)return n;if(e)throw new Error("Invalid date passed to fromTZ()");return r}},H2.toTZ=function(t,e){let a=t.toLocaleString("en-US",{timeZone:e}).replace(/[\u202f]/," "),i=new Date(a);return{y:i.getFullYear(),m:i.getMonth()+1,d:i.getDate(),h:i.getHours(),i:i.getMinutes(),s:i.getSeconds(),tz:e}},H2.tp=(t,e,a,i,r,s,n)=>({y:t,m:e,d:a,h:i,i:r,s,tz:n});H2.minitz=H2;XS=32,Rc=31|XS,sY=[1,2,4,8,16],$7=class{pattern;timezone;second;minute;hour;day;month;dayOfWeek;lastDayOfMonth;starDOM;starDOW;constructor(t,e){this.pattern=t,this.timezone=e,this.second=Array(60).fill(0),this.minute=Array(60).fill(0),this.hour=Array(24).fill(0),this.day=Array(31).fill(0),this.month=Array(12).fill(0),this.dayOfWeek=Array(7).fill(0),this.lastDayOfMonth=!1,this.starDOM=!1,this.starDOW=!1,this.parse()}parse(){if(!(typeof this.pattern=="string"||this.pattern instanceof String))throw new TypeError("CronPattern: Pattern has to be of type string.");this.pattern.indexOf("@")>=0&&(this.pattern=this.handleNicknames(this.pattern).trim());let t=this.pattern.replace(/\s+/g," ").split(" ");if(t.length<5||t.length>6)throw new TypeError("CronPattern: invalid configuration format ('"+this.pattern+"'), exactly five or six space separated parts are required.");if(t.length===5&&t.unshift("0"),t[3].indexOf("L")>=0&&(t[3]=t[3].replace("L",""),this.lastDayOfMonth=!0),t[3]=="*"&&(this.starDOM=!0),t[4].length>=3&&(t[4]=this.replaceAlphaMonths(t[4])),t[5].length>=3&&(t[5]=this.replaceAlphaDays(t[5])),t[5]=="*"&&(this.starDOW=!0),this.pattern.indexOf("?")>=0){let e=new Aa(new Date,this.timezone).getDate(!0);t[0]=t[0].replace("?",e.getSeconds().toString()),t[1]=t[1].replace("?",e.getMinutes().toString()),t[2]=t[2].replace("?",e.getHours().toString()),this.starDOM||(t[3]=t[3].replace("?",e.getDate().toString())),t[4]=t[4].replace("?",(e.getMonth()+1).toString()),this.starDOW||(t[5]=t[5].replace("?",e.getDay().toString()))}this.throwAtIllegalCharacters(t),this.partToArray("second",t[0],0,1),this.partToArray("minute",t[1],0,1),this.partToArray("hour",t[2],0,1),this.partToArray("day",t[3],-1,1),this.partToArray("month",t[4],-1,1),this.partToArray("dayOfWeek",t[5],0,Rc),this.dayOfWeek[7]&&(this.dayOfWeek[0]=this.dayOfWeek[7])}partToArray(t,e,a,i){let r=this[t],s=t==="day"&&this.lastDayOfMonth;if(e===""&&!s)throw new TypeError("CronPattern: configuration entry "+t+" ("+e+") is empty, check for trailing spaces.");if(e==="*")return r.fill(i);let n=e.split(",");if(n.length>1)for(let o=0;o<n.length;o++)this.partToArray(t,n[o],a,i);else e.indexOf("-")!==-1&&e.indexOf("/")!==-1?this.handleRangeWithStepping(e,t,a,i):e.indexOf("-")!==-1?this.handleRange(e,t,a,i):e.indexOf("/")!==-1?this.handleStepping(e,t,a,i):e!==""&&this.handleNumber(e,t,a,i)}throwAtIllegalCharacters(t){for(let e=0;e<t.length;e++)if((e===5?/[^/*0-9,\-#L]+/:/[^/*0-9,-]+/).test(t[e]))throw new TypeError("CronPattern: configuration entry "+e+" ("+t[e]+") contains illegal characters.")}handleNumber(t,e,a,i){let r=this.extractNth(t,e),s=parseInt(r[0],10)+a;if(isNaN(s))throw new TypeError("CronPattern: "+e+" is not a number: '"+t+"'");this.setPart(e,s,r[1]||i)}setPart(t,e,a){if(!Object.prototype.hasOwnProperty.call(this,t))throw new TypeError("CronPattern: Invalid part specified: "+t);if(t==="dayOfWeek"){if(e===7&&(e=0),e<0||e>6)throw new RangeError("CronPattern: Invalid value for dayOfWeek: "+e);this.setNthWeekdayOfMonth(e,a);return}if(t==="second"||t==="minute"){if(e<0||e>=60)throw new RangeError("CronPattern: Invalid value for "+t+": "+e)}else if(t==="hour"){if(e<0||e>=24)throw new RangeError("CronPattern: Invalid value for "+t+": "+e)}else if(t==="day"){if(e<0||e>=31)throw new RangeError("CronPattern: Invalid value for "+t+": "+e)}else if(t==="month"&&(e<0||e>=12))throw new RangeError("CronPattern: Invalid value for "+t+": "+e);this[t][e]=a}handleRangeWithStepping(t,e,a,i){let r=this.extractNth(t,e),s=r[0].match(/^(\d+)-(\d+)\/(\d+)$/);if(s===null)throw new TypeError("CronPattern: Syntax error, illegal range with stepping: '"+t+"'");let[,n,o,l]=s,d=parseInt(n,10)+a,u=parseInt(o,10)+a,c=parseInt(l,10);if(isNaN(d))throw new TypeError("CronPattern: Syntax error, illegal lower range (NaN)");if(isNaN(u))throw new TypeError("CronPattern: Syntax error, illegal upper range (NaN)");if(isNaN(c))throw new TypeError("CronPattern: Syntax error, illegal stepping: (NaN)");if(c===0)throw new TypeError("CronPattern: Syntax error, illegal stepping: 0");if(c>this[e].length)throw new TypeError("CronPattern: Syntax error, steps cannot be greater than maximum value of part ("+this[e].length+")");if(d>u)throw new TypeError("CronPattern: From value is larger than to value: '"+t+"'");for(let f=d;f<=u;f+=c)this.setPart(e,f,r[1]||i)}extractNth(t,e){let a=t,i;if(a.includes("#")){if(e!=="dayOfWeek")throw new Error("CronPattern: nth (#) only allowed in day-of-week field");i=a.split("#")[1],a=a.split("#")[0]}return[a,i]}handleRange(t,e,a,i){let r=this.extractNth(t,e),s=r[0].split("-");if(s.length!==2)throw new TypeError("CronPattern: Syntax error, illegal range: '"+t+"'");let n=parseInt(s[0],10)+a,o=parseInt(s[1],10)+a;if(isNaN(n))throw new TypeError("CronPattern: Syntax error, illegal lower range (NaN)");if(isNaN(o))throw new TypeError("CronPattern: Syntax error, illegal upper range (NaN)");if(n>o)throw new TypeError("CronPattern: From value is larger than to value: '"+t+"'");for(let l=n;l<=o;l++)this.setPart(e,l,r[1]||i)}handleStepping(t,e,a,i){let r=this.extractNth(t,e),s=r[0].split("/");if(s.length!==2)throw new TypeError("CronPattern: Syntax error, illegal stepping: '"+t+"'");s[0]===""&&(s[0]="*");let n=0;s[0]!=="*"&&(n=parseInt(s[0],10)+a);let o=parseInt(s[1],10);if(isNaN(o))throw new TypeError("CronPattern: Syntax error, illegal stepping: (NaN)");if(o===0)throw new TypeError("CronPattern: Syntax error, illegal stepping: 0");if(o>this[e].length)throw new TypeError("CronPattern: Syntax error, max steps for part is ("+this[e].length+")");for(let l=n;l<this[e].length;l+=o)this.setPart(e,l,r[1]||i)}replaceAlphaDays(t){return t.replace(/-sun/gi,"-7").replace(/sun/gi,"0").replace(/mon/gi,"1").replace(/tue/gi,"2").replace(/wed/gi,"3").replace(/thu/gi,"4").replace(/fri/gi,"5").replace(/sat/gi,"6")}replaceAlphaMonths(t){return t.replace(/jan/gi,"1").replace(/feb/gi,"2").replace(/mar/gi,"3").replace(/apr/gi,"4").replace(/may/gi,"5").replace(/jun/gi,"6").replace(/jul/gi,"7").replace(/aug/gi,"8").replace(/sep/gi,"9").replace(/oct/gi,"10").replace(/nov/gi,"11").replace(/dec/gi,"12")}handleNicknames(t){let e=t.trim().toLowerCase();return e==="@yearly"||e==="@annually"?"0 0 1 1 *":e==="@monthly"?"0 0 1 * *":e==="@weekly"?"0 0 * * 0":e==="@daily"?"0 0 * * *":e==="@hourly"?"0 * * * *":t}setNthWeekdayOfMonth(t,e){if(typeof e!="number"&&e==="L")this.dayOfWeek[t]=this.dayOfWeek[t]|XS;else if(e===Rc)this.dayOfWeek[t]=Rc;else if(e<6&&e>0)this.dayOfWeek[t]=this.dayOfWeek[t]|sY[e-1];else throw new TypeError(`CronPattern: nth weekday out of range, should be 1-5 or L. Value: ${e}, Type: ${typeof e}`)}},nY=[31,28,31,30,31,30,31,31,30,31,30,31],ls=[["month","year",0],["day","month",-1],["hour","day",0],["minute","hour",0],["second","minute",0]],Aa=class lY{tz;ms;second;minute;hour;day;month;year;constructor(e,a){if(this.tz=a,e&&e instanceof Date)if(!isNaN(e))this.fromDate(e);else throw new TypeError("CronDate: Invalid date passed to CronDate constructor");else if(e===void 0)this.fromDate(new Date);else if(e&&typeof e=="string")this.fromString(e);else if(e instanceof lY)this.fromCronDate(e);else throw new TypeError("CronDate: Invalid type ("+typeof e+") passed to CronDate constructor")}isNthWeekdayOfMonth(e,a,i,r){let s=new Date(Date.UTC(e,a,i)).getUTCDay(),n=0;for(let o=1;o<=i;o++)new Date(Date.UTC(e,a,o)).getUTCDay()===s&&n++;if(r&Rc&&sY[n-1]&r)return!0;if(r&XS){let o=new Date(Date.UTC(e,a+1,0)).getUTCDate();for(let l=i+1;l<=o;l++)if(new Date(Date.UTC(e,a,l)).getUTCDay()===s)return!1;return!0}return!1}fromDate(e){if(this.tz!==void 0)if(typeof this.tz=="number")this.ms=e.getUTCMilliseconds(),this.second=e.getUTCSeconds(),this.minute=e.getUTCMinutes()+this.tz,this.hour=e.getUTCHours(),this.day=e.getUTCDate(),this.month=e.getUTCMonth(),this.year=e.getUTCFullYear(),this.apply();else{let a=H2.toTZ(e,this.tz);this.ms=e.getMilliseconds(),this.second=a.s,this.minute=a.i,this.hour=a.h,this.day=a.d,this.month=a.m-1,this.year=a.y}else this.ms=e.getMilliseconds(),this.second=e.getSeconds(),this.minute=e.getMinutes(),this.hour=e.getHours(),this.day=e.getDate(),this.month=e.getMonth(),this.year=e.getFullYear()}fromCronDate(e){this.tz=e.tz,this.year=e.year,this.month=e.month,this.day=e.day,this.hour=e.hour,this.minute=e.minute,this.second=e.second,this.ms=e.ms}apply(){if(this.month>11||this.day>nY[this.month]||this.hour>59||this.minute>59||this.second>59||this.hour<0||this.minute<0||this.second<0){let e=new Date(Date.UTC(this.year,this.month,this.day,this.hour,this.minute,this.second,this.ms));return this.ms=e.getUTCMilliseconds(),this.second=e.getUTCSeconds(),this.minute=e.getUTCMinutes(),this.hour=e.getUTCHours(),this.day=e.getUTCDate(),this.month=e.getUTCMonth(),this.year=e.getUTCFullYear(),!0}else return!1}fromString(e){if(typeof this.tz=="number"){let a=H2.fromTZISO(e);this.ms=a.getUTCMilliseconds(),this.second=a.getUTCSeconds(),this.minute=a.getUTCMinutes(),this.hour=a.getUTCHours(),this.day=a.getUTCDate(),this.month=a.getUTCMonth(),this.year=a.getUTCFullYear(),this.apply()}else return this.fromDate(H2.fromTZISO(e,this.tz))}findNext(e,a,i,r){let s=this[a],n;i.lastDayOfMonth&&(this.month!==1?n=nY[this.month]:n=new Date(Date.UTC(this.year,this.month+1,0,0,0,0,0)).getUTCDate());let o=!i.starDOW&&a=="day"?new Date(Date.UTC(this.year,this.month,1,0,0,0,0)).getUTCDay():void 0;for(let l=this[a]+r;l<i[a].length;l++){let d=i[a][l];if(a==="day"&&i.lastDayOfMonth&&l-r==n&&(d=1),a==="day"&&!i.starDOW){let u=i.dayOfWeek[(o+(l-r-1))%7];if(u&&u&Rc)u=this.isNthWeekdayOfMonth(this.year,this.month,l-r,u)?1:0;else if(u)throw new Error(`CronDate: Invalid value for dayOfWeek encountered. ${u}`);e.legacyMode&&!i.starDOM?d=d||u:d=d&&u}if(d)return this[a]=l-r,s!==this[a]?2:1}return 3}recurse(e,a,i){let r=this.findNext(a,ls[i][0],e,ls[i][2]);if(r>1){let s=i+1;for(;s<ls.length;)this[ls[s][0]]=-ls[s][2],s++;if(r===3)return this[ls[i][1]]++,this[ls[i][0]]=-ls[i][2],this.apply(),this.recurse(e,a,0);if(this.apply())return this.recurse(e,a,i-1)}return i+=1,i>=ls.length?this:this.year>=3e3?null:this.recurse(e,a,i)}increment(e,a,i){return this.second+=a.interval!==void 0&&a.interval>1&&i?a.interval:1,this.ms=0,this.apply(),this.recurse(e,a,0)}getDate(e){return e||this.tz===void 0?new Date(this.year,this.month,this.day,this.hour,this.minute,this.second,this.ms):typeof this.tz=="number"?new Date(Date.UTC(this.year,this.month,this.day,this.hour,this.minute-this.tz,this.second,this.ms)):H2.fromTZ(H2.tp(this.year,this.month+1,this.day,this.hour,this.minute,this.second,this.tz),!1)}getTime(){return this.getDate(!1).getTime()}};oY=30*1e3,H4=[],cY=class{name;options;_states;fn;constructor(t,e,a){let i,r;if(Oc(e))r=e;else if(typeof e=="object")i=e;else if(e!==void 0)throw new Error("Cron: Invalid argument passed for optionsIn. Should be one of function, or object (options).");if(Oc(a))r=a;else if(typeof a=="object")i=a;else if(a!==void 0)throw new Error("Cron: Invalid argument passed for funcIn. Should be one of function, or object (options).");if(this.name=i?.name,this.options=Qkt(i),this._states={kill:!1,blocking:!1,previousRun:void 0,currentRun:void 0,once:void 0,currentTimeout:void 0,maxRuns:i?i.maxRuns:void 0,paused:i?i.paused:!1,pattern:new $7("* * * * *")},t&&(t instanceof Date||typeof t=="string"&&t.indexOf(":")>0)?this._states.once=new Aa(t,this.options.timezone||this.options.utcOffset):this._states.pattern=new $7(t,this.options.timezone),this.name){if(H4.find(s=>s.name===this.name))throw new Error("Cron: Tried to initialize new named job '"+this.name+"', but name already taken.");H4.push(this)}return r!==void 0&&Kkt(r)&&(this.fn=r,this.schedule()),this}nextRun(t){let e=this._next(t);return e?e.getDate(!1):null}nextRuns(t,e){this._states.maxRuns!==void 0&&t>this._states.maxRuns&&(t=this._states.maxRuns);let a=[],i=e||this._states.currentRun||void 0;for(;t--&&(i=this.nextRun(i));)a.push(i);return a}getPattern(){return this._states.pattern?this._states.pattern.pattern:void 0}isRunning(){let t=this.nextRun(this._states.currentRun),e=!this._states.paused,a=this.fn!==void 0,i=!this._states.kill;return e&&a&&i&&t!==null}isStopped(){return this._states.kill}isBusy(){return this._states.blocking}currentRun(){return this._states.currentRun?this._states.currentRun.getDate():null}previousRun(){return this._states.previousRun?this._states.previousRun.getDate():null}msToNext(t){let e=this._next(t);return e?t instanceof Aa||t instanceof Date?e.getTime()-t.getTime():e.getTime()-new Aa(t).getTime():null}stop(){this._states.kill=!0,this._states.currentTimeout&&clearTimeout(this._states.currentTimeout);let t=H4.indexOf(this);t>=0&&H4.splice(t,1)}pause(){return this._states.paused=!0,!this._states.kill}resume(){return this._states.paused=!1,!this._states.kill}schedule(t){if(t&&this.fn)throw new Error("Cron: It is not allowed to schedule two functions using the same Croner instance.");t&&(this.fn=t);let e=this.msToNext(),a=this.nextRun(this._states.currentRun);return e==null||isNaN(e)||a===null?this:(e>oY&&(e=oY),this._states.currentTimeout=setTimeout(()=>this._checkTrigger(a),e),this._states.currentTimeout&&this.options.unref&&Jkt(this._states.currentTimeout),this)}async _trigger(t){if(this._states.blocking=!0,this._states.currentRun=new Aa(void 0,this.options.timezone||this.options.utcOffset),this.options.catch)try{this.fn!==void 0&&await this.fn(this,this.options.context)}catch(e){Oc(this.options.catch)&&this.options.catch(e,this)}else this.fn!==void 0&&await this.fn(this,this.options.context);this._states.previousRun=new Aa(t,this.options.timezone||this.options.utcOffset),this._states.blocking=!1}async trigger(){await this._trigger()}runsLeft(){return this._states.maxRuns}_checkTrigger(t){let e=new Date,a=!this._states.paused&&e.getTime()>=t.getTime(),i=this._states.blocking&&this.options.protect;a&&!i?(this._states.maxRuns!==void 0&&this._states.maxRuns--,this._trigger()):a&&i&&Oc(this.options.protect)&&setTimeout(()=>this.options.protect(this),0),this.schedule()}_next(t){let e=!!(t||this._states.currentRun),a=!1;!t&&this.options.startAt&&this.options.interval&&([t,e]=this._calculatePreviousRun(t,e),a=!t),t=new Aa(t,this.options.timezone||this.options.utcOffset),this.options.startAt&&t&&t.getTime()<this.options.startAt.getTime()&&(t=this.options.startAt);let i=this._states.once||new Aa(t,this.options.timezone||this.options.utcOffset);return!a&&i!==this._states.once&&(i=i.increment(this._states.pattern,this.options,e)),this._states.once&&this._states.once.getTime()<=t.getTime()||i===null||this._states.maxRuns!==void 0&&this._states.maxRuns<=0||this._states.kill||this.options.stopAt&&i.getTime()>=this.options.stopAt.getTime()?null:i}_calculatePreviousRun(t,e){let a=new Aa(void 0,this.options.timezone||this.options.utcOffset),i=t;if(this.options.startAt.getTime()<=a.getTime()){i=this.options.startAt;let r=i.getTime()+this.options.interval*1e3;for(;r<=a.getTime();)i=new Aa(i,this.options.timezone||this.options.utcOffset).increment(this._states.pattern,this.options,!0),r=i.getTime()+this.options.interval*1e3;e=!0}return i===null&&(i=void 0),[i,e]}}});var D7,Hc,eCt,Cs1,gr,E7,q2,Ba,q4,QS,vn,V4,P7,N7,I7,F7,jo,j4,A7,uY,KS,JS,pY,ek,xt=v(()=>{D7=7,Hc=365.2425,eCt=Math.pow(10,8)*24*60*60*1e3,Cs1=-eCt,gr=6048e5,E7=864e5,q2=6e4,Ba=36e5,q4=1e3,QS=525600,vn=43200,V4=1440,P7=60,N7=3,I7=12,F7=4,jo=3600,j4=60,A7=jo*24,uY=A7*7,KS=A7*365.2425,JS=KS/12,pY=JS*3,ek=Symbol.for("constructDateFrom")});function Le(t,e){return typeof t=="function"?t(e):t&&typeof t=="object"&&ek in t?t[ek](e):t instanceof Date?new t.constructor(e):new Date(e)}var Ls1,at=v(()=>{xt();Ls1=Le});function ne(t,e){return Le(e||t,t)}var Ds1,Ae=v(()=>{at();Ds1=ne});function i2(t,e,a){let i=ne(t,a?.in);return isNaN(e)?Le(a?.in||t,NaN):(e&&i.setDate(i.getDate()+e),i)}var Is1,br=v(()=>{at();Ae();Is1=i2});function vr(t,e,a){let i=ne(t,a?.in);if(isNaN(e))return Le(a?.in||t,NaN);if(!e)return i;let r=i.getDate(),s=Le(a?.in||t,i.getTime());s.setMonth(i.getMonth()+e+1,0);let n=s.getDate();return r>=n?s:(i.setFullYear(s.getFullYear(),s.getMonth(),r),i)}var Bs1,U4=v(()=>{at();Ae();Bs1=vr});function yn(t,e,a){let{years:i=0,months:r=0,weeks:s=0,days:n=0,hours:o=0,minutes:l=0,seconds:d=0}=e,u=ne(t,a?.in),c=r||i?vr(u,r+i*12):u,f=n||s?i2(c,n+s*7):c,g=l+o*60,b=(d+g*60)*1e3;return Le(a?.in||t,+f+b)}var Ws1,tk=v(()=>{br();U4();at();Ae();Ws1=yn});function R7(t,e){return ne(t,e?.in).getDay()===6}var Zs1,ak=v(()=>{Ae();Zs1=R7});function O7(t,e){return ne(t,e?.in).getDay()===0}var Ks1,ik=v(()=>{Ae();Ks1=O7});function yr(t,e){let a=ne(t,e?.in).getDay();return a===0||a===6}var tn1,qc=v(()=>{Ae();tn1=yr});function B7(t,e,a){let i=ne(t,a?.in),r=yr(i,a);if(isNaN(e))return Le(a?.in,NaN);let s=i.getHours(),n=e<0?-1:1,o=Math.trunc(e/5);i.setDate(i.getDate()+o*7);let l=Math.abs(e%5);for(;l>0;)i.setDate(i.getDate()+n),yr(i,a)||(l-=1);return r&&yr(i,a)&&e!==0&&(R7(i,a)&&i.setDate(i.getDate()+(n<0?2:-1)),O7(i,a)&&i.setDate(i.getDate()+(n<0?1:-2))),i.setHours(s),i}var ln1,rk=v(()=>{at();ak();ik();qc();Ae();ln1=B7});function xn(t,e,a){return Le(a?.in||t,+ne(t)+e)}var pn1,Vc=v(()=>{at();Ae();pn1=xn});function H7(t,e,a){return xn(t,e*Ba,a)}var gn1,sk=v(()=>{Vc();xt();gn1=H7});function Kt(){return hY}function fY(t){hY=t}var hY,V2=v(()=>{hY={}});function u1(t,e){let a=Kt(),i=e?.weekStartsOn??e?.locale?.options?.weekStartsOn??a.weekStartsOn??a.locale?.options?.weekStartsOn??0,r=ne(t,e?.in),s=r.getDay(),n=(s<i?7:0)+s-i;return r.setDate(r.getDate()-n),r.setHours(0,0,0,0),r}var wn1,Oi=v(()=>{V2();Ae();wn1=u1});function X1(t,e){return u1(t,{...e,weekStartsOn:1})}var Sn1,xr=v(()=>{Oi();Sn1=X1});function ua(t,e){let a=ne(t,e?.in),i=a.getFullYear(),r=Le(a,0);r.setFullYear(i+1,0,4),r.setHours(0,0,0,0);let s=X1(r),n=Le(a,0);n.setFullYear(i,0,4),n.setHours(0,0,0,0);let o=X1(n);return a.getTime()>=s.getTime()?i+1:a.getTime()>=o.getTime()?i:i-1}var Ln1,wn=v(()=>{at();xr();Ae();Ln1=ua});function E1(t){let e=ne(t),a=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return a.setUTCFullYear(e.getFullYear()),+t-+a}var cs=v(()=>{Ae()});function Je(t,...e){let a=Le.bind(null,t||e.find(i=>typeof i=="object"));return e.map(a)}var s1=v(()=>{at()});function wr(t,e){let a=ne(t,e?.in);return a.setHours(0,0,0,0),a}var In1,jc=v(()=>{Ae();In1=wr});function b2(t,e,a){let[i,r]=Je(a?.in,t,e),s=wr(i),n=wr(r),o=+s-E1(s),l=+n-E1(n);return Math.round((o-l)/E7)}var qn1,ds=v(()=>{cs();s1();xt();jc();qn1=b2});function Ha(t,e){let a=ua(t,e),i=Le(e?.in||t,0);return i.setFullYear(a,0,4),i.setHours(0,0,0,0),X1(i)}var Gn1,W4=v(()=>{at();wn();xr();Gn1=Ha});function q7(t,e,a){let i=ne(t,a?.in),r=b2(i,Ha(i,a)),s=Le(a?.in||t,0);return s.setFullYear(e,0,4),s.setHours(0,0,0,0),i=Ha(s),i.setDate(i.getDate()+r),i}var Jn1,nk=v(()=>{at();ds();W4();Ae();Jn1=q7});function V7(t,e,a){return q7(t,ua(t,a)+e,a)}var io1,ok=v(()=>{wn();nk();io1=V7});function G4(t,e,a){let i=ne(t,a?.in);return i.setTime(i.getTime()+e*q2),i}var oo1,j7=v(()=>{xt();Ae();oo1=G4});function Y4(t,e,a){return vr(t,e*3,a)}var do1,U7=v(()=>{U4();do1=Y4});function W7(t,e,a){return xn(t,e*1e3,a)}var ho1,lk=v(()=>{Vc();ho1=W7});function Mn(t,e,a){return i2(t,e*7,a)}var go1,Uc=v(()=>{br();go1=Mn});function G7(t,e,a){return vr(t,e*12,a)}var yo1,ck=v(()=>{U4();yo1=G7});function mY(t,e,a){let[i,r]=[+ne(t.start,a?.in),+ne(t.end,a?.in)].sort((o,l)=>o-l),[s,n]=[+ne(e.start,a?.in),+ne(e.end,a?.in)].sort((o,l)=>o-l);return a?.inclusive?i<=n&&s<=r:i<n&&s<r}var Mo1,gY=v(()=>{Ae();Mo1=mY});function Y7(t,e){let a,i=e?.in;return t.forEach(r=>{!i&&typeof r=="object"&&(i=Le.bind(null,r));let s=ne(r,i);(!a||a<s||isNaN(+s))&&(a=s)}),Le(i,a||NaN)}var Co1,dk=v(()=>{at();Ae();Co1=Y7});function Z7(t,e){let a,i=e?.in;return t.forEach(r=>{!i&&typeof r=="object"&&(i=Le.bind(null,r));let s=ne(r,i);(!a||a>s||isNaN(+s))&&(a=s)}),Le(i,a||NaN)}var $o1,uk=v(()=>{at();Ae();$o1=Z7});function bY(t,e,a){let[i,r,s]=Je(a?.in,t,e.start,e.end);return Z7([Y7([i,r],a),s],a)}var No1,vY=v(()=>{s1();dk();uk();No1=bY});function X7(t,e){let a=+ne(t);if(isNaN(a))return NaN;let i,r;return e.forEach((s,n)=>{let o=ne(s);if(isNaN(+o)){i=NaN,r=NaN;return}let l=Math.abs(a-+o);(i==null||l<r)&&(i=n,r=l)}),i}var Ro1,pk=v(()=>{Ae();Ro1=X7});function yY(t,e,a){let[i,...r]=Je(a?.in,t,...e),s=X7(i,r);if(typeof s=="number"&&isNaN(s))return Le(i,NaN);if(s!==void 0)return r[s]}var Vo1,xY=v(()=>{s1();pk();at();Vo1=yY});function j2(t,e){let a=+ne(t)-+ne(e);return a<0?-1:a>0?1:a}var Wo1,Uo=v(()=>{Ae();Wo1=j2});function wY(t,e){let a=+ne(t)-+ne(e);return a>0?-1:a<0?1:a}var Zo1,MY=v(()=>{Ae();Zo1=wY});function Tt(t){return Le(t,Date.now())}var Ko1,r2=v(()=>{at();Ko1=Tt});function zY(t){let e=Math.trunc(t/7);return e===0?0:e}var t01,SY=v(()=>{xt();t01=zY});function Mr(t,e,a){let[i,r]=Je(a?.in,t,e);return+wr(i)==+wr(r)}var s01,Z4=v(()=>{s1();jc();s01=Mr});function Q7(t){return t instanceof Date||typeof t=="object"&&Object.prototype.toString.call(t)==="[object Date]"}var o01,hk=v(()=>{o01=Q7});function _2(t){return!(!Q7(t)&&typeof t!="number"||isNaN(+ne(t)))}var u01,us=v(()=>{hk();Ae();u01=_2});function kY(t,e,a){let[i,r]=Je(a?.in,t,e);if(!_2(i)||!_2(r))return NaN;let s=b2(i,r),n=s<0?-1:1,o=Math.trunc(s/7),l=o*5,d=i2(r,o*7);for(;!Mr(i,d);)l+=yr(d,a)?0:n,d=i2(d,n);return l===0?0:l}var y01,CY=v(()=>{s1();br();ds();Z4();us();qc();y01=kY});function K7(t,e,a){let[i,r]=Je(a?.in,t,e);return ua(i,a)-ua(r,a)}var z01,fk=v(()=>{s1();wn();z01=K7});function TY(t,e,a){let[i,r]=Je(a?.in,t,e),s=X1(i),n=X1(r),o=+s-E1(s),l=+n-E1(n);return Math.round((o-l)/gr)}var L01,_Y=v(()=>{cs();s1();xt();xr();L01=TY});function Wo(t,e,a){let[i,r]=Je(a?.in,t,e),s=i.getFullYear()-r.getFullYear(),n=i.getMonth()-r.getMonth();return s*12+n}var D01,J7=v(()=>{s1();D01=Wo});function Wc(t,e){let a=ne(t,e?.in);return Math.trunc(a.getMonth()/3)+1}var N01,mk=v(()=>{Ae();N01=Wc});function X4(t,e,a){let[i,r]=Je(a?.in,t,e),s=i.getFullYear()-r.getFullYear(),n=Wc(i)-Wc(r);return s*4+n}var O01,gk=v(()=>{s1();mk();O01=X4});function Go(t,e,a){let[i,r]=Je(a?.in,t,e),s=u1(i,a),n=u1(r,a),o=+s-E1(s),l=+n-E1(n);return Math.round((o-l)/gr)}var U01,eu=v(()=>{cs();s1();xt();Oi();U01=Go});function zn(t,e,a){let[i,r]=Je(a?.in,t,e);return i.getFullYear()-r.getFullYear()}var Y01,tu=v(()=>{s1();Y01=zn});function Q4(t,e,a){let[i,r]=Je(a?.in,t,e),s=LY(i,r),n=Math.abs(b2(i,r));i.setDate(i.getDate()-s*n);let o=+(LY(i,r)===-s),l=s*(n-o);return l===0?0:l}function LY(t,e){let a=t.getFullYear()-e.getFullYear()||t.getMonth()-e.getMonth()||t.getDate()-e.getDate()||t.getHours()-e.getHours()||t.getMinutes()-e.getMinutes()||t.getSeconds()-e.getSeconds()||t.getMilliseconds()-e.getMilliseconds();return a<0?-1:a>0?1:a}var K01,au=v(()=>{s1();ds();K01=Q4});function U2(t){return e=>{let i=(t?Math[t]:Math.trunc)(e);return i===0?0:i}}var ps=v(()=>{});function Yo(t,e,a){let[i,r]=Je(a?.in,t,e),s=(+i-+r)/Ba;return U2(a?.roundingMethod)(s)}var r41,iu=v(()=>{ps();s1();xt();r41=Yo});function ru(t,e,a){return V7(t,-e,a)}var o41,bk=v(()=>{ok();o41=ru});function $Y(t,e,a){let[i,r]=Je(a?.in,t,e),s=j2(i,r),n=Math.abs(K7(i,r,a)),o=ru(i,s*n,a),l=+(j2(o,r)===-s),d=s*(n-l);return d===0?0:d}var h41,AY=v(()=>{s1();Uo();fk();bk();h41=$Y});function K4(t,e){return+ne(t)-+ne(e)}var g41,su=v(()=>{Ae();g41=K4});function Zo(t,e,a){let i=K4(t,e)/q2;return U2(a?.roundingMethod)(i)}var w41,nu=v(()=>{ps();xt();su();w41=Zo});function J4(t,e){let a=ne(t,e?.in);return a.setHours(23,59,59,999),a}var S41,ou=v(()=>{Ae();S41=J4});function e3(t,e){let a=ne(t,e?.in),i=a.getMonth();return a.setFullYear(a.getFullYear(),i+1,0),a.setHours(23,59,59,999),a}var T41,lu=v(()=>{Ae();T41=e3});function cu(t,e){let a=ne(t,e?.in);return+J4(a,e)==+e3(a,e)}var D41,vk=v(()=>{ou();lu();Ae();D41=cu});function Sn(t,e,a){let[i,r,s]=Je(a?.in,t,t,e),n=j2(r,s),o=Math.abs(Wo(r,s));if(o<1)return 0;r.getMonth()===1&&r.getDate()>27&&r.setDate(30),r.setMonth(r.getMonth()-n*o);let l=j2(r,s)===-n;cu(i)&&o===1&&j2(i,s)===1&&(l=!1);let d=n*(o-+l);return d===0?0:d}var R41,Gc=v(()=>{s1();Uo();J7();vk();R41=Sn});function DY(t,e,a){let i=Sn(t,e,a)/3;return U2(a?.roundingMethod)(i)}var q41,EY=v(()=>{ps();Gc();q41=DY});function zr(t,e,a){let i=K4(t,e)/1e3;return U2(a?.roundingMethod)(i)}var W41,Yc=v(()=>{ps();su();W41=zr});function PY(t,e,a){let i=Q4(t,e,a)/7;return U2(a?.roundingMethod)(i)}var X41,NY=v(()=>{ps();au();X41=PY});function du(t,e,a){let[i,r]=Je(a?.in,t,e),s=j2(i,r),n=Math.abs(zn(i,r));i.setFullYear(1584),r.setFullYear(1584);let o=j2(i,r)===-s,l=s*(n-+o);return l===0?0:l}var t31,yk=v(()=>{s1();Uo();tu();t31=du});function v2(t,e){let[a,i]=Je(t,e.start,e.end);return{start:a,end:i}}var Sr=v(()=>{s1()});function uu(t,e){let{start:a,end:i}=v2(e?.in,t),r=+a>+i,s=r?+a:+i,n=r?i:a;n.setHours(0,0,0,0);let o=e?.step??1;if(!o)return[];o<0&&(o=-o,r=!r);let l=[];for(;+n<=s;)l.push(Le(a,n)),n.setDate(n.getDate()+o),n.setHours(0,0,0,0);return r?l.reverse():l}var o31,xk=v(()=>{Sr();at();o31=uu});function IY(t,e){let{start:a,end:i}=v2(e?.in,t),r=+a>+i,s=r?+a:+i,n=r?i:a;n.setMinutes(0,0,0);let o=e?.step??1;if(!o)return[];o<0&&(o=-o,r=!r);let l=[];for(;+n<=s;)l.push(Le(a,n)),n.setHours(n.getHours()+o);return r?l.reverse():l}var u31,FY=v(()=>{Sr();at();u31=IY});function RY(t,e){let{start:a,end:i}=v2(e?.in,t);a.setSeconds(0,0);let r=+a>+i,s=r?+a:+i,n=r?i:a,o=e?.step??1;if(!o)return[];o<0&&(o=-o,r=!r);let l=[];for(;+n<=s;)l.push(Le(a,n)),n=G4(n,o);return r?l.reverse():l}var g31,OY=v(()=>{Sr();j7();at();g31=RY});function BY(t,e){let{start:a,end:i}=v2(e?.in,t),r=+a>+i,s=r?+a:+i,n=r?i:a;n.setHours(0,0,0,0),n.setDate(1);let o=e?.step??1;if(!o)return[];o<0&&(o=-o,r=!r);let l=[];for(;+n<=s;)l.push(Le(a,n)),n.setMonth(n.getMonth()+o);return r?l.reverse():l}var x31,HY=v(()=>{Sr();at();x31=BY});function kr(t,e){let a=ne(t,e?.in),i=a.getMonth(),r=i-i%3;return a.setMonth(r,1),a.setHours(0,0,0,0),a}var z31,pu=v(()=>{Ae();z31=kr});function qY(t,e){let{start:a,end:i}=v2(e?.in,t),r=+a>+i,s=r?+kr(a):+kr(i),n=r?kr(i):kr(a),o=e?.step??1;if(!o)return[];o<0&&(o=-o,r=!r);let l=[];for(;+n<=s;)l.push(Le(a,n)),n=Y4(n,o);return r?l.reverse():l}var L31,VY=v(()=>{Sr();U7();at();pu();L31=qY});function jY(t,e){let{start:a,end:i}=v2(e?.in,t),r=+a>+i,s=r?u1(i,e):u1(a,e),n=r?u1(a,e):u1(i,e);s.setHours(15),n.setHours(15);let o=+n.getTime(),l=s,d=e?.step??1;if(!d)return[];d<0&&(d=-d,r=!r);let u=[];for(;+l<=o;)l.setHours(0),u.push(Le(a,l)),l=Mn(l,d),l.setHours(15);return r?u.reverse():u}var N31,UY=v(()=>{Sr();Uc();at();Oi();N31=jY});function t3(t,e){let{start:a,end:i}=v2(e?.in,t),r=uu({start:a,end:i},e),s=[],n=0;for(;n<r.length;){let o=r[n++];yr(o)&&s.push(Le(a,o))}return s}var H31,hu=v(()=>{Sr();at();xk();qc();H31=t3});function kn(t,e){let a=ne(t,e?.in);return a.setDate(1),a.setHours(0,0,0,0),a}var j31,Zc=v(()=>{Ae();j31=kn});function WY(t,e){let a=kn(t,e),i=e3(t,e);return t3({start:a,end:i},e)}var Z31,GY=v(()=>{hu();lu();Zc();Z31=WY});function fu(t,e){let a=ne(t,e?.in),i=a.getFullYear();return a.setFullYear(i+1,0,0),a.setHours(23,59,59,999),a}var K31,wk=v(()=>{Ae();K31=fu});function a3(t,e){let a=ne(t,e?.in);return a.setFullYear(a.getFullYear(),0,1),a.setHours(0,0,0,0),a}var tl1,mu=v(()=>{Ae();tl1=a3});function YY(t,e){let a=a3(t,e),i=fu(t,e);return t3({start:a,end:i},e)}var nl1,ZY=v(()=>{hu();wk();mu();nl1=YY});function XY(t,e){let{start:a,end:i}=v2(e?.in,t),r=+a>+i,s=r?+a:+i,n=r?i:a;n.setHours(0,0,0,0),n.setMonth(0,1);let o=e?.step??1;if(!o)return[];o<0&&(o=-o,r=!r);let l=[];for(;+n<=s;)l.push(Le(a,n)),n.setFullYear(n.getFullYear()+o);return r?l.reverse():l}var dl1,QY=v(()=>{Sr();at();dl1=XY});function KY(t,e){let a=ne(t,e?.in),i=a.getFullYear(),r=9+Math.floor(i/10)*10;return a.setFullYear(r,11,31),a.setHours(23,59,59,999),a}var hl1,JY=v(()=>{Ae();hl1=KY});function eZ(t,e){let a=ne(t,e?.in);return a.setMinutes(59,59,999),a}var gl1,tZ=v(()=>{Ae();gl1=eZ});function gu(t,e){let a=Kt(),i=e?.weekStartsOn??e?.locale?.options?.weekStartsOn??a.weekStartsOn??a.locale?.options?.weekStartsOn??0,r=ne(t,e?.in),s=r.getDay(),n=(s<i?-7:0)+6-(s-i);return r.setDate(r.getDate()+n),r.setHours(23,59,59,999),r}var xl1,Mk=v(()=>{V2();Ae();xl1=gu});function aZ(t,e){return gu(t,{...e,weekStartsOn:1})}var zl1,iZ=v(()=>{Mk();zl1=aZ});function rZ(t,e){let a=ua(t,e),i=Le(e?.in||t,0);i.setFullYear(a+1,0,4),i.setHours(0,0,0,0);let r=X1(i,e);return r.setMilliseconds(r.getMilliseconds()-1),r}var _l1,sZ=v(()=>{at();wn();xr();_l1=rZ});function nZ(t,e){let a=ne(t,e?.in);return a.setSeconds(59,999),a}var Al1,oZ=v(()=>{Ae();Al1=nZ});function lZ(t,e){let a=ne(t,e?.in),i=a.getMonth(),r=i-i%3+3;return a.setMonth(r,0),a.setHours(23,59,59,999),a}var Pl1,cZ=v(()=>{Ae();Pl1=lZ});function dZ(t,e){let a=ne(t,e?.in);return a.setMilliseconds(999),a}var Fl1,uZ=v(()=>{Ae();Fl1=dZ});function pZ(t){return J4(Date.now(),t)}var Bl1,hZ=v(()=>{ou();Bl1=pZ});function fZ(t){let e=Tt(t?.in),a=e.getFullYear(),i=e.getMonth(),r=e.getDate(),s=Tt(t?.in);return s.setFullYear(a,i,r+1),s.setHours(23,59,59,999),t?.in?t.in(s):s}var Vl1,mZ=v(()=>{r2();Vl1=fZ});function gZ(t){let e=Tt(t?.in),a=Le(t?.in,0);return a.setFullYear(e.getFullYear(),e.getMonth(),e.getDate()-1),a.setHours(23,59,59,999),a}var Gl1,bZ=v(()=>{at();r2();Gl1=gZ});var tCt,vZ,yZ=v(()=>{tCt={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},vZ=(t,e,a)=>{let i,r=tCt[t];return typeof r=="string"?i=r:e===1?i=r.one:i=r.other.replace("{{count}}",e.toString()),a?.addSuffix?a.comparison&&a.comparison>0?"in "+i:i+" ago":i}});function bu(t){return(e={})=>{let a=e.width?String(e.width):t.defaultWidth;return t.formats[a]||t.formats[t.defaultWidth]}}var xZ=v(()=>{});var aCt,iCt,rCt,wZ,MZ=v(()=>{xZ();aCt={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},iCt={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},rCt={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},wZ={date:bu({formats:aCt,defaultWidth:"full"}),time:bu({formats:iCt,defaultWidth:"full"}),dateTime:bu({formats:rCt,defaultWidth:"full"})}});var sCt,zZ,SZ=v(()=>{sCt={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},zZ=(t,e,a,i)=>sCt[t]});function i3(t){return(e,a)=>{let i=a?.context?String(a.context):"standalone",r;if(i==="formatting"&&t.formattingValues){let n=t.defaultFormattingWidth||t.defaultWidth,o=a?.width?String(a.width):n;r=t.formattingValues[o]||t.formattingValues[n]}else{let n=t.defaultWidth,o=a?.width?String(a.width):t.defaultWidth;r=t.values[o]||t.values[n]}let s=t.argumentCallback?t.argumentCallback(e):e;return r[s]}}var kZ=v(()=>{});var nCt,oCt,lCt,cCt,dCt,uCt,pCt,CZ,TZ=v(()=>{kZ();nCt={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},oCt={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},lCt={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},cCt={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},dCt={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},uCt={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},pCt=(t,e)=>{let a=Number(t),i=a%100;if(i>20||i<10)switch(i%10){case 1:return a+"st";case 2:return a+"nd";case 3:return a+"rd"}return a+"th"},CZ={ordinalNumber:pCt,era:i3({values:nCt,defaultWidth:"wide"}),quarter:i3({values:oCt,defaultWidth:"wide",argumentCallback:t=>t-1}),month:i3({values:lCt,defaultWidth:"wide"}),day:i3({values:cCt,defaultWidth:"wide"}),dayPeriod:i3({values:dCt,defaultWidth:"wide",formattingValues:uCt,defaultFormattingWidth:"wide"})}});function r3(t){return(e,a={})=>{let i=a.width,r=i&&t.matchPatterns[i]||t.matchPatterns[t.defaultMatchWidth],s=e.match(r);if(!s)return null;let n=s[0],o=i&&t.parsePatterns[i]||t.parsePatterns[t.defaultParseWidth],l=Array.isArray(o)?fCt(o,c=>c.test(n)):hCt(o,c=>c.test(n)),d;d=t.valueCallback?t.valueCallback(l):l,d=a.valueCallback?a.valueCallback(d):d;let u=e.slice(n.length);return{value:d,rest:u}}}function hCt(t,e){for(let a in t)if(Object.prototype.hasOwnProperty.call(t,a)&&e(t[a]))return a}function fCt(t,e){for(let a=0;a<t.length;a++)if(e(t[a]))return a}var _Z=v(()=>{});function LZ(t){return(e,a={})=>{let i=e.match(t.matchPattern);if(!i)return null;let r=i[0],s=e.match(t.parsePattern);if(!s)return null;let n=t.valueCallback?t.valueCallback(s[0]):s[0];n=a.valueCallback?a.valueCallback(n):n;let o=e.slice(r.length);return{value:n,rest:o}}}var $Z=v(()=>{});var mCt,gCt,bCt,vCt,yCt,xCt,wCt,MCt,zCt,SCt,kCt,CCt,AZ,DZ=v(()=>{_Z();$Z();mCt=/^(\d+)(th|st|nd|rd)?/i,gCt=/\d+/i,bCt={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},vCt={any:[/^b/i,/^(a|c)/i]},yCt={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},xCt={any:[/1/i,/2/i,/3/i,/4/i]},wCt={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},MCt={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},zCt={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},SCt={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},kCt={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},CCt={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},AZ={ordinalNumber:LZ({matchPattern:mCt,parsePattern:gCt,valueCallback:t=>parseInt(t,10)}),era:r3({matchPatterns:bCt,defaultMatchWidth:"wide",parsePatterns:vCt,defaultParseWidth:"any"}),quarter:r3({matchPatterns:yCt,defaultMatchWidth:"wide",parsePatterns:xCt,defaultParseWidth:"any",valueCallback:t=>t+1}),month:r3({matchPatterns:wCt,defaultMatchWidth:"wide",parsePatterns:MCt,defaultParseWidth:"any"}),day:r3({matchPatterns:zCt,defaultMatchWidth:"wide",parsePatterns:SCt,defaultParseWidth:"any"}),dayPeriod:r3({matchPatterns:kCt,defaultMatchWidth:"any",parsePatterns:CCt,defaultParseWidth:"any"})}});var Da,hc1,EZ=v(()=>{yZ();MZ();SZ();TZ();DZ();Da={code:"en-US",formatDistance:vZ,formatLong:wZ,formatRelative:zZ,localize:CZ,match:AZ,options:{weekStartsOn:0,firstWeekContainsDate:1}},hc1=Da});var Xo=v(()=>{EZ()});function vu(t,e){let a=ne(t,e?.in);return b2(a,a3(a))+1}var xc1,zk=v(()=>{ds();mu();Ae();xc1=vu});function s3(t,e){let a=ne(t,e?.in),i=+X1(a)-+Ha(a);return Math.round(i/gr)+1}var Cc1,yu=v(()=>{xt();xr();W4();Ae();Cc1=s3});function Cn(t,e){let a=ne(t,e?.in),i=a.getFullYear(),r=Kt(),s=e?.firstWeekContainsDate??e?.locale?.options?.firstWeekContainsDate??r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,n=Le(e?.in||t,0);n.setFullYear(i+1,0,s),n.setHours(0,0,0,0);let o=u1(n,e),l=Le(e?.in||t,0);l.setFullYear(i,0,s),l.setHours(0,0,0,0);let d=u1(l,e);return+a>=+o?i+1:+a>=+d?i:i-1}var Dc1,Xc=v(()=>{V2();at();Oi();Ae();Dc1=Cn});function Qo(t,e){let a=Kt(),i=e?.firstWeekContainsDate??e?.locale?.options?.firstWeekContainsDate??a.firstWeekContainsDate??a.locale?.options?.firstWeekContainsDate??1,r=Cn(t,e),s=Le(e?.in||t,0);return s.setFullYear(r,0,i),s.setHours(0,0,0,0),u1(s,e)}var Rc1,xu=v(()=>{V2();at();Xc();Oi();Rc1=Qo});function n3(t,e){let a=ne(t,e?.in),i=+u1(a,e)-+Qo(a,e);return Math.round(i/gr)+1}var jc1,wu=v(()=>{xt();Oi();xu();Ae();jc1=n3});function Ge(t,e){let a=t<0?"-":"",i=Math.abs(t).toString().padStart(e,"0");return a+i}var Ko=v(()=>{});var qa,Sk=v(()=>{Ko();qa={y(t,e){let a=t.getFullYear(),i=a>0?a:1-a;return Ge(e==="yy"?i%100:i,e.length)},M(t,e){let a=t.getMonth();return e==="M"?String(a+1):Ge(a+1,2)},d(t,e){return Ge(t.getDate(),e.length)},a(t,e){let a=t.getHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return a.toUpperCase();case"aaa":return a;case"aaaaa":return a[0];default:return a==="am"?"a.m.":"p.m."}},h(t,e){return Ge(t.getHours()%12||12,e.length)},H(t,e){return Ge(t.getHours(),e.length)},m(t,e){return Ge(t.getMinutes(),e.length)},s(t,e){return Ge(t.getSeconds(),e.length)},S(t,e){let a=e.length,i=t.getMilliseconds(),r=Math.trunc(i*Math.pow(10,a-3));return Ge(r,e.length)}}});function PZ(t,e=""){let a=t>0?"-":"+",i=Math.abs(t),r=Math.trunc(i/60),s=i%60;return s===0?a+String(r):a+String(r)+e+Ge(s,2)}function NZ(t,e){return t%60===0?(t>0?"-":"+")+Ge(Math.abs(t)/60,2):Jo(t,e)}function Jo(t,e=""){let a=t>0?"-":"+",i=Math.abs(t),r=Ge(Math.trunc(i/60),2),s=Ge(i%60,2);return a+r+e+s}var o3,Qc,IZ=v(()=>{zk();yu();wn();wu();Xc();Ko();Sk();o3={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Qc={G:function(t,e,a){let i=t.getFullYear()>0?1:0;switch(e){case"G":case"GG":case"GGG":return a.era(i,{width:"abbreviated"});case"GGGGG":return a.era(i,{width:"narrow"});default:return a.era(i,{width:"wide"})}},y:function(t,e,a){if(e==="yo"){let i=t.getFullYear(),r=i>0?i:1-i;return a.ordinalNumber(r,{unit:"year"})}return qa.y(t,e)},Y:function(t,e,a,i){let r=Cn(t,i),s=r>0?r:1-r;if(e==="YY"){let n=s%100;return Ge(n,2)}return e==="Yo"?a.ordinalNumber(s,{unit:"year"}):Ge(s,e.length)},R:function(t,e){let a=ua(t);return Ge(a,e.length)},u:function(t,e){let a=t.getFullYear();return Ge(a,e.length)},Q:function(t,e,a){let i=Math.ceil((t.getMonth()+1)/3);switch(e){case"Q":return String(i);case"QQ":return Ge(i,2);case"Qo":return a.ordinalNumber(i,{unit:"quarter"});case"QQQ":return a.quarter(i,{width:"abbreviated",context:"formatting"});case"QQQQQ":return a.quarter(i,{width:"narrow",context:"formatting"});default:return a.quarter(i,{width:"wide",context:"formatting"})}},q:function(t,e,a){let i=Math.ceil((t.getMonth()+1)/3);switch(e){case"q":return String(i);case"qq":return Ge(i,2);case"qo":return a.ordinalNumber(i,{unit:"quarter"});case"qqq":return a.quarter(i,{width:"abbreviated",context:"standalone"});case"qqqqq":return a.quarter(i,{width:"narrow",context:"standalone"});default:return a.quarter(i,{width:"wide",context:"standalone"})}},M:function(t,e,a){let i=t.getMonth();switch(e){case"M":case"MM":return qa.M(t,e);case"Mo":return a.ordinalNumber(i+1,{unit:"month"});case"MMM":return a.month(i,{width:"abbreviated",context:"formatting"});case"MMMMM":return a.month(i,{width:"narrow",context:"formatting"});default:return a.month(i,{width:"wide",context:"formatting"})}},L:function(t,e,a){let i=t.getMonth();switch(e){case"L":return String(i+1);case"LL":return Ge(i+1,2);case"Lo":return a.ordinalNumber(i+1,{unit:"month"});case"LLL":return a.month(i,{width:"abbreviated",context:"standalone"});case"LLLLL":return a.month(i,{width:"narrow",context:"standalone"});default:return a.month(i,{width:"wide",context:"standalone"})}},w:function(t,e,a,i){let r=n3(t,i);return e==="wo"?a.ordinalNumber(r,{unit:"week"}):Ge(r,e.length)},I:function(t,e,a){let i=s3(t);return e==="Io"?a.ordinalNumber(i,{unit:"week"}):Ge(i,e.length)},d:function(t,e,a){return e==="do"?a.ordinalNumber(t.getDate(),{unit:"date"}):qa.d(t,e)},D:function(t,e,a){let i=vu(t);return e==="Do"?a.ordinalNumber(i,{unit:"dayOfYear"}):Ge(i,e.length)},E:function(t,e,a){let i=t.getDay();switch(e){case"E":case"EE":case"EEE":return a.day(i,{width:"abbreviated",context:"formatting"});case"EEEEE":return a.day(i,{width:"narrow",context:"formatting"});case"EEEEEE":return a.day(i,{width:"short",context:"formatting"});default:return a.day(i,{width:"wide",context:"formatting"})}},e:function(t,e,a,i){let r=t.getDay(),s=(r-i.weekStartsOn+8)%7||7;switch(e){case"e":return String(s);case"ee":return Ge(s,2);case"eo":return a.ordinalNumber(s,{unit:"day"});case"eee":return a.day(r,{width:"abbreviated",context:"formatting"});case"eeeee":return a.day(r,{width:"narrow",context:"formatting"});case"eeeeee":return a.day(r,{width:"short",context:"formatting"});default:return a.day(r,{width:"wide",context:"formatting"})}},c:function(t,e,a,i){let r=t.getDay(),s=(r-i.weekStartsOn+8)%7||7;switch(e){case"c":return String(s);case"cc":return Ge(s,e.length);case"co":return a.ordinalNumber(s,{unit:"day"});case"ccc":return a.day(r,{width:"abbreviated",context:"standalone"});case"ccccc":return a.day(r,{width:"narrow",context:"standalone"});case"cccccc":return a.day(r,{width:"short",context:"standalone"});default:return a.day(r,{width:"wide",context:"standalone"})}},i:function(t,e,a){let i=t.getDay(),r=i===0?7:i;switch(e){case"i":return String(r);case"ii":return Ge(r,e.length);case"io":return a.ordinalNumber(r,{unit:"day"});case"iii":return a.day(i,{width:"abbreviated",context:"formatting"});case"iiiii":return a.day(i,{width:"narrow",context:"formatting"});case"iiiiii":return a.day(i,{width:"short",context:"formatting"});default:return a.day(i,{width:"wide",context:"formatting"})}},a:function(t,e,a){let r=t.getHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return a.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return a.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return a.dayPeriod(r,{width:"narrow",context:"formatting"});default:return a.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(t,e,a){let i=t.getHours(),r;switch(i===12?r=o3.noon:i===0?r=o3.midnight:r=i/12>=1?"pm":"am",e){case"b":case"bb":return a.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"bbb":return a.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return a.dayPeriod(r,{width:"narrow",context:"formatting"});default:return a.dayPeriod(r,{width:"wide",context:"formatting"})}},B:function(t,e,a){let i=t.getHours(),r;switch(i>=17?r=o3.evening:i>=12?r=o3.afternoon:i>=4?r=o3.morning:r=o3.night,e){case"B":case"BB":case"BBB":return a.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"BBBBB":return a.dayPeriod(r,{width:"narrow",context:"formatting"});default:return a.dayPeriod(r,{width:"wide",context:"formatting"})}},h:function(t,e,a){if(e==="ho"){let i=t.getHours()%12;return i===0&&(i=12),a.ordinalNumber(i,{unit:"hour"})}return qa.h(t,e)},H:function(t,e,a){return e==="Ho"?a.ordinalNumber(t.getHours(),{unit:"hour"}):qa.H(t,e)},K:function(t,e,a){let i=t.getHours()%12;return e==="Ko"?a.ordinalNumber(i,{unit:"hour"}):Ge(i,e.length)},k:function(t,e,a){let i=t.getHours();return i===0&&(i=24),e==="ko"?a.ordinalNumber(i,{unit:"hour"}):Ge(i,e.length)},m:function(t,e,a){return e==="mo"?a.ordinalNumber(t.getMinutes(),{unit:"minute"}):qa.m(t,e)},s:function(t,e,a){return e==="so"?a.ordinalNumber(t.getSeconds(),{unit:"second"}):qa.s(t,e)},S:function(t,e){return qa.S(t,e)},X:function(t,e,a){let i=t.getTimezoneOffset();if(i===0)return"Z";switch(e){case"X":return NZ(i);case"XXXX":case"XX":return Jo(i);default:return Jo(i,":")}},x:function(t,e,a){let i=t.getTimezoneOffset();switch(e){case"x":return NZ(i);case"xxxx":case"xx":return Jo(i);default:return Jo(i,":")}},O:function(t,e,a){let i=t.getTimezoneOffset();switch(e){case"O":case"OO":case"OOO":return"GMT"+PZ(i,":");default:return"GMT"+Jo(i,":")}},z:function(t,e,a){let i=t.getTimezoneOffset();switch(e){case"z":case"zz":case"zzz":return"GMT"+PZ(i,":");default:return"GMT"+Jo(i,":")}},t:function(t,e,a){let i=Math.trunc(+t/1e3);return Ge(i,e.length)},T:function(t,e,a){return Ge(+t,e.length)}}});var FZ,RZ,TCt,Tn,kk=v(()=>{FZ=(t,e)=>{switch(t){case"P":return e.date({width:"short"});case"PP":return e.date({width:"medium"});case"PPP":return e.date({width:"long"});default:return e.date({width:"full"})}},RZ=(t,e)=>{switch(t){case"p":return e.time({width:"short"});case"pp":return e.time({width:"medium"});case"ppp":return e.time({width:"long"});default:return e.time({width:"full"})}},TCt=(t,e)=>{let a=t.match(/(P+)(p+)?/)||[],i=a[1],r=a[2];if(!r)return FZ(t,e);let s;switch(i){case"P":s=e.dateTime({width:"short"});break;case"PP":s=e.dateTime({width:"medium"});break;case"PPP":s=e.dateTime({width:"long"});break;default:s=e.dateTime({width:"full"});break}return s.replace("{{date}}",FZ(i,e)).replace("{{time}}",RZ(r,e))},Tn={p:RZ,P:TCt}});function Mu(t){return _Ct.test(t)}function zu(t){return LCt.test(t)}function Kc(t,e,a){let i=ACt(t,e,a);if(console.warn(i),$Ct.includes(t))throw new RangeError(i)}function ACt(t,e,a){let i=t[0]==="Y"?"years":"days of the month";return`Use \`${t.toLowerCase()}\` instead of \`${t}\` (in \`${e}\`) for formatting ${i} to the input \`${a}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}var _Ct,LCt,$Ct,Ck=v(()=>{_Ct=/^D+$/,LCt=/^Y+$/,$Ct=["D","DD","YY","YYYY"]});function Jc(t,e,a){let i=Kt(),r=a?.locale??i.locale??Da,s=a?.firstWeekContainsDate??a?.locale?.options?.firstWeekContainsDate??i.firstWeekContainsDate??i.locale?.options?.firstWeekContainsDate??1,n=a?.weekStartsOn??a?.locale?.options?.weekStartsOn??i.weekStartsOn??i.locale?.options?.weekStartsOn??0,o=ne(t,a?.in);if(!_2(o))throw new RangeError("Invalid time value");let l=e.match(ECt).map(u=>{let c=u[0];if(c==="p"||c==="P"){let f=Tn[c];return f(u,r.formatLong)}return u}).join("").match(DCt).map(u=>{if(u==="''")return{isToken:!1,value:"'"};let c=u[0];if(c==="'")return{isToken:!1,value:FCt(u)};if(Qc[c])return{isToken:!0,value:u};if(c.match(ICt))throw new RangeError("Format string contains an unescaped latin alphabet character `"+c+"`");return{isToken:!1,value:u}});r.localize.preprocessor&&(l=r.localize.preprocessor(o,l));let d={firstWeekContainsDate:s,weekStartsOn:n,locale:r};return l.map(u=>{if(!u.isToken)return u.value;let c=u.value;(!a?.useAdditionalWeekYearTokens&&zu(c)||!a?.useAdditionalDayOfYearTokens&&Mu(c))&&Kc(c,e,String(t));let f=Qc[c[0]];return f(o,c,r.localize,d)}).join("")}function FCt(t){let e=t.match(PCt);return e?e[1].replace(NCt,"'"):t}var DCt,ECt,PCt,NCt,ICt,p61,Tk=v(()=>{Xo();V2();IZ();kk();Ck();us();Ae();DCt=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,ECt=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,PCt=/^'([^]*?)'?$/,NCt=/''/g,ICt=/[a-zA-Z]/;p61=Jc});function Su(t,e,a){let i=Kt(),r=a?.locale??i.locale??Da,s=2520,n=j2(t,e);if(isNaN(n))throw new RangeError("Invalid time value");let o=Object.assign({},a,{addSuffix:a?.addSuffix,comparison:n}),[l,d]=Je(a?.in,...n>0?[e,t]:[t,e]),u=zr(d,l),c=(E1(d)-E1(l))/1e3,f=Math.round((u-c)/60),g;if(f<2)return a?.includeSeconds?u<5?r.formatDistance("lessThanXSeconds",5,o):u<10?r.formatDistance("lessThanXSeconds",10,o):u<20?r.formatDistance("lessThanXSeconds",20,o):u<40?r.formatDistance("halfAMinute",0,o):u<60?r.formatDistance("lessThanXMinutes",1,o):r.formatDistance("xMinutes",1,o):f===0?r.formatDistance("lessThanXMinutes",1,o):r.formatDistance("xMinutes",f,o);if(f<45)return r.formatDistance("xMinutes",f,o);if(f<90)return r.formatDistance("aboutXHours",1,o);if(f<V4){let y=Math.round(f/60);return r.formatDistance("aboutXHours",y,o)}else{if(f<s)return r.formatDistance("xDays",1,o);if(f<vn){let y=Math.round(f/V4);return r.formatDistance("xDays",y,o)}else if(f<vn*2)return g=Math.round(f/vn),r.formatDistance("aboutXMonths",g,o)}if(g=Sn(d,l),g<12){let y=Math.round(f/vn);return r.formatDistance("xMonths",y,o)}else{let y=g%12,b=Math.trunc(g/12);return y<3?r.formatDistance("aboutXYears",b,o):y<9?r.formatDistance("overXYears",b,o):r.formatDistance("almostXYears",b+1,o)}}var M61,_k=v(()=>{Xo();V2();cs();s1();Uo();xt();Gc();Yc();M61=Su});function ku(t,e,a){let i=Kt(),r=a?.locale??i.locale??Da,s=j2(t,e);if(isNaN(s))throw new RangeError("Invalid time value");let n=Object.assign({},a,{addSuffix:a?.addSuffix,comparison:s}),[o,l]=Je(a?.in,...s>0?[e,t]:[t,e]),d=U2(a?.roundingMethod??"round"),u=l.getTime()-o.getTime(),c=u/q2,f=E1(l)-E1(o),g=(u-f)/q2,y=a?.unit,b;if(y?b=y:c<1?b="second":c<60?b="minute":c<V4?b="hour":g<vn?b="day":g<QS?b="month":b="year",b==="second"){let m=d(u/1e3);return r.formatDistance("xSeconds",m,n)}else if(b==="minute"){let m=d(c);return r.formatDistance("xMinutes",m,n)}else if(b==="hour"){let m=d(c/60);return r.formatDistance("xHours",m,n)}else if(b==="day"){let m=d(g/V4);return r.formatDistance("xDays",m,n)}else if(b==="month"){let m=d(g/vn);return m===12&&y!=="month"?r.formatDistance("xYears",1,n):r.formatDistance("xMonths",m,n)}else{let m=d(g/QS);return r.formatDistance("xYears",m,n)}}var A61,Lk=v(()=>{Xo();V2();ps();cs();s1();Uo();xt();A61=ku});function OZ(t,e){return Su(t,Tt(t),e)}var N61,BZ=v(()=>{r2();_k();N61=OZ});function HZ(t,e){return ku(t,Tt(t),e)}var O61,qZ=v(()=>{r2();Lk();O61=HZ});function VZ(t,e){let a=Kt(),i=e?.locale??a.locale??Da,r=e?.format??RCt,s=e?.zero??!1,n=e?.delimiter??" ";return i.formatDistance?r.reduce((l,d)=>{let u=`x${d.replace(/(^.)/,f=>f.toUpperCase())}`,c=t[d];return c!==void 0&&(s||t[d])?l.concat(i.formatDistance(u,c)):l},[]).join(n):""}var RCt,V61,jZ=v(()=>{Xo();V2();RCt=["years","months","weeks","days","hours","minutes","seconds"];V61=VZ});function UZ(t,e){let a=ne(t,e?.in);if(isNaN(+a))throw new RangeError("Invalid time value");let i=e?.format??"extended",r=e?.representation??"complete",s="",n="",o=i==="extended"?"-":"",l=i==="extended"?":":"";if(r!=="time"){let d=Ge(a.getDate(),2),u=Ge(a.getMonth()+1,2);s=`${Ge(a.getFullYear(),4)}${o}${u}${o}${d}`}if(r!=="date"){let d=a.getTimezoneOffset();if(d!==0){let b=Math.abs(d),m=Ge(Math.trunc(b/60),2),x=Ge(b%60,2);n=`${d<0?"+":"-"}${m}:${x}`}else n="Z";let u=Ge(a.getHours(),2),c=Ge(a.getMinutes(),2),f=Ge(a.getSeconds(),2),g=s===""?"":"T",y=[u,c,f].join(l);s=`${s}${g}${y}${n}`}return s}var G61,WZ=v(()=>{Ko();Ae();G61=UZ});function GZ(t,e){let a=ne(t,e?.in);if(!_2(a))throw new RangeError("Invalid time value");let i=e?.format??"extended",r=e?.representation??"complete",s="",n=i==="extended"?"-":"",o=i==="extended"?":":"";if(r!=="time"){let l=Ge(a.getDate(),2),d=Ge(a.getMonth()+1,2);s=`${Ge(a.getFullYear(),4)}${n}${d}${n}${l}`}if(r!=="date"){let l=Ge(a.getHours(),2),d=Ge(a.getMinutes(),2),u=Ge(a.getSeconds(),2);s=`${s}${s===""?"":" "}${l}${o}${d}${o}${u}`}return s}var K61,YZ=v(()=>{Ko();us();Ae();K61=GZ});function ZZ(t){let{years:e=0,months:a=0,days:i=0,hours:r=0,minutes:s=0,seconds:n=0}=t;return`P${e}Y${a}M${i}DT${r}H${s}M${n}S`}var e51,XZ=v(()=>{e51=ZZ});function QZ(t,e){let a=ne(t,e?.in);if(!_2(a))throw new RangeError("Invalid time value");let i=e?.fractionDigits??0,r=Ge(a.getDate(),2),s=Ge(a.getMonth()+1,2),n=a.getFullYear(),o=Ge(a.getHours(),2),l=Ge(a.getMinutes(),2),d=Ge(a.getSeconds(),2),u="";if(i>0){let g=a.getMilliseconds(),y=Math.trunc(g*Math.pow(10,i-3));u="."+Ge(y,i)}let c="",f=a.getTimezoneOffset();if(f!==0){let g=Math.abs(f),y=Ge(Math.trunc(g/60),2),b=Ge(g%60,2);c=`${f<0?"+":"-"}${y}:${b}`}else c="Z";return`${n}-${s}-${r}T${o}:${l}:${d}${u}${c}`}var s51,KZ=v(()=>{Ko();us();Ae();s51=QZ});function JZ(t){let e=ne(t);if(!_2(e))throw new RangeError("Invalid time value");let a=OCt[e.getUTCDay()],i=Ge(e.getUTCDate(),2),r=BCt[e.getUTCMonth()],s=e.getUTCFullYear(),n=Ge(e.getUTCHours(),2),o=Ge(e.getUTCMinutes(),2),l=Ge(e.getUTCSeconds(),2);return`${a}, ${i} ${r} ${s} ${n}:${o}:${l} GMT`}var OCt,BCt,d51,eX=v(()=>{Ko();us();Ae();OCt=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],BCt=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];d51=JZ});function tX(t,e,a){let[i,r]=Je(a?.in,t,e),s=Kt(),n=a?.locale??s.locale??Da,o=a?.weekStartsOn??a?.locale?.options?.weekStartsOn??s.weekStartsOn??s.locale?.options?.weekStartsOn??0,l=b2(i,r);if(isNaN(l))throw new RangeError("Invalid time value");let d;l<-6?d="other":l<-1?d="lastWeek":l<0?d="yesterday":l<1?d="today":l<2?d="tomorrow":l<7?d="nextWeek":d="other";let u=n.formatRelative(d,i,r,{locale:n,weekStartsOn:o});return Jc(i,u,{locale:n,weekStartsOn:o})}var b51,aX=v(()=>{Xo();V2();s1();ds();Tk();b51=tX});function iX(t,e){return ne(t*1e3,e?.in)}var x51,rX=v(()=>{Ae();x51=iX});function Cu(t,e){return ne(t,e?.in).getDate()}var z51,$k=v(()=>{Ae();z51=Cu});function _n(t,e){return ne(t,e?.in).getDay()}var C51,e6=v(()=>{Ae();C51=_n});function Tu(t,e){let a=ne(t,e?.in),i=a.getFullYear(),r=a.getMonth(),s=Le(a,0);return s.setFullYear(i,r+1,0),s.setHours(0,0,0,0),s.getDate()}var $51,Ak=v(()=>{at();Ae();$51=Tu});function _u(t,e){let i=ne(t,e?.in).getFullYear();return i%400===0||i%4===0&&i%100!==0}var E51,Dk=v(()=>{Ae();E51=_u});function sX(t,e){let a=ne(t,e?.in);return Number.isNaN(+a)?NaN:_u(a)?366:365}var F51,nX=v(()=>{Dk();Ae();F51=sX});function oX(t,e){let i=ne(t,e?.in).getFullYear();return Math.floor(i/10)*10}var B51,lX=v(()=>{Ae();B51=oX});function Lu(){return Object.assign({},Kt())}var V51,Ek=v(()=>{V2();V51=Lu});function cX(t,e){return ne(t,e?.in).getHours()}var W51,dX=v(()=>{Ae();W51=cX});function $u(t,e){let a=ne(t,e?.in).getDay();return a===0?7:a}var Z51,Pk=v(()=>{Ae();Z51=$u});function uX(t,e){let a=Ha(t,e),r=+Ha(Mn(a,60))-+a;return Math.round(r/gr)}var e81,pX=v(()=>{Uc();xt();W4();e81=uX});function hX(t){return ne(t).getMilliseconds()}var i81,fX=v(()=>{Ae();i81=hX});function mX(t,e){return ne(t,e?.in).getMinutes()}var n81,gX=v(()=>{Ae();n81=mX});function bX(t,e){return ne(t,e?.in).getMonth()}var c81,vX=v(()=>{Ae();c81=bX});function yX(t,e){let[a,i]=[+ne(t.start),+ne(t.end)].sort((c,f)=>c-f),[r,s]=[+ne(e.start),+ne(e.end)].sort((c,f)=>c-f);if(!(a<s&&r<i))return 0;let o=r<a?a:r,l=o-E1(o),d=s>i?i:s,u=d-E1(d);return Math.ceil((u-l)/E7)}var f81,xX=v(()=>{cs();xt();Ae();f81=yX});function wX(t){return ne(t).getSeconds()}var b81,MX=v(()=>{Ae();b81=wX});function zX(t){return+ne(t)}var x81,SX=v(()=>{Ae();x81=zX});function kX(t){return Math.trunc(+ne(t)/1e3)}var z81,CX=v(()=>{Ae();z81=kX});function TX(t,e){let a=Kt(),i=e?.weekStartsOn??e?.locale?.options?.weekStartsOn??a.weekStartsOn??a.locale?.options?.weekStartsOn??0,r=Cu(ne(t,e?.in));if(isNaN(r))return NaN;let s=_n(kn(t,e)),n=i-s;n<=0&&(n+=7);let o=r-n;return Math.ceil(o/7)+1}var $81,_X=v(()=>{V2();$k();e6();Zc();Ae();$81=TX});function Au(t,e){let a=ne(t,e?.in),i=a.getMonth();return a.setFullYear(a.getFullYear(),i+1,0),a.setHours(0,0,0,0),ne(a,e?.in)}var E81,Nk=v(()=>{Ae();E81=Au});function LX(t,e){let a=ne(t,e?.in);return Go(Au(a,e),kn(a,e),e)+1}var O81,$X=v(()=>{eu();Nk();Zc();Ae();O81=LX});function AX(t,e){return ne(t,e?.in).getFullYear()}var q81,DX=v(()=>{Ae();q81=AX});function EX(t){return Math.trunc(t*Ba)}var U81,PX=v(()=>{xt();U81=EX});function NX(t){return Math.trunc(t*P7)}var Y81,IX=v(()=>{xt();Y81=NX});function FX(t){return Math.trunc(t*jo)}var Q81,RX=v(()=>{xt();Q81=FX});function OX(t,e,a){let[i,r]=Je(a?.in,t,e);if(isNaN(+i))throw new TypeError("Start date is invalid");if(isNaN(+r))throw new TypeError("End date is invalid");if(a?.assertPositive&&+i>+r)throw new TypeError("End date must be after start date");return{start:i,end:r}}var ed1,BX=v(()=>{s1();ed1=OX});function HX(t,e){let{start:a,end:i}=v2(e?.in,t),r={},s=du(i,a);s&&(r.years=s);let n=yn(a,{years:r.years}),o=Sn(i,n);o&&(r.months=o);let l=yn(n,{months:r.months}),d=Q4(i,l);d&&(r.days=d);let u=yn(l,{days:r.days}),c=Yo(i,u);c&&(r.hours=c);let f=yn(u,{hours:r.hours}),g=Zo(i,f);g&&(r.minutes=g);let y=yn(f,{minutes:r.minutes}),b=zr(i,y);return b&&(r.seconds=b),r}var dd1,qX=v(()=>{Sr();tk();au();iu();nu();Gc();Yc();yk();dd1=HX});function VX(t,e,a){let i;return HCt(e)?i=e:a=e,new Intl.DateTimeFormat(a?.locale,i).format(ne(t))}function HCt(t){return t!==void 0&&!("locale"in t)}var hd1,jX=v(()=>{Ae();hd1=VX});function UX(t,e,a){let i=0,r,[s,n]=Je(a?.in,t,e);if(a?.unit)r=a?.unit,r==="second"?i=zr(s,n):r==="minute"?i=Zo(s,n):r==="hour"?i=Yo(s,n):r==="day"?i=b2(s,n):r==="week"?i=Go(s,n):r==="month"?i=Wo(s,n):r==="quarter"?i=X4(s,n):r==="year"&&(i=zn(s,n));else{let l=zr(s,n);Math.abs(l)<j4?(i=zr(s,n),r="second"):Math.abs(l)<jo?(i=Zo(s,n),r="minute"):Math.abs(l)<A7&&Math.abs(b2(s,n))<1?(i=Yo(s,n),r="hour"):Math.abs(l)<uY&&(i=b2(s,n))&&Math.abs(i)<7?r="day":Math.abs(l)<JS?(i=Go(s,n),r="week"):Math.abs(l)<pY?(i=Wo(s,n),r="month"):Math.abs(l)<KS?X4(s,n)<4?(i=X4(s,n),r="quarter"):(i=zn(s,n),r="year"):(i=zn(s,n),r="year")}return new Intl.RelativeTimeFormat(a?.locale,{numeric:"auto",...a}).format(i,r)}var kd1,WX=v(()=>{s1();xt();ds();J7();gk();eu();tu();iu();nu();Yc();kd1=UX});function GX(t,e){return+ne(t)>+ne(e)}var _d1,YX=v(()=>{Ae();_d1=GX});function ZX(t,e){return+ne(t)<+ne(e)}var Ad1,XX=v(()=>{Ae();Ad1=ZX});function QX(t,e){return+ne(t)==+ne(e)}var Pd1,KX=v(()=>{Ae();Pd1=QX});function JX(t,e,a){let i=new Date(t,e,a);return i.getFullYear()===t&&i.getMonth()===e&&i.getDate()===a}var Id1,eQ=v(()=>{Id1=JX});function tQ(t,e){return ne(t,e?.in).getDate()===1}var Od1,aQ=v(()=>{Ae();Od1=tQ});function iQ(t,e){return ne(t,e?.in).getDay()===5}var qd1,rQ=v(()=>{Ae();qd1=iQ});function sQ(t){return+ne(t)>Date.now()}var Ud1,nQ=v(()=>{Ae();Ud1=sQ});function Du(t,e){let a=qCt(e)?new e(0):Le(e,0);return a.setFullYear(t.getFullYear(),t.getMonth(),t.getDate()),a.setHours(t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()),a}function qCt(t){return typeof t=="function"&&t.prototype?.constructor===t}var Yd1,Ik=v(()=>{at();Yd1=Du});var VCt,Eu,Pu,Nu,Fk=v(()=>{at();Ik();VCt=10,Eu=class{subPriority=0;validate(e,a){return!0}},Pu=class extends Eu{constructor(e,a,i,r,s){super(),this.value=e,this.validateValue=a,this.setValue=i,this.priority=r,s&&(this.subPriority=s)}validate(e,a){return this.validateValue(e,this.value,a)}set(e,a,i){return this.setValue(e,a,this.value,i)}},Nu=class extends Eu{priority=VCt;subPriority=-1;constructor(e,a){super(),this.context=e||(i=>Le(a,i))}set(e,a){return a.timestampIsSet?e:Le(e,Du(e,this.context))}}});var Ue,Ut=v(()=>{Fk();Ue=class{run(e,a,i,r){let s=this.parse(e,a,i,r);return s?{setter:new Pu(s.value,this.validate,this.set,this.priority,this.subPriority),rest:s.rest}:null}validate(e,a,i){return!0}}});var Iu,oQ=v(()=>{Ut();Iu=class extends Ue{priority=140;parse(e,a,i){switch(a){case"G":case"GG":case"GGG":return i.era(e,{width:"abbreviated"})||i.era(e,{width:"narrow"});case"GGGGG":return i.era(e,{width:"narrow"});default:return i.era(e,{width:"wide"})||i.era(e,{width:"abbreviated"})||i.era(e,{width:"narrow"})}}set(e,a,i){return a.era=i,e.setFullYear(i,0,1),e.setHours(0,0,0,0),e}incompatibleTokens=["R","u","t","T"]}});var Rt,hi,W2=v(()=>{Rt={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},hi={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/}});function n1(t,e){return t&&{value:e(t.value),rest:t.rest}}function Nt(t,e){let a=e.match(t);return a?{value:parseInt(a[0],10),rest:e.slice(a[0].length)}:null}function fi(t,e){let a=e.match(t);if(!a)return null;if(a[0]==="Z")return{value:0,rest:e.slice(1)};let i=a[1]==="+"?1:-1,r=a[2]?parseInt(a[2],10):0,s=a[3]?parseInt(a[3],10):0,n=a[5]?parseInt(a[5],10):0;return{value:i*(r*Ba+s*q2+n*q4),rest:e.slice(a[0].length)}}function Fu(t){return Nt(Rt.anyDigitsSigned,t)}function bt(t,e){switch(t){case 1:return Nt(Rt.singleDigit,e);case 2:return Nt(Rt.twoDigits,e);case 3:return Nt(Rt.threeDigits,e);case 4:return Nt(Rt.fourDigits,e);default:return Nt(new RegExp("^\\d{1,"+t+"}"),e)}}function l3(t,e){switch(t){case 1:return Nt(Rt.singleDigitSigned,e);case 2:return Nt(Rt.twoDigitsSigned,e);case 3:return Nt(Rt.threeDigitsSigned,e);case 4:return Nt(Rt.fourDigitsSigned,e);default:return Nt(new RegExp("^-?\\d{1,"+t+"}"),e)}}function c3(t){switch(t){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;default:return 0}}function Ru(t,e){let a=e>0,i=a?e:1-e,r;if(i<=50)r=t||100;else{let s=i+50,n=Math.trunc(s/100)*100,o=t>=s%100;r=t+n-(o?100:0)}return a?r:1-r}function Ou(t){return t%400===0||t%4===0&&t%100!==0}var Jt=v(()=>{xt();W2()});var Bu,lQ=v(()=>{Ut();Jt();Bu=class extends Ue{priority=130;incompatibleTokens=["Y","R","u","w","I","i","e","c","t","T"];parse(e,a,i){let r=s=>({year:s,isTwoDigitYear:a==="yy"});switch(a){case"y":return n1(bt(4,e),r);case"yo":return n1(i.ordinalNumber(e,{unit:"year"}),r);default:return n1(bt(a.length,e),r)}}validate(e,a){return a.isTwoDigitYear||a.year>0}set(e,a,i){let r=e.getFullYear();if(i.isTwoDigitYear){let n=Ru(i.year,r);return e.setFullYear(n,0,1),e.setHours(0,0,0,0),e}let s=!("era"in a)||a.era===1?i.year:1-i.year;return e.setFullYear(s,0,1),e.setHours(0,0,0,0),e}}});var Hu,cQ=v(()=>{Xc();Oi();Ut();Jt();Hu=class extends Ue{priority=130;parse(e,a,i){let r=s=>({year:s,isTwoDigitYear:a==="YY"});switch(a){case"Y":return n1(bt(4,e),r);case"Yo":return n1(i.ordinalNumber(e,{unit:"year"}),r);default:return n1(bt(a.length,e),r)}}validate(e,a){return a.isTwoDigitYear||a.year>0}set(e,a,i,r){let s=Cn(e,r);if(i.isTwoDigitYear){let o=Ru(i.year,s);return e.setFullYear(o,0,r.firstWeekContainsDate),e.setHours(0,0,0,0),u1(e,r)}let n=!("era"in a)||a.era===1?i.year:1-i.year;return e.setFullYear(n,0,r.firstWeekContainsDate),e.setHours(0,0,0,0),u1(e,r)}incompatibleTokens=["y","R","u","Q","q","M","L","I","d","D","i","t","T"]}});var qu,dQ=v(()=>{xr();at();Ut();Jt();qu=class extends Ue{priority=130;parse(e,a){return a==="R"?l3(4,e):l3(a.length,e)}set(e,a,i){let r=Le(e,0);return r.setFullYear(i,0,4),r.setHours(0,0,0,0),X1(r)}incompatibleTokens=["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]}});var Vu,uQ=v(()=>{Ut();Jt();Vu=class extends Ue{priority=130;parse(e,a){return a==="u"?l3(4,e):l3(a.length,e)}set(e,a,i){return e.setFullYear(i,0,1),e.setHours(0,0,0,0),e}incompatibleTokens=["G","y","Y","R","w","I","i","e","c","t","T"]}});var ju,pQ=v(()=>{Ut();Jt();ju=class extends Ue{priority=120;parse(e,a,i){switch(a){case"Q":case"QQ":return bt(a.length,e);case"Qo":return i.ordinalNumber(e,{unit:"quarter"});case"QQQ":return i.quarter(e,{width:"abbreviated",context:"formatting"})||i.quarter(e,{width:"narrow",context:"formatting"});case"QQQQQ":return i.quarter(e,{width:"narrow",context:"formatting"});default:return i.quarter(e,{width:"wide",context:"formatting"})||i.quarter(e,{width:"abbreviated",context:"formatting"})||i.quarter(e,{width:"narrow",context:"formatting"})}}validate(e,a){return a>=1&&a<=4}set(e,a,i){return e.setMonth((i-1)*3,1),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]}});var Uu,hQ=v(()=>{Ut();Jt();Uu=class extends Ue{priority=120;parse(e,a,i){switch(a){case"q":case"qq":return bt(a.length,e);case"qo":return i.ordinalNumber(e,{unit:"quarter"});case"qqq":return i.quarter(e,{width:"abbreviated",context:"standalone"})||i.quarter(e,{width:"narrow",context:"standalone"});case"qqqqq":return i.quarter(e,{width:"narrow",context:"standalone"});default:return i.quarter(e,{width:"wide",context:"standalone"})||i.quarter(e,{width:"abbreviated",context:"standalone"})||i.quarter(e,{width:"narrow",context:"standalone"})}}validate(e,a){return a>=1&&a<=4}set(e,a,i){return e.setMonth((i-1)*3,1),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]}});var Wu,fQ=v(()=>{W2();Ut();Jt();Wu=class extends Ue{incompatibleTokens=["Y","R","q","Q","L","w","I","D","i","e","c","t","T"];priority=110;parse(e,a,i){let r=s=>s-1;switch(a){case"M":return n1(Nt(Rt.month,e),r);case"MM":return n1(bt(2,e),r);case"Mo":return n1(i.ordinalNumber(e,{unit:"month"}),r);case"MMM":return i.month(e,{width:"abbreviated",context:"formatting"})||i.month(e,{width:"narrow",context:"formatting"});case"MMMMM":return i.month(e,{width:"narrow",context:"formatting"});default:return i.month(e,{width:"wide",context:"formatting"})||i.month(e,{width:"abbreviated",context:"formatting"})||i.month(e,{width:"narrow",context:"formatting"})}}validate(e,a){return a>=0&&a<=11}set(e,a,i){return e.setMonth(i,1),e.setHours(0,0,0,0),e}}});var Gu,mQ=v(()=>{W2();Ut();Jt();Gu=class extends Ue{priority=110;parse(e,a,i){let r=s=>s-1;switch(a){case"L":return n1(Nt(Rt.month,e),r);case"LL":return n1(bt(2,e),r);case"Lo":return n1(i.ordinalNumber(e,{unit:"month"}),r);case"LLL":return i.month(e,{width:"abbreviated",context:"standalone"})||i.month(e,{width:"narrow",context:"standalone"});case"LLLLL":return i.month(e,{width:"narrow",context:"standalone"});default:return i.month(e,{width:"wide",context:"standalone"})||i.month(e,{width:"abbreviated",context:"standalone"})||i.month(e,{width:"narrow",context:"standalone"})}}validate(e,a){return a>=0&&a<=11}set(e,a,i){return e.setMonth(i,1),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]}});function Yu(t,e,a){let i=ne(t,a?.in),r=n3(i,a)-e;return i.setDate(i.getDate()-r*7),ne(i,a?.in)}var O71,Rk=v(()=>{wu();Ae();O71=Yu});var Zu,gQ=v(()=>{Rk();Oi();W2();Ut();Jt();Zu=class extends Ue{priority=100;parse(e,a,i){switch(a){case"w":return Nt(Rt.week,e);case"wo":return i.ordinalNumber(e,{unit:"week"});default:return bt(a.length,e)}}validate(e,a){return a>=1&&a<=53}set(e,a,i,r){return u1(Yu(e,i,r),r)}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","i","t","T"]}});function Xu(t,e,a){let i=ne(t,a?.in),r=s3(i,a)-e;return i.setDate(i.getDate()-r*7),i}var Z71,Ok=v(()=>{yu();Ae();Z71=Xu});var Qu,bQ=v(()=>{Ok();xr();W2();Ut();Jt();Qu=class extends Ue{priority=100;parse(e,a,i){switch(a){case"I":return Nt(Rt.week,e);case"Io":return i.ordinalNumber(e,{unit:"week"});default:return bt(a.length,e)}}validate(e,a){return a>=1&&a<=53}set(e,a,i){return X1(Xu(e,i))}incompatibleTokens=["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]}});var jCt,UCt,Ku,vQ=v(()=>{W2();Ut();Jt();jCt=[31,28,31,30,31,30,31,31,30,31,30,31],UCt=[31,29,31,30,31,30,31,31,30,31,30,31],Ku=class extends Ue{priority=90;subPriority=1;parse(e,a,i){switch(a){case"d":return Nt(Rt.date,e);case"do":return i.ordinalNumber(e,{unit:"date"});default:return bt(a.length,e)}}validate(e,a){let i=e.getFullYear(),r=Ou(i),s=e.getMonth();return r?a>=1&&a<=UCt[s]:a>=1&&a<=jCt[s]}set(e,a,i){return e.setDate(i),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","q","Q","w","I","D","i","e","c","t","T"]}});var Ju,yQ=v(()=>{W2();Ut();Jt();Ju=class extends Ue{priority=90;subpriority=1;parse(e,a,i){switch(a){case"D":case"DD":return Nt(Rt.dayOfYear,e);case"Do":return i.ordinalNumber(e,{unit:"date"});default:return bt(a.length,e)}}validate(e,a){let i=e.getFullYear();return Ou(i)?a>=1&&a<=366:a>=1&&a<=365}set(e,a,i){return e.setMonth(0,i),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]}});function Ln(t,e,a){let i=Kt(),r=a?.weekStartsOn??a?.locale?.options?.weekStartsOn??i.weekStartsOn??i.locale?.options?.weekStartsOn??0,s=ne(t,a?.in),n=s.getDay(),l=(e%7+7)%7,d=7-r,u=e<0||e>6?e-(n+d)%7:(l+d)%7-(n+d)%7;return i2(s,u,a)}var fu1,t6=v(()=>{V2();br();Ae();fu1=Ln});var ep,xQ=v(()=>{t6();Ut();ep=class extends Ue{priority=90;parse(e,a,i){switch(a){case"E":case"EE":case"EEE":return i.day(e,{width:"abbreviated",context:"formatting"})||i.day(e,{width:"short",context:"formatting"})||i.day(e,{width:"narrow",context:"formatting"});case"EEEEE":return i.day(e,{width:"narrow",context:"formatting"});case"EEEEEE":return i.day(e,{width:"short",context:"formatting"})||i.day(e,{width:"narrow",context:"formatting"});default:return i.day(e,{width:"wide",context:"formatting"})||i.day(e,{width:"abbreviated",context:"formatting"})||i.day(e,{width:"short",context:"formatting"})||i.day(e,{width:"narrow",context:"formatting"})}}validate(e,a){return a>=0&&a<=6}set(e,a,i,r){return e=Ln(e,i,r),e.setHours(0,0,0,0),e}incompatibleTokens=["D","i","e","c","t","T"]}});var tp,wQ=v(()=>{t6();Ut();Jt();tp=class extends Ue{priority=90;parse(e,a,i,r){let s=n=>{let o=Math.floor((n-1)/7)*7;return(n+r.weekStartsOn+6)%7+o};switch(a){case"e":case"ee":return n1(bt(a.length,e),s);case"eo":return n1(i.ordinalNumber(e,{unit:"day"}),s);case"eee":return i.day(e,{width:"abbreviated",context:"formatting"})||i.day(e,{width:"short",context:"formatting"})||i.day(e,{width:"narrow",context:"formatting"});case"eeeee":return i.day(e,{width:"narrow",context:"formatting"});case"eeeeee":return i.day(e,{width:"short",context:"formatting"})||i.day(e,{width:"narrow",context:"formatting"});default:return i.day(e,{width:"wide",context:"formatting"})||i.day(e,{width:"abbreviated",context:"formatting"})||i.day(e,{width:"short",context:"formatting"})||i.day(e,{width:"narrow",context:"formatting"})}}validate(e,a){return a>=0&&a<=6}set(e,a,i,r){return e=Ln(e,i,r),e.setHours(0,0,0,0),e}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]}});var ap,MQ=v(()=>{t6();Ut();Jt();ap=class extends Ue{priority=90;parse(e,a,i,r){let s=n=>{let o=Math.floor((n-1)/7)*7;return(n+r.weekStartsOn+6)%7+o};switch(a){case"c":case"cc":return n1(bt(a.length,e),s);case"co":return n1(i.ordinalNumber(e,{unit:"day"}),s);case"ccc":return i.day(e,{width:"abbreviated",context:"standalone"})||i.day(e,{width:"short",context:"standalone"})||i.day(e,{width:"narrow",context:"standalone"});case"ccccc":return i.day(e,{width:"narrow",context:"standalone"});case"cccccc":return i.day(e,{width:"short",context:"standalone"})||i.day(e,{width:"narrow",context:"standalone"});default:return i.day(e,{width:"wide",context:"standalone"})||i.day(e,{width:"abbreviated",context:"standalone"})||i.day(e,{width:"short",context:"standalone"})||i.day(e,{width:"narrow",context:"standalone"})}}validate(e,a){return a>=0&&a<=6}set(e,a,i,r){return e=Ln(e,i,r),e.setHours(0,0,0,0),e}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]}});function ip(t,e,a){let i=ne(t,a?.in),r=$u(i,a),s=e-r;return i2(i,s,a)}var $u1,Bk=v(()=>{br();Pk();Ae();$u1=ip});var rp,zQ=v(()=>{Bk();Ut();Jt();rp=class extends Ue{priority=90;parse(e,a,i){let r=s=>s===0?7:s;switch(a){case"i":case"ii":return bt(a.length,e);case"io":return i.ordinalNumber(e,{unit:"day"});case"iii":return n1(i.day(e,{width:"abbreviated",context:"formatting"})||i.day(e,{width:"short",context:"formatting"})||i.day(e,{width:"narrow",context:"formatting"}),r);case"iiiii":return n1(i.day(e,{width:"narrow",context:"formatting"}),r);case"iiiiii":return n1(i.day(e,{width:"short",context:"formatting"})||i.day(e,{width:"narrow",context:"formatting"}),r);default:return n1(i.day(e,{width:"wide",context:"formatting"})||i.day(e,{width:"abbreviated",context:"formatting"})||i.day(e,{width:"short",context:"formatting"})||i.day(e,{width:"narrow",context:"formatting"}),r)}}validate(e,a){return a>=1&&a<=7}set(e,a,i){return e=ip(e,i),e.setHours(0,0,0,0),e}incompatibleTokens=["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]}});var sp,SQ=v(()=>{Ut();Jt();sp=class extends Ue{priority=80;parse(e,a,i){switch(a){case"a":case"aa":case"aaa":return i.dayPeriod(e,{width:"abbreviated",context:"formatting"})||i.dayPeriod(e,{width:"narrow",context:"formatting"});case"aaaaa":return i.dayPeriod(e,{width:"narrow",context:"formatting"});default:return i.dayPeriod(e,{width:"wide",context:"formatting"})||i.dayPeriod(e,{width:"abbreviated",context:"formatting"})||i.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,a,i){return e.setHours(c3(i),0,0,0),e}incompatibleTokens=["b","B","H","k","t","T"]}});var np,kQ=v(()=>{Ut();Jt();np=class extends Ue{priority=80;parse(e,a,i){switch(a){case"b":case"bb":case"bbb":return i.dayPeriod(e,{width:"abbreviated",context:"formatting"})||i.dayPeriod(e,{width:"narrow",context:"formatting"});case"bbbbb":return i.dayPeriod(e,{width:"narrow",context:"formatting"});default:return i.dayPeriod(e,{width:"wide",context:"formatting"})||i.dayPeriod(e,{width:"abbreviated",context:"formatting"})||i.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,a,i){return e.setHours(c3(i),0,0,0),e}incompatibleTokens=["a","B","H","k","t","T"]}});var op,CQ=v(()=>{Ut();Jt();op=class extends Ue{priority=80;parse(e,a,i){switch(a){case"B":case"BB":case"BBB":return i.dayPeriod(e,{width:"abbreviated",context:"formatting"})||i.dayPeriod(e,{width:"narrow",context:"formatting"});case"BBBBB":return i.dayPeriod(e,{width:"narrow",context:"formatting"});default:return i.dayPeriod(e,{width:"wide",context:"formatting"})||i.dayPeriod(e,{width:"abbreviated",context:"formatting"})||i.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,a,i){return e.setHours(c3(i),0,0,0),e}incompatibleTokens=["a","b","t","T"]}});var lp,TQ=v(()=>{W2();Ut();Jt();lp=class extends Ue{priority=70;parse(e,a,i){switch(a){case"h":return Nt(Rt.hour12h,e);case"ho":return i.ordinalNumber(e,{unit:"hour"});default:return bt(a.length,e)}}validate(e,a){return a>=1&&a<=12}set(e,a,i){let r=e.getHours()>=12;return r&&i<12?e.setHours(i+12,0,0,0):!r&&i===12?e.setHours(0,0,0,0):e.setHours(i,0,0,0),e}incompatibleTokens=["H","K","k","t","T"]}});var cp,_Q=v(()=>{W2();Ut();Jt();cp=class extends Ue{priority=70;parse(e,a,i){switch(a){case"H":return Nt(Rt.hour23h,e);case"Ho":return i.ordinalNumber(e,{unit:"hour"});default:return bt(a.length,e)}}validate(e,a){return a>=0&&a<=23}set(e,a,i){return e.setHours(i,0,0,0),e}incompatibleTokens=["a","b","h","K","k","t","T"]}});var dp,LQ=v(()=>{W2();Ut();Jt();dp=class extends Ue{priority=70;parse(e,a,i){switch(a){case"K":return Nt(Rt.hour11h,e);case"Ko":return i.ordinalNumber(e,{unit:"hour"});default:return bt(a.length,e)}}validate(e,a){return a>=0&&a<=11}set(e,a,i){return e.getHours()>=12&&i<12?e.setHours(i+12,0,0,0):e.setHours(i,0,0,0),e}incompatibleTokens=["h","H","k","t","T"]}});var up,$Q=v(()=>{W2();Ut();Jt();up=class extends Ue{priority=70;parse(e,a,i){switch(a){case"k":return Nt(Rt.hour24h,e);case"ko":return i.ordinalNumber(e,{unit:"hour"});default:return bt(a.length,e)}}validate(e,a){return a>=1&&a<=24}set(e,a,i){let r=i<=24?i%24:i;return e.setHours(r,0,0,0),e}incompatibleTokens=["a","b","h","H","K","t","T"]}});var pp,AQ=v(()=>{W2();Ut();Jt();pp=class extends Ue{priority=60;parse(e,a,i){switch(a){case"m":return Nt(Rt.minute,e);case"mo":return i.ordinalNumber(e,{unit:"minute"});default:return bt(a.length,e)}}validate(e,a){return a>=0&&a<=59}set(e,a,i){return e.setMinutes(i,0,0),e}incompatibleTokens=["t","T"]}});var hp,DQ=v(()=>{W2();Ut();Jt();hp=class extends Ue{priority=50;parse(e,a,i){switch(a){case"s":return Nt(Rt.second,e);case"so":return i.ordinalNumber(e,{unit:"second"});default:return bt(a.length,e)}}validate(e,a){return a>=0&&a<=59}set(e,a,i){return e.setSeconds(i,0),e}incompatibleTokens=["t","T"]}});var fp,EQ=v(()=>{Ut();Jt();fp=class extends Ue{priority=30;parse(e,a){let i=r=>Math.trunc(r*Math.pow(10,-a.length+3));return n1(bt(a.length,e),i)}set(e,a,i){return e.setMilliseconds(i),e}incompatibleTokens=["t","T"]}});var mp,PQ=v(()=>{at();cs();W2();Ut();Jt();mp=class extends Ue{priority=10;parse(e,a){switch(a){case"X":return fi(hi.basicOptionalMinutes,e);case"XX":return fi(hi.basic,e);case"XXXX":return fi(hi.basicOptionalSeconds,e);case"XXXXX":return fi(hi.extendedOptionalSeconds,e);default:return fi(hi.extended,e)}}set(e,a,i){return a.timestampIsSet?e:Le(e,e.getTime()-E1(e)-i)}incompatibleTokens=["t","T","x"]}});var gp,NQ=v(()=>{at();cs();W2();Ut();Jt();gp=class extends Ue{priority=10;parse(e,a){switch(a){case"x":return fi(hi.basicOptionalMinutes,e);case"xx":return fi(hi.basic,e);case"xxxx":return fi(hi.basicOptionalSeconds,e);case"xxxxx":return fi(hi.extendedOptionalSeconds,e);default:return fi(hi.extended,e)}}set(e,a,i){return a.timestampIsSet?e:Le(e,e.getTime()-E1(e)-i)}incompatibleTokens=["t","T","X"]}});var bp,IQ=v(()=>{at();Ut();Jt();bp=class extends Ue{priority=40;parse(e){return Fu(e)}set(e,a,i){return[Le(e,i*1e3),{timestampIsSet:!0}]}incompatibleTokens="*"}});var vp,FQ=v(()=>{at();Ut();Jt();vp=class extends Ue{priority=20;parse(e){return Fu(e)}set(e,a,i){return[Le(e,i),{timestampIsSet:!0}]}incompatibleTokens="*"}});var yp,RQ=v(()=>{oQ();lQ();cQ();dQ();uQ();pQ();hQ();fQ();mQ();gQ();bQ();vQ();yQ();xQ();wQ();MQ();zQ();SQ();kQ();CQ();TQ();_Q();LQ();$Q();AQ();DQ();EQ();PQ();NQ();IQ();FQ();yp={G:new Iu,y:new Bu,Y:new Hu,R:new qu,u:new Vu,Q:new ju,q:new Uu,M:new Wu,L:new Gu,w:new Zu,I:new Qu,d:new Ku,D:new Ju,E:new ep,e:new tp,c:new ap,i:new rp,a:new sp,b:new np,B:new op,h:new lp,H:new cp,K:new dp,k:new up,m:new pp,s:new hp,S:new fp,X:new mp,x:new gp,t:new bp,T:new vp}});function xp(t,e,a,i){let r=()=>Le(i?.in||a,NaN),s=Lu(),n=i?.locale??s.locale??Da,o=i?.firstWeekContainsDate??i?.locale?.options?.firstWeekContainsDate??s.firstWeekContainsDate??s.locale?.options?.firstWeekContainsDate??1,l=i?.weekStartsOn??i?.locale?.options?.weekStartsOn??s.weekStartsOn??s.locale?.options?.weekStartsOn??0;if(!e)return t?r():ne(a,i?.in);let d={firstWeekContainsDate:o,weekStartsOn:l,locale:n},u=[new Nu(i?.in,a)],c=e.match(GCt).map(m=>{let x=m[0];if(x in Tn){let M=Tn[x];return M(m,n.formatLong)}return m}).join("").match(WCt),f=[];for(let m of c){!i?.useAdditionalWeekYearTokens&&zu(m)&&Kc(m,e,t),!i?.useAdditionalDayOfYearTokens&&Mu(m)&&Kc(m,e,t);let x=m[0],M=yp[x];if(M){let{incompatibleTokens:k}=M;if(Array.isArray(k)){let T=f.find(S=>k.includes(S.token)||S.token===x);if(T)throw new RangeError(`The format string mustn't contain \`${T.fullToken}\` and \`${m}\` at the same time`)}else if(M.incompatibleTokens==="*"&&f.length>0)throw new RangeError(`The format string mustn't contain \`${m}\` and any other token at the same time`);f.push({token:x,fullToken:m});let F=M.run(t,m,n.match,d);if(!F)return r();u.push(F.setter),t=F.rest}else{if(x.match(QCt))throw new RangeError("Format string contains an unescaped latin alphabet character `"+x+"`");if(m==="''"?m="'":x==="'"&&(m=KCt(m)),t.indexOf(m)===0)t=t.slice(m.length);else return r()}}if(t.length>0&&XCt.test(t))return r();let g=u.map(m=>m.priority).sort((m,x)=>x-m).filter((m,x,M)=>M.indexOf(m)===x).map(m=>u.filter(x=>x.priority===m).sort((x,M)=>M.subPriority-x.subPriority)).map(m=>m[0]),y=ne(a,i?.in);if(isNaN(+y))return r();let b={};for(let m of g){if(!m.validate(y,d))return r();let x=m.set(y,b,d);Array.isArray(x)?(y=x[0],Object.assign(b,x[1])):y=x}return y}function KCt(t){return t.match(YCt)[1].replace(ZCt,"'")}var WCt,GCt,YCt,ZCt,XCt,QCt,Sh1,Hk=v(()=>{Xo();kk();Ck();at();Ek();Ae();Fk();RQ();WCt=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,GCt=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,YCt=/^'([^]*?)'?$/,ZCt=/''/g,XCt=/\S/,QCt=/[a-zA-Z]/;Sh1=xp});function OQ(t,e,a){return _2(xp(t,e,new Date,a))}var _h1,BQ=v(()=>{us();Hk();_h1=OQ});function HQ(t,e){return ne(t,e?.in).getDay()===1}var Ah1,qQ=v(()=>{Ae();Ah1=HQ});function VQ(t){return+ne(t)<Date.now()}var Ph1,jQ=v(()=>{Ae();Ph1=VQ});function a6(t,e){let a=ne(t,e?.in);return a.setMinutes(0,0,0),a}var Fh1,qk=v(()=>{Ae();Fh1=a6});function wp(t,e,a){let[i,r]=Je(a?.in,t,e);return+a6(i)==+a6(r)}var Hh1,Vk=v(()=>{s1();qk();Hh1=wp});function d3(t,e,a){let[i,r]=Je(a?.in,t,e);return+u1(i,a)==+u1(r,a)}var Uh1,Mp=v(()=>{s1();Oi();Uh1=d3});function zp(t,e,a){return d3(t,e,{...a,weekStartsOn:1})}var Yh1,jk=v(()=>{Mp();Yh1=zp});function UQ(t,e,a){let[i,r]=Je(a?.in,t,e);return+Ha(i)==+Ha(r)}var Kh1,WQ=v(()=>{W4();s1();Kh1=UQ});function i6(t,e){let a=ne(t,e?.in);return a.setSeconds(0,0),a}var t91,Uk=v(()=>{Ae();t91=i6});function Sp(t,e){return+i6(t)==+i6(e)}var r91,Wk=v(()=>{Uk();r91=Sp});function kp(t,e,a){let[i,r]=Je(a?.in,t,e);return i.getFullYear()===r.getFullYear()&&i.getMonth()===r.getMonth()}var o91,Gk=v(()=>{s1();o91=kp});function Cp(t,e,a){let[i,r]=Je(a?.in,t,e);return+kr(i)==+kr(r)}var u91,Yk=v(()=>{s1();pu();u91=Cp});function r6(t,e){let a=ne(t,e?.in);return a.setMilliseconds(0),a}var f91,Zk=v(()=>{Ae();f91=r6});function Tp(t,e){return+r6(t)==+r6(e)}var b91,Xk=v(()=>{Zk();b91=Tp});function _p(t,e,a){let[i,r]=Je(a?.in,t,e);return i.getFullYear()===r.getFullYear()}var x91,Qk=v(()=>{s1();x91=_p});function GQ(t,e){return wp(ne(t,e?.in),Tt(e?.in||t))}var k91,YQ=v(()=>{r2();Vk();Ae();k91=GQ});function ZQ(t,e){return zp(Le(e?.in||t,t),Tt(e?.in||t))}var $91,XQ=v(()=>{at();r2();jk();$91=ZQ});function QQ(t){return Sp(t,Tt(t))}var P91,KQ=v(()=>{r2();Wk();P91=QQ});function JQ(t,e){return kp(Le(e?.in||t,t),Tt(e?.in||t))}var O91,eK=v(()=>{at();r2();Gk();O91=JQ});function tK(t,e){return Cp(Le(e?.in||t,t),Tt(e?.in||t))}var j91,aK=v(()=>{at();r2();Yk();j91=tK});function iK(t){return Tp(t,Tt(t))}var Y91,rK=v(()=>{r2();Xk();Y91=iK});function sK(t,e){return d3(Le(e?.in||t,t),Tt(e?.in||t),e)}var J91,nK=v(()=>{at();r2();Mp();J91=sK});function oK(t,e){return _p(Le(e?.in||t,t),Tt(e?.in||t))}var rf1,lK=v(()=>{at();r2();Qk();rf1=oK});function cK(t,e){return ne(t,e?.in).getDay()===4}var of1,dK=v(()=>{Ae();of1=cK});function uK(t,e){return Mr(Le(e?.in||t,t),Tt(e?.in||t))}var pf1,pK=v(()=>{at();r2();Z4();pf1=uK});function hK(t,e){return Mr(t,i2(Tt(e?.in||t),1),e)}var bf1,fK=v(()=>{br();r2();Z4();bf1=hK});function mK(t,e){return ne(t,e?.in).getDay()===2}var xf1,gK=v(()=>{Ae();xf1=mK});function bK(t,e){return ne(t,e?.in).getDay()===3}var zf1,vK=v(()=>{Ae();zf1=bK});function yK(t,e,a){let i=+ne(t,a?.in),[r,s]=[+ne(e.start,a?.in),+ne(e.end,a?.in)].sort((n,o)=>n-o);return i>=r&&i<=s}var Cf1,xK=v(()=>{Ae();Cf1=yK});function $n(t,e,a){return i2(t,-e,a)}var Lf1,s6=v(()=>{br();Lf1=$n});function wK(t,e){return Mr(Le(e?.in||t,t),$n(Tt(e?.in||t),1))}var Nf1,MK=v(()=>{at();r2();Z4();s6();Nf1=wK});function zK(t,e){let a=ne(t,e?.in),i=a.getFullYear(),r=9+Math.floor(i/10)*10;return a.setFullYear(r+1,0,0),a.setHours(0,0,0,0),ne(a,e?.in)}var Rf1,SK=v(()=>{Ae();Rf1=zK});function Lp(t,e){let a=Kt(),i=e?.weekStartsOn??e?.locale?.options?.weekStartsOn??a.weekStartsOn??a.locale?.options?.weekStartsOn??0,r=ne(t,e?.in),s=r.getDay(),n=(s<i?-7:0)+6-(s-i);return r.setHours(0,0,0,0),r.setDate(r.getDate()+n),r}var qf1,Kk=v(()=>{V2();Ae();qf1=Lp});function kK(t,e){return Lp(t,{...e,weekStartsOn:1})}var Uf1,CK=v(()=>{Kk();Uf1=kK});function TK(t,e){let a=ua(t,e),i=Le(e?.in||t,0);i.setFullYear(a+1,0,4),i.setHours(0,0,0,0);let r=X1(i,e);return r.setDate(r.getDate()-1),r}var Xf1,_K=v(()=>{at();wn();xr();Xf1=TK});function LK(t,e){let a=ne(t,e?.in),i=a.getMonth(),r=i-i%3+3;return a.setMonth(r,0),a.setHours(0,0,0,0),a}var Jf1,$K=v(()=>{Ae();Jf1=LK});function AK(t,e){let a=ne(t,e?.in),i=a.getFullYear();return a.setFullYear(i+1,0,0),a.setHours(0,0,0,0),a}var am1,DK=v(()=>{Ae();am1=AK});function EK(t,e){let a=ne(t);if(!_2(a))throw new RangeError("Invalid time value");let i=e.match(JCt);return i?i.map(s=>{if(s==="''")return"'";let n=s[0];if(n==="'")return iTt(s);let o=qa[n];if(o)return o(a,s);if(n.match(aTt))throw new RangeError("Format string contains an unescaped latin alphabet character `"+n+"`");return s}).join(""):""}function iTt(t){let e=t.match(eTt);return e?e[1].replace(tTt,"'"):t}var JCt,eTt,tTt,aTt,om1,PK=v(()=>{Sk();us();Ae();JCt=/(\w)\1*|''|'(''|[^'])+('|$)|./g,eTt=/^'([^]*?)'?$/,tTt=/''/g,aTt=/[a-zA-Z]/;om1=EK});function NK({years:t,months:e,weeks:a,days:i,hours:r,minutes:s,seconds:n}){let o=0;t&&(o+=t*365.2425),e&&(o+=e*(365.2425/12)),a&&(o+=a*7),i&&(o+=i);let l=o*24*60*60;return r&&(l+=r*60*60),s&&(l+=s*60),n&&(l+=n),Math.trunc(l*1e3)}var dm1,IK=v(()=>{xt();dm1=NK});function FK(t){let e=t/Ba;return Math.trunc(e)}var hm1,RK=v(()=>{xt();hm1=FK});function OK(t){let e=t/q2;return Math.trunc(e)}var gm1,BK=v(()=>{xt();gm1=OK});function HK(t){let e=t/q4;return Math.trunc(e)}var ym1,qK=v(()=>{xt();ym1=HK});function VK(t){let e=t/P7;return Math.trunc(e)}var Mm1,jK=v(()=>{xt();Mm1=VK});function UK(t){return Math.trunc(t*q2)}var km1,WK=v(()=>{xt();km1=UK});function GK(t){return Math.trunc(t*j4)}var _m1,YK=v(()=>{xt();_m1=GK});function ZK(t){let e=t/N7;return Math.trunc(e)}var Am1,XK=v(()=>{xt();Am1=ZK});function QK(t){let e=t/I7;return Math.trunc(e)}var Pm1,KK=v(()=>{xt();Pm1=QK});function G2(t,e,a){let i=e-_n(t,a);return i<=0&&(i+=7),i2(t,i,a)}var Rm1,hs=v(()=>{br();e6();Rm1=G2});function JK(t,e){return G2(t,5,e)}var Hm1,eJ=v(()=>{hs();Hm1=JK});function tJ(t,e){return G2(t,1,e)}var jm1,aJ=v(()=>{hs();jm1=tJ});function iJ(t,e){return G2(t,6,e)}var Gm1,rJ=v(()=>{hs();Gm1=iJ});function sJ(t,e){return G2(t,0,e)}var Xm1,nJ=v(()=>{hs();Xm1=sJ});function oJ(t,e){return G2(t,4,e)}var Jm1,lJ=v(()=>{hs();Jm1=oJ});function cJ(t,e){return G2(t,2,e)}var ag1,dJ=v(()=>{hs();ag1=cJ});function uJ(t,e){return G2(t,3,e)}var sg1,pJ=v(()=>{hs();sg1=uJ});function fJ(t,e){let a=()=>Le(e?.in,NaN),i=e?.additionalDigits??2,r=oTt(t),s;if(r.date){let d=lTt(r.date,i);s=cTt(d.restDateString,d.year)}if(!s||isNaN(+s))return a();let n=+s,o=0,l;if(r.time&&(o=dTt(r.time),isNaN(o)))return a();if(r.timezone){if(l=uTt(r.timezone),isNaN(l))return a()}else{let d=new Date(n+o),u=ne(0,e?.in);return u.setFullYear(d.getUTCFullYear(),d.getUTCMonth(),d.getUTCDate()),u.setHours(d.getUTCHours(),d.getUTCMinutes(),d.getUTCSeconds(),d.getUTCMilliseconds()),u}return ne(n+o+l,e?.in)}function oTt(t){let e={},a=t.split($p.dateTimeDelimiter),i;if(a.length>2)return e;if(/:/.test(a[0])?i=a[0]:(e.date=a[0],i=a[1],$p.timeZoneDelimiter.test(e.date)&&(e.date=t.split($p.timeZoneDelimiter)[0],i=t.substr(e.date.length,t.length))),i){let r=$p.timezone.exec(i);r?(e.time=i.replace(r[1],""),e.timezone=r[1]):e.time=i}return e}function lTt(t,e){let a=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+e)+"})|(\\d{2}|[+-]\\d{"+(2+e)+"})$)"),i=t.match(a);if(!i)return{year:NaN,restDateString:""};let r=i[1]?parseInt(i[1]):null,s=i[2]?parseInt(i[2]):null;return{year:s===null?r:s*100,restDateString:t.slice((i[1]||i[2]).length)}}function cTt(t,e){if(e===null)return new Date(NaN);let a=t.match(rTt);if(!a)return new Date(NaN);let i=!!a[4],r=n6(a[1]),s=n6(a[2])-1,n=n6(a[3]),o=n6(a[4]),l=n6(a[5])-1;if(i)return gTt(e,o,l)?pTt(e,o,l):new Date(NaN);{let d=new Date(0);return!fTt(e,s,n)||!mTt(e,r)?new Date(NaN):(d.setUTCFullYear(e,s,Math.max(r,n)),d)}}function n6(t){return t?parseInt(t):1}function dTt(t){let e=t.match(sTt);if(!e)return NaN;let a=Jk(e[1]),i=Jk(e[2]),r=Jk(e[3]);return bTt(a,i,r)?a*Ba+i*q2+r*1e3:NaN}function Jk(t){return t&&parseFloat(t.replace(",","."))||0}function uTt(t){if(t==="Z")return 0;let e=t.match(nTt);if(!e)return 0;let a=e[1]==="+"?-1:1,i=parseInt(e[2]),r=e[3]&&parseInt(e[3])||0;return vTt(i,r)?a*(i*Ba+r*q2):NaN}function pTt(t,e,a){let i=new Date(0);i.setUTCFullYear(t,0,4);let r=i.getUTCDay()||7,s=(e-1)*7+a+1-r;return i.setUTCDate(i.getUTCDate()+s),i}function hJ(t){return t%400===0||t%4===0&&t%100!==0}function fTt(t,e,a){return e>=0&&e<=11&&a>=1&&a<=(hTt[e]||(hJ(t)?29:28))}function mTt(t,e){return e>=1&&e<=(hJ(t)?366:365)}function gTt(t,e,a){return e>=1&&e<=53&&a>=0&&a<=6}function bTt(t,e,a){return t===24?e===0&&a===0:a>=0&&a<60&&e>=0&&e<60&&t>=0&&t<25}function vTt(t,e){return e>=0&&e<=59}var $p,rTt,sTt,nTt,hTt,dg1,mJ=v(()=>{xt();at();Ae();$p={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},rTt=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,sTt=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,nTt=/^([+-])(\d{2})(?::?(\d{2}))?$/;hTt=[31,null,31,30,31,30,31,31,30,31,30,31];dg1=fJ});function gJ(t,e){let a=t.match(/(\d{4})-(\d{2})-(\d{2})[T ](\d{2}):(\d{2}):(\d{2})(?:\.(\d{0,7}))?(?:Z|(.)(\d{2}):?(\d{2})?)?/);return a?ne(Date.UTC(+a[1],+a[2]-1,+a[3],+a[4]-(+a[9]||0)*(a[8]=="-"?-1:1),+a[5]-(+a[10]||0)*(a[8]=="-"?-1:1),+a[6],+((a[7]||"0")+"00").substring(0,3)),e?.in):ne(NaN,e?.in)}var hg1,bJ=v(()=>{Ae();hg1=gJ});function Y2(t,e,a){let i=_n(t,a)-e;return i<=0&&(i+=7),$n(t,i,a)}var bg1,fs=v(()=>{e6();s6();bg1=Y2});function vJ(t,e){return Y2(t,5,e)}var xg1,yJ=v(()=>{fs();xg1=vJ});function xJ(t,e){return Y2(t,1,e)}var zg1,wJ=v(()=>{fs();zg1=xJ});function MJ(t,e){return Y2(t,6,e)}var Cg1,zJ=v(()=>{fs();Cg1=MJ});function SJ(t,e){return Y2(t,0,e)}var Lg1,kJ=v(()=>{fs();Lg1=SJ});function CJ(t,e){return Y2(t,4,e)}var Dg1,TJ=v(()=>{fs();Dg1=CJ});function _J(t,e){return Y2(t,2,e)}var Ng1,LJ=v(()=>{fs();Ng1=_J});function $J(t,e){return Y2(t,3,e)}var Rg1,AJ=v(()=>{fs();Rg1=$J});function DJ(t){return Math.trunc(t*N7)}var Hg1,EJ=v(()=>{xt();Hg1=DJ});function PJ(t){let e=t/F7;return Math.trunc(e)}var jg1,NJ=v(()=>{xt();jg1=PJ});function IJ(t,e){let a=e?.nearestTo??1;if(a<1||a>12)return Le(e?.in||t,NaN);let i=ne(t,e?.in),r=i.getMinutes()/60,s=i.getSeconds()/60/60,n=i.getMilliseconds()/1e3/60/60,o=i.getHours()+r+s+n,l=e?.roundingMethod??"round",u=U2(l)(o/a)*a;return i.setHours(u,0,0,0),i}var Zg1,FJ=v(()=>{ps();at();Ae();Zg1=IJ});function RJ(t,e){let a=e?.nearestTo??1;if(a<1||a>30)return Le(t,NaN);let i=ne(t,e?.in),r=i.getSeconds()/60,s=i.getMilliseconds()/1e3/60,n=i.getMinutes()+r+s,o=e?.roundingMethod??"round",d=U2(o)(n/a)*a;return i.setMinutes(d,0,0),i}var eb1,OJ=v(()=>{ps();at();Ae();eb1=RJ});function BJ(t){let e=t/jo;return Math.trunc(e)}var ib1,HJ=v(()=>{xt();ib1=BJ});function qJ(t){return t*q4}var nb1,VJ=v(()=>{xt();nb1=qJ});function jJ(t){let e=t/j4;return Math.trunc(e)}var cb1,UJ=v(()=>{xt();cb1=jJ});function u3(t,e,a){let i=ne(t,a?.in),r=i.getFullYear(),s=i.getDate(),n=Le(a?.in||t,0);n.setFullYear(r,e,15),n.setHours(0,0,0,0);let o=Tu(n);return i.setMonth(e,Math.min(s,o)),i}var fb1,Ap=v(()=>{at();Ak();Ae();fb1=u3});function WJ(t,e,a){let i=ne(t,a?.in);return isNaN(+i)?Le(a?.in||t,NaN):(e.year!=null&&i.setFullYear(e.year),e.month!=null&&(i=u3(i,e.month)),e.date!=null&&i.setDate(e.date),e.hours!=null&&i.setHours(e.hours),e.minutes!=null&&i.setMinutes(e.minutes),e.seconds!=null&&i.setSeconds(e.seconds),e.milliseconds!=null&&i.setMilliseconds(e.milliseconds),i)}var yb1,GJ=v(()=>{at();Ap();Ae();yb1=WJ});function YJ(t,e,a){let i=ne(t,a?.in);return i.setDate(e),i}var Mb1,ZJ=v(()=>{Ae();Mb1=YJ});function XJ(t,e,a){let i=ne(t,a?.in);return i.setMonth(0),i.setDate(e),i}var kb1,QJ=v(()=>{Ae();kb1=XJ});function KJ(t){let e={},a=Kt();for(let i in a)Object.prototype.hasOwnProperty.call(a,i)&&(e[i]=a[i]);for(let i in t)Object.prototype.hasOwnProperty.call(t,i)&&(t[i]===void 0?delete e[i]:e[i]=t[i]);fY(e)}var _b1,JJ=v(()=>{V2();_b1=KJ});function eee(t,e,a){let i=ne(t,a?.in);return i.setHours(e),i}var Ab1,tee=v(()=>{Ae();Ab1=eee});function aee(t,e,a){let i=ne(t,a?.in);return i.setMilliseconds(e),i}var Pb1,iee=v(()=>{Ae();Pb1=aee});function ree(t,e,a){let i=ne(t,a?.in);return i.setMinutes(e),i}var Fb1,see=v(()=>{Ae();Fb1=ree});function nee(t,e,a){let i=ne(t,a?.in),r=Math.trunc(i.getMonth()/3)+1,s=e-r;return u3(i,i.getMonth()+s*3)}var Hb1,oee=v(()=>{Ap();Ae();Hb1=nee});function lee(t,e,a){let i=ne(t,a?.in);return i.setSeconds(e),i}var jb1,cee=v(()=>{Ae();jb1=lee});function dee(t,e,a){let i=Kt(),r=a?.firstWeekContainsDate??a?.locale?.options?.firstWeekContainsDate??i.firstWeekContainsDate??i.locale?.options?.firstWeekContainsDate??1,s=b2(ne(t,a?.in),Qo(t,a),a),n=Le(a?.in||t,0);n.setFullYear(e,0,r),n.setHours(0,0,0,0);let o=Qo(n,a);return o.setDate(o.getDate()+s),o}var Qb1,uee=v(()=>{V2();at();ds();xu();Ae();Qb1=dee});function pee(t,e,a){let i=ne(t,a?.in);return isNaN(+i)?Le(a?.in||t,NaN):(i.setFullYear(e),i)}var tv1,hee=v(()=>{at();Ae();tv1=pee});function fee(t,e){let a=ne(t,e?.in),i=a.getFullYear(),r=Math.floor(i/10)*10;return a.setFullYear(r,0,1),a.setHours(0,0,0,0),a}var rv1,mee=v(()=>{Ae();rv1=fee});function gee(t){return wr(Date.now(),t)}var ov1,bee=v(()=>{jc();ov1=gee});function vee(t){let e=Tt(t?.in),a=e.getFullYear(),i=e.getMonth(),r=e.getDate(),s=Le(t?.in,0);return s.setFullYear(a,i,r+1),s.setHours(0,0,0,0),s}var uv1,yee=v(()=>{at();r2();uv1=vee});function xee(t){let e=Tt(t?.in),a=e.getFullYear(),i=e.getMonth(),r=e.getDate(),s=Tt(t?.in);return s.setFullYear(a,i,r-1),s.setHours(0,0,0,0),s}var fv1,wee=v(()=>{r2();fv1=xee});function Dp(t,e,a){return vr(t,-e,a)}var bv1,eC=v(()=>{U4();bv1=Dp});function Mee(t,e,a){let{years:i=0,months:r=0,weeks:s=0,days:n=0,hours:o=0,minutes:l=0,seconds:d=0}=e,u=Dp(t,r+i*12,a),c=$n(u,n+s*7,a),f=l+o*60,y=(d+f*60)*1e3;return Le(a?.in||t,+c-y)}var Mv1,zee=v(()=>{at();s6();eC();Mv1=Mee});function See(t,e,a){return B7(t,-e,a)}var kv1,kee=v(()=>{rk();kv1=See});function Cee(t,e,a){return H7(t,-e,a)}var _v1,Tee=v(()=>{sk();_v1=Cee});function _ee(t,e,a){return xn(t,-e,a)}var Av1,Lee=v(()=>{Vc();Av1=_ee});function $ee(t,e,a){return G4(t,-e,a)}var Pv1,Aee=v(()=>{j7();Pv1=$ee});function Dee(t,e,a){return Y4(t,-e,a)}var Fv1,Eee=v(()=>{U7();Fv1=Dee});function Pee(t,e,a){return W7(t,-e,a)}var Bv1,Nee=v(()=>{lk();Bv1=Pee});function Iee(t,e,a){return Mn(t,-e,a)}var Vv1,Fee=v(()=>{Uc();Vv1=Iee});function Ree(t,e,a){return G7(t,-e,a)}var Wv1,Oee=v(()=>{ck();Wv1=Ree});function Bee(t){return Math.trunc(t*7)}var Zv1,Hee=v(()=>{xt();Zv1=Bee});function qee(t){return Math.trunc(t*365.2425)}var Kv1,Vee=v(()=>{xt();Kv1=qee});function jee(t){return Math.trunc(t*I7)}var ty1,Uee=v(()=>{xt();ty1=jee});function Wee(t){return Math.trunc(t*F7)}var ry1,Gee=v(()=>{xt();ry1=Wee});var o6={};Qe(o6,{add:()=>yn,addBusinessDays:()=>B7,addDays:()=>i2,addHours:()=>H7,addISOWeekYears:()=>V7,addMilliseconds:()=>xn,addMinutes:()=>G4,addMonths:()=>vr,addQuarters:()=>Y4,addSeconds:()=>W7,addWeeks:()=>Mn,addYears:()=>G7,areIntervalsOverlapping:()=>mY,clamp:()=>bY,closestIndexTo:()=>X7,closestTo:()=>yY,compareAsc:()=>j2,compareDesc:()=>wY,constructFrom:()=>Le,constructNow:()=>Tt,daysToWeeks:()=>zY,differenceInBusinessDays:()=>kY,differenceInCalendarDays:()=>b2,differenceInCalendarISOWeekYears:()=>K7,differenceInCalendarISOWeeks:()=>TY,differenceInCalendarMonths:()=>Wo,differenceInCalendarQuarters:()=>X4,differenceInCalendarWeeks:()=>Go,differenceInCalendarYears:()=>zn,differenceInDays:()=>Q4,differenceInHours:()=>Yo,differenceInISOWeekYears:()=>$Y,differenceInMilliseconds:()=>K4,differenceInMinutes:()=>Zo,differenceInMonths:()=>Sn,differenceInQuarters:()=>DY,differenceInSeconds:()=>zr,differenceInWeeks:()=>PY,differenceInYears:()=>du,eachDayOfInterval:()=>uu,eachHourOfInterval:()=>IY,eachMinuteOfInterval:()=>RY,eachMonthOfInterval:()=>BY,eachQuarterOfInterval:()=>qY,eachWeekOfInterval:()=>jY,eachWeekendOfInterval:()=>t3,eachWeekendOfMonth:()=>WY,eachWeekendOfYear:()=>YY,eachYearOfInterval:()=>XY,endOfDay:()=>J4,endOfDecade:()=>KY,endOfHour:()=>eZ,endOfISOWeek:()=>aZ,endOfISOWeekYear:()=>rZ,endOfMinute:()=>nZ,endOfMonth:()=>e3,endOfQuarter:()=>lZ,endOfSecond:()=>dZ,endOfToday:()=>pZ,endOfTomorrow:()=>fZ,endOfWeek:()=>gu,endOfYear:()=>fu,endOfYesterday:()=>gZ,format:()=>Jc,formatDate:()=>Jc,formatDistance:()=>Su,formatDistanceStrict:()=>ku,formatDistanceToNow:()=>OZ,formatDistanceToNowStrict:()=>HZ,formatDuration:()=>VZ,formatISO:()=>UZ,formatISO9075:()=>GZ,formatISODuration:()=>ZZ,formatRFC3339:()=>QZ,formatRFC7231:()=>JZ,formatRelative:()=>tX,formatters:()=>Qc,fromUnixTime:()=>iX,getDate:()=>Cu,getDay:()=>_n,getDayOfYear:()=>vu,getDaysInMonth:()=>Tu,getDaysInYear:()=>sX,getDecade:()=>oX,getDefaultOptions:()=>Lu,getHours:()=>cX,getISODay:()=>$u,getISOWeek:()=>s3,getISOWeekYear:()=>ua,getISOWeeksInYear:()=>uX,getMilliseconds:()=>hX,getMinutes:()=>mX,getMonth:()=>bX,getOverlappingDaysInIntervals:()=>yX,getQuarter:()=>Wc,getSeconds:()=>wX,getTime:()=>zX,getUnixTime:()=>kX,getWeek:()=>n3,getWeekOfMonth:()=>TX,getWeekYear:()=>Cn,getWeeksInMonth:()=>LX,getYear:()=>AX,hoursToMilliseconds:()=>EX,hoursToMinutes:()=>NX,hoursToSeconds:()=>FX,interval:()=>OX,intervalToDuration:()=>HX,intlFormat:()=>VX,intlFormatDistance:()=>UX,isAfter:()=>GX,isBefore:()=>ZX,isDate:()=>Q7,isEqual:()=>QX,isExists:()=>JX,isFirstDayOfMonth:()=>tQ,isFriday:()=>iQ,isFuture:()=>sQ,isLastDayOfMonth:()=>cu,isLeapYear:()=>_u,isMatch:()=>OQ,isMonday:()=>HQ,isPast:()=>VQ,isSameDay:()=>Mr,isSameHour:()=>wp,isSameISOWeek:()=>zp,isSameISOWeekYear:()=>UQ,isSameMinute:()=>Sp,isSameMonth:()=>kp,isSameQuarter:()=>Cp,isSameSecond:()=>Tp,isSameWeek:()=>d3,isSameYear:()=>_p,isSaturday:()=>R7,isSunday:()=>O7,isThisHour:()=>GQ,isThisISOWeek:()=>ZQ,isThisMinute:()=>QQ,isThisMonth:()=>JQ,isThisQuarter:()=>tK,isThisSecond:()=>iK,isThisWeek:()=>sK,isThisYear:()=>oK,isThursday:()=>cK,isToday:()=>uK,isTomorrow:()=>hK,isTuesday:()=>mK,isValid:()=>_2,isWednesday:()=>bK,isWeekend:()=>yr,isWithinInterval:()=>yK,isYesterday:()=>wK,lastDayOfDecade:()=>zK,lastDayOfISOWeek:()=>kK,lastDayOfISOWeekYear:()=>TK,lastDayOfMonth:()=>Au,lastDayOfQuarter:()=>LK,lastDayOfWeek:()=>Lp,lastDayOfYear:()=>AK,lightFormat:()=>EK,lightFormatters:()=>qa,longFormatters:()=>Tn,max:()=>Y7,milliseconds:()=>NK,millisecondsToHours:()=>FK,millisecondsToMinutes:()=>OK,millisecondsToSeconds:()=>HK,min:()=>Z7,minutesToHours:()=>VK,minutesToMilliseconds:()=>UK,minutesToSeconds:()=>GK,monthsToQuarters:()=>ZK,monthsToYears:()=>QK,nextDay:()=>G2,nextFriday:()=>JK,nextMonday:()=>tJ,nextSaturday:()=>iJ,nextSunday:()=>sJ,nextThursday:()=>oJ,nextTuesday:()=>cJ,nextWednesday:()=>uJ,parse:()=>xp,parseISO:()=>fJ,parseJSON:()=>gJ,parsers:()=>yp,previousDay:()=>Y2,previousFriday:()=>vJ,previousMonday:()=>xJ,previousSaturday:()=>MJ,previousSunday:()=>SJ,previousThursday:()=>CJ,previousTuesday:()=>_J,previousWednesday:()=>$J,quartersToMonths:()=>DJ,quartersToYears:()=>PJ,roundToNearestHours:()=>IJ,roundToNearestMinutes:()=>RJ,secondsToHours:()=>BJ,secondsToMilliseconds:()=>qJ,secondsToMinutes:()=>jJ,set:()=>WJ,setDate:()=>YJ,setDay:()=>Ln,setDayOfYear:()=>XJ,setDefaultOptions:()=>KJ,setHours:()=>eee,setISODay:()=>ip,setISOWeek:()=>Xu,setISOWeekYear:()=>q7,setMilliseconds:()=>aee,setMinutes:()=>ree,setMonth:()=>u3,setQuarter:()=>nee,setSeconds:()=>lee,setWeek:()=>Yu,setWeekYear:()=>dee,setYear:()=>pee,startOfDay:()=>wr,startOfDecade:()=>fee,startOfHour:()=>a6,startOfISOWeek:()=>X1,startOfISOWeekYear:()=>Ha,startOfMinute:()=>i6,startOfMonth:()=>kn,startOfQuarter:()=>kr,startOfSecond:()=>r6,startOfToday:()=>gee,startOfTomorrow:()=>vee,startOfWeek:()=>u1,startOfWeekYear:()=>Qo,startOfYear:()=>a3,startOfYesterday:()=>xee,sub:()=>Mee,subBusinessDays:()=>See,subDays:()=>$n,subHours:()=>Cee,subISOWeekYears:()=>ru,subMilliseconds:()=>_ee,subMinutes:()=>$ee,subMonths:()=>Dp,subQuarters:()=>Dee,subSeconds:()=>Pee,subWeeks:()=>Iee,subYears:()=>Ree,toDate:()=>ne,transpose:()=>Du,weeksToDays:()=>Bee,yearsToDays:()=>qee,yearsToMonths:()=>jee,yearsToQuarters:()=>Wee});var Yee=v(()=>{tk();rk();br();sk();ok();Vc();j7();U4();U7();lk();Uc();ck();gY();vY();pk();xY();Uo();MY();at();r2();SY();CY();ds();fk();_Y();J7();gk();eu();tu();au();iu();AY();su();nu();Gc();EY();Yc();NY();yk();xk();FY();OY();HY();VY();UY();hu();GY();ZY();QY();ou();JY();tZ();iZ();sZ();oZ();lu();cZ();uZ();hZ();mZ();Mk();wk();bZ();Tk();_k();Lk();BZ();qZ();jZ();WZ();YZ();XZ();KZ();eX();aX();rX();$k();e6();zk();Ak();nX();lX();Ek();dX();Pk();yu();wn();pX();fX();gX();vX();xX();mk();MX();SX();CX();wu();_X();Xc();$X();DX();PX();IX();RX();BX();qX();jX();WX();YX();XX();hk();KX();eQ();aQ();rQ();nQ();vk();Dk();BQ();qQ();jQ();Z4();Vk();jk();WQ();Wk();Gk();Yk();Xk();Mp();Qk();ak();ik();YQ();XQ();KQ();eK();aK();rK();nK();lK();dK();pK();fK();gK();us();vK();qc();xK();MK();SK();CK();_K();Nk();$K();Kk();DK();PK();dk();IK();RK();BK();qK();uk();jK();WK();YK();XK();KK();hs();eJ();aJ();rJ();nJ();lJ();dJ();pJ();Hk();mJ();bJ();fs();yJ();wJ();zJ();kJ();TJ();LJ();AJ();EJ();NJ();FJ();OJ();HJ();VJ();UJ();GJ();ZJ();t6();QJ();JJ();tee();Bk();Ok();nk();iee();see();Ap();oee();cee();Rk();uee();hee();jc();mee();qk();xr();W4();Uk();Zc();pu();Zk();bee();yee();Oi();xu();mu();wee();zee();kee();s6();Tee();bk();Lee();Aee();eC();Eee();Nee();Fee();Oee();Ae();Ik();Hee();Vee();Uee();Gee()});var Zee=pt((tC,aC)=>{(function(t,e){typeof tC=="object"&&typeof aC<"u"?aC.exports=e():typeof define=="function"&&define.amd?define(e):(t=typeof globalThis<"u"?globalThis:t||self).dayjs=e()})(tC,(function(){"use strict";var t=1e3,e=6e4,a=36e5,i="millisecond",r="second",s="minute",n="hour",o="day",l="week",d="month",u="quarter",c="year",f="date",g="Invalid Date",y=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,b=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,m={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(z){var E=["th","st","nd","rd"],_=z%100;return"["+z+(E[(_-20)%10]||E[_]||E[0])+"]"}},x=function(z,E,_){var $=String(z);return!$||$.length>=E?z:""+Array(E+1-$.length).join(_)+z},M={s:x,z:function(z){var E=-z.utcOffset(),_=Math.abs(E),$=Math.floor(_/60),V=_%60;return(E<=0?"+":"-")+x($,2,"0")+":"+x(V,2,"0")},m:function z(E,_){if(E.date()<_.date())return-z(_,E);var $=12*(_.year()-E.year())+(_.month()-E.month()),V=E.clone().add($,d),O=_-V<0,U=E.clone().add($+(O?-1:1),d);return+(-($+(_-V)/(O?V-U:U-V))||0)},a:function(z){return z<0?Math.ceil(z)||0:Math.floor(z)},p:function(z){return{M:d,y:c,w:l,d:o,D:f,h:n,m:s,s:r,ms:i,Q:u}[z]||String(z||"").toLowerCase().replace(/s$/,"")},u:function(z){return z===void 0}},k="en",F={};F[k]=m;var T="$isDayjsObject",S=function(z){return z instanceof q||!(!z||!z[T])},I=function z(E,_,$){var V;if(!E)return k;if(typeof E=="string"){var O=E.toLowerCase();F[O]&&(V=O),_&&(F[O]=_,V=O);var U=E.split("-");if(!V&&U.length>1)return z(U[0])}else{var re=E.name;F[re]=E,V=re}return!$&&V&&(k=V),V||!$&&k},L=function(z,E){if(S(z))return z.clone();var _=typeof E=="object"?E:{};return _.date=z,_.args=arguments,new q(_)},A=M;A.l=I,A.i=S,A.w=function(z,E){return L(z,{locale:E.$L,utc:E.$u,x:E.$x,$offset:E.$offset})};var q=(function(){function z(_){this.$L=I(_.locale,null,!0),this.parse(_),this.$x=this.$x||_.x||{},this[T]=!0}var E=z.prototype;return E.parse=function(_){this.$d=(function($){var V=$.date,O=$.utc;if(V===null)return new Date(NaN);if(A.u(V))return new Date;if(V instanceof Date)return new Date(V);if(typeof V=="string"&&!/Z$/i.test(V)){var U=V.match(y);if(U){var re=U[2]-1||0,j=(U[7]||"0").substring(0,3);return O?new Date(Date.UTC(U[1],re,U[3]||1,U[4]||0,U[5]||0,U[6]||0,j)):new Date(U[1],re,U[3]||1,U[4]||0,U[5]||0,U[6]||0,j)}}return new Date(V)})(_),this.init()},E.init=function(){var _=this.$d;this.$y=_.getFullYear(),this.$M=_.getMonth(),this.$D=_.getDate(),this.$W=_.getDay(),this.$H=_.getHours(),this.$m=_.getMinutes(),this.$s=_.getSeconds(),this.$ms=_.getMilliseconds()},E.$utils=function(){return A},E.isValid=function(){return this.$d.toString()!==g},E.isSame=function(_,$){var V=L(_);return this.startOf($)<=V&&V<=this.endOf($)},E.isAfter=function(_,$){return L(_)<this.startOf($)},E.isBefore=function(_,$){return this.endOf($)<L(_)},E.$g=function(_,$,V){return A.u(_)?this[$]:this.set(V,_)},E.unix=function(){return Math.floor(this.valueOf()/1e3)},E.valueOf=function(){return this.$d.getTime()},E.startOf=function(_,$){var V=this,O=!!A.u($)||$,U=A.p(_),re=function(D,R){var Z=A.w(V.$u?Date.UTC(V.$y,R,D):new Date(V.$y,R,D),V);return O?Z:Z.endOf(o)},j=function(D,R){return A.w(V.toDate()[D].apply(V.toDate("s"),(O?[0,0,0,0]:[23,59,59,999]).slice(R)),V)},me=this.$W,we=this.$M,H=this.$D,he="set"+(this.$u?"UTC":"");switch(U){case c:return O?re(1,0):re(31,11);case d:return O?re(1,we):re(0,we+1);case l:var _e=this.$locale().weekStart||0,W=(me<_e?me+7:me)-_e;return re(O?H-W:H+(6-W),we);case o:case f:return j(he+"Hours",0);case n:return j(he+"Minutes",1);case s:return j(he+"Seconds",2);case r:return j(he+"Milliseconds",3);default:return this.clone()}},E.endOf=function(_){return this.startOf(_,!1)},E.$set=function(_,$){var V,O=A.p(_),U="set"+(this.$u?"UTC":""),re=(V={},V[o]=U+"Date",V[f]=U+"Date",V[d]=U+"Month",V[c]=U+"FullYear",V[n]=U+"Hours",V[s]=U+"Minutes",V[r]=U+"Seconds",V[i]=U+"Milliseconds",V)[O],j=O===o?this.$D+($-this.$W):$;if(O===d||O===c){var me=this.clone().set(f,1);me.$d[re](j),me.init(),this.$d=me.set(f,Math.min(this.$D,me.daysInMonth())).$d}else re&&this.$d[re](j);return this.init(),this},E.set=function(_,$){return this.clone().$set(_,$)},E.get=function(_){return this[A.p(_)]()},E.add=function(_,$){var V,O=this;_=Number(_);var U=A.p($),re=function(we){var H=L(O);return A.w(H.date(H.date()+Math.round(we*_)),O)};if(U===d)return this.set(d,this.$M+_);if(U===c)return this.set(c,this.$y+_);if(U===o)return re(1);if(U===l)return re(7);var j=(V={},V[s]=e,V[n]=a,V[r]=t,V)[U]||1,me=this.$d.getTime()+_*j;return A.w(me,this)},E.subtract=function(_,$){return this.add(-1*_,$)},E.format=function(_){var $=this,V=this.$locale();if(!this.isValid())return V.invalidDate||g;var O=_||"YYYY-MM-DDTHH:mm:ssZ",U=A.z(this),re=this.$H,j=this.$m,me=this.$M,we=V.weekdays,H=V.months,he=V.meridiem,_e=function(R,Z,Y,oe){return R&&(R[Z]||R($,O))||Y[Z].slice(0,oe)},W=function(R){return A.s(re%12||12,R,"0")},D=he||function(R,Z,Y){var oe=R<12?"AM":"PM";return Y?oe.toLowerCase():oe};return O.replace(b,(function(R,Z){return Z||(function(Y){switch(Y){case"YY":return String($.$y).slice(-2);case"YYYY":return A.s($.$y,4,"0");case"M":return me+1;case"MM":return A.s(me+1,2,"0");case"MMM":return _e(V.monthsShort,me,H,3);case"MMMM":return _e(H,me);case"D":return $.$D;case"DD":return A.s($.$D,2,"0");case"d":return String($.$W);case"dd":return _e(V.weekdaysMin,$.$W,we,2);case"ddd":return _e(V.weekdaysShort,$.$W,we,3);case"dddd":return we[$.$W];case"H":return String(re);case"HH":return A.s(re,2,"0");case"h":return W(1);case"hh":return W(2);case"a":return D(re,j,!0);case"A":return D(re,j,!1);case"m":return String(j);case"mm":return A.s(j,2,"0");case"s":return String($.$s);case"ss":return A.s($.$s,2,"0");case"SSS":return A.s($.$ms,3,"0");case"Z":return U}return null})(R)||U.replace(":","")}))},E.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},E.diff=function(_,$,V){var O,U=this,re=A.p($),j=L(_),me=(j.utcOffset()-this.utcOffset())*e,we=this-j,H=function(){return A.m(U,j)};switch(re){case c:O=H()/12;break;case d:O=H();break;case u:O=H()/3;break;case l:O=(we-me)/6048e5;break;case o:O=(we-me)/864e5;break;case n:O=we/a;break;case s:O=we/e;break;case r:O=we/t;break;default:O=we}return V?O:A.a(O)},E.daysInMonth=function(){return this.endOf(d).$D},E.$locale=function(){return F[this.$L]},E.locale=function(_,$){if(!_)return this.$L;var V=this.clone(),O=I(_,$,!0);return O&&(V.$L=O),V},E.clone=function(){return A.w(this.$d,this)},E.toDate=function(){return new Date(this.valueOf())},E.toJSON=function(){return this.isValid()?this.toISOString():null},E.toISOString=function(){return this.$d.toISOString()},E.toString=function(){return this.$d.toUTCString()},z})(),C=q.prototype;return L.prototype=C,[["$ms",i],["$s",r],["$m",s],["$H",n],["$W",o],["$M",d],["$y",c],["$D",f]].forEach((function(z){C[z[1]]=function(E){return this.$g(E,z[0],z[1])}})),L.extend=function(z,E){return z.$i||(z(E,q,L),z.$i=!0),L},L.locale=I,L.isDayjs=S,L.unix=function(z){return L(1e3*z)},L.en=F[k],L.Ls=F,L.p={},L}))});var Xee=pt((iC,rC)=>{(function(t,e){typeof iC=="object"&&typeof rC<"u"?rC.exports=e():typeof define=="function"&&define.amd?define(e):(t=typeof globalThis<"u"?globalThis:t||self).dayjs_plugin_isToday=e()})(iC,(function(){"use strict";return function(t,e,a){e.prototype.isToday=function(){var i="YYYY-MM-DD",r=a();return this.format(i)===r.format(i)}}}))});function yTt(t){return{days:Math.trunc(t/864e5),hours:Math.trunc(t/36e5%24),minutes:Math.trunc(t/6e4%60),seconds:Math.trunc(t/1e3%60),milliseconds:Math.trunc(t%1e3),microseconds:Math.trunc(Qee(t*1e3)%1e3),nanoseconds:Math.trunc(Qee(t*1e6)%1e3)}}function xTt(t){return{days:t/86400000n,hours:t/3600000n%24n,minutes:t/60000n%60n,seconds:t/1000n%60n,milliseconds:t%1000n,microseconds:0n,nanoseconds:0n}}function sC(t){switch(typeof t){case"number":{if(Number.isFinite(t))return yTt(t);break}case"bigint":return xTt(t)}throw new TypeError("Expected a finite number or bigint")}var Qee,Kee=v(()=>{Qee=t=>Number.isFinite(t)?t:0});function l6(t,e){let a=typeof t=="bigint";if(!a&&!Number.isFinite(t))throw new TypeError("Expected a finite number or bigint");e={...e};let i=t<0?"-":"";t=t<0?-t:t,e.colonNotation&&(e.compact=!1,e.formatSubMilliseconds=!1,e.separateMilliseconds=!1,e.verbose=!1),e.compact&&(e.unitCount=1,e.secondsDecimalDigits=0,e.millisecondsDecimalDigits=0);let r=[],s=(u,c)=>{let f=Math.floor(u*10**c+zTt);return(Math.round(f)/10**c).toFixed(c)},n=(u,c,f,g)=>{if(!((r.length===0||!e.colonNotation)&&wTt(u)&&!(e.colonNotation&&f==="m"))){if(g??=String(u),e.colonNotation){let y=g.includes(".")?g.split(".")[0].length:g.length,b=r.length>0?2:1;g="0".repeat(Math.max(0,b-y))+g}else g+=e.verbose?" "+MTt(c,u):f;r.push(g)}},o=sC(t),l=BigInt(o.days);if(e.hideYearAndDays?n(BigInt(l)*24n+BigInt(o.hours),"hour","h"):(e.hideYear?n(l,"day","d"):(n(l/365n,"year","y"),n(l%365n,"day","d")),n(Number(o.hours),"hour","h")),n(Number(o.minutes),"minute","m"),!e.hideSeconds)if(e.separateMilliseconds||e.formatSubMilliseconds||!e.colonNotation&&t<1e3&&!e.subSecondsAsDecimals){let u=Number(o.seconds),c=Number(o.milliseconds),f=Number(o.microseconds),g=Number(o.nanoseconds);if(n(u,"second","s"),e.formatSubMilliseconds)n(c,"millisecond","ms"),n(f,"microsecond","\xB5s"),n(g,"nanosecond","ns");else{let y=c+f/1e3+g/1e6,b=typeof e.millisecondsDecimalDigits=="number"?e.millisecondsDecimalDigits:0,m=y>=1?Math.round(y):Math.ceil(y),x=b?y.toFixed(b):m;n(Number.parseFloat(x),"millisecond","ms",x)}}else{let u=(a?Number(t%STt):t)/1e3%60,c=typeof e.secondsDecimalDigits=="number"?e.secondsDecimalDigits:1,f=s(u,c),g=e.keepDecimalsOnWholeSeconds?f:f.replace(/\.0+$/,"");n(Number.parseFloat(g),"second","s",g)}if(r.length===0)return i+"0"+(e.verbose?" milliseconds":"ms");let d=e.colonNotation?":":" ";return typeof e.unitCount=="number"&&(r=r.slice(0,Math.max(e.unitCount,1))),i+r.join(d)}var wTt,MTt,zTt,STt,Jee=v(()=>{Kee();wTt=t=>t===0||t===0n,MTt=(t,e)=>e===1||e===1n?t:`${t}s`,zTt=1e-7,STt=24n*60n*60n*1000n});var e0,ete,ms=v(()=>{c6();Ri();a2();dY();Yee();e0=B1(Zee(),1),ete=B1(Xee(),1);Jee();e0.default.extend(ete.default)});var tte,ate=v(()=>{ms();tte=class{get cronArray(){return this.cronExpression.split(" ")}constructor(e){if(this.cronExpression=e,this.cronArray.length<6)throw new Error("CronParser needs second level accuracy")}getNextPartMatch(e,a,i){if(e==="*")return a;if(e.includes("/")){let r=parseInt(e.split("/")[1],10),s=n=>n%r===0?n:s(n+1);return s(a)}if(parseInt(e,10)||e==="0")return parseInt(e,10)}msToNext(){let e=this.cronArray,a=e[0],i=e[1],r=e[2],s=e[3],n=e[4],o=e[5],l=new Date,d=l.getSeconds()+1,u=l.getMinutes(),c=l.getHours(),f=l.getDate(),g=l.getMonth(),y=l.getFullYear(),b=this.getNextPartMatch(a,d,59);b<d&&(u=(u+1)%59);let m=this.getNextPartMatch(i,u,59);m<u&&(c=(c+1)%23);let x=this.getNextPartMatch(r,c,23);x<c&&(f=(f+1)%30);let M=f;M<f&&(g=(g+1)%11);let k=g;k<g&&(y=y+1);let F=y;return new Date(F,k,M,x,m,b).getTime()-Date.now()}}});var d6,nC=v(()=>{ms();oC();ate();d6=class{constructor(e,a,i){this.status="initial",this.nextExecutionUnix=0,this.cronExpression=a,this.jobFunction=i,this.cronParser=new Bc.Cron(a)}checkExecution(){if(this.nextExecutionUnix===0&&this.getNextExecutionTime(),Date.now()>this.nextExecutionUnix){let e=this.jobFunction(this.nextExecutionUnix);e instanceof Promise&&e.catch(a=>console.log(a)),this.nextExecutionUnix=this.getNextExecutionTime()}return this.nextExecutionUnix}getNextExecutionTime(){return this.nextExecutionUnix=Date.now()+this.getTimeToNextExecution()}getTimeToNextExecution(){return this.cronParser.msToNext()}start(){this.status="started"}stop(){this.status="stopped"}}});var An,lC,cC,kTt,Ep=v(()=>{ms();An={years:(t=1)=>t*3154e7,months:(t=1)=>t*2628e6,weeks:(t=1)=>t*6048e5,days:(t=1)=>t*864e5,hours:(t=1)=>t*36e5,minutes:(t=1)=>t*6e4,seconds:(t=1)=>t*1e3},lC=t=>{let e=0,a=i=>{e=e+i};return t.years&&a(An.years(t.years)),t.months&&a(An.months(t.months)),t.weeks&&a(An.weeks(t.weeks)),t.days&&a(An.days(t.days)),t.hours&&a(An.hours(t.hours)),t.minutes&&a(An.minutes(t.minutes)),t.seconds&&a(An.seconds(t.seconds)),e},cC=t=>l6(t),kTt=t=>o6.formatDistanceToNow(new Date(t))});var dC,oC=v(()=>{ms();nC();Ep();dC=class{constructor(){this.status="stopped",this.cronjobs=new s2.ObjectMap}addCronjob(e,a){let i=new d6(this,e,a);return this.cronjobs.add(i),this.status==="started"&&i.start(),i}removeCronjob(e){e.stop(),this.cronjobs.remove(e)}start(){if(this.status!=="started"){this.status="started";for(let e of this.cronjobs.getArray())e.start();this.runCronCycle()}}async runCronCycle(){this.executionTimeout=new rt.Timeout(0);do{let e;for(let a of this.cronjobs.getArray())a.checkExecution(),(!e||a.getTimeToNextExecution()<e.getTimeToNextExecution())&&(e=a);e?(this.executionTimeout=new rt.Timeout(e.getTimeToNextExecution()),console.log(`Next CronJob scheduled in ${cC(this.executionTimeout.getTimeLeft())}`)):(this.executionTimeout=new rt.Timeout(1e3),console.log("no cronjobs specified! Checking again in 1 second")),await this.executionTimeout.promise}while(this.status==="started")}stop(){this.status==="started"?(this.status="stopped",this.executionTimeout.cancel()):console.log("You tried to stop a CronManager that was not actually started.");for(let e of this.cronjobs.getArray())e.stop()}}});var uC,ite=v(()=>{ms();Ep();uC=class t extends Date{static fromMillis(e){return new t(e)}static fromDate(e){return new t(e.getTime())}static fromEuropeanDate(e){let a=/(.*)\.(.*)\.(.*)/.exec(e),r=new Date(parseFloat(a[3]),parseFloat(a[2])-1,parseFloat(a[1])).getTime();return new t(r)}static fromHyphedDate(e){let a=new Date(e).getTime();return new t(a)}static fromEuropeanDateAndTime(e,a="12:00:00",i="Europe/Berlin"){let r=/(.*)\.(.*)\.(.*)/.exec(e),s=d=>`0${d}`.slice(-2),n=`${r[3]}-${s(r[2])}-${s(r[1])}T${a}`,l=e0.default(n).toDate().getTime();return new t(l)}constructor(e=Date.now()){super(e)}exportToEuropeanDate(){let e=this.exportToUnits();return`${e.dayString}.${e.monthString}.${e.yearString}`}exportToHyphedSortableDate(){let e=this.exportToUnits();return`${e.yearString}-${e.monthString}-${e.dayString}`}exportToUnits(){let e=["January","February","March","April","May","June","July","August","September","October","November","December"],a=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"];return{year:this.getFullYear(),yearString:`${this.getFullYear()}`,month:this.getMonth()+1,monthString:("0"+(this.getMonth()+1)).slice(-2),monthName:e[this.getMonth()],day:this.getDate(),dayString:("0"+this.getDate()).slice(-2),dayOfTheWeek:this.getDay(),dayOfTheWeekName:a[this.getDay()]}}format(e){return e0.default(this.getTime()).format(e)}isToday(){return e0.default(this.getTime()).isToday()}lessTimePassedToNow(e){let a=lC(e);return Date.now()-this.getTime()<a}moreTimePassedToNow(e){return!this.lessTimePassedToNow(e)}}});var pC,rte=v(()=>{pC=class{constructor(){this.nanoSeconds=null,this.milliSeconds=null,this._milliStart=null,this._milliDiff=null,this._started=!1}start(){this._started=!0,this._milliStart=Date.now()}stop(){if(this._started===!1){console.log("Hasn't started yet");return}return this._milliDiff=Date.now()-this._milliStart,this.nanoSeconds=this._milliDiff*1e3,this.milliSeconds=this._milliDiff,this}reset(){this.nanoSeconds=null,this.milliSeconds=null,this._milliStart=null,this._milliDiff=null,this._started=!1}}});var hC,ste=v(()=>{ms();hC=class{constructor(e){this.status="initial",this.statusAuthorization=null,this.intervalJobs=[],this.intervalMilliseconds=e}start(){this.status="started";let e=new Date;this.statusAuthorization=e,(async()=>{for(;this.status==="started"&&this.statusAuthorization===e;)await rt.delayFor(this.intervalMilliseconds),this.executeIntervalJobs()})()}stop(){this.status="stopped",this.statusAuthorization=null}addIntervalJob(e){this.intervalJobs.push(e)}executeIntervalJobs(){for(let e of this.intervalJobs)e()}}});var h3,fC=v(()=>{ms();h3=class t{static fromMilliSeconds(e){return new t(e)}static fromTimeStamp(e){let a=new t;return a.change=a.milliSeconds-e.milliSeconds,a}constructor(e){this.change=null,e?typeof e=="number"&&(this.date=new Date(e)):this.date=new Date,this.milliSeconds=this.date.getTime(),this.epochtime=Math.floor(this.milliSeconds/1e3)}isOlderThanOtherTimeStamp(e,a=0){return this.milliSeconds<e.milliSeconds-a}isOlderThan(e,a=0){return this.milliSeconds+a<e.milliSeconds}isYoungerThanOtherTimeStamp(e,a=0){return this.milliSeconds>e.milliSeconds+a}isYoungerThanMilliSeconds(e){let i=new t().epochtime-e,r=new t(i);return this.isYoungerThanOtherTimeStamp(r)}}});var mC,nte=v(()=>{ms();fC();mC=class{get timeLeft(){return this.timeInMilliseconds-this.pausedAt.change}constructor(e){this.state="initiated",this.completedDeferred=He.defer(),this.timeInMilliseconds=e,this.completed=this.completedDeferred.promise}start(){if(!this.startedAt)this.currentTimeout=setTimeout(()=>{this.completedDeferred.resolve()},this.timeInMilliseconds),this.startedAt=new h3;else throw new Error("timer has been started before. Please use resume instead")}pause(){this.startedAt&&(clearTimeout(this.currentTimeout),this.currentTimeout=null,this.pausedAt=h3.fromTimeStamp(this.startedAt))}resume(){if(this.startedAt)this.currentTimeout=setTimeout(()=>{this.completedDeferred.resolve()},this.timeLeft);else throw new Error("timer has NOT been started before. Please use .start() instead")}reset(){this.pause(),this.startedAt=null,this.pausedAt=null}}});var gs={};Qe(gs,{CronJob:()=>d6,CronManager:()=>dC,ExtendedDate:()=>uC,HrtMeasurement:()=>pC,Interval:()=>hC,TimeStamp:()=>h3,Timer:()=>mC,getMilliSecondsAsHumanReadableAgoTime:()=>kTt,getMilliSecondsAsHumanReadableString:()=>cC,getMilliSecondsFromUnits:()=>lC,units:()=>An});var gC=v(()=>{oC();nC();ite();rte();ste();nte();fC();Ep()});var lte=pt((uS1,ote)=>{"use strict";ote.exports=class{constructor(){this.parent=null,this.previousSibling=null,this.nextSibling=null,this.firstChild=null,this.lastChild=null,this.childrenVersion=0,this.childIndexCachedUpTo=null,this.cachedIndex=-1,this.cachedIndexVersion=NaN}get isAttached(){return!!(this.parent||this.previousSibling||this.nextSibling)}get hasChildren(){return!!this.firstChild}childrenChanged(){this.childrenVersion=this.childrenVersion+1&4294967295,this.childIndexCachedUpTo=null}getCachedIndex(e){return this.cachedIndexVersion!==e.childrenVersion?(this.cachedIndexVersion=NaN,-1):this.cachedIndex}setCachedIndex(e,a){this.cachedIndexVersion=e.childrenVersion,this.cachedIndex=a}}});var dte=pt((pS1,cte)=>{"use strict";cte.exports=Object.freeze({DISCONNECTED:1,PRECEDING:2,FOLLOWING:4,CONTAINS:8,CONTAINED_BY:16})});var mte=pt((hS1,fte)=>{"use strict";var ute=Symbol(),pte=Symbol(),Dn=Symbol(),hte=Symbol(),Bi=class{constructor(e,a,i,r){this[ute]=e,this[pte]=a,this[Dn]=i,this[hte]=r}next(){let e=this[ute],a=this[hte],i=this[pte];if(!this[Dn])return{done:!0,value:i};let r=this[Dn];return a===1?this[Dn]=e._node(r).previousSibling:a===2?this[Dn]=e._node(r).nextSibling:a===3?this[Dn]=e._node(r).parent:a===4?this[Dn]=e.preceding(r,{root:i}):this[Dn]=e.following(r,{root:i}),{done:!1,value:r}}};Object.defineProperty(Bi.prototype,Symbol.iterator,{value:function(){return this},writable:!1}),Bi.PREV=1,Bi.NEXT=2,Bi.PARENT=3,Bi.PRECEDING=4,Bi.FOLLOWING=5,Object.freeze(Bi),Object.freeze(Bi.prototype),fte.exports=Bi});var vC=pt((fS1,gte)=>{"use strict";var TTt=lte(),En=dte(),mi=mte();function bC(){return!0}function f3(t,e){return t[t.length-1-e]}var Pp=class{constructor(e){this.symbol=Symbol(e||"SymbolTree data")}initialize(e){return this._node(e),e}_node(e){if(!e)return null;let a=e[this.symbol];return a||(e[this.symbol]=new TTt)}hasChildren(e){return this._node(e).hasChildren}firstChild(e){return this._node(e).firstChild}lastChild(e){return this._node(e).lastChild}previousSibling(e){return this._node(e).previousSibling}nextSibling(e){return this._node(e).nextSibling}parent(e){return this._node(e).parent}lastInclusiveDescendant(e){let a,i=e;for(;a=this._node(i).lastChild;)i=a;return i}preceding(e,a){let i=a&&a.root;if(e===i)return null;let r=this._node(e).previousSibling;return r?this.lastInclusiveDescendant(r):this._node(e).parent}following(e,a){let i=a&&a.root,s=!(a&&a.skipChildren)&&this._node(e).firstChild;if(s)return s;let n=e;do{if(n===i)return null;let o=this._node(n).nextSibling;if(o)return o;n=this._node(n).parent}while(n);return null}childrenToArray(e,a){let i=a&&a.array||[],r=a&&a.filter||bC,s=a&&a.thisArg||void 0,n=this._node(e),o=n.firstChild,l=0;for(;o;){let d=this._node(o);d.setCachedIndex(n,l),r.call(s,o)&&i.push(o),o=d.nextSibling,++l}return i}ancestorsToArray(e,a){let i=a&&a.array||[],r=a&&a.filter||bC,s=a&&a.thisArg||void 0,n=e;for(;n;)r.call(s,n)&&i.push(n),n=this._node(n).parent;return i}treeToArray(e,a){let i=a&&a.array||[],r=a&&a.filter||bC,s=a&&a.thisArg||void 0,n=e;for(;n;)r.call(s,n)&&i.push(n),n=this.following(n,{root:e});return i}childrenIterator(e,a){let i=a&&a.reverse,r=this._node(e);return new mi(this,e,i?r.lastChild:r.firstChild,i?mi.PREV:mi.NEXT)}previousSiblingsIterator(e){return new mi(this,e,this._node(e).previousSibling,mi.PREV)}nextSiblingsIterator(e){return new mi(this,e,this._node(e).nextSibling,mi.NEXT)}ancestorsIterator(e){return new mi(this,e,e,mi.PARENT)}treeIterator(e,a){let i=a&&a.reverse;return new mi(this,e,i?this.lastInclusiveDescendant(e):e,i?mi.PRECEDING:mi.FOLLOWING)}index(e){let a=this._node(e),i=this._node(a.parent);if(!i)return-1;let r=a.getCachedIndex(i);if(r>=0)return r;r=0;let s=i.firstChild;if(i.childIndexCachedUpTo){let n=this._node(i.childIndexCachedUpTo);s=n.nextSibling,r=n.getCachedIndex(i)+1}for(;s;){let n=this._node(s);if(n.setCachedIndex(i,r),s===e)break;++r,s=n.nextSibling}return i.childIndexCachedUpTo=e,r}childrenCount(e){let a=this._node(e);return a.lastChild?this.index(a.lastChild)+1:0}compareTreePosition(e,a){if(e===a)return 0;let i=[];{let u=e;for(;u;){if(u===a)return En.CONTAINS|En.PRECEDING;i.push(u),u=this.parent(u)}}let r=[];{let u=a;for(;u;){if(u===e)return En.CONTAINED_BY|En.FOLLOWING;r.push(u),u=this.parent(u)}}let s=f3(i,0);if(!s||s!==f3(r,0))return En.DISCONNECTED;let n=0,o=Math.min(i.length,r.length);for(let u=0;u<o;++u){let c=f3(i,u),f=f3(r,u);if(c!==f)break;n=u}let l=this.index(f3(i,n+1));return this.index(f3(r,n+1))<l?En.PRECEDING:En.FOLLOWING}remove(e){let a=this._node(e),i=this._node(a.parent),r=this._node(a.previousSibling),s=this._node(a.nextSibling);return i&&(i.firstChild===e&&(i.firstChild=a.nextSibling),i.lastChild===e&&(i.lastChild=a.previousSibling)),r&&(r.nextSibling=a.nextSibling),s&&(s.previousSibling=a.previousSibling),a.parent=null,a.previousSibling=null,a.nextSibling=null,a.cachedIndex=-1,a.cachedIndexVersion=NaN,i&&i.childrenChanged(),e}insertBefore(e,a){let i=this._node(e),r=this._node(i.previousSibling),s=this._node(a),n=this._node(i.parent);if(s.isAttached)throw Error("Given object is already present in this SymbolTree, remove it first");return s.parent=i.parent,s.previousSibling=i.previousSibling,s.nextSibling=e,i.previousSibling=a,r&&(r.nextSibling=a),n&&n.firstChild===e&&(n.firstChild=a),n&&n.childrenChanged(),a}insertAfter(e,a){let i=this._node(e),r=this._node(i.nextSibling),s=this._node(a),n=this._node(i.parent);if(s.isAttached)throw Error("Given object is already present in this SymbolTree, remove it first");return s.parent=i.parent,s.previousSibling=e,s.nextSibling=i.nextSibling,i.nextSibling=a,r&&(r.previousSibling=a),n&&n.lastChild===e&&(n.lastChild=a),n&&n.childrenChanged(),a}prependChild(e,a){let i=this._node(e),r=this._node(a);if(r.isAttached)throw Error("Given object is already present in this SymbolTree, remove it first");return i.hasChildren?this.insertBefore(i.firstChild,a):(r.parent=e,i.firstChild=a,i.lastChild=a,i.childrenChanged()),a}appendChild(e,a){let i=this._node(e),r=this._node(a);if(r.isAttached)throw Error("Given object is already present in this SymbolTree, remove it first");return i.hasChildren?this.insertAfter(i.lastChild,a):(r.parent=e,i.firstChild=a,i.lastChild=a,i.childrenChanged()),a}};gte.exports=Pp,Pp.TreePosition=En});var Np,gi=v(()=>{Ri();YS();a2();pi();gC();Np=B1(vC(),1)});var yC,bte=v(()=>{gi();yC=class{constructor(){this.executionSlots=[],this.isProcessing=!1,this.nonExclusiveMaxConcurrency=1/0,this.nonExclusiveCurrentCount=0,this.nonExclusivePendingQueue=[]}async getExclusiveExecutionSlot(e,a){let i=He.defer(),r={funcToExecute:e,executionDeferred:i,timeout:a,mode:"exclusive"};return this.executionSlots.push(r),this.processExecutionSlots(),i.promise}async getNonExclusiveExecutionSlot(e,a){let i=He.defer(),r={funcToExecute:e,executionDeferred:i,timeout:a,mode:"nonexclusive"};return this.executionSlots.push(r),this.processExecutionSlots(),i.promise}setNonExclusiveMaxConcurrency(e){if(!Number.isFinite(e)||e<1)throw new Error("nonExclusiveMaxConcurrency must be a finite number >= 1");this.nonExclusiveMaxConcurrency=e}getNonExclusiveMaxConcurrency(){return this.nonExclusiveMaxConcurrency}getActiveNonExclusiveCount(){return this.nonExclusiveCurrentCount}getPendingNonExclusiveCount(){return this.nonExclusivePendingQueue.length}async processExecutionSlots(){if(!this.isProcessing){for(this.isProcessing=!0;this.executionSlots.length>0;){let e=this.executionSlots[0];if(e.mode==="exclusive")await this.executeExclusiveSlot(e),this.executionSlots.shift();else{let a=[];for(;this.executionSlots.length>0&&this.executionSlots[0].mode==="nonexclusive";)a.push(this.executionSlots.shift());await this.executeNonExclusiveSlots(a)}}this.isProcessing=!1}}async executeExclusiveSlot(e){try{if(e.timeout){let a=await Promise.race([e.funcToExecute(),rt.delayFor(e.timeout).then(()=>{throw new Error("Timeout reached")})]);e.executionDeferred.resolve(a)}else{let a=await e.funcToExecute();e.executionDeferred.resolve(a)}}catch(a){e.executionDeferred.reject(a)}}async executeNonExclusiveSlots(e){let a=e.map(async i=>{await this.waitForNonExclusiveSlot();try{if(i.timeout){let r=await Promise.race([i.funcToExecute(),rt.delayFor(i.timeout).then(()=>{throw new Error("Timeout reached")})]);i.executionDeferred.resolve(r)}else{let r=await i.funcToExecute();i.executionDeferred.resolve(r)}}catch(r){i.executionDeferred.reject(r)}finally{this.releaseNonExclusiveSlot()}});await Promise.all(a)}waitForNonExclusiveSlot(){return this.nonExclusiveCurrentCount<this.nonExclusiveMaxConcurrency?(this.nonExclusiveCurrentCount++,Promise.resolve()):new Promise(e=>{this.nonExclusivePendingQueue.push(()=>{this.nonExclusiveCurrentCount++,e()})})}releaseNonExclusiveSlot(){this.nonExclusiveCurrentCount--;let e=this.nonExclusivePendingQueue.shift();e&&e()}}});var xC,vte=v(()=>{gi();xC=class{constructor(e=16){this.hasSpace=new yt.rxjs.Subject,this.itemsAvailable=new yt.rxjs.Subject,this.data=[],this.highWaterMark=e}push(e){this.data.push(e),this.itemsAvailable.next("itemsAvailable");let a=this.checkSpaceAvailable();return a&&this.hasSpace.next("hasSpace"),a}shift(){let e=this.data.shift();return this.checkSpaceAvailable()&&this.hasSpace.next("hasSpace"),e}checkSpaceAvailable(){return this.data.length<this.highWaterMark}checkHasItems(){return this.data.length>0}waitForSpace(){return new Promise(e=>{if(this.checkSpaceAvailable())e();else{let a=this.hasSpace.subscribe(()=>{a.unsubscribe(),e()})}})}waitForItems(){return new Promise(e=>{if(this.data.length>0)e();else{let a=this.itemsAvailable.subscribe(()=>{a.unsubscribe(),e()})}})}}});var u6,wC=v(()=>{gi();u6=class t{constructor(){this.mapObject={}}isUniqueKey(e){return!this.mapObject[e]}addToMap(e,a,i){return this.isUniqueKey(e)||i&&i.force?(this.mapObject[e]=a,!0):!1}getByKey(e){return this.mapObject[e]}removeFromMap(e){let a=this.getByKey(e);return delete this.mapObject[e],a}getKeys(){let e=[];for(let a in this.mapObject)this.mapObject[a]&&e.push(a);return e}clean(){this.mapObject={}}concat(e){let a=new t;for(let i of this.getKeys())a.addToMap(i,this.getByKey(i));for(let i of e.getKeys())a.addToMap(i,e.getByKey(i),{force:!0});return a}addAllFromOther(e){for(let a of e.getKeys())this.addToMap(a,e.getByKey(a),{force:!0})}async find(e){for(let a of this.getKeys()){let i=this.getByKey(a);if(await e(i))return i}}}});var yte,t0,Ip=v(()=>{gi();wC();yte=(t="uni")=>`${t}xxxxxxxxxxx`.replace(/[xy]/g,e=>{let a=Math.random()*16|0;return(e==="x"?a:a&3|8).toString(16)}),t0=class t{constructor(){this.fastMap=new u6,this.eventSubject=new yt.rxjs.Subject}addMappedUnique(e,a){this.fastMap.addToMap(e,a)}getMappedUnique(e){return this.fastMap.getByKey(e)}removeMappedUnique(e){let a=this.getMappedUnique(e)}add(e){for(let i of this.fastMap.getKeys())if(this.fastMap.getByKey(i)===e)return i;let a=yte("key");return this.addMappedUnique(a,e),this.eventSubject.next({operation:"add",payload:e}),a}addArray(e){for(let a of e)this.add(a)}checkForObject(e){return!!this.getKeyForObject(e)}getKeyForObject(e){let a=null;for(let i of this.fastMap.getKeys())if(!a&&this.fastMap.getByKey(i)===e)a=i;else continue;return a}async find(e){return this.fastMap.find(e)}findSync(e){for(let a of this.fastMap.getKeys())if(e(this.fastMap.getByKey(a)))return this.getMappedUnique(a)}async findOneAndRemove(e){let a=await this.find(e);return a&&this.remove(a),a}findOneAndRemoveSync(e){let a=this.findSync(e);return a&&this.remove(a),a}async forEach(e){for(let a of this.fastMap.getKeys())await e(this.fastMap.getByKey(a))}getOneAndRemove(){let e=this.fastMap.getKeys();if(e.length===0)return null;{let a=e[0],i=this.fastMap.removeFromMap(a);return this.eventSubject.next({operation:"remove",payload:i}),i}}getArray(){let e=[];for(let a of this.fastMap.getKeys())e.push(this.fastMap.getByKey(a));return e}isEmpty(){return this.fastMap.getKeys().length===0}remove(e){if(this.checkForObject(e)){let a=this.getKeyForObject(e),i=this.fastMap.removeFromMap(a);return this.eventSubject.next({operation:"remove",payload:i}),i}return null}wipe(){for(let e of this.fastMap.getKeys())this.fastMap.removeFromMap(e)}concat(e){let a=new t;return a.fastMap.addAllFromOther(this.fastMap),a.fastMap.addAllFromOther(e.fastMap),a}addAllFromOther(e){this.fastMap.addAllFromOther(e.fastMap)}}});var p6,MC=v(()=>{gi();zC();p6=class{get comparisonString(){return this.comparisonFunc(this.originalInterest)}fullfillInterest(e){this.isFullfilled=!0,this.fullfillmentStore=[],this.interestDeferred.resolve(e)}constructor(e,a,i,r){this.destructionTimer=new gs.Timer(1e4),this.isFullfilled=!1,this.fullfillmentStore=[],this.interestDeferred=new He.Deferred,this.interestFullfilled=this.interestDeferred.promise,this.interestMapRef=e,this.originalInterest=a,this.comparisonFunc=i,this.options=r,this.destructionTimer.completed.then(()=>{this.destroy()}),this.options?.markLostAfterDefault&&rt.delayFor(this.options.markLostAfterDefault).then(this.markLost)}destroy(){this.interestMapRef.removeInterest(this),!this.isFullfilled&&this.options.defaultFullfillment&&this.fullfillInterest(this.options.defaultFullfillment)}markLost(){this.destructionTimer.start()}renew(){this.destructionTimer.reset()}}});var SC,zC=v(()=>{gi();Ip();MC();SC=class{constructor(e,a={}){this.interestObjectMap=new t0,this.interestObservable=new yt.ObservableIntake,this.comparisonFunc=e,this.options=a}async addInterest(e,a){let i=this.comparisonFunc(e),r,s=new p6(this,e,this.comparisonFunc,{markLostAfterDefault:this.options.markLostAfterDefault,defaultFullfillment:a}),n=!1;return await this.interestObjectMap.forEach(o=>{!n&&o.comparisonString===s.comparisonString&&(console.log("info",`interest already exists for ${s.comparisonString}`),n=!0,r=o,r.renew())}),r||(r=s,this.interestObjectMap.add(r)),this.interestObservable.push(r),r}removeInterest(e){let a=this.interestObjectMap.findOneAndRemoveSync(i=>e.comparisonString===i.comparisonString)}checkInterest(e){let a=this.comparisonFunc(e);return this.checkInterestByString(a)}checkInterestByString(e){return!!this.interestObjectMap.findSync(i=>i.comparisonString===e)}informLostInterest(e){let a=this.findInterest(e);a&&a.markLost()}findInterest(e){let a=this.comparisonFunc(e);return this.interestObjectMap.findSync(r=>r.comparisonString===a)}}});var kC,xte=v(()=>{gi();kC=class{constructor(e){this.array=[],this.arrayLimit=e}addOne(e){this.array.unshift(e),this.array.length>this.arrayLimit&&(this.array.length=this.arrayLimit)}addMany(e){for(let a of e)this.addOne(a)}setLimit(e){this.arrayLimit=e,this.array.length>this.arrayLimit&&(this.array.length=this.arrayLimit)}getAverage(){if(typeof this.array[0]=="number"){let e=0;for(let a of this.array)e=e+a;return e/this.array.length}else return null}}});var CC,wte=v(()=>{gi();Ip();CC=class{constructor(){this.referenceObjectMap=new t0}checkAndTrack(e){return this.referenceObjectMap.checkForObject(e)?!1:(this.referenceObjectMap.add(e),!0)}}});var TC,Mte=v(()=>{gi();TC=class{constructor(){this._stringArray=[],this._triggerUntilTrueFunctionArray=[]}addString(e){this._stringArray.push(e),this.notifyTrigger()}addStringArray(e){for(let a of e)this.addString(a)}removeString(e){for(let a in this._stringArray)this._stringArray[a]===e&&this._stringArray.splice(parseInt(a),1);this.notifyTrigger()}wipe(){this._stringArray=[],this.notifyTrigger()}checkString(e){return this._stringArray.indexOf(e)!==-1}checkMinimatch(e){let a=new os.SmartMatch(e),i=!1;for(let r of this._stringArray)a.match(r)&&(i=!0);return i}checkIsEmpty(){return this._stringArray.length===0}getStringArray(){let e=[];for(let a of this._stringArray)e.push(a);return e}registerUntilTrue(e,a){let i=He.defer();return this._triggerUntilTrueFunctionArray.push(()=>{let r=e(this.getStringArray());return r===!0&&(a&&a(),i.resolve()),r}),this.notifyTrigger(),i.promise}notifyTrigger(){let e=this._triggerUntilTrueFunctionArray.filter(a=>!a());this._triggerUntilTrueFunctionArray=e}}});var _C,zte=v(()=>{gi();_C=class{constructor(e){this.storageArray=[],this.options=e}checkAggregationStatus(){let e=()=>{this.aggregationTimer=new gs.Timer(this.options.aggregationIntervalInMillis),this.aggregationTimer.completed.then(()=>{let a=this.storageArray;if(a.length===0){this.aggregationTimer=null;return}this.storageArray=[],e(),this.options.functionForAggregation(a)}),this.aggregationTimer.start()};this.aggregationTimer||e()}add(e){this.storageArray.push(e),this.checkAggregationStatus()}}});var LC,Ste=v(()=>{gi();LC=class{constructor(){this.symbolTree=new Np.default}initialize(e){return this.symbolTree.initialize(e)}hasChildren(e){return this.symbolTree.hasChildren(e)}firstChild(e){return this.symbolTree.firstChild(e)}lastChild(e){return this.symbolTree.lastChild(e)}previousSibling(e){return this.symbolTree.previousSibling(e)}nextSibling(e){return this.symbolTree.nextSibling(e)}parent(e){return this.symbolTree.parent(e)}lastInclusiveDescendant(e){return this.symbolTree.lastInclusiveDescendant(e)}preceding(e,a){return this.symbolTree.preceding(e,a)}following(e,a){return this.symbolTree.following(e,a)}childrenToArray(e,a){return this.symbolTree.childrenToArray(e,a)}ancestorsToArray(e,a){return this.symbolTree.ancestorsToArray(e,a)}treeToArray(e,a){return this.symbolTree.treeToArray(e,a)}childrenIterator(e,a){return this.symbolTree.childrenIterator(e,a)}previousSiblingsIterator(e){return this.symbolTree.previousSiblingsIterator(e)}nextSiblingsIterator(e){return this.symbolTree.nextSiblingsIterator()}ancestorsIterator(e){this.symbolTree.ancestorsIterator()}treeIterator(e,a){return this.symbolTree.treeIterator(e)}index(e){return this.symbolTree.index(e)}childrenCount(e){return this.symbolTree.childrenCount(e)}compareTreePosition(e,a){return this.compareTreePosition(e,a)}remove(e){return this.symbolTree.remove(e)}insertBefore(e,a){return this.symbolTree.insertBefore(e,a)}insertAfter(e,a){return this.symbolTree.insertAfter(e,a)}prependChild(e,a){return this.symbolTree.prependChild(e,a)}appendChild(e,a){return this.symbolTree.appendChild(e,a)}toJsonWithHierachy(e){let a=this.treeIterator(e,{});for(let i of a)console.log(i)}fromJsonWithHierachy(e){}}});var s2={};Qe(s2,{AsyncExecutionStack:()=>yC,BackpressuredArray:()=>xC,FastMap:()=>u6,Interest:()=>p6,InterestMap:()=>SC,LimitedArray:()=>kC,LoopTracker:()=>CC,ObjectMap:()=>t0,Stringmap:()=>TC,TimedAggregtor:()=>_C,Tree:()=>LC,uni:()=>yte});var c6=v(()=>{bte();vte();wC();zC();MC();xte();wte();Ip();Mte();zte();Ste()});var In={};Qe(In,{areUint8ArraysEqual:()=>NTt,assertUint8Array:()=>Nn,assertUint8ArrayOrArrayBuffer:()=>Lte,base64ToString:()=>HTt,base64ToUint8Array:()=>Ete,compareUint8Arrays:()=>ITt,concatUint8Arrays:()=>PTt,getUintBE:()=>UTt,hexToUint8Array:()=>jTt,includes:()=>WTt,indexOf:()=>Pte,isUint8Array:()=>$C,stringToBase64:()=>BTt,stringToUint8Array:()=>Ate,toUint8Array:()=>ETt,uint8ArrayToBase64:()=>Dte,uint8ArrayToHex:()=>VTt,uint8ArrayToString:()=>$te});function kte(t,e,a){return t?t.constructor===e?!0:_Tt.call(t)===a:!1}function $C(t){return kte(t,Uint8Array,LTt)}function ATt(t){return kte(t,ArrayBuffer,$Tt)}function DTt(t){return $C(t)||ATt(t)}function Nn(t){if(!$C(t))throw new TypeError(`Expected \`Uint8Array\`, got \`${typeof t}\``)}function Lte(t){if(!DTt(t))throw new TypeError(`Expected \`Uint8Array\` or \`ArrayBuffer\`, got \`${typeof t}\``)}function ETt(t){if(t instanceof ArrayBuffer)return new Uint8Array(t);if(ArrayBuffer.isView(t))return new Uint8Array(t.buffer,t.byteOffset,t.byteLength);throw new TypeError(`Unsupported value, got \`${typeof t}\`.`)}function PTt(t,e){if(t.length===0)return new Uint8Array(0);e??=t.reduce((r,s)=>r+s.length,0);let a=new Uint8Array(e),i=0;for(let r of t)Nn(r),a.set(r,i),i+=r.length;return a}function NTt(t,e){if(Nn(t),Nn(e),t===e)return!0;if(t.length!==e.length)return!1;for(let a=0;a<t.length;a++)if(t[a]!==e[a])return!1;return!0}function ITt(t,e){Nn(t),Nn(e);let a=Math.min(t.length,e.length);for(let i=0;i<a;i++){let r=t[i]-e[i];if(r!==0)return Math.sign(r)}return Math.sign(t.length-e.length)}function $te(t,e="utf8"){return Lte(t),Cte[e]??=new globalThis.TextDecoder(e),Cte[e].decode(t)}function h6(t){if(typeof t!="string")throw new TypeError(`Expected \`string\`, got \`${typeof t}\``)}function Ate(t){return h6(t),FTt.encode(t)}function RTt(t){return t.replaceAll("+","-").replaceAll("/","_").replace(/=+$/,"")}function OTt(t){let e=t.replaceAll("-","+").replaceAll("_","/"),a=(4-e.length%4)%4;return e+"=".repeat(a)}function Dte(t,{urlSafe:e=!1}={}){Nn(t);let a="";for(let i=0;i<t.length;i+=Tte){let r=t.subarray(i,i+Tte);a+=globalThis.btoa(String.fromCodePoint.apply(void 0,r))}return e?RTt(a):a}function Ete(t){return h6(t),Uint8Array.from(globalThis.atob(OTt(t)),e=>e.codePointAt(0))}function BTt(t,{urlSafe:e=!1}={}){return h6(t),Dte(Ate(t),{urlSafe:e})}function HTt(t){return h6(t),$te(Ete(t))}function VTt(t){Nn(t);let e="";for(let a=0;a<t.length;a++)e+=qTt[t[a]];return e}function jTt(t){if(h6(t),t.length%2!==0)throw new Error("Invalid Hex string length.");let e=t.length/2,a=new Uint8Array(e);for(let i=0;i<e;i++){let r=_te[t[i*2]],s=_te[t[i*2+1]];if(r===void 0||s===void 0)throw new Error(`Invalid Hex character encountered at position ${i*2}`);a[i]=r<<4|s}return a}function UTt(t){let{byteLength:e}=t;if(e===6)return t.getUint16(0)*2**32+t.getUint32(2);if(e===5)return t.getUint8(0)*2**32+t.getUint32(1);if(e===4)return t.getUint32(0);if(e===3)return t.getUint8(0)*2**16+t.getUint16(1);if(e===2)return t.getUint16(0);if(e===1)return t.getUint8(0)}function Pte(t,e){let a=t.length,i=e.length;if(i===0||i>a)return-1;let r=a-i;for(let s=0;s<=r;s++){let n=!0;for(let o=0;o<i;o++)if(t[s+o]!==e[o]){n=!1;break}if(n)return s}return-1}function WTt(t,e){return Pte(t,e)!==-1}var _Tt,LTt,$Tt,Cte,FTt,Tte,qTt,_te,Nte=v(()=>{_Tt=Object.prototype.toString,LTt="[object Uint8Array]",$Tt="[object ArrayBuffer]";Cte={utf8:new globalThis.TextDecoder("utf8")};FTt=new globalThis.TextEncoder;Tte=65535;qTt=Array.from({length:256},(t,e)=>e.toString(16).padStart(2,"0"));_te={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,b:11,c:12,d:13,e:14,f:15,A:10,B:11,C:12,D:13,E:14,F:15}});var Ite=v(()=>{Nte()});var m3={};Qe(m3,{base64ToUint8Array:()=>XTt,ensurePureUint8Array:()=>JTt,isBufferLike:()=>KTt,isUint8Array:()=>QTt,uInt8ArrayExtras:()=>YTt,uInt8ArrayToBase64:()=>ZTt});function ZTt(t){return In.uint8ArrayToBase64(t)}function XTt(t){return In.base64ToUint8Array(t)}function KTt(t){return t&&typeof t.byteLength=="number"?!0:typeof Buffer<"u"&&Buffer.isBuffer?Buffer.isBuffer(t):!1}function JTt(t){let e=new Uint8Array(t.length);return e.set(t),e}var YTt,QTt,Fte=v(()=>{Ite();YTt=In;QTt=t=>In.isUint8Array(t)});var f6=v(()=>{a2()});var m6,Fp=v(()=>{f6();m6=class{constructor(e,a){this.guardFunction=e,this.options=a}async exec(e){return await this.guardFunction(e)}async getFailedHint(e){return await this.exec(e)?null:this.options.failedHint}}});var g6,AC=v(()=>{f6();g6=class extends Error{constructor(e){super(e),this.name="GuardError"}}});var b6,DC=v(()=>{f6();Fp();b6=class extends m6{constructor(e=[]){super(async a=>this.allGuardsPass(a)),this.guards=e}async execAllWithData(e,a={mode:"parallel",stopOnFail:!1}){let i=[];for(let s of this.guards){let n=s.exec(e);if(a.mode==="serial"&&await n,i.push(n),a.stopOnFail&&!await n)return await Promise.all(i)}return await Promise.all(i)}async allGuardsPass(e,a={mode:"parallel",stopOnFail:!1}){return(await this.execAllWithData(e,a)).every(r=>r)}async anyGuardsPass(e){return(await this.execAllWithData(e,{mode:"parallel",stopOnFail:!1})).some(i=>i)}getFailedHint(e){for(let a of this.guards){let i=a.getFailedHint(e);if(i)return i}}}});var v6={};Qe(v6,{Guard:()=>m6,GuardError:()=>g6,GuardSet:()=>b6,passGuardsOrReject:()=>e_t});var e_t,Rte=v(()=>{f6();Fp();AC();Fp();DC();DC();AC();e_t=async(t,e)=>{let a=new b6(e);if(!await a.allGuardsPass(t)){let r=await a.getFailedHint(t);throw new g6(`Guards failed:
|
|
5
|
+
`):"",this.name="UnsubscriptionError",this.errors=a}})});function Ni(t,e){if(t){var a=t.indexOf(e);0<=a&&t.splice(a,1)}}var $4=v(()=>{});function Fd(t){return t instanceof H1||t&&"closed"in t&&ht(t.remove)&&ht(t.add)&&ht(t.unsubscribe)}function dW(t){ht(t)?t():t.unsubscribe()}var H1,nM,hr=v(()=>{i1();g2();sM();$4();H1=(function(){function t(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}return t.prototype.unsubscribe=function(){var e,a,i,r,s;if(!this.closed){this.closed=!0;var n=this._parentage;if(n)if(this._parentage=null,Array.isArray(n))try{for(var o=B2(n),l=o.next();!l.done;l=o.next()){var d=l.value;d.remove(this)}}catch(b){e={error:b}}finally{try{l&&!l.done&&(a=o.return)&&a.call(o)}finally{if(e)throw e.error}}else n.remove(this);var u=this.initialTeardown;if(ht(u))try{u()}catch(b){s=b instanceof Mc?b.errors:[b]}var c=this._finalizers;if(c){this._finalizers=null;try{for(var f=B2(c),g=f.next();!g.done;g=f.next()){var y=g.value;try{dW(y)}catch(b){s=s??[],b instanceof Mc?s=k2(k2([],Z1(s)),Z1(b.errors)):s.push(b)}}}catch(b){i={error:b}}finally{try{g&&!g.done&&(r=f.return)&&r.call(f)}finally{if(i)throw i.error}}}if(s)throw new Mc(s)}},t.prototype.add=function(e){var a;if(e&&e!==this)if(this.closed)dW(e);else{if(e instanceof t){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=(a=this._finalizers)!==null&&a!==void 0?a:[]).push(e)}},t.prototype._hasParent=function(e){var a=this._parentage;return a===e||Array.isArray(a)&&a.includes(e)},t.prototype._addParent=function(e){var a=this._parentage;this._parentage=Array.isArray(a)?(a.push(e),a):a?[a,e]:e},t.prototype._removeParent=function(e){var a=this._parentage;a===e?this._parentage=null:Array.isArray(a)&&Ni(a,e)},t.prototype.remove=function(e){var a=this._finalizers;a&&Ni(a,e),e instanceof t&&e._removeParent(this)},t.EMPTY=(function(){var e=new t;return e.closed=!0,e})(),t})(),nM=H1.EMPTY});var ci,A4=v(()=>{ci={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}});var D4,oM=v(()=>{i1();D4={setTimeout:function(t,e){for(var a=[],i=2;i<arguments.length;i++)a[i-2]=arguments[i];var r=D4.delegate;return r?.setTimeout?r.setTimeout.apply(r,k2([t,e],Z1(a))):setTimeout.apply(void 0,k2([t,e],Z1(a)))},clearTimeout:function(t){var e=D4.delegate;return(e?.clearTimeout||clearTimeout)(t)},delegate:void 0}});function Rd(t){D4.setTimeout(function(){var e=ci.onUnhandledError;if(e)e(t);else throw t})}var lM=v(()=>{A4();oM()});function di(){}var Po=v(()=>{});function pW(t){return cM("E",void 0,t)}function hW(t){return cM("N",t,void 0)}function cM(t,e,a){return{kind:t,value:e,error:a}}var uW,fW=v(()=>{uW=(function(){return cM("C",void 0,void 0)})()});function E4(t){if(ci.useDeprecatedSynchronousErrorHandling){var e=!No;if(e&&(No={errorThrown:!1,error:null}),t(),e){var a=No,i=a.errorThrown,r=a.error;if(No=null,i)throw r}}else t()}function mW(t){ci.useDeprecatedSynchronousErrorHandling&&No&&(No.errorThrown=!0,No.error=t)}var No,Od=v(()=>{A4();No=null});function dM(t,e){return zzt.call(t,e)}function Bd(t){ci.useDeprecatedSynchronousErrorHandling?mW(t):Rd(t)}function kzt(t){throw t}function uM(t,e){var a=ci.onStoppedNotification;a&&D4.setTimeout(function(){return a(t,e)})}var Io,zzt,Szt,zc,Czt,Hd=v(()=>{i1();g2();hr();A4();lM();Po();fW();oM();Od();Io=(function(t){Ct(e,t);function e(a){var i=t.call(this)||this;return i.isStopped=!1,a?(i.destination=a,Fd(a)&&a.add(i)):i.destination=Czt,i}return e.create=function(a,i,r){return new zc(a,i,r)},e.prototype.next=function(a){this.isStopped?uM(hW(a),this):this._next(a)},e.prototype.error=function(a){this.isStopped?uM(pW(a),this):(this.isStopped=!0,this._error(a))},e.prototype.complete=function(){this.isStopped?uM(uW,this):(this.isStopped=!0,this._complete())},e.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,t.prototype.unsubscribe.call(this),this.destination=null)},e.prototype._next=function(a){this.destination.next(a)},e.prototype._error=function(a){try{this.destination.error(a)}finally{this.unsubscribe()}},e.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},e})(H1),zzt=Function.prototype.bind;Szt=(function(){function t(e){this.partialObserver=e}return t.prototype.next=function(e){var a=this.partialObserver;if(a.next)try{a.next(e)}catch(i){Bd(i)}},t.prototype.error=function(e){var a=this.partialObserver;if(a.error)try{a.error(e)}catch(i){Bd(i)}else Bd(e)},t.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(a){Bd(a)}},t})(),zc=(function(t){Ct(e,t);function e(a,i,r){var s=t.call(this)||this,n;if(ht(a)||!a)n={next:a??void 0,error:i??void 0,complete:r??void 0};else{var o;s&&ci.useDeprecatedNextContext?(o=Object.create(a),o.unsubscribe=function(){return s.unsubscribe()},n={next:a.next&&dM(a.next,o),error:a.error&&dM(a.error,o),complete:a.complete&&dM(a.complete,o)}):n=a}return s.destination=new Szt(n),s}return e})(Io);Czt={closed:!0,next:di,error:kzt,complete:di}});var Fo,Sc=v(()=>{Fo=(function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"})()});function kc(t){return t}var qd=v(()=>{});function Tzt(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return pM(t)}function pM(t){return t.length===0?kc:t.length===1?t[0]:function(a){return t.reduce(function(i,r){return r(i)},a)}}var hM=v(()=>{qd()});function gW(t){var e;return(e=t??ci.Promise)!==null&&e!==void 0?e:Promise}function _zt(t){return t&&ht(t.next)&&ht(t.error)&&ht(t.complete)}function Lzt(t){return t&&t instanceof Io||_zt(t)&&Fd(t)}var Mt,La=v(()=>{Hd();hr();Sc();hM();A4();g2();Od();Mt=(function(){function t(e){e&&(this._subscribe=e)}return t.prototype.lift=function(e){var a=new t;return a.source=this,a.operator=e,a},t.prototype.subscribe=function(e,a,i){var r=this,s=Lzt(e)?e:new zc(e,a,i);return E4(function(){var n=r,o=n.operator,l=n.source;s.add(o?o.call(s,l):l?r._subscribe(s):r._trySubscribe(s))}),s},t.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(a){e.error(a)}},t.prototype.forEach=function(e,a){var i=this;return a=gW(a),new a(function(r,s){var n=new zc({next:function(o){try{e(o)}catch(l){s(l),n.unsubscribe()}},error:s,complete:r});i.subscribe(n)})},t.prototype._subscribe=function(e){var a;return(a=this.source)===null||a===void 0?void 0:a.subscribe(e)},t.prototype[Fo]=function(){return this},t.prototype.pipe=function(){for(var e=[],a=0;a<arguments.length;a++)e[a]=arguments[a];return pM(e)(this)},t.prototype.toPromise=function(e){var a=this;return e=gW(e),new e(function(i,r){var s;a.subscribe(function(n){return s=n},function(n){return r(n)},function(){return i(s)})})},t.create=function(e){return new t(e)},t})()});function fM(t){return ht(t?.lift)}function Qt(t){return function(e){if(fM(e))return e.lift(function(a){try{return t(a,this)}catch(i){this.error(i)}});throw new TypeError("Unable to lift unknown Observable type")}}var C2=v(()=>{g2()});function jt(t,e,a,i,r){return new bW(t,e,a,i,r)}var bW,da=v(()=>{i1();Hd();bW=(function(t){Ct(e,t);function e(a,i,r,s,n,o){var l=t.call(this,a)||this;return l.onFinalize=n,l.shouldUnsubscribe=o,l._next=i?function(d){try{i(d)}catch(u){a.error(u)}}:t.prototype._next,l._error=s?function(d){try{s(d)}catch(u){a.error(u)}finally{this.unsubscribe()}}:t.prototype._error,l._complete=r?function(){try{r()}catch(d){a.error(d)}finally{this.unsubscribe()}}:t.prototype._complete,l}return e.prototype.unsubscribe=function(){var a;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var i=this.closed;t.prototype.unsubscribe.call(this),!i&&((a=this.onFinalize)===null||a===void 0||a.call(this))}},e})(Io)});function Vd(){return Qt(function(t,e){var a=null;t._refCount++;var i=jt(e,void 0,void 0,void 0,function(){if(!t||t._refCount<=0||0<--t._refCount){a=null;return}var r=t._connection,s=a;a=null,r&&(!s||r===s)&&r.unsubscribe(),e.unsubscribe()});t.subscribe(i),i.closed||(a=t.connect())})}var jd=v(()=>{C2();da()});var vW,yW=v(()=>{i1();La();hr();jd();da();C2();vW=(function(t){Ct(e,t);function e(a,i){var r=t.call(this)||this;return r.source=a,r.subjectFactory=i,r._subject=null,r._refCount=0,r._connection=null,fM(a)&&(r.lift=a.lift),r}return e.prototype._subscribe=function(a){return this.getSubject().subscribe(a)},e.prototype.getSubject=function(){var a=this._subject;return(!a||a.isStopped)&&(this._subject=this.subjectFactory()),this._subject},e.prototype._teardown=function(){this._refCount=0;var a=this._connection;this._subject=this._connection=null,a?.unsubscribe()},e.prototype.connect=function(){var a=this,i=this._connection;if(!i){i=this._connection=new H1;var r=this.getSubject();i.add(this.source.subscribe(jt(r,void 0,function(){a._teardown(),r.complete()},function(s){a._teardown(),r.error(s)},function(){return a._teardown()}))),i.closed&&(this._connection=null,i=H1.EMPTY)}return i},e.prototype.refCount=function(){return Vd()(this)},e})(Mt)});var mM,xW=v(()=>{mM={now:function(){return(mM.delegate||performance).now()},delegate:void 0}});var ns,gM=v(()=>{i1();hr();ns={schedule:function(t){var e=requestAnimationFrame,a=cancelAnimationFrame,i=ns.delegate;i&&(e=i.requestAnimationFrame,a=i.cancelAnimationFrame);var r=e(function(s){a=void 0,t(s)});return new H1(function(){return a?.(r)})},requestAnimationFrame:function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var a=ns.delegate;return(a?.requestAnimationFrame||requestAnimationFrame).apply(void 0,k2([],Z1(t)))},cancelAnimationFrame:function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var a=ns.delegate;return(a?.cancelAnimationFrame||cancelAnimationFrame).apply(void 0,k2([],Z1(t)))},delegate:void 0}});function $zt(t){return t?wW(t):Azt}function wW(t){return new Mt(function(e){var a=t||mM,i=a.now(),r=0,s=function(){e.closed||(r=ns.requestAnimationFrame(function(n){r=0;var o=a.now();e.next({timestamp:t?o:n,elapsed:o-i}),s()}))};return s(),function(){r&&ns.cancelAnimationFrame(r)}})}var Azt,MW=v(()=>{La();xW();gM();Azt=wW()});var bM,vM=v(()=>{mn();bM=_a(function(t){return function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}})});var $a,yM,Cc=v(()=>{i1();La();hr();vM();$4();Od();$a=(function(t){Ct(e,t);function e(){var a=t.call(this)||this;return a.closed=!1,a.currentObservers=null,a.observers=[],a.isStopped=!1,a.hasError=!1,a.thrownError=null,a}return e.prototype.lift=function(a){var i=new yM(this,this);return i.operator=a,i},e.prototype._throwIfClosed=function(){if(this.closed)throw new bM},e.prototype.next=function(a){var i=this;E4(function(){var r,s;if(i._throwIfClosed(),!i.isStopped){i.currentObservers||(i.currentObservers=Array.from(i.observers));try{for(var n=B2(i.currentObservers),o=n.next();!o.done;o=n.next()){var l=o.value;l.next(a)}}catch(d){r={error:d}}finally{try{o&&!o.done&&(s=n.return)&&s.call(n)}finally{if(r)throw r.error}}}})},e.prototype.error=function(a){var i=this;E4(function(){if(i._throwIfClosed(),!i.isStopped){i.hasError=i.isStopped=!0,i.thrownError=a;for(var r=i.observers;r.length;)r.shift().error(a)}})},e.prototype.complete=function(){var a=this;E4(function(){if(a._throwIfClosed(),!a.isStopped){a.isStopped=!0;for(var i=a.observers;i.length;)i.shift().complete()}})},e.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(e.prototype,"observed",{get:function(){var a;return((a=this.observers)===null||a===void 0?void 0:a.length)>0},enumerable:!1,configurable:!0}),e.prototype._trySubscribe=function(a){return this._throwIfClosed(),t.prototype._trySubscribe.call(this,a)},e.prototype._subscribe=function(a){return this._throwIfClosed(),this._checkFinalizedStatuses(a),this._innerSubscribe(a)},e.prototype._innerSubscribe=function(a){var i=this,r=this,s=r.hasError,n=r.isStopped,o=r.observers;return s||n?nM:(this.currentObservers=null,o.push(a),new H1(function(){i.currentObservers=null,Ni(o,a)}))},e.prototype._checkFinalizedStatuses=function(a){var i=this,r=i.hasError,s=i.thrownError,n=i.isStopped;r?a.error(s):n&&a.complete()},e.prototype.asObservable=function(){var a=new Mt;return a.source=this,a},e.create=function(a,i){return new yM(a,i)},e})(Mt),yM=(function(t){Ct(e,t);function e(a,i){var r=t.call(this)||this;return r.destination=a,r.source=i,r}return e.prototype.next=function(a){var i,r;(r=(i=this.destination)===null||i===void 0?void 0:i.next)===null||r===void 0||r.call(i,a)},e.prototype.error=function(a){var i,r;(r=(i=this.destination)===null||i===void 0?void 0:i.error)===null||r===void 0||r.call(i,a)},e.prototype.complete=function(){var a,i;(i=(a=this.destination)===null||a===void 0?void 0:a.complete)===null||i===void 0||i.call(a)},e.prototype._subscribe=function(a){var i,r;return(r=(i=this.source)===null||i===void 0?void 0:i.subscribe(a))!==null&&r!==void 0?r:nM},e})($a)});var zW,SW=v(()=>{i1();Cc();zW=(function(t){Ct(e,t);function e(a){var i=t.call(this)||this;return i._value=a,i}return Object.defineProperty(e.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),e.prototype._subscribe=function(a){var i=t.prototype._subscribe.call(this,a);return!i.closed&&a.next(this._value),i},e.prototype.getValue=function(){var a=this,i=a.hasError,r=a.thrownError,s=a._value;if(i)throw r;return this._throwIfClosed(),s},e.prototype.next=function(a){t.prototype.next.call(this,this._value=a)},e})($a)});var Tc,xM=v(()=>{Tc={now:function(){return(Tc.delegate||Date).now()},delegate:void 0}});var Ud,kW=v(()=>{i1();Cc();xM();Ud=(function(t){Ct(e,t);function e(a,i,r){a===void 0&&(a=1/0),i===void 0&&(i=1/0),r===void 0&&(r=Tc);var s=t.call(this)||this;return s._bufferSize=a,s._windowTime=i,s._timestampProvider=r,s._buffer=[],s._infiniteTimeWindow=!0,s._infiniteTimeWindow=i===1/0,s._bufferSize=Math.max(1,a),s._windowTime=Math.max(1,i),s}return e.prototype.next=function(a){var i=this,r=i.isStopped,s=i._buffer,n=i._infiniteTimeWindow,o=i._timestampProvider,l=i._windowTime;r||(s.push(a),!n&&s.push(o.now()+l)),this._trimBuffer(),t.prototype.next.call(this,a)},e.prototype._subscribe=function(a){this._throwIfClosed(),this._trimBuffer();for(var i=this._innerSubscribe(a),r=this,s=r._infiniteTimeWindow,n=r._buffer,o=n.slice(),l=0;l<o.length&&!a.closed;l+=s?1:2)a.next(o[l]);return this._checkFinalizedStatuses(a),i},e.prototype._trimBuffer=function(){var a=this,i=a._bufferSize,r=a._timestampProvider,s=a._buffer,n=a._infiniteTimeWindow,o=(n?1:2)*i;if(i<1/0&&o<s.length&&s.splice(0,s.length-o),!n){for(var l=r.now(),d=0,u=1;u<s.length&&s[u]<=l;u+=2)d=u;d&&s.splice(0,d+1)}},e})($a)});var CW,TW=v(()=>{i1();Cc();CW=(function(t){Ct(e,t);function e(){var a=t!==null&&t.apply(this,arguments)||this;return a._value=null,a._hasValue=!1,a._isComplete=!1,a}return e.prototype._checkFinalizedStatuses=function(a){var i=this,r=i.hasError,s=i._hasValue,n=i._value,o=i.thrownError,l=i.isStopped,d=i._isComplete;r?a.error(o):(l||d)&&(s&&a.next(n),a.complete())},e.prototype.next=function(a){this.isStopped||(this._value=a,this._hasValue=!0)},e.prototype.complete=function(){var a=this,i=a._hasValue,r=a._value,s=a._isComplete;s||(this._isComplete=!0,i&&t.prototype.next.call(this,r),t.prototype.complete.call(this))},e})($a)});var wM,_W=v(()=>{i1();hr();wM=(function(t){Ct(e,t);function e(a,i){return t.call(this)||this}return e.prototype.schedule=function(a,i){return i===void 0&&(i=0),this},e})(H1)});var _c,LW=v(()=>{i1();_c={setInterval:function(t,e){for(var a=[],i=2;i<arguments.length;i++)a[i-2]=arguments[i];var r=_c.delegate;return r?.setInterval?r.setInterval.apply(r,k2([t,e],Z1(a))):setInterval.apply(void 0,k2([t,e],Z1(a)))},clearInterval:function(t){var e=_c.delegate;return(e?.clearInterval||clearInterval)(t)},delegate:void 0}});var Ii,P4=v(()=>{i1();_W();LW();$4();Ii=(function(t){Ct(e,t);function e(a,i){var r=t.call(this,a,i)||this;return r.scheduler=a,r.work=i,r.pending=!1,r}return e.prototype.schedule=function(a,i){var r;if(i===void 0&&(i=0),this.closed)return this;this.state=a;var s=this.id,n=this.scheduler;return s!=null&&(this.id=this.recycleAsyncId(n,s,i)),this.pending=!0,this.delay=i,this.id=(r=this.id)!==null&&r!==void 0?r:this.requestAsyncId(n,this.id,i),this},e.prototype.requestAsyncId=function(a,i,r){return r===void 0&&(r=0),_c.setInterval(a.flush.bind(a,this),r)},e.prototype.recycleAsyncId=function(a,i,r){if(r===void 0&&(r=0),r!=null&&this.delay===r&&this.pending===!1)return i;i!=null&&_c.clearInterval(i)},e.prototype.execute=function(a,i){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var r=this._execute(a,i);if(r)return r;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},e.prototype._execute=function(a,i){var r=!1,s;try{this.work(a)}catch(n){r=!0,s=n||new Error("Scheduled action threw falsy error")}if(r)return this.unsubscribe(),s},e.prototype.unsubscribe=function(){if(!this.closed){var a=this,i=a.id,r=a.scheduler,s=r.actions;this.work=this.state=this.scheduler=null,this.pending=!1,Ni(s,this),i!=null&&(this.id=this.recycleAsyncId(r,i,null)),this.delay=null,t.prototype.unsubscribe.call(this)}},e})(wM)});function $W(t){return t in Wd?(delete Wd[t],!0):!1}var Dzt,MM,Wd,zM,PYt,AW=v(()=>{Dzt=1,Wd={};zM={setImmediate:function(t){var e=Dzt++;return Wd[e]=!0,MM||(MM=Promise.resolve()),MM.then(function(){return $W(e)&&t()}),e},clearImmediate:function(t){$W(t)}},PYt={pending:function(){return Object.keys(Wd).length}}});var Ezt,Pzt,Lc,DW=v(()=>{i1();AW();Ezt=zM.setImmediate,Pzt=zM.clearImmediate,Lc={setImmediate:function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var a=Lc.delegate;return(a?.setImmediate||Ezt).apply(void 0,k2([],Z1(t)))},clearImmediate:function(t){var e=Lc.delegate;return(e?.clearImmediate||Pzt)(t)},delegate:void 0}});var SM,EW=v(()=>{i1();P4();DW();SM=(function(t){Ct(e,t);function e(a,i){var r=t.call(this,a,i)||this;return r.scheduler=a,r.work=i,r}return e.prototype.requestAsyncId=function(a,i,r){return r===void 0&&(r=0),r!==null&&r>0?t.prototype.requestAsyncId.call(this,a,i,r):(a.actions.push(this),a._scheduled||(a._scheduled=Lc.setImmediate(a.flush.bind(a,void 0))))},e.prototype.recycleAsyncId=function(a,i,r){var s;if(r===void 0&&(r=0),r!=null?r>0:this.delay>0)return t.prototype.recycleAsyncId.call(this,a,i,r);var n=a.actions;i!=null&&((s=n[n.length-1])===null||s===void 0?void 0:s.id)!==i&&(Lc.clearImmediate(i),a._scheduled===i&&(a._scheduled=void 0))},e})(Ii)});var $c,kM=v(()=>{xM();$c=(function(){function t(e,a){a===void 0&&(a=t.now),this.schedulerActionCtor=e,this.now=a}return t.prototype.schedule=function(e,a,i){return a===void 0&&(a=0),new this.schedulerActionCtor(this,e).schedule(i,a)},t.now=Tc.now,t})()});var Fi,N4=v(()=>{i1();kM();Fi=(function(t){Ct(e,t);function e(a,i){i===void 0&&(i=$c.now);var r=t.call(this,a,i)||this;return r.actions=[],r._active=!1,r}return e.prototype.flush=function(a){var i=this.actions;if(this._active){i.push(a);return}var r;this._active=!0;do if(r=a.execute(a.state,a.delay))break;while(a=i.shift());if(this._active=!1,r){for(;a=i.shift();)a.unsubscribe();throw r}},e})($c)});var CM,PW=v(()=>{i1();N4();CM=(function(t){Ct(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.flush=function(a){this._active=!0;var i=this._scheduled;this._scheduled=void 0;var r=this.actions,s;a=a||r.shift();do if(s=a.execute(a.state,a.delay))break;while((a=r[0])&&a.id===i&&r.shift());if(this._active=!1,s){for(;(a=r[0])&&a.id===i&&r.shift();)a.unsubscribe();throw s}},e})(Fi)});var NW,Nzt,IW=v(()=>{EW();PW();NW=new CM(SM),Nzt=NW});var fr,TM,Ro=v(()=>{P4();N4();fr=new Fi(Ii),TM=fr});var _M,FW=v(()=>{i1();P4();_M=(function(t){Ct(e,t);function e(a,i){var r=t.call(this,a,i)||this;return r.scheduler=a,r.work=i,r}return e.prototype.schedule=function(a,i){return i===void 0&&(i=0),i>0?t.prototype.schedule.call(this,a,i):(this.delay=i,this.state=a,this.scheduler.flush(this),this)},e.prototype.execute=function(a,i){return i>0||this.closed?t.prototype.execute.call(this,a,i):this._execute(a,i)},e.prototype.requestAsyncId=function(a,i,r){return r===void 0&&(r=0),r!=null&&r>0||r==null&&this.delay>0?t.prototype.requestAsyncId.call(this,a,i,r):(a.flush(this),0)},e})(Ii)});var LM,RW=v(()=>{i1();N4();LM=(function(t){Ct(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e})(Fi)});var OW,Izt,BW=v(()=>{FW();RW();OW=new LM(_M),Izt=OW});var $M,HW=v(()=>{i1();P4();gM();$M=(function(t){Ct(e,t);function e(a,i){var r=t.call(this,a,i)||this;return r.scheduler=a,r.work=i,r}return e.prototype.requestAsyncId=function(a,i,r){return r===void 0&&(r=0),r!==null&&r>0?t.prototype.requestAsyncId.call(this,a,i,r):(a.actions.push(this),a._scheduled||(a._scheduled=ns.requestAnimationFrame(function(){return a.flush(void 0)})))},e.prototype.recycleAsyncId=function(a,i,r){var s;if(r===void 0&&(r=0),r!=null?r>0:this.delay>0)return t.prototype.recycleAsyncId.call(this,a,i,r);var n=a.actions;i!=null&&i===a._scheduled&&((s=n[n.length-1])===null||s===void 0?void 0:s.id)!==i&&(ns.cancelAnimationFrame(i),a._scheduled=void 0)},e})(Ii)});var AM,qW=v(()=>{i1();N4();AM=(function(t){Ct(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.flush=function(a){this._active=!0;var i;a?i=a.id:(i=this._scheduled,this._scheduled=void 0);var r=this.actions,s;a=a||r.shift();do if(s=a.execute(a.state,a.delay))break;while((a=r[0])&&a.id===i&&r.shift());if(this._active=!1,s){for(;(a=r[0])&&a.id===i&&r.shift();)a.unsubscribe();throw s}},e})(Fi)});var VW,Fzt,jW=v(()=>{HW();qW();VW=new AM($M),Fzt=VW});var UW,DM,WW=v(()=>{i1();P4();hr();N4();UW=(function(t){Ct(e,t);function e(a,i){a===void 0&&(a=DM),i===void 0&&(i=1/0);var r=t.call(this,a,function(){return r.frame})||this;return r.maxFrames=i,r.frame=0,r.index=-1,r}return e.prototype.flush=function(){for(var a=this,i=a.actions,r=a.maxFrames,s,n;(n=i[0])&&n.delay<=r&&(i.shift(),this.frame=n.delay,!(s=n.execute(n.state,n.delay))););if(s){for(;n=i.shift();)n.unsubscribe();throw s}},e.frameTimeFactor=10,e})(Fi),DM=(function(t){Ct(e,t);function e(a,i,r){r===void 0&&(r=a.index+=1);var s=t.call(this,a,i)||this;return s.scheduler=a,s.work=i,s.index=r,s.active=!0,s.index=a.index=r,s}return e.prototype.schedule=function(a,i){if(i===void 0&&(i=0),Number.isFinite(i)){if(!this.id)return t.prototype.schedule.call(this,a,i);this.active=!1;var r=new e(this.scheduler,this.work);return this.add(r),r.schedule(a,i)}else return H1.EMPTY},e.prototype.requestAsyncId=function(a,i,r){r===void 0&&(r=0),this.delay=a.frame+r;var s=a.actions;return s.push(this),s.sort(e.sortActions),1},e.prototype.recycleAsyncId=function(a,i,r){r===void 0&&(r=0)},e.prototype._execute=function(a,i){if(this.active===!0)return t.prototype._execute.call(this,a,i)},e.sortActions=function(a,i){return a.delay===i.delay?a.index===i.index?0:a.index>i.index?1:-1:a.delay>i.delay?1:-1},e})(Ii)});function Rzt(t){return t?Ozt(t):Gd}function Ozt(t){return new Mt(function(e){return t.schedule(function(){return e.complete()})})}var Gd,Yd=v(()=>{La();Gd=new Mt(function(t){return t.complete()})});function Zd(t){return t&&ht(t.schedule)}var EM=v(()=>{g2()});function PM(t){return t[t.length-1]}function EZt(t){return ht(PM(t))?t.pop():void 0}function gn(t){return Zd(PM(t))?t.pop():void 0}function PZt(t,e){return typeof PM(t)=="number"?t.pop():e}var Ac=v(()=>{g2();EM()});var I4,Xd=v(()=>{I4=(function(t){return t&&typeof t.length=="number"&&typeof t!="function"})});function Qd(t){return ht(t?.then)}var NM=v(()=>{g2()});function Kd(t){return ht(t[Fo])}var IM=v(()=>{Sc();g2()});function Jd(t){return Symbol.asyncIterator&&ht(t?.[Symbol.asyncIterator])}var FM=v(()=>{g2()});function e7(t){return new TypeError("You provided "+(t!==null&&typeof t=="object"?"an invalid object":"'"+t+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}var RM=v(()=>{});function Bzt(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var t7,OM=v(()=>{t7=Bzt()});function a7(t){return ht(t?.[t7])}var BM=v(()=>{OM();g2()});function i7(t){return iM(this,arguments,function(){var a,i,r,s;return wc(this,function(n){switch(n.label){case 0:a=t.getReader(),n.label=1;case 1:n.trys.push([1,,9,10]),n.label=2;case 2:return[4,ss(a.read())];case 3:return i=n.sent(),r=i.value,s=i.done,s?[4,ss(void 0)]:[3,5];case 4:return[2,n.sent()];case 5:return[4,ss(r)];case 6:return[4,n.sent()];case 7:return n.sent(),[3,2];case 8:return[3,10];case 9:return a.releaseLock(),[7];case 10:return[2]}})})}function r7(t){return ht(t?.getReader)}var s7=v(()=>{i1();g2()});function D1(t){if(t instanceof Mt)return t;if(t!=null){if(Kd(t))return Hzt(t);if(I4(t))return qzt(t);if(Qd(t))return Vzt(t);if(Jd(t))return GW(t);if(a7(t))return jzt(t);if(r7(t))return Uzt(t)}throw e7(t)}function Hzt(t){return new Mt(function(e){var a=t[Fo]();if(ht(a.subscribe))return a.subscribe(e);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function qzt(t){return new Mt(function(e){for(var a=0;a<t.length&&!e.closed;a++)e.next(t[a]);e.complete()})}function Vzt(t){return new Mt(function(e){t.then(function(a){e.closed||(e.next(a),e.complete())},function(a){return e.error(a)}).then(null,Rd)})}function jzt(t){return new Mt(function(e){var a,i;try{for(var r=B2(t),s=r.next();!s.done;s=r.next()){var n=s.value;if(e.next(n),e.closed)return}}catch(o){a={error:o}}finally{try{s&&!s.done&&(i=r.return)&&i.call(r)}finally{if(a)throw a.error}}e.complete()})}function GW(t){return new Mt(function(e){Wzt(t,e).catch(function(a){return e.error(a)})})}function Uzt(t){return GW(i7(t))}function Wzt(t,e){var a,i,r,s;return aM(this,void 0,void 0,function(){var n,o;return wc(this,function(l){switch(l.label){case 0:l.trys.push([0,5,6,11]),a=rM(t),l.label=1;case 1:return[4,a.next()];case 2:if(i=l.sent(),!!i.done)return[3,4];if(n=i.value,e.next(n),e.closed)return[2];l.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return o=l.sent(),r={error:o},[3,11];case 6:return l.trys.push([6,,9,10]),i&&!i.done&&(s=a.return)?[4,s.call(a)]:[3,8];case 7:l.sent(),l.label=8;case 8:return[3,10];case 9:if(r)throw r.error;return[7];case 10:return[7];case 11:return e.complete(),[2]}})})}var ui=v(()=>{i1();Xd();NM();La();IM();FM();RM();BM();s7();g2();lM();Sc()});function T2(t,e,a,i,r){i===void 0&&(i=0),r===void 0&&(r=!1);var s=e.schedule(function(){a(),r?t.add(this.schedule(null,i)):this.unsubscribe()},i);if(t.add(s),!r)return s}var Oo=v(()=>{});function F4(t,e){return e===void 0&&(e=0),Qt(function(a,i){a.subscribe(jt(i,function(r){return T2(i,t,function(){return i.next(r)},e)},function(){return T2(i,t,function(){return i.complete()},e)},function(r){return T2(i,t,function(){return i.error(r)},e)}))})}var Dc=v(()=>{Oo();C2();da()});function R4(t,e){return e===void 0&&(e=0),Qt(function(a,i){i.add(t.schedule(function(){return a.subscribe(i)},e))})}var Ec=v(()=>{C2()});function YW(t,e){return D1(t).pipe(R4(e),F4(e))}var ZW=v(()=>{ui();Dc();Ec()});function XW(t,e){return D1(t).pipe(R4(e),F4(e))}var QW=v(()=>{ui();Dc();Ec()});function KW(t,e){return new Mt(function(a){var i=0;return e.schedule(function(){i===t.length?a.complete():(a.next(t[i++]),a.closed||this.schedule())})})}var JW=v(()=>{La()});function eG(t,e){return new Mt(function(a){var i;return T2(a,e,function(){i=t[t7](),T2(a,e,function(){var r,s,n;try{r=i.next(),s=r.value,n=r.done}catch(o){a.error(o);return}n?a.complete():a.next(s)},0,!0)}),function(){return ht(i?.return)&&i.return()}})}var tG=v(()=>{La();OM();g2();Oo()});function n7(t,e){if(!t)throw new Error("Iterable cannot be null");return new Mt(function(a){T2(a,e,function(){var i=t[Symbol.asyncIterator]();T2(a,e,function(){i.next().then(function(r){r.done?a.complete():a.next(r.value)})},0,!0)})})}var HM=v(()=>{La();Oo()});function aG(t,e){return n7(i7(t),e)}var iG=v(()=>{HM();s7()});function qM(t,e){if(t!=null){if(Kd(t))return YW(t,e);if(I4(t))return KW(t,e);if(Qd(t))return XW(t,e);if(Jd(t))return n7(t,e);if(a7(t))return eG(t,e);if(r7(t))return aG(t,e)}throw e7(t)}var VM=v(()=>{ZW();QW();JW();tG();HM();IM();NM();Xd();BM();FM();RM();s7();iG()});function Bo(t,e){return e?qM(t,e):D1(t)}var o7=v(()=>{VM();ui()});function Pc(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var a=gn(t);return Bo(t,a)}var jM=v(()=>{Ac();o7()});function UM(t,e){var a=ht(t)?t:function(){return t},i=function(r){return r.error(a())};return new Mt(e?function(r){return e.schedule(i,0,r)}:i)}var WM=v(()=>{La();g2()});function Gzt(t,e){var a,i,r,s=t,n=s.kind,o=s.value,l=s.error;if(typeof n!="string")throw new TypeError('Invalid notification, missing "kind"');n==="N"?(a=e.next)===null||a===void 0||a.call(e,o):n==="E"?(i=e.error)===null||i===void 0||i.call(e,l):(r=e.complete)===null||r===void 0||r.call(e)}var GM,rG,sG=v(()=>{Yd();jM();WM();g2();(function(t){t.NEXT="N",t.ERROR="E",t.COMPLETE="C"})(GM||(GM={}));rG=(function(){function t(e,a,i){this.kind=e,this.value=a,this.error=i,this.hasValue=e==="N"}return t.prototype.observe=function(e){return Gzt(this,e)},t.prototype.do=function(e,a,i){var r=this,s=r.kind,n=r.value,o=r.error;return s==="N"?e?.(n):s==="E"?a?.(o):i?.()},t.prototype.accept=function(e,a,i){var r;return ht((r=e)===null||r===void 0?void 0:r.next)?this.observe(e):this.do(e,a,i)},t.prototype.toObservable=function(){var e=this,a=e.kind,i=e.value,r=e.error,s=a==="N"?Pc(i):a==="E"?UM(function(){return r}):a==="C"?Gd:0;if(!s)throw new TypeError("Unexpected notification kind "+a);return s},t.createNext=function(e){return new t("N",e)},t.createError=function(e){return new t("E",void 0,e)},t.createComplete=function(){return t.completeNotification},t.completeNotification=new t("C"),t})()});var nG=v(()=>{});var Yzt,oG=v(()=>{mn();Yzt=_a(function(t){return function(){t(this),this.name="EmptyError",this.message="no elements in sequence"}})});var lG=v(()=>{});var cG=v(()=>{});var Zzt,dG=v(()=>{mn();Zzt=_a(function(t){return function(){t(this),this.name="ArgumentOutOfRangeError",this.message="argument out of range"}})});var Xzt,uG=v(()=>{mn();Xzt=_a(function(t){return function(a){t(this),this.name="NotFoundError",this.message=a}})});var Qzt,pG=v(()=>{mn();Qzt=_a(function(t){return function(a){t(this),this.name="SequenceError",this.message=a}})});function l7(t){return t instanceof Date&&!isNaN(t)}var YM=v(()=>{});function fG(t,e){var a=l7(t)?{first:t}:typeof t=="number"?{each:t}:t,i=a.first,r=a.each,s=a.with,n=s===void 0?Kzt:s,o=a.scheduler,l=o===void 0?e??fr:o,d=a.meta,u=d===void 0?null:d;if(i==null&&r==null)throw new TypeError("No timeout provided.");return Qt(function(c,f){var g,y,b=null,m=0,x=function(M){y=T2(f,l,function(){try{g.unsubscribe(),D1(n({meta:u,lastValue:b,seen:m})).subscribe(f)}catch(k){f.error(k)}},M)};g=c.subscribe(jt(f,function(M){y?.unsubscribe(),m++,f.next(b=M),r>0&&x(r)},void 0,void 0,function(){y?.closed||y?.unsubscribe(),b=null})),!m&&x(i!=null?typeof i=="number"?i:+i-l.now():r)})}function Kzt(t){throw new hG(t)}var hG,c7=v(()=>{Ro();YM();C2();ui();mn();da();Oo();hG=_a(function(t){return function(a){a===void 0&&(a=null),t(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=a}})});function bn(t,e){return Qt(function(a,i){var r=0;a.subscribe(jt(i,function(s){i.next(t.call(e,s,r++))}))})}var Nc=v(()=>{C2();da()});function eSt(t,e){return Jzt(e)?t.apply(void 0,k2([],Z1(e))):t(e)}function mG(t){return bn(function(e){return eSt(t,e)})}var Jzt,gG=v(()=>{i1();Nc();Jzt=Array.isArray});var bG=v(()=>{});var vG=v(()=>{});var yG=v(()=>{});function xG(t,e,a,i,r,s,n,o){var l=[],d=0,u=0,c=!1,f=function(){c&&!l.length&&!d&&e.complete()},g=function(b){return d<i?y(b):l.push(b)},y=function(b){s&&e.next(b),d++;var m=!1;D1(a(b,u++)).subscribe(jt(e,function(x){r?.(x),s?g(x):e.next(x)},function(){m=!0},void 0,function(){if(m)try{d--;for(var x=function(){var M=l.shift();n?T2(e,n,function(){return y(M)}):y(M)};l.length&&d<i;)x();f()}catch(M){e.error(M)}}))};return t.subscribe(jt(e,g,function(){c=!0,f()})),function(){o?.()}}var wG=v(()=>{ui();Oo();da()});function Ho(t,e,a){return a===void 0&&(a=1/0),ht(e)?Ho(function(i,r){return bn(function(s,n){return e(i,s,r,n)})(D1(t(i,r)))},a):(typeof e=="number"&&(a=e),Qt(function(i,r){return xG(i,r,t,a)}))}var Ic=v(()=>{Nc();ui();C2();wG();g2()});function d7(t){return t===void 0&&(t=1/0),Ho(kc,t)}var u7=v(()=>{Ic();qd()});function p7(){return d7(1)}var h7=v(()=>{u7()});function f7(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return p7()(Bo(t,gn(t)))}var ZM=v(()=>{h7();Ac();o7()});var MG=v(()=>{});var zG=v(()=>{});var SG=v(()=>{});function qo(t,e,a,i){if(ht(a)&&(i=a,a=void 0),i)return qo(t,e,a).pipe(mG(i));var r=Z1(nSt(t)?aSt.map(function(o){return function(l){return t[o](e,l,a)}}):rSt(t)?tSt.map(kG(t,e)):sSt(t)?iSt.map(kG(t,e)):[],2),s=r[0],n=r[1];if(!s&&I4(t))return Ho(function(o){return qo(o,e,a)})(D1(t));if(!s)throw new TypeError("Invalid event target");return new Mt(function(o){var l=function(){for(var d=[],u=0;u<arguments.length;u++)d[u]=arguments[u];return o.next(1<d.length?d:d[0])};return s(l),function(){return n(l)}})}function kG(t,e){return function(a){return function(i){return t[a](e,i)}}}function rSt(t){return ht(t.addListener)&&ht(t.removeListener)}function sSt(t){return ht(t.on)&&ht(t.off)}function nSt(t){return ht(t.addEventListener)&&ht(t.removeEventListener)}var tSt,aSt,iSt,CG=v(()=>{i1();ui();La();Ic();Xd();g2();gG();tSt=["addListener","removeListener"],aSt=["addEventListener","removeEventListener"],iSt=["on","off"]});var TG=v(()=>{});var _G=v(()=>{});var LG=v(()=>{});function XM(t,e,a){t===void 0&&(t=0),a===void 0&&(a=TM);var i=-1;return e!=null&&(Zd(e)?a=e:i=e),new Mt(function(r){var s=l7(t)?+t-a.now():t;s<0&&(s=0);var n=0;return a.schedule(function(){r.closed||(r.next(n++),0<=i?this.schedule(void 0,i):r.complete())},s)})}var QM=v(()=>{La();Ro();EM();YM()});var $G=v(()=>{});var AG=v(()=>{});function oSt(){return DG}var DG,KM=v(()=>{La();Po();DG=new Mt(di)});var EG=v(()=>{});var PG=v(()=>{});function m7(t,e){return Qt(function(a,i){var r=0;a.subscribe(jt(i,function(s){return t.call(e,s,r++)&&i.next(s)}))})}var JM=v(()=>{C2();da()});var NG=v(()=>{});var IG=v(()=>{});var FG=v(()=>{});var RG=v(()=>{});var OG=v(()=>{});var BG=v(()=>{});var ez=v(()=>{});var tz=v(()=>{});function g7(t){return Qt(function(e,a){var i=[];return e.subscribe(jt(a,function(r){return i.push(r)},function(){a.next(i),a.complete()})),D1(t).subscribe(jt(a,function(){var r=i;i=[],a.next(r)},di)),function(){i=null}})}var az=v(()=>{C2();Po();da();ui()});function b7(t,e){return e===void 0&&(e=null),e=e??t,Qt(function(a,i){var r=[],s=0;a.subscribe(jt(i,function(n){var o,l,d,u,c=null;s++%e===0&&r.push([]);try{for(var f=B2(r),g=f.next();!g.done;g=f.next()){var y=g.value;y.push(n),t<=y.length&&(c=c??[],c.push(y))}}catch(x){o={error:x}}finally{try{g&&!g.done&&(l=f.return)&&l.call(f)}finally{if(o)throw o.error}}if(c)try{for(var b=B2(c),m=b.next();!m.done;m=b.next()){var y=m.value;Ni(r,y),i.next(y)}}catch(x){d={error:x}}finally{try{m&&!m.done&&(u=b.return)&&u.call(b)}finally{if(d)throw d.error}}},function(){var n,o;try{for(var l=B2(r),d=l.next();!d.done;d=l.next()){var u=d.value;i.next(u)}}catch(c){n={error:c}}finally{try{d&&!d.done&&(o=l.return)&&o.call(l)}finally{if(n)throw n.error}}i.complete()},void 0,function(){r=null}))})}var iz=v(()=>{i1();C2();da();$4()});function v7(t){for(var e,a,i=[],r=1;r<arguments.length;r++)i[r-1]=arguments[r];var s=(e=gn(i))!==null&&e!==void 0?e:fr,n=(a=i[0])!==null&&a!==void 0?a:null,o=i[1]||1/0;return Qt(function(l,d){var u=[],c=!1,f=function(b){var m=b.buffer,x=b.subs;x.unsubscribe(),Ni(u,b),d.next(m),c&&g()},g=function(){if(u){var b=new H1;d.add(b);var m=[],x={buffer:m,subs:b};u.push(x),T2(b,s,function(){return f(x)},t)}};n!==null&&n>=0?T2(d,s,g,n,!0):c=!0,g();var y=jt(d,function(b){var m,x,M=u.slice();try{for(var k=B2(M),F=k.next();!F.done;F=k.next()){var T=F.value,S=T.buffer;S.push(b),o<=S.length&&f(T)}}catch(I){m={error:I}}finally{try{F&&!F.done&&(x=k.return)&&x.call(k)}finally{if(m)throw m.error}}},function(){for(;u?.length;)d.next(u.shift().buffer);y?.unsubscribe(),d.complete(),d.unsubscribe()},void 0,function(){return u=null});l.subscribe(y)})}var rz=v(()=>{i1();hr();C2();da();$4();Ro();Ac();Oo()});var sz=v(()=>{});var nz=v(()=>{});var oz=v(()=>{});var lz=v(()=>{});var cz=v(()=>{});var dz=v(()=>{});var uz=v(()=>{});var HG=v(()=>{});var pz=v(()=>{});var hz=v(()=>{});var fz=v(()=>{});var qG=v(()=>{});var mz=v(()=>{});var gz=v(()=>{});var bz=v(()=>{});function y7(t){return Qt(function(e,a){var i=!1,r=null,s=null,n=function(){if(s?.unsubscribe(),s=null,i){i=!1;var o=r;r=null,a.next(o)}};e.subscribe(jt(a,function(o){s?.unsubscribe(),i=!0,r=o,s=jt(a,n,di),D1(t(o)).subscribe(s)},function(){n(),a.complete()},void 0,function(){r=s=null}))})}var vz=v(()=>{C2();Po();da();ui()});function x7(t,e){return e===void 0&&(e=fr),Qt(function(a,i){var r=null,s=null,n=null,o=function(){if(r){r.unsubscribe(),r=null;var d=s;s=null,i.next(d)}};function l(){var d=n+t,u=e.now();if(u<d){r=this.schedule(void 0,d-u),i.add(r);return}o()}a.subscribe(jt(i,function(d){s=d,n=e.now(),r||(r=e.schedule(l,t),i.add(r))},function(){o(),i.complete()},void 0,function(){s=r=null}))})}var yz=v(()=>{Ro();C2();da()});var xz=v(()=>{});var wz=v(()=>{});var Mz=v(()=>{});var zz=v(()=>{});var Sz=v(()=>{});var kz=v(()=>{});var Cz=v(()=>{});var Tz=v(()=>{});var _z=v(()=>{});var Lz=v(()=>{});var $z=v(()=>{});var Az=v(()=>{});var Dz=v(()=>{});var Ez=v(()=>{});var Pz=v(()=>{});var Nz=v(()=>{});var Iz=v(()=>{});var Fz=v(()=>{});var Rz=v(()=>{});var Oz=v(()=>{});var Bz=v(()=>{});var Hz=v(()=>{});var qz=v(()=>{});var Vz=v(()=>{});var jz=v(()=>{});var Uz=v(()=>{});var Wz=v(()=>{});var Gz=v(()=>{});var Yz=v(()=>{});var Zz=v(()=>{});var Xz=v(()=>{});var VG=v(()=>{});var Qz=v(()=>{});var Kz=v(()=>{});var Jz=v(()=>{});var eS=v(()=>{});var tS=v(()=>{});var aS=v(()=>{});var iS=v(()=>{});var rS=v(()=>{});var sS=v(()=>{});var nS=v(()=>{});var oS=v(()=>{});var lS=v(()=>{});var cS=v(()=>{});var dS=v(()=>{});var uS=v(()=>{});var pS=v(()=>{});var hS=v(()=>{});var fS=v(()=>{});var mS=v(()=>{});var gS=v(()=>{});var bS=v(()=>{});var vS=v(()=>{});var yS=v(()=>{});var xS=v(()=>{});var wS=v(()=>{});var MS=v(()=>{});function w7(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var a=gn(t);return Qt(function(i,r){(a?f7(t,i,a):f7(t,i)).subscribe(r)})}var zS=v(()=>{ZM();Ac();C2()});var SS=v(()=>{});var kS=v(()=>{});var CS=v(()=>{});var TS=v(()=>{});function M7(t){return Qt(function(e,a){D1(t).subscribe(jt(a,function(){return a.complete()},di)),!a.closed&&e.subscribe(a)})}var _S=v(()=>{C2();da();ui();Po()});var LS=v(()=>{});var $S=v(()=>{});function z7(t,e){return Qt(function(a,i){var r=e??{},s=r.leading,n=s===void 0?!0:s,o=r.trailing,l=o===void 0?!1:o,d=!1,u=null,c=null,f=!1,g=function(){c?.unsubscribe(),c=null,l&&(m(),f&&i.complete())},y=function(){c=null,f&&i.complete()},b=function(x){return c=D1(t(x)).subscribe(jt(i,g,y))},m=function(){if(d){d=!1;var x=u;u=null,i.next(x),!f&&b(x)}};a.subscribe(jt(i,function(x){d=!0,u=x,!(c&&!c.closed)&&(n?m():b(x))},function(){f=!0,!(l&&d&&c&&!c.closed)&&i.complete()}))})}var S7=v(()=>{C2();da();ui()});function k7(t,e,a){e===void 0&&(e=fr);var i=XM(t,e);return z7(function(){return i},a)}var AS=v(()=>{Ro();S7();QM()});var DS=v(()=>{});var ES=v(()=>{});var PS=v(()=>{});var NS=v(()=>{});var IS=v(()=>{});var FS=v(()=>{});var RS=v(()=>{});var OS=v(()=>{});var BS=v(()=>{});var HS=v(()=>{});var jG=v(()=>{});var qS=v(()=>{});var VS=v(()=>{La();yW();Sc();MW();Cc();SW();kW();TW();IW();Ro();BW();jW();WW();kM();hr();Hd();sG();hM();Po();qd();nG();lG();cG();dG();oG();uG();vM();pG();c7();sM();bG();vG();yG();ZM();zG();MG();Yd();SG();o7();CG();TG();_G();LG();$G();AG();KM();jM();EG();PG();NG();IG();FG();WM();QM();RG();OG();VM();Yd();KM();BG();A4();ez();tz();az();iz();rz();sz();nz();oz();uz();dz();pz();h7();hz();fz();mz();gz();bz();vz();yz();xz();kz();Sz();Cz();Tz();_z();Lz();Az();Dz();Ez();Iz();Nz();Pz();Fz();JM();Rz();Oz();Bz();Hz();qz();Mz();Vz();Uz();Nc();zz();Wz();Gz();u7();Yz();Ic();Zz();Xz();Qz();Kz();Jz();Dc();eS();tS();aS();iS();rS();sS();nS();oS();lz();lS();cS();dS();uS();jd();pS();hS();fS();mS();gS();bS();vS();yS();xS();wS();MS();zS();Ec();kS();SS();CS();TS();wz();jz();_S();LS();$S();S7();AS();$z();DS();c7();ES();PS();cz();NS();IS();FS();RS();OS();BS();HS();qS()});var UG=v(()=>{});var WG=v(()=>{});var GG=v(()=>{ez();tz();az();iz();rz();sz();nz();oz();uz();dz();HG();pz();qG();h7();hz();fz();mz();gz();bz();vz();yz();xz();kz();Sz();Cz();Tz();_z();Lz();Az();Dz();Ez();Iz();Nz();Pz();Fz();JM();Rz();Oz();Bz();Hz();qz();Mz();Vz();Uz();Nc();zz();Wz();Gz();VG();u7();Yz();Ic();Zz();Xz();Qz();Kz();Jz();Dc();eS();tS();UG();aS();iS();rS();sS();nS();WG();oS();lz();lS();cS();dS();uS();jd();pS();hS();fS();mS();gS();bS();vS();yS();xS();wS();MS();zS();Ec();kS();SS();CS();TS();wz();jz();_S();LS();$S();S7();AS();$z();DS();c7();ES();PS();cz();NS();IS();FS();RS();OS();BS();jG();HS();qS()});var O4={};Qe(O4,{Observable:()=>Mt,ReplaySubject:()=>Ud,Subject:()=>$a,Subscription:()=>H1,from:()=>Bo,fromEvent:()=>qo,of:()=>Pc,ops:()=>qkt});var qkt,C7=v(()=>{VS();GG();qkt={buffer:g7,bufferCount:b7,bufferTime:v7,debounce:y7,debounceTime:x7,filter:m7,map:bn,startWith:w7,takeUntil:M7,throttleTime:k7}});var jS,YG=v(()=>{Id();C7();jS=class{constructor(){this.observableEventEmitterBundleArray=new Array,this.observableEventTargetBundleArray=new Array}getSubjectForEmitterEvent(e,a){let i=this.observableEventEmitterBundleArray.find(r=>r.eventRef===e&&r.event===a);if(i)return i.subject;{let r=qo(e,a),s=new $a;r.subscribe(s);let n={subject:s,eventRef:e,event:a};return this.observableEventEmitterBundleArray.push(n),n.subject}}getSubjectForEventTarget(e,a){let i=this.observableEventTargetBundleArray.find(r=>r.eventRef===e&&r.event===a);if(i)return i.subject;{let s={subject:new $a,eventRef:e,event:a};return this.observableEventTargetBundleArray.push(s),s.subject}}}});var US,ZG=v(()=>{Id();C7();US=class{constructor(){this.observableFunctions={next:e=>{},complete:e=>{}},this.generator=null,this.buffered=!1,this.payloadBuffer=[],this.observable=new Mt(e=>{this.observableFunctions.next=(...a)=>e.next(a),this.observableFunctions.complete=()=>(this.completedDeffered.resolve(),e.complete())}),this.completedDeffered=He.defer(),this.completed=this.completedDeffered.promise}setObservable(e){this.observable=e}push(e){this.buffered?this.payloadBuffer.push(e):this.internalPush(e)}pushMany(e){for(let a of e)this.push(a)}setGenerator(e){this.generator=e}makeBuffered(){this.buffered=!0}subscribe(...e){return this.observable.subscribe(...e)}request(e){if(e!==0)for(let a=0;a!==e;a++)if(this.payloadBuffer.length>0)this.internalPush(this.payloadBuffer.shift());else{let i=this.generator.next();this.internalPush(i.value)}}signalComplete(){this.observableFunctions.complete()}internalPush(e){this.observableFunctions.next(e)}}});function Vkt(t){return new Mt(e=>{let a=()=>t.pause(),i=()=>process.nextTick(()=>t.resume()),r=s=>{a(),e.next(s),i()};return t.on("data",r),t.on("error",s=>e.error(s)),t.on("end",()=>e.complete()),t.on("close",()=>e.complete()),()=>{t.removeListener("data",r),t.removeListener("error",e.error),t.removeListener("end",e.complete),t.removeListener("close",e.complete)}})}var XG=v(()=>{VS()});var yt={};Qe(yt,{ObservableIntake:()=>US,Observablemap:()=>jS,fromStreamWithBackpressure:()=>Vkt,rxjs:()=>O4});var pi=v(()=>{Id();YG();ZG();XG();C7()});function N(t){return(e,a)=>typeof a=="object"?QG(t,e,a):((i,r,s)=>{let n=r.hasOwnProperty(s);return r.constructor.createProperty(s,i),n?Object.getOwnPropertyDescriptor(r,s):void 0})(t,e,a)}var jkt,QG,T7=v(()=>{gc();jkt={attribute:!0,type:String,converter:_4,reflect:!1,hasChanged:mc},QG=(t=jkt,e,a)=>{let{kind:i,metadata:r}=a,s=globalThis.litPropertyMetadata.get(r);if(s===void 0&&globalThis.litPropertyMetadata.set(r,s=new Map),i==="setter"&&((t=Object.create(t)).wrapped=!0),s.set(a.name,t),i==="accessor"){let{name:n}=a;return{set(o){let l=e.get.call(this);e.set.call(this,o),this.requestUpdate(n,l,t,!0,o)},init(o){return o!==void 0&&this.C(n,void 0,t,o),o}}}if(i==="setter"){let{name:n}=a;return function(o){let l=this[n];e.call(this,o),this.requestUpdate(n,l,t,!0,o)}}throw Error("Unsupported decorator location: "+i)}});var KG=v(()=>{T7()});var JG=v(()=>{});var rt={};Qe(rt,{Timeout:()=>_7,delayFor:()=>eY,delayForRandom:()=>Ukt});var eY,Ukt,_7,Ri=v(()=>{a2();eY=async(t,e,a=!1)=>(await new _7(t,null,a).promise,e),Ukt=async(t,e,a,i=!1)=>(await eY(Math.random()*(e-t)+t,null,i),a),_7=class{constructor(e,a,i=!1){this._cancelled=!1,this.timeoutInMillis=e,this._deferred=fn(),this.promise=this._deferred.promise,this._timeout=setTimeout(()=>{this._cancelled||this._deferred.resolve(a)},e),this.started=Date.now(),i&&this.makeUnrefed()}makeUnrefed(){this._timeout.unref()}cancel(){this._cancelled=!0,clearTimeout(this._timeout)}getTimeLeft(){let e=this.started+this.timeoutInMillis-Date.now();return e>0?e:0}}});var mr={};var B4=v(()=>{});function Vo(t){if(typeof t!="string")throw new TypeError("Expected a string");return t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}var L7=v(()=>{});var Fc={};Qe(Fc,{isMatch:()=>Ykt,matcher:()=>Gkt});function Gkt(t,e,a){return aY(t,e,a,!1)}function Ykt(t,e,a){return aY(t,e,a,!0).length>0}var WS,tY,Wkt,aY,iY=v(()=>{L7();WS=new Map,tY=(t,e)=>{if(!Array.isArray(t))switch(typeof t){case"string":t=[t];break;case"undefined":t=[];break;default:throw new TypeError(`Expected '${e}' to be a string or an array, but got a type of '${typeof t}'`)}return t.filter(a=>{if(typeof a!="string"){if(typeof a>"u")return!1;throw new TypeError(`Expected '${e}' to be an array of strings, but found a type of '${typeof a}' in the array`)}return!0})},Wkt=(t,e)=>{e={caseSensitive:!1,...e};let a=t+JSON.stringify(e);if(WS.has(a))return WS.get(a);let i=t[0]==="!";i&&(t=t.slice(1)),t=Vo(t).replace(/\\\*/g,"[\\s\\S]*");let r=new RegExp(`^${t}$`,e.caseSensitive?"":"i");return r.negated=i,WS.set(a,r),r},aY=(t,e,a,i)=>{if(t=tY(t,"inputs"),e=tY(e,"patterns"),e.length===0)return[];e=e.map(n=>Wkt(n,a));let{allPatterns:r}=a||{},s=[];for(let n of t){let o,l=[...e].fill(!1);for(let[d,u]of e.entries())if(u.test(n)&&(l[d]=!0,o=!u.negated,!o))break;if(!(o===!1||o===void 0&&e.some(d=>!d.negated)||r&&l.some((d,u)=>!d&&!e[u].negated))&&(s.push(n),i))break}return s}});var rY=v(()=>{iY()});var os={};Qe(os,{SmartMatch:()=>GS});var GS,YS=v(()=>{rY();GS=class{constructor(e){this.wildcard=e}match(e){return Fc.isMatch(e,this.wildcard)}}});var Bc={};Qe(Bc,{Cron:()=>cY,CronDate:()=>Aa,CronPattern:()=>$7,scheduledJobs:()=>H4});function H2(t,e,a,i,r,s,n,o){return H2.fromTZ(H2.tp(t,e,a,i,r,s,n),o)}function ZS(t,e=new Date){let a=e.toLocaleString("en-US",{timeZone:t,timeZoneName:"shortOffset"}).split(" ").slice(-1)[0],i=e.toLocaleString("en-US").replace(/[\u202f]/," ");return Date.parse(`${i} GMT`)-Date.parse(`${i} ${a}`)}function Xkt(t,e){let a=new Date(Date.parse(t));if(isNaN(a))throw new Error("minitz: Invalid ISO8601 passed to parser.");let i=t.substring(9);return t.includes("Z")||i.includes("-")||i.includes("+")?H2.tp(a.getUTCFullYear(),a.getUTCMonth()+1,a.getUTCDate(),a.getUTCHours(),a.getUTCMinutes(),a.getUTCSeconds(),"Etc/UTC"):H2.tp(a.getFullYear(),a.getMonth()+1,a.getDate(),a.getHours(),a.getMinutes(),a.getSeconds(),e)}function Qkt(t){if(t===void 0&&(t={}),delete t.name,t.legacyMode=t.legacyMode===void 0?!0:t.legacyMode,t.paused=t.paused===void 0?!1:t.paused,t.maxRuns=t.maxRuns===void 0?1/0:t.maxRuns,t.catch=t.catch===void 0?!1:t.catch,t.interval=t.interval===void 0?0:parseInt(t.interval.toString(),10),t.utcOffset=t.utcOffset===void 0?void 0:parseInt(t.utcOffset.toString(),10),t.unref=t.unref===void 0?!1:t.unref,t.startAt&&(t.startAt=new Aa(t.startAt,t.timezone)),t.stopAt&&(t.stopAt=new Aa(t.stopAt,t.timezone)),t.interval!==null){if(isNaN(t.interval))throw new Error("CronOptions: Supplied value for interval is not a number");if(t.interval<0)throw new Error("CronOptions: Supplied value for interval can not be negative")}if(t.utcOffset!==void 0){if(isNaN(t.utcOffset))throw new Error("CronOptions: Invalid value passed for utcOffset, should be number representing minutes offset from UTC.");if(t.utcOffset<-870||t.utcOffset>870)throw new Error("CronOptions: utcOffset out of bounds.");if(t.utcOffset!==void 0&&t.timezone)throw new Error("CronOptions: Combining 'utcOffset' with 'timezone' is not allowed.")}if(t.unref!==!0&&t.unref!==!1)throw new Error("CronOptions: Unref should be either true, false or undefined(false).");return t}function Oc(t){return Object.prototype.toString.call(t)==="[object Function]"||typeof t=="function"||t instanceof Function}function Kkt(t){return Oc(t)}function Jkt(t){typeof Deno<"u"&&typeof Deno.unrefTimer<"u"?Deno.unrefTimer(t):t&&typeof t.unref<"u"&&t.unref()}var XS,Rc,sY,$7,nY,ls,Aa,oY,H4,cY,dY=v(()=>{H2.fromTZISO=(t,e,a)=>H2.fromTZ(Xkt(t,e),a),H2.fromTZ=function(t,e){let a=new Date(Date.UTC(t.y,t.m-1,t.d,t.h,t.i,t.s)),i=ZS(t.tz,a),r=new Date(a.getTime()-i),s=ZS(t.tz,r);if(s-i===0)return r;{let n=new Date(a.getTime()-s),o=ZS(t.tz,n);if(o-s===0||!e&&o-s>0)return n;if(e)throw new Error("Invalid date passed to fromTZ()");return r}},H2.toTZ=function(t,e){let a=t.toLocaleString("en-US",{timeZone:e}).replace(/[\u202f]/," "),i=new Date(a);return{y:i.getFullYear(),m:i.getMonth()+1,d:i.getDate(),h:i.getHours(),i:i.getMinutes(),s:i.getSeconds(),tz:e}},H2.tp=(t,e,a,i,r,s,n)=>({y:t,m:e,d:a,h:i,i:r,s,tz:n});H2.minitz=H2;XS=32,Rc=31|XS,sY=[1,2,4,8,16],$7=class{pattern;timezone;second;minute;hour;day;month;dayOfWeek;lastDayOfMonth;starDOM;starDOW;constructor(t,e){this.pattern=t,this.timezone=e,this.second=Array(60).fill(0),this.minute=Array(60).fill(0),this.hour=Array(24).fill(0),this.day=Array(31).fill(0),this.month=Array(12).fill(0),this.dayOfWeek=Array(7).fill(0),this.lastDayOfMonth=!1,this.starDOM=!1,this.starDOW=!1,this.parse()}parse(){if(!(typeof this.pattern=="string"||this.pattern instanceof String))throw new TypeError("CronPattern: Pattern has to be of type string.");this.pattern.indexOf("@")>=0&&(this.pattern=this.handleNicknames(this.pattern).trim());let t=this.pattern.replace(/\s+/g," ").split(" ");if(t.length<5||t.length>6)throw new TypeError("CronPattern: invalid configuration format ('"+this.pattern+"'), exactly five or six space separated parts are required.");if(t.length===5&&t.unshift("0"),t[3].indexOf("L")>=0&&(t[3]=t[3].replace("L",""),this.lastDayOfMonth=!0),t[3]=="*"&&(this.starDOM=!0),t[4].length>=3&&(t[4]=this.replaceAlphaMonths(t[4])),t[5].length>=3&&(t[5]=this.replaceAlphaDays(t[5])),t[5]=="*"&&(this.starDOW=!0),this.pattern.indexOf("?")>=0){let e=new Aa(new Date,this.timezone).getDate(!0);t[0]=t[0].replace("?",e.getSeconds().toString()),t[1]=t[1].replace("?",e.getMinutes().toString()),t[2]=t[2].replace("?",e.getHours().toString()),this.starDOM||(t[3]=t[3].replace("?",e.getDate().toString())),t[4]=t[4].replace("?",(e.getMonth()+1).toString()),this.starDOW||(t[5]=t[5].replace("?",e.getDay().toString()))}this.throwAtIllegalCharacters(t),this.partToArray("second",t[0],0,1),this.partToArray("minute",t[1],0,1),this.partToArray("hour",t[2],0,1),this.partToArray("day",t[3],-1,1),this.partToArray("month",t[4],-1,1),this.partToArray("dayOfWeek",t[5],0,Rc),this.dayOfWeek[7]&&(this.dayOfWeek[0]=this.dayOfWeek[7])}partToArray(t,e,a,i){let r=this[t],s=t==="day"&&this.lastDayOfMonth;if(e===""&&!s)throw new TypeError("CronPattern: configuration entry "+t+" ("+e+") is empty, check for trailing spaces.");if(e==="*")return r.fill(i);let n=e.split(",");if(n.length>1)for(let o=0;o<n.length;o++)this.partToArray(t,n[o],a,i);else e.indexOf("-")!==-1&&e.indexOf("/")!==-1?this.handleRangeWithStepping(e,t,a,i):e.indexOf("-")!==-1?this.handleRange(e,t,a,i):e.indexOf("/")!==-1?this.handleStepping(e,t,a,i):e!==""&&this.handleNumber(e,t,a,i)}throwAtIllegalCharacters(t){for(let e=0;e<t.length;e++)if((e===5?/[^/*0-9,\-#L]+/:/[^/*0-9,-]+/).test(t[e]))throw new TypeError("CronPattern: configuration entry "+e+" ("+t[e]+") contains illegal characters.")}handleNumber(t,e,a,i){let r=this.extractNth(t,e),s=parseInt(r[0],10)+a;if(isNaN(s))throw new TypeError("CronPattern: "+e+" is not a number: '"+t+"'");this.setPart(e,s,r[1]||i)}setPart(t,e,a){if(!Object.prototype.hasOwnProperty.call(this,t))throw new TypeError("CronPattern: Invalid part specified: "+t);if(t==="dayOfWeek"){if(e===7&&(e=0),e<0||e>6)throw new RangeError("CronPattern: Invalid value for dayOfWeek: "+e);this.setNthWeekdayOfMonth(e,a);return}if(t==="second"||t==="minute"){if(e<0||e>=60)throw new RangeError("CronPattern: Invalid value for "+t+": "+e)}else if(t==="hour"){if(e<0||e>=24)throw new RangeError("CronPattern: Invalid value for "+t+": "+e)}else if(t==="day"){if(e<0||e>=31)throw new RangeError("CronPattern: Invalid value for "+t+": "+e)}else if(t==="month"&&(e<0||e>=12))throw new RangeError("CronPattern: Invalid value for "+t+": "+e);this[t][e]=a}handleRangeWithStepping(t,e,a,i){let r=this.extractNth(t,e),s=r[0].match(/^(\d+)-(\d+)\/(\d+)$/);if(s===null)throw new TypeError("CronPattern: Syntax error, illegal range with stepping: '"+t+"'");let[,n,o,l]=s,d=parseInt(n,10)+a,u=parseInt(o,10)+a,c=parseInt(l,10);if(isNaN(d))throw new TypeError("CronPattern: Syntax error, illegal lower range (NaN)");if(isNaN(u))throw new TypeError("CronPattern: Syntax error, illegal upper range (NaN)");if(isNaN(c))throw new TypeError("CronPattern: Syntax error, illegal stepping: (NaN)");if(c===0)throw new TypeError("CronPattern: Syntax error, illegal stepping: 0");if(c>this[e].length)throw new TypeError("CronPattern: Syntax error, steps cannot be greater than maximum value of part ("+this[e].length+")");if(d>u)throw new TypeError("CronPattern: From value is larger than to value: '"+t+"'");for(let f=d;f<=u;f+=c)this.setPart(e,f,r[1]||i)}extractNth(t,e){let a=t,i;if(a.includes("#")){if(e!=="dayOfWeek")throw new Error("CronPattern: nth (#) only allowed in day-of-week field");i=a.split("#")[1],a=a.split("#")[0]}return[a,i]}handleRange(t,e,a,i){let r=this.extractNth(t,e),s=r[0].split("-");if(s.length!==2)throw new TypeError("CronPattern: Syntax error, illegal range: '"+t+"'");let n=parseInt(s[0],10)+a,o=parseInt(s[1],10)+a;if(isNaN(n))throw new TypeError("CronPattern: Syntax error, illegal lower range (NaN)");if(isNaN(o))throw new TypeError("CronPattern: Syntax error, illegal upper range (NaN)");if(n>o)throw new TypeError("CronPattern: From value is larger than to value: '"+t+"'");for(let l=n;l<=o;l++)this.setPart(e,l,r[1]||i)}handleStepping(t,e,a,i){let r=this.extractNth(t,e),s=r[0].split("/");if(s.length!==2)throw new TypeError("CronPattern: Syntax error, illegal stepping: '"+t+"'");s[0]===""&&(s[0]="*");let n=0;s[0]!=="*"&&(n=parseInt(s[0],10)+a);let o=parseInt(s[1],10);if(isNaN(o))throw new TypeError("CronPattern: Syntax error, illegal stepping: (NaN)");if(o===0)throw new TypeError("CronPattern: Syntax error, illegal stepping: 0");if(o>this[e].length)throw new TypeError("CronPattern: Syntax error, max steps for part is ("+this[e].length+")");for(let l=n;l<this[e].length;l+=o)this.setPart(e,l,r[1]||i)}replaceAlphaDays(t){return t.replace(/-sun/gi,"-7").replace(/sun/gi,"0").replace(/mon/gi,"1").replace(/tue/gi,"2").replace(/wed/gi,"3").replace(/thu/gi,"4").replace(/fri/gi,"5").replace(/sat/gi,"6")}replaceAlphaMonths(t){return t.replace(/jan/gi,"1").replace(/feb/gi,"2").replace(/mar/gi,"3").replace(/apr/gi,"4").replace(/may/gi,"5").replace(/jun/gi,"6").replace(/jul/gi,"7").replace(/aug/gi,"8").replace(/sep/gi,"9").replace(/oct/gi,"10").replace(/nov/gi,"11").replace(/dec/gi,"12")}handleNicknames(t){let e=t.trim().toLowerCase();return e==="@yearly"||e==="@annually"?"0 0 1 1 *":e==="@monthly"?"0 0 1 * *":e==="@weekly"?"0 0 * * 0":e==="@daily"?"0 0 * * *":e==="@hourly"?"0 * * * *":t}setNthWeekdayOfMonth(t,e){if(typeof e!="number"&&e==="L")this.dayOfWeek[t]=this.dayOfWeek[t]|XS;else if(e===Rc)this.dayOfWeek[t]=Rc;else if(e<6&&e>0)this.dayOfWeek[t]=this.dayOfWeek[t]|sY[e-1];else throw new TypeError(`CronPattern: nth weekday out of range, should be 1-5 or L. Value: ${e}, Type: ${typeof e}`)}},nY=[31,28,31,30,31,30,31,31,30,31,30,31],ls=[["month","year",0],["day","month",-1],["hour","day",0],["minute","hour",0],["second","minute",0]],Aa=class lY{tz;ms;second;minute;hour;day;month;year;constructor(e,a){if(this.tz=a,e&&e instanceof Date)if(!isNaN(e))this.fromDate(e);else throw new TypeError("CronDate: Invalid date passed to CronDate constructor");else if(e===void 0)this.fromDate(new Date);else if(e&&typeof e=="string")this.fromString(e);else if(e instanceof lY)this.fromCronDate(e);else throw new TypeError("CronDate: Invalid type ("+typeof e+") passed to CronDate constructor")}isNthWeekdayOfMonth(e,a,i,r){let s=new Date(Date.UTC(e,a,i)).getUTCDay(),n=0;for(let o=1;o<=i;o++)new Date(Date.UTC(e,a,o)).getUTCDay()===s&&n++;if(r&Rc&&sY[n-1]&r)return!0;if(r&XS){let o=new Date(Date.UTC(e,a+1,0)).getUTCDate();for(let l=i+1;l<=o;l++)if(new Date(Date.UTC(e,a,l)).getUTCDay()===s)return!1;return!0}return!1}fromDate(e){if(this.tz!==void 0)if(typeof this.tz=="number")this.ms=e.getUTCMilliseconds(),this.second=e.getUTCSeconds(),this.minute=e.getUTCMinutes()+this.tz,this.hour=e.getUTCHours(),this.day=e.getUTCDate(),this.month=e.getUTCMonth(),this.year=e.getUTCFullYear(),this.apply();else{let a=H2.toTZ(e,this.tz);this.ms=e.getMilliseconds(),this.second=a.s,this.minute=a.i,this.hour=a.h,this.day=a.d,this.month=a.m-1,this.year=a.y}else this.ms=e.getMilliseconds(),this.second=e.getSeconds(),this.minute=e.getMinutes(),this.hour=e.getHours(),this.day=e.getDate(),this.month=e.getMonth(),this.year=e.getFullYear()}fromCronDate(e){this.tz=e.tz,this.year=e.year,this.month=e.month,this.day=e.day,this.hour=e.hour,this.minute=e.minute,this.second=e.second,this.ms=e.ms}apply(){if(this.month>11||this.day>nY[this.month]||this.hour>59||this.minute>59||this.second>59||this.hour<0||this.minute<0||this.second<0){let e=new Date(Date.UTC(this.year,this.month,this.day,this.hour,this.minute,this.second,this.ms));return this.ms=e.getUTCMilliseconds(),this.second=e.getUTCSeconds(),this.minute=e.getUTCMinutes(),this.hour=e.getUTCHours(),this.day=e.getUTCDate(),this.month=e.getUTCMonth(),this.year=e.getUTCFullYear(),!0}else return!1}fromString(e){if(typeof this.tz=="number"){let a=H2.fromTZISO(e);this.ms=a.getUTCMilliseconds(),this.second=a.getUTCSeconds(),this.minute=a.getUTCMinutes(),this.hour=a.getUTCHours(),this.day=a.getUTCDate(),this.month=a.getUTCMonth(),this.year=a.getUTCFullYear(),this.apply()}else return this.fromDate(H2.fromTZISO(e,this.tz))}findNext(e,a,i,r){let s=this[a],n;i.lastDayOfMonth&&(this.month!==1?n=nY[this.month]:n=new Date(Date.UTC(this.year,this.month+1,0,0,0,0,0)).getUTCDate());let o=!i.starDOW&&a=="day"?new Date(Date.UTC(this.year,this.month,1,0,0,0,0)).getUTCDay():void 0;for(let l=this[a]+r;l<i[a].length;l++){let d=i[a][l];if(a==="day"&&i.lastDayOfMonth&&l-r==n&&(d=1),a==="day"&&!i.starDOW){let u=i.dayOfWeek[(o+(l-r-1))%7];if(u&&u&Rc)u=this.isNthWeekdayOfMonth(this.year,this.month,l-r,u)?1:0;else if(u)throw new Error(`CronDate: Invalid value for dayOfWeek encountered. ${u}`);e.legacyMode&&!i.starDOM?d=d||u:d=d&&u}if(d)return this[a]=l-r,s!==this[a]?2:1}return 3}recurse(e,a,i){let r=this.findNext(a,ls[i][0],e,ls[i][2]);if(r>1){let s=i+1;for(;s<ls.length;)this[ls[s][0]]=-ls[s][2],s++;if(r===3)return this[ls[i][1]]++,this[ls[i][0]]=-ls[i][2],this.apply(),this.recurse(e,a,0);if(this.apply())return this.recurse(e,a,i-1)}return i+=1,i>=ls.length?this:this.year>=3e3?null:this.recurse(e,a,i)}increment(e,a,i){return this.second+=a.interval!==void 0&&a.interval>1&&i?a.interval:1,this.ms=0,this.apply(),this.recurse(e,a,0)}getDate(e){return e||this.tz===void 0?new Date(this.year,this.month,this.day,this.hour,this.minute,this.second,this.ms):typeof this.tz=="number"?new Date(Date.UTC(this.year,this.month,this.day,this.hour,this.minute-this.tz,this.second,this.ms)):H2.fromTZ(H2.tp(this.year,this.month+1,this.day,this.hour,this.minute,this.second,this.tz),!1)}getTime(){return this.getDate(!1).getTime()}};oY=30*1e3,H4=[],cY=class{name;options;_states;fn;constructor(t,e,a){let i,r;if(Oc(e))r=e;else if(typeof e=="object")i=e;else if(e!==void 0)throw new Error("Cron: Invalid argument passed for optionsIn. Should be one of function, or object (options).");if(Oc(a))r=a;else if(typeof a=="object")i=a;else if(a!==void 0)throw new Error("Cron: Invalid argument passed for funcIn. Should be one of function, or object (options).");if(this.name=i?.name,this.options=Qkt(i),this._states={kill:!1,blocking:!1,previousRun:void 0,currentRun:void 0,once:void 0,currentTimeout:void 0,maxRuns:i?i.maxRuns:void 0,paused:i?i.paused:!1,pattern:new $7("* * * * *")},t&&(t instanceof Date||typeof t=="string"&&t.indexOf(":")>0)?this._states.once=new Aa(t,this.options.timezone||this.options.utcOffset):this._states.pattern=new $7(t,this.options.timezone),this.name){if(H4.find(s=>s.name===this.name))throw new Error("Cron: Tried to initialize new named job '"+this.name+"', but name already taken.");H4.push(this)}return r!==void 0&&Kkt(r)&&(this.fn=r,this.schedule()),this}nextRun(t){let e=this._next(t);return e?e.getDate(!1):null}nextRuns(t,e){this._states.maxRuns!==void 0&&t>this._states.maxRuns&&(t=this._states.maxRuns);let a=[],i=e||this._states.currentRun||void 0;for(;t--&&(i=this.nextRun(i));)a.push(i);return a}getPattern(){return this._states.pattern?this._states.pattern.pattern:void 0}isRunning(){let t=this.nextRun(this._states.currentRun),e=!this._states.paused,a=this.fn!==void 0,i=!this._states.kill;return e&&a&&i&&t!==null}isStopped(){return this._states.kill}isBusy(){return this._states.blocking}currentRun(){return this._states.currentRun?this._states.currentRun.getDate():null}previousRun(){return this._states.previousRun?this._states.previousRun.getDate():null}msToNext(t){let e=this._next(t);return e?t instanceof Aa||t instanceof Date?e.getTime()-t.getTime():e.getTime()-new Aa(t).getTime():null}stop(){this._states.kill=!0,this._states.currentTimeout&&clearTimeout(this._states.currentTimeout);let t=H4.indexOf(this);t>=0&&H4.splice(t,1)}pause(){return this._states.paused=!0,!this._states.kill}resume(){return this._states.paused=!1,!this._states.kill}schedule(t){if(t&&this.fn)throw new Error("Cron: It is not allowed to schedule two functions using the same Croner instance.");t&&(this.fn=t);let e=this.msToNext(),a=this.nextRun(this._states.currentRun);return e==null||isNaN(e)||a===null?this:(e>oY&&(e=oY),this._states.currentTimeout=setTimeout(()=>this._checkTrigger(a),e),this._states.currentTimeout&&this.options.unref&&Jkt(this._states.currentTimeout),this)}async _trigger(t){if(this._states.blocking=!0,this._states.currentRun=new Aa(void 0,this.options.timezone||this.options.utcOffset),this.options.catch)try{this.fn!==void 0&&await this.fn(this,this.options.context)}catch(e){Oc(this.options.catch)&&this.options.catch(e,this)}else this.fn!==void 0&&await this.fn(this,this.options.context);this._states.previousRun=new Aa(t,this.options.timezone||this.options.utcOffset),this._states.blocking=!1}async trigger(){await this._trigger()}runsLeft(){return this._states.maxRuns}_checkTrigger(t){let e=new Date,a=!this._states.paused&&e.getTime()>=t.getTime(),i=this._states.blocking&&this.options.protect;a&&!i?(this._states.maxRuns!==void 0&&this._states.maxRuns--,this._trigger()):a&&i&&Oc(this.options.protect)&&setTimeout(()=>this.options.protect(this),0),this.schedule()}_next(t){let e=!!(t||this._states.currentRun),a=!1;!t&&this.options.startAt&&this.options.interval&&([t,e]=this._calculatePreviousRun(t,e),a=!t),t=new Aa(t,this.options.timezone||this.options.utcOffset),this.options.startAt&&t&&t.getTime()<this.options.startAt.getTime()&&(t=this.options.startAt);let i=this._states.once||new Aa(t,this.options.timezone||this.options.utcOffset);return!a&&i!==this._states.once&&(i=i.increment(this._states.pattern,this.options,e)),this._states.once&&this._states.once.getTime()<=t.getTime()||i===null||this._states.maxRuns!==void 0&&this._states.maxRuns<=0||this._states.kill||this.options.stopAt&&i.getTime()>=this.options.stopAt.getTime()?null:i}_calculatePreviousRun(t,e){let a=new Aa(void 0,this.options.timezone||this.options.utcOffset),i=t;if(this.options.startAt.getTime()<=a.getTime()){i=this.options.startAt;let r=i.getTime()+this.options.interval*1e3;for(;r<=a.getTime();)i=new Aa(i,this.options.timezone||this.options.utcOffset).increment(this._states.pattern,this.options,!0),r=i.getTime()+this.options.interval*1e3;e=!0}return i===null&&(i=void 0),[i,e]}}});var D7,Hc,eCt,Cs1,gr,E7,q2,Ba,q4,QS,vn,V4,P7,N7,I7,F7,jo,j4,A7,uY,KS,JS,pY,ek,xt=v(()=>{D7=7,Hc=365.2425,eCt=Math.pow(10,8)*24*60*60*1e3,Cs1=-eCt,gr=6048e5,E7=864e5,q2=6e4,Ba=36e5,q4=1e3,QS=525600,vn=43200,V4=1440,P7=60,N7=3,I7=12,F7=4,jo=3600,j4=60,A7=jo*24,uY=A7*7,KS=A7*365.2425,JS=KS/12,pY=JS*3,ek=Symbol.for("constructDateFrom")});function Le(t,e){return typeof t=="function"?t(e):t&&typeof t=="object"&&ek in t?t[ek](e):t instanceof Date?new t.constructor(e):new Date(e)}var Ls1,at=v(()=>{xt();Ls1=Le});function ne(t,e){return Le(e||t,t)}var Ds1,Ae=v(()=>{at();Ds1=ne});function i2(t,e,a){let i=ne(t,a?.in);return isNaN(e)?Le(a?.in||t,NaN):(e&&i.setDate(i.getDate()+e),i)}var Is1,br=v(()=>{at();Ae();Is1=i2});function vr(t,e,a){let i=ne(t,a?.in);if(isNaN(e))return Le(a?.in||t,NaN);if(!e)return i;let r=i.getDate(),s=Le(a?.in||t,i.getTime());s.setMonth(i.getMonth()+e+1,0);let n=s.getDate();return r>=n?s:(i.setFullYear(s.getFullYear(),s.getMonth(),r),i)}var Bs1,U4=v(()=>{at();Ae();Bs1=vr});function yn(t,e,a){let{years:i=0,months:r=0,weeks:s=0,days:n=0,hours:o=0,minutes:l=0,seconds:d=0}=e,u=ne(t,a?.in),c=r||i?vr(u,r+i*12):u,f=n||s?i2(c,n+s*7):c,g=l+o*60,b=(d+g*60)*1e3;return Le(a?.in||t,+f+b)}var Ws1,tk=v(()=>{br();U4();at();Ae();Ws1=yn});function R7(t,e){return ne(t,e?.in).getDay()===6}var Zs1,ak=v(()=>{Ae();Zs1=R7});function O7(t,e){return ne(t,e?.in).getDay()===0}var Ks1,ik=v(()=>{Ae();Ks1=O7});function yr(t,e){let a=ne(t,e?.in).getDay();return a===0||a===6}var tn1,qc=v(()=>{Ae();tn1=yr});function B7(t,e,a){let i=ne(t,a?.in),r=yr(i,a);if(isNaN(e))return Le(a?.in,NaN);let s=i.getHours(),n=e<0?-1:1,o=Math.trunc(e/5);i.setDate(i.getDate()+o*7);let l=Math.abs(e%5);for(;l>0;)i.setDate(i.getDate()+n),yr(i,a)||(l-=1);return r&&yr(i,a)&&e!==0&&(R7(i,a)&&i.setDate(i.getDate()+(n<0?2:-1)),O7(i,a)&&i.setDate(i.getDate()+(n<0?1:-2))),i.setHours(s),i}var ln1,rk=v(()=>{at();ak();ik();qc();Ae();ln1=B7});function xn(t,e,a){return Le(a?.in||t,+ne(t)+e)}var pn1,Vc=v(()=>{at();Ae();pn1=xn});function H7(t,e,a){return xn(t,e*Ba,a)}var gn1,sk=v(()=>{Vc();xt();gn1=H7});function Kt(){return hY}function fY(t){hY=t}var hY,V2=v(()=>{hY={}});function d1(t,e){let a=Kt(),i=e?.weekStartsOn??e?.locale?.options?.weekStartsOn??a.weekStartsOn??a.locale?.options?.weekStartsOn??0,r=ne(t,e?.in),s=r.getDay(),n=(s<i?7:0)+s-i;return r.setDate(r.getDate()-n),r.setHours(0,0,0,0),r}var wn1,Oi=v(()=>{V2();Ae();wn1=d1});function X1(t,e){return d1(t,{...e,weekStartsOn:1})}var Sn1,xr=v(()=>{Oi();Sn1=X1});function ua(t,e){let a=ne(t,e?.in),i=a.getFullYear(),r=Le(a,0);r.setFullYear(i+1,0,4),r.setHours(0,0,0,0);let s=X1(r),n=Le(a,0);n.setFullYear(i,0,4),n.setHours(0,0,0,0);let o=X1(n);return a.getTime()>=s.getTime()?i+1:a.getTime()>=o.getTime()?i:i-1}var Ln1,wn=v(()=>{at();xr();Ae();Ln1=ua});function E1(t){let e=ne(t),a=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return a.setUTCFullYear(e.getFullYear()),+t-+a}var cs=v(()=>{Ae()});function Je(t,...e){let a=Le.bind(null,t||e.find(i=>typeof i=="object"));return e.map(a)}var r1=v(()=>{at()});function wr(t,e){let a=ne(t,e?.in);return a.setHours(0,0,0,0),a}var In1,jc=v(()=>{Ae();In1=wr});function b2(t,e,a){let[i,r]=Je(a?.in,t,e),s=wr(i),n=wr(r),o=+s-E1(s),l=+n-E1(n);return Math.round((o-l)/E7)}var qn1,ds=v(()=>{cs();r1();xt();jc();qn1=b2});function Ha(t,e){let a=ua(t,e),i=Le(e?.in||t,0);return i.setFullYear(a,0,4),i.setHours(0,0,0,0),X1(i)}var Gn1,W4=v(()=>{at();wn();xr();Gn1=Ha});function q7(t,e,a){let i=ne(t,a?.in),r=b2(i,Ha(i,a)),s=Le(a?.in||t,0);return s.setFullYear(e,0,4),s.setHours(0,0,0,0),i=Ha(s),i.setDate(i.getDate()+r),i}var Jn1,nk=v(()=>{at();ds();W4();Ae();Jn1=q7});function V7(t,e,a){return q7(t,ua(t,a)+e,a)}var io1,ok=v(()=>{wn();nk();io1=V7});function G4(t,e,a){let i=ne(t,a?.in);return i.setTime(i.getTime()+e*q2),i}var oo1,j7=v(()=>{xt();Ae();oo1=G4});function Y4(t,e,a){return vr(t,e*3,a)}var do1,U7=v(()=>{U4();do1=Y4});function W7(t,e,a){return xn(t,e*1e3,a)}var ho1,lk=v(()=>{Vc();ho1=W7});function Mn(t,e,a){return i2(t,e*7,a)}var go1,Uc=v(()=>{br();go1=Mn});function G7(t,e,a){return vr(t,e*12,a)}var yo1,ck=v(()=>{U4();yo1=G7});function mY(t,e,a){let[i,r]=[+ne(t.start,a?.in),+ne(t.end,a?.in)].sort((o,l)=>o-l),[s,n]=[+ne(e.start,a?.in),+ne(e.end,a?.in)].sort((o,l)=>o-l);return a?.inclusive?i<=n&&s<=r:i<n&&s<r}var Mo1,gY=v(()=>{Ae();Mo1=mY});function Y7(t,e){let a,i=e?.in;return t.forEach(r=>{!i&&typeof r=="object"&&(i=Le.bind(null,r));let s=ne(r,i);(!a||a<s||isNaN(+s))&&(a=s)}),Le(i,a||NaN)}var Co1,dk=v(()=>{at();Ae();Co1=Y7});function Z7(t,e){let a,i=e?.in;return t.forEach(r=>{!i&&typeof r=="object"&&(i=Le.bind(null,r));let s=ne(r,i);(!a||a>s||isNaN(+s))&&(a=s)}),Le(i,a||NaN)}var $o1,uk=v(()=>{at();Ae();$o1=Z7});function bY(t,e,a){let[i,r,s]=Je(a?.in,t,e.start,e.end);return Z7([Y7([i,r],a),s],a)}var No1,vY=v(()=>{r1();dk();uk();No1=bY});function X7(t,e){let a=+ne(t);if(isNaN(a))return NaN;let i,r;return e.forEach((s,n)=>{let o=ne(s);if(isNaN(+o)){i=NaN,r=NaN;return}let l=Math.abs(a-+o);(i==null||l<r)&&(i=n,r=l)}),i}var Ro1,pk=v(()=>{Ae();Ro1=X7});function yY(t,e,a){let[i,...r]=Je(a?.in,t,...e),s=X7(i,r);if(typeof s=="number"&&isNaN(s))return Le(i,NaN);if(s!==void 0)return r[s]}var Vo1,xY=v(()=>{r1();pk();at();Vo1=yY});function j2(t,e){let a=+ne(t)-+ne(e);return a<0?-1:a>0?1:a}var Wo1,Uo=v(()=>{Ae();Wo1=j2});function wY(t,e){let a=+ne(t)-+ne(e);return a>0?-1:a<0?1:a}var Zo1,MY=v(()=>{Ae();Zo1=wY});function Tt(t){return Le(t,Date.now())}var Ko1,r2=v(()=>{at();Ko1=Tt});function zY(t){let e=Math.trunc(t/7);return e===0?0:e}var t01,SY=v(()=>{xt();t01=zY});function Mr(t,e,a){let[i,r]=Je(a?.in,t,e);return+wr(i)==+wr(r)}var s01,Z4=v(()=>{r1();jc();s01=Mr});function Q7(t){return t instanceof Date||typeof t=="object"&&Object.prototype.toString.call(t)==="[object Date]"}var o01,hk=v(()=>{o01=Q7});function _2(t){return!(!Q7(t)&&typeof t!="number"||isNaN(+ne(t)))}var u01,us=v(()=>{hk();Ae();u01=_2});function kY(t,e,a){let[i,r]=Je(a?.in,t,e);if(!_2(i)||!_2(r))return NaN;let s=b2(i,r),n=s<0?-1:1,o=Math.trunc(s/7),l=o*5,d=i2(r,o*7);for(;!Mr(i,d);)l+=yr(d,a)?0:n,d=i2(d,n);return l===0?0:l}var y01,CY=v(()=>{r1();br();ds();Z4();us();qc();y01=kY});function K7(t,e,a){let[i,r]=Je(a?.in,t,e);return ua(i,a)-ua(r,a)}var z01,fk=v(()=>{r1();wn();z01=K7});function TY(t,e,a){let[i,r]=Je(a?.in,t,e),s=X1(i),n=X1(r),o=+s-E1(s),l=+n-E1(n);return Math.round((o-l)/gr)}var L01,_Y=v(()=>{cs();r1();xt();xr();L01=TY});function Wo(t,e,a){let[i,r]=Je(a?.in,t,e),s=i.getFullYear()-r.getFullYear(),n=i.getMonth()-r.getMonth();return s*12+n}var D01,J7=v(()=>{r1();D01=Wo});function Wc(t,e){let a=ne(t,e?.in);return Math.trunc(a.getMonth()/3)+1}var N01,mk=v(()=>{Ae();N01=Wc});function X4(t,e,a){let[i,r]=Je(a?.in,t,e),s=i.getFullYear()-r.getFullYear(),n=Wc(i)-Wc(r);return s*4+n}var O01,gk=v(()=>{r1();mk();O01=X4});function Go(t,e,a){let[i,r]=Je(a?.in,t,e),s=d1(i,a),n=d1(r,a),o=+s-E1(s),l=+n-E1(n);return Math.round((o-l)/gr)}var U01,eu=v(()=>{cs();r1();xt();Oi();U01=Go});function zn(t,e,a){let[i,r]=Je(a?.in,t,e);return i.getFullYear()-r.getFullYear()}var Y01,tu=v(()=>{r1();Y01=zn});function Q4(t,e,a){let[i,r]=Je(a?.in,t,e),s=LY(i,r),n=Math.abs(b2(i,r));i.setDate(i.getDate()-s*n);let o=+(LY(i,r)===-s),l=s*(n-o);return l===0?0:l}function LY(t,e){let a=t.getFullYear()-e.getFullYear()||t.getMonth()-e.getMonth()||t.getDate()-e.getDate()||t.getHours()-e.getHours()||t.getMinutes()-e.getMinutes()||t.getSeconds()-e.getSeconds()||t.getMilliseconds()-e.getMilliseconds();return a<0?-1:a>0?1:a}var K01,au=v(()=>{r1();ds();K01=Q4});function U2(t){return e=>{let i=(t?Math[t]:Math.trunc)(e);return i===0?0:i}}var ps=v(()=>{});function Yo(t,e,a){let[i,r]=Je(a?.in,t,e),s=(+i-+r)/Ba;return U2(a?.roundingMethod)(s)}var r41,iu=v(()=>{ps();r1();xt();r41=Yo});function ru(t,e,a){return V7(t,-e,a)}var o41,bk=v(()=>{ok();o41=ru});function $Y(t,e,a){let[i,r]=Je(a?.in,t,e),s=j2(i,r),n=Math.abs(K7(i,r,a)),o=ru(i,s*n,a),l=+(j2(o,r)===-s),d=s*(n-l);return d===0?0:d}var h41,AY=v(()=>{r1();Uo();fk();bk();h41=$Y});function K4(t,e){return+ne(t)-+ne(e)}var g41,su=v(()=>{Ae();g41=K4});function Zo(t,e,a){let i=K4(t,e)/q2;return U2(a?.roundingMethod)(i)}var w41,nu=v(()=>{ps();xt();su();w41=Zo});function J4(t,e){let a=ne(t,e?.in);return a.setHours(23,59,59,999),a}var S41,ou=v(()=>{Ae();S41=J4});function e3(t,e){let a=ne(t,e?.in),i=a.getMonth();return a.setFullYear(a.getFullYear(),i+1,0),a.setHours(23,59,59,999),a}var T41,lu=v(()=>{Ae();T41=e3});function cu(t,e){let a=ne(t,e?.in);return+J4(a,e)==+e3(a,e)}var D41,vk=v(()=>{ou();lu();Ae();D41=cu});function Sn(t,e,a){let[i,r,s]=Je(a?.in,t,t,e),n=j2(r,s),o=Math.abs(Wo(r,s));if(o<1)return 0;r.getMonth()===1&&r.getDate()>27&&r.setDate(30),r.setMonth(r.getMonth()-n*o);let l=j2(r,s)===-n;cu(i)&&o===1&&j2(i,s)===1&&(l=!1);let d=n*(o-+l);return d===0?0:d}var R41,Gc=v(()=>{r1();Uo();J7();vk();R41=Sn});function DY(t,e,a){let i=Sn(t,e,a)/3;return U2(a?.roundingMethod)(i)}var q41,EY=v(()=>{ps();Gc();q41=DY});function zr(t,e,a){let i=K4(t,e)/1e3;return U2(a?.roundingMethod)(i)}var W41,Yc=v(()=>{ps();su();W41=zr});function PY(t,e,a){let i=Q4(t,e,a)/7;return U2(a?.roundingMethod)(i)}var X41,NY=v(()=>{ps();au();X41=PY});function du(t,e,a){let[i,r]=Je(a?.in,t,e),s=j2(i,r),n=Math.abs(zn(i,r));i.setFullYear(1584),r.setFullYear(1584);let o=j2(i,r)===-s,l=s*(n-+o);return l===0?0:l}var t31,yk=v(()=>{r1();Uo();tu();t31=du});function v2(t,e){let[a,i]=Je(t,e.start,e.end);return{start:a,end:i}}var Sr=v(()=>{r1()});function uu(t,e){let{start:a,end:i}=v2(e?.in,t),r=+a>+i,s=r?+a:+i,n=r?i:a;n.setHours(0,0,0,0);let o=e?.step??1;if(!o)return[];o<0&&(o=-o,r=!r);let l=[];for(;+n<=s;)l.push(Le(a,n)),n.setDate(n.getDate()+o),n.setHours(0,0,0,0);return r?l.reverse():l}var o31,xk=v(()=>{Sr();at();o31=uu});function IY(t,e){let{start:a,end:i}=v2(e?.in,t),r=+a>+i,s=r?+a:+i,n=r?i:a;n.setMinutes(0,0,0);let o=e?.step??1;if(!o)return[];o<0&&(o=-o,r=!r);let l=[];for(;+n<=s;)l.push(Le(a,n)),n.setHours(n.getHours()+o);return r?l.reverse():l}var u31,FY=v(()=>{Sr();at();u31=IY});function RY(t,e){let{start:a,end:i}=v2(e?.in,t);a.setSeconds(0,0);let r=+a>+i,s=r?+a:+i,n=r?i:a,o=e?.step??1;if(!o)return[];o<0&&(o=-o,r=!r);let l=[];for(;+n<=s;)l.push(Le(a,n)),n=G4(n,o);return r?l.reverse():l}var g31,OY=v(()=>{Sr();j7();at();g31=RY});function BY(t,e){let{start:a,end:i}=v2(e?.in,t),r=+a>+i,s=r?+a:+i,n=r?i:a;n.setHours(0,0,0,0),n.setDate(1);let o=e?.step??1;if(!o)return[];o<0&&(o=-o,r=!r);let l=[];for(;+n<=s;)l.push(Le(a,n)),n.setMonth(n.getMonth()+o);return r?l.reverse():l}var x31,HY=v(()=>{Sr();at();x31=BY});function kr(t,e){let a=ne(t,e?.in),i=a.getMonth(),r=i-i%3;return a.setMonth(r,1),a.setHours(0,0,0,0),a}var z31,pu=v(()=>{Ae();z31=kr});function qY(t,e){let{start:a,end:i}=v2(e?.in,t),r=+a>+i,s=r?+kr(a):+kr(i),n=r?kr(i):kr(a),o=e?.step??1;if(!o)return[];o<0&&(o=-o,r=!r);let l=[];for(;+n<=s;)l.push(Le(a,n)),n=Y4(n,o);return r?l.reverse():l}var L31,VY=v(()=>{Sr();U7();at();pu();L31=qY});function jY(t,e){let{start:a,end:i}=v2(e?.in,t),r=+a>+i,s=r?d1(i,e):d1(a,e),n=r?d1(a,e):d1(i,e);s.setHours(15),n.setHours(15);let o=+n.getTime(),l=s,d=e?.step??1;if(!d)return[];d<0&&(d=-d,r=!r);let u=[];for(;+l<=o;)l.setHours(0),u.push(Le(a,l)),l=Mn(l,d),l.setHours(15);return r?u.reverse():u}var N31,UY=v(()=>{Sr();Uc();at();Oi();N31=jY});function t3(t,e){let{start:a,end:i}=v2(e?.in,t),r=uu({start:a,end:i},e),s=[],n=0;for(;n<r.length;){let o=r[n++];yr(o)&&s.push(Le(a,o))}return s}var H31,hu=v(()=>{Sr();at();xk();qc();H31=t3});function kn(t,e){let a=ne(t,e?.in);return a.setDate(1),a.setHours(0,0,0,0),a}var j31,Zc=v(()=>{Ae();j31=kn});function WY(t,e){let a=kn(t,e),i=e3(t,e);return t3({start:a,end:i},e)}var Z31,GY=v(()=>{hu();lu();Zc();Z31=WY});function fu(t,e){let a=ne(t,e?.in),i=a.getFullYear();return a.setFullYear(i+1,0,0),a.setHours(23,59,59,999),a}var K31,wk=v(()=>{Ae();K31=fu});function a3(t,e){let a=ne(t,e?.in);return a.setFullYear(a.getFullYear(),0,1),a.setHours(0,0,0,0),a}var tl1,mu=v(()=>{Ae();tl1=a3});function YY(t,e){let a=a3(t,e),i=fu(t,e);return t3({start:a,end:i},e)}var nl1,ZY=v(()=>{hu();wk();mu();nl1=YY});function XY(t,e){let{start:a,end:i}=v2(e?.in,t),r=+a>+i,s=r?+a:+i,n=r?i:a;n.setHours(0,0,0,0),n.setMonth(0,1);let o=e?.step??1;if(!o)return[];o<0&&(o=-o,r=!r);let l=[];for(;+n<=s;)l.push(Le(a,n)),n.setFullYear(n.getFullYear()+o);return r?l.reverse():l}var dl1,QY=v(()=>{Sr();at();dl1=XY});function KY(t,e){let a=ne(t,e?.in),i=a.getFullYear(),r=9+Math.floor(i/10)*10;return a.setFullYear(r,11,31),a.setHours(23,59,59,999),a}var hl1,JY=v(()=>{Ae();hl1=KY});function eZ(t,e){let a=ne(t,e?.in);return a.setMinutes(59,59,999),a}var gl1,tZ=v(()=>{Ae();gl1=eZ});function gu(t,e){let a=Kt(),i=e?.weekStartsOn??e?.locale?.options?.weekStartsOn??a.weekStartsOn??a.locale?.options?.weekStartsOn??0,r=ne(t,e?.in),s=r.getDay(),n=(s<i?-7:0)+6-(s-i);return r.setDate(r.getDate()+n),r.setHours(23,59,59,999),r}var xl1,Mk=v(()=>{V2();Ae();xl1=gu});function aZ(t,e){return gu(t,{...e,weekStartsOn:1})}var zl1,iZ=v(()=>{Mk();zl1=aZ});function rZ(t,e){let a=ua(t,e),i=Le(e?.in||t,0);i.setFullYear(a+1,0,4),i.setHours(0,0,0,0);let r=X1(i,e);return r.setMilliseconds(r.getMilliseconds()-1),r}var _l1,sZ=v(()=>{at();wn();xr();_l1=rZ});function nZ(t,e){let a=ne(t,e?.in);return a.setSeconds(59,999),a}var Al1,oZ=v(()=>{Ae();Al1=nZ});function lZ(t,e){let a=ne(t,e?.in),i=a.getMonth(),r=i-i%3+3;return a.setMonth(r,0),a.setHours(23,59,59,999),a}var Pl1,cZ=v(()=>{Ae();Pl1=lZ});function dZ(t,e){let a=ne(t,e?.in);return a.setMilliseconds(999),a}var Fl1,uZ=v(()=>{Ae();Fl1=dZ});function pZ(t){return J4(Date.now(),t)}var Bl1,hZ=v(()=>{ou();Bl1=pZ});function fZ(t){let e=Tt(t?.in),a=e.getFullYear(),i=e.getMonth(),r=e.getDate(),s=Tt(t?.in);return s.setFullYear(a,i,r+1),s.setHours(23,59,59,999),t?.in?t.in(s):s}var Vl1,mZ=v(()=>{r2();Vl1=fZ});function gZ(t){let e=Tt(t?.in),a=Le(t?.in,0);return a.setFullYear(e.getFullYear(),e.getMonth(),e.getDate()-1),a.setHours(23,59,59,999),a}var Gl1,bZ=v(()=>{at();r2();Gl1=gZ});var tCt,vZ,yZ=v(()=>{tCt={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},vZ=(t,e,a)=>{let i,r=tCt[t];return typeof r=="string"?i=r:e===1?i=r.one:i=r.other.replace("{{count}}",e.toString()),a?.addSuffix?a.comparison&&a.comparison>0?"in "+i:i+" ago":i}});function bu(t){return(e={})=>{let a=e.width?String(e.width):t.defaultWidth;return t.formats[a]||t.formats[t.defaultWidth]}}var xZ=v(()=>{});var aCt,iCt,rCt,wZ,MZ=v(()=>{xZ();aCt={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},iCt={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},rCt={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},wZ={date:bu({formats:aCt,defaultWidth:"full"}),time:bu({formats:iCt,defaultWidth:"full"}),dateTime:bu({formats:rCt,defaultWidth:"full"})}});var sCt,zZ,SZ=v(()=>{sCt={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},zZ=(t,e,a,i)=>sCt[t]});function i3(t){return(e,a)=>{let i=a?.context?String(a.context):"standalone",r;if(i==="formatting"&&t.formattingValues){let n=t.defaultFormattingWidth||t.defaultWidth,o=a?.width?String(a.width):n;r=t.formattingValues[o]||t.formattingValues[n]}else{let n=t.defaultWidth,o=a?.width?String(a.width):t.defaultWidth;r=t.values[o]||t.values[n]}let s=t.argumentCallback?t.argumentCallback(e):e;return r[s]}}var kZ=v(()=>{});var nCt,oCt,lCt,cCt,dCt,uCt,pCt,CZ,TZ=v(()=>{kZ();nCt={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},oCt={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},lCt={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},cCt={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},dCt={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},uCt={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},pCt=(t,e)=>{let a=Number(t),i=a%100;if(i>20||i<10)switch(i%10){case 1:return a+"st";case 2:return a+"nd";case 3:return a+"rd"}return a+"th"},CZ={ordinalNumber:pCt,era:i3({values:nCt,defaultWidth:"wide"}),quarter:i3({values:oCt,defaultWidth:"wide",argumentCallback:t=>t-1}),month:i3({values:lCt,defaultWidth:"wide"}),day:i3({values:cCt,defaultWidth:"wide"}),dayPeriod:i3({values:dCt,defaultWidth:"wide",formattingValues:uCt,defaultFormattingWidth:"wide"})}});function r3(t){return(e,a={})=>{let i=a.width,r=i&&t.matchPatterns[i]||t.matchPatterns[t.defaultMatchWidth],s=e.match(r);if(!s)return null;let n=s[0],o=i&&t.parsePatterns[i]||t.parsePatterns[t.defaultParseWidth],l=Array.isArray(o)?fCt(o,c=>c.test(n)):hCt(o,c=>c.test(n)),d;d=t.valueCallback?t.valueCallback(l):l,d=a.valueCallback?a.valueCallback(d):d;let u=e.slice(n.length);return{value:d,rest:u}}}function hCt(t,e){for(let a in t)if(Object.prototype.hasOwnProperty.call(t,a)&&e(t[a]))return a}function fCt(t,e){for(let a=0;a<t.length;a++)if(e(t[a]))return a}var _Z=v(()=>{});function LZ(t){return(e,a={})=>{let i=e.match(t.matchPattern);if(!i)return null;let r=i[0],s=e.match(t.parsePattern);if(!s)return null;let n=t.valueCallback?t.valueCallback(s[0]):s[0];n=a.valueCallback?a.valueCallback(n):n;let o=e.slice(r.length);return{value:n,rest:o}}}var $Z=v(()=>{});var mCt,gCt,bCt,vCt,yCt,xCt,wCt,MCt,zCt,SCt,kCt,CCt,AZ,DZ=v(()=>{_Z();$Z();mCt=/^(\d+)(th|st|nd|rd)?/i,gCt=/\d+/i,bCt={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},vCt={any:[/^b/i,/^(a|c)/i]},yCt={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},xCt={any:[/1/i,/2/i,/3/i,/4/i]},wCt={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},MCt={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},zCt={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},SCt={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},kCt={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},CCt={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},AZ={ordinalNumber:LZ({matchPattern:mCt,parsePattern:gCt,valueCallback:t=>parseInt(t,10)}),era:r3({matchPatterns:bCt,defaultMatchWidth:"wide",parsePatterns:vCt,defaultParseWidth:"any"}),quarter:r3({matchPatterns:yCt,defaultMatchWidth:"wide",parsePatterns:xCt,defaultParseWidth:"any",valueCallback:t=>t+1}),month:r3({matchPatterns:wCt,defaultMatchWidth:"wide",parsePatterns:MCt,defaultParseWidth:"any"}),day:r3({matchPatterns:zCt,defaultMatchWidth:"wide",parsePatterns:SCt,defaultParseWidth:"any"}),dayPeriod:r3({matchPatterns:kCt,defaultMatchWidth:"any",parsePatterns:CCt,defaultParseWidth:"any"})}});var Da,hc1,EZ=v(()=>{yZ();MZ();SZ();TZ();DZ();Da={code:"en-US",formatDistance:vZ,formatLong:wZ,formatRelative:zZ,localize:CZ,match:AZ,options:{weekStartsOn:0,firstWeekContainsDate:1}},hc1=Da});var Xo=v(()=>{EZ()});function vu(t,e){let a=ne(t,e?.in);return b2(a,a3(a))+1}var xc1,zk=v(()=>{ds();mu();Ae();xc1=vu});function s3(t,e){let a=ne(t,e?.in),i=+X1(a)-+Ha(a);return Math.round(i/gr)+1}var Cc1,yu=v(()=>{xt();xr();W4();Ae();Cc1=s3});function Cn(t,e){let a=ne(t,e?.in),i=a.getFullYear(),r=Kt(),s=e?.firstWeekContainsDate??e?.locale?.options?.firstWeekContainsDate??r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,n=Le(e?.in||t,0);n.setFullYear(i+1,0,s),n.setHours(0,0,0,0);let o=d1(n,e),l=Le(e?.in||t,0);l.setFullYear(i,0,s),l.setHours(0,0,0,0);let d=d1(l,e);return+a>=+o?i+1:+a>=+d?i:i-1}var Dc1,Xc=v(()=>{V2();at();Oi();Ae();Dc1=Cn});function Qo(t,e){let a=Kt(),i=e?.firstWeekContainsDate??e?.locale?.options?.firstWeekContainsDate??a.firstWeekContainsDate??a.locale?.options?.firstWeekContainsDate??1,r=Cn(t,e),s=Le(e?.in||t,0);return s.setFullYear(r,0,i),s.setHours(0,0,0,0),d1(s,e)}var Rc1,xu=v(()=>{V2();at();Xc();Oi();Rc1=Qo});function n3(t,e){let a=ne(t,e?.in),i=+d1(a,e)-+Qo(a,e);return Math.round(i/gr)+1}var jc1,wu=v(()=>{xt();Oi();xu();Ae();jc1=n3});function Ge(t,e){let a=t<0?"-":"",i=Math.abs(t).toString().padStart(e,"0");return a+i}var Ko=v(()=>{});var qa,Sk=v(()=>{Ko();qa={y(t,e){let a=t.getFullYear(),i=a>0?a:1-a;return Ge(e==="yy"?i%100:i,e.length)},M(t,e){let a=t.getMonth();return e==="M"?String(a+1):Ge(a+1,2)},d(t,e){return Ge(t.getDate(),e.length)},a(t,e){let a=t.getHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return a.toUpperCase();case"aaa":return a;case"aaaaa":return a[0];default:return a==="am"?"a.m.":"p.m."}},h(t,e){return Ge(t.getHours()%12||12,e.length)},H(t,e){return Ge(t.getHours(),e.length)},m(t,e){return Ge(t.getMinutes(),e.length)},s(t,e){return Ge(t.getSeconds(),e.length)},S(t,e){let a=e.length,i=t.getMilliseconds(),r=Math.trunc(i*Math.pow(10,a-3));return Ge(r,e.length)}}});function PZ(t,e=""){let a=t>0?"-":"+",i=Math.abs(t),r=Math.trunc(i/60),s=i%60;return s===0?a+String(r):a+String(r)+e+Ge(s,2)}function NZ(t,e){return t%60===0?(t>0?"-":"+")+Ge(Math.abs(t)/60,2):Jo(t,e)}function Jo(t,e=""){let a=t>0?"-":"+",i=Math.abs(t),r=Ge(Math.trunc(i/60),2),s=Ge(i%60,2);return a+r+e+s}var o3,Qc,IZ=v(()=>{zk();yu();wn();wu();Xc();Ko();Sk();o3={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Qc={G:function(t,e,a){let i=t.getFullYear()>0?1:0;switch(e){case"G":case"GG":case"GGG":return a.era(i,{width:"abbreviated"});case"GGGGG":return a.era(i,{width:"narrow"});default:return a.era(i,{width:"wide"})}},y:function(t,e,a){if(e==="yo"){let i=t.getFullYear(),r=i>0?i:1-i;return a.ordinalNumber(r,{unit:"year"})}return qa.y(t,e)},Y:function(t,e,a,i){let r=Cn(t,i),s=r>0?r:1-r;if(e==="YY"){let n=s%100;return Ge(n,2)}return e==="Yo"?a.ordinalNumber(s,{unit:"year"}):Ge(s,e.length)},R:function(t,e){let a=ua(t);return Ge(a,e.length)},u:function(t,e){let a=t.getFullYear();return Ge(a,e.length)},Q:function(t,e,a){let i=Math.ceil((t.getMonth()+1)/3);switch(e){case"Q":return String(i);case"QQ":return Ge(i,2);case"Qo":return a.ordinalNumber(i,{unit:"quarter"});case"QQQ":return a.quarter(i,{width:"abbreviated",context:"formatting"});case"QQQQQ":return a.quarter(i,{width:"narrow",context:"formatting"});default:return a.quarter(i,{width:"wide",context:"formatting"})}},q:function(t,e,a){let i=Math.ceil((t.getMonth()+1)/3);switch(e){case"q":return String(i);case"qq":return Ge(i,2);case"qo":return a.ordinalNumber(i,{unit:"quarter"});case"qqq":return a.quarter(i,{width:"abbreviated",context:"standalone"});case"qqqqq":return a.quarter(i,{width:"narrow",context:"standalone"});default:return a.quarter(i,{width:"wide",context:"standalone"})}},M:function(t,e,a){let i=t.getMonth();switch(e){case"M":case"MM":return qa.M(t,e);case"Mo":return a.ordinalNumber(i+1,{unit:"month"});case"MMM":return a.month(i,{width:"abbreviated",context:"formatting"});case"MMMMM":return a.month(i,{width:"narrow",context:"formatting"});default:return a.month(i,{width:"wide",context:"formatting"})}},L:function(t,e,a){let i=t.getMonth();switch(e){case"L":return String(i+1);case"LL":return Ge(i+1,2);case"Lo":return a.ordinalNumber(i+1,{unit:"month"});case"LLL":return a.month(i,{width:"abbreviated",context:"standalone"});case"LLLLL":return a.month(i,{width:"narrow",context:"standalone"});default:return a.month(i,{width:"wide",context:"standalone"})}},w:function(t,e,a,i){let r=n3(t,i);return e==="wo"?a.ordinalNumber(r,{unit:"week"}):Ge(r,e.length)},I:function(t,e,a){let i=s3(t);return e==="Io"?a.ordinalNumber(i,{unit:"week"}):Ge(i,e.length)},d:function(t,e,a){return e==="do"?a.ordinalNumber(t.getDate(),{unit:"date"}):qa.d(t,e)},D:function(t,e,a){let i=vu(t);return e==="Do"?a.ordinalNumber(i,{unit:"dayOfYear"}):Ge(i,e.length)},E:function(t,e,a){let i=t.getDay();switch(e){case"E":case"EE":case"EEE":return a.day(i,{width:"abbreviated",context:"formatting"});case"EEEEE":return a.day(i,{width:"narrow",context:"formatting"});case"EEEEEE":return a.day(i,{width:"short",context:"formatting"});default:return a.day(i,{width:"wide",context:"formatting"})}},e:function(t,e,a,i){let r=t.getDay(),s=(r-i.weekStartsOn+8)%7||7;switch(e){case"e":return String(s);case"ee":return Ge(s,2);case"eo":return a.ordinalNumber(s,{unit:"day"});case"eee":return a.day(r,{width:"abbreviated",context:"formatting"});case"eeeee":return a.day(r,{width:"narrow",context:"formatting"});case"eeeeee":return a.day(r,{width:"short",context:"formatting"});default:return a.day(r,{width:"wide",context:"formatting"})}},c:function(t,e,a,i){let r=t.getDay(),s=(r-i.weekStartsOn+8)%7||7;switch(e){case"c":return String(s);case"cc":return Ge(s,e.length);case"co":return a.ordinalNumber(s,{unit:"day"});case"ccc":return a.day(r,{width:"abbreviated",context:"standalone"});case"ccccc":return a.day(r,{width:"narrow",context:"standalone"});case"cccccc":return a.day(r,{width:"short",context:"standalone"});default:return a.day(r,{width:"wide",context:"standalone"})}},i:function(t,e,a){let i=t.getDay(),r=i===0?7:i;switch(e){case"i":return String(r);case"ii":return Ge(r,e.length);case"io":return a.ordinalNumber(r,{unit:"day"});case"iii":return a.day(i,{width:"abbreviated",context:"formatting"});case"iiiii":return a.day(i,{width:"narrow",context:"formatting"});case"iiiiii":return a.day(i,{width:"short",context:"formatting"});default:return a.day(i,{width:"wide",context:"formatting"})}},a:function(t,e,a){let r=t.getHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return a.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return a.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return a.dayPeriod(r,{width:"narrow",context:"formatting"});default:return a.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(t,e,a){let i=t.getHours(),r;switch(i===12?r=o3.noon:i===0?r=o3.midnight:r=i/12>=1?"pm":"am",e){case"b":case"bb":return a.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"bbb":return a.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return a.dayPeriod(r,{width:"narrow",context:"formatting"});default:return a.dayPeriod(r,{width:"wide",context:"formatting"})}},B:function(t,e,a){let i=t.getHours(),r;switch(i>=17?r=o3.evening:i>=12?r=o3.afternoon:i>=4?r=o3.morning:r=o3.night,e){case"B":case"BB":case"BBB":return a.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"BBBBB":return a.dayPeriod(r,{width:"narrow",context:"formatting"});default:return a.dayPeriod(r,{width:"wide",context:"formatting"})}},h:function(t,e,a){if(e==="ho"){let i=t.getHours()%12;return i===0&&(i=12),a.ordinalNumber(i,{unit:"hour"})}return qa.h(t,e)},H:function(t,e,a){return e==="Ho"?a.ordinalNumber(t.getHours(),{unit:"hour"}):qa.H(t,e)},K:function(t,e,a){let i=t.getHours()%12;return e==="Ko"?a.ordinalNumber(i,{unit:"hour"}):Ge(i,e.length)},k:function(t,e,a){let i=t.getHours();return i===0&&(i=24),e==="ko"?a.ordinalNumber(i,{unit:"hour"}):Ge(i,e.length)},m:function(t,e,a){return e==="mo"?a.ordinalNumber(t.getMinutes(),{unit:"minute"}):qa.m(t,e)},s:function(t,e,a){return e==="so"?a.ordinalNumber(t.getSeconds(),{unit:"second"}):qa.s(t,e)},S:function(t,e){return qa.S(t,e)},X:function(t,e,a){let i=t.getTimezoneOffset();if(i===0)return"Z";switch(e){case"X":return NZ(i);case"XXXX":case"XX":return Jo(i);default:return Jo(i,":")}},x:function(t,e,a){let i=t.getTimezoneOffset();switch(e){case"x":return NZ(i);case"xxxx":case"xx":return Jo(i);default:return Jo(i,":")}},O:function(t,e,a){let i=t.getTimezoneOffset();switch(e){case"O":case"OO":case"OOO":return"GMT"+PZ(i,":");default:return"GMT"+Jo(i,":")}},z:function(t,e,a){let i=t.getTimezoneOffset();switch(e){case"z":case"zz":case"zzz":return"GMT"+PZ(i,":");default:return"GMT"+Jo(i,":")}},t:function(t,e,a){let i=Math.trunc(+t/1e3);return Ge(i,e.length)},T:function(t,e,a){return Ge(+t,e.length)}}});var FZ,RZ,TCt,Tn,kk=v(()=>{FZ=(t,e)=>{switch(t){case"P":return e.date({width:"short"});case"PP":return e.date({width:"medium"});case"PPP":return e.date({width:"long"});default:return e.date({width:"full"})}},RZ=(t,e)=>{switch(t){case"p":return e.time({width:"short"});case"pp":return e.time({width:"medium"});case"ppp":return e.time({width:"long"});default:return e.time({width:"full"})}},TCt=(t,e)=>{let a=t.match(/(P+)(p+)?/)||[],i=a[1],r=a[2];if(!r)return FZ(t,e);let s;switch(i){case"P":s=e.dateTime({width:"short"});break;case"PP":s=e.dateTime({width:"medium"});break;case"PPP":s=e.dateTime({width:"long"});break;default:s=e.dateTime({width:"full"});break}return s.replace("{{date}}",FZ(i,e)).replace("{{time}}",RZ(r,e))},Tn={p:RZ,P:TCt}});function Mu(t){return _Ct.test(t)}function zu(t){return LCt.test(t)}function Kc(t,e,a){let i=ACt(t,e,a);if(console.warn(i),$Ct.includes(t))throw new RangeError(i)}function ACt(t,e,a){let i=t[0]==="Y"?"years":"days of the month";return`Use \`${t.toLowerCase()}\` instead of \`${t}\` (in \`${e}\`) for formatting ${i} to the input \`${a}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}var _Ct,LCt,$Ct,Ck=v(()=>{_Ct=/^D+$/,LCt=/^Y+$/,$Ct=["D","DD","YY","YYYY"]});function Jc(t,e,a){let i=Kt(),r=a?.locale??i.locale??Da,s=a?.firstWeekContainsDate??a?.locale?.options?.firstWeekContainsDate??i.firstWeekContainsDate??i.locale?.options?.firstWeekContainsDate??1,n=a?.weekStartsOn??a?.locale?.options?.weekStartsOn??i.weekStartsOn??i.locale?.options?.weekStartsOn??0,o=ne(t,a?.in);if(!_2(o))throw new RangeError("Invalid time value");let l=e.match(ECt).map(u=>{let c=u[0];if(c==="p"||c==="P"){let f=Tn[c];return f(u,r.formatLong)}return u}).join("").match(DCt).map(u=>{if(u==="''")return{isToken:!1,value:"'"};let c=u[0];if(c==="'")return{isToken:!1,value:FCt(u)};if(Qc[c])return{isToken:!0,value:u};if(c.match(ICt))throw new RangeError("Format string contains an unescaped latin alphabet character `"+c+"`");return{isToken:!1,value:u}});r.localize.preprocessor&&(l=r.localize.preprocessor(o,l));let d={firstWeekContainsDate:s,weekStartsOn:n,locale:r};return l.map(u=>{if(!u.isToken)return u.value;let c=u.value;(!a?.useAdditionalWeekYearTokens&&zu(c)||!a?.useAdditionalDayOfYearTokens&&Mu(c))&&Kc(c,e,String(t));let f=Qc[c[0]];return f(o,c,r.localize,d)}).join("")}function FCt(t){let e=t.match(PCt);return e?e[1].replace(NCt,"'"):t}var DCt,ECt,PCt,NCt,ICt,p61,Tk=v(()=>{Xo();V2();IZ();kk();Ck();us();Ae();DCt=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,ECt=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,PCt=/^'([^]*?)'?$/,NCt=/''/g,ICt=/[a-zA-Z]/;p61=Jc});function Su(t,e,a){let i=Kt(),r=a?.locale??i.locale??Da,s=2520,n=j2(t,e);if(isNaN(n))throw new RangeError("Invalid time value");let o=Object.assign({},a,{addSuffix:a?.addSuffix,comparison:n}),[l,d]=Je(a?.in,...n>0?[e,t]:[t,e]),u=zr(d,l),c=(E1(d)-E1(l))/1e3,f=Math.round((u-c)/60),g;if(f<2)return a?.includeSeconds?u<5?r.formatDistance("lessThanXSeconds",5,o):u<10?r.formatDistance("lessThanXSeconds",10,o):u<20?r.formatDistance("lessThanXSeconds",20,o):u<40?r.formatDistance("halfAMinute",0,o):u<60?r.formatDistance("lessThanXMinutes",1,o):r.formatDistance("xMinutes",1,o):f===0?r.formatDistance("lessThanXMinutes",1,o):r.formatDistance("xMinutes",f,o);if(f<45)return r.formatDistance("xMinutes",f,o);if(f<90)return r.formatDistance("aboutXHours",1,o);if(f<V4){let y=Math.round(f/60);return r.formatDistance("aboutXHours",y,o)}else{if(f<s)return r.formatDistance("xDays",1,o);if(f<vn){let y=Math.round(f/V4);return r.formatDistance("xDays",y,o)}else if(f<vn*2)return g=Math.round(f/vn),r.formatDistance("aboutXMonths",g,o)}if(g=Sn(d,l),g<12){let y=Math.round(f/vn);return r.formatDistance("xMonths",y,o)}else{let y=g%12,b=Math.trunc(g/12);return y<3?r.formatDistance("aboutXYears",b,o):y<9?r.formatDistance("overXYears",b,o):r.formatDistance("almostXYears",b+1,o)}}var M61,_k=v(()=>{Xo();V2();cs();r1();Uo();xt();Gc();Yc();M61=Su});function ku(t,e,a){let i=Kt(),r=a?.locale??i.locale??Da,s=j2(t,e);if(isNaN(s))throw new RangeError("Invalid time value");let n=Object.assign({},a,{addSuffix:a?.addSuffix,comparison:s}),[o,l]=Je(a?.in,...s>0?[e,t]:[t,e]),d=U2(a?.roundingMethod??"round"),u=l.getTime()-o.getTime(),c=u/q2,f=E1(l)-E1(o),g=(u-f)/q2,y=a?.unit,b;if(y?b=y:c<1?b="second":c<60?b="minute":c<V4?b="hour":g<vn?b="day":g<QS?b="month":b="year",b==="second"){let m=d(u/1e3);return r.formatDistance("xSeconds",m,n)}else if(b==="minute"){let m=d(c);return r.formatDistance("xMinutes",m,n)}else if(b==="hour"){let m=d(c/60);return r.formatDistance("xHours",m,n)}else if(b==="day"){let m=d(g/V4);return r.formatDistance("xDays",m,n)}else if(b==="month"){let m=d(g/vn);return m===12&&y!=="month"?r.formatDistance("xYears",1,n):r.formatDistance("xMonths",m,n)}else{let m=d(g/QS);return r.formatDistance("xYears",m,n)}}var A61,Lk=v(()=>{Xo();V2();ps();cs();r1();Uo();xt();A61=ku});function OZ(t,e){return Su(t,Tt(t),e)}var N61,BZ=v(()=>{r2();_k();N61=OZ});function HZ(t,e){return ku(t,Tt(t),e)}var O61,qZ=v(()=>{r2();Lk();O61=HZ});function VZ(t,e){let a=Kt(),i=e?.locale??a.locale??Da,r=e?.format??RCt,s=e?.zero??!1,n=e?.delimiter??" ";return i.formatDistance?r.reduce((l,d)=>{let u=`x${d.replace(/(^.)/,f=>f.toUpperCase())}`,c=t[d];return c!==void 0&&(s||t[d])?l.concat(i.formatDistance(u,c)):l},[]).join(n):""}var RCt,V61,jZ=v(()=>{Xo();V2();RCt=["years","months","weeks","days","hours","minutes","seconds"];V61=VZ});function UZ(t,e){let a=ne(t,e?.in);if(isNaN(+a))throw new RangeError("Invalid time value");let i=e?.format??"extended",r=e?.representation??"complete",s="",n="",o=i==="extended"?"-":"",l=i==="extended"?":":"";if(r!=="time"){let d=Ge(a.getDate(),2),u=Ge(a.getMonth()+1,2);s=`${Ge(a.getFullYear(),4)}${o}${u}${o}${d}`}if(r!=="date"){let d=a.getTimezoneOffset();if(d!==0){let b=Math.abs(d),m=Ge(Math.trunc(b/60),2),x=Ge(b%60,2);n=`${d<0?"+":"-"}${m}:${x}`}else n="Z";let u=Ge(a.getHours(),2),c=Ge(a.getMinutes(),2),f=Ge(a.getSeconds(),2),g=s===""?"":"T",y=[u,c,f].join(l);s=`${s}${g}${y}${n}`}return s}var G61,WZ=v(()=>{Ko();Ae();G61=UZ});function GZ(t,e){let a=ne(t,e?.in);if(!_2(a))throw new RangeError("Invalid time value");let i=e?.format??"extended",r=e?.representation??"complete",s="",n=i==="extended"?"-":"",o=i==="extended"?":":"";if(r!=="time"){let l=Ge(a.getDate(),2),d=Ge(a.getMonth()+1,2);s=`${Ge(a.getFullYear(),4)}${n}${d}${n}${l}`}if(r!=="date"){let l=Ge(a.getHours(),2),d=Ge(a.getMinutes(),2),u=Ge(a.getSeconds(),2);s=`${s}${s===""?"":" "}${l}${o}${d}${o}${u}`}return s}var K61,YZ=v(()=>{Ko();us();Ae();K61=GZ});function ZZ(t){let{years:e=0,months:a=0,days:i=0,hours:r=0,minutes:s=0,seconds:n=0}=t;return`P${e}Y${a}M${i}DT${r}H${s}M${n}S`}var e51,XZ=v(()=>{e51=ZZ});function QZ(t,e){let a=ne(t,e?.in);if(!_2(a))throw new RangeError("Invalid time value");let i=e?.fractionDigits??0,r=Ge(a.getDate(),2),s=Ge(a.getMonth()+1,2),n=a.getFullYear(),o=Ge(a.getHours(),2),l=Ge(a.getMinutes(),2),d=Ge(a.getSeconds(),2),u="";if(i>0){let g=a.getMilliseconds(),y=Math.trunc(g*Math.pow(10,i-3));u="."+Ge(y,i)}let c="",f=a.getTimezoneOffset();if(f!==0){let g=Math.abs(f),y=Ge(Math.trunc(g/60),2),b=Ge(g%60,2);c=`${f<0?"+":"-"}${y}:${b}`}else c="Z";return`${n}-${s}-${r}T${o}:${l}:${d}${u}${c}`}var s51,KZ=v(()=>{Ko();us();Ae();s51=QZ});function JZ(t){let e=ne(t);if(!_2(e))throw new RangeError("Invalid time value");let a=OCt[e.getUTCDay()],i=Ge(e.getUTCDate(),2),r=BCt[e.getUTCMonth()],s=e.getUTCFullYear(),n=Ge(e.getUTCHours(),2),o=Ge(e.getUTCMinutes(),2),l=Ge(e.getUTCSeconds(),2);return`${a}, ${i} ${r} ${s} ${n}:${o}:${l} GMT`}var OCt,BCt,d51,eX=v(()=>{Ko();us();Ae();OCt=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],BCt=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];d51=JZ});function tX(t,e,a){let[i,r]=Je(a?.in,t,e),s=Kt(),n=a?.locale??s.locale??Da,o=a?.weekStartsOn??a?.locale?.options?.weekStartsOn??s.weekStartsOn??s.locale?.options?.weekStartsOn??0,l=b2(i,r);if(isNaN(l))throw new RangeError("Invalid time value");let d;l<-6?d="other":l<-1?d="lastWeek":l<0?d="yesterday":l<1?d="today":l<2?d="tomorrow":l<7?d="nextWeek":d="other";let u=n.formatRelative(d,i,r,{locale:n,weekStartsOn:o});return Jc(i,u,{locale:n,weekStartsOn:o})}var b51,aX=v(()=>{Xo();V2();r1();ds();Tk();b51=tX});function iX(t,e){return ne(t*1e3,e?.in)}var x51,rX=v(()=>{Ae();x51=iX});function Cu(t,e){return ne(t,e?.in).getDate()}var z51,$k=v(()=>{Ae();z51=Cu});function _n(t,e){return ne(t,e?.in).getDay()}var C51,e6=v(()=>{Ae();C51=_n});function Tu(t,e){let a=ne(t,e?.in),i=a.getFullYear(),r=a.getMonth(),s=Le(a,0);return s.setFullYear(i,r+1,0),s.setHours(0,0,0,0),s.getDate()}var $51,Ak=v(()=>{at();Ae();$51=Tu});function _u(t,e){let i=ne(t,e?.in).getFullYear();return i%400===0||i%4===0&&i%100!==0}var E51,Dk=v(()=>{Ae();E51=_u});function sX(t,e){let a=ne(t,e?.in);return Number.isNaN(+a)?NaN:_u(a)?366:365}var F51,nX=v(()=>{Dk();Ae();F51=sX});function oX(t,e){let i=ne(t,e?.in).getFullYear();return Math.floor(i/10)*10}var B51,lX=v(()=>{Ae();B51=oX});function Lu(){return Object.assign({},Kt())}var V51,Ek=v(()=>{V2();V51=Lu});function cX(t,e){return ne(t,e?.in).getHours()}var W51,dX=v(()=>{Ae();W51=cX});function $u(t,e){let a=ne(t,e?.in).getDay();return a===0?7:a}var Z51,Pk=v(()=>{Ae();Z51=$u});function uX(t,e){let a=Ha(t,e),r=+Ha(Mn(a,60))-+a;return Math.round(r/gr)}var e81,pX=v(()=>{Uc();xt();W4();e81=uX});function hX(t){return ne(t).getMilliseconds()}var i81,fX=v(()=>{Ae();i81=hX});function mX(t,e){return ne(t,e?.in).getMinutes()}var n81,gX=v(()=>{Ae();n81=mX});function bX(t,e){return ne(t,e?.in).getMonth()}var c81,vX=v(()=>{Ae();c81=bX});function yX(t,e){let[a,i]=[+ne(t.start),+ne(t.end)].sort((c,f)=>c-f),[r,s]=[+ne(e.start),+ne(e.end)].sort((c,f)=>c-f);if(!(a<s&&r<i))return 0;let o=r<a?a:r,l=o-E1(o),d=s>i?i:s,u=d-E1(d);return Math.ceil((u-l)/E7)}var f81,xX=v(()=>{cs();xt();Ae();f81=yX});function wX(t){return ne(t).getSeconds()}var b81,MX=v(()=>{Ae();b81=wX});function zX(t){return+ne(t)}var x81,SX=v(()=>{Ae();x81=zX});function kX(t){return Math.trunc(+ne(t)/1e3)}var z81,CX=v(()=>{Ae();z81=kX});function TX(t,e){let a=Kt(),i=e?.weekStartsOn??e?.locale?.options?.weekStartsOn??a.weekStartsOn??a.locale?.options?.weekStartsOn??0,r=Cu(ne(t,e?.in));if(isNaN(r))return NaN;let s=_n(kn(t,e)),n=i-s;n<=0&&(n+=7);let o=r-n;return Math.ceil(o/7)+1}var $81,_X=v(()=>{V2();$k();e6();Zc();Ae();$81=TX});function Au(t,e){let a=ne(t,e?.in),i=a.getMonth();return a.setFullYear(a.getFullYear(),i+1,0),a.setHours(0,0,0,0),ne(a,e?.in)}var E81,Nk=v(()=>{Ae();E81=Au});function LX(t,e){let a=ne(t,e?.in);return Go(Au(a,e),kn(a,e),e)+1}var O81,$X=v(()=>{eu();Nk();Zc();Ae();O81=LX});function AX(t,e){return ne(t,e?.in).getFullYear()}var q81,DX=v(()=>{Ae();q81=AX});function EX(t){return Math.trunc(t*Ba)}var U81,PX=v(()=>{xt();U81=EX});function NX(t){return Math.trunc(t*P7)}var Y81,IX=v(()=>{xt();Y81=NX});function FX(t){return Math.trunc(t*jo)}var Q81,RX=v(()=>{xt();Q81=FX});function OX(t,e,a){let[i,r]=Je(a?.in,t,e);if(isNaN(+i))throw new TypeError("Start date is invalid");if(isNaN(+r))throw new TypeError("End date is invalid");if(a?.assertPositive&&+i>+r)throw new TypeError("End date must be after start date");return{start:i,end:r}}var ed1,BX=v(()=>{r1();ed1=OX});function HX(t,e){let{start:a,end:i}=v2(e?.in,t),r={},s=du(i,a);s&&(r.years=s);let n=yn(a,{years:r.years}),o=Sn(i,n);o&&(r.months=o);let l=yn(n,{months:r.months}),d=Q4(i,l);d&&(r.days=d);let u=yn(l,{days:r.days}),c=Yo(i,u);c&&(r.hours=c);let f=yn(u,{hours:r.hours}),g=Zo(i,f);g&&(r.minutes=g);let y=yn(f,{minutes:r.minutes}),b=zr(i,y);return b&&(r.seconds=b),r}var dd1,qX=v(()=>{Sr();tk();au();iu();nu();Gc();Yc();yk();dd1=HX});function VX(t,e,a){let i;return HCt(e)?i=e:a=e,new Intl.DateTimeFormat(a?.locale,i).format(ne(t))}function HCt(t){return t!==void 0&&!("locale"in t)}var hd1,jX=v(()=>{Ae();hd1=VX});function UX(t,e,a){let i=0,r,[s,n]=Je(a?.in,t,e);if(a?.unit)r=a?.unit,r==="second"?i=zr(s,n):r==="minute"?i=Zo(s,n):r==="hour"?i=Yo(s,n):r==="day"?i=b2(s,n):r==="week"?i=Go(s,n):r==="month"?i=Wo(s,n):r==="quarter"?i=X4(s,n):r==="year"&&(i=zn(s,n));else{let l=zr(s,n);Math.abs(l)<j4?(i=zr(s,n),r="second"):Math.abs(l)<jo?(i=Zo(s,n),r="minute"):Math.abs(l)<A7&&Math.abs(b2(s,n))<1?(i=Yo(s,n),r="hour"):Math.abs(l)<uY&&(i=b2(s,n))&&Math.abs(i)<7?r="day":Math.abs(l)<JS?(i=Go(s,n),r="week"):Math.abs(l)<pY?(i=Wo(s,n),r="month"):Math.abs(l)<KS?X4(s,n)<4?(i=X4(s,n),r="quarter"):(i=zn(s,n),r="year"):(i=zn(s,n),r="year")}return new Intl.RelativeTimeFormat(a?.locale,{numeric:"auto",...a}).format(i,r)}var kd1,WX=v(()=>{r1();xt();ds();J7();gk();eu();tu();iu();nu();Yc();kd1=UX});function GX(t,e){return+ne(t)>+ne(e)}var _d1,YX=v(()=>{Ae();_d1=GX});function ZX(t,e){return+ne(t)<+ne(e)}var Ad1,XX=v(()=>{Ae();Ad1=ZX});function QX(t,e){return+ne(t)==+ne(e)}var Pd1,KX=v(()=>{Ae();Pd1=QX});function JX(t,e,a){let i=new Date(t,e,a);return i.getFullYear()===t&&i.getMonth()===e&&i.getDate()===a}var Id1,eQ=v(()=>{Id1=JX});function tQ(t,e){return ne(t,e?.in).getDate()===1}var Od1,aQ=v(()=>{Ae();Od1=tQ});function iQ(t,e){return ne(t,e?.in).getDay()===5}var qd1,rQ=v(()=>{Ae();qd1=iQ});function sQ(t){return+ne(t)>Date.now()}var Ud1,nQ=v(()=>{Ae();Ud1=sQ});function Du(t,e){let a=qCt(e)?new e(0):Le(e,0);return a.setFullYear(t.getFullYear(),t.getMonth(),t.getDate()),a.setHours(t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()),a}function qCt(t){return typeof t=="function"&&t.prototype?.constructor===t}var Yd1,Ik=v(()=>{at();Yd1=Du});var VCt,Eu,Pu,Nu,Fk=v(()=>{at();Ik();VCt=10,Eu=class{subPriority=0;validate(e,a){return!0}},Pu=class extends Eu{constructor(e,a,i,r,s){super(),this.value=e,this.validateValue=a,this.setValue=i,this.priority=r,s&&(this.subPriority=s)}validate(e,a){return this.validateValue(e,this.value,a)}set(e,a,i){return this.setValue(e,a,this.value,i)}},Nu=class extends Eu{priority=VCt;subPriority=-1;constructor(e,a){super(),this.context=e||(i=>Le(a,i))}set(e,a){return a.timestampIsSet?e:Le(e,Du(e,this.context))}}});var Ue,Ut=v(()=>{Fk();Ue=class{run(e,a,i,r){let s=this.parse(e,a,i,r);return s?{setter:new Pu(s.value,this.validate,this.set,this.priority,this.subPriority),rest:s.rest}:null}validate(e,a,i){return!0}}});var Iu,oQ=v(()=>{Ut();Iu=class extends Ue{priority=140;parse(e,a,i){switch(a){case"G":case"GG":case"GGG":return i.era(e,{width:"abbreviated"})||i.era(e,{width:"narrow"});case"GGGGG":return i.era(e,{width:"narrow"});default:return i.era(e,{width:"wide"})||i.era(e,{width:"abbreviated"})||i.era(e,{width:"narrow"})}}set(e,a,i){return a.era=i,e.setFullYear(i,0,1),e.setHours(0,0,0,0),e}incompatibleTokens=["R","u","t","T"]}});var Rt,hi,W2=v(()=>{Rt={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},hi={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/}});function s1(t,e){return t&&{value:e(t.value),rest:t.rest}}function Nt(t,e){let a=e.match(t);return a?{value:parseInt(a[0],10),rest:e.slice(a[0].length)}:null}function fi(t,e){let a=e.match(t);if(!a)return null;if(a[0]==="Z")return{value:0,rest:e.slice(1)};let i=a[1]==="+"?1:-1,r=a[2]?parseInt(a[2],10):0,s=a[3]?parseInt(a[3],10):0,n=a[5]?parseInt(a[5],10):0;return{value:i*(r*Ba+s*q2+n*q4),rest:e.slice(a[0].length)}}function Fu(t){return Nt(Rt.anyDigitsSigned,t)}function bt(t,e){switch(t){case 1:return Nt(Rt.singleDigit,e);case 2:return Nt(Rt.twoDigits,e);case 3:return Nt(Rt.threeDigits,e);case 4:return Nt(Rt.fourDigits,e);default:return Nt(new RegExp("^\\d{1,"+t+"}"),e)}}function l3(t,e){switch(t){case 1:return Nt(Rt.singleDigitSigned,e);case 2:return Nt(Rt.twoDigitsSigned,e);case 3:return Nt(Rt.threeDigitsSigned,e);case 4:return Nt(Rt.fourDigitsSigned,e);default:return Nt(new RegExp("^-?\\d{1,"+t+"}"),e)}}function c3(t){switch(t){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;default:return 0}}function Ru(t,e){let a=e>0,i=a?e:1-e,r;if(i<=50)r=t||100;else{let s=i+50,n=Math.trunc(s/100)*100,o=t>=s%100;r=t+n-(o?100:0)}return a?r:1-r}function Ou(t){return t%400===0||t%4===0&&t%100!==0}var Jt=v(()=>{xt();W2()});var Bu,lQ=v(()=>{Ut();Jt();Bu=class extends Ue{priority=130;incompatibleTokens=["Y","R","u","w","I","i","e","c","t","T"];parse(e,a,i){let r=s=>({year:s,isTwoDigitYear:a==="yy"});switch(a){case"y":return s1(bt(4,e),r);case"yo":return s1(i.ordinalNumber(e,{unit:"year"}),r);default:return s1(bt(a.length,e),r)}}validate(e,a){return a.isTwoDigitYear||a.year>0}set(e,a,i){let r=e.getFullYear();if(i.isTwoDigitYear){let n=Ru(i.year,r);return e.setFullYear(n,0,1),e.setHours(0,0,0,0),e}let s=!("era"in a)||a.era===1?i.year:1-i.year;return e.setFullYear(s,0,1),e.setHours(0,0,0,0),e}}});var Hu,cQ=v(()=>{Xc();Oi();Ut();Jt();Hu=class extends Ue{priority=130;parse(e,a,i){let r=s=>({year:s,isTwoDigitYear:a==="YY"});switch(a){case"Y":return s1(bt(4,e),r);case"Yo":return s1(i.ordinalNumber(e,{unit:"year"}),r);default:return s1(bt(a.length,e),r)}}validate(e,a){return a.isTwoDigitYear||a.year>0}set(e,a,i,r){let s=Cn(e,r);if(i.isTwoDigitYear){let o=Ru(i.year,s);return e.setFullYear(o,0,r.firstWeekContainsDate),e.setHours(0,0,0,0),d1(e,r)}let n=!("era"in a)||a.era===1?i.year:1-i.year;return e.setFullYear(n,0,r.firstWeekContainsDate),e.setHours(0,0,0,0),d1(e,r)}incompatibleTokens=["y","R","u","Q","q","M","L","I","d","D","i","t","T"]}});var qu,dQ=v(()=>{xr();at();Ut();Jt();qu=class extends Ue{priority=130;parse(e,a){return a==="R"?l3(4,e):l3(a.length,e)}set(e,a,i){let r=Le(e,0);return r.setFullYear(i,0,4),r.setHours(0,0,0,0),X1(r)}incompatibleTokens=["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]}});var Vu,uQ=v(()=>{Ut();Jt();Vu=class extends Ue{priority=130;parse(e,a){return a==="u"?l3(4,e):l3(a.length,e)}set(e,a,i){return e.setFullYear(i,0,1),e.setHours(0,0,0,0),e}incompatibleTokens=["G","y","Y","R","w","I","i","e","c","t","T"]}});var ju,pQ=v(()=>{Ut();Jt();ju=class extends Ue{priority=120;parse(e,a,i){switch(a){case"Q":case"QQ":return bt(a.length,e);case"Qo":return i.ordinalNumber(e,{unit:"quarter"});case"QQQ":return i.quarter(e,{width:"abbreviated",context:"formatting"})||i.quarter(e,{width:"narrow",context:"formatting"});case"QQQQQ":return i.quarter(e,{width:"narrow",context:"formatting"});default:return i.quarter(e,{width:"wide",context:"formatting"})||i.quarter(e,{width:"abbreviated",context:"formatting"})||i.quarter(e,{width:"narrow",context:"formatting"})}}validate(e,a){return a>=1&&a<=4}set(e,a,i){return e.setMonth((i-1)*3,1),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]}});var Uu,hQ=v(()=>{Ut();Jt();Uu=class extends Ue{priority=120;parse(e,a,i){switch(a){case"q":case"qq":return bt(a.length,e);case"qo":return i.ordinalNumber(e,{unit:"quarter"});case"qqq":return i.quarter(e,{width:"abbreviated",context:"standalone"})||i.quarter(e,{width:"narrow",context:"standalone"});case"qqqqq":return i.quarter(e,{width:"narrow",context:"standalone"});default:return i.quarter(e,{width:"wide",context:"standalone"})||i.quarter(e,{width:"abbreviated",context:"standalone"})||i.quarter(e,{width:"narrow",context:"standalone"})}}validate(e,a){return a>=1&&a<=4}set(e,a,i){return e.setMonth((i-1)*3,1),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]}});var Wu,fQ=v(()=>{W2();Ut();Jt();Wu=class extends Ue{incompatibleTokens=["Y","R","q","Q","L","w","I","D","i","e","c","t","T"];priority=110;parse(e,a,i){let r=s=>s-1;switch(a){case"M":return s1(Nt(Rt.month,e),r);case"MM":return s1(bt(2,e),r);case"Mo":return s1(i.ordinalNumber(e,{unit:"month"}),r);case"MMM":return i.month(e,{width:"abbreviated",context:"formatting"})||i.month(e,{width:"narrow",context:"formatting"});case"MMMMM":return i.month(e,{width:"narrow",context:"formatting"});default:return i.month(e,{width:"wide",context:"formatting"})||i.month(e,{width:"abbreviated",context:"formatting"})||i.month(e,{width:"narrow",context:"formatting"})}}validate(e,a){return a>=0&&a<=11}set(e,a,i){return e.setMonth(i,1),e.setHours(0,0,0,0),e}}});var Gu,mQ=v(()=>{W2();Ut();Jt();Gu=class extends Ue{priority=110;parse(e,a,i){let r=s=>s-1;switch(a){case"L":return s1(Nt(Rt.month,e),r);case"LL":return s1(bt(2,e),r);case"Lo":return s1(i.ordinalNumber(e,{unit:"month"}),r);case"LLL":return i.month(e,{width:"abbreviated",context:"standalone"})||i.month(e,{width:"narrow",context:"standalone"});case"LLLLL":return i.month(e,{width:"narrow",context:"standalone"});default:return i.month(e,{width:"wide",context:"standalone"})||i.month(e,{width:"abbreviated",context:"standalone"})||i.month(e,{width:"narrow",context:"standalone"})}}validate(e,a){return a>=0&&a<=11}set(e,a,i){return e.setMonth(i,1),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]}});function Yu(t,e,a){let i=ne(t,a?.in),r=n3(i,a)-e;return i.setDate(i.getDate()-r*7),ne(i,a?.in)}var O71,Rk=v(()=>{wu();Ae();O71=Yu});var Zu,gQ=v(()=>{Rk();Oi();W2();Ut();Jt();Zu=class extends Ue{priority=100;parse(e,a,i){switch(a){case"w":return Nt(Rt.week,e);case"wo":return i.ordinalNumber(e,{unit:"week"});default:return bt(a.length,e)}}validate(e,a){return a>=1&&a<=53}set(e,a,i,r){return d1(Yu(e,i,r),r)}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","i","t","T"]}});function Xu(t,e,a){let i=ne(t,a?.in),r=s3(i,a)-e;return i.setDate(i.getDate()-r*7),i}var Z71,Ok=v(()=>{yu();Ae();Z71=Xu});var Qu,bQ=v(()=>{Ok();xr();W2();Ut();Jt();Qu=class extends Ue{priority=100;parse(e,a,i){switch(a){case"I":return Nt(Rt.week,e);case"Io":return i.ordinalNumber(e,{unit:"week"});default:return bt(a.length,e)}}validate(e,a){return a>=1&&a<=53}set(e,a,i){return X1(Xu(e,i))}incompatibleTokens=["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]}});var jCt,UCt,Ku,vQ=v(()=>{W2();Ut();Jt();jCt=[31,28,31,30,31,30,31,31,30,31,30,31],UCt=[31,29,31,30,31,30,31,31,30,31,30,31],Ku=class extends Ue{priority=90;subPriority=1;parse(e,a,i){switch(a){case"d":return Nt(Rt.date,e);case"do":return i.ordinalNumber(e,{unit:"date"});default:return bt(a.length,e)}}validate(e,a){let i=e.getFullYear(),r=Ou(i),s=e.getMonth();return r?a>=1&&a<=UCt[s]:a>=1&&a<=jCt[s]}set(e,a,i){return e.setDate(i),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","q","Q","w","I","D","i","e","c","t","T"]}});var Ju,yQ=v(()=>{W2();Ut();Jt();Ju=class extends Ue{priority=90;subpriority=1;parse(e,a,i){switch(a){case"D":case"DD":return Nt(Rt.dayOfYear,e);case"Do":return i.ordinalNumber(e,{unit:"date"});default:return bt(a.length,e)}}validate(e,a){let i=e.getFullYear();return Ou(i)?a>=1&&a<=366:a>=1&&a<=365}set(e,a,i){return e.setMonth(0,i),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]}});function Ln(t,e,a){let i=Kt(),r=a?.weekStartsOn??a?.locale?.options?.weekStartsOn??i.weekStartsOn??i.locale?.options?.weekStartsOn??0,s=ne(t,a?.in),n=s.getDay(),l=(e%7+7)%7,d=7-r,u=e<0||e>6?e-(n+d)%7:(l+d)%7-(n+d)%7;return i2(s,u,a)}var fu1,t6=v(()=>{V2();br();Ae();fu1=Ln});var ep,xQ=v(()=>{t6();Ut();ep=class extends Ue{priority=90;parse(e,a,i){switch(a){case"E":case"EE":case"EEE":return i.day(e,{width:"abbreviated",context:"formatting"})||i.day(e,{width:"short",context:"formatting"})||i.day(e,{width:"narrow",context:"formatting"});case"EEEEE":return i.day(e,{width:"narrow",context:"formatting"});case"EEEEEE":return i.day(e,{width:"short",context:"formatting"})||i.day(e,{width:"narrow",context:"formatting"});default:return i.day(e,{width:"wide",context:"formatting"})||i.day(e,{width:"abbreviated",context:"formatting"})||i.day(e,{width:"short",context:"formatting"})||i.day(e,{width:"narrow",context:"formatting"})}}validate(e,a){return a>=0&&a<=6}set(e,a,i,r){return e=Ln(e,i,r),e.setHours(0,0,0,0),e}incompatibleTokens=["D","i","e","c","t","T"]}});var tp,wQ=v(()=>{t6();Ut();Jt();tp=class extends Ue{priority=90;parse(e,a,i,r){let s=n=>{let o=Math.floor((n-1)/7)*7;return(n+r.weekStartsOn+6)%7+o};switch(a){case"e":case"ee":return s1(bt(a.length,e),s);case"eo":return s1(i.ordinalNumber(e,{unit:"day"}),s);case"eee":return i.day(e,{width:"abbreviated",context:"formatting"})||i.day(e,{width:"short",context:"formatting"})||i.day(e,{width:"narrow",context:"formatting"});case"eeeee":return i.day(e,{width:"narrow",context:"formatting"});case"eeeeee":return i.day(e,{width:"short",context:"formatting"})||i.day(e,{width:"narrow",context:"formatting"});default:return i.day(e,{width:"wide",context:"formatting"})||i.day(e,{width:"abbreviated",context:"formatting"})||i.day(e,{width:"short",context:"formatting"})||i.day(e,{width:"narrow",context:"formatting"})}}validate(e,a){return a>=0&&a<=6}set(e,a,i,r){return e=Ln(e,i,r),e.setHours(0,0,0,0),e}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]}});var ap,MQ=v(()=>{t6();Ut();Jt();ap=class extends Ue{priority=90;parse(e,a,i,r){let s=n=>{let o=Math.floor((n-1)/7)*7;return(n+r.weekStartsOn+6)%7+o};switch(a){case"c":case"cc":return s1(bt(a.length,e),s);case"co":return s1(i.ordinalNumber(e,{unit:"day"}),s);case"ccc":return i.day(e,{width:"abbreviated",context:"standalone"})||i.day(e,{width:"short",context:"standalone"})||i.day(e,{width:"narrow",context:"standalone"});case"ccccc":return i.day(e,{width:"narrow",context:"standalone"});case"cccccc":return i.day(e,{width:"short",context:"standalone"})||i.day(e,{width:"narrow",context:"standalone"});default:return i.day(e,{width:"wide",context:"standalone"})||i.day(e,{width:"abbreviated",context:"standalone"})||i.day(e,{width:"short",context:"standalone"})||i.day(e,{width:"narrow",context:"standalone"})}}validate(e,a){return a>=0&&a<=6}set(e,a,i,r){return e=Ln(e,i,r),e.setHours(0,0,0,0),e}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]}});function ip(t,e,a){let i=ne(t,a?.in),r=$u(i,a),s=e-r;return i2(i,s,a)}var $u1,Bk=v(()=>{br();Pk();Ae();$u1=ip});var rp,zQ=v(()=>{Bk();Ut();Jt();rp=class extends Ue{priority=90;parse(e,a,i){let r=s=>s===0?7:s;switch(a){case"i":case"ii":return bt(a.length,e);case"io":return i.ordinalNumber(e,{unit:"day"});case"iii":return s1(i.day(e,{width:"abbreviated",context:"formatting"})||i.day(e,{width:"short",context:"formatting"})||i.day(e,{width:"narrow",context:"formatting"}),r);case"iiiii":return s1(i.day(e,{width:"narrow",context:"formatting"}),r);case"iiiiii":return s1(i.day(e,{width:"short",context:"formatting"})||i.day(e,{width:"narrow",context:"formatting"}),r);default:return s1(i.day(e,{width:"wide",context:"formatting"})||i.day(e,{width:"abbreviated",context:"formatting"})||i.day(e,{width:"short",context:"formatting"})||i.day(e,{width:"narrow",context:"formatting"}),r)}}validate(e,a){return a>=1&&a<=7}set(e,a,i){return e=ip(e,i),e.setHours(0,0,0,0),e}incompatibleTokens=["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]}});var sp,SQ=v(()=>{Ut();Jt();sp=class extends Ue{priority=80;parse(e,a,i){switch(a){case"a":case"aa":case"aaa":return i.dayPeriod(e,{width:"abbreviated",context:"formatting"})||i.dayPeriod(e,{width:"narrow",context:"formatting"});case"aaaaa":return i.dayPeriod(e,{width:"narrow",context:"formatting"});default:return i.dayPeriod(e,{width:"wide",context:"formatting"})||i.dayPeriod(e,{width:"abbreviated",context:"formatting"})||i.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,a,i){return e.setHours(c3(i),0,0,0),e}incompatibleTokens=["b","B","H","k","t","T"]}});var np,kQ=v(()=>{Ut();Jt();np=class extends Ue{priority=80;parse(e,a,i){switch(a){case"b":case"bb":case"bbb":return i.dayPeriod(e,{width:"abbreviated",context:"formatting"})||i.dayPeriod(e,{width:"narrow",context:"formatting"});case"bbbbb":return i.dayPeriod(e,{width:"narrow",context:"formatting"});default:return i.dayPeriod(e,{width:"wide",context:"formatting"})||i.dayPeriod(e,{width:"abbreviated",context:"formatting"})||i.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,a,i){return e.setHours(c3(i),0,0,0),e}incompatibleTokens=["a","B","H","k","t","T"]}});var op,CQ=v(()=>{Ut();Jt();op=class extends Ue{priority=80;parse(e,a,i){switch(a){case"B":case"BB":case"BBB":return i.dayPeriod(e,{width:"abbreviated",context:"formatting"})||i.dayPeriod(e,{width:"narrow",context:"formatting"});case"BBBBB":return i.dayPeriod(e,{width:"narrow",context:"formatting"});default:return i.dayPeriod(e,{width:"wide",context:"formatting"})||i.dayPeriod(e,{width:"abbreviated",context:"formatting"})||i.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,a,i){return e.setHours(c3(i),0,0,0),e}incompatibleTokens=["a","b","t","T"]}});var lp,TQ=v(()=>{W2();Ut();Jt();lp=class extends Ue{priority=70;parse(e,a,i){switch(a){case"h":return Nt(Rt.hour12h,e);case"ho":return i.ordinalNumber(e,{unit:"hour"});default:return bt(a.length,e)}}validate(e,a){return a>=1&&a<=12}set(e,a,i){let r=e.getHours()>=12;return r&&i<12?e.setHours(i+12,0,0,0):!r&&i===12?e.setHours(0,0,0,0):e.setHours(i,0,0,0),e}incompatibleTokens=["H","K","k","t","T"]}});var cp,_Q=v(()=>{W2();Ut();Jt();cp=class extends Ue{priority=70;parse(e,a,i){switch(a){case"H":return Nt(Rt.hour23h,e);case"Ho":return i.ordinalNumber(e,{unit:"hour"});default:return bt(a.length,e)}}validate(e,a){return a>=0&&a<=23}set(e,a,i){return e.setHours(i,0,0,0),e}incompatibleTokens=["a","b","h","K","k","t","T"]}});var dp,LQ=v(()=>{W2();Ut();Jt();dp=class extends Ue{priority=70;parse(e,a,i){switch(a){case"K":return Nt(Rt.hour11h,e);case"Ko":return i.ordinalNumber(e,{unit:"hour"});default:return bt(a.length,e)}}validate(e,a){return a>=0&&a<=11}set(e,a,i){return e.getHours()>=12&&i<12?e.setHours(i+12,0,0,0):e.setHours(i,0,0,0),e}incompatibleTokens=["h","H","k","t","T"]}});var up,$Q=v(()=>{W2();Ut();Jt();up=class extends Ue{priority=70;parse(e,a,i){switch(a){case"k":return Nt(Rt.hour24h,e);case"ko":return i.ordinalNumber(e,{unit:"hour"});default:return bt(a.length,e)}}validate(e,a){return a>=1&&a<=24}set(e,a,i){let r=i<=24?i%24:i;return e.setHours(r,0,0,0),e}incompatibleTokens=["a","b","h","H","K","t","T"]}});var pp,AQ=v(()=>{W2();Ut();Jt();pp=class extends Ue{priority=60;parse(e,a,i){switch(a){case"m":return Nt(Rt.minute,e);case"mo":return i.ordinalNumber(e,{unit:"minute"});default:return bt(a.length,e)}}validate(e,a){return a>=0&&a<=59}set(e,a,i){return e.setMinutes(i,0,0),e}incompatibleTokens=["t","T"]}});var hp,DQ=v(()=>{W2();Ut();Jt();hp=class extends Ue{priority=50;parse(e,a,i){switch(a){case"s":return Nt(Rt.second,e);case"so":return i.ordinalNumber(e,{unit:"second"});default:return bt(a.length,e)}}validate(e,a){return a>=0&&a<=59}set(e,a,i){return e.setSeconds(i,0),e}incompatibleTokens=["t","T"]}});var fp,EQ=v(()=>{Ut();Jt();fp=class extends Ue{priority=30;parse(e,a){let i=r=>Math.trunc(r*Math.pow(10,-a.length+3));return s1(bt(a.length,e),i)}set(e,a,i){return e.setMilliseconds(i),e}incompatibleTokens=["t","T"]}});var mp,PQ=v(()=>{at();cs();W2();Ut();Jt();mp=class extends Ue{priority=10;parse(e,a){switch(a){case"X":return fi(hi.basicOptionalMinutes,e);case"XX":return fi(hi.basic,e);case"XXXX":return fi(hi.basicOptionalSeconds,e);case"XXXXX":return fi(hi.extendedOptionalSeconds,e);default:return fi(hi.extended,e)}}set(e,a,i){return a.timestampIsSet?e:Le(e,e.getTime()-E1(e)-i)}incompatibleTokens=["t","T","x"]}});var gp,NQ=v(()=>{at();cs();W2();Ut();Jt();gp=class extends Ue{priority=10;parse(e,a){switch(a){case"x":return fi(hi.basicOptionalMinutes,e);case"xx":return fi(hi.basic,e);case"xxxx":return fi(hi.basicOptionalSeconds,e);case"xxxxx":return fi(hi.extendedOptionalSeconds,e);default:return fi(hi.extended,e)}}set(e,a,i){return a.timestampIsSet?e:Le(e,e.getTime()-E1(e)-i)}incompatibleTokens=["t","T","X"]}});var bp,IQ=v(()=>{at();Ut();Jt();bp=class extends Ue{priority=40;parse(e){return Fu(e)}set(e,a,i){return[Le(e,i*1e3),{timestampIsSet:!0}]}incompatibleTokens="*"}});var vp,FQ=v(()=>{at();Ut();Jt();vp=class extends Ue{priority=20;parse(e){return Fu(e)}set(e,a,i){return[Le(e,i),{timestampIsSet:!0}]}incompatibleTokens="*"}});var yp,RQ=v(()=>{oQ();lQ();cQ();dQ();uQ();pQ();hQ();fQ();mQ();gQ();bQ();vQ();yQ();xQ();wQ();MQ();zQ();SQ();kQ();CQ();TQ();_Q();LQ();$Q();AQ();DQ();EQ();PQ();NQ();IQ();FQ();yp={G:new Iu,y:new Bu,Y:new Hu,R:new qu,u:new Vu,Q:new ju,q:new Uu,M:new Wu,L:new Gu,w:new Zu,I:new Qu,d:new Ku,D:new Ju,E:new ep,e:new tp,c:new ap,i:new rp,a:new sp,b:new np,B:new op,h:new lp,H:new cp,K:new dp,k:new up,m:new pp,s:new hp,S:new fp,X:new mp,x:new gp,t:new bp,T:new vp}});function xp(t,e,a,i){let r=()=>Le(i?.in||a,NaN),s=Lu(),n=i?.locale??s.locale??Da,o=i?.firstWeekContainsDate??i?.locale?.options?.firstWeekContainsDate??s.firstWeekContainsDate??s.locale?.options?.firstWeekContainsDate??1,l=i?.weekStartsOn??i?.locale?.options?.weekStartsOn??s.weekStartsOn??s.locale?.options?.weekStartsOn??0;if(!e)return t?r():ne(a,i?.in);let d={firstWeekContainsDate:o,weekStartsOn:l,locale:n},u=[new Nu(i?.in,a)],c=e.match(GCt).map(m=>{let x=m[0];if(x in Tn){let M=Tn[x];return M(m,n.formatLong)}return m}).join("").match(WCt),f=[];for(let m of c){!i?.useAdditionalWeekYearTokens&&zu(m)&&Kc(m,e,t),!i?.useAdditionalDayOfYearTokens&&Mu(m)&&Kc(m,e,t);let x=m[0],M=yp[x];if(M){let{incompatibleTokens:k}=M;if(Array.isArray(k)){let T=f.find(S=>k.includes(S.token)||S.token===x);if(T)throw new RangeError(`The format string mustn't contain \`${T.fullToken}\` and \`${m}\` at the same time`)}else if(M.incompatibleTokens==="*"&&f.length>0)throw new RangeError(`The format string mustn't contain \`${m}\` and any other token at the same time`);f.push({token:x,fullToken:m});let F=M.run(t,m,n.match,d);if(!F)return r();u.push(F.setter),t=F.rest}else{if(x.match(QCt))throw new RangeError("Format string contains an unescaped latin alphabet character `"+x+"`");if(m==="''"?m="'":x==="'"&&(m=KCt(m)),t.indexOf(m)===0)t=t.slice(m.length);else return r()}}if(t.length>0&&XCt.test(t))return r();let g=u.map(m=>m.priority).sort((m,x)=>x-m).filter((m,x,M)=>M.indexOf(m)===x).map(m=>u.filter(x=>x.priority===m).sort((x,M)=>M.subPriority-x.subPriority)).map(m=>m[0]),y=ne(a,i?.in);if(isNaN(+y))return r();let b={};for(let m of g){if(!m.validate(y,d))return r();let x=m.set(y,b,d);Array.isArray(x)?(y=x[0],Object.assign(b,x[1])):y=x}return y}function KCt(t){return t.match(YCt)[1].replace(ZCt,"'")}var WCt,GCt,YCt,ZCt,XCt,QCt,Sh1,Hk=v(()=>{Xo();kk();Ck();at();Ek();Ae();Fk();RQ();WCt=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,GCt=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,YCt=/^'([^]*?)'?$/,ZCt=/''/g,XCt=/\S/,QCt=/[a-zA-Z]/;Sh1=xp});function OQ(t,e,a){return _2(xp(t,e,new Date,a))}var _h1,BQ=v(()=>{us();Hk();_h1=OQ});function HQ(t,e){return ne(t,e?.in).getDay()===1}var Ah1,qQ=v(()=>{Ae();Ah1=HQ});function VQ(t){return+ne(t)<Date.now()}var Ph1,jQ=v(()=>{Ae();Ph1=VQ});function a6(t,e){let a=ne(t,e?.in);return a.setMinutes(0,0,0),a}var Fh1,qk=v(()=>{Ae();Fh1=a6});function wp(t,e,a){let[i,r]=Je(a?.in,t,e);return+a6(i)==+a6(r)}var Hh1,Vk=v(()=>{r1();qk();Hh1=wp});function d3(t,e,a){let[i,r]=Je(a?.in,t,e);return+d1(i,a)==+d1(r,a)}var Uh1,Mp=v(()=>{r1();Oi();Uh1=d3});function zp(t,e,a){return d3(t,e,{...a,weekStartsOn:1})}var Yh1,jk=v(()=>{Mp();Yh1=zp});function UQ(t,e,a){let[i,r]=Je(a?.in,t,e);return+Ha(i)==+Ha(r)}var Kh1,WQ=v(()=>{W4();r1();Kh1=UQ});function i6(t,e){let a=ne(t,e?.in);return a.setSeconds(0,0),a}var t91,Uk=v(()=>{Ae();t91=i6});function Sp(t,e){return+i6(t)==+i6(e)}var r91,Wk=v(()=>{Uk();r91=Sp});function kp(t,e,a){let[i,r]=Je(a?.in,t,e);return i.getFullYear()===r.getFullYear()&&i.getMonth()===r.getMonth()}var o91,Gk=v(()=>{r1();o91=kp});function Cp(t,e,a){let[i,r]=Je(a?.in,t,e);return+kr(i)==+kr(r)}var u91,Yk=v(()=>{r1();pu();u91=Cp});function r6(t,e){let a=ne(t,e?.in);return a.setMilliseconds(0),a}var f91,Zk=v(()=>{Ae();f91=r6});function Tp(t,e){return+r6(t)==+r6(e)}var b91,Xk=v(()=>{Zk();b91=Tp});function _p(t,e,a){let[i,r]=Je(a?.in,t,e);return i.getFullYear()===r.getFullYear()}var x91,Qk=v(()=>{r1();x91=_p});function GQ(t,e){return wp(ne(t,e?.in),Tt(e?.in||t))}var k91,YQ=v(()=>{r2();Vk();Ae();k91=GQ});function ZQ(t,e){return zp(Le(e?.in||t,t),Tt(e?.in||t))}var $91,XQ=v(()=>{at();r2();jk();$91=ZQ});function QQ(t){return Sp(t,Tt(t))}var P91,KQ=v(()=>{r2();Wk();P91=QQ});function JQ(t,e){return kp(Le(e?.in||t,t),Tt(e?.in||t))}var O91,eK=v(()=>{at();r2();Gk();O91=JQ});function tK(t,e){return Cp(Le(e?.in||t,t),Tt(e?.in||t))}var j91,aK=v(()=>{at();r2();Yk();j91=tK});function iK(t){return Tp(t,Tt(t))}var Y91,rK=v(()=>{r2();Xk();Y91=iK});function sK(t,e){return d3(Le(e?.in||t,t),Tt(e?.in||t),e)}var J91,nK=v(()=>{at();r2();Mp();J91=sK});function oK(t,e){return _p(Le(e?.in||t,t),Tt(e?.in||t))}var rf1,lK=v(()=>{at();r2();Qk();rf1=oK});function cK(t,e){return ne(t,e?.in).getDay()===4}var of1,dK=v(()=>{Ae();of1=cK});function uK(t,e){return Mr(Le(e?.in||t,t),Tt(e?.in||t))}var pf1,pK=v(()=>{at();r2();Z4();pf1=uK});function hK(t,e){return Mr(t,i2(Tt(e?.in||t),1),e)}var bf1,fK=v(()=>{br();r2();Z4();bf1=hK});function mK(t,e){return ne(t,e?.in).getDay()===2}var xf1,gK=v(()=>{Ae();xf1=mK});function bK(t,e){return ne(t,e?.in).getDay()===3}var zf1,vK=v(()=>{Ae();zf1=bK});function yK(t,e,a){let i=+ne(t,a?.in),[r,s]=[+ne(e.start,a?.in),+ne(e.end,a?.in)].sort((n,o)=>n-o);return i>=r&&i<=s}var Cf1,xK=v(()=>{Ae();Cf1=yK});function $n(t,e,a){return i2(t,-e,a)}var Lf1,s6=v(()=>{br();Lf1=$n});function wK(t,e){return Mr(Le(e?.in||t,t),$n(Tt(e?.in||t),1))}var Nf1,MK=v(()=>{at();r2();Z4();s6();Nf1=wK});function zK(t,e){let a=ne(t,e?.in),i=a.getFullYear(),r=9+Math.floor(i/10)*10;return a.setFullYear(r+1,0,0),a.setHours(0,0,0,0),ne(a,e?.in)}var Rf1,SK=v(()=>{Ae();Rf1=zK});function Lp(t,e){let a=Kt(),i=e?.weekStartsOn??e?.locale?.options?.weekStartsOn??a.weekStartsOn??a.locale?.options?.weekStartsOn??0,r=ne(t,e?.in),s=r.getDay(),n=(s<i?-7:0)+6-(s-i);return r.setHours(0,0,0,0),r.setDate(r.getDate()+n),r}var qf1,Kk=v(()=>{V2();Ae();qf1=Lp});function kK(t,e){return Lp(t,{...e,weekStartsOn:1})}var Uf1,CK=v(()=>{Kk();Uf1=kK});function TK(t,e){let a=ua(t,e),i=Le(e?.in||t,0);i.setFullYear(a+1,0,4),i.setHours(0,0,0,0);let r=X1(i,e);return r.setDate(r.getDate()-1),r}var Xf1,_K=v(()=>{at();wn();xr();Xf1=TK});function LK(t,e){let a=ne(t,e?.in),i=a.getMonth(),r=i-i%3+3;return a.setMonth(r,0),a.setHours(0,0,0,0),a}var Jf1,$K=v(()=>{Ae();Jf1=LK});function AK(t,e){let a=ne(t,e?.in),i=a.getFullYear();return a.setFullYear(i+1,0,0),a.setHours(0,0,0,0),a}var am1,DK=v(()=>{Ae();am1=AK});function EK(t,e){let a=ne(t);if(!_2(a))throw new RangeError("Invalid time value");let i=e.match(JCt);return i?i.map(s=>{if(s==="''")return"'";let n=s[0];if(n==="'")return iTt(s);let o=qa[n];if(o)return o(a,s);if(n.match(aTt))throw new RangeError("Format string contains an unescaped latin alphabet character `"+n+"`");return s}).join(""):""}function iTt(t){let e=t.match(eTt);return e?e[1].replace(tTt,"'"):t}var JCt,eTt,tTt,aTt,om1,PK=v(()=>{Sk();us();Ae();JCt=/(\w)\1*|''|'(''|[^'])+('|$)|./g,eTt=/^'([^]*?)'?$/,tTt=/''/g,aTt=/[a-zA-Z]/;om1=EK});function NK({years:t,months:e,weeks:a,days:i,hours:r,minutes:s,seconds:n}){let o=0;t&&(o+=t*365.2425),e&&(o+=e*(365.2425/12)),a&&(o+=a*7),i&&(o+=i);let l=o*24*60*60;return r&&(l+=r*60*60),s&&(l+=s*60),n&&(l+=n),Math.trunc(l*1e3)}var dm1,IK=v(()=>{xt();dm1=NK});function FK(t){let e=t/Ba;return Math.trunc(e)}var hm1,RK=v(()=>{xt();hm1=FK});function OK(t){let e=t/q2;return Math.trunc(e)}var gm1,BK=v(()=>{xt();gm1=OK});function HK(t){let e=t/q4;return Math.trunc(e)}var ym1,qK=v(()=>{xt();ym1=HK});function VK(t){let e=t/P7;return Math.trunc(e)}var Mm1,jK=v(()=>{xt();Mm1=VK});function UK(t){return Math.trunc(t*q2)}var km1,WK=v(()=>{xt();km1=UK});function GK(t){return Math.trunc(t*j4)}var _m1,YK=v(()=>{xt();_m1=GK});function ZK(t){let e=t/N7;return Math.trunc(e)}var Am1,XK=v(()=>{xt();Am1=ZK});function QK(t){let e=t/I7;return Math.trunc(e)}var Pm1,KK=v(()=>{xt();Pm1=QK});function G2(t,e,a){let i=e-_n(t,a);return i<=0&&(i+=7),i2(t,i,a)}var Rm1,hs=v(()=>{br();e6();Rm1=G2});function JK(t,e){return G2(t,5,e)}var Hm1,eJ=v(()=>{hs();Hm1=JK});function tJ(t,e){return G2(t,1,e)}var jm1,aJ=v(()=>{hs();jm1=tJ});function iJ(t,e){return G2(t,6,e)}var Gm1,rJ=v(()=>{hs();Gm1=iJ});function sJ(t,e){return G2(t,0,e)}var Xm1,nJ=v(()=>{hs();Xm1=sJ});function oJ(t,e){return G2(t,4,e)}var Jm1,lJ=v(()=>{hs();Jm1=oJ});function cJ(t,e){return G2(t,2,e)}var ag1,dJ=v(()=>{hs();ag1=cJ});function uJ(t,e){return G2(t,3,e)}var sg1,pJ=v(()=>{hs();sg1=uJ});function fJ(t,e){let a=()=>Le(e?.in,NaN),i=e?.additionalDigits??2,r=oTt(t),s;if(r.date){let d=lTt(r.date,i);s=cTt(d.restDateString,d.year)}if(!s||isNaN(+s))return a();let n=+s,o=0,l;if(r.time&&(o=dTt(r.time),isNaN(o)))return a();if(r.timezone){if(l=uTt(r.timezone),isNaN(l))return a()}else{let d=new Date(n+o),u=ne(0,e?.in);return u.setFullYear(d.getUTCFullYear(),d.getUTCMonth(),d.getUTCDate()),u.setHours(d.getUTCHours(),d.getUTCMinutes(),d.getUTCSeconds(),d.getUTCMilliseconds()),u}return ne(n+o+l,e?.in)}function oTt(t){let e={},a=t.split($p.dateTimeDelimiter),i;if(a.length>2)return e;if(/:/.test(a[0])?i=a[0]:(e.date=a[0],i=a[1],$p.timeZoneDelimiter.test(e.date)&&(e.date=t.split($p.timeZoneDelimiter)[0],i=t.substr(e.date.length,t.length))),i){let r=$p.timezone.exec(i);r?(e.time=i.replace(r[1],""),e.timezone=r[1]):e.time=i}return e}function lTt(t,e){let a=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+e)+"})|(\\d{2}|[+-]\\d{"+(2+e)+"})$)"),i=t.match(a);if(!i)return{year:NaN,restDateString:""};let r=i[1]?parseInt(i[1]):null,s=i[2]?parseInt(i[2]):null;return{year:s===null?r:s*100,restDateString:t.slice((i[1]||i[2]).length)}}function cTt(t,e){if(e===null)return new Date(NaN);let a=t.match(rTt);if(!a)return new Date(NaN);let i=!!a[4],r=n6(a[1]),s=n6(a[2])-1,n=n6(a[3]),o=n6(a[4]),l=n6(a[5])-1;if(i)return gTt(e,o,l)?pTt(e,o,l):new Date(NaN);{let d=new Date(0);return!fTt(e,s,n)||!mTt(e,r)?new Date(NaN):(d.setUTCFullYear(e,s,Math.max(r,n)),d)}}function n6(t){return t?parseInt(t):1}function dTt(t){let e=t.match(sTt);if(!e)return NaN;let a=Jk(e[1]),i=Jk(e[2]),r=Jk(e[3]);return bTt(a,i,r)?a*Ba+i*q2+r*1e3:NaN}function Jk(t){return t&&parseFloat(t.replace(",","."))||0}function uTt(t){if(t==="Z")return 0;let e=t.match(nTt);if(!e)return 0;let a=e[1]==="+"?-1:1,i=parseInt(e[2]),r=e[3]&&parseInt(e[3])||0;return vTt(i,r)?a*(i*Ba+r*q2):NaN}function pTt(t,e,a){let i=new Date(0);i.setUTCFullYear(t,0,4);let r=i.getUTCDay()||7,s=(e-1)*7+a+1-r;return i.setUTCDate(i.getUTCDate()+s),i}function hJ(t){return t%400===0||t%4===0&&t%100!==0}function fTt(t,e,a){return e>=0&&e<=11&&a>=1&&a<=(hTt[e]||(hJ(t)?29:28))}function mTt(t,e){return e>=1&&e<=(hJ(t)?366:365)}function gTt(t,e,a){return e>=1&&e<=53&&a>=0&&a<=6}function bTt(t,e,a){return t===24?e===0&&a===0:a>=0&&a<60&&e>=0&&e<60&&t>=0&&t<25}function vTt(t,e){return e>=0&&e<=59}var $p,rTt,sTt,nTt,hTt,dg1,mJ=v(()=>{xt();at();Ae();$p={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},rTt=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,sTt=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,nTt=/^([+-])(\d{2})(?::?(\d{2}))?$/;hTt=[31,null,31,30,31,30,31,31,30,31,30,31];dg1=fJ});function gJ(t,e){let a=t.match(/(\d{4})-(\d{2})-(\d{2})[T ](\d{2}):(\d{2}):(\d{2})(?:\.(\d{0,7}))?(?:Z|(.)(\d{2}):?(\d{2})?)?/);return a?ne(Date.UTC(+a[1],+a[2]-1,+a[3],+a[4]-(+a[9]||0)*(a[8]=="-"?-1:1),+a[5]-(+a[10]||0)*(a[8]=="-"?-1:1),+a[6],+((a[7]||"0")+"00").substring(0,3)),e?.in):ne(NaN,e?.in)}var hg1,bJ=v(()=>{Ae();hg1=gJ});function Y2(t,e,a){let i=_n(t,a)-e;return i<=0&&(i+=7),$n(t,i,a)}var bg1,fs=v(()=>{e6();s6();bg1=Y2});function vJ(t,e){return Y2(t,5,e)}var xg1,yJ=v(()=>{fs();xg1=vJ});function xJ(t,e){return Y2(t,1,e)}var zg1,wJ=v(()=>{fs();zg1=xJ});function MJ(t,e){return Y2(t,6,e)}var Cg1,zJ=v(()=>{fs();Cg1=MJ});function SJ(t,e){return Y2(t,0,e)}var Lg1,kJ=v(()=>{fs();Lg1=SJ});function CJ(t,e){return Y2(t,4,e)}var Dg1,TJ=v(()=>{fs();Dg1=CJ});function _J(t,e){return Y2(t,2,e)}var Ng1,LJ=v(()=>{fs();Ng1=_J});function $J(t,e){return Y2(t,3,e)}var Rg1,AJ=v(()=>{fs();Rg1=$J});function DJ(t){return Math.trunc(t*N7)}var Hg1,EJ=v(()=>{xt();Hg1=DJ});function PJ(t){let e=t/F7;return Math.trunc(e)}var jg1,NJ=v(()=>{xt();jg1=PJ});function IJ(t,e){let a=e?.nearestTo??1;if(a<1||a>12)return Le(e?.in||t,NaN);let i=ne(t,e?.in),r=i.getMinutes()/60,s=i.getSeconds()/60/60,n=i.getMilliseconds()/1e3/60/60,o=i.getHours()+r+s+n,l=e?.roundingMethod??"round",u=U2(l)(o/a)*a;return i.setHours(u,0,0,0),i}var Zg1,FJ=v(()=>{ps();at();Ae();Zg1=IJ});function RJ(t,e){let a=e?.nearestTo??1;if(a<1||a>30)return Le(t,NaN);let i=ne(t,e?.in),r=i.getSeconds()/60,s=i.getMilliseconds()/1e3/60,n=i.getMinutes()+r+s,o=e?.roundingMethod??"round",d=U2(o)(n/a)*a;return i.setMinutes(d,0,0),i}var eb1,OJ=v(()=>{ps();at();Ae();eb1=RJ});function BJ(t){let e=t/jo;return Math.trunc(e)}var ib1,HJ=v(()=>{xt();ib1=BJ});function qJ(t){return t*q4}var nb1,VJ=v(()=>{xt();nb1=qJ});function jJ(t){let e=t/j4;return Math.trunc(e)}var cb1,UJ=v(()=>{xt();cb1=jJ});function u3(t,e,a){let i=ne(t,a?.in),r=i.getFullYear(),s=i.getDate(),n=Le(a?.in||t,0);n.setFullYear(r,e,15),n.setHours(0,0,0,0);let o=Tu(n);return i.setMonth(e,Math.min(s,o)),i}var fb1,Ap=v(()=>{at();Ak();Ae();fb1=u3});function WJ(t,e,a){let i=ne(t,a?.in);return isNaN(+i)?Le(a?.in||t,NaN):(e.year!=null&&i.setFullYear(e.year),e.month!=null&&(i=u3(i,e.month)),e.date!=null&&i.setDate(e.date),e.hours!=null&&i.setHours(e.hours),e.minutes!=null&&i.setMinutes(e.minutes),e.seconds!=null&&i.setSeconds(e.seconds),e.milliseconds!=null&&i.setMilliseconds(e.milliseconds),i)}var yb1,GJ=v(()=>{at();Ap();Ae();yb1=WJ});function YJ(t,e,a){let i=ne(t,a?.in);return i.setDate(e),i}var Mb1,ZJ=v(()=>{Ae();Mb1=YJ});function XJ(t,e,a){let i=ne(t,a?.in);return i.setMonth(0),i.setDate(e),i}var kb1,QJ=v(()=>{Ae();kb1=XJ});function KJ(t){let e={},a=Kt();for(let i in a)Object.prototype.hasOwnProperty.call(a,i)&&(e[i]=a[i]);for(let i in t)Object.prototype.hasOwnProperty.call(t,i)&&(t[i]===void 0?delete e[i]:e[i]=t[i]);fY(e)}var _b1,JJ=v(()=>{V2();_b1=KJ});function eee(t,e,a){let i=ne(t,a?.in);return i.setHours(e),i}var Ab1,tee=v(()=>{Ae();Ab1=eee});function aee(t,e,a){let i=ne(t,a?.in);return i.setMilliseconds(e),i}var Pb1,iee=v(()=>{Ae();Pb1=aee});function ree(t,e,a){let i=ne(t,a?.in);return i.setMinutes(e),i}var Fb1,see=v(()=>{Ae();Fb1=ree});function nee(t,e,a){let i=ne(t,a?.in),r=Math.trunc(i.getMonth()/3)+1,s=e-r;return u3(i,i.getMonth()+s*3)}var Hb1,oee=v(()=>{Ap();Ae();Hb1=nee});function lee(t,e,a){let i=ne(t,a?.in);return i.setSeconds(e),i}var jb1,cee=v(()=>{Ae();jb1=lee});function dee(t,e,a){let i=Kt(),r=a?.firstWeekContainsDate??a?.locale?.options?.firstWeekContainsDate??i.firstWeekContainsDate??i.locale?.options?.firstWeekContainsDate??1,s=b2(ne(t,a?.in),Qo(t,a),a),n=Le(a?.in||t,0);n.setFullYear(e,0,r),n.setHours(0,0,0,0);let o=Qo(n,a);return o.setDate(o.getDate()+s),o}var Qb1,uee=v(()=>{V2();at();ds();xu();Ae();Qb1=dee});function pee(t,e,a){let i=ne(t,a?.in);return isNaN(+i)?Le(a?.in||t,NaN):(i.setFullYear(e),i)}var tv1,hee=v(()=>{at();Ae();tv1=pee});function fee(t,e){let a=ne(t,e?.in),i=a.getFullYear(),r=Math.floor(i/10)*10;return a.setFullYear(r,0,1),a.setHours(0,0,0,0),a}var rv1,mee=v(()=>{Ae();rv1=fee});function gee(t){return wr(Date.now(),t)}var ov1,bee=v(()=>{jc();ov1=gee});function vee(t){let e=Tt(t?.in),a=e.getFullYear(),i=e.getMonth(),r=e.getDate(),s=Le(t?.in,0);return s.setFullYear(a,i,r+1),s.setHours(0,0,0,0),s}var uv1,yee=v(()=>{at();r2();uv1=vee});function xee(t){let e=Tt(t?.in),a=e.getFullYear(),i=e.getMonth(),r=e.getDate(),s=Tt(t?.in);return s.setFullYear(a,i,r-1),s.setHours(0,0,0,0),s}var fv1,wee=v(()=>{r2();fv1=xee});function Dp(t,e,a){return vr(t,-e,a)}var bv1,eC=v(()=>{U4();bv1=Dp});function Mee(t,e,a){let{years:i=0,months:r=0,weeks:s=0,days:n=0,hours:o=0,minutes:l=0,seconds:d=0}=e,u=Dp(t,r+i*12,a),c=$n(u,n+s*7,a),f=l+o*60,y=(d+f*60)*1e3;return Le(a?.in||t,+c-y)}var Mv1,zee=v(()=>{at();s6();eC();Mv1=Mee});function See(t,e,a){return B7(t,-e,a)}var kv1,kee=v(()=>{rk();kv1=See});function Cee(t,e,a){return H7(t,-e,a)}var _v1,Tee=v(()=>{sk();_v1=Cee});function _ee(t,e,a){return xn(t,-e,a)}var Av1,Lee=v(()=>{Vc();Av1=_ee});function $ee(t,e,a){return G4(t,-e,a)}var Pv1,Aee=v(()=>{j7();Pv1=$ee});function Dee(t,e,a){return Y4(t,-e,a)}var Fv1,Eee=v(()=>{U7();Fv1=Dee});function Pee(t,e,a){return W7(t,-e,a)}var Bv1,Nee=v(()=>{lk();Bv1=Pee});function Iee(t,e,a){return Mn(t,-e,a)}var Vv1,Fee=v(()=>{Uc();Vv1=Iee});function Ree(t,e,a){return G7(t,-e,a)}var Wv1,Oee=v(()=>{ck();Wv1=Ree});function Bee(t){return Math.trunc(t*7)}var Zv1,Hee=v(()=>{xt();Zv1=Bee});function qee(t){return Math.trunc(t*365.2425)}var Kv1,Vee=v(()=>{xt();Kv1=qee});function jee(t){return Math.trunc(t*I7)}var ty1,Uee=v(()=>{xt();ty1=jee});function Wee(t){return Math.trunc(t*F7)}var ry1,Gee=v(()=>{xt();ry1=Wee});var o6={};Qe(o6,{add:()=>yn,addBusinessDays:()=>B7,addDays:()=>i2,addHours:()=>H7,addISOWeekYears:()=>V7,addMilliseconds:()=>xn,addMinutes:()=>G4,addMonths:()=>vr,addQuarters:()=>Y4,addSeconds:()=>W7,addWeeks:()=>Mn,addYears:()=>G7,areIntervalsOverlapping:()=>mY,clamp:()=>bY,closestIndexTo:()=>X7,closestTo:()=>yY,compareAsc:()=>j2,compareDesc:()=>wY,constructFrom:()=>Le,constructNow:()=>Tt,daysToWeeks:()=>zY,differenceInBusinessDays:()=>kY,differenceInCalendarDays:()=>b2,differenceInCalendarISOWeekYears:()=>K7,differenceInCalendarISOWeeks:()=>TY,differenceInCalendarMonths:()=>Wo,differenceInCalendarQuarters:()=>X4,differenceInCalendarWeeks:()=>Go,differenceInCalendarYears:()=>zn,differenceInDays:()=>Q4,differenceInHours:()=>Yo,differenceInISOWeekYears:()=>$Y,differenceInMilliseconds:()=>K4,differenceInMinutes:()=>Zo,differenceInMonths:()=>Sn,differenceInQuarters:()=>DY,differenceInSeconds:()=>zr,differenceInWeeks:()=>PY,differenceInYears:()=>du,eachDayOfInterval:()=>uu,eachHourOfInterval:()=>IY,eachMinuteOfInterval:()=>RY,eachMonthOfInterval:()=>BY,eachQuarterOfInterval:()=>qY,eachWeekOfInterval:()=>jY,eachWeekendOfInterval:()=>t3,eachWeekendOfMonth:()=>WY,eachWeekendOfYear:()=>YY,eachYearOfInterval:()=>XY,endOfDay:()=>J4,endOfDecade:()=>KY,endOfHour:()=>eZ,endOfISOWeek:()=>aZ,endOfISOWeekYear:()=>rZ,endOfMinute:()=>nZ,endOfMonth:()=>e3,endOfQuarter:()=>lZ,endOfSecond:()=>dZ,endOfToday:()=>pZ,endOfTomorrow:()=>fZ,endOfWeek:()=>gu,endOfYear:()=>fu,endOfYesterday:()=>gZ,format:()=>Jc,formatDate:()=>Jc,formatDistance:()=>Su,formatDistanceStrict:()=>ku,formatDistanceToNow:()=>OZ,formatDistanceToNowStrict:()=>HZ,formatDuration:()=>VZ,formatISO:()=>UZ,formatISO9075:()=>GZ,formatISODuration:()=>ZZ,formatRFC3339:()=>QZ,formatRFC7231:()=>JZ,formatRelative:()=>tX,formatters:()=>Qc,fromUnixTime:()=>iX,getDate:()=>Cu,getDay:()=>_n,getDayOfYear:()=>vu,getDaysInMonth:()=>Tu,getDaysInYear:()=>sX,getDecade:()=>oX,getDefaultOptions:()=>Lu,getHours:()=>cX,getISODay:()=>$u,getISOWeek:()=>s3,getISOWeekYear:()=>ua,getISOWeeksInYear:()=>uX,getMilliseconds:()=>hX,getMinutes:()=>mX,getMonth:()=>bX,getOverlappingDaysInIntervals:()=>yX,getQuarter:()=>Wc,getSeconds:()=>wX,getTime:()=>zX,getUnixTime:()=>kX,getWeek:()=>n3,getWeekOfMonth:()=>TX,getWeekYear:()=>Cn,getWeeksInMonth:()=>LX,getYear:()=>AX,hoursToMilliseconds:()=>EX,hoursToMinutes:()=>NX,hoursToSeconds:()=>FX,interval:()=>OX,intervalToDuration:()=>HX,intlFormat:()=>VX,intlFormatDistance:()=>UX,isAfter:()=>GX,isBefore:()=>ZX,isDate:()=>Q7,isEqual:()=>QX,isExists:()=>JX,isFirstDayOfMonth:()=>tQ,isFriday:()=>iQ,isFuture:()=>sQ,isLastDayOfMonth:()=>cu,isLeapYear:()=>_u,isMatch:()=>OQ,isMonday:()=>HQ,isPast:()=>VQ,isSameDay:()=>Mr,isSameHour:()=>wp,isSameISOWeek:()=>zp,isSameISOWeekYear:()=>UQ,isSameMinute:()=>Sp,isSameMonth:()=>kp,isSameQuarter:()=>Cp,isSameSecond:()=>Tp,isSameWeek:()=>d3,isSameYear:()=>_p,isSaturday:()=>R7,isSunday:()=>O7,isThisHour:()=>GQ,isThisISOWeek:()=>ZQ,isThisMinute:()=>QQ,isThisMonth:()=>JQ,isThisQuarter:()=>tK,isThisSecond:()=>iK,isThisWeek:()=>sK,isThisYear:()=>oK,isThursday:()=>cK,isToday:()=>uK,isTomorrow:()=>hK,isTuesday:()=>mK,isValid:()=>_2,isWednesday:()=>bK,isWeekend:()=>yr,isWithinInterval:()=>yK,isYesterday:()=>wK,lastDayOfDecade:()=>zK,lastDayOfISOWeek:()=>kK,lastDayOfISOWeekYear:()=>TK,lastDayOfMonth:()=>Au,lastDayOfQuarter:()=>LK,lastDayOfWeek:()=>Lp,lastDayOfYear:()=>AK,lightFormat:()=>EK,lightFormatters:()=>qa,longFormatters:()=>Tn,max:()=>Y7,milliseconds:()=>NK,millisecondsToHours:()=>FK,millisecondsToMinutes:()=>OK,millisecondsToSeconds:()=>HK,min:()=>Z7,minutesToHours:()=>VK,minutesToMilliseconds:()=>UK,minutesToSeconds:()=>GK,monthsToQuarters:()=>ZK,monthsToYears:()=>QK,nextDay:()=>G2,nextFriday:()=>JK,nextMonday:()=>tJ,nextSaturday:()=>iJ,nextSunday:()=>sJ,nextThursday:()=>oJ,nextTuesday:()=>cJ,nextWednesday:()=>uJ,parse:()=>xp,parseISO:()=>fJ,parseJSON:()=>gJ,parsers:()=>yp,previousDay:()=>Y2,previousFriday:()=>vJ,previousMonday:()=>xJ,previousSaturday:()=>MJ,previousSunday:()=>SJ,previousThursday:()=>CJ,previousTuesday:()=>_J,previousWednesday:()=>$J,quartersToMonths:()=>DJ,quartersToYears:()=>PJ,roundToNearestHours:()=>IJ,roundToNearestMinutes:()=>RJ,secondsToHours:()=>BJ,secondsToMilliseconds:()=>qJ,secondsToMinutes:()=>jJ,set:()=>WJ,setDate:()=>YJ,setDay:()=>Ln,setDayOfYear:()=>XJ,setDefaultOptions:()=>KJ,setHours:()=>eee,setISODay:()=>ip,setISOWeek:()=>Xu,setISOWeekYear:()=>q7,setMilliseconds:()=>aee,setMinutes:()=>ree,setMonth:()=>u3,setQuarter:()=>nee,setSeconds:()=>lee,setWeek:()=>Yu,setWeekYear:()=>dee,setYear:()=>pee,startOfDay:()=>wr,startOfDecade:()=>fee,startOfHour:()=>a6,startOfISOWeek:()=>X1,startOfISOWeekYear:()=>Ha,startOfMinute:()=>i6,startOfMonth:()=>kn,startOfQuarter:()=>kr,startOfSecond:()=>r6,startOfToday:()=>gee,startOfTomorrow:()=>vee,startOfWeek:()=>d1,startOfWeekYear:()=>Qo,startOfYear:()=>a3,startOfYesterday:()=>xee,sub:()=>Mee,subBusinessDays:()=>See,subDays:()=>$n,subHours:()=>Cee,subISOWeekYears:()=>ru,subMilliseconds:()=>_ee,subMinutes:()=>$ee,subMonths:()=>Dp,subQuarters:()=>Dee,subSeconds:()=>Pee,subWeeks:()=>Iee,subYears:()=>Ree,toDate:()=>ne,transpose:()=>Du,weeksToDays:()=>Bee,yearsToDays:()=>qee,yearsToMonths:()=>jee,yearsToQuarters:()=>Wee});var Yee=v(()=>{tk();rk();br();sk();ok();Vc();j7();U4();U7();lk();Uc();ck();gY();vY();pk();xY();Uo();MY();at();r2();SY();CY();ds();fk();_Y();J7();gk();eu();tu();au();iu();AY();su();nu();Gc();EY();Yc();NY();yk();xk();FY();OY();HY();VY();UY();hu();GY();ZY();QY();ou();JY();tZ();iZ();sZ();oZ();lu();cZ();uZ();hZ();mZ();Mk();wk();bZ();Tk();_k();Lk();BZ();qZ();jZ();WZ();YZ();XZ();KZ();eX();aX();rX();$k();e6();zk();Ak();nX();lX();Ek();dX();Pk();yu();wn();pX();fX();gX();vX();xX();mk();MX();SX();CX();wu();_X();Xc();$X();DX();PX();IX();RX();BX();qX();jX();WX();YX();XX();hk();KX();eQ();aQ();rQ();nQ();vk();Dk();BQ();qQ();jQ();Z4();Vk();jk();WQ();Wk();Gk();Yk();Xk();Mp();Qk();ak();ik();YQ();XQ();KQ();eK();aK();rK();nK();lK();dK();pK();fK();gK();us();vK();qc();xK();MK();SK();CK();_K();Nk();$K();Kk();DK();PK();dk();IK();RK();BK();qK();uk();jK();WK();YK();XK();KK();hs();eJ();aJ();rJ();nJ();lJ();dJ();pJ();Hk();mJ();bJ();fs();yJ();wJ();zJ();kJ();TJ();LJ();AJ();EJ();NJ();FJ();OJ();HJ();VJ();UJ();GJ();ZJ();t6();QJ();JJ();tee();Bk();Ok();nk();iee();see();Ap();oee();cee();Rk();uee();hee();jc();mee();qk();xr();W4();Uk();Zc();pu();Zk();bee();yee();Oi();xu();mu();wee();zee();kee();s6();Tee();bk();Lee();Aee();eC();Eee();Nee();Fee();Oee();Ae();Ik();Hee();Vee();Uee();Gee()});var Zee=pt((tC,aC)=>{(function(t,e){typeof tC=="object"&&typeof aC<"u"?aC.exports=e():typeof define=="function"&&define.amd?define(e):(t=typeof globalThis<"u"?globalThis:t||self).dayjs=e()})(tC,(function(){"use strict";var t=1e3,e=6e4,a=36e5,i="millisecond",r="second",s="minute",n="hour",o="day",l="week",d="month",u="quarter",c="year",f="date",g="Invalid Date",y=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,b=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,m={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(z){var E=["th","st","nd","rd"],_=z%100;return"["+z+(E[(_-20)%10]||E[_]||E[0])+"]"}},x=function(z,E,_){var $=String(z);return!$||$.length>=E?z:""+Array(E+1-$.length).join(_)+z},M={s:x,z:function(z){var E=-z.utcOffset(),_=Math.abs(E),$=Math.floor(_/60),V=_%60;return(E<=0?"+":"-")+x($,2,"0")+":"+x(V,2,"0")},m:function z(E,_){if(E.date()<_.date())return-z(_,E);var $=12*(_.year()-E.year())+(_.month()-E.month()),V=E.clone().add($,d),O=_-V<0,U=E.clone().add($+(O?-1:1),d);return+(-($+(_-V)/(O?V-U:U-V))||0)},a:function(z){return z<0?Math.ceil(z)||0:Math.floor(z)},p:function(z){return{M:d,y:c,w:l,d:o,D:f,h:n,m:s,s:r,ms:i,Q:u}[z]||String(z||"").toLowerCase().replace(/s$/,"")},u:function(z){return z===void 0}},k="en",F={};F[k]=m;var T="$isDayjsObject",S=function(z){return z instanceof q||!(!z||!z[T])},I=function z(E,_,$){var V;if(!E)return k;if(typeof E=="string"){var O=E.toLowerCase();F[O]&&(V=O),_&&(F[O]=_,V=O);var U=E.split("-");if(!V&&U.length>1)return z(U[0])}else{var re=E.name;F[re]=E,V=re}return!$&&V&&(k=V),V||!$&&k},L=function(z,E){if(S(z))return z.clone();var _=typeof E=="object"?E:{};return _.date=z,_.args=arguments,new q(_)},A=M;A.l=I,A.i=S,A.w=function(z,E){return L(z,{locale:E.$L,utc:E.$u,x:E.$x,$offset:E.$offset})};var q=(function(){function z(_){this.$L=I(_.locale,null,!0),this.parse(_),this.$x=this.$x||_.x||{},this[T]=!0}var E=z.prototype;return E.parse=function(_){this.$d=(function($){var V=$.date,O=$.utc;if(V===null)return new Date(NaN);if(A.u(V))return new Date;if(V instanceof Date)return new Date(V);if(typeof V=="string"&&!/Z$/i.test(V)){var U=V.match(y);if(U){var re=U[2]-1||0,j=(U[7]||"0").substring(0,3);return O?new Date(Date.UTC(U[1],re,U[3]||1,U[4]||0,U[5]||0,U[6]||0,j)):new Date(U[1],re,U[3]||1,U[4]||0,U[5]||0,U[6]||0,j)}}return new Date(V)})(_),this.init()},E.init=function(){var _=this.$d;this.$y=_.getFullYear(),this.$M=_.getMonth(),this.$D=_.getDate(),this.$W=_.getDay(),this.$H=_.getHours(),this.$m=_.getMinutes(),this.$s=_.getSeconds(),this.$ms=_.getMilliseconds()},E.$utils=function(){return A},E.isValid=function(){return this.$d.toString()!==g},E.isSame=function(_,$){var V=L(_);return this.startOf($)<=V&&V<=this.endOf($)},E.isAfter=function(_,$){return L(_)<this.startOf($)},E.isBefore=function(_,$){return this.endOf($)<L(_)},E.$g=function(_,$,V){return A.u(_)?this[$]:this.set(V,_)},E.unix=function(){return Math.floor(this.valueOf()/1e3)},E.valueOf=function(){return this.$d.getTime()},E.startOf=function(_,$){var V=this,O=!!A.u($)||$,U=A.p(_),re=function(D,R){var Z=A.w(V.$u?Date.UTC(V.$y,R,D):new Date(V.$y,R,D),V);return O?Z:Z.endOf(o)},j=function(D,R){return A.w(V.toDate()[D].apply(V.toDate("s"),(O?[0,0,0,0]:[23,59,59,999]).slice(R)),V)},me=this.$W,we=this.$M,H=this.$D,he="set"+(this.$u?"UTC":"");switch(U){case c:return O?re(1,0):re(31,11);case d:return O?re(1,we):re(0,we+1);case l:var _e=this.$locale().weekStart||0,W=(me<_e?me+7:me)-_e;return re(O?H-W:H+(6-W),we);case o:case f:return j(he+"Hours",0);case n:return j(he+"Minutes",1);case s:return j(he+"Seconds",2);case r:return j(he+"Milliseconds",3);default:return this.clone()}},E.endOf=function(_){return this.startOf(_,!1)},E.$set=function(_,$){var V,O=A.p(_),U="set"+(this.$u?"UTC":""),re=(V={},V[o]=U+"Date",V[f]=U+"Date",V[d]=U+"Month",V[c]=U+"FullYear",V[n]=U+"Hours",V[s]=U+"Minutes",V[r]=U+"Seconds",V[i]=U+"Milliseconds",V)[O],j=O===o?this.$D+($-this.$W):$;if(O===d||O===c){var me=this.clone().set(f,1);me.$d[re](j),me.init(),this.$d=me.set(f,Math.min(this.$D,me.daysInMonth())).$d}else re&&this.$d[re](j);return this.init(),this},E.set=function(_,$){return this.clone().$set(_,$)},E.get=function(_){return this[A.p(_)]()},E.add=function(_,$){var V,O=this;_=Number(_);var U=A.p($),re=function(we){var H=L(O);return A.w(H.date(H.date()+Math.round(we*_)),O)};if(U===d)return this.set(d,this.$M+_);if(U===c)return this.set(c,this.$y+_);if(U===o)return re(1);if(U===l)return re(7);var j=(V={},V[s]=e,V[n]=a,V[r]=t,V)[U]||1,me=this.$d.getTime()+_*j;return A.w(me,this)},E.subtract=function(_,$){return this.add(-1*_,$)},E.format=function(_){var $=this,V=this.$locale();if(!this.isValid())return V.invalidDate||g;var O=_||"YYYY-MM-DDTHH:mm:ssZ",U=A.z(this),re=this.$H,j=this.$m,me=this.$M,we=V.weekdays,H=V.months,he=V.meridiem,_e=function(R,Z,Y,oe){return R&&(R[Z]||R($,O))||Y[Z].slice(0,oe)},W=function(R){return A.s(re%12||12,R,"0")},D=he||function(R,Z,Y){var oe=R<12?"AM":"PM";return Y?oe.toLowerCase():oe};return O.replace(b,(function(R,Z){return Z||(function(Y){switch(Y){case"YY":return String($.$y).slice(-2);case"YYYY":return A.s($.$y,4,"0");case"M":return me+1;case"MM":return A.s(me+1,2,"0");case"MMM":return _e(V.monthsShort,me,H,3);case"MMMM":return _e(H,me);case"D":return $.$D;case"DD":return A.s($.$D,2,"0");case"d":return String($.$W);case"dd":return _e(V.weekdaysMin,$.$W,we,2);case"ddd":return _e(V.weekdaysShort,$.$W,we,3);case"dddd":return we[$.$W];case"H":return String(re);case"HH":return A.s(re,2,"0");case"h":return W(1);case"hh":return W(2);case"a":return D(re,j,!0);case"A":return D(re,j,!1);case"m":return String(j);case"mm":return A.s(j,2,"0");case"s":return String($.$s);case"ss":return A.s($.$s,2,"0");case"SSS":return A.s($.$ms,3,"0");case"Z":return U}return null})(R)||U.replace(":","")}))},E.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},E.diff=function(_,$,V){var O,U=this,re=A.p($),j=L(_),me=(j.utcOffset()-this.utcOffset())*e,we=this-j,H=function(){return A.m(U,j)};switch(re){case c:O=H()/12;break;case d:O=H();break;case u:O=H()/3;break;case l:O=(we-me)/6048e5;break;case o:O=(we-me)/864e5;break;case n:O=we/a;break;case s:O=we/e;break;case r:O=we/t;break;default:O=we}return V?O:A.a(O)},E.daysInMonth=function(){return this.endOf(d).$D},E.$locale=function(){return F[this.$L]},E.locale=function(_,$){if(!_)return this.$L;var V=this.clone(),O=I(_,$,!0);return O&&(V.$L=O),V},E.clone=function(){return A.w(this.$d,this)},E.toDate=function(){return new Date(this.valueOf())},E.toJSON=function(){return this.isValid()?this.toISOString():null},E.toISOString=function(){return this.$d.toISOString()},E.toString=function(){return this.$d.toUTCString()},z})(),C=q.prototype;return L.prototype=C,[["$ms",i],["$s",r],["$m",s],["$H",n],["$W",o],["$M",d],["$y",c],["$D",f]].forEach((function(z){C[z[1]]=function(E){return this.$g(E,z[0],z[1])}})),L.extend=function(z,E){return z.$i||(z(E,q,L),z.$i=!0),L},L.locale=I,L.isDayjs=S,L.unix=function(z){return L(1e3*z)},L.en=F[k],L.Ls=F,L.p={},L}))});var Xee=pt((iC,rC)=>{(function(t,e){typeof iC=="object"&&typeof rC<"u"?rC.exports=e():typeof define=="function"&&define.amd?define(e):(t=typeof globalThis<"u"?globalThis:t||self).dayjs_plugin_isToday=e()})(iC,(function(){"use strict";return function(t,e,a){e.prototype.isToday=function(){var i="YYYY-MM-DD",r=a();return this.format(i)===r.format(i)}}}))});function yTt(t){return{days:Math.trunc(t/864e5),hours:Math.trunc(t/36e5%24),minutes:Math.trunc(t/6e4%60),seconds:Math.trunc(t/1e3%60),milliseconds:Math.trunc(t%1e3),microseconds:Math.trunc(Qee(t*1e3)%1e3),nanoseconds:Math.trunc(Qee(t*1e6)%1e3)}}function xTt(t){return{days:t/86400000n,hours:t/3600000n%24n,minutes:t/60000n%60n,seconds:t/1000n%60n,milliseconds:t%1000n,microseconds:0n,nanoseconds:0n}}function sC(t){switch(typeof t){case"number":{if(Number.isFinite(t))return yTt(t);break}case"bigint":return xTt(t)}throw new TypeError("Expected a finite number or bigint")}var Qee,Kee=v(()=>{Qee=t=>Number.isFinite(t)?t:0});function l6(t,e){let a=typeof t=="bigint";if(!a&&!Number.isFinite(t))throw new TypeError("Expected a finite number or bigint");e={...e};let i=t<0?"-":"";t=t<0?-t:t,e.colonNotation&&(e.compact=!1,e.formatSubMilliseconds=!1,e.separateMilliseconds=!1,e.verbose=!1),e.compact&&(e.unitCount=1,e.secondsDecimalDigits=0,e.millisecondsDecimalDigits=0);let r=[],s=(u,c)=>{let f=Math.floor(u*10**c+zTt);return(Math.round(f)/10**c).toFixed(c)},n=(u,c,f,g)=>{if(!((r.length===0||!e.colonNotation)&&wTt(u)&&!(e.colonNotation&&f==="m"))){if(g??=String(u),e.colonNotation){let y=g.includes(".")?g.split(".")[0].length:g.length,b=r.length>0?2:1;g="0".repeat(Math.max(0,b-y))+g}else g+=e.verbose?" "+MTt(c,u):f;r.push(g)}},o=sC(t),l=BigInt(o.days);if(e.hideYearAndDays?n(BigInt(l)*24n+BigInt(o.hours),"hour","h"):(e.hideYear?n(l,"day","d"):(n(l/365n,"year","y"),n(l%365n,"day","d")),n(Number(o.hours),"hour","h")),n(Number(o.minutes),"minute","m"),!e.hideSeconds)if(e.separateMilliseconds||e.formatSubMilliseconds||!e.colonNotation&&t<1e3&&!e.subSecondsAsDecimals){let u=Number(o.seconds),c=Number(o.milliseconds),f=Number(o.microseconds),g=Number(o.nanoseconds);if(n(u,"second","s"),e.formatSubMilliseconds)n(c,"millisecond","ms"),n(f,"microsecond","\xB5s"),n(g,"nanosecond","ns");else{let y=c+f/1e3+g/1e6,b=typeof e.millisecondsDecimalDigits=="number"?e.millisecondsDecimalDigits:0,m=y>=1?Math.round(y):Math.ceil(y),x=b?y.toFixed(b):m;n(Number.parseFloat(x),"millisecond","ms",x)}}else{let u=(a?Number(t%STt):t)/1e3%60,c=typeof e.secondsDecimalDigits=="number"?e.secondsDecimalDigits:1,f=s(u,c),g=e.keepDecimalsOnWholeSeconds?f:f.replace(/\.0+$/,"");n(Number.parseFloat(g),"second","s",g)}if(r.length===0)return i+"0"+(e.verbose?" milliseconds":"ms");let d=e.colonNotation?":":" ";return typeof e.unitCount=="number"&&(r=r.slice(0,Math.max(e.unitCount,1))),i+r.join(d)}var wTt,MTt,zTt,STt,Jee=v(()=>{Kee();wTt=t=>t===0||t===0n,MTt=(t,e)=>e===1||e===1n?t:`${t}s`,zTt=1e-7,STt=24n*60n*60n*1000n});var e0,ete,ms=v(()=>{c6();Ri();a2();dY();Yee();e0=B1(Zee(),1),ete=B1(Xee(),1);Jee();e0.default.extend(ete.default)});var tte,ate=v(()=>{ms();tte=class{get cronArray(){return this.cronExpression.split(" ")}constructor(e){if(this.cronExpression=e,this.cronArray.length<6)throw new Error("CronParser needs second level accuracy")}getNextPartMatch(e,a,i){if(e==="*")return a;if(e.includes("/")){let r=parseInt(e.split("/")[1],10),s=n=>n%r===0?n:s(n+1);return s(a)}if(parseInt(e,10)||e==="0")return parseInt(e,10)}msToNext(){let e=this.cronArray,a=e[0],i=e[1],r=e[2],s=e[3],n=e[4],o=e[5],l=new Date,d=l.getSeconds()+1,u=l.getMinutes(),c=l.getHours(),f=l.getDate(),g=l.getMonth(),y=l.getFullYear(),b=this.getNextPartMatch(a,d,59);b<d&&(u=(u+1)%59);let m=this.getNextPartMatch(i,u,59);m<u&&(c=(c+1)%23);let x=this.getNextPartMatch(r,c,23);x<c&&(f=(f+1)%30);let M=f;M<f&&(g=(g+1)%11);let k=g;k<g&&(y=y+1);let F=y;return new Date(F,k,M,x,m,b).getTime()-Date.now()}}});var d6,nC=v(()=>{ms();oC();ate();d6=class{constructor(e,a,i){this.status="initial",this.nextExecutionUnix=0,this.cronExpression=a,this.jobFunction=i,this.cronParser=new Bc.Cron(a)}checkExecution(){if(this.nextExecutionUnix===0&&this.getNextExecutionTime(),Date.now()>this.nextExecutionUnix){let e=this.jobFunction(this.nextExecutionUnix);e instanceof Promise&&e.catch(a=>console.log(a)),this.nextExecutionUnix=this.getNextExecutionTime()}return this.nextExecutionUnix}getNextExecutionTime(){return this.nextExecutionUnix=Date.now()+this.getTimeToNextExecution()}getTimeToNextExecution(){return this.cronParser.msToNext()}start(){this.status="started"}stop(){this.status="stopped"}}});var An,lC,cC,kTt,Ep=v(()=>{ms();An={years:(t=1)=>t*3154e7,months:(t=1)=>t*2628e6,weeks:(t=1)=>t*6048e5,days:(t=1)=>t*864e5,hours:(t=1)=>t*36e5,minutes:(t=1)=>t*6e4,seconds:(t=1)=>t*1e3},lC=t=>{let e=0,a=i=>{e=e+i};return t.years&&a(An.years(t.years)),t.months&&a(An.months(t.months)),t.weeks&&a(An.weeks(t.weeks)),t.days&&a(An.days(t.days)),t.hours&&a(An.hours(t.hours)),t.minutes&&a(An.minutes(t.minutes)),t.seconds&&a(An.seconds(t.seconds)),e},cC=t=>l6(t),kTt=t=>o6.formatDistanceToNow(new Date(t))});var dC,oC=v(()=>{ms();nC();Ep();dC=class{constructor(){this.status="stopped",this.cronjobs=new s2.ObjectMap}addCronjob(e,a){let i=new d6(this,e,a);return this.cronjobs.add(i),this.status==="started"&&i.start(),i}removeCronjob(e){e.stop(),this.cronjobs.remove(e)}start(){if(this.status!=="started"){this.status="started";for(let e of this.cronjobs.getArray())e.start();this.runCronCycle()}}async runCronCycle(){this.executionTimeout=new rt.Timeout(0);do{let e;for(let a of this.cronjobs.getArray())a.checkExecution(),(!e||a.getTimeToNextExecution()<e.getTimeToNextExecution())&&(e=a);e?(this.executionTimeout=new rt.Timeout(e.getTimeToNextExecution()),console.log(`Next CronJob scheduled in ${cC(this.executionTimeout.getTimeLeft())}`)):(this.executionTimeout=new rt.Timeout(1e3),console.log("no cronjobs specified! Checking again in 1 second")),await this.executionTimeout.promise}while(this.status==="started")}stop(){this.status==="started"?(this.status="stopped",this.executionTimeout.cancel()):console.log("You tried to stop a CronManager that was not actually started.");for(let e of this.cronjobs.getArray())e.stop()}}});var uC,ite=v(()=>{ms();Ep();uC=class t extends Date{static fromMillis(e){return new t(e)}static fromDate(e){return new t(e.getTime())}static fromEuropeanDate(e){let a=/(.*)\.(.*)\.(.*)/.exec(e),r=new Date(parseFloat(a[3]),parseFloat(a[2])-1,parseFloat(a[1])).getTime();return new t(r)}static fromHyphedDate(e){let a=new Date(e).getTime();return new t(a)}static fromEuropeanDateAndTime(e,a="12:00:00",i="Europe/Berlin"){let r=/(.*)\.(.*)\.(.*)/.exec(e),s=d=>`0${d}`.slice(-2),n=`${r[3]}-${s(r[2])}-${s(r[1])}T${a}`,l=e0.default(n).toDate().getTime();return new t(l)}constructor(e=Date.now()){super(e)}exportToEuropeanDate(){let e=this.exportToUnits();return`${e.dayString}.${e.monthString}.${e.yearString}`}exportToHyphedSortableDate(){let e=this.exportToUnits();return`${e.yearString}-${e.monthString}-${e.dayString}`}exportToUnits(){let e=["January","February","March","April","May","June","July","August","September","October","November","December"],a=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"];return{year:this.getFullYear(),yearString:`${this.getFullYear()}`,month:this.getMonth()+1,monthString:("0"+(this.getMonth()+1)).slice(-2),monthName:e[this.getMonth()],day:this.getDate(),dayString:("0"+this.getDate()).slice(-2),dayOfTheWeek:this.getDay(),dayOfTheWeekName:a[this.getDay()]}}format(e){return e0.default(this.getTime()).format(e)}isToday(){return e0.default(this.getTime()).isToday()}lessTimePassedToNow(e){let a=lC(e);return Date.now()-this.getTime()<a}moreTimePassedToNow(e){return!this.lessTimePassedToNow(e)}}});var pC,rte=v(()=>{pC=class{constructor(){this.nanoSeconds=null,this.milliSeconds=null,this._milliStart=null,this._milliDiff=null,this._started=!1}start(){this._started=!0,this._milliStart=Date.now()}stop(){if(this._started===!1){console.log("Hasn't started yet");return}return this._milliDiff=Date.now()-this._milliStart,this.nanoSeconds=this._milliDiff*1e3,this.milliSeconds=this._milliDiff,this}reset(){this.nanoSeconds=null,this.milliSeconds=null,this._milliStart=null,this._milliDiff=null,this._started=!1}}});var hC,ste=v(()=>{ms();hC=class{constructor(e){this.status="initial",this.statusAuthorization=null,this.intervalJobs=[],this.intervalMilliseconds=e}start(){this.status="started";let e=new Date;this.statusAuthorization=e,(async()=>{for(;this.status==="started"&&this.statusAuthorization===e;)await rt.delayFor(this.intervalMilliseconds),this.executeIntervalJobs()})()}stop(){this.status="stopped",this.statusAuthorization=null}addIntervalJob(e){this.intervalJobs.push(e)}executeIntervalJobs(){for(let e of this.intervalJobs)e()}}});var h3,fC=v(()=>{ms();h3=class t{static fromMilliSeconds(e){return new t(e)}static fromTimeStamp(e){let a=new t;return a.change=a.milliSeconds-e.milliSeconds,a}constructor(e){this.change=null,e?typeof e=="number"&&(this.date=new Date(e)):this.date=new Date,this.milliSeconds=this.date.getTime(),this.epochtime=Math.floor(this.milliSeconds/1e3)}isOlderThanOtherTimeStamp(e,a=0){return this.milliSeconds<e.milliSeconds-a}isOlderThan(e,a=0){return this.milliSeconds+a<e.milliSeconds}isYoungerThanOtherTimeStamp(e,a=0){return this.milliSeconds>e.milliSeconds+a}isYoungerThanMilliSeconds(e){let i=new t().epochtime-e,r=new t(i);return this.isYoungerThanOtherTimeStamp(r)}}});var mC,nte=v(()=>{ms();fC();mC=class{get timeLeft(){return this.timeInMilliseconds-this.pausedAt.change}constructor(e){this.state="initiated",this.completedDeferred=He.defer(),this.timeInMilliseconds=e,this.completed=this.completedDeferred.promise}start(){if(!this.startedAt)this.currentTimeout=setTimeout(()=>{this.completedDeferred.resolve()},this.timeInMilliseconds),this.startedAt=new h3;else throw new Error("timer has been started before. Please use resume instead")}pause(){this.startedAt&&(clearTimeout(this.currentTimeout),this.currentTimeout=null,this.pausedAt=h3.fromTimeStamp(this.startedAt))}resume(){if(this.startedAt)this.currentTimeout=setTimeout(()=>{this.completedDeferred.resolve()},this.timeLeft);else throw new Error("timer has NOT been started before. Please use .start() instead")}reset(){this.pause(),this.startedAt=null,this.pausedAt=null}}});var gs={};Qe(gs,{CronJob:()=>d6,CronManager:()=>dC,ExtendedDate:()=>uC,HrtMeasurement:()=>pC,Interval:()=>hC,TimeStamp:()=>h3,Timer:()=>mC,getMilliSecondsAsHumanReadableAgoTime:()=>kTt,getMilliSecondsAsHumanReadableString:()=>cC,getMilliSecondsFromUnits:()=>lC,units:()=>An});var gC=v(()=>{oC();nC();ite();rte();ste();nte();fC();Ep()});var lte=pt((uS1,ote)=>{"use strict";ote.exports=class{constructor(){this.parent=null,this.previousSibling=null,this.nextSibling=null,this.firstChild=null,this.lastChild=null,this.childrenVersion=0,this.childIndexCachedUpTo=null,this.cachedIndex=-1,this.cachedIndexVersion=NaN}get isAttached(){return!!(this.parent||this.previousSibling||this.nextSibling)}get hasChildren(){return!!this.firstChild}childrenChanged(){this.childrenVersion=this.childrenVersion+1&4294967295,this.childIndexCachedUpTo=null}getCachedIndex(e){return this.cachedIndexVersion!==e.childrenVersion?(this.cachedIndexVersion=NaN,-1):this.cachedIndex}setCachedIndex(e,a){this.cachedIndexVersion=e.childrenVersion,this.cachedIndex=a}}});var dte=pt((pS1,cte)=>{"use strict";cte.exports=Object.freeze({DISCONNECTED:1,PRECEDING:2,FOLLOWING:4,CONTAINS:8,CONTAINED_BY:16})});var mte=pt((hS1,fte)=>{"use strict";var ute=Symbol(),pte=Symbol(),Dn=Symbol(),hte=Symbol(),Bi=class{constructor(e,a,i,r){this[ute]=e,this[pte]=a,this[Dn]=i,this[hte]=r}next(){let e=this[ute],a=this[hte],i=this[pte];if(!this[Dn])return{done:!0,value:i};let r=this[Dn];return a===1?this[Dn]=e._node(r).previousSibling:a===2?this[Dn]=e._node(r).nextSibling:a===3?this[Dn]=e._node(r).parent:a===4?this[Dn]=e.preceding(r,{root:i}):this[Dn]=e.following(r,{root:i}),{done:!1,value:r}}};Object.defineProperty(Bi.prototype,Symbol.iterator,{value:function(){return this},writable:!1}),Bi.PREV=1,Bi.NEXT=2,Bi.PARENT=3,Bi.PRECEDING=4,Bi.FOLLOWING=5,Object.freeze(Bi),Object.freeze(Bi.prototype),fte.exports=Bi});var vC=pt((fS1,gte)=>{"use strict";var TTt=lte(),En=dte(),mi=mte();function bC(){return!0}function f3(t,e){return t[t.length-1-e]}var Pp=class{constructor(e){this.symbol=Symbol(e||"SymbolTree data")}initialize(e){return this._node(e),e}_node(e){if(!e)return null;let a=e[this.symbol];return a||(e[this.symbol]=new TTt)}hasChildren(e){return this._node(e).hasChildren}firstChild(e){return this._node(e).firstChild}lastChild(e){return this._node(e).lastChild}previousSibling(e){return this._node(e).previousSibling}nextSibling(e){return this._node(e).nextSibling}parent(e){return this._node(e).parent}lastInclusiveDescendant(e){let a,i=e;for(;a=this._node(i).lastChild;)i=a;return i}preceding(e,a){let i=a&&a.root;if(e===i)return null;let r=this._node(e).previousSibling;return r?this.lastInclusiveDescendant(r):this._node(e).parent}following(e,a){let i=a&&a.root,s=!(a&&a.skipChildren)&&this._node(e).firstChild;if(s)return s;let n=e;do{if(n===i)return null;let o=this._node(n).nextSibling;if(o)return o;n=this._node(n).parent}while(n);return null}childrenToArray(e,a){let i=a&&a.array||[],r=a&&a.filter||bC,s=a&&a.thisArg||void 0,n=this._node(e),o=n.firstChild,l=0;for(;o;){let d=this._node(o);d.setCachedIndex(n,l),r.call(s,o)&&i.push(o),o=d.nextSibling,++l}return i}ancestorsToArray(e,a){let i=a&&a.array||[],r=a&&a.filter||bC,s=a&&a.thisArg||void 0,n=e;for(;n;)r.call(s,n)&&i.push(n),n=this._node(n).parent;return i}treeToArray(e,a){let i=a&&a.array||[],r=a&&a.filter||bC,s=a&&a.thisArg||void 0,n=e;for(;n;)r.call(s,n)&&i.push(n),n=this.following(n,{root:e});return i}childrenIterator(e,a){let i=a&&a.reverse,r=this._node(e);return new mi(this,e,i?r.lastChild:r.firstChild,i?mi.PREV:mi.NEXT)}previousSiblingsIterator(e){return new mi(this,e,this._node(e).previousSibling,mi.PREV)}nextSiblingsIterator(e){return new mi(this,e,this._node(e).nextSibling,mi.NEXT)}ancestorsIterator(e){return new mi(this,e,e,mi.PARENT)}treeIterator(e,a){let i=a&&a.reverse;return new mi(this,e,i?this.lastInclusiveDescendant(e):e,i?mi.PRECEDING:mi.FOLLOWING)}index(e){let a=this._node(e),i=this._node(a.parent);if(!i)return-1;let r=a.getCachedIndex(i);if(r>=0)return r;r=0;let s=i.firstChild;if(i.childIndexCachedUpTo){let n=this._node(i.childIndexCachedUpTo);s=n.nextSibling,r=n.getCachedIndex(i)+1}for(;s;){let n=this._node(s);if(n.setCachedIndex(i,r),s===e)break;++r,s=n.nextSibling}return i.childIndexCachedUpTo=e,r}childrenCount(e){let a=this._node(e);return a.lastChild?this.index(a.lastChild)+1:0}compareTreePosition(e,a){if(e===a)return 0;let i=[];{let u=e;for(;u;){if(u===a)return En.CONTAINS|En.PRECEDING;i.push(u),u=this.parent(u)}}let r=[];{let u=a;for(;u;){if(u===e)return En.CONTAINED_BY|En.FOLLOWING;r.push(u),u=this.parent(u)}}let s=f3(i,0);if(!s||s!==f3(r,0))return En.DISCONNECTED;let n=0,o=Math.min(i.length,r.length);for(let u=0;u<o;++u){let c=f3(i,u),f=f3(r,u);if(c!==f)break;n=u}let l=this.index(f3(i,n+1));return this.index(f3(r,n+1))<l?En.PRECEDING:En.FOLLOWING}remove(e){let a=this._node(e),i=this._node(a.parent),r=this._node(a.previousSibling),s=this._node(a.nextSibling);return i&&(i.firstChild===e&&(i.firstChild=a.nextSibling),i.lastChild===e&&(i.lastChild=a.previousSibling)),r&&(r.nextSibling=a.nextSibling),s&&(s.previousSibling=a.previousSibling),a.parent=null,a.previousSibling=null,a.nextSibling=null,a.cachedIndex=-1,a.cachedIndexVersion=NaN,i&&i.childrenChanged(),e}insertBefore(e,a){let i=this._node(e),r=this._node(i.previousSibling),s=this._node(a),n=this._node(i.parent);if(s.isAttached)throw Error("Given object is already present in this SymbolTree, remove it first");return s.parent=i.parent,s.previousSibling=i.previousSibling,s.nextSibling=e,i.previousSibling=a,r&&(r.nextSibling=a),n&&n.firstChild===e&&(n.firstChild=a),n&&n.childrenChanged(),a}insertAfter(e,a){let i=this._node(e),r=this._node(i.nextSibling),s=this._node(a),n=this._node(i.parent);if(s.isAttached)throw Error("Given object is already present in this SymbolTree, remove it first");return s.parent=i.parent,s.previousSibling=e,s.nextSibling=i.nextSibling,i.nextSibling=a,r&&(r.previousSibling=a),n&&n.lastChild===e&&(n.lastChild=a),n&&n.childrenChanged(),a}prependChild(e,a){let i=this._node(e),r=this._node(a);if(r.isAttached)throw Error("Given object is already present in this SymbolTree, remove it first");return i.hasChildren?this.insertBefore(i.firstChild,a):(r.parent=e,i.firstChild=a,i.lastChild=a,i.childrenChanged()),a}appendChild(e,a){let i=this._node(e),r=this._node(a);if(r.isAttached)throw Error("Given object is already present in this SymbolTree, remove it first");return i.hasChildren?this.insertAfter(i.lastChild,a):(r.parent=e,i.firstChild=a,i.lastChild=a,i.childrenChanged()),a}};gte.exports=Pp,Pp.TreePosition=En});var Np,gi=v(()=>{Ri();YS();a2();pi();gC();Np=B1(vC(),1)});var yC,bte=v(()=>{gi();yC=class{constructor(){this.executionSlots=[],this.isProcessing=!1,this.nonExclusiveMaxConcurrency=1/0,this.nonExclusiveCurrentCount=0,this.nonExclusivePendingQueue=[]}async getExclusiveExecutionSlot(e,a){let i=He.defer(),r={funcToExecute:e,executionDeferred:i,timeout:a,mode:"exclusive"};return this.executionSlots.push(r),this.processExecutionSlots(),i.promise}async getNonExclusiveExecutionSlot(e,a){let i=He.defer(),r={funcToExecute:e,executionDeferred:i,timeout:a,mode:"nonexclusive"};return this.executionSlots.push(r),this.processExecutionSlots(),i.promise}setNonExclusiveMaxConcurrency(e){if(!Number.isFinite(e)||e<1)throw new Error("nonExclusiveMaxConcurrency must be a finite number >= 1");this.nonExclusiveMaxConcurrency=e}getNonExclusiveMaxConcurrency(){return this.nonExclusiveMaxConcurrency}getActiveNonExclusiveCount(){return this.nonExclusiveCurrentCount}getPendingNonExclusiveCount(){return this.nonExclusivePendingQueue.length}async processExecutionSlots(){if(!this.isProcessing){for(this.isProcessing=!0;this.executionSlots.length>0;){let e=this.executionSlots[0];if(e.mode==="exclusive")await this.executeExclusiveSlot(e),this.executionSlots.shift();else{let a=[];for(;this.executionSlots.length>0&&this.executionSlots[0].mode==="nonexclusive";)a.push(this.executionSlots.shift());await this.executeNonExclusiveSlots(a)}}this.isProcessing=!1}}async executeExclusiveSlot(e){try{if(e.timeout){let a=await Promise.race([e.funcToExecute(),rt.delayFor(e.timeout).then(()=>{throw new Error("Timeout reached")})]);e.executionDeferred.resolve(a)}else{let a=await e.funcToExecute();e.executionDeferred.resolve(a)}}catch(a){e.executionDeferred.reject(a)}}async executeNonExclusiveSlots(e){let a=e.map(async i=>{await this.waitForNonExclusiveSlot();try{if(i.timeout){let r=await Promise.race([i.funcToExecute(),rt.delayFor(i.timeout).then(()=>{throw new Error("Timeout reached")})]);i.executionDeferred.resolve(r)}else{let r=await i.funcToExecute();i.executionDeferred.resolve(r)}}catch(r){i.executionDeferred.reject(r)}finally{this.releaseNonExclusiveSlot()}});await Promise.all(a)}waitForNonExclusiveSlot(){return this.nonExclusiveCurrentCount<this.nonExclusiveMaxConcurrency?(this.nonExclusiveCurrentCount++,Promise.resolve()):new Promise(e=>{this.nonExclusivePendingQueue.push(()=>{this.nonExclusiveCurrentCount++,e()})})}releaseNonExclusiveSlot(){this.nonExclusiveCurrentCount--;let e=this.nonExclusivePendingQueue.shift();e&&e()}}});var xC,vte=v(()=>{gi();xC=class{constructor(e=16){this.hasSpace=new yt.rxjs.Subject,this.itemsAvailable=new yt.rxjs.Subject,this.data=[],this.highWaterMark=e}push(e){this.data.push(e),this.itemsAvailable.next("itemsAvailable");let a=this.checkSpaceAvailable();return a&&this.hasSpace.next("hasSpace"),a}shift(){let e=this.data.shift();return this.checkSpaceAvailable()&&this.hasSpace.next("hasSpace"),e}checkSpaceAvailable(){return this.data.length<this.highWaterMark}checkHasItems(){return this.data.length>0}waitForSpace(){return new Promise(e=>{if(this.checkSpaceAvailable())e();else{let a=this.hasSpace.subscribe(()=>{a.unsubscribe(),e()})}})}waitForItems(){return new Promise(e=>{if(this.data.length>0)e();else{let a=this.itemsAvailable.subscribe(()=>{a.unsubscribe(),e()})}})}}});var u6,wC=v(()=>{gi();u6=class t{constructor(){this.mapObject={}}isUniqueKey(e){return!this.mapObject[e]}addToMap(e,a,i){return this.isUniqueKey(e)||i&&i.force?(this.mapObject[e]=a,!0):!1}getByKey(e){return this.mapObject[e]}removeFromMap(e){let a=this.getByKey(e);return delete this.mapObject[e],a}getKeys(){let e=[];for(let a in this.mapObject)this.mapObject[a]&&e.push(a);return e}clean(){this.mapObject={}}concat(e){let a=new t;for(let i of this.getKeys())a.addToMap(i,this.getByKey(i));for(let i of e.getKeys())a.addToMap(i,e.getByKey(i),{force:!0});return a}addAllFromOther(e){for(let a of e.getKeys())this.addToMap(a,e.getByKey(a),{force:!0})}async find(e){for(let a of this.getKeys()){let i=this.getByKey(a);if(await e(i))return i}}}});var yte,t0,Ip=v(()=>{gi();wC();yte=(t="uni")=>`${t}xxxxxxxxxxx`.replace(/[xy]/g,e=>{let a=Math.random()*16|0;return(e==="x"?a:a&3|8).toString(16)}),t0=class t{constructor(){this.fastMap=new u6,this.eventSubject=new yt.rxjs.Subject}addMappedUnique(e,a){this.fastMap.addToMap(e,a)}getMappedUnique(e){return this.fastMap.getByKey(e)}removeMappedUnique(e){let a=this.getMappedUnique(e)}add(e){for(let i of this.fastMap.getKeys())if(this.fastMap.getByKey(i)===e)return i;let a=yte("key");return this.addMappedUnique(a,e),this.eventSubject.next({operation:"add",payload:e}),a}addArray(e){for(let a of e)this.add(a)}checkForObject(e){return!!this.getKeyForObject(e)}getKeyForObject(e){let a=null;for(let i of this.fastMap.getKeys())if(!a&&this.fastMap.getByKey(i)===e)a=i;else continue;return a}async find(e){return this.fastMap.find(e)}findSync(e){for(let a of this.fastMap.getKeys())if(e(this.fastMap.getByKey(a)))return this.getMappedUnique(a)}async findOneAndRemove(e){let a=await this.find(e);return a&&this.remove(a),a}findOneAndRemoveSync(e){let a=this.findSync(e);return a&&this.remove(a),a}async forEach(e){for(let a of this.fastMap.getKeys())await e(this.fastMap.getByKey(a))}getOneAndRemove(){let e=this.fastMap.getKeys();if(e.length===0)return null;{let a=e[0],i=this.fastMap.removeFromMap(a);return this.eventSubject.next({operation:"remove",payload:i}),i}}getArray(){let e=[];for(let a of this.fastMap.getKeys())e.push(this.fastMap.getByKey(a));return e}isEmpty(){return this.fastMap.getKeys().length===0}remove(e){if(this.checkForObject(e)){let a=this.getKeyForObject(e),i=this.fastMap.removeFromMap(a);return this.eventSubject.next({operation:"remove",payload:i}),i}return null}wipe(){for(let e of this.fastMap.getKeys())this.fastMap.removeFromMap(e)}concat(e){let a=new t;return a.fastMap.addAllFromOther(this.fastMap),a.fastMap.addAllFromOther(e.fastMap),a}addAllFromOther(e){this.fastMap.addAllFromOther(e.fastMap)}}});var p6,MC=v(()=>{gi();zC();p6=class{get comparisonString(){return this.comparisonFunc(this.originalInterest)}fullfillInterest(e){this.isFullfilled=!0,this.fullfillmentStore=[],this.interestDeferred.resolve(e)}constructor(e,a,i,r){this.destructionTimer=new gs.Timer(1e4),this.isFullfilled=!1,this.fullfillmentStore=[],this.interestDeferred=new He.Deferred,this.interestFullfilled=this.interestDeferred.promise,this.interestMapRef=e,this.originalInterest=a,this.comparisonFunc=i,this.options=r,this.destructionTimer.completed.then(()=>{this.destroy()}),this.options?.markLostAfterDefault&&rt.delayFor(this.options.markLostAfterDefault).then(this.markLost)}destroy(){this.interestMapRef.removeInterest(this),!this.isFullfilled&&this.options.defaultFullfillment&&this.fullfillInterest(this.options.defaultFullfillment)}markLost(){this.destructionTimer.start()}renew(){this.destructionTimer.reset()}}});var SC,zC=v(()=>{gi();Ip();MC();SC=class{constructor(e,a={}){this.interestObjectMap=new t0,this.interestObservable=new yt.ObservableIntake,this.comparisonFunc=e,this.options=a}async addInterest(e,a){let i=this.comparisonFunc(e),r,s=new p6(this,e,this.comparisonFunc,{markLostAfterDefault:this.options.markLostAfterDefault,defaultFullfillment:a}),n=!1;return await this.interestObjectMap.forEach(o=>{!n&&o.comparisonString===s.comparisonString&&(console.log("info",`interest already exists for ${s.comparisonString}`),n=!0,r=o,r.renew())}),r||(r=s,this.interestObjectMap.add(r)),this.interestObservable.push(r),r}removeInterest(e){let a=this.interestObjectMap.findOneAndRemoveSync(i=>e.comparisonString===i.comparisonString)}checkInterest(e){let a=this.comparisonFunc(e);return this.checkInterestByString(a)}checkInterestByString(e){return!!this.interestObjectMap.findSync(i=>i.comparisonString===e)}informLostInterest(e){let a=this.findInterest(e);a&&a.markLost()}findInterest(e){let a=this.comparisonFunc(e);return this.interestObjectMap.findSync(r=>r.comparisonString===a)}}});var kC,xte=v(()=>{gi();kC=class{constructor(e){this.array=[],this.arrayLimit=e}addOne(e){this.array.unshift(e),this.array.length>this.arrayLimit&&(this.array.length=this.arrayLimit)}addMany(e){for(let a of e)this.addOne(a)}setLimit(e){this.arrayLimit=e,this.array.length>this.arrayLimit&&(this.array.length=this.arrayLimit)}getAverage(){if(typeof this.array[0]=="number"){let e=0;for(let a of this.array)e=e+a;return e/this.array.length}else return null}}});var CC,wte=v(()=>{gi();Ip();CC=class{constructor(){this.referenceObjectMap=new t0}checkAndTrack(e){return this.referenceObjectMap.checkForObject(e)?!1:(this.referenceObjectMap.add(e),!0)}}});var TC,Mte=v(()=>{gi();TC=class{constructor(){this._stringArray=[],this._triggerUntilTrueFunctionArray=[]}addString(e){this._stringArray.push(e),this.notifyTrigger()}addStringArray(e){for(let a of e)this.addString(a)}removeString(e){for(let a in this._stringArray)this._stringArray[a]===e&&this._stringArray.splice(parseInt(a),1);this.notifyTrigger()}wipe(){this._stringArray=[],this.notifyTrigger()}checkString(e){return this._stringArray.indexOf(e)!==-1}checkMinimatch(e){let a=new os.SmartMatch(e),i=!1;for(let r of this._stringArray)a.match(r)&&(i=!0);return i}checkIsEmpty(){return this._stringArray.length===0}getStringArray(){let e=[];for(let a of this._stringArray)e.push(a);return e}registerUntilTrue(e,a){let i=He.defer();return this._triggerUntilTrueFunctionArray.push(()=>{let r=e(this.getStringArray());return r===!0&&(a&&a(),i.resolve()),r}),this.notifyTrigger(),i.promise}notifyTrigger(){let e=this._triggerUntilTrueFunctionArray.filter(a=>!a());this._triggerUntilTrueFunctionArray=e}}});var _C,zte=v(()=>{gi();_C=class{constructor(e){this.storageArray=[],this.options=e}checkAggregationStatus(){let e=()=>{this.aggregationTimer=new gs.Timer(this.options.aggregationIntervalInMillis),this.aggregationTimer.completed.then(()=>{let a=this.storageArray;if(a.length===0){this.aggregationTimer=null;return}this.storageArray=[],e(),this.options.functionForAggregation(a)}),this.aggregationTimer.start()};this.aggregationTimer||e()}add(e){this.storageArray.push(e),this.checkAggregationStatus()}}});var LC,Ste=v(()=>{gi();LC=class{constructor(){this.symbolTree=new Np.default}initialize(e){return this.symbolTree.initialize(e)}hasChildren(e){return this.symbolTree.hasChildren(e)}firstChild(e){return this.symbolTree.firstChild(e)}lastChild(e){return this.symbolTree.lastChild(e)}previousSibling(e){return this.symbolTree.previousSibling(e)}nextSibling(e){return this.symbolTree.nextSibling(e)}parent(e){return this.symbolTree.parent(e)}lastInclusiveDescendant(e){return this.symbolTree.lastInclusiveDescendant(e)}preceding(e,a){return this.symbolTree.preceding(e,a)}following(e,a){return this.symbolTree.following(e,a)}childrenToArray(e,a){return this.symbolTree.childrenToArray(e,a)}ancestorsToArray(e,a){return this.symbolTree.ancestorsToArray(e,a)}treeToArray(e,a){return this.symbolTree.treeToArray(e,a)}childrenIterator(e,a){return this.symbolTree.childrenIterator(e,a)}previousSiblingsIterator(e){return this.symbolTree.previousSiblingsIterator(e)}nextSiblingsIterator(e){return this.symbolTree.nextSiblingsIterator()}ancestorsIterator(e){this.symbolTree.ancestorsIterator()}treeIterator(e,a){return this.symbolTree.treeIterator(e)}index(e){return this.symbolTree.index(e)}childrenCount(e){return this.symbolTree.childrenCount(e)}compareTreePosition(e,a){return this.compareTreePosition(e,a)}remove(e){return this.symbolTree.remove(e)}insertBefore(e,a){return this.symbolTree.insertBefore(e,a)}insertAfter(e,a){return this.symbolTree.insertAfter(e,a)}prependChild(e,a){return this.symbolTree.prependChild(e,a)}appendChild(e,a){return this.symbolTree.appendChild(e,a)}toJsonWithHierachy(e){let a=this.treeIterator(e,{});for(let i of a)console.log(i)}fromJsonWithHierachy(e){}}});var s2={};Qe(s2,{AsyncExecutionStack:()=>yC,BackpressuredArray:()=>xC,FastMap:()=>u6,Interest:()=>p6,InterestMap:()=>SC,LimitedArray:()=>kC,LoopTracker:()=>CC,ObjectMap:()=>t0,Stringmap:()=>TC,TimedAggregtor:()=>_C,Tree:()=>LC,uni:()=>yte});var c6=v(()=>{bte();vte();wC();zC();MC();xte();wte();Ip();Mte();zte();Ste()});var In={};Qe(In,{areUint8ArraysEqual:()=>NTt,assertUint8Array:()=>Nn,assertUint8ArrayOrArrayBuffer:()=>Lte,base64ToString:()=>HTt,base64ToUint8Array:()=>Ete,compareUint8Arrays:()=>ITt,concatUint8Arrays:()=>PTt,getUintBE:()=>UTt,hexToUint8Array:()=>jTt,includes:()=>WTt,indexOf:()=>Pte,isUint8Array:()=>$C,stringToBase64:()=>BTt,stringToUint8Array:()=>Ate,toUint8Array:()=>ETt,uint8ArrayToBase64:()=>Dte,uint8ArrayToHex:()=>VTt,uint8ArrayToString:()=>$te});function kte(t,e,a){return t?t.constructor===e?!0:_Tt.call(t)===a:!1}function $C(t){return kte(t,Uint8Array,LTt)}function ATt(t){return kte(t,ArrayBuffer,$Tt)}function DTt(t){return $C(t)||ATt(t)}function Nn(t){if(!$C(t))throw new TypeError(`Expected \`Uint8Array\`, got \`${typeof t}\``)}function Lte(t){if(!DTt(t))throw new TypeError(`Expected \`Uint8Array\` or \`ArrayBuffer\`, got \`${typeof t}\``)}function ETt(t){if(t instanceof ArrayBuffer)return new Uint8Array(t);if(ArrayBuffer.isView(t))return new Uint8Array(t.buffer,t.byteOffset,t.byteLength);throw new TypeError(`Unsupported value, got \`${typeof t}\`.`)}function PTt(t,e){if(t.length===0)return new Uint8Array(0);e??=t.reduce((r,s)=>r+s.length,0);let a=new Uint8Array(e),i=0;for(let r of t)Nn(r),a.set(r,i),i+=r.length;return a}function NTt(t,e){if(Nn(t),Nn(e),t===e)return!0;if(t.length!==e.length)return!1;for(let a=0;a<t.length;a++)if(t[a]!==e[a])return!1;return!0}function ITt(t,e){Nn(t),Nn(e);let a=Math.min(t.length,e.length);for(let i=0;i<a;i++){let r=t[i]-e[i];if(r!==0)return Math.sign(r)}return Math.sign(t.length-e.length)}function $te(t,e="utf8"){return Lte(t),Cte[e]??=new globalThis.TextDecoder(e),Cte[e].decode(t)}function h6(t){if(typeof t!="string")throw new TypeError(`Expected \`string\`, got \`${typeof t}\``)}function Ate(t){return h6(t),FTt.encode(t)}function RTt(t){return t.replaceAll("+","-").replaceAll("/","_").replace(/=+$/,"")}function OTt(t){let e=t.replaceAll("-","+").replaceAll("_","/"),a=(4-e.length%4)%4;return e+"=".repeat(a)}function Dte(t,{urlSafe:e=!1}={}){Nn(t);let a="";for(let i=0;i<t.length;i+=Tte){let r=t.subarray(i,i+Tte);a+=globalThis.btoa(String.fromCodePoint.apply(void 0,r))}return e?RTt(a):a}function Ete(t){return h6(t),Uint8Array.from(globalThis.atob(OTt(t)),e=>e.codePointAt(0))}function BTt(t,{urlSafe:e=!1}={}){return h6(t),Dte(Ate(t),{urlSafe:e})}function HTt(t){return h6(t),$te(Ete(t))}function VTt(t){Nn(t);let e="";for(let a=0;a<t.length;a++)e+=qTt[t[a]];return e}function jTt(t){if(h6(t),t.length%2!==0)throw new Error("Invalid Hex string length.");let e=t.length/2,a=new Uint8Array(e);for(let i=0;i<e;i++){let r=_te[t[i*2]],s=_te[t[i*2+1]];if(r===void 0||s===void 0)throw new Error(`Invalid Hex character encountered at position ${i*2}`);a[i]=r<<4|s}return a}function UTt(t){let{byteLength:e}=t;if(e===6)return t.getUint16(0)*2**32+t.getUint32(2);if(e===5)return t.getUint8(0)*2**32+t.getUint32(1);if(e===4)return t.getUint32(0);if(e===3)return t.getUint8(0)*2**16+t.getUint16(1);if(e===2)return t.getUint16(0);if(e===1)return t.getUint8(0)}function Pte(t,e){let a=t.length,i=e.length;if(i===0||i>a)return-1;let r=a-i;for(let s=0;s<=r;s++){let n=!0;for(let o=0;o<i;o++)if(t[s+o]!==e[o]){n=!1;break}if(n)return s}return-1}function WTt(t,e){return Pte(t,e)!==-1}var _Tt,LTt,$Tt,Cte,FTt,Tte,qTt,_te,Nte=v(()=>{_Tt=Object.prototype.toString,LTt="[object Uint8Array]",$Tt="[object ArrayBuffer]";Cte={utf8:new globalThis.TextDecoder("utf8")};FTt=new globalThis.TextEncoder;Tte=65535;qTt=Array.from({length:256},(t,e)=>e.toString(16).padStart(2,"0"));_te={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,b:11,c:12,d:13,e:14,f:15,A:10,B:11,C:12,D:13,E:14,F:15}});var Ite=v(()=>{Nte()});var m3={};Qe(m3,{base64ToUint8Array:()=>XTt,ensurePureUint8Array:()=>JTt,isBufferLike:()=>KTt,isUint8Array:()=>QTt,uInt8ArrayExtras:()=>YTt,uInt8ArrayToBase64:()=>ZTt});function ZTt(t){return In.uint8ArrayToBase64(t)}function XTt(t){return In.base64ToUint8Array(t)}function KTt(t){return t&&typeof t.byteLength=="number"?!0:typeof Buffer<"u"&&Buffer.isBuffer?Buffer.isBuffer(t):!1}function JTt(t){let e=new Uint8Array(t.length);return e.set(t),e}var YTt,QTt,Fte=v(()=>{Ite();YTt=In;QTt=t=>In.isUint8Array(t)});var f6=v(()=>{a2()});var m6,Fp=v(()=>{f6();m6=class{constructor(e,a){this.guardFunction=e,this.options=a}async exec(e){return await this.guardFunction(e)}async getFailedHint(e){return await this.exec(e)?null:this.options.failedHint}}});var g6,AC=v(()=>{f6();g6=class extends Error{constructor(e){super(e),this.name="GuardError"}}});var b6,DC=v(()=>{f6();Fp();b6=class extends m6{constructor(e=[]){super(async a=>this.allGuardsPass(a)),this.guards=e}async execAllWithData(e,a={mode:"parallel",stopOnFail:!1}){let i=[];for(let s of this.guards){let n=s.exec(e);if(a.mode==="serial"&&await n,i.push(n),a.stopOnFail&&!await n)return await Promise.all(i)}return await Promise.all(i)}async allGuardsPass(e,a={mode:"parallel",stopOnFail:!1}){return(await this.execAllWithData(e,a)).every(r=>r)}async anyGuardsPass(e){return(await this.execAllWithData(e,{mode:"parallel",stopOnFail:!1})).some(i=>i)}getFailedHint(e){for(let a of this.guards){let i=a.getFailedHint(e);if(i)return i}}}});var v6={};Qe(v6,{Guard:()=>m6,GuardError:()=>g6,GuardSet:()=>b6,passGuardsOrReject:()=>e_t});var e_t,Rte=v(()=>{f6();Fp();AC();Fp();DC();DC();AC();e_t=async(t,e)=>{let a=new b6(e);if(!await a.allGuardsPass(t)){let r=await a.getFailedHint(t);throw new g6(`Guards failed:
|
|
6
6
|
${r}
|
|
7
7
|
`)}}});var g3,EC=v(()=>{g3=class{constructor(){this.requestInterceptors=[],this.responseInterceptors=[],this.errorInterceptors=[]}addRequestInterceptor(e){this.requestInterceptors.push(e)}addResponseInterceptor(e){this.responseInterceptors.push(e)}addErrorInterceptor(e){this.errorInterceptors.push(e)}removeRequestInterceptor(e){let a=this.requestInterceptors.indexOf(e);a>-1&&this.requestInterceptors.splice(a,1)}removeResponseInterceptor(e){let a=this.responseInterceptors.indexOf(e);a>-1&&this.responseInterceptors.splice(a,1)}removeErrorInterceptor(e){let a=this.errorInterceptors.indexOf(e);a>-1&&this.errorInterceptors.splice(a,1)}clearAll(){this.requestInterceptors=[],this.responseInterceptors=[],this.errorInterceptors=[]}async processRequest(e){let a=e;for(let i of this.requestInterceptors)try{a=await i(a)}catch(r){throw await this.processError(r instanceof Error?r:new Error(String(r)))}return a}async processResponse(e){let a=e;for(let i of this.responseInterceptors)try{a=await i(a)}catch(r){throw await this.processError(r instanceof Error?r:new Error(String(r)))}return a}async processError(e){let a=e;for(let i of this.errorInterceptors)try{a=await i(a)}catch(r){a=r instanceof Error?r:new Error(String(r))}return a}getInterceptorCounts(){return{request:this.requestInterceptors.length,response:this.responseInterceptors.length,error:this.errorInterceptors.length}}}});var Ote=v(()=>{a2()});var Bte=v(()=>{});var PC,Hte=v(()=>{Ote();Bte();PC=class{constructor(){this.loadedScripts=[]}async getEnvAwareModule(e){if(this.isNode)return await this.getSafeNodeModule(e.nodeModuleName);if(this.isBrowser)return await this.getSafeWebModule(e.webUrlArg,e.getFunction);console.error("platform for loading not supported by smartenv")}async getSafeNodeModule(e,a){if(!this.isNode){console.error(`You tried to load a node module in a wrong context: ${e}. This does not throw.`);return}let i=await new Function(`return import('${e}')`)();return a&&await a(i),i}async getSafeWebModule(e,a){if(!this.isBrowser){console.error("You tried to load a web module in a wrong context");return}if(this.loadedScripts.includes(e))return a();this.loadedScripts.push(e);let i=He.defer();if(globalThis.importScripts)globalThis.importScripts(e),i.resolve();else{let r=document.createElement("script");r.onload=()=>{i.resolve()},r.src=e,document.head.appendChild(r)}return await i.promise,a()}get runtimeEnv(){return typeof process<"u"?"node":"browser"}get isBrowser(){return!this.isNode}get userAgent(){return this.isBrowser?navigator.userAgent:"undefined"}get isNode(){return this.runtimeEnv==="node"}get nodeVersion(){return process.version}get isCI(){return this.isNode?!!process.env.CI:!1}async isMacAsync(){return this.isNode?(await this.getSafeNodeModule("os")).platform()==="darwin":!1}async isWindowsAsync(){return this.isNode?(await this.getSafeNodeModule("os")).platform()==="win32":!1}async isLinuxAsync(){return this.isNode?(await this.getSafeNodeModule("os")).platform()==="linux":!1}async printEnv(){this.isNode?(console.log("running on NODE"),console.log("node version is "+this.nodeVersion)):(console.log("running on BROWSER"),console.log("browser is "+this.userAgent))}}});var Va={};Qe(Va,{Smartenv:()=>PC});var b3=v(()=>{Hte()});var NC,v3=v(()=>{NC=B1(Dd(),1)});var Rp={};Qe(Rp,{createCryptoRandomString:()=>n_t,createRandomString:()=>s_t});var i_t,r_t,s_t,n_t,qte=v(()=>{v3();i_t=(t,e)=>{if(typeof globalThis<"u"&&globalThis.crypto&&globalThis.crypto.getRandomValues){let a=e-t,i=new Uint32Array(1);return globalThis.crypto.getRandomValues(i),t+i[0]%a}else return Math.floor(Math.random()*(e-t))+t},r_t=(t,e,a)=>{let i={A:"ABCDEFGHIJKLMNOPQRSTUVWXYZ",a:"abcdefghijklmnopqrstuvwxyz",0:"0123456789","!":"!@#$%^&*()_+-=[]{}|;:,.<>?","*":"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789!@#$%^&*()_+-=[]{}|;:,.<>?"},r=t;e&&e>t.length?r=t.repeat(Math.ceil(e/t.length)).slice(0,e):e&&(r=t.slice(0,e));let s="";for(let n of r)if(i[n]){let o=i[n],l=i_t(0,o.length);s+=o[l]}else s+=n;return s},s_t=(t,e,a)=>r_t(t,e,a),n_t=()=>NC.uni()});var Op={};Qe(Op,{makeEnvObject:()=>o_t});var o_t,Vte=v(()=>{v3();o_t=function(t){let e={},a=/(.*)=(.*)/;if(typeof t<"u")for(let i in t){let r=a.exec(t[i]);e[r[1]]=r[2]}return e}});var a0={};Qe(a0,{indent:()=>c_t,indentWithPrefix:()=>d_t,normalize:()=>u_t});var IC,FC,l_t,c_t,d_t,u_t,jte=v(()=>{v3();IC=t=>{let e=t.split(`
|
|
8
8
|
`);return l_t(e)},FC=t=>{let e="";for(let a of t)e=e+a+`
|
|
@@ -89,7 +89,7 @@ ${r}
|
|
|
89
89
|
`});++i<t.length;)i&&a.push({type:"text",value:`
|
|
90
90
|
`}),a.push(t[i]);return e&&t.length>0&&a.push({type:"text",value:`
|
|
91
91
|
`}),a}function D4e(t){let e=0,a=t.charCodeAt(e);for(;a===9||a===32;)e++,a=t.charCodeAt(e);return t.slice(e)}var n$,JFt,P4e=v(()=>{v9();A_();w9();r$();n$={}.hasOwnProperty,JFt={}});function o$(t,e){let a=E4e(t,e),i=a.one(t,void 0),r=A4e(a),s=Array.isArray(i)?{type:"root",children:i}:i||{type:"root",children:[]};return r&&("children"in s,s.children.push({type:"text",value:`
|
|
92
|
-
`},r)),s}var N4e=v(()=>{Vn();s$();P4e()});var I4e=v(()=>{r$();N4e();s$()});var F4e,R4e=v(()=>{F4e=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"]});var Ts,l$=v(()=>{Ts=class{constructor(e,a,i){this.normal=a,this.property=e,i&&(this.space=i)}};Ts.prototype.normal={},Ts.prototype.property={},Ts.prototype.space=void 0});function c$(t,e){let a={},i={};for(let r of t)Object.assign(a,r.property),Object.assign(i,r.normal);return new Ts(a,i,e)}var O4e=v(()=>{l$()});function K3(t){return t.toLowerCase()}var k9=v(()=>{});var x2,d$=v(()=>{x2=class{constructor(e,a){this.attribute=a,this.property=e}};x2.prototype.attribute="",x2.prototype.booleanish=!1,x2.prototype.boolean=!1,x2.prototype.commaOrSpaceSeparated=!1,x2.prototype.commaSeparated=!1,x2.prototype.defined=!1,x2.prototype.mustUseProperty=!1,x2.prototype.number=!1,x2.prototype.overloadedBoolean=!1,x2.prototype.property="",x2.prototype.spaceSeparated=!1,x2.prototype.space=void 0});var p5={};Qe(p5,{boolean:()=>mt,booleanish:()=>R1,commaOrSpaceSeparated:()=>Pa,commaSeparated:()=>Kn,number:()=>Ee,overloadedBoolean:()=>C9,spaceSeparated:()=>o1});function E0(){return 2**++rRt}var rRt,mt,R1,C9,Ee,o1,Kn,Pa,h5=v(()=>{rRt=0,mt=E0(),R1=E0(),C9=E0(),Ee=E0(),o1=E0(),Kn=E0(),Pa=E0()});function B4e(t,e,a){a&&(t[e]=a)}var u$,P0,p$=v(()=>{d$();h5();u$=Object.keys(p5),P0=class extends x2{constructor(e,a,i,r){let s=-1;if(super(e,a),B4e(this,"space",r),typeof i=="number")for(;++s<u$.length;){let n=u$[s];B4e(this,u$[s],(i&p5[n])===p5[n])}}};P0.prototype.defined=!0});function vi(t){let e={},a={};for(let[i,r]of Object.entries(t.properties)){let s=new P0(i,t.transform(t.attributes||{},i),r,t.space);t.mustUseProperty&&t.mustUseProperty.includes(i)&&(s.mustUseProperty=!0),e[i]=s,a[K3(i)]=i,a[K3(s.attribute)]=i}return new Ts(e,a,t.space)}var N0=v(()=>{k9();p$();l$()});var h$,H4e=v(()=>{N0();h5();h$=vi({properties:{ariaActiveDescendant:null,ariaAtomic:R1,ariaAutoComplete:null,ariaBusy:R1,ariaChecked:R1,ariaColCount:Ee,ariaColIndex:Ee,ariaColSpan:Ee,ariaControls:o1,ariaCurrent:null,ariaDescribedBy:o1,ariaDetails:null,ariaDisabled:R1,ariaDropEffect:o1,ariaErrorMessage:null,ariaExpanded:R1,ariaFlowTo:o1,ariaGrabbed:R1,ariaHasPopup:null,ariaHidden:R1,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:o1,ariaLevel:Ee,ariaLive:null,ariaModal:R1,ariaMultiLine:R1,ariaMultiSelectable:R1,ariaOrientation:null,ariaOwns:o1,ariaPlaceholder:null,ariaPosInSet:Ee,ariaPressed:R1,ariaReadOnly:R1,ariaRelevant:null,ariaRequired:R1,ariaRoleDescription:o1,ariaRowCount:Ee,ariaRowIndex:Ee,ariaRowSpan:Ee,ariaSelected:R1,ariaSetSize:Ee,ariaSort:null,ariaValueMax:Ee,ariaValueMin:Ee,ariaValueNow:Ee,ariaValueText:null,role:null},transform(t,e){return e==="role"?e:"aria-"+e.slice(4).toLowerCase()}})});function T9(t,e){return e in t?t[e]:e}var f$=v(()=>{});function _9(t,e){return T9(t,e.toLowerCase())}var m$=v(()=>{f$()});var q4e,V4e=v(()=>{m$();N0();h5();q4e=vi({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Kn,acceptCharset:o1,accessKey:o1,action:null,allow:null,allowFullScreen:mt,allowPaymentRequest:mt,allowUserMedia:mt,alt:null,as:null,async:mt,autoCapitalize:null,autoComplete:o1,autoFocus:mt,autoPlay:mt,blocking:o1,capture:null,charSet:null,checked:mt,cite:null,className:o1,cols:Ee,colSpan:null,content:null,contentEditable:R1,controls:mt,controlsList:o1,coords:Ee|Kn,crossOrigin:null,data:null,dateTime:null,decoding:null,default:mt,defer:mt,dir:null,dirName:null,disabled:mt,download:C9,draggable:R1,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:mt,formTarget:null,headers:o1,height:Ee,hidden:C9,high:Ee,href:null,hrefLang:null,htmlFor:o1,httpEquiv:o1,id:null,imageSizes:null,imageSrcSet:null,inert:mt,inputMode:null,integrity:null,is:null,isMap:mt,itemId:null,itemProp:o1,itemRef:o1,itemScope:mt,itemType:o1,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:mt,low:Ee,manifest:null,max:null,maxLength:Ee,media:null,method:null,min:null,minLength:Ee,multiple:mt,muted:mt,name:null,nonce:null,noModule:mt,noValidate:mt,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:mt,optimum:Ee,pattern:null,ping:o1,placeholder:null,playsInline:mt,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:mt,referrerPolicy:null,rel:o1,required:mt,reversed:mt,rows:Ee,rowSpan:Ee,sandbox:o1,scope:null,scoped:mt,seamless:mt,selected:mt,shadowRootClonable:mt,shadowRootDelegatesFocus:mt,shadowRootMode:null,shape:null,size:Ee,sizes:null,slot:null,span:Ee,spellCheck:R1,src:null,srcDoc:null,srcLang:null,srcSet:null,start:Ee,step:null,style:null,tabIndex:Ee,target:null,title:null,translate:null,type:null,typeMustMatch:mt,useMap:null,value:R1,width:Ee,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:o1,axis:null,background:null,bgColor:null,border:Ee,borderColor:null,bottomMargin:Ee,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:mt,declare:mt,event:null,face:null,frame:null,frameBorder:null,hSpace:Ee,leftMargin:Ee,link:null,longDesc:null,lowSrc:null,marginHeight:Ee,marginWidth:Ee,noResize:mt,noHref:mt,noShade:mt,noWrap:mt,object:null,profile:null,prompt:null,rev:null,rightMargin:Ee,rules:null,scheme:null,scrolling:R1,standby:null,summary:null,text:null,topMargin:Ee,valueType:null,version:null,vAlign:null,vLink:null,vSpace:Ee,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:mt,disableRemotePlayback:mt,prefix:null,property:null,results:Ee,security:null,unselectable:null},space:"html",transform:_9})});var j4e,U4e=v(()=>{f$();N0();h5();j4e=vi({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:Pa,accentHeight:Ee,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:Ee,amplitude:Ee,arabicForm:null,ascent:Ee,attributeName:null,attributeType:null,azimuth:Ee,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:Ee,by:null,calcMode:null,capHeight:Ee,className:o1,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:Ee,diffuseConstant:Ee,direction:null,display:null,dur:null,divisor:Ee,dominantBaseline:null,download:mt,dx:null,dy:null,edgeMode:null,editable:null,elevation:Ee,enableBackground:null,end:null,event:null,exponent:Ee,externalResourcesRequired:null,fill:null,fillOpacity:Ee,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Kn,g2:Kn,glyphName:Kn,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:Ee,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:Ee,horizOriginX:Ee,horizOriginY:Ee,id:null,ideographic:Ee,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:Ee,k:Ee,k1:Ee,k2:Ee,k3:Ee,k4:Ee,kernelMatrix:Pa,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:Ee,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:Ee,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:Ee,overlineThickness:Ee,paintOrder:null,panose1:null,path:null,pathLength:Ee,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:o1,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:Ee,pointsAtY:Ee,pointsAtZ:Ee,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Pa,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Pa,rev:Pa,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Pa,requiredFeatures:Pa,requiredFonts:Pa,requiredFormats:Pa,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:Ee,specularExponent:Ee,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:Ee,strikethroughThickness:Ee,string:null,stroke:null,strokeDashArray:Pa,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:Ee,strokeOpacity:Ee,strokeWidth:null,style:null,surfaceScale:Ee,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Pa,tabIndex:Ee,tableValues:null,target:null,targetX:Ee,targetY:Ee,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Pa,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:Ee,underlineThickness:Ee,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:Ee,values:null,vAlphabetic:Ee,vMathematical:Ee,vectorEffect:null,vHanging:Ee,vIdeographic:Ee,version:null,vertAdvY:Ee,vertOriginX:Ee,vertOriginY:Ee,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:Ee,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:T9})});var g$,W4e=v(()=>{N0();g$=vi({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(t,e){return"xlink:"+e.slice(5).toLowerCase()}})});var b$,G4e=v(()=>{N0();m$();b$=vi({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:_9})});var v$,Y4e=v(()=>{N0();v$=vi({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(t,e){return"xml:"+e.slice(3).toLowerCase()}})});var Z4e=v(()=>{});function y$(t,e){let a=K3(e),i=e,r=x2;if(a in t.normal)return t.property[t.normal[a]];if(a.length>4&&a.slice(0,4)==="data"&&nRt.test(e)){if(e.charAt(4)==="-"){let s=e.slice(5).replace(X4e,lRt);i="data"+s.charAt(0).toUpperCase()+s.slice(1)}else{let s=e.slice(4);if(!X4e.test(s)){let n=s.replace(sRt,oRt);n.charAt(0)!=="-"&&(n="-"+n),e="data"+n}}r=P0}return new r(i,e)}function oRt(t){return"-"+t.toLowerCase()}function lRt(t){return t.charAt(1).toUpperCase()}var sRt,X4e,nRt,Q4e=v(()=>{p$();d$();k9();sRt=/[A-Z]/g,X4e=/-[a-z]/g,nRt=/^data[-\w.:]+$/i});var K4e,L9,x$=v(()=>{O4e();H4e();V4e();U4e();W4e();G4e();Y4e();Z4e();Q4e();k9();K4e=c$([h$,q4e,g$,b$,v$],"html"),L9=c$([h$,j4e,g$,b$,v$],"svg")});function w$(t,e){if(t=t.replace(e.subset?hRt(e.subset):cRt,i),e.subset||e.escapeOnly)return t;return t.replace(dRt,a).replace(uRt,i);function a(r,s,n){return e.format((r.charCodeAt(0)-55296)*1024+r.charCodeAt(1)-56320+65536,n.charCodeAt(s+2),e)}function i(r,s,n){return e.format(r.charCodeAt(0),n.charCodeAt(s+1),e)}}function hRt(t){let e=J4e.get(t);return e||(e=fRt(t),J4e.set(t,e)),e}function fRt(t){let e=[],a=-1;for(;++a<t.length;)e.push(t[a].replace(pRt,"\\$&"));return new RegExp("(?:"+e.join("|")+")","g")}var cRt,dRt,uRt,pRt,J4e,e3e=v(()=>{cRt=/["&'<>`]/g,dRt=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,uRt=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,pRt=/[|\\{}()[\]^$+*?.]/g,J4e=new WeakMap});function t3e(t,e,a){let i="&#x"+t.toString(16).toUpperCase();return a&&e&&!mRt.test(String.fromCharCode(e))?i:i+";"}var mRt,a3e=v(()=>{mRt=/[\dA-Fa-f]/});function i3e(t,e,a){let i="&#"+String(t);return a&&e&&!gRt.test(String.fromCharCode(e))?i:i+";"}var gRt,r3e=v(()=>{gRt=/\d/});var s3e,n3e=v(()=>{s3e=["AElig","AMP","Aacute","Acirc","Agrave","Aring","Atilde","Auml","COPY","Ccedil","ETH","Eacute","Ecirc","Egrave","Euml","GT","Iacute","Icirc","Igrave","Iuml","LT","Ntilde","Oacute","Ocirc","Ograve","Oslash","Otilde","Ouml","QUOT","REG","THORN","Uacute","Ucirc","Ugrave","Uuml","Yacute","aacute","acirc","acute","aelig","agrave","amp","aring","atilde","auml","brvbar","ccedil","cedil","cent","copy","curren","deg","divide","eacute","ecirc","egrave","eth","euml","frac12","frac14","frac34","gt","iacute","icirc","iexcl","igrave","iquest","iuml","laquo","lt","macr","micro","middot","nbsp","not","ntilde","oacute","ocirc","ograve","ordf","ordm","oslash","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"]});var $9,o3e=v(()=>{$9={nbsp:"\xA0",iexcl:"\xA1",cent:"\xA2",pound:"\xA3",curren:"\xA4",yen:"\xA5",brvbar:"\xA6",sect:"\xA7",uml:"\xA8",copy:"\xA9",ordf:"\xAA",laquo:"\xAB",not:"\xAC",shy:"\xAD",reg:"\xAE",macr:"\xAF",deg:"\xB0",plusmn:"\xB1",sup2:"\xB2",sup3:"\xB3",acute:"\xB4",micro:"\xB5",para:"\xB6",middot:"\xB7",cedil:"\xB8",sup1:"\xB9",ordm:"\xBA",raquo:"\xBB",frac14:"\xBC",frac12:"\xBD",frac34:"\xBE",iquest:"\xBF",Agrave:"\xC0",Aacute:"\xC1",Acirc:"\xC2",Atilde:"\xC3",Auml:"\xC4",Aring:"\xC5",AElig:"\xC6",Ccedil:"\xC7",Egrave:"\xC8",Eacute:"\xC9",Ecirc:"\xCA",Euml:"\xCB",Igrave:"\xCC",Iacute:"\xCD",Icirc:"\xCE",Iuml:"\xCF",ETH:"\xD0",Ntilde:"\xD1",Ograve:"\xD2",Oacute:"\xD3",Ocirc:"\xD4",Otilde:"\xD5",Ouml:"\xD6",times:"\xD7",Oslash:"\xD8",Ugrave:"\xD9",Uacute:"\xDA",Ucirc:"\xDB",Uuml:"\xDC",Yacute:"\xDD",THORN:"\xDE",szlig:"\xDF",agrave:"\xE0",aacute:"\xE1",acirc:"\xE2",atilde:"\xE3",auml:"\xE4",aring:"\xE5",aelig:"\xE6",ccedil:"\xE7",egrave:"\xE8",eacute:"\xE9",ecirc:"\xEA",euml:"\xEB",igrave:"\xEC",iacute:"\xED",icirc:"\xEE",iuml:"\xEF",eth:"\xF0",ntilde:"\xF1",ograve:"\xF2",oacute:"\xF3",ocirc:"\xF4",otilde:"\xF5",ouml:"\xF6",divide:"\xF7",oslash:"\xF8",ugrave:"\xF9",uacute:"\xFA",ucirc:"\xFB",uuml:"\xFC",yacute:"\xFD",thorn:"\xFE",yuml:"\xFF",fnof:"\u0192",Alpha:"\u0391",Beta:"\u0392",Gamma:"\u0393",Delta:"\u0394",Epsilon:"\u0395",Zeta:"\u0396",Eta:"\u0397",Theta:"\u0398",Iota:"\u0399",Kappa:"\u039A",Lambda:"\u039B",Mu:"\u039C",Nu:"\u039D",Xi:"\u039E",Omicron:"\u039F",Pi:"\u03A0",Rho:"\u03A1",Sigma:"\u03A3",Tau:"\u03A4",Upsilon:"\u03A5",Phi:"\u03A6",Chi:"\u03A7",Psi:"\u03A8",Omega:"\u03A9",alpha:"\u03B1",beta:"\u03B2",gamma:"\u03B3",delta:"\u03B4",epsilon:"\u03B5",zeta:"\u03B6",eta:"\u03B7",theta:"\u03B8",iota:"\u03B9",kappa:"\u03BA",lambda:"\u03BB",mu:"\u03BC",nu:"\u03BD",xi:"\u03BE",omicron:"\u03BF",pi:"\u03C0",rho:"\u03C1",sigmaf:"\u03C2",sigma:"\u03C3",tau:"\u03C4",upsilon:"\u03C5",phi:"\u03C6",chi:"\u03C7",psi:"\u03C8",omega:"\u03C9",thetasym:"\u03D1",upsih:"\u03D2",piv:"\u03D6",bull:"\u2022",hellip:"\u2026",prime:"\u2032",Prime:"\u2033",oline:"\u203E",frasl:"\u2044",weierp:"\u2118",image:"\u2111",real:"\u211C",trade:"\u2122",alefsym:"\u2135",larr:"\u2190",uarr:"\u2191",rarr:"\u2192",darr:"\u2193",harr:"\u2194",crarr:"\u21B5",lArr:"\u21D0",uArr:"\u21D1",rArr:"\u21D2",dArr:"\u21D3",hArr:"\u21D4",forall:"\u2200",part:"\u2202",exist:"\u2203",empty:"\u2205",nabla:"\u2207",isin:"\u2208",notin:"\u2209",ni:"\u220B",prod:"\u220F",sum:"\u2211",minus:"\u2212",lowast:"\u2217",radic:"\u221A",prop:"\u221D",infin:"\u221E",ang:"\u2220",and:"\u2227",or:"\u2228",cap:"\u2229",cup:"\u222A",int:"\u222B",there4:"\u2234",sim:"\u223C",cong:"\u2245",asymp:"\u2248",ne:"\u2260",equiv:"\u2261",le:"\u2264",ge:"\u2265",sub:"\u2282",sup:"\u2283",nsub:"\u2284",sube:"\u2286",supe:"\u2287",oplus:"\u2295",otimes:"\u2297",perp:"\u22A5",sdot:"\u22C5",lceil:"\u2308",rceil:"\u2309",lfloor:"\u230A",rfloor:"\u230B",lang:"\u2329",rang:"\u232A",loz:"\u25CA",spades:"\u2660",clubs:"\u2663",hearts:"\u2665",diams:"\u2666",quot:'"',amp:"&",lt:"<",gt:">",OElig:"\u0152",oelig:"\u0153",Scaron:"\u0160",scaron:"\u0161",Yuml:"\u0178",circ:"\u02C6",tilde:"\u02DC",ensp:"\u2002",emsp:"\u2003",thinsp:"\u2009",zwnj:"\u200C",zwj:"\u200D",lrm:"\u200E",rlm:"\u200F",ndash:"\u2013",mdash:"\u2014",lsquo:"\u2018",rsquo:"\u2019",sbquo:"\u201A",ldquo:"\u201C",rdquo:"\u201D",bdquo:"\u201E",dagger:"\u2020",Dagger:"\u2021",permil:"\u2030",lsaquo:"\u2039",rsaquo:"\u203A",euro:"\u20AC"}});var l3e,c3e=v(()=>{l3e=["cent","copy","divide","gt","lt","not","para","times"]});function u3e(t,e,a,i){let r=String.fromCharCode(t);if(d3e.call(M$,r)){let s=M$[r],n="&"+s;return a&&s3e.includes(s)&&!l3e.includes(s)&&(!i||e&&e!==61&&bRt.test(String.fromCharCode(e)))?n:n+";"}return""}var d3e,M$,A9,bRt,p3e=v(()=>{n3e();o3e();c3e();d3e={}.hasOwnProperty,M$={};for(A9 in $9)d3e.call($9,A9)&&(M$[$9[A9]]=A9);bRt=/[^\dA-Za-z]/});function h3e(t,e,a){let i=t3e(t,e,a.omitOptionalSemicolons),r;if((a.useNamedReferences||a.useShortestReferences)&&(r=u3e(t,e,a.omitOptionalSemicolons,a.attribute)),(a.useShortestReferences||!r)&&a.useShortestReferences){let s=i3e(t,e,a.omitOptionalSemicolons);s.length<i.length&&(i=s)}return r&&(!a.useShortestReferences||r.length<i.length)?r:i}var f3e=v(()=>{a3e();r3e();p3e()});function m3e(t){return"&#x"+t.toString(16).toUpperCase()+";"}var g3e=v(()=>{});function _s(t,e){return w$(t,Object.assign({format:h3e},e))}function EB1(t,e){return w$(t,Object.assign({format:m3e},e))}var b3e=v(()=>{e3e();f3e();g3e()});var D9=v(()=>{b3e()});function v3e(t,e,a,i){return i.settings.bogusComments?"<?"+_s(t.value,Object.assign({},i.settings.characterReferences,{subset:yRt}))+">":"<!--"+t.value.replace(vRt,r)+"-->";function r(s){return _s(s,Object.assign({},i.settings.characterReferences,{subset:xRt}))}}var vRt,yRt,xRt,y3e=v(()=>{D9();vRt=/^>|^->|<!--|-->|--!>|<!-$/g,yRt=[">"],xRt=["<",">"]});function x3e(t,e,a,i){return"<!"+(i.settings.upperDoctype?"DOCTYPE":"doctype")+(i.settings.tightDoctype?"":" ")+"html>"}var w3e=v(()=>{});function BB1(t){let e=[],a=String(t||""),i=a.indexOf(","),r=0,s=!1;for(;!s;){i===-1&&(i=a.length,s=!0);let n=a.slice(r,i).trim();(n||!s)&&e.push(n),r=i+1,i=a.indexOf(",",r)}return e}function M3e(t,e){let a=e||{};return(t[t.length-1]===""?[...t,""]:t).join((a.padRight?" ":"")+","+(a.padLeft===!1?"":" ")).trim()}var z3e=v(()=>{});function qB1(t){let e=String(t||"").trim();return e?e.split(/[ \t\n\r\f]+/g):[]}function S3e(t){return t.join(" ").trim()}var k3e=v(()=>{});function I0(t){return typeof t=="object"?t.type==="text"?C3e(t.value):!1:C3e(t)}function C3e(t){return t.replace(wRt,"")===""}var wRt,T3e=v(()=>{wRt=/[ \t\n\f\r]/g});var E9=v(()=>{T3e()});function _3e(t){return e;function e(a,i,r){let s=a?a.children:MRt,n=(i||0)+t,o=s[n];if(!r)for(;o&&I0(o);)n+=t,o=s[n];return o}}var j1,z$,MRt,S$=v(()=>{E9();j1=_3e(1),z$=_3e(-1),MRt=[]});function P9(t){return e;function e(a,i,r){return zRt.call(t,a.tagName)&&t[a.tagName](a,i,r)}}var zRt,k$=v(()=>{zRt={}.hasOwnProperty});function C$(t,e,a){let i=j1(a,e,!0);return!i||i.type!=="comment"&&!(i.type==="text"&&I0(i.value.charAt(0)))}function SRt(t,e,a){let i=j1(a,e);return!i||i.type!=="comment"}function kRt(t,e,a){let i=j1(a,e);return!i||i.type!=="comment"}function CRt(t,e,a){let i=j1(a,e);return i?i.type==="element"&&(i.tagName==="address"||i.tagName==="article"||i.tagName==="aside"||i.tagName==="blockquote"||i.tagName==="details"||i.tagName==="div"||i.tagName==="dl"||i.tagName==="fieldset"||i.tagName==="figcaption"||i.tagName==="figure"||i.tagName==="footer"||i.tagName==="form"||i.tagName==="h1"||i.tagName==="h2"||i.tagName==="h3"||i.tagName==="h4"||i.tagName==="h5"||i.tagName==="h6"||i.tagName==="header"||i.tagName==="hgroup"||i.tagName==="hr"||i.tagName==="main"||i.tagName==="menu"||i.tagName==="nav"||i.tagName==="ol"||i.tagName==="p"||i.tagName==="pre"||i.tagName==="section"||i.tagName==="table"||i.tagName==="ul"):!a||!(a.type==="element"&&(a.tagName==="a"||a.tagName==="audio"||a.tagName==="del"||a.tagName==="ins"||a.tagName==="map"||a.tagName==="noscript"||a.tagName==="video"))}function TRt(t,e,a){let i=j1(a,e);return!i||i.type==="element"&&i.tagName==="li"}function _Rt(t,e,a){let i=j1(a,e);return!!(i&&i.type==="element"&&(i.tagName==="dt"||i.tagName==="dd"))}function LRt(t,e,a){let i=j1(a,e);return!i||i.type==="element"&&(i.tagName==="dt"||i.tagName==="dd")}function L3e(t,e,a){let i=j1(a,e);return!i||i.type==="element"&&(i.tagName==="rp"||i.tagName==="rt")}function $Rt(t,e,a){let i=j1(a,e);return!i||i.type==="element"&&i.tagName==="optgroup"}function ARt(t,e,a){let i=j1(a,e);return!i||i.type==="element"&&(i.tagName==="option"||i.tagName==="optgroup")}function DRt(t,e,a){let i=j1(a,e);return!!(i&&i.type==="element"&&(i.tagName==="tbody"||i.tagName==="tfoot"))}function ERt(t,e,a){let i=j1(a,e);return!i||i.type==="element"&&(i.tagName==="tbody"||i.tagName==="tfoot")}function PRt(t,e,a){return!j1(a,e)}function NRt(t,e,a){let i=j1(a,e);return!i||i.type==="element"&&i.tagName==="tr"}function $3e(t,e,a){let i=j1(a,e);return!i||i.type==="element"&&(i.tagName==="td"||i.tagName==="th")}var f5,T$=v(()=>{E9();S$();k$();f5=P9({body:kRt,caption:C$,colgroup:C$,dd:LRt,dt:_Rt,head:C$,html:SRt,li:TRt,optgroup:$Rt,option:ARt,p:CRt,rp:L3e,rt:L3e,tbody:ERt,td:$3e,tfoot:PRt,th:$3e,thead:DRt,tr:NRt})});function IRt(t){let e=j1(t,-1);return!e||e.type!=="comment"}function FRt(t){let e=new Set;for(let i of t.children)if(i.type==="element"&&(i.tagName==="base"||i.tagName==="title")){if(e.has(i.tagName))return!1;e.add(i.tagName)}let a=t.children[0];return!a||a.type==="element"}function RRt(t){let e=j1(t,-1,!0);return!e||e.type!=="comment"&&!(e.type==="text"&&I0(e.value.charAt(0)))&&!(e.type==="element"&&(e.tagName==="meta"||e.tagName==="link"||e.tagName==="script"||e.tagName==="style"||e.tagName==="template"))}function ORt(t,e,a){let i=z$(a,e),r=j1(t,-1,!0);return a&&i&&i.type==="element"&&i.tagName==="colgroup"&&f5(i,a.children.indexOf(i),a)?!1:!!(r&&r.type==="element"&&r.tagName==="col")}function BRt(t,e,a){let i=z$(a,e),r=j1(t,-1);return a&&i&&i.type==="element"&&(i.tagName==="thead"||i.tagName==="tbody")&&f5(i,a.children.indexOf(i),a)?!1:!!(r&&r.type==="element"&&r.tagName==="tr")}var A3e,D3e=v(()=>{E9();S$();T$();k$();A3e=P9({body:RRt,colgroup:ORt,head:FRt,html:IRt,tbody:BRt})});function E3e(t,e,a,i){let r=i.schema,s=r.space==="svg"?!1:i.settings.omitOptionalTags,n=r.space==="svg"?i.settings.closeEmptyElements:i.settings.voids.includes(t.tagName.toLowerCase()),o=[],l;r.space==="html"&&t.tagName==="svg"&&(i.schema=L9);let d=HRt(i,t.properties),u=i.all(r.space==="html"&&t.tagName==="template"?t.content:t);return i.schema=r,u&&(n=!1),(d||!s||!A3e(t,e,a))&&(o.push("<",t.tagName,d?" "+d:""),n&&(r.space==="svg"||i.settings.closeSelfClosing)&&(l=d.charAt(d.length-1),(!i.settings.tightSelfClosing||l==="/"||l&&l!=='"'&&l!=="'")&&o.push(" "),o.push("/")),o.push(">")),o.push(u),!n&&(!s||!f5(t,e,a))&&o.push("</"+t.tagName+">"),o.join("")}function HRt(t,e){let a=[],i=-1,r;if(e){for(r in e)if(e[r]!==null&&e[r]!==void 0){let s=qRt(t,r,e[r]);s&&a.push(s)}}for(;++i<a.length;){let s=t.settings.tightAttributes?a[i].charAt(a[i].length-1):void 0;i!==a.length-1&&s!=='"'&&s!=="'"&&(a[i]+=" ")}return a.join("")}function qRt(t,e,a){let i=y$(t.schema,e),r=t.settings.allowParseErrors&&t.schema.space==="html"?0:1,s=t.settings.allowDangerousCharacters?0:1,n=t.quote,o;if(i.overloadedBoolean&&(a===i.attribute||a==="")?a=!0:(i.boolean||i.overloadedBoolean)&&(typeof a!="string"||a===i.attribute||a==="")&&(a=!!a),a==null||a===!1||typeof a=="number"&&Number.isNaN(a))return"";let l=_s(i.attribute,Object.assign({},t.settings.characterReferences,{subset:N9.name[r][s]}));return a===!0||(a=Array.isArray(a)?(i.commaSeparated?M3e:S3e)(a,{padLeft:!t.settings.tightCommaSeparatedLists}):String(a),t.settings.collapseEmptyAttributes&&!a)?l:(t.settings.preferUnquoted&&(o=_s(a,Object.assign({},t.settings.characterReferences,{attribute:!0,subset:N9.unquoted[r][s]}))),o!==a&&(t.settings.quoteSmart&&O3(a,n)>O3(a,t.alternative)&&(n=t.alternative),o=n+_s(a,Object.assign({},t.settings.characterReferences,{subset:(n==="'"?N9.single:N9.double)[r][s],attribute:!0}))+n),l+(o&&"="+o))}var N9,P3e=v(()=>{h_();z3e();x$();k3e();D9();T$();D3e();N9={name:[[`
|
|
92
|
+
`},r)),s}var N4e=v(()=>{Vn();s$();P4e()});var I4e=v(()=>{r$();N4e();s$()});var F4e,R4e=v(()=>{F4e=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"]});var Ts,l$=v(()=>{Ts=class{constructor(e,a,i){this.normal=a,this.property=e,i&&(this.space=i)}};Ts.prototype.normal={},Ts.prototype.property={},Ts.prototype.space=void 0});function c$(t,e){let a={},i={};for(let r of t)Object.assign(a,r.property),Object.assign(i,r.normal);return new Ts(a,i,e)}var O4e=v(()=>{l$()});function K3(t){return t.toLowerCase()}var k9=v(()=>{});var x2,d$=v(()=>{x2=class{constructor(e,a){this.attribute=a,this.property=e}};x2.prototype.attribute="",x2.prototype.booleanish=!1,x2.prototype.boolean=!1,x2.prototype.commaOrSpaceSeparated=!1,x2.prototype.commaSeparated=!1,x2.prototype.defined=!1,x2.prototype.mustUseProperty=!1,x2.prototype.number=!1,x2.prototype.overloadedBoolean=!1,x2.prototype.property="",x2.prototype.spaceSeparated=!1,x2.prototype.space=void 0});var p5={};Qe(p5,{boolean:()=>mt,booleanish:()=>R1,commaOrSpaceSeparated:()=>Pa,commaSeparated:()=>Kn,number:()=>Ee,overloadedBoolean:()=>C9,spaceSeparated:()=>n1});function E0(){return 2**++rRt}var rRt,mt,R1,C9,Ee,n1,Kn,Pa,h5=v(()=>{rRt=0,mt=E0(),R1=E0(),C9=E0(),Ee=E0(),n1=E0(),Kn=E0(),Pa=E0()});function B4e(t,e,a){a&&(t[e]=a)}var u$,P0,p$=v(()=>{d$();h5();u$=Object.keys(p5),P0=class extends x2{constructor(e,a,i,r){let s=-1;if(super(e,a),B4e(this,"space",r),typeof i=="number")for(;++s<u$.length;){let n=u$[s];B4e(this,u$[s],(i&p5[n])===p5[n])}}};P0.prototype.defined=!0});function vi(t){let e={},a={};for(let[i,r]of Object.entries(t.properties)){let s=new P0(i,t.transform(t.attributes||{},i),r,t.space);t.mustUseProperty&&t.mustUseProperty.includes(i)&&(s.mustUseProperty=!0),e[i]=s,a[K3(i)]=i,a[K3(s.attribute)]=i}return new Ts(e,a,t.space)}var N0=v(()=>{k9();p$();l$()});var h$,H4e=v(()=>{N0();h5();h$=vi({properties:{ariaActiveDescendant:null,ariaAtomic:R1,ariaAutoComplete:null,ariaBusy:R1,ariaChecked:R1,ariaColCount:Ee,ariaColIndex:Ee,ariaColSpan:Ee,ariaControls:n1,ariaCurrent:null,ariaDescribedBy:n1,ariaDetails:null,ariaDisabled:R1,ariaDropEffect:n1,ariaErrorMessage:null,ariaExpanded:R1,ariaFlowTo:n1,ariaGrabbed:R1,ariaHasPopup:null,ariaHidden:R1,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:n1,ariaLevel:Ee,ariaLive:null,ariaModal:R1,ariaMultiLine:R1,ariaMultiSelectable:R1,ariaOrientation:null,ariaOwns:n1,ariaPlaceholder:null,ariaPosInSet:Ee,ariaPressed:R1,ariaReadOnly:R1,ariaRelevant:null,ariaRequired:R1,ariaRoleDescription:n1,ariaRowCount:Ee,ariaRowIndex:Ee,ariaRowSpan:Ee,ariaSelected:R1,ariaSetSize:Ee,ariaSort:null,ariaValueMax:Ee,ariaValueMin:Ee,ariaValueNow:Ee,ariaValueText:null,role:null},transform(t,e){return e==="role"?e:"aria-"+e.slice(4).toLowerCase()}})});function T9(t,e){return e in t?t[e]:e}var f$=v(()=>{});function _9(t,e){return T9(t,e.toLowerCase())}var m$=v(()=>{f$()});var q4e,V4e=v(()=>{m$();N0();h5();q4e=vi({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Kn,acceptCharset:n1,accessKey:n1,action:null,allow:null,allowFullScreen:mt,allowPaymentRequest:mt,allowUserMedia:mt,alt:null,as:null,async:mt,autoCapitalize:null,autoComplete:n1,autoFocus:mt,autoPlay:mt,blocking:n1,capture:null,charSet:null,checked:mt,cite:null,className:n1,cols:Ee,colSpan:null,content:null,contentEditable:R1,controls:mt,controlsList:n1,coords:Ee|Kn,crossOrigin:null,data:null,dateTime:null,decoding:null,default:mt,defer:mt,dir:null,dirName:null,disabled:mt,download:C9,draggable:R1,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:mt,formTarget:null,headers:n1,height:Ee,hidden:C9,high:Ee,href:null,hrefLang:null,htmlFor:n1,httpEquiv:n1,id:null,imageSizes:null,imageSrcSet:null,inert:mt,inputMode:null,integrity:null,is:null,isMap:mt,itemId:null,itemProp:n1,itemRef:n1,itemScope:mt,itemType:n1,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:mt,low:Ee,manifest:null,max:null,maxLength:Ee,media:null,method:null,min:null,minLength:Ee,multiple:mt,muted:mt,name:null,nonce:null,noModule:mt,noValidate:mt,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:mt,optimum:Ee,pattern:null,ping:n1,placeholder:null,playsInline:mt,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:mt,referrerPolicy:null,rel:n1,required:mt,reversed:mt,rows:Ee,rowSpan:Ee,sandbox:n1,scope:null,scoped:mt,seamless:mt,selected:mt,shadowRootClonable:mt,shadowRootDelegatesFocus:mt,shadowRootMode:null,shape:null,size:Ee,sizes:null,slot:null,span:Ee,spellCheck:R1,src:null,srcDoc:null,srcLang:null,srcSet:null,start:Ee,step:null,style:null,tabIndex:Ee,target:null,title:null,translate:null,type:null,typeMustMatch:mt,useMap:null,value:R1,width:Ee,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:n1,axis:null,background:null,bgColor:null,border:Ee,borderColor:null,bottomMargin:Ee,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:mt,declare:mt,event:null,face:null,frame:null,frameBorder:null,hSpace:Ee,leftMargin:Ee,link:null,longDesc:null,lowSrc:null,marginHeight:Ee,marginWidth:Ee,noResize:mt,noHref:mt,noShade:mt,noWrap:mt,object:null,profile:null,prompt:null,rev:null,rightMargin:Ee,rules:null,scheme:null,scrolling:R1,standby:null,summary:null,text:null,topMargin:Ee,valueType:null,version:null,vAlign:null,vLink:null,vSpace:Ee,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:mt,disableRemotePlayback:mt,prefix:null,property:null,results:Ee,security:null,unselectable:null},space:"html",transform:_9})});var j4e,U4e=v(()=>{f$();N0();h5();j4e=vi({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:Pa,accentHeight:Ee,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:Ee,amplitude:Ee,arabicForm:null,ascent:Ee,attributeName:null,attributeType:null,azimuth:Ee,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:Ee,by:null,calcMode:null,capHeight:Ee,className:n1,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:Ee,diffuseConstant:Ee,direction:null,display:null,dur:null,divisor:Ee,dominantBaseline:null,download:mt,dx:null,dy:null,edgeMode:null,editable:null,elevation:Ee,enableBackground:null,end:null,event:null,exponent:Ee,externalResourcesRequired:null,fill:null,fillOpacity:Ee,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Kn,g2:Kn,glyphName:Kn,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:Ee,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:Ee,horizOriginX:Ee,horizOriginY:Ee,id:null,ideographic:Ee,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:Ee,k:Ee,k1:Ee,k2:Ee,k3:Ee,k4:Ee,kernelMatrix:Pa,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:Ee,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:Ee,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:Ee,overlineThickness:Ee,paintOrder:null,panose1:null,path:null,pathLength:Ee,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:n1,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:Ee,pointsAtY:Ee,pointsAtZ:Ee,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Pa,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Pa,rev:Pa,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Pa,requiredFeatures:Pa,requiredFonts:Pa,requiredFormats:Pa,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:Ee,specularExponent:Ee,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:Ee,strikethroughThickness:Ee,string:null,stroke:null,strokeDashArray:Pa,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:Ee,strokeOpacity:Ee,strokeWidth:null,style:null,surfaceScale:Ee,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Pa,tabIndex:Ee,tableValues:null,target:null,targetX:Ee,targetY:Ee,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Pa,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:Ee,underlineThickness:Ee,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:Ee,values:null,vAlphabetic:Ee,vMathematical:Ee,vectorEffect:null,vHanging:Ee,vIdeographic:Ee,version:null,vertAdvY:Ee,vertOriginX:Ee,vertOriginY:Ee,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:Ee,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:T9})});var g$,W4e=v(()=>{N0();g$=vi({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(t,e){return"xlink:"+e.slice(5).toLowerCase()}})});var b$,G4e=v(()=>{N0();m$();b$=vi({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:_9})});var v$,Y4e=v(()=>{N0();v$=vi({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(t,e){return"xml:"+e.slice(3).toLowerCase()}})});var Z4e=v(()=>{});function y$(t,e){let a=K3(e),i=e,r=x2;if(a in t.normal)return t.property[t.normal[a]];if(a.length>4&&a.slice(0,4)==="data"&&nRt.test(e)){if(e.charAt(4)==="-"){let s=e.slice(5).replace(X4e,lRt);i="data"+s.charAt(0).toUpperCase()+s.slice(1)}else{let s=e.slice(4);if(!X4e.test(s)){let n=s.replace(sRt,oRt);n.charAt(0)!=="-"&&(n="-"+n),e="data"+n}}r=P0}return new r(i,e)}function oRt(t){return"-"+t.toLowerCase()}function lRt(t){return t.charAt(1).toUpperCase()}var sRt,X4e,nRt,Q4e=v(()=>{p$();d$();k9();sRt=/[A-Z]/g,X4e=/-[a-z]/g,nRt=/^data[-\w.:]+$/i});var K4e,L9,x$=v(()=>{O4e();H4e();V4e();U4e();W4e();G4e();Y4e();Z4e();Q4e();k9();K4e=c$([h$,q4e,g$,b$,v$],"html"),L9=c$([h$,j4e,g$,b$,v$],"svg")});function w$(t,e){if(t=t.replace(e.subset?hRt(e.subset):cRt,i),e.subset||e.escapeOnly)return t;return t.replace(dRt,a).replace(uRt,i);function a(r,s,n){return e.format((r.charCodeAt(0)-55296)*1024+r.charCodeAt(1)-56320+65536,n.charCodeAt(s+2),e)}function i(r,s,n){return e.format(r.charCodeAt(0),n.charCodeAt(s+1),e)}}function hRt(t){let e=J4e.get(t);return e||(e=fRt(t),J4e.set(t,e)),e}function fRt(t){let e=[],a=-1;for(;++a<t.length;)e.push(t[a].replace(pRt,"\\$&"));return new RegExp("(?:"+e.join("|")+")","g")}var cRt,dRt,uRt,pRt,J4e,e3e=v(()=>{cRt=/["&'<>`]/g,dRt=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,uRt=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,pRt=/[|\\{}()[\]^$+*?.]/g,J4e=new WeakMap});function t3e(t,e,a){let i="&#x"+t.toString(16).toUpperCase();return a&&e&&!mRt.test(String.fromCharCode(e))?i:i+";"}var mRt,a3e=v(()=>{mRt=/[\dA-Fa-f]/});function i3e(t,e,a){let i="&#"+String(t);return a&&e&&!gRt.test(String.fromCharCode(e))?i:i+";"}var gRt,r3e=v(()=>{gRt=/\d/});var s3e,n3e=v(()=>{s3e=["AElig","AMP","Aacute","Acirc","Agrave","Aring","Atilde","Auml","COPY","Ccedil","ETH","Eacute","Ecirc","Egrave","Euml","GT","Iacute","Icirc","Igrave","Iuml","LT","Ntilde","Oacute","Ocirc","Ograve","Oslash","Otilde","Ouml","QUOT","REG","THORN","Uacute","Ucirc","Ugrave","Uuml","Yacute","aacute","acirc","acute","aelig","agrave","amp","aring","atilde","auml","brvbar","ccedil","cedil","cent","copy","curren","deg","divide","eacute","ecirc","egrave","eth","euml","frac12","frac14","frac34","gt","iacute","icirc","iexcl","igrave","iquest","iuml","laquo","lt","macr","micro","middot","nbsp","not","ntilde","oacute","ocirc","ograve","ordf","ordm","oslash","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"]});var $9,o3e=v(()=>{$9={nbsp:"\xA0",iexcl:"\xA1",cent:"\xA2",pound:"\xA3",curren:"\xA4",yen:"\xA5",brvbar:"\xA6",sect:"\xA7",uml:"\xA8",copy:"\xA9",ordf:"\xAA",laquo:"\xAB",not:"\xAC",shy:"\xAD",reg:"\xAE",macr:"\xAF",deg:"\xB0",plusmn:"\xB1",sup2:"\xB2",sup3:"\xB3",acute:"\xB4",micro:"\xB5",para:"\xB6",middot:"\xB7",cedil:"\xB8",sup1:"\xB9",ordm:"\xBA",raquo:"\xBB",frac14:"\xBC",frac12:"\xBD",frac34:"\xBE",iquest:"\xBF",Agrave:"\xC0",Aacute:"\xC1",Acirc:"\xC2",Atilde:"\xC3",Auml:"\xC4",Aring:"\xC5",AElig:"\xC6",Ccedil:"\xC7",Egrave:"\xC8",Eacute:"\xC9",Ecirc:"\xCA",Euml:"\xCB",Igrave:"\xCC",Iacute:"\xCD",Icirc:"\xCE",Iuml:"\xCF",ETH:"\xD0",Ntilde:"\xD1",Ograve:"\xD2",Oacute:"\xD3",Ocirc:"\xD4",Otilde:"\xD5",Ouml:"\xD6",times:"\xD7",Oslash:"\xD8",Ugrave:"\xD9",Uacute:"\xDA",Ucirc:"\xDB",Uuml:"\xDC",Yacute:"\xDD",THORN:"\xDE",szlig:"\xDF",agrave:"\xE0",aacute:"\xE1",acirc:"\xE2",atilde:"\xE3",auml:"\xE4",aring:"\xE5",aelig:"\xE6",ccedil:"\xE7",egrave:"\xE8",eacute:"\xE9",ecirc:"\xEA",euml:"\xEB",igrave:"\xEC",iacute:"\xED",icirc:"\xEE",iuml:"\xEF",eth:"\xF0",ntilde:"\xF1",ograve:"\xF2",oacute:"\xF3",ocirc:"\xF4",otilde:"\xF5",ouml:"\xF6",divide:"\xF7",oslash:"\xF8",ugrave:"\xF9",uacute:"\xFA",ucirc:"\xFB",uuml:"\xFC",yacute:"\xFD",thorn:"\xFE",yuml:"\xFF",fnof:"\u0192",Alpha:"\u0391",Beta:"\u0392",Gamma:"\u0393",Delta:"\u0394",Epsilon:"\u0395",Zeta:"\u0396",Eta:"\u0397",Theta:"\u0398",Iota:"\u0399",Kappa:"\u039A",Lambda:"\u039B",Mu:"\u039C",Nu:"\u039D",Xi:"\u039E",Omicron:"\u039F",Pi:"\u03A0",Rho:"\u03A1",Sigma:"\u03A3",Tau:"\u03A4",Upsilon:"\u03A5",Phi:"\u03A6",Chi:"\u03A7",Psi:"\u03A8",Omega:"\u03A9",alpha:"\u03B1",beta:"\u03B2",gamma:"\u03B3",delta:"\u03B4",epsilon:"\u03B5",zeta:"\u03B6",eta:"\u03B7",theta:"\u03B8",iota:"\u03B9",kappa:"\u03BA",lambda:"\u03BB",mu:"\u03BC",nu:"\u03BD",xi:"\u03BE",omicron:"\u03BF",pi:"\u03C0",rho:"\u03C1",sigmaf:"\u03C2",sigma:"\u03C3",tau:"\u03C4",upsilon:"\u03C5",phi:"\u03C6",chi:"\u03C7",psi:"\u03C8",omega:"\u03C9",thetasym:"\u03D1",upsih:"\u03D2",piv:"\u03D6",bull:"\u2022",hellip:"\u2026",prime:"\u2032",Prime:"\u2033",oline:"\u203E",frasl:"\u2044",weierp:"\u2118",image:"\u2111",real:"\u211C",trade:"\u2122",alefsym:"\u2135",larr:"\u2190",uarr:"\u2191",rarr:"\u2192",darr:"\u2193",harr:"\u2194",crarr:"\u21B5",lArr:"\u21D0",uArr:"\u21D1",rArr:"\u21D2",dArr:"\u21D3",hArr:"\u21D4",forall:"\u2200",part:"\u2202",exist:"\u2203",empty:"\u2205",nabla:"\u2207",isin:"\u2208",notin:"\u2209",ni:"\u220B",prod:"\u220F",sum:"\u2211",minus:"\u2212",lowast:"\u2217",radic:"\u221A",prop:"\u221D",infin:"\u221E",ang:"\u2220",and:"\u2227",or:"\u2228",cap:"\u2229",cup:"\u222A",int:"\u222B",there4:"\u2234",sim:"\u223C",cong:"\u2245",asymp:"\u2248",ne:"\u2260",equiv:"\u2261",le:"\u2264",ge:"\u2265",sub:"\u2282",sup:"\u2283",nsub:"\u2284",sube:"\u2286",supe:"\u2287",oplus:"\u2295",otimes:"\u2297",perp:"\u22A5",sdot:"\u22C5",lceil:"\u2308",rceil:"\u2309",lfloor:"\u230A",rfloor:"\u230B",lang:"\u2329",rang:"\u232A",loz:"\u25CA",spades:"\u2660",clubs:"\u2663",hearts:"\u2665",diams:"\u2666",quot:'"',amp:"&",lt:"<",gt:">",OElig:"\u0152",oelig:"\u0153",Scaron:"\u0160",scaron:"\u0161",Yuml:"\u0178",circ:"\u02C6",tilde:"\u02DC",ensp:"\u2002",emsp:"\u2003",thinsp:"\u2009",zwnj:"\u200C",zwj:"\u200D",lrm:"\u200E",rlm:"\u200F",ndash:"\u2013",mdash:"\u2014",lsquo:"\u2018",rsquo:"\u2019",sbquo:"\u201A",ldquo:"\u201C",rdquo:"\u201D",bdquo:"\u201E",dagger:"\u2020",Dagger:"\u2021",permil:"\u2030",lsaquo:"\u2039",rsaquo:"\u203A",euro:"\u20AC"}});var l3e,c3e=v(()=>{l3e=["cent","copy","divide","gt","lt","not","para","times"]});function u3e(t,e,a,i){let r=String.fromCharCode(t);if(d3e.call(M$,r)){let s=M$[r],n="&"+s;return a&&s3e.includes(s)&&!l3e.includes(s)&&(!i||e&&e!==61&&bRt.test(String.fromCharCode(e)))?n:n+";"}return""}var d3e,M$,A9,bRt,p3e=v(()=>{n3e();o3e();c3e();d3e={}.hasOwnProperty,M$={};for(A9 in $9)d3e.call($9,A9)&&(M$[$9[A9]]=A9);bRt=/[^\dA-Za-z]/});function h3e(t,e,a){let i=t3e(t,e,a.omitOptionalSemicolons),r;if((a.useNamedReferences||a.useShortestReferences)&&(r=u3e(t,e,a.omitOptionalSemicolons,a.attribute)),(a.useShortestReferences||!r)&&a.useShortestReferences){let s=i3e(t,e,a.omitOptionalSemicolons);s.length<i.length&&(i=s)}return r&&(!a.useShortestReferences||r.length<i.length)?r:i}var f3e=v(()=>{a3e();r3e();p3e()});function m3e(t){return"&#x"+t.toString(16).toUpperCase()+";"}var g3e=v(()=>{});function _s(t,e){return w$(t,Object.assign({format:h3e},e))}function EB1(t,e){return w$(t,Object.assign({format:m3e},e))}var b3e=v(()=>{e3e();f3e();g3e()});var D9=v(()=>{b3e()});function v3e(t,e,a,i){return i.settings.bogusComments?"<?"+_s(t.value,Object.assign({},i.settings.characterReferences,{subset:yRt}))+">":"<!--"+t.value.replace(vRt,r)+"-->";function r(s){return _s(s,Object.assign({},i.settings.characterReferences,{subset:xRt}))}}var vRt,yRt,xRt,y3e=v(()=>{D9();vRt=/^>|^->|<!--|-->|--!>|<!-$/g,yRt=[">"],xRt=["<",">"]});function x3e(t,e,a,i){return"<!"+(i.settings.upperDoctype?"DOCTYPE":"doctype")+(i.settings.tightDoctype?"":" ")+"html>"}var w3e=v(()=>{});function BB1(t){let e=[],a=String(t||""),i=a.indexOf(","),r=0,s=!1;for(;!s;){i===-1&&(i=a.length,s=!0);let n=a.slice(r,i).trim();(n||!s)&&e.push(n),r=i+1,i=a.indexOf(",",r)}return e}function M3e(t,e){let a=e||{};return(t[t.length-1]===""?[...t,""]:t).join((a.padRight?" ":"")+","+(a.padLeft===!1?"":" ")).trim()}var z3e=v(()=>{});function qB1(t){let e=String(t||"").trim();return e?e.split(/[ \t\n\r\f]+/g):[]}function S3e(t){return t.join(" ").trim()}var k3e=v(()=>{});function I0(t){return typeof t=="object"?t.type==="text"?C3e(t.value):!1:C3e(t)}function C3e(t){return t.replace(wRt,"")===""}var wRt,T3e=v(()=>{wRt=/[ \t\n\f\r]/g});var E9=v(()=>{T3e()});function _3e(t){return e;function e(a,i,r){let s=a?a.children:MRt,n=(i||0)+t,o=s[n];if(!r)for(;o&&I0(o);)n+=t,o=s[n];return o}}var j1,z$,MRt,S$=v(()=>{E9();j1=_3e(1),z$=_3e(-1),MRt=[]});function P9(t){return e;function e(a,i,r){return zRt.call(t,a.tagName)&&t[a.tagName](a,i,r)}}var zRt,k$=v(()=>{zRt={}.hasOwnProperty});function C$(t,e,a){let i=j1(a,e,!0);return!i||i.type!=="comment"&&!(i.type==="text"&&I0(i.value.charAt(0)))}function SRt(t,e,a){let i=j1(a,e);return!i||i.type!=="comment"}function kRt(t,e,a){let i=j1(a,e);return!i||i.type!=="comment"}function CRt(t,e,a){let i=j1(a,e);return i?i.type==="element"&&(i.tagName==="address"||i.tagName==="article"||i.tagName==="aside"||i.tagName==="blockquote"||i.tagName==="details"||i.tagName==="div"||i.tagName==="dl"||i.tagName==="fieldset"||i.tagName==="figcaption"||i.tagName==="figure"||i.tagName==="footer"||i.tagName==="form"||i.tagName==="h1"||i.tagName==="h2"||i.tagName==="h3"||i.tagName==="h4"||i.tagName==="h5"||i.tagName==="h6"||i.tagName==="header"||i.tagName==="hgroup"||i.tagName==="hr"||i.tagName==="main"||i.tagName==="menu"||i.tagName==="nav"||i.tagName==="ol"||i.tagName==="p"||i.tagName==="pre"||i.tagName==="section"||i.tagName==="table"||i.tagName==="ul"):!a||!(a.type==="element"&&(a.tagName==="a"||a.tagName==="audio"||a.tagName==="del"||a.tagName==="ins"||a.tagName==="map"||a.tagName==="noscript"||a.tagName==="video"))}function TRt(t,e,a){let i=j1(a,e);return!i||i.type==="element"&&i.tagName==="li"}function _Rt(t,e,a){let i=j1(a,e);return!!(i&&i.type==="element"&&(i.tagName==="dt"||i.tagName==="dd"))}function LRt(t,e,a){let i=j1(a,e);return!i||i.type==="element"&&(i.tagName==="dt"||i.tagName==="dd")}function L3e(t,e,a){let i=j1(a,e);return!i||i.type==="element"&&(i.tagName==="rp"||i.tagName==="rt")}function $Rt(t,e,a){let i=j1(a,e);return!i||i.type==="element"&&i.tagName==="optgroup"}function ARt(t,e,a){let i=j1(a,e);return!i||i.type==="element"&&(i.tagName==="option"||i.tagName==="optgroup")}function DRt(t,e,a){let i=j1(a,e);return!!(i&&i.type==="element"&&(i.tagName==="tbody"||i.tagName==="tfoot"))}function ERt(t,e,a){let i=j1(a,e);return!i||i.type==="element"&&(i.tagName==="tbody"||i.tagName==="tfoot")}function PRt(t,e,a){return!j1(a,e)}function NRt(t,e,a){let i=j1(a,e);return!i||i.type==="element"&&i.tagName==="tr"}function $3e(t,e,a){let i=j1(a,e);return!i||i.type==="element"&&(i.tagName==="td"||i.tagName==="th")}var f5,T$=v(()=>{E9();S$();k$();f5=P9({body:kRt,caption:C$,colgroup:C$,dd:LRt,dt:_Rt,head:C$,html:SRt,li:TRt,optgroup:$Rt,option:ARt,p:CRt,rp:L3e,rt:L3e,tbody:ERt,td:$3e,tfoot:PRt,th:$3e,thead:DRt,tr:NRt})});function IRt(t){let e=j1(t,-1);return!e||e.type!=="comment"}function FRt(t){let e=new Set;for(let i of t.children)if(i.type==="element"&&(i.tagName==="base"||i.tagName==="title")){if(e.has(i.tagName))return!1;e.add(i.tagName)}let a=t.children[0];return!a||a.type==="element"}function RRt(t){let e=j1(t,-1,!0);return!e||e.type!=="comment"&&!(e.type==="text"&&I0(e.value.charAt(0)))&&!(e.type==="element"&&(e.tagName==="meta"||e.tagName==="link"||e.tagName==="script"||e.tagName==="style"||e.tagName==="template"))}function ORt(t,e,a){let i=z$(a,e),r=j1(t,-1,!0);return a&&i&&i.type==="element"&&i.tagName==="colgroup"&&f5(i,a.children.indexOf(i),a)?!1:!!(r&&r.type==="element"&&r.tagName==="col")}function BRt(t,e,a){let i=z$(a,e),r=j1(t,-1);return a&&i&&i.type==="element"&&(i.tagName==="thead"||i.tagName==="tbody")&&f5(i,a.children.indexOf(i),a)?!1:!!(r&&r.type==="element"&&r.tagName==="tr")}var A3e,D3e=v(()=>{E9();S$();T$();k$();A3e=P9({body:RRt,colgroup:ORt,head:FRt,html:IRt,tbody:BRt})});function E3e(t,e,a,i){let r=i.schema,s=r.space==="svg"?!1:i.settings.omitOptionalTags,n=r.space==="svg"?i.settings.closeEmptyElements:i.settings.voids.includes(t.tagName.toLowerCase()),o=[],l;r.space==="html"&&t.tagName==="svg"&&(i.schema=L9);let d=HRt(i,t.properties),u=i.all(r.space==="html"&&t.tagName==="template"?t.content:t);return i.schema=r,u&&(n=!1),(d||!s||!A3e(t,e,a))&&(o.push("<",t.tagName,d?" "+d:""),n&&(r.space==="svg"||i.settings.closeSelfClosing)&&(l=d.charAt(d.length-1),(!i.settings.tightSelfClosing||l==="/"||l&&l!=='"'&&l!=="'")&&o.push(" "),o.push("/")),o.push(">")),o.push(u),!n&&(!s||!f5(t,e,a))&&o.push("</"+t.tagName+">"),o.join("")}function HRt(t,e){let a=[],i=-1,r;if(e){for(r in e)if(e[r]!==null&&e[r]!==void 0){let s=qRt(t,r,e[r]);s&&a.push(s)}}for(;++i<a.length;){let s=t.settings.tightAttributes?a[i].charAt(a[i].length-1):void 0;i!==a.length-1&&s!=='"'&&s!=="'"&&(a[i]+=" ")}return a.join("")}function qRt(t,e,a){let i=y$(t.schema,e),r=t.settings.allowParseErrors&&t.schema.space==="html"?0:1,s=t.settings.allowDangerousCharacters?0:1,n=t.quote,o;if(i.overloadedBoolean&&(a===i.attribute||a==="")?a=!0:(i.boolean||i.overloadedBoolean)&&(typeof a!="string"||a===i.attribute||a==="")&&(a=!!a),a==null||a===!1||typeof a=="number"&&Number.isNaN(a))return"";let l=_s(i.attribute,Object.assign({},t.settings.characterReferences,{subset:N9.name[r][s]}));return a===!0||(a=Array.isArray(a)?(i.commaSeparated?M3e:S3e)(a,{padLeft:!t.settings.tightCommaSeparatedLists}):String(a),t.settings.collapseEmptyAttributes&&!a)?l:(t.settings.preferUnquoted&&(o=_s(a,Object.assign({},t.settings.characterReferences,{attribute:!0,subset:N9.unquoted[r][s]}))),o!==a&&(t.settings.quoteSmart&&O3(a,n)>O3(a,t.alternative)&&(n=t.alternative),o=n+_s(a,Object.assign({},t.settings.characterReferences,{subset:(n==="'"?N9.single:N9.double)[r][s],attribute:!0}))+n),l+(o&&"="+o))}var N9,P3e=v(()=>{h_();z3e();x$();k3e();D9();T$();D3e();N9={name:[[`
|
|
93
93
|
\f\r &/=>`.split(""),`
|
|
94
94
|
\f\r "&'/=>\``.split("")],[`\0
|
|
95
95
|
\f\r "&'/<=>`.split(""),`\0
|
|
@@ -263,7 +263,7 @@ ${r}
|
|
|
263
263
|
${xf}
|
|
264
264
|
</style>
|
|
265
265
|
`,ABt=async(t,e={})=>{let a=await K2.setupDomTools(e);return a.runOnce("elementBasicSetup",async()=>{a.setGlobalStyles(Jce)}),a}});var wf={};Qe(wf,{cssGridColumns:()=>DBt});var DBt,a6e=v(()=>{DBt=(t,e)=>{let a="";for(let i=0;i<t;i++)a+=` calc((100%/${t}) - (${e*(t-1)}px/${t}))`;return a}});var zt={};Qe(zt,{SweetScroll:()=>XA.default,smartdelay:()=>rt,smartmarkdown:()=>al,smartpromise:()=>He,smartrouter:()=>Jn,smartrx:()=>yt,smartstate:()=>eo,smartstring:()=>n2,smarturl:()=>yi,typedrequest:()=>P1});var XA,i6e=v(()=>{Ri();U$();a2();XA=B1(qA(),1);uA();J$();pi();i0();X9();_3()});var st={};Qe(st,{DomTools:()=>K2,TypedRequest:()=>D6,breakpoints:()=>Hr,css:()=>wf,elementBasic:()=>b1,plugins:()=>zt});var Lt=v(()=>{JG();t6e();YA();a6e();nl();_3();uf();i6e()});var QA,io,KA=v(()=>{QA=B1(Dd(),1);pi();pr();KG();Lt();io={css:X,unsafeCSS:Vt,LitElement:rs,property:N}});var Mf,s6e=v(()=>{pr();KA();Lt();Mf=class t{static instance=null;static getSingleton(){return t.instance||(t.instance=new t),t.instance}domtoolsPromise=K2.setupDomTools();goBright=!1;bdVarTripletStore=[];constructor(){this.domtoolsPromise.then(async e=>{e.themeManager.themeObservable.subscribe(async a=>{this.goBright=a,await e.domReady.promise;for(let i of this.bdVarTripletStore)document.body.style.setProperty(i.cssVarName,this.goBright?i.brightValue:i.darkValue)})})}get defaultStyles(){return b1.staticStyles}cssForDesktop(e){return Vt(Hr.cssForDesktop(e))}cssForNotebook(e){return Vt(Hr.cssForNotebook(e))}cssForTablet(e){return Vt(Hr.cssForTablet(e))}cssForPhablet(e){return Vt(Hr.cssForPhablet(e))}cssForPhone(e){return Vt(Hr.cssForPhone(e))}bdTheme(e,a){let i,r;K2.getGlobalDomToolsSync()?r=K2.getGlobalDomToolsSync().themeManager.goBrightBoolean?e:a:r=a;let s=this.bdVarTripletStore.find(n=>n.darkValue===a&&n.brightValue===e);if(s)i=s.cssVarName;else{let n={cssVarName:`--${QA.uni()}`,brightValue:e,darkValue:a};this.bdVarTripletStore.push(n),this.domtoolsPromise.then(async o=>{await o.domReady.promise,document.body.style.setProperty(n.cssVarName,r)}),i=n.cssVarName}return io.unsafeCSS(`var(${i}, ${r})`)}cssGridColumns=(e,a)=>{let i="";for(let r=0;r<e;r++)i+=` calc((100%/${e}) - (${a*(e-1)}px/${e}))`;return io.unsafeCSS(i)}}});var JA,EBt,eD,PBt,n6e,zf,$s,NBt,IBt,o6e=v(()=>{Pi();JA=Symbol.for(""),EBt=t=>{if(t?.r===JA)return t?._$litStatic$},eD=t=>({_$litStatic$:t,r:JA}),PBt=(t,...e)=>({_$litStatic$:e.reduce((a,i,r)=>a+(s=>{if(s._$litStatic$!==void 0)return s._$litStatic$;throw Error(`Value passed to 'literal' function must be a 'literal' result: ${s}. Use 'unsafeStatic' to pass non-literal values, but
|
|
266
|
-
take care to ensure page security.`)})(i)+t[r+1],t[0]),r:JA}),n6e=new Map,zf=t=>(e,...a)=>{let i=a.length,r,s,n=[],o=[],l,d=0,u=!1;for(;d<i;){for(l=e[d];d<i&&(s=a[d],(r=EBt(s))!==void 0);)l+=r+e[++d],u=!0;d!==i&&o.push(s),n.push(l),d++}if(d===i&&n.push(e[i]),u){let c=n.join("$$lit$$");(e=n6e.get(c))===void 0&&(n.raw=n,n6e.set(c,e=n)),a=o}return t(e,...a)},$s=zf(w),NBt=zf(Yw),IBt=zf(Zw)});var l6e=v(()=>{o6e()});var qr,J1,wi,As=v(()=>{qr={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},J1=t=>(...e)=>({_$litDirective$:t,values:e}),wi=class{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,a,i){this._$Ct=e,this._$AM=a,this._$Ci=i}_$AS(e,a){return this.update(e,a)}update(e,a){return this.render(...a)}}});var ol,S5,c6e=v(()=>{Pi();As();ol=class extends wi{constructor(e){if(super(e),this.it=k1,e.type!==qr.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===k1||e==null)return this._t=void 0,this.it=e;if(e===g1)return e;if(typeof e!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(e===this.it)return this._t;this.it=e;let a=[e];return a.raw=a,this._t={_$litType$:this.constructor.resultType,strings:a,values:[]}}};ol.directiveName="unsafeHTML",ol.resultType=1;S5=J1(ol)});var d6e=v(()=>{c6e()});var de,tD=v(()=>{de=t=>(e,a)=>{a!==void 0?a.addInitializer(()=>{customElements.define(t,e)}):customElements.define(t,e)}});var u6e=v(()=>{tD()});function K(t){return N({...t,state:!0,attribute:!1})}var p6e=v(()=>{T7();});function FBt(t){return(e,a)=>{let i=typeof e=="function"?e:e[a];Object.assign(i,t)}}var h6e=v(()=>{});var Mi,ll=v(()=>{Mi=(t,e,a)=>(a.configurable=!0,a.enumerable=!0,Reflect.decorate&&typeof e!="object"&&Object.defineProperty(t,e,a),a)});function aD(t,e){return(a,i,r)=>{let s=n=>n.renderRoot?.querySelector(t)??null;if(e){let{get:n,set:o}=typeof i=="object"?a:r??(()=>{let l=Symbol();return{get(){return this[l]},set(d){this[l]=d}}})();return Mi(a,i,{get(){let l=n.call(this);return l===void 0&&(l=s(this),(l!==null||this.hasUpdated)&&o.call(this,l)),l}})}return Mi(a,i,{get(){return s(this)}})}}var f6e=v(()=>{ll();});function iD(t){return(e,a)=>Mi(e,a,{get(){return(this.renderRoot??(RBt??=document.createDocumentFragment())).querySelectorAll(t)}})}var RBt,m6e=v(()=>{ll();});function rD(t){return(e,a)=>Mi(e,a,{async get(){return await this.updateComplete,this.renderRoot?.querySelector(t)??null}})}var g6e=v(()=>{ll();});function OBt(t){return(e,a)=>{let{slot:i,selector:r}=t??{},s="slot"+(i?`[name=${i}]`:":not([name])");return Mi(e,a,{get(){let n=this.renderRoot?.querySelector(s),o=n?.assignedElements(t)??[];return r===void 0?o:o.filter(l=>l.matches(r))}})}}var b6e=v(()=>{ll();});function BBt(t){return(e,a)=>{let{slot:i}=t??{},r="slot"+(i?`[name=${i}]`:":not([name])");return Mi(e,a,{get(){return this.renderRoot?.querySelector(r)?.assignedNodes(t)??[]}})}}var v6e=v(()=>{ll();});var y6e=v(()=>{tD();T7();p6e();h6e();f6e();m6e();g6e();b6e();v6e()});var x6e,Sf,xe,w6e=v(()=>{KA();x6e=function(t,e,a,i,r,s){function n(x){if(x!==void 0&&typeof x!="function")throw new TypeError("Function expected");return x}for(var o=i.kind,l=o==="getter"?"get":o==="setter"?"set":"value",d=!e&&t?i.static?t:t.prototype:null,u=e||(d?Object.getOwnPropertyDescriptor(d,i.name):{}),c,f=!1,g=a.length-1;g>=0;g--){var y={};for(var b in i)y[b]=b==="access"?{}:i[b];for(var b in i.access)y.access[b]=i.access[b];y.addInitializer=function(x){if(f)throw new TypeError("Cannot add initializers after decoration has completed");s.push(n(x||null))};var m=(0,a[g])(o==="accessor"?{get:u.get,set:u.set}:u[l],y);if(o==="accessor"){if(m===void 0)continue;if(m===null||typeof m!="object")throw new TypeError("Object expected");(c=n(m.get))&&(u.get=c),(c=n(m.set))&&(u.set=c),(c=n(m.init))&&r.unshift(c)}else(c=n(m))&&(o==="field"?r.unshift(c):u[l]=c)}d&&Object.defineProperty(d,i.name,u),f=!0},Sf=function(t,e,a){for(var i=arguments.length>2,r=0;r<e.length;r++)a=i?e[r].call(t,a):e[r].call(t);return i?a:void 0},xe=(()=>{let t=io.LitElement,e,a=[],i=[],r,s=[],n=[];return class extends t{static{let l=typeof Symbol=="function"&&Symbol.metadata?Object.create(t[Symbol.metadata]??null):void 0;e=[io.property({type:Boolean})],r=[io.property()],x6e(this,null,e,{kind:"accessor",name:"goBright",static:!1,private:!1,access:{has:d=>"goBright"in d,get:d=>d.goBright,set:(d,u)=>{d.goBright=u}},metadata:l},a,i),x6e(this,null,r,{kind:"accessor",name:"domtools",static:!1,private:!1,access:{has:d=>"domtools"in d,get:d=>d.domtools,set:(d,u)=>{d.domtools=u}},metadata:l},s,n),l&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:l})}#e=Sf(this,a,!1);get goBright(){return this.#e}set goBright(l){this.#e=l}domtoolsPromise=Sf(this,i);#t=Sf(this,s,void 0);get domtools(){return this.#t}set domtools(l){this.#t=l}rxSubscriptions=(Sf(this,n),[]);themeSubscription;elementDomReadyDeferred=st.plugins.smartpromise.defer();elementDomReady=this.elementDomReadyDeferred.promise;constructor(l={}){super(),this.domtoolsPromise=st.elementBasic.setup(this,l),this.domtoolsPromise.then(d=>{this.domtools=d})}async connectedCallback(){super.connectedCallback();let l=await this.domtoolsPromise;this.themeSubscription=l.themeManager.themeObservable.subscribe(d=>{this.goBright=d,this.themeChanged&&this.themeChanged(d)}),this.rxSubscriptions.push(this.themeSubscription);for(let d of this.startupFunctions)await d();this.dispatchEvent(new CustomEvent("deesElementConnected"))}firstUpdated(l){super.firstUpdated(l),this.elementDomReadyDeferred.resolve()}startupFunctions=[];registerStartupFunction(l){this.startupFunctions.push(l)}garbageFunctions=[];registerGarbageFunction(l){this.garbageFunctions.push(l)}async disconnectedCallback(){await this.domtoolsPromise,super.disconnectedCallback();for(let l of this.rxSubscriptions)l.unsubscribe();for(let l of this.garbageFunctions)await l();this.dispatchEvent(new CustomEvent("deesElementDisconnected"))}}})()});var HBt,M6e,sD,qBt,VBt,jBt,UBt,WBt,nD,z6e,Ds,Ui,GBt,k5,oD,C5,lD,cl=v(()=>{Pi();({I:HBt}=Xw),M6e=t=>t,sD=t=>t===null||typeof t!="object"&&typeof t!="function",qBt={HTML:1,SVG:2,MATHML:3},VBt=(t,e)=>e===void 0?t?._$litType$!==void 0:t?._$litType$===e,jBt=t=>t?._$litType$?.h!=null,UBt=t=>t?._$litDirective$!==void 0,WBt=t=>t?._$litDirective$,nD=t=>t.strings===void 0,z6e=()=>document.createComment(""),Ds=(t,e,a)=>{let i=t._$AA.parentNode,r=e===void 0?t._$AB:e._$AA;if(a===void 0){let s=i.insertBefore(z6e(),r),n=i.insertBefore(z6e(),r);a=new HBt(s,n,t,t.options)}else{let s=a._$AB.nextSibling,n=a._$AM,o=n!==t;if(o){let l;a._$AQ?.(t),a._$AM=t,a._$AP!==void 0&&(l=t._$AU)!==n._$AU&&a._$AP(l)}if(s!==r||o){let l=a._$AA;for(;l!==s;){let d=M6e(l).nextSibling;M6e(i).insertBefore(l,r),l=d}}}return a},Ui=(t,e,a=t)=>(t._$AI(e,a),t),GBt={},k5=(t,e=GBt)=>t._$AH=e,oD=t=>t._$AH,C5=t=>{t._$AR(),t._$AA.remove()},lD=t=>{t._$AR()}});function YBt(t){this._$AN!==void 0?(kf(this),this._$AM=t,S6e(this)):this._$AM=t}function ZBt(t,e=!1,a=0){let i=this._$AH,r=this._$AN;if(r!==void 0&&r.size!==0)if(e)if(Array.isArray(i))for(let s=a;s<i.length;s++)T5(i[s],!1),kf(i[s]);else i!=null&&(T5(i,!1),kf(i));else T5(this,t)}var T5,kf,S6e,XBt,Ya,Cf=v(()=>{cl();As();As();T5=(t,e)=>{let a=t._$AN;if(a===void 0)return!1;for(let i of a)i._$AO?.(e,!1),T5(i,e);return!0},kf=t=>{let e,a;do{if((e=t._$AM)===void 0)break;a=e._$AN,a.delete(t),t=e}while(a?.size===0)},S6e=t=>{for(let e;e=t._$AM;t=e){let a=e._$AN;if(a===void 0)e._$AN=a=new Set;else if(a.has(t))break;a.add(t),XBt(e)}};XBt=t=>{t.type==qr.CHILD&&(t._$AP??=ZBt,t._$AQ??=YBt)},Ya=class extends wi{constructor(){super(...arguments),this._$AN=void 0}_$AT(e,a,i){super._$AT(e,a,i),S6e(this),this.isConnected=e._$AU}_$AO(e,a=!0){e!==this.isConnected&&(this.isConnected=e,e?this.reconnected?.():this.disconnected?.()),a&&(T5(this,e),kf(this))}setValue(e){if(nD(this._$Ct))this._$Ct._$AI(e,this);else{let a=[...this._$Ct._$AH];a[this._$Ci]=e,this._$Ct._$AI(a,this,0)}}disconnected(){}reconnected(){}}});var Tf=v(()=>{Cf()});var cD,k6e,QBt,C6e=v(()=>{pr();Tf();cD=class extends Ya{promise;hasPromiseSettled=!1;render(e){return this.promise!==e&&(this.promise=e,this.isConnected&&this.handlePromise(e)),g1}handlePromise(e){this.hasPromiseSettled=!1,e.then(a=>{this.promise===e&&!this.hasPromiseSettled&&(this.setValue(a),this.hasPromiseSettled=!0)}).catch(a=>{this.promise===e&&!this.hasPromiseSettled&&(this.setValue(a),this.hasPromiseSettled=!0)})}disconnected(){this.hasPromiseSettled=!0}reconnected(){this.hasPromiseSettled||this.handlePromise(this.promise)}},k6e=J1(cD),QBt=t=>k6e(t())});var dD,KBt,T6e=v(()=>{pr();Tf();pi();dD=class extends Ya{observable;sub=null;render(e){return this.observable!==e&&(this.sub?.unsubscribe(),this.observable=e,this.isConnected&&this.subscribe(e)),g1}subscribe(e){this.sub=e.subscribe(a=>{this.setValue(a)})}disconnected(){this.sub?.unsubscribe()}reconnected(){this.subscribe(this.observable)}},KBt=J1(dD)});var uD,_6e,L6e=v(()=>{pr();Tf();pi();uD=class extends Ya{observable;templateFn;sub=null;render(e,a){return(this.observable!==e||this.templateFn!==a)&&(this.sub?.unsubscribe(),this.observable=e,this.templateFn=a,this.isConnected&&this.startSubscription()),g1}startSubscription(){this.sub=this.observable.subscribe(e=>{let a=this.templateFn(e);this.setValue(a)})}disconnected(){this.sub?.unsubscribe()}reconnected(){this.startSubscription()}},_6e=J1(uD)});var pD,q0,V0,hD=v(()=>{pD=async(t,e)=>{for await(let a of t)if(await e(a)===!1)return},q0=class{constructor(e){this.G=e}disconnect(){this.G=void 0}reconnect(e){this.G=e}deref(){return this.G}},V0=class{constructor(){this.Y=void 0,this.Z=void 0}get(){return this.Y}pause(){this.Y??=new Promise(e=>this.Z=e)}resume(){this.Z?.(),this.Y=this.Z=void 0}}});var $6e,A6e,_f,fD,D6e=v(()=>{Pi();cl();Cf();hD();As();$6e=t=>!sD(t)&&typeof t.then=="function",A6e=1073741823,_f=class extends Ya{constructor(){super(...arguments),this._$Cwt=A6e,this._$Cbt=[],this._$CK=new q0(this),this._$CX=new V0}render(...e){return e.find(a=>!$6e(a))??g1}update(e,a){let i=this._$Cbt,r=i.length;this._$Cbt=a;let s=this._$CK,n=this._$CX;this.isConnected||this.disconnected();for(let o=0;o<a.length&&!(o>this._$Cwt);o++){let l=a[o];if(!$6e(l))return this._$Cwt=o,l;o<r&&l===i[o]||(this._$Cwt=A6e,r=0,Promise.resolve(l).then(async d=>{for(;n.get();)await n.get();let u=s.deref();if(u!==void 0){let c=u._$Cbt.indexOf(l);c>-1&&c<u._$Cwt&&(u._$Cwt=c,u.setValue(d))}}))}return g1}disconnected(){this._$CK.disconnect(),this._$CX.pause()}reconnected(){this._$CK.reconnect(this),this._$CX.resume()}},fD=J1(_f)});var E6e=v(()=>{D6e()});var dl,JBt,P6e=v(()=>{Pi();Cf();hD();As();dl=class extends Ya{constructor(){super(...arguments),this._$CK=new q0(this),this._$CX=new V0}render(e,a){return g1}update(e,[a,i]){if(this.isConnected||this.disconnected(),a===this._$CJ)return g1;this._$CJ=a;let r=0,{_$CK:s,_$CX:n}=this;return pD(a,async o=>{for(;n.get();)await n.get();let l=s.deref();if(l!==void 0){if(l._$CJ!==a)return!1;i!==void 0&&(o=i(o,r)),l.commitValue(o,r),r++}return!0}),g1}commitValue(e,a){this.setValue(e)}disconnected(){this._$CK.disconnect(),this._$CX.pause()}reconnected(){this._$CK.reconnect(this),this._$CX.resume()}},JBt=J1(dl)});var mD,N6e=v(()=>{As();P6e();cl();mD=J1(class extends dl{constructor(t){if(super(t),t.type!==qr.CHILD)throw Error("asyncAppend can only be used in child expressions")}update(t,e){return this._$Ctt=t,super.update(t,e)}commitValue(t,e){e===0&&lD(this._$Ctt);let a=Ds(this._$Ctt);Ui(a,t)}})});var I6e=v(()=>{N6e()});var gD,F6e=v(()=>{Pi();As();cl();gD=J1(class extends wi{constructor(){super(...arguments),this.key=k1}render(t,e){return this.key=t,e}update(t,[e,a]){return e!==this.key&&(k5(t),this.key=e),a}})});var R6e=v(()=>{F6e()});var O6e,bD,B6e=v(()=>{Pi();As();cl();O6e=(t,e,a)=>{let i=new Map;for(let r=e;r<=a;r++)i.set(t[r],r);return i},bD=J1(class extends wi{constructor(t){if(super(t),t.type!==qr.CHILD)throw Error("repeat() can only be used in text expressions")}dt(t,e,a){let i;a===void 0?a=e:e!==void 0&&(i=e);let r=[],s=[],n=0;for(let o of t)r[n]=i?i(o,n):n,s[n]=a(o,n),n++;return{values:s,keys:r}}render(t,e,a){return this.dt(t,e,a).values}update(t,[e,a,i]){let r=oD(t),{values:s,keys:n}=this.dt(e,a,i);if(!Array.isArray(r))return this.ut=n,s;let o=this.ut??=[],l=[],d,u,c=0,f=r.length-1,g=0,y=s.length-1;for(;c<=f&&g<=y;)if(r[c]===null)c++;else if(r[f]===null)f--;else if(o[c]===n[g])l[g]=Ui(r[c],s[g]),c++,g++;else if(o[f]===n[y])l[y]=Ui(r[f],s[y]),f--,y--;else if(o[c]===n[y])l[y]=Ui(r[c],s[y]),Ds(t,l[y+1],r[c]),c++,y--;else if(o[f]===n[g])l[g]=Ui(r[f],s[g]),Ds(t,r[c],r[f]),f--,g++;else if(d===void 0&&(d=O6e(n,g,y),u=O6e(o,c,f)),d.has(o[c]))if(d.has(o[f])){let b=u.get(n[g]),m=b!==void 0?r[b]:null;if(m===null){let x=Ds(t,r[c]);Ui(x,s[g]),l[g]=x}else l[g]=Ui(m,s[g]),Ds(t,r[c],m),r[b]=null;g++}else C5(r[f]),f--;else C5(r[c]),c++;for(;g<=y;){let b=Ds(t,l[y+1]);Ui(b,s[g]),l[g++]=b}for(;c<=f;){let b=r[c++];b!==null&&C5(b)}return this.ut=n,k5(t,l),g1}})});var H6e=v(()=>{B6e()});var Za={};Qe(Za,{asyncAppend:()=>mD,keyed:()=>gD,repeat:()=>bD,resolve:()=>k6e,resolveExec:()=>QBt,subscribe:()=>KBt,subscribeWithTemplate:()=>_6e,until:()=>fD});var q6e=v(()=>{C6e();T6e();L6e();E6e();I6e();R6e();H6e()});var _5={};Qe(_5,{DeesElement:()=>xe,css:()=>X,cssManager:()=>p,customElement:()=>de,directives:()=>Za,domtools:()=>st,html:()=>w,property:()=>N,query:()=>aD,queryAll:()=>iD,queryAsync:()=>rD,render:()=>hn,state:()=>K,static:()=>$s,unsafeCSS:()=>Vt,unsafeHTML:()=>S5,unsafeStatic:()=>eD});var p,pe=v(()=>{s6e();pr();l6e();d6e();u6e();y6e();Lt();w6e();q6e();p=Mf.getSingleton()});function eHt(t,e){let a=c2[t];return typeof a=="object"&&e?a[e]||"auto":typeof a=="number"?a:"auto"}var c2,tHt,Lf,p1,zi=v(()=>{c2={base:{content:"auto",inputElements:1},fixed:{appBar:10,sideMenu:10,mobileNav:250},backdrop:{dropdown:1999,modal:2999,contextMenu:3999},overlay:{dropdown:2e3,modal:3e3,contextMenu:4e3,toast:5e3},modalDropdown:3500,wysiwygMenus:4500};tHt={"dees-modal":c2.overlay.modal,"dees-windowlayer":c2.overlay.dropdown,"dees-contextmenu":c2.overlay.contextMenu,"dees-toast":c2.overlay.toast,"dees-appui-mainmenu":c2.fixed.appBar,"dees-mobilenavigation":c2.fixed.mobileNav,"dees-slash-menu":c2.wysiwygMenus,"dees-formatting-menu":c2.wysiwygMenus},Lf=class t{static instance;activeElements=new Set;elementZIndexMap=new WeakMap;currentZIndex=1e3;constructor(){}static getInstance(){return t.instance||(t.instance=new t),t.instance}getNextZIndex(){return this.currentZIndex+=10,this.currentZIndex}register(e,a){this.activeElements.add(e),this.elementZIndexMap.set(e,a)}unregister(e){this.activeElements.delete(e),this.elementZIndexMap.delete(e),this.activeElements.size===0&&(this.currentZIndex=1e3)}getElementZIndex(e){return this.elementZIndexMap.get(e)}getActiveCount(){return this.activeElements.size}getCurrentZIndex(){return this.currentZIndex}clear(){this.activeElements.clear(),this.elementZIndexMap=new WeakMap,this.currentZIndex=1e3}getActiveElementsInOrder(){return Array.from(this.activeElements).sort((e,a)=>{let i=this.elementZIndexMap.get(e)||0,r=this.elementZIndexMap.get(a)||0;return i-r})}},p1=Lf.getInstance()});var ro,ke,Ve=v(()=>{pe();ro={colors:{light:{bgPrimary:"#ffffff",bgSecondary:"#fafafa",bgTertiary:"#f4f4f5",textPrimary:"#09090b",textSecondary:"#374151",textMuted:"#71717a",borderDefault:"#e5e7eb",borderSubtle:"#f4f4f5",borderStrong:"#d1d5db",accentPrimary:"#3b82f6",accentSuccess:"#22c55e",accentWarning:"#f59e0b",accentError:"#ef4444"},dark:{bgPrimary:"#09090b",bgSecondary:"#0a0a0a",bgTertiary:"#18181b",textPrimary:"#fafafa",textSecondary:"#d4d4d8",textMuted:"#a1a1aa",borderDefault:"#27272a",borderSubtle:"#1a1a1a",borderStrong:"#3f3f46",accentPrimary:"#3b82f6",accentSuccess:"#22c55e",accentWarning:"#f59e0b",accentError:"#ef4444"}},spacing:{xs:"4px",sm:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"32px","3xl":"48px"},radius:{xs:"2px",sm:"4px",md:"6px",lg:"8px",xl:"12px",full:"999px"},shadows:{xs:"0 1px 2px 0 rgb(0 0 0 / 0.05)",sm:"0 1px 3px rgba(0, 0, 0, 0.1)",md:"0 2px 8px rgba(0, 0, 0, 0.15)",lg:"0 4px 12px rgba(0, 0, 0, 0.15)"},transitions:{fast:"0.1s",default:"0.15s",slow:"0.2s",slower:"0.3s"},controlHeights:{sm:"32px",md:"36px",lg:"40px",xl:"48px"}},ke=X`
|
|
266
|
+
take care to ensure page security.`)})(i)+t[r+1],t[0]),r:JA}),n6e=new Map,zf=t=>(e,...a)=>{let i=a.length,r,s,n=[],o=[],l,d=0,u=!1;for(;d<i;){for(l=e[d];d<i&&(s=a[d],(r=EBt(s))!==void 0);)l+=r+e[++d],u=!0;d!==i&&o.push(s),n.push(l),d++}if(d===i&&n.push(e[i]),u){let c=n.join("$$lit$$");(e=n6e.get(c))===void 0&&(n.raw=n,n6e.set(c,e=n)),a=o}return t(e,...a)},$s=zf(w),NBt=zf(Yw),IBt=zf(Zw)});var l6e=v(()=>{o6e()});var qr,J1,wi,As=v(()=>{qr={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},J1=t=>(...e)=>({_$litDirective$:t,values:e}),wi=class{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,a,i){this._$Ct=e,this._$AM=a,this._$Ci=i}_$AS(e,a){return this.update(e,a)}update(e,a){return this.render(...a)}}});var ol,S5,c6e=v(()=>{Pi();As();ol=class extends wi{constructor(e){if(super(e),this.it=k1,e.type!==qr.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===k1||e==null)return this._t=void 0,this.it=e;if(e===g1)return e;if(typeof e!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(e===this.it)return this._t;this.it=e;let a=[e];return a.raw=a,this._t={_$litType$:this.constructor.resultType,strings:a,values:[]}}};ol.directiveName="unsafeHTML",ol.resultType=1;S5=J1(ol)});var d6e=v(()=>{c6e()});var de,tD=v(()=>{de=t=>(e,a)=>{a!==void 0?a.addInitializer(()=>{customElements.define(t,e)}):customElements.define(t,e)}});var u6e=v(()=>{tD()});function K(t){return N({...t,state:!0,attribute:!1})}var p6e=v(()=>{T7();});function FBt(t){return(e,a)=>{let i=typeof e=="function"?e:e[a];Object.assign(i,t)}}var h6e=v(()=>{});var Mi,ll=v(()=>{Mi=(t,e,a)=>(a.configurable=!0,a.enumerable=!0,Reflect.decorate&&typeof e!="object"&&Object.defineProperty(t,e,a),a)});function aD(t,e){return(a,i,r)=>{let s=n=>n.renderRoot?.querySelector(t)??null;if(e){let{get:n,set:o}=typeof i=="object"?a:r??(()=>{let l=Symbol();return{get(){return this[l]},set(d){this[l]=d}}})();return Mi(a,i,{get(){let l=n.call(this);return l===void 0&&(l=s(this),(l!==null||this.hasUpdated)&&o.call(this,l)),l}})}return Mi(a,i,{get(){return s(this)}})}}var f6e=v(()=>{ll();});function iD(t){return(e,a)=>Mi(e,a,{get(){return(this.renderRoot??(RBt??=document.createDocumentFragment())).querySelectorAll(t)}})}var RBt,m6e=v(()=>{ll();});function rD(t){return(e,a)=>Mi(e,a,{async get(){return await this.updateComplete,this.renderRoot?.querySelector(t)??null}})}var g6e=v(()=>{ll();});function OBt(t){return(e,a)=>{let{slot:i,selector:r}=t??{},s="slot"+(i?`[name=${i}]`:":not([name])");return Mi(e,a,{get(){let n=this.renderRoot?.querySelector(s),o=n?.assignedElements(t)??[];return r===void 0?o:o.filter(l=>l.matches(r))}})}}var b6e=v(()=>{ll();});function BBt(t){return(e,a)=>{let{slot:i}=t??{},r="slot"+(i?`[name=${i}]`:":not([name])");return Mi(e,a,{get(){return this.renderRoot?.querySelector(r)?.assignedNodes(t)??[]}})}}var v6e=v(()=>{ll();});var y6e=v(()=>{tD();T7();p6e();h6e();f6e();m6e();g6e();b6e();v6e()});var x6e,Sf,xe,w6e=v(()=>{KA();x6e=function(t,e,a,i,r,s){function n(x){if(x!==void 0&&typeof x!="function")throw new TypeError("Function expected");return x}for(var o=i.kind,l=o==="getter"?"get":o==="setter"?"set":"value",d=!e&&t?i.static?t:t.prototype:null,u=e||(d?Object.getOwnPropertyDescriptor(d,i.name):{}),c,f=!1,g=a.length-1;g>=0;g--){var y={};for(var b in i)y[b]=b==="access"?{}:i[b];for(var b in i.access)y.access[b]=i.access[b];y.addInitializer=function(x){if(f)throw new TypeError("Cannot add initializers after decoration has completed");s.push(n(x||null))};var m=(0,a[g])(o==="accessor"?{get:u.get,set:u.set}:u[l],y);if(o==="accessor"){if(m===void 0)continue;if(m===null||typeof m!="object")throw new TypeError("Object expected");(c=n(m.get))&&(u.get=c),(c=n(m.set))&&(u.set=c),(c=n(m.init))&&r.unshift(c)}else(c=n(m))&&(o==="field"?r.unshift(c):u[l]=c)}d&&Object.defineProperty(d,i.name,u),f=!0},Sf=function(t,e,a){for(var i=arguments.length>2,r=0;r<e.length;r++)a=i?e[r].call(t,a):e[r].call(t);return i?a:void 0},xe=(()=>{let t=io.LitElement,e,a=[],i=[],r,s=[],n=[];return class extends t{static{let l=typeof Symbol=="function"&&Symbol.metadata?Object.create(t[Symbol.metadata]??null):void 0;e=[io.property({type:Boolean})],r=[io.property()],x6e(this,null,e,{kind:"accessor",name:"goBright",static:!1,private:!1,access:{has:d=>"goBright"in d,get:d=>d.goBright,set:(d,u)=>{d.goBright=u}},metadata:l},a,i),x6e(this,null,r,{kind:"accessor",name:"domtools",static:!1,private:!1,access:{has:d=>"domtools"in d,get:d=>d.domtools,set:(d,u)=>{d.domtools=u}},metadata:l},s,n),l&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:l})}#e=Sf(this,a,!1);get goBright(){return this.#e}set goBright(l){this.#e=l}domtoolsPromise=Sf(this,i);#t=Sf(this,s,void 0);get domtools(){return this.#t}set domtools(l){this.#t=l}rxSubscriptions=(Sf(this,n),[]);themeSubscription;elementDomReadyDeferred=st.plugins.smartpromise.defer();elementDomReady=this.elementDomReadyDeferred.promise;constructor(l={}){super(),this.domtoolsPromise=st.elementBasic.setup(this,l),this.domtoolsPromise.then(d=>{this.domtools=d})}async connectedCallback(){super.connectedCallback();let l=await this.domtoolsPromise;this.themeSubscription=l.themeManager.themeObservable.subscribe(d=>{this.goBright=d,this.themeChanged&&this.themeChanged(d)}),this.rxSubscriptions.push(this.themeSubscription);for(let d of this.startupFunctions)await d();this.dispatchEvent(new CustomEvent("deesElementConnected"))}firstUpdated(l){super.firstUpdated(l),this.elementDomReadyDeferred.resolve()}startupFunctions=[];registerStartupFunction(l){this.startupFunctions.push(l)}garbageFunctions=[];registerGarbageFunction(l){this.garbageFunctions.push(l)}async disconnectedCallback(){await this.domtoolsPromise,super.disconnectedCallback();for(let l of this.rxSubscriptions)l.unsubscribe();for(let l of this.garbageFunctions)await l();this.dispatchEvent(new CustomEvent("deesElementDisconnected"))}}})()});var HBt,M6e,sD,qBt,VBt,jBt,UBt,WBt,nD,z6e,Ds,Ui,GBt,k5,oD,C5,lD,cl=v(()=>{Pi();({I:HBt}=Xw),M6e=t=>t,sD=t=>t===null||typeof t!="object"&&typeof t!="function",qBt={HTML:1,SVG:2,MATHML:3},VBt=(t,e)=>e===void 0?t?._$litType$!==void 0:t?._$litType$===e,jBt=t=>t?._$litType$?.h!=null,UBt=t=>t?._$litDirective$!==void 0,WBt=t=>t?._$litDirective$,nD=t=>t.strings===void 0,z6e=()=>document.createComment(""),Ds=(t,e,a)=>{let i=t._$AA.parentNode,r=e===void 0?t._$AB:e._$AA;if(a===void 0){let s=i.insertBefore(z6e(),r),n=i.insertBefore(z6e(),r);a=new HBt(s,n,t,t.options)}else{let s=a._$AB.nextSibling,n=a._$AM,o=n!==t;if(o){let l;a._$AQ?.(t),a._$AM=t,a._$AP!==void 0&&(l=t._$AU)!==n._$AU&&a._$AP(l)}if(s!==r||o){let l=a._$AA;for(;l!==s;){let d=M6e(l).nextSibling;M6e(i).insertBefore(l,r),l=d}}}return a},Ui=(t,e,a=t)=>(t._$AI(e,a),t),GBt={},k5=(t,e=GBt)=>t._$AH=e,oD=t=>t._$AH,C5=t=>{t._$AR(),t._$AA.remove()},lD=t=>{t._$AR()}});function YBt(t){this._$AN!==void 0?(kf(this),this._$AM=t,S6e(this)):this._$AM=t}function ZBt(t,e=!1,a=0){let i=this._$AH,r=this._$AN;if(r!==void 0&&r.size!==0)if(e)if(Array.isArray(i))for(let s=a;s<i.length;s++)T5(i[s],!1),kf(i[s]);else i!=null&&(T5(i,!1),kf(i));else T5(this,t)}var T5,kf,S6e,XBt,Ya,Cf=v(()=>{cl();As();As();T5=(t,e)=>{let a=t._$AN;if(a===void 0)return!1;for(let i of a)i._$AO?.(e,!1),T5(i,e);return!0},kf=t=>{let e,a;do{if((e=t._$AM)===void 0)break;a=e._$AN,a.delete(t),t=e}while(a?.size===0)},S6e=t=>{for(let e;e=t._$AM;t=e){let a=e._$AN;if(a===void 0)e._$AN=a=new Set;else if(a.has(t))break;a.add(t),XBt(e)}};XBt=t=>{t.type==qr.CHILD&&(t._$AP??=ZBt,t._$AQ??=YBt)},Ya=class extends wi{constructor(){super(...arguments),this._$AN=void 0}_$AT(e,a,i){super._$AT(e,a,i),S6e(this),this.isConnected=e._$AU}_$AO(e,a=!0){e!==this.isConnected&&(this.isConnected=e,e?this.reconnected?.():this.disconnected?.()),a&&(T5(this,e),kf(this))}setValue(e){if(nD(this._$Ct))this._$Ct._$AI(e,this);else{let a=[...this._$Ct._$AH];a[this._$Ci]=e,this._$Ct._$AI(a,this,0)}}disconnected(){}reconnected(){}}});var Tf=v(()=>{Cf()});var cD,k6e,QBt,C6e=v(()=>{pr();Tf();cD=class extends Ya{promise;hasPromiseSettled=!1;render(e){return this.promise!==e&&(this.promise=e,this.isConnected&&this.handlePromise(e)),g1}handlePromise(e){this.hasPromiseSettled=!1,e.then(a=>{this.promise===e&&!this.hasPromiseSettled&&(this.setValue(a),this.hasPromiseSettled=!0)}).catch(a=>{this.promise===e&&!this.hasPromiseSettled&&(this.setValue(a),this.hasPromiseSettled=!0)})}disconnected(){this.hasPromiseSettled=!0}reconnected(){this.hasPromiseSettled||this.handlePromise(this.promise)}},k6e=J1(cD),QBt=t=>k6e(t())});var dD,KBt,T6e=v(()=>{pr();Tf();pi();dD=class extends Ya{observable;sub=null;render(e){return this.observable!==e&&(this.sub?.unsubscribe(),this.observable=e,this.isConnected&&this.subscribe(e)),g1}subscribe(e){this.sub=e.subscribe(a=>{this.setValue(a)})}disconnected(){this.sub?.unsubscribe()}reconnected(){this.subscribe(this.observable)}},KBt=J1(dD)});var uD,_6e,L6e=v(()=>{pr();Tf();pi();uD=class extends Ya{observable;templateFn;sub=null;render(e,a){return(this.observable!==e||this.templateFn!==a)&&(this.sub?.unsubscribe(),this.observable=e,this.templateFn=a,this.isConnected&&this.startSubscription()),g1}startSubscription(){this.sub=this.observable.subscribe(e=>{let a=this.templateFn(e);this.setValue(a)})}disconnected(){this.sub?.unsubscribe()}reconnected(){this.startSubscription()}},_6e=J1(uD)});var pD,q0,V0,hD=v(()=>{pD=async(t,e)=>{for await(let a of t)if(await e(a)===!1)return},q0=class{constructor(e){this.G=e}disconnect(){this.G=void 0}reconnect(e){this.G=e}deref(){return this.G}},V0=class{constructor(){this.Y=void 0,this.Z=void 0}get(){return this.Y}pause(){this.Y??=new Promise(e=>this.Z=e)}resume(){this.Z?.(),this.Y=this.Z=void 0}}});var $6e,A6e,_f,fD,D6e=v(()=>{Pi();cl();Cf();hD();As();$6e=t=>!sD(t)&&typeof t.then=="function",A6e=1073741823,_f=class extends Ya{constructor(){super(...arguments),this._$Cwt=A6e,this._$Cbt=[],this._$CK=new q0(this),this._$CX=new V0}render(...e){return e.find(a=>!$6e(a))??g1}update(e,a){let i=this._$Cbt,r=i.length;this._$Cbt=a;let s=this._$CK,n=this._$CX;this.isConnected||this.disconnected();for(let o=0;o<a.length&&!(o>this._$Cwt);o++){let l=a[o];if(!$6e(l))return this._$Cwt=o,l;o<r&&l===i[o]||(this._$Cwt=A6e,r=0,Promise.resolve(l).then(async d=>{for(;n.get();)await n.get();let u=s.deref();if(u!==void 0){let c=u._$Cbt.indexOf(l);c>-1&&c<u._$Cwt&&(u._$Cwt=c,u.setValue(d))}}))}return g1}disconnected(){this._$CK.disconnect(),this._$CX.pause()}reconnected(){this._$CK.reconnect(this),this._$CX.resume()}},fD=J1(_f)});var E6e=v(()=>{D6e()});var dl,JBt,P6e=v(()=>{Pi();Cf();hD();As();dl=class extends Ya{constructor(){super(...arguments),this._$CK=new q0(this),this._$CX=new V0}render(e,a){return g1}update(e,[a,i]){if(this.isConnected||this.disconnected(),a===this._$CJ)return g1;this._$CJ=a;let r=0,{_$CK:s,_$CX:n}=this;return pD(a,async o=>{for(;n.get();)await n.get();let l=s.deref();if(l!==void 0){if(l._$CJ!==a)return!1;i!==void 0&&(o=i(o,r)),l.commitValue(o,r),r++}return!0}),g1}commitValue(e,a){this.setValue(e)}disconnected(){this._$CK.disconnect(),this._$CX.pause()}reconnected(){this._$CK.reconnect(this),this._$CX.resume()}},JBt=J1(dl)});var mD,N6e=v(()=>{As();P6e();cl();mD=J1(class extends dl{constructor(t){if(super(t),t.type!==qr.CHILD)throw Error("asyncAppend can only be used in child expressions")}update(t,e){return this._$Ctt=t,super.update(t,e)}commitValue(t,e){e===0&&lD(this._$Ctt);let a=Ds(this._$Ctt);Ui(a,t)}})});var I6e=v(()=>{N6e()});var gD,F6e=v(()=>{Pi();As();cl();gD=J1(class extends wi{constructor(){super(...arguments),this.key=k1}render(t,e){return this.key=t,e}update(t,[e,a]){return e!==this.key&&(k5(t),this.key=e),a}})});var R6e=v(()=>{F6e()});var O6e,bD,B6e=v(()=>{Pi();As();cl();O6e=(t,e,a)=>{let i=new Map;for(let r=e;r<=a;r++)i.set(t[r],r);return i},bD=J1(class extends wi{constructor(t){if(super(t),t.type!==qr.CHILD)throw Error("repeat() can only be used in text expressions")}dt(t,e,a){let i;a===void 0?a=e:e!==void 0&&(i=e);let r=[],s=[],n=0;for(let o of t)r[n]=i?i(o,n):n,s[n]=a(o,n),n++;return{values:s,keys:r}}render(t,e,a){return this.dt(t,e,a).values}update(t,[e,a,i]){let r=oD(t),{values:s,keys:n}=this.dt(e,a,i);if(!Array.isArray(r))return this.ut=n,s;let o=this.ut??=[],l=[],d,u,c=0,f=r.length-1,g=0,y=s.length-1;for(;c<=f&&g<=y;)if(r[c]===null)c++;else if(r[f]===null)f--;else if(o[c]===n[g])l[g]=Ui(r[c],s[g]),c++,g++;else if(o[f]===n[y])l[y]=Ui(r[f],s[y]),f--,y--;else if(o[c]===n[y])l[y]=Ui(r[c],s[y]),Ds(t,l[y+1],r[c]),c++,y--;else if(o[f]===n[g])l[g]=Ui(r[f],s[g]),Ds(t,r[c],r[f]),f--,g++;else if(d===void 0&&(d=O6e(n,g,y),u=O6e(o,c,f)),d.has(o[c]))if(d.has(o[f])){let b=u.get(n[g]),m=b!==void 0?r[b]:null;if(m===null){let x=Ds(t,r[c]);Ui(x,s[g]),l[g]=x}else l[g]=Ui(m,s[g]),Ds(t,r[c],m),r[b]=null;g++}else C5(r[f]),f--;else C5(r[c]),c++;for(;g<=y;){let b=Ds(t,l[y+1]);Ui(b,s[g]),l[g++]=b}for(;c<=f;){let b=r[c++];b!==null&&C5(b)}return this.ut=n,k5(t,l),g1}})});var H6e=v(()=>{B6e()});var Za={};Qe(Za,{asyncAppend:()=>mD,keyed:()=>gD,repeat:()=>bD,resolve:()=>k6e,resolveExec:()=>QBt,subscribe:()=>KBt,subscribeWithTemplate:()=>_6e,until:()=>fD});var q6e=v(()=>{C6e();T6e();L6e();E6e();I6e();R6e();H6e()});var _5={};Qe(_5,{DeesElement:()=>xe,css:()=>X,cssManager:()=>p,customElement:()=>de,directives:()=>Za,domtools:()=>st,html:()=>w,property:()=>N,query:()=>aD,queryAll:()=>iD,queryAsync:()=>rD,render:()=>hn,state:()=>K,static:()=>$s,unsafeCSS:()=>Vt,unsafeHTML:()=>S5,unsafeStatic:()=>eD});var p,pe=v(()=>{s6e();pr();l6e();d6e();u6e();y6e();Lt();w6e();q6e();p=Mf.getSingleton()});function eHt(t,e){let a=c2[t];return typeof a=="object"&&e?a[e]||"auto":typeof a=="number"?a:"auto"}var c2,tHt,Lf,u1,zi=v(()=>{c2={base:{content:"auto",inputElements:1},fixed:{appBar:10,sideMenu:10,mobileNav:250},backdrop:{dropdown:1999,modal:2999,contextMenu:3999},overlay:{dropdown:2e3,modal:3e3,contextMenu:4e3,toast:5e3},modalDropdown:3500,wysiwygMenus:4500};tHt={"dees-modal":c2.overlay.modal,"dees-windowlayer":c2.overlay.dropdown,"dees-contextmenu":c2.overlay.contextMenu,"dees-toast":c2.overlay.toast,"dees-appui-mainmenu":c2.fixed.appBar,"dees-mobilenavigation":c2.fixed.mobileNav,"dees-slash-menu":c2.wysiwygMenus,"dees-formatting-menu":c2.wysiwygMenus},Lf=class t{static instance;activeElements=new Set;elementZIndexMap=new WeakMap;currentZIndex=1e3;constructor(){}static getInstance(){return t.instance||(t.instance=new t),t.instance}getNextZIndex(){return this.currentZIndex+=10,this.currentZIndex}register(e,a){this.activeElements.add(e),this.elementZIndexMap.set(e,a)}unregister(e){this.activeElements.delete(e),this.elementZIndexMap.delete(e),this.activeElements.size===0&&(this.currentZIndex=1e3)}getElementZIndex(e){return this.elementZIndexMap.get(e)}getActiveCount(){return this.activeElements.size}getCurrentZIndex(){return this.currentZIndex}clear(){this.activeElements.clear(),this.elementZIndexMap=new WeakMap,this.currentZIndex=1e3}getActiveElementsInOrder(){return Array.from(this.activeElements).sort((e,a)=>{let i=this.elementZIndexMap.get(e)||0,r=this.elementZIndexMap.get(a)||0;return i-r})}},u1=Lf.getInstance()});var ro,ke,Ve=v(()=>{pe();ro={colors:{light:{bgPrimary:"#ffffff",bgSecondary:"#fafafa",bgTertiary:"#f4f4f5",textPrimary:"#09090b",textSecondary:"#374151",textMuted:"#71717a",borderDefault:"#e5e7eb",borderSubtle:"#f4f4f5",borderStrong:"#d1d5db",accentPrimary:"#3b82f6",accentSuccess:"#22c55e",accentWarning:"#f59e0b",accentError:"#ef4444"},dark:{bgPrimary:"#09090b",bgSecondary:"#0a0a0a",bgTertiary:"#18181b",textPrimary:"#fafafa",textSecondary:"#d4d4d8",textMuted:"#a1a1aa",borderDefault:"#27272a",borderSubtle:"#1a1a1a",borderStrong:"#3f3f46",accentPrimary:"#3b82f6",accentSuccess:"#22c55e",accentWarning:"#f59e0b",accentError:"#ef4444"}},spacing:{xs:"4px",sm:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"32px","3xl":"48px"},radius:{xs:"2px",sm:"4px",md:"6px",lg:"8px",xl:"12px",full:"999px"},shadows:{xs:"0 1px 2px 0 rgb(0 0 0 / 0.05)",sm:"0 1px 3px rgba(0, 0, 0, 0.1)",md:"0 2px 8px rgba(0, 0, 0, 0.15)",lg:"0 4px 12px rgba(0, 0, 0, 0.15)"},transitions:{fast:"0.1s",default:"0.15s",slow:"0.2s",slower:"0.3s"},controlHeights:{sm:"32px",md:"36px",lg:"40px",xl:"48px"}},ke=X`
|
|
267
267
|
:host {
|
|
268
268
|
/* ========================================
|
|
269
269
|
* Spacing Scale
|
|
@@ -404,7 +404,7 @@ ${r}
|
|
|
404
404
|
<div class="slotContent">
|
|
405
405
|
<slot></slot>
|
|
406
406
|
</div>
|
|
407
|
-
`}firstUpdated(){setTimeout(()=>{this.visible=!0},100)}dispatchClicked(){this.dispatchEvent(new CustomEvent("clicked"))}toggleVisibility(){this.visible=!this.visible}getContentZIndex(){return this.contentZIndex}async show(){let M=await this.domtoolsPromise;this.backdropZIndex=
|
|
407
|
+
`}firstUpdated(){setTimeout(()=>{this.visible=!0},100)}dispatchClicked(){this.dispatchEvent(new CustomEvent("clicked"))}toggleVisibility(){this.visible=!this.visible}getContentZIndex(){return this.contentZIndex}async show(){let M=await this.domtoolsPromise;this.backdropZIndex=u1.getNextZIndex(),this.contentZIndex=u1.getNextZIndex(),u1.register(this,this.backdropZIndex),await M.convenience.smartdelay.delayFor(0),this.visible=!0}async hide(){await(await this.domtoolsPromise).convenience.smartdelay.delayFor(0),this.visible=!1}async destroy(){let M=await this.domtoolsPromise;await this.hide(),await M.convenience.smartdelay.delayFor(300),u1.unregister(this),this.remove()}static{Es(i,a)}};return x=i})()});function ID(t,e){(e==null||e>t.length)&&(e=t.length);for(var a=0,i=Array(e);a<e;a++)i[a]=t[a];return i}function iHt(t){if(Array.isArray(t))return t}function rHt(t){if(Array.isArray(t))return ID(t)}function sHt(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function H5e(t,e){for(var a=0;a<e.length;a++){var i=e[a];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,V5e(i.key),i)}}function nHt(t,e,a){return e&&H5e(t.prototype,e),a&&H5e(t,a),Object.defineProperty(t,"prototype",{writable:!1}),t}function Ef(t,e){var a=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(!a){if(Array.isArray(t)||(a=FD(t))||e&&t&&typeof t.length=="number"){a&&(t=a);var i=0,r=function(){};return{s:r,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(l){throw l},f:r}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
408
408
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var s,n=!0,o=!1;return{s:function(){a=a.call(t)},n:function(){var l=a.next();return n=l.done,l},e:function(l){o=!0,s=l},f:function(){try{n||a.return==null||a.return()}finally{if(o)throw s}}}}function gt(t,e,a){return(e=V5e(e))in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}function oHt(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Pf(t,e)}function lHt(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function cHt(t,e){var a=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(a!=null){var i,r,s,n,o=[],l=!0,d=!1;try{if(s=(a=a.call(t)).next,e===0){if(Object(a)!==a)return;l=!1}else for(;!(l=(i=s.call(a)).done)&&(o.push(i.value),o.length!==e);l=!0);}catch(u){d=!0,r=u}finally{try{if(!l&&a.return!=null&&(n=a.return(),Object(n)!==n))return}finally{if(d)throw r}}return o}}function dHt(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
409
409
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function uHt(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
410
410
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function q5e(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),a.push.apply(a,i)}return a}function Ie(t){for(var e=1;e<arguments.length;e++){var a=arguments[e]!=null?arguments[e]:{};e%2?q5e(Object(a),!0).forEach(function(i){gt(t,i,a[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):q5e(Object(a)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(a,i))})}return t}function Pf(t,e){return Pf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(a,i){return a.__proto__=i,a},Pf(t,e)}function Nf(t,e){return iHt(t)||cHt(t,e)||FD(t,e)||dHt()}function Gi(t){return rHt(t)||lHt(t)||FD(t)||uHt()}function pHt(t,e){if(typeof t!="object"||!t)return t;var a=t[Symbol.toPrimitive];if(a!==void 0){var i=a.call(t,e||"default");if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function V5e(t){var e=pHt(t,"string");return typeof e=="symbol"?e:e+""}function If(t){"@babel/helpers - typeof";return If=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},If(t)}function FD(t,e){if(t){if(typeof t=="string")return ID(t,e);var a={}.toString.call(t).slice(8,-1);return a==="Object"&&t.constructor&&(a=t.constructor.name),a==="Map"||a==="Set"?Array.from(t):a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?ID(t,e):void 0}}function J2(){J2=function(r,s){return new a(r,void 0,s)};var t=RegExp.prototype,e=new WeakMap;function a(r,s,n){var o=RegExp(r,s);return e.set(o,n||e.get(r)),Pf(o,a.prototype)}function i(r,s){var n=e.get(s);return Object.keys(n).reduce(function(o,l){var d=n[l];if(typeof d=="number")o[l]=r[d];else{for(var u=0;r[d[u]]===void 0&&u+1<d.length;)u++;o[l]=r[d[u]]}return o},Object.create(null))}return oHt(a,RegExp),a.prototype.exec=function(r){var s=t.exec.call(this,r);if(s){s.groups=i(s,this);var n=s.indices;n&&(n.groups=i(n,this))}return s},a.prototype[Symbol.replace]=function(r,s){if(typeof s=="string"){var n=e.get(this);return t[Symbol.replace].call(this,r,s.replace(/\$<([^>]+)(>|$)/g,function(l,d,u){if(u==="")return l;var c=n[d];return Array.isArray(c)?"$"+c.join("$"):typeof c=="number"?"$"+c:""}))}if(typeof s=="function"){var o=this;return t[Symbol.replace].call(this,r,function(){var l=arguments;return typeof l[l.length-1]!="object"&&(l=[].slice.call(l)).push(i(l,o)),s.apply(this,l)})}return t[Symbol.replace].call(this,r,s)},J2.apply(this,arguments)}function A5(t){return new Proxy(t,{get:function(a,i){return i in a?a[i]:a[L2]}})}function eVt(t){var e=v1.querySelector("script["+t+"]");if(e)return e.getAttribute(t)}function tVt(t){return t===""?!0:t==="false"?!1:t==="true"?!0:t}function aVt(t){return E5.push(t),function(){E5.splice(E5.indexOf(t),1)}}function iVt(t){if(!(!t||!Ns)){var e=v1.createElement("style");e.setAttribute("type","text/css"),e.innerHTML=t;for(var a=v1.head.childNodes,i=null,r=a.length-1;r>-1;r--){var s=a[r],n=(s.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(n)>-1&&(i=s)}return v1.head.insertBefore(e,i),t}}function E8e(){for(var t=12,e="";t-- >0;)e+=rVt[Math.random()*62|0];return e}function pl(t){for(var e=[],a=(t||[]).length>>>0;a--;)e[a]=t[a];return e}function QD(t){return t.classList?pl(t.classList):(t.getAttribute("class")||"").split(" ").filter(function(e){return e})}function P8e(t){return"".concat(t).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">")}function sVt(t){return Object.keys(t||{}).reduce(function(e,a){return e+"".concat(a,'="').concat(P8e(t[a]),'" ')},"").trim()}function Of(t){return Object.keys(t||{}).reduce(function(e,a){return e+"".concat(a,": ").concat(t[a].trim(),";")},"")}function KD(t){return t.size!==Vr.size||t.x!==Vr.x||t.y!==Vr.y||t.rotate!==Vr.rotate||t.flipX||t.flipY}function nVt(t){var e=t.transform,a=t.containerWidth,i=t.iconWidth,r={transform:"translate(".concat(a/2," 256)")},s="translate(".concat(e.x*32,", ").concat(e.y*32,") "),n="scale(".concat(e.size/16*(e.flipX?-1:1),", ").concat(e.size/16*(e.flipY?-1:1),") "),o="rotate(".concat(e.rotate," 0 0)"),l={transform:"".concat(s," ").concat(n," ").concat(o)},d={transform:"translate(".concat(i/2*-1," -256)")};return{outer:r,inner:l,path:d}}function oVt(t){var e=t.transform,a=t.width,i=a===void 0?qD:a,r=t.height,s=r===void 0?qD:r,n=t.startCentered,o=n===void 0?!1:n,l="";return o&&Q5e?l+="translate(".concat(e.x/no-i/2,"em, ").concat(e.y/no-s/2,"em) "):o?l+="translate(calc(-50% + ".concat(e.x/no,"em), calc(-50% + ").concat(e.y/no,"em)) "):l+="translate(".concat(e.x/no,"em, ").concat(e.y/no,"em) "),l+="scale(".concat(e.size/no*(e.flipX?-1:1),", ").concat(e.size/no*(e.flipY?-1:1),") "),l+="rotate(".concat(e.rotate,"deg) "),l}function N8e(){var t=z8e,e=S8e,a=et.cssPrefix,i=et.replacementClass,r=lVt;if(a!==t||i!==e){var s=new RegExp("\\.".concat(t,"\\-"),"g"),n=new RegExp("\\--".concat(t,"\\-"),"g"),o=new RegExp("\\.".concat(e),"g");r=r.replace(s,".".concat(a,"-")).replace(n,"--".concat(a,"-")).replace(o,".".concat(i))}return r}function JD(){et.autoAddCss&&!I8e&&(iVt(N8e()),I8e=!0)}function dVt(t){Ns&&(Bf?setTimeout(t,0):F8e.push(t))}function P5(t){var e=t.tag,a=t.attributes,i=a===void 0?{}:a,r=t.children,s=r===void 0?[]:r;return typeof t=="string"?P8e(t):"<".concat(e," ").concat(sVt(i),">").concat(s.map(P5).join(""),"</").concat(e,">")}function O8e(t,e,a){if(t&&t[e]&&t[e][a])return{prefix:e,iconName:a,icon:t[e][a]}}function B8e(t){return Gi(t).length!==1?null:t.codePointAt(0).toString(16)}function H8e(t){return Object.keys(t).reduce(function(e,a){var i=t[a],r=!!i.icon;return r?e[i.iconName]=i.icon:e[a]=i,e},{})}function tE(t,e){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=a.skipHooks,r=i===void 0?!1:i,s=H8e(e);typeof Yi.hooks.addPack=="function"&&!r?Yi.hooks.addPack(t,H8e(e)):Yi.styles[t]=Ie(Ie({},Yi.styles[t]||{}),s),t==="fas"&&tE("fa",e)}function fVt(t){return~Jqt.indexOf(t)}function mVt(t,e){var a=e.split("-"),i=a[0],r=a.slice(1).join("-");return i===t&&r!==""&&!fVt(r)?r:null}function rE(t,e){return(V8e[t]||{})[e]}function gVt(t,e){return(j8e[t]||{})[e]}function U0(t,e){return(G8e[t]||{})[e]}function Z8e(t){return U8e[t]||{prefix:null,iconName:null}}function bVt(t){var e=W8e[t],a=rE("fas",t);return e||(a?{prefix:"fas",iconName:a}:null)||{prefix:null,iconName:null}}function oo(){return iE}function vVt(t){var e=L2,a=q8e.reduce(function(i,r){return i[r]="".concat(et.cssPrefix,"-").concat(r),i},{});return b8e.forEach(function(i){(t.includes(a[i])||t.some(function(r){return hVt[i].includes(r)}))&&(e=i)}),e}function Hf(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=e.family,i=a===void 0?L2:a,r=Yqt[i][t];if(i===$5&&!t)return"fad";var s=L8e[i][t]||L8e[i][r],n=t in Yi.styles?t:null,o=s||n||null;return o}function yVt(t){var e=[],a=null;return t.forEach(function(i){var r=mVt(et.cssPrefix,i);r?a=r:i&&e.push(i)}),{iconName:a,rest:e}}function Q8e(t){return t.sort().filter(function(e,a,i){return i.indexOf(e)===a})}function qf(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=e.skipLookups,i=a===void 0?!1:a,r=null,s=Q8e(t.filter(function(g){return K8e.includes(g)})),n=Q8e(t.filter(function(g){return!K8e.includes(g)})),o=s.filter(function(g){return r=g,!J5e.includes(g)}),l=Nf(o,1),d=l[0],u=d===void 0?null:d,c=vVt(s),f=Ie(Ie({},yVt(n)),{},{prefix:Hf(u,{family:c})});return Ie(Ie(Ie({},f),zVt({values:t,family:c,styles:N5,config:et,canonical:f,givenPrefix:r})),xVt(i,r,f))}function xVt(t,e,a){var i=a.prefix,r=a.iconName;if(t||!i||!r)return{prefix:i,iconName:r};var s=e==="fa"?Z8e(r):{},n=U0(i,r);return r=s.iconName||n||r,i=s.prefix||i,i==="far"&&!N5.far&&N5.fas&&!et.autoFetchSvg&&(i="fas"),{prefix:i,iconName:r}}function zVt(t){var e=t.values,a=t.family,i=t.canonical,r=t.givenPrefix,s=r===void 0?"":r,n=t.styles,o=n===void 0?{}:n,l=t.config,d=l===void 0?{}:l,u=a===$5,c=e.includes("fa-duotone")||e.includes("fad"),f=d.familyDefault==="duotone",g=i.prefix==="fad"||i.prefix==="fa-duotone";if(!u&&(c||f||g)&&(i.prefix="fad"),(e.includes("fa-brands")||e.includes("fab"))&&(i.prefix="fab"),!i.prefix&&wVt.includes(a)){var y=Object.keys(o).find(function(m){return MVt.includes(m)});if(y||d.autoFetchSvg){var b=RHt.get(a).defaultShortPrefixId;i.prefix=b,i.iconName=U0(i.prefix,i.iconName)||i.iconName}}return(i.prefix==="fa"||s==="fa")&&(i.prefix=oo()||"fas"),i}function CVt(t,e){var a=e.mixoutsTo;return J8e=t,hl={},Object.keys(fl).forEach(function(i){kVt.indexOf(i)===-1&&delete fl[i]}),J8e.forEach(function(i){var r=i.mixout?i.mixout():{};if(Object.keys(r).forEach(function(n){typeof r[n]=="function"&&(a[n]=r[n]),If(r[n])==="object"&&Object.keys(r[n]).forEach(function(o){a[n]||(a[n]={}),a[n][o]=r[n][o]})}),i.hooks){var s=i.hooks();Object.keys(s).forEach(function(n){hl[n]||(hl[n]=[]),hl[n].push(s[n])})}i.provides&&i.provides(fl)}),a}function sE(t,e){for(var a=arguments.length,i=new Array(a>2?a-2:0),r=2;r<a;r++)i[r-2]=arguments[r];var s=hl[t]||[];return s.forEach(function(n){e=n.apply(null,[e].concat(i))}),e}function W0(t){for(var e=arguments.length,a=new Array(e>1?e-1:0),i=1;i<e;i++)a[i-1]=arguments[i];var r=hl[t]||[];r.forEach(function(s){s.apply(null,a)})}function lo(){var t=arguments[0],e=Array.prototype.slice.call(arguments,1);return fl[t]?fl[t].apply(null,e):void 0}function nE(t){t.prefix==="fa"&&(t.prefix="fas");var e=t.iconName,a=t.prefix||oo();if(e)return e=U0(a,e)||e,O8e(ede.definitions,a,e)||O8e(Yi.styles,a,e)}function Vf(t,e){return Object.defineProperty(t,"abstract",{get:e}),Object.defineProperty(t,"html",{get:function(){return t.abstract.map(function(i){return P5(i)})}}),Object.defineProperty(t,"node",{get:function(){if(Ns){var i=v1.createElement("div");return i.innerHTML=t.html,i.children}}}),t}function AVt(t){var e=t.children,a=t.main,i=t.mask,r=t.attributes,s=t.styles,n=t.transform;if(KD(n)&&a.found&&!i.found){var o=a.width,l=a.height,d={x:o/l/2,y:.5};r.style=Of(Ie(Ie({},s),{},{"transform-origin":"".concat(d.x+n.x/16,"em ").concat(d.y+n.y/16,"em")}))}return[{tag:"svg",attributes:r,children:e}]}function DVt(t){var e=t.prefix,a=t.iconName,i=t.children,r=t.attributes,s=t.symbol,n=s===!0?"".concat(e,"-").concat(et.cssPrefix,"-").concat(a):s;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:Ie(Ie({},r),{},{id:n}),children:i}]}]}function EVt(t){var e=["aria-label","aria-labelledby","title","role"];return e.some(function(a){return a in t})}function oE(t){var e=t.icons,a=e.main,i=e.mask,r=t.prefix,s=t.iconName,n=t.transform,o=t.symbol,l=t.maskId,d=t.extra,u=t.watchable,c=u===void 0?!1:u,f=i.found?i:a,g=f.width,y=f.height,b=[et.replacementClass,s?"".concat(et.cssPrefix,"-").concat(s):""].filter(function(T){return d.classes.indexOf(T)===-1}).filter(function(T){return T!==""||!!T}).concat(d.classes).join(" "),m={children:[],attributes:Ie(Ie({},d.attributes),{},{"data-prefix":r,"data-icon":s,class:b,role:d.attributes.role||"img",viewBox:"0 0 ".concat(g," ").concat(y)})};!EVt(d.attributes)&&!d.attributes["aria-hidden"]&&(m.attributes["aria-hidden"]="true"),c&&(m.attributes[j0]="");var x=Ie(Ie({},m),{},{prefix:r,iconName:s,main:a,mask:i,maskId:l,transform:n,symbol:o,styles:Ie({},d.styles)}),M=i.found&&a.found?lo("generateAbstractMask",x)||{children:[],attributes:{}}:lo("generateAbstractIcon",x)||{children:[],attributes:{}},k=M.children,F=M.attributes;return x.children=k,x.attributes=F,o?DVt(x):AVt(x)}function tde(t){var e=t.content,a=t.width,i=t.height,r=t.transform,s=t.extra,n=t.watchable,o=n===void 0?!1:n,l=Ie(Ie({},s.attributes),{},{class:s.classes.join(" ")});o&&(l[j0]="");var d=Ie({},s.styles);KD(r)&&(d.transform=oVt({transform:r,startCentered:!0,width:a,height:i}),d["-webkit-transform"]=d.transform);var u=Of(d);u.length>0&&(l.style=u);var c=[];return c.push({tag:"span",attributes:l,children:[e]}),c}function PVt(t){var e=t.content,a=t.extra,i=Ie(Ie({},a.attributes),{},{class:a.classes.join(" ")}),r=Of(a.styles);r.length>0&&(i.style=r);var s=[];return s.push({tag:"span",attributes:i,children:[e]}),s}function cE(t){var e=t[0],a=t[1],i=t.slice(4),r=Nf(i,1),s=r[0],n=null;return Array.isArray(s)?n={tag:"g",attributes:{class:"".concat(et.cssPrefix,"-").concat(XD.GROUP)},children:[{tag:"path",attributes:{class:"".concat(et.cssPrefix,"-").concat(XD.SECONDARY),fill:"currentColor",d:s[0]}},{tag:"path",attributes:{class:"".concat(et.cssPrefix,"-").concat(XD.PRIMARY),fill:"currentColor",d:s[1]}}]}:n={tag:"path",attributes:{fill:"currentColor",d:s}},{found:!0,width:e,height:a,icon:n}}function IVt(t,e){!T8e&&!et.showMissingIcons&&t&&console.error('Icon with name "'.concat(t,'" and prefix "').concat(e,'" is missing.'))}function dE(t,e){var a=e;return e==="fa"&&et.styleDefault!==null&&(e=oo()),new Promise(function(i,r){if(a==="fa"){var s=Z8e(t)||{};t=s.iconName||t,e=s.prefix||e}if(t&&e&&lE[e]&&lE[e][t]){var n=lE[e][t];return i(cE(n))}IVt(t,e),i(Ie(Ie({},NVt),{},{icon:et.showMissingIcons&&t?lo("missingIconAbstract")||{}:{}}))})}function rde(t){var e=t.getAttribute?t.getAttribute(j0):null;return typeof e=="string"}function RVt(t){var e=t.getAttribute?t.getAttribute(jD):null,a=t.getAttribute?t.getAttribute(UD):null;return e&&a}function OVt(t){return t&&t.classList&&t.classList.contains&&t.classList.contains(et.replacementClass)}function BVt(){if(et.autoReplaceSvg===!0)return Uf.replace;var t=Uf[et.autoReplaceSvg];return t||Uf.replace}function HVt(t){return v1.createElementNS("http://www.w3.org/2000/svg",t)}function qVt(t){return v1.createElement(t)}function sde(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=e.ceFn,i=a===void 0?t.tag==="svg"?HVt:qVt:a;if(typeof t=="string")return v1.createTextNode(t);var r=i(t.tag);Object.keys(t.attributes||[]).forEach(function(n){r.setAttribute(n,t.attributes[n])});var s=t.children||[];return s.forEach(function(n){r.appendChild(sde(n,{ceFn:i}))}),r}function VVt(t){var e=" ".concat(t.outerHTML," ");return e="".concat(e,"Font Awesome fontawesome.com "),e}function nde(t){t()}function ode(t,e){var a=typeof e=="function"?e:jf;if(t.length===0)a();else{var i=nde;et.mutateApproach===Wqt&&(i=so.requestAnimationFrame||nde),i(function(){var r=BVt(),s=pE.begin("mutate");t.map(r),s(),a()})}}function lde(){hE=!0}function fE(){hE=!1}function cde(t){if(X5e&&et.observeMutations){var e=t.treeCallback,a=e===void 0?jf:e,i=t.nodeCallback,r=i===void 0?jf:i,s=t.pseudoElementsCallback,n=s===void 0?jf:s,o=t.observeMutationsRoot,l=o===void 0?v1:o;Wf=new X5e(function(d){if(!hE){var u=oo();pl(d).forEach(function(c){if(c.type==="childList"&&c.addedNodes.length>0&&!rde(c.addedNodes[0])&&(et.searchPseudoElements&&n(c.target),a(c.target)),c.type==="attributes"&&c.target.parentNode&&et.searchPseudoElements&&n([c.target],!0),c.type==="attributes"&&rde(c.target)&&~Kqt.indexOf(c.attributeName))if(c.attributeName==="class"&&RVt(c.target)){var f=qf(QD(c.target)),g=f.prefix,y=f.iconName;c.target.setAttribute(jD,g||u),y&&c.target.setAttribute(UD,y)}else OVt(c.target)&&r(c.target)})}}),Ns&&Wf.observe(l,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}}function jVt(){Wf&&Wf.disconnect()}function UVt(t){var e=t.getAttribute("style"),a=[];return e&&(a=e.split(";").reduce(function(i,r){var s=r.split(":"),n=s[0],o=s.slice(1);return n&&o.length>0&&(i[n]=o.join(":").trim()),i},{})),a}function WVt(t){var e=t.getAttribute("data-prefix"),a=t.getAttribute("data-icon"),i=t.innerText!==void 0?t.innerText.trim():"",r=qf(QD(t));return r.prefix||(r.prefix=oo()),e&&a&&(r.prefix=e,r.iconName=a),r.iconName&&r.prefix||(r.prefix&&i.length>0&&(r.iconName=gVt(r.prefix,t.innerText)||rE(r.prefix,B8e(t.innerText))),!r.iconName&&et.autoFetchSvg&&t.firstChild&&t.firstChild.nodeType===Node.TEXT_NODE&&(r.iconName=t.firstChild.data)),r}function GVt(t){var e=pl(t.attributes).reduce(function(a,i){return a.name!=="class"&&a.name!=="style"&&(a[i.name]=i.value),a},{});return e}function YVt(){return{iconName:null,prefix:null,transform:Vr,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}}}function dde(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{styleParser:!0},a=WVt(t),i=a.iconName,r=a.prefix,s=a.rest,n=GVt(t),o=sE("parseNodeAttributes",{},t),l=e.styleParser?UVt(t):[];return Ie({iconName:i,prefix:r,transform:Vr,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:s,styles:l,attributes:n}},o)}function ude(t){var e=et.autoReplaceSvg==="nest"?dde(t,{styleParser:!1}):dde(t);return~e.extra.classes.indexOf($8e)?lo("generateLayersText",t,e):lo("generateSvgReplacementMutation",t,e)}function XVt(){return[].concat(Gi(v8e),Gi(w8e))}function pde(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(!Ns)return Promise.resolve();var a=v1.documentElement.classList,i=function(c){return a.add("".concat(k8e,"-").concat(c))},r=function(c){return a.remove("".concat(k8e,"-").concat(c))},s=et.autoFetchSvg?XVt():J5e.concat(Object.keys(ZVt));s.includes("fa")||s.push("fa");var n=[".".concat($8e,":not([").concat(j0,"])")].concat(s.map(function(u){return".".concat(u,":not([").concat(j0,"])")})).join(", ");if(n.length===0)return Promise.resolve();var o=[];try{o=pl(t.querySelectorAll(n))}catch{}if(o.length>0)i("pending"),r("complete");else return Promise.resolve();var l=pE.begin("onTree"),d=o.reduce(function(u,c){try{var f=ude(c);f&&u.push(f)}catch(g){T8e||g.name==="MissingIcon"&&console.error(g)}return u},[]);return new Promise(function(u,c){Promise.all(d).then(function(f){ode(f,function(){i("active"),i("complete"),r("pending"),typeof e=="function"&&e(),l(),u()})}).catch(function(f){l(),c(f)})})}function QVt(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;ude(t).then(function(a){a&&ode([a],e)})}function KVt(t){return function(e){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=(e||{}).icon?e:nE(e||{}),r=a.mask;return r&&(r=(r||{}).icon?r:nE(r||{})),t(i,Ie(Ie({},a),{},{mask:r}))}}function sjt(t){var e=t.replace(hde,"");return B8e(Gi(e)[0]||"")}function njt(t){var e=t.getPropertyValue("font-feature-settings").includes("ss01"),a=t.getPropertyValue("content"),i=a.replace(hde,""),r=i.codePointAt(0),s=r>=fde[0]&&r<=fde[1],n=i.length===2?i[0]===i[1]:!1;return s||n||e}function ojt(t,e){var a=t.replace(/^['"]|['"]$/g,"").toLowerCase(),i=parseInt(e),r=isNaN(i)?"normal":i;return(mE[a]||{})[r]||rjt[a]}function gde(t,e){var a="".concat(Uqt).concat(e.replace(":","-"));return new Promise(function(i,r){if(t.getAttribute(a)!==null)return i();var s=pl(t.children),n=s.filter(function(S){return S.getAttribute(VD)===e})[0],o=so.getComputedStyle(t,e),l=o.getPropertyValue("font-family"),d=l.match(Xqt),u=o.getPropertyValue("font-weight"),c=o.getPropertyValue("content");if(n&&!d)return t.removeChild(n),i();if(d&&c!=="none"&&c!==""){var f=o.getPropertyValue("content"),g=ojt(l,u),y=sjt(f),b=d[0].startsWith("FontAwesome"),m=njt(o),x=rE(g,y),M=x;if(b){var k=bVt(y);k.iconName&&k.prefix&&(x=k.iconName,g=k.prefix)}if(x&&!m&&(!n||n.getAttribute(jD)!==g||n.getAttribute(UD)!==M)){t.setAttribute(a,M),n&&t.removeChild(n);var F=YVt(),T=F.extra;T.attributes[VD]=e,dE(x,g).then(function(S){var I=oE(Ie(Ie({},F),{},{icons:{main:S,mask:X8e()},prefix:g,iconName:M,extra:T,watchable:!0})),L=v1.createElementNS("http://www.w3.org/2000/svg","svg");e==="::before"?t.insertBefore(L,t.firstChild):t.appendChild(L),L.outerHTML=I.map(function(A){return P5(A)}).join(`
|
|
@@ -3872,7 +3872,7 @@ html\`
|
|
|
3872
3872
|
<h3>Header Buttons</h3>
|
|
3873
3873
|
<p>Modals can have optional header buttons for help and closing.</p>
|
|
3874
3874
|
<div class="button-grid">
|
|
3875
|
-
<dees-button @click=${()=>{
|
|
3875
|
+
<dees-button @click=${()=>{o1.createAndShow({heading:"With Help Button",showHelpButton:!0,onHelp:async()=>{let t=await o1.createAndShow({heading:"Help",width:"small",showCloseButton:!0,showHelpButton:!1,content:w`
|
|
3876
3876
|
<p>This is the help content for the modal.</p>
|
|
3877
3877
|
<p>You can provide context-specific help here.</p>
|
|
3878
3878
|
`,menuOptions:[{name:"Got it",action:async e=>e.destroy()}]})},content:w`
|
|
@@ -3880,16 +3880,16 @@ html\`
|
|
|
3880
3880
|
<p>The close button is also visible by default.</p>
|
|
3881
3881
|
`,menuOptions:[{name:"OK",action:async t=>t.destroy()}]})}}>With Help Button</dees-button>
|
|
3882
3882
|
|
|
3883
|
-
<dees-button @click=${()=>{
|
|
3883
|
+
<dees-button @click=${()=>{o1.createAndShow({heading:"No Close Button",showCloseButton:!1,content:w`
|
|
3884
3884
|
<p>This modal has no close button in the header.</p>
|
|
3885
3885
|
<p>You must use the action buttons or click outside to close it.</p>
|
|
3886
3886
|
`,menuOptions:[{name:"Close",action:async t=>t.destroy()}]})}}>No Close Button</dees-button>
|
|
3887
3887
|
|
|
3888
|
-
<dees-button @click=${()=>{
|
|
3888
|
+
<dees-button @click=${()=>{o1.createAndShow({heading:"Both Buttons",showHelpButton:!0,showCloseButton:!0,onHelp:()=>alert("Help clicked!"),content:w`
|
|
3889
3889
|
<p>This modal has both help and close buttons.</p>
|
|
3890
3890
|
`,menuOptions:[{name:"Done",action:async t=>t.destroy()}]})}}>Both Buttons</dees-button>
|
|
3891
3891
|
|
|
3892
|
-
<dees-button @click=${()=>{
|
|
3892
|
+
<dees-button @click=${()=>{o1.createAndShow({heading:"Clean Header",showCloseButton:!1,showHelpButton:!1,content:w`
|
|
3893
3893
|
<p>This modal has a clean header with no buttons.</p>
|
|
3894
3894
|
`,menuOptions:[{name:"Close",action:async t=>t.destroy()}]})}}>Clean Header</dees-button>
|
|
3895
3895
|
</div>
|
|
@@ -3899,11 +3899,11 @@ html\`
|
|
|
3899
3899
|
<h3>Modal Width Variations</h3>
|
|
3900
3900
|
<p>Modals can have different widths: small, medium, large, fullscreen, or custom pixel values.</p>
|
|
3901
3901
|
<div class="button-grid">
|
|
3902
|
-
<dees-button @click=${()=>{
|
|
3902
|
+
<dees-button @click=${()=>{o1.createAndShow({heading:"Small Modal",width:"small",content:w`
|
|
3903
3903
|
<p>This is a small modal with a width of 380px. Perfect for simple confirmations or brief messages.</p>
|
|
3904
3904
|
`,menuOptions:[{name:"Cancel",action:async t=>t.destroy()},{name:"OK",action:async t=>t.destroy()}]})}}>Small Modal</dees-button>
|
|
3905
3905
|
|
|
3906
|
-
<dees-button @click=${()=>{
|
|
3906
|
+
<dees-button @click=${()=>{o1.createAndShow({heading:"Medium Modal (Default)",width:"medium",content:w`
|
|
3907
3907
|
<dees-form>
|
|
3908
3908
|
<dees-input-text .label=${"Username"}></dees-input-text>
|
|
3909
3909
|
<dees-input-text .label=${"Email"} .inputType=${"email"}></dees-input-text>
|
|
@@ -3911,7 +3911,7 @@ html\`
|
|
|
3911
3911
|
</dees-form>
|
|
3912
3912
|
`,menuOptions:[{name:"Cancel",action:async t=>t.destroy()},{name:"Sign Up",action:async t=>t.destroy()}]})}}>Medium Modal</dees-button>
|
|
3913
3913
|
|
|
3914
|
-
<dees-button @click=${()=>{
|
|
3914
|
+
<dees-button @click=${()=>{o1.createAndShow({heading:"Large Modal",width:"large",content:w`
|
|
3915
3915
|
<h4>Wide Content Area</h4>
|
|
3916
3916
|
<p>This large modal is 800px wide and perfect for displaying more complex content like forms with multiple columns, tables, or detailed information.</p>
|
|
3917
3917
|
<div style="display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px;">
|
|
@@ -3922,7 +3922,7 @@ html\`
|
|
|
3922
3922
|
</div>
|
|
3923
3923
|
`,menuOptions:[{name:"Cancel",action:async t=>t.destroy()},{name:"Save",action:async t=>t.destroy()}]})}}>Large Modal</dees-button>
|
|
3924
3924
|
|
|
3925
|
-
<dees-button @click=${()=>{
|
|
3925
|
+
<dees-button @click=${()=>{o1.createAndShow({heading:"Fullscreen Editor",width:"fullscreen",showHelpButton:!0,onHelp:async()=>{alert("In a real app, this would show editor documentation")},content:w`
|
|
3926
3926
|
<h4>Fullscreen Experience with Header Controls</h4>
|
|
3927
3927
|
<p>This modal takes up almost the entire viewport with a 20px margin on all sides. The header buttons are particularly useful in fullscreen mode.</p>
|
|
3928
3928
|
<p>The content area can be as tall as needed and will scroll if necessary.</p>
|
|
@@ -3937,15 +3937,15 @@ html\`
|
|
|
3937
3937
|
<h3>Custom Width & Constraints</h3>
|
|
3938
3938
|
<p>You can also set custom pixel widths and min/max constraints.</p>
|
|
3939
3939
|
<div class="button-grid">
|
|
3940
|
-
<dees-button @click=${()=>{
|
|
3940
|
+
<dees-button @click=${()=>{o1.createAndShow({heading:"Custom Width (700px)",width:700,content:w`
|
|
3941
3941
|
<p>This modal has a custom width of exactly 700 pixels.</p>
|
|
3942
3942
|
`,menuOptions:[{name:"Close",action:async t=>t.destroy()}]})}}>Custom 700px</dees-button>
|
|
3943
3943
|
|
|
3944
|
-
<dees-button @click=${()=>{
|
|
3944
|
+
<dees-button @click=${()=>{o1.createAndShow({heading:"With Max Width",width:"large",maxWidth:600,content:w`
|
|
3945
3945
|
<p>This modal is set to 'large' but constrained by a maxWidth of 600px.</p>
|
|
3946
3946
|
`,menuOptions:[{name:"Got it",action:async t=>t.destroy()}]})}}>Max Width 600px</dees-button>
|
|
3947
3947
|
|
|
3948
|
-
<dees-button @click=${()=>{
|
|
3948
|
+
<dees-button @click=${()=>{o1.createAndShow({heading:"With Min Width",width:300,minWidth:400,content:w`
|
|
3949
3949
|
<p>This modal width is set to 300px but has a minWidth of 400px, so it will be 400px wide.</p>
|
|
3950
3950
|
`,menuOptions:[{name:"OK",action:async t=>t.destroy()}]})}}>Min Width 400px</dees-button>
|
|
3951
3951
|
</div>
|
|
@@ -3955,20 +3955,20 @@ html\`
|
|
|
3955
3955
|
<h3>Button Variations</h3>
|
|
3956
3956
|
<p>Modals can have different button configurations with proper spacing.</p>
|
|
3957
3957
|
<div class="button-grid">
|
|
3958
|
-
<dees-button @click=${()=>{
|
|
3958
|
+
<dees-button @click=${()=>{o1.createAndShow({heading:"Multiple Actions",content:w`
|
|
3959
3959
|
<p>This modal demonstrates multiple buttons with proper spacing between them.</p>
|
|
3960
3960
|
`,menuOptions:[{name:"Delete",action:async t=>t.destroy()},{name:"Cancel",action:async t=>t.destroy()},{name:"Save Changes",action:async t=>t.destroy()}]})}}>Three Buttons</dees-button>
|
|
3961
3961
|
|
|
3962
|
-
<dees-button @click=${()=>{
|
|
3962
|
+
<dees-button @click=${()=>{o1.createAndShow({heading:"Single Action",content:w`
|
|
3963
3963
|
<p>Sometimes you just need one button.</p>
|
|
3964
3964
|
`,menuOptions:[{name:"Acknowledge",action:async t=>t.destroy()}]})}}>Single Button</dees-button>
|
|
3965
3965
|
|
|
3966
|
-
<dees-button @click=${()=>{
|
|
3966
|
+
<dees-button @click=${()=>{o1.createAndShow({heading:"No Actions",content:w`
|
|
3967
3967
|
<p>This modal has no bottom buttons. Use the X button or click outside to close.</p>
|
|
3968
3968
|
<p style="margin-top: 16px; color: ${p.bdTheme("#666","#999")};">This is useful for informational modals that don't require user action.</p>
|
|
3969
3969
|
`,menuOptions:[]})}}>No Buttons</dees-button>
|
|
3970
3970
|
|
|
3971
|
-
<dees-button @click=${()=>{
|
|
3971
|
+
<dees-button @click=${()=>{o1.createAndShow({heading:"Long Button Labels",content:w`
|
|
3972
3972
|
<p>Testing button layout with longer labels.</p>
|
|
3973
3973
|
`,menuOptions:[{name:"Discard All Changes",action:async t=>t.destroy()},{name:"Save and Continue Editing",action:async t=>t.destroy()}]})}}>Long Labels</dees-button>
|
|
3974
3974
|
</div>
|
|
@@ -3977,13 +3977,13 @@ html\`
|
|
|
3977
3977
|
<div class="demo-section">
|
|
3978
3978
|
<h3>Responsive Behavior</h3>
|
|
3979
3979
|
<p>All modals automatically become full-width on mobile devices (< 768px viewport width) for better usability.</p>
|
|
3980
|
-
<dees-button @click=${()=>{
|
|
3980
|
+
<dees-button @click=${()=>{o1.createAndShow({heading:"Responsive Modal",width:"large",showHelpButton:!0,onHelp:()=>console.log("Help requested for responsive modal"),content:w`
|
|
3981
3981
|
<p>Resize your browser window to see how this modal adapts. On mobile viewports, it will automatically take the full width minus margins.</p>
|
|
3982
3982
|
<p>The header buttons remain accessible at all viewport sizes.</p>
|
|
3983
3983
|
`,menuOptions:[{name:"Close",action:async t=>t.destroy()}]})}}>Test Responsive</dees-button>
|
|
3984
3984
|
</div>
|
|
3985
3985
|
</div>
|
|
3986
|
-
`});var Xa,x1,
|
|
3986
|
+
`});var Xa,x1,o1,K0=v(()=>{Ci();d2();zi();fa();u9t();pe();Lt();Ps();Dt();Ve();Xa=function(t,e,a,i,r,s){function n(x){if(x!==void 0&&typeof x!="function")throw new TypeError("Function expected");return x}for(var o=i.kind,l=o==="getter"?"get":o==="setter"?"set":"value",d=!e&&t?i.static?t:t.prototype:null,u=e||(d?Object.getOwnPropertyDescriptor(d,i.name):{}),c,f=!1,g=a.length-1;g>=0;g--){var y={};for(var b in i)y[b]=b==="access"?{}:i[b];for(var b in i.access)y.access[b]=i.access[b];y.addInitializer=function(x){if(f)throw new TypeError("Cannot add initializers after decoration has completed");s.push(n(x||null))};var m=(0,a[g])(o==="accessor"?{get:u.get,set:u.set}:u[l],y);if(o==="accessor"){if(m===void 0)continue;if(m===null||typeof m!="object")throw new TypeError("Object expected");(c=n(m.get))&&(u.get=c),(c=n(m.set))&&(u.set=c),(c=n(m.init))&&r.unshift(c)}else(c=n(m))&&(o==="field"?r.unshift(c):u[l]=c)}d&&Object.defineProperty(d,i.name,u),f=!0},x1=function(t,e,a){for(var i=arguments.length>2,r=0;r<e.length;r++)a=i?e[r].call(t,a):e[r].call(t);return i?a:void 0},o1=(()=>{let t=[de("dees-modal")],e,a=[],i,r=xe,s,n=[],o=[],l,d=[],u=[],c,f=[],g=[],y,b=[],m=[],x,M=[],k=[],F,T=[],S=[],I,L=[],A=[],q,C=[],z=[],E,_=[],$=[],V,O=[],U=[],re,j=[],me=[],we,H=[],he=[];var _e=class extends r{static{i=this}static{let W=typeof Symbol=="function"&&Symbol.metadata?Object.create(r[Symbol.metadata]??null):void 0;s=[N({type:String})],l=[K({})],c=[K({})],y=[N({type:String})],x=[N({type:Number})],F=[N({type:Number})],I=[N({type:Boolean})],q=[N({type:Boolean})],E=[N({attribute:!1})],V=[N({type:Boolean})],re=[N({type:Number})],we=[K()],Xa(this,null,s,{kind:"accessor",name:"heading",static:!1,private:!1,access:{has:D=>"heading"in D,get:D=>D.heading,set:(D,R)=>{D.heading=R}},metadata:W},n,o),Xa(this,null,l,{kind:"accessor",name:"content",static:!1,private:!1,access:{has:D=>"content"in D,get:D=>D.content,set:(D,R)=>{D.content=R}},metadata:W},d,u),Xa(this,null,c,{kind:"accessor",name:"menuOptions",static:!1,private:!1,access:{has:D=>"menuOptions"in D,get:D=>D.menuOptions,set:(D,R)=>{D.menuOptions=R}},metadata:W},f,g),Xa(this,null,y,{kind:"accessor",name:"width",static:!1,private:!1,access:{has:D=>"width"in D,get:D=>D.width,set:(D,R)=>{D.width=R}},metadata:W},b,m),Xa(this,null,x,{kind:"accessor",name:"maxWidth",static:!1,private:!1,access:{has:D=>"maxWidth"in D,get:D=>D.maxWidth,set:(D,R)=>{D.maxWidth=R}},metadata:W},M,k),Xa(this,null,F,{kind:"accessor",name:"minWidth",static:!1,private:!1,access:{has:D=>"minWidth"in D,get:D=>D.minWidth,set:(D,R)=>{D.minWidth=R}},metadata:W},T,S),Xa(this,null,I,{kind:"accessor",name:"showCloseButton",static:!1,private:!1,access:{has:D=>"showCloseButton"in D,get:D=>D.showCloseButton,set:(D,R)=>{D.showCloseButton=R}},metadata:W},L,A),Xa(this,null,q,{kind:"accessor",name:"showHelpButton",static:!1,private:!1,access:{has:D=>"showHelpButton"in D,get:D=>D.showHelpButton,set:(D,R)=>{D.showHelpButton=R}},metadata:W},C,z),Xa(this,null,E,{kind:"accessor",name:"onHelp",static:!1,private:!1,access:{has:D=>"onHelp"in D,get:D=>D.onHelp,set:(D,R)=>{D.onHelp=R}},metadata:W},_,$),Xa(this,null,V,{kind:"accessor",name:"mobileFullscreen",static:!1,private:!1,access:{has:D=>"mobileFullscreen"in D,get:D=>D.mobileFullscreen,set:(D,R)=>{D.mobileFullscreen=R}},metadata:W},O,U),Xa(this,null,re,{kind:"accessor",name:"contentPadding",static:!1,private:!1,access:{has:D=>"contentPadding"in D,get:D=>D.contentPadding,set:(D,R)=>{D.contentPadding=R}},metadata:W},j,me),Xa(this,null,we,{kind:"accessor",name:"modalZIndex",static:!1,private:!1,access:{has:D=>"modalZIndex"in D,get:D=>D.modalZIndex,set:(D,R)=>{D.modalZIndex=R}},metadata:W},H,he),Xa(null,e={value:i},t,{kind:"class",name:i.name,metadata:W},null,a),_e=i=e.value,W&&Object.defineProperty(i,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:W})}static demo=d9t;static demoGroups=["Overlay"];static async createAndShow(W){let D=document.body,R=new _e;return R.heading=W.heading,R.content=W.content,R.menuOptions=W.menuOptions,W.width&&(R.width=W.width),W.maxWidth&&(R.maxWidth=W.maxWidth),W.minWidth&&(R.minWidth=W.minWidth),W.showCloseButton!==void 0&&(R.showCloseButton=W.showCloseButton),W.showHelpButton!==void 0&&(R.showHelpButton=W.showHelpButton),W.onHelp&&(R.onHelp=W.onHelp),W.mobileFullscreen!==void 0&&(R.mobileFullscreen=W.mobileFullscreen),W.contentPadding!==void 0&&(R.contentPadding=W.contentPadding),R.windowLayer=await Si.createAndShow({blur:!0}),R.windowLayer.addEventListener("click",async()=>{await R.destroy()}),D.append(R.windowLayer),D.append(R),R.modalZIndex=u1.getNextZIndex(),u1.register(R,R.modalZIndex),R}#e=x1(this,n,"");get heading(){return this.#e}set heading(W){this.#e=W}#t=(x1(this,o),x1(this,d,void 0));get content(){return this.#t}set content(W){this.#t=W}#a=(x1(this,u),x1(this,f,[]));get menuOptions(){return this.#a}set menuOptions(W){this.#a=W}#i=(x1(this,g),x1(this,b,"medium"));get width(){return this.#i}set width(W){this.#i=W}#r=(x1(this,m),x1(this,M,void 0));get maxWidth(){return this.#r}set maxWidth(W){this.#r=W}#s=(x1(this,k),x1(this,T,void 0));get minWidth(){return this.#s}set minWidth(W){this.#s=W}#n=(x1(this,S),x1(this,L,!0));get showCloseButton(){return this.#n}set showCloseButton(W){this.#n=W}#o=(x1(this,A),x1(this,C,!1));get showHelpButton(){return this.#o}set showHelpButton(W){this.#o=W}#l=(x1(this,z),x1(this,_,void 0));get onHelp(){return this.#l}set onHelp(W){this.#l=W}#c=(x1(this,$),x1(this,O,!1));get mobileFullscreen(){return this.#c}set mobileFullscreen(W){this.#c=W}#d=(x1(this,U),x1(this,j,16));get contentPadding(){return this.#d}set contentPadding(W){this.#d=W}#u=(x1(this,me),x1(this,H,1e3));get modalZIndex(){return this.#u}set modalZIndex(W){this.#u=W}constructor(){super()}static styles=[ke,p.defaultStyles,X`
|
|
3987
3987
|
/* TODO: Migrate hardcoded values to --dees-* CSS variables */
|
|
3988
3988
|
:host {
|
|
3989
3989
|
font-family: ${e1};
|
|
@@ -4225,7 +4225,7 @@ html\`
|
|
|
4225
4225
|
`:""}
|
|
4226
4226
|
</div>
|
|
4227
4227
|
</div>
|
|
4228
|
-
`}windowLayer=x1(this,he);async firstUpdated(W){super.firstUpdated(W),await(await this.domtoolsPromise).convenience.smartdelay.delayFor(30),this.shadowRoot.querySelector(".modal").classList.add("show")}async handleOutsideClick(W){W.stopPropagation();let D=this.shadowRoot.querySelector(".modalContainer");W.target===D&&await this.destroy()}async destroy(){let W=await this.domtoolsPromise;this.shadowRoot.querySelector(".modal").classList.add("predestroy"),await W.convenience.smartdelay.delayFor(200),document.body.removeChild(this),await this.windowLayer.destroy(),
|
|
4228
|
+
`}windowLayer=x1(this,he);async firstUpdated(W){super.firstUpdated(W),await(await this.domtoolsPromise).convenience.smartdelay.delayFor(30),this.shadowRoot.querySelector(".modal").classList.add("show")}async handleOutsideClick(W){W.stopPropagation();let D=this.shadowRoot.querySelector(".modalContainer");W.target===D&&await this.destroy()}async destroy(){let W=await this.domtoolsPromise;this.shadowRoot.querySelector(".modal").classList.add("predestroy"),await W.convenience.smartdelay.delayFor(200),document.body.removeChild(this),await this.windowLayer.destroy(),u1.unregister(this)}async handleHelp(){this.onHelp&&await this.onHelp()}static{x1(i,a)}};return _e=i})()});var p9t,h9t=v(()=>{pe();p9t=()=>w`
|
|
4229
4229
|
<dees-label .label=${"a label"}></dees-label>
|
|
4230
4230
|
`});var Hx,J0,f9t,Pl=v(()=>{d2();Ci();pe();h9t();Ve();Hx=function(t,e,a,i,r,s){function n(x){if(x!==void 0&&typeof x!="function")throw new TypeError("Function expected");return x}for(var o=i.kind,l=o==="getter"?"get":o==="setter"?"set":"value",d=!e&&t?i.static?t:t.prototype:null,u=e||(d?Object.getOwnPropertyDescriptor(d,i.name):{}),c,f=!1,g=a.length-1;g>=0;g--){var y={};for(var b in i)y[b]=b==="access"?{}:i[b];for(var b in i.access)y.access[b]=i.access[b];y.addInitializer=function(x){if(f)throw new TypeError("Cannot add initializers after decoration has completed");s.push(n(x||null))};var m=(0,a[g])(o==="accessor"?{get:u.get,set:u.set}:u[l],y);if(o==="accessor"){if(m===void 0)continue;if(m===null||typeof m!="object")throw new TypeError("Object expected");(c=n(m.get))&&(u.get=c),(c=n(m.set))&&(u.set=c),(c=n(m.init))&&r.unshift(c)}else(c=n(m))&&(o==="field"?r.unshift(c):u[l]=c)}d&&Object.defineProperty(d,i.name,u),f=!0},J0=function(t,e,a){for(var i=arguments.length>2,r=0;r<e.length;r++)a=i?e[r].call(t,a):e[r].call(t);return i?a:void 0},f9t=(()=>{let t=[de("dees-label")],e,a=[],i,r=xe,s,n=[],o=[],l,d=[],u=[],c,f=[],g=[];var y=class extends r{static{i=this}static{let b=typeof Symbol=="function"&&Symbol.metadata?Object.create(r[Symbol.metadata]??null):void 0;s=[N({type:String,reflect:!0})],l=[N({type:String,reflect:!0})],c=[N({type:Boolean,reflect:!0})],Hx(this,null,s,{kind:"accessor",name:"label",static:!1,private:!1,access:{has:m=>"label"in m,get:m=>m.label,set:(m,x)=>{m.label=x}},metadata:b},n,o),Hx(this,null,l,{kind:"accessor",name:"description",static:!1,private:!1,access:{has:m=>"description"in m,get:m=>m.description,set:(m,x)=>{m.description=x}},metadata:b},d,u),Hx(this,null,c,{kind:"accessor",name:"required",static:!1,private:!1,access:{has:m=>"required"in m,get:m=>m.required,set:(m,x)=>{m.required=x}},metadata:b},f,g),Hx(null,e={value:i},t,{kind:"class",name:i.name,metadata:b},null,a),y=i=e.value,b&&Object.defineProperty(i,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:b})}static demo=p9t;static demoGroups=["Layout","Input"];#e=J0(this,n,"");get label(){return this.#e}set label(b){this.#e=b}#t=(J0(this,o),J0(this,d,void 0));get description(){return this.#t}set description(b){this.#t=b}#a=(J0(this,u),J0(this,f,!1));get required(){return this.#a}set required(b){this.#a=b}static styles=[ke,p.defaultStyles,X`
|
|
4231
4231
|
/* TODO: Migrate hardcoded values to --dees-* CSS variables */
|
|
@@ -4542,7 +4542,7 @@ console.log(greeting);`}
|
|
|
4542
4542
|
</div>
|
|
4543
4543
|
</div>
|
|
4544
4544
|
</div>
|
|
4545
|
-
`}async firstUpdated(){this.editorElement=this.shadowRoot?.querySelector("dees-workspace-monaco"),this.editorElement&&this.editorElement.contentSubject.subscribe(C=>{this.value!==C&&(this.value=C,this.changeSubject.next(this))})}toggleLanguageDropdown(){this.isLanguageDropdownOpen=!this.isLanguageDropdownOpen}handleLanguageBlur(){setTimeout(()=>{this.isLanguageDropdownOpen=!1},150)}async selectLanguage(C,z){if(C.preventDefault(),this.language=z,this.isLanguageDropdownOpen=!1,this.editorElement){this.editorElement.language=z;let _=(await this.editorElement.editorDeferred.promise).getModel();_&&window.monaco.editor.setModelLanguage(_,z)}}toggleWordWrap(){this.wordWrap=this.wordWrap==="on"?"off":"on",this.updateEditorOption("wordWrap",this.wordWrap)}toggleLineNumbers(){this.showLineNumbers=!this.showLineNumbers,this.updateEditorOption("lineNumbers",this.showLineNumbers?"on":"off")}async updateEditorOption(C,z){this.editorElement&&(await this.editorElement.editorDeferred.promise).updateOptions({[C]:z})}async copyCode(){try{await navigator.clipboard.writeText(this.value),this.copySuccess=!0,setTimeout(()=>{this.copySuccess=!1},2e3)}catch(C){console.error("Failed to copy code:",C)}}handleContentChange(C){let z=C.detail;this.value!==z&&(this.value=z,this.changeSubject.next(this))}async openFullscreen(){let C=this.value,z=null,E=this.language,_=this.wordWrap,$=this.showLineNumbers,V=!1,O=!1,U=()=>{let we=T8.find(H=>H.key===E);return we?we.label:"TypeScript"},re=we=>{let H=we.shadowRoot?.querySelector(".modal-toolbar");if(!H)return;let he=H.querySelector(".language-button span");he&&(he.textContent=U());let _e=H.querySelector(".wrap-btn");_e&&_e.classList.toggle("active",_==="on");let W=H.querySelector(".lines-btn");W&&W.classList.toggle("active",$);let D=H.querySelector(".copy-btn"),R=D?.querySelector("dees-icon");D&&R&&(D.classList.toggle("success",O),R.icon=O?"lucide:Check":"lucide:Copy");let Z=H.querySelector(".language-dropdown");Z&&(Z.style.display=V?"block":"none")},j=await
|
|
4545
|
+
`}async firstUpdated(){this.editorElement=this.shadowRoot?.querySelector("dees-workspace-monaco"),this.editorElement&&this.editorElement.contentSubject.subscribe(C=>{this.value!==C&&(this.value=C,this.changeSubject.next(this))})}toggleLanguageDropdown(){this.isLanguageDropdownOpen=!this.isLanguageDropdownOpen}handleLanguageBlur(){setTimeout(()=>{this.isLanguageDropdownOpen=!1},150)}async selectLanguage(C,z){if(C.preventDefault(),this.language=z,this.isLanguageDropdownOpen=!1,this.editorElement){this.editorElement.language=z;let _=(await this.editorElement.editorDeferred.promise).getModel();_&&window.monaco.editor.setModelLanguage(_,z)}}toggleWordWrap(){this.wordWrap=this.wordWrap==="on"?"off":"on",this.updateEditorOption("wordWrap",this.wordWrap)}toggleLineNumbers(){this.showLineNumbers=!this.showLineNumbers,this.updateEditorOption("lineNumbers",this.showLineNumbers?"on":"off")}async updateEditorOption(C,z){this.editorElement&&(await this.editorElement.editorDeferred.promise).updateOptions({[C]:z})}async copyCode(){try{await navigator.clipboard.writeText(this.value),this.copySuccess=!0,setTimeout(()=>{this.copySuccess=!1},2e3)}catch(C){console.error("Failed to copy code:",C)}}handleContentChange(C){let z=C.detail;this.value!==z&&(this.value=z,this.changeSubject.next(this))}async openFullscreen(){let C=this.value,z=null,E=this.language,_=this.wordWrap,$=this.showLineNumbers,V=!1,O=!1,U=()=>{let we=T8.find(H=>H.key===E);return we?we.label:"TypeScript"},re=we=>{let H=we.shadowRoot?.querySelector(".modal-toolbar");if(!H)return;let he=H.querySelector(".language-button span");he&&(he.textContent=U());let _e=H.querySelector(".wrap-btn");_e&&_e.classList.toggle("active",_==="on");let W=H.querySelector(".lines-btn");W&&W.classList.toggle("active",$);let D=H.querySelector(".copy-btn"),R=D?.querySelector("dees-icon");D&&R&&(D.classList.toggle("success",O),R.icon=O?"lucide:Check":"lucide:Copy");let Z=H.querySelector(".language-dropdown");Z&&(Z.style.display=V?"block":"none")},j=await o1.createAndShow({heading:this.label||"Code Editor",width:"fullscreen",contentPadding:0,content:w`
|
|
4546
4546
|
<style>
|
|
4547
4547
|
.modal-toolbar {
|
|
4548
4548
|
display: flex;
|
|
@@ -9823,12 +9823,12 @@ console.log(greeting);`}
|
|
|
9823
9823
|
<div class="heading heading2">${this.heading2}</div>
|
|
9824
9824
|
</div>
|
|
9825
9825
|
<div class="headerActions">
|
|
9826
|
-
${Za.resolveExec(async()=>{let nt=[];for(let
|
|
9826
|
+
${Za.resolveExec(async()=>{let nt=[];for(let c1 of this.dataActions)c1.type?.includes("header")&&nt.push(w`<div
|
|
9827
9827
|
class="headerAction"
|
|
9828
|
-
@click=${()=>{
|
|
9828
|
+
@click=${()=>{c1.actionFunc({item:this.selectedDataRow,table:this})}}
|
|
9829
9829
|
>
|
|
9830
|
-
${
|
|
9831
|
-
${
|
|
9830
|
+
${c1.iconName?w`<dees-icon .iconSize=${14} .icon=${c1.iconName}></dees-icon>
|
|
9831
|
+
${c1.name}`:c1.name}
|
|
9832
9832
|
</div>`);return nt})}
|
|
9833
9833
|
</div>
|
|
9834
9834
|
</div>
|
|
@@ -9878,12 +9878,12 @@ console.log(greeting);`}
|
|
|
9878
9878
|
`:w``}
|
|
9879
9879
|
</th>
|
|
9880
9880
|
`:w``}
|
|
9881
|
-
${le.filter(nt=>!nt.hidden).map(nt=>{let
|
|
9881
|
+
${le.filter(nt=>!nt.hidden).map(nt=>{let c1=!!nt.sortable,la=this.getAriaSort(nt);return w`
|
|
9882
9882
|
<th
|
|
9883
9883
|
role="columnheader"
|
|
9884
9884
|
aria-sort=${la}
|
|
9885
|
-
style="${
|
|
9886
|
-
@click=${()=>
|
|
9885
|
+
style="${c1?"cursor: pointer;":""}"
|
|
9886
|
+
@click=${()=>c1?this.toggleSort(nt):null}
|
|
9887
9887
|
>
|
|
9888
9888
|
${nt.header??nt.key}
|
|
9889
9889
|
${this.renderSortIndicator(nt)}
|
|
@@ -9892,15 +9892,15 @@ console.log(greeting);`}
|
|
|
9892
9892
|
</tr>
|
|
9893
9893
|
${this.showColumnFilters?w`<tr class="filtersRow">
|
|
9894
9894
|
${this.selectionMode!=="none"?w`<th style="width:42px;"></th>`:w``}
|
|
9895
|
-
${le.filter(nt=>!nt.hidden).map(nt=>{let
|
|
9896
|
-
<input type="text" placeholder="Filter..." .value=${this.columnFilters[
|
|
9897
|
-
@input=${la=>this.setColumnFilter(
|
|
9895
|
+
${le.filter(nt=>!nt.hidden).map(nt=>{let c1=String(nt.key);return nt.filterable===!1?w`<th></th>`:w`<th>
|
|
9896
|
+
<input type="text" placeholder="Filter..." .value=${this.columnFilters[c1]||""}
|
|
9897
|
+
@input=${la=>this.setColumnFilter(c1,la.target.value)} />
|
|
9898
9898
|
</th>`})}
|
|
9899
9899
|
${(()=>{if(this.dataActions&&this.dataActions.length>0)return w` <th></th> `})()}
|
|
9900
9900
|
</tr>`:w``}
|
|
9901
9901
|
</thead>
|
|
9902
9902
|
<tbody>
|
|
9903
|
-
${O1.map((nt,
|
|
9903
|
+
${O1.map((nt,c1)=>{let la=tt=>tt.tagName==="TR"?tt:la(tt.parentElement);return w`
|
|
9904
9904
|
<tr
|
|
9905
9905
|
@click=${()=>{if(this.selectedDataRow=nt,this.selectionMode==="single"){let tt=this.getRowId(nt);this.selectedIds.clear(),this.selectedIds.add(tt),this.emitSelectionChange(),this.requestUpdate()}}}
|
|
9906
9906
|
@dragenter=${async tt=>{tt.preventDefault(),tt.stopPropagation();let G1=la(tt.target);setTimeout(()=>{G1.classList.add("hasAttachment")},0)}}
|
|
@@ -9916,7 +9916,7 @@ console.log(greeting);`}
|
|
|
9916
9916
|
@newValue=${tt=>{tt.stopPropagation(),this.setRowSelected(nt,tt.detail===!0)}}
|
|
9917
9917
|
></dees-input-checkbox>
|
|
9918
9918
|
</td>`:w``}
|
|
9919
|
-
${le.filter(tt=>!tt.hidden).map((tt,G1)=>{let ca=Ol(nt,tt,this.displayFunction),Ei=tt.renderer?tt.renderer(ca,nt,{rowIndex:
|
|
9919
|
+
${le.filter(tt=>!tt.hidden).map((tt,G1)=>{let ca=Ol(nt,tt,this.displayFunction),Ei=tt.renderer?tt.renderer(ca,nt,{rowIndex:c1,colIndex:G1,column:tt}):ca,lc=String(tt.key);return w`
|
|
9920
9920
|
<td
|
|
9921
9921
|
@dblclick=${yd=>{let cc=this.dataActions.find(xd=>xd.type?.includes("doubleClick"));this.editableFields.includes(lc)?this.handleCellEditing(yd,nt,lc):cc&&cc.actionFunc({item:nt,table:this})}}
|
|
9922
9922
|
>
|
|
@@ -9949,17 +9949,17 @@ console.log(greeting);`}
|
|
|
9949
9949
|
selected
|
|
9950
9950
|
</div>
|
|
9951
9951
|
<div class="footerActions">
|
|
9952
|
-
${Za.resolveExec(async()=>{let nt=[];for(let
|
|
9952
|
+
${Za.resolveExec(async()=>{let nt=[];for(let c1 of this.dataActions)c1.type?.includes("footer")&&nt.push(w`<div
|
|
9953
9953
|
class="footerAction"
|
|
9954
|
-
@click=${()=>{
|
|
9954
|
+
@click=${()=>{c1.actionFunc({item:this.selectedDataRow,table:this})}}
|
|
9955
9955
|
>
|
|
9956
|
-
${
|
|
9957
|
-
${
|
|
9956
|
+
${c1.iconName?w`<dees-icon .iconSize=${14} .icon=${c1.iconName}></dees-icon>
|
|
9957
|
+
${c1.name}`:c1.name}
|
|
9958
9958
|
</div>`);return nt})}
|
|
9959
9959
|
</div>
|
|
9960
9960
|
</div>
|
|
9961
9961
|
</div>
|
|
9962
|
-
`}async firstUpdated(){}async updated(Me){super.updated(Me),this.determineColumnWidths(),this.searchable&&(this.dataActions.find(De=>De.type?.includes("header")&&De.name==="Search")||(this.dataActions.unshift({name:"Search",iconName:"magnifyingGlass",type:["header"],actionFunc:async()=>{console.log("open search"),this.shadowRoot.querySelector(".searchGrid").classList.toggle("hidden")}}),console.log(this.dataActions),this.requestUpdate()),this.wireSearchInputs())}__debounceTimer;debounceRun(Me,le=200){this.__debounceTimer&&clearTimeout(this.__debounceTimer),this.__debounceTimer=setTimeout(Me,le)}wireSearchInputs(){let Me=this.shadowRoot?.querySelector(".searchGrid dees-input-text"),le=this.shadowRoot?.querySelector(".searchGrid dees-input-multitoggle");Me&&!this.__searchTextSub&&(this.__searchTextSub=Me.changeSubject.subscribe(De=>{let O1=De?.value??"";this.debounceRun(()=>{this.searchMode==="server"?this.dispatchEvent(new CustomEvent("searchRequest",{detail:{query:O1,mode:"server"},bubbles:!0})):this.setFilterText(O1)})})),le&&!this.__searchModeSub&&(this.__searchModeSub=le.changeSubject.subscribe(De=>{let O1=De?.selectedOption||De?.value||"table";if(O1==="table"||O1==="data"||O1==="server"){this.searchMode=O1;let nt=Me?.value??"";this.debounceRun(()=>{this.searchMode==="server"?this.dispatchEvent(new CustomEvent("searchRequest",{detail:{query:nt,mode:"server"},bubbles:!0})):this.setFilterText(nt)})}}))}async determineColumnWidths(){await(await this.domtoolsPromise).convenience.smartdelay.delayFor(0);let le=this.shadowRoot.querySelector("table");if(!le)return;let De=le.rows[0].cells,O1=async(nt,
|
|
9962
|
+
`}async firstUpdated(){}async updated(Me){super.updated(Me),this.determineColumnWidths(),this.searchable&&(this.dataActions.find(De=>De.type?.includes("header")&&De.name==="Search")||(this.dataActions.unshift({name:"Search",iconName:"magnifyingGlass",type:["header"],actionFunc:async()=>{console.log("open search"),this.shadowRoot.querySelector(".searchGrid").classList.toggle("hidden")}}),console.log(this.dataActions),this.requestUpdate()),this.wireSearchInputs())}__debounceTimer;debounceRun(Me,le=200){this.__debounceTimer&&clearTimeout(this.__debounceTimer),this.__debounceTimer=setTimeout(Me,le)}wireSearchInputs(){let Me=this.shadowRoot?.querySelector(".searchGrid dees-input-text"),le=this.shadowRoot?.querySelector(".searchGrid dees-input-multitoggle");Me&&!this.__searchTextSub&&(this.__searchTextSub=Me.changeSubject.subscribe(De=>{let O1=De?.value??"";this.debounceRun(()=>{this.searchMode==="server"?this.dispatchEvent(new CustomEvent("searchRequest",{detail:{query:O1,mode:"server"},bubbles:!0})):this.setFilterText(O1)})})),le&&!this.__searchModeSub&&(this.__searchModeSub=le.changeSubject.subscribe(De=>{let O1=De?.selectedOption||De?.value||"table";if(O1==="table"||O1==="data"||O1==="server"){this.searchMode=O1;let nt=Me?.value??"";this.debounceRun(()=>{this.searchMode==="server"?this.dispatchEvent(new CustomEvent("searchRequest",{detail:{query:nt,mode:"server"},bubbles:!0})):this.setFilterText(nt)})}}))}async determineColumnWidths(){await(await this.domtoolsPromise).convenience.smartdelay.delayFor(0);let le=this.shadowRoot.querySelector("table");if(!le)return;let De=le.rows[0].cells,O1=async(nt,c1=!1)=>{let la=He.defer(),tt=De[nt],G1=window.getComputedStyle(tt).width;if(tt.textContent.includes("Actions")){let ca=this.dataActions.filter(Ei=>Ei.type?.includes("inRow")).length*36;tt.style.width=`${Math.max(ca,68)}px`}else tt.style.width=G1;c1&&(requestAnimationFrame(()=>{la.resolve()}),await la.promise)};De[De.length-1].textContent.includes("Actions")&&await O1(De.length-1,!0);for(let nt=0;nt<De.length;nt++)De[nt].textContent.includes("Actions")||await O1(nt);le.style.tableLayout="fixed"}toggleSort(Me){let le=String(Me.key);this.sortKey!==le?(this.sortKey=le,this.sortDir="asc"):this.sortDir==="asc"?this.sortDir="desc":this.sortDir==="desc"?(this.sortDir=null,this.sortKey=void 0):this.sortDir="asc",this.dispatchEvent(new CustomEvent("sortChange",{detail:{key:this.sortKey,dir:this.sortDir},bubbles:!0})),this.requestUpdate()}getAriaSort(Me){return String(Me.key)!==this.sortKey||!this.sortDir?"none":this.sortDir==="asc"?"ascending":"descending"}renderSortIndicator(Me){return String(Me.key)!==this.sortKey||!this.sortDir?w``:w`<span style="margin-left:6px; opacity:0.7;">${this.sortDir==="asc"?"\u25B2":"\u25BC"}</span>`}setFilterText(Me){let le=this.filterText;this.filterText=Me??"",le!==this.filterText&&(this.dispatchEvent(new CustomEvent("filterChange",{detail:{text:this.filterText,columns:{...this.columnFilters}},bubbles:!0})),this.requestUpdate())}setColumnFilter(Me,le){this.columnFilters={...this.columnFilters,[Me]:le},this.dispatchEvent(new CustomEvent("filterChange",{detail:{text:this.filterText,columns:{...this.columnFilters}},bubbles:!0})),this.requestUpdate()}getRowId(Me){if(this.rowKey)return typeof this.rowKey=="function"?this.rowKey(Me):String(Me[this.rowKey]);let le=Me;return this._rowIdMap.has(le)||this._rowIdMap.set(le,String(++this._rowIdCounter)),this._rowIdMap.get(le)}isRowSelected(Me){return this.selectedIds.has(this.getRowId(Me))}toggleRowSelected(Me){let le=this.getRowId(Me);this.selectionMode==="single"?(this.selectedIds.clear(),this.selectedIds.add(le)):this.selectionMode==="multi"&&(this.selectedIds.has(le)?this.selectedIds.delete(le):this.selectedIds.add(le)),this.emitSelectionChange(),this.requestUpdate()}setRowSelected(Me,le){let De=this.getRowId(Me);this.selectionMode==="single"?(this.selectedIds.clear(),le&&this.selectedIds.add(De)):this.selectionMode==="multi"&&(le?this.selectedIds.add(De):this.selectedIds.delete(De)),this.emitSelectionChange(),this.requestUpdate()}areAllVisibleSelected(){let Me=this._lastViewData||[];if(Me.length===0)return!1;for(let le of Me)if(!this.selectedIds.has(this.getRowId(le)))return!1;return!0}isVisibleSelectionIndeterminate(){let Me=this._lastViewData||[];if(Me.length===0)return!1;let le=0;for(let De of Me)this.selectedIds.has(this.getRowId(De))&&le++;return le>0&&le<Me.length}setSelectVisible(Me){let le=this._lastViewData||[];if(Me)for(let De of le)this.selectedIds.add(this.getRowId(De));else for(let De of le)this.selectedIds.delete(this.getRowId(De));this.emitSelectionChange(),this.requestUpdate()}emitSelectionChange(){let Me=Array.from(this.selectedIds),le=this.data.filter(De=>this.selectedIds.has(this.getRowId(De)));this.dispatchEvent(new CustomEvent("selectionChange",{detail:{selectedIds:Me,selectedRows:le},bubbles:!0}))}getActionsForType(Me){let le=[];for(let De of this.dataActions)De.type?.includes(Me)&&le.push(De);return le}async handleCellEditing(Me,le,De){await this.domtoolsPromise;let O1=Me.target,nt=O1.style.color;O1.style.color="transparent";let la=this.displayFunction(le)[De]??le[De]??"",tt=document.createElement("input");tt.type="text",tt.value=la;let G1=async(ca=!0,Ei=!1)=>{ca&&tt.blur(),Ei&&(le[De]=tt.value,this.changeSubject.next(this)),tt.remove(),O1.style.color=nt,this.requestUpdate()};tt.addEventListener("blur",()=>{G1(!1,!1)}),tt.addEventListener("keydown",ca=>{ca.key==="Enter"&&G1(!0,!0)}),O1.appendChild(tt),tt.focus()}static{Xe(i,a)}};return oc=i})()});var pV=v(()=>{dV()});var hft,fft=v(()=>{pe();y1();hft=()=>w`
|
|
9963
9963
|
<style>
|
|
9964
9964
|
${X`
|
|
9965
9965
|
.demo-container {
|
|
@@ -13622,7 +13622,7 @@ ${JSON.stringify(s,null,2)}`,await st.plugins.smartdelay.delayFor(2e3),e.setStat
|
|
|
13622
13622
|
<slot name="content"></slot>
|
|
13623
13623
|
</div>
|
|
13624
13624
|
</div>
|
|
13625
|
-
`}handleTabSelect(T){this.selectedTab=T.detail.tab,this.dispatchEvent(new CustomEvent("tab-select",{detail:T.detail,bubbles:!0,composed:!0}))}handleTabClose(T){this.dispatchEvent(new CustomEvent("tab-close",{detail:T.detail,bubbles:!0,composed:!0}))}updated(T){super.updated(T),T.has("showTabs")&&(this.showTabs?this.removeAttribute("notabs"):this.setAttribute("notabs",""))}async firstUpdated(T){await super.firstUpdated(T),this.showTabs||this.setAttribute("notabs","");let S=this.shadowRoot.querySelector("dees-appui-tabs");S&&await S.updateComplete}constructor(){super(...arguments),ar(this,k)}static{ar(i,a)}};return F=i})()});var Et,qe,Pft,Nft=v(()=>{pe();Lt();po();zft();Ve();fV();Rq();Bq();mV();gV();vV();Eq();Et=function(t,e,a,i,r,s){function n(x){if(x!==void 0&&typeof x!="function")throw new TypeError("Function expected");return x}for(var o=i.kind,l=o==="getter"?"get":o==="setter"?"set":"value",d=!e&&t?i.static?t:t.prototype:null,u=e||(d?Object.getOwnPropertyDescriptor(d,i.name):{}),c,f=!1,g=a.length-1;g>=0;g--){var y={};for(var b in i)y[b]=b==="access"?{}:i[b];for(var b in i.access)y.access[b]=i.access[b];y.addInitializer=function(x){if(f)throw new TypeError("Cannot add initializers after decoration has completed");s.push(n(x||null))};var m=(0,a[g])(o==="accessor"?{get:u.get,set:u.set}:u[l],y);if(o==="accessor"){if(m===void 0)continue;if(m===null||typeof m!="object")throw new TypeError("Object expected");(c=n(m.get))&&(u.get=c),(c=n(m.set))&&(u.set=c),(c=n(m.init))&&r.unshift(c)}else(c=n(m))&&(o==="field"?r.unshift(c):u[l]=c)}d&&Object.defineProperty(d,i.name,u),f=!0},qe=function(t,e,a){for(var i=arguments.length>2,r=0;r<e.length;r++)a=i?e[r].call(t,a):e[r].call(t);return i?a:void 0},Pft=(()=>{let t=[de("dees-appui")],e,a=[],i,r=xe,s,n=[],o=[],l,d=[],u=[],c,f=[],g=[],y,b=[],m=[],x,M=[],k=[],F,T=[],S=[],I,L=[],A=[],q,C=[],z=[],E,_=[],$=[],V,O=[],U=[],re,j=[],me=[],we,H=[],he=[],_e,W=[],D=[],R,Z=[],Y=[],oe,ge=[],be=[],$e,B=[],P=[],J,fe=[],ce=[],Ce,ue=[],te=[],ze,Fe=[],We=[],ye,ee=[],ae=[],ve,Pe=[],je=[],wt,lt=[],$t=[],Xt,ie=[],se=[],Te,ct=[],ut=[],m1,li=[],ts=[],as,Ne=[],Ye=[],A1,S2=[],R2=[],oa,O2=[],dn=[],un,pn=[],nc=[],oc,Me=[],le=[],De,O1=[],nt=[],d1,la=[],tt=[],G1,ca=[],Ei=[],lc,yd=[],cc=[],xd,PU=[],NU=[];var IU=class extends r{static{i=this}static{let G=typeof Symbol=="function"&&Symbol.metadata?Object.create(r[Symbol.metadata]??null):void 0;s=[N({type:Array})],l=[N({type:String})],c=[N({type:String})],y=[N({type:Boolean})],x=[N({type:Object})],F=[N({type:Array})],I=[N({type:Boolean})],q=[N({type:String})],E=[N({type:String})],V=[N({type:Array})],re=[N({type:Array})],we=[N({type:Array})],_e=[N({type:Object})],R=[N({type:String})],oe=[N({type:Array})],$e=[N({type:Object})],J=[N({type:Boolean})],Ce=[N({type:Boolean})],ze=[N({type:Boolean})],ye=[N({type:Boolean})],ve=[N({type:Boolean})],wt=[N({type:Boolean})],Xt=[N({type:Number})],Te=[K()],m1=[K()],as=[N({type:Array})],A1=[N({type:Object})],oa=[K()],un=[K()],oc=[K()],De=[K()],d1=[K()],G1=[K()],lc=[K()],xd=[K()],Et(this,null,s,{kind:"accessor",name:"appbarMenuItems",static:!1,private:!1,access:{has:Q=>"appbarMenuItems"in Q,get:Q=>Q.appbarMenuItems,set:(Q,Se)=>{Q.appbarMenuItems=Se}},metadata:G},n,o),Et(this,null,l,{kind:"accessor",name:"appbarBreadcrumbs",static:!1,private:!1,access:{has:Q=>"appbarBreadcrumbs"in Q,get:Q=>Q.appbarBreadcrumbs,set:(Q,Se)=>{Q.appbarBreadcrumbs=Se}},metadata:G},d,u),Et(this,null,c,{kind:"accessor",name:"appbarBreadcrumbSeparator",static:!1,private:!1,access:{has:Q=>"appbarBreadcrumbSeparator"in Q,get:Q=>Q.appbarBreadcrumbSeparator,set:(Q,Se)=>{Q.appbarBreadcrumbSeparator=Se}},metadata:G},f,g),Et(this,null,y,{kind:"accessor",name:"appbarShowWindowControls",static:!1,private:!1,access:{has:Q=>"appbarShowWindowControls"in Q,get:Q=>Q.appbarShowWindowControls,set:(Q,Se)=>{Q.appbarShowWindowControls=Se}},metadata:G},b,m),Et(this,null,x,{kind:"accessor",name:"appbarUser",static:!1,private:!1,access:{has:Q=>"appbarUser"in Q,get:Q=>Q.appbarUser,set:(Q,Se)=>{Q.appbarUser=Se}},metadata:G},M,k),Et(this,null,F,{kind:"accessor",name:"appbarProfileMenuItems",static:!1,private:!1,access:{has:Q=>"appbarProfileMenuItems"in Q,get:Q=>Q.appbarProfileMenuItems,set:(Q,Se)=>{Q.appbarProfileMenuItems=Se}},metadata:G},T,S),Et(this,null,I,{kind:"accessor",name:"appbarShowSearch",static:!1,private:!1,access:{has:Q=>"appbarShowSearch"in Q,get:Q=>Q.appbarShowSearch,set:(Q,Se)=>{Q.appbarShowSearch=Se}},metadata:G},L,A),Et(this,null,q,{kind:"accessor",name:"mainmenuLogoIcon",static:!1,private:!1,access:{has:Q=>"mainmenuLogoIcon"in Q,get:Q=>Q.mainmenuLogoIcon,set:(Q,Se)=>{Q.mainmenuLogoIcon=Se}},metadata:G},C,z),Et(this,null,E,{kind:"accessor",name:"mainmenuLogoText",static:!1,private:!1,access:{has:Q=>"mainmenuLogoText"in Q,get:Q=>Q.mainmenuLogoText,set:(Q,Se)=>{Q.mainmenuLogoText=Se}},metadata:G},_,$),Et(this,null,V,{kind:"accessor",name:"mainmenuGroups",static:!1,private:!1,access:{has:Q=>"mainmenuGroups"in Q,get:Q=>Q.mainmenuGroups,set:(Q,Se)=>{Q.mainmenuGroups=Se}},metadata:G},O,U),Et(this,null,re,{kind:"accessor",name:"mainmenuBottomTabs",static:!1,private:!1,access:{has:Q=>"mainmenuBottomTabs"in Q,get:Q=>Q.mainmenuBottomTabs,set:(Q,Se)=>{Q.mainmenuBottomTabs=Se}},metadata:G},j,me),Et(this,null,we,{kind:"accessor",name:"mainmenuTabs",static:!1,private:!1,access:{has:Q=>"mainmenuTabs"in Q,get:Q=>Q.mainmenuTabs,set:(Q,Se)=>{Q.mainmenuTabs=Se}},metadata:G},H,he),Et(this,null,_e,{kind:"accessor",name:"mainmenuSelectedTab",static:!1,private:!1,access:{has:Q=>"mainmenuSelectedTab"in Q,get:Q=>Q.mainmenuSelectedTab,set:(Q,Se)=>{Q.mainmenuSelectedTab=Se}},metadata:G},W,D),Et(this,null,R,{kind:"accessor",name:"secondarymenuHeading",static:!1,private:!1,access:{has:Q=>"secondarymenuHeading"in Q,get:Q=>Q.secondarymenuHeading,set:(Q,Se)=>{Q.secondarymenuHeading=Se}},metadata:G},Z,Y),Et(this,null,oe,{kind:"accessor",name:"secondarymenuGroups",static:!1,private:!1,access:{has:Q=>"secondarymenuGroups"in Q,get:Q=>Q.secondarymenuGroups,set:(Q,Se)=>{Q.secondarymenuGroups=Se}},metadata:G},ge,be),Et(this,null,$e,{kind:"accessor",name:"secondarymenuSelectedItem",static:!1,private:!1,access:{has:Q=>"secondarymenuSelectedItem"in Q,get:Q=>Q.secondarymenuSelectedItem,set:(Q,Se)=>{Q.secondarymenuSelectedItem=Se}},metadata:G},B,P),Et(this,null,J,{kind:"accessor",name:"mainmenuCollapsed",static:!1,private:!1,access:{has:Q=>"mainmenuCollapsed"in Q,get:Q=>Q.mainmenuCollapsed,set:(Q,Se)=>{Q.mainmenuCollapsed=Se}},metadata:G},fe,ce),Et(this,null,Ce,{kind:"accessor",name:"secondarymenuCollapsed",static:!1,private:!1,access:{has:Q=>"secondarymenuCollapsed"in Q,get:Q=>Q.secondarymenuCollapsed,set:(Q,Se)=>{Q.secondarymenuCollapsed=Se}},metadata:G},ue,te),Et(this,null,ze,{kind:"accessor",name:"mainmenuVisible",static:!1,private:!1,access:{has:Q=>"mainmenuVisible"in Q,get:Q=>Q.mainmenuVisible,set:(Q,Se)=>{Q.mainmenuVisible=Se}},metadata:G},Fe,We),Et(this,null,ye,{kind:"accessor",name:"secondarymenuVisible",static:!1,private:!1,access:{has:Q=>"secondarymenuVisible"in Q,get:Q=>Q.secondarymenuVisible,set:(Q,Se)=>{Q.secondarymenuVisible=Se}},metadata:G},ee,ae),Et(this,null,ve,{kind:"accessor",name:"maincontentTabsVisible",static:!1,private:!1,access:{has:Q=>"maincontentTabsVisible"in Q,get:Q=>Q.maincontentTabsVisible,set:(Q,Se)=>{Q.maincontentTabsVisible=Se}},metadata:G},Pe,je),Et(this,null,wt,{kind:"accessor",name:"contentTabsAutoHide",static:!1,private:!1,access:{has:Q=>"contentTabsAutoHide"in Q,get:Q=>Q.contentTabsAutoHide,set:(Q,Se)=>{Q.contentTabsAutoHide=Se}},metadata:G},lt,$t),Et(this,null,Xt,{kind:"accessor",name:"contentTabsAutoHideThreshold",static:!1,private:!1,access:{has:Q=>"contentTabsAutoHideThreshold"in Q,get:Q=>Q.contentTabsAutoHideThreshold,set:(Q,Se)=>{Q.contentTabsAutoHideThreshold=Se}},metadata:G},ie,se),Et(this,null,Te,{kind:"accessor",name:"activityLogVisible",static:!1,private:!1,access:{has:Q=>"activityLogVisible"in Q,get:Q=>Q.activityLogVisible,set:(Q,Se)=>{Q.activityLogVisible=Se}},metadata:G},ct,ut),Et(this,null,m1,{kind:"accessor",name:"activityLogCount",static:!1,private:!1,access:{has:Q=>"activityLogCount"in Q,get:Q=>Q.activityLogCount,set:(Q,Se)=>{Q.activityLogCount=Se}},metadata:G},li,ts),Et(this,null,as,{kind:"accessor",name:"maincontentTabs",static:!1,private:!1,access:{has:Q=>"maincontentTabs"in Q,get:Q=>Q.maincontentTabs,set:(Q,Se)=>{Q.maincontentTabs=Se}},metadata:G},Ne,Ye),Et(this,null,A1,{kind:"accessor",name:"maincontentSelectedTab",static:!1,private:!1,access:{has:Q=>"maincontentSelectedTab"in Q,get:Q=>Q.maincontentSelectedTab,set:(Q,Se)=>{Q.maincontentSelectedTab=Se}},metadata:G},S2,R2),Et(this,null,oa,{kind:"accessor",name:"appbar",static:!1,private:!1,access:{has:Q=>"appbar"in Q,get:Q=>Q.appbar,set:(Q,Se)=>{Q.appbar=Se}},metadata:G},O2,dn),Et(this,null,un,{kind:"accessor",name:"mainmenu",static:!1,private:!1,access:{has:Q=>"mainmenu"in Q,get:Q=>Q.mainmenu,set:(Q,Se)=>{Q.mainmenu=Se}},metadata:G},pn,nc),Et(this,null,oc,{kind:"accessor",name:"secondarymenu",static:!1,private:!1,access:{has:Q=>"secondarymenu"in Q,get:Q=>Q.secondarymenu,set:(Q,Se)=>{Q.secondarymenu=Se}},metadata:G},Me,le),Et(this,null,De,{kind:"accessor",name:"maincontent",static:!1,private:!1,access:{has:Q=>"maincontent"in Q,get:Q=>Q.maincontent,set:(Q,Se)=>{Q.maincontent=Se}},metadata:G},O1,nt),Et(this,null,d1,{kind:"accessor",name:"activitylogElement",static:!1,private:!1,access:{has:Q=>"activitylogElement"in Q,get:Q=>Q.activitylogElement,set:(Q,Se)=>{Q.activitylogElement=Se}},metadata:G},la,tt),Et(this,null,G1,{kind:"accessor",name:"bottombarElement",static:!1,private:!1,access:{has:Q=>"bottombarElement"in Q,get:Q=>Q.bottombarElement,set:(Q,Se)=>{Q.bottombarElement=Se}},metadata:G},ca,Ei),Et(this,null,lc,{kind:"accessor",name:"bottombarVisible",static:!1,private:!1,access:{has:Q=>"bottombarVisible"in Q,get:Q=>Q.bottombarVisible,set:(Q,Se)=>{Q.bottombarVisible=Se}},metadata:G},yd,cc),Et(this,null,xd,{kind:"accessor",name:"currentView",static:!1,private:!1,access:{has:Q=>"currentView"in Q,get:Q=>Q.currentView,set:(Q,Se)=>{Q.currentView=Se}},metadata:G},PU,NU),Et(null,e={value:i},t,{kind:"class",name:i.name,metadata:G},null,a),IU=i=e.value,G&&Object.defineProperty(i,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:G})}static demo=Mft;static demoGroups=["App UI"];viewLifecycle$=new zt.smartrx.rxjs.Subject;viewChanged$=new zt.smartrx.rxjs.Subject;#e=qe(this,n,[]);get appbarMenuItems(){return this.#e}set appbarMenuItems(G){this.#e=G}#t=(qe(this,o),qe(this,d,""));get appbarBreadcrumbs(){return this.#t}set appbarBreadcrumbs(G){this.#t=G}#a=(qe(this,u),qe(this,f," > "));get appbarBreadcrumbSeparator(){return this.#a}set appbarBreadcrumbSeparator(G){this.#a=G}#i=(qe(this,g),qe(this,b,!0));get appbarShowWindowControls(){return this.#i}set appbarShowWindowControls(G){this.#i=G}#r=(qe(this,m),qe(this,M,void 0));get appbarUser(){return this.#r}set appbarUser(G){this.#r=G}#s=(qe(this,k),qe(this,T,[]));get appbarProfileMenuItems(){return this.#s}set appbarProfileMenuItems(G){this.#s=G}#n=(qe(this,S),qe(this,L,!1));get appbarShowSearch(){return this.#n}set appbarShowSearch(G){this.#n=G}#o=(qe(this,A),qe(this,C,""));get mainmenuLogoIcon(){return this.#o}set mainmenuLogoIcon(G){this.#o=G}#l=(qe(this,z),qe(this,_,""));get mainmenuLogoText(){return this.#l}set mainmenuLogoText(G){this.#l=G}#c=(qe(this,$),qe(this,O,[]));get mainmenuGroups(){return this.#c}set mainmenuGroups(G){this.#c=G}#d=(qe(this,U),qe(this,j,[]));get mainmenuBottomTabs(){return this.#d}set mainmenuBottomTabs(G){this.#d=G}#u=(qe(this,me),qe(this,H,[]));get mainmenuTabs(){return this.#u}set mainmenuTabs(G){this.#u=G}#p=(qe(this,he),qe(this,W,void 0));get mainmenuSelectedTab(){return this.#p}set mainmenuSelectedTab(G){this.#p=G}#h=(qe(this,D),qe(this,Z,""));get secondarymenuHeading(){return this.#h}set secondarymenuHeading(G){this.#h=G}#f=(qe(this,Y),qe(this,ge,[]));get secondarymenuGroups(){return this.#f}set secondarymenuGroups(G){this.#f=G}#m=(qe(this,be),qe(this,B,void 0));get secondarymenuSelectedItem(){return this.#m}set secondarymenuSelectedItem(G){this.#m=G}#g=(qe(this,P),qe(this,fe,!1));get mainmenuCollapsed(){return this.#g}set mainmenuCollapsed(G){this.#g=G}#b=(qe(this,ce),qe(this,ue,!1));get secondarymenuCollapsed(){return this.#b}set secondarymenuCollapsed(G){this.#b=G}#v=(qe(this,te),qe(this,Fe,!0));get mainmenuVisible(){return this.#v}set mainmenuVisible(G){this.#v=G}#y=(qe(this,We),qe(this,ee,!0));get secondarymenuVisible(){return this.#y}set secondarymenuVisible(G){this.#y=G}#x=(qe(this,ae),qe(this,Pe,!0));get maincontentTabsVisible(){return this.#x}set maincontentTabsVisible(G){this.#x=G}#w=(qe(this,je),qe(this,lt,!1));get contentTabsAutoHide(){return this.#w}set contentTabsAutoHide(G){this.#w=G}#M=(qe(this,$t),qe(this,ie,0));get contentTabsAutoHideThreshold(){return this.#M}set contentTabsAutoHideThreshold(G){this.#M=G}#z=(qe(this,se),qe(this,ct,!1));get activityLogVisible(){return this.#z}set activityLogVisible(G){this.#z=G}#S=(qe(this,ut),qe(this,li,0));get activityLogCount(){return this.#S}set activityLogCount(G){this.#S=G}#k=(qe(this,ts),qe(this,Ne,[]));get maincontentTabs(){return this.#k}set maincontentTabs(G){this.#k=G}#C=(qe(this,Ye),qe(this,S2,void 0));get maincontentSelectedTab(){return this.#C}set maincontentSelectedTab(G){this.#C=G}#T=(qe(this,R2),qe(this,O2,void 0));get appbar(){return this.#T}set appbar(G){this.#T=G}#_=(qe(this,dn),qe(this,pn,void 0));get mainmenu(){return this.#_}set mainmenu(G){this.#_=G}#L=(qe(this,nc),qe(this,Me,void 0));get secondarymenu(){return this.#L}set secondarymenu(G){this.#L=G}#$=(qe(this,le),qe(this,O1,void 0));get maincontent(){return this.#$}set maincontent(G){this.#$=G}#A=(qe(this,nt),qe(this,la,void 0));get activitylogElement(){return this.#A}set activitylogElement(G){this.#A=G}#D=(qe(this,tt),qe(this,ca,void 0));get bottombarElement(){return this.#D}set bottombarElement(G){this.#D=G}#E=(qe(this,Ei),qe(this,yd,!0));get bottombarVisible(){return this.#E}set bottombarVisible(G){this.#E=G}#P=(qe(this,cc),qe(this,PU,void 0));get currentView(){return this.#P}set currentView(G){this.#P=G}viewRegistry=(qe(this,NU),new A8);routerCleanup=null;searchCallback=null;static styles=[ke,p.defaultStyles,X`
|
|
13625
|
+
`}handleTabSelect(T){this.selectedTab=T.detail.tab,this.dispatchEvent(new CustomEvent("tab-select",{detail:T.detail,bubbles:!0,composed:!0}))}handleTabClose(T){this.dispatchEvent(new CustomEvent("tab-close",{detail:T.detail,bubbles:!0,composed:!0}))}updated(T){super.updated(T),T.has("showTabs")&&(this.showTabs?this.removeAttribute("notabs"):this.setAttribute("notabs",""))}async firstUpdated(T){await super.firstUpdated(T),this.showTabs||this.setAttribute("notabs","");let S=this.shadowRoot.querySelector("dees-appui-tabs");S&&await S.updateComplete}constructor(){super(...arguments),ar(this,k)}static{ar(i,a)}};return F=i})()});var Et,qe,Pft,Nft=v(()=>{pe();Lt();po();zft();Ve();fV();Rq();Bq();mV();gV();vV();Eq();Et=function(t,e,a,i,r,s){function n(x){if(x!==void 0&&typeof x!="function")throw new TypeError("Function expected");return x}for(var o=i.kind,l=o==="getter"?"get":o==="setter"?"set":"value",d=!e&&t?i.static?t:t.prototype:null,u=e||(d?Object.getOwnPropertyDescriptor(d,i.name):{}),c,f=!1,g=a.length-1;g>=0;g--){var y={};for(var b in i)y[b]=b==="access"?{}:i[b];for(var b in i.access)y.access[b]=i.access[b];y.addInitializer=function(x){if(f)throw new TypeError("Cannot add initializers after decoration has completed");s.push(n(x||null))};var m=(0,a[g])(o==="accessor"?{get:u.get,set:u.set}:u[l],y);if(o==="accessor"){if(m===void 0)continue;if(m===null||typeof m!="object")throw new TypeError("Object expected");(c=n(m.get))&&(u.get=c),(c=n(m.set))&&(u.set=c),(c=n(m.init))&&r.unshift(c)}else(c=n(m))&&(o==="field"?r.unshift(c):u[l]=c)}d&&Object.defineProperty(d,i.name,u),f=!0},qe=function(t,e,a){for(var i=arguments.length>2,r=0;r<e.length;r++)a=i?e[r].call(t,a):e[r].call(t);return i?a:void 0},Pft=(()=>{let t=[de("dees-appui")],e,a=[],i,r=xe,s,n=[],o=[],l,d=[],u=[],c,f=[],g=[],y,b=[],m=[],x,M=[],k=[],F,T=[],S=[],I,L=[],A=[],q,C=[],z=[],E,_=[],$=[],V,O=[],U=[],re,j=[],me=[],we,H=[],he=[],_e,W=[],D=[],R,Z=[],Y=[],oe,ge=[],be=[],$e,B=[],P=[],J,fe=[],ce=[],Ce,ue=[],te=[],ze,Fe=[],We=[],ye,ee=[],ae=[],ve,Pe=[],je=[],wt,lt=[],$t=[],Xt,ie=[],se=[],Te,ct=[],ut=[],m1,li=[],ts=[],as,Ne=[],Ye=[],A1,S2=[],R2=[],oa,O2=[],dn=[],un,pn=[],nc=[],oc,Me=[],le=[],De,O1=[],nt=[],c1,la=[],tt=[],G1,ca=[],Ei=[],lc,yd=[],cc=[],xd,PU=[],NU=[];var IU=class extends r{static{i=this}static{let G=typeof Symbol=="function"&&Symbol.metadata?Object.create(r[Symbol.metadata]??null):void 0;s=[N({type:Array})],l=[N({type:String})],c=[N({type:String})],y=[N({type:Boolean})],x=[N({type:Object})],F=[N({type:Array})],I=[N({type:Boolean})],q=[N({type:String})],E=[N({type:String})],V=[N({type:Array})],re=[N({type:Array})],we=[N({type:Array})],_e=[N({type:Object})],R=[N({type:String})],oe=[N({type:Array})],$e=[N({type:Object})],J=[N({type:Boolean})],Ce=[N({type:Boolean})],ze=[N({type:Boolean})],ye=[N({type:Boolean})],ve=[N({type:Boolean})],wt=[N({type:Boolean})],Xt=[N({type:Number})],Te=[K()],m1=[K()],as=[N({type:Array})],A1=[N({type:Object})],oa=[K()],un=[K()],oc=[K()],De=[K()],c1=[K()],G1=[K()],lc=[K()],xd=[K()],Et(this,null,s,{kind:"accessor",name:"appbarMenuItems",static:!1,private:!1,access:{has:Q=>"appbarMenuItems"in Q,get:Q=>Q.appbarMenuItems,set:(Q,Se)=>{Q.appbarMenuItems=Se}},metadata:G},n,o),Et(this,null,l,{kind:"accessor",name:"appbarBreadcrumbs",static:!1,private:!1,access:{has:Q=>"appbarBreadcrumbs"in Q,get:Q=>Q.appbarBreadcrumbs,set:(Q,Se)=>{Q.appbarBreadcrumbs=Se}},metadata:G},d,u),Et(this,null,c,{kind:"accessor",name:"appbarBreadcrumbSeparator",static:!1,private:!1,access:{has:Q=>"appbarBreadcrumbSeparator"in Q,get:Q=>Q.appbarBreadcrumbSeparator,set:(Q,Se)=>{Q.appbarBreadcrumbSeparator=Se}},metadata:G},f,g),Et(this,null,y,{kind:"accessor",name:"appbarShowWindowControls",static:!1,private:!1,access:{has:Q=>"appbarShowWindowControls"in Q,get:Q=>Q.appbarShowWindowControls,set:(Q,Se)=>{Q.appbarShowWindowControls=Se}},metadata:G},b,m),Et(this,null,x,{kind:"accessor",name:"appbarUser",static:!1,private:!1,access:{has:Q=>"appbarUser"in Q,get:Q=>Q.appbarUser,set:(Q,Se)=>{Q.appbarUser=Se}},metadata:G},M,k),Et(this,null,F,{kind:"accessor",name:"appbarProfileMenuItems",static:!1,private:!1,access:{has:Q=>"appbarProfileMenuItems"in Q,get:Q=>Q.appbarProfileMenuItems,set:(Q,Se)=>{Q.appbarProfileMenuItems=Se}},metadata:G},T,S),Et(this,null,I,{kind:"accessor",name:"appbarShowSearch",static:!1,private:!1,access:{has:Q=>"appbarShowSearch"in Q,get:Q=>Q.appbarShowSearch,set:(Q,Se)=>{Q.appbarShowSearch=Se}},metadata:G},L,A),Et(this,null,q,{kind:"accessor",name:"mainmenuLogoIcon",static:!1,private:!1,access:{has:Q=>"mainmenuLogoIcon"in Q,get:Q=>Q.mainmenuLogoIcon,set:(Q,Se)=>{Q.mainmenuLogoIcon=Se}},metadata:G},C,z),Et(this,null,E,{kind:"accessor",name:"mainmenuLogoText",static:!1,private:!1,access:{has:Q=>"mainmenuLogoText"in Q,get:Q=>Q.mainmenuLogoText,set:(Q,Se)=>{Q.mainmenuLogoText=Se}},metadata:G},_,$),Et(this,null,V,{kind:"accessor",name:"mainmenuGroups",static:!1,private:!1,access:{has:Q=>"mainmenuGroups"in Q,get:Q=>Q.mainmenuGroups,set:(Q,Se)=>{Q.mainmenuGroups=Se}},metadata:G},O,U),Et(this,null,re,{kind:"accessor",name:"mainmenuBottomTabs",static:!1,private:!1,access:{has:Q=>"mainmenuBottomTabs"in Q,get:Q=>Q.mainmenuBottomTabs,set:(Q,Se)=>{Q.mainmenuBottomTabs=Se}},metadata:G},j,me),Et(this,null,we,{kind:"accessor",name:"mainmenuTabs",static:!1,private:!1,access:{has:Q=>"mainmenuTabs"in Q,get:Q=>Q.mainmenuTabs,set:(Q,Se)=>{Q.mainmenuTabs=Se}},metadata:G},H,he),Et(this,null,_e,{kind:"accessor",name:"mainmenuSelectedTab",static:!1,private:!1,access:{has:Q=>"mainmenuSelectedTab"in Q,get:Q=>Q.mainmenuSelectedTab,set:(Q,Se)=>{Q.mainmenuSelectedTab=Se}},metadata:G},W,D),Et(this,null,R,{kind:"accessor",name:"secondarymenuHeading",static:!1,private:!1,access:{has:Q=>"secondarymenuHeading"in Q,get:Q=>Q.secondarymenuHeading,set:(Q,Se)=>{Q.secondarymenuHeading=Se}},metadata:G},Z,Y),Et(this,null,oe,{kind:"accessor",name:"secondarymenuGroups",static:!1,private:!1,access:{has:Q=>"secondarymenuGroups"in Q,get:Q=>Q.secondarymenuGroups,set:(Q,Se)=>{Q.secondarymenuGroups=Se}},metadata:G},ge,be),Et(this,null,$e,{kind:"accessor",name:"secondarymenuSelectedItem",static:!1,private:!1,access:{has:Q=>"secondarymenuSelectedItem"in Q,get:Q=>Q.secondarymenuSelectedItem,set:(Q,Se)=>{Q.secondarymenuSelectedItem=Se}},metadata:G},B,P),Et(this,null,J,{kind:"accessor",name:"mainmenuCollapsed",static:!1,private:!1,access:{has:Q=>"mainmenuCollapsed"in Q,get:Q=>Q.mainmenuCollapsed,set:(Q,Se)=>{Q.mainmenuCollapsed=Se}},metadata:G},fe,ce),Et(this,null,Ce,{kind:"accessor",name:"secondarymenuCollapsed",static:!1,private:!1,access:{has:Q=>"secondarymenuCollapsed"in Q,get:Q=>Q.secondarymenuCollapsed,set:(Q,Se)=>{Q.secondarymenuCollapsed=Se}},metadata:G},ue,te),Et(this,null,ze,{kind:"accessor",name:"mainmenuVisible",static:!1,private:!1,access:{has:Q=>"mainmenuVisible"in Q,get:Q=>Q.mainmenuVisible,set:(Q,Se)=>{Q.mainmenuVisible=Se}},metadata:G},Fe,We),Et(this,null,ye,{kind:"accessor",name:"secondarymenuVisible",static:!1,private:!1,access:{has:Q=>"secondarymenuVisible"in Q,get:Q=>Q.secondarymenuVisible,set:(Q,Se)=>{Q.secondarymenuVisible=Se}},metadata:G},ee,ae),Et(this,null,ve,{kind:"accessor",name:"maincontentTabsVisible",static:!1,private:!1,access:{has:Q=>"maincontentTabsVisible"in Q,get:Q=>Q.maincontentTabsVisible,set:(Q,Se)=>{Q.maincontentTabsVisible=Se}},metadata:G},Pe,je),Et(this,null,wt,{kind:"accessor",name:"contentTabsAutoHide",static:!1,private:!1,access:{has:Q=>"contentTabsAutoHide"in Q,get:Q=>Q.contentTabsAutoHide,set:(Q,Se)=>{Q.contentTabsAutoHide=Se}},metadata:G},lt,$t),Et(this,null,Xt,{kind:"accessor",name:"contentTabsAutoHideThreshold",static:!1,private:!1,access:{has:Q=>"contentTabsAutoHideThreshold"in Q,get:Q=>Q.contentTabsAutoHideThreshold,set:(Q,Se)=>{Q.contentTabsAutoHideThreshold=Se}},metadata:G},ie,se),Et(this,null,Te,{kind:"accessor",name:"activityLogVisible",static:!1,private:!1,access:{has:Q=>"activityLogVisible"in Q,get:Q=>Q.activityLogVisible,set:(Q,Se)=>{Q.activityLogVisible=Se}},metadata:G},ct,ut),Et(this,null,m1,{kind:"accessor",name:"activityLogCount",static:!1,private:!1,access:{has:Q=>"activityLogCount"in Q,get:Q=>Q.activityLogCount,set:(Q,Se)=>{Q.activityLogCount=Se}},metadata:G},li,ts),Et(this,null,as,{kind:"accessor",name:"maincontentTabs",static:!1,private:!1,access:{has:Q=>"maincontentTabs"in Q,get:Q=>Q.maincontentTabs,set:(Q,Se)=>{Q.maincontentTabs=Se}},metadata:G},Ne,Ye),Et(this,null,A1,{kind:"accessor",name:"maincontentSelectedTab",static:!1,private:!1,access:{has:Q=>"maincontentSelectedTab"in Q,get:Q=>Q.maincontentSelectedTab,set:(Q,Se)=>{Q.maincontentSelectedTab=Se}},metadata:G},S2,R2),Et(this,null,oa,{kind:"accessor",name:"appbar",static:!1,private:!1,access:{has:Q=>"appbar"in Q,get:Q=>Q.appbar,set:(Q,Se)=>{Q.appbar=Se}},metadata:G},O2,dn),Et(this,null,un,{kind:"accessor",name:"mainmenu",static:!1,private:!1,access:{has:Q=>"mainmenu"in Q,get:Q=>Q.mainmenu,set:(Q,Se)=>{Q.mainmenu=Se}},metadata:G},pn,nc),Et(this,null,oc,{kind:"accessor",name:"secondarymenu",static:!1,private:!1,access:{has:Q=>"secondarymenu"in Q,get:Q=>Q.secondarymenu,set:(Q,Se)=>{Q.secondarymenu=Se}},metadata:G},Me,le),Et(this,null,De,{kind:"accessor",name:"maincontent",static:!1,private:!1,access:{has:Q=>"maincontent"in Q,get:Q=>Q.maincontent,set:(Q,Se)=>{Q.maincontent=Se}},metadata:G},O1,nt),Et(this,null,c1,{kind:"accessor",name:"activitylogElement",static:!1,private:!1,access:{has:Q=>"activitylogElement"in Q,get:Q=>Q.activitylogElement,set:(Q,Se)=>{Q.activitylogElement=Se}},metadata:G},la,tt),Et(this,null,G1,{kind:"accessor",name:"bottombarElement",static:!1,private:!1,access:{has:Q=>"bottombarElement"in Q,get:Q=>Q.bottombarElement,set:(Q,Se)=>{Q.bottombarElement=Se}},metadata:G},ca,Ei),Et(this,null,lc,{kind:"accessor",name:"bottombarVisible",static:!1,private:!1,access:{has:Q=>"bottombarVisible"in Q,get:Q=>Q.bottombarVisible,set:(Q,Se)=>{Q.bottombarVisible=Se}},metadata:G},yd,cc),Et(this,null,xd,{kind:"accessor",name:"currentView",static:!1,private:!1,access:{has:Q=>"currentView"in Q,get:Q=>Q.currentView,set:(Q,Se)=>{Q.currentView=Se}},metadata:G},PU,NU),Et(null,e={value:i},t,{kind:"class",name:i.name,metadata:G},null,a),IU=i=e.value,G&&Object.defineProperty(i,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:G})}static demo=Mft;static demoGroups=["App UI"];viewLifecycle$=new zt.smartrx.rxjs.Subject;viewChanged$=new zt.smartrx.rxjs.Subject;#e=qe(this,n,[]);get appbarMenuItems(){return this.#e}set appbarMenuItems(G){this.#e=G}#t=(qe(this,o),qe(this,d,""));get appbarBreadcrumbs(){return this.#t}set appbarBreadcrumbs(G){this.#t=G}#a=(qe(this,u),qe(this,f," > "));get appbarBreadcrumbSeparator(){return this.#a}set appbarBreadcrumbSeparator(G){this.#a=G}#i=(qe(this,g),qe(this,b,!0));get appbarShowWindowControls(){return this.#i}set appbarShowWindowControls(G){this.#i=G}#r=(qe(this,m),qe(this,M,void 0));get appbarUser(){return this.#r}set appbarUser(G){this.#r=G}#s=(qe(this,k),qe(this,T,[]));get appbarProfileMenuItems(){return this.#s}set appbarProfileMenuItems(G){this.#s=G}#n=(qe(this,S),qe(this,L,!1));get appbarShowSearch(){return this.#n}set appbarShowSearch(G){this.#n=G}#o=(qe(this,A),qe(this,C,""));get mainmenuLogoIcon(){return this.#o}set mainmenuLogoIcon(G){this.#o=G}#l=(qe(this,z),qe(this,_,""));get mainmenuLogoText(){return this.#l}set mainmenuLogoText(G){this.#l=G}#c=(qe(this,$),qe(this,O,[]));get mainmenuGroups(){return this.#c}set mainmenuGroups(G){this.#c=G}#d=(qe(this,U),qe(this,j,[]));get mainmenuBottomTabs(){return this.#d}set mainmenuBottomTabs(G){this.#d=G}#u=(qe(this,me),qe(this,H,[]));get mainmenuTabs(){return this.#u}set mainmenuTabs(G){this.#u=G}#p=(qe(this,he),qe(this,W,void 0));get mainmenuSelectedTab(){return this.#p}set mainmenuSelectedTab(G){this.#p=G}#h=(qe(this,D),qe(this,Z,""));get secondarymenuHeading(){return this.#h}set secondarymenuHeading(G){this.#h=G}#f=(qe(this,Y),qe(this,ge,[]));get secondarymenuGroups(){return this.#f}set secondarymenuGroups(G){this.#f=G}#m=(qe(this,be),qe(this,B,void 0));get secondarymenuSelectedItem(){return this.#m}set secondarymenuSelectedItem(G){this.#m=G}#g=(qe(this,P),qe(this,fe,!1));get mainmenuCollapsed(){return this.#g}set mainmenuCollapsed(G){this.#g=G}#b=(qe(this,ce),qe(this,ue,!1));get secondarymenuCollapsed(){return this.#b}set secondarymenuCollapsed(G){this.#b=G}#v=(qe(this,te),qe(this,Fe,!0));get mainmenuVisible(){return this.#v}set mainmenuVisible(G){this.#v=G}#y=(qe(this,We),qe(this,ee,!0));get secondarymenuVisible(){return this.#y}set secondarymenuVisible(G){this.#y=G}#x=(qe(this,ae),qe(this,Pe,!0));get maincontentTabsVisible(){return this.#x}set maincontentTabsVisible(G){this.#x=G}#w=(qe(this,je),qe(this,lt,!1));get contentTabsAutoHide(){return this.#w}set contentTabsAutoHide(G){this.#w=G}#M=(qe(this,$t),qe(this,ie,0));get contentTabsAutoHideThreshold(){return this.#M}set contentTabsAutoHideThreshold(G){this.#M=G}#z=(qe(this,se),qe(this,ct,!1));get activityLogVisible(){return this.#z}set activityLogVisible(G){this.#z=G}#S=(qe(this,ut),qe(this,li,0));get activityLogCount(){return this.#S}set activityLogCount(G){this.#S=G}#k=(qe(this,ts),qe(this,Ne,[]));get maincontentTabs(){return this.#k}set maincontentTabs(G){this.#k=G}#C=(qe(this,Ye),qe(this,S2,void 0));get maincontentSelectedTab(){return this.#C}set maincontentSelectedTab(G){this.#C=G}#T=(qe(this,R2),qe(this,O2,void 0));get appbar(){return this.#T}set appbar(G){this.#T=G}#_=(qe(this,dn),qe(this,pn,void 0));get mainmenu(){return this.#_}set mainmenu(G){this.#_=G}#L=(qe(this,nc),qe(this,Me,void 0));get secondarymenu(){return this.#L}set secondarymenu(G){this.#L=G}#$=(qe(this,le),qe(this,O1,void 0));get maincontent(){return this.#$}set maincontent(G){this.#$=G}#A=(qe(this,nt),qe(this,la,void 0));get activitylogElement(){return this.#A}set activitylogElement(G){this.#A=G}#D=(qe(this,tt),qe(this,ca,void 0));get bottombarElement(){return this.#D}set bottombarElement(G){this.#D=G}#E=(qe(this,Ei),qe(this,yd,!0));get bottombarVisible(){return this.#E}set bottombarVisible(G){this.#E=G}#P=(qe(this,cc),qe(this,PU,void 0));get currentView(){return this.#P}set currentView(G){this.#P=G}viewRegistry=(qe(this,NU),new A8);routerCleanup=null;searchCallback=null;static styles=[ke,p.defaultStyles,X`
|
|
13626
13626
|
/* TODO: Migrate hardcoded values to --dees-* CSS variables */
|
|
13627
13627
|
:host {
|
|
13628
13628
|
position: absolute;
|
|
@@ -13930,7 +13930,7 @@ ${JSON.stringify(s,null,2)}`,await st.plugins.smartdelay.delayFor(2e3),e.setStat
|
|
|
13930
13930
|
`)}
|
|
13931
13931
|
</div>
|
|
13932
13932
|
</div>
|
|
13933
|
-
`}windowLayer;async show(){let b=await this.domtoolsPromise,m=this.shadowRoot.querySelector(".main");this.windowLayer?(document.body.append(this.windowLayer),await this.windowLayer.show()):(this.windowLayer=await Si.createAndShow({blur:!0}),this.windowLayer.addEventListener("click",()=>{this.hide()})),this.mobileNavZIndex=
|
|
13933
|
+
`}windowLayer;async show(){let b=await this.domtoolsPromise,m=this.shadowRoot.querySelector(".main");this.windowLayer?(document.body.append(this.windowLayer),await this.windowLayer.show()):(this.windowLayer=await Si.createAndShow({blur:!0}),this.windowLayer.addEventListener("click",()=>{this.hide()})),this.mobileNavZIndex=u1.getNextZIndex(),u1.register(this,this.mobileNavZIndex),await b.convenience.smartdelay.delayFor(10),m.classList.add("show")}async hide(){let b=await this.domtoolsPromise;this.shadowRoot.querySelector(".main").classList.remove("show"),u1.unregister(this),this.windowLayer&&await this.windowLayer.destroy()}async disconnectedCallback(){super.disconnectedCallback(),u1.unregister(this),this.windowLayer&&await this.windowLayer.destroy()}static{l4(i,a)}};return y=i})()});var jft=v(()=>{Vft()});var Uft=v(()=>{Nht();Rq();e9t();Ift();Fft();Rft();Oft();Bft();Hft();jft()});var Wft=v(()=>{ho()});var Gft,yV,Yft,Zft=v(()=>{pe();Gft=function(t,e,a,i,r,s){function n(x){if(x!==void 0&&typeof x!="function")throw new TypeError("Function expected");return x}for(var o=i.kind,l=o==="getter"?"get":o==="setter"?"set":"value",d=!e&&t?i.static?t:t.prototype:null,u=e||(d?Object.getOwnPropertyDescriptor(d,i.name):{}),c,f=!1,g=a.length-1;g>=0;g--){var y={};for(var b in i)y[b]=b==="access"?{}:i[b];for(var b in i.access)y.access[b]=i.access[b];y.addInitializer=function(x){if(f)throw new TypeError("Cannot add initializers after decoration has completed");s.push(n(x||null))};var m=(0,a[g])(o==="accessor"?{get:u.get,set:u.set}:u[l],y);if(o==="accessor"){if(m===void 0)continue;if(m===null||typeof m!="object")throw new TypeError("Object expected");(c=n(m.get))&&(u.get=c),(c=n(m.set))&&(u.set=c),(c=n(m.init))&&r.unshift(c)}else(c=n(m))&&(o==="field"?r.unshift(c):u[l]=c)}d&&Object.defineProperty(d,i.name,u),f=!0},yV=function(t,e,a){for(var i=arguments.length>2,r=0;r<e.length;r++)a=i?e[r].call(t,a):e[r].call(t);return i?a:void 0},Yft=(()=>{let t=[de("dees-button-exit")],e,a=[],i,r=xe,s,n=[],o=[];var l=class extends r{static{i=this}static{let d=typeof Symbol=="function"&&Symbol.metadata?Object.create(r[Symbol.metadata]??null):void 0;s=[N({type:Number})],Gft(this,null,s,{kind:"accessor",name:"size",static:!1,private:!1,access:{has:u=>"size"in u,get:u=>u.size,set:(u,c)=>{u.size=c}},metadata:d},n,o),Gft(null,e={value:i},t,{kind:"class",name:i.name,metadata:d},null,a),l=i=e.value,d&&Object.defineProperty(i,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:d})}static demo=()=>w`
|
|
13934
13934
|
<dees-button-exit></dees-button-exit>
|
|
13935
13935
|
`;static demoGroups=["Button"];#e=yV(this,n,24);get size(){return this.#e}set size(d){this.#e=d}styles=(yV(this,o),[p.defaultStyles,X`
|
|
13936
13936
|
|
|
@@ -18272,7 +18272,7 @@ POST /api/v2/batch
|
|
|
18272
18272
|
</div>
|
|
18273
18273
|
`)}
|
|
18274
18274
|
</div>
|
|
18275
|
-
`}getFilteredMenuItems(){return W1.getSlashMenuItems().filter(S=>this.filter===""||S.label.toLowerCase().includes(this.filter.toLowerCase()))}selectItem(T){this.callback&&this.callback(T),this.hide()}show(T,S){this.position=T,this.callback=S,this.filter="",this.selectedIndex=0,this.menuZIndex=
|
|
18275
|
+
`}getFilteredMenuItems(){return W1.getSlashMenuItems().filter(S=>this.filter===""||S.label.toLowerCase().includes(this.filter.toLowerCase()))}selectItem(T){this.callback&&this.callback(T),this.hide()}show(T,S){this.position=T,this.callback=S,this.filter="",this.selectedIndex=0,this.menuZIndex=u1.getNextZIndex(),u1.register(this,this.menuZIndex),this.style.zIndex=this.menuZIndex.toString(),this.visible=!0}hide(){this.visible=!1,this.callback=null,this.filter="",this.selectedIndex=0,u1.unregister(this)}updateFilter(T){this.filter=T,this.selectedIndex=0}navigate(T){let S=this.getFilteredMenuItems();T==="down"?this.selectedIndex=(this.selectedIndex+1)%S.length:this.selectedIndex=this.selectedIndex===0?S.length-1:this.selectedIndex-1}selectCurrent(){let T=this.getFilteredMenuItems();T[this.selectedIndex]&&this.selectItem(T[this.selectedIndex].type)}firstUpdated(){this.shadowRoot?.addEventListener("mousedown",T=>{let S=this.shadowRoot?.querySelector(".slash-menu");S&&S.contains(T.target)&&(T.preventDefault(),T.stopPropagation())}),this.shadowRoot?.addEventListener("click",T=>{let I=T.target.closest(".slash-menu-item");if(I){T.preventDefault(),T.stopPropagation();let L=I.getAttribute("data-item-type");L&&this.selectItem(L)}}),this.shadowRoot?.addEventListener("mouseenter",T=>{let I=T.target.closest(".slash-menu-item");if(I){let L=parseInt(I.getAttribute("data-item-index")||"0",10);this.selectedIndex=L}},!0),this.shadowRoot?.addEventListener("focus",T=>{let S=this.shadowRoot?.querySelector(".slash-menu");S&&S.contains(T.target)&&(T.preventDefault(),T.stopPropagation())},!0)}static{rr(i,a)}};return F=i})()});var Be,Gr=v(()=>{Be=class{static getSelectionInfo(...e){let a=window.getSelection();if(console.log("WysiwygSelection.getSelectionInfo - selection:",a,"rangeCount:",a?.rangeCount),!a)return null;if("getComposedRanges"in a&&typeof a.getComposedRanges=="function"){console.log("Using getComposedRanges with",e.length,"shadow roots");try{let i=a.getComposedRanges({shadowRoots:e});if(console.log("getComposedRanges returned",i.length,"ranges"),i.length>0){let r=i[0];return{startContainer:r.startContainer,startOffset:r.startOffset,endContainer:r.endContainer,endOffset:r.endOffset,collapsed:r.collapsed}}}catch(i){console.warn("getComposedRanges failed, falling back to getRangeAt:",i)}}else console.log("getComposedRanges not available, using fallback");if(a.rangeCount>0){let i=a.getRangeAt(0);return{startContainer:i.startContainer,startOffset:i.startOffset,endContainer:i.endContainer,endOffset:i.endOffset,collapsed:i.collapsed}}return null}static isSelectionInElement(e,a){let i=a?this.getSelectionInfo(a):this.getSelectionInfo();return i?e.contains(i.startContainer)||e.contains(i.endContainer):!1}static getSelectedText(){let e=window.getSelection();return e?e.toString():""}static createRangeFromInfo(e){let a=document.createRange();return a.setStart(e.startContainer,e.startOffset),a.setEnd(e.endContainer,e.endOffset),a}static setSelectionFromRange(e){let a=window.getSelection();a&&(a.removeAllRanges(),a.addRange(e))}static getCursorPositionInElement(e,...a){let i=a.length>0?this.getSelectionInfo(...a):this.getSelectionInfo();if(!i||!i.collapsed)return null;try{let r=document.createRange();if(r.selectNodeContents(e),this.containsAcrossShadowDOM(e,i.startContainer))return r.setEnd(i.startContainer,i.startOffset),r.toString().length;{let n=e.textContent||"",o=i.startContainer.textContent||"";return i.startOffset===0?0:i.startOffset===o.length?n.length:(console.warn("Selection container not within element, using text matching fallback"),i.startOffset)}}catch(r){return console.warn("Failed to get cursor position:",r),null}}static getCursorPositionFromPoint(e,a,i,...r){if("caretPositionFromPoint"in document&&document.caretPositionFromPoint){let s=null;try{s=document.caretPositionFromPoint(e,a,...r)}catch{s=document.caretPositionFromPoint(e,a)}if(s&&i.contains(s.offsetNode))return this.getOffsetInElement(s.offsetNode,s.offset,i)}if("caretRangeFromPoint"in document){let s=document.caretRangeFromPoint(e,a);if(s&&i.contains(s.startContainer))return this.getOffsetInElement(s.startContainer,s.startOffset,i)}return null}static getOffsetInElement(e,a,i){let r=0,s=!1,n=document.createTreeWalker(i,NodeFilter.SHOW_TEXT,null),o;for(;o=n.nextNode();)if(o===e){r+=a,s=!0;break}else r+=o.textContent?.length||0;return s?r:0}static setCursorPosition(e,a){let i=document.createTreeWalker(e,NodeFilter.SHOW_TEXT,null),r=0,s=null,n=0;for(;i.nextNode();){let o=i.currentNode,l=o.textContent?.length||0;if(r+l>=a){s=o,n=a-r;break}r+=l}if(s){let o=document.createRange();o.setStart(s,n),o.collapse(!0),this.setSelectionFromRange(o)}}static containsAcrossShadowDOM(e,a){if(!e||!a)return!1;let i=a;for(;i;){if(i===e)return!0;if(i.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&i.host){let r=i;if(r.contains(e))return!1;i=r.host}else i=i.parentNode}return!1}}});var Ws,DV=v(()=>{pe();Gr();Ws=class{static formatButtons=[{command:"bold",icon:"B",label:"Bold",shortcut:"\u2318B"},{command:"italic",icon:"I",label:"Italic",shortcut:"\u2318I"},{command:"underline",icon:"U",label:"Underline",shortcut:"\u2318U"},{command:"strikeThrough",icon:"S\u0336",label:"Strikethrough"},{command:"code",icon:"{ }",label:"Inline Code"},{command:"link",icon:"\u{1F517}",label:"Link",shortcut:"\u2318K"}];static renderFormattingMenu(e,a){return w`
|
|
18276
18276
|
<div
|
|
18277
18277
|
class="formatting-menu"
|
|
18278
18278
|
style="top: ${e.y}px; left: ${e.x}px;"
|
|
@@ -18384,7 +18384,7 @@ POST /api/v2/batch
|
|
|
18384
18384
|
</button>
|
|
18385
18385
|
`)}
|
|
18386
18386
|
</div>
|
|
18387
|
-
`):w``}applyFormat(b){this.callback&&this.callback(b),b==="link"&&this.hide()}show(b,m){console.log("FormattingMenu.show called:",{position:b,visible:this.visible}),this.position=b,this.callback=m,this.menuZIndex=
|
|
18387
|
+
`):w``}applyFormat(b){this.callback&&this.callback(b),b==="link"&&this.hide()}show(b,m){console.log("FormattingMenu.show called:",{position:b,visible:this.visible}),this.position=b,this.callback=m,this.menuZIndex=u1.getNextZIndex(),u1.register(this,this.menuZIndex),this.style.zIndex=this.menuZIndex.toString(),this.visible=!0}hide(){this.visible=!1,this.callback=null,u1.unregister(this)}updatePosition(b){this.position=b}firstUpdated(){this.shadowRoot?.addEventListener("mousedown",b=>{let m=this.shadowRoot?.querySelector(".formatting-menu");m&&m.contains(b.target)&&(b.preventDefault(),b.stopPropagation())}),this.shadowRoot?.addEventListener("click",b=>{let x=b.target.closest(".format-button");if(x){b.preventDefault(),b.stopPropagation();let M=x.getAttribute("data-command");M&&this.applyFormat(M)}}),this.shadowRoot?.addEventListener("focus",b=>{let m=this.shadowRoot?.querySelector(".formatting-menu");m&&m.contains(b.target)&&(b.preventDefault(),b.stopPropagation())},!0)}static{h4(i,a)}};return y=i})()});var ql=v(()=>{pe();Fa();AV();EV()});var I8,bw=v(()=>{I8=["JavaScript","TypeScript","Python","Java","C++","C#","Go","Rust","HTML","CSS","SQL","Shell","JSON","YAML","Markdown","Plain Text"]});var PV,Bgt=v(()=>{pe();PV=X`
|
|
18388
18388
|
:host {
|
|
18389
18389
|
display: block;
|
|
18390
18390
|
position: relative;
|
|
@@ -20265,7 +20265,7 @@ ${a.content}
|
|
|
20265
20265
|
background: transparent;
|
|
20266
20266
|
padding: 0;
|
|
20267
20267
|
}
|
|
20268
|
-
`}}});var FV=v(()=>{ei();Hgt();qgt();Vgt();jgt();Ugt();Wgt();Ggt();Ygt();Zgt();Xgt();Qgt();Kgt();Jgt()});function ebt(){a1.register("divider",new U8),a1.register("paragraph",new R8),a1.register("heading-1",new f4("heading-1")),a1.register("heading-2",new f4("heading-2")),a1.register("heading-3",new f4("heading-3")),a1.register("quote",new O8),a1.register("code",new B8),a1.register("list",new H8),a1.register("image",new q8),a1.register("youtube",new V8),a1.register("attachment",new j8),a1.register("markdown",new W8),a1.register("html",new G8)}var RV=v(()=>{FV();ebt()});var Y8,OV=v(()=>{pe();K0();Fa();p4();bw();Y8=class{static async showLanguageSelectionModal(){return new Promise(e=>{let a=null;
|
|
20268
|
+
`}}});var FV=v(()=>{ei();Hgt();qgt();Vgt();jgt();Ugt();Wgt();Ggt();Ygt();Zgt();Xgt();Qgt();Kgt();Jgt()});function ebt(){a1.register("divider",new U8),a1.register("paragraph",new R8),a1.register("heading-1",new f4("heading-1")),a1.register("heading-2",new f4("heading-2")),a1.register("heading-3",new f4("heading-3")),a1.register("quote",new O8),a1.register("code",new B8),a1.register("list",new H8),a1.register("image",new q8),a1.register("youtube",new V8),a1.register("attachment",new j8),a1.register("markdown",new W8),a1.register("html",new G8)}var RV=v(()=>{FV();ebt()});var Y8,OV=v(()=>{pe();K0();Fa();p4();bw();Y8=class{static async showLanguageSelectionModal(){return new Promise(e=>{let a=null;o1.createAndShow({heading:"Select Programming Language",content:w`
|
|
20269
20269
|
<style>
|
|
20270
20270
|
.language-container {
|
|
20271
20271
|
padding: 16px;
|
|
@@ -20370,7 +20370,7 @@ ${a.content}
|
|
|
20370
20370
|
${this.getBlockTypeSelector(e,a)}
|
|
20371
20371
|
${e.type==="code"?this.getCodeBlockSettings(e,a):""}
|
|
20372
20372
|
</div>
|
|
20373
|
-
`;
|
|
20373
|
+
`;o1.createAndShow({heading:"Block Settings",content:i,menuOptions:[{name:"Done",action:async r=>{r.destroy()}}]})}static getCodeBlockSettings(e,a){let i=e.metadata?.language||"javascript";return w`
|
|
20374
20374
|
<style>
|
|
20375
20375
|
.language-grid {
|
|
20376
20376
|
display: grid;
|
|
@@ -20553,7 +20553,7 @@ ${a.content}
|
|
|
20553
20553
|
<!-- Blocks will be rendered programmatically -->
|
|
20554
20554
|
</div>
|
|
20555
20555
|
</div>
|
|
20556
|
-
`}handleSlashMenuKeyboard(C){switch(C.key){case"ArrowDown":C.preventDefault(),this.slashMenu.navigate("down");break;case"ArrowUp":C.preventDefault(),this.slashMenu.navigate("up");break;case"Enter":C.preventDefault(),this.slashMenu.selectCurrent();break;case"Escape":C.preventDefault(),this.closeSlashMenu(!0);break}}closeSlashMenu(C=!1){if(C&&this.selectedBlockId){let z=this.blocks.find(E=>E.id===this.selectedBlockId);if(z){let _=this.shadowRoot.querySelector(`[data-block-id="${z.id}"]`)?.querySelector("dees-wysiwyg-block");if(_){let $=_.getContent();if($.startsWith("/")){let V=$.replace(/^\/[^\s]*\s*/,"").trim();_.setContent(V),z.content=V,requestAnimationFrame(()=>{_.focusWithCursor(0)})}}}}this.slashMenu.hide()}handleBlockFocus(C){this.blurTimeout&&(clearTimeout(this.blurTimeout),this.blurTimeout=null);let z=this.selectedBlockId;if(this.selectedBlockId=C.id,z!==C.id){if(z){let V=this.shadowRoot?.querySelector(`[data-block-id="${z}"]`)?.querySelector("dees-wysiwyg-block");V&&(V.isSelected=!1)}let _=this.shadowRoot?.querySelector(`[data-block-id="${C.id}"]`)?.querySelector("dees-wysiwyg-block");_&&(_.isSelected=!0)}}blurTimeout=null;handleBlockBlur(C){if(this.blurTimeout&&clearTimeout(this.blurTimeout),this.slashMenu.visible)return;let E=this.shadowRoot?.querySelector(`[data-block-id="${C.id}"]`)?.querySelector("dees-wysiwyg-block");if(E&&E.getContent){let _=E.getContent();C.content!==_&&(C.content=_)}this.blurTimeout=setTimeout(()=>{this.shadowRoot?.activeElement?.classList.contains("block")||this.updateValue()},100)}handleEditorClick(C){let z=C.target;if(this.slashMenu.visible&&this.closeSlashMenu(!0),z.classList.contains("editor-content")){let E=this.blocks[this.blocks.length-1];this.blockOperations.focusBlock(E.id,E.type==="divider"||E.type==="image"?void 0:"end")}}createNewBlock(C="paragraph",z="",E){return{id:W1.generateBlockId(),type:C,content:z,...E&&{metadata:E}}}async insertBlockAfter(C,z,E=!0){let _=this.blocks.findIndex(V=>V.id===C.id);this.blocks=[...this.blocks.slice(0,_+1),z,...this.blocks.slice(_+1)];let $=this.editorContentRef.querySelector(`[data-block-id="${C.id}"]`);if($){let V=this.createBlockElement(z);$.insertAdjacentElement("afterend",V)}this.updateValue(),E&&z.type!=="divider"&&(await new Promise(V=>setTimeout(V,0)),await this.blockOperations.focusBlock(z.id,"start"))}async insertBlock(C){let z=this.blocks.find($=>$.id===this.selectedBlockId);if(!z){this.closeSlashMenu();return}let _=this.shadowRoot.querySelector(`[data-block-id="${z.id}"]`)?.querySelector("dees-wysiwyg-block");if(_){let $=_.getContent();if($.startsWith("/")){let V=$.replace(/^\/[^\s]*\s*/,"").trim();_.setContent(V),z.content=V}}if(this.closeSlashMenu(!1),C==="code"&&(z.metadata={language:"typescript"}),z.type=C,z.content=z.content||"",C==="divider"){z.content=" ";let $=this.createNewBlock();this.insertBlockAfter(z,$)}else C==="list"?(z.metadata={listType:"bullet"},z.content=""):C==="image"?(z.content="",z.metadata={url:"",loading:!1}):C==="youtube"?(z.content="",z.metadata={videoId:"",url:""}):C==="markdown"?z.metadata={showPreview:!1}:C==="html"?z.metadata={showPreview:!1}:C==="attachment"?(z.content="",z.metadata={files:[]}):z.content=z.content||"";this.updateBlockElement(z.id),this.updateValue(),await new Promise($=>setTimeout($,0)),C==="list"?(this.blockOperations.focusBlock(z.id,"start"),requestAnimationFrame(()=>{let V=this.shadowRoot?.querySelector(`[data-block-id="${z.id}"]`)?.querySelector("dees-wysiwyg-block");V&&V.focusListItem()})):C!=="divider"&&C!=="image"&&C!=="youtube"&&C!=="markdown"&&C!=="html"&&C!=="attachment"?this.blockOperations.focusBlock(z.id,"start"):(C==="image"||C==="youtube"||C==="markdown"||C==="html"||C==="attachment")&&this.blockOperations.focusBlock(z.id)}updateValue(){this.outputFormat==="html"?this.value=$i.getHtmlOutput(this.blocks):this.value=$i.getMarkdownOutput(this.blocks),this.changeSubject.next(this.value),this.saveToHistory(!0)}getValue(){return this.value}setValue(C){this.value=C,this.outputFormat==="html"?this.blocks=$i.parseHtmlToBlocks(C):this.blocks=$i.parseMarkdownToBlocks(C),this.blocks.length===0&&(this.blocks=[{id:W1.generateBlockId(),type:"paragraph",content:""}]),this.changeSubject.next(this.value),this.editorContentRef&&this.renderBlocksProgrammatically()}exportBlocks(){return JSON.parse(JSON.stringify(this.blocks))}importBlocks(C){this.blocks=JSON.parse(JSON.stringify(C)),this.updateValue(),this.editorContentRef&&this.renderBlocksProgrammatically()}exportAsHtml(){return $i.getHtmlOutput(this.blocks)}exportAsMarkdown(){return $i.getMarkdownOutput(this.blocks)}exportState(){return{blocks:this.exportBlocks(),outputFormat:this.outputFormat}}importState(C){C.outputFormat&&(this.outputFormat=C.outputFormat),this.importBlocks(C.blocks)}handleDragEnd(){if(this.draggedBlockId){let z=this.editorContentRef.querySelector(`[data-block-id="${this.draggedBlockId}"]`);z&&z.classList.remove("dragging")}this.editorContentRef.querySelectorAll(".block-wrapper").forEach(z=>{z.classList.remove("drag-over-before","drag-over-after")}),this.editorContentRef.classList.remove("dragging"),this.draggedBlockId=null,this.dragOverBlockId=null,this.dragOverPosition=null}handleDrop(C,z){if(C.preventDefault(),!this.draggedBlockId||this.draggedBlockId===z.id)return;let E=this.blocks.findIndex(O=>O.id===this.draggedBlockId),_=this.blocks.findIndex(O=>O.id===z.id);if(E===-1||_===-1)return;let[$]=this.blocks.splice(E,1),V=_;this.dragOverPosition==="after"?V=E<_?_:_+1:V=E<_?_-1:_,this.blocks.splice(V,0,$),this.renderBlocksProgrammatically(),this.updateValue(),this.handleDragEnd(),setTimeout(()=>{let O=this.shadowRoot.querySelector(`[data-block-id="${$.id}"] .block`);O&&$.type!=="divider"&&O.focus()},100)}handleTextSelection(C){this.slashMenu.visible}updateFormattingMenuPosition(){let C=[];this.shadowRoot&&C.push(this.shadowRoot),this.shadowRoot?.querySelectorAll(".block-wrapper")?.forEach(_=>{let $=_.querySelector("dees-wysiwyg-block");$?.shadowRoot&&C.push($.shadowRoot)});let E=Ws.getSelectionCoordinates(...C);E&&this.formattingMenu.show({x:E.x,y:E.y},async _=>await this.applyFormat(_))}hideFormattingMenu(){this.formattingMenu.hide(),this.selectedText=""}async applyFormat(C){let z=[];this.shadowRoot&&z.push(this.shadowRoot),this.shadowRoot?.querySelectorAll(".block-wrapper")?.forEach(re=>{let j=re.querySelector("dees-wysiwyg-block");j?.shadowRoot&&z.push(j.shadowRoot)});let _=Be.getSelectionInfo(...z);if(!_)return;let $,V,O=this.shadowRoot.querySelectorAll(".block-wrapper");for(let re=0;re<O.length;re++){let j=O[re],me=j.querySelector("dees-wysiwyg-block");if(me?.shadowRoot){let we=me.shadowRoot.querySelector(".block");if(we&&(we.contains(_.startContainer)||we.contains(_.endContainer))){let H=j.getAttribute("data-block-id");$=this.blocks.find(he=>he.id===H),V=me;break}}}if(!$||!V)return;let U=Be.createRangeFromInfo(_);if(C==="link"){let re=await this.showLinkDialog();if(!re){V.focus();return}Ws.applyFormat(C,re,U,z)}else Ws.applyFormat(C,void 0,U,z);await new Promise(re=>setTimeout(re,10)),$.content=V.getContent(),this.updateValue(),V.focus(),C==="link"?this.hideFormattingMenu():this.selectedText=""}async showLinkDialog(){return new Promise(C=>{let z=null;
|
|
20556
|
+
`}handleSlashMenuKeyboard(C){switch(C.key){case"ArrowDown":C.preventDefault(),this.slashMenu.navigate("down");break;case"ArrowUp":C.preventDefault(),this.slashMenu.navigate("up");break;case"Enter":C.preventDefault(),this.slashMenu.selectCurrent();break;case"Escape":C.preventDefault(),this.closeSlashMenu(!0);break}}closeSlashMenu(C=!1){if(C&&this.selectedBlockId){let z=this.blocks.find(E=>E.id===this.selectedBlockId);if(z){let _=this.shadowRoot.querySelector(`[data-block-id="${z.id}"]`)?.querySelector("dees-wysiwyg-block");if(_){let $=_.getContent();if($.startsWith("/")){let V=$.replace(/^\/[^\s]*\s*/,"").trim();_.setContent(V),z.content=V,requestAnimationFrame(()=>{_.focusWithCursor(0)})}}}}this.slashMenu.hide()}handleBlockFocus(C){this.blurTimeout&&(clearTimeout(this.blurTimeout),this.blurTimeout=null);let z=this.selectedBlockId;if(this.selectedBlockId=C.id,z!==C.id){if(z){let V=this.shadowRoot?.querySelector(`[data-block-id="${z}"]`)?.querySelector("dees-wysiwyg-block");V&&(V.isSelected=!1)}let _=this.shadowRoot?.querySelector(`[data-block-id="${C.id}"]`)?.querySelector("dees-wysiwyg-block");_&&(_.isSelected=!0)}}blurTimeout=null;handleBlockBlur(C){if(this.blurTimeout&&clearTimeout(this.blurTimeout),this.slashMenu.visible)return;let E=this.shadowRoot?.querySelector(`[data-block-id="${C.id}"]`)?.querySelector("dees-wysiwyg-block");if(E&&E.getContent){let _=E.getContent();C.content!==_&&(C.content=_)}this.blurTimeout=setTimeout(()=>{this.shadowRoot?.activeElement?.classList.contains("block")||this.updateValue()},100)}handleEditorClick(C){let z=C.target;if(this.slashMenu.visible&&this.closeSlashMenu(!0),z.classList.contains("editor-content")){let E=this.blocks[this.blocks.length-1];this.blockOperations.focusBlock(E.id,E.type==="divider"||E.type==="image"?void 0:"end")}}createNewBlock(C="paragraph",z="",E){return{id:W1.generateBlockId(),type:C,content:z,...E&&{metadata:E}}}async insertBlockAfter(C,z,E=!0){let _=this.blocks.findIndex(V=>V.id===C.id);this.blocks=[...this.blocks.slice(0,_+1),z,...this.blocks.slice(_+1)];let $=this.editorContentRef.querySelector(`[data-block-id="${C.id}"]`);if($){let V=this.createBlockElement(z);$.insertAdjacentElement("afterend",V)}this.updateValue(),E&&z.type!=="divider"&&(await new Promise(V=>setTimeout(V,0)),await this.blockOperations.focusBlock(z.id,"start"))}async insertBlock(C){let z=this.blocks.find($=>$.id===this.selectedBlockId);if(!z){this.closeSlashMenu();return}let _=this.shadowRoot.querySelector(`[data-block-id="${z.id}"]`)?.querySelector("dees-wysiwyg-block");if(_){let $=_.getContent();if($.startsWith("/")){let V=$.replace(/^\/[^\s]*\s*/,"").trim();_.setContent(V),z.content=V}}if(this.closeSlashMenu(!1),C==="code"&&(z.metadata={language:"typescript"}),z.type=C,z.content=z.content||"",C==="divider"){z.content=" ";let $=this.createNewBlock();this.insertBlockAfter(z,$)}else C==="list"?(z.metadata={listType:"bullet"},z.content=""):C==="image"?(z.content="",z.metadata={url:"",loading:!1}):C==="youtube"?(z.content="",z.metadata={videoId:"",url:""}):C==="markdown"?z.metadata={showPreview:!1}:C==="html"?z.metadata={showPreview:!1}:C==="attachment"?(z.content="",z.metadata={files:[]}):z.content=z.content||"";this.updateBlockElement(z.id),this.updateValue(),await new Promise($=>setTimeout($,0)),C==="list"?(this.blockOperations.focusBlock(z.id,"start"),requestAnimationFrame(()=>{let V=this.shadowRoot?.querySelector(`[data-block-id="${z.id}"]`)?.querySelector("dees-wysiwyg-block");V&&V.focusListItem()})):C!=="divider"&&C!=="image"&&C!=="youtube"&&C!=="markdown"&&C!=="html"&&C!=="attachment"?this.blockOperations.focusBlock(z.id,"start"):(C==="image"||C==="youtube"||C==="markdown"||C==="html"||C==="attachment")&&this.blockOperations.focusBlock(z.id)}updateValue(){this.outputFormat==="html"?this.value=$i.getHtmlOutput(this.blocks):this.value=$i.getMarkdownOutput(this.blocks),this.changeSubject.next(this.value),this.saveToHistory(!0)}getValue(){return this.value}setValue(C){this.value=C,this.outputFormat==="html"?this.blocks=$i.parseHtmlToBlocks(C):this.blocks=$i.parseMarkdownToBlocks(C),this.blocks.length===0&&(this.blocks=[{id:W1.generateBlockId(),type:"paragraph",content:""}]),this.changeSubject.next(this.value),this.editorContentRef&&this.renderBlocksProgrammatically()}exportBlocks(){return JSON.parse(JSON.stringify(this.blocks))}importBlocks(C){this.blocks=JSON.parse(JSON.stringify(C)),this.updateValue(),this.editorContentRef&&this.renderBlocksProgrammatically()}exportAsHtml(){return $i.getHtmlOutput(this.blocks)}exportAsMarkdown(){return $i.getMarkdownOutput(this.blocks)}exportState(){return{blocks:this.exportBlocks(),outputFormat:this.outputFormat}}importState(C){C.outputFormat&&(this.outputFormat=C.outputFormat),this.importBlocks(C.blocks)}handleDragEnd(){if(this.draggedBlockId){let z=this.editorContentRef.querySelector(`[data-block-id="${this.draggedBlockId}"]`);z&&z.classList.remove("dragging")}this.editorContentRef.querySelectorAll(".block-wrapper").forEach(z=>{z.classList.remove("drag-over-before","drag-over-after")}),this.editorContentRef.classList.remove("dragging"),this.draggedBlockId=null,this.dragOverBlockId=null,this.dragOverPosition=null}handleDrop(C,z){if(C.preventDefault(),!this.draggedBlockId||this.draggedBlockId===z.id)return;let E=this.blocks.findIndex(O=>O.id===this.draggedBlockId),_=this.blocks.findIndex(O=>O.id===z.id);if(E===-1||_===-1)return;let[$]=this.blocks.splice(E,1),V=_;this.dragOverPosition==="after"?V=E<_?_:_+1:V=E<_?_-1:_,this.blocks.splice(V,0,$),this.renderBlocksProgrammatically(),this.updateValue(),this.handleDragEnd(),setTimeout(()=>{let O=this.shadowRoot.querySelector(`[data-block-id="${$.id}"] .block`);O&&$.type!=="divider"&&O.focus()},100)}handleTextSelection(C){this.slashMenu.visible}updateFormattingMenuPosition(){let C=[];this.shadowRoot&&C.push(this.shadowRoot),this.shadowRoot?.querySelectorAll(".block-wrapper")?.forEach(_=>{let $=_.querySelector("dees-wysiwyg-block");$?.shadowRoot&&C.push($.shadowRoot)});let E=Ws.getSelectionCoordinates(...C);E&&this.formattingMenu.show({x:E.x,y:E.y},async _=>await this.applyFormat(_))}hideFormattingMenu(){this.formattingMenu.hide(),this.selectedText=""}async applyFormat(C){let z=[];this.shadowRoot&&z.push(this.shadowRoot),this.shadowRoot?.querySelectorAll(".block-wrapper")?.forEach(re=>{let j=re.querySelector("dees-wysiwyg-block");j?.shadowRoot&&z.push(j.shadowRoot)});let _=Be.getSelectionInfo(...z);if(!_)return;let $,V,O=this.shadowRoot.querySelectorAll(".block-wrapper");for(let re=0;re<O.length;re++){let j=O[re],me=j.querySelector("dees-wysiwyg-block");if(me?.shadowRoot){let we=me.shadowRoot.querySelector(".block");if(we&&(we.contains(_.startContainer)||we.contains(_.endContainer))){let H=j.getAttribute("data-block-id");$=this.blocks.find(he=>he.id===H),V=me;break}}}if(!$||!V)return;let U=Be.createRangeFromInfo(_);if(C==="link"){let re=await this.showLinkDialog();if(!re){V.focus();return}Ws.applyFormat(C,re,U,z)}else Ws.applyFormat(C,void 0,U,z);await new Promise(re=>setTimeout(re,10)),$.content=V.getContent(),this.updateValue(),V.focus(),C==="link"?this.hideFormattingMenu():this.selectedText=""}async showLinkDialog(){return new Promise(C=>{let z=null;o1.createAndShow({heading:"Add Link",content:$s`
|
|
20557
20557
|
<style>
|
|
20558
20558
|
.link-input {
|
|
20559
20559
|
width: 100%;
|
|
@@ -20764,7 +20764,7 @@ ${a.content}
|
|
|
20764
20764
|
padding: 24px;
|
|
20765
20765
|
}
|
|
20766
20766
|
}
|
|
20767
|
-
`];async connectedCallback(){super.connectedCallback(),this.windowLayer=await Si.createAndShow({blur:!0}),this.windowLayer.addEventListener("click",()=>this.close()),this.zIndex=
|
|
20767
|
+
`];async connectedCallback(){super.connectedCallback(),this.windowLayer=await Si.createAndShow({blur:!0}),this.windowLayer.addEventListener("click",()=>this.close()),this.zIndex=u1.getNextZIndex(),this.style.setProperty("--z-index",this.zIndex.toString()),u1.register(this,this.zIndex)}async disconnectedCallback(){super.disconnectedCallback(),this.cropper&&this.cropper.destroy(),this.windowLayer&&await this.windowLayer.destroy(),u1.unregister(this)}render(){return w`
|
|
20768
20768
|
<div class="modal-container" @click=${C=>C.stopPropagation()}>
|
|
20769
20769
|
<div class="modal-header">
|
|
20770
20770
|
<h3 class="modal-title">
|
|
@@ -20970,7 +20970,7 @@ ${a.content}
|
|
|
20970
20970
|
</dees-panel>
|
|
20971
20971
|
</dees-demowrapper>
|
|
20972
20972
|
</div>
|
|
20973
|
-
`});var Ra,
|
|
20973
|
+
`});var Ra,p1,pbt,jV=v(()=>{pe();C1();Dt();Pl();cbt();ubt();Ve();Ra=function(t,e,a,i,r,s){function n(x){if(x!==void 0&&typeof x!="function")throw new TypeError("Function expected");return x}for(var o=i.kind,l=o==="getter"?"get":o==="setter"?"set":"value",d=!e&&t?i.static?t:t.prototype:null,u=e||(d?Object.getOwnPropertyDescriptor(d,i.name):{}),c,f=!1,g=a.length-1;g>=0;g--){var y={};for(var b in i)y[b]=b==="access"?{}:i[b];for(var b in i.access)y.access[b]=i.access[b];y.addInitializer=function(x){if(f)throw new TypeError("Cannot add initializers after decoration has completed");s.push(n(x||null))};var m=(0,a[g])(o==="accessor"?{get:u.get,set:u.set}:u[l],y);if(o==="accessor"){if(m===void 0)continue;if(m===null||typeof m!="object")throw new TypeError("Object expected");(c=n(m.get))&&(u.get=c),(c=n(m.set))&&(u.set=c),(c=n(m.init))&&r.unshift(c)}else(c=n(m))&&(o==="field"?r.unshift(c):u[l]=c)}d&&Object.defineProperty(d,i.name,u),f=!0},p1=function(t,e,a){for(var i=arguments.length>2,r=0;r<e.length;r++)a=i?e[r].call(t,a):e[r].call(t);return i?a:void 0},pbt=(()=>{let t=[de("dees-input-profilepicture")],e,a=[],i,r=Ze,s,n=[],o=[],l,d=[],u=[],c,f=[],g=[],y,b=[],m=[],x,M=[],k=[],F,T=[],S=[],I,L=[],A=[],q,C=[],z=[],E,_=[],$=[],V,O=[],U=[],re,j=[],me=[],we,H=[],he=[],_e,W=[],D=[];var R=class extends r{static{i=this}static{let Z=typeof Symbol=="function"&&Symbol.metadata?Object.create(r[Symbol.metadata]??null):void 0;s=[N({type:String})],l=[N({type:String})],c=[N({type:Number})],y=[N({type:String})],x=[N({type:Boolean})],F=[N({type:Boolean})],I=[N({type:Number})],q=[N({type:Array})],E=[N({type:Number})],V=[N({type:Number})],re=[K()],we=[K()],_e=[K()],Ra(this,null,s,{kind:"accessor",name:"value",static:!1,private:!1,access:{has:Y=>"value"in Y,get:Y=>Y.value,set:(Y,oe)=>{Y.value=oe}},metadata:Z},n,o),Ra(this,null,l,{kind:"accessor",name:"shape",static:!1,private:!1,access:{has:Y=>"shape"in Y,get:Y=>Y.shape,set:(Y,oe)=>{Y.shape=oe}},metadata:Z},d,u),Ra(this,null,c,{kind:"accessor",name:"size",static:!1,private:!1,access:{has:Y=>"size"in Y,get:Y=>Y.size,set:(Y,oe)=>{Y.size=oe}},metadata:Z},f,g),Ra(this,null,y,{kind:"accessor",name:"placeholder",static:!1,private:!1,access:{has:Y=>"placeholder"in Y,get:Y=>Y.placeholder,set:(Y,oe)=>{Y.placeholder=oe}},metadata:Z},b,m),Ra(this,null,x,{kind:"accessor",name:"allowUpload",static:!1,private:!1,access:{has:Y=>"allowUpload"in Y,get:Y=>Y.allowUpload,set:(Y,oe)=>{Y.allowUpload=oe}},metadata:Z},M,k),Ra(this,null,F,{kind:"accessor",name:"allowDelete",static:!1,private:!1,access:{has:Y=>"allowDelete"in Y,get:Y=>Y.allowDelete,set:(Y,oe)=>{Y.allowDelete=oe}},metadata:Z},T,S),Ra(this,null,I,{kind:"accessor",name:"maxFileSize",static:!1,private:!1,access:{has:Y=>"maxFileSize"in Y,get:Y=>Y.maxFileSize,set:(Y,oe)=>{Y.maxFileSize=oe}},metadata:Z},L,A),Ra(this,null,q,{kind:"accessor",name:"acceptedFormats",static:!1,private:!1,access:{has:Y=>"acceptedFormats"in Y,get:Y=>Y.acceptedFormats,set:(Y,oe)=>{Y.acceptedFormats=oe}},metadata:Z},C,z),Ra(this,null,E,{kind:"accessor",name:"outputSize",static:!1,private:!1,access:{has:Y=>"outputSize"in Y,get:Y=>Y.outputSize,set:(Y,oe)=>{Y.outputSize=oe}},metadata:Z},_,$),Ra(this,null,V,{kind:"accessor",name:"outputQuality",static:!1,private:!1,access:{has:Y=>"outputQuality"in Y,get:Y=>Y.outputQuality,set:(Y,oe)=>{Y.outputQuality=oe}},metadata:Z},O,U),Ra(this,null,re,{kind:"accessor",name:"isHovered",static:!1,private:!1,access:{has:Y=>"isHovered"in Y,get:Y=>Y.isHovered,set:(Y,oe)=>{Y.isHovered=oe}},metadata:Z},j,me),Ra(this,null,we,{kind:"accessor",name:"isDragging",static:!1,private:!1,access:{has:Y=>"isDragging"in Y,get:Y=>Y.isDragging,set:(Y,oe)=>{Y.isDragging=oe}},metadata:Z},H,he),Ra(this,null,_e,{kind:"accessor",name:"isLoading",static:!1,private:!1,access:{has:Y=>"isLoading"in Y,get:Y=>Y.isLoading,set:(Y,oe)=>{Y.isLoading=oe}},metadata:Z},W,D),Ra(null,e={value:i},t,{kind:"class",name:i.name,metadata:Z},null,a),R=i=e.value,Z&&Object.defineProperty(i,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:Z})}static demo=dbt;static demoGroups=["Input"];#e=p1(this,n,"");get value(){return this.#e}set value(Z){this.#e=Z}#t=(p1(this,o),p1(this,d,"round"));get shape(){return this.#t}set shape(Z){this.#t=Z}#a=(p1(this,u),p1(this,f,120));get size(){return this.#a}set size(Z){this.#a=Z}#i=(p1(this,g),p1(this,b,""));get placeholder(){return this.#i}set placeholder(Z){this.#i=Z}#r=(p1(this,m),p1(this,M,!0));get allowUpload(){return this.#r}set allowUpload(Z){this.#r=Z}#s=(p1(this,k),p1(this,T,!0));get allowDelete(){return this.#s}set allowDelete(Z){this.#s=Z}#n=(p1(this,S),p1(this,L,5*1024*1024));get maxFileSize(){return this.#n}set maxFileSize(Z){this.#n=Z}#o=(p1(this,A),p1(this,C,["image/jpeg","image/png","image/webp"]));get acceptedFormats(){return this.#o}set acceptedFormats(Z){this.#o=Z}#l=(p1(this,z),p1(this,_,800));get outputSize(){return this.#l}set outputSize(Z){this.#l=Z}#c=(p1(this,$),p1(this,O,.95));get outputQuality(){return this.#c}set outputQuality(Z){this.#c=Z}#d=(p1(this,U),p1(this,j,!1));get isHovered(){return this.#d}set isHovered(Z){this.#d=Z}#u=(p1(this,me),p1(this,H,!1));get isDragging(){return this.#u}set isDragging(Z){this.#u=Z}#p=(p1(this,he),p1(this,W,!1));get isLoading(){return this.#p}set isLoading(Z){this.#p=Z}modalInstance=(p1(this,D),null);static styles=[ke,...Ze.baseStyles,p.defaultStyles,X`
|
|
20974
20974
|
/* TODO: Migrate hardcoded values to --dees-* CSS variables */
|
|
20975
20975
|
:host {
|
|
20976
20976
|
display: block;
|
|
@@ -21224,7 +21224,7 @@ ${a.content}
|
|
|
21224
21224
|
@change=${this.handleFileSelect}
|
|
21225
21225
|
/>
|
|
21226
21226
|
</div>
|
|
21227
|
-
`}handleClick(){if(!(this.disabled||!this.allowUpload)&&!this.value){this.isLoading=!0;let Z=this.shadowRoot.querySelector(".hidden-input"),Y=()=>{setTimeout(()=>{(!Z.files||Z.files.length===0)&&(this.isLoading=!1),window.removeEventListener("focus",Y)},300)};window.addEventListener("focus",Y),Z.click()}}handleFileSelect(Z){let Y=Z.target,oe=Y.files?.[0];this.isLoading=!1,oe&&this.processFile(oe),Y.value=""}handleDragOver(Z){Z.preventDefault(),!this.disabled&&this.allowUpload&&(this.isDragging=!0)}handleDragLeave(){this.isDragging=!1}handleDrop(Z){if(Z.preventDefault(),this.isDragging=!1,this.disabled||!this.allowUpload)return;let Y=Z.dataTransfer?.files[0];Y&&this.processFile(Y)}async processFile(Z){if(!this.acceptedFormats.includes(Z.type)){console.error("Invalid file type:",Z.type);return}if(Z.size>this.maxFileSize){console.error("File too large:",Z.size);return}let Y=new FileReader;Y.onload=async oe=>{let ge=oe.target?.result;await this.openModal(ge)},Y.readAsDataURL(Z)}async openModal(Z){let Y=Z||this.value;if(!Y){this.shadowRoot.querySelector(".hidden-input").click();return}this.modalInstance=new VV,this.modalInstance.shape=this.shape,this.modalInstance.initialImage=Y,this.modalInstance.outputSize=this.outputSize,this.modalInstance.outputQuality=this.outputQuality,this.modalInstance.addEventListener("save",oe=>{this.value=oe.detail.croppedImage,this.changeSubject.next(this)}),document.body.appendChild(this.modalInstance)}deletePicture(){this.value="",this.changeSubject.next(this)}getValue(){return this.value}setValue(Z){this.value=Z}static{
|
|
21227
|
+
`}handleClick(){if(!(this.disabled||!this.allowUpload)&&!this.value){this.isLoading=!0;let Z=this.shadowRoot.querySelector(".hidden-input"),Y=()=>{setTimeout(()=>{(!Z.files||Z.files.length===0)&&(this.isLoading=!1),window.removeEventListener("focus",Y)},300)};window.addEventListener("focus",Y),Z.click()}}handleFileSelect(Z){let Y=Z.target,oe=Y.files?.[0];this.isLoading=!1,oe&&this.processFile(oe),Y.value=""}handleDragOver(Z){Z.preventDefault(),!this.disabled&&this.allowUpload&&(this.isDragging=!0)}handleDragLeave(){this.isDragging=!1}handleDrop(Z){if(Z.preventDefault(),this.isDragging=!1,this.disabled||!this.allowUpload)return;let Y=Z.dataTransfer?.files[0];Y&&this.processFile(Y)}async processFile(Z){if(!this.acceptedFormats.includes(Z.type)){console.error("Invalid file type:",Z.type);return}if(Z.size>this.maxFileSize){console.error("File too large:",Z.size);return}let Y=new FileReader;Y.onload=async oe=>{let ge=oe.target?.result;await this.openModal(ge)},Y.readAsDataURL(Z)}async openModal(Z){let Y=Z||this.value;if(!Y){this.shadowRoot.querySelector(".hidden-input").click();return}this.modalInstance=new VV,this.modalInstance.shape=this.shape,this.modalInstance.initialImage=Y,this.modalInstance.outputSize=this.outputSize,this.modalInstance.outputQuality=this.outputQuality,this.modalInstance.addEventListener("save",oe=>{this.value=oe.detail.croppedImage,this.changeSubject.next(this)}),document.body.appendChild(this.modalInstance)}deletePicture(){this.value="",this.changeSubject.next(this)}getValue(){return this.value}setValue(Z){this.value=Z}static{p1(i,a)}};return R=i})()});var hbt=v(()=>{sgt();ngt();ogt();Gq();lgt();Kq();cgt();fgt();mgt();ggt();bgt();vgt();Cgt();_gt();Pgt();Ngt();Igt();Fgt();obt();jV()});var fbt,mbt=v(()=>{pe();fbt=()=>w`
|
|
21228
21228
|
<style>
|
|
21229
21229
|
.demoContainer {
|
|
21230
21230
|
display: flex;
|
|
@@ -22871,7 +22871,7 @@ ${a.content}
|
|
|
22871
22871
|
></dees-video-viewer>
|
|
22872
22872
|
</div>
|
|
22873
22873
|
</div>
|
|
22874
|
-
`});var wa,
|
|
22874
|
+
`});var wa,l1,hvt,KV=v(()=>{pe();Dt();pvt();wa=function(t,e,a,i,r,s){function n(x){if(x!==void 0&&typeof x!="function")throw new TypeError("Function expected");return x}for(var o=i.kind,l=o==="getter"?"get":o==="setter"?"set":"value",d=!e&&t?i.static?t:t.prototype:null,u=e||(d?Object.getOwnPropertyDescriptor(d,i.name):{}),c,f=!1,g=a.length-1;g>=0;g--){var y={};for(var b in i)y[b]=b==="access"?{}:i[b];for(var b in i.access)y.access[b]=i.access[b];y.addInitializer=function(x){if(f)throw new TypeError("Cannot add initializers after decoration has completed");s.push(n(x||null))};var m=(0,a[g])(o==="accessor"?{get:u.get,set:u.set}:u[l],y);if(o==="accessor"){if(m===void 0)continue;if(m===null||typeof m!="object")throw new TypeError("Object expected");(c=n(m.get))&&(u.get=c),(c=n(m.set))&&(u.set=c),(c=n(m.init))&&r.unshift(c)}else(c=n(m))&&(o==="field"?r.unshift(c):u[l]=c)}d&&Object.defineProperty(d,i.name,u),f=!0},l1=function(t,e,a){for(var i=arguments.length>2,r=0;r<e.length;r++)a=i?e[r].call(t,a):e[r].call(t);return i?a:void 0},hvt=(()=>{let t=[de("dees-video-viewer")],e,a=[],i,r=xe,s,n=[],o=[],l,d=[],u=[],c,f=[],g=[],y,b=[],m=[],x,M=[],k=[],F,T=[],S=[],I,L=[],A=[],q,C=[],z=[],E,_=[],$=[],V,O=[],U=[],re,j=[],me=[],we,H=[],he=[],_e,W=[],D=[],R,Z=[],Y=[];var oe=class extends r{static{i=this}static{let ge=typeof Symbol=="function"&&Symbol.metadata?Object.create(r[Symbol.metadata]??null):void 0;s=[N()],l=[N()],c=[N({type:Boolean})],y=[N({type:Boolean})],x=[N({type:Boolean})],F=[N({type:Boolean})],I=[K()],q=[K()],E=[K()],V=[K()],re=[K()],we=[K()],_e=[K()],R=[K()],wa(this,null,s,{kind:"accessor",name:"src",static:!1,private:!1,access:{has:be=>"src"in be,get:be=>be.src,set:(be,$e)=>{be.src=$e}},metadata:ge},n,o),wa(this,null,l,{kind:"accessor",name:"poster",static:!1,private:!1,access:{has:be=>"poster"in be,get:be=>be.poster,set:(be,$e)=>{be.poster=$e}},metadata:ge},d,u),wa(this,null,c,{kind:"accessor",name:"showControls",static:!1,private:!1,access:{has:be=>"showControls"in be,get:be=>be.showControls,set:(be,$e)=>{be.showControls=$e}},metadata:ge},f,g),wa(this,null,y,{kind:"accessor",name:"autoplay",static:!1,private:!1,access:{has:be=>"autoplay"in be,get:be=>be.autoplay,set:(be,$e)=>{be.autoplay=$e}},metadata:ge},b,m),wa(this,null,x,{kind:"accessor",name:"loop",static:!1,private:!1,access:{has:be=>"loop"in be,get:be=>be.loop,set:(be,$e)=>{be.loop=$e}},metadata:ge},M,k),wa(this,null,F,{kind:"accessor",name:"muted",static:!1,private:!1,access:{has:be=>"muted"in be,get:be=>be.muted,set:(be,$e)=>{be.muted=$e}},metadata:ge},T,S),wa(this,null,I,{kind:"accessor",name:"isPlaying",static:!1,private:!1,access:{has:be=>"isPlaying"in be,get:be=>be.isPlaying,set:(be,$e)=>{be.isPlaying=$e}},metadata:ge},L,A),wa(this,null,q,{kind:"accessor",name:"currentTime",static:!1,private:!1,access:{has:be=>"currentTime"in be,get:be=>be.currentTime,set:(be,$e)=>{be.currentTime=$e}},metadata:ge},C,z),wa(this,null,E,{kind:"accessor",name:"duration",static:!1,private:!1,access:{has:be=>"duration"in be,get:be=>be.duration,set:(be,$e)=>{be.duration=$e}},metadata:ge},_,$),wa(this,null,V,{kind:"accessor",name:"volume",static:!1,private:!1,access:{has:be=>"volume"in be,get:be=>be.volume,set:(be,$e)=>{be.volume=$e}},metadata:ge},O,U),wa(this,null,re,{kind:"accessor",name:"loading",static:!1,private:!1,access:{has:be=>"loading"in be,get:be=>be.loading,set:(be,$e)=>{be.loading=$e}},metadata:ge},j,me),wa(this,null,we,{kind:"accessor",name:"error",static:!1,private:!1,access:{has:be=>"error"in be,get:be=>be.error,set:(be,$e)=>{be.error=$e}},metadata:ge},H,he),wa(this,null,_e,{kind:"accessor",name:"isFullscreen",static:!1,private:!1,access:{has:be=>"isFullscreen"in be,get:be=>be.isFullscreen,set:(be,$e)=>{be.isFullscreen=$e}},metadata:ge},W,D),wa(this,null,R,{kind:"accessor",name:"controlsVisible",static:!1,private:!1,access:{has:be=>"controlsVisible"in be,get:be=>be.controlsVisible,set:(be,$e)=>{be.controlsVisible=$e}},metadata:ge},Z,Y),wa(null,e={value:i},t,{kind:"class",name:i.name,metadata:ge},null,a),oe=i=e.value,ge&&Object.defineProperty(i,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:ge})}static demo=uvt;static demoGroups=["Media"];#e=l1(this,n,"");get src(){return this.#e}set src(ge){this.#e=ge}#t=(l1(this,o),l1(this,d,""));get poster(){return this.#t}set poster(ge){this.#t=ge}#a=(l1(this,u),l1(this,f,!0));get showControls(){return this.#a}set showControls(ge){this.#a=ge}#i=(l1(this,g),l1(this,b,!1));get autoplay(){return this.#i}set autoplay(ge){this.#i=ge}#r=(l1(this,m),l1(this,M,!1));get loop(){return this.#r}set loop(ge){this.#r=ge}#s=(l1(this,k),l1(this,T,!1));get muted(){return this.#s}set muted(ge){this.#s=ge}#n=(l1(this,S),l1(this,L,!1));get isPlaying(){return this.#n}set isPlaying(ge){this.#n=ge}#o=(l1(this,A),l1(this,C,0));get currentTime(){return this.#o}set currentTime(ge){this.#o=ge}#l=(l1(this,z),l1(this,_,0));get duration(){return this.#l}set duration(ge){this.#l=ge}#c=(l1(this,$),l1(this,O,1));get volume(){return this.#c}set volume(ge){this.#c=ge}#d=(l1(this,U),l1(this,j,!0));get loading(){return this.#d}set loading(ge){this.#d=ge}#u=(l1(this,me),l1(this,H,""));get error(){return this.#u}set error(ge){this.#u=ge}#p=(l1(this,he),l1(this,W,!1));get isFullscreen(){return this.#p}set isFullscreen(ge){this.#p=ge}#h=(l1(this,D),l1(this,Z,!0));get controlsVisible(){return this.#h}set controlsVisible(ge){this.#h=ge}hideControlsTimer=(l1(this,Y),null);videoElement=null;render(){return w`
|
|
22875
22875
|
<style>
|
|
22876
22876
|
:host {
|
|
22877
22877
|
display: block;
|
|
@@ -23163,7 +23163,7 @@ ${a.content}
|
|
|
23163
23163
|
</div>
|
|
23164
23164
|
`:""}
|
|
23165
23165
|
</div>
|
|
23166
|
-
`}async firstUpdated(){this.videoElement=this.shadowRoot?.querySelector("video")||null,document.addEventListener("fullscreenchange",this.handleFullscreenChange)}async disconnectedCallback(){await super.disconnectedCallback(),document.removeEventListener("fullscreenchange",this.handleFullscreenChange),this.hideControlsTimer&&clearTimeout(this.hideControlsTimer)}play(){this.videoElement?.play()}pause(){this.videoElement?.pause()}togglePlay(){this.isPlaying?this.pause():this.play()}seek(ge){this.videoElement&&(this.videoElement.currentTime=ge)}setVolume(ge){this.volume=Math.max(0,Math.min(1,ge)),this.videoElement&&(this.videoElement.volume=this.volume)}toggleFullscreen(){let ge=this.shadowRoot?.querySelector(".video-container");ge&&(this.isFullscreen?document.exitFullscreen?.():ge.requestFullscreen?.())}handleLoadedMetadata(){this.videoElement&&(this.duration=this.videoElement.duration,this.loading=!1)}handlePlay(){this.isPlaying=!0,this.scheduleHideControls()}handlePause(){this.isPlaying=!1,this.controlsVisible=!0}handleEnded(){this.isPlaying=!1,this.controlsVisible=!0}handleTimeUpdate(){this.videoElement&&(this.currentTime=this.videoElement.currentTime)}handleError(){this.error="Failed to load video",this.loading=!1}handleOverlayClick(){this.togglePlay()}handleSeek(ge){let be=ge.currentTarget.getBoundingClientRect(),$e=(ge.clientX-be.left)/be.width;this.seek($e*this.duration)}handleVolumeChange(ge){let be=parseFloat(ge.target.value);this.setVolume(be),this.muted=be===0}toggleMute(){this.muted=!this.muted,this.videoElement&&(this.videoElement.muted=this.muted)}handleMouseMove(){this.controlsVisible=!0,this.scheduleHideControls()}handleMouseLeave(){this.isPlaying&&(this.controlsVisible=!1)}scheduleHideControls(){this.hideControlsTimer&&clearTimeout(this.hideControlsTimer),this.isPlaying&&(this.hideControlsTimer=setTimeout(()=>{this.controlsVisible=!1},3e3))}handleFullscreenChange=()=>{this.isFullscreen=!!document.fullscreenElement};formatTime(ge){if(!isFinite(ge)||ge<0)return"0:00";let be=Math.floor(ge/60),$e=Math.floor(ge%60);return`${be}:${$e.toString().padStart(2,"0")}`}static{
|
|
23166
|
+
`}async firstUpdated(){this.videoElement=this.shadowRoot?.querySelector("video")||null,document.addEventListener("fullscreenchange",this.handleFullscreenChange)}async disconnectedCallback(){await super.disconnectedCallback(),document.removeEventListener("fullscreenchange",this.handleFullscreenChange),this.hideControlsTimer&&clearTimeout(this.hideControlsTimer)}play(){this.videoElement?.play()}pause(){this.videoElement?.pause()}togglePlay(){this.isPlaying?this.pause():this.play()}seek(ge){this.videoElement&&(this.videoElement.currentTime=ge)}setVolume(ge){this.volume=Math.max(0,Math.min(1,ge)),this.videoElement&&(this.videoElement.volume=this.volume)}toggleFullscreen(){let ge=this.shadowRoot?.querySelector(".video-container");ge&&(this.isFullscreen?document.exitFullscreen?.():ge.requestFullscreen?.())}handleLoadedMetadata(){this.videoElement&&(this.duration=this.videoElement.duration,this.loading=!1)}handlePlay(){this.isPlaying=!0,this.scheduleHideControls()}handlePause(){this.isPlaying=!1,this.controlsVisible=!0}handleEnded(){this.isPlaying=!1,this.controlsVisible=!0}handleTimeUpdate(){this.videoElement&&(this.currentTime=this.videoElement.currentTime)}handleError(){this.error="Failed to load video",this.loading=!1}handleOverlayClick(){this.togglePlay()}handleSeek(ge){let be=ge.currentTarget.getBoundingClientRect(),$e=(ge.clientX-be.left)/be.width;this.seek($e*this.duration)}handleVolumeChange(ge){let be=parseFloat(ge.target.value);this.setVolume(be),this.muted=be===0}toggleMute(){this.muted=!this.muted,this.videoElement&&(this.videoElement.muted=this.muted)}handleMouseMove(){this.controlsVisible=!0,this.scheduleHideControls()}handleMouseLeave(){this.isPlaying&&(this.controlsVisible=!1)}scheduleHideControls(){this.hideControlsTimer&&clearTimeout(this.hideControlsTimer),this.isPlaying&&(this.hideControlsTimer=setTimeout(()=>{this.controlsVisible=!1},3e3))}handleFullscreenChange=()=>{this.isFullscreen=!!document.fullscreenElement};formatTime(ge){if(!isFinite(ge)||ge<0)return"0:00";let be=Math.floor(ge/60),$e=Math.floor(ge%60);return`${be}:${$e.toString().padStart(2,"0")}`}static{l1(i,a)}};return oe=i})()});var fvt=v(()=>{KV()});var Yr,yw=v(()=>{pe();Yr=class{static pdfjsLib;static initialized=!1;static async initialize(){this.initialized||(this.pdfjsLib=await import("https://cdn.jsdelivr.net/npm/pdfjs-dist@4.0.379/+esm"),this.pdfjsLib.GlobalWorkerOptions.workerSrc="https://cdn.jsdelivr.net/npm/pdfjs-dist@4.0.379/build/pdf.worker.mjs",this.initialized=!0)}static async loadDocument(e){return await this.initialize(),await this.pdfjsLib.getDocument(e).promise}static releaseDocument(e){}}});var mvt,gvt=v(()=>{pe();mvt=[p.defaultStyles,X`
|
|
23167
23167
|
:host {
|
|
23168
23168
|
display: block;
|
|
23169
23169
|
width: 100%;
|
|
@@ -27249,7 +27249,7 @@ Password: ${e.password}`):console.error("Invalid login data structure:",t.detail
|
|
|
27249
27249
|
<span class="file-name">${L.name}</span>
|
|
27250
27250
|
</div>
|
|
27251
27251
|
${A&&q&&L.children?this.renderTree(L.children):""}
|
|
27252
|
-
`}getFileIcon(L){if(L.type==="directory")return this.expandedPaths.has(L.path)?"lucide:folderOpen":"lucide:folder";switch(L.name.split(".").pop()?.toLowerCase()){case"ts":case"tsx":return"lucide:fileCode";case"js":case"jsx":return"lucide:fileCode";case"json":return"lucide:fileJson";case"html":return"lucide:fileCode";case"css":case"scss":case"less":return"lucide:fileCode";case"md":return"lucide:fileText";case"png":case"jpg":case"jpeg":case"gif":case"svg":return"lucide:image";default:return"lucide:file"}}getFileIconClass(L){if(L.type==="directory")return"folder";switch(L.name.split(".").pop()?.toLowerCase()){case"ts":case"tsx":return"typescript";case"js":case"jsx":return"javascript";case"json":return"json";case"html":return"html";case"css":case"scss":case"less":return"css";case"md":return"markdown";default:return"file"}}async handleItemClick(L,A){L.stopPropagation(),A.type==="directory"?await this.toggleDirectory(A):(this.selectedPath=A.path,this.dispatchEvent(new CustomEvent("file-select",{detail:{path:A.path,name:A.name},bubbles:!0,composed:!0})))}async toggleDirectory(L){this.expandedPaths.has(L.path)?this.expandedPaths.delete(L.path):(this.expandedPaths.add(L.path),(!L.children||L.children.length===0)&&await this.loadDirectoryContents(L)),this.requestUpdate()}async loadDirectoryContents(L){if(this.executionEnvironment)try{let A=await this.executionEnvironment.readDir(L.path);L.children=this.sortEntries(A).map(q=>({...q,level:L.level+1,expanded:!1,children:q.type==="directory"?[]:void 0}))}catch(A){console.error(`Failed to load directory ${L.path}:`,A)}}async handleContextMenu(L,A){L.preventDefault(),L.stopPropagation();let q=[];A.type==="directory"&&q.push({name:"New File",iconName:"filePlus",action:async()=>this.createNewFile(A.path)},{name:"New Folder",iconName:"folderPlus",action:async()=>this.createNewFolder(A.path)},{divider:!0}),q.push({name:"Rename",iconName:"pencil",action:async()=>this.renameItem(A)},{name:"Duplicate",iconName:"files",action:async()=>this.duplicateItem(A)},{name:"Copy",iconName:"copy",action:async()=>this.copyItem(A)}),A.type==="directory"&&this.clipboardPath&&q.push({name:"Paste",iconName:"clipboard",action:async()=>this.pasteItem(A.path)}),q.push({divider:!0},{name:"Delete",iconName:"trash2",action:async()=>this.deleteItem(A)}),await Wt.openContextMenuWithOptions(L,q)}async handleEmptySpaceContextMenu(L){if(L.target.closest(".tree-item"))return;L.preventDefault(),L.stopPropagation();let q=[{name:"New File",iconName:"filePlus",action:async()=>this.createNewFile("/")},{name:"New Folder",iconName:"folderPlus",action:async()=>this.createNewFolder("/")}];this.clipboardPath&&q.push({divider:!0},{name:"Paste",iconName:"clipboard",action:async()=>this.pasteItem("/")}),await Wt.openContextMenuWithOptions(L,q)}async showInputModal(L){return new Promise(async A=>{let q=await
|
|
27252
|
+
`}getFileIcon(L){if(L.type==="directory")return this.expandedPaths.has(L.path)?"lucide:folderOpen":"lucide:folder";switch(L.name.split(".").pop()?.toLowerCase()){case"ts":case"tsx":return"lucide:fileCode";case"js":case"jsx":return"lucide:fileCode";case"json":return"lucide:fileJson";case"html":return"lucide:fileCode";case"css":case"scss":case"less":return"lucide:fileCode";case"md":return"lucide:fileText";case"png":case"jpg":case"jpeg":case"gif":case"svg":return"lucide:image";default:return"lucide:file"}}getFileIconClass(L){if(L.type==="directory")return"folder";switch(L.name.split(".").pop()?.toLowerCase()){case"ts":case"tsx":return"typescript";case"js":case"jsx":return"javascript";case"json":return"json";case"html":return"html";case"css":case"scss":case"less":return"css";case"md":return"markdown";default:return"file"}}async handleItemClick(L,A){L.stopPropagation(),A.type==="directory"?await this.toggleDirectory(A):(this.selectedPath=A.path,this.dispatchEvent(new CustomEvent("file-select",{detail:{path:A.path,name:A.name},bubbles:!0,composed:!0})))}async toggleDirectory(L){this.expandedPaths.has(L.path)?this.expandedPaths.delete(L.path):(this.expandedPaths.add(L.path),(!L.children||L.children.length===0)&&await this.loadDirectoryContents(L)),this.requestUpdate()}async loadDirectoryContents(L){if(this.executionEnvironment)try{let A=await this.executionEnvironment.readDir(L.path);L.children=this.sortEntries(A).map(q=>({...q,level:L.level+1,expanded:!1,children:q.type==="directory"?[]:void 0}))}catch(A){console.error(`Failed to load directory ${L.path}:`,A)}}async handleContextMenu(L,A){L.preventDefault(),L.stopPropagation();let q=[];A.type==="directory"&&q.push({name:"New File",iconName:"filePlus",action:async()=>this.createNewFile(A.path)},{name:"New Folder",iconName:"folderPlus",action:async()=>this.createNewFolder(A.path)},{divider:!0}),q.push({name:"Rename",iconName:"pencil",action:async()=>this.renameItem(A)},{name:"Duplicate",iconName:"files",action:async()=>this.duplicateItem(A)},{name:"Copy",iconName:"copy",action:async()=>this.copyItem(A)}),A.type==="directory"&&this.clipboardPath&&q.push({name:"Paste",iconName:"clipboard",action:async()=>this.pasteItem(A.path)}),q.push({divider:!0},{name:"Delete",iconName:"trash2",action:async()=>this.deleteItem(A)}),await Wt.openContextMenuWithOptions(L,q)}async handleEmptySpaceContextMenu(L){if(L.target.closest(".tree-item"))return;L.preventDefault(),L.stopPropagation();let q=[{name:"New File",iconName:"filePlus",action:async()=>this.createNewFile("/")},{name:"New Folder",iconName:"folderPlus",action:async()=>this.createNewFolder("/")}];this.clipboardPath&&q.push({divider:!0},{name:"Paste",iconName:"clipboard",action:async()=>this.pasteItem("/")}),await Wt.openContextMenuWithOptions(L,q)}async showInputModal(L){return new Promise(async A=>{let q=await o1.createAndShow({heading:L.heading,width:"small",content:w`
|
|
27253
27253
|
<dees-input-text
|
|
27254
27254
|
.label=${L.label}
|
|
27255
27255
|
.value=${L.value||""}
|
|
@@ -29133,7 +29133,7 @@ html\`<dees-button>Click me</dees-button>\`</code></pre>
|
|
|
29133
29133
|
<h1>Markdown Preview</h1>
|
|
29134
29134
|
<p>Content will appear here when markdown is parsed.</p>
|
|
29135
29135
|
</div>
|
|
29136
|
-
`}async firstUpdated(n){await super.firstUpdated(n),this.outlet=this.shadowRoot.querySelector(".outlet")}async updateHtmlText(n){await this.updateComplete,this.outlet||(this.outlet=this.shadowRoot.querySelector(".outlet")),this.outlet.innerHTML=n}static{lWt(i,a)}};return s=i})()});var twt=v(()=>{ewt()});var awt=v(()=>{Oj()});var iwt=v(()=>{Hj()});var rwt=v(()=>{qxt();Vxt();jxt();Wxt();Gxt();Xxt();twt();awt();iwt()});var swt=v(()=>{});var nwt=v(()=>{swt()});var owt=v(()=>{pe()});var lwt=v(()=>{owt()});var cwt=v(()=>{zi();Ve();Uft();amt();bmt();Lmt();tgt();rgt();hbt();avt();hyt();Myt();Pw();vxt();Nxt();rwt();nwt();lwt()});var dwt,uwt=v(()=>{dwt={name:"@design.estate/dees-catalog",version:"3.43.1",description:"A comprehensive library that provides dynamic web components for building sophisticated and modern web applications using JavaScript and TypeScript."}});var sa={};Qe(sa,{CanvasPool:()=>jl,DeesActionbar:()=>$mt,DeesAppui:()=>Pft,DeesAppuiActivitylog:()=>Pht,DeesAppuiBar:()=>Zht,DeesAppuiBottombar:()=>Jht,DeesAppuiMaincontent:()=>Eft,DeesAppuiMainmenu:()=>Cft,DeesAppuiProfileDropdown:()=>Yht,DeesAppuiSecondarymenu:()=>Lft,DeesAppuiTabs:()=>Dft,DeesAudioViewer:()=>cvt,DeesBadge:()=>Nmt,DeesButton:()=>xft,DeesButtonExit:()=>Yft,DeesButtonGroup:()=>Jft,DeesChartArea:()=>dmt,DeesChartLog:()=>fmt,DeesChips:()=>gbt,DeesContextmenu:()=>Wt,DeesDashboardgrid:()=>Nbt,DeesDataviewCodebox:()=>xmt,DeesDataviewStatusobject:()=>kmt,DeesForm:()=>bft,DeesFormSubmit:()=>Zx,DeesFormattingMenu:()=>gw,DeesHeading:()=>Hbt,DeesHint:()=>Hmt,DeesIcon:()=>_ht,DeesImageViewer:()=>svt,DeesInputBase:()=>Ze,DeesInputCheckbox:()=>Ox,DeesInputCode:()=>Vx,DeesInputDatepicker:()=>jx,DeesInputDropdown:()=>Xx,DeesInputFileupload:()=>Kx,DeesInputIban:()=>tw,DeesInputList:()=>pgt,DeesInputMultitoggle:()=>aw,DeesInputPhone:()=>rw,DeesInputProfilePicture:()=>pbt,DeesInputQuantitySelector:()=>Wx,DeesInputRadiogroup:()=>Gx,DeesInputRichtext:()=>kgt,DeesInputTags:()=>Dgt,DeesInputText:()=>Ux,DeesInputToggle:()=>sw,DeesInputTypelist:()=>nw,DeesInputWysiwyg:()=>qV,DeesLabel:()=>f9t,DeesMobilenavigation:()=>qft,DeesModal:()=>l1,DeesPagination:()=>Gbt,DeesPanel:()=>r9t,DeesPdf:()=>Tvt,DeesPdfPreview:()=>Pvt,DeesPdfViewer:()=>yvt,DeesPreview:()=>zvt,DeesProgressbar:()=>Gmt,DeesSearchbar:()=>zxt,DeesShoppingProductcard:()=>C9t,DeesSimpleAppDash:()=>cxt,DeesSimpleLogin:()=>mxt,DeesSlashMenu:()=>fw,DeesSpeechbubble:()=>vyt,DeesSpinner:()=>Zmt,DeesStatsGrid:()=>wft,DeesStepper:()=>Jbt,DeesTable:()=>lw,DeesTheme:()=>_xt,DeesTileAudio:()=>Yvt,DeesTileBase:()=>Ma,DeesTileFolder:()=>dyt,DeesTileImage:()=>Vvt,DeesTileNote:()=>ryt,DeesTilePdf:()=>xw,DeesTileVideo:()=>Jvt,DeesToast:()=>Ht,DeesUpdater:()=>Nw,DeesVideoViewer:()=>hvt,DeesWindowControls:()=>Ght,DeesWindowLayer:()=>Si,DeesWorkspace:()=>Bxt,DeesWorkspaceBottombar:()=>Rxt,DeesWorkspaceDiffEditor:()=>Oxt,DeesWorkspaceFiletree:()=>Ixt,DeesWorkspaceMarkdown:()=>Yxt,DeesWorkspaceMarkdownoutlet:()=>Jxt,DeesWorkspaceMonaco:()=>m9t,DeesWorkspaceTerminal:()=>$j,DeesWorkspaceTerminalPreview:()=>Fxt,DeesWysiwygBlock:()=>sbt,PROGRAMMING_LANGUAGES:()=>I8,PdfManager:()=>Yr,PerformanceMonitor:()=>Ul,TerminalTabManager:()=>ld,TypeScriptIntelliSenseManager:()=>hd,ViewRegistry:()=>A8,WebContainerEnvironment:()=>x4,WysiwygBlockOperations:()=>F8,WysiwygBlocks:()=>N2,WysiwygConverters:()=>$i,WysiwygDragDropHandler:()=>Q8,WysiwygFormatting:()=>Ws,WysiwygHistory:()=>K8,WysiwygInputHandler:()=>Z8,WysiwygKeyboardHandler:()=>X8,WysiwygModalManager:()=>Y8,WysiwygSelection:()=>Be,WysiwygShortcuts:()=>W1,ZIndexRegistry:()=>Lf,colors:()=>Q0,commitinfo:()=>dwt,componentZIndex:()=>tHt,debounce:()=>kUt,formatFileSize:()=>TUt,getZIndex:()=>eHt,icons:()=>Ix,isInViewport:()=>_Ut,registerAllBlockHandlers:()=>ebt,themeDefaultStyles:()=>ke,themeDefaults:()=>ro,throttle:()=>CUt,tileBaseStyles:()=>ra,wysiwygStyles:()=>PV,zIndexLayers:()=>c2,zIndexRegistry:()=>p1});var ka=v(()=>{cwt();Ci();uwt()});var pwt=pt(t2=>{"use strict";Object.defineProperty(t2,"__esModule",{value:!0}),t2.getFirstTrueOrFalse=t2.timeoutAndContinue=t2.timeoutWrap=t2.map=t2.rejectedPromise=t2.resolvedPromise=t2.defer=t2.Deferred=void 0;var Fw=class{constructor(){this.promise=new Promise((e,a)=>{this.resolve=i=>{this.status="fulfilled",this.stoppedAt=Date.now(),e(i)},this.reject=i=>{this.status="rejected",this.stoppedAt=Date.now(),a(i)},this.startedAt=Date.now(),this.status="pending"})}get duration(){return this.stoppedAt?this.stoppedAt-this.startedAt:Date.now()-this.startedAt}};t2.Deferred=Fw,t2.defer=()=>new Fw,t2.resolvedPromise=t=>Promise.resolve(t),t2.rejectedPromise=t=>Promise.reject(t),t2.map=async(t,e)=>{let a=[],i=[];for(let r of t){let s=e(r);a.push(s),s.then(n=>{i.push(n)})}return await Promise.all(a),i},t2.timeoutWrap=async(t,e,a=!0)=>new Promise((i,r)=>{setTimeout(()=>{a?r(new Error("timeout")):i(null)},e),t.then(i,r)}),t2.timeoutAndContinue=async(t,e=6e4)=>t2.timeoutWrap(t,e,!1),t2.getFirstTrueOrFalse=async t=>{let e=t2.defer();for(let a of t)a.then(i=>{i===!0&&e.resolve(!0)});return Promise.all(t).then(()=>{e.resolve(!1)}),e.promise}});var Jl={};Qe(Jl,{TypedSocket:()=>Wj});var jj={};Qe(jj,{sha256FromString:()=>pWt});var md={};Qe(md,{Smartenv:()=>Vj});var qj=B1(pwt(),1);var Vj=class{constructor(){this.loadedScripts=[]}async getEnvAwareModule(e){if(this.isNode)return await this.getSafeNodeModule(e.nodeModuleName);if(this.isBrowser)return await this.getSafeWebModule(e.webUrlArg,e.getFunction);console.error("platform for loading not supported by smartenv")}async getSafeNodeModule(e){if(!this.isNode){console.error(`You tried to load a node module in a wrong context: ${e}`);return}return new Function(`return import('${e}')`)()}async getSafeWebModule(e,a){if(!this.isBrowser){console.error("You tried to load a web module in a wrong context");return}if(this.loadedScripts.includes(e))return a();this.loadedScripts.push(e);let i=qj.defer();if(globalThis.importScripts)globalThis.importScripts(e),i.resolve();else{let r=document.createElement("script");r.onload=()=>{i.resolve()},r.src=e,document.head.appendChild(r)}return await i.promise,a()}get runtimeEnv(){return typeof process<"u"?"node":"browser"}get isBrowser(){return!this.isNode}get userAgent(){return this.isBrowser?navigator.userAgent:"undefined"}get isNode(){return this.runtimeEnv==="node"}get nodeVersion(){return process.version}get isCI(){return this.isNode?!!process.env.CI:!1}async isMacAsync(){return this.isNode?(await this.getSafeNodeModule("os")).platform()==="darwin":!1}async isWindowsAsync(){return this.isNode?(await this.getSafeNodeModule("os")).platform()==="win32":!1}async isLinuxAsync(){return this.isNode?(await this.getSafeNodeModule("os")).platform()==="linux":!1}async printEnv(){this.isNode?(console.log("running on NODE"),console.log("node version is "+this.nodeVersion)):(console.log("running on BROWSER"),console.log("browser is "+this.userAgent))}};var uWt=t=>{let e=[],a=new DataView(t);for(let i=0;i<a.byteLength;i+=4){let s=a.getUint32(i).toString(16),n="00000000",o=(n+s).slice(-n.length);e.push(o)}return e.join("")},pWt=async t=>{let e=new md.Smartenv;if(e.isBrowser){let a=new TextEncoder().encode(t),i=await crypto.subtle.digest("SHA-256",a);return uWt(i)}else if(e.isNode)return await(await e.getSafeNodeModule("@pushrocks/smarthash")).sha256FromString(t)};_3();B4();Ri();l0();a2();pi();i0();X9();var Uj="__typedsocket_tag__";function fWt(t){return{peer:t,async getTagById(e){if(!t.tags.has(e))return;let a=t.data.get(`${Uj}${e}`);return{id:e,payload:a}}}}var Wj=class t{static async createClient(e,a,i={}){let s={...{autoReconnect:!0,maxRetries:100,initialBackoffMs:1e3,maxBackoffMs:6e4},...i},n=new t("client",e);return n.clientOptions=s,n.serverUrl=a,n.currentBackoff=s.initialBackoffMs,await n.connect(),n}static{this.useWindowLocationOriginUrl=()=>yi.Smarturl.createFromUrl(globalThis.location.origin).toString()}static fromSmartServe(e,a){let i=new Map;t.registerTagHandlers(a);let r=new t("server",a);return r.smartServeRef=e,r.smartServeConnectionWrappers=i,r}static registerTagHandlers(e){e.addTypedHandler(new P1.TypedHandler("__typedsocket_setTag",async(a,i)=>{let r=i?.localData?.peer;return r?(r.tags.add(a.name),r.data.set(`${Uj}${a.name}`,a.payload),{success:!0}):(console.warn("setTag: No peer found in request context"),{success:!1})})),e.addTypedHandler(new P1.TypedHandler("__typedsocket_removeTag",async(a,i)=>{let r=i?.localData?.peer;return r?(r.tags.delete(a.name),r.data.delete(`${Uj}${a.name}`),{success:!0}):(console.warn("removeTag: No peer found in request context"),{success:!1})}))}constructor(e,a){this.statusSubject=new yt.rxjs.Subject,this.connectionStatus="new",this.websocket=null,this.clientOptions=null,this.serverUrl="",this.retryCount=0,this.currentBackoff=1e3,this.pendingRequests=new Map,this.smartServeRef=null,this.smartServeConnectionWrappers=new Map,this.side=e,this.typedrouter=a}async connect(){let e=He.defer();this.updateStatus("connecting");let a=this.toWebSocketUrl(this.serverUrl);console.log(`TypedSocket connecting to ${a}...`),this.websocket=new WebSocket(a);let i=setTimeout(()=>{this.connectionStatus!=="connected"&&(console.warn("TypedSocket connection timeout"),this.websocket?.close(),e.reject(new Error("Connection timeout")))},1e4);this.websocket.onopen=()=>{clearTimeout(i),console.log("TypedSocket connected!"),this.updateStatus("connected"),this.retryCount=0,this.currentBackoff=this.clientOptions?.initialBackoffMs??1e3,e.resolve()},this.websocket.onmessage=async r=>{await this.handleMessage(r.data)},this.websocket.onclose=()=>{clearTimeout(i),this.handleDisconnect()},this.websocket.onerror=r=>{console.error("TypedSocket WebSocket error:",r)};try{await e.promise}catch(r){if(clearTimeout(i),this.clientOptions?.autoReconnect)await this.scheduleReconnect();else throw r}}toWebSocketUrl(e){let a=new URL(e);return`${a.protocol==="https:"?"wss:":"ws:"}//${a.host}${a.pathname}`}async handleMessage(e){try{let a=typeof e=="string"?e:new TextDecoder().decode(e),i=Bt.parse(a);if(i.correlation?.id&&this.pendingRequests.has(i.correlation.id)){let s=this.pendingRequests.get(i.correlation.id);this.pendingRequests.delete(i.correlation.id),s.resolve(i);return}let r=await this.typedrouter.routeAndAddResponse(i);r&&this.websocket?.readyState===WebSocket.OPEN&&this.websocket.send(Bt.stringify(r))}catch(a){console.error("TypedSocket failed to process message:",a)}}handleDisconnect(){this.connectionStatus!=="disconnected"&&(this.updateStatus("disconnected"),this.clientOptions?.autoReconnect&&this.retryCount<this.clientOptions.maxRetries&&this.scheduleReconnect())}async scheduleReconnect(){if(!this.clientOptions)return;this.updateStatus("reconnecting"),this.retryCount++;let e=this.currentBackoff*.2*(Math.random()*2-1),a=Math.min(this.currentBackoff+e,this.clientOptions.maxBackoffMs);console.log(`TypedSocket reconnecting in ${Math.round(a)}ms (attempt ${this.retryCount}/${this.clientOptions.maxRetries})`),await rt.delayFor(a),this.currentBackoff=Math.min(this.currentBackoff*2,this.clientOptions.maxBackoffMs);try{await this.connect()}catch(i){console.error("TypedSocket reconnection failed:",i)}}updateStatus(e){this.connectionStatus!==e&&(this.connectionStatus=e,this.statusSubject.next(e))}async sendRequest(e){if(!this.websocket||this.websocket.readyState!==WebSocket.OPEN)throw new Error("WebSocket not connected");return new Promise((a,i)=>{let r=setTimeout(()=>{this.pendingRequests.delete(e.correlation.id),i(new Error("Request timeout"))},3e4);this.pendingRequests.set(e.correlation.id,{resolve:s=>{clearTimeout(r),a(s)},reject:s=>{clearTimeout(r),i(s)}}),this.websocket.send(Bt.stringify(e))})}createTypedRequest(e,a){let i=async r=>{if(this.side==="client")return this.sendRequest(r);if(!this.smartServeRef)throw new Error("Server not initialized");let s=a;if(!s){let o=this.smartServeRef.getWebSocketConnections();if(o.length===1){let l=o[0];s=this.getOrCreateWrapper(l)}else throw o.length===0?new Error("No WebSocket connections available"):new Error("Multiple connections available - specify targetConnection")}let n=await this.typedrouter.fireEventInterestMap.addInterest(r.correlation.id,r);return s.peer.send(Bt.stringify(r)),await n.interestFullfilled};return new P1.TypedRequest(new P1.TypedTarget({postMethod:i}),e)}getStatus(){return this.connectionStatus}async stop(){this.side==="client"?(this.clientOptions&&(this.clientOptions.autoReconnect=!1),this.websocket&&(this.websocket.close(),this.websocket=null),this.pendingRequests.clear()):this.smartServeConnectionWrappers.clear()}async setTag(e,a){if(this.side!=="client")throw new Error("setTag is only available on clients");if(!(await this.createTypedRequest("__typedsocket_setTag").fire({name:e,payload:a})).success)throw new Error("Failed to set tag on server")}async removeTag(e){if(this.side!=="client")throw new Error("removeTag is only available on clients");if(!(await this.createTypedRequest("__typedsocket_removeTag").fire({name:e})).success)throw new Error("Failed to remove tag on server")}getOrCreateWrapper(e){let a=this.smartServeConnectionWrappers.get(e.id);return a||(a=fWt(e),this.smartServeConnectionWrappers.set(e.id,a)),a}async findAllTargetConnections(e){if(this.side!=="server"||!this.smartServeRef)throw new Error("findAllTargetConnections is only available on servers");let a=[];for(let i of this.smartServeRef.getWebSocketConnections()){let r=this.getOrCreateWrapper(i);await e(r)&&a.push(r)}return a}async findTargetConnection(e){return(await this.findAllTargetConnections(e))[0]}async findAllTargetConnectionsByTag(e,a){if(this.side!=="server"||!this.smartServeRef)throw new Error("findAllTargetConnectionsByTag is only available on servers");let i=this.smartServeRef.getWebSocketConnectionsByTag(e),r=[];for(let s of i){let n=this.getOrCreateWrapper(s);if(a!==void 0){let o=await n.getTagById(e);if(Bt.stringify(o?.payload)!==Bt.stringify(a))continue}r.push(n)}return r}async findTargetConnectionByTag(e,a){return(await this.findAllTargetConnectionsByTag(e,a))[0]}};pe();ka();var Ft=st;B4();var hwt={};var fwt={};var tn=new Ft.plugins.smartstate.Smartstate,ni=await tn.getStatePart("login",{identity:null,isLoggedIn:!1},"persistent"),f2=await tn.getStatePart("stats",{serverStats:null,emailStats:null,dnsStats:null,securityMetrics:null,lastUpdated:0,isLoading:!1,error:null},"soft"),Qr=await tn.getStatePart("config",{config:null,isLoading:!1,error:null}),mWt=()=>{let t=typeof window<"u"?window.location.pathname:"/",e=["overview","network","emails","logs","configuration","security","certificates","remoteingress"],i=t.split("/").filter(Boolean)[0];return e.includes(i)?i:"overview"},Oa=await tn.getStatePart("ui",{activeView:mWt(),sidebarCollapsed:!1,autoRefresh:!0,refreshInterval:1e3,theme:"light"}),an=await tn.getStatePart("logs",{recentLogs:[],isStreaming:!1,filters:{}},"soft"),Xr=await tn.getStatePart("network",{connections:[],connectionsByIP:{},throughputRate:{bytesInPerSecond:0,bytesOutPerSecond:0},totalBytes:{in:0,out:0},topIPs:[],throughputByIP:[],throughputHistory:[],requestsPerSecond:0,requestsTotal:0,lastUpdated:0,isLoading:!1,error:null},"soft"),$1=await tn.getStatePart("emailOps",{currentView:"queued",queuedEmails:[],sentEmails:[],failedEmails:[],securityIncidents:[],bounceRecords:[],suppressionList:[],selectedEmailId:null,isLoading:!1,error:null,lastUpdated:0},"soft"),F2=await tn.getStatePart("certificates",{certificates:[],summary:{total:0,valid:0,expiring:0,expired:0,failed:0,unknown:0},isLoading:!1,error:null,lastUpdated:0},"soft"),L1=await tn.getStatePart("remoteIngress",{edges:[],statuses:[],selectedEdgeId:null,newEdgeId:null,isLoading:!1,error:null,lastUpdated:0},"soft"),S1=()=>({identity:ni.getState().identity}),bwt=ni.createAction(async(t,e)=>{let a=new Ft.plugins.typedrequest.TypedRequest("/typedrequest","adminLoginWithUsernameAndPassword");try{let i=await a.fire({username:e.username,password:e.password});return i.identity?{identity:i.identity,isLoggedIn:!0}:t.getState()}catch(i){return console.error("Login failed:",i),t.getState()}}),Zj=ni.createAction(async t=>{let e=S1();if(!e.identity)return t.getState();let a=new Ft.plugins.typedrequest.TypedRequest("/typedrequest","adminLogout");try{await a.fire({identity:e.identity})}catch(i){console.error("Logout error:",i)}return{identity:null,isLoggedIn:!1}}),ec=f2.createAction(async t=>{let e=S1(),a=t.getState();try{let r=await new Ft.plugins.typedrequest.TypedRequest("/typedrequest","getCombinedMetrics").fire({identity:e.identity,sections:{server:!0,email:!0,dns:!0,security:!0,network:!1}});return{serverStats:r.metrics.server||a.serverStats,emailStats:r.metrics.email||a.emailStats,dnsStats:r.metrics.dns||a.dnsStats,securityMetrics:r.metrics.security||a.securityMetrics,lastUpdated:Date.now(),isLoading:!1,error:null}}catch(i){return{...a,isLoading:!1,error:i.message||"Failed to fetch statistics"}}}),tc=Qr.createAction(async t=>{let e=S1(),a=t.getState();try{return{config:(await new Ft.plugins.typedrequest.TypedRequest("/typedrequest","getConfiguration").fire({identity:e.identity})).config,isLoading:!1,error:null}}catch(i){return{...a,isLoading:!1,error:i.message||"Failed to fetch configuration"}}}),Rw=an.createAction(async(t,e)=>{let a=S1(),r=await new Ft.plugins.typedrequest.TypedRequest("/typedrequest","getRecentLogs").fire({identity:a.identity,limit:e.limit||100,level:e.level,category:e.category});return{...t.getState(),recentLogs:r.logs}}),xf2=Oa.createAction(async t=>{let e=t.getState();return{...e,autoRefresh:!e.autoRefresh}}),wf2=Oa.createAction(async(t,e)=>{let a=t.getState();return e==="network"&&a.activeView!=="network"&&setTimeout(()=>{Xr.dispatchAction(Xj,null)},100),e==="certificates"&&a.activeView!=="certificates"&&setTimeout(()=>{F2.dispatchAction(Co,null)},100),e==="remoteingress"&&a.activeView!=="remoteingress"&&setTimeout(()=>{L1.dispatchAction(S4,null)},100),{...a,activeView:e}}),Xj=Xr.createAction(async t=>{let e=S1(),a=t.getState();try{let r=await new Ft.plugins.typedrequest.TypedRequest("/typedrequest","getActiveConnections").fire({identity:e.identity}),n=await new Ft.plugins.typedrequest.TypedRequest("/typedrequest","getNetworkStats").fire({identity:e.identity}),o={};return n.connectionsByIP&&Array.isArray(n.connectionsByIP)?n.connectionsByIP.forEach(l=>{o[l.ip]=l.count}):r.connections.forEach(l=>{let d=l.remoteAddress;o[d]=(o[d]||0)+1}),{connections:r.connections,connectionsByIP:o,throughputRate:n.throughputRate||{bytesInPerSecond:0,bytesOutPerSecond:0},totalBytes:n.totalDataTransferred?{in:n.totalDataTransferred.bytesIn,out:n.totalDataTransferred.bytesOut}:{in:0,out:0},topIPs:n.topIPs||[],throughputByIP:n.throughputByIP||[],throughputHistory:n.throughputHistory||[],requestsPerSecond:n.requestsPerSecond||0,requestsTotal:n.requestsTotal||0,lastUpdated:Date.now(),isLoading:!1,error:null}}catch(i){return console.error("Failed to fetch network stats:",i),{...a,isLoading:!1,error:i instanceof Error?i.message:"Failed to fetch network stats"}}}),Mf2=$1.createAction(async(t,e)=>({...t.getState(),currentView:e})),Qj=$1.createAction(async t=>{let e=S1(),a=t.getState();try{let r=await new Ft.plugins.typedrequest.TypedRequest("/typedrequest","getQueuedEmails").fire({identity:e.identity,status:"pending",limit:100});return{...a,queuedEmails:r.items,isLoading:!1,error:null,lastUpdated:Date.now()}}catch(i){return{...a,isLoading:!1,error:i instanceof Error?i.message:"Failed to fetch queued emails"}}}),vwt=$1.createAction(async t=>{let e=S1(),a=t.getState();try{let r=await new Ft.plugins.typedrequest.TypedRequest("/typedrequest","getSentEmails").fire({identity:e.identity,limit:100});return{...a,sentEmails:r.items,isLoading:!1,error:null,lastUpdated:Date.now()}}catch(i){return{...a,isLoading:!1,error:i instanceof Error?i.message:"Failed to fetch sent emails"}}}),Kj=$1.createAction(async t=>{let e=S1(),a=t.getState();try{let r=await new Ft.plugins.typedrequest.TypedRequest("/typedrequest","getFailedEmails").fire({identity:e.identity,limit:100});return{...a,failedEmails:r.items,isLoading:!1,error:null,lastUpdated:Date.now()}}catch(i){return{...a,isLoading:!1,error:i instanceof Error?i.message:"Failed to fetch failed emails"}}}),ywt=$1.createAction(async t=>{let e=S1(),a=t.getState();try{let r=await new Ft.plugins.typedrequest.TypedRequest("/typedrequest","getSecurityIncidents").fire({identity:e.identity,limit:100});return{...a,securityIncidents:r.incidents,isLoading:!1,error:null,lastUpdated:Date.now()}}catch(i){return{...a,isLoading:!1,error:i instanceof Error?i.message:"Failed to fetch security incidents"}}}),gWt=$1.createAction(async t=>{let e=S1(),a=t.getState();try{let r=await new Ft.plugins.typedrequest.TypedRequest("/typedrequest","getBounceRecords").fire({identity:e.identity,limit:100});return{...a,bounceRecords:r.records,suppressionList:r.suppressionList,isLoading:!1,error:null,lastUpdated:Date.now()}}catch(i){return{...a,isLoading:!1,error:i instanceof Error?i.message:"Failed to fetch bounce records"}}}),xwt=$1.createAction(async(t,e)=>{let a=S1(),i=t.getState();try{return(await new Ft.plugins.typedrequest.TypedRequest("/typedrequest","resendEmail").fire({identity:a.identity,emailId:e})).success&&(await $1.dispatchAction(Kj,null),await $1.dispatchAction(Qj,null)),t.getState()}catch(r){return{...i,error:r instanceof Error?r.message:"Failed to resend email"}}}),zf2=$1.createAction(async(t,e)=>{let a=S1(),i=t.getState();try{return(await new Ft.plugins.typedrequest.TypedRequest("/typedrequest","removeFromSuppressionList").fire({identity:a.identity,email:e})).success&&await $1.dispatchAction(gWt,null),t.getState()}catch(r){return{...i,error:r instanceof Error?r.message:"Failed to remove from suppression list"}}}),Co=F2.createAction(async t=>{let e=S1(),a=t.getState();try{let r=await new Ft.plugins.typedrequest.TypedRequest("/typedrequest","getCertificateOverview").fire({identity:e.identity});return{certificates:r.certificates,summary:r.summary,isLoading:!1,error:null,lastUpdated:Date.now()}}catch(i){return{...a,isLoading:!1,error:i instanceof Error?i.message:"Failed to fetch certificate overview"}}}),wwt=F2.createAction(async(t,e)=>{let a=S1(),i=t.getState();try{return await new Ft.plugins.typedrequest.TypedRequest("/typedrequest","reprovisionCertificateDomain").fire({identity:a.identity,domain:e}),await F2.dispatchAction(Co,null),t.getState()}catch(r){return{...i,error:r instanceof Error?r.message:"Failed to reprovision certificate"}}}),Mwt=F2.createAction(async(t,e)=>{let a=S1(),i=t.getState();try{return await new Ft.plugins.typedrequest.TypedRequest("/typedrequest","deleteCertificate").fire({identity:a.identity,domain:e}),await F2.dispatchAction(Co,null),t.getState()}catch(r){return{...i,error:r instanceof Error?r.message:"Failed to delete certificate"}}}),zwt=F2.createAction(async(t,e)=>{let a=S1(),i=t.getState();try{return await new Ft.plugins.typedrequest.TypedRequest("/typedrequest","importCertificate").fire({identity:a.identity,cert:e}),await F2.dispatchAction(Co,null),t.getState()}catch(r){return{...i,error:r instanceof Error?r.message:"Failed to import certificate"}}});async function Swt(t){let e=S1();return new Ft.plugins.typedrequest.TypedRequest("/typedrequest","exportCertificate").fire({identity:e.identity,domain:t})}async function Jj(t){let e=S1();return new Ft.plugins.typedrequest.TypedRequest("/typedrequest","getRemoteIngressConnectionToken").fire({identity:e.identity,edgeId:t})}var S4=L1.createAction(async t=>{let e=S1(),a=t.getState();try{let i=new Ft.plugins.typedrequest.TypedRequest("/typedrequest","getRemoteIngresses"),r=new Ft.plugins.typedrequest.TypedRequest("/typedrequest","getRemoteIngressStatus"),[s,n]=await Promise.all([i.fire({identity:e.identity}),r.fire({identity:e.identity})]);return{...a,edges:s.edges,statuses:n.statuses,isLoading:!1,error:null,lastUpdated:Date.now()}}catch(i){return{...a,isLoading:!1,error:i instanceof Error?i.message:"Failed to fetch remote ingress data"}}}),kwt=L1.createAction(async(t,e)=>{let a=S1(),i=t.getState();try{let s=await new Ft.plugins.typedrequest.TypedRequest("/typedrequest","createRemoteIngress").fire({identity:a.identity,name:e.name,listenPorts:e.listenPorts,autoDerivePorts:e.autoDerivePorts,tags:e.tags});return s.success?(await L1.dispatchAction(S4,null),{...t.getState(),newEdgeId:s.edge.id}):i}catch(r){return{...i,error:r instanceof Error?r.message:"Failed to create edge"}}}),Cwt=L1.createAction(async(t,e)=>{let a=S1(),i=t.getState();try{return await new Ft.plugins.typedrequest.TypedRequest("/typedrequest","deleteRemoteIngress").fire({identity:a.identity,id:e}),await L1.dispatchAction(S4,null),t.getState()}catch(r){return{...i,error:r instanceof Error?r.message:"Failed to delete edge"}}}),Twt=L1.createAction(async(t,e)=>{let a=S1(),i=t.getState();try{return await new Ft.plugins.typedrequest.TypedRequest("/typedrequest","updateRemoteIngress").fire({identity:a.identity,id:e.id,name:e.name,listenPorts:e.listenPorts,autoDerivePorts:e.autoDerivePorts,tags:e.tags}),await L1.dispatchAction(S4,null),t.getState()}catch(r){return{...i,error:r instanceof Error?r.message:"Failed to update edge"}}}),_wt=L1.createAction(async(t,e)=>{let a=S1(),i=t.getState();try{return(await new Ft.plugins.typedrequest.TypedRequest("/typedrequest","regenerateRemoteIngressSecret").fire({identity:a.identity,id:e})).success?{...i,newEdgeId:e}:i}catch(r){return{...i,error:r instanceof Error?r.message:"Failed to regenerate secret"}}}),Lwt=L1.createAction(async t=>({...t.getState(),newEdgeId:null})),eU=L1.createAction(async(t,e)=>{let a=S1(),i=t.getState();try{return await new Ft.plugins.typedrequest.TypedRequest("/typedrequest","updateRemoteIngress").fire({identity:a.identity,id:e.id,enabled:e.enabled}),await L1.dispatchAction(S4,null),t.getState()}catch(r){return{...i,error:r instanceof Error?r.message:"Failed to toggle edge"}}}),z4=null,mwt=new Ft.plugins.typedrequest.TypedRouter;mwt.addTypedHandler(new Ft.plugins.typedrequest.TypedHandler("pushLogEntry",async t=>{let e=an.getState(),a=[...e.recentLogs,t.entry];return a.length>2e3&&a.splice(0,a.length-2e3),an.setState({...e,recentLogs:a}),{}}));async function gwt(){if(!z4)try{z4=await Jl.TypedSocket.createClient(mwt,Jl.TypedSocket.useWindowLocationOriginUrl()),await z4.setTag("role","ops_dashboard")}catch(t){console.error("TypedSocket connection failed:",t),z4=null}}async function bWt(){if(z4){try{await z4.stop()}catch{}z4=null}}async function vWt(){let t=S1(),e=Oa.getState().activeView;try{let i=await new Ft.plugins.typedrequest.TypedRequest("/typedrequest","getCombinedMetrics").fire({identity:t.identity,sections:{server:!0,email:!0,dns:!0,security:!0,network:e==="network"}});if(f2.setState({...f2.getState(),serverStats:i.metrics.server||f2.getState().serverStats,emailStats:i.metrics.email||f2.getState().emailStats,dnsStats:i.metrics.dns||f2.getState().dnsStats,securityMetrics:i.metrics.security||f2.getState().securityMetrics,lastUpdated:Date.now(),isLoading:!1,error:null}),i.metrics.network&&e==="network"){let r=i.metrics.network,s={};r.connectionDetails.forEach(n=>{s[n.remoteAddress]=(s[n.remoteAddress]||0)+1});try{let o=await new Ft.plugins.typedrequest.TypedRequest("/typedrequest","getActiveConnections").fire({identity:t.identity});Xr.setState({...Xr.getState(),connections:o.connections,connectionsByIP:s,throughputRate:{bytesInPerSecond:r.totalBandwidth.in,bytesOutPerSecond:r.totalBandwidth.out},totalBytes:r.totalBytes||{in:0,out:0},topIPs:r.topEndpoints.map(l=>({ip:l.endpoint,count:l.requests})),throughputByIP:r.topEndpoints.map(l=>({ip:l.endpoint,in:l.bandwidth?.in||0,out:l.bandwidth?.out||0})),throughputHistory:r.throughputHistory||[],requestsPerSecond:r.requestsPerSecond||0,requestsTotal:r.requestsTotal||0,lastUpdated:Date.now(),isLoading:!1,error:null})}catch(n){console.error("Failed to fetch connections:",n),Xr.setState({...Xr.getState(),connections:[],connectionsByIP:s,throughputRate:{bytesInPerSecond:r.totalBandwidth.in,bytesOutPerSecond:r.totalBandwidth.out},totalBytes:r.totalBytes||{in:0,out:0},topIPs:r.topEndpoints.map(o=>({ip:o.endpoint,count:o.requests})),throughputByIP:r.topEndpoints.map(o=>({ip:o.endpoint,in:o.bandwidth?.in||0,out:o.bandwidth?.out||0})),throughputHistory:r.throughputHistory||[],requestsPerSecond:r.requestsPerSecond||0,requestsTotal:r.requestsTotal||0,lastUpdated:Date.now(),isLoading:!1,error:null})}}if(e==="certificates")try{await F2.dispatchAction(Co,null)}catch(r){console.error("Certificate refresh failed:",r)}}catch(a){console.error("Combined refresh failed:",a)}}var gd=null,Yj=1e3;(()=>{let t=()=>{let s=Oa.getState(),n=ni.getState();s.autoRefresh&&n.isLoggedIn?(!gd||Yj!==s.refreshInterval)&&(e(),Yj=s.refreshInterval,gd=setInterval(()=>{vWt()},s.refreshInterval)):e()},e=()=>{gd&&(clearInterval(gd),gd=null,Yj=0)},a=Oa.getState().autoRefresh,i=Oa.getState().refreshInterval,r=ni.getState().isLoggedIn;Oa.state.subscribe(s=>{(s.autoRefresh!==a||s.refreshInterval!==i)&&(a=s.autoRefresh,i=s.refreshInterval,t())}),ni.state.subscribe(s=>{s.isLoggedIn!==r&&(r=s.isLoggedIn,t(),s.isLoggedIn?gwt():bWt())}),t(),ni.getState().isLoggedIn&&gwt()})();var yWt=Ft.plugins.smartrouter.SmartRouter,tU=["overview","network","emails","logs","configuration","security","certificates","remoteingress"],aU=["queued","sent","failed","security"],iU=class{router;initialized=!1;suppressStateUpdate=!1;constructor(){this.router=new yWt({debug:!1})}init(){this.initialized||(this.setupRoutes(),this.setupStateSync(),this.handleInitialRoute(),this.initialized=!0)}setupRoutes(){for(let e of tU)e==="emails"?(this.router.on("/emails",async()=>{this.updateViewState("emails"),this.updateEmailFolder("queued")}),this.router.on("/emails/:folder",async a=>{let i=a.params.folder;aU.includes(i)?(this.updateViewState("emails"),this.updateEmailFolder(i)):this.navigateTo("/emails/queued")})):this.router.on(`/${e}`,async()=>{this.updateViewState(e)});this.router.on("/",async()=>{this.navigateTo("/overview")})}setupStateSync(){Oa.state.subscribe(e=>{if(this.suppressStateUpdate)return;let a=window.location.pathname,i=this.getExpectedPath(e.activeView);if(!a.startsWith(i)){if(this.suppressStateUpdate=!0,e.activeView==="emails"){let r=$1.getState();this.router.pushUrl(`/emails/${r.currentView}`)}else this.router.pushUrl(`/${e.activeView}`);this.suppressStateUpdate=!1}})}getExpectedPath(e){return e==="emails"?"/emails":`/${e}`}handleInitialRoute(){let e=window.location.pathname;if(!e||e==="/")this.router.pushUrl("/overview");else{let a=e.split("/").filter(Boolean),i=a[0];if(tU.includes(i))if(this.updateViewState(i),i==="emails"&&a[1]){let r=a[1];aU.includes(r)?this.updateEmailFolder(r):this.updateEmailFolder("queued")}else i==="emails"&&this.updateEmailFolder("queued");else this.router.pushUrl("/overview")}}updateViewState(e){this.suppressStateUpdate=!0;let a=Oa.getState();a.activeView!==e&&Oa.setState({...a,activeView:e}),this.suppressStateUpdate=!1}updateEmailFolder(e){this.suppressStateUpdate=!0;let a=$1.getState();a.currentView!==e&&$1.setState({...a,currentView:e}),this.suppressStateUpdate=!1}navigateTo(e){this.router.pushUrl(e)}navigateToView(e){tU.includes(e)?this.navigateTo(`/${e}`):this.navigateTo("/overview")}navigateToEmailFolder(e){aU.includes(e)?this.navigateTo(`/emails/${e}`):this.navigateTo("/emails/queued")}getCurrentView(){return Oa.getState().activeView}getCurrentEmailFolder(){return $1.getState().currentView}destroy(){this.router.destroy(),this.initialized=!1}},ac=new iU;pe();var na=X`
|
|
29136
|
+
`}async firstUpdated(n){await super.firstUpdated(n),this.outlet=this.shadowRoot.querySelector(".outlet")}async updateHtmlText(n){await this.updateComplete,this.outlet||(this.outlet=this.shadowRoot.querySelector(".outlet")),this.outlet.innerHTML=n}static{lWt(i,a)}};return s=i})()});var twt=v(()=>{ewt()});var awt=v(()=>{Oj()});var iwt=v(()=>{Hj()});var rwt=v(()=>{qxt();Vxt();jxt();Wxt();Gxt();Xxt();twt();awt();iwt()});var swt=v(()=>{});var nwt=v(()=>{swt()});var owt=v(()=>{pe()});var lwt=v(()=>{owt()});var cwt=v(()=>{zi();Ve();Uft();amt();bmt();Lmt();tgt();rgt();hbt();avt();hyt();Myt();Pw();vxt();Nxt();rwt();nwt();lwt()});var dwt,uwt=v(()=>{dwt={name:"@design.estate/dees-catalog",version:"3.43.1",description:"A comprehensive library that provides dynamic web components for building sophisticated and modern web applications using JavaScript and TypeScript."}});var sa={};Qe(sa,{CanvasPool:()=>jl,DeesActionbar:()=>$mt,DeesAppui:()=>Pft,DeesAppuiActivitylog:()=>Pht,DeesAppuiBar:()=>Zht,DeesAppuiBottombar:()=>Jht,DeesAppuiMaincontent:()=>Eft,DeesAppuiMainmenu:()=>Cft,DeesAppuiProfileDropdown:()=>Yht,DeesAppuiSecondarymenu:()=>Lft,DeesAppuiTabs:()=>Dft,DeesAudioViewer:()=>cvt,DeesBadge:()=>Nmt,DeesButton:()=>xft,DeesButtonExit:()=>Yft,DeesButtonGroup:()=>Jft,DeesChartArea:()=>dmt,DeesChartLog:()=>fmt,DeesChips:()=>gbt,DeesContextmenu:()=>Wt,DeesDashboardgrid:()=>Nbt,DeesDataviewCodebox:()=>xmt,DeesDataviewStatusobject:()=>kmt,DeesForm:()=>bft,DeesFormSubmit:()=>Zx,DeesFormattingMenu:()=>gw,DeesHeading:()=>Hbt,DeesHint:()=>Hmt,DeesIcon:()=>_ht,DeesImageViewer:()=>svt,DeesInputBase:()=>Ze,DeesInputCheckbox:()=>Ox,DeesInputCode:()=>Vx,DeesInputDatepicker:()=>jx,DeesInputDropdown:()=>Xx,DeesInputFileupload:()=>Kx,DeesInputIban:()=>tw,DeesInputList:()=>pgt,DeesInputMultitoggle:()=>aw,DeesInputPhone:()=>rw,DeesInputProfilePicture:()=>pbt,DeesInputQuantitySelector:()=>Wx,DeesInputRadiogroup:()=>Gx,DeesInputRichtext:()=>kgt,DeesInputTags:()=>Dgt,DeesInputText:()=>Ux,DeesInputToggle:()=>sw,DeesInputTypelist:()=>nw,DeesInputWysiwyg:()=>qV,DeesLabel:()=>f9t,DeesMobilenavigation:()=>qft,DeesModal:()=>o1,DeesPagination:()=>Gbt,DeesPanel:()=>r9t,DeesPdf:()=>Tvt,DeesPdfPreview:()=>Pvt,DeesPdfViewer:()=>yvt,DeesPreview:()=>zvt,DeesProgressbar:()=>Gmt,DeesSearchbar:()=>zxt,DeesShoppingProductcard:()=>C9t,DeesSimpleAppDash:()=>cxt,DeesSimpleLogin:()=>mxt,DeesSlashMenu:()=>fw,DeesSpeechbubble:()=>vyt,DeesSpinner:()=>Zmt,DeesStatsGrid:()=>wft,DeesStepper:()=>Jbt,DeesTable:()=>lw,DeesTheme:()=>_xt,DeesTileAudio:()=>Yvt,DeesTileBase:()=>Ma,DeesTileFolder:()=>dyt,DeesTileImage:()=>Vvt,DeesTileNote:()=>ryt,DeesTilePdf:()=>xw,DeesTileVideo:()=>Jvt,DeesToast:()=>Ht,DeesUpdater:()=>Nw,DeesVideoViewer:()=>hvt,DeesWindowControls:()=>Ght,DeesWindowLayer:()=>Si,DeesWorkspace:()=>Bxt,DeesWorkspaceBottombar:()=>Rxt,DeesWorkspaceDiffEditor:()=>Oxt,DeesWorkspaceFiletree:()=>Ixt,DeesWorkspaceMarkdown:()=>Yxt,DeesWorkspaceMarkdownoutlet:()=>Jxt,DeesWorkspaceMonaco:()=>m9t,DeesWorkspaceTerminal:()=>$j,DeesWorkspaceTerminalPreview:()=>Fxt,DeesWysiwygBlock:()=>sbt,PROGRAMMING_LANGUAGES:()=>I8,PdfManager:()=>Yr,PerformanceMonitor:()=>Ul,TerminalTabManager:()=>ld,TypeScriptIntelliSenseManager:()=>hd,ViewRegistry:()=>A8,WebContainerEnvironment:()=>x4,WysiwygBlockOperations:()=>F8,WysiwygBlocks:()=>N2,WysiwygConverters:()=>$i,WysiwygDragDropHandler:()=>Q8,WysiwygFormatting:()=>Ws,WysiwygHistory:()=>K8,WysiwygInputHandler:()=>Z8,WysiwygKeyboardHandler:()=>X8,WysiwygModalManager:()=>Y8,WysiwygSelection:()=>Be,WysiwygShortcuts:()=>W1,ZIndexRegistry:()=>Lf,colors:()=>Q0,commitinfo:()=>dwt,componentZIndex:()=>tHt,debounce:()=>kUt,formatFileSize:()=>TUt,getZIndex:()=>eHt,icons:()=>Ix,isInViewport:()=>_Ut,registerAllBlockHandlers:()=>ebt,themeDefaultStyles:()=>ke,themeDefaults:()=>ro,throttle:()=>CUt,tileBaseStyles:()=>ra,wysiwygStyles:()=>PV,zIndexLayers:()=>c2,zIndexRegistry:()=>u1});var ka=v(()=>{cwt();Ci();uwt()});var pwt=pt(t2=>{"use strict";Object.defineProperty(t2,"__esModule",{value:!0}),t2.getFirstTrueOrFalse=t2.timeoutAndContinue=t2.timeoutWrap=t2.map=t2.rejectedPromise=t2.resolvedPromise=t2.defer=t2.Deferred=void 0;var Fw=class{constructor(){this.promise=new Promise((e,a)=>{this.resolve=i=>{this.status="fulfilled",this.stoppedAt=Date.now(),e(i)},this.reject=i=>{this.status="rejected",this.stoppedAt=Date.now(),a(i)},this.startedAt=Date.now(),this.status="pending"})}get duration(){return this.stoppedAt?this.stoppedAt-this.startedAt:Date.now()-this.startedAt}};t2.Deferred=Fw,t2.defer=()=>new Fw,t2.resolvedPromise=t=>Promise.resolve(t),t2.rejectedPromise=t=>Promise.reject(t),t2.map=async(t,e)=>{let a=[],i=[];for(let r of t){let s=e(r);a.push(s),s.then(n=>{i.push(n)})}return await Promise.all(a),i},t2.timeoutWrap=async(t,e,a=!0)=>new Promise((i,r)=>{setTimeout(()=>{a?r(new Error("timeout")):i(null)},e),t.then(i,r)}),t2.timeoutAndContinue=async(t,e=6e4)=>t2.timeoutWrap(t,e,!1),t2.getFirstTrueOrFalse=async t=>{let e=t2.defer();for(let a of t)a.then(i=>{i===!0&&e.resolve(!0)});return Promise.all(t).then(()=>{e.resolve(!1)}),e.promise}});var Jl={};Qe(Jl,{TypedSocket:()=>Wj});var jj={};Qe(jj,{sha256FromString:()=>pWt});var md={};Qe(md,{Smartenv:()=>Vj});var qj=B1(pwt(),1);var Vj=class{constructor(){this.loadedScripts=[]}async getEnvAwareModule(e){if(this.isNode)return await this.getSafeNodeModule(e.nodeModuleName);if(this.isBrowser)return await this.getSafeWebModule(e.webUrlArg,e.getFunction);console.error("platform for loading not supported by smartenv")}async getSafeNodeModule(e){if(!this.isNode){console.error(`You tried to load a node module in a wrong context: ${e}`);return}return new Function(`return import('${e}')`)()}async getSafeWebModule(e,a){if(!this.isBrowser){console.error("You tried to load a web module in a wrong context");return}if(this.loadedScripts.includes(e))return a();this.loadedScripts.push(e);let i=qj.defer();if(globalThis.importScripts)globalThis.importScripts(e),i.resolve();else{let r=document.createElement("script");r.onload=()=>{i.resolve()},r.src=e,document.head.appendChild(r)}return await i.promise,a()}get runtimeEnv(){return typeof process<"u"?"node":"browser"}get isBrowser(){return!this.isNode}get userAgent(){return this.isBrowser?navigator.userAgent:"undefined"}get isNode(){return this.runtimeEnv==="node"}get nodeVersion(){return process.version}get isCI(){return this.isNode?!!process.env.CI:!1}async isMacAsync(){return this.isNode?(await this.getSafeNodeModule("os")).platform()==="darwin":!1}async isWindowsAsync(){return this.isNode?(await this.getSafeNodeModule("os")).platform()==="win32":!1}async isLinuxAsync(){return this.isNode?(await this.getSafeNodeModule("os")).platform()==="linux":!1}async printEnv(){this.isNode?(console.log("running on NODE"),console.log("node version is "+this.nodeVersion)):(console.log("running on BROWSER"),console.log("browser is "+this.userAgent))}};var uWt=t=>{let e=[],a=new DataView(t);for(let i=0;i<a.byteLength;i+=4){let s=a.getUint32(i).toString(16),n="00000000",o=(n+s).slice(-n.length);e.push(o)}return e.join("")},pWt=async t=>{let e=new md.Smartenv;if(e.isBrowser){let a=new TextEncoder().encode(t),i=await crypto.subtle.digest("SHA-256",a);return uWt(i)}else if(e.isNode)return await(await e.getSafeNodeModule("@pushrocks/smarthash")).sha256FromString(t)};_3();B4();Ri();l0();a2();pi();i0();X9();var Uj="__typedsocket_tag__";function fWt(t){return{peer:t,async getTagById(e){if(!t.tags.has(e))return;let a=t.data.get(`${Uj}${e}`);return{id:e,payload:a}}}}var Wj=class t{static async createClient(e,a,i={}){let s={...{autoReconnect:!0,maxRetries:100,initialBackoffMs:1e3,maxBackoffMs:6e4},...i},n=new t("client",e);return n.clientOptions=s,n.serverUrl=a,n.currentBackoff=s.initialBackoffMs,await n.connect(),n}static{this.useWindowLocationOriginUrl=()=>yi.Smarturl.createFromUrl(globalThis.location.origin).toString()}static fromSmartServe(e,a){let i=new Map;t.registerTagHandlers(a);let r=new t("server",a);return r.smartServeRef=e,r.smartServeConnectionWrappers=i,r}static registerTagHandlers(e){e.addTypedHandler(new P1.TypedHandler("__typedsocket_setTag",async(a,i)=>{let r=i?.localData?.peer;return r?(r.tags.add(a.name),r.data.set(`${Uj}${a.name}`,a.payload),{success:!0}):(console.warn("setTag: No peer found in request context"),{success:!1})})),e.addTypedHandler(new P1.TypedHandler("__typedsocket_removeTag",async(a,i)=>{let r=i?.localData?.peer;return r?(r.tags.delete(a.name),r.data.delete(`${Uj}${a.name}`),{success:!0}):(console.warn("removeTag: No peer found in request context"),{success:!1})}))}constructor(e,a){this.statusSubject=new yt.rxjs.Subject,this.connectionStatus="new",this.websocket=null,this.clientOptions=null,this.serverUrl="",this.retryCount=0,this.currentBackoff=1e3,this.pendingRequests=new Map,this.smartServeRef=null,this.smartServeConnectionWrappers=new Map,this.side=e,this.typedrouter=a}async connect(){let e=He.defer();this.updateStatus("connecting");let a=this.toWebSocketUrl(this.serverUrl);console.log(`TypedSocket connecting to ${a}...`),this.websocket=new WebSocket(a);let i=setTimeout(()=>{this.connectionStatus!=="connected"&&(console.warn("TypedSocket connection timeout"),this.websocket?.close(),e.reject(new Error("Connection timeout")))},1e4);this.websocket.onopen=()=>{clearTimeout(i),console.log("TypedSocket connected!"),this.updateStatus("connected"),this.retryCount=0,this.currentBackoff=this.clientOptions?.initialBackoffMs??1e3,e.resolve()},this.websocket.onmessage=async r=>{await this.handleMessage(r.data)},this.websocket.onclose=()=>{clearTimeout(i),this.handleDisconnect()},this.websocket.onerror=r=>{console.error("TypedSocket WebSocket error:",r)};try{await e.promise}catch(r){if(clearTimeout(i),this.clientOptions?.autoReconnect)await this.scheduleReconnect();else throw r}}toWebSocketUrl(e){let a=new URL(e);return`${a.protocol==="https:"?"wss:":"ws:"}//${a.host}${a.pathname}`}async handleMessage(e){try{let a=typeof e=="string"?e:new TextDecoder().decode(e),i=Bt.parse(a);if(i.correlation?.id&&this.pendingRequests.has(i.correlation.id)){let s=this.pendingRequests.get(i.correlation.id);this.pendingRequests.delete(i.correlation.id),s.resolve(i);return}let r=await this.typedrouter.routeAndAddResponse(i);r&&this.websocket?.readyState===WebSocket.OPEN&&this.websocket.send(Bt.stringify(r))}catch(a){console.error("TypedSocket failed to process message:",a)}}handleDisconnect(){this.connectionStatus!=="disconnected"&&(this.updateStatus("disconnected"),this.clientOptions?.autoReconnect&&this.retryCount<this.clientOptions.maxRetries&&this.scheduleReconnect())}async scheduleReconnect(){if(!this.clientOptions)return;this.updateStatus("reconnecting"),this.retryCount++;let e=this.currentBackoff*.2*(Math.random()*2-1),a=Math.min(this.currentBackoff+e,this.clientOptions.maxBackoffMs);console.log(`TypedSocket reconnecting in ${Math.round(a)}ms (attempt ${this.retryCount}/${this.clientOptions.maxRetries})`),await rt.delayFor(a),this.currentBackoff=Math.min(this.currentBackoff*2,this.clientOptions.maxBackoffMs);try{await this.connect()}catch(i){console.error("TypedSocket reconnection failed:",i)}}updateStatus(e){this.connectionStatus!==e&&(this.connectionStatus=e,this.statusSubject.next(e))}async sendRequest(e){if(!this.websocket||this.websocket.readyState!==WebSocket.OPEN)throw new Error("WebSocket not connected");return new Promise((a,i)=>{let r=setTimeout(()=>{this.pendingRequests.delete(e.correlation.id),i(new Error("Request timeout"))},3e4);this.pendingRequests.set(e.correlation.id,{resolve:s=>{clearTimeout(r),a(s)},reject:s=>{clearTimeout(r),i(s)}}),this.websocket.send(Bt.stringify(e))})}createTypedRequest(e,a){let i=async r=>{if(this.side==="client")return this.sendRequest(r);if(!this.smartServeRef)throw new Error("Server not initialized");let s=a;if(!s){let o=this.smartServeRef.getWebSocketConnections();if(o.length===1){let l=o[0];s=this.getOrCreateWrapper(l)}else throw o.length===0?new Error("No WebSocket connections available"):new Error("Multiple connections available - specify targetConnection")}let n=await this.typedrouter.fireEventInterestMap.addInterest(r.correlation.id,r);return s.peer.send(Bt.stringify(r)),await n.interestFullfilled};return new P1.TypedRequest(new P1.TypedTarget({postMethod:i}),e)}getStatus(){return this.connectionStatus}async stop(){this.side==="client"?(this.clientOptions&&(this.clientOptions.autoReconnect=!1),this.websocket&&(this.websocket.close(),this.websocket=null),this.pendingRequests.clear()):this.smartServeConnectionWrappers.clear()}async setTag(e,a){if(this.side!=="client")throw new Error("setTag is only available on clients");if(!(await this.createTypedRequest("__typedsocket_setTag").fire({name:e,payload:a})).success)throw new Error("Failed to set tag on server")}async removeTag(e){if(this.side!=="client")throw new Error("removeTag is only available on clients");if(!(await this.createTypedRequest("__typedsocket_removeTag").fire({name:e})).success)throw new Error("Failed to remove tag on server")}getOrCreateWrapper(e){let a=this.smartServeConnectionWrappers.get(e.id);return a||(a=fWt(e),this.smartServeConnectionWrappers.set(e.id,a)),a}async findAllTargetConnections(e){if(this.side!=="server"||!this.smartServeRef)throw new Error("findAllTargetConnections is only available on servers");let a=[];for(let i of this.smartServeRef.getWebSocketConnections()){let r=this.getOrCreateWrapper(i);await e(r)&&a.push(r)}return a}async findTargetConnection(e){return(await this.findAllTargetConnections(e))[0]}async findAllTargetConnectionsByTag(e,a){if(this.side!=="server"||!this.smartServeRef)throw new Error("findAllTargetConnectionsByTag is only available on servers");let i=this.smartServeRef.getWebSocketConnectionsByTag(e),r=[];for(let s of i){let n=this.getOrCreateWrapper(s);if(a!==void 0){let o=await n.getTagById(e);if(Bt.stringify(o?.payload)!==Bt.stringify(a))continue}r.push(n)}return r}async findTargetConnectionByTag(e,a){return(await this.findAllTargetConnectionsByTag(e,a))[0]}};pe();ka();var Ft=st;B4();var hwt={};var fwt={};var tn=new Ft.plugins.smartstate.Smartstate,ni=await tn.getStatePart("login",{identity:null,isLoggedIn:!1},"persistent"),f2=await tn.getStatePart("stats",{serverStats:null,emailStats:null,dnsStats:null,securityMetrics:null,lastUpdated:0,isLoading:!1,error:null},"soft"),Qr=await tn.getStatePart("config",{config:null,isLoading:!1,error:null}),mWt=()=>{let t=typeof window<"u"?window.location.pathname:"/",e=["overview","network","emails","logs","configuration","security","certificates","remoteingress"],i=t.split("/").filter(Boolean)[0];return e.includes(i)?i:"overview"},Oa=await tn.getStatePart("ui",{activeView:mWt(),sidebarCollapsed:!1,autoRefresh:!0,refreshInterval:1e3,theme:"light"}),an=await tn.getStatePart("logs",{recentLogs:[],isStreaming:!1,filters:{}},"soft"),Xr=await tn.getStatePart("network",{connections:[],connectionsByIP:{},throughputRate:{bytesInPerSecond:0,bytesOutPerSecond:0},totalBytes:{in:0,out:0},topIPs:[],throughputByIP:[],throughputHistory:[],requestsPerSecond:0,requestsTotal:0,lastUpdated:0,isLoading:!1,error:null},"soft"),$1=await tn.getStatePart("emailOps",{currentView:"queued",queuedEmails:[],sentEmails:[],failedEmails:[],securityIncidents:[],bounceRecords:[],suppressionList:[],selectedEmailId:null,isLoading:!1,error:null,lastUpdated:0},"soft"),F2=await tn.getStatePart("certificates",{certificates:[],summary:{total:0,valid:0,expiring:0,expired:0,failed:0,unknown:0},isLoading:!1,error:null,lastUpdated:0},"soft"),L1=await tn.getStatePart("remoteIngress",{edges:[],statuses:[],selectedEdgeId:null,newEdgeId:null,isLoading:!1,error:null,lastUpdated:0},"soft"),S1=()=>({identity:ni.getState().identity}),bwt=ni.createAction(async(t,e)=>{let a=new Ft.plugins.typedrequest.TypedRequest("/typedrequest","adminLoginWithUsernameAndPassword");try{let i=await a.fire({username:e.username,password:e.password});return i.identity?{identity:i.identity,isLoggedIn:!0}:t.getState()}catch(i){return console.error("Login failed:",i),t.getState()}}),Zj=ni.createAction(async t=>{let e=S1();if(!e.identity)return t.getState();let a=new Ft.plugins.typedrequest.TypedRequest("/typedrequest","adminLogout");try{await a.fire({identity:e.identity})}catch(i){console.error("Logout error:",i)}return{identity:null,isLoggedIn:!1}}),ec=f2.createAction(async t=>{let e=S1(),a=t.getState();try{let r=await new Ft.plugins.typedrequest.TypedRequest("/typedrequest","getCombinedMetrics").fire({identity:e.identity,sections:{server:!0,email:!0,dns:!0,security:!0,network:!1}});return{serverStats:r.metrics.server||a.serverStats,emailStats:r.metrics.email||a.emailStats,dnsStats:r.metrics.dns||a.dnsStats,securityMetrics:r.metrics.security||a.securityMetrics,lastUpdated:Date.now(),isLoading:!1,error:null}}catch(i){return{...a,isLoading:!1,error:i.message||"Failed to fetch statistics"}}}),tc=Qr.createAction(async t=>{let e=S1(),a=t.getState();try{return{config:(await new Ft.plugins.typedrequest.TypedRequest("/typedrequest","getConfiguration").fire({identity:e.identity})).config,isLoading:!1,error:null}}catch(i){return{...a,isLoading:!1,error:i.message||"Failed to fetch configuration"}}}),Rw=an.createAction(async(t,e)=>{let a=S1(),r=await new Ft.plugins.typedrequest.TypedRequest("/typedrequest","getRecentLogs").fire({identity:a.identity,limit:e.limit||100,level:e.level,category:e.category});return{...t.getState(),recentLogs:r.logs}}),xf2=Oa.createAction(async t=>{let e=t.getState();return{...e,autoRefresh:!e.autoRefresh}}),wf2=Oa.createAction(async(t,e)=>{let a=t.getState();return e==="network"&&a.activeView!=="network"&&setTimeout(()=>{Xr.dispatchAction(Xj,null)},100),e==="certificates"&&a.activeView!=="certificates"&&setTimeout(()=>{F2.dispatchAction(Co,null)},100),e==="remoteingress"&&a.activeView!=="remoteingress"&&setTimeout(()=>{L1.dispatchAction(S4,null)},100),{...a,activeView:e}}),Xj=Xr.createAction(async t=>{let e=S1(),a=t.getState();try{let r=await new Ft.plugins.typedrequest.TypedRequest("/typedrequest","getActiveConnections").fire({identity:e.identity}),n=await new Ft.plugins.typedrequest.TypedRequest("/typedrequest","getNetworkStats").fire({identity:e.identity}),o={};return n.connectionsByIP&&Array.isArray(n.connectionsByIP)?n.connectionsByIP.forEach(l=>{o[l.ip]=l.count}):r.connections.forEach(l=>{let d=l.remoteAddress;o[d]=(o[d]||0)+1}),{connections:r.connections,connectionsByIP:o,throughputRate:n.throughputRate||{bytesInPerSecond:0,bytesOutPerSecond:0},totalBytes:n.totalDataTransferred?{in:n.totalDataTransferred.bytesIn,out:n.totalDataTransferred.bytesOut}:{in:0,out:0},topIPs:n.topIPs||[],throughputByIP:n.throughputByIP||[],throughputHistory:n.throughputHistory||[],requestsPerSecond:n.requestsPerSecond||0,requestsTotal:n.requestsTotal||0,lastUpdated:Date.now(),isLoading:!1,error:null}}catch(i){return console.error("Failed to fetch network stats:",i),{...a,isLoading:!1,error:i instanceof Error?i.message:"Failed to fetch network stats"}}}),Mf2=$1.createAction(async(t,e)=>({...t.getState(),currentView:e})),Qj=$1.createAction(async t=>{let e=S1(),a=t.getState();try{let r=await new Ft.plugins.typedrequest.TypedRequest("/typedrequest","getQueuedEmails").fire({identity:e.identity,status:"pending",limit:100});return{...a,queuedEmails:r.items,isLoading:!1,error:null,lastUpdated:Date.now()}}catch(i){return{...a,isLoading:!1,error:i instanceof Error?i.message:"Failed to fetch queued emails"}}}),vwt=$1.createAction(async t=>{let e=S1(),a=t.getState();try{let r=await new Ft.plugins.typedrequest.TypedRequest("/typedrequest","getSentEmails").fire({identity:e.identity,limit:100});return{...a,sentEmails:r.items,isLoading:!1,error:null,lastUpdated:Date.now()}}catch(i){return{...a,isLoading:!1,error:i instanceof Error?i.message:"Failed to fetch sent emails"}}}),Kj=$1.createAction(async t=>{let e=S1(),a=t.getState();try{let r=await new Ft.plugins.typedrequest.TypedRequest("/typedrequest","getFailedEmails").fire({identity:e.identity,limit:100});return{...a,failedEmails:r.items,isLoading:!1,error:null,lastUpdated:Date.now()}}catch(i){return{...a,isLoading:!1,error:i instanceof Error?i.message:"Failed to fetch failed emails"}}}),ywt=$1.createAction(async t=>{let e=S1(),a=t.getState();try{let r=await new Ft.plugins.typedrequest.TypedRequest("/typedrequest","getSecurityIncidents").fire({identity:e.identity,limit:100});return{...a,securityIncidents:r.incidents,isLoading:!1,error:null,lastUpdated:Date.now()}}catch(i){return{...a,isLoading:!1,error:i instanceof Error?i.message:"Failed to fetch security incidents"}}}),gWt=$1.createAction(async t=>{let e=S1(),a=t.getState();try{let r=await new Ft.plugins.typedrequest.TypedRequest("/typedrequest","getBounceRecords").fire({identity:e.identity,limit:100});return{...a,bounceRecords:r.records,suppressionList:r.suppressionList,isLoading:!1,error:null,lastUpdated:Date.now()}}catch(i){return{...a,isLoading:!1,error:i instanceof Error?i.message:"Failed to fetch bounce records"}}}),xwt=$1.createAction(async(t,e)=>{let a=S1(),i=t.getState();try{return(await new Ft.plugins.typedrequest.TypedRequest("/typedrequest","resendEmail").fire({identity:a.identity,emailId:e})).success&&(await $1.dispatchAction(Kj,null),await $1.dispatchAction(Qj,null)),t.getState()}catch(r){return{...i,error:r instanceof Error?r.message:"Failed to resend email"}}}),zf2=$1.createAction(async(t,e)=>{let a=S1(),i=t.getState();try{return(await new Ft.plugins.typedrequest.TypedRequest("/typedrequest","removeFromSuppressionList").fire({identity:a.identity,email:e})).success&&await $1.dispatchAction(gWt,null),t.getState()}catch(r){return{...i,error:r instanceof Error?r.message:"Failed to remove from suppression list"}}}),Co=F2.createAction(async t=>{let e=S1(),a=t.getState();try{let r=await new Ft.plugins.typedrequest.TypedRequest("/typedrequest","getCertificateOverview").fire({identity:e.identity});return{certificates:r.certificates,summary:r.summary,isLoading:!1,error:null,lastUpdated:Date.now()}}catch(i){return{...a,isLoading:!1,error:i instanceof Error?i.message:"Failed to fetch certificate overview"}}}),wwt=F2.createAction(async(t,e)=>{let a=S1(),i=t.getState();try{return await new Ft.plugins.typedrequest.TypedRequest("/typedrequest","reprovisionCertificateDomain").fire({identity:a.identity,domain:e}),await F2.dispatchAction(Co,null),t.getState()}catch(r){return{...i,error:r instanceof Error?r.message:"Failed to reprovision certificate"}}}),Mwt=F2.createAction(async(t,e)=>{let a=S1(),i=t.getState();try{return await new Ft.plugins.typedrequest.TypedRequest("/typedrequest","deleteCertificate").fire({identity:a.identity,domain:e}),await F2.dispatchAction(Co,null),t.getState()}catch(r){return{...i,error:r instanceof Error?r.message:"Failed to delete certificate"}}}),zwt=F2.createAction(async(t,e)=>{let a=S1(),i=t.getState();try{return await new Ft.plugins.typedrequest.TypedRequest("/typedrequest","importCertificate").fire({identity:a.identity,cert:e}),await F2.dispatchAction(Co,null),t.getState()}catch(r){return{...i,error:r instanceof Error?r.message:"Failed to import certificate"}}});async function Swt(t){let e=S1();return new Ft.plugins.typedrequest.TypedRequest("/typedrequest","exportCertificate").fire({identity:e.identity,domain:t})}async function Jj(t){let e=S1();return new Ft.plugins.typedrequest.TypedRequest("/typedrequest","getRemoteIngressConnectionToken").fire({identity:e.identity,edgeId:t})}var S4=L1.createAction(async t=>{let e=S1(),a=t.getState();try{let i=new Ft.plugins.typedrequest.TypedRequest("/typedrequest","getRemoteIngresses"),r=new Ft.plugins.typedrequest.TypedRequest("/typedrequest","getRemoteIngressStatus"),[s,n]=await Promise.all([i.fire({identity:e.identity}),r.fire({identity:e.identity})]);return{...a,edges:s.edges,statuses:n.statuses,isLoading:!1,error:null,lastUpdated:Date.now()}}catch(i){return{...a,isLoading:!1,error:i instanceof Error?i.message:"Failed to fetch remote ingress data"}}}),kwt=L1.createAction(async(t,e)=>{let a=S1(),i=t.getState();try{let s=await new Ft.plugins.typedrequest.TypedRequest("/typedrequest","createRemoteIngress").fire({identity:a.identity,name:e.name,listenPorts:e.listenPorts,autoDerivePorts:e.autoDerivePorts,tags:e.tags});return s.success?(await L1.dispatchAction(S4,null),{...t.getState(),newEdgeId:s.edge.id}):i}catch(r){return{...i,error:r instanceof Error?r.message:"Failed to create edge"}}}),Cwt=L1.createAction(async(t,e)=>{let a=S1(),i=t.getState();try{return await new Ft.plugins.typedrequest.TypedRequest("/typedrequest","deleteRemoteIngress").fire({identity:a.identity,id:e}),await L1.dispatchAction(S4,null),t.getState()}catch(r){return{...i,error:r instanceof Error?r.message:"Failed to delete edge"}}}),Twt=L1.createAction(async(t,e)=>{let a=S1(),i=t.getState();try{return await new Ft.plugins.typedrequest.TypedRequest("/typedrequest","updateRemoteIngress").fire({identity:a.identity,id:e.id,name:e.name,listenPorts:e.listenPorts,autoDerivePorts:e.autoDerivePorts,tags:e.tags}),await L1.dispatchAction(S4,null),t.getState()}catch(r){return{...i,error:r instanceof Error?r.message:"Failed to update edge"}}}),_wt=L1.createAction(async(t,e)=>{let a=S1(),i=t.getState();try{return(await new Ft.plugins.typedrequest.TypedRequest("/typedrequest","regenerateRemoteIngressSecret").fire({identity:a.identity,id:e})).success?{...i,newEdgeId:e}:i}catch(r){return{...i,error:r instanceof Error?r.message:"Failed to regenerate secret"}}}),Lwt=L1.createAction(async t=>({...t.getState(),newEdgeId:null})),eU=L1.createAction(async(t,e)=>{let a=S1(),i=t.getState();try{return await new Ft.plugins.typedrequest.TypedRequest("/typedrequest","updateRemoteIngress").fire({identity:a.identity,id:e.id,enabled:e.enabled}),await L1.dispatchAction(S4,null),t.getState()}catch(r){return{...i,error:r instanceof Error?r.message:"Failed to toggle edge"}}}),z4=null,mwt=new Ft.plugins.typedrequest.TypedRouter;mwt.addTypedHandler(new Ft.plugins.typedrequest.TypedHandler("pushLogEntry",async t=>{let e=an.getState(),a=[...e.recentLogs,t.entry];return a.length>2e3&&a.splice(0,a.length-2e3),an.setState({...e,recentLogs:a}),{}}));async function gwt(){if(!z4)try{z4=await Jl.TypedSocket.createClient(mwt,Jl.TypedSocket.useWindowLocationOriginUrl()),await z4.setTag("role","ops_dashboard")}catch(t){console.error("TypedSocket connection failed:",t),z4=null}}async function bWt(){if(z4){try{await z4.stop()}catch{}z4=null}}async function vWt(){let t=S1(),e=Oa.getState().activeView;try{let i=await new Ft.plugins.typedrequest.TypedRequest("/typedrequest","getCombinedMetrics").fire({identity:t.identity,sections:{server:!0,email:!0,dns:!0,security:!0,network:e==="network"}});if(f2.setState({...f2.getState(),serverStats:i.metrics.server||f2.getState().serverStats,emailStats:i.metrics.email||f2.getState().emailStats,dnsStats:i.metrics.dns||f2.getState().dnsStats,securityMetrics:i.metrics.security||f2.getState().securityMetrics,lastUpdated:Date.now(),isLoading:!1,error:null}),i.metrics.network&&e==="network"){let r=i.metrics.network,s={};r.connectionDetails.forEach(n=>{s[n.remoteAddress]=(s[n.remoteAddress]||0)+1});try{let o=await new Ft.plugins.typedrequest.TypedRequest("/typedrequest","getActiveConnections").fire({identity:t.identity});Xr.setState({...Xr.getState(),connections:o.connections,connectionsByIP:s,throughputRate:{bytesInPerSecond:r.totalBandwidth.in,bytesOutPerSecond:r.totalBandwidth.out},totalBytes:r.totalBytes||{in:0,out:0},topIPs:r.topEndpoints.map(l=>({ip:l.endpoint,count:l.requests})),throughputByIP:r.topEndpoints.map(l=>({ip:l.endpoint,in:l.bandwidth?.in||0,out:l.bandwidth?.out||0})),throughputHistory:r.throughputHistory||[],requestsPerSecond:r.requestsPerSecond||0,requestsTotal:r.requestsTotal||0,lastUpdated:Date.now(),isLoading:!1,error:null})}catch(n){console.error("Failed to fetch connections:",n),Xr.setState({...Xr.getState(),connections:[],connectionsByIP:s,throughputRate:{bytesInPerSecond:r.totalBandwidth.in,bytesOutPerSecond:r.totalBandwidth.out},totalBytes:r.totalBytes||{in:0,out:0},topIPs:r.topEndpoints.map(o=>({ip:o.endpoint,count:o.requests})),throughputByIP:r.topEndpoints.map(o=>({ip:o.endpoint,in:o.bandwidth?.in||0,out:o.bandwidth?.out||0})),throughputHistory:r.throughputHistory||[],requestsPerSecond:r.requestsPerSecond||0,requestsTotal:r.requestsTotal||0,lastUpdated:Date.now(),isLoading:!1,error:null})}}if(e==="certificates")try{await F2.dispatchAction(Co,null)}catch(r){console.error("Certificate refresh failed:",r)}}catch(a){console.error("Combined refresh failed:",a)}}var gd=null,Yj=1e3;(()=>{let t=()=>{let s=Oa.getState(),n=ni.getState();s.autoRefresh&&n.isLoggedIn?(!gd||Yj!==s.refreshInterval)&&(e(),Yj=s.refreshInterval,gd=setInterval(()=>{vWt()},s.refreshInterval)):e()},e=()=>{gd&&(clearInterval(gd),gd=null,Yj=0)},a=Oa.getState().autoRefresh,i=Oa.getState().refreshInterval,r=ni.getState().isLoggedIn;Oa.state.subscribe(s=>{(s.autoRefresh!==a||s.refreshInterval!==i)&&(a=s.autoRefresh,i=s.refreshInterval,t())}),ni.state.subscribe(s=>{s.isLoggedIn!==r&&(r=s.isLoggedIn,t(),s.isLoggedIn?gwt():bWt())}),t(),ni.getState().isLoggedIn&&gwt()})();var yWt=Ft.plugins.smartrouter.SmartRouter,tU=["overview","network","emails","logs","configuration","security","certificates","remoteingress"],aU=["queued","sent","failed","security"],iU=class{router;initialized=!1;suppressStateUpdate=!1;constructor(){this.router=new yWt({debug:!1})}init(){this.initialized||(this.setupRoutes(),this.setupStateSync(),this.handleInitialRoute(),this.initialized=!0)}setupRoutes(){for(let e of tU)e==="emails"?(this.router.on("/emails",async()=>{this.updateViewState("emails"),this.updateEmailFolder("queued")}),this.router.on("/emails/:folder",async a=>{let i=a.params.folder;aU.includes(i)?(this.updateViewState("emails"),this.updateEmailFolder(i)):this.navigateTo("/emails/queued")})):this.router.on(`/${e}`,async()=>{this.updateViewState(e)});this.router.on("/",async()=>{this.navigateTo("/overview")})}setupStateSync(){Oa.state.subscribe(e=>{if(this.suppressStateUpdate)return;let a=window.location.pathname,i=this.getExpectedPath(e.activeView);if(!a.startsWith(i)){if(this.suppressStateUpdate=!0,e.activeView==="emails"){let r=$1.getState();this.router.pushUrl(`/emails/${r.currentView}`)}else this.router.pushUrl(`/${e.activeView}`);this.suppressStateUpdate=!1}})}getExpectedPath(e){return e==="emails"?"/emails":`/${e}`}handleInitialRoute(){let e=window.location.pathname;if(!e||e==="/")this.router.pushUrl("/overview");else{let a=e.split("/").filter(Boolean),i=a[0];if(tU.includes(i))if(this.updateViewState(i),i==="emails"&&a[1]){let r=a[1];aU.includes(r)?this.updateEmailFolder(r):this.updateEmailFolder("queued")}else i==="emails"&&this.updateEmailFolder("queued");else this.router.pushUrl("/overview")}}updateViewState(e){this.suppressStateUpdate=!0;let a=Oa.getState();a.activeView!==e&&Oa.setState({...a,activeView:e}),this.suppressStateUpdate=!1}updateEmailFolder(e){this.suppressStateUpdate=!0;let a=$1.getState();a.currentView!==e&&$1.setState({...a,currentView:e}),this.suppressStateUpdate=!1}navigateTo(e){this.router.pushUrl(e)}navigateToView(e){tU.includes(e)?this.navigateTo(`/${e}`):this.navigateTo("/overview")}navigateToEmailFolder(e){aU.includes(e)?this.navigateTo(`/emails/${e}`):this.navigateTo("/emails/queued")}getCurrentView(){return Oa.getState().activeView}getCurrentEmailFolder(){return $1.getState().currentView}destroy(){this.router.destroy(),this.initialized=!1}},ac=new iU;pe();var na=X`
|
|
29137
29137
|
:host {
|
|
29138
29138
|
display: block;
|
|
29139
29139
|
margin: auto;
|
|
@@ -29209,7 +29209,7 @@ html\`<dees-button>Click me</dees-button>\`</code></pre>
|
|
|
29209
29209
|
`}renderDnsStats(){if(!this.statsState.dnsStats)return w``;let a=Math.round(this.statsState.dnsStats.cacheHitRate*100),i=[{id:"queries",title:"DNS Queries",value:this.statsState.dnsStats.totalQueries,type:"number",icon:"lucide:Globe",color:"#3b82f6",description:"Total queries handled"},{id:"cacheRate",title:"Cache Hit Rate",value:a,type:"percentage",icon:"lucide:Database",color:a>80?"#22c55e":a>60?"#f59e0b":"#ef4444",description:`${this.statsState.dnsStats.cacheHits} hits / ${this.statsState.dnsStats.cacheMisses} misses`},{id:"domains",title:"Active Domains",value:this.statsState.dnsStats.activeDomains,type:"number",icon:"lucide:Network",color:"#8b5cf6"},{id:"responseTime",title:"Avg Response Time",value:this.statsState.dnsStats.averageResponseTime.toFixed(1),unit:"ms",type:"number",icon:"lucide:History",color:this.statsState.dnsStats.averageResponseTime<50?"#22c55e":"#f59e0b"}];return w`
|
|
29210
29210
|
<h2>DNS Statistics</h2>
|
|
29211
29211
|
<dees-statsgrid .tiles=${i}></dees-statsgrid>
|
|
29212
|
-
`}getRecentEventEntries(){return this.logState.recentLogs.map(a=>({timestamp:new Date(a.timestamp).toISOString(),level:a.level,message:a.message,source:a.category}))}getSecurityAlertEntries(){return(this.statsState.securityMetrics?.recentEvents||[]).map(i=>({timestamp:new Date(i.timestamp).toISOString(),level:i.level==="critical"||i.level==="error"?"error":i.level==="warn"?"warn":"info",message:i.message,source:i.type}))}getDnsQueryEntries(){return(this.statsState.dnsStats?.recentQueries||[]).map(i=>({timestamp:new Date(i.timestamp).toISOString(),level:i.answered?"info":"warn",message:`${i.type} ${i.domain} (${i.responseTimeMs}ms)`,source:"dns"}))}getEmailTrafficSeries(){let a=this.statsState.emailStats?.timeSeries;return a?[{name:"Sent",color:"#22c55e",data:(a.sent||[]).map(i=>({x:i.timestamp,y:i.value}))},{name:"Received",color:"#3b82f6",data:(a.received||[]).map(i=>({x:i.timestamp,y:i.value}))}]:[]}getDnsQuerySeries(){let a=this.statsState.dnsStats?.timeSeries;return a?[{name:"Queries",color:"#8b5cf6",data:(a.queries||[]).map(i=>({x:i.timestamp,y:i.value}))}]:[]}};rn=Y1(Ewt),sU=new WeakMap,nU=new WeakMap,dt(rn,4,"statsState",Dwt,Jr,sU),dt(rn,4,"logState",Awt,Jr,nU),Jr=dt(rn,0,"OpsViewOverview",Pwt,Jr),
|
|
29212
|
+
`}getRecentEventEntries(){return this.logState.recentLogs.map(a=>({timestamp:new Date(a.timestamp).toISOString(),level:a.level,message:a.message,source:a.category}))}getSecurityAlertEntries(){return(this.statsState.securityMetrics?.recentEvents||[]).map(i=>({timestamp:new Date(i.timestamp).toISOString(),level:i.level==="critical"||i.level==="error"?"error":i.level==="warn"?"warn":"info",message:i.message,source:i.type}))}getDnsQueryEntries(){return(this.statsState.dnsStats?.recentQueries||[]).map(i=>({timestamp:new Date(i.timestamp).toISOString(),level:i.answered?"info":"warn",message:`${i.type} ${i.domain} (${i.responseTimeMs}ms)`,source:"dns"}))}getEmailTrafficSeries(){let a=this.statsState.emailStats?.timeSeries;return a?[{name:"Sent",color:"#22c55e",data:(a.sent||[]).map(i=>({x:i.timestamp,y:i.value}))},{name:"Received",color:"#3b82f6",data:(a.received||[]).map(i=>({x:i.timestamp,y:i.value}))}]:[]}getDnsQuerySeries(){let a=this.statsState.dnsStats?.timeSeries;return a?[{name:"Queries",color:"#8b5cf6",data:(a.queries||[]).map(i=>({x:i.timestamp,y:i.value}))}]:[]}};rn=Y1(Ewt),sU=new WeakMap,nU=new WeakMap,dt(rn,4,"statsState",Dwt,Jr,sU),dt(rn,4,"logState",Awt,Jr,nU),Jr=dt(rn,0,"OpsViewOverview",Pwt,Jr),h1(Jr,"styles",[p.defaultStyles,na,X`
|
|
29213
29213
|
h2 {
|
|
29214
29214
|
margin: 32px 0 16px 0;
|
|
29215
29215
|
font-size: 24px;
|
|
@@ -29242,7 +29242,7 @@ html\`<dees-button>Click me</dees-button>\`</code></pre>
|
|
|
29242
29242
|
dees-statsgrid {
|
|
29243
29243
|
margin-bottom: 32px;
|
|
29244
29244
|
}
|
|
29245
|
-
`]),Re(rn,1,Jr);pe();var Nwt,Iwt,Fwt,Rwt,Owt,Bwt,Hwt,z2,oU,lU,cU,dU,uU;Hwt=[de("ops-view-network")];var oi=class extends(Bwt=xe,Owt=[K()],Rwt=[K()],Fwt=[K()],Iwt=[K()],Nwt=[K()],Bwt){constructor(){super();kt(this,oU,Re(z2,8,this,f2.getState())),Re(z2,11,this);kt(this,lU,Re(z2,12,this,Xr.getState())),Re(z2,15,this);kt(this,cU,Re(z2,16,this,[])),Re(z2,19,this);kt(this,dU,Re(z2,20,this,[])),Re(z2,23,this);kt(this,uU,Re(z2,24,this,[])),Re(z2,27,this);
|
|
29245
|
+
`]),Re(rn,1,Jr);pe();var Nwt,Iwt,Fwt,Rwt,Owt,Bwt,Hwt,z2,oU,lU,cU,dU,uU;Hwt=[de("ops-view-network")];var oi=class extends(Bwt=xe,Owt=[K()],Rwt=[K()],Fwt=[K()],Iwt=[K()],Nwt=[K()],Bwt){constructor(){super();kt(this,oU,Re(z2,8,this,f2.getState())),Re(z2,11,this);kt(this,lU,Re(z2,12,this,Xr.getState())),Re(z2,15,this);kt(this,cU,Re(z2,16,this,[])),Re(z2,19,this);kt(this,dU,Re(z2,20,this,[])),Re(z2,23,this);kt(this,uU,Re(z2,24,this,[])),Re(z2,27,this);h1(this,"lastChartUpdate",0);h1(this,"chartUpdateThreshold",1e3);h1(this,"trafficUpdateTimer",null);h1(this,"requestsPerSecHistory",[]);h1(this,"historyLoaded",!1);this.subscribeToStateParts(),this.initializeTrafficData(),this.updateNetworkData(),this.startTrafficUpdateTimer()}async connectedCallback(){await super.connectedCallback(),await Xr.dispatchAction(Xj,null)}async disconnectedCallback(){await super.disconnectedCallback(),this.stopTrafficUpdateTimer()}subscribeToStateParts(){let a=f2.state.subscribe(r=>{this.statsState=r,this.updateNetworkData()});this.rxSubscriptions.push(a);let i=Xr.state.subscribe(r=>{this.networkState=r,this.updateNetworkData()});this.rxSubscriptions.push(i)}initializeTrafficData(){let a=Date.now(),r=300*1e3/60,s=Array.from({length:60},(n,o)=>{let l=a-(59-o)*r;return{x:new Date(l).toISOString(),y:0}});this.trafficDataIn=[...s],this.trafficDataOut=s.map(n=>({...n}))}loadThroughputHistory(){let a=this.networkState.throughputHistory;if(!a||a.length===0)return;this.historyLoaded=!0;let i=a.map(n=>({x:new Date(n.timestamp).toISOString(),y:Math.round(n.in*8/1e6*10)/10})),r=a.map(n=>({x:new Date(n.timestamp).toISOString(),y:Math.round(n.out*8/1e6*10)/10})),s=Math.max(0,i.length-60);if(this.trafficDataIn=i.slice(s),this.trafficDataOut=r.slice(s),this.trafficDataIn.length<60){let n=Date.now(),l=300*1e3/60,d=60-this.trafficDataIn.length,u=this.trafficDataIn.length>0?new Date(this.trafficDataIn[0].x).getTime():n,c=Array.from({length:d},(g,y)=>({x:new Date(u-(d-y)*l).toISOString(),y:0})),f=c.map(g=>({...g}));this.trafficDataIn=[...c,...this.trafficDataIn],this.trafficDataOut=[...f,...this.trafficDataOut]}}render(){return w`
|
|
29246
29246
|
<ops-sectionheading>Network Activity</ops-sectionheading>
|
|
29247
29247
|
|
|
29248
29248
|
<div class="networkContainer">
|
|
@@ -29287,7 +29287,7 @@ html\`<dees-button>Click me</dees-button>\`</code></pre>
|
|
|
29287
29287
|
.codeToDisplay=${JSON.stringify({id:a.id,timestamp:new Date(a.timestamp).toISOString(),protocol:a.protocol,method:a.method,url:a.url,hostname:a.hostname,port:a.port,statusCode:a.statusCode,duration:`${a.duration}ms`,bytesIn:a.bytesIn,bytesOut:a.bytesOut,remoteIp:a.remoteIp,route:a.route},null,2)}
|
|
29288
29288
|
></dees-dataview-codebox>
|
|
29289
29289
|
</div>
|
|
29290
|
-
`,menuOptions:[{name:"Copy Request ID",iconName:"lucide:Copy",action:async()=>{await navigator.clipboard.writeText(a.id)}}]})}renderStatus(a){if(!a)return w`<span class="statusBadge warning">N/A</span>`;let i=a>=200&&a<300?"success":a>=400?"error":"warning";return w`<span class="statusBadge ${i}">${a}</span>`}truncateUrl(a,i=50){return a.length<=i?a:a.substring(0,i-3)+"..."}formatNumber(a){return a>=1e6?(a/1e6).toFixed(1)+"M":a>=1e3?(a/1e3).toFixed(1)+"K":a.toFixed(0)}formatBytes(a){let i=["B","KB","MB","GB"],r=a,s=0;for(;r>=1024&&s<i.length-1;)r/=1024,s++;return`${r.toFixed(1)} ${i[s]}`}formatBitsPerSecond(a){let i=a*8,r=["bit/s","kbit/s","Mbit/s","Gbit/s"],s=i,n=0;for(;s>=1e3&&n<r.length-1;)s/=1e3,n++;return`${s.toFixed(1)} ${r[n]}`}calculateThroughput(){return{in:this.networkState.throughputRate.bytesInPerSecond,out:this.networkState.throughputRate.bytesOutPerSecond}}renderNetworkStats(){let a=this.networkState.requestsPerSecond||0,i=this.calculateThroughput(),r=this.statsState.serverStats?.activeConnections||0
|
|
29290
|
+
`,menuOptions:[{name:"Copy Request ID",iconName:"lucide:Copy",action:async()=>{await navigator.clipboard.writeText(a.id)}}]})}renderStatus(a){if(!a)return w`<span class="statusBadge warning">N/A</span>`;let i=a>=200&&a<300?"success":a>=400?"error":"warning";return w`<span class="statusBadge ${i}">${a}</span>`}truncateUrl(a,i=50){return a.length<=i?a:a.substring(0,i-3)+"..."}formatNumber(a){return a>=1e6?(a/1e6).toFixed(1)+"M":a>=1e3?(a/1e3).toFixed(1)+"K":a.toFixed(0)}formatBytes(a){let i=["B","KB","MB","GB"],r=a,s=0;for(;r>=1024&&s<i.length-1;)r/=1024,s++;return`${r.toFixed(1)} ${i[s]}`}formatBitsPerSecond(a){let i=a*8,r=["bit/s","kbit/s","Mbit/s","Gbit/s"],s=i,n=0;for(;s>=1e3&&n<r.length-1;)s/=1e3,n++;return`${s.toFixed(1)} ${r[n]}`}calculateThroughput(){return{in:this.networkState.throughputRate.bytesInPerSecond,out:this.networkState.throughputRate.bytesOutPerSecond}}renderNetworkStats(){let a=this.networkState.requestsPerSecond||0,i=this.calculateThroughput(),r=this.statsState.serverStats?.activeConnections||0,s=[...this.requestsPerSecHistory];for(;s.length<20;)s.unshift(0);let n=[{id:"connections",title:"Active Connections",value:r,type:"number",icon:"lucide:Plug",color:r>100?"#f59e0b":"#22c55e",description:`Total: ${this.networkState.requestsTotal||this.statsState.serverStats?.totalConnections||0}`,actions:[{name:"View Details",iconName:"fa:magnifyingGlass",action:async()=>{}}]},{id:"requests",title:"Requests/sec",value:a,type:"trend",icon:"lucide:ChartLine",color:"#3b82f6",trendData:s,description:`Total: ${this.formatNumber(this.networkState.requestsTotal||0)} requests`},{id:"throughputIn",title:"Throughput In",value:this.formatBitsPerSecond(i.in),unit:"",type:"number",icon:"lucide:Download",color:"#22c55e",description:`Total: ${this.formatBytes(this.networkState.totalBytes?.in||0)}`},{id:"throughputOut",title:"Throughput Out",value:this.formatBitsPerSecond(i.out),unit:"",type:"number",icon:"lucide:Upload",color:"#8b5cf6",description:`Total: ${this.formatBytes(this.networkState.totalBytes?.out||0)}`}];return w`
|
|
29291
29291
|
<dees-statsgrid
|
|
29292
29292
|
.tiles=${n}
|
|
29293
29293
|
.minTileWidth=${200}
|
|
@@ -29302,7 +29302,7 @@ html\`<dees-button>Click me</dees-button>\`</code></pre>
|
|
|
29302
29302
|
.pagination=${!1}
|
|
29303
29303
|
dataName="ip"
|
|
29304
29304
|
></dees-table>
|
|
29305
|
-
`}async updateNetworkData(){let a=this.networkState.connections.length,
|
|
29305
|
+
`}async updateNetworkData(){let a=this.networkState.requestsPerSecond||0;this.requestsPerSecHistory.push(a),this.requestsPerSecHistory.length>20&&this.requestsPerSecHistory.shift();let i=this.networkState.connections.length,r=this.networkRequests.length;(i!==r||i===0||i>0&&this.networkRequests.length===0)&&(i>0?this.networkRequests=this.networkState.connections.map((n,o)=>({id:n.id,timestamp:n.startTime,method:"GET",url:"/",hostname:n.remoteAddress,port:n.protocol==="https"?443:80,protocol:n.protocol==="https"||n.protocol==="http"?n.protocol:"tcp",statusCode:n.state==="connected"?200:void 0,duration:Date.now()-n.startTime,bytesIn:n.bytesReceived,bytesOut:n.bytesSent,remoteIp:n.remoteAddress,route:"proxy"})):this.networkRequests=[]),!this.historyLoaded&&this.networkState.throughputHistory&&this.networkState.throughputHistory.length>0&&this.loadThroughputHistory()}startTrafficUpdateTimer(){this.stopTrafficUpdateTimer(),this.trafficUpdateTimer=setInterval(()=>{this.addTrafficDataPoint()},1e3)}addTrafficDataPoint(){let a=Date.now();if(a-this.lastChartUpdate<this.chartUpdateThreshold)return;let i=this.calculateThroughput(),r=i.in*8/1e6,s=i.out*8/1e6,n=new Date(a).toISOString(),o={x:n,y:Math.round(r*10)/10},l={x:n,y:Math.round(s*10)/10};this.trafficDataIn.length>=60&&(this.trafficDataIn.shift(),this.trafficDataOut.shift()),this.trafficDataIn=[...this.trafficDataIn,o],this.trafficDataOut=[...this.trafficDataOut,l],this.lastChartUpdate=a}stopTrafficUpdateTimer(){this.trafficUpdateTimer&&(clearInterval(this.trafficUpdateTimer),this.trafficUpdateTimer=null)}};z2=Y1(Bwt),oU=new WeakMap,lU=new WeakMap,cU=new WeakMap,dU=new WeakMap,uU=new WeakMap,dt(z2,4,"statsState",Owt,oi,oU),dt(z2,4,"networkState",Rwt,oi,lU),dt(z2,4,"networkRequests",Fwt,oi,cU),dt(z2,4,"trafficDataIn",Iwt,oi,dU),dt(z2,4,"trafficDataOut",Nwt,oi,uU),oi=dt(z2,0,"OpsViewNetwork",Hwt,oi),h1(oi,"styles",[p.defaultStyles,na,X`
|
|
29306
29306
|
.networkContainer {
|
|
29307
29307
|
display: flex;
|
|
29308
29308
|
flex-direction: column;
|
|
@@ -29367,7 +29367,7 @@ html\`<dees-button>Click me</dees-button>\`</code></pre>
|
|
|
29367
29367
|
background: ${p.bdTheme("#fff3e0","#3a2a1a")};
|
|
29368
29368
|
color: ${p.bdTheme("#f57c00","#ff9933")};
|
|
29369
29369
|
}
|
|
29370
|
-
`]),Re(z2,1,oi);pe();var qwt,Vwt,jwt,Uwt,Wwt,Gwt,Ywt,Zwt,Xwt,Qwt,Kwt,Jwt,eMt,Pt,pU,hU,fU,mU,gU,bU,vU,yU,xU,wU,MU;eMt=[de("ops-view-emails")];var m2=class extends(Jwt=xe,Kwt=[K()],Qwt=[K()],Xwt=[K()],Zwt=[K()],Ywt=[K()],Gwt=[K()],Wwt=[K()],Uwt=[K()],jwt=[K()],Vwt=[K()],qwt=[K()],Jwt){constructor(){super();kt(this,pU,Re(Pt,8,this,"queued")),Re(Pt,11,this);kt(this,hU,Re(Pt,12,this,[])),Re(Pt,15,this);kt(this,fU,Re(Pt,16,this,[])),Re(Pt,19,this);kt(this,mU,Re(Pt,20,this,[])),Re(Pt,23,this);kt(this,gU,Re(Pt,24,this,[])),Re(Pt,27,this);kt(this,bU,Re(Pt,28,this,null)),Re(Pt,31,this);kt(this,vU,Re(Pt,32,this,null)),Re(Pt,35,this);kt(this,yU,Re(Pt,36,this,!1)),Re(Pt,39,this);kt(this,xU,Re(Pt,40,this,!1)),Re(Pt,43,this);kt(this,wU,Re(Pt,44,this,"")),Re(Pt,47,this);kt(this,MU,Re(Pt,48,this,[])),Re(Pt,51,this);
|
|
29370
|
+
`]),Re(z2,1,oi);pe();var qwt,Vwt,jwt,Uwt,Wwt,Gwt,Ywt,Zwt,Xwt,Qwt,Kwt,Jwt,eMt,Pt,pU,hU,fU,mU,gU,bU,vU,yU,xU,wU,MU;eMt=[de("ops-view-emails")];var m2=class extends(Jwt=xe,Kwt=[K()],Qwt=[K()],Xwt=[K()],Zwt=[K()],Ywt=[K()],Gwt=[K()],Wwt=[K()],Uwt=[K()],jwt=[K()],Vwt=[K()],qwt=[K()],Jwt){constructor(){super();kt(this,pU,Re(Pt,8,this,"queued")),Re(Pt,11,this);kt(this,hU,Re(Pt,12,this,[])),Re(Pt,15,this);kt(this,fU,Re(Pt,16,this,[])),Re(Pt,19,this);kt(this,mU,Re(Pt,20,this,[])),Re(Pt,23,this);kt(this,gU,Re(Pt,24,this,[])),Re(Pt,27,this);kt(this,bU,Re(Pt,28,this,null)),Re(Pt,31,this);kt(this,vU,Re(Pt,32,this,null)),Re(Pt,35,this);kt(this,yU,Re(Pt,36,this,!1)),Re(Pt,39,this);kt(this,xU,Re(Pt,40,this,!1)),Re(Pt,43,this);kt(this,wU,Re(Pt,44,this,"")),Re(Pt,47,this);kt(this,MU,Re(Pt,48,this,[])),Re(Pt,51,this);h1(this,"stateSubscription");this.loadData(),this.loadEmailDomains()}async connectedCallback(){await super.connectedCallback(),this.stateSubscription=$1.state.subscribe(a=>{this.queuedEmails=a.queuedEmails,this.sentEmails=a.sentEmails,this.failedEmails=a.failedEmails,this.securityIncidents=a.securityIncidents,this.isLoading=a.isLoading,a.currentView!==this.selectedFolder&&(this.selectedFolder=a.currentView,this.loadFolderData(a.currentView))})}async disconnectedCallback(){await super.disconnectedCallback(),this.stateSubscription&&this.stateSubscription.unsubscribe()}render(){return this.selectedEmail?this.renderEmailDetail():this.selectedIncident?this.renderIncidentDetail():w`
|
|
29371
29371
|
<ops-sectionheading>Email Operations</ops-sectionheading>
|
|
29372
29372
|
|
|
29373
29373
|
<!-- Toolbar -->
|
|
@@ -29644,7 +29644,7 @@ ${JSON.stringify(a.details,null,2)}
|
|
|
29644
29644
|
></dees-input-wysiwyg>
|
|
29645
29645
|
</dees-form>
|
|
29646
29646
|
</div>
|
|
29647
|
-
`,menuOptions:[{name:"Send",iconName:"lucide:send",action:async i=>{i.shadowRoot?.querySelector("dees-form")?.submit()}},{name:"Cancel",iconName:"lucide:x",action:async i=>await i.destroy()}]})}filterEmails(a){if(!this.searchTerm)return a;let i=this.searchTerm.toLowerCase();return a.filter(r=>r.subject?.toLowerCase().includes(i)||r.from?.toLowerCase().includes(i)||r.to?.some(s=>s.toLowerCase().includes(i)))}selectFolder(a){ac.navigateToEmailFolder(a),this.selectedEmail=null,this.selectedIncident=null}formatDate(a){let i=new Date(a),n=(new Date().getTime()-i.getTime())/(1e3*60*60);return n<24?i.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"}):n<168?i.toLocaleDateString([],{weekday:"short",hour:"2-digit",minute:"2-digit"}):i.toLocaleDateString([],{month:"short",day:"numeric"})}async loadData(){this.isLoading=!0,await this.loadFolderData(this.selectedFolder),this.isLoading=!1}async loadFolderData(a){switch(a){case"queued":await $1.dispatchAction(Qj,null);break;case"sent":await $1.dispatchAction(vwt,null);break;case"failed":await $1.dispatchAction(Kj,null);break;case"security":await $1.dispatchAction(ywt,null);break}}async loadEmailDomains(){try{await Qr.dispatchAction(tc,null);let a=Qr.getState().config;a?.email?.domains&&Array.isArray(a.email.domains)&&a.email.domains.length>0?this.emailDomains=a.email.domains:this.emailDomains=["dcrouter.local"]}catch(a){console.error("Failed to load email domains:",a),this.emailDomains=["dcrouter.local"]}}async refreshData(){this.isLoading=!0,await this.loadFolderData(this.selectedFolder),this.isLoading=!1}async sendEmail(a){try{console.log("Sending email:",a);let i=`${a.fromUsername||"admin"}@${a.fromDomain||this.emailDomains[0]||"dcrouter.local"}`;console.log("From:",i),console.log("To:",a.to),console.log("Subject:",a.subject)}catch(i){console.error("Failed to send email",i)}}async resendEmail(a){try{await $1.dispatchAction(xwt,a),this.selectedEmail=null}catch(i){console.error("Failed to resend email:",i)}}};Pt=Y1(Jwt),pU=new WeakMap,hU=new WeakMap,fU=new WeakMap,mU=new WeakMap,gU=new WeakMap,bU=new WeakMap,vU=new WeakMap,yU=new WeakMap,xU=new WeakMap,wU=new WeakMap,MU=new WeakMap,dt(Pt,4,"selectedFolder",Kwt,m2,pU),dt(Pt,4,"queuedEmails",Qwt,m2,hU),dt(Pt,4,"sentEmails",Xwt,m2,fU),dt(Pt,4,"failedEmails",Zwt,m2,mU),dt(Pt,4,"securityIncidents",Ywt,m2,gU),dt(Pt,4,"selectedEmail",Gwt,m2,bU),dt(Pt,4,"selectedIncident",Wwt,m2,vU),dt(Pt,4,"showCompose",Uwt,m2,yU),dt(Pt,4,"isLoading",jwt,m2,xU),dt(Pt,4,"searchTerm",Vwt,m2,wU),dt(Pt,4,"emailDomains",qwt,m2,MU),m2=dt(Pt,0,"OpsViewEmails",eMt,m2),
|
|
29647
|
+
`,menuOptions:[{name:"Send",iconName:"lucide:send",action:async i=>{i.shadowRoot?.querySelector("dees-form")?.submit()}},{name:"Cancel",iconName:"lucide:x",action:async i=>await i.destroy()}]})}filterEmails(a){if(!this.searchTerm)return a;let i=this.searchTerm.toLowerCase();return a.filter(r=>r.subject?.toLowerCase().includes(i)||r.from?.toLowerCase().includes(i)||r.to?.some(s=>s.toLowerCase().includes(i)))}selectFolder(a){ac.navigateToEmailFolder(a),this.selectedEmail=null,this.selectedIncident=null}formatDate(a){let i=new Date(a),n=(new Date().getTime()-i.getTime())/(1e3*60*60);return n<24?i.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"}):n<168?i.toLocaleDateString([],{weekday:"short",hour:"2-digit",minute:"2-digit"}):i.toLocaleDateString([],{month:"short",day:"numeric"})}async loadData(){this.isLoading=!0,await this.loadFolderData(this.selectedFolder),this.isLoading=!1}async loadFolderData(a){switch(a){case"queued":await $1.dispatchAction(Qj,null);break;case"sent":await $1.dispatchAction(vwt,null);break;case"failed":await $1.dispatchAction(Kj,null);break;case"security":await $1.dispatchAction(ywt,null);break}}async loadEmailDomains(){try{await Qr.dispatchAction(tc,null);let a=Qr.getState().config;a?.email?.domains&&Array.isArray(a.email.domains)&&a.email.domains.length>0?this.emailDomains=a.email.domains:this.emailDomains=["dcrouter.local"]}catch(a){console.error("Failed to load email domains:",a),this.emailDomains=["dcrouter.local"]}}async refreshData(){this.isLoading=!0,await this.loadFolderData(this.selectedFolder),this.isLoading=!1}async sendEmail(a){try{console.log("Sending email:",a);let i=`${a.fromUsername||"admin"}@${a.fromDomain||this.emailDomains[0]||"dcrouter.local"}`;console.log("From:",i),console.log("To:",a.to),console.log("Subject:",a.subject)}catch(i){console.error("Failed to send email",i)}}async resendEmail(a){try{await $1.dispatchAction(xwt,a),this.selectedEmail=null}catch(i){console.error("Failed to resend email:",i)}}};Pt=Y1(Jwt),pU=new WeakMap,hU=new WeakMap,fU=new WeakMap,mU=new WeakMap,gU=new WeakMap,bU=new WeakMap,vU=new WeakMap,yU=new WeakMap,xU=new WeakMap,wU=new WeakMap,MU=new WeakMap,dt(Pt,4,"selectedFolder",Kwt,m2,pU),dt(Pt,4,"queuedEmails",Qwt,m2,hU),dt(Pt,4,"sentEmails",Xwt,m2,fU),dt(Pt,4,"failedEmails",Zwt,m2,mU),dt(Pt,4,"securityIncidents",Ywt,m2,gU),dt(Pt,4,"selectedEmail",Gwt,m2,bU),dt(Pt,4,"selectedIncident",Wwt,m2,vU),dt(Pt,4,"showCompose",Uwt,m2,yU),dt(Pt,4,"isLoading",jwt,m2,xU),dt(Pt,4,"searchTerm",Vwt,m2,wU),dt(Pt,4,"emailDomains",qwt,m2,MU),m2=dt(Pt,0,"OpsViewEmails",eMt,m2),h1(m2,"styles",[p.defaultStyles,na,X`
|
|
29648
29648
|
:host {
|
|
29649
29649
|
display: block;
|
|
29650
29650
|
height: 100%;
|
|
@@ -29842,7 +29842,7 @@ ${JSON.stringify(a.details,null,2)}
|
|
|
29842
29842
|
font-size: 14px;
|
|
29843
29843
|
word-break: break-all;
|
|
29844
29844
|
}
|
|
29845
|
-
`]),Re(Pt,1,m2);pe();var tMt,aMt,iMt,rMt,sMt,nMt,Ca,zU,SU,kU,CU;nMt=[de("ops-view-logs")];var Di=class extends(sMt=xe,rMt=[K()],iMt=[K()],aMt=[K()],tMt=[K()],sMt){constructor(){super();kt(this,zU,Re(Ca,8,this,{recentLogs:[],isStreaming:!1,filters:{}})),Re(Ca,11,this);kt(this,SU,Re(Ca,12,this)),Re(Ca,15,this);kt(this,kU,Re(Ca,16,this)),Re(Ca,19,this);kt(this,CU,Re(Ca,20,this,100)),Re(Ca,23,this);
|
|
29845
|
+
`]),Re(Pt,1,m2);pe();var tMt,aMt,iMt,rMt,sMt,nMt,Ca,zU,SU,kU,CU;nMt=[de("ops-view-logs")];var Di=class extends(sMt=xe,rMt=[K()],iMt=[K()],aMt=[K()],tMt=[K()],sMt){constructor(){super();kt(this,zU,Re(Ca,8,this,{recentLogs:[],isStreaming:!1,filters:{}})),Re(Ca,11,this);kt(this,SU,Re(Ca,12,this)),Re(Ca,15,this);kt(this,kU,Re(Ca,16,this)),Re(Ca,19,this);kt(this,CU,Re(Ca,20,this,100)),Re(Ca,23,this);h1(this,"lastPushedCount",0);let a=an.select(i=>i).subscribe(i=>{this.logState=i});this.rxSubscriptions.push(a)}render(){return w`
|
|
29846
29846
|
<ops-sectionheading>Logs</ops-sectionheading>
|
|
29847
29847
|
|
|
29848
29848
|
<div class="controls">
|
|
@@ -29888,7 +29888,7 @@ ${JSON.stringify(a.details,null,2)}
|
|
|
29888
29888
|
.maxEntries=${2e3}
|
|
29889
29889
|
.showMetrics=${!0}
|
|
29890
29890
|
></dees-chart-log>
|
|
29891
|
-
`}async connectedCallback(){super.connectedCallback(),this.lastPushedCount=0,this.logState.recentLogs.length===0&&this.fetchLogs()}async updated(a){super.updated(a),a.has("logState")&&this.pushLogsToChart()}async pushLogsToChart(){let a=this.shadowRoot?.querySelector("dees-chart-log");if(!a)return;await a.updateComplete,a.terminalReady||await new Promise(r=>{let s=()=>{if(a.terminalReady){r();return}setTimeout(s,50)};s()});let i=this.getMappedLogEntries();if(this.lastPushedCount===0&&i.length>0)a.updateLog(i),this.lastPushedCount=i.length;else if(i.length>this.lastPushedCount){let r=i.slice(this.lastPushedCount);a.updateLog(r),this.lastPushedCount=i.length}}getMappedLogEntries(){return this.logState.recentLogs.map(a=>({timestamp:new Date(a.timestamp).toISOString(),level:a.level,message:a.message,source:a.category}))}async fetchLogs(){await an.dispatchAction(Rw,{limit:this.filterLimit,level:this.filterLevel,category:this.filterCategory})}updateFilter(a,i){let r=i==="all"?void 0:i;switch(a){case"level":this.filterLevel=r;break;case"category":this.filterCategory=r;break;case"limit":this.filterLimit=r?parseInt(r,10):100;break}this.fetchLogs()}};Ca=Y1(sMt),zU=new WeakMap,SU=new WeakMap,kU=new WeakMap,CU=new WeakMap,dt(Ca,4,"logState",rMt,Di,zU),dt(Ca,4,"filterLevel",iMt,Di,SU),dt(Ca,4,"filterCategory",aMt,Di,kU),dt(Ca,4,"filterLimit",tMt,Di,CU),Di=dt(Ca,0,"OpsViewLogs",nMt,Di),
|
|
29891
|
+
`}async connectedCallback(){super.connectedCallback(),this.lastPushedCount=0,this.logState.recentLogs.length===0&&this.fetchLogs()}async updated(a){super.updated(a),a.has("logState")&&this.pushLogsToChart()}async pushLogsToChart(){let a=this.shadowRoot?.querySelector("dees-chart-log");if(!a)return;await a.updateComplete,a.terminalReady||await new Promise(r=>{let s=()=>{if(a.terminalReady){r();return}setTimeout(s,50)};s()});let i=this.getMappedLogEntries();if(this.lastPushedCount===0&&i.length>0)a.updateLog(i),this.lastPushedCount=i.length;else if(i.length>this.lastPushedCount){let r=i.slice(this.lastPushedCount);a.updateLog(r),this.lastPushedCount=i.length}}getMappedLogEntries(){return this.logState.recentLogs.map(a=>({timestamp:new Date(a.timestamp).toISOString(),level:a.level,message:a.message,source:a.category}))}async fetchLogs(){await an.dispatchAction(Rw,{limit:this.filterLimit,level:this.filterLevel,category:this.filterCategory})}updateFilter(a,i){let r=i==="all"?void 0:i;switch(a){case"level":this.filterLevel=r;break;case"category":this.filterCategory=r;break;case"limit":this.filterLimit=r?parseInt(r,10):100;break}this.fetchLogs()}};Ca=Y1(sMt),zU=new WeakMap,SU=new WeakMap,kU=new WeakMap,CU=new WeakMap,dt(Ca,4,"logState",rMt,Di,zU),dt(Ca,4,"filterLevel",iMt,Di,SU),dt(Ca,4,"filterCategory",aMt,Di,kU),dt(Ca,4,"filterLimit",tMt,Di,CU),Di=dt(Ca,0,"OpsViewLogs",nMt,Di),h1(Di,"styles",[p.defaultStyles,na,X`
|
|
29892
29892
|
.controls {
|
|
29893
29893
|
display: flex;
|
|
29894
29894
|
gap: 16px;
|
|
@@ -29972,7 +29972,7 @@ ${JSON.stringify(a.details,null,2)}
|
|
|
29972
29972
|
<div class="fieldValue">
|
|
29973
29973
|
${a.length} items configured
|
|
29974
29974
|
</div>
|
|
29975
|
-
`}getArrayItemLabel(a,i){let s={ports:["port","ports"],domains:["domain","domains"],nameservers:["nameserver","nameservers"],blockList:["IP","IPs"]}[a]||["item","items"];return i===1?s[0]:s[1]}formatFieldName(a){return a.replace(/([A-Z])/g," $1").replace(/^./,i=>i.toUpperCase()).trim()}formatValue(a,i){return a==null?w`<span class="empty">Not set</span>`:typeof a=="number"?i?.toLowerCase().includes("size")||i?.toLowerCase().includes("bytes")?w`<span class="numericValue">${this.formatBytes(a)}</span>`:i?.toLowerCase().includes("ttl")||i?.toLowerCase().includes("timeout")?w`<span class="numericValue">${a} seconds</span>`:i?.toLowerCase().includes("port")?w`<span class="numericValue">${a}</span>`:w`<span class="numericValue">${a.toLocaleString()}</span>`:String(a)}formatBytes(a){if(a===0)return"0 B";let i=1024,r=["B","KB","MB","GB","TB"],s=Math.floor(Math.log(a)/Math.log(i));return parseFloat((a/Math.pow(i,s)).toFixed(2))+" "+r[s]}};ic=Y1(lMt),TU=new WeakMap,dt(ic,4,"configState",oMt,sn,TU),sn=dt(ic,0,"OpsViewConfig",cMt,sn),
|
|
29975
|
+
`}getArrayItemLabel(a,i){let s={ports:["port","ports"],domains:["domain","domains"],nameservers:["nameserver","nameservers"],blockList:["IP","IPs"]}[a]||["item","items"];return i===1?s[0]:s[1]}formatFieldName(a){return a.replace(/([A-Z])/g," $1").replace(/^./,i=>i.toUpperCase()).trim()}formatValue(a,i){return a==null?w`<span class="empty">Not set</span>`:typeof a=="number"?i?.toLowerCase().includes("size")||i?.toLowerCase().includes("bytes")?w`<span class="numericValue">${this.formatBytes(a)}</span>`:i?.toLowerCase().includes("ttl")||i?.toLowerCase().includes("timeout")?w`<span class="numericValue">${a} seconds</span>`:i?.toLowerCase().includes("port")?w`<span class="numericValue">${a}</span>`:w`<span class="numericValue">${a.toLocaleString()}</span>`:String(a)}formatBytes(a){if(a===0)return"0 B";let i=1024,r=["B","KB","MB","GB","TB"],s=Math.floor(Math.log(a)/Math.log(i));return parseFloat((a/Math.pow(i,s)).toFixed(2))+" "+r[s]}};ic=Y1(lMt),TU=new WeakMap,dt(ic,4,"configState",oMt,sn,TU),sn=dt(ic,0,"OpsViewConfig",cMt,sn),h1(sn,"styles",[p.defaultStyles,na,X`
|
|
29976
29976
|
.configSection {
|
|
29977
29977
|
background: ${p.bdTheme("#fff","#222")};
|
|
29978
29978
|
border: 1px solid ${p.bdTheme("#e9ecef","#333")};
|
|
@@ -30258,7 +30258,7 @@ ${JSON.stringify(a.details,null,2)}
|
|
|
30258
30258
|
Save Settings
|
|
30259
30259
|
</dees-button>
|
|
30260
30260
|
</div>
|
|
30261
|
-
`}calculateThreatLevel(a){let i=this.getThreatScore(a);return i<30?"alert":i<70?"warning":"success"}getThreatScore(a){let i=100,r=Array.isArray(a.blockedIPs)?a.blockedIPs.length:a.blockedIPs||0;return i-=r*2,i-=(a.authenticationFailures||0)*1,i-=(a.spamDetected||0)*.5,i-=(a.malwareDetected||0)*3,i-=(a.phishingDetected||0)*3,i-=(a.suspiciousActivities||0)*2,Math.max(0,Math.min(100,Math.round(i)))}getSecurityEvents(a){return(a.recentEvents||[]).map(r=>({timestamp:r.timestamp,event:r.message,severity:r.level==="critical"?"critical":r.level==="error"?"high":r.level==="warn"?"warning":"info",details:r.ipAddress?`IP: ${r.ipAddress}`:r.domain?`Domain: ${r.domain}`:r.type}))}async clearBlockedIPs(){alert("Clearing blocked IPs is not yet supported from the UI.")}async unblockIP(a){alert(`Unblocking IP ${a} is not yet supported from the UI.`)}async saveEmailSecuritySettings(){alert("Email security settings are read-only. Update the dcrouter configuration file to change these settings.")}};nn=Y1(pMt),_U=new WeakMap,LU=new WeakMap,dt(nn,4,"statsState",uMt,es,_U),dt(nn,4,"selectedTab",dMt,es,LU),es=dt(nn,0,"OpsViewSecurity",hMt,es),
|
|
30261
|
+
`}calculateThreatLevel(a){let i=this.getThreatScore(a);return i<30?"alert":i<70?"warning":"success"}getThreatScore(a){let i=100,r=Array.isArray(a.blockedIPs)?a.blockedIPs.length:a.blockedIPs||0;return i-=r*2,i-=(a.authenticationFailures||0)*1,i-=(a.spamDetected||0)*.5,i-=(a.malwareDetected||0)*3,i-=(a.phishingDetected||0)*3,i-=(a.suspiciousActivities||0)*2,Math.max(0,Math.min(100,Math.round(i)))}getSecurityEvents(a){return(a.recentEvents||[]).map(r=>({timestamp:r.timestamp,event:r.message,severity:r.level==="critical"?"critical":r.level==="error"?"high":r.level==="warn"?"warning":"info",details:r.ipAddress?`IP: ${r.ipAddress}`:r.domain?`Domain: ${r.domain}`:r.type}))}async clearBlockedIPs(){alert("Clearing blocked IPs is not yet supported from the UI.")}async unblockIP(a){alert(`Unblocking IP ${a} is not yet supported from the UI.`)}async saveEmailSecuritySettings(){alert("Email security settings are read-only. Update the dcrouter configuration file to change these settings.")}};nn=Y1(pMt),_U=new WeakMap,LU=new WeakMap,dt(nn,4,"statsState",uMt,es,_U),dt(nn,4,"selectedTab",dMt,es,LU),es=dt(nn,0,"OpsViewSecurity",hMt,es),h1(es,"styles",[p.defaultStyles,na,X`
|
|
30262
30262
|
.tabs {
|
|
30263
30263
|
display: flex;
|
|
30264
30264
|
gap: 8px;
|
|
@@ -30459,7 +30459,7 @@ ${JSON.stringify(a.details,null,2)}
|
|
|
30459
30459
|
<span class="expiryInfo">
|
|
30460
30460
|
${n} <span class="daysLeft ${o}">${l}</span>
|
|
30461
30461
|
</span>
|
|
30462
|
-
`}formatRetryTime(a){if(!a)return"soon";let i=new Date(a),r=new Date,s=i.getTime()-r.getTime();if(s<=0)return"now";let n=Math.ceil(s/6e4);return n<60?`in ${n}m`:`in ${Math.ceil(n/60)}h`}};rc=Y1(mMt),$U=new WeakMap,dt(rc,4,"certState",fMt,on,$U),on=dt(rc,0,"OpsViewCertificates",gMt,on),
|
|
30462
|
+
`}formatRetryTime(a){if(!a)return"soon";let i=new Date(a),r=new Date,s=i.getTime()-r.getTime();if(s<=0)return"now";let n=Math.ceil(s/6e4);return n<60?`in ${n}m`:`in ${Math.ceil(n/60)}h`}};rc=Y1(mMt),$U=new WeakMap,dt(rc,4,"certState",fMt,on,$U),on=dt(rc,0,"OpsViewCertificates",gMt,on),h1(on,"styles",[p.defaultStyles,na,X`
|
|
30463
30463
|
.certificatesContainer {
|
|
30464
30464
|
display: flex;
|
|
30465
30465
|
flex-direction: column;
|
|
@@ -30613,7 +30613,7 @@ ${JSON.stringify(a.details,null,2)}
|
|
|
30613
30613
|
`,menuOptions:[{name:"Cancel",iconName:"lucide:x",action:async u=>await u.destroy()},{name:"Save",iconName:"lucide:check",action:async u=>{let c=u.shadowRoot?.querySelector(".content")?.querySelector("dees-form");if(!c)return;let f=await c.collectFormData(),g=f.listenPorts?.trim(),y=g?g.split(",").map(x=>parseInt(x.trim(),10)).filter(x=>!isNaN(x)):[],b=f.autoDerivePorts!==!1,m=f.tags?f.tags.split(",").map(x=>x.trim()).filter(Boolean):[];await L1.dispatchAction(Twt,{id:l.id,name:f.name||l.name,listenPorts:y,autoDerivePorts:b,tags:m}),await u.destroy()}}]})}},{name:"Regenerate Secret",iconName:"lucide:key",type:["inRow","contextmenu"],actionFunc:async o=>{let l=o.item;await L1.dispatchAction(_wt,l.id)}},{name:"Copy Token",iconName:"lucide:ClipboardCopy",type:["inRow","contextmenu"],actionFunc:async o=>{let l=o.item,{DeesToast:d}=await Promise.resolve().then(()=>(ka(),sa));try{let u=await Jj(l.id);if(u.success&&u.token){if(navigator.clipboard&&typeof navigator.clipboard.writeText=="function")await navigator.clipboard.writeText(u.token);else{let c=document.createElement("textarea");c.value=u.token,c.style.position="fixed",c.style.opacity="0",document.body.appendChild(c),c.select(),document.execCommand("copy"),document.body.removeChild(c)}d.show({message:`Connection token copied for ${l.name}`,type:"success",duration:3e3})}else d.show({message:u.message||"Failed to get token",type:"error",duration:4e3})}catch(u){d.show({message:`Failed: ${u.message}`,type:"error",duration:4e3})}}},{name:"Delete",iconName:"lucide:trash2",type:["inRow","contextmenu"],actionFunc:async o=>{let l=o.item;await L1.dispatchAction(Cwt,l.id)}}]}
|
|
30614
30614
|
></dees-table>
|
|
30615
30615
|
</div>
|
|
30616
|
-
`}getEdgeStatus(a){return this.riState.statuses.find(i=>i.edgeId===a)}getEdgeStatusHtml(a){return a.enabled?this.getEdgeStatus(a.id)?.connected?w`<span class="statusBadge connected">Connected</span>`:w`<span class="statusBadge disconnected">Disconnected</span>`:w`<span class="statusBadge disabled">Disabled</span>`}getEdgePublicIp(a){return this.getEdgeStatus(a)?.publicIp||"-"}getPortsHtml(a){let i=a.manualPorts||[],r=a.derivedPorts||[];return i.length===0&&r.length===0?w`<span style="color: var(--text-muted, #6b7280); font-size: 12px;">none</span>`:w`<div class="portsDisplay">${i.map(s=>w`<span class="portBadge manual">${s}</span>`)}${r.map(s=>w`<span class="portBadge derived">${s}</span>`)}${r.length>0?w`<span style="font-size: 11px; color: var(--text-muted, #6b7280); align-self: center;">(auto)</span>`:""}</div>`}getEdgeTunnelCount(a){return this.getEdgeStatus(a)?.activeTunnels||0}getLastHeartbeat(a){let i=this.getEdgeStatus(a);if(!i?.lastHeartbeat)return"-";let r=Date.now()-i.lastHeartbeat;return r<6e4?`${Math.floor(r/1e3)}s ago`:r<36e5?`${Math.floor(r/6e4)}m ago`:`${Math.floor(r/36e5)}h ago`}};sc=Y1(vMt),AU=new WeakMap,dt(sc,4,"riState",bMt,ln,AU),ln=dt(sc,0,"OpsViewRemoteIngress",yMt,ln),
|
|
30616
|
+
`}getEdgeStatus(a){return this.riState.statuses.find(i=>i.edgeId===a)}getEdgeStatusHtml(a){return a.enabled?this.getEdgeStatus(a.id)?.connected?w`<span class="statusBadge connected">Connected</span>`:w`<span class="statusBadge disconnected">Disconnected</span>`:w`<span class="statusBadge disabled">Disabled</span>`}getEdgePublicIp(a){return this.getEdgeStatus(a)?.publicIp||"-"}getPortsHtml(a){let i=a.manualPorts||[],r=a.derivedPorts||[];return i.length===0&&r.length===0?w`<span style="color: var(--text-muted, #6b7280); font-size: 12px;">none</span>`:w`<div class="portsDisplay">${i.map(s=>w`<span class="portBadge manual">${s}</span>`)}${r.map(s=>w`<span class="portBadge derived">${s}</span>`)}${r.length>0?w`<span style="font-size: 11px; color: var(--text-muted, #6b7280); align-self: center;">(auto)</span>`:""}</div>`}getEdgeTunnelCount(a){return this.getEdgeStatus(a)?.activeTunnels||0}getLastHeartbeat(a){let i=this.getEdgeStatus(a);if(!i?.lastHeartbeat)return"-";let r=Date.now()-i.lastHeartbeat;return r<6e4?`${Math.floor(r/1e3)}s ago`:r<36e5?`${Math.floor(r/6e4)}m ago`:`${Math.floor(r/36e5)}h ago`}};sc=Y1(vMt),AU=new WeakMap,dt(sc,4,"riState",bMt,ln,AU),ln=dt(sc,0,"OpsViewRemoteIngress",yMt,ln),h1(ln,"styles",[p.defaultStyles,na,X`
|
|
30617
30617
|
.remoteIngressContainer {
|
|
30618
30618
|
display: flex;
|
|
30619
30619
|
flex-direction: column;
|
|
@@ -30699,7 +30699,7 @@ ${JSON.stringify(a.details,null,2)}
|
|
|
30699
30699
|
color: ${p.bdTheme("#047857","#34d399")};
|
|
30700
30700
|
border: 1px dashed ${p.bdTheme("#6ee7b7","#065f46")};
|
|
30701
30701
|
}
|
|
30702
|
-
`]),Re(sc,1,ln);pe();var xMt,wMt,MMt,zMt,cn,DU,EU;zMt=[de("ops-dashboard")];var To=class extends(MMt=xe,wMt=[K()],xMt=[K()],MMt){constructor(){super();kt(this,DU,Re(cn,8,this,{identity:null,isLoggedIn:!1})),Re(cn,11,this);kt(this,EU,Re(cn,12,this,{activeView:"overview",sidebarCollapsed:!1,autoRefresh:!0,refreshInterval:1e3,theme:"light"})),Re(cn,15,this);
|
|
30702
|
+
`]),Re(sc,1,ln);pe();var xMt,wMt,MMt,zMt,cn,DU,EU;zMt=[de("ops-dashboard")];var To=class extends(MMt=xe,wMt=[K()],xMt=[K()],MMt){constructor(){super();kt(this,DU,Re(cn,8,this,{identity:null,isLoggedIn:!1})),Re(cn,11,this);kt(this,EU,Re(cn,12,this,{activeView:"overview",sidebarCollapsed:!1,autoRefresh:!0,refreshInterval:1e3,theme:"light"})),Re(cn,15,this);h1(this,"viewTabs",[{name:"Overview",element:Jr},{name:"Network",element:oi},{name:"Emails",element:m2},{name:"Logs",element:Di},{name:"Configuration",element:sn},{name:"Security",element:es},{name:"Certificates",element:on},{name:"RemoteIngress",element:ln}]);document.title="DCRouter OpsServer";let a=ni.select(r=>r).subscribe(r=>{this.loginState=r,r.isLoggedIn&&(f2.dispatchAction(ec,null),Qr.dispatchAction(tc,null))});this.rxSubscriptions.push(a);let i=Oa.select(r=>r).subscribe(r=>{this.uiState=r,this.syncAppdashView(r.activeView)});this.rxSubscriptions.push(i)}get currentViewTab(){return this.viewTabs.find(a=>a.name.toLowerCase()===this.uiState.activeView)||this.viewTabs[0]}syncAppdashView(a){let i=this.shadowRoot?.querySelector("dees-simple-appdash");if(!i)return;let r=this.viewTabs.find(n=>n.name.toLowerCase()===a);if(!r||i.selectedView===r)return;i.selectedView=r;let s=i.shadowRoot?.querySelector(".appcontent");if(s){i.currentView&&i.currentView.remove();let n=new r.element;s.appendChild(n),i.currentView=n}}render(){return w`
|
|
30703
30703
|
<div class="maincontainer">
|
|
30704
30704
|
<dees-simple-login
|
|
30705
30705
|
name="DCRouter OpsServer"
|
|
@@ -30712,7 +30712,7 @@ ${JSON.stringify(a.details,null,2)}
|
|
|
30712
30712
|
</dees-simple-appdash>
|
|
30713
30713
|
</dees-simple-login>
|
|
30714
30714
|
</div>
|
|
30715
|
-
`}async firstUpdated(){let a=this.shadowRoot.querySelector("dees-simple-login");a.addEventListener("login",s=>{this.login(s.detail.data.username,s.detail.data.password)});let i=this.shadowRoot.querySelector("dees-simple-appdash");i&&(i.addEventListener("view-select",s=>{let n=s.detail.view.name.toLowerCase();ac.navigateToView(n)}),i.addEventListener("logout",async()=>{await ni.dispatchAction(Zj,null)}));let r=ni.getState();r.identity?.jwt&&(r.identity.expiresAt>Date.now()?(this.loginState=r,await a.switchToSlottedContent(),await f2.dispatchAction(ec,null),await Qr.dispatchAction(tc,null)):await ni.dispatchAction(Zj,null))}async login(a,i){let r=await this.domtoolsPromise;console.log("Attempting to login...");let s=this.shadowRoot.querySelector("dees-simple-login"),n=s.shadowRoot.querySelector("dees-form");n.setStatus("pending","Logging in...");let o=await ni.dispatchAction(bwt,{username:a,password:i});o.identity?(console.log("Login successful"),this.loginState=o,n.setStatus("success","Logged in!"),await s.switchToSlottedContent(),await f2.dispatchAction(ec,null),await Qr.dispatchAction(tc,null)):(n.setStatus("error","Login failed!"),await r.convenience.smartdelay.delayFor(2e3),n.reset())}};cn=Y1(MMt),DU=new WeakMap,EU=new WeakMap,dt(cn,4,"loginState",wMt,To,DU),dt(cn,4,"uiState",xMt,To,EU),To=dt(cn,0,"OpsDashboard",zMt,To),
|
|
30715
|
+
`}async firstUpdated(){let a=this.shadowRoot.querySelector("dees-simple-login");a.addEventListener("login",s=>{this.login(s.detail.data.username,s.detail.data.password)});let i=this.shadowRoot.querySelector("dees-simple-appdash");i&&(i.addEventListener("view-select",s=>{let n=s.detail.view.name.toLowerCase();ac.navigateToView(n)}),i.addEventListener("logout",async()=>{await ni.dispatchAction(Zj,null)}));let r=ni.getState();r.identity?.jwt&&(r.identity.expiresAt>Date.now()?(this.loginState=r,await a.switchToSlottedContent(),await f2.dispatchAction(ec,null),await Qr.dispatchAction(tc,null)):await ni.dispatchAction(Zj,null))}async login(a,i){let r=await this.domtoolsPromise;console.log("Attempting to login...");let s=this.shadowRoot.querySelector("dees-simple-login"),n=s.shadowRoot.querySelector("dees-form");n.setStatus("pending","Logging in...");let o=await ni.dispatchAction(bwt,{username:a,password:i});o.identity?(console.log("Login successful"),this.loginState=o,n.setStatus("success","Logged in!"),await s.switchToSlottedContent(),await f2.dispatchAction(ec,null),await Qr.dispatchAction(tc,null)):(n.setStatus("error","Login failed!"),await r.convenience.smartdelay.delayFor(2e3),n.reset())}};cn=Y1(MMt),DU=new WeakMap,EU=new WeakMap,dt(cn,4,"loginState",wMt,To,DU),dt(cn,4,"uiState",xMt,To,EU),To=dt(cn,0,"OpsDashboard",zMt,To),h1(To,"styles",[p.defaultStyles,X`
|
|
30716
30716
|
:host {
|
|
30717
30717
|
display: block;
|
|
30718
30718
|
width: 100%;
|
|
@@ -30841,4 +30841,4 @@ ibantools/jsnext/ibantools.js:
|
|
|
30841
30841
|
* @preferred
|
|
30842
30842
|
*)
|
|
30843
30843
|
*/
|
|
30844
|
-
//# sourceMappingURL=bundle-
|
|
30844
|
+
//# sourceMappingURL=bundle-1771700222950.js.map
|