@design.estate/dees-domtools 5.1.0 → 5.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist_bundle/bundle.js +6 -6
- package/dist_bundle/bundle.js.map +1 -1
- package/dist_ts/00_commitinfo_data.js +1 -1
- package/dist_ts/domtools.classes.thememanager.d.ts +16 -0
- package/dist_ts/domtools.classes.thememanager.js +29 -9
- package/dist_ts/index.d.ts +1 -1
- package/dist_ts/index.js +1 -1
- package/package.json +1 -1
- package/readme.md +11 -2
- package/ts/00_commitinfo_data.ts +1 -1
- package/ts/domtools.classes.thememanager.ts +38 -7
- package/ts/index.ts +1 -1
package/dist_bundle/bundle.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
var VO=Object.create;var Bc=Object.defineProperty;var KO=Object.getOwnPropertyDescriptor;var GO=Object.getOwnPropertyNames;var QO=Object.getPrototypeOf,JO=Object.prototype.hasOwnProperty;var o=(t,e)=>Bc(t,"name",{value:e,configurable:!0});var Cr=(t,e)=>()=>{try{return e||t((e={exports:{}}).exports,e),e.exports}catch(r){throw e=0,r}},se=(t,e)=>{for(var r in e)Bc(t,r,{get:e[r],enumerable:!0})},XO=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of GO(e))!JO.call(t,i)&&i!==r&&Bc(t,i,{get:()=>e[i],enumerable:!(n=KO(e,i))||n.enumerable});return t};var qn=(t,e,r)=>(r=t!=null?VO(QO(t)):{},XO(e||!t||!t.__esModule?Bc(r,"default",{value:t,enumerable:!0}):r,t));var Uv=Cr((xd,bd)=>{(function(t,e){typeof xd=="object"&&typeof bd<"u"?bd.exports=e():typeof define=="function"&&define.amd?define(e):(t=typeof globalThis<"u"?globalThis:t||self).dayjs=e()})(xd,(function(){"use strict";var t=1e3,e=6e4,r=36e5,n="millisecond",i="second",s="minute",a="hour",l="day",c="week",u="month",f="quarter",p="year",h="date",m="Invalid Date",d=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,g=/\[([^\]]+)]|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,y={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:o(function(j){var N=["th","st","nd","rd"],R=j%100;return"["+j+(N[(R-20)%10]||N[R]||N[0])+"]"},"ordinal")},x=o(function(j,N,R){var U=String(j);return!U||U.length>=N?j:""+Array(N+1-U.length).join(R)+j},"m"),T={s:x,z:o(function(j){var N=-j.utcOffset(),R=Math.abs(N),U=Math.floor(R/60),W=R%60;return(N<=0?"+":"-")+x(U,2,"0")+":"+x(W,2,"0")},"z"),m:o(function j(N,R){if(N.date()<R.date())return-j(R,N);var U=12*(R.year()-N.year())+(R.month()-N.month()),W=N.clone().add(U,u),K=R-W<0,Z=N.clone().add(U+(K?-1:1),u);return+(-(U+(R-W)/(K?W-Z:Z-W))||0)},"t"),a:o(function(j){return j<0?Math.ceil(j)||0:Math.floor(j)},"a"),p:o(function(j){return{M:u,y:p,w:c,d:l,D:h,h:a,m:s,s:i,ms:n,Q:f}[j]||String(j||"").toLowerCase().replace(/s$/,"")},"p"),u:o(function(j){return j===void 0},"u")},E="en",L={};L[E]=y;var P="$isDayjsObject",D=o(function(j){return j instanceof C||!(!j||!j[P])},"S"),A=o(function j(N,R,U){var W;if(!N)return E;if(typeof N=="string"){var K=N.toLowerCase();L[K]&&(W=K),R&&(L[K]=R,W=K);var Z=N.split("-");if(!W&&Z.length>1)return j(Z[0])}else{var ue=N.name;L[ue]=N,W=ue}return!U&&W&&(E=W),W||!U&&E},"t"),F=o(function(j,N){if(D(j))return j.clone();var R=typeof N=="object"?N:{};return R.date=j,R.args=arguments,new C(R)},"O"),z=T;z.l=A,z.i=D,z.w=function(j,N){return F(j,{locale:N.$L,utc:N.$u,x:N.$x,$offset:N.$offset})};var C=(function(){function j(R){this.$L=A(R.locale,null,!0),this.parse(R),this.$x=this.$x||R.x||{},this[P]=!0}o(j,"M");var N=j.prototype;return N.parse=function(R){this.$d=(function(U){var W=U.date,K=U.utc;if(W===null)return new Date(NaN);if(z.u(W))return new Date;if(W instanceof Date)return new Date(W);if(typeof W=="string"&&!/Z$/i.test(W)){var Z=W.match(d);if(Z){var ue=Z[2]-1||0,w=(Z[7]||"0").substring(0,3);return K?new Date(Date.UTC(Z[1],ue,Z[3]||1,Z[4]||0,Z[5]||0,Z[6]||0,w)):new Date(Z[1],ue,Z[3]||1,Z[4]||0,Z[5]||0,Z[6]||0,w)}}return new Date(W)})(R),this.init()},N.init=function(){var R=this.$d;this.$y=R.getFullYear(),this.$M=R.getMonth(),this.$D=R.getDate(),this.$W=R.getDay(),this.$H=R.getHours(),this.$m=R.getMinutes(),this.$s=R.getSeconds(),this.$ms=R.getMilliseconds()},N.$utils=function(){return z},N.isValid=function(){return this.$d.toString()!==m},N.isSame=function(R,U){var W=F(R);return this.startOf(U)<=W&&W<=this.endOf(U)},N.isAfter=function(R,U){return F(R)<this.startOf(U)},N.isBefore=function(R,U){return this.endOf(U)<F(R)},N.$g=function(R,U,W){return z.u(R)?this[U]:this.set(W,R)},N.unix=function(){return Math.floor(this.valueOf()/1e3)},N.valueOf=function(){return this.$d.getTime()},N.startOf=function(R,U){var W=this,K=!!z.u(U)||U,Z=z.p(R),ue=o(function(O,v){var I=z.w(W.$u?Date.UTC(W.$y,v,O):new Date(W.$y,v,O),W);return K?I:I.endOf(l)},"l"),w=o(function(O,v){return z.w(W.toDate()[O].apply(W.toDate("s"),(K?[0,0,0,0]:[23,59,59,999]).slice(v)),W)},"$"),xe=this.$W,ke=this.$M,k=this.$D,Re="set"+(this.$u?"UTC":"");switch(Z){case p:return K?ue(1,0):ue(31,11);case u:return K?ue(1,ke):ue(0,ke+1);case c:var Ye=this.$locale().weekStart||0,Kt=(xe<Ye?xe+7:xe)-Ye;return ue(K?k-Kt:k+(6-Kt),ke);case l:case h:return w(Re+"Hours",0);case a:return w(Re+"Minutes",1);case s:return w(Re+"Seconds",2);case i:return w(Re+"Milliseconds",3);default:return this.clone()}},N.endOf=function(R){return this.startOf(R,!1)},N.$set=function(R,U){var W,K=z.p(R),Z="set"+(this.$u?"UTC":""),ue=(W={},W[l]=Z+"Date",W[h]=Z+"Date",W[u]=Z+"Month",W[p]=Z+"FullYear",W[a]=Z+"Hours",W[s]=Z+"Minutes",W[i]=Z+"Seconds",W[n]=Z+"Milliseconds",W)[K],w=K===l?this.$D+(U-this.$W):U;if(K===u||K===p){var xe=this.clone().set(h,1);xe.$d[ue](w),xe.init(),this.$d=xe.set(h,Math.min(this.$D,xe.daysInMonth())).$d}else ue&&this.$d[ue](w);return this.init(),this},N.set=function(R,U){return this.clone().$set(R,U)},N.get=function(R){return this[z.p(R)]()},N.add=function(R,U){var W,K=this;R=Number(R);var Z=z.p(U),ue=o(function(ke){var k=F(K);return z.w(k.date(k.date()+Math.round(ke*R)),K)},"y");if(Z===u)return this.set(u,this.$M+R);if(Z===p)return this.set(p,this.$y+R);if(Z===l)return ue(1);if(Z===c)return ue(7);var w=(W={},W[s]=e,W[a]=r,W[i]=t,W)[Z]||1,xe=this.$d.getTime()+R*w;return z.w(xe,this)},N.subtract=function(R,U){return this.add(-1*R,U)},N.format=function(R){var U=this,W=this.$locale();if(!this.isValid())return W.invalidDate||m;var K=R||"YYYY-MM-DDTHH:mm:ssZ",Z=z.z(this),ue=this.$H,w=this.$m,xe=this.$M,ke=W.weekdays,k=W.months,Re=W.meridiem,Ye=o(function(v,I,M,B){return v&&(v[I]||v(U,K))||M[I].slice(0,B)},"h"),Kt=o(function(v){return z.s(ue%12||12,v,"0")},"d"),O=Re||function(v,I,M){var B=v<12?"AM":"PM";return M?B.toLowerCase():B};return K.replace(g,(function(v,I){return I||(function(M){switch(M){case"YY":return String(U.$y).slice(-2);case"YYYY":return z.s(U.$y,4,"0");case"M":return xe+1;case"MM":return z.s(xe+1,2,"0");case"MMM":return Ye(W.monthsShort,xe,k,3);case"MMMM":return Ye(k,xe);case"D":return U.$D;case"DD":return z.s(U.$D,2,"0");case"d":return String(U.$W);case"dd":return Ye(W.weekdaysMin,U.$W,ke,2);case"ddd":return Ye(W.weekdaysShort,U.$W,ke,3);case"dddd":return ke[U.$W];case"H":return String(ue);case"HH":return z.s(ue,2,"0");case"h":return Kt(1);case"hh":return Kt(2);case"a":return O(ue,w,!0);case"A":return O(ue,w,!1);case"m":return String(w);case"mm":return z.s(w,2,"0");case"s":return String(U.$s);case"ss":return z.s(U.$s,2,"0");case"SSS":return z.s(U.$ms,3,"0");case"Z":return Z}return null})(v)||Z.replace(":","")}))},N.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},N.diff=function(R,U,W){var K,Z=this,ue=z.p(U),w=F(R),xe=(w.utcOffset()-this.utcOffset())*e,ke=this-w,k=o(function(){return z.m(Z,w)},"D");switch(ue){case p:K=k()/12;break;case u:K=k();break;case f:K=k()/3;break;case c:K=(ke-xe)/6048e5;break;case l:K=(ke-xe)/864e5;break;case a:K=ke/r;break;case s:K=ke/e;break;case i:K=ke/t;break;default:K=ke}return W?K:z.a(K)},N.daysInMonth=function(){return this.endOf(u).$D},N.$locale=function(){return L[this.$L]},N.locale=function(R,U){if(!R)return this.$L;var W=this.clone(),K=A(R,U,!0);return K&&(W.$L=K),W},N.clone=function(){return z.w(this.$d,this)},N.toDate=function(){return new Date(this.valueOf())},N.toJSON=function(){return this.isValid()?this.toISOString():null},N.toISOString=function(){return this.$d.toISOString()},N.toString=function(){return this.$d.toUTCString()},j})(),le=C.prototype;return F.prototype=le,[["$ms",n],["$s",i],["$m",s],["$H",a],["$W",l],["$M",u],["$y",p],["$D",h]].forEach((function(j){le[j[1]]=function(N){return this.$g(N,j[0],j[1])}})),F.extend=function(j,N){return j.$i||(j(N,C,F),j.$i=!0),F},F.locale=A,F.isDayjs=D,F.unix=function(j){return F(1e3*j)},F.en=L[E],F.Ls=L,F.p={},F}))});var zv=Cr((wd,Sd)=>{(function(t,e){typeof wd=="object"&&typeof Sd<"u"?Sd.exports=e():typeof define=="function"&&define.amd?define(e):(t=typeof globalThis<"u"?globalThis:t||self).dayjs_plugin_isToday=e()})(wd,(function(){"use strict";return function(t,e,r){e.prototype.isToday=function(){var n="YYYY-MM-DD",i=r();return this.format(n)===i.format(n)}}}))});var Yv=Cr((sDe,qv)=>{"use strict";qv.exports=class{static{o(this,"SymbolTreeNode")}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,r){this.cachedIndexVersion=e.childrenVersion,this.cachedIndex=r}}});var Kv=Cr((lDe,Vv)=>{"use strict";Vv.exports=Object.freeze({DISCONNECTED:1,PRECEDING:2,FOLLOWING:4,CONTAINS:8,CONTAINED_BY:16})});var Zv=Cr((cDe,Xv)=>{"use strict";var Gv=Symbol(),Qv=Symbol(),ai=Symbol(),Jv=Symbol(),Ir=class{static{o(this,"TreeIterator")}constructor(e,r,n,i){this[Gv]=e,this[Qv]=r,this[ai]=n,this[Jv]=i}next(){let e=this[Gv],r=this[Jv],n=this[Qv];if(!this[ai])return{done:!0,value:n};let i=this[ai];return r===1?this[ai]=e._node(i).previousSibling:r===2?this[ai]=e._node(i).nextSibling:r===3?this[ai]=e._node(i).parent:r===4?this[ai]=e.preceding(i,{root:n}):this[ai]=e.following(i,{root:n}),{done:!1,value:i}}};Object.defineProperty(Ir.prototype,Symbol.iterator,{value:o(function(){return this},"value"),writable:!1}),Ir.PREV=1,Ir.NEXT=2,Ir.PARENT=3,Ir.PRECEDING=4,Ir.FOLLOWING=5,Object.freeze(Ir),Object.freeze(Ir.prototype),Xv.exports=Ir});var tk=Cr((fDe,ek)=>{"use strict";var EL=Yv(),li=Kv(),pr=Zv();function Id(){return!0}o(Id,"returnTrue");function Os(t,e){return t[t.length-1-e]}o(Os,"reverseArrayIndex");var np=class{static{o(this,"SymbolTree")}constructor(e){this.symbol=Symbol(e||"SymbolTree data")}initialize(e){return this._node(e),e}_node(e){if(!e)return null;let r=e[this.symbol];return r||(e[this.symbol]=new EL)}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 r,n=e;for(;r=this._node(n).lastChild;)n=r;return n}preceding(e,r){let n=r&&r.root;if(e===n)return null;let i=this._node(e).previousSibling;return i?this.lastInclusiveDescendant(i):this._node(e).parent}following(e,r){let n=r&&r.root,s=!(r&&r.skipChildren)&&this._node(e).firstChild;if(s)return s;let a=e;do{if(a===n)return null;let l=this._node(a).nextSibling;if(l)return l;a=this._node(a).parent}while(a);return null}childrenToArray(e,r){let n=r&&r.array||[],i=r&&r.filter||Id,s=r&&r.thisArg||void 0,a=this._node(e),l=a.firstChild,c=0;for(;l;){let u=this._node(l);u.setCachedIndex(a,c),i.call(s,l)&&n.push(l),l=u.nextSibling,++c}return n}ancestorsToArray(e,r){let n=r&&r.array||[],i=r&&r.filter||Id,s=r&&r.thisArg||void 0,a=e;for(;a;)i.call(s,a)&&n.push(a),a=this._node(a).parent;return n}treeToArray(e,r){let n=r&&r.array||[],i=r&&r.filter||Id,s=r&&r.thisArg||void 0,a=e;for(;a;)i.call(s,a)&&n.push(a),a=this.following(a,{root:e});return n}childrenIterator(e,r){let n=r&&r.reverse,i=this._node(e);return new pr(this,e,n?i.lastChild:i.firstChild,n?pr.PREV:pr.NEXT)}previousSiblingsIterator(e){return new pr(this,e,this._node(e).previousSibling,pr.PREV)}nextSiblingsIterator(e){return new pr(this,e,this._node(e).nextSibling,pr.NEXT)}ancestorsIterator(e){return new pr(this,e,e,pr.PARENT)}treeIterator(e,r){let n=r&&r.reverse;return new pr(this,e,n?this.lastInclusiveDescendant(e):e,n?pr.PRECEDING:pr.FOLLOWING)}index(e){let r=this._node(e),n=this._node(r.parent);if(!n)return-1;let i=r.getCachedIndex(n);if(i>=0)return i;i=0;let s=n.firstChild;if(n.childIndexCachedUpTo){let a=this._node(n.childIndexCachedUpTo);s=a.nextSibling,i=a.getCachedIndex(n)+1}for(;s;){let a=this._node(s);if(a.setCachedIndex(n,i),s===e)break;++i,s=a.nextSibling}return n.childIndexCachedUpTo=e,i}childrenCount(e){let r=this._node(e);return r.lastChild?this.index(r.lastChild)+1:0}compareTreePosition(e,r){if(e===r)return 0;let n=[];{let f=e;for(;f;){if(f===r)return li.CONTAINS|li.PRECEDING;n.push(f),f=this.parent(f)}}let i=[];{let f=r;for(;f;){if(f===e)return li.CONTAINED_BY|li.FOLLOWING;i.push(f),f=this.parent(f)}}let s=Os(n,0);if(!s||s!==Os(i,0))return li.DISCONNECTED;let a=0,l=Math.min(n.length,i.length);for(let f=0;f<l;++f){let p=Os(n,f),h=Os(i,f);if(p!==h)break;a=f}let c=this.index(Os(n,a+1));return this.index(Os(i,a+1))<c?li.PRECEDING:li.FOLLOWING}remove(e){let r=this._node(e),n=this._node(r.parent),i=this._node(r.previousSibling),s=this._node(r.nextSibling);return n&&(n.firstChild===e&&(n.firstChild=r.nextSibling),n.lastChild===e&&(n.lastChild=r.previousSibling)),i&&(i.nextSibling=r.nextSibling),s&&(s.previousSibling=r.previousSibling),r.parent=null,r.previousSibling=null,r.nextSibling=null,r.cachedIndex=-1,r.cachedIndexVersion=NaN,n&&n.childrenChanged(),e}insertBefore(e,r){let n=this._node(e),i=this._node(n.previousSibling),s=this._node(r),a=this._node(n.parent);if(s.isAttached)throw Error("Given object is already present in this SymbolTree, remove it first");return s.parent=n.parent,s.previousSibling=n.previousSibling,s.nextSibling=e,n.previousSibling=r,i&&(i.nextSibling=r),a&&a.firstChild===e&&(a.firstChild=r),a&&a.childrenChanged(),r}insertAfter(e,r){let n=this._node(e),i=this._node(n.nextSibling),s=this._node(r),a=this._node(n.parent);if(s.isAttached)throw Error("Given object is already present in this SymbolTree, remove it first");return s.parent=n.parent,s.previousSibling=e,s.nextSibling=n.nextSibling,n.nextSibling=r,i&&(i.previousSibling=r),a&&a.lastChild===e&&(a.lastChild=r),a&&a.childrenChanged(),r}prependChild(e,r){let n=this._node(e),i=this._node(r);if(i.isAttached)throw Error("Given object is already present in this SymbolTree, remove it first");return n.hasChildren?this.insertBefore(n.firstChild,r):(i.parent=e,n.firstChild=r,n.lastChild=r,n.childrenChanged()),r}appendChild(e,r){let n=this._node(e),i=this._node(r);if(i.isAttached)throw Error("Given object is already present in this SymbolTree, remove it first");return n.hasChildren?this.insertAfter(n.lastChild,r):(i.parent=e,n.firstChild=r,n.lastChild=r,n.childrenChanged()),r}};ek.exports=np,np.TreePosition=li});var $k=Cr((SIe,Ak)=>{"use strict";Ak.exports=function(t,e){e||(e={}),typeof e=="function"&&(e={cmp:e});var r=typeof e.cycles=="boolean"?e.cycles:!1,n=e.cmp&&(function(s){return function(a){return function(l,c){var u={key:l,value:a[l]},f={key:c,value:a[c]};return s(u,f)}}})(e.cmp),i=[];return o((function s(a){if(a&&a.toJSON&&typeof a.toJSON=="function"&&(a=a.toJSON()),a!==void 0){if(typeof a=="number")return isFinite(a)?""+a:"null";if(typeof a!="object")return JSON.stringify(a);var l,c;if(Array.isArray(a)){for(c="[",l=0;l<a.length;l++)l&&(c+=","),c+=s(a[l])||"null";return c+"]"}if(a===null)return"null";if(i.indexOf(a)!==-1){if(r)return JSON.stringify("__cycle__");throw new TypeError("Converting circular structure to JSON")}var u=i.push(a)-1,f=Object.keys(a).sort(n&&n(a));for(c="",l=0;l<f.length;l++){var p=f[l],h=s(a[p]);h&&(c&&(c+=","),c+=JSON.stringify(p)+":"+h)}return i.splice(u,1),"{"+c+"}"}}),"stringify")(t)}});var HD=Cr((UWe,zD)=>{"use strict";var Zh=Object.prototype.hasOwnProperty,RD=Object.prototype.toString,FD=Object.defineProperty,AD=Object.getOwnPropertyDescriptor,$D=o(function(e){return typeof Array.isArray=="function"?Array.isArray(e):RD.call(e)==="[object Array]"},"isArray"),BD=o(function(e){if(!e||RD.call(e)!=="[object Object]")return!1;var r=Zh.call(e,"constructor"),n=e.constructor&&e.constructor.prototype&&Zh.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!r&&!n)return!1;var i;for(i in e);return typeof i>"u"||Zh.call(e,i)},"isPlainObject"),jD=o(function(e,r){FD&&r.name==="__proto__"?FD(e,r.name,{enumerable:!0,configurable:!0,value:r.newValue,writable:!0}):e[r.name]=r.newValue},"setProperty"),UD=o(function(e,r){if(r==="__proto__")if(Zh.call(e,r)){if(AD)return AD(e,r).value}else return;return e[r]},"getProperty");zD.exports=o(function t(){var e,r,n,i,s,a,l=arguments[0],c=1,u=arguments.length,f=!1;for(typeof l=="boolean"&&(f=l,l=arguments[1]||{},c=2),(l==null||typeof l!="object"&&typeof l!="function")&&(l={});c<u;++c)if(e=arguments[c],e!=null)for(r in e)n=UD(l,r),i=UD(e,r),l!==i&&(f&&i&&(BD(i)||(s=$D(i)))?(s?(s=!1,a=n&&$D(n)?n:[]):a=n&&BD(n)?n:{},jD(l,{name:r,newValue:t(f,a,i)})):typeof i<"u"&&jD(l,{name:r,newValue:i}));return l},"extend")});var jC=Cr((oKe,Xx)=>{(function(){var t;typeof Xx<"u"?t=Xx.exports=n:t=(function(){return this||(0,eval)("this")})(),t.format=n,t.vsprintf=r,typeof console<"u"&&typeof console.log=="function"&&(t.printf=e);function e(){console.log(n.apply(null,arguments))}o(e,"printf");function r(i,s){return n.apply(null,[i].concat(s))}o(r,"vsprintf");function n(i){for(var s=1,a=[].slice.call(arguments),l=0,c=i.length,u="",f,p=!1,h,m,d=!1,g,y=o(function(){return a[s++]},"nextArg"),x=o(function(){for(var T="";/\d/.test(i[l]);)T+=i[l++],f=i[l];return T.length>0?parseInt(T):null},"slurpNumber");l<c;++l)if(f=i[l],p)switch(p=!1,f=="."?(d=!1,f=i[++l]):f=="0"&&i[l+1]=="."?(d=!0,l+=2,f=i[l]):d=!0,g=x(),f){case"b":u+=parseInt(y(),10).toString(2);break;case"c":h=y(),typeof h=="string"||h instanceof String?u+=h:u+=String.fromCharCode(parseInt(h,10));break;case"d":u+=parseInt(y(),10);break;case"f":m=String(parseFloat(y()).toFixed(g||6)),u+=d?m:m.replace(/^0/,"");break;case"j":u+=JSON.stringify(y());break;case"o":u+="0"+parseInt(y(),10).toString(8);break;case"s":u+=y();break;case"x":u+="0x"+parseInt(y(),10).toString(16);break;case"X":u+="0x"+parseInt(y(),10).toString(16).toUpperCase();break;default:u+=f;break}else f==="%"?p=!0:u+=f;return u}o(n,"format")})()});var aO=Cr(jr=>{"use strict";Object.defineProperty(jr,"__esModule",{value:!0}),jr.PathError=jr.TokenData=void 0,jr.parse=ub,jr.compile=t4,jr.match=n4,jr.pathToRegexp=nO,jr.stringify=o4;var lb="/",cb=o(t=>t,"NOOP_VALUE"),JU=/^[$_\p{ID_Start}]$/u,tO=/^[$\u200c\u200d\p{ID_Continue}]$/u,XU=/^[$_\p{ID_Start}][$\u200c\u200d\p{ID_Continue}]*$/u,ZU="{}()[]+?!";function e4(t){return t.replace(/[{}()\[\]+?!:*\\]/g,"\\$&")}o(e4,"escapeText");function Ni(t){return t.replace(/[.+*?^${}()[\]|/\\]/g,"\\$&")}o(Ni,"escape");var xm=class{static{o(this,"TokenData")}constructor(e,r){this.tokens=e,this.originalPath=r}};jr.TokenData=xm;var Pi=class extends TypeError{static{o(this,"PathError")}constructor(e,r){let n=e;r&&(n+=`: ${r}`),n+="; visit https://git.new/pathToRegexpError for info",super(n),this.originalPath=r}};jr.PathError=Pi;function ub(t,e={}){let{encodePath:r=cb}=e,n=[...t],i=[],s=0,a=0;function l(){let u="";if(JU.test(n[s]))do u+=n[s++];while(tO.test(n[s]));else if(n[s]==='"'){let f=s;for(;s<n.length;){if(n[++s]==='"'){s++,f=0;break}n[s]==="\\"&&s++,u+=n[s]}if(f)throw new Pi(`Unterminated quote at index ${f}`,t)}if(!u)throw new Pi(`Missing parameter name at index ${s}`,t);return u}for(o(l,"name");s<n.length;){let u=n[s++];ZU.includes(u)?i.push({type:u,index:s,value:u}):u==="\\"?i.push({type:"escape",index:s,value:n[s++]}):u===":"?i.push({type:"param",index:s,value:l()}):u==="*"?i.push({type:"wildcard",index:s,value:l()}):i.push({type:"char",index:s,value:u})}i.push({type:"end",index:s,value:""});function c(u){let f=[];for(;;){let p=i[a++];if(p.type===u)break;if(p.type==="char"||p.type==="escape"){let h=p.value,m=i[a];for(;m.type==="char"||m.type==="escape";)h+=m.value,m=i[++a];f.push({type:"text",value:r(h)});continue}if(p.type==="param"||p.type==="wildcard"){f.push({type:p.type,name:p.value});continue}if(p.type==="{"){f.push({type:"group",tokens:c("}")});continue}throw new Pi(`Unexpected ${p.type} at index ${p.index}, expected ${u}`,t)}return f}return o(c,"consumeUntil"),new xm(c("end"),t)}o(ub,"parse");function t4(t,e={}){let{encode:r=encodeURIComponent,delimiter:n=lb}=e,i=typeof t=="object"?t:ub(t,e),s=rO(i.tokens,n,r);return o(function(l={}){let[c,...u]=s(l);if(u.length)throw new TypeError(`Missing parameters: ${u.join(", ")}`);return c},"path")}o(t4,"compile");function rO(t,e,r){let n=t.map(i=>r4(i,e,r));return i=>{let s=[""];for(let a of n){let[l,...c]=a(i);s[0]+=l,s.push(...c)}return s}}o(rO,"tokensToFunction");function r4(t,e,r){if(t.type==="text")return()=>[t.value];if(t.type==="group"){let i=rO(t.tokens,e,r);return s=>{let[a,...l]=i(s);return l.length?[""]:[a]}}let n=r||cb;return t.type==="wildcard"&&r!==!1?i=>{let s=i[t.name];if(s==null)return["",t.name];if(!Array.isArray(s)||s.length===0)throw new TypeError(`Expected "${t.name}" to be a non-empty array`);return[s.map((a,l)=>{if(typeof a!="string")throw new TypeError(`Expected "${t.name}/${l}" to be a string`);return n(a)}).join(e)]}:i=>{let s=i[t.name];if(s==null)return["",t.name];if(typeof s!="string")throw new TypeError(`Expected "${t.name}" to be a string`);return[n(s)]}}o(r4,"tokenToFunction");function n4(t,e={}){let{decode:r=decodeURIComponent,delimiter:n=lb}=e,{regexp:i,keys:s}=nO(t,e),a=s.map(l=>r===!1?cb:l.type==="param"?r:c=>c.split(n).map(r));return o(function(c){let u=i.exec(c);if(!u)return!1;let f=u[0],p=Object.create(null);for(let h=1;h<u.length;h++){if(u[h]===void 0)continue;let m=s[h-1],d=a[h-1];p[m.name]=d(u[h])}return{path:f,params:p}},"match")}o(n4,"match");function nO(t,e={}){let{delimiter:r=lb,end:n=!0,sensitive:i=!1,trailing:s=!0}=e,a=new fb("^"),l=[t],c=0;for(;l.length;){let p=l.shift();if(Array.isArray(p)){l.push(...p);continue}let h=typeof p=="object"?p:ub(p,e);pb(h.tokens,0,[],m=>{if(c++>=256)throw new Pi("Too many path combinations",h.originalPath);let d=a;for(let g of i4(m,r,h.originalPath))d=d.add(g.source,g.key);d.add("")})}let u=[],f=iO(a,u);return s&&(f+="(?:"+Ni(r)+"$)?"),f+=n?"$":"(?="+Ni(r)+"|$)",{regexp:new RegExp(f,i?"":"i"),keys:u}}o(nO,"pathToRegexp");function iO(t,e){t.key&&e.push(t.key);let r=Object.keys(t.children),n=r.map(i=>iO(t.children[i],e)).join("|");return t.source+(r.length<2?n:`(?:${n})`)}o(iO,"toRegExp");var fb=class t{static{o(this,"SourceNode")}constructor(e,r){this.source=e,this.key=r,this.children=Object.create(null)}add(e,r){var n;let i=e+":"+(r?r.name:"");return(n=this.children)[i]||(n[i]=new t(e,r))}};function pb(t,e,r,n){for(;e<t.length;){let i=t[e++];if(i.type==="group"){pb(i.tokens,0,r.slice(),s=>pb(t,e,s,n));continue}r.push(i)}n(r)}o(pb,"flatten");function i4(t,e,r){let n=[],i="",s="",a=0,l=0,c=0;function u(p,h){for(;p<t.length;){let m=t[p++];if(m.type===h)return!0;if(m.type==="text"&&m.value.includes(e))break}return!1}o(u,"hasInSegment");function f(p){let h="";for(;p<t.length;){let m=t[p++];if(m.type!=="text")break;h+=m.value}return h}for(o(f,"peekText");c<t.length;){let p=t[c++];if(p.type==="text"){n.push({source:Ni(p.value)}),i+=p.value,a===2&&(s+=p.value),p.value.includes(e)&&(l=0);continue}if(p.type==="param"||p.type==="wildcard"){if(a&&!i)throw new Pi(`Missing text before "${p.name}" ${p.type}`,r);p.type==="param"?(n.push({source:l?`(${Li(e,i)}+?)`:u(c,"wildcard")?`(${Li(e,f(c))}+?)`:`(${Li(e,"")}+?)`,key:p}),l|=a=1):(n.push({source:l&2?`(${Li(i,"")}+?)`:l&1?`(${Li(s,"")}+?)`:s?`(${Li(s,"")}+?|${Li(e,"")}+?)`:"([^]+?)",key:p}),s="",l|=a=2),i="";continue}throw new TypeError(`Unknown token type: ${p.type}`)}return n}o(i4,"toRegExpSource");function Li(t,e){return e.length>t.length?Li(e,t):(t===e&&(e=""),e.length>1?`(?:(?!${Ni(t)}|${Ni(e)})[^])`:t.length>1?`(?:(?!${Ni(t)})[^${Ni(e)}])`:`[^${Ni(t+e)}]`)}o(Li,"negate");function oO(t,e){let r="";for(;e<t.length;){let n=t[e++];if(n.type==="text"){r+=e4(n.value);continue}if(n.type==="group"){r+="{"+oO(n.tokens,0)+"}";continue}if(n.type==="param"){r+=":"+sO(n.name,t[e]);continue}if(n.type==="wildcard"){r+="*"+sO(n.name,t[e]);continue}throw new TypeError(`Unknown token type: ${n.type}`)}return r}o(oO,"stringifyTokens");function o4(t){return oO(t.tokens,0)}o(o4,"stringify");function sO(t,e){return!XU.test(t)||e?.type==="text"&&tO.test(e.value[0])?JSON.stringify(t):t}o(sO,"stringifyName")});var xO=Cr((Ab,$b)=>{(function(t,e){typeof Ab=="object"&&typeof $b<"u"?$b.exports=e():typeof define=="function"&&define.amd?define(e):(t=t||self,t.SweetScroll=e())})(Ab,function(){"use strict";var t=o(function(){return t=Object.assign||o(function(v){for(var I,M=1,B=arguments.length;M<B;M++){I=arguments[M];for(var re in I)Object.prototype.hasOwnProperty.call(I,re)&&(v[re]=I[re])}return v},"__assign"),t.apply(this,arguments)},"__assign"),e=!!(typeof window<"u"&&window.document&&window.document.createElement),r=e?window.history&&"pushState"in window.history&&window.location.protocol!=="file:":!1,n=(function(){var O=!1;if(!e)return O;try{var v=window,I=Object.defineProperty({},"passive",{get:o(function(){O=!0},"get")});v.addEventListener("test",null,I),v.removeEventListener("test",null,I)}catch{}return O})(),i=o(function(O){return typeof O=="string"},"isString"),s=o(function(O){return typeof O=="function"},"isFunction"),a=o(function(O){return Array.isArray(O)},"isArray"),l=o(function(O){return!a(O)&&O-parseFloat(O)+1>=0},"isNumeric"),c=o(function(O,v){return O&&O.hasOwnProperty(v)},"hasProp"),u=e?window.requestAnimationFrame.bind(window):null,f=e?window.cancelAnimationFrame.bind(window):null,p=Math.cos,h=Math.sin,m=Math.pow,d=Math.sqrt,g=Math.PI,y={linear:o(function(O){return O},"linear"),easeInQuad:o(function(O,v,I,M,B){return M*(v/=B)*v+I},"easeInQuad"),easeOutQuad:o(function(O,v,I,M,B){return-M*(v/=B)*(v-2)+I},"easeOutQuad"),easeInOutQuad:o(function(O,v,I,M,B){return(v/=B/2)<1?M/2*v*v+I:-M/2*(--v*(v-2)-1)+I},"easeInOutQuad"),easeInCubic:o(function(O,v,I,M,B){return M*(v/=B)*v*v+I},"easeInCubic"),easeOutCubic:o(function(O,v,I,M,B){return M*((v=v/B-1)*v*v+1)+I},"easeOutCubic"),easeInOutCubic:o(function(O,v,I,M,B){return(v/=B/2)<1?M/2*v*v*v+I:M/2*((v-=2)*v*v+2)+I},"easeInOutCubic"),easeInQuart:o(function(O,v,I,M,B){return M*(v/=B)*v*v*v+I},"easeInQuart"),easeOutQuart:o(function(O,v,I,M,B){return-M*((v=v/B-1)*v*v*v-1)+I},"easeOutQuart"),easeInOutQuart:o(function(O,v,I,M,B){return(v/=B/2)<1?M/2*v*v*v*v+I:-M/2*((v-=2)*v*v*v-2)+I},"easeInOutQuart"),easeInQuint:o(function(O,v,I,M,B){return M*(v/=B)*v*v*v*v+I},"easeInQuint"),easeOutQuint:o(function(O,v,I,M,B){return M*((v=v/B-1)*v*v*v*v+1)+I},"easeOutQuint"),easeInOutQuint:o(function(O,v,I,M,B){return(v/=B/2)<1?M/2*v*v*v*v*v+I:M/2*((v-=2)*v*v*v*v+2)+I},"easeInOutQuint"),easeInSine:o(function(O,v,I,M,B){return-M*p(v/B*(g/2))+M+I},"easeInSine"),easeOutSine:o(function(O,v,I,M,B){return M*h(v/B*(g/2))+I},"easeOutSine"),easeInOutSine:o(function(O,v,I,M,B){return-M/2*(p(g*v/B)-1)+I},"easeInOutSine"),easeInExpo:o(function(O,v,I,M,B){return v===0?I:M*m(2,10*(v/B-1))+I},"easeInExpo"),easeOutExpo:o(function(O,v,I,M,B){return v===B?I+M:M*(-m(2,-10*v/B)+1)+I},"easeOutExpo"),easeInOutExpo:o(function(O,v,I,M,B){return v===0?I:v===B?I+M:(v/=B/2)<1?M/2*m(2,10*(v-1))+I:M/2*(-m(2,-10*--v)+2)+I},"easeInOutExpo"),easeInCirc:o(function(O,v,I,M,B){return-M*(d(1-(v/=B)*v)-1)+I},"easeInCirc"),easeOutCirc:o(function(O,v,I,M,B){return M*d(1-(v=v/B-1)*v)+I},"easeOutCirc"),easeInOutCirc:o(function(O,v,I,M,B){return(v/=B/2)<1?-M/2*(d(1-v*v)-1)+I:M/2*(d(1-(v-=2)*v)+1)+I},"easeInOutCirc")},x=o(function(O){return Array.prototype.slice.call(O?document.querySelectorAll(O):[])},"$$"),T=o(function(O){return x(O).shift()||null},"$"),E=o(function(O){return O instanceof Element},"isElement"),L=o(function(O){return O===window},"isWindow"),P=o(function(O){return O===document.documentElement||O===document.body},"isRootContainer"),D=o(function(O,v){if(E(v))return O===v;for(var I=x(v),M=I.length;--M>=0&&I[M]!==O;);return M>-1},"matches"),A=o(function(O){return Math.max(O.scrollHeight,O.clientHeight,O.offsetHeight)},"getHeight"),F=o(function(O){return Math.max(O.scrollWidth,O.clientWidth,O.offsetWidth)},"getWidth"),z=o(function(O){return{width:F(O),height:A(O)}},"getSize"),C=o(function(O){var v=L(O)||P(O);return{viewport:{width:v?Math.min(window.innerWidth,document.documentElement.clientWidth):O.clientWidth,height:v?window.innerHeight:O.clientHeight},size:v?{width:Math.max(F(document.body),F(document.documentElement)),height:Math.max(A(document.body),A(document.documentElement))}:z(O)}},"getViewportAndElementSizes"),le={y:"scrollTop",x:"scrollLeft"},j={y:"pageYOffset",x:"pageXOffset"},N=o(function(O,v){return L(O)?O[j[v]]:O[le[v]]},"getScroll"),R=o(function(O,v,I){if(L(O)){var M=I==="y";O.scrollTo(M?O.pageXOffset:v,M?v:O.pageYOffset)}else O[le[I]]=v},"setScroll"),U=o(function(O,v){var I=O.getBoundingClientRect();if(I.width||I.height){var M={top:0,left:0},B=void 0;if(L(v)||P(v))B=document.documentElement,M.top=window[j.y],M.left=window[j.x];else{B=v;var re=B.getBoundingClientRect();M.top=re.top*-1+B[le.y],M.left=re.left*-1+B[le.x]}return{top:I.top+M.top-B.clientTop,left:I.left+M.left-B.clientLeft}}return I},"getOffset"),W=(function(){return e?"onwheel"in document?"wheel":"mousewheel":"wheel"})(),K=o(function(O){return O==="wheel"?W:O},"eventName"),Z=o(function(O,v,I,M,B){I.split(" ").forEach(function(re){O[v](K(re),M,n?{passive:B}:!1)})},"apply"),ue=o(function(O,v,I,M){return Z(O,"addEventListener",v,I,M)},"addEvent"),w=o(function(O,v,I,M){return Z(O,"removeEventListener",v,I,M)},"removeEvent"),xe=/^(\+|-)=(\d+(?:\.\d+)?)$/,ke=o(function(O,v){var I={top:0,left:0,relative:!1};if(c(O,"top")||c(O,"left"))I=t({},I,O);else if(a(O))if(O.length>1)I.top=O[0],I.left=O[1];else if(O.length===1)I.top=v?O[0]:0,I.left=v?0:O[0];else return null;else if(l(O))v?I.top=O:I.left=O;else if(i(O)){var M=O.trim().match(xe);if(!M)return null;var B=M[1],re=parseInt(M[2],10);B==="+"?(I.top=v?re:0,I.left=v?0:re):(I.top=v?-re:0,I.left=v?0:-re),I.relative=!0}else return null;return I},"parseCoordinate"),k={trigger:"[data-scroll]",header:"[data-scroll-header]",duration:1e3,easing:"easeOutQuint",offset:0,vertical:!0,horizontal:!1,cancellable:!0,updateURL:!1,preventDefault:!0,stopPropagation:!0,before:null,after:null,cancel:null,complete:null,step:null},Re="click",Ye="wheel touchstart touchmove",Kt=(function(){function O(v,I){var M=this;this.$el=null,this.ctx={$trigger:null,opts:null,progress:!1,pos:null,startPos:null,easing:null,start:0,id:0,cancel:!1,hash:null},this.loop=function(re){var _e=M,Pe=_e.$el,Te=_e.ctx;if(Te.start||(Te.start=re),!Te.progress||!Pe){M.stop();return}var _t=Te.opts,it=Te.pos,Ot=Te.start,Tr=Te.startPos,zr=Te.easing,Gt=_t.duration,ar={top:"y",left:"x"},Rt=re-Ot,je=Math.min(1,Math.max(Rt/Gt,0));Object.keys(it).forEach(function(Hr){var _=it[Hr],q=Tr[Hr],oe=_-q;if(oe!==0){var fe=zr(je,Gt*je,0,1,Gt);R(Pe,Math.round(q+oe*fe),ar[Hr])}}),Rt<=Gt?(M.hook(_t,"step",je),Te.id=O.raf(M.loop)):M.stop(!0)},this.handleClick=function(re){for(var _e=M.opts,Pe=re.target;Pe&&Pe!==document;Pe=Pe.parentNode)if(D(Pe,_e.trigger)){var Te=JSON.parse(Pe.getAttribute("data-scroll-options")||"{}"),_t=Pe.getAttribute("data-scroll"),it=_t||Pe.getAttribute("href"),Ot=t({},_e,Te),Tr=Ot.preventDefault,zr=Ot.stopPropagation,Gt=Ot.vertical,ar=Ot.horizontal;Tr&&re.preventDefault(),zr&&re.stopPropagation(),M.ctx.$trigger=Pe,ar&&Gt?M.to(it,Ot):Gt?M.toTop(it,Ot):ar&&M.toLeft(it,Ot);break}},this.handleStop=function(re){var _e=M.ctx,Pe=_e.opts;Pe&&Pe.cancellable?(_e.cancel=!0,M.stop()):re.preventDefault()},this.opts=t({},k,v||{});var B=null;e&&(typeof I=="string"?B=T(I):I!=null?B=I:B=window),this.$el=B,B&&this.bind(!0,!1)}return o(O,"SweetScroll"),O.create=function(v,I){return new O(v,I)},O.prototype.to=function(v,I){if(e){var M=this,B=M.$el,re=M.ctx,_e=M.opts,Pe=re.$trigger,Te=t({},_e,I||{}),_t=Te.offset,it=Te.vertical,Ot=Te.horizontal,Tr=E(Te.header)?Te.header:T(Te.header),zr=/^#/,Gt=i(v)&&zr.test(v)?v:null;if(re.opts=Te,re.cancel=!1,re.hash=Gt,this.stop(),!!B){var ar=ke(_t,it),Rt=ke(v,it),je={top:0,left:0};if(Rt)if(Rt.relative){var Hr=N(B,it?"y":"x");je.top=it?Hr+Rt.top:Rt.top,je.left=it?Rt.left:Hr+Rt.left}else je=Rt;else if(i(v)&&v!=="#"){var _=T(v);if(!_)return;je=U(_,B)}ar&&(je.top+=ar.top,je.left+=ar.left),Tr&&(je.top=Math.max(0,je.top-z(Tr).height));var q=C(B),oe=q.viewport,fe=q.size;if(je.top=it?Math.max(0,Math.min(fe.height-oe.height,je.top)):N(B,"y"),je.left=Ot?Math.max(0,Math.min(fe.width-oe.width,je.left)):N(B,"x"),this.hook(Te,"before",je,Pe)===!1){re.opts=null;return}re.pos=je,this.start(Te),this.bind(!1,!0)}}},O.prototype.toTop=function(v,I){this.to(v,t({},I||{},{vertical:!0,horizontal:!1}))},O.prototype.toLeft=function(v,I){this.to(v,t({},I||{},{vertical:!1,horizontal:!0}))},O.prototype.toElement=function(v,I){var M=this.$el;!e||!M||this.to(U(v,M),I||{})},O.prototype.stop=function(v){v===void 0&&(v=!1);var I=this,M=I.$el,B=I.ctx,re=B.pos;!M||!B.progress||(O.caf(B.id),B.progress=!1,B.start=0,B.id=0,v&&re&&(R(M,re.left,"x"),R(M,re.top,"y")),this.complete())},O.prototype.update=function(v){if(this.$el){var I=t({},this.opts,v);this.stop(),this.unbind(!0,!0),this.opts=I,this.bind(!0,!1)}},O.prototype.destroy=function(){this.$el&&(this.stop(),this.unbind(!0,!0),this.$el=null)},O.prototype.onBefore=function(v,I){return!0},O.prototype.onStep=function(v){},O.prototype.onAfter=function(v,I){},O.prototype.onCancel=function(){},O.prototype.onComplete=function(v){},O.prototype.start=function(v){var I=this.ctx;I.opts=v,I.progress=!0,I.easing=s(v.easing)?v.easing:y[v.easing];var M=this.$el,B={top:N(M,"y"),left:N(M,"x")};I.startPos=B,I.id=O.raf(this.loop)},O.prototype.complete=function(){var v=this,I=v.$el,M=v.ctx,B=M.hash,re=M.cancel,_e=M.opts,Pe=M.pos,Te=M.$trigger;if(!(!I||!_e)){if(B!=null&&B!==window.location.hash){var _t=_e.updateURL;e&&r&&_t!==!1&&window.history[_t==="replace"?"replaceState":"pushState"](null,"",B)}this.unbind(!1,!0),M.opts=null,M.$trigger=null,re?this.hook(_e,"cancel"):this.hook(_e,"after",Pe,Te),this.hook(_e,"complete",re)}},O.prototype.hook=function(v,I){for(var M=[],B=2;B<arguments.length;B++)M[B-2]=arguments[B];var re,_e=v[I],Pe,Te;return s(_e)&&(Pe=_e.apply(this,M.concat([this]))),Te=(re=this)["on"+(I[0].toUpperCase()+I.slice(1))].apply(re,M),Pe!==void 0?Pe:Te},O.prototype.bind=function(v,I){var M=this,B=M.$el,re=M.ctx.opts;B&&(v&&ue(B,Re,this.handleClick,!1),I&&ue(B,Ye,this.handleStop,re?re.cancellable:!0))},O.prototype.unbind=function(v,I){var M=this,B=M.$el,re=M.ctx.opts;B&&(v&&w(B,Re,this.handleClick,!1),I&&w(B,Ye,this.handleStop,re?re.cancellable:!0))},O.raf=u,O.caf=f,O})();return Kt})});var Xb={};se(Xb,{setup:()=>az,staticStyles:()=>oz,styles:()=>sz});var kl={};se(kl,{DeesComms:()=>gg});var jc={};var jt={};se(jt,{TYPED_REQUEST_REDACTED_PAYLOAD:()=>Rs,TypedHandler:()=>ag,TypedRequest:()=>zp,TypedRequestRetryLimitError:()=>Up,TypedRequestTimeoutError:()=>jp,TypedResponseError:()=>dr,TypedRouter:()=>lg,TypedTarget:()=>cg,VirtualStream:()=>Pr,VirtualStreamActivationScope:()=>On,VirtualStreamClosedError:()=>ao,VirtualStreamLifecycleContractError:()=>Np,VirtualStreamOpenTimeoutError:()=>lo,getTypedRequestResponseInterestKey:()=>Ap});var hr={};se(hr,{AsyncExecutionStack:()=>Md,BackpressuredArray:()=>Nd,FastMap:()=>eo,Interest:()=>il,InterestMap:()=>Pd,LimitedArray:()=>Ld,LoopTracker:()=>_d,ObjectMap:()=>Tn,Stringmap:()=>ol,TimedAggregator:()=>sl,TimedAggregtor:()=>sl,Tree:()=>Rd,uni:()=>rk});var Pa={};se(Pa,{SmartMatch:()=>$m});var Na={};se(Na,{isMatch:()=>tI,matcher:()=>eI});function Bi(t){if(typeof t!="string")throw new TypeError("Expected a string");return t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}o(Bi,"escapeStringRegexp");var Am=new Map,ow=o((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(r=>{if(typeof r!="string"){if(typeof r>"u")return!1;throw new TypeError(`Expected '${e}' to be an array of strings, but found a type of '${typeof r}' in the array`)}return!0})},"sanitizeArray"),ZO=o((t,e)=>{e={caseSensitive:!1,...e};let r=t+JSON.stringify(e);if(Am.has(r))return Am.get(r);let n=t[0]==="!";n&&(t=t.slice(1)),t=Bi(t).replace(/\\\*/g,"[\\s\\S]*");let i=new RegExp(`^${t}$`,e.caseSensitive?"":"i");return i.negated=n,Am.set(r,i),i},"makeRegexp"),sw=o((t,e,r,n)=>{if(t=ow(t,"inputs"),e=ow(e,"patterns"),e.length===0)return[];e=e.map(a=>ZO(a,r));let{allPatterns:i}=r||{},s=[];for(let a of t){let l,c=[...e].fill(!1);for(let[u,f]of e.entries())if(f.test(a)&&(c[u]=!0,l=!f.negated,!l))break;if(!(l===!1||l===void 0&&e.some(u=>!u.negated)||i&&c.some((u,f)=>!u&&!e[f].negated))&&(s.push(a),n))break}return s},"baseMatcher");function eI(t,e,r){return sw(t,e,r,!1)}o(eI,"matcher");function tI(t,e,r){return sw(t,e,r,!0).length>0}o(tI,"isMatch");var $m=class{static{o(this,"SmartMatch")}constructor(e){this.wildcard=e}match(e){return Na.isMatch(e,this.wildcard)}};var Q={};se(Q,{CumulativeDeferred:()=>zc,Deferred:()=>Uc,Timeout:()=>La,cumulativeDefer:()=>iI,defer:()=>Yn,delayFor:()=>cw,delayForRandom:()=>cI,fromCallback:()=>fI,getFirstTrueOrFalse:()=>uI,map:()=>aI,rejectedPromise:()=>sI,resolvedPromise:()=>oI,timeoutAndContinue:()=>lI,timeoutWrap:()=>lw});var Uc=class{static{o(this,"Deferred")}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,r)=>{this.resolve=n=>{this.status="fulfilled",this.stoppedAt=Date.now(),e(n)},this.reject=n=>{this.status="rejected",this.stoppedAt=Date.now(),r(n)},this.startedAt=Date.now(),this.status="pending"})}},Yn=o(()=>new Uc,"defer");var nI=2147483647,aw=o(t=>{t.unref?.()},"unrefTimer"),La=class{static{o(this,"Timeout")}constructor(e,r,n=!1){this.unrefed=!1,this.state="running",this.timeLeftAtCancel=0,this.passOn=r,this.deferred=Yn(),this.promise=this.deferred.promise,this.deadline=performance.now()+e,this.timer=this.startChunk(e),n&&this.makeUnrefed()}startChunk(e){let r=Math.min(e,nI),n=setTimeout(()=>{if(this.state!=="running")return;let i=e-r;i>0?this.timer=this.startChunk(i):(this.state="completed",this.deferred.resolve(this.passOn))},r);return this.unrefed&&aw(n),n}makeUnrefed(){this.unrefed=!0,aw(this.timer)}cancel(){this.state==="running"&&(this.timeLeftAtCancel=this.getTimeLeft(),this.state="cancelled",clearTimeout(this.timer))}getTimeLeft(){if(this.state==="completed")return 0;if(this.state==="cancelled")return this.timeLeftAtCancel;let e=Math.ceil(this.deadline-performance.now());return e>0?e:0}};var zc=class{static{o(this,"CumulativeDeferred")}constructor(){this.accumulatedPromises=[],this.deferred=Yn(),this.promise=this.deferred.promise,setTimeout(async()=>{for(;this.accumulatedPromises.length>0;)await this.accumulatedPromises.shift();this.deferred.resolve()},0)}subDefer(){let e=Yn();return this.addPromise(e.promise),e}addPromise(e){this.accumulatedPromises.push(e)}},iI=o(()=>new zc,"cumulativeDefer");function oI(t){return Promise.resolve(t)}o(oI,"resolvedPromise");var sI=o(t=>Promise.reject(t),"rejectedPromise"),aI=o(async(t,e)=>Promise.all(t.map(e)),"map"),lw=o(async(t,e,r=!0)=>new Promise((n,i)=>{let s,a=o(()=>{s!==void 0&&(clearTimeout(s),s=void 0)},"releaseTimeout");s=setTimeout(()=>{s=void 0,r?i(new Error("timeout")):n(null)},e),t.then(l=>{a(),n(l)},l=>{a(),i(l)})}),"timeoutWrap"),lI=o(async(t,e=6e4)=>lw(t,e,!1),"timeoutAndContinue"),cw=o(async(t,e,r=!1)=>(await new La(t,void 0,r).promise,e),"delayFor"),cI=o(async(t,e,r,n=!1)=>(await cw(Math.random()*(e-t)+t,void 0,n),r),"delayForRandom"),uI=o(async t=>{let e=Yn();for(let r of t)r.then(n=>{n===!0&&e.resolve(!0)});return Promise.all(t).then(()=>{e.resolve(!1)}),e.promise},"getFirstTrueOrFalse"),fI=o(t=>new Promise((e,r)=>{t((n,i)=>{n?r(n):e(i)})}),"fromCallback");var Ne={};se(Ne,{ObservableIntake:()=>cd,Observablemap:()=>ld,fromStreamWithBackpressure:()=>YN,rxjs:()=>ns});var ns={};se(ns,{Observable:()=>we,ReplaySubject:()=>Jo,Subject:()=>$t,Subscription:()=>At,from:()=>Jr,fromEvent:()=>Wi,of:()=>Ba,ops:()=>qN});var Bm=o(function(t,e){return Bm=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},Bm(t,e)},"extendStatics");function Xe(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");Bm(t,e);function r(){this.constructor=t}o(r,"__"),t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}o(Xe,"__extends");var jm=o(function(){return jm=Object.assign||o(function(e){for(var r,n=1,i=arguments.length;n<i;n++){r=arguments[n];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(e[s]=r[s])}return e},"__assign"),jm.apply(this,arguments)},"__assign");function hI(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(t);i<n.length;i++)e.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(t,n[i])&&(r[n[i]]=t[n[i]]);return r}o(hI,"__rest");function mI(t,e,r,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,n);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(i<3?a(s):i>3?a(e,r,s):a(e,r))||s);return i>3&&s&&Object.defineProperty(e,r,s),s}o(mI,"__decorate");function dI(t,e){return function(r,n){e(r,n,t)}}o(dI,"__param");function gI(t,e,r,n,i,s){function a(x){if(x!==void 0&&typeof x!="function")throw new TypeError("Function expected");return x}o(a,"accept");for(var l=n.kind,c=l==="getter"?"get":l==="setter"?"set":"value",u=!e&&t?n.static?t:t.prototype:null,f=e||(u?Object.getOwnPropertyDescriptor(u,n.name):{}),p,h=!1,m=r.length-1;m>=0;m--){var d={};for(var g in n)d[g]=g==="access"?{}:n[g];for(var g in n.access)d.access[g]=n.access[g];d.addInitializer=function(x){if(h)throw new TypeError("Cannot add initializers after decoration has completed");s.push(a(x||null))};var y=(0,r[m])(l==="accessor"?{get:f.get,set:f.set}:f[c],d);if(l==="accessor"){if(y===void 0)continue;if(y===null||typeof y!="object")throw new TypeError("Object expected");(p=a(y.get))&&(f.get=p),(p=a(y.set))&&(f.set=p),(p=a(y.init))&&i.unshift(p)}else(p=a(y))&&(l==="field"?i.unshift(p):f[c]=p)}u&&Object.defineProperty(u,n.name,f),h=!0}o(gI,"__esDecorate");function yI(t,e,r){for(var n=arguments.length>2,i=0;i<e.length;i++)r=n?e[i].call(t,r):e[i].call(t);return n?r:void 0}o(yI,"__runInitializers");function xI(t){return typeof t=="symbol"?t:"".concat(t)}o(xI,"__propKey");function bI(t,e,r){return typeof e=="symbol"&&(e=e.description?"[".concat(e.description,"]"):""),Object.defineProperty(t,"name",{configurable:!0,value:r?"".concat(r," ",e):e})}o(bI,"__setFunctionName");function wI(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}o(wI,"__metadata");function Hm(t,e,r,n){function i(s){return s instanceof r?s:new r(function(a){a(s)})}return o(i,"adopt"),new(r||(r=Promise))(function(s,a){function l(f){try{u(n.next(f))}catch(p){a(p)}}o(l,"fulfilled");function c(f){try{u(n.throw(f))}catch(p){a(p)}}o(c,"rejected");function u(f){f.done?s(f.value):i(f.value).then(l,c)}o(u,"step"),u((n=n.apply(t,e||[])).next())})}o(Hm,"__awaiter");function _a(t,e){var r={label:0,sent:o(function(){if(s[0]&1)throw s[1];return s[1]},"sent"),trys:[],ops:[]},n,i,s,a=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return a.next=l(0),a.throw=l(1),a.return=l(2),typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function l(u){return function(f){return c([u,f])}}function c(u){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,u[0]&&(r=0)),r;)try{if(n=1,i&&(s=u[0]&2?i.return:u[0]?i.throw||((s=i.return)&&s.call(i),0):i.next)&&!(s=s.call(i,u[1])).done)return s;switch(i=0,s&&(u=[u[0]&2,s.value]),u[0]){case 0:case 1:s=u;break;case 4:return r.label++,{value:u[1],done:!1};case 5:r.label++,i=u[1],u=[0];continue;case 7:u=r.ops.pop(),r.trys.pop();continue;default:if(s=r.trys,!(s=s.length>0&&s[s.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!s||u[1]>s[0]&&u[1]<s[3])){r.label=u[1];break}if(u[0]===6&&r.label<s[1]){r.label=s[1],s=u;break}if(s&&r.label<s[2]){r.label=s[2],r.ops.push(u);break}s[2]&&r.ops.pop(),r.trys.pop();continue}u=e.call(t,r)}catch(f){u=[6,f],i=0}finally{n=s=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}o(_a,"__generator");var Um=Object.create?(function(t,e,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,n,i)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]});function SI(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&Um(e,t,r)}o(SI,"__exportStar");function dt(t){var e=typeof Symbol=="function"&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&typeof t.length=="number")return{next:o(function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}},"next")};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}o(dt,"__values");function ct(t,e){var r=typeof Symbol=="function"&&t[Symbol.iterator];if(!r)return t;var n=r.call(t),i,s=[],a;try{for(;(e===void 0||e-- >0)&&!(i=n.next()).done;)s.push(i.value)}catch(l){a={error:l}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(a)throw a.error}}return s}o(ct,"__read");function vI(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(ct(arguments[e]));return t}o(vI,"__spread");function kI(){for(var t=0,e=0,r=arguments.length;e<r;e++)t+=arguments[e].length;for(var n=Array(t),i=0,e=0;e<r;e++)for(var s=arguments[e],a=0,l=s.length;a<l;a++,i++)n[i]=s[a];return n}o(kI,"__spreadArrays");function Ft(t,e,r){if(r||arguments.length===2)for(var n=0,i=e.length,s;n<i;n++)(s||!(n in e))&&(s||(s=Array.prototype.slice.call(e,0,n)),s[n]=e[n]);return t.concat(s||Array.prototype.slice.call(e))}o(Ft,"__spreadArray");function kn(t){return this instanceof kn?(this.v=t,this):new kn(t)}o(kn,"__await");function Wm(t,e,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=r.apply(t,e||[]),i,s=[];return i=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),l("next"),l("throw"),l("return",a),i[Symbol.asyncIterator]=function(){return this},i;function a(m){return function(d){return Promise.resolve(d).then(m,p)}}function l(m,d){n[m]&&(i[m]=function(g){return new Promise(function(y,x){s.push([m,g,y,x])>1||c(m,g)})},d&&(i[m]=d(i[m])))}function c(m,d){try{u(n[m](d))}catch(g){h(s[0][3],g)}}function u(m){m.value instanceof kn?Promise.resolve(m.value.v).then(f,p):h(s[0][2],m)}function f(m){c("next",m)}function p(m){c("throw",m)}function h(m,d){m(d),s.shift(),s.length&&c(s[0][0],s[0][1])}}o(Wm,"__asyncGenerator");function TI(t){var e,r;return e={},n("next"),n("throw",function(i){throw i}),n("return"),e[Symbol.iterator]=function(){return this},e;function n(i,s){e[i]=t[i]?function(a){return(r=!r)?{value:kn(t[i](a)),done:!1}:s?s(a):a}:s}}o(TI,"__asyncDelegator");function qm(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],r;return e?e.call(t):(t=typeof dt=="function"?dt(t):t[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(s){r[s]=t[s]&&function(a){return new Promise(function(l,c){a=t[s](a),i(l,c,a.done,a.value)})}}function i(s,a,l,c){Promise.resolve(c).then(function(u){s({value:u,done:l})},a)}}o(qm,"__asyncValues");function EI(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t}o(EI,"__makeTemplateObject");var DI=Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e},zm=o(function(t){return zm=Object.getOwnPropertyNames||function(e){var r=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(r[r.length]=n);return r},zm(t)},"ownKeys");function CI(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r=zm(t),n=0;n<r.length;n++)r[n]!=="default"&&Um(e,t,r[n]);return DI(e,t),e}o(CI,"__importStar");function OI(t){return t&&t.__esModule?t:{default:t}}o(OI,"__importDefault");function II(t,e,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(t):n?n.value:e.get(t)}o(II,"__classPrivateFieldGet");function MI(t,e,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(t,r):i?i.value=r:e.set(t,r),r}o(MI,"__classPrivateFieldSet");function NI(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)}o(NI,"__classPrivateFieldIn");function PI(t,e,r){if(e!=null){if(typeof e!="object"&&typeof e!="function")throw new TypeError("Object expected.");var n,i;if(r){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");n=e[Symbol.asyncDispose]}if(n===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");n=e[Symbol.dispose],r&&(i=n)}if(typeof n!="function")throw new TypeError("Object not disposable.");i&&(n=o(function(){try{i.call(this)}catch(s){return Promise.reject(s)}},"dispose")),t.stack.push({value:e,dispose:n,async:r})}else r&&t.stack.push({async:!0});return e}o(PI,"__addDisposableResource");var LI=typeof SuppressedError=="function"?SuppressedError:function(t,e,r){var n=new Error(r);return n.name="SuppressedError",n.error=t,n.suppressed=e,n};function _I(t){function e(s){t.error=t.hasError?new LI(s,t.error,"An error was suppressed during disposal."):s,t.hasError=!0}o(e,"fail");var r,n=0;function i(){for(;r=t.stack.pop();)try{if(!r.async&&n===1)return n=0,t.stack.push(r),Promise.resolve().then(i);if(r.dispose){var s=r.dispose.call(r.value);if(r.async)return n|=2,Promise.resolve(s).then(i,function(a){return e(a),i()})}else n|=1}catch(a){e(a)}if(n===1)return t.hasError?Promise.reject(t.error):Promise.resolve();if(t.hasError)throw t.error}return o(i,"next"),i()}o(_I,"__disposeResources");function RI(t,e){return typeof t=="string"&&/^\.\.?\//.test(t)?t.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i,function(r,n,i,s,a){return n?e?".jsx":".js":i&&(!s||!a)?r:i+s+"."+a.toLowerCase()+"js"}):t}o(RI,"__rewriteRelativeImportExtension");var Pz={__extends:Xe,__assign:jm,__rest:hI,__decorate:mI,__param:dI,__esDecorate:gI,__runInitializers:yI,__propKey:xI,__setFunctionName:bI,__metadata:wI,__awaiter:Hm,__generator:_a,__createBinding:Um,__exportStar:SI,__values:dt,__read:ct,__spread:vI,__spreadArrays:kI,__spreadArray:Ft,__await:kn,__asyncGenerator:Wm,__asyncDelegator:TI,__asyncValues:qm,__makeTemplateObject:EI,__importStar:CI,__importDefault:OI,__classPrivateFieldGet:II,__classPrivateFieldSet:MI,__classPrivateFieldIn:NI,__addDisposableResource:PI,__disposeResources:_I,__rewriteRelativeImportExtension:RI};function pe(t){return typeof t=="function"}o(pe,"isFunction");function Hc(t){var e=o(function(n){Error.call(n),n.stack=new Error().stack},"_super"),r=t(e);return r.prototype=Object.create(Error.prototype),r.prototype.constructor=r,r}o(Hc,"createErrorClass");var Ra=Hc(function(t){return o(function(r){t(this),this.message=r?r.length+` errors occurred during unsubscription:
|
|
1
|
+
var VO=Object.create;var Bc=Object.defineProperty;var KO=Object.getOwnPropertyDescriptor;var GO=Object.getOwnPropertyNames;var QO=Object.getPrototypeOf,JO=Object.prototype.hasOwnProperty;var o=(t,e)=>Bc(t,"name",{value:e,configurable:!0});var Cr=(t,e)=>()=>{try{return e||t((e={exports:{}}).exports,e),e.exports}catch(r){throw e=0,r}},se=(t,e)=>{for(var r in e)Bc(t,r,{get:e[r],enumerable:!0})},XO=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of GO(e))!JO.call(t,i)&&i!==r&&Bc(t,i,{get:()=>e[i],enumerable:!(n=KO(e,i))||n.enumerable});return t};var qn=(t,e,r)=>(r=t!=null?VO(QO(t)):{},XO(e||!t||!t.__esModule?Bc(r,"default",{value:t,enumerable:!0}):r,t));var Uv=Cr((xd,bd)=>{(function(t,e){typeof xd=="object"&&typeof bd<"u"?bd.exports=e():typeof define=="function"&&define.amd?define(e):(t=typeof globalThis<"u"?globalThis:t||self).dayjs=e()})(xd,(function(){"use strict";var t=1e3,e=6e4,r=36e5,n="millisecond",i="second",s="minute",a="hour",l="day",c="week",u="month",f="quarter",p="year",h="date",m="Invalid Date",d=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,g=/\[([^\]]+)]|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,y={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:o(function(j){var N=["th","st","nd","rd"],R=j%100;return"["+j+(N[(R-20)%10]||N[R]||N[0])+"]"},"ordinal")},x=o(function(j,N,R){var U=String(j);return!U||U.length>=N?j:""+Array(N+1-U.length).join(R)+j},"m"),T={s:x,z:o(function(j){var N=-j.utcOffset(),R=Math.abs(N),U=Math.floor(R/60),W=R%60;return(N<=0?"+":"-")+x(U,2,"0")+":"+x(W,2,"0")},"z"),m:o(function j(N,R){if(N.date()<R.date())return-j(R,N);var U=12*(R.year()-N.year())+(R.month()-N.month()),W=N.clone().add(U,u),K=R-W<0,Z=N.clone().add(U+(K?-1:1),u);return+(-(U+(R-W)/(K?W-Z:Z-W))||0)},"t"),a:o(function(j){return j<0?Math.ceil(j)||0:Math.floor(j)},"a"),p:o(function(j){return{M:u,y:p,w:c,d:l,D:h,h:a,m:s,s:i,ms:n,Q:f}[j]||String(j||"").toLowerCase().replace(/s$/,"")},"p"),u:o(function(j){return j===void 0},"u")},E="en",L={};L[E]=y;var P="$isDayjsObject",D=o(function(j){return j instanceof C||!(!j||!j[P])},"S"),A=o(function j(N,R,U){var W;if(!N)return E;if(typeof N=="string"){var K=N.toLowerCase();L[K]&&(W=K),R&&(L[K]=R,W=K);var Z=N.split("-");if(!W&&Z.length>1)return j(Z[0])}else{var ue=N.name;L[ue]=N,W=ue}return!U&&W&&(E=W),W||!U&&E},"t"),F=o(function(j,N){if(D(j))return j.clone();var R=typeof N=="object"?N:{};return R.date=j,R.args=arguments,new C(R)},"O"),z=T;z.l=A,z.i=D,z.w=function(j,N){return F(j,{locale:N.$L,utc:N.$u,x:N.$x,$offset:N.$offset})};var C=(function(){function j(R){this.$L=A(R.locale,null,!0),this.parse(R),this.$x=this.$x||R.x||{},this[P]=!0}o(j,"M");var N=j.prototype;return N.parse=function(R){this.$d=(function(U){var W=U.date,K=U.utc;if(W===null)return new Date(NaN);if(z.u(W))return new Date;if(W instanceof Date)return new Date(W);if(typeof W=="string"&&!/Z$/i.test(W)){var Z=W.match(d);if(Z){var ue=Z[2]-1||0,w=(Z[7]||"0").substring(0,3);return K?new Date(Date.UTC(Z[1],ue,Z[3]||1,Z[4]||0,Z[5]||0,Z[6]||0,w)):new Date(Z[1],ue,Z[3]||1,Z[4]||0,Z[5]||0,Z[6]||0,w)}}return new Date(W)})(R),this.init()},N.init=function(){var R=this.$d;this.$y=R.getFullYear(),this.$M=R.getMonth(),this.$D=R.getDate(),this.$W=R.getDay(),this.$H=R.getHours(),this.$m=R.getMinutes(),this.$s=R.getSeconds(),this.$ms=R.getMilliseconds()},N.$utils=function(){return z},N.isValid=function(){return this.$d.toString()!==m},N.isSame=function(R,U){var W=F(R);return this.startOf(U)<=W&&W<=this.endOf(U)},N.isAfter=function(R,U){return F(R)<this.startOf(U)},N.isBefore=function(R,U){return this.endOf(U)<F(R)},N.$g=function(R,U,W){return z.u(R)?this[U]:this.set(W,R)},N.unix=function(){return Math.floor(this.valueOf()/1e3)},N.valueOf=function(){return this.$d.getTime()},N.startOf=function(R,U){var W=this,K=!!z.u(U)||U,Z=z.p(R),ue=o(function(O,v){var I=z.w(W.$u?Date.UTC(W.$y,v,O):new Date(W.$y,v,O),W);return K?I:I.endOf(l)},"l"),w=o(function(O,v){return z.w(W.toDate()[O].apply(W.toDate("s"),(K?[0,0,0,0]:[23,59,59,999]).slice(v)),W)},"$"),xe=this.$W,ke=this.$M,k=this.$D,Re="set"+(this.$u?"UTC":"");switch(Z){case p:return K?ue(1,0):ue(31,11);case u:return K?ue(1,ke):ue(0,ke+1);case c:var Ye=this.$locale().weekStart||0,Kt=(xe<Ye?xe+7:xe)-Ye;return ue(K?k-Kt:k+(6-Kt),ke);case l:case h:return w(Re+"Hours",0);case a:return w(Re+"Minutes",1);case s:return w(Re+"Seconds",2);case i:return w(Re+"Milliseconds",3);default:return this.clone()}},N.endOf=function(R){return this.startOf(R,!1)},N.$set=function(R,U){var W,K=z.p(R),Z="set"+(this.$u?"UTC":""),ue=(W={},W[l]=Z+"Date",W[h]=Z+"Date",W[u]=Z+"Month",W[p]=Z+"FullYear",W[a]=Z+"Hours",W[s]=Z+"Minutes",W[i]=Z+"Seconds",W[n]=Z+"Milliseconds",W)[K],w=K===l?this.$D+(U-this.$W):U;if(K===u||K===p){var xe=this.clone().set(h,1);xe.$d[ue](w),xe.init(),this.$d=xe.set(h,Math.min(this.$D,xe.daysInMonth())).$d}else ue&&this.$d[ue](w);return this.init(),this},N.set=function(R,U){return this.clone().$set(R,U)},N.get=function(R){return this[z.p(R)]()},N.add=function(R,U){var W,K=this;R=Number(R);var Z=z.p(U),ue=o(function(ke){var k=F(K);return z.w(k.date(k.date()+Math.round(ke*R)),K)},"y");if(Z===u)return this.set(u,this.$M+R);if(Z===p)return this.set(p,this.$y+R);if(Z===l)return ue(1);if(Z===c)return ue(7);var w=(W={},W[s]=e,W[a]=r,W[i]=t,W)[Z]||1,xe=this.$d.getTime()+R*w;return z.w(xe,this)},N.subtract=function(R,U){return this.add(-1*R,U)},N.format=function(R){var U=this,W=this.$locale();if(!this.isValid())return W.invalidDate||m;var K=R||"YYYY-MM-DDTHH:mm:ssZ",Z=z.z(this),ue=this.$H,w=this.$m,xe=this.$M,ke=W.weekdays,k=W.months,Re=W.meridiem,Ye=o(function(v,I,M,B){return v&&(v[I]||v(U,K))||M[I].slice(0,B)},"h"),Kt=o(function(v){return z.s(ue%12||12,v,"0")},"d"),O=Re||function(v,I,M){var B=v<12?"AM":"PM";return M?B.toLowerCase():B};return K.replace(g,(function(v,I){return I||(function(M){switch(M){case"YY":return String(U.$y).slice(-2);case"YYYY":return z.s(U.$y,4,"0");case"M":return xe+1;case"MM":return z.s(xe+1,2,"0");case"MMM":return Ye(W.monthsShort,xe,k,3);case"MMMM":return Ye(k,xe);case"D":return U.$D;case"DD":return z.s(U.$D,2,"0");case"d":return String(U.$W);case"dd":return Ye(W.weekdaysMin,U.$W,ke,2);case"ddd":return Ye(W.weekdaysShort,U.$W,ke,3);case"dddd":return ke[U.$W];case"H":return String(ue);case"HH":return z.s(ue,2,"0");case"h":return Kt(1);case"hh":return Kt(2);case"a":return O(ue,w,!0);case"A":return O(ue,w,!1);case"m":return String(w);case"mm":return z.s(w,2,"0");case"s":return String(U.$s);case"ss":return z.s(U.$s,2,"0");case"SSS":return z.s(U.$ms,3,"0");case"Z":return Z}return null})(v)||Z.replace(":","")}))},N.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},N.diff=function(R,U,W){var K,Z=this,ue=z.p(U),w=F(R),xe=(w.utcOffset()-this.utcOffset())*e,ke=this-w,k=o(function(){return z.m(Z,w)},"D");switch(ue){case p:K=k()/12;break;case u:K=k();break;case f:K=k()/3;break;case c:K=(ke-xe)/6048e5;break;case l:K=(ke-xe)/864e5;break;case a:K=ke/r;break;case s:K=ke/e;break;case i:K=ke/t;break;default:K=ke}return W?K:z.a(K)},N.daysInMonth=function(){return this.endOf(u).$D},N.$locale=function(){return L[this.$L]},N.locale=function(R,U){if(!R)return this.$L;var W=this.clone(),K=A(R,U,!0);return K&&(W.$L=K),W},N.clone=function(){return z.w(this.$d,this)},N.toDate=function(){return new Date(this.valueOf())},N.toJSON=function(){return this.isValid()?this.toISOString():null},N.toISOString=function(){return this.$d.toISOString()},N.toString=function(){return this.$d.toUTCString()},j})(),le=C.prototype;return F.prototype=le,[["$ms",n],["$s",i],["$m",s],["$H",a],["$W",l],["$M",u],["$y",p],["$D",h]].forEach((function(j){le[j[1]]=function(N){return this.$g(N,j[0],j[1])}})),F.extend=function(j,N){return j.$i||(j(N,C,F),j.$i=!0),F},F.locale=A,F.isDayjs=D,F.unix=function(j){return F(1e3*j)},F.en=L[E],F.Ls=L,F.p={},F}))});var zv=Cr((wd,Sd)=>{(function(t,e){typeof wd=="object"&&typeof Sd<"u"?Sd.exports=e():typeof define=="function"&&define.amd?define(e):(t=typeof globalThis<"u"?globalThis:t||self).dayjs_plugin_isToday=e()})(wd,(function(){"use strict";return function(t,e,r){e.prototype.isToday=function(){var n="YYYY-MM-DD",i=r();return this.format(n)===i.format(n)}}}))});var Yv=Cr((sDe,qv)=>{"use strict";qv.exports=class{static{o(this,"SymbolTreeNode")}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,r){this.cachedIndexVersion=e.childrenVersion,this.cachedIndex=r}}});var Kv=Cr((lDe,Vv)=>{"use strict";Vv.exports=Object.freeze({DISCONNECTED:1,PRECEDING:2,FOLLOWING:4,CONTAINS:8,CONTAINED_BY:16})});var Zv=Cr((cDe,Xv)=>{"use strict";var Gv=Symbol(),Qv=Symbol(),ai=Symbol(),Jv=Symbol(),Ir=class{static{o(this,"TreeIterator")}constructor(e,r,n,i){this[Gv]=e,this[Qv]=r,this[ai]=n,this[Jv]=i}next(){let e=this[Gv],r=this[Jv],n=this[Qv];if(!this[ai])return{done:!0,value:n};let i=this[ai];return r===1?this[ai]=e._node(i).previousSibling:r===2?this[ai]=e._node(i).nextSibling:r===3?this[ai]=e._node(i).parent:r===4?this[ai]=e.preceding(i,{root:n}):this[ai]=e.following(i,{root:n}),{done:!1,value:i}}};Object.defineProperty(Ir.prototype,Symbol.iterator,{value:o(function(){return this},"value"),writable:!1}),Ir.PREV=1,Ir.NEXT=2,Ir.PARENT=3,Ir.PRECEDING=4,Ir.FOLLOWING=5,Object.freeze(Ir),Object.freeze(Ir.prototype),Xv.exports=Ir});var tk=Cr((fDe,ek)=>{"use strict";var EL=Yv(),li=Kv(),pr=Zv();function Id(){return!0}o(Id,"returnTrue");function Os(t,e){return t[t.length-1-e]}o(Os,"reverseArrayIndex");var np=class{static{o(this,"SymbolTree")}constructor(e){this.symbol=Symbol(e||"SymbolTree data")}initialize(e){return this._node(e),e}_node(e){if(!e)return null;let r=e[this.symbol];return r||(e[this.symbol]=new EL)}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 r,n=e;for(;r=this._node(n).lastChild;)n=r;return n}preceding(e,r){let n=r&&r.root;if(e===n)return null;let i=this._node(e).previousSibling;return i?this.lastInclusiveDescendant(i):this._node(e).parent}following(e,r){let n=r&&r.root,s=!(r&&r.skipChildren)&&this._node(e).firstChild;if(s)return s;let a=e;do{if(a===n)return null;let l=this._node(a).nextSibling;if(l)return l;a=this._node(a).parent}while(a);return null}childrenToArray(e,r){let n=r&&r.array||[],i=r&&r.filter||Id,s=r&&r.thisArg||void 0,a=this._node(e),l=a.firstChild,c=0;for(;l;){let u=this._node(l);u.setCachedIndex(a,c),i.call(s,l)&&n.push(l),l=u.nextSibling,++c}return n}ancestorsToArray(e,r){let n=r&&r.array||[],i=r&&r.filter||Id,s=r&&r.thisArg||void 0,a=e;for(;a;)i.call(s,a)&&n.push(a),a=this._node(a).parent;return n}treeToArray(e,r){let n=r&&r.array||[],i=r&&r.filter||Id,s=r&&r.thisArg||void 0,a=e;for(;a;)i.call(s,a)&&n.push(a),a=this.following(a,{root:e});return n}childrenIterator(e,r){let n=r&&r.reverse,i=this._node(e);return new pr(this,e,n?i.lastChild:i.firstChild,n?pr.PREV:pr.NEXT)}previousSiblingsIterator(e){return new pr(this,e,this._node(e).previousSibling,pr.PREV)}nextSiblingsIterator(e){return new pr(this,e,this._node(e).nextSibling,pr.NEXT)}ancestorsIterator(e){return new pr(this,e,e,pr.PARENT)}treeIterator(e,r){let n=r&&r.reverse;return new pr(this,e,n?this.lastInclusiveDescendant(e):e,n?pr.PRECEDING:pr.FOLLOWING)}index(e){let r=this._node(e),n=this._node(r.parent);if(!n)return-1;let i=r.getCachedIndex(n);if(i>=0)return i;i=0;let s=n.firstChild;if(n.childIndexCachedUpTo){let a=this._node(n.childIndexCachedUpTo);s=a.nextSibling,i=a.getCachedIndex(n)+1}for(;s;){let a=this._node(s);if(a.setCachedIndex(n,i),s===e)break;++i,s=a.nextSibling}return n.childIndexCachedUpTo=e,i}childrenCount(e){let r=this._node(e);return r.lastChild?this.index(r.lastChild)+1:0}compareTreePosition(e,r){if(e===r)return 0;let n=[];{let f=e;for(;f;){if(f===r)return li.CONTAINS|li.PRECEDING;n.push(f),f=this.parent(f)}}let i=[];{let f=r;for(;f;){if(f===e)return li.CONTAINED_BY|li.FOLLOWING;i.push(f),f=this.parent(f)}}let s=Os(n,0);if(!s||s!==Os(i,0))return li.DISCONNECTED;let a=0,l=Math.min(n.length,i.length);for(let f=0;f<l;++f){let p=Os(n,f),h=Os(i,f);if(p!==h)break;a=f}let c=this.index(Os(n,a+1));return this.index(Os(i,a+1))<c?li.PRECEDING:li.FOLLOWING}remove(e){let r=this._node(e),n=this._node(r.parent),i=this._node(r.previousSibling),s=this._node(r.nextSibling);return n&&(n.firstChild===e&&(n.firstChild=r.nextSibling),n.lastChild===e&&(n.lastChild=r.previousSibling)),i&&(i.nextSibling=r.nextSibling),s&&(s.previousSibling=r.previousSibling),r.parent=null,r.previousSibling=null,r.nextSibling=null,r.cachedIndex=-1,r.cachedIndexVersion=NaN,n&&n.childrenChanged(),e}insertBefore(e,r){let n=this._node(e),i=this._node(n.previousSibling),s=this._node(r),a=this._node(n.parent);if(s.isAttached)throw Error("Given object is already present in this SymbolTree, remove it first");return s.parent=n.parent,s.previousSibling=n.previousSibling,s.nextSibling=e,n.previousSibling=r,i&&(i.nextSibling=r),a&&a.firstChild===e&&(a.firstChild=r),a&&a.childrenChanged(),r}insertAfter(e,r){let n=this._node(e),i=this._node(n.nextSibling),s=this._node(r),a=this._node(n.parent);if(s.isAttached)throw Error("Given object is already present in this SymbolTree, remove it first");return s.parent=n.parent,s.previousSibling=e,s.nextSibling=n.nextSibling,n.nextSibling=r,i&&(i.previousSibling=r),a&&a.lastChild===e&&(a.lastChild=r),a&&a.childrenChanged(),r}prependChild(e,r){let n=this._node(e),i=this._node(r);if(i.isAttached)throw Error("Given object is already present in this SymbolTree, remove it first");return n.hasChildren?this.insertBefore(n.firstChild,r):(i.parent=e,n.firstChild=r,n.lastChild=r,n.childrenChanged()),r}appendChild(e,r){let n=this._node(e),i=this._node(r);if(i.isAttached)throw Error("Given object is already present in this SymbolTree, remove it first");return n.hasChildren?this.insertAfter(n.lastChild,r):(i.parent=e,n.firstChild=r,n.lastChild=r,n.childrenChanged()),r}};ek.exports=np,np.TreePosition=li});var $k=Cr((SIe,Ak)=>{"use strict";Ak.exports=function(t,e){e||(e={}),typeof e=="function"&&(e={cmp:e});var r=typeof e.cycles=="boolean"?e.cycles:!1,n=e.cmp&&(function(s){return function(a){return function(l,c){var u={key:l,value:a[l]},f={key:c,value:a[c]};return s(u,f)}}})(e.cmp),i=[];return o((function s(a){if(a&&a.toJSON&&typeof a.toJSON=="function"&&(a=a.toJSON()),a!==void 0){if(typeof a=="number")return isFinite(a)?""+a:"null";if(typeof a!="object")return JSON.stringify(a);var l,c;if(Array.isArray(a)){for(c="[",l=0;l<a.length;l++)l&&(c+=","),c+=s(a[l])||"null";return c+"]"}if(a===null)return"null";if(i.indexOf(a)!==-1){if(r)return JSON.stringify("__cycle__");throw new TypeError("Converting circular structure to JSON")}var u=i.push(a)-1,f=Object.keys(a).sort(n&&n(a));for(c="",l=0;l<f.length;l++){var p=f[l],h=s(a[p]);h&&(c&&(c+=","),c+=JSON.stringify(p)+":"+h)}return i.splice(u,1),"{"+c+"}"}}),"stringify")(t)}});var HD=Cr((UWe,zD)=>{"use strict";var Zh=Object.prototype.hasOwnProperty,RD=Object.prototype.toString,FD=Object.defineProperty,AD=Object.getOwnPropertyDescriptor,$D=o(function(e){return typeof Array.isArray=="function"?Array.isArray(e):RD.call(e)==="[object Array]"},"isArray"),BD=o(function(e){if(!e||RD.call(e)!=="[object Object]")return!1;var r=Zh.call(e,"constructor"),n=e.constructor&&e.constructor.prototype&&Zh.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!r&&!n)return!1;var i;for(i in e);return typeof i>"u"||Zh.call(e,i)},"isPlainObject"),jD=o(function(e,r){FD&&r.name==="__proto__"?FD(e,r.name,{enumerable:!0,configurable:!0,value:r.newValue,writable:!0}):e[r.name]=r.newValue},"setProperty"),UD=o(function(e,r){if(r==="__proto__")if(Zh.call(e,r)){if(AD)return AD(e,r).value}else return;return e[r]},"getProperty");zD.exports=o(function t(){var e,r,n,i,s,a,l=arguments[0],c=1,u=arguments.length,f=!1;for(typeof l=="boolean"&&(f=l,l=arguments[1]||{},c=2),(l==null||typeof l!="object"&&typeof l!="function")&&(l={});c<u;++c)if(e=arguments[c],e!=null)for(r in e)n=UD(l,r),i=UD(e,r),l!==i&&(f&&i&&(BD(i)||(s=$D(i)))?(s?(s=!1,a=n&&$D(n)?n:[]):a=n&&BD(n)?n:{},jD(l,{name:r,newValue:t(f,a,i)})):typeof i<"u"&&jD(l,{name:r,newValue:i}));return l},"extend")});var jC=Cr((oKe,Xx)=>{(function(){var t;typeof Xx<"u"?t=Xx.exports=n:t=(function(){return this||(0,eval)("this")})(),t.format=n,t.vsprintf=r,typeof console<"u"&&typeof console.log=="function"&&(t.printf=e);function e(){console.log(n.apply(null,arguments))}o(e,"printf");function r(i,s){return n.apply(null,[i].concat(s))}o(r,"vsprintf");function n(i){for(var s=1,a=[].slice.call(arguments),l=0,c=i.length,u="",f,p=!1,h,m,d=!1,g,y=o(function(){return a[s++]},"nextArg"),x=o(function(){for(var T="";/\d/.test(i[l]);)T+=i[l++],f=i[l];return T.length>0?parseInt(T):null},"slurpNumber");l<c;++l)if(f=i[l],p)switch(p=!1,f=="."?(d=!1,f=i[++l]):f=="0"&&i[l+1]=="."?(d=!0,l+=2,f=i[l]):d=!0,g=x(),f){case"b":u+=parseInt(y(),10).toString(2);break;case"c":h=y(),typeof h=="string"||h instanceof String?u+=h:u+=String.fromCharCode(parseInt(h,10));break;case"d":u+=parseInt(y(),10);break;case"f":m=String(parseFloat(y()).toFixed(g||6)),u+=d?m:m.replace(/^0/,"");break;case"j":u+=JSON.stringify(y());break;case"o":u+="0"+parseInt(y(),10).toString(8);break;case"s":u+=y();break;case"x":u+="0x"+parseInt(y(),10).toString(16);break;case"X":u+="0x"+parseInt(y(),10).toString(16).toUpperCase();break;default:u+=f;break}else f==="%"?p=!0:u+=f;return u}o(n,"format")})()});var aO=Cr(jr=>{"use strict";Object.defineProperty(jr,"__esModule",{value:!0}),jr.PathError=jr.TokenData=void 0,jr.parse=ub,jr.compile=t4,jr.match=n4,jr.pathToRegexp=nO,jr.stringify=o4;var lb="/",cb=o(t=>t,"NOOP_VALUE"),JU=/^[$_\p{ID_Start}]$/u,tO=/^[$\u200c\u200d\p{ID_Continue}]$/u,XU=/^[$_\p{ID_Start}][$\u200c\u200d\p{ID_Continue}]*$/u,ZU="{}()[]+?!";function e4(t){return t.replace(/[{}()\[\]+?!:*\\]/g,"\\$&")}o(e4,"escapeText");function Ni(t){return t.replace(/[.+*?^${}()[\]|/\\]/g,"\\$&")}o(Ni,"escape");var xm=class{static{o(this,"TokenData")}constructor(e,r){this.tokens=e,this.originalPath=r}};jr.TokenData=xm;var Pi=class extends TypeError{static{o(this,"PathError")}constructor(e,r){let n=e;r&&(n+=`: ${r}`),n+="; visit https://git.new/pathToRegexpError for info",super(n),this.originalPath=r}};jr.PathError=Pi;function ub(t,e={}){let{encodePath:r=cb}=e,n=[...t],i=[],s=0,a=0;function l(){let u="";if(JU.test(n[s]))do u+=n[s++];while(tO.test(n[s]));else if(n[s]==='"'){let f=s;for(;s<n.length;){if(n[++s]==='"'){s++,f=0;break}n[s]==="\\"&&s++,u+=n[s]}if(f)throw new Pi(`Unterminated quote at index ${f}`,t)}if(!u)throw new Pi(`Missing parameter name at index ${s}`,t);return u}for(o(l,"name");s<n.length;){let u=n[s++];ZU.includes(u)?i.push({type:u,index:s,value:u}):u==="\\"?i.push({type:"escape",index:s,value:n[s++]}):u===":"?i.push({type:"param",index:s,value:l()}):u==="*"?i.push({type:"wildcard",index:s,value:l()}):i.push({type:"char",index:s,value:u})}i.push({type:"end",index:s,value:""});function c(u){let f=[];for(;;){let p=i[a++];if(p.type===u)break;if(p.type==="char"||p.type==="escape"){let h=p.value,m=i[a];for(;m.type==="char"||m.type==="escape";)h+=m.value,m=i[++a];f.push({type:"text",value:r(h)});continue}if(p.type==="param"||p.type==="wildcard"){f.push({type:p.type,name:p.value});continue}if(p.type==="{"){f.push({type:"group",tokens:c("}")});continue}throw new Pi(`Unexpected ${p.type} at index ${p.index}, expected ${u}`,t)}return f}return o(c,"consumeUntil"),new xm(c("end"),t)}o(ub,"parse");function t4(t,e={}){let{encode:r=encodeURIComponent,delimiter:n=lb}=e,i=typeof t=="object"?t:ub(t,e),s=rO(i.tokens,n,r);return o(function(l={}){let[c,...u]=s(l);if(u.length)throw new TypeError(`Missing parameters: ${u.join(", ")}`);return c},"path")}o(t4,"compile");function rO(t,e,r){let n=t.map(i=>r4(i,e,r));return i=>{let s=[""];for(let a of n){let[l,...c]=a(i);s[0]+=l,s.push(...c)}return s}}o(rO,"tokensToFunction");function r4(t,e,r){if(t.type==="text")return()=>[t.value];if(t.type==="group"){let i=rO(t.tokens,e,r);return s=>{let[a,...l]=i(s);return l.length?[""]:[a]}}let n=r||cb;return t.type==="wildcard"&&r!==!1?i=>{let s=i[t.name];if(s==null)return["",t.name];if(!Array.isArray(s)||s.length===0)throw new TypeError(`Expected "${t.name}" to be a non-empty array`);return[s.map((a,l)=>{if(typeof a!="string")throw new TypeError(`Expected "${t.name}/${l}" to be a string`);return n(a)}).join(e)]}:i=>{let s=i[t.name];if(s==null)return["",t.name];if(typeof s!="string")throw new TypeError(`Expected "${t.name}" to be a string`);return[n(s)]}}o(r4,"tokenToFunction");function n4(t,e={}){let{decode:r=decodeURIComponent,delimiter:n=lb}=e,{regexp:i,keys:s}=nO(t,e),a=s.map(l=>r===!1?cb:l.type==="param"?r:c=>c.split(n).map(r));return o(function(c){let u=i.exec(c);if(!u)return!1;let f=u[0],p=Object.create(null);for(let h=1;h<u.length;h++){if(u[h]===void 0)continue;let m=s[h-1],d=a[h-1];p[m.name]=d(u[h])}return{path:f,params:p}},"match")}o(n4,"match");function nO(t,e={}){let{delimiter:r=lb,end:n=!0,sensitive:i=!1,trailing:s=!0}=e,a=new fb("^"),l=[t],c=0;for(;l.length;){let p=l.shift();if(Array.isArray(p)){l.push(...p);continue}let h=typeof p=="object"?p:ub(p,e);pb(h.tokens,0,[],m=>{if(c++>=256)throw new Pi("Too many path combinations",h.originalPath);let d=a;for(let g of i4(m,r,h.originalPath))d=d.add(g.source,g.key);d.add("")})}let u=[],f=iO(a,u);return s&&(f+="(?:"+Ni(r)+"$)?"),f+=n?"$":"(?="+Ni(r)+"|$)",{regexp:new RegExp(f,i?"":"i"),keys:u}}o(nO,"pathToRegexp");function iO(t,e){t.key&&e.push(t.key);let r=Object.keys(t.children),n=r.map(i=>iO(t.children[i],e)).join("|");return t.source+(r.length<2?n:`(?:${n})`)}o(iO,"toRegExp");var fb=class t{static{o(this,"SourceNode")}constructor(e,r){this.source=e,this.key=r,this.children=Object.create(null)}add(e,r){var n;let i=e+":"+(r?r.name:"");return(n=this.children)[i]||(n[i]=new t(e,r))}};function pb(t,e,r,n){for(;e<t.length;){let i=t[e++];if(i.type==="group"){pb(i.tokens,0,r.slice(),s=>pb(t,e,s,n));continue}r.push(i)}n(r)}o(pb,"flatten");function i4(t,e,r){let n=[],i="",s="",a=0,l=0,c=0;function u(p,h){for(;p<t.length;){let m=t[p++];if(m.type===h)return!0;if(m.type==="text"&&m.value.includes(e))break}return!1}o(u,"hasInSegment");function f(p){let h="";for(;p<t.length;){let m=t[p++];if(m.type!=="text")break;h+=m.value}return h}for(o(f,"peekText");c<t.length;){let p=t[c++];if(p.type==="text"){n.push({source:Ni(p.value)}),i+=p.value,a===2&&(s+=p.value),p.value.includes(e)&&(l=0);continue}if(p.type==="param"||p.type==="wildcard"){if(a&&!i)throw new Pi(`Missing text before "${p.name}" ${p.type}`,r);p.type==="param"?(n.push({source:l?`(${Li(e,i)}+?)`:u(c,"wildcard")?`(${Li(e,f(c))}+?)`:`(${Li(e,"")}+?)`,key:p}),l|=a=1):(n.push({source:l&2?`(${Li(i,"")}+?)`:l&1?`(${Li(s,"")}+?)`:s?`(${Li(s,"")}+?|${Li(e,"")}+?)`:"([^]+?)",key:p}),s="",l|=a=2),i="";continue}throw new TypeError(`Unknown token type: ${p.type}`)}return n}o(i4,"toRegExpSource");function Li(t,e){return e.length>t.length?Li(e,t):(t===e&&(e=""),e.length>1?`(?:(?!${Ni(t)}|${Ni(e)})[^])`:t.length>1?`(?:(?!${Ni(t)})[^${Ni(e)}])`:`[^${Ni(t+e)}]`)}o(Li,"negate");function oO(t,e){let r="";for(;e<t.length;){let n=t[e++];if(n.type==="text"){r+=e4(n.value);continue}if(n.type==="group"){r+="{"+oO(n.tokens,0)+"}";continue}if(n.type==="param"){r+=":"+sO(n.name,t[e]);continue}if(n.type==="wildcard"){r+="*"+sO(n.name,t[e]);continue}throw new TypeError(`Unknown token type: ${n.type}`)}return r}o(oO,"stringifyTokens");function o4(t){return oO(t.tokens,0)}o(o4,"stringify");function sO(t,e){return!XU.test(t)||e?.type==="text"&&tO.test(e.value[0])?JSON.stringify(t):t}o(sO,"stringifyName")});var xO=Cr((Ab,$b)=>{(function(t,e){typeof Ab=="object"&&typeof $b<"u"?$b.exports=e():typeof define=="function"&&define.amd?define(e):(t=t||self,t.SweetScroll=e())})(Ab,function(){"use strict";var t=o(function(){return t=Object.assign||o(function(v){for(var I,M=1,B=arguments.length;M<B;M++){I=arguments[M];for(var re in I)Object.prototype.hasOwnProperty.call(I,re)&&(v[re]=I[re])}return v},"__assign"),t.apply(this,arguments)},"__assign"),e=!!(typeof window<"u"&&window.document&&window.document.createElement),r=e?window.history&&"pushState"in window.history&&window.location.protocol!=="file:":!1,n=(function(){var O=!1;if(!e)return O;try{var v=window,I=Object.defineProperty({},"passive",{get:o(function(){O=!0},"get")});v.addEventListener("test",null,I),v.removeEventListener("test",null,I)}catch{}return O})(),i=o(function(O){return typeof O=="string"},"isString"),s=o(function(O){return typeof O=="function"},"isFunction"),a=o(function(O){return Array.isArray(O)},"isArray"),l=o(function(O){return!a(O)&&O-parseFloat(O)+1>=0},"isNumeric"),c=o(function(O,v){return O&&O.hasOwnProperty(v)},"hasProp"),u=e?window.requestAnimationFrame.bind(window):null,f=e?window.cancelAnimationFrame.bind(window):null,p=Math.cos,h=Math.sin,m=Math.pow,d=Math.sqrt,g=Math.PI,y={linear:o(function(O){return O},"linear"),easeInQuad:o(function(O,v,I,M,B){return M*(v/=B)*v+I},"easeInQuad"),easeOutQuad:o(function(O,v,I,M,B){return-M*(v/=B)*(v-2)+I},"easeOutQuad"),easeInOutQuad:o(function(O,v,I,M,B){return(v/=B/2)<1?M/2*v*v+I:-M/2*(--v*(v-2)-1)+I},"easeInOutQuad"),easeInCubic:o(function(O,v,I,M,B){return M*(v/=B)*v*v+I},"easeInCubic"),easeOutCubic:o(function(O,v,I,M,B){return M*((v=v/B-1)*v*v+1)+I},"easeOutCubic"),easeInOutCubic:o(function(O,v,I,M,B){return(v/=B/2)<1?M/2*v*v*v+I:M/2*((v-=2)*v*v+2)+I},"easeInOutCubic"),easeInQuart:o(function(O,v,I,M,B){return M*(v/=B)*v*v*v+I},"easeInQuart"),easeOutQuart:o(function(O,v,I,M,B){return-M*((v=v/B-1)*v*v*v-1)+I},"easeOutQuart"),easeInOutQuart:o(function(O,v,I,M,B){return(v/=B/2)<1?M/2*v*v*v*v+I:-M/2*((v-=2)*v*v*v-2)+I},"easeInOutQuart"),easeInQuint:o(function(O,v,I,M,B){return M*(v/=B)*v*v*v*v+I},"easeInQuint"),easeOutQuint:o(function(O,v,I,M,B){return M*((v=v/B-1)*v*v*v*v+1)+I},"easeOutQuint"),easeInOutQuint:o(function(O,v,I,M,B){return(v/=B/2)<1?M/2*v*v*v*v*v+I:M/2*((v-=2)*v*v*v*v+2)+I},"easeInOutQuint"),easeInSine:o(function(O,v,I,M,B){return-M*p(v/B*(g/2))+M+I},"easeInSine"),easeOutSine:o(function(O,v,I,M,B){return M*h(v/B*(g/2))+I},"easeOutSine"),easeInOutSine:o(function(O,v,I,M,B){return-M/2*(p(g*v/B)-1)+I},"easeInOutSine"),easeInExpo:o(function(O,v,I,M,B){return v===0?I:M*m(2,10*(v/B-1))+I},"easeInExpo"),easeOutExpo:o(function(O,v,I,M,B){return v===B?I+M:M*(-m(2,-10*v/B)+1)+I},"easeOutExpo"),easeInOutExpo:o(function(O,v,I,M,B){return v===0?I:v===B?I+M:(v/=B/2)<1?M/2*m(2,10*(v-1))+I:M/2*(-m(2,-10*--v)+2)+I},"easeInOutExpo"),easeInCirc:o(function(O,v,I,M,B){return-M*(d(1-(v/=B)*v)-1)+I},"easeInCirc"),easeOutCirc:o(function(O,v,I,M,B){return M*d(1-(v=v/B-1)*v)+I},"easeOutCirc"),easeInOutCirc:o(function(O,v,I,M,B){return(v/=B/2)<1?-M/2*(d(1-v*v)-1)+I:M/2*(d(1-(v-=2)*v)+1)+I},"easeInOutCirc")},x=o(function(O){return Array.prototype.slice.call(O?document.querySelectorAll(O):[])},"$$"),T=o(function(O){return x(O).shift()||null},"$"),E=o(function(O){return O instanceof Element},"isElement"),L=o(function(O){return O===window},"isWindow"),P=o(function(O){return O===document.documentElement||O===document.body},"isRootContainer"),D=o(function(O,v){if(E(v))return O===v;for(var I=x(v),M=I.length;--M>=0&&I[M]!==O;);return M>-1},"matches"),A=o(function(O){return Math.max(O.scrollHeight,O.clientHeight,O.offsetHeight)},"getHeight"),F=o(function(O){return Math.max(O.scrollWidth,O.clientWidth,O.offsetWidth)},"getWidth"),z=o(function(O){return{width:F(O),height:A(O)}},"getSize"),C=o(function(O){var v=L(O)||P(O);return{viewport:{width:v?Math.min(window.innerWidth,document.documentElement.clientWidth):O.clientWidth,height:v?window.innerHeight:O.clientHeight},size:v?{width:Math.max(F(document.body),F(document.documentElement)),height:Math.max(A(document.body),A(document.documentElement))}:z(O)}},"getViewportAndElementSizes"),le={y:"scrollTop",x:"scrollLeft"},j={y:"pageYOffset",x:"pageXOffset"},N=o(function(O,v){return L(O)?O[j[v]]:O[le[v]]},"getScroll"),R=o(function(O,v,I){if(L(O)){var M=I==="y";O.scrollTo(M?O.pageXOffset:v,M?v:O.pageYOffset)}else O[le[I]]=v},"setScroll"),U=o(function(O,v){var I=O.getBoundingClientRect();if(I.width||I.height){var M={top:0,left:0},B=void 0;if(L(v)||P(v))B=document.documentElement,M.top=window[j.y],M.left=window[j.x];else{B=v;var re=B.getBoundingClientRect();M.top=re.top*-1+B[le.y],M.left=re.left*-1+B[le.x]}return{top:I.top+M.top-B.clientTop,left:I.left+M.left-B.clientLeft}}return I},"getOffset"),W=(function(){return e?"onwheel"in document?"wheel":"mousewheel":"wheel"})(),K=o(function(O){return O==="wheel"?W:O},"eventName"),Z=o(function(O,v,I,M,B){I.split(" ").forEach(function(re){O[v](K(re),M,n?{passive:B}:!1)})},"apply"),ue=o(function(O,v,I,M){return Z(O,"addEventListener",v,I,M)},"addEvent"),w=o(function(O,v,I,M){return Z(O,"removeEventListener",v,I,M)},"removeEvent"),xe=/^(\+|-)=(\d+(?:\.\d+)?)$/,ke=o(function(O,v){var I={top:0,left:0,relative:!1};if(c(O,"top")||c(O,"left"))I=t({},I,O);else if(a(O))if(O.length>1)I.top=O[0],I.left=O[1];else if(O.length===1)I.top=v?O[0]:0,I.left=v?0:O[0];else return null;else if(l(O))v?I.top=O:I.left=O;else if(i(O)){var M=O.trim().match(xe);if(!M)return null;var B=M[1],re=parseInt(M[2],10);B==="+"?(I.top=v?re:0,I.left=v?0:re):(I.top=v?-re:0,I.left=v?0:-re),I.relative=!0}else return null;return I},"parseCoordinate"),k={trigger:"[data-scroll]",header:"[data-scroll-header]",duration:1e3,easing:"easeOutQuint",offset:0,vertical:!0,horizontal:!1,cancellable:!0,updateURL:!1,preventDefault:!0,stopPropagation:!0,before:null,after:null,cancel:null,complete:null,step:null},Re="click",Ye="wheel touchstart touchmove",Kt=(function(){function O(v,I){var M=this;this.$el=null,this.ctx={$trigger:null,opts:null,progress:!1,pos:null,startPos:null,easing:null,start:0,id:0,cancel:!1,hash:null},this.loop=function(re){var _e=M,Pe=_e.$el,Te=_e.ctx;if(Te.start||(Te.start=re),!Te.progress||!Pe){M.stop();return}var _t=Te.opts,it=Te.pos,Ot=Te.start,Tr=Te.startPos,zr=Te.easing,Gt=_t.duration,ar={top:"y",left:"x"},Rt=re-Ot,je=Math.min(1,Math.max(Rt/Gt,0));Object.keys(it).forEach(function(Hr){var _=it[Hr],q=Tr[Hr],oe=_-q;if(oe!==0){var fe=zr(je,Gt*je,0,1,Gt);R(Pe,Math.round(q+oe*fe),ar[Hr])}}),Rt<=Gt?(M.hook(_t,"step",je),Te.id=O.raf(M.loop)):M.stop(!0)},this.handleClick=function(re){for(var _e=M.opts,Pe=re.target;Pe&&Pe!==document;Pe=Pe.parentNode)if(D(Pe,_e.trigger)){var Te=JSON.parse(Pe.getAttribute("data-scroll-options")||"{}"),_t=Pe.getAttribute("data-scroll"),it=_t||Pe.getAttribute("href"),Ot=t({},_e,Te),Tr=Ot.preventDefault,zr=Ot.stopPropagation,Gt=Ot.vertical,ar=Ot.horizontal;Tr&&re.preventDefault(),zr&&re.stopPropagation(),M.ctx.$trigger=Pe,ar&&Gt?M.to(it,Ot):Gt?M.toTop(it,Ot):ar&&M.toLeft(it,Ot);break}},this.handleStop=function(re){var _e=M.ctx,Pe=_e.opts;Pe&&Pe.cancellable?(_e.cancel=!0,M.stop()):re.preventDefault()},this.opts=t({},k,v||{});var B=null;e&&(typeof I=="string"?B=T(I):I!=null?B=I:B=window),this.$el=B,B&&this.bind(!0,!1)}return o(O,"SweetScroll"),O.create=function(v,I){return new O(v,I)},O.prototype.to=function(v,I){if(e){var M=this,B=M.$el,re=M.ctx,_e=M.opts,Pe=re.$trigger,Te=t({},_e,I||{}),_t=Te.offset,it=Te.vertical,Ot=Te.horizontal,Tr=E(Te.header)?Te.header:T(Te.header),zr=/^#/,Gt=i(v)&&zr.test(v)?v:null;if(re.opts=Te,re.cancel=!1,re.hash=Gt,this.stop(),!!B){var ar=ke(_t,it),Rt=ke(v,it),je={top:0,left:0};if(Rt)if(Rt.relative){var Hr=N(B,it?"y":"x");je.top=it?Hr+Rt.top:Rt.top,je.left=it?Rt.left:Hr+Rt.left}else je=Rt;else if(i(v)&&v!=="#"){var _=T(v);if(!_)return;je=U(_,B)}ar&&(je.top+=ar.top,je.left+=ar.left),Tr&&(je.top=Math.max(0,je.top-z(Tr).height));var q=C(B),oe=q.viewport,fe=q.size;if(je.top=it?Math.max(0,Math.min(fe.height-oe.height,je.top)):N(B,"y"),je.left=Ot?Math.max(0,Math.min(fe.width-oe.width,je.left)):N(B,"x"),this.hook(Te,"before",je,Pe)===!1){re.opts=null;return}re.pos=je,this.start(Te),this.bind(!1,!0)}}},O.prototype.toTop=function(v,I){this.to(v,t({},I||{},{vertical:!0,horizontal:!1}))},O.prototype.toLeft=function(v,I){this.to(v,t({},I||{},{vertical:!1,horizontal:!0}))},O.prototype.toElement=function(v,I){var M=this.$el;!e||!M||this.to(U(v,M),I||{})},O.prototype.stop=function(v){v===void 0&&(v=!1);var I=this,M=I.$el,B=I.ctx,re=B.pos;!M||!B.progress||(O.caf(B.id),B.progress=!1,B.start=0,B.id=0,v&&re&&(R(M,re.left,"x"),R(M,re.top,"y")),this.complete())},O.prototype.update=function(v){if(this.$el){var I=t({},this.opts,v);this.stop(),this.unbind(!0,!0),this.opts=I,this.bind(!0,!1)}},O.prototype.destroy=function(){this.$el&&(this.stop(),this.unbind(!0,!0),this.$el=null)},O.prototype.onBefore=function(v,I){return!0},O.prototype.onStep=function(v){},O.prototype.onAfter=function(v,I){},O.prototype.onCancel=function(){},O.prototype.onComplete=function(v){},O.prototype.start=function(v){var I=this.ctx;I.opts=v,I.progress=!0,I.easing=s(v.easing)?v.easing:y[v.easing];var M=this.$el,B={top:N(M,"y"),left:N(M,"x")};I.startPos=B,I.id=O.raf(this.loop)},O.prototype.complete=function(){var v=this,I=v.$el,M=v.ctx,B=M.hash,re=M.cancel,_e=M.opts,Pe=M.pos,Te=M.$trigger;if(!(!I||!_e)){if(B!=null&&B!==window.location.hash){var _t=_e.updateURL;e&&r&&_t!==!1&&window.history[_t==="replace"?"replaceState":"pushState"](null,"",B)}this.unbind(!1,!0),M.opts=null,M.$trigger=null,re?this.hook(_e,"cancel"):this.hook(_e,"after",Pe,Te),this.hook(_e,"complete",re)}},O.prototype.hook=function(v,I){for(var M=[],B=2;B<arguments.length;B++)M[B-2]=arguments[B];var re,_e=v[I],Pe,Te;return s(_e)&&(Pe=_e.apply(this,M.concat([this]))),Te=(re=this)["on"+(I[0].toUpperCase()+I.slice(1))].apply(re,M),Pe!==void 0?Pe:Te},O.prototype.bind=function(v,I){var M=this,B=M.$el,re=M.ctx.opts;B&&(v&&ue(B,Re,this.handleClick,!1),I&&ue(B,Ye,this.handleStop,re?re.cancellable:!0))},O.prototype.unbind=function(v,I){var M=this,B=M.$el,re=M.ctx.opts;B&&(v&&w(B,Re,this.handleClick,!1),I&&w(B,Ye,this.handleStop,re?re.cancellable:!0))},O.raf=u,O.caf=f,O})();return Kt})});var Xb={};se(Xb,{setup:()=>az,staticStyles:()=>oz,styles:()=>sz});var kl={};se(kl,{DeesComms:()=>gg});var jc={};var jt={};se(jt,{TYPED_REQUEST_REDACTED_PAYLOAD:()=>Rs,TypedHandler:()=>ag,TypedRequest:()=>zp,TypedRequestRetryLimitError:()=>Up,TypedRequestTimeoutError:()=>jp,TypedResponseError:()=>dr,TypedRouter:()=>lg,TypedTarget:()=>cg,VirtualStream:()=>Pr,VirtualStreamActivationScope:()=>On,VirtualStreamClosedError:()=>ao,VirtualStreamLifecycleContractError:()=>Np,VirtualStreamOpenTimeoutError:()=>lo,getTypedRequestResponseInterestKey:()=>Ap});var hr={};se(hr,{AsyncExecutionStack:()=>Md,BackpressuredArray:()=>Nd,FastMap:()=>eo,Interest:()=>il,InterestMap:()=>Pd,LimitedArray:()=>Ld,LoopTracker:()=>_d,ObjectMap:()=>Tn,Stringmap:()=>ol,TimedAggregator:()=>sl,TimedAggregtor:()=>sl,Tree:()=>Rd,uni:()=>rk});var Pa={};se(Pa,{SmartMatch:()=>$m});var Na={};se(Na,{isMatch:()=>tI,matcher:()=>eI});function Bi(t){if(typeof t!="string")throw new TypeError("Expected a string");return t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}o(Bi,"escapeStringRegexp");var Am=new Map,ow=o((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(r=>{if(typeof r!="string"){if(typeof r>"u")return!1;throw new TypeError(`Expected '${e}' to be an array of strings, but found a type of '${typeof r}' in the array`)}return!0})},"sanitizeArray"),ZO=o((t,e)=>{e={caseSensitive:!1,...e};let r=t+JSON.stringify(e);if(Am.has(r))return Am.get(r);let n=t[0]==="!";n&&(t=t.slice(1)),t=Bi(t).replace(/\\\*/g,"[\\s\\S]*");let i=new RegExp(`^${t}$`,e.caseSensitive?"":"i");return i.negated=n,Am.set(r,i),i},"makeRegexp"),sw=o((t,e,r,n)=>{if(t=ow(t,"inputs"),e=ow(e,"patterns"),e.length===0)return[];e=e.map(a=>ZO(a,r));let{allPatterns:i}=r||{},s=[];for(let a of t){let l,c=[...e].fill(!1);for(let[u,f]of e.entries())if(f.test(a)&&(c[u]=!0,l=!f.negated,!l))break;if(!(l===!1||l===void 0&&e.some(u=>!u.negated)||i&&c.some((u,f)=>!u&&!e[f].negated))&&(s.push(a),n))break}return s},"baseMatcher");function eI(t,e,r){return sw(t,e,r,!1)}o(eI,"matcher");function tI(t,e,r){return sw(t,e,r,!0).length>0}o(tI,"isMatch");var $m=class{static{o(this,"SmartMatch")}constructor(e){this.wildcard=e}match(e){return Na.isMatch(e,this.wildcard)}};var Q={};se(Q,{CumulativeDeferred:()=>zc,Deferred:()=>Uc,Timeout:()=>La,cumulativeDefer:()=>iI,defer:()=>Yn,delayFor:()=>cw,delayForRandom:()=>cI,fromCallback:()=>fI,getFirstTrueOrFalse:()=>uI,map:()=>aI,rejectedPromise:()=>sI,resolvedPromise:()=>oI,timeoutAndContinue:()=>lI,timeoutWrap:()=>lw});var Uc=class{static{o(this,"Deferred")}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,r)=>{this.resolve=n=>{this.status="fulfilled",this.stoppedAt=Date.now(),e(n)},this.reject=n=>{this.status="rejected",this.stoppedAt=Date.now(),r(n)},this.startedAt=Date.now(),this.status="pending"})}},Yn=o(()=>new Uc,"defer");var nI=2147483647,aw=o(t=>{t.unref?.()},"unrefTimer"),La=class{static{o(this,"Timeout")}constructor(e,r,n=!1){this.unrefed=!1,this.state="running",this.timeLeftAtCancel=0,this.passOn=r,this.deferred=Yn(),this.promise=this.deferred.promise,this.deadline=performance.now()+e,this.timer=this.startChunk(e),n&&this.makeUnrefed()}startChunk(e){let r=Math.min(e,nI),n=setTimeout(()=>{if(this.state!=="running")return;let i=e-r;i>0?this.timer=this.startChunk(i):(this.state="completed",this.deferred.resolve(this.passOn))},r);return this.unrefed&&aw(n),n}makeUnrefed(){this.unrefed=!0,aw(this.timer)}cancel(){this.state==="running"&&(this.timeLeftAtCancel=this.getTimeLeft(),this.state="cancelled",clearTimeout(this.timer))}getTimeLeft(){if(this.state==="completed")return 0;if(this.state==="cancelled")return this.timeLeftAtCancel;let e=Math.ceil(this.deadline-performance.now());return e>0?e:0}};var zc=class{static{o(this,"CumulativeDeferred")}constructor(){this.accumulatedPromises=[],this.deferred=Yn(),this.promise=this.deferred.promise,setTimeout(async()=>{for(;this.accumulatedPromises.length>0;)await this.accumulatedPromises.shift();this.deferred.resolve()},0)}subDefer(){let e=Yn();return this.addPromise(e.promise),e}addPromise(e){this.accumulatedPromises.push(e)}},iI=o(()=>new zc,"cumulativeDefer");function oI(t){return Promise.resolve(t)}o(oI,"resolvedPromise");var sI=o(t=>Promise.reject(t),"rejectedPromise"),aI=o(async(t,e)=>Promise.all(t.map(e)),"map"),lw=o(async(t,e,r=!0)=>new Promise((n,i)=>{let s,a=o(()=>{s!==void 0&&(clearTimeout(s),s=void 0)},"releaseTimeout");s=setTimeout(()=>{s=void 0,r?i(new Error("timeout")):n(null)},e),t.then(l=>{a(),n(l)},l=>{a(),i(l)})}),"timeoutWrap"),lI=o(async(t,e=6e4)=>lw(t,e,!1),"timeoutAndContinue"),cw=o(async(t,e,r=!1)=>(await new La(t,void 0,r).promise,e),"delayFor"),cI=o(async(t,e,r,n=!1)=>(await cw(Math.random()*(e-t)+t,void 0,n),r),"delayForRandom"),uI=o(async t=>{let e=Yn();for(let r of t)r.then(n=>{n===!0&&e.resolve(!0)});return Promise.all(t).then(()=>{e.resolve(!1)}),e.promise},"getFirstTrueOrFalse"),fI=o(t=>new Promise((e,r)=>{t((n,i)=>{n?r(n):e(i)})}),"fromCallback");var Ie={};se(Ie,{ObservableIntake:()=>cd,Observablemap:()=>ld,fromStreamWithBackpressure:()=>YN,rxjs:()=>ns});var ns={};se(ns,{Observable:()=>we,ReplaySubject:()=>Jo,Subject:()=>$t,Subscription:()=>At,from:()=>Jr,fromEvent:()=>Wi,of:()=>Ba,ops:()=>qN});var Bm=o(function(t,e){return Bm=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},Bm(t,e)},"extendStatics");function Xe(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");Bm(t,e);function r(){this.constructor=t}o(r,"__"),t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}o(Xe,"__extends");var jm=o(function(){return jm=Object.assign||o(function(e){for(var r,n=1,i=arguments.length;n<i;n++){r=arguments[n];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(e[s]=r[s])}return e},"__assign"),jm.apply(this,arguments)},"__assign");function hI(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(t);i<n.length;i++)e.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(t,n[i])&&(r[n[i]]=t[n[i]]);return r}o(hI,"__rest");function mI(t,e,r,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,n);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(i<3?a(s):i>3?a(e,r,s):a(e,r))||s);return i>3&&s&&Object.defineProperty(e,r,s),s}o(mI,"__decorate");function dI(t,e){return function(r,n){e(r,n,t)}}o(dI,"__param");function gI(t,e,r,n,i,s){function a(x){if(x!==void 0&&typeof x!="function")throw new TypeError("Function expected");return x}o(a,"accept");for(var l=n.kind,c=l==="getter"?"get":l==="setter"?"set":"value",u=!e&&t?n.static?t:t.prototype:null,f=e||(u?Object.getOwnPropertyDescriptor(u,n.name):{}),p,h=!1,m=r.length-1;m>=0;m--){var d={};for(var g in n)d[g]=g==="access"?{}:n[g];for(var g in n.access)d.access[g]=n.access[g];d.addInitializer=function(x){if(h)throw new TypeError("Cannot add initializers after decoration has completed");s.push(a(x||null))};var y=(0,r[m])(l==="accessor"?{get:f.get,set:f.set}:f[c],d);if(l==="accessor"){if(y===void 0)continue;if(y===null||typeof y!="object")throw new TypeError("Object expected");(p=a(y.get))&&(f.get=p),(p=a(y.set))&&(f.set=p),(p=a(y.init))&&i.unshift(p)}else(p=a(y))&&(l==="field"?i.unshift(p):f[c]=p)}u&&Object.defineProperty(u,n.name,f),h=!0}o(gI,"__esDecorate");function yI(t,e,r){for(var n=arguments.length>2,i=0;i<e.length;i++)r=n?e[i].call(t,r):e[i].call(t);return n?r:void 0}o(yI,"__runInitializers");function xI(t){return typeof t=="symbol"?t:"".concat(t)}o(xI,"__propKey");function bI(t,e,r){return typeof e=="symbol"&&(e=e.description?"[".concat(e.description,"]"):""),Object.defineProperty(t,"name",{configurable:!0,value:r?"".concat(r," ",e):e})}o(bI,"__setFunctionName");function wI(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}o(wI,"__metadata");function Hm(t,e,r,n){function i(s){return s instanceof r?s:new r(function(a){a(s)})}return o(i,"adopt"),new(r||(r=Promise))(function(s,a){function l(f){try{u(n.next(f))}catch(p){a(p)}}o(l,"fulfilled");function c(f){try{u(n.throw(f))}catch(p){a(p)}}o(c,"rejected");function u(f){f.done?s(f.value):i(f.value).then(l,c)}o(u,"step"),u((n=n.apply(t,e||[])).next())})}o(Hm,"__awaiter");function _a(t,e){var r={label:0,sent:o(function(){if(s[0]&1)throw s[1];return s[1]},"sent"),trys:[],ops:[]},n,i,s,a=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return a.next=l(0),a.throw=l(1),a.return=l(2),typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function l(u){return function(f){return c([u,f])}}function c(u){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,u[0]&&(r=0)),r;)try{if(n=1,i&&(s=u[0]&2?i.return:u[0]?i.throw||((s=i.return)&&s.call(i),0):i.next)&&!(s=s.call(i,u[1])).done)return s;switch(i=0,s&&(u=[u[0]&2,s.value]),u[0]){case 0:case 1:s=u;break;case 4:return r.label++,{value:u[1],done:!1};case 5:r.label++,i=u[1],u=[0];continue;case 7:u=r.ops.pop(),r.trys.pop();continue;default:if(s=r.trys,!(s=s.length>0&&s[s.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!s||u[1]>s[0]&&u[1]<s[3])){r.label=u[1];break}if(u[0]===6&&r.label<s[1]){r.label=s[1],s=u;break}if(s&&r.label<s[2]){r.label=s[2],r.ops.push(u);break}s[2]&&r.ops.pop(),r.trys.pop();continue}u=e.call(t,r)}catch(f){u=[6,f],i=0}finally{n=s=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}o(_a,"__generator");var Um=Object.create?(function(t,e,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,n,i)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]});function SI(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&Um(e,t,r)}o(SI,"__exportStar");function dt(t){var e=typeof Symbol=="function"&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&typeof t.length=="number")return{next:o(function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}},"next")};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}o(dt,"__values");function ct(t,e){var r=typeof Symbol=="function"&&t[Symbol.iterator];if(!r)return t;var n=r.call(t),i,s=[],a;try{for(;(e===void 0||e-- >0)&&!(i=n.next()).done;)s.push(i.value)}catch(l){a={error:l}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(a)throw a.error}}return s}o(ct,"__read");function vI(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(ct(arguments[e]));return t}o(vI,"__spread");function kI(){for(var t=0,e=0,r=arguments.length;e<r;e++)t+=arguments[e].length;for(var n=Array(t),i=0,e=0;e<r;e++)for(var s=arguments[e],a=0,l=s.length;a<l;a++,i++)n[i]=s[a];return n}o(kI,"__spreadArrays");function Ft(t,e,r){if(r||arguments.length===2)for(var n=0,i=e.length,s;n<i;n++)(s||!(n in e))&&(s||(s=Array.prototype.slice.call(e,0,n)),s[n]=e[n]);return t.concat(s||Array.prototype.slice.call(e))}o(Ft,"__spreadArray");function kn(t){return this instanceof kn?(this.v=t,this):new kn(t)}o(kn,"__await");function Wm(t,e,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=r.apply(t,e||[]),i,s=[];return i=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),l("next"),l("throw"),l("return",a),i[Symbol.asyncIterator]=function(){return this},i;function a(m){return function(d){return Promise.resolve(d).then(m,p)}}function l(m,d){n[m]&&(i[m]=function(g){return new Promise(function(y,x){s.push([m,g,y,x])>1||c(m,g)})},d&&(i[m]=d(i[m])))}function c(m,d){try{u(n[m](d))}catch(g){h(s[0][3],g)}}function u(m){m.value instanceof kn?Promise.resolve(m.value.v).then(f,p):h(s[0][2],m)}function f(m){c("next",m)}function p(m){c("throw",m)}function h(m,d){m(d),s.shift(),s.length&&c(s[0][0],s[0][1])}}o(Wm,"__asyncGenerator");function TI(t){var e,r;return e={},n("next"),n("throw",function(i){throw i}),n("return"),e[Symbol.iterator]=function(){return this},e;function n(i,s){e[i]=t[i]?function(a){return(r=!r)?{value:kn(t[i](a)),done:!1}:s?s(a):a}:s}}o(TI,"__asyncDelegator");function qm(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],r;return e?e.call(t):(t=typeof dt=="function"?dt(t):t[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(s){r[s]=t[s]&&function(a){return new Promise(function(l,c){a=t[s](a),i(l,c,a.done,a.value)})}}function i(s,a,l,c){Promise.resolve(c).then(function(u){s({value:u,done:l})},a)}}o(qm,"__asyncValues");function EI(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t}o(EI,"__makeTemplateObject");var DI=Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e},zm=o(function(t){return zm=Object.getOwnPropertyNames||function(e){var r=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(r[r.length]=n);return r},zm(t)},"ownKeys");function CI(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r=zm(t),n=0;n<r.length;n++)r[n]!=="default"&&Um(e,t,r[n]);return DI(e,t),e}o(CI,"__importStar");function OI(t){return t&&t.__esModule?t:{default:t}}o(OI,"__importDefault");function II(t,e,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(t):n?n.value:e.get(t)}o(II,"__classPrivateFieldGet");function MI(t,e,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(t,r):i?i.value=r:e.set(t,r),r}o(MI,"__classPrivateFieldSet");function NI(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)}o(NI,"__classPrivateFieldIn");function PI(t,e,r){if(e!=null){if(typeof e!="object"&&typeof e!="function")throw new TypeError("Object expected.");var n,i;if(r){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");n=e[Symbol.asyncDispose]}if(n===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");n=e[Symbol.dispose],r&&(i=n)}if(typeof n!="function")throw new TypeError("Object not disposable.");i&&(n=o(function(){try{i.call(this)}catch(s){return Promise.reject(s)}},"dispose")),t.stack.push({value:e,dispose:n,async:r})}else r&&t.stack.push({async:!0});return e}o(PI,"__addDisposableResource");var LI=typeof SuppressedError=="function"?SuppressedError:function(t,e,r){var n=new Error(r);return n.name="SuppressedError",n.error=t,n.suppressed=e,n};function _I(t){function e(s){t.error=t.hasError?new LI(s,t.error,"An error was suppressed during disposal."):s,t.hasError=!0}o(e,"fail");var r,n=0;function i(){for(;r=t.stack.pop();)try{if(!r.async&&n===1)return n=0,t.stack.push(r),Promise.resolve().then(i);if(r.dispose){var s=r.dispose.call(r.value);if(r.async)return n|=2,Promise.resolve(s).then(i,function(a){return e(a),i()})}else n|=1}catch(a){e(a)}if(n===1)return t.hasError?Promise.reject(t.error):Promise.resolve();if(t.hasError)throw t.error}return o(i,"next"),i()}o(_I,"__disposeResources");function RI(t,e){return typeof t=="string"&&/^\.\.?\//.test(t)?t.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i,function(r,n,i,s,a){return n?e?".jsx":".js":i&&(!s||!a)?r:i+s+"."+a.toLowerCase()+"js"}):t}o(RI,"__rewriteRelativeImportExtension");var Pz={__extends:Xe,__assign:jm,__rest:hI,__decorate:mI,__param:dI,__esDecorate:gI,__runInitializers:yI,__propKey:xI,__setFunctionName:bI,__metadata:wI,__awaiter:Hm,__generator:_a,__createBinding:Um,__exportStar:SI,__values:dt,__read:ct,__spread:vI,__spreadArrays:kI,__spreadArray:Ft,__await:kn,__asyncGenerator:Wm,__asyncDelegator:TI,__asyncValues:qm,__makeTemplateObject:EI,__importStar:CI,__importDefault:OI,__classPrivateFieldGet:II,__classPrivateFieldSet:MI,__classPrivateFieldIn:NI,__addDisposableResource:PI,__disposeResources:_I,__rewriteRelativeImportExtension:RI};function pe(t){return typeof t=="function"}o(pe,"isFunction");function Hc(t){var e=o(function(n){Error.call(n),n.stack=new Error().stack},"_super"),r=t(e);return r.prototype=Object.create(Error.prototype),r.prototype.constructor=r,r}o(Hc,"createErrorClass");var Ra=Hc(function(t){return o(function(r){t(this),this.message=r?r.length+` errors occurred during unsubscription:
|
|
2
2
|
`+r.map(function(n,i){return i+1+") "+n.toString()}).join(`
|
|
3
|
-
`):"",this.name="UnsubscriptionError",this.errors=r},"UnsubscriptionErrorImpl")});function Or(t,e){if(t){var r=t.indexOf(e);0<=r&&t.splice(r,1)}}o(Or,"arrRemove");var At=(function(){function t(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}return o(t,"Subscription"),t.prototype.unsubscribe=function(){var e,r,n,i,s;if(!this.closed){this.closed=!0;var a=this._parentage;if(a)if(this._parentage=null,Array.isArray(a))try{for(var l=dt(a),c=l.next();!c.done;c=l.next()){var u=c.value;u.remove(this)}}catch(g){e={error:g}}finally{try{c&&!c.done&&(r=l.return)&&r.call(l)}finally{if(e)throw e.error}}else a.remove(this);var f=this.initialTeardown;if(pe(f))try{f()}catch(g){s=g instanceof Ra?g.errors:[g]}var p=this._finalizers;if(p){this._finalizers=null;try{for(var h=dt(p),m=h.next();!m.done;m=h.next()){var d=m.value;try{uw(d)}catch(g){s=s??[],g instanceof Ra?s=Ft(Ft([],ct(s)),ct(g.errors)):s.push(g)}}}catch(g){n={error:g}}finally{try{m&&!m.done&&(i=h.return)&&i.call(h)}finally{if(n)throw n.error}}}if(s)throw new Ra(s)}},t.prototype.add=function(e){var r;if(e&&e!==this)if(this.closed)uw(e);else{if(e instanceof t){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=(r=this._finalizers)!==null&&r!==void 0?r:[]).push(e)}},t.prototype._hasParent=function(e){var r=this._parentage;return r===e||Array.isArray(r)&&r.includes(e)},t.prototype._addParent=function(e){var r=this._parentage;this._parentage=Array.isArray(r)?(r.push(e),r):r?[r,e]:e},t.prototype._removeParent=function(e){var r=this._parentage;r===e?this._parentage=null:Array.isArray(r)&&Or(r,e)},t.prototype.remove=function(e){var r=this._finalizers;r&&Or(r,e),e instanceof t&&e._removeParent(this)},t.EMPTY=(function(){var e=new t;return e.closed=!0,e})(),t})(),Ym=At.EMPTY;function Wc(t){return t instanceof At||t&&"closed"in t&&pe(t.remove)&&pe(t.add)&&pe(t.unsubscribe)}o(Wc,"isSubscription");function uw(t){pe(t)?t():t.unsubscribe()}o(uw,"execFinalizer");var cr={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var Ko={setTimeout:o(function(t,e){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var i=Ko.delegate;return i?.setTimeout?i.setTimeout.apply(i,Ft([t,e],ct(r))):setTimeout.apply(void 0,Ft([t,e],ct(r)))},"setTimeout"),clearTimeout:o(function(t){var e=Ko.delegate;return(e?.clearTimeout||clearTimeout)(t)},"clearTimeout"),delegate:void 0};function qc(t){Ko.setTimeout(function(){var e=cr.onUnhandledError;if(e)e(t);else throw t})}o(qc,"reportUnhandledError");function Vr(){}o(Vr,"noop");var fw=(function(){return Vm("C",void 0,void 0)})();function pw(t){return Vm("E",void 0,t)}o(pw,"errorNotification");function hw(t){return Vm("N",t,void 0)}o(hw,"nextNotification");function Vm(t,e,r){return{kind:t,value:e,error:r}}o(Vm,"createNotification");var ji=null;function Go(t){if(cr.useDeprecatedSynchronousErrorHandling){var e=!ji;if(e&&(ji={errorThrown:!1,error:null}),t(),e){var r=ji,n=r.errorThrown,i=r.error;if(ji=null,n)throw i}}else t()}o(Go,"errorContext");function mw(t){cr.useDeprecatedSynchronousErrorHandling&&ji&&(ji.errorThrown=!0,ji.error=t)}o(mw,"captureError");var Ui=(function(t){Xe(e,t);function e(r){var n=t.call(this)||this;return n.isStopped=!1,r?(n.destination=r,Wc(r)&&r.add(n)):n.destination=BI,n}return o(e,"Subscriber"),e.create=function(r,n,i){return new Vn(r,n,i)},e.prototype.next=function(r){this.isStopped?Gm(hw(r),this):this._next(r)},e.prototype.error=function(r){this.isStopped?Gm(pw(r),this):(this.isStopped=!0,this._error(r))},e.prototype.complete=function(){this.isStopped?Gm(fw,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(r){this.destination.next(r)},e.prototype._error=function(r){try{this.destination.error(r)}finally{this.unsubscribe()}},e.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},e})(At),FI=Function.prototype.bind;function Km(t,e){return FI.call(t,e)}o(Km,"bind");var AI=(function(){function t(e){this.partialObserver=e}return o(t,"ConsumerObserver"),t.prototype.next=function(e){var r=this.partialObserver;if(r.next)try{r.next(e)}catch(n){Yc(n)}},t.prototype.error=function(e){var r=this.partialObserver;if(r.error)try{r.error(e)}catch(n){Yc(n)}else Yc(e)},t.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(r){Yc(r)}},t})(),Vn=(function(t){Xe(e,t);function e(r,n,i){var s=t.call(this)||this,a;if(pe(r)||!r)a={next:r??void 0,error:n??void 0,complete:i??void 0};else{var l;s&&cr.useDeprecatedNextContext?(l=Object.create(r),l.unsubscribe=function(){return s.unsubscribe()},a={next:r.next&&Km(r.next,l),error:r.error&&Km(r.error,l),complete:r.complete&&Km(r.complete,l)}):a=r}return s.destination=new AI(a),s}return o(e,"SafeSubscriber"),e})(Ui);function Yc(t){cr.useDeprecatedSynchronousErrorHandling?mw(t):qc(t)}o(Yc,"handleUnhandledError");function $I(t){throw t}o($I,"defaultErrorHandler");function Gm(t,e){var r=cr.onStoppedNotification;r&&Ko.setTimeout(function(){return r(t,e)})}o(Gm,"handleStoppedNotification");var BI={closed:!0,next:Vr,error:$I,complete:Vr};var zi=(function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"})();function Kr(t){return t}o(Kr,"identity");function jI(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return Qm(t)}o(jI,"pipe");function Qm(t){return t.length===0?Kr:t.length===1?t[0]:o(function(r){return t.reduce(function(n,i){return i(n)},r)},"piped")}o(Qm,"pipeFromArray");var we=(function(){function t(e){e&&(this._subscribe=e)}return o(t,"Observable"),t.prototype.lift=function(e){var r=new t;return r.source=this,r.operator=e,r},t.prototype.subscribe=function(e,r,n){var i=this,s=zI(e)?e:new Vn(e,r,n);return Go(function(){var a=i,l=a.operator,c=a.source;s.add(l?l.call(s,c):c?i._subscribe(s):i._trySubscribe(s))}),s},t.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(r){e.error(r)}},t.prototype.forEach=function(e,r){var n=this;return r=dw(r),new r(function(i,s){var a=new Vn({next:o(function(l){try{e(l)}catch(c){s(c),a.unsubscribe()}},"next"),error:s,complete:i});n.subscribe(a)})},t.prototype._subscribe=function(e){var r;return(r=this.source)===null||r===void 0?void 0:r.subscribe(e)},t.prototype[zi]=function(){return this},t.prototype.pipe=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return Qm(e)(this)},t.prototype.toPromise=function(e){var r=this;return e=dw(e),new e(function(n,i){var s;r.subscribe(function(a){return s=a},function(a){return i(a)},function(){return n(s)})})},t.create=function(e){return new t(e)},t})();function dw(t){var e;return(e=t??cr.Promise)!==null&&e!==void 0?e:Promise}o(dw,"getPromiseCtor");function UI(t){return t&&pe(t.next)&&pe(t.error)&&pe(t.complete)}o(UI,"isObserver");function zI(t){return t&&t instanceof Ui||UI(t)&&Wc(t)}o(zI,"isSubscriber");function HI(t){return pe(t?.lift)}o(HI,"hasLift");function De(t){return function(e){if(HI(e))return e.lift(function(r){try{return t(r,this)}catch(n){this.error(n)}});throw new TypeError("Unable to lift unknown Observable type")}}o(De,"operate");function Ce(t,e,r,n,i){return new gw(t,e,r,n,i)}o(Ce,"createOperatorSubscriber");var gw=(function(t){Xe(e,t);function e(r,n,i,s,a,l){var c=t.call(this,r)||this;return c.onFinalize=a,c.shouldUnsubscribe=l,c._next=n?function(u){try{n(u)}catch(f){r.error(f)}}:t.prototype._next,c._error=s?function(u){try{s(u)}catch(f){r.error(f)}finally{this.unsubscribe()}}:t.prototype._error,c._complete=i?function(){try{i()}catch(u){r.error(u)}finally{this.unsubscribe()}}:t.prototype._complete,c}return o(e,"OperatorSubscriber"),e.prototype.unsubscribe=function(){var r;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var n=this.closed;t.prototype.unsubscribe.call(this),!n&&((r=this.onFinalize)===null||r===void 0||r.call(this))}},e})(Ui);var Jm=Hc(function(t){return o(function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"},"ObjectUnsubscribedErrorImpl")});var $t=(function(t){Xe(e,t);function e(){var r=t.call(this)||this;return r.closed=!1,r.currentObservers=null,r.observers=[],r.isStopped=!1,r.hasError=!1,r.thrownError=null,r}return o(e,"Subject"),e.prototype.lift=function(r){var n=new Xm(this,this);return n.operator=r,n},e.prototype._throwIfClosed=function(){if(this.closed)throw new Jm},e.prototype.next=function(r){var n=this;Go(function(){var i,s;if(n._throwIfClosed(),!n.isStopped){n.currentObservers||(n.currentObservers=Array.from(n.observers));try{for(var a=dt(n.currentObservers),l=a.next();!l.done;l=a.next()){var c=l.value;c.next(r)}}catch(u){i={error:u}}finally{try{l&&!l.done&&(s=a.return)&&s.call(a)}finally{if(i)throw i.error}}}})},e.prototype.error=function(r){var n=this;Go(function(){if(n._throwIfClosed(),!n.isStopped){n.hasError=n.isStopped=!0,n.thrownError=r;for(var i=n.observers;i.length;)i.shift().error(r)}})},e.prototype.complete=function(){var r=this;Go(function(){if(r._throwIfClosed(),!r.isStopped){r.isStopped=!0;for(var n=r.observers;n.length;)n.shift().complete()}})},e.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(e.prototype,"observed",{get:o(function(){var r;return((r=this.observers)===null||r===void 0?void 0:r.length)>0},"get"),enumerable:!1,configurable:!0}),e.prototype._trySubscribe=function(r){return this._throwIfClosed(),t.prototype._trySubscribe.call(this,r)},e.prototype._subscribe=function(r){return this._throwIfClosed(),this._checkFinalizedStatuses(r),this._innerSubscribe(r)},e.prototype._innerSubscribe=function(r){var n=this,i=this,s=i.hasError,a=i.isStopped,l=i.observers;return s||a?Ym:(this.currentObservers=null,l.push(r),new At(function(){n.currentObservers=null,Or(l,r)}))},e.prototype._checkFinalizedStatuses=function(r){var n=this,i=n.hasError,s=n.thrownError,a=n.isStopped;i?r.error(s):a&&r.complete()},e.prototype.asObservable=function(){var r=new we;return r.source=this,r},e.create=function(r,n){return new Xm(r,n)},e})(we),Xm=(function(t){Xe(e,t);function e(r,n){var i=t.call(this)||this;return i.destination=r,i.source=n,i}return o(e,"AnonymousSubject"),e.prototype.next=function(r){var n,i;(i=(n=this.destination)===null||n===void 0?void 0:n.next)===null||i===void 0||i.call(n,r)},e.prototype.error=function(r){var n,i;(i=(n=this.destination)===null||n===void 0?void 0:n.error)===null||i===void 0||i.call(n,r)},e.prototype.complete=function(){var r,n;(n=(r=this.destination)===null||r===void 0?void 0:r.complete)===null||n===void 0||n.call(r)},e.prototype._subscribe=function(r){var n,i;return(i=(n=this.source)===null||n===void 0?void 0:n.subscribe(r))!==null&&i!==void 0?i:Ym},e})($t);var Qo=(function(t){Xe(e,t);function e(r){var n=t.call(this)||this;return n._value=r,n}return o(e,"BehaviorSubject"),Object.defineProperty(e.prototype,"value",{get:o(function(){return this.getValue()},"get"),enumerable:!1,configurable:!0}),e.prototype._subscribe=function(r){var n=t.prototype._subscribe.call(this,r);return!n.closed&&r.next(this._value),n},e.prototype.getValue=function(){var r=this,n=r.hasError,i=r.thrownError,s=r._value;if(n)throw i;return this._throwIfClosed(),s},e.prototype.next=function(r){t.prototype.next.call(this,this._value=r)},e})($t);var Fa={now:o(function(){return(Fa.delegate||Date).now()},"now"),delegate:void 0};var Jo=(function(t){Xe(e,t);function e(r,n,i){r===void 0&&(r=1/0),n===void 0&&(n=1/0),i===void 0&&(i=Fa);var s=t.call(this)||this;return s._bufferSize=r,s._windowTime=n,s._timestampProvider=i,s._buffer=[],s._infiniteTimeWindow=!0,s._infiniteTimeWindow=n===1/0,s._bufferSize=Math.max(1,r),s._windowTime=Math.max(1,n),s}return o(e,"ReplaySubject"),e.prototype.next=function(r){var n=this,i=n.isStopped,s=n._buffer,a=n._infiniteTimeWindow,l=n._timestampProvider,c=n._windowTime;i||(s.push(r),!a&&s.push(l.now()+c)),this._trimBuffer(),t.prototype.next.call(this,r)},e.prototype._subscribe=function(r){this._throwIfClosed(),this._trimBuffer();for(var n=this._innerSubscribe(r),i=this,s=i._infiniteTimeWindow,a=i._buffer,l=a.slice(),c=0;c<l.length&&!r.closed;c+=s?1:2)r.next(l[c]);return this._checkFinalizedStatuses(r),n},e.prototype._trimBuffer=function(){var r=this,n=r._bufferSize,i=r._timestampProvider,s=r._buffer,a=r._infiniteTimeWindow,l=(a?1:2)*n;if(n<1/0&&l<s.length&&s.splice(0,s.length-l),!a){for(var c=i.now(),u=0,f=1;f<s.length&&s[f]<=c;f+=2)u=f;u&&s.splice(0,u+1)}},e})($t);var Zm=(function(t){Xe(e,t);function e(r,n){return t.call(this)||this}return o(e,"Action"),e.prototype.schedule=function(r,n){return n===void 0&&(n=0),this},e})(At);var Aa={setInterval:o(function(t,e){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var i=Aa.delegate;return i?.setInterval?i.setInterval.apply(i,Ft([t,e],ct(r))):setInterval.apply(void 0,Ft([t,e],ct(r)))},"setInterval"),clearInterval:o(function(t){var e=Aa.delegate;return(e?.clearInterval||clearInterval)(t)},"clearInterval"),delegate:void 0};var ed=(function(t){Xe(e,t);function e(r,n){var i=t.call(this,r,n)||this;return i.scheduler=r,i.work=n,i.pending=!1,i}return o(e,"AsyncAction"),e.prototype.schedule=function(r,n){var i;if(n===void 0&&(n=0),this.closed)return this;this.state=r;var s=this.id,a=this.scheduler;return s!=null&&(this.id=this.recycleAsyncId(a,s,n)),this.pending=!0,this.delay=n,this.id=(i=this.id)!==null&&i!==void 0?i:this.requestAsyncId(a,this.id,n),this},e.prototype.requestAsyncId=function(r,n,i){return i===void 0&&(i=0),Aa.setInterval(r.flush.bind(r,this),i)},e.prototype.recycleAsyncId=function(r,n,i){if(i===void 0&&(i=0),i!=null&&this.delay===i&&this.pending===!1)return n;n!=null&&Aa.clearInterval(n)},e.prototype.execute=function(r,n){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var i=this._execute(r,n);if(i)return i;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},e.prototype._execute=function(r,n){var i=!1,s;try{this.work(r)}catch(a){i=!0,s=a||new Error("Scheduled action threw falsy error")}if(i)return this.unsubscribe(),s},e.prototype.unsubscribe=function(){if(!this.closed){var r=this,n=r.id,i=r.scheduler,s=i.actions;this.work=this.state=this.scheduler=null,this.pending=!1,Or(s,this),n!=null&&(this.id=this.recycleAsyncId(i,n,null)),this.delay=null,t.prototype.unsubscribe.call(this)}},e})(Zm);var $a=(function(){function t(e,r){r===void 0&&(r=t.now),this.schedulerActionCtor=e,this.now=r}return o(t,"Scheduler"),t.prototype.schedule=function(e,r,n){return r===void 0&&(r=0),new this.schedulerActionCtor(this,e).schedule(n,r)},t.now=Fa.now,t})();var td=(function(t){Xe(e,t);function e(r,n){n===void 0&&(n=$a.now);var i=t.call(this,r,n)||this;return i.actions=[],i._active=!1,i}return o(e,"AsyncScheduler"),e.prototype.flush=function(r){var n=this.actions;if(this._active){n.push(r);return}var i;this._active=!0;do if(i=r.execute(r.state,r.delay))break;while(r=n.shift());if(this._active=!1,i){for(;r=n.shift();)r.unsubscribe();throw i}},e})($a);var Gr=new td(ed),rd=Gr;function Vc(t){return t&&pe(t.schedule)}o(Vc,"isScheduler");function nd(t){return t[t.length-1]}o(nd,"last");function yw(t){return pe(nd(t))?t.pop():void 0}o(yw,"popResultSelector");function Qr(t){return Vc(nd(t))?t.pop():void 0}o(Qr,"popScheduler");function jH(t,e){return typeof nd(t)=="number"?t.pop():e}o(jH,"popNumber");var Xo=o((function(t){return t&&typeof t.length=="number"&&typeof t!="function"}),"isArrayLike");function Kc(t){return pe(t?.then)}o(Kc,"isPromise");function Gc(t){return pe(t[zi])}o(Gc,"isInteropObservable");function Qc(t){return Symbol.asyncIterator&&pe(t?.[Symbol.asyncIterator])}o(Qc,"isAsyncIterable");function Jc(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.")}o(Jc,"createInvalidObservableTypeError");function WI(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}o(WI,"getSymbolIterator");var Xc=WI();function Zc(t){return pe(t?.[Xc])}o(Zc,"isIterable");function eu(t){return Wm(this,arguments,o(function(){var r,n,i,s;return _a(this,function(a){switch(a.label){case 0:r=t.getReader(),a.label=1;case 1:a.trys.push([1,,9,10]),a.label=2;case 2:return[4,kn(r.read())];case 3:return n=a.sent(),i=n.value,s=n.done,s?[4,kn(void 0)]:[3,5];case 4:return[2,a.sent()];case 5:return[4,kn(i)];case 6:return[4,a.sent()];case 7:return a.sent(),[3,2];case 8:return[3,10];case 9:return r.releaseLock(),[7];case 10:return[2]}})},"readableStreamLikeToAsyncGenerator_1"))}o(eu,"readableStreamLikeToAsyncGenerator");function tu(t){return pe(t?.getReader)}o(tu,"isReadableStreamLike");function Be(t){if(t instanceof we)return t;if(t!=null){if(Gc(t))return qI(t);if(Xo(t))return YI(t);if(Kc(t))return VI(t);if(Qc(t))return xw(t);if(Zc(t))return KI(t);if(tu(t))return GI(t)}throw Jc(t)}o(Be,"innerFrom");function qI(t){return new we(function(e){var r=t[zi]();if(pe(r.subscribe))return r.subscribe(e);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}o(qI,"fromInteropObservable");function YI(t){return new we(function(e){for(var r=0;r<t.length&&!e.closed;r++)e.next(t[r]);e.complete()})}o(YI,"fromArrayLike");function VI(t){return new we(function(e){t.then(function(r){e.closed||(e.next(r),e.complete())},function(r){return e.error(r)}).then(null,qc)})}o(VI,"fromPromise");function KI(t){return new we(function(e){var r,n;try{for(var i=dt(t),s=i.next();!s.done;s=i.next()){var a=s.value;if(e.next(a),e.closed)return}}catch(l){r={error:l}}finally{try{s&&!s.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}e.complete()})}o(KI,"fromIterable");function xw(t){return new we(function(e){QI(t,e).catch(function(r){return e.error(r)})})}o(xw,"fromAsyncIterable");function GI(t){return xw(eu(t))}o(GI,"fromReadableStreamLike");function QI(t,e){var r,n,i,s;return Hm(this,void 0,void 0,function(){var a,l;return _a(this,function(c){switch(c.label){case 0:c.trys.push([0,5,6,11]),r=qm(t),c.label=1;case 1:return[4,r.next()];case 2:if(n=c.sent(),!!n.done)return[3,4];if(a=n.value,e.next(a),e.closed)return[2];c.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return l=c.sent(),i={error:l},[3,11];case 6:return c.trys.push([6,,9,10]),n&&!n.done&&(s=r.return)?[4,s.call(r)]:[3,8];case 7:c.sent(),c.label=8;case 8:return[3,10];case 9:if(i)throw i.error;return[7];case 10:return[7];case 11:return e.complete(),[2]}})})}o(QI,"process");function ut(t,e,r,n,i){n===void 0&&(n=0),i===void 0&&(i=!1);var s=e.schedule(function(){r(),i?t.add(this.schedule(null,n)):this.unsubscribe()},n);if(t.add(s),!i)return s}o(ut,"executeSchedule");function Zo(t,e){return e===void 0&&(e=0),De(function(r,n){r.subscribe(Ce(n,function(i){return ut(n,t,function(){return n.next(i)},e)},function(){return ut(n,t,function(){return n.complete()},e)},function(i){return ut(n,t,function(){return n.error(i)},e)}))})}o(Zo,"observeOn");function es(t,e){return e===void 0&&(e=0),De(function(r,n){n.add(t.schedule(function(){return r.subscribe(n)},e))})}o(es,"subscribeOn");function bw(t,e){return Be(t).pipe(es(e),Zo(e))}o(bw,"scheduleObservable");function ww(t,e){return Be(t).pipe(es(e),Zo(e))}o(ww,"schedulePromise");function Sw(t,e){return new we(function(r){var n=0;return e.schedule(function(){n===t.length?r.complete():(r.next(t[n++]),r.closed||this.schedule())})})}o(Sw,"scheduleArray");function vw(t,e){return new we(function(r){var n;return ut(r,e,function(){n=t[Xc](),ut(r,e,function(){var i,s,a;try{i=n.next(),s=i.value,a=i.done}catch(l){r.error(l);return}a?r.complete():r.next(s)},0,!0)}),function(){return pe(n?.return)&&n.return()}})}o(vw,"scheduleIterable");function ru(t,e){if(!t)throw new Error("Iterable cannot be null");return new we(function(r){ut(r,e,function(){var n=t[Symbol.asyncIterator]();ut(r,e,function(){n.next().then(function(i){i.done?r.complete():r.next(i.value)})},0,!0)})})}o(ru,"scheduleAsyncIterable");function kw(t,e){return ru(eu(t),e)}o(kw,"scheduleReadableStreamLike");function id(t,e){if(t!=null){if(Gc(t))return bw(t,e);if(Xo(t))return Sw(t,e);if(Kc(t))return ww(t,e);if(Qc(t))return ru(t,e);if(Zc(t))return vw(t,e);if(tu(t))return kw(t,e)}throw Jc(t)}o(id,"scheduled");function Jr(t,e){return e?id(t,e):Be(t)}o(Jr,"from");function Ba(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r=Qr(t);return Jr(t,r)}o(Ba,"of");function Tw(t){return t instanceof Date&&!isNaN(t)}o(Tw,"isValidDate");function Xr(t,e){return De(function(r,n){var i=0;r.subscribe(Ce(n,function(s){n.next(t.call(e,s,i++))}))})}o(Xr,"map");var JI=Array.isArray;function XI(t,e){return JI(e)?t.apply(void 0,Ft([],ct(e))):t(e)}o(XI,"callOrApply");function nu(t){return Xr(function(e){return XI(t,e)})}o(nu,"mapOneOrManyArgs");var ZI=Array.isArray,eM=Object.getPrototypeOf,tM=Object.prototype,rM=Object.keys;function Ew(t){if(t.length===1){var e=t[0];if(ZI(e))return{args:e,keys:null};if(nM(e)){var r=rM(e);return{args:r.map(function(n){return e[n]}),keys:r}}}return{args:t,keys:null}}o(Ew,"argsArgArrayOrObject");function nM(t){return t&&typeof t=="object"&&eM(t)===tM}o(nM,"isPOJO");function Dw(t,e){return t.reduce(function(r,n,i){return r[n]=e[i],r},{})}o(Dw,"createObject");function od(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r=Qr(t),n=yw(t),i=Ew(t),s=i.args,a=i.keys;if(s.length===0)return Jr([],r);var l=new we(iM(s,r,a?function(c){return Dw(a,c)}:Kr));return n?l.pipe(nu(n)):l}o(od,"combineLatest");function iM(t,e,r){return r===void 0&&(r=Kr),function(n){Cw(e,function(){for(var i=t.length,s=new Array(i),a=i,l=i,c=o(function(f){Cw(e,function(){var p=Jr(t[f],e),h=!1;p.subscribe(Ce(n,function(m){s[f]=m,h||(h=!0,l--),l||n.next(r(s.slice()))},function(){--a||n.complete()}))},n)},"_loop_1"),u=0;u<i;u++)c(u)},n)}}o(iM,"combineLatestInit");function Cw(t,e,r){t?ut(r,t,e):e()}o(Cw,"maybeSchedule");function Ow(t,e,r,n,i,s,a,l){var c=[],u=0,f=0,p=!1,h=o(function(){p&&!c.length&&!u&&e.complete()},"checkComplete"),m=o(function(g){return u<n?d(g):c.push(g)},"outerNext"),d=o(function(g){s&&e.next(g),u++;var y=!1;Be(r(g,f++)).subscribe(Ce(e,function(x){i?.(x),s?m(x):e.next(x)},function(){y=!0},void 0,function(){if(y)try{u--;for(var x=o(function(){var T=c.shift();a?ut(e,a,function(){return d(T)}):d(T)},"_loop_1");c.length&&u<n;)x();h()}catch(T){e.error(T)}}))},"doInnerSub");return t.subscribe(Ce(e,m,function(){p=!0,h()})),function(){l?.()}}o(Ow,"mergeInternals");function Hi(t,e,r){return r===void 0&&(r=1/0),pe(e)?Hi(function(n,i){return Xr(function(s,a){return e(n,s,i,a)})(Be(t(n,i)))},r):(typeof e=="number"&&(r=e),De(function(n,i){return Ow(n,i,t,r)}))}o(Hi,"mergeMap");function iu(t){return t===void 0&&(t=1/0),Hi(Kr,t)}o(iu,"mergeAll");function ou(){return iu(1)}o(ou,"concatAll");function su(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return ou()(Jr(t,Qr(t)))}o(su,"concat");var oM=["addListener","removeListener"],sM=["addEventListener","removeEventListener"],aM=["on","off"];function Wi(t,e,r,n){if(pe(r)&&(n=r,r=void 0),n)return Wi(t,e,r).pipe(nu(n));var i=ct(uM(t)?sM.map(function(l){return function(c){return t[l](e,c,r)}}):lM(t)?oM.map(Iw(t,e)):cM(t)?aM.map(Iw(t,e)):[],2),s=i[0],a=i[1];if(!s&&Xo(t))return Hi(function(l){return Wi(l,e,r)})(Be(t));if(!s)throw new TypeError("Invalid event target");return new we(function(l){var c=o(function(){for(var u=[],f=0;f<arguments.length;f++)u[f]=arguments[f];return l.next(1<u.length?u:u[0])},"handler");return s(c),function(){return a(c)}})}o(Wi,"fromEvent");function Iw(t,e){return function(r){return function(n){return t[r](e,n)}}}o(Iw,"toCommonHandlerRegistry");function lM(t){return pe(t.addListener)&&pe(t.removeListener)}o(lM,"isNodeStyleEventEmitter");function cM(t){return pe(t.on)&&pe(t.off)}o(cM,"isJQueryStyleEventEmitter");function uM(t){return pe(t.addEventListener)&&pe(t.removeEventListener)}o(uM,"isEventTarget");function ja(t,e,r){t===void 0&&(t=0),r===void 0&&(r=rd);var n=-1;return e!=null&&(Vc(e)?r=e:n=e),new we(function(i){var s=Tw(t)?+t-r.now():t;s<0&&(s=0);var a=0;return r.schedule(function(){i.closed||(i.next(a++),0<=n?this.schedule(void 0,n):i.complete())},s)})}o(ja,"timer");function sd(t,e){return t===void 0&&(t=0),e===void 0&&(e=Gr),t<0&&(t=0),ja(t,t,e)}o(sd,"interval");function au(t,e){return De(function(r,n){var i=0;r.subscribe(Ce(n,function(s){return t.call(e,s,i++)&&n.next(s)}))})}o(au,"filter");function lu(t){return De(function(e,r){var n=[];return e.subscribe(Ce(r,function(i){return n.push(i)},function(){r.next(n),r.complete()})),Be(t).subscribe(Ce(r,function(){var i=n;n=[],r.next(i)},Vr)),function(){n=null}})}o(lu,"buffer");function cu(t,e){return e===void 0&&(e=null),e=e??t,De(function(r,n){var i=[],s=0;r.subscribe(Ce(n,function(a){var l,c,u,f,p=null;s++%e===0&&i.push([]);try{for(var h=dt(i),m=h.next();!m.done;m=h.next()){var d=m.value;d.push(a),t<=d.length&&(p=p??[],p.push(d))}}catch(x){l={error:x}}finally{try{m&&!m.done&&(c=h.return)&&c.call(h)}finally{if(l)throw l.error}}if(p)try{for(var g=dt(p),y=g.next();!y.done;y=g.next()){var d=y.value;Or(i,d),n.next(d)}}catch(x){u={error:x}}finally{try{y&&!y.done&&(f=g.return)&&f.call(g)}finally{if(u)throw u.error}}},function(){var a,l;try{for(var c=dt(i),u=c.next();!u.done;u=c.next()){var f=u.value;n.next(f)}}catch(p){a={error:p}}finally{try{u&&!u.done&&(l=c.return)&&l.call(c)}finally{if(a)throw a.error}}n.complete()},void 0,function(){i=null}))})}o(cu,"bufferCount");function uu(t){for(var e,r,n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];var s=(e=Qr(n))!==null&&e!==void 0?e:Gr,a=(r=n[0])!==null&&r!==void 0?r:null,l=n[1]||1/0;return De(function(c,u){var f=[],p=!1,h=o(function(g){var y=g.buffer,x=g.subs;x.unsubscribe(),Or(f,g),u.next(y),p&&m()},"emit"),m=o(function(){if(f){var g=new At;u.add(g);var y=[],x={buffer:y,subs:g};f.push(x),ut(g,s,function(){return h(x)},t)}},"startBuffer");a!==null&&a>=0?ut(u,s,m,a,!0):p=!0,m();var d=Ce(u,function(g){var y,x,T=f.slice();try{for(var E=dt(T),L=E.next();!L.done;L=E.next()){var P=L.value,D=P.buffer;D.push(g),l<=D.length&&h(P)}}catch(A){y={error:A}}finally{try{L&&!L.done&&(x=E.return)&&x.call(E)}finally{if(y)throw y.error}}},function(){for(;f?.length;)u.next(f.shift().buffer);d?.unsubscribe(),u.complete(),u.unsubscribe()},void 0,function(){return f=null});c.subscribe(d)})}o(uu,"bufferTime");function fu(t){return De(function(e,r){var n=!1,i=null,s=null,a=o(function(){if(s?.unsubscribe(),s=null,n){n=!1;var l=i;i=null,r.next(l)}},"emit");e.subscribe(Ce(r,function(l){s?.unsubscribe(),n=!0,i=l,s=Ce(r,a,Vr),Be(t(l)).subscribe(s)},function(){a(),r.complete()},void 0,function(){i=s=null}))})}o(fu,"debounce");function pu(t,e){return e===void 0&&(e=Gr),De(function(r,n){var i=null,s=null,a=null,l=o(function(){if(i){i.unsubscribe(),i=null;var u=s;s=null,n.next(u)}},"emit");function c(){var u=a+t,f=e.now();if(f<u){i=this.schedule(void 0,u-f),n.add(i);return}l()}o(c,"emitWhenIdle"),r.subscribe(Ce(n,function(u){s=u,a=e.now(),i||(i=e.schedule(c,t),n.add(i))},function(){l(),n.complete()},void 0,function(){s=i=null}))})}o(pu,"debounceTime");function ts(t,e){return e===void 0&&(e=Kr),t=t??fM,De(function(r,n){var i,s=!0;r.subscribe(Ce(n,function(a){var l=e(a);(s||!t(i,l))&&(s=!1,i=l,n.next(a))}))})}o(ts,"distinctUntilChanged");function fM(t,e){return t===e}o(fM,"defaultCompare");function hu(t){t===void 0&&(t={});var e=t.connector,r=e===void 0?function(){return new $t}:e,n=t.resetOnError,i=n===void 0?!0:n,s=t.resetOnComplete,a=s===void 0?!0:s,l=t.resetOnRefCountZero,c=l===void 0?!0:l;return function(u){var f,p,h,m=0,d=!1,g=!1,y=o(function(){p?.unsubscribe(),p=void 0},"cancelReset"),x=o(function(){y(),f=h=void 0,d=g=!1},"reset"),T=o(function(){var E=f;x(),E?.unsubscribe()},"resetAndUnsubscribe");return De(function(E,L){m++,!g&&!d&&y();var P=h=h??r();L.add(function(){m--,m===0&&!g&&!d&&(p=ad(T,c))}),P.subscribe(L),!f&&m>0&&(f=new Vn({next:o(function(D){return P.next(D)},"next"),error:o(function(D){g=!0,y(),p=ad(x,i,D),P.error(D)},"error"),complete:o(function(){d=!0,y(),p=ad(x,a),P.complete()},"complete")}),Be(E).subscribe(f))})(u)}}o(hu,"share");function ad(t,e){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];if(e===!0){t();return}if(e!==!1){var i=new Vn({next:o(function(){i.unsubscribe(),t()},"next")});return Be(e.apply(void 0,Ft([],ct(r)))).subscribe(i)}}o(ad,"handleReset");function mu(t,e,r){var n,i,s,a,l=!1;return t&&typeof t=="object"?(n=t.bufferSize,a=n===void 0?1/0:n,i=t.windowTime,e=i===void 0?1/0:i,s=t.refCount,l=s===void 0?!1:s,r=t.scheduler):a=t??1/0,hu({connector:o(function(){return new Jo(a,e,r)},"connector"),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:l})}o(mu,"shareReplay");function du(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r=Qr(t);return De(function(n,i){(r?su(t,n,r):su(t,n)).subscribe(i)})}o(du,"startWith");function rs(t){return De(function(e,r){Be(t).subscribe(Ce(r,function(){return r.complete()},Vr)),!r.closed&&e.subscribe(r)})}o(rs,"takeUntil");function gu(t,e){return De(function(r,n){var i=e??{},s=i.leading,a=s===void 0?!0:s,l=i.trailing,c=l===void 0?!1:l,u=!1,f=null,p=null,h=!1,m=o(function(){p?.unsubscribe(),p=null,c&&(y(),h&&n.complete())},"endThrottling"),d=o(function(){p=null,h&&n.complete()},"cleanupThrottling"),g=o(function(x){return p=Be(t(x)).subscribe(Ce(n,m,d))},"startThrottle"),y=o(function(){if(u){u=!1;var x=f;f=null,n.next(x),!h&&g(x)}},"send");r.subscribe(Ce(n,function(x){u=!0,f=x,!(p&&!p.closed)&&(a?y():g(x))},function(){h=!0,!(c&&u&&p&&!p.closed)&&n.complete()}))})}o(gu,"throttle");function yu(t,e,r){e===void 0&&(e=Gr);var n=ja(t,e);return gu(function(){return n},r)}o(yu,"throttleTime");var qN={buffer:lu,bufferCount:cu,bufferTime:uu,debounce:fu,debounceTime:pu,filter:au,map:Xr,startWith:du,takeUntil:rs,throttleTime:yu};var ld=class{static{o(this,"Observablemap")}constructor(){this.observableEventEmitterBundleArray=new Array,this.observableEventTargetBundleArray=new Array}getSubjectForEmitterEvent(e,r){let n=this.observableEventEmitterBundleArray.find(i=>i.eventRef===e&&i.event===r);if(n)return n.subject;{let i=Wi(e,r),s=new $t;i.subscribe(s);let a={subject:s,eventRef:e,event:r};return this.observableEventEmitterBundleArray.push(a),a.subject}}getSubjectForEventTarget(e,r){let n=this.observableEventTargetBundleArray.find(i=>i.eventRef===e&&i.event===r);if(n)return n.subject;{let s={subject:new $t,eventRef:e,event:r};return this.observableEventTargetBundleArray.push(s),s.subject}}};var cd=class{static{o(this,"ObservableIntake")}constructor(){this.observableFunctions={next:o(e=>{},"next"),complete:o(e=>{},"complete")},this.buffered=!1,this.payloadBuffer=[],this.observable=new we(e=>{this.observableFunctions.next=r=>e.next(r),this.observableFunctions.complete=()=>(this.completedDeffered.resolve(),e.complete())}),this.completedDeffered=Q.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 r of e)this.push(r)}setGenerator(e){this.generator=e}makeBuffered(){this.buffered=!0}subscribe(...e){return this.observable.subscribe(...e)}request(e){if(e!==0)for(let r=0;r!==e;r++)if(this.payloadBuffer.length>0)this.internalPush(this.payloadBuffer.shift());else{if(!this.generator)throw new Error("Cannot request an unbuffered value before setting a generator");let n=this.generator.next();this.internalPush(n.value)}}signalComplete(){this.observableFunctions.complete()}internalPush(e){this.observableFunctions.next(e)}};function YN(t){return new we(e=>{let r=o(()=>t.pause(),"pauseStream"),n=o(()=>process.nextTick(()=>t.resume()),"resumeStream"),i=o(s=>{r(),e.next(s),n()},"onData");return t.on("data",i),t.on("error",s=>e.error(s)),t.on("end",()=>e.complete()),t.on("close",()=>e.complete()),()=>{t.removeListener("data",i),t.removeListener("error",e.error),t.removeListener("end",e.complete),t.removeListener("close",e.complete)}})}o(YN,"fromStreamWithBackpressure");var Zi={};se(Zi,{CronJob:()=>rl,CronJobCollection:()=>nl,CronManager:()=>kd,ExtendedDate:()=>Ed,HrtMeasurement:()=>Dd,Interval:()=>Cd,TimeStamp:()=>Cs,Timer:()=>Od,getMilliSecondsAsHumanReadableAgoTime:()=>kL,getMilliSecondsAsHumanReadableString:()=>vL,getMilliSecondsFromUnits:()=>Td,units:()=>si});var Wa={};se(Wa,{Cron:()=>Rw,CronDate:()=>Ze,CronPattern:()=>xu,scheduledJobs:()=>is});function Ua(t){return Date.UTC(t.y,t.m-1,t.d,t.h,t.i,t.s)}o(Ua,"T");function ud(t,e){return t.y===e.y&&t.m===e.m&&t.d===e.d&&t.h===e.h&&t.i===e.i&&t.s===e.s}o(ud,"D");function VN(t,e){let r=new Date(Date.parse(t));if(isNaN(r))throw new Error("Invalid ISO8601 passed to timezone parser.");let n=t.substring(9);return n.includes("Z")||n.includes("+")||n.includes("-")?fd(r.getUTCFullYear(),r.getUTCMonth()+1,r.getUTCDate(),r.getUTCHours(),r.getUTCMinutes(),r.getUTCSeconds(),"Etc/UTC"):fd(r.getFullYear(),r.getMonth()+1,r.getDate(),r.getHours(),r.getMinutes(),r.getSeconds(),e)}o(VN,"A");function Mw(t,e,r){return Nw(VN(t,e),r)}o(Mw,"v");function Nw(t,e){let r=new Date(Ua(t)),n=za(r,t.tz),i=Ua(t),s=Ua(n),a=i-s,l=new Date(r.getTime()+a),c=za(l,t.tz);if(ud(c,t)){let p=new Date(l.getTime()-36e5),h=za(p,t.tz);return ud(h,t)?p:l}let u=new Date(l.getTime()+Ua(t)-Ua(c)),f=za(u,t.tz);if(ud(f,t))return u;if(e)throw new Error("Invalid date passed to fromTZ()");return l.getTime()>u.getTime()?l:u}o(Nw,"k");function za(t,e){let r,n;try{r=new Intl.DateTimeFormat("en-US",{timeZone:e,year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric",hour12:!1}),n=r.formatToParts(t)}catch(s){let a=s instanceof Error?s.message:String(s);throw new RangeError(`toTZ: Invalid timezone '${e}' or date. Please provide a valid IANA timezone (e.g., 'America/New_York', 'Europe/Stockholm'). Original error: ${a}`)}let i={year:0,month:0,day:0,hour:0,minute:0,second:0};for(let s of n)(s.type==="year"||s.type==="month"||s.type==="day"||s.type==="hour"||s.type==="minute"||s.type==="second")&&(i[s.type]=parseInt(s.value,10));if(isNaN(i.year)||isNaN(i.month)||isNaN(i.day)||isNaN(i.hour)||isNaN(i.minute)||isNaN(i.second))throw new Error(`toTZ: Failed to parse all date components from timezone '${e}'. This may indicate an invalid date or timezone configuration. Parsed components: ${JSON.stringify(i)}`);return i.hour===24&&(i.hour=0),{y:i.year,m:i.month,d:i.day,h:i.hour,i:i.minute,s:i.second,tz:e}}o(za,"g");function fd(t,e,r,n,i,s,a){return{y:t,m:e,d:r,h:n,i,s,tz:a}}o(fd,"b");var Pw=[1,2,4,8,16],xu=class{static{o(this,"C")}pattern;timezone;mode;alternativeWeekdays;sloppyRanges;second;minute;hour;day;month;dayOfWeek;year;lastDayOfMonth;lastWeekday;nearestWeekdays;starDOM;starDOW;starYear;useAndLogic;constructor(t,e,r){this.pattern=t,this.timezone=e,this.mode=r?.mode??"auto",this.alternativeWeekdays=r?.alternativeWeekdays??!1,this.sloppyRanges=r?.sloppyRanges??!1,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.year=Array(1e4).fill(0),this.lastDayOfMonth=!1,this.lastWeekday=!1,this.nearestWeekdays=Array(31).fill(0),this.starDOM=!1,this.starDOW=!1,this.starYear=!1,this.useAndLogic=!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.match(/\S+/g)||[""],e=t.length;if(t.length<5||t.length>7)throw new TypeError("CronPattern: invalid configuration format ('"+this.pattern+"'), exactly five, six, or seven space separated parts are required.");if(this.mode!=="auto"){let n;switch(this.mode){case"5-part":n=5;break;case"6-part":n=6;break;case"7-part":n=7;break;case"5-or-6-parts":n=[5,6];break;case"6-or-7-parts":n=[6,7];break;default:n=0}if(!(Array.isArray(n)?n.includes(e):e===n)){let i=Array.isArray(n)?n.join(" or "):n.toString();throw new TypeError(`CronPattern: mode '${this.mode}' requires exactly ${i} parts, but pattern '${this.pattern}' has ${e} parts.`)}}if(t.length===5&&t.unshift("0"),t.length===6&&t.push("*"),t[3].toUpperCase()==="LW"?(this.lastWeekday=!0,t[3]=""):t[3].toUpperCase().indexOf("L")>=0&&(t[3]=t[3].replace(/L/gi,""),this.lastDayOfMonth=!0),t[3]=="*"&&(this.starDOM=!0),t[6]=="*"&&(this.starYear=!0),t[4].length>=3&&(t[4]=this.replaceAlphaMonths(t[4])),t[5].length>=3&&(t[5]=this.alternativeWeekdays?this.replaceAlphaDaysQuartz(t[5]):this.replaceAlphaDays(t[5])),t[5].startsWith("+")&&(this.useAndLogic=!0,t[5]=t[5].substring(1),t[5]===""))throw new TypeError("CronPattern: Day-of-week field cannot be empty after '+' modifier.");switch(t[5]=="*"&&(this.starDOW=!0),this.pattern.indexOf("?")>=0&&(t[0]=t[0].replace(/\?/g,"*"),t[1]=t[1].replace(/\?/g,"*"),t[2]=t[2].replace(/\?/g,"*"),t[3]=t[3].replace(/\?/g,"*"),t[4]=t[4].replace(/\?/g,"*"),t[5]=t[5].replace(/\?/g,"*"),t[6]&&(t[6]=t[6].replace(/\?/g,"*"))),this.mode){case"5-part":t[0]="0",t[6]="*";break;case"6-part":t[6]="*";break;case"5-or-6-parts":t[6]="*";break;case"6-or-7-parts":break;case"7-part":case"auto":break}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);let r=this.alternativeWeekdays?-1:0;this.partToArray("dayOfWeek",t[5],r,63),this.partToArray("year",t[6],0,1),!this.alternativeWeekdays&&this.dayOfWeek[7]&&(this.dayOfWeek[0]=this.dayOfWeek[7])}partToArray(t,e,r,n){let i=this[t],s=t==="day"&&this.lastDayOfMonth,a=t==="day"&&this.lastWeekday;if(e===""&&!s&&!a)throw new TypeError("CronPattern: configuration entry "+t+" ("+e+") is empty, check for trailing spaces.");if(e==="*")return i.fill(n);let l=e.split(",");if(l.length>1)for(let c=0;c<l.length;c++)this.partToArray(t,l[c],r,n);else e.indexOf("-")!==-1&&e.indexOf("/")!==-1?this.handleRangeWithStepping(e,t,r,n):e.indexOf("-")!==-1?this.handleRange(e,t,r,n):e.indexOf("/")!==-1?this.handleStepping(e,t,r,n):e!==""&&this.handleNumber(e,t,r,n)}throwAtIllegalCharacters(t){for(let e=0;e<t.length;e++)if((e===3?/[^/*0-9,\-WwLl]+/:e===5?/[^/*0-9,\-#Ll]+/:/[^/*0-9,\-]+/).test(t[e]))throw new TypeError("CronPattern: configuration entry "+e+" ("+t[e]+") contains illegal characters.")}handleNumber(t,e,r,n){let i=this.extractNth(t,e),s=t.toUpperCase().includes("W");if(e!=="day"&&s)throw new TypeError("CronPattern: Nearest weekday modifier (W) only allowed in day-of-month.");s&&(e="nearestWeekdays");let a=parseInt(i[0],10)+r;if(isNaN(a))throw new TypeError("CronPattern: "+e+" is not a number: '"+t+"'");this.setPart(e,a,i[1]||n)}setPart(t,e,r){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,r);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"||t==="nearestWeekdays"){if(e<0||e>=31)throw new RangeError("CronPattern: Invalid value for "+t+": "+e)}else if(t==="month"){if(e<0||e>=12)throw new RangeError("CronPattern: Invalid value for "+t+": "+e)}else if(t==="year"&&(e<1||e>=1e4))throw new RangeError("CronPattern: Invalid value for "+t+": "+e+" (supported range: 1-9999)");this[t][e]=r}validateNotNaN(t,e){if(isNaN(t))throw new TypeError(e)}validateRange(t,e,r,n,i){if(t>e)throw new TypeError("CronPattern: From value is larger than to value: '"+i+"'");if(r!==void 0){if(r===0)throw new TypeError("CronPattern: Syntax error, illegal stepping: 0");if(r>this[n].length)throw new TypeError("CronPattern: Syntax error, steps cannot be greater than maximum value of part ("+this[n].length+")")}}handleRangeWithStepping(t,e,r,n){if(t.toUpperCase().includes("W"))throw new TypeError("CronPattern: Syntax error, W is not allowed in ranges with stepping.");let i=this.extractNth(t,e),s=i[0].match(/^(\d+)-(\d+)\/(\d+)$/);if(s===null)throw new TypeError("CronPattern: Syntax error, illegal range with stepping: '"+t+"'");let[,a,l,c]=s,u=parseInt(a,10)+r,f=parseInt(l,10)+r,p=parseInt(c,10);this.validateNotNaN(u,"CronPattern: Syntax error, illegal lower range (NaN)"),this.validateNotNaN(f,"CronPattern: Syntax error, illegal upper range (NaN)"),this.validateNotNaN(p,"CronPattern: Syntax error, illegal stepping: (NaN)"),this.validateRange(u,f,p,e,t);for(let h=u;h<=f;h+=p)this.setPart(e,h,i[1]||n)}extractNth(t,e){let r=t,n;if(r.includes("#")){if(e!=="dayOfWeek")throw new Error("CronPattern: nth (#) only allowed in day-of-week field");n=r.split("#")[1],r=r.split("#")[0]}else if(r.toUpperCase().endsWith("L")){if(e!=="dayOfWeek")throw new Error("CronPattern: L modifier only allowed in day-of-week field (use L alone for day-of-month)");n="L",r=r.slice(0,-1)}return[r,n]}handleRange(t,e,r,n){if(t.toUpperCase().includes("W"))throw new TypeError("CronPattern: Syntax error, W is not allowed in a range.");let i=this.extractNth(t,e),s=i[0].split("-");if(s.length!==2)throw new TypeError("CronPattern: Syntax error, illegal range: '"+t+"'");let a=parseInt(s[0],10)+r,l=parseInt(s[1],10)+r;this.validateNotNaN(a,"CronPattern: Syntax error, illegal lower range (NaN)"),this.validateNotNaN(l,"CronPattern: Syntax error, illegal upper range (NaN)"),this.validateRange(a,l,void 0,e,t);for(let c=a;c<=l;c++)this.setPart(e,c,i[1]||n)}handleStepping(t,e,r,n){if(t.toUpperCase().includes("W"))throw new TypeError("CronPattern: Syntax error, W is not allowed in parts with stepping.");let i=this.extractNth(t,e),s=i[0].split("/");if(s.length!==2)throw new TypeError("CronPattern: Syntax error, illegal stepping: '"+t+"'");if(this.sloppyRanges)s[0]===""&&(s[0]="*");else{if(s[0]==="")throw new TypeError("CronPattern: Syntax error, stepping with missing prefix ('"+t+"') is not allowed. Use wildcard (*/step) or range (min-max/step) instead.");if(s[0]!=="*")throw new TypeError("CronPattern: Syntax error, stepping with numeric prefix ('"+t+"') is not allowed. Use wildcard (*/step) or range (min-max/step) instead.")}let a=0;s[0]!=="*"&&(a=parseInt(s[0],10)+r);let l=parseInt(s[1],10);this.validateNotNaN(l,"CronPattern: Syntax error, illegal stepping: (NaN)"),this.validateRange(0,this[e].length-1,l,e,t);for(let c=a;c<this[e].length;c+=l)this.setPart(e,c,i[1]||n)}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")}replaceAlphaDaysQuartz(t){return t.replace(/sun/gi,"1").replace(/mon/gi,"2").replace(/tue/gi,"3").replace(/wed/gi,"4").replace(/thu/gi,"5").replace(/fri/gi,"6").replace(/sat/gi,"7")}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();if(e==="@yearly"||e==="@annually")return"0 0 1 1 *";if(e==="@monthly")return"0 0 1 * *";if(e==="@weekly")return"0 0 * * 0";if(e==="@daily"||e==="@midnight")return"0 0 * * *";if(e==="@hourly")return"0 * * * *";if(e==="@reboot")throw new TypeError("CronPattern: @reboot is not supported in this environment. This is an event-based trigger that requires system startup detection.");return t}setNthWeekdayOfMonth(t,e){if(typeof e!="number"&&e.toUpperCase()==="L")this.dayOfWeek[t]=this.dayOfWeek[t]|32;else if(e===63)this.dayOfWeek[t]=63;else if(e<6&&e>0)this.dayOfWeek[t]=this.dayOfWeek[t]|Pw[e-1];else throw new TypeError(`CronPattern: nth weekday out of range, should be 1-5 or L. Value: ${e}, Type: ${typeof e}`)}},pd=[31,28,31,30,31,30,31,31,30,31,30,31],Fe=[["month","year",0],["day","month",-1],["hour","day",0],["minute","hour",0],["second","minute",0]],Ze=class _w{static{o(this,"s")}tz;ms;second;minute;hour;day;month;year;constructor(e,r){if(this.tz=r,e&&e instanceof Date)if(!isNaN(e))this.fromDate(e);else throw new TypeError("CronDate: Invalid date passed to CronDate constructor");else if(e==null)this.fromDate(new Date);else if(e&&typeof e=="string")this.fromString(e);else if(e instanceof _w)this.fromCronDate(e);else throw new TypeError("CronDate: Invalid type ("+typeof e+") passed to CronDate constructor")}getLastDayOfMonth(e,r){return r!==1?pd[r]:new Date(Date.UTC(e,r+1,0)).getUTCDate()}getLastWeekday(e,r){let n=this.getLastDayOfMonth(e,r),i=new Date(Date.UTC(e,r,n)).getUTCDay();return i===0?n-2:i===6?n-1:n}getNearestWeekday(e,r,n){let i=this.getLastDayOfMonth(e,r);if(n>i)return-1;let s=new Date(Date.UTC(e,r,n)).getUTCDay();return s===0?n===i?n-2:n+1:s===6?n===1?n+2:n-1:n}isNthWeekdayOfMonth(e,r,n,i){let s=new Date(Date.UTC(e,r,n)).getUTCDay(),a=0;for(let l=1;l<=n;l++)new Date(Date.UTC(e,r,l)).getUTCDay()===s&&a++;if(i&63&&Pw[a-1]&i)return!0;if(i&32){let l=this.getLastDayOfMonth(e,r);for(let c=n+1;c<=l;c++)if(new Date(Date.UTC(e,r,c)).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 try{let r=za(e,this.tz);this.ms=e.getMilliseconds(),this.second=r.s,this.minute=r.i,this.hour=r.h,this.day=r.d,this.month=r.m-1,this.year=r.y}catch(r){let n=r instanceof Error?r.message:String(r);throw new TypeError(`CronDate: Failed to convert date to timezone '${this.tz}'. This may happen with invalid timezone names or dates. Original error: ${n}`)}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.month<0||this.day>pd[this.month]||this.day<1||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 r=Mw(e);this.ms=r.getUTCMilliseconds(),this.second=r.getUTCSeconds(),this.minute=r.getUTCMinutes(),this.hour=r.getUTCHours(),this.day=r.getUTCDate(),this.month=r.getUTCMonth(),this.year=r.getUTCFullYear(),this.apply()}else return this.fromDate(Mw(e,this.tz))}findNext(e,r,n,i){return this._findMatch(e,r,n,i,1)}_findMatch(e,r,n,i,s){let a=this[r],l;n.lastDayOfMonth&&(l=this.getLastDayOfMonth(this.year,this.month));let c=!n.starDOW&&r=="day"?new Date(Date.UTC(this.year,this.month,1,0,0,0,0)).getUTCDay():void 0,u=this[r]+i,f=s===1?p=>p<n[r].length:p=>p>=0;for(let p=u;f(p);p+=s){let h=n[r][p];if(r==="day"&&!h){for(let m=0;m<n.nearestWeekdays.length;m++)if(n.nearestWeekdays[m]){let d=this.getNearestWeekday(this.year,this.month,m-i);if(d===-1)continue;if(d===p-i){h=1;break}}}if(r==="day"&&n.lastWeekday){let m=this.getLastWeekday(this.year,this.month);p-i===m&&(h=1)}if(r==="day"&&n.lastDayOfMonth&&p-i==l&&(h=1),r==="day"&&!n.starDOW){let m=n.dayOfWeek[(c+(p-i-1))%7];if(m&&m&63)m=this.isNthWeekdayOfMonth(this.year,this.month,p-i,m)?1:0;else if(m)throw new Error(`CronDate: Invalid value for dayOfWeek encountered. ${m}`);n.useAndLogic?h=h&&m:!e.domAndDow&&!n.starDOM?h=h||m:h=h&&m}if(h)return this[r]=p-i,a!==this[r]?2:1}return 3}recurse(e,r,n){if(n===0&&!e.starYear){if(this.year>=0&&this.year<e.year.length&&e.year[this.year]===0){let s=-1;for(let a=this.year+1;a<e.year.length&&a<1e4;a++)if(e.year[a]===1){s=a;break}if(s===-1)return null;this.year=s,this.month=0,this.day=1,this.hour=0,this.minute=0,this.second=0,this.ms=0}if(this.year>=1e4)return null}let i=this.findNext(r,Fe[n][0],e,Fe[n][2]);if(i>1){let s=n+1;for(;s<Fe.length;)this[Fe[s][0]]=-Fe[s][2],s++;if(i===3){if(this[Fe[n][1]]++,this[Fe[n][0]]=-Fe[n][2],this.apply(),n===0&&!e.starYear){for(;this.year>=0&&this.year<e.year.length&&e.year[this.year]===0&&this.year<1e4;)this.year++;if(this.year>=1e4||this.year>=e.year.length)return null}return this.recurse(e,r,0)}else if(this.apply())return this.recurse(e,r,n-1)}return n+=1,n>=Fe.length?this:(e.starYear?this.year>=3e3:this.year>=1e4)?null:this.recurse(e,r,n)}increment(e,r,n){return this.second+=r.interval!==void 0&&r.interval>1&&n?r.interval:1,this.ms=0,this.apply(),this.recurse(e,r,0)}decrement(e,r){return this.second-=r.interval!==void 0&&r.interval>1?r.interval:1,this.ms=0,this.apply(),this.recurseBackward(e,r,0,0)}recurseBackward(e,r,n,i=0){if(i>1e4)return null;if(n===0&&!e.starYear){if(this.year>=0&&this.year<e.year.length&&e.year[this.year]===0){let a=-1;for(let l=this.year-1;l>=0;l--)if(e.year[l]===1){a=l;break}if(a===-1)return null;this.year=a,this.month=11,this.day=31,this.hour=23,this.minute=59,this.second=59,this.ms=0}if(this.year<0)return null}let s=this.findPrevious(r,Fe[n][0],e,Fe[n][2]);if(s>1){let a=n+1;for(;a<Fe.length;){let l=Fe[a][0],c=Fe[a][2],u=this.getMaxPatternValue(l,e,c);this[l]=u,a++}if(s===3){if(this[Fe[n][1]]--,n===0){let f=this.getLastDayOfMonth(this.year,this.month);this.day>f&&(this.day=f)}if(n===1)if(this.day<=0)this.day=1;else{let f=this.year,p=this.month;for(;p<0;)p+=12,f--;for(;p>11;)p-=12,f++;let h=p!==1?pd[p]:new Date(Date.UTC(f,p+1,0)).getUTCDate();this.day>h&&(this.day=h)}this.apply();let l=Fe[n][0],c=Fe[n][2],u=this.getMaxPatternValue(l,e,c);if(l==="day"){let f=this.getLastDayOfMonth(this.year,this.month);this[l]=Math.min(u,f)}else this[l]=u;if(this.apply(),n===0){let f=Fe[1][2],p=this.getMaxPatternValue("day",e,f),h=this.getLastDayOfMonth(this.year,this.month),m=Math.min(p,h);m!==this.day&&(this.day=m,this.hour=this.getMaxPatternValue("hour",e,Fe[2][2]),this.minute=this.getMaxPatternValue("minute",e,Fe[3][2]),this.second=this.getMaxPatternValue("second",e,Fe[4][2]))}if(n===0&&!e.starYear){for(;this.year>=0&&this.year<e.year.length&&e.year[this.year]===0;)this.year--;if(this.year<0)return null}return this.recurseBackward(e,r,0,i+1)}else if(this.apply())return this.recurseBackward(e,r,n-1,i+1)}return n+=1,n>=Fe.length?this:this.year<0?null:this.recurseBackward(e,r,n,i+1)}getMaxPatternValue(e,r,n){if(e==="day"&&r.lastDayOfMonth)return this.getLastDayOfMonth(this.year,this.month);if(e==="day"&&!r.starDOW)return this.getLastDayOfMonth(this.year,this.month);for(let i=r[e].length-1;i>=0;i--)if(r[e][i])return i-n;return r[e].length-1-n}findPrevious(e,r,n,i){return this._findMatch(e,r,n,i,-1)}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)):Nw(fd(this.year,this.month+1,this.day,this.hour,this.minute,this.second,this.tz),!1)}getTime(){return this.getDate(!1).getTime()}match(e,r){if(!e.starYear&&(this.year<0||this.year>=e.year.length||e.year[this.year]===0))return!1;for(let n=0;n<Fe.length;n++){let i=Fe[n][0],s=Fe[n][2],a=this[i];if(a+s<0||a+s>=e[i].length)return!1;let l=e[i][a+s];if(i==="day"){if(!l){for(let c=0;c<e.nearestWeekdays.length;c++)if(e.nearestWeekdays[c]){let u=this.getNearestWeekday(this.year,this.month,c-s);if(u!==-1&&u===a){l=1;break}}}if(e.lastWeekday){let c=this.getLastWeekday(this.year,this.month);a===c&&(l=1)}if(e.lastDayOfMonth){let c=this.getLastDayOfMonth(this.year,this.month);a===c&&(l=1)}if(!e.starDOW){let c=new Date(Date.UTC(this.year,this.month,1,0,0,0,0)).getUTCDay(),u=e.dayOfWeek[(c+(a-1))%7];u&&u&63&&(u=this.isNthWeekdayOfMonth(this.year,this.month,a,u)?1:0),e.useAndLogic?l=l&&u:!r.domAndDow&&!e.starDOM?l=l||u:l=l&&u}}if(!l)return!1}return!0}};function KN(t){if(t===void 0&&(t={}),delete t.name,t.legacyMode!==void 0&&t.domAndDow===void 0?t.domAndDow=!t.legacyMode:t.domAndDow===void 0&&(t.domAndDow=!1),t.legacyMode=!t.domAndDow,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.dayOffset=t.dayOffset===void 0?0:parseInt(t.dayOffset.toString(),10),t.unref=t.unref===void 0?!1:t.unref,t.mode=t.mode===void 0?"auto":t.mode,t.alternativeWeekdays=t.alternativeWeekdays===void 0?!1:t.alternativeWeekdays,t.sloppyRanges=t.sloppyRanges===void 0?!1:t.sloppyRanges,!["auto","5-part","6-part","7-part","5-or-6-parts","6-or-7-parts"].includes(t.mode))throw new Error("CronOptions: mode must be one of 'auto', '5-part', '6-part', '7-part', '5-or-6-parts', or '6-or-7-parts'.");if(t.startAt&&(t.startAt=new Ze(t.startAt,t.timezone)),t.stopAt&&(t.stopAt=new Ze(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).");if(t.dayOffset!==void 0&&t.dayOffset!==0&&isNaN(t.dayOffset))throw new Error("CronOptions: Invalid value passed for dayOffset, should be a number representing days to offset.");return t}o(KN,"R");function Ha(t){return Object.prototype.toString.call(t)==="[object Function]"||typeof t=="function"||t instanceof Function}o(Ha,"p");function GN(t){return Ha(t)}o(GN,"_");function QN(t){typeof Deno<"u"&&typeof Deno.unrefTimer<"u"?Deno.unrefTimer(t):t&&typeof t.unref<"u"&&t.unref()}o(QN,"x");var Lw=30*1e3,is=[],Rw=class{static{o(this,"E")}name;options;_states;fn;getTz(){return this.options.timezone||this.options.utcOffset}applyDayOffset(t){if(this.options.dayOffset!==void 0&&this.options.dayOffset!==0){let e=this.options.dayOffset*24*60*60*1e3;return new Date(t.getTime()+e)}return t}constructor(t,e,r){let n,i;if(Ha(e))i=e;else if(typeof e=="object")n=e;else if(e!==void 0)throw new Error("Cron: Invalid argument passed for optionsIn. Should be one of function, or object (options).");if(Ha(r))i=r;else if(typeof r=="object")n=r;else if(r!==void 0)throw new Error("Cron: Invalid argument passed for funcIn. Should be one of function, or object (options).");if(this.name=n?.name,this.options=KN(n),this._states={kill:!1,blocking:!1,previousRun:void 0,currentRun:void 0,once:void 0,currentTimeout:void 0,maxRuns:n?n.maxRuns:void 0,paused:n?n.paused:!1,pattern:new xu("* * * * *",void 0,{mode:"auto"})},t&&(t instanceof Date||typeof t=="string"&&t.indexOf(":")>0)?this._states.once=new Ze(t,this.getTz()):this._states.pattern=new xu(t,this.options.timezone,{mode:this.options.mode,alternativeWeekdays:this.options.alternativeWeekdays,sloppyRanges:this.options.sloppyRanges}),this.name){if(is.find(s=>s.name===this.name))throw new Error("Cron: Tried to initialize new named job '"+this.name+"', but name already taken.");is.push(this)}return i!==void 0&&GN(i)&&(this.fn=i,this.schedule()),this}nextRun(t){let e=this._next(t);return e?this.applyDayOffset(e.getDate(!1)):null}nextRuns(t,e){this._states.maxRuns!==void 0&&t>this._states.maxRuns&&(t=this._states.maxRuns);let r=e||this._states.currentRun||void 0;return this._enumerateRuns(t,r,"next")}previousRuns(t,e){return this._enumerateRuns(t,e||void 0,"previous")}_enumerateRuns(t,e,r){let n=[],i=e?new Ze(e,this.getTz()):null,s=r==="next"?this._next:this._previous;for(;t--;){let a=s.call(this,i);if(!a)break;let l=a.getDate(!1);n.push(this.applyDayOffset(l)),i=a}return n}match(t){if(this._states.once){let r=new Ze(t,this.getTz());r.ms=0;let n=new Ze(this._states.once,this.getTz());return n.ms=0,r.getTime()===n.getTime()}let e=new Ze(t,this.getTz());return e.ms=0,e.match(this._states.pattern,this.options)}getPattern(){if(!this._states.once)return this._states.pattern?this._states.pattern.pattern:void 0}getOnce(){return this._states.once?this._states.once.getDate():null}isRunning(){let t=this.nextRun(this._states.currentRun),e=!this._states.paused,r=this.fn!==void 0,n=!this._states.kill;return e&&r&&n&&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 Ze||t instanceof Date?e.getTime()-t.getTime():e.getTime()-new Ze(t).getTime():null}stop(){this._states.kill=!0,this._states.currentTimeout&&clearTimeout(this._states.currentTimeout);let t=is.indexOf(this);t>=0&&is.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(),r=this.nextRun(this._states.currentRun);return e==null||isNaN(e)||r===null?this:(e>Lw&&(e=Lw),this._states.currentTimeout=setTimeout(()=>this._checkTrigger(r),e),this._states.currentTimeout&&this.options.unref&&QN(this._states.currentTimeout),this)}async _trigger(t){this._states.blocking=!0,this._states.currentRun=new Ze(void 0,this.getTz());try{if(this.options.catch)try{this.fn!==void 0&&await this.fn(this,this.options.context)}catch(e){if(Ha(this.options.catch))try{this.options.catch(e,this)}catch{}}else this.fn!==void 0&&await this.fn(this,this.options.context)}finally{this._states.previousRun=new Ze(t,this.getTz()),this._states.blocking=!1}}async trigger(){await this._trigger()}runsLeft(){return this._states.maxRuns}_checkTrigger(t){let e=new Date,r=!this._states.paused&&e.getTime()>=t.getTime(),n=this._states.blocking&&this.options.protect;r&&!n?(this._states.maxRuns!==void 0&&this._states.maxRuns--,this._trigger()):r&&n&&Ha(this.options.protect)&&setTimeout(()=>this.options.protect(this),0),this.schedule()}_next(t){let e=!!(t||this._states.currentRun),r=!1;!t&&this.options.startAt&&this.options.interval&&([t,e]=this._calculatePreviousRun(t,e),r=!t),t=new Ze(t,this.getTz()),this.options.startAt&&t&&t.getTime()<this.options.startAt.getTime()&&(t=this.options.startAt);let n=this._states.once||new Ze(t,this.getTz());return!r&&n!==this._states.once&&(n=n.increment(this._states.pattern,this.options,e)),this._states.once&&this._states.once.getTime()<=t.getTime()||n===null||this._states.maxRuns!==void 0&&this._states.maxRuns<=0||this._states.kill||this.options.stopAt&&n.getTime()>=this.options.stopAt.getTime()?null:n}_previous(t){let e=new Ze(t,this.getTz());this.options.stopAt&&e.getTime()>this.options.stopAt.getTime()&&(e=this.options.stopAt);let r=new Ze(e,this.getTz());return this._states.once?this._states.once.getTime()<e.getTime()?this._states.once:null:(r=r.decrement(this._states.pattern,this.options),r===null||this.options.startAt&&r.getTime()<this.options.startAt.getTime()?null:r)}_calculatePreviousRun(t,e){let r=new Ze(void 0,this.getTz()),n=t;if(this.options.startAt.getTime()<=r.getTime()){n=this.options.startAt;let i=n.getTime()+this.options.interval*1e3;for(;i<=r.getTime();)n=new Ze(n,this.getTz()).increment(this._states.pattern,this.options,!0),i=n.getTime()+this.options.interval*1e3;e=!0}return n===null&&(n=void 0),[n,e]}};var el={};se(el,{add:()=>Gn,addBusinessDays:()=>Ou,addDays:()=>et,addHours:()=>Iu,addISOWeekYears:()=>Nu,addMilliseconds:()=>Qn,addMinutes:()=>ls,addMonths:()=>en,addQuarters:()=>cs,addSeconds:()=>Pu,addWeeks:()=>Jn,addYears:()=>Lu,areIntervalsOverlapping:()=>jw,clamp:()=>Uw,closestIndexTo:()=>Fu,closestTo:()=>zw,compareAsc:()=>yt,compareDesc:()=>Hw,constructFrom:()=>$,constructNow:()=>de,daysToWeeks:()=>Ww,differenceInBusinessDays:()=>qw,differenceInCalendarDays:()=>ot,differenceInCalendarISOWeekYears:()=>$u,differenceInCalendarISOWeeks:()=>Yw,differenceInCalendarMonths:()=>Yi,differenceInCalendarQuarters:()=>us,differenceInCalendarWeeks:()=>Vi,differenceInCalendarYears:()=>Xn,differenceInDays:()=>fs,differenceInHours:()=>Ki,differenceInISOWeekYears:()=>Kw,differenceInMilliseconds:()=>ps,differenceInMinutes:()=>Gi,differenceInMonths:()=>Zn,differenceInQuarters:()=>Gw,differenceInSeconds:()=>on,differenceInWeeks:()=>Qw,differenceInYears:()=>Uu,eachDayOfInterval:()=>zu,eachHourOfInterval:()=>Jw,eachMinuteOfInterval:()=>Xw,eachMonthOfInterval:()=>Zw,eachQuarterOfInterval:()=>e0,eachWeekOfInterval:()=>t0,eachWeekendOfInterval:()=>ds,eachWeekendOfMonth:()=>r0,eachWeekendOfYear:()=>n0,eachYearOfInterval:()=>i0,endOfDay:()=>hs,endOfDecade:()=>o0,endOfHour:()=>s0,endOfISOWeek:()=>a0,endOfISOWeekYear:()=>l0,endOfMinute:()=>c0,endOfMonth:()=>ms,endOfQuarter:()=>u0,endOfSecond:()=>f0,endOfToday:()=>p0,endOfTomorrow:()=>h0,endOfWeek:()=>Wu,endOfYear:()=>Hu,endOfYesterday:()=>m0,format:()=>Ga,formatDate:()=>Ga,formatDistance:()=>Gu,formatDistanceStrict:()=>Qu,formatDistanceToNow:()=>E0,formatDistanceToNowStrict:()=>D0,formatDuration:()=>C0,formatISO:()=>O0,formatISO9075:()=>I0,formatISODuration:()=>M0,formatRFC3339:()=>N0,formatRFC7231:()=>P0,formatRelative:()=>L0,formatters:()=>Va,fromUnixTime:()=>_0,getDate:()=>Ju,getDay:()=>ni,getDayOfYear:()=>Yu,getDaysInMonth:()=>Xu,getDaysInYear:()=>R0,getDecade:()=>F0,getDefaultOptions:()=>ef,getHours:()=>A0,getISODay:()=>tf,getISOWeek:()=>bs,getISOWeekYear:()=>Mt,getISOWeeksInYear:()=>$0,getMilliseconds:()=>B0,getMinutes:()=>j0,getMonth:()=>U0,getOverlappingDaysInIntervals:()=>z0,getQuarter:()=>Ya,getSeconds:()=>H0,getTime:()=>W0,getUnixTime:()=>q0,getWeek:()=>ws,getWeekOfMonth:()=>Y0,getWeekYear:()=>ti,getWeeksInMonth:()=>V0,getYear:()=>K0,hoursToMilliseconds:()=>G0,hoursToMinutes:()=>Q0,hoursToSeconds:()=>J0,interval:()=>X0,intervalToDuration:()=>Z0,intlFormat:()=>eS,intlFormatDistance:()=>tS,isAfter:()=>rS,isBefore:()=>nS,isDate:()=>Au,isEqual:()=>iS,isExists:()=>oS,isFirstDayOfMonth:()=>sS,isFriday:()=>aS,isFuture:()=>lS,isLastDayOfMonth:()=>ju,isLeapYear:()=>Zu,isMatch:()=>cS,isMonday:()=>uS,isPast:()=>fS,isSameDay:()=>nn,isSameHour:()=>Vf,isSameISOWeek:()=>Kf,isSameISOWeekYear:()=>pS,isSameMinute:()=>Gf,isSameMonth:()=>Qf,isSameQuarter:()=>Jf,isSameSecond:()=>Xf,isSameWeek:()=>Ts,isSameYear:()=>Zf,isSaturday:()=>Du,isSunday:()=>Cu,isThisHour:()=>hS,isThisISOWeek:()=>mS,isThisMinute:()=>dS,isThisMonth:()=>gS,isThisQuarter:()=>yS,isThisSecond:()=>xS,isThisWeek:()=>bS,isThisYear:()=>wS,isThursday:()=>SS,isToday:()=>vS,isTomorrow:()=>kS,isTuesday:()=>TS,isValid:()=>ft,isWednesday:()=>ES,isWeekend:()=>tn,isWithinInterval:()=>DS,isYesterday:()=>CS,lastDayOfDecade:()=>OS,lastDayOfISOWeek:()=>IS,lastDayOfISOWeekYear:()=>MS,lastDayOfMonth:()=>rf,lastDayOfQuarter:()=>NS,lastDayOfWeek:()=>ep,lastDayOfYear:()=>PS,lightFormat:()=>LS,lightFormatters:()=>Zt,longFormatters:()=>ri,max:()=>_u,milliseconds:()=>_S,millisecondsToHours:()=>RS,millisecondsToMinutes:()=>FS,millisecondsToSeconds:()=>AS,min:()=>Ru,minutesToHours:()=>$S,minutesToMilliseconds:()=>BS,minutesToSeconds:()=>jS,monthsToQuarters:()=>US,monthsToYears:()=>zS,nextDay:()=>bt,nextFriday:()=>HS,nextMonday:()=>WS,nextSaturday:()=>qS,nextSunday:()=>YS,nextThursday:()=>VS,nextTuesday:()=>KS,nextWednesday:()=>GS,parse:()=>Yf,parseISO:()=>JS,parseJSON:()=>XS,parsers:()=>qf,previousDay:()=>wt,previousFriday:()=>ZS,previousMonday:()=>ev,previousSaturday:()=>tv,previousSunday:()=>rv,previousThursday:()=>nv,previousTuesday:()=>iv,previousWednesday:()=>ov,quartersToMonths:()=>sv,quartersToYears:()=>av,roundToNearestHours:()=>lv,roundToNearestMinutes:()=>cv,secondsToHours:()=>uv,secondsToMilliseconds:()=>fv,secondsToMinutes:()=>pv,set:()=>hv,setDate:()=>mv,setDay:()=>ii,setDayOfYear:()=>dv,setDefaultOptions:()=>gv,setHours:()=>yv,setISODay:()=>If,setISOWeek:()=>vf,setISOWeekYear:()=>Mu,setMilliseconds:()=>xv,setMinutes:()=>bv,setMonth:()=>Es,setQuarter:()=>wv,setSeconds:()=>Sv,setWeek:()=>wf,setWeekYear:()=>vv,setYear:()=>kv,startOfDay:()=>rn,startOfDecade:()=>Tv,startOfHour:()=>Qa,startOfISOWeek:()=>Ge,startOfISOWeekYear:()=>Xt,startOfMinute:()=>Ja,startOfMonth:()=>ei,startOfQuarter:()=>sn,startOfSecond:()=>Xa,startOfToday:()=>Ev,startOfTomorrow:()=>Dv,startOfWeek:()=>Le,startOfWeekYear:()=>Qi,startOfYear:()=>gs,startOfYesterday:()=>Cv,sub:()=>Ov,subBusinessDays:()=>Iv,subDays:()=>oi,subHours:()=>Mv,subISOWeekYears:()=>Bu,subMilliseconds:()=>Nv,subMinutes:()=>Pv,subMonths:()=>rp,subQuarters:()=>Lv,subSeconds:()=>_v,subWeeks:()=>Rv,subYears:()=>Fv,toDate:()=>b,transpose:()=>nf,weeksToDays:()=>Av,yearsToDays:()=>$v,yearsToMonths:()=>Bv,yearsToQuarters:()=>jv});var wu=7,qa=365.2425,JN=Math.pow(10,8)*24*60*60*1e3,BG=-JN,Zr=6048e5,Su=864e5,gt=6e4,Jt=36e5,os=1e3,hd=525600,Kn=43200,ss=1440,vu=60,ku=3,Tu=12,Eu=4,qi=3600,as=60,bu=qi*24,Fw=bu*7,md=bu*365.2425,dd=md/12,Aw=dd*3,gd=Symbol.for("constructDateFrom");function $(t,e){return typeof t=="function"?t(e):t&&typeof t=="object"&&gd in t?t[gd](e):t instanceof Date?new t.constructor(e):new Date(e)}o($,"constructFrom");var zG=$;function b(t,e){return $(e||t,t)}o(b,"toDate");var YG=b;function et(t,e,r){let n=b(t,r?.in);return isNaN(e)?$(r?.in||t,NaN):(e&&n.setDate(n.getDate()+e),n)}o(et,"addDays");var JG=et;function en(t,e,r){let n=b(t,r?.in);if(isNaN(e))return $(r?.in||t,NaN);if(!e)return n;let i=n.getDate(),s=$(r?.in||t,n.getTime());s.setMonth(n.getMonth()+e+1,0);let a=s.getDate();return i>=a?s:(n.setFullYear(s.getFullYear(),s.getMonth(),i),n)}o(en,"addMonths");var rQ=en;function Gn(t,e,r){let{years:n=0,months:i=0,weeks:s=0,days:a=0,hours:l=0,minutes:c=0,seconds:u=0}=e,f=b(t,r?.in),p=i||n?en(f,i+n*12):f,h=a||s?et(p,a+s*7):p,m=c+l*60,g=(u+m*60)*1e3;return $(r?.in||t,+h+g)}o(Gn,"add");var cQ=Gn;function Du(t,e){return b(t,e?.in).getDay()===6}o(Du,"isSaturday");var hQ=Du;function Cu(t,e){return b(t,e?.in).getDay()===0}o(Cu,"isSunday");var yQ=Cu;function tn(t,e){let r=b(t,e?.in).getDay();return r===0||r===6}o(tn,"isWeekend");var SQ=tn;function Ou(t,e,r){let n=b(t,r?.in),i=tn(n,r);if(isNaN(e))return $(r?.in,NaN);let s=n.getHours(),a=e<0?-1:1,l=Math.trunc(e/5);n.setDate(n.getDate()+l*7);let c=Math.abs(e%5);for(;c>0;)n.setDate(n.getDate()+a),tn(n,r)||(c-=1);return i&&tn(n,r)&&e!==0&&(Du(n,r)&&n.setDate(n.getDate()+(a<0?2:-1)),Cu(n,r)&&n.setDate(n.getDate()+(a<0?1:-2))),n.setHours(s),n}o(Ou,"addBusinessDays");var IQ=Ou;function Qn(t,e,r){return $(r?.in||t,+b(t)+e)}o(Qn,"addMilliseconds");var _Q=Qn;function Iu(t,e,r){return Qn(t,e*Jt,r)}o(Iu,"addHours");var BQ=Iu;var $w={};function Oe(){return $w}o(Oe,"getDefaultOptions");function Bw(t){$w=t}o(Bw,"setDefaultOptions");function Le(t,e){let r=Oe(),n=e?.weekStartsOn??e?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,i=b(t,e?.in),s=i.getDay(),a=(s<n?7:0)+s-n;return i.setDate(i.getDate()-a),i.setHours(0,0,0,0),i}o(Le,"startOfWeek");var YQ=Le;function Ge(t,e){return Le(t,{...e,weekStartsOn:1})}o(Ge,"startOfISOWeek");var QQ=Ge;function Mt(t,e){let r=b(t,e?.in),n=r.getFullYear(),i=$(r,0);i.setFullYear(n+1,0,4),i.setHours(0,0,0,0);let s=Ge(i),a=$(r,0);a.setFullYear(n,0,4),a.setHours(0,0,0,0);let l=Ge(a);return r.getTime()>=s.getTime()?n+1:r.getTime()>=l.getTime()?n:n-1}o(Mt,"getISOWeekYear");var rJ=Mt;function Ue(t){let e=b(t),r=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return r.setUTCFullYear(e.getFullYear()),+t-+r}o(Ue,"getTimezoneOffsetInMilliseconds");function te(t,...e){let r=$.bind(null,t||e.find(n=>typeof n=="object"));return e.map(r)}o(te,"normalizeDates");function rn(t,e){let r=b(t,e?.in);return r.setHours(0,0,0,0),r}o(rn,"startOfDay");var pJ=rn;function ot(t,e,r){let[n,i]=te(r?.in,t,e),s=rn(n),a=rn(i),l=+s-Ue(s),c=+a-Ue(a);return Math.round((l-c)/Su)}o(ot,"differenceInCalendarDays");var bJ=ot;function Xt(t,e){let r=Mt(t,e),n=$(e?.in||t,0);return n.setFullYear(r,0,4),n.setHours(0,0,0,0),Ge(n)}o(Xt,"startOfISOWeekYear");var EJ=Xt;function Mu(t,e,r){let n=b(t,r?.in),i=ot(n,Xt(n,r)),s=$(r?.in||t,0);return s.setFullYear(e,0,4),s.setHours(0,0,0,0),n=Xt(s),n.setDate(n.getDate()+i),n}o(Mu,"setISOWeekYear");var PJ=Mu;function Nu(t,e,r){return Mu(t,Mt(t,r)+e,r)}o(Nu,"addISOWeekYears");var AJ=Nu;function ls(t,e,r){let n=b(t,r?.in);return n.setTime(n.getTime()+e*gt),n}o(ls,"addMinutes");var zJ=ls;function cs(t,e,r){return en(t,e*3,r)}o(cs,"addQuarters");var YJ=cs;function Pu(t,e,r){return Qn(t,e*1e3,r)}o(Pu,"addSeconds");var QJ=Pu;function Jn(t,e,r){return et(t,e*7,r)}o(Jn,"addWeeks");var eX=Jn;function Lu(t,e,r){return en(t,e*12,r)}o(Lu,"addYears");var iX=Lu;function jw(t,e,r){let[n,i]=[+b(t.start,r?.in),+b(t.end,r?.in)].sort((l,c)=>l-c),[s,a]=[+b(e.start,r?.in),+b(e.end,r?.in)].sort((l,c)=>l-c);return r?.inclusive?n<=a&&s<=i:n<a&&s<i}o(jw,"areIntervalsOverlapping");var lX=jw;function _u(t,e){let r,n=e?.in;return t.forEach(i=>{!n&&typeof i=="object"&&(n=$.bind(null,i));let s=b(i,n);(!r||r<s||isNaN(+s))&&(r=s)}),$(n,r||NaN)}o(_u,"max");var hX=_u;function Ru(t,e){let r,n=e?.in;return t.forEach(i=>{!n&&typeof i=="object"&&(n=$.bind(null,i));let s=b(i,n);(!r||r>s||isNaN(+s))&&(r=s)}),$(n,r||NaN)}o(Ru,"min");var xX=Ru;function Uw(t,e,r){let[n,i,s]=te(r?.in,t,e.start,e.end);return Ru([_u([n,i],r),s],r)}o(Uw,"clamp");var TX=Uw;function Fu(t,e){let r=+b(t);if(isNaN(r))return NaN;let n,i;return e.forEach((s,a)=>{let l=b(s);if(isNaN(+l)){n=NaN,i=NaN;return}let c=Math.abs(r-+l);(n==null||c<i)&&(n=a,i=c)}),n}o(Fu,"closestIndexTo");var OX=Fu;function zw(t,e,r){let[n,...i]=te(r?.in,t,...e),s=Fu(n,i);if(typeof s=="number"&&isNaN(s))return $(n,NaN);if(s!==void 0)return i[s]}o(zw,"closestTo");var _X=zw;function yt(t,e){let r=+b(t)-+b(e);return r<0?-1:r>0?1:r}o(yt,"compareAsc");var $X=yt;function Hw(t,e){let r=+b(t)-+b(e);return r>0?-1:r<0?1:r}o(Hw,"compareDesc");var zX=Hw;function de(t){return $(t,Date.now())}o(de,"constructNow");var YX=de;function Ww(t){let e=Math.trunc(t/7);return e===0?0:e}o(Ww,"daysToWeeks");var QX=Ww;function nn(t,e,r){let[n,i]=te(r?.in,t,e);return+rn(n)==+rn(i)}o(nn,"isSameDay");var tZ=nn;function Au(t){return t instanceof Date||typeof t=="object"&&Object.prototype.toString.call(t)==="[object Date]"}o(Au,"isDate");var iZ=Au;function ft(t){return!(!Au(t)&&typeof t!="number"||isNaN(+b(t)))}o(ft,"isValid");var cZ=ft;function qw(t,e,r){let[n,i]=te(r?.in,t,e);if(!ft(n)||!ft(i))return NaN;let s=ot(n,i),a=s<0?-1:1,l=Math.trunc(s/7),c=l*5,u=et(i,l*7);for(;!nn(n,u);)c+=tn(u,r)?0:a,u=et(u,a);return c===0?0:c}o(qw,"differenceInBusinessDays");var xZ=qw;function $u(t,e,r){let[n,i]=te(r?.in,t,e);return Mt(n,r)-Mt(i,r)}o($u,"differenceInCalendarISOWeekYears");var kZ=$u;function Yw(t,e,r){let[n,i]=te(r?.in,t,e),s=Ge(n),a=Ge(i),l=+s-Ue(s),c=+a-Ue(a);return Math.round((l-c)/Zr)}o(Yw,"differenceInCalendarISOWeeks");var MZ=Yw;function Yi(t,e,r){let[n,i]=te(r?.in,t,e),s=n.getFullYear()-i.getFullYear(),a=n.getMonth()-i.getMonth();return s*12+a}o(Yi,"differenceInCalendarMonths");var _Z=Yi;function Ya(t,e){let r=b(t,e?.in);return Math.trunc(r.getMonth()/3)+1}o(Ya,"getQuarter");var $Z=Ya;function us(t,e,r){let[n,i]=te(r?.in,t,e),s=n.getFullYear()-i.getFullYear(),a=Ya(n)-Ya(i);return s*4+a}o(us,"differenceInCalendarQuarters");var HZ=us;function Vi(t,e,r){let[n,i]=te(r?.in,t,e),s=Le(n,r),a=Le(i,r),l=+s-Ue(s),c=+a-Ue(a);return Math.round((l-c)/Zr)}o(Vi,"differenceInCalendarWeeks");var QZ=Vi;function Xn(t,e,r){let[n,i]=te(r?.in,t,e);return n.getFullYear()-i.getFullYear()}o(Xn,"differenceInCalendarYears");var eee=Xn;function fs(t,e,r){let[n,i]=te(r?.in,t,e),s=Vw(n,i),a=Math.abs(ot(n,i));n.setDate(n.getDate()-s*a);let l=+(Vw(n,i)===-s),c=s*(a-l);return c===0?0:c}o(fs,"differenceInDays");function Vw(t,e){let r=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 r<0?-1:r>0?1:r}o(Vw,"compareLocalAsc");var oee=fs;function xt(t){return e=>{let n=(t?Math[t]:Math.trunc)(e);return n===0?0:n}}o(xt,"getRoundingMethod");function Ki(t,e,r){let[n,i]=te(r?.in,t,e),s=(+n-+i)/Jt;return xt(r?.roundingMethod)(s)}o(Ki,"differenceInHours");var hee=Ki;function Bu(t,e,r){return Nu(t,-e,r)}o(Bu,"subISOWeekYears");var yee=Bu;function Kw(t,e,r){let[n,i]=te(r?.in,t,e),s=yt(n,i),a=Math.abs($u(n,i,r)),l=Bu(n,s*a,r),c=+(yt(l,i)===-s),u=s*(a-c);return u===0?0:u}o(Kw,"differenceInISOWeekYears");var Tee=Kw;function ps(t,e){return+b(t)-+b(e)}o(ps,"differenceInMilliseconds");var Oee=ps;function Gi(t,e,r){let n=ps(t,e)/gt;return xt(r?.roundingMethod)(n)}o(Gi,"differenceInMinutes");var _ee=Gi;function hs(t,e){let r=b(t,e?.in);return r.setHours(23,59,59,999),r}o(hs,"endOfDay");var $ee=hs;function ms(t,e){let r=b(t,e?.in),n=r.getMonth();return r.setFullYear(r.getFullYear(),n+1,0),r.setHours(23,59,59,999),r}o(ms,"endOfMonth");var zee=ms;function ju(t,e){let r=b(t,e?.in);return+hs(r,e)==+ms(r,e)}o(ju,"isLastDayOfMonth");var Kee=ju;function Zn(t,e,r){let[n,i,s]=te(r?.in,t,t,e),a=yt(i,s),l=Math.abs(Yi(i,s));if(l<1)return 0;i.getMonth()===1&&i.getDate()>27&&i.setDate(30),i.setMonth(i.getMonth()-a*l);let c=yt(i,s)===-a;ju(n)&&l===1&&yt(n,s)===1&&(c=!1);let u=a*(l-+c);return u===0?0:u}o(Zn,"differenceInMonths");var tte=Zn;function Gw(t,e,r){let n=Zn(t,e,r)/3;return xt(r?.roundingMethod)(n)}o(Gw,"differenceInQuarters");var ste=Gw;function on(t,e,r){let n=ps(t,e)/1e3;return xt(r?.roundingMethod)(n)}o(on,"differenceInSeconds");var fte=on;function Qw(t,e,r){let n=fs(t,e,r)/7;return xt(r?.roundingMethod)(n)}o(Qw,"differenceInWeeks");var gte=Qw;function Uu(t,e,r){let[n,i]=te(r?.in,t,e),s=yt(n,i),a=Math.abs(Xn(n,i));n.setFullYear(1584),i.setFullYear(1584);let l=yt(n,i)===-s,c=s*(a-+l);return c===0?0:c}o(Uu,"differenceInYears");var vte=Uu;function st(t,e){let[r,n]=te(t,e.start,e.end);return{start:r,end:n}}o(st,"normalizeInterval");function zu(t,e){let{start:r,end:n}=st(e?.in,t),i=+r>+n,s=i?+r:+n,a=i?n:r;a.setHours(0,0,0,0);let l=e?.step??1;if(!l)return[];l<0&&(l=-l,i=!i);let c=[];for(;+a<=s;)c.push($(r,a)),a.setDate(a.getDate()+l),a.setHours(0,0,0,0);return i?c.reverse():c}o(zu,"eachDayOfInterval");var Mte=zu;function Jw(t,e){let{start:r,end:n}=st(e?.in,t),i=+r>+n,s=i?+r:+n,a=i?n:r;a.setMinutes(0,0,0);let l=e?.step??1;if(!l)return[];l<0&&(l=-l,i=!i);let c=[];for(;+a<=s;)c.push($(r,a)),a.setHours(a.getHours()+l);return i?c.reverse():c}o(Jw,"eachHourOfInterval");var Rte=Jw;function Xw(t,e){let{start:r,end:n}=st(e?.in,t);r.setSeconds(0,0);let i=+r>+n,s=i?+r:+n,a=i?n:r,l=e?.step??1;if(!l)return[];l<0&&(l=-l,i=!i);let c=[];for(;+a<=s;)c.push($(r,a)),a=ls(a,l);return i?c.reverse():c}o(Xw,"eachMinuteOfInterval");var Ute=Xw;function Zw(t,e){let{start:r,end:n}=st(e?.in,t),i=+r>+n,s=i?+r:+n,a=i?n:r;a.setHours(0,0,0,0),a.setDate(1);let l=e?.step??1;if(!l)return[];l<0&&(l=-l,i=!i);let c=[];for(;+a<=s;)c.push($(r,a)),a.setMonth(a.getMonth()+l);return i?c.reverse():c}o(Zw,"eachMonthOfInterval");var Yte=Zw;function sn(t,e){let r=b(t,e?.in),n=r.getMonth(),i=n-n%3;return r.setMonth(i,1),r.setHours(0,0,0,0),r}o(sn,"startOfQuarter");var Qte=sn;function e0(t,e){let{start:r,end:n}=st(e?.in,t),i=+r>+n,s=i?+sn(r):+sn(n),a=i?sn(n):sn(r),l=e?.step??1;if(!l)return[];l<0&&(l=-l,i=!i);let c=[];for(;+a<=s;)c.push($(r,a)),a=cs(a,l);return i?c.reverse():c}o(e0,"eachQuarterOfInterval");var nre=e0;function t0(t,e){let{start:r,end:n}=st(e?.in,t),i=+r>+n,s=i?Le(n,e):Le(r,e),a=i?Le(r,e):Le(n,e);s.setHours(15),a.setHours(15);let l=+a.getTime(),c=s,u=e?.step??1;if(!u)return[];u<0&&(u=-u,i=!i);let f=[];for(;+c<=l;)c.setHours(0),f.push($(r,c)),c=Jn(c,u),c.setHours(15);return i?f.reverse():f}o(t0,"eachWeekOfInterval");var ure=t0;function ds(t,e){let{start:r,end:n}=st(e?.in,t),i=zu({start:r,end:n},e),s=[],a=0;for(;a<i.length;){let l=i[a++];tn(l)&&s.push($(r,l))}return s}o(ds,"eachWeekendOfInterval");var yre=ds;function ei(t,e){let r=b(t,e?.in);return r.setDate(1),r.setHours(0,0,0,0),r}o(ei,"startOfMonth");var Sre=ei;function r0(t,e){let r=ei(t,e),n=ms(t,e);return ds({start:r,end:n},e)}o(r0,"eachWeekendOfMonth");var Cre=r0;function Hu(t,e){let r=b(t,e?.in),n=r.getFullYear();return r.setFullYear(n+1,0,0),r.setHours(23,59,59,999),r}o(Hu,"endOfYear");var Nre=Hu;function gs(t,e){let r=b(t,e?.in);return r.setFullYear(r.getFullYear(),0,1),r.setHours(0,0,0,0),r}o(gs,"startOfYear");var Rre=gs;function n0(t,e){let r=gs(t,e),n=Hu(t,e);return ds({start:r,end:n},e)}o(n0,"eachWeekendOfYear");var Ure=n0;function i0(t,e){let{start:r,end:n}=st(e?.in,t),i=+r>+n,s=i?+r:+n,a=i?n:r;a.setHours(0,0,0,0),a.setMonth(0,1);let l=e?.step??1;if(!l)return[];l<0&&(l=-l,i=!i);let c=[];for(;+a<=s;)c.push($(r,a)),a.setFullYear(a.getFullYear()+l);return i?c.reverse():c}o(i0,"eachYearOfInterval");var Yre=i0;function o0(t,e){let r=b(t,e?.in),n=r.getFullYear(),i=9+Math.floor(n/10)*10;return r.setFullYear(i,11,31),r.setHours(23,59,59,999),r}o(o0,"endOfDecade");var Qre=o0;function s0(t,e){let r=b(t,e?.in);return r.setMinutes(59,59,999),r}o(s0,"endOfHour");var ene=s0;function Wu(t,e){let r=Oe(),n=e?.weekStartsOn??e?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,i=b(t,e?.in),s=i.getDay(),a=(s<n?-7:0)+6-(s-n);return i.setDate(i.getDate()+a),i.setHours(23,59,59,999),i}o(Wu,"endOfWeek");var one=Wu;function a0(t,e){return Wu(t,{...e,weekStartsOn:1})}o(a0,"endOfISOWeek");var cne=a0;function l0(t,e){let r=Mt(t,e),n=$(e?.in||t,0);n.setFullYear(r+1,0,4),n.setHours(0,0,0,0);let i=Ge(n,e);return i.setMilliseconds(i.getMilliseconds()-1),i}o(l0,"endOfISOWeekYear");var dne=l0;function c0(t,e){let r=b(t,e?.in);return r.setSeconds(59,999),r}o(c0,"endOfMinute");var bne=c0;function u0(t,e){let r=b(t,e?.in),n=r.getMonth(),i=n-n%3+3;return r.setMonth(i,0),r.setHours(23,59,59,999),r}o(u0,"endOfQuarter");var kne=u0;function f0(t,e){let r=b(t,e?.in);return r.setMilliseconds(999),r}o(f0,"endOfSecond");var Cne=f0;function p0(t){return hs(Date.now(),t)}o(p0,"endOfToday");var Nne=p0;function h0(t){let e=de(t?.in),r=e.getFullYear(),n=e.getMonth(),i=e.getDate(),s=de(t?.in);return s.setFullYear(r,n,i+1),s.setHours(23,59,59,999),t?.in?t.in(s):s}o(h0,"endOfTomorrow");var Rne=h0;function m0(t){let e=de(t?.in),r=$(t?.in,0);return r.setFullYear(e.getFullYear(),e.getMonth(),e.getDate()-1),r.setHours(23,59,59,999),r}o(m0,"endOfYesterday");var jne=m0;var XN={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"}},d0=o((t,e,r)=>{let n,i=XN[t];return typeof i=="string"?n=i:e===1?n=i.one:n=i.other.replace("{{count}}",e.toString()),r?.addSuffix?r.comparison&&r.comparison>0?"in "+n:n+" ago":n},"formatDistance");function qu(t){return(e={})=>{let r=e.width?String(e.width):t.defaultWidth;return t.formats[r]||t.formats[t.defaultWidth]}}o(qu,"buildFormatLongFn");var ZN={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},eP={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},tP={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},g0={date:qu({formats:ZN,defaultWidth:"full"}),time:qu({formats:eP,defaultWidth:"full"}),dateTime:qu({formats:tP,defaultWidth:"full"})};var rP={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},y0=o((t,e,r,n)=>rP[t],"formatRelative");function ys(t){return(e,r)=>{let n=r?.context?String(r.context):"standalone",i;if(n==="formatting"&&t.formattingValues){let a=t.defaultFormattingWidth||t.defaultWidth,l=r?.width?String(r.width):a;i=t.formattingValues[l]||t.formattingValues[a]}else{let a=t.defaultWidth,l=r?.width?String(r.width):t.defaultWidth;i=t.values[l]||t.values[a]}let s=t.argumentCallback?t.argumentCallback(e):e;return i[s]}}o(ys,"buildLocalizeFn");var nP={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},iP={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},oP={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"]},sP={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"]},aP={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"}},lP={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"}},cP=o((t,e)=>{let r=Number(t),n=r%100;if(n>20||n<10)switch(n%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},"ordinalNumber"),x0={ordinalNumber:cP,era:ys({values:nP,defaultWidth:"wide"}),quarter:ys({values:iP,defaultWidth:"wide",argumentCallback:o(t=>t-1,"argumentCallback")}),month:ys({values:oP,defaultWidth:"wide"}),day:ys({values:sP,defaultWidth:"wide"}),dayPeriod:ys({values:aP,defaultWidth:"wide",formattingValues:lP,defaultFormattingWidth:"wide"})};function xs(t){return(e,r={})=>{let n=r.width,i=n&&t.matchPatterns[n]||t.matchPatterns[t.defaultMatchWidth],s=e.match(i);if(!s)return null;let a=s[0],l=n&&t.parsePatterns[n]||t.parsePatterns[t.defaultParseWidth],c=Array.isArray(l)?fP(l,p=>p.test(a)):uP(l,p=>p.test(a)),u;u=t.valueCallback?t.valueCallback(c):c,u=r.valueCallback?r.valueCallback(u):u;let f=e.slice(a.length);return{value:u,rest:f}}}o(xs,"buildMatchFn");function uP(t,e){for(let r in t)if(Object.prototype.hasOwnProperty.call(t,r)&&e(t[r]))return r}o(uP,"findKey");function fP(t,e){for(let r=0;r<t.length;r++)if(e(t[r]))return r}o(fP,"findIndex");function b0(t){return(e,r={})=>{let n=e.match(t.matchPattern);if(!n)return null;let i=n[0],s=e.match(t.parsePattern);if(!s)return null;let a=t.valueCallback?t.valueCallback(s[0]):s[0];a=r.valueCallback?r.valueCallback(a):a;let l=e.slice(i.length);return{value:a,rest:l}}}o(b0,"buildMatchPatternFn");var pP=/^(\d+)(th|st|nd|rd)?/i,hP=/\d+/i,mP={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},dP={any:[/^b/i,/^(a|c)/i]},gP={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},yP={any:[/1/i,/2/i,/3/i,/4/i]},xP={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},bP={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]},wP={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},SP={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]},vP={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},kP={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}},w0={ordinalNumber:b0({matchPattern:pP,parsePattern:hP,valueCallback:o(t=>parseInt(t,10),"valueCallback")}),era:xs({matchPatterns:mP,defaultMatchWidth:"wide",parsePatterns:dP,defaultParseWidth:"any"}),quarter:xs({matchPatterns:gP,defaultMatchWidth:"wide",parsePatterns:yP,defaultParseWidth:"any",valueCallback:o(t=>t+1,"valueCallback")}),month:xs({matchPatterns:xP,defaultMatchWidth:"wide",parsePatterns:bP,defaultParseWidth:"any"}),day:xs({matchPatterns:wP,defaultMatchWidth:"wide",parsePatterns:SP,defaultParseWidth:"any"}),dayPeriod:xs({matchPatterns:vP,defaultMatchWidth:"any",parsePatterns:kP,defaultParseWidth:"any"})};var Bt={code:"en-US",formatDistance:d0,formatLong:g0,formatRelative:y0,localize:x0,match:w0,options:{weekStartsOn:0,firstWeekContainsDate:1}},die=Bt;function Yu(t,e){let r=b(t,e?.in);return ot(r,gs(r))+1}o(Yu,"getDayOfYear");var vie=Yu;function bs(t,e){let r=b(t,e?.in),n=+Ge(r)-+Xt(r);return Math.round(n/Zr)+1}o(bs,"getISOWeek");var Iie=bs;function ti(t,e){let r=b(t,e?.in),n=r.getFullYear(),i=Oe(),s=e?.firstWeekContainsDate??e?.locale?.options?.firstWeekContainsDate??i.firstWeekContainsDate??i.locale?.options?.firstWeekContainsDate??1,a=$(e?.in||t,0);a.setFullYear(n+1,0,s),a.setHours(0,0,0,0);let l=Le(a,e),c=$(e?.in||t,0);c.setFullYear(n,0,s),c.setHours(0,0,0,0);let u=Le(c,e);return+r>=+l?n+1:+r>=+u?n:n-1}o(ti,"getWeekYear");var Fie=ti;function Qi(t,e){let r=Oe(),n=e?.firstWeekContainsDate??e?.locale?.options?.firstWeekContainsDate??r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,i=ti(t,e),s=$(e?.in||t,0);return s.setFullYear(i,0,n),s.setHours(0,0,0,0),Le(s,e)}o(Qi,"startOfWeekYear");var Hie=Qi;function ws(t,e){let r=b(t,e?.in),n=+Le(r,e)-+Qi(r,e);return Math.round(n/Zr)+1}o(ws,"getWeek");var Qie=ws;function X(t,e){let r=t<0?"-":"",n=Math.abs(t).toString().padStart(e,"0");return r+n}o(X,"addLeadingZeros");var Zt={y(t,e){let r=t.getFullYear(),n=r>0?r:1-r;return X(e==="yy"?n%100:n,e.length)},M(t,e){let r=t.getMonth();return e==="M"?String(r+1):X(r+1,2)},d(t,e){return X(t.getDate(),e.length)},a(t,e){let r=t.getHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];default:return r==="am"?"a.m.":"p.m."}},h(t,e){return X(t.getHours()%12||12,e.length)},H(t,e){return X(t.getHours(),e.length)},m(t,e){return X(t.getMinutes(),e.length)},s(t,e){return X(t.getSeconds(),e.length)},S(t,e){let r=e.length,n=t.getMilliseconds(),i=Math.trunc(n*Math.pow(10,r-3));return X(i,e.length)}};var Ss={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Va={G:o(function(t,e,r){let n=t.getFullYear()>0?1:0;switch(e){case"G":case"GG":case"GGG":return r.era(n,{width:"abbreviated"});case"GGGGG":return r.era(n,{width:"narrow"});default:return r.era(n,{width:"wide"})}},"G"),y:o(function(t,e,r){if(e==="yo"){let n=t.getFullYear(),i=n>0?n:1-n;return r.ordinalNumber(i,{unit:"year"})}return Zt.y(t,e)},"y"),Y:o(function(t,e,r,n){let i=ti(t,n),s=i>0?i:1-i;if(e==="YY"){let a=s%100;return X(a,2)}return e==="Yo"?r.ordinalNumber(s,{unit:"year"}):X(s,e.length)},"Y"),R:o(function(t,e){let r=Mt(t);return X(r,e.length)},"R"),u:o(function(t,e){let r=t.getFullYear();return X(r,e.length)},"u"),Q:o(function(t,e,r){let n=Math.ceil((t.getMonth()+1)/3);switch(e){case"Q":return String(n);case"QQ":return X(n,2);case"Qo":return r.ordinalNumber(n,{unit:"quarter"});case"QQQ":return r.quarter(n,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(n,{width:"narrow",context:"formatting"});default:return r.quarter(n,{width:"wide",context:"formatting"})}},"Q"),q:o(function(t,e,r){let n=Math.ceil((t.getMonth()+1)/3);switch(e){case"q":return String(n);case"qq":return X(n,2);case"qo":return r.ordinalNumber(n,{unit:"quarter"});case"qqq":return r.quarter(n,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(n,{width:"narrow",context:"standalone"});default:return r.quarter(n,{width:"wide",context:"standalone"})}},"q"),M:o(function(t,e,r){let n=t.getMonth();switch(e){case"M":case"MM":return Zt.M(t,e);case"Mo":return r.ordinalNumber(n+1,{unit:"month"});case"MMM":return r.month(n,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(n,{width:"narrow",context:"formatting"});default:return r.month(n,{width:"wide",context:"formatting"})}},"M"),L:o(function(t,e,r){let n=t.getMonth();switch(e){case"L":return String(n+1);case"LL":return X(n+1,2);case"Lo":return r.ordinalNumber(n+1,{unit:"month"});case"LLL":return r.month(n,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(n,{width:"narrow",context:"standalone"});default:return r.month(n,{width:"wide",context:"standalone"})}},"L"),w:o(function(t,e,r,n){let i=ws(t,n);return e==="wo"?r.ordinalNumber(i,{unit:"week"}):X(i,e.length)},"w"),I:o(function(t,e,r){let n=bs(t);return e==="Io"?r.ordinalNumber(n,{unit:"week"}):X(n,e.length)},"I"),d:o(function(t,e,r){return e==="do"?r.ordinalNumber(t.getDate(),{unit:"date"}):Zt.d(t,e)},"d"),D:o(function(t,e,r){let n=Yu(t);return e==="Do"?r.ordinalNumber(n,{unit:"dayOfYear"}):X(n,e.length)},"D"),E:o(function(t,e,r){let n=t.getDay();switch(e){case"E":case"EE":case"EEE":return r.day(n,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(n,{width:"short",context:"formatting"});default:return r.day(n,{width:"wide",context:"formatting"})}},"E"),e:o(function(t,e,r,n){let i=t.getDay(),s=(i-n.weekStartsOn+8)%7||7;switch(e){case"e":return String(s);case"ee":return X(s,2);case"eo":return r.ordinalNumber(s,{unit:"day"});case"eee":return r.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(i,{width:"short",context:"formatting"});default:return r.day(i,{width:"wide",context:"formatting"})}},"e"),c:o(function(t,e,r,n){let i=t.getDay(),s=(i-n.weekStartsOn+8)%7||7;switch(e){case"c":return String(s);case"cc":return X(s,e.length);case"co":return r.ordinalNumber(s,{unit:"day"});case"ccc":return r.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(i,{width:"narrow",context:"standalone"});case"cccccc":return r.day(i,{width:"short",context:"standalone"});default:return r.day(i,{width:"wide",context:"standalone"})}},"c"),i:o(function(t,e,r){let n=t.getDay(),i=n===0?7:n;switch(e){case"i":return String(i);case"ii":return X(i,e.length);case"io":return r.ordinalNumber(i,{unit:"day"});case"iii":return r.day(n,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(n,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(n,{width:"short",context:"formatting"});default:return r.day(n,{width:"wide",context:"formatting"})}},"i"),a:o(function(t,e,r){let i=t.getHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(i,{width:"narrow",context:"formatting"});default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},"a"),b:o(function(t,e,r){let n=t.getHours(),i;switch(n===12?i=Ss.noon:n===0?i=Ss.midnight:i=n/12>=1?"pm":"am",e){case"b":case"bb":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(i,{width:"narrow",context:"formatting"});default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},"b"),B:o(function(t,e,r){let n=t.getHours(),i;switch(n>=17?i=Ss.evening:n>=12?i=Ss.afternoon:n>=4?i=Ss.morning:i=Ss.night,e){case"B":case"BB":case"BBB":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(i,{width:"narrow",context:"formatting"});default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},"B"),h:o(function(t,e,r){if(e==="ho"){let n=t.getHours()%12;return n===0&&(n=12),r.ordinalNumber(n,{unit:"hour"})}return Zt.h(t,e)},"h"),H:o(function(t,e,r){return e==="Ho"?r.ordinalNumber(t.getHours(),{unit:"hour"}):Zt.H(t,e)},"H"),K:o(function(t,e,r){let n=t.getHours()%12;return e==="Ko"?r.ordinalNumber(n,{unit:"hour"}):X(n,e.length)},"K"),k:o(function(t,e,r){let n=t.getHours();return n===0&&(n=24),e==="ko"?r.ordinalNumber(n,{unit:"hour"}):X(n,e.length)},"k"),m:o(function(t,e,r){return e==="mo"?r.ordinalNumber(t.getMinutes(),{unit:"minute"}):Zt.m(t,e)},"m"),s:o(function(t,e,r){return e==="so"?r.ordinalNumber(t.getSeconds(),{unit:"second"}):Zt.s(t,e)},"s"),S:o(function(t,e){return Zt.S(t,e)},"S"),X:o(function(t,e,r){let n=t.getTimezoneOffset();if(n===0)return"Z";switch(e){case"X":return v0(n);case"XXXX":case"XX":return Ji(n);default:return Ji(n,":")}},"X"),x:o(function(t,e,r){let n=t.getTimezoneOffset();switch(e){case"x":return v0(n);case"xxxx":case"xx":return Ji(n);default:return Ji(n,":")}},"x"),O:o(function(t,e,r){let n=t.getTimezoneOffset();switch(e){case"O":case"OO":case"OOO":return"GMT"+S0(n,":");default:return"GMT"+Ji(n,":")}},"O"),z:o(function(t,e,r){let n=t.getTimezoneOffset();switch(e){case"z":case"zz":case"zzz":return"GMT"+S0(n,":");default:return"GMT"+Ji(n,":")}},"z"),t:o(function(t,e,r){let n=Math.trunc(+t/1e3);return X(n,e.length)},"t"),T:o(function(t,e,r){return X(+t,e.length)},"T")};function S0(t,e=""){let r=t>0?"-":"+",n=Math.abs(t),i=Math.trunc(n/60),s=n%60;return s===0?r+String(i):r+String(i)+e+X(s,2)}o(S0,"formatTimezoneShort");function v0(t,e){return t%60===0?(t>0?"-":"+")+X(Math.abs(t)/60,2):Ji(t,e)}o(v0,"formatTimezoneWithOptionalMinutes");function Ji(t,e=""){let r=t>0?"-":"+",n=Math.abs(t),i=X(Math.trunc(n/60),2),s=X(n%60,2);return r+i+e+s}o(Ji,"formatTimezone");var k0=o((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"})}},"dateLongFormatter"),T0=o((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"})}},"timeLongFormatter"),TP=o((t,e)=>{let r=t.match(/(P+)(p+)?/)||[],n=r[1],i=r[2];if(!i)return k0(t,e);let s;switch(n){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}}",k0(n,e)).replace("{{time}}",T0(i,e))},"dateTimeLongFormatter"),ri={p:T0,P:TP};var EP=/^D+$/,DP=/^Y+$/,CP=["D","DD","YY","YYYY"];function Vu(t){return EP.test(t)}o(Vu,"isProtectedDayOfYearToken");function Ku(t){return DP.test(t)}o(Ku,"isProtectedWeekYearToken");function Ka(t,e,r){let n=OP(t,e,r);if(console.warn(n),CP.includes(t))throw new RangeError(n)}o(Ka,"warnOrThrowProtectedError");function OP(t,e,r){let n=t[0]==="Y"?"years":"days of the month";return`Use \`${t.toLowerCase()}\` instead of \`${t}\` (in \`${e}\`) for formatting ${n} to the input \`${r}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}o(OP,"message");var IP=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,MP=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,NP=/^'([^]*?)'?$/,PP=/''/g,LP=/[a-zA-Z]/;function Ga(t,e,r){let n=Oe(),i=r?.locale??n.locale??Bt,s=r?.firstWeekContainsDate??r?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,a=r?.weekStartsOn??r?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,l=b(t,r?.in);if(!ft(l))throw new RangeError("Invalid time value");let c=e.match(MP).map(f=>{let p=f[0];if(p==="p"||p==="P"){let h=ri[p];return h(f,i.formatLong)}return f}).join("").match(IP).map(f=>{if(f==="''")return{isToken:!1,value:"'"};let p=f[0];if(p==="'")return{isToken:!1,value:_P(f)};if(Va[p])return{isToken:!0,value:f};if(p.match(LP))throw new RangeError("Format string contains an unescaped latin alphabet character `"+p+"`");return{isToken:!1,value:f}});i.localize.preprocessor&&(c=i.localize.preprocessor(l,c));let u={firstWeekContainsDate:s,weekStartsOn:a,locale:i};return c.map(f=>{if(!f.isToken)return f.value;let p=f.value;(!r?.useAdditionalWeekYearTokens&&Ku(p)||!r?.useAdditionalDayOfYearTokens&&Vu(p))&&Ka(p,e,String(t));let h=Va[p[0]];return h(l,p,i.localize,u)}).join("")}o(Ga,"format");function _P(t){let e=t.match(NP);return e?e[1].replace(PP,"'"):t}o(_P,"cleanEscapedString");var koe=Ga;function Gu(t,e,r){let n=Oe(),i=r?.locale??n.locale??Bt,s=2520,a=yt(t,e);if(isNaN(a))throw new RangeError("Invalid time value");let l=Object.assign({},r,{addSuffix:r?.addSuffix,comparison:a}),[c,u]=te(r?.in,...a>0?[e,t]:[t,e]),f=on(u,c),p=(Ue(u)-Ue(c))/1e3,h=Math.round((f-p)/60),m;if(h<2)return r?.includeSeconds?f<5?i.formatDistance("lessThanXSeconds",5,l):f<10?i.formatDistance("lessThanXSeconds",10,l):f<20?i.formatDistance("lessThanXSeconds",20,l):f<40?i.formatDistance("halfAMinute",0,l):f<60?i.formatDistance("lessThanXMinutes",1,l):i.formatDistance("xMinutes",1,l):h===0?i.formatDistance("lessThanXMinutes",1,l):i.formatDistance("xMinutes",h,l);if(h<45)return i.formatDistance("xMinutes",h,l);if(h<90)return i.formatDistance("aboutXHours",1,l);if(h<ss){let d=Math.round(h/60);return i.formatDistance("aboutXHours",d,l)}else{if(h<s)return i.formatDistance("xDays",1,l);if(h<Kn){let d=Math.round(h/ss);return i.formatDistance("xDays",d,l)}else if(h<Kn*2)return m=Math.round(h/Kn),i.formatDistance("aboutXMonths",m,l)}if(m=Zn(u,c),m<12){let d=Math.round(h/Kn);return i.formatDistance("xMonths",d,l)}else{let d=m%12,g=Math.trunc(m/12);return d<3?i.formatDistance("aboutXYears",g,l):d<9?i.formatDistance("overXYears",g,l):i.formatDistance("almostXYears",g+1,l)}}o(Gu,"formatDistance");var _oe=Gu;function Qu(t,e,r){let n=Oe(),i=r?.locale??n.locale??Bt,s=yt(t,e);if(isNaN(s))throw new RangeError("Invalid time value");let a=Object.assign({},r,{addSuffix:r?.addSuffix,comparison:s}),[l,c]=te(r?.in,...s>0?[e,t]:[t,e]),u=xt(r?.roundingMethod??"round"),f=c.getTime()-l.getTime(),p=f/gt,h=Ue(c)-Ue(l),m=(f-h)/gt,d=r?.unit,g;if(d?g=d:p<1?g="second":p<60?g="minute":p<ss?g="hour":m<Kn?g="day":m<hd?g="month":g="year",g==="second"){let y=u(f/1e3);return i.formatDistance("xSeconds",y,a)}else if(g==="minute"){let y=u(p);return i.formatDistance("xMinutes",y,a)}else if(g==="hour"){let y=u(p/60);return i.formatDistance("xHours",y,a)}else if(g==="day"){let y=u(m/ss);return i.formatDistance("xDays",y,a)}else if(g==="month"){let y=u(m/Kn);return y===12&&d!=="month"?i.formatDistance("xYears",1,a):i.formatDistance("xMonths",y,a)}else{let y=u(m/hd);return i.formatDistance("xYears",y,a)}}o(Qu,"formatDistanceStrict");var Woe=Qu;function E0(t,e){return Gu(t,de(t),e)}o(E0,"formatDistanceToNow");var Goe=E0;function D0(t,e){return Qu(t,de(t),e)}o(D0,"formatDistanceToNowStrict");var ese=D0;var RP=["years","months","weeks","days","hours","minutes","seconds"];function C0(t,e){let r=Oe(),n=e?.locale??r.locale??Bt,i=e?.format??RP,s=e?.zero??!1,a=e?.delimiter??" ";return n.formatDistance?i.reduce((c,u)=>{let f=`x${u.replace(/(^.)/,h=>h.toUpperCase())}`,p=t[u];return p!==void 0&&(s||t[u])?c.concat(n.formatDistance(f,p)):c},[]).join(a):""}o(C0,"formatDuration");var ose=C0;function O0(t,e){let r=b(t,e?.in);if(isNaN(+r))throw new RangeError("Invalid time value");let n=e?.format??"extended",i=e?.representation??"complete",s="",a="",l=n==="extended"?"-":"",c=n==="extended"?":":"";if(i!=="time"){let u=X(r.getDate(),2),f=X(r.getMonth()+1,2);s=`${X(r.getFullYear(),4)}${l}${f}${l}${u}`}if(i!=="date"){let u=r.getTimezoneOffset();if(u!==0){let g=Math.abs(u),y=X(Math.trunc(g/60),2),x=X(g%60,2);a=`${u<0?"+":"-"}${y}:${x}`}else a="Z";let f=X(r.getHours(),2),p=X(r.getMinutes(),2),h=X(r.getSeconds(),2),m=s===""?"":"T",d=[f,p,h].join(c);s=`${s}${m}${d}${a}`}return s}o(O0,"formatISO");var use=O0;function I0(t,e){let r=b(t,e?.in);if(!ft(r))throw new RangeError("Invalid time value");let n=e?.format??"extended",i=e?.representation??"complete",s="",a=n==="extended"?"-":"",l=n==="extended"?":":"";if(i!=="time"){let c=X(r.getDate(),2),u=X(r.getMonth()+1,2);s=`${X(r.getFullYear(),4)}${a}${u}${a}${c}`}if(i!=="date"){let c=X(r.getHours(),2),u=X(r.getMinutes(),2),f=X(r.getSeconds(),2);s=`${s}${s===""?"":" "}${c}${l}${u}${l}${f}`}return s}o(I0,"formatISO9075");var gse=I0;function M0(t){let{years:e=0,months:r=0,days:n=0,hours:i=0,minutes:s=0,seconds:a=0}=t;return`P${e}Y${r}M${n}DT${i}H${s}M${a}S`}o(M0,"formatISODuration");var bse=M0;function N0(t,e){let r=b(t,e?.in);if(!ft(r))throw new RangeError("Invalid time value");let n=e?.fractionDigits??0,i=X(r.getDate(),2),s=X(r.getMonth()+1,2),a=r.getFullYear(),l=X(r.getHours(),2),c=X(r.getMinutes(),2),u=X(r.getSeconds(),2),f="";if(n>0){let m=r.getMilliseconds(),d=Math.trunc(m*Math.pow(10,n-3));f="."+X(d,n)}let p="",h=r.getTimezoneOffset();if(h!==0){let m=Math.abs(h),d=X(Math.trunc(m/60),2),g=X(m%60,2);p=`${h<0?"+":"-"}${d}:${g}`}else p="Z";return`${a}-${s}-${i}T${l}:${c}:${u}${f}${p}`}o(N0,"formatRFC3339");var Ese=N0;var FP=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],AP=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function P0(t){let e=b(t);if(!ft(e))throw new RangeError("Invalid time value");let r=FP[e.getUTCDay()],n=X(e.getUTCDate(),2),i=AP[e.getUTCMonth()],s=e.getUTCFullYear(),a=X(e.getUTCHours(),2),l=X(e.getUTCMinutes(),2),c=X(e.getUTCSeconds(),2);return`${r}, ${n} ${i} ${s} ${a}:${l}:${c} GMT`}o(P0,"formatRFC7231");var Nse=P0;function L0(t,e,r){let[n,i]=te(r?.in,t,e),s=Oe(),a=r?.locale??s.locale??Bt,l=r?.weekStartsOn??r?.locale?.options?.weekStartsOn??s.weekStartsOn??s.locale?.options?.weekStartsOn??0,c=ot(n,i);if(isNaN(c))throw new RangeError("Invalid time value");let u;c<-6?u="other":c<-1?u="lastWeek":c<0?u="yesterday":c<1?u="today":c<2?u="tomorrow":c<7?u="nextWeek":u="other";let f=a.formatRelative(u,n,i,{locale:a,weekStartsOn:l});return Ga(n,f,{locale:a,weekStartsOn:l})}o(L0,"formatRelative");var Bse=L0;function _0(t,e){return b(t*1e3,e?.in)}o(_0,"fromUnixTime");var Hse=_0;function Ju(t,e){return b(t,e?.in).getDate()}o(Ju,"getDate");var Vse=Ju;function ni(t,e){return b(t,e?.in).getDay()}o(ni,"getDay");var Jse=ni;function Xu(t,e){let r=b(t,e?.in),n=r.getFullYear(),i=r.getMonth(),s=$(r,0);return s.setFullYear(n,i+1,0),s.setHours(0,0,0,0),s.getDate()}o(Xu,"getDaysInMonth");var rae=Xu;function Zu(t,e){let n=b(t,e?.in).getFullYear();return n%400===0||n%4===0&&n%100!==0}o(Zu,"isLeapYear");var sae=Zu;function R0(t,e){let r=b(t,e?.in);return Number.isNaN(+r)?NaN:Zu(r)?366:365}o(R0,"getDaysInYear");var fae=R0;function F0(t,e){let n=b(t,e?.in).getFullYear();return Math.floor(n/10)*10}o(F0,"getDecade");var dae=F0;function ef(){return Object.assign({},Oe())}o(ef,"getDefaultOptions");var bae=ef;function A0(t,e){return b(t,e?.in).getHours()}o(A0,"getHours");var kae=A0;function tf(t,e){let r=b(t,e?.in).getDay();return r===0?7:r}o(tf,"getISODay");var Cae=tf;function $0(t,e){let r=Xt(t,e),i=+Xt(Jn(r,60))-+r;return Math.round(i/Zr)}o($0,"getISOWeeksInYear");var Lae=$0;function B0(t){return b(t).getMilliseconds()}o(B0,"getMilliseconds");var Aae=B0;function j0(t,e){return b(t,e?.in).getMinutes()}o(j0,"getMinutes");var Uae=j0;function U0(t,e){return b(t,e?.in).getMonth()}o(U0,"getMonth");var qae=U0;function z0(t,e){let[r,n]=[+b(t.start),+b(t.end)].sort((p,h)=>p-h),[i,s]=[+b(e.start),+b(e.end)].sort((p,h)=>p-h);if(!(r<s&&i<n))return 0;let l=i<r?r:i,c=l-Ue(l),u=s>n?n:s,f=u-Ue(u);return Math.ceil((f-c)/Su)}o(z0,"getOverlappingDaysInIntervals");var Jae=z0;function H0(t){return b(t).getSeconds()}o(H0,"getSeconds");var tle=H0;function W0(t){return+b(t)}o(W0,"getTime");var ole=W0;function q0(t){return Math.trunc(+b(t)/1e3)}o(q0,"getUnixTime");var cle=q0;function Y0(t,e){let r=Oe(),n=e?.weekStartsOn??e?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,i=Ju(b(t,e?.in));if(isNaN(i))return NaN;let s=ni(ei(t,e)),a=n-s;a<=0&&(a+=7);let l=i-a;return Math.ceil(l/7)+1}o(Y0,"getWeekOfMonth");var yle=Y0;function rf(t,e){let r=b(t,e?.in),n=r.getMonth();return r.setFullYear(r.getFullYear(),n+1,0),r.setHours(0,0,0,0),b(r,e?.in)}o(rf,"lastDayOfMonth");var Sle=rf;function V0(t,e){let r=b(t,e?.in);return Vi(rf(r,e),ei(r,e),e)+1}o(V0,"getWeeksInMonth");var Ole=V0;function K0(t,e){return b(t,e?.in).getFullYear()}o(K0,"getYear");var Ple=K0;function G0(t){return Math.trunc(t*Jt)}o(G0,"hoursToMilliseconds");var Fle=G0;function Q0(t){return Math.trunc(t*vu)}o(Q0,"hoursToMinutes");var jle=Q0;function J0(t){return Math.trunc(t*qi)}o(J0,"hoursToSeconds");var Wle=J0;function X0(t,e,r){let[n,i]=te(r?.in,t,e);if(isNaN(+n))throw new TypeError("Start date is invalid");if(isNaN(+i))throw new TypeError("End date is invalid");if(r?.assertPositive&&+n>+i)throw new TypeError("End date must be after start date");return{start:n,end:i}}o(X0,"interval");var Kle=X0;function Z0(t,e){let{start:r,end:n}=st(e?.in,t),i={},s=Uu(n,r);s&&(i.years=s);let a=Gn(r,{years:i.years}),l=Zn(n,a);l&&(i.months=l);let c=Gn(a,{months:i.months}),u=fs(n,c);u&&(i.days=u);let f=Gn(c,{days:i.days}),p=Ki(n,f);p&&(i.hours=p);let h=Gn(f,{hours:i.hours}),m=Gi(n,h);m&&(i.minutes=m);let d=Gn(h,{minutes:i.minutes}),g=on(n,d);return g&&(i.seconds=g),i}o(Z0,"intervalToDuration");var oce=Z0;function eS(t,e,r){let n;return $P(e)?n=e:r=e,new Intl.DateTimeFormat(r?.locale,n).format(b(t))}o(eS,"intlFormat");function $P(t){return t!==void 0&&!("locale"in t)}o($P,"isFormatOptions");var cce=eS;function tS(t,e,r){let n=0,i,[s,a]=te(r?.in,t,e);if(r?.unit)i=r?.unit,i==="second"?n=on(s,a):i==="minute"?n=Gi(s,a):i==="hour"?n=Ki(s,a):i==="day"?n=ot(s,a):i==="week"?n=Vi(s,a):i==="month"?n=Yi(s,a):i==="quarter"?n=us(s,a):i==="year"&&(n=Xn(s,a));else{let c=on(s,a);Math.abs(c)<as?(n=on(s,a),i="second"):Math.abs(c)<qi?(n=Gi(s,a),i="minute"):Math.abs(c)<bu&&Math.abs(ot(s,a))<1?(n=Ki(s,a),i="hour"):Math.abs(c)<Fw&&(n=ot(s,a))&&Math.abs(n)<7?i="day":Math.abs(c)<dd?(n=Vi(s,a),i="week"):Math.abs(c)<Aw?(n=Yi(s,a),i="month"):Math.abs(c)<md?us(s,a)<4?(n=us(s,a),i="quarter"):(n=Xn(s,a),i="year"):(n=Xn(s,a),i="year")}return new Intl.RelativeTimeFormat(r?.locale,{numeric:"auto",...r}).format(n,i)}o(tS,"intlFormatDistance");var vce=tS;function rS(t,e){return+b(t)>+b(e)}o(rS,"isAfter");var Dce=rS;function nS(t,e){return+b(t)<+b(e)}o(nS,"isBefore");var Mce=nS;function iS(t,e){return+b(t)==+b(e)}o(iS,"isEqual");var _ce=iS;function oS(t,e,r){let n=new Date(t,e,r);return n.getFullYear()===t&&n.getMonth()===e&&n.getDate()===r}o(oS,"isExists");var Ace=oS;function sS(t,e){return b(t,e?.in).getDate()===1}o(sS,"isFirstDayOfMonth");var Uce=sS;function aS(t,e){return b(t,e?.in).getDay()===5}o(aS,"isFriday");var qce=aS;function lS(t){return+b(t)>Date.now()}o(lS,"isFuture");var Gce=lS;function nf(t,e){let r=BP(e)?new e(0):$(e,0);return r.setFullYear(t.getFullYear(),t.getMonth(),t.getDate()),r.setHours(t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()),r}o(nf,"transpose");function BP(t){return typeof t=="function"&&t.prototype?.constructor===t}o(BP,"isConstructor");var Zce=nf;var jP=10,of=class{static{o(this,"Setter")}subPriority=0;validate(e,r){return!0}},sf=class extends of{static{o(this,"ValueSetter")}constructor(e,r,n,i,s){super(),this.value=e,this.validateValue=r,this.setValue=n,this.priority=i,s&&(this.subPriority=s)}validate(e,r){return this.validateValue(e,this.value,r)}set(e,r,n){return this.setValue(e,r,this.value,n)}},af=class extends of{static{o(this,"DateTimezoneSetter")}priority=jP;subPriority=-1;constructor(e,r){super(),this.context=e||(n=>$(r,n))}set(e,r){return r.timestampIsSet?e:$(e,nf(e,this.context))}};var J=class{static{o(this,"Parser")}run(e,r,n,i){let s=this.parse(e,r,n,i);return s?{setter:new sf(s.value,this.validate,this.set,this.priority,this.subPriority),rest:s.rest}:null}validate(e,r,n){return!0}};var lf=class extends J{static{o(this,"EraParser")}priority=140;parse(e,r,n){switch(r){case"G":case"GG":case"GGG":return n.era(e,{width:"abbreviated"})||n.era(e,{width:"narrow"});case"GGGGG":return n.era(e,{width:"narrow"});default:return n.era(e,{width:"wide"})||n.era(e,{width:"abbreviated"})||n.era(e,{width:"narrow"})}}set(e,r,n){return r.era=n,e.setFullYear(n,0,1),e.setHours(0,0,0,0),e}incompatibleTokens=["R","u","t","T"]};var Se={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}/},ur={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 Ie(t,e){return t&&{value:e(t.value),rest:t.rest}}o(Ie,"mapValue");function be(t,e){let r=e.match(t);return r?{value:parseInt(r[0],10),rest:e.slice(r[0].length)}:null}o(be,"parseNumericPattern");function fr(t,e){let r=e.match(t);if(!r)return null;if(r[0]==="Z")return{value:0,rest:e.slice(1)};let n=r[1]==="+"?1:-1,i=r[2]?parseInt(r[2],10):0,s=r[3]?parseInt(r[3],10):0,a=r[5]?parseInt(r[5],10):0;return{value:n*(i*Jt+s*gt+a*os),rest:e.slice(r[0].length)}}o(fr,"parseTimezonePattern");function cf(t){return be(Se.anyDigitsSigned,t)}o(cf,"parseAnyDigitsSigned");function he(t,e){switch(t){case 1:return be(Se.singleDigit,e);case 2:return be(Se.twoDigits,e);case 3:return be(Se.threeDigits,e);case 4:return be(Se.fourDigits,e);default:return be(new RegExp("^\\d{1,"+t+"}"),e)}}o(he,"parseNDigits");function vs(t,e){switch(t){case 1:return be(Se.singleDigitSigned,e);case 2:return be(Se.twoDigitsSigned,e);case 3:return be(Se.threeDigitsSigned,e);case 4:return be(Se.fourDigitsSigned,e);default:return be(new RegExp("^-?\\d{1,"+t+"}"),e)}}o(vs,"parseNDigitsSigned");function ks(t){switch(t){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;default:return 0}}o(ks,"dayPeriodEnumToHours");function uf(t,e){let r=e>0,n=r?e:1-e,i;if(n<=50)i=t||100;else{let s=n+50,a=Math.trunc(s/100)*100,l=t>=s%100;i=t+a-(l?100:0)}return r?i:1-i}o(uf,"normalizeTwoDigitYear");function ff(t){return t%400===0||t%4===0&&t%100!==0}o(ff,"isLeapYearIndex");var pf=class extends J{static{o(this,"YearParser")}priority=130;incompatibleTokens=["Y","R","u","w","I","i","e","c","t","T"];parse(e,r,n){let i=o(s=>({year:s,isTwoDigitYear:r==="yy"}),"valueCallback");switch(r){case"y":return Ie(he(4,e),i);case"yo":return Ie(n.ordinalNumber(e,{unit:"year"}),i);default:return Ie(he(r.length,e),i)}}validate(e,r){return r.isTwoDigitYear||r.year>0}set(e,r,n){let i=e.getFullYear();if(n.isTwoDigitYear){let a=uf(n.year,i);return e.setFullYear(a,0,1),e.setHours(0,0,0,0),e}let s=!("era"in r)||r.era===1?n.year:1-n.year;return e.setFullYear(s,0,1),e.setHours(0,0,0,0),e}};var hf=class extends J{static{o(this,"LocalWeekYearParser")}priority=130;parse(e,r,n){let i=o(s=>({year:s,isTwoDigitYear:r==="YY"}),"valueCallback");switch(r){case"Y":return Ie(he(4,e),i);case"Yo":return Ie(n.ordinalNumber(e,{unit:"year"}),i);default:return Ie(he(r.length,e),i)}}validate(e,r){return r.isTwoDigitYear||r.year>0}set(e,r,n,i){let s=ti(e,i);if(n.isTwoDigitYear){let l=uf(n.year,s);return e.setFullYear(l,0,i.firstWeekContainsDate),e.setHours(0,0,0,0),Le(e,i)}let a=!("era"in r)||r.era===1?n.year:1-n.year;return e.setFullYear(a,0,i.firstWeekContainsDate),e.setHours(0,0,0,0),Le(e,i)}incompatibleTokens=["y","R","u","Q","q","M","L","I","d","D","i","t","T"]};var mf=class extends J{static{o(this,"ISOWeekYearParser")}priority=130;parse(e,r){return r==="R"?vs(4,e):vs(r.length,e)}set(e,r,n){let i=$(e,0);return i.setFullYear(n,0,4),i.setHours(0,0,0,0),Ge(i)}incompatibleTokens=["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]};var df=class extends J{static{o(this,"ExtendedYearParser")}priority=130;parse(e,r){return r==="u"?vs(4,e):vs(r.length,e)}set(e,r,n){return e.setFullYear(n,0,1),e.setHours(0,0,0,0),e}incompatibleTokens=["G","y","Y","R","w","I","i","e","c","t","T"]};var gf=class extends J{static{o(this,"QuarterParser")}priority=120;parse(e,r,n){switch(r){case"Q":case"QQ":return he(r.length,e);case"Qo":return n.ordinalNumber(e,{unit:"quarter"});case"QQQ":return n.quarter(e,{width:"abbreviated",context:"formatting"})||n.quarter(e,{width:"narrow",context:"formatting"});case"QQQQQ":return n.quarter(e,{width:"narrow",context:"formatting"});default:return n.quarter(e,{width:"wide",context:"formatting"})||n.quarter(e,{width:"abbreviated",context:"formatting"})||n.quarter(e,{width:"narrow",context:"formatting"})}}validate(e,r){return r>=1&&r<=4}set(e,r,n){return e.setMonth((n-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 yf=class extends J{static{o(this,"StandAloneQuarterParser")}priority=120;parse(e,r,n){switch(r){case"q":case"qq":return he(r.length,e);case"qo":return n.ordinalNumber(e,{unit:"quarter"});case"qqq":return n.quarter(e,{width:"abbreviated",context:"standalone"})||n.quarter(e,{width:"narrow",context:"standalone"});case"qqqqq":return n.quarter(e,{width:"narrow",context:"standalone"});default:return n.quarter(e,{width:"wide",context:"standalone"})||n.quarter(e,{width:"abbreviated",context:"standalone"})||n.quarter(e,{width:"narrow",context:"standalone"})}}validate(e,r){return r>=1&&r<=4}set(e,r,n){return e.setMonth((n-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 xf=class extends J{static{o(this,"MonthParser")}incompatibleTokens=["Y","R","q","Q","L","w","I","D","i","e","c","t","T"];priority=110;parse(e,r,n){let i=o(s=>s-1,"valueCallback");switch(r){case"M":return Ie(be(Se.month,e),i);case"MM":return Ie(he(2,e),i);case"Mo":return Ie(n.ordinalNumber(e,{unit:"month"}),i);case"MMM":return n.month(e,{width:"abbreviated",context:"formatting"})||n.month(e,{width:"narrow",context:"formatting"});case"MMMMM":return n.month(e,{width:"narrow",context:"formatting"});default:return n.month(e,{width:"wide",context:"formatting"})||n.month(e,{width:"abbreviated",context:"formatting"})||n.month(e,{width:"narrow",context:"formatting"})}}validate(e,r){return r>=0&&r<=11}set(e,r,n){return e.setMonth(n,1),e.setHours(0,0,0,0),e}};var bf=class extends J{static{o(this,"StandAloneMonthParser")}priority=110;parse(e,r,n){let i=o(s=>s-1,"valueCallback");switch(r){case"L":return Ie(be(Se.month,e),i);case"LL":return Ie(he(2,e),i);case"Lo":return Ie(n.ordinalNumber(e,{unit:"month"}),i);case"LLL":return n.month(e,{width:"abbreviated",context:"standalone"})||n.month(e,{width:"narrow",context:"standalone"});case"LLLLL":return n.month(e,{width:"narrow",context:"standalone"});default:return n.month(e,{width:"wide",context:"standalone"})||n.month(e,{width:"abbreviated",context:"standalone"})||n.month(e,{width:"narrow",context:"standalone"})}}validate(e,r){return r>=0&&r<=11}set(e,r,n){return e.setMonth(n,1),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]};function wf(t,e,r){let n=b(t,r?.in),i=ws(n,r)-e;return n.setDate(n.getDate()-i*7),b(n,r?.in)}o(wf,"setWeek");var nfe=wf;var Sf=class extends J{static{o(this,"LocalWeekParser")}priority=100;parse(e,r,n){switch(r){case"w":return be(Se.week,e);case"wo":return n.ordinalNumber(e,{unit:"week"});default:return he(r.length,e)}}validate(e,r){return r>=1&&r<=53}set(e,r,n,i){return Le(wf(e,n,i),i)}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","i","t","T"]};function vf(t,e,r){let n=b(t,r?.in),i=bs(n,r)-e;return n.setDate(n.getDate()-i*7),n}o(vf,"setISOWeek");var dfe=vf;var kf=class extends J{static{o(this,"ISOWeekParser")}priority=100;parse(e,r,n){switch(r){case"I":return be(Se.week,e);case"Io":return n.ordinalNumber(e,{unit:"week"});default:return he(r.length,e)}}validate(e,r){return r>=1&&r<=53}set(e,r,n){return Ge(vf(e,n))}incompatibleTokens=["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]};var UP=[31,28,31,30,31,30,31,31,30,31,30,31],zP=[31,29,31,30,31,30,31,31,30,31,30,31],Tf=class extends J{static{o(this,"DateParser")}priority=90;subPriority=1;parse(e,r,n){switch(r){case"d":return be(Se.date,e);case"do":return n.ordinalNumber(e,{unit:"date"});default:return he(r.length,e)}}validate(e,r){let n=e.getFullYear(),i=ff(n),s=e.getMonth();return i?r>=1&&r<=zP[s]:r>=1&&r<=UP[s]}set(e,r,n){return e.setDate(n),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","q","Q","w","I","D","i","e","c","t","T"]};var Ef=class extends J{static{o(this,"DayOfYearParser")}priority=90;subpriority=1;parse(e,r,n){switch(r){case"D":case"DD":return be(Se.dayOfYear,e);case"Do":return n.ordinalNumber(e,{unit:"date"});default:return he(r.length,e)}}validate(e,r){let n=e.getFullYear();return ff(n)?r>=1&&r<=366:r>=1&&r<=365}set(e,r,n){return e.setMonth(0,n),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]};function ii(t,e,r){let n=Oe(),i=r?.weekStartsOn??r?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,s=b(t,r?.in),a=s.getDay(),c=(e%7+7)%7,u=7-i,f=e<0||e>6?e-(a+u)%7:(c+u)%7-(a+u)%7;return et(s,f,r)}o(ii,"setDay");var $fe=ii;var Df=class extends J{static{o(this,"DayParser")}priority=90;parse(e,r,n){switch(r){case"E":case"EE":case"EEE":return n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"EEEEE":return n.day(e,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});default:return n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"})}}validate(e,r){return r>=0&&r<=6}set(e,r,n,i){return e=ii(e,n,i),e.setHours(0,0,0,0),e}incompatibleTokens=["D","i","e","c","t","T"]};var Cf=class extends J{static{o(this,"LocalDayParser")}priority=90;parse(e,r,n,i){let s=o(a=>{let l=Math.floor((a-1)/7)*7;return(a+i.weekStartsOn+6)%7+l},"valueCallback");switch(r){case"e":case"ee":return Ie(he(r.length,e),s);case"eo":return Ie(n.ordinalNumber(e,{unit:"day"}),s);case"eee":return n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"eeeee":return n.day(e,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});default:return n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"})}}validate(e,r){return r>=0&&r<=6}set(e,r,n,i){return e=ii(e,n,i),e.setHours(0,0,0,0),e}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]};var Of=class extends J{static{o(this,"StandAloneLocalDayParser")}priority=90;parse(e,r,n,i){let s=o(a=>{let l=Math.floor((a-1)/7)*7;return(a+i.weekStartsOn+6)%7+l},"valueCallback");switch(r){case"c":case"cc":return Ie(he(r.length,e),s);case"co":return Ie(n.ordinalNumber(e,{unit:"day"}),s);case"ccc":return n.day(e,{width:"abbreviated",context:"standalone"})||n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"});case"ccccc":return n.day(e,{width:"narrow",context:"standalone"});case"cccccc":return n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"});default:return n.day(e,{width:"wide",context:"standalone"})||n.day(e,{width:"abbreviated",context:"standalone"})||n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"})}}validate(e,r){return r>=0&&r<=6}set(e,r,n,i){return e=ii(e,n,i),e.setHours(0,0,0,0),e}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]};function If(t,e,r){let n=b(t,r?.in),i=tf(n,r),s=e-i;return et(n,s,r)}o(If,"setISODay");var ipe=If;var Mf=class extends J{static{o(this,"ISODayParser")}priority=90;parse(e,r,n){let i=o(s=>s===0?7:s,"valueCallback");switch(r){case"i":case"ii":return he(r.length,e);case"io":return n.ordinalNumber(e,{unit:"day"});case"iii":return Ie(n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"}),i);case"iiiii":return Ie(n.day(e,{width:"narrow",context:"formatting"}),i);case"iiiiii":return Ie(n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"}),i);default:return Ie(n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"}),i)}}validate(e,r){return r>=1&&r<=7}set(e,r,n){return e=If(e,n),e.setHours(0,0,0,0),e}incompatibleTokens=["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]};var Nf=class extends J{static{o(this,"AMPMParser")}priority=80;parse(e,r,n){switch(r){case"a":case"aa":case"aaa":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"aaaaa":return n.dayPeriod(e,{width:"narrow",context:"formatting"});default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,r,n){return e.setHours(ks(n),0,0,0),e}incompatibleTokens=["b","B","H","k","t","T"]};var Pf=class extends J{static{o(this,"AMPMMidnightParser")}priority=80;parse(e,r,n){switch(r){case"b":case"bb":case"bbb":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"bbbbb":return n.dayPeriod(e,{width:"narrow",context:"formatting"});default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,r,n){return e.setHours(ks(n),0,0,0),e}incompatibleTokens=["a","B","H","k","t","T"]};var Lf=class extends J{static{o(this,"DayPeriodParser")}priority=80;parse(e,r,n){switch(r){case"B":case"BB":case"BBB":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"BBBBB":return n.dayPeriod(e,{width:"narrow",context:"formatting"});default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,r,n){return e.setHours(ks(n),0,0,0),e}incompatibleTokens=["a","b","t","T"]};var _f=class extends J{static{o(this,"Hour1to12Parser")}priority=70;parse(e,r,n){switch(r){case"h":return be(Se.hour12h,e);case"ho":return n.ordinalNumber(e,{unit:"hour"});default:return he(r.length,e)}}validate(e,r){return r>=1&&r<=12}set(e,r,n){let i=e.getHours()>=12;return i&&n<12?e.setHours(n+12,0,0,0):!i&&n===12?e.setHours(0,0,0,0):e.setHours(n,0,0,0),e}incompatibleTokens=["H","K","k","t","T"]};var Rf=class extends J{static{o(this,"Hour0to23Parser")}priority=70;parse(e,r,n){switch(r){case"H":return be(Se.hour23h,e);case"Ho":return n.ordinalNumber(e,{unit:"hour"});default:return he(r.length,e)}}validate(e,r){return r>=0&&r<=23}set(e,r,n){return e.setHours(n,0,0,0),e}incompatibleTokens=["a","b","h","K","k","t","T"]};var Ff=class extends J{static{o(this,"Hour0To11Parser")}priority=70;parse(e,r,n){switch(r){case"K":return be(Se.hour11h,e);case"Ko":return n.ordinalNumber(e,{unit:"hour"});default:return he(r.length,e)}}validate(e,r){return r>=0&&r<=11}set(e,r,n){return e.getHours()>=12&&n<12?e.setHours(n+12,0,0,0):e.setHours(n,0,0,0),e}incompatibleTokens=["h","H","k","t","T"]};var Af=class extends J{static{o(this,"Hour1To24Parser")}priority=70;parse(e,r,n){switch(r){case"k":return be(Se.hour24h,e);case"ko":return n.ordinalNumber(e,{unit:"hour"});default:return he(r.length,e)}}validate(e,r){return r>=1&&r<=24}set(e,r,n){let i=n<=24?n%24:n;return e.setHours(i,0,0,0),e}incompatibleTokens=["a","b","h","H","K","t","T"]};var $f=class extends J{static{o(this,"MinuteParser")}priority=60;parse(e,r,n){switch(r){case"m":return be(Se.minute,e);case"mo":return n.ordinalNumber(e,{unit:"minute"});default:return he(r.length,e)}}validate(e,r){return r>=0&&r<=59}set(e,r,n){return e.setMinutes(n,0,0),e}incompatibleTokens=["t","T"]};var Bf=class extends J{static{o(this,"SecondParser")}priority=50;parse(e,r,n){switch(r){case"s":return be(Se.second,e);case"so":return n.ordinalNumber(e,{unit:"second"});default:return he(r.length,e)}}validate(e,r){return r>=0&&r<=59}set(e,r,n){return e.setSeconds(n,0),e}incompatibleTokens=["t","T"]};var jf=class extends J{static{o(this,"FractionOfSecondParser")}priority=30;parse(e,r){let n=o(i=>Math.trunc(i*Math.pow(10,-r.length+3)),"valueCallback");return Ie(he(r.length,e),n)}set(e,r,n){return e.setMilliseconds(n),e}incompatibleTokens=["t","T"]};var Uf=class extends J{static{o(this,"ISOTimezoneWithZParser")}priority=10;parse(e,r){switch(r){case"X":return fr(ur.basicOptionalMinutes,e);case"XX":return fr(ur.basic,e);case"XXXX":return fr(ur.basicOptionalSeconds,e);case"XXXXX":return fr(ur.extendedOptionalSeconds,e);default:return fr(ur.extended,e)}}set(e,r,n){return r.timestampIsSet?e:$(e,e.getTime()-Ue(e)-n)}incompatibleTokens=["t","T","x"]};var zf=class extends J{static{o(this,"ISOTimezoneParser")}priority=10;parse(e,r){switch(r){case"x":return fr(ur.basicOptionalMinutes,e);case"xx":return fr(ur.basic,e);case"xxxx":return fr(ur.basicOptionalSeconds,e);case"xxxxx":return fr(ur.extendedOptionalSeconds,e);default:return fr(ur.extended,e)}}set(e,r,n){return r.timestampIsSet?e:$(e,e.getTime()-Ue(e)-n)}incompatibleTokens=["t","T","X"]};var Hf=class extends J{static{o(this,"TimestampSecondsParser")}priority=40;parse(e){return cf(e)}set(e,r,n){return[$(e,n*1e3),{timestampIsSet:!0}]}incompatibleTokens="*"};var Wf=class extends J{static{o(this,"TimestampMillisecondsParser")}priority=20;parse(e){return cf(e)}set(e,r,n){return[$(e,n),{timestampIsSet:!0}]}incompatibleTokens="*"};var qf={G:new lf,y:new pf,Y:new hf,R:new mf,u:new df,Q:new gf,q:new yf,M:new xf,L:new bf,w:new Sf,I:new kf,d:new Tf,D:new Ef,E:new Df,e:new Cf,c:new Of,i:new Mf,a:new Nf,b:new Pf,B:new Lf,h:new _f,H:new Rf,K:new Ff,k:new Af,m:new $f,s:new Bf,S:new jf,X:new Uf,x:new zf,t:new Hf,T:new Wf};var HP=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,WP=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,qP=/^'([^]*?)'?$/,YP=/''/g,VP=/\S/,KP=/[a-zA-Z]/;function Yf(t,e,r,n){let i=o(()=>$(n?.in||r,NaN),"invalidDate"),s=ef(),a=n?.locale??s.locale??Bt,l=n?.firstWeekContainsDate??n?.locale?.options?.firstWeekContainsDate??s.firstWeekContainsDate??s.locale?.options?.firstWeekContainsDate??1,c=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??s.weekStartsOn??s.locale?.options?.weekStartsOn??0;if(!e)return t?i():b(r,n?.in);let u={firstWeekContainsDate:l,weekStartsOn:c,locale:a},f=[new af(n?.in,r)],p=e.match(WP).map(y=>{let x=y[0];if(x in ri){let T=ri[x];return T(y,a.formatLong)}return y}).join("").match(HP),h=[];for(let y of p){!n?.useAdditionalWeekYearTokens&&Ku(y)&&Ka(y,e,t),!n?.useAdditionalDayOfYearTokens&&Vu(y)&&Ka(y,e,t);let x=y[0],T=qf[x];if(T){let{incompatibleTokens:E}=T;if(Array.isArray(E)){let P=h.find(D=>E.includes(D.token)||D.token===x);if(P)throw new RangeError(`The format string mustn't contain \`${P.fullToken}\` and \`${y}\` at the same time`)}else if(T.incompatibleTokens==="*"&&h.length>0)throw new RangeError(`The format string mustn't contain \`${y}\` and any other token at the same time`);h.push({token:x,fullToken:y});let L=T.run(t,y,a.match,u);if(!L)return i();f.push(L.setter),t=L.rest}else{if(x.match(KP))throw new RangeError("Format string contains an unescaped latin alphabet character `"+x+"`");if(y==="''"?y="'":x==="'"&&(y=GP(y)),t.indexOf(y)===0)t=t.slice(y.length);else return i()}}if(t.length>0&&VP.test(t))return i();let m=f.map(y=>y.priority).sort((y,x)=>x-y).filter((y,x,T)=>T.indexOf(y)===x).map(y=>f.filter(x=>x.priority===y).sort((x,T)=>T.subPriority-x.subPriority)).map(y=>y[0]),d=b(r,n?.in);if(isNaN(+d))return i();let g={};for(let y of m){if(!y.validate(d,u))return i();let x=y.set(d,g,u);Array.isArray(x)?(d=x[0],Object.assign(g,x[1])):d=x}return d}o(Yf,"parse");function GP(t){return t.match(qP)[1].replace(YP,"'")}o(GP,"cleanEscapedString");var mme=Yf;function cS(t,e,r){return ft(Yf(t,e,new Date,r))}o(cS,"isMatch");var bme=cS;function uS(t,e){return b(t,e?.in).getDay()===1}o(uS,"isMonday");var kme=uS;function fS(t){return+b(t)<Date.now()}o(fS,"isPast");var Cme=fS;function Qa(t,e){let r=b(t,e?.in);return r.setMinutes(0,0,0),r}o(Qa,"startOfHour");var Nme=Qa;function Vf(t,e,r){let[n,i]=te(r?.in,t,e);return+Qa(n)==+Qa(i)}o(Vf,"isSameHour");var Fme=Vf;function Ts(t,e,r){let[n,i]=te(r?.in,t,e);return+Le(n,r)==+Le(i,r)}o(Ts,"isSameWeek");var Ume=Ts;function Kf(t,e,r){return Ts(t,e,{...r,weekStartsOn:1})}o(Kf,"isSameISOWeek");var qme=Kf;function pS(t,e,r){let[n,i]=te(r?.in,t,e);return+Xt(n)==+Xt(i)}o(pS,"isSameISOWeekYear");var Qme=pS;function Ja(t,e){let r=b(t,e?.in);return r.setSeconds(0,0),r}o(Ja,"startOfMinute");var ede=Ja;function Gf(t,e){return+Ja(t)==+Ja(e)}o(Gf,"isSameMinute");var ide=Gf;function Qf(t,e,r){let[n,i]=te(r?.in,t,e);return n.getFullYear()===i.getFullYear()&&n.getMonth()===i.getMonth()}o(Qf,"isSameMonth");var lde=Qf;function Jf(t,e,r){let[n,i]=te(r?.in,t,e);return+sn(n)==+sn(i)}o(Jf,"isSameQuarter");var hde=Jf;function Xa(t,e){let r=b(t,e?.in);return r.setMilliseconds(0),r}o(Xa,"startOfSecond");var yde=Xa;function Xf(t,e){return+Xa(t)==+Xa(e)}o(Xf,"isSameSecond");var Sde=Xf;function Zf(t,e,r){let[n,i]=te(r?.in,t,e);return n.getFullYear()===i.getFullYear()}o(Zf,"isSameYear");var Ede=Zf;function hS(t,e){return Vf(b(t,e?.in),de(e?.in||t))}o(hS,"isThisHour");var Nde=hS;function mS(t,e){return Kf($(e?.in||t,t),de(e?.in||t))}o(mS,"isThisISOWeek");var Ade=mS;function dS(t){return Gf(t,de(t))}o(dS,"isThisMinute");var zde=dS;function gS(t,e){return Qf($(e?.in||t,t),de(e?.in||t))}o(gS,"isThisMonth");var Kde=gS;function yS(t,e){return Jf($(e?.in||t,t),de(e?.in||t))}o(yS,"isThisQuarter");var ege=yS;function xS(t){return Xf(t,de(t))}o(xS,"isThisSecond");var oge=xS;function bS(t,e){return Ts($(e?.in||t,t),de(e?.in||t),e)}o(bS,"isThisWeek");var fge=bS;function wS(t,e){return Zf($(e?.in||t,t),de(e?.in||t))}o(wS,"isThisYear");var yge=wS;function SS(t,e){return b(t,e?.in).getDay()===4}o(SS,"isThursday");var Sge=SS;function vS(t,e){return nn($(e?.in||t,t),de(e?.in||t))}o(vS,"isToday");var Cge=vS;function kS(t,e){return nn(t,et(de(e?.in||t),1),e)}o(kS,"isTomorrow");var Lge=kS;function TS(t,e){return b(t,e?.in).getDay()===2}o(TS,"isTuesday");var Age=TS;function ES(t,e){return b(t,e?.in).getDay()===3}o(ES,"isWednesday");var Uge=ES;function DS(t,e,r){let n=+b(t,r?.in),[i,s]=[+b(e.start,r?.in),+b(e.end,r?.in)].sort((a,l)=>a-l);return n>=i&&n<=s}o(DS,"isWithinInterval");var qge=DS;function oi(t,e,r){return et(t,-e,r)}o(oi,"subDays");var Gge=oi;function CS(t,e){return nn($(e?.in||t,t),oi(de(e?.in||t),1))}o(CS,"isYesterday");var rye=CS;function OS(t,e){let r=b(t,e?.in),n=r.getFullYear(),i=9+Math.floor(n/10)*10;return r.setFullYear(i+1,0,0),r.setHours(0,0,0,0),b(r,e?.in)}o(OS,"lastDayOfDecade");var sye=OS;function ep(t,e){let r=Oe(),n=e?.weekStartsOn??e?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,i=b(t,e?.in),s=i.getDay(),a=(s<n?-7:0)+6-(s-n);return i.setHours(0,0,0,0),i.setDate(i.getDate()+a),i}o(ep,"lastDayOfWeek");var fye=ep;function IS(t,e){return ep(t,{...e,weekStartsOn:1})}o(IS,"lastDayOfISOWeek");var dye=IS;function MS(t,e){let r=Mt(t,e),n=$(e?.in||t,0);n.setFullYear(r+1,0,4),n.setHours(0,0,0,0);let i=Ge(n,e);return i.setDate(i.getDate()-1),i}o(MS,"lastDayOfISOWeekYear");var Sye=MS;function NS(t,e){let r=b(t,e?.in),n=r.getMonth(),i=n-n%3+3;return r.setMonth(i,0),r.setHours(0,0,0,0),r}o(NS,"lastDayOfQuarter");var Eye=NS;function PS(t,e){let r=b(t,e?.in),n=r.getFullYear();return r.setFullYear(n+1,0,0),r.setHours(0,0,0,0),r}o(PS,"lastDayOfYear");var Iye=PS;var QP=/(\w)\1*|''|'(''|[^'])+('|$)|./g,JP=/^'([^]*?)'?$/,XP=/''/g,ZP=/[a-zA-Z]/;function LS(t,e){let r=b(t);if(!ft(r))throw new RangeError("Invalid time value");let n=e.match(QP);return n?n.map(s=>{if(s==="''")return"'";let a=s[0];if(a==="'")return eL(s);let l=Zt[a];if(l)return l(r,s);if(a.match(ZP))throw new RangeError("Format string contains an unescaped latin alphabet character `"+a+"`");return s}).join(""):""}o(LS,"lightFormat");function eL(t){let e=t.match(JP);return e?e[1].replace(XP,"'"):t}o(eL,"cleanEscapedString");var Rye=LS;function _S({years:t,months:e,weeks:r,days:n,hours:i,minutes:s,seconds:a}){let l=0;t&&(l+=t*365.2425),e&&(l+=e*(365.2425/12)),r&&(l+=r*7),n&&(l+=n);let c=l*24*60*60;return i&&(c+=i*60*60),s&&(c+=s*60),a&&(c+=a),Math.trunc(c*1e3)}o(_S,"milliseconds");var Bye=_S;function RS(t){let e=t/Jt;return Math.trunc(e)}o(RS,"millisecondsToHours");var Hye=RS;function FS(t){let e=t/gt;return Math.trunc(e)}o(FS,"millisecondsToMinutes");var Vye=FS;function AS(t){let e=t/os;return Math.trunc(e)}o(AS,"millisecondsToSeconds");var Jye=AS;function $S(t){let e=t/vu;return Math.trunc(e)}o($S,"minutesToHours");var txe=$S;function BS(t){return Math.trunc(t*gt)}o(BS,"minutesToMilliseconds");var oxe=BS;function jS(t){return Math.trunc(t*as)}o(jS,"minutesToSeconds");var cxe=jS;function US(t){let e=t/ku;return Math.trunc(e)}o(US,"monthsToQuarters");var hxe=US;function zS(t){let e=t/Tu;return Math.trunc(e)}o(zS,"monthsToYears");var yxe=zS;function bt(t,e,r){let n=e-ni(t,r);return n<=0&&(n+=7),et(t,n,r)}o(bt,"nextDay");var vxe=bt;function HS(t,e){return bt(t,5,e)}o(HS,"nextFriday");var Dxe=HS;function WS(t,e){return bt(t,1,e)}o(WS,"nextMonday");var Mxe=WS;function qS(t,e){return bt(t,6,e)}o(qS,"nextSaturday");var _xe=qS;function YS(t,e){return bt(t,0,e)}o(YS,"nextSunday");var $xe=YS;function VS(t,e){return bt(t,4,e)}o(VS,"nextThursday");var zxe=VS;function KS(t,e){return bt(t,2,e)}o(KS,"nextTuesday");var Yxe=KS;function GS(t,e){return bt(t,3,e)}o(GS,"nextWednesday");var Qxe=GS;function JS(t,e){let r=o(()=>$(e?.in,NaN),"invalidDate"),n=e?.additionalDigits??2,i=iL(t),s;if(i.date){let u=oL(i.date,n);s=sL(u.restDateString,u.year)}if(!s||isNaN(+s))return r();let a=+s,l=0,c;if(i.time&&(l=aL(i.time),isNaN(l)))return r();if(i.timezone){if(c=lL(i.timezone),isNaN(c))return r()}else{let u=new Date(a+l),f=b(0,e?.in);return f.setFullYear(u.getUTCFullYear(),u.getUTCMonth(),u.getUTCDate()),f.setHours(u.getUTCHours(),u.getUTCMinutes(),u.getUTCSeconds(),u.getUTCMilliseconds()),f}return b(a+l+c,e?.in)}o(JS,"parseISO");var tp={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},tL=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,rL=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,nL=/^([+-])(\d{2})(?::?(\d{2}))?$/;function iL(t){let e={},r=t.split(tp.dateTimeDelimiter),n;if(r.length>2)return e;if(/:/.test(r[0])?n=r[0]:(e.date=r[0],n=r[1],tp.timeZoneDelimiter.test(e.date)&&(e.date=t.split(tp.timeZoneDelimiter)[0],n=t.substr(e.date.length,t.length))),n){let i=tp.timezone.exec(n);i?(e.time=n.replace(i[1],""),e.timezone=i[1]):e.time=n}return e}o(iL,"splitDateString");function oL(t,e){let r=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+e)+"})|(\\d{2}|[+-]\\d{"+(2+e)+"})$)"),n=t.match(r);if(!n)return{year:NaN,restDateString:""};let i=n[1]?parseInt(n[1]):null,s=n[2]?parseInt(n[2]):null;return{year:s===null?i:s*100,restDateString:t.slice((n[1]||n[2]).length)}}o(oL,"parseYear");function sL(t,e){if(e===null)return new Date(NaN);let r=t.match(tL);if(!r)return new Date(NaN);let n=!!r[4],i=Za(r[1]),s=Za(r[2])-1,a=Za(r[3]),l=Za(r[4]),c=Za(r[5])-1;if(n)return hL(e,l,c)?cL(e,l,c):new Date(NaN);{let u=new Date(0);return!fL(e,s,a)||!pL(e,i)?new Date(NaN):(u.setUTCFullYear(e,s,Math.max(i,a)),u)}}o(sL,"parseDate");function Za(t){return t?parseInt(t):1}o(Za,"parseDateUnit");function aL(t){let e=t.match(rL);if(!e)return NaN;let r=yd(e[1]),n=yd(e[2]),i=yd(e[3]);return mL(r,n,i)?r*Jt+n*gt+i*1e3:NaN}o(aL,"parseTime");function yd(t){return t&&parseFloat(t.replace(",","."))||0}o(yd,"parseTimeUnit");function lL(t){if(t==="Z")return 0;let e=t.match(nL);if(!e)return 0;let r=e[1]==="+"?-1:1,n=parseInt(e[2]),i=e[3]&&parseInt(e[3])||0;return dL(n,i)?r*(n*Jt+i*gt):NaN}o(lL,"parseTimezone");function cL(t,e,r){let n=new Date(0);n.setUTCFullYear(t,0,4);let i=n.getUTCDay()||7,s=(e-1)*7+r+1-i;return n.setUTCDate(n.getUTCDate()+s),n}o(cL,"dayOfISOWeekYear");var uL=[31,null,31,30,31,30,31,31,30,31,30,31];function QS(t){return t%400===0||t%4===0&&t%100!==0}o(QS,"isLeapYearIndex");function fL(t,e,r){return e>=0&&e<=11&&r>=1&&r<=(uL[e]||(QS(t)?29:28))}o(fL,"validateDate");function pL(t,e){return e>=1&&e<=(QS(t)?366:365)}o(pL,"validateDayOfYearDate");function hL(t,e,r){return e>=1&&e<=53&&r>=0&&r<=6}o(hL,"validateWeekDate");function mL(t,e,r){return t===24?e===0&&r===0:r>=0&&r<60&&e>=0&&e<60&&t>=0&&t<25}o(mL,"validateTime");function dL(t,e){return e>=0&&e<=59}o(dL,"validateTimezone");var rbe=JS;function XS(t,e){let r=t.match(/(\d{4})-(\d{2})-(\d{2})[T ](\d{2}):(\d{2}):(\d{2})(?:\.(\d{0,7}))?(?:Z|(.)(\d{2}):?(\d{2})?)?/);return r?b(Date.UTC(+r[1],+r[2]-1,+r[3],+r[4]-(+r[9]||0)*(r[8]=="-"?-1:1),+r[5]-(+r[10]||0)*(r[8]=="-"?-1:1),+r[6],+((r[7]||"0")+"00").substring(0,3)),e?.in):b(NaN,e?.in)}o(XS,"parseJSON");var sbe=XS;function wt(t,e,r){let n=ni(t,r)-e;return n<=0&&(n+=7),oi(t,n,r)}o(wt,"previousDay");var fbe=wt;function ZS(t,e){return wt(t,5,e)}o(ZS,"previousFriday");var dbe=ZS;function ev(t,e){return wt(t,1,e)}o(ev,"previousMonday");var bbe=ev;function tv(t,e){return wt(t,6,e)}o(tv,"previousSaturday");var kbe=tv;function rv(t,e){return wt(t,0,e)}o(rv,"previousSunday");var Cbe=rv;function nv(t,e){return wt(t,4,e)}o(nv,"previousThursday");var Nbe=nv;function iv(t,e){return wt(t,2,e)}o(iv,"previousTuesday");var Rbe=iv;function ov(t,e){return wt(t,3,e)}o(ov,"previousWednesday");var Bbe=ov;function sv(t){return Math.trunc(t*ku)}o(sv,"quartersToMonths");var Hbe=sv;function av(t){let e=t/Eu;return Math.trunc(e)}o(av,"quartersToYears");var Vbe=av;function lv(t,e){let r=e?.nearestTo??1;if(r<1||r>12)return $(e?.in||t,NaN);let n=b(t,e?.in),i=n.getMinutes()/60,s=n.getSeconds()/60/60,a=n.getMilliseconds()/1e3/60/60,l=n.getHours()+i+s+a,c=e?.roundingMethod??"round",f=xt(c)(l/r)*r;return n.setHours(f,0,0,0),n}o(lv,"roundToNearestHours");var Zbe=lv;function cv(t,e){let r=e?.nearestTo??1;if(r<1||r>30)return $(t,NaN);let n=b(t,e?.in),i=n.getSeconds()/60,s=n.getMilliseconds()/1e3/60,a=n.getMinutes()+i+s,l=e?.roundingMethod??"round",u=xt(l)(a/r)*r;return n.setMinutes(u,0,0),n}o(cv,"roundToNearestMinutes");var owe=cv;function uv(t){let e=t/qi;return Math.trunc(e)}o(uv,"secondsToHours");var cwe=uv;function fv(t){return t*os}o(fv,"secondsToMilliseconds");var hwe=fv;function pv(t){let e=t/as;return Math.trunc(e)}o(pv,"secondsToMinutes");var ywe=pv;function Es(t,e,r){let n=b(t,r?.in),i=n.getFullYear(),s=n.getDate(),a=$(r?.in||t,0);a.setFullYear(i,e,15),a.setHours(0,0,0,0);let l=Xu(a);return n.setMonth(e,Math.min(s,l)),n}o(Es,"setMonth");var kwe=Es;function hv(t,e,r){let n=b(t,r?.in);return isNaN(+n)?$(r?.in||t,NaN):(e.year!=null&&n.setFullYear(e.year),e.month!=null&&(n=Es(n,e.month)),e.date!=null&&n.setDate(e.date),e.hours!=null&&n.setHours(e.hours),e.minutes!=null&&n.setMinutes(e.minutes),e.seconds!=null&&n.setSeconds(e.seconds),e.milliseconds!=null&&n.setMilliseconds(e.milliseconds),n)}o(hv,"set");var Iwe=hv;function mv(t,e,r){let n=b(t,r?.in);return n.setDate(e),n}o(mv,"setDate");var Lwe=mv;function dv(t,e,r){let n=b(t,r?.in);return n.setMonth(0),n.setDate(e),n}o(dv,"setDayOfYear");var Awe=dv;function gv(t){let e={},r=Oe();for(let n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n]);for(let n in t)Object.prototype.hasOwnProperty.call(t,n)&&(t[n]===void 0?delete e[n]:e[n]=t[n]);Bw(e)}o(gv,"setDefaultOptions");var Uwe=gv;function yv(t,e,r){let n=b(t,r?.in);return n.setHours(e),n}o(yv,"setHours");var qwe=yv;function xv(t,e,r){let n=b(t,r?.in);return n.setMilliseconds(e),n}o(xv,"setMilliseconds");var Gwe=xv;function bv(t,e,r){let n=b(t,r?.in);return n.setMinutes(e),n}o(bv,"setMinutes");var Zwe=bv;function wv(t,e,r){let n=b(t,r?.in),i=Math.trunc(n.getMonth()/3)+1,s=e-i;return Es(n,n.getMonth()+s*3)}o(wv,"setQuarter");var i0e=wv;function Sv(t,e,r){let n=b(t,r?.in);return n.setSeconds(e),n}o(Sv,"setSeconds");var l0e=Sv;function vv(t,e,r){let n=Oe(),i=r?.firstWeekContainsDate??r?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,s=ot(b(t,r?.in),Qi(t,r),r),a=$(r?.in||t,0);a.setFullYear(e,0,i),a.setHours(0,0,0,0);let l=Qi(a,r);return l.setDate(l.getDate()+s),l}o(vv,"setWeekYear");var g0e=vv;function kv(t,e,r){let n=b(t,r?.in);return isNaN(+n)?$(r?.in||t,NaN):(n.setFullYear(e),n)}o(kv,"setYear");var S0e=kv;function Tv(t,e){let r=b(t,e?.in),n=r.getFullYear(),i=Math.floor(n/10)*10;return r.setFullYear(i,0,1),r.setHours(0,0,0,0),r}o(Tv,"startOfDecade");var E0e=Tv;function Ev(t){return rn(Date.now(),t)}o(Ev,"startOfToday");var I0e=Ev;function Dv(t){let e=de(t?.in),r=e.getFullYear(),n=e.getMonth(),i=e.getDate(),s=$(t?.in,0);return s.setFullYear(r,n,i+1),s.setHours(0,0,0,0),s}o(Dv,"startOfTomorrow");var _0e=Dv;function Cv(t){let e=de(t?.in),r=e.getFullYear(),n=e.getMonth(),i=e.getDate(),s=de(t?.in);return s.setFullYear(r,n,i-1),s.setHours(0,0,0,0),s}o(Cv,"startOfYesterday");var $0e=Cv;function rp(t,e,r){return en(t,-e,r)}o(rp,"subMonths");var z0e=rp;function Ov(t,e,r){let{years:n=0,months:i=0,weeks:s=0,days:a=0,hours:l=0,minutes:c=0,seconds:u=0}=e,f=rp(t,i+n*12,r),p=oi(f,a+s*7,r),h=c+l*60,d=(u+h*60)*1e3;return $(r?.in||t,+p-d)}o(Ov,"sub");var K0e=Ov;function Iv(t,e,r){return Ou(t,-e,r)}o(Iv,"subBusinessDays");var X0e=Iv;function Mv(t,e,r){return Iu(t,-e,r)}o(Mv,"subHours");var rSe=Mv;function Nv(t,e,r){return Qn(t,-e,r)}o(Nv,"subMilliseconds");var sSe=Nv;function Pv(t,e,r){return ls(t,-e,r)}o(Pv,"subMinutes");var uSe=Pv;function Lv(t,e,r){return cs(t,-e,r)}o(Lv,"subQuarters");var mSe=Lv;function _v(t,e,r){return Pu(t,-e,r)}o(_v,"subSeconds");var xSe=_v;function Rv(t,e,r){return Jn(t,-e,r)}o(Rv,"subWeeks");var vSe=Rv;function Fv(t,e,r){return Lu(t,-e,r)}o(Fv,"subYears");var DSe=Fv;function Av(t){return Math.trunc(t*7)}o(Av,"weeksToDays");var MSe=Av;function $v(t){return Math.trunc(t*365.2425)}o($v,"yearsToDays");var _Se=$v;function Bv(t){return Math.trunc(t*Tu)}o(Bv,"yearsToMonths");var $Se=Bv;function jv(t){return Math.trunc(t*Eu)}o(jv,"yearsToQuarters");var zSe=jv;var Hv=o(t=>Number.isFinite(t)?t:0,"toZeroIfInfinity");function gL(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(Hv(t*1e3)%1e3),nanoseconds:Math.trunc(Hv(t*1e6)%1e3)}}o(gL,"parseNumber");function yL(t){return{days:t/86400000n,hours:t/3600000n%24n,minutes:t/60000n%60n,seconds:t/1000n%60n,milliseconds:t%1000n,microseconds:0n,nanoseconds:0n}}o(yL,"parseBigint");function vd(t){switch(typeof t){case"number":{if(Number.isFinite(t))return gL(t);break}case"bigint":return yL(t)}throw new TypeError("Expected a finite number or bigint")}o(vd,"parseMilliseconds");var xL=o(t=>t===0||t===0n,"isZero"),bL=o((t,e)=>e===1||e===1n?t:`${t}s`,"pluralize"),wL=1e-7,SL=24n*60n*60n*1000n;function tl(t,e){let r=typeof t=="bigint";if(!r&&!Number.isFinite(t))throw new TypeError("Expected a finite number or bigint");e={...e};let n=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 i=[],s=o((f,p)=>{let h=Math.floor(f*10**p+wL);return(Math.round(h)/10**p).toFixed(p)},"floorDecimals"),a=o((f,p,h,m)=>{if(!((i.length===0||!e.colonNotation)&&xL(f)&&!(e.colonNotation&&h==="m"))){if(m??=String(f),e.colonNotation){let d=m.includes(".")?m.split(".")[0].length:m.length,g=i.length>0?2:1;m="0".repeat(Math.max(0,g-d))+m}else m+=e.verbose?" "+bL(p,f):h;i.push(m)}},"add"),l=vd(t),c=BigInt(l.days);if(e.hideYearAndDays?a(BigInt(c)*24n+BigInt(l.hours),"hour","h"):(e.hideYear?a(c,"day","d"):(a(c/365n,"year","y"),a(c%365n,"day","d")),a(Number(l.hours),"hour","h")),a(Number(l.minutes),"minute","m"),!e.hideSeconds)if(e.separateMilliseconds||e.formatSubMilliseconds||!e.colonNotation&&t<1e3&&!e.subSecondsAsDecimals){let f=Number(l.seconds),p=Number(l.milliseconds),h=Number(l.microseconds),m=Number(l.nanoseconds);if(a(f,"second","s"),e.formatSubMilliseconds)a(p,"millisecond","ms"),a(h,"microsecond","\xB5s"),a(m,"nanosecond","ns");else{let d=p+h/1e3+m/1e6,g=typeof e.millisecondsDecimalDigits=="number"?e.millisecondsDecimalDigits:0,y=d>=1?Math.round(d):Math.ceil(d),x=g?d.toFixed(g):y;a(Number.parseFloat(x),"millisecond","ms",x)}}else{let f=(r?Number(t%SL):t)/1e3%60,p=typeof e.secondsDecimalDigits=="number"?e.secondsDecimalDigits:1,h=s(f,p),m=e.keepDecimalsOnWholeSeconds?h:h.replace(/\.0+$/,"");a(Number.parseFloat(m),"second","s",m)}if(i.length===0)return n+"0"+(e.verbose?" milliseconds":"ms");let u=e.colonNotation?":":" ";return typeof e.unitCount=="number"&&(i=i.slice(0,Math.max(e.unitCount,1))),n+i.join(u)}o(tl,"prettyMilliseconds");var Xi=qn(Uv(),1),Wv=qn(zv(),1);Xi.default.extend(Wv.default);var rl=class{static{o(this,"CronJob")}constructor(e,r,n){this.status="initial",this.nextExecutionUnix=0,this.cronExpression=r,this.jobFunction=n,this.cronParser=new Wa.Cron(r)}checkExecution(){if(this.status==="stopped")return this.nextExecutionUnix;if(this.nextExecutionUnix===0&&this.getNextExecutionTime(),Date.now()>this.nextExecutionUnix){let e=this.jobFunction(this.nextExecutionUnix);e instanceof Promise&&e.catch(r=>console.log(r)),this.nextExecutionUnix=this.getNextExecutionTime()}return this.nextExecutionUnix}getNextExecutionTime(){return this.nextExecutionUnix=Date.now()+this.getTimeToNextExecution()}getTimeToNextExecution(){return this.cronParser.msToNext()??1/0}start(){this.status="started"}stop(){this.status="stopped"}};var nl=class{static{o(this,"CronJobCollection")}constructor(){this.cronJobSet=new Set}add(e){this.cronJobSet.add(e)}remove(e){this.cronJobSet.delete(e)}getArray(){return[...this.cronJobSet]}isEmpty(){return this.cronJobSet.size===0}get length(){return this.cronJobSet.size}[Symbol.iterator](){return this.cronJobSet.values()}};var kd=class{static{o(this,"CronManager")}constructor(){this.executionTimeout=null,this.status="stopped",this.cronjobs=new nl,this.cycleWakeDeferred=null,this.cycleGeneration=0}wakeCycle(){this.cycleWakeDeferred&&this.cycleWakeDeferred.status==="pending"&&this.cycleWakeDeferred.resolve()}addCronjob(e,r){let n=new rl(this,e,r);return this.cronjobs.add(n),this.status==="started"&&(n.start(),this.wakeCycle()),n}removeCronjob(e){e.stop(),this.cronjobs.remove(e),this.status==="started"&&this.wakeCycle()}start(){if(this.status!=="started"){this.status="started";for(let e of this.cronjobs.getArray())e.start();this.cycleGeneration++,this.runCronCycle(this.cycleGeneration)}}isCurrentCycle(e){return this.status==="started"&&this.cycleGeneration===e}async runCronCycle(e){for(;this.isCurrentCycle(e);){let r=new Q.Deferred;this.cycleWakeDeferred=r;let n=1/0;for(let i of this.cronjobs.getArray()){i.checkExecution();let s=i.getTimeToNextExecution();s<n&&(n=s)}if(n<1/0&&n>0){let i=new Q.Timeout(n);this.executionTimeout=i,await Promise.race([i.promise,r.promise]),i.cancel()}else{if(n<=0)continue;await r.promise}}this.cycleGeneration===e&&(this.cycleWakeDeferred=null)}stop(){this.status==="started"&&(this.status="stopped",this.executionTimeout&&this.executionTimeout.cancel(),this.wakeCycle());for(let e of this.cronjobs.getArray())e.stop()}};var si={years:o((t=1)=>t*3154e7,"years"),months:o((t=1)=>t*2628e6,"months"),weeks:o((t=1)=>t*6048e5,"weeks"),days:o((t=1)=>t*864e5,"days"),hours:o((t=1)=>t*36e5,"hours"),minutes:o((t=1)=>t*6e4,"minutes"),seconds:o((t=1)=>t*1e3,"seconds")},Td=o(t=>{let e=0,r=o(n=>{e=e+n},"addMilliSeconds");return t.years&&r(si.years(t.years)),t.months&&r(si.months(t.months)),t.weeks&&r(si.weeks(t.weeks)),t.days&&r(si.days(t.days)),t.hours&&r(si.hours(t.hours)),t.minutes&&r(si.minutes(t.minutes)),t.seconds&&r(si.seconds(t.seconds)),e},"getMilliSecondsFromUnits"),vL=o(t=>tl(t),"getMilliSecondsAsHumanReadableString"),kL=o(t=>el.formatDistanceToNow(new Date(t)),"getMilliSecondsAsHumanReadableAgoTime");var Ed=class t extends Date{static{o(this,"ExtendedDate")}static fromMillis(e){return new t(e)}static fromDate(e){return new t(e.getTime())}static fromEuropeanDate(e){let r=t.parseEuropeanDate(e),i=new Date(parseFloat(r[3]),parseFloat(r[2])-1,parseFloat(r[1])).getTime();return new t(i)}static fromHyphedDate(e){let r=new Date(e).getTime();return new t(r)}static fromEuropeanDateAndTime(e,r="12:00:00",n="Europe/Berlin"){let i=t.parseEuropeanDate(e),s=o(u=>`0${u}`.slice(-2),"sliceDate"),a=`${i[3]}-${s(i[2])}-${s(i[1])}T${r}`,c=Xi.default(a).toDate().getTime();return new t(c)}static parseEuropeanDate(e){let r=/(.*)\.(.*)\.(.*)/.exec(e);if(!r)throw new Error(`"${e}" is not a European date like "28.03.2018"`);return r}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"],r=["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:r[this.getDay()]}}format(e){return Xi.default(this.getTime()).format(e)}isToday(){return Xi.default(this.getTime()).isToday()}lessTimePassedToNow(e){let r=Td(e);return Date.now()-this.getTime()<r}moreTimePassedToNow(e){return!this.lessTimePassedToNow(e)}};var Dd=class{static{o(this,"HrtMeasurement")}constructor(){this.nanoSeconds=null,this.milliSeconds=null,this._milliStart=null,this._milliDiff=null}start(){this._milliStart=performance.now()}stop(){return this._milliStart===null?(console.log("Hasn't started yet"),this):(this._milliDiff=performance.now()-this._milliStart,this.nanoSeconds=this._milliDiff*1e6,this.milliSeconds=this._milliDiff,this)}reset(){this.nanoSeconds=null,this.milliSeconds=null,this._milliStart=null,this._milliDiff=null}};var Cd=class{static{o(this,"Interval")}constructor(e){this.status="initial",this.currentRun=null,this.intervalJobs=[],this.intervalMilliseconds=e}start(){this.endCurrentRun(),this.status="started";let e={timeout:null,stopped:Q.defer()};this.currentRun=e,o(async()=>{for(;this.currentRun===e&&(e.timeout=new Q.Timeout(this.intervalMilliseconds),await Promise.race([e.timeout.promise,e.stopped.promise]),this.currentRun===e);)this.executeIntervalJobs()},"runInterval")()}stop(){this.status="stopped",this.endCurrentRun()}addIntervalJob(e){this.intervalJobs.push(e)}endCurrentRun(){let e=this.currentRun;e&&(this.currentRun=null,e.timeout?.cancel(),e.stopped.resolve())}executeIntervalJobs(){for(let e of this.intervalJobs)e()}};var Cs=class t{static{o(this,"TimeStamp")}static fromMilliSeconds(e){return new t(e)}static fromTimeStamp(e){let r=new t;return r.change=r.milliSeconds-e.milliSeconds,r}constructor(e){this.change=null,this.date=e?new Date(e):new Date,this.milliSeconds=this.date.getTime(),this.epochtime=Math.floor(this.milliSeconds/1e3)}isOlderThanOtherTimeStamp(e,r=0){return this.milliSeconds<e.milliSeconds-r}isOlderThan(e,r=0){return this.milliSeconds+r<e.milliSeconds}isYoungerThanOtherTimeStamp(e,r=0){return this.milliSeconds>e.milliSeconds+r}isYoungerThanMilliSeconds(e){let n=new t().epochtime-e,i=new t(n);return this.isYoungerThanOtherTimeStamp(i)}};var Od=class{static{o(this,"Timer")}get timeLeft(){let e=this.pausedAt?.change;if(e==null)throw new Error("timer has NOT been paused before. timeLeft is known after .pause()");return this.timeInMilliseconds-e}constructor(e){this.state="initiated",this.startedAt=null,this.pausedAt=null,this.currentTimeout=null,this.completedDeferred=Q.defer(),this.timeInMilliseconds=e,this.completed=this.completedDeferred.promise}start(){if(!this.startedAt)this.startTimeout(this.timeInMilliseconds),this.startedAt=new Cs;else throw new Error("timer has been started before. Please use resume instead")}pause(){this.startedAt&&(this.currentTimeout?.cancel(),this.currentTimeout=null,this.pausedAt=Cs.fromTimeStamp(this.startedAt))}resume(){if(this.startedAt)this.startTimeout(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}startTimeout(e){this.currentTimeout?.cancel();let r=new Q.Timeout(e);this.currentTimeout=r,r.promise.then(()=>{this.completedDeferred.resolve()})}};var ip=qn(tk(),1);var Md=class{static{o(this,"AsyncExecutionStack")}executionSlots=[];isProcessing=!1;nonExclusiveMaxConcurrency=1/0;nonExclusiveCurrentCount=0;nonExclusivePendingQueue=[];async getExclusiveExecutionSlot(e,r){let n=Q.defer(),i={funcToExecute:e,executionDeferred:n,timeout:r,mode:"exclusive"};return this.executionSlots.push(i),this.processExecutionSlots(),n.promise}async getNonExclusiveExecutionSlot(e,r){let n=Q.defer(),i={funcToExecute:e,executionDeferred:n,timeout:r,mode:"nonexclusive"};return this.executionSlots.push(i),this.processExecutionSlots(),n.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 r=[];for(;this.executionSlots.length>0&&this.executionSlots[0].mode==="nonexclusive";)r.push(this.executionSlots.shift());await this.executeNonExclusiveSlots(r)}}this.isProcessing=!1}}async executeExclusiveSlot(e){try{if(e.timeout){let r=new Q.Timeout(e.timeout);try{let n=await Promise.race([e.funcToExecute(),r.promise.then(()=>{throw new Error("Timeout reached")})]);r.cancel(),e.executionDeferred.resolve(n)}catch(n){throw r.cancel(),n}}else{let r=await e.funcToExecute();e.executionDeferred.resolve(r)}}catch(r){e.executionDeferred.reject(r)}}async executeNonExclusiveSlots(e){let r=e.map(async n=>{await this.waitForNonExclusiveSlot();try{if(n.timeout){let i=new Q.Timeout(n.timeout);try{let s=await Promise.race([n.funcToExecute(),i.promise.then(()=>{throw new Error("Timeout reached")})]);i.cancel(),n.executionDeferred.resolve(s)}catch(s){throw i.cancel(),s}}else{let i=await n.funcToExecute();n.executionDeferred.resolve(i)}}catch(i){n.executionDeferred.reject(i)}finally{this.releaseNonExclusiveSlot()}});await Promise.all(r)}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 Nd=class{static{o(this,"BackpressuredArray")}data;highWaterMark;hasSpace=new Ne.rxjs.Subject;itemsAvailable=new Ne.rxjs.Subject;isDestroyed=!1;constructor(e=16){this.data=[],this.highWaterMark=e}get length(){return this.data.length}push(e){this.data.push(e),this.itemsAvailable.next("itemsAvailable");let r=this.checkSpaceAvailable();return r&&this.hasSpace.next("hasSpace"),r}pushMany(e){for(let r of e)this.push(r);return this.checkSpaceAvailable()}shift(){let e=this.data.shift();return this.checkSpaceAvailable()&&this.hasSpace.next("hasSpace"),e}peek(){return this.data[0]}checkSpaceAvailable(){return this.data.length<this.highWaterMark}checkHasItems(){return this.data.length>0}waitForSpace(){return new Promise(e=>{if(this.checkSpaceAvailable()||this.isDestroyed)e();else{let r=this.hasSpace.subscribe({next:o(()=>{r.unsubscribe(),e()},"next"),complete:o(()=>{e()},"complete")})}})}waitForItems(){return new Promise(e=>{if(this.data.length>0||this.isDestroyed)e();else{let r=this.itemsAvailable.subscribe({next:o(()=>{r.unsubscribe(),e()},"next"),complete:o(()=>{e()},"complete")})}})}[Symbol.iterator](){return this.data[Symbol.iterator]()}destroy(){this.isDestroyed=!0,this.hasSpace.complete(),this.itemsAvailable.complete()}};var eo=class t{static{o(this,"FastMap")}mapObject=new Map;isUniqueKey(e){return!this.mapObject.has(e)}has(e){return this.mapObject.has(e)}get size(){return this.mapObject.size}addToMap(e,r,n){return this.isUniqueKey(e)||n&&n.force?(this.mapObject.set(e,r),!0):!1}getByKey(e){return this.mapObject.get(e)}removeFromMap(e){let r=this.mapObject.get(e);return this.mapObject.delete(e),r}getKeys(){return Array.from(this.mapObject.keys())}values(){return Array.from(this.mapObject.values())}entries(){return Array.from(this.mapObject.entries())}clean(){this.mapObject.clear()}concat(e){let r=new t;for(let n of this.getKeys())r.addToMap(n,this.getByKey(n));for(let n of e.getKeys())r.addToMap(n,e.getByKey(n),{force:!0});return r}addAllFromOther(e){for(let r of e.getKeys())this.addToMap(r,e.getByKey(r),{force:!0})}async find(e){for(let r of this.getKeys()){let n=this.getByKey(r);if(await e(n))return n}}[Symbol.iterator](){return this.mapObject.entries()}};var rk=o((t="uni")=>`${t}xxxxxxxxxxx`.replace(/[xy]/g,e=>{let r=Math.random()*16|0;return(e==="x"?r:r&3|8).toString(16)}),"uni"),Tn=class t{static{o(this,"ObjectMap")}fastMap=new eo;reverseMap=new Map;eventSubject=new Ne.rxjs.Subject;constructor(){}get length(){return this.fastMap.size}addMappedUnique(e,r){this.fastMap.addToMap(e,r),this.reverseMap.set(r,e)}getMappedUnique(e){return this.fastMap.getByKey(e)}removeMappedUnique(e){let r=this.fastMap.removeFromMap(e);return r!==void 0&&(this.reverseMap.delete(r),this.eventSubject.next({operation:"remove",payload:r})),r}add(e){let r=this.reverseMap.get(e);if(r!==void 0)return r;let n=rk("key");return this.addMappedUnique(n,e),this.eventSubject.next({operation:"add",payload:e}),n}addArray(e){for(let r of e)this.add(r)}checkForObject(e){return this.reverseMap.has(e)}getKeyForObject(e){return this.reverseMap.get(e)??null}async find(e){return this.fastMap.find(e)}findSync(e){for(let r of this.fastMap.getKeys())if(e(this.fastMap.getByKey(r)))return this.getMappedUnique(r)}async findOneAndRemove(e){let r=await this.find(e);return r&&this.remove(r),r}findOneAndRemoveSync(e){let r=this.findSync(e);return r&&this.remove(r),r}async forEach(e){for(let r of this.fastMap.getKeys())await e(this.fastMap.getByKey(r))}getOneAndRemove(){let e=this.fastMap.getKeys();if(e.length===0)return null;{let r=e[0],n=this.fastMap.removeFromMap(r);return this.reverseMap.delete(n),this.eventSubject.next({operation:"remove",payload:n}),n}}getArray(){return this.fastMap.values()}isEmpty(){return this.fastMap.size===0}remove(e){let r=this.reverseMap.get(e);if(r!==void 0){let n=this.fastMap.removeFromMap(r);return this.reverseMap.delete(n),this.eventSubject.next({operation:"remove",payload:n}),n}return null}wipe(){let e=this.fastMap.getKeys();for(let r of e){let n=this.fastMap.removeFromMap(r);this.reverseMap.delete(n),this.eventSubject.next({operation:"remove",payload:n})}}concat(e){let r=new t;r.fastMap.addAllFromOther(this.fastMap),r.fastMap.addAllFromOther(e.fastMap);for(let n of r.fastMap.getKeys())r.reverseMap.set(r.fastMap.getByKey(n),n);return r}addAllFromOther(e){this.fastMap.addAllFromOther(e.fastMap);for(let r of e.fastMap.getKeys())this.reverseMap.set(e.fastMap.getByKey(r),r)}map(e){return this.getArray().map(e)}filter(e){return this.getArray().filter(e)}reduce(e,r){return this.getArray().reduce(e,r)}[Symbol.iterator](){return this.getArray()[Symbol.iterator]()}destroy(){this.wipe(),this.reverseMap.clear(),this.eventSubject.complete()}};var il=class{static{o(this,"Interest")}options;interestMapRef;originalInterest;comparisonFunc;destructionTimer=new Zi.Timer(1e4);isFullfilled=!1;isDestroyed=!1;fullfillmentStore=[];markLostTimeout=null;get comparisonString(){return this.comparisonFunc(this.originalInterest)}interestDeferred=new Q.Deferred;interestFullfilled=this.interestDeferred.promise;fullfillInterest(e){this.isFullfilled=!0,this.fullfillmentStore=[],this.interestDeferred.resolve(e),this.destroy()}constructor(e,r,n,i){this.interestMapRef=e,this.originalInterest=r,this.comparisonFunc=n,this.options=i,this.destructionTimer.completed.then(()=>{this.isDestroyed||this.destroy()}),this.options?.markLostAfterDefault&&(this.markLostTimeout=new Q.Timeout(this.options.markLostAfterDefault),this.markLostTimeout.promise.then(()=>{this.isDestroyed||this.markLost()}))}destroy(){this.isDestroyed||(this.isDestroyed=!0,this.destructionTimer.reset(),this.markLostTimeout&&(this.markLostTimeout.cancel(),this.markLostTimeout=null),this.fullfillmentStore=[],this.interestMapRef.removeInterest(this),!this.isFullfilled&&this.options?.defaultFullfillment&&(this.isFullfilled=!0,this.interestDeferred.resolve(this.options.defaultFullfillment)))}markLost(){this.destructionTimer.start()}renew(){this.destructionTimer.reset()}};var Pd=class{static{o(this,"InterestMap")}options;interestObjectMap=new Tn;interestsByComparisonString=new Map;comparisonStringsByInterest=new WeakMap;comparisonFunc;constructor(e,r={}){this.comparisonFunc=e,this.options=r}async addInterest(e,r){let n=this.comparisonFunc(e),i,s=this.interestsByComparisonString.get(n);return s?(i=s,i.renew()):(i=new il(this,e,this.comparisonFunc,{markLostAfterDefault:this.options.markLostAfterDefault,defaultFullfillment:r}),this.interestObjectMap.add(i),this.comparisonStringsByInterest.set(i,n),this.interestsByComparisonString.set(n,i)),this.interestObservable.push(i),i}interestObservable=new Ne.ObservableIntake;removeInterest(e){if(!this.comparisonStringsByInterest.has(e))return;let r=this.comparisonStringsByInterest.get(e);this.interestObjectMap.remove(e),this.comparisonStringsByInterest.delete(e),this.interestsByComparisonString.get(r)===e&&this.interestsByComparisonString.delete(r)}checkInterest(e){let r=this.comparisonFunc(e);return this.checkInterestByString(r)}checkInterestByString(e){return this.interestsByComparisonString.has(e)}informLostInterest(e){let r=this.findInterest(e);r&&r.markLost()}findInterest(e){let r=this.comparisonFunc(e);return this.interestsByComparisonString.get(r)??null}destroy(){let e=this.interestObjectMap.getArray();for(let r of e)r.destroy();this.interestObjectMap.wipe(),this.interestsByComparisonString.clear(),this.interestObservable.signalComplete()}};var Ld=class{static{o(this,"LimitedArray")}array=[];arrayLimit;constructor(e){this.arrayLimit=e}get length(){return this.array.length}addOne(e){this.array.unshift(e),this.array.length>this.arrayLimit&&(this.array.length=this.arrayLimit)}addMany(e){for(let r of e)this.addOne(r)}setLimit(e){this.arrayLimit=e,this.array.length>this.arrayLimit&&(this.array.length=this.arrayLimit)}getAverage(){if(this.array.length===0)return 0;if(typeof this.array[0]=="number"){let e=0;for(let r of this.array)e=e+r;return e/this.array.length}else return null}remove(e){let r=this.array.indexOf(e);return r!==-1?(this.array.splice(r,1),!0):!1}clear(){this.array.length=0}getArray(){return[...this.array]}[Symbol.iterator](){return this.array[Symbol.iterator]()}};var _d=class{static{o(this,"LoopTracker")}referenceObjectMap=new Tn;constructor(){}checkAndTrack(e){return this.referenceObjectMap.checkForObject(e)?!1:(this.referenceObjectMap.add(e),!0)}reset(){this.referenceObjectMap.wipe()}destroy(){this.referenceObjectMap.destroy()}};var ol=class{static{o(this,"Stringmap")}_stringArray=[];_triggerUntilTrueFunctionArray=[];constructor(){}addString(e){this._stringArray.push(e),this.notifyTrigger()}addStringArray(e){for(let r of e)this.addString(r)}removeString(e){this._stringArray=this._stringArray.filter(r=>r!==e),this.notifyTrigger()}wipe(){this._stringArray=[],this.notifyTrigger()}checkString(e){return this._stringArray.indexOf(e)!==-1}checkMinimatch(e){let r=new Pa.SmartMatch(e),n=!1;for(let i of this._stringArray)r.match(i)&&(n=!0);return n}checkIsEmpty(){return this._stringArray.length===0}getStringArray(){let e=[];for(let r of this._stringArray)e.push(r);return e}registerUntilTrue(e,r){let n=Q.defer();return this._triggerUntilTrueFunctionArray.push(()=>{let i=e(this.getStringArray());return i===!0&&(r&&r(),n.resolve()),i}),this.notifyTrigger(),n.promise}notifyTrigger(){let e=this._triggerUntilTrueFunctionArray.filter(r=>!r());this._triggerUntilTrueFunctionArray=e}destroy(){this._stringArray=[],this._triggerUntilTrueFunctionArray=[]}};var sl=class{static{o(this,"TimedAggregtor")}options;storageArray=[];isStopped=!1;constructor(e){this.options=e}aggregationTimer;checkAggregationStatus(){if(this.isStopped)return;let e=o(()=>{this.aggregationTimer=new Zi.Timer(this.options.aggregationIntervalInMillis),this.aggregationTimer.completed.then(()=>{if(this.isStopped){this.aggregationTimer=null;return}let r=this.storageArray;if(r.length===0){this.aggregationTimer=null;return}this.storageArray=[],e(),this.options.functionForAggregation(r)}),this.aggregationTimer.start()},"addAggregationTimer");this.aggregationTimer||e()}add(e){this.isStopped||(this.storageArray.push(e),this.checkAggregationStatus())}stop(e=!1){if(this.isStopped=!0,this.aggregationTimer&&(this.aggregationTimer.reset(),this.aggregationTimer=null),e&&this.storageArray.length>0){let r=this.storageArray;this.storageArray=[],this.options.functionForAggregation(r)}else this.storageArray=[]}restart(){this.isStopped=!1}};var Rd=class{static{o(this,"Tree")}symbolTree;constructor(){this.symbolTree=new ip.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,r){return this.symbolTree.preceding(e,r)}following(e,r){return this.symbolTree.following(e,r)}childrenToArray(e,r){return this.symbolTree.childrenToArray(e,r)}ancestorsToArray(e,r){return this.symbolTree.ancestorsToArray(e,r)}treeToArray(e,r){return this.symbolTree.treeToArray(e,r)}childrenIterator(e,r){return this.symbolTree.childrenIterator(e,r)}previousSiblingsIterator(e){return this.symbolTree.previousSiblingsIterator(e)}nextSiblingsIterator(e){return this.symbolTree.nextSiblingsIterator(e)}ancestorsIterator(e){return this.symbolTree.ancestorsIterator(e)}treeIterator(e,r){return this.symbolTree.treeIterator(e,r)}index(e){return this.symbolTree.index(e)}childrenCount(e){return this.symbolTree.childrenCount(e)}compareTreePosition(e,r){return this.symbolTree.compareTreePosition(e,r)}remove(e){return this.symbolTree.remove(e)}insertBefore(e,r){return this.symbolTree.insertBefore(e,r)}insertAfter(e,r){return this.symbolTree.insertAfter(e,r)}prependChild(e,r){return this.symbolTree.prependChild(e,r)}appendChild(e,r){return this.symbolTree.appendChild(e,r)}toJsonWithHierachy(e){let r=o(n=>{let i=[];if(this.hasChildren(n)){let s=this.childrenToArray(n,{});for(let a of s)i.push(r(a))}return{data:n,children:i}},"buildNode");return r(e)}fromJsonWithHierachy(e,r){let n=o((i,s)=>{let a=r?r(i.data):i.data;this.initialize(a),s&&this.appendChild(s,a);for(let l of i.children)n(l,a);return a},"buildTree");return n(e)}};var to={};se(to,{base64ToUint8Array:()=>KL,ensurePureUint8Array:()=>JL,isBufferLike:()=>QL,isUint8Array:()=>GL,uInt8ArrayExtras:()=>YL,uInt8ArrayToBase64:()=>VL});var fi={};se(fi,{areUint8ArraysEqual:()=>LL,assertUint8Array:()=>ui,assertUint8ArrayOrArrayBuffer:()=>ak,base64ToString:()=>BL,base64ToUint8Array:()=>fk,compareUint8Arrays:()=>_L,concatUint8Arrays:()=>PL,getUintBE:()=>HL,hexToUint8Array:()=>zL,includes:()=>WL,indexOf:()=>pk,isUint8Array:()=>Fd,stringToBase64:()=>$L,stringToUint8Array:()=>ck,toUint8Array:()=>NL,uint8ArrayToBase64:()=>uk,uint8ArrayToHex:()=>UL,uint8ArrayToString:()=>lk});var DL=Object.prototype.toString,CL="[object Uint8Array]",OL="[object ArrayBuffer]";function nk(t,e,r){return t?t.constructor===e?!0:DL.call(t)===r:!1}o(nk,"isType");function Fd(t){return nk(t,Uint8Array,CL)}o(Fd,"isUint8Array");function IL(t){return nk(t,ArrayBuffer,OL)}o(IL,"isArrayBuffer");function ML(t){return Fd(t)||IL(t)}o(ML,"isUint8ArrayOrArrayBuffer");function ui(t){if(!Fd(t))throw new TypeError(`Expected \`Uint8Array\`, got \`${typeof t}\``)}o(ui,"assertUint8Array");function ak(t){if(!ML(t))throw new TypeError(`Expected \`Uint8Array\` or \`ArrayBuffer\`, got \`${typeof t}\``)}o(ak,"assertUint8ArrayOrArrayBuffer");function NL(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}\`.`)}o(NL,"toUint8Array");function PL(t,e){if(t.length===0)return new Uint8Array(0);e??=t.reduce((i,s)=>i+s.length,0);let r=new Uint8Array(e),n=0;for(let i of t)ui(i),r.set(i,n),n+=i.length;return r}o(PL,"concatUint8Arrays");function LL(t,e){if(ui(t),ui(e),t===e)return!0;if(t.length!==e.length)return!1;for(let r=0;r<t.length;r++)if(t[r]!==e[r])return!1;return!0}o(LL,"areUint8ArraysEqual");function _L(t,e){ui(t),ui(e);let r=Math.min(t.length,e.length);for(let n=0;n<r;n++){let i=t[n]-e[n];if(i!==0)return Math.sign(i)}return Math.sign(t.length-e.length)}o(_L,"compareUint8Arrays");var ik={utf8:new globalThis.TextDecoder("utf8")};function lk(t,e="utf8"){return ak(t),ik[e]??=new globalThis.TextDecoder(e),ik[e].decode(t)}o(lk,"uint8ArrayToString");function al(t){if(typeof t!="string")throw new TypeError(`Expected \`string\`, got \`${typeof t}\``)}o(al,"assertString");var RL=new globalThis.TextEncoder;function ck(t){return al(t),RL.encode(t)}o(ck,"stringToUint8Array");function FL(t){return t.replaceAll("+","-").replaceAll("/","_").replace(/=+$/,"")}o(FL,"base64ToBase64Url");function AL(t){let e=t.replaceAll("-","+").replaceAll("_","/"),r=(4-e.length%4)%4;return e+"=".repeat(r)}o(AL,"base64UrlToBase64");var ok=65535;function uk(t,{urlSafe:e=!1}={}){ui(t);let r="";for(let n=0;n<t.length;n+=ok){let i=t.subarray(n,n+ok);r+=globalThis.btoa(String.fromCodePoint.apply(void 0,i))}return e?FL(r):r}o(uk,"uint8ArrayToBase64");function fk(t){return al(t),Uint8Array.from(globalThis.atob(AL(t)),e=>e.codePointAt(0))}o(fk,"base64ToUint8Array");function $L(t,{urlSafe:e=!1}={}){return al(t),uk(ck(t),{urlSafe:e})}o($L,"stringToBase64");function BL(t){return al(t),lk(fk(t))}o(BL,"base64ToString");var jL=Array.from({length:256},(t,e)=>e.toString(16).padStart(2,"0"));function UL(t){ui(t);let e="";for(let r=0;r<t.length;r++)e+=jL[t[r]];return e}o(UL,"uint8ArrayToHex");var sk={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};function zL(t){if(al(t),t.length%2!==0)throw new Error("Invalid Hex string length.");let e=t.length/2,r=new Uint8Array(e);for(let n=0;n<e;n++){let i=sk[t[n*2]],s=sk[t[n*2+1]];if(i===void 0||s===void 0)throw new Error(`Invalid Hex character encountered at position ${n*2}`);r[n]=i<<4|s}return r}o(zL,"hexToUint8Array");function HL(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)}o(HL,"getUintBE");function pk(t,e){let r=t.length,n=e.length;if(n===0||n>r)return-1;let i=r-n;for(let s=0;s<=i;s++){let a=!0;for(let l=0;l<n;l++)if(t[s+l]!==e[l]){a=!1;break}if(a)return s}return-1}o(pk,"indexOf");function WL(t,e){return pk(t,e)!==-1}o(WL,"includes");var YL=fi;function VL(t){return fi.uint8ArrayToBase64(t)}o(VL,"uInt8ArrayToBase64");function KL(t){return fi.base64ToUint8Array(t)}o(KL,"base64ToUint8Array");var GL=o(t=>fi.isUint8Array(t),"isUint8Array");function QL(t){return t&&typeof t.byteLength=="number"?!0:typeof Buffer<"u"&&Buffer.isBuffer?Buffer.isBuffer(t):!1}o(QL,"isBufferLike");function JL(t){let e=new Uint8Array(t.length);return e.set(t),e}o(JL,"ensurePureUint8Array");var fl={};se(fl,{Guard:()=>ll,GuardError:()=>cl,GuardSet:()=>ul,passGuardsOrReject:()=>XL});var ll=class{static{o(this,"Guard")}constructor(e,r){this.guardFunction=e,this.options=r||{}}async exec(e){return await this.guardFunction(e)}async getFailedHint(e){return await this.exec(e)?null:this.options.failedHint||null}};var cl=class extends Error{static{o(this,"GuardError")}constructor(e){super(e),this.name="GuardError"}};var ul=class extends ll{static{o(this,"GuardSet")}constructor(e=[]){super(async r=>this.allGuardsPass(r)),this.guards=e}async execAllWithData(e,r={mode:"parallel",stopOnFail:!1}){let n=[];for(let s of this.guards){let a=s.exec(e);if(r.mode==="serial"&&await a,n.push(a),r.stopOnFail&&!await a)return await Promise.all(n)}return await Promise.all(n)}async allGuardsPass(e,r={mode:"parallel",stopOnFail:!1}){return(await this.execAllWithData(e,r)).every(i=>i)}async anyGuardsPass(e){return(await this.execAllWithData(e,{mode:"parallel",stopOnFail:!1})).some(n=>n)}async getFailedHint(e){for(let r of this.guards){let n=await r.getFailedHint(e);if(n)return n}return null}};var XL=o(async(t,e)=>{let r=new ul(e);if(!await r.allGuardsPass(t)){let i=await r.getFailedHint(t);throw new cl(`Guards failed:
|
|
3
|
+
`):"",this.name="UnsubscriptionError",this.errors=r},"UnsubscriptionErrorImpl")});function Or(t,e){if(t){var r=t.indexOf(e);0<=r&&t.splice(r,1)}}o(Or,"arrRemove");var At=(function(){function t(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}return o(t,"Subscription"),t.prototype.unsubscribe=function(){var e,r,n,i,s;if(!this.closed){this.closed=!0;var a=this._parentage;if(a)if(this._parentage=null,Array.isArray(a))try{for(var l=dt(a),c=l.next();!c.done;c=l.next()){var u=c.value;u.remove(this)}}catch(g){e={error:g}}finally{try{c&&!c.done&&(r=l.return)&&r.call(l)}finally{if(e)throw e.error}}else a.remove(this);var f=this.initialTeardown;if(pe(f))try{f()}catch(g){s=g instanceof Ra?g.errors:[g]}var p=this._finalizers;if(p){this._finalizers=null;try{for(var h=dt(p),m=h.next();!m.done;m=h.next()){var d=m.value;try{uw(d)}catch(g){s=s??[],g instanceof Ra?s=Ft(Ft([],ct(s)),ct(g.errors)):s.push(g)}}}catch(g){n={error:g}}finally{try{m&&!m.done&&(i=h.return)&&i.call(h)}finally{if(n)throw n.error}}}if(s)throw new Ra(s)}},t.prototype.add=function(e){var r;if(e&&e!==this)if(this.closed)uw(e);else{if(e instanceof t){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=(r=this._finalizers)!==null&&r!==void 0?r:[]).push(e)}},t.prototype._hasParent=function(e){var r=this._parentage;return r===e||Array.isArray(r)&&r.includes(e)},t.prototype._addParent=function(e){var r=this._parentage;this._parentage=Array.isArray(r)?(r.push(e),r):r?[r,e]:e},t.prototype._removeParent=function(e){var r=this._parentage;r===e?this._parentage=null:Array.isArray(r)&&Or(r,e)},t.prototype.remove=function(e){var r=this._finalizers;r&&Or(r,e),e instanceof t&&e._removeParent(this)},t.EMPTY=(function(){var e=new t;return e.closed=!0,e})(),t})(),Ym=At.EMPTY;function Wc(t){return t instanceof At||t&&"closed"in t&&pe(t.remove)&&pe(t.add)&&pe(t.unsubscribe)}o(Wc,"isSubscription");function uw(t){pe(t)?t():t.unsubscribe()}o(uw,"execFinalizer");var cr={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var Ko={setTimeout:o(function(t,e){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var i=Ko.delegate;return i?.setTimeout?i.setTimeout.apply(i,Ft([t,e],ct(r))):setTimeout.apply(void 0,Ft([t,e],ct(r)))},"setTimeout"),clearTimeout:o(function(t){var e=Ko.delegate;return(e?.clearTimeout||clearTimeout)(t)},"clearTimeout"),delegate:void 0};function qc(t){Ko.setTimeout(function(){var e=cr.onUnhandledError;if(e)e(t);else throw t})}o(qc,"reportUnhandledError");function Vr(){}o(Vr,"noop");var fw=(function(){return Vm("C",void 0,void 0)})();function pw(t){return Vm("E",void 0,t)}o(pw,"errorNotification");function hw(t){return Vm("N",t,void 0)}o(hw,"nextNotification");function Vm(t,e,r){return{kind:t,value:e,error:r}}o(Vm,"createNotification");var ji=null;function Go(t){if(cr.useDeprecatedSynchronousErrorHandling){var e=!ji;if(e&&(ji={errorThrown:!1,error:null}),t(),e){var r=ji,n=r.errorThrown,i=r.error;if(ji=null,n)throw i}}else t()}o(Go,"errorContext");function mw(t){cr.useDeprecatedSynchronousErrorHandling&&ji&&(ji.errorThrown=!0,ji.error=t)}o(mw,"captureError");var Ui=(function(t){Xe(e,t);function e(r){var n=t.call(this)||this;return n.isStopped=!1,r?(n.destination=r,Wc(r)&&r.add(n)):n.destination=BI,n}return o(e,"Subscriber"),e.create=function(r,n,i){return new Vn(r,n,i)},e.prototype.next=function(r){this.isStopped?Gm(hw(r),this):this._next(r)},e.prototype.error=function(r){this.isStopped?Gm(pw(r),this):(this.isStopped=!0,this._error(r))},e.prototype.complete=function(){this.isStopped?Gm(fw,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(r){this.destination.next(r)},e.prototype._error=function(r){try{this.destination.error(r)}finally{this.unsubscribe()}},e.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},e})(At),FI=Function.prototype.bind;function Km(t,e){return FI.call(t,e)}o(Km,"bind");var AI=(function(){function t(e){this.partialObserver=e}return o(t,"ConsumerObserver"),t.prototype.next=function(e){var r=this.partialObserver;if(r.next)try{r.next(e)}catch(n){Yc(n)}},t.prototype.error=function(e){var r=this.partialObserver;if(r.error)try{r.error(e)}catch(n){Yc(n)}else Yc(e)},t.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(r){Yc(r)}},t})(),Vn=(function(t){Xe(e,t);function e(r,n,i){var s=t.call(this)||this,a;if(pe(r)||!r)a={next:r??void 0,error:n??void 0,complete:i??void 0};else{var l;s&&cr.useDeprecatedNextContext?(l=Object.create(r),l.unsubscribe=function(){return s.unsubscribe()},a={next:r.next&&Km(r.next,l),error:r.error&&Km(r.error,l),complete:r.complete&&Km(r.complete,l)}):a=r}return s.destination=new AI(a),s}return o(e,"SafeSubscriber"),e})(Ui);function Yc(t){cr.useDeprecatedSynchronousErrorHandling?mw(t):qc(t)}o(Yc,"handleUnhandledError");function $I(t){throw t}o($I,"defaultErrorHandler");function Gm(t,e){var r=cr.onStoppedNotification;r&&Ko.setTimeout(function(){return r(t,e)})}o(Gm,"handleStoppedNotification");var BI={closed:!0,next:Vr,error:$I,complete:Vr};var zi=(function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"})();function Kr(t){return t}o(Kr,"identity");function jI(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return Qm(t)}o(jI,"pipe");function Qm(t){return t.length===0?Kr:t.length===1?t[0]:o(function(r){return t.reduce(function(n,i){return i(n)},r)},"piped")}o(Qm,"pipeFromArray");var we=(function(){function t(e){e&&(this._subscribe=e)}return o(t,"Observable"),t.prototype.lift=function(e){var r=new t;return r.source=this,r.operator=e,r},t.prototype.subscribe=function(e,r,n){var i=this,s=zI(e)?e:new Vn(e,r,n);return Go(function(){var a=i,l=a.operator,c=a.source;s.add(l?l.call(s,c):c?i._subscribe(s):i._trySubscribe(s))}),s},t.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(r){e.error(r)}},t.prototype.forEach=function(e,r){var n=this;return r=dw(r),new r(function(i,s){var a=new Vn({next:o(function(l){try{e(l)}catch(c){s(c),a.unsubscribe()}},"next"),error:s,complete:i});n.subscribe(a)})},t.prototype._subscribe=function(e){var r;return(r=this.source)===null||r===void 0?void 0:r.subscribe(e)},t.prototype[zi]=function(){return this},t.prototype.pipe=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return Qm(e)(this)},t.prototype.toPromise=function(e){var r=this;return e=dw(e),new e(function(n,i){var s;r.subscribe(function(a){return s=a},function(a){return i(a)},function(){return n(s)})})},t.create=function(e){return new t(e)},t})();function dw(t){var e;return(e=t??cr.Promise)!==null&&e!==void 0?e:Promise}o(dw,"getPromiseCtor");function UI(t){return t&&pe(t.next)&&pe(t.error)&&pe(t.complete)}o(UI,"isObserver");function zI(t){return t&&t instanceof Ui||UI(t)&&Wc(t)}o(zI,"isSubscriber");function HI(t){return pe(t?.lift)}o(HI,"hasLift");function De(t){return function(e){if(HI(e))return e.lift(function(r){try{return t(r,this)}catch(n){this.error(n)}});throw new TypeError("Unable to lift unknown Observable type")}}o(De,"operate");function Ce(t,e,r,n,i){return new gw(t,e,r,n,i)}o(Ce,"createOperatorSubscriber");var gw=(function(t){Xe(e,t);function e(r,n,i,s,a,l){var c=t.call(this,r)||this;return c.onFinalize=a,c.shouldUnsubscribe=l,c._next=n?function(u){try{n(u)}catch(f){r.error(f)}}:t.prototype._next,c._error=s?function(u){try{s(u)}catch(f){r.error(f)}finally{this.unsubscribe()}}:t.prototype._error,c._complete=i?function(){try{i()}catch(u){r.error(u)}finally{this.unsubscribe()}}:t.prototype._complete,c}return o(e,"OperatorSubscriber"),e.prototype.unsubscribe=function(){var r;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var n=this.closed;t.prototype.unsubscribe.call(this),!n&&((r=this.onFinalize)===null||r===void 0||r.call(this))}},e})(Ui);var Jm=Hc(function(t){return o(function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"},"ObjectUnsubscribedErrorImpl")});var $t=(function(t){Xe(e,t);function e(){var r=t.call(this)||this;return r.closed=!1,r.currentObservers=null,r.observers=[],r.isStopped=!1,r.hasError=!1,r.thrownError=null,r}return o(e,"Subject"),e.prototype.lift=function(r){var n=new Xm(this,this);return n.operator=r,n},e.prototype._throwIfClosed=function(){if(this.closed)throw new Jm},e.prototype.next=function(r){var n=this;Go(function(){var i,s;if(n._throwIfClosed(),!n.isStopped){n.currentObservers||(n.currentObservers=Array.from(n.observers));try{for(var a=dt(n.currentObservers),l=a.next();!l.done;l=a.next()){var c=l.value;c.next(r)}}catch(u){i={error:u}}finally{try{l&&!l.done&&(s=a.return)&&s.call(a)}finally{if(i)throw i.error}}}})},e.prototype.error=function(r){var n=this;Go(function(){if(n._throwIfClosed(),!n.isStopped){n.hasError=n.isStopped=!0,n.thrownError=r;for(var i=n.observers;i.length;)i.shift().error(r)}})},e.prototype.complete=function(){var r=this;Go(function(){if(r._throwIfClosed(),!r.isStopped){r.isStopped=!0;for(var n=r.observers;n.length;)n.shift().complete()}})},e.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(e.prototype,"observed",{get:o(function(){var r;return((r=this.observers)===null||r===void 0?void 0:r.length)>0},"get"),enumerable:!1,configurable:!0}),e.prototype._trySubscribe=function(r){return this._throwIfClosed(),t.prototype._trySubscribe.call(this,r)},e.prototype._subscribe=function(r){return this._throwIfClosed(),this._checkFinalizedStatuses(r),this._innerSubscribe(r)},e.prototype._innerSubscribe=function(r){var n=this,i=this,s=i.hasError,a=i.isStopped,l=i.observers;return s||a?Ym:(this.currentObservers=null,l.push(r),new At(function(){n.currentObservers=null,Or(l,r)}))},e.prototype._checkFinalizedStatuses=function(r){var n=this,i=n.hasError,s=n.thrownError,a=n.isStopped;i?r.error(s):a&&r.complete()},e.prototype.asObservable=function(){var r=new we;return r.source=this,r},e.create=function(r,n){return new Xm(r,n)},e})(we),Xm=(function(t){Xe(e,t);function e(r,n){var i=t.call(this)||this;return i.destination=r,i.source=n,i}return o(e,"AnonymousSubject"),e.prototype.next=function(r){var n,i;(i=(n=this.destination)===null||n===void 0?void 0:n.next)===null||i===void 0||i.call(n,r)},e.prototype.error=function(r){var n,i;(i=(n=this.destination)===null||n===void 0?void 0:n.error)===null||i===void 0||i.call(n,r)},e.prototype.complete=function(){var r,n;(n=(r=this.destination)===null||r===void 0?void 0:r.complete)===null||n===void 0||n.call(r)},e.prototype._subscribe=function(r){var n,i;return(i=(n=this.source)===null||n===void 0?void 0:n.subscribe(r))!==null&&i!==void 0?i:Ym},e})($t);var Qo=(function(t){Xe(e,t);function e(r){var n=t.call(this)||this;return n._value=r,n}return o(e,"BehaviorSubject"),Object.defineProperty(e.prototype,"value",{get:o(function(){return this.getValue()},"get"),enumerable:!1,configurable:!0}),e.prototype._subscribe=function(r){var n=t.prototype._subscribe.call(this,r);return!n.closed&&r.next(this._value),n},e.prototype.getValue=function(){var r=this,n=r.hasError,i=r.thrownError,s=r._value;if(n)throw i;return this._throwIfClosed(),s},e.prototype.next=function(r){t.prototype.next.call(this,this._value=r)},e})($t);var Fa={now:o(function(){return(Fa.delegate||Date).now()},"now"),delegate:void 0};var Jo=(function(t){Xe(e,t);function e(r,n,i){r===void 0&&(r=1/0),n===void 0&&(n=1/0),i===void 0&&(i=Fa);var s=t.call(this)||this;return s._bufferSize=r,s._windowTime=n,s._timestampProvider=i,s._buffer=[],s._infiniteTimeWindow=!0,s._infiniteTimeWindow=n===1/0,s._bufferSize=Math.max(1,r),s._windowTime=Math.max(1,n),s}return o(e,"ReplaySubject"),e.prototype.next=function(r){var n=this,i=n.isStopped,s=n._buffer,a=n._infiniteTimeWindow,l=n._timestampProvider,c=n._windowTime;i||(s.push(r),!a&&s.push(l.now()+c)),this._trimBuffer(),t.prototype.next.call(this,r)},e.prototype._subscribe=function(r){this._throwIfClosed(),this._trimBuffer();for(var n=this._innerSubscribe(r),i=this,s=i._infiniteTimeWindow,a=i._buffer,l=a.slice(),c=0;c<l.length&&!r.closed;c+=s?1:2)r.next(l[c]);return this._checkFinalizedStatuses(r),n},e.prototype._trimBuffer=function(){var r=this,n=r._bufferSize,i=r._timestampProvider,s=r._buffer,a=r._infiniteTimeWindow,l=(a?1:2)*n;if(n<1/0&&l<s.length&&s.splice(0,s.length-l),!a){for(var c=i.now(),u=0,f=1;f<s.length&&s[f]<=c;f+=2)u=f;u&&s.splice(0,u+1)}},e})($t);var Zm=(function(t){Xe(e,t);function e(r,n){return t.call(this)||this}return o(e,"Action"),e.prototype.schedule=function(r,n){return n===void 0&&(n=0),this},e})(At);var Aa={setInterval:o(function(t,e){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var i=Aa.delegate;return i?.setInterval?i.setInterval.apply(i,Ft([t,e],ct(r))):setInterval.apply(void 0,Ft([t,e],ct(r)))},"setInterval"),clearInterval:o(function(t){var e=Aa.delegate;return(e?.clearInterval||clearInterval)(t)},"clearInterval"),delegate:void 0};var ed=(function(t){Xe(e,t);function e(r,n){var i=t.call(this,r,n)||this;return i.scheduler=r,i.work=n,i.pending=!1,i}return o(e,"AsyncAction"),e.prototype.schedule=function(r,n){var i;if(n===void 0&&(n=0),this.closed)return this;this.state=r;var s=this.id,a=this.scheduler;return s!=null&&(this.id=this.recycleAsyncId(a,s,n)),this.pending=!0,this.delay=n,this.id=(i=this.id)!==null&&i!==void 0?i:this.requestAsyncId(a,this.id,n),this},e.prototype.requestAsyncId=function(r,n,i){return i===void 0&&(i=0),Aa.setInterval(r.flush.bind(r,this),i)},e.prototype.recycleAsyncId=function(r,n,i){if(i===void 0&&(i=0),i!=null&&this.delay===i&&this.pending===!1)return n;n!=null&&Aa.clearInterval(n)},e.prototype.execute=function(r,n){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var i=this._execute(r,n);if(i)return i;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},e.prototype._execute=function(r,n){var i=!1,s;try{this.work(r)}catch(a){i=!0,s=a||new Error("Scheduled action threw falsy error")}if(i)return this.unsubscribe(),s},e.prototype.unsubscribe=function(){if(!this.closed){var r=this,n=r.id,i=r.scheduler,s=i.actions;this.work=this.state=this.scheduler=null,this.pending=!1,Or(s,this),n!=null&&(this.id=this.recycleAsyncId(i,n,null)),this.delay=null,t.prototype.unsubscribe.call(this)}},e})(Zm);var $a=(function(){function t(e,r){r===void 0&&(r=t.now),this.schedulerActionCtor=e,this.now=r}return o(t,"Scheduler"),t.prototype.schedule=function(e,r,n){return r===void 0&&(r=0),new this.schedulerActionCtor(this,e).schedule(n,r)},t.now=Fa.now,t})();var td=(function(t){Xe(e,t);function e(r,n){n===void 0&&(n=$a.now);var i=t.call(this,r,n)||this;return i.actions=[],i._active=!1,i}return o(e,"AsyncScheduler"),e.prototype.flush=function(r){var n=this.actions;if(this._active){n.push(r);return}var i;this._active=!0;do if(i=r.execute(r.state,r.delay))break;while(r=n.shift());if(this._active=!1,i){for(;r=n.shift();)r.unsubscribe();throw i}},e})($a);var Gr=new td(ed),rd=Gr;function Vc(t){return t&&pe(t.schedule)}o(Vc,"isScheduler");function nd(t){return t[t.length-1]}o(nd,"last");function yw(t){return pe(nd(t))?t.pop():void 0}o(yw,"popResultSelector");function Qr(t){return Vc(nd(t))?t.pop():void 0}o(Qr,"popScheduler");function jH(t,e){return typeof nd(t)=="number"?t.pop():e}o(jH,"popNumber");var Xo=o((function(t){return t&&typeof t.length=="number"&&typeof t!="function"}),"isArrayLike");function Kc(t){return pe(t?.then)}o(Kc,"isPromise");function Gc(t){return pe(t[zi])}o(Gc,"isInteropObservable");function Qc(t){return Symbol.asyncIterator&&pe(t?.[Symbol.asyncIterator])}o(Qc,"isAsyncIterable");function Jc(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.")}o(Jc,"createInvalidObservableTypeError");function WI(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}o(WI,"getSymbolIterator");var Xc=WI();function Zc(t){return pe(t?.[Xc])}o(Zc,"isIterable");function eu(t){return Wm(this,arguments,o(function(){var r,n,i,s;return _a(this,function(a){switch(a.label){case 0:r=t.getReader(),a.label=1;case 1:a.trys.push([1,,9,10]),a.label=2;case 2:return[4,kn(r.read())];case 3:return n=a.sent(),i=n.value,s=n.done,s?[4,kn(void 0)]:[3,5];case 4:return[2,a.sent()];case 5:return[4,kn(i)];case 6:return[4,a.sent()];case 7:return a.sent(),[3,2];case 8:return[3,10];case 9:return r.releaseLock(),[7];case 10:return[2]}})},"readableStreamLikeToAsyncGenerator_1"))}o(eu,"readableStreamLikeToAsyncGenerator");function tu(t){return pe(t?.getReader)}o(tu,"isReadableStreamLike");function Be(t){if(t instanceof we)return t;if(t!=null){if(Gc(t))return qI(t);if(Xo(t))return YI(t);if(Kc(t))return VI(t);if(Qc(t))return xw(t);if(Zc(t))return KI(t);if(tu(t))return GI(t)}throw Jc(t)}o(Be,"innerFrom");function qI(t){return new we(function(e){var r=t[zi]();if(pe(r.subscribe))return r.subscribe(e);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}o(qI,"fromInteropObservable");function YI(t){return new we(function(e){for(var r=0;r<t.length&&!e.closed;r++)e.next(t[r]);e.complete()})}o(YI,"fromArrayLike");function VI(t){return new we(function(e){t.then(function(r){e.closed||(e.next(r),e.complete())},function(r){return e.error(r)}).then(null,qc)})}o(VI,"fromPromise");function KI(t){return new we(function(e){var r,n;try{for(var i=dt(t),s=i.next();!s.done;s=i.next()){var a=s.value;if(e.next(a),e.closed)return}}catch(l){r={error:l}}finally{try{s&&!s.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}e.complete()})}o(KI,"fromIterable");function xw(t){return new we(function(e){QI(t,e).catch(function(r){return e.error(r)})})}o(xw,"fromAsyncIterable");function GI(t){return xw(eu(t))}o(GI,"fromReadableStreamLike");function QI(t,e){var r,n,i,s;return Hm(this,void 0,void 0,function(){var a,l;return _a(this,function(c){switch(c.label){case 0:c.trys.push([0,5,6,11]),r=qm(t),c.label=1;case 1:return[4,r.next()];case 2:if(n=c.sent(),!!n.done)return[3,4];if(a=n.value,e.next(a),e.closed)return[2];c.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return l=c.sent(),i={error:l},[3,11];case 6:return c.trys.push([6,,9,10]),n&&!n.done&&(s=r.return)?[4,s.call(r)]:[3,8];case 7:c.sent(),c.label=8;case 8:return[3,10];case 9:if(i)throw i.error;return[7];case 10:return[7];case 11:return e.complete(),[2]}})})}o(QI,"process");function ut(t,e,r,n,i){n===void 0&&(n=0),i===void 0&&(i=!1);var s=e.schedule(function(){r(),i?t.add(this.schedule(null,n)):this.unsubscribe()},n);if(t.add(s),!i)return s}o(ut,"executeSchedule");function Zo(t,e){return e===void 0&&(e=0),De(function(r,n){r.subscribe(Ce(n,function(i){return ut(n,t,function(){return n.next(i)},e)},function(){return ut(n,t,function(){return n.complete()},e)},function(i){return ut(n,t,function(){return n.error(i)},e)}))})}o(Zo,"observeOn");function es(t,e){return e===void 0&&(e=0),De(function(r,n){n.add(t.schedule(function(){return r.subscribe(n)},e))})}o(es,"subscribeOn");function bw(t,e){return Be(t).pipe(es(e),Zo(e))}o(bw,"scheduleObservable");function ww(t,e){return Be(t).pipe(es(e),Zo(e))}o(ww,"schedulePromise");function Sw(t,e){return new we(function(r){var n=0;return e.schedule(function(){n===t.length?r.complete():(r.next(t[n++]),r.closed||this.schedule())})})}o(Sw,"scheduleArray");function vw(t,e){return new we(function(r){var n;return ut(r,e,function(){n=t[Xc](),ut(r,e,function(){var i,s,a;try{i=n.next(),s=i.value,a=i.done}catch(l){r.error(l);return}a?r.complete():r.next(s)},0,!0)}),function(){return pe(n?.return)&&n.return()}})}o(vw,"scheduleIterable");function ru(t,e){if(!t)throw new Error("Iterable cannot be null");return new we(function(r){ut(r,e,function(){var n=t[Symbol.asyncIterator]();ut(r,e,function(){n.next().then(function(i){i.done?r.complete():r.next(i.value)})},0,!0)})})}o(ru,"scheduleAsyncIterable");function kw(t,e){return ru(eu(t),e)}o(kw,"scheduleReadableStreamLike");function id(t,e){if(t!=null){if(Gc(t))return bw(t,e);if(Xo(t))return Sw(t,e);if(Kc(t))return ww(t,e);if(Qc(t))return ru(t,e);if(Zc(t))return vw(t,e);if(tu(t))return kw(t,e)}throw Jc(t)}o(id,"scheduled");function Jr(t,e){return e?id(t,e):Be(t)}o(Jr,"from");function Ba(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r=Qr(t);return Jr(t,r)}o(Ba,"of");function Tw(t){return t instanceof Date&&!isNaN(t)}o(Tw,"isValidDate");function Xr(t,e){return De(function(r,n){var i=0;r.subscribe(Ce(n,function(s){n.next(t.call(e,s,i++))}))})}o(Xr,"map");var JI=Array.isArray;function XI(t,e){return JI(e)?t.apply(void 0,Ft([],ct(e))):t(e)}o(XI,"callOrApply");function nu(t){return Xr(function(e){return XI(t,e)})}o(nu,"mapOneOrManyArgs");var ZI=Array.isArray,eM=Object.getPrototypeOf,tM=Object.prototype,rM=Object.keys;function Ew(t){if(t.length===1){var e=t[0];if(ZI(e))return{args:e,keys:null};if(nM(e)){var r=rM(e);return{args:r.map(function(n){return e[n]}),keys:r}}}return{args:t,keys:null}}o(Ew,"argsArgArrayOrObject");function nM(t){return t&&typeof t=="object"&&eM(t)===tM}o(nM,"isPOJO");function Dw(t,e){return t.reduce(function(r,n,i){return r[n]=e[i],r},{})}o(Dw,"createObject");function od(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r=Qr(t),n=yw(t),i=Ew(t),s=i.args,a=i.keys;if(s.length===0)return Jr([],r);var l=new we(iM(s,r,a?function(c){return Dw(a,c)}:Kr));return n?l.pipe(nu(n)):l}o(od,"combineLatest");function iM(t,e,r){return r===void 0&&(r=Kr),function(n){Cw(e,function(){for(var i=t.length,s=new Array(i),a=i,l=i,c=o(function(f){Cw(e,function(){var p=Jr(t[f],e),h=!1;p.subscribe(Ce(n,function(m){s[f]=m,h||(h=!0,l--),l||n.next(r(s.slice()))},function(){--a||n.complete()}))},n)},"_loop_1"),u=0;u<i;u++)c(u)},n)}}o(iM,"combineLatestInit");function Cw(t,e,r){t?ut(r,t,e):e()}o(Cw,"maybeSchedule");function Ow(t,e,r,n,i,s,a,l){var c=[],u=0,f=0,p=!1,h=o(function(){p&&!c.length&&!u&&e.complete()},"checkComplete"),m=o(function(g){return u<n?d(g):c.push(g)},"outerNext"),d=o(function(g){s&&e.next(g),u++;var y=!1;Be(r(g,f++)).subscribe(Ce(e,function(x){i?.(x),s?m(x):e.next(x)},function(){y=!0},void 0,function(){if(y)try{u--;for(var x=o(function(){var T=c.shift();a?ut(e,a,function(){return d(T)}):d(T)},"_loop_1");c.length&&u<n;)x();h()}catch(T){e.error(T)}}))},"doInnerSub");return t.subscribe(Ce(e,m,function(){p=!0,h()})),function(){l?.()}}o(Ow,"mergeInternals");function Hi(t,e,r){return r===void 0&&(r=1/0),pe(e)?Hi(function(n,i){return Xr(function(s,a){return e(n,s,i,a)})(Be(t(n,i)))},r):(typeof e=="number"&&(r=e),De(function(n,i){return Ow(n,i,t,r)}))}o(Hi,"mergeMap");function iu(t){return t===void 0&&(t=1/0),Hi(Kr,t)}o(iu,"mergeAll");function ou(){return iu(1)}o(ou,"concatAll");function su(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return ou()(Jr(t,Qr(t)))}o(su,"concat");var oM=["addListener","removeListener"],sM=["addEventListener","removeEventListener"],aM=["on","off"];function Wi(t,e,r,n){if(pe(r)&&(n=r,r=void 0),n)return Wi(t,e,r).pipe(nu(n));var i=ct(uM(t)?sM.map(function(l){return function(c){return t[l](e,c,r)}}):lM(t)?oM.map(Iw(t,e)):cM(t)?aM.map(Iw(t,e)):[],2),s=i[0],a=i[1];if(!s&&Xo(t))return Hi(function(l){return Wi(l,e,r)})(Be(t));if(!s)throw new TypeError("Invalid event target");return new we(function(l){var c=o(function(){for(var u=[],f=0;f<arguments.length;f++)u[f]=arguments[f];return l.next(1<u.length?u:u[0])},"handler");return s(c),function(){return a(c)}})}o(Wi,"fromEvent");function Iw(t,e){return function(r){return function(n){return t[r](e,n)}}}o(Iw,"toCommonHandlerRegistry");function lM(t){return pe(t.addListener)&&pe(t.removeListener)}o(lM,"isNodeStyleEventEmitter");function cM(t){return pe(t.on)&&pe(t.off)}o(cM,"isJQueryStyleEventEmitter");function uM(t){return pe(t.addEventListener)&&pe(t.removeEventListener)}o(uM,"isEventTarget");function ja(t,e,r){t===void 0&&(t=0),r===void 0&&(r=rd);var n=-1;return e!=null&&(Vc(e)?r=e:n=e),new we(function(i){var s=Tw(t)?+t-r.now():t;s<0&&(s=0);var a=0;return r.schedule(function(){i.closed||(i.next(a++),0<=n?this.schedule(void 0,n):i.complete())},s)})}o(ja,"timer");function sd(t,e){return t===void 0&&(t=0),e===void 0&&(e=Gr),t<0&&(t=0),ja(t,t,e)}o(sd,"interval");function au(t,e){return De(function(r,n){var i=0;r.subscribe(Ce(n,function(s){return t.call(e,s,i++)&&n.next(s)}))})}o(au,"filter");function lu(t){return De(function(e,r){var n=[];return e.subscribe(Ce(r,function(i){return n.push(i)},function(){r.next(n),r.complete()})),Be(t).subscribe(Ce(r,function(){var i=n;n=[],r.next(i)},Vr)),function(){n=null}})}o(lu,"buffer");function cu(t,e){return e===void 0&&(e=null),e=e??t,De(function(r,n){var i=[],s=0;r.subscribe(Ce(n,function(a){var l,c,u,f,p=null;s++%e===0&&i.push([]);try{for(var h=dt(i),m=h.next();!m.done;m=h.next()){var d=m.value;d.push(a),t<=d.length&&(p=p??[],p.push(d))}}catch(x){l={error:x}}finally{try{m&&!m.done&&(c=h.return)&&c.call(h)}finally{if(l)throw l.error}}if(p)try{for(var g=dt(p),y=g.next();!y.done;y=g.next()){var d=y.value;Or(i,d),n.next(d)}}catch(x){u={error:x}}finally{try{y&&!y.done&&(f=g.return)&&f.call(g)}finally{if(u)throw u.error}}},function(){var a,l;try{for(var c=dt(i),u=c.next();!u.done;u=c.next()){var f=u.value;n.next(f)}}catch(p){a={error:p}}finally{try{u&&!u.done&&(l=c.return)&&l.call(c)}finally{if(a)throw a.error}}n.complete()},void 0,function(){i=null}))})}o(cu,"bufferCount");function uu(t){for(var e,r,n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];var s=(e=Qr(n))!==null&&e!==void 0?e:Gr,a=(r=n[0])!==null&&r!==void 0?r:null,l=n[1]||1/0;return De(function(c,u){var f=[],p=!1,h=o(function(g){var y=g.buffer,x=g.subs;x.unsubscribe(),Or(f,g),u.next(y),p&&m()},"emit"),m=o(function(){if(f){var g=new At;u.add(g);var y=[],x={buffer:y,subs:g};f.push(x),ut(g,s,function(){return h(x)},t)}},"startBuffer");a!==null&&a>=0?ut(u,s,m,a,!0):p=!0,m();var d=Ce(u,function(g){var y,x,T=f.slice();try{for(var E=dt(T),L=E.next();!L.done;L=E.next()){var P=L.value,D=P.buffer;D.push(g),l<=D.length&&h(P)}}catch(A){y={error:A}}finally{try{L&&!L.done&&(x=E.return)&&x.call(E)}finally{if(y)throw y.error}}},function(){for(;f?.length;)u.next(f.shift().buffer);d?.unsubscribe(),u.complete(),u.unsubscribe()},void 0,function(){return f=null});c.subscribe(d)})}o(uu,"bufferTime");function fu(t){return De(function(e,r){var n=!1,i=null,s=null,a=o(function(){if(s?.unsubscribe(),s=null,n){n=!1;var l=i;i=null,r.next(l)}},"emit");e.subscribe(Ce(r,function(l){s?.unsubscribe(),n=!0,i=l,s=Ce(r,a,Vr),Be(t(l)).subscribe(s)},function(){a(),r.complete()},void 0,function(){i=s=null}))})}o(fu,"debounce");function pu(t,e){return e===void 0&&(e=Gr),De(function(r,n){var i=null,s=null,a=null,l=o(function(){if(i){i.unsubscribe(),i=null;var u=s;s=null,n.next(u)}},"emit");function c(){var u=a+t,f=e.now();if(f<u){i=this.schedule(void 0,u-f),n.add(i);return}l()}o(c,"emitWhenIdle"),r.subscribe(Ce(n,function(u){s=u,a=e.now(),i||(i=e.schedule(c,t),n.add(i))},function(){l(),n.complete()},void 0,function(){s=i=null}))})}o(pu,"debounceTime");function ts(t,e){return e===void 0&&(e=Kr),t=t??fM,De(function(r,n){var i,s=!0;r.subscribe(Ce(n,function(a){var l=e(a);(s||!t(i,l))&&(s=!1,i=l,n.next(a))}))})}o(ts,"distinctUntilChanged");function fM(t,e){return t===e}o(fM,"defaultCompare");function hu(t){t===void 0&&(t={});var e=t.connector,r=e===void 0?function(){return new $t}:e,n=t.resetOnError,i=n===void 0?!0:n,s=t.resetOnComplete,a=s===void 0?!0:s,l=t.resetOnRefCountZero,c=l===void 0?!0:l;return function(u){var f,p,h,m=0,d=!1,g=!1,y=o(function(){p?.unsubscribe(),p=void 0},"cancelReset"),x=o(function(){y(),f=h=void 0,d=g=!1},"reset"),T=o(function(){var E=f;x(),E?.unsubscribe()},"resetAndUnsubscribe");return De(function(E,L){m++,!g&&!d&&y();var P=h=h??r();L.add(function(){m--,m===0&&!g&&!d&&(p=ad(T,c))}),P.subscribe(L),!f&&m>0&&(f=new Vn({next:o(function(D){return P.next(D)},"next"),error:o(function(D){g=!0,y(),p=ad(x,i,D),P.error(D)},"error"),complete:o(function(){d=!0,y(),p=ad(x,a),P.complete()},"complete")}),Be(E).subscribe(f))})(u)}}o(hu,"share");function ad(t,e){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];if(e===!0){t();return}if(e!==!1){var i=new Vn({next:o(function(){i.unsubscribe(),t()},"next")});return Be(e.apply(void 0,Ft([],ct(r)))).subscribe(i)}}o(ad,"handleReset");function mu(t,e,r){var n,i,s,a,l=!1;return t&&typeof t=="object"?(n=t.bufferSize,a=n===void 0?1/0:n,i=t.windowTime,e=i===void 0?1/0:i,s=t.refCount,l=s===void 0?!1:s,r=t.scheduler):a=t??1/0,hu({connector:o(function(){return new Jo(a,e,r)},"connector"),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:l})}o(mu,"shareReplay");function du(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r=Qr(t);return De(function(n,i){(r?su(t,n,r):su(t,n)).subscribe(i)})}o(du,"startWith");function rs(t){return De(function(e,r){Be(t).subscribe(Ce(r,function(){return r.complete()},Vr)),!r.closed&&e.subscribe(r)})}o(rs,"takeUntil");function gu(t,e){return De(function(r,n){var i=e??{},s=i.leading,a=s===void 0?!0:s,l=i.trailing,c=l===void 0?!1:l,u=!1,f=null,p=null,h=!1,m=o(function(){p?.unsubscribe(),p=null,c&&(y(),h&&n.complete())},"endThrottling"),d=o(function(){p=null,h&&n.complete()},"cleanupThrottling"),g=o(function(x){return p=Be(t(x)).subscribe(Ce(n,m,d))},"startThrottle"),y=o(function(){if(u){u=!1;var x=f;f=null,n.next(x),!h&&g(x)}},"send");r.subscribe(Ce(n,function(x){u=!0,f=x,!(p&&!p.closed)&&(a?y():g(x))},function(){h=!0,!(c&&u&&p&&!p.closed)&&n.complete()}))})}o(gu,"throttle");function yu(t,e,r){e===void 0&&(e=Gr);var n=ja(t,e);return gu(function(){return n},r)}o(yu,"throttleTime");var qN={buffer:lu,bufferCount:cu,bufferTime:uu,debounce:fu,debounceTime:pu,filter:au,map:Xr,startWith:du,takeUntil:rs,throttleTime:yu};var ld=class{static{o(this,"Observablemap")}constructor(){this.observableEventEmitterBundleArray=new Array,this.observableEventTargetBundleArray=new Array}getSubjectForEmitterEvent(e,r){let n=this.observableEventEmitterBundleArray.find(i=>i.eventRef===e&&i.event===r);if(n)return n.subject;{let i=Wi(e,r),s=new $t;i.subscribe(s);let a={subject:s,eventRef:e,event:r};return this.observableEventEmitterBundleArray.push(a),a.subject}}getSubjectForEventTarget(e,r){let n=this.observableEventTargetBundleArray.find(i=>i.eventRef===e&&i.event===r);if(n)return n.subject;{let s={subject:new $t,eventRef:e,event:r};return this.observableEventTargetBundleArray.push(s),s.subject}}};var cd=class{static{o(this,"ObservableIntake")}constructor(){this.observableFunctions={next:o(e=>{},"next"),complete:o(e=>{},"complete")},this.buffered=!1,this.payloadBuffer=[],this.observable=new we(e=>{this.observableFunctions.next=r=>e.next(r),this.observableFunctions.complete=()=>(this.completedDeffered.resolve(),e.complete())}),this.completedDeffered=Q.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 r of e)this.push(r)}setGenerator(e){this.generator=e}makeBuffered(){this.buffered=!0}subscribe(...e){return this.observable.subscribe(...e)}request(e){if(e!==0)for(let r=0;r!==e;r++)if(this.payloadBuffer.length>0)this.internalPush(this.payloadBuffer.shift());else{if(!this.generator)throw new Error("Cannot request an unbuffered value before setting a generator");let n=this.generator.next();this.internalPush(n.value)}}signalComplete(){this.observableFunctions.complete()}internalPush(e){this.observableFunctions.next(e)}};function YN(t){return new we(e=>{let r=o(()=>t.pause(),"pauseStream"),n=o(()=>process.nextTick(()=>t.resume()),"resumeStream"),i=o(s=>{r(),e.next(s),n()},"onData");return t.on("data",i),t.on("error",s=>e.error(s)),t.on("end",()=>e.complete()),t.on("close",()=>e.complete()),()=>{t.removeListener("data",i),t.removeListener("error",e.error),t.removeListener("end",e.complete),t.removeListener("close",e.complete)}})}o(YN,"fromStreamWithBackpressure");var Zi={};se(Zi,{CronJob:()=>rl,CronJobCollection:()=>nl,CronManager:()=>kd,ExtendedDate:()=>Ed,HrtMeasurement:()=>Dd,Interval:()=>Cd,TimeStamp:()=>Cs,Timer:()=>Od,getMilliSecondsAsHumanReadableAgoTime:()=>kL,getMilliSecondsAsHumanReadableString:()=>vL,getMilliSecondsFromUnits:()=>Td,units:()=>si});var Wa={};se(Wa,{Cron:()=>Rw,CronDate:()=>Ze,CronPattern:()=>xu,scheduledJobs:()=>is});function Ua(t){return Date.UTC(t.y,t.m-1,t.d,t.h,t.i,t.s)}o(Ua,"T");function ud(t,e){return t.y===e.y&&t.m===e.m&&t.d===e.d&&t.h===e.h&&t.i===e.i&&t.s===e.s}o(ud,"D");function VN(t,e){let r=new Date(Date.parse(t));if(isNaN(r))throw new Error("Invalid ISO8601 passed to timezone parser.");let n=t.substring(9);return n.includes("Z")||n.includes("+")||n.includes("-")?fd(r.getUTCFullYear(),r.getUTCMonth()+1,r.getUTCDate(),r.getUTCHours(),r.getUTCMinutes(),r.getUTCSeconds(),"Etc/UTC"):fd(r.getFullYear(),r.getMonth()+1,r.getDate(),r.getHours(),r.getMinutes(),r.getSeconds(),e)}o(VN,"A");function Mw(t,e,r){return Nw(VN(t,e),r)}o(Mw,"v");function Nw(t,e){let r=new Date(Ua(t)),n=za(r,t.tz),i=Ua(t),s=Ua(n),a=i-s,l=new Date(r.getTime()+a),c=za(l,t.tz);if(ud(c,t)){let p=new Date(l.getTime()-36e5),h=za(p,t.tz);return ud(h,t)?p:l}let u=new Date(l.getTime()+Ua(t)-Ua(c)),f=za(u,t.tz);if(ud(f,t))return u;if(e)throw new Error("Invalid date passed to fromTZ()");return l.getTime()>u.getTime()?l:u}o(Nw,"k");function za(t,e){let r,n;try{r=new Intl.DateTimeFormat("en-US",{timeZone:e,year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric",hour12:!1}),n=r.formatToParts(t)}catch(s){let a=s instanceof Error?s.message:String(s);throw new RangeError(`toTZ: Invalid timezone '${e}' or date. Please provide a valid IANA timezone (e.g., 'America/New_York', 'Europe/Stockholm'). Original error: ${a}`)}let i={year:0,month:0,day:0,hour:0,minute:0,second:0};for(let s of n)(s.type==="year"||s.type==="month"||s.type==="day"||s.type==="hour"||s.type==="minute"||s.type==="second")&&(i[s.type]=parseInt(s.value,10));if(isNaN(i.year)||isNaN(i.month)||isNaN(i.day)||isNaN(i.hour)||isNaN(i.minute)||isNaN(i.second))throw new Error(`toTZ: Failed to parse all date components from timezone '${e}'. This may indicate an invalid date or timezone configuration. Parsed components: ${JSON.stringify(i)}`);return i.hour===24&&(i.hour=0),{y:i.year,m:i.month,d:i.day,h:i.hour,i:i.minute,s:i.second,tz:e}}o(za,"g");function fd(t,e,r,n,i,s,a){return{y:t,m:e,d:r,h:n,i,s,tz:a}}o(fd,"b");var Pw=[1,2,4,8,16],xu=class{static{o(this,"C")}pattern;timezone;mode;alternativeWeekdays;sloppyRanges;second;minute;hour;day;month;dayOfWeek;year;lastDayOfMonth;lastWeekday;nearestWeekdays;starDOM;starDOW;starYear;useAndLogic;constructor(t,e,r){this.pattern=t,this.timezone=e,this.mode=r?.mode??"auto",this.alternativeWeekdays=r?.alternativeWeekdays??!1,this.sloppyRanges=r?.sloppyRanges??!1,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.year=Array(1e4).fill(0),this.lastDayOfMonth=!1,this.lastWeekday=!1,this.nearestWeekdays=Array(31).fill(0),this.starDOM=!1,this.starDOW=!1,this.starYear=!1,this.useAndLogic=!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.match(/\S+/g)||[""],e=t.length;if(t.length<5||t.length>7)throw new TypeError("CronPattern: invalid configuration format ('"+this.pattern+"'), exactly five, six, or seven space separated parts are required.");if(this.mode!=="auto"){let n;switch(this.mode){case"5-part":n=5;break;case"6-part":n=6;break;case"7-part":n=7;break;case"5-or-6-parts":n=[5,6];break;case"6-or-7-parts":n=[6,7];break;default:n=0}if(!(Array.isArray(n)?n.includes(e):e===n)){let i=Array.isArray(n)?n.join(" or "):n.toString();throw new TypeError(`CronPattern: mode '${this.mode}' requires exactly ${i} parts, but pattern '${this.pattern}' has ${e} parts.`)}}if(t.length===5&&t.unshift("0"),t.length===6&&t.push("*"),t[3].toUpperCase()==="LW"?(this.lastWeekday=!0,t[3]=""):t[3].toUpperCase().indexOf("L")>=0&&(t[3]=t[3].replace(/L/gi,""),this.lastDayOfMonth=!0),t[3]=="*"&&(this.starDOM=!0),t[6]=="*"&&(this.starYear=!0),t[4].length>=3&&(t[4]=this.replaceAlphaMonths(t[4])),t[5].length>=3&&(t[5]=this.alternativeWeekdays?this.replaceAlphaDaysQuartz(t[5]):this.replaceAlphaDays(t[5])),t[5].startsWith("+")&&(this.useAndLogic=!0,t[5]=t[5].substring(1),t[5]===""))throw new TypeError("CronPattern: Day-of-week field cannot be empty after '+' modifier.");switch(t[5]=="*"&&(this.starDOW=!0),this.pattern.indexOf("?")>=0&&(t[0]=t[0].replace(/\?/g,"*"),t[1]=t[1].replace(/\?/g,"*"),t[2]=t[2].replace(/\?/g,"*"),t[3]=t[3].replace(/\?/g,"*"),t[4]=t[4].replace(/\?/g,"*"),t[5]=t[5].replace(/\?/g,"*"),t[6]&&(t[6]=t[6].replace(/\?/g,"*"))),this.mode){case"5-part":t[0]="0",t[6]="*";break;case"6-part":t[6]="*";break;case"5-or-6-parts":t[6]="*";break;case"6-or-7-parts":break;case"7-part":case"auto":break}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);let r=this.alternativeWeekdays?-1:0;this.partToArray("dayOfWeek",t[5],r,63),this.partToArray("year",t[6],0,1),!this.alternativeWeekdays&&this.dayOfWeek[7]&&(this.dayOfWeek[0]=this.dayOfWeek[7])}partToArray(t,e,r,n){let i=this[t],s=t==="day"&&this.lastDayOfMonth,a=t==="day"&&this.lastWeekday;if(e===""&&!s&&!a)throw new TypeError("CronPattern: configuration entry "+t+" ("+e+") is empty, check for trailing spaces.");if(e==="*")return i.fill(n);let l=e.split(",");if(l.length>1)for(let c=0;c<l.length;c++)this.partToArray(t,l[c],r,n);else e.indexOf("-")!==-1&&e.indexOf("/")!==-1?this.handleRangeWithStepping(e,t,r,n):e.indexOf("-")!==-1?this.handleRange(e,t,r,n):e.indexOf("/")!==-1?this.handleStepping(e,t,r,n):e!==""&&this.handleNumber(e,t,r,n)}throwAtIllegalCharacters(t){for(let e=0;e<t.length;e++)if((e===3?/[^/*0-9,\-WwLl]+/:e===5?/[^/*0-9,\-#Ll]+/:/[^/*0-9,\-]+/).test(t[e]))throw new TypeError("CronPattern: configuration entry "+e+" ("+t[e]+") contains illegal characters.")}handleNumber(t,e,r,n){let i=this.extractNth(t,e),s=t.toUpperCase().includes("W");if(e!=="day"&&s)throw new TypeError("CronPattern: Nearest weekday modifier (W) only allowed in day-of-month.");s&&(e="nearestWeekdays");let a=parseInt(i[0],10)+r;if(isNaN(a))throw new TypeError("CronPattern: "+e+" is not a number: '"+t+"'");this.setPart(e,a,i[1]||n)}setPart(t,e,r){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,r);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"||t==="nearestWeekdays"){if(e<0||e>=31)throw new RangeError("CronPattern: Invalid value for "+t+": "+e)}else if(t==="month"){if(e<0||e>=12)throw new RangeError("CronPattern: Invalid value for "+t+": "+e)}else if(t==="year"&&(e<1||e>=1e4))throw new RangeError("CronPattern: Invalid value for "+t+": "+e+" (supported range: 1-9999)");this[t][e]=r}validateNotNaN(t,e){if(isNaN(t))throw new TypeError(e)}validateRange(t,e,r,n,i){if(t>e)throw new TypeError("CronPattern: From value is larger than to value: '"+i+"'");if(r!==void 0){if(r===0)throw new TypeError("CronPattern: Syntax error, illegal stepping: 0");if(r>this[n].length)throw new TypeError("CronPattern: Syntax error, steps cannot be greater than maximum value of part ("+this[n].length+")")}}handleRangeWithStepping(t,e,r,n){if(t.toUpperCase().includes("W"))throw new TypeError("CronPattern: Syntax error, W is not allowed in ranges with stepping.");let i=this.extractNth(t,e),s=i[0].match(/^(\d+)-(\d+)\/(\d+)$/);if(s===null)throw new TypeError("CronPattern: Syntax error, illegal range with stepping: '"+t+"'");let[,a,l,c]=s,u=parseInt(a,10)+r,f=parseInt(l,10)+r,p=parseInt(c,10);this.validateNotNaN(u,"CronPattern: Syntax error, illegal lower range (NaN)"),this.validateNotNaN(f,"CronPattern: Syntax error, illegal upper range (NaN)"),this.validateNotNaN(p,"CronPattern: Syntax error, illegal stepping: (NaN)"),this.validateRange(u,f,p,e,t);for(let h=u;h<=f;h+=p)this.setPart(e,h,i[1]||n)}extractNth(t,e){let r=t,n;if(r.includes("#")){if(e!=="dayOfWeek")throw new Error("CronPattern: nth (#) only allowed in day-of-week field");n=r.split("#")[1],r=r.split("#")[0]}else if(r.toUpperCase().endsWith("L")){if(e!=="dayOfWeek")throw new Error("CronPattern: L modifier only allowed in day-of-week field (use L alone for day-of-month)");n="L",r=r.slice(0,-1)}return[r,n]}handleRange(t,e,r,n){if(t.toUpperCase().includes("W"))throw new TypeError("CronPattern: Syntax error, W is not allowed in a range.");let i=this.extractNth(t,e),s=i[0].split("-");if(s.length!==2)throw new TypeError("CronPattern: Syntax error, illegal range: '"+t+"'");let a=parseInt(s[0],10)+r,l=parseInt(s[1],10)+r;this.validateNotNaN(a,"CronPattern: Syntax error, illegal lower range (NaN)"),this.validateNotNaN(l,"CronPattern: Syntax error, illegal upper range (NaN)"),this.validateRange(a,l,void 0,e,t);for(let c=a;c<=l;c++)this.setPart(e,c,i[1]||n)}handleStepping(t,e,r,n){if(t.toUpperCase().includes("W"))throw new TypeError("CronPattern: Syntax error, W is not allowed in parts with stepping.");let i=this.extractNth(t,e),s=i[0].split("/");if(s.length!==2)throw new TypeError("CronPattern: Syntax error, illegal stepping: '"+t+"'");if(this.sloppyRanges)s[0]===""&&(s[0]="*");else{if(s[0]==="")throw new TypeError("CronPattern: Syntax error, stepping with missing prefix ('"+t+"') is not allowed. Use wildcard (*/step) or range (min-max/step) instead.");if(s[0]!=="*")throw new TypeError("CronPattern: Syntax error, stepping with numeric prefix ('"+t+"') is not allowed. Use wildcard (*/step) or range (min-max/step) instead.")}let a=0;s[0]!=="*"&&(a=parseInt(s[0],10)+r);let l=parseInt(s[1],10);this.validateNotNaN(l,"CronPattern: Syntax error, illegal stepping: (NaN)"),this.validateRange(0,this[e].length-1,l,e,t);for(let c=a;c<this[e].length;c+=l)this.setPart(e,c,i[1]||n)}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")}replaceAlphaDaysQuartz(t){return t.replace(/sun/gi,"1").replace(/mon/gi,"2").replace(/tue/gi,"3").replace(/wed/gi,"4").replace(/thu/gi,"5").replace(/fri/gi,"6").replace(/sat/gi,"7")}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();if(e==="@yearly"||e==="@annually")return"0 0 1 1 *";if(e==="@monthly")return"0 0 1 * *";if(e==="@weekly")return"0 0 * * 0";if(e==="@daily"||e==="@midnight")return"0 0 * * *";if(e==="@hourly")return"0 * * * *";if(e==="@reboot")throw new TypeError("CronPattern: @reboot is not supported in this environment. This is an event-based trigger that requires system startup detection.");return t}setNthWeekdayOfMonth(t,e){if(typeof e!="number"&&e.toUpperCase()==="L")this.dayOfWeek[t]=this.dayOfWeek[t]|32;else if(e===63)this.dayOfWeek[t]=63;else if(e<6&&e>0)this.dayOfWeek[t]=this.dayOfWeek[t]|Pw[e-1];else throw new TypeError(`CronPattern: nth weekday out of range, should be 1-5 or L. Value: ${e}, Type: ${typeof e}`)}},pd=[31,28,31,30,31,30,31,31,30,31,30,31],Fe=[["month","year",0],["day","month",-1],["hour","day",0],["minute","hour",0],["second","minute",0]],Ze=class _w{static{o(this,"s")}tz;ms;second;minute;hour;day;month;year;constructor(e,r){if(this.tz=r,e&&e instanceof Date)if(!isNaN(e))this.fromDate(e);else throw new TypeError("CronDate: Invalid date passed to CronDate constructor");else if(e==null)this.fromDate(new Date);else if(e&&typeof e=="string")this.fromString(e);else if(e instanceof _w)this.fromCronDate(e);else throw new TypeError("CronDate: Invalid type ("+typeof e+") passed to CronDate constructor")}getLastDayOfMonth(e,r){return r!==1?pd[r]:new Date(Date.UTC(e,r+1,0)).getUTCDate()}getLastWeekday(e,r){let n=this.getLastDayOfMonth(e,r),i=new Date(Date.UTC(e,r,n)).getUTCDay();return i===0?n-2:i===6?n-1:n}getNearestWeekday(e,r,n){let i=this.getLastDayOfMonth(e,r);if(n>i)return-1;let s=new Date(Date.UTC(e,r,n)).getUTCDay();return s===0?n===i?n-2:n+1:s===6?n===1?n+2:n-1:n}isNthWeekdayOfMonth(e,r,n,i){let s=new Date(Date.UTC(e,r,n)).getUTCDay(),a=0;for(let l=1;l<=n;l++)new Date(Date.UTC(e,r,l)).getUTCDay()===s&&a++;if(i&63&&Pw[a-1]&i)return!0;if(i&32){let l=this.getLastDayOfMonth(e,r);for(let c=n+1;c<=l;c++)if(new Date(Date.UTC(e,r,c)).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 try{let r=za(e,this.tz);this.ms=e.getMilliseconds(),this.second=r.s,this.minute=r.i,this.hour=r.h,this.day=r.d,this.month=r.m-1,this.year=r.y}catch(r){let n=r instanceof Error?r.message:String(r);throw new TypeError(`CronDate: Failed to convert date to timezone '${this.tz}'. This may happen with invalid timezone names or dates. Original error: ${n}`)}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.month<0||this.day>pd[this.month]||this.day<1||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 r=Mw(e);this.ms=r.getUTCMilliseconds(),this.second=r.getUTCSeconds(),this.minute=r.getUTCMinutes(),this.hour=r.getUTCHours(),this.day=r.getUTCDate(),this.month=r.getUTCMonth(),this.year=r.getUTCFullYear(),this.apply()}else return this.fromDate(Mw(e,this.tz))}findNext(e,r,n,i){return this._findMatch(e,r,n,i,1)}_findMatch(e,r,n,i,s){let a=this[r],l;n.lastDayOfMonth&&(l=this.getLastDayOfMonth(this.year,this.month));let c=!n.starDOW&&r=="day"?new Date(Date.UTC(this.year,this.month,1,0,0,0,0)).getUTCDay():void 0,u=this[r]+i,f=s===1?p=>p<n[r].length:p=>p>=0;for(let p=u;f(p);p+=s){let h=n[r][p];if(r==="day"&&!h){for(let m=0;m<n.nearestWeekdays.length;m++)if(n.nearestWeekdays[m]){let d=this.getNearestWeekday(this.year,this.month,m-i);if(d===-1)continue;if(d===p-i){h=1;break}}}if(r==="day"&&n.lastWeekday){let m=this.getLastWeekday(this.year,this.month);p-i===m&&(h=1)}if(r==="day"&&n.lastDayOfMonth&&p-i==l&&(h=1),r==="day"&&!n.starDOW){let m=n.dayOfWeek[(c+(p-i-1))%7];if(m&&m&63)m=this.isNthWeekdayOfMonth(this.year,this.month,p-i,m)?1:0;else if(m)throw new Error(`CronDate: Invalid value for dayOfWeek encountered. ${m}`);n.useAndLogic?h=h&&m:!e.domAndDow&&!n.starDOM?h=h||m:h=h&&m}if(h)return this[r]=p-i,a!==this[r]?2:1}return 3}recurse(e,r,n){if(n===0&&!e.starYear){if(this.year>=0&&this.year<e.year.length&&e.year[this.year]===0){let s=-1;for(let a=this.year+1;a<e.year.length&&a<1e4;a++)if(e.year[a]===1){s=a;break}if(s===-1)return null;this.year=s,this.month=0,this.day=1,this.hour=0,this.minute=0,this.second=0,this.ms=0}if(this.year>=1e4)return null}let i=this.findNext(r,Fe[n][0],e,Fe[n][2]);if(i>1){let s=n+1;for(;s<Fe.length;)this[Fe[s][0]]=-Fe[s][2],s++;if(i===3){if(this[Fe[n][1]]++,this[Fe[n][0]]=-Fe[n][2],this.apply(),n===0&&!e.starYear){for(;this.year>=0&&this.year<e.year.length&&e.year[this.year]===0&&this.year<1e4;)this.year++;if(this.year>=1e4||this.year>=e.year.length)return null}return this.recurse(e,r,0)}else if(this.apply())return this.recurse(e,r,n-1)}return n+=1,n>=Fe.length?this:(e.starYear?this.year>=3e3:this.year>=1e4)?null:this.recurse(e,r,n)}increment(e,r,n){return this.second+=r.interval!==void 0&&r.interval>1&&n?r.interval:1,this.ms=0,this.apply(),this.recurse(e,r,0)}decrement(e,r){return this.second-=r.interval!==void 0&&r.interval>1?r.interval:1,this.ms=0,this.apply(),this.recurseBackward(e,r,0,0)}recurseBackward(e,r,n,i=0){if(i>1e4)return null;if(n===0&&!e.starYear){if(this.year>=0&&this.year<e.year.length&&e.year[this.year]===0){let a=-1;for(let l=this.year-1;l>=0;l--)if(e.year[l]===1){a=l;break}if(a===-1)return null;this.year=a,this.month=11,this.day=31,this.hour=23,this.minute=59,this.second=59,this.ms=0}if(this.year<0)return null}let s=this.findPrevious(r,Fe[n][0],e,Fe[n][2]);if(s>1){let a=n+1;for(;a<Fe.length;){let l=Fe[a][0],c=Fe[a][2],u=this.getMaxPatternValue(l,e,c);this[l]=u,a++}if(s===3){if(this[Fe[n][1]]--,n===0){let f=this.getLastDayOfMonth(this.year,this.month);this.day>f&&(this.day=f)}if(n===1)if(this.day<=0)this.day=1;else{let f=this.year,p=this.month;for(;p<0;)p+=12,f--;for(;p>11;)p-=12,f++;let h=p!==1?pd[p]:new Date(Date.UTC(f,p+1,0)).getUTCDate();this.day>h&&(this.day=h)}this.apply();let l=Fe[n][0],c=Fe[n][2],u=this.getMaxPatternValue(l,e,c);if(l==="day"){let f=this.getLastDayOfMonth(this.year,this.month);this[l]=Math.min(u,f)}else this[l]=u;if(this.apply(),n===0){let f=Fe[1][2],p=this.getMaxPatternValue("day",e,f),h=this.getLastDayOfMonth(this.year,this.month),m=Math.min(p,h);m!==this.day&&(this.day=m,this.hour=this.getMaxPatternValue("hour",e,Fe[2][2]),this.minute=this.getMaxPatternValue("minute",e,Fe[3][2]),this.second=this.getMaxPatternValue("second",e,Fe[4][2]))}if(n===0&&!e.starYear){for(;this.year>=0&&this.year<e.year.length&&e.year[this.year]===0;)this.year--;if(this.year<0)return null}return this.recurseBackward(e,r,0,i+1)}else if(this.apply())return this.recurseBackward(e,r,n-1,i+1)}return n+=1,n>=Fe.length?this:this.year<0?null:this.recurseBackward(e,r,n,i+1)}getMaxPatternValue(e,r,n){if(e==="day"&&r.lastDayOfMonth)return this.getLastDayOfMonth(this.year,this.month);if(e==="day"&&!r.starDOW)return this.getLastDayOfMonth(this.year,this.month);for(let i=r[e].length-1;i>=0;i--)if(r[e][i])return i-n;return r[e].length-1-n}findPrevious(e,r,n,i){return this._findMatch(e,r,n,i,-1)}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)):Nw(fd(this.year,this.month+1,this.day,this.hour,this.minute,this.second,this.tz),!1)}getTime(){return this.getDate(!1).getTime()}match(e,r){if(!e.starYear&&(this.year<0||this.year>=e.year.length||e.year[this.year]===0))return!1;for(let n=0;n<Fe.length;n++){let i=Fe[n][0],s=Fe[n][2],a=this[i];if(a+s<0||a+s>=e[i].length)return!1;let l=e[i][a+s];if(i==="day"){if(!l){for(let c=0;c<e.nearestWeekdays.length;c++)if(e.nearestWeekdays[c]){let u=this.getNearestWeekday(this.year,this.month,c-s);if(u!==-1&&u===a){l=1;break}}}if(e.lastWeekday){let c=this.getLastWeekday(this.year,this.month);a===c&&(l=1)}if(e.lastDayOfMonth){let c=this.getLastDayOfMonth(this.year,this.month);a===c&&(l=1)}if(!e.starDOW){let c=new Date(Date.UTC(this.year,this.month,1,0,0,0,0)).getUTCDay(),u=e.dayOfWeek[(c+(a-1))%7];u&&u&63&&(u=this.isNthWeekdayOfMonth(this.year,this.month,a,u)?1:0),e.useAndLogic?l=l&&u:!r.domAndDow&&!e.starDOM?l=l||u:l=l&&u}}if(!l)return!1}return!0}};function KN(t){if(t===void 0&&(t={}),delete t.name,t.legacyMode!==void 0&&t.domAndDow===void 0?t.domAndDow=!t.legacyMode:t.domAndDow===void 0&&(t.domAndDow=!1),t.legacyMode=!t.domAndDow,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.dayOffset=t.dayOffset===void 0?0:parseInt(t.dayOffset.toString(),10),t.unref=t.unref===void 0?!1:t.unref,t.mode=t.mode===void 0?"auto":t.mode,t.alternativeWeekdays=t.alternativeWeekdays===void 0?!1:t.alternativeWeekdays,t.sloppyRanges=t.sloppyRanges===void 0?!1:t.sloppyRanges,!["auto","5-part","6-part","7-part","5-or-6-parts","6-or-7-parts"].includes(t.mode))throw new Error("CronOptions: mode must be one of 'auto', '5-part', '6-part', '7-part', '5-or-6-parts', or '6-or-7-parts'.");if(t.startAt&&(t.startAt=new Ze(t.startAt,t.timezone)),t.stopAt&&(t.stopAt=new Ze(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).");if(t.dayOffset!==void 0&&t.dayOffset!==0&&isNaN(t.dayOffset))throw new Error("CronOptions: Invalid value passed for dayOffset, should be a number representing days to offset.");return t}o(KN,"R");function Ha(t){return Object.prototype.toString.call(t)==="[object Function]"||typeof t=="function"||t instanceof Function}o(Ha,"p");function GN(t){return Ha(t)}o(GN,"_");function QN(t){typeof Deno<"u"&&typeof Deno.unrefTimer<"u"?Deno.unrefTimer(t):t&&typeof t.unref<"u"&&t.unref()}o(QN,"x");var Lw=30*1e3,is=[],Rw=class{static{o(this,"E")}name;options;_states;fn;getTz(){return this.options.timezone||this.options.utcOffset}applyDayOffset(t){if(this.options.dayOffset!==void 0&&this.options.dayOffset!==0){let e=this.options.dayOffset*24*60*60*1e3;return new Date(t.getTime()+e)}return t}constructor(t,e,r){let n,i;if(Ha(e))i=e;else if(typeof e=="object")n=e;else if(e!==void 0)throw new Error("Cron: Invalid argument passed for optionsIn. Should be one of function, or object (options).");if(Ha(r))i=r;else if(typeof r=="object")n=r;else if(r!==void 0)throw new Error("Cron: Invalid argument passed for funcIn. Should be one of function, or object (options).");if(this.name=n?.name,this.options=KN(n),this._states={kill:!1,blocking:!1,previousRun:void 0,currentRun:void 0,once:void 0,currentTimeout:void 0,maxRuns:n?n.maxRuns:void 0,paused:n?n.paused:!1,pattern:new xu("* * * * *",void 0,{mode:"auto"})},t&&(t instanceof Date||typeof t=="string"&&t.indexOf(":")>0)?this._states.once=new Ze(t,this.getTz()):this._states.pattern=new xu(t,this.options.timezone,{mode:this.options.mode,alternativeWeekdays:this.options.alternativeWeekdays,sloppyRanges:this.options.sloppyRanges}),this.name){if(is.find(s=>s.name===this.name))throw new Error("Cron: Tried to initialize new named job '"+this.name+"', but name already taken.");is.push(this)}return i!==void 0&&GN(i)&&(this.fn=i,this.schedule()),this}nextRun(t){let e=this._next(t);return e?this.applyDayOffset(e.getDate(!1)):null}nextRuns(t,e){this._states.maxRuns!==void 0&&t>this._states.maxRuns&&(t=this._states.maxRuns);let r=e||this._states.currentRun||void 0;return this._enumerateRuns(t,r,"next")}previousRuns(t,e){return this._enumerateRuns(t,e||void 0,"previous")}_enumerateRuns(t,e,r){let n=[],i=e?new Ze(e,this.getTz()):null,s=r==="next"?this._next:this._previous;for(;t--;){let a=s.call(this,i);if(!a)break;let l=a.getDate(!1);n.push(this.applyDayOffset(l)),i=a}return n}match(t){if(this._states.once){let r=new Ze(t,this.getTz());r.ms=0;let n=new Ze(this._states.once,this.getTz());return n.ms=0,r.getTime()===n.getTime()}let e=new Ze(t,this.getTz());return e.ms=0,e.match(this._states.pattern,this.options)}getPattern(){if(!this._states.once)return this._states.pattern?this._states.pattern.pattern:void 0}getOnce(){return this._states.once?this._states.once.getDate():null}isRunning(){let t=this.nextRun(this._states.currentRun),e=!this._states.paused,r=this.fn!==void 0,n=!this._states.kill;return e&&r&&n&&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 Ze||t instanceof Date?e.getTime()-t.getTime():e.getTime()-new Ze(t).getTime():null}stop(){this._states.kill=!0,this._states.currentTimeout&&clearTimeout(this._states.currentTimeout);let t=is.indexOf(this);t>=0&&is.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(),r=this.nextRun(this._states.currentRun);return e==null||isNaN(e)||r===null?this:(e>Lw&&(e=Lw),this._states.currentTimeout=setTimeout(()=>this._checkTrigger(r),e),this._states.currentTimeout&&this.options.unref&&QN(this._states.currentTimeout),this)}async _trigger(t){this._states.blocking=!0,this._states.currentRun=new Ze(void 0,this.getTz());try{if(this.options.catch)try{this.fn!==void 0&&await this.fn(this,this.options.context)}catch(e){if(Ha(this.options.catch))try{this.options.catch(e,this)}catch{}}else this.fn!==void 0&&await this.fn(this,this.options.context)}finally{this._states.previousRun=new Ze(t,this.getTz()),this._states.blocking=!1}}async trigger(){await this._trigger()}runsLeft(){return this._states.maxRuns}_checkTrigger(t){let e=new Date,r=!this._states.paused&&e.getTime()>=t.getTime(),n=this._states.blocking&&this.options.protect;r&&!n?(this._states.maxRuns!==void 0&&this._states.maxRuns--,this._trigger()):r&&n&&Ha(this.options.protect)&&setTimeout(()=>this.options.protect(this),0),this.schedule()}_next(t){let e=!!(t||this._states.currentRun),r=!1;!t&&this.options.startAt&&this.options.interval&&([t,e]=this._calculatePreviousRun(t,e),r=!t),t=new Ze(t,this.getTz()),this.options.startAt&&t&&t.getTime()<this.options.startAt.getTime()&&(t=this.options.startAt);let n=this._states.once||new Ze(t,this.getTz());return!r&&n!==this._states.once&&(n=n.increment(this._states.pattern,this.options,e)),this._states.once&&this._states.once.getTime()<=t.getTime()||n===null||this._states.maxRuns!==void 0&&this._states.maxRuns<=0||this._states.kill||this.options.stopAt&&n.getTime()>=this.options.stopAt.getTime()?null:n}_previous(t){let e=new Ze(t,this.getTz());this.options.stopAt&&e.getTime()>this.options.stopAt.getTime()&&(e=this.options.stopAt);let r=new Ze(e,this.getTz());return this._states.once?this._states.once.getTime()<e.getTime()?this._states.once:null:(r=r.decrement(this._states.pattern,this.options),r===null||this.options.startAt&&r.getTime()<this.options.startAt.getTime()?null:r)}_calculatePreviousRun(t,e){let r=new Ze(void 0,this.getTz()),n=t;if(this.options.startAt.getTime()<=r.getTime()){n=this.options.startAt;let i=n.getTime()+this.options.interval*1e3;for(;i<=r.getTime();)n=new Ze(n,this.getTz()).increment(this._states.pattern,this.options,!0),i=n.getTime()+this.options.interval*1e3;e=!0}return n===null&&(n=void 0),[n,e]}};var el={};se(el,{add:()=>Gn,addBusinessDays:()=>Ou,addDays:()=>et,addHours:()=>Iu,addISOWeekYears:()=>Nu,addMilliseconds:()=>Qn,addMinutes:()=>ls,addMonths:()=>en,addQuarters:()=>cs,addSeconds:()=>Pu,addWeeks:()=>Jn,addYears:()=>Lu,areIntervalsOverlapping:()=>jw,clamp:()=>Uw,closestIndexTo:()=>Fu,closestTo:()=>zw,compareAsc:()=>yt,compareDesc:()=>Hw,constructFrom:()=>$,constructNow:()=>de,daysToWeeks:()=>Ww,differenceInBusinessDays:()=>qw,differenceInCalendarDays:()=>ot,differenceInCalendarISOWeekYears:()=>$u,differenceInCalendarISOWeeks:()=>Yw,differenceInCalendarMonths:()=>Yi,differenceInCalendarQuarters:()=>us,differenceInCalendarWeeks:()=>Vi,differenceInCalendarYears:()=>Xn,differenceInDays:()=>fs,differenceInHours:()=>Ki,differenceInISOWeekYears:()=>Kw,differenceInMilliseconds:()=>ps,differenceInMinutes:()=>Gi,differenceInMonths:()=>Zn,differenceInQuarters:()=>Gw,differenceInSeconds:()=>on,differenceInWeeks:()=>Qw,differenceInYears:()=>Uu,eachDayOfInterval:()=>zu,eachHourOfInterval:()=>Jw,eachMinuteOfInterval:()=>Xw,eachMonthOfInterval:()=>Zw,eachQuarterOfInterval:()=>e0,eachWeekOfInterval:()=>t0,eachWeekendOfInterval:()=>ds,eachWeekendOfMonth:()=>r0,eachWeekendOfYear:()=>n0,eachYearOfInterval:()=>i0,endOfDay:()=>hs,endOfDecade:()=>o0,endOfHour:()=>s0,endOfISOWeek:()=>a0,endOfISOWeekYear:()=>l0,endOfMinute:()=>c0,endOfMonth:()=>ms,endOfQuarter:()=>u0,endOfSecond:()=>f0,endOfToday:()=>p0,endOfTomorrow:()=>h0,endOfWeek:()=>Wu,endOfYear:()=>Hu,endOfYesterday:()=>m0,format:()=>Ga,formatDate:()=>Ga,formatDistance:()=>Gu,formatDistanceStrict:()=>Qu,formatDistanceToNow:()=>E0,formatDistanceToNowStrict:()=>D0,formatDuration:()=>C0,formatISO:()=>O0,formatISO9075:()=>I0,formatISODuration:()=>M0,formatRFC3339:()=>N0,formatRFC7231:()=>P0,formatRelative:()=>L0,formatters:()=>Va,fromUnixTime:()=>_0,getDate:()=>Ju,getDay:()=>ni,getDayOfYear:()=>Yu,getDaysInMonth:()=>Xu,getDaysInYear:()=>R0,getDecade:()=>F0,getDefaultOptions:()=>ef,getHours:()=>A0,getISODay:()=>tf,getISOWeek:()=>bs,getISOWeekYear:()=>Mt,getISOWeeksInYear:()=>$0,getMilliseconds:()=>B0,getMinutes:()=>j0,getMonth:()=>U0,getOverlappingDaysInIntervals:()=>z0,getQuarter:()=>Ya,getSeconds:()=>H0,getTime:()=>W0,getUnixTime:()=>q0,getWeek:()=>ws,getWeekOfMonth:()=>Y0,getWeekYear:()=>ti,getWeeksInMonth:()=>V0,getYear:()=>K0,hoursToMilliseconds:()=>G0,hoursToMinutes:()=>Q0,hoursToSeconds:()=>J0,interval:()=>X0,intervalToDuration:()=>Z0,intlFormat:()=>eS,intlFormatDistance:()=>tS,isAfter:()=>rS,isBefore:()=>nS,isDate:()=>Au,isEqual:()=>iS,isExists:()=>oS,isFirstDayOfMonth:()=>sS,isFriday:()=>aS,isFuture:()=>lS,isLastDayOfMonth:()=>ju,isLeapYear:()=>Zu,isMatch:()=>cS,isMonday:()=>uS,isPast:()=>fS,isSameDay:()=>nn,isSameHour:()=>Vf,isSameISOWeek:()=>Kf,isSameISOWeekYear:()=>pS,isSameMinute:()=>Gf,isSameMonth:()=>Qf,isSameQuarter:()=>Jf,isSameSecond:()=>Xf,isSameWeek:()=>Ts,isSameYear:()=>Zf,isSaturday:()=>Du,isSunday:()=>Cu,isThisHour:()=>hS,isThisISOWeek:()=>mS,isThisMinute:()=>dS,isThisMonth:()=>gS,isThisQuarter:()=>yS,isThisSecond:()=>xS,isThisWeek:()=>bS,isThisYear:()=>wS,isThursday:()=>SS,isToday:()=>vS,isTomorrow:()=>kS,isTuesday:()=>TS,isValid:()=>ft,isWednesday:()=>ES,isWeekend:()=>tn,isWithinInterval:()=>DS,isYesterday:()=>CS,lastDayOfDecade:()=>OS,lastDayOfISOWeek:()=>IS,lastDayOfISOWeekYear:()=>MS,lastDayOfMonth:()=>rf,lastDayOfQuarter:()=>NS,lastDayOfWeek:()=>ep,lastDayOfYear:()=>PS,lightFormat:()=>LS,lightFormatters:()=>Zt,longFormatters:()=>ri,max:()=>_u,milliseconds:()=>_S,millisecondsToHours:()=>RS,millisecondsToMinutes:()=>FS,millisecondsToSeconds:()=>AS,min:()=>Ru,minutesToHours:()=>$S,minutesToMilliseconds:()=>BS,minutesToSeconds:()=>jS,monthsToQuarters:()=>US,monthsToYears:()=>zS,nextDay:()=>bt,nextFriday:()=>HS,nextMonday:()=>WS,nextSaturday:()=>qS,nextSunday:()=>YS,nextThursday:()=>VS,nextTuesday:()=>KS,nextWednesday:()=>GS,parse:()=>Yf,parseISO:()=>JS,parseJSON:()=>XS,parsers:()=>qf,previousDay:()=>wt,previousFriday:()=>ZS,previousMonday:()=>ev,previousSaturday:()=>tv,previousSunday:()=>rv,previousThursday:()=>nv,previousTuesday:()=>iv,previousWednesday:()=>ov,quartersToMonths:()=>sv,quartersToYears:()=>av,roundToNearestHours:()=>lv,roundToNearestMinutes:()=>cv,secondsToHours:()=>uv,secondsToMilliseconds:()=>fv,secondsToMinutes:()=>pv,set:()=>hv,setDate:()=>mv,setDay:()=>ii,setDayOfYear:()=>dv,setDefaultOptions:()=>gv,setHours:()=>yv,setISODay:()=>If,setISOWeek:()=>vf,setISOWeekYear:()=>Mu,setMilliseconds:()=>xv,setMinutes:()=>bv,setMonth:()=>Es,setQuarter:()=>wv,setSeconds:()=>Sv,setWeek:()=>wf,setWeekYear:()=>vv,setYear:()=>kv,startOfDay:()=>rn,startOfDecade:()=>Tv,startOfHour:()=>Qa,startOfISOWeek:()=>Ge,startOfISOWeekYear:()=>Xt,startOfMinute:()=>Ja,startOfMonth:()=>ei,startOfQuarter:()=>sn,startOfSecond:()=>Xa,startOfToday:()=>Ev,startOfTomorrow:()=>Dv,startOfWeek:()=>Le,startOfWeekYear:()=>Qi,startOfYear:()=>gs,startOfYesterday:()=>Cv,sub:()=>Ov,subBusinessDays:()=>Iv,subDays:()=>oi,subHours:()=>Mv,subISOWeekYears:()=>Bu,subMilliseconds:()=>Nv,subMinutes:()=>Pv,subMonths:()=>rp,subQuarters:()=>Lv,subSeconds:()=>_v,subWeeks:()=>Rv,subYears:()=>Fv,toDate:()=>b,transpose:()=>nf,weeksToDays:()=>Av,yearsToDays:()=>$v,yearsToMonths:()=>Bv,yearsToQuarters:()=>jv});var wu=7,qa=365.2425,JN=Math.pow(10,8)*24*60*60*1e3,BG=-JN,Zr=6048e5,Su=864e5,gt=6e4,Jt=36e5,os=1e3,hd=525600,Kn=43200,ss=1440,vu=60,ku=3,Tu=12,Eu=4,qi=3600,as=60,bu=qi*24,Fw=bu*7,md=bu*365.2425,dd=md/12,Aw=dd*3,gd=Symbol.for("constructDateFrom");function $(t,e){return typeof t=="function"?t(e):t&&typeof t=="object"&&gd in t?t[gd](e):t instanceof Date?new t.constructor(e):new Date(e)}o($,"constructFrom");var zG=$;function b(t,e){return $(e||t,t)}o(b,"toDate");var YG=b;function et(t,e,r){let n=b(t,r?.in);return isNaN(e)?$(r?.in||t,NaN):(e&&n.setDate(n.getDate()+e),n)}o(et,"addDays");var JG=et;function en(t,e,r){let n=b(t,r?.in);if(isNaN(e))return $(r?.in||t,NaN);if(!e)return n;let i=n.getDate(),s=$(r?.in||t,n.getTime());s.setMonth(n.getMonth()+e+1,0);let a=s.getDate();return i>=a?s:(n.setFullYear(s.getFullYear(),s.getMonth(),i),n)}o(en,"addMonths");var rQ=en;function Gn(t,e,r){let{years:n=0,months:i=0,weeks:s=0,days:a=0,hours:l=0,minutes:c=0,seconds:u=0}=e,f=b(t,r?.in),p=i||n?en(f,i+n*12):f,h=a||s?et(p,a+s*7):p,m=c+l*60,g=(u+m*60)*1e3;return $(r?.in||t,+h+g)}o(Gn,"add");var cQ=Gn;function Du(t,e){return b(t,e?.in).getDay()===6}o(Du,"isSaturday");var hQ=Du;function Cu(t,e){return b(t,e?.in).getDay()===0}o(Cu,"isSunday");var yQ=Cu;function tn(t,e){let r=b(t,e?.in).getDay();return r===0||r===6}o(tn,"isWeekend");var SQ=tn;function Ou(t,e,r){let n=b(t,r?.in),i=tn(n,r);if(isNaN(e))return $(r?.in,NaN);let s=n.getHours(),a=e<0?-1:1,l=Math.trunc(e/5);n.setDate(n.getDate()+l*7);let c=Math.abs(e%5);for(;c>0;)n.setDate(n.getDate()+a),tn(n,r)||(c-=1);return i&&tn(n,r)&&e!==0&&(Du(n,r)&&n.setDate(n.getDate()+(a<0?2:-1)),Cu(n,r)&&n.setDate(n.getDate()+(a<0?1:-2))),n.setHours(s),n}o(Ou,"addBusinessDays");var IQ=Ou;function Qn(t,e,r){return $(r?.in||t,+b(t)+e)}o(Qn,"addMilliseconds");var _Q=Qn;function Iu(t,e,r){return Qn(t,e*Jt,r)}o(Iu,"addHours");var BQ=Iu;var $w={};function Oe(){return $w}o(Oe,"getDefaultOptions");function Bw(t){$w=t}o(Bw,"setDefaultOptions");function Le(t,e){let r=Oe(),n=e?.weekStartsOn??e?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,i=b(t,e?.in),s=i.getDay(),a=(s<n?7:0)+s-n;return i.setDate(i.getDate()-a),i.setHours(0,0,0,0),i}o(Le,"startOfWeek");var YQ=Le;function Ge(t,e){return Le(t,{...e,weekStartsOn:1})}o(Ge,"startOfISOWeek");var QQ=Ge;function Mt(t,e){let r=b(t,e?.in),n=r.getFullYear(),i=$(r,0);i.setFullYear(n+1,0,4),i.setHours(0,0,0,0);let s=Ge(i),a=$(r,0);a.setFullYear(n,0,4),a.setHours(0,0,0,0);let l=Ge(a);return r.getTime()>=s.getTime()?n+1:r.getTime()>=l.getTime()?n:n-1}o(Mt,"getISOWeekYear");var rJ=Mt;function Ue(t){let e=b(t),r=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return r.setUTCFullYear(e.getFullYear()),+t-+r}o(Ue,"getTimezoneOffsetInMilliseconds");function te(t,...e){let r=$.bind(null,t||e.find(n=>typeof n=="object"));return e.map(r)}o(te,"normalizeDates");function rn(t,e){let r=b(t,e?.in);return r.setHours(0,0,0,0),r}o(rn,"startOfDay");var pJ=rn;function ot(t,e,r){let[n,i]=te(r?.in,t,e),s=rn(n),a=rn(i),l=+s-Ue(s),c=+a-Ue(a);return Math.round((l-c)/Su)}o(ot,"differenceInCalendarDays");var bJ=ot;function Xt(t,e){let r=Mt(t,e),n=$(e?.in||t,0);return n.setFullYear(r,0,4),n.setHours(0,0,0,0),Ge(n)}o(Xt,"startOfISOWeekYear");var EJ=Xt;function Mu(t,e,r){let n=b(t,r?.in),i=ot(n,Xt(n,r)),s=$(r?.in||t,0);return s.setFullYear(e,0,4),s.setHours(0,0,0,0),n=Xt(s),n.setDate(n.getDate()+i),n}o(Mu,"setISOWeekYear");var PJ=Mu;function Nu(t,e,r){return Mu(t,Mt(t,r)+e,r)}o(Nu,"addISOWeekYears");var AJ=Nu;function ls(t,e,r){let n=b(t,r?.in);return n.setTime(n.getTime()+e*gt),n}o(ls,"addMinutes");var zJ=ls;function cs(t,e,r){return en(t,e*3,r)}o(cs,"addQuarters");var YJ=cs;function Pu(t,e,r){return Qn(t,e*1e3,r)}o(Pu,"addSeconds");var QJ=Pu;function Jn(t,e,r){return et(t,e*7,r)}o(Jn,"addWeeks");var eX=Jn;function Lu(t,e,r){return en(t,e*12,r)}o(Lu,"addYears");var iX=Lu;function jw(t,e,r){let[n,i]=[+b(t.start,r?.in),+b(t.end,r?.in)].sort((l,c)=>l-c),[s,a]=[+b(e.start,r?.in),+b(e.end,r?.in)].sort((l,c)=>l-c);return r?.inclusive?n<=a&&s<=i:n<a&&s<i}o(jw,"areIntervalsOverlapping");var lX=jw;function _u(t,e){let r,n=e?.in;return t.forEach(i=>{!n&&typeof i=="object"&&(n=$.bind(null,i));let s=b(i,n);(!r||r<s||isNaN(+s))&&(r=s)}),$(n,r||NaN)}o(_u,"max");var hX=_u;function Ru(t,e){let r,n=e?.in;return t.forEach(i=>{!n&&typeof i=="object"&&(n=$.bind(null,i));let s=b(i,n);(!r||r>s||isNaN(+s))&&(r=s)}),$(n,r||NaN)}o(Ru,"min");var xX=Ru;function Uw(t,e,r){let[n,i,s]=te(r?.in,t,e.start,e.end);return Ru([_u([n,i],r),s],r)}o(Uw,"clamp");var TX=Uw;function Fu(t,e){let r=+b(t);if(isNaN(r))return NaN;let n,i;return e.forEach((s,a)=>{let l=b(s);if(isNaN(+l)){n=NaN,i=NaN;return}let c=Math.abs(r-+l);(n==null||c<i)&&(n=a,i=c)}),n}o(Fu,"closestIndexTo");var OX=Fu;function zw(t,e,r){let[n,...i]=te(r?.in,t,...e),s=Fu(n,i);if(typeof s=="number"&&isNaN(s))return $(n,NaN);if(s!==void 0)return i[s]}o(zw,"closestTo");var _X=zw;function yt(t,e){let r=+b(t)-+b(e);return r<0?-1:r>0?1:r}o(yt,"compareAsc");var $X=yt;function Hw(t,e){let r=+b(t)-+b(e);return r>0?-1:r<0?1:r}o(Hw,"compareDesc");var zX=Hw;function de(t){return $(t,Date.now())}o(de,"constructNow");var YX=de;function Ww(t){let e=Math.trunc(t/7);return e===0?0:e}o(Ww,"daysToWeeks");var QX=Ww;function nn(t,e,r){let[n,i]=te(r?.in,t,e);return+rn(n)==+rn(i)}o(nn,"isSameDay");var tZ=nn;function Au(t){return t instanceof Date||typeof t=="object"&&Object.prototype.toString.call(t)==="[object Date]"}o(Au,"isDate");var iZ=Au;function ft(t){return!(!Au(t)&&typeof t!="number"||isNaN(+b(t)))}o(ft,"isValid");var cZ=ft;function qw(t,e,r){let[n,i]=te(r?.in,t,e);if(!ft(n)||!ft(i))return NaN;let s=ot(n,i),a=s<0?-1:1,l=Math.trunc(s/7),c=l*5,u=et(i,l*7);for(;!nn(n,u);)c+=tn(u,r)?0:a,u=et(u,a);return c===0?0:c}o(qw,"differenceInBusinessDays");var xZ=qw;function $u(t,e,r){let[n,i]=te(r?.in,t,e);return Mt(n,r)-Mt(i,r)}o($u,"differenceInCalendarISOWeekYears");var kZ=$u;function Yw(t,e,r){let[n,i]=te(r?.in,t,e),s=Ge(n),a=Ge(i),l=+s-Ue(s),c=+a-Ue(a);return Math.round((l-c)/Zr)}o(Yw,"differenceInCalendarISOWeeks");var MZ=Yw;function Yi(t,e,r){let[n,i]=te(r?.in,t,e),s=n.getFullYear()-i.getFullYear(),a=n.getMonth()-i.getMonth();return s*12+a}o(Yi,"differenceInCalendarMonths");var _Z=Yi;function Ya(t,e){let r=b(t,e?.in);return Math.trunc(r.getMonth()/3)+1}o(Ya,"getQuarter");var $Z=Ya;function us(t,e,r){let[n,i]=te(r?.in,t,e),s=n.getFullYear()-i.getFullYear(),a=Ya(n)-Ya(i);return s*4+a}o(us,"differenceInCalendarQuarters");var HZ=us;function Vi(t,e,r){let[n,i]=te(r?.in,t,e),s=Le(n,r),a=Le(i,r),l=+s-Ue(s),c=+a-Ue(a);return Math.round((l-c)/Zr)}o(Vi,"differenceInCalendarWeeks");var QZ=Vi;function Xn(t,e,r){let[n,i]=te(r?.in,t,e);return n.getFullYear()-i.getFullYear()}o(Xn,"differenceInCalendarYears");var eee=Xn;function fs(t,e,r){let[n,i]=te(r?.in,t,e),s=Vw(n,i),a=Math.abs(ot(n,i));n.setDate(n.getDate()-s*a);let l=+(Vw(n,i)===-s),c=s*(a-l);return c===0?0:c}o(fs,"differenceInDays");function Vw(t,e){let r=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 r<0?-1:r>0?1:r}o(Vw,"compareLocalAsc");var oee=fs;function xt(t){return e=>{let n=(t?Math[t]:Math.trunc)(e);return n===0?0:n}}o(xt,"getRoundingMethod");function Ki(t,e,r){let[n,i]=te(r?.in,t,e),s=(+n-+i)/Jt;return xt(r?.roundingMethod)(s)}o(Ki,"differenceInHours");var hee=Ki;function Bu(t,e,r){return Nu(t,-e,r)}o(Bu,"subISOWeekYears");var yee=Bu;function Kw(t,e,r){let[n,i]=te(r?.in,t,e),s=yt(n,i),a=Math.abs($u(n,i,r)),l=Bu(n,s*a,r),c=+(yt(l,i)===-s),u=s*(a-c);return u===0?0:u}o(Kw,"differenceInISOWeekYears");var Tee=Kw;function ps(t,e){return+b(t)-+b(e)}o(ps,"differenceInMilliseconds");var Oee=ps;function Gi(t,e,r){let n=ps(t,e)/gt;return xt(r?.roundingMethod)(n)}o(Gi,"differenceInMinutes");var _ee=Gi;function hs(t,e){let r=b(t,e?.in);return r.setHours(23,59,59,999),r}o(hs,"endOfDay");var $ee=hs;function ms(t,e){let r=b(t,e?.in),n=r.getMonth();return r.setFullYear(r.getFullYear(),n+1,0),r.setHours(23,59,59,999),r}o(ms,"endOfMonth");var zee=ms;function ju(t,e){let r=b(t,e?.in);return+hs(r,e)==+ms(r,e)}o(ju,"isLastDayOfMonth");var Kee=ju;function Zn(t,e,r){let[n,i,s]=te(r?.in,t,t,e),a=yt(i,s),l=Math.abs(Yi(i,s));if(l<1)return 0;i.getMonth()===1&&i.getDate()>27&&i.setDate(30),i.setMonth(i.getMonth()-a*l);let c=yt(i,s)===-a;ju(n)&&l===1&&yt(n,s)===1&&(c=!1);let u=a*(l-+c);return u===0?0:u}o(Zn,"differenceInMonths");var tte=Zn;function Gw(t,e,r){let n=Zn(t,e,r)/3;return xt(r?.roundingMethod)(n)}o(Gw,"differenceInQuarters");var ste=Gw;function on(t,e,r){let n=ps(t,e)/1e3;return xt(r?.roundingMethod)(n)}o(on,"differenceInSeconds");var fte=on;function Qw(t,e,r){let n=fs(t,e,r)/7;return xt(r?.roundingMethod)(n)}o(Qw,"differenceInWeeks");var gte=Qw;function Uu(t,e,r){let[n,i]=te(r?.in,t,e),s=yt(n,i),a=Math.abs(Xn(n,i));n.setFullYear(1584),i.setFullYear(1584);let l=yt(n,i)===-s,c=s*(a-+l);return c===0?0:c}o(Uu,"differenceInYears");var vte=Uu;function st(t,e){let[r,n]=te(t,e.start,e.end);return{start:r,end:n}}o(st,"normalizeInterval");function zu(t,e){let{start:r,end:n}=st(e?.in,t),i=+r>+n,s=i?+r:+n,a=i?n:r;a.setHours(0,0,0,0);let l=e?.step??1;if(!l)return[];l<0&&(l=-l,i=!i);let c=[];for(;+a<=s;)c.push($(r,a)),a.setDate(a.getDate()+l),a.setHours(0,0,0,0);return i?c.reverse():c}o(zu,"eachDayOfInterval");var Mte=zu;function Jw(t,e){let{start:r,end:n}=st(e?.in,t),i=+r>+n,s=i?+r:+n,a=i?n:r;a.setMinutes(0,0,0);let l=e?.step??1;if(!l)return[];l<0&&(l=-l,i=!i);let c=[];for(;+a<=s;)c.push($(r,a)),a.setHours(a.getHours()+l);return i?c.reverse():c}o(Jw,"eachHourOfInterval");var Rte=Jw;function Xw(t,e){let{start:r,end:n}=st(e?.in,t);r.setSeconds(0,0);let i=+r>+n,s=i?+r:+n,a=i?n:r,l=e?.step??1;if(!l)return[];l<0&&(l=-l,i=!i);let c=[];for(;+a<=s;)c.push($(r,a)),a=ls(a,l);return i?c.reverse():c}o(Xw,"eachMinuteOfInterval");var Ute=Xw;function Zw(t,e){let{start:r,end:n}=st(e?.in,t),i=+r>+n,s=i?+r:+n,a=i?n:r;a.setHours(0,0,0,0),a.setDate(1);let l=e?.step??1;if(!l)return[];l<0&&(l=-l,i=!i);let c=[];for(;+a<=s;)c.push($(r,a)),a.setMonth(a.getMonth()+l);return i?c.reverse():c}o(Zw,"eachMonthOfInterval");var Yte=Zw;function sn(t,e){let r=b(t,e?.in),n=r.getMonth(),i=n-n%3;return r.setMonth(i,1),r.setHours(0,0,0,0),r}o(sn,"startOfQuarter");var Qte=sn;function e0(t,e){let{start:r,end:n}=st(e?.in,t),i=+r>+n,s=i?+sn(r):+sn(n),a=i?sn(n):sn(r),l=e?.step??1;if(!l)return[];l<0&&(l=-l,i=!i);let c=[];for(;+a<=s;)c.push($(r,a)),a=cs(a,l);return i?c.reverse():c}o(e0,"eachQuarterOfInterval");var nre=e0;function t0(t,e){let{start:r,end:n}=st(e?.in,t),i=+r>+n,s=i?Le(n,e):Le(r,e),a=i?Le(r,e):Le(n,e);s.setHours(15),a.setHours(15);let l=+a.getTime(),c=s,u=e?.step??1;if(!u)return[];u<0&&(u=-u,i=!i);let f=[];for(;+c<=l;)c.setHours(0),f.push($(r,c)),c=Jn(c,u),c.setHours(15);return i?f.reverse():f}o(t0,"eachWeekOfInterval");var ure=t0;function ds(t,e){let{start:r,end:n}=st(e?.in,t),i=zu({start:r,end:n},e),s=[],a=0;for(;a<i.length;){let l=i[a++];tn(l)&&s.push($(r,l))}return s}o(ds,"eachWeekendOfInterval");var yre=ds;function ei(t,e){let r=b(t,e?.in);return r.setDate(1),r.setHours(0,0,0,0),r}o(ei,"startOfMonth");var Sre=ei;function r0(t,e){let r=ei(t,e),n=ms(t,e);return ds({start:r,end:n},e)}o(r0,"eachWeekendOfMonth");var Cre=r0;function Hu(t,e){let r=b(t,e?.in),n=r.getFullYear();return r.setFullYear(n+1,0,0),r.setHours(23,59,59,999),r}o(Hu,"endOfYear");var Nre=Hu;function gs(t,e){let r=b(t,e?.in);return r.setFullYear(r.getFullYear(),0,1),r.setHours(0,0,0,0),r}o(gs,"startOfYear");var Rre=gs;function n0(t,e){let r=gs(t,e),n=Hu(t,e);return ds({start:r,end:n},e)}o(n0,"eachWeekendOfYear");var Ure=n0;function i0(t,e){let{start:r,end:n}=st(e?.in,t),i=+r>+n,s=i?+r:+n,a=i?n:r;a.setHours(0,0,0,0),a.setMonth(0,1);let l=e?.step??1;if(!l)return[];l<0&&(l=-l,i=!i);let c=[];for(;+a<=s;)c.push($(r,a)),a.setFullYear(a.getFullYear()+l);return i?c.reverse():c}o(i0,"eachYearOfInterval");var Yre=i0;function o0(t,e){let r=b(t,e?.in),n=r.getFullYear(),i=9+Math.floor(n/10)*10;return r.setFullYear(i,11,31),r.setHours(23,59,59,999),r}o(o0,"endOfDecade");var Qre=o0;function s0(t,e){let r=b(t,e?.in);return r.setMinutes(59,59,999),r}o(s0,"endOfHour");var ene=s0;function Wu(t,e){let r=Oe(),n=e?.weekStartsOn??e?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,i=b(t,e?.in),s=i.getDay(),a=(s<n?-7:0)+6-(s-n);return i.setDate(i.getDate()+a),i.setHours(23,59,59,999),i}o(Wu,"endOfWeek");var one=Wu;function a0(t,e){return Wu(t,{...e,weekStartsOn:1})}o(a0,"endOfISOWeek");var cne=a0;function l0(t,e){let r=Mt(t,e),n=$(e?.in||t,0);n.setFullYear(r+1,0,4),n.setHours(0,0,0,0);let i=Ge(n,e);return i.setMilliseconds(i.getMilliseconds()-1),i}o(l0,"endOfISOWeekYear");var dne=l0;function c0(t,e){let r=b(t,e?.in);return r.setSeconds(59,999),r}o(c0,"endOfMinute");var bne=c0;function u0(t,e){let r=b(t,e?.in),n=r.getMonth(),i=n-n%3+3;return r.setMonth(i,0),r.setHours(23,59,59,999),r}o(u0,"endOfQuarter");var kne=u0;function f0(t,e){let r=b(t,e?.in);return r.setMilliseconds(999),r}o(f0,"endOfSecond");var Cne=f0;function p0(t){return hs(Date.now(),t)}o(p0,"endOfToday");var Nne=p0;function h0(t){let e=de(t?.in),r=e.getFullYear(),n=e.getMonth(),i=e.getDate(),s=de(t?.in);return s.setFullYear(r,n,i+1),s.setHours(23,59,59,999),t?.in?t.in(s):s}o(h0,"endOfTomorrow");var Rne=h0;function m0(t){let e=de(t?.in),r=$(t?.in,0);return r.setFullYear(e.getFullYear(),e.getMonth(),e.getDate()-1),r.setHours(23,59,59,999),r}o(m0,"endOfYesterday");var jne=m0;var XN={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"}},d0=o((t,e,r)=>{let n,i=XN[t];return typeof i=="string"?n=i:e===1?n=i.one:n=i.other.replace("{{count}}",e.toString()),r?.addSuffix?r.comparison&&r.comparison>0?"in "+n:n+" ago":n},"formatDistance");function qu(t){return(e={})=>{let r=e.width?String(e.width):t.defaultWidth;return t.formats[r]||t.formats[t.defaultWidth]}}o(qu,"buildFormatLongFn");var ZN={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},eP={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},tP={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},g0={date:qu({formats:ZN,defaultWidth:"full"}),time:qu({formats:eP,defaultWidth:"full"}),dateTime:qu({formats:tP,defaultWidth:"full"})};var rP={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},y0=o((t,e,r,n)=>rP[t],"formatRelative");function ys(t){return(e,r)=>{let n=r?.context?String(r.context):"standalone",i;if(n==="formatting"&&t.formattingValues){let a=t.defaultFormattingWidth||t.defaultWidth,l=r?.width?String(r.width):a;i=t.formattingValues[l]||t.formattingValues[a]}else{let a=t.defaultWidth,l=r?.width?String(r.width):t.defaultWidth;i=t.values[l]||t.values[a]}let s=t.argumentCallback?t.argumentCallback(e):e;return i[s]}}o(ys,"buildLocalizeFn");var nP={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},iP={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},oP={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"]},sP={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"]},aP={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"}},lP={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"}},cP=o((t,e)=>{let r=Number(t),n=r%100;if(n>20||n<10)switch(n%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},"ordinalNumber"),x0={ordinalNumber:cP,era:ys({values:nP,defaultWidth:"wide"}),quarter:ys({values:iP,defaultWidth:"wide",argumentCallback:o(t=>t-1,"argumentCallback")}),month:ys({values:oP,defaultWidth:"wide"}),day:ys({values:sP,defaultWidth:"wide"}),dayPeriod:ys({values:aP,defaultWidth:"wide",formattingValues:lP,defaultFormattingWidth:"wide"})};function xs(t){return(e,r={})=>{let n=r.width,i=n&&t.matchPatterns[n]||t.matchPatterns[t.defaultMatchWidth],s=e.match(i);if(!s)return null;let a=s[0],l=n&&t.parsePatterns[n]||t.parsePatterns[t.defaultParseWidth],c=Array.isArray(l)?fP(l,p=>p.test(a)):uP(l,p=>p.test(a)),u;u=t.valueCallback?t.valueCallback(c):c,u=r.valueCallback?r.valueCallback(u):u;let f=e.slice(a.length);return{value:u,rest:f}}}o(xs,"buildMatchFn");function uP(t,e){for(let r in t)if(Object.prototype.hasOwnProperty.call(t,r)&&e(t[r]))return r}o(uP,"findKey");function fP(t,e){for(let r=0;r<t.length;r++)if(e(t[r]))return r}o(fP,"findIndex");function b0(t){return(e,r={})=>{let n=e.match(t.matchPattern);if(!n)return null;let i=n[0],s=e.match(t.parsePattern);if(!s)return null;let a=t.valueCallback?t.valueCallback(s[0]):s[0];a=r.valueCallback?r.valueCallback(a):a;let l=e.slice(i.length);return{value:a,rest:l}}}o(b0,"buildMatchPatternFn");var pP=/^(\d+)(th|st|nd|rd)?/i,hP=/\d+/i,mP={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},dP={any:[/^b/i,/^(a|c)/i]},gP={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},yP={any:[/1/i,/2/i,/3/i,/4/i]},xP={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},bP={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]},wP={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},SP={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]},vP={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},kP={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}},w0={ordinalNumber:b0({matchPattern:pP,parsePattern:hP,valueCallback:o(t=>parseInt(t,10),"valueCallback")}),era:xs({matchPatterns:mP,defaultMatchWidth:"wide",parsePatterns:dP,defaultParseWidth:"any"}),quarter:xs({matchPatterns:gP,defaultMatchWidth:"wide",parsePatterns:yP,defaultParseWidth:"any",valueCallback:o(t=>t+1,"valueCallback")}),month:xs({matchPatterns:xP,defaultMatchWidth:"wide",parsePatterns:bP,defaultParseWidth:"any"}),day:xs({matchPatterns:wP,defaultMatchWidth:"wide",parsePatterns:SP,defaultParseWidth:"any"}),dayPeriod:xs({matchPatterns:vP,defaultMatchWidth:"any",parsePatterns:kP,defaultParseWidth:"any"})};var Bt={code:"en-US",formatDistance:d0,formatLong:g0,formatRelative:y0,localize:x0,match:w0,options:{weekStartsOn:0,firstWeekContainsDate:1}},die=Bt;function Yu(t,e){let r=b(t,e?.in);return ot(r,gs(r))+1}o(Yu,"getDayOfYear");var vie=Yu;function bs(t,e){let r=b(t,e?.in),n=+Ge(r)-+Xt(r);return Math.round(n/Zr)+1}o(bs,"getISOWeek");var Iie=bs;function ti(t,e){let r=b(t,e?.in),n=r.getFullYear(),i=Oe(),s=e?.firstWeekContainsDate??e?.locale?.options?.firstWeekContainsDate??i.firstWeekContainsDate??i.locale?.options?.firstWeekContainsDate??1,a=$(e?.in||t,0);a.setFullYear(n+1,0,s),a.setHours(0,0,0,0);let l=Le(a,e),c=$(e?.in||t,0);c.setFullYear(n,0,s),c.setHours(0,0,0,0);let u=Le(c,e);return+r>=+l?n+1:+r>=+u?n:n-1}o(ti,"getWeekYear");var Fie=ti;function Qi(t,e){let r=Oe(),n=e?.firstWeekContainsDate??e?.locale?.options?.firstWeekContainsDate??r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,i=ti(t,e),s=$(e?.in||t,0);return s.setFullYear(i,0,n),s.setHours(0,0,0,0),Le(s,e)}o(Qi,"startOfWeekYear");var Hie=Qi;function ws(t,e){let r=b(t,e?.in),n=+Le(r,e)-+Qi(r,e);return Math.round(n/Zr)+1}o(ws,"getWeek");var Qie=ws;function X(t,e){let r=t<0?"-":"",n=Math.abs(t).toString().padStart(e,"0");return r+n}o(X,"addLeadingZeros");var Zt={y(t,e){let r=t.getFullYear(),n=r>0?r:1-r;return X(e==="yy"?n%100:n,e.length)},M(t,e){let r=t.getMonth();return e==="M"?String(r+1):X(r+1,2)},d(t,e){return X(t.getDate(),e.length)},a(t,e){let r=t.getHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];default:return r==="am"?"a.m.":"p.m."}},h(t,e){return X(t.getHours()%12||12,e.length)},H(t,e){return X(t.getHours(),e.length)},m(t,e){return X(t.getMinutes(),e.length)},s(t,e){return X(t.getSeconds(),e.length)},S(t,e){let r=e.length,n=t.getMilliseconds(),i=Math.trunc(n*Math.pow(10,r-3));return X(i,e.length)}};var Ss={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Va={G:o(function(t,e,r){let n=t.getFullYear()>0?1:0;switch(e){case"G":case"GG":case"GGG":return r.era(n,{width:"abbreviated"});case"GGGGG":return r.era(n,{width:"narrow"});default:return r.era(n,{width:"wide"})}},"G"),y:o(function(t,e,r){if(e==="yo"){let n=t.getFullYear(),i=n>0?n:1-n;return r.ordinalNumber(i,{unit:"year"})}return Zt.y(t,e)},"y"),Y:o(function(t,e,r,n){let i=ti(t,n),s=i>0?i:1-i;if(e==="YY"){let a=s%100;return X(a,2)}return e==="Yo"?r.ordinalNumber(s,{unit:"year"}):X(s,e.length)},"Y"),R:o(function(t,e){let r=Mt(t);return X(r,e.length)},"R"),u:o(function(t,e){let r=t.getFullYear();return X(r,e.length)},"u"),Q:o(function(t,e,r){let n=Math.ceil((t.getMonth()+1)/3);switch(e){case"Q":return String(n);case"QQ":return X(n,2);case"Qo":return r.ordinalNumber(n,{unit:"quarter"});case"QQQ":return r.quarter(n,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(n,{width:"narrow",context:"formatting"});default:return r.quarter(n,{width:"wide",context:"formatting"})}},"Q"),q:o(function(t,e,r){let n=Math.ceil((t.getMonth()+1)/3);switch(e){case"q":return String(n);case"qq":return X(n,2);case"qo":return r.ordinalNumber(n,{unit:"quarter"});case"qqq":return r.quarter(n,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(n,{width:"narrow",context:"standalone"});default:return r.quarter(n,{width:"wide",context:"standalone"})}},"q"),M:o(function(t,e,r){let n=t.getMonth();switch(e){case"M":case"MM":return Zt.M(t,e);case"Mo":return r.ordinalNumber(n+1,{unit:"month"});case"MMM":return r.month(n,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(n,{width:"narrow",context:"formatting"});default:return r.month(n,{width:"wide",context:"formatting"})}},"M"),L:o(function(t,e,r){let n=t.getMonth();switch(e){case"L":return String(n+1);case"LL":return X(n+1,2);case"Lo":return r.ordinalNumber(n+1,{unit:"month"});case"LLL":return r.month(n,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(n,{width:"narrow",context:"standalone"});default:return r.month(n,{width:"wide",context:"standalone"})}},"L"),w:o(function(t,e,r,n){let i=ws(t,n);return e==="wo"?r.ordinalNumber(i,{unit:"week"}):X(i,e.length)},"w"),I:o(function(t,e,r){let n=bs(t);return e==="Io"?r.ordinalNumber(n,{unit:"week"}):X(n,e.length)},"I"),d:o(function(t,e,r){return e==="do"?r.ordinalNumber(t.getDate(),{unit:"date"}):Zt.d(t,e)},"d"),D:o(function(t,e,r){let n=Yu(t);return e==="Do"?r.ordinalNumber(n,{unit:"dayOfYear"}):X(n,e.length)},"D"),E:o(function(t,e,r){let n=t.getDay();switch(e){case"E":case"EE":case"EEE":return r.day(n,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(n,{width:"short",context:"formatting"});default:return r.day(n,{width:"wide",context:"formatting"})}},"E"),e:o(function(t,e,r,n){let i=t.getDay(),s=(i-n.weekStartsOn+8)%7||7;switch(e){case"e":return String(s);case"ee":return X(s,2);case"eo":return r.ordinalNumber(s,{unit:"day"});case"eee":return r.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(i,{width:"short",context:"formatting"});default:return r.day(i,{width:"wide",context:"formatting"})}},"e"),c:o(function(t,e,r,n){let i=t.getDay(),s=(i-n.weekStartsOn+8)%7||7;switch(e){case"c":return String(s);case"cc":return X(s,e.length);case"co":return r.ordinalNumber(s,{unit:"day"});case"ccc":return r.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(i,{width:"narrow",context:"standalone"});case"cccccc":return r.day(i,{width:"short",context:"standalone"});default:return r.day(i,{width:"wide",context:"standalone"})}},"c"),i:o(function(t,e,r){let n=t.getDay(),i=n===0?7:n;switch(e){case"i":return String(i);case"ii":return X(i,e.length);case"io":return r.ordinalNumber(i,{unit:"day"});case"iii":return r.day(n,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(n,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(n,{width:"short",context:"formatting"});default:return r.day(n,{width:"wide",context:"formatting"})}},"i"),a:o(function(t,e,r){let i=t.getHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(i,{width:"narrow",context:"formatting"});default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},"a"),b:o(function(t,e,r){let n=t.getHours(),i;switch(n===12?i=Ss.noon:n===0?i=Ss.midnight:i=n/12>=1?"pm":"am",e){case"b":case"bb":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(i,{width:"narrow",context:"formatting"});default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},"b"),B:o(function(t,e,r){let n=t.getHours(),i;switch(n>=17?i=Ss.evening:n>=12?i=Ss.afternoon:n>=4?i=Ss.morning:i=Ss.night,e){case"B":case"BB":case"BBB":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(i,{width:"narrow",context:"formatting"});default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},"B"),h:o(function(t,e,r){if(e==="ho"){let n=t.getHours()%12;return n===0&&(n=12),r.ordinalNumber(n,{unit:"hour"})}return Zt.h(t,e)},"h"),H:o(function(t,e,r){return e==="Ho"?r.ordinalNumber(t.getHours(),{unit:"hour"}):Zt.H(t,e)},"H"),K:o(function(t,e,r){let n=t.getHours()%12;return e==="Ko"?r.ordinalNumber(n,{unit:"hour"}):X(n,e.length)},"K"),k:o(function(t,e,r){let n=t.getHours();return n===0&&(n=24),e==="ko"?r.ordinalNumber(n,{unit:"hour"}):X(n,e.length)},"k"),m:o(function(t,e,r){return e==="mo"?r.ordinalNumber(t.getMinutes(),{unit:"minute"}):Zt.m(t,e)},"m"),s:o(function(t,e,r){return e==="so"?r.ordinalNumber(t.getSeconds(),{unit:"second"}):Zt.s(t,e)},"s"),S:o(function(t,e){return Zt.S(t,e)},"S"),X:o(function(t,e,r){let n=t.getTimezoneOffset();if(n===0)return"Z";switch(e){case"X":return v0(n);case"XXXX":case"XX":return Ji(n);default:return Ji(n,":")}},"X"),x:o(function(t,e,r){let n=t.getTimezoneOffset();switch(e){case"x":return v0(n);case"xxxx":case"xx":return Ji(n);default:return Ji(n,":")}},"x"),O:o(function(t,e,r){let n=t.getTimezoneOffset();switch(e){case"O":case"OO":case"OOO":return"GMT"+S0(n,":");default:return"GMT"+Ji(n,":")}},"O"),z:o(function(t,e,r){let n=t.getTimezoneOffset();switch(e){case"z":case"zz":case"zzz":return"GMT"+S0(n,":");default:return"GMT"+Ji(n,":")}},"z"),t:o(function(t,e,r){let n=Math.trunc(+t/1e3);return X(n,e.length)},"t"),T:o(function(t,e,r){return X(+t,e.length)},"T")};function S0(t,e=""){let r=t>0?"-":"+",n=Math.abs(t),i=Math.trunc(n/60),s=n%60;return s===0?r+String(i):r+String(i)+e+X(s,2)}o(S0,"formatTimezoneShort");function v0(t,e){return t%60===0?(t>0?"-":"+")+X(Math.abs(t)/60,2):Ji(t,e)}o(v0,"formatTimezoneWithOptionalMinutes");function Ji(t,e=""){let r=t>0?"-":"+",n=Math.abs(t),i=X(Math.trunc(n/60),2),s=X(n%60,2);return r+i+e+s}o(Ji,"formatTimezone");var k0=o((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"})}},"dateLongFormatter"),T0=o((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"})}},"timeLongFormatter"),TP=o((t,e)=>{let r=t.match(/(P+)(p+)?/)||[],n=r[1],i=r[2];if(!i)return k0(t,e);let s;switch(n){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}}",k0(n,e)).replace("{{time}}",T0(i,e))},"dateTimeLongFormatter"),ri={p:T0,P:TP};var EP=/^D+$/,DP=/^Y+$/,CP=["D","DD","YY","YYYY"];function Vu(t){return EP.test(t)}o(Vu,"isProtectedDayOfYearToken");function Ku(t){return DP.test(t)}o(Ku,"isProtectedWeekYearToken");function Ka(t,e,r){let n=OP(t,e,r);if(console.warn(n),CP.includes(t))throw new RangeError(n)}o(Ka,"warnOrThrowProtectedError");function OP(t,e,r){let n=t[0]==="Y"?"years":"days of the month";return`Use \`${t.toLowerCase()}\` instead of \`${t}\` (in \`${e}\`) for formatting ${n} to the input \`${r}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}o(OP,"message");var IP=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,MP=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,NP=/^'([^]*?)'?$/,PP=/''/g,LP=/[a-zA-Z]/;function Ga(t,e,r){let n=Oe(),i=r?.locale??n.locale??Bt,s=r?.firstWeekContainsDate??r?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,a=r?.weekStartsOn??r?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,l=b(t,r?.in);if(!ft(l))throw new RangeError("Invalid time value");let c=e.match(MP).map(f=>{let p=f[0];if(p==="p"||p==="P"){let h=ri[p];return h(f,i.formatLong)}return f}).join("").match(IP).map(f=>{if(f==="''")return{isToken:!1,value:"'"};let p=f[0];if(p==="'")return{isToken:!1,value:_P(f)};if(Va[p])return{isToken:!0,value:f};if(p.match(LP))throw new RangeError("Format string contains an unescaped latin alphabet character `"+p+"`");return{isToken:!1,value:f}});i.localize.preprocessor&&(c=i.localize.preprocessor(l,c));let u={firstWeekContainsDate:s,weekStartsOn:a,locale:i};return c.map(f=>{if(!f.isToken)return f.value;let p=f.value;(!r?.useAdditionalWeekYearTokens&&Ku(p)||!r?.useAdditionalDayOfYearTokens&&Vu(p))&&Ka(p,e,String(t));let h=Va[p[0]];return h(l,p,i.localize,u)}).join("")}o(Ga,"format");function _P(t){let e=t.match(NP);return e?e[1].replace(PP,"'"):t}o(_P,"cleanEscapedString");var koe=Ga;function Gu(t,e,r){let n=Oe(),i=r?.locale??n.locale??Bt,s=2520,a=yt(t,e);if(isNaN(a))throw new RangeError("Invalid time value");let l=Object.assign({},r,{addSuffix:r?.addSuffix,comparison:a}),[c,u]=te(r?.in,...a>0?[e,t]:[t,e]),f=on(u,c),p=(Ue(u)-Ue(c))/1e3,h=Math.round((f-p)/60),m;if(h<2)return r?.includeSeconds?f<5?i.formatDistance("lessThanXSeconds",5,l):f<10?i.formatDistance("lessThanXSeconds",10,l):f<20?i.formatDistance("lessThanXSeconds",20,l):f<40?i.formatDistance("halfAMinute",0,l):f<60?i.formatDistance("lessThanXMinutes",1,l):i.formatDistance("xMinutes",1,l):h===0?i.formatDistance("lessThanXMinutes",1,l):i.formatDistance("xMinutes",h,l);if(h<45)return i.formatDistance("xMinutes",h,l);if(h<90)return i.formatDistance("aboutXHours",1,l);if(h<ss){let d=Math.round(h/60);return i.formatDistance("aboutXHours",d,l)}else{if(h<s)return i.formatDistance("xDays",1,l);if(h<Kn){let d=Math.round(h/ss);return i.formatDistance("xDays",d,l)}else if(h<Kn*2)return m=Math.round(h/Kn),i.formatDistance("aboutXMonths",m,l)}if(m=Zn(u,c),m<12){let d=Math.round(h/Kn);return i.formatDistance("xMonths",d,l)}else{let d=m%12,g=Math.trunc(m/12);return d<3?i.formatDistance("aboutXYears",g,l):d<9?i.formatDistance("overXYears",g,l):i.formatDistance("almostXYears",g+1,l)}}o(Gu,"formatDistance");var _oe=Gu;function Qu(t,e,r){let n=Oe(),i=r?.locale??n.locale??Bt,s=yt(t,e);if(isNaN(s))throw new RangeError("Invalid time value");let a=Object.assign({},r,{addSuffix:r?.addSuffix,comparison:s}),[l,c]=te(r?.in,...s>0?[e,t]:[t,e]),u=xt(r?.roundingMethod??"round"),f=c.getTime()-l.getTime(),p=f/gt,h=Ue(c)-Ue(l),m=(f-h)/gt,d=r?.unit,g;if(d?g=d:p<1?g="second":p<60?g="minute":p<ss?g="hour":m<Kn?g="day":m<hd?g="month":g="year",g==="second"){let y=u(f/1e3);return i.formatDistance("xSeconds",y,a)}else if(g==="minute"){let y=u(p);return i.formatDistance("xMinutes",y,a)}else if(g==="hour"){let y=u(p/60);return i.formatDistance("xHours",y,a)}else if(g==="day"){let y=u(m/ss);return i.formatDistance("xDays",y,a)}else if(g==="month"){let y=u(m/Kn);return y===12&&d!=="month"?i.formatDistance("xYears",1,a):i.formatDistance("xMonths",y,a)}else{let y=u(m/hd);return i.formatDistance("xYears",y,a)}}o(Qu,"formatDistanceStrict");var Woe=Qu;function E0(t,e){return Gu(t,de(t),e)}o(E0,"formatDistanceToNow");var Goe=E0;function D0(t,e){return Qu(t,de(t),e)}o(D0,"formatDistanceToNowStrict");var ese=D0;var RP=["years","months","weeks","days","hours","minutes","seconds"];function C0(t,e){let r=Oe(),n=e?.locale??r.locale??Bt,i=e?.format??RP,s=e?.zero??!1,a=e?.delimiter??" ";return n.formatDistance?i.reduce((c,u)=>{let f=`x${u.replace(/(^.)/,h=>h.toUpperCase())}`,p=t[u];return p!==void 0&&(s||t[u])?c.concat(n.formatDistance(f,p)):c},[]).join(a):""}o(C0,"formatDuration");var ose=C0;function O0(t,e){let r=b(t,e?.in);if(isNaN(+r))throw new RangeError("Invalid time value");let n=e?.format??"extended",i=e?.representation??"complete",s="",a="",l=n==="extended"?"-":"",c=n==="extended"?":":"";if(i!=="time"){let u=X(r.getDate(),2),f=X(r.getMonth()+1,2);s=`${X(r.getFullYear(),4)}${l}${f}${l}${u}`}if(i!=="date"){let u=r.getTimezoneOffset();if(u!==0){let g=Math.abs(u),y=X(Math.trunc(g/60),2),x=X(g%60,2);a=`${u<0?"+":"-"}${y}:${x}`}else a="Z";let f=X(r.getHours(),2),p=X(r.getMinutes(),2),h=X(r.getSeconds(),2),m=s===""?"":"T",d=[f,p,h].join(c);s=`${s}${m}${d}${a}`}return s}o(O0,"formatISO");var use=O0;function I0(t,e){let r=b(t,e?.in);if(!ft(r))throw new RangeError("Invalid time value");let n=e?.format??"extended",i=e?.representation??"complete",s="",a=n==="extended"?"-":"",l=n==="extended"?":":"";if(i!=="time"){let c=X(r.getDate(),2),u=X(r.getMonth()+1,2);s=`${X(r.getFullYear(),4)}${a}${u}${a}${c}`}if(i!=="date"){let c=X(r.getHours(),2),u=X(r.getMinutes(),2),f=X(r.getSeconds(),2);s=`${s}${s===""?"":" "}${c}${l}${u}${l}${f}`}return s}o(I0,"formatISO9075");var gse=I0;function M0(t){let{years:e=0,months:r=0,days:n=0,hours:i=0,minutes:s=0,seconds:a=0}=t;return`P${e}Y${r}M${n}DT${i}H${s}M${a}S`}o(M0,"formatISODuration");var bse=M0;function N0(t,e){let r=b(t,e?.in);if(!ft(r))throw new RangeError("Invalid time value");let n=e?.fractionDigits??0,i=X(r.getDate(),2),s=X(r.getMonth()+1,2),a=r.getFullYear(),l=X(r.getHours(),2),c=X(r.getMinutes(),2),u=X(r.getSeconds(),2),f="";if(n>0){let m=r.getMilliseconds(),d=Math.trunc(m*Math.pow(10,n-3));f="."+X(d,n)}let p="",h=r.getTimezoneOffset();if(h!==0){let m=Math.abs(h),d=X(Math.trunc(m/60),2),g=X(m%60,2);p=`${h<0?"+":"-"}${d}:${g}`}else p="Z";return`${a}-${s}-${i}T${l}:${c}:${u}${f}${p}`}o(N0,"formatRFC3339");var Ese=N0;var FP=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],AP=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function P0(t){let e=b(t);if(!ft(e))throw new RangeError("Invalid time value");let r=FP[e.getUTCDay()],n=X(e.getUTCDate(),2),i=AP[e.getUTCMonth()],s=e.getUTCFullYear(),a=X(e.getUTCHours(),2),l=X(e.getUTCMinutes(),2),c=X(e.getUTCSeconds(),2);return`${r}, ${n} ${i} ${s} ${a}:${l}:${c} GMT`}o(P0,"formatRFC7231");var Nse=P0;function L0(t,e,r){let[n,i]=te(r?.in,t,e),s=Oe(),a=r?.locale??s.locale??Bt,l=r?.weekStartsOn??r?.locale?.options?.weekStartsOn??s.weekStartsOn??s.locale?.options?.weekStartsOn??0,c=ot(n,i);if(isNaN(c))throw new RangeError("Invalid time value");let u;c<-6?u="other":c<-1?u="lastWeek":c<0?u="yesterday":c<1?u="today":c<2?u="tomorrow":c<7?u="nextWeek":u="other";let f=a.formatRelative(u,n,i,{locale:a,weekStartsOn:l});return Ga(n,f,{locale:a,weekStartsOn:l})}o(L0,"formatRelative");var Bse=L0;function _0(t,e){return b(t*1e3,e?.in)}o(_0,"fromUnixTime");var Hse=_0;function Ju(t,e){return b(t,e?.in).getDate()}o(Ju,"getDate");var Vse=Ju;function ni(t,e){return b(t,e?.in).getDay()}o(ni,"getDay");var Jse=ni;function Xu(t,e){let r=b(t,e?.in),n=r.getFullYear(),i=r.getMonth(),s=$(r,0);return s.setFullYear(n,i+1,0),s.setHours(0,0,0,0),s.getDate()}o(Xu,"getDaysInMonth");var rae=Xu;function Zu(t,e){let n=b(t,e?.in).getFullYear();return n%400===0||n%4===0&&n%100!==0}o(Zu,"isLeapYear");var sae=Zu;function R0(t,e){let r=b(t,e?.in);return Number.isNaN(+r)?NaN:Zu(r)?366:365}o(R0,"getDaysInYear");var fae=R0;function F0(t,e){let n=b(t,e?.in).getFullYear();return Math.floor(n/10)*10}o(F0,"getDecade");var dae=F0;function ef(){return Object.assign({},Oe())}o(ef,"getDefaultOptions");var bae=ef;function A0(t,e){return b(t,e?.in).getHours()}o(A0,"getHours");var kae=A0;function tf(t,e){let r=b(t,e?.in).getDay();return r===0?7:r}o(tf,"getISODay");var Cae=tf;function $0(t,e){let r=Xt(t,e),i=+Xt(Jn(r,60))-+r;return Math.round(i/Zr)}o($0,"getISOWeeksInYear");var Lae=$0;function B0(t){return b(t).getMilliseconds()}o(B0,"getMilliseconds");var Aae=B0;function j0(t,e){return b(t,e?.in).getMinutes()}o(j0,"getMinutes");var Uae=j0;function U0(t,e){return b(t,e?.in).getMonth()}o(U0,"getMonth");var qae=U0;function z0(t,e){let[r,n]=[+b(t.start),+b(t.end)].sort((p,h)=>p-h),[i,s]=[+b(e.start),+b(e.end)].sort((p,h)=>p-h);if(!(r<s&&i<n))return 0;let l=i<r?r:i,c=l-Ue(l),u=s>n?n:s,f=u-Ue(u);return Math.ceil((f-c)/Su)}o(z0,"getOverlappingDaysInIntervals");var Jae=z0;function H0(t){return b(t).getSeconds()}o(H0,"getSeconds");var tle=H0;function W0(t){return+b(t)}o(W0,"getTime");var ole=W0;function q0(t){return Math.trunc(+b(t)/1e3)}o(q0,"getUnixTime");var cle=q0;function Y0(t,e){let r=Oe(),n=e?.weekStartsOn??e?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,i=Ju(b(t,e?.in));if(isNaN(i))return NaN;let s=ni(ei(t,e)),a=n-s;a<=0&&(a+=7);let l=i-a;return Math.ceil(l/7)+1}o(Y0,"getWeekOfMonth");var yle=Y0;function rf(t,e){let r=b(t,e?.in),n=r.getMonth();return r.setFullYear(r.getFullYear(),n+1,0),r.setHours(0,0,0,0),b(r,e?.in)}o(rf,"lastDayOfMonth");var Sle=rf;function V0(t,e){let r=b(t,e?.in);return Vi(rf(r,e),ei(r,e),e)+1}o(V0,"getWeeksInMonth");var Ole=V0;function K0(t,e){return b(t,e?.in).getFullYear()}o(K0,"getYear");var Ple=K0;function G0(t){return Math.trunc(t*Jt)}o(G0,"hoursToMilliseconds");var Fle=G0;function Q0(t){return Math.trunc(t*vu)}o(Q0,"hoursToMinutes");var jle=Q0;function J0(t){return Math.trunc(t*qi)}o(J0,"hoursToSeconds");var Wle=J0;function X0(t,e,r){let[n,i]=te(r?.in,t,e);if(isNaN(+n))throw new TypeError("Start date is invalid");if(isNaN(+i))throw new TypeError("End date is invalid");if(r?.assertPositive&&+n>+i)throw new TypeError("End date must be after start date");return{start:n,end:i}}o(X0,"interval");var Kle=X0;function Z0(t,e){let{start:r,end:n}=st(e?.in,t),i={},s=Uu(n,r);s&&(i.years=s);let a=Gn(r,{years:i.years}),l=Zn(n,a);l&&(i.months=l);let c=Gn(a,{months:i.months}),u=fs(n,c);u&&(i.days=u);let f=Gn(c,{days:i.days}),p=Ki(n,f);p&&(i.hours=p);let h=Gn(f,{hours:i.hours}),m=Gi(n,h);m&&(i.minutes=m);let d=Gn(h,{minutes:i.minutes}),g=on(n,d);return g&&(i.seconds=g),i}o(Z0,"intervalToDuration");var oce=Z0;function eS(t,e,r){let n;return $P(e)?n=e:r=e,new Intl.DateTimeFormat(r?.locale,n).format(b(t))}o(eS,"intlFormat");function $P(t){return t!==void 0&&!("locale"in t)}o($P,"isFormatOptions");var cce=eS;function tS(t,e,r){let n=0,i,[s,a]=te(r?.in,t,e);if(r?.unit)i=r?.unit,i==="second"?n=on(s,a):i==="minute"?n=Gi(s,a):i==="hour"?n=Ki(s,a):i==="day"?n=ot(s,a):i==="week"?n=Vi(s,a):i==="month"?n=Yi(s,a):i==="quarter"?n=us(s,a):i==="year"&&(n=Xn(s,a));else{let c=on(s,a);Math.abs(c)<as?(n=on(s,a),i="second"):Math.abs(c)<qi?(n=Gi(s,a),i="minute"):Math.abs(c)<bu&&Math.abs(ot(s,a))<1?(n=Ki(s,a),i="hour"):Math.abs(c)<Fw&&(n=ot(s,a))&&Math.abs(n)<7?i="day":Math.abs(c)<dd?(n=Vi(s,a),i="week"):Math.abs(c)<Aw?(n=Yi(s,a),i="month"):Math.abs(c)<md?us(s,a)<4?(n=us(s,a),i="quarter"):(n=Xn(s,a),i="year"):(n=Xn(s,a),i="year")}return new Intl.RelativeTimeFormat(r?.locale,{numeric:"auto",...r}).format(n,i)}o(tS,"intlFormatDistance");var vce=tS;function rS(t,e){return+b(t)>+b(e)}o(rS,"isAfter");var Dce=rS;function nS(t,e){return+b(t)<+b(e)}o(nS,"isBefore");var Mce=nS;function iS(t,e){return+b(t)==+b(e)}o(iS,"isEqual");var _ce=iS;function oS(t,e,r){let n=new Date(t,e,r);return n.getFullYear()===t&&n.getMonth()===e&&n.getDate()===r}o(oS,"isExists");var Ace=oS;function sS(t,e){return b(t,e?.in).getDate()===1}o(sS,"isFirstDayOfMonth");var Uce=sS;function aS(t,e){return b(t,e?.in).getDay()===5}o(aS,"isFriday");var qce=aS;function lS(t){return+b(t)>Date.now()}o(lS,"isFuture");var Gce=lS;function nf(t,e){let r=BP(e)?new e(0):$(e,0);return r.setFullYear(t.getFullYear(),t.getMonth(),t.getDate()),r.setHours(t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()),r}o(nf,"transpose");function BP(t){return typeof t=="function"&&t.prototype?.constructor===t}o(BP,"isConstructor");var Zce=nf;var jP=10,of=class{static{o(this,"Setter")}subPriority=0;validate(e,r){return!0}},sf=class extends of{static{o(this,"ValueSetter")}constructor(e,r,n,i,s){super(),this.value=e,this.validateValue=r,this.setValue=n,this.priority=i,s&&(this.subPriority=s)}validate(e,r){return this.validateValue(e,this.value,r)}set(e,r,n){return this.setValue(e,r,this.value,n)}},af=class extends of{static{o(this,"DateTimezoneSetter")}priority=jP;subPriority=-1;constructor(e,r){super(),this.context=e||(n=>$(r,n))}set(e,r){return r.timestampIsSet?e:$(e,nf(e,this.context))}};var J=class{static{o(this,"Parser")}run(e,r,n,i){let s=this.parse(e,r,n,i);return s?{setter:new sf(s.value,this.validate,this.set,this.priority,this.subPriority),rest:s.rest}:null}validate(e,r,n){return!0}};var lf=class extends J{static{o(this,"EraParser")}priority=140;parse(e,r,n){switch(r){case"G":case"GG":case"GGG":return n.era(e,{width:"abbreviated"})||n.era(e,{width:"narrow"});case"GGGGG":return n.era(e,{width:"narrow"});default:return n.era(e,{width:"wide"})||n.era(e,{width:"abbreviated"})||n.era(e,{width:"narrow"})}}set(e,r,n){return r.era=n,e.setFullYear(n,0,1),e.setHours(0,0,0,0),e}incompatibleTokens=["R","u","t","T"]};var Se={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}/},ur={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 Me(t,e){return t&&{value:e(t.value),rest:t.rest}}o(Me,"mapValue");function be(t,e){let r=e.match(t);return r?{value:parseInt(r[0],10),rest:e.slice(r[0].length)}:null}o(be,"parseNumericPattern");function fr(t,e){let r=e.match(t);if(!r)return null;if(r[0]==="Z")return{value:0,rest:e.slice(1)};let n=r[1]==="+"?1:-1,i=r[2]?parseInt(r[2],10):0,s=r[3]?parseInt(r[3],10):0,a=r[5]?parseInt(r[5],10):0;return{value:n*(i*Jt+s*gt+a*os),rest:e.slice(r[0].length)}}o(fr,"parseTimezonePattern");function cf(t){return be(Se.anyDigitsSigned,t)}o(cf,"parseAnyDigitsSigned");function he(t,e){switch(t){case 1:return be(Se.singleDigit,e);case 2:return be(Se.twoDigits,e);case 3:return be(Se.threeDigits,e);case 4:return be(Se.fourDigits,e);default:return be(new RegExp("^\\d{1,"+t+"}"),e)}}o(he,"parseNDigits");function vs(t,e){switch(t){case 1:return be(Se.singleDigitSigned,e);case 2:return be(Se.twoDigitsSigned,e);case 3:return be(Se.threeDigitsSigned,e);case 4:return be(Se.fourDigitsSigned,e);default:return be(new RegExp("^-?\\d{1,"+t+"}"),e)}}o(vs,"parseNDigitsSigned");function ks(t){switch(t){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;default:return 0}}o(ks,"dayPeriodEnumToHours");function uf(t,e){let r=e>0,n=r?e:1-e,i;if(n<=50)i=t||100;else{let s=n+50,a=Math.trunc(s/100)*100,l=t>=s%100;i=t+a-(l?100:0)}return r?i:1-i}o(uf,"normalizeTwoDigitYear");function ff(t){return t%400===0||t%4===0&&t%100!==0}o(ff,"isLeapYearIndex");var pf=class extends J{static{o(this,"YearParser")}priority=130;incompatibleTokens=["Y","R","u","w","I","i","e","c","t","T"];parse(e,r,n){let i=o(s=>({year:s,isTwoDigitYear:r==="yy"}),"valueCallback");switch(r){case"y":return Me(he(4,e),i);case"yo":return Me(n.ordinalNumber(e,{unit:"year"}),i);default:return Me(he(r.length,e),i)}}validate(e,r){return r.isTwoDigitYear||r.year>0}set(e,r,n){let i=e.getFullYear();if(n.isTwoDigitYear){let a=uf(n.year,i);return e.setFullYear(a,0,1),e.setHours(0,0,0,0),e}let s=!("era"in r)||r.era===1?n.year:1-n.year;return e.setFullYear(s,0,1),e.setHours(0,0,0,0),e}};var hf=class extends J{static{o(this,"LocalWeekYearParser")}priority=130;parse(e,r,n){let i=o(s=>({year:s,isTwoDigitYear:r==="YY"}),"valueCallback");switch(r){case"Y":return Me(he(4,e),i);case"Yo":return Me(n.ordinalNumber(e,{unit:"year"}),i);default:return Me(he(r.length,e),i)}}validate(e,r){return r.isTwoDigitYear||r.year>0}set(e,r,n,i){let s=ti(e,i);if(n.isTwoDigitYear){let l=uf(n.year,s);return e.setFullYear(l,0,i.firstWeekContainsDate),e.setHours(0,0,0,0),Le(e,i)}let a=!("era"in r)||r.era===1?n.year:1-n.year;return e.setFullYear(a,0,i.firstWeekContainsDate),e.setHours(0,0,0,0),Le(e,i)}incompatibleTokens=["y","R","u","Q","q","M","L","I","d","D","i","t","T"]};var mf=class extends J{static{o(this,"ISOWeekYearParser")}priority=130;parse(e,r){return r==="R"?vs(4,e):vs(r.length,e)}set(e,r,n){let i=$(e,0);return i.setFullYear(n,0,4),i.setHours(0,0,0,0),Ge(i)}incompatibleTokens=["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]};var df=class extends J{static{o(this,"ExtendedYearParser")}priority=130;parse(e,r){return r==="u"?vs(4,e):vs(r.length,e)}set(e,r,n){return e.setFullYear(n,0,1),e.setHours(0,0,0,0),e}incompatibleTokens=["G","y","Y","R","w","I","i","e","c","t","T"]};var gf=class extends J{static{o(this,"QuarterParser")}priority=120;parse(e,r,n){switch(r){case"Q":case"QQ":return he(r.length,e);case"Qo":return n.ordinalNumber(e,{unit:"quarter"});case"QQQ":return n.quarter(e,{width:"abbreviated",context:"formatting"})||n.quarter(e,{width:"narrow",context:"formatting"});case"QQQQQ":return n.quarter(e,{width:"narrow",context:"formatting"});default:return n.quarter(e,{width:"wide",context:"formatting"})||n.quarter(e,{width:"abbreviated",context:"formatting"})||n.quarter(e,{width:"narrow",context:"formatting"})}}validate(e,r){return r>=1&&r<=4}set(e,r,n){return e.setMonth((n-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 yf=class extends J{static{o(this,"StandAloneQuarterParser")}priority=120;parse(e,r,n){switch(r){case"q":case"qq":return he(r.length,e);case"qo":return n.ordinalNumber(e,{unit:"quarter"});case"qqq":return n.quarter(e,{width:"abbreviated",context:"standalone"})||n.quarter(e,{width:"narrow",context:"standalone"});case"qqqqq":return n.quarter(e,{width:"narrow",context:"standalone"});default:return n.quarter(e,{width:"wide",context:"standalone"})||n.quarter(e,{width:"abbreviated",context:"standalone"})||n.quarter(e,{width:"narrow",context:"standalone"})}}validate(e,r){return r>=1&&r<=4}set(e,r,n){return e.setMonth((n-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 xf=class extends J{static{o(this,"MonthParser")}incompatibleTokens=["Y","R","q","Q","L","w","I","D","i","e","c","t","T"];priority=110;parse(e,r,n){let i=o(s=>s-1,"valueCallback");switch(r){case"M":return Me(be(Se.month,e),i);case"MM":return Me(he(2,e),i);case"Mo":return Me(n.ordinalNumber(e,{unit:"month"}),i);case"MMM":return n.month(e,{width:"abbreviated",context:"formatting"})||n.month(e,{width:"narrow",context:"formatting"});case"MMMMM":return n.month(e,{width:"narrow",context:"formatting"});default:return n.month(e,{width:"wide",context:"formatting"})||n.month(e,{width:"abbreviated",context:"formatting"})||n.month(e,{width:"narrow",context:"formatting"})}}validate(e,r){return r>=0&&r<=11}set(e,r,n){return e.setMonth(n,1),e.setHours(0,0,0,0),e}};var bf=class extends J{static{o(this,"StandAloneMonthParser")}priority=110;parse(e,r,n){let i=o(s=>s-1,"valueCallback");switch(r){case"L":return Me(be(Se.month,e),i);case"LL":return Me(he(2,e),i);case"Lo":return Me(n.ordinalNumber(e,{unit:"month"}),i);case"LLL":return n.month(e,{width:"abbreviated",context:"standalone"})||n.month(e,{width:"narrow",context:"standalone"});case"LLLLL":return n.month(e,{width:"narrow",context:"standalone"});default:return n.month(e,{width:"wide",context:"standalone"})||n.month(e,{width:"abbreviated",context:"standalone"})||n.month(e,{width:"narrow",context:"standalone"})}}validate(e,r){return r>=0&&r<=11}set(e,r,n){return e.setMonth(n,1),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]};function wf(t,e,r){let n=b(t,r?.in),i=ws(n,r)-e;return n.setDate(n.getDate()-i*7),b(n,r?.in)}o(wf,"setWeek");var nfe=wf;var Sf=class extends J{static{o(this,"LocalWeekParser")}priority=100;parse(e,r,n){switch(r){case"w":return be(Se.week,e);case"wo":return n.ordinalNumber(e,{unit:"week"});default:return he(r.length,e)}}validate(e,r){return r>=1&&r<=53}set(e,r,n,i){return Le(wf(e,n,i),i)}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","i","t","T"]};function vf(t,e,r){let n=b(t,r?.in),i=bs(n,r)-e;return n.setDate(n.getDate()-i*7),n}o(vf,"setISOWeek");var dfe=vf;var kf=class extends J{static{o(this,"ISOWeekParser")}priority=100;parse(e,r,n){switch(r){case"I":return be(Se.week,e);case"Io":return n.ordinalNumber(e,{unit:"week"});default:return he(r.length,e)}}validate(e,r){return r>=1&&r<=53}set(e,r,n){return Ge(vf(e,n))}incompatibleTokens=["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]};var UP=[31,28,31,30,31,30,31,31,30,31,30,31],zP=[31,29,31,30,31,30,31,31,30,31,30,31],Tf=class extends J{static{o(this,"DateParser")}priority=90;subPriority=1;parse(e,r,n){switch(r){case"d":return be(Se.date,e);case"do":return n.ordinalNumber(e,{unit:"date"});default:return he(r.length,e)}}validate(e,r){let n=e.getFullYear(),i=ff(n),s=e.getMonth();return i?r>=1&&r<=zP[s]:r>=1&&r<=UP[s]}set(e,r,n){return e.setDate(n),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","q","Q","w","I","D","i","e","c","t","T"]};var Ef=class extends J{static{o(this,"DayOfYearParser")}priority=90;subpriority=1;parse(e,r,n){switch(r){case"D":case"DD":return be(Se.dayOfYear,e);case"Do":return n.ordinalNumber(e,{unit:"date"});default:return he(r.length,e)}}validate(e,r){let n=e.getFullYear();return ff(n)?r>=1&&r<=366:r>=1&&r<=365}set(e,r,n){return e.setMonth(0,n),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]};function ii(t,e,r){let n=Oe(),i=r?.weekStartsOn??r?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,s=b(t,r?.in),a=s.getDay(),c=(e%7+7)%7,u=7-i,f=e<0||e>6?e-(a+u)%7:(c+u)%7-(a+u)%7;return et(s,f,r)}o(ii,"setDay");var $fe=ii;var Df=class extends J{static{o(this,"DayParser")}priority=90;parse(e,r,n){switch(r){case"E":case"EE":case"EEE":return n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"EEEEE":return n.day(e,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});default:return n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"})}}validate(e,r){return r>=0&&r<=6}set(e,r,n,i){return e=ii(e,n,i),e.setHours(0,0,0,0),e}incompatibleTokens=["D","i","e","c","t","T"]};var Cf=class extends J{static{o(this,"LocalDayParser")}priority=90;parse(e,r,n,i){let s=o(a=>{let l=Math.floor((a-1)/7)*7;return(a+i.weekStartsOn+6)%7+l},"valueCallback");switch(r){case"e":case"ee":return Me(he(r.length,e),s);case"eo":return Me(n.ordinalNumber(e,{unit:"day"}),s);case"eee":return n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"eeeee":return n.day(e,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});default:return n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"})}}validate(e,r){return r>=0&&r<=6}set(e,r,n,i){return e=ii(e,n,i),e.setHours(0,0,0,0),e}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]};var Of=class extends J{static{o(this,"StandAloneLocalDayParser")}priority=90;parse(e,r,n,i){let s=o(a=>{let l=Math.floor((a-1)/7)*7;return(a+i.weekStartsOn+6)%7+l},"valueCallback");switch(r){case"c":case"cc":return Me(he(r.length,e),s);case"co":return Me(n.ordinalNumber(e,{unit:"day"}),s);case"ccc":return n.day(e,{width:"abbreviated",context:"standalone"})||n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"});case"ccccc":return n.day(e,{width:"narrow",context:"standalone"});case"cccccc":return n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"});default:return n.day(e,{width:"wide",context:"standalone"})||n.day(e,{width:"abbreviated",context:"standalone"})||n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"})}}validate(e,r){return r>=0&&r<=6}set(e,r,n,i){return e=ii(e,n,i),e.setHours(0,0,0,0),e}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]};function If(t,e,r){let n=b(t,r?.in),i=tf(n,r),s=e-i;return et(n,s,r)}o(If,"setISODay");var ipe=If;var Mf=class extends J{static{o(this,"ISODayParser")}priority=90;parse(e,r,n){let i=o(s=>s===0?7:s,"valueCallback");switch(r){case"i":case"ii":return he(r.length,e);case"io":return n.ordinalNumber(e,{unit:"day"});case"iii":return Me(n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"}),i);case"iiiii":return Me(n.day(e,{width:"narrow",context:"formatting"}),i);case"iiiiii":return Me(n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"}),i);default:return Me(n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"}),i)}}validate(e,r){return r>=1&&r<=7}set(e,r,n){return e=If(e,n),e.setHours(0,0,0,0),e}incompatibleTokens=["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]};var Nf=class extends J{static{o(this,"AMPMParser")}priority=80;parse(e,r,n){switch(r){case"a":case"aa":case"aaa":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"aaaaa":return n.dayPeriod(e,{width:"narrow",context:"formatting"});default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,r,n){return e.setHours(ks(n),0,0,0),e}incompatibleTokens=["b","B","H","k","t","T"]};var Pf=class extends J{static{o(this,"AMPMMidnightParser")}priority=80;parse(e,r,n){switch(r){case"b":case"bb":case"bbb":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"bbbbb":return n.dayPeriod(e,{width:"narrow",context:"formatting"});default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,r,n){return e.setHours(ks(n),0,0,0),e}incompatibleTokens=["a","B","H","k","t","T"]};var Lf=class extends J{static{o(this,"DayPeriodParser")}priority=80;parse(e,r,n){switch(r){case"B":case"BB":case"BBB":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"BBBBB":return n.dayPeriod(e,{width:"narrow",context:"formatting"});default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,r,n){return e.setHours(ks(n),0,0,0),e}incompatibleTokens=["a","b","t","T"]};var _f=class extends J{static{o(this,"Hour1to12Parser")}priority=70;parse(e,r,n){switch(r){case"h":return be(Se.hour12h,e);case"ho":return n.ordinalNumber(e,{unit:"hour"});default:return he(r.length,e)}}validate(e,r){return r>=1&&r<=12}set(e,r,n){let i=e.getHours()>=12;return i&&n<12?e.setHours(n+12,0,0,0):!i&&n===12?e.setHours(0,0,0,0):e.setHours(n,0,0,0),e}incompatibleTokens=["H","K","k","t","T"]};var Rf=class extends J{static{o(this,"Hour0to23Parser")}priority=70;parse(e,r,n){switch(r){case"H":return be(Se.hour23h,e);case"Ho":return n.ordinalNumber(e,{unit:"hour"});default:return he(r.length,e)}}validate(e,r){return r>=0&&r<=23}set(e,r,n){return e.setHours(n,0,0,0),e}incompatibleTokens=["a","b","h","K","k","t","T"]};var Ff=class extends J{static{o(this,"Hour0To11Parser")}priority=70;parse(e,r,n){switch(r){case"K":return be(Se.hour11h,e);case"Ko":return n.ordinalNumber(e,{unit:"hour"});default:return he(r.length,e)}}validate(e,r){return r>=0&&r<=11}set(e,r,n){return e.getHours()>=12&&n<12?e.setHours(n+12,0,0,0):e.setHours(n,0,0,0),e}incompatibleTokens=["h","H","k","t","T"]};var Af=class extends J{static{o(this,"Hour1To24Parser")}priority=70;parse(e,r,n){switch(r){case"k":return be(Se.hour24h,e);case"ko":return n.ordinalNumber(e,{unit:"hour"});default:return he(r.length,e)}}validate(e,r){return r>=1&&r<=24}set(e,r,n){let i=n<=24?n%24:n;return e.setHours(i,0,0,0),e}incompatibleTokens=["a","b","h","H","K","t","T"]};var $f=class extends J{static{o(this,"MinuteParser")}priority=60;parse(e,r,n){switch(r){case"m":return be(Se.minute,e);case"mo":return n.ordinalNumber(e,{unit:"minute"});default:return he(r.length,e)}}validate(e,r){return r>=0&&r<=59}set(e,r,n){return e.setMinutes(n,0,0),e}incompatibleTokens=["t","T"]};var Bf=class extends J{static{o(this,"SecondParser")}priority=50;parse(e,r,n){switch(r){case"s":return be(Se.second,e);case"so":return n.ordinalNumber(e,{unit:"second"});default:return he(r.length,e)}}validate(e,r){return r>=0&&r<=59}set(e,r,n){return e.setSeconds(n,0),e}incompatibleTokens=["t","T"]};var jf=class extends J{static{o(this,"FractionOfSecondParser")}priority=30;parse(e,r){let n=o(i=>Math.trunc(i*Math.pow(10,-r.length+3)),"valueCallback");return Me(he(r.length,e),n)}set(e,r,n){return e.setMilliseconds(n),e}incompatibleTokens=["t","T"]};var Uf=class extends J{static{o(this,"ISOTimezoneWithZParser")}priority=10;parse(e,r){switch(r){case"X":return fr(ur.basicOptionalMinutes,e);case"XX":return fr(ur.basic,e);case"XXXX":return fr(ur.basicOptionalSeconds,e);case"XXXXX":return fr(ur.extendedOptionalSeconds,e);default:return fr(ur.extended,e)}}set(e,r,n){return r.timestampIsSet?e:$(e,e.getTime()-Ue(e)-n)}incompatibleTokens=["t","T","x"]};var zf=class extends J{static{o(this,"ISOTimezoneParser")}priority=10;parse(e,r){switch(r){case"x":return fr(ur.basicOptionalMinutes,e);case"xx":return fr(ur.basic,e);case"xxxx":return fr(ur.basicOptionalSeconds,e);case"xxxxx":return fr(ur.extendedOptionalSeconds,e);default:return fr(ur.extended,e)}}set(e,r,n){return r.timestampIsSet?e:$(e,e.getTime()-Ue(e)-n)}incompatibleTokens=["t","T","X"]};var Hf=class extends J{static{o(this,"TimestampSecondsParser")}priority=40;parse(e){return cf(e)}set(e,r,n){return[$(e,n*1e3),{timestampIsSet:!0}]}incompatibleTokens="*"};var Wf=class extends J{static{o(this,"TimestampMillisecondsParser")}priority=20;parse(e){return cf(e)}set(e,r,n){return[$(e,n),{timestampIsSet:!0}]}incompatibleTokens="*"};var qf={G:new lf,y:new pf,Y:new hf,R:new mf,u:new df,Q:new gf,q:new yf,M:new xf,L:new bf,w:new Sf,I:new kf,d:new Tf,D:new Ef,E:new Df,e:new Cf,c:new Of,i:new Mf,a:new Nf,b:new Pf,B:new Lf,h:new _f,H:new Rf,K:new Ff,k:new Af,m:new $f,s:new Bf,S:new jf,X:new Uf,x:new zf,t:new Hf,T:new Wf};var HP=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,WP=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,qP=/^'([^]*?)'?$/,YP=/''/g,VP=/\S/,KP=/[a-zA-Z]/;function Yf(t,e,r,n){let i=o(()=>$(n?.in||r,NaN),"invalidDate"),s=ef(),a=n?.locale??s.locale??Bt,l=n?.firstWeekContainsDate??n?.locale?.options?.firstWeekContainsDate??s.firstWeekContainsDate??s.locale?.options?.firstWeekContainsDate??1,c=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??s.weekStartsOn??s.locale?.options?.weekStartsOn??0;if(!e)return t?i():b(r,n?.in);let u={firstWeekContainsDate:l,weekStartsOn:c,locale:a},f=[new af(n?.in,r)],p=e.match(WP).map(y=>{let x=y[0];if(x in ri){let T=ri[x];return T(y,a.formatLong)}return y}).join("").match(HP),h=[];for(let y of p){!n?.useAdditionalWeekYearTokens&&Ku(y)&&Ka(y,e,t),!n?.useAdditionalDayOfYearTokens&&Vu(y)&&Ka(y,e,t);let x=y[0],T=qf[x];if(T){let{incompatibleTokens:E}=T;if(Array.isArray(E)){let P=h.find(D=>E.includes(D.token)||D.token===x);if(P)throw new RangeError(`The format string mustn't contain \`${P.fullToken}\` and \`${y}\` at the same time`)}else if(T.incompatibleTokens==="*"&&h.length>0)throw new RangeError(`The format string mustn't contain \`${y}\` and any other token at the same time`);h.push({token:x,fullToken:y});let L=T.run(t,y,a.match,u);if(!L)return i();f.push(L.setter),t=L.rest}else{if(x.match(KP))throw new RangeError("Format string contains an unescaped latin alphabet character `"+x+"`");if(y==="''"?y="'":x==="'"&&(y=GP(y)),t.indexOf(y)===0)t=t.slice(y.length);else return i()}}if(t.length>0&&VP.test(t))return i();let m=f.map(y=>y.priority).sort((y,x)=>x-y).filter((y,x,T)=>T.indexOf(y)===x).map(y=>f.filter(x=>x.priority===y).sort((x,T)=>T.subPriority-x.subPriority)).map(y=>y[0]),d=b(r,n?.in);if(isNaN(+d))return i();let g={};for(let y of m){if(!y.validate(d,u))return i();let x=y.set(d,g,u);Array.isArray(x)?(d=x[0],Object.assign(g,x[1])):d=x}return d}o(Yf,"parse");function GP(t){return t.match(qP)[1].replace(YP,"'")}o(GP,"cleanEscapedString");var mme=Yf;function cS(t,e,r){return ft(Yf(t,e,new Date,r))}o(cS,"isMatch");var bme=cS;function uS(t,e){return b(t,e?.in).getDay()===1}o(uS,"isMonday");var kme=uS;function fS(t){return+b(t)<Date.now()}o(fS,"isPast");var Cme=fS;function Qa(t,e){let r=b(t,e?.in);return r.setMinutes(0,0,0),r}o(Qa,"startOfHour");var Nme=Qa;function Vf(t,e,r){let[n,i]=te(r?.in,t,e);return+Qa(n)==+Qa(i)}o(Vf,"isSameHour");var Fme=Vf;function Ts(t,e,r){let[n,i]=te(r?.in,t,e);return+Le(n,r)==+Le(i,r)}o(Ts,"isSameWeek");var Ume=Ts;function Kf(t,e,r){return Ts(t,e,{...r,weekStartsOn:1})}o(Kf,"isSameISOWeek");var qme=Kf;function pS(t,e,r){let[n,i]=te(r?.in,t,e);return+Xt(n)==+Xt(i)}o(pS,"isSameISOWeekYear");var Qme=pS;function Ja(t,e){let r=b(t,e?.in);return r.setSeconds(0,0),r}o(Ja,"startOfMinute");var ede=Ja;function Gf(t,e){return+Ja(t)==+Ja(e)}o(Gf,"isSameMinute");var ide=Gf;function Qf(t,e,r){let[n,i]=te(r?.in,t,e);return n.getFullYear()===i.getFullYear()&&n.getMonth()===i.getMonth()}o(Qf,"isSameMonth");var lde=Qf;function Jf(t,e,r){let[n,i]=te(r?.in,t,e);return+sn(n)==+sn(i)}o(Jf,"isSameQuarter");var hde=Jf;function Xa(t,e){let r=b(t,e?.in);return r.setMilliseconds(0),r}o(Xa,"startOfSecond");var yde=Xa;function Xf(t,e){return+Xa(t)==+Xa(e)}o(Xf,"isSameSecond");var Sde=Xf;function Zf(t,e,r){let[n,i]=te(r?.in,t,e);return n.getFullYear()===i.getFullYear()}o(Zf,"isSameYear");var Ede=Zf;function hS(t,e){return Vf(b(t,e?.in),de(e?.in||t))}o(hS,"isThisHour");var Nde=hS;function mS(t,e){return Kf($(e?.in||t,t),de(e?.in||t))}o(mS,"isThisISOWeek");var Ade=mS;function dS(t){return Gf(t,de(t))}o(dS,"isThisMinute");var zde=dS;function gS(t,e){return Qf($(e?.in||t,t),de(e?.in||t))}o(gS,"isThisMonth");var Kde=gS;function yS(t,e){return Jf($(e?.in||t,t),de(e?.in||t))}o(yS,"isThisQuarter");var ege=yS;function xS(t){return Xf(t,de(t))}o(xS,"isThisSecond");var oge=xS;function bS(t,e){return Ts($(e?.in||t,t),de(e?.in||t),e)}o(bS,"isThisWeek");var fge=bS;function wS(t,e){return Zf($(e?.in||t,t),de(e?.in||t))}o(wS,"isThisYear");var yge=wS;function SS(t,e){return b(t,e?.in).getDay()===4}o(SS,"isThursday");var Sge=SS;function vS(t,e){return nn($(e?.in||t,t),de(e?.in||t))}o(vS,"isToday");var Cge=vS;function kS(t,e){return nn(t,et(de(e?.in||t),1),e)}o(kS,"isTomorrow");var Lge=kS;function TS(t,e){return b(t,e?.in).getDay()===2}o(TS,"isTuesday");var Age=TS;function ES(t,e){return b(t,e?.in).getDay()===3}o(ES,"isWednesday");var Uge=ES;function DS(t,e,r){let n=+b(t,r?.in),[i,s]=[+b(e.start,r?.in),+b(e.end,r?.in)].sort((a,l)=>a-l);return n>=i&&n<=s}o(DS,"isWithinInterval");var qge=DS;function oi(t,e,r){return et(t,-e,r)}o(oi,"subDays");var Gge=oi;function CS(t,e){return nn($(e?.in||t,t),oi(de(e?.in||t),1))}o(CS,"isYesterday");var rye=CS;function OS(t,e){let r=b(t,e?.in),n=r.getFullYear(),i=9+Math.floor(n/10)*10;return r.setFullYear(i+1,0,0),r.setHours(0,0,0,0),b(r,e?.in)}o(OS,"lastDayOfDecade");var sye=OS;function ep(t,e){let r=Oe(),n=e?.weekStartsOn??e?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,i=b(t,e?.in),s=i.getDay(),a=(s<n?-7:0)+6-(s-n);return i.setHours(0,0,0,0),i.setDate(i.getDate()+a),i}o(ep,"lastDayOfWeek");var fye=ep;function IS(t,e){return ep(t,{...e,weekStartsOn:1})}o(IS,"lastDayOfISOWeek");var dye=IS;function MS(t,e){let r=Mt(t,e),n=$(e?.in||t,0);n.setFullYear(r+1,0,4),n.setHours(0,0,0,0);let i=Ge(n,e);return i.setDate(i.getDate()-1),i}o(MS,"lastDayOfISOWeekYear");var Sye=MS;function NS(t,e){let r=b(t,e?.in),n=r.getMonth(),i=n-n%3+3;return r.setMonth(i,0),r.setHours(0,0,0,0),r}o(NS,"lastDayOfQuarter");var Eye=NS;function PS(t,e){let r=b(t,e?.in),n=r.getFullYear();return r.setFullYear(n+1,0,0),r.setHours(0,0,0,0),r}o(PS,"lastDayOfYear");var Iye=PS;var QP=/(\w)\1*|''|'(''|[^'])+('|$)|./g,JP=/^'([^]*?)'?$/,XP=/''/g,ZP=/[a-zA-Z]/;function LS(t,e){let r=b(t);if(!ft(r))throw new RangeError("Invalid time value");let n=e.match(QP);return n?n.map(s=>{if(s==="''")return"'";let a=s[0];if(a==="'")return eL(s);let l=Zt[a];if(l)return l(r,s);if(a.match(ZP))throw new RangeError("Format string contains an unescaped latin alphabet character `"+a+"`");return s}).join(""):""}o(LS,"lightFormat");function eL(t){let e=t.match(JP);return e?e[1].replace(XP,"'"):t}o(eL,"cleanEscapedString");var Rye=LS;function _S({years:t,months:e,weeks:r,days:n,hours:i,minutes:s,seconds:a}){let l=0;t&&(l+=t*365.2425),e&&(l+=e*(365.2425/12)),r&&(l+=r*7),n&&(l+=n);let c=l*24*60*60;return i&&(c+=i*60*60),s&&(c+=s*60),a&&(c+=a),Math.trunc(c*1e3)}o(_S,"milliseconds");var Bye=_S;function RS(t){let e=t/Jt;return Math.trunc(e)}o(RS,"millisecondsToHours");var Hye=RS;function FS(t){let e=t/gt;return Math.trunc(e)}o(FS,"millisecondsToMinutes");var Vye=FS;function AS(t){let e=t/os;return Math.trunc(e)}o(AS,"millisecondsToSeconds");var Jye=AS;function $S(t){let e=t/vu;return Math.trunc(e)}o($S,"minutesToHours");var txe=$S;function BS(t){return Math.trunc(t*gt)}o(BS,"minutesToMilliseconds");var oxe=BS;function jS(t){return Math.trunc(t*as)}o(jS,"minutesToSeconds");var cxe=jS;function US(t){let e=t/ku;return Math.trunc(e)}o(US,"monthsToQuarters");var hxe=US;function zS(t){let e=t/Tu;return Math.trunc(e)}o(zS,"monthsToYears");var yxe=zS;function bt(t,e,r){let n=e-ni(t,r);return n<=0&&(n+=7),et(t,n,r)}o(bt,"nextDay");var vxe=bt;function HS(t,e){return bt(t,5,e)}o(HS,"nextFriday");var Dxe=HS;function WS(t,e){return bt(t,1,e)}o(WS,"nextMonday");var Mxe=WS;function qS(t,e){return bt(t,6,e)}o(qS,"nextSaturday");var _xe=qS;function YS(t,e){return bt(t,0,e)}o(YS,"nextSunday");var $xe=YS;function VS(t,e){return bt(t,4,e)}o(VS,"nextThursday");var zxe=VS;function KS(t,e){return bt(t,2,e)}o(KS,"nextTuesday");var Yxe=KS;function GS(t,e){return bt(t,3,e)}o(GS,"nextWednesday");var Qxe=GS;function JS(t,e){let r=o(()=>$(e?.in,NaN),"invalidDate"),n=e?.additionalDigits??2,i=iL(t),s;if(i.date){let u=oL(i.date,n);s=sL(u.restDateString,u.year)}if(!s||isNaN(+s))return r();let a=+s,l=0,c;if(i.time&&(l=aL(i.time),isNaN(l)))return r();if(i.timezone){if(c=lL(i.timezone),isNaN(c))return r()}else{let u=new Date(a+l),f=b(0,e?.in);return f.setFullYear(u.getUTCFullYear(),u.getUTCMonth(),u.getUTCDate()),f.setHours(u.getUTCHours(),u.getUTCMinutes(),u.getUTCSeconds(),u.getUTCMilliseconds()),f}return b(a+l+c,e?.in)}o(JS,"parseISO");var tp={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},tL=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,rL=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,nL=/^([+-])(\d{2})(?::?(\d{2}))?$/;function iL(t){let e={},r=t.split(tp.dateTimeDelimiter),n;if(r.length>2)return e;if(/:/.test(r[0])?n=r[0]:(e.date=r[0],n=r[1],tp.timeZoneDelimiter.test(e.date)&&(e.date=t.split(tp.timeZoneDelimiter)[0],n=t.substr(e.date.length,t.length))),n){let i=tp.timezone.exec(n);i?(e.time=n.replace(i[1],""),e.timezone=i[1]):e.time=n}return e}o(iL,"splitDateString");function oL(t,e){let r=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+e)+"})|(\\d{2}|[+-]\\d{"+(2+e)+"})$)"),n=t.match(r);if(!n)return{year:NaN,restDateString:""};let i=n[1]?parseInt(n[1]):null,s=n[2]?parseInt(n[2]):null;return{year:s===null?i:s*100,restDateString:t.slice((n[1]||n[2]).length)}}o(oL,"parseYear");function sL(t,e){if(e===null)return new Date(NaN);let r=t.match(tL);if(!r)return new Date(NaN);let n=!!r[4],i=Za(r[1]),s=Za(r[2])-1,a=Za(r[3]),l=Za(r[4]),c=Za(r[5])-1;if(n)return hL(e,l,c)?cL(e,l,c):new Date(NaN);{let u=new Date(0);return!fL(e,s,a)||!pL(e,i)?new Date(NaN):(u.setUTCFullYear(e,s,Math.max(i,a)),u)}}o(sL,"parseDate");function Za(t){return t?parseInt(t):1}o(Za,"parseDateUnit");function aL(t){let e=t.match(rL);if(!e)return NaN;let r=yd(e[1]),n=yd(e[2]),i=yd(e[3]);return mL(r,n,i)?r*Jt+n*gt+i*1e3:NaN}o(aL,"parseTime");function yd(t){return t&&parseFloat(t.replace(",","."))||0}o(yd,"parseTimeUnit");function lL(t){if(t==="Z")return 0;let e=t.match(nL);if(!e)return 0;let r=e[1]==="+"?-1:1,n=parseInt(e[2]),i=e[3]&&parseInt(e[3])||0;return dL(n,i)?r*(n*Jt+i*gt):NaN}o(lL,"parseTimezone");function cL(t,e,r){let n=new Date(0);n.setUTCFullYear(t,0,4);let i=n.getUTCDay()||7,s=(e-1)*7+r+1-i;return n.setUTCDate(n.getUTCDate()+s),n}o(cL,"dayOfISOWeekYear");var uL=[31,null,31,30,31,30,31,31,30,31,30,31];function QS(t){return t%400===0||t%4===0&&t%100!==0}o(QS,"isLeapYearIndex");function fL(t,e,r){return e>=0&&e<=11&&r>=1&&r<=(uL[e]||(QS(t)?29:28))}o(fL,"validateDate");function pL(t,e){return e>=1&&e<=(QS(t)?366:365)}o(pL,"validateDayOfYearDate");function hL(t,e,r){return e>=1&&e<=53&&r>=0&&r<=6}o(hL,"validateWeekDate");function mL(t,e,r){return t===24?e===0&&r===0:r>=0&&r<60&&e>=0&&e<60&&t>=0&&t<25}o(mL,"validateTime");function dL(t,e){return e>=0&&e<=59}o(dL,"validateTimezone");var rbe=JS;function XS(t,e){let r=t.match(/(\d{4})-(\d{2})-(\d{2})[T ](\d{2}):(\d{2}):(\d{2})(?:\.(\d{0,7}))?(?:Z|(.)(\d{2}):?(\d{2})?)?/);return r?b(Date.UTC(+r[1],+r[2]-1,+r[3],+r[4]-(+r[9]||0)*(r[8]=="-"?-1:1),+r[5]-(+r[10]||0)*(r[8]=="-"?-1:1),+r[6],+((r[7]||"0")+"00").substring(0,3)),e?.in):b(NaN,e?.in)}o(XS,"parseJSON");var sbe=XS;function wt(t,e,r){let n=ni(t,r)-e;return n<=0&&(n+=7),oi(t,n,r)}o(wt,"previousDay");var fbe=wt;function ZS(t,e){return wt(t,5,e)}o(ZS,"previousFriday");var dbe=ZS;function ev(t,e){return wt(t,1,e)}o(ev,"previousMonday");var bbe=ev;function tv(t,e){return wt(t,6,e)}o(tv,"previousSaturday");var kbe=tv;function rv(t,e){return wt(t,0,e)}o(rv,"previousSunday");var Cbe=rv;function nv(t,e){return wt(t,4,e)}o(nv,"previousThursday");var Nbe=nv;function iv(t,e){return wt(t,2,e)}o(iv,"previousTuesday");var Rbe=iv;function ov(t,e){return wt(t,3,e)}o(ov,"previousWednesday");var Bbe=ov;function sv(t){return Math.trunc(t*ku)}o(sv,"quartersToMonths");var Hbe=sv;function av(t){let e=t/Eu;return Math.trunc(e)}o(av,"quartersToYears");var Vbe=av;function lv(t,e){let r=e?.nearestTo??1;if(r<1||r>12)return $(e?.in||t,NaN);let n=b(t,e?.in),i=n.getMinutes()/60,s=n.getSeconds()/60/60,a=n.getMilliseconds()/1e3/60/60,l=n.getHours()+i+s+a,c=e?.roundingMethod??"round",f=xt(c)(l/r)*r;return n.setHours(f,0,0,0),n}o(lv,"roundToNearestHours");var Zbe=lv;function cv(t,e){let r=e?.nearestTo??1;if(r<1||r>30)return $(t,NaN);let n=b(t,e?.in),i=n.getSeconds()/60,s=n.getMilliseconds()/1e3/60,a=n.getMinutes()+i+s,l=e?.roundingMethod??"round",u=xt(l)(a/r)*r;return n.setMinutes(u,0,0),n}o(cv,"roundToNearestMinutes");var owe=cv;function uv(t){let e=t/qi;return Math.trunc(e)}o(uv,"secondsToHours");var cwe=uv;function fv(t){return t*os}o(fv,"secondsToMilliseconds");var hwe=fv;function pv(t){let e=t/as;return Math.trunc(e)}o(pv,"secondsToMinutes");var ywe=pv;function Es(t,e,r){let n=b(t,r?.in),i=n.getFullYear(),s=n.getDate(),a=$(r?.in||t,0);a.setFullYear(i,e,15),a.setHours(0,0,0,0);let l=Xu(a);return n.setMonth(e,Math.min(s,l)),n}o(Es,"setMonth");var kwe=Es;function hv(t,e,r){let n=b(t,r?.in);return isNaN(+n)?$(r?.in||t,NaN):(e.year!=null&&n.setFullYear(e.year),e.month!=null&&(n=Es(n,e.month)),e.date!=null&&n.setDate(e.date),e.hours!=null&&n.setHours(e.hours),e.minutes!=null&&n.setMinutes(e.minutes),e.seconds!=null&&n.setSeconds(e.seconds),e.milliseconds!=null&&n.setMilliseconds(e.milliseconds),n)}o(hv,"set");var Iwe=hv;function mv(t,e,r){let n=b(t,r?.in);return n.setDate(e),n}o(mv,"setDate");var Lwe=mv;function dv(t,e,r){let n=b(t,r?.in);return n.setMonth(0),n.setDate(e),n}o(dv,"setDayOfYear");var Awe=dv;function gv(t){let e={},r=Oe();for(let n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n]);for(let n in t)Object.prototype.hasOwnProperty.call(t,n)&&(t[n]===void 0?delete e[n]:e[n]=t[n]);Bw(e)}o(gv,"setDefaultOptions");var Uwe=gv;function yv(t,e,r){let n=b(t,r?.in);return n.setHours(e),n}o(yv,"setHours");var qwe=yv;function xv(t,e,r){let n=b(t,r?.in);return n.setMilliseconds(e),n}o(xv,"setMilliseconds");var Gwe=xv;function bv(t,e,r){let n=b(t,r?.in);return n.setMinutes(e),n}o(bv,"setMinutes");var Zwe=bv;function wv(t,e,r){let n=b(t,r?.in),i=Math.trunc(n.getMonth()/3)+1,s=e-i;return Es(n,n.getMonth()+s*3)}o(wv,"setQuarter");var i0e=wv;function Sv(t,e,r){let n=b(t,r?.in);return n.setSeconds(e),n}o(Sv,"setSeconds");var l0e=Sv;function vv(t,e,r){let n=Oe(),i=r?.firstWeekContainsDate??r?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,s=ot(b(t,r?.in),Qi(t,r),r),a=$(r?.in||t,0);a.setFullYear(e,0,i),a.setHours(0,0,0,0);let l=Qi(a,r);return l.setDate(l.getDate()+s),l}o(vv,"setWeekYear");var g0e=vv;function kv(t,e,r){let n=b(t,r?.in);return isNaN(+n)?$(r?.in||t,NaN):(n.setFullYear(e),n)}o(kv,"setYear");var S0e=kv;function Tv(t,e){let r=b(t,e?.in),n=r.getFullYear(),i=Math.floor(n/10)*10;return r.setFullYear(i,0,1),r.setHours(0,0,0,0),r}o(Tv,"startOfDecade");var E0e=Tv;function Ev(t){return rn(Date.now(),t)}o(Ev,"startOfToday");var I0e=Ev;function Dv(t){let e=de(t?.in),r=e.getFullYear(),n=e.getMonth(),i=e.getDate(),s=$(t?.in,0);return s.setFullYear(r,n,i+1),s.setHours(0,0,0,0),s}o(Dv,"startOfTomorrow");var _0e=Dv;function Cv(t){let e=de(t?.in),r=e.getFullYear(),n=e.getMonth(),i=e.getDate(),s=de(t?.in);return s.setFullYear(r,n,i-1),s.setHours(0,0,0,0),s}o(Cv,"startOfYesterday");var $0e=Cv;function rp(t,e,r){return en(t,-e,r)}o(rp,"subMonths");var z0e=rp;function Ov(t,e,r){let{years:n=0,months:i=0,weeks:s=0,days:a=0,hours:l=0,minutes:c=0,seconds:u=0}=e,f=rp(t,i+n*12,r),p=oi(f,a+s*7,r),h=c+l*60,d=(u+h*60)*1e3;return $(r?.in||t,+p-d)}o(Ov,"sub");var K0e=Ov;function Iv(t,e,r){return Ou(t,-e,r)}o(Iv,"subBusinessDays");var X0e=Iv;function Mv(t,e,r){return Iu(t,-e,r)}o(Mv,"subHours");var rSe=Mv;function Nv(t,e,r){return Qn(t,-e,r)}o(Nv,"subMilliseconds");var sSe=Nv;function Pv(t,e,r){return ls(t,-e,r)}o(Pv,"subMinutes");var uSe=Pv;function Lv(t,e,r){return cs(t,-e,r)}o(Lv,"subQuarters");var mSe=Lv;function _v(t,e,r){return Pu(t,-e,r)}o(_v,"subSeconds");var xSe=_v;function Rv(t,e,r){return Jn(t,-e,r)}o(Rv,"subWeeks");var vSe=Rv;function Fv(t,e,r){return Lu(t,-e,r)}o(Fv,"subYears");var DSe=Fv;function Av(t){return Math.trunc(t*7)}o(Av,"weeksToDays");var MSe=Av;function $v(t){return Math.trunc(t*365.2425)}o($v,"yearsToDays");var _Se=$v;function Bv(t){return Math.trunc(t*Tu)}o(Bv,"yearsToMonths");var $Se=Bv;function jv(t){return Math.trunc(t*Eu)}o(jv,"yearsToQuarters");var zSe=jv;var Hv=o(t=>Number.isFinite(t)?t:0,"toZeroIfInfinity");function gL(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(Hv(t*1e3)%1e3),nanoseconds:Math.trunc(Hv(t*1e6)%1e3)}}o(gL,"parseNumber");function yL(t){return{days:t/86400000n,hours:t/3600000n%24n,minutes:t/60000n%60n,seconds:t/1000n%60n,milliseconds:t%1000n,microseconds:0n,nanoseconds:0n}}o(yL,"parseBigint");function vd(t){switch(typeof t){case"number":{if(Number.isFinite(t))return gL(t);break}case"bigint":return yL(t)}throw new TypeError("Expected a finite number or bigint")}o(vd,"parseMilliseconds");var xL=o(t=>t===0||t===0n,"isZero"),bL=o((t,e)=>e===1||e===1n?t:`${t}s`,"pluralize"),wL=1e-7,SL=24n*60n*60n*1000n;function tl(t,e){let r=typeof t=="bigint";if(!r&&!Number.isFinite(t))throw new TypeError("Expected a finite number or bigint");e={...e};let n=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 i=[],s=o((f,p)=>{let h=Math.floor(f*10**p+wL);return(Math.round(h)/10**p).toFixed(p)},"floorDecimals"),a=o((f,p,h,m)=>{if(!((i.length===0||!e.colonNotation)&&xL(f)&&!(e.colonNotation&&h==="m"))){if(m??=String(f),e.colonNotation){let d=m.includes(".")?m.split(".")[0].length:m.length,g=i.length>0?2:1;m="0".repeat(Math.max(0,g-d))+m}else m+=e.verbose?" "+bL(p,f):h;i.push(m)}},"add"),l=vd(t),c=BigInt(l.days);if(e.hideYearAndDays?a(BigInt(c)*24n+BigInt(l.hours),"hour","h"):(e.hideYear?a(c,"day","d"):(a(c/365n,"year","y"),a(c%365n,"day","d")),a(Number(l.hours),"hour","h")),a(Number(l.minutes),"minute","m"),!e.hideSeconds)if(e.separateMilliseconds||e.formatSubMilliseconds||!e.colonNotation&&t<1e3&&!e.subSecondsAsDecimals){let f=Number(l.seconds),p=Number(l.milliseconds),h=Number(l.microseconds),m=Number(l.nanoseconds);if(a(f,"second","s"),e.formatSubMilliseconds)a(p,"millisecond","ms"),a(h,"microsecond","\xB5s"),a(m,"nanosecond","ns");else{let d=p+h/1e3+m/1e6,g=typeof e.millisecondsDecimalDigits=="number"?e.millisecondsDecimalDigits:0,y=d>=1?Math.round(d):Math.ceil(d),x=g?d.toFixed(g):y;a(Number.parseFloat(x),"millisecond","ms",x)}}else{let f=(r?Number(t%SL):t)/1e3%60,p=typeof e.secondsDecimalDigits=="number"?e.secondsDecimalDigits:1,h=s(f,p),m=e.keepDecimalsOnWholeSeconds?h:h.replace(/\.0+$/,"");a(Number.parseFloat(m),"second","s",m)}if(i.length===0)return n+"0"+(e.verbose?" milliseconds":"ms");let u=e.colonNotation?":":" ";return typeof e.unitCount=="number"&&(i=i.slice(0,Math.max(e.unitCount,1))),n+i.join(u)}o(tl,"prettyMilliseconds");var Xi=qn(Uv(),1),Wv=qn(zv(),1);Xi.default.extend(Wv.default);var rl=class{static{o(this,"CronJob")}constructor(e,r,n){this.status="initial",this.nextExecutionUnix=0,this.cronExpression=r,this.jobFunction=n,this.cronParser=new Wa.Cron(r)}checkExecution(){if(this.status==="stopped")return this.nextExecutionUnix;if(this.nextExecutionUnix===0&&this.getNextExecutionTime(),Date.now()>this.nextExecutionUnix){let e=this.jobFunction(this.nextExecutionUnix);e instanceof Promise&&e.catch(r=>console.log(r)),this.nextExecutionUnix=this.getNextExecutionTime()}return this.nextExecutionUnix}getNextExecutionTime(){return this.nextExecutionUnix=Date.now()+this.getTimeToNextExecution()}getTimeToNextExecution(){return this.cronParser.msToNext()??1/0}start(){this.status="started"}stop(){this.status="stopped"}};var nl=class{static{o(this,"CronJobCollection")}constructor(){this.cronJobSet=new Set}add(e){this.cronJobSet.add(e)}remove(e){this.cronJobSet.delete(e)}getArray(){return[...this.cronJobSet]}isEmpty(){return this.cronJobSet.size===0}get length(){return this.cronJobSet.size}[Symbol.iterator](){return this.cronJobSet.values()}};var kd=class{static{o(this,"CronManager")}constructor(){this.executionTimeout=null,this.status="stopped",this.cronjobs=new nl,this.cycleWakeDeferred=null,this.cycleGeneration=0}wakeCycle(){this.cycleWakeDeferred&&this.cycleWakeDeferred.status==="pending"&&this.cycleWakeDeferred.resolve()}addCronjob(e,r){let n=new rl(this,e,r);return this.cronjobs.add(n),this.status==="started"&&(n.start(),this.wakeCycle()),n}removeCronjob(e){e.stop(),this.cronjobs.remove(e),this.status==="started"&&this.wakeCycle()}start(){if(this.status!=="started"){this.status="started";for(let e of this.cronjobs.getArray())e.start();this.cycleGeneration++,this.runCronCycle(this.cycleGeneration)}}isCurrentCycle(e){return this.status==="started"&&this.cycleGeneration===e}async runCronCycle(e){for(;this.isCurrentCycle(e);){let r=new Q.Deferred;this.cycleWakeDeferred=r;let n=1/0;for(let i of this.cronjobs.getArray()){i.checkExecution();let s=i.getTimeToNextExecution();s<n&&(n=s)}if(n<1/0&&n>0){let i=new Q.Timeout(n);this.executionTimeout=i,await Promise.race([i.promise,r.promise]),i.cancel()}else{if(n<=0)continue;await r.promise}}this.cycleGeneration===e&&(this.cycleWakeDeferred=null)}stop(){this.status==="started"&&(this.status="stopped",this.executionTimeout&&this.executionTimeout.cancel(),this.wakeCycle());for(let e of this.cronjobs.getArray())e.stop()}};var si={years:o((t=1)=>t*3154e7,"years"),months:o((t=1)=>t*2628e6,"months"),weeks:o((t=1)=>t*6048e5,"weeks"),days:o((t=1)=>t*864e5,"days"),hours:o((t=1)=>t*36e5,"hours"),minutes:o((t=1)=>t*6e4,"minutes"),seconds:o((t=1)=>t*1e3,"seconds")},Td=o(t=>{let e=0,r=o(n=>{e=e+n},"addMilliSeconds");return t.years&&r(si.years(t.years)),t.months&&r(si.months(t.months)),t.weeks&&r(si.weeks(t.weeks)),t.days&&r(si.days(t.days)),t.hours&&r(si.hours(t.hours)),t.minutes&&r(si.minutes(t.minutes)),t.seconds&&r(si.seconds(t.seconds)),e},"getMilliSecondsFromUnits"),vL=o(t=>tl(t),"getMilliSecondsAsHumanReadableString"),kL=o(t=>el.formatDistanceToNow(new Date(t)),"getMilliSecondsAsHumanReadableAgoTime");var Ed=class t extends Date{static{o(this,"ExtendedDate")}static fromMillis(e){return new t(e)}static fromDate(e){return new t(e.getTime())}static fromEuropeanDate(e){let r=t.parseEuropeanDate(e),i=new Date(parseFloat(r[3]),parseFloat(r[2])-1,parseFloat(r[1])).getTime();return new t(i)}static fromHyphedDate(e){let r=new Date(e).getTime();return new t(r)}static fromEuropeanDateAndTime(e,r="12:00:00",n="Europe/Berlin"){let i=t.parseEuropeanDate(e),s=o(u=>`0${u}`.slice(-2),"sliceDate"),a=`${i[3]}-${s(i[2])}-${s(i[1])}T${r}`,c=Xi.default(a).toDate().getTime();return new t(c)}static parseEuropeanDate(e){let r=/(.*)\.(.*)\.(.*)/.exec(e);if(!r)throw new Error(`"${e}" is not a European date like "28.03.2018"`);return r}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"],r=["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:r[this.getDay()]}}format(e){return Xi.default(this.getTime()).format(e)}isToday(){return Xi.default(this.getTime()).isToday()}lessTimePassedToNow(e){let r=Td(e);return Date.now()-this.getTime()<r}moreTimePassedToNow(e){return!this.lessTimePassedToNow(e)}};var Dd=class{static{o(this,"HrtMeasurement")}constructor(){this.nanoSeconds=null,this.milliSeconds=null,this._milliStart=null,this._milliDiff=null}start(){this._milliStart=performance.now()}stop(){return this._milliStart===null?(console.log("Hasn't started yet"),this):(this._milliDiff=performance.now()-this._milliStart,this.nanoSeconds=this._milliDiff*1e6,this.milliSeconds=this._milliDiff,this)}reset(){this.nanoSeconds=null,this.milliSeconds=null,this._milliStart=null,this._milliDiff=null}};var Cd=class{static{o(this,"Interval")}constructor(e){this.status="initial",this.currentRun=null,this.intervalJobs=[],this.intervalMilliseconds=e}start(){this.endCurrentRun(),this.status="started";let e={timeout:null,stopped:Q.defer()};this.currentRun=e,o(async()=>{for(;this.currentRun===e&&(e.timeout=new Q.Timeout(this.intervalMilliseconds),await Promise.race([e.timeout.promise,e.stopped.promise]),this.currentRun===e);)this.executeIntervalJobs()},"runInterval")()}stop(){this.status="stopped",this.endCurrentRun()}addIntervalJob(e){this.intervalJobs.push(e)}endCurrentRun(){let e=this.currentRun;e&&(this.currentRun=null,e.timeout?.cancel(),e.stopped.resolve())}executeIntervalJobs(){for(let e of this.intervalJobs)e()}};var Cs=class t{static{o(this,"TimeStamp")}static fromMilliSeconds(e){return new t(e)}static fromTimeStamp(e){let r=new t;return r.change=r.milliSeconds-e.milliSeconds,r}constructor(e){this.change=null,this.date=e?new Date(e):new Date,this.milliSeconds=this.date.getTime(),this.epochtime=Math.floor(this.milliSeconds/1e3)}isOlderThanOtherTimeStamp(e,r=0){return this.milliSeconds<e.milliSeconds-r}isOlderThan(e,r=0){return this.milliSeconds+r<e.milliSeconds}isYoungerThanOtherTimeStamp(e,r=0){return this.milliSeconds>e.milliSeconds+r}isYoungerThanMilliSeconds(e){let n=new t().epochtime-e,i=new t(n);return this.isYoungerThanOtherTimeStamp(i)}};var Od=class{static{o(this,"Timer")}get timeLeft(){let e=this.pausedAt?.change;if(e==null)throw new Error("timer has NOT been paused before. timeLeft is known after .pause()");return this.timeInMilliseconds-e}constructor(e){this.state="initiated",this.startedAt=null,this.pausedAt=null,this.currentTimeout=null,this.completedDeferred=Q.defer(),this.timeInMilliseconds=e,this.completed=this.completedDeferred.promise}start(){if(!this.startedAt)this.startTimeout(this.timeInMilliseconds),this.startedAt=new Cs;else throw new Error("timer has been started before. Please use resume instead")}pause(){this.startedAt&&(this.currentTimeout?.cancel(),this.currentTimeout=null,this.pausedAt=Cs.fromTimeStamp(this.startedAt))}resume(){if(this.startedAt)this.startTimeout(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}startTimeout(e){this.currentTimeout?.cancel();let r=new Q.Timeout(e);this.currentTimeout=r,r.promise.then(()=>{this.completedDeferred.resolve()})}};var ip=qn(tk(),1);var Md=class{static{o(this,"AsyncExecutionStack")}executionSlots=[];isProcessing=!1;nonExclusiveMaxConcurrency=1/0;nonExclusiveCurrentCount=0;nonExclusivePendingQueue=[];async getExclusiveExecutionSlot(e,r){let n=Q.defer(),i={funcToExecute:e,executionDeferred:n,timeout:r,mode:"exclusive"};return this.executionSlots.push(i),this.processExecutionSlots(),n.promise}async getNonExclusiveExecutionSlot(e,r){let n=Q.defer(),i={funcToExecute:e,executionDeferred:n,timeout:r,mode:"nonexclusive"};return this.executionSlots.push(i),this.processExecutionSlots(),n.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 r=[];for(;this.executionSlots.length>0&&this.executionSlots[0].mode==="nonexclusive";)r.push(this.executionSlots.shift());await this.executeNonExclusiveSlots(r)}}this.isProcessing=!1}}async executeExclusiveSlot(e){try{if(e.timeout){let r=new Q.Timeout(e.timeout);try{let n=await Promise.race([e.funcToExecute(),r.promise.then(()=>{throw new Error("Timeout reached")})]);r.cancel(),e.executionDeferred.resolve(n)}catch(n){throw r.cancel(),n}}else{let r=await e.funcToExecute();e.executionDeferred.resolve(r)}}catch(r){e.executionDeferred.reject(r)}}async executeNonExclusiveSlots(e){let r=e.map(async n=>{await this.waitForNonExclusiveSlot();try{if(n.timeout){let i=new Q.Timeout(n.timeout);try{let s=await Promise.race([n.funcToExecute(),i.promise.then(()=>{throw new Error("Timeout reached")})]);i.cancel(),n.executionDeferred.resolve(s)}catch(s){throw i.cancel(),s}}else{let i=await n.funcToExecute();n.executionDeferred.resolve(i)}}catch(i){n.executionDeferred.reject(i)}finally{this.releaseNonExclusiveSlot()}});await Promise.all(r)}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 Nd=class{static{o(this,"BackpressuredArray")}data;highWaterMark;hasSpace=new Ie.rxjs.Subject;itemsAvailable=new Ie.rxjs.Subject;isDestroyed=!1;constructor(e=16){this.data=[],this.highWaterMark=e}get length(){return this.data.length}push(e){this.data.push(e),this.itemsAvailable.next("itemsAvailable");let r=this.checkSpaceAvailable();return r&&this.hasSpace.next("hasSpace"),r}pushMany(e){for(let r of e)this.push(r);return this.checkSpaceAvailable()}shift(){let e=this.data.shift();return this.checkSpaceAvailable()&&this.hasSpace.next("hasSpace"),e}peek(){return this.data[0]}checkSpaceAvailable(){return this.data.length<this.highWaterMark}checkHasItems(){return this.data.length>0}waitForSpace(){return new Promise(e=>{if(this.checkSpaceAvailable()||this.isDestroyed)e();else{let r=this.hasSpace.subscribe({next:o(()=>{r.unsubscribe(),e()},"next"),complete:o(()=>{e()},"complete")})}})}waitForItems(){return new Promise(e=>{if(this.data.length>0||this.isDestroyed)e();else{let r=this.itemsAvailable.subscribe({next:o(()=>{r.unsubscribe(),e()},"next"),complete:o(()=>{e()},"complete")})}})}[Symbol.iterator](){return this.data[Symbol.iterator]()}destroy(){this.isDestroyed=!0,this.hasSpace.complete(),this.itemsAvailable.complete()}};var eo=class t{static{o(this,"FastMap")}mapObject=new Map;isUniqueKey(e){return!this.mapObject.has(e)}has(e){return this.mapObject.has(e)}get size(){return this.mapObject.size}addToMap(e,r,n){return this.isUniqueKey(e)||n&&n.force?(this.mapObject.set(e,r),!0):!1}getByKey(e){return this.mapObject.get(e)}removeFromMap(e){let r=this.mapObject.get(e);return this.mapObject.delete(e),r}getKeys(){return Array.from(this.mapObject.keys())}values(){return Array.from(this.mapObject.values())}entries(){return Array.from(this.mapObject.entries())}clean(){this.mapObject.clear()}concat(e){let r=new t;for(let n of this.getKeys())r.addToMap(n,this.getByKey(n));for(let n of e.getKeys())r.addToMap(n,e.getByKey(n),{force:!0});return r}addAllFromOther(e){for(let r of e.getKeys())this.addToMap(r,e.getByKey(r),{force:!0})}async find(e){for(let r of this.getKeys()){let n=this.getByKey(r);if(await e(n))return n}}[Symbol.iterator](){return this.mapObject.entries()}};var rk=o((t="uni")=>`${t}xxxxxxxxxxx`.replace(/[xy]/g,e=>{let r=Math.random()*16|0;return(e==="x"?r:r&3|8).toString(16)}),"uni"),Tn=class t{static{o(this,"ObjectMap")}fastMap=new eo;reverseMap=new Map;eventSubject=new Ie.rxjs.Subject;constructor(){}get length(){return this.fastMap.size}addMappedUnique(e,r){this.fastMap.addToMap(e,r),this.reverseMap.set(r,e)}getMappedUnique(e){return this.fastMap.getByKey(e)}removeMappedUnique(e){let r=this.fastMap.removeFromMap(e);return r!==void 0&&(this.reverseMap.delete(r),this.eventSubject.next({operation:"remove",payload:r})),r}add(e){let r=this.reverseMap.get(e);if(r!==void 0)return r;let n=rk("key");return this.addMappedUnique(n,e),this.eventSubject.next({operation:"add",payload:e}),n}addArray(e){for(let r of e)this.add(r)}checkForObject(e){return this.reverseMap.has(e)}getKeyForObject(e){return this.reverseMap.get(e)??null}async find(e){return this.fastMap.find(e)}findSync(e){for(let r of this.fastMap.getKeys())if(e(this.fastMap.getByKey(r)))return this.getMappedUnique(r)}async findOneAndRemove(e){let r=await this.find(e);return r&&this.remove(r),r}findOneAndRemoveSync(e){let r=this.findSync(e);return r&&this.remove(r),r}async forEach(e){for(let r of this.fastMap.getKeys())await e(this.fastMap.getByKey(r))}getOneAndRemove(){let e=this.fastMap.getKeys();if(e.length===0)return null;{let r=e[0],n=this.fastMap.removeFromMap(r);return this.reverseMap.delete(n),this.eventSubject.next({operation:"remove",payload:n}),n}}getArray(){return this.fastMap.values()}isEmpty(){return this.fastMap.size===0}remove(e){let r=this.reverseMap.get(e);if(r!==void 0){let n=this.fastMap.removeFromMap(r);return this.reverseMap.delete(n),this.eventSubject.next({operation:"remove",payload:n}),n}return null}wipe(){let e=this.fastMap.getKeys();for(let r of e){let n=this.fastMap.removeFromMap(r);this.reverseMap.delete(n),this.eventSubject.next({operation:"remove",payload:n})}}concat(e){let r=new t;r.fastMap.addAllFromOther(this.fastMap),r.fastMap.addAllFromOther(e.fastMap);for(let n of r.fastMap.getKeys())r.reverseMap.set(r.fastMap.getByKey(n),n);return r}addAllFromOther(e){this.fastMap.addAllFromOther(e.fastMap);for(let r of e.fastMap.getKeys())this.reverseMap.set(e.fastMap.getByKey(r),r)}map(e){return this.getArray().map(e)}filter(e){return this.getArray().filter(e)}reduce(e,r){return this.getArray().reduce(e,r)}[Symbol.iterator](){return this.getArray()[Symbol.iterator]()}destroy(){this.wipe(),this.reverseMap.clear(),this.eventSubject.complete()}};var il=class{static{o(this,"Interest")}options;interestMapRef;originalInterest;comparisonFunc;destructionTimer=new Zi.Timer(1e4);isFullfilled=!1;isDestroyed=!1;fullfillmentStore=[];markLostTimeout=null;get comparisonString(){return this.comparisonFunc(this.originalInterest)}interestDeferred=new Q.Deferred;interestFullfilled=this.interestDeferred.promise;fullfillInterest(e){this.isFullfilled=!0,this.fullfillmentStore=[],this.interestDeferred.resolve(e),this.destroy()}constructor(e,r,n,i){this.interestMapRef=e,this.originalInterest=r,this.comparisonFunc=n,this.options=i,this.destructionTimer.completed.then(()=>{this.isDestroyed||this.destroy()}),this.options?.markLostAfterDefault&&(this.markLostTimeout=new Q.Timeout(this.options.markLostAfterDefault),this.markLostTimeout.promise.then(()=>{this.isDestroyed||this.markLost()}))}destroy(){this.isDestroyed||(this.isDestroyed=!0,this.destructionTimer.reset(),this.markLostTimeout&&(this.markLostTimeout.cancel(),this.markLostTimeout=null),this.fullfillmentStore=[],this.interestMapRef.removeInterest(this),!this.isFullfilled&&this.options?.defaultFullfillment&&(this.isFullfilled=!0,this.interestDeferred.resolve(this.options.defaultFullfillment)))}markLost(){this.destructionTimer.start()}renew(){this.destructionTimer.reset()}};var Pd=class{static{o(this,"InterestMap")}options;interestObjectMap=new Tn;interestsByComparisonString=new Map;comparisonStringsByInterest=new WeakMap;comparisonFunc;constructor(e,r={}){this.comparisonFunc=e,this.options=r}async addInterest(e,r){let n=this.comparisonFunc(e),i,s=this.interestsByComparisonString.get(n);return s?(i=s,i.renew()):(i=new il(this,e,this.comparisonFunc,{markLostAfterDefault:this.options.markLostAfterDefault,defaultFullfillment:r}),this.interestObjectMap.add(i),this.comparisonStringsByInterest.set(i,n),this.interestsByComparisonString.set(n,i)),this.interestObservable.push(i),i}interestObservable=new Ie.ObservableIntake;removeInterest(e){if(!this.comparisonStringsByInterest.has(e))return;let r=this.comparisonStringsByInterest.get(e);this.interestObjectMap.remove(e),this.comparisonStringsByInterest.delete(e),this.interestsByComparisonString.get(r)===e&&this.interestsByComparisonString.delete(r)}checkInterest(e){let r=this.comparisonFunc(e);return this.checkInterestByString(r)}checkInterestByString(e){return this.interestsByComparisonString.has(e)}informLostInterest(e){let r=this.findInterest(e);r&&r.markLost()}findInterest(e){let r=this.comparisonFunc(e);return this.interestsByComparisonString.get(r)??null}destroy(){let e=this.interestObjectMap.getArray();for(let r of e)r.destroy();this.interestObjectMap.wipe(),this.interestsByComparisonString.clear(),this.interestObservable.signalComplete()}};var Ld=class{static{o(this,"LimitedArray")}array=[];arrayLimit;constructor(e){this.arrayLimit=e}get length(){return this.array.length}addOne(e){this.array.unshift(e),this.array.length>this.arrayLimit&&(this.array.length=this.arrayLimit)}addMany(e){for(let r of e)this.addOne(r)}setLimit(e){this.arrayLimit=e,this.array.length>this.arrayLimit&&(this.array.length=this.arrayLimit)}getAverage(){if(this.array.length===0)return 0;if(typeof this.array[0]=="number"){let e=0;for(let r of this.array)e=e+r;return e/this.array.length}else return null}remove(e){let r=this.array.indexOf(e);return r!==-1?(this.array.splice(r,1),!0):!1}clear(){this.array.length=0}getArray(){return[...this.array]}[Symbol.iterator](){return this.array[Symbol.iterator]()}};var _d=class{static{o(this,"LoopTracker")}referenceObjectMap=new Tn;constructor(){}checkAndTrack(e){return this.referenceObjectMap.checkForObject(e)?!1:(this.referenceObjectMap.add(e),!0)}reset(){this.referenceObjectMap.wipe()}destroy(){this.referenceObjectMap.destroy()}};var ol=class{static{o(this,"Stringmap")}_stringArray=[];_triggerUntilTrueFunctionArray=[];constructor(){}addString(e){this._stringArray.push(e),this.notifyTrigger()}addStringArray(e){for(let r of e)this.addString(r)}removeString(e){this._stringArray=this._stringArray.filter(r=>r!==e),this.notifyTrigger()}wipe(){this._stringArray=[],this.notifyTrigger()}checkString(e){return this._stringArray.indexOf(e)!==-1}checkMinimatch(e){let r=new Pa.SmartMatch(e),n=!1;for(let i of this._stringArray)r.match(i)&&(n=!0);return n}checkIsEmpty(){return this._stringArray.length===0}getStringArray(){let e=[];for(let r of this._stringArray)e.push(r);return e}registerUntilTrue(e,r){let n=Q.defer();return this._triggerUntilTrueFunctionArray.push(()=>{let i=e(this.getStringArray());return i===!0&&(r&&r(),n.resolve()),i}),this.notifyTrigger(),n.promise}notifyTrigger(){let e=this._triggerUntilTrueFunctionArray.filter(r=>!r());this._triggerUntilTrueFunctionArray=e}destroy(){this._stringArray=[],this._triggerUntilTrueFunctionArray=[]}};var sl=class{static{o(this,"TimedAggregtor")}options;storageArray=[];isStopped=!1;constructor(e){this.options=e}aggregationTimer;checkAggregationStatus(){if(this.isStopped)return;let e=o(()=>{this.aggregationTimer=new Zi.Timer(this.options.aggregationIntervalInMillis),this.aggregationTimer.completed.then(()=>{if(this.isStopped){this.aggregationTimer=null;return}let r=this.storageArray;if(r.length===0){this.aggregationTimer=null;return}this.storageArray=[],e(),this.options.functionForAggregation(r)}),this.aggregationTimer.start()},"addAggregationTimer");this.aggregationTimer||e()}add(e){this.isStopped||(this.storageArray.push(e),this.checkAggregationStatus())}stop(e=!1){if(this.isStopped=!0,this.aggregationTimer&&(this.aggregationTimer.reset(),this.aggregationTimer=null),e&&this.storageArray.length>0){let r=this.storageArray;this.storageArray=[],this.options.functionForAggregation(r)}else this.storageArray=[]}restart(){this.isStopped=!1}};var Rd=class{static{o(this,"Tree")}symbolTree;constructor(){this.symbolTree=new ip.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,r){return this.symbolTree.preceding(e,r)}following(e,r){return this.symbolTree.following(e,r)}childrenToArray(e,r){return this.symbolTree.childrenToArray(e,r)}ancestorsToArray(e,r){return this.symbolTree.ancestorsToArray(e,r)}treeToArray(e,r){return this.symbolTree.treeToArray(e,r)}childrenIterator(e,r){return this.symbolTree.childrenIterator(e,r)}previousSiblingsIterator(e){return this.symbolTree.previousSiblingsIterator(e)}nextSiblingsIterator(e){return this.symbolTree.nextSiblingsIterator(e)}ancestorsIterator(e){return this.symbolTree.ancestorsIterator(e)}treeIterator(e,r){return this.symbolTree.treeIterator(e,r)}index(e){return this.symbolTree.index(e)}childrenCount(e){return this.symbolTree.childrenCount(e)}compareTreePosition(e,r){return this.symbolTree.compareTreePosition(e,r)}remove(e){return this.symbolTree.remove(e)}insertBefore(e,r){return this.symbolTree.insertBefore(e,r)}insertAfter(e,r){return this.symbolTree.insertAfter(e,r)}prependChild(e,r){return this.symbolTree.prependChild(e,r)}appendChild(e,r){return this.symbolTree.appendChild(e,r)}toJsonWithHierachy(e){let r=o(n=>{let i=[];if(this.hasChildren(n)){let s=this.childrenToArray(n,{});for(let a of s)i.push(r(a))}return{data:n,children:i}},"buildNode");return r(e)}fromJsonWithHierachy(e,r){let n=o((i,s)=>{let a=r?r(i.data):i.data;this.initialize(a),s&&this.appendChild(s,a);for(let l of i.children)n(l,a);return a},"buildTree");return n(e)}};var to={};se(to,{base64ToUint8Array:()=>KL,ensurePureUint8Array:()=>JL,isBufferLike:()=>QL,isUint8Array:()=>GL,uInt8ArrayExtras:()=>YL,uInt8ArrayToBase64:()=>VL});var fi={};se(fi,{areUint8ArraysEqual:()=>LL,assertUint8Array:()=>ui,assertUint8ArrayOrArrayBuffer:()=>ak,base64ToString:()=>BL,base64ToUint8Array:()=>fk,compareUint8Arrays:()=>_L,concatUint8Arrays:()=>PL,getUintBE:()=>HL,hexToUint8Array:()=>zL,includes:()=>WL,indexOf:()=>pk,isUint8Array:()=>Fd,stringToBase64:()=>$L,stringToUint8Array:()=>ck,toUint8Array:()=>NL,uint8ArrayToBase64:()=>uk,uint8ArrayToHex:()=>UL,uint8ArrayToString:()=>lk});var DL=Object.prototype.toString,CL="[object Uint8Array]",OL="[object ArrayBuffer]";function nk(t,e,r){return t?t.constructor===e?!0:DL.call(t)===r:!1}o(nk,"isType");function Fd(t){return nk(t,Uint8Array,CL)}o(Fd,"isUint8Array");function IL(t){return nk(t,ArrayBuffer,OL)}o(IL,"isArrayBuffer");function ML(t){return Fd(t)||IL(t)}o(ML,"isUint8ArrayOrArrayBuffer");function ui(t){if(!Fd(t))throw new TypeError(`Expected \`Uint8Array\`, got \`${typeof t}\``)}o(ui,"assertUint8Array");function ak(t){if(!ML(t))throw new TypeError(`Expected \`Uint8Array\` or \`ArrayBuffer\`, got \`${typeof t}\``)}o(ak,"assertUint8ArrayOrArrayBuffer");function NL(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}\`.`)}o(NL,"toUint8Array");function PL(t,e){if(t.length===0)return new Uint8Array(0);e??=t.reduce((i,s)=>i+s.length,0);let r=new Uint8Array(e),n=0;for(let i of t)ui(i),r.set(i,n),n+=i.length;return r}o(PL,"concatUint8Arrays");function LL(t,e){if(ui(t),ui(e),t===e)return!0;if(t.length!==e.length)return!1;for(let r=0;r<t.length;r++)if(t[r]!==e[r])return!1;return!0}o(LL,"areUint8ArraysEqual");function _L(t,e){ui(t),ui(e);let r=Math.min(t.length,e.length);for(let n=0;n<r;n++){let i=t[n]-e[n];if(i!==0)return Math.sign(i)}return Math.sign(t.length-e.length)}o(_L,"compareUint8Arrays");var ik={utf8:new globalThis.TextDecoder("utf8")};function lk(t,e="utf8"){return ak(t),ik[e]??=new globalThis.TextDecoder(e),ik[e].decode(t)}o(lk,"uint8ArrayToString");function al(t){if(typeof t!="string")throw new TypeError(`Expected \`string\`, got \`${typeof t}\``)}o(al,"assertString");var RL=new globalThis.TextEncoder;function ck(t){return al(t),RL.encode(t)}o(ck,"stringToUint8Array");function FL(t){return t.replaceAll("+","-").replaceAll("/","_").replace(/=+$/,"")}o(FL,"base64ToBase64Url");function AL(t){let e=t.replaceAll("-","+").replaceAll("_","/"),r=(4-e.length%4)%4;return e+"=".repeat(r)}o(AL,"base64UrlToBase64");var ok=65535;function uk(t,{urlSafe:e=!1}={}){ui(t);let r="";for(let n=0;n<t.length;n+=ok){let i=t.subarray(n,n+ok);r+=globalThis.btoa(String.fromCodePoint.apply(void 0,i))}return e?FL(r):r}o(uk,"uint8ArrayToBase64");function fk(t){return al(t),Uint8Array.from(globalThis.atob(AL(t)),e=>e.codePointAt(0))}o(fk,"base64ToUint8Array");function $L(t,{urlSafe:e=!1}={}){return al(t),uk(ck(t),{urlSafe:e})}o($L,"stringToBase64");function BL(t){return al(t),lk(fk(t))}o(BL,"base64ToString");var jL=Array.from({length:256},(t,e)=>e.toString(16).padStart(2,"0"));function UL(t){ui(t);let e="";for(let r=0;r<t.length;r++)e+=jL[t[r]];return e}o(UL,"uint8ArrayToHex");var sk={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};function zL(t){if(al(t),t.length%2!==0)throw new Error("Invalid Hex string length.");let e=t.length/2,r=new Uint8Array(e);for(let n=0;n<e;n++){let i=sk[t[n*2]],s=sk[t[n*2+1]];if(i===void 0||s===void 0)throw new Error(`Invalid Hex character encountered at position ${n*2}`);r[n]=i<<4|s}return r}o(zL,"hexToUint8Array");function HL(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)}o(HL,"getUintBE");function pk(t,e){let r=t.length,n=e.length;if(n===0||n>r)return-1;let i=r-n;for(let s=0;s<=i;s++){let a=!0;for(let l=0;l<n;l++)if(t[s+l]!==e[l]){a=!1;break}if(a)return s}return-1}o(pk,"indexOf");function WL(t,e){return pk(t,e)!==-1}o(WL,"includes");var YL=fi;function VL(t){return fi.uint8ArrayToBase64(t)}o(VL,"uInt8ArrayToBase64");function KL(t){return fi.base64ToUint8Array(t)}o(KL,"base64ToUint8Array");var GL=o(t=>fi.isUint8Array(t),"isUint8Array");function QL(t){return t&&typeof t.byteLength=="number"?!0:typeof Buffer<"u"&&Buffer.isBuffer?Buffer.isBuffer(t):!1}o(QL,"isBufferLike");function JL(t){let e=new Uint8Array(t.length);return e.set(t),e}o(JL,"ensurePureUint8Array");var fl={};se(fl,{Guard:()=>ll,GuardError:()=>cl,GuardSet:()=>ul,passGuardsOrReject:()=>XL});var ll=class{static{o(this,"Guard")}constructor(e,r){this.guardFunction=e,this.options=r||{}}async exec(e){return await this.guardFunction(e)}async getFailedHint(e){return await this.exec(e)?null:this.options.failedHint||null}};var cl=class extends Error{static{o(this,"GuardError")}constructor(e){super(e),this.name="GuardError"}};var ul=class extends ll{static{o(this,"GuardSet")}constructor(e=[]){super(async r=>this.allGuardsPass(r)),this.guards=e}async execAllWithData(e,r={mode:"parallel",stopOnFail:!1}){let n=[];for(let s of this.guards){let a=s.exec(e);if(r.mode==="serial"&&await a,n.push(a),r.stopOnFail&&!await a)return await Promise.all(n)}return await Promise.all(n)}async allGuardsPass(e,r={mode:"parallel",stopOnFail:!1}){return(await this.execAllWithData(e,r)).every(i=>i)}async anyGuardsPass(e){return(await this.execAllWithData(e,{mode:"parallel",stopOnFail:!1})).some(n=>n)}async getFailedHint(e){for(let r of this.guards){let n=await r.getFailedHint(e);if(n)return n}return null}};var XL=o(async(t,e)=>{let r=new ul(e);if(!await r.allGuardsPass(t)){let i=await r.getFailedHint(t);throw new cl(`Guards failed:
|
|
4
4
|
${i}
|
|
5
5
|
`)}},"passGuardsOrReject");var wl={};se(wl,{HttpCache:()=>Dp});var Nr={};se(Nr,{TypedrequestCache:()=>Zd,WebStore:()=>yl});var ro={};se(ro,{Smartenv:()=>Ad});var Ad=class{static{o(this,"Smartenv")}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,r){if(!this.isNode&&!this.isDeno&&!this.isBun){console.error(`You tried to load a server module in a wrong context: ${e}. This does not throw.`);return}let n=await new Function(`return import('${e}')`)();return r&&await r(n),n}async getSafeWebModule(e,r){if(!this.isBrowser){console.error("You tried to load a web module in a wrong context");return}if(this.loadedScripts.includes(e))return r();this.loadedScripts.push(e);let n=Q.defer(),i=globalThis;if(i.importScripts)i.importScripts(e),n.resolve();else{let s=document.createElement("script");s.onload=()=>{n.resolve()},s.src=e,document.head.appendChild(s)}return await n.promise,r()}get runtimeEnv(){let e=globalThis;return typeof e.Deno<"u"&&typeof e.Deno.version<"u"?"deno":typeof e.Bun<"u"&&typeof e.Bun.version<"u"?"bun":typeof globalThis.process<"u"&&typeof globalThis.process?.versions?.node<"u"?"node":(typeof globalThis.window<"u"&&typeof globalThis.document<"u","browser")}get isBrowser(){return this.runtimeEnv==="browser"}get isNode(){return this.runtimeEnv==="node"}get isDeno(){return this.runtimeEnv==="deno"}get isBun(){return this.runtimeEnv==="bun"}get userAgent(){return this.isBrowser?navigator.userAgent:"undefined"}get nodeVersion(){return this.isNode?process.version:"undefined"}get denoVersion(){return this.isDeno?globalThis.Deno?.version?.deno??"undefined":"undefined"}get bunVersion(){return this.isBun?globalThis.Bun?.version??"undefined":"undefined"}async getSafeModuleFor(e,r,n){let i;if(Array.isArray(e)?i=e.flatMap(s=>s==="server"?["node","deno","bun"]:[s]):e==="server"?i=["node","deno","bun"]:i=[e],!i.includes(this.runtimeEnv)){console.warn(`Module "${r}" requested for runtime(s) [${i.join(", ")}] but current runtime is "${this.runtimeEnv}". Skipping load.`);return}if(this.isNode||this.isDeno||this.isBun)return await this.getSafeNodeModule(r);if(this.isBrowser){if(!n){console.error(`Browser module load requires getFunction parameter for "${r}"`);return}return await this.getSafeWebModule(r,n)}}get isCI(){return this.isNode?!!process.env.CI:!1}async isMacAsync(){return this.isNode||this.isDeno||this.isBun?(await this.getSafeNodeModule(this.isDeno?"node:os":"os"))?.platform()==="darwin":!1}async isWindowsAsync(){return this.isNode||this.isDeno||this.isBun?(await this.getSafeNodeModule(this.isDeno?"node:os":"os"))?.platform()==="win32":!1}async isLinuxAsync(){return this.isNode||this.isDeno||this.isBun?(await this.getSafeNodeModule(this.isDeno?"node:os":"os"))?.platform()==="linux":!1}async printEnv(){this.isNode?(console.log("running on NODE"),console.log("node version is "+this.nodeVersion)):this.isDeno?(console.log("running on DENO"),console.log("deno version is "+this.denoVersion)):this.isBun?(console.log("running on BUN"),console.log("bun version is "+this.bunVersion)):(console.log("running on BROWSER"),console.log("browser is "+this.userAgent))}};var er={};se(er,{Smartjson:()=>Xd,deepEqualJsonLStrings:()=>oR,deepEqualObjects:()=>Vk,foldDec:()=>iR,parse:()=>xp,parseBase64:()=>nR,parseJsonL:()=>Jd,stableOneWayStringify:()=>eR,stringify:()=>io,stringifyBase64:()=>rR,stringifyJsonL:()=>Z_,stringifyPretty:()=>tR});var an={};se(an,{Base64:()=>hp,Domain:()=>dp,GitRepo:()=>gp,base64:()=>Ns,create:()=>lp,docker:()=>cp,encoding:()=>up,indent:()=>fp,normalize:()=>pp,type:()=>mp});var lp={};se(lp,{createCryptoRandomString:()=>__,createRandomString:()=>L_});var Mr={};se(Mr,{shortId:()=>E_,uni:()=>O_,uniSimple:()=>I_,uuid4:()=>D_,uuid5:()=>C_});var pl={};se(pl,{customAlphabet:()=>e_,customRandom:()=>mk,nanoid:()=>t_,random:()=>hk,urlAlphabet:()=>op});var op="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";var hk=o(t=>crypto.getRandomValues(new Uint8Array(t)),"random"),mk=o((t,e,r)=>{let n=256-256%t.length;if(n===256){let s=t.length-1;return(a=e)=>{if(!a)return"";let l="";for(;;){let c=r(a),u=a;for(;u--;)if(l+=t[c[u]&s],l.length>=a)return l}}}let i=Math.ceil(1.6*256*e/n);return(s=e)=>{if(!s)return"";let a="";for(;;){let l=r(i),c=i;for(;c--;)if(l[c]<n&&(a+=t[l[c]%t.length],a.length>=s))return a}}},"customRandom"),e_=o((t,e=21)=>mk(t,e|0,hk),"customAlphabet"),t_=o((t=21)=>{let e="",r=crypto.getRandomValues(new Uint8Array(t|=0));for(;t--;)e+=op[r[t]&63];return e},"nanoid");var no={};se(no,{MAX:()=>dk,NIL:()=>gk,parse:()=>En,stringify:()=>xk,v1:()=>sp,v1ToV6:()=>ml,v3:()=>vk,v4:()=>kk,v5:()=>Ek,v6:()=>Dk,v6ToV1:()=>Hd,v7:()=>Ok,validate:()=>pi,version:()=>Ik});var dk="ffffffff-ffff-ffff-ffff-ffffffffffff";var gk="00000000-0000-0000-0000-000000000000";var yk=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/i;function r_(t){return typeof t=="string"&&yk.test(t)}o(r_,"validate");var pi=r_;function n_(t){if(!pi(t))throw TypeError("Invalid UUID");let e;return Uint8Array.of((e=parseInt(t.slice(0,8),16))>>>24,e>>>16&255,e>>>8&255,e&255,(e=parseInt(t.slice(9,13),16))>>>8,e&255,(e=parseInt(t.slice(14,18),16))>>>8,e&255,(e=parseInt(t.slice(19,23),16))>>>8,e&255,(e=parseInt(t.slice(24,36),16))/1099511627776&255,e/4294967296&255,e>>>24&255,e>>>16&255,e>>>8&255,e&255)}o(n_,"parse");var En=n_;var pt=[];for(let t=0;t<256;++t)pt.push((t+256).toString(16).slice(1));function Nt(t,e=0){return(pt[t[e+0]]+pt[t[e+1]]+pt[t[e+2]]+pt[t[e+3]]+"-"+pt[t[e+4]]+pt[t[e+5]]+"-"+pt[t[e+6]]+pt[t[e+7]]+"-"+pt[t[e+8]]+pt[t[e+9]]+"-"+pt[t[e+10]]+pt[t[e+11]]+pt[t[e+12]]+pt[t[e+13]]+pt[t[e+14]]+pt[t[e+15]]).toLowerCase()}o(Nt,"unsafeStringify");function i_(t,e=0){let r=Nt(t,e);if(!pi(r))throw TypeError("Stringified UUID is invalid");return r}o(i_,"stringify");var xk=i_;var $d,o_=new Uint8Array(16);function Dn(){if(!$d){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");$d=crypto.getRandomValues.bind(crypto)}return $d(o_)}o(Dn,"rng");var hl={};function s_(t,e,r){let n,i=t?._v6??!1;if(t){let s=Object.keys(t);s.length===1&&s[0]==="_v6"&&(t=void 0)}if(t)n=bk(t.random??t.rng?.()??Dn(),t.msecs,t.nsecs,t.clockseq,t.node,e,r);else{let s=Date.now(),a=Dn();a_(hl,s,a),n=bk(a,hl.msecs,hl.nsecs,i?void 0:hl.clockseq,i?void 0:hl.node,e,r)}return e??Nt(n)}o(s_,"v1");function a_(t,e,r){return t.msecs??=-1/0,t.nsecs??=0,e===t.msecs?(t.nsecs++,t.nsecs>=1e4&&(t.node=void 0,t.nsecs=0)):e>t.msecs?t.nsecs=0:e<t.msecs&&(t.node=void 0),t.node||(t.node=r.slice(10,16),t.node[0]|=1,t.clockseq=(r[8]<<8|r[9])&16383),t.msecs=e,t}o(a_,"updateV1State");function bk(t,e,r,n,i,s,a=0){if(t.length<16)throw new Error("Random bytes length must be >= 16");if(!s)s=new Uint8Array(16),a=0;else if(a<0||a+16>s.length)throw new RangeError(`UUID byte range ${a}:${a+15} is out of buffer bounds`);e??=Date.now(),r??=0,n??=(t[8]<<8|t[9])&16383,i??=t.slice(10,16),e+=122192928e5;let l=((e&268435455)*1e4+r)%4294967296;s[a++]=l>>>24&255,s[a++]=l>>>16&255,s[a++]=l>>>8&255,s[a++]=l&255;let c=e/4294967296*1e4&268435455;s[a++]=c>>>8&255,s[a++]=c&255,s[a++]=c>>>24&15|16,s[a++]=c>>>16&255,s[a++]=n>>>8|128,s[a++]=n&255;for(let u=0;u<6;++u)s[a++]=i[u];return s}o(bk,"v1Bytes");var sp=s_;function ml(t){let e=typeof t=="string"?En(t):t,r=l_(e);return typeof t=="string"?Nt(r):r}o(ml,"v1ToV6");function l_(t){return Uint8Array.of((t[6]&15)<<4|t[7]>>4&15,(t[7]&15)<<4|(t[4]&240)>>4,(t[4]&15)<<4|(t[5]&240)>>4,(t[5]&15)<<4|(t[0]&240)>>4,(t[0]&15)<<4|(t[1]&240)>>4,(t[1]&15)<<4|(t[2]&240)>>4,96|t[2]&15,t[3],t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15])}o(l_,"_v1ToV6");function c_(t){let e=p_(t),r=f_(e,t.length*8);return u_(r)}o(c_,"md5");function u_(t){let e=new Uint8Array(t.length*4);for(let r=0;r<t.length*4;r++)e[r]=t[r>>2]>>>r%4*8&255;return e}o(u_,"uint32ToUint8");function wk(t){return(t+64>>>9<<4)+14+1}o(wk,"getOutputLength");function f_(t,e){let r=new Uint32Array(wk(e)).fill(0);r.set(t),r[e>>5]|=128<<e%32,r[r.length-1]=e,t=r;let n=1732584193,i=-271733879,s=-1732584194,a=271733878;for(let l=0;l<t.length;l+=16){let c=n,u=i,f=s,p=a;n=St(n,i,s,a,t[l],7,-680876936),a=St(a,n,i,s,t[l+1],12,-389564586),s=St(s,a,n,i,t[l+2],17,606105819),i=St(i,s,a,n,t[l+3],22,-1044525330),n=St(n,i,s,a,t[l+4],7,-176418897),a=St(a,n,i,s,t[l+5],12,1200080426),s=St(s,a,n,i,t[l+6],17,-1473231341),i=St(i,s,a,n,t[l+7],22,-45705983),n=St(n,i,s,a,t[l+8],7,1770035416),a=St(a,n,i,s,t[l+9],12,-1958414417),s=St(s,a,n,i,t[l+10],17,-42063),i=St(i,s,a,n,t[l+11],22,-1990404162),n=St(n,i,s,a,t[l+12],7,1804603682),a=St(a,n,i,s,t[l+13],12,-40341101),s=St(s,a,n,i,t[l+14],17,-1502002290),i=St(i,s,a,n,t[l+15],22,1236535329),n=vt(n,i,s,a,t[l+1],5,-165796510),a=vt(a,n,i,s,t[l+6],9,-1069501632),s=vt(s,a,n,i,t[l+11],14,643717713),i=vt(i,s,a,n,t[l],20,-373897302),n=vt(n,i,s,a,t[l+5],5,-701558691),a=vt(a,n,i,s,t[l+10],9,38016083),s=vt(s,a,n,i,t[l+15],14,-660478335),i=vt(i,s,a,n,t[l+4],20,-405537848),n=vt(n,i,s,a,t[l+9],5,568446438),a=vt(a,n,i,s,t[l+14],9,-1019803690),s=vt(s,a,n,i,t[l+3],14,-187363961),i=vt(i,s,a,n,t[l+8],20,1163531501),n=vt(n,i,s,a,t[l+13],5,-1444681467),a=vt(a,n,i,s,t[l+2],9,-51403784),s=vt(s,a,n,i,t[l+7],14,1735328473),i=vt(i,s,a,n,t[l+12],20,-1926607734),n=kt(n,i,s,a,t[l+5],4,-378558),a=kt(a,n,i,s,t[l+8],11,-2022574463),s=kt(s,a,n,i,t[l+11],16,1839030562),i=kt(i,s,a,n,t[l+14],23,-35309556),n=kt(n,i,s,a,t[l+1],4,-1530992060),a=kt(a,n,i,s,t[l+4],11,1272893353),s=kt(s,a,n,i,t[l+7],16,-155497632),i=kt(i,s,a,n,t[l+10],23,-1094730640),n=kt(n,i,s,a,t[l+13],4,681279174),a=kt(a,n,i,s,t[l],11,-358537222),s=kt(s,a,n,i,t[l+3],16,-722521979),i=kt(i,s,a,n,t[l+6],23,76029189),n=kt(n,i,s,a,t[l+9],4,-640364487),a=kt(a,n,i,s,t[l+12],11,-421815835),s=kt(s,a,n,i,t[l+15],16,530742520),i=kt(i,s,a,n,t[l+2],23,-995338651),n=Tt(n,i,s,a,t[l],6,-198630844),a=Tt(a,n,i,s,t[l+7],10,1126891415),s=Tt(s,a,n,i,t[l+14],15,-1416354905),i=Tt(i,s,a,n,t[l+5],21,-57434055),n=Tt(n,i,s,a,t[l+12],6,1700485571),a=Tt(a,n,i,s,t[l+3],10,-1894986606),s=Tt(s,a,n,i,t[l+10],15,-1051523),i=Tt(i,s,a,n,t[l+1],21,-2054922799),n=Tt(n,i,s,a,t[l+8],6,1873313359),a=Tt(a,n,i,s,t[l+15],10,-30611744),s=Tt(s,a,n,i,t[l+6],15,-1560198380),i=Tt(i,s,a,n,t[l+13],21,1309151649),n=Tt(n,i,s,a,t[l+4],6,-145523070),a=Tt(a,n,i,s,t[l+11],10,-1120210379),s=Tt(s,a,n,i,t[l+2],15,718787259),i=Tt(i,s,a,n,t[l+9],21,-343485551),n=hi(n,c),i=hi(i,u),s=hi(s,f),a=hi(a,p)}return Uint32Array.of(n,i,s,a)}o(f_,"wordsToMd5");function p_(t){if(t.length===0)return new Uint32Array;let e=new Uint32Array(wk(t.length*8)).fill(0);for(let r=0;r<t.length;r++)e[r>>2]|=(t[r]&255)<<r%4*8;return e}o(p_,"uint8ToUint32");function hi(t,e){let r=(t&65535)+(e&65535);return(t>>16)+(e>>16)+(r>>16)<<16|r&65535}o(hi,"safeAdd");function h_(t,e){return t<<e|t>>>32-e}o(h_,"bitRotateLeft");function ap(t,e,r,n,i,s){return hi(h_(hi(hi(e,t),hi(n,s)),i),r)}o(ap,"md5cmn");function St(t,e,r,n,i,s,a){return ap(e&r|~e&n,t,e,i,s,a)}o(St,"md5ff");function vt(t,e,r,n,i,s,a){return ap(e&n|r&~n,t,e,i,s,a)}o(vt,"md5gg");function kt(t,e,r,n,i,s,a){return ap(e^r^n,t,e,i,s,a)}o(kt,"md5hh");function Tt(t,e,r,n,i,s,a){return ap(r^(e|~n),t,e,i,s,a)}o(Tt,"md5ii");var Sk=c_;function m_(t){t=unescape(encodeURIComponent(t));let e=new Uint8Array(t.length);for(let r=0;r<t.length;++r)e[r]=t.charCodeAt(r);return e}o(m_,"stringToBytes");var Is="6ba7b810-9dad-11d1-80b4-00c04fd430c8",Ms="6ba7b811-9dad-11d1-80b4-00c04fd430c8";function dl(t,e,r,n,i,s){let a=typeof r=="string"?m_(r):r,l=typeof n=="string"?En(n):n;if(typeof n=="string"&&(n=En(n)),n?.length!==16)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let c=new Uint8Array(16+a.length);if(c.set(l),c.set(a,l.length),c=e(c),c[6]=c[6]&15|t,c[8]=c[8]&63|128,i){if(s=s||0,s<0||s+16>i.length)throw new RangeError(`UUID byte range ${s}:${s+15} is out of buffer bounds`);for(let u=0;u<16;++u)i[s+u]=c[u];return i}return Nt(c)}o(dl,"v35");function Bd(t,e,r,n){return dl(48,Sk,t,e,r,n)}o(Bd,"v3"),Bd.DNS=Is,Bd.URL=Ms;var vk=Bd;var d_=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),jd={randomUUID:d_};function g_(t,e,r){if(jd.randomUUID&&!e&&!t)return jd.randomUUID();t=t||{};let n=t.random??t.rng?.()??Dn();if(n.length<16)throw new Error("Random bytes length must be >= 16");if(n[6]=n[6]&15|64,n[8]=n[8]&63|128,e){if(r=r||0,r<0||r+16>e.length)throw new RangeError(`UUID byte range ${r}:${r+15} is out of buffer bounds`);for(let i=0;i<16;++i)e[r+i]=n[i];return e}return Nt(n)}o(g_,"v4");var kk=g_;function y_(t,e,r,n){switch(t){case 0:return e&r^~e&n;case 1:return e^r^n;case 2:return e&r^e&n^r&n;case 3:return e^r^n}}o(y_,"f");function Ud(t,e){return t<<e|t>>>32-e}o(Ud,"ROTL");function x_(t){let e=[1518500249,1859775393,2400959708,3395469782],r=[1732584193,4023233417,2562383102,271733878,3285377520],n=new Uint8Array(t.length+1);n.set(t),n[t.length]=128,t=n;let i=t.length/4+2,s=Math.ceil(i/16),a=new Array(s);for(let l=0;l<s;++l){let c=new Uint32Array(16);for(let u=0;u<16;++u)c[u]=t[l*64+u*4]<<24|t[l*64+u*4+1]<<16|t[l*64+u*4+2]<<8|t[l*64+u*4+3];a[l]=c}a[s-1][14]=(t.length-1)*8/Math.pow(2,32),a[s-1][14]=Math.floor(a[s-1][14]),a[s-1][15]=(t.length-1)*8&4294967295;for(let l=0;l<s;++l){let c=new Uint32Array(80);for(let d=0;d<16;++d)c[d]=a[l][d];for(let d=16;d<80;++d)c[d]=Ud(c[d-3]^c[d-8]^c[d-14]^c[d-16],1);let u=r[0],f=r[1],p=r[2],h=r[3],m=r[4];for(let d=0;d<80;++d){let g=Math.floor(d/20),y=Ud(u,5)+y_(g,f,p,h)+m+e[g]+c[d]>>>0;m=h,h=p,p=Ud(f,30)>>>0,f=u,u=y}r[0]=r[0]+u>>>0,r[1]=r[1]+f>>>0,r[2]=r[2]+p>>>0,r[3]=r[3]+h>>>0,r[4]=r[4]+m>>>0}return Uint8Array.of(r[0]>>24,r[0]>>16,r[0]>>8,r[0],r[1]>>24,r[1]>>16,r[1]>>8,r[1],r[2]>>24,r[2]>>16,r[2]>>8,r[2],r[3]>>24,r[3]>>16,r[3]>>8,r[3],r[4]>>24,r[4]>>16,r[4]>>8,r[4])}o(x_,"sha1");var Tk=x_;function zd(t,e,r,n){return dl(80,Tk,t,e,r,n)}o(zd,"v5"),zd.DNS=Is,zd.URL=Ms;var Ek=zd;function b_(t,e,r){t??={},r??=0;let n=sp({...t,_v6:!0},new Uint8Array(16));if(n=ml(n),e){if(r<0||r+16>e.length)throw new RangeError(`UUID byte range ${r}:${r+15} is out of buffer bounds`);for(let i=0;i<16;i++)e[r+i]=n[i];return e}return Nt(n)}o(b_,"v6");var Dk=b_;function Hd(t){let e=typeof t=="string"?En(t):t,r=w_(e);return typeof t=="string"?Nt(r):r}o(Hd,"v6ToV1");function w_(t){return Uint8Array.of((t[3]&15)<<4|t[4]>>4&15,(t[4]&15)<<4|(t[5]&240)>>4,(t[5]&15)<<4|t[6]&15,t[7],(t[1]&15)<<4|(t[2]&240)>>4,(t[2]&15)<<4|(t[3]&240)>>4,16|(t[0]&240)>>4,(t[0]&15)<<4|(t[1]&240)>>4,t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15])}o(w_,"_v6ToV1");var Wd={};function S_(t,e,r){let n;if(t)n=Ck(t.random??t.rng?.()??Dn(),t.msecs,t.seq,e,r);else{let i=Date.now(),s=Dn();v_(Wd,i,s),n=Ck(s,Wd.msecs,Wd.seq,e,r)}return e??Nt(n)}o(S_,"v7");function v_(t,e,r){return t.msecs??=-1/0,t.seq??=0,e>t.msecs?(t.seq=r[6]<<23|r[7]<<16|r[8]<<8|r[9],t.msecs=e):(t.seq=t.seq+1|0,t.seq===0&&t.msecs++),t}o(v_,"updateV7State");function Ck(t,e,r,n,i=0){if(t.length<16)throw new Error("Random bytes length must be >= 16");if(!n)n=new Uint8Array(16),i=0;else if(i<0||i+16>n.length)throw new RangeError(`UUID byte range ${i}:${i+15} is out of buffer bounds`);return e??=Date.now(),r??=t[6]*127<<24|t[7]<<16|t[8]<<8|t[9],n[i++]=e/1099511627776&255,n[i++]=e/4294967296&255,n[i++]=e/16777216&255,n[i++]=e/65536&255,n[i++]=e/256&255,n[i++]=e&255,n[i++]=112|r>>>28&15,n[i++]=r>>>20&255,n[i++]=128|r>>>14&63,n[i++]=r>>>6&255,n[i++]=r<<2&255|t[10]&3,n[i++]=t[11],n[i++]=t[12],n[i++]=t[13],n[i++]=t[14],n[i++]=t[15],n}o(Ck,"v7Bytes");var Ok=S_;function k_(t){if(!pi(t))throw TypeError("Invalid UUID");return parseInt(t.slice(14,15),16)}o(k_,"version");var Ik=k_;var E_=o(t=>pl.nanoid(t),"shortId"),D_=o(()=>no.v4(),"uuid4"),C_=o((t,e=no.v5.DNS)=>no.v5(t,e),"uuid5"),O_=o((t="uni",e=24)=>`${t}_${"x".repeat(e).replace(/[xy]/g,r=>{let n=Math.random()*16|0;return(r==="x"?n:n&3|8).toString(16)})}`,"uni"),I_=o((t="uni",e=8)=>`${t}${"x".repeat(e).replace(/[xy]/g,r=>{let n=Math.random()*16|0;return(r==="x"?n:n&3|8).toString(16)})}`,"uniSimple");var N_=o((t,e)=>{if(typeof globalThis<"u"&&globalThis.crypto&&globalThis.crypto.getRandomValues){let r=e-t,n=new Uint32Array(1);return globalThis.crypto.getRandomValues(n),t+n[0]%r}else return Math.floor(Math.random()*(e-t))+t},"getRandomInt"),P_=o((t,e,r)=>{let n={A:"ABCDEFGHIJKLMNOPQRSTUVWXYZ",a:"abcdefghijklmnopqrstuvwxyz",0:"0123456789","!":"!@#$%^&*()_+-=[]{}|;:,.<>?","*":"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789!@#$%^&*()_+-=[]{}|;:,.<>?"},i=t;e&&e>t.length?i=t.repeat(Math.ceil(e/t.length)).slice(0,e):e&&(i=t.slice(0,e));let s="";for(let a of i)if(n[a]){let l=n[a],c=N_(0,l.length);s+=l[c]}else s+=a;return s},"customRandomatic"),L_=o((t,e,r)=>P_(t,e,r),"createRandomString"),__=o(()=>Mr.uni(),"createCryptoRandomString");var cp={};se(cp,{makeEnvObject:()=>R_});var R_=o(function(t){let e={},r=/(.*)=(.*)/;if(typeof t<"u")for(let n of t){let i=r.exec(n);i&&(e[i[1]]=i[2])}return e},"makeEnvObject");var up={};se(up,{decodeText:()=>$_,decodeUtf8OrWindows1252:()=>B_,decodeWindows1252:()=>qd,encodeWindows1252:()=>A_,encodingOfLabel:()=>_k,isValidUtf8:()=>Lk,windows1252ByteOf:()=>Pk});var Mk=[8364,129,8218,402,8222,8230,8224,8225,710,8240,352,8249,338,141,381,143,144,8216,8217,8220,8221,8226,8211,8212,732,8482,353,8250,339,157,382,376],F_=new Map(Mk.map((t,e)=>[t,128+e])),Nk=4096,qd=o(t=>{let e="";for(let r=0;r<t.length;r+=Nk){let n=t.subarray(r,r+Nk);e+=String.fromCharCode(...Array.from(n,i=>i>=128&&i<=159?Mk[i-128]:i))}return e},"decodeWindows1252"),Pk=o(t=>t<=127||t>=160&&t<=255?t:F_.get(t),"windows1252ByteOf"),A_=o(t=>{let e=[],r=[],n=0;for(let i of t){let s=Pk(i.codePointAt(0)??0);s===void 0?(e.push(63),r.push({offset:n,character:i})):e.push(s),n+=i.length}return{bytes:Uint8Array.from(e),replaced:r}},"encodeWindows1252"),Lk=o(t=>{try{return new TextDecoder("utf-8",{fatal:!0}).decode(t),!0}catch{return!1}},"isValidUtf8"),_k=o(t=>{try{return new TextDecoder(t).encoding}catch{return}},"encodingOfLabel"),$_=o((t,e,r={})=>{let n=_k(e);if(n!==void 0)return n==="windows-1252"?qd(t):new TextDecoder(n,{fatal:r.fatal??!1}).decode(t)},"decodeText"),B_=o(t=>Lk(t)?{text:new TextDecoder("utf-8").decode(t),encoding:"utf-8"}:{text:qd(t),encoding:"windows-1252"},"decodeUtf8OrWindows1252");var fp={};se(fp,{indent:()=>U_,indentWithPrefix:()=>z_,normalize:()=>H_});var Yd=o(t=>{let e=t.split(`
|
|
6
6
|
`);return j_(e)},"splitStringAtLineBreak"),Vd=o(t=>{let e="";for(let r of t)e=e+r+`
|
|
@@ -19,7 +19,7 @@ ${i}
|
|
|
19
19
|
`});++n<t.length;)n&&r.push({type:"text",value:`
|
|
20
20
|
`}),r.push(t[n]);return e&&t.length>0&&r.push({type:"text",value:`
|
|
21
21
|
`}),r}o(dF,"wrap");function FT(t){let e=0,r=t.charCodeAt(e);for(;r===9||r===32;)e++,r=t.charCodeAt(e);return t.slice(e)}o(FT,"trimMarkdownSpaceStart");function Tg(t,e){let r=AT(t,e),n=r.one(t,void 0),i=RT(r),s=Array.isArray(n)?{type:"root",children:n}:n||{type:"root",children:[]};return i&&("children"in s,s.children.push({type:"text",value:`
|
|
22
|
-
`},i)),s}o(Tg,"toHast");var $T=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"];var Nn=class{static{o(this,"Schema")}constructor(e,r,n){this.normal=r,this.property=e,n&&(this.space=n)}};Nn.prototype.normal={},Nn.prototype.property={},Nn.prototype.space=void 0;function Eg(t,e){let r={},n={};for(let i of t)Object.assign(r,i.property),Object.assign(n,i.normal);return new Nn(r,n,e)}o(Eg,"merge");function qs(t){return t.toLowerCase()}o(qs,"normalize");var at=class{static{o(this,"Info")}constructor(e,r){this.attribute=r,this.property=e}};at.prototype.attribute="",at.prototype.booleanish=!1,at.prototype.boolean=!1,at.prototype.commaOrSpaceSeparated=!1,at.prototype.commaSeparated=!1,at.prototype.defined=!1,at.prototype.mustUseProperty=!1,at.prototype.number=!1,at.prototype.overloadedBoolean=!1,at.prototype.property="",at.prototype.spaceSeparated=!1,at.prototype.space=void 0;var Ll={};se(Ll,{boolean:()=>ce,booleanish:()=>He,commaOrSpaceSeparated:()=>Ut,commaSeparated:()=>xi,number:()=>H,overloadedBoolean:()=>ah,spaceSeparated:()=>Me});var gF=0,ce=yo(),He=yo(),ah=yo(),H=yo(),Me=yo(),xi=yo(),Ut=yo();function yo(){return 2**++gF}o(yo,"increment");var Dg=Object.keys(Ll),xo=class extends at{static{o(this,"DefinedInfo")}constructor(e,r,n,i){let s=-1;if(super(e,r),BT(this,"space",i),typeof n=="number")for(;++s<Dg.length;){let a=Dg[s];BT(this,Dg[s],(n&Ll[a])===Ll[a])}}};xo.prototype.defined=!0;function BT(t,e,r){r&&(t[e]=r)}o(BT,"mark");function gr(t){let e={},r={};for(let[n,i]of Object.entries(t.properties)){let s=new xo(n,t.transform(t.attributes||{},n),i,t.space);t.mustUseProperty&&t.mustUseProperty.includes(n)&&(s.mustUseProperty=!0),e[n]=s,r[qs(n)]=n,r[qs(s.attribute)]=n}return new Nn(e,r,t.space)}o(gr,"create");var Cg=gr({properties:{ariaActiveDescendant:null,ariaAtomic:He,ariaAutoComplete:null,ariaBusy:He,ariaChecked:He,ariaColCount:H,ariaColIndex:H,ariaColSpan:H,ariaControls:Me,ariaCurrent:null,ariaDescribedBy:Me,ariaDetails:null,ariaDisabled:He,ariaDropEffect:Me,ariaErrorMessage:null,ariaExpanded:He,ariaFlowTo:Me,ariaGrabbed:He,ariaHasPopup:null,ariaHidden:He,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Me,ariaLevel:H,ariaLive:null,ariaModal:He,ariaMultiLine:He,ariaMultiSelectable:He,ariaOrientation:null,ariaOwns:Me,ariaPlaceholder:null,ariaPosInSet:H,ariaPressed:He,ariaReadOnly:He,ariaRelevant:null,ariaRequired:He,ariaRoleDescription:Me,ariaRowCount:H,ariaRowIndex:H,ariaRowSpan:H,ariaSelected:He,ariaSetSize:H,ariaSort:null,ariaValueMax:H,ariaValueMin:H,ariaValueNow:H,ariaValueText:null,role:null},transform(t,e){return e==="role"?e:"aria-"+e.slice(4).toLowerCase()}});function lh(t,e){return e in t?t[e]:e}o(lh,"caseSensitiveTransform");function ch(t,e){return lh(t,e.toLowerCase())}o(ch,"caseInsensitiveTransform");var jT=gr({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:xi,acceptCharset:Me,accessKey:Me,action:null,allow:null,allowFullScreen:ce,allowPaymentRequest:ce,allowUserMedia:ce,alt:null,as:null,async:ce,autoCapitalize:null,autoComplete:Me,autoFocus:ce,autoPlay:ce,blocking:Me,capture:null,charSet:null,checked:ce,cite:null,className:Me,cols:H,colSpan:null,content:null,contentEditable:He,controls:ce,controlsList:Me,coords:H|xi,crossOrigin:null,data:null,dateTime:null,decoding:null,default:ce,defer:ce,dir:null,dirName:null,disabled:ce,download:ah,draggable:He,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:ce,formTarget:null,headers:Me,height:H,hidden:ah,high:H,href:null,hrefLang:null,htmlFor:Me,httpEquiv:Me,id:null,imageSizes:null,imageSrcSet:null,inert:ce,inputMode:null,integrity:null,is:null,isMap:ce,itemId:null,itemProp:Me,itemRef:Me,itemScope:ce,itemType:Me,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:ce,low:H,manifest:null,max:null,maxLength:H,media:null,method:null,min:null,minLength:H,multiple:ce,muted:ce,name:null,nonce:null,noModule:ce,noValidate:ce,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:ce,optimum:H,pattern:null,ping:Me,placeholder:null,playsInline:ce,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:ce,referrerPolicy:null,rel:Me,required:ce,reversed:ce,rows:H,rowSpan:H,sandbox:Me,scope:null,scoped:ce,seamless:ce,selected:ce,shadowRootClonable:ce,shadowRootDelegatesFocus:ce,shadowRootMode:null,shape:null,size:H,sizes:null,slot:null,span:H,spellCheck:He,src:null,srcDoc:null,srcLang:null,srcSet:null,start:H,step:null,style:null,tabIndex:H,target:null,title:null,translate:null,type:null,typeMustMatch:ce,useMap:null,value:He,width:H,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Me,axis:null,background:null,bgColor:null,border:H,borderColor:null,bottomMargin:H,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:ce,declare:ce,event:null,face:null,frame:null,frameBorder:null,hSpace:H,leftMargin:H,link:null,longDesc:null,lowSrc:null,marginHeight:H,marginWidth:H,noResize:ce,noHref:ce,noShade:ce,noWrap:ce,object:null,profile:null,prompt:null,rev:null,rightMargin:H,rules:null,scheme:null,scrolling:He,standby:null,summary:null,text:null,topMargin:H,valueType:null,version:null,vAlign:null,vLink:null,vSpace:H,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:ce,disableRemotePlayback:ce,prefix:null,property:null,results:H,security:null,unselectable:null},space:"html",transform:ch});var UT=gr({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:Ut,accentHeight:H,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:H,amplitude:H,arabicForm:null,ascent:H,attributeName:null,attributeType:null,azimuth:H,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:H,by:null,calcMode:null,capHeight:H,className:Me,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:H,diffuseConstant:H,direction:null,display:null,dur:null,divisor:H,dominantBaseline:null,download:ce,dx:null,dy:null,edgeMode:null,editable:null,elevation:H,enableBackground:null,end:null,event:null,exponent:H,externalResourcesRequired:null,fill:null,fillOpacity:H,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:xi,g2:xi,glyphName:xi,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:H,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:H,horizOriginX:H,horizOriginY:H,id:null,ideographic:H,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:H,k:H,k1:H,k2:H,k3:H,k4:H,kernelMatrix:Ut,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:H,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:H,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:H,overlineThickness:H,paintOrder:null,panose1:null,path:null,pathLength:H,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Me,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:H,pointsAtY:H,pointsAtZ:H,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Ut,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Ut,rev:Ut,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Ut,requiredFeatures:Ut,requiredFonts:Ut,requiredFormats:Ut,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:H,specularExponent:H,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:H,strikethroughThickness:H,string:null,stroke:null,strokeDashArray:Ut,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:H,strokeOpacity:H,strokeWidth:null,style:null,surfaceScale:H,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Ut,tabIndex:H,tableValues:null,target:null,targetX:H,targetY:H,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Ut,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:H,underlineThickness:H,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:H,values:null,vAlphabetic:H,vMathematical:H,vectorEffect:null,vHanging:H,vIdeographic:H,version:null,vertAdvY:H,vertOriginX:H,vertOriginY:H,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:H,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:lh});var Og=gr({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 Ig=gr({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:ch});var Mg=gr({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(t,e){return"xml:"+e.slice(3).toLowerCase()}});var yF=/[A-Z]/g,zT=/-[a-z]/g,xF=/^data[-\w.:]+$/i;function Ng(t,e){let r=qs(e),n=e,i=at;if(r in t.normal)return t.property[t.normal[r]];if(r.length>4&&r.slice(0,4)==="data"&&xF.test(e)){if(e.charAt(4)==="-"){let s=e.slice(5).replace(zT,wF);n="data"+s.charAt(0).toUpperCase()+s.slice(1)}else{let s=e.slice(4);if(!zT.test(s)){let a=s.replace(yF,bF);a.charAt(0)!=="-"&&(a="-"+a),e="data"+a}}i=xo}return new i(n,e)}o(Ng,"find");function bF(t){return"-"+t.toLowerCase()}o(bF,"kebab");function wF(t){return t.charAt(1).toUpperCase()}o(wF,"camelcase");var HT=Eg([Cg,jT,Og,Ig,Mg],"html"),uh=Eg([Cg,UT,Og,Ig,Mg],"svg");var WT={}.hasOwnProperty;function fh(t,e){let r=e||{};function n(i,...s){let a=n.invalid,l=n.handlers;if(i&&WT.call(i,t)){let c=String(i[t]);a=WT.call(l,c)?l[c]:n.unknown}if(a)return a.call(this,i,...s)}return o(n,"one"),n.handlers=r.handlers||{},n.invalid=r.invalid,n.unknown=r.unknown,n}o(fh,"zwitch");var SF=/["&'<>`]/g,vF=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,kF=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,TF=/[|\\{}()[\]^$+*?.]/g,qT=new WeakMap;function Pg(t,e){if(t=t.replace(e.subset?EF(e.subset):SF,n),e.subset||e.escapeOnly)return t;return t.replace(vF,r).replace(kF,n);function r(i,s,a){return e.format((i.charCodeAt(0)-55296)*1024+i.charCodeAt(1)-56320+65536,a.charCodeAt(s+2),e)}function n(i,s,a){return e.format(i.charCodeAt(0),a.charCodeAt(s+1),e)}}o(Pg,"core");function EF(t){let e=qT.get(t);return e||(e=DF(t),qT.set(t,e)),e}o(EF,"charactersToExpressionCached");function DF(t){let e=[],r=-1;for(;++r<t.length;)e.push(t[r].replace(TF,"\\$&"));return new RegExp("(?:"+e.join("|")+")","g")}o(DF,"charactersToExpression");var CF=/[\dA-Fa-f]/;function YT(t,e,r){let n="&#x"+t.toString(16).toUpperCase();return r&&e&&!CF.test(String.fromCharCode(e))?n:n+";"}o(YT,"toHexadecimal");var OF=/\d/;function VT(t,e,r){let n="&#"+String(t);return r&&e&&!OF.test(String.fromCharCode(e))?n:n+";"}o(VT,"toDecimal");var KT=["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 ph={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 GT=["cent","copy","divide","gt","lt","not","para","times"];var QT={}.hasOwnProperty,Lg={},hh;for(hh in ph)QT.call(ph,hh)&&(Lg[ph[hh]]=hh);var IF=/[^\dA-Za-z]/;function JT(t,e,r,n){let i=String.fromCharCode(t);if(QT.call(Lg,i)){let s=Lg[i],a="&"+s;return r&&KT.includes(s)&&!GT.includes(s)&&(!n||e&&e!==61&&IF.test(String.fromCharCode(e)))?a:a+";"}return""}o(JT,"toNamed");function XT(t,e,r){let n=YT(t,e,r.omitOptionalSemicolons),i;if((r.useNamedReferences||r.useShortestReferences)&&(i=JT(t,e,r.omitOptionalSemicolons,r.attribute)),(r.useShortestReferences||!i)&&r.useShortestReferences){let s=VT(t,e,r.omitOptionalSemicolons);s.length<n.length&&(n=s)}return i&&(!r.useShortestReferences||i.length<n.length)?i:n}o(XT,"formatSmart");function ZT(t){return"&#x"+t.toString(16).toUpperCase()+";"}o(ZT,"formatBasic");function Pn(t,e){return Pg(t,Object.assign({format:XT},e))}o(Pn,"stringifyEntities");function K2e(t,e){return Pg(t,Object.assign({format:ZT},e))}o(K2e,"stringifyEntitiesLight");var MF=/^>|^->|<!--|-->|--!>|<!-$/g,NF=[">"],PF=["<",">"];function eE(t,e,r,n){return n.settings.bogusComments?"<?"+Pn(t.value,Object.assign({},n.settings.characterReferences,{subset:NF}))+">":"<!--"+t.value.replace(MF,i)+"-->";function i(s){return Pn(s,Object.assign({},n.settings.characterReferences,{subset:PF}))}}o(eE,"comment");function tE(t,e,r,n){return"<!"+(n.settings.upperDoctype?"DOCTYPE":"doctype")+(n.settings.tightDoctype?"":" ")+"html>"}o(tE,"doctype");function Ys(t,e){let r=String(t);if(typeof e!="string")throw new TypeError("Expected character");let n=0,i=r.indexOf(e);for(;i!==-1;)n++,i=r.indexOf(e,i+e.length);return n}o(Ys,"ccount");function iFe(t){let e=[],r=String(t||""),n=r.indexOf(","),i=0,s=!1;for(;!s;){n===-1&&(n=r.length,s=!0);let a=r.slice(i,n).trim();(a||!s)&&e.push(a),i=n+1,n=r.indexOf(",",i)}return e}o(iFe,"parse");function rE(t,e){let r=e||{};return(t[t.length-1]===""?[...t,""]:t).join((r.padRight?" ":"")+","+(r.padLeft===!1?"":" ")).trim()}o(rE,"stringify");function aFe(t){let e=String(t||"").trim();return e?e.split(/[ \t\n\r\f]+/g):[]}o(aFe,"parse");function nE(t){return t.join(" ").trim()}o(nE,"stringify");var LF=/[ \t\n\f\r]/g;function bo(t){return typeof t=="object"?t.type==="text"?iE(t.value):!1:iE(t)}o(bo,"whitespace");function iE(t){return t.replace(LF,"")===""}o(iE,"empty");var Ve=oE(1),_g=oE(-1),_F=[];function oE(t){return e;function e(r,n,i){let s=r?r.children:_F,a=(n||0)+t,l=s[a];if(!i)for(;l&&bo(l);)a+=t,l=s[a];return l}}o(oE,"siblings");var RF={}.hasOwnProperty;function mh(t){return e;function e(r,n,i){return RF.call(t,r.tagName)&&t[r.tagName](r,n,i)}}o(mh,"omission");var _l=mh({body:AF,caption:Rg,colgroup:Rg,dd:UF,dt:jF,head:Rg,html:FF,li:BF,optgroup:zF,option:HF,p:$F,rp:sE,rt:sE,tbody:qF,td:aE,tfoot:YF,th:aE,thead:WF,tr:VF});function Rg(t,e,r){let n=Ve(r,e,!0);return!n||n.type!=="comment"&&!(n.type==="text"&&bo(n.value.charAt(0)))}o(Rg,"headOrColgroupOrCaption");function FF(t,e,r){let n=Ve(r,e);return!n||n.type!=="comment"}o(FF,"html");function AF(t,e,r){let n=Ve(r,e);return!n||n.type!=="comment"}o(AF,"body");function $F(t,e,r){let n=Ve(r,e);return n?n.type==="element"&&(n.tagName==="address"||n.tagName==="article"||n.tagName==="aside"||n.tagName==="blockquote"||n.tagName==="details"||n.tagName==="div"||n.tagName==="dl"||n.tagName==="fieldset"||n.tagName==="figcaption"||n.tagName==="figure"||n.tagName==="footer"||n.tagName==="form"||n.tagName==="h1"||n.tagName==="h2"||n.tagName==="h3"||n.tagName==="h4"||n.tagName==="h5"||n.tagName==="h6"||n.tagName==="header"||n.tagName==="hgroup"||n.tagName==="hr"||n.tagName==="main"||n.tagName==="menu"||n.tagName==="nav"||n.tagName==="ol"||n.tagName==="p"||n.tagName==="pre"||n.tagName==="section"||n.tagName==="table"||n.tagName==="ul"):!r||!(r.type==="element"&&(r.tagName==="a"||r.tagName==="audio"||r.tagName==="del"||r.tagName==="ins"||r.tagName==="map"||r.tagName==="noscript"||r.tagName==="video"))}o($F,"p");function BF(t,e,r){let n=Ve(r,e);return!n||n.type==="element"&&n.tagName==="li"}o(BF,"li");function jF(t,e,r){let n=Ve(r,e);return!!(n&&n.type==="element"&&(n.tagName==="dt"||n.tagName==="dd"))}o(jF,"dt");function UF(t,e,r){let n=Ve(r,e);return!n||n.type==="element"&&(n.tagName==="dt"||n.tagName==="dd")}o(UF,"dd");function sE(t,e,r){let n=Ve(r,e);return!n||n.type==="element"&&(n.tagName==="rp"||n.tagName==="rt")}o(sE,"rubyElement");function zF(t,e,r){let n=Ve(r,e);return!n||n.type==="element"&&n.tagName==="optgroup"}o(zF,"optgroup");function HF(t,e,r){let n=Ve(r,e);return!n||n.type==="element"&&(n.tagName==="option"||n.tagName==="optgroup")}o(HF,"option");function WF(t,e,r){let n=Ve(r,e);return!!(n&&n.type==="element"&&(n.tagName==="tbody"||n.tagName==="tfoot"))}o(WF,"thead");function qF(t,e,r){let n=Ve(r,e);return!n||n.type==="element"&&(n.tagName==="tbody"||n.tagName==="tfoot")}o(qF,"tbody");function YF(t,e,r){return!Ve(r,e)}o(YF,"tfoot");function VF(t,e,r){let n=Ve(r,e);return!n||n.type==="element"&&n.tagName==="tr"}o(VF,"tr");function aE(t,e,r){let n=Ve(r,e);return!n||n.type==="element"&&(n.tagName==="td"||n.tagName==="th")}o(aE,"cells");var lE=mh({body:QF,colgroup:JF,head:GF,html:KF,tbody:XF});function KF(t){let e=Ve(t,-1);return!e||e.type!=="comment"}o(KF,"html");function GF(t){let e=new Set;for(let n of t.children)if(n.type==="element"&&(n.tagName==="base"||n.tagName==="title")){if(e.has(n.tagName))return!1;e.add(n.tagName)}let r=t.children[0];return!r||r.type==="element"}o(GF,"head");function QF(t){let e=Ve(t,-1,!0);return!e||e.type!=="comment"&&!(e.type==="text"&&bo(e.value.charAt(0)))&&!(e.type==="element"&&(e.tagName==="meta"||e.tagName==="link"||e.tagName==="script"||e.tagName==="style"||e.tagName==="template"))}o(QF,"body");function JF(t,e,r){let n=_g(r,e),i=Ve(t,-1,!0);return r&&n&&n.type==="element"&&n.tagName==="colgroup"&&_l(n,r.children.indexOf(n),r)?!1:!!(i&&i.type==="element"&&i.tagName==="col")}o(JF,"colgroup");function XF(t,e,r){let n=_g(r,e),i=Ve(t,-1);return r&&n&&n.type==="element"&&(n.tagName==="thead"||n.tagName==="tbody")&&_l(n,r.children.indexOf(n),r)?!1:!!(i&&i.type==="element"&&i.tagName==="tr")}o(XF,"tbody");var dh={name:[[`
|
|
22
|
+
`},i)),s}o(Tg,"toHast");var $T=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"];var Nn=class{static{o(this,"Schema")}constructor(e,r,n){this.normal=r,this.property=e,n&&(this.space=n)}};Nn.prototype.normal={},Nn.prototype.property={},Nn.prototype.space=void 0;function Eg(t,e){let r={},n={};for(let i of t)Object.assign(r,i.property),Object.assign(n,i.normal);return new Nn(r,n,e)}o(Eg,"merge");function qs(t){return t.toLowerCase()}o(qs,"normalize");var at=class{static{o(this,"Info")}constructor(e,r){this.attribute=r,this.property=e}};at.prototype.attribute="",at.prototype.booleanish=!1,at.prototype.boolean=!1,at.prototype.commaOrSpaceSeparated=!1,at.prototype.commaSeparated=!1,at.prototype.defined=!1,at.prototype.mustUseProperty=!1,at.prototype.number=!1,at.prototype.overloadedBoolean=!1,at.prototype.property="",at.prototype.spaceSeparated=!1,at.prototype.space=void 0;var Ll={};se(Ll,{boolean:()=>ce,booleanish:()=>He,commaOrSpaceSeparated:()=>Ut,commaSeparated:()=>xi,number:()=>H,overloadedBoolean:()=>ah,spaceSeparated:()=>Ne});var gF=0,ce=yo(),He=yo(),ah=yo(),H=yo(),Ne=yo(),xi=yo(),Ut=yo();function yo(){return 2**++gF}o(yo,"increment");var Dg=Object.keys(Ll),xo=class extends at{static{o(this,"DefinedInfo")}constructor(e,r,n,i){let s=-1;if(super(e,r),BT(this,"space",i),typeof n=="number")for(;++s<Dg.length;){let a=Dg[s];BT(this,Dg[s],(n&Ll[a])===Ll[a])}}};xo.prototype.defined=!0;function BT(t,e,r){r&&(t[e]=r)}o(BT,"mark");function gr(t){let e={},r={};for(let[n,i]of Object.entries(t.properties)){let s=new xo(n,t.transform(t.attributes||{},n),i,t.space);t.mustUseProperty&&t.mustUseProperty.includes(n)&&(s.mustUseProperty=!0),e[n]=s,r[qs(n)]=n,r[qs(s.attribute)]=n}return new Nn(e,r,t.space)}o(gr,"create");var Cg=gr({properties:{ariaActiveDescendant:null,ariaAtomic:He,ariaAutoComplete:null,ariaBusy:He,ariaChecked:He,ariaColCount:H,ariaColIndex:H,ariaColSpan:H,ariaControls:Ne,ariaCurrent:null,ariaDescribedBy:Ne,ariaDetails:null,ariaDisabled:He,ariaDropEffect:Ne,ariaErrorMessage:null,ariaExpanded:He,ariaFlowTo:Ne,ariaGrabbed:He,ariaHasPopup:null,ariaHidden:He,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Ne,ariaLevel:H,ariaLive:null,ariaModal:He,ariaMultiLine:He,ariaMultiSelectable:He,ariaOrientation:null,ariaOwns:Ne,ariaPlaceholder:null,ariaPosInSet:H,ariaPressed:He,ariaReadOnly:He,ariaRelevant:null,ariaRequired:He,ariaRoleDescription:Ne,ariaRowCount:H,ariaRowIndex:H,ariaRowSpan:H,ariaSelected:He,ariaSetSize:H,ariaSort:null,ariaValueMax:H,ariaValueMin:H,ariaValueNow:H,ariaValueText:null,role:null},transform(t,e){return e==="role"?e:"aria-"+e.slice(4).toLowerCase()}});function lh(t,e){return e in t?t[e]:e}o(lh,"caseSensitiveTransform");function ch(t,e){return lh(t,e.toLowerCase())}o(ch,"caseInsensitiveTransform");var jT=gr({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:xi,acceptCharset:Ne,accessKey:Ne,action:null,allow:null,allowFullScreen:ce,allowPaymentRequest:ce,allowUserMedia:ce,alt:null,as:null,async:ce,autoCapitalize:null,autoComplete:Ne,autoFocus:ce,autoPlay:ce,blocking:Ne,capture:null,charSet:null,checked:ce,cite:null,className:Ne,cols:H,colSpan:null,content:null,contentEditable:He,controls:ce,controlsList:Ne,coords:H|xi,crossOrigin:null,data:null,dateTime:null,decoding:null,default:ce,defer:ce,dir:null,dirName:null,disabled:ce,download:ah,draggable:He,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:ce,formTarget:null,headers:Ne,height:H,hidden:ah,high:H,href:null,hrefLang:null,htmlFor:Ne,httpEquiv:Ne,id:null,imageSizes:null,imageSrcSet:null,inert:ce,inputMode:null,integrity:null,is:null,isMap:ce,itemId:null,itemProp:Ne,itemRef:Ne,itemScope:ce,itemType:Ne,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:ce,low:H,manifest:null,max:null,maxLength:H,media:null,method:null,min:null,minLength:H,multiple:ce,muted:ce,name:null,nonce:null,noModule:ce,noValidate:ce,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:ce,optimum:H,pattern:null,ping:Ne,placeholder:null,playsInline:ce,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:ce,referrerPolicy:null,rel:Ne,required:ce,reversed:ce,rows:H,rowSpan:H,sandbox:Ne,scope:null,scoped:ce,seamless:ce,selected:ce,shadowRootClonable:ce,shadowRootDelegatesFocus:ce,shadowRootMode:null,shape:null,size:H,sizes:null,slot:null,span:H,spellCheck:He,src:null,srcDoc:null,srcLang:null,srcSet:null,start:H,step:null,style:null,tabIndex:H,target:null,title:null,translate:null,type:null,typeMustMatch:ce,useMap:null,value:He,width:H,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Ne,axis:null,background:null,bgColor:null,border:H,borderColor:null,bottomMargin:H,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:ce,declare:ce,event:null,face:null,frame:null,frameBorder:null,hSpace:H,leftMargin:H,link:null,longDesc:null,lowSrc:null,marginHeight:H,marginWidth:H,noResize:ce,noHref:ce,noShade:ce,noWrap:ce,object:null,profile:null,prompt:null,rev:null,rightMargin:H,rules:null,scheme:null,scrolling:He,standby:null,summary:null,text:null,topMargin:H,valueType:null,version:null,vAlign:null,vLink:null,vSpace:H,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:ce,disableRemotePlayback:ce,prefix:null,property:null,results:H,security:null,unselectable:null},space:"html",transform:ch});var UT=gr({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:Ut,accentHeight:H,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:H,amplitude:H,arabicForm:null,ascent:H,attributeName:null,attributeType:null,azimuth:H,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:H,by:null,calcMode:null,capHeight:H,className:Ne,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:H,diffuseConstant:H,direction:null,display:null,dur:null,divisor:H,dominantBaseline:null,download:ce,dx:null,dy:null,edgeMode:null,editable:null,elevation:H,enableBackground:null,end:null,event:null,exponent:H,externalResourcesRequired:null,fill:null,fillOpacity:H,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:xi,g2:xi,glyphName:xi,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:H,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:H,horizOriginX:H,horizOriginY:H,id:null,ideographic:H,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:H,k:H,k1:H,k2:H,k3:H,k4:H,kernelMatrix:Ut,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:H,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:H,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:H,overlineThickness:H,paintOrder:null,panose1:null,path:null,pathLength:H,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Ne,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:H,pointsAtY:H,pointsAtZ:H,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Ut,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Ut,rev:Ut,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Ut,requiredFeatures:Ut,requiredFonts:Ut,requiredFormats:Ut,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:H,specularExponent:H,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:H,strikethroughThickness:H,string:null,stroke:null,strokeDashArray:Ut,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:H,strokeOpacity:H,strokeWidth:null,style:null,surfaceScale:H,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Ut,tabIndex:H,tableValues:null,target:null,targetX:H,targetY:H,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Ut,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:H,underlineThickness:H,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:H,values:null,vAlphabetic:H,vMathematical:H,vectorEffect:null,vHanging:H,vIdeographic:H,version:null,vertAdvY:H,vertOriginX:H,vertOriginY:H,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:H,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:lh});var Og=gr({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 Ig=gr({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:ch});var Mg=gr({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(t,e){return"xml:"+e.slice(3).toLowerCase()}});var yF=/[A-Z]/g,zT=/-[a-z]/g,xF=/^data[-\w.:]+$/i;function Ng(t,e){let r=qs(e),n=e,i=at;if(r in t.normal)return t.property[t.normal[r]];if(r.length>4&&r.slice(0,4)==="data"&&xF.test(e)){if(e.charAt(4)==="-"){let s=e.slice(5).replace(zT,wF);n="data"+s.charAt(0).toUpperCase()+s.slice(1)}else{let s=e.slice(4);if(!zT.test(s)){let a=s.replace(yF,bF);a.charAt(0)!=="-"&&(a="-"+a),e="data"+a}}i=xo}return new i(n,e)}o(Ng,"find");function bF(t){return"-"+t.toLowerCase()}o(bF,"kebab");function wF(t){return t.charAt(1).toUpperCase()}o(wF,"camelcase");var HT=Eg([Cg,jT,Og,Ig,Mg],"html"),uh=Eg([Cg,UT,Og,Ig,Mg],"svg");var WT={}.hasOwnProperty;function fh(t,e){let r=e||{};function n(i,...s){let a=n.invalid,l=n.handlers;if(i&&WT.call(i,t)){let c=String(i[t]);a=WT.call(l,c)?l[c]:n.unknown}if(a)return a.call(this,i,...s)}return o(n,"one"),n.handlers=r.handlers||{},n.invalid=r.invalid,n.unknown=r.unknown,n}o(fh,"zwitch");var SF=/["&'<>`]/g,vF=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,kF=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,TF=/[|\\{}()[\]^$+*?.]/g,qT=new WeakMap;function Pg(t,e){if(t=t.replace(e.subset?EF(e.subset):SF,n),e.subset||e.escapeOnly)return t;return t.replace(vF,r).replace(kF,n);function r(i,s,a){return e.format((i.charCodeAt(0)-55296)*1024+i.charCodeAt(1)-56320+65536,a.charCodeAt(s+2),e)}function n(i,s,a){return e.format(i.charCodeAt(0),a.charCodeAt(s+1),e)}}o(Pg,"core");function EF(t){let e=qT.get(t);return e||(e=DF(t),qT.set(t,e)),e}o(EF,"charactersToExpressionCached");function DF(t){let e=[],r=-1;for(;++r<t.length;)e.push(t[r].replace(TF,"\\$&"));return new RegExp("(?:"+e.join("|")+")","g")}o(DF,"charactersToExpression");var CF=/[\dA-Fa-f]/;function YT(t,e,r){let n="&#x"+t.toString(16).toUpperCase();return r&&e&&!CF.test(String.fromCharCode(e))?n:n+";"}o(YT,"toHexadecimal");var OF=/\d/;function VT(t,e,r){let n="&#"+String(t);return r&&e&&!OF.test(String.fromCharCode(e))?n:n+";"}o(VT,"toDecimal");var KT=["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 ph={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 GT=["cent","copy","divide","gt","lt","not","para","times"];var QT={}.hasOwnProperty,Lg={},hh;for(hh in ph)QT.call(ph,hh)&&(Lg[ph[hh]]=hh);var IF=/[^\dA-Za-z]/;function JT(t,e,r,n){let i=String.fromCharCode(t);if(QT.call(Lg,i)){let s=Lg[i],a="&"+s;return r&&KT.includes(s)&&!GT.includes(s)&&(!n||e&&e!==61&&IF.test(String.fromCharCode(e)))?a:a+";"}return""}o(JT,"toNamed");function XT(t,e,r){let n=YT(t,e,r.omitOptionalSemicolons),i;if((r.useNamedReferences||r.useShortestReferences)&&(i=JT(t,e,r.omitOptionalSemicolons,r.attribute)),(r.useShortestReferences||!i)&&r.useShortestReferences){let s=VT(t,e,r.omitOptionalSemicolons);s.length<n.length&&(n=s)}return i&&(!r.useShortestReferences||i.length<n.length)?i:n}o(XT,"formatSmart");function ZT(t){return"&#x"+t.toString(16).toUpperCase()+";"}o(ZT,"formatBasic");function Pn(t,e){return Pg(t,Object.assign({format:XT},e))}o(Pn,"stringifyEntities");function K2e(t,e){return Pg(t,Object.assign({format:ZT},e))}o(K2e,"stringifyEntitiesLight");var MF=/^>|^->|<!--|-->|--!>|<!-$/g,NF=[">"],PF=["<",">"];function eE(t,e,r,n){return n.settings.bogusComments?"<?"+Pn(t.value,Object.assign({},n.settings.characterReferences,{subset:NF}))+">":"<!--"+t.value.replace(MF,i)+"-->";function i(s){return Pn(s,Object.assign({},n.settings.characterReferences,{subset:PF}))}}o(eE,"comment");function tE(t,e,r,n){return"<!"+(n.settings.upperDoctype?"DOCTYPE":"doctype")+(n.settings.tightDoctype?"":" ")+"html>"}o(tE,"doctype");function Ys(t,e){let r=String(t);if(typeof e!="string")throw new TypeError("Expected character");let n=0,i=r.indexOf(e);for(;i!==-1;)n++,i=r.indexOf(e,i+e.length);return n}o(Ys,"ccount");function iFe(t){let e=[],r=String(t||""),n=r.indexOf(","),i=0,s=!1;for(;!s;){n===-1&&(n=r.length,s=!0);let a=r.slice(i,n).trim();(a||!s)&&e.push(a),i=n+1,n=r.indexOf(",",i)}return e}o(iFe,"parse");function rE(t,e){let r=e||{};return(t[t.length-1]===""?[...t,""]:t).join((r.padRight?" ":"")+","+(r.padLeft===!1?"":" ")).trim()}o(rE,"stringify");function aFe(t){let e=String(t||"").trim();return e?e.split(/[ \t\n\r\f]+/g):[]}o(aFe,"parse");function nE(t){return t.join(" ").trim()}o(nE,"stringify");var LF=/[ \t\n\f\r]/g;function bo(t){return typeof t=="object"?t.type==="text"?iE(t.value):!1:iE(t)}o(bo,"whitespace");function iE(t){return t.replace(LF,"")===""}o(iE,"empty");var Ve=oE(1),_g=oE(-1),_F=[];function oE(t){return e;function e(r,n,i){let s=r?r.children:_F,a=(n||0)+t,l=s[a];if(!i)for(;l&&bo(l);)a+=t,l=s[a];return l}}o(oE,"siblings");var RF={}.hasOwnProperty;function mh(t){return e;function e(r,n,i){return RF.call(t,r.tagName)&&t[r.tagName](r,n,i)}}o(mh,"omission");var _l=mh({body:AF,caption:Rg,colgroup:Rg,dd:UF,dt:jF,head:Rg,html:FF,li:BF,optgroup:zF,option:HF,p:$F,rp:sE,rt:sE,tbody:qF,td:aE,tfoot:YF,th:aE,thead:WF,tr:VF});function Rg(t,e,r){let n=Ve(r,e,!0);return!n||n.type!=="comment"&&!(n.type==="text"&&bo(n.value.charAt(0)))}o(Rg,"headOrColgroupOrCaption");function FF(t,e,r){let n=Ve(r,e);return!n||n.type!=="comment"}o(FF,"html");function AF(t,e,r){let n=Ve(r,e);return!n||n.type!=="comment"}o(AF,"body");function $F(t,e,r){let n=Ve(r,e);return n?n.type==="element"&&(n.tagName==="address"||n.tagName==="article"||n.tagName==="aside"||n.tagName==="blockquote"||n.tagName==="details"||n.tagName==="div"||n.tagName==="dl"||n.tagName==="fieldset"||n.tagName==="figcaption"||n.tagName==="figure"||n.tagName==="footer"||n.tagName==="form"||n.tagName==="h1"||n.tagName==="h2"||n.tagName==="h3"||n.tagName==="h4"||n.tagName==="h5"||n.tagName==="h6"||n.tagName==="header"||n.tagName==="hgroup"||n.tagName==="hr"||n.tagName==="main"||n.tagName==="menu"||n.tagName==="nav"||n.tagName==="ol"||n.tagName==="p"||n.tagName==="pre"||n.tagName==="section"||n.tagName==="table"||n.tagName==="ul"):!r||!(r.type==="element"&&(r.tagName==="a"||r.tagName==="audio"||r.tagName==="del"||r.tagName==="ins"||r.tagName==="map"||r.tagName==="noscript"||r.tagName==="video"))}o($F,"p");function BF(t,e,r){let n=Ve(r,e);return!n||n.type==="element"&&n.tagName==="li"}o(BF,"li");function jF(t,e,r){let n=Ve(r,e);return!!(n&&n.type==="element"&&(n.tagName==="dt"||n.tagName==="dd"))}o(jF,"dt");function UF(t,e,r){let n=Ve(r,e);return!n||n.type==="element"&&(n.tagName==="dt"||n.tagName==="dd")}o(UF,"dd");function sE(t,e,r){let n=Ve(r,e);return!n||n.type==="element"&&(n.tagName==="rp"||n.tagName==="rt")}o(sE,"rubyElement");function zF(t,e,r){let n=Ve(r,e);return!n||n.type==="element"&&n.tagName==="optgroup"}o(zF,"optgroup");function HF(t,e,r){let n=Ve(r,e);return!n||n.type==="element"&&(n.tagName==="option"||n.tagName==="optgroup")}o(HF,"option");function WF(t,e,r){let n=Ve(r,e);return!!(n&&n.type==="element"&&(n.tagName==="tbody"||n.tagName==="tfoot"))}o(WF,"thead");function qF(t,e,r){let n=Ve(r,e);return!n||n.type==="element"&&(n.tagName==="tbody"||n.tagName==="tfoot")}o(qF,"tbody");function YF(t,e,r){return!Ve(r,e)}o(YF,"tfoot");function VF(t,e,r){let n=Ve(r,e);return!n||n.type==="element"&&n.tagName==="tr"}o(VF,"tr");function aE(t,e,r){let n=Ve(r,e);return!n||n.type==="element"&&(n.tagName==="td"||n.tagName==="th")}o(aE,"cells");var lE=mh({body:QF,colgroup:JF,head:GF,html:KF,tbody:XF});function KF(t){let e=Ve(t,-1);return!e||e.type!=="comment"}o(KF,"html");function GF(t){let e=new Set;for(let n of t.children)if(n.type==="element"&&(n.tagName==="base"||n.tagName==="title")){if(e.has(n.tagName))return!1;e.add(n.tagName)}let r=t.children[0];return!r||r.type==="element"}o(GF,"head");function QF(t){let e=Ve(t,-1,!0);return!e||e.type!=="comment"&&!(e.type==="text"&&bo(e.value.charAt(0)))&&!(e.type==="element"&&(e.tagName==="meta"||e.tagName==="link"||e.tagName==="script"||e.tagName==="style"||e.tagName==="template"))}o(QF,"body");function JF(t,e,r){let n=_g(r,e),i=Ve(t,-1,!0);return r&&n&&n.type==="element"&&n.tagName==="colgroup"&&_l(n,r.children.indexOf(n),r)?!1:!!(i&&i.type==="element"&&i.tagName==="col")}o(JF,"colgroup");function XF(t,e,r){let n=_g(r,e),i=Ve(t,-1);return r&&n&&n.type==="element"&&(n.tagName==="thead"||n.tagName==="tbody")&&_l(n,r.children.indexOf(n),r)?!1:!!(i&&i.type==="element"&&i.tagName==="tr")}o(XF,"tbody");var dh={name:[[`
|
|
23
23
|
\f\r &/=>`.split(""),`
|
|
24
24
|
\f\r "&'/=>\``.split("")],[`\0
|
|
25
25
|
\f\r "&'/<=>`.split(""),`\0
|
|
@@ -283,7 +283,7 @@ ${r.comment}`:r.comment}this.doc.range[2]=r.offset;break}default:this.errors.pus
|
|
|
283
283
|
`));return c===null?null:{data:c,content:n.slice(a+1).join(`
|
|
284
284
|
`)}}s.push(l)}return null},"readBlock"),ob=o(async t=>QC(t,YU),"readFrontmatterBlock"),JC=o((t,e)=>t??{data:{},content:e},"orWholeSource"),XC=o(async t=>JC(await ob(t),t),"parseFrontmatter"),ZC=o(async(t,e)=>{if(typeof e!="string"||e.trim()==="")throw new TypeError("Comment prefix must be a non-blank string.");let r=e.trimEnd(),n=await QC(t,i=>i.startsWith(e)?i.slice(e.length):i===r?"":null);return JC(n,t)},"parseCommentFrontmatter"),eO=o(async(t,e)=>`---
|
|
285
285
|
${Object.keys(e).length===0?"":await xa.objectToYamlString(e)}---
|
|
286
|
-
${t}`,"stringifyFrontmatter");var KU=new Set(["root","blockquote","listItem","footnoteDefinition"]),sb=o((t,e)=>{if(!("children"in t))return;let r=t;r.children.forEach((n,i)=>{let s=e(n,r);s&&(r.children[i]=s),sb(s??n,e)})},"replaceChildren"),GU=o(()=>t=>{sb(t,(e,r)=>{if(e.type!=="html")return;let n={type:"text",value:e.value};return KU.has(r.type)?{type:"paragraph",children:[n]}:n})},"rawHtmlAsText"),QU=o(()=>t=>{sb(t,e=>{if(e.type==="image")return{type:"link",url:e.url,...e.title?{title:e.title}:{},children:[{type:"text",value:e.alt||e.url}]};if(e.type==="imageReference")return{type:"linkReference",identifier:e.identifier,label:e.label,referenceType:e.referenceType,children:[{type:"text",value:e.alt||e.label||e.identifier}]}})},"imagesAsLinks"),gm=o(async(t,e={})=>{if(typeof t!="string")throw new TypeError("Markdown source must be a string.");let r=e.frontmatter!==!1,n=r?await ob(t):null,i=ib(!r||n?[]:["toml"]);return e.rawHtml==="text"&&i.use(GU),e.images===!1&&i.use(QU),e.breaks===!0&&i.use(Us),{html:(await i.use(Xs).use(Vs).process(n?n.content:t)).toString(),frontmatterData:n?n.data:{}}},"renderMarkdownToHtml");var ym=class t{static{o(this,"MdParsedResult")}constructor(){this.originalString="",this.title="",this.html="",this.frontmatterData={}}static async createFromMarkdownString(e){let r=new t;return await r.updateFromMarkdownString(e),r}async updateFromMarkdownString(e){this.originalString=e;let r=await gm(e);this.frontmatterData=r.frontmatterData,this.html=r.html}};var ab=class t{static{o(this,"SmartMarkdown")}static async easyMarkdownToHtml(e){return(await new t().getMdParsedResultFromMarkdown(e)).html}static async markdownToHtml(e,r={}){return(await gm(e,r)).html}constructor(){}async getMdParsedResultFromMarkdown(e){return await ym.createFromMarkdownString(e)}htmlToMarkdown(e){let r=new wi({headingStyle:"atx",codeBlockStyle:"fenced"});return r.use(fy.gfm),r.turndown(e)}};var Ao={};se(Ao,{SmartRouter:()=>mb});var hb=qn(aO(),1);var bm=class{static{o(this,"QueryParams")}constructor(){}getAllAsObject(){let e=new URLSearchParams(window.location.search);return Object.fromEntries(e.entries())}setQueryParam(e,r,n="replace"){var i=new URLSearchParams(window.location.search);i.set(e,r),n==="push"?history.pushState(null,null,"?"+i.toString()):history.replaceState(null,null,"?"+i.toString())}deleteQueryParam(e,r="replace"){var n=new URLSearchParams(window.location.search);n.delete(e),r==="push"?history.pushState(null,null,"?"+n.toString()):history.replaceState(null,null,"?"+n.toString())}getQueryParam(e){return this.getAllAsObject()[e]}};var lGe=o(t=>{console.log(`%c[Router]%c ${t}`,"color: rgb(255, 105, 100);","color: inherit")},"routeLog"),mb=class t{static{o(this,"SmartRouter")}constructor(e,r=""){this.options={debug:!1},this.queryParams=new bm,this.routes=[],this.options={...this.options,...e},this.basePath=r,this.popstateListener=n=>{n.preventDefault(),this._handleRouteState()},window.addEventListener("popstate",this.popstateListener)}createSubRouter(e,r){let n=`${this.basePath}${e}`;return new t({...this.options,...r},n)}async pushUrl(e="/",r={}){let n=`${this.basePath}${e}`;n!==window.location.pathname?window.history.pushState(r,window.document.title,n):window.history.replaceState(r,window.document.title,n),await this._handleRouteState()}on(e,r){let n=`${this.basePath}${e}`,i={matchFunction:hb.match(n),handler:r};return this.routes.push(i),o(()=>{this.routes.splice(this.routes.indexOf(i),1)},"removeFunction")}async _handleRouteState(){let e=window.location.pathname,r=this.routes.filter(n=>!!n.matchFunction(e));for(let n of r){let i=n.matchFunction(e);n.handler({...i.valueOf(),queryParams:this.queryParams.getAllAsObject()})}}destroy(){window.removeEventListener("popstate",this.popstateListener),this.routes=[]}};var $o={};se($o,{Smartstate:()=>wb,StateAction:()=>Dc,StatePart:()=>Cc,StateProcess:()=>Ea,attachContextProvider:()=>S4,computed:()=>bb});var Ec={};se(Ec,{createSha256Hasher:()=>xb,sha256FromBuffer:()=>pO,sha256FromStream:()=>y4,sha256FromString:()=>g4,sha256FromStringSync:()=>d4});var a4=Symbol.for("nodejs.util.inspect.custom"),Tc=class extends Error{static{o(this,"SmartCryptoError")}constructor(e){super(`SmartCrypto operation failed (${e}).`),this.name="SmartCryptoError",this.code=e,Object.defineProperty(this,"cause",{configurable:!1,enumerable:!1,value:void 0,writable:!1})}toJSON(){return{name:"SmartCryptoError",code:this.code,message:this.message}}[a4](){return this.toJSON()}},qe=o(t=>new Tc(t),"createSmartCryptoError");var l4=/^[A-Za-z0-9_-]*$/,c4=o(()=>{if(!globalThis.crypto?.subtle||typeof globalThis.crypto.getRandomValues!="function")throw qe("CRYPTO_OPERATION_FAILED");return globalThis.crypto},"getWebCrypto"),dGe=o((t,e="INVALID_ARGUMENT")=>{if(!(t instanceof Uint8Array))throw qe(e);return new Uint8Array(t)},"requireUint8Array"),gGe=o((t,e,r)=>{if(t.byteLength!==e)throw t.fill(0),qe(r);return t},"requireLength"),db=o(t=>{if(t instanceof Uint8Array)return t;if(t instanceof ArrayBuffer)return new Uint8Array(t);throw qe("INVALID_ARGUMENT")},"requireHashInput"),gb=o(t=>{if(typeof t!="string")throw qe("INVALID_ARGUMENT");return t},"requireString"),lO=o(t=>{let e="";for(let r of t)e+=r.toString(16).padStart(2,"0");return e},"encodeHex"),cO=o(async(t,e)=>{if(typeof t?.getReader!="function")throw qe("INVALID_ARGUMENT");let r=t.getReader();try{for(;;){let{value:n,done:i}=await r.read();if(i)return e.digest();if(!(n instanceof Uint8Array)){let s=qe("INVALID_ARGUMENT");throw await r.cancel(s),s}e.update(n)}}finally{r.releaseLock()}},"hashReadableStream"),u4=o(t=>{let e=new Uint8Array(t.byteLength);return e.set(t),e.buffer},"toArrayBuffer"),yGe=o((...t)=>{let e=t.reduce((i,s)=>i+s.byteLength,0),r=new Uint8Array(e),n=0;for(let i of t)r.set(i,n),n+=i.byteLength;return r},"concatBytes"),uO=o(async t=>{let e=u4(t);try{return new Uint8Array(await c4().subtle.digest("SHA-256",e))}finally{new Uint8Array(e).fill(0)}},"sha256"),xGe=o((t,e)=>{if(t.byteLength!==e.byteLength)return!1;let r=0;for(let n=0;n<t.byteLength;n++)r|=t[n]^e[n];return r===0},"bytesEqual"),bGe=o(t=>{let e=0;for(let r of t)e|=r;return e===0},"isAllZero"),f4=o(t=>{let e="";for(let n=0;n<t.byteLength;n+=32768)e+=String.fromCharCode(...t.subarray(n,n+32768));return btoa(e)},"encodeBase64"),p4=o(t=>f4(t).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/g,""),"encodeBase64Url"),wGe=o((t,e,r)=>{if(typeof t!="string")throw qe("INVALID_ENVELOPE");let n=Math.ceil(e*4/3);if(t.length>n)throw qe("SIZE_LIMIT_EXCEEDED");if(!l4.test(t)||t.length%4===1)throw qe("INVALID_ENVELOPE");try{let i=(4-t.length%4)%4,s=t.replace(/-/g,"+").replace(/_/g,"/")+"=".repeat(i),a=atob(s);if(a.length>e)throw qe("SIZE_LIMIT_EXCEEDED");if(r!==void 0&&a.length!==r)throw qe("INVALID_ENVELOPE");let l=new Uint8Array(a.length);for(let c=0;c<a.length;c++)l[c]=a.charCodeAt(c);if(p4(l)!==t)throw qe("INVALID_ENVELOPE");return l}catch(i){throw i instanceof Tc?i:qe("INVALID_ENVELOPE")}},"decodeCanonicalBase64Url"),SGe=o((t,e)=>{if(t===null||typeof t!="object"||Array.isArray(t))throw qe("INVALID_ENVELOPE");let r=Object.getPrototypeOf(t);if(r!==Object.prototype&&r!==null)throw qe("INVALID_ENVELOPE");let n=Reflect.ownKeys(t);if(n.some(s=>typeof s!="string"))throw qe("INVALID_ENVELOPE");let i=n;if(i.length!==e.length||[...i].sort().some((s,a)=>s!==[...e].sort()[a]))throw qe("INVALID_ENVELOPE");for(let s of i){let a=Object.getOwnPropertyDescriptor(t,s);if(!a?.enumerable||!("value"in a))throw qe("INVALID_ENVELOPE")}return t},"requirePlainDataObject");var h4=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),m4=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),bn=o((t,e)=>t>>>e|t<<32-e,"rotateRight"),fO=new TextEncoder,yb=class{static{o(this,"Sha256Hasher")}constructor(){this.state=new Uint32Array(m4),this.block=new Uint8Array(64),this.words=new Uint32Array(64),this.blockLength=0,this.totalBytesHigh=0,this.totalBytesLow=0,this.finalized=!1}update(e){this.requireOpen();let r=db(e);this.addByteLength(r.byteLength);let n=0;if(this.blockLength>0){let i=Math.min(64-this.blockLength,r.byteLength);this.block.set(r.subarray(0,i),this.blockLength),this.blockLength+=i,n=i,this.blockLength===64&&(this.processBlock(this.block,0),this.blockLength=0)}for(;n+64<=r.byteLength;)this.processBlock(r,n),n+=64;return n<r.byteLength&&(this.block.set(r.subarray(n),0),this.blockLength=r.byteLength-n),this}digest(){this.requireOpen(),this.finalized=!0;let e=this.blockLength<56?64:128,r=new Uint8Array(e);r.set(this.block.subarray(0,this.blockLength)),r[this.blockLength]=128;let n=(this.totalBytesHigh<<3|this.totalBytesLow>>>29)>>>0,i=this.totalBytesLow<<3>>>0,s=new DataView(r.buffer);s.setUint32(e-8,n,!1),s.setUint32(e-4,i,!1);for(let l=0;l<e;l+=64)this.processBlock(r,l);let a="";for(let l of this.state)a+=l.toString(16).padStart(8,"0");return this.block.fill(0),this.words.fill(0),this.state.fill(0),a}requireOpen(){if(this.finalized)throw qe("INVALID_STATE")}addByteLength(e){let r=this.totalBytesLow;this.totalBytesLow=this.totalBytesLow+e>>>0,this.totalBytesHigh=this.totalBytesHigh+Math.floor(e/4294967296)+(this.totalBytesLow<r?1:0)>>>0}processBlock(e,r){let n=this.words;for(let h=0;h<16;h++){let m=r+h*4;n[h]=(e[m]<<24|e[m+1]<<16|e[m+2]<<8|e[m+3])>>>0}for(let h=16;h<64;h++){let m=n[h-15],d=n[h-2],g=bn(m,7)^bn(m,18)^m>>>3,y=bn(d,17)^bn(d,19)^d>>>10;n[h]=n[h-16]+g+n[h-7]+y>>>0}let i=this.state[0],s=this.state[1],a=this.state[2],l=this.state[3],c=this.state[4],u=this.state[5],f=this.state[6],p=this.state[7];for(let h=0;h<64;h++){let m=bn(c,6)^bn(c,11)^bn(c,25),d=c&u^~c&f,g=p+m+d+h4[h]+n[h]>>>0,y=bn(i,2)^bn(i,13)^bn(i,22),x=i&s^i&a^s&a,T=y+x>>>0;p=f,f=u,u=c,c=l+g>>>0,l=a,a=s,s=i,i=g+T>>>0}this.state[0]=this.state[0]+i>>>0,this.state[1]=this.state[1]+s>>>0,this.state[2]=this.state[2]+a>>>0,this.state[3]=this.state[3]+l>>>0,this.state[4]=this.state[4]+c>>>0,this.state[5]=this.state[5]+u>>>0,this.state[6]=this.state[6]+f>>>0,this.state[7]=this.state[7]+p>>>0}},xb=o(()=>new yb,"createSha256Hasher"),d4=o(t=>xb().update(fO.encode(gb(t))).digest(),"sha256FromStringSync"),pO=o(async t=>lO(await uO(db(t))),"sha256FromBuffer"),g4=o(async t=>await pO(fO.encode(gb(t))),"sha256FromString"),y4=o(async t=>await cO(t,xb()),"sha256FromStream");var Dc=class{static{o(this,"StateAction")}constructor(e,r){this.statePartRef=e,this.actionDef=r}trigger(e){return this.statePartRef.dispatchAction(this,e)}};function b4(){return typeof document>"u"?Ba(!0):new we(t=>{t.next(!document.hidden);let e=o(()=>t.next(!document.hidden),"handler");return document.addEventListener("visibilitychange",e),()=>document.removeEventListener("visibilitychange",e)})}o(b4,"createVisibilityObservable");var Ea=class{static{o(this,"StateProcess")}constructor(e,r){this.statusSubject=new Qo("idle"),this.producerSubscription=null,this.autoPauseSubscription=null,this.processingQueue=Promise.resolve(),this.statePartRef=e,this.producerFn=r.producer,this.reducer=r.reducer,this.sideEffect=r.sideEffect,this.autoPauseOption=r.autoPause??!1}get status(){return this.statusSubject.getValue()}get status$(){return this.statusSubject.asObservable()}start(){if(this.status==="disposed")throw new Error("Cannot start a disposed process");this.status!=="running"&&(this.statusSubject.next("running"),this.subscribeProducer(),this.setupAutoPause())}pause(){if(this.status==="disposed")throw new Error("Cannot pause a disposed process");this.status==="running"&&(this.statusSubject.next("paused"),this.unsubscribeProducer())}resume(){if(this.status==="disposed")throw new Error("Cannot resume a disposed process");this.status==="paused"&&(this.statusSubject.next("running"),this.subscribeProducer())}dispose(){this.status!=="disposed"&&(this.unsubscribeProducer(),this.teardownAutoPause(),this.statusSubject.next("disposed"),this.statusSubject.complete(),this.statePartRef._removeProcess(this))}subscribeProducer(){this.unsubscribeProducer();let e=this.producerFn();this.producerSubscription=e.subscribe({next:o(r=>{this.processingQueue=this.processingQueue.then(async()=>{try{if(this.sideEffect)await this.sideEffect(r);else if(this.reducer){let n=this.statePartRef.getState();n!==void 0&&await this.statePartRef.setState(this.reducer(n,r))}}catch(n){console.error("StateProcess value handling error:",n)}})},"next"),error:o(r=>{console.error("StateProcess producer error:",r),this.status==="running"&&(this.statusSubject.next("paused"),this.unsubscribeProducer())},"error")})}unsubscribeProducer(){this.producerSubscription&&(this.producerSubscription.unsubscribe(),this.producerSubscription=null)}setupAutoPause(){if(this.teardownAutoPause(),!this.autoPauseOption)return;let e=this.autoPauseOption==="visibility"?b4():this.autoPauseOption;this.autoPauseSubscription=e.subscribe(r=>{!r&&this.status==="running"?this.pause():r&&this.status==="paused"&&this.resume()})}teardownAutoPause(){this.autoPauseSubscription&&(this.autoPauseSubscription.unsubscribe(),this.autoPauseSubscription=null)}};var hO=o(t=>{let e=Object.getPrototypeOf(t);return e===Object.prototype||e===null},"isPlainObject"),wm=o((t,e)=>{let r=new WeakMap,n=new WeakMap,i=o((s,a)=>{if(Object.is(s,a))return!0;if(s===null||a===null||typeof s!="object"||typeof a!="object")return!1;if(s instanceof Date||a instanceof Date)return s instanceof Date&&a instanceof Date&&Object.is(s.getTime(),a.getTime());let l=Array.isArray(s),c=Array.isArray(a);if(l!==c||!l&&(!hO(s)||!hO(a)))return!1;let u=r.get(s);if(u)return u===a;let f=n.get(a);if(f)return f===s;if(r.set(s,a),n.set(a,s),l&&c){if(s.length!==a.length)return!1;for(let g=0;g<s.length;g++)if(!i(s[g],a[g]))return!1;return!0}let p=s,h=a,m=Object.keys(p),d=Object.keys(h);if(m.length!==d.length)return!1;for(let g of m)if(!Object.prototype.hasOwnProperty.call(h,g)||!i(p[g],h[g]))return!1;return!0},"compare");return i(t,e)},"isStateSelectionEqual");function w4(t){return new we(e=>{if(t.aborted){e.next(),e.complete();return}let r=o(()=>{e.next(),e.complete()},"handler");return t.addEventListener("abort",r),()=>t.removeEventListener("abort",r)})}o(w4,"fromAbortSignal");var Cc=class t{static{o(this,"StatePart")}static{this.MAX_NESTED_DISPATCH_DEPTH=10}constructor(e,r){this.state=new Qo(void 0),this.disposed=!1,this.cumulativeDeferred=Q.cumulativeDefer(),this.mutationQueue=Promise.resolve(),this.pendingCumulativeNotification=null,this.webStore=null,this.middlewares=[],this.processes=[],this.selectorCache=new WeakMap,this.defaultSelectObservable=null,this.name=e,r&&(this.webStoreOptions=r)}async init(){if(this.webStoreOptions){this.webStore=new Nr.WebStore(this.webStoreOptions),await this.webStore.init();let e=await this.webStore.get(String(this.name));e&&this.validateState(e)&&(this.stateStore=e,await this.notifyChange())}}getState(){return this.stateStore}addMiddleware(e){return this.middlewares.push(e),()=>{let r=this.middlewares.indexOf(e);r!==-1&&this.middlewares.splice(r,1)}}async setState(e){if(this.disposed)throw new Error(`StatePart '${this.name}' has been disposed`);return this.mutationQueue=this.mutationQueue.then(()=>this.applyState(e),()=>this.applyState(e))}async applyState(e){let r=e;for(let n of this.middlewares)r=await n(r,this.stateStore);if(!this.validateState(r))throw new Error(`Invalid state structure for state part '${this.name}'`);return this.webStore&&await this.webStore.set(String(this.name),r),this.stateStore=r,await this.notifyChange(),this.stateStore}validateState(e){return e!=null}async notifyChange(){let e=this.stateStore;if(e===void 0)return;if(this.smartstateRef?.isBatching){this.smartstateRef.registerPendingNotification(this);return}let r=o(async n=>Ec.sha256FromStringSync(er.stableOneWayStringify(n)),"createStateHash");try{let n=await r(e);if(this.lastStateNotificationPayloadHash&&n===this.lastStateNotificationPayloadHash)return;this.lastStateNotificationPayloadHash=n}catch(n){console.error(`State hash computation failed for '${this.name}':`,n)}this.state.next(e)}notifyChangeCumulative(){this.pendingCumulativeNotification&&clearTimeout(this.pendingCumulativeNotification),this.pendingCumulativeNotification=setTimeout(()=>{this.pendingCumulativeNotification=null,this.stateStore!==void 0&&this.notifyChange().catch(e=>{console.error(`notifyChangeCumulative failed for '${this.name}':`,e)})},0)}select(e,r){let n=r?.signal!=null;if(!n){if(e){if(this.selectorCache.has(e))return this.selectorCache.get(e)}else if(this.defaultSelectObservable)return this.defaultSelectObservable}let i=e||(c=>c),s=Symbol("selector-error"),a=this.state.pipe(Ne.rxjs.ops.filter(c=>c!==void 0),Ne.rxjs.ops.map(c=>{try{return i(c)}catch(u){return console.error(`Selector error in state part '${this.name}':`,u),s}}),Ne.rxjs.ops.filter(c=>c!==s),ts(wm));if(n)return a=a.pipe(rs(w4(r.signal))),a;let l=a.pipe(mu({bufferSize:1,refCount:!0}));return e?this.selectorCache.set(e,l):this.defaultSelectObservable=l,l}createAction(e){return new Dc(this,e)}createActionContext(e){let r=this;return{dispatch:o(async(n,i)=>{if(e>=t.MAX_NESTED_DISPATCH_DEPTH)throw new Error(`Maximum nested action dispatch depth (${t.MAX_NESTED_DISPATCH_DEPTH}) exceeded. Check for circular action dispatches.`);let s=r.createActionContext(e+1),a=await n.actionDef(r,i,s);return r.applyState(a)},"dispatch")}}async dispatchAction(e,r){if(this.disposed)throw new Error(`StatePart '${this.name}' has been disposed`);await this.cumulativeDeferred.promise;let n=o(async()=>{let i=this.createActionContext(0),s=await e.actionDef(this,r,i);return this.applyState(s)},"execute");return this.mutationQueue=this.mutationQueue.then(n,n)}async waitUntilPresent(e,r){let n,i;typeof r=="number"?n=r:r&&(n=r.timeoutMs,i=r.signal);let s=Q.defer(),a=this.select(e),l=!1;if(i?.aborted)throw new Error("Aborted");let c=a.subscribe(p=>{p!=null&&!l&&(l=!0,s.resolve(p))}),u;n&&(u=setTimeout(()=>{l||(l=!0,c.unsubscribe(),s.reject(new Error(`waitUntilPresent timed out after ${n}ms`)))},n));let f=i?()=>{l||(l=!0,c.unsubscribe(),u&&clearTimeout(u),s.reject(new Error("Aborted")))}:void 0;i&&f&&i.addEventListener("abort",f);try{return await s.promise}finally{c.unsubscribe(),u&&clearTimeout(u),i&&f&&i.removeEventListener("abort",f)}}async stateSetup(e){let r=e(this);this.cumulativeDeferred.addPromise(r),await this.setState(await r)}createProcess(e){if(this.disposed)throw new Error(`StatePart '${this.name}' has been disposed`);let r=new Ea(this,e);return this.processes.push(r),e.autoStart&&r.start(),r}createScheduledAction(e){if(this.disposed)throw new Error(`StatePart '${this.name}' has been disposed`);let r=new Ea(this,{producer:o(()=>sd(e.intervalMs),"producer"),sideEffect:o(async()=>{await e.action.trigger(e.payload)},"sideEffect"),autoPause:e.autoPause??!1});return this.processes.push(r),r.start(),r}_removeProcess(e){let r=this.processes.indexOf(e);r!==-1&&this.processes.splice(r,1)}dispose(){if(!this.disposed){this.disposed=!0;for(let e of[...this.processes])e.dispose();this.processes.length=0,this.state.complete(),this.mutationQueue=Promise.resolve(),this.pendingCumulativeNotification&&(clearTimeout(this.pendingCumulativeNotification),this.pendingCumulativeNotification=null),this.middlewares.length=0,this.selectorCache=new WeakMap,this.defaultSelectObservable=null,this.webStore=null,this.smartstateRef=void 0,this.stateStore=void 0}}};function bb(t,e){return od(t.map(r=>r.select())).pipe(Xr(r=>e(...r)),ts(wm))}o(bb,"computed");var wb=class{static{o(this,"Smartstate")}constructor(){this.statePartMap={},this.pendingStatePartCreation=new Map,this.batchDepth=0,this.isFlushing=!1,this.pendingNotifications=new Set}get isBatching(){return this.batchDepth>0}registerPendingNotification(e){this.pendingNotifications.add(e)}async batch(e){this.batchDepth++;try{await e()}finally{if(this.batchDepth--,this.batchDepth===0&&!this.isFlushing){this.isFlushing=!0;try{for(;this.pendingNotifications.size>0;){let r=[...this.pendingNotifications];this.pendingNotifications.clear();for(let n of r)try{await n.notifyChange()}catch(i){console.error("Error flushing notification for state part:",i)}}}finally{this.isFlushing=!1}}}}computed(e,r){return bb(e,r)}dispose(){for(let e of Object.keys(this.statePartMap)){let r=this.statePartMap[e];r&&r.dispose()}this.statePartMap={},this.pendingStatePartCreation.clear(),this.pendingNotifications.clear()}async getStatePart(e,r,n="soft"){let i=this.pendingStatePartCreation.get(e);if(i)return i;let s=this.statePartMap[e];if(s)switch(n){case"mandatory":throw new Error(`State part '${e}' already exists, but initMode is 'mandatory'`);case"force":s.dispose();break;default:return s}else if(r===void 0)throw new Error(`State part '${e}' does not exist and no initial state provided`);let a=this.createStatePart(e,r,n);this.pendingStatePartCreation.set(e,a);try{return await a}finally{this.pendingStatePartCreation.delete(e)}}async createStatePart(e,r,n="soft"){let i=new Cc(e,n==="persistent"?{dbName:"smartstate",storeName:e}:void 0);i.smartstateRef=this,await i.init();let s=i.getState();return n==="persistent"&&s!==void 0?await i.setState({...r,...s}):await i.setState(r),this.statePartMap[e]=i,i}};function S4(t,e){let{context:r,statePart:n,selectorFn:i}=e,s=new Set,a=n.select(i).subscribe(u=>{for(let f of s)f(u)}),l=o(()=>{let u=n.getState();if(u!==void 0)return i?i(u):u},"getValue"),c=o(u=>{let f=u,p=f.detail;if(!(!p||p.context!==r))if(f.stopPropagation(),p.subscribe){let h=p.callback;s.add(h);let m=o(()=>s.delete(h),"unsubscribe");h(l(),m)}else p.callback(l())},"handler");return t.addEventListener("context-request",c),()=>{t.removeEventListener("context-request",c),a.unsubscribe(),s.clear()}}o(S4,"attachContextProvider");var Bo={};se(Bo,{Smarturl:()=>Sb});var Sb=class t{static{o(this,"Smarturl")}static createFromUrl(e,r){let n=new URL(e),i={},s=[];n.search&&n.search.replace("?","").split("&").map(u=>{s.push({key:u.split("=")[0],value:u.split("=")[1]})});for(let u of s)i[u.key]=u.value;if(r?.searchParams)for(let u of Object.keys(r.searchParams))i[u]=r.searchParams[u];let a=n.pathname||"";if(Object.keys(i).length>0){a+="?";let u=!0;for(let f of Object.keys(i))u?u=!1:a+="&",a+=`${f}=${i[f]}`}let l={...n,href:n.href,origin:n.origin,protocol:n.protocol,username:n.username,password:n.password,host:n.host,hostname:n.hostname,port:n.port,path:a,pathname:n.pathname,search:n.search,searchParams:i,hash:n.hash};!l.port&&l.protocol==="https:"&&(l.port="443"),!l.port&&l.protocol==="http:"&&(l.port="80");let c=new t;return Object.assign(c,l),c}static createFromParsedUrl(e){let r=new t;return Object.assign(r,e),r}constructor(){this.searchParams={}}clone(){let e=new t;return Object.assign(e,this),e.searchParams={...this.searchParams},e}set(e,r){return this[e]=r,this}toString(){let e="";return this.username&&!this.password&&(e=`${this.username}@`),this.username&&this.password&&(e=`${this.username}:${this.password}@`),`${this.protocol}//${e}${this.hostname}:${this.port}${this.path}`}};var Fb={};se(Fb,{JsonLdTag:()=>jo,MetaTag:()=>kr,OpengraphTag:()=>Lt,Title:()=>Rb,WebSetup:()=>Oc});var _b={};se(_b,{business:()=>Tb,code:()=>Eb,container:()=>Db,content:()=>Ob,database:()=>vb,descriptors:()=>Cb,finance:()=>kb,general:()=>Ib,network:()=>Sm,saas:()=>Nb,storage:()=>Pb,website:()=>Lb});var Tb={};var vb={};var kb={};var Eb={};var Db={};var Cb={};var Ob={};var Ib={};var Sm={};se(Sm,{ICnameDescriptor:()=>Mb});var Mb=class{static{o(this,"ICnameDescriptor")}};var Nb={};var Pb={};var Lb={};var _i=class{static{o(this,"Tag")}constructor(){this.tagLevel="levelbound"}appendToDom(){!this.elementRef.parentElement&&!this.elementRef.parentNode&&document.getElementsByTagName("head")[0].appendChild(this.elementRef)}removeFromDom(){this.elementRef.parentElement?this.elementRef.parentElement.removeChild(this.elementRef):this.elementRef.parentNode&&this.elementRef.parentNode.removeChild(this.elementRef)}};var jo=class t extends _i{static{o(this,"JsonLdTag")}static createCompanyJsonLd(e){let r={"@context":"https://schema.org","@type":"Corporation",name:e.name,alternateName:e.name.replace(" GmbH",""),url:e.website,logo:e.logoUrl,contactPoint:{"@type":"ContactPoint",telephone:e.phone,contactType:"customer service",areaServed:"DE",availableLanguage:["en","German"]},sameAs:[]},n=e.socials?.find(a=>a.type==="facebook")?.url;n&&r.sameAs.push(n);let i=e.socials?.find(a=>a.type==="twitter")?.url;return i&&r.sameAs.push(i),new t(r)}static createNewsArticleJsonLd(e){let r={"@context":"https://schema.org","@type":"NewsArticle",mainEntityOfPage:{"@type":"WebPage","@id":window.location.href},headline:"Article headline",image:[e.featuredImageUrl],datePublished:new Date(e.timestamp).toISOString(),dateModified:new Date(e.timestamp).toISOString(),author:{"@type":"Person",name:`${e.author.firstName} ${e.author.surName}`},publisher:{"@type":"Organization",name:e.author.surName,logo:{"@type":"ImageObject",url:e.author.surName}},description:e.author.firstName};return new t(r)}static createProductJsonLd(e,r){let n={"@context":"https://schema.org","@type":"SoftwareApplication",name:e.name,description:e.description,operatingSystem:e.os,applicationCategory:e.category,offers:{"@type":"Offer",name:"User-based Plan",priceSpecification:{"@type":"PropertyValueSpecification",valueName:"Number of Users",valueRequired:!0,price:"4.99",priceCurrency:"EUR"}},publisher:r?this.createCompanyJsonLd(r).elementRef.textContent:void 0,screenshot:"https://www.social.io/screenshot.png",url:"https://www.social.io/"};return new t(n)}constructor(e){super();let r=document.createElement("script");r.type="application/ld+json",r.text=JSON.stringify(e),this.elementRef=r}};var Lt=class t extends _i{static{o(this,"OpengraphTag")}static createNewsArticleOgTags(e){let r=[];return r.push(new t("og:url",e.url??globalThis.location.href)),r.push(new t("og:title",e.title)),r.push(new t("og:description",e.content)),r.push(new t("og:image",e.featuredImageUrl??"")),r}static createProductOgTags(e){let r=[];return r.push(new t("og:type","product")),r.push(new t("og:url",globalThis.location.href)),r.push(new t("og:title",`${e.name} - ${e.slogan}`)),r.push(new t("og:site_name",e.name)),r.push(new t("og:description",e.description)),r.push(new t("og:image",e.logoLink)),r}static createCompanyOgTags(e){let r=[];return r.push(new t("og:type","company")),r.push(new t("og:url",globalThis.location.href)),r.push(new t("og:title",e.name)),r.push(new t("og:site_name",e.name)),r.push(new t("og:description",e.description)),r.push(new t("og:image",e.logoUrl??"")),r}constructor(e,r){super();let n=document.createElement("meta");n.setAttribute("property",e),n.content=r,this.elementRef=n}};var Da=class{static{o(this,"TagLevel")}set title(e){this.titleStore=e,this.state==="enabled"&&(document.title=this.titleStore)}get title(){return this.titleStore}constructor(e,r){this.tags=[],this.state="disabled",this.tagManagerRef=e,this.type=r}addTag(e){if(e instanceof Array)for(let r of e)this.addTag(r);else this.tags.push(e),this.state==="enabled"&&e.appendToDom()}async addCompanyInfo(e){this.addTag(jo.createCompanyJsonLd(e)),this.addTag(new Lt("og:type","business.business")),this.addTag(new Lt("og:title",e.name)),this.addTag(new Lt("og:url",e.website??"")),this.addTag(new Lt("og:image",e.logoUrl??"")),this.addTag(new Lt("business:contact_data:street_address",`${e.address.streetName} ${e.address.houseNumber}`)),this.addTag(new Lt("business:contact_data:locality",e.address.postalCode)),this.addTag(new Lt("business:contact_data:region",e.address.city)),this.addTag(new Lt("business:contact_data:postal_code",e.address.postalCode)),this.addTag(new Lt("business:contact_data:country_name",e.address.country))}addNewsArticleInfo(e){this.addTag(jo.createNewsArticleJsonLd(e)),this.addTag(Lt.createNewsArticleOgTags(e))}addProductInfo(e,r){this.addTag(jo.createProductJsonLd(e,r)),this.addTag(Lt.createProductOgTags(e))}async enable(){this.title&&(document.title=this.title);for(let e of this.tags)e.appendToDom();this.state="enabled"}async disable(){for(let e of this.tags)e.removeFromDom();this.state="disabled"}};var kr=class extends _i{static{o(this,"MetaTag")}constructor(e,r){super();let n=document.createElement("meta");n.name=e,n.content=r,this.elementRef=n}};var vm=class{static{o(this,"TagManager")}constructor(){this.globalLevel=new Da(this,"global"),this.baseLevel=new Da(this,"base")}async setup(e){switch(this.globalLevel.addTag(new kr("google","notranslate")),this.globalLevel.addTag(new kr("revisit-after","1 days")),e.twitterHandle&&(this.globalLevel.addTag(new kr("twitter:card","summary_large_image")),this.globalLevel.addTag(new kr("twitter:site",e.twitterHandle)),this.globalLevel.addTag(new kr("twitter:creator",e.twitterHandle))),this.baseLevel.title=e.title,e.description&&this.baseLevel.addTag(new kr("description",e.description)),e.canonicalDomain&&this.baseLevel.addTag(new kr("canonical",e.canonicalDomain)),!0){case(e.ldCompany&&!e.ldProduct):this.baseLevel.addCompanyInfo(e.ldCompany);break;case!!e.ldProduct:this.baseLevel.addProductInfo(e.ldProduct,e.ldCompany);break}await this.globalLevel.enable(),this.activeLevel=this.baseLevel,await this.activeLevel.enable()}async setSubPageLevel(e){let r=new Da(this,"subpage");return r.title=e.title,e.description&&r.addTag(new kr("description",e.description)),await this.activeLevel.disable(),this.activeLevel=r,await this.activeLevel.enable(),r}async revertToBaseLevel(){this.activeLevel!==this.baseLevel&&(await this.activeLevel.disable(),this.activeLevel=this.baseLevel,await this.activeLevel.enable())}};var Oc=class{static{o(this,"WebSetup")}constructor(e){this.tagManager=new vm,this.readyDeferred=Q.defer(),this.readyForSmartssrDeferred=Q.defer(),this.readyPromise=this.readyDeferred.promise,this.readyForSmartssrPromise=this.readyForSmartssrDeferred.promise,this.options=e,this.setup().then(()=>{this.readyDeferred.resolve(),this.options.smartssrWaitForReadySignal||this.readyForSmartssrDeferred.resolve()})}async setup(e){e&&(this.options=e),await this.tagManager.setup(this.options.metaObject)}revertToBaseLevel(){this.tagManager.revertToBaseLevel()}async setSubLevel(e){return await this.tagManager.setSubPageLevel(e)}flashTitle(e){}informReadyForSmartssr(){this.options.smartssrWaitForReadySignal||console.error("You have not indicated that you inform smartssr by a dedicated signal! Please consider doing so!"),this.readyForSmartssrDeferred.resolve()}};var Rb=class{static{o(this,"Title")}};var k4="1.3.17";function mO(t,e,r){return Math.max(t,Math.min(e,r))}o(mO,"clamp");function T4(t,e,r){return(1-r)*t+r*e}o(T4,"lerp");function E4(t,e,r,n){return T4(t,e,1-Math.exp(-r*n))}o(E4,"damp");function D4(t,e){return(t%e+e)%e}o(D4,"modulo");var C4=class{static{o(this,"Animate")}isRunning=!1;value=0;from=0;to=0;currentTime=0;lerp;duration;easing;onUpdate;advance(t){if(!this.isRunning)return;let e=!1;if(this.duration&&this.easing){this.currentTime+=t;let r=mO(0,this.currentTime/this.duration,1);e=r>=1;let n=e?1:this.easing(r);this.value=this.from+(this.to-this.from)*n}else this.lerp?(this.value=E4(this.value,this.to,this.lerp*60,t),Math.round(this.value)===this.to&&(this.value=this.to,e=!0)):(this.value=this.to,e=!0);e&&this.stop(),this.onUpdate?.(this.value,e)}stop(){this.isRunning=!1}fromTo(t,e,{lerp:r,duration:n,easing:i,onStart:s,onUpdate:a}){this.from=this.value=t,this.to=e,this.lerp=r,this.duration=n,this.easing=i,this.currentTime=0,this.isRunning=!0,s?.(),this.onUpdate=a}};function O4(t,e){let r;return function(...n){let i=this;clearTimeout(r),r=setTimeout(()=>{r=void 0,t.apply(i,n)},e)}}o(O4,"debounce");var I4=class{static{o(this,"Dimensions")}constructor(t,e,{autoResize:r=!0,debounce:n=250}={}){this.wrapper=t,this.content=e,r&&(this.debouncedResize=O4(this.resize,n),this.wrapper instanceof Window?window.addEventListener("resize",this.debouncedResize,!1):(this.wrapperResizeObserver=new ResizeObserver(this.debouncedResize),this.wrapperResizeObserver.observe(this.wrapper)),this.contentResizeObserver=new ResizeObserver(this.debouncedResize),this.contentResizeObserver.observe(this.content)),this.resize()}width=0;height=0;scrollHeight=0;scrollWidth=0;debouncedResize;wrapperResizeObserver;contentResizeObserver;destroy(){this.wrapperResizeObserver?.disconnect(),this.contentResizeObserver?.disconnect(),this.wrapper===window&&this.debouncedResize&&window.removeEventListener("resize",this.debouncedResize,!1)}resize=o(()=>{this.onWrapperResize(),this.onContentResize()},"resize");onWrapperResize=o(()=>{this.wrapper instanceof Window?(this.width=window.innerWidth,this.height=window.innerHeight):(this.width=this.wrapper.clientWidth,this.height=this.wrapper.clientHeight)},"onWrapperResize");onContentResize=o(()=>{this.wrapper instanceof Window?(this.scrollHeight=this.content.scrollHeight,this.scrollWidth=this.content.scrollWidth):(this.scrollHeight=this.wrapper.scrollHeight,this.scrollWidth=this.wrapper.scrollWidth)},"onContentResize");get limit(){return{x:this.scrollWidth-this.width,y:this.scrollHeight-this.height}}},dO=class{static{o(this,"Emitter")}events={};emit(t,...e){let r=this.events[t]||[];for(let n=0,i=r.length;n<i;n++)r[n]?.(...e)}on(t,e){return this.events[t]?.push(e)||(this.events[t]=[e]),()=>{this.events[t]=this.events[t]?.filter(r=>e!==r)}}off(t,e){this.events[t]=this.events[t]?.filter(r=>e!==r)}destroy(){this.events={}}},gO=100/6,Ri={passive:!1},M4=class{static{o(this,"VirtualScroll")}constructor(t,e={wheelMultiplier:1,touchMultiplier:1}){this.element=t,this.options=e,window.addEventListener("resize",this.onWindowResize,!1),this.onWindowResize(),this.element.addEventListener("wheel",this.onWheel,Ri),this.element.addEventListener("touchstart",this.onTouchStart,Ri),this.element.addEventListener("touchmove",this.onTouchMove,Ri),this.element.addEventListener("touchend",this.onTouchEnd,Ri)}touchStart={x:0,y:0};lastDelta={x:0,y:0};window={width:0,height:0};emitter=new dO;on(t,e){return this.emitter.on(t,e)}destroy(){this.emitter.destroy(),window.removeEventListener("resize",this.onWindowResize,!1),this.element.removeEventListener("wheel",this.onWheel,Ri),this.element.removeEventListener("touchstart",this.onTouchStart,Ri),this.element.removeEventListener("touchmove",this.onTouchMove,Ri),this.element.removeEventListener("touchend",this.onTouchEnd,Ri)}onTouchStart=o(t=>{let{clientX:e,clientY:r}=t.targetTouches?t.targetTouches[0]:t;this.touchStart.x=e,this.touchStart.y=r,this.lastDelta={x:0,y:0},this.emitter.emit("scroll",{deltaX:0,deltaY:0,event:t})},"onTouchStart");onTouchMove=o(t=>{let{clientX:e,clientY:r}=t.targetTouches?t.targetTouches[0]:t,n=-(e-this.touchStart.x)*this.options.touchMultiplier,i=-(r-this.touchStart.y)*this.options.touchMultiplier;this.touchStart.x=e,this.touchStart.y=r,this.lastDelta={x:n,y:i},this.emitter.emit("scroll",{deltaX:n,deltaY:i,event:t})},"onTouchMove");onTouchEnd=o(t=>{this.emitter.emit("scroll",{deltaX:this.lastDelta.x,deltaY:this.lastDelta.y,event:t})},"onTouchEnd");onWheel=o(t=>{let{deltaX:e,deltaY:r,deltaMode:n}=t,i=n===1?gO:n===2?this.window.width:1,s=n===1?gO:n===2?this.window.height:1;e*=i,r*=s,e*=this.options.wheelMultiplier,r*=this.options.wheelMultiplier,this.emitter.emit("scroll",{deltaX:e,deltaY:r,event:t})},"onWheel");onWindowResize=o(()=>{this.window={width:window.innerWidth,height:window.innerHeight}},"onWindowResize")},yO=o(t=>Math.min(1,1.001-Math.pow(2,-10*t)),"defaultEasing"),Ic=class{static{o(this,"Lenis")}_isScrolling=!1;_isStopped=!1;_isLocked=!1;_preventNextNativeScrollEvent=!1;_resetVelocityTimeout=null;_rafId=null;isTouching;time=0;userData={};lastVelocity=0;velocity=0;direction=0;options;targetScroll;animatedScroll;animate=new C4;emitter=new dO;dimensions;virtualScroll;constructor({wrapper:t=window,content:e=document.documentElement,eventsTarget:r=t,smoothWheel:n=!0,syncTouch:i=!1,syncTouchLerp:s=.075,touchInertiaExponent:a=1.7,duration:l,easing:c,lerp:u=.1,infinite:f=!1,orientation:p="vertical",gestureOrientation:h=p==="horizontal"?"both":"vertical",touchMultiplier:m=1,wheelMultiplier:d=1,autoResize:g=!0,prevent:y,virtualScroll:x,overscroll:T=!0,autoRaf:E=!1,anchors:L=!1,autoToggle:P=!1,allowNestedScroll:D=!1,__experimental__naiveDimensions:A=!1,naiveDimensions:F=A,stopInertiaOnNavigate:z=!1}={}){window.lenisVersion=k4,(!t||t===document.documentElement)&&(t=window),typeof l=="number"&&typeof c!="function"?c=yO:typeof c=="function"&&typeof l!="number"&&(l=1),this.options={wrapper:t,content:e,eventsTarget:r,smoothWheel:n,syncTouch:i,syncTouchLerp:s,touchInertiaExponent:a,duration:l,easing:c,lerp:u,infinite:f,gestureOrientation:h,orientation:p,touchMultiplier:m,wheelMultiplier:d,autoResize:g,prevent:y,virtualScroll:x,overscroll:T,autoRaf:E,anchors:L,autoToggle:P,allowNestedScroll:D,naiveDimensions:F,stopInertiaOnNavigate:z},this.dimensions=new I4(t,e,{autoResize:g}),this.updateClassName(),this.targetScroll=this.animatedScroll=this.actualScroll,this.options.wrapper.addEventListener("scroll",this.onNativeScroll,!1),this.options.wrapper.addEventListener("scrollend",this.onScrollEnd,{capture:!0}),(this.options.anchors||this.options.stopInertiaOnNavigate)&&this.options.wrapper.addEventListener("click",this.onClick,!1),this.options.wrapper.addEventListener("pointerdown",this.onPointerDown,!1),this.virtualScroll=new M4(r,{touchMultiplier:m,wheelMultiplier:d}),this.virtualScroll.on("scroll",this.onVirtualScroll),this.options.autoToggle&&(this.checkOverflow(),this.rootElement.addEventListener("transitionend",this.onTransitionEnd,{passive:!0})),this.options.autoRaf&&(this._rafId=requestAnimationFrame(this.raf))}destroy(){this.emitter.destroy(),this.options.wrapper.removeEventListener("scroll",this.onNativeScroll,!1),this.options.wrapper.removeEventListener("scrollend",this.onScrollEnd,{capture:!0}),this.options.wrapper.removeEventListener("pointerdown",this.onPointerDown,!1),(this.options.anchors||this.options.stopInertiaOnNavigate)&&this.options.wrapper.removeEventListener("click",this.onClick,!1),this.virtualScroll.destroy(),this.dimensions.destroy(),this.cleanUpClassName(),this._rafId&&cancelAnimationFrame(this._rafId)}on(t,e){return this.emitter.on(t,e)}off(t,e){return this.emitter.off(t,e)}onScrollEnd=o(t=>{t instanceof CustomEvent||(this.isScrolling==="smooth"||this.isScrolling===!1)&&t.stopPropagation()},"onScrollEnd");dispatchScrollendEvent=o(()=>{this.options.wrapper.dispatchEvent(new CustomEvent("scrollend",{bubbles:this.options.wrapper===window,detail:{lenisScrollEnd:!0}}))},"dispatchScrollendEvent");get overflow(){let t=this.isHorizontal?"overflow-x":"overflow-y";return getComputedStyle(this.rootElement)[t]}checkOverflow(){["hidden","clip"].includes(this.overflow)?this.internalStop():this.internalStart()}onTransitionEnd=o(t=>{t.propertyName.includes("overflow")&&this.checkOverflow()},"onTransitionEnd");setScroll(t){this.isHorizontal?this.options.wrapper.scrollTo({left:t,behavior:"instant"}):this.options.wrapper.scrollTo({top:t,behavior:"instant"})}onClick=o(t=>{let r=t.composedPath().filter(n=>n instanceof HTMLAnchorElement&&n.getAttribute("href"));if(this.options.anchors){let n=r.find(i=>i.getAttribute("href")?.includes("#"));if(n){let i=n.getAttribute("href");if(i){let s=typeof this.options.anchors=="object"&&this.options.anchors?this.options.anchors:void 0,a=`#${i.split("#")[1]}`;this.scrollTo(a,s)}}}this.options.stopInertiaOnNavigate&&r.find(i=>i.host===window.location.host)&&this.reset()},"onClick");onPointerDown=o(t=>{t.button===1&&this.reset()},"onPointerDown");onVirtualScroll=o(t=>{if(typeof this.options.virtualScroll=="function"&&this.options.virtualScroll(t)===!1)return;let{deltaX:e,deltaY:r,event:n}=t;if(this.emitter.emit("virtual-scroll",{deltaX:e,deltaY:r,event:n}),n.ctrlKey||n.lenisStopPropagation)return;let i=n.type.includes("touch"),s=n.type.includes("wheel");this.isTouching=n.type==="touchstart"||n.type==="touchmove";let a=e===0&&r===0;if(this.options.syncTouch&&i&&n.type==="touchstart"&&a&&!this.isStopped&&!this.isLocked){this.reset();return}let c=this.options.gestureOrientation==="vertical"&&r===0||this.options.gestureOrientation==="horizontal"&&e===0;if(a||c)return;let u=n.composedPath();u=u.slice(0,u.indexOf(this.rootElement));let f=this.options.prevent;if(u.find(y=>y instanceof HTMLElement&&(typeof f=="function"&&f?.(y)||y.hasAttribute?.("data-lenis-prevent")||i&&y.hasAttribute?.("data-lenis-prevent-touch")||s&&y.hasAttribute?.("data-lenis-prevent-wheel")||this.options.allowNestedScroll&&this.checkNestedScroll(y,{deltaX:e,deltaY:r}))))return;if(this.isStopped||this.isLocked){n.cancelable&&n.preventDefault();return}if(!(this.options.syncTouch&&i||this.options.smoothWheel&&s)){this.isScrolling="native",this.animate.stop(),n.lenisStopPropagation=!0;return}let h=r;this.options.gestureOrientation==="both"?h=Math.abs(r)>Math.abs(e)?r:e:this.options.gestureOrientation==="horizontal"&&(h=e),(!this.options.overscroll||this.options.infinite||this.options.wrapper!==window&&this.limit>0&&(this.animatedScroll>0&&this.animatedScroll<this.limit||this.animatedScroll===0&&r>0||this.animatedScroll===this.limit&&r<0))&&(n.lenisStopPropagation=!0),n.cancelable&&n.preventDefault();let m=i&&this.options.syncTouch,g=i&&n.type==="touchend";g&&(h=Math.sign(this.velocity)*Math.pow(Math.abs(this.velocity),this.options.touchInertiaExponent)),this.scrollTo(this.targetScroll+h,{programmatic:!1,...m?{lerp:g?this.options.syncTouchLerp:1}:{lerp:this.options.lerp,duration:this.options.duration,easing:this.options.easing}})},"onVirtualScroll");resize(){this.dimensions.resize(),this.animatedScroll=this.targetScroll=this.actualScroll,this.emit()}emit(){this.emitter.emit("scroll",this)}onNativeScroll=o(()=>{if(this._resetVelocityTimeout!==null&&(clearTimeout(this._resetVelocityTimeout),this._resetVelocityTimeout=null),this._preventNextNativeScrollEvent){this._preventNextNativeScrollEvent=!1;return}if(this.isScrolling===!1||this.isScrolling==="native"){let t=this.animatedScroll;this.animatedScroll=this.targetScroll=this.actualScroll,this.lastVelocity=this.velocity,this.velocity=this.animatedScroll-t,this.direction=Math.sign(this.animatedScroll-t),this.isStopped||(this.isScrolling="native"),this.emit(),this.velocity!==0&&(this._resetVelocityTimeout=setTimeout(()=>{this.lastVelocity=this.velocity,this.velocity=0,this.isScrolling=!1,this.emit()},400))}},"onNativeScroll");reset(){this.isLocked=!1,this.isScrolling=!1,this.animatedScroll=this.targetScroll=this.actualScroll,this.lastVelocity=this.velocity=0,this.animate.stop()}start(){if(this.isStopped){if(this.options.autoToggle){this.rootElement.style.removeProperty("overflow");return}this.internalStart()}}internalStart(){this.isStopped&&(this.reset(),this.isStopped=!1,this.emit())}stop(){if(!this.isStopped){if(this.options.autoToggle){this.rootElement.style.setProperty("overflow","clip");return}this.internalStop()}}internalStop(){this.isStopped||(this.reset(),this.isStopped=!0,this.emit())}raf=o(t=>{let e=t-(this.time||t);this.time=t,this.animate.advance(e*.001),this.options.autoRaf&&(this._rafId=requestAnimationFrame(this.raf))},"raf");scrollTo(t,{offset:e=0,immediate:r=!1,lock:n=!1,programmatic:i=!0,lerp:s=i?this.options.lerp:void 0,duration:a=i?this.options.duration:void 0,easing:l=i?this.options.easing:void 0,onStart:c,onComplete:u,force:f=!1,userData:p}={}){if(!((this.isStopped||this.isLocked)&&!f)){if(typeof t=="string"&&["top","left","start","#"].includes(t))t=0;else if(typeof t=="string"&&["bottom","right","end"].includes(t))t=this.limit;else{let h;if(typeof t=="string"?(h=document.querySelector(t),h||(t==="#top"?t=0:console.warn("Lenis: Target not found",t))):t instanceof HTMLElement&&t?.nodeType&&(h=t),h){if(this.options.wrapper!==window){let d=this.rootElement.getBoundingClientRect();e-=this.isHorizontal?d.left:d.top}let m=h.getBoundingClientRect();t=(this.isHorizontal?m.left:m.top)+this.animatedScroll}}if(typeof t=="number"){if(t+=e,t=Math.round(t),this.options.infinite){if(i){this.targetScroll=this.animatedScroll=this.scroll;let h=t-this.animatedScroll;h>this.limit/2?t=t-this.limit:h<-this.limit/2&&(t=t+this.limit)}}else t=mO(0,t,this.limit);if(t===this.targetScroll){c?.(this),u?.(this);return}if(this.userData=p??{},r){this.animatedScroll=this.targetScroll=t,this.setScroll(this.scroll),this.reset(),this.preventNextNativeScrollEvent(),this.emit(),u?.(this),this.userData={},requestAnimationFrame(()=>{this.dispatchScrollendEvent()});return}i||(this.targetScroll=t),typeof a=="number"&&typeof l!="function"?l=yO:typeof l=="function"&&typeof a!="number"&&(a=1),this.animate.fromTo(this.animatedScroll,t,{duration:a,easing:l,lerp:s,onStart:o(()=>{n&&(this.isLocked=!0),this.isScrolling="smooth",c?.(this)},"onStart"),onUpdate:o((h,m)=>{this.isScrolling="smooth",this.lastVelocity=this.velocity,this.velocity=h-this.animatedScroll,this.direction=Math.sign(this.velocity),this.animatedScroll=h,this.setScroll(this.scroll),i&&(this.targetScroll=h),m||this.emit(),m&&(this.reset(),this.emit(),u?.(this),this.userData={},requestAnimationFrame(()=>{this.dispatchScrollendEvent()}),this.preventNextNativeScrollEvent())},"onUpdate")})}}}preventNextNativeScrollEvent(){this._preventNextNativeScrollEvent=!0,requestAnimationFrame(()=>{this._preventNextNativeScrollEvent=!1})}checkNestedScroll(t,{deltaX:e,deltaY:r}){let n=Date.now(),i=t._lenis??={},s,a,l,c,u,f,p,h,m=this.options.gestureOrientation;if(n-(i.time??0)>2e3){i.time=Date.now();let P=window.getComputedStyle(t);i.computedStyle=P;let D=P.overflowX,A=P.overflowY;if(s=["auto","overlay","scroll"].includes(D),a=["auto","overlay","scroll"].includes(A),i.hasOverflowX=s,i.hasOverflowY=a,!s&&!a||m==="vertical"&&!a||m==="horizontal"&&!s)return!1;u=t.scrollWidth,f=t.scrollHeight,p=t.clientWidth,h=t.clientHeight,l=u>p,c=f>h,i.isScrollableX=l,i.isScrollableY=c,i.scrollWidth=u,i.scrollHeight=f,i.clientWidth=p,i.clientHeight=h}else l=i.isScrollableX,c=i.isScrollableY,s=i.hasOverflowX,a=i.hasOverflowY,u=i.scrollWidth,f=i.scrollHeight,p=i.clientWidth,h=i.clientHeight;if(!s&&!a||!l&&!c||m==="vertical"&&(!a||!c)||m==="horizontal"&&(!s||!l))return!1;let d;if(m==="horizontal")d="x";else if(m==="vertical")d="y";else{let P=e!==0,D=r!==0;P&&s&&l&&(d="x"),D&&a&&c&&(d="y")}if(!d)return!1;let g,y,x,T,E;if(d==="x")g=t.scrollLeft,y=u-p,x=e,T=s,E=l;else if(d==="y")g=t.scrollTop,y=f-h,x=r,T=a,E=c;else return!1;return(x>0?g<y:g>0)&&T&&E}get rootElement(){return this.options.wrapper===window?document.documentElement:this.options.wrapper}get limit(){return this.options.naiveDimensions?this.isHorizontal?this.rootElement.scrollWidth-this.rootElement.clientWidth:this.rootElement.scrollHeight-this.rootElement.clientHeight:this.dimensions.limit[this.isHorizontal?"x":"y"]}get isHorizontal(){return this.options.orientation==="horizontal"}get actualScroll(){let t=this.options.wrapper;return this.isHorizontal?t.scrollX??t.scrollLeft:t.scrollY??t.scrollTop}get scroll(){return this.options.infinite?D4(this.animatedScroll,this.limit):this.animatedScroll}get progress(){return this.limit===0?1:this.scroll/this.limit}get isScrolling(){return this._isScrolling}set isScrolling(t){this._isScrolling!==t&&(this._isScrolling=t,this.updateClassName())}get isStopped(){return this._isStopped}set isStopped(t){this._isStopped!==t&&(this._isStopped=t,this.updateClassName())}get isLocked(){return this._isLocked}set isLocked(t){this._isLocked!==t&&(this._isLocked=t,this.updateClassName())}get isSmooth(){return this.isScrolling==="smooth"}get className(){let t="lenis";return this.options.autoToggle&&(t+=" lenis-autoToggle"),this.isStopped&&(t+=" lenis-stopped"),this.isLocked&&(t+=" lenis-locked"),this.isScrolling&&(t+=" lenis-scrolling"),this.isScrolling==="smooth"&&(t+=" lenis-smooth"),t}updateClassName(){this.cleanUpClassName(),this.rootElement.className=`${this.rootElement.className} ${this.className}`.trim()}cleanUpClassName(){this.rootElement.className=this.rootElement.className.replace(/lenis(-\w+)?/g,"").trim()}};var Ca=qn(xO(),1),N4={ObjectMap:Tn,Stringmap:ol,FastMap:eo};var Qb={};se(Qb,{containerContextStyles:()=>Q4,cssForConstraint:()=>K4,cssForConstraintContainer:()=>G4,cssForContainer:()=>BO,cssForDesktop:()=>J4,cssForNotebook:()=>X4,cssForPhablet:()=>ez,cssForPhone:()=>tz,cssForTablet:()=>Z4,cssForViewport:()=>Vo,desktop:()=>_O,notebook:()=>RO,phablet:()=>AO,phone:()=>$O,tablet:()=>FO});var Tm=globalThis,Mc=Tm.ShadowRoot&&(Tm.ShadyCSS===void 0||Tm.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Bb=Symbol(),bO=new WeakMap,Oa=class{static{o(this,"n")}constructor(e,r,n){if(this._$cssResult$=!0,n!==Bb)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=r}get styleSheet(){let e=this.o,r=this.t;if(Mc&&e===void 0){let n=r!==void 0&&r.length===1;n&&(e=bO.get(r)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),n&&bO.set(r,e))}return e}toString(){return this.cssText}},sr=o(t=>new Oa(typeof t=="string"?t:t+"",void 0,Bb),"r"),Ur=o((t,...e)=>{let r=t.length===1?t[0]:e.reduce((n,i,s)=>n+(a=>{if(a._$cssResult$===!0)return a.cssText;if(typeof a=="number")return a;throw Error("Value passed to 'css' function must be a 'css' function result: "+a+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+t[s+1],t[0]);return new Oa(r,t,Bb)},"i"),Em=o((t,e)=>{if(Mc)t.adoptedStyleSheets=e.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet);else for(let r of e){let n=document.createElement("style"),i=Tm.litNonce;i!==void 0&&n.setAttribute("nonce",i),n.textContent=r.cssText,t.appendChild(n)}},"S"),Nc=Mc?t=>t:t=>t instanceof CSSStyleSheet?(e=>{let r="";for(let n of e.cssRules)r+=n.cssText;return sr(r)})(t):t;var{is:P4,defineProperty:L4,getOwnPropertyDescriptor:_4,getOwnPropertyNames:R4,getOwnPropertySymbols:F4,getPrototypeOf:A4}=Object,Dm=globalThis,wO=Dm.trustedTypes,$4=wO?wO.emptyScript:"",B4=Dm.reactiveElementPolyfillSupport,Pc=o((t,e)=>t,"d"),Cm={toAttribute(t,e){switch(e){case Boolean:t=t?$4:null;break;case Object:case Array:t=t==null?t:JSON.stringify(t)}return t},fromAttribute(t,e){let r=t;switch(e){case Boolean:r=t!==null;break;case Number:r=t===null?null:Number(t);break;case Object:case Array:try{r=JSON.parse(t)}catch{r=null}}return r}},jb=o((t,e)=>!P4(t,e),"f"),SO={attribute:!0,type:String,converter:Cm,reflect:!1,useDefault:!1,hasChanged:jb};Symbol.metadata??=Symbol("metadata"),Dm.litPropertyMetadata??=new WeakMap;var wn=class extends HTMLElement{static{o(this,"y")}static addInitializer(e){this._$Ei(),(this.l??=[]).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,r=SO){if(r.state&&(r.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(e)&&((r=Object.create(r)).wrapped=!0),this.elementProperties.set(e,r),!r.noAccessor){let n=Symbol(),i=this.getPropertyDescriptor(e,n,r);i!==void 0&&L4(this.prototype,e,i)}}static getPropertyDescriptor(e,r,n){let{get:i,set:s}=_4(this.prototype,e)??{get(){return this[r]},set(a){this[r]=a}};return{get:i,set(a){let l=i?.call(this);s?.call(this,a),this.requestUpdate(e,l,n)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??SO}static _$Ei(){if(this.hasOwnProperty(Pc("elementProperties")))return;let e=A4(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(Pc("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Pc("properties"))){let r=this.properties,n=[...R4(r),...F4(r)];for(let i of n)this.createProperty(i,r[i])}let e=this[Symbol.metadata];if(e!==null){let r=litPropertyMetadata.get(e);if(r!==void 0)for(let[n,i]of r)this.elementProperties.set(n,i)}this._$Eh=new Map;for(let[r,n]of this.elementProperties){let i=this._$Eu(r,n);i!==void 0&&this._$Eh.set(i,r)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){let r=[];if(Array.isArray(e)){let n=new Set(e.flat(1/0).reverse());for(let i of n)r.unshift(Nc(i))}else e!==void 0&&r.push(Nc(e));return r}static _$Eu(e,r){let n=r.attribute;return n===!1?void 0:typeof n=="string"?n: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,r=this.constructor.elementProperties;for(let n of r.keys())this.hasOwnProperty(n)&&(e.set(n,this[n]),delete this[n]);e.size>0&&(this._$Ep=e)}createRenderRoot(){let e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return Em(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,r,n){this._$AK(e,n)}_$ET(e,r){let n=this.constructor.elementProperties.get(e),i=this.constructor._$Eu(e,n);if(i!==void 0&&n.reflect===!0){let s=(n.converter?.toAttribute!==void 0?n.converter:Cm).toAttribute(r,n.type);this._$Em=e,s==null?this.removeAttribute(i):this.setAttribute(i,s),this._$Em=null}}_$AK(e,r){let n=this.constructor,i=n._$Eh.get(e);if(i!==void 0&&this._$Em!==i){let s=n.getPropertyOptions(i),a=typeof s.converter=="function"?{fromAttribute:s.converter}:s.converter?.fromAttribute!==void 0?s.converter:Cm;this._$Em=i;let l=a.fromAttribute(r,s.type);this[i]=l??this._$Ej?.get(i)??l,this._$Em=null}}requestUpdate(e,r,n,i=!1,s){if(e!==void 0){let a=this.constructor;if(i===!1&&(s=this[e]),n??=a.getPropertyOptions(e),!((n.hasChanged??jb)(s,r)||n.useDefault&&n.reflect&&s===this._$Ej?.get(e)&&!this.hasAttribute(a._$Eu(e,n))))return;this.C(e,r,n)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(e,r,{useDefault:n,reflect:i,wrapped:s},a){n&&!(this._$Ej??=new Map).has(e)&&(this._$Ej.set(e,a??r??this[e]),s!==!0||a!==void 0)||(this._$AL.has(e)||(this.hasUpdated||n||(r=void 0),this._$AL.set(e,r)),i===!0&&this._$Em!==e&&(this._$Eq??=new Set).add(e))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(r){Promise.reject(r)}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[i,s]of this._$Ep)this[i]=s;this._$Ep=void 0}let n=this.constructor.elementProperties;if(n.size>0)for(let[i,s]of n){let{wrapped:a}=s,l=this[i];a!==!0||this._$AL.has(i)||l===void 0||this.C(i,void 0,s,l)}}let e=!1,r=this._$AL;try{e=this.shouldUpdate(r),e?(this.willUpdate(r),this._$EO?.forEach(n=>n.hostUpdate?.()),this.update(r)):this._$EM()}catch(n){throw e=!1,this._$EM(),n}e&&this._$AE(r)}willUpdate(e){}_$AE(e){this._$EO?.forEach(r=>r.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(r=>this._$ET(r,this[r])),this._$EM()}updated(e){}firstUpdated(e){}};wn.elementStyles=[],wn.shadowRootOptions={mode:"open"},wn[Pc("elementProperties")]=new Map,wn[Pc("finalized")]=new Map,B4?.({ReactiveElement:wn}),(Dm.reactiveElementVersions??=[]).push("2.1.2");var Ub=globalThis,vO=o(t=>t,"i"),Om=Ub.trustedTypes,kO=Om?Om.createPolicy("lit-html",{createHTML:o(t=>t,"createHTML")}):void 0,zb="$lit$",Hn=`lit$${Math.random().toFixed(9).slice(2)}$`,Hb="?"+Hn,j4=`<${Hb}>`,Uo=document,Lc=o(()=>Uo.createComment(""),"c"),_c=o(t=>t===null||typeof t!="object"&&typeof t!="function","a"),Wb=Array.isArray,TO=o(t=>Wb(t)||typeof t?.[Symbol.iterator]=="function","d"),qb=`[
|
|
286
|
+
${t}`,"stringifyFrontmatter");var KU=new Set(["root","blockquote","listItem","footnoteDefinition"]),sb=o((t,e)=>{if(!("children"in t))return;let r=t;r.children.forEach((n,i)=>{let s=e(n,r);s&&(r.children[i]=s),sb(s??n,e)})},"replaceChildren"),GU=o(()=>t=>{sb(t,(e,r)=>{if(e.type!=="html")return;let n={type:"text",value:e.value};return KU.has(r.type)?{type:"paragraph",children:[n]}:n})},"rawHtmlAsText"),QU=o(()=>t=>{sb(t,e=>{if(e.type==="image")return{type:"link",url:e.url,...e.title?{title:e.title}:{},children:[{type:"text",value:e.alt||e.url}]};if(e.type==="imageReference")return{type:"linkReference",identifier:e.identifier,label:e.label,referenceType:e.referenceType,children:[{type:"text",value:e.alt||e.label||e.identifier}]}})},"imagesAsLinks"),gm=o(async(t,e={})=>{if(typeof t!="string")throw new TypeError("Markdown source must be a string.");let r=e.frontmatter!==!1,n=r?await ob(t):null,i=ib(!r||n?[]:["toml"]);return e.rawHtml==="text"&&i.use(GU),e.images===!1&&i.use(QU),e.breaks===!0&&i.use(Us),{html:(await i.use(Xs).use(Vs).process(n?n.content:t)).toString(),frontmatterData:n?n.data:{}}},"renderMarkdownToHtml");var ym=class t{static{o(this,"MdParsedResult")}constructor(){this.originalString="",this.title="",this.html="",this.frontmatterData={}}static async createFromMarkdownString(e){let r=new t;return await r.updateFromMarkdownString(e),r}async updateFromMarkdownString(e){this.originalString=e;let r=await gm(e);this.frontmatterData=r.frontmatterData,this.html=r.html}};var ab=class t{static{o(this,"SmartMarkdown")}static async easyMarkdownToHtml(e){return(await new t().getMdParsedResultFromMarkdown(e)).html}static async markdownToHtml(e,r={}){return(await gm(e,r)).html}constructor(){}async getMdParsedResultFromMarkdown(e){return await ym.createFromMarkdownString(e)}htmlToMarkdown(e){let r=new wi({headingStyle:"atx",codeBlockStyle:"fenced"});return r.use(fy.gfm),r.turndown(e)}};var Ao={};se(Ao,{SmartRouter:()=>mb});var hb=qn(aO(),1);var bm=class{static{o(this,"QueryParams")}constructor(){}getAllAsObject(){let e=new URLSearchParams(window.location.search);return Object.fromEntries(e.entries())}setQueryParam(e,r,n="replace"){var i=new URLSearchParams(window.location.search);i.set(e,r),n==="push"?history.pushState(null,null,"?"+i.toString()):history.replaceState(null,null,"?"+i.toString())}deleteQueryParam(e,r="replace"){var n=new URLSearchParams(window.location.search);n.delete(e),r==="push"?history.pushState(null,null,"?"+n.toString()):history.replaceState(null,null,"?"+n.toString())}getQueryParam(e){return this.getAllAsObject()[e]}};var lGe=o(t=>{console.log(`%c[Router]%c ${t}`,"color: rgb(255, 105, 100);","color: inherit")},"routeLog"),mb=class t{static{o(this,"SmartRouter")}constructor(e,r=""){this.options={debug:!1},this.queryParams=new bm,this.routes=[],this.options={...this.options,...e},this.basePath=r,this.popstateListener=n=>{n.preventDefault(),this._handleRouteState()},window.addEventListener("popstate",this.popstateListener)}createSubRouter(e,r){let n=`${this.basePath}${e}`;return new t({...this.options,...r},n)}async pushUrl(e="/",r={}){let n=`${this.basePath}${e}`;n!==window.location.pathname?window.history.pushState(r,window.document.title,n):window.history.replaceState(r,window.document.title,n),await this._handleRouteState()}on(e,r){let n=`${this.basePath}${e}`,i={matchFunction:hb.match(n),handler:r};return this.routes.push(i),o(()=>{this.routes.splice(this.routes.indexOf(i),1)},"removeFunction")}async _handleRouteState(){let e=window.location.pathname,r=this.routes.filter(n=>!!n.matchFunction(e));for(let n of r){let i=n.matchFunction(e);n.handler({...i.valueOf(),queryParams:this.queryParams.getAllAsObject()})}}destroy(){window.removeEventListener("popstate",this.popstateListener),this.routes=[]}};var $o={};se($o,{Smartstate:()=>wb,StateAction:()=>Dc,StatePart:()=>Cc,StateProcess:()=>Ea,attachContextProvider:()=>S4,computed:()=>bb});var Ec={};se(Ec,{createSha256Hasher:()=>xb,sha256FromBuffer:()=>pO,sha256FromStream:()=>y4,sha256FromString:()=>g4,sha256FromStringSync:()=>d4});var a4=Symbol.for("nodejs.util.inspect.custom"),Tc=class extends Error{static{o(this,"SmartCryptoError")}constructor(e){super(`SmartCrypto operation failed (${e}).`),this.name="SmartCryptoError",this.code=e,Object.defineProperty(this,"cause",{configurable:!1,enumerable:!1,value:void 0,writable:!1})}toJSON(){return{name:"SmartCryptoError",code:this.code,message:this.message}}[a4](){return this.toJSON()}},qe=o(t=>new Tc(t),"createSmartCryptoError");var l4=/^[A-Za-z0-9_-]*$/,c4=o(()=>{if(!globalThis.crypto?.subtle||typeof globalThis.crypto.getRandomValues!="function")throw qe("CRYPTO_OPERATION_FAILED");return globalThis.crypto},"getWebCrypto"),dGe=o((t,e="INVALID_ARGUMENT")=>{if(!(t instanceof Uint8Array))throw qe(e);return new Uint8Array(t)},"requireUint8Array"),gGe=o((t,e,r)=>{if(t.byteLength!==e)throw t.fill(0),qe(r);return t},"requireLength"),db=o(t=>{if(t instanceof Uint8Array)return t;if(t instanceof ArrayBuffer)return new Uint8Array(t);throw qe("INVALID_ARGUMENT")},"requireHashInput"),gb=o(t=>{if(typeof t!="string")throw qe("INVALID_ARGUMENT");return t},"requireString"),lO=o(t=>{let e="";for(let r of t)e+=r.toString(16).padStart(2,"0");return e},"encodeHex"),cO=o(async(t,e)=>{if(typeof t?.getReader!="function")throw qe("INVALID_ARGUMENT");let r=t.getReader();try{for(;;){let{value:n,done:i}=await r.read();if(i)return e.digest();if(!(n instanceof Uint8Array)){let s=qe("INVALID_ARGUMENT");throw await r.cancel(s),s}e.update(n)}}finally{r.releaseLock()}},"hashReadableStream"),u4=o(t=>{let e=new Uint8Array(t.byteLength);return e.set(t),e.buffer},"toArrayBuffer"),yGe=o((...t)=>{let e=t.reduce((i,s)=>i+s.byteLength,0),r=new Uint8Array(e),n=0;for(let i of t)r.set(i,n),n+=i.byteLength;return r},"concatBytes"),uO=o(async t=>{let e=u4(t);try{return new Uint8Array(await c4().subtle.digest("SHA-256",e))}finally{new Uint8Array(e).fill(0)}},"sha256"),xGe=o((t,e)=>{if(t.byteLength!==e.byteLength)return!1;let r=0;for(let n=0;n<t.byteLength;n++)r|=t[n]^e[n];return r===0},"bytesEqual"),bGe=o(t=>{let e=0;for(let r of t)e|=r;return e===0},"isAllZero"),f4=o(t=>{let e="";for(let n=0;n<t.byteLength;n+=32768)e+=String.fromCharCode(...t.subarray(n,n+32768));return btoa(e)},"encodeBase64"),p4=o(t=>f4(t).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/g,""),"encodeBase64Url"),wGe=o((t,e,r)=>{if(typeof t!="string")throw qe("INVALID_ENVELOPE");let n=Math.ceil(e*4/3);if(t.length>n)throw qe("SIZE_LIMIT_EXCEEDED");if(!l4.test(t)||t.length%4===1)throw qe("INVALID_ENVELOPE");try{let i=(4-t.length%4)%4,s=t.replace(/-/g,"+").replace(/_/g,"/")+"=".repeat(i),a=atob(s);if(a.length>e)throw qe("SIZE_LIMIT_EXCEEDED");if(r!==void 0&&a.length!==r)throw qe("INVALID_ENVELOPE");let l=new Uint8Array(a.length);for(let c=0;c<a.length;c++)l[c]=a.charCodeAt(c);if(p4(l)!==t)throw qe("INVALID_ENVELOPE");return l}catch(i){throw i instanceof Tc?i:qe("INVALID_ENVELOPE")}},"decodeCanonicalBase64Url"),SGe=o((t,e)=>{if(t===null||typeof t!="object"||Array.isArray(t))throw qe("INVALID_ENVELOPE");let r=Object.getPrototypeOf(t);if(r!==Object.prototype&&r!==null)throw qe("INVALID_ENVELOPE");let n=Reflect.ownKeys(t);if(n.some(s=>typeof s!="string"))throw qe("INVALID_ENVELOPE");let i=n;if(i.length!==e.length||[...i].sort().some((s,a)=>s!==[...e].sort()[a]))throw qe("INVALID_ENVELOPE");for(let s of i){let a=Object.getOwnPropertyDescriptor(t,s);if(!a?.enumerable||!("value"in a))throw qe("INVALID_ENVELOPE")}return t},"requirePlainDataObject");var h4=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),m4=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),bn=o((t,e)=>t>>>e|t<<32-e,"rotateRight"),fO=new TextEncoder,yb=class{static{o(this,"Sha256Hasher")}constructor(){this.state=new Uint32Array(m4),this.block=new Uint8Array(64),this.words=new Uint32Array(64),this.blockLength=0,this.totalBytesHigh=0,this.totalBytesLow=0,this.finalized=!1}update(e){this.requireOpen();let r=db(e);this.addByteLength(r.byteLength);let n=0;if(this.blockLength>0){let i=Math.min(64-this.blockLength,r.byteLength);this.block.set(r.subarray(0,i),this.blockLength),this.blockLength+=i,n=i,this.blockLength===64&&(this.processBlock(this.block,0),this.blockLength=0)}for(;n+64<=r.byteLength;)this.processBlock(r,n),n+=64;return n<r.byteLength&&(this.block.set(r.subarray(n),0),this.blockLength=r.byteLength-n),this}digest(){this.requireOpen(),this.finalized=!0;let e=this.blockLength<56?64:128,r=new Uint8Array(e);r.set(this.block.subarray(0,this.blockLength)),r[this.blockLength]=128;let n=(this.totalBytesHigh<<3|this.totalBytesLow>>>29)>>>0,i=this.totalBytesLow<<3>>>0,s=new DataView(r.buffer);s.setUint32(e-8,n,!1),s.setUint32(e-4,i,!1);for(let l=0;l<e;l+=64)this.processBlock(r,l);let a="";for(let l of this.state)a+=l.toString(16).padStart(8,"0");return this.block.fill(0),this.words.fill(0),this.state.fill(0),a}requireOpen(){if(this.finalized)throw qe("INVALID_STATE")}addByteLength(e){let r=this.totalBytesLow;this.totalBytesLow=this.totalBytesLow+e>>>0,this.totalBytesHigh=this.totalBytesHigh+Math.floor(e/4294967296)+(this.totalBytesLow<r?1:0)>>>0}processBlock(e,r){let n=this.words;for(let h=0;h<16;h++){let m=r+h*4;n[h]=(e[m]<<24|e[m+1]<<16|e[m+2]<<8|e[m+3])>>>0}for(let h=16;h<64;h++){let m=n[h-15],d=n[h-2],g=bn(m,7)^bn(m,18)^m>>>3,y=bn(d,17)^bn(d,19)^d>>>10;n[h]=n[h-16]+g+n[h-7]+y>>>0}let i=this.state[0],s=this.state[1],a=this.state[2],l=this.state[3],c=this.state[4],u=this.state[5],f=this.state[6],p=this.state[7];for(let h=0;h<64;h++){let m=bn(c,6)^bn(c,11)^bn(c,25),d=c&u^~c&f,g=p+m+d+h4[h]+n[h]>>>0,y=bn(i,2)^bn(i,13)^bn(i,22),x=i&s^i&a^s&a,T=y+x>>>0;p=f,f=u,u=c,c=l+g>>>0,l=a,a=s,s=i,i=g+T>>>0}this.state[0]=this.state[0]+i>>>0,this.state[1]=this.state[1]+s>>>0,this.state[2]=this.state[2]+a>>>0,this.state[3]=this.state[3]+l>>>0,this.state[4]=this.state[4]+c>>>0,this.state[5]=this.state[5]+u>>>0,this.state[6]=this.state[6]+f>>>0,this.state[7]=this.state[7]+p>>>0}},xb=o(()=>new yb,"createSha256Hasher"),d4=o(t=>xb().update(fO.encode(gb(t))).digest(),"sha256FromStringSync"),pO=o(async t=>lO(await uO(db(t))),"sha256FromBuffer"),g4=o(async t=>await pO(fO.encode(gb(t))),"sha256FromString"),y4=o(async t=>await cO(t,xb()),"sha256FromStream");var Dc=class{static{o(this,"StateAction")}constructor(e,r){this.statePartRef=e,this.actionDef=r}trigger(e){return this.statePartRef.dispatchAction(this,e)}};function b4(){return typeof document>"u"?Ba(!0):new we(t=>{t.next(!document.hidden);let e=o(()=>t.next(!document.hidden),"handler");return document.addEventListener("visibilitychange",e),()=>document.removeEventListener("visibilitychange",e)})}o(b4,"createVisibilityObservable");var Ea=class{static{o(this,"StateProcess")}constructor(e,r){this.statusSubject=new Qo("idle"),this.producerSubscription=null,this.autoPauseSubscription=null,this.processingQueue=Promise.resolve(),this.statePartRef=e,this.producerFn=r.producer,this.reducer=r.reducer,this.sideEffect=r.sideEffect,this.autoPauseOption=r.autoPause??!1}get status(){return this.statusSubject.getValue()}get status$(){return this.statusSubject.asObservable()}start(){if(this.status==="disposed")throw new Error("Cannot start a disposed process");this.status!=="running"&&(this.statusSubject.next("running"),this.subscribeProducer(),this.setupAutoPause())}pause(){if(this.status==="disposed")throw new Error("Cannot pause a disposed process");this.status==="running"&&(this.statusSubject.next("paused"),this.unsubscribeProducer())}resume(){if(this.status==="disposed")throw new Error("Cannot resume a disposed process");this.status==="paused"&&(this.statusSubject.next("running"),this.subscribeProducer())}dispose(){this.status!=="disposed"&&(this.unsubscribeProducer(),this.teardownAutoPause(),this.statusSubject.next("disposed"),this.statusSubject.complete(),this.statePartRef._removeProcess(this))}subscribeProducer(){this.unsubscribeProducer();let e=this.producerFn();this.producerSubscription=e.subscribe({next:o(r=>{this.processingQueue=this.processingQueue.then(async()=>{try{if(this.sideEffect)await this.sideEffect(r);else if(this.reducer){let n=this.statePartRef.getState();n!==void 0&&await this.statePartRef.setState(this.reducer(n,r))}}catch(n){console.error("StateProcess value handling error:",n)}})},"next"),error:o(r=>{console.error("StateProcess producer error:",r),this.status==="running"&&(this.statusSubject.next("paused"),this.unsubscribeProducer())},"error")})}unsubscribeProducer(){this.producerSubscription&&(this.producerSubscription.unsubscribe(),this.producerSubscription=null)}setupAutoPause(){if(this.teardownAutoPause(),!this.autoPauseOption)return;let e=this.autoPauseOption==="visibility"?b4():this.autoPauseOption;this.autoPauseSubscription=e.subscribe(r=>{!r&&this.status==="running"?this.pause():r&&this.status==="paused"&&this.resume()})}teardownAutoPause(){this.autoPauseSubscription&&(this.autoPauseSubscription.unsubscribe(),this.autoPauseSubscription=null)}};var hO=o(t=>{let e=Object.getPrototypeOf(t);return e===Object.prototype||e===null},"isPlainObject"),wm=o((t,e)=>{let r=new WeakMap,n=new WeakMap,i=o((s,a)=>{if(Object.is(s,a))return!0;if(s===null||a===null||typeof s!="object"||typeof a!="object")return!1;if(s instanceof Date||a instanceof Date)return s instanceof Date&&a instanceof Date&&Object.is(s.getTime(),a.getTime());let l=Array.isArray(s),c=Array.isArray(a);if(l!==c||!l&&(!hO(s)||!hO(a)))return!1;let u=r.get(s);if(u)return u===a;let f=n.get(a);if(f)return f===s;if(r.set(s,a),n.set(a,s),l&&c){if(s.length!==a.length)return!1;for(let g=0;g<s.length;g++)if(!i(s[g],a[g]))return!1;return!0}let p=s,h=a,m=Object.keys(p),d=Object.keys(h);if(m.length!==d.length)return!1;for(let g of m)if(!Object.prototype.hasOwnProperty.call(h,g)||!i(p[g],h[g]))return!1;return!0},"compare");return i(t,e)},"isStateSelectionEqual");function w4(t){return new we(e=>{if(t.aborted){e.next(),e.complete();return}let r=o(()=>{e.next(),e.complete()},"handler");return t.addEventListener("abort",r),()=>t.removeEventListener("abort",r)})}o(w4,"fromAbortSignal");var Cc=class t{static{o(this,"StatePart")}static{this.MAX_NESTED_DISPATCH_DEPTH=10}constructor(e,r){this.state=new Qo(void 0),this.disposed=!1,this.cumulativeDeferred=Q.cumulativeDefer(),this.mutationQueue=Promise.resolve(),this.pendingCumulativeNotification=null,this.webStore=null,this.middlewares=[],this.processes=[],this.selectorCache=new WeakMap,this.defaultSelectObservable=null,this.name=e,r&&(this.webStoreOptions=r)}async init(){if(this.webStoreOptions){this.webStore=new Nr.WebStore(this.webStoreOptions),await this.webStore.init();let e=await this.webStore.get(String(this.name));e&&this.validateState(e)&&(this.stateStore=e,await this.notifyChange())}}getState(){return this.stateStore}addMiddleware(e){return this.middlewares.push(e),()=>{let r=this.middlewares.indexOf(e);r!==-1&&this.middlewares.splice(r,1)}}async setState(e){if(this.disposed)throw new Error(`StatePart '${this.name}' has been disposed`);return this.mutationQueue=this.mutationQueue.then(()=>this.applyState(e),()=>this.applyState(e))}async applyState(e){let r=e;for(let n of this.middlewares)r=await n(r,this.stateStore);if(!this.validateState(r))throw new Error(`Invalid state structure for state part '${this.name}'`);return this.webStore&&await this.webStore.set(String(this.name),r),this.stateStore=r,await this.notifyChange(),this.stateStore}validateState(e){return e!=null}async notifyChange(){let e=this.stateStore;if(e===void 0)return;if(this.smartstateRef?.isBatching){this.smartstateRef.registerPendingNotification(this);return}let r=o(async n=>Ec.sha256FromStringSync(er.stableOneWayStringify(n)),"createStateHash");try{let n=await r(e);if(this.lastStateNotificationPayloadHash&&n===this.lastStateNotificationPayloadHash)return;this.lastStateNotificationPayloadHash=n}catch(n){console.error(`State hash computation failed for '${this.name}':`,n)}this.state.next(e)}notifyChangeCumulative(){this.pendingCumulativeNotification&&clearTimeout(this.pendingCumulativeNotification),this.pendingCumulativeNotification=setTimeout(()=>{this.pendingCumulativeNotification=null,this.stateStore!==void 0&&this.notifyChange().catch(e=>{console.error(`notifyChangeCumulative failed for '${this.name}':`,e)})},0)}select(e,r){let n=r?.signal!=null;if(!n){if(e){if(this.selectorCache.has(e))return this.selectorCache.get(e)}else if(this.defaultSelectObservable)return this.defaultSelectObservable}let i=e||(c=>c),s=Symbol("selector-error"),a=this.state.pipe(Ie.rxjs.ops.filter(c=>c!==void 0),Ie.rxjs.ops.map(c=>{try{return i(c)}catch(u){return console.error(`Selector error in state part '${this.name}':`,u),s}}),Ie.rxjs.ops.filter(c=>c!==s),ts(wm));if(n)return a=a.pipe(rs(w4(r.signal))),a;let l=a.pipe(mu({bufferSize:1,refCount:!0}));return e?this.selectorCache.set(e,l):this.defaultSelectObservable=l,l}createAction(e){return new Dc(this,e)}createActionContext(e){let r=this;return{dispatch:o(async(n,i)=>{if(e>=t.MAX_NESTED_DISPATCH_DEPTH)throw new Error(`Maximum nested action dispatch depth (${t.MAX_NESTED_DISPATCH_DEPTH}) exceeded. Check for circular action dispatches.`);let s=r.createActionContext(e+1),a=await n.actionDef(r,i,s);return r.applyState(a)},"dispatch")}}async dispatchAction(e,r){if(this.disposed)throw new Error(`StatePart '${this.name}' has been disposed`);await this.cumulativeDeferred.promise;let n=o(async()=>{let i=this.createActionContext(0),s=await e.actionDef(this,r,i);return this.applyState(s)},"execute");return this.mutationQueue=this.mutationQueue.then(n,n)}async waitUntilPresent(e,r){let n,i;typeof r=="number"?n=r:r&&(n=r.timeoutMs,i=r.signal);let s=Q.defer(),a=this.select(e),l=!1;if(i?.aborted)throw new Error("Aborted");let c=a.subscribe(p=>{p!=null&&!l&&(l=!0,s.resolve(p))}),u;n&&(u=setTimeout(()=>{l||(l=!0,c.unsubscribe(),s.reject(new Error(`waitUntilPresent timed out after ${n}ms`)))},n));let f=i?()=>{l||(l=!0,c.unsubscribe(),u&&clearTimeout(u),s.reject(new Error("Aborted")))}:void 0;i&&f&&i.addEventListener("abort",f);try{return await s.promise}finally{c.unsubscribe(),u&&clearTimeout(u),i&&f&&i.removeEventListener("abort",f)}}async stateSetup(e){let r=e(this);this.cumulativeDeferred.addPromise(r),await this.setState(await r)}createProcess(e){if(this.disposed)throw new Error(`StatePart '${this.name}' has been disposed`);let r=new Ea(this,e);return this.processes.push(r),e.autoStart&&r.start(),r}createScheduledAction(e){if(this.disposed)throw new Error(`StatePart '${this.name}' has been disposed`);let r=new Ea(this,{producer:o(()=>sd(e.intervalMs),"producer"),sideEffect:o(async()=>{await e.action.trigger(e.payload)},"sideEffect"),autoPause:e.autoPause??!1});return this.processes.push(r),r.start(),r}_removeProcess(e){let r=this.processes.indexOf(e);r!==-1&&this.processes.splice(r,1)}dispose(){if(!this.disposed){this.disposed=!0;for(let e of[...this.processes])e.dispose();this.processes.length=0,this.state.complete(),this.mutationQueue=Promise.resolve(),this.pendingCumulativeNotification&&(clearTimeout(this.pendingCumulativeNotification),this.pendingCumulativeNotification=null),this.middlewares.length=0,this.selectorCache=new WeakMap,this.defaultSelectObservable=null,this.webStore=null,this.smartstateRef=void 0,this.stateStore=void 0}}};function bb(t,e){return od(t.map(r=>r.select())).pipe(Xr(r=>e(...r)),ts(wm))}o(bb,"computed");var wb=class{static{o(this,"Smartstate")}constructor(){this.statePartMap={},this.pendingStatePartCreation=new Map,this.batchDepth=0,this.isFlushing=!1,this.pendingNotifications=new Set}get isBatching(){return this.batchDepth>0}registerPendingNotification(e){this.pendingNotifications.add(e)}async batch(e){this.batchDepth++;try{await e()}finally{if(this.batchDepth--,this.batchDepth===0&&!this.isFlushing){this.isFlushing=!0;try{for(;this.pendingNotifications.size>0;){let r=[...this.pendingNotifications];this.pendingNotifications.clear();for(let n of r)try{await n.notifyChange()}catch(i){console.error("Error flushing notification for state part:",i)}}}finally{this.isFlushing=!1}}}}computed(e,r){return bb(e,r)}dispose(){for(let e of Object.keys(this.statePartMap)){let r=this.statePartMap[e];r&&r.dispose()}this.statePartMap={},this.pendingStatePartCreation.clear(),this.pendingNotifications.clear()}async getStatePart(e,r,n="soft"){let i=this.pendingStatePartCreation.get(e);if(i)return i;let s=this.statePartMap[e];if(s)switch(n){case"mandatory":throw new Error(`State part '${e}' already exists, but initMode is 'mandatory'`);case"force":s.dispose();break;default:return s}else if(r===void 0)throw new Error(`State part '${e}' does not exist and no initial state provided`);let a=this.createStatePart(e,r,n);this.pendingStatePartCreation.set(e,a);try{return await a}finally{this.pendingStatePartCreation.delete(e)}}async createStatePart(e,r,n="soft"){let i=new Cc(e,n==="persistent"?{dbName:"smartstate",storeName:e}:void 0);i.smartstateRef=this,await i.init();let s=i.getState();return n==="persistent"&&s!==void 0?await i.setState({...r,...s}):await i.setState(r),this.statePartMap[e]=i,i}};function S4(t,e){let{context:r,statePart:n,selectorFn:i}=e,s=new Set,a=n.select(i).subscribe(u=>{for(let f of s)f(u)}),l=o(()=>{let u=n.getState();if(u!==void 0)return i?i(u):u},"getValue"),c=o(u=>{let f=u,p=f.detail;if(!(!p||p.context!==r))if(f.stopPropagation(),p.subscribe){let h=p.callback;s.add(h);let m=o(()=>s.delete(h),"unsubscribe");h(l(),m)}else p.callback(l())},"handler");return t.addEventListener("context-request",c),()=>{t.removeEventListener("context-request",c),a.unsubscribe(),s.clear()}}o(S4,"attachContextProvider");var Bo={};se(Bo,{Smarturl:()=>Sb});var Sb=class t{static{o(this,"Smarturl")}static createFromUrl(e,r){let n=new URL(e),i={},s=[];n.search&&n.search.replace("?","").split("&").map(u=>{s.push({key:u.split("=")[0],value:u.split("=")[1]})});for(let u of s)i[u.key]=u.value;if(r?.searchParams)for(let u of Object.keys(r.searchParams))i[u]=r.searchParams[u];let a=n.pathname||"";if(Object.keys(i).length>0){a+="?";let u=!0;for(let f of Object.keys(i))u?u=!1:a+="&",a+=`${f}=${i[f]}`}let l={...n,href:n.href,origin:n.origin,protocol:n.protocol,username:n.username,password:n.password,host:n.host,hostname:n.hostname,port:n.port,path:a,pathname:n.pathname,search:n.search,searchParams:i,hash:n.hash};!l.port&&l.protocol==="https:"&&(l.port="443"),!l.port&&l.protocol==="http:"&&(l.port="80");let c=new t;return Object.assign(c,l),c}static createFromParsedUrl(e){let r=new t;return Object.assign(r,e),r}constructor(){this.searchParams={}}clone(){let e=new t;return Object.assign(e,this),e.searchParams={...this.searchParams},e}set(e,r){return this[e]=r,this}toString(){let e="";return this.username&&!this.password&&(e=`${this.username}@`),this.username&&this.password&&(e=`${this.username}:${this.password}@`),`${this.protocol}//${e}${this.hostname}:${this.port}${this.path}`}};var Fb={};se(Fb,{JsonLdTag:()=>jo,MetaTag:()=>kr,OpengraphTag:()=>Lt,Title:()=>Rb,WebSetup:()=>Oc});var _b={};se(_b,{business:()=>Tb,code:()=>Eb,container:()=>Db,content:()=>Ob,database:()=>vb,descriptors:()=>Cb,finance:()=>kb,general:()=>Ib,network:()=>Sm,saas:()=>Nb,storage:()=>Pb,website:()=>Lb});var Tb={};var vb={};var kb={};var Eb={};var Db={};var Cb={};var Ob={};var Ib={};var Sm={};se(Sm,{ICnameDescriptor:()=>Mb});var Mb=class{static{o(this,"ICnameDescriptor")}};var Nb={};var Pb={};var Lb={};var _i=class{static{o(this,"Tag")}constructor(){this.tagLevel="levelbound"}appendToDom(){!this.elementRef.parentElement&&!this.elementRef.parentNode&&document.getElementsByTagName("head")[0].appendChild(this.elementRef)}removeFromDom(){this.elementRef.parentElement?this.elementRef.parentElement.removeChild(this.elementRef):this.elementRef.parentNode&&this.elementRef.parentNode.removeChild(this.elementRef)}};var jo=class t extends _i{static{o(this,"JsonLdTag")}static createCompanyJsonLd(e){let r={"@context":"https://schema.org","@type":"Corporation",name:e.name,alternateName:e.name.replace(" GmbH",""),url:e.website,logo:e.logoUrl,contactPoint:{"@type":"ContactPoint",telephone:e.phone,contactType:"customer service",areaServed:"DE",availableLanguage:["en","German"]},sameAs:[]},n=e.socials?.find(a=>a.type==="facebook")?.url;n&&r.sameAs.push(n);let i=e.socials?.find(a=>a.type==="twitter")?.url;return i&&r.sameAs.push(i),new t(r)}static createNewsArticleJsonLd(e){let r={"@context":"https://schema.org","@type":"NewsArticle",mainEntityOfPage:{"@type":"WebPage","@id":window.location.href},headline:"Article headline",image:[e.featuredImageUrl],datePublished:new Date(e.timestamp).toISOString(),dateModified:new Date(e.timestamp).toISOString(),author:{"@type":"Person",name:`${e.author.firstName} ${e.author.surName}`},publisher:{"@type":"Organization",name:e.author.surName,logo:{"@type":"ImageObject",url:e.author.surName}},description:e.author.firstName};return new t(r)}static createProductJsonLd(e,r){let n={"@context":"https://schema.org","@type":"SoftwareApplication",name:e.name,description:e.description,operatingSystem:e.os,applicationCategory:e.category,offers:{"@type":"Offer",name:"User-based Plan",priceSpecification:{"@type":"PropertyValueSpecification",valueName:"Number of Users",valueRequired:!0,price:"4.99",priceCurrency:"EUR"}},publisher:r?this.createCompanyJsonLd(r).elementRef.textContent:void 0,screenshot:"https://www.social.io/screenshot.png",url:"https://www.social.io/"};return new t(n)}constructor(e){super();let r=document.createElement("script");r.type="application/ld+json",r.text=JSON.stringify(e),this.elementRef=r}};var Lt=class t extends _i{static{o(this,"OpengraphTag")}static createNewsArticleOgTags(e){let r=[];return r.push(new t("og:url",e.url??globalThis.location.href)),r.push(new t("og:title",e.title)),r.push(new t("og:description",e.content)),r.push(new t("og:image",e.featuredImageUrl??"")),r}static createProductOgTags(e){let r=[];return r.push(new t("og:type","product")),r.push(new t("og:url",globalThis.location.href)),r.push(new t("og:title",`${e.name} - ${e.slogan}`)),r.push(new t("og:site_name",e.name)),r.push(new t("og:description",e.description)),r.push(new t("og:image",e.logoLink)),r}static createCompanyOgTags(e){let r=[];return r.push(new t("og:type","company")),r.push(new t("og:url",globalThis.location.href)),r.push(new t("og:title",e.name)),r.push(new t("og:site_name",e.name)),r.push(new t("og:description",e.description)),r.push(new t("og:image",e.logoUrl??"")),r}constructor(e,r){super();let n=document.createElement("meta");n.setAttribute("property",e),n.content=r,this.elementRef=n}};var Da=class{static{o(this,"TagLevel")}set title(e){this.titleStore=e,this.state==="enabled"&&(document.title=this.titleStore)}get title(){return this.titleStore}constructor(e,r){this.tags=[],this.state="disabled",this.tagManagerRef=e,this.type=r}addTag(e){if(e instanceof Array)for(let r of e)this.addTag(r);else this.tags.push(e),this.state==="enabled"&&e.appendToDom()}async addCompanyInfo(e){this.addTag(jo.createCompanyJsonLd(e)),this.addTag(new Lt("og:type","business.business")),this.addTag(new Lt("og:title",e.name)),this.addTag(new Lt("og:url",e.website??"")),this.addTag(new Lt("og:image",e.logoUrl??"")),this.addTag(new Lt("business:contact_data:street_address",`${e.address.streetName} ${e.address.houseNumber}`)),this.addTag(new Lt("business:contact_data:locality",e.address.postalCode)),this.addTag(new Lt("business:contact_data:region",e.address.city)),this.addTag(new Lt("business:contact_data:postal_code",e.address.postalCode)),this.addTag(new Lt("business:contact_data:country_name",e.address.country))}addNewsArticleInfo(e){this.addTag(jo.createNewsArticleJsonLd(e)),this.addTag(Lt.createNewsArticleOgTags(e))}addProductInfo(e,r){this.addTag(jo.createProductJsonLd(e,r)),this.addTag(Lt.createProductOgTags(e))}async enable(){this.title&&(document.title=this.title);for(let e of this.tags)e.appendToDom();this.state="enabled"}async disable(){for(let e of this.tags)e.removeFromDom();this.state="disabled"}};var kr=class extends _i{static{o(this,"MetaTag")}constructor(e,r){super();let n=document.createElement("meta");n.name=e,n.content=r,this.elementRef=n}};var vm=class{static{o(this,"TagManager")}constructor(){this.globalLevel=new Da(this,"global"),this.baseLevel=new Da(this,"base")}async setup(e){switch(this.globalLevel.addTag(new kr("google","notranslate")),this.globalLevel.addTag(new kr("revisit-after","1 days")),e.twitterHandle&&(this.globalLevel.addTag(new kr("twitter:card","summary_large_image")),this.globalLevel.addTag(new kr("twitter:site",e.twitterHandle)),this.globalLevel.addTag(new kr("twitter:creator",e.twitterHandle))),this.baseLevel.title=e.title,e.description&&this.baseLevel.addTag(new kr("description",e.description)),e.canonicalDomain&&this.baseLevel.addTag(new kr("canonical",e.canonicalDomain)),!0){case(e.ldCompany&&!e.ldProduct):this.baseLevel.addCompanyInfo(e.ldCompany);break;case!!e.ldProduct:this.baseLevel.addProductInfo(e.ldProduct,e.ldCompany);break}await this.globalLevel.enable(),this.activeLevel=this.baseLevel,await this.activeLevel.enable()}async setSubPageLevel(e){let r=new Da(this,"subpage");return r.title=e.title,e.description&&r.addTag(new kr("description",e.description)),await this.activeLevel.disable(),this.activeLevel=r,await this.activeLevel.enable(),r}async revertToBaseLevel(){this.activeLevel!==this.baseLevel&&(await this.activeLevel.disable(),this.activeLevel=this.baseLevel,await this.activeLevel.enable())}};var Oc=class{static{o(this,"WebSetup")}constructor(e){this.tagManager=new vm,this.readyDeferred=Q.defer(),this.readyForSmartssrDeferred=Q.defer(),this.readyPromise=this.readyDeferred.promise,this.readyForSmartssrPromise=this.readyForSmartssrDeferred.promise,this.options=e,this.setup().then(()=>{this.readyDeferred.resolve(),this.options.smartssrWaitForReadySignal||this.readyForSmartssrDeferred.resolve()})}async setup(e){e&&(this.options=e),await this.tagManager.setup(this.options.metaObject)}revertToBaseLevel(){this.tagManager.revertToBaseLevel()}async setSubLevel(e){return await this.tagManager.setSubPageLevel(e)}flashTitle(e){}informReadyForSmartssr(){this.options.smartssrWaitForReadySignal||console.error("You have not indicated that you inform smartssr by a dedicated signal! Please consider doing so!"),this.readyForSmartssrDeferred.resolve()}};var Rb=class{static{o(this,"Title")}};var k4="1.3.17";function mO(t,e,r){return Math.max(t,Math.min(e,r))}o(mO,"clamp");function T4(t,e,r){return(1-r)*t+r*e}o(T4,"lerp");function E4(t,e,r,n){return T4(t,e,1-Math.exp(-r*n))}o(E4,"damp");function D4(t,e){return(t%e+e)%e}o(D4,"modulo");var C4=class{static{o(this,"Animate")}isRunning=!1;value=0;from=0;to=0;currentTime=0;lerp;duration;easing;onUpdate;advance(t){if(!this.isRunning)return;let e=!1;if(this.duration&&this.easing){this.currentTime+=t;let r=mO(0,this.currentTime/this.duration,1);e=r>=1;let n=e?1:this.easing(r);this.value=this.from+(this.to-this.from)*n}else this.lerp?(this.value=E4(this.value,this.to,this.lerp*60,t),Math.round(this.value)===this.to&&(this.value=this.to,e=!0)):(this.value=this.to,e=!0);e&&this.stop(),this.onUpdate?.(this.value,e)}stop(){this.isRunning=!1}fromTo(t,e,{lerp:r,duration:n,easing:i,onStart:s,onUpdate:a}){this.from=this.value=t,this.to=e,this.lerp=r,this.duration=n,this.easing=i,this.currentTime=0,this.isRunning=!0,s?.(),this.onUpdate=a}};function O4(t,e){let r;return function(...n){let i=this;clearTimeout(r),r=setTimeout(()=>{r=void 0,t.apply(i,n)},e)}}o(O4,"debounce");var I4=class{static{o(this,"Dimensions")}constructor(t,e,{autoResize:r=!0,debounce:n=250}={}){this.wrapper=t,this.content=e,r&&(this.debouncedResize=O4(this.resize,n),this.wrapper instanceof Window?window.addEventListener("resize",this.debouncedResize,!1):(this.wrapperResizeObserver=new ResizeObserver(this.debouncedResize),this.wrapperResizeObserver.observe(this.wrapper)),this.contentResizeObserver=new ResizeObserver(this.debouncedResize),this.contentResizeObserver.observe(this.content)),this.resize()}width=0;height=0;scrollHeight=0;scrollWidth=0;debouncedResize;wrapperResizeObserver;contentResizeObserver;destroy(){this.wrapperResizeObserver?.disconnect(),this.contentResizeObserver?.disconnect(),this.wrapper===window&&this.debouncedResize&&window.removeEventListener("resize",this.debouncedResize,!1)}resize=o(()=>{this.onWrapperResize(),this.onContentResize()},"resize");onWrapperResize=o(()=>{this.wrapper instanceof Window?(this.width=window.innerWidth,this.height=window.innerHeight):(this.width=this.wrapper.clientWidth,this.height=this.wrapper.clientHeight)},"onWrapperResize");onContentResize=o(()=>{this.wrapper instanceof Window?(this.scrollHeight=this.content.scrollHeight,this.scrollWidth=this.content.scrollWidth):(this.scrollHeight=this.wrapper.scrollHeight,this.scrollWidth=this.wrapper.scrollWidth)},"onContentResize");get limit(){return{x:this.scrollWidth-this.width,y:this.scrollHeight-this.height}}},dO=class{static{o(this,"Emitter")}events={};emit(t,...e){let r=this.events[t]||[];for(let n=0,i=r.length;n<i;n++)r[n]?.(...e)}on(t,e){return this.events[t]?.push(e)||(this.events[t]=[e]),()=>{this.events[t]=this.events[t]?.filter(r=>e!==r)}}off(t,e){this.events[t]=this.events[t]?.filter(r=>e!==r)}destroy(){this.events={}}},gO=100/6,Ri={passive:!1},M4=class{static{o(this,"VirtualScroll")}constructor(t,e={wheelMultiplier:1,touchMultiplier:1}){this.element=t,this.options=e,window.addEventListener("resize",this.onWindowResize,!1),this.onWindowResize(),this.element.addEventListener("wheel",this.onWheel,Ri),this.element.addEventListener("touchstart",this.onTouchStart,Ri),this.element.addEventListener("touchmove",this.onTouchMove,Ri),this.element.addEventListener("touchend",this.onTouchEnd,Ri)}touchStart={x:0,y:0};lastDelta={x:0,y:0};window={width:0,height:0};emitter=new dO;on(t,e){return this.emitter.on(t,e)}destroy(){this.emitter.destroy(),window.removeEventListener("resize",this.onWindowResize,!1),this.element.removeEventListener("wheel",this.onWheel,Ri),this.element.removeEventListener("touchstart",this.onTouchStart,Ri),this.element.removeEventListener("touchmove",this.onTouchMove,Ri),this.element.removeEventListener("touchend",this.onTouchEnd,Ri)}onTouchStart=o(t=>{let{clientX:e,clientY:r}=t.targetTouches?t.targetTouches[0]:t;this.touchStart.x=e,this.touchStart.y=r,this.lastDelta={x:0,y:0},this.emitter.emit("scroll",{deltaX:0,deltaY:0,event:t})},"onTouchStart");onTouchMove=o(t=>{let{clientX:e,clientY:r}=t.targetTouches?t.targetTouches[0]:t,n=-(e-this.touchStart.x)*this.options.touchMultiplier,i=-(r-this.touchStart.y)*this.options.touchMultiplier;this.touchStart.x=e,this.touchStart.y=r,this.lastDelta={x:n,y:i},this.emitter.emit("scroll",{deltaX:n,deltaY:i,event:t})},"onTouchMove");onTouchEnd=o(t=>{this.emitter.emit("scroll",{deltaX:this.lastDelta.x,deltaY:this.lastDelta.y,event:t})},"onTouchEnd");onWheel=o(t=>{let{deltaX:e,deltaY:r,deltaMode:n}=t,i=n===1?gO:n===2?this.window.width:1,s=n===1?gO:n===2?this.window.height:1;e*=i,r*=s,e*=this.options.wheelMultiplier,r*=this.options.wheelMultiplier,this.emitter.emit("scroll",{deltaX:e,deltaY:r,event:t})},"onWheel");onWindowResize=o(()=>{this.window={width:window.innerWidth,height:window.innerHeight}},"onWindowResize")},yO=o(t=>Math.min(1,1.001-Math.pow(2,-10*t)),"defaultEasing"),Ic=class{static{o(this,"Lenis")}_isScrolling=!1;_isStopped=!1;_isLocked=!1;_preventNextNativeScrollEvent=!1;_resetVelocityTimeout=null;_rafId=null;isTouching;time=0;userData={};lastVelocity=0;velocity=0;direction=0;options;targetScroll;animatedScroll;animate=new C4;emitter=new dO;dimensions;virtualScroll;constructor({wrapper:t=window,content:e=document.documentElement,eventsTarget:r=t,smoothWheel:n=!0,syncTouch:i=!1,syncTouchLerp:s=.075,touchInertiaExponent:a=1.7,duration:l,easing:c,lerp:u=.1,infinite:f=!1,orientation:p="vertical",gestureOrientation:h=p==="horizontal"?"both":"vertical",touchMultiplier:m=1,wheelMultiplier:d=1,autoResize:g=!0,prevent:y,virtualScroll:x,overscroll:T=!0,autoRaf:E=!1,anchors:L=!1,autoToggle:P=!1,allowNestedScroll:D=!1,__experimental__naiveDimensions:A=!1,naiveDimensions:F=A,stopInertiaOnNavigate:z=!1}={}){window.lenisVersion=k4,(!t||t===document.documentElement)&&(t=window),typeof l=="number"&&typeof c!="function"?c=yO:typeof c=="function"&&typeof l!="number"&&(l=1),this.options={wrapper:t,content:e,eventsTarget:r,smoothWheel:n,syncTouch:i,syncTouchLerp:s,touchInertiaExponent:a,duration:l,easing:c,lerp:u,infinite:f,gestureOrientation:h,orientation:p,touchMultiplier:m,wheelMultiplier:d,autoResize:g,prevent:y,virtualScroll:x,overscroll:T,autoRaf:E,anchors:L,autoToggle:P,allowNestedScroll:D,naiveDimensions:F,stopInertiaOnNavigate:z},this.dimensions=new I4(t,e,{autoResize:g}),this.updateClassName(),this.targetScroll=this.animatedScroll=this.actualScroll,this.options.wrapper.addEventListener("scroll",this.onNativeScroll,!1),this.options.wrapper.addEventListener("scrollend",this.onScrollEnd,{capture:!0}),(this.options.anchors||this.options.stopInertiaOnNavigate)&&this.options.wrapper.addEventListener("click",this.onClick,!1),this.options.wrapper.addEventListener("pointerdown",this.onPointerDown,!1),this.virtualScroll=new M4(r,{touchMultiplier:m,wheelMultiplier:d}),this.virtualScroll.on("scroll",this.onVirtualScroll),this.options.autoToggle&&(this.checkOverflow(),this.rootElement.addEventListener("transitionend",this.onTransitionEnd,{passive:!0})),this.options.autoRaf&&(this._rafId=requestAnimationFrame(this.raf))}destroy(){this.emitter.destroy(),this.options.wrapper.removeEventListener("scroll",this.onNativeScroll,!1),this.options.wrapper.removeEventListener("scrollend",this.onScrollEnd,{capture:!0}),this.options.wrapper.removeEventListener("pointerdown",this.onPointerDown,!1),(this.options.anchors||this.options.stopInertiaOnNavigate)&&this.options.wrapper.removeEventListener("click",this.onClick,!1),this.virtualScroll.destroy(),this.dimensions.destroy(),this.cleanUpClassName(),this._rafId&&cancelAnimationFrame(this._rafId)}on(t,e){return this.emitter.on(t,e)}off(t,e){return this.emitter.off(t,e)}onScrollEnd=o(t=>{t instanceof CustomEvent||(this.isScrolling==="smooth"||this.isScrolling===!1)&&t.stopPropagation()},"onScrollEnd");dispatchScrollendEvent=o(()=>{this.options.wrapper.dispatchEvent(new CustomEvent("scrollend",{bubbles:this.options.wrapper===window,detail:{lenisScrollEnd:!0}}))},"dispatchScrollendEvent");get overflow(){let t=this.isHorizontal?"overflow-x":"overflow-y";return getComputedStyle(this.rootElement)[t]}checkOverflow(){["hidden","clip"].includes(this.overflow)?this.internalStop():this.internalStart()}onTransitionEnd=o(t=>{t.propertyName.includes("overflow")&&this.checkOverflow()},"onTransitionEnd");setScroll(t){this.isHorizontal?this.options.wrapper.scrollTo({left:t,behavior:"instant"}):this.options.wrapper.scrollTo({top:t,behavior:"instant"})}onClick=o(t=>{let r=t.composedPath().filter(n=>n instanceof HTMLAnchorElement&&n.getAttribute("href"));if(this.options.anchors){let n=r.find(i=>i.getAttribute("href")?.includes("#"));if(n){let i=n.getAttribute("href");if(i){let s=typeof this.options.anchors=="object"&&this.options.anchors?this.options.anchors:void 0,a=`#${i.split("#")[1]}`;this.scrollTo(a,s)}}}this.options.stopInertiaOnNavigate&&r.find(i=>i.host===window.location.host)&&this.reset()},"onClick");onPointerDown=o(t=>{t.button===1&&this.reset()},"onPointerDown");onVirtualScroll=o(t=>{if(typeof this.options.virtualScroll=="function"&&this.options.virtualScroll(t)===!1)return;let{deltaX:e,deltaY:r,event:n}=t;if(this.emitter.emit("virtual-scroll",{deltaX:e,deltaY:r,event:n}),n.ctrlKey||n.lenisStopPropagation)return;let i=n.type.includes("touch"),s=n.type.includes("wheel");this.isTouching=n.type==="touchstart"||n.type==="touchmove";let a=e===0&&r===0;if(this.options.syncTouch&&i&&n.type==="touchstart"&&a&&!this.isStopped&&!this.isLocked){this.reset();return}let c=this.options.gestureOrientation==="vertical"&&r===0||this.options.gestureOrientation==="horizontal"&&e===0;if(a||c)return;let u=n.composedPath();u=u.slice(0,u.indexOf(this.rootElement));let f=this.options.prevent;if(u.find(y=>y instanceof HTMLElement&&(typeof f=="function"&&f?.(y)||y.hasAttribute?.("data-lenis-prevent")||i&&y.hasAttribute?.("data-lenis-prevent-touch")||s&&y.hasAttribute?.("data-lenis-prevent-wheel")||this.options.allowNestedScroll&&this.checkNestedScroll(y,{deltaX:e,deltaY:r}))))return;if(this.isStopped||this.isLocked){n.cancelable&&n.preventDefault();return}if(!(this.options.syncTouch&&i||this.options.smoothWheel&&s)){this.isScrolling="native",this.animate.stop(),n.lenisStopPropagation=!0;return}let h=r;this.options.gestureOrientation==="both"?h=Math.abs(r)>Math.abs(e)?r:e:this.options.gestureOrientation==="horizontal"&&(h=e),(!this.options.overscroll||this.options.infinite||this.options.wrapper!==window&&this.limit>0&&(this.animatedScroll>0&&this.animatedScroll<this.limit||this.animatedScroll===0&&r>0||this.animatedScroll===this.limit&&r<0))&&(n.lenisStopPropagation=!0),n.cancelable&&n.preventDefault();let m=i&&this.options.syncTouch,g=i&&n.type==="touchend";g&&(h=Math.sign(this.velocity)*Math.pow(Math.abs(this.velocity),this.options.touchInertiaExponent)),this.scrollTo(this.targetScroll+h,{programmatic:!1,...m?{lerp:g?this.options.syncTouchLerp:1}:{lerp:this.options.lerp,duration:this.options.duration,easing:this.options.easing}})},"onVirtualScroll");resize(){this.dimensions.resize(),this.animatedScroll=this.targetScroll=this.actualScroll,this.emit()}emit(){this.emitter.emit("scroll",this)}onNativeScroll=o(()=>{if(this._resetVelocityTimeout!==null&&(clearTimeout(this._resetVelocityTimeout),this._resetVelocityTimeout=null),this._preventNextNativeScrollEvent){this._preventNextNativeScrollEvent=!1;return}if(this.isScrolling===!1||this.isScrolling==="native"){let t=this.animatedScroll;this.animatedScroll=this.targetScroll=this.actualScroll,this.lastVelocity=this.velocity,this.velocity=this.animatedScroll-t,this.direction=Math.sign(this.animatedScroll-t),this.isStopped||(this.isScrolling="native"),this.emit(),this.velocity!==0&&(this._resetVelocityTimeout=setTimeout(()=>{this.lastVelocity=this.velocity,this.velocity=0,this.isScrolling=!1,this.emit()},400))}},"onNativeScroll");reset(){this.isLocked=!1,this.isScrolling=!1,this.animatedScroll=this.targetScroll=this.actualScroll,this.lastVelocity=this.velocity=0,this.animate.stop()}start(){if(this.isStopped){if(this.options.autoToggle){this.rootElement.style.removeProperty("overflow");return}this.internalStart()}}internalStart(){this.isStopped&&(this.reset(),this.isStopped=!1,this.emit())}stop(){if(!this.isStopped){if(this.options.autoToggle){this.rootElement.style.setProperty("overflow","clip");return}this.internalStop()}}internalStop(){this.isStopped||(this.reset(),this.isStopped=!0,this.emit())}raf=o(t=>{let e=t-(this.time||t);this.time=t,this.animate.advance(e*.001),this.options.autoRaf&&(this._rafId=requestAnimationFrame(this.raf))},"raf");scrollTo(t,{offset:e=0,immediate:r=!1,lock:n=!1,programmatic:i=!0,lerp:s=i?this.options.lerp:void 0,duration:a=i?this.options.duration:void 0,easing:l=i?this.options.easing:void 0,onStart:c,onComplete:u,force:f=!1,userData:p}={}){if(!((this.isStopped||this.isLocked)&&!f)){if(typeof t=="string"&&["top","left","start","#"].includes(t))t=0;else if(typeof t=="string"&&["bottom","right","end"].includes(t))t=this.limit;else{let h;if(typeof t=="string"?(h=document.querySelector(t),h||(t==="#top"?t=0:console.warn("Lenis: Target not found",t))):t instanceof HTMLElement&&t?.nodeType&&(h=t),h){if(this.options.wrapper!==window){let d=this.rootElement.getBoundingClientRect();e-=this.isHorizontal?d.left:d.top}let m=h.getBoundingClientRect();t=(this.isHorizontal?m.left:m.top)+this.animatedScroll}}if(typeof t=="number"){if(t+=e,t=Math.round(t),this.options.infinite){if(i){this.targetScroll=this.animatedScroll=this.scroll;let h=t-this.animatedScroll;h>this.limit/2?t=t-this.limit:h<-this.limit/2&&(t=t+this.limit)}}else t=mO(0,t,this.limit);if(t===this.targetScroll){c?.(this),u?.(this);return}if(this.userData=p??{},r){this.animatedScroll=this.targetScroll=t,this.setScroll(this.scroll),this.reset(),this.preventNextNativeScrollEvent(),this.emit(),u?.(this),this.userData={},requestAnimationFrame(()=>{this.dispatchScrollendEvent()});return}i||(this.targetScroll=t),typeof a=="number"&&typeof l!="function"?l=yO:typeof l=="function"&&typeof a!="number"&&(a=1),this.animate.fromTo(this.animatedScroll,t,{duration:a,easing:l,lerp:s,onStart:o(()=>{n&&(this.isLocked=!0),this.isScrolling="smooth",c?.(this)},"onStart"),onUpdate:o((h,m)=>{this.isScrolling="smooth",this.lastVelocity=this.velocity,this.velocity=h-this.animatedScroll,this.direction=Math.sign(this.velocity),this.animatedScroll=h,this.setScroll(this.scroll),i&&(this.targetScroll=h),m||this.emit(),m&&(this.reset(),this.emit(),u?.(this),this.userData={},requestAnimationFrame(()=>{this.dispatchScrollendEvent()}),this.preventNextNativeScrollEvent())},"onUpdate")})}}}preventNextNativeScrollEvent(){this._preventNextNativeScrollEvent=!0,requestAnimationFrame(()=>{this._preventNextNativeScrollEvent=!1})}checkNestedScroll(t,{deltaX:e,deltaY:r}){let n=Date.now(),i=t._lenis??={},s,a,l,c,u,f,p,h,m=this.options.gestureOrientation;if(n-(i.time??0)>2e3){i.time=Date.now();let P=window.getComputedStyle(t);i.computedStyle=P;let D=P.overflowX,A=P.overflowY;if(s=["auto","overlay","scroll"].includes(D),a=["auto","overlay","scroll"].includes(A),i.hasOverflowX=s,i.hasOverflowY=a,!s&&!a||m==="vertical"&&!a||m==="horizontal"&&!s)return!1;u=t.scrollWidth,f=t.scrollHeight,p=t.clientWidth,h=t.clientHeight,l=u>p,c=f>h,i.isScrollableX=l,i.isScrollableY=c,i.scrollWidth=u,i.scrollHeight=f,i.clientWidth=p,i.clientHeight=h}else l=i.isScrollableX,c=i.isScrollableY,s=i.hasOverflowX,a=i.hasOverflowY,u=i.scrollWidth,f=i.scrollHeight,p=i.clientWidth,h=i.clientHeight;if(!s&&!a||!l&&!c||m==="vertical"&&(!a||!c)||m==="horizontal"&&(!s||!l))return!1;let d;if(m==="horizontal")d="x";else if(m==="vertical")d="y";else{let P=e!==0,D=r!==0;P&&s&&l&&(d="x"),D&&a&&c&&(d="y")}if(!d)return!1;let g,y,x,T,E;if(d==="x")g=t.scrollLeft,y=u-p,x=e,T=s,E=l;else if(d==="y")g=t.scrollTop,y=f-h,x=r,T=a,E=c;else return!1;return(x>0?g<y:g>0)&&T&&E}get rootElement(){return this.options.wrapper===window?document.documentElement:this.options.wrapper}get limit(){return this.options.naiveDimensions?this.isHorizontal?this.rootElement.scrollWidth-this.rootElement.clientWidth:this.rootElement.scrollHeight-this.rootElement.clientHeight:this.dimensions.limit[this.isHorizontal?"x":"y"]}get isHorizontal(){return this.options.orientation==="horizontal"}get actualScroll(){let t=this.options.wrapper;return this.isHorizontal?t.scrollX??t.scrollLeft:t.scrollY??t.scrollTop}get scroll(){return this.options.infinite?D4(this.animatedScroll,this.limit):this.animatedScroll}get progress(){return this.limit===0?1:this.scroll/this.limit}get isScrolling(){return this._isScrolling}set isScrolling(t){this._isScrolling!==t&&(this._isScrolling=t,this.updateClassName())}get isStopped(){return this._isStopped}set isStopped(t){this._isStopped!==t&&(this._isStopped=t,this.updateClassName())}get isLocked(){return this._isLocked}set isLocked(t){this._isLocked!==t&&(this._isLocked=t,this.updateClassName())}get isSmooth(){return this.isScrolling==="smooth"}get className(){let t="lenis";return this.options.autoToggle&&(t+=" lenis-autoToggle"),this.isStopped&&(t+=" lenis-stopped"),this.isLocked&&(t+=" lenis-locked"),this.isScrolling&&(t+=" lenis-scrolling"),this.isScrolling==="smooth"&&(t+=" lenis-smooth"),t}updateClassName(){this.cleanUpClassName(),this.rootElement.className=`${this.rootElement.className} ${this.className}`.trim()}cleanUpClassName(){this.rootElement.className=this.rootElement.className.replace(/lenis(-\w+)?/g,"").trim()}};var Ca=qn(xO(),1),N4={ObjectMap:Tn,Stringmap:ol,FastMap:eo};var Qb={};se(Qb,{containerContextStyles:()=>Q4,cssForConstraint:()=>K4,cssForConstraintContainer:()=>G4,cssForContainer:()=>BO,cssForDesktop:()=>J4,cssForNotebook:()=>X4,cssForPhablet:()=>ez,cssForPhone:()=>tz,cssForTablet:()=>Z4,cssForViewport:()=>Vo,desktop:()=>_O,notebook:()=>RO,phablet:()=>AO,phone:()=>$O,tablet:()=>FO});var Tm=globalThis,Mc=Tm.ShadowRoot&&(Tm.ShadyCSS===void 0||Tm.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Bb=Symbol(),bO=new WeakMap,Oa=class{static{o(this,"n")}constructor(e,r,n){if(this._$cssResult$=!0,n!==Bb)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=r}get styleSheet(){let e=this.o,r=this.t;if(Mc&&e===void 0){let n=r!==void 0&&r.length===1;n&&(e=bO.get(r)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),n&&bO.set(r,e))}return e}toString(){return this.cssText}},sr=o(t=>new Oa(typeof t=="string"?t:t+"",void 0,Bb),"r"),Ur=o((t,...e)=>{let r=t.length===1?t[0]:e.reduce((n,i,s)=>n+(a=>{if(a._$cssResult$===!0)return a.cssText;if(typeof a=="number")return a;throw Error("Value passed to 'css' function must be a 'css' function result: "+a+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+t[s+1],t[0]);return new Oa(r,t,Bb)},"i"),Em=o((t,e)=>{if(Mc)t.adoptedStyleSheets=e.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet);else for(let r of e){let n=document.createElement("style"),i=Tm.litNonce;i!==void 0&&n.setAttribute("nonce",i),n.textContent=r.cssText,t.appendChild(n)}},"S"),Nc=Mc?t=>t:t=>t instanceof CSSStyleSheet?(e=>{let r="";for(let n of e.cssRules)r+=n.cssText;return sr(r)})(t):t;var{is:P4,defineProperty:L4,getOwnPropertyDescriptor:_4,getOwnPropertyNames:R4,getOwnPropertySymbols:F4,getPrototypeOf:A4}=Object,Dm=globalThis,wO=Dm.trustedTypes,$4=wO?wO.emptyScript:"",B4=Dm.reactiveElementPolyfillSupport,Pc=o((t,e)=>t,"d"),Cm={toAttribute(t,e){switch(e){case Boolean:t=t?$4:null;break;case Object:case Array:t=t==null?t:JSON.stringify(t)}return t},fromAttribute(t,e){let r=t;switch(e){case Boolean:r=t!==null;break;case Number:r=t===null?null:Number(t);break;case Object:case Array:try{r=JSON.parse(t)}catch{r=null}}return r}},jb=o((t,e)=>!P4(t,e),"f"),SO={attribute:!0,type:String,converter:Cm,reflect:!1,useDefault:!1,hasChanged:jb};Symbol.metadata??=Symbol("metadata"),Dm.litPropertyMetadata??=new WeakMap;var wn=class extends HTMLElement{static{o(this,"y")}static addInitializer(e){this._$Ei(),(this.l??=[]).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,r=SO){if(r.state&&(r.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(e)&&((r=Object.create(r)).wrapped=!0),this.elementProperties.set(e,r),!r.noAccessor){let n=Symbol(),i=this.getPropertyDescriptor(e,n,r);i!==void 0&&L4(this.prototype,e,i)}}static getPropertyDescriptor(e,r,n){let{get:i,set:s}=_4(this.prototype,e)??{get(){return this[r]},set(a){this[r]=a}};return{get:i,set(a){let l=i?.call(this);s?.call(this,a),this.requestUpdate(e,l,n)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??SO}static _$Ei(){if(this.hasOwnProperty(Pc("elementProperties")))return;let e=A4(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(Pc("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Pc("properties"))){let r=this.properties,n=[...R4(r),...F4(r)];for(let i of n)this.createProperty(i,r[i])}let e=this[Symbol.metadata];if(e!==null){let r=litPropertyMetadata.get(e);if(r!==void 0)for(let[n,i]of r)this.elementProperties.set(n,i)}this._$Eh=new Map;for(let[r,n]of this.elementProperties){let i=this._$Eu(r,n);i!==void 0&&this._$Eh.set(i,r)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){let r=[];if(Array.isArray(e)){let n=new Set(e.flat(1/0).reverse());for(let i of n)r.unshift(Nc(i))}else e!==void 0&&r.push(Nc(e));return r}static _$Eu(e,r){let n=r.attribute;return n===!1?void 0:typeof n=="string"?n: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,r=this.constructor.elementProperties;for(let n of r.keys())this.hasOwnProperty(n)&&(e.set(n,this[n]),delete this[n]);e.size>0&&(this._$Ep=e)}createRenderRoot(){let e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return Em(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,r,n){this._$AK(e,n)}_$ET(e,r){let n=this.constructor.elementProperties.get(e),i=this.constructor._$Eu(e,n);if(i!==void 0&&n.reflect===!0){let s=(n.converter?.toAttribute!==void 0?n.converter:Cm).toAttribute(r,n.type);this._$Em=e,s==null?this.removeAttribute(i):this.setAttribute(i,s),this._$Em=null}}_$AK(e,r){let n=this.constructor,i=n._$Eh.get(e);if(i!==void 0&&this._$Em!==i){let s=n.getPropertyOptions(i),a=typeof s.converter=="function"?{fromAttribute:s.converter}:s.converter?.fromAttribute!==void 0?s.converter:Cm;this._$Em=i;let l=a.fromAttribute(r,s.type);this[i]=l??this._$Ej?.get(i)??l,this._$Em=null}}requestUpdate(e,r,n,i=!1,s){if(e!==void 0){let a=this.constructor;if(i===!1&&(s=this[e]),n??=a.getPropertyOptions(e),!((n.hasChanged??jb)(s,r)||n.useDefault&&n.reflect&&s===this._$Ej?.get(e)&&!this.hasAttribute(a._$Eu(e,n))))return;this.C(e,r,n)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(e,r,{useDefault:n,reflect:i,wrapped:s},a){n&&!(this._$Ej??=new Map).has(e)&&(this._$Ej.set(e,a??r??this[e]),s!==!0||a!==void 0)||(this._$AL.has(e)||(this.hasUpdated||n||(r=void 0),this._$AL.set(e,r)),i===!0&&this._$Em!==e&&(this._$Eq??=new Set).add(e))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(r){Promise.reject(r)}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[i,s]of this._$Ep)this[i]=s;this._$Ep=void 0}let n=this.constructor.elementProperties;if(n.size>0)for(let[i,s]of n){let{wrapped:a}=s,l=this[i];a!==!0||this._$AL.has(i)||l===void 0||this.C(i,void 0,s,l)}}let e=!1,r=this._$AL;try{e=this.shouldUpdate(r),e?(this.willUpdate(r),this._$EO?.forEach(n=>n.hostUpdate?.()),this.update(r)):this._$EM()}catch(n){throw e=!1,this._$EM(),n}e&&this._$AE(r)}willUpdate(e){}_$AE(e){this._$EO?.forEach(r=>r.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(r=>this._$ET(r,this[r])),this._$EM()}updated(e){}firstUpdated(e){}};wn.elementStyles=[],wn.shadowRootOptions={mode:"open"},wn[Pc("elementProperties")]=new Map,wn[Pc("finalized")]=new Map,B4?.({ReactiveElement:wn}),(Dm.reactiveElementVersions??=[]).push("2.1.2");var Ub=globalThis,vO=o(t=>t,"i"),Om=Ub.trustedTypes,kO=Om?Om.createPolicy("lit-html",{createHTML:o(t=>t,"createHTML")}):void 0,zb="$lit$",Hn=`lit$${Math.random().toFixed(9).slice(2)}$`,Hb="?"+Hn,j4=`<${Hb}>`,Uo=document,Lc=o(()=>Uo.createComment(""),"c"),_c=o(t=>t===null||typeof t!="object"&&typeof t!="function","a"),Wb=Array.isArray,TO=o(t=>Wb(t)||typeof t?.[Symbol.iterator]=="function","d"),qb=`[
|
|
287
287
|
\f\r]`,Rc=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,EO=/-->/g,DO=/>/g,zo=RegExp(`>|${qb}(?:([^\\s"'>=/]+)(${qb}*=${qb}*(?:[^
|
|
288
288
|
\f\r"'\`<>=]|("|')|))|$)`,"g"),CO=/'/g,OO=/"/g,IO=/^(?:script|style|textarea|title)$/i,Yb=o(t=>(e,...r)=>({_$litType$:t,strings:e,values:r}),"x"),Vb=Yb(1),U4=Yb(2),z4=Yb(3),Fi=Symbol.for("lit-noChange"),nt=Symbol.for("lit-nothing"),MO=new WeakMap,Ho=Uo.createTreeWalker(Uo,129);function NO(t,e){if(!Wb(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return kO!==void 0?kO.createHTML(e):e}o(NO,"V");var PO=o((t,e)=>{let r=t.length-1,n=[],i,s=e===2?"<svg>":e===3?"<math>":"",a=Rc;for(let l=0;l<r;l++){let c=t[l],u,f,p=-1,h=0;for(;h<c.length&&(a.lastIndex=h,f=a.exec(c),f!==null);)h=a.lastIndex,a===Rc?f[1]==="!--"?a=EO:f[1]!==void 0?a=DO:f[2]!==void 0?(IO.test(f[2])&&(i=RegExp("</"+f[2],"g")),a=zo):f[3]!==void 0&&(a=zo):a===zo?f[0]===">"?(a=i??Rc,p=-1):f[1]===void 0?p=-2:(p=a.lastIndex-f[2].length,u=f[1],a=f[3]===void 0?zo:f[3]==='"'?OO:CO):a===OO||a===CO?a=zo:a===EO||a===DO?a=Rc:(a=zo,i=void 0);let m=a===zo&&t[l+1].startsWith("/>")?" ":"";s+=a===Rc?c+j4:p>=0?(n.push(u),c.slice(0,p)+zb+c.slice(p)+Hn+m):c+Hn+(p===-2?l:m)}return[NO(t,s+(t[r]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),n]},"N"),Fc=class t{static{o(this,"S")}constructor({strings:e,_$litType$:r},n){let i;this.parts=[];let s=0,a=0,l=e.length-1,c=this.parts,[u,f]=PO(e,r);if(this.el=t.createElement(u,n),Ho.currentNode=this.el.content,r===2||r===3){let p=this.el.content.firstChild;p.replaceWith(...p.childNodes)}for(;(i=Ho.nextNode())!==null&&c.length<l;){if(i.nodeType===1){if(i.hasAttributes())for(let p of i.getAttributeNames())if(p.endsWith(zb)){let h=f[a++],m=i.getAttribute(p).split(Hn),d=/([.?@])?(.*)/.exec(h);c.push({type:1,index:s,name:d[2],strings:m,ctor:d[1]==="."?Mm:d[1]==="?"?Nm:d[1]==="@"?Pm:qo}),i.removeAttribute(p)}else p.startsWith(Hn)&&(c.push({type:6,index:s}),i.removeAttribute(p));if(IO.test(i.tagName)){let p=i.textContent.split(Hn),h=p.length-1;if(h>0){i.textContent=Om?Om.emptyScript:"";for(let m=0;m<h;m++)i.append(p[m],Lc()),Ho.nextNode(),c.push({type:2,index:++s});i.append(p[h],Lc())}}}else if(i.nodeType===8)if(i.data===Hb)c.push({type:2,index:s});else{let p=-1;for(;(p=i.data.indexOf(Hn,p+1))!==-1;)c.push({type:7,index:s}),p+=Hn.length-1}s++}}static createElement(e,r){let n=Uo.createElement("template");return n.innerHTML=e,n}};function Wo(t,e,r=t,n){if(e===Fi)return e;let i=n!==void 0?r._$Co?.[n]:r._$Cl,s=_c(e)?void 0:e._$litDirective$;return i?.constructor!==s&&(i?._$AO?.(!1),s===void 0?i=void 0:(i=new s(t),i._$AT(t,r,n)),n!==void 0?(r._$Co??=[])[n]=i:r._$Cl=i),i!==void 0&&(e=Wo(t,i._$AS(t,e.values),i,n)),e}o(Wo,"M");var Im=class{static{o(this,"R")}constructor(e,r){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=r}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){let{el:{content:r},parts:n}=this._$AD,i=(e?.creationScope??Uo).importNode(r,!0);Ho.currentNode=i;let s=Ho.nextNode(),a=0,l=0,c=n[0];for(;c!==void 0;){if(a===c.index){let u;c.type===2?u=new Ia(s,s.nextSibling,this,e):c.type===1?u=new c.ctor(s,c.name,c.strings,this,e):c.type===6&&(u=new Lm(s,this,e)),this._$AV.push(u),c=n[++l]}a!==c?.index&&(s=Ho.nextNode(),a++)}return Ho.currentNode=Uo,i}p(e){let r=0;for(let n of this._$AV)n!==void 0&&(n.strings!==void 0?(n._$AI(e,n,r),r+=n.strings.length-2):n._$AI(e[r])),r++}},Ia=class t{static{o(this,"k")}get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,r,n,i){this.type=2,this._$AH=nt,this._$AN=void 0,this._$AA=e,this._$AB=r,this._$AM=n,this.options=i,this._$Cv=i?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode,r=this._$AM;return r!==void 0&&e?.nodeType===11&&(e=r.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,r=this){e=Wo(this,e,r),_c(e)?e===nt||e==null||e===""?(this._$AH!==nt&&this._$AR(),this._$AH=nt):e!==this._$AH&&e!==Fi&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):TO(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!==nt&&_c(this._$AH)?this._$AA.nextSibling.data=e:this.T(Uo.createTextNode(e)),this._$AH=e}$(e){let{values:r,_$litType$:n}=e,i=typeof n=="number"?this._$AC(e):(n.el===void 0&&(n.el=Fc.createElement(NO(n.h,n.h[0]),this.options)),n);if(this._$AH?._$AD===i)this._$AH.p(r);else{let s=new Im(i,this),a=s.u(this.options);s.p(r),this.T(a),this._$AH=s}}_$AC(e){let r=MO.get(e.strings);return r===void 0&&MO.set(e.strings,r=new Fc(e)),r}k(e){Wb(this._$AH)||(this._$AH=[],this._$AR());let r=this._$AH,n,i=0;for(let s of e)i===r.length?r.push(n=new t(this.O(Lc()),this.O(Lc()),this,this.options)):n=r[i],n._$AI(s),i++;i<r.length&&(this._$AR(n&&n._$AB.nextSibling,i),r.length=i)}_$AR(e=this._$AA.nextSibling,r){for(this._$AP?.(!1,!0,r);e!==this._$AB;){let n=vO(e).nextSibling;vO(e).remove(),e=n}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},qo=class{static{o(this,"H")}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,r,n,i,s){this.type=1,this._$AH=nt,this._$AN=void 0,this.element=e,this.name=r,this._$AM=i,this.options=s,n.length>2||n[0]!==""||n[1]!==""?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=nt}_$AI(e,r=this,n,i){let s=this.strings,a=!1;if(s===void 0)e=Wo(this,e,r,0),a=!_c(e)||e!==this._$AH&&e!==Fi,a&&(this._$AH=e);else{let l=e,c,u;for(e=s[0],c=0;c<s.length-1;c++)u=Wo(this,l[n+c],r,c),u===Fi&&(u=this._$AH[c]),a||=!_c(u)||u!==this._$AH[c],u===nt?e=nt:e!==nt&&(e+=(u??"")+s[c+1]),this._$AH[c]=u}a&&!i&&this.j(e)}j(e){e===nt?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},Mm=class extends qo{static{o(this,"I")}constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===nt?void 0:e}},Nm=class extends qo{static{o(this,"L")}constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==nt)}},Pm=class extends qo{static{o(this,"z")}constructor(e,r,n,i,s){super(e,r,n,i,s),this.type=5}_$AI(e,r=this){if((e=Wo(this,e,r,0)??nt)===Fi)return;let n=this._$AH,i=e===nt&&n!==nt||e.capture!==n.capture||e.once!==n.once||e.passive!==n.passive,s=e!==nt&&(n===nt||i);i&&this.element.removeEventListener(this.name,this,n),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)}},Lm=class{static{o(this,"Z")}constructor(e,r,n){this.element=e,this.type=6,this._$AN=void 0,this._$AM=r,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(e){Wo(this,e)}},H4={M:zb,P:Hn,A:Hb,C:1,L:PO,R:Im,D:TO,V:Wo,I:Ia,H:qo,N:Nm,U:Pm,B:Mm,F:Lm},W4=Ub.litHtmlPolyfillSupport;W4?.(Fc,Ia),(Ub.litHtmlVersions??=[]).push("3.3.2");var Kb=o((t,e,r)=>{let n=r?.renderBefore??e,i=n._$litPart$;if(i===void 0){let s=r?.renderBefore??null;n._$litPart$=i=new Ia(e.insertBefore(Lc(),s),s,void 0,r??{})}return i._$AI(t),i},"D");var Gb=globalThis,Yo=class extends wn{static{o(this,"i")}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 r=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=Kb(r,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return Fi}};Yo._$litElement$=!0,Yo.finalized=!0,Gb.litElementHydrateSupport?.({LitElement:Yo});var q4=Gb.litElementPolyfillSupport;q4?.({LitElement:Yo});var Y4={_$AK:o((t,e,r)=>{t._$AK(e,r)},"_$AK"),_$AL:o(t=>t._$AL,"_$AL")};(Gb.litElementVersions??=[]).push("4.2.2");var V4=!1;var _O=1600,RO=1240,FO=1024,AO=600,$O=400,LO=o(t=>{let e=[];return t.minWidth&&e.push(`(min-width: ${t.minWidth}px)`),t.maxWidth&&e.push(`(max-width: ${t.maxWidth}px)`),e.join(" and ")},"buildCondition"),Vo=o((t,e)=>sr(`
|
|
289
289
|
@container wccToolsViewport ${e} {
|
|
@@ -301,7 +301,7 @@ ${t}`,"stringifyFrontmatter");var KU=new Set(["root","blockquote","listItem","fo
|
|
|
301
301
|
container-type: inline-size;
|
|
302
302
|
container-name: ${sr(t)};
|
|
303
303
|
}
|
|
304
|
-
`,"containerContextStyles"),J4=o(t=>Vo(t,`(min-width: ${_O}px)`),"cssForDesktop"),X4=o(t=>Vo(t,`(max-width: ${RO}px)`),"cssForNotebook"),Z4=o(t=>Vo(t,`(max-width: ${FO}px)`),"cssForTablet"),ez=o(t=>Vo(t,`(max-width: ${AO}px)`),"cssForPhablet"),tz=o(t=>Vo(t,`(max-width: ${$O}px)`),"cssForPhone");var _m=class{static{o(this,"Scroller")}domtoolsInstance;disposed=!1;scrollCallbacks=[];lenisInstance=null;lenisScrollUnsubscribe=null;nativeScrollListenerAttached=!1;handleNativeScroll=o(e=>{this.executeScrollCallbacks()},"handleNativeScroll");handleLenisScroll=o(e=>{this.executeScrollCallbacks()},"handleLenisScroll");constructor(e){this.domtoolsInstance=e,this.attachNativeScrollListener()}sweetScroller=new Ca.default({});async toElement(e,r){this.sweetScroller.toElement(e,r),r?.duration&&await Q.delayFor(r.duration)}async detectNativeSmoothScroll(){let e=getComputedStyle(document.documentElement).scrollBehavior,r=document.body?getComputedStyle(document.body).scrollBehavior:"auto";if(e==="smooth"||r==="smooth")return!0;let n=Q.defer(),i=12,s=3,a=.75,l=1200,c=[],u=o(m=>{window.removeEventListener("wheel",f),window.clearTimeout(h),n.resolve(m)},"finalize");function f(m){c.push(m.deltaY),c.length>=i&&p()}o(f,"onWheel");function p(){if(c.length<2){u(!1);return}let m=c.length-1,d=0;for(let y=0;y<m;y++)Math.abs(c[y+1]-c[y])<=s&&d++;let g=d/m;u(g>=a)}o(p,"analyzeEvents");let h=window.setTimeout(()=>{p()},l);return window.addEventListener("wheel",f,{passive:!0}),n.promise}async enableLenisScroll(e){if(this.disposed)return;this.lenisInstance&&this.disableLenisScroll();let r=new Ic({autoRaf:!0});if(e?.disableOnNativeSmoothScroll&&await this.detectNativeSmoothScroll()){r.destroy();return}this.lenisInstance=r,this.detachNativeScrollListener(),this.attachLenisScrollListener()}disableLenisScroll(){this.lenisInstance&&(this.detachLenisScrollListener(),this.lenisInstance.destroy(),this.lenisInstance=null,this.attachNativeScrollListener())}onScroll(e){return this.scrollCallbacks.push(e),()=>{this.scrollCallbacks=this.scrollCallbacks.filter(r=>r!==e)}}executeScrollCallbacks(){this.scrollCallbacks.forEach(e=>{try{e()}catch(r){console.error("Error in scroll callback:",r)}})}attachNativeScrollListener(){this.nativeScrollListenerAttached||this.disposed||(window.addEventListener("scroll",this.handleNativeScroll),this.nativeScrollListenerAttached=!0)}detachNativeScrollListener(){this.nativeScrollListenerAttached&&(window.removeEventListener("scroll",this.handleNativeScroll),this.nativeScrollListenerAttached=!1)}attachLenisScrollListener(){this.lenisInstance&&!this.lenisScrollUnsubscribe&&(this.lenisScrollUnsubscribe=this.lenisInstance.on("scroll",this.handleLenisScroll))}detachLenisScrollListener(){this.lenisScrollUnsubscribe&&(this.lenisScrollUnsubscribe(),this.lenisScrollUnsubscribe=null)}dispose(){this.disposed||(this.disposed=!0,this.detachLenisScrollListener(),this.lenisInstance?.destroy(),this.lenisInstance=null,this.detachNativeScrollListener(),this.scrollCallbacks=[],this.sweetScroller.destroy())}};var rz=["system","bright","dark"],Jb=o(t=>rz.includes(t),"isThemePreference"),Ac=class t{static{o(this,"ThemeManager")}static preferenceStorageKey="dees-domtools:theme-preference";domtoolsRef;goBrightBoolean=!1;preference="system";preferredColorSchemeMediaMatch=window.matchMedia("(prefers-color-scheme: light)");themeObservable=new Ne.rxjs.ReplaySubject(1);automaticGlobalThemeChangeSubscription=null;preferredColorSchemeChangeHandler=o(e=>{this.preference==="system"&&(this.goBrightBoolean=e.matches,this.updateAllConnectedElements())},"preferredColorSchemeChangeHandler");storageHandler=o(e=>{if(e.storageArea!==window.localStorage||e.key!==t.preferenceStorageKey&&e.key!==null)return;let r=e.key===null?null:e.newValue;this.applyPreference(Jb(r)?r:"system")},"storageHandler");constructor(e){this.domtoolsRef=e,this.preference=t.storedPreference(),this.goBrightBoolean=this.resolveBright(),this.preferredColorSchemeMediaMatch.addEventListener("change",this.preferredColorSchemeChangeHandler),window.addEventListener("storage",this.storageHandler),this.updateAllConnectedElements()}static storedPreference(){let e;try{e=window.localStorage.getItem(t.preferenceStorageKey)}catch{return"system"}return Jb(e)?e:"system"}async enableAutomaticGlobalThemeChange(){await this.domtoolsRef.domReady.promise,this.automaticGlobalThemeChangeSubscription||(this.automaticGlobalThemeChangeSubscription=this.themeObservable.subscribe({next:o(e=>{document.body.style.background=e?"#fff":"#000"},"next")}))}updateAllConnectedElements(){this.domtoolsRef.disposed||this.themeObservable.next(this.goBrightBoolean)}resolveBright(){return this.preference==="system"?this.preferredColorSchemeMediaMatch.matches:this.preference==="bright"}applyPreference(e){this.preference=e;let r=this.resolveBright();r!==this.goBrightBoolean&&(this.goBrightBoolean=r,this.updateAllConnectedElements())}setPreference(e){if(!Jb(e))throw new Error(`Unknown theme preference "${String(e)}".`);this.applyPreference(e);try{return e==="system"?window.localStorage.removeItem(t.preferenceStorageKey):window.localStorage.setItem(t.preferenceStorageKey,e),!0}catch{return!1}}goBright(){this.goBrightBoolean=!0,this.updateAllConnectedElements()}goDark(){this.goBrightBoolean=!1,this.updateAllConnectedElements()}toggleDarkBright(){this.goBrightBoolean=!this.goBrightBoolean,this.updateAllConnectedElements()}dispose(){this.preferredColorSchemeMediaMatch.removeEventListener("change",this.preferredColorSchemeChangeHandler),window.removeEventListener("storage",this.storageHandler),this.automaticGlobalThemeChangeSubscription?.unsubscribe(),this.automaticGlobalThemeChangeSubscription=null,this.themeObservable.complete()}};var Ma=(S=>(S[S.Backspace=8]="Backspace",S[S.Tab=9]="Tab",S[S.Enter=13]="Enter",S[S.Shift=16]="Shift",S[S.Ctrl=17]="Ctrl",S[S.Alt=18]="Alt",S[S.PauseBreak=19]="PauseBreak",S[S.CapsLock=20]="CapsLock",S[S.Escape=27]="Escape",S[S.Space=32]="Space",S[S.PageUp=33]="PageUp",S[S.PageDown=34]="PageDown",S[S.End=35]="End",S[S.Home=36]="Home",S[S.LeftArrow=37]="LeftArrow",S[S.UpArrow=38]="UpArrow",S[S.RightArrow=39]="RightArrow",S[S.DownArrow=40]="DownArrow",S[S.Insert=45]="Insert",S[S.Delete=46]="Delete",S[S.Zero=48]="Zero",S[S.ClosedParen=48]="ClosedParen",S[S.One=49]="One",S[S.ExclamationMark=49]="ExclamationMark",S[S.Two=50]="Two",S[S.AtSign=50]="AtSign",S[S.Three=51]="Three",S[S.PoundSign=51]="PoundSign",S[S.Hash=51]="Hash",S[S.Four=52]="Four",S[S.DollarSign=52]="DollarSign",S[S.Five=53]="Five",S[S.PercentSign=53]="PercentSign",S[S.Six=54]="Six",S[S.Caret=54]="Caret",S[S.Hat=54]="Hat",S[S.Seven=55]="Seven",S[S.Ampersand=55]="Ampersand",S[S.Eight=56]="Eight",S[S.Star=56]="Star",S[S.Asterik=56]="Asterik",S[S.Nine=57]="Nine",S[S.OpenParen=57]="OpenParen",S[S.A=65]="A",S[S.B=66]="B",S[S.C=67]="C",S[S.D=68]="D",S[S.E=69]="E",S[S.F=70]="F",S[S.G=71]="G",S[S.H=72]="H",S[S.I=73]="I",S[S.J=74]="J",S[S.K=75]="K",S[S.L=76]="L",S[S.M=77]="M",S[S.N=78]="N",S[S.O=79]="O",S[S.P=80]="P",S[S.Q=81]="Q",S[S.R=82]="R",S[S.S=83]="S",S[S.T=84]="T",S[S.U=85]="U",S[S.V=86]="V",S[S.W=87]="W",S[S.X=88]="X",S[S.Y=89]="Y",S[S.Z=90]="Z",S[S.LeftWindowKey=91]="LeftWindowKey",S[S.RightWindowKey=92]="RightWindowKey",S[S.SelectKey=93]="SelectKey",S[S.Numpad0=96]="Numpad0",S[S.Numpad1=97]="Numpad1",S[S.Numpad2=98]="Numpad2",S[S.Numpad3=99]="Numpad3",S[S.Numpad4=100]="Numpad4",S[S.Numpad5=101]="Numpad5",S[S.Numpad6=102]="Numpad6",S[S.Numpad7=103]="Numpad7",S[S.Numpad8=104]="Numpad8",S[S.Numpad9=105]="Numpad9",S[S.Multiply=106]="Multiply",S[S.Add=107]="Add",S[S.Subtract=109]="Subtract",S[S.DecimalPoint=110]="DecimalPoint",S[S.Divide=111]="Divide",S[S.F1=112]="F1",S[S.F2=113]="F2",S[S.F3=114]="F3",S[S.F4=115]="F4",S[S.F5=116]="F5",S[S.F6=117]="F6",S[S.F7=118]="F7",S[S.F8=119]="F8",S[S.F9=120]="F9",S[S.F10=121]="F10",S[S.F11=122]="F11",S[S.F12=123]="F12",S[S.NumLock=144]="NumLock",S[S.ScrollLock=145]="ScrollLock",S[S.SemiColon=186]="SemiColon",S[S.Equals=187]="Equals",S[S.Comma=188]="Comma",S[S.Dash=189]="Dash",S[S.Period=190]="Period",S[S.UnderScore=189]="UnderScore",S[S.PlusSign=187]="PlusSign",S[S.ForwardSlash=191]="ForwardSlash",S[S.Tilde=192]="Tilde",S[S.GraveAccent=192]="GraveAccent",S[S.OpenBracket=219]="OpenBracket",S[S.ClosedBracket=221]="ClosedBracket",S[S.Quote=222]="Quote",S))(Ma||{}),Rm=class{constructor(e){this.domNode=e;this.startListening()}domNode;static{o(this,"Keyboard")}mapCombosToHandlers=new Map;pressedKeys=new Set;listening=!1;keyEnum=Ma;on(e){let r=new Ne.rxjs.Subject;return this.registerKeys(e,r),r}triggerKeyPress(e){let r=this.normalizeKeys(e);for(let n of r)this.pressedKeys.add(n);this.checkMatchingKeyboardSubjects(this.createKeyboardEvent(r));for(let n of r)this.pressedKeys.delete(n)}startListening(){this.listening||(this.domNode.addEventListener("keydown",this.handleKeyDown),this.domNode.addEventListener("keyup",this.handleKeyUp),this.listening=!0)}stopListening(){this.listening&&(this.domNode.removeEventListener("keydown",this.handleKeyDown),this.domNode.removeEventListener("keyup",this.handleKeyUp),this.listening=!1)}clear(){this.stopListening();for(let e of this.mapCombosToHandlers.values())for(let r of e.subjects)r.complete();this.mapCombosToHandlers.clear(),this.pressedKeys.clear()}dispose(){this.clear()}handleKeyDown=o(e=>{let r=this.resolveKey(e);r!==null&&(this.pressedKeys.add(r),this.checkMatchingKeyboardSubjects(e))},"handleKeyDown");checkMatchingKeyboardSubjects(e){this.mapCombosToHandlers.forEach(r=>{if(this.areAllKeysPressed(r.keys))for(let n of r.subjects)n.next(e)})}handleKeyUp=o(e=>{let r=this.resolveKey(e);r!==null&&this.pressedKeys.delete(r)},"handleKeyUp");areAllKeysPressed(e){let r=!0;return e.forEach(n=>{this.pressedKeys.has(n)||(r=!1)}),r}registerKeys(e,r){let n=this.normalizeKeys(e),i=n.join("+"),s=this.mapCombosToHandlers.get(i);if(!s){this.mapCombosToHandlers.set(i,{keys:n,subjects:[r]});return}s.subjects.push(r)}normalizeKeys(e){return[...new Set(e)].sort((r,n)=>r-n)}resolveKey(e){return this.resolveKeyFromCode(e.code)??this.resolveKeyFromKey(e.key)??this.resolveKeyFromKeyCode(e.keyCode)}resolveKeyFromCode(e){if(!e)return null;if(e.startsWith("Key")&&e.length===4)return Ma[e.slice(3)]??null;if(e.startsWith("Digit")&&e.length===6)return this.resolveKeyFromKey(e.slice(5));switch(e){case"Backspace":return 8;case"Tab":return 9;case"Enter":case"NumpadEnter":return 13;case"ShiftLeft":case"ShiftRight":return 16;case"ControlLeft":case"ControlRight":return 17;case"AltLeft":case"AltRight":return 18;case"Pause":return 19;case"CapsLock":return 20;case"Escape":return 27;case"Space":return 32;case"PageUp":return 33;case"PageDown":return 34;case"End":return 35;case"Home":return 36;case"ArrowLeft":return 37;case"ArrowUp":return 38;case"ArrowRight":return 39;case"ArrowDown":return 40;case"Insert":return 45;case"Delete":return 46;case"MetaLeft":return 91;case"MetaRight":return 92;case"ContextMenu":return 93;case"Numpad0":return 96;case"Numpad1":return 97;case"Numpad2":return 98;case"Numpad3":return 99;case"Numpad4":return 100;case"Numpad5":return 101;case"Numpad6":return 102;case"Numpad7":return 103;case"Numpad8":return 104;case"Numpad9":return 105;case"NumpadMultiply":return 106;case"NumpadAdd":return 107;case"NumpadSubtract":return 109;case"NumpadDecimal":return 110;case"NumpadDivide":return 111;case"F1":return 112;case"F2":return 113;case"F3":return 114;case"F4":return 115;case"F5":return 116;case"F6":return 117;case"F7":return 118;case"F8":return 119;case"F9":return 120;case"F10":return 121;case"F11":return 122;case"F12":return 123;case"NumLock":return 144;case"ScrollLock":return 145;case"Semicolon":return 186;case"Equal":return 187;case"Comma":return 188;case"Minus":return 189;case"Period":return 190;case"Slash":return 191;case"Backquote":return 192;case"BracketLeft":return 219;case"BracketRight":return 221;case"Quote":return 222;default:return null}}resolveKeyFromKey(e){if(!e)return null;if(e.length===1){let r=e.toUpperCase();if(r>="A"&&r<="Z")return Ma[r]??null;switch(e){case"0":return 48;case"1":return 49;case"2":return 50;case"3":return 51;case"4":return 52;case"5":return 53;case"6":return 54;case"7":return 55;case"8":return 56;case"9":return 57;case" ":return 32;case";":return 186;case"=":return 187;case",":return 188;case"-":return 189;case".":return 190;case"/":return 191;case"`":return 192;case"[":return 219;case"]":return 221;case"'":return 222;default:return null}}switch(e){case"Backspace":return 8;case"Tab":return 9;case"Enter":return 13;case"Shift":return 16;case"Control":return 17;case"Alt":return 18;case"Pause":return 19;case"CapsLock":return 20;case"Escape":return 27;case"PageUp":return 33;case"PageDown":return 34;case"End":return 35;case"Home":return 36;case"ArrowLeft":return 37;case"ArrowUp":return 38;case"ArrowRight":return 39;case"ArrowDown":return 40;case"Insert":return 45;case"Delete":return 46;case"Meta":return 91;case"ContextMenu":return 93;case"NumLock":return 144;case"ScrollLock":return 145;default:return null}}resolveKeyFromKeyCode(e){return typeof e!="number"?null:typeof Ma[e]<"u"?e:null}createKeyboardEvent(e){let r=e[e.length-1]??13,n=this.getKeyDescriptor(r);return new KeyboardEvent("keydown",{key:n.key,code:n.code,ctrlKey:e.includes(17),shiftKey:e.includes(16),altKey:e.includes(18),metaKey:e.includes(91)||e.includes(92)})}getKeyDescriptor(e){switch(e){case 17:return{key:"Control",code:"ControlLeft"};case 16:return{key:"Shift",code:"ShiftLeft"};case 18:return{key:"Alt",code:"AltLeft"};case 13:return{key:"Enter",code:"Enter"};case 32:return{key:" ",code:"Space"};default:{let r=Ma[e];if(r&&r.length===1&&r>="A"&&r<="Z")return{key:r.toLowerCase(),code:`Key${r}`};if(e>=48&&e<=57){let n=String(e-48);return{key:n,code:`Digit${n}`}}return{key:r??"Unidentified",code:"Unidentified"}}}}};var Sn=globalThis,$c=class t{static{o(this,"DomTools")}static initializationPromise=null;static async setupDomTools(e={}){if(e.ignoreGlobal){let r=new t(e);return await r.initializationPromise,r}if(Sn.deesDomTools&&!Sn.deesDomTools.disposed)return await Sn.deesDomTools.initializationPromise,Sn.deesDomTools;if(!t.initializationPromise){let r=new t(e);Sn.deesDomTools=r,t.initializationPromise=r.initializationPromise.then(()=>r).catch(n=>{throw Sn.deesDomTools===r&&(Sn.deesDomTools=void 0),t.initializationPromise=null,n})}return await t.initializationPromise}static getGlobalDomToolsSync(){let e=Sn.deesDomTools;if(!e||e.disposed)throw new Error("You tried to access domtools synchronously too early");return e}elements={headElement:null,bodyElement:null};websetup=new Oc({metaObject:{title:""}});smartstate=new $o.Smartstate;domToolsStatePart=this.smartstate.getStatePart("domtools",{virtualViewport:"native",jwt:""});router=new Ao.SmartRouter({debug:!1});convenience={typedrequest:jt,smartjson:er,smartpromise:Q,smarturl:Bo};deesComms=new kl.DeesComms;scroller=new _m(this);themeManager=new Ac(this);keyboard=null;disposed=!1;domToolsReady=Q.defer();domReady=Q.defer();globalStylesReady=Q.defer();initializationPromise;managedDomNodes=[];readyStateChangedFunc=o(()=>{this.tryMarkDomReady()},"readyStateChangedFunc");constructor(e){this.initializationPromise=this.initialize()}runOncePromiseMap=new Map;async initialize(){this.tryMarkDomReady(),this.domReady.status==="pending"&&document.addEventListener("readystatechange",this.readyStateChangedFunc),this.domToolsReady.status==="pending"&&this.domToolsReady.resolve()}tryMarkDomReady(){this.disposed||this.domReady.status!=="pending"||document.readyState!=="interactive"&&document.readyState!=="complete"||!document.head||!document.body||(this.elements.headElement=document.head,this.elements.bodyElement=document.body,this.keyboard||(this.keyboard=new Rm(document.body)),document.removeEventListener("readystatechange",this.readyStateChangedFunc),this.domReady.resolve())}trackManagedDomNode(e){return this.managedDomNodes.push(e),e}getHeadOrBodyElement(){let e=this.elements.headElement||document.head||this.elements.bodyElement||document.body;if(!e)throw new Error("DomTools could not find a DOM target element to attach resources to");return e}async runOnce(e,r){let n=this.runOncePromiseMap.get(e);return n||(n=Promise.resolve().then(async()=>await r()),this.runOncePromiseMap.set(e,n)),await n}async setGlobalStyles(e){await this.domReady.promise;let r=this.trackManagedDomNode(document.createElement("style"));r.type="text/css",r.appendChild(document.createTextNode(e)),this.getHeadOrBodyElement().appendChild(r)}async setExternalScript(e){await this.domReady.promise;let r=Q.defer(),n=this.trackManagedDomNode(document.createElement("script"));n.src=e,n.addEventListener("load",()=>{r.resolve()}),n.addEventListener("error",()=>{r.reject(new Error(`Failed to load external script: ${e}`))}),this.getHeadOrBodyElement().append(n),await r.promise}async setExternalCss(e){await this.domReady.promise;let r=Q.defer(),n=this.trackManagedDomNode(document.createElement("link"));n.rel="stylesheet",n.crossOrigin="anonymous",n.href=e,n.addEventListener("load",()=>{r.resolve()}),n.addEventListener("error",()=>{r.reject(new Error(`Failed to load external stylesheet: ${e}`))}),this.getHeadOrBodyElement().append(n),await r.promise}async setWebsiteInfo(e){await this.websetup.setup(e),await this.websetup.readyPromise}dispose(){if(!this.disposed){this.disposed=!0,document.removeEventListener("readystatechange",this.readyStateChangedFunc),this.keyboard?.dispose(),this.keyboard=null,this.scroller.dispose(),this.themeManager.dispose();for(let e of this.managedDomNodes)e.remove();this.managedDomNodes.length=0,Sn.deesDomTools===this&&(Sn.deesDomTools=void 0,t.initializationPromise=null)}}};var Fm=(()=>{let t=navigator.userAgent.indexOf("Mac OS X")===-1?Ur``.cssText:"";return Ur`
|
|
304
|
+
`,"containerContextStyles"),J4=o(t=>Vo(t,`(min-width: ${_O}px)`),"cssForDesktop"),X4=o(t=>Vo(t,`(max-width: ${RO}px)`),"cssForNotebook"),Z4=o(t=>Vo(t,`(max-width: ${FO}px)`),"cssForTablet"),ez=o(t=>Vo(t,`(max-width: ${AO}px)`),"cssForPhablet"),tz=o(t=>Vo(t,`(max-width: ${$O}px)`),"cssForPhone");var _m=class{static{o(this,"Scroller")}domtoolsInstance;disposed=!1;scrollCallbacks=[];lenisInstance=null;lenisScrollUnsubscribe=null;nativeScrollListenerAttached=!1;handleNativeScroll=o(e=>{this.executeScrollCallbacks()},"handleNativeScroll");handleLenisScroll=o(e=>{this.executeScrollCallbacks()},"handleLenisScroll");constructor(e){this.domtoolsInstance=e,this.attachNativeScrollListener()}sweetScroller=new Ca.default({});async toElement(e,r){this.sweetScroller.toElement(e,r),r?.duration&&await Q.delayFor(r.duration)}async detectNativeSmoothScroll(){let e=getComputedStyle(document.documentElement).scrollBehavior,r=document.body?getComputedStyle(document.body).scrollBehavior:"auto";if(e==="smooth"||r==="smooth")return!0;let n=Q.defer(),i=12,s=3,a=.75,l=1200,c=[],u=o(m=>{window.removeEventListener("wheel",f),window.clearTimeout(h),n.resolve(m)},"finalize");function f(m){c.push(m.deltaY),c.length>=i&&p()}o(f,"onWheel");function p(){if(c.length<2){u(!1);return}let m=c.length-1,d=0;for(let y=0;y<m;y++)Math.abs(c[y+1]-c[y])<=s&&d++;let g=d/m;u(g>=a)}o(p,"analyzeEvents");let h=window.setTimeout(()=>{p()},l);return window.addEventListener("wheel",f,{passive:!0}),n.promise}async enableLenisScroll(e){if(this.disposed)return;this.lenisInstance&&this.disableLenisScroll();let r=new Ic({autoRaf:!0});if(e?.disableOnNativeSmoothScroll&&await this.detectNativeSmoothScroll()){r.destroy();return}this.lenisInstance=r,this.detachNativeScrollListener(),this.attachLenisScrollListener()}disableLenisScroll(){this.lenisInstance&&(this.detachLenisScrollListener(),this.lenisInstance.destroy(),this.lenisInstance=null,this.attachNativeScrollListener())}onScroll(e){return this.scrollCallbacks.push(e),()=>{this.scrollCallbacks=this.scrollCallbacks.filter(r=>r!==e)}}executeScrollCallbacks(){this.scrollCallbacks.forEach(e=>{try{e()}catch(r){console.error("Error in scroll callback:",r)}})}attachNativeScrollListener(){this.nativeScrollListenerAttached||this.disposed||(window.addEventListener("scroll",this.handleNativeScroll),this.nativeScrollListenerAttached=!0)}detachNativeScrollListener(){this.nativeScrollListenerAttached&&(window.removeEventListener("scroll",this.handleNativeScroll),this.nativeScrollListenerAttached=!1)}attachLenisScrollListener(){this.lenisInstance&&!this.lenisScrollUnsubscribe&&(this.lenisScrollUnsubscribe=this.lenisInstance.on("scroll",this.handleLenisScroll))}detachLenisScrollListener(){this.lenisScrollUnsubscribe&&(this.lenisScrollUnsubscribe(),this.lenisScrollUnsubscribe=null)}dispose(){this.disposed||(this.disposed=!0,this.detachLenisScrollListener(),this.lenisInstance?.destroy(),this.lenisInstance=null,this.detachNativeScrollListener(),this.scrollCallbacks=[],this.sweetScroller.destroy())}};var rz=["system","bright","dark"],Jb=o(t=>rz.includes(t),"isThemePreference"),Ac=class t{static{o(this,"ThemeManager")}static preferenceStorageKey="dees-domtools:theme-preference";domtoolsRef;goBrightBoolean=!1;preference="system";preferredColorSchemeMediaMatch=window.matchMedia("(prefers-color-scheme: light)");systemBright=this.preferredColorSchemeMediaMatch.matches;themeObservable=new Ie.rxjs.ReplaySubject(1);stateObservable=new Ie.rxjs.ReplaySubject(1);automaticGlobalThemeChangeSubscription=null;preferredColorSchemeChangeHandler=o(e=>{if(this.systemBright=e.matches,this.preference!=="system"){this.publishState();return}this.goBrightBoolean=e.matches,this.updateAllConnectedElements()},"preferredColorSchemeChangeHandler");storageHandler=o(e=>{if(e.storageArea!==window.localStorage||e.key!==t.preferenceStorageKey&&e.key!==null)return;let r=e.key===null?null:e.newValue;this.applyPreference(Jb(r)?r:"system")},"storageHandler");constructor(e){this.domtoolsRef=e,this.preference=t.storedPreference(),this.goBrightBoolean=this.resolveBright(),this.preferredColorSchemeMediaMatch.addEventListener("change",this.preferredColorSchemeChangeHandler),window.addEventListener("storage",this.storageHandler),this.updateAllConnectedElements()}static storedPreference(){let e;try{e=window.localStorage.getItem(t.preferenceStorageKey)}catch{return"system"}return Jb(e)?e:"system"}async enableAutomaticGlobalThemeChange(){await this.domtoolsRef.domReady.promise,this.automaticGlobalThemeChangeSubscription||(this.automaticGlobalThemeChangeSubscription=this.themeObservable.subscribe({next:o(e=>{document.body.style.background=e?"#fff":"#000"},"next")}))}updateAllConnectedElements(){this.domtoolsRef.disposed||(this.themeObservable.next(this.goBrightBoolean),this.publishState())}publishState(){this.domtoolsRef.disposed||this.stateObservable.next({preference:this.preference,systemBright:this.systemBright,goBright:this.goBrightBoolean})}resolveBright(){return this.preference==="system"?this.systemBright:this.preference==="bright"}applyPreference(e){let r=e!==this.preference;this.preference=e;let n=this.resolveBright();n!==this.goBrightBoolean?(this.goBrightBoolean=n,this.updateAllConnectedElements()):r&&this.publishState()}setPreference(e){if(!Jb(e))throw new Error(`Unknown theme preference "${String(e)}".`);this.applyPreference(e);try{return e==="system"?window.localStorage.removeItem(t.preferenceStorageKey):window.localStorage.setItem(t.preferenceStorageKey,e),!0}catch{return!1}}goBright(){this.goBrightBoolean=!0,this.updateAllConnectedElements()}goDark(){this.goBrightBoolean=!1,this.updateAllConnectedElements()}toggleDarkBright(){this.goBrightBoolean=!this.goBrightBoolean,this.updateAllConnectedElements()}dispose(){this.preferredColorSchemeMediaMatch.removeEventListener("change",this.preferredColorSchemeChangeHandler),window.removeEventListener("storage",this.storageHandler),this.automaticGlobalThemeChangeSubscription?.unsubscribe(),this.automaticGlobalThemeChangeSubscription=null,this.themeObservable.complete(),this.stateObservable.complete()}};var Ma=(S=>(S[S.Backspace=8]="Backspace",S[S.Tab=9]="Tab",S[S.Enter=13]="Enter",S[S.Shift=16]="Shift",S[S.Ctrl=17]="Ctrl",S[S.Alt=18]="Alt",S[S.PauseBreak=19]="PauseBreak",S[S.CapsLock=20]="CapsLock",S[S.Escape=27]="Escape",S[S.Space=32]="Space",S[S.PageUp=33]="PageUp",S[S.PageDown=34]="PageDown",S[S.End=35]="End",S[S.Home=36]="Home",S[S.LeftArrow=37]="LeftArrow",S[S.UpArrow=38]="UpArrow",S[S.RightArrow=39]="RightArrow",S[S.DownArrow=40]="DownArrow",S[S.Insert=45]="Insert",S[S.Delete=46]="Delete",S[S.Zero=48]="Zero",S[S.ClosedParen=48]="ClosedParen",S[S.One=49]="One",S[S.ExclamationMark=49]="ExclamationMark",S[S.Two=50]="Two",S[S.AtSign=50]="AtSign",S[S.Three=51]="Three",S[S.PoundSign=51]="PoundSign",S[S.Hash=51]="Hash",S[S.Four=52]="Four",S[S.DollarSign=52]="DollarSign",S[S.Five=53]="Five",S[S.PercentSign=53]="PercentSign",S[S.Six=54]="Six",S[S.Caret=54]="Caret",S[S.Hat=54]="Hat",S[S.Seven=55]="Seven",S[S.Ampersand=55]="Ampersand",S[S.Eight=56]="Eight",S[S.Star=56]="Star",S[S.Asterik=56]="Asterik",S[S.Nine=57]="Nine",S[S.OpenParen=57]="OpenParen",S[S.A=65]="A",S[S.B=66]="B",S[S.C=67]="C",S[S.D=68]="D",S[S.E=69]="E",S[S.F=70]="F",S[S.G=71]="G",S[S.H=72]="H",S[S.I=73]="I",S[S.J=74]="J",S[S.K=75]="K",S[S.L=76]="L",S[S.M=77]="M",S[S.N=78]="N",S[S.O=79]="O",S[S.P=80]="P",S[S.Q=81]="Q",S[S.R=82]="R",S[S.S=83]="S",S[S.T=84]="T",S[S.U=85]="U",S[S.V=86]="V",S[S.W=87]="W",S[S.X=88]="X",S[S.Y=89]="Y",S[S.Z=90]="Z",S[S.LeftWindowKey=91]="LeftWindowKey",S[S.RightWindowKey=92]="RightWindowKey",S[S.SelectKey=93]="SelectKey",S[S.Numpad0=96]="Numpad0",S[S.Numpad1=97]="Numpad1",S[S.Numpad2=98]="Numpad2",S[S.Numpad3=99]="Numpad3",S[S.Numpad4=100]="Numpad4",S[S.Numpad5=101]="Numpad5",S[S.Numpad6=102]="Numpad6",S[S.Numpad7=103]="Numpad7",S[S.Numpad8=104]="Numpad8",S[S.Numpad9=105]="Numpad9",S[S.Multiply=106]="Multiply",S[S.Add=107]="Add",S[S.Subtract=109]="Subtract",S[S.DecimalPoint=110]="DecimalPoint",S[S.Divide=111]="Divide",S[S.F1=112]="F1",S[S.F2=113]="F2",S[S.F3=114]="F3",S[S.F4=115]="F4",S[S.F5=116]="F5",S[S.F6=117]="F6",S[S.F7=118]="F7",S[S.F8=119]="F8",S[S.F9=120]="F9",S[S.F10=121]="F10",S[S.F11=122]="F11",S[S.F12=123]="F12",S[S.NumLock=144]="NumLock",S[S.ScrollLock=145]="ScrollLock",S[S.SemiColon=186]="SemiColon",S[S.Equals=187]="Equals",S[S.Comma=188]="Comma",S[S.Dash=189]="Dash",S[S.Period=190]="Period",S[S.UnderScore=189]="UnderScore",S[S.PlusSign=187]="PlusSign",S[S.ForwardSlash=191]="ForwardSlash",S[S.Tilde=192]="Tilde",S[S.GraveAccent=192]="GraveAccent",S[S.OpenBracket=219]="OpenBracket",S[S.ClosedBracket=221]="ClosedBracket",S[S.Quote=222]="Quote",S))(Ma||{}),Rm=class{constructor(e){this.domNode=e;this.startListening()}domNode;static{o(this,"Keyboard")}mapCombosToHandlers=new Map;pressedKeys=new Set;listening=!1;keyEnum=Ma;on(e){let r=new Ie.rxjs.Subject;return this.registerKeys(e,r),r}triggerKeyPress(e){let r=this.normalizeKeys(e);for(let n of r)this.pressedKeys.add(n);this.checkMatchingKeyboardSubjects(this.createKeyboardEvent(r));for(let n of r)this.pressedKeys.delete(n)}startListening(){this.listening||(this.domNode.addEventListener("keydown",this.handleKeyDown),this.domNode.addEventListener("keyup",this.handleKeyUp),this.listening=!0)}stopListening(){this.listening&&(this.domNode.removeEventListener("keydown",this.handleKeyDown),this.domNode.removeEventListener("keyup",this.handleKeyUp),this.listening=!1)}clear(){this.stopListening();for(let e of this.mapCombosToHandlers.values())for(let r of e.subjects)r.complete();this.mapCombosToHandlers.clear(),this.pressedKeys.clear()}dispose(){this.clear()}handleKeyDown=o(e=>{let r=this.resolveKey(e);r!==null&&(this.pressedKeys.add(r),this.checkMatchingKeyboardSubjects(e))},"handleKeyDown");checkMatchingKeyboardSubjects(e){this.mapCombosToHandlers.forEach(r=>{if(this.areAllKeysPressed(r.keys))for(let n of r.subjects)n.next(e)})}handleKeyUp=o(e=>{let r=this.resolveKey(e);r!==null&&this.pressedKeys.delete(r)},"handleKeyUp");areAllKeysPressed(e){let r=!0;return e.forEach(n=>{this.pressedKeys.has(n)||(r=!1)}),r}registerKeys(e,r){let n=this.normalizeKeys(e),i=n.join("+"),s=this.mapCombosToHandlers.get(i);if(!s){this.mapCombosToHandlers.set(i,{keys:n,subjects:[r]});return}s.subjects.push(r)}normalizeKeys(e){return[...new Set(e)].sort((r,n)=>r-n)}resolveKey(e){return this.resolveKeyFromCode(e.code)??this.resolveKeyFromKey(e.key)??this.resolveKeyFromKeyCode(e.keyCode)}resolveKeyFromCode(e){if(!e)return null;if(e.startsWith("Key")&&e.length===4)return Ma[e.slice(3)]??null;if(e.startsWith("Digit")&&e.length===6)return this.resolveKeyFromKey(e.slice(5));switch(e){case"Backspace":return 8;case"Tab":return 9;case"Enter":case"NumpadEnter":return 13;case"ShiftLeft":case"ShiftRight":return 16;case"ControlLeft":case"ControlRight":return 17;case"AltLeft":case"AltRight":return 18;case"Pause":return 19;case"CapsLock":return 20;case"Escape":return 27;case"Space":return 32;case"PageUp":return 33;case"PageDown":return 34;case"End":return 35;case"Home":return 36;case"ArrowLeft":return 37;case"ArrowUp":return 38;case"ArrowRight":return 39;case"ArrowDown":return 40;case"Insert":return 45;case"Delete":return 46;case"MetaLeft":return 91;case"MetaRight":return 92;case"ContextMenu":return 93;case"Numpad0":return 96;case"Numpad1":return 97;case"Numpad2":return 98;case"Numpad3":return 99;case"Numpad4":return 100;case"Numpad5":return 101;case"Numpad6":return 102;case"Numpad7":return 103;case"Numpad8":return 104;case"Numpad9":return 105;case"NumpadMultiply":return 106;case"NumpadAdd":return 107;case"NumpadSubtract":return 109;case"NumpadDecimal":return 110;case"NumpadDivide":return 111;case"F1":return 112;case"F2":return 113;case"F3":return 114;case"F4":return 115;case"F5":return 116;case"F6":return 117;case"F7":return 118;case"F8":return 119;case"F9":return 120;case"F10":return 121;case"F11":return 122;case"F12":return 123;case"NumLock":return 144;case"ScrollLock":return 145;case"Semicolon":return 186;case"Equal":return 187;case"Comma":return 188;case"Minus":return 189;case"Period":return 190;case"Slash":return 191;case"Backquote":return 192;case"BracketLeft":return 219;case"BracketRight":return 221;case"Quote":return 222;default:return null}}resolveKeyFromKey(e){if(!e)return null;if(e.length===1){let r=e.toUpperCase();if(r>="A"&&r<="Z")return Ma[r]??null;switch(e){case"0":return 48;case"1":return 49;case"2":return 50;case"3":return 51;case"4":return 52;case"5":return 53;case"6":return 54;case"7":return 55;case"8":return 56;case"9":return 57;case" ":return 32;case";":return 186;case"=":return 187;case",":return 188;case"-":return 189;case".":return 190;case"/":return 191;case"`":return 192;case"[":return 219;case"]":return 221;case"'":return 222;default:return null}}switch(e){case"Backspace":return 8;case"Tab":return 9;case"Enter":return 13;case"Shift":return 16;case"Control":return 17;case"Alt":return 18;case"Pause":return 19;case"CapsLock":return 20;case"Escape":return 27;case"PageUp":return 33;case"PageDown":return 34;case"End":return 35;case"Home":return 36;case"ArrowLeft":return 37;case"ArrowUp":return 38;case"ArrowRight":return 39;case"ArrowDown":return 40;case"Insert":return 45;case"Delete":return 46;case"Meta":return 91;case"ContextMenu":return 93;case"NumLock":return 144;case"ScrollLock":return 145;default:return null}}resolveKeyFromKeyCode(e){return typeof e!="number"?null:typeof Ma[e]<"u"?e:null}createKeyboardEvent(e){let r=e[e.length-1]??13,n=this.getKeyDescriptor(r);return new KeyboardEvent("keydown",{key:n.key,code:n.code,ctrlKey:e.includes(17),shiftKey:e.includes(16),altKey:e.includes(18),metaKey:e.includes(91)||e.includes(92)})}getKeyDescriptor(e){switch(e){case 17:return{key:"Control",code:"ControlLeft"};case 16:return{key:"Shift",code:"ShiftLeft"};case 18:return{key:"Alt",code:"AltLeft"};case 13:return{key:"Enter",code:"Enter"};case 32:return{key:" ",code:"Space"};default:{let r=Ma[e];if(r&&r.length===1&&r>="A"&&r<="Z")return{key:r.toLowerCase(),code:`Key${r}`};if(e>=48&&e<=57){let n=String(e-48);return{key:n,code:`Digit${n}`}}return{key:r??"Unidentified",code:"Unidentified"}}}}};var Sn=globalThis,$c=class t{static{o(this,"DomTools")}static initializationPromise=null;static async setupDomTools(e={}){if(e.ignoreGlobal){let r=new t(e);return await r.initializationPromise,r}if(Sn.deesDomTools&&!Sn.deesDomTools.disposed)return await Sn.deesDomTools.initializationPromise,Sn.deesDomTools;if(!t.initializationPromise){let r=new t(e);Sn.deesDomTools=r,t.initializationPromise=r.initializationPromise.then(()=>r).catch(n=>{throw Sn.deesDomTools===r&&(Sn.deesDomTools=void 0),t.initializationPromise=null,n})}return await t.initializationPromise}static getGlobalDomToolsSync(){let e=Sn.deesDomTools;if(!e||e.disposed)throw new Error("You tried to access domtools synchronously too early");return e}elements={headElement:null,bodyElement:null};websetup=new Oc({metaObject:{title:""}});smartstate=new $o.Smartstate;domToolsStatePart=this.smartstate.getStatePart("domtools",{virtualViewport:"native",jwt:""});router=new Ao.SmartRouter({debug:!1});convenience={typedrequest:jt,smartjson:er,smartpromise:Q,smarturl:Bo};deesComms=new kl.DeesComms;scroller=new _m(this);themeManager=new Ac(this);keyboard=null;disposed=!1;domToolsReady=Q.defer();domReady=Q.defer();globalStylesReady=Q.defer();initializationPromise;managedDomNodes=[];readyStateChangedFunc=o(()=>{this.tryMarkDomReady()},"readyStateChangedFunc");constructor(e){this.initializationPromise=this.initialize()}runOncePromiseMap=new Map;async initialize(){this.tryMarkDomReady(),this.domReady.status==="pending"&&document.addEventListener("readystatechange",this.readyStateChangedFunc),this.domToolsReady.status==="pending"&&this.domToolsReady.resolve()}tryMarkDomReady(){this.disposed||this.domReady.status!=="pending"||document.readyState!=="interactive"&&document.readyState!=="complete"||!document.head||!document.body||(this.elements.headElement=document.head,this.elements.bodyElement=document.body,this.keyboard||(this.keyboard=new Rm(document.body)),document.removeEventListener("readystatechange",this.readyStateChangedFunc),this.domReady.resolve())}trackManagedDomNode(e){return this.managedDomNodes.push(e),e}getHeadOrBodyElement(){let e=this.elements.headElement||document.head||this.elements.bodyElement||document.body;if(!e)throw new Error("DomTools could not find a DOM target element to attach resources to");return e}async runOnce(e,r){let n=this.runOncePromiseMap.get(e);return n||(n=Promise.resolve().then(async()=>await r()),this.runOncePromiseMap.set(e,n)),await n}async setGlobalStyles(e){await this.domReady.promise;let r=this.trackManagedDomNode(document.createElement("style"));r.type="text/css",r.appendChild(document.createTextNode(e)),this.getHeadOrBodyElement().appendChild(r)}async setExternalScript(e){await this.domReady.promise;let r=Q.defer(),n=this.trackManagedDomNode(document.createElement("script"));n.src=e,n.addEventListener("load",()=>{r.resolve()}),n.addEventListener("error",()=>{r.reject(new Error(`Failed to load external script: ${e}`))}),this.getHeadOrBodyElement().append(n),await r.promise}async setExternalCss(e){await this.domReady.promise;let r=Q.defer(),n=this.trackManagedDomNode(document.createElement("link"));n.rel="stylesheet",n.crossOrigin="anonymous",n.href=e,n.addEventListener("load",()=>{r.resolve()}),n.addEventListener("error",()=>{r.reject(new Error(`Failed to load external stylesheet: ${e}`))}),this.getHeadOrBodyElement().append(n),await r.promise}async setWebsiteInfo(e){await this.websetup.setup(e),await this.websetup.readyPromise}dispose(){if(!this.disposed){this.disposed=!0,document.removeEventListener("readystatechange",this.readyStateChangedFunc),this.keyboard?.dispose(),this.keyboard=null,this.scroller.dispose(),this.themeManager.dispose();for(let e of this.managedDomNodes)e.remove();this.managedDomNodes.length=0,Sn.deesDomTools===this&&(Sn.deesDomTools=void 0,t.initializationPromise=null)}}};var Fm=(()=>{let t=navigator.userAgent.indexOf("Mac OS X")===-1?Ur``.cssText:"";return Ur`
|
|
305
305
|
/* width */
|
|
306
306
|
::-webkit-scrollbar {
|
|
307
307
|
width: 0px;
|
|
@@ -357,7 +357,7 @@ ${t}`,"stringifyFrontmatter");var KU=new Set(["root","blockquote","listItem","fo
|
|
|
357
357
|
|
|
358
358
|
${Fm}
|
|
359
359
|
</style>
|
|
360
|
-
`,az=o(async(t,e={})=>{let r=await $c.setupDomTools(e);return await r.runOnce("elementBasicSetup",async()=>{await r.setGlobalStyles(jO)}),r.globalStylesReady.status==="pending"&&r.globalStylesReady.resolve(),await r.globalStylesReady.promise,r},"setup");var Zb={};se(Zb,{cssGridColumns:()=>lz});var lz=o((t,e)=>{let r="";for(let n=0;n<t;n++)r+=` calc((100%/${t}) - (${e*(t-1)}px/${t}))`;return r},"cssGridColumns");var ew={};se(ew,{SweetScroll:()=>Ca.default,smartmarkdown:()=>kc,smartpromise:()=>Q,smartrouter:()=>Ao,smartrx:()=>
|
|
360
|
+
`,az=o(async(t,e={})=>{let r=await $c.setupDomTools(e);return await r.runOnce("elementBasicSetup",async()=>{await r.setGlobalStyles(jO)}),r.globalStylesReady.status==="pending"&&r.globalStylesReady.resolve(),await r.globalStylesReady.promise,r},"setup");var Zb={};se(Zb,{cssGridColumns:()=>lz});var lz=o((t,e)=>{let r="";for(let n=0;n<t;n++)r+=` calc((100%/${t}) - (${e*(t-1)}px/${t}))`;return r},"cssGridColumns");var ew={};se(ew,{SweetScroll:()=>Ca.default,smartmarkdown:()=>kc,smartpromise:()=>Q,smartrouter:()=>Ao,smartrx:()=>Ie,smartstate:()=>$o,smartstring:()=>an,smarturl:()=>Bo,typedrequest:()=>jt});export{$c as DomTools,Ac as ThemeManager,zp as TypedRequest,Qb as breakpoints,Zb as css,Xb as elementBasic,ew as plugins};
|
|
361
361
|
/*! Bundled license information:
|
|
362
362
|
|
|
363
363
|
sweet-scroll/sweet-scroll.js:
|