@consent.software/catalog 1.3.2 → 1.3.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,17 +1,20 @@
1
- var Vf=Object.create;var rn=Object.defineProperty;var Xs=Object.getOwnPropertyDescriptor;var Gf=Object.getOwnPropertyNames;var Kf=Object.getPrototypeOf,Jf=Object.prototype.hasOwnProperty;var P=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),Z=(t,e)=>{for(var r in e)rn(t,r,{get:e[r],enumerable:!0})},Yf=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of Gf(e))!Jf.call(t,o)&&o!==r&&rn(t,o,{get:()=>e[o],enumerable:!(n=Xs(e,o))||n.enumerable});return t};var be=(t,e,r)=>(r=t!=null?Vf(Kf(t)):{},Yf(e||!t||!t.__esModule?rn(r,"default",{value:t,enumerable:!0}):r,t));var ge=(t,e,r,n)=>{for(var o=n>1?void 0:n?Xs(e,r):e,i=t.length-1,s;i>=0;i--)(s=t[i])&&(o=(n?s(e,r,o):s(o))||o);return n&&o&&rn(e,r,o),o};var ko=P(hn=>{"use strict";Object.defineProperty(hn,"__esModule",{value:!0});hn.uni=void 0;var hp=(t="uni")=>`${t}_${"xxxxxxxxxxxxxxxxxxxxxxxx".replace(/[xy]/g,e=>{let r=Math.random()*16|0;return(e==="x"?r:r&3|8).toString(16)})}`;hn.uni=hp});var Qa=P((ci,ui)=>{(function(t,e){typeof ci=="object"&&typeof ui<"u"?ui.exports=e():typeof define=="function"&&define.amd?define(e):(t=typeof globalThis<"u"?globalThis:t||self).dayjs=e()})(ci,function(){"use strict";var t=1e3,e=6e4,r=36e5,n="millisecond",o="second",i="minute",s="hour",a="day",c="week",u="month",l="quarter",f="year",h="date",d="Invalid Date",b=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,I=/\[([^\]]+)]|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,D={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(T){var y=["th","st","nd","rd"],m=T%100;return"["+T+(y[(m-20)%10]||y[m]||y[0])+"]"}},E=function(T,y,m){var v=String(T);return!v||v.length>=y?T:""+Array(y+1-v.length).join(m)+T},S={s:E,z:function(T){var y=-T.utcOffset(),m=Math.abs(y),v=Math.floor(m/60),x=m%60;return(y<=0?"+":"-")+E(v,2,"0")+":"+E(x,2,"0")},m:function T(y,m){if(y.date()<m.date())return-T(m,y);var v=12*(m.year()-y.year())+(m.month()-y.month()),x=y.clone().add(v,u),A=m-x<0,M=y.clone().add(v+(A?-1:1),u);return+(-(v+(m-x)/(A?x-M:M-x))||0)},a:function(T){return T<0?Math.ceil(T)||0:Math.floor(T)},p:function(T){return{M:u,y:f,w:c,d:a,D:h,h:s,m:i,s:o,ms:n,Q:l}[T]||String(T||"").toLowerCase().replace(/s$/,"")},u:function(T){return T===void 0}},C="en",U={};U[C]=D;var j=function(T){return T instanceof W},k=function T(y,m,v){var x;if(!y)return C;if(typeof y=="string"){var A=y.toLowerCase();U[A]&&(x=A),m&&(U[A]=m,x=A);var M=y.split("-");if(!x&&M.length>1)return T(M[0])}else{var g=y.name;U[g]=y,x=g}return!v&&x&&(C=x),x||!v&&C},R=function(T,y){if(j(T))return T.clone();var m=typeof y=="object"?y:{};return m.date=T,m.args=arguments,new W(m)},O=S;O.l=k,O.i=j,O.w=function(T,y){return R(T,{locale:y.$L,utc:y.$u,x:y.$x,$offset:y.$offset})};var W=function(){function T(m){this.$L=k(m.locale,null,!0),this.parse(m)}var y=T.prototype;return y.parse=function(m){this.$d=function(v){var x=v.date,A=v.utc;if(x===null)return new Date(NaN);if(O.u(x))return new Date;if(x instanceof Date)return new Date(x);if(typeof x=="string"&&!/Z$/i.test(x)){var M=x.match(b);if(M){var g=M[2]-1||0,w=(M[7]||"0").substring(0,3);return A?new Date(Date.UTC(M[1],g,M[3]||1,M[4]||0,M[5]||0,M[6]||0,w)):new Date(M[1],g,M[3]||1,M[4]||0,M[5]||0,M[6]||0,w)}}return new Date(x)}(m),this.$x=m.x||{},this.init()},y.init=function(){var m=this.$d;this.$y=m.getFullYear(),this.$M=m.getMonth(),this.$D=m.getDate(),this.$W=m.getDay(),this.$H=m.getHours(),this.$m=m.getMinutes(),this.$s=m.getSeconds(),this.$ms=m.getMilliseconds()},y.$utils=function(){return O},y.isValid=function(){return this.$d.toString()!==d},y.isSame=function(m,v){var x=R(m);return this.startOf(v)<=x&&x<=this.endOf(v)},y.isAfter=function(m,v){return R(m)<this.startOf(v)},y.isBefore=function(m,v){return this.endOf(v)<R(m)},y.$g=function(m,v,x){return O.u(m)?this[v]:this.set(x,m)},y.unix=function(){return Math.floor(this.valueOf()/1e3)},y.valueOf=function(){return this.$d.getTime()},y.startOf=function(m,v){var x=this,A=!!O.u(v)||v,M=O.p(m),g=function(re,z){var ie=O.w(x.$u?Date.UTC(x.$y,z,re):new Date(x.$y,z,re),x);return A?ie:ie.endOf(a)},w=function(re,z){return O.w(x.toDate()[re].apply(x.toDate("s"),(A?[0,0,0,0]:[23,59,59,999]).slice(z)),x)},_=this.$W,$=this.$M,N=this.$D,V="set"+(this.$u?"UTC":"");switch(M){case f:return A?g(1,0):g(31,11);case u:return A?g(1,$):g(0,$+1);case c:var q=this.$locale().weekStart||0,te=(_<q?_+7:_)-q;return g(A?N-te:N+(6-te),$);case a:case h:return w(V+"Hours",0);case s:return w(V+"Minutes",1);case i:return w(V+"Seconds",2);case o:return w(V+"Milliseconds",3);default:return this.clone()}},y.endOf=function(m){return this.startOf(m,!1)},y.$set=function(m,v){var x,A=O.p(m),M="set"+(this.$u?"UTC":""),g=(x={},x[a]=M+"Date",x[h]=M+"Date",x[u]=M+"Month",x[f]=M+"FullYear",x[s]=M+"Hours",x[i]=M+"Minutes",x[o]=M+"Seconds",x[n]=M+"Milliseconds",x)[A],w=A===a?this.$D+(v-this.$W):v;if(A===u||A===f){var _=this.clone().set(h,1);_.$d[g](w),_.init(),this.$d=_.set(h,Math.min(this.$D,_.daysInMonth())).$d}else g&&this.$d[g](w);return this.init(),this},y.set=function(m,v){return this.clone().$set(m,v)},y.get=function(m){return this[O.p(m)]()},y.add=function(m,v){var x,A=this;m=Number(m);var M=O.p(v),g=function($){var N=R(A);return O.w(N.date(N.date()+Math.round($*m)),A)};if(M===u)return this.set(u,this.$M+m);if(M===f)return this.set(f,this.$y+m);if(M===a)return g(1);if(M===c)return g(7);var w=(x={},x[i]=e,x[s]=r,x[o]=t,x)[M]||1,_=this.$d.getTime()+m*w;return O.w(_,this)},y.subtract=function(m,v){return this.add(-1*m,v)},y.format=function(m){var v=this,x=this.$locale();if(!this.isValid())return x.invalidDate||d;var A=m||"YYYY-MM-DDTHH:mm:ssZ",M=O.z(this),g=this.$H,w=this.$m,_=this.$M,$=x.weekdays,N=x.months,V=x.meridiem,q=function(z,ie,G,fe){return z&&(z[ie]||z(v,A))||G[ie].slice(0,fe)},te=function(z){return O.s(g%12||12,z,"0")},re=V||function(z,ie,G){var fe=z<12?"AM":"PM";return G?fe.toLowerCase():fe};return A.replace(I,function(z,ie){return ie||function(G){switch(G){case"YY":return String(v.$y).slice(-2);case"YYYY":return O.s(v.$y,4,"0");case"M":return _+1;case"MM":return O.s(_+1,2,"0");case"MMM":return q(x.monthsShort,_,N,3);case"MMMM":return q(N,_);case"D":return v.$D;case"DD":return O.s(v.$D,2,"0");case"d":return String(v.$W);case"dd":return q(x.weekdaysMin,v.$W,$,2);case"ddd":return q(x.weekdaysShort,v.$W,$,3);case"dddd":return $[v.$W];case"H":return String(g);case"HH":return O.s(g,2,"0");case"h":return te(1);case"hh":return te(2);case"a":return re(g,w,!0);case"A":return re(g,w,!1);case"m":return String(w);case"mm":return O.s(w,2,"0");case"s":return String(v.$s);case"ss":return O.s(v.$s,2,"0");case"SSS":return O.s(v.$ms,3,"0");case"Z":return M}return null}(z)||M.replace(":","")})},y.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},y.diff=function(m,v,x){var A,M=this,g=O.p(v),w=R(m),_=(w.utcOffset()-this.utcOffset())*e,$=this-w,N=function(){return O.m(M,w)};switch(g){case f:A=N()/12;break;case u:A=N();break;case l:A=N()/3;break;case c:A=($-_)/6048e5;break;case a:A=($-_)/864e5;break;case s:A=$/r;break;case i:A=$/e;break;case o:A=$/t;break;default:A=$}return x?A:O.a(A)},y.daysInMonth=function(){return this.endOf(u).$D},y.$locale=function(){return U[this.$L]},y.locale=function(m,v){if(!m)return this.$L;var x=this.clone(),A=k(m,v,!0);return A&&(x.$L=A),x},y.clone=function(){return O.w(this.$d,this)},y.toDate=function(){return new Date(this.valueOf())},y.toJSON=function(){return this.isValid()?this.toISOString():null},y.toISOString=function(){return this.$d.toISOString()},y.toString=function(){return this.$d.toUTCString()},T}(),ee=W.prototype;return R.prototype=ee,[["$ms",n],["$s",o],["$m",i],["$H",s],["$W",a],["$M",u],["$y",f],["$D",h]].forEach(function(T){ee[T[1]]=function(y){return this.$g(y,T[0],T[1])}}),R.extend=function(T,y){return T.$i||(T(y,W,R),T.$i=!0),R},R.locale=k,R.isDayjs=j,R.unix=function(T){return R(1e3*T)},R.en=U[C],R.Ls=U,R.p={},R})});var Xa=P((li,fi)=>{(function(t,e){typeof li=="object"&&typeof fi<"u"?fi.exports=e():typeof define=="function"&&define.amd?define(e):(t=typeof globalThis<"u"?globalThis:t||self).dayjs_plugin_isToday=e()})(li,function(){"use strict";return function(t,e,r){e.prototype.isToday=function(){var n="YYYY-MM-DD",o=r();return this.format(n)===o.format(n)}}})});var rc=P((N1,tc)=>{"use strict";tc.exports=class{constructor(){this.parent=null,this.previousSibling=null,this.nextSibling=null,this.firstChild=null,this.lastChild=null,this.childrenVersion=0,this.childIndexCachedUpTo=null,this.cachedIndex=-1,this.cachedIndexVersion=NaN}get isAttached(){return!!(this.parent||this.previousSibling||this.nextSibling)}get hasChildren(){return!!this.firstChild}childrenChanged(){this.childrenVersion=this.childrenVersion+1&4294967295,this.childIndexCachedUpTo=null}getCachedIndex(e){return this.cachedIndexVersion!==e.childrenVersion?(this.cachedIndexVersion=NaN,-1):this.cachedIndex}setCachedIndex(e,r){this.cachedIndexVersion=e.childrenVersion,this.cachedIndex=r}}});var oc=P((R1,nc)=>{"use strict";nc.exports=Object.freeze({DISCONNECTED:1,PRECEDING:2,FOLLOWING:4,CONTAINS:8,CONTAINED_BY:16})});var uc=P((U1,cc)=>{"use strict";var ic=Symbol(),sc=Symbol(),rt=Symbol(),ac=Symbol(),De=class{constructor(e,r,n,o){this[ic]=e,this[sc]=r,this[rt]=n,this[ac]=o}next(){let e=this[ic],r=this[ac],n=this[sc];if(!this[rt])return{done:!0,value:n};let o=this[rt];return r===1?this[rt]=e._node(o).previousSibling:r===2?this[rt]=e._node(o).nextSibling:r===3?this[rt]=e._node(o).parent:r===4?this[rt]=e.preceding(o,{root:n}):this[rt]=e.following(o,{root:n}),{done:!1,value:o}}};Object.defineProperty(De.prototype,Symbol.iterator,{value:function(){return this},writable:!1});De.PREV=1;De.NEXT=2;De.PARENT=3;De.PRECEDING=4;De.FOLLOWING=5;Object.freeze(De);Object.freeze(De.prototype);cc.exports=De});var fc=P((k1,lc)=>{"use strict";var oh=rc(),nt=oc(),Ae=uc();function vi(){return!0}function Gt(t,e){return t[t.length-1-e]}var Wn=class{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 oh)}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 o=this._node(e).previousSibling;return o?this.lastInclusiveDescendant(o):this._node(e).parent}following(e,r){let n=r&&r.root,i=!(r&&r.skipChildren)&&this._node(e).firstChild;if(i)return i;let s=e;do{if(s===n)return null;let a=this._node(s).nextSibling;if(a)return a;s=this._node(s).parent}while(s);return null}childrenToArray(e,r){let n=r&&r.array||[],o=r&&r.filter||vi,i=r&&r.thisArg||void 0,s=this._node(e),a=s.firstChild,c=0;for(;a;){let u=this._node(a);u.setCachedIndex(s,c),o.call(i,a)&&n.push(a),a=u.nextSibling,++c}return n}ancestorsToArray(e,r){let n=r&&r.array||[],o=r&&r.filter||vi,i=r&&r.thisArg||void 0,s=e;for(;s;)o.call(i,s)&&n.push(s),s=this._node(s).parent;return n}treeToArray(e,r){let n=r&&r.array||[],o=r&&r.filter||vi,i=r&&r.thisArg||void 0,s=e;for(;s;)o.call(i,s)&&n.push(s),s=this.following(s,{root:e});return n}childrenIterator(e,r){let n=r&&r.reverse,o=this._node(e);return new Ae(this,e,n?o.lastChild:o.firstChild,n?Ae.PREV:Ae.NEXT)}previousSiblingsIterator(e){return new Ae(this,e,this._node(e).previousSibling,Ae.PREV)}nextSiblingsIterator(e){return new Ae(this,e,this._node(e).nextSibling,Ae.NEXT)}ancestorsIterator(e){return new Ae(this,e,e,Ae.PARENT)}treeIterator(e,r){let n=r&&r.reverse;return new Ae(this,e,n?this.lastInclusiveDescendant(e):e,n?Ae.PRECEDING:Ae.FOLLOWING)}index(e){let r=this._node(e),n=this._node(r.parent);if(!n)return-1;let o=r.getCachedIndex(n);if(o>=0)return o;o=0;let i=n.firstChild;if(n.childIndexCachedUpTo){let s=this._node(n.childIndexCachedUpTo);i=s.nextSibling,o=s.getCachedIndex(n)+1}for(;i;){let s=this._node(i);if(s.setCachedIndex(n,o),i===e)break;++o,i=s.nextSibling}return n.childIndexCachedUpTo=e,o}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 l=e;for(;l;){if(l===r)return nt.CONTAINS|nt.PRECEDING;n.push(l),l=this.parent(l)}}let o=[];{let l=r;for(;l;){if(l===e)return nt.CONTAINED_BY|nt.FOLLOWING;o.push(l),l=this.parent(l)}}let i=Gt(n,0);if(!i||i!==Gt(o,0))return nt.DISCONNECTED;let s=0,a=Math.min(n.length,o.length);for(let l=0;l<a;++l){let f=Gt(n,l),h=Gt(o,l);if(f!==h)break;s=l}let c=this.index(Gt(n,s+1));return this.index(Gt(o,s+1))<c?nt.PRECEDING:nt.FOLLOWING}remove(e){let r=this._node(e),n=this._node(r.parent),o=this._node(r.previousSibling),i=this._node(r.nextSibling);return n&&(n.firstChild===e&&(n.firstChild=r.nextSibling),n.lastChild===e&&(n.lastChild=r.previousSibling)),o&&(o.nextSibling=r.nextSibling),i&&(i.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),o=this._node(n.previousSibling),i=this._node(r),s=this._node(n.parent);if(i.isAttached)throw Error("Given object is already present in this SymbolTree, remove it first");return i.parent=n.parent,i.previousSibling=n.previousSibling,i.nextSibling=e,n.previousSibling=r,o&&(o.nextSibling=r),s&&s.firstChild===e&&(s.firstChild=r),s&&s.childrenChanged(),r}insertAfter(e,r){let n=this._node(e),o=this._node(n.nextSibling),i=this._node(r),s=this._node(n.parent);if(i.isAttached)throw Error("Given object is already present in this SymbolTree, remove it first");return i.parent=n.parent,i.previousSibling=e,i.nextSibling=n.nextSibling,n.nextSibling=r,o&&(o.previousSibling=r),s&&s.lastChild===e&&(s.lastChild=r),s&&s.childrenChanged(),r}prependChild(e,r){let n=this._node(e),o=this._node(r);if(o.isAttached)throw Error("Given object is already present in this SymbolTree, remove it first");return n.hasChildren?this.insertBefore(n.firstChild,r):(o.parent=e,n.firstChild=r,n.lastChild=r,n.childrenChanged()),r}appendChild(e,r){let n=this._node(e),o=this._node(r);if(o.isAttached)throw Error("Given object is already present in this SymbolTree, remove it first");return n.hasChildren?this.insertAfter(n.lastChild,r):(o.parent=e,n.firstChild=r,n.lastChild=r,n.childrenChanged()),r}};lc.exports=Wn;Wn.TreePosition=nt});var hc=P(X=>{"use strict";Object.defineProperty(X,"__esModule",{value:!0});X.getFirstTrueOrFalse=X.timeoutAndContinue=X.timeoutWrap=X.map=X.rejectedPromise=X.resolvedPromise=X.defer=X.Deferred=void 0;var qn=class{constructor(){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"})}get duration(){return this.stoppedAt?this.stoppedAt-this.startedAt:Date.now()-this.startedAt}};X.Deferred=qn;X.defer=()=>new qn;X.resolvedPromise=t=>Promise.resolve(t);X.rejectedPromise=t=>Promise.reject(t);X.map=async(t,e)=>{let r=[],n=[];for(let o of t){let i=e(o);r.push(i),i.then(s=>{n.push(s)})}return await Promise.all(r),n};X.timeoutWrap=async(t,e,r=!0)=>new Promise((n,o)=>{setTimeout(()=>{r?o(new Error("timeout")):n(null)},e),t.then(n,o)});X.timeoutAndContinue=async(t,e=6e4)=>X.timeoutWrap(t,e,!1);X.getFirstTrueOrFalse=async t=>{let e=X.defer();for(let r of t)r.then(n=>{n===!0&&e.resolve(!0)});return Promise.all(t).then(()=>{e.resolve(!1)}),e.promise}});var gc=P(zn=>{"use strict";zn.byteLength=ah;zn.toByteArray=uh;zn.fromByteArray=ph;var Ue=[],Te=[],sh=typeof Uint8Array<"u"?Uint8Array:Array,Ci="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(Tt=0,mc=Ci.length;Tt<mc;++Tt)Ue[Tt]=Ci[Tt],Te[Ci.charCodeAt(Tt)]=Tt;var Tt,mc;Te[45]=62;Te[95]=63;function yc(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=t.indexOf("=");r===-1&&(r=e);var n=r===e?0:4-r%4;return[r,n]}function ah(t){var e=yc(t),r=e[0],n=e[1];return(r+n)*3/4-n}function ch(t,e,r){return(e+r)*3/4-r}function uh(t){var e,r=yc(t),n=r[0],o=r[1],i=new sh(ch(t,n,o)),s=0,a=o>0?n-4:n,c;for(c=0;c<a;c+=4)e=Te[t.charCodeAt(c)]<<18|Te[t.charCodeAt(c+1)]<<12|Te[t.charCodeAt(c+2)]<<6|Te[t.charCodeAt(c+3)],i[s++]=e>>16&255,i[s++]=e>>8&255,i[s++]=e&255;return o===2&&(e=Te[t.charCodeAt(c)]<<2|Te[t.charCodeAt(c+1)]>>4,i[s++]=e&255),o===1&&(e=Te[t.charCodeAt(c)]<<10|Te[t.charCodeAt(c+1)]<<4|Te[t.charCodeAt(c+2)]>>2,i[s++]=e>>8&255,i[s++]=e&255),i}function lh(t){return Ue[t>>18&63]+Ue[t>>12&63]+Ue[t>>6&63]+Ue[t&63]}function fh(t,e,r){for(var n,o=[],i=e;i<r;i+=3)n=(t[i]<<16&16711680)+(t[i+1]<<8&65280)+(t[i+2]&255),o.push(lh(n));return o.join("")}function ph(t){for(var e,r=t.length,n=r%3,o=[],i=16383,s=0,a=r-n;s<a;s+=i)o.push(fh(t,s,s+i>a?a:s+i));return n===1?(e=t[r-1],o.push(Ue[e>>2]+Ue[e<<4&63]+"==")):n===2&&(e=(t[r-2]<<8)+t[r-1],o.push(Ue[e>>10]+Ue[e>>4&63]+Ue[e<<2&63]+"=")),o.join("")}});var xc=P(Mi=>{Mi.read=function(t,e,r,n,o){var i,s,a=o*8-n-1,c=(1<<a)-1,u=c>>1,l=-7,f=r?o-1:0,h=r?-1:1,d=t[e+f];for(f+=h,i=d&(1<<-l)-1,d>>=-l,l+=a;l>0;i=i*256+t[e+f],f+=h,l-=8);for(s=i&(1<<-l)-1,i>>=-l,l+=n;l>0;s=s*256+t[e+f],f+=h,l-=8);if(i===0)i=1-u;else{if(i===c)return s?NaN:(d?-1:1)*(1/0);s=s+Math.pow(2,n),i=i-u}return(d?-1:1)*s*Math.pow(2,i-n)};Mi.write=function(t,e,r,n,o,i){var s,a,c,u=i*8-o-1,l=(1<<u)-1,f=l>>1,h=o===23?Math.pow(2,-24)-Math.pow(2,-77):0,d=n?0:i-1,b=n?1:-1,I=e<0||e===0&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(a=isNaN(e)?1:0,s=l):(s=Math.floor(Math.log(e)/Math.LN2),e*(c=Math.pow(2,-s))<1&&(s--,c*=2),s+f>=1?e+=h/c:e+=h*Math.pow(2,1-f),e*c>=2&&(s++,c/=2),s+f>=l?(a=0,s=l):s+f>=1?(a=(e*c-1)*Math.pow(2,o),s=s+f):(a=e*Math.pow(2,f-1)*Math.pow(2,o),s=0));o>=8;t[r+d]=a&255,d+=b,a/=256,o-=8);for(s=s<<o|a,u+=o;u>0;t[r+d]=s&255,d+=b,s/=256,u-=8);t[r+d-b]|=I*128}});var Dc=P(Qt=>{"use strict";var $i=gc(),Yt=xc(),bc=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;Qt.Buffer=p;Qt.SlowBuffer=xh;Qt.INSPECT_MAX_BYTES=50;var Hn=2147483647;Qt.kMaxLength=Hn;p.TYPED_ARRAY_SUPPORT=hh();!p.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function hh(){try{let t=new Uint8Array(1),e={foo:function(){return 42}};return Object.setPrototypeOf(e,Uint8Array.prototype),Object.setPrototypeOf(t,e),t.foo()===42}catch{return!1}}Object.defineProperty(p.prototype,"parent",{enumerable:!0,get:function(){if(p.isBuffer(this))return this.buffer}});Object.defineProperty(p.prototype,"offset",{enumerable:!0,get:function(){if(p.isBuffer(this))return this.byteOffset}});function Je(t){if(t>Hn)throw new RangeError('The value "'+t+'" is invalid for option "size"');let e=new Uint8Array(t);return Object.setPrototypeOf(e,p.prototype),e}function p(t,e,r){if(typeof t=="number"){if(typeof e=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return Di(t)}return Ec(t,e,r)}p.poolSize=8192;function Ec(t,e,r){if(typeof t=="string")return mh(t,e);if(ArrayBuffer.isView(t))return yh(t);if(t==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(ke(t,ArrayBuffer)||t&&ke(t.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(ke(t,SharedArrayBuffer)||t&&ke(t.buffer,SharedArrayBuffer)))return Pi(t,e,r);if(typeof t=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');let n=t.valueOf&&t.valueOf();if(n!=null&&n!==t)return p.from(n,e,r);let o=gh(t);if(o)return o;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof t[Symbol.toPrimitive]=="function")return p.from(t[Symbol.toPrimitive]("string"),e,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}p.from=function(t,e,r){return Ec(t,e,r)};Object.setPrototypeOf(p.prototype,Uint8Array.prototype);Object.setPrototypeOf(p,Uint8Array);function Ac(t){if(typeof t!="number")throw new TypeError('"size" argument must be of type number');if(t<0)throw new RangeError('The value "'+t+'" is invalid for option "size"')}function dh(t,e,r){return Ac(t),t<=0?Je(t):e!==void 0?typeof r=="string"?Je(t).fill(e,r):Je(t).fill(e):Je(t)}p.alloc=function(t,e,r){return dh(t,e,r)};function Di(t){return Ac(t),Je(t<0?0:Ni(t)|0)}p.allocUnsafe=function(t){return Di(t)};p.allocUnsafeSlow=function(t){return Di(t)};function mh(t,e){if((typeof e!="string"||e==="")&&(e="utf8"),!p.isEncoding(e))throw new TypeError("Unknown encoding: "+e);let r=Tc(t,e)|0,n=Je(r),o=n.write(t,e);return o!==r&&(n=n.slice(0,o)),n}function Fi(t){let e=t.length<0?0:Ni(t.length)|0,r=Je(e);for(let n=0;n<e;n+=1)r[n]=t[n]&255;return r}function yh(t){if(ke(t,Uint8Array)){let e=new Uint8Array(t);return Pi(e.buffer,e.byteOffset,e.byteLength)}return Fi(t)}function Pi(t,e,r){if(e<0||t.byteLength<e)throw new RangeError('"offset" is outside of buffer bounds');if(t.byteLength<e+(r||0))throw new RangeError('"length" is outside of buffer bounds');let n;return e===void 0&&r===void 0?n=new Uint8Array(t):r===void 0?n=new Uint8Array(t,e):n=new Uint8Array(t,e,r),Object.setPrototypeOf(n,p.prototype),n}function gh(t){if(p.isBuffer(t)){let e=Ni(t.length)|0,r=Je(e);return r.length===0||t.copy(r,0,0,e),r}if(t.length!==void 0)return typeof t.length!="number"||Ui(t.length)?Je(0):Fi(t);if(t.type==="Buffer"&&Array.isArray(t.data))return Fi(t.data)}function Ni(t){if(t>=Hn)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+Hn.toString(16)+" bytes");return t|0}function xh(t){return+t!=t&&(t=0),p.alloc(+t)}p.isBuffer=function(e){return e!=null&&e._isBuffer===!0&&e!==p.prototype};p.compare=function(e,r){if(ke(e,Uint8Array)&&(e=p.from(e,e.offset,e.byteLength)),ke(r,Uint8Array)&&(r=p.from(r,r.offset,r.byteLength)),!p.isBuffer(e)||!p.isBuffer(r))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===r)return 0;let n=e.length,o=r.length;for(let i=0,s=Math.min(n,o);i<s;++i)if(e[i]!==r[i]){n=e[i],o=r[i];break}return n<o?-1:o<n?1:0};p.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}};p.concat=function(e,r){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(e.length===0)return p.alloc(0);let n;if(r===void 0)for(r=0,n=0;n<e.length;++n)r+=e[n].length;let o=p.allocUnsafe(r),i=0;for(n=0;n<e.length;++n){let s=e[n];if(ke(s,Uint8Array))i+s.length>o.length?(p.isBuffer(s)||(s=p.from(s)),s.copy(o,i)):Uint8Array.prototype.set.call(o,s,i);else if(p.isBuffer(s))s.copy(o,i);else throw new TypeError('"list" argument must be an Array of Buffers');i+=s.length}return o};function Tc(t,e){if(p.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||ke(t,ArrayBuffer))return t.byteLength;if(typeof t!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);let r=t.length,n=arguments.length>2&&arguments[2]===!0;if(!n&&r===0)return 0;let o=!1;for(;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return Bi(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return r*2;case"hex":return r>>>1;case"base64":return Bc(t).length;default:if(o)return n?-1:Bi(t).length;e=(""+e).toLowerCase(),o=!0}}p.byteLength=Tc;function bh(t,e,r){let n=!1;if((e===void 0||e<0)&&(e=0),e>this.length||((r===void 0||r>this.length)&&(r=this.length),r<=0)||(r>>>=0,e>>>=0,r<=e))return"";for(t||(t="utf8");;)switch(t){case"hex":return Ch(this,e,r);case"utf8":case"utf-8":return Ic(this,e,r);case"ascii":return Ih(this,e,r);case"latin1":case"binary":return Oh(this,e,r);case"base64":return Th(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Mh(this,e,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}p.prototype._isBuffer=!0;function _t(t,e,r){let n=t[e];t[e]=t[r],t[r]=n}p.prototype.swap16=function(){let e=this.length;if(e%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let r=0;r<e;r+=2)_t(this,r,r+1);return this};p.prototype.swap32=function(){let e=this.length;if(e%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let r=0;r<e;r+=4)_t(this,r,r+3),_t(this,r+1,r+2);return this};p.prototype.swap64=function(){let e=this.length;if(e%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let r=0;r<e;r+=8)_t(this,r,r+7),_t(this,r+1,r+6),_t(this,r+2,r+5),_t(this,r+3,r+4);return this};p.prototype.toString=function(){let e=this.length;return e===0?"":arguments.length===0?Ic(this,0,e):bh.apply(this,arguments)};p.prototype.toLocaleString=p.prototype.toString;p.prototype.equals=function(e){if(!p.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e?!0:p.compare(this,e)===0};p.prototype.inspect=function(){let e="",r=Qt.INSPECT_MAX_BYTES;return e=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(e+=" ... "),"<Buffer "+e+">"};bc&&(p.prototype[bc]=p.prototype.inspect);p.prototype.compare=function(e,r,n,o,i){if(ke(e,Uint8Array)&&(e=p.from(e,e.offset,e.byteLength)),!p.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(r===void 0&&(r=0),n===void 0&&(n=e?e.length:0),o===void 0&&(o=0),i===void 0&&(i=this.length),r<0||n>e.length||o<0||i>this.length)throw new RangeError("out of range index");if(o>=i&&r>=n)return 0;if(o>=i)return-1;if(r>=n)return 1;if(r>>>=0,n>>>=0,o>>>=0,i>>>=0,this===e)return 0;let s=i-o,a=n-r,c=Math.min(s,a),u=this.slice(o,i),l=e.slice(r,n);for(let f=0;f<c;++f)if(u[f]!==l[f]){s=u[f],a=l[f];break}return s<a?-1:a<s?1:0};function _c(t,e,r,n,o){if(t.length===0)return-1;if(typeof r=="string"?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,Ui(r)&&(r=o?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(o)return-1;r=t.length-1}else if(r<0)if(o)r=0;else return-1;if(typeof e=="string"&&(e=p.from(e,n)),p.isBuffer(e))return e.length===0?-1:vc(t,e,r,n,o);if(typeof e=="number")return e=e&255,typeof Uint8Array.prototype.indexOf=="function"?o?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):vc(t,[e],r,n,o);throw new TypeError("val must be string, number or Buffer")}function vc(t,e,r,n,o){let i=1,s=t.length,a=e.length;if(n!==void 0&&(n=String(n).toLowerCase(),n==="ucs2"||n==="ucs-2"||n==="utf16le"||n==="utf-16le")){if(t.length<2||e.length<2)return-1;i=2,s/=2,a/=2,r/=2}function c(l,f){return i===1?l[f]:l.readUInt16BE(f*i)}let u;if(o){let l=-1;for(u=r;u<s;u++)if(c(t,u)===c(e,l===-1?0:u-l)){if(l===-1&&(l=u),u-l+1===a)return l*i}else l!==-1&&(u-=u-l),l=-1}else for(r+a>s&&(r=s-a),u=r;u>=0;u--){let l=!0;for(let f=0;f<a;f++)if(c(t,u+f)!==c(e,f)){l=!1;break}if(l)return u}return-1}p.prototype.includes=function(e,r,n){return this.indexOf(e,r,n)!==-1};p.prototype.indexOf=function(e,r,n){return _c(this,e,r,n,!0)};p.prototype.lastIndexOf=function(e,r,n){return _c(this,e,r,n,!1)};function vh(t,e,r,n){r=Number(r)||0;let o=t.length-r;n?(n=Number(n),n>o&&(n=o)):n=o;let i=e.length;n>i/2&&(n=i/2);let s;for(s=0;s<n;++s){let a=parseInt(e.substr(s*2,2),16);if(Ui(a))return s;t[r+s]=a}return s}function wh(t,e,r,n){return Vn(Bi(e,t.length-r),t,r,n)}function Sh(t,e,r,n){return Vn(Bh(e),t,r,n)}function Eh(t,e,r,n){return Vn(Bc(e),t,r,n)}function Ah(t,e,r,n){return Vn(Dh(e,t.length-r),t,r,n)}p.prototype.write=function(e,r,n,o){if(r===void 0)o="utf8",n=this.length,r=0;else if(n===void 0&&typeof r=="string")o=r,n=this.length,r=0;else if(isFinite(r))r=r>>>0,isFinite(n)?(n=n>>>0,o===void 0&&(o="utf8")):(o=n,n=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let i=this.length-r;if((n===void 0||n>i)&&(n=i),e.length>0&&(n<0||r<0)||r>this.length)throw new RangeError("Attempt to write outside buffer bounds");o||(o="utf8");let s=!1;for(;;)switch(o){case"hex":return vh(this,e,r,n);case"utf8":case"utf-8":return wh(this,e,r,n);case"ascii":case"latin1":case"binary":return Sh(this,e,r,n);case"base64":return Eh(this,e,r,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Ah(this,e,r,n);default:if(s)throw new TypeError("Unknown encoding: "+o);o=(""+o).toLowerCase(),s=!0}};p.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Th(t,e,r){return e===0&&r===t.length?$i.fromByteArray(t):$i.fromByteArray(t.slice(e,r))}function Ic(t,e,r){r=Math.min(t.length,r);let n=[],o=e;for(;o<r;){let i=t[o],s=null,a=i>239?4:i>223?3:i>191?2:1;if(o+a<=r){let c,u,l,f;switch(a){case 1:i<128&&(s=i);break;case 2:c=t[o+1],(c&192)===128&&(f=(i&31)<<6|c&63,f>127&&(s=f));break;case 3:c=t[o+1],u=t[o+2],(c&192)===128&&(u&192)===128&&(f=(i&15)<<12|(c&63)<<6|u&63,f>2047&&(f<55296||f>57343)&&(s=f));break;case 4:c=t[o+1],u=t[o+2],l=t[o+3],(c&192)===128&&(u&192)===128&&(l&192)===128&&(f=(i&15)<<18|(c&63)<<12|(u&63)<<6|l&63,f>65535&&f<1114112&&(s=f))}}s===null?(s=65533,a=1):s>65535&&(s-=65536,n.push(s>>>10&1023|55296),s=56320|s&1023),n.push(s),o+=a}return _h(n)}var wc=4096;function _h(t){let e=t.length;if(e<=wc)return String.fromCharCode.apply(String,t);let r="",n=0;for(;n<e;)r+=String.fromCharCode.apply(String,t.slice(n,n+=wc));return r}function Ih(t,e,r){let n="";r=Math.min(t.length,r);for(let o=e;o<r;++o)n+=String.fromCharCode(t[o]&127);return n}function Oh(t,e,r){let n="";r=Math.min(t.length,r);for(let o=e;o<r;++o)n+=String.fromCharCode(t[o]);return n}function Ch(t,e,r){let n=t.length;(!e||e<0)&&(e=0),(!r||r<0||r>n)&&(r=n);let o="";for(let i=e;i<r;++i)o+=Nh[t[i]];return o}function Mh(t,e,r){let n=t.slice(e,r),o="";for(let i=0;i<n.length-1;i+=2)o+=String.fromCharCode(n[i]+n[i+1]*256);return o}p.prototype.slice=function(e,r){let n=this.length;e=~~e,r=r===void 0?n:~~r,e<0?(e+=n,e<0&&(e=0)):e>n&&(e=n),r<0?(r+=n,r<0&&(r=0)):r>n&&(r=n),r<e&&(r=e);let o=this.subarray(e,r);return Object.setPrototypeOf(o,p.prototype),o};function ce(t,e,r){if(t%1!==0||t<0)throw new RangeError("offset is not uint");if(t+e>r)throw new RangeError("Trying to access beyond buffer length")}p.prototype.readUintLE=p.prototype.readUIntLE=function(e,r,n){e=e>>>0,r=r>>>0,n||ce(e,r,this.length);let o=this[e],i=1,s=0;for(;++s<r&&(i*=256);)o+=this[e+s]*i;return o};p.prototype.readUintBE=p.prototype.readUIntBE=function(e,r,n){e=e>>>0,r=r>>>0,n||ce(e,r,this.length);let o=this[e+--r],i=1;for(;r>0&&(i*=256);)o+=this[e+--r]*i;return o};p.prototype.readUint8=p.prototype.readUInt8=function(e,r){return e=e>>>0,r||ce(e,1,this.length),this[e]};p.prototype.readUint16LE=p.prototype.readUInt16LE=function(e,r){return e=e>>>0,r||ce(e,2,this.length),this[e]|this[e+1]<<8};p.prototype.readUint16BE=p.prototype.readUInt16BE=function(e,r){return e=e>>>0,r||ce(e,2,this.length),this[e]<<8|this[e+1]};p.prototype.readUint32LE=p.prototype.readUInt32LE=function(e,r){return e=e>>>0,r||ce(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+this[e+3]*16777216};p.prototype.readUint32BE=p.prototype.readUInt32BE=function(e,r){return e=e>>>0,r||ce(e,4,this.length),this[e]*16777216+(this[e+1]<<16|this[e+2]<<8|this[e+3])};p.prototype.readBigUInt64LE=ot(function(e){e=e>>>0,Zt(e,"offset");let r=this[e],n=this[e+7];(r===void 0||n===void 0)&&Lr(e,this.length-8);let o=r+this[++e]*2**8+this[++e]*2**16+this[++e]*2**24,i=this[++e]+this[++e]*2**8+this[++e]*2**16+n*2**24;return BigInt(o)+(BigInt(i)<<BigInt(32))});p.prototype.readBigUInt64BE=ot(function(e){e=e>>>0,Zt(e,"offset");let r=this[e],n=this[e+7];(r===void 0||n===void 0)&&Lr(e,this.length-8);let o=r*2**24+this[++e]*2**16+this[++e]*2**8+this[++e],i=this[++e]*2**24+this[++e]*2**16+this[++e]*2**8+n;return(BigInt(o)<<BigInt(32))+BigInt(i)});p.prototype.readIntLE=function(e,r,n){e=e>>>0,r=r>>>0,n||ce(e,r,this.length);let o=this[e],i=1,s=0;for(;++s<r&&(i*=256);)o+=this[e+s]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*r)),o};p.prototype.readIntBE=function(e,r,n){e=e>>>0,r=r>>>0,n||ce(e,r,this.length);let o=r,i=1,s=this[e+--o];for(;o>0&&(i*=256);)s+=this[e+--o]*i;return i*=128,s>=i&&(s-=Math.pow(2,8*r)),s};p.prototype.readInt8=function(e,r){return e=e>>>0,r||ce(e,1,this.length),this[e]&128?(255-this[e]+1)*-1:this[e]};p.prototype.readInt16LE=function(e,r){e=e>>>0,r||ce(e,2,this.length);let n=this[e]|this[e+1]<<8;return n&32768?n|4294901760:n};p.prototype.readInt16BE=function(e,r){e=e>>>0,r||ce(e,2,this.length);let n=this[e+1]|this[e]<<8;return n&32768?n|4294901760:n};p.prototype.readInt32LE=function(e,r){return e=e>>>0,r||ce(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24};p.prototype.readInt32BE=function(e,r){return e=e>>>0,r||ce(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]};p.prototype.readBigInt64LE=ot(function(e){e=e>>>0,Zt(e,"offset");let r=this[e],n=this[e+7];(r===void 0||n===void 0)&&Lr(e,this.length-8);let o=this[e+4]+this[e+5]*2**8+this[e+6]*2**16+(n<<24);return(BigInt(o)<<BigInt(32))+BigInt(r+this[++e]*2**8+this[++e]*2**16+this[++e]*2**24)});p.prototype.readBigInt64BE=ot(function(e){e=e>>>0,Zt(e,"offset");let r=this[e],n=this[e+7];(r===void 0||n===void 0)&&Lr(e,this.length-8);let o=(r<<24)+this[++e]*2**16+this[++e]*2**8+this[++e];return(BigInt(o)<<BigInt(32))+BigInt(this[++e]*2**24+this[++e]*2**16+this[++e]*2**8+n)});p.prototype.readFloatLE=function(e,r){return e=e>>>0,r||ce(e,4,this.length),Yt.read(this,e,!0,23,4)};p.prototype.readFloatBE=function(e,r){return e=e>>>0,r||ce(e,4,this.length),Yt.read(this,e,!1,23,4)};p.prototype.readDoubleLE=function(e,r){return e=e>>>0,r||ce(e,8,this.length),Yt.read(this,e,!0,52,8)};p.prototype.readDoubleBE=function(e,r){return e=e>>>0,r||ce(e,8,this.length),Yt.read(this,e,!1,52,8)};function we(t,e,r,n,o,i){if(!p.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>o||e<i)throw new RangeError('"value" argument is out of bounds');if(r+n>t.length)throw new RangeError("Index out of range")}p.prototype.writeUintLE=p.prototype.writeUIntLE=function(e,r,n,o){if(e=+e,r=r>>>0,n=n>>>0,!o){let a=Math.pow(2,8*n)-1;we(this,e,r,n,a,0)}let i=1,s=0;for(this[r]=e&255;++s<n&&(i*=256);)this[r+s]=e/i&255;return r+n};p.prototype.writeUintBE=p.prototype.writeUIntBE=function(e,r,n,o){if(e=+e,r=r>>>0,n=n>>>0,!o){let a=Math.pow(2,8*n)-1;we(this,e,r,n,a,0)}let i=n-1,s=1;for(this[r+i]=e&255;--i>=0&&(s*=256);)this[r+i]=e/s&255;return r+n};p.prototype.writeUint8=p.prototype.writeUInt8=function(e,r,n){return e=+e,r=r>>>0,n||we(this,e,r,1,255,0),this[r]=e&255,r+1};p.prototype.writeUint16LE=p.prototype.writeUInt16LE=function(e,r,n){return e=+e,r=r>>>0,n||we(this,e,r,2,65535,0),this[r]=e&255,this[r+1]=e>>>8,r+2};p.prototype.writeUint16BE=p.prototype.writeUInt16BE=function(e,r,n){return e=+e,r=r>>>0,n||we(this,e,r,2,65535,0),this[r]=e>>>8,this[r+1]=e&255,r+2};p.prototype.writeUint32LE=p.prototype.writeUInt32LE=function(e,r,n){return e=+e,r=r>>>0,n||we(this,e,r,4,4294967295,0),this[r+3]=e>>>24,this[r+2]=e>>>16,this[r+1]=e>>>8,this[r]=e&255,r+4};p.prototype.writeUint32BE=p.prototype.writeUInt32BE=function(e,r,n){return e=+e,r=r>>>0,n||we(this,e,r,4,4294967295,0),this[r]=e>>>24,this[r+1]=e>>>16,this[r+2]=e>>>8,this[r+3]=e&255,r+4};function Oc(t,e,r,n,o){Pc(e,n,o,t,r,7);let i=Number(e&BigInt(4294967295));t[r++]=i,i=i>>8,t[r++]=i,i=i>>8,t[r++]=i,i=i>>8,t[r++]=i;let s=Number(e>>BigInt(32)&BigInt(4294967295));return t[r++]=s,s=s>>8,t[r++]=s,s=s>>8,t[r++]=s,s=s>>8,t[r++]=s,r}function Cc(t,e,r,n,o){Pc(e,n,o,t,r,7);let i=Number(e&BigInt(4294967295));t[r+7]=i,i=i>>8,t[r+6]=i,i=i>>8,t[r+5]=i,i=i>>8,t[r+4]=i;let s=Number(e>>BigInt(32)&BigInt(4294967295));return t[r+3]=s,s=s>>8,t[r+2]=s,s=s>>8,t[r+1]=s,s=s>>8,t[r]=s,r+8}p.prototype.writeBigUInt64LE=ot(function(e,r=0){return Oc(this,e,r,BigInt(0),BigInt("0xffffffffffffffff"))});p.prototype.writeBigUInt64BE=ot(function(e,r=0){return Cc(this,e,r,BigInt(0),BigInt("0xffffffffffffffff"))});p.prototype.writeIntLE=function(e,r,n,o){if(e=+e,r=r>>>0,!o){let c=Math.pow(2,8*n-1);we(this,e,r,n,c-1,-c)}let i=0,s=1,a=0;for(this[r]=e&255;++i<n&&(s*=256);)e<0&&a===0&&this[r+i-1]!==0&&(a=1),this[r+i]=(e/s>>0)-a&255;return r+n};p.prototype.writeIntBE=function(e,r,n,o){if(e=+e,r=r>>>0,!o){let c=Math.pow(2,8*n-1);we(this,e,r,n,c-1,-c)}let i=n-1,s=1,a=0;for(this[r+i]=e&255;--i>=0&&(s*=256);)e<0&&a===0&&this[r+i+1]!==0&&(a=1),this[r+i]=(e/s>>0)-a&255;return r+n};p.prototype.writeInt8=function(e,r,n){return e=+e,r=r>>>0,n||we(this,e,r,1,127,-128),e<0&&(e=255+e+1),this[r]=e&255,r+1};p.prototype.writeInt16LE=function(e,r,n){return e=+e,r=r>>>0,n||we(this,e,r,2,32767,-32768),this[r]=e&255,this[r+1]=e>>>8,r+2};p.prototype.writeInt16BE=function(e,r,n){return e=+e,r=r>>>0,n||we(this,e,r,2,32767,-32768),this[r]=e>>>8,this[r+1]=e&255,r+2};p.prototype.writeInt32LE=function(e,r,n){return e=+e,r=r>>>0,n||we(this,e,r,4,2147483647,-2147483648),this[r]=e&255,this[r+1]=e>>>8,this[r+2]=e>>>16,this[r+3]=e>>>24,r+4};p.prototype.writeInt32BE=function(e,r,n){return e=+e,r=r>>>0,n||we(this,e,r,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[r]=e>>>24,this[r+1]=e>>>16,this[r+2]=e>>>8,this[r+3]=e&255,r+4};p.prototype.writeBigInt64LE=ot(function(e,r=0){return Oc(this,e,r,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});p.prototype.writeBigInt64BE=ot(function(e,r=0){return Cc(this,e,r,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function Mc(t,e,r,n,o,i){if(r+n>t.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function $c(t,e,r,n,o){return e=+e,r=r>>>0,o||Mc(t,e,r,4,34028234663852886e22,-34028234663852886e22),Yt.write(t,e,r,n,23,4),r+4}p.prototype.writeFloatLE=function(e,r,n){return $c(this,e,r,!0,n)};p.prototype.writeFloatBE=function(e,r,n){return $c(this,e,r,!1,n)};function Fc(t,e,r,n,o){return e=+e,r=r>>>0,o||Mc(t,e,r,8,17976931348623157e292,-17976931348623157e292),Yt.write(t,e,r,n,52,8),r+8}p.prototype.writeDoubleLE=function(e,r,n){return Fc(this,e,r,!0,n)};p.prototype.writeDoubleBE=function(e,r,n){return Fc(this,e,r,!1,n)};p.prototype.copy=function(e,r,n,o){if(!p.isBuffer(e))throw new TypeError("argument should be a Buffer");if(n||(n=0),!o&&o!==0&&(o=this.length),r>=e.length&&(r=e.length),r||(r=0),o>0&&o<n&&(o=n),o===n||e.length===0||this.length===0)return 0;if(r<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(o<0)throw new RangeError("sourceEnd out of bounds");o>this.length&&(o=this.length),e.length-r<o-n&&(o=e.length-r+n);let i=o-n;return this===e&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(r,n,o):Uint8Array.prototype.set.call(e,this.subarray(n,o),r),i};p.prototype.fill=function(e,r,n,o){if(typeof e=="string"){if(typeof r=="string"?(o=r,r=0,n=this.length):typeof n=="string"&&(o=n,n=this.length),o!==void 0&&typeof o!="string")throw new TypeError("encoding must be a string");if(typeof o=="string"&&!p.isEncoding(o))throw new TypeError("Unknown encoding: "+o);if(e.length===1){let s=e.charCodeAt(0);(o==="utf8"&&s<128||o==="latin1")&&(e=s)}}else typeof e=="number"?e=e&255:typeof e=="boolean"&&(e=Number(e));if(r<0||this.length<r||this.length<n)throw new RangeError("Out of range index");if(n<=r)return this;r=r>>>0,n=n===void 0?this.length:n>>>0,e||(e=0);let i;if(typeof e=="number")for(i=r;i<n;++i)this[i]=e;else{let s=p.isBuffer(e)?e:p.from(e,o),a=s.length;if(a===0)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(i=0;i<n-r;++i)this[i+r]=s[i%a]}return this};var Jt={};function Ri(t,e,r){Jt[t]=class extends r{constructor(){super(),Object.defineProperty(this,"message",{value:e.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${t}]`,this.stack,delete this.name}get code(){return t}set code(o){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:o,writable:!0})}toString(){return`${this.name} [${t}]: ${this.message}`}}}Ri("ERR_BUFFER_OUT_OF_BOUNDS",function(t){return t?`${t} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError);Ri("ERR_INVALID_ARG_TYPE",function(t,e){return`The "${t}" argument must be of type number. Received type ${typeof e}`},TypeError);Ri("ERR_OUT_OF_RANGE",function(t,e,r){let n=`The value of "${t}" is out of range.`,o=r;return Number.isInteger(r)&&Math.abs(r)>2**32?o=Sc(String(r)):typeof r=="bigint"&&(o=String(r),(r>BigInt(2)**BigInt(32)||r<-(BigInt(2)**BigInt(32)))&&(o=Sc(o)),o+="n"),n+=` It must be ${e}. Received ${o}`,n},RangeError);function Sc(t){let e="",r=t.length,n=t[0]==="-"?1:0;for(;r>=n+4;r-=3)e=`_${t.slice(r-3,r)}${e}`;return`${t.slice(0,r)}${e}`}function $h(t,e,r){Zt(e,"offset"),(t[e]===void 0||t[e+r]===void 0)&&Lr(e,t.length-(r+1))}function Pc(t,e,r,n,o,i){if(t>r||t<e){let s=typeof e=="bigint"?"n":"",a;throw i>3?e===0||e===BigInt(0)?a=`>= 0${s} and < 2${s} ** ${(i+1)*8}${s}`:a=`>= -(2${s} ** ${(i+1)*8-1}${s}) and < 2 ** ${(i+1)*8-1}${s}`:a=`>= ${e}${s} and <= ${r}${s}`,new Jt.ERR_OUT_OF_RANGE("value",a,t)}$h(n,o,i)}function Zt(t,e){if(typeof t!="number")throw new Jt.ERR_INVALID_ARG_TYPE(e,"number",t)}function Lr(t,e,r){throw Math.floor(t)!==t?(Zt(t,r),new Jt.ERR_OUT_OF_RANGE(r||"offset","an integer",t)):e<0?new Jt.ERR_BUFFER_OUT_OF_BOUNDS:new Jt.ERR_OUT_OF_RANGE(r||"offset",`>= ${r?1:0} and <= ${e}`,t)}var Fh=/[^+/0-9A-Za-z-_]/g;function Ph(t){if(t=t.split("=")[0],t=t.trim().replace(Fh,""),t.length<2)return"";for(;t.length%4!==0;)t=t+"=";return t}function Bi(t,e){e=e||1/0;let r,n=t.length,o=null,i=[];for(let s=0;s<n;++s){if(r=t.charCodeAt(s),r>55295&&r<57344){if(!o){if(r>56319){(e-=3)>-1&&i.push(239,191,189);continue}else if(s+1===n){(e-=3)>-1&&i.push(239,191,189);continue}o=r;continue}if(r<56320){(e-=3)>-1&&i.push(239,191,189),o=r;continue}r=(o-55296<<10|r-56320)+65536}else o&&(e-=3)>-1&&i.push(239,191,189);if(o=null,r<128){if((e-=1)<0)break;i.push(r)}else if(r<2048){if((e-=2)<0)break;i.push(r>>6|192,r&63|128)}else if(r<65536){if((e-=3)<0)break;i.push(r>>12|224,r>>6&63|128,r&63|128)}else if(r<1114112){if((e-=4)<0)break;i.push(r>>18|240,r>>12&63|128,r>>6&63|128,r&63|128)}else throw new Error("Invalid code point")}return i}function Bh(t){let e=[];for(let r=0;r<t.length;++r)e.push(t.charCodeAt(r)&255);return e}function Dh(t,e){let r,n,o,i=[];for(let s=0;s<t.length&&!((e-=2)<0);++s)r=t.charCodeAt(s),n=r>>8,o=r%256,i.push(o),i.push(n);return i}function Bc(t){return $i.toByteArray(Ph(t))}function Vn(t,e,r,n){let o;for(o=0;o<n&&!(o+r>=e.length||o>=t.length);++o)e[o+r]=t[o];return o}function ke(t,e){return t instanceof e||t!=null&&t.constructor!=null&&t.constructor.name!=null&&t.constructor.name===e.name}function Ui(t){return t!==t}var Nh=function(){let t="0123456789abcdef",e=new Array(256);for(let r=0;r<16;++r){let n=r*16;for(let o=0;o<16;++o)e[n+o]=t[r]+t[o]}return e}();function ot(t){return typeof BigInt>"u"?Rh:t}function Rh(){throw new Error("BigInt not supported")}});var Nc=P((Xt,er)=>{(function(t){var e=typeof Xt=="object"&&Xt&&!Xt.nodeType&&Xt,r=typeof er=="object"&&er&&!er.nodeType&&er,n=typeof global=="object"&&global;(n.global===n||n.window===n||n.self===n)&&(t=n);var o,i=2147483647,s=36,a=1,c=26,u=38,l=700,f=72,h=128,d="-",b=/^xn--/,I=/[^\x20-\x7E]/,D=/[\x2E\u3002\uFF0E\uFF61]/g,E={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},S=s-a,C=Math.floor,U=String.fromCharCode,j;function k(g){throw new RangeError(E[g])}function R(g,w){for(var _=g.length,$=[];_--;)$[_]=w(g[_]);return $}function O(g,w){var _=g.split("@"),$="";_.length>1&&($=_[0]+"@",g=_[1]),g=g.replace(D,".");var N=g.split("."),V=R(N,w).join(".");return $+V}function W(g){for(var w=[],_=0,$=g.length,N,V;_<$;)N=g.charCodeAt(_++),N>=55296&&N<=56319&&_<$?(V=g.charCodeAt(_++),(V&64512)==56320?w.push(((N&1023)<<10)+(V&1023)+65536):(w.push(N),_--)):w.push(N);return w}function ee(g){return R(g,function(w){var _="";return w>65535&&(w-=65536,_+=U(w>>>10&1023|55296),w=56320|w&1023),_+=U(w),_}).join("")}function T(g){return g-48<10?g-22:g-65<26?g-65:g-97<26?g-97:s}function y(g,w){return g+22+75*(g<26)-((w!=0)<<5)}function m(g,w,_){var $=0;for(g=_?C(g/l):g>>1,g+=C(g/w);g>S*c>>1;$+=s)g=C(g/S);return C($+(S+1)*g/(g+u))}function v(g){var w=[],_=g.length,$,N=0,V=h,q=f,te,re,z,ie,G,fe,Ce,Xe,ft;for(te=g.lastIndexOf(d),te<0&&(te=0),re=0;re<te;++re)g.charCodeAt(re)>=128&&k("not-basic"),w.push(g.charCodeAt(re));for(z=te>0?te+1:0;z<_;){for(ie=N,G=1,fe=s;z>=_&&k("invalid-input"),Ce=T(g.charCodeAt(z++)),(Ce>=s||Ce>C((i-N)/G))&&k("overflow"),N+=Ce*G,Xe=fe<=q?a:fe>=q+c?c:fe-q,!(Ce<Xe);fe+=s)ft=s-Xe,G>C(i/ft)&&k("overflow"),G*=ft;$=w.length+1,q=m(N-ie,$,ie==0),C(N/$)>i-V&&k("overflow"),V+=C(N/$),N%=$,w.splice(N++,0,V)}return ee(w)}function x(g){var w,_,$,N,V,q,te,re,z,ie,G,fe=[],Ce,Xe,ft,Io;for(g=W(g),Ce=g.length,w=h,_=0,V=f,q=0;q<Ce;++q)G=g[q],G<128&&fe.push(U(G));for($=N=fe.length,N&&fe.push(d);$<Ce;){for(te=i,q=0;q<Ce;++q)G=g[q],G>=w&&G<te&&(te=G);for(Xe=$+1,te-w>C((i-_)/Xe)&&k("overflow"),_+=(te-w)*Xe,w=te,q=0;q<Ce;++q)if(G=g[q],G<w&&++_>i&&k("overflow"),G==w){for(re=_,z=s;ie=z<=V?a:z>=V+c?c:z-V,!(re<ie);z+=s)Io=re-ie,ft=s-ie,fe.push(U(y(ie+Io%ft,0))),re=C(Io/ft);fe.push(U(y(re,0))),V=m(_,Xe,$==N),_=0,++$}++_,++w}return fe.join("")}function A(g){return O(g,function(w){return b.test(w)?v(w.slice(4).toLowerCase()):w})}function M(g){return O(g,function(w){return I.test(w)?"xn--"+x(w):w})}if(o={version:"1.4.1",ucs2:{decode:W,encode:ee},decode:v,encode:x,toASCII:M,toUnicode:A},typeof define=="function"&&typeof define.amd=="object"&&define.amd)define("punycode",function(){return o});else if(e&&r)if(er.exports==e)r.exports=o;else for(j in o)o.hasOwnProperty(j)&&(e[j]=o[j]);else t.punycode=o})(Xt)});var Uc=P((EE,Rc)=>{"use strict";Rc.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var e={},r=Symbol("test"),n=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var o=42;e[r]=o;for(r in e)return!1;if(typeof Object.keys=="function"&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(e).length!==0)return!1;var i=Object.getOwnPropertySymbols(e);if(i.length!==1||i[0]!==r||!Object.prototype.propertyIsEnumerable.call(e,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var s=Object.getOwnPropertyDescriptor(e,r);if(s.value!==o||s.enumerable!==!0)return!1}return!0}});var Lc=P((AE,jc)=>{"use strict";var kc=typeof Symbol<"u"&&Symbol,Uh=Uc();jc.exports=function(){return typeof kc!="function"||typeof Symbol!="function"||typeof kc("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:Uh()}});var zc=P((TE,qc)=>{"use strict";var Wc={foo:{}},kh=Object;qc.exports=function(){return{__proto__:Wc}.foo===Wc.foo&&!({__proto__:null}instanceof kh)}});var Vc=P((_E,Hc)=>{"use strict";var jh="Function.prototype.bind called on incompatible ",ki=Array.prototype.slice,Lh=Object.prototype.toString,Wh="[object Function]";Hc.exports=function(e){var r=this;if(typeof r!="function"||Lh.call(r)!==Wh)throw new TypeError(jh+r);for(var n=ki.call(arguments,1),o,i=function(){if(this instanceof o){var l=r.apply(this,n.concat(ki.call(arguments)));return Object(l)===l?l:this}else return r.apply(e,n.concat(ki.call(arguments)))},s=Math.max(0,r.length-n.length),a=[],c=0;c<s;c++)a.push("$"+c);if(o=Function("binder","return function ("+a.join(",")+"){ return binder.apply(this,arguments); }")(i),r.prototype){var u=function(){};u.prototype=r.prototype,o.prototype=new u,u.prototype=null}return o}});var Gn=P((IE,Gc)=>{"use strict";var qh=Vc();Gc.exports=Function.prototype.bind||qh});var Jc=P((OE,Kc)=>{"use strict";var zh=Gn();Kc.exports=zh.call(Function.call,Object.prototype.hasOwnProperty)});var Yn=P((CE,eu)=>{"use strict";var B,or=SyntaxError,Xc=Function,nr=TypeError,ji=function(t){try{return Xc('"use strict"; return ('+t+").constructor;")()}catch{}},It=Object.getOwnPropertyDescriptor;if(It)try{It({},"")}catch{It=null}var Li=function(){throw new nr},Hh=It?function(){try{return arguments.callee,Li}catch{try{return It(arguments,"callee").get}catch{return Li}}}():Li,tr=Lc()(),Vh=zc()(),ue=Object.getPrototypeOf||(Vh?function(t){return t.__proto__}:null),rr={},Gh=typeof Uint8Array>"u"||!ue?B:ue(Uint8Array),Ot={"%AggregateError%":typeof AggregateError>"u"?B:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?B:ArrayBuffer,"%ArrayIteratorPrototype%":tr&&ue?ue([][Symbol.iterator]()):B,"%AsyncFromSyncIteratorPrototype%":B,"%AsyncFunction%":rr,"%AsyncGenerator%":rr,"%AsyncGeneratorFunction%":rr,"%AsyncIteratorPrototype%":rr,"%Atomics%":typeof Atomics>"u"?B:Atomics,"%BigInt%":typeof BigInt>"u"?B:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?B:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?B:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?B:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?B:Float32Array,"%Float64Array%":typeof Float64Array>"u"?B:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?B:FinalizationRegistry,"%Function%":Xc,"%GeneratorFunction%":rr,"%Int8Array%":typeof Int8Array>"u"?B:Int8Array,"%Int16Array%":typeof Int16Array>"u"?B:Int16Array,"%Int32Array%":typeof Int32Array>"u"?B:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":tr&&ue?ue(ue([][Symbol.iterator]())):B,"%JSON%":typeof JSON=="object"?JSON:B,"%Map%":typeof Map>"u"?B:Map,"%MapIteratorPrototype%":typeof Map>"u"||!tr||!ue?B:ue(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?B:Promise,"%Proxy%":typeof Proxy>"u"?B:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?B:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?B:Set,"%SetIteratorPrototype%":typeof Set>"u"||!tr||!ue?B:ue(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?B:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":tr&&ue?ue(""[Symbol.iterator]()):B,"%Symbol%":tr?Symbol:B,"%SyntaxError%":or,"%ThrowTypeError%":Hh,"%TypedArray%":Gh,"%TypeError%":nr,"%Uint8Array%":typeof Uint8Array>"u"?B:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?B:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?B:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?B:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?B:WeakMap,"%WeakRef%":typeof WeakRef>"u"?B:WeakRef,"%WeakSet%":typeof WeakSet>"u"?B:WeakSet};if(ue)try{null.error}catch(t){Yc=ue(ue(t)),Ot["%Error.prototype%"]=Yc}var Yc,Kh=function t(e){var r;if(e==="%AsyncFunction%")r=ji("async function () {}");else if(e==="%GeneratorFunction%")r=ji("function* () {}");else if(e==="%AsyncGeneratorFunction%")r=ji("async function* () {}");else if(e==="%AsyncGenerator%"){var n=t("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if(e==="%AsyncIteratorPrototype%"){var o=t("%AsyncGenerator%");o&&ue&&(r=ue(o.prototype))}return Ot[e]=r,r},Zc={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},Wr=Gn(),Kn=Jc(),Jh=Wr.call(Function.call,Array.prototype.concat),Yh=Wr.call(Function.apply,Array.prototype.splice),Qc=Wr.call(Function.call,String.prototype.replace),Jn=Wr.call(Function.call,String.prototype.slice),Zh=Wr.call(Function.call,RegExp.prototype.exec),Qh=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Xh=/\\(\\)?/g,ed=function(e){var r=Jn(e,0,1),n=Jn(e,-1);if(r==="%"&&n!=="%")throw new or("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&r!=="%")throw new or("invalid intrinsic syntax, expected opening `%`");var o=[];return Qc(e,Qh,function(i,s,a,c){o[o.length]=a?Qc(c,Xh,"$1"):s||i}),o},td=function(e,r){var n=e,o;if(Kn(Zc,n)&&(o=Zc[n],n="%"+o[0]+"%"),Kn(Ot,n)){var i=Ot[n];if(i===rr&&(i=Kh(n)),typeof i>"u"&&!r)throw new nr("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:o,name:n,value:i}}throw new or("intrinsic "+e+" does not exist!")};eu.exports=function(e,r){if(typeof e!="string"||e.length===0)throw new nr("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new nr('"allowMissing" argument must be a boolean');if(Zh(/^%?[^%]*%?$/,e)===null)throw new or("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=ed(e),o=n.length>0?n[0]:"",i=td("%"+o+"%",r),s=i.name,a=i.value,c=!1,u=i.alias;u&&(o=u[0],Yh(n,Jh([0,1],u)));for(var l=1,f=!0;l<n.length;l+=1){var h=n[l],d=Jn(h,0,1),b=Jn(h,-1);if((d==='"'||d==="'"||d==="`"||b==='"'||b==="'"||b==="`")&&d!==b)throw new or("property names with quotes must have matching quotes");if((h==="constructor"||!f)&&(c=!0),o+="."+h,s="%"+o+"%",Kn(Ot,s))a=Ot[s];else if(a!=null){if(!(h in a)){if(!r)throw new nr("base intrinsic for "+e+" exists, but the property is not available.");return}if(It&&l+1>=n.length){var I=It(a,h);f=!!I,f&&"get"in I&&!("originalValue"in I.get)?a=I.get:a=a[h]}else f=Kn(a,h),a=a[h];f&&!c&&(Ot[s]=a)}}return a}});var su=P((ME,Zn)=>{"use strict";var Wi=Gn(),ir=Yn(),nu=ir("%Function.prototype.apply%"),ou=ir("%Function.prototype.call%"),iu=ir("%Reflect.apply%",!0)||Wi.call(ou,nu),tu=ir("%Object.getOwnPropertyDescriptor%",!0),Ct=ir("%Object.defineProperty%",!0),rd=ir("%Math.max%");if(Ct)try{Ct({},"a",{value:1})}catch{Ct=null}Zn.exports=function(e){var r=iu(Wi,ou,arguments);if(tu&&Ct){var n=tu(r,"length");n.configurable&&Ct(r,"length",{value:1+rd(0,e.length-(arguments.length-1))})}return r};var ru=function(){return iu(Wi,nu,arguments)};Ct?Ct(Zn.exports,"apply",{value:ru}):Zn.exports.apply=ru});var lu=P(($E,uu)=>{"use strict";var au=Yn(),cu=su(),nd=cu(au("String.prototype.indexOf"));uu.exports=function(e,r){var n=au(e,!!r);return typeof n=="function"&&nd(e,".prototype.")>-1?cu(n):n}});var fu=P(()=>{});var $u=P((BE,Mu)=>{var Qi=typeof Map=="function"&&Map.prototype,qi=Object.getOwnPropertyDescriptor&&Qi?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,Xn=Qi&&qi&&typeof qi.get=="function"?qi.get:null,pu=Qi&&Map.prototype.forEach,Xi=typeof Set=="function"&&Set.prototype,zi=Object.getOwnPropertyDescriptor&&Xi?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,eo=Xi&&zi&&typeof zi.get=="function"?zi.get:null,hu=Xi&&Set.prototype.forEach,od=typeof WeakMap=="function"&&WeakMap.prototype,zr=od?WeakMap.prototype.has:null,id=typeof WeakSet=="function"&&WeakSet.prototype,Hr=id?WeakSet.prototype.has:null,sd=typeof WeakRef=="function"&&WeakRef.prototype,du=sd?WeakRef.prototype.deref:null,ad=Boolean.prototype.valueOf,cd=Object.prototype.toString,ud=Function.prototype.toString,ld=String.prototype.match,es=String.prototype.slice,st=String.prototype.replace,fd=String.prototype.toUpperCase,mu=String.prototype.toLowerCase,Au=RegExp.prototype.test,yu=Array.prototype.concat,je=Array.prototype.join,pd=Array.prototype.slice,gu=Math.floor,Gi=typeof BigInt=="function"?BigInt.prototype.valueOf:null,Hi=Object.getOwnPropertySymbols,Ki=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,sr=typeof Symbol=="function"&&typeof Symbol.iterator=="object",me=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===sr||!0)?Symbol.toStringTag:null,Tu=Object.prototype.propertyIsEnumerable,xu=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(t){return t.__proto__}:null);function bu(t,e){if(t===1/0||t===-1/0||t!==t||t&&t>-1e3&&t<1e3||Au.call(/e/,e))return e;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof t=="number"){var n=t<0?-gu(-t):gu(t);if(n!==t){var o=String(n),i=es.call(e,o.length+1);return st.call(o,r,"$&_")+"."+st.call(st.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return st.call(e,r,"$&_")}var Ji=fu(),vu=Ji.custom,wu=Iu(vu)?vu:null;Mu.exports=function t(e,r,n,o){var i=r||{};if(it(i,"quoteStyle")&&i.quoteStyle!=="single"&&i.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(it(i,"maxStringLength")&&(typeof i.maxStringLength=="number"?i.maxStringLength<0&&i.maxStringLength!==1/0:i.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var s=it(i,"customInspect")?i.customInspect:!0;if(typeof s!="boolean"&&s!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(it(i,"indent")&&i.indent!==null&&i.indent!==" "&&!(parseInt(i.indent,10)===i.indent&&i.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(it(i,"numericSeparator")&&typeof i.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var a=i.numericSeparator;if(typeof e>"u")return"undefined";if(e===null)return"null";if(typeof e=="boolean")return e?"true":"false";if(typeof e=="string")return Cu(e,i);if(typeof e=="number"){if(e===0)return 1/0/e>0?"0":"-0";var c=String(e);return a?bu(e,c):c}if(typeof e=="bigint"){var u=String(e)+"n";return a?bu(e,u):u}var l=typeof i.depth>"u"?5:i.depth;if(typeof n>"u"&&(n=0),n>=l&&l>0&&typeof e=="object")return Yi(e)?"[Array]":"[Object]";var f=Md(i,n);if(typeof o>"u")o=[];else if(Ou(o,e)>=0)return"[Circular]";function h(m,v,x){if(v&&(o=pd.call(o),o.push(v)),x){var A={depth:i.depth};return it(i,"quoteStyle")&&(A.quoteStyle=i.quoteStyle),t(m,A,n+1,o)}return t(m,i,n+1,o)}if(typeof e=="function"&&!Su(e)){var d=wd(e),b=Qn(e,h);return"[Function"+(d?": "+d:" (anonymous)")+"]"+(b.length>0?" { "+je.call(b,", ")+" }":"")}if(Iu(e)){var I=sr?st.call(String(e),/^(Symbol\(.*\))_[^)]*$/,"$1"):Ki.call(e);return typeof e=="object"&&!sr?qr(I):I}if(Id(e)){for(var D="<"+mu.call(String(e.nodeName)),E=e.attributes||[],S=0;S<E.length;S++)D+=" "+E[S].name+"="+_u(hd(E[S].value),"double",i);return D+=">",e.childNodes&&e.childNodes.length&&(D+="..."),D+="</"+mu.call(String(e.nodeName))+">",D}if(Yi(e)){if(e.length===0)return"[]";var C=Qn(e,h);return f&&!Cd(C)?"["+Zi(C,f)+"]":"[ "+je.call(C,", ")+" ]"}if(md(e)){var U=Qn(e,h);return!("cause"in Error.prototype)&&"cause"in e&&!Tu.call(e,"cause")?"{ ["+String(e)+"] "+je.call(yu.call("[cause]: "+h(e.cause),U),", ")+" }":U.length===0?"["+String(e)+"]":"{ ["+String(e)+"] "+je.call(U,", ")+" }"}if(typeof e=="object"&&s){if(wu&&typeof e[wu]=="function"&&Ji)return Ji(e,{depth:l-n});if(s!=="symbol"&&typeof e.inspect=="function")return e.inspect()}if(Sd(e)){var j=[];return pu&&pu.call(e,function(m,v){j.push(h(v,e,!0)+" => "+h(m,e))}),Eu("Map",Xn.call(e),j,f)}if(Td(e)){var k=[];return hu&&hu.call(e,function(m){k.push(h(m,e))}),Eu("Set",eo.call(e),k,f)}if(Ed(e))return Vi("WeakMap");if(_d(e))return Vi("WeakSet");if(Ad(e))return Vi("WeakRef");if(gd(e))return qr(h(Number(e)));if(bd(e))return qr(h(Gi.call(e)));if(xd(e))return qr(ad.call(e));if(yd(e))return qr(h(String(e)));if(!dd(e)&&!Su(e)){var R=Qn(e,h),O=xu?xu(e)===Object.prototype:e instanceof Object||e.constructor===Object,W=e instanceof Object?"":"null prototype",ee=!O&&me&&Object(e)===e&&me in e?es.call(at(e),8,-1):W?"Object":"",T=O||typeof e.constructor!="function"?"":e.constructor.name?e.constructor.name+" ":"",y=T+(ee||W?"["+je.call(yu.call([],ee||[],W||[]),": ")+"] ":"");return R.length===0?y+"{}":f?y+"{"+Zi(R,f)+"}":y+"{ "+je.call(R,", ")+" }"}return String(e)};function _u(t,e,r){var n=(r.quoteStyle||e)==="double"?'"':"'";return n+t+n}function hd(t){return st.call(String(t),/"/g,"&quot;")}function Yi(t){return at(t)==="[object Array]"&&(!me||!(typeof t=="object"&&me in t))}function dd(t){return at(t)==="[object Date]"&&(!me||!(typeof t=="object"&&me in t))}function Su(t){return at(t)==="[object RegExp]"&&(!me||!(typeof t=="object"&&me in t))}function md(t){return at(t)==="[object Error]"&&(!me||!(typeof t=="object"&&me in t))}function yd(t){return at(t)==="[object String]"&&(!me||!(typeof t=="object"&&me in t))}function gd(t){return at(t)==="[object Number]"&&(!me||!(typeof t=="object"&&me in t))}function xd(t){return at(t)==="[object Boolean]"&&(!me||!(typeof t=="object"&&me in t))}function Iu(t){if(sr)return t&&typeof t=="object"&&t instanceof Symbol;if(typeof t=="symbol")return!0;if(!t||typeof t!="object"||!Ki)return!1;try{return Ki.call(t),!0}catch{}return!1}function bd(t){if(!t||typeof t!="object"||!Gi)return!1;try{return Gi.call(t),!0}catch{}return!1}var vd=Object.prototype.hasOwnProperty||function(t){return t in this};function it(t,e){return vd.call(t,e)}function at(t){return cd.call(t)}function wd(t){if(t.name)return t.name;var e=ld.call(ud.call(t),/^function\s*([\w$]+)/);return e?e[1]:null}function Ou(t,e){if(t.indexOf)return t.indexOf(e);for(var r=0,n=t.length;r<n;r++)if(t[r]===e)return r;return-1}function Sd(t){if(!Xn||!t||typeof t!="object")return!1;try{Xn.call(t);try{eo.call(t)}catch{return!0}return t instanceof Map}catch{}return!1}function Ed(t){if(!zr||!t||typeof t!="object")return!1;try{zr.call(t,zr);try{Hr.call(t,Hr)}catch{return!0}return t instanceof WeakMap}catch{}return!1}function Ad(t){if(!du||!t||typeof t!="object")return!1;try{return du.call(t),!0}catch{}return!1}function Td(t){if(!eo||!t||typeof t!="object")return!1;try{eo.call(t);try{Xn.call(t)}catch{return!0}return t instanceof Set}catch{}return!1}function _d(t){if(!Hr||!t||typeof t!="object")return!1;try{Hr.call(t,Hr);try{zr.call(t,zr)}catch{return!0}return t instanceof WeakSet}catch{}return!1}function Id(t){return!t||typeof t!="object"?!1:typeof HTMLElement<"u"&&t instanceof HTMLElement?!0:typeof t.nodeName=="string"&&typeof t.getAttribute=="function"}function Cu(t,e){if(t.length>e.maxStringLength){var r=t.length-e.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return Cu(es.call(t,0,e.maxStringLength),e)+n}var o=st.call(st.call(t,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,Od);return _u(o,"single",e)}function Od(t){var e=t.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[e];return r?"\\"+r:"\\x"+(e<16?"0":"")+fd.call(e.toString(16))}function qr(t){return"Object("+t+")"}function Vi(t){return t+" { ? }"}function Eu(t,e,r,n){var o=n?Zi(r,n):je.call(r,", ");return t+" ("+e+") {"+o+"}"}function Cd(t){for(var e=0;e<t.length;e++)if(Ou(t[e],`
2
- `)>=0)return!1;return!0}function Md(t,e){var r;if(t.indent===" ")r=" ";else if(typeof t.indent=="number"&&t.indent>0)r=je.call(Array(t.indent+1)," ");else return null;return{base:r,prev:je.call(Array(e+1),r)}}function Zi(t,e){if(t.length===0)return"";var r=`
3
- `+e.prev+e.base;return r+je.call(t,","+r)+`
4
- `+e.prev}function Qn(t,e){var r=Yi(t),n=[];if(r){n.length=t.length;for(var o=0;o<t.length;o++)n[o]=it(t,o)?e(t[o],t):""}var i=typeof Hi=="function"?Hi(t):[],s;if(sr){s={};for(var a=0;a<i.length;a++)s["$"+i[a]]=i[a]}for(var c in t)it(t,c)&&(r&&String(Number(c))===c&&c<t.length||sr&&s["$"+c]instanceof Symbol||(Au.call(/[^\w$]/,c)?n.push(e(c,t)+": "+e(t[c],t)):n.push(c+": "+e(t[c],t))));if(typeof Hi=="function")for(var u=0;u<i.length;u++)Tu.call(t,i[u])&&n.push("["+e(i[u])+"]: "+e(t[i[u]],t));return n}});var Pu=P((DE,Fu)=>{"use strict";var ts=Yn(),ar=lu(),$d=$u(),Fd=ts("%TypeError%"),to=ts("%WeakMap%",!0),ro=ts("%Map%",!0),Pd=ar("WeakMap.prototype.get",!0),Bd=ar("WeakMap.prototype.set",!0),Dd=ar("WeakMap.prototype.has",!0),Nd=ar("Map.prototype.get",!0),Rd=ar("Map.prototype.set",!0),Ud=ar("Map.prototype.has",!0),rs=function(t,e){for(var r=t,n;(n=r.next)!==null;r=n)if(n.key===e)return r.next=n.next,n.next=t.next,t.next=n,n},kd=function(t,e){var r=rs(t,e);return r&&r.value},jd=function(t,e,r){var n=rs(t,e);n?n.value=r:t.next={key:e,next:t.next,value:r}},Ld=function(t,e){return!!rs(t,e)};Fu.exports=function(){var e,r,n,o={assert:function(i){if(!o.has(i))throw new Fd("Side channel does not contain "+$d(i))},get:function(i){if(to&&i&&(typeof i=="object"||typeof i=="function")){if(e)return Pd(e,i)}else if(ro){if(r)return Nd(r,i)}else if(n)return kd(n,i)},has:function(i){if(to&&i&&(typeof i=="object"||typeof i=="function")){if(e)return Dd(e,i)}else if(ro){if(r)return Ud(r,i)}else if(n)return Ld(n,i);return!1},set:function(i,s){to&&i&&(typeof i=="object"||typeof i=="function")?(e||(e=new to),Bd(e,i,s)):ro?(r||(r=new ro),Rd(r,i,s)):(n||(n={key:{},next:null}),jd(n,i,s))}};return o}});var no=P((NE,Bu)=>{"use strict";var Wd=String.prototype.replace,qd=/%20/g,ns={RFC1738:"RFC1738",RFC3986:"RFC3986"};Bu.exports={default:ns.RFC3986,formatters:{RFC1738:function(t){return Wd.call(t,qd,"+")},RFC3986:function(t){return String(t)}},RFC1738:ns.RFC1738,RFC3986:ns.RFC3986}});var is=P((RE,Nu)=>{"use strict";var zd=no(),os=Object.prototype.hasOwnProperty,Mt=Array.isArray,Le=function(){for(var t=[],e=0;e<256;++e)t.push("%"+((e<16?"0":"")+e.toString(16)).toUpperCase());return t}(),Hd=function(e){for(;e.length>1;){var r=e.pop(),n=r.obj[r.prop];if(Mt(n)){for(var o=[],i=0;i<n.length;++i)typeof n[i]<"u"&&o.push(n[i]);r.obj[r.prop]=o}}},Du=function(e,r){for(var n=r&&r.plainObjects?Object.create(null):{},o=0;o<e.length;++o)typeof e[o]<"u"&&(n[o]=e[o]);return n},Vd=function t(e,r,n){if(!r)return e;if(typeof r!="object"){if(Mt(e))e.push(r);else if(e&&typeof e=="object")(n&&(n.plainObjects||n.allowPrototypes)||!os.call(Object.prototype,r))&&(e[r]=!0);else return[e,r];return e}if(!e||typeof e!="object")return[e].concat(r);var o=e;return Mt(e)&&!Mt(r)&&(o=Du(e,n)),Mt(e)&&Mt(r)?(r.forEach(function(i,s){if(os.call(e,s)){var a=e[s];a&&typeof a=="object"&&i&&typeof i=="object"?e[s]=t(a,i,n):e.push(i)}else e[s]=i}),e):Object.keys(r).reduce(function(i,s){var a=r[s];return os.call(i,s)?i[s]=t(i[s],a,n):i[s]=a,i},o)},Gd=function(e,r){return Object.keys(r).reduce(function(n,o){return n[o]=r[o],n},e)},Kd=function(t,e,r){var n=t.replace(/\+/g," ");if(r==="iso-8859-1")return n.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(n)}catch{return n}},Jd=function(e,r,n,o,i){if(e.length===0)return e;var s=e;if(typeof e=="symbol"?s=Symbol.prototype.toString.call(e):typeof e!="string"&&(s=String(e)),n==="iso-8859-1")return escape(s).replace(/%u[0-9a-f]{4}/gi,function(l){return"%26%23"+parseInt(l.slice(2),16)+"%3B"});for(var a="",c=0;c<s.length;++c){var u=s.charCodeAt(c);if(u===45||u===46||u===95||u===126||u>=48&&u<=57||u>=65&&u<=90||u>=97&&u<=122||i===zd.RFC1738&&(u===40||u===41)){a+=s.charAt(c);continue}if(u<128){a=a+Le[u];continue}if(u<2048){a=a+(Le[192|u>>6]+Le[128|u&63]);continue}if(u<55296||u>=57344){a=a+(Le[224|u>>12]+Le[128|u>>6&63]+Le[128|u&63]);continue}c+=1,u=65536+((u&1023)<<10|s.charCodeAt(c)&1023),a+=Le[240|u>>18]+Le[128|u>>12&63]+Le[128|u>>6&63]+Le[128|u&63]}return a},Yd=function(e){for(var r=[{obj:{o:e},prop:"o"}],n=[],o=0;o<r.length;++o)for(var i=r[o],s=i.obj[i.prop],a=Object.keys(s),c=0;c<a.length;++c){var u=a[c],l=s[u];typeof l=="object"&&l!==null&&n.indexOf(l)===-1&&(r.push({obj:s,prop:u}),n.push(l))}return Hd(r),e},Zd=function(e){return Object.prototype.toString.call(e)==="[object RegExp]"},Qd=function(e){return!e||typeof e!="object"?!1:!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},Xd=function(e,r){return[].concat(e,r)},em=function(e,r){if(Mt(e)){for(var n=[],o=0;o<e.length;o+=1)n.push(r(e[o]));return n}return r(e)};Nu.exports={arrayToObject:Du,assign:Gd,combine:Xd,compact:Yd,decode:Kd,encode:Jd,isBuffer:Qd,isRegExp:Zd,maybeMap:em,merge:Vd}});var Wu=P((UE,Lu)=>{"use strict";var ku=Pu(),oo=is(),Vr=no(),tm=Object.prototype.hasOwnProperty,Ru={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,r){return e+"["+r+"]"},repeat:function(e){return e}},Ye=Array.isArray,rm=Array.prototype.push,ju=function(t,e){rm.apply(t,Ye(e)?e:[e])},nm=Date.prototype.toISOString,Uu=Vr.default,ye={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:oo.encode,encodeValuesOnly:!1,format:Uu,formatter:Vr.formatters[Uu],indices:!1,serializeDate:function(e){return nm.call(e)},skipNulls:!1,strictNullHandling:!1},om=function(e){return typeof e=="string"||typeof e=="number"||typeof e=="boolean"||typeof e=="symbol"||typeof e=="bigint"},ss={},im=function t(e,r,n,o,i,s,a,c,u,l,f,h,d,b,I,D){for(var E=e,S=D,C=0,U=!1;(S=S.get(ss))!==void 0&&!U;){var j=S.get(e);if(C+=1,typeof j<"u"){if(j===C)throw new RangeError("Cyclic object value");U=!0}typeof S.get(ss)>"u"&&(C=0)}if(typeof c=="function"?E=c(r,E):E instanceof Date?E=f(E):n==="comma"&&Ye(E)&&(E=oo.maybeMap(E,function(A){return A instanceof Date?f(A):A})),E===null){if(i)return a&&!b?a(r,ye.encoder,I,"key",h):r;E=""}if(om(E)||oo.isBuffer(E)){if(a){var k=b?r:a(r,ye.encoder,I,"key",h);return[d(k)+"="+d(a(E,ye.encoder,I,"value",h))]}return[d(r)+"="+d(String(E))]}var R=[];if(typeof E>"u")return R;var O;if(n==="comma"&&Ye(E))b&&a&&(E=oo.maybeMap(E,a)),O=[{value:E.length>0?E.join(",")||null:void 0}];else if(Ye(c))O=c;else{var W=Object.keys(E);O=u?W.sort(u):W}for(var ee=o&&Ye(E)&&E.length===1?r+"[]":r,T=0;T<O.length;++T){var y=O[T],m=typeof y=="object"&&typeof y.value<"u"?y.value:E[y];if(!(s&&m===null)){var v=Ye(E)?typeof n=="function"?n(ee,y):ee:ee+(l?"."+y:"["+y+"]");D.set(e,C);var x=ku();x.set(ss,D),ju(R,t(m,v,n,o,i,s,n==="comma"&&b&&Ye(E)?null:a,c,u,l,f,h,d,b,I,x))}}return R},sm=function(e){if(!e)return ye;if(e.encoder!==null&&typeof e.encoder<"u"&&typeof e.encoder!="function")throw new TypeError("Encoder has to be a function.");var r=e.charset||ye.charset;if(typeof e.charset<"u"&&e.charset!=="utf-8"&&e.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=Vr.default;if(typeof e.format<"u"){if(!tm.call(Vr.formatters,e.format))throw new TypeError("Unknown format option provided.");n=e.format}var o=Vr.formatters[n],i=ye.filter;return(typeof e.filter=="function"||Ye(e.filter))&&(i=e.filter),{addQueryPrefix:typeof e.addQueryPrefix=="boolean"?e.addQueryPrefix:ye.addQueryPrefix,allowDots:typeof e.allowDots>"u"?ye.allowDots:!!e.allowDots,charset:r,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:ye.charsetSentinel,delimiter:typeof e.delimiter>"u"?ye.delimiter:e.delimiter,encode:typeof e.encode=="boolean"?e.encode:ye.encode,encoder:typeof e.encoder=="function"?e.encoder:ye.encoder,encodeValuesOnly:typeof e.encodeValuesOnly=="boolean"?e.encodeValuesOnly:ye.encodeValuesOnly,filter:i,format:n,formatter:o,serializeDate:typeof e.serializeDate=="function"?e.serializeDate:ye.serializeDate,skipNulls:typeof e.skipNulls=="boolean"?e.skipNulls:ye.skipNulls,sort:typeof e.sort=="function"?e.sort:null,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:ye.strictNullHandling}};Lu.exports=function(t,e){var r=t,n=sm(e),o,i;typeof n.filter=="function"?(i=n.filter,r=i("",r)):Ye(n.filter)&&(i=n.filter,o=i);var s=[];if(typeof r!="object"||r===null)return"";var a;e&&e.arrayFormat in Ru?a=e.arrayFormat:e&&"indices"in e?a=e.indices?"indices":"repeat":a="indices";var c=Ru[a];if(e&&"commaRoundTrip"in e&&typeof e.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var u=c==="comma"&&e&&e.commaRoundTrip;o||(o=Object.keys(r)),n.sort&&o.sort(n.sort);for(var l=ku(),f=0;f<o.length;++f){var h=o[f];n.skipNulls&&r[h]===null||ju(s,im(r[h],h,c,u,n.strictNullHandling,n.skipNulls,n.encode?n.encoder:null,n.filter,n.sort,n.allowDots,n.serializeDate,n.format,n.formatter,n.encodeValuesOnly,n.charset,l))}var d=s.join(n.delimiter),b=n.addQueryPrefix===!0?"?":"";return n.charsetSentinel&&(n.charset==="iso-8859-1"?b+="utf8=%26%2310003%3B&":b+="utf8=%E2%9C%93&"),d.length>0?b+d:""}});var Hu=P((kE,zu)=>{"use strict";var cr=is(),as=Object.prototype.hasOwnProperty,am=Array.isArray,le={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:cr.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},cm=function(t){return t.replace(/&#(\d+);/g,function(e,r){return String.fromCharCode(parseInt(r,10))})},qu=function(t,e){return t&&typeof t=="string"&&e.comma&&t.indexOf(",")>-1?t.split(","):t},um="utf8=%26%2310003%3B",lm="utf8=%E2%9C%93",fm=function(e,r){var n={__proto__:null},o=r.ignoreQueryPrefix?e.replace(/^\?/,""):e,i=r.parameterLimit===1/0?void 0:r.parameterLimit,s=o.split(r.delimiter,i),a=-1,c,u=r.charset;if(r.charsetSentinel)for(c=0;c<s.length;++c)s[c].indexOf("utf8=")===0&&(s[c]===lm?u="utf-8":s[c]===um&&(u="iso-8859-1"),a=c,c=s.length);for(c=0;c<s.length;++c)if(c!==a){var l=s[c],f=l.indexOf("]="),h=f===-1?l.indexOf("="):f+1,d,b;h===-1?(d=r.decoder(l,le.decoder,u,"key"),b=r.strictNullHandling?null:""):(d=r.decoder(l.slice(0,h),le.decoder,u,"key"),b=cr.maybeMap(qu(l.slice(h+1),r),function(I){return r.decoder(I,le.decoder,u,"value")})),b&&r.interpretNumericEntities&&u==="iso-8859-1"&&(b=cm(b)),l.indexOf("[]=")>-1&&(b=am(b)?[b]:b),as.call(n,d)?n[d]=cr.combine(n[d],b):n[d]=b}return n},pm=function(t,e,r,n){for(var o=n?e:qu(e,r),i=t.length-1;i>=0;--i){var s,a=t[i];if(a==="[]"&&r.parseArrays)s=[].concat(o);else{s=r.plainObjects?Object.create(null):{};var c=a.charAt(0)==="["&&a.charAt(a.length-1)==="]"?a.slice(1,-1):a,u=parseInt(c,10);!r.parseArrays&&c===""?s={0:o}:!isNaN(u)&&a!==c&&String(u)===c&&u>=0&&r.parseArrays&&u<=r.arrayLimit?(s=[],s[u]=o):c!=="__proto__"&&(s[c]=o)}o=s}return o},hm=function(e,r,n,o){if(e){var i=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,s=/(\[[^[\]]*])/,a=/(\[[^[\]]*])/g,c=n.depth>0&&s.exec(i),u=c?i.slice(0,c.index):i,l=[];if(u){if(!n.plainObjects&&as.call(Object.prototype,u)&&!n.allowPrototypes)return;l.push(u)}for(var f=0;n.depth>0&&(c=a.exec(i))!==null&&f<n.depth;){if(f+=1,!n.plainObjects&&as.call(Object.prototype,c[1].slice(1,-1))&&!n.allowPrototypes)return;l.push(c[1])}return c&&l.push("["+i.slice(c.index)+"]"),pm(l,r,n,o)}},dm=function(e){if(!e)return le;if(e.decoder!==null&&e.decoder!==void 0&&typeof e.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof e.charset<"u"&&e.charset!=="utf-8"&&e.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var r=typeof e.charset>"u"?le.charset:e.charset;return{allowDots:typeof e.allowDots>"u"?le.allowDots:!!e.allowDots,allowPrototypes:typeof e.allowPrototypes=="boolean"?e.allowPrototypes:le.allowPrototypes,allowSparse:typeof e.allowSparse=="boolean"?e.allowSparse:le.allowSparse,arrayLimit:typeof e.arrayLimit=="number"?e.arrayLimit:le.arrayLimit,charset:r,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:le.charsetSentinel,comma:typeof e.comma=="boolean"?e.comma:le.comma,decoder:typeof e.decoder=="function"?e.decoder:le.decoder,delimiter:typeof e.delimiter=="string"||cr.isRegExp(e.delimiter)?e.delimiter:le.delimiter,depth:typeof e.depth=="number"||e.depth===!1?+e.depth:le.depth,ignoreQueryPrefix:e.ignoreQueryPrefix===!0,interpretNumericEntities:typeof e.interpretNumericEntities=="boolean"?e.interpretNumericEntities:le.interpretNumericEntities,parameterLimit:typeof e.parameterLimit=="number"?e.parameterLimit:le.parameterLimit,parseArrays:e.parseArrays!==!1,plainObjects:typeof e.plainObjects=="boolean"?e.plainObjects:le.plainObjects,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:le.strictNullHandling}};zu.exports=function(t,e){var r=dm(e);if(t===""||t===null||typeof t>"u")return r.plainObjects?Object.create(null):{};for(var n=typeof t=="string"?fm(t,r):t,o=r.plainObjects?Object.create(null):{},i=Object.keys(n),s=0;s<i.length;++s){var a=i[s],c=hm(a,n[a],r,typeof t=="string");o=cr.merge(o,c,r)}return r.allowSparse===!0?o:cr.compact(o)}});var Gu=P((jE,Vu)=>{"use strict";var mm=Wu(),ym=Hu(),gm=no();Vu.exports={formats:gm,parse:ym,stringify:mm}});var Zu=P(lr=>{"use strict";var xm=Nc();function _e(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}var bm=/^([a-z0-9.+-]+:)/i,vm=/:[0-9]*$/,wm=/^(\/\/?(?!\/)[^?\s]*)(\?[^\s]*)?$/,Sm=["<",">",'"',"`"," ","\r",`
5
- `," "],Em=["{","}","|","\\","^","`"].concat(Sm),cs=["'"].concat(Em),Ku=["%","/","?",";","#"].concat(cs),Ju=["/","?","#"],Am=255,Yu=/^[+a-z0-9A-Z_-]{0,63}$/,Tm=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,_m={javascript:!0,"javascript:":!0},us={javascript:!0,"javascript:":!0},ur={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},ls=Gu();function Gr(t,e,r){if(t&&typeof t=="object"&&t instanceof _e)return t;var n=new _e;return n.parse(t,e,r),n}_e.prototype.parse=function(t,e,r){if(typeof t!="string")throw new TypeError("Parameter 'url' must be a string, not "+typeof t);var n=t.indexOf("?"),o=n!==-1&&n<t.indexOf("#")?"?":"#",i=t.split(o),s=/\\/g;i[0]=i[0].replace(s,"/"),t=i.join(o);var a=t;if(a=a.trim(),!r&&t.split("#").length===1){var c=wm.exec(a);if(c)return this.path=a,this.href=a,this.pathname=c[1],c[2]?(this.search=c[2],e?this.query=ls.parse(this.search.substr(1)):this.query=this.search.substr(1)):e&&(this.search="",this.query={}),this}var u=bm.exec(a);if(u){u=u[0];var l=u.toLowerCase();this.protocol=l,a=a.substr(u.length)}if(r||u||a.match(/^\/\/[^@/]+@[^@/]+/)){var f=a.substr(0,2)==="//";f&&!(u&&us[u])&&(a=a.substr(2),this.slashes=!0)}if(!us[u]&&(f||u&&!ur[u])){for(var h=-1,d=0;d<Ju.length;d++){var b=a.indexOf(Ju[d]);b!==-1&&(h===-1||b<h)&&(h=b)}var I,D;h===-1?D=a.lastIndexOf("@"):D=a.lastIndexOf("@",h),D!==-1&&(I=a.slice(0,D),a=a.slice(D+1),this.auth=decodeURIComponent(I)),h=-1;for(var d=0;d<Ku.length;d++){var b=a.indexOf(Ku[d]);b!==-1&&(h===-1||b<h)&&(h=b)}h===-1&&(h=a.length),this.host=a.slice(0,h),a=a.slice(h),this.parseHost(),this.hostname=this.hostname||"";var E=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!E)for(var S=this.hostname.split(/\./),d=0,C=S.length;d<C;d++){var U=S[d];if(U&&!U.match(Yu)){for(var j="",k=0,R=U.length;k<R;k++)U.charCodeAt(k)>127?j+="x":j+=U[k];if(!j.match(Yu)){var O=S.slice(0,d),W=S.slice(d+1),ee=U.match(Tm);ee&&(O.push(ee[1]),W.unshift(ee[2])),W.length&&(a="/"+W.join(".")+a),this.hostname=O.join(".");break}}}this.hostname.length>Am?this.hostname="":this.hostname=this.hostname.toLowerCase(),E||(this.hostname=xm.toASCII(this.hostname));var T=this.port?":"+this.port:"",y=this.hostname||"";this.host=y+T,this.href+=this.host,E&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),a[0]!=="/"&&(a="/"+a))}if(!_m[l])for(var d=0,C=cs.length;d<C;d++){var m=cs[d];if(a.indexOf(m)!==-1){var v=encodeURIComponent(m);v===m&&(v=escape(m)),a=a.split(m).join(v)}}var x=a.indexOf("#");x!==-1&&(this.hash=a.substr(x),a=a.slice(0,x));var A=a.indexOf("?");if(A!==-1?(this.search=a.substr(A),this.query=a.substr(A+1),e&&(this.query=ls.parse(this.query)),a=a.slice(0,A)):e&&(this.search="",this.query={}),a&&(this.pathname=a),ur[l]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var T=this.pathname||"",M=this.search||"";this.path=T+M}return this.href=this.format(),this};function Im(t){return typeof t=="string"&&(t=Gr(t)),t instanceof _e?t.format():_e.prototype.format.call(t)}_e.prototype.format=function(){var t=this.auth||"";t&&(t=encodeURIComponent(t),t=t.replace(/%3A/i,":"),t+="@");var e=this.protocol||"",r=this.pathname||"",n=this.hash||"",o=!1,i="";this.host?o=t+this.host:this.hostname&&(o=t+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(o+=":"+this.port)),this.query&&typeof this.query=="object"&&Object.keys(this.query).length&&(i=ls.stringify(this.query));var s=this.search||i&&"?"+i||"";return e&&e.substr(-1)!==":"&&(e+=":"),this.slashes||(!e||ur[e])&&o!==!1?(o="//"+(o||""),r&&r.charAt(0)!=="/"&&(r="/"+r)):o||(o=""),n&&n.charAt(0)!=="#"&&(n="#"+n),s&&s.charAt(0)!=="?"&&(s="?"+s),r=r.replace(/[?#]/g,function(a){return encodeURIComponent(a)}),s=s.replace("#","%23"),e+o+r+s+n};function Om(t,e){return Gr(t,!1,!0).resolve(e)}_e.prototype.resolve=function(t){return this.resolveObject(Gr(t,!1,!0)).format()};function Cm(t,e){return t?Gr(t,!1,!0).resolveObject(e):e}_e.prototype.resolveObject=function(t){if(typeof t=="string"){var e=new _e;e.parse(t,!1,!0),t=e}for(var r=new _e,n=Object.keys(this),o=0;o<n.length;o++){var i=n[o];r[i]=this[i]}if(r.hash=t.hash,t.href==="")return r.href=r.format(),r;if(t.slashes&&!t.protocol){for(var s=Object.keys(t),a=0;a<s.length;a++){var c=s[a];c!=="protocol"&&(r[c]=t[c])}return ur[r.protocol]&&r.hostname&&!r.pathname&&(r.pathname="/",r.path=r.pathname),r.href=r.format(),r}if(t.protocol&&t.protocol!==r.protocol){if(!ur[t.protocol]){for(var u=Object.keys(t),l=0;l<u.length;l++){var f=u[l];r[f]=t[f]}return r.href=r.format(),r}if(r.protocol=t.protocol,!t.host&&!us[t.protocol]){for(var C=(t.pathname||"").split("/");C.length&&!(t.host=C.shift()););t.host||(t.host=""),t.hostname||(t.hostname=""),C[0]!==""&&C.unshift(""),C.length<2&&C.unshift(""),r.pathname=C.join("/")}else r.pathname=t.pathname;if(r.search=t.search,r.query=t.query,r.host=t.host||"",r.auth=t.auth,r.hostname=t.hostname||t.host,r.port=t.port,r.pathname||r.search){var h=r.pathname||"",d=r.search||"";r.path=h+d}return r.slashes=r.slashes||t.slashes,r.href=r.format(),r}var b=r.pathname&&r.pathname.charAt(0)==="/",I=t.host||t.pathname&&t.pathname.charAt(0)==="/",D=I||b||r.host&&t.pathname,E=D,S=r.pathname&&r.pathname.split("/")||[],C=t.pathname&&t.pathname.split("/")||[],U=r.protocol&&!ur[r.protocol];if(U&&(r.hostname="",r.port=null,r.host&&(S[0]===""?S[0]=r.host:S.unshift(r.host)),r.host="",t.protocol&&(t.hostname=null,t.port=null,t.host&&(C[0]===""?C[0]=t.host:C.unshift(t.host)),t.host=null),D=D&&(C[0]===""||S[0]==="")),I)r.host=t.host||t.host===""?t.host:r.host,r.hostname=t.hostname||t.hostname===""?t.hostname:r.hostname,r.search=t.search,r.query=t.query,S=C;else if(C.length)S||(S=[]),S.pop(),S=S.concat(C),r.search=t.search,r.query=t.query;else if(t.search!=null){if(U){r.host=S.shift(),r.hostname=r.host;var j=r.host&&r.host.indexOf("@")>0?r.host.split("@"):!1;j&&(r.auth=j.shift(),r.hostname=j.shift(),r.host=r.hostname)}return r.search=t.search,r.query=t.query,(r.pathname!==null||r.search!==null)&&(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.href=r.format(),r}if(!S.length)return r.pathname=null,r.search?r.path="/"+r.search:r.path=null,r.href=r.format(),r;for(var k=S.slice(-1)[0],R=(r.host||t.host||S.length>1)&&(k==="."||k==="..")||k==="",O=0,W=S.length;W>=0;W--)k=S[W],k==="."?S.splice(W,1):k===".."?(S.splice(W,1),O++):O&&(S.splice(W,1),O--);if(!D&&!E)for(;O--;O)S.unshift("..");D&&S[0]!==""&&(!S[0]||S[0].charAt(0)!=="/")&&S.unshift(""),R&&S.join("/").substr(-1)!=="/"&&S.push("");var ee=S[0]===""||S[0]&&S[0].charAt(0)==="/";if(U){r.hostname=ee?"":S.length?S.shift():"",r.host=r.hostname;var j=r.host&&r.host.indexOf("@")>0?r.host.split("@"):!1;j&&(r.auth=j.shift(),r.hostname=j.shift(),r.host=r.hostname)}return D=D||r.host&&S.length,D&&!ee&&S.unshift(""),S.length>0?r.pathname=S.join("/"):(r.pathname=null,r.path=null),(r.pathname!==null||r.search!==null)&&(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.auth=t.auth||r.auth,r.slashes=r.slashes||t.slashes,r.href=r.format(),r};_e.prototype.parseHost=function(){var t=this.host,e=vm.exec(t);e&&(e=e[0],e!==":"&&(this.port=e.substr(1)),t=t.substr(0,t.length-e.length)),t&&(this.hostname=t)};lr.parse=Gr;lr.resolve=Om;lr.resolveObject=Cm;lr.format=Im;lr.Url=_e});var gl=P((qE,yl)=>{"use strict";yl.exports=t=>{let e=t.match(/^[ \t]*(?=\S)/gm);return e?e.reduce((r,n)=>Math.min(r,n.length),1/0):0}});var vl=P((HE,bl)=>{"use strict";bl.exports=(t,e,r,n)=>{if(!Buffer.isBuffer(t))throw new TypeError(`Expected a \`Buffer\`, got \`${typeof t}\``);if(!(typeof e=="string"&&e.length>0)||!(typeof r=="string"||typeof r=="function"))return t;n=Object.assign({fromIndex:0},n);let o=0,i=s=>{let a=o===0?n.fromIndex:0,c=s.indexOf(e,a);if(c===-1)return s;o++;let u=Buffer.from(typeof r=="string"?r:r(e,o,t)),l=Buffer.from(e),f=s.slice(0,c),h=i(s.slice(c+l.length)),d=c+u.length+h.length;return Buffer.concat([f,u,h],d)};return i(t)}});var Al=P((GE,El)=>{"use strict";El.exports=function(e){var r=typeof e;if(r==="string"||e instanceof String){if(!e.trim())return!1}else if(r!=="number"&&!(e instanceof Number))return!1;return e-e+1>=0}});var Il=P((KE,_l)=>{var Wm=Object.prototype.toString;_l.exports=function(e){if(e===void 0)return"undefined";if(e===null)return"null";var r=typeof e;if(r==="boolean")return"boolean";if(r==="string")return"string";if(r==="number")return"number";if(r==="symbol")return"symbol";if(r==="function")return Gm(e)?"generatorfunction":"function";if(qm(e))return"array";if(Ym(e))return"buffer";if(Jm(e))return"arguments";if(Hm(e))return"date";if(zm(e))return"error";if(Vm(e))return"regexp";switch(Tl(e)){case"Symbol":return"symbol";case"Promise":return"promise";case"WeakMap":return"weakmap";case"WeakSet":return"weakset";case"Map":return"map";case"Set":return"set";case"Int8Array":return"int8array";case"Uint8Array":return"uint8array";case"Uint8ClampedArray":return"uint8clampedarray";case"Int16Array":return"int16array";case"Uint16Array":return"uint16array";case"Int32Array":return"int32array";case"Uint32Array":return"uint32array";case"Float32Array":return"float32array";case"Float64Array":return"float64array"}if(Km(e))return"generator";switch(r=Wm.call(e),r){case"[object Object]":return"object";case"[object Map Iterator]":return"mapiterator";case"[object Set Iterator]":return"setiterator";case"[object String Iterator]":return"stringiterator";case"[object Array Iterator]":return"arrayiterator"}return r.slice(8,-1).toLowerCase().replace(/\s/g,"")};function Tl(t){return typeof t.constructor=="function"?t.constructor.name:null}function qm(t){return Array.isArray?Array.isArray(t):t instanceof Array}function zm(t){return t instanceof Error||typeof t.message=="string"&&t.constructor&&typeof t.constructor.stackTraceLimit=="number"}function Hm(t){return t instanceof Date?!0:typeof t.toDateString=="function"&&typeof t.getDate=="function"&&typeof t.setDate=="function"}function Vm(t){return t instanceof RegExp?!0:typeof t.flags=="string"&&typeof t.ignoreCase=="boolean"&&typeof t.multiline=="boolean"&&typeof t.global=="boolean"}function Gm(t,e){return Tl(t)==="GeneratorFunction"}function Km(t){return typeof t.throw=="function"&&typeof t.return=="function"&&typeof t.next=="function"}function Jm(t){try{if(typeof t.length=="number"&&typeof t.callee=="function")return!0}catch(e){if(e.message.indexOf("callee")!==-1)return!0}return!1}function Ym(t){return t.constructor&&typeof t.constructor.isBuffer=="function"?t.constructor.isBuffer(t):!1}});var Cl=P((JE,Ol)=>{Ol.exports=function(t){var e="Uint32Array"in t,r=t.crypto||t.msCrypto,n=r&&typeof r.getRandomValues=="function",o=e&&n;if(!o)return Math.random;var i=new Uint32Array(1),s=Math.pow(2,32);function a(){return r.getRandomValues(i),i[0]/s}return a.cryptographic=!0,a}(typeof self<"u"?self:window)});var Fl=P((YE,ms)=>{"use strict";var Zm=Al(),Ml=Il(),$l=Cl();ms.exports=Qm;ms.exports.isCrypto=!!$l.cryptographic;var We={lower:"abcdefghijklmnopqrstuvwxyz",upper:"ABCDEFGHIJKLMNOPQRSTUVWXYZ",number:"0123456789",special:"~!@#$%^&()_+-={}[];',."};We.all=We.lower+We.upper+We.number+We.special;function Qm(t,e,r){if(typeof t>"u")throw new Error("randomatic expects a string or number.");var n=!1;arguments.length===1&&(typeof t=="string"?e=t.length:Zm(t)&&(r={},e=t,t="*")),Ml(e)==="object"&&e.hasOwnProperty("chars")&&(r=e,t=r.chars,e=t.length,n=!0);var o=r||{},i="",s="";if(t.indexOf("?")!==-1&&(i+=o.chars),t.indexOf("a")!==-1&&(i+=We.lower),t.indexOf("A")!==-1&&(i+=We.upper),t.indexOf("0")!==-1&&(i+=We.number),t.indexOf("!")!==-1&&(i+=We.special),t.indexOf("*")!==-1&&(i+=We.all),n&&(i+=t),o.exclude){var a=Ml(o.exclude)==="string"?o.exclude:o.exclude.join("");a=a.replace(new RegExp("[\\]]+","g"),""),i=i.replace(new RegExp("["+a+"]+","g"),""),o.exclude.indexOf("]")!==-1&&(i=i.replace(new RegExp("[\\]]+","g"),""))}for(;e--;)s+=i.charAt(parseInt($l()*i.length,10));return s}});var _f=P((Zr,dr)=>{var fy=200,Jl="__lodash_hash_undefined__",Yl=9007199254740991,$s="[object Arguments]",py="[object Array]",Zl="[object Boolean]",Ql="[object Date]",hy="[object Error]",Fs="[object Function]",Xl="[object GeneratorFunction]",ho="[object Map]",ef="[object Number]",Ps="[object Object]",Ul="[object Promise]",tf="[object RegExp]",mo="[object Set]",rf="[object String]",nf="[object Symbol]",Ts="[object WeakMap]",of="[object ArrayBuffer]",yo="[object DataView]",sf="[object Float32Array]",af="[object Float64Array]",cf="[object Int8Array]",uf="[object Int16Array]",lf="[object Int32Array]",ff="[object Uint8Array]",pf="[object Uint8ClampedArray]",hf="[object Uint16Array]",df="[object Uint32Array]",dy=/[\\^$.*+?()[\]{}|]/g,my=/\w*$/,yy=/^\[object .+?Constructor\]$/,gy=/^(?:0|[1-9]\d*)$/,L={};L[$s]=L[py]=L[of]=L[yo]=L[Zl]=L[Ql]=L[sf]=L[af]=L[cf]=L[uf]=L[lf]=L[ho]=L[ef]=L[Ps]=L[tf]=L[mo]=L[rf]=L[nf]=L[ff]=L[pf]=L[hf]=L[df]=!0;L[hy]=L[Fs]=L[Ts]=!1;var xy=typeof global=="object"&&global&&global.Object===Object&&global,by=typeof self=="object"&&self&&self.Object===Object&&self,Ze=xy||by||Function("return this")(),mf=typeof Zr=="object"&&Zr&&!Zr.nodeType&&Zr,kl=mf&&typeof dr=="object"&&dr&&!dr.nodeType&&dr,vy=kl&&kl.exports===mf;function wy(t,e){return t.set(e[0],e[1]),t}function Sy(t,e){return t.add(e),t}function Ey(t,e){for(var r=-1,n=t?t.length:0;++r<n&&e(t[r],r,t)!==!1;);return t}function Ay(t,e){for(var r=-1,n=e.length,o=t.length;++r<n;)t[o+r]=e[r];return t}function yf(t,e,r,n){var o=-1,i=t?t.length:0;for(n&&i&&(r=t[++o]);++o<i;)r=e(r,t[o],o,t);return r}function Ty(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}function _y(t,e){return t?.[e]}function gf(t){var e=!1;if(t!=null&&typeof t.toString!="function")try{e=!!(t+"")}catch{}return e}function jl(t){var e=-1,r=Array(t.size);return t.forEach(function(n,o){r[++e]=[o,n]}),r}function Bs(t,e){return function(r){return t(e(r))}}function Ll(t){var e=-1,r=Array(t.size);return t.forEach(function(n){r[++e]=n}),r}var Iy=Array.prototype,Oy=Function.prototype,go=Object.prototype,As=Ze["__core-js_shared__"],Wl=function(){var t=/[^.]+$/.exec(As&&As.keys&&As.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),xf=Oy.toString,ct=go.hasOwnProperty,xo=go.toString,Cy=RegExp("^"+xf.call(ct).replace(dy,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ql=vy?Ze.Buffer:void 0,zl=Ze.Symbol,Hl=Ze.Uint8Array,My=Bs(Object.getPrototypeOf,Object),$y=Object.create,Fy=go.propertyIsEnumerable,Py=Iy.splice,Vl=Object.getOwnPropertySymbols,By=ql?ql.isBuffer:void 0,Dy=Bs(Object.keys,Object),_s=gr(Ze,"DataView"),Qr=gr(Ze,"Map"),Is=gr(Ze,"Promise"),Os=gr(Ze,"Set"),Cs=gr(Ze,"WeakMap"),Xr=gr(Object,"create"),Ny=Pt(_s),Ry=Pt(Qr),Uy=Pt(Is),ky=Pt(Os),jy=Pt(Cs),Gl=zl?zl.prototype:void 0,Kl=Gl?Gl.valueOf:void 0;function Ft(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function Ly(){this.__data__=Xr?Xr(null):{}}function Wy(t){return this.has(t)&&delete this.__data__[t]}function qy(t){var e=this.__data__;if(Xr){var r=e[t];return r===Jl?void 0:r}return ct.call(e,t)?e[t]:void 0}function zy(t){var e=this.__data__;return Xr?e[t]!==void 0:ct.call(e,t)}function Hy(t,e){var r=this.__data__;return r[t]=Xr&&e===void 0?Jl:e,this}Ft.prototype.clear=Ly;Ft.prototype.delete=Wy;Ft.prototype.get=qy;Ft.prototype.has=zy;Ft.prototype.set=Hy;function Qe(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function Vy(){this.__data__=[]}function Gy(t){var e=this.__data__,r=bo(e,t);if(r<0)return!1;var n=e.length-1;return r==n?e.pop():Py.call(e,r,1),!0}function Ky(t){var e=this.__data__,r=bo(e,t);return r<0?void 0:e[r][1]}function Jy(t){return bo(this.__data__,t)>-1}function Yy(t,e){var r=this.__data__,n=bo(r,t);return n<0?r.push([t,e]):r[n][1]=e,this}Qe.prototype.clear=Vy;Qe.prototype.delete=Gy;Qe.prototype.get=Ky;Qe.prototype.has=Jy;Qe.prototype.set=Yy;function mr(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function Zy(){this.__data__={hash:new Ft,map:new(Qr||Qe),string:new Ft}}function Qy(t){return vo(this,t).delete(t)}function Xy(t){return vo(this,t).get(t)}function eg(t){return vo(this,t).has(t)}function tg(t,e){return vo(this,t).set(t,e),this}mr.prototype.clear=Zy;mr.prototype.delete=Qy;mr.prototype.get=Xy;mr.prototype.has=eg;mr.prototype.set=tg;function yr(t){this.__data__=new Qe(t)}function rg(){this.__data__=new Qe}function ng(t){return this.__data__.delete(t)}function og(t){return this.__data__.get(t)}function ig(t){return this.__data__.has(t)}function sg(t,e){var r=this.__data__;if(r instanceof Qe){var n=r.__data__;if(!Qr||n.length<fy-1)return n.push([t,e]),this;r=this.__data__=new mr(n)}return r.set(t,e),this}yr.prototype.clear=rg;yr.prototype.delete=ng;yr.prototype.get=og;yr.prototype.has=ig;yr.prototype.set=sg;function ag(t,e){var r=Ns(t)||$g(t)?Ty(t.length,String):[],n=r.length,o=!!n;for(var i in t)(e||ct.call(t,i))&&!(o&&(i=="length"||Ig(i,n)))&&r.push(i);return r}function bf(t,e,r){var n=t[e];(!(ct.call(t,e)&&Ef(n,r))||r===void 0&&!(e in t))&&(t[e]=r)}function bo(t,e){for(var r=t.length;r--;)if(Ef(t[r][0],e))return r;return-1}function cg(t,e){return t&&vf(e,Rs(e),t)}function Ms(t,e,r,n,o,i,s){var a;if(n&&(a=i?n(t,o,i,s):n(t)),a!==void 0)return a;if(!wo(t))return t;var c=Ns(t);if(c){if(a=Ag(t),!e)return wg(t,a)}else{var u=$t(t),l=u==Fs||u==Xl;if(Pg(t))return dg(t,e);if(u==Ps||u==$s||l&&!i){if(gf(t))return i?t:{};if(a=Tg(l?{}:t),!e)return Sg(t,cg(a,t))}else{if(!L[u])return i?t:{};a=_g(t,u,Ms,e)}}s||(s=new yr);var f=s.get(t);if(f)return f;if(s.set(t,a),!c)var h=r?Eg(t):Rs(t);return Ey(h||t,function(d,b){h&&(b=d,d=t[b]),bf(a,b,Ms(d,e,r,n,b,t,s))}),a}function ug(t){return wo(t)?$y(t):{}}function lg(t,e,r){var n=e(t);return Ns(t)?n:Ay(n,r(t))}function fg(t){return xo.call(t)}function pg(t){if(!wo(t)||Cg(t))return!1;var e=Tf(t)||gf(t)?Cy:yy;return e.test(Pt(t))}function hg(t){if(!Sf(t))return Dy(t);var e=[];for(var r in Object(t))ct.call(t,r)&&r!="constructor"&&e.push(r);return e}function dg(t,e){if(e)return t.slice();var r=new t.constructor(t.length);return t.copy(r),r}function Ds(t){var e=new t.constructor(t.byteLength);return new Hl(e).set(new Hl(t)),e}function mg(t,e){var r=e?Ds(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.byteLength)}function yg(t,e,r){var n=e?r(jl(t),!0):jl(t);return yf(n,wy,new t.constructor)}function gg(t){var e=new t.constructor(t.source,my.exec(t));return e.lastIndex=t.lastIndex,e}function xg(t,e,r){var n=e?r(Ll(t),!0):Ll(t);return yf(n,Sy,new t.constructor)}function bg(t){return Kl?Object(Kl.call(t)):{}}function vg(t,e){var r=e?Ds(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.length)}function wg(t,e){var r=-1,n=t.length;for(e||(e=Array(n));++r<n;)e[r]=t[r];return e}function vf(t,e,r,n){r||(r={});for(var o=-1,i=e.length;++o<i;){var s=e[o],a=n?n(r[s],t[s],s,r,t):void 0;bf(r,s,a===void 0?t[s]:a)}return r}function Sg(t,e){return vf(t,wf(t),e)}function Eg(t){return lg(t,Rs,wf)}function vo(t,e){var r=t.__data__;return Og(e)?r[typeof e=="string"?"string":"hash"]:r.map}function gr(t,e){var r=_y(t,e);return pg(r)?r:void 0}var wf=Vl?Bs(Vl,Object):Ng,$t=fg;(_s&&$t(new _s(new ArrayBuffer(1)))!=yo||Qr&&$t(new Qr)!=ho||Is&&$t(Is.resolve())!=Ul||Os&&$t(new Os)!=mo||Cs&&$t(new Cs)!=Ts)&&($t=function(t){var e=xo.call(t),r=e==Ps?t.constructor:void 0,n=r?Pt(r):void 0;if(n)switch(n){case Ny:return yo;case Ry:return ho;case Uy:return Ul;case ky:return mo;case jy:return Ts}return e});function Ag(t){var e=t.length,r=t.constructor(e);return e&&typeof t[0]=="string"&&ct.call(t,"index")&&(r.index=t.index,r.input=t.input),r}function Tg(t){return typeof t.constructor=="function"&&!Sf(t)?ug(My(t)):{}}function _g(t,e,r,n){var o=t.constructor;switch(e){case of:return Ds(t);case Zl:case Ql:return new o(+t);case yo:return mg(t,n);case sf:case af:case cf:case uf:case lf:case ff:case pf:case hf:case df:return vg(t,n);case ho:return yg(t,n,r);case ef:case rf:return new o(t);case tf:return gg(t);case mo:return xg(t,n,r);case nf:return bg(t)}}function Ig(t,e){return e=e??Yl,!!e&&(typeof t=="number"||gy.test(t))&&t>-1&&t%1==0&&t<e}function Og(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}function Cg(t){return!!Wl&&Wl in t}function Sf(t){var e=t&&t.constructor,r=typeof e=="function"&&e.prototype||go;return t===r}function Pt(t){if(t!=null){try{return xf.call(t)}catch{}try{return t+""}catch{}}return""}function Mg(t){return Ms(t,!0,!0)}function Ef(t,e){return t===e||t!==t&&e!==e}function $g(t){return Fg(t)&&ct.call(t,"callee")&&(!Fy.call(t,"callee")||xo.call(t)==$s)}var Ns=Array.isArray;function Af(t){return t!=null&&Bg(t.length)&&!Tf(t)}function Fg(t){return Dg(t)&&Af(t)}var Pg=By||Rg;function Tf(t){var e=wo(t)?xo.call(t):"";return e==Fs||e==Xl}function Bg(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=Yl}function wo(t){var e=typeof t;return!!t&&(e=="object"||e=="function")}function Dg(t){return!!t&&typeof t=="object"}function Rs(t){return Af(t)?ag(t):hg(t)}function Ng(){return[]}function Rg(){return!1}dr.exports=Mg});var Of=P((fA,If)=>{"use strict";If.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(i){return function(s){return function(a,c){var u={key:a,value:s[a]},l={key:c,value:s[c]};return i(u,l)}}}(e.cmp),o=[];return function i(s){if(s&&s.toJSON&&typeof s.toJSON=="function"&&(s=s.toJSON()),s!==void 0){if(typeof s=="number")return isFinite(s)?""+s:"null";if(typeof s!="object")return JSON.stringify(s);var a,c;if(Array.isArray(s)){for(c="[",a=0;a<s.length;a++)a&&(c+=","),c+=i(s[a])||"null";return c+"]"}if(s===null)return"null";if(o.indexOf(s)!==-1){if(r)return JSON.stringify("__cycle__");throw new TypeError("Converting circular structure to JSON")}var u=o.push(s)-1,l=Object.keys(s).sort(n&&n(s));for(c="",a=0;a<l.length;a++){var f=l[a],h=i(s[f]);h&&(c&&(c+=","),c+=JSON.stringify(f)+":"+h)}return o.splice(u,1),"{"+c+"}"}}(t)}});var Bf=P((pA,Pf)=>{function Ug(t,e){return JSON.stringify(t,Cf,e)}function kg(t){return JSON.parse(t,Mf)}function Cf(t,e){return $f(e)&&Us(e.data)&&(e.data.length>0?e.data="base64:"+Buffer.from(e.data).toString("base64"):e.data=""),e}function Mf(t,e){if($f(e)){if(Us(e.data))return Buffer.from(e.data);if(Ff(e.data))return e.data.startsWith("base64:")?Buffer.from(e.data.slice(7),"base64"):Buffer.from(e.data)}return e}function $f(t){return jg(t)&&t.type==="Buffer"&&(Us(t.data)||Ff(t.data))}function Us(t){return Array.isArray(t)}function Ff(t){return typeof t=="string"}function jg(t){return typeof t=="object"&&t!==null}Pf.exports={stringify:Ug,parse:kg,replacer:Cf,reviver:Mf}});var nn=globalThis,on=nn.ShadowRoot&&(nn.ShadyCSS===void 0||nn.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Oo=Symbol(),ea=new WeakMap,wr=class{constructor(e,r,n){if(this._$cssResult$=!0,n!==Oo)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(on&&e===void 0){let n=r!==void 0&&r.length===1;n&&(e=ea.get(r)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),n&&ea.set(r,e))}return e}toString(){return this.cssText}},sn=t=>new wr(typeof t=="string"?t:t+"",void 0,Oo),Me=(t,...e)=>{let r=t.length===1?t[0]:e.reduce((n,o,i)=>n+(s=>{if(s._$cssResult$===!0)return s.cssText;if(typeof s=="number")return s;throw Error("Value passed to 'css' function must be a 'css' function result: "+s+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(o)+t[i+1],t[0]);return new wr(r,t,Oo)},Co=(t,e)=>{if(on)t.adoptedStyleSheets=e.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet);else for(let r of e){let n=document.createElement("style"),o=nn.litNonce;o!==void 0&&n.setAttribute("nonce",o),n.textContent=r.cssText,t.appendChild(n)}},an=on?t=>t:t=>t instanceof CSSStyleSheet?(e=>{let r="";for(let n of e.cssRules)r+=n.cssText;return sn(r)})(t):t;var{is:Zf,defineProperty:Qf,getOwnPropertyDescriptor:Xf,getOwnPropertyNames:ep,getOwnPropertySymbols:tp,getPrototypeOf:rp}=Object,cn=globalThis,ta=cn.trustedTypes,np=ta?ta.emptyScript:"",op=cn.reactiveElementPolyfillSupport,Sr=(t,e)=>t,Er={toAttribute(t,e){switch(e){case Boolean:t=t?np: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}},un=(t,e)=>!Zf(t,e),ra={attribute:!0,type:String,converter:Er,reflect:!1,hasChanged:un};Symbol.metadata??=Symbol("metadata"),cn.litPropertyMetadata??=new WeakMap;var qe=class extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??=[]).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,r=ra){if(r.state&&(r.attribute=!1),this._$Ei(),this.elementProperties.set(e,r),!r.noAccessor){let n=Symbol(),o=this.getPropertyDescriptor(e,n,r);o!==void 0&&Qf(this.prototype,e,o)}}static getPropertyDescriptor(e,r,n){let{get:o,set:i}=Xf(this.prototype,e)??{get(){return this[r]},set(s){this[r]=s}};return{get(){return o?.call(this)},set(s){let a=o?.call(this);i.call(this,s),this.requestUpdate(e,a,n)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??ra}static _$Ei(){if(this.hasOwnProperty(Sr("elementProperties")))return;let e=rp(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(Sr("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Sr("properties"))){let r=this.properties,n=[...ep(r),...tp(r)];for(let o of n)this.createProperty(o,r[o])}let e=this[Symbol.metadata];if(e!==null){let r=litPropertyMetadata.get(e);if(r!==void 0)for(let[n,o]of r)this.elementProperties.set(n,o)}this._$Eh=new Map;for(let[r,n]of this.elementProperties){let o=this._$Eu(r,n);o!==void 0&&this._$Eh.set(o,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 o of n)r.unshift(an(o))}else e!==void 0&&r.push(an(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 Co(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)}_$EC(e,r){let n=this.constructor.elementProperties.get(e),o=this.constructor._$Eu(e,n);if(o!==void 0&&n.reflect===!0){let i=(n.converter?.toAttribute!==void 0?n.converter:Er).toAttribute(r,n.type);this._$Em=e,i==null?this.removeAttribute(o):this.setAttribute(o,i),this._$Em=null}}_$AK(e,r){let n=this.constructor,o=n._$Eh.get(e);if(o!==void 0&&this._$Em!==o){let i=n.getPropertyOptions(o),s=typeof i.converter=="function"?{fromAttribute:i.converter}:i.converter?.fromAttribute!==void 0?i.converter:Er;this._$Em=o,this[o]=s.fromAttribute(r,i.type),this._$Em=null}}requestUpdate(e,r,n){if(e!==void 0){if(n??=this.constructor.getPropertyOptions(e),!(n.hasChanged??un)(this[e],r))return;this.P(e,r,n)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(e,r,n){this._$AL.has(e)||this._$AL.set(e,r),n.reflect===!0&&this._$Em!==e&&(this._$Ej??=new Set).add(e)}async _$ET(){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[o,i]of this._$Ep)this[o]=i;this._$Ep=void 0}let n=this.constructor.elementProperties;if(n.size>0)for(let[o,i]of n)i.wrapped!==!0||this._$AL.has(o)||this[o]===void 0||this.P(o,this[o],i)}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._$EU()}catch(n){throw e=!1,this._$EU(),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)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Ej&&=this._$Ej.forEach(r=>this._$EC(r,this[r])),this._$EU()}updated(e){}firstUpdated(e){}};qe.elementStyles=[],qe.shadowRootOptions={mode:"open"},qe[Sr("elementProperties")]=new Map,qe[Sr("finalized")]=new Map,op?.({ReactiveElement:qe}),(cn.reactiveElementVersions??=[]).push("2.0.4");var No=globalThis,ln=No.trustedTypes,na=ln?ln.createPolicy("lit-html",{createHTML:t=>t}):void 0,ua="$lit$",et=`lit$${Math.random().toFixed(9).slice(2)}$`,la="?"+et,ip=`<${la}>`,dt=document,Tr=()=>dt.createComment(""),_r=t=>t===null||typeof t!="object"&&typeof t!="function",Ro=Array.isArray,sp=t=>Ro(t)||typeof t?.[Symbol.iterator]=="function",Mo=`[
6
- \f\r]`,Ar=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,oa=/-->/g,ia=/>/g,pt=RegExp(`>|${Mo}(?:([^\\s"'>=/]+)(${Mo}*=${Mo}*(?:[^
7
- \f\r"'\`<>=]|("|')|))|$)`,"g"),sa=/'/g,aa=/"/g,fa=/^(?:script|style|textarea|title)$/i,Uo=t=>(e,...r)=>({_$litType$:t,strings:e,values:r}),xe=Uo(1),h0=Uo(2),d0=Uo(3),mt=Symbol.for("lit-noChange"),se=Symbol.for("lit-nothing"),ca=new WeakMap,ht=dt.createTreeWalker(dt,129);function pa(t,e){if(!Ro(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return na!==void 0?na.createHTML(e):e}var ap=(t,e)=>{let r=t.length-1,n=[],o,i=e===2?"<svg>":e===3?"<math>":"",s=Ar;for(let a=0;a<r;a++){let c=t[a],u,l,f=-1,h=0;for(;h<c.length&&(s.lastIndex=h,l=s.exec(c),l!==null);)h=s.lastIndex,s===Ar?l[1]==="!--"?s=oa:l[1]!==void 0?s=ia:l[2]!==void 0?(fa.test(l[2])&&(o=RegExp("</"+l[2],"g")),s=pt):l[3]!==void 0&&(s=pt):s===pt?l[0]===">"?(s=o??Ar,f=-1):l[1]===void 0?f=-2:(f=s.lastIndex-l[2].length,u=l[1],s=l[3]===void 0?pt:l[3]==='"'?aa:sa):s===aa||s===sa?s=pt:s===oa||s===ia?s=Ar:(s=pt,o=void 0);let d=s===pt&&t[a+1].startsWith("/>")?" ":"";i+=s===Ar?c+ip:f>=0?(n.push(u),c.slice(0,f)+ua+c.slice(f)+et+d):c+et+(f===-2?a:d)}return[pa(t,i+(t[r]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),n]},Ir=class t{constructor({strings:e,_$litType$:r},n){let o;this.parts=[];let i=0,s=0,a=e.length-1,c=this.parts,[u,l]=ap(e,r);if(this.el=t.createElement(u,n),ht.currentNode=this.el.content,r===2||r===3){let f=this.el.content.firstChild;f.replaceWith(...f.childNodes)}for(;(o=ht.nextNode())!==null&&c.length<a;){if(o.nodeType===1){if(o.hasAttributes())for(let f of o.getAttributeNames())if(f.endsWith(ua)){let h=l[s++],d=o.getAttribute(f).split(et),b=/([.?@])?(.*)/.exec(h);c.push({type:1,index:i,name:b[2],strings:d,ctor:b[1]==="."?Fo:b[1]==="?"?Po:b[1]==="@"?Bo:Ut}),o.removeAttribute(f)}else f.startsWith(et)&&(c.push({type:6,index:i}),o.removeAttribute(f));if(fa.test(o.tagName)){let f=o.textContent.split(et),h=f.length-1;if(h>0){o.textContent=ln?ln.emptyScript:"";for(let d=0;d<h;d++)o.append(f[d],Tr()),ht.nextNode(),c.push({type:2,index:++i});o.append(f[h],Tr())}}}else if(o.nodeType===8)if(o.data===la)c.push({type:2,index:i});else{let f=-1;for(;(f=o.data.indexOf(et,f+1))!==-1;)c.push({type:7,index:i}),f+=et.length-1}i++}}static createElement(e,r){let n=dt.createElement("template");return n.innerHTML=e,n}};function Rt(t,e,r=t,n){if(e===mt)return e;let o=n!==void 0?r._$Co?.[n]:r._$Cl,i=_r(e)?void 0:e._$litDirective$;return o?.constructor!==i&&(o?._$AO?.(!1),i===void 0?o=void 0:(o=new i(t),o._$AT(t,r,n)),n!==void 0?(r._$Co??=[])[n]=o:r._$Cl=o),o!==void 0&&(e=Rt(t,o._$AS(t,e.values),o,n)),e}var $o=class{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,o=(e?.creationScope??dt).importNode(r,!0);ht.currentNode=o;let i=ht.nextNode(),s=0,a=0,c=n[0];for(;c!==void 0;){if(s===c.index){let u;c.type===2?u=new Or(i,i.nextSibling,this,e):c.type===1?u=new c.ctor(i,c.name,c.strings,this,e):c.type===6&&(u=new Do(i,this,e)),this._$AV.push(u),c=n[++a]}s!==c?.index&&(i=ht.nextNode(),s++)}return ht.currentNode=dt,o}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++}},Or=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,r,n,o){this.type=2,this._$AH=se,this._$AN=void 0,this._$AA=e,this._$AB=r,this._$AM=n,this.options=o,this._$Cv=o?.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=Rt(this,e,r),_r(e)?e===se||e==null||e===""?(this._$AH!==se&&this._$AR(),this._$AH=se):e!==this._$AH&&e!==mt&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):sp(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!==se&&_r(this._$AH)?this._$AA.nextSibling.data=e:this.T(dt.createTextNode(e)),this._$AH=e}$(e){let{values:r,_$litType$:n}=e,o=typeof n=="number"?this._$AC(e):(n.el===void 0&&(n.el=Ir.createElement(pa(n.h,n.h[0]),this.options)),n);if(this._$AH?._$AD===o)this._$AH.p(r);else{let i=new $o(o,this),s=i.u(this.options);i.p(r),this.T(s),this._$AH=i}}_$AC(e){let r=ca.get(e.strings);return r===void 0&&ca.set(e.strings,r=new Ir(e)),r}k(e){Ro(this._$AH)||(this._$AH=[],this._$AR());let r=this._$AH,n,o=0;for(let i of e)o===r.length?r.push(n=new t(this.O(Tr()),this.O(Tr()),this,this.options)):n=r[o],n._$AI(i),o++;o<r.length&&(this._$AR(n&&n._$AB.nextSibling,o),r.length=o)}_$AR(e=this._$AA.nextSibling,r){for(this._$AP?.(!1,!0,r);e&&e!==this._$AB;){let n=e.nextSibling;e.remove(),e=n}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},Ut=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,r,n,o,i){this.type=1,this._$AH=se,this._$AN=void 0,this.element=e,this.name=r,this._$AM=o,this.options=i,n.length>2||n[0]!==""||n[1]!==""?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=se}_$AI(e,r=this,n,o){let i=this.strings,s=!1;if(i===void 0)e=Rt(this,e,r,0),s=!_r(e)||e!==this._$AH&&e!==mt,s&&(this._$AH=e);else{let a=e,c,u;for(e=i[0],c=0;c<i.length-1;c++)u=Rt(this,a[n+c],r,c),u===mt&&(u=this._$AH[c]),s||=!_r(u)||u!==this._$AH[c],u===se?e=se:e!==se&&(e+=(u??"")+i[c+1]),this._$AH[c]=u}s&&!o&&this.j(e)}j(e){e===se?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},Fo=class extends Ut{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===se?void 0:e}},Po=class extends Ut{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==se)}},Bo=class extends Ut{constructor(e,r,n,o,i){super(e,r,n,o,i),this.type=5}_$AI(e,r=this){if((e=Rt(this,e,r,0)??se)===mt)return;let n=this._$AH,o=e===se&&n!==se||e.capture!==n.capture||e.once!==n.once||e.passive!==n.passive,i=e!==se&&(n===se||o);o&&this.element.removeEventListener(this.name,this,n),i&&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)}},Do=class{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){Rt(this,e)}};var cp=No.litHtmlPolyfillSupport;cp?.(Ir,Or),(No.litHtmlVersions??=[]).push("3.2.1");var ha=(t,e,r)=>{let n=r?.renderBefore??e,o=n._$litPart$;if(o===void 0){let i=r?.renderBefore??null;n._$litPart$=o=new Or(e.insertBefore(Tr(),i),i,void 0,r??{})}return o._$AI(t),o};var he=class extends qe{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=ha(r,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return mt}};he._$litElement$=!0,he.finalized=!0,globalThis.litElementHydrateSupport?.({LitElement:he});var up=globalThis.litElementPolyfillSupport;up?.({LitElement:he});(globalThis.litElementVersions??=[]).push("4.1.1");var fn=sn('system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif');var Ne=t=>(e,r)=>{r!==void 0?r.addInitializer(()=>{customElements.define(t,e)}):customElements.define(t,e)};var lp={attribute:!0,type:String,converter:Er,reflect:!1,hasChanged:un},fp=(t=lp,e,r)=>{let{kind:n,metadata:o}=r,i=globalThis.litPropertyMetadata.get(o);if(i===void 0&&globalThis.litPropertyMetadata.set(o,i=new Map),i.set(r.name,t),n==="accessor"){let{name:s}=r;return{set(a){let c=e.get.call(this);e.set.call(this,a),this.requestUpdate(s,c,t)},init(a){return a!==void 0&&this.P(s,void 0,t),a}}}if(n==="setter"){let{name:s}=r;return function(a){let c=this[s];e.call(this,a),this.requestUpdate(s,c,t)}}throw Error("Unsupported decorator location: "+n)};function ze(t){return(e,r)=>typeof r=="object"?fp(t,e,r):((n,o,i)=>{let s=o.hasOwnProperty(i);return o.constructor.createProperty(i,s?{...n,wrapped:!0}:n),s?Object.getOwnPropertyDescriptor(o,i):void 0})(t,e,r)}var To={};Z(To,{TypedHandler:()=>Js,TypedRequest:()=>Qs,TypedResponseError:()=>Dt,TypedRouter:()=>Ys,TypedTarget:()=>Zs});var zf=be(ko(),1);var Re={};Z(Re,{AsyncExecutionStack:()=>Si,FastMap:()=>Ur,Interest:()=>kr,InterestMap:()=>Ei,LimitedArray:()=>Ai,LoopTracker:()=>Ti,ObjectMap:()=>At,Stringmap:()=>_i,TimedAggregtor:()=>Ii,Tree:()=>Oi,uni:()=>pc});var Y={};Z(Y,{Timeout:()=>mn,delayFor:()=>kt,delayForRandom:()=>mp});var jo=class{claim(){if(this.claimed)throw new Error("Deferred already claimed");this.claimed=!0}get duration(){return this.stoppedAt?this.stoppedAt-this.startedAt:Date.now()-this.startedAt}constructor(){this.claimed=!1,this.promise=new Promise((e,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"})}},dn=()=>new jo;var kt=async(t,e,r=!1)=>(await new mn(t,null,r).promise,e),mp=async(t,e,r,n=!1)=>(await kt(Math.random()*(e-t)+t,null,n),r),mn=class{constructor(e,r,n=!1){this._cancelled=!1,this.timeoutInMillis=e,this._deferred=dn(),this.promise=this._deferred.promise,this._timeout=setTimeout(()=>{this._cancelled||this._deferred.resolve(r)},e),this.started=Date.now(),n&&this.makeUnrefed()}makeUnrefed(){this._timeout.unref()}cancel(){this._cancelled=!0,clearTimeout(this._timeout)}getTimeLeft(){let e=this.started+this.timeoutInMillis-Date.now();return e>0?e:0}};var gn={};Z(gn,{SmartMatch:()=>qo});var yn={};Z(yn,{isMatch:()=>xp,matcher:()=>gp});function Lo(t){if(typeof t!="string")throw new TypeError("Expected a string");return t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}var Wo=new Map,ma=(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})},yp=(t,e)=>{e={caseSensitive:!1,...e};let r=t+JSON.stringify(e);if(Wo.has(r))return Wo.get(r);let n=t[0]==="!";n&&(t=t.slice(1)),t=Lo(t).replace(/\\\*/g,"[\\s\\S]*");let o=new RegExp(`^${t}$`,e.caseSensitive?"":"i");return o.negated=n,Wo.set(r,o),o},ya=(t,e,r,n)=>{if(t=ma(t,"inputs"),e=ma(e,"patterns"),e.length===0)return[];e=e.map(s=>yp(s,r));let{allPatterns:o}=r||{},i=[];for(let s of t){let a,c=[...e].fill(!1);for(let[u,l]of e.entries())if(l.test(s)&&(c[u]=!0,a=!l.negated,!a))break;if(!(a===!1||a===void 0&&e.some(u=>!u.negated)||o&&c.some((u,l)=>!u&&!e[l].negated))&&(i.push(s),n))break}return i};function gp(t,e,r){return ya(t,e,r,!1)}function xp(t,e,r){return ya(t,e,r,!0).length>0}var qo=class{constructor(e){this.wildcard=e}match(e){return yn.isMatch(e,this.wildcard)}};var K={};Z(K,{CumulativeDeferred:()=>bn,Deferred:()=>xn,cumulativeDefer:()=>vp,defer:()=>Cr,getFirstTrueOrFalse:()=>Tp,map:()=>Ep,rejectedPromise:()=>Sp,resolvedPromise:()=>wp,timeoutAndContinue:()=>Ap,timeoutWrap:()=>ga});var xn=class{claim(){if(this.claimed)throw new Error("Deferred already claimed");this.claimed=!0}get duration(){return this.stoppedAt?this.stoppedAt-this.startedAt:Date.now()-this.startedAt}constructor(){this.claimed=!1,this.promise=new Promise((e,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"})}},Cr=()=>new xn;var bn=class{constructor(){this.accumulatedPromises=[],this.deferred=Cr(),this.promise=this.deferred.promise,setTimeout(async()=>{for(;this.accumulatedPromises.length>0;)await this.accumulatedPromises.shift();this.deferred.resolve()},0)}addPromise(e){this.accumulatedPromises.push(e)}},vp=()=>new bn;var wp=t=>Promise.resolve(t),Sp=t=>Promise.reject(t),Ep=async(t,e)=>{let r=[],n=[];for(let o of t){let i=e(o);r.push(i),i.then(s=>{n.push(s)})}return await Promise.all(r),n},ga=async(t,e,r=!0)=>new Promise((n,o)=>{setTimeout(()=>{r?o(new Error("timeout")):n(null)},e),t.then(n,o)}),Ap=async(t,e=6e4)=>ga(t,e,!1),Tp=async t=>{let e=Cr();for(let r of t)r.then(n=>{n===!0&&e.resolve(!0)});return Promise.all(t).then(()=>{e.resolve(!1)}),e.promise};var St={};Z(St,{ObservableIntake:()=>ii,Observablemap:()=>oi,rxjs:()=>Nr});var Nr={};Z(Nr,{Observable:()=>H,ReplaySubject:()=>Jo,Subject:()=>Ve,Subscription:()=>Fe,from:()=>Br,fromEvent:()=>wt,ops:()=>Zp});var zo=function(t,e){return zo=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(r[o]=n[o])},zo(t,e)};function de(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");zo(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}function xa(t,e,r,n){function o(i){return i instanceof r?i:new r(function(s){s(i)})}return new(r||(r=Promise))(function(i,s){function a(l){try{u(n.next(l))}catch(f){s(f)}}function c(l){try{u(n.throw(l))}catch(f){s(f)}}function u(l){l.done?i(l.value):o(l.value).then(a,c)}u((n=n.apply(t,e||[])).next())})}function vn(t,e){var r={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,o,i,s;return s={next:a(0),throw:a(1),return:a(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function a(u){return function(l){return c([u,l])}}function c(u){if(n)throw new TypeError("Generator is already executing.");for(;s&&(s=0,u[0]&&(r=0)),r;)try{if(n=1,o&&(i=u[0]&2?o.return:u[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,u[1])).done)return i;switch(o=0,i&&(u=[u[0]&2,i.value]),u[0]){case 0:case 1:i=u;break;case 4:return r.label++,{value:u[1],done:!1};case 5:r.label++,o=u[1],u=[0];continue;case 7:u=r.ops.pop(),r.trys.pop();continue;default:if(i=r.trys,!(i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]<i[3])){r.label=u[1];break}if(u[0]===6&&r.label<i[1]){r.label=i[1],i=u;break}if(i&&r.label<i[2]){r.label=i[2],r.ops.push(u);break}i[2]&&r.ops.pop(),r.trys.pop();continue}u=e.call(t,r)}catch(l){u=[6,l],o=0}finally{n=i=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}function He(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:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function Se(t,e){var r=typeof Symbol=="function"&&t[Symbol.iterator];if(!r)return t;var n=r.call(t),o,i=[],s;try{for(;(e===void 0||e-- >0)&&!(o=n.next()).done;)i.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(s)throw s.error}}return i}function $e(t,e,r){if(r||arguments.length===2)for(var n=0,o=e.length,i;n<o;n++)(i||!(n in e))&&(i||(i=Array.prototype.slice.call(e,0,n)),i[n]=e[n]);return t.concat(i||Array.prototype.slice.call(e))}function yt(t){return this instanceof yt?(this.v=t,this):new yt(t)}function ba(t,e,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=r.apply(t,e||[]),o,i=[];return o={},s("next"),s("throw"),s("return"),o[Symbol.asyncIterator]=function(){return this},o;function s(h){n[h]&&(o[h]=function(d){return new Promise(function(b,I){i.push([h,d,b,I])>1||a(h,d)})})}function a(h,d){try{c(n[h](d))}catch(b){f(i[0][3],b)}}function c(h){h.value instanceof yt?Promise.resolve(h.value.v).then(u,l):f(i[0][2],h)}function u(h){a("next",h)}function l(h){a("throw",h)}function f(h,d){h(d),i.shift(),i.length&&a(i[0][0],i[0][1])}}function va(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 He=="function"?He(t):t[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(i){r[i]=t[i]&&function(s){return new Promise(function(a,c){s=t[i](s),o(a,c,s.done,s.value)})}}function o(i,s,a,c){Promise.resolve(c).then(function(u){i({value:u,done:a})},s)}}function F(t){return typeof t=="function"}function wn(t){var e=function(n){Error.call(n),n.stack=new Error().stack},r=t(e);return r.prototype=Object.create(Error.prototype),r.prototype.constructor=r,r}var Sn=wn(function(t){return function(r){t(this),this.message=r?r.length+` errors occurred during unsubscription:
8
- `+r.map(function(n,o){return o+1+") "+n.toString()}).join(`
9
- `):"",this.name="UnsubscriptionError",this.errors=r}});function gt(t,e){if(t){var r=t.indexOf(e);0<=r&&t.splice(r,1)}}var Fe=function(){function t(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}return t.prototype.unsubscribe=function(){var e,r,n,o,i;if(!this.closed){this.closed=!0;var s=this._parentage;if(s)if(this._parentage=null,Array.isArray(s))try{for(var a=He(s),c=a.next();!c.done;c=a.next()){var u=c.value;u.remove(this)}}catch(I){e={error:I}}finally{try{c&&!c.done&&(r=a.return)&&r.call(a)}finally{if(e)throw e.error}}else s.remove(this);var l=this.initialTeardown;if(F(l))try{l()}catch(I){i=I instanceof Sn?I.errors:[I]}var f=this._finalizers;if(f){this._finalizers=null;try{for(var h=He(f),d=h.next();!d.done;d=h.next()){var b=d.value;try{wa(b)}catch(I){i=i??[],I instanceof Sn?i=$e($e([],Se(i)),Se(I.errors)):i.push(I)}}}catch(I){n={error:I}}finally{try{d&&!d.done&&(o=h.return)&&o.call(h)}finally{if(n)throw n.error}}}if(i)throw new Sn(i)}},t.prototype.add=function(e){var r;if(e&&e!==this)if(this.closed)wa(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)&&gt(r,e)},t.prototype.remove=function(e){var r=this._finalizers;r&&gt(r,e),e instanceof t&&e._removeParent(this)},t.EMPTY=function(){var e=new t;return e.closed=!0,e}(),t}();var Ho=Fe.EMPTY;function En(t){return t instanceof Fe||t&&"closed"in t&&F(t.remove)&&F(t.add)&&F(t.unsubscribe)}function wa(t){F(t)?t():t.unsubscribe()}var Pe={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var jt={setTimeout:function(t,e){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var o=jt.delegate;return o?.setTimeout?o.setTimeout.apply(o,$e([t,e],Se(r))):setTimeout.apply(void 0,$e([t,e],Se(r)))},clearTimeout:function(t){var e=jt.delegate;return(e?.clearTimeout||clearTimeout)(t)},delegate:void 0};function An(t){jt.setTimeout(function(){var e=Pe.onUnhandledError;if(e)e(t);else throw t})}function xt(){}var Sa=function(){return Vo("C",void 0,void 0)}();function Ea(t){return Vo("E",void 0,t)}function Aa(t){return Vo("N",t,void 0)}function Vo(t,e,r){return{kind:t,value:e,error:r}}var bt=null;function Lt(t){if(Pe.useDeprecatedSynchronousErrorHandling){var e=!bt;if(e&&(bt={errorThrown:!1,error:null}),t(),e){var r=bt,n=r.errorThrown,o=r.error;if(bt=null,n)throw o}}else t()}function Ta(t){Pe.useDeprecatedSynchronousErrorHandling&&bt&&(bt.errorThrown=!0,bt.error=t)}var Mr=function(t){de(e,t);function e(r){var n=t.call(this)||this;return n.isStopped=!1,r?(n.destination=r,En(r)&&r.add(n)):n.destination=Mp,n}return e.create=function(r,n,o){return new _n(r,n,o)},e.prototype.next=function(r){this.isStopped?Ko(Aa(r),this):this._next(r)},e.prototype.error=function(r){this.isStopped?Ko(Ea(r),this):(this.isStopped=!0,this._error(r))},e.prototype.complete=function(){this.isStopped?Ko(Sa,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}(Fe);var Ip=Function.prototype.bind;function Go(t,e){return Ip.call(t,e)}var Op=function(){function t(e){this.partialObserver=e}return t.prototype.next=function(e){var r=this.partialObserver;if(r.next)try{r.next(e)}catch(n){Tn(n)}},t.prototype.error=function(e){var r=this.partialObserver;if(r.error)try{r.error(e)}catch(n){Tn(n)}else Tn(e)},t.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(r){Tn(r)}},t}(),_n=function(t){de(e,t);function e(r,n,o){var i=t.call(this)||this,s;if(F(r)||!r)s={next:r??void 0,error:n??void 0,complete:o??void 0};else{var a;i&&Pe.useDeprecatedNextContext?(a=Object.create(r),a.unsubscribe=function(){return i.unsubscribe()},s={next:r.next&&Go(r.next,a),error:r.error&&Go(r.error,a),complete:r.complete&&Go(r.complete,a)}):s=r}return i.destination=new Op(s),i}return e}(Mr);function Tn(t){Pe.useDeprecatedSynchronousErrorHandling?Ta(t):An(t)}function Cp(t){throw t}function Ko(t,e){var r=Pe.onStoppedNotification;r&&jt.setTimeout(function(){return r(t,e)})}var Mp={closed:!0,next:xt,error:Cp,complete:xt};var Wt=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function In(t){return t}function _a(t){return t.length===0?In:t.length===1?t[0]:function(r){return t.reduce(function(n,o){return o(n)},r)}}var H=function(){function t(e){e&&(this._subscribe=e)}return 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 o=this,i=Fp(e)?e:new _n(e,r,n);return Lt(function(){var s=o,a=s.operator,c=s.source;i.add(a?a.call(i,c):c?o._subscribe(i):o._trySubscribe(i))}),i},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=Ia(r),new r(function(o,i){var s=new _n({next:function(a){try{e(a)}catch(c){i(c),s.unsubscribe()}},error:i,complete:o});n.subscribe(s)})},t.prototype._subscribe=function(e){var r;return(r=this.source)===null||r===void 0?void 0:r.subscribe(e)},t.prototype[Wt]=function(){return this},t.prototype.pipe=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return _a(e)(this)},t.prototype.toPromise=function(e){var r=this;return e=Ia(e),new e(function(n,o){var i;r.subscribe(function(s){return i=s},function(s){return o(s)},function(){return n(i)})})},t.create=function(e){return new t(e)},t}();function Ia(t){var e;return(e=t??Pe.Promise)!==null&&e!==void 0?e:Promise}function $p(t){return t&&F(t.next)&&F(t.error)&&F(t.complete)}function Fp(t){return t&&t instanceof Mr||$p(t)&&En(t)}function Pp(t){return F(t?.lift)}function Q(t){return function(e){if(Pp(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")}}function ne(t,e,r,n,o){return new Bp(t,e,r,n,o)}var Bp=function(t){de(e,t);function e(r,n,o,i,s,a){var c=t.call(this,r)||this;return c.onFinalize=s,c.shouldUnsubscribe=a,c._next=n?function(u){try{n(u)}catch(l){r.error(l)}}:t.prototype._next,c._error=i?function(u){try{i(u)}catch(l){r.error(l)}finally{this.unsubscribe()}}:t.prototype._error,c._complete=o?function(){try{o()}catch(u){r.error(u)}finally{this.unsubscribe()}}:t.prototype._complete,c}return 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}(Mr);var Oa=wn(function(t){return function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}});var Ve=function(t){de(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 e.prototype.lift=function(r){var n=new Ca(this,this);return n.operator=r,n},e.prototype._throwIfClosed=function(){if(this.closed)throw new Oa},e.prototype.next=function(r){var n=this;Lt(function(){var o,i;if(n._throwIfClosed(),!n.isStopped){n.currentObservers||(n.currentObservers=Array.from(n.observers));try{for(var s=He(n.currentObservers),a=s.next();!a.done;a=s.next()){var c=a.value;c.next(r)}}catch(u){o={error:u}}finally{try{a&&!a.done&&(i=s.return)&&i.call(s)}finally{if(o)throw o.error}}}})},e.prototype.error=function(r){var n=this;Lt(function(){if(n._throwIfClosed(),!n.isStopped){n.hasError=n.isStopped=!0,n.thrownError=r;for(var o=n.observers;o.length;)o.shift().error(r)}})},e.prototype.complete=function(){var r=this;Lt(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:function(){var r;return((r=this.observers)===null||r===void 0?void 0:r.length)>0},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,o=this,i=o.hasError,s=o.isStopped,a=o.observers;return i||s?Ho:(this.currentObservers=null,a.push(r),new Fe(function(){n.currentObservers=null,gt(a,r)}))},e.prototype._checkFinalizedStatuses=function(r){var n=this,o=n.hasError,i=n.thrownError,s=n.isStopped;o?r.error(i):s&&r.complete()},e.prototype.asObservable=function(){var r=new H;return r.source=this,r},e.create=function(r,n){return new Ca(r,n)},e}(H);var Ca=function(t){de(e,t);function e(r,n){var o=t.call(this)||this;return o.destination=r,o.source=n,o}return e.prototype.next=function(r){var n,o;(o=(n=this.destination)===null||n===void 0?void 0:n.next)===null||o===void 0||o.call(n,r)},e.prototype.error=function(r){var n,o;(o=(n=this.destination)===null||n===void 0?void 0:n.error)===null||o===void 0||o.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,o;return(o=(n=this.source)===null||n===void 0?void 0:n.subscribe(r))!==null&&o!==void 0?o:Ho},e}(Ve);var $r={now:function(){return($r.delegate||Date).now()},delegate:void 0};var Jo=function(t){de(e,t);function e(r,n,o){r===void 0&&(r=1/0),n===void 0&&(n=1/0),o===void 0&&(o=$r);var i=t.call(this)||this;return i._bufferSize=r,i._windowTime=n,i._timestampProvider=o,i._buffer=[],i._infiniteTimeWindow=!0,i._infiniteTimeWindow=n===1/0,i._bufferSize=Math.max(1,r),i._windowTime=Math.max(1,n),i}return e.prototype.next=function(r){var n=this,o=n.isStopped,i=n._buffer,s=n._infiniteTimeWindow,a=n._timestampProvider,c=n._windowTime;o||(i.push(r),!s&&i.push(a.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),o=this,i=o._infiniteTimeWindow,s=o._buffer,a=s.slice(),c=0;c<a.length&&!r.closed;c+=i?1:2)r.next(a[c]);return this._checkFinalizedStatuses(r),n},e.prototype._trimBuffer=function(){var r=this,n=r._bufferSize,o=r._timestampProvider,i=r._buffer,s=r._infiniteTimeWindow,a=(s?1:2)*n;if(n<1/0&&a<i.length&&i.splice(0,i.length-a),!s){for(var c=o.now(),u=0,l=1;l<i.length&&i[l]<=c;l+=2)u=l;u&&i.splice(0,u+1)}},e}(Ve);var Ma=function(t){de(e,t);function e(r,n){return t.call(this)||this}return e.prototype.schedule=function(r,n){return n===void 0&&(n=0),this},e}(Fe);var Fr={setInterval:function(t,e){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var o=Fr.delegate;return o?.setInterval?o.setInterval.apply(o,$e([t,e],Se(r))):setInterval.apply(void 0,$e([t,e],Se(r)))},clearInterval:function(t){var e=Fr.delegate;return(e?.clearInterval||clearInterval)(t)},delegate:void 0};var $a=function(t){de(e,t);function e(r,n){var o=t.call(this,r,n)||this;return o.scheduler=r,o.work=n,o.pending=!1,o}return e.prototype.schedule=function(r,n){var o;if(n===void 0&&(n=0),this.closed)return this;this.state=r;var i=this.id,s=this.scheduler;return i!=null&&(this.id=this.recycleAsyncId(s,i,n)),this.pending=!0,this.delay=n,this.id=(o=this.id)!==null&&o!==void 0?o:this.requestAsyncId(s,this.id,n),this},e.prototype.requestAsyncId=function(r,n,o){return o===void 0&&(o=0),Fr.setInterval(r.flush.bind(r,this),o)},e.prototype.recycleAsyncId=function(r,n,o){if(o===void 0&&(o=0),o!=null&&this.delay===o&&this.pending===!1)return n;n!=null&&Fr.clearInterval(n)},e.prototype.execute=function(r,n){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var o=this._execute(r,n);if(o)return o;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},e.prototype._execute=function(r,n){var o=!1,i;try{this.work(r)}catch(s){o=!0,i=s||new Error("Scheduled action threw falsy error")}if(o)return this.unsubscribe(),i},e.prototype.unsubscribe=function(){if(!this.closed){var r=this,n=r.id,o=r.scheduler,i=o.actions;this.work=this.state=this.scheduler=null,this.pending=!1,gt(i,this),n!=null&&(this.id=this.recycleAsyncId(o,n,null)),this.delay=null,t.prototype.unsubscribe.call(this)}},e}(Ma);var Yo=function(){function t(e,r){r===void 0&&(r=t.now),this.schedulerActionCtor=e,this.now=r}return t.prototype.schedule=function(e,r,n){return r===void 0&&(r=0),new this.schedulerActionCtor(this,e).schedule(n,r)},t.now=$r.now,t}();var Fa=function(t){de(e,t);function e(r,n){n===void 0&&(n=Yo.now);var o=t.call(this,r,n)||this;return o.actions=[],o._active=!1,o}return e.prototype.flush=function(r){var n=this.actions;if(this._active){n.push(r);return}var o;this._active=!0;do if(o=r.execute(r.state,r.delay))break;while(r=n.shift());if(this._active=!1,o){for(;r=n.shift();)r.unsubscribe();throw o}},e}(Yo);var Pr=new Fa($a),Pa=Pr;function On(t){return t&&F(t.schedule)}function Dp(t){return t[t.length-1]}function Cn(t){return On(Dp(t))?t.pop():void 0}var qt=function(t){return t&&typeof t.length=="number"&&typeof t!="function"};function Mn(t){return F(t?.then)}function $n(t){return F(t[Wt])}function Fn(t){return Symbol.asyncIterator&&F(t?.[Symbol.asyncIterator])}function Pn(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.")}function Np(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var Bn=Np();function Dn(t){return F(t?.[Bn])}function Nn(t){return ba(this,arguments,function(){var r,n,o,i;return vn(this,function(s){switch(s.label){case 0:r=t.getReader(),s.label=1;case 1:s.trys.push([1,,9,10]),s.label=2;case 2:return[4,yt(r.read())];case 3:return n=s.sent(),o=n.value,i=n.done,i?[4,yt(void 0)]:[3,5];case 4:return[2,s.sent()];case 5:return[4,yt(o)];case 6:return[4,s.sent()];case 7:return s.sent(),[3,2];case 8:return[3,10];case 9:return r.releaseLock(),[7];case 10:return[2]}})})}function Rn(t){return F(t?.getReader)}function ae(t){if(t instanceof H)return t;if(t!=null){if($n(t))return Rp(t);if(qt(t))return Up(t);if(Mn(t))return kp(t);if(Fn(t))return Ba(t);if(Dn(t))return jp(t);if(Rn(t))return Lp(t)}throw Pn(t)}function Rp(t){return new H(function(e){var r=t[Wt]();if(F(r.subscribe))return r.subscribe(e);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function Up(t){return new H(function(e){for(var r=0;r<t.length&&!e.closed;r++)e.next(t[r]);e.complete()})}function kp(t){return new H(function(e){t.then(function(r){e.closed||(e.next(r),e.complete())},function(r){return e.error(r)}).then(null,An)})}function jp(t){return new H(function(e){var r,n;try{for(var o=He(t),i=o.next();!i.done;i=o.next()){var s=i.value;if(e.next(s),e.closed)return}}catch(a){r={error:a}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}e.complete()})}function Ba(t){return new H(function(e){Wp(t,e).catch(function(r){return e.error(r)})})}function Lp(t){return Ba(Nn(t))}function Wp(t,e){var r,n,o,i;return xa(this,void 0,void 0,function(){var s,a;return vn(this,function(c){switch(c.label){case 0:c.trys.push([0,5,6,11]),r=va(t),c.label=1;case 1:return[4,r.next()];case 2:if(n=c.sent(),!!n.done)return[3,4];if(s=n.value,e.next(s),e.closed)return[2];c.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return a=c.sent(),o={error:a},[3,11];case 6:return c.trys.push([6,,9,10]),n&&!n.done&&(i=r.return)?[4,i.call(r)]:[3,8];case 7:c.sent(),c.label=8;case 8:return[3,10];case 9:if(o)throw o.error;return[7];case 10:return[7];case 11:return e.complete(),[2]}})})}function Ee(t,e,r,n,o){n===void 0&&(n=0),o===void 0&&(o=!1);var i=e.schedule(function(){r(),o?t.add(this.schedule(null,n)):this.unsubscribe()},n);if(t.add(i),!o)return i}function Un(t,e){return e===void 0&&(e=0),Q(function(r,n){r.subscribe(ne(n,function(o){return Ee(n,t,function(){return n.next(o)},e)},function(){return Ee(n,t,function(){return n.complete()},e)},function(o){return Ee(n,t,function(){return n.error(o)},e)}))})}function kn(t,e){return e===void 0&&(e=0),Q(function(r,n){n.add(t.schedule(function(){return r.subscribe(n)},e))})}function Da(t,e){return ae(t).pipe(kn(e),Un(e))}function Na(t,e){return ae(t).pipe(kn(e),Un(e))}function Ra(t,e){return new H(function(r){var n=0;return e.schedule(function(){n===t.length?r.complete():(r.next(t[n++]),r.closed||this.schedule())})})}function Ua(t,e){return new H(function(r){var n;return Ee(r,e,function(){n=t[Bn](),Ee(r,e,function(){var o,i,s;try{o=n.next(),i=o.value,s=o.done}catch(a){r.error(a);return}s?r.complete():r.next(i)},0,!0)}),function(){return F(n?.return)&&n.return()}})}function jn(t,e){if(!t)throw new Error("Iterable cannot be null");return new H(function(r){Ee(r,e,function(){var n=t[Symbol.asyncIterator]();Ee(r,e,function(){n.next().then(function(o){o.done?r.complete():r.next(o.value)})},0,!0)})})}function ka(t,e){return jn(Nn(t),e)}function ja(t,e){if(t!=null){if($n(t))return Da(t,e);if(qt(t))return Ra(t,e);if(Mn(t))return Na(t,e);if(Fn(t))return jn(t,e);if(Dn(t))return Ua(t,e);if(Rn(t))return ka(t,e)}throw Pn(t)}function Br(t,e){return e?ja(t,e):ae(t)}function La(t){return t instanceof Date&&!isNaN(t)}function vt(t,e){return Q(function(r,n){var o=0;r.subscribe(ne(n,function(i){n.next(t.call(e,i,o++))}))})}var qp=Array.isArray;function zp(t,e){return qp(e)?t.apply(void 0,$e([],Se(e))):t(e)}function Wa(t){return vt(function(e){return zp(t,e)})}function qa(t,e,r,n,o,i,s,a){var c=[],u=0,l=0,f=!1,h=function(){f&&!c.length&&!u&&e.complete()},d=function(I){return u<n?b(I):c.push(I)},b=function(I){i&&e.next(I),u++;var D=!1;ae(r(I,l++)).subscribe(ne(e,function(E){o?.(E),i?d(E):e.next(E)},function(){D=!0},void 0,function(){if(D)try{u--;for(var E=function(){var S=c.shift();s?Ee(e,s,function(){return b(S)}):b(S)};c.length&&u<n;)E();h()}catch(S){e.error(S)}}))};return t.subscribe(ne(e,d,function(){f=!0,h()})),function(){a?.()}}function Dr(t,e,r){return r===void 0&&(r=1/0),F(e)?Dr(function(n,o){return vt(function(i,s){return e(n,i,o,s)})(ae(t(n,o)))},r):(typeof e=="number"&&(r=e),Q(function(n,o){return qa(n,o,t,r)}))}function za(t){return t===void 0&&(t=1/0),Dr(In,t)}function Ha(){return za(1)}function Zo(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return Ha()(Br(t,Cn(t)))}var Hp=["addListener","removeListener"],Vp=["addEventListener","removeEventListener"],Gp=["on","off"];function wt(t,e,r,n){if(F(r)&&(n=r,r=void 0),n)return wt(t,e,r).pipe(Wa(n));var o=Se(Yp(t)?Vp.map(function(a){return function(c){return t[a](e,c,r)}}):Kp(t)?Hp.map(Va(t,e)):Jp(t)?Gp.map(Va(t,e)):[],2),i=o[0],s=o[1];if(!i&&qt(t))return Dr(function(a){return wt(a,e,r)})(ae(t));if(!i)throw new TypeError("Invalid event target");return new H(function(a){var c=function(){for(var u=[],l=0;l<arguments.length;l++)u[l]=arguments[l];return a.next(1<u.length?u:u[0])};return i(c),function(){return s(c)}})}function Va(t,e){return function(r){return function(n){return t[r](e,n)}}}function Kp(t){return F(t.addListener)&&F(t.removeListener)}function Jp(t){return F(t.on)&&F(t.off)}function Yp(t){return F(t.addEventListener)&&F(t.removeEventListener)}function Ga(t,e,r){t===void 0&&(t=0),r===void 0&&(r=Pa);var n=-1;return e!=null&&(On(e)?r=e:n=e),new H(function(o){var i=La(t)?+t-r.now():t;i<0&&(i=0);var s=0;return r.schedule(function(){o.closed||(o.next(s++),0<=n?this.schedule(void 0,n):o.complete())},i)})}function Qo(t,e){return Q(function(r,n){var o=0;r.subscribe(ne(n,function(i){return t.call(e,i,o++)&&n.next(i)}))})}function Xo(t){return Q(function(e,r){var n=!1,o=null,i=null,s=function(){if(i?.unsubscribe(),i=null,n){n=!1;var a=o;o=null,r.next(a)}};e.subscribe(ne(r,function(a){i?.unsubscribe(),n=!0,o=a,i=ne(r,s,xt),ae(t(a)).subscribe(i)},function(){s(),r.complete()},void 0,function(){o=i=null}))})}function ei(t,e){return e===void 0&&(e=Pr),Q(function(r,n){var o=null,i=null,s=null,a=function(){if(o){o.unsubscribe(),o=null;var u=i;i=null,n.next(u)}};function c(){var u=s+t,l=e.now();if(l<u){o=this.schedule(void 0,u-l),n.add(o);return}a()}r.subscribe(ne(n,function(u){i=u,s=e.now(),o||(o=e.schedule(c,t),n.add(o))},function(){a(),n.complete()},void 0,function(){i=o=null}))})}function ti(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r=Cn(t);return Q(function(n,o){(r?Zo(t,n,r):Zo(t,n)).subscribe(o)})}function ri(t){return Q(function(e,r){ae(t).subscribe(ne(r,function(){return r.complete()},xt)),!r.closed&&e.subscribe(r)})}function Ka(t,e){return Q(function(r,n){var o=e??{},i=o.leading,s=i===void 0?!0:i,a=o.trailing,c=a===void 0?!1:a,u=!1,l=null,f=null,h=!1,d=function(){f?.unsubscribe(),f=null,c&&(D(),h&&n.complete())},b=function(){f=null,h&&n.complete()},I=function(E){return f=ae(t(E)).subscribe(ne(n,d,b))},D=function(){if(u){u=!1;var E=l;l=null,n.next(E),!h&&I(E)}};r.subscribe(ne(n,function(E){u=!0,l=E,!(f&&!f.closed)&&(s?D():I(E))},function(){h=!0,!(c&&u&&f&&!f.closed)&&n.complete()}))})}function ni(t,e,r){e===void 0&&(e=Pr);var n=Ga(t,e);return Ka(function(){return n},r)}var Zp={debounce:Xo,debounceTime:ei,map:vt,startWith:ti,takeUntil:ri,throttleTime:ni,filter:Qo};var oi=class{constructor(){this.observableEventEmitterBundleArray=new Array,this.observableEventTargetBundleArray=new Array}getSubjectForEmitterEvent(e,r){let n=this.observableEventEmitterBundleArray.find(o=>o.eventRef===e&&o.event===r);if(n)return n.subject;{let o=wt(e,r),i=new Ve;o.subscribe(i);let s={subject:i,eventRef:e,event:r};return this.observableEventEmitterBundleArray.push(s),s.subject}}getSubjectForEventTarget(e,r){let n=this.observableEventTargetBundleArray.find(o=>o.eventRef===e&&o.event===r);if(n)return n.subject;{let i={subject:new Ve,eventRef:e,event:r};return this.observableEventTargetBundleArray.push(i),i.subject}}};var ii=class{constructor(){this.observableFunctions={next:e=>{},complete:e=>{}},this.generator=null,this.buffered=!1,this.payloadBuffer=[],this.observable=new H(e=>{this.observableFunctions.next=(...r)=>e.next(r),this.observableFunctions.complete=()=>(this.completedDeffered.resolve(),e.complete())}),this.completedDeffered=K.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{let n=this.generator.next();this.internalPush(n.value)}}signalComplete(){this.observableFunctions.complete()}internalPush(e){this.observableFunctions.next(e)}};var Ke={};Z(Ke,{CronJob:()=>Rr,CronManager:()=>mi,ExtendedDate:()=>yi,HrtMeasurement:()=>gi,Interval:()=>xi,TimeStamp:()=>Vt,Timer:()=>bi,getMilliSecondsAsHumanReadableString:()=>di,getMilliSecondsFromUnits:()=>hi,units:()=>tt});function ve(t,e,r,n,o,i,s,a){return ve.fromTZ(ve.tp(t,e,r,n,o,i,s),a)}ve.fromTZISO=(t,e,r)=>ve.fromTZ(Qp(t,e),r);ve.fromTZ=function(t,e){let r=new Date(Date.UTC(t.y,t.m-1,t.d,t.h,t.i,t.s)),n=si(t.tz,r),o=new Date(r.getTime()-n),i=si(t.tz,o);if(i-n===0)return o;{let s=new Date(r.getTime()-i),a=si(t.tz,s);if(a-i===0)return s;if(!e&&a-i>0)return s;if(e)throw new Error("Invalid date passed to fromTZ()");return o}};ve.toTZ=function(t,e){let r=new Date(t.toLocaleString("sv-SE",{timeZone:e}));return{y:r.getFullYear(),m:r.getMonth()+1,d:r.getDate(),h:r.getHours(),i:r.getMinutes(),s:r.getSeconds(),tz:e}};ve.tp=(t,e,r,n,o,i,s)=>({y:t,m:e,d:r,h:n,i:o,s:i,tz:s});function si(t,e=new Date){let r=e.toLocaleString("en",{timeZone:t,timeStyle:"long"}).split(" ").slice(-1)[0],n=e.toLocaleString("en-US").replace(/[\u202f]/," ");return Date.parse(`${n} GMT`)-Date.parse(`${n} ${r}`)}function Qp(t,e){let r=new Date(Date.parse(t));if(isNaN(r))throw new Error("minitz: Invalid ISO8601 passed to parser.");let n=t.substring(9);return t.includes("Z")||n.includes("-")||n.includes("+")?ve.tp(r.getUTCFullYear(),r.getUTCMonth()+1,r.getUTCDate(),r.getUTCHours(),r.getUTCMinutes(),r.getUTCSeconds(),"Etc/UTC"):ve.tp(r.getFullYear(),r.getMonth()+1,r.getDate(),r.getHours(),r.getMinutes(),r.getSeconds(),e)}ve.minitz=ve;function Xp(t){if(t===void 0&&(t={}),delete t.name,t.legacyMode=t.legacyMode===void 0?!0:t.legacyMode,t.paused=t.paused===void 0?!1:t.paused,t.maxRuns=t.maxRuns===void 0?1/0:t.maxRuns,t.catch=t.catch===void 0?!1:t.catch,t.interval=t.interval===void 0?0:parseInt(t.interval,10),t.utcOffset=t.utcOffset===void 0?void 0:parseInt(t.utcOffset,10),t.unref=t.unref===void 0?!1:t.unref,t.kill=!1,t.startAt&&(t.startAt=new oe(t.startAt,t.timezone)),t.stopAt&&(t.stopAt=new oe(t.stopAt,t.timezone)),t.interval!==null){if(isNaN(t.interval))throw new Error("CronOptions: Supplied value for interval is not a number");if(t.interval<0)throw new Error("CronOptions: Supplied value for interval can not be negative")}if(t.utcOffset!==void 0){if(isNaN(t.utcOffset))throw new Error("CronOptions: Invalid value passed for utcOffset, should be number representing minutes offset from UTC.");if(t.utcOffset<-870||t.utcOffset>870)throw new Error("CronOptions: utcOffset out of bounds.");if(t.utcOffset!==void 0&&t.timezone)throw new Error("CronOptions: Combining 'utcOffset' with 'timezone' is not allowed.")}if(t.unref!==!0&&t.unref!==!1)throw new Error("CronOptions: Unref should be either true, false or undefined(false).");return t}var Ya=[31,28,31,30,31,30,31,31,30,31,30,31],Ge=[["month","year",0],["day","month",-1],["hour","day",0],["minute","hour",0],["second","minute",0]];function oe(t,e){if(this.tz=e,t&&t instanceof Date)if(!isNaN(t))this.fromDate(t);else throw new TypeError("CronDate: Invalid date passed to CronDate constructor");else if(t===void 0)this.fromDate(new Date);else if(t&&typeof t=="string")this.fromString(t);else if(t instanceof oe)this.fromCronDate(t);else throw new TypeError("CronDate: Invalid type ("+typeof t+") passed to CronDate constructor")}oe.prototype.fromDate=function(t){if(this.tz!==void 0)if(typeof this.tz=="number")this.ms=t.getUTCMilliseconds(),this.second=t.getUTCSeconds(),this.minute=t.getUTCMinutes()+this.tz,this.hour=t.getUTCHours(),this.day=t.getUTCDate(),this.month=t.getUTCMonth(),this.year=t.getUTCFullYear(),this.apply();else{let e=ve.toTZ(t,this.tz);this.ms=t.getMilliseconds(),this.second=e.s,this.minute=e.i,this.hour=e.h,this.day=e.d,this.month=e.m-1,this.year=e.y}else this.ms=t.getMilliseconds(),this.second=t.getSeconds(),this.minute=t.getMinutes(),this.hour=t.getHours(),this.day=t.getDate(),this.month=t.getMonth(),this.year=t.getFullYear()};oe.prototype.fromCronDate=function(t){this.tz=t.tz,this.year=t.year,this.month=t.month,this.day=t.day,this.hour=t.hour,this.minute=t.minute,this.second=t.second,this.ms=t.ms};oe.prototype.apply=function(){if(this.month>11||this.day>Ya[this.month]||this.hour>59||this.minute>59||this.second>59||this.hour<0||this.minute<0||this.second<0){let t=new Date(Date.UTC(this.year,this.month,this.day,this.hour,this.minute,this.second,this.ms));return this.ms=t.getUTCMilliseconds(),this.second=t.getUTCSeconds(),this.minute=t.getUTCMinutes(),this.hour=t.getUTCHours(),this.day=t.getUTCDate(),this.month=t.getUTCMonth(),this.year=t.getUTCFullYear(),!0}else return!1};oe.prototype.fromString=function(t){return this.fromDate(ve.fromTZISO(t,this.tz))};oe.prototype.findNext=function(t,e,r,n){let o=this[e],i;r.lastDayOfMonth&&(this.month!==1?i=Ya[this.month]:i=new Date(Date.UTC(this.year,this.month+1,0,0,0,0,0)).getUTCDate());let s=!r.starDOW&&e=="day"?new Date(Date.UTC(this.year,this.month,1,0,0,0,0)).getUTCDay():void 0;for(let a=this[e]+n;a<r[e].length;a++){let c=r[e][a];if(e==="day"&&r.lastDayOfMonth&&a-n==i&&(c=!0),e==="day"&&!r.starDOW){let u=r.dow[(s+(a-n-1))%7];t.legacyMode&&!r.starDOM?c=c||u:c=c&&u}if(c)return this[e]=a-n,o!==this[e]?2:1}return 3};oe.prototype.recurse=function(t,e,r){let n=this.findNext(e,Ge[r][0],t,Ge[r][2]);if(n>1){let o=r+1;for(;o<Ge.length;)this[Ge[o][0]]=-Ge[o][2],o++;if(n===3)return this[Ge[r][1]]++,this[Ge[r][0]]=-Ge[r][2],this.apply(),this.recurse(t,e,0);if(this.apply())return this.recurse(t,e,r-1)}return r+=1,r>=Ge.length?this:this.year>=3e3?null:this.recurse(t,e,r)};oe.prototype.increment=function(t,e,r){return e.interval>1&&r?this.second+=e.interval:this.second+=1,this.ms=0,this.apply(),this.recurse(t,e,0)};oe.prototype.getDate=function(t){return t||this.tz===void 0&&this.utcOffset===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)):ve(this.year,this.month+1,this.day,this.hour,this.minute,this.second,this.tz)};oe.prototype.getTime=function(){return this.getDate().getTime()};function Be(t,e){this.pattern=t,this.timezone=e,this.second=Array(60).fill(0),this.minute=Array(60).fill(0),this.hour=Array(24).fill(0),this.day=Array(31).fill(0),this.month=Array(12).fill(0),this.dow=Array(8).fill(0),this.lastDayOfMonth=!1,this.starDOM=!1,this.starDOW=!1,this.parse()}Be.prototype.parse=function(){if(!(typeof this.pattern=="string"||this.pattern.constructor===String))throw new TypeError("CronPattern: Pattern has to be of type string.");this.pattern.indexOf("@")>=0&&(this.pattern=this.handleNicknames(this.pattern).trim());let t=this.pattern.replace(/\s+/g," ").split(" ");if(t.length<5||t.length>6)throw new TypeError("CronPattern: invalid configuration format ('"+this.pattern+"'), exacly five or six space separated parts required.");if(t.length===5&&t.unshift("0"),t[3].indexOf("L")>=0&&(t[3]=t[3].replace("L",""),this.lastDayOfMonth=!0),t[3]=="*"&&(this.starDOM=!0),t[4].length>=3&&(t[4]=this.replaceAlphaMonths(t[4])),t[5].length>=3&&(t[5]=this.replaceAlphaDays(t[5])),t[5]=="*"&&(this.starDOW=!0),this.pattern.indexOf("?")>=0){let e=new oe(new Date,this.timezone).getDate(!0);t[0]=t[0].replace("?",e.getSeconds()),t[1]=t[1].replace("?",e.getMinutes()),t[2]=t[2].replace("?",e.getHours()),this.starDOM||(t[3]=t[3].replace("?",e.getDate())),t[4]=t[4].replace("?",e.getMonth()+1),this.starDOW||(t[5]=t[5].replace("?",e.getDay()))}this.throwAtIllegalCharacters(t),this.partToArray("second",t[0],0),this.partToArray("minute",t[1],0),this.partToArray("hour",t[2],0),this.partToArray("day",t[3],-1),this.partToArray("month",t[4],-1),this.partToArray("dow",t[5],0),this.dow[7]&&(this.dow[0]=1)};Be.prototype.partToArray=function(t,e,r){let n=this[t];if(e==="*")return n.fill(1);let o=e.split(",");if(o.length>1)for(let i=0;i<o.length;i++)this.partToArray(t,o[i],r);else e.indexOf("-")!==-1&&e.indexOf("/")!==-1?this.handleRangeWithStepping(e,t,r):e.indexOf("-")!==-1?this.handleRange(e,t,r):e.indexOf("/")!==-1?this.handleStepping(e,t,r):e!==""&&this.handleNumber(e,t,r)};Be.prototype.throwAtIllegalCharacters=function(t){let e=/[^/*0-9,-]+/;for(let r=0;r<t.length;r++)if(e.test(t[r]))throw new TypeError("CronPattern: configuration entry "+r+" ("+t[r]+") contains illegal characters.")};Be.prototype.handleNumber=function(t,e,r){let n=parseInt(t,10)+r;if(isNaN(n))throw new TypeError("CronPattern: "+e+" is not a number: '"+t+"'");if(n<0||n>=this[e].length)throw new TypeError("CronPattern: "+e+" value out of range: '"+t+"'");this[e][n]=1};Be.prototype.handleRangeWithStepping=function(t,e,r){let n=t.match(/^(\d+)-(\d+)\/(\d+)$/);if(n===null)throw new TypeError("CronPattern: Syntax error, illegal range with stepping: '"+t+"'");let[,o,i,s]=n;if(o=parseInt(o,10)+r,i=parseInt(i,10)+r,s=parseInt(s,10),isNaN(o))throw new TypeError("CronPattern: Syntax error, illegal lower range (NaN)");if(isNaN(i))throw new TypeError("CronPattern: Syntax error, illegal upper range (NaN)");if(isNaN(s))throw new TypeError("CronPattern: Syntax error, illegal stepping: (NaN)");if(s===0)throw new TypeError("CronPattern: Syntax error, illegal stepping: 0");if(s>this[e].length)throw new TypeError("CronPattern: Syntax error, steps cannot be greater than maximum value of part ("+this[e].length+")");if(o<0||i>=this[e].length)throw new TypeError("CronPattern: Value out of range: '"+t+"'");if(o>i)throw new TypeError("CronPattern: From value is larger than to value: '"+t+"'");for(let a=o;a<=i;a+=s)this[e][a]=1};Be.prototype.handleRange=function(t,e,r){let n=t.split("-");if(n.length!==2)throw new TypeError("CronPattern: Syntax error, illegal range: '"+t+"'");let o=parseInt(n[0],10)+r,i=parseInt(n[1],10)+r;if(isNaN(o))throw new TypeError("CronPattern: Syntax error, illegal lower range (NaN)");if(isNaN(i))throw new TypeError("CronPattern: Syntax error, illegal upper range (NaN)");if(o<0||i>=this[e].length)throw new TypeError("CronPattern: Value out of range: '"+t+"'");if(o>i)throw new TypeError("CronPattern: From value is larger than to value: '"+t+"'");for(let s=o;s<=i;s++)this[e][s]=1};Be.prototype.handleStepping=function(t,e){let r=t.split("/");if(r.length!==2)throw new TypeError("CronPattern: Syntax error, illegal stepping: '"+t+"'");let n=0;r[0]!=="*"&&(n=parseInt(r[0],10));let o=parseInt(r[1],10);if(isNaN(o))throw new TypeError("CronPattern: Syntax error, illegal stepping: (NaN)");if(o===0)throw new TypeError("CronPattern: Syntax error, illegal stepping: 0");if(o>this[e].length)throw new TypeError("CronPattern: Syntax error, max steps for part is ("+this[e].length+")");for(let i=n;i<this[e].length;i+=o)this[e][i]=1};Be.prototype.replaceAlphaDays=function(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")};Be.prototype.replaceAlphaMonths=function(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")};Be.prototype.handleNicknames=function(t){let e=t.trim().toLowerCase();return e==="@yearly"||e==="@annually"?"0 0 1 1 *":e==="@monthly"?"0 0 1 * *":e==="@weekly"?"0 0 * * 0":e==="@daily"?"0 0 * * *":e==="@hourly"?"0 * * * *":t};var Ja=Math.pow(2,31)-1,ai=[];function Za(t){return Object.prototype.toString.call(t)==="[object Function]"||typeof t=="function"||t instanceof Function}function eh(t){typeof Deno<"u"&&typeof Deno.unrefTimer<"u"?Deno.unrefTimer(t):t&&typeof t.unref<"u"&&t.unref()}function J(t,e,r){if(!(this instanceof J))return new J(t,e,r);let n,o;if(typeof e=="function")o=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(typeof r=="function")o=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?n.name:void 0,this.options=Xp(n),this.once=void 0,this.pattern=void 0,this.blocking=!1,this.previousrun=void 0,this.runstarted=void 0,t&&(t instanceof Date||typeof t=="string"&&t.indexOf(":")>0)?this.once=new oe(t,this.options.timezone||this.options.utcOffset):this.pattern=new Be(t,this.options.timezone),o!==void 0&&(this.fn=o,this.schedule()),this.name){if(ai.find(s=>s.name===this.name))throw new Error("Cron: Tried to initialize new named job '"+this.name+"', but name already taken.");ai.push(this)}return this}J.prototype.next=function(t){let e=this._next(t);return e?e.getDate():null};J.prototype.enumerate=function(t,e){t>this.options.maxRuns&&(t=this.options.maxRuns);let r=[],n=e||this.previousrun;for(;t--&&(n=this.next(n));)r.push(n);return r};J.prototype.running=function(){let t=this.msToNext(this.previousrun),e=!this.options.paused&&this.fn!==void 0;return t!==null&&e};J.prototype.busy=function(){return this.blocking};J.prototype.started=function(){return this.runstarted?this.runstarted.getDate():null};J.prototype.previous=function(){return this.previousrun?this.previousrun.getDate():null};J.prototype.msToNext=function(t){let e=this._next(t);return t=new oe(t,this.options.timezone||this.options.utcOffset),e?e.getTime(!0)-t.getTime(!0):null};J.prototype.stop=function(){this.options.kill=!0,this.currentTimeout&&clearTimeout(this.currentTimeout)};J.prototype.pause=function(){return(this.options.paused=!0)&&!this.options.kill};J.prototype.resume=function(){return!(this.options.paused=!1)&&!this.options.kill};J.prototype.schedule=function(t,e){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 r=this.msToNext(e||this.previousrun),n=this.next(e||this.previousrun);return r===null||n===null?this:(r>Ja&&(r=Ja),this.currentTimeout=setTimeout(()=>this._checkTrigger(n),r),this.currentTimeout&&this.options.unref&&eh(this.currentTimeout),this)};J.prototype._trigger=async function(t){if(this.blocking=!0,this.runstarted=new oe(t,this.options.timezone||this.options.utcOffset),this.options.catch)try{await this.fn(this,this.options.context)}catch(e){Za(this.options.catch)&&(r=>r.options.catch(e,r))(this)}finally{this.blocking=!1}else await this.fn(this,this.options.context),this.blocking=!1};J.prototype._checkTrigger=function(t){let e=new Date,r=!this.options.paused&&e.getTime()>=t,n=this.blocking&&this.options.protect;r&&!n?(this.options.maxRuns--,this._trigger(),this.previousrun=new oe(void 0,this.options.timezone||this.options.utcOffset),this.schedule()):(r&&n&&Za(this.options.protect)&&(async o=>o.options.protect(o))(this),this.schedule(void 0,e))};J.prototype._next=function(t){let e=!!(t||this.previousrun);t=new oe(t,this.options.timezone||this.options.utcOffset),this.options.startAt&&t&&t.getTime()<this.options.startAt.getTime()&&(t=this.options.startAt);let r=this.once||new oe(t,this.options.timezone||this.options.utcOffset).increment(this.pattern,this.options,e);return this.once&&this.once.getTime()<=t.getTime()||r===null||this.options.maxRuns<=0||this.options.kill||this.options.stopAt&&r.getTime()>=this.options.stopAt.getTime()?null:r};J.Cron=J;J.scheduledJobs=ai;var zt=be(Qa(),1),ec=be(Xa(),1);function pi(t){if(typeof t!="number")throw new TypeError("Expected a number");let e=t>0?Math.floor:Math.ceil;return{days:e(t/864e5),hours:e(t/36e5)%24,minutes:e(t/6e4)%60,seconds:e(t/1e3)%60,milliseconds:e(t)%1e3,microseconds:e(t*1e3)%1e3,nanoseconds:e(t*1e6)%1e3}}var th=(t,e)=>e===1?t:`${t}s`,rh=1e-7;function Ln(t,e={}){if(!Number.isFinite(t))throw new TypeError("Expected a finite number");e.colonNotation&&(e.compact=!1,e.formatSubMilliseconds=!1,e.separateMilliseconds=!1,e.verbose=!1),e.compact&&(e.secondsDecimalDigits=0,e.millisecondsDecimalDigits=0);let r=[],n=(s,a)=>{let c=Math.floor(s*10**a+rh);return(Math.round(c)/10**a).toFixed(a)},o=(s,a,c,u)=>{if((r.length===0||!e.colonNotation)&&s===0&&!(e.colonNotation&&c==="m"))return;u=(u||s||"0").toString();let l,f;if(e.colonNotation){l=r.length>0?":":"",f="";let h=u.includes(".")?u.split(".")[0].length:u.length,d=r.length>0?2:1;u="0".repeat(Math.max(0,d-h))+u}else l="",f=e.verbose?" "+th(a,s):c;r.push(l+u+f)},i=pi(t);if(o(Math.trunc(i.days/365),"year","y"),o(i.days%365,"day","d"),o(i.hours,"hour","h"),o(i.minutes,"minute","m"),e.separateMilliseconds||e.formatSubMilliseconds||!e.colonNotation&&t<1e3)if(o(i.seconds,"second","s"),e.formatSubMilliseconds)o(i.milliseconds,"millisecond","ms"),o(i.microseconds,"microsecond","\xB5s"),o(i.nanoseconds,"nanosecond","ns");else{let s=i.milliseconds+i.microseconds/1e3+i.nanoseconds/1e6,a=typeof e.millisecondsDecimalDigits=="number"?e.millisecondsDecimalDigits:0,c=s>=1?Math.round(s):Math.ceil(s),u=a?s.toFixed(a):c;o(Number.parseFloat(u),"millisecond","ms",u)}else{let s=t/1e3%60,a=typeof e.secondsDecimalDigits=="number"?e.secondsDecimalDigits:1,c=n(s,a),u=e.keepDecimalsOnWholeSeconds?c:c.replace(/\.0+$/,"");o(Number.parseFloat(u),"second","s",u)}if(r.length===0)return"0"+(e.verbose?" milliseconds":"ms");if(e.compact)return r[0];if(typeof e.unitCount=="number"){let s=e.colonNotation?"":" ";return r.slice(0,Math.max(e.unitCount,1)).join(s)}return e.colonNotation?r.join(""):r.join(" ")}zt.default.extend(ec.default);var Rr=class{constructor(e,r,n){this.status="initial",this.nextExecutionUnix=0,this.cronExpression=r,this.jobFunction=n,this.cronParser=J(r)}checkExecution(){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()}start(){this.status="started"}stop(){this.status="stopped"}};var tt={years:(t=1)=>t*3154e7,months:(t=1)=>t*2628e6,weeks:(t=1)=>t*6048e5,days:(t=1)=>t*864e5,hours:(t=1)=>t*36e5,minutes:(t=1)=>t*6e4,seconds:(t=1)=>t*1e3},hi=t=>{let e=0,r=n=>{e=e+n};return t.years&&r(tt.years(t.years)),t.months&&r(tt.months(t.months)),t.weeks&&r(tt.weeks(t.weeks)),t.days&&r(tt.days(t.days)),t.hours&&r(tt.hours(t.hours)),t.minutes&&r(tt.minutes(t.minutes)),t.seconds&&r(tt.seconds(t.seconds)),e},di=t=>Ln(t);var mi=class{constructor(){this.status="stopped",this.cronjobs=new Re.ObjectMap}addCronjob(e,r){let n=new Rr(this,e,r);return this.cronjobs.add(n),this.status==="started"&&n.start(),n}removeCronjob(e){e.stop(),this.cronjobs.remove(e)}start(){if(this.status!=="started"){this.status="started";for(let r of this.cronjobs.getArray())r.start();(async()=>{this.executionTimeout=new Y.Timeout(0);do{let r;for(let n of this.cronjobs.getArray())n.checkExecution(),(!r||n.getTimeToNextExecution()<r.getTimeToNextExecution())&&(r=n);r?(this.executionTimeout=new Y.Timeout(r.getTimeToNextExecution()),console.log(`Next CronJob scheduled in ${di(this.executionTimeout.getTimeLeft())}`)):(this.executionTimeout=new Y.Timeout(1e3),console.log("no cronjobs specified! Checking again in 1 second")),await this.executionTimeout.promise}while(this.status==="started")})()}}stop(){this.status==="started"?(this.status="stopped",this.executionTimeout.cancel()):console.log("You tried to stop a CronManager that was not actually started.");for(let e of this.cronjobs.getArray())e.stop()}};var yi=class t extends Date{static fromMillis(e){return new t(e)}static fromDate(e){return new t(e.getTime())}static fromEuropeanDate(e){let r=/(.*)\.(.*)\.(.*)/.exec(e),o=new Date(parseFloat(r[3]),parseFloat(r[2])-1,parseFloat(r[1])).getTime();return new t(o)}static fromHyphedDate(e){let r=new Date(e).getTime();return new t(r)}static fromEuropeanDateAndTime(e,r="12:00:00",n="Europe/Berlin"){let o=/(.*)\.(.*)\.(.*)/.exec(e),i=u=>`0${u}`.slice(-2),s=`${o[3]}-${i(o[2])}-${i(o[1])}T${r}`,c=zt.default(s).toDate().getTime();return new t(c)}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 zt.default(this.getTime()).format(e)}isToday(){return zt.default(this.getTime()).isToday()}lessTimePassedToNow(e){let r=hi(e);return Date.now()-this.getTime()<r}moreTimePassedToNow(e){return!this.lessTimePassedToNow(e)}};var gi=class{constructor(){this.nanoSeconds=null,this.milliSeconds=null,this._milliStart=null,this._milliDiff=null,this._started=!1}start(){this._started=!0,this._milliStart=Date.now()}stop(){if(this._started===!1){console.log("Hasn't started yet");return}return this._milliDiff=Date.now()-this._milliStart,this.nanoSeconds=this._milliDiff*1e3,this.milliSeconds=this._milliDiff,this}reset(){this.nanoSeconds=null,this.milliSeconds=null,this._milliStart=null,this._milliDiff=null,this._started=!1}};var xi=class{constructor(e){this.status="initial",this.statusAuthorization=null,this.intervalJobs=[],this.intervalMilliseconds=e}start(){this.status="started";let e=new Date;this.statusAuthorization=e,(async()=>{for(;this.status==="started"&&this.statusAuthorization===e;)await Y.delayFor(this.intervalMilliseconds),this.executeIntervalJobs()})()}stop(){this.status="stopped",this.statusAuthorization=null}addIntervalJob(e){this.intervalJobs.push(e)}executeIntervalJobs(){for(let e of this.intervalJobs)e()}};var Vt=class t{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,e?typeof e=="number"&&(this.date=new Date(e)):this.date=new Date,this.milliSeconds=this.date.getTime(),this.epochtime=Math.floor(this.milliSeconds/1e3)}isOlderThanOtherTimeStamp(e,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,o=new t(n);return this.isYoungerThanOtherTimeStamp(o)}};var bi=class{get timeLeft(){return this.timeInMilliseconds-this.pausedAt.change}constructor(e){this.state="initiated",this.completedDeferred=K.defer(),this.timeInMilliseconds=e,this.completed=this.completedDeferred.promise}start(){if(!this.startedAt)this.currentTimeout=setTimeout(()=>{this.completedDeferred.resolve()},this.timeInMilliseconds),this.startedAt=new Vt;else throw new Error("timer has been started before. Please use resume instead")}pause(){this.startedAt&&(clearTimeout(this.currentTimeout),this.currentTimeout=null,this.pausedAt=Vt.fromTimeStamp(this.startedAt))}resume(){if(this.startedAt)this.currentTimeout=setTimeout(()=>{this.completedDeferred.resolve()},this.timeLeft);else throw new Error("timer has NOT been started before. Please use .start() instead")}reset(){this.pause(),this.startedAt=null,this.pausedAt=null}};var wi=be(fc(),1);var Si=class{constructor(){this.executionSlots=[],this.isProcessing=!1}async getExclusiveExecutionSlot(e,r){let n=K.defer(),o={funcToExecute:e,executionDeferred:n,timeout:r,mode:"exclusive"};return this.executionSlots.push(o),this.processExecutionSlots(),n.promise}async getNonExclusiveExecutionSlot(e,r){let n=K.defer(),o={funcToExecute:e,executionDeferred:n,timeout:r,mode:"nonexclusive"};return this.executionSlots.push(o),this.processExecutionSlots(),n.promise}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=await Promise.race([e.funcToExecute(),Y.delayFor(e.timeout).then(()=>{throw new Error("Timeout reached")})]);e.executionDeferred.resolve(r)}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=>{try{if(n.timeout){let o=await Promise.race([n.funcToExecute(),Y.delayFor(n.timeout).then(()=>{throw new Error("Timeout reached")})]);n.executionDeferred.resolve(o)}else{let o=await n.funcToExecute();n.executionDeferred.resolve(o)}}catch(o){n.executionDeferred.reject(o)}});await Promise.all(r)}};var Ur=class t{constructor(){this.mapObject={}}isUniqueKey(e){return!this.mapObject[e]}addToMap(e,r,n){return this.isUniqueKey(e)||n&&n.force?(this.mapObject[e]=r,!0):!1}getByKey(e){return this.mapObject[e]}removeFromMap(e){let r=this.getByKey(e);return delete this.mapObject[e],r}getKeys(){let e=[];for(let r in this.mapObject)this.mapObject[r]&&e.push(r);return e}clean(){this.mapObject={}}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}}};var pc=(t="uni")=>`${t}xxxxxxxxxxx`.replace(/[xy]/g,e=>{let r=Math.random()*16|0;return(e==="x"?r:r&3|8).toString(16)}),At=class t{constructor(){this.fastMap=new Ur,this.eventSubject=new St.rxjs.Subject}addMappedUnique(e,r){this.fastMap.addToMap(e,r)}getMappedUnique(e){return this.fastMap.getByKey(e)}removeMappedUnique(e){let r=this.getMappedUnique(e)}add(e){for(let n of this.fastMap.getKeys())if(this.fastMap.getByKey(n)===e)return n;let r=pc("key");return this.addMappedUnique(r,e),this.eventSubject.next({operation:"add",payload:e}),r}addArray(e){for(let r of e)this.add(r)}checkForObject(e){return!!this.getKeyForObject(e)}getKeyForObject(e){let r=null;for(let n of this.fastMap.getKeys())if(!r&&this.fastMap.getByKey(n)===e)r=n;else continue;return r}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.eventSubject.next({operation:"remove",payload:n}),n}}getArray(){let e=[];for(let r of this.fastMap.getKeys())e.push(this.fastMap.getByKey(r));return e}isEmpty(){return this.fastMap.getKeys().length===0}remove(e){if(this.checkForObject(e)){let r=this.getKeyForObject(e),n=this.fastMap.removeFromMap(r);return this.eventSubject.next({operation:"remove",payload:n}),n}return null}wipe(){for(let e of this.fastMap.getKeys())this.fastMap.removeFromMap(e)}concat(e){let r=new t;return r.fastMap.addAllFromOther(this.fastMap),r.fastMap.addAllFromOther(e.fastMap),r}addAllFromOther(e){this.fastMap.addAllFromOther(e.fastMap)}};var kr=class{get comparisonString(){return this.comparisonFunc(this.originalInterest)}fullfillInterest(e){this.isFullfilled=!0,this.fullfillmentStore=[],this.interestDeferred.resolve(e)}constructor(e,r,n,o){this.destructionTimer=new Ke.Timer(1e4),this.isFullfilled=!1,this.fullfillmentStore=[],this.interestDeferred=new K.Deferred,this.interestFullfilled=this.interestDeferred.promise,this.interestMapRef=e,this.originalInterest=r,this.comparisonFunc=n,this.options=o,this.destructionTimer.completed.then(()=>{this.destroy()}),this.options?.markLostAfterDefault&&Y.delayFor(this.options.markLostAfterDefault).then(this.markLost)}destroy(){this.interestMapRef.removeInterest(this),!this.isFullfilled&&this.options.defaultFullfillment&&this.fullfillInterest(this.options.defaultFullfillment)}markLost(){this.destructionTimer.start()}renew(){this.destructionTimer.reset()}};var Ei=class{constructor(e,r={}){this.interestObjectMap=new At,this.interestObservable=new St.ObservableIntake,this.comparisonFunc=e,this.options=r}async addInterest(e,r){let n=this.comparisonFunc(e),o,i=new kr(this,e,this.comparisonFunc,{markLostAfterDefault:this.options.markLostAfterDefault,defaultFullfillment:r}),s=!1;return await this.interestObjectMap.forEach(a=>{!s&&a.comparisonString===i.comparisonString&&(console.log("info",`interest already exists for ${i.comparisonString}`),s=!0,o=a,o.renew())}),o||(o=i,this.interestObjectMap.add(o)),this.interestObservable.push(o),o}removeInterest(e){let r=this.interestObjectMap.findOneAndRemoveSync(n=>e.comparisonString===n.comparisonString)}checkInterest(e){let r=this.comparisonFunc(e);return this.checkInterestByString(r)}checkInterestByString(e){return!!this.interestObjectMap.findSync(n=>n.comparisonString===e)}informLostInterest(e){let r=this.findInterest(e);r&&r.markLost()}findInterest(e){let r=this.comparisonFunc(e);return this.interestObjectMap.findSync(o=>o.comparisonString===r)}};var Ai=class{constructor(e){this.array=[],this.arrayLimit=e}addOne(e){this.array.unshift(e),this.array.length>this.arrayLimit&&(this.array.length=this.arrayLimit)}addMany(e){for(let r of e)this.addOne(r)}setLimit(e){this.arrayLimit=e,this.array.length>this.arrayLimit&&(this.array.length=this.arrayLimit)}getAverage(){if(typeof this.array[0]=="number"){let e=0;for(let r of this.array)e=e+r;return e/this.array.length}else return null}};var Ti=class{constructor(){this.referenceObjectMap=new At}checkAndTrack(e){return this.referenceObjectMap.checkForObject(e)?!1:(this.referenceObjectMap.add(e),!0)}};var _i=class{constructor(){this._stringArray=[],this._triggerUntilTrueFunctionArray=[]}addString(e){this._stringArray.push(e),this.notifyTrigger()}addStringArray(e){for(let r of e)this.addString(r)}removeString(e){for(let r in this._stringArray)this._stringArray[r]===e&&this._stringArray.splice(parseInt(r),1);this.notifyTrigger()}wipe(){this._stringArray=[],this.notifyTrigger()}checkString(e){return this._stringArray.indexOf(e)!==-1}checkMinimatch(e){let r=new gn.SmartMatch(e),n=!1;for(let o of this._stringArray)r.match(o)&&(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=K.defer();return this._triggerUntilTrueFunctionArray.push(()=>{let o=e(this.getStringArray());return o===!0&&(r&&r(),n.resolve()),o}),this.notifyTrigger(),n.promise}notifyTrigger(){let e=this._triggerUntilTrueFunctionArray.filter(r=>!r());this._triggerUntilTrueFunctionArray=e}};var Ii=class{constructor(e){this.storageArray=[],this.options=e}checkAggregationStatus(){let e=()=>{this.aggregationTimer=new Ke.Timer(this.options.aggregationIntervalInMillis),this.aggregationTimer.completed.then(()=>{let r=this.storageArray;if(r.length===0){this.aggregationTimer=null;return}this.storageArray=[],e(),this.options.functionForAggregation(r)}),this.aggregationTimer.start()};this.aggregationTimer||e()}add(e){this.storageArray.push(e),this.checkAggregationStatus()}};var Oi=class{constructor(){this.symbolTree=new wi.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()}ancestorsIterator(e){this.symbolTree.ancestorsIterator()}treeIterator(e,r){return this.symbolTree.treeIterator(e)}index(e){return this.symbolTree.index(e)}childrenCount(e){return this.symbolTree.childrenCount(e)}compareTreePosition(e,r){return this.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=this.treeIterator(e,{});for(let n of r)console.log(n)}fromJsonWithHierachy(e){}};var Ao={};Z(Ao,{WebRequest:()=>Ks});var Kt={};Z(Kt,{Smartenv:()=>jr});var dc=be(hc(),1);var jr=class{constructor(){this.loadedScripts=[]}async getEnvAwareModule(e){if(this.isNode)return await this.getSafeNodeModule(e.nodeModuleName);if(this.isBrowser)return await this.getSafeWebModule(e.webUrlArg,e.getFunction);console.error("platform for loading not supported by smartenv")}async getSafeNodeModule(e){if(!this.isNode){console.error(`You tried to load a node module in a wrong context: ${e}`);return}return new Function(`return import('${e}')`)()}async getSafeWebModule(e,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=dc.defer();if(globalThis.importScripts)globalThis.importScripts(e),n.resolve();else{let o=document.createElement("script");o.onload=()=>{n.resolve()},o.src=e,document.head.appendChild(o)}return await n.promise,r()}get runtimeEnv(){return typeof process<"u"?"node":"browser"}get isBrowser(){return!this.isNode}get userAgent(){return this.isBrowser?navigator.userAgent:"undefined"}get isNode(){return this.runtimeEnv==="node"}get nodeVersion(){return process.version}get isCI(){return this.isNode?!!process.env.CI:!1}async isMacAsync(){return this.isNode?(await this.getSafeNodeModule("os")).platform()==="darwin":!1}async isWindowsAsync(){return this.isNode?(await this.getSafeNodeModule("os")).platform()==="win32":!1}async isLinuxAsync(){return this.isNode?(await this.getSafeNodeModule("os")).platform()==="linux":!1}async printEnv(){this.isNode?(console.log("running on NODE"),console.log("node version is "+this.nodeVersion)):(console.log("running on BROWSER"),console.log("browser is "+this.userAgent))}};var Ie={};Z(Ie,{Smartjson:()=>js,deepEqualObjects:()=>Vg,foldDec:()=>Hg,parse:()=>Ls,parseBase64:()=>zg,stringify:()=>xr,stringifyBase64:()=>qg,stringifyPretty:()=>Wg});var Yr={};Z(Yr,{Base64:()=>lo,Domain:()=>fo,GitRepo:()=>po,base64:()=>hr,create:()=>gs,docker:()=>xs,indent:()=>ws,normalize:()=>Ss,type:()=>Es});var gs={};Z(gs,{createCryptoRandomString:()=>ty,createRandomString:()=>ey});var Pl=be(ko(),1),Bl=be(Dc(),1),Dl=be(Zu(),1);var nl="3.7.5",Mm=nl,$m=typeof atob=="function",Fm=typeof btoa=="function",pr=typeof Buffer=="function",Qu=typeof TextDecoder=="function"?new TextDecoder:void 0,Xu=typeof TextEncoder=="function"?new TextEncoder:void 0,Pm="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",Kr=Array.prototype.slice.call(Pm),io=(t=>{let e={};return t.forEach((r,n)=>e[r]=n),e})(Kr),Bm=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,pe=String.fromCharCode.bind(String),el=typeof Uint8Array.from=="function"?Uint8Array.from.bind(Uint8Array):t=>new Uint8Array(Array.prototype.slice.call(t,0)),ol=t=>t.replace(/=/g,"").replace(/[+\/]/g,e=>e=="+"?"-":"_"),il=t=>t.replace(/[^A-Za-z0-9\+\/]/g,""),sl=t=>{let e,r,n,o,i="",s=t.length%3;for(let a=0;a<t.length;){if((r=t.charCodeAt(a++))>255||(n=t.charCodeAt(a++))>255||(o=t.charCodeAt(a++))>255)throw new TypeError("invalid character found");e=r<<16|n<<8|o,i+=Kr[e>>18&63]+Kr[e>>12&63]+Kr[e>>6&63]+Kr[e&63]}return s?i.slice(0,s-3)+"===".substring(s):i},hs=Fm?t=>btoa(t):pr?t=>Buffer.from(t,"binary").toString("base64"):sl,fs=pr?t=>Buffer.from(t).toString("base64"):t=>{let r=[];for(let n=0,o=t.length;n<o;n+=4096)r.push(pe.apply(null,t.subarray(n,n+4096)));return hs(r.join(""))},so=(t,e=!1)=>e?ol(fs(t)):fs(t),Dm=t=>{if(t.length<2){var e=t.charCodeAt(0);return e<128?t:e<2048?pe(192|e>>>6)+pe(128|e&63):pe(224|e>>>12&15)+pe(128|e>>>6&63)+pe(128|e&63)}else{var e=65536+(t.charCodeAt(0)-55296)*1024+(t.charCodeAt(1)-56320);return pe(240|e>>>18&7)+pe(128|e>>>12&63)+pe(128|e>>>6&63)+pe(128|e&63)}},Nm=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,al=t=>t.replace(Nm,Dm),tl=pr?t=>Buffer.from(t,"utf8").toString("base64"):Xu?t=>fs(Xu.encode(t)):t=>hs(al(t)),fr=(t,e=!1)=>e?ol(tl(t)):tl(t),rl=t=>fr(t,!0),Rm=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,Um=t=>{switch(t.length){case 4:var e=(7&t.charCodeAt(0))<<18|(63&t.charCodeAt(1))<<12|(63&t.charCodeAt(2))<<6|63&t.charCodeAt(3),r=e-65536;return pe((r>>>10)+55296)+pe((r&1023)+56320);case 3:return pe((15&t.charCodeAt(0))<<12|(63&t.charCodeAt(1))<<6|63&t.charCodeAt(2));default:return pe((31&t.charCodeAt(0))<<6|63&t.charCodeAt(1))}},cl=t=>t.replace(Rm,Um),ul=t=>{if(t=t.replace(/\s+/g,""),!Bm.test(t))throw new TypeError("malformed base64.");t+="==".slice(2-(t.length&3));let e,r="",n,o;for(let i=0;i<t.length;)e=io[t.charAt(i++)]<<18|io[t.charAt(i++)]<<12|(n=io[t.charAt(i++)])<<6|(o=io[t.charAt(i++)]),r+=n===64?pe(e>>16&255):o===64?pe(e>>16&255,e>>8&255):pe(e>>16&255,e>>8&255,e&255);return r},ds=$m?t=>atob(il(t)):pr?t=>Buffer.from(t,"base64").toString("binary"):ul,ll=pr?t=>el(Buffer.from(t,"base64")):t=>el(ds(t).split("").map(e=>e.charCodeAt(0))),fl=t=>ll(pl(t)),km=pr?t=>Buffer.from(t,"base64").toString("utf8"):Qu?t=>Qu.decode(ll(t)):t=>cl(ds(t)),pl=t=>il(t.replace(/[-_]/g,e=>e=="-"?"+":"/")),ps=t=>km(pl(t)),jm=t=>{if(typeof t!="string")return!1;let e=t.replace(/\s+/g,"").replace(/={0,2}$/,"");return!/[^\s0-9a-zA-Z\+/]/.test(e)||!/[^\s0-9a-zA-Z\-_]/.test(e)},hl=t=>({value:t,enumerable:!1,writable:!0,configurable:!0}),dl=function(){let t=(e,r)=>Object.defineProperty(String.prototype,e,hl(r));t("fromBase64",function(){return ps(this)}),t("toBase64",function(e){return fr(this,e)}),t("toBase64URI",function(){return fr(this,!0)}),t("toBase64URL",function(){return fr(this,!0)}),t("toUint8Array",function(){return fl(this)})},ml=function(){let t=(e,r)=>Object.defineProperty(Uint8Array.prototype,e,hl(r));t("toBase64",function(e){return so(this,e)}),t("toBase64URI",function(){return so(this,!0)}),t("toBase64URL",function(){return so(this,!0)})},Lm=()=>{dl(),ml()},Jr={version:nl,VERSION:Mm,atob:ds,atobPolyfill:ul,btoa:hs,btoaPolyfill:sl,fromBase64:ps,toBase64:fr,encode:fr,encodeURI:rl,encodeURL:rl,utob:al,btou:cl,decode:ps,isValid:jm,fromUint8Array:so,toUint8Array:fl,extendString:dl,extendUint8Array:ml,extendBuiltins:Lm};var xl=be(gl(),1);function ao(t){let e=(0,xl.default)(t);if(e===0)return t;let r=new RegExp(`^[ \\t]{${e}}`,"gm");return t.replace(r,"")}var Sl=be(vl(),1),wl=`\r
10
- `;function co(t){if(typeof t!="string"&&!Buffer.isBuffer(t))throw new TypeError(`Expected a \`string\` or a \`Buffer\`, got \`${typeof t}\``);return Buffer.isBuffer(t)?(0,Sl.default)(t,wl,`
11
- `):t.replace(new RegExp(wl,"g"),`
12
- `)}var ys=be(Fl(),1),Xm=new jr;Xm.isBrowser&&(globalThis.Buffer=Bl.Buffer);var ey=(t,e,r)=>ys.default(t,e,r),ty=()=>Pl.uni();var xs={};Z(xs,{makeEnvObject:()=>ry});var ry=function(t){let e={},r=/(.*)=(.*)/;if(typeof t<"u")for(let n in t){let o=r.exec(t[n]);e[o[1]]=o[2]}return e};var ws={};Z(ws,{indent:()=>oy,indentWithPrefix:()=>iy,normalize:()=>sy});var bs=t=>{let e=t.split(`
13
- `);return ny(e)},vs=t=>{let e="";for(let r of t)e=e+r+`
14
- `;return e},ny=t=>{let e=/^[\s]*$/;return e.test(t[0])&&t.shift(),e.test(t[t.length-1])&&t.pop(),t},oy=(t,e)=>{let r=bs(t);for(let o of r)o=" ".repeat(e)+o;return vs(r)},iy=(t,e)=>{let r,n=bs(t),o=[];for(let i of n)o.push(e+i);return r=vs(o),r},sy=t=>{let e,r=bs(t),n,o=/^(\s*)/,i=/^(\s*)$/;for(let a of r){let c=o.exec(a)[1];(typeof n>"u"||c.length<n)&&!i.test(a)&&(n=c.length)}let s=[];for(let a of r)s.push(a.substr(n));return e=vs(s),e};var Ss={};Z(Ss,{replaceAll:()=>Nl,standard:()=>ay});var Nl=(t,e,r)=>t.replace(new RegExp(e,"g"),r),ay=t=>{let e=ao(t),r=co(e);return Nl(r," /"," ")};var Es={};Z(Es,{isBase64:()=>uy,isUtf8:()=>cy});var lo=class{constructor(e,r){switch(r){case"string":this.refString=e;break;case"base64":this.refString=hr.decode(e);break;case"base64uri":this.refString=hr.decode(e)}}get simpleString(){return this.refString}get base64String(){return hr.encode(this.refString)}get base64UriString(){return hr.encodeUri(this.refString)}},hr={encode:t=>Jr.encode(t),encodeUri:t=>Jr.encodeURI(t),decode:t=>Jr.decode(t),isBase64:t=>/^([A-Za-z0-9+/]{4})*([A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{2}==)?$/.test(t)};var cy=t=>{let e=Buffer.from(t),r=0;for(;r<e.length;){if(e[r]===9||e[r]===10||e[r]===13||32<=e[r]&&e[r]<=126){r+=1;continue}if(194<=e[r]&&e[r]<=223&&128<=e[r+1]&&e[r+1]<=191){r+=2;continue}if(e[r]===224&&160<=e[r+1]&&e[r+1]<=191&&128<=e[r+2]&&e[r+2]<=191||(225<=e[r]&&e[r]<=236||e[r]===238||e[r]===239)&&128<=e[r+1]&&e[r+1]<=191&&128<=e[r+2]&&e[r+2]<=191||e[r]===237&&128<=e[r+1]&&e[r+1]<=159&&128<=e[r+2]&&e[r+2]<=191){r+=3;continue}if(e[r]===240&&144<=e[r+1]&&e[r+1]<=191&&128<=e[r+2]&&e[r+2]<=191&&128<=e[r+3]&&e[r+3]<=191||241<=e[r]&&e[r]<=243&&128<=e[r+1]&&e[r+1]<=191&&128<=e[r+2]&&e[r+2]<=191&&128<=e[r+3]&&e[r+3]<=191||e[r]===244&&128<=e[r+1]&&e[r+1]<=143&&128<=e[r+2]&&e[r+2]<=191&&128<=e[r+3]&&e[r+3]<=191){r+=4;continue}return!1}return!0},uy=t=>{let e=/[^A-Z0-9+\/=]/i,r=t.length;if(!r||r%4!==0||e.test(t))return!1;let n=t.indexOf("=");return n===-1||n===r-1||n===r-2&&t[r-1]==="="};var fo=class{constructor(e){this.protocol=this._protocolRegex(e),this.protocol||(e=`https://${e}`),this.nodeParsedUrl=Dl.parse(e),this.port=this.nodeParsedUrl.port;let r=this._domainRegex(e.replace(this.nodeParsedUrl.pathname,""));this.fullName="";for(let n=1;n<=5;n++)if(r[n-1]){let o=r[n-1];this["level"+n.toString()]=o,this.fullName===""?this.fullName=o:this.fullName=o+"."+this.fullName}else this["level"+n.toString()]=void 0;this.zoneName=this.level2+"."+this.level1,this.topLevel=this.level1,this.domainName=this.level2,this.subDomain=this.level3}_domainRegex(e){let n=/([a-zA-Z0-9\-\_]*)\.{0,1}([a-zA-Z0-9\-\_]*)\.{0,1}([a-zA-Z0-9\-\_]*)\.{0,1}([a-zA-Z0-9\-\_]*)\.{0,1}([a-zA-Z0-9\-\_]*)\.{0,1}$/.exec(e);return n.reverse(),n.pop(),n.filter(function(i){return i!==""})}_protocolRegex(e){let n=/^([a-zA-Z0-9]*):\/\//.exec(e);if(n)return n[1]}_portRegex(e){let n=/^([a-zA-Z0-9]*):\/\//.exec(e);if(n)return n[1]}};var po=class{constructor(e,r){let n=ly(e);this.host=n[1],this.user=n[2],this.repo=n[3],this.accessToken=r,this.sshUrl=Rl(this.host,this.user,this.repo,this.accessToken,"ssh"),this.httpsUrl=Rl(this.host,this.user,this.repo,this.accessToken,"https")}},ly=function(t){return/([a-zA-Z0-9\-_\.]*)(?:\/|\:)([a-zA-Z0-9\-_\.]*)(?:\/)([a-zA-Z0-9\-_\.]*)(?:\.git)/.exec(t)},Rl=function(t,e,r,n="",o){let i;switch(n!==""&&(n=n+"@"),o){case"https":i="https://"+n+t+"/"+e+"/"+r+".git";break;case"ssh":i="git@"+t+":"+e+"/"+r+".git";break;default:console.error("Link Type "+o+" not known");break}return i};var ks=be(_f(),1),Df=be(Of(),1),So=be(Bf(),1);var Nf=Df.default;var Ls=So.default.parse,xr=(t,e,r={})=>{let n=So.default.stringify(t);return t=JSON.parse(n),Nf(t,r)},Wg=t=>{let e=xr(t),r=JSON.parse(e);return JSON.stringify(r,null,2)},qg=(...t)=>{let e=xr(...t);return Yr.base64.encodeUri(e)},zg=t=>{let e=Yr.base64.decode(t);return Ls(e)},js=class t{static enfoldFromObject(e){let r=new this;for(let n in e)r.saveableProperties.indexOf(n)!==-1&&(r[n]=e[n]);return r}static enfoldFromJson(e){let r=Ls(e);return this.enfoldFromObject(r)}foldToObject(){let e={},r=[];for(let n of this.saveableProperties){let o=this[n];if(o instanceof t){if(r.includes(o))throw new Error("cycle detected");r.push(o),o=o.foldToObject()}e[n]=ks.default(o)}return e}foldToJson(){let e=this.foldToObject();return xr(e)}},Hg=()=>(t,e)=>{t.saveableProperties||(t.saveableProperties=[]),t.saveableProperties.push(e)},Vg=(t,e)=>{let r=xr(t),n=xr(e);return r===n};var Bt={};Z(Bt,{TypedrequestCache:()=>Gs,WebStore:()=>tn});var Eo={};Z(Eo,{deleteDB:()=>t0,openDB:()=>e0,unwrap:()=>en,wrap:()=>Oe});var Gg=(t,e)=>e.some(r=>t instanceof r),Rf,Uf;function Kg(){return Rf||(Rf=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function Jg(){return Uf||(Uf=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}var kf=new WeakMap,qs=new WeakMap,jf=new WeakMap,Ws=new WeakMap,Hs=new WeakMap;function Yg(t){let e=new Promise((r,n)=>{let o=()=>{t.removeEventListener("success",i),t.removeEventListener("error",s)},i=()=>{r(Oe(t.result)),o()},s=()=>{n(t.error),o()};t.addEventListener("success",i),t.addEventListener("error",s)});return e.then(r=>{r instanceof IDBCursor&&kf.set(r,t)}).catch(()=>{}),Hs.set(e,t),e}function Zg(t){if(qs.has(t))return;let e=new Promise((r,n)=>{let o=()=>{t.removeEventListener("complete",i),t.removeEventListener("error",s),t.removeEventListener("abort",s)},i=()=>{r(),o()},s=()=>{n(t.error||new DOMException("AbortError","AbortError")),o()};t.addEventListener("complete",i),t.addEventListener("error",s),t.addEventListener("abort",s)});qs.set(t,e)}var zs={get(t,e,r){if(t instanceof IDBTransaction){if(e==="done")return qs.get(t);if(e==="objectStoreNames")return t.objectStoreNames||jf.get(t);if(e==="store")return r.objectStoreNames[1]?void 0:r.objectStore(r.objectStoreNames[0])}return Oe(t[e])},set(t,e,r){return t[e]=r,!0},has(t,e){return t instanceof IDBTransaction&&(e==="done"||e==="store")?!0:e in t}};function Lf(t){zs=t(zs)}function Qg(t){return t===IDBDatabase.prototype.transaction&&!("objectStoreNames"in IDBTransaction.prototype)?function(e,...r){let n=t.call(en(this),e,...r);return jf.set(n,e.sort?e.sort():[e]),Oe(n)}:Jg().includes(t)?function(...e){return t.apply(en(this),e),Oe(kf.get(this))}:function(...e){return Oe(t.apply(en(this),e))}}function Xg(t){return typeof t=="function"?Qg(t):(t instanceof IDBTransaction&&Zg(t),Gg(t,Kg())?new Proxy(t,zs):t)}function Oe(t){if(t instanceof IDBRequest)return Yg(t);if(Ws.has(t))return Ws.get(t);let e=Xg(t);return e!==t&&(Ws.set(t,e),Hs.set(e,t)),e}var en=t=>Hs.get(t);function e0(t,e,{blocked:r,upgrade:n,blocking:o,terminated:i}={}){let s=indexedDB.open(t,e),a=Oe(s);return n&&s.addEventListener("upgradeneeded",c=>{n(Oe(s.result),c.oldVersion,c.newVersion,Oe(s.transaction),c)}),r&&s.addEventListener("blocked",c=>r(c.oldVersion,c.newVersion,c)),a.then(c=>{i&&c.addEventListener("close",()=>i()),o&&c.addEventListener("versionchange",u=>o(u.oldVersion,u.newVersion,u))}).catch(()=>{}),a}function t0(t,{blocked:e}={}){let r=indexedDB.deleteDatabase(t);return e&&r.addEventListener("blocked",n=>e(n.oldVersion,n)),Oe(r).then(()=>{})}var r0=["get","getKey","getAll","getAllKeys","count"],n0=["put","add","delete","clear"],Vs=new Map;function Wf(t,e){if(!(t instanceof IDBDatabase&&!(e in t)&&typeof e=="string"))return;if(Vs.get(e))return Vs.get(e);let r=e.replace(/FromIndex$/,""),n=e!==r,o=n0.includes(r);if(!(r in(n?IDBIndex:IDBObjectStore).prototype)||!(o||r0.includes(r)))return;let i=async function(s,...a){let c=this.transaction(s,o?"readwrite":"readonly"),u=c.store;return n&&(u=u.index(a.shift())),(await Promise.all([u[r](...a),o&&c.done]))[0]};return Vs.set(e,i),i}Lf(t=>({...t,get:(e,r,n)=>Wf(e,r)||t.get(e,r,n),has:(e,r)=>!!Wf(e,r)||t.has(e,r)}));var tn=class{constructor(e){this.initCalled=!1,this.readyDeferred=K.defer(),this.options=e}async init(){if(this.initCalled){await this.readyDeferred.promise;return}this.initCalled=!0;let e=new Kt.Smartenv;if(!e.isBrowser&&!globalThis.indexedDB&&(console.log("hey"),console.log(globalThis.indexedDB),await e.getSafeNodeModule("fake-indexeddb/auto"),!globalThis.indexedDB)){let r=await e.getSafeNodeModule("fake-indexeddb");globalThis.indexedDB=new r.IDBFactory}this.db=await Eo.openDB(this.options.dbName,1,{upgrade:r=>{r.createObjectStore(this.options.storeName)}}),this.readyDeferred.resolve()}async get(e){return await this.init(),this.db.get(this.options.storeName,e)}async check(e){return await this.init(),!!await this.get(e)}async set(e,r){return await this.init(),this.db.put(this.options.storeName,r,e)}async delete(e){return await this.init(),this.db.delete(this.options.storeName,e)}async clear(){return await this.init(),this.db.clear(this.options.storeName)}async keys(){return await this.init(),this.db.getAllKeys(this.options.storeName)}};var Gs=class{constructor(e="default"){this.webstore=new tn({dbName:"trStore",storeName:`trStore-${e}`})}buildKey(e){return Ie.stringify({method:e.method,request:e.request})}async setByRequest(e){if(!e.response)throw new Error("You cannot store requests without a response present");await this.webstore.set(this.buildKey(e),e)}async getByRequest(e){return await this.webstore.get(this.buildKey(e))}};var Ks=class{constructor(e={}){this.optionsArg=e,this.cacheStore=new Bt.WebStore({dbName:"webrequest",storeName:"webrequest"}),this.options={logging:!0,...e}}async getJson(e,r=!1){let o=await(await this.request(e,{method:"GET",useCache:r})).text();return Ie.parse(o)}async postJson(e,r,n=!1){let i=await(await this.request(e,{method:"POST",headers:{"Content-Type":"application/json"},body:Ie.stringify(r),useCache:n})).text();return Ie.parse(i)}async putJson(e,r,n=!1){let i=await(await this.request(e,{method:"PUT",headers:{"Content-Type":"application/json"},body:Ie.stringify(r)})).text();return Ie.parse(i)}async deleteJson(e,r=!1){let o=await(await this.request(e,{headers:{"Content-Type":"application/json"},method:"GET"})).text();return Ie.parse(o)}async request(e,r){r={timeoutMs:6e4,useCache:!1,...r};let n=new AbortController;Y.delayFor(r.timeoutMs).then(()=>{n.abort()});let o=K.defer(),i=!1;if(r.useCache&&await this.cacheStore.check(e)){let a=await this.cacheStore.get(e);o.resolve(new Response(a,{}))}else o.resolve(null);let s=await fetch(e,{signal:n.signal,method:r.method,headers:{...r.headers||{}},body:r.body}).catch(async a=>r.useCache&&await o.promise?(i=!0,o.promise):a);if(r.useCache&&await o.promise&&s.status===500&&(i=!0,s=await o.promise),!i&&r.useCache&&s.status<300){let a=await s.clone().arrayBuffer();await this.cacheStore.set(e,a)}return this.log(`${e} answers with status: ${s.status}`),s}async requestMultiEndpoint(e,r){let n,o=0;Array.isArray(e)?n=e:n=[e];let i=[],s=async u=>{i.push(u),u==="429"&&(console.log("got 429, so waiting a little bit."),await Y.delayFor(Math.floor(Math.random()*1001)+1e3));let l=0;for(let f of i)f===u&&l++;l>2*n.length*o&&o++},a=async u=>{if(!u)throw new Error("request failed permanently");this.log(`Getting ${u} with method ${r.method}`);let l=await fetch(u,{method:r.method,headers:{"Content-Type":"application/json",...r.headers||{}},body:r.body});return this.log(`${u} answers with status: ${l.status}`),l.status>=200&&l.status<300?l:(await s(l.status.toString()),await a(n[o]))};return await a(n[o])}log(e){this.options.logging&&console.log(e)}};var Dt=class{constructor(e,r){this.errorText=e,this.errorData=r}};var Js=class{constructor(e,r){this.method=e,this.handlerFunction=r}async addResponse(e){if(e.method!==this.method)throw new Error("this handler has been given a wrong method to answer to. Please use a TypedRouter to filter requests");let r,n=await this.handlerFunction(e.request).catch(o=>{o instanceof Dt?r=o:console.log(o)});return r&&(e.error={text:r.errorText,data:r.errorData}),n&&(e.response=n),e?.correlation?.phase&&(e.correlation.phase="response"),e}};var Ys=class{constructor(){this.routerMap=new Re.ObjectMap,this.handlerMap=new Re.ObjectMap,this.fireEventInterestMap=new Re.InterestMap(e=>e)}addTypedHandler(e){if(this.getTypedHandlerForMethod(e.method))throw new Error(`a TypedHandler for ${e.method} alredy exists! Can't add another one.`);this.handlerMap.add(e)}addTypedRouter(e){this.routerMap.findSync(n=>n===e)||(this.routerMap.add(e),e.addTypedRouter(this))}checkForTypedHandler(e){return!!this.getTypedHandlerForMethod(e)}getTypedHandlerForMethod(e,r=[]){r.push(this);let n;return n=this.handlerMap.findSync(o=>o.method===e),n||this.routerMap.getArray().forEach(o=>{!n&&!r.includes(o)&&(n=o.getTypedHandlerForMethod(e,r))}),n}async routeAndAddResponse(e,r=!1){if(e?.correlation?.phase==="request"||r){let n=this.getTypedHandlerForMethod(e.method);return n?(e=await n.addResponse(e),e):(console.log(`Cannot find handler for methodname ${e.method}`),e.error={text:"There is no available method for this call on the server side",data:{}},e.correlation.phase="response",e)}else return e?.correlation?.phase==="response"?(this.fireEventInterestMap.findInterest(e.correlation.id)?.fullfillInterest(e),null):(console.log("received weirdly shaped request"),console.log(e),null)}};var Zs=class{constructor(e){if(e.postMethodWithTypedRouter&&!e.typedRouterRef)throw new Error("you have to specify a typedrouter when using postmethod with typedrouter");this.options=e}async post(e){let r;this.options.typedRouterRef&&(r=await this.options.typedRouterRef.fireEventInterestMap.addInterest(e.correlation.id,e));let o=await(this.options.postMethod||this.options.postMethodWithTypedRouter)(e),i;return r?i=await r.interestFullfilled:o?i=o:i=e,i}};var i0=new Ao.WebRequest,Qs=class{constructor(e,r){typeof e=="string"?this.urlEndPoint=e:this.typedTarget=e,this.method=r}async fire(e,r=!1){let n={method:this.method,request:e,response:null,correlation:{id:zf.uni(),phase:"request"}},o;if(this.urlEndPoint?o=await i0.postJson(this.urlEndPoint,n,r):o=await this.typedTarget.post(n),o.error){if(console.error(`Got an error ${o.error.text} with data ${JSON.stringify(o.error.data)}`),!o.retry)throw new Dt(o.error.text,o.error.data);return null}return o.retry?(console.log(`server requested retry for the following reason: ${o.retry.reason}`),await Y.delayFor(o.retry.waitForMs),await this.fire(e)):o.response}};var _o=class{constructor(){this.webstore=new Bt.WebStore({dbName:"consentsoftware",storeName:"webclient"})}async isCookieLevelSet(){return!!await this.webstore.get("acceptedCookieLevels")}async setCookieLevels(e){return await this.webstore.set("acceptedCookieLevels",{acceptanceTimestamp:Date.now(),acceptedCookieLevels:e}),!0}async getCookieLevels(){return(await this.webstore.get("acceptedCookieLevels"))?.acceptedCookieLevels}async isCookieLevelStillValid(){return!(!this.isCookieLevelSet||(await this.webstore.get("acceptedCookieLevels")).acceptanceTimestamp<Date.now()-Ke.getMilliSecondsFromUnits({months:3}))}async getAndRunConsentTuples(e){let r=await this.getCookieLevels();if(!r){console.log("You need to set accepted cookielevels first");return}let n=new To.TypedRequest("https://connect.api.global/consentsoftware","getDomainSettings"),o=e||window.location.hostname,i=await n.fire({domain:o});for(let s of i.consentTuples)if(s.level==="functional"||r.includes(s.level)){let a=s.script,c=new Function("dataArg","cookieLevelsArg",`return (${a})(dataArg, cookieLevelsArg)`);if(typeof c=="function")await c(s.scriptExecutionDataArg,await this.getCookieLevels());else{let u="got malformed script to execuute";throw console.error(u),new Error(u)}console.log(`Successfully executed ConsentTuple >>${s.name}<< -> ${s.description}`)}}};var Nt=class extends he{constructor(){super();this.csWebclientInstance=new _o;this.csWebclientRan=!1;this.theme="light";this.setAttribute("gotIt","true"),this.setAttribute("show","false")}render(){return xe`
1
+ var sy=Object.create;var An=Object.defineProperty;var yf=Object.getOwnPropertyDescriptor;var ay=Object.getOwnPropertyNames;var uy=Object.getPrototypeOf,cy=Object.prototype.hasOwnProperty;var I=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),re=(t,e)=>{for(var r in e)An(t,r,{get:e[r],enumerable:!0})},fy=(t,e,r,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of ay(e))!cy.call(t,n)&&n!==r&&An(t,n,{get:()=>e[n],enumerable:!(o=yf(e,n))||o.enumerable});return t};var nt=(t,e,r)=>(r=t!=null?sy(uy(t)):{},fy(e||!t||!t.__esModule?An(r,"default",{value:t,enumerable:!0}):r,t));var Ce=(t,e,r,o)=>{for(var n=o>1?void 0:o?yf(e,r):e,i=t.length-1,s;i>=0;i--)(s=t[i])&&(n=(o?s(e,r,n):s(n))||n);return o&&n&&An(e,r,n),n};var ua=I(Wn=>{"use strict";Object.defineProperty(Wn,"__esModule",{value:!0});Wn.uni=void 0;var My=(t="uni")=>`${t}_${"xxxxxxxxxxxxxxxxxxxxxxxx".replace(/[xy]/g,e=>{let r=Math.random()*16|0;return(e==="x"?r:r&3|8).toString(16)})}`;Wn.uni=My});var Cl=I((_u,Au)=>{(function(t,e){typeof _u=="object"&&typeof Au<"u"?Au.exports=e():typeof define=="function"&&define.amd?define(e):(t=typeof globalThis<"u"?globalThis:t||self).dayjs=e()})(_u,function(){"use strict";var t=1e3,e=6e4,r=36e5,o="millisecond",n="second",i="minute",s="hour",a="day",u="week",c="month",f="quarter",m="year",p="date",d="Invalid Date",y=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,w=/\[([^\]]+)]|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,g={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(P){var v=["th","st","nd","rd"],b=P%100;return"["+P+(v[(b-20)%10]||v[b]||v[0])+"]"}},A=function(P,v,b){var M=String(P);return!M||M.length>=v?P:""+Array(v+1-M.length).join(b)+P},D={s:A,z:function(P){var v=-P.utcOffset(),b=Math.abs(v),M=Math.floor(b/60),S=b%60;return(v<=0?"+":"-")+A(M,2,"0")+":"+A(S,2,"0")},m:function P(v,b){if(v.date()<b.date())return-P(b,v);var M=12*(b.year()-v.year())+(b.month()-v.month()),S=v.clone().add(M,c),F=b-S<0,x=v.clone().add(M+(F?-1:1),c);return+(-(M+(b-S)/(F?S-x:x-S))||0)},a:function(P){return P<0?Math.ceil(P)||0:Math.floor(P)},p:function(P){return{M:c,y:m,w:u,d:a,D:p,h:s,m:i,s:n,ms:o,Q:f}[P]||String(P||"").toLowerCase().replace(/s$/,"")},u:function(P){return P===void 0}},T="en",L={};L[T]=g;var V="$isDayjsObject",z=function(P){return P instanceof se||!(!P||!P[V])},de=function P(v,b,M){var S;if(!v)return T;if(typeof v=="string"){var F=v.toLowerCase();L[F]&&(S=F),b&&(L[F]=b,S=F);var x=v.split("-");if(!S&&x.length>1)return P(x[0])}else{var O=v.name;L[O]=v,S=O}return!M&&S&&(T=S),S||!M&&T},q=function(P,v){if(z(P))return P.clone();var b=typeof v=="object"?v:{};return b.date=P,b.args=arguments,new se(b)},N=D;N.l=de,N.i=z,N.w=function(P,v){return q(P,{locale:v.$L,utc:v.$u,x:v.$x,$offset:v.$offset})};var se=function(){function P(b){this.$L=de(b.locale,null,!0),this.parse(b),this.$x=this.$x||b.x||{},this[V]=!0}var v=P.prototype;return v.parse=function(b){this.$d=function(M){var S=M.date,F=M.utc;if(S===null)return new Date(NaN);if(N.u(S))return new Date;if(S instanceof Date)return new Date(S);if(typeof S=="string"&&!/Z$/i.test(S)){var x=S.match(y);if(x){var O=x[2]-1||0,k=(x[7]||"0").substring(0,3);return F?new Date(Date.UTC(x[1],O,x[3]||1,x[4]||0,x[5]||0,x[6]||0,k)):new Date(x[1],O,x[3]||1,x[4]||0,x[5]||0,x[6]||0,k)}}return new Date(S)}(b),this.init()},v.init=function(){var b=this.$d;this.$y=b.getFullYear(),this.$M=b.getMonth(),this.$D=b.getDate(),this.$W=b.getDay(),this.$H=b.getHours(),this.$m=b.getMinutes(),this.$s=b.getSeconds(),this.$ms=b.getMilliseconds()},v.$utils=function(){return N},v.isValid=function(){return this.$d.toString()!==d},v.isSame=function(b,M){var S=q(b);return this.startOf(M)<=S&&S<=this.endOf(M)},v.isAfter=function(b,M){return q(b)<this.startOf(M)},v.isBefore=function(b,M){return this.endOf(M)<q(b)},v.$g=function(b,M,S){return N.u(b)?this[M]:this.set(S,b)},v.unix=function(){return Math.floor(this.valueOf()/1e3)},v.valueOf=function(){return this.$d.getTime()},v.startOf=function(b,M){var S=this,F=!!N.u(M)||M,x=N.p(b),O=function(he,ie){var te=N.w(S.$u?Date.UTC(S.$y,ie,he):new Date(S.$y,ie,he),S);return F?te:te.endOf(a)},k=function(he,ie){return N.w(S.toDate()[he].apply(S.toDate("s"),(F?[0,0,0,0]:[23,59,59,999]).slice(ie)),S)},$=this.$W,U=this.$M,J=this.$D,ne="set"+(this.$u?"UTC":"");switch(x){case m:return F?O(1,0):O(31,11);case c:return F?O(1,U):O(0,U+1);case u:var ce=this.$locale().weekStart||0,Se=($<ce?$+7:$)-ce;return O(F?J-Se:J+(6-Se),U);case a:case p:return k(ne+"Hours",0);case s:return k(ne+"Minutes",1);case i:return k(ne+"Seconds",2);case n:return k(ne+"Milliseconds",3);default:return this.clone()}},v.endOf=function(b){return this.startOf(b,!1)},v.$set=function(b,M){var S,F=N.p(b),x="set"+(this.$u?"UTC":""),O=(S={},S[a]=x+"Date",S[p]=x+"Date",S[c]=x+"Month",S[m]=x+"FullYear",S[s]=x+"Hours",S[i]=x+"Minutes",S[n]=x+"Seconds",S[o]=x+"Milliseconds",S)[F],k=F===a?this.$D+(M-this.$W):M;if(F===c||F===m){var $=this.clone().set(p,1);$.$d[O](k),$.init(),this.$d=$.set(p,Math.min(this.$D,$.daysInMonth())).$d}else O&&this.$d[O](k);return this.init(),this},v.set=function(b,M){return this.clone().$set(b,M)},v.get=function(b){return this[N.p(b)]()},v.add=function(b,M){var S,F=this;b=Number(b);var x=N.p(M),O=function(U){var J=q(F);return N.w(J.date(J.date()+Math.round(U*b)),F)};if(x===c)return this.set(c,this.$M+b);if(x===m)return this.set(m,this.$y+b);if(x===a)return O(1);if(x===u)return O(7);var k=(S={},S[i]=e,S[s]=r,S[n]=t,S)[x]||1,$=this.$d.getTime()+b*k;return N.w($,this)},v.subtract=function(b,M){return this.add(-1*b,M)},v.format=function(b){var M=this,S=this.$locale();if(!this.isValid())return S.invalidDate||d;var F=b||"YYYY-MM-DDTHH:mm:ssZ",x=N.z(this),O=this.$H,k=this.$m,$=this.$M,U=S.weekdays,J=S.months,ne=S.meridiem,ce=function(ie,te,ye,Oe){return ie&&(ie[te]||ie(M,F))||ye[te].slice(0,Oe)},Se=function(ie){return N.s(O%12||12,ie,"0")},he=ne||function(ie,te,ye){var Oe=ie<12?"AM":"PM";return ye?Oe.toLowerCase():Oe};return F.replace(w,function(ie,te){return te||function(ye){switch(ye){case"YY":return String(M.$y).slice(-2);case"YYYY":return N.s(M.$y,4,"0");case"M":return $+1;case"MM":return N.s($+1,2,"0");case"MMM":return ce(S.monthsShort,$,J,3);case"MMMM":return ce(J,$);case"D":return M.$D;case"DD":return N.s(M.$D,2,"0");case"d":return String(M.$W);case"dd":return ce(S.weekdaysMin,M.$W,U,2);case"ddd":return ce(S.weekdaysShort,M.$W,U,3);case"dddd":return U[M.$W];case"H":return String(O);case"HH":return N.s(O,2,"0");case"h":return Se(1);case"hh":return Se(2);case"a":return he(O,k,!0);case"A":return he(O,k,!1);case"m":return String(k);case"mm":return N.s(k,2,"0");case"s":return String(M.$s);case"ss":return N.s(M.$s,2,"0");case"SSS":return N.s(M.$ms,3,"0");case"Z":return x}return null}(ie)||x.replace(":","")})},v.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},v.diff=function(b,M,S){var F,x=this,O=N.p(M),k=q(b),$=(k.utcOffset()-this.utcOffset())*e,U=this-k,J=function(){return N.m(x,k)};switch(O){case m:F=J()/12;break;case c:F=J();break;case f:F=J()/3;break;case u:F=(U-$)/6048e5;break;case a:F=(U-$)/864e5;break;case s:F=U/r;break;case i:F=U/e;break;case n:F=U/t;break;default:F=U}return S?F:N.a(F)},v.daysInMonth=function(){return this.endOf(c).$D},v.$locale=function(){return L[this.$L]},v.locale=function(b,M){if(!b)return this.$L;var S=this.clone(),F=de(b,M,!0);return F&&(S.$L=F),S},v.clone=function(){return N.w(this.$d,this)},v.toDate=function(){return new Date(this.valueOf())},v.toJSON=function(){return this.isValid()?this.toISOString():null},v.toISOString=function(){return this.$d.toISOString()},v.toString=function(){return this.$d.toUTCString()},P}(),Le=se.prototype;return q.prototype=Le,[["$ms",o],["$s",n],["$m",i],["$H",s],["$W",a],["$M",c],["$y",m],["$D",p]].forEach(function(P){Le[P[1]]=function(v){return this.$g(v,P[0],P[1])}}),q.extend=function(P,v){return P.$i||(P(v,se,q),P.$i=!0),q},q.locale=de,q.isDayjs=z,q.unix=function(P){return q(1e3*P)},q.en=L[T],q.Ls=L,q.p={},q})});var Nl=I((Iu,Eu)=>{(function(t,e){typeof Iu=="object"&&typeof Eu<"u"?Eu.exports=e():typeof define=="function"&&define.amd?define(e):(t=typeof globalThis<"u"?globalThis:t||self).dayjs_plugin_isToday=e()})(Iu,function(){"use strict";return function(t,e,r){e.prototype.isToday=function(){var o="YYYY-MM-DD",n=r();return this.format(o)===n.format(o)}}})});var Wl=I((k9,Rl)=>{"use strict";Rl.exports=class{constructor(){this.parent=null,this.previousSibling=null,this.nextSibling=null,this.firstChild=null,this.lastChild=null,this.childrenVersion=0,this.childIndexCachedUpTo=null,this.cachedIndex=-1,this.cachedIndexVersion=NaN}get isAttached(){return!!(this.parent||this.previousSibling||this.nextSibling)}get hasChildren(){return!!this.firstChild}childrenChanged(){this.childrenVersion=this.childrenVersion+1&4294967295,this.childIndexCachedUpTo=null}getCachedIndex(e){return this.cachedIndexVersion!==e.childrenVersion?(this.cachedIndexVersion=NaN,-1):this.cachedIndex}setCachedIndex(e,r){this.cachedIndexVersion=e.childrenVersion,this.cachedIndex=r}}});var Ll=I((P9,Ul)=>{"use strict";Ul.exports=Object.freeze({DISCONNECTED:1,PRECEDING:2,FOLLOWING:4,CONTAINS:8,CONTAINED_BY:16})});var jl=I((C9,Hl)=>{"use strict";var Bl=Symbol(),Yl=Symbol(),Nt=Symbol(),ql=Symbol(),ot=class{constructor(e,r,o,n){this[Bl]=e,this[Yl]=r,this[Nt]=o,this[ql]=n}next(){let e=this[Bl],r=this[ql],o=this[Yl];if(!this[Nt])return{done:!0,value:o};let n=this[Nt];return r===1?this[Nt]=e._node(n).previousSibling:r===2?this[Nt]=e._node(n).nextSibling:r===3?this[Nt]=e._node(n).parent:r===4?this[Nt]=e.preceding(n,{root:o}):this[Nt]=e.following(n,{root:o}),{done:!1,value:n}}};Object.defineProperty(ot.prototype,Symbol.iterator,{value:function(){return this},writable:!1});ot.PREV=1;ot.NEXT=2;ot.PARENT=3;ot.PRECEDING=4;ot.FOLLOWING=5;Object.freeze(ot);Object.freeze(ot.prototype);Hl.exports=ot});var Vl=I((N9,zl)=>{"use strict";var Pv=Wl(),Ft=Ll(),Qe=jl();function Uu(){return!0}function Jr(t,e){return t[t.length-1-e]}var ls=class{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 Pv)}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,o=e;for(;r=this._node(o).lastChild;)o=r;return o}preceding(e,r){let o=r&&r.root;if(e===o)return null;let n=this._node(e).previousSibling;return n?this.lastInclusiveDescendant(n):this._node(e).parent}following(e,r){let o=r&&r.root,i=!(r&&r.skipChildren)&&this._node(e).firstChild;if(i)return i;let s=e;do{if(s===o)return null;let a=this._node(s).nextSibling;if(a)return a;s=this._node(s).parent}while(s);return null}childrenToArray(e,r){let o=r&&r.array||[],n=r&&r.filter||Uu,i=r&&r.thisArg||void 0,s=this._node(e),a=s.firstChild,u=0;for(;a;){let c=this._node(a);c.setCachedIndex(s,u),n.call(i,a)&&o.push(a),a=c.nextSibling,++u}return o}ancestorsToArray(e,r){let o=r&&r.array||[],n=r&&r.filter||Uu,i=r&&r.thisArg||void 0,s=e;for(;s;)n.call(i,s)&&o.push(s),s=this._node(s).parent;return o}treeToArray(e,r){let o=r&&r.array||[],n=r&&r.filter||Uu,i=r&&r.thisArg||void 0,s=e;for(;s;)n.call(i,s)&&o.push(s),s=this.following(s,{root:e});return o}childrenIterator(e,r){let o=r&&r.reverse,n=this._node(e);return new Qe(this,e,o?n.lastChild:n.firstChild,o?Qe.PREV:Qe.NEXT)}previousSiblingsIterator(e){return new Qe(this,e,this._node(e).previousSibling,Qe.PREV)}nextSiblingsIterator(e){return new Qe(this,e,this._node(e).nextSibling,Qe.NEXT)}ancestorsIterator(e){return new Qe(this,e,e,Qe.PARENT)}treeIterator(e,r){let o=r&&r.reverse;return new Qe(this,e,o?this.lastInclusiveDescendant(e):e,o?Qe.PRECEDING:Qe.FOLLOWING)}index(e){let r=this._node(e),o=this._node(r.parent);if(!o)return-1;let n=r.getCachedIndex(o);if(n>=0)return n;n=0;let i=o.firstChild;if(o.childIndexCachedUpTo){let s=this._node(o.childIndexCachedUpTo);i=s.nextSibling,n=s.getCachedIndex(o)+1}for(;i;){let s=this._node(i);if(s.setCachedIndex(o,n),i===e)break;++n,i=s.nextSibling}return o.childIndexCachedUpTo=e,n}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 o=[];{let f=e;for(;f;){if(f===r)return Ft.CONTAINS|Ft.PRECEDING;o.push(f),f=this.parent(f)}}let n=[];{let f=r;for(;f;){if(f===e)return Ft.CONTAINED_BY|Ft.FOLLOWING;n.push(f),f=this.parent(f)}}let i=Jr(o,0);if(!i||i!==Jr(n,0))return Ft.DISCONNECTED;let s=0,a=Math.min(o.length,n.length);for(let f=0;f<a;++f){let m=Jr(o,f),p=Jr(n,f);if(m!==p)break;s=f}let u=this.index(Jr(o,s+1));return this.index(Jr(n,s+1))<u?Ft.PRECEDING:Ft.FOLLOWING}remove(e){let r=this._node(e),o=this._node(r.parent),n=this._node(r.previousSibling),i=this._node(r.nextSibling);return o&&(o.firstChild===e&&(o.firstChild=r.nextSibling),o.lastChild===e&&(o.lastChild=r.previousSibling)),n&&(n.nextSibling=r.nextSibling),i&&(i.previousSibling=r.previousSibling),r.parent=null,r.previousSibling=null,r.nextSibling=null,r.cachedIndex=-1,r.cachedIndexVersion=NaN,o&&o.childrenChanged(),e}insertBefore(e,r){let o=this._node(e),n=this._node(o.previousSibling),i=this._node(r),s=this._node(o.parent);if(i.isAttached)throw Error("Given object is already present in this SymbolTree, remove it first");return i.parent=o.parent,i.previousSibling=o.previousSibling,i.nextSibling=e,o.previousSibling=r,n&&(n.nextSibling=r),s&&s.firstChild===e&&(s.firstChild=r),s&&s.childrenChanged(),r}insertAfter(e,r){let o=this._node(e),n=this._node(o.nextSibling),i=this._node(r),s=this._node(o.parent);if(i.isAttached)throw Error("Given object is already present in this SymbolTree, remove it first");return i.parent=o.parent,i.previousSibling=e,i.nextSibling=o.nextSibling,o.nextSibling=r,n&&(n.previousSibling=r),s&&s.lastChild===e&&(s.lastChild=r),s&&s.childrenChanged(),r}prependChild(e,r){let o=this._node(e),n=this._node(r);if(n.isAttached)throw Error("Given object is already present in this SymbolTree, remove it first");return o.hasChildren?this.insertBefore(o.firstChild,r):(n.parent=e,o.firstChild=r,o.lastChild=r,o.childrenChanged()),r}appendChild(e,r){let o=this._node(e),n=this._node(r);if(n.isAttached)throw Error("Given object is already present in this SymbolTree, remove it first");return o.hasChildren?this.insertAfter(o.lastChild,r):(n.parent=e,o.firstChild=r,o.lastChild=r,o.childrenChanged()),r}};zl.exports=ls;ls.TreePosition=Ft});var np=I((Zr,Xr)=>{(function(t){var e=typeof Zr=="object"&&Zr&&!Zr.nodeType&&Zr,r=typeof Xr=="object"&&Xr&&!Xr.nodeType&&Xr,o=typeof global=="object"&&global;(o.global===o||o.window===o||o.self===o)&&(t=o);var n,i=2147483647,s=36,a=1,u=26,c=38,f=700,m=72,p=128,d="-",y=/^xn--/,w=/[^\x20-\x7E]/,g=/[\x2E\u3002\uFF0E\uFF61]/g,A={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},D=s-a,T=Math.floor,L=String.fromCharCode,V;function z(x){throw new RangeError(A[x])}function de(x,O){for(var k=x.length,$=[];k--;)$[k]=O(x[k]);return $}function q(x,O){var k=x.split("@"),$="";k.length>1&&($=k[0]+"@",x=k[1]),x=x.replace(g,".");var U=x.split("."),J=de(U,O).join(".");return $+J}function N(x){for(var O=[],k=0,$=x.length,U,J;k<$;)U=x.charCodeAt(k++),U>=55296&&U<=56319&&k<$?(J=x.charCodeAt(k++),(J&64512)==56320?O.push(((U&1023)<<10)+(J&1023)+65536):(O.push(U),k--)):O.push(U);return O}function se(x){return de(x,function(O){var k="";return O>65535&&(O-=65536,k+=L(O>>>10&1023|55296),O=56320|O&1023),k+=L(O),k}).join("")}function Le(x){return x-48<10?x-22:x-65<26?x-65:x-97<26?x-97:s}function P(x,O){return x+22+75*(x<26)-((O!=0)<<5)}function v(x,O,k){var $=0;for(x=k?T(x/f):x>>1,x+=T(x/O);x>D*u>>1;$+=s)x=T(x/D);return T($+(D+1)*x/(x+c))}function b(x){var O=[],k=x.length,$,U=0,J=p,ne=m,ce,Se,he,ie,te,ye,Oe,Et,qt;for(ce=x.lastIndexOf(d),ce<0&&(ce=0),Se=0;Se<ce;++Se)x.charCodeAt(Se)>=128&&z("not-basic"),O.push(x.charCodeAt(Se));for(he=ce>0?ce+1:0;he<k;){for(ie=U,te=1,ye=s;he>=k&&z("invalid-input"),Oe=Le(x.charCodeAt(he++)),(Oe>=s||Oe>T((i-U)/te))&&z("overflow"),U+=Oe*te,Et=ye<=ne?a:ye>=ne+u?u:ye-ne,!(Oe<Et);ye+=s)qt=s-Et,te>T(i/qt)&&z("overflow"),te*=qt;$=O.length+1,ne=v(U-ie,$,ie==0),T(U/$)>i-J&&z("overflow"),J+=T(U/$),U%=$,O.splice(U++,0,J)}return se(O)}function M(x){var O,k,$,U,J,ne,ce,Se,he,ie,te,ye=[],Oe,Et,qt,Qs;for(x=N(x),Oe=x.length,O=p,k=0,J=m,ne=0;ne<Oe;++ne)te=x[ne],te<128&&ye.push(L(te));for($=U=ye.length,U&&ye.push(d);$<Oe;){for(ce=i,ne=0;ne<Oe;++ne)te=x[ne],te>=O&&te<ce&&(ce=te);for(Et=$+1,ce-O>T((i-k)/Et)&&z("overflow"),k+=(ce-O)*Et,O=ce,ne=0;ne<Oe;++ne)if(te=x[ne],te<O&&++k>i&&z("overflow"),te==O){for(Se=k,he=s;ie=he<=J?a:he>=J+u?u:he-J,!(Se<ie);he+=s)Qs=Se-ie,qt=s-ie,ye.push(L(P(ie+Qs%qt,0))),Se=T(Qs/qt);ye.push(L(P(Se,0))),J=v(k,Et,$==U),k=0,++$}++k,++O}return ye.join("")}function S(x){return q(x,function(O){return y.test(O)?b(O.slice(4).toLowerCase()):O})}function F(x){return q(x,function(O){return w.test(O)?"xn--"+M(O):O})}if(n={version:"1.4.1",ucs2:{decode:N,encode:se},decode:b,encode:M,toASCII:F,toUnicode:S},typeof define=="function"&&typeof define.amd=="object"&&define.amd)define("punycode",function(){return n});else if(e&&r)if(Xr.exports==e)r.exports=n;else for(V in n)n.hasOwnProperty(V)&&(e[V]=n[V]);else t.punycode=n})(Zr)});var xr=I((PV,ip)=>{"use strict";ip.exports=TypeError});var sp=I(()=>{});var ln=I((FV,Mp)=>{var ic=typeof Map=="function"&&Map.prototype,Qu=Object.getOwnPropertyDescriptor&&ic?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,ds=ic&&Qu&&typeof Qu.get=="function"?Qu.get:null,ap=ic&&Map.prototype.forEach,sc=typeof Set=="function"&&Set.prototype,Ju=Object.getOwnPropertyDescriptor&&sc?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,hs=sc&&Ju&&typeof Ju.get=="function"?Ju.get:null,up=sc&&Set.prototype.forEach,uw=typeof WeakMap=="function"&&WeakMap.prototype,cn=uw?WeakMap.prototype.has:null,cw=typeof WeakSet=="function"&&WeakSet.prototype,fn=cw?WeakSet.prototype.has:null,fw=typeof WeakRef=="function"&&WeakRef.prototype,cp=fw?WeakRef.prototype.deref:null,lw=Boolean.prototype.valueOf,pw=Object.prototype.toString,mw=Function.prototype.toString,dw=String.prototype.match,ac=String.prototype.slice,Wt=String.prototype.replace,hw=String.prototype.toUpperCase,fp=String.prototype.toLowerCase,bp=RegExp.prototype.test,lp=Array.prototype.concat,ut=Array.prototype.join,yw=Array.prototype.slice,pp=Math.floor,ec=typeof BigInt=="function"?BigInt.prototype.valueOf:null,Zu=Object.getOwnPropertySymbols,tc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,eo=typeof Symbol=="function"&&typeof Symbol.iterator=="object",Pe=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===eo||!0)?Symbol.toStringTag:null,vp=Object.prototype.propertyIsEnumerable,mp=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(t){return t.__proto__}:null);function dp(t,e){if(t===1/0||t===-1/0||t!==t||t&&t>-1e3&&t<1e3||bp.call(/e/,e))return e;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof t=="number"){var o=t<0?-pp(-t):pp(t);if(o!==t){var n=String(o),i=ac.call(e,n.length+1);return Wt.call(n,r,"$&_")+"."+Wt.call(Wt.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return Wt.call(e,r,"$&_")}var rc=sp(),hp=rc.custom,yp=Dp(hp)?hp:null,wp={__proto__:null,double:'"',single:"'"},xw={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};Mp.exports=function t(e,r,o,n){var i=r||{};if(Ot(i,"quoteStyle")&&!Ot(wp,i.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(Ot(i,"maxStringLength")&&(typeof i.maxStringLength=="number"?i.maxStringLength<0&&i.maxStringLength!==1/0:i.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var s=Ot(i,"customInspect")?i.customInspect:!0;if(typeof s!="boolean"&&s!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(Ot(i,"indent")&&i.indent!==null&&i.indent!==" "&&!(parseInt(i.indent,10)===i.indent&&i.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(Ot(i,"numericSeparator")&&typeof i.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var a=i.numericSeparator;if(typeof e>"u")return"undefined";if(e===null)return"null";if(typeof e=="boolean")return e?"true":"false";if(typeof e=="string")return Op(e,i);if(typeof e=="number"){if(e===0)return 1/0/e>0?"0":"-0";var u=String(e);return a?dp(e,u):u}if(typeof e=="bigint"){var c=String(e)+"n";return a?dp(e,c):c}var f=typeof i.depth>"u"?5:i.depth;if(typeof o>"u"&&(o=0),o>=f&&f>0&&typeof e=="object")return oc(e)?"[Array]":"[Object]";var m=Fw(i,o);if(typeof n>"u")n=[];else if(Tp(n,e)>=0)return"[Circular]";function p(v,b,M){if(b&&(n=yw.call(n),n.push(b)),M){var S={depth:i.depth};return Ot(i,"quoteStyle")&&(S.quoteStyle=i.quoteStyle),t(v,S,o+1,n)}return t(v,i,o+1,n)}if(typeof e=="function"&&!xp(e)){var d=Mw(e),y=ms(e,p);return"[Function"+(d?": "+d:" (anonymous)")+"]"+(y.length>0?" { "+ut.call(y,", ")+" }":"")}if(Dp(e)){var w=eo?Wt.call(String(e),/^(Symbol\(.*\))_[^)]*$/,"$1"):tc.call(e);return typeof e=="object"&&!eo?un(w):w}if(Pw(e)){for(var g="<"+fp.call(String(e.nodeName)),A=e.attributes||[],D=0;D<A.length;D++)g+=" "+A[D].name+"="+Sp(gw(A[D].value),"double",i);return g+=">",e.childNodes&&e.childNodes.length&&(g+="..."),g+="</"+fp.call(String(e.nodeName))+">",g}if(oc(e)){if(e.length===0)return"[]";var T=ms(e,p);return m&&!Nw(T)?"["+nc(T,m)+"]":"[ "+ut.call(T,", ")+" ]"}if(vw(e)){var L=ms(e,p);return!("cause"in Error.prototype)&&"cause"in e&&!vp.call(e,"cause")?"{ ["+String(e)+"] "+ut.call(lp.call("[cause]: "+p(e.cause),L),", ")+" }":L.length===0?"["+String(e)+"]":"{ ["+String(e)+"] "+ut.call(L,", ")+" }"}if(typeof e=="object"&&s){if(yp&&typeof e[yp]=="function"&&rc)return rc(e,{depth:f-o});if(s!=="symbol"&&typeof e.inspect=="function")return e.inspect()}if(_w(e)){var V=[];return ap&&ap.call(e,function(v,b){V.push(p(b,e,!0)+" => "+p(v,e))}),gp("Map",ds.call(e),V,m)}if(Ew(e)){var z=[];return up&&up.call(e,function(v){z.push(p(v,e))}),gp("Set",hs.call(e),z,m)}if(Aw(e))return Xu("WeakMap");if(kw(e))return Xu("WeakSet");if(Iw(e))return Xu("WeakRef");if(Sw(e))return un(p(Number(e)));if(Tw(e))return un(p(ec.call(e)));if(Dw(e))return un(lw.call(e));if(ww(e))return un(p(String(e)));if(typeof window<"u"&&e===window)return"{ [object Window] }";if(typeof globalThis<"u"&&e===globalThis||typeof global<"u"&&e===global)return"{ [object globalThis] }";if(!bw(e)&&!xp(e)){var de=ms(e,p),q=mp?mp(e)===Object.prototype:e instanceof Object||e.constructor===Object,N=e instanceof Object?"":"null prototype",se=!q&&Pe&&Object(e)===e&&Pe in e?ac.call(Ut(e),8,-1):N?"Object":"",Le=q||typeof e.constructor!="function"?"":e.constructor.name?e.constructor.name+" ":"",P=Le+(se||N?"["+ut.call(lp.call([],se||[],N||[]),": ")+"] ":"");return de.length===0?P+"{}":m?P+"{"+nc(de,m)+"}":P+"{ "+ut.call(de,", ")+" }"}return String(e)};function Sp(t,e,r){var o=r.quoteStyle||e,n=wp[o];return n+t+n}function gw(t){return Wt.call(String(t),/"/g,"&quot;")}function oc(t){return Ut(t)==="[object Array]"&&(!Pe||!(typeof t=="object"&&Pe in t))}function bw(t){return Ut(t)==="[object Date]"&&(!Pe||!(typeof t=="object"&&Pe in t))}function xp(t){return Ut(t)==="[object RegExp]"&&(!Pe||!(typeof t=="object"&&Pe in t))}function vw(t){return Ut(t)==="[object Error]"&&(!Pe||!(typeof t=="object"&&Pe in t))}function ww(t){return Ut(t)==="[object String]"&&(!Pe||!(typeof t=="object"&&Pe in t))}function Sw(t){return Ut(t)==="[object Number]"&&(!Pe||!(typeof t=="object"&&Pe in t))}function Dw(t){return Ut(t)==="[object Boolean]"&&(!Pe||!(typeof t=="object"&&Pe in t))}function Dp(t){if(eo)return t&&typeof t=="object"&&t instanceof Symbol;if(typeof t=="symbol")return!0;if(!t||typeof t!="object"||!tc)return!1;try{return tc.call(t),!0}catch{}return!1}function Tw(t){if(!t||typeof t!="object"||!ec)return!1;try{return ec.call(t),!0}catch{}return!1}var Ow=Object.prototype.hasOwnProperty||function(t){return t in this};function Ot(t,e){return Ow.call(t,e)}function Ut(t){return pw.call(t)}function Mw(t){if(t.name)return t.name;var e=dw.call(mw.call(t),/^function\s*([\w$]+)/);return e?e[1]:null}function Tp(t,e){if(t.indexOf)return t.indexOf(e);for(var r=0,o=t.length;r<o;r++)if(t[r]===e)return r;return-1}function _w(t){if(!ds||!t||typeof t!="object")return!1;try{ds.call(t);try{hs.call(t)}catch{return!0}return t instanceof Map}catch{}return!1}function Aw(t){if(!cn||!t||typeof t!="object")return!1;try{cn.call(t,cn);try{fn.call(t,fn)}catch{return!0}return t instanceof WeakMap}catch{}return!1}function Iw(t){if(!cp||!t||typeof t!="object")return!1;try{return cp.call(t),!0}catch{}return!1}function Ew(t){if(!hs||!t||typeof t!="object")return!1;try{hs.call(t);try{ds.call(t)}catch{return!0}return t instanceof Set}catch{}return!1}function kw(t){if(!fn||!t||typeof t!="object")return!1;try{fn.call(t,fn);try{cn.call(t,cn)}catch{return!0}return t instanceof WeakSet}catch{}return!1}function Pw(t){return!t||typeof t!="object"?!1:typeof HTMLElement<"u"&&t instanceof HTMLElement?!0:typeof t.nodeName=="string"&&typeof t.getAttribute=="function"}function Op(t,e){if(t.length>e.maxStringLength){var r=t.length-e.maxStringLength,o="... "+r+" more character"+(r>1?"s":"");return Op(ac.call(t,0,e.maxStringLength),e)+o}var n=xw[e.quoteStyle||"single"];n.lastIndex=0;var i=Wt.call(Wt.call(t,n,"\\$1"),/[\x00-\x1f]/g,Cw);return Sp(i,"single",e)}function Cw(t){var e=t.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[e];return r?"\\"+r:"\\x"+(e<16?"0":"")+hw.call(e.toString(16))}function un(t){return"Object("+t+")"}function Xu(t){return t+" { ? }"}function gp(t,e,r,o){var n=o?nc(r,o):ut.call(r,", ");return t+" ("+e+") {"+n+"}"}function Nw(t){for(var e=0;e<t.length;e++)if(Tp(t[e],`
2
+ `)>=0)return!1;return!0}function Fw(t,e){var r;if(t.indent===" ")r=" ";else if(typeof t.indent=="number"&&t.indent>0)r=ut.call(Array(t.indent+1)," ");else return null;return{base:r,prev:ut.call(Array(e+1),r)}}function nc(t,e){if(t.length===0)return"";var r=`
3
+ `+e.prev+e.base;return r+ut.call(t,","+r)+`
4
+ `+e.prev}function ms(t,e){var r=oc(t),o=[];if(r){o.length=t.length;for(var n=0;n<t.length;n++)o[n]=Ot(t,n)?e(t[n],t):""}var i=typeof Zu=="function"?Zu(t):[],s;if(eo){s={};for(var a=0;a<i.length;a++)s["$"+i[a]]=i[a]}for(var u in t)Ot(t,u)&&(r&&String(Number(u))===u&&u<t.length||eo&&s["$"+u]instanceof Symbol||(bp.call(/[^\w$]/,u)?o.push(e(u,t)+": "+e(t[u],t)):o.push(u+": "+e(t[u],t))));if(typeof Zu=="function")for(var c=0;c<i.length;c++)vp.call(t,i[c])&&o.push("["+e(i[c])+"]: "+e(t[i[c]],t));return o}});var Ap=I(($V,_p)=>{"use strict";var $w=ln(),Rw=xr(),ys=function(t,e,r){for(var o=t,n;(n=o.next)!=null;o=n)if(n.key===e)return o.next=n.next,r||(n.next=t.next,t.next=n),n},Ww=function(t,e){if(t){var r=ys(t,e);return r&&r.value}},Uw=function(t,e,r){var o=ys(t,e);o?o.value=r:t.next={key:e,next:t.next,value:r}},Lw=function(t,e){return t?!!ys(t,e):!1},Bw=function(t,e){if(t)return ys(t,e,!0)};_p.exports=function(){var e,r={assert:function(o){if(!r.has(o))throw new Rw("Side channel does not contain "+$w(o))},delete:function(o){var n=e&&e.next,i=Bw(e,o);return i&&n&&n===i&&(e=void 0),!!i},get:function(o){return Ww(e,o)},has:function(o){return Lw(e,o)},set:function(o,n){e||(e={next:void 0}),Uw(e,o,n)}};return r}});var uc=I((RV,Ip)=>{"use strict";Ip.exports=Object});var kp=I((WV,Ep)=>{"use strict";Ep.exports=Error});var Cp=I((UV,Pp)=>{"use strict";Pp.exports=EvalError});var Fp=I((LV,Np)=>{"use strict";Np.exports=RangeError});var Rp=I((BV,$p)=>{"use strict";$p.exports=ReferenceError});var Up=I((YV,Wp)=>{"use strict";Wp.exports=SyntaxError});var Bp=I((qV,Lp)=>{"use strict";Lp.exports=URIError});var qp=I((HV,Yp)=>{"use strict";Yp.exports=Math.abs});var jp=I((jV,Hp)=>{"use strict";Hp.exports=Math.floor});var Vp=I((zV,zp)=>{"use strict";zp.exports=Math.max});var Kp=I((VV,Gp)=>{"use strict";Gp.exports=Math.min});var Jp=I((GV,Qp)=>{"use strict";Qp.exports=Math.pow});var Xp=I((KV,Zp)=>{"use strict";Zp.exports=Math.round});var tm=I((QV,em)=>{"use strict";em.exports=Number.isNaN||function(e){return e!==e}});var om=I((JV,rm)=>{"use strict";var Yw=tm();rm.exports=function(e){return Yw(e)||e===0?e:e<0?-1:1}});var im=I((ZV,nm)=>{"use strict";nm.exports=Object.getOwnPropertyDescriptor});var cc=I((XV,sm)=>{"use strict";var xs=im();if(xs)try{xs([],"length")}catch{xs=null}sm.exports=xs});var um=I((eG,am)=>{"use strict";var gs=Object.defineProperty||!1;if(gs)try{gs({},"a",{value:1})}catch{gs=!1}am.exports=gs});var fm=I((tG,cm)=>{"use strict";cm.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var e={},r=Symbol("test"),o=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(o)!=="[object Symbol]")return!1;var n=42;e[r]=n;for(var i in e)return!1;if(typeof Object.keys=="function"&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(e).length!==0)return!1;var s=Object.getOwnPropertySymbols(e);if(s.length!==1||s[0]!==r||!Object.prototype.propertyIsEnumerable.call(e,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var a=Object.getOwnPropertyDescriptor(e,r);if(a.value!==n||a.enumerable!==!0)return!1}return!0}});var mm=I((rG,pm)=>{"use strict";var lm=typeof Symbol<"u"&&Symbol,qw=fm();pm.exports=function(){return typeof lm!="function"||typeof Symbol!="function"||typeof lm("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:qw()}});var fc=I((oG,dm)=>{"use strict";dm.exports=typeof Reflect<"u"&&Reflect.getPrototypeOf||null});var lc=I((nG,hm)=>{"use strict";var Hw=uc();hm.exports=Hw.getPrototypeOf||null});var gm=I((iG,xm)=>{"use strict";var jw="Function.prototype.bind called on incompatible ",zw=Object.prototype.toString,Vw=Math.max,Gw="[object Function]",ym=function(e,r){for(var o=[],n=0;n<e.length;n+=1)o[n]=e[n];for(var i=0;i<r.length;i+=1)o[i+e.length]=r[i];return o},Kw=function(e,r){for(var o=[],n=r||0,i=0;n<e.length;n+=1,i+=1)o[i]=e[n];return o},Qw=function(t,e){for(var r="",o=0;o<t.length;o+=1)r+=t[o],o+1<t.length&&(r+=e);return r};xm.exports=function(e){var r=this;if(typeof r!="function"||zw.apply(r)!==Gw)throw new TypeError(jw+r);for(var o=Kw(arguments,1),n,i=function(){if(this instanceof n){var f=r.apply(this,ym(o,arguments));return Object(f)===f?f:this}return r.apply(e,ym(o,arguments))},s=Vw(0,r.length-o.length),a=[],u=0;u<s;u++)a[u]="$"+u;if(n=Function("binder","return function ("+Qw(a,",")+"){ return binder.apply(this,arguments); }")(i),r.prototype){var c=function(){};c.prototype=r.prototype,n.prototype=new c,c.prototype=null}return n}});var pn=I((sG,bm)=>{"use strict";var Jw=gm();bm.exports=Function.prototype.bind||Jw});var bs=I((aG,vm)=>{"use strict";vm.exports=Function.prototype.call});var pc=I((uG,wm)=>{"use strict";wm.exports=Function.prototype.apply});var Dm=I((cG,Sm)=>{"use strict";Sm.exports=typeof Reflect<"u"&&Reflect&&Reflect.apply});var Om=I((fG,Tm)=>{"use strict";var Zw=pn(),Xw=pc(),eS=bs(),tS=Dm();Tm.exports=tS||Zw.call(eS,Xw)});var mc=I((lG,Mm)=>{"use strict";var rS=pn(),oS=xr(),nS=bs(),iS=Om();Mm.exports=function(e){if(e.length<1||typeof e[0]!="function")throw new oS("a function is required");return iS(rS,nS,e)}});var Pm=I((pG,km)=>{"use strict";var sS=mc(),_m=cc(),Im;try{Im=[].__proto__===Array.prototype}catch(t){if(!t||typeof t!="object"||!("code"in t)||t.code!=="ERR_PROTO_ACCESS")throw t}var dc=!!Im&&_m&&_m(Object.prototype,"__proto__"),Em=Object,Am=Em.getPrototypeOf;km.exports=dc&&typeof dc.get=="function"?sS([dc.get]):typeof Am=="function"?function(e){return Am(e==null?e:Em(e))}:!1});var Rm=I((mG,$m)=>{"use strict";var Cm=fc(),Nm=lc(),Fm=Pm();$m.exports=Cm?function(e){return Cm(e)}:Nm?function(e){if(!e||typeof e!="object"&&typeof e!="function")throw new TypeError("getProto: not an object");return Nm(e)}:Fm?function(e){return Fm(e)}:null});var Um=I((dG,Wm)=>{"use strict";var aS=Function.prototype.call,uS=Object.prototype.hasOwnProperty,cS=pn();Wm.exports=cS.call(aS,uS)});var Ss=I((hG,jm)=>{"use strict";var Y,fS=uc(),lS=kp(),pS=Cp(),mS=Fp(),dS=Rp(),no=Up(),oo=xr(),hS=Bp(),yS=qp(),xS=jp(),gS=Vp(),bS=Kp(),vS=Jp(),wS=Xp(),SS=om(),qm=Function,hc=function(t){try{return qm('"use strict"; return ('+t+").constructor;")()}catch{}},mn=cc(),DS=um(),yc=function(){throw new oo},TS=mn?function(){try{return arguments.callee,yc}catch{try{return mn(arguments,"callee").get}catch{return yc}}}():yc,to=mm()(),we=Rm(),OS=lc(),MS=fc(),Hm=pc(),dn=bs(),ro={},_S=typeof Uint8Array>"u"||!we?Y:we(Uint8Array),gr={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?Y:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?Y:ArrayBuffer,"%ArrayIteratorPrototype%":to&&we?we([][Symbol.iterator]()):Y,"%AsyncFromSyncIteratorPrototype%":Y,"%AsyncFunction%":ro,"%AsyncGenerator%":ro,"%AsyncGeneratorFunction%":ro,"%AsyncIteratorPrototype%":ro,"%Atomics%":typeof Atomics>"u"?Y:Atomics,"%BigInt%":typeof BigInt>"u"?Y:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?Y:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?Y:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?Y:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":lS,"%eval%":eval,"%EvalError%":pS,"%Float32Array%":typeof Float32Array>"u"?Y:Float32Array,"%Float64Array%":typeof Float64Array>"u"?Y:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?Y:FinalizationRegistry,"%Function%":qm,"%GeneratorFunction%":ro,"%Int8Array%":typeof Int8Array>"u"?Y:Int8Array,"%Int16Array%":typeof Int16Array>"u"?Y:Int16Array,"%Int32Array%":typeof Int32Array>"u"?Y:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":to&&we?we(we([][Symbol.iterator]())):Y,"%JSON%":typeof JSON=="object"?JSON:Y,"%Map%":typeof Map>"u"?Y:Map,"%MapIteratorPrototype%":typeof Map>"u"||!to||!we?Y:we(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":fS,"%Object.getOwnPropertyDescriptor%":mn,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?Y:Promise,"%Proxy%":typeof Proxy>"u"?Y:Proxy,"%RangeError%":mS,"%ReferenceError%":dS,"%Reflect%":typeof Reflect>"u"?Y:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?Y:Set,"%SetIteratorPrototype%":typeof Set>"u"||!to||!we?Y:we(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?Y:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":to&&we?we(""[Symbol.iterator]()):Y,"%Symbol%":to?Symbol:Y,"%SyntaxError%":no,"%ThrowTypeError%":TS,"%TypedArray%":_S,"%TypeError%":oo,"%Uint8Array%":typeof Uint8Array>"u"?Y:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?Y:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?Y:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?Y:Uint32Array,"%URIError%":hS,"%WeakMap%":typeof WeakMap>"u"?Y:WeakMap,"%WeakRef%":typeof WeakRef>"u"?Y:WeakRef,"%WeakSet%":typeof WeakSet>"u"?Y:WeakSet,"%Function.prototype.call%":dn,"%Function.prototype.apply%":Hm,"%Object.defineProperty%":DS,"%Object.getPrototypeOf%":OS,"%Math.abs%":yS,"%Math.floor%":xS,"%Math.max%":gS,"%Math.min%":bS,"%Math.pow%":vS,"%Math.round%":wS,"%Math.sign%":SS,"%Reflect.getPrototypeOf%":MS};if(we)try{null.error}catch(t){Lm=we(we(t)),gr["%Error.prototype%"]=Lm}var Lm,AS=function t(e){var r;if(e==="%AsyncFunction%")r=hc("async function () {}");else if(e==="%GeneratorFunction%")r=hc("function* () {}");else if(e==="%AsyncGeneratorFunction%")r=hc("async function* () {}");else if(e==="%AsyncGenerator%"){var o=t("%AsyncGeneratorFunction%");o&&(r=o.prototype)}else if(e==="%AsyncIteratorPrototype%"){var n=t("%AsyncGenerator%");n&&we&&(r=we(n.prototype))}return gr[e]=r,r},Bm={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},hn=pn(),vs=Um(),IS=hn.call(dn,Array.prototype.concat),ES=hn.call(Hm,Array.prototype.splice),Ym=hn.call(dn,String.prototype.replace),ws=hn.call(dn,String.prototype.slice),kS=hn.call(dn,RegExp.prototype.exec),PS=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,CS=/\\(\\)?/g,NS=function(e){var r=ws(e,0,1),o=ws(e,-1);if(r==="%"&&o!=="%")throw new no("invalid intrinsic syntax, expected closing `%`");if(o==="%"&&r!=="%")throw new no("invalid intrinsic syntax, expected opening `%`");var n=[];return Ym(e,PS,function(i,s,a,u){n[n.length]=a?Ym(u,CS,"$1"):s||i}),n},FS=function(e,r){var o=e,n;if(vs(Bm,o)&&(n=Bm[o],o="%"+n[0]+"%"),vs(gr,o)){var i=gr[o];if(i===ro&&(i=AS(o)),typeof i>"u"&&!r)throw new oo("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:o,value:i}}throw new no("intrinsic "+e+" does not exist!")};jm.exports=function(e,r){if(typeof e!="string"||e.length===0)throw new oo("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new oo('"allowMissing" argument must be a boolean');if(kS(/^%?[^%]*%?$/,e)===null)throw new no("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var o=NS(e),n=o.length>0?o[0]:"",i=FS("%"+n+"%",r),s=i.name,a=i.value,u=!1,c=i.alias;c&&(n=c[0],ES(o,IS([0,1],c)));for(var f=1,m=!0;f<o.length;f+=1){var p=o[f],d=ws(p,0,1),y=ws(p,-1);if((d==='"'||d==="'"||d==="`"||y==='"'||y==="'"||y==="`")&&d!==y)throw new no("property names with quotes must have matching quotes");if((p==="constructor"||!m)&&(u=!0),n+="."+p,s="%"+n+"%",vs(gr,s))a=gr[s];else if(a!=null){if(!(p in a)){if(!r)throw new oo("base intrinsic for "+e+" exists, but the property is not available.");return}if(mn&&f+1>=o.length){var w=mn(a,p);m=!!w,m&&"get"in w&&!("originalValue"in w.get)?a=w.get:a=a[p]}else m=vs(a,p),a=a[p];m&&!u&&(gr[s]=a)}}return a}});var xc=I((yG,Gm)=>{"use strict";var zm=Ss(),Vm=mc(),$S=Vm([zm("%String.prototype.indexOf%")]);Gm.exports=function(e,r){var o=zm(e,!!r);return typeof o=="function"&&$S(e,".prototype.")>-1?Vm([o]):o}});var gc=I((xG,Qm)=>{"use strict";var RS=Ss(),yn=xc(),WS=ln(),US=xr(),Km=RS("%Map%",!0),LS=yn("Map.prototype.get",!0),BS=yn("Map.prototype.set",!0),YS=yn("Map.prototype.has",!0),qS=yn("Map.prototype.delete",!0),HS=yn("Map.prototype.size",!0);Qm.exports=!!Km&&function(){var e,r={assert:function(o){if(!r.has(o))throw new US("Side channel does not contain "+WS(o))},delete:function(o){if(e){var n=qS(e,o);return HS(e)===0&&(e=void 0),n}return!1},get:function(o){if(e)return LS(e,o)},has:function(o){return e?YS(e,o):!1},set:function(o,n){e||(e=new Km),BS(e,o,n)}};return r}});var Zm=I((gG,Jm)=>{"use strict";var jS=Ss(),Ts=xc(),zS=ln(),Ds=gc(),VS=xr(),io=jS("%WeakMap%",!0),GS=Ts("WeakMap.prototype.get",!0),KS=Ts("WeakMap.prototype.set",!0),QS=Ts("WeakMap.prototype.has",!0),JS=Ts("WeakMap.prototype.delete",!0);Jm.exports=io?function(){var e,r,o={assert:function(n){if(!o.has(n))throw new VS("Side channel does not contain "+zS(n))},delete:function(n){if(io&&n&&(typeof n=="object"||typeof n=="function")){if(e)return JS(e,n)}else if(Ds&&r)return r.delete(n);return!1},get:function(n){return io&&n&&(typeof n=="object"||typeof n=="function")&&e?GS(e,n):r&&r.get(n)},has:function(n){return io&&n&&(typeof n=="object"||typeof n=="function")&&e?QS(e,n):!!r&&r.has(n)},set:function(n,i){io&&n&&(typeof n=="object"||typeof n=="function")?(e||(e=new io),KS(e,n,i)):Ds&&(r||(r=Ds()),r.set(n,i))}};return o}:Ds});var ed=I((bG,Xm)=>{"use strict";var ZS=xr(),XS=ln(),eD=Ap(),tD=gc(),rD=Zm(),oD=rD||tD||eD;Xm.exports=function(){var e,r={assert:function(o){if(!r.has(o))throw new ZS("Side channel does not contain "+XS(o))},delete:function(o){return!!e&&e.delete(o)},get:function(o){return e&&e.get(o)},has:function(o){return!!e&&e.has(o)},set:function(o,n){e||(e=oD()),e.set(o,n)}};return r}});var Os=I((vG,td)=>{"use strict";var nD=String.prototype.replace,iD=/%20/g,bc={RFC1738:"RFC1738",RFC3986:"RFC3986"};td.exports={default:bc.RFC3986,formatters:{RFC1738:function(t){return nD.call(t,iD,"+")},RFC3986:function(t){return String(t)}},RFC1738:bc.RFC1738,RFC3986:bc.RFC3986}});var Sc=I((wG,od)=>{"use strict";var sD=Os(),vc=Object.prototype.hasOwnProperty,br=Array.isArray,ct=function(){for(var t=[],e=0;e<256;++e)t.push("%"+((e<16?"0":"")+e.toString(16)).toUpperCase());return t}(),aD=function(e){for(;e.length>1;){var r=e.pop(),o=r.obj[r.prop];if(br(o)){for(var n=[],i=0;i<o.length;++i)typeof o[i]<"u"&&n.push(o[i]);r.obj[r.prop]=n}}},rd=function(e,r){for(var o=r&&r.plainObjects?{__proto__:null}:{},n=0;n<e.length;++n)typeof e[n]<"u"&&(o[n]=e[n]);return o},uD=function t(e,r,o){if(!r)return e;if(typeof r!="object"&&typeof r!="function"){if(br(e))e.push(r);else if(e&&typeof e=="object")(o&&(o.plainObjects||o.allowPrototypes)||!vc.call(Object.prototype,r))&&(e[r]=!0);else return[e,r];return e}if(!e||typeof e!="object")return[e].concat(r);var n=e;return br(e)&&!br(r)&&(n=rd(e,o)),br(e)&&br(r)?(r.forEach(function(i,s){if(vc.call(e,s)){var a=e[s];a&&typeof a=="object"&&i&&typeof i=="object"?e[s]=t(a,i,o):e.push(i)}else e[s]=i}),e):Object.keys(r).reduce(function(i,s){var a=r[s];return vc.call(i,s)?i[s]=t(i[s],a,o):i[s]=a,i},n)},cD=function(e,r){return Object.keys(r).reduce(function(o,n){return o[n]=r[n],o},e)},fD=function(t,e,r){var o=t.replace(/\+/g," ");if(r==="iso-8859-1")return o.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(o)}catch{return o}},wc=1024,lD=function(e,r,o,n,i){if(e.length===0)return e;var s=e;if(typeof e=="symbol"?s=Symbol.prototype.toString.call(e):typeof e!="string"&&(s=String(e)),o==="iso-8859-1")return escape(s).replace(/%u[0-9a-f]{4}/gi,function(d){return"%26%23"+parseInt(d.slice(2),16)+"%3B"});for(var a="",u=0;u<s.length;u+=wc){for(var c=s.length>=wc?s.slice(u,u+wc):s,f=[],m=0;m<c.length;++m){var p=c.charCodeAt(m);if(p===45||p===46||p===95||p===126||p>=48&&p<=57||p>=65&&p<=90||p>=97&&p<=122||i===sD.RFC1738&&(p===40||p===41)){f[f.length]=c.charAt(m);continue}if(p<128){f[f.length]=ct[p];continue}if(p<2048){f[f.length]=ct[192|p>>6]+ct[128|p&63];continue}if(p<55296||p>=57344){f[f.length]=ct[224|p>>12]+ct[128|p>>6&63]+ct[128|p&63];continue}m+=1,p=65536+((p&1023)<<10|c.charCodeAt(m)&1023),f[f.length]=ct[240|p>>18]+ct[128|p>>12&63]+ct[128|p>>6&63]+ct[128|p&63]}a+=f.join("")}return a},pD=function(e){for(var r=[{obj:{o:e},prop:"o"}],o=[],n=0;n<r.length;++n)for(var i=r[n],s=i.obj[i.prop],a=Object.keys(s),u=0;u<a.length;++u){var c=a[u],f=s[c];typeof f=="object"&&f!==null&&o.indexOf(f)===-1&&(r.push({obj:s,prop:c}),o.push(f))}return aD(r),e},mD=function(e){return Object.prototype.toString.call(e)==="[object RegExp]"},dD=function(e){return!e||typeof e!="object"?!1:!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},hD=function(e,r){return[].concat(e,r)},yD=function(e,r){if(br(e)){for(var o=[],n=0;n<e.length;n+=1)o.push(r(e[n]));return o}return r(e)};od.exports={arrayToObject:rd,assign:cD,combine:hD,compact:pD,decode:fD,encode:lD,isBuffer:dD,isRegExp:mD,maybeMap:yD,merge:uD}});var cd=I((SG,ud)=>{"use strict";var id=ed(),Ms=Sc(),xn=Os(),xD=Object.prototype.hasOwnProperty,sd={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,r){return e+"["+r+"]"},repeat:function(e){return e}},ft=Array.isArray,gD=Array.prototype.push,ad=function(t,e){gD.apply(t,ft(e)?e:[e])},bD=Date.prototype.toISOString,nd=xn.default,me={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,commaRoundTrip:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:Ms.encode,encodeValuesOnly:!1,filter:void 0,format:nd,formatter:xn.formatters[nd],indices:!1,serializeDate:function(e){return bD.call(e)},skipNulls:!1,strictNullHandling:!1},vD=function(e){return typeof e=="string"||typeof e=="number"||typeof e=="boolean"||typeof e=="symbol"||typeof e=="bigint"},Dc={},wD=function t(e,r,o,n,i,s,a,u,c,f,m,p,d,y,w,g,A,D){for(var T=e,L=D,V=0,z=!1;(L=L.get(Dc))!==void 0&&!z;){var de=L.get(e);if(V+=1,typeof de<"u"){if(de===V)throw new RangeError("Cyclic object value");z=!0}typeof L.get(Dc)>"u"&&(V=0)}if(typeof f=="function"?T=f(r,T):T instanceof Date?T=d(T):o==="comma"&&ft(T)&&(T=Ms.maybeMap(T,function(k){return k instanceof Date?d(k):k})),T===null){if(s)return c&&!g?c(r,me.encoder,A,"key",y):r;T=""}if(vD(T)||Ms.isBuffer(T)){if(c){var q=g?r:c(r,me.encoder,A,"key",y);return[w(q)+"="+w(c(T,me.encoder,A,"value",y))]}return[w(r)+"="+w(String(T))]}var N=[];if(typeof T>"u")return N;var se;if(o==="comma"&&ft(T))g&&c&&(T=Ms.maybeMap(T,c)),se=[{value:T.length>0?T.join(",")||null:void 0}];else if(ft(f))se=f;else{var Le=Object.keys(T);se=m?Le.sort(m):Le}var P=u?String(r).replace(/\./g,"%2E"):String(r),v=n&&ft(T)&&T.length===1?P+"[]":P;if(i&&ft(T)&&T.length===0)return v+"[]";for(var b=0;b<se.length;++b){var M=se[b],S=typeof M=="object"&&M&&typeof M.value<"u"?M.value:T[M];if(!(a&&S===null)){var F=p&&u?String(M).replace(/\./g,"%2E"):String(M),x=ft(T)?typeof o=="function"?o(v,F):v:v+(p?"."+F:"["+F+"]");D.set(e,V);var O=id();O.set(Dc,D),ad(N,t(S,x,o,n,i,s,a,u,o==="comma"&&g&&ft(T)?null:c,f,m,p,d,y,w,g,A,O))}}return N},SD=function(e){if(!e)return me;if(typeof e.allowEmptyArrays<"u"&&typeof e.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof e.encodeDotInKeys<"u"&&typeof e.encodeDotInKeys!="boolean")throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(e.encoder!==null&&typeof e.encoder<"u"&&typeof e.encoder!="function")throw new TypeError("Encoder has to be a function.");var r=e.charset||me.charset;if(typeof e.charset<"u"&&e.charset!=="utf-8"&&e.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var o=xn.default;if(typeof e.format<"u"){if(!xD.call(xn.formatters,e.format))throw new TypeError("Unknown format option provided.");o=e.format}var n=xn.formatters[o],i=me.filter;(typeof e.filter=="function"||ft(e.filter))&&(i=e.filter);var s;if(e.arrayFormat in sd?s=e.arrayFormat:"indices"in e?s=e.indices?"indices":"repeat":s=me.arrayFormat,"commaRoundTrip"in e&&typeof e.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var a=typeof e.allowDots>"u"?e.encodeDotInKeys===!0?!0:me.allowDots:!!e.allowDots;return{addQueryPrefix:typeof e.addQueryPrefix=="boolean"?e.addQueryPrefix:me.addQueryPrefix,allowDots:a,allowEmptyArrays:typeof e.allowEmptyArrays=="boolean"?!!e.allowEmptyArrays:me.allowEmptyArrays,arrayFormat:s,charset:r,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:me.charsetSentinel,commaRoundTrip:!!e.commaRoundTrip,delimiter:typeof e.delimiter>"u"?me.delimiter:e.delimiter,encode:typeof e.encode=="boolean"?e.encode:me.encode,encodeDotInKeys:typeof e.encodeDotInKeys=="boolean"?e.encodeDotInKeys:me.encodeDotInKeys,encoder:typeof e.encoder=="function"?e.encoder:me.encoder,encodeValuesOnly:typeof e.encodeValuesOnly=="boolean"?e.encodeValuesOnly:me.encodeValuesOnly,filter:i,format:o,formatter:n,serializeDate:typeof e.serializeDate=="function"?e.serializeDate:me.serializeDate,skipNulls:typeof e.skipNulls=="boolean"?e.skipNulls:me.skipNulls,sort:typeof e.sort=="function"?e.sort:null,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:me.strictNullHandling}};ud.exports=function(t,e){var r=t,o=SD(e),n,i;typeof o.filter=="function"?(i=o.filter,r=i("",r)):ft(o.filter)&&(i=o.filter,n=i);var s=[];if(typeof r!="object"||r===null)return"";var a=sd[o.arrayFormat],u=a==="comma"&&o.commaRoundTrip;n||(n=Object.keys(r)),o.sort&&n.sort(o.sort);for(var c=id(),f=0;f<n.length;++f){var m=n[f],p=r[m];o.skipNulls&&p===null||ad(s,wD(p,m,a,u,o.allowEmptyArrays,o.strictNullHandling,o.skipNulls,o.encodeDotInKeys,o.encode?o.encoder:null,o.filter,o.sort,o.allowDots,o.serializeDate,o.format,o.formatter,o.encodeValuesOnly,o.charset,c))}var d=s.join(o.delimiter),y=o.addQueryPrefix===!0?"?":"";return o.charsetSentinel&&(o.charset==="iso-8859-1"?y+="utf8=%26%2310003%3B&":y+="utf8=%E2%9C%93&"),d.length>0?y+d:""}});var pd=I((DG,ld)=>{"use strict";var so=Sc(),Tc=Object.prototype.hasOwnProperty,DD=Array.isArray,ue={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:so.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1},TD=function(t){return t.replace(/&#(\d+);/g,function(e,r){return String.fromCharCode(parseInt(r,10))})},fd=function(t,e){return t&&typeof t=="string"&&e.comma&&t.indexOf(",")>-1?t.split(","):t},OD="utf8=%26%2310003%3B",MD="utf8=%E2%9C%93",_D=function(e,r){var o={__proto__:null},n=r.ignoreQueryPrefix?e.replace(/^\?/,""):e;n=n.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var i=r.parameterLimit===1/0?void 0:r.parameterLimit,s=n.split(r.delimiter,i),a=-1,u,c=r.charset;if(r.charsetSentinel)for(u=0;u<s.length;++u)s[u].indexOf("utf8=")===0&&(s[u]===MD?c="utf-8":s[u]===OD&&(c="iso-8859-1"),a=u,u=s.length);for(u=0;u<s.length;++u)if(u!==a){var f=s[u],m=f.indexOf("]="),p=m===-1?f.indexOf("="):m+1,d,y;p===-1?(d=r.decoder(f,ue.decoder,c,"key"),y=r.strictNullHandling?null:""):(d=r.decoder(f.slice(0,p),ue.decoder,c,"key"),y=so.maybeMap(fd(f.slice(p+1),r),function(g){return r.decoder(g,ue.decoder,c,"value")})),y&&r.interpretNumericEntities&&c==="iso-8859-1"&&(y=TD(String(y))),f.indexOf("[]=")>-1&&(y=DD(y)?[y]:y);var w=Tc.call(o,d);w&&r.duplicates==="combine"?o[d]=so.combine(o[d],y):(!w||r.duplicates==="last")&&(o[d]=y)}return o},AD=function(t,e,r,o){for(var n=o?e:fd(e,r),i=t.length-1;i>=0;--i){var s,a=t[i];if(a==="[]"&&r.parseArrays)s=r.allowEmptyArrays&&(n===""||r.strictNullHandling&&n===null)?[]:[].concat(n);else{s=r.plainObjects?{__proto__:null}:{};var u=a.charAt(0)==="["&&a.charAt(a.length-1)==="]"?a.slice(1,-1):a,c=r.decodeDotInKeys?u.replace(/%2E/g,"."):u,f=parseInt(c,10);!r.parseArrays&&c===""?s={0:n}:!isNaN(f)&&a!==c&&String(f)===c&&f>=0&&r.parseArrays&&f<=r.arrayLimit?(s=[],s[f]=n):c!=="__proto__"&&(s[c]=n)}n=s}return n},ID=function(e,r,o,n){if(e){var i=o.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,s=/(\[[^[\]]*])/,a=/(\[[^[\]]*])/g,u=o.depth>0&&s.exec(i),c=u?i.slice(0,u.index):i,f=[];if(c){if(!o.plainObjects&&Tc.call(Object.prototype,c)&&!o.allowPrototypes)return;f.push(c)}for(var m=0;o.depth>0&&(u=a.exec(i))!==null&&m<o.depth;){if(m+=1,!o.plainObjects&&Tc.call(Object.prototype,u[1].slice(1,-1))&&!o.allowPrototypes)return;f.push(u[1])}if(u){if(o.strictDepth===!0)throw new RangeError("Input depth exceeded depth option of "+o.depth+" and strictDepth is true");f.push("["+i.slice(u.index)+"]")}return AD(f,r,o,n)}},ED=function(e){if(!e)return ue;if(typeof e.allowEmptyArrays<"u"&&typeof e.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof e.decodeDotInKeys<"u"&&typeof e.decodeDotInKeys!="boolean")throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(e.decoder!==null&&typeof e.decoder<"u"&&typeof e.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof e.charset<"u"&&e.charset!=="utf-8"&&e.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var r=typeof e.charset>"u"?ue.charset:e.charset,o=typeof e.duplicates>"u"?ue.duplicates:e.duplicates;if(o!=="combine"&&o!=="first"&&o!=="last")throw new TypeError("The duplicates option must be either combine, first, or last");var n=typeof e.allowDots>"u"?e.decodeDotInKeys===!0?!0:ue.allowDots:!!e.allowDots;return{allowDots:n,allowEmptyArrays:typeof e.allowEmptyArrays=="boolean"?!!e.allowEmptyArrays:ue.allowEmptyArrays,allowPrototypes:typeof e.allowPrototypes=="boolean"?e.allowPrototypes:ue.allowPrototypes,allowSparse:typeof e.allowSparse=="boolean"?e.allowSparse:ue.allowSparse,arrayLimit:typeof e.arrayLimit=="number"?e.arrayLimit:ue.arrayLimit,charset:r,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:ue.charsetSentinel,comma:typeof e.comma=="boolean"?e.comma:ue.comma,decodeDotInKeys:typeof e.decodeDotInKeys=="boolean"?e.decodeDotInKeys:ue.decodeDotInKeys,decoder:typeof e.decoder=="function"?e.decoder:ue.decoder,delimiter:typeof e.delimiter=="string"||so.isRegExp(e.delimiter)?e.delimiter:ue.delimiter,depth:typeof e.depth=="number"||e.depth===!1?+e.depth:ue.depth,duplicates:o,ignoreQueryPrefix:e.ignoreQueryPrefix===!0,interpretNumericEntities:typeof e.interpretNumericEntities=="boolean"?e.interpretNumericEntities:ue.interpretNumericEntities,parameterLimit:typeof e.parameterLimit=="number"?e.parameterLimit:ue.parameterLimit,parseArrays:e.parseArrays!==!1,plainObjects:typeof e.plainObjects=="boolean"?e.plainObjects:ue.plainObjects,strictDepth:typeof e.strictDepth=="boolean"?!!e.strictDepth:ue.strictDepth,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:ue.strictNullHandling}};ld.exports=function(t,e){var r=ED(e);if(t===""||t===null||typeof t>"u")return r.plainObjects?{__proto__:null}:{};for(var o=typeof t=="string"?_D(t,r):t,n=r.plainObjects?{__proto__:null}:{},i=Object.keys(o),s=0;s<i.length;++s){var a=i[s],u=ID(a,o[a],r,typeof t=="string");n=so.merge(n,u,r)}return r.allowSparse===!0?n:so.compact(n)}});var dd=I((TG,md)=>{"use strict";var kD=cd(),PD=pd(),CD=Os();md.exports={formats:CD,parse:PD,stringify:kD}});var gd=I(uo=>{"use strict";var ND=np();function Je(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}var FD=/^([a-z0-9.+-]+:)/i,$D=/:[0-9]*$/,RD=/^(\/\/?(?!\/)[^?\s]*)(\?[^\s]*)?$/,WD=["<",">",'"',"`"," ","\r",`
5
+ `," "],UD=["{","}","|","\\","^","`"].concat(WD),Oc=["'"].concat(UD),hd=["%","/","?",";","#"].concat(Oc),yd=["/","?","#"],LD=255,xd=/^[+a-z0-9A-Z_-]{0,63}$/,BD=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,YD={javascript:!0,"javascript:":!0},Mc={javascript:!0,"javascript:":!0},ao={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},_c=dd();function gn(t,e,r){if(t&&typeof t=="object"&&t instanceof Je)return t;var o=new Je;return o.parse(t,e,r),o}Je.prototype.parse=function(t,e,r){if(typeof t!="string")throw new TypeError("Parameter 'url' must be a string, not "+typeof t);var o=t.indexOf("?"),n=o!==-1&&o<t.indexOf("#")?"?":"#",i=t.split(n),s=/\\/g;i[0]=i[0].replace(s,"/"),t=i.join(n);var a=t;if(a=a.trim(),!r&&t.split("#").length===1){var u=RD.exec(a);if(u)return this.path=a,this.href=a,this.pathname=u[1],u[2]?(this.search=u[2],e?this.query=_c.parse(this.search.substr(1)):this.query=this.search.substr(1)):e&&(this.search="",this.query={}),this}var c=FD.exec(a);if(c){c=c[0];var f=c.toLowerCase();this.protocol=f,a=a.substr(c.length)}if(r||c||a.match(/^\/\/[^@/]+@[^@/]+/)){var m=a.substr(0,2)==="//";m&&!(c&&Mc[c])&&(a=a.substr(2),this.slashes=!0)}if(!Mc[c]&&(m||c&&!ao[c])){for(var p=-1,d=0;d<yd.length;d++){var y=a.indexOf(yd[d]);y!==-1&&(p===-1||y<p)&&(p=y)}var w,g;p===-1?g=a.lastIndexOf("@"):g=a.lastIndexOf("@",p),g!==-1&&(w=a.slice(0,g),a=a.slice(g+1),this.auth=decodeURIComponent(w)),p=-1;for(var d=0;d<hd.length;d++){var y=a.indexOf(hd[d]);y!==-1&&(p===-1||y<p)&&(p=y)}p===-1&&(p=a.length),this.host=a.slice(0,p),a=a.slice(p),this.parseHost(),this.hostname=this.hostname||"";var A=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!A)for(var D=this.hostname.split(/\./),d=0,T=D.length;d<T;d++){var L=D[d];if(L&&!L.match(xd)){for(var V="",z=0,de=L.length;z<de;z++)L.charCodeAt(z)>127?V+="x":V+=L[z];if(!V.match(xd)){var q=D.slice(0,d),N=D.slice(d+1),se=L.match(BD);se&&(q.push(se[1]),N.unshift(se[2])),N.length&&(a="/"+N.join(".")+a),this.hostname=q.join(".");break}}}this.hostname.length>LD?this.hostname="":this.hostname=this.hostname.toLowerCase(),A||(this.hostname=ND.toASCII(this.hostname));var Le=this.port?":"+this.port:"",P=this.hostname||"";this.host=P+Le,this.href+=this.host,A&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),a[0]!=="/"&&(a="/"+a))}if(!YD[f])for(var d=0,T=Oc.length;d<T;d++){var v=Oc[d];if(a.indexOf(v)!==-1){var b=encodeURIComponent(v);b===v&&(b=escape(v)),a=a.split(v).join(b)}}var M=a.indexOf("#");M!==-1&&(this.hash=a.substr(M),a=a.slice(0,M));var S=a.indexOf("?");if(S!==-1?(this.search=a.substr(S),this.query=a.substr(S+1),e&&(this.query=_c.parse(this.query)),a=a.slice(0,S)):e&&(this.search="",this.query={}),a&&(this.pathname=a),ao[f]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var Le=this.pathname||"",F=this.search||"";this.path=Le+F}return this.href=this.format(),this};function qD(t){return typeof t=="string"&&(t=gn(t)),t instanceof Je?t.format():Je.prototype.format.call(t)}Je.prototype.format=function(){var t=this.auth||"";t&&(t=encodeURIComponent(t),t=t.replace(/%3A/i,":"),t+="@");var e=this.protocol||"",r=this.pathname||"",o=this.hash||"",n=!1,i="";this.host?n=t+this.host:this.hostname&&(n=t+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(n+=":"+this.port)),this.query&&typeof this.query=="object"&&Object.keys(this.query).length&&(i=_c.stringify(this.query,{arrayFormat:"repeat",addQueryPrefix:!1}));var s=this.search||i&&"?"+i||"";return e&&e.substr(-1)!==":"&&(e+=":"),this.slashes||(!e||ao[e])&&n!==!1?(n="//"+(n||""),r&&r.charAt(0)!=="/"&&(r="/"+r)):n||(n=""),o&&o.charAt(0)!=="#"&&(o="#"+o),s&&s.charAt(0)!=="?"&&(s="?"+s),r=r.replace(/[?#]/g,function(a){return encodeURIComponent(a)}),s=s.replace("#","%23"),e+n+r+s+o};function HD(t,e){return gn(t,!1,!0).resolve(e)}Je.prototype.resolve=function(t){return this.resolveObject(gn(t,!1,!0)).format()};function jD(t,e){return t?gn(t,!1,!0).resolveObject(e):e}Je.prototype.resolveObject=function(t){if(typeof t=="string"){var e=new Je;e.parse(t,!1,!0),t=e}for(var r=new Je,o=Object.keys(this),n=0;n<o.length;n++){var i=o[n];r[i]=this[i]}if(r.hash=t.hash,t.href==="")return r.href=r.format(),r;if(t.slashes&&!t.protocol){for(var s=Object.keys(t),a=0;a<s.length;a++){var u=s[a];u!=="protocol"&&(r[u]=t[u])}return ao[r.protocol]&&r.hostname&&!r.pathname&&(r.pathname="/",r.path=r.pathname),r.href=r.format(),r}if(t.protocol&&t.protocol!==r.protocol){if(!ao[t.protocol]){for(var c=Object.keys(t),f=0;f<c.length;f++){var m=c[f];r[m]=t[m]}return r.href=r.format(),r}if(r.protocol=t.protocol,!t.host&&!Mc[t.protocol]){for(var T=(t.pathname||"").split("/");T.length&&!(t.host=T.shift()););t.host||(t.host=""),t.hostname||(t.hostname=""),T[0]!==""&&T.unshift(""),T.length<2&&T.unshift(""),r.pathname=T.join("/")}else r.pathname=t.pathname;if(r.search=t.search,r.query=t.query,r.host=t.host||"",r.auth=t.auth,r.hostname=t.hostname||t.host,r.port=t.port,r.pathname||r.search){var p=r.pathname||"",d=r.search||"";r.path=p+d}return r.slashes=r.slashes||t.slashes,r.href=r.format(),r}var y=r.pathname&&r.pathname.charAt(0)==="/",w=t.host||t.pathname&&t.pathname.charAt(0)==="/",g=w||y||r.host&&t.pathname,A=g,D=r.pathname&&r.pathname.split("/")||[],T=t.pathname&&t.pathname.split("/")||[],L=r.protocol&&!ao[r.protocol];if(L&&(r.hostname="",r.port=null,r.host&&(D[0]===""?D[0]=r.host:D.unshift(r.host)),r.host="",t.protocol&&(t.hostname=null,t.port=null,t.host&&(T[0]===""?T[0]=t.host:T.unshift(t.host)),t.host=null),g=g&&(T[0]===""||D[0]==="")),w)r.host=t.host||t.host===""?t.host:r.host,r.hostname=t.hostname||t.hostname===""?t.hostname:r.hostname,r.search=t.search,r.query=t.query,D=T;else if(T.length)D||(D=[]),D.pop(),D=D.concat(T),r.search=t.search,r.query=t.query;else if(t.search!=null){if(L){r.host=D.shift(),r.hostname=r.host;var V=r.host&&r.host.indexOf("@")>0?r.host.split("@"):!1;V&&(r.auth=V.shift(),r.hostname=V.shift(),r.host=r.hostname)}return r.search=t.search,r.query=t.query,(r.pathname!==null||r.search!==null)&&(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.href=r.format(),r}if(!D.length)return r.pathname=null,r.search?r.path="/"+r.search:r.path=null,r.href=r.format(),r;for(var z=D.slice(-1)[0],de=(r.host||t.host||D.length>1)&&(z==="."||z==="..")||z==="",q=0,N=D.length;N>=0;N--)z=D[N],z==="."?D.splice(N,1):z===".."?(D.splice(N,1),q++):q&&(D.splice(N,1),q--);if(!g&&!A)for(;q--;q)D.unshift("..");g&&D[0]!==""&&(!D[0]||D[0].charAt(0)!=="/")&&D.unshift(""),de&&D.join("/").substr(-1)!=="/"&&D.push("");var se=D[0]===""||D[0]&&D[0].charAt(0)==="/";if(L){r.hostname=se?"":D.length?D.shift():"",r.host=r.hostname;var V=r.host&&r.host.indexOf("@")>0?r.host.split("@"):!1;V&&(r.auth=V.shift(),r.hostname=V.shift(),r.host=r.hostname)}return g=g||r.host&&D.length,g&&!se&&D.unshift(""),D.length>0?r.pathname=D.join("/"):(r.pathname=null,r.path=null),(r.pathname!==null||r.search!==null)&&(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.auth=t.auth||r.auth,r.slashes=r.slashes||t.slashes,r.href=r.format(),r};Je.prototype.parseHost=function(){var t=this.host,e=$D.exec(t);e&&(e=e[0],e!==":"&&(this.port=e.substr(1)),t=t.substr(0,t.length-e.length)),t&&(this.hostname=t)};uo.parse=gn;uo.resolve=HD;uo.resolveObject=jD;uo.format=qD;uo.Url=Je});var Wd=I((_G,Rd)=>{"use strict";Rd.exports=t=>{let e=t.match(/^[ \t]*(?=\S)/gm);return e?e.reduce((r,o)=>Math.min(r,o.length),1/0):0}});var Bd=I((IG,Ld)=>{"use strict";Ld.exports=function(e){var r=typeof e;if(r==="string"||e instanceof String){if(!e.trim())return!1}else if(r!=="number"&&!(e instanceof Number))return!1;return e-e+1>=0}});var Hd=I((EG,qd)=>{var r1=Object.prototype.toString;qd.exports=function(e){if(e===void 0)return"undefined";if(e===null)return"null";var r=typeof e;if(r==="boolean")return"boolean";if(r==="string")return"string";if(r==="number")return"number";if(r==="symbol")return"symbol";if(r==="function")return a1(e)?"generatorfunction":"function";if(o1(e))return"array";if(f1(e))return"buffer";if(c1(e))return"arguments";if(i1(e))return"date";if(n1(e))return"error";if(s1(e))return"regexp";switch(Yd(e)){case"Symbol":return"symbol";case"Promise":return"promise";case"WeakMap":return"weakmap";case"WeakSet":return"weakset";case"Map":return"map";case"Set":return"set";case"Int8Array":return"int8array";case"Uint8Array":return"uint8array";case"Uint8ClampedArray":return"uint8clampedarray";case"Int16Array":return"int16array";case"Uint16Array":return"uint16array";case"Int32Array":return"int32array";case"Uint32Array":return"uint32array";case"Float32Array":return"float32array";case"Float64Array":return"float64array"}if(u1(e))return"generator";switch(r=r1.call(e),r){case"[object Object]":return"object";case"[object Map Iterator]":return"mapiterator";case"[object Set Iterator]":return"setiterator";case"[object String Iterator]":return"stringiterator";case"[object Array Iterator]":return"arrayiterator"}return r.slice(8,-1).toLowerCase().replace(/\s/g,"")};function Yd(t){return typeof t.constructor=="function"?t.constructor.name:null}function o1(t){return Array.isArray?Array.isArray(t):t instanceof Array}function n1(t){return t instanceof Error||typeof t.message=="string"&&t.constructor&&typeof t.constructor.stackTraceLimit=="number"}function i1(t){return t instanceof Date?!0:typeof t.toDateString=="function"&&typeof t.getDate=="function"&&typeof t.setDate=="function"}function s1(t){return t instanceof RegExp?!0:typeof t.flags=="string"&&typeof t.ignoreCase=="boolean"&&typeof t.multiline=="boolean"&&typeof t.global=="boolean"}function a1(t,e){return Yd(t)==="GeneratorFunction"}function u1(t){return typeof t.throw=="function"&&typeof t.return=="function"&&typeof t.next=="function"}function c1(t){try{if(typeof t.length=="number"&&typeof t.callee=="function")return!0}catch(e){if(e.message.indexOf("callee")!==-1)return!0}return!1}function f1(t){return t.constructor&&typeof t.constructor.isBuffer=="function"?t.constructor.isBuffer(t):!1}});var zd=I((kG,jd)=>{jd.exports=function(t){var e="Uint32Array"in t,r=t.crypto||t.msCrypto,o=r&&typeof r.getRandomValues=="function",n=e&&o;if(!n)return Math.random;var i=new Uint32Array(1),s=Math.pow(2,32);function a(){return r.getRandomValues(i),i[0]/s}return a.cryptographic=!0,a}(typeof self<"u"?self:window)});var Kd=I((PG,Pc)=>{"use strict";var l1=Bd(),Vd=Hd(),Gd=zd();Pc.exports=p1;Pc.exports.isCrypto=!!Gd.cryptographic;var lt={lower:"abcdefghijklmnopqrstuvwxyz",upper:"ABCDEFGHIJKLMNOPQRSTUVWXYZ",number:"0123456789",special:"~!@#$%^&()_+-={}[];',."};lt.all=lt.lower+lt.upper+lt.number+lt.special;function p1(t,e,r){if(typeof t>"u")throw new Error("randomatic expects a string or number.");var o=!1;arguments.length===1&&(typeof t=="string"?e=t.length:l1(t)&&(r={},e=t,t="*")),Vd(e)==="object"&&e.hasOwnProperty("chars")&&(r=e,t=r.chars,e=t.length,o=!0);var n=r||{},i="",s="";if(t.indexOf("?")!==-1&&(i+=n.chars),t.indexOf("a")!==-1&&(i+=lt.lower),t.indexOf("A")!==-1&&(i+=lt.upper),t.indexOf("0")!==-1&&(i+=lt.number),t.indexOf("!")!==-1&&(i+=lt.special),t.indexOf("*")!==-1&&(i+=lt.all),o&&(i+=t),n.exclude){var a=Vd(n.exclude)==="string"?n.exclude:n.exclude.join("");a=a.replace(new RegExp("[\\]]+","g"),""),i=i.replace(new RegExp("["+a+"]+","g"),""),n.exclude.indexOf("]")!==-1&&(i=i.replace(new RegExp("[\\]]+","g"),""))}for(;e--;)s+=i.charAt(parseInt(Gd()*i.length,10));return s}});var Bh=I((Sn,po)=>{var T1=200,lh="__lodash_hash_undefined__",ph=9007199254740991,Gc="[object Arguments]",O1="[object Array]",mh="[object Boolean]",dh="[object Date]",M1="[object Error]",Kc="[object Function]",hh="[object GeneratorFunction]",Ns="[object Map]",yh="[object Number]",Qc="[object Object]",eh="[object Promise]",xh="[object RegExp]",Fs="[object Set]",gh="[object String]",bh="[object Symbol]",Yc="[object WeakMap]",vh="[object ArrayBuffer]",$s="[object DataView]",wh="[object Float32Array]",Sh="[object Float64Array]",Dh="[object Int8Array]",Th="[object Int16Array]",Oh="[object Int32Array]",Mh="[object Uint8Array]",_h="[object Uint8ClampedArray]",Ah="[object Uint16Array]",Ih="[object Uint32Array]",_1=/[\\^$.*+?()[\]{}|]/g,A1=/\w*$/,I1=/^\[object .+?Constructor\]$/,E1=/^(?:0|[1-9]\d*)$/,ee={};ee[Gc]=ee[O1]=ee[vh]=ee[$s]=ee[mh]=ee[dh]=ee[wh]=ee[Sh]=ee[Dh]=ee[Th]=ee[Oh]=ee[Ns]=ee[yh]=ee[Qc]=ee[xh]=ee[Fs]=ee[gh]=ee[bh]=ee[Mh]=ee[_h]=ee[Ah]=ee[Ih]=!0;ee[M1]=ee[Kc]=ee[Yc]=!1;var k1=typeof global=="object"&&global&&global.Object===Object&&global,P1=typeof self=="object"&&self&&self.Object===Object&&self,Mt=k1||P1||Function("return this")(),Eh=typeof Sn=="object"&&Sn&&!Sn.nodeType&&Sn,th=Eh&&typeof po=="object"&&po&&!po.nodeType&&po,C1=th&&th.exports===Eh;function N1(t,e){return t.set(e[0],e[1]),t}function F1(t,e){return t.add(e),t}function $1(t,e){for(var r=-1,o=t?t.length:0;++r<o&&e(t[r],r,t)!==!1;);return t}function R1(t,e){for(var r=-1,o=e.length,n=t.length;++r<o;)t[n+r]=e[r];return t}function kh(t,e,r,o){var n=-1,i=t?t.length:0;for(o&&i&&(r=t[++n]);++n<i;)r=e(r,t[n],n,t);return r}function W1(t,e){for(var r=-1,o=Array(t);++r<t;)o[r]=e(r);return o}function U1(t,e){return t?.[e]}function Ph(t){var e=!1;if(t!=null&&typeof t.toString!="function")try{e=!!(t+"")}catch{}return e}function rh(t){var e=-1,r=Array(t.size);return t.forEach(function(o,n){r[++e]=[n,o]}),r}function Jc(t,e){return function(r){return t(e(r))}}function oh(t){var e=-1,r=Array(t.size);return t.forEach(function(o){r[++e]=o}),r}var L1=Array.prototype,B1=Function.prototype,Rs=Object.prototype,Bc=Mt["__core-js_shared__"],nh=function(){var t=/[^.]+$/.exec(Bc&&Bc.keys&&Bc.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),Ch=B1.toString,Lt=Rs.hasOwnProperty,Ws=Rs.toString,Y1=RegExp("^"+Ch.call(Lt).replace(_1,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ih=C1?Mt.Buffer:void 0,sh=Mt.Symbol,ah=Mt.Uint8Array,q1=Jc(Object.getPrototypeOf,Object),H1=Object.create,j1=Rs.propertyIsEnumerable,z1=L1.splice,uh=Object.getOwnPropertySymbols,V1=ih?ih.isBuffer:void 0,G1=Jc(Object.keys,Object),qc=yo(Mt,"DataView"),Dn=yo(Mt,"Map"),Hc=yo(Mt,"Promise"),jc=yo(Mt,"Set"),zc=yo(Mt,"WeakMap"),Tn=yo(Object,"create"),K1=Sr(qc),Q1=Sr(Dn),J1=Sr(Hc),Z1=Sr(jc),X1=Sr(zc),ch=sh?sh.prototype:void 0,fh=ch?ch.valueOf:void 0;function wr(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var o=t[e];this.set(o[0],o[1])}}function eT(){this.__data__=Tn?Tn(null):{}}function tT(t){return this.has(t)&&delete this.__data__[t]}function rT(t){var e=this.__data__;if(Tn){var r=e[t];return r===lh?void 0:r}return Lt.call(e,t)?e[t]:void 0}function oT(t){var e=this.__data__;return Tn?e[t]!==void 0:Lt.call(e,t)}function nT(t,e){var r=this.__data__;return r[t]=Tn&&e===void 0?lh:e,this}wr.prototype.clear=eT;wr.prototype.delete=tT;wr.prototype.get=rT;wr.prototype.has=oT;wr.prototype.set=nT;function _t(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var o=t[e];this.set(o[0],o[1])}}function iT(){this.__data__=[]}function sT(t){var e=this.__data__,r=Us(e,t);if(r<0)return!1;var o=e.length-1;return r==o?e.pop():z1.call(e,r,1),!0}function aT(t){var e=this.__data__,r=Us(e,t);return r<0?void 0:e[r][1]}function uT(t){return Us(this.__data__,t)>-1}function cT(t,e){var r=this.__data__,o=Us(r,t);return o<0?r.push([t,e]):r[o][1]=e,this}_t.prototype.clear=iT;_t.prototype.delete=sT;_t.prototype.get=aT;_t.prototype.has=uT;_t.prototype.set=cT;function mo(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var o=t[e];this.set(o[0],o[1])}}function fT(){this.__data__={hash:new wr,map:new(Dn||_t),string:new wr}}function lT(t){return Ls(this,t).delete(t)}function pT(t){return Ls(this,t).get(t)}function mT(t){return Ls(this,t).has(t)}function dT(t,e){return Ls(this,t).set(t,e),this}mo.prototype.clear=fT;mo.prototype.delete=lT;mo.prototype.get=pT;mo.prototype.has=mT;mo.prototype.set=dT;function ho(t){this.__data__=new _t(t)}function hT(){this.__data__=new _t}function yT(t){return this.__data__.delete(t)}function xT(t){return this.__data__.get(t)}function gT(t){return this.__data__.has(t)}function bT(t,e){var r=this.__data__;if(r instanceof _t){var o=r.__data__;if(!Dn||o.length<T1-1)return o.push([t,e]),this;r=this.__data__=new mo(o)}return r.set(t,e),this}ho.prototype.clear=hT;ho.prototype.delete=yT;ho.prototype.get=xT;ho.prototype.has=gT;ho.prototype.set=bT;function vT(t,e){var r=Xc(t)||HT(t)?W1(t.length,String):[],o=r.length,n=!!o;for(var i in t)(e||Lt.call(t,i))&&!(n&&(i=="length"||LT(i,o)))&&r.push(i);return r}function Nh(t,e,r){var o=t[e];(!(Lt.call(t,e)&&Wh(o,r))||r===void 0&&!(e in t))&&(t[e]=r)}function Us(t,e){for(var r=t.length;r--;)if(Wh(t[r][0],e))return r;return-1}function wT(t,e){return t&&Fh(e,ef(e),t)}function Vc(t,e,r,o,n,i,s){var a;if(o&&(a=i?o(t,n,i,s):o(t)),a!==void 0)return a;if(!Bs(t))return t;var u=Xc(t);if(u){if(a=RT(t),!e)return NT(t,a)}else{var c=vr(t),f=c==Kc||c==hh;if(zT(t))return _T(t,e);if(c==Qc||c==Gc||f&&!i){if(Ph(t))return i?t:{};if(a=WT(f?{}:t),!e)return FT(t,wT(a,t))}else{if(!ee[c])return i?t:{};a=UT(t,c,Vc,e)}}s||(s=new ho);var m=s.get(t);if(m)return m;if(s.set(t,a),!u)var p=r?$T(t):ef(t);return $1(p||t,function(d,y){p&&(y=d,d=t[y]),Nh(a,y,Vc(d,e,r,o,y,t,s))}),a}function ST(t){return Bs(t)?H1(t):{}}function DT(t,e,r){var o=e(t);return Xc(t)?o:R1(o,r(t))}function TT(t){return Ws.call(t)}function OT(t){if(!Bs(t)||YT(t))return!1;var e=Lh(t)||Ph(t)?Y1:I1;return e.test(Sr(t))}function MT(t){if(!Rh(t))return G1(t);var e=[];for(var r in Object(t))Lt.call(t,r)&&r!="constructor"&&e.push(r);return e}function _T(t,e){if(e)return t.slice();var r=new t.constructor(t.length);return t.copy(r),r}function Zc(t){var e=new t.constructor(t.byteLength);return new ah(e).set(new ah(t)),e}function AT(t,e){var r=e?Zc(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.byteLength)}function IT(t,e,r){var o=e?r(rh(t),!0):rh(t);return kh(o,N1,new t.constructor)}function ET(t){var e=new t.constructor(t.source,A1.exec(t));return e.lastIndex=t.lastIndex,e}function kT(t,e,r){var o=e?r(oh(t),!0):oh(t);return kh(o,F1,new t.constructor)}function PT(t){return fh?Object(fh.call(t)):{}}function CT(t,e){var r=e?Zc(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.length)}function NT(t,e){var r=-1,o=t.length;for(e||(e=Array(o));++r<o;)e[r]=t[r];return e}function Fh(t,e,r,o){r||(r={});for(var n=-1,i=e.length;++n<i;){var s=e[n],a=o?o(r[s],t[s],s,r,t):void 0;Nh(r,s,a===void 0?t[s]:a)}return r}function FT(t,e){return Fh(t,$h(t),e)}function $T(t){return DT(t,ef,$h)}function Ls(t,e){var r=t.__data__;return BT(e)?r[typeof e=="string"?"string":"hash"]:r.map}function yo(t,e){var r=U1(t,e);return OT(r)?r:void 0}var $h=uh?Jc(uh,Object):KT,vr=TT;(qc&&vr(new qc(new ArrayBuffer(1)))!=$s||Dn&&vr(new Dn)!=Ns||Hc&&vr(Hc.resolve())!=eh||jc&&vr(new jc)!=Fs||zc&&vr(new zc)!=Yc)&&(vr=function(t){var e=Ws.call(t),r=e==Qc?t.constructor:void 0,o=r?Sr(r):void 0;if(o)switch(o){case K1:return $s;case Q1:return Ns;case J1:return eh;case Z1:return Fs;case X1:return Yc}return e});function RT(t){var e=t.length,r=t.constructor(e);return e&&typeof t[0]=="string"&&Lt.call(t,"index")&&(r.index=t.index,r.input=t.input),r}function WT(t){return typeof t.constructor=="function"&&!Rh(t)?ST(q1(t)):{}}function UT(t,e,r,o){var n=t.constructor;switch(e){case vh:return Zc(t);case mh:case dh:return new n(+t);case $s:return AT(t,o);case wh:case Sh:case Dh:case Th:case Oh:case Mh:case _h:case Ah:case Ih:return CT(t,o);case Ns:return IT(t,o,r);case yh:case gh:return new n(t);case xh:return ET(t);case Fs:return kT(t,o,r);case bh:return PT(t)}}function LT(t,e){return e=e??ph,!!e&&(typeof t=="number"||E1.test(t))&&t>-1&&t%1==0&&t<e}function BT(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}function YT(t){return!!nh&&nh in t}function Rh(t){var e=t&&t.constructor,r=typeof e=="function"&&e.prototype||Rs;return t===r}function Sr(t){if(t!=null){try{return Ch.call(t)}catch{}try{return t+""}catch{}}return""}function qT(t){return Vc(t,!0,!0)}function Wh(t,e){return t===e||t!==t&&e!==e}function HT(t){return jT(t)&&Lt.call(t,"callee")&&(!j1.call(t,"callee")||Ws.call(t)==Gc)}var Xc=Array.isArray;function Uh(t){return t!=null&&VT(t.length)&&!Lh(t)}function jT(t){return GT(t)&&Uh(t)}var zT=V1||QT;function Lh(t){var e=Bs(t)?Ws.call(t):"";return e==Kc||e==hh}function VT(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=ph}function Bs(t){var e=typeof t;return!!t&&(e=="object"||e=="function")}function GT(t){return!!t&&typeof t=="object"}function ef(t){return Uh(t)?vT(t):MT(t)}function KT(){return[]}function QT(){return!1}po.exports=qT});var qh=I((VG,Yh)=>{"use strict";Yh.exports=function(t,e){e||(e={}),typeof e=="function"&&(e={cmp:e});var r=typeof e.cycles=="boolean"?e.cycles:!1,o=e.cmp&&function(i){return function(s){return function(a,u){var c={key:a,value:s[a]},f={key:u,value:s[u]};return i(c,f)}}}(e.cmp),n=[];return function i(s){if(s&&s.toJSON&&typeof s.toJSON=="function"&&(s=s.toJSON()),s!==void 0){if(typeof s=="number")return isFinite(s)?""+s:"null";if(typeof s!="object")return JSON.stringify(s);var a,u;if(Array.isArray(s)){for(u="[",a=0;a<s.length;a++)a&&(u+=","),u+=i(s[a])||"null";return u+"]"}if(s===null)return"null";if(n.indexOf(s)!==-1){if(r)return JSON.stringify("__cycle__");throw new TypeError("Converting circular structure to JSON")}var c=n.push(s)-1,f=Object.keys(s).sort(o&&o(s));for(u="",a=0;a<f.length;a++){var m=f[a],p=i(s[m]);p&&(u&&(u+=","),u+=JSON.stringify(m)+":"+p)}return n.splice(c,1),"{"+u+"}"}}(t)}});var In=globalThis,En=In.ShadowRoot&&(In.ShadyCSS===void 0||In.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Js=Symbol(),xf=new WeakMap,vo=class{constructor(e,r,o){if(this._$cssResult$=!0,o!==Js)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(En&&e===void 0){let o=r!==void 0&&r.length===1;o&&(e=xf.get(r)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),o&&xf.set(r,e))}return e}toString(){return this.cssText}},kn=t=>new vo(typeof t=="string"?t:t+"",void 0,Js),Xe=(t,...e)=>{let r=t.length===1?t[0]:e.reduce((o,n,i)=>o+(s=>{if(s._$cssResult$===!0)return s.cssText;if(typeof s=="number")return s;throw Error("Value passed to 'css' function must be a 'css' function result: "+s+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(n)+t[i+1],t[0]);return new vo(r,t,Js)},Zs=(t,e)=>{if(En)t.adoptedStyleSheets=e.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet);else for(let r of e){let o=document.createElement("style"),n=In.litNonce;n!==void 0&&o.setAttribute("nonce",n),o.textContent=r.cssText,t.appendChild(o)}},Pn=En?t=>t:t=>t instanceof CSSStyleSheet?(e=>{let r="";for(let o of e.cssRules)r+=o.cssText;return kn(r)})(t):t;var{is:ly,defineProperty:py,getOwnPropertyDescriptor:my,getOwnPropertyNames:dy,getOwnPropertySymbols:hy,getPrototypeOf:yy}=Object,Cn=globalThis,gf=Cn.trustedTypes,xy=gf?gf.emptyScript:"",gy=Cn.reactiveElementPolyfillSupport,wo=(t,e)=>t,So={toAttribute(t,e){switch(e){case Boolean:t=t?xy: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}},Nn=(t,e)=>!ly(t,e),bf={attribute:!0,type:String,converter:So,reflect:!1,hasChanged:Nn};Symbol.metadata??=Symbol("metadata"),Cn.litPropertyMetadata??=new WeakMap;var mt=class extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??=[]).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,r=bf){if(r.state&&(r.attribute=!1),this._$Ei(),this.elementProperties.set(e,r),!r.noAccessor){let o=Symbol(),n=this.getPropertyDescriptor(e,o,r);n!==void 0&&py(this.prototype,e,n)}}static getPropertyDescriptor(e,r,o){let{get:n,set:i}=my(this.prototype,e)??{get(){return this[r]},set(s){this[r]=s}};return{get(){return n?.call(this)},set(s){let a=n?.call(this);i.call(this,s),this.requestUpdate(e,a,o)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??bf}static _$Ei(){if(this.hasOwnProperty(wo("elementProperties")))return;let e=yy(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(wo("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(wo("properties"))){let r=this.properties,o=[...dy(r),...hy(r)];for(let n of o)this.createProperty(n,r[n])}let e=this[Symbol.metadata];if(e!==null){let r=litPropertyMetadata.get(e);if(r!==void 0)for(let[o,n]of r)this.elementProperties.set(o,n)}this._$Eh=new Map;for(let[r,o]of this.elementProperties){let n=this._$Eu(r,o);n!==void 0&&this._$Eh.set(n,r)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){let r=[];if(Array.isArray(e)){let o=new Set(e.flat(1/0).reverse());for(let n of o)r.unshift(Pn(n))}else e!==void 0&&r.push(Pn(e));return r}static _$Eu(e,r){let o=r.attribute;return o===!1?void 0:typeof o=="string"?o: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 o of r.keys())this.hasOwnProperty(o)&&(e.set(o,this[o]),delete this[o]);e.size>0&&(this._$Ep=e)}createRenderRoot(){let e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return Zs(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,o){this._$AK(e,o)}_$EC(e,r){let o=this.constructor.elementProperties.get(e),n=this.constructor._$Eu(e,o);if(n!==void 0&&o.reflect===!0){let i=(o.converter?.toAttribute!==void 0?o.converter:So).toAttribute(r,o.type);this._$Em=e,i==null?this.removeAttribute(n):this.setAttribute(n,i),this._$Em=null}}_$AK(e,r){let o=this.constructor,n=o._$Eh.get(e);if(n!==void 0&&this._$Em!==n){let i=o.getPropertyOptions(n),s=typeof i.converter=="function"?{fromAttribute:i.converter}:i.converter?.fromAttribute!==void 0?i.converter:So;this._$Em=n,this[n]=s.fromAttribute(r,i.type),this._$Em=null}}requestUpdate(e,r,o){if(e!==void 0){if(o??=this.constructor.getPropertyOptions(e),!(o.hasChanged??Nn)(this[e],r))return;this.P(e,r,o)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(e,r,o){this._$AL.has(e)||this._$AL.set(e,r),o.reflect===!0&&this._$Em!==e&&(this._$Ej??=new Set).add(e)}async _$ET(){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[n,i]of this._$Ep)this[n]=i;this._$Ep=void 0}let o=this.constructor.elementProperties;if(o.size>0)for(let[n,i]of o)i.wrapped!==!0||this._$AL.has(n)||this[n]===void 0||this.P(n,this[n],i)}let e=!1,r=this._$AL;try{e=this.shouldUpdate(r),e?(this.willUpdate(r),this._$EO?.forEach(o=>o.hostUpdate?.()),this.update(r)):this._$EU()}catch(o){throw e=!1,this._$EU(),o}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)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Ej&&=this._$Ej.forEach(r=>this._$EC(r,this[r])),this._$EU()}updated(e){}firstUpdated(e){}};mt.elementStyles=[],mt.shadowRootOptions={mode:"open"},mt[wo("elementProperties")]=new Map,mt[wo("finalized")]=new Map,gy?.({ReactiveElement:mt}),(Cn.reactiveElementVersions??=[]).push("2.0.4");var ia=globalThis,Fn=ia.trustedTypes,vf=Fn?Fn.createPolicy("lit-html",{createHTML:t=>t}):void 0,Mf="$lit$",kt=`lit$${Math.random().toFixed(9).slice(2)}$`,_f="?"+kt,by=`<${_f}>`,zt=document,To=()=>zt.createComment(""),Oo=t=>t===null||typeof t!="object"&&typeof t!="function",sa=Array.isArray,vy=t=>sa(t)||typeof t?.[Symbol.iterator]=="function",Xs=`[
6
+ \f\r]`,Do=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,wf=/-->/g,Sf=/>/g,Ht=RegExp(`>|${Xs}(?:([^\\s"'>=/]+)(${Xs}*=${Xs}*(?:[^
7
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),Df=/'/g,Tf=/"/g,Af=/^(?:script|style|textarea|title)$/i,aa=t=>(e,...r)=>({_$litType$:t,strings:e,values:r}),Ne=aa(1),NO=aa(2),FO=aa(3),Vt=Symbol.for("lit-noChange"),xe=Symbol.for("lit-nothing"),Of=new WeakMap,jt=zt.createTreeWalker(zt,129);function If(t,e){if(!sa(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return vf!==void 0?vf.createHTML(e):e}var wy=(t,e)=>{let r=t.length-1,o=[],n,i=e===2?"<svg>":e===3?"<math>":"",s=Do;for(let a=0;a<r;a++){let u=t[a],c,f,m=-1,p=0;for(;p<u.length&&(s.lastIndex=p,f=s.exec(u),f!==null);)p=s.lastIndex,s===Do?f[1]==="!--"?s=wf:f[1]!==void 0?s=Sf:f[2]!==void 0?(Af.test(f[2])&&(n=RegExp("</"+f[2],"g")),s=Ht):f[3]!==void 0&&(s=Ht):s===Ht?f[0]===">"?(s=n??Do,m=-1):f[1]===void 0?m=-2:(m=s.lastIndex-f[2].length,c=f[1],s=f[3]===void 0?Ht:f[3]==='"'?Tf:Df):s===Tf||s===Df?s=Ht:s===wf||s===Sf?s=Do:(s=Ht,n=void 0);let d=s===Ht&&t[a+1].startsWith("/>")?" ":"";i+=s===Do?u+by:m>=0?(o.push(c),u.slice(0,m)+Mf+u.slice(m)+kt+d):u+kt+(m===-2?a:d)}return[If(t,i+(t[r]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),o]},Mo=class t{constructor({strings:e,_$litType$:r},o){let n;this.parts=[];let i=0,s=0,a=e.length-1,u=this.parts,[c,f]=wy(e,r);if(this.el=t.createElement(c,o),jt.currentNode=this.el.content,r===2||r===3){let m=this.el.content.firstChild;m.replaceWith(...m.childNodes)}for(;(n=jt.nextNode())!==null&&u.length<a;){if(n.nodeType===1){if(n.hasAttributes())for(let m of n.getAttributeNames())if(m.endsWith(Mf)){let p=f[s++],d=n.getAttribute(m).split(kt),y=/([.?@])?(.*)/.exec(p);u.push({type:1,index:i,name:y[2],strings:d,ctor:y[1]==="."?ta:y[1]==="?"?ra:y[1]==="@"?oa:_r}),n.removeAttribute(m)}else m.startsWith(kt)&&(u.push({type:6,index:i}),n.removeAttribute(m));if(Af.test(n.tagName)){let m=n.textContent.split(kt),p=m.length-1;if(p>0){n.textContent=Fn?Fn.emptyScript:"";for(let d=0;d<p;d++)n.append(m[d],To()),jt.nextNode(),u.push({type:2,index:++i});n.append(m[p],To())}}}else if(n.nodeType===8)if(n.data===_f)u.push({type:2,index:i});else{let m=-1;for(;(m=n.data.indexOf(kt,m+1))!==-1;)u.push({type:7,index:i}),m+=kt.length-1}i++}}static createElement(e,r){let o=zt.createElement("template");return o.innerHTML=e,o}};function Mr(t,e,r=t,o){if(e===Vt)return e;let n=o!==void 0?r._$Co?.[o]:r._$Cl,i=Oo(e)?void 0:e._$litDirective$;return n?.constructor!==i&&(n?._$AO?.(!1),i===void 0?n=void 0:(n=new i(t),n._$AT(t,r,o)),o!==void 0?(r._$Co??=[])[o]=n:r._$Cl=n),n!==void 0&&(e=Mr(t,n._$AS(t,e.values),n,o)),e}var ea=class{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:o}=this._$AD,n=(e?.creationScope??zt).importNode(r,!0);jt.currentNode=n;let i=jt.nextNode(),s=0,a=0,u=o[0];for(;u!==void 0;){if(s===u.index){let c;u.type===2?c=new _o(i,i.nextSibling,this,e):u.type===1?c=new u.ctor(i,u.name,u.strings,this,e):u.type===6&&(c=new na(i,this,e)),this._$AV.push(c),u=o[++a]}s!==u?.index&&(i=jt.nextNode(),s++)}return jt.currentNode=zt,n}p(e){let r=0;for(let o of this._$AV)o!==void 0&&(o.strings!==void 0?(o._$AI(e,o,r),r+=o.strings.length-2):o._$AI(e[r])),r++}},_o=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,r,o,n){this.type=2,this._$AH=xe,this._$AN=void 0,this._$AA=e,this._$AB=r,this._$AM=o,this.options=n,this._$Cv=n?.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=Mr(this,e,r),Oo(e)?e===xe||e==null||e===""?(this._$AH!==xe&&this._$AR(),this._$AH=xe):e!==this._$AH&&e!==Vt&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):vy(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!==xe&&Oo(this._$AH)?this._$AA.nextSibling.data=e:this.T(zt.createTextNode(e)),this._$AH=e}$(e){let{values:r,_$litType$:o}=e,n=typeof o=="number"?this._$AC(e):(o.el===void 0&&(o.el=Mo.createElement(If(o.h,o.h[0]),this.options)),o);if(this._$AH?._$AD===n)this._$AH.p(r);else{let i=new ea(n,this),s=i.u(this.options);i.p(r),this.T(s),this._$AH=i}}_$AC(e){let r=Of.get(e.strings);return r===void 0&&Of.set(e.strings,r=new Mo(e)),r}k(e){sa(this._$AH)||(this._$AH=[],this._$AR());let r=this._$AH,o,n=0;for(let i of e)n===r.length?r.push(o=new t(this.O(To()),this.O(To()),this,this.options)):o=r[n],o._$AI(i),n++;n<r.length&&(this._$AR(o&&o._$AB.nextSibling,n),r.length=n)}_$AR(e=this._$AA.nextSibling,r){for(this._$AP?.(!1,!0,r);e&&e!==this._$AB;){let o=e.nextSibling;e.remove(),e=o}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},_r=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,r,o,n,i){this.type=1,this._$AH=xe,this._$AN=void 0,this.element=e,this.name=r,this._$AM=n,this.options=i,o.length>2||o[0]!==""||o[1]!==""?(this._$AH=Array(o.length-1).fill(new String),this.strings=o):this._$AH=xe}_$AI(e,r=this,o,n){let i=this.strings,s=!1;if(i===void 0)e=Mr(this,e,r,0),s=!Oo(e)||e!==this._$AH&&e!==Vt,s&&(this._$AH=e);else{let a=e,u,c;for(e=i[0],u=0;u<i.length-1;u++)c=Mr(this,a[o+u],r,u),c===Vt&&(c=this._$AH[u]),s||=!Oo(c)||c!==this._$AH[u],c===xe?e=xe:e!==xe&&(e+=(c??"")+i[u+1]),this._$AH[u]=c}s&&!n&&this.j(e)}j(e){e===xe?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},ta=class extends _r{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===xe?void 0:e}},ra=class extends _r{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==xe)}},oa=class extends _r{constructor(e,r,o,n,i){super(e,r,o,n,i),this.type=5}_$AI(e,r=this){if((e=Mr(this,e,r,0)??xe)===Vt)return;let o=this._$AH,n=e===xe&&o!==xe||e.capture!==o.capture||e.once!==o.once||e.passive!==o.passive,i=e!==xe&&(o===xe||n);n&&this.element.removeEventListener(this.name,this,o),i&&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)}},na=class{constructor(e,r,o){this.element=e,this.type=6,this._$AN=void 0,this._$AM=r,this.options=o}get _$AU(){return this._$AM._$AU}_$AI(e){Mr(this,e)}};var Sy=ia.litHtmlPolyfillSupport;Sy?.(Mo,_o),(ia.litHtmlVersions??=[]).push("3.2.1");var Ef=(t,e,r)=>{let o=r?.renderBefore??e,n=o._$litPart$;if(n===void 0){let i=r?.renderBefore??null;o._$litPart$=n=new _o(e.insertBefore(To(),i),i,void 0,r??{})}return n._$AI(t),n};var Me=class extends mt{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=Ef(r,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return Vt}};Me._$litElement$=!0,Me.finalized=!0,globalThis.litElementHydrateSupport?.({LitElement:Me});var Dy=globalThis.litElementPolyfillSupport;Dy?.({LitElement:Me});(globalThis.litElementVersions??=[]).push("4.1.1");var $n=kn('system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif');var it=t=>(e,r)=>{r!==void 0?r.addInitializer(()=>{customElements.define(t,e)}):customElements.define(t,e)};var Ty={attribute:!0,type:String,converter:So,reflect:!1,hasChanged:Nn},Oy=(t=Ty,e,r)=>{let{kind:o,metadata:n}=r,i=globalThis.litPropertyMetadata.get(n);if(i===void 0&&globalThis.litPropertyMetadata.set(n,i=new Map),i.set(r.name,t),o==="accessor"){let{name:s}=r;return{set(a){let u=e.get.call(this);e.set.call(this,a),this.requestUpdate(s,u,t)},init(a){return a!==void 0&&this.P(s,void 0,t),a}}}if(o==="setter"){let{name:s}=r;return function(a){let u=this[s];e.call(this,a),this.requestUpdate(s,u,t)}}throw Error("Unsupported decorator location: "+o)};function dt(t){return(e,r)=>typeof r=="object"?Oy(t,e,r):((o,n,i)=>{let s=n.hasOwnProperty(i);return n.constructor.createProperty(i,s?{...o,wrapped:!0}:o),s?Object.getOwnPropertyDescriptor(n,i):void 0})(t,e,r)}var Gs={};re(Gs,{TypedHandler:()=>mf,TypedRequest:()=>hf,TypedResponseError:()=>It,TypedRouter:()=>_n,TypedTarget:()=>df,VirtualStream:()=>pt});var Tr=nt(ua(),1);var Ue={};re(Ue,{AsyncExecutionStack:()=>Bu,BackpressuredArray:()=>Yu,FastMap:()=>Xo,Interest:()=>en,InterestMap:()=>qu,LimitedArray:()=>Hu,LoopTracker:()=>ju,ObjectMap:()=>dr,Stringmap:()=>zu,TimedAggregtor:()=>Vu,Tree:()=>Gu,uni:()=>Gl});var Z={};re(Z,{Timeout:()=>Bn,delayFor:()=>Ar,delayForRandom:()=>Ny});var K={};re(K,{CumulativeDeferred:()=>Ln,Deferred:()=>Un,cumulativeDefer:()=>_y,defer:()=>Gt,fromCallback:()=>Cy,getFirstTrueOrFalse:()=>Py,map:()=>Ey,rejectedPromise:()=>Iy,resolvedPromise:()=>Ay,timeoutAndContinue:()=>ky,timeoutWrap:()=>Pf});var Un=class{claim(){if(this.claimed)throw new Error("Deferred already claimed");this.claimed=!0}get duration(){return this.stoppedAt?this.stoppedAt-this.startedAt:Date.now()-this.startedAt}constructor(){this.claimed=!1,this.promise=new Promise((e,r)=>{this.resolve=o=>{this.status="fulfilled",this.stoppedAt=Date.now(),e(o)},this.reject=o=>{this.status="rejected",this.stoppedAt=Date.now(),r(o)},this.startedAt=Date.now(),this.status="pending"})}},Gt=()=>new Un;var Ln=class{constructor(){this.accumulatedPromises=[],this.deferred=Gt(),this.promise=this.deferred.promise,setTimeout(async()=>{for(;this.accumulatedPromises.length>0;)await this.accumulatedPromises.shift();this.deferred.resolve()},0)}addPromise(e){this.accumulatedPromises.push(e)}},_y=()=>new Ln;var Ay=t=>Promise.resolve(t),Iy=t=>Promise.reject(t),Ey=async(t,e)=>{let r=[],o=[];for(let n of t){let i=e(n);r.push(i),i.then(s=>{o.push(s)})}return await Promise.all(r),o},Pf=async(t,e,r=!0)=>new Promise((o,n)=>{setTimeout(()=>{r?n(new Error("timeout")):o(null)},e),t.then(o,n)}),ky=async(t,e=6e4)=>Pf(t,e,!1),Py=async t=>{let e=Gt();for(let r of t)r.then(o=>{o===!0&&e.resolve(!0)});return Promise.all(t).then(()=>{e.resolve(!1)}),e.promise},Cy=t=>new Promise((e,r)=>{t((o,n)=>{o?r(o):e(n)})});var Ar=async(t,e,r=!1)=>(await new Bn(t,null,r).promise,e),Ny=async(t,e,r,o=!1)=>(await Ar(Math.random()*(e-t)+t,null,o),r),Bn=class{constructor(e,r,o=!1){this._cancelled=!1,this.timeoutInMillis=e,this._deferred=Gt(),this.promise=this._deferred.promise,this._timeout=setTimeout(()=>{this._cancelled||this._deferred.resolve(r)},e),this.started=Date.now(),o&&this.makeUnrefed()}makeUnrefed(){this._timeout.unref()}cancel(){this._cancelled=!0,clearTimeout(this._timeout)}getTimeLeft(){let e=this.started+this.timeoutInMillis-Date.now();return e>0?e:0}};var qn={};re(qn,{SmartMatch:()=>la});var Yn={};re(Yn,{isMatch:()=>Ry,matcher:()=>$y});function ca(t){if(typeof t!="string")throw new TypeError("Expected a string");return t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}var fa=new Map,Cf=(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})},Fy=(t,e)=>{e={caseSensitive:!1,...e};let r=t+JSON.stringify(e);if(fa.has(r))return fa.get(r);let o=t[0]==="!";o&&(t=t.slice(1)),t=ca(t).replace(/\\\*/g,"[\\s\\S]*");let n=new RegExp(`^${t}$`,e.caseSensitive?"":"i");return n.negated=o,fa.set(r,n),n},Nf=(t,e,r,o)=>{if(t=Cf(t,"inputs"),e=Cf(e,"patterns"),e.length===0)return[];e=e.map(s=>Fy(s,r));let{allPatterns:n}=r||{},i=[];for(let s of t){let a,u=[...e].fill(!1);for(let[c,f]of e.entries())if(f.test(s)&&(u[c]=!0,a=!f.negated,!a))break;if(!(a===!1||a===void 0&&e.some(c=>!c.negated)||n&&u.some((c,f)=>!c&&!e[f].negated))&&(i.push(s),o))break}return i};function $y(t,e,r){return Nf(t,e,r,!1)}function Ry(t,e,r){return Nf(t,e,r,!0).length>0}var la=class{constructor(e){this.wildcard=e}match(e){return Yn.isMatch(e,this.wildcard)}};var st={};re(st,{ObservableIntake:()=>Aa,Observablemap:()=>_a,rxjs:()=>Co});var Co={};re(Co,{Observable:()=>oe,ReplaySubject:()=>xa,Subject:()=>yt,Subscription:()=>tt,from:()=>Xt,fromEvent:()=>tr,of:()=>ba,ops:()=>fx});var pa=function(t,e){return pa=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(r[n]=o[n])},pa(t,e)};function _e(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");pa(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}function Ff(t,e,r,o){function n(i){return i instanceof r?i:new r(function(s){s(i)})}return new(r||(r=Promise))(function(i,s){function a(f){try{c(o.next(f))}catch(m){s(m)}}function u(f){try{c(o.throw(f))}catch(m){s(m)}}function c(f){f.done?i(f.value):n(f.value).then(a,u)}c((o=o.apply(t,e||[])).next())})}function Hn(t,e){var r={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},o,n,i,s;return s={next:a(0),throw:a(1),return:a(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function a(c){return function(f){return u([c,f])}}function u(c){if(o)throw new TypeError("Generator is already executing.");for(;s&&(s=0,c[0]&&(r=0)),r;)try{if(o=1,n&&(i=c[0]&2?n.return:c[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,c[1])).done)return i;switch(n=0,i&&(c=[c[0]&2,i.value]),c[0]){case 0:case 1:i=c;break;case 4:return r.label++,{value:c[1],done:!1};case 5:r.label++,n=c[1],c=[0];continue;case 7:c=r.ops.pop(),r.trys.pop();continue;default:if(i=r.trys,!(i=i.length>0&&i[i.length-1])&&(c[0]===6||c[0]===2)){r=0;continue}if(c[0]===3&&(!i||c[1]>i[0]&&c[1]<i[3])){r.label=c[1];break}if(c[0]===6&&r.label<i[1]){r.label=i[1],i=c;break}if(i&&r.label<i[2]){r.label=i[2],r.ops.push(c);break}i[2]&&r.ops.pop(),r.trys.pop();continue}c=e.call(t,r)}catch(f){c=[6,f],n=0}finally{o=i=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}function ht(t){var e=typeof Symbol=="function"&&Symbol.iterator,r=e&&t[e],o=0;if(r)return r.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&o>=t.length&&(t=void 0),{value:t&&t[o++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function Be(t,e){var r=typeof Symbol=="function"&&t[Symbol.iterator];if(!r)return t;var o=r.call(t),n,i=[],s;try{for(;(e===void 0||e-- >0)&&!(n=o.next()).done;)i.push(n.value)}catch(a){s={error:a}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(s)throw s.error}}return i}function et(t,e,r){if(r||arguments.length===2)for(var o=0,n=e.length,i;o<n;o++)(i||!(o in e))&&(i||(i=Array.prototype.slice.call(e,0,o)),i[o]=e[o]);return t.concat(i||Array.prototype.slice.call(e))}function Kt(t){return this instanceof Kt?(this.v=t,this):new Kt(t)}function $f(t,e,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var o=r.apply(t,e||[]),n,i=[];return n={},s("next"),s("throw"),s("return"),n[Symbol.asyncIterator]=function(){return this},n;function s(p){o[p]&&(n[p]=function(d){return new Promise(function(y,w){i.push([p,d,y,w])>1||a(p,d)})})}function a(p,d){try{u(o[p](d))}catch(y){m(i[0][3],y)}}function u(p){p.value instanceof Kt?Promise.resolve(p.value.v).then(c,f):m(i[0][2],p)}function c(p){a("next",p)}function f(p){a("throw",p)}function m(p,d){p(d),i.shift(),i.length&&a(i[0][0],i[0][1])}}function Rf(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 ht=="function"?ht(t):t[Symbol.iterator](),r={},o("next"),o("throw"),o("return"),r[Symbol.asyncIterator]=function(){return this},r);function o(i){r[i]=t[i]&&function(s){return new Promise(function(a,u){s=t[i](s),n(a,u,s.done,s.value)})}}function n(i,s,a,u){Promise.resolve(u).then(function(c){i({value:c,done:a})},s)}}function W(t){return typeof t=="function"}function jn(t){var e=function(o){Error.call(o),o.stack=new Error().stack},r=t(e);return r.prototype=Object.create(Error.prototype),r.prototype.constructor=r,r}var zn=jn(function(t){return function(r){t(this),this.message=r?r.length+` errors occurred during unsubscription:
8
+ `+r.map(function(o,n){return n+1+") "+o.toString()}).join(`
9
+ `):"",this.name="UnsubscriptionError",this.errors=r}});function Qt(t,e){if(t){var r=t.indexOf(e);0<=r&&t.splice(r,1)}}var tt=function(){function t(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}return t.prototype.unsubscribe=function(){var e,r,o,n,i;if(!this.closed){this.closed=!0;var s=this._parentage;if(s)if(this._parentage=null,Array.isArray(s))try{for(var a=ht(s),u=a.next();!u.done;u=a.next()){var c=u.value;c.remove(this)}}catch(w){e={error:w}}finally{try{u&&!u.done&&(r=a.return)&&r.call(a)}finally{if(e)throw e.error}}else s.remove(this);var f=this.initialTeardown;if(W(f))try{f()}catch(w){i=w instanceof zn?w.errors:[w]}var m=this._finalizers;if(m){this._finalizers=null;try{for(var p=ht(m),d=p.next();!d.done;d=p.next()){var y=d.value;try{Wf(y)}catch(w){i=i??[],w instanceof zn?i=et(et([],Be(i)),Be(w.errors)):i.push(w)}}}catch(w){o={error:w}}finally{try{d&&!d.done&&(n=p.return)&&n.call(p)}finally{if(o)throw o.error}}}if(i)throw new zn(i)}},t.prototype.add=function(e){var r;if(e&&e!==this)if(this.closed)Wf(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)&&Qt(r,e)},t.prototype.remove=function(e){var r=this._finalizers;r&&Qt(r,e),e instanceof t&&e._removeParent(this)},t.EMPTY=function(){var e=new t;return e.closed=!0,e}(),t}();var ma=tt.EMPTY;function Vn(t){return t instanceof tt||t&&"closed"in t&&W(t.remove)&&W(t.add)&&W(t.unsubscribe)}function Wf(t){W(t)?t():t.unsubscribe()}var rt={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var Ir={setTimeout:function(t,e){for(var r=[],o=2;o<arguments.length;o++)r[o-2]=arguments[o];var n=Ir.delegate;return n?.setTimeout?n.setTimeout.apply(n,et([t,e],Be(r))):setTimeout.apply(void 0,et([t,e],Be(r)))},clearTimeout:function(t){var e=Ir.delegate;return(e?.clearTimeout||clearTimeout)(t)},delegate:void 0};function Gn(t){Ir.setTimeout(function(){var e=rt.onUnhandledError;if(e)e(t);else throw t})}function Jt(){}var Uf=function(){return da("C",void 0,void 0)}();function Lf(t){return da("E",void 0,t)}function Bf(t){return da("N",t,void 0)}function da(t,e,r){return{kind:t,value:e,error:r}}var Zt=null;function Er(t){if(rt.useDeprecatedSynchronousErrorHandling){var e=!Zt;if(e&&(Zt={errorThrown:!1,error:null}),t(),e){var r=Zt,o=r.errorThrown,n=r.error;if(Zt=null,o)throw n}}else t()}function Yf(t){rt.useDeprecatedSynchronousErrorHandling&&Zt&&(Zt.errorThrown=!0,Zt.error=t)}var Ao=function(t){_e(e,t);function e(r){var o=t.call(this)||this;return o.isStopped=!1,r?(o.destination=r,Vn(r)&&r.add(o)):o.destination=qy,o}return e.create=function(r,o,n){return new Qn(r,o,n)},e.prototype.next=function(r){this.isStopped?ya(Bf(r),this):this._next(r)},e.prototype.error=function(r){this.isStopped?ya(Lf(r),this):(this.isStopped=!0,this._error(r))},e.prototype.complete=function(){this.isStopped?ya(Uf,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}(tt);var Ly=Function.prototype.bind;function ha(t,e){return Ly.call(t,e)}var By=function(){function t(e){this.partialObserver=e}return t.prototype.next=function(e){var r=this.partialObserver;if(r.next)try{r.next(e)}catch(o){Kn(o)}},t.prototype.error=function(e){var r=this.partialObserver;if(r.error)try{r.error(e)}catch(o){Kn(o)}else Kn(e)},t.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(r){Kn(r)}},t}(),Qn=function(t){_e(e,t);function e(r,o,n){var i=t.call(this)||this,s;if(W(r)||!r)s={next:r??void 0,error:o??void 0,complete:n??void 0};else{var a;i&&rt.useDeprecatedNextContext?(a=Object.create(r),a.unsubscribe=function(){return i.unsubscribe()},s={next:r.next&&ha(r.next,a),error:r.error&&ha(r.error,a),complete:r.complete&&ha(r.complete,a)}):s=r}return i.destination=new By(s),i}return e}(Ao);function Kn(t){rt.useDeprecatedSynchronousErrorHandling?Yf(t):Gn(t)}function Yy(t){throw t}function ya(t,e){var r=rt.onStoppedNotification;r&&Ir.setTimeout(function(){return r(t,e)})}var qy={closed:!0,next:Jt,error:Yy,complete:Jt};var kr=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function Jn(t){return t}function qf(t){return t.length===0?Jn:t.length===1?t[0]:function(r){return t.reduce(function(o,n){return n(o)},r)}}var oe=function(){function t(e){e&&(this._subscribe=e)}return t.prototype.lift=function(e){var r=new t;return r.source=this,r.operator=e,r},t.prototype.subscribe=function(e,r,o){var n=this,i=jy(e)?e:new Qn(e,r,o);return Er(function(){var s=n,a=s.operator,u=s.source;i.add(a?a.call(i,u):u?n._subscribe(i):n._trySubscribe(i))}),i},t.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(r){e.error(r)}},t.prototype.forEach=function(e,r){var o=this;return r=Hf(r),new r(function(n,i){var s=new Qn({next:function(a){try{e(a)}catch(u){i(u),s.unsubscribe()}},error:i,complete:n});o.subscribe(s)})},t.prototype._subscribe=function(e){var r;return(r=this.source)===null||r===void 0?void 0:r.subscribe(e)},t.prototype[kr]=function(){return this},t.prototype.pipe=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return qf(e)(this)},t.prototype.toPromise=function(e){var r=this;return e=Hf(e),new e(function(o,n){var i;r.subscribe(function(s){return i=s},function(s){return n(s)},function(){return o(i)})})},t.create=function(e){return new t(e)},t}();function Hf(t){var e;return(e=t??rt.Promise)!==null&&e!==void 0?e:Promise}function Hy(t){return t&&W(t.next)&&W(t.error)&&W(t.complete)}function jy(t){return t&&t instanceof Ao||Hy(t)&&Vn(t)}function zy(t){return W(t?.lift)}function fe(t){return function(e){if(zy(e))return e.lift(function(r){try{return t(r,this)}catch(o){this.error(o)}});throw new TypeError("Unable to lift unknown Observable type")}}function le(t,e,r,o,n){return new Vy(t,e,r,o,n)}var Vy=function(t){_e(e,t);function e(r,o,n,i,s,a){var u=t.call(this,r)||this;return u.onFinalize=s,u.shouldUnsubscribe=a,u._next=o?function(c){try{o(c)}catch(f){r.error(f)}}:t.prototype._next,u._error=i?function(c){try{i(c)}catch(f){r.error(f)}finally{this.unsubscribe()}}:t.prototype._error,u._complete=n?function(){try{n()}catch(c){r.error(c)}finally{this.unsubscribe()}}:t.prototype._complete,u}return e.prototype.unsubscribe=function(){var r;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var o=this.closed;t.prototype.unsubscribe.call(this),!o&&((r=this.onFinalize)===null||r===void 0||r.call(this))}},e}(Ao);var jf=jn(function(t){return function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}});var yt=function(t){_e(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 e.prototype.lift=function(r){var o=new zf(this,this);return o.operator=r,o},e.prototype._throwIfClosed=function(){if(this.closed)throw new jf},e.prototype.next=function(r){var o=this;Er(function(){var n,i;if(o._throwIfClosed(),!o.isStopped){o.currentObservers||(o.currentObservers=Array.from(o.observers));try{for(var s=ht(o.currentObservers),a=s.next();!a.done;a=s.next()){var u=a.value;u.next(r)}}catch(c){n={error:c}}finally{try{a&&!a.done&&(i=s.return)&&i.call(s)}finally{if(n)throw n.error}}}})},e.prototype.error=function(r){var o=this;Er(function(){if(o._throwIfClosed(),!o.isStopped){o.hasError=o.isStopped=!0,o.thrownError=r;for(var n=o.observers;n.length;)n.shift().error(r)}})},e.prototype.complete=function(){var r=this;Er(function(){if(r._throwIfClosed(),!r.isStopped){r.isStopped=!0;for(var o=r.observers;o.length;)o.shift().complete()}})},e.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(e.prototype,"observed",{get:function(){var r;return((r=this.observers)===null||r===void 0?void 0:r.length)>0},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 o=this,n=this,i=n.hasError,s=n.isStopped,a=n.observers;return i||s?ma:(this.currentObservers=null,a.push(r),new tt(function(){o.currentObservers=null,Qt(a,r)}))},e.prototype._checkFinalizedStatuses=function(r){var o=this,n=o.hasError,i=o.thrownError,s=o.isStopped;n?r.error(i):s&&r.complete()},e.prototype.asObservable=function(){var r=new oe;return r.source=this,r},e.create=function(r,o){return new zf(r,o)},e}(oe);var zf=function(t){_e(e,t);function e(r,o){var n=t.call(this)||this;return n.destination=r,n.source=o,n}return e.prototype.next=function(r){var o,n;(n=(o=this.destination)===null||o===void 0?void 0:o.next)===null||n===void 0||n.call(o,r)},e.prototype.error=function(r){var o,n;(n=(o=this.destination)===null||o===void 0?void 0:o.error)===null||n===void 0||n.call(o,r)},e.prototype.complete=function(){var r,o;(o=(r=this.destination)===null||r===void 0?void 0:r.complete)===null||o===void 0||o.call(r)},e.prototype._subscribe=function(r){var o,n;return(n=(o=this.source)===null||o===void 0?void 0:o.subscribe(r))!==null&&n!==void 0?n:ma},e}(yt);var Io={now:function(){return(Io.delegate||Date).now()},delegate:void 0};var xa=function(t){_e(e,t);function e(r,o,n){r===void 0&&(r=1/0),o===void 0&&(o=1/0),n===void 0&&(n=Io);var i=t.call(this)||this;return i._bufferSize=r,i._windowTime=o,i._timestampProvider=n,i._buffer=[],i._infiniteTimeWindow=!0,i._infiniteTimeWindow=o===1/0,i._bufferSize=Math.max(1,r),i._windowTime=Math.max(1,o),i}return e.prototype.next=function(r){var o=this,n=o.isStopped,i=o._buffer,s=o._infiniteTimeWindow,a=o._timestampProvider,u=o._windowTime;n||(i.push(r),!s&&i.push(a.now()+u)),this._trimBuffer(),t.prototype.next.call(this,r)},e.prototype._subscribe=function(r){this._throwIfClosed(),this._trimBuffer();for(var o=this._innerSubscribe(r),n=this,i=n._infiniteTimeWindow,s=n._buffer,a=s.slice(),u=0;u<a.length&&!r.closed;u+=i?1:2)r.next(a[u]);return this._checkFinalizedStatuses(r),o},e.prototype._trimBuffer=function(){var r=this,o=r._bufferSize,n=r._timestampProvider,i=r._buffer,s=r._infiniteTimeWindow,a=(s?1:2)*o;if(o<1/0&&a<i.length&&i.splice(0,i.length-a),!s){for(var u=n.now(),c=0,f=1;f<i.length&&i[f]<=u;f+=2)c=f;c&&i.splice(0,c+1)}},e}(yt);var Vf=function(t){_e(e,t);function e(r,o){return t.call(this)||this}return e.prototype.schedule=function(r,o){return o===void 0&&(o=0),this},e}(tt);var Eo={setInterval:function(t,e){for(var r=[],o=2;o<arguments.length;o++)r[o-2]=arguments[o];var n=Eo.delegate;return n?.setInterval?n.setInterval.apply(n,et([t,e],Be(r))):setInterval.apply(void 0,et([t,e],Be(r)))},clearInterval:function(t){var e=Eo.delegate;return(e?.clearInterval||clearInterval)(t)},delegate:void 0};var Gf=function(t){_e(e,t);function e(r,o){var n=t.call(this,r,o)||this;return n.scheduler=r,n.work=o,n.pending=!1,n}return e.prototype.schedule=function(r,o){var n;if(o===void 0&&(o=0),this.closed)return this;this.state=r;var i=this.id,s=this.scheduler;return i!=null&&(this.id=this.recycleAsyncId(s,i,o)),this.pending=!0,this.delay=o,this.id=(n=this.id)!==null&&n!==void 0?n:this.requestAsyncId(s,this.id,o),this},e.prototype.requestAsyncId=function(r,o,n){return n===void 0&&(n=0),Eo.setInterval(r.flush.bind(r,this),n)},e.prototype.recycleAsyncId=function(r,o,n){if(n===void 0&&(n=0),n!=null&&this.delay===n&&this.pending===!1)return o;o!=null&&Eo.clearInterval(o)},e.prototype.execute=function(r,o){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var n=this._execute(r,o);if(n)return n;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},e.prototype._execute=function(r,o){var n=!1,i;try{this.work(r)}catch(s){n=!0,i=s||new Error("Scheduled action threw falsy error")}if(n)return this.unsubscribe(),i},e.prototype.unsubscribe=function(){if(!this.closed){var r=this,o=r.id,n=r.scheduler,i=n.actions;this.work=this.state=this.scheduler=null,this.pending=!1,Qt(i,this),o!=null&&(this.id=this.recycleAsyncId(n,o,null)),this.delay=null,t.prototype.unsubscribe.call(this)}},e}(Vf);var ga=function(){function t(e,r){r===void 0&&(r=t.now),this.schedulerActionCtor=e,this.now=r}return t.prototype.schedule=function(e,r,o){return r===void 0&&(r=0),new this.schedulerActionCtor(this,e).schedule(o,r)},t.now=Io.now,t}();var Kf=function(t){_e(e,t);function e(r,o){o===void 0&&(o=ga.now);var n=t.call(this,r,o)||this;return n.actions=[],n._active=!1,n}return e.prototype.flush=function(r){var o=this.actions;if(this._active){o.push(r);return}var n;this._active=!0;do if(n=r.execute(r.state,r.delay))break;while(r=o.shift());if(this._active=!1,n){for(;r=o.shift();)r.unsubscribe();throw n}},e}(ga);var ko=new Kf(Gf),Qf=ko;function Zn(t){return t&&W(t.schedule)}function Gy(t){return t[t.length-1]}function Pr(t){return Zn(Gy(t))?t.pop():void 0}var Cr=function(t){return t&&typeof t.length=="number"&&typeof t!="function"};function Xn(t){return W(t?.then)}function ei(t){return W(t[kr])}function ti(t){return Symbol.asyncIterator&&W(t?.[Symbol.asyncIterator])}function ri(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.")}function Ky(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var oi=Ky();function ni(t){return W(t?.[oi])}function ii(t){return $f(this,arguments,function(){var r,o,n,i;return Hn(this,function(s){switch(s.label){case 0:r=t.getReader(),s.label=1;case 1:s.trys.push([1,,9,10]),s.label=2;case 2:return[4,Kt(r.read())];case 3:return o=s.sent(),n=o.value,i=o.done,i?[4,Kt(void 0)]:[3,5];case 4:return[2,s.sent()];case 5:return[4,Kt(n)];case 6:return[4,s.sent()];case 7:return s.sent(),[3,2];case 8:return[3,10];case 9:return r.releaseLock(),[7];case 10:return[2]}})})}function si(t){return W(t?.getReader)}function ge(t){if(t instanceof oe)return t;if(t!=null){if(ei(t))return Qy(t);if(Cr(t))return Jy(t);if(Xn(t))return Zy(t);if(ti(t))return Jf(t);if(ni(t))return Xy(t);if(si(t))return ex(t)}throw ri(t)}function Qy(t){return new oe(function(e){var r=t[kr]();if(W(r.subscribe))return r.subscribe(e);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function Jy(t){return new oe(function(e){for(var r=0;r<t.length&&!e.closed;r++)e.next(t[r]);e.complete()})}function Zy(t){return new oe(function(e){t.then(function(r){e.closed||(e.next(r),e.complete())},function(r){return e.error(r)}).then(null,Gn)})}function Xy(t){return new oe(function(e){var r,o;try{for(var n=ht(t),i=n.next();!i.done;i=n.next()){var s=i.value;if(e.next(s),e.closed)return}}catch(a){r={error:a}}finally{try{i&&!i.done&&(o=n.return)&&o.call(n)}finally{if(r)throw r.error}}e.complete()})}function Jf(t){return new oe(function(e){tx(t,e).catch(function(r){return e.error(r)})})}function ex(t){return Jf(ii(t))}function tx(t,e){var r,o,n,i;return Ff(this,void 0,void 0,function(){var s,a;return Hn(this,function(u){switch(u.label){case 0:u.trys.push([0,5,6,11]),r=Rf(t),u.label=1;case 1:return[4,r.next()];case 2:if(o=u.sent(),!!o.done)return[3,4];if(s=o.value,e.next(s),e.closed)return[2];u.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return a=u.sent(),n={error:a},[3,11];case 6:return u.trys.push([6,,9,10]),o&&!o.done&&(i=r.return)?[4,i.call(r)]:[3,8];case 7:u.sent(),u.label=8;case 8:return[3,10];case 9:if(n)throw n.error;return[7];case 10:return[7];case 11:return e.complete(),[2]}})})}function je(t,e,r,o,n){o===void 0&&(o=0),n===void 0&&(n=!1);var i=e.schedule(function(){r(),n?t.add(this.schedule(null,o)):this.unsubscribe()},o);if(t.add(i),!n)return i}function ai(t,e){return e===void 0&&(e=0),fe(function(r,o){r.subscribe(le(o,function(n){return je(o,t,function(){return o.next(n)},e)},function(){return je(o,t,function(){return o.complete()},e)},function(n){return je(o,t,function(){return o.error(n)},e)}))})}function ui(t,e){return e===void 0&&(e=0),fe(function(r,o){o.add(t.schedule(function(){return r.subscribe(o)},e))})}function Zf(t,e){return ge(t).pipe(ui(e),ai(e))}function Xf(t,e){return ge(t).pipe(ui(e),ai(e))}function el(t,e){return new oe(function(r){var o=0;return e.schedule(function(){o===t.length?r.complete():(r.next(t[o++]),r.closed||this.schedule())})})}function tl(t,e){return new oe(function(r){var o;return je(r,e,function(){o=t[oi](),je(r,e,function(){var n,i,s;try{n=o.next(),i=n.value,s=n.done}catch(a){r.error(a);return}s?r.complete():r.next(i)},0,!0)}),function(){return W(o?.return)&&o.return()}})}function ci(t,e){if(!t)throw new Error("Iterable cannot be null");return new oe(function(r){je(r,e,function(){var o=t[Symbol.asyncIterator]();je(r,e,function(){o.next().then(function(n){n.done?r.complete():r.next(n.value)})},0,!0)})})}function rl(t,e){return ci(ii(t),e)}function ol(t,e){if(t!=null){if(ei(t))return Zf(t,e);if(Cr(t))return el(t,e);if(Xn(t))return Xf(t,e);if(ti(t))return ci(t,e);if(ni(t))return tl(t,e);if(si(t))return rl(t,e)}throw ri(t)}function Xt(t,e){return e?ol(t,e):ge(t)}function ba(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r=Pr(t);return Xt(t,r)}function nl(t){return t instanceof Date&&!isNaN(t)}function er(t,e){return fe(function(r,o){var n=0;r.subscribe(le(o,function(i){o.next(t.call(e,i,n++))}))})}var rx=Array.isArray;function ox(t,e){return rx(e)?t.apply(void 0,et([],Be(e))):t(e)}function il(t){return er(function(e){return ox(t,e)})}function sl(t,e,r,o,n,i,s,a){var u=[],c=0,f=0,m=!1,p=function(){m&&!u.length&&!c&&e.complete()},d=function(w){return c<o?y(w):u.push(w)},y=function(w){i&&e.next(w),c++;var g=!1;ge(r(w,f++)).subscribe(le(e,function(A){n?.(A),i?d(A):e.next(A)},function(){g=!0},void 0,function(){if(g)try{c--;for(var A=function(){var D=u.shift();s?je(e,s,function(){return y(D)}):y(D)};u.length&&c<o;)A();p()}catch(D){e.error(D)}}))};return t.subscribe(le(e,d,function(){m=!0,p()})),function(){a?.()}}function Po(t,e,r){return r===void 0&&(r=1/0),W(e)?Po(function(o,n){return er(function(i,s){return e(o,i,n,s)})(ge(t(o,n)))},r):(typeof e=="number"&&(r=e),fe(function(o,n){return sl(o,n,t,r)}))}function al(t){return t===void 0&&(t=1/0),Po(Jn,t)}function ul(){return al(1)}function va(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return ul()(Xt(t,Pr(t)))}var nx=["addListener","removeListener"],ix=["addEventListener","removeEventListener"],sx=["on","off"];function tr(t,e,r,o){if(W(r)&&(o=r,r=void 0),o)return tr(t,e,r).pipe(il(o));var n=Be(cx(t)?ix.map(function(a){return function(u){return t[a](e,u,r)}}):ax(t)?nx.map(cl(t,e)):ux(t)?sx.map(cl(t,e)):[],2),i=n[0],s=n[1];if(!i&&Cr(t))return Po(function(a){return tr(a,e,r)})(ge(t));if(!i)throw new TypeError("Invalid event target");return new oe(function(a){var u=function(){for(var c=[],f=0;f<arguments.length;f++)c[f]=arguments[f];return a.next(1<c.length?c:c[0])};return i(u),function(){return s(u)}})}function cl(t,e){return function(r){return function(o){return t[r](e,o)}}}function ax(t){return W(t.addListener)&&W(t.removeListener)}function ux(t){return W(t.on)&&W(t.off)}function cx(t){return W(t.addEventListener)&&W(t.removeEventListener)}function fl(t,e,r){t===void 0&&(t=0),r===void 0&&(r=Qf);var o=-1;return e!=null&&(Zn(e)?r=e:o=e),new oe(function(n){var i=nl(t)?+t-r.now():t;i<0&&(i=0);var s=0;return r.schedule(function(){n.closed||(n.next(s++),0<=o?this.schedule(void 0,o):n.complete())},i)})}function wa(t,e){return fe(function(r,o){var n=0;r.subscribe(le(o,function(i){return t.call(e,i,n++)&&o.next(i)}))})}function Sa(t){return fe(function(e,r){var o=!1,n=null,i=null,s=function(){if(i?.unsubscribe(),i=null,o){o=!1;var a=n;n=null,r.next(a)}};e.subscribe(le(r,function(a){i?.unsubscribe(),o=!0,n=a,i=le(r,s,Jt),ge(t(a)).subscribe(i)},function(){s(),r.complete()},void 0,function(){n=i=null}))})}function Da(t,e){return e===void 0&&(e=ko),fe(function(r,o){var n=null,i=null,s=null,a=function(){if(n){n.unsubscribe(),n=null;var c=i;i=null,o.next(c)}};function u(){var c=s+t,f=e.now();if(f<c){n=this.schedule(void 0,c-f),o.add(n);return}a()}r.subscribe(le(o,function(c){i=c,s=e.now(),n||(n=e.schedule(u,t),o.add(n))},function(){a(),o.complete()},void 0,function(){i=n=null}))})}function Ta(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r=Pr(t);return fe(function(o,n){(r?va(t,o,r):va(t,o)).subscribe(n)})}function Oa(t){return fe(function(e,r){ge(t).subscribe(le(r,function(){return r.complete()},Jt)),!r.closed&&e.subscribe(r)})}function ll(t,e){return fe(function(r,o){var n=e??{},i=n.leading,s=i===void 0?!0:i,a=n.trailing,u=a===void 0?!1:a,c=!1,f=null,m=null,p=!1,d=function(){m?.unsubscribe(),m=null,u&&(g(),p&&o.complete())},y=function(){m=null,p&&o.complete()},w=function(A){return m=ge(t(A)).subscribe(le(o,d,y))},g=function(){if(c){c=!1;var A=f;f=null,o.next(A),!p&&w(A)}};r.subscribe(le(o,function(A){c=!0,f=A,!(m&&!m.closed)&&(s?g():w(A))},function(){p=!0,!(u&&c&&m&&!m.closed)&&o.complete()}))})}function Ma(t,e,r){e===void 0&&(e=ko);var o=fl(t,e);return ll(function(){return o},r)}var fx={debounce:Sa,debounceTime:Da,map:er,startWith:Ta,takeUntil:Oa,throttleTime:Ma,filter:wa};var _a=class{constructor(){this.observableEventEmitterBundleArray=new Array,this.observableEventTargetBundleArray=new Array}getSubjectForEmitterEvent(e,r){let o=this.observableEventEmitterBundleArray.find(n=>n.eventRef===e&&n.event===r);if(o)return o.subject;{let n=tr(e,r),i=new yt;n.subscribe(i);let s={subject:i,eventRef:e,event:r};return this.observableEventEmitterBundleArray.push(s),s.subject}}getSubjectForEventTarget(e,r){let o=this.observableEventTargetBundleArray.find(n=>n.eventRef===e&&n.event===r);if(o)return o.subject;{let i={subject:new yt,eventRef:e,event:r};return this.observableEventTargetBundleArray.push(i),i.subject}}};var Aa=class{constructor(){this.observableFunctions={next:e=>{},complete:e=>{}},this.generator=null,this.buffered=!1,this.payloadBuffer=[],this.observable=new oe(e=>{this.observableFunctions.next=(...r)=>e.next(r),this.observableFunctions.complete=()=>(this.completedDeffered.resolve(),e.complete())}),this.completedDeffered=K.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{let o=this.generator.next();this.internalPush(o.value)}}signalComplete(){this.observableFunctions.complete()}internalPush(e){this.observableFunctions.next(e)}};var Tt={};re(Tt,{CronJob:()=>Zo,CronManager:()=>Nu,ExtendedDate:()=>Fu,HrtMeasurement:()=>$u,Interval:()=>Ru,TimeStamp:()=>Qr,Timer:()=>Wu,getMilliSecondsAsHumanReadableAgoTime:()=>Ev,getMilliSecondsAsHumanReadableString:()=>Cu,getMilliSecondsFromUnits:()=>Pu,units:()=>Ct});var fi={};re(fi,{Cron:()=>dx,CronDate:()=>Ye,CronPattern:()=>Ea,scheduledJobs:()=>Fo});function Ae(t,e,r,o,n,i,s,a){return Ae.fromTZ(Ae.tp(t,e,r,o,n,i,s),a)}Ae.fromTZISO=(t,e,r)=>Ae.fromTZ(lx(t,e),r);Ae.fromTZ=function(t,e){let r=new Date(Date.UTC(t.y,t.m-1,t.d,t.h,t.i,t.s)),o=Ia(t.tz,r),n=new Date(r.getTime()-o),i=Ia(t.tz,n);if(i-o===0)return n;{let s=new Date(r.getTime()-i),a=Ia(t.tz,s);if(a-i===0||!e&&a-i>0)return s;if(e)throw new Error("Invalid date passed to fromTZ()");return n}};Ae.toTZ=function(t,e){let r=t.toLocaleString("en-US",{timeZone:e}).replace(/[\u202f]/," "),o=new Date(r);return{y:o.getFullYear(),m:o.getMonth()+1,d:o.getDate(),h:o.getHours(),i:o.getMinutes(),s:o.getSeconds(),tz:e}};Ae.tp=(t,e,r,o,n,i,s)=>({y:t,m:e,d:r,h:o,i:n,s:i,tz:s});function Ia(t,e=new Date){let r=e.toLocaleString("en-US",{timeZone:t,timeZoneName:"shortOffset"}).split(" ").slice(-1)[0],o=e.toLocaleString("en-US").replace(/[\u202f]/," ");return Date.parse(`${o} GMT`)-Date.parse(`${o} ${r}`)}function lx(t,e){let r=new Date(Date.parse(t));if(isNaN(r))throw new Error("minitz: Invalid ISO8601 passed to parser.");let o=t.substring(9);return t.includes("Z")||o.includes("-")||o.includes("+")?Ae.tp(r.getUTCFullYear(),r.getUTCMonth()+1,r.getUTCDate(),r.getUTCHours(),r.getUTCMinutes(),r.getUTCSeconds(),"Etc/UTC"):Ae.tp(r.getFullYear(),r.getMonth()+1,r.getDate(),r.getHours(),r.getMinutes(),r.getSeconds(),e)}Ae.minitz=Ae;var ka=32,$o=31|ka,dl=[1,2,4,8,16],Ea=class{pattern;timezone;second;minute;hour;day;month;dayOfWeek;lastDayOfMonth;starDOM;starDOW;constructor(t,e){this.pattern=t,this.timezone=e,this.second=Array(60).fill(0),this.minute=Array(60).fill(0),this.hour=Array(24).fill(0),this.day=Array(31).fill(0),this.month=Array(12).fill(0),this.dayOfWeek=Array(7).fill(0),this.lastDayOfMonth=!1,this.starDOM=!1,this.starDOW=!1,this.parse()}parse(){if(!(typeof this.pattern=="string"||this.pattern instanceof String))throw new TypeError("CronPattern: Pattern has to be of type string.");this.pattern.indexOf("@")>=0&&(this.pattern=this.handleNicknames(this.pattern).trim());let t=this.pattern.replace(/\s+/g," ").split(" ");if(t.length<5||t.length>6)throw new TypeError("CronPattern: invalid configuration format ('"+this.pattern+"'), exactly five or six space separated parts are required.");if(t.length===5&&t.unshift("0"),t[3].indexOf("L")>=0&&(t[3]=t[3].replace("L",""),this.lastDayOfMonth=!0),t[3]=="*"&&(this.starDOM=!0),t[4].length>=3&&(t[4]=this.replaceAlphaMonths(t[4])),t[5].length>=3&&(t[5]=this.replaceAlphaDays(t[5])),t[5]=="*"&&(this.starDOW=!0),this.pattern.indexOf("?")>=0){let e=new Ye(new Date,this.timezone).getDate(!0);t[0]=t[0].replace("?",e.getSeconds().toString()),t[1]=t[1].replace("?",e.getMinutes().toString()),t[2]=t[2].replace("?",e.getHours().toString()),this.starDOM||(t[3]=t[3].replace("?",e.getDate().toString())),t[4]=t[4].replace("?",(e.getMonth()+1).toString()),this.starDOW||(t[5]=t[5].replace("?",e.getDay().toString()))}this.throwAtIllegalCharacters(t),this.partToArray("second",t[0],0,1),this.partToArray("minute",t[1],0,1),this.partToArray("hour",t[2],0,1),this.partToArray("day",t[3],-1,1),this.partToArray("month",t[4],-1,1),this.partToArray("dayOfWeek",t[5],0,$o),this.dayOfWeek[7]&&(this.dayOfWeek[0]=this.dayOfWeek[7])}partToArray(t,e,r,o){let n=this[t],i=t==="day"&&this.lastDayOfMonth;if(e===""&&!i)throw new TypeError("CronPattern: configuration entry "+t+" ("+e+") is empty, check for trailing spaces.");if(e==="*")return n.fill(o);let s=e.split(",");if(s.length>1)for(let a=0;a<s.length;a++)this.partToArray(t,s[a],r,o);else e.indexOf("-")!==-1&&e.indexOf("/")!==-1?this.handleRangeWithStepping(e,t,r,o):e.indexOf("-")!==-1?this.handleRange(e,t,r,o):e.indexOf("/")!==-1?this.handleStepping(e,t,r,o):e!==""&&this.handleNumber(e,t,r,o)}throwAtIllegalCharacters(t){for(let e=0;e<t.length;e++)if((e===5?/[^/*0-9,\-#L]+/:/[^/*0-9,-]+/).test(t[e]))throw new TypeError("CronPattern: configuration entry "+e+" ("+t[e]+") contains illegal characters.")}handleNumber(t,e,r,o){let n=this.extractNth(t,e),i=parseInt(n[0],10)+r;if(isNaN(i))throw new TypeError("CronPattern: "+e+" is not a number: '"+t+"'");this.setPart(e,i,n[1]||o)}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"){if(e<0||e>=31)throw new RangeError("CronPattern: Invalid value for "+t+": "+e)}else if(t==="month"&&(e<0||e>=12))throw new RangeError("CronPattern: Invalid value for "+t+": "+e);this[t][e]=r}handleRangeWithStepping(t,e,r,o){let n=this.extractNth(t,e),i=n[0].match(/^(\d+)-(\d+)\/(\d+)$/);if(i===null)throw new TypeError("CronPattern: Syntax error, illegal range with stepping: '"+t+"'");let[,s,a,u]=i,c=parseInt(s,10)+r,f=parseInt(a,10)+r,m=parseInt(u,10);if(isNaN(c))throw new TypeError("CronPattern: Syntax error, illegal lower range (NaN)");if(isNaN(f))throw new TypeError("CronPattern: Syntax error, illegal upper range (NaN)");if(isNaN(m))throw new TypeError("CronPattern: Syntax error, illegal stepping: (NaN)");if(m===0)throw new TypeError("CronPattern: Syntax error, illegal stepping: 0");if(m>this[e].length)throw new TypeError("CronPattern: Syntax error, steps cannot be greater than maximum value of part ("+this[e].length+")");if(c>f)throw new TypeError("CronPattern: From value is larger than to value: '"+t+"'");for(let p=c;p<=f;p+=m)this.setPart(e,p,n[1]||o)}extractNth(t,e){let r=t,o;if(r.includes("#")){if(e!=="dayOfWeek")throw new Error("CronPattern: nth (#) only allowed in day-of-week field");o=r.split("#")[1],r=r.split("#")[0]}return[r,o]}handleRange(t,e,r,o){let n=this.extractNth(t,e),i=n[0].split("-");if(i.length!==2)throw new TypeError("CronPattern: Syntax error, illegal range: '"+t+"'");let s=parseInt(i[0],10)+r,a=parseInt(i[1],10)+r;if(isNaN(s))throw new TypeError("CronPattern: Syntax error, illegal lower range (NaN)");if(isNaN(a))throw new TypeError("CronPattern: Syntax error, illegal upper range (NaN)");if(s>a)throw new TypeError("CronPattern: From value is larger than to value: '"+t+"'");for(let u=s;u<=a;u++)this.setPart(e,u,n[1]||o)}handleStepping(t,e,r,o){let n=this.extractNth(t,e),i=n[0].split("/");if(i.length!==2)throw new TypeError("CronPattern: Syntax error, illegal stepping: '"+t+"'");i[0]===""&&(i[0]="*");let s=0;i[0]!=="*"&&(s=parseInt(i[0],10)+r);let a=parseInt(i[1],10);if(isNaN(a))throw new TypeError("CronPattern: Syntax error, illegal stepping: (NaN)");if(a===0)throw new TypeError("CronPattern: Syntax error, illegal stepping: 0");if(a>this[e].length)throw new TypeError("CronPattern: Syntax error, max steps for part is ("+this[e].length+")");for(let u=s;u<this[e].length;u+=a)this.setPart(e,u,n[1]||o)}replaceAlphaDays(t){return t.replace(/-sun/gi,"-7").replace(/sun/gi,"0").replace(/mon/gi,"1").replace(/tue/gi,"2").replace(/wed/gi,"3").replace(/thu/gi,"4").replace(/fri/gi,"5").replace(/sat/gi,"6")}replaceAlphaMonths(t){return t.replace(/jan/gi,"1").replace(/feb/gi,"2").replace(/mar/gi,"3").replace(/apr/gi,"4").replace(/may/gi,"5").replace(/jun/gi,"6").replace(/jul/gi,"7").replace(/aug/gi,"8").replace(/sep/gi,"9").replace(/oct/gi,"10").replace(/nov/gi,"11").replace(/dec/gi,"12")}handleNicknames(t){let e=t.trim().toLowerCase();return e==="@yearly"||e==="@annually"?"0 0 1 1 *":e==="@monthly"?"0 0 1 * *":e==="@weekly"?"0 0 * * 0":e==="@daily"?"0 0 * * *":e==="@hourly"?"0 * * * *":t}setNthWeekdayOfMonth(t,e){if(typeof e!="number"&&e==="L")this.dayOfWeek[t]=this.dayOfWeek[t]|ka;else if(e===$o)this.dayOfWeek[t]=$o;else if(e<6&&e>0)this.dayOfWeek[t]=this.dayOfWeek[t]|dl[e-1];else throw new TypeError(`CronPattern: nth weekday out of range, should be 1-5 or L. Value: ${e}, Type: ${typeof e}`)}},pl=[31,28,31,30,31,30,31,31,30,31,30,31],xt=[["month","year",0],["day","month",-1],["hour","day",0],["minute","hour",0],["second","minute",0]],Ye=class hl{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===void 0)this.fromDate(new Date);else if(e&&typeof e=="string")this.fromString(e);else if(e instanceof hl)this.fromCronDate(e);else throw new TypeError("CronDate: Invalid type ("+typeof e+") passed to CronDate constructor")}isNthWeekdayOfMonth(e,r,o,n){let i=new Date(Date.UTC(e,r,o)).getUTCDay(),s=0;for(let a=1;a<=o;a++)new Date(Date.UTC(e,r,a)).getUTCDay()===i&&s++;if(n&$o&&dl[s-1]&n)return!0;if(n&ka){let a=new Date(Date.UTC(e,r+1,0)).getUTCDate();for(let u=o+1;u<=a;u++)if(new Date(Date.UTC(e,r,u)).getUTCDay()===i)return!1;return!0}return!1}fromDate(e){if(this.tz!==void 0)if(typeof this.tz=="number")this.ms=e.getUTCMilliseconds(),this.second=e.getUTCSeconds(),this.minute=e.getUTCMinutes()+this.tz,this.hour=e.getUTCHours(),this.day=e.getUTCDate(),this.month=e.getUTCMonth(),this.year=e.getUTCFullYear(),this.apply();else{let r=Ae.toTZ(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}else this.ms=e.getMilliseconds(),this.second=e.getSeconds(),this.minute=e.getMinutes(),this.hour=e.getHours(),this.day=e.getDate(),this.month=e.getMonth(),this.year=e.getFullYear()}fromCronDate(e){this.tz=e.tz,this.year=e.year,this.month=e.month,this.day=e.day,this.hour=e.hour,this.minute=e.minute,this.second=e.second,this.ms=e.ms}apply(){if(this.month>11||this.day>pl[this.month]||this.hour>59||this.minute>59||this.second>59||this.hour<0||this.minute<0||this.second<0){let e=new Date(Date.UTC(this.year,this.month,this.day,this.hour,this.minute,this.second,this.ms));return this.ms=e.getUTCMilliseconds(),this.second=e.getUTCSeconds(),this.minute=e.getUTCMinutes(),this.hour=e.getUTCHours(),this.day=e.getUTCDate(),this.month=e.getUTCMonth(),this.year=e.getUTCFullYear(),!0}else return!1}fromString(e){if(typeof this.tz=="number"){let r=Ae.fromTZISO(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(Ae.fromTZISO(e,this.tz))}findNext(e,r,o,n){let i=this[r],s;o.lastDayOfMonth&&(this.month!==1?s=pl[this.month]:s=new Date(Date.UTC(this.year,this.month+1,0,0,0,0,0)).getUTCDate());let a=!o.starDOW&&r=="day"?new Date(Date.UTC(this.year,this.month,1,0,0,0,0)).getUTCDay():void 0;for(let u=this[r]+n;u<o[r].length;u++){let c=o[r][u];if(r==="day"&&o.lastDayOfMonth&&u-n==s&&(c=1),r==="day"&&!o.starDOW){let f=o.dayOfWeek[(a+(u-n-1))%7];if(f&&f&$o)f=this.isNthWeekdayOfMonth(this.year,this.month,u-n,f)?1:0;else if(f)throw new Error(`CronDate: Invalid value for dayOfWeek encountered. ${f}`);e.legacyMode&&!o.starDOM?c=c||f:c=c&&f}if(c)return this[r]=u-n,i!==this[r]?2:1}return 3}recurse(e,r,o){let n=this.findNext(r,xt[o][0],e,xt[o][2]);if(n>1){let i=o+1;for(;i<xt.length;)this[xt[i][0]]=-xt[i][2],i++;if(n===3)return this[xt[o][1]]++,this[xt[o][0]]=-xt[o][2],this.apply(),this.recurse(e,r,0);if(this.apply())return this.recurse(e,r,o-1)}return o+=1,o>=xt.length?this:this.year>=3e3?null:this.recurse(e,r,o)}increment(e,r,o){return this.second+=r.interval!==void 0&&r.interval>1&&o?r.interval:1,this.ms=0,this.apply(),this.recurse(e,r,0)}getDate(e){return e||this.tz===void 0?new Date(this.year,this.month,this.day,this.hour,this.minute,this.second,this.ms):typeof this.tz=="number"?new Date(Date.UTC(this.year,this.month,this.day,this.hour,this.minute-this.tz,this.second,this.ms)):Ae.fromTZ(Ae.tp(this.year,this.month+1,this.day,this.hour,this.minute,this.second,this.tz),!1)}getTime(){return this.getDate(!1).getTime()}};function px(t){if(t===void 0&&(t={}),delete t.name,t.legacyMode=t.legacyMode===void 0?!0:t.legacyMode,t.paused=t.paused===void 0?!1:t.paused,t.maxRuns=t.maxRuns===void 0?1/0:t.maxRuns,t.catch=t.catch===void 0?!1:t.catch,t.interval=t.interval===void 0?0:parseInt(t.interval.toString(),10),t.utcOffset=t.utcOffset===void 0?void 0:parseInt(t.utcOffset.toString(),10),t.unref=t.unref===void 0?!1:t.unref,t.startAt&&(t.startAt=new Ye(t.startAt,t.timezone)),t.stopAt&&(t.stopAt=new Ye(t.stopAt,t.timezone)),t.interval!==null){if(isNaN(t.interval))throw new Error("CronOptions: Supplied value for interval is not a number");if(t.interval<0)throw new Error("CronOptions: Supplied value for interval can not be negative")}if(t.utcOffset!==void 0){if(isNaN(t.utcOffset))throw new Error("CronOptions: Invalid value passed for utcOffset, should be number representing minutes offset from UTC.");if(t.utcOffset<-870||t.utcOffset>870)throw new Error("CronOptions: utcOffset out of bounds.");if(t.utcOffset!==void 0&&t.timezone)throw new Error("CronOptions: Combining 'utcOffset' with 'timezone' is not allowed.")}if(t.unref!==!0&&t.unref!==!1)throw new Error("CronOptions: Unref should be either true, false or undefined(false).");return t}function No(t){return Object.prototype.toString.call(t)==="[object Function]"||typeof t=="function"||t instanceof Function}function mx(t){typeof Deno<"u"&&typeof Deno.unrefTimer<"u"?Deno.unrefTimer(t):t&&typeof t.unref<"u"&&t.unref()}var ml=30*1e3,Fo=[],dx=class{name;options;_states;fn;constructor(t,e,r){let o,n;if(No(e))n=e;else if(typeof e=="object")o=e;else if(e!==void 0)throw new Error("Cron: Invalid argument passed for optionsIn. Should be one of function, or object (options).");if(No(r))n=r;else if(typeof r=="object")o=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=o?.name,this.options=px(o),this._states={kill:!1,blocking:!1,previousRun:void 0,currentRun:void 0,once:void 0,currentTimeout:void 0,maxRuns:o?o.maxRuns:void 0,paused:o?o.paused:!1,pattern:new Ea("* * * * *")},t&&(t instanceof Date||typeof t=="string"&&t.indexOf(":")>0)?this._states.once=new Ye(t,this.options.timezone||this.options.utcOffset):this._states.pattern=new Ea(t,this.options.timezone),this.name){if(Fo.find(i=>i.name===this.name))throw new Error("Cron: Tried to initialize new named job '"+this.name+"', but name already taken.");Fo.push(this)}return n!==void 0&&No(n)&&(this.fn=n,this.schedule()),this}nextRun(t){let e=this._next(t);return e?e.getDate(!1):null}nextRuns(t,e){this._states.maxRuns!==void 0&&t>this._states.maxRuns&&(t=this._states.maxRuns);let r=[],o=e||this._states.currentRun||void 0;for(;t--&&(o=this.nextRun(o));)r.push(o);return r}getPattern(){return this._states.pattern?this._states.pattern.pattern:void 0}isRunning(){let t=this.nextRun(this._states.currentRun),e=!this._states.paused,r=this.fn!==void 0,o=!this._states.kill;return e&&r&&o&&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){t=t||new Date;let e=this._next(t);return e?t instanceof Ye||t instanceof Date?e.getTime()-t.getTime():e.getTime()-new Ye(t).getTime():null}stop(){this._states.kill=!0,this._states.currentTimeout&&clearTimeout(this._states.currentTimeout);let t=Fo.indexOf(this);t>=0&&Fo.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>ml&&(e=ml),this._states.currentTimeout=setTimeout(()=>this._checkTrigger(r),e),this._states.currentTimeout&&this.options.unref&&mx(this._states.currentTimeout),this)}async _trigger(t){if(this._states.blocking=!0,this._states.currentRun=new Ye(void 0,this.options.timezone||this.options.utcOffset),this.options.catch)try{this.fn!==void 0&&await this.fn(this,this.options.context)}catch(e){No(this.options.catch)&&this.options.catch(e,this)}else this.fn!==void 0&&await this.fn(this,this.options.context);this._states.previousRun=new Ye(t,this.options.timezone||this.options.utcOffset),this._states.blocking=!1}async trigger(){await this._trigger()}runsLeft(){return this._states.maxRuns}_checkTrigger(t){let e=new Date,r=!this._states.paused&&e.getTime()>=t.getTime(),o=this._states.blocking&&this.options.protect;r&&!o?(this._states.maxRuns!==void 0&&this._states.maxRuns--,this._trigger()):r&&o&&No(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 Ye(t,this.options.timezone||this.options.utcOffset),this.options.startAt&&t&&t.getTime()<this.options.startAt.getTime()&&(t=this.options.startAt);let o=this._states.once||new Ye(t,this.options.timezone||this.options.utcOffset);return!r&&o!==this._states.once&&(o=o.increment(this._states.pattern,this.options,e)),this._states.once&&this._states.once.getTime()<=t.getTime()||o===null||this._states.maxRuns!==void 0&&this._states.maxRuns<=0||this._states.kill||this.options.stopAt&&o.getTime()>=this.options.stopAt.getTime()?null:o}_calculatePreviousRun(t,e){let r=new Ye(void 0,this.options.timezone||this.options.utcOffset),o=t;if(this.options.startAt.getTime()<=r.getTime()){o=this.options.startAt;let n=o.getTime()+this.options.interval*1e3;for(;n<=r.getTime();)o=new Ye(o,this.options.timezone||this.options.utcOffset).increment(this._states.pattern,this.options,!0),n=o.getTime()+this.options.interval*1e3;e=!0}return o===null&&(o=void 0),[o,e]}};var cs={};re(cs,{add:()=>or,addBusinessDays:()=>Wa,addDays:()=>be,addHours:()=>Ua,addISOWeekYears:()=>Ba,addMilliseconds:()=>nr,addMinutes:()=>Ro,addMonths:()=>gt,addQuarters:()=>Wo,addSeconds:()=>Ya,addWeeks:()=>ir,addYears:()=>qa,areIntervalsOverlapping:()=>yx,clamp:()=>xx,closestIndexTo:()=>za,closestTo:()=>gx,compareAsc:()=>Fe,compareDesc:()=>bx,constructFrom:()=>h,constructNow:()=>B,daysToWeeks:()=>wx,differenceInBusinessDays:()=>Sx,differenceInCalendarDays:()=>De,differenceInCalendarISOWeekYears:()=>Ga,differenceInCalendarISOWeeks:()=>Dx,differenceInCalendarMonths:()=>Rr,differenceInCalendarQuarters:()=>Uo,differenceInCalendarWeeks:()=>Wr,differenceInCalendarYears:()=>sr,differenceInDays:()=>Lo,differenceInHours:()=>Ur,differenceInISOWeekYears:()=>Tx,differenceInMilliseconds:()=>Bo,differenceInMinutes:()=>Lr,differenceInMonths:()=>ar,differenceInQuarters:()=>Ox,differenceInSeconds:()=>St,differenceInWeeks:()=>Mx,differenceInYears:()=>Ja,eachDayOfInterval:()=>Za,eachHourOfInterval:()=>_x,eachMinuteOfInterval:()=>Ax,eachMonthOfInterval:()=>Ix,eachQuarterOfInterval:()=>Ex,eachWeekOfInterval:()=>kx,eachWeekendOfInterval:()=>Ho,eachWeekendOfMonth:()=>Px,eachWeekendOfYear:()=>Cx,eachYearOfInterval:()=>Nx,endOfDay:()=>Yo,endOfDecade:()=>Fx,endOfHour:()=>$x,endOfISOWeek:()=>Rx,endOfISOWeekYear:()=>Wx,endOfMinute:()=>Ux,endOfMonth:()=>qo,endOfQuarter:()=>Lx,endOfSecond:()=>Bx,endOfToday:()=>Yx,endOfTomorrow:()=>qx,endOfWeek:()=>eu,endOfYear:()=>Xa,endOfYesterday:()=>Hx,format:()=>ru,formatDate:()=>ru,formatDistance:()=>ou,formatDistanceStrict:()=>nu,formatDistanceToNow:()=>Ag,formatDistanceToNowStrict:()=>Ig,formatDuration:()=>kg,formatISO:()=>Pg,formatISO9075:()=>Cg,formatISODuration:()=>Ng,formatRFC3339:()=>Fg,formatRFC7231:()=>Wg,formatRelative:()=>Ug,formatters:()=>bi,fromUnixTime:()=>Lg,getDate:()=>iu,getDay:()=>lr,getDayOfYear:()=>tu,getDaysInMonth:()=>su,getDaysInYear:()=>Bg,getDecade:()=>Yg,getDefaultOptions:()=>uu,getHours:()=>qg,getISODay:()=>cu,getISOWeek:()=>zo,getISOWeekYear:()=>We,getISOWeeksInYear:()=>Hg,getMilliseconds:()=>jg,getMinutes:()=>zg,getMonth:()=>Vg,getOverlappingDaysInIntervals:()=>Gg,getQuarter:()=>xi,getSeconds:()=>Kg,getTime:()=>Qg,getUnixTime:()=>Jg,getWeek:()=>Vo,getWeekOfMonth:()=>Zg,getWeekYear:()=>cr,getWeeksInMonth:()=>Xg,getYear:()=>e0,hoursToMilliseconds:()=>t0,hoursToMinutes:()=>r0,hoursToSeconds:()=>o0,interval:()=>n0,intervalToDuration:()=>i0,intlFormat:()=>s0,intlFormatDistance:()=>u0,isAfter:()=>c0,isBefore:()=>f0,isDate:()=>Va,isEqual:()=>l0,isExists:()=>p0,isFirstDayOfMonth:()=>m0,isFriday:()=>d0,isFuture:()=>h0,isLastDayOfMonth:()=>Qa,isLeapYear:()=>au,isMatch:()=>_0,isMonday:()=>A0,isPast:()=>I0,isSameDay:()=>wt,isSameHour:()=>xu,isSameISOWeek:()=>gu,isSameISOWeekYear:()=>E0,isSameMinute:()=>bu,isSameMonth:()=>vu,isSameQuarter:()=>wu,isSameSecond:()=>Su,isSameWeek:()=>Ko,isSameYear:()=>Du,isSaturday:()=>$a,isSunday:()=>Ra,isThisHour:()=>k0,isThisISOWeek:()=>P0,isThisMinute:()=>C0,isThisMonth:()=>N0,isThisQuarter:()=>F0,isThisSecond:()=>$0,isThisWeek:()=>R0,isThisYear:()=>W0,isThursday:()=>U0,isToday:()=>L0,isTomorrow:()=>B0,isTuesday:()=>Y0,isValid:()=>Ee,isWednesday:()=>q0,isWeekend:()=>bt,isWithinInterval:()=>H0,isYesterday:()=>j0,lastDayOfDecade:()=>z0,lastDayOfISOWeek:()=>V0,lastDayOfISOWeekYear:()=>G0,lastDayOfMonth:()=>fu,lastDayOfQuarter:()=>K0,lastDayOfWeek:()=>Tu,lastDayOfYear:()=>Q0,lightFormat:()=>tb,lightFormatters:()=>Ve,longFormatters:()=>jr,max:()=>Ha,milliseconds:()=>ob,millisecondsToHours:()=>nb,millisecondsToMinutes:()=>ib,millisecondsToSeconds:()=>sb,min:()=>ja,minutesToHours:()=>ab,minutesToMilliseconds:()=>ub,minutesToSeconds:()=>cb,monthsToQuarters:()=>fb,monthsToYears:()=>lb,nextDay:()=>$e,nextFriday:()=>pb,nextMonday:()=>mb,nextSaturday:()=>db,nextSunday:()=>hb,nextThursday:()=>yb,nextTuesday:()=>xb,nextWednesday:()=>gb,parse:()=>yu,parseISO:()=>bb,parseJSON:()=>Fb,parsers:()=>hu,previousDay:()=>Re,previousFriday:()=>$b,previousMonday:()=>Rb,previousSaturday:()=>Wb,previousSunday:()=>Ub,previousThursday:()=>Lb,previousTuesday:()=>Bb,previousWednesday:()=>Yb,quartersToMonths:()=>qb,quartersToYears:()=>Hb,roundToNearestHours:()=>jb,roundToNearestMinutes:()=>zb,secondsToHours:()=>Vb,secondsToMilliseconds:()=>Gb,secondsToMinutes:()=>Kb,set:()=>Qb,setDate:()=>Jb,setDay:()=>pr,setDayOfYear:()=>Zb,setDefaultOptions:()=>Xb,setHours:()=>ev,setISODay:()=>du,setISOWeek:()=>mu,setISOWeekYear:()=>La,setMilliseconds:()=>tv,setMinutes:()=>rv,setMonth:()=>Jo,setQuarter:()=>ov,setSeconds:()=>nv,setWeek:()=>pu,setWeekYear:()=>iv,setYear:()=>sv,startOfDay:()=>vt,startOfDecade:()=>av,startOfHour:()=>is,startOfISOWeek:()=>pe,startOfISOWeekYear:()=>ze,startOfMinute:()=>ss,startOfMonth:()=>ur,startOfQuarter:()=>Dt,startOfSecond:()=>as,startOfToday:()=>uv,startOfTomorrow:()=>cv,startOfWeek:()=>X,startOfWeekYear:()=>qr,startOfYear:()=>jo,startOfYesterday:()=>fv,sub:()=>lv,subBusinessDays:()=>pv,subDays:()=>mr,subHours:()=>mv,subISOWeekYears:()=>Ka,subMilliseconds:()=>dv,subMinutes:()=>hv,subMonths:()=>Mu,subQuarters:()=>yv,subSeconds:()=>xv,subWeeks:()=>gv,subYears:()=>bv,toDate:()=>l,transpose:()=>lu,weeksToDays:()=>vv,yearsToDays:()=>wv,yearsToMonths:()=>Sv,yearsToQuarters:()=>Dv});var hx=Math.pow(10,8)*24*60*60*1e3,Mk=-hx,at=6048e5,li=864e5,Ie=6e4,qe=36e5,Nr=1e3,Pa=525600,Pt=43200,Fr=1440,pi=60,mi=3,di=12,hi=4,rr=3600,$r=60,yi=rr*24,yl=yi*7,Ca=yi*365.2425,Na=Ca/12,xl=Na*3,Fa=Symbol.for("constructDateFrom");function h(t,e){return typeof t=="function"?t(e):t&&typeof t=="object"&&Fa in t?t[Fa](e):t instanceof Date?new t.constructor(e):new Date(e)}function l(t,e){return h(e||t,t)}function be(t,e,r){let o=l(t,r?.in);return isNaN(e)?h(r?.in||t,NaN):(e&&o.setDate(o.getDate()+e),o)}function gt(t,e,r){let o=l(t,r?.in);if(isNaN(e))return h(r?.in||t,NaN);if(!e)return o;let n=o.getDate(),i=h(r?.in||t,o.getTime());i.setMonth(o.getMonth()+e+1,0);let s=i.getDate();return n>=s?i:(o.setFullYear(i.getFullYear(),i.getMonth(),n),o)}function or(t,e,r){let{years:o=0,months:n=0,weeks:i=0,days:s=0,hours:a=0,minutes:u=0,seconds:c=0}=e,f=l(t,r?.in),m=n||o?gt(f,n+o*12):f,p=s||i?be(m,s+i*7):m,d=u+a*60,w=(c+d*60)*1e3;return h(r?.in||t,+p+w)}function $a(t,e){return l(t,e?.in).getDay()===6}function Ra(t,e){return l(t,e?.in).getDay()===0}function bt(t,e){let r=l(t,e?.in).getDay();return r===0||r===6}function Wa(t,e,r){let o=l(t,r?.in),n=bt(o,r);if(isNaN(e))return h(r?.in,NaN);let i=o.getHours(),s=e<0?-1:1,a=Math.trunc(e/5);o.setDate(o.getDate()+a*7);let u=Math.abs(e%5);for(;u>0;)o.setDate(o.getDate()+s),bt(o,r)||(u-=1);return n&&bt(o,r)&&e!==0&&($a(o,r)&&o.setDate(o.getDate()+(s<0?2:-1)),Ra(o,r)&&o.setDate(o.getDate()+(s<0?1:-2))),o.setHours(i),o}function nr(t,e,r){return h(r?.in||t,+l(t)+e)}function Ua(t,e,r){return nr(t,e*qe,r)}var gl={};function G(){return gl}function bl(t){gl=t}function X(t,e){let r=G(),o=e?.weekStartsOn??e?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,n=l(t,e?.in),i=n.getDay(),s=(i<o?7:0)+i-o;return n.setDate(n.getDate()-s),n.setHours(0,0,0,0),n}function pe(t,e){return X(t,{...e,weekStartsOn:1})}function We(t,e){let r=l(t,e?.in),o=r.getFullYear(),n=h(r,0);n.setFullYear(o+1,0,4),n.setHours(0,0,0,0);let i=pe(n),s=h(r,0);s.setFullYear(o,0,4),s.setHours(0,0,0,0);let a=pe(s);return r.getTime()>=i.getTime()?o+1:r.getTime()>=a.getTime()?o:o-1}function ae(t){let e=l(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}function C(t,...e){let r=h.bind(null,t||e.find(o=>typeof o=="object"));return e.map(r)}function vt(t,e){let r=l(t,e?.in);return r.setHours(0,0,0,0),r}function De(t,e,r){let[o,n]=C(r?.in,t,e),i=vt(o),s=vt(n),a=+i-ae(i),u=+s-ae(s);return Math.round((a-u)/li)}function ze(t,e){let r=We(t,e),o=h(e?.in||t,0);return o.setFullYear(r,0,4),o.setHours(0,0,0,0),pe(o)}function La(t,e,r){let o=l(t,r?.in),n=De(o,ze(o,r)),i=h(r?.in||t,0);return i.setFullYear(e,0,4),i.setHours(0,0,0,0),o=ze(i),o.setDate(o.getDate()+n),o}function Ba(t,e,r){return La(t,We(t,r)+e,r)}function Ro(t,e,r){let o=l(t,r?.in);return o.setTime(o.getTime()+e*Ie),o}function Wo(t,e,r){return gt(t,e*3,r)}function Ya(t,e,r){return nr(t,e*1e3,r)}function ir(t,e,r){return be(t,e*7,r)}function qa(t,e,r){return gt(t,e*12,r)}function yx(t,e,r){let[o,n]=[+l(t.start,r?.in),+l(t.end,r?.in)].sort((a,u)=>a-u),[i,s]=[+l(e.start,r?.in),+l(e.end,r?.in)].sort((a,u)=>a-u);return r?.inclusive?o<=s&&i<=n:o<s&&i<n}function Ha(t,e){let r,o=e?.in;return t.forEach(n=>{!o&&typeof n=="object"&&(o=h.bind(null,n));let i=l(n,o);(!r||r<i||isNaN(+i))&&(r=i)}),h(o,r||NaN)}function ja(t,e){let r,o=e?.in;return t.forEach(n=>{!o&&typeof n=="object"&&(o=h.bind(null,n));let i=l(n,o);(!r||r>i||isNaN(+i))&&(r=i)}),h(o,r||NaN)}function xx(t,e,r){let[o,n,i]=C(r?.in,t,e.start,e.end);return ja([Ha([o,n],r),i],r)}function za(t,e){let r=+l(t);if(isNaN(r))return NaN;let o,n;return e.forEach((i,s)=>{let a=l(i);if(isNaN(+a)){o=NaN,n=NaN;return}let u=Math.abs(r-+a);(o==null||u<n)&&(o=s,n=u)}),o}function gx(t,e,r){let[o,...n]=C(r?.in,t,...e),i=za(o,n);if(typeof i=="number"&&isNaN(i))return h(o,NaN);if(i!==void 0)return n[i]}function Fe(t,e){let r=+l(t)-+l(e);return r<0?-1:r>0?1:r}function bx(t,e){let r=+l(t)-+l(e);return r>0?-1:r<0?1:r}function B(t){return h(t,Date.now())}function wx(t){let e=Math.trunc(t/7);return e===0?0:e}function wt(t,e,r){let[o,n]=C(r?.in,t,e);return+vt(o)==+vt(n)}function Va(t){return t instanceof Date||typeof t=="object"&&Object.prototype.toString.call(t)==="[object Date]"}function Ee(t){return!(!Va(t)&&typeof t!="number"||isNaN(+l(t)))}function Sx(t,e,r){let[o,n]=C(r?.in,t,e);if(!Ee(o)||!Ee(n))return NaN;let i=De(o,n),s=i<0?-1:1,a=Math.trunc(i/7),u=a*5,c=be(n,a*7);for(;!wt(o,c);)u+=bt(c,r)?0:s,c=be(c,s);return u===0?0:u}function Ga(t,e,r){let[o,n]=C(r?.in,t,e);return We(o,r)-We(n,r)}function Dx(t,e,r){let[o,n]=C(r?.in,t,e),i=pe(o),s=pe(n),a=+i-ae(i),u=+s-ae(s);return Math.round((a-u)/at)}function Rr(t,e,r){let[o,n]=C(r?.in,t,e),i=o.getFullYear()-n.getFullYear(),s=o.getMonth()-n.getMonth();return i*12+s}function xi(t,e){let r=l(t,e?.in);return Math.trunc(r.getMonth()/3)+1}function Uo(t,e,r){let[o,n]=C(r?.in,t,e),i=o.getFullYear()-n.getFullYear(),s=xi(o)-xi(n);return i*4+s}function Wr(t,e,r){let[o,n]=C(r?.in,t,e),i=X(o,r),s=X(n,r),a=+i-ae(i),u=+s-ae(s);return Math.round((a-u)/at)}function sr(t,e,r){let[o,n]=C(r?.in,t,e);return o.getFullYear()-n.getFullYear()}function Lo(t,e,r){let[o,n]=C(r?.in,t,e),i=vl(o,n),s=Math.abs(De(o,n));o.setDate(o.getDate()-i*s);let a=+(vl(o,n)===-i),u=i*(s-a);return u===0?0:u}function vl(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}function ke(t){return e=>{let o=(t?Math[t]:Math.trunc)(e);return o===0?0:o}}function Ur(t,e,r){let[o,n]=C(r?.in,t,e),i=(+o-+n)/qe;return ke(r?.roundingMethod)(i)}function Ka(t,e,r){return Ba(t,-e,r)}function Tx(t,e,r){let[o,n]=C(r?.in,t,e),i=Fe(o,n),s=Math.abs(Ga(o,n,r)),a=Ka(o,i*s,r),u=+(Fe(a,n)===-i),c=i*(s-u);return c===0?0:c}function Bo(t,e){return+l(t)-+l(e)}function Lr(t,e,r){let o=Bo(t,e)/Ie;return ke(r?.roundingMethod)(o)}function Yo(t,e){let r=l(t,e?.in);return r.setHours(23,59,59,999),r}function qo(t,e){let r=l(t,e?.in),o=r.getMonth();return r.setFullYear(r.getFullYear(),o+1,0),r.setHours(23,59,59,999),r}function Qa(t,e){let r=l(t,e?.in);return+Yo(r,e)==+qo(r,e)}function ar(t,e,r){let[o,n,i]=C(r?.in,t,t,e),s=Fe(n,i),a=Math.abs(Rr(n,i));if(a<1)return 0;n.getMonth()===1&&n.getDate()>27&&n.setDate(30),n.setMonth(n.getMonth()-s*a);let u=Fe(n,i)===-s;Qa(o)&&a===1&&Fe(o,i)===1&&(u=!1);let c=s*(a-+u);return c===0?0:c}function Ox(t,e,r){let o=ar(t,e,r)/3;return ke(r?.roundingMethod)(o)}function St(t,e,r){let o=Bo(t,e)/1e3;return ke(r?.roundingMethod)(o)}function Mx(t,e,r){let o=Lo(t,e,r)/7;return ke(r?.roundingMethod)(o)}function Ja(t,e,r){let[o,n]=C(r?.in,t,e),i=Fe(o,n),s=Math.abs(sr(o,n));o.setFullYear(1584),n.setFullYear(1584);let a=Fe(o,n)===-i,u=i*(s-+a);return u===0?0:u}function ve(t,e){let[r,o]=C(t,e.start,e.end);return{start:r,end:o}}function Za(t,e){let{start:r,end:o}=ve(e?.in,t),n=+r>+o,i=n?+r:+o,s=n?o:r;s.setHours(0,0,0,0);let a=e?.step??1;if(!a)return[];a<0&&(a=-a,n=!n);let u=[];for(;+s<=i;)u.push(h(r,s)),s.setDate(s.getDate()+a),s.setHours(0,0,0,0);return n?u.reverse():u}function _x(t,e){let{start:r,end:o}=ve(e?.in,t),n=+r>+o,i=n?+r:+o,s=n?o:r;s.setMinutes(0,0,0);let a=e?.step??1;if(!a)return[];a<0&&(a=-a,n=!n);let u=[];for(;+s<=i;)u.push(h(r,s)),s.setHours(s.getHours()+a);return n?u.reverse():u}function Ax(t,e){let{start:r,end:o}=ve(e?.in,t);r.setSeconds(0,0);let n=+r>+o,i=n?+r:+o,s=n?o:r,a=e?.step??1;if(!a)return[];a<0&&(a=-a,n=!n);let u=[];for(;+s<=i;)u.push(h(r,s)),s=Ro(s,a);return n?u.reverse():u}function Ix(t,e){let{start:r,end:o}=ve(e?.in,t),n=+r>+o,i=n?+r:+o,s=n?o:r;s.setHours(0,0,0,0),s.setDate(1);let a=e?.step??1;if(!a)return[];a<0&&(a=-a,n=!n);let u=[];for(;+s<=i;)u.push(h(r,s)),s.setMonth(s.getMonth()+a);return n?u.reverse():u}function Dt(t,e){let r=l(t,e?.in),o=r.getMonth(),n=o-o%3;return r.setMonth(n,1),r.setHours(0,0,0,0),r}function Ex(t,e){let{start:r,end:o}=ve(e?.in,t),n=+r>+o,i=n?+Dt(r):+Dt(o),s=n?Dt(o):Dt(r),a=e?.step??1;if(!a)return[];a<0&&(a=-a,n=!n);let u=[];for(;+s<=i;)u.push(h(r,s)),s=Wo(s,a);return n?u.reverse():u}function kx(t,e){let{start:r,end:o}=ve(e?.in,t),n=+r>+o,i=n?X(o,e):X(r,e),s=n?X(r,e):X(o,e);i.setHours(15),s.setHours(15);let a=+s.getTime(),u=i,c=e?.step??1;if(!c)return[];c<0&&(c=-c,n=!n);let f=[];for(;+u<=a;)u.setHours(0),f.push(h(r,u)),u=ir(u,c),u.setHours(15);return n?f.reverse():f}function Ho(t,e){let{start:r,end:o}=ve(e?.in,t),n=Za({start:r,end:o},e),i=[],s=0;for(;s<n.length;){let a=n[s++];bt(a)&&i.push(h(r,a))}return i}function ur(t,e){let r=l(t,e?.in);return r.setDate(1),r.setHours(0,0,0,0),r}function Px(t,e){let r=ur(t,e),o=qo(t,e);return Ho({start:r,end:o},e)}function Xa(t,e){let r=l(t,e?.in),o=r.getFullYear();return r.setFullYear(o+1,0,0),r.setHours(23,59,59,999),r}function jo(t,e){let r=l(t,e?.in);return r.setFullYear(r.getFullYear(),0,1),r.setHours(0,0,0,0),r}function Cx(t,e){let r=jo(t,e),o=Xa(t,e);return Ho({start:r,end:o},e)}function Nx(t,e){let{start:r,end:o}=ve(e?.in,t),n=+r>+o,i=n?+r:+o,s=n?o:r;s.setHours(0,0,0,0),s.setMonth(0,1);let a=e?.step??1;if(!a)return[];a<0&&(a=-a,n=!n);let u=[];for(;+s<=i;)u.push(h(r,s)),s.setFullYear(s.getFullYear()+a);return n?u.reverse():u}function Fx(t,e){let r=l(t,e?.in),o=r.getFullYear(),n=9+Math.floor(o/10)*10;return r.setFullYear(n,11,31),r.setHours(23,59,59,999),r}function $x(t,e){let r=l(t,e?.in);return r.setMinutes(59,59,999),r}function eu(t,e){let r=G(),o=e?.weekStartsOn??e?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,n=l(t,e?.in),i=n.getDay(),s=(i<o?-7:0)+6-(i-o);return n.setDate(n.getDate()+s),n.setHours(23,59,59,999),n}function Rx(t,e){return eu(t,{...e,weekStartsOn:1})}function Wx(t,e){let r=We(t,e),o=h(e?.in||t,0);o.setFullYear(r+1,0,4),o.setHours(0,0,0,0);let n=pe(o,e);return n.setMilliseconds(n.getMilliseconds()-1),n}function Ux(t,e){let r=l(t,e?.in);return r.setSeconds(59,999),r}function Lx(t,e){let r=l(t,e?.in),o=r.getMonth(),n=o-o%3+3;return r.setMonth(n,0),r.setHours(23,59,59,999),r}function Bx(t,e){let r=l(t,e?.in);return r.setMilliseconds(999),r}function Yx(t){return Yo(Date.now(),t)}function qx(t){let e=B(t?.in),r=e.getFullYear(),o=e.getMonth(),n=e.getDate(),i=B(t?.in);return i.setFullYear(r,o,n+1),i.setHours(23,59,59,999),t?.in?t.in(i):i}function Hx(t){let e=B(t?.in),r=h(t?.in,0);return r.setFullYear(e.getFullYear(),e.getMonth(),e.getDate()-1),r.setHours(23,59,59,999),r}var jx={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"}},wl=(t,e,r)=>{let o,n=jx[t];return typeof n=="string"?o=n:e===1?o=n.one:o=n.other.replace("{{count}}",e.toString()),r?.addSuffix?r.comparison&&r.comparison>0?"in "+o:o+" ago":o};function gi(t){return(e={})=>{let r=e.width?String(e.width):t.defaultWidth;return t.formats[r]||t.formats[t.defaultWidth]}}var zx={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Vx={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Gx={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Sl={date:gi({formats:zx,defaultWidth:"full"}),time:gi({formats:Vx,defaultWidth:"full"}),dateTime:gi({formats:Gx,defaultWidth:"full"})};var Kx={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Dl=(t,e,r,o)=>Kx[t];function Br(t){return(e,r)=>{let o=r?.context?String(r.context):"standalone",n;if(o==="formatting"&&t.formattingValues){let s=t.defaultFormattingWidth||t.defaultWidth,a=r?.width?String(r.width):s;n=t.formattingValues[a]||t.formattingValues[s]}else{let s=t.defaultWidth,a=r?.width?String(r.width):t.defaultWidth;n=t.values[a]||t.values[s]}let i=t.argumentCallback?t.argumentCallback(e):e;return n[i]}}var Qx={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Jx={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},Zx={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"]},Xx={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"]},eg={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"}},tg={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"}},rg=(t,e)=>{let r=Number(t),o=r%100;if(o>20||o<10)switch(o%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},Tl={ordinalNumber:rg,era:Br({values:Qx,defaultWidth:"wide"}),quarter:Br({values:Jx,defaultWidth:"wide",argumentCallback:t=>t-1}),month:Br({values:Zx,defaultWidth:"wide"}),day:Br({values:Xx,defaultWidth:"wide"}),dayPeriod:Br({values:eg,defaultWidth:"wide",formattingValues:tg,defaultFormattingWidth:"wide"})};function Yr(t){return(e,r={})=>{let o=r.width,n=o&&t.matchPatterns[o]||t.matchPatterns[t.defaultMatchWidth],i=e.match(n);if(!i)return null;let s=i[0],a=o&&t.parsePatterns[o]||t.parsePatterns[t.defaultParseWidth],u=Array.isArray(a)?ng(a,m=>m.test(s)):og(a,m=>m.test(s)),c;c=t.valueCallback?t.valueCallback(u):u,c=r.valueCallback?r.valueCallback(c):c;let f=e.slice(s.length);return{value:c,rest:f}}}function og(t,e){for(let r in t)if(Object.prototype.hasOwnProperty.call(t,r)&&e(t[r]))return r}function ng(t,e){for(let r=0;r<t.length;r++)if(e(t[r]))return r}function Ol(t){return(e,r={})=>{let o=e.match(t.matchPattern);if(!o)return null;let n=o[0],i=e.match(t.parsePattern);if(!i)return null;let s=t.valueCallback?t.valueCallback(i[0]):i[0];s=r.valueCallback?r.valueCallback(s):s;let a=e.slice(n.length);return{value:s,rest:a}}}var ig=/^(\d+)(th|st|nd|rd)?/i,sg=/\d+/i,ag={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},ug={any:[/^b/i,/^(a|c)/i]},cg={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},fg={any:[/1/i,/2/i,/3/i,/4/i]},lg={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},pg={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]},mg={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},dg={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]},hg={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},yg={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}},Ml={ordinalNumber:Ol({matchPattern:ig,parsePattern:sg,valueCallback:t=>parseInt(t,10)}),era:Yr({matchPatterns:ag,defaultMatchWidth:"wide",parsePatterns:ug,defaultParseWidth:"any"}),quarter:Yr({matchPatterns:cg,defaultMatchWidth:"wide",parsePatterns:fg,defaultParseWidth:"any",valueCallback:t=>t+1}),month:Yr({matchPatterns:lg,defaultMatchWidth:"wide",parsePatterns:pg,defaultParseWidth:"any"}),day:Yr({matchPatterns:mg,defaultMatchWidth:"wide",parsePatterns:dg,defaultParseWidth:"any"}),dayPeriod:Yr({matchPatterns:hg,defaultMatchWidth:"any",parsePatterns:yg,defaultParseWidth:"any"})};var He={code:"en-US",formatDistance:wl,formatLong:Sl,formatRelative:Dl,localize:Tl,match:Ml,options:{weekStartsOn:0,firstWeekContainsDate:1}};function tu(t,e){let r=l(t,e?.in);return De(r,jo(r))+1}function zo(t,e){let r=l(t,e?.in),o=+pe(r)-+ze(r);return Math.round(o/at)+1}function cr(t,e){let r=l(t,e?.in),o=r.getFullYear(),n=G(),i=e?.firstWeekContainsDate??e?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,s=h(e?.in||t,0);s.setFullYear(o+1,0,i),s.setHours(0,0,0,0);let a=X(s,e),u=h(e?.in||t,0);u.setFullYear(o,0,i),u.setHours(0,0,0,0);let c=X(u,e);return+r>=+a?o+1:+r>=+c?o:o-1}function qr(t,e){let r=G(),o=e?.firstWeekContainsDate??e?.locale?.options?.firstWeekContainsDate??r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,n=cr(t,e),i=h(e?.in||t,0);return i.setFullYear(n,0,o),i.setHours(0,0,0,0),X(i,e)}function Vo(t,e){let r=l(t,e?.in),o=+X(r,e)-+qr(r,e);return Math.round(o/at)+1}function E(t,e){let r=t<0?"-":"",o=Math.abs(t).toString().padStart(e,"0");return r+o}var Ve={y(t,e){let r=t.getFullYear(),o=r>0?r:1-r;return E(e==="yy"?o%100:o,e.length)},M(t,e){let r=t.getMonth();return e==="M"?String(r+1):E(r+1,2)},d(t,e){return E(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];case"aaaa":default:return r==="am"?"a.m.":"p.m."}},h(t,e){return E(t.getHours()%12||12,e.length)},H(t,e){return E(t.getHours(),e.length)},m(t,e){return E(t.getMinutes(),e.length)},s(t,e){return E(t.getSeconds(),e.length)},S(t,e){let r=e.length,o=t.getMilliseconds(),n=Math.trunc(o*Math.pow(10,r-3));return E(n,e.length)}};var Hr={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},bi={G:function(t,e,r){let o=t.getFullYear()>0?1:0;switch(e){case"G":case"GG":case"GGG":return r.era(o,{width:"abbreviated"});case"GGGGG":return r.era(o,{width:"narrow"});case"GGGG":default:return r.era(o,{width:"wide"})}},y:function(t,e,r){if(e==="yo"){let o=t.getFullYear(),n=o>0?o:1-o;return r.ordinalNumber(n,{unit:"year"})}return Ve.y(t,e)},Y:function(t,e,r,o){let n=cr(t,o),i=n>0?n:1-n;if(e==="YY"){let s=i%100;return E(s,2)}return e==="Yo"?r.ordinalNumber(i,{unit:"year"}):E(i,e.length)},R:function(t,e){let r=We(t);return E(r,e.length)},u:function(t,e){let r=t.getFullYear();return E(r,e.length)},Q:function(t,e,r){let o=Math.ceil((t.getMonth()+1)/3);switch(e){case"Q":return String(o);case"QQ":return E(o,2);case"Qo":return r.ordinalNumber(o,{unit:"quarter"});case"QQQ":return r.quarter(o,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(o,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(o,{width:"wide",context:"formatting"})}},q:function(t,e,r){let o=Math.ceil((t.getMonth()+1)/3);switch(e){case"q":return String(o);case"qq":return E(o,2);case"qo":return r.ordinalNumber(o,{unit:"quarter"});case"qqq":return r.quarter(o,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(o,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(o,{width:"wide",context:"standalone"})}},M:function(t,e,r){let o=t.getMonth();switch(e){case"M":case"MM":return Ve.M(t,e);case"Mo":return r.ordinalNumber(o+1,{unit:"month"});case"MMM":return r.month(o,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(o,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(o,{width:"wide",context:"formatting"})}},L:function(t,e,r){let o=t.getMonth();switch(e){case"L":return String(o+1);case"LL":return E(o+1,2);case"Lo":return r.ordinalNumber(o+1,{unit:"month"});case"LLL":return r.month(o,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(o,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(o,{width:"wide",context:"standalone"})}},w:function(t,e,r,o){let n=Vo(t,o);return e==="wo"?r.ordinalNumber(n,{unit:"week"}):E(n,e.length)},I:function(t,e,r){let o=zo(t);return e==="Io"?r.ordinalNumber(o,{unit:"week"}):E(o,e.length)},d:function(t,e,r){return e==="do"?r.ordinalNumber(t.getDate(),{unit:"date"}):Ve.d(t,e)},D:function(t,e,r){let o=tu(t);return e==="Do"?r.ordinalNumber(o,{unit:"dayOfYear"}):E(o,e.length)},E:function(t,e,r){let o=t.getDay();switch(e){case"E":case"EE":case"EEE":return r.day(o,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(o,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(o,{width:"short",context:"formatting"});case"EEEE":default:return r.day(o,{width:"wide",context:"formatting"})}},e:function(t,e,r,o){let n=t.getDay(),i=(n-o.weekStartsOn+8)%7||7;switch(e){case"e":return String(i);case"ee":return E(i,2);case"eo":return r.ordinalNumber(i,{unit:"day"});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"});case"eeee":default:return r.day(n,{width:"wide",context:"formatting"})}},c:function(t,e,r,o){let n=t.getDay(),i=(n-o.weekStartsOn+8)%7||7;switch(e){case"c":return String(i);case"cc":return E(i,e.length);case"co":return r.ordinalNumber(i,{unit:"day"});case"ccc":return r.day(n,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(n,{width:"narrow",context:"standalone"});case"cccccc":return r.day(n,{width:"short",context:"standalone"});case"cccc":default:return r.day(n,{width:"wide",context:"standalone"})}},i:function(t,e,r){let o=t.getDay(),n=o===0?7:o;switch(e){case"i":return String(n);case"ii":return E(n,e.length);case"io":return r.ordinalNumber(n,{unit:"day"});case"iii":return r.day(o,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(o,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(o,{width:"short",context:"formatting"});case"iiii":default:return r.day(o,{width:"wide",context:"formatting"})}},a:function(t,e,r){let n=t.getHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(n,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(n,{width:"wide",context:"formatting"})}},b:function(t,e,r){let o=t.getHours(),n;switch(o===12?n=Hr.noon:o===0?n=Hr.midnight:n=o/12>=1?"pm":"am",e){case"b":case"bb":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(n,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(n,{width:"wide",context:"formatting"})}},B:function(t,e,r){let o=t.getHours(),n;switch(o>=17?n=Hr.evening:o>=12?n=Hr.afternoon:o>=4?n=Hr.morning:n=Hr.night,e){case"B":case"BB":case"BBB":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(n,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(n,{width:"wide",context:"formatting"})}},h:function(t,e,r){if(e==="ho"){let o=t.getHours()%12;return o===0&&(o=12),r.ordinalNumber(o,{unit:"hour"})}return Ve.h(t,e)},H:function(t,e,r){return e==="Ho"?r.ordinalNumber(t.getHours(),{unit:"hour"}):Ve.H(t,e)},K:function(t,e,r){let o=t.getHours()%12;return e==="Ko"?r.ordinalNumber(o,{unit:"hour"}):E(o,e.length)},k:function(t,e,r){let o=t.getHours();return o===0&&(o=24),e==="ko"?r.ordinalNumber(o,{unit:"hour"}):E(o,e.length)},m:function(t,e,r){return e==="mo"?r.ordinalNumber(t.getMinutes(),{unit:"minute"}):Ve.m(t,e)},s:function(t,e,r){return e==="so"?r.ordinalNumber(t.getSeconds(),{unit:"second"}):Ve.s(t,e)},S:function(t,e){return Ve.S(t,e)},X:function(t,e,r){let o=t.getTimezoneOffset();if(o===0)return"Z";switch(e){case"X":return Al(o);case"XXXX":case"XX":return fr(o);case"XXXXX":case"XXX":default:return fr(o,":")}},x:function(t,e,r){let o=t.getTimezoneOffset();switch(e){case"x":return Al(o);case"xxxx":case"xx":return fr(o);case"xxxxx":case"xxx":default:return fr(o,":")}},O:function(t,e,r){let o=t.getTimezoneOffset();switch(e){case"O":case"OO":case"OOO":return"GMT"+_l(o,":");case"OOOO":default:return"GMT"+fr(o,":")}},z:function(t,e,r){let o=t.getTimezoneOffset();switch(e){case"z":case"zz":case"zzz":return"GMT"+_l(o,":");case"zzzz":default:return"GMT"+fr(o,":")}},t:function(t,e,r){let o=Math.trunc(+t/1e3);return E(o,e.length)},T:function(t,e,r){return E(+t,e.length)}};function _l(t,e=""){let r=t>0?"-":"+",o=Math.abs(t),n=Math.trunc(o/60),i=o%60;return i===0?r+String(n):r+String(n)+e+E(i,2)}function Al(t,e){return t%60===0?(t>0?"-":"+")+E(Math.abs(t)/60,2):fr(t,e)}function fr(t,e=""){let r=t>0?"-":"+",o=Math.abs(t),n=E(Math.trunc(o/60),2),i=E(o%60,2);return r+n+e+i}var Il=(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"});case"PPPP":default:return e.date({width:"full"})}},El=(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"});case"pppp":default:return e.time({width:"full"})}},xg=(t,e)=>{let r=t.match(/(P+)(p+)?/)||[],o=r[1],n=r[2];if(!n)return Il(t,e);let i;switch(o){case"P":i=e.dateTime({width:"short"});break;case"PP":i=e.dateTime({width:"medium"});break;case"PPP":i=e.dateTime({width:"long"});break;case"PPPP":default:i=e.dateTime({width:"full"});break}return i.replace("{{date}}",Il(o,e)).replace("{{time}}",El(n,e))},jr={p:El,P:xg};var gg=/^D+$/,bg=/^Y+$/,vg=["D","DD","YY","YYYY"];function vi(t){return gg.test(t)}function wi(t){return bg.test(t)}function Go(t,e,r){let o=wg(t,e,r);if(console.warn(o),vg.includes(t))throw new RangeError(o)}function wg(t,e,r){let o=t[0]==="Y"?"years":"days of the month";return`Use \`${t.toLowerCase()}\` instead of \`${t}\` (in \`${e}\`) for formatting ${o} to the input \`${r}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}var Sg=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Dg=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Tg=/^'([^]*?)'?$/,Og=/''/g,Mg=/[a-zA-Z]/;function ru(t,e,r){let o=G(),n=r?.locale??o.locale??He,i=r?.firstWeekContainsDate??r?.locale?.options?.firstWeekContainsDate??o.firstWeekContainsDate??o.locale?.options?.firstWeekContainsDate??1,s=r?.weekStartsOn??r?.locale?.options?.weekStartsOn??o.weekStartsOn??o.locale?.options?.weekStartsOn??0,a=l(t,r?.in);if(!Ee(a))throw new RangeError("Invalid time value");let u=e.match(Dg).map(f=>{let m=f[0];if(m==="p"||m==="P"){let p=jr[m];return p(f,n.formatLong)}return f}).join("").match(Sg).map(f=>{if(f==="''")return{isToken:!1,value:"'"};let m=f[0];if(m==="'")return{isToken:!1,value:_g(f)};if(bi[m])return{isToken:!0,value:f};if(m.match(Mg))throw new RangeError("Format string contains an unescaped latin alphabet character `"+m+"`");return{isToken:!1,value:f}});n.localize.preprocessor&&(u=n.localize.preprocessor(a,u));let c={firstWeekContainsDate:i,weekStartsOn:s,locale:n};return u.map(f=>{if(!f.isToken)return f.value;let m=f.value;(!r?.useAdditionalWeekYearTokens&&wi(m)||!r?.useAdditionalDayOfYearTokens&&vi(m))&&Go(m,e,String(t));let p=bi[m[0]];return p(a,m,n.localize,c)}).join("")}function _g(t){let e=t.match(Tg);return e?e[1].replace(Og,"'"):t}function ou(t,e,r){let o=G(),n=r?.locale??o.locale??He,i=2520,s=Fe(t,e);if(isNaN(s))throw new RangeError("Invalid time value");let a=Object.assign({},r,{addSuffix:r?.addSuffix,comparison:s}),[u,c]=C(r?.in,...s>0?[e,t]:[t,e]),f=St(c,u),m=(ae(c)-ae(u))/1e3,p=Math.round((f-m)/60),d;if(p<2)return r?.includeSeconds?f<5?n.formatDistance("lessThanXSeconds",5,a):f<10?n.formatDistance("lessThanXSeconds",10,a):f<20?n.formatDistance("lessThanXSeconds",20,a):f<40?n.formatDistance("halfAMinute",0,a):f<60?n.formatDistance("lessThanXMinutes",1,a):n.formatDistance("xMinutes",1,a):p===0?n.formatDistance("lessThanXMinutes",1,a):n.formatDistance("xMinutes",p,a);if(p<45)return n.formatDistance("xMinutes",p,a);if(p<90)return n.formatDistance("aboutXHours",1,a);if(p<Fr){let y=Math.round(p/60);return n.formatDistance("aboutXHours",y,a)}else{if(p<i)return n.formatDistance("xDays",1,a);if(p<Pt){let y=Math.round(p/Fr);return n.formatDistance("xDays",y,a)}else if(p<Pt*2)return d=Math.round(p/Pt),n.formatDistance("aboutXMonths",d,a)}if(d=ar(c,u),d<12){let y=Math.round(p/Pt);return n.formatDistance("xMonths",y,a)}else{let y=d%12,w=Math.trunc(d/12);return y<3?n.formatDistance("aboutXYears",w,a):y<9?n.formatDistance("overXYears",w,a):n.formatDistance("almostXYears",w+1,a)}}function nu(t,e,r){let o=G(),n=r?.locale??o.locale??He,i=Fe(t,e);if(isNaN(i))throw new RangeError("Invalid time value");let s=Object.assign({},r,{addSuffix:r?.addSuffix,comparison:i}),[a,u]=C(r?.in,...i>0?[e,t]:[t,e]),c=ke(r?.roundingMethod??"round"),f=u.getTime()-a.getTime(),m=f/Ie,p=ae(u)-ae(a),d=(f-p)/Ie,y=r?.unit,w;if(y?w=y:m<1?w="second":m<60?w="minute":m<Fr?w="hour":d<Pt?w="day":d<Pa?w="month":w="year",w==="second"){let g=c(f/1e3);return n.formatDistance("xSeconds",g,s)}else if(w==="minute"){let g=c(m);return n.formatDistance("xMinutes",g,s)}else if(w==="hour"){let g=c(m/60);return n.formatDistance("xHours",g,s)}else if(w==="day"){let g=c(d/Fr);return n.formatDistance("xDays",g,s)}else if(w==="month"){let g=c(d/Pt);return g===12&&y!=="month"?n.formatDistance("xYears",1,s):n.formatDistance("xMonths",g,s)}else{let g=c(d/Pa);return n.formatDistance("xYears",g,s)}}function Ag(t,e){return ou(t,B(t),e)}function Ig(t,e){return nu(t,B(t),e)}var Eg=["years","months","weeks","days","hours","minutes","seconds"];function kg(t,e){let r=G(),o=e?.locale??r.locale??He,n=e?.format??Eg,i=e?.zero??!1,s=e?.delimiter??" ";return o.formatDistance?n.reduce((u,c)=>{let f=`x${c.replace(/(^.)/,p=>p.toUpperCase())}`,m=t[c];return m!==void 0&&(i||t[c])?u.concat(o.formatDistance(f,m)):u},[]).join(s):""}function Pg(t,e){let r=l(t,e?.in);if(isNaN(+r))throw new RangeError("Invalid time value");let o=e?.format??"extended",n=e?.representation??"complete",i="",s="",a=o==="extended"?"-":"",u=o==="extended"?":":"";if(n!=="time"){let c=E(r.getDate(),2),f=E(r.getMonth()+1,2);i=`${E(r.getFullYear(),4)}${a}${f}${a}${c}`}if(n!=="date"){let c=r.getTimezoneOffset();if(c!==0){let w=Math.abs(c),g=E(Math.trunc(w/60),2),A=E(w%60,2);s=`${c<0?"+":"-"}${g}:${A}`}else s="Z";let f=E(r.getHours(),2),m=E(r.getMinutes(),2),p=E(r.getSeconds(),2),d=i===""?"":"T",y=[f,m,p].join(u);i=`${i}${d}${y}${s}`}return i}function Cg(t,e){let r=l(t,e?.in);if(!Ee(r))throw new RangeError("Invalid time value");let o=e?.format??"extended",n=e?.representation??"complete",i="",s=o==="extended"?"-":"",a=o==="extended"?":":"";if(n!=="time"){let u=E(r.getDate(),2),c=E(r.getMonth()+1,2);i=`${E(r.getFullYear(),4)}${s}${c}${s}${u}`}if(n!=="date"){let u=E(r.getHours(),2),c=E(r.getMinutes(),2),f=E(r.getSeconds(),2);i=`${i}${i===""?"":" "}${u}${a}${c}${a}${f}`}return i}function Ng(t){let{years:e=0,months:r=0,days:o=0,hours:n=0,minutes:i=0,seconds:s=0}=t;return`P${e}Y${r}M${o}DT${n}H${i}M${s}S`}function Fg(t,e){let r=l(t,e?.in);if(!Ee(r))throw new RangeError("Invalid time value");let o=e?.fractionDigits??0,n=E(r.getDate(),2),i=E(r.getMonth()+1,2),s=r.getFullYear(),a=E(r.getHours(),2),u=E(r.getMinutes(),2),c=E(r.getSeconds(),2),f="";if(o>0){let d=r.getMilliseconds(),y=Math.trunc(d*Math.pow(10,o-3));f="."+E(y,o)}let m="",p=r.getTimezoneOffset();if(p!==0){let d=Math.abs(p),y=E(Math.trunc(d/60),2),w=E(d%60,2);m=`${p<0?"+":"-"}${y}:${w}`}else m="Z";return`${s}-${i}-${n}T${a}:${u}:${c}${f}${m}`}var $g=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],Rg=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function Wg(t){let e=l(t);if(!Ee(e))throw new RangeError("Invalid time value");let r=$g[e.getUTCDay()],o=E(e.getUTCDate(),2),n=Rg[e.getUTCMonth()],i=e.getUTCFullYear(),s=E(e.getUTCHours(),2),a=E(e.getUTCMinutes(),2),u=E(e.getUTCSeconds(),2);return`${r}, ${o} ${n} ${i} ${s}:${a}:${u} GMT`}function Ug(t,e,r){let[o,n]=C(r?.in,t,e),i=G(),s=r?.locale??i.locale??He,a=r?.weekStartsOn??r?.locale?.options?.weekStartsOn??i.weekStartsOn??i.locale?.options?.weekStartsOn??0,u=De(o,n);if(isNaN(u))throw new RangeError("Invalid time value");let c;u<-6?c="other":u<-1?c="lastWeek":u<0?c="yesterday":u<1?c="today":u<2?c="tomorrow":u<7?c="nextWeek":c="other";let f=s.formatRelative(c,o,n,{locale:s,weekStartsOn:a});return ru(o,f,{locale:s,weekStartsOn:a})}function Lg(t,e){return l(t*1e3,e?.in)}function iu(t,e){return l(t,e?.in).getDate()}function lr(t,e){return l(t,e?.in).getDay()}function su(t,e){let r=l(t,e?.in),o=r.getFullYear(),n=r.getMonth(),i=h(r,0);return i.setFullYear(o,n+1,0),i.setHours(0,0,0,0),i.getDate()}function au(t,e){let o=l(t,e?.in).getFullYear();return o%400===0||o%4===0&&o%100!==0}function Bg(t,e){let r=l(t,e?.in);return Number.isNaN(+r)?NaN:au(r)?366:365}function Yg(t,e){let o=l(t,e?.in).getFullYear();return Math.floor(o/10)*10}function uu(){return Object.assign({},G())}function qg(t,e){return l(t,e?.in).getHours()}function cu(t,e){let r=l(t,e?.in).getDay();return r===0?7:r}function Hg(t,e){let r=ze(t,e),n=+ze(ir(r,60))-+r;return Math.round(n/at)}function jg(t){return l(t).getMilliseconds()}function zg(t,e){return l(t,e?.in).getMinutes()}function Vg(t,e){return l(t,e?.in).getMonth()}function Gg(t,e){let[r,o]=[+l(t.start),+l(t.end)].sort((m,p)=>m-p),[n,i]=[+l(e.start),+l(e.end)].sort((m,p)=>m-p);if(!(r<i&&n<o))return 0;let a=n<r?r:n,u=a-ae(a),c=i>o?o:i,f=c-ae(c);return Math.ceil((f-u)/li)}function Kg(t){return l(t).getSeconds()}function Qg(t){return+l(t)}function Jg(t){return Math.trunc(+l(t)/1e3)}function Zg(t,e){let r=G(),o=e?.weekStartsOn??e?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,n=iu(l(t,e?.in));if(isNaN(n))return NaN;let i=lr(ur(t,e)),s=o-i;s<=0&&(s+=7);let a=n-s;return Math.ceil(a/7)+1}function fu(t,e){let r=l(t,e?.in),o=r.getMonth();return r.setFullYear(r.getFullYear(),o+1,0),r.setHours(0,0,0,0),l(r,e?.in)}function Xg(t,e){let r=l(t,e?.in);return Wr(fu(r,e),ur(r,e),e)+1}function e0(t,e){return l(t,e?.in).getFullYear()}function t0(t){return Math.trunc(t*qe)}function r0(t){return Math.trunc(t*pi)}function o0(t){return Math.trunc(t*rr)}function n0(t,e,r){let[o,n]=C(r?.in,t,e);if(isNaN(+o))throw new TypeError("Start date is invalid");if(isNaN(+n))throw new TypeError("End date is invalid");if(r?.assertPositive&&+o>+n)throw new TypeError("End date must be after start date");return{start:o,end:n}}function i0(t,e){let{start:r,end:o}=ve(e?.in,t),n={},i=Ja(o,r);i&&(n.years=i);let s=or(r,{years:n.years}),a=ar(o,s);a&&(n.months=a);let u=or(s,{months:n.months}),c=Lo(o,u);c&&(n.days=c);let f=or(u,{days:n.days}),m=Ur(o,f);m&&(n.hours=m);let p=or(f,{hours:n.hours}),d=Lr(o,p);d&&(n.minutes=d);let y=or(p,{minutes:n.minutes}),w=St(o,y);return w&&(n.seconds=w),n}function s0(t,e,r){let o;return a0(e)?o=e:r=e,new Intl.DateTimeFormat(r?.locale,o).format(l(t))}function a0(t){return t!==void 0&&!("locale"in t)}function u0(t,e,r){let o=0,n,[i,s]=C(r?.in,t,e);if(r?.unit)n=r?.unit,n==="second"?o=St(i,s):n==="minute"?o=Lr(i,s):n==="hour"?o=Ur(i,s):n==="day"?o=De(i,s):n==="week"?o=Wr(i,s):n==="month"?o=Rr(i,s):n==="quarter"?o=Uo(i,s):n==="year"&&(o=sr(i,s));else{let u=St(i,s);Math.abs(u)<$r?(o=St(i,s),n="second"):Math.abs(u)<rr?(o=Lr(i,s),n="minute"):Math.abs(u)<yi&&Math.abs(De(i,s))<1?(o=Ur(i,s),n="hour"):Math.abs(u)<yl&&(o=De(i,s))&&Math.abs(o)<7?n="day":Math.abs(u)<Na?(o=Wr(i,s),n="week"):Math.abs(u)<xl?(o=Rr(i,s),n="month"):Math.abs(u)<Ca?Uo(i,s)<4?(o=Uo(i,s),n="quarter"):(o=sr(i,s),n="year"):(o=sr(i,s),n="year")}return new Intl.RelativeTimeFormat(r?.locale,{numeric:"auto",...r}).format(o,n)}function c0(t,e){return+l(t)>+l(e)}function f0(t,e){return+l(t)<+l(e)}function l0(t,e){return+l(t)==+l(e)}function p0(t,e,r){let o=new Date(t,e,r);return o.getFullYear()===t&&o.getMonth()===e&&o.getDate()===r}function m0(t,e){return l(t,e?.in).getDate()===1}function d0(t,e){return l(t,e?.in).getDay()===5}function h0(t){return+l(t)>Date.now()}function lu(t,e){let r=y0(e)?new e(0):h(e,0);return r.setFullYear(t.getFullYear(),t.getMonth(),t.getDate()),r.setHours(t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()),r}function y0(t){return typeof t=="function"&&t.prototype?.constructor===t}var x0=10,Si=class{subPriority=0;validate(e,r){return!0}},Di=class extends Si{constructor(e,r,o,n,i){super(),this.value=e,this.validateValue=r,this.setValue=o,this.priority=n,i&&(this.subPriority=i)}validate(e,r){return this.validateValue(e,this.value,r)}set(e,r,o){return this.setValue(e,r,this.value,o)}},Ti=class extends Si{priority=x0;subPriority=-1;constructor(e,r){super(),this.context=e||(o=>h(r,o))}set(e,r){return r.timestampIsSet?e:h(e,lu(e,this.context))}};var _=class{run(e,r,o,n){let i=this.parse(e,r,o,n);return i?{setter:new Di(i.value,this.validate,this.set,this.priority,this.subPriority),rest:i.rest}:null}validate(e,r,o){return!0}};var Oi=class extends _{priority=140;parse(e,r,o){switch(r){case"G":case"GG":case"GGG":return o.era(e,{width:"abbreviated"})||o.era(e,{width:"narrow"});case"GGGGG":return o.era(e,{width:"narrow"});case"GGGG":default:return o.era(e,{width:"wide"})||o.era(e,{width:"abbreviated"})||o.era(e,{width:"narrow"})}}set(e,r,o){return r.era=o,e.setFullYear(o,0,1),e.setHours(0,0,0,0),e}incompatibleTokens=["R","u","t","T"]};var j={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}/},Ge={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 Q(t,e){return t&&{value:e(t.value),rest:t.rest}}function H(t,e){let r=e.match(t);return r?{value:parseInt(r[0],10),rest:e.slice(r[0].length)}:null}function Ke(t,e){let r=e.match(t);if(!r)return null;if(r[0]==="Z")return{value:0,rest:e.slice(1)};let o=r[1]==="+"?1:-1,n=r[2]?parseInt(r[2],10):0,i=r[3]?parseInt(r[3],10):0,s=r[5]?parseInt(r[5],10):0;return{value:o*(n*qe+i*Ie+s*Nr),rest:e.slice(r[0].length)}}function Mi(t){return H(j.anyDigitsSigned,t)}function R(t,e){switch(t){case 1:return H(j.singleDigit,e);case 2:return H(j.twoDigits,e);case 3:return H(j.threeDigits,e);case 4:return H(j.fourDigits,e);default:return H(new RegExp("^\\d{1,"+t+"}"),e)}}function zr(t,e){switch(t){case 1:return H(j.singleDigitSigned,e);case 2:return H(j.twoDigitsSigned,e);case 3:return H(j.threeDigitsSigned,e);case 4:return H(j.fourDigitsSigned,e);default:return H(new RegExp("^-?\\d{1,"+t+"}"),e)}}function Vr(t){switch(t){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;case"am":case"midnight":case"night":default:return 0}}function _i(t,e){let r=e>0,o=r?e:1-e,n;if(o<=50)n=t||100;else{let i=o+50,s=Math.trunc(i/100)*100,a=t>=i%100;n=t+s-(a?100:0)}return r?n:1-n}function Ai(t){return t%400===0||t%4===0&&t%100!==0}var Ii=class extends _{priority=130;incompatibleTokens=["Y","R","u","w","I","i","e","c","t","T"];parse(e,r,o){let n=i=>({year:i,isTwoDigitYear:r==="yy"});switch(r){case"y":return Q(R(4,e),n);case"yo":return Q(o.ordinalNumber(e,{unit:"year"}),n);default:return Q(R(r.length,e),n)}}validate(e,r){return r.isTwoDigitYear||r.year>0}set(e,r,o){let n=e.getFullYear();if(o.isTwoDigitYear){let s=_i(o.year,n);return e.setFullYear(s,0,1),e.setHours(0,0,0,0),e}let i=!("era"in r)||r.era===1?o.year:1-o.year;return e.setFullYear(i,0,1),e.setHours(0,0,0,0),e}};var Ei=class extends _{priority=130;parse(e,r,o){let n=i=>({year:i,isTwoDigitYear:r==="YY"});switch(r){case"Y":return Q(R(4,e),n);case"Yo":return Q(o.ordinalNumber(e,{unit:"year"}),n);default:return Q(R(r.length,e),n)}}validate(e,r){return r.isTwoDigitYear||r.year>0}set(e,r,o,n){let i=cr(e,n);if(o.isTwoDigitYear){let a=_i(o.year,i);return e.setFullYear(a,0,n.firstWeekContainsDate),e.setHours(0,0,0,0),X(e,n)}let s=!("era"in r)||r.era===1?o.year:1-o.year;return e.setFullYear(s,0,n.firstWeekContainsDate),e.setHours(0,0,0,0),X(e,n)}incompatibleTokens=["y","R","u","Q","q","M","L","I","d","D","i","t","T"]};var ki=class extends _{priority=130;parse(e,r){return r==="R"?zr(4,e):zr(r.length,e)}set(e,r,o){let n=h(e,0);return n.setFullYear(o,0,4),n.setHours(0,0,0,0),pe(n)}incompatibleTokens=["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]};var Pi=class extends _{priority=130;parse(e,r){return r==="u"?zr(4,e):zr(r.length,e)}set(e,r,o){return e.setFullYear(o,0,1),e.setHours(0,0,0,0),e}incompatibleTokens=["G","y","Y","R","w","I","i","e","c","t","T"]};var Ci=class extends _{priority=120;parse(e,r,o){switch(r){case"Q":case"QQ":return R(r.length,e);case"Qo":return o.ordinalNumber(e,{unit:"quarter"});case"QQQ":return o.quarter(e,{width:"abbreviated",context:"formatting"})||o.quarter(e,{width:"narrow",context:"formatting"});case"QQQQQ":return o.quarter(e,{width:"narrow",context:"formatting"});case"QQQQ":default:return o.quarter(e,{width:"wide",context:"formatting"})||o.quarter(e,{width:"abbreviated",context:"formatting"})||o.quarter(e,{width:"narrow",context:"formatting"})}}validate(e,r){return r>=1&&r<=4}set(e,r,o){return e.setMonth((o-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 Ni=class extends _{priority=120;parse(e,r,o){switch(r){case"q":case"qq":return R(r.length,e);case"qo":return o.ordinalNumber(e,{unit:"quarter"});case"qqq":return o.quarter(e,{width:"abbreviated",context:"standalone"})||o.quarter(e,{width:"narrow",context:"standalone"});case"qqqqq":return o.quarter(e,{width:"narrow",context:"standalone"});case"qqqq":default:return o.quarter(e,{width:"wide",context:"standalone"})||o.quarter(e,{width:"abbreviated",context:"standalone"})||o.quarter(e,{width:"narrow",context:"standalone"})}}validate(e,r){return r>=1&&r<=4}set(e,r,o){return e.setMonth((o-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 Fi=class extends _{incompatibleTokens=["Y","R","q","Q","L","w","I","D","i","e","c","t","T"];priority=110;parse(e,r,o){let n=i=>i-1;switch(r){case"M":return Q(H(j.month,e),n);case"MM":return Q(R(2,e),n);case"Mo":return Q(o.ordinalNumber(e,{unit:"month"}),n);case"MMM":return o.month(e,{width:"abbreviated",context:"formatting"})||o.month(e,{width:"narrow",context:"formatting"});case"MMMMM":return o.month(e,{width:"narrow",context:"formatting"});case"MMMM":default:return o.month(e,{width:"wide",context:"formatting"})||o.month(e,{width:"abbreviated",context:"formatting"})||o.month(e,{width:"narrow",context:"formatting"})}}validate(e,r){return r>=0&&r<=11}set(e,r,o){return e.setMonth(o,1),e.setHours(0,0,0,0),e}};var $i=class extends _{priority=110;parse(e,r,o){let n=i=>i-1;switch(r){case"L":return Q(H(j.month,e),n);case"LL":return Q(R(2,e),n);case"Lo":return Q(o.ordinalNumber(e,{unit:"month"}),n);case"LLL":return o.month(e,{width:"abbreviated",context:"standalone"})||o.month(e,{width:"narrow",context:"standalone"});case"LLLLL":return o.month(e,{width:"narrow",context:"standalone"});case"LLLL":default:return o.month(e,{width:"wide",context:"standalone"})||o.month(e,{width:"abbreviated",context:"standalone"})||o.month(e,{width:"narrow",context:"standalone"})}}validate(e,r){return r>=0&&r<=11}set(e,r,o){return e.setMonth(o,1),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]};function pu(t,e,r){let o=l(t,r?.in),n=Vo(o,r)-e;return o.setDate(o.getDate()-n*7),l(o,r?.in)}var Ri=class extends _{priority=100;parse(e,r,o){switch(r){case"w":return H(j.week,e);case"wo":return o.ordinalNumber(e,{unit:"week"});default:return R(r.length,e)}}validate(e,r){return r>=1&&r<=53}set(e,r,o,n){return X(pu(e,o,n),n)}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","i","t","T"]};function mu(t,e,r){let o=l(t,r?.in),n=zo(o,r)-e;return o.setDate(o.getDate()-n*7),o}var Wi=class extends _{priority=100;parse(e,r,o){switch(r){case"I":return H(j.week,e);case"Io":return o.ordinalNumber(e,{unit:"week"});default:return R(r.length,e)}}validate(e,r){return r>=1&&r<=53}set(e,r,o){return pe(mu(e,o))}incompatibleTokens=["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]};var g0=[31,28,31,30,31,30,31,31,30,31,30,31],b0=[31,29,31,30,31,30,31,31,30,31,30,31],Ui=class extends _{priority=90;subPriority=1;parse(e,r,o){switch(r){case"d":return H(j.date,e);case"do":return o.ordinalNumber(e,{unit:"date"});default:return R(r.length,e)}}validate(e,r){let o=e.getFullYear(),n=Ai(o),i=e.getMonth();return n?r>=1&&r<=b0[i]:r>=1&&r<=g0[i]}set(e,r,o){return e.setDate(o),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","q","Q","w","I","D","i","e","c","t","T"]};var Li=class extends _{priority=90;subpriority=1;parse(e,r,o){switch(r){case"D":case"DD":return H(j.dayOfYear,e);case"Do":return o.ordinalNumber(e,{unit:"date"});default:return R(r.length,e)}}validate(e,r){let o=e.getFullYear();return Ai(o)?r>=1&&r<=366:r>=1&&r<=365}set(e,r,o){return e.setMonth(0,o),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]};function pr(t,e,r){let o=G(),n=r?.weekStartsOn??r?.locale?.options?.weekStartsOn??o.weekStartsOn??o.locale?.options?.weekStartsOn??0,i=l(t,r?.in),s=i.getDay(),u=(e%7+7)%7,c=7-n,f=e<0||e>6?e-(s+c)%7:(u+c)%7-(s+c)%7;return be(i,f,r)}var Bi=class extends _{priority=90;parse(e,r,o){switch(r){case"E":case"EE":case"EEE":return o.day(e,{width:"abbreviated",context:"formatting"})||o.day(e,{width:"short",context:"formatting"})||o.day(e,{width:"narrow",context:"formatting"});case"EEEEE":return o.day(e,{width:"narrow",context:"formatting"});case"EEEEEE":return o.day(e,{width:"short",context:"formatting"})||o.day(e,{width:"narrow",context:"formatting"});case"EEEE":default:return o.day(e,{width:"wide",context:"formatting"})||o.day(e,{width:"abbreviated",context:"formatting"})||o.day(e,{width:"short",context:"formatting"})||o.day(e,{width:"narrow",context:"formatting"})}}validate(e,r){return r>=0&&r<=6}set(e,r,o,n){return e=pr(e,o,n),e.setHours(0,0,0,0),e}incompatibleTokens=["D","i","e","c","t","T"]};var Yi=class extends _{priority=90;parse(e,r,o,n){let i=s=>{let a=Math.floor((s-1)/7)*7;return(s+n.weekStartsOn+6)%7+a};switch(r){case"e":case"ee":return Q(R(r.length,e),i);case"eo":return Q(o.ordinalNumber(e,{unit:"day"}),i);case"eee":return o.day(e,{width:"abbreviated",context:"formatting"})||o.day(e,{width:"short",context:"formatting"})||o.day(e,{width:"narrow",context:"formatting"});case"eeeee":return o.day(e,{width:"narrow",context:"formatting"});case"eeeeee":return o.day(e,{width:"short",context:"formatting"})||o.day(e,{width:"narrow",context:"formatting"});case"eeee":default:return o.day(e,{width:"wide",context:"formatting"})||o.day(e,{width:"abbreviated",context:"formatting"})||o.day(e,{width:"short",context:"formatting"})||o.day(e,{width:"narrow",context:"formatting"})}}validate(e,r){return r>=0&&r<=6}set(e,r,o,n){return e=pr(e,o,n),e.setHours(0,0,0,0),e}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]};var qi=class extends _{priority=90;parse(e,r,o,n){let i=s=>{let a=Math.floor((s-1)/7)*7;return(s+n.weekStartsOn+6)%7+a};switch(r){case"c":case"cc":return Q(R(r.length,e),i);case"co":return Q(o.ordinalNumber(e,{unit:"day"}),i);case"ccc":return o.day(e,{width:"abbreviated",context:"standalone"})||o.day(e,{width:"short",context:"standalone"})||o.day(e,{width:"narrow",context:"standalone"});case"ccccc":return o.day(e,{width:"narrow",context:"standalone"});case"cccccc":return o.day(e,{width:"short",context:"standalone"})||o.day(e,{width:"narrow",context:"standalone"});case"cccc":default:return o.day(e,{width:"wide",context:"standalone"})||o.day(e,{width:"abbreviated",context:"standalone"})||o.day(e,{width:"short",context:"standalone"})||o.day(e,{width:"narrow",context:"standalone"})}}validate(e,r){return r>=0&&r<=6}set(e,r,o,n){return e=pr(e,o,n),e.setHours(0,0,0,0),e}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]};function du(t,e,r){let o=l(t,r?.in),n=cu(o,r),i=e-n;return be(o,i,r)}var Hi=class extends _{priority=90;parse(e,r,o){let n=i=>i===0?7:i;switch(r){case"i":case"ii":return R(r.length,e);case"io":return o.ordinalNumber(e,{unit:"day"});case"iii":return Q(o.day(e,{width:"abbreviated",context:"formatting"})||o.day(e,{width:"short",context:"formatting"})||o.day(e,{width:"narrow",context:"formatting"}),n);case"iiiii":return Q(o.day(e,{width:"narrow",context:"formatting"}),n);case"iiiiii":return Q(o.day(e,{width:"short",context:"formatting"})||o.day(e,{width:"narrow",context:"formatting"}),n);case"iiii":default:return Q(o.day(e,{width:"wide",context:"formatting"})||o.day(e,{width:"abbreviated",context:"formatting"})||o.day(e,{width:"short",context:"formatting"})||o.day(e,{width:"narrow",context:"formatting"}),n)}}validate(e,r){return r>=1&&r<=7}set(e,r,o){return e=du(e,o),e.setHours(0,0,0,0),e}incompatibleTokens=["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]};var ji=class extends _{priority=80;parse(e,r,o){switch(r){case"a":case"aa":case"aaa":return o.dayPeriod(e,{width:"abbreviated",context:"formatting"})||o.dayPeriod(e,{width:"narrow",context:"formatting"});case"aaaaa":return o.dayPeriod(e,{width:"narrow",context:"formatting"});case"aaaa":default:return o.dayPeriod(e,{width:"wide",context:"formatting"})||o.dayPeriod(e,{width:"abbreviated",context:"formatting"})||o.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,r,o){return e.setHours(Vr(o),0,0,0),e}incompatibleTokens=["b","B","H","k","t","T"]};var zi=class extends _{priority=80;parse(e,r,o){switch(r){case"b":case"bb":case"bbb":return o.dayPeriod(e,{width:"abbreviated",context:"formatting"})||o.dayPeriod(e,{width:"narrow",context:"formatting"});case"bbbbb":return o.dayPeriod(e,{width:"narrow",context:"formatting"});case"bbbb":default:return o.dayPeriod(e,{width:"wide",context:"formatting"})||o.dayPeriod(e,{width:"abbreviated",context:"formatting"})||o.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,r,o){return e.setHours(Vr(o),0,0,0),e}incompatibleTokens=["a","B","H","k","t","T"]};var Vi=class extends _{priority=80;parse(e,r,o){switch(r){case"B":case"BB":case"BBB":return o.dayPeriod(e,{width:"abbreviated",context:"formatting"})||o.dayPeriod(e,{width:"narrow",context:"formatting"});case"BBBBB":return o.dayPeriod(e,{width:"narrow",context:"formatting"});case"BBBB":default:return o.dayPeriod(e,{width:"wide",context:"formatting"})||o.dayPeriod(e,{width:"abbreviated",context:"formatting"})||o.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,r,o){return e.setHours(Vr(o),0,0,0),e}incompatibleTokens=["a","b","t","T"]};var Gi=class extends _{priority=70;parse(e,r,o){switch(r){case"h":return H(j.hour12h,e);case"ho":return o.ordinalNumber(e,{unit:"hour"});default:return R(r.length,e)}}validate(e,r){return r>=1&&r<=12}set(e,r,o){let n=e.getHours()>=12;return n&&o<12?e.setHours(o+12,0,0,0):!n&&o===12?e.setHours(0,0,0,0):e.setHours(o,0,0,0),e}incompatibleTokens=["H","K","k","t","T"]};var Ki=class extends _{priority=70;parse(e,r,o){switch(r){case"H":return H(j.hour23h,e);case"Ho":return o.ordinalNumber(e,{unit:"hour"});default:return R(r.length,e)}}validate(e,r){return r>=0&&r<=23}set(e,r,o){return e.setHours(o,0,0,0),e}incompatibleTokens=["a","b","h","K","k","t","T"]};var Qi=class extends _{priority=70;parse(e,r,o){switch(r){case"K":return H(j.hour11h,e);case"Ko":return o.ordinalNumber(e,{unit:"hour"});default:return R(r.length,e)}}validate(e,r){return r>=0&&r<=11}set(e,r,o){return e.getHours()>=12&&o<12?e.setHours(o+12,0,0,0):e.setHours(o,0,0,0),e}incompatibleTokens=["h","H","k","t","T"]};var Ji=class extends _{priority=70;parse(e,r,o){switch(r){case"k":return H(j.hour24h,e);case"ko":return o.ordinalNumber(e,{unit:"hour"});default:return R(r.length,e)}}validate(e,r){return r>=1&&r<=24}set(e,r,o){let n=o<=24?o%24:o;return e.setHours(n,0,0,0),e}incompatibleTokens=["a","b","h","H","K","t","T"]};var Zi=class extends _{priority=60;parse(e,r,o){switch(r){case"m":return H(j.minute,e);case"mo":return o.ordinalNumber(e,{unit:"minute"});default:return R(r.length,e)}}validate(e,r){return r>=0&&r<=59}set(e,r,o){return e.setMinutes(o,0,0),e}incompatibleTokens=["t","T"]};var Xi=class extends _{priority=50;parse(e,r,o){switch(r){case"s":return H(j.second,e);case"so":return o.ordinalNumber(e,{unit:"second"});default:return R(r.length,e)}}validate(e,r){return r>=0&&r<=59}set(e,r,o){return e.setSeconds(o,0),e}incompatibleTokens=["t","T"]};var es=class extends _{priority=30;parse(e,r){let o=n=>Math.trunc(n*Math.pow(10,-r.length+3));return Q(R(r.length,e),o)}set(e,r,o){return e.setMilliseconds(o),e}incompatibleTokens=["t","T"]};var ts=class extends _{priority=10;parse(e,r){switch(r){case"X":return Ke(Ge.basicOptionalMinutes,e);case"XX":return Ke(Ge.basic,e);case"XXXX":return Ke(Ge.basicOptionalSeconds,e);case"XXXXX":return Ke(Ge.extendedOptionalSeconds,e);case"XXX":default:return Ke(Ge.extended,e)}}set(e,r,o){return r.timestampIsSet?e:h(e,e.getTime()-ae(e)-o)}incompatibleTokens=["t","T","x"]};var rs=class extends _{priority=10;parse(e,r){switch(r){case"x":return Ke(Ge.basicOptionalMinutes,e);case"xx":return Ke(Ge.basic,e);case"xxxx":return Ke(Ge.basicOptionalSeconds,e);case"xxxxx":return Ke(Ge.extendedOptionalSeconds,e);case"xxx":default:return Ke(Ge.extended,e)}}set(e,r,o){return r.timestampIsSet?e:h(e,e.getTime()-ae(e)-o)}incompatibleTokens=["t","T","X"]};var os=class extends _{priority=40;parse(e){return Mi(e)}set(e,r,o){return[h(e,o*1e3),{timestampIsSet:!0}]}incompatibleTokens="*"};var ns=class extends _{priority=20;parse(e){return Mi(e)}set(e,r,o){return[h(e,o),{timestampIsSet:!0}]}incompatibleTokens="*"};var hu={G:new Oi,y:new Ii,Y:new Ei,R:new ki,u:new Pi,Q:new Ci,q:new Ni,M:new Fi,L:new $i,w:new Ri,I:new Wi,d:new Ui,D:new Li,E:new Bi,e:new Yi,c:new qi,i:new Hi,a:new ji,b:new zi,B:new Vi,h:new Gi,H:new Ki,K:new Qi,k:new Ji,m:new Zi,s:new Xi,S:new es,X:new ts,x:new rs,t:new os,T:new ns};var v0=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,w0=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,S0=/^'([^]*?)'?$/,D0=/''/g,T0=/\S/,O0=/[a-zA-Z]/;function yu(t,e,r,o){let n=()=>h(o?.in||r,NaN),i=uu(),s=o?.locale??i.locale??He,a=o?.firstWeekContainsDate??o?.locale?.options?.firstWeekContainsDate??i.firstWeekContainsDate??i.locale?.options?.firstWeekContainsDate??1,u=o?.weekStartsOn??o?.locale?.options?.weekStartsOn??i.weekStartsOn??i.locale?.options?.weekStartsOn??0;if(!e)return t?n():l(r,o?.in);let c={firstWeekContainsDate:a,weekStartsOn:u,locale:s},f=[new Ti(o?.in,r)],m=e.match(w0).map(g=>{let A=g[0];if(A in jr){let D=jr[A];return D(g,s.formatLong)}return g}).join("").match(v0),p=[];for(let g of m){!o?.useAdditionalWeekYearTokens&&wi(g)&&Go(g,e,t),!o?.useAdditionalDayOfYearTokens&&vi(g)&&Go(g,e,t);let A=g[0],D=hu[A];if(D){let{incompatibleTokens:T}=D;if(Array.isArray(T)){let V=p.find(z=>T.includes(z.token)||z.token===A);if(V)throw new RangeError(`The format string mustn't contain \`${V.fullToken}\` and \`${g}\` at the same time`)}else if(D.incompatibleTokens==="*"&&p.length>0)throw new RangeError(`The format string mustn't contain \`${g}\` and any other token at the same time`);p.push({token:A,fullToken:g});let L=D.run(t,g,s.match,c);if(!L)return n();f.push(L.setter),t=L.rest}else{if(A.match(O0))throw new RangeError("Format string contains an unescaped latin alphabet character `"+A+"`");if(g==="''"?g="'":A==="'"&&(g=M0(g)),t.indexOf(g)===0)t=t.slice(g.length);else return n()}}if(t.length>0&&T0.test(t))return n();let d=f.map(g=>g.priority).sort((g,A)=>A-g).filter((g,A,D)=>D.indexOf(g)===A).map(g=>f.filter(A=>A.priority===g).sort((A,D)=>D.subPriority-A.subPriority)).map(g=>g[0]),y=l(r,o?.in);if(isNaN(+y))return n();let w={};for(let g of d){if(!g.validate(y,c))return n();let A=g.set(y,w,c);Array.isArray(A)?(y=A[0],Object.assign(w,A[1])):y=A}return y}function M0(t){return t.match(S0)[1].replace(D0,"'")}function _0(t,e,r){return Ee(yu(t,e,new Date,r))}function A0(t,e){return l(t,e?.in).getDay()===1}function I0(t){return+l(t)<Date.now()}function is(t,e){let r=l(t,e?.in);return r.setMinutes(0,0,0),r}function xu(t,e,r){let[o,n]=C(r?.in,t,e);return+is(o)==+is(n)}function Ko(t,e,r){let[o,n]=C(r?.in,t,e);return+X(o,r)==+X(n,r)}function gu(t,e,r){return Ko(t,e,{...r,weekStartsOn:1})}function E0(t,e,r){let[o,n]=C(r?.in,t,e);return+ze(o)==+ze(n)}function ss(t,e){let r=l(t,e?.in);return r.setSeconds(0,0),r}function bu(t,e){return+ss(t)==+ss(e)}function vu(t,e,r){let[o,n]=C(r?.in,t,e);return o.getFullYear()===n.getFullYear()&&o.getMonth()===n.getMonth()}function wu(t,e,r){let[o,n]=C(r?.in,t,e);return+Dt(o)==+Dt(n)}function as(t,e){let r=l(t,e?.in);return r.setMilliseconds(0),r}function Su(t,e){return+as(t)==+as(e)}function Du(t,e,r){let[o,n]=C(r?.in,t,e);return o.getFullYear()===n.getFullYear()}function k0(t,e){return xu(l(t,e?.in),B(e?.in||t))}function P0(t,e){return gu(h(e?.in||t,t),B(e?.in||t))}function C0(t){return bu(t,B(t))}function N0(t,e){return vu(h(e?.in||t,t),B(e?.in||t))}function F0(t,e){return wu(h(e?.in||t,t),B(e?.in||t))}function $0(t){return Su(t,B(t))}function R0(t,e){return Ko(h(e?.in||t,t),B(e?.in||t),e)}function W0(t,e){return Du(h(e?.in||t,t),B(e?.in||t))}function U0(t,e){return l(t,e?.in).getDay()===4}function L0(t,e){return wt(h(e?.in||t,t),B(e?.in||t))}function B0(t,e){return wt(t,be(B(e?.in||t),1),e)}function Y0(t,e){return l(t,e?.in).getDay()===2}function q0(t,e){return l(t,e?.in).getDay()===3}function H0(t,e,r){let o=+l(t,r?.in),[n,i]=[+l(e.start,r?.in),+l(e.end,r?.in)].sort((s,a)=>s-a);return o>=n&&o<=i}function mr(t,e,r){return be(t,-e,r)}function j0(t,e){return wt(h(e?.in||t,t),mr(B(e?.in||t),1))}function z0(t,e){let r=l(t,e?.in),o=r.getFullYear(),n=9+Math.floor(o/10)*10;return r.setFullYear(n+1,0,0),r.setHours(0,0,0,0),l(r,e?.in)}function Tu(t,e){let r=G(),o=e?.weekStartsOn??e?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,n=l(t,e?.in),i=n.getDay(),s=(i<o?-7:0)+6-(i-o);return n.setHours(0,0,0,0),n.setDate(n.getDate()+s),n}function V0(t,e){return Tu(t,{...e,weekStartsOn:1})}function G0(t,e){let r=We(t,e),o=h(e?.in||t,0);o.setFullYear(r+1,0,4),o.setHours(0,0,0,0);let n=pe(o,e);return n.setDate(n.getDate()-1),n}function K0(t,e){let r=l(t,e?.in),o=r.getMonth(),n=o-o%3+3;return r.setMonth(n,0),r.setHours(0,0,0,0),r}function Q0(t,e){let r=l(t,e?.in),o=r.getFullYear();return r.setFullYear(o+1,0,0),r.setHours(0,0,0,0),r}var J0=/(\w)\1*|''|'(''|[^'])+('|$)|./g,Z0=/^'([^]*?)'?$/,X0=/''/g,eb=/[a-zA-Z]/;function tb(t,e){let r=l(t);if(!Ee(r))throw new RangeError("Invalid time value");let o=e.match(J0);return o?o.map(i=>{if(i==="''")return"'";let s=i[0];if(s==="'")return rb(i);let a=Ve[s];if(a)return a(r,i);if(s.match(eb))throw new RangeError("Format string contains an unescaped latin alphabet character `"+s+"`");return i}).join(""):""}function rb(t){let e=t.match(Z0);return e?e[1].replace(X0,"'"):t}function ob({years:t,months:e,weeks:r,days:o,hours:n,minutes:i,seconds:s}){let a=0;t&&(a+=t*365.2425),e&&(a+=e*(365.2425/12)),r&&(a+=r*7),o&&(a+=o);let u=a*24*60*60;return n&&(u+=n*60*60),i&&(u+=i*60),s&&(u+=s),Math.trunc(u*1e3)}function nb(t){let e=t/qe;return Math.trunc(e)}function ib(t){let e=t/Ie;return Math.trunc(e)}function sb(t){let e=t/Nr;return Math.trunc(e)}function ab(t){let e=t/pi;return Math.trunc(e)}function ub(t){return Math.trunc(t*Ie)}function cb(t){return Math.trunc(t*$r)}function fb(t){let e=t/mi;return Math.trunc(e)}function lb(t){let e=t/di;return Math.trunc(e)}function $e(t,e,r){let o=e-lr(t,r);return o<=0&&(o+=7),be(t,o,r)}function pb(t,e){return $e(t,5,e)}function mb(t,e){return $e(t,1,e)}function db(t,e){return $e(t,6,e)}function hb(t,e){return $e(t,0,e)}function yb(t,e){return $e(t,4,e)}function xb(t,e){return $e(t,2,e)}function gb(t,e){return $e(t,3,e)}function bb(t,e){let r=()=>h(e?.in,NaN),o=e?.additionalDigits??2,n=Db(t),i;if(n.date){let c=Tb(n.date,o);i=Ob(c.restDateString,c.year)}if(!i||isNaN(+i))return r();let s=+i,a=0,u;if(n.time&&(a=Mb(n.time),isNaN(a)))return r();if(n.timezone){if(u=_b(n.timezone),isNaN(u))return r()}else{let c=new Date(s+a),f=l(0,e?.in);return f.setFullYear(c.getUTCFullYear(),c.getUTCMonth(),c.getUTCDate()),f.setHours(c.getUTCHours(),c.getUTCMinutes(),c.getUTCSeconds(),c.getUTCMilliseconds()),f}return l(s+a+u,e?.in)}var us={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},vb=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,wb=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,Sb=/^([+-])(\d{2})(?::?(\d{2}))?$/;function Db(t){let e={},r=t.split(us.dateTimeDelimiter),o;if(r.length>2)return e;if(/:/.test(r[0])?o=r[0]:(e.date=r[0],o=r[1],us.timeZoneDelimiter.test(e.date)&&(e.date=t.split(us.timeZoneDelimiter)[0],o=t.substr(e.date.length,t.length))),o){let n=us.timezone.exec(o);n?(e.time=o.replace(n[1],""),e.timezone=n[1]):e.time=o}return e}function Tb(t,e){let r=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+e)+"})|(\\d{2}|[+-]\\d{"+(2+e)+"})$)"),o=t.match(r);if(!o)return{year:NaN,restDateString:""};let n=o[1]?parseInt(o[1]):null,i=o[2]?parseInt(o[2]):null;return{year:i===null?n:i*100,restDateString:t.slice((o[1]||o[2]).length)}}function Ob(t,e){if(e===null)return new Date(NaN);let r=t.match(vb);if(!r)return new Date(NaN);let o=!!r[4],n=Qo(r[1]),i=Qo(r[2])-1,s=Qo(r[3]),a=Qo(r[4]),u=Qo(r[5])-1;if(o)return Pb(e,a,u)?Ab(e,a,u):new Date(NaN);{let c=new Date(0);return!Eb(e,i,s)||!kb(e,n)?new Date(NaN):(c.setUTCFullYear(e,i,Math.max(n,s)),c)}}function Qo(t){return t?parseInt(t):1}function Mb(t){let e=t.match(wb);if(!e)return NaN;let r=Ou(e[1]),o=Ou(e[2]),n=Ou(e[3]);return Cb(r,o,n)?r*qe+o*Ie+n*1e3:NaN}function Ou(t){return t&&parseFloat(t.replace(",","."))||0}function _b(t){if(t==="Z")return 0;let e=t.match(Sb);if(!e)return 0;let r=e[1]==="+"?-1:1,o=parseInt(e[2]),n=e[3]&&parseInt(e[3])||0;return Nb(o,n)?r*(o*qe+n*Ie):NaN}function Ab(t,e,r){let o=new Date(0);o.setUTCFullYear(t,0,4);let n=o.getUTCDay()||7,i=(e-1)*7+r+1-n;return o.setUTCDate(o.getUTCDate()+i),o}var Ib=[31,null,31,30,31,30,31,31,30,31,30,31];function Pl(t){return t%400===0||t%4===0&&t%100!==0}function Eb(t,e,r){return e>=0&&e<=11&&r>=1&&r<=(Ib[e]||(Pl(t)?29:28))}function kb(t,e){return e>=1&&e<=(Pl(t)?366:365)}function Pb(t,e,r){return e>=1&&e<=53&&r>=0&&r<=6}function Cb(t,e,r){return t===24?e===0&&r===0:r>=0&&r<60&&e>=0&&e<60&&t>=0&&t<25}function Nb(t,e){return e>=0&&e<=59}function Fb(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?l(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):l(NaN,e?.in)}function Re(t,e,r){let o=lr(t,r)-e;return o<=0&&(o+=7),mr(t,o,r)}function $b(t,e){return Re(t,5,e)}function Rb(t,e){return Re(t,1,e)}function Wb(t,e){return Re(t,6,e)}function Ub(t,e){return Re(t,0,e)}function Lb(t,e){return Re(t,4,e)}function Bb(t,e){return Re(t,2,e)}function Yb(t,e){return Re(t,3,e)}function qb(t){return Math.trunc(t*mi)}function Hb(t){let e=t/hi;return Math.trunc(e)}function jb(t,e){let r=e?.nearestTo??1;if(r<1||r>12)return h(e?.in||t,NaN);let o=l(t,e?.in),n=o.getMinutes()/60,i=o.getSeconds()/60/60,s=o.getMilliseconds()/1e3/60/60,a=o.getHours()+n+i+s,u=e?.roundingMethod??"round",f=ke(u)(a/r)*r;return o.setHours(f,0,0,0),o}function zb(t,e){let r=e?.nearestTo??1;if(r<1||r>30)return h(t,NaN);let o=l(t,e?.in),n=o.getSeconds()/60,i=o.getMilliseconds()/1e3/60,s=o.getMinutes()+n+i,a=e?.roundingMethod??"round",c=ke(a)(s/r)*r;return o.setMinutes(c,0,0),o}function Vb(t){let e=t/rr;return Math.trunc(e)}function Gb(t){return t*Nr}function Kb(t){let e=t/$r;return Math.trunc(e)}function Jo(t,e,r){let o=l(t,r?.in),n=o.getFullYear(),i=o.getDate(),s=h(r?.in||t,0);s.setFullYear(n,e,15),s.setHours(0,0,0,0);let a=su(s);return o.setMonth(e,Math.min(i,a)),o}function Qb(t,e,r){let o=l(t,r?.in);return isNaN(+o)?h(r?.in||t,NaN):(e.year!=null&&o.setFullYear(e.year),e.month!=null&&(o=Jo(o,e.month)),e.date!=null&&o.setDate(e.date),e.hours!=null&&o.setHours(e.hours),e.minutes!=null&&o.setMinutes(e.minutes),e.seconds!=null&&o.setSeconds(e.seconds),e.milliseconds!=null&&o.setMilliseconds(e.milliseconds),o)}function Jb(t,e,r){let o=l(t,r?.in);return o.setDate(e),o}function Zb(t,e,r){let o=l(t,r?.in);return o.setMonth(0),o.setDate(e),o}function Xb(t){let e={},r=G();for(let o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o]);for(let o in t)Object.prototype.hasOwnProperty.call(t,o)&&(t[o]===void 0?delete e[o]:e[o]=t[o]);bl(e)}function ev(t,e,r){let o=l(t,r?.in);return o.setHours(e),o}function tv(t,e,r){let o=l(t,r?.in);return o.setMilliseconds(e),o}function rv(t,e,r){let o=l(t,r?.in);return o.setMinutes(e),o}function ov(t,e,r){let o=l(t,r?.in),n=Math.trunc(o.getMonth()/3)+1,i=e-n;return Jo(o,o.getMonth()+i*3)}function nv(t,e,r){let o=l(t,r?.in);return o.setSeconds(e),o}function iv(t,e,r){let o=G(),n=r?.firstWeekContainsDate??r?.locale?.options?.firstWeekContainsDate??o.firstWeekContainsDate??o.locale?.options?.firstWeekContainsDate??1,i=De(l(t,r?.in),qr(t,r),r),s=h(r?.in||t,0);s.setFullYear(e,0,n),s.setHours(0,0,0,0);let a=qr(s,r);return a.setDate(a.getDate()+i),a}function sv(t,e,r){let o=l(t,r?.in);return isNaN(+o)?h(r?.in||t,NaN):(o.setFullYear(e),o)}function av(t,e){let r=l(t,e?.in),o=r.getFullYear(),n=Math.floor(o/10)*10;return r.setFullYear(n,0,1),r.setHours(0,0,0,0),r}function uv(t){return vt(Date.now(),t)}function cv(t){let e=B(t?.in),r=e.getFullYear(),o=e.getMonth(),n=e.getDate(),i=h(t?.in,0);return i.setFullYear(r,o,n+1),i.setHours(0,0,0,0),i}function fv(t){let e=B(t?.in),r=e.getFullYear(),o=e.getMonth(),n=e.getDate(),i=B(t?.in);return i.setFullYear(r,o,n-1),i.setHours(0,0,0,0),i}function Mu(t,e,r){return gt(t,-e,r)}function lv(t,e,r){let{years:o=0,months:n=0,weeks:i=0,days:s=0,hours:a=0,minutes:u=0,seconds:c=0}=e,f=Mu(t,n+o*12,r),m=mr(f,s+i*7,r),p=u+a*60,y=(c+p*60)*1e3;return h(r?.in||t,+m-y)}function pv(t,e,r){return Wa(t,-e,r)}function mv(t,e,r){return Ua(t,-e,r)}function dv(t,e,r){return nr(t,-e,r)}function hv(t,e,r){return Ro(t,-e,r)}function yv(t,e,r){return Wo(t,-e,r)}function xv(t,e,r){return Ya(t,-e,r)}function gv(t,e,r){return ir(t,-e,r)}function bv(t,e,r){return qa(t,-e,r)}function vv(t){return Math.trunc(t*7)}function wv(t){return Math.trunc(t*365.2425)}function Sv(t){return Math.trunc(t*di)}function Dv(t){return Math.trunc(t*hi)}var Gr=nt(Cl(),1),$l=nt(Nl(),1);var Fl=t=>Number.isFinite(t)?t:0;function Tv(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(Fl(t*1e3)%1e3),nanoseconds:Math.trunc(Fl(t*1e6)%1e3)}}function Ov(t){return{days:t/86400000n,hours:t/3600000n%24n,minutes:t/60000n%60n,seconds:t/1000n%60n,milliseconds:t%1000n,microseconds:0n,nanoseconds:0n}}function ku(t){switch(typeof t){case"number":{if(Number.isFinite(t))return Tv(t);break}case"bigint":return Ov(t)}throw new TypeError("Expected a finite number or bigint")}var Mv=t=>t===0||t===0n,_v=(t,e)=>e===1||e===1n?t:`${t}s`,Av=1e-7,Iv=24n*60n*60n*1000n;function fs(t,e){let r=typeof t=="bigint";if(!r&&!Number.isFinite(t))throw new TypeError("Expected a finite number or bigint");e={...e};let o=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 n=[],i=(f,m)=>{let p=Math.floor(f*10**m+Av);return(Math.round(p)/10**m).toFixed(m)},s=(f,m,p,d)=>{if(!((n.length===0||!e.colonNotation)&&Mv(f)&&!(e.colonNotation&&p==="m"))){if(d??=String(f),e.colonNotation){let y=d.includes(".")?d.split(".")[0].length:d.length,w=n.length>0?2:1;d="0".repeat(Math.max(0,w-y))+d}else d+=e.verbose?" "+_v(m,f):p;n.push(d)}},a=ku(t),u=BigInt(a.days);if(e.hideYearAndDays?s(BigInt(u)*24n+BigInt(a.hours),"hour","h"):(e.hideYear?s(u,"day","d"):(s(u/365n,"year","y"),s(u%365n,"day","d")),s(Number(a.hours),"hour","h")),s(Number(a.minutes),"minute","m"),!e.hideSeconds)if(e.separateMilliseconds||e.formatSubMilliseconds||!e.colonNotation&&t<1e3){let f=Number(a.seconds),m=Number(a.milliseconds),p=Number(a.microseconds),d=Number(a.nanoseconds);if(s(f,"second","s"),e.formatSubMilliseconds)s(m,"millisecond","ms"),s(p,"microsecond","\xB5s"),s(d,"nanosecond","ns");else{let y=m+p/1e3+d/1e6,w=typeof e.millisecondsDecimalDigits=="number"?e.millisecondsDecimalDigits:0,g=y>=1?Math.round(y):Math.ceil(y),A=w?y.toFixed(w):g;s(Number.parseFloat(A),"millisecond","ms",A)}}else{let f=(r?Number(t%Iv):t)/1e3%60,m=typeof e.secondsDecimalDigits=="number"?e.secondsDecimalDigits:1,p=i(f,m),d=e.keepDecimalsOnWholeSeconds?p:p.replace(/\.0+$/,"");s(Number.parseFloat(d),"second","s",d)}if(n.length===0)return o+"0"+(e.verbose?" milliseconds":"ms");let c=e.colonNotation?":":" ";return typeof e.unitCount=="number"&&(n=n.slice(0,Math.max(e.unitCount,1))),o+n.join(c)}Gr.default.extend($l.default);var Zo=class{constructor(e,r,o){this.status="initial",this.nextExecutionUnix=0,this.cronExpression=r,this.jobFunction=o,this.cronParser=new fi.Cron(r)}checkExecution(){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()}start(){this.status="started"}stop(){this.status="stopped"}};var Ct={years:(t=1)=>t*3154e7,months:(t=1)=>t*2628e6,weeks:(t=1)=>t*6048e5,days:(t=1)=>t*864e5,hours:(t=1)=>t*36e5,minutes:(t=1)=>t*6e4,seconds:(t=1)=>t*1e3},Pu=t=>{let e=0,r=o=>{e=e+o};return t.years&&r(Ct.years(t.years)),t.months&&r(Ct.months(t.months)),t.weeks&&r(Ct.weeks(t.weeks)),t.days&&r(Ct.days(t.days)),t.hours&&r(Ct.hours(t.hours)),t.minutes&&r(Ct.minutes(t.minutes)),t.seconds&&r(Ct.seconds(t.seconds)),e},Cu=t=>fs(t),Ev=t=>cs.formatDistanceToNow(new Date(t));var Nu=class{constructor(){this.status="stopped",this.cronjobs=new Ue.ObjectMap}addCronjob(e,r){let o=new Zo(this,e,r);return this.cronjobs.add(o),this.status==="started"&&o.start(),o}removeCronjob(e){e.stop(),this.cronjobs.remove(e)}start(){if(this.status!=="started"){this.status="started";for(let e of this.cronjobs.getArray())e.start();this.runCronCycle()}}async runCronCycle(){this.executionTimeout=new Z.Timeout(0);do{let e;for(let r of this.cronjobs.getArray())r.checkExecution(),(!e||r.getTimeToNextExecution()<e.getTimeToNextExecution())&&(e=r);e?(this.executionTimeout=new Z.Timeout(e.getTimeToNextExecution()),console.log(`Next CronJob scheduled in ${Cu(this.executionTimeout.getTimeLeft())}`)):(this.executionTimeout=new Z.Timeout(1e3),console.log("no cronjobs specified! Checking again in 1 second")),await this.executionTimeout.promise}while(this.status==="started")}stop(){this.status==="started"?(this.status="stopped",this.executionTimeout.cancel()):console.log("You tried to stop a CronManager that was not actually started.");for(let e of this.cronjobs.getArray())e.stop()}};var Fu=class t extends Date{static fromMillis(e){return new t(e)}static fromDate(e){return new t(e.getTime())}static fromEuropeanDate(e){let r=/(.*)\.(.*)\.(.*)/.exec(e),n=new Date(parseFloat(r[3]),parseFloat(r[2])-1,parseFloat(r[1])).getTime();return new t(n)}static fromHyphedDate(e){let r=new Date(e).getTime();return new t(r)}static fromEuropeanDateAndTime(e,r="12:00:00",o="Europe/Berlin"){let n=/(.*)\.(.*)\.(.*)/.exec(e),i=c=>`0${c}`.slice(-2),s=`${n[3]}-${i(n[2])}-${i(n[1])}T${r}`,u=Gr.default(s).toDate().getTime();return new t(u)}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 Gr.default(this.getTime()).format(e)}isToday(){return Gr.default(this.getTime()).isToday()}lessTimePassedToNow(e){let r=Pu(e);return Date.now()-this.getTime()<r}moreTimePassedToNow(e){return!this.lessTimePassedToNow(e)}};var $u=class{constructor(){this.nanoSeconds=null,this.milliSeconds=null,this._milliStart=null,this._milliDiff=null,this._started=!1}start(){this._started=!0,this._milliStart=Date.now()}stop(){if(this._started===!1){console.log("Hasn't started yet");return}return this._milliDiff=Date.now()-this._milliStart,this.nanoSeconds=this._milliDiff*1e3,this.milliSeconds=this._milliDiff,this}reset(){this.nanoSeconds=null,this.milliSeconds=null,this._milliStart=null,this._milliDiff=null,this._started=!1}};var Ru=class{constructor(e){this.status="initial",this.statusAuthorization=null,this.intervalJobs=[],this.intervalMilliseconds=e}start(){this.status="started";let e=new Date;this.statusAuthorization=e,(async()=>{for(;this.status==="started"&&this.statusAuthorization===e;)await Z.delayFor(this.intervalMilliseconds),this.executeIntervalJobs()})()}stop(){this.status="stopped",this.statusAuthorization=null}addIntervalJob(e){this.intervalJobs.push(e)}executeIntervalJobs(){for(let e of this.intervalJobs)e()}};var Qr=class t{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,e?typeof e=="number"&&(this.date=new Date(e)):this.date=new Date,this.milliSeconds=this.date.getTime(),this.epochtime=Math.floor(this.milliSeconds/1e3)}isOlderThanOtherTimeStamp(e,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 o=new t().epochtime-e,n=new t(o);return this.isYoungerThanOtherTimeStamp(n)}};var Wu=class{get timeLeft(){return this.timeInMilliseconds-this.pausedAt.change}constructor(e){this.state="initiated",this.completedDeferred=K.defer(),this.timeInMilliseconds=e,this.completed=this.completedDeferred.promise}start(){if(!this.startedAt)this.currentTimeout=setTimeout(()=>{this.completedDeferred.resolve()},this.timeInMilliseconds),this.startedAt=new Qr;else throw new Error("timer has been started before. Please use resume instead")}pause(){this.startedAt&&(clearTimeout(this.currentTimeout),this.currentTimeout=null,this.pausedAt=Qr.fromTimeStamp(this.startedAt))}resume(){if(this.startedAt)this.currentTimeout=setTimeout(()=>{this.completedDeferred.resolve()},this.timeLeft);else throw new Error("timer has NOT been started before. Please use .start() instead")}reset(){this.pause(),this.startedAt=null,this.pausedAt=null}};var Lu=nt(Vl(),1);var Bu=class{constructor(){this.executionSlots=[],this.isProcessing=!1}async getExclusiveExecutionSlot(e,r){let o=K.defer(),n={funcToExecute:e,executionDeferred:o,timeout:r,mode:"exclusive"};return this.executionSlots.push(n),this.processExecutionSlots(),o.promise}async getNonExclusiveExecutionSlot(e,r){let o=K.defer(),n={funcToExecute:e,executionDeferred:o,timeout:r,mode:"nonexclusive"};return this.executionSlots.push(n),this.processExecutionSlots(),o.promise}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=await Promise.race([e.funcToExecute(),Z.delayFor(e.timeout).then(()=>{throw new Error("Timeout reached")})]);e.executionDeferred.resolve(r)}else{let r=await e.funcToExecute();e.executionDeferred.resolve(r)}}catch(r){e.executionDeferred.reject(r)}}async executeNonExclusiveSlots(e){let r=e.map(async o=>{try{if(o.timeout){let n=await Promise.race([o.funcToExecute(),Z.delayFor(o.timeout).then(()=>{throw new Error("Timeout reached")})]);o.executionDeferred.resolve(n)}else{let n=await o.funcToExecute();o.executionDeferred.resolve(n)}}catch(n){o.executionDeferred.reject(n)}});await Promise.all(r)}};var Yu=class{constructor(e=16){this.hasSpace=new st.rxjs.Subject,this.itemsAvailable=new st.rxjs.Subject,this.data=[],this.highWaterMark=e}push(e){this.data.push(e),this.itemsAvailable.next("itemsAvailable");let r=this.checkSpaceAvailable();return r&&this.hasSpace.next("hasSpace"),r}shift(){let e=this.data.shift();return this.checkSpaceAvailable()&&this.hasSpace.next("hasSpace"),e}checkSpaceAvailable(){return this.data.length<this.highWaterMark}checkHasItems(){return this.data.length>0}waitForSpace(){return new Promise(e=>{if(this.checkSpaceAvailable())e();else{let r=this.hasSpace.subscribe(()=>{r.unsubscribe(),e()})}})}waitForItems(){return new Promise(e=>{if(this.data.length>0)e();else{let r=this.itemsAvailable.subscribe(()=>{r.unsubscribe(),e()})}})}};var Xo=class t{constructor(){this.mapObject={}}isUniqueKey(e){return!this.mapObject[e]}addToMap(e,r,o){return this.isUniqueKey(e)||o&&o.force?(this.mapObject[e]=r,!0):!1}getByKey(e){return this.mapObject[e]}removeFromMap(e){let r=this.getByKey(e);return delete this.mapObject[e],r}getKeys(){let e=[];for(let r in this.mapObject)this.mapObject[r]&&e.push(r);return e}clean(){this.mapObject={}}concat(e){let r=new t;for(let o of this.getKeys())r.addToMap(o,this.getByKey(o));for(let o of e.getKeys())r.addToMap(o,e.getByKey(o),{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 o=this.getByKey(r);if(await e(o))return o}}};var Gl=(t="uni")=>`${t}xxxxxxxxxxx`.replace(/[xy]/g,e=>{let r=Math.random()*16|0;return(e==="x"?r:r&3|8).toString(16)}),dr=class t{constructor(){this.fastMap=new Xo,this.eventSubject=new st.rxjs.Subject}addMappedUnique(e,r){this.fastMap.addToMap(e,r)}getMappedUnique(e){return this.fastMap.getByKey(e)}removeMappedUnique(e){let r=this.getMappedUnique(e)}add(e){for(let o of this.fastMap.getKeys())if(this.fastMap.getByKey(o)===e)return o;let r=Gl("key");return this.addMappedUnique(r,e),this.eventSubject.next({operation:"add",payload:e}),r}addArray(e){for(let r of e)this.add(r)}checkForObject(e){return!!this.getKeyForObject(e)}getKeyForObject(e){let r=null;for(let o of this.fastMap.getKeys())if(!r&&this.fastMap.getByKey(o)===e)r=o;else continue;return r}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],o=this.fastMap.removeFromMap(r);return this.eventSubject.next({operation:"remove",payload:o}),o}}getArray(){let e=[];for(let r of this.fastMap.getKeys())e.push(this.fastMap.getByKey(r));return e}isEmpty(){return this.fastMap.getKeys().length===0}remove(e){if(this.checkForObject(e)){let r=this.getKeyForObject(e),o=this.fastMap.removeFromMap(r);return this.eventSubject.next({operation:"remove",payload:o}),o}return null}wipe(){for(let e of this.fastMap.getKeys())this.fastMap.removeFromMap(e)}concat(e){let r=new t;return r.fastMap.addAllFromOther(this.fastMap),r.fastMap.addAllFromOther(e.fastMap),r}addAllFromOther(e){this.fastMap.addAllFromOther(e.fastMap)}};var en=class{get comparisonString(){return this.comparisonFunc(this.originalInterest)}fullfillInterest(e){this.isFullfilled=!0,this.fullfillmentStore=[],this.interestDeferred.resolve(e)}constructor(e,r,o,n){this.destructionTimer=new Tt.Timer(1e4),this.isFullfilled=!1,this.fullfillmentStore=[],this.interestDeferred=new K.Deferred,this.interestFullfilled=this.interestDeferred.promise,this.interestMapRef=e,this.originalInterest=r,this.comparisonFunc=o,this.options=n,this.destructionTimer.completed.then(()=>{this.destroy()}),this.options?.markLostAfterDefault&&Z.delayFor(this.options.markLostAfterDefault).then(this.markLost)}destroy(){this.interestMapRef.removeInterest(this),!this.isFullfilled&&this.options.defaultFullfillment&&this.fullfillInterest(this.options.defaultFullfillment)}markLost(){this.destructionTimer.start()}renew(){this.destructionTimer.reset()}};var qu=class{constructor(e,r={}){this.interestObjectMap=new dr,this.interestObservable=new st.ObservableIntake,this.comparisonFunc=e,this.options=r}async addInterest(e,r){let o=this.comparisonFunc(e),n,i=new en(this,e,this.comparisonFunc,{markLostAfterDefault:this.options.markLostAfterDefault,defaultFullfillment:r}),s=!1;return await this.interestObjectMap.forEach(a=>{!s&&a.comparisonString===i.comparisonString&&(console.log("info",`interest already exists for ${i.comparisonString}`),s=!0,n=a,n.renew())}),n||(n=i,this.interestObjectMap.add(n)),this.interestObservable.push(n),n}removeInterest(e){let r=this.interestObjectMap.findOneAndRemoveSync(o=>e.comparisonString===o.comparisonString)}checkInterest(e){let r=this.comparisonFunc(e);return this.checkInterestByString(r)}checkInterestByString(e){return!!this.interestObjectMap.findSync(o=>o.comparisonString===e)}informLostInterest(e){let r=this.findInterest(e);r&&r.markLost()}findInterest(e){let r=this.comparisonFunc(e);return this.interestObjectMap.findSync(n=>n.comparisonString===r)}};var Hu=class{constructor(e){this.array=[],this.arrayLimit=e}addOne(e){this.array.unshift(e),this.array.length>this.arrayLimit&&(this.array.length=this.arrayLimit)}addMany(e){for(let r of e)this.addOne(r)}setLimit(e){this.arrayLimit=e,this.array.length>this.arrayLimit&&(this.array.length=this.arrayLimit)}getAverage(){if(typeof this.array[0]=="number"){let e=0;for(let r of this.array)e=e+r;return e/this.array.length}else return null}};var ju=class{constructor(){this.referenceObjectMap=new dr}checkAndTrack(e){return this.referenceObjectMap.checkForObject(e)?!1:(this.referenceObjectMap.add(e),!0)}};var zu=class{constructor(){this._stringArray=[],this._triggerUntilTrueFunctionArray=[]}addString(e){this._stringArray.push(e),this.notifyTrigger()}addStringArray(e){for(let r of e)this.addString(r)}removeString(e){for(let r in this._stringArray)this._stringArray[r]===e&&this._stringArray.splice(parseInt(r),1);this.notifyTrigger()}wipe(){this._stringArray=[],this.notifyTrigger()}checkString(e){return this._stringArray.indexOf(e)!==-1}checkMinimatch(e){let r=new qn.SmartMatch(e),o=!1;for(let n of this._stringArray)r.match(n)&&(o=!0);return o}checkIsEmpty(){return this._stringArray.length===0}getStringArray(){let e=[];for(let r of this._stringArray)e.push(r);return e}registerUntilTrue(e,r){let o=K.defer();return this._triggerUntilTrueFunctionArray.push(()=>{let n=e(this.getStringArray());return n===!0&&(r&&r(),o.resolve()),n}),this.notifyTrigger(),o.promise}notifyTrigger(){let e=this._triggerUntilTrueFunctionArray.filter(r=>!r());this._triggerUntilTrueFunctionArray=e}};var Vu=class{constructor(e){this.storageArray=[],this.options=e}checkAggregationStatus(){let e=()=>{this.aggregationTimer=new Tt.Timer(this.options.aggregationIntervalInMillis),this.aggregationTimer.completed.then(()=>{let r=this.storageArray;if(r.length===0){this.aggregationTimer=null;return}this.storageArray=[],e(),this.options.functionForAggregation(r)}),this.aggregationTimer.start()};this.aggregationTimer||e()}add(e){this.storageArray.push(e),this.checkAggregationStatus()}};var Gu=class{constructor(){this.symbolTree=new Lu.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()}ancestorsIterator(e){this.symbolTree.ancestorsIterator()}treeIterator(e,r){return this.symbolTree.treeIterator(e)}index(e){return this.symbolTree.index(e)}childrenCount(e){return this.symbolTree.childrenCount(e)}compareTreePosition(e,r){return this.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=this.treeIterator(e,{});for(let o of r)console.log(o)}fromJsonWithHierachy(e){}};var rn={};re(rn,{base64ToUint8Array:()=>rw,ensurePureUint8Array:()=>iw,isBufferLike:()=>nw,isUint8Array:()=>ow,uInt8ArrayExtras:()=>ew,uInt8ArrayToBase64:()=>tw});var hr={};re(hr,{areUint8ArraysEqual:()=>Lv,assertUint8Array:()=>Rt,assertUint8ArrayOrArrayBuffer:()=>Zl,base64ToString:()=>Vv,base64ToUint8Array:()=>rp,compareUint8Arrays:()=>Bv,concatUint8Arrays:()=>Uv,getUintBE:()=>Jv,hexToUint8Array:()=>Qv,includes:()=>Zv,indexOf:()=>op,isUint8Array:()=>Ku,stringToBase64:()=>zv,stringToUint8Array:()=>ep,toUint8Array:()=>Wv,uint8ArrayToBase64:()=>tp,uint8ArrayToHex:()=>Kv,uint8ArrayToString:()=>Xl});var Cv=Object.prototype.toString,Nv="[object Uint8Array]",Fv="[object ArrayBuffer]";function Jl(t,e,r){return t?t.constructor===e?!0:Cv.call(t)===r:!1}function Ku(t){return Jl(t,Uint8Array,Nv)}function $v(t){return Jl(t,ArrayBuffer,Fv)}function Rv(t){return Ku(t)||$v(t)}function Rt(t){if(!Ku(t))throw new TypeError(`Expected \`Uint8Array\`, got \`${typeof t}\``)}function Zl(t){if(!Rv(t))throw new TypeError(`Expected \`Uint8Array\` or \`ArrayBuffer\`, got \`${typeof t}\``)}function Wv(t){if(t instanceof ArrayBuffer)return new Uint8Array(t);if(ArrayBuffer.isView(t))return new Uint8Array(t.buffer,t.byteOffset,t.byteLength);throw new TypeError(`Unsupported value, got \`${typeof t}\`.`)}function Uv(t,e){if(t.length===0)return new Uint8Array(0);e??=t.reduce((n,i)=>n+i.length,0);let r=new Uint8Array(e),o=0;for(let n of t)Rt(n),r.set(n,o),o+=n.length;return r}function Lv(t,e){if(Rt(t),Rt(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}function Bv(t,e){Rt(t),Rt(e);let r=Math.min(t.length,e.length);for(let o=0;o<r;o++){let n=t[o]-e[o];if(n!==0)return Math.sign(n)}return Math.sign(t.length-e.length)}var Kl={utf8:new globalThis.TextDecoder("utf8")};function Xl(t,e="utf8"){return Zl(t),Kl[e]??=new globalThis.TextDecoder(e),Kl[e].decode(t)}function tn(t){if(typeof t!="string")throw new TypeError(`Expected \`string\`, got \`${typeof t}\``)}var Yv=new globalThis.TextEncoder;function ep(t){return tn(t),Yv.encode(t)}function qv(t){return t.replaceAll("+","-").replaceAll("/","_").replace(/=+$/,"")}function Hv(t){return t.replaceAll("-","+").replaceAll("_","/")}var jv=65535;function tp(t,{urlSafe:e=!1}={}){Rt(t);let r;if(t.length<jv)r=globalThis.btoa(String.fromCodePoint.apply(this,t));else{r="";for(let o of t)r+=String.fromCodePoint(o);r=globalThis.btoa(r)}return e?qv(r):r}function rp(t){return tn(t),Uint8Array.from(globalThis.atob(Hv(t)),e=>e.codePointAt(0))}function zv(t,{urlSafe:e=!1}={}){return tn(t),tp(ep(t),{urlSafe:e})}function Vv(t){return tn(t),Xl(rp(t))}var Gv=Array.from({length:256},(t,e)=>e.toString(16).padStart(2,"0"));function Kv(t){Rt(t);let e="";for(let r=0;r<t.length;r++)e+=Gv[t[r]];return e}var Ql={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 Qv(t){if(tn(t),t.length%2!==0)throw new Error("Invalid Hex string length.");let e=t.length/2,r=new Uint8Array(e);for(let o=0;o<e;o++){let n=Ql[t[o*2]],i=Ql[t[o*2+1]];if(n===void 0||i===void 0)throw new Error(`Invalid Hex character encountered at position ${o*2}`);r[o]=n<<4|i}return r}function Jv(t){let{byteLength:e}=t;if(e===6)return t.getUint16(0)*2**32+t.getUint32(2);if(e===5)return t.getUint8(0)*2**32+t.getUint32(1);if(e===4)return t.getUint32(0);if(e===3)return t.getUint8(0)*2**16+t.getUint16(1);if(e===2)return t.getUint16(0);if(e===1)return t.getUint8(0)}function op(t,e){let r=t.length,o=e.length;if(o===0||o>r)return-1;let n=r-o;for(let i=0;i<=n;i++){let s=!0;for(let a=0;a<o;a++)if(t[i+a]!==e[a]){s=!1;break}if(s)return i}return-1}function Zv(t,e){return op(t,e)!==-1}var ew=hr;function tw(t){return hr.uint8ArrayToBase64(t)}function rw(t){return hr.base64ToUint8Array(t)}var ow=t=>hr.isUint8Array(t);function nw(t){return t&&typeof t.byteLength=="number"?!0:typeof Buffer<"u"&&Buffer.isBuffer?Buffer.isBuffer(t):!1}function iw(t){let e=new Uint8Array(t.length);return e.set(t),e}var ps={};re(ps,{Guard:()=>on,GuardError:()=>nn,GuardSet:()=>sn,passGuardsOrReject:()=>sw});var on=class{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}};var nn=class extends Error{constructor(e){super(e),this.name="GuardError"}};var sn=class extends on{constructor(e=[]){super(async r=>this.allGuardsPass(r)),this.guards=e}async execAllWithData(e,r={mode:"parallel",stopOnFail:!1}){let o=[];for(let i of this.guards){let s=i.exec(e);if(r.mode==="serial"&&await s,o.push(s),r.stopOnFail&&!await s)return await Promise.all(o)}return await Promise.all(o)}async allGuardsPass(e,r={mode:"parallel",stopOnFail:!1}){return(await this.execAllWithData(e,r)).every(n=>n)}async anyGuardsPass(e){return(await this.execAllWithData(e,{mode:"parallel",stopOnFail:!1})).some(o=>o)}getFailedHint(e){for(let r of this.guards){let o=r.getFailedHint(e);if(o)return o}}};var sw=async(t,e)=>{let r=new sn(e);if(!await r.allGuardsPass(t)){let n=await r.getFailedHint(t);throw new nn(`Guards failed:
10
+ ${n}
11
+ `)}};var js={};re(js,{WebRequest:()=>pf});var yr={};re(yr,{Smartenv:()=>an});var an=class{constructor(){this.loadedScripts=[]}async getEnvAwareModule(e){if(this.isNode)return await this.getSafeNodeModule(e.nodeModuleName);if(this.isBrowser)return await this.getSafeWebModule(e.webUrlArg,e.getFunction);console.error("platform for loading not supported by smartenv")}async getSafeNodeModule(e,r){if(!this.isNode){console.error(`You tried to load a node module in a wrong context: ${e}`);return}let o=await new Function(`return import('${e}')`)();return r&&await r(o),o}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 o=K.defer();if(globalThis.importScripts)globalThis.importScripts(e),o.resolve();else{let n=document.createElement("script");n.onload=()=>{o.resolve()},n.src=e,document.head.appendChild(n)}return await o.promise,r()}get runtimeEnv(){return typeof process<"u"?"node":"browser"}get isBrowser(){return!this.isNode}get userAgent(){return this.isBrowser?navigator.userAgent:"undefined"}get isNode(){return this.runtimeEnv==="node"}get nodeVersion(){return process.version}get isCI(){return this.isNode?!!process.env.CI:!1}async isMacAsync(){return this.isNode?(await this.getSafeNodeModule("os")).platform()==="darwin":!1}async isWindowsAsync(){return this.isNode?(await this.getSafeNodeModule("os")).platform()==="win32":!1}async isLinuxAsync(){return this.isNode?(await this.getSafeNodeModule("os")).platform()==="linux":!1}async printEnv(){this.isNode?(console.log("running on NODE"),console.log("node version is "+this.nodeVersion)):(console.log("running on BROWSER"),console.log("browser is "+this.userAgent))}};var Ze={};re(Ze,{Smartjson:()=>of,deepEqualJsonLStrings:()=>fO,deepEqualObjects:()=>Qh,foldDec:()=>cO,parse:()=>On,parseBase64:()=>uO,parseJsonL:()=>iO,stringify:()=>xo,stringifyBase64:()=>aO,stringifyPretty:()=>sO});var wn={};re(wn,{Base64:()=>ks,Domain:()=>Ps,GitRepo:()=>Cs,base64:()=>lo,create:()=>Nc,docker:()=>Fc,indent:()=>Wc,normalize:()=>Uc,type:()=>Lc});var Nc={};re(Nc,{createCryptoRandomString:()=>d1,createRandomString:()=>m1});var Qd=nt(ua(),1),Jd=nt(gd(),1);var Td="3.7.7",zD=Td,fo=typeof Buffer=="function",bd=typeof TextDecoder=="function"?new TextDecoder:void 0,vd=typeof TextEncoder=="function"?new TextEncoder:void 0,VD="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",bn=Array.prototype.slice.call(VD),_s=(t=>{let e={};return t.forEach((r,o)=>e[r]=o),e})(bn),GD=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,Te=String.fromCharCode.bind(String),wd=typeof Uint8Array.from=="function"?Uint8Array.from.bind(Uint8Array):t=>new Uint8Array(Array.prototype.slice.call(t,0)),Od=t=>t.replace(/=/g,"").replace(/[+\/]/g,e=>e=="+"?"-":"_"),Md=t=>t.replace(/[^A-Za-z0-9\+\/]/g,""),_d=t=>{let e,r,o,n,i="",s=t.length%3;for(let a=0;a<t.length;){if((r=t.charCodeAt(a++))>255||(o=t.charCodeAt(a++))>255||(n=t.charCodeAt(a++))>255)throw new TypeError("invalid character found");e=r<<16|o<<8|n,i+=bn[e>>18&63]+bn[e>>12&63]+bn[e>>6&63]+bn[e&63]}return s?i.slice(0,s-3)+"===".substring(s):i},Ec=typeof btoa=="function"?t=>btoa(t):fo?t=>Buffer.from(t,"binary").toString("base64"):_d,Ac=fo?t=>Buffer.from(t).toString("base64"):t=>{let r=[];for(let o=0,n=t.length;o<n;o+=4096)r.push(Te.apply(null,t.subarray(o,o+4096)));return Ec(r.join(""))},As=(t,e=!1)=>e?Od(Ac(t)):Ac(t),KD=t=>{if(t.length<2){var e=t.charCodeAt(0);return e<128?t:e<2048?Te(192|e>>>6)+Te(128|e&63):Te(224|e>>>12&15)+Te(128|e>>>6&63)+Te(128|e&63)}else{var e=65536+(t.charCodeAt(0)-55296)*1024+(t.charCodeAt(1)-56320);return Te(240|e>>>18&7)+Te(128|e>>>12&63)+Te(128|e>>>6&63)+Te(128|e&63)}},QD=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,Ad=t=>t.replace(QD,KD),Sd=fo?t=>Buffer.from(t,"utf8").toString("base64"):vd?t=>Ac(vd.encode(t)):t=>Ec(Ad(t)),co=(t,e=!1)=>e?Od(Sd(t)):Sd(t),Dd=t=>co(t,!0),JD=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,ZD=t=>{switch(t.length){case 4:var e=(7&t.charCodeAt(0))<<18|(63&t.charCodeAt(1))<<12|(63&t.charCodeAt(2))<<6|63&t.charCodeAt(3),r=e-65536;return Te((r>>>10)+55296)+Te((r&1023)+56320);case 3:return Te((15&t.charCodeAt(0))<<12|(63&t.charCodeAt(1))<<6|63&t.charCodeAt(2));default:return Te((31&t.charCodeAt(0))<<6|63&t.charCodeAt(1))}},Id=t=>t.replace(JD,ZD),Ed=t=>{if(t=t.replace(/\s+/g,""),!GD.test(t))throw new TypeError("malformed base64.");t+="==".slice(2-(t.length&3));let e,r="",o,n;for(let i=0;i<t.length;)e=_s[t.charAt(i++)]<<18|_s[t.charAt(i++)]<<12|(o=_s[t.charAt(i++)])<<6|(n=_s[t.charAt(i++)]),r+=o===64?Te(e>>16&255):n===64?Te(e>>16&255,e>>8&255):Te(e>>16&255,e>>8&255,e&255);return r},kc=typeof atob=="function"?t=>atob(Md(t)):fo?t=>Buffer.from(t,"base64").toString("binary"):Ed,kd=fo?t=>wd(Buffer.from(t,"base64")):t=>wd(kc(t).split("").map(e=>e.charCodeAt(0))),Pd=t=>kd(Cd(t)),XD=fo?t=>Buffer.from(t,"base64").toString("utf8"):bd?t=>bd.decode(kd(t)):t=>Id(kc(t)),Cd=t=>Md(t.replace(/[-_]/g,e=>e=="-"?"+":"/")),Ic=t=>XD(Cd(t)),e1=t=>{if(typeof t!="string")return!1;let e=t.replace(/\s+/g,"").replace(/={0,2}$/,"");return!/[^\s0-9a-zA-Z\+/]/.test(e)||!/[^\s0-9a-zA-Z\-_]/.test(e)},Nd=t=>({value:t,enumerable:!1,writable:!0,configurable:!0}),Fd=function(){let t=(e,r)=>Object.defineProperty(String.prototype,e,Nd(r));t("fromBase64",function(){return Ic(this)}),t("toBase64",function(e){return co(this,e)}),t("toBase64URI",function(){return co(this,!0)}),t("toBase64URL",function(){return co(this,!0)}),t("toUint8Array",function(){return Pd(this)})},$d=function(){let t=(e,r)=>Object.defineProperty(Uint8Array.prototype,e,Nd(r));t("toBase64",function(e){return As(this,e)}),t("toBase64URI",function(){return As(this,!0)}),t("toBase64URL",function(){return As(this,!0)})},t1=()=>{Fd(),$d()},vn={version:Td,VERSION:zD,atob:kc,atobPolyfill:Ed,btoa:Ec,btoaPolyfill:_d,fromBase64:Ic,toBase64:co,encode:co,encodeURI:Dd,encodeURL:Dd,utob:Ad,btou:Id,decode:Ic,isValid:e1,fromUint8Array:As,toUint8Array:Pd,extendString:Fd,extendUint8Array:$d,extendBuiltins:t1};var Ud=nt(Wd(),1);function Is(t){let e=(0,Ud.default)(t);if(e===0)return t;let r=new RegExp(`^[ \\t]{${e}}`,"gm");return t.replace(r,"")}var Cc=nt(Kd(),1),CG=new an;var m1=(t,e,r)=>Cc.default(t,e,r),d1=()=>Qd.uni();var Fc={};re(Fc,{makeEnvObject:()=>h1});var h1=function(t){let e={},r=/(.*)=(.*)/;if(typeof t<"u")for(let o in t){let n=r.exec(t[o]);e[n[1]]=n[2]}return e};var Wc={};re(Wc,{indent:()=>x1,indentWithPrefix:()=>g1,normalize:()=>b1});var $c=t=>{let e=t.split(`
12
+ `);return y1(e)},Rc=t=>{let e="";for(let r of t)e=e+r+`
13
+ `;return e},y1=t=>{let e=/^[\s]*$/;return e.test(t[0])&&t.shift(),e.test(t[t.length-1])&&t.pop(),t},x1=(t,e)=>{let r=$c(t);for(let n of r)n=" ".repeat(e)+n;return Rc(r)},g1=(t,e)=>{let r,o=$c(t),n=[];for(let i of o)n.push(e+i);return r=Rc(n),r},b1=t=>{let e,r=$c(t),o,n=/^(\s*)/,i=/^(\s*)$/;for(let a of r){let u=n.exec(a)[1];(typeof o>"u"||u.length<o)&&!i.test(a)&&(o=u.length)}let s=[];for(let a of r)s.push(a.substr(o));return e=Rc(s),e};var Uc={};re(Uc,{replaceAll:()=>Zd,standard:()=>v1});var Zd=(t,e,r)=>t.replace(new RegExp(e,"g"),r),v1=(t,e)=>{let r=t;return(!e||e.stripIndent)&&(r=Is(r)),(!e||e.normalizeNewline)&&(r=r.replace(/\r\n/g,`
14
+ `)),(!e||e.replaceTabs)&&(r=Zd(r," /"," ")),(!e||e.stripLeadingTrailingEmptyLines)&&(r=r.replace(/^\s*[\r\n]/gm,"").replace(/\s*[\r\n]$/gm,"")),(!e||e.stripAllEmptyLines)&&(r=r.replace(/^\s*[\r\n]/gm,"")),r};var Lc={};re(Lc,{isBase64:()=>S1,isUtf8:()=>w1});var ks=class{constructor(e,r){switch(r){case"string":this.refString=e;break;case"base64":this.refString=lo.decode(e);break;case"base64uri":this.refString=lo.decode(e)}}get simpleString(){return this.refString}get base64String(){return lo.encode(this.refString)}get base64UriString(){return lo.encodeUri(this.refString)}},lo={encode:t=>vn.encode(t),encodeUri:t=>vn.encodeURI(t),decode:t=>vn.decode(t),isBase64:t=>/^([A-Za-z0-9+/]{4})*([A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{2}==)?$/.test(t)};var w1=t=>{let r=new TextEncoder().encode(t),o=0;for(;o<r.length;){if(r[o]===9||r[o]===10||r[o]===13||32<=r[o]&&r[o]<=126){o+=1;continue}if(194<=r[o]&&r[o]<=223&&128<=r[o+1]&&r[o+1]<=191){o+=2;continue}if(r[o]===224&&160<=r[o+1]&&r[o+1]<=191&&128<=r[o+2]&&r[o+2]<=191||(225<=r[o]&&r[o]<=236||r[o]===238||r[o]===239)&&128<=r[o+1]&&r[o+1]<=191&&128<=r[o+2]&&r[o+2]<=191||r[o]===237&&128<=r[o+1]&&r[o+1]<=159&&128<=r[o+2]&&r[o+2]<=191){o+=3;continue}if(r[o]===240&&144<=r[o+1]&&r[o+1]<=191&&128<=r[o+2]&&r[o+2]<=191&&128<=r[o+3]&&r[o+3]<=191||241<=r[o]&&r[o]<=243&&128<=r[o+1]&&r[o+1]<=191&&128<=r[o+2]&&r[o+2]<=191&&128<=r[o+3]&&r[o+3]<=191||r[o]===244&&128<=r[o+1]&&r[o+1]<=143&&128<=r[o+2]&&r[o+2]<=191&&128<=r[o+3]&&r[o+3]<=191){o+=4;continue}return!1}return!0},S1=t=>{let e=/[^A-Z0-9+\/=]/i,r=t.length;if(!r||r%4!==0||e.test(t))return!1;let o=t.indexOf("=");return o===-1||o===r-1||o===r-2&&t[r-1]==="="};var Ps=class{constructor(e){this.protocol=this._protocolRegex(e),this.protocol||(e=`https://${e}`),this.nodeParsedUrl=Jd.parse(e),this.port=this.nodeParsedUrl.port;let r=this._domainRegex(e.replace(this.nodeParsedUrl.pathname,""));this.fullName="";for(let o=1;o<=5;o++)if(r[o-1]){let n=r[o-1];this["level"+o.toString()]=n,this.fullName===""?this.fullName=n:this.fullName=n+"."+this.fullName}else this["level"+o.toString()]=void 0;this.zoneName=this.level2+"."+this.level1,this.topLevel=this.level1,this.domainName=this.level2,this.subDomain=this.level3}_domainRegex(e){let o=/([a-zA-Z0-9\-\_]*)\.{0,1}([a-zA-Z0-9\-\_]*)\.{0,1}([a-zA-Z0-9\-\_]*)\.{0,1}([a-zA-Z0-9\-\_]*)\.{0,1}([a-zA-Z0-9\-\_]*)\.{0,1}$/.exec(e);return o.reverse(),o.pop(),o.filter(function(i){return i!==""})}_protocolRegex(e){let o=/^([a-zA-Z0-9]*):\/\//.exec(e);if(o)return o[1]}_portRegex(e){let o=/^([a-zA-Z0-9]*):\/\//.exec(e);if(o)return o[1]}};var Cs=class{constructor(e,r){let o=D1(e);this.host=o[1],this.user=o[2],this.repo=o[3],this.accessToken=r,this.sshUrl=Xd(this.host,this.user,this.repo,this.accessToken,"ssh"),this.httpsUrl=Xd(this.host,this.user,this.repo,this.accessToken,"https")}},D1=function(t){return/([a-zA-Z0-9\-_\.]*)(?:\/|\:)([a-zA-Z0-9\-_\.]*)(?:\/)([a-zA-Z0-9\-_\.]*)(?:\.git)/.exec(t)},Xd=function(t,e,r,o="",n){let i;switch(o!==""&&(o=o+"@"),n){case"https":i="https://"+o+t+"/"+e+"/"+r+".git";break;case"ssh":i="git@"+t+":"+e+"/"+r+".git";break;default:console.error("Link Type "+n+" not known");break}return i};var tf=nt(Bh(),1),Hh=nt(qh(),1);var jh=Hh.default;function ZT(t){return btoa(String.fromCharCode(...t))}function XT(t){return new Uint8Array(Array.from(atob(t)).map(e=>e.charCodeAt(0)))}function zh(t,e){return JSON.stringify(t,eO,e)}function Vh(t){return JSON.parse(t,tO)}var eO=(t,e)=>{if(oO(e)){let r;if("data"in e&&Gh(e.data))if(e.data.length>0)r=new Uint8Array(e.data);else return"";else if(e instanceof Uint8Array)r=e;else return e;return{type:"EncodedBuffer",data:"base64:"+ZT(r)}}return e},tO=(t,e)=>{if(rO(e)&&rf(e.data)&&e.data.startsWith("base64:")){let r=e.data.slice(7);return XT(r)}return e};function rO(t){return Kh(t)&&t.type==="EncodedBuffer"&&rf(t.data)}function oO(t){return Kh(t)&&t.type==="Buffer"&&(Gh(t.data)||rf(t.data))||t instanceof Uint8Array}function Gh(t){return Array.isArray(t)}function rf(t){return typeof t=="string"}function Kh(t){return typeof t=="object"&&t!==null}var On=Vh,iO=t=>t.trim().split(`
15
+ `).reduce((o,n)=>(n.trim().length>0&&o.push(JSON.parse(n)),o),[]),xo=(t,e,r={})=>{let o=zh(t);return t=JSON.parse(o),jh(t,r)},sO=t=>{let e=xo(t),r=JSON.parse(e);return JSON.stringify(r,null,2)},aO=(...t)=>{let e=xo(...t);return wn.base64.encodeUri(e)},uO=t=>{let e=wn.base64.decode(t);return On(e)},of=class t{static enfoldFromObject(e){let r=new this;for(let o in e)r.saveableProperties.indexOf(o)!==-1&&(r[o]=e[o]);return r}static enfoldFromJson(e){let r=On(e);return this.enfoldFromObject(r)}foldToObject(){let e={},r=[];for(let o of this.saveableProperties){let n=this[o];if(n instanceof t){if(r.includes(n))throw new Error("cycle detected");r.push(n),n=n.foldToObject()}e[o]=tf.default(n)}return e}foldToJson(){let e=this.foldToObject();return xo(e)}},cO=()=>(t,e)=>{t.saveableProperties||(t.saveableProperties=[]),t.saveableProperties.push(e)},Qh=(t,e)=>{let r=xo(t),o=xo(e);return r===o},fO=(t,e)=>{let r=[];t.split(`
16
+ `).forEach(n=>{n&&r.push(On(n))});let o=[];return e.split(`
17
+ `).forEach(n=>{n&&o.push(On(n))}),Qh(r,o)};var Dr={};re(Dr,{TypedrequestCache:()=>lf,WebStore:()=>Mn});var Hs={};re(Hs,{deleteDB:()=>gO,openDB:()=>xO,unwrap:()=>Ys,wrap:()=>At});var af=(t,e)=>e.some(r=>t instanceof r),Jh,Zh;function lO(){return Jh||(Jh=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function pO(){return Zh||(Zh=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}var uf=new WeakMap,nf=new WeakMap,qs=new WeakMap;function mO(t){let e=new Promise((r,o)=>{let n=()=>{t.removeEventListener("success",i),t.removeEventListener("error",s)},i=()=>{r(At(t.result)),n()},s=()=>{o(t.error),n()};t.addEventListener("success",i),t.addEventListener("error",s)});return qs.set(e,t),e}function dO(t){if(uf.has(t))return;let e=new Promise((r,o)=>{let n=()=>{t.removeEventListener("complete",i),t.removeEventListener("error",s),t.removeEventListener("abort",s)},i=()=>{r(),n()},s=()=>{o(t.error||new DOMException("AbortError","AbortError")),n()};t.addEventListener("complete",i),t.addEventListener("error",s),t.addEventListener("abort",s)});uf.set(t,e)}var cf={get(t,e,r){if(t instanceof IDBTransaction){if(e==="done")return uf.get(t);if(e==="store")return r.objectStoreNames[1]?void 0:r.objectStore(r.objectStoreNames[0])}return At(t[e])},set(t,e,r){return t[e]=r,!0},has(t,e){return t instanceof IDBTransaction&&(e==="done"||e==="store")?!0:e in t}};function ry(t){cf=t(cf)}function hO(t){return pO().includes(t)?function(...e){return t.apply(Ys(this),e),At(this.request)}:function(...e){return At(t.apply(Ys(this),e))}}function yO(t){return typeof t=="function"?hO(t):(t instanceof IDBTransaction&&dO(t),af(t,lO())?new Proxy(t,cf):t)}function At(t){if(t instanceof IDBRequest)return mO(t);if(nf.has(t))return nf.get(t);let e=yO(t);return e!==t&&(nf.set(t,e),qs.set(e,t)),e}var Ys=t=>qs.get(t);function xO(t,e,{blocked:r,upgrade:o,blocking:n,terminated:i}={}){let s=indexedDB.open(t,e),a=At(s);return o&&s.addEventListener("upgradeneeded",u=>{o(At(s.result),u.oldVersion,u.newVersion,At(s.transaction),u)}),r&&s.addEventListener("blocked",u=>r(u.oldVersion,u.newVersion,u)),a.then(u=>{i&&u.addEventListener("close",()=>i()),n&&u.addEventListener("versionchange",c=>n(c.oldVersion,c.newVersion,c))}).catch(()=>{}),a}function gO(t,{blocked:e}={}){let r=indexedDB.deleteDatabase(t);return e&&r.addEventListener("blocked",o=>e(o.oldVersion,o)),At(r).then(()=>{})}var bO=["get","getKey","getAll","getAllKeys","count"],vO=["put","add","delete","clear"],sf=new Map;function Xh(t,e){if(!(t instanceof IDBDatabase&&!(e in t)&&typeof e=="string"))return;if(sf.get(e))return sf.get(e);let r=e.replace(/FromIndex$/,""),o=e!==r,n=vO.includes(r);if(!(r in(o?IDBIndex:IDBObjectStore).prototype)||!(n||bO.includes(r)))return;let i=async function(s,...a){let u=this.transaction(s,n?"readwrite":"readonly"),c=u.store;return o&&(c=c.index(a.shift())),(await Promise.all([c[r](...a),n&&u.done]))[0]};return sf.set(e,i),i}ry(t=>({...t,get:(e,r,o)=>Xh(e,r)||t.get(e,r,o),has:(e,r)=>!!Xh(e,r)||t.has(e,r)}));var wO=["continue","continuePrimaryKey","advance"],ey={},ff=new WeakMap,oy=new WeakMap,SO={get(t,e){if(!wO.includes(e))return t[e];let r=ey[e];return r||(r=ey[e]=function(...o){ff.set(this,oy.get(this)[e](...o))}),r}};async function*DO(...t){let e=this;if(e instanceof IDBCursor||(e=await e.openCursor(...t)),!e)return;e=e;let r=new Proxy(e,SO);for(oy.set(r,e),qs.set(r,Ys(e));e;)yield r,e=await(ff.get(r)||e.continue()),ff.delete(r)}function ty(t,e){return e===Symbol.asyncIterator&&af(t,[IDBIndex,IDBObjectStore,IDBCursor])||e==="iterate"&&af(t,[IDBIndex,IDBObjectStore])}ry(t=>({...t,get(e,r,o){return ty(e,r)?DO:t.get(e,r,o)},has(e,r){return ty(e,r)||t.has(e,r)}}));var Mn=class{constructor(e){this.initCalled=!1,this.readyDeferred=K.defer(),this.options=e}async init(){if(this.initCalled){await this.readyDeferred.promise;return}this.initCalled=!0;let e=new yr.Smartenv;if(!e.isBrowser&&!globalThis.indexedDB&&(console.log("hey"),console.log(globalThis.indexedDB),await e.getSafeNodeModule("fake-indexeddb/auto"),!globalThis.indexedDB)){let r=await e.getSafeNodeModule("fake-indexeddb");globalThis.indexedDB=new r.IDBFactory}this.db=await Hs.openDB(this.options.dbName,1,{upgrade:r=>{r.createObjectStore(this.options.storeName)}}),this.readyDeferred.resolve()}async get(e){return await this.init(),this.db.get(this.options.storeName,e)}async check(e){return await this.init(),!!await this.get(e)}async set(e,r){return await this.init(),this.db.put(this.options.storeName,r,e)}async delete(e){return await this.init(),this.db.delete(this.options.storeName,e)}async clear(){return await this.init(),this.db.clear(this.options.storeName)}async keys(){return await this.init(),this.db.getAllKeys(this.options.storeName)}};var lf=class{constructor(e="default"){this.webstore=new Mn({dbName:"trStore",storeName:`trStore-${e}`})}buildKey(e){return Ze.stringify({method:e.method,request:e.request})}async setByRequest(e){if(!e.response)throw new Error("You cannot store requests without a response present");await this.webstore.set(this.buildKey(e),e)}async getByRequest(e){return await this.webstore.get(this.buildKey(e))}};var pf=class{constructor(e={}){this.optionsArg=e,this.cacheStore=new Dr.WebStore({dbName:"webrequest",storeName:"webrequest"}),this.options={logging:!0,...e}}async getJson(e,r=!1){let n=await(await this.request(e,{method:"GET",useCache:r})).text();return Ze.parse(n)}async postJson(e,r,o=!1){let i=await(await this.request(e,{method:"POST",headers:{"Content-Type":"application/json"},body:Ze.stringify(r),useCache:o})).text();return Ze.parse(i)}async putJson(e,r,o=!1){let i=await(await this.request(e,{method:"PUT",headers:{"Content-Type":"application/json"},body:Ze.stringify(r)})).text();return Ze.parse(i)}async deleteJson(e,r=!1){let n=await(await this.request(e,{headers:{"Content-Type":"application/json"},method:"GET"})).text();return Ze.parse(n)}async request(e,r){r={timeoutMs:6e4,useCache:!1,...r};let o=new AbortController;Z.delayFor(r.timeoutMs).then(()=>{o.abort()});let n=K.defer(),i=!1;if(r.useCache&&await this.cacheStore.check(e)){let a=await this.cacheStore.get(e);n.resolve(new Response(a,{}))}else n.resolve(null);let s=await fetch(e,{signal:o.signal,method:r.method,headers:{...r.headers||{}},body:r.body}).catch(async a=>r.useCache&&await n.promise?(i=!0,n.promise):a);if(r.useCache&&await n.promise&&s.status===500&&(i=!0,s=await n.promise),!i&&r.useCache&&s.status<300){let a=await s.clone().arrayBuffer();await this.cacheStore.set(e,a)}return this.log(`${e} answers with status: ${s.status}`),s}async requestMultiEndpoint(e,r){let o,n=0;Array.isArray(e)?o=e:o=[e];let i=[],s=async c=>{i.push(c),c==="429"&&(console.log("got 429, so waiting a little bit."),await Z.delayFor(Math.floor(Math.random()*1001)+1e3));let f=0;for(let m of i)m===c&&f++;f>2*o.length*n&&n++},a=async c=>{if(!c)throw new Error("request failed permanently");this.log(`Getting ${c} with method ${r.method}`);let f=await fetch(c,{method:r.method,headers:{"Content-Type":"application/json",...r.headers||{}},body:r.body});return this.log(`${c} answers with status: ${f.status}`),f.status>=200&&f.status<300?f:(await s(f.status.toString()),await a(o[n]))};return await a(o[n])}log(e){this.options.logging&&console.log(e)}};var It=class{constructor(e,r){this.errorText=e,this.errorData=r}};var Vs=class{async passGuards(e,r){let o=new ps.GuardSet(e);if(!await o.allGuardsPass(r)){let i=await o.getFailedHint(r);throw new It(`guard failed: ${i}`,{failedHint:i})}}};var mf=class{constructor(e,r){this.method=e,this.handlerFunction=r}async addResponse(e){if(e.method!==this.method)throw new Error("this handler has been given a wrong method to answer to. Please use a TypedRouter to filter requests");let r,o=new Vs,n=await this.handlerFunction(e.request,o).catch(i=>{i instanceof It?r=i:console.log(i)});return r&&(e.error={text:r.errorText,data:r.errorData}),n&&(e.response=n),e?.correlation?.phase&&(e.correlation.phase="response"),e}};var _n=class{constructor(){this.routerMap=new Ue.ObjectMap,this.handlerMap=new Ue.ObjectMap,this.registeredVirtualStreams=new Ue.ObjectMap,this.fireEventInterestMap=new Ue.InterestMap(e=>e)}addTypedHandler(e){if(this.getTypedHandlerForMethod(e.method))throw new Error(`a TypedHandler for ${e.method} alredy exists! Can't add another one.`);this.handlerMap.add(e)}addTypedRouter(e){this.routerMap.findSync(o=>o===e)||(this.routerMap.add(e),e.addTypedRouter(this))}checkForTypedHandler(e){return!!this.getTypedHandlerForMethod(e)}getTypedHandlerForMethod(e,r=[]){r.push(this);let o;return o=this.handlerMap.findSync(n=>n.method===e),o||this.routerMap.getArray().forEach(n=>{!o&&!r.includes(n)&&(o=n.getTypedHandlerForMethod(e,r))}),o}async routeAndAddResponse(e,r=!1){if(e=pt.decodePayloadFromNetwork(e,{typedrouter:this}),e.localData=e.localData||{},e.localData.firstTypedrouter=this,e.method==="##VirtualStream##"){let o=await this.handleStreamTypedRequest(e);return o.localData=null,o}if(e?.correlation?.phase==="request"||r){let o=this.getTypedHandlerForMethod(e.method);return o?(e=await o.addResponse(e),e.localData=null,e=pt.encodePayloadForNetwork(e,{typedrouter:this}),e):(console.log(`Cannot find handler for methodname ${e.method}`),e.error={text:"There is no available method for this call on the server side",data:{}},e.correlation.phase="response",e.localData=null,e=pt.encodePayloadForNetwork(e,{typedrouter:this}),e)}else return e?.correlation?.phase==="response"?(this.fireEventInterestMap.findInterest(e.correlation.id)?.fullfillInterest(e),null):(console.log("received weirdly shaped request"),console.log(e),null)}async handleStreamTypedRequest(e){let r=await this.registeredVirtualStreams.find(async n=>n.streamId===e.request.streamId);if(r)console.log(`success: found relevant virtual stream with id ${e.request.streamId}`);else return console.log(`no relevant virtual stream found for stream with id ${e.request.streamId}`),console.log(this.registeredVirtualStreams.getArray()),e;return await r.handleStreamTr(e)}};var iy="#############CLOSING BIT#############",pt=class t{static encodePayloadForNetwork(e,r,o,n=[]){return!e||rn.isBufferLike(e)?e:e instanceof t?(!e.side&&r.sendMethod&&(e.side="requesting",e.sendMethod=r.sendMethod),!e.side&&r.typedrouter&&(e.side="responding",e.typedrouter=r.typedrouter,r.typedrouter.registeredVirtualStreams.add(e)),!o.response||n.includes("response")?(e.startKeepAliveLoop(),{_isVirtualStream:!0,streamId:e.streamId}):{_OBMITTED_VIRTUAL_STREAM:!0,reason:"path is under .request: obmitted for deduplication reasons in response cycle."}):Array.isArray(e)?e.map((i,s)=>t.encodePayloadForNetwork(i,r,o||e,n.concat(String(s)))):e!==null&&typeof e=="object"?Object.entries(e).reduce((i,[s,a])=>{let u=n.concat(s);return i[s]=t.encodePayloadForNetwork(a,r,o||e,u),i},{}):e}static decodePayloadFromNetwork(e,r){if(rn.isBufferLike(e)||e instanceof _n)return e;if(e!==null&&typeof e=="object")if(e._isVirtualStream){let o=new t;return o.streamId=e.streamId,!o.side&&r.sendMethod&&(o.side="requesting",o.sendMethod=r.sendMethod),!o.side&&r.typedrouter&&(o.side="responding",o.typedrouter=r.typedrouter,r.typedrouter.registeredVirtualStreams.add(o)),o.startKeepAliveLoop(),o}else if(Array.isArray(e)){let o=[];for(let n of e)o.push(t.decodePayloadFromNetwork(n,r));return o}else return Object.keys(e).reduce((o,n)=>(o[n]=t.decodePayloadFromNetwork(e[n],r),o),{});else return e}constructor(){this.streamId=Tr.uni(),this.keepAlive=!0,this.sendBackpressuredArray=new Ue.BackpressuredArray(16),this.receiveBackpressuredArray=new Ue.BackpressuredArray(16)}async workOnQueue(){if(this.workingDeferred)return this.workingDeferred.promise;if(this.workingDeferred=K.defer(),this.side==="requesting"){let e=!this.receiveBackpressuredArray.checkSpaceAvailable(),r=!1,o=!1,n=async()=>{let i=await this.sendMethod({method:"##VirtualStream##",request:{streamId:this.streamId,cycleId:Tr.uni(),cycle:"request",mainPurpose:"feedback",next:this.sendBackpressuredArray.data.length>0,backpressure:!this.receiveBackpressuredArray.checkSpaceAvailable()},response:null}).catch(()=>{console.log("stream ended immaturely"),this.keepAlive=!1});i&&i.response&&(o=i.response.backpressure,r=i.response.next)};for(await n();this.sendBackpressuredArray.data.length>0||r;){if(o)for(;o;)console.log("waiting for feedback because of backpressure..."),await Z.delayFor(50),await n();let i;this.sendBackpressuredArray.data.length>0&&(i=this.sendBackpressuredArray.shift());let s;s=await this.sendMethod({method:"##VirtualStream##",request:{streamId:this.streamId,cycleId:Tr.uni(),cycle:"request",mainPurpose:i?"chunk":"read",backpressure:e,next:this.sendBackpressuredArray.data.length>0,...i?{chunkData:i}:{}},response:null}).catch(()=>(console.log("stream ended immaturely"),this.keepAlive=!1,null)),s&&s.response&&s.response.chunkData&&this.receiveBackpressuredArray.push(s.response.chunkData),o=s&&s.response&&s.response.backpressure,e=!this.receiveBackpressuredArray.checkSpaceAvailable(),r=s&&s.response&&s.response.next}}this.workingDeferred.resolve(),this.workingDeferred=null}async handleStreamTr(e){if(e.request.keepAlive===!0&&this.keepAlive===!0?this.lastKeepAliveEvent=Date.now():e.request.keepAlive===!1&&(this.keepAlive=!1),e.request.mainPurpose==="keepAlive"&&(e.response={streamId:this.streamId,cycleId:e.request.cycleId,cycle:"response",mainPurpose:"keepAlive",keepAlive:this.keepAlive,next:this.sendBackpressuredArray.data.length>0,backpressure:!this.receiveBackpressuredArray.checkSpaceAvailable()}),e.request.mainPurpose==="feedback"&&(e.response={streamId:this.streamId,cycleId:e.request.cycleId,cycle:"response",mainPurpose:"feedback",next:this.sendBackpressuredArray.data.length>0,backpressure:!this.receiveBackpressuredArray.checkSpaceAvailable()}),e.request.mainPurpose==="chunk"){if(this.receiveBackpressuredArray.push(e.request.chunkData),this.sendBackpressuredArray.data.length>0&&e.response.backpressure===!1){let r=this.sendBackpressuredArray.shift();e.response={streamId:this.streamId,cycleId:e.request.cycleId,cycle:"response",mainPurpose:"chunk",next:this.sendBackpressuredArray.data.length>1,backpressure:!this.receiveBackpressuredArray.checkSpaceAvailable(),chunkData:this.sendBackpressuredArray.shift()}}else e.response={streamId:this.streamId,cycleId:e.request.cycleId,cycle:"response",mainPurpose:"feedback",next:this.sendBackpressuredArray.data.length>0,backpressure:!this.receiveBackpressuredArray.checkSpaceAvailable()};e.request=null}return e}async cleanup(){this.typedrouter&&this.typedrouter.registeredVirtualStreams.remove(this)}async startKeepAliveLoop(){if(this.side==="responding")return;await Z.delayFor(0),console.log(`starting keepalive loop on side ${this.side}`);let e=0;for(;this.keepAlive;)await this.triggerKeepAlive(),await Z.delayFor(1e3);await Z.delayFor(1e3),await this.cleanup(),console.log(`cleaned up for stream ${this.streamId}`)}async triggerKeepAlive(){if(this.side==="requesting"){console.log("keepalive sent.");let e=await this.sendMethod({method:"##VirtualStream##",request:{streamId:this.streamId,cycleId:Tr.uni(),cycle:"request",mainPurpose:"keepAlive",keepAlive:this.keepAlive},response:null}).catch(()=>{this.keepAlive=!1});e&&e.response&&e.response.keepAlive===!1?this.keepAlive=!1:this.lastKeepAliveEvent=Date.now(),e&&e.response&&e.response.next&&this.workOnQueue()}Date.now()-this.lastKeepAliveEvent>1e4&&(console.log(`closing stream for ${this.streamId}`),this.keepAlive=!1)}async sendData(e){this.sendBackpressuredArray.push(e),this.workOnQueue(),await this.sendBackpressuredArray.waitForSpace()}async fetchData(){return this.receiveBackpressuredArray.hasSpace,await this.receiveBackpressuredArray.waitForItems(),this.receiveBackpressuredArray.shift()}async readFromWebstream(e,r=!0){let o=e.getReader(),n=!1;for(;!n;){let{value:i,done:s}=await o.read();i&&await this.sendData(i),n=s}r&&await this.close(!0)}async writeToWebstream(e){let r=e.getWriter();for(;this.keepAlive||this.receiveBackpressuredArray.checkHasItems();){let o=await this.fetchData();if(o===iy){r.releaseLock(),await e.close();break}await r.write(o)}}async close(e=!1){e&&this.sendData(iy),this.keepAlive=!1}};var df=class{constructor(e){if(e.postMethodWithTypedRouter&&!e.typedRouterRef)throw new Error("you have to specify a typedrouter when using postmethod with typedrouter");this.options=e}async post(e){let r;this.options.typedRouterRef&&(r=await this.options.typedRouterRef.fireEventInterestMap.addInterest(e.correlation.id,e));let n=await(this.options.postMethod||this.options.postMethodWithTypedRouter)(e),i;return r?i=await r.interestFullfilled:n?i=n:i=e,i}};var MO=new js.WebRequest,hf=class{constructor(e,r){typeof e=="string"?this.urlEndPoint=e:this.typedTarget=e,this.method=r}async fire(e,r=!1){let o={method:this.method,request:e,response:null,correlation:{id:Tr.uni(),phase:"request"}};o=pt.encodePayloadForNetwork(o,{sendMethod:i=>this.postTrObject(i)});let n;return n=await this.postTrObject(o,r),n=pt.decodePayloadFromNetwork(n,{sendMethod:i=>this.postTrObject(i)}),n.response}async postTrObject(e,r=!1){let o;if(this.urlEndPoint?o=await MO.postJson(this.urlEndPoint,e,r):o=await this.typedTarget.post(e),o.error){if(console.error(`method: >>${this.method}<< got an ERROR: "${o.error.text}" with data ${JSON.stringify(o.error.data,null,2)}`),!o.retry)throw new It(o.error.text,o.error.data);return null}return o.retry&&(console.log(`server requested retry for the following reason: ${o.retry.reason}`),await Z.delayFor(o.retry.waitForMs),o=await this.postTrObject(e,r)),o}};var Ks=class{constructor(){this.webstore=new Dr.WebStore({dbName:"consentsoftware",storeName:"webclient"})}async isCookieLevelSet(){return!!await this.webstore.get("acceptedCookieLevels")}async setCookieLevels(e){return await this.webstore.set("acceptedCookieLevels",{acceptanceTimestamp:Date.now(),acceptedCookieLevels:e}),!0}async getCookieLevels(){return(await this.webstore.get("acceptedCookieLevels"))?.acceptedCookieLevels}async isCookieLevelStillValid(){return!(!this.isCookieLevelSet||(await this.webstore.get("acceptedCookieLevels")).acceptanceTimestamp<Date.now()-Tt.getMilliSecondsFromUnits({months:3}))}async getAndRunConsentTuples(e){let r=await this.getCookieLevels();if(!r){console.log("You need to set accepted cookielevels first");return}let o=new Gs.TypedRequest("https://connect.api.global/consentsoftware","getDomainSettings"),n=e||window.location.hostname,i=await o.fire({domain:n});for(let s of i.consentTuples)if(s.level==="functional"||r.includes(s.level)){let a=s.script,u=new Function("dataArg","cookieLevelsArg",`return (${a})(dataArg, cookieLevelsArg)`);if(typeof u=="function")await u(s.scriptExecutionDataArg,await this.getCookieLevels());else{let c="got malformed script to execuute";throw console.error(c),new Error(c)}console.log(`Successfully executed ConsentTuple >>${s.name}<< -> ${s.description}`)}}};var Or=class extends Me{constructor(){super();this.csWebclientInstance=new Ks;this.csWebclientRan=!1;this.theme="light";this.setAttribute("gotIt","true"),this.setAttribute("show","false")}render(){return Ne`
15
18
  <div class="pageOverlay">
16
19
  <div class="modalBox">
17
20
  <div class="content">
@@ -78,9 +81,9 @@ var Vf=Object.create;var rn=Object.defineProperty;var Xs=Object.getOwnPropertyDe
78
81
  </div>
79
82
  </div>
80
83
  </div>
81
- `}async connectedCallback(){super.connectedCallback(),this.updateTheme(),await this.csWebclientInstance.getCookieLevels()?(this.setAttribute("show","false"),this.setAttribute("gotIt","true")):(this.setAttribute("show","true"),this.setAttribute("gotIt","false"),requestAnimationFrame(async()=>{await this.updated();let n=this.shadowRoot?.querySelector(".pageOverlay");n&&(n.style.background="rgba(0, 0, 0, 0.5)",n.style.backdropFilter="blur(2px)");let o=this.shadowRoot?.querySelector(".modalBox");o&&(o.style.transform="scale(1)",o.style.opacity="1")}))}async firstUpdated(){}async updated(){console.log(`The height of the cookie banner is ${this.shadowRoot?.host?.clientHeight}px`);let r=await this.csWebclientInstance.getCookieLevels();!this.csWebclientRan&&r&&(this.csWebclientRan=!0,await this.csWebclientInstance.getAndRunConsentTuples())}async setLevel(r,n){console.log(`Set level to ${n}`),await this.csWebclientInstance.setCookieLevels(n),this.setAttribute("gotIt","true"),await kt(300),this.setAttribute("show","false"),this.updated()}updateTheme(){let r=window.matchMedia("(prefers-color-scheme: dark)").matches;this.theme=r?"dark":"light",window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",n=>{this.theme=n.matches?"dark":"light"})}};Nt.demo=()=>xe`<consentsoftware-cookieconsent></consentsoftware-cookieconsent>`,Nt.styles=Me`
84
+ `}async connectedCallback(){super.connectedCallback(),this.updateTheme(),await this.csWebclientInstance.getCookieLevels()?(this.setAttribute("show","false"),this.setAttribute("gotIt","true")):(this.setAttribute("show","true"),this.setAttribute("gotIt","false"),requestAnimationFrame(async()=>{await this.updated();let o=this.shadowRoot?.querySelector(".pageOverlay");o&&(o.style.background="rgba(0, 0, 0, 0.5)",o.style.backdropFilter="blur(2px)");let n=this.shadowRoot?.querySelector(".modalBox");n&&(n.style.transform="scale(1)",n.style.opacity="1")}))}async firstUpdated(){}async updated(){console.log(`The height of the cookie banner is ${this.shadowRoot?.host?.clientHeight}px`);let r=await this.csWebclientInstance.getCookieLevels();!this.csWebclientRan&&r&&(this.csWebclientRan=!0,await this.csWebclientInstance.getAndRunConsentTuples())}async setLevel(r,o){console.log(`Set level to ${o}`),await this.csWebclientInstance.setCookieLevels(o),this.setAttribute("gotIt","true"),await Ar(300),this.setAttribute("show","false"),this.updated()}updateTheme(){let r=window.matchMedia("(prefers-color-scheme: dark)").matches;this.theme=r?"dark":"light",window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",o=>{this.theme=o.matches?"dark":"light"})}};Or.demo=()=>Ne`<consentsoftware-cookieconsent></consentsoftware-cookieconsent>`,Or.styles=Xe`
82
85
  :host {
83
- font-family: ${fn};
86
+ font-family: ${$n};
84
87
  /* Default theme variables */
85
88
  --text-color: #333;
86
89
  --background-color: #eeeeee;
@@ -228,23 +231,23 @@ var Vf=Object.create;var rn=Object.defineProperty;var Xs=Object.getOwnPropertyDe
228
231
  .consent-button:hover {
229
232
  background: var(--button-hover-bg);
230
233
  }
231
- `,ge([ze({type:String,reflect:!0})],Nt.prototype,"theme",2),Nt=ge([Ne("consentsoftware-cookieconsent")],Nt);var br=class extends he{constructor(){super()}render(){return xe`
234
+ `,Ce([dt({type:String,reflect:!0})],Or.prototype,"theme",2),Or=Ce([it("consentsoftware-cookieconsent")],Or);var go=class extends Me{constructor(){super()}render(){return Ne`
232
235
  <div class="heading">
233
236
  What about cookies?
234
237
  </div>
235
- `}};br.demo=()=>xe`<consentsoftware-tabs></consentsoftware-tabs>`,br.styles=Me`
238
+ `}};go.demo=()=>Ne`<consentsoftware-tabs></consentsoftware-tabs>`,go.styles=Xe`
236
239
  :host {
237
240
  display: block;
238
241
  line-height: 2em;
239
242
  text-align: center;
240
- font-family: ${fn};
243
+ font-family: ${$n};
241
244
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
242
245
  }
243
246
 
244
247
  .heading {
245
248
 
246
249
  }
247
- `,br=ge([Ne("consentsoftware-header")],br);var ut=class extends he{constructor(){super();this.required=!1;this.selected=!1}render(){return xe`
250
+ `,go=Ce([it("consentsoftware-header")],go);var Bt=class extends Me{constructor(){super();this.required=!1;this.selected=!1}render(){return Ne`
248
251
  <div class="maincontainer">
249
252
  <div class="itemBox">
250
253
  <consentsoftware-toggle required>Required</consentsoftware-toggle>
@@ -259,7 +262,7 @@ var Vf=Object.create;var rn=Object.defineProperty;var Xs=Object.getOwnPropertyDe
259
262
  <consentsoftware-toggle>Marketing</consentsoftware-toggle>
260
263
  </div>
261
264
  </div>
262
- `}async getResults(r){}};ut.demo=()=>xe`<consentsoftware-mainselection></consentsoftware-mainselection>`,ut.styles=Me`
265
+ `}async getResults(r){}};Bt.demo=()=>Ne`<consentsoftware-mainselection></consentsoftware-mainselection>`,Bt.styles=Xe`
263
266
  :host {
264
267
  display: block;
265
268
  position: relative;
@@ -280,7 +283,7 @@ var Vf=Object.create;var rn=Object.defineProperty;var Xs=Object.getOwnPropertyDe
280
283
  .itemBox:last-child {
281
284
  border-right: none;
282
285
  }
283
- `,ge([ze({type:Boolean})],ut.prototype,"required",2),ge([ze({type:Boolean})],ut.prototype,"selected",2),ut=ge([Ne("consentsoftware-mainselection")],ut);var lt=class extends he{constructor(){super();this.required=!1;this.selected=!1}render(){return xe`
286
+ `,Ce([dt({type:Boolean})],Bt.prototype,"required",2),Ce([dt({type:Boolean})],Bt.prototype,"selected",2),Bt=Ce([it("consentsoftware-mainselection")],Bt);var Yt=class extends Me{constructor(){super();this.required=!1;this.selected=!1}render(){return Ne`
284
287
  <div class="label">${this.getText()}</div>
285
288
  <div class="toggle" @click=${this.handleClick}>
286
289
  <div class="toggleKnobArea">
@@ -289,7 +292,7 @@ var Vf=Object.create;var rn=Object.defineProperty;var Xs=Object.getOwnPropertyDe
289
292
  </div>
290
293
  </div>
291
294
  </div>
292
- `}async firstUpdated(r){super.firstUpdated(r),this.required&&(this.selected=!0,this.syncSelection())}async handleClick(r){if(this.required){let n=this.shadowRoot.querySelector(".toggleKnobMover");n.style.transform="translateX(20px)",await kt(250),n.style.transform="translateX(30px)";return}this.selected=!this.selected,r.stopPropagation(),r.preventDefault(),this.syncSelection(),this.dispatchEvent(new CustomEvent("toggle",{detail:{selected:this.selected}}))}async syncSelection(){console.log(`Selected ${this.selected}`);let r=this.shadowRoot.querySelector(".toggleKnobMover");this.selected?r.style.transform="translateX(30px)":r.style.transform="translateX(0px)"}getText(){return this.textContent}};lt.demo=()=>xe`<consentsoftware-toggle></consentsoftware-toggle>`,lt.styles=Me`
295
+ `}async firstUpdated(r){super.firstUpdated(r),this.required&&(this.selected=!0,this.syncSelection())}async handleClick(r){if(this.required){let o=this.shadowRoot.querySelector(".toggleKnobMover");o.style.transform="translateX(20px)",await Ar(250),o.style.transform="translateX(30px)";return}this.selected=!this.selected,r.stopPropagation(),r.preventDefault(),this.syncSelection(),this.dispatchEvent(new CustomEvent("toggle",{detail:{selected:this.selected}}))}async syncSelection(){console.log(`Selected ${this.selected}`);let r=this.shadowRoot.querySelector(".toggleKnobMover");this.selected?r.style.transform="translateX(30px)":r.style.transform="translateX(0px)"}getText(){return this.textContent}};Yt.demo=()=>Ne`<consentsoftware-toggle></consentsoftware-toggle>`,Yt.styles=Xe`
293
296
  :host {
294
297
  display: block;
295
298
  position: relative;
@@ -344,14 +347,14 @@ var Vf=Object.create;var rn=Object.defineProperty;var Xs=Object.getOwnPropertyDe
344
347
  :host([required]) .toggleKnobInner {
345
348
  background: rgba(255, 255, 255, 0.1);
346
349
  }
347
- `,ge([ze({type:Boolean})],lt.prototype,"required",2),ge([ze({type:Boolean,reflect:!0})],lt.prototype,"selected",2),lt=ge([Ne("consentsoftware-toggle")],lt);var vr=class extends he{constructor(){super()}render(){return xe`
350
+ `,Ce([dt({type:Boolean})],Yt.prototype,"required",2),Ce([dt({type:Boolean,reflect:!0})],Yt.prototype,"selected",2),Yt=Ce([it("consentsoftware-toggle")],Yt);var bo=class extends Me{constructor(){super()}render(){return Ne`
348
351
  <div class="tabs">
349
352
  <div class="tab" @click=${this.handleClick}>Consent</div>
350
353
  <div class="tab" @click=${this.handleClick}>Details</div>
351
354
  <div class="tab" @click=${this.handleClick}>About Cookies</div>
352
355
  </div>
353
356
  <div class="selector"></div>
354
- `}async handleClick(e){let n=e.target.closest(".tab");if(n){let o=this.shadowRoot?.querySelector(".selector");o&&(o.style.left=`${n.offsetLeft}px`,o.style.width=`${n.offsetWidth}px`)}}};vr.demo=()=>xe`<consentsoftware-tabs></consentsoftware-tabs>`,vr.styles=Me`
357
+ `}async handleClick(e){let o=e.target.closest(".tab");if(o){let n=this.shadowRoot?.querySelector(".selector");n&&(n.style.left=`${o.offsetLeft}px`,n.style.width=`${o.offsetWidth}px`)}}};bo.demo=()=>Ne`<consentsoftware-tabs></consentsoftware-tabs>`,bo.styles=Xe`
355
358
  :host {
356
359
  display: block;
357
360
  position: relative;
@@ -378,20 +381,9 @@ var Vf=Object.create;var rn=Object.defineProperty;var Xs=Object.getOwnPropertyDe
378
381
  background: orange;
379
382
  transition: all 0.2s;
380
383
  }
381
- `,vr=ge([Ne("consentsoftware-tabs")],vr);export{Nt as ConsentsoftwareCookieconsent,br as ConsentsoftwareHeader,ut as ConsentsoftwareMainSelection,vr as ConsentsoftwareTabs,lt as ConsentsoftwareToggle};
384
+ `,bo=Ce([it("consentsoftware-tabs")],bo);export{Or as ConsentsoftwareCookieconsent,go as ConsentsoftwareHeader,Bt as ConsentsoftwareMainSelection,bo as ConsentsoftwareTabs,Yt as ConsentsoftwareToggle};
382
385
  /*! Bundled license information:
383
386
 
384
- ieee754/index.js:
385
- (*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> *)
386
-
387
- buffer/index.js:
388
- (*!
389
- * The buffer module from node.js, for the browser.
390
- *
391
- * @author Feross Aboukhadijeh <https://feross.org>
392
- * @license MIT
393
- *)
394
-
395
387
  punycode/punycode.js:
396
388
  (*! https://mths.be/punycode v1.4.1 by @mathias *)
397
389